.data-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.catalog-product-id {
  white-space: nowrap;
  overflow-wrap: normal;
}
.token-row > .status,
.token-row > button {
  align-self: center;
  flex-shrink: 0;
}
.command-trigger kbd {
  white-space: nowrap;
}
.nav-more {
  margin-inline-start: 0.7rem;
}
.nav-more > summary {
  color: var(--text-on-inverse-secondary);
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.nav-more a {
  font-size: 0.85rem;
}
.review-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-variant-numeric: tabular-nums;
}
.review-table caption {
  text-align: start;
  font-weight: 650;
  padding: 1rem 0 0.5rem;
}
.review-table th,
.review-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.review-table th {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: start;
}
.review-table td {
  min-width: 10rem;
}
#catalog-preview .review-table th[scope='row'],
#woo-source-result .review-table th[scope='row'],
#report-native-rows .review-table th[scope='row'],
#conversion-rule-rows .review-table th[scope='row'],
#measurement-events-result .review-table th[scope='row'] {
  min-width: 12rem;
}
#report-native-rows .review-table [dir='ltr'],
#conversion-rule-rows .review-table [dir='ltr'] {
  white-space: nowrap;
}
.review-table code {
  font-size: 0.8rem;
}
.creative-performance-table th:first-child {
  min-width: 18rem;
  width: 18rem;
}
.creative-performance-table td {
  min-width: 7rem;
  white-space: nowrap;
}
.creative-performance-table code {
  display: block;
}
.service-timings-table th:first-child {
  min-width: 10rem;
}
.service-timings-table td {
  min-width: 7rem;
}
.review-consents {
  border: 0;
  padding: 1rem 0;
}
.review-consents legend {
  font-weight: 650;
}
.review-consents label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0;
}
.review-consents input {
  margin-top: 0.3rem;
  flex: 0 0 auto;
}
.work-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block: 1rem;
}
#campaign-detail:empty {
  display: none;
}
#campaign-history {
  margin-bottom: 1rem;
}
#campaign-create {
  margin-block: 1rem;
  scroll-margin-top: 1rem;
}
#campaign-create > summary,
#campaign-clone > summary {
  font-size: 1.1rem;
  font-weight: 650;
  cursor: pointer;
  padding-block: 0.5rem;
}
#campaign-create .recipe-builder {
  margin-block: 1rem;
}
@media (max-width: 590px) {
  #campaign-create .recipe-builder {
    padding: 0.75rem;
  }
  #recipe-form > .dialog-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
  #recipe-form > .dialog-actions > .button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}
.campaign-steps li {
  display: block;
  padding-block: 1rem;
}
.campaign-steps li > .status {
  margin-block: 0.5rem;
}
.campaign-steps li > small {
  display: block;
  overflow-wrap: anywhere;
}
.campaign-steps .review-table {
  font-size: 0.9rem;
}
.work-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}
.work-links > a {
  display: block;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}
.work-links small {
  display: block;
  margin-top: 0.5rem;
}
.report-pack {
  background: var(--surface-raised);
  padding: 2rem;
  border-radius: 1rem;
}
.report-pack small {
  display: block;
  font-weight: 400;
}
.report-pack figure {
  margin: 1.2rem 0;
  max-width: 42rem;
}
.report-pack svg {
  display: block;
  width: 100%;
  max-height: 1.3rem;
  margin-top: 0.4rem;
}
.report-pack h2 {
  margin-top: 2rem;
}
.report-pack code {
  overflow-wrap: anywhere;
}
.report-pack .review-table {
  min-width: 48rem;
  font-size: 0.85rem;
}
.report-pack .review-table td {
  min-width: 0;
}
.report-pack .review-table th:first-child {
  min-width: 12rem;
}
.report-pack .review-table th,
.report-pack .review-table td {
  overflow-wrap: normal;
}
.report-pack .review-table small {
  overflow-wrap: anywhere;
  margin-top: 0.4rem;
}
.report-pack .pack-value {
  white-space: nowrap;
}
.report-pack .review-table td:nth-child(2) {
  white-space: nowrap;
}
.report-pack .pack-evidence {
  border-top: 1px solid var(--border);
  padding-block: 1rem;
}
.report-pack .pack-evidence summary {
  cursor: pointer;
  font-weight: 600;
}
.report-pack .pack-evidence dl {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 3fr;
  gap: 0.5rem 1rem;
}
.report-pack .pack-evidence dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.workspace-form .work-filter,
.work-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
}
.work-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.work-filter > label {
  flex: 1 1 10rem;
  min-width: 0;
}
.work-filter > button {
  flex: 0 0 auto;
  margin-bottom: 1rem;
}
.operation-card {
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.operation-card h3 {
  margin-block: 0.25rem 0.5rem;
}
.operation-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}
.operation-heading > .status {
  flex: 0 0 auto;
}
/* A program read chip carries a dated observation ("Provider refused · Oct 12, 2026, 2:50:35 AM GMT+3"). It wraps
   inside its card instead of widening a 320-pixel page to 345 (WCAG 1.4.10; browser QA wave 2). */
