:root {
  color-scheme: light;
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --success: 142.1 76.2% 36.3%;
  --warning: 37.7 92.1% 50.2%;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: hsl(210 40% 98%);
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 16px;
  background: hsl(210 40% 98%);
}

.login-card {
  display: grid;
  width: min(380px, 100%);
  gap: 14px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  padding: 18px;
  box-shadow: 0 18px 50px hsl(222.2 84% 4.9% / 0.08);
}

.login-brand {
  margin-bottom: 4px;
}

.login-error {
  min-height: 18px;
  color: hsl(var(--destructive));
  font-size: 12px;
}

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

button {
  appearance: none;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.toolbar,
.search-panel,
.history-panel,
.contacts-panel,
.table-wrap,
.status-strip,
.home-usage,
.detail-header {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px hsl(222.2 84% 4.9% / 0.04);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

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

.brand-link:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h2 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.brand p,
.panel-heading p,
.muted-text,
.location-modal-header p,
.contact-modal-header p {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
}

.view-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  border-radius: var(--radius);
  background: hsl(var(--muted));
  padding: 4px;
}

.view-tabs button,
button,
.button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 12px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, opacity 120ms ease;
}

.view-tabs button {
  min-width: 104px;
  border-color: transparent;
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.view-tabs button.active {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px hsl(222.2 84% 4.9% / 0.08);
}

.view-tabs span {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 11px;
  font-weight: 700;
}

button:hover,
.button:hover {
  background: hsl(var(--primary) / 0.92);
}

button:disabled,
.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.secondary {
  border-color: hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.secondary:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.search-panel,
.history-panel,
.contacts-panel,
.status-strip,
.table-wrap,
.home-usage,
.detail-header {
  margin-top: 12px;
}

.search-panel,
.history-panel,
.contacts-panel {
  padding: 12px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.1fr) 82px 96px auto;
  gap: 10px;
  align-items: end;
}

label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: hsl(var(--foreground));
  font-size: 12px;
  font-weight: 600;
}

label span {
  overflow: hidden;
  color: hsl(var(--muted-foreground));
  text-overflow: ellipsis;
  white-space: nowrap;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input,
select {
  height: 36px;
  padding: 0 10px;
}

textarea {
  min-height: 92px;
  padding: 9px 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.12);
}

input[readonly] {
  cursor: pointer;
}

input.location-selected {
  border-color: hsl(var(--success) / 0.45);
  background: hsl(142.1 76.2% 36.3% / 0.08);
  color: hsl(142.1 70.6% 26.3%);
  font-weight: 600;
}

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

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.detail-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.detail-header h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-button {
  width: auto;
  min-width: 72px;
}

.history-list {
  display: grid;
  gap: 8px;
}

.contact-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(160px, 1.6fr) 78px;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 8px 10px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.filter-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 7px 9px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 12px;
  font-weight: 500;
}

.history-item:hover,
.filter-chip:hover,
.filter-chip.active {
  border-color: hsl(var(--ring));
  background: hsl(var(--accent));
}

.history-query,
.history-location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-query {
  color: hsl(var(--foreground));
  font-weight: 750;
}

.history-location {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
}

