:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --burla-primary: #3b5a64;
  --burla-primary-hover: #34545f;
  --burla-accent: #7ecbdd;
  --burla-tint-soft: #f2f9fb;
  --burla-tint-weak: #e2f0f4;
  --burla-bg: #f7fbfc;
  --burla-card: #ffffff;
  --burla-text: #1b1e1e;
  --burla-muted: rgba(27, 30, 30, 0.64);
  --burla-faint: rgba(27, 30, 30, 0.42);
  --burla-border: rgba(59, 90, 100, 0.24);
  --burla-soft-border: rgba(59, 90, 100, 0.13);
  background: var(--burla-bg);
  color: var(--burla-text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--burla-bg);
  color: var(--burla-text);
}

body.auth-active {
  background: #f4f7f7;
}

body.auth-active > .topbar,
body.auth-active > #dashboard-view {
  display: none;
}

body.dashboard-ready #auth-view {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  appearance: none;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--burla-border);
  border-radius: 999px;
  background: #fff;
  color: var(--burla-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

button:hover {
  background: var(--burla-tint-soft);
}

button.primary {
  background: var(--burla-primary);
  border-color: var(--burla-primary);
  color: #fff;
}

button.primary:hover {
  background: var(--burla-primary-hover);
}

button.danger {
  border-color: rgba(178, 64, 32, 0.28);
  color: #b24020;
}

button.danger:hover {
  background: #fff5f2;
  border-color: rgba(178, 64, 32, 0.42);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #f7fbfc;
  color: var(--burla-text);
}

.auth-stage {
  width: min(420px, 100%);
}

.auth-panel {
  display: grid;
  gap: 22px;
  padding: 32px;
  border: 1px solid rgba(17, 25, 27, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(21, 33, 36, 0.08);
}

.auth-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.auth-copy-block {
  display: grid;
  gap: 10px;
}

.auth-copy-block h1 {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 750;
}

.auth-copy-block p:last-child {
  color: var(--burla-muted);
  font-size: 15px;
  line-height: 1.45;
}

.auth-status {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--burla-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.auth-spinner {
  display: none;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid rgba(59, 90, 100, 0.16);
  border-top-color: var(--burla-primary);
  border-radius: 50%;
  animation: loading-spin 800ms linear infinite;
}

.auth-status.loading .auth-spinner {
  display: block;
}

.auth-status.loading {
  display: flex;
}

.auth-skeleton {
  display: none;
  width: 100%;
  --skeleton-fill: #f4f8f9;
  --skeleton-highlight: rgba(255, 255, 255, 0.82);
  --skeleton-soft-border: rgba(205, 218, 222, 0.5);
}

body.auth-loading .auth-view {
  display: block;
  padding: 0;
  background: var(--burla-bg);
}

body.auth-loading .auth-stage {
  display: none;
}

body.auth-loading .auth-skeleton {
  display: block;
  min-height: 100vh;
}

.auth-skeleton .brand-logo,
.skeleton-photo {
  display: block;
  border-radius: 999px;
}

.auth-skeleton .view-tab,
.auth-skeleton .profile-actions,
.auth-skeleton .profile-pagination {
  pointer-events: none;
}

.auth-skeleton .view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-skeleton .view-tabs {
  background: transparent;
  border-color: var(--skeleton-soft-border);
}

.auth-skeleton .view-tab.active {
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.auth-skeleton .profile-item {
  cursor: default;
}

.auth-skeleton .profile-item.active {
  background: rgba(244, 248, 249, 0.45);
  border-color: var(--skeleton-soft-border);
}

.auth-skeleton .profile-item span + span,
.auth-skeleton .profile-item small {
  margin-top: 7px;
}

.auth-skeleton .profile-copy h2 {
  margin: 0;
}

.auth-skeleton .profile-copy p {
  margin-top: 8px;
}

.auth-skeleton .analysis-content {
  display: grid;
  gap: 10px;
}

.skeleton-section-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.skeleton-line,
.skeleton-input,
.skeleton-button,
.skeleton-select,
.skeleton-icon-button,
.skeleton-copy-button,
.skeleton-pill {
  display: block;
  border-radius: 999px;
}

.skeleton-line {
  width: 100%;
  height: 12px;
}

.skeleton-line.title {
  width: 120px;
  height: 18px;
}

.skeleton-line.name {
  width: min(260px, 80%);
  height: 24px;
}

.skeleton-line.tab {
  width: 62px;
  height: 12px;
}

.skeleton-line.full {
  width: 100%;
}

.skeleton-line.long {
  width: 78%;
}

.skeleton-line.medium {
  width: 58%;
}

.skeleton-line.short {
  width: 38%;
}

.skeleton-line.tiny {
  width: 28%;
  height: 10px;
}

.skeleton-input {
  width: 100%;
  height: 42px;
  border-radius: 8px;
}

.skeleton-button {
  width: 112px;
  height: 40px;
}

.skeleton-select {
  width: 210px;
  height: 36px;
  border-radius: 8px;
}

.skeleton-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.skeleton-copy-button {
  width: 82px;
  height: 36px;
  border-radius: 8px;
}

.skeleton-pill {
  flex: 0 0 auto;
  width: 74px;
  height: 22px;
  border-radius: 999px;
}

.profile-pagination .skeleton-button {
  width: 100%;
  min-width: 74px;
}

.skeleton-photo {
  width: 100%;
  height: 100%;
}

.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background: var(--skeleton-fill);
}

.skeleton-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skeleton-highlight), transparent);
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

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

.auth-actions button {
  min-height: 46px;
  border-radius: 8px;
}

.auth-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.google-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.auth-secondary {
  color: var(--burla-primary);
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--burla-border);
  border-radius: 8px;
  background: #fff;
  color: var(--burla-text);
  font-size: 14px;
  outline: none;
}

input,
select {
  min-height: 42px;
  padding: 9px 11px;
}

textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--burla-primary);
  box-shadow: 0 0 0 1px var(--burla-primary);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px max(12px, calc((100vw - 1360px) / 2 + 12px));
  background: var(--burla-card);
  border-bottom: 1px solid var(--burla-soft-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

a.brand {
  border-radius: 8px;
  cursor: pointer;
}

a.brand:focus-visible {
  outline: 3px solid rgba(0, 114, 130, 0.25);
  outline-offset: 4px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 650;
}

.actions,
.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--burla-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  list-style: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary:hover {
  border-color: rgba(59, 90, 100, 0.34);
  background: var(--burla-tint-soft);
}

.account-menu[open] summary {
  border-color: rgba(59, 90, 100, 0.38);
  box-shadow: 0 0 0 4px rgba(126, 203, 221, 0.18);
}

.account-photo,
.account-photo-fallback {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 999px;
}

.account-photo {
  object-fit: cover;
}

.account-photo-fallback {
  display: grid;
  place-items: center;
  background: var(--burla-tint-weak);
  color: var(--burla-primary);
  font-size: 14px;
  font-weight: 750;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: 168px;
  padding: 7px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 18px 46px rgba(21, 33, 36, 0.16),
    0 2px 8px rgba(21, 33, 36, 0.06);
}

.account-menu-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 17px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--burla-soft-border);
  border-left: 1px solid var(--burla-soft-border);
  background: #fff;
  transform: rotate(45deg);
}

.account-menu-panel button,
.account-menu-panel a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--burla-text);
  justify-content: flex-start;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
}

.account-menu-panel button:hover,
.account-menu-panel a:hover {
  background: var(--burla-tint-soft);
}

.account-menu-panel button:focus-visible,
.account-menu-panel a:focus-visible {
  outline: 2px solid rgba(59, 90, 100, 0.28);
  outline-offset: 1px;
}

.profile-more-menu {
  position: relative;
}

.profile-more-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--burla-border);
  border-radius: 999px;
  background: #fff;
  color: var(--burla-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}

.profile-more-menu summary::-webkit-details-marker {
  display: none;
}

.profile-more-menu summary:hover {
  background: var(--burla-tint-soft);
}

.profile-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 176px;
  padding: 6px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(21, 33, 36, 0.14);
}

.profile-menu-panel button {
  width: 100%;
  justify-content: flex-start;
  border-radius: 8px;
}

.view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 999px;
  background: var(--burla-tint-soft);
}

.view-tab {
  min-height: 32px;
  padding: 5px 13px;
  border-color: transparent;
  background: transparent;
  color: var(--burla-muted);
  font-size: 13px;
}

.view-tab.active {
  border-color: var(--burla-primary);
  background: var(--burla-primary);
  color: #fff;
}

.shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 12px;
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 12px;
  min-height: calc(100vh - 64px);
}

.dashboard-summary-view {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px;
  min-height: calc(100vh - 64px);
}

.dashboard-summary-panel {
  padding: 18px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: var(--burla-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dashboard-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-summary-header h2 {
  margin: 3px 0 4px;
  font-size: 24px;
  line-height: 1.15;
}

.dashboard-summary-range {
  margin: 0;
  color: var(--burla-muted);
  font-size: 14px;
}

.activity-summary-periods {
  display: grid;
  gap: 16px;
}

.activity-summary-period {
  display: grid;
  gap: 10px;
}

.activity-summary-period-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.activity-summary-period-header h3 {
  color: var(--burla-text);
  font-size: 16px;
  line-height: 1.25;
}

.activity-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.activity-summary-card {
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: #fbfefe;
}

.activity-summary-label,
.activity-summary-unit {
  margin: 0;
  color: var(--burla-muted);
  font-size: 13px;
}

.activity-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.activity-summary-metric {
  min-width: 0;
}

.activity-summary-value {
  display: block;
  margin: 0 0 5px;
  color: var(--burla-text);
  font-size: 34px;
  line-height: 1;
}

.activity-summary-card.is-loading .activity-summary-value {
  color: var(--burla-faint);
}

.dashboard-summary-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(189, 74, 69, 0.24);
  border-radius: 8px;
  background: rgba(189, 74, 69, 0.07);
  color: #9b342f;
}

#companies-view,
#messages-view,
#search-detail-view {
  align-items: start;
}

.sidebar {
  align-self: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100vh - 88px);
  height: calc(100vh - 88px);
  max-height: calc(100vh - 88px);
  overflow: hidden;
}

.search,
.profile-list,
.profile-list-footer,
.empty-state,
.message-detail,
.profile-detail:not(.message-detail) > .profile-header,
.section-card {
  background: var(--burla-card);
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search {
  display: block;
  padding: 12px;
  margin-bottom: 10px;
}

.search span {
  display: block;
  margin-bottom: 8px;
  color: var(--burla-muted);
  font-size: 12px;
  font-weight: 650;
}

.search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--burla-border);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--burla-text);
  font-size: 14px;
  outline: none;
}

.search input:focus {
  border-color: var(--burla-primary);
  box-shadow: 0 0 0 1px var(--burla-primary);
}

.profile-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.profile-list.is-loading {
  cursor: progress;
}

.profile-list-loading-row {
  --skeleton-fill: #f1f7f8;
  --skeleton-highlight: rgba(255, 255, 255, 0.86);
  pointer-events: none;
  border-color: var(--burla-soft-border);
  background: rgba(247, 251, 252, 0.72);
}

.profile-list-loading-row .skeleton-line {
  display: block;
}

.profile-list-loading-row .profile-item-title {
  margin-bottom: 9px;
}

.profile-list-loading-row .skeleton-pill {
  margin-left: auto;
}

.profile-list-loading-row span.skeleton-line {
  margin-top: 0;
}

.profile-list-loading-row small.skeleton-line {
  margin-top: 8px;
}

.profile-list-footer {
  flex: 0 0 auto;
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 10px;
}

