:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #647086;
  --line: #dbe2ed;
  --blue: #1f75fe;
  --cyan: #09a7c9;
  --green: #1a9466;
  --amber: #b97913;
  --red: #c24149;
  --navy: #18253b;
  --shadow: 0 18px 50px rgba(31, 49, 82, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  background: #162131;
  color: #eaf2ff;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 27px;
  fill: var(--blue);
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #aebbd0;
  font-size: 12px;
}

.nav-groups,
.sidebar-section {
  display: grid;
  gap: 6px;
}

.nav-item,
.space {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  color: #cbd6e7;
  background: transparent;
  font: inherit;
  text-decoration: none;
}

.nav-item.active,
.nav-item:hover,
.space.active,
.space:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-section p {
  margin: 2px 10px 6px;
  color: #8fa0b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.usage {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.usage span {
  color: #aebbd0;
  font-size: 12px;
}

.usage strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.meter {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #8bc34a);
}

.main {
  min-width: 0;
  padding: 18px;
}

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

.search-wrap {
  flex: 1;
  max-width: 820px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 1px rgba(20, 31, 48, 0.04);
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
}

kbd {
  min-width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  background: #f8fafc;
}

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

.icon-button,
.primary-button,
.avatar {
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.icon-button {
  width: 38px;
  display: grid;
  place-items: center;
}

.icon-button.small {
  width: 30px;
  height: 30px;
}

.primary-button {
  padding: 0 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  font-weight: 700;
}

.avatar {
  width: 38px;
  background: #e8f5f8;
  color: #066479;
  font-size: 13px;
  font-weight: 800;
}

.api-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #f2f6fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.api-status.live {
  background: #e9f8f1;
  color: var(--green);
}

.api-status.offline {
  background: #fff0f1;
  color: var(--red);
}

.summary-band {
  min-height: 152px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.65fr);
  align-items: center;
  gap: 24px;
  padding: 24px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 20%, rgba(9, 167, 201, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eef7fb 100%);
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 880px;
  margin-top: 7px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
  font-weight: 760;
}

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

.summary-metrics div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(31, 117, 254, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.summary-metrics strong {
  display: block;
  font-size: 26px;
}

.summary-metrics span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.workbench {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.dynamic-view {
  display: grid;
  gap: 18px;
}

.section-head {
  min-height: 142px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.55fr);
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eff7fb 100%);
}

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

.section-stats div {
  min-height: 84px;
  padding: 13px;
  border: 1px solid rgba(31, 117, 254, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.section-stats strong {
  display: block;
  font-size: 25px;
}

.section-stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.filter-panel,
.catalog-area,
.insight-panel,
.data-panel,
.lineage-card,
.domain-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.filter-panel,
.insight-panel {
  padding: 16px;
}

.panel-title,
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h2 {
  font-size: 16px;
}

.panel-title button,
#resetFilters {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select {
  height: 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--ink);
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--ink) !important;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-cloud button,
.tag {
  min-height: 28px;
  border: 1px solid #cbd7e6;
  border-radius: 999px;
  padding: 0 10px;
  background: #f8fbff;
  color: #39536f;
  font-size: 12px;
  font-weight: 700;
}

.tag-cloud button.active {
  border-color: var(--blue);
  color: var(--blue);
  background: #eef5ff;
}

.catalog-area {
  min-width: 0;
  padding: 16px;
}

.catalog-toolbar {
  margin-bottom: 14px;
}

.catalog-toolbar span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.segmented {
  height: 34px;
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6fa;
}

.segmented button {
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.segmented button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(30, 44, 68, 0.12);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}

.asset-grid.table-view {
  grid-template-columns: 1fr;
}

.asset-card {
  min-width: 0;
  min-height: 188px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(20, 31, 48, 0.03);
}

.asset-card:hover {
  border-color: rgba(31, 117, 254, 0.38);
  box-shadow: 0 10px 24px rgba(42, 69, 109, 0.09);
}

.lineage-board,
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 14px;
}

.lineage-card,
.domain-card,
.data-panel {
  padding: 16px;
}

.lineage-card-head,
.domain-head,
.request-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.lineage-card-head strong,
.domain-head strong {
  display: block;
  word-break: break-word;
}

.lineage-card-head span,
.domain-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.lineage-flow {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px;
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 13px;
}

.flow-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-row b {
  color: var(--blue);
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
}

