:root {
  --bg-a: #f5f3ff;
  --bg-b: #ede9fe;
  --ink: #2e1065;
  --ink-soft: #6b5ea0;
  --line: #ddd6fe;
  --panel: #ffffff;
  --brand: #7c3aed;
  --brand-dark: #5b21b6;
  --mint: #a78bfa;
  --danger: #da5b5b;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(76, 29, 149, 0.12);
  --btn-font-size: 0.92rem;
  --btn-line-height: 1.2;
  --btn-min-height: 42px;
  --btn-small-font-size: 0.82rem;
  --btn-small-min-height: 34px;
  --company-stack-height: 680px;
}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at -5% -20%, #ede9fe 0%, transparent 70%),
    radial-gradient(900px 500px at 110% 15%, #ddd6fe 0%, transparent 68%),
    linear-gradient(160deg, var(--bg-a) 0%, var(--bg-b) 80%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Arial", sans-serif;
}

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.25;
  z-index: 0;
}

.ambient-a {
  width: 340px;
  height: 340px;
  background: #c4b5fd;
  top: -120px;
  right: -110px;
}

.ambient-b {
  width: 380px;
  height: 380px;
  background: #a78bfa;
  bottom: -140px;
  left: -130px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  backdrop-filter: blur(10px);
  background: rgba(245, 243, 255, 0.88);
  border-bottom: 1px solid rgba(196, 181, 253, 0.65);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.auth-user {
  font-size: 0.82rem;
  color: #4c1d95;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 600;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 118px;
  max-width: 24vw;
}

.brand-wrap h1 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-wrap p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.status-pill {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-pill.idle {
  color: #5b21b6;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.status-pill.busy {
  color: #5b21b6;
  background: #ede9fe;
  border-color: #c4b5fd;
}

.status-pill.error {
  color: #8f1d1d;
  background: #fff1f1;
  border-color: #f4cccc;
}

.hidden {
  display: none !important;
}

.auth-gate {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(440px, 100%);
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.dashboard {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 22px 24px 32px;
}

.view-toolbar {
  grid-column: span 12;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-sync-status {
  grid-column: span 12;
  grid-row: 2;
  margin-top: -6px;
}

.view-switch {
  display: inline-flex;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.view-switch .btn {
  min-width: 140px;
}

.view-switch .btn.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), #a78bfa 75%);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

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

.dashboard.view-candidate .company-only {
  display: none !important;
}

.dashboard.view-company .candidate-only {
  display: none !important;
}

.dashboard.view-candidate .panel-upload {
  grid-column: span 12;
}

.dashboard.view-company .panel-threads {
  grid-column: 1 / span 2;
  grid-row: 3;
  height: var(--company-stack-height);
  max-height: var(--company-stack-height);
}

.dashboard.view-company .company-center {
  grid-column: 3 / span 5;
  grid-row: 3;
  display: grid;
  gap: 12px;
  align-self: start;
}

.dashboard.view-company .panel-request {
  grid-column: auto;
  grid-row: auto;
  align-self: start;
}

.dashboard.view-company .panel-map {
  grid-column: 8 / span 5;
  grid-row: 3;
  align-self: start;
}

.dashboard.view-company .panel-results {
  grid-column: auto;
  grid-row: auto;
  align-self: start;
}

.dashboard.view-company .panel-chat {
  grid-column: 1 / span 12;
  grid-row: 4;
}

.panel {
  background: var(--panel);
  border: 1px solid #ddd6fe;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel h2 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.panel h3 {
  margin: 0;
  font-size: 0.96rem;
}

.panel-note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 12px;
}

.panel-upload {
  grid-column: span 5;
}

.panel-request {
  grid-column: span 5;
}

.panel-threads {
  grid-column: span 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  align-self: stretch;
  min-height: 0;
  gap: 10px;
  max-height: none;
  overflow: hidden;
}

.panel-results {
  grid-column: span 6;
}

.panel-map {
  grid-column: span 6;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  position: sticky;
  top: 90px;
  align-self: start;
  min-height: 0;
  z-index: 0;
}

.panel-chat {
  grid-column: span 12;
  position: relative;
  z-index: 1;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.panel-title-row h2 {
  margin: 0;
}

.panel-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.thread-toggle-btn {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.thread-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: #a78bfa;
  background: #ede9fe;
}

.dropzone {
  border: 1.5px dashed #a78bfa;
  border-radius: 14px;
  background: #f5f3ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-height: 140px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dropzone:hover,
.dropzone.dragging {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.3);
}

.dropzone.has-file {
  border-color: #8b5cf6;
  background: #f5f3ff;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25);
}

.dropzone input {
  display: none;
}

.dropzone span {
  font-weight: 600;
}

.dropzone small {
  color: var(--ink-soft);
}

.dropzone.has-file small {
  color: #5b21b6;
  font-weight: 600;
}

.upload-actions-stack {
  display: grid;
  gap: 10px;
}

.sync-progress {
  margin-top: 8px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #ede9fe;
  overflow: hidden;
}

.sync-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(100deg, #7c3aed, #a78bfa);
}

.upload-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.upload-action-row > .btn {
  min-width: 230px;
}

.upload-action-row .card-actions {
  margin-left: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: var(--btn-font-size);
  line-height: var(--btn-line-height);
  min-height: var(--btn-min-height);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-small {
  padding: 8px 10px;
  font-size: var(--btn-small-font-size);
  min-height: var(--btn-small-min-height);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), #a78bfa 75%);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.28);
}

.btn-secondary {
  color: #fff;
  background: linear-gradient(120deg, #8b5cf6, var(--mint));
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.24);
}

.btn-ghost {
  color: #5b21b6;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}

.inline-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.inline-row-single {
  grid-template-columns: 1fr;
}

.inline-row .field {
  margin: 0;
}

.linkedin-cookie-row {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.linkedin-session-actions {
  grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr);
}

.linkedin-session-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.linkedin-session-toolbar .btn {
  min-width: 220px;
}

.advanced-box {
  margin-top: 8px;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  background: #fcfbff;
  padding: 8px 10px;
}

.advanced-box summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5b21b6;
  list-style: none;
}

.advanced-box summary::-webkit-details-marker {
  display: none;
}

.advanced-box summary::before {
  content: "▸";
  margin-right: 8px;
  color: #6d28d9;
}

.advanced-box[open] summary::before {
  content: "▾";
}

.advanced-box[open] .linkedin-cookie-row {
  margin-top: 8px;
}

.request-filter-row {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 4px;
}

.request-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: nowrap;
  min-width: 0;
}

.request-actions-row .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

#extractRequestBtn {
  margin-left: 0;
}

.panel-request {
  overflow-x: clip;
}

.request-panel-body {
  display: grid;
  gap: 0;
  max-height: 2100px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.2s ease, transform 0.22s ease;
}

.panel-request.request-collapsed .request-panel-body {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.panel-request.request-collapsed {
  padding-bottom: 12px;
}

.topk-row-field {
  max-width: 240px;
  margin: 12px 0 4px;
}

.field {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.field span {
  font-size: 0.78rem;
  color: #5b4b8a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  font: inherit;
  padding: 10px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  resize: vertical;
}

.toggle-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  background: #f8f5ff;
}

.toggle-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.toggle-field span {
  font-size: 0.84rem;
  color: #5b21b6;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.toggle-field small {
  grid-column: 2 / 3;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.result-box {
  margin-top: 10px;
  border: none;
  background: transparent;
  border-radius: 0;
  min-height: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #4c1d95;
}

.status-stream {
  margin-top: 10px;
  border: 1px solid #ddd6fe;
  background: #f8f5ff;
  border-radius: 10px;
  min-height: 54px;
  padding: 10px;
  font-size: 0.9rem;
  color: #4c1d95;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.toolbar-sync-status {
  margin-top: 0;
}

.toolbar-sync-status.is-collapsed {
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.sync-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sync-status-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sync-collapse-btn {
  width: 26px;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.sync-collapse-btn:hover {
  transform: translateY(-1px);
  border-color: #a78bfa;
  background: #ede9fe;
}

.sync-status-summary {
  margin-top: 6px;
}

.chat-status-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 10px;
}

.upload-log {
  display: grid;
  gap: 8px;
}

.upload-line {
  border: 1px solid #ddd6fe;
  background: #f8f5ff;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.88rem;
  color: #4c1d95;
  display: grid;
  gap: 8px;
}

.upload-line-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cards {
  display: grid;
  gap: 12px;
}

.map-status {
  border: 1px solid #ddd6fe;
  background: #f8f5ff;
  border-radius: 10px;
  min-height: 46px;
  padding: 8px 10px;
  font-size: 0.86rem;
  color: #4c1d95;
  display: grid;
  align-items: center;
}

.match-map {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  overflow: hidden;
}

.request-city-pin {
  background: transparent;
  border: none;
}

.request-city-pin span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #7c3aed;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.40);
}

.thread-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.thread-empty {
  border: 1px dashed #ddd6fe;
  border-radius: 12px;
  padding: 14px;
  color: #6b5ea0;
  background: #f8f5ff;
  font-size: 0.88rem;
}

.thread-item {
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfbff 0%, #f5f3ff 100%);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.thread-item.active {
  border-color: #8b5cf6;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.20);
}

.thread-main {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  width: 100%;
  min-width: 0;
  cursor: pointer;
  display: grid;
  gap: 4px;
}

.thread-title {
  font-weight: 700;
  color: #4c1d95;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.thread-city,
.thread-date {
  color: #6b5ea0;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.thread-icon-btn {
  width: 26px;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.thread-icon-btn:hover {
  transform: translateY(-1px);
  border-color: #a78bfa;
  background: #ede9fe;
}

.thread-icon-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.candidate-card {
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  background: #fcfbff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.score-stack {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.card-title {
  font-weight: 700;
}

.card-identity-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: #5b4b8a;
  font-size: 0.79rem;
}

.card-identity-meta strong {
  color: #4c1d95;
}

.score-chip {
  font-size: 0.78rem;
  font-weight: 700;
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
  border-radius: 999px;
  padding: 5px 10px;
}

.score-chip-business {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.score-chip-database {
  background: #f3e8ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.score-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: center;
  gap: 10px;
}

.score-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b4b8a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.score-track {
  width: 100%;
  height: 8px;
  background: #ede9fe;
  border-radius: 999px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(100deg, #7c3aed, #a78bfa);
}

.score-fill-business {
  background: linear-gradient(100deg, #7c3aed, #a78bfa);
}

.score-fill-database {
  background: linear-gradient(100deg, #6d28d9, #c4b5fd);
}

.card-sub,
.card-reason,
.card-skills,
.gen-status {
  color: #5b4b8a;
  font-size: 0.86rem;
  line-height: 1.4;
}

.card-meta {
  color: #6b5ea0;
  font-size: 0.8rem;
}

.card-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 0.82rem;
  color: #5b4b8a;
}

.card-meta-grid strong {
  color: #4c1d95;
}

.compare-box {
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  background: #f8f5ff;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.compare-title {
  color: #5b21b6;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-grid {
  display: grid;
  gap: 4px;
  color: #6b5ea0;
  font-size: 0.83rem;
}

.compare-grid strong {
  color: #4c1d95;
}

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

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #ddd6fe;
  border-top-color: #7c3aed;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
}

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

.chat-result {
  margin-top: 10px;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  background: #fcfbff;
  padding: 10px;
  min-height: 60px;
  overflow: auto;
}

.chat-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}

.card-actions .btn,
.card-actions .leanteq-download-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--btn-font-size);
  line-height: var(--btn-line-height);
  min-height: var(--btn-min-height);
}

.card-actions a.btn,
.card-actions a.btn:visited {
  color: #5b21b6;
}

.chat-result pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.77rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  padding: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.8rem;
}

.chat-table th,
.chat-table td {
  border: 1px solid #ddd6fe;
  padding: 6px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.chat-table th {
  background: #f5f3ff;
  color: #5b21b6;
}

.chat-actions {
  min-width: 240px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 1160px) {
  .view-toolbar {
    align-items: stretch;
  }

  .dashboard.view-candidate .panel-upload,
  .company-center,
  .panel-threads,
  .panel-upload,
  .panel-request,
  .panel-results,
  .panel-map,
  .panel-chat {
    grid-column: span 12;
    grid-row: auto;
  }

  .panel-threads {
    min-height: 0;
    height: auto !important;
    max-height: none;
    overflow: visible;
  }

  .panel-map {
    position: static;
    top: auto;
    min-height: 0;
    height: auto !important;
  }

  .match-map {
    min-height: 300px;
    height: 300px !important;
  }

  .thread-list {
    max-height: 320px;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 10px 14px;
  }

  .dashboard {
    padding: 14px;
  }

  .inline-row {
    grid-template-columns: 1fr;
  }

  .request-filter-row {
    grid-template-columns: 1fr;
  }

  .request-actions-row {
    flex-wrap: wrap;
  }

  .request-actions-row > .btn {
    min-width: 100%;
  }

  #extractRequestBtn {
    margin-left: 0;
  }

  .linkedin-cookie-row,
  .linkedin-session-actions {
    grid-template-columns: 1fr;
  }

  .linkedin-session-toolbar .btn {
    width: 100%;
    min-width: 0;
  }

  .score-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .upload-action-row {
    flex-wrap: wrap;
  }

  .upload-action-row > .btn {
    min-width: 100%;
  }

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

}