.profile-list-count {
  color: var(--burla-muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-pagination {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr) minmax(74px, auto);
  align-items: center;
  gap: 8px;
}

.profile-pagination button {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.profile-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  color: var(--burla-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.profile-pagination.is-loading span::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 2px solid var(--burla-tint-weak);
  border-top-color: var(--burla-primary);
  border-radius: 50%;
  animation: loading-spin 800ms linear infinite;
}

.profile-item {
  width: 100%;
  min-height: 0;
  text-align: left;
  display: block;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 10px;
  margin: 0 0 4px;
}

.profile-item:hover {
  background: var(--burla-tint-soft);
}

.profile-item.active {
  border-color: rgba(59, 90, 100, 0.32);
  background: rgba(126, 203, 221, 0.18);
}

.profile-item strong,
.profile-item span,
.profile-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-item strong {
  color: var(--burla-text);
  font-size: 14px;
  font-weight: 650;
}

.profile-item-title strong {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-item .profile-probability {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 7px;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 650;
}

.profile-item .profile-probability.positive {
  border-color: rgba(25, 128, 56, 0.28);
  background: #e9f7ee;
  color: #0f6b2f;
}

.profile-item .profile-probability.negative {
  border-color: rgba(194, 52, 40, 0.28);
  background: #fff0ee;
  color: #a1281f;
}

.profile-item span {
  margin-top: 3px;
  color: var(--burla-muted);
  font-size: 12px;
  font-weight: 400;
}

.profile-item small {
  margin-top: 4px;
  color: var(--burla-faint);
  font-size: 11px;
  font-weight: 400;
}

.detail {
  min-width: 0;
}

#messages-view > .detail {
  align-self: start;
  min-height: 0;
  height: calc(100vh - 88px);
  max-height: calc(100vh - 88px);
  overflow: hidden;
}

#messages-view .empty-state {
  min-height: 0;
  height: 100%;
}

.empty-state {
  display: grid;
  place-content: center;
  min-height: calc(100vh - 100px);
  padding: 24px;
  color: var(--burla-muted);
  text-align: center;
}

.empty-state h2 {
  color: var(--burla-text);
  font-size: 18px;
  margin-bottom: 6px;
}

.loading-spinner {
  display: none;
  width: 26px;
  height: 26px;
  margin: 0 auto 12px;
  border: 3px solid var(--burla-tint-weak);
  border-top-color: var(--burla-primary);
  border-radius: 50%;
  animation: loading-spin 800ms linear infinite;
}

.empty-state.loading .loading-spinner {
  display: block;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner,
  .auth-spinner,
  .skeleton-shimmer::after {
    animation: none;
  }
}

.profile-list .empty-state {
  min-height: 160px;
  padding: 20px 8px;
  border: 0;
  box-shadow: none;
}

.profile-list .empty-state h2 {
  font-size: 14px;
}

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

.message-sidebar {
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: #fff;
}

.message-sidebar-top {
  flex: 0 0 auto;
  display: grid;
  border-bottom: 1px solid var(--burla-soft-border);
}

.message-sidebar-header {
  display: grid;
  grid-template-columns: minmax(108px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.message-sidebar-header h2 {
  min-width: 0;
  color: var(--burla-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 650;
}

.message-search-field {
  position: relative;
  min-width: 0;
}

.message-search-field::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2.5px solid #33383b;
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.message-search-field::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 50%;
  width: 9px;
  height: 2.5px;
  border-radius: 999px;
  background: #33383b;
  transform: translateY(7px) rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.message-search-field input {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px 8px 42px;
  background: #edf3f8;
  color: var(--burla-text);
  font-size: 16px;
  outline: none;
}

.message-search-field input:focus {
  box-shadow: inset 0 0 0 2px var(--burla-primary);
}

.message-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--burla-soft-border);
}

.message-filter-row button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.34);
  padding: 6px 14px;
  background: #fff;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 650;
}

.message-filter-row button.active {
  border-color: #057642;
  background: #057642;
  color: #fff;
}

.message-filter-row button.active span {
  display: inline-block;
  margin-left: 7px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid currentColor;
  vertical-align: 2px;
}

.message-list {
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  box-shadow: none;
  padding: 0;
  background: #fff;
}

.message-list-empty {
  padding: 18px 16px;
  color: var(--burla-muted);
  font-size: 14px;
}

.message-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  min-height: 92px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--burla-soft-border);
  border-radius: 0;
  padding: 14px 16px;
  background: #fff;
  text-align: left;
  font-weight: 400;
}

.message-row:hover {
  background: #f3f8fb;
}

.message-row.active {
  border-color: var(--burla-soft-border);
  background: #e8f1f7;
}

.message-row.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #057642;
}

.message-row-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
  background: #edf3f8;
  align-self: center;
}

.message-row-avatar .profile-photo,
.message-row-avatar .profile-photo-fallback {
  width: 100%;
  height: 100%;
}

.message-row-avatar .profile-photo-fallback {
  font-size: 20px;
}

.message-row-body {
  display: grid;
  min-width: 0;
  gap: 3px;
  align-self: center;
  text-align: left;
}

.message-row-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.message-row-name,
.message-row-date,
.message-row-preview {
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-row-name {
  white-space: nowrap;
  color: var(--burla-text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 400;
  text-align: left;
}

.message-row-date {
  color: var(--burla-text);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}

.message-row-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #666;
  font-size: 14px;
  line-height: 1.32;
  font-weight: 400;
  text-align: left;
  white-space: normal;
}

.profile-detail:not(.message-detail) {
  display: grid;
  gap: 10px;
  overflow: visible;
}

.message-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.message-detail .profile-header {
  flex: 0 0 auto;
}

.profile-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  align-items: start;
  gap: 16px;
  padding: 16px;
}

.profile-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.profile-photo-shell {
  display: grid;
  align-self: start;
  place-items: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--burla-tint-soft);
  box-shadow: 0 0 0 1px var(--burla-soft-border);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--burla-primary-hover);
  font-size: 28px;
  font-weight: 650;
}

.profile-copy {
  min-width: 0;
  padding-bottom: 4px;
}

.profile-name {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 650;
}

.profile-headline {
  max-width: 760px;
  margin-top: 6px;
  color: var(--burla-text);
  line-height: 1.4;
}

.profile-meta {
  margin-top: 8px;
  color: var(--burla-muted);
  font-size: 13px;
}

.profile-captured {
  margin-top: 4px;
  color: var(--burla-faint);
  font-size: 12px;
}

.profile-connection-status {
  margin-top: 6px;
  color: var(--burla-muted);
  font-size: 12px;
  font-weight: 600;
}

.profile-connection-status[data-status="connected"] {
  color: #0f766e;
}

.profile-connection-status[data-status="not_connected"] {
  color: #92400e;
}

.profile-connection-status[data-status="pending"] {
  color: #9a3412;
}

.message-transcript-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px;
  overflow: hidden;
  background: #f7f8f8;
}

.message-transcript {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.message-entry {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  justify-self: start;
  width: min(760px, 96%);
}

.message-entry.outbound {
  grid-template-columns: minmax(0, 1fr) 36px;
  justify-self: end;
}

.message-entry.outbound .message-entry-avatar {
  grid-column: 2;
  grid-row: 1;
}

.message-entry.outbound .message-entry-content {
  grid-column: 1;
  grid-row: 1;
  align-items: end;
}

.message-entry-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(17, 25, 27, 0.08);
  border-radius: 50%;
  background: #edf3f8;
}

