/**
 * Agentic Bridge premium presentation shell — white header + horizontal tabs.
 * Production port of docs/wordpress-ui-pilot (tokens → primitives → composition).
 */

.abv2-app {
  /* Tokens — production port of approved pilot (tokens → primitives → composition). */
  --abv2-color-bg: #f0f0f1;
  --abv2-color-surface: #f6f7f7;
  --abv2-color-card: #ffffff;
  --abv2-color-border: #dcdcde;
  --abv2-color-border-strong: #c3c4c7;
  --abv2-color-border-hover: #8c8f94;
  --abv2-color-text: #1d2327;
  --abv2-color-secondary: #3c434a; /* AA support/meta floor on white */
  --abv2-color-muted: #3c434a;
  --abv2-color-teal: #00dcb9;
  --abv2-color-teal-dark: #009e87;
  --abv2-color-teal-dim: rgba(0, 220, 185, 0.12);
  --abv2-color-blue: #2271b1;
  --abv2-color-orange: #ff6b23;
  --abv2-color-green: #10b981;
  --abv2-color-green-dark: #047857;
  --abv2-color-orange-dark: #c2410c;
  --abv2-color-sidebar: #1d2327;
  --abv2-color-sidebar-text: #a7aaad;
  --abv2-color-sidebar-active: #ffffff;
  --abv2-bg-gray: #f6f7f7;
  --abv2-bg-green: rgba(16, 185, 129, 0.1);
  --abv2-bg-orange: rgba(255, 107, 35, 0.08);
  --abv2-bg-warn: rgba(224, 144, 43, 0.1);
  --abv2-font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --abv2-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --abv2-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --abv2-radius-card: 8px;
  --abv2-radius-control: 4px;
  --abv2-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --abv2-shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  /* Spacing contract: 4, 8, 12, 16, 24, 32, 40, 48, 64 (+44 action/touch). */
  --abv2-space-4: 4px;
  --abv2-space-8: 8px;
  --abv2-space-12: 12px;
  --abv2-space-16: 16px;
  --abv2-space-24: 24px;
  --abv2-space-32: 32px;
  --abv2-space-40: 40px;
  --abv2-space-48: 48px;
  --abv2-space-64: 64px;
  --abv2-page-pad: var(--abv2-space-24);
  --abv2-page-pad-mobile: var(--abv2-space-16);
  --abv2-section-gap: var(--abv2-space-32);
  --abv2-card-gap: var(--abv2-space-24);
  --abv2-card-pad: var(--abv2-space-24);
  --abv2-card-pad-mobile: var(--abv2-space-16);
  --abv2-card-pad-compact: var(--abv2-space-16);
  --abv2-control-height: var(--abv2-space-40);
  --abv2-control-height-mobile: 44px; /* mobile touch target; documented exception */
  --abv2-action-height: 44px;
  --abv2-action-gap: var(--abv2-space-8);
  --abv2-badge-height: 24px;
  --abv2-badge-pad-x: 8px;
  --abv2-type-page: 28px;
  --abv2-type-page-lh: 36px;
  --abv2-type-page-sm: 24px;
  --abv2-type-page-sm-lh: 32px;
  --abv2-type-section: 20px;
  --abv2-type-section-lh: 28px;
  --abv2-type-body: 16px;
  --abv2-type-body-lh: 24px;
  --abv2-type-support: 14px;
  --abv2-type-support-lh: 20px;
  --abv2-type-badge: 12px;
  --abv2-type-badge-lh: 16px;
  --abv2-prose-max: 68ch;
  --abv2-label-gap: var(--abv2-space-8);
  --abv2-control-gap: var(--abv2-space-16);
  --abv2-form-group-gap: var(--abv2-space-24);
  --abv2-inline-gap: var(--abv2-space-8);
  --abv2-heading-support-gap: var(--abv2-space-8);
  --abv2-support-action-gap: var(--abv2-space-16);
  --abv2-sidebar-width: 0;
  --abv2-max-width: 960px;
  --abv2-content-max: 960px;
  /* Exception: -20px counters WP admin #wpbody-content default padding. */
  margin: 0 0 0 -20px;
  padding: 0;
  background: var(--abv2-color-bg);
  color: var(--abv2-color-text);
  font-family: var(--abv2-font-body);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  min-width: 0;
  max-width: calc(100% + 20px);
  overflow-x: clip;
}

.abv2-app *,
.abv2-app *::before,
.abv2-app *::after {
  box-sizing: border-box;
}

/* Kill competing WP/browser default margins inside the product shell. */
.abv2-app h1,
.abv2-app h2,
.abv2-app h3,
.abv2-app h4,
.abv2-app h5,
.abv2-app h6,
.abv2-app p,
.abv2-app ul,
.abv2-app ol,
.abv2-app dl,
.abv2-app figure,
.abv2-app blockquote,
.abv2-app pre,
.abv2-app fieldset {
  margin: 0;
  padding: 0;
}

.abv2-app ul,
.abv2-app ol {
  list-style-position: inside;
}

.abv2-stack {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-control-gap);
  min-width: 0;
}

.abv2-stack--section {
  gap: var(--abv2-section-gap);
}

.abv2-stack--cards {
  gap: var(--abv2-card-gap);
}

.abv2-stack--form {
  gap: var(--abv2-form-group-gap);
}

.abv2-app .screen-reader-text,
.abv2-app .abv2-sr-only {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.abv2-shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - 32px);
  min-width: 0;
}

.abv2-topbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--abv2-space-12);
  padding: var(--abv2-space-12) var(--abv2-space-24);
  background: var(--abv2-color-card);
  border-bottom: 1px solid var(--abv2-color-border);
  min-height: 56px;
  position: static;
  z-index: auto;
  min-width: 0;
}

.abv2-topbar__brand,
.abv2-topbar__start {
  display: flex;
  align-items: center;
  gap: var(--abv2-space-12);
  min-inline-size: 0;
  min-width: 0;
  flex: 1;
}

.abv2-topbar__titles {
  min-inline-size: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.abv2-topbar__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  color: var(--abv2-color-text);
  letter-spacing: 0;
  font-family: var(--abv2-font-display);
}

.abv2-topbar__tagline,
.abv2-topbar__titles [data-ui="text-meaningful"] {
  margin: 0;
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-muted);
}

.abv2-topbar__status {
  flex: 0 0 auto;
}

.abv2-status-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--abv2-space-8);
  min-height: var(--abv2-control-height);
  padding: 0 var(--abv2-space-12);
  border-radius: var(--abv2-radius-control);
  border: 1px solid var(--abv2-color-border);
  background: var(--abv2-color-surface);
  font-size: var(--abv2-type-badge);
  font-weight: 600;
  line-height: var(--abv2-type-badge-lh);
  color: var(--abv2-color-secondary);
}

.abv2-status-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--abv2-color-muted);
}

.abv2-status-chip.is-ok .abv2-status-chip__dot {
  background: var(--abv2-color-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.abv2-status-chip.is-warn .abv2-status-chip__dot {
  background: var(--abv2-color-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 35, 0.18);
}

.abv2-plugin-nav {
  padding: var(--abv2-space-8) var(--abv2-space-24);
  background: var(--abv2-color-card);
  border-bottom: 1px solid var(--abv2-color-border);
  max-width: 100%;
  position: relative;
  z-index: 20;
}

.abv2-plugin-nav__desktop {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--abv2-space-4);
  max-width: 100%;
  min-width: 0;
}

.abv2-plugin-nav__link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: var(--abv2-control-height);
  padding: 0 var(--abv2-space-16);
  border-radius: var(--abv2-radius-control);
  text-decoration: none;
  color: var(--abv2-color-text);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
}

.abv2-plugin-nav__link:hover {
  background: #f6f7f7;
}

.abv2-plugin-nav__link:focus-visible {
  outline: 2px solid var(--abv2-color-teal);
  outline-offset: 2px;
}

.abv2-plugin-nav__link.is-active,
.abv2-plugin-nav__link[aria-current="page"] {
  background: var(--abv2-color-teal-dim);
  border-color: rgba(0, 220, 185, 0.35);
  font-weight: 600;
}

.abv2-plugin-nav__link.is-primary-nav {
  box-shadow: inset 0 -2px 0 var(--abv2-color-teal);
}

.abv2-plugin-nav__more,
.abv2-plugin-nav__mobile {
  position: relative;
}

.abv2-plugin-nav__more {
  flex: 0 0 auto;
}

.abv2-plugin-nav__more-toggle,
.abv2-plugin-nav__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--abv2-space-8);
  min-height: var(--abv2-control-height);
  padding: 0 var(--abv2-space-16);
  border: 1px solid transparent;
  border-radius: var(--abv2-radius-control);
  background: transparent;
  color: var(--abv2-color-text);
  font-size: var(--abv2-type-support);
  font-weight: 500;
  line-height: var(--abv2-type-support-lh);
  cursor: pointer;
  list-style: none;
}

.abv2-plugin-nav__more-toggle::-webkit-details-marker,
.abv2-plugin-nav__mobile-toggle::-webkit-details-marker {
  display: none;
}

