:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f7f8;
  color: #182026;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid #d9e0e3;
  background: #ffffff;
  padding: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1b6b6f;
  color: #ffffff;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 4px;
  color: #5d6d74;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.25;
}

h2 {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.35;
}

.search-box {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
  color: #506168;
  font-size: 13px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5d9;
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  color: #182026;
}

.search-box input:focus {
  border-color: #1b6b6f;
  box-shadow: 0 0 0 3px rgba(27, 107, 111, 0.16);
}

.filter-group {
  padding: 18px 0;
  border-top: 1px solid #edf1f2;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  border: 1px solid #cbd5d9;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 12px;
  color: #263238;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: #1b6b6f;
  border-color: #1b6b6f;
  color: #ffffff;
}

.toggle-list {
  display: grid;
  gap: 10px;
}

.toggle-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  color: #314148;
}

.results-panel {
  padding: 28px clamp(20px, 4vw, 48px);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.toolbar h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid #cbd5d9;
  border-radius: 8px;
  background: #ffffff;
  color: #263238;
  cursor: pointer;
}

.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-left: 4px solid #c58b2b;
  background: #fff8ea;
  color: #3b3324;
}

.result-summary {
  margin-bottom: 12px;
  color: #506168;
  font-size: 14px;
}

.clinic-list {
  display: grid;
  gap: 14px;
}

.clinic-card {
  border: 1px solid #d9e0e3;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.clinic-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 14px;
}

.clinic-header h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.clinic-meta {
  color: #5d6d74;
  font-size: 14px;
}

.verified {
  height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  background: #e8f3f0;
  color: #0d5b46;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag {
  border-radius: 6px;
  background: #eef3f4;
  padding: 6px 8px;
  color: #314148;
  font-size: 13px;
}

.clinic-note {
  margin: 0;
  color: #3b474d;
  line-height: 1.55;
}

.empty {
  border: 1px dashed #aebbc0;
  border-radius: 8px;
  padding: 32px;
  background: #ffffff;
  color: #506168;
  text-align: center;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #d9e0e3;
  }

  .clinic-header,
  .toolbar,
  .notice {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .sidebar,
  .results-panel {
    padding: 20px;
  }

  .toolbar,
  .notice,
  .clinic-header {
    display: grid;
  }
}
