:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #242534;
  background: #f8f9fc;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ac9bff;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: white;
  border-right: 1px solid #e8e9f1;
  padding: 29px 18px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 23px;
  font-weight: 740;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #7255e8;
  color: white;
  font-size: 29px;
  line-height: 1;
}
.beta {
  font-size: 8px;
  letter-spacing: 1px;
  background: #eeebff;
  padding: 4px;
  color: #7255e8;
  border-radius: 4px;
  margin-top: 4px;
}
.workspace {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 32px 0 27px;
  padding: 13px 8px;
  border: 1px solid #e8e9f1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.workspace > span:last-child {
  margin-left: auto;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #edf0f4;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
  flex-shrink: 0;
}
small {
  display: block;
  font-size: 11px;
  color: #8a8b9c;
  font-weight: 400;
  margin-top: 5px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #9293a2;
  margin: 0 10px 12px;
}
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  background: none;
  color: #727484;
  padding: 13px 12px;
  border-radius: 7px;
  width: 100%;
  text-align: left;
  font-size: 13px;
  margin: 3px 0;
}
.nav > span {
  font-size: 19px;
  width: 22px;
  text-align: center;
}
.nav:hover {
  background: #f5f4fb;
}
.nav.active {
  background: #efecfc;
  color: #7255d9;
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom p {
  color: #9293a2;
  font-size: 11px;
  line-height: 1.7;
  padding: 0 11px;
}
.local-indicator {
  font-size: 11px;
  padding: 12px 11px 0;
  color: #66687c;
}
.local-indicator i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #43a68b;
  border-radius: 50%;
  margin-right: 6px;
}
.profile {
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px 8px 0;
  margin-top: 15px;
  font-size: 12px;
}
.purple {
  background: #f0ecff;
  color: #7655d5;
}
.shell {
  margin-left: 244px;
}
header {
  height: 74px;
  border-bottom: 1px solid #e8e9f1;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  font-size: 12px;
}
.slash {
  margin: 0 14px;
  color: #d1d1da;
}
.muted {
  color: #90909e;
}
.header-right {
  display: flex;
  gap: 17px;
  align-items: center;
}
.mode-badge {
  background: #f5f4fa;
  border: 1px solid #eae8f1;
  border-radius: 20px;
  font-size: 10px;
  color: #828091;
  padding: 6px 10px;
}
main {
  padding: 35px 38px;
  min-height: calc(100vh - 125px);
  max-width: 1550px;
  margin: auto;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin: 0 0 10px;
}
h2 {
  font-size: 18px;
  font-weight: 620;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  color: #858594;
  line-height: 1.7;
  margin: 8px 0;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-title p {
  font-size: 13px;
}
.button {
  border: 1px solid #dfdfe9;
  background: white;
  border-radius: 7px;
  padding: 10px 16px;
  color: #5c5d6f;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.button:hover {
  border-color: #a99be1;
  background: #fbfaff;
}
.button.primary {
  background: #7554dc;
  color: white;
  border-color: #7554dc;
  box-shadow: 0 3px 5px #7255d51a;
}
.button.primary:hover {
  background: #6544cc;
}
.button.small {
  padding: 7px 11px;
  font-size: 11px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: white;
  border: 1px solid #e7e7ef;
  border-radius: 10px;
  padding: 22px 25px;
  margin-bottom: 28px;
  gap: 20px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9493a4;
}
.step b {
  width: 30px;
  height: 30px;
  border: 1px solid #e6e4ec;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
}
.step.current {
  color: #7352d6;
}
.step.current b {
  background: #efeafa;
  border-color: #efeafa;
}
.step small {
  font-size: 10px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 17px;
}
.count {
  font-size: 10px;
  background: #eeecf5;
  border-radius: 5px;
  padding: 3px 7px;
  color: #888199;
}
.empty {
  border: 1px dashed #dcd8ec;
  background: #ffffff80;
  border-radius: 10px;
  padding: 27px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.empty-symbol {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #efecfc;
  color: #8067d4;
  font-size: 23px;
}
.empty p {
  font-size: 12px;
  margin: 6px 0 0;
}
.empty .button {
  margin-left: auto;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 20px;
}
.filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filter {
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 8px 11px;
  color: #92909f;
  font-size: 11px;
}
.filter.active {
  background: #eee9fa;
  color: #7556cf;
  font-weight: 600;
}
.search {
  position: relative;
  min-width: 230px;
}
.search input {
  padding: 10px 14px 10px 34px;
  width: 100%;
  font-size: 11px;
}
.search span {
  position: absolute;
  left: 12px;
  top: 7px;
  font-size: 20px;
  color: #9b98a9;
}
input,
select,
textarea {
  border: 1px solid #e0deea;
  border-radius: 6px;
  background: white;
  padding: 10px;
  color: #444253;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #967bdc;
  box-shadow: 0 0 0 3px #ede8f9;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.card {
  border: 1px solid #e6e4ef;
  background: #fff;
  border-radius: 10px;
  padding: 21px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
  display: flex;
  flex-direction: column;
  min-height: 212px;
}
.card:hover {
  border-color: #c7b8e9;
  box-shadow: 0 7px 22px #4c3b7422;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.connector-icon {
  width: 39px;
  height: 39px;
  border-radius: 9px;
  background: #f4f4fb;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 700;
  color: #7255e8;
}
.icon-meta_ads,
.icon-facebook_page {
  color: #1877f2;
  background: #edf5ff;
}
.icon-ga4 {
  color: #e99417;
  background: #fff6e9;
}
.icon-search_console {
  color: #319463;
  background: #eef8f1;
}
.icon-google_ads {
  color: #4285f4;
  background: #edf4ff;
}
.tag {
  border: 1px solid #eceaf2;
  padding: 4px 7px;
  border-radius: 5px;
  color: #9a95a6;
  font-size: 9px;
}
.card p {
  font-size: 11px;
  line-height: 1.7;
  margin: 8px 0 20px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.status {
  font-size: 10px;
  color: #a49b83;
}
.status.good {
  color: #448c72;
}
.status.failed {
  color: #ba5252;
}
.status.running {
  color: #7352d6;
}
.card-bottom .button {
  padding: 7px 12px;
  font-size: 10px;
}
.notice {
  background: #f0eef9;
  border: 1px solid #e6e0f7;
  padding: 17px 20px;
  border-radius: 9px;
  margin-top: 25px;
  color: #807298;
  font-size: 11px;
  display: flex;
  gap: 13px;
  line-height: 1.8;
}
.notice strong {
  color: #6e5a91;
}
.notice span {
  font-size: 18px;
}
.panel {
  background: white;
  border: 1px solid #e5e2ed;
  border-radius: 10px;
  padding: 23px;
  margin: 18px 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
th {
  padding: 14px 12px;
  color: #90879d;
  font-size: 10px;
  font-weight: 500;
  background: #faf9fd;
}
td {
  padding: 15px 12px;
  border-top: 1px solid #eeeaf3;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actions {
  display: flex;
  gap: 6px;
}
footer {
  font-size: 10px;
  color: #aba8b6;
  padding: 16px 38px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edeaf3;
}
dialog {
  border: 1px solid #e3deed;
  border-radius: 14px;
  padding: 28px;
  width: min(550px, calc(100vw - 30px));
  max-height: 90vh;
  box-shadow: 0 24px 90px #23203944;
}
dialog::backdrop {
  background: #22203b55;
  backdrop-filter: blur(3px);
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.close {
  border: 0;
  background: none;
  font-size: 23px;
  color: #928a9f;
}
form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #6a617b;
}
label small {
  line-height: 1.6;
  margin: 0;
}
textarea {
  min-height: 100px;
  resize: vertical;
  font-family: monospace;
  font-size: 12px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.preview-fields {
  min-width: 0;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #e0deea;
  border-radius: 8px;
}
.preview-fields legend {
  padding: 0 6px;
  font-weight: 600;
}
.preview-field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 12px;
}
.preview-field {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.preview-field[hidden] {
  display: none;
}
.preview-field input {
  flex-shrink: 0;
}
.preview-fields small {
  display: block;
  line-height: 1.6;
  color: #6a617b;
}
.ga4-field-list { max-height: 240px; overflow: auto; margin: 12px 0; }
.ga4-field { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-bottom: 1px solid #eee; }
.ga4-field input { flex-shrink: 0; }
.ga4-field span { min-width: 0; overflow-wrap: anywhere; }
#ga4-builder details { margin: 14px 0; }
#ga4-builder summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
#ga4-builder details > label, #ga4-builder details > .row, #ga4-builder button { margin-top: 10px; }
.report-diagnostics { max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.error {
  color: #b34d59;
  font-size: 12px;
  line-height: 1.6;
}
.code {
  font-family: monospace;
  color: #7657bb;
  background: #f5f0fb;
  padding: 12px;
  border-radius: 6px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.9;
}
#toast {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 30px;
  max-width: 420px;
  padding: 15px 20px;
  background: #302742;
  color: white;
  box-shadow: 0 6px 25px #22112c33;
  border-radius: 8px;
  font-size: 12px;
  z-index: 10;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  background: white;
  border: 1px solid #e5e2ed;
  border-radius: 10px;
  padding: 23px;
  color: #948a9f;
  font-size: 12px;
}
.stat b {
  display: block;
  font-size: 30px;
  color: #4d405f;
  margin-top: 12px;
}
.connected-row {
  display: flex;
  gap: 15px;
  align-items: center;
}
.connected-row .actions {
  margin-left: auto;
}
.no-results {
  text-align: center;
  padding: 50px;
  color: #8d829a;
}
@media (min-width: 1600px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
  }
  .shell {
    margin-left: 210px;
  }
  main {
    padding: 30px 25px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px;
    display: block;
  }
  .brand {
    margin-bottom: 15px;
  }
  .workspace,
  .sidebar-bottom,
  .nav-caption {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  .nav {
    width: auto;
    white-space: nowrap;
    padding: 8px;
    font-size: 11px;
  }
  .nav > span {
    display: none;
  }
  .shell {
    margin: 0;
  }
  header {
    padding: 0 18px;
    height: 55px;
  }
  .mode-badge {
    display: none;
  }
  main {
    padding: 23px 18px;
  }
  .page-title {
    align-items: flex-start;
  }
  h1 {
    font-size: 25px;
  }
  .page-title p {
    font-size: 12px;
  }
  .steps {
    padding: 16px 12px;
    gap: 9px;
  }
  .step {
    font-size: 10px;
    gap: 6px;
  }
  .step small {
    display: none;
  }
  .step b {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .empty {
    flex-wrap: wrap;
    padding: 20px;
  }
  .empty .button {
    margin-left: 68px;
  }
  .toolbar {
    gap: 12px;
  }
  .search {
    width: 100%;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 15px;
    font-size: 10px;
  }
  .stat b {
    font-size: 24px;
  }
  footer {
    padding: 18px;
    display: block;
    line-height: 1.8;
  }
  footer span {
    display: block;
  }
  .connected-row {
    flex-wrap: wrap;
  }
  .row {
    grid-template-columns: 1fr;
  }
}
.account-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #eee9f6;
  border-radius: 6px;
  padding: 10px;
  margin: 6px 0;
}
.account-option input {
  width: 17px;
  height: 17px;
  accent-color: #7554dc;
}
#account-picker {
  max-height: 240px;
  overflow: auto;
}
.login-panel {
  max-width: 520px;
  margin: 45px auto;
}
.login-panel p {
  margin-bottom: 24px;
}
#account-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
#tenant-select {
  max-width: 150px;
  font-size: 11px;
  padding: 7px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  #account-controls {
    gap: 4px;
  }
  #tenant-select {
    max-width: 95px;
  }
  .header-right {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
  }
  header { height: auto; min-height: 55px; flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  #account-controls { flex-wrap: wrap; }
}

/* Public Windsor references inform the source journey; Streamlane keeps its own design. */
.source-search { width: 100%; margin: 18px 0; }
.picker-intro { color: #6b6b80; line-height: 1.6; }
.source-choice { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 16px; margin: 8px 0; border: 1px solid #e8e9f1; border-radius: 12px; background: white; color: inherit; }
.source-choice:hover { background: #f6f3ff; border-color: #ac9bff; }
.source-choice > span:nth-child(2) { flex: 1; min-width: 0; }
.source-choice strong, .source-choice small { display: block; }
.source-choice small { color: #747487; margin-top: 6px; line-height: 1.5; }
.provider-guide { background: #f1edff; padding: 16px; border-radius: 12px; margin-bottom: 20px; line-height: 1.6; }
.provider-guide p { margin: 8px 0 0; }
.selection-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; position: sticky; top: 0; background: white; padding: 10px 0; }
.selection-toolbar strong { margin-right: auto; }
#account-discovery-status { margin-top: 12px; line-height: 1.5; color: #636378; }
.account-option span { min-width: 0; overflow-wrap: anywhere; }
.account-option small { display: block; margin-top: 4px; }
.destination-tools { margin-bottom: 20px; }
.destination-tools .search { width: min(100%, 380px); }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  dialog.source-drawer { margin: 0; height: 100dvh; max-height: 100dvh; width: min(94vw, 420px); max-width: 94vw; border-radius: 0 16px 16px 0; padding: 22px 16px; }
  .source-choice { padding: 12px; gap: 10px; }
  .source-choice .connector-icon { flex-shrink: 0; }
  .selection-toolbar .button { padding: 8px; }
}