.abv2-plugin-nav__more-toggle:hover,
.abv2-plugin-nav__mobile-toggle:hover {
  background: var(--abv2-color-surface);
}

.abv2-plugin-nav__more-toggle:focus-visible,
.abv2-plugin-nav__mobile-toggle:focus-visible,
.abv2-plugin-nav__menu-link:focus-visible {
  outline: 2px solid var(--abv2-color-teal);
  outline-offset: 2px;
}

.abv2-plugin-nav__more.is-active > .abv2-plugin-nav__more-toggle {
  background: var(--abv2-color-teal-dim);
  border-color: rgba(0, 220, 185, 0.35);
  font-weight: 600;
}

.abv2-plugin-nav__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 120ms ease;
}

.abv2-plugin-nav__more[open] .abv2-plugin-nav__chevron,
.abv2-plugin-nav__mobile[open] .abv2-plugin-nav__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.abv2-plugin-nav__more-menu,
.abv2-plugin-nav__mobile-menu {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-4);
  padding: var(--abv2-space-8);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  background: var(--abv2-color-card);
  box-shadow: var(--abv2-shadow-md);
}

.abv2-plugin-nav__more-menu {
  position: absolute;
  top: calc(100% + var(--abv2-space-8));
  right: 0;
  width: max-content;
  min-width: 208px;
  max-width: min(320px, calc(100vw - 48px));
}

.abv2-plugin-nav__menu-link {
  display: flex;
  align-items: center;
  min-height: var(--abv2-control-height);
  padding: 0 var(--abv2-space-12);
  border-radius: var(--abv2-radius-control);
  color: var(--abv2-color-text);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  font-weight: 500;
  text-decoration: none;
}

.abv2-plugin-nav__menu-link:hover,
.abv2-plugin-nav__menu-link.is-active,
.abv2-plugin-nav__menu-link[aria-current="page"] {
  background: var(--abv2-color-teal-dim);
}

.abv2-plugin-nav__menu-link.is-active,
.abv2-plugin-nav__menu-link[aria-current="page"] {
  font-weight: 600;
}

.abv2-plugin-nav__mobile {
  display: none;
}

/* Internal dark sidebar removed; WordPress native admin sidebar remains. */
.abv2-sidebar,
#abv2-sidebar,
.abv2-sidebar__brand,
.abv2-sidebar-toggle,
.abv2-sidebar-backdrop,
.abv2-shell-main,
.abv2-nav,
.abv2-nav-list,
.abv2-nav-item,
.abv2-nav-link,
.abv2-nav-link__icon,
.abv2-nav-link__label {
  display: none !important;
}

.abv2-workspace {
  flex: 1 1 auto;
  padding: var(--abv2-page-pad);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--abv2-section-gap);
}

.abv2-workspace-inner {
  width: 100%;
  max-width: var(--abv2-max-width);
  margin: 0;
  min-width: 0;
}

.abv2-logo-svg {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 560 / 92;
}

.abv2-notices {
  margin-bottom: var(--abv2-space-16);
}

.abv2-notice {
  padding: var(--abv2-space-12) var(--abv2-space-16);
  border-radius: var(--abv2-radius-control);
  border: 1px solid var(--abv2-color-border);
  background: var(--abv2-color-card);
}

.abv2-notice--error {
  border-color: rgba(255, 107, 35, 0.35);
  background: var(--abv2-bg-orange);
}

.abv2-notice--success {
  border-color: rgba(16, 185, 129, 0.35);
  background: var(--abv2-bg-green);
}

.abv2-notice p {
  margin: 0;
}

.abv2-field-error {
  margin: var(--abv2-space-8) 0 0;
  color: #9a3412;
  font-weight: 600;
}

.abv2-workspace {
  min-width: 0;
  max-width: 100%;
}

.abv2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abv2-space-16);
  margin-bottom: var(--abv2-space-16);
  align-items: flex-end;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.abv2-filters .abv2-form-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 160px;
}

.abv2-filters .abv2-filters__action {
  flex: 0 1 auto;
}

.abv2-filters .abv2-filters__action-label {
  visibility: hidden;
  user-select: none;
  pointer-events: none;
}

.abv2-filters .abv2-label {
  margin-bottom: var(--abv2-space-8);
  overflow-wrap: break-word;
  max-width: 100%;
}

.abv2-filters .abv2-input,
.abv2-filters .abv2-select,
.abv2-filters .abv2-btn {
  min-height: 40px;
  height: 40px;
  max-width: 100%;
}

.abv2-findings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--abv2-space-16);
  margin-bottom: var(--abv2-space-16);
  min-width: 0;
  max-width: 100%;
}

.abv2-findings-toolbar .abv2-page-header--actions-only {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.abv2-findings-toolbar .abv2-filters {
  flex: 1 1 480px;
  margin-bottom: 0;
  min-width: 0;
}

.abv2-findings-toolbar .abv2-pdf-form .abv2-btn {
  min-height: 40px;
  height: 40px;
}

.abv2-input,
.abv2-select,
.abv2-textarea {
  appearance: none;
  box-sizing: border-box;
  font-family: var(--abv2-font-body);
  font-size: 14px;
  padding: var(--abv2-space-8) var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-control);
  background: var(--abv2-color-card);
  color: var(--abv2-color-text);
  width: 100%;
  min-height: var(--abv2-control-height);
  height: var(--abv2-control-height);
  min-width: 0;
  max-width: 100%;
}

.abv2-textarea {
  height: auto;
}

.abv2-textarea {
  /* Exception: multi-line field uses 96px (1.5×64) content block height. */
  min-height: 96px;
}

.abv2-input:focus,
.abv2-select:focus,
.abv2-textarea:focus {
  outline: 2px solid var(--abv2-color-blue);
  outline-offset: 0;
  border-color: var(--abv2-color-blue);
}

.abv2-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 var(--abv2-label-gap);
}

.abv2-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-label-gap);
  margin: 0 0 var(--abv2-control-gap);
  min-width: 0;
}

.abv2-form-group .abv2-label {
  margin-bottom: 0;
}

.abv2-form-group > .abv2-label > input[type="checkbox"] {
  appearance: none;
  position: relative;
  inline-size: 20px;
  block-size: 20px;
  margin: 0 var(--abv2-space-8) 0 0;
  vertical-align: -5px;
  border: 1px solid var(--abv2-color-border-hover);
  border-radius: 4px;
  background: var(--abv2-color-card);
  cursor: pointer;
}

.abv2-form-group > .abv2-label > input[type="checkbox"]:checked {
  border-color: var(--abv2-color-teal);
  background-color: var(--abv2-color-teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}

.abv2-form-group > .abv2-label > input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--abv2-color-blue);
  outline-offset: 2px;
}

.abv2-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.abv2-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.abv2-table th,
.abv2-table td {
  padding: 12px var(--abv2-space-16);
  text-align: left;
  border-bottom: 1px solid var(--abv2-color-border);
  vertical-align: top;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

.abv2-table th {
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  font-weight: 600;
  color: var(--abv2-color-secondary);
  background: var(--abv2-bg-gray);
}

.abv2-table td {
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
}

.abv2-table--content-review th:last-child,
.abv2-table--content-review td:last-child {
  width: auto;
  min-width: 7rem;
}

.abv2-table--content-review .abv2-badge,
.abv2-table--content-review [data-ui="badge"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  height: var(--abv2-badge-height);
  min-height: var(--abv2-badge-height);
  padding: 0 var(--abv2-badge-pad-x);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.abv2-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--abv2-space-16);
  min-width: 0;
  padding: var(--abv2-space-16) 0;
  border-bottom: 1px solid var(--abv2-color-border);
}

.abv2-list-item:last-child {
  border-bottom: 0;
}

.abv2-list-item dl {
  display: grid;
  gap: var(--abv2-space-8);
  min-width: 0;
  margin: 0;
}

.abv2-list-item dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.abv2-badge-pass {
  background: var(--abv2-bg-green);
  color: var(--abv2-color-green-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.abv2-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abv2-space-8);
  margin-bottom: var(--abv2-space-24);
}

.abv2-tab {
  appearance: none;
  font-family: var(--abv2-font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--abv2-radius-control);
  border: 1px solid var(--abv2-color-border);
  background: var(--abv2-color-card);
  color: var(--abv2-color-secondary);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.abv2-tab.is-active {
  background: var(--abv2-color-text);
  color: #fff;
  border-color: transparent;
}

.abv2-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}

.abv2-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.abv2-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: background-color 0.2s;
}

.abv2-toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.abv2-toggle input:checked + .abv2-toggle-slider {
  background: var(--abv2-color-teal);
}

.abv2-toggle input:checked + .abv2-toggle-slider::before {
  transform: translateX(20px);
}

.abv2-code-preview {
  background: #0f172a;
  color: #38bdf8;
  padding: var(--abv2-space-16);
  border-radius: var(--abv2-radius-control);
  font-family: var(--abv2-font-mono);
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: var(--abv2-space-16) 0;
}

.abv2-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 100000;
  display: none;
}

.abv2-drawer-backdrop.is-open {
  display: block;
}