.message-entry-avatar .profile-photo,
.message-entry-avatar .profile-photo-fallback {
  width: 100%;
  height: 100%;
}

.message-entry-avatar .profile-photo-fallback {
  font-size: 12px;
}

.message-entry-content {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.message-bubble {
  width: fit-content;
  max-width: min(640px, 100%);
  border: 1px solid var(--burla-soft-border);
  border-radius: 10px;
  padding: 9px 11px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(17, 25, 27, 0.03);
}

.message-bubble.outbound {
  border-color: rgba(5, 118, 66, 0.18);
  background: #eaf7ef;
}

.message-bubble.inbound {
  background: #fff;
}

.message-bubble.unknown {
  background: #f8fafb;
}

.message-bubble-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--burla-muted);
  font-size: 12px;
  line-height: 1.35;
}

.message-entry.outbound .message-bubble-meta {
  justify-content: flex-end;
}

.message-bubble-sender {
  overflow: hidden;
  color: var(--burla-text);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-bubble-time {
  flex: 0 0 auto;
  color: var(--burla-muted);
  font-size: 12px;
}

.message-bubble-time::before {
  content: "·";
  margin-right: 7px;
  color: var(--burla-faint);
}

.message-bubble p,
.message-transcript-empty {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--burla-text);
  font-size: 14px;
  line-height: 1.45;
}

.profile-side {
  display: grid;
  gap: 12px;
  justify-items: end;
  align-content: start;
  padding-top: 14px;
}

.profile-analysis-summary {
  display: grid;
  gap: 8px;
  justify-items: end;
  width: 360px;
  max-width: 100%;
}

.profile-analysis-summary-left {
  justify-items: start;
  width: min(420px, 100%);
  margin-top: 12px;
}

.profile-analysis-verdict-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.profile-large-data-card {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.profile-large-data-card.positive {
  border-color: rgba(25, 128, 56, 0.24);
  background: #edf8f1;
}

.profile-large-data-card.negative {
  border-color: rgba(194, 52, 40, 0.22);
  background: #fff2f0;
}

.profile-large-data-card strong {
  color: var(--burla-text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.profile-large-data-card.positive strong {
  color: #0f6b2f;
}

.profile-large-data-card.negative strong {
  color: #a1281f;
}

.analysis-flag-menu {
  position: relative;
  flex: 0 0 auto;
}

.analysis-flag-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--burla-border);
  border-radius: 8px;
  background: #fff;
  color: var(--burla-text);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
  list-style: none;
  user-select: none;
}

.analysis-flag-trigger::-webkit-details-marker {
  display: none;
}

.analysis-flag-trigger:hover {
  background: var(--burla-tint-soft);
}

.analysis-flag-trigger:focus-visible {
  outline: 2px solid rgba(59, 90, 100, 0.28);
  outline-offset: 1px;
}

.analysis-flag-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.analysis-flag-caret {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.6;
}

.analysis-flag-menu[open] .analysis-flag-caret {
  transform: rotate(180deg);
}

.analysis-flag-menu.flagged.negative .analysis-flag-trigger {
  border-color: rgba(194, 52, 40, 0.45);
  background: #fff0ee;
  color: #a1281f;
}

.analysis-flag-menu.flagged.negative .analysis-flag-trigger:hover {
  background: #ffe6e1;
}

.analysis-flag-menu.flagged.maybe .analysis-flag-trigger {
  border-color: rgba(167, 109, 20, 0.45);
  background: #fff6e6;
  color: #8a570b;
}

.analysis-flag-menu.flagged.maybe .analysis-flag-trigger:hover {
  background: #ffedc7;
}

.analysis-flag-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  display: grid;
  gap: 2px;
  min-width: 196px;
  padding: 6px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(21, 33, 36, 0.14);
}

.analysis-flag-panel .analysis-flag-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--burla-text);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.analysis-flag-panel .analysis-flag-option.active::after {
  content: "\2713";
  margin-left: auto;
  padding-left: 12px;
  font-weight: 700;
}

.analysis-flag-panel .analysis-flag-option.negative {
  color: #a1281f;
}

.analysis-flag-panel .analysis-flag-option.negative:hover {
  background: #fff0ee;
}

.analysis-flag-panel .analysis-flag-option.maybe {
  color: #8a570b;
}

.analysis-flag-panel .analysis-flag-option.maybe:hover {
  background: #fff6e6;
}

.analysis-flag-panel .analysis-flag-option.clear {
  border-top: 1px solid var(--burla-soft-border);
  border-radius: 0 0 6px 6px;
  color: var(--burla-muted);
}

.analysis-flag-panel .analysis-flag-option.clear:hover {
  background: var(--burla-tint-soft);
}

.profile-analysis-pills {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}

.profile-analysis-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(59, 90, 100, 0.22);
  border-radius: 999px;
  background: var(--burla-tint-weak);
  color: var(--burla-primary-hover);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
}

.profile-analysis-pill.cloud {
  border-color: rgba(55, 91, 174, 0.2);
  background: #eef4ff;
  color: #315187;
}

.profile-analysis-pill.tool {
  border-color: rgba(128, 87, 20, 0.22);
  background: #fff6e6;
  color: #7a4d10;
}

.analysis-card {
  display: grid;
  gap: 8px;
  padding: 0;
}

.analysis-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.analysis-card h3 {
  color: var(--burla-text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 650;
}

.analysis-status {
  margin-top: 4px;
  color: var(--burla-muted);
  font-size: 13px;
  line-height: 1.35;
}

.analysis-status:empty {
  display: none;
}

.analysis-status.warn {
  color: #8a5a00;
}

.analysis-status.error {
  color: #b24020;
}

.analysis-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.outreach-brief {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 10px;
  background: #fff;
}

.outreach-brief-missing {
  border-color: #b9dfe8;
  background: #f8fdfe;
}

.outreach-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.outreach-brief-section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.outreach-brief-section h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--burla-muted);
}

.outreach-brief-bullets {
  margin: 0;
  padding-left: 17px;
  display: grid;
  align-content: start;
  gap: 9px;
}

.outreach-brief-bullets li {
  margin: 0;
  padding-left: 2px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--burla-text);
}

.outreach-brief-groups {
  display: grid;
  align-content: start;
  gap: 12px;
}

.outreach-brief-group {
  display: grid;
  align-content: start;
  gap: 5px;
}

.outreach-brief-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.outreach-brief-group-logo.linkedin-logo-shell {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 4px;
}