.operation-heading > [data-program-status] {
  min-width: 0;
  max-width: 100%;
}
[data-program-status] > .status {
  white-space: normal;
  max-width: 100%;
}
.operation-card small,
.evidence-trail small {
  display: block;
}
.evidence-trail > div {
  border-top: 1px solid var(--border);
  padding-block: 1rem;
}
.evidence-trail code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  margin-block-start: 0.5rem;
}
@media (max-width: 520px) {
  .operation-heading {
    flex-wrap: wrap;
  }
  .work-filter > label {
    flex-basis: 100%;
  }
}
@media print {
  body:has(.report-pack) .sidebar,
  body:has(.report-pack) .topbar,
  body:has(.report-pack) .page-footer,
  body:has(.report-pack) .report-pack-actions {
    display: none;
  }
  body:has(.report-pack) .app-shell,
  body:has(.report-pack) .main-shell {
    display: block;
    margin: 0;
  }
  body:has(.report-pack) #main,
  .report-pack {
    margin: 0;
    padding: 0;
  }
  .report-pack tr,
  .report-pack figure {
    break-inside: avoid;
  }
  .report-pack thead {
    display: table-header-group;
  }
  .report-pack .data-scroll {
    overflow: visible;
  }
  .report-pack .review-table {
    font-size: 9pt;
    min-width: 0;
  }
  .report-pack .review-table th:first-child {
    min-width: 0;
    width: 25%;
  }
  .report-pack .review-table th,
  .report-pack .review-table td {
    padding: 5pt;
  }
}
@media (max-width: 720px) {
  .review-table {
    min-width: 30rem;
  }
  .campaign-steps {
    padding-inline-start: 1.2rem;
  }
}
@media (max-width: 520px) {
  .monitor-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .monitor-row > div {
    flex-basis: 100%;
  }
}
.capability-card {
  border-block-end: 1px solid var(--line);
  padding-block: 1rem;
}
.capability-card code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.capability-card h3 {
  margin-block: 1.5rem 0.6rem;
}
.capability-card li {
  margin-block: 0.5rem;
}
.capability-card li small {
  display: block;
  margin-block-start: 0.25rem;
}
/* WEB-08: available workflows grouped by objective; the rest collapsed under "Not available yet". */
.capability-group > h4 {
  margin-block: 1.5rem 0.25rem;
}
.capability-unavailable {
  margin-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
  padding-block-start: 1rem;
}
.capability-unavailable > summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
}
.creative-tag {
  display: inline-block;
  padding: 3px 9px;
  margin-block: 0 4px;
  margin-inline: 0 5px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.8rem;
}
.creative-asset code {
  overflow-wrap: anywhere;
}
#creative-detail {
  scroll-margin-top: 90px;
}
.creative-facts {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 3fr);
  gap: 10px 16px;
}
.creative-facts dt {
  font-weight: 600;
}
.creative-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.dialog-actions.report-pack-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.branding-preview {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.branding-preview dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin-block-end: 0;
}
.branding-preview dt {
  font-size: 0.85rem;
  color: var(--muted);
}
.branding-preview dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}
#allocation-result {
  margin-block-start: 1.5rem;
  scroll-margin-top: 90px;
}
#allocation-model {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
#allocation-model label {
  grid-template-columns: minmax(0, 1fr);
  overflow-wrap: anywhere;
}
#allocation-panel .token-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
#allocation-model .work-filter > button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
#allocation-result .review-table {
  min-width: 42rem;
}
#allocation-result .review-table th:first-child {
  min-width: 10rem;
}
#allocation-result .review-table td {
  min-width: 0;
  white-space: nowrap;
}
#allocation-result small {
  display: block;
  margin-block-start: 0.25rem;
  color: var(--muted);
  font-weight: 400;
}
#portfolio-heading {
  scroll-margin-top: 90px;
}
#portfolio-view .dialog-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}
#portfolio-view .review-table {
  min-width: 46rem;
}
#portfolio-view .review-table th:first-child {
  min-width: 11rem;
}
#portfolio-view .review-table td {
  min-width: 0;
}
#portfolio-view small {
  display: block;
  margin-block-start: 0.25rem;
  color: var(--muted);
  font-weight: 400;
}
.allocation-proposal,
.allocation-outcome {
  margin-block: 1.25rem;
  min-width: 0;
}
.allocation-proposal dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.allocation-proposal dt {
  color: var(--muted);
  font-size: 0.85rem;
}
.allocation-proposal dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}
.allocation-proposal .review-table,
.allocation-outcome .review-table {
  min-width: 48rem;
}
.allocation-proposal .review-table th:first-child,
.allocation-outcome .review-table th:first-child {
  min-width: 12rem;
  overflow-wrap: anywhere;
}
.allocation-proposal small,
.allocation-outcome small {
  display: block;
  margin-block-start: 0.25rem;
  color: var(--muted);
  font-weight: 400;
}
.conversion-recipe-preview dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.conversion-recipe-preview dl > div {
  min-width: 0;
}
.conversion-recipe-preview dt {
  color: var(--muted);
  font-size: 0.85rem;
}
.conversion-recipe-preview dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}
.conversion-goal-inspection {
  min-width: 0;
  max-width: 100%;
}
.conversion-goal-inspection table .goal-resource {
  white-space: nowrap;
  overflow-wrap: normal;
}
.conversion-goal-inspection table td {
  min-width: 4rem;
}
.conversion-goal-inspection table td:nth-child(4) {
  min-width: 7.5rem;
}
.conversion-goal-inspection table td:last-child {
  min-width: 10rem;
}
.conversion-goal-inspection li .goal-resource {
  white-space: normal;
  overflow-wrap: anywhere;
}
.campaign-steps li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
#campaign-detail h2,
#campaign-detail p {
  overflow-wrap: anywhere;
}
#measurement-event-identity {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
#measurement-event-identity label {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
#measurement-event-identity button {
  max-width: 100%;
  white-space: normal;
}
#measurement-event-identity-result p {
  overflow-wrap: anywhere;
}
#measurement-event-identity-result .review-table {
  min-width: 0;
  table-layout: fixed;
}
#measurement-event-identity-result .review-table td {
  min-width: 0;
}
#measurement-event-identity-result .measurement-count-missing {
  font-size: 1rem;
  line-height: 1.5;
}
.profile-conversion-row {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.profile-conversion-row input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.profile-conversion-row button {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
}
.profile-conversion-preview .review-table {
  min-width: 0;
  table-layout: fixed;
}
.profile-conversion-preview .review-table th:first-child {
  width: 35%;
}
.profile-conversion-preview .review-table td {
  min-width: 0;
}
.client-playbook-columns {
  grid-template-columns: minmax(0, 1fr);
}
.client-playbook-columns > .workspace-form,
#profile-preview {
  min-width: 0;
}
#profile-form,
#profile-form label:not(.form-note) {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
#profile-form fieldset {
  min-inline-size: 0;
}
#profile-form button {
  max-width: 100%;
  white-space: normal;
}
#profile-form .dialog-actions {
  flex-wrap: wrap;
}
@media (min-width: 1051px) {
  .client-playbook-columns {
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  }
  .client-playbook-columns > section:first-child {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow: auto;
  }
}
.client-playbook-columns > section:first-child .token-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.push-source-details {
  margin-block: 0.5rem;
  min-width: 0;
}
.push-source-details code {
  overflow-wrap: anywhere;
}
.push-source-details p {
  overflow-wrap: anywhere;
}