.abv2-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100%;
  background: var(--abv2-color-card);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: var(--abv2-space-32);
  overflow-y: auto;
  z-index: 100001;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.abv2-drawer.is-open {
  transform: translateX(0);
}

.abv2-muted {
  color: var(--abv2-color-muted);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
}

.abv2-lead {
  margin: 0 0 var(--abv2-space-16);
  color: var(--abv2-color-text);
  font-size: var(--abv2-type-body);
  line-height: var(--abv2-type-body-lh);
  max-width: var(--abv2-prose-max);
}

.abv2-overview--ai-preview {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.abv2-overview--ai-preview .abv2-page-header,
.abv2-overview--ai-preview .abv2-card,
.abv2-overview--ai-preview .abv2-pdf-form,
.abv2-overview--ai-preview .abv2-scan-form {
  min-width: 0;
  max-width: 100%;
}

.abv2-overview--ai-preview .abv2-empty-box {
  padding: var(--abv2-space-24);
  text-align: left;
  max-width: 40rem;
}

.abv2-ai-brief-caption {
  margin: 0 0 var(--abv2-space-16);
  color: var(--abv2-color-secondary);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.abv2-ai-brief-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--abv2-space-16);
  margin: 0;
  padding: 0;
  list-style: none;
}

.abv2-ai-brief-stat {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-8);
  padding: var(--abv2-space-12);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  background: var(--abv2-color-surface);
  min-width: 0;
}

.abv2-ai-brief-stat__label {
  color: var(--abv2-color-muted);
  font-size: 13px;
}

.abv2-ai-brief-stat__value {
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.abv2-ai-qa-list,
.abv2-ai-gap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.abv2-ai-qa-row,
.abv2-ai-gap-row {
  display: flex;
  padding: var(--abv2-space-16) 0;
  border-bottom: 1px solid var(--abv2-color-border);
  min-width: 0;
  max-width: 100%;
}

.abv2-ai-qa-row {
  flex-direction: column;
  align-items: stretch;
  gap: var(--abv2-space-8);
}

.abv2-ai-gap-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--abv2-space-16);
}

.abv2-ai-qa-row:first-child,
.abv2-ai-gap-row:first-child {
  padding-top: 0;
}

.abv2-ai-qa-row:last-child,
.abv2-ai-gap-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.abv2-ai-qa-question,
.abv2-ai-gap-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.abv2-ai-gap-title {
  margin-bottom: var(--abv2-space-8);
}

.abv2-ai-qa-answer,
.abv2-ai-gap-fix {
  margin: 0;
  color: var(--abv2-color-secondary);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.abv2-ai-gap-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.abv2-ai-gap-link {
  flex: 0 1 auto;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.abv2-ai-qa-more {
  margin: var(--abv2-space-16) 0 0;
}

.abv2-ai-boundary {
  margin: 0 0 var(--abv2-space-24);
  color: var(--abv2-color-secondary);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 72ch;
}

.abv2-setup-card {
  max-width: 760px;
  margin: 0 auto;
}

.abv2-setup-progress {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: var(--abv2-space-12);
  margin-bottom: var(--abv2-space-24);
  color: var(--abv2-color-secondary);
  font-size: 13px;
  font-weight: 600;
}

.abv2-setup-progress progress {
  width: 100%;
  height: 8px;
  accent-color: var(--abv2-color-teal);
}

.abv2-setup-boundary,
.abv2-setup-scope,
.abv2-next-action {
  margin: var(--abv2-space-24) 0;
  padding: var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-control);
  background: var(--abv2-color-surface);
}

.abv2-setup-boundary p,
.abv2-setup-scope p,
.abv2-next-action p {
  margin: var(--abv2-space-8) 0 0;
}

.abv2-setup-scope ul {
  display: grid;
  gap: var(--abv2-space-8);
  margin: var(--abv2-space-12) 0 var(--abv2-space-24);
}

.abv2-setup-scope li {
  display: flex;
  justify-content: space-between;
  gap: var(--abv2-space-16);
  padding-bottom: var(--abv2-space-8);
  border-bottom: 1px solid var(--abv2-color-border);
}

.abv2-form-stack {
  display: grid;
  gap: var(--abv2-space-24);
  margin-top: var(--abv2-space-24);
}

.abv2-field {
  display: grid;
  gap: var(--abv2-space-8);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.abv2-field label,
.abv2-field legend {
  font-weight: 650;
  color: var(--abv2-color-text);
}

.abv2-field input[type="text"],
.abv2-field select,
.abv2-field textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: var(--abv2-space-8) var(--abv2-space-12);
  border: 1px solid var(--abv2-color-border-strong);
  border-radius: var(--abv2-radius-control);
  background: var(--abv2-color-card);
  color: var(--abv2-color-text);
  box-shadow: none;
}

.abv2-field textarea {
  /* Exception: multi-line field uses 96px (1.5×64) content block height. */
  min-height: 96px;
  resize: vertical;
}

.abv2-field input:focus-visible,
.abv2-field select:focus-visible,
.abv2-field textarea:focus-visible,
.abv2-link-button:focus-visible {
  outline: 2px solid var(--abv2-color-blue);
  outline-offset: 2px;
  border-color: var(--abv2-color-blue);
}

.abv2-choice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--abv2-space-8);
}

.abv2-choice-row label {
  display: inline-flex;
  align-items: center;
  gap: var(--abv2-space-8);
  min-height: 44px;
}

.abv2-optional,
.abv2-field-help {
  color: var(--abv2-color-muted);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  font-weight: 400;
}

.abv2-field-help {
  margin: 0;
}

.abv2-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--abv2-space-16);
  margin: var(--abv2-space-24) 0;
}

.abv2-summary-grid section {
  padding: var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-control);
  min-width: 0;
}

.abv2-summary-grid h3,
.abv2-summary-grid p,
.abv2-next-action h3 {
  margin: 0;
}

.abv2-summary-grid p {
  margin-top: var(--abv2-space-8);
}

.abv2-setup-skip,
.abv2-setup-finish {
  margin-top: var(--abv2-space-24);
}

.abv2-link-button,
.abv2-btn-tertiary {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--abv2-color-secondary);
  text-decoration: underline;
  cursor: pointer;
}

.abv2-setup-status {
  margin: 0 0 var(--abv2-space-16);
  padding: var(--abv2-space-12) var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-control);
  background: var(--abv2-color-surface);
  color: var(--abv2-color-text);
  font-size: 14px;
}

.abv2-guided-fix {
  border-inline-start: 4px solid var(--abv2-color-orange-dark);
}

.abv2-guided-fix__grid,
.abv2-change-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--abv2-space-16);
  margin: var(--abv2-space-24) 0;
}

.abv2-guided-fix__grid section,
.abv2-change-comparison section {
  padding: var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-control);
  background: var(--abv2-color-surface);
  min-width: 0;
}

.abv2-guided-fix__grid h3,
.abv2-guided-fix__grid p,
.abv2-change-comparison h3,
.abv2-change-comparison p {
  margin: 0;
}

.abv2-guided-fix__grid p,
.abv2-change-comparison p {
  margin-top: var(--abv2-space-8);
}

.abv2-guided-fix__evidence {
  margin-bottom: var(--abv2-space-16);
}

.abv2-guided-fix__evidence summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
}

.abv2-guided-fix__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abv2-space-8);
  margin-bottom: var(--abv2-space-16);
}

@media (max-width: 768px) {
  .abv2-guided-fix__grid,
  .abv2-change-comparison {
    grid-template-columns: 1fr;
  }

  .abv2-summary-grid {
    grid-template-columns: 1fr;
  }

  .abv2-setup-actions .abv2-btn {
    width: 100%;
    justify-content: center;
  }

  .abv2-app {
    margin-left: -10px;
    max-width: calc(100% + 10px);
  }

  .abv2-shell-main {
    width: 100%;
    min-width: 0;
  }


  .abv2-topbar {
    padding: var(--abv2-space-12) var(--abv2-space-16);
  }

  .abv2-workspace {
    padding: var(--abv2-page-pad-mobile);
    gap: var(--abv2-space-24);
  }

  .abv2-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .abv2-findings-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .abv2-findings-toolbar .abv2-filters {
    flex: 1 1 auto;
    width: 100%;
  }

  .abv2-findings-toolbar .abv2-pdf-form,
  .abv2-findings-toolbar .abv2-pdf-form .abv2-btn {
    width: 100%;
    max-width: 100%;
  }

  .abv2-filters .abv2-form-group,
  .abv2-filters .abv2-filters__action {
    flex: 1 1 auto;
    width: 100%;
  }

  .abv2-filters .abv2-filters__action-label {
    display: none;
  }

  .abv2-filters .abv2-input,
  .abv2-filters .abv2-select,
  .abv2-filters .abv2-btn {
    min-height: 44px;
    height: 44px;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .abv2-app {
    overflow-x: visible;
  }
}

@media (max-width: 390px) {
  .abv2-topbar__title {
    font-size: 18px;
  }

  .abv2-topbar__status {
    display: none;
  }

  .abv2-nav-link {
    min-height: 44px;
  }

  .abv2-list-item {
    flex-direction: column;
    gap: var(--abv2-space-8);
  }

  .abv2-table--findings,
  .abv2-table--findings thead,
  .abv2-table--findings tbody,
  .abv2-table--findings tr,
  .abv2-table--findings th,
  .abv2-table--findings td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .abv2-table--findings thead {
    display: none;
  }

  .abv2-table--findings tr {
    padding: var(--abv2-space-16) 0;
    border-bottom: 1px solid var(--abv2-color-border);
  }

  .abv2-table--findings td {
    padding: var(--abv2-space-8) 0;
  }

  .abv2-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .abv2-filters .abv2-input,
  .abv2-filters .abv2-select,
  .abv2-filters .abv2-btn {
    min-height: 44px;
    height: 44px;
    width: 100%;
  }
}

.abv2-overview {
  /* Inherit approved shell tokens; do not reintroduce failing muted/radius overrides. */
  min-width: 0;
  max-width: 100%;
  color: var(--abv2-color-text);
  font-family: var(--abv2-font-body);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  display: flex;
  flex-direction: column;
  gap: var(--abv2-section-gap);
}

.abv2-overview *,
.abv2-overview *::before,
.abv2-overview *::after {
  box-sizing: border-box;
}

/* Context strip */
.abv2-context-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--abv2-space-16);
  background: var(--abv2-color-card);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-control);
  padding: 10px var(--abv2-space-16);
  margin-bottom: var(--abv2-space-24);
  box-shadow: var(--abv2-shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.abv2-context-item {
  display: flex;
  align-items: center;
  gap: var(--abv2-space-8);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  font-weight: 500;
  color: var(--abv2-color-secondary);
  min-width: 0;
  max-width: 100%;
}

.abv2-context-item > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.abv2-context-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.abv2-context-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 16px;
  background: var(--abv2-color-border);
}

