:root {
  --ink: #09223d;
  --muted: #607089;
  --line: rgba(9, 34, 61, 0.14);
  --paper: #f7f8fb;
  --panel: #ffffff;
  --yellow: #f4c861;
  --green: #1b7f6d;
  --coral: #d98a91;
  --blue: #0b315c;
  --shadow: 0 28px 80px rgba(9, 34, 61, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
}

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

button,
.file-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  cursor: pointer;
  text-transform: none;
  font-size: 12px;
  font-weight: 750;
}

button:hover,
.file-button:hover { border-color: #bdb5a9; }

.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.danger {
  color: #a83d33;
  border-color: #e8bbb4;
}

.showroom-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 18px 28px;
  position: relative;
  z-index: 2;
}

.logo-wrap {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.logo-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.showroom-logo {
  display: block;
  width: 46px;
  height: 34px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.logo-wrap span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink);
  font-weight: 800;
}

.app-menu {
  grid-column: 2;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
}

.menu-link {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
}

.menu-link.active {
  background: #eef4fb;
  color: var(--blue);
}

.app-notice,
.db-notice {
  min-height: 22px;
  margin: 0 auto 10px;
  max-width: 1180px;
  color: var(--muted);
  font-size: 14px;
}

.app-shell {
  width: 100%;
  padding: 0 clamp(24px, 4vw, 64px) 72px;
}

.page { display: none; }
.page.active { display: block; }

.workspace {
  max-width: 1680px;
  margin: 0 auto;
}

.showroom-intro {
  display: grid;
  align-content: end;
  min-height: 410px;
  margin: -92px -64px 54px;
  padding: 160px clamp(32px, 7vw, 120px) 78px;
  border-radius: 0 0 34px 34px;
  background:
    radial-gradient(circle at 80% 10%, rgba(244, 200, 97, 0.42), transparent 32%),
    linear-gradient(135deg, #edf6ff 0%, #fff7f3 45%, #fff 100%);
}

.hero-pill {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.showroom-intro h2 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  font-weight: 750;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.topbar,
.kit-head,
.detail-header,
.email-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

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

h2 { font-size: 30px; margin-bottom: 0; }
h3 { font-size: 20px; margin-bottom: 0; }
h4 { font-size: 22px; margin-bottom: 14px; }

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

.filters,
.finder-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 0.45fr)) auto;
  gap: 18px;
  margin-bottom: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.filters > button,
.finder-controls > button {
  min-height: 48px;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
}

textarea { resize: vertical; line-height: 1.45; }

.selector-toggle {
  display: flex;
  justify-content: flex-end;
  margin: -12px 0 24px;
}

.selector-toggle button {
  min-height: 36px;
  padding: 0 12px;
  background: #fff;
}

.lead-selectors[hidden],
.lead-country-filter[hidden] {
  display: none !important;
}

.lead-country-filter {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 0 0 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.lead-country-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 78%;
}

.country-pill {
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  min-height: 34px;
  font-size: 13px;
}

.country-pill:hover,
.country-pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  margin-bottom: 44px;
}

.summary-grid article,
.summary-card {
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 18px;
  min-height: auto;
  text-align: center;
  box-shadow: none;
}

.summary-card.active,
.summary-card:hover { border-bottom-color: var(--ink); }

.summary-grid span {
  display: block;
  font-size: 28px;
  font-weight: 800;
}

.summary-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.priority-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin: -20px 0 30px;
}

.priority-filter {
  min-height: 34px;
  border-radius: 999px;
  padding: 6px 13px;
  background: #fff;
  font-size: 12px;
}

.priority-filter.important.active,
.priority-filter.important:hover {
  border-color: rgba(154, 90, 0, 0.28);
  background: #fff4e5;
  color: #9a5a00;
}

.priority-filter.very-good.active,
.priority-filter.very-good:hover {
  border-color: rgba(27, 127, 109, 0.35);
  background: #e9f8f1;
  color: var(--green);
}

.priority-filter.normal.active,
.priority-filter.normal:hover {
  border-color: rgba(11, 49, 92, 0.24);
  background: #f2f6fb;
  color: var(--blue);
}