#action-dialog #action-copy {
  overflow-wrap: anywhere;
}

.push-recent .button,
.push-file .button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.push-file strong {
  overflow-wrap: anywhere;
}

#evidence-row-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6rem, 8rem) auto;
  gap: 1rem;
  align-items: end;
}
#report-native-rows .report-pagination label,
#report-evidence-download .report-pagination label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 14px;
  color: var(--muted);
}
#report-native-rows .report-pagination > div {
  align-items: end;
  flex-wrap: wrap;
}
#evidence-row-query,
#evidence-rows-page-size,
#evidence-rows-page,
#evidence-download-language {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
}
#evidence-row-query,
#evidence-rows-page-size {
  width: 100%;
}
#report-native-rows .report-pagination .button,
#evidence-download-xlsx {
  min-height: 44px;
  white-space: normal;
  max-width: 100%;
}
#evidence-row-query:focus-visible,
#evidence-rows-page-size:focus-visible,
#evidence-rows-page:focus-visible,
#evidence-download-language:focus-visible {
  outline: 3px solid var(--iris-700);
  outline-offset: 2px;
}
@media (max-width: 680px) {
  #evidence-row-search {
    grid-template-columns: 1fr;
  }
}

#capture-feedback {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  overflow-wrap: anywhere;
}
#capture-feedback strong {
  color: var(--danger);
}
#capture-feedback p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.measurement-read-feedback,
.workspace-form-feedback {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.measurement-read-feedback strong,
.workspace-form-feedback strong {
  color: var(--danger);
}
.measurement-read-feedback p,
.workspace-form-feedback p {
  margin: 8px 0 0;
  line-height: 1.5;
}

/* Local measurement navigation preserves the original forms, results and URL. */
.measurement-task-navigation {
  margin-block: 1.25rem;
  min-width: 0;
}
.measurement-task-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.65rem;
  padding: 0;
  margin-block: 0.9rem;
  list-style: none;
}
.measurement-task-links li {
  min-width: 0;
}
.measurement-task-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  height: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  color: var(--iris-700);
  background: var(--paper);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.measurement-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-block-end: 1rem;
}
.measurement-section-heading h2 {
  flex: 1 1 14rem;
  min-width: 0;
  margin: 0;
}
.measurement-task-return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.4rem;
  color: var(--iris-700);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