/* Page header */
.abv2-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--abv2-space-16);
  margin-bottom: var(--abv2-space-24);
  min-width: 0;
  max-width: 100%;
}

.abv2-page-header--actions-only {
  justify-content: flex-end;
}

.abv2-page-header__copy {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.abv2-page-lead {
  margin: var(--abv2-space-8) 0 0;
  color: var(--abv2-color-secondary);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  max-width: 56ch;
}

.abv2-page-title,
.abv2-section-title {
  margin: 0;
  font-family: var(--abv2-font-display);
  font-size: var(--abv2-type-section);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--abv2-color-text);
  line-height: var(--abv2-type-section-lh);
  overflow-wrap: break-word;
  word-break: normal;
}

.abv2-actions-group,
.abv2-setup-actions,
[data-ui="action-group"] {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--abv2-action-gap);
  min-width: 0;
  width: auto;
}

.abv2-actions-group form,
.abv2-setup-actions form {
  margin: 0;
}

/* Buttons — height/padding/radius owned by primitives; screens must not override. */
.abv2-btn,
[data-ui="button"] {
  appearance: none;
  font-family: var(--abv2-font-body);
  font-weight: 600;
  font-size: var(--abv2-type-support);
  padding: 0 var(--abv2-space-16);
  border-radius: var(--abv2-radius-control);
  border: 1px solid var(--abv2-color-border-strong);
  background: var(--abv2-color-card);
  color: var(--abv2-color-text);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--abv2-inline-gap);
  min-height: var(--abv2-control-height);
  height: auto;
  box-sizing: border-box;
  text-decoration: none;
  line-height: var(--abv2-type-support-lh);
  width: fit-content;
  max-width: 100%;
}

.abv2-btn:hover,
[data-ui="button"]:hover {
  background: var(--abv2-bg-gray);
  color: var(--abv2-color-text);
  border-color: var(--abv2-color-border-hover);
}

.abv2-btn:focus-visible,
[data-ui="button"]:focus-visible {
  outline: 2px solid var(--abv2-color-teal);
  outline-offset: 2px;
}

/* Match native WordPress focus resilience when a control receives keyboard focus. */
.abv2-workspace :focus {
  outline: 2px solid var(--abv2-color-blue) !important;
  outline-offset: 2px;
}

.abv2-btn-primary {
  background: var(--abv2-color-teal);
  color: #0a2621;
  border-color: transparent;
}

.abv2-btn-primary:hover {
  background: var(--abv2-color-teal-dark);
  color: #ffffff;
}

.abv2-btn:disabled,
.abv2-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.abv2-btn-sm {
  min-height: var(--abv2-control-height);
  padding: 0 var(--abv2-space-12);
  font-size: var(--abv2-type-support);
}

.abv2-btn-hint {
  margin: var(--abv2-space-8) 0 0;
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-muted);
}

/* Action-group contract: shared 44px height; ≤768 full/equal width. */
.abv2-actions-group > .abv2-btn,
.abv2-actions-group > form > .abv2-btn,
.abv2-setup-actions > .abv2-btn,
.abv2-setup-actions > form > .abv2-btn,
[data-ui="action-group"] > .abv2-btn,
[data-ui="action-group"] > [data-ui="button"],
[data-ui="action-group"] > form > .abv2-btn {
  height: var(--abv2-action-height);
  min-height: var(--abv2-action-height);
  max-height: var(--abv2-action-height);
  box-sizing: border-box;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .abv2-actions-group,
  .abv2-setup-actions,
  [data-ui="action-group"] {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
  }

  .abv2-actions-group > .abv2-btn,
  .abv2-actions-group > form,
  .abv2-actions-group > form > .abv2-btn,
  .abv2-setup-actions > .abv2-btn,
  .abv2-setup-actions > form,
  .abv2-setup-actions > form > .abv2-btn,
  [data-ui="action-group"] > .abv2-btn,
  [data-ui="action-group"] > [data-ui="button"],
  [data-ui="action-group"] > form,
  [data-ui="action-group"] > form > .abv2-btn {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    align-self: stretch;
    justify-content: center;
    height: var(--abv2-action-height);
    min-height: var(--abv2-action-height);
    max-height: var(--abv2-action-height);
  }
}

/* Cards */
.abv2-card,
[data-ui="card"] {
  background: var(--abv2-color-card);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  padding: var(--abv2-card-pad);
  box-shadow: var(--abv2-shadow-sm);
  margin: 0 0 var(--abv2-card-gap);
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--abv2-support-action-gap);
}

.abv2-card--compact,
[data-ui="card-compact"] {
  padding: var(--abv2-card-pad-compact);
}

@media (max-width: 767px) {
  .abv2-card:not(.abv2-card--compact):not([data-ui="card-compact"]),
  [data-ui="card"]:not([data-ui="card-compact"]):not(.abv2-card--compact) {
    padding: var(--abv2-card-pad-mobile);
  }
}

.abv2-card-title {
  margin: 0;
  font-family: var(--abv2-font-display);
  font-size: var(--abv2-type-body);
  font-weight: 700;
  line-height: var(--abv2-type-body-lh);
  color: var(--abv2-color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--abv2-space-8);
  min-width: 0;
}

.abv2-card-kicker {
  font-size: var(--abv2-type-support);
  font-weight: 500;
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-secondary);
}

/* Readiness snapshot — metrics + score band */
.abv2-readiness-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: var(--abv2-space-24);
  margin-bottom: var(--abv2-space-24);
  min-width: 0;
  max-width: 100%;
}

.abv2-readiness-snapshot__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--abv2-space-16);
  min-width: 0;
}

.abv2-metric-card--queue .abv2-metric-card__value {
  color: var(--abv2-color-orange-dark);
}

/* Score hero — ring + metrics */
.abv2-score-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--abv2-space-24);
  align-items: center;
  background: var(--abv2-color-card);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  padding: var(--abv2-space-24);
  box-shadow: var(--abv2-shadow-sm);
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0;
}

.abv2-score-ring {
  position: relative;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
}

.abv2-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.abv2-score-ring__track {
  fill: none;
  stroke: var(--abv2-color-border);
  stroke-width: 10;
}

.abv2-score-ring__fill {
  fill: none;
  stroke: var(--abv2-color-orange-dark);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
}

.abv2-score-ring.is-building .abv2-score-ring__fill,
.abv2-score-slider-fill.is-building {
  stroke: #a16207;
  background: #a16207;
}

.abv2-score-ring.is-strong .abv2-score-ring__fill,
.abv2-score-slider-fill.is-strong {
  stroke: #078f73;
  background: #078f73;
}

.abv2-score-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.abv2-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--abv2-space-16);
  margin-bottom: var(--abv2-space-24);
  min-width: 0;
}

.abv2-metric-card {
  background: var(--abv2-color-card);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  padding: var(--abv2-space-16);
  box-shadow: var(--abv2-shadow-sm);
  min-width: 0;
}