.outreach-brief-group-logo .linkedin-logo-fallback {
  font-size: 10px;
}

.outreach-brief-group-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  min-width: 0;
}

.outreach-brief-group h5 {
  margin: 0;
  color: var(--burla-text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
}

.outreach-brief-group-years {
  color: var(--burla-muted);
  font-size: 13px;
  line-height: 1.35;
}

.outreach-brief-group-bullets {
  gap: 7px;
}

.outreach-cold-message {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(59, 90, 100, 0.1);
}

.outreach-cold-message-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.outreach-cold-message-header h5 {
  margin: 0;
  color: var(--burla-primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.outreach-cold-message-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.outreach-cold-message-copy {
  display: inline-flex;
  min-width: 82px;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--burla-primary);
  border-radius: 8px;
  background: var(--burla-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.outreach-cold-message-copy:hover {
  background: var(--burla-primary-hover);
  color: #fff;
}

.outreach-copy-icon,
.outreach-refresh-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.outreach-copy-icon {
  width: 14px;
  height: 14px;
}

.outreach-template-select-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.outreach-template-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  color: rgba(27, 30, 30, 0.58);
  pointer-events: none;
  transform: rotate(45deg);
}

.outreach-template-select {
  -webkit-appearance: none;
  appearance: none;
  width: 210px;
  height: 36px;
  min-height: 36px;
  padding: 0 32px 0 12px;
  overflow: hidden;
  border: 1px solid rgba(59, 90, 100, 0.24);
  border-radius: 8px;
  background: #fff;
  color: #20363d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.outreach-template-select:hover {
  border-color: rgba(59, 90, 100, 0.36);
  background: #fff;
  color: var(--burla-primary);
}

.outreach-template-select:focus,
.outreach-cold-message-copy:focus-visible,
.outreach-cold-message-refresh:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(126, 203, 221, 0.32);
}

.outreach-cold-message-refresh {
  display: inline-flex;
  width: 36px;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(59, 90, 100, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--burla-primary);
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.outreach-cold-message-refresh:hover {
  border-color: rgba(59, 90, 100, 0.36);
  background: var(--burla-tint-soft);
  color: var(--burla-primary-hover);
}

.outreach-refresh-icon {
  width: 15px;
  height: 15px;
}

.outreach-cold-message-refresh.is-loading .outreach-refresh-icon {
  animation: outreach-refresh-spin 0.8s linear infinite;
}

@keyframes outreach-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.outreach-cold-message-text {
  margin: 0;
  width: 100%;
  border-left: 3px solid #7dc7d8;
  border-radius: 7px;
  padding: 14px 16px 16px;
  background: #f6fbfd;
  color: var(--burla-text);
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.profile-detail-skeleton {
  --skeleton-fill: #f1f7f8;
  --skeleton-highlight: rgba(255, 255, 255, 0.86);
  pointer-events: none;
}

.profile-detail-skeleton .outreach-brief {
  min-height: 0;
}

.profile-detail-skeleton .outreach-brief-section h4 {
  width: 100%;
}

.profile-detail-skeleton .skeleton-bullet-list {
  gap: 11px;
}

.profile-detail-skeleton .skeleton-bullet-list li {
  min-height: 22px;
}

.profile-detail-skeleton .skeleton-bullet-list .skeleton-line {
  margin-top: 5px;
}

.profile-detail-skeleton .outreach-cold-message-actions {
  justify-self: end;
}

.skeleton-message-block {
  display: grid;
  gap: 13px;
}

.skeleton-message-block .skeleton-line {
  height: 13px;
}

.skeleton-status-buttons .skeleton-button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
}

.search-profile-detail-skeleton .profile-side {
  gap: 12px;
}

.outreach-brief-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #b9dfe8;
  border-radius: 8px;
  background: #fff;
}

.outreach-brief-empty-ready {
  border-style: solid;
  background: #eefafe;
}

.outreach-brief-hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--burla-text);
}

.outreach-brief-generate {
  flex: 0 0 auto;
  justify-self: start;
}

.preferences-view {
  padding: 24px 32px 48px;
}

.preferences-panel {
  width: min(1180px, calc(100vw - 96px));
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.preferences-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.preferences-header h2 {
  margin: 2px 0 0;
  font-size: 22px;
  color: var(--burla-text);
}

.preferences-section {
  display: grid;
  gap: 10px;
}

.preferences-section h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--burla-primary);
}

.preferences-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preferences-textarea {
  width: 100%;
  min-height: 132px;
  padding: 14px 16px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: #fff;
  color: var(--burla-text);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.preferences-textarea:focus {
  outline: none;
  border-color: var(--burla-primary);
  box-shadow: 0 0 0 1px var(--burla-primary);
}

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

.cold-template-list.drag-preview-active {
  user-select: none;
}

.cold-template-row {
  position: relative;
  display: grid;
  overflow: hidden;
  gap: 0;
  padding: 0;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 33, 36, 0.04);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.14s ease,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cold-template-list.drag-preview-active .cold-template-row {
  will-change: transform;
}

.cold-template-row:focus-within {
  border-color: rgba(59, 90, 100, 0.3);
  box-shadow:
    0 0 0 1px rgba(59, 90, 100, 0.12),
    0 8px 24px rgba(21, 33, 36, 0.06);
}

.cold-template-row.dragging {
  opacity: 0.26;
  border-color: var(--burla-primary);
  box-shadow: 0 0 0 1px var(--burla-primary);
}

.cold-template-card-header {
  display: grid;
  grid-template-columns: minmax(320px, 430px) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(59, 90, 100, 0.1);
  background: #fff;
}

.cold-template-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  align-self: center;
}

.cold-template-editor {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(420px, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
}

.cold-template-drag-handle {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border-color: transparent;
  background: transparent;
  cursor: grab;
}

.cold-template-drag-handle:hover,
.cold-template-drag-handle:focus {
  border-color: var(--burla-soft-border);
  background: var(--burla-tint-soft);
}

.cold-template-drag-handle:active {
  cursor: grabbing;
}

.cold-template-drag-handle::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--burla-muted);
  box-shadow:
    0 7px 0 var(--burla-muted),
    0 14px 0 var(--burla-muted),
    8px 0 0 var(--burla-muted),
    8px 7px 0 var(--burla-muted),
    8px 14px 0 var(--burla-muted);
}