.priority-filter.low.active,
.priority-filter.low:hover {
  border-color: rgba(168, 61, 51, 0.26);
  background: #fff0f0;
  color: #a83d33;
}

.lead-bulk-edit {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto minmax(140px, 0.55fr) minmax(140px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
  margin: -12px 0 30px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.lead-bulk-edit div {
  display: grid;
  gap: 3px;
}

.lead-bulk-edit strong {
  font-size: 13px;
}

.lead-bulk-edit span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lead-bulk-edit label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.lead-bulk-edit button,
.lead-bulk-edit select {
  min-height: 36px;
}

.manual-lead-section {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.manual-lead-section summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.manual-lead-section form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.manual-lead-section button {
  align-self: end;
  min-height: 40px;
}

.content-grid,
.sales-kit-page,
.bulk-email-layout,
.b2b-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 40px;
  align-items: start;
}

.content-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 380px);
  gap: 28px;
}

.sales-kit-page {
  grid-template-columns: minmax(420px, 1.2fr) minmax(320px, 0.8fr);
  margin-top: 48px;
}

.lead-list,
.detail-panel,
.panel,
.museum-finder {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(9, 34, 61, 0.045);
}

.bulk-controls {
  display: grid;
  gap: 18px;
}

.bulk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.bulk-lead-rows {
  display: grid;
  gap: 10px;
}

.bulk-lead-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(180px, 0.72fr) auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.bulk-lead-row input {
  width: 18px;
  min-height: 18px;
}

.bulk-lead-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.bulk-select-one {
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 850;
}

.bulk-select-one.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.bulk-preview {
  position: sticky;
  top: 20px;
}

.panel,
.museum-finder {
  padding: 28px;
}

.b2b-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 34px;
}

.b2b-intro p {
  margin: 4px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.b2b-intro a {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.b2b-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
}

.b2b-panel {
  overflow: visible;
}

.b2b-layout > .b2b-panel:first-child {
  grid-column: 1 / -1;
}

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

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

.compact-search {
  max-width: 260px;
}

.b2b-database {
  margin-bottom: 34px;
}

.b2b-db-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0 10px;
}

.b2b-db-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.b2b-country-list {
  justify-content: flex-start;
  max-width: none;
  margin-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.b2b-db-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.b2b-db-card p,
.b2b-db-card small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
}

.table-head,
.lead-row {
  display: grid;
  grid-template-columns: 28px minmax(230px, 0.95fr) minmax(250px, 1fr) minmax(120px, 0.46fr) 70px;
  gap: 16px;
  align-items: center;
}

.lead-row > *,
.table-head > * {
  min-width: 0;
}

.b2b-table-head,
.b2b-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(130px, 0.9fr) minmax(120px, 0.7fr) minmax(120px, 0.75fr);
  gap: 12px;
  align-items: center;
}

.b2b-table-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.b2b-table-head button {
  border: 0;
  background: transparent;
  min-height: auto;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  text-transform: inherit;
}