.abv2-metric-card__label {
  margin: 0 0 var(--abv2-space-8);
  font-size: 12px;
  font-weight: 600;
  color: var(--abv2-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.abv2-metric-card__value {
  margin: 0;
  font-family: var(--abv2-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--abv2-color-text);
  line-height: 1.1;
}

.abv2-metric-card__hint {
  margin: var(--abv2-space-8) 0 0;
  font-size: 12px;
  color: var(--abv2-color-secondary);
}

.abv2-score-num-box {
  display: flex;
  align-items: baseline;
  flex: 0 0 auto;
  white-space: nowrap;
}

.abv2-score-val {
  font-family: var(--abv2-font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--abv2-color-text);
  line-height: 1;
}

.abv2-score-denom {
  font-size: 20px;
  font-weight: 600;
  color: var(--abv2-color-muted);
  margin-left: var(--abv2-space-4);
}

.abv2-score-slider-container {
  flex: 1 1 auto;
  min-width: 0;
}

.abv2-score-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--abv2-space-8);
  font-size: 12px;
  font-weight: 600;
  color: var(--abv2-color-secondary);
  margin-bottom: var(--abv2-space-8);
}

.abv2-band-pill {
  font-weight: 700;
  white-space: nowrap;
}

.abv2-band-pill.is-strong {
  color: var(--abv2-color-green-dark);
}

.abv2-band-pill.is-building {
  color: var(--abv2-color-blue);
}

.abv2-band-pill.is-early,
.abv2-band-pill.is-neutral {
  color: var(--abv2-color-orange-dark);
}

.abv2-score-slider-track {
  height: 10px;
  background: var(--abv2-color-border);
  border-radius: 5px;
  overflow: hidden;
}

.abv2-score-slider-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--abv2-color-teal) 0%, var(--abv2-color-blue) 100%);
}

.abv2-score-slider-fill.is-early,
.abv2-score-slider-fill.is-neutral {
  background: var(--abv2-color-orange-dark);
}

.abv2-score-meta {
  margin-top: var(--abv2-space-8);
  font-size: 12px;
  font-weight: 500;
  color: var(--abv2-color-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Grid layout — secondary rail for assets workspace */
.abv2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: var(--abv2-space-24);
  min-width: 0;
  max-width: 100%;
}

.abv2-main-column,
.abv2-rail {
  min-width: 0;
  max-width: 100%;
}

.abv2-rail .abv2-card {
  margin-bottom: var(--abv2-space-16);
}

.abv2-main-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

/* Category posture — compact white tiles; status via rail/badge/score only */
.abv2-categories-panel {
  margin-bottom: var(--abv2-space-24);
  min-width: 0;
  max-width: 100%;
}

.abv2-categories-panel__title {
  margin: 0 0 var(--abv2-space-16);
}

.abv2-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--abv2-space-12);
  min-width: 0;
}

.abv2-category-card {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-8);
  padding: var(--abv2-card-pad-compact);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  background: var(--abv2-color-card);
  box-shadow: var(--abv2-shadow-sm);
  min-width: 0;
}

.abv2-category-card[data-abv2-cat-status="attention"],
.abv2-category-card[data-abv2-cat-status="review"],
.abv2-category-card[data-abv2-cat-status="clear"] {
  background: var(--abv2-color-card);
  border-color: var(--abv2-color-border);
}

.abv2-category-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--abv2-space-8);
  min-width: 0;
}

.abv2-category-card__name {
  margin: 0;
  font-family: var(--abv2-font-body);
  font-size: var(--abv2-type-support);
  font-weight: 600;
  color: var(--abv2-color-text);
  line-height: var(--abv2-type-support-lh);
  min-width: 0;
  overflow-wrap: anywhere;
}

.abv2-category-card__name[data-ui="text-meaningful"],
.abv2-cat-score[data-ui="text-meaningful"],
.abv2-queue-title[data-ui="text-meaningful"],
.abv2-queue-why[data-ui="text-meaningful"] {
  color: var(--abv2-color-text);
}

.abv2-category-card__progress {
  display: flex;
  align-items: center;
  gap: var(--abv2-space-8);
  min-width: 0;
}

.abv2-category-card__stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--abv2-space-8);
  min-width: 0;
}

.abv2-category-card__action {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 1100px) {
  .abv2-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .abv2-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .abv2-categories-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Discovery strip */
.abv2-discovery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abv2-space-12);
  margin-bottom: var(--abv2-space-24);
  min-width: 0;
}

.abv2-discovery-chip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--abv2-space-12);
  flex: 1 1 200px;
  min-width: 0;
  padding: var(--abv2-space-12) var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-control);
  background: var(--abv2-color-card);
  box-shadow: var(--abv2-shadow-sm);
}

.abv2-discovery-chip__label code {
  font-family: var(--abv2-font-mono);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  font-weight: 600;
  color: var(--abv2-color-text);
}

/* Work queue — compact findings evidence */
.abv2-queue-list {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-16);
  min-width: 0;
}

.abv2-queue-item {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-8);
  padding: 0 0 var(--abv2-space-16);
  border: 0;
  border-bottom: 1px solid var(--abv2-color-border);
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.abv2-queue-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.abv2-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--abv2-space-12);
  min-width: 0;
}

.abv2-queue-title-area {
  display: flex;
  align-items: center;
  gap: var(--abv2-space-12);
  min-width: 0;
  flex: 1 1 auto;
}

.abv2-queue-title {
  margin: 0;
  flex: 1 1 auto;
  font-size: var(--abv2-type-body);
  font-weight: 600;
  line-height: var(--abv2-type-body-lh);
  color: var(--abv2-color-text);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.abv2-queue-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abv2-space-8);
  align-items: center;
  min-width: 0;
}

.abv2-queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abv2-space-8) var(--abv2-space-16);
  margin-top: 0;
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-muted);
  min-width: 0;
}

.abv2-queue-body,
.abv2-queue-why,
.abv2-queue-evidence {
  margin: 0;
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-text);
  max-width: var(--abv2-prose-max);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.abv2-queue-evidence {
  color: var(--abv2-color-muted);
}

.abv2-queue-evidence-tag {
  font-family: var(--abv2-font-mono);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  background: var(--abv2-bg-gray);
  padding: 1px 4px;
  border-radius: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.abv2-view-all-wrap {
  margin: var(--abv2-space-12) 0 0;
}

/* Badges — min-height 24 · line-height 16 · pad-x 8 · inline-flex centered · no wrap */
.abv2-badge,
[data-ui="badge"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--abv2-space-4);
  flex: 0 0 auto;
  font-family: var(--abv2-font-body);
  font-size: var(--abv2-type-badge);
  font-weight: 600;
  line-height: var(--abv2-type-badge-lh);
  height: var(--abv2-badge-height);
  min-height: var(--abv2-badge-height);
  max-height: var(--abv2-badge-height);
  padding: 0 var(--abv2-badge-pad-x);
  margin: 0;
  border-radius: var(--abv2-radius-control);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
  overflow: hidden;
}

.abv2-badge svg,
[data-ui="badge"] svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.abv2-badge-fail {
  background: var(--abv2-bg-orange);
  color: var(--abv2-color-orange);
  border: 1px solid rgba(255, 107, 35, 0.2);
}

.abv2-badge-warning {
  background: var(--abv2-bg-warn);
  color: #b26a00;
  border: 1px solid rgba(224, 144, 43, 0.2);
}

.abv2-badge-muted {
  background: var(--abv2-bg-gray);
  color: var(--abv2-color-secondary);
  border: 1px solid var(--abv2-color-border);
}

/* Category posture — legacy row list only (grid uses .abv2-categories-grid) */
.abv2-cat-list:not(.abv2-categories-grid) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.abv2-cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--abv2-space-12);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--abv2-color-border);
  min-width: 0;
}

.abv2-cat-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.abv2-cat-info {
  flex: 1 1 auto;
  min-width: 0;
}

.abv2-cat-name {
  font-weight: 600;
  font-size: 13px;
}

.abv2-cat-progress-box {
  display: flex;
  align-items: center;
  gap: var(--abv2-space-8);
  margin-top: var(--abv2-space-4);
  min-width: 0;
}

.abv2-cat-bar {
  width: 80px;
  height: 6px;
  background: var(--abv2-color-border);
  border-radius: 3px;
  overflow: hidden;
  flex: 0 0 auto;
}

.abv2-cat-bar--wide {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 8px;
}

.abv2-cat-fill {
  height: 100%;
  background: var(--abv2-color-green);
  border-radius: 3px;
}

.abv2-cat-fill.is-attention {
  background: var(--abv2-color-orange-dark);
}

.abv2-cat-fill.is-review {
  background: #a16207;
}

.abv2-cat-fill.is-clear {
  background: #078f73;
}

.abv2-cat-score {
  font-family: var(--abv2-font-body);
  font-size: var(--abv2-type-section);
  font-weight: 800;
  line-height: var(--abv2-type-section-lh);
  color: var(--abv2-color-text);
  white-space: nowrap;
}

.abv2-cat-status-area {
  display: flex;
  align-items: center;
  gap: var(--abv2-space-12);
  flex: 0 0 auto;
}

.abv2-status-indicator {
  font-size: var(--abv2-type-badge);
  font-weight: 600;
  line-height: var(--abv2-type-badge-lh);
  white-space: nowrap;
}

.abv2-status-indicator[data-ui="badge"] {
  height: var(--abv2-badge-height);
  min-height: var(--abv2-badge-height);
  padding: 0 var(--abv2-badge-pad-x);
  border-radius: var(--abv2-radius-control);
  box-sizing: border-box;
}