.history-count {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.status-strip {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 118px 88px 110px minmax(130px, 0.7fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.home-usage {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) minmax(120px, 0.8fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.metric-label {
  display: block;
  margin-bottom: 3px;
  color: hsl(var(--muted-foreground));
  font-size: 11px;
  font-weight: 600;
}

.status-strip strong {
  display: block;
  min-height: 20px;
  overflow: hidden;
  color: hsl(var(--foreground));
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-usage strong {
  display: block;
  min-height: 20px;
  overflow: hidden;
  color: hsl(var(--foreground));
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track,
.home-usage-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(var(--secondary));
}

.progress-track span,
.home-usage-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: hsl(var(--primary));
  transition: width 160ms ease;
}

.home-usage-track span {
  background: hsl(var(--success));
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid hsl(var(--border));
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 11px;
  font-weight: 700;
}

td {
  color: hsl(var(--foreground));
  font-size: 13px;
}

td:first-child {
  min-width: 200px;
  font-weight: 650;
}

td:nth-child(2) {
  min-width: 132px;
}

td:nth-child(3) {
  min-width: 300px;
  color: hsl(var(--muted-foreground));
}

td:nth-child(5) {
  min-width: 150px;
}

tr:last-child td {
  border-bottom: 0;
}

.empty-row td {
  height: 140px;
  color: hsl(var(--muted-foreground));
  text-align: center;
  vertical-align: middle;
}

.score-badge,
.status-badge {
  display: inline-flex;
  min-width: 44px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
}

.score-high {
  background: hsl(142.1 76.2% 36.3% / 0.12);
  color: hsl(142.1 70.6% 26.3%);
}

.score-mid {
  background: hsl(37.7 92.1% 50.2% / 0.16);
  color: hsl(32.1 94.6% 28.9%);
}

.score-low {
  background: hsl(var(--destructive) / 0.12);
  color: hsl(0 72.2% 50.6%);
}

.score-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 6px;
}

.score-tag {
  display: inline-flex;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  padding: 2px 6px 2px 2px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.score-tag-icon {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 9px;
  font-weight: 800;
}

.score-tag-maps {
  border-color: hsl(var(--success) / 0.22);
  background: hsl(var(--success) / 0.12);
  color: hsl(142.1 70.6% 26.3%);
}

.score-tag-maps .score-tag-icon {
  background: hsl(var(--success));
  color: white;
}

.score-tag-reviews {
  border-color: hsl(var(--warning) / 0.22);
  background: hsl(var(--warning) / 0.16);
  color: hsl(32.1 94.6% 28.9%);
}

.score-tag-reviews .score-tag-icon {
  background: hsl(var(--warning));
  color: hsl(var(--foreground));
}

.score-tag-competitor {
  border-color: hsl(173.4 80.4% 40% / 0.22);
  background: hsl(173.4 80.4% 40% / 0.12);
  color: hsl(175.3 77.4% 26.1%);
}

.score-tag-competitor .score-tag-icon {
  background: hsl(173.4 80.4% 40%);
  color: white;
}

.map-link,
.address-link,
.phone-link {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: hsl(var(--border));
  text-underline-offset: 3px;
  word-break: break-word;
}

.map-link:hover,
.address-link:hover,
.phone-link:hover {
  text-decoration-color: hsl(var(--primary));
}

.add-contact-button {
  height: 32px;
  min-width: 64px;
  padding: 0 10px;
  font-size: 12px;
}

.add-contact-button.added {
  border-color: hsl(var(--success) / 0.25);
  background: hsl(var(--success) / 0.12);
  color: hsl(142.1 70.6% 26.3%);
}

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

.contact-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 150px 68px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 12px;
  background: hsl(var(--background));
  cursor: pointer;
  outline: none;
}

.contact-row:hover,
.contact-row:focus-visible {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.contact-main,
.contact-meta {
  min-width: 0;
}

.contact-main strong,
.contact-meta strong,
.contact-main span,
.contact-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-main strong,
.contact-meta strong {
  font-size: 13px;
}

.contact-main span,
.contact-meta span {
  margin-top: 3px;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
}

.status-badge {
  min-width: 0;
  width: fit-content;
  height: auto;
  min-height: 26px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  white-space: nowrap;
}

.status-Aranacak {
  background: hsl(142.1 76.2% 36.3% / 0.12);
  color: hsl(142.1 70.6% 26.3%);
}

.status-Arandı {
  background: hsl(262.1 83.3% 57.8% / 0.12);
  color: hsl(263.4 70% 40%);
}

.status-Sonuç-Alınamadı {
  background: hsl(var(--destructive) / 0.12);
  color: hsl(0 72.2% 50.6%);
}

.status-Teklif-Gönderildi {
  background: hsl(var(--warning) / 0.16);
  color: hsl(32.1 94.6% 28.9%);
}

.status-Müşteri-Oldu {
  background: hsl(173.4 80.4% 40% / 0.12);
  color: hsl(175.3 77.4% 26.1%);
}

.location-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: hsl(var(--background));
}

.location-modal-header,
.location-modal-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-color: hsl(var(--border));
  background: hsl(var(--card));
}

.location-modal-header {
  min-height: 68px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid hsl(var(--border));
}

.location-modal-footer {
  display: grid;
  grid-template-columns: auto minmax(110px, 220px);
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid hsl(var(--border));
}

.close-modal-button {
  min-width: 68px;
}

.map-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.45);
}

.map-actions {
  display: flex;
  gap: 8px;
}

.map-actions button {
  min-width: 40px;
  width: auto;
}

.map-picker {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: hsl(var(--muted));
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  border-radius: 6px;
  padding: 2px 6px;
  background: hsl(var(--background) / 0.9);
  color: hsl(var(--muted-foreground));
  font-size: 10px;
  text-decoration: none;
}

.tile-layer,
.tile-layer img,
.map-pin {
  position: absolute;
}

.tile-layer {
  inset: 0;
}

.tile-layer img {
  width: 256px;
  height: 256px;
  max-width: none;
}

.map-pin {
  width: 24px;
  height: 24px;
  margin-top: -24px;
  margin-left: -12px;
  border: 3px solid hsl(var(--background));
  border-radius: 50% 50% 50% 0;
  background: hsl(var(--destructive));
  box-shadow: 0 8px 18px hsl(222.2 84% 4.9% / 0.22);
  transform: rotate(-45deg);
}

.map-pin::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: hsl(var(--background));
}