.cold-template-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.cold-template-name-field {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.cold-template-field span {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.24px;
  color: var(--burla-muted);
  text-transform: uppercase;
}

.cold-template-field input,
.cold-template-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: #fff;
  color: var(--burla-text);
  font: inherit;
  line-height: 1.45;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.cold-template-field input {
  min-height: 38px;
  font-size: 14px;
  font-weight: 600;
}

.cold-template-field textarea {
  resize: none;
}

.cold-template-kind-field textarea,
.cold-template-message-field textarea {
  min-height: 96px;
  max-height: 276px;
  overflow-y: auto;
}

.cold-template-message-field textarea {
  font-size: 15px;
  line-height: 1.5;
}

.cold-template-field input:focus,
.cold-template-field textarea:focus {
  outline: none;
  border-color: var(--burla-primary);
  box-shadow: 0 0 0 1px var(--burla-primary);
}

.cold-template-remove {
  min-height: 30px;
  padding: 5px 12px;
  font-size: 13px;
}

.preferences-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 40px;
}

.preferences-actions .preferences-save-state {
  margin: 0;
  text-align: right;
}

#save-preferences:disabled {
  opacity: 0.42;
  cursor: default;
}

.preferences-save-state.error {
  color: #b24020;
}

.sections {
  --linkedin-text: rgba(0, 0, 0, 0.9);
  --linkedin-muted: rgba(0, 0, 0, 0.6);
  --linkedin-border: rgba(0, 0, 0, 0.16);
  --linkedin-card: #fff;
  display: grid;
  gap: 10px;
  padding: 0;
}

.section-card {
  border-color: var(--linkedin-border);
  background: var(--linkedin-card);
  overflow: hidden;
  box-shadow: none;
}

.section-card h3 {
  padding: 18px 24px 10px;
  color: var(--linkedin-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

.section-card pre {
  margin: 0;
  padding: 12px;
  color: var(--burla-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.linkedin-about {
  padding: 0 24px 18px;
  color: var(--linkedin-text);
  font-size: 14px;
  line-height: 1.4286;
  overflow-wrap: anywhere;
}

.linkedin-about p,
.linkedin-item-description p,
.linkedin-line-list p {
  margin: 0;
  white-space: pre-wrap;
}

.linkedin-more-button {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--linkedin-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: inherit;
}

.linkedin-more-button:hover {
  background: transparent;
  color: var(--linkedin-text);
  text-decoration: underline;
}

.post-list {
  display: grid;
  gap: 0;
}

.post-card {
  padding: 12px;
  border-bottom: 1px solid var(--burla-soft-border);
  background: #fff;
}

.post-card:last-child {
  border-bottom: 0;
}

.post-content {
  display: grid;
  gap: 8px;
  color: var(--burla-text);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.post-content p {
  margin: 0;
  white-space: pre-wrap;
}

.post-empty {
  margin: 0;
  padding: 12px;
  color: var(--burla-muted);
  font-size: 13px;
}

.linkedin-list-shell,
.linkedin-item-list {
  display: grid;
  gap: 0;
}

.linkedin-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 24px 14px;
  border-bottom: 1px solid var(--linkedin-border);
}

.linkedin-item:last-child {
  border-bottom: 0;
}

.linkedin-item.is-hidden {
  display: none;
}

.linkedin-logo-shell {
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  background: #eef3f8;
  place-items: center;
}

.linkedin-logo-shell img,
.linkedin-logo-fallback {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.linkedin-logo-shell img {
  z-index: 1;
  object-fit: contain;
  background: #fff;
}

.linkedin-logo-fallback {
  display: grid;
  place-items: center;
  color: #425e66;
  font-size: 15px;
  font-weight: 600;
}

.linkedin-item-body {
  min-width: 0;
}

.linkedin-item h4 {
  margin: 0;
  color: var(--linkedin-text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.linkedin-item h4 a {
  color: inherit;
  text-decoration: none;
}

.linkedin-item h4 a:hover {
  color: #0a66c2;
  text-decoration: underline;
}

.linkedin-item-meta {
  margin: 1px 0 0;
  color: var(--linkedin-text);
  font-size: 14px;
  line-height: 1.25;
}

.linkedin-item-dates,
.linkedin-item-location {
  margin: 2px 0 0;
  color: var(--linkedin-muted);
  font-size: 14px;
  line-height: 1.25;
}

.linkedin-item-description {
  margin: 10px 0 0;
  color: var(--linkedin-text);
  font-size: 14px;
  line-height: 1.4286;
  overflow-wrap: anywhere;
}

.linkedin-line-list {
  display: grid;
  gap: 5px;
}

.experience-skills {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 0;
  color: var(--linkedin-text);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.linkedin-skill-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 2px solid var(--linkedin-muted);
  border-radius: 2px;
  transform: rotate(45deg) scale(0.72);
}

.linkedin-section-more {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-top: 1px solid var(--linkedin-border);
  border-radius: 0;
  background: #fff;
  color: var(--linkedin-muted);
  font-size: 14px;
  font-weight: 600;
}

.linkedin-section-more:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--linkedin-text);
}

.company-sidebar {
  background: transparent;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--burla-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-sidebar h2 {
  font-size: 24px;
  line-height: 1.08;
  font-weight: 750;
}

.company-hero,
.company-fact,
.company-text-panel,
.company-notes-panel {
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: var(--burla-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.company-list {
  overflow: auto;
  padding: 8px;
}

.company-row {
  margin-bottom: 4px;
}

.profile-item .company-status-pill.interested {
  border-color: rgba(25, 128, 56, 0.28);
  background: #e9f7ee;
  color: #0f6b2f;
}

.profile-item .company-status-pill.maybe {
  border-color: rgba(167, 109, 20, 0.28);
  background: #fff6e6;
  color: #8a570b;
}

.profile-item .company-status-pill.not_interested {
  border-color: rgba(194, 52, 40, 0.28);
  background: #fff0ee;
  color: #a1281f;
}

.profile-item .company-status-pill.unreviewed {
  border-color: rgba(59, 90, 100, 0.16);
  background: #fff;
  color: var(--burla-muted);
}

.company-detail-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.searches-view {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 12px;
}

.searches-view > .shell {
  width: 100%;
  padding: 0;
}

.searches-index {
  display: grid;
  gap: 12px;
}

.searches-index-header,
.searches-table-shell {
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: var(--burla-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.searches-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.searches-index-header h2 {
  font-size: 24px;
  line-height: 1.12;
  font-weight: 750;
}

.searches-table-shell {
  overflow: auto;
}

.searches-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.searches-table th,
.searches-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--burla-soft-border);
  text-align: left;
  vertical-align: top;
}

.searches-table th {
  color: var(--burla-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.searches-table tbody tr {
  cursor: pointer;
}

.searches-table tbody tr:hover {
  background: var(--burla-tint-soft);
}

.searches-table tbody tr:last-child td {
  border-bottom: 0;
}

.searches-table strong,
.searches-table span {
  display: block;
}

.searches-table strong {
  font-size: 14px;
  line-height: 1.25;
}

.searches-table span {
  margin-top: 4px;
  color: var(--burla-muted);
  font-size: 12px;
  line-height: 1.35;
}

.searches-table .search-row-actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.searches-table .search-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--burla-muted);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.searches-table tbody tr:hover .search-delete-button,
.searches-table tbody tr:focus-within .search-delete-button {
  opacity: 1;
}

.searches-table .search-delete-button:hover {
  background: #fff5f2;
  color: #b24020;
}

.search-delete-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.search-results-sidebar {
  background: transparent;
}

.search-sidebar-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
  margin-bottom: 10px;
  max-height: 48px;
  overflow: hidden;
  transition: max-height 0.225s ease, opacity 0.2s ease, margin-bottom 0.225s ease;
}

#search-detail-view.agent-mode .search-sidebar-actions {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.search-sidebar-actions .search-back-button {
  flex: 1 1 auto;
  width: auto;
  margin-bottom: 0;
}

.search-agent-open-button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 15px;
}

#search-detail-view.shell {
  grid-template-columns: minmax(0px, 0fr) minmax(0px, 25.5fr) minmax(0px, 74.5fr);
  transition: grid-template-columns 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#search-detail-view.agent-mode {
  grid-template-columns: minmax(0px, 66.7fr) minmax(0px, 33.3fr) minmax(0px, 0fr);
}

#search-detail-view .search-chat-panel,
#search-detail-view .search-results-sidebar,
#search-detail-view .search-detail-panel {
  min-width: 0;
}

#search-detail-view .search-chat-panel {
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.3s;
}

#search-detail-view.agent-mode .search-chat-panel {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease 0.1s, visibility 0s;
}

#search-detail-view .search-detail-panel {
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease 0.1s, visibility 0s;
}

#search-detail-view.agent-mode .search-detail-panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.3s;
}