.abv2-status-indicator.is-clear {
  color: var(--abv2-color-green-dark);
  background: var(--abv2-bg-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.abv2-status-indicator.is-attention {
  color: var(--abv2-color-orange-dark);
  background: var(--abv2-bg-orange);
  border: 1px solid rgba(255, 107, 35, 0.2);
}

.abv2-status-indicator.is-review {
  color: #a16207;
  background: var(--abv2-bg-warn);
  border: 1px solid rgba(224, 144, 43, 0.2);
}

.abv2-status-indicator.is-issues {
  color: var(--abv2-color-orange-dark);
}

/* Discovery files */
.abv2-discovery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.abv2-discovery-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--abv2-space-12);
  min-width: 0;
}

.abv2-discovery-row code {
  font-family: var(--abv2-font-mono);
  font-size: 12px;
  flex: 0 0 auto;
}

.abv2-discovery-status {
  font-weight: 600;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.abv2-discovery-status.is-active {
  color: var(--abv2-color-green-dark);
}

.abv2-discovery-status.is-preview {
  color: var(--abv2-color-blue);
}

.abv2-discovery-status.is-warn {
  color: var(--abv2-color-orange-dark);
}

.abv2-discovery-status.is-muted {
  color: var(--abv2-color-muted);
}

/* Scan history */
.abv2-changed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.abv2-changed-item {
  display: flex;
  align-items: flex-start;
  gap: var(--abv2-space-12);
  padding: var(--abv2-space-12) var(--abv2-space-8);
  border-bottom: 1px solid var(--abv2-color-border);
  min-width: 0;
}

.abv2-changed-item:last-child {
  border-bottom: 0;
}

.abv2-changed-icon {
  flex: 0 0 auto;
  line-height: 0;
}

.abv2-changed-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.abv2-changed-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.abv2-changed-meta {
  margin: var(--abv2-space-4) 0 0;
  font-size: 12px;
  color: var(--abv2-color-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Empty states */
.abv2-empty-box {
  text-align: center;
  padding: 48px var(--abv2-space-24);
  border: 1px dashed var(--abv2-color-border);
  border-radius: var(--abv2-radius-control);
  color: var(--abv2-color-secondary);
  min-width: 0;
  max-width: 100%;
}

.abv2-empty-title {
  margin: 0 0 var(--abv2-space-8);
  font-size: 20px;
  font-weight: 600;
  color: var(--abv2-color-text);
}

.abv2-empty-lead {
  max-width: 540px;
  margin: 0 auto var(--abv2-space-24);
  font-size: 14px;
  color: var(--abv2-color-secondary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.abv2-empty-inline {
  text-align: left;
  padding: var(--abv2-space-32) var(--abv2-space-16);
}

.abv2-empty-inline p {
  margin: 0;
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
}

/* Tablet */
@media (max-width: 1024px) {
  .abv2-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .abv2-readiness-snapshot {
    grid-template-columns: minmax(0, 1fr);
  }

  .abv2-readiness-snapshot__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .abv2-overview {
    padding: 0;
  }

  .abv2-page-title,
  .abv2-section-title {
    font-size: 20px;
  }

  .abv2-readiness-snapshot__metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .abv2-score-hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: var(--abv2-space-24);
  }

  .abv2-score-ring {
    margin: 0;
  }

  .abv2-score-val {
    font-size: 40px;
  }

  .abv2-categories-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .abv2-discovery-strip {
    flex-direction: column;
  }

  .abv2-discovery-chip {
    flex: 1 1 auto;
    width: 100%;
  }

  .abv2-context-bar {
    gap: var(--abv2-space-12);
    padding: var(--abv2-space-12);
  }

  .abv2-context-divider {
    display: none;
  }

  .abv2-context-item {
    flex: 1 1 100%;
  }

  .abv2-actions-group {
    width: 100%;
  }

  .abv2-actions-group .abv2-btn,
  .abv2-actions-group form {
    flex: 1 1 auto;
    min-width: 0;
  }

  .abv2-actions-group .abv2-btn {
    width: 100%;
  }

  .abv2-ai-brief-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .abv2-ai-gap-row {
    flex-direction: column;
    align-items: stretch;
  }

  .abv2-ai-gap-link {
    width: 100%;
  }

  .abv2-overview--ai-preview .abv2-pdf-form,
  .abv2-overview--ai-preview .abv2-scan-form,
  .abv2-overview--ai-preview .abv2-pdf-form .abv2-btn,
  .abv2-overview--ai-preview .abv2-scan-form .abv2-btn {
    width: 100%;
    max-width: 100%;
  }
}

/* Mobile 390 */
@media (max-width: 390px) {
  .abv2-page-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--abv2-space-16);
    margin-bottom: var(--abv2-space-16);
  }

  .abv2-page-header__copy,
  .abv2-actions-group {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .abv2-page-title,
  .abv2-section-title {
    font-size: 20px;
  }

  .abv2-score-val {
    font-size: 48px;
  }

  .abv2-score-denom {
    font-size: 16px;
  }

  .abv2-card {
    padding: var(--abv2-space-16);
  }

  .abv2-card-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .abv2-queue-header {
    flex-direction: column;
    align-items: stretch;
  }

  .abv2-queue-title-area {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .abv2-queue-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .abv2-category-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .abv2-category-card__action {
    width: 100%;
    justify-content: center;
  }

  .abv2-cat-row {
    flex-direction: column;
    align-items: stretch;
  }

  .abv2-cat-status-area {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .abv2-discovery-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .abv2-discovery-status {
    text-align: left;
  }

  .abv2-empty-box {
    padding: var(--abv2-space-32) var(--abv2-space-16);
    text-align: left;
  }

  .abv2-empty-lead {
    margin-left: 0;
    margin-right: 0;
  }

  .abv2-btn,
  .abv2-btn-sm {
    min-height: 44px;
  }

  .abv2-ai-brief-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .abv2-ai-qa-row,
  .abv2-ai-gap-row {
    flex-direction: column;
    align-items: stretch;
  }

  .abv2-ai-brief-stat__value {
    font-size: 20px;
  }
}

.abv2-findings-summary__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--abv2-space-16);
  margin: 0;
  padding: 0;
  list-style: none;
}

.abv2-findings-summary__item {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-8);
  padding: var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  background: var(--abv2-color-card);
  min-width: 0;
}

.abv2-findings-summary__label {
  color: var(--abv2-color-muted);
  font-size: 13px;
}

.abv2-findings-summary__count {
  font-size: 28px;
  line-height: 1.1;
}

.abv2-table--findings .abv2-finding-cell {
  min-width: 0;
  max-width: 100%;
}

.abv2-finding-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--abv2-space-8);
  min-width: 0;
}

.abv2-finding-actions .abv2-btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.abv2-finding-cell__title {
  margin: 0 0 var(--abv2-space-8);
}

.abv2-finding-cell__summary,
.abv2-finding-cell__why,
.abv2-finding-cell__next {
  margin: 0 0 var(--abv2-space-8);
  color: var(--abv2-color-text);
  font-size: 14px;
  line-height: 1.45;
}

.abv2-finding-cell__label {
  color: var(--abv2-color-muted);
  font-weight: 600;
}

.abv2-drawer-panel__title {
  margin: 0 0 var(--abv2-space-16);
  font-size: 22px;
}

.abv2-drawer-section {
  margin-bottom: var(--abv2-space-16);
}

.abv2-drawer-section__title {
  margin: 0 0 var(--abv2-space-8);
  font-size: 14px;
}

.abv2-drawer-tech {
  margin-bottom: var(--abv2-space-16);
  padding: var(--abv2-space-12);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-md);
  background: #f6f7f7;
  color: #1d2327;
}

.abv2-drawer-tech a { color: #135e96; }
.abv2-drawer-tech :focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }
.abv2-context-help { min-width: 44px; min-height: 44px; margin: 4px 0 8px; }
.abv2-context-help:focus-visible, .abv2-card details summary:focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }
.abv2-card details { margin-top: var(--abv2-space-8); color: #1d2327; }
.abv2-card details summary { cursor: pointer; font-weight: 600; }
.abv2-badge { width: auto; min-width: 0; white-space: nowrap; }
.abv2-ai-read-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--abv2-space-16); }
.abv2-ai-read-grid .abv2-card { min-width:0; }
.abv2-ai-read-grid li { overflow-wrap:anywhere; margin-bottom:var(--abv2-space-12); }
@media (max-width: 768px) { .abv2-ai-read-grid { grid-template-columns:1fr; } }

