#hdb-shops-workspace { display: grid; gap: 14px; min-width: 0; }
.hdb-page-head { margin-bottom: 2px; }
.hdb-source-band {
  display: grid; grid-template-columns: minmax(280px, 1.2fr) minmax(360px, 1fr) auto;
  gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--line);
  background: #fff; border-radius: 7px;
}
.hdb-source-band > div:first-child { display: grid; gap: 3px; }
.hdb-source-band > div:first-child > span { color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: 0; }
.hdb-source-band strong { color: var(--ink); font-size: 16px; }
.hdb-source-band p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.hdb-source-band dl { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); margin: 0; }
.hdb-source-band dl div { display: grid; gap: 5px; padding: 2px 14px; border-left: 1px solid var(--line); }
.hdb-source-band dt { color: var(--muted); font-size: 9px; font-weight: 600; }
.hdb-source-band dd { margin: 0; color: var(--ink); font-size: 10px; font-weight: 600; }
.hdb-source-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.hdb-source-actions a, .hdb-register button, .hdb-row-actions button {
  min-height: 34px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--green); font: inherit; font-size: 10px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.hdb-source-actions .listing-primary { border-color: var(--orange); background: var(--orange); color: #fff; }
.hdb-source-actions button:disabled, .hdb-register button:disabled { cursor: not-allowed; opacity: .55; }
.hdb-summary {
  display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); margin: 0;
  border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden;
}
.hdb-summary div { display: grid; gap: 4px; padding: 13px 16px; border-right: 1px solid var(--line); }
.hdb-summary div:last-child { border-right: 0; }
.hdb-summary dt { color: var(--muted); font-size: 9px; }
.hdb-summary dd { margin: 0; color: var(--ink); font-family: "Fraunces", serif; font-size: 19px; font-weight: 700; }
.hdb-tabs { display: flex; align-items: flex-end; gap: 0; padding: 0 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; background: #f7f8f5; }
.hdb-tabs button { display: flex; gap: 8px; align-items: center; min-height: 42px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.hdb-tabs button[aria-selected="true"] { border-bottom-color: var(--green); color: var(--green); background: #fff; }
.hdb-tabs button span { min-width: 20px; padding: 2px 5px; border-radius: 9px; background: #e7eee9; font-size: 8px; text-align: center; }
.hdb-register { min-width: 0; margin-top: -14px; border: 1px solid var(--line); border-radius: 0 0 7px 7px; background: #fff; overflow: hidden; }
.hdb-register > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.hdb-register > header > div { display: flex; align-items: baseline; gap: 10px; }
.hdb-register h2 { margin: 0; color: var(--ink); font-size: 13px; }
.hdb-register header span { color: var(--muted); font-size: 9px; }
.hdb-toolbar { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .8fr) minmax(145px, .7fr) 135px auto; gap: 10px; align-items: end; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.hdb-toolbar label { display: grid; gap: 4px; min-width: 0; color: var(--ink); font-size: 9px; font-weight: 700; }
.hdb-toolbar input, .hdb-toolbar select { width: 100%; min-height: 34px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; }
.hdb-table-scroll { width: 100%; overflow-x: auto; }
.hdb-table { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: auto; }
.hdb-table th, .hdb-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 9px; text-align: left; vertical-align: top; }
.hdb-table thead th { background: #f7f8f5; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.hdb-table th button { min-height: 0; padding: 0; border: 0; background: transparent; color: inherit; text-transform: inherit; }
.hdb-table td strong, .hdb-table td small { display: block; }
.hdb-table td strong { margin-bottom: 3px; font-size: 10px; }
.hdb-table td small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.hdb-table .hdb-warning { color: #9a5f00; font-weight: 700; }
.hdb-group-row th { padding: 8px 12px; background: #edf3ef; color: #446356; font-size: 9px; font-weight: 700; text-transform: none; }
.hdb-row-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; min-width: 105px; }
.hdb-row-actions button { min-height: 29px; padding: 5px 8px; font-size: 8px; white-space: nowrap; }
.hdb-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border-radius: 10px; background: #edf0ed; color: #5f6d66; font-size: 7px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.hdb-badge.active, .hdb-badge.matched, .hdb-badge.verified, .hdb-badge.resolved { background: #e3f2e7; color: #17643e; }
.hdb-badge.stale, .hdb-badge.pending, .hdb-badge.review_required, .hdb-badge.ambiguous, .hdb-badge.open { background: #fff1cf; color: #8b5a00; }
.hdb-badge.failed, .hdb-badge.rejected, .hdb-badge.retired { background: #fae7e2; color: #9a3c28; }
.hdb-badge.neutral, .hdb-badge.private, .hdb-badge.not_configured, .hdb-badge.unknown, .hdb-badge.archived, .hdb-badge.ignored { background: #edf0ed; color: #5f6d66; }
.hdb-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 48px; padding: 8px 16px; }
.hdb-pagination label { display: flex; align-items: center; gap: 6px; margin-right: auto; color: var(--muted); font-size: 9px; }
.hdb-pagination select { min-height: 30px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.hdb-pagination > span { color: var(--muted); font-size: 9px; }
.hdb-empty { display: grid; place-items: center; gap: 5px; min-height: 180px; padding: 28px; color: var(--muted); text-align: center; }
.hdb-empty p { margin: 0; font-size: 10px; }
.hdb-error { margin: 0; padding: 10px 16px; background: #fff0ec; color: #9a3c28; font-size: 10px; }
.hdb-editor { width: min(900px, calc(100vw - 34px)); }
.hdb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.hdb-form-grid > label { display: grid; gap: 6px; align-content: start; color: var(--ink); font-size: 11px; font-weight: 700; }
.hdb-form-grid input, .hdb-form-grid select, .hdb-form-grid textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.hdb-form-grid textarea { min-height: 100px; resize: vertical; }
.hdb-form-grid .hdb-wide { grid-column: 1 / -1; }
.hdb-form-grid fieldset { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; }
.hdb-form-grid legend { padding: 0 4px; color: var(--ink); font-size: 11px; font-weight: 700; }
.hdb-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.hdb-check-grid .check-field { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.hdb-check-grid input { width: 19px; min-height: 19px; }
.hdb-parent-location { display: grid; gap: 3px; margin: 0 0 18px; padding: 11px 13px; border-left: 3px solid var(--green); background: #f1f6f3; }
.hdb-parent-location span, .hdb-form-note { color: var(--muted); font-size: 10px; }
.hdb-form-note { margin: 16px 0 0; }
.hdb-publication-gate { margin-top: 18px; padding: 12px 14px; border: 1px solid #f0d6c8; background: #fff8f3; }
.hdb-publication-gate strong { font-size: 11px; }
.hdb-publication-gate p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

@media (max-width: 1100px) {
  .hdb-source-band { grid-template-columns: 1fr; }
  .hdb-source-band dl div:first-child { border-left: 0; padding-left: 0; }
  .hdb-source-actions { justify-content: flex-start; }
  .hdb-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdb-toolbar > button { justify-self: start; }
}

@media (max-width: 720px) {
  .hdb-source-band { padding: 14px; }
  .hdb-source-band dl { grid-template-columns: 1fr; gap: 8px; }
  .hdb-source-band dl div { border-left: 0; padding: 0; }
  .hdb-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdb-summary div { border-bottom: 1px solid var(--line); }
  .hdb-tabs { padding: 0; overflow-x: auto; }
  .hdb-tabs button { flex: 0 0 auto; }
  .hdb-toolbar { grid-template-columns: 1fr; }
  .hdb-form-grid, .hdb-check-grid { grid-template-columns: 1fr; }
  .hdb-source-actions { align-items: stretch; flex-direction: column; }
}