.search-agent-results-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  overflow: hidden;
  max-height: 0;
  margin-bottom: 0;
  padding: 0 16px;
  opacity: 0;
  border: 0 solid var(--burla-soft-border);
  border-radius: 8px;
  background: var(--burla-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    max-height 0.225s ease,
    opacity 0.2s ease,
    margin-bottom 0.225s ease,
    padding 0.225s ease,
    border-width 0.225s ease;
}

#search-detail-view.agent-mode .search-agent-results-header {
  max-height: 64px;
  margin-bottom: 10px;
  padding: 14px 16px;
  opacity: 1;
  border-width: 1px;
}

.search-agent-results-header strong {
  font-size: 18px;
  font-weight: 750;
  white-space: nowrap;
}

.search-agent-results-header span {
  color: var(--burla-muted);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-chat-panel {
  align-self: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100vh - 88px);
  height: calc(100vh - 88px);
  max-height: calc(100vh - 88px);
  padding: 14px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: var(--burla-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--burla-soft-border);
}

.search-chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
}

.search-chat-header p {
  margin: 4px 0 0;
  color: var(--burla-muted);
  font-size: 12px;
  line-height: 1.35;
}

#search-chat-close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 5px 14px;
  font-size: 13px;
}

.search-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 2px;
  overflow: auto;
}

.search-chat-hint {
  color: var(--burla-muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 8px;
}

.search-chat-message {
  max-width: min(92%, 760px);
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.search-chat-message.user {
  align-self: flex-end;
  background: var(--burla-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.search-chat-message.assistant {
  align-self: flex-start;
  background: var(--burla-tint-soft);
  border: 1px solid var(--burla-soft-border);
  border-bottom-left-radius: 4px;
}

.search-chat-message.error {
  background: #fff5f2;
  border: 1px solid rgba(178, 64, 32, 0.28);
  color: #b24020;
}

.search-chat-message.busy {
  color: var(--burla-muted);
  animation: search-chat-busy-pulse 1.4s ease-in-out infinite;
}

@keyframes search-chat-busy-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.search-chat-composer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--burla-soft-border);
}

.search-chat-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 84px;
  resize: none;
  padding: 10px 13px;
  border: 1px solid var(--burla-border);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.search-chat-composer textarea:focus {
  outline: 2px solid var(--burla-accent);
  outline-offset: 0;
}

.search-chat-composer button {
  flex: 0 0 auto;
}

.search-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  min-height: 48px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 15px;
  text-align: left;
}

.search-back-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.search-result-list {
  overflow: auto;
  padding: 8px;
}

#search-company-detail {
  display: grid;
  gap: 12px;
}

.search-profile-status-buttons {
  width: 100%;
}

.search-result-status-pill.positive {
  border-color: rgba(25, 128, 56, 0.28);
  background: #e9f7ee;
  color: #0f6b2f;
}

.search-result-status-pill.interested {
  border-color: rgba(25, 128, 56, 0.28);
  background: #e9f7ee;
  color: #0f6b2f;
}

.search-result-status-pill.maybe {
  border-color: rgba(167, 109, 20, 0.28);
  background: #fff6e6;
  color: #8a570b;
}

.search-result-status-pill.check_in_1_week {
  border-color: rgba(10, 102, 194, 0.24);
  background: #eef6ff;
  color: #0a579f;
}

.search-result-status-pill.negative {
  border-color: rgba(194, 52, 40, 0.28);
  background: #fff0ee;
  color: #a1281f;
}

.search-result-status-pill.not_interested {
  border-color: rgba(194, 52, 40, 0.28);
  background: #fff0ee;
  color: #a1281f;
}

.search-result-status-pill.unreviewed {
  border-color: rgba(59, 90, 100, 0.16);
  background: #fff;
  color: var(--burla-muted);
}

.search-detail-panel .company-status-buttons button[data-status="positive"].active {
  border-color: #21845f;
  background: #21845f;
}

.search-detail-panel .company-status-buttons button[data-status="maybe"].active {
  border-color: #a76d14;
  background: #a76d14;
}