.abv2-actions-group { gap: var(--abv2-inline-gap); }
@media (max-width: 768px) {
  .abv2-btn,
  .abv2-btn-sm,
  .abv2-filters .abv2-btn,
  .abv2-findings-toolbar .abv2-pdf-form .abv2-btn {
    min-height: var(--abv2-control-height-mobile);
    height: auto;
  }

  .abv2-input,
  .abv2-select,
  .abv2-filters .abv2-input,
  .abv2-filters .abv2-select {
    min-height: var(--abv2-control-height-mobile);
    height: var(--abv2-control-height-mobile);
  }

  .abv2-textarea {
    min-height: 96px;
    height: auto;
  }

  /* Inventory is not an announced tabular region at mobile — stack rows. */
  .abv2-table--inventory,
  .abv2-table--inventory thead,
  .abv2-table--inventory tbody,
  .abv2-table--inventory tr,
  .abv2-table--inventory th,
  .abv2-table--inventory td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .abv2-table--inventory thead {
    display: none;
  }

  .abv2-table--inventory tr {
    padding: var(--abv2-space-16) 0;
    border-bottom: 1px solid var(--abv2-color-border);
  }

  .abv2-table--inventory td {
    padding: var(--abv2-space-8) 0;
  }

  .abv2-table--inventory td .abv2-btn,
  .abv2-table--inventory td .abv2-btn-sm {
    display: inline-flex;
    width: auto;
    max-width: 100%;
  }

  .abv2-table--content-review,
  .abv2-table--content-review thead,
  .abv2-table--content-review tbody,
  .abv2-table--content-review tr,
  .abv2-table--content-review th,
  .abv2-table--content-review td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .abv2-table--content-review thead {
    display: none;
  }

  .abv2-table--content-review tr {
    padding: var(--abv2-space-16) 0;
    border-bottom: 1px solid var(--abv2-color-border);
  }

  .abv2-table--content-review th:last-child,
  .abv2-table--content-review td:last-child {
    width: auto;
  }
}
@media (max-width: 390px) {
  .abv2-actions-group, .abv2-drawer-actions { display: grid; gap: var(--abv2-inline-gap); }
  .abv2-actions-group .abv2-btn, .abv2-drawer-actions .abv2-btn { width: 100%; }
}

.abv2-drawer-tech__list {
  margin: var(--abv2-space-12) 0 0;
}

.abv2-drawer-tech__row dd {
  margin: 0 0 var(--abv2-space-8);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.abv2-drawer-actions {
  margin-top: var(--abv2-space-16);
}

.abv2-evidence-context__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--abv2-space-16);
  margin: var(--abv2-space-16) 0 0;
}

.abv2-evidence-context__item {
  min-inline-size: 0;
}

.abv2-evidence-context__item dt {
  color: var(--abv2-color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.abv2-evidence-context__item dd {
  margin: var(--abv2-space-4) 0 0;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .abv2-findings-summary__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .abv2-evidence-context__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .abv2-evidence-context__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .abv2-btn {
    transition: none;
  }
}

/* =========================================================================
   Approved pilot primitives + three-screen composition (layout only)
   ========================================================================= */

[data-ui="text-page"],
.abv2-page-title,
.abv2-section-title[data-ui="text-page"] {
  margin: 0;
  font-size: var(--abv2-type-page);
  font-weight: 700;
  line-height: var(--abv2-type-page-lh);
  color: var(--abv2-color-text);
}

[data-ui="text-section"],
.abv2-section-title[data-ui="text-section"] {
  margin: 0;
  font-size: var(--abv2-type-section);
  font-weight: 700;
  line-height: var(--abv2-type-section-lh);
  color: var(--abv2-color-text);
}

.abv2-app [data-ui="text-meaningful"],
.abv2-app [data-ui="text-meaningful"].abv2-muted,
.abv2-table td[data-ui="text-meaningful"],
.abv2-table th[data-ui="text-meaningful"],
.abv2-empty-inline [data-ui="text-meaningful"] {
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-muted);
}

[data-ui="page-header"],
.abv2-page-header {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-8);
}

[data-ui="notice"],
.abv2-notice {
  display: flex;
  gap: var(--abv2-space-12);
  align-items: flex-start;
  padding: var(--abv2-space-12) var(--abv2-space-16);
  border-radius: var(--abv2-radius-card);
  border: 1px solid var(--abv2-color-border);
  background: var(--abv2-color-surface);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-text);
  max-width: var(--abv2-prose-max);
}

.abv2-notice--info {
  background: #f0f6fc;
  border-color: #c5d9ed;
}

.abv2-notice--success {
  background: #ecfdf5;
  border-color: #b7e4c7;
  max-width: 100%;
}

/* Quick Start composition */
.abv2-setup-journey {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 560px;
}

.abv2-setup-step {
  display: flex;
  gap: var(--abv2-space-16);
  padding: var(--abv2-space-16) 0;
  border-top: 1px solid var(--abv2-color-border);
}

.abv2-setup-step:first-child {
  border-top: none;
  padding-top: 0;
}

.abv2-setup-step:last-child {
  padding-bottom: 0;
}

.abv2-setup-step__index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--abv2-color-surface);
  border: 2px solid var(--abv2-color-border);
  color: var(--abv2-color-text);
}

.abv2-setup-step__title {
  margin: 0 0 var(--abv2-space-4);
  font-size: var(--abv2-type-body);
  line-height: var(--abv2-type-body-lh);
  font-weight: 600;
  color: var(--abv2-color-text);
}

.abv2-setup-step__desc {
  margin: 0;
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-muted);
  max-width: var(--abv2-prose-max);
}

.abv2-setup-privacy {
  margin-top: var(--abv2-space-16);
}

/* Dashboard priority card composition — pilot-faithful */
.abv2-priority-card {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-16);
  position: relative;
}

.abv2-priority-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--abv2-color-teal);
  border-radius: var(--abv2-radius-card) 0 0 var(--abv2-radius-card);
  pointer-events: none;
}

.abv2-priority-card__label {
  margin: 0;
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--abv2-color-muted);
}

.abv2-priority-card__main {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-8);
}

.abv2-priority-card__score {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--abv2-space-12);
  font-size: var(--abv2-type-body);
  line-height: var(--abv2-type-body-lh);
  color: var(--abv2-color-text);
}

.abv2-priority-card__score-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: #9a6700;
}

.abv2-priority-card__score-value.is-strong {
  color: #00a88c;
}

.abv2-priority-card__score-value.is-building {
  color: #135e96;
}

.abv2-priority-card__impact {
  margin: 0;
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-text);
  max-width: var(--abv2-prose-max);
}

.abv2-priority-card__evidence {
  margin: 0;
  padding-top: var(--abv2-space-8);
  border-top: 1px solid var(--abv2-color-border);
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-muted);
}

.abv2-priority-card > .abv2-actions-group,
.abv2-priority-card > [data-ui="action-group"] {
  width: auto;
  max-width: 100%;
}

.abv2-priority-card > .abv2-actions-group > .abv2-btn,
.abv2-priority-card > [data-ui="action-group"] > .abv2-btn {
  width: fit-content;
  max-width: 100%;
}

/* Content editor contextual guidance */
.abv2-editor-context {
  margin: 0 0 var(--abv2-space-16);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-4);
}

.abv2-editor-context strong {
  font-weight: 700;
  color: var(--abv2-color-text);
}

.abv2-context-item {
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
}

/*
 * Pages & Answers — connect intro to the working area.
 * .abv2-overview already uses gap: --abv2-section-gap (32). Stacking that with
 * .abv2-page-header margin-bottom (--abv2-space-24) detaches the lead from
 * Public pages / Select a page. Collapse header margin and compensate so the
 * rendered intro→.abv2-pages-layout gap is exactly --abv2-card-gap (24) —
 * related, not major-section spacing — without changing other screens.
 */
.abv2-overview--content > .abv2-page-header {
  margin-bottom: 0;
}

.abv2-overview--content > .abv2-page-header + .abv2-pages-layout {
  margin-top: calc(var(--abv2-card-gap) - var(--abv2-section-gap));
}

/*
 * Dashboard — one deliberate 32px gap between stacked sections.
 * These children already participate in .abv2-overview's flex gap, so their
 * legacy bottom margins must not add a second 24px gap.
 */
.abv2-overview--scanned > .abv2-context-bar,
.abv2-overview--scanned > .abv2-page-header,
.abv2-overview--scanned > .abv2-categories-panel,
.abv2-overview--scanned > .abv2-discovery-strip {
  margin-bottom: 0;
}

/* Pages & Answers — balanced two-column page cards + editor */
.abv2-pages-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--abv2-space-24);
  align-items: start;
  margin-bottom: var(--abv2-card-gap);
  min-width: 0;
  max-width: 100%;
}

.abv2-pages-layout > .abv2-card {
  margin-bottom: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.abv2-pages-list-card {
  gap: var(--abv2-space-12);
}

.abv2-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-8);
  width: 100%;
}

.abv2-page-list__item {
  margin: 0;
  min-width: 0;
}

.abv2-page-item {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--abv2-space-8);
  width: 100%;
  text-align: left;
  padding: var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  background: #fff;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.abv2-page-item:hover {
  border-color: #8c8f94;
}

.abv2-page-item:focus-visible {
  outline: 2px solid var(--abv2-color-teal);
  outline-offset: 2px;
}

.abv2-page-item.is-selected,
.abv2-page-item[aria-selected="true"] {
  border-color: var(--abv2-color-teal);
  box-shadow: 0 0 0 1px var(--abv2-color-teal);
}

.abv2-page-item__title {
  margin: 0;
  font-size: var(--abv2-type-body);
  line-height: var(--abv2-type-body-lh);
  font-weight: 600;
  color: var(--abv2-color-text);
}

