/* [project]/apps/web/app/app-shell.css [app-client] (css) */
.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  z-index: 40;
  border-right: 1px solid var(--border-subtle);
  color: #f7faf8;
  background: #11261f;
  flex-direction: column;
  width: 248px;
  padding: 24px 16px 18px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.app-brand {
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 10px;
  display: flex;
}

.app-brand > span {
  color: #14271f;
  background: #d9b86c;
  border-radius: 11px;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  display: grid;
}

.app-brand strong, .app-brand small, .app-profile strong, .app-profile small {
  display: block;
}

.app-brand strong {
  letter-spacing: .1em;
  font-size: .88rem;
}

.app-brand small {
  color: #aabbb4;
  margin-top: 3px;
  font-size: .73rem;
}

.app-navigation {
  gap: 4px;
  margin-top: 34px;
  display: grid;
}

.app-navigation > p {
  color: #82988f;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin: 22px 10px 7px;
  font-size: .68rem;
  font-weight: 750;
}

.app-nav-link {
  color: #c8d4cf;
  border-radius: 9px;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
  display: flex;
}

.app-nav-link svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7px;
  width: 19px;
  height: 19px;
}

.app-nav-link:hover {
  color: #fff;
  background: #ffffff12;
}

.app-nav-link[aria-current="page"] {
  color: #173d2e;
  background: #e6f0eb;
}

.app-sidebar-footer {
  border-top: 1px solid #ffffff1a;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 16px 10px 2px;
  display: flex;
}

.app-sidebar-footer small {
  color: #81958d;
  font-size: .68rem;
}

.app-environment {
  color: #bac9c3;
  font-size: .72rem;
  font-weight: 650;
}

.app-environment i {
  background: #66c295;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
}

.app-workspace {
  min-height: 100vh;
  margin-left: 248px;
}

.app-toolbar {
  z-index: 30;
  border-bottom: 1px solid var(--border-subtle);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #f8faf8f0;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 10px 28px;
  display: flex;
  position: sticky;
  top: 0;
}

.app-toolbar-context span, .app-toolbar-context strong {
  display: block;
}

.app-toolbar-context span {
  color: var(--text-muted);
  font-size: .72rem;
}

.app-toolbar-context strong {
  margin-top: 2px;
  font-size: .9rem;
}

.app-profile {
  align-items: center;
  gap: 10px;
  display: flex;
}

.app-profile-avatar {
  color: #24583f;
  background: #dfece5;
  border-radius: 10px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: .75rem;
  font-weight: 800;
  display: grid;
}

.app-profile strong {
  font-size: .82rem;
}

.app-profile small {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: .68rem;
}

.app-profile button {
  border: 1px solid var(--border-strong);
  min-height: 38px;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  background: #fff;
  border-radius: 8px;
  margin-left: 6px;
  padding: 8px 11px;
  font-size: .75rem;
  font-weight: 700;
}

.app-menu-button, .app-shell-scrim {
  display: none;
}

.app-required-data-alert {
  z-index: 60;
  color: #7a271a;
  background: #fff0ee;
  border: 2px solid #b42318;
  border-radius: 12px;
  gap: 6px;
  width: min(390px, 100vw - 40px);
  padding: 16px 18px;
  animation: 1.1s ease-in-out infinite alternate app-required-data-attention;
  display: grid;
  position: fixed;
  top: 82px;
  right: 20px;
  box-shadow: 0 12px 32px #7d181247;
}

.app-required-data-alert strong {
  font-size: .9rem;
}

.app-required-data-alert span, .app-required-data-alert small {
  line-height: 1.4;
}

.app-required-data-alert span {
  font-size: .8rem;
}

.app-required-data-alert small {
  font-size: .72rem;
  font-weight: 700;
}

.app-required-data-alert a {
  color: #7a271a;
  width: fit-content;
  margin-top: 2px;
  font-size: .78rem;
  font-weight: 800;
}

@keyframes app-required-data-attention {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: .55;
    transform: scale(.985);
  }
}

.app-content > main {
  width: min(1180px, 100% - 56px);
  padding-top: 36px;
}

@media (max-width: 860px) {
  .app-sidebar {
    visibility: hidden;
    width: min(296px, 100vw - 48px);
    transition: transform .18s;
    transform: translateX(-105%);
  }

  .app-sidebar.is-open {
    visibility: visible;
    transform: translateX(0);
  }

  .app-shell-scrim {
    z-index: 35;
    background: #0b17127a;
    border: 0;
    position: fixed;
    inset: 0;
  }

  .app-shell-scrim.is-visible {
    display: block;
  }

  .app-workspace {
    margin-left: 0;
  }

  .app-menu-button {
    border: 1px solid var(--border-strong);
    background: #fff;
    border-radius: 9px;
    flex: 0 0 42px;
    place-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    display: grid;
  }

  .app-menu-button span {
    background: #28453a;
    border-radius: 2px;
    width: 18px;
    height: 2px;
  }

  .app-toolbar-context {
    margin-right: auto;
  }

  .app-profile > div, .app-profile form {
    display: none;
  }
}