.search-detail-panel .company-status-buttons button[data-status="check_in_1_week"].active {
  border-color: #0a66c2;
  background: #0a66c2;
}

.search-detail-panel .company-status-buttons button[data-status="negative"].active {
  border-color: #bd4a45;
  background: #bd4a45;
}

.company-toolbar,
.company-hero,
.company-notes-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.company-toolbar,
.company-quick-links,
.company-facts-grid,
.company-content-grid,
.company-notes-panel,
.company-hero {
  width: 100%;
}

.company-hero {
  align-items: flex-start;
  padding: 18px;
}

.company-hero h2 {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 750;
}

.company-tagline {
  max-width: 760px;
  margin-top: 8px;
  color: var(--burla-muted);
  font-size: 16px;
  line-height: 1.45;
}

.company-status-buttons {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.company-status-buttons button {
  border-radius: 8px;
}

.company-status-buttons button.active {
  color: #fff;
}

.company-status-buttons button[data-status="interested"].active {
  border-color: #21845f;
  background: #21845f;
}

.company-status-buttons button[data-status="maybe"].active {
  border-color: #a76d14;
  background: #a76d14;
}

.company-status-buttons button[data-status="check_in_1_week"].active {
  border-color: #0a66c2;
  background: #0a66c2;
}

.company-status-buttons button[data-status="not_interested"].active {
  border-color: #bd4a45;
  background: #bd4a45;
}

.company-status-buttons button[data-status="unreviewed"].active {
  border-color: var(--burla-primary);
  background: var(--burla-primary);
}

.company-position-pill {
  min-width: 92px;
  padding: 9px 12px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 999px;
  background: var(--burla-card);
  color: var(--burla-muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.company-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.company-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--burla-border);
  border-radius: 8px;
  background: var(--burla-card);
  color: var(--burla-text);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.company-link-button:hover {
  background: var(--burla-tint-soft);
}

.company-link-button.linkedin {
  border-color: #0a66c2;
  background: #0a66c2;
  color: #fff;
}

.company-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.company-fact {
  min-height: 88px;
  padding: 16px;
}

.company-fact.wide {
  grid-column: span 2;
}

.company-specialties-panel {
  min-height: 0;
}

.company-fact small {
  display: block;
  margin-bottom: 8px;
  color: var(--burla-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.company-fact strong {
  display: block;
  line-height: 1.28;
}

.company-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.company-text-panel {
  min-height: 150px;
  padding: 18px;
}

.company-text-panel h3,
.company-notes-panel h3 {
  margin-bottom: 10px;
  color: var(--burla-text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
}

.company-text-panel p {
  color: var(--burla-muted);
  line-height: 1.55;
}

.profile-item .company-people-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 102, 194, 0.28);
  border-radius: 999px;
  padding: 2px 7px;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 650;
  background: #eaf3fb;
  color: #0a66c2;
}

.company-people-panel {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: var(--burla-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.company-people-panel h3 {
  margin-bottom: 12px;
  color: var(--burla-text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
}

.company-people-count {
  color: var(--burla-muted);
  font-size: 13px;
  font-weight: 650;
}

.company-people-group + .company-people-group {
  margin-top: 16px;
}

.company-people-group h4 {
  margin: 0 0 8px;
  color: var(--burla-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.company-people-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}

.company-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid var(--burla-soft-border);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.company-person:hover {
  background: var(--burla-tint-soft);
  border-color: var(--burla-border);
}

.company-person-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--burla-tint-weak);
  color: var(--burla-primary-hover);
  font-size: 13px;
  font-weight: 650;
}

.company-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-person-copy {
  display: grid;
  min-width: 0;
}

.company-person-copy strong {
  font-size: 14px;
  line-height: 1.25;
}

.company-person-copy span {
  overflow: hidden;
  color: var(--burla-muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.company-about-panel {
  width: 100%;
}

.company-about-source {
  margin-left: 4px;
  color: var(--burla-faint);
  font-size: 11px;
  font-weight: 500;
}

.detail-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.detail-company-chip {
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--burla-border);
  border-radius: 999px;
  background: #fff;
  color: var(--burla-text);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.detail-company-chip:hover {
  background: var(--burla-tint-soft);
}

.detail-company-chip.current {
  border-color: var(--burla-primary);
  background: var(--burla-tint-weak);
  color: var(--burla-primary-hover);
}

.company-notes-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  padding: 18px;
}

.company-save-state {
  margin-top: 12px;
}

.company-save-state:empty {
  display: none;
}

.company-save-state.saved {
  color: #21845f;
}

.company-save-state.local {
  color: #a76d14;
}

.company-save-state.error {
  color: #bd4a45;
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .auth-view {
    padding: 16px;
  }

  .auth-panel {
    padding: 22px;
  }

  .auth-copy-block h1 {
    font-size: 30px;
  }

  .auth-actions,
  .auth-actions button {
    width: 100%;
  }

  body.auth-loading .auth-view {
    padding: 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .view-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .view-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .shell {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .dashboard-summary-header {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-summary-period-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-summary-stats {
    grid-template-columns: 1fr;
  }

  .company-list {
    max-height: 300px;
  }

  .searches-view {
    padding: 12px;
  }

  .searches-table {
    min-width: 720px;
  }

  .company-hero,
  .company-toolbar,
  .company-notes-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .company-hero h2 {
    font-size: 30px;
  }

  .company-status-buttons,
  .company-quick-links,
  .company-facts-grid,
  .company-content-grid,
  .company-notes-panel {
    grid-template-columns: 1fr;
  }

  .company-fact.wide {
    grid-column: auto;
  }

  .sidebar {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .profile-list {
    flex: 0 1 auto;
    max-height: 300px;
  }

  .profile-header {
    grid-template-columns: 1fr;
  }

  .profile-main {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .profile-photo-shell {
    width: 80px;
    height: 80px;
  }

  .profile-side {
    justify-items: start;
    padding-top: 0;
  }

  .profile-menu-panel {
    left: 0;
    right: auto;
  }

  .analysis-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .analysis-content {
    grid-template-columns: 1fr;
  }

  .message-entry {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  .message-entry.outbound {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .message-entry-avatar {
    width: 32px;
    height: 32px;
  }

  .message-bubble {
    max-width: 100%;
  }

  #messages-view > .detail,
  #messages-view .empty-state,
  .message-detail {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .message-transcript-panel,
  .message-transcript {
    overflow: visible;
  }

  .message-transcript {
    padding-right: 0;
  }
}