.abv2-page-item__url {
  margin: 0;
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  font-family: var(--abv2-font-mono);
  color: var(--abv2-color-muted);
}

.abv2-page-item__issue {
  margin: 0;
  font-size: var(--abv2-type-support);
  line-height: var(--abv2-type-support-lh);
  color: var(--abv2-color-text);
}

.abv2-page-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abv2-space-8);
  align-items: center;
}

.abv2-inline-editor-host,
.abv2-inline-editor-panel {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  position: static;
}

@media (min-width: 901px) {
  .abv2-inline-editor-host,
  .abv2-inline-editor-panel {
    position: sticky;
    top: var(--abv2-space-16);
    align-self: start;
  }
}

.abv2-inline-editor-host[hidden] {
  display: none !important;
}

.abv2-inline-editor-mount,
.abv2-inline-editor-host > .abv2-card,
.abv2-inline-editor-host .abv2-inline-editor,
.abv2-inline-editor-static,
.abv2-inline-editor-empty {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-16);
}

.abv2-controlled-answer {
  display: flex;
  flex-direction: column;
  gap: var(--abv2-space-16);
  margin-top: var(--abv2-space-8);
  padding-top: var(--abv2-space-16);
  border-top: 1px solid var(--abv2-color-border);
  width: 100%;
  min-width: 0;
}

.abv2-controlled-answer__records,
.abv2-controlled-answer__record-list,
.abv2-controlled-answer__record {
  display: grid;
  gap: var(--abv2-space-16);
  min-width: 0;
}

.abv2-controlled-answer__records {
  padding-top: var(--abv2-space-16);
  border-top: 1px solid var(--abv2-color-border);
}

.abv2-controlled-answer__record-list {
  gap: var(--abv2-space-12);
}

.abv2-controlled-answer__record {
  padding: var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  background: var(--abv2-color-surface);
}

.abv2-controlled-answer__record-heading,
.abv2-controlled-answer__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--abv2-space-8);
  margin: 0;
}

.abv2-controlled-answer__record h5,
.abv2-controlled-answer__record p {
  margin: 0;
}

.abv2-controlled-answer__steps {
  display: grid;
  gap: var(--abv2-space-8);
  padding-left: var(--abv2-space-16);
}

.abv2-btn-ghost {
  background: transparent;
  border-color: transparent;
  font-weight: 500;
  color: var(--abv2-color-text);
  padding: 0 var(--abv2-space-12);
}

.abv2-btn-ghost:hover:not(:disabled) {
  background: #f6f7f7;
  border-color: transparent;
}

.abv2-tech-checks {
  margin-bottom: var(--abv2-card-gap);
}

.abv2-tech-checks__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--abv2-space-8) var(--abv2-space-16);
  cursor: pointer;
  list-style: none;
}

.abv2-tech-checks__summary::-webkit-details-marker {
  display: none;
}

.abv2-tech-checks[open] .abv2-tech-checks__summary {
  margin-bottom: var(--abv2-space-16);
  padding-bottom: var(--abv2-space-12);
  border-bottom: 1px solid var(--abv2-color-border);
}

.abv2-page-lead,
.abv2-lead,
[data-ui="page-header"] .abv2-lead,
[data-ui="page-header"] [data-ui="text-meaningful"] {
  margin: 0;
  font-size: var(--abv2-type-body);
  line-height: var(--abv2-type-body-lh);
  color: var(--abv2-color-text);
  max-width: var(--abv2-prose-max);
}

@media (max-width: 900px) {
  .abv2-pages-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .abv2-inline-editor-host,
  .abv2-inline-editor-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .abv2-topbar {
    padding: var(--abv2-space-12) var(--abv2-space-16);
    gap: var(--abv2-space-8);
    min-height: 52px;
  }

  .abv2-topbar__title {
    font-size: 16px;
    line-height: 20px;
  }

  .abv2-topbar__tagline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .abv2-plugin-nav {
    padding: var(--abv2-space-8) var(--abv2-space-16);
  }

  .abv2-plugin-nav__desktop {
    display: none;
  }

  .abv2-plugin-nav__mobile {
    display: block;
    width: 100%;
  }

  .abv2-plugin-nav__mobile-toggle {
    width: 100%;
    min-height: var(--abv2-control-height-mobile);
    padding: 0 var(--abv2-space-12);
    border-color: var(--abv2-color-border);
    background: var(--abv2-color-card);
  }

  .abv2-plugin-nav__current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
  }

  .abv2-plugin-nav__mobile-action {
    display: inline-flex;
    align-items: center;
    gap: var(--abv2-space-8);
    flex: 0 0 auto;
    color: var(--abv2-color-secondary);
  }

  .abv2-plugin-nav__mobile-menu {
    margin-top: var(--abv2-space-8);
    max-height: min(520px, calc(100vh - 200px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  .abv2-plugin-nav__menu-link {
    min-height: var(--abv2-control-height-mobile);
  }

  .abv2-priority-card > .abv2-actions-group,
  .abv2-priority-card > [data-ui="action-group"] {
    width: 100%;
  }

  .abv2-priority-card > .abv2-actions-group > .abv2-btn,
  .abv2-priority-card > [data-ui="action-group"] > .abv2-btn {
    width: 100%;
  }
}

.abv2-plans-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--abv2-space-16);
}

.abv2-plans-row {
  display: grid;
  gap: var(--abv2-space-12);
  padding: var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  background: var(--abv2-color-surface);
  min-width: 0;
}

.abv2-plans-row__copy {
  display: grid;
  gap: var(--abv2-space-8);
  min-width: 0;
}

.abv2-plans-row__copy p,
.abv2-plans-row__status p {
  margin: 0;
}

.abv2-plans-row__status {
  display: grid;
  gap: var(--abv2-space-8);
  justify-items: start;
}

.abv2-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--abv2-space-16);
}

.abv2-package-card {
  display: grid;
  gap: var(--abv2-space-12);
  min-width: 0;
  padding: var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  background: var(--abv2-color-surface);
}

.abv2-package-card.is-current {
  border-color: var(--abv2-color-teal-dark);
  box-shadow: inset 0 0 0 1px var(--abv2-color-teal-dark);
}

.abv2-package-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--abv2-space-8);
}

.abv2-package-card__heading h3,
.abv2-package-card__price,
.abv2-package-card p,
.abv2-package-card ul {
  margin: 0;
}

.abv2-package-card__price {
  font-size: var(--abv2-type-section);
  font-weight: 700;
  line-height: var(--abv2-type-section-lh);
  color: var(--abv2-color-text);
}

.abv2-package-card ul {
  display: grid;
  gap: var(--abv2-space-8);
  padding-left: var(--abv2-space-16);
}

@media (max-width: 768px) {
  .abv2-package-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.abv2-form-stack {
  display: grid;
  gap: var(--abv2-space-16);
  margin-top: var(--abv2-space-16);
}

.abv2-field {
  display: grid;
  gap: var(--abv2-space-8);
  min-width: 0;
}

.abv2-field__label {
  font-weight: 600;
  color: var(--abv2-color-text);
}

.abv2-field input,
.abv2-field select,
.abv2-field textarea {
  min-height: var(--abv2-control-height);
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-control);
  padding: 0 var(--abv2-space-12);
  background: #fff;
  box-sizing: border-box;
}

.abv2-disclosure {
  overflow: hidden;
}

.abv2-disclosure__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--abv2-space-8) var(--abv2-space-16);
  cursor: pointer;
  list-style: none;
}

.abv2-disclosure__summary::-webkit-details-marker {
  display: none;
}

.abv2-disclosure__body {
  display: grid;
  gap: var(--abv2-space-16);
  margin-top: var(--abv2-space-16);
  padding-top: var(--abv2-space-16);
  border-top: 1px solid var(--abv2-color-border);
}

.abv2-review-queue,
.abv2-review-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--abv2-space-16);
}

.abv2-review-item {
  display: grid;
  gap: var(--abv2-space-12);
  padding: var(--abv2-space-16);
  border: 1px solid var(--abv2-color-border);
  border-radius: var(--abv2-radius-card);
  min-width: 0;
}

.abv2-review-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--abv2-space-8);
}

.abv2-review-item__head h3 {
  margin: 0;
  font-size: var(--abv2-type-body);
  line-height: var(--abv2-type-body-lh);
}

.abv2-tech-list code {
  font-family: var(--abv2-font-mono);
  font-size: 12px;
  word-break: break-word;
}

.abv2-meta-list {
  display: grid;
  gap: var(--abv2-space-16);
  margin: 0;
}

.abv2-meta-list dt {
  font-weight: 600;
  margin: 0 0 var(--abv2-space-8);
}

.abv2-meta-list dd {
  margin: 0;
}

.abv2-card--info {
  border-color: #c3e0ea;
  background: #f5fafc;
}

@media (max-width: 768px) {
  [data-ui="text-page"],
  .abv2-page-title,
  .abv2-section-title,
  [data-ui="page-header"] [data-ui="text-page"] {
    font-size: var(--abv2-type-page-sm);
    line-height: var(--abv2-type-page-sm-lh);
  }
}
