* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  flex-shrink: 0;
  position: fixed;
  inset-block: 0;
  inset-inline: 0 auto;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-note {
  display: block;
  font-weight: 500;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid;
  font-size: 14px;
}
.workspace small {
  display: block;
  margin-top: 4px;
}
.workspace-icon {
  border: 1px solid;
  width: 31px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 13px;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  padding: 13px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 550;
  display: flex;
  gap: 12px;
  align-items: center;
}
nav a span {
  font-size: 21px;
  width: 23px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
}
.readonly-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.readonly-indicator i,
.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.legal {
  border-top: 1px solid;
  display: flex;
  gap: 20px;
}
.topbar {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 12px;
}
.breadcrumb b {
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
}
.domain {
  font-size: 12px;
  color: var(--muted);
}
.avatar {
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
}
main {
  margin: 0 auto;
  padding: 40px 42px 56px;
  min-height: calc(100vh - 149px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  margin: 0 0 9px;
  font-weight: 650;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  font-weight: 650;
  margin: 0 0 10px;
}
h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
p {
  line-height: 1.65;
}
.page-heading p {
  font-size: 14px;
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid;
  color: var(--ink);
  background: var(--surface-raised);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.4;
  white-space: nowrap;
}
.button.dark {
  color: var(--white);
}
.button.quiet {
  border-color: transparent;
  background: transparent;
}
.button.danger {
  background: var(--surface-raised);
}
.button.small {
  padding: 7px 11px;
  font-size: 12px;
}
.full {
  width: 100%;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 31px;
}
.stat {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.stat-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 620;
  letter-spacing: -1px;
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.section-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 18px;
}
.filter-tabs {
  display: flex;
  gap: 5px;
}
.filter-tab {
  padding: 8px 12px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  font-size: 13px;
  color: var(--muted);
}
.filter-tab.active {
  font-weight: 650;
}
.search {
  max-width: 290px;
  min-width: 130px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding-inline-start: 12px;
  color: var(--muted);
}
.search input {
  border: 0;
  background: none;
  width: 100%;
  font-size: 13px;
  padding: 10px 12px;
  outline-offset: 0;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.platform-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.15s;
}
.platform-main {
  padding: 22px 23px 19px;
}
.platform-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.platform-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* A settings platform name is a section heading (F-43) with the look of the h3 it replaced. */
.platform-identity h2 {
  font-size: 16px;
  letter-spacing: inherit;
  margin: 0;
}
.platform-logo {
  height: 43px;
  width: 43px;
  border: 1px solid var(--border);
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 22px;
  background: var(--white);
  flex-shrink: 0;
}
.platform-logo.meta {
  font-size: 34px;
  color: #087df0;
}
.platform-logo.google {
  color: #4285f4;
}
.platform-logo.tiktok {
  color: #141414;
}
.platform-logo.snapchat {
  background: #fffc00;
  color: #141414;
  border: 0;
}
.platform-logo.linkedin {
  background: #0a66c2;
  color: white;
  font-size: 21px;
}
.platform-logo.x {
  color: #000;
  font-size: 22px;
}
.platform-name {
  font-size: 16px;
  font-weight: 650;
}
.platform-kind {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.status.offline i {
  background: var(--border-strong);
}
.status.attention {
  background: var(--warning-bg-subtle);
  color: var(--status-warning-ink);
  border-color: var(--warning-line);
}
.status.attention i {
  background: var(--warning-dot);
}
.platform-description {
  font-size: 13px;
  color: var(--muted);
  margin: 17px 0 22px;
  min-height: 21px;
}
.platform-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.platform-login {
  color: var(--muted);
  font-size: 12px;
}
.platform-actions {
  display: flex;
  gap: 7px;
}
.platform-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.platform-metrics div {
  padding: 13px 22px;
  border-inline-end: 1px solid var(--line);
}
.platform-metrics div:last-child {
  border: 0;
}
.platform-metrics small {
  font-size: 10px;
  letter-spacing: 0.65px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.platform-metrics b {
  font-size: 16px;
  font-weight: 550;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 20px;
  border: 1px solid;
  border-radius: 10px;
  margin-bottom: 25px;
  font-size: 13px;
  line-height: 1.65;
}
.notice p {
  margin: 0;
}
.notice strong {
  font-weight: 650;
}
.notice .button {
  margin-inline-start: auto;
}
.muted {
  color: var(--muted);
}
.page-footer {
  padding: 20px 42px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 100px var(--shadow-strong);
  padding: 0;
  color: var(--ink);
}
.small-dialog {
  width: min(440px, calc(100vw - 30px));
  padding: 28px;
}
.small-dialog p {
  font-size: 14px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.icon-button {
  background: none;
  border: 0;
  color: var(--text-secondary);
  font-size: 26px;
  line-height: 1;
  padding: 6px;
  border-radius: 6px;
}
.small-dialog label {
  display: block;
  font-size: 13px;
  margin: 23px 0 8px;
}
.small-dialog input {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
}
.form-note {
  font-size: 12px !important;
  color: var(--muted);
}
.error {
  color: var(--danger-text);
  font-size: 13px;
}
/* WEB-03: an error's message, what to do, the provider's facts and the reference each start a new line. */
.shell-alert,
.measurement-read-feedback p,
.workspace-form-feedback p {
  white-space: pre-line;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.manage-dialog {
  width: min(810px, calc(100vw - 30px));
  max-height: 90vh;
}
.manage-header {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.manage-body {
  padding: 24px;
}
.login-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}
.oauth-login {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.oauth-login strong {
  font-size: 13px;
}
.oauth-login small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.oauth-login .actions {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
}
.default-badge {
  font-size: 9px;
  border: 1px solid;
  border-radius: 20px;
  padding: 3px 5px;
  margin-inline-start: 6px;
  text-transform: uppercase;
}
.asset-tabs {
  display: flex;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  margin-top: 22px;
}
.asset-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  padding: 15px 0;
}
.asset-tabs button.active {
  color: var(--ink);
}
.asset-count {
  padding: 2px 5px;
  border-radius: 8px;
  font-size: 10px;
}
.asset-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
}
.asset-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.asset-table th {
  text-align: start;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
.asset-table td {
  padding: 15px 8px;
  border-bottom: 1px dashed var(--line);
}
.asset-table small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  word-break: break-all;
}
.asset-table input {
  width: 16px;
  height: 16px;
}
.manage-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  margin-top: 12px;
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 25px;
  border: 1px solid;
  color: var(--text-on-inverse-strong);
  padding: 15px 22px;
  max-width: min(450px, 90vw);
  font-size: 14px;
  box-shadow: 0 12px 35px var(--shadow-strong);
  z-index: 20;
}
.connector-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  color: var(--text-on-inverse-strong);
  margin-bottom: 25px;
}
.connector-hero h2 {
  font-size: 27px;
  line-height: 1.25;
}
.connector-hero p {
  font-size: 14px;
  max-width: 460px;
}
.endpoint-box {
  align-self: center;
  padding: 20px;
  border: 1px solid;
  border-radius: 12px;
}
.endpoint-box small {
  display: block;
  letter-spacing: 1px;
  font-size: 10px;
  margin-bottom: 12px;
}
.endpoint-box code {
  font-size: 15px;
  word-break: break-all;
}
.copy-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.panel {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 25px;
  margin-bottom: 20px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.panel p {
  font-size: 14px;
}
.client-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.client-tab {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: 8px;
  padding: 10px 17px;
  font-size: 13px;
}
.code-block {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 9px;
  white-space: pre-wrap;
  overflow: auto;
  font:
    13px/1.8 Consolas,
    monospace;
  word-break: break-all;
}
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 14px;
  font-size: 14px;
  line-height: 1.6;
}
.step:before {
  counter-increment: step;
  content: counter(step);
  border: 1px solid;
  border-radius: 50%;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.token-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.token-row small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.token-secret {
  word-break: break-all;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.settings-grid .panel {
  margin: 0;
}
.setting-field {
  margin: 18px 0;
  font-size: 12px;
}
.setting-field label {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
}
.setting-field code {
  word-break: break-all;
  font-size: 12px;
}
.callback-layout {
  max-width: 530px;
  margin: 50px auto;
}
.callback-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 50px var(--shadow);
}
.callback-top {
  padding: 31px;
  color: var(--text-on-inverse-strong);
}
.callback-top .brand {
  margin-bottom: 25px;
}
.callback-top h1 {
  font-size: 28px;
}
.callback-top p {
  font-size: 14px;
  margin-bottom: 0;
}
.callback-steps {
  padding: 25px;
  display: grid;
  gap: 12px;
}
.callback-step {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
}
.callback-step.failed {
  background: var(--surface-raised);
  border-color: var(--danger-line);
}
.step-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 12px;
}
.callback-step small {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.callback-bottom {
  padding: 18px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.document {
  max-width: 780px;
}
.document h2 {
  margin-top: 28px;
}
.document p,
.document li {
  font-size: 15px;
  line-height: 1.8;
}
/* Both colours come from the theme: a literal white background left the dark theme's light ink at 1.15:1 (WEB-01). */
.skip {
  position: absolute;
  inset-inline-start: 10px;
  top: -100px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  main {
    padding: 30px 26px;
  }
  .platform-main {
    padding: 18px;
  }
  .platform-top {
    flex-wrap: wrap;
  }
  .platform-metrics div {
    padding: 12px 17px;
  }
  .connector-hero {
    grid-template-columns: 1fr;
  }
  .page-footer {
    padding: 18px 26px;
  }
}
@media (max-width: 850px) {
  .app-shell {
    display: block;
  }
  .brand-note,
  .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar .brand {
    font-size: 23px;
  }
  .sidebar nav {
    margin-top: 18px;
  }
  .sidebar nav a {
    white-space: nowrap;
  }
  .domain {
    display: none;
  }
  .stat {
    padding: 17px;
  }
  .stat-icon {
    display: none;
  }
  .page-footer {
    gap: 15px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .callback-layout {
    margin: 20px auto;
  }
}
@media (max-width: 590px) {
  main {
    padding: 25px 18px;
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .button {
    font-size: 12px;
    padding: 9px;
  }
  h1 {
    font-size: 27px;
  }
  .stat-grid {
    gap: 8px;
  }
  .stat {
    padding: 14px 11px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-value {
    font-size: 24px;
  }
  .section-tools {
    flex-wrap: wrap;
  }
  .search {
    max-width: 100%;
    width: 100%;
  }
  .manage-body {
    padding: 17px;
  }
  .manage-header {
    padding: 18px;
  }
  .oauth-login {
    flex-wrap: wrap;
  }
  .oauth-login .actions {
    width: 100%;
    margin-block: 3px 0;
    margin-inline: 43px 0;
  }
  .asset-toolbar {
    flex-wrap: wrap;
  }
  .manage-footer {
    padding: 16px;
    flex-wrap: wrap;
  }
  .page-footer {
    display: block;
    line-height: 1.8;
  }
  .page-footer > span {
    display: block;
  }
  .panel {
    padding: 21px;
  }
  .topbar .breadcrumb {
    font-size: 12px;
  }
  .notice {
    flex-wrap: wrap;
  }
  .notice .button {
    margin-inline-start: 0;
  }
}

.stat-denominator {
  font-size: 16px;
}
.login-caption {
  font-size: 13px;
  margin: 6px 0 0;
}
.asset-notice {
  margin-top: 20px;
  margin-bottom: 0;
}
.small-text {
  font-size: 13px;
}
.token-caption {
  font-size: 13px;
}
.connector-title {
  margin-top: 18px;
}
.step-content {
  min-width: 0;
  width: 100%;
}
.consent-panel {
  padding: 28px;
}
.consent-panel p {
  max-width: 780px;
  line-height: 1.7;
}
.consent-panel code {
  overflow-wrap: anywhere;
}
/* MCP-08: the return host is the one thing to check before approving, so it reads large. */
.consent-host strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.consent-choices {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  border: 0;
}
.consent-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.consent-choice small {
  display: block;
  max-width: 720px;
  line-height: 1.6;
}

.workspace-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.workspace-form {
  padding: 24px;
}
.workspace-form form {
  display: grid;
  gap: 16px;
}
.workspace-form label {
  display: grid;
  gap: 7px;
}
.workspace-form label.form-note {
  display: flex;
  align-items: flex-start;
}
.workspace-form input:not([type='checkbox']),
.workspace-form select,
.workspace-form textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid;
  font: inherit;
}
.workspace-form textarea {
  resize: vertical;
  font-family: monospace;
}
.workspace-details {
  max-width: 100%;
  margin: 12px 0;
}
.workspace-details summary {
  cursor: pointer;
  font-size: 13px;
}
.workspace-details pre {
  max-height: 380px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.workspace-metrics article {
  padding: 22px;
  border: 1px solid;
  border-radius: 12px;
}
.workspace-metrics strong {
  display: block;
  font-size: 26px;
  overflow-wrap: anywhere;
}
.workspace-metrics span {
  font-size: 12px;
}
.workspace-copy {
  padding: 0 24px 16px;
}
.campaign-steps {
  list-style: decimal;
  padding-inline-start: 26px;
}
.campaign-steps li {
  padding: 16px 0;
  border-bottom: 1px solid;
}
.campaign-steps small {
  display: block;
  margin: 5px 0;
}
#variant-preview img,
#variant-preview video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: var(--surface);
  border-radius: 12px;
  margin: 18px 0;
}
#report-result {
  margin-top: 22px;
}
.sidebar nav {
  overflow-y: auto;
}
@media (max-width: 1050px) {
  .workspace-columns {
    grid-template-columns: 1fr;
  }
  .workspace-form {
    padding: 18px;
  }
}

.sidebar nav {
  scrollbar-width: thin;
}
.sidebar nav a {
  padding-top: 12px;
  padding-bottom: 12px;
}

.oauth-client-id {
  overflow-wrap: anywhere;
}
.reauthorization-errors {
  padding: 0 24px 24px;
}

.recipe-builder {
  margin-block: 1.5rem;
}
.recipe-choice,
.recipe-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.recipe-fields textarea {
  min-height: 6rem;
}
[data-program-guided],
[data-program-native],
[data-program-guided] > .form-note {
  grid-column: 1 / -1;
  min-width: 0;
}
#capture-snapchat-measurement > *,
#capture-snapchat-purchases > .form-note {
  grid-column: 1 / -1;
  min-width: 0;
}
.recipe-builder label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.recipe-builder select,
.recipe-builder input,
.recipe-builder textarea {
  max-width: 100%;
  min-width: 0;
}
.recipe-builder details {
  margin-block: 1rem;
}
/* CMP-03: Microsoft location lookup results wrap at 320 px; each reason sits on its own line under its location. */
.recipe-location-results {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.recipe-location-results li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.recipe-location-results small {
  flex-basis: 100%;
}
@media (max-width: 680px) {
  .recipe-choice,
  .recipe-fields {
    grid-template-columns: 1fr;
  }
}
.creative-push {
  margin-bottom: 24px;
}
.push-step {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.push-step h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.push-step h3:focus {
  outline: none;
}
.push-recent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.push-recent .form-note {
  margin: 0;
}
.push-unfinished-list {
  margin: 4px 0 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 6px;
}
.push-bar {
  width: 100%;
  height: 10px;
  margin-top: 12px;
}
.push-file {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.push-file img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.push-file p {
  margin: 4px 0 8px;
}
.push-targets {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
}
.push-targets legend {
  font-weight: 650;
  padding: 0 6px;
}
.workspace-form .push-targets label {
  display: flex;
  gap: 10px;
  align-items: center;
}
.push-targets + .push-targets {
  margin-top: 10px;
}
.workspace-form .push-targets label.push-all {
  font-weight: 600;
}
.push-drive {
  margin-top: 12px;
}
.push-drive h4 {
  font-size: 14px;
  margin: 0 0 8px;
}
.push-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}
.push-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}
.push-table .status {
  white-space: nowrap;
}
#push-receipts {
  margin-top: 12px;
}
.push-table th,
.push-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.push-table thead th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
.push-table tbody th {
  font-weight: 600;
}
.push-table ul {
  margin: 0;
  padding-inline-start: 18px;
}
.push-table .form-note {
  margin: 6px 0 0;
}
@media (max-width: 640px) {
  .push-file {
    flex-direction: column;
    align-items: flex-start;
  }
}
.ad-previews {
  margin-bottom: 24px;
}
.preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
#preview-results .token-row {
  align-items: center;
}

.worker-health-table,
.native-inventory-scroll {
  max-height: 24rem;
  overflow: auto;
}

/* The working client (SEC-08): a view filter in the top bar, not access control. */
.working-client-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.working-client-control select {
  font: inherit;
  min-height: 32px;
  max-width: 14rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 4px 7px;
  color: var(--ink);
  background: var(--white);
}
@container topbar (max-width: 800px) {
  .top-actions .working-client-control > span {
    display: none;
  }
}