#confirmLocationButton:not(:disabled) {
  background: hsl(var(--success));
  color: white;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: hsl(222.2 84% 4.9% / 0.45);
}

.contact-modal-card {
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  box-shadow: 0 24px 80px hsl(222.2 84% 4.9% / 0.22);
}

.contact-modal-header,
.contact-modal-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
}

.contact-modal-header {
  border-bottom: 1px solid hsl(var(--border));
}

.contact-modal-footer {
  justify-content: flex-end;
  border-top: 1px solid hsl(var(--border));
}

.contact-modal-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px 10px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 10px;
  background: hsl(var(--muted) / 0.45);
}

.detail-grid span {
  color: hsl(var(--muted-foreground));
  font-size: 11px;
  font-weight: 700;
}

.detail-grid strong,
.detail-grid a {
  min-width: 0;
  font-size: 13px;
  word-break: break-word;
}

@media (max-width: 1080px) {
  .toolbar,
  .search-form,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .view-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .view-tabs button {
    flex: 1;
    min-width: 0;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr 74px;
  }

  button,
  .button {
    width: 100%;
  }

  .back-button {
    width: auto;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 12px;
  }

  .app-shell {
    padding: 8px;
  }

  .toolbar,
  .search-panel,
  .history-panel,
  .contacts-panel,
  .status-strip,
  .home-usage,
  .detail-header {
    padding: 10px;
  }

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

  .toolbar .brand {
    gap: 0;
  }

  .toolbar .brand div {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  h1 {
    font-size: 15px;
  }

  h2 {
    font-size: 14px;
  }

  .brand p,
  .panel-heading p,
  .muted-text,
  .location-modal-header p,
  .contact-modal-header p {
    font-size: 11px;
  }

  .view-tabs button,
  button,
  .button {
    height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

  input,
  select {
    height: 38px;
    padding: 0 9px;
    font-size: 16px;
  }

  textarea {
    font-size: 16px;
  }

  label {
    font-size: 11px;
  }

  .actions {
    grid-template-columns: 1fr 1fr 64px;
    gap: 6px;
  }

  .panel-heading {
    display: block;
    margin-bottom: 8px;
  }

  .history-list {
    gap: 8px;
  }

  .history-item {
    grid-template-columns: minmax(74px, 0.75fr) minmax(0, 1fr) 58px;
    min-height: 42px;
    gap: 6px;
    padding: 8px;
  }

  .history-location {
    font-size: 11px;
  }

  .history-count {
    height: 24px;
    font-size: 10px;
  }

  .contacts-list {
    margin-top: 14px;
  }

  .status-strip {
    gap: 8px;
  }

  .home-usage {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .metric-label {
    font-size: 10px;
  }

  .status-strip strong,
  .home-usage strong {
    font-size: 12px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  thead {
    display: none;
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 9px;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px hsl(222.2 84% 4.9% / 0.04);
  }

  td {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    min-width: 0 !important;
    padding: 7px 0;
    border-bottom: 1px solid hsl(var(--border));
    font-size: 12px;
    word-break: break-word;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: hsl(var(--muted-foreground));
    font-size: 10px;
    font-weight: 700;
  }

  .empty-row td {
    display: block;
    height: 120px;
    padding: 50px 8px;
  }

  .empty-row td::before {
    content: "";
  }

  .score-badge,
  .status-badge {
    min-height: 24px;
    height: 24px;
    font-size: 11px;
  }

  .score-tags {
    grid-column: 2;
    gap: 3px;
    margin-top: 5px;
  }

  .score-tag {
    min-height: 20px;
    gap: 3px;
    padding: 1px 5px 1px 2px;
    font-size: 9px;
  }

  .score-tag-icon {
    min-width: 16px;
    height: 16px;
    font-size: 8px;
  }

  .contact-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .contact-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-height: 32px;
    font-size: 11px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 0;
    padding: 12px;
  }

  .contact-main strong,
  .contact-meta strong {
    font-size: 12px;
  }

  .contact-main span,
  .contact-meta span {
    overflow: visible;
    font-size: 11px;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }

  .location-modal-header,
  .location-modal-footer,
  .map-search-form {
    padding-left: 10px;
    padding-right: 10px;
  }

  .location-modal-header {
    align-items: flex-start;
    min-height: 62px;
  }

  .map-search-form {
    grid-template-columns: 1fr 58px;
    gap: 6px;
  }

  .location-modal-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .map-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;
    gap: 6px;
  }

  .contact-modal {
    align-items: stretch;
    padding: 0;
  }

  .contact-modal-card {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .contact-modal-header,
  .contact-modal-body,
  .contact-modal-footer {
    padding: 10px;
  }

  .contact-modal-footer button {
    width: 100%;
  }

  .detail-grid {
    grid-template-columns: 64px minmax(0, 1fr);
    font-size: 12px;
  }
}