@media (max-width: 560px) {
  .app-toolbar {
    min-height: 62px;
    padding: 8px 12px;
  }

  .app-content > main {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

  .app-required-data-alert {
    width: calc(100vw - 24px);
    top: 72px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar {
    transition: none;
  }

  .app-required-data-alert {
    animation: none;
  }
}

/* [project]/apps/web/app/operations.css [app-client] (css) */
.settings-link {
  color: #315f4b;
  background: #fff;
  border: 1px solid #9eb5aa;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.summary-edit-form {
  gap: 9px;
  display: grid;
}

.summary-edit-form label {
  color: #506158;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 750;
}

.summary-edit-form textarea {
  color: #263c32;
  width: 100%;
  font: inherit;
  resize: vertical;
  background: #fbfcfb;
  border: 1px solid #bdcac3;
  border-radius: 9px;
  padding: 13px;
  line-height: 1.55;
}

.summary-edit-form textarea:focus {
  border-color: #3c8b68;
  outline: 3px solid #3c8b682e;
}

.summary-edit-form button {
  color: #fff;
  cursor: pointer;
  font: inherit;
  background: #39785d;
  border: 0;
  border-radius: 9px;
  justify-self: start;
  padding: 11px 13px;
  font-size: .74rem;
  font-weight: 750;
}

/* [project]/apps/web/app/styles.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --background: #f7f9f7;
  --surface: #fff;
  --surface-soft: #f0f5f2;
  --border-subtle: #dce4df;
  --border-strong: #bccbc3;
  --text-primary: #17251f;
  --text-secondary: #40534a;
  --text-muted: #697971;
  --brand: #286a4d;
  --brand-strong: #174b35;
  --warning: #925a12;
  background: var(--background);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--background);
  margin: 0;
}

.skip-link {
  z-index: 200;
  color: var(--brand-strong);
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 750;
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.system-state, .system-loading {
  place-items: center;
  min-height: calc(100vh - 140px);
  display: grid;
}

.system-state-card {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: 18px;
  width: min(620px, 100%);
  padding: clamp(28px, 6vw, 52px);
  box-shadow: 0 14px 42px #17352914;
}

.system-state-card > p:not(.eyebrow) {
  color: var(--text-secondary);
  line-height: 1.65;
}

.system-state-card small {
  color: var(--text-muted);
  margin-top: 24px;
  display: block;
}

.system-state-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  display: flex;
}

.system-state button, .system-state-card a {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  min-height: 44px;
  font: inherit;
  border-radius: 9px;
  align-items: center;
  padding: 10px 16px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
}

.system-state-icon {
  width: 44px;
  height: 44px;
  color: var(--warning);
  background: #fff2df;
  border-radius: 50%;
  place-items: center;
  margin-bottom: 22px;
  font-size: 1.25rem;
  font-weight: 800;
  display: grid;
}

.ui-notice {
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--text-secondary);
  border-radius: 9px;
  padding: 12px 14px;
}

.ui-notice-error {
  color: #7c3027;
  background: #fff3f1;
  border-color: #e3b5ae;
}

.ui-notice-success {
  color: #20573c;
  background: #edf8f1;
  border-color: #acd0bc;
}

.ui-badge {
  background: var(--surface-soft);
  min-height: 28px;
  color: var(--text-secondary);
  border-radius: 999px;
  align-items: center;
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 750;
  display: inline-flex;
}

.ui-badge-success {
  color: #205d40;
  background: #e6f5ec;
}

.ui-badge-warning {
  color: #7d4c0e;
  background: #fff2df;
}

.ui-dangerous-action {
  color: #87382f !important;
  background: #fff7f6 !important;
  border-color: #b85c50 !important;
}

.system-loading {
  padding-top: 64px;
  display: block;
}

.loading-line, .loading-grid > div {
  background: linear-gradient(90deg, #e8eeea, #f5f8f6, #e8eeea) 0 0 / 220% 100%;
  border-radius: 10px;
  animation: 1.4s ease-in-out infinite loading-pulse;
}

.loading-heading {
  width: min(360px, 80%);
  height: 42px;
}

.loading-copy {
  width: min(560px, 95%);
  height: 18px;
  margin-top: 18px;
}

.loading-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: 42px;
  display: grid;
}

.loading-grid > div {
  height: 150px;
}

@keyframes loading-pulse {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 560px) {
  .loading-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-line, .loading-grid > div {
    animation: none;
  }
}

.operational-version {
  z-index: 100;
  color: #315f4b;
  letter-spacing: .06em;
  pointer-events: none;
  text-transform: uppercase;
  background: #fffffff0;
  border: 1px solid #9eb5aa;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .68rem;
  font-weight: 800;
  position: fixed;
  bottom: 16px;
  right: 16px;
  box-shadow: 0 5px 18px #17231e14;
}

main {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  padding: 48px 0 32px;
}

.topbar, .section-heading, .matter-card, .progress-block > div:first-child {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  display: flex;
}

.eyebrow {
  color: #42715d;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: .72rem;
  font-weight: 750;
}

h1, h2, h3 {
  margin: 0;
}

h1, h2 {
  letter-spacing: -.035em;
  font-family: Georgia, serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 3rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.1;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #286a4d47;
}

.environment {
  color: #4e6158;
  background: #fff;
  border: 1px solid #cad4ce;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: .82rem;
  font-weight: 650;
}

.topbar-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}

.tenant-switcher {
  align-items: end;
  gap: 6px;
  display: flex;
}

.tenant-switcher label {
  color: #4e6158;
  gap: 3px;
  font-size: .68rem;
  font-weight: 700;
  display: grid;
}

.tenant-switcher select, .tenant-switcher button {
  color: #315f4b;
  font: inherit;
  background: #fff;
  border: 1px solid #9eb5aa;
  border-radius: 9px;
  padding: 9px 10px;
}

.tenant-switcher button {
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}

.logout-button {
  color: #4e6158;
  cursor: pointer;
  font: inherit;
  background: none;
  border: 1px solid #cad4ce;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: .82rem;
  font-weight: 650;
}

.settings-link {
  color: #315f4b;
  background: #fff;
  border: 1px solid #9eb5aa;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.logout-button:hover, .logout-button:focus-visible {
  background: #fff;
}

.status-dot {
  background: #3aa675;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  display: inline-block;
}

.summary {
  background: #d8ded9;
  border: 1px solid #d8ded9;
  border-radius: 16px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 40px 0 56px;
  display: grid;
  overflow: hidden;
}

.summary div {
  background: #fff;
  padding: 24px;
}

.summary span {
  color: #68766f;
  font-size: .78rem;
  display: block;
}

.summary strong {
  margin-top: 10px;
  font-family: Georgia, serif;
  font-size: 2rem;
  display: block;
}

.summary .channel {
  color: #277a56;
  font-family: inherit;
  font-size: 1.25rem;
}

.abandoned-badge {
  color: #905a12;
  background: #fff2df;
}

.section-heading {
  align-items: end;
  margin-bottom: 22px;
}

.section-heading > p {
  color: #748078;
  margin: 0;
  font-size: .82rem;
}

.matter-list {
  gap: 12px;
  display: grid;
}

.matter-link {
  color: inherit;
  text-decoration: none;
}

.matter-card {
  background: #fff;
  border: 1px solid #d9dfda;
  border-radius: 16px;
  grid-template-columns: minmax(260px, 1.3fr) minmax(250px, 1fr) minmax(220px, .8fr);
  padding: 22px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
  display: grid;
  box-shadow: 0 8px 30px #1e362b0a;
}

.matter-link:hover .matter-card, .matter-link:focus-visible .matter-card {
  border-color: #91ad9f;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px #1e362b1a;
}

.matter-link:focus-visible {
  outline-offset: 3px;
  border-radius: 16px;
  outline: 3px solid #3c8b6847;
}

.matter-main {
  align-items: center;
  gap: 14px;
  display: flex;
}

.avatar {
  color: #34614e;
  background: #e4eee8;
  border-radius: 12px;
  flex: 0 0 42px;
  place-items: center;
  height: 42px;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  display: grid;
}

.matter-main h3 {
  font-size: .98rem;
}

.matter-main p {
  color: #76817b;
  margin: 5px 0 0;
  font-size: .75rem;
}

.badges {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}

.badges span {
  border-radius: 8px;
  padding: 7px 9px;
  font-size: .72rem;
  font-weight: 650;
}

.urgency {
  color: #905a12;
  background: #fff2df;
}

.urgency-low {
  color: #4e685c;
  background: #edf3ef;
}

.urgency-very_high {
  color: #a53f35;
  background: #fde8e6;
}

.stage {
  color: #3f6094;
  background: #e9f0fc;
}

.progress-block {
  min-width: 0;
}

.progress-block span {
  color: #6e7a73;
  font-size: .72rem;
}

.progress-block strong {
  font-size: .78rem;
}

.progress {
  background: #e9ece9;
  border-radius: 10px;
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
}

.progress span {
  border-radius: inherit;
  background: #3c8b68;
  height: 100%;
  display: block;
}

.view-responses {
  text-align: right;
  margin-top: 9px;
  font-weight: 700;
  display: block;
  color: #39785d !important;
}

.followup-section {
  padding-top: 46px;
}

.followup-button, .attendance-actions button {
  color: #fff;
  cursor: pointer;
  font: inherit;
  background: #39785d;
  border: 0;
  border-radius: 9px;
  padding: 10px 13px;
  font-size: .74rem;
  font-weight: 750;
}

.matter-followup-list, .appointment-list {
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.matter-followup-list li, .appointment-list article {
  background: #fff;
  border: 1px solid #dce2de;
  border-radius: 11px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 17px;
  display: flex;
}

.matter-followup-list strong, .matter-followup-list small, .appointment-list strong, .appointment-list span {
  display: block;
}

.matter-followup-list strong, .appointment-list strong {
  font-size: .82rem;
}

.matter-followup-list small, .appointment-list span {
  color: #7a857e;
  margin-top: 5px;
  font-size: .69rem;
}

.appointment-list .calendar-sync-warning {
  color: #a53f35;
  max-width: 360px;
  font-weight: 700;
}

.followup-status, .attendance-status {
  color: #5f6e66;
  white-space: nowrap;
  background: #edf1ee;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: .68rem;
  font-weight: 700;
}

.followup-sent {
  color: #286347;
  background: #e7f4ec;
}

.followup-failed {
  color: #a53f35;
  background: #fde8e6;
}

.followup-waiting_template {
  color: #905a12;
  background: #fff2df;
}

.attendance-actions {
  gap: 7px;
  display: flex;
}

.attendance-actions button:last-child {
  color: #5b6962;
  background: #eef1ef;
}

.empty {
  text-align: center;
  background: #ffffff8c;
  border: 1px dashed #becac3;
  border-radius: 16px;
  padding: 64px 28px;
}

.empty p {
  color: #647169;
  max-width: 560px;
  margin: 10px auto 0;
  line-height: 1.6;
}

.retry-link {
  background: var(--brand);
  color: #fff;
  border-radius: 9px;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 9px 15px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
}

footer {
  color: #7d8781;
  text-align: center;
  margin-top: 38px;
  font-size: .72rem;
}

.login-page {
  place-items: center;
  min-height: 100vh;
  padding: 28px;
  display: grid;
}

.login-card {
  background: #fff;
  border: 1px solid #d8ded9;
  border-radius: 20px;
  width: min(460px, 100%);
  padding: 42px;
  box-shadow: 0 20px 60px #1e362b1a;
}

.login-card h1 {
  font-size: clamp(2.15rem, 8vw, 2.85rem);
}

.login-card > p:not(.eyebrow):not(.login-error) {
  color: #647169;
  margin: 14px 0 28px;
  line-height: 1.6;
}

.login-error {
  color: #8b332c;
  background: #fde8e6;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: .85rem;
}

.login-form {
  gap: 18px;
  display: grid;
}

.login-form label {
  color: #43544b;
  gap: 7px;
  font-size: .82rem;
  font-weight: 700;
  display: grid;
}

.login-form input, .login-form textarea {
  color: #17231e;
  width: 100%;
  font: inherit;
  background: #fbfcfb;
  border: 1px solid #bdcac3;
  border-radius: 10px;
  padding: 12px 13px;
}

.login-form textarea {
  resize: vertical;
}

.login-form .field-help {
  color: #718078;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.45;
}

.login-form input:focus, .login-form textarea:focus {
  border-color: #3c8b68;
  outline: 3px solid #3c8b682e;
}

.login-form button {
  color: #fff;
  cursor: pointer;
  font: inherit;
  background: #347a5b;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  font-weight: 750;
}

.login-secondary-link {
  min-height: 44px;
  color: var(--brand);
  border-radius: 8px;
  place-items: center;
  margin-top: 8px;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  display: grid;
}

.login-secondary-link:hover {
  background: var(--surface-soft);
  text-decoration: underline;
}

.intake-card {
  width: min(560px, 100%);
}

.detail-page {
  max-width: 1120px;
}

.back-link {
  color: #39785d;
  margin-bottom: 22px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-header {
  border-bottom: 1px solid #d5ddd7;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding-bottom: 24px;
  display: flex;
}

.detail-subtitle {
  color: #6d7972;
  margin: 12px 0 0;
}

.detail-status {
  background: #fff;
  border: 1px solid #d5ddd7;
  border-radius: 14px;
  min-width: 185px;
  padding: 18px;
}

.detail-status .stage {
  border-radius: 8px;
  padding: 7px 9px;
  font-size: .72rem;
  font-weight: 650;
  display: inline-block;
}

.detail-status strong {
  margin-top: 16px;
  font-family: Georgia, serif;
  font-size: 2rem;
  display: block;
}

.detail-status small {
  color: #6c7871;
}

.lead-decision-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}

.lead-decision-actions a, .lead-decision-actions span {
  border: 1px solid var(--border-strong);
  min-height: 42px;
  color: var(--brand);
  border-radius: 9px;
  place-items: center;
  padding: 10px 14px;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  display: inline-grid;
}

.lead-decision-actions a:hover {
  background: var(--surface-soft);
}

.lead-decision-actions .lead-action-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.lead-decision-actions .lead-action-primary:hover {
  background: var(--brand-strong);
}

.lead-decision-actions .lead-action-disabled {
  border-color: var(--border-subtle);
  background: var(--surface-soft);
  color: var(--text-muted);
}

.lead-overview-grid {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 16px;
  margin-top: 18px;
  display: grid;
}

.contact-section {
  background: #fff;
  border: 1px solid #d5ddd7;
  border-radius: 14px;
  align-content: start;
  gap: 20px;
  margin-top: 0;
  padding: 20px;
  display: grid;
}

.matter-context-section, .matter-conflict-section {
  background: #fff;
  border: 1px solid #d8dfda;
  border-radius: 16px;
  margin-top: 24px;
  padding: 24px;
}

.lead-overview-grid .matter-context-section {
  align-content: start;
  gap: 18px;
  margin-top: 0;
  padding: 20px;
  display: grid;
}

.matter-conflict-section > div:first-child > p:last-child {
  color: #587067;
  line-height: 1.6;
}

.matter-participants {
  gap: 8px;
  padding: 0;
  list-style: none;
  display: grid;
}

.matter-participants li {
  background: #f4f7f5;
  border-radius: 9px;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  display: flex;
}

.matter-participants span {
  color: #587067;
}

.participant-form, .conflict-match form, .contact-profile-editor form {
  gap: 12px;
  margin: 16px 0;
  display: grid;
}

.participant-form label, .conflict-match label, .contact-profile-editor label {
  color: #40564c;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  display: grid;
}

.participant-form input, .participant-form select, .conflict-match input, .contact-profile-editor input, .contact-profile-editor select {
  width: 100%;
  font: inherit;
  border: 1px solid #bccbc3;
  border-radius: 8px;
  padding: 10px;
}

.participant-form button, .conflict-match button, .contact-profile-editor button, .matter-context-section > form button {
  color: #fff;
  width: fit-content;
  font: inherit;
  background: #315f4b;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

.contact-profile-editor {
  margin-top: 16px;
}

.contact-profile-editor summary {
  color: #315f4b;
  cursor: pointer;
  font-weight: 700;
}

.matter-conflict-status, .conflict-match {
  background: #f8faf8;
  border: 1px solid #d8dfda;
  border-radius: 10px;
  gap: 5px;
  margin-top: 12px;
  padding: 14px;
  display: grid;
}

.matter-conflict-status small {
  color: #587067;
}

.matter-conflict-status.conflict-possible_match, .matter-conflict-status.conflict-not_checked, .conflict-match {
  background: #fff7e7;
  border-color: #d19b45;
}

.conflict-match form > div {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.contact-section h2 {
  margin-top: 4px;
  font-size: 1.05rem;
}

.contact-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  display: grid;
}

.contact-details dt {
  color: #758078;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 750;
}

.contact-details dd {
  color: #263c32;
  margin: 6px 0 0;
  font-size: .84rem;
  font-weight: 700;
}

.contact-details a {
  color: #39785d;
}

.contact-details span {
  color: #8a938e;
  font-weight: 600;
}

.whatsapp-link {
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background: #26734f;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: .74rem;
  font-weight: 750;
  text-decoration: none;
}

.whatsapp-link:hover {
  background: #1f6042;
}

.whatsapp-disabled {
  color: #7a857e;
  background: #e9eeeb;
}

.operation-notice {
  border: 1px solid;
  border-radius: 10px;
  margin: 22px 0 -8px;
  padding: 12px 14px;
  font-size: .82rem;
}

.operation-success {
  color: #2d654c;
  background: #edf5f0;
  border-color: #a9c5b7;
}

.operation-error {
  color: #873c34;
  background: #fcedeb;
  border-color: #e1b7b1;
}

.operations-section {
  background: #fff;
  border: 1px solid #d5ddd7;
  border-radius: 14px;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, .9fr);
  align-items: end;
  gap: 36px;
  margin-top: 22px;
  padding: 24px;
  display: grid;
}

.operations-section h2, .notes-section h2, .timeline-section h2 {
  font-size: 1.45rem;
}

.operations-section > div > p:last-child {
  color: #6d7972;
  margin: 9px 0 0;
  font-size: .8rem;
  line-height: 1.5;
}

.workflow-form, .note-form {
  gap: 8px;
  display: grid;
}

.workflow-form label, .note-form label {
  color: #506158;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 750;
}

.workflow-form > div {
  grid-template-columns: 1fr auto;
  gap: 9px;
  display: grid;
}

.workflow-form .archive-confirmation {
  letter-spacing: 0;
  text-transform: none;
  align-items: flex-start;
  gap: 8px;
  max-width: 520px;
  line-height: 1.45;
  display: flex;
}

.workflow-form .archive-confirmation input {
  margin-top: 2px;
}

.workflow-form select, .note-form textarea {
  color: #25382f;
  width: 100%;
  font: inherit;
  background: #fbfcfb;
  border: 1px solid #bdcac3;
  border-radius: 9px;
  padding: 11px 12px;
}

.workflow-form button, .summary-review button, .note-form button {
  color: #fff;
  cursor: pointer;
  font: inherit;
  background: #39785d;
  border: 0;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: .74rem;
  font-weight: 750;
}

.archived-matter-notice {
  color: #526158;
  background: #f5f7f5;
  border: 1px solid #d6ddd8;
  border-radius: 10px;
  max-width: 520px;
  margin: 0;
  padding: 14px 16px;
  line-height: 1.55;
}

.calendar-section {
  padding-top: 46px;
}

.calendar-connection-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.calendar-connect-button, .calendar-secondary-button {
  color: #fff;
  cursor: pointer;
  font: inherit;
  background: #39785d;
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: .7rem;
  font-weight: 750;
}

.calendar-secondary-button {
  color: #5f6c65;
  background: #fff;
  border: 1px solid #cfd8d2;
}

.calendar-status {
  color: #865b1e;
  background: #fff2dd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .72rem;
  font-weight: 750;
}

.calendar-active {
  color: #286347;
  background: #e7f4ec;
}

.calendar-grid {
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 14px;
  display: grid;
}

.availability-card, .slots-card {
  background: #fff;
  border: 1px solid #d5ddd7;
  border-radius: 14px;
  min-width: 0;
  padding: 22px;
}

.availability-card h3, .slots-card h3 {
  font-size: .9rem;
}

.availability-card ul {
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.availability-card li {
  color: #637169;
  justify-content: space-between;
  gap: 18px;
  font-size: .74rem;
  display: flex;
}

.availability-card strong {
  color: #263c32;
}

.slots-card small {
  color: #7d8781;
  font-size: .68rem;
}

.slot-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  display: flex;
}

.slot-list > span {
  color: #37624f;
  background: #f4f7f5;
  border: 1px solid #cdd8d1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .7rem;
  font-weight: 700;
}

.slot-list {
  display: grid;
}

.appointment-proposal-preview {
  background: #f7faf8;
  border: 1px solid #cdd8d1;
  border-radius: 10px;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  display: grid;
}

.appointment-proposal-preview pre {
  overflow-wrap: anywhere;
  color: #30483c;
  font: inherit;
  white-space: pre-wrap;
  margin: 0;
  font-size: .75rem;
}

.appointment-proposal-preview button {
  color: #fff;
  cursor: pointer;
  font: inherit;
  background: #39785d;
  border: 0;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: .7rem;
  font-weight: 750;
}

.slot-booking-form {
  background: #f7faf8;
  border: 1px solid #d7e0da;
  border-radius: 10px;
  grid-template-columns: minmax(140px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  display: grid;
}

.slot-booking-form select, .appointment-confirm-form select, .appointment-reschedule-form select {
  color: #30483c;
  background: #fff;
  border: 1px solid #cdd8d1;
  border-radius: 8px;
  padding: 8px;
}

.slot-booking-form button, .appointment-confirm-form button, .appointment-reschedule-form button {
  color: #fff;
  cursor: pointer;
  font: inherit;
  background: #39785d;
  border: 0;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: .7rem;
  font-weight: 750;
}

.appointment-actions, .appointment-confirm-form, .appointment-reschedule-form {
  gap: 8px;
  display: grid;
}

.appointment-confirm-form label, .appointment-reschedule-form label {
  color: #54645b;
  align-items: center;
  gap: 7px;
  font-size: .7rem;
  display: flex;
}

.calendar-footnote {
  color: #7d8781;
  margin: 12px 2px 0;
  font-size: .72rem;
}

.summary-section {
  padding-top: 46px;
}

.summary-status {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .72rem;
  font-weight: 750;
}

.summary-draft {
  color: #865b1e;
  background: #fff2dd;
}

.summary-approved {
  color: #286347;
  background: #e7f4ec;
}

.summary-card {
  background: #fff;
  border: 1px solid #d5ddd7;
  border-radius: 14px;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr);
  gap: 32px;
  padding: 26px;
  display: grid;
}

.summary-body {
  color: #263c32;
  white-space: pre-line;
  margin: 0;
  line-height: 1.7;
}

.summary-edit-form {
  gap: 9px;
  display: grid;
}

.audio-section {
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  margin-bottom: 24px;
  padding: 28px;
}

.audio-transcription-list {
  gap: 16px;
  margin-top: 20px;
  display: grid;
}

.audio-transcription-list article {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  padding: 20px;
}

.audio-transcription-meta {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
  display: flex;
}

.audio-transcription-form {
  gap: 10px;
  display: grid;
}

.audio-transcription-form label {
  font-size: .86rem;
  font-weight: 700;
}

.audio-transcription-form textarea {
  font: inherit;
  resize: vertical;
  border: 1px solid #b9c7d5;
  border-radius: 10px;
  padding: 12px;
  line-height: 1.55;
}

.audio-transcription-form > div {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.audio-transcription-form button {
  color: #fff;
  cursor: pointer;
  background: #15324b;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

.summary-edit-form label {
  color: #506158;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 750;
}

.summary-edit-form textarea {
  color: #263c32;
  width: 100%;
  font: inherit;
  resize: vertical;
  background: #fbfcfb;
  border: 1px solid #bdcac3;
  border-radius: 9px;
  padding: 13px;
  line-height: 1.55;
}

.summary-edit-form button {
  color: #fff;
  cursor: pointer;
  font: inherit;
  background: #39785d;
  border: 0;
  border-radius: 9px;
  justify-self: start;
  padding: 11px 13px;
  font-size: .74rem;
  font-weight: 750;
}

.summary-review {
  border-left: 1px solid #e0e5e1;
  padding-left: 24px;
}

.summary-review p {
  color: #758078;
  margin: 0 0 10px;
  font-size: .7rem;
  line-height: 1.5;
}

.summary-review form {
  margin-top: 18px;
}

.compact-empty {
  padding: 30px 24px;
}

.settings-page {
  width: min(980px, 100% - 40px);
}

.settings-header {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr);
  align-items: end;
  gap: 32px;
  margin-top: 28px;
  display: grid;
}

.settings-header > p {
  color: #68766f;
  margin: 0;
  line-height: 1.6;
}

.settings-section {
  padding-top: 54px;
}

.settings-form, .flow-settings-card, .flow-settings-card label, .new-question label {
  gap: 8px;
  display: grid;
}

.settings-form, .flow-settings-card {
  background: #fff;
  border: 1px solid #d5ddd7;
  border-radius: 16px;
  padding: 24px;
}

.settings-form textarea, .flow-settings-card input, .flow-settings-card textarea {
  color: #25382f;
  width: 100%;
  font: inherit;
  background: #fbfcfb;
  border: 1px solid #bdcac3;
  border-radius: 9px;
  padding: 11px 12px;
  line-height: 1.5;
}

.settings-form textarea:focus, .flow-settings-card input:focus, .flow-settings-card textarea:focus {
  border-color: #3c8b68;
  outline: 3px solid #3c8b682e;
}

.settings-form label, .flow-settings-card label, .new-question legend {
  color: #506158;
  font-size: .74rem;
  font-weight: 750;
}

.settings-form button, .flow-settings-card > button {
  color: #fff;
  cursor: pointer;
  font: inherit;
  background: #39785d;
  border: 0;
  border-radius: 9px;
  justify-self: start;
  padding: 11px 14px;
  font-size: .76rem;
  font-weight: 750;
}

.settings-help, .flow-settings-heading p {
  color: #748078;
  margin: 0;
  font-size: .74rem;
  line-height: 1.5;
}

.flow-settings-list {
  gap: 18px;
  display: grid;
}

.flow-settings-heading, .question-editor-meta {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  display: flex;
}

.flow-settings-heading span {
  color: #42715d;
  font-size: .72rem;
  font-weight: 750;
}

.question-editor-list {
  gap: 12px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.question-editor-list li, .new-question {
  background: #fafbfa;
  border: 1px solid #e0e5e1;
  border-radius: 12px;
  gap: 12px;
  padding: 17px;
  display: grid;
}

.question-editor-meta code {
  color: #77837c;
  font-size: .7rem;
}

.flow-settings-card .remove-question {
  color: #8a504a;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  display: flex;
}

.flow-settings-card .remove-question input {
  width: auto;
}

.new-question {
  margin: 0 0 10px;
}

.operations-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 46px;
  display: grid;
}

.notes-section, .timeline-section {
  background: #fff;
  border: 1px solid #d5ddd7;
  border-radius: 14px;
  min-width: 0;
  padding: 24px;
}

.note-form {
  margin-top: 22px;
}

.note-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.note-form button {
  justify-self: start;
}

.no-entries {
  color: #7d8781;
  margin: 22px 0 0;
  font-size: .78rem;
}

.note-list, .timeline-list {
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.note-list li {
  background: #f3f6f4;
  border-radius: 10px;
  padding: 14px;
}

.note-list p, .timeline-list p {
  color: #2b3e35;
  overflow-wrap: anywhere;
  margin: 0 0 7px;
  font-size: .82rem;
  line-height: 1.5;
}

.note-list small, .timeline-list small {
  color: #7d8781;
  font-size: .65rem;
}

.timeline-list {
  scrollbar-gutter: stable;
  max-height: clamp(560px, 75vh, 960px);
  padding-right: 5px;
  overflow: auto;
}

.timeline-list li {
  grid-template-columns: 10px 1fr;
  gap: 11px;
  display: grid;
}

.timeline-list li > span {
  background: #4d9273;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  box-shadow: 0 0 0 1px #4d9273;
}

.timeline-list h3 {
  margin-bottom: 5px;
  font-size: .8rem;
}

.answers-section {
  padding-top: 46px;
}

.answers-section-primary {
  padding-top: 28px;
}

.answers-section-primary .answer-list {
  scrollbar-gutter: stable;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: min(460px, 48vh);
  padding-right: 6px;
  overflow: auto;
}

.answers-section-primary .answer-card {
  align-content: start;
  padding: 16px;
}

.answers-section-primary .answer-value, .answers-section-primary .answer-empty {
  margin-top: 10px;
  padding: 10px 12px;
}

.documents-section {
  padding-top: 46px;
}

.upload-notice {
  color: #71551c;
  background: #fff7e5;
  border: 1px solid #d8c79e;
  border-radius: 10px;
  margin: 22px 0 0;
  padding: 12px 14px;
  font-size: .82rem;
}

.upload-quarantined {
  color: #2d654c;
  background: #edf5f0;
  border-color: #a9c5b7;
}

.document-list {
  gap: 12px;
  margin-top: 24px;
  display: grid;
}

.document-card {
  background: #fff;
  border: 1px solid #d9dfda;
  border-radius: 14px;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, .9fr);
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  display: grid;
}

.document-title {
  align-items: center;
  gap: 9px;
  display: flex;
}

.document-title h3 {
  font-size: .94rem;
}

.document-title span {
  color: #64726a;
  background: #edf1ee;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: .65rem;
  font-weight: 700;
}

.document-missing, .document-metadata p {
  color: #78827c;
  margin: 8px 0 0;
  font-size: .78rem;
}

.document-metadata p {
  color: #263c32;
  font-weight: 700;
}

.document-metadata small {
  color: #818b85;
  font-size: .68rem;
}

.received-document-list {
  gap: 10px;
  margin-top: 28px;
  display: grid;
}

.received-document-list > h3 {
  font-size: .82rem;
}

.received-document {
  background: #f9faf9;
  border: 1px solid #e0e5e1;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 14px;
  display: flex;
}

.received-document div {
  gap: 3px;
  display: grid;
}

.received-document strong {
  font-size: .78rem;
}

.received-document small {
  color: #78827c;
  font-size: .66rem;
}

.extraction-status {
  color: #52635a;
  font-size: .72rem;
  font-weight: 700;
}

.extraction-failed {
  color: #9a3f35;
}

.upload-form {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  display: grid;
}

.upload-form input[type="file"] {
  color: #65726b;
  min-width: 0;
  font-size: .72rem;
}

.upload-form button {
  color: #fff;
  cursor: pointer;
  font: inherit;
  background: #39785d;
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: .72rem;
  font-weight: 750;
}

.upload-form button:hover {
  background: #2e674f;
}

.quarantine-badge, .clean-badge {
  color: #865b1e;
  background: #fff2dd;
  border-radius: 8px;
  justify-self: end;
  padding: 8px 10px;
  font-size: .72rem;
  font-weight: 700;
}

.clean-badge {
  color: #286347;
  background: #e7f4ec;
}

.answer-list {
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.answer-card {
  background: #fff;
  border: 1px solid #d9dfda;
  border-radius: 14px;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 22px;
  display: grid;
}

.answer-number {
  color: #39785d;
  background: #e5eee9;
  border-radius: 50%;
  place-items: center;
  width: 32px;
  height: 32px;
  font-weight: 750;
  display: grid;
}

.answer-label {
  color: #42715d;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 5px;
  font-size: .7rem;
  font-weight: 750;
}

.answer-card h3 {
  font-size: .92rem;
  line-height: 1.45;
}

.answer-value, .answer-empty {
  color: #21342b;
  background: #f2f6f3;
  border-radius: 9px;
  margin: 14px 0 6px;
  padding: 12px 14px;
  font-size: .95rem;
  font-weight: 650;
}

.answer-empty {
  color: #8a6a36;
  background: #fff5e6;
}

.answer-card small {
  color: #828b86;
  font-size: .68rem;
}

@media (max-width: 840px) {
  .matter-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .summary, .settings-header, .lead-overview-grid, .answers-section-primary .answer-list {
    grid-template-columns: 1fr;
  }

  .answers-section-primary .answer-list {
    max-height: none;
    padding-right: 0;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 24px, 1120px);
    padding-top: 28px;
  }

  .topbar, .section-heading, .detail-header, .flow-settings-heading, .question-editor-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-status {
    width: 100%;
  }

  .contact-section, .contact-details, .operations-section, .calendar-grid, .summary-card, .operations-grid, .slot-booking-form {
    grid-template-columns: 1fr;
  }

  .summary-review {
    border-top: 1px solid #e0e5e1;
    border-left: 0;
    padding-top: 20px;
    padding-left: 0;
  }

  .whatsapp-link {
    justify-self: start;
  }

  .document-card, .upload-form {
    grid-template-columns: 1fr;
  }

  .quarantine-badge, .clean-badge {
    justify-self: start;
  }

  .answer-card {
    grid-template-columns: 1fr;
  }

  .matter-followup-list li, .appointment-list article {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*# sourceMappingURL=apps_web_app_0y2bwzq._.css.map*/