.b2b-row {
  min-height: 82px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.b2b-detail {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.table-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.table-head > :last-child {
  justify-self: end;
}

.table-head button {
  border: 0;
  background: transparent;
  min-height: auto;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  text-transform: inherit;
}

.lead-row {
  min-height: 118px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.lead-row:hover {
  background: #fbfcfe;
}

.lead-row.active {
  background: #fbfdff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.lead-row.bulk-selected {
  background: #f5faff;
  box-shadow: inset 5px 0 0 var(--blue);
}

.lead-row.bulk-selected:hover {
  background: #f2f8ff;
}

.lead-row.bulk-selected .lead-select-cell span {
  color: var(--blue);
}

.lead-row.priority-row-important {
  background: #fffefd;
  box-shadow: inset 3px 0 0 #d79a27;
}

.lead-row.priority-row-very-good {
  background: #fdfffe;
  box-shadow: inset 3px 0 0 var(--green);
}

.lead-row.priority-row-normal {
  background: #fff;
}

.lead-row.priority-row-low {
  background: #fffdfd;
  box-shadow: inset 3px 0 0 #d47b72;
}

.lead-row.priority-row-important:hover,
.lead-row.priority-row-very-good:hover,
.lead-row.priority-row-low:hover {
  filter: saturate(1.03);
}

.lead-row.bulk-selected,
.lead-row.priority-row-important.bulk-selected,
.lead-row.priority-row-very-good.bulk-selected,
.lead-row.priority-row-normal.bulk-selected,
.lead-row.priority-row-low.bulk-selected {
  background: #eef7ff;
  box-shadow: inset 5px 0 0 var(--blue);
}

.lead-row.bulk-selected:hover,
.lead-row.priority-row-important.bulk-selected:hover,
.lead-row.priority-row-very-good.bulk-selected:hover,
.lead-row.priority-row-normal.bulk-selected:hover,
.lead-row.priority-row-low.bulk-selected:hover {
  background: #e9f4ff;
}

.lead-select-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.lead-select-cell input {
  width: 15px;
  min-height: 15px;
  accent-color: var(--blue);
}

.lead-select-cell input:checked + span {
  color: var(--blue);
}

.lead-select-cell span {
  display: none;
}

.lead-row-main {
  display: grid;
  gap: 8px;
  align-content: center;
  align-items: start;
  align-self: center;
  min-width: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.lead-row strong { display: block; font-size: 14px; font-weight: 750; line-height: 1.18; }
.lead-row small,
.empty-state p,
.muted { color: var(--muted); }

.lead-title-button {
  width: 100%;
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.lead-contact-cell {
  display: grid;
  gap: 6px;
  align-content: center;
  min-width: 0;
}

.lead-website-line {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.lead-website-line span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-website-line button {
  flex: 0 0 auto;
  width: 30px;
  min-height: 30px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 0;
  padding: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.lead-website-line button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.lead-email-line {
  margin-top: 0;
  max-width: none;
}

.lead-email-line input {
  width: 100%;
  min-height: 28px;
  border-radius: 10px;
  padding: 5px 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.lead-email-line input::placeholder {
  color: #9aa6b6;
}

.location-cell {
  display: grid;
  gap: 3px;
  align-content: center;
  justify-self: start;
  color: var(--muted);
  line-height: 1.2;
}

.location-cell strong {
  overflow: hidden;
  color: #405064;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-cell small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-select {
  width: fit-content;
  min-height: 24px;
  margin-top: 6px;
  border-radius: 999px;
  padding: 4px 28px 4px 10px;
  font-size: 10px;
  font-weight: 800;
}

.priority-select.important {
  background: #fff4e5;
  color: #9a5a00;
}

.priority-select.very-good {
  background: #e9f8f1;
  color: var(--green);
}

.priority-select.normal {
  background: #f2f6fb;
  color: var(--blue);
}

.priority-select.low {
  background: #fff0f0;
  color: #a83d33;
}

.priority-chip {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.priority-chip.important {
  background: #fff4e5;
  color: #9a5a00;
}

.priority-chip.very-good {
  background: #e9f8f1;
  color: var(--green);
}

.priority-chip.normal {
  background: #f2f6fb;
  color: var(--blue);
}

.priority-chip.low {
  background: #fff0f0;
  color: #a83d33;
}

.status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f2f6fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.status.need { background: #fff4e5; color: #9a5a00; }
.status.good { background: #e9f8f1; color: var(--green); }
.status.bad { background: #fff0f0; color: #a83d33; }

.inline-status {
  width: 100%;
  max-width: none;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 0;
  padding: 4px 8px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.inline-status.need { background: #fff8ec; color: #9a5a00; }
.inline-status.good { background: #edf9f3; color: var(--green); }
.inline-status.bad { background: #fff3f2; color: #a83d33; }

.row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-self: end;
  align-items: center;
  min-width: 0;
}

.row-delete {
  width: 28px;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #b44f43;
  background: transparent;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.row-delete:hover {
  border-color: #f1d5d0;
  background: #fff8f7;
}

.row-email {
  min-height: 26px;
  border-radius: 999px;
  background: #fff;
  padding: 4px 8px;
  font-size: 10px;
}

.row-email:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.detail-panel {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.empty-state { padding: 28px; }
.detail-form { padding: 28px; }

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

.wide { display: grid; margin-top: 18px; }

.website-field {
  grid-column: 1 / -1;
}

.email-field {
  grid-column: 1 / -1;
}

.email-field input {
  min-height: 56px;
  font-size: 16px;
}

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

.input-action button { min-height: 44px; padding: 0 12px; white-space: nowrap; }

.domain-preview {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.input-action button:disabled { cursor: not-allowed; opacity: 0.45; }

.email-box {
  border-top: 1px solid var(--line);
  padding-top: 34px;
  margin-top: 22px;
}

.quick-inserts,
.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.product-list,
.email-composer { display: grid; gap: 14px; }

.product-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.product-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finder-controls {
  grid-template-columns: 1fr 190px 160px;
  align-items: end;
}

.finder-results,
.country-grid {
  display: grid;
  gap: 12px;
}

.finder-note-action {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.country-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.country-card,
.finder-result {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.finder-result {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.finder-result:hover {
  border-color: #b8c4d4;
  box-shadow: 0 12px 28px rgba(19, 40, 65, 0.08);
  transform: translateY(-1px);
}

.finder-result {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.finder-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.upload-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 56px;
  align-items: start;
  padding-top: 18px;
}

.upload-main h2 { max-width: 720px; margin: 0 0 18px; font-size: 38px; }
.upload-main p { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.upload-controls,
.upload-note { border-top: 1px solid var(--line); padding-top: 22px; }
.upload-controls { display: grid; gap: 18px; }
.upload-note { grid-column: 1 / -1; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
.domain-import-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.list-import-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.6fr) auto;
  gap: 14px;
  align-items: end;
}
.file-button input { display: none; }

.brand-ai-page {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: 34px;
  align-items: start;
}

.brand-ai-intro {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.brand-ai-intro h2 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: 38px;
}

.brand-ai-intro p {
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.brand-ai-input,
.brand-ai-output {
  padding: 26px;
}

.brand-ai-input {
  display: grid;
  gap: 16px;
}

.brand-results {
  display: grid;
  gap: 14px;
}

.brand-result-card {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.brand-result-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.brand-result-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.brand-result-card p,
.brand-result-card li {
  color: var(--muted);
  line-height: 1.45;
}

.brand-result-card ul {
  margin: 0;
  padding-left: 18px;
}

.brand-result-card button {
  min-height: 32px;
  margin: 0 6px 8px 0;
  border-radius: 999px;
  padding: 5px 12px;
}

@media (max-width: 1040px) {
  .content-grid,
  .sales-kit-page,
  .bulk-email-layout,
  .b2b-layout,
  .upload-page { grid-template-columns: 1fr; }
  .detail-panel,
  .b2b-detail { position: static; max-height: none; }
  .filters,
  .lead-bulk-edit,
  .manual-lead-section form,
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b-db-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .showroom-nav { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px; }
  .logo-wrap { grid-column: 1; justify-self: center; }
  .app-menu { grid-column: 1 / -1; justify-self: stretch; overflow-x: auto; }
  .menu-link { flex: 1 0 auto; }
  .app-shell { padding: 0 18px 56px; }
  .showroom-intro { margin: -74px -18px 42px; padding: 148px 22px 70px; }
  .showroom-intro h2 { font-size: clamp(34px, 10vw, 48px); }
  .finder-controls,
  .filters,
  .lead-bulk-edit,
  .manual-lead-section form,
  .summary-grid,
  .form-grid,
  .lead-form form,
  .table-head,
  .lead-row,
  .lead-row-main,
  .bulk-grid,
  .bulk-lead-row,
  .domain-import-controls,
  .list-import-controls,
  .b2b-form,
  .b2b-db-controls,
  .b2b-db-card,
  .b2b-table-head,
  .b2b-row,
  .upload-note { grid-template-columns: 1fr; }
  .b2b-intro { display: grid; }
  .compact-search { max-width: none; }
  .lead-country-filter { display: grid; gap: 16px; }
  .lead-country-list { justify-content: flex-start; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .table-head { display: none; }
  .lead-row-main { grid-column: auto; }
  .row-delete { justify-self: start; }
}