#measurement-task-heading,
#measurement-section-ledger,
#measurement-section-gtm,
#measurement-section-events,
#measurement-section-identity,
#measurement-section-ga4config,
#measurement-section-conversions,
#measurement-section-goals,
#measurement-section-trace {
  scroll-margin-block-start: 90px;
}
/* MSR-02: the shared measurement scope and the audit's discovery choices wrap at 320 px. */
.measurement-scope fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.65rem;
  min-inline-size: 0;
  margin-block: 0 0.9rem;
}
.measurement-scope select {
  max-width: 100%;
}
.measurement-choice-list {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}
.measurement-choice-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.measurement-task-links a:focus-visible,
.measurement-task-return:focus-visible,
.measurement-section-heading h2:focus,
#measurement-task-heading:focus {
  outline: 3px solid var(--iris-700);
  outline-offset: 3px;
}

.measurement-task-links a:hover,
.measurement-task-links a:focus-visible {
  background: var(--surface-subtle);
}
/* MSR-03: the evidence ledger states and short evidence lists wrap inside the table at 320 px. */
.measurement-ledger td,
.measurement-ledger th {
  overflow-wrap: anywhere;
}
.measurement-ledger-state {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--ink);
  white-space: nowrap;
}
.measurement-ledger-observed {
  background: var(--success-bg);
  color: var(--success-ink);
}
.measurement-ledger-unknown {
  background: var(--warning-bg);
  color: var(--warning-ink);
}
.measurement-ledger-list {
  margin: 0.25rem 0 0;
  padding-inline-start: 1.1rem;
}
.measurement-trace-import {
  margin-block: 0.75rem;
}
.measurement-trace-import input,
.measurement-trace-import select {
  max-width: 100%;
}