.governance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.request-table,
.policy-list,
.domain-assets {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.request-row {
  padding: 12px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
}

.request-row strong,
.policy-row strong {
  display: block;
  word-break: break-word;
}

.request-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.request-row p {
  margin-top: 8px;
  color: #46556d;
  font-size: 13px;
  line-height: 1.4;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.request-actions em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #fff7e8;
  color: var(--amber);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.request-actions em.approved {
  background: #e9f8f1;
  color: var(--green);
}

.request-actions em.rejected {
  background: #fff0f1;
  color: var(--red);
}

.policy-row,
.domain-assets button,
.tag-matrix button {
  width: 100%;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  text-align: left;
}

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

.policy-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.tag-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.tag-matrix button {
  min-height: 72px;
  padding: 12px;
}

.tag-matrix strong,
.tag-matrix span,
.domain-assets span {
  display: block;
}

.tag-matrix span,
.domain-assets span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.domain-meter {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.domain-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.domain-assets button {
  padding: 10px;
  font-weight: 800;
}

.asset-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.asset-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf6ff;
  color: var(--blue);
}

.asset-title {
  min-width: 0;
}

.asset-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.certified {
  margin-left: auto;
  color: var(--green);
}

.asset-card p {
  margin-top: 12px;
  color: #46556d;
  font-size: 13px;
  line-height: 1.45;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.card-meta div {
  min-height: 46px;
  padding: 8px;
  border-radius: 8px;
  background: #f7f9fc;
}

.card-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.card-meta strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.lineage-map {
  position: relative;
  height: 180px;
  margin-top: 16px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff, #f2f7fb);
  overflow: hidden;
}

.lineage-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lineage-map path {
  fill: none;
  stroke: #94a7bd;
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

.node {
  position: absolute;
  z-index: 1;
  min-width: 62px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #34435b;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 20px rgba(41, 65, 98, 0.08);
}

.source {
  left: 20px;
  top: 36px;
}

.transform {
  left: 120px;
  top: 66px;
}

.selected {
  left: 190px;
  top: 62px;
  border-color: var(--blue);
  color: var(--blue);
}

.consumer {
  right: 22px;
  bottom: 30px;
}

.alerts {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.alerts div {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.alerts p {
  color: #46556d;
  font-size: 13px;
  line-height: 1.35;
}

.status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 4px;
}

.good {
  background: var(--green);
}

.warn {
  background: var(--amber);
}

.info {
  background: var(--blue);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}

.icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 20;
  width: min(520px, 100vw);
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: translateX(104%);
  transition: transform 180ms ease;
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(14, 26, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.drawer h2 {
  padding-right: 42px;
  font-size: 24px;
}

.drawer-subtitle {
  margin-top: 6px;
  color: var(--muted);
}

.drawer-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.schema-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 92px 80px;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}

.schema-row span {
  color: var(--muted);
}

.drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.secondary-button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.danger-button {
  height: 38px;
  border: 1px solid #f0c5c9;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff4f5;
  color: var(--red);
  font-weight: 800;
}

.inline-form,
.request-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.tag-button {
  cursor: pointer;
}

.lineage-row {
  grid-template-columns: minmax(120px, 1fr) 90px minmax(120px, 1fr);
}

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

.request-list div {
  padding: 10px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #f8fafc;
}

.request-list div span {
  float: right;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.request-list p {
  clear: both;
  margin-top: 6px;
  color: #46556d;
  font-size: 13px;
}

.modal {
  width: min(720px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(14, 26, 42, 0.32);
}

.modal form {
  padding: 20px;
}

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

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

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 14px;
  font-weight: 700;
}

.toast.open {
  opacity: 1;
  transform: translateY(0);
}

.toast.good {
  border-color: #bfe6d3;
}

.toast.warn {
  border-color: #efd4a8;
}

@media (max-width: 1180px) {
  .workbench {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .insight-panel {
    grid-column: 1 / -1;
  }

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

  .section-head,
  .governance-grid {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .workbench {
    grid-template-columns: 1fr;
    display: grid;
  }

  .top-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .summary-metrics,
  .section-stats,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .request-row {
    display: grid;
  }

  .request-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .main {
    padding: 12px;
  }

  .summary-band {
    padding: 18px;
  }

  .primary-button {
    padding: 0 10px;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }

  .api-status {
    order: 10;
    width: 100%;
    justify-content: center;
  }
}

/* Analytics space */

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.bad {
  background: var(--red);
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  min-height: 30px;
}

.bar-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 7px;
}

.bar-label .status {
  margin-top: 0;
  flex: none;
}

.bar-track {
  height: 8px;
  border-radius: 4px;
  background: #edf1f7;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--blue);
  min-width: 2px;
}

.bar-fill[style*="width: 0%"] {
  min-width: 0;
}

.bar-fill.q-good {
  background: var(--green);
}

.bar-fill.q-warn {
  background: var(--amber);
}

.bar-fill.q-bad {
  background: var(--red);
}

.bar-value {
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Marketplace space */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.listing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chip {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1a5fd0;
}

.rating {
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
}

.listing-card > strong {
  font-size: 15px;
}

.listing-provider {
  font-size: 12px;
  color: var(--muted);
}

.listing-card p {
  margin: 0;
  color: #46556d;
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
}

.listing-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.listing-foot > span {
  font-size: 12px;
  color: var(--muted);
}
