:root {
  --navy: #082751;
  --navy-light: #103d77;
  --blue: #1f5fc8;
  --text: #10213f;
  --muted: #65738a;
  --line: #dce3ed;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --shadow: 0 10px 30px rgba(16, 33, 63, 0.07);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

[data-admin-only][hidden] {
  display: none !important;
}

body.auth-pending .app-shell,
.customer-auth-gate[hidden] {
  display: none !important;
}

/* Keep protected app content out of layout and text selection until auth succeeds. */
.app-shell[hidden] {
  display: none !important;
}

.customer-auth-gate {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px 18px;
  background: rgba(18, 24, 34, .58);
  backdrop-filter: blur(3px);
}

.customer-auth-gate-card {
  position: relative;
  width: min(100%, 440px);
  padding: 34px 32px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  color: #16181d;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.customer-auth-gate-card h1 {
  margin: 0;
  padding: 0 22px;
  color: #17191d;
  font-size: 1.55rem;
  line-height: 1.3;
  text-align: center;
}

.customer-auth-gate-card .customer-auth-subtitle {
  margin: 10px 0 22px;
  color: #5c626d;
  line-height: 1.5;
  text-align: center;
}

.customer-auth-gate-card label {
  display: block;
  margin: 17px 0 7px;
  color: #3e444e;
  font-size: .9rem;
  font-weight: 650;
}

.customer-auth-gate-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #d5d8de;
  border-radius: 999px;
  background: #fff;
  color: #17191d;
  font: inherit;
}

.customer-auth-gate-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.customer-auth-gate-card .google-auth-button,
.customer-auth-gate-card .auth-email-continue { min-height: 46px; border-radius: 999px; font-weight: 650; }
.customer-auth-gate-card #guestGoogleBtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; padding: 12px 16px; line-height: 20px; text-align: center; border: 1px solid #cfd2d8; background: #fff; color: #202329; }
.customer-auth-gate-card .google-auth-button:hover { background: #f7f8fa; }
.customer-auth-gate-card .google-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; line-height: 20px; font-family: Arial, sans-serif; font-size: 1.25rem; font-weight: 800; background: conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0); color: transparent; background-clip: text; }
.customer-auth-gate-card .google-auth-label { display: block; margin: 0; line-height: 20px; }
.customer-auth-gate-card .auth-email-continue { margin-top: 10px; border: 0; background: #171717; color: #fff; }
.auth-signup-entry { margin: 18px 0 0; color: #616873; font-size: .9rem; text-align: center; }
.auth-signup-entry button { padding: 4px 2px; border: 0; background: transparent; color: #155fc1; font: inherit; font-weight: 700; cursor: pointer; }
.auth-signup-entry button:hover { text-decoration: underline; }
.auth-or-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0 16px; color: #747a84; font-size: .78rem; }
.auth-or-divider::before,.auth-or-divider::after { content: ""; height: 1px; flex: 1; background: #e0e2e6; }
.auth-dialog-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #707680; font-size: 1.5rem; cursor: pointer; }
.auth-dialog-close:hover { background: #f0f1f3; }
.auth-email-details { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eceef1; }
.auth-email-details[hidden] { display: none !important; }
.customer-auth-gate-card .auth-text-button { border: 0; background: transparent; color: #2463bd; font: inherit; padding: 8px; cursor: pointer; }
.customer-auth-legal { margin: 18px 0 0; color: #7a8089; font-size: .76rem; line-height: 1.45; text-align: center; }
.customer-auth-gate-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f6f8;
  color: #525965;
  font-size: .84rem;
}

@media(max-width:480px){.customer-auth-gate-card{padding:32px 22px 20px;border-radius:16px}.customer-auth-gate{padding:12px}}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 14px 18px;
  position: sticky;
  top: 0;
}

.brand {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  gap: 12px;
  line-height: 1.15;
  padding: 0 10px 28px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: flex;
  font-size: 13px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  font-size: 14px;
  font-weight: 650;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  text-align: left;
}

.nav-item span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.active {
  background: var(--navy-light);
  color: #fff;
}

.sidebar-note {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: auto;
  padding: 16px 10px 0;
}

.sidebar-note strong {
  font-size: 12px;
}

.sidebar-note p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.55;
  margin: 7px 0 0;
}

.workspace {
  min-width: 0;
}

.topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 24px;
}

.topbar h1 {
  font-size: 22px;
  margin: 0;
}

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

.project-select {
  align-items: center;
  display: flex;
  gap: 9px;
}

.project-select label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-select input {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  height: 38px;
  padding: 0 11px;
  width: 210px;
}

.view {
  display: none;
  padding: 16px;
}

.active-view {
  display: block;
}

.input-panel,
.analysis-panel,
.coverage-panel,
.matrix-panel,
.placeholder-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.input-panel,
.analysis-panel,
.coverage-panel,
.matrix-panel {
  padding: 15px;
}

.input-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.field label {
  font-size: 13px;
  font-weight: 750;
}

.field small {
  color: var(--muted);
  font-size: 11px;
}

textarea,
select,
.link-intake-form input {
  background: #fff;
  border: 1px solid #bdc9da;
  border-radius: 6px;
  color: var(--text);
}

textarea {
  line-height: 1.45;
  min-height: 112px;
  padding: 11px 12px;
  resize: vertical;
}

select {
  height: 42px;
  padding: 0 10px;
}

.link-intake-form input {
  min-height: 42px;
  min-width: 0;
  padding: 0 11px;
}

textarea:focus,
select:focus,
input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 200, 0.12);
  outline: 0;
}

.input-actions {
  align-content: start;
  display: grid;
  gap: 10px;
}

.scope-note {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  padding: 10px;
}

.scope-note strong {
  color: var(--text);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.scope-note p {
  margin: 0;
}

.link-intake-panel {
  background: #f8fbff;
  border: 1px solid #d6e4f7;
  border-radius: 8px;
  margin-top: 14px;
  padding: 13px;
}

.link-intake-panel[hidden] { display: none !important; }

.supabase-panel {
  background: #fbfff8;
  border: 1px solid #d8eacb;
  border-radius: 8px;
  margin-top: 14px;
  padding: 13px;
}

.link-intake-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.link-intake-head h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.link-intake-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.link-intake-head span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 9px;
}

.link-intake-choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.link-intake-choice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.link-intake-choice h4 {
  font-size: 13px;
  margin: 0 0 6px;
}

.link-intake-choice > p,
.link-intake-choice-status,
.link-intake-shared-note {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

.link-intake-choice .link-intake-form {
  margin: 10px 0 8px;
  grid-template-columns: minmax(0, 1fr);
}

.link-intake-choice .link-intake-form button {
  min-height: 40px;
  width: 100%;
}

.link-intake-shared-note {
  margin-top: 10px;
}

.link-intake-form {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) 132px;
  margin-top: 12px;
}

.supabase-config-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
  margin-top: 12px;
}

.supabase-config-grid label {
  display: grid;
  gap: 6px;
}

.supabase-config-grid span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.supabase-config-grid input {
  background: #fff;
  border: 1px solid #bdc9da;
  border-radius: 6px;
  color: var(--text);
  min-height: 42px;
  min-width: 0;
  padding: 0 11px;
}

.customer-login-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 420px);
  margin-top: 12px;
}

.customer-login-grid label {
  display: grid;
  gap: 6px;
}

.customer-login-grid span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.customer-login-grid input {
  background: #fff;
  border: 1px solid #bdc9da;
  border-radius: 6px;
  color: var(--text);
  min-height: 42px;
  padding: 0 11px;
}

.supabase-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 10px;
}

.google-auth-button {
  border-color: #aebdd1;
  background: #fff;
}

.auth-redirect-hint {
  margin: 9px 0 0;
  padding: 10px 12px;
  border: 1px solid #b9d8c1;
  border-radius: 8px;
  background: #f1fbf3;
  color: #245c32;
  font-size: 12px;
  line-height: 1.5;
}

.auth-redirect-hint.is-local {
  border-color: #f0d391;
  background: #fff8e8;
  color: #7a4b00;
}

.magic-link-limit-hint {
  margin: 9px 0 0;
  padding: 10px 12px;
  border: 1px solid #f0d391;
  border-radius: 8px;
  background: #fff8e8;
  color: #7a4b00;
  font-size: 12px;
  line-height: 1.5;
}

.magic-link-limit-hint.is-waiting {
  border-color: #9fc3f5;
  background: #eef6ff;
  color: #174f96;
}

.magic-link-limit-hint.is-rate-limited {
  border-color: #f0aeb6;
  background: #fff1f2;
  color: #9f1d2d;
}

.danger-button {
  border-color: #f2b8bd;
  color: #9f1d2d;
}

.danger-button:hover {
  background: #fff1f2;
}

.supabase-security-card,
.supabase-recovery-card {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  background: #f8fafc;
}

.sandbox-payment-card {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid #d7e0ee;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 34px rgba(31, 73, 125, .08);
}

.customer-onboarding-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid #cddcf1;
  border-radius: 16px;
  background: #f7faff;
}

.customer-onboarding-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 24px 70px rgba(7, 35, 74, .26);
  color: var(--text);
}

.customer-onboarding-dialog::backdrop {
  background: rgba(8, 39, 81, .58);
}

.customer-onboarding-head h4,
.customer-onboarding-head p,
.customer-support-group p {
  margin: 6px 0 0;
}

.customer-onboarding-head p,
.customer-support-group p {
  color: var(--muted);
}

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

.customer-onboarding-form>label {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.customer-onboarding-form input:not([type="radio"]),
.customer-onboarding-form select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d1dbea;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.customer-onboarding-form fieldset {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #d1dbea;
  border-radius: 10px;
}

.customer-onboarding-form fieldset legend {
  padding: 0 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.customer-onboarding-form fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.customer-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
}

.customer-onboarding-form>.analysis-connection-status {
  grid-column: 1 / -1;
  margin: 0;
}

.customer-support-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.customer-support-group {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  background: #f7faff;
}

.customer-support-group small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.customer-support-group small[hidden] {
  display: none;
}

.customer-support-group a[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.pricing-activation-notice {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #ead9ad;
  border-radius: 10px;
  background: #fffaf0;
  color: #765819;
  font-size: 13px;
}

.sandbox-payment-head,
.sandbox-payment-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sandbox-payment-head h4 {
  margin: 6px 0 4px;
  font-size: 24px;
}

.sandbox-payment-head p,
.sandbox-payment-status {
  margin: 0;
  color: var(--muted);
}

.credit-quota-card {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #cbdcf3;
  border-radius: 12px;
  background: #f5f9ff;
}

.credit-quota-card h5,
.credit-quota-card p {
  margin: 0;
}

.credit-quota-card .trial-quota-row {
  padding-top: 0;
  border-top: 0;
}

.sandbox-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff0c2;
  color: #8a5600;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sandbox-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sandbox-balance-grid article {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid #dce5f2;
  border-radius: 13px;
  background: #f7faff;
}

.sandbox-balance-grid span,
.sandbox-selected-plan span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sandbox-balance-grid strong {
  color: #123968;
  font-size: 20px;
}

.sandbox-balance-grid small {
  color: var(--muted);
}

.sandbox-package-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.sandbox-package-heading h5,
.sandbox-package-heading p {
  margin: 0;
}

.sandbox-package-heading h5 {
  font-size: 17px;
}

.sandbox-package-heading p,
.sandbox-package-heading > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.sandbox-package-heading > span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: #245f9f;
  font-weight: 700;
  white-space: nowrap;
}

.proposed-monthly-pricing {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #ddd2ff;
  border-radius: 16px;
  background: linear-gradient(145deg, #fbfaff 0%, #f5f0ff 100%);
}

.proposed-monthly-pricing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.proposed-monthly-pricing-head h5,
.proposed-monthly-pricing-head p {
  margin: 6px 0 0;
}

.proposed-monthly-pricing-head h5 {
  font-size: 18px;
}

.proposed-monthly-pricing-head p,
.proposed-monthly-audience {
  color: var(--muted);
}

.proposed-monthly-status {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #d7c8ff;
  border-radius: 999px;
  background: #fff;
  color: #5635b8;
  font-size: 12px;
  font-weight: 800;
}

.proposed-monthly-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proposed-monthly-plan {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #e3e4ec;
  border-radius: 15px;
  background: #fff;
}

.proposed-monthly-plan.is-highlighted {
  border: 2px solid #9b7bff;
  padding: 17px;
  box-shadow: 0 8px 24px rgba(106, 73, 202, .1);
}

.proposed-monthly-plan.is-selected {
  border-color: var(--accent, #3167d5);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #3167d5) 20%, transparent);
}

.package-purchase-button {
  width: 100%;
  margin-top: 18px;
}

.package-purchase-button:disabled {
  cursor: wait;
  opacity: .65;
}

.proposed-monthly-plan h6 {
  margin: 0 0 15px;
  font-size: 16px;
}

.proposed-monthly-plan p {
  margin: 0;
}

.proposed-monthly-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.proposed-monthly-price strong {
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -.03em;
}

.proposed-monthly-price span,
.proposed-monthly-total span {
  color: var(--muted);
  font-size: 13px;
}

.proposed-monthly-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px !important;
  padding: 12px;
  border-radius: 12px;
  background: #f4f0ff;
}

.proposed-monthly-total strong {
  color: #5935c6;
  font-size: 19px;
}

.proposed-monthly-audience {
  flex: 1;
  margin-top: 14px !important;
  line-height: 1.55;
}

.proposed-monthly-plan ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 19px;
  font-size: 13px;
  line-height: 1.55;
}

.sandbox-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.sandbox-plan-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 196px;
  padding: 17px;
  border: 1px solid #d7e0ee;
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sandbox-plan-card:hover {
  border-color: #8eb8ef;
  box-shadow: 0 9px 22px rgba(42, 101, 191, .1);
  transform: translateY(-1px);
}

.sandbox-plan-card.is-selected {
  border: 2px solid #2a66c7;
  padding: 16px;
  background: #f2f7ff;
  box-shadow: 0 0 0 3px rgba(42, 102, 199, .1);
}

.sandbox-plan-label {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #225ca8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}

.sandbox-plan-card strong {
  font-size: 17px;
  line-height: 1.3;
}

.sandbox-plan-card small {
  color: var(--muted);
  line-height: 1.45;
}

.sandbox-plan-card b {
  align-self: end;
  margin-top: auto;
  color: #174f95;
  font-size: 19px;
}

.sandbox-payment-controls {
  margin-top: 18px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #dce5f2;
}

.sandbox-selected-plan {
  display: grid;
  flex: 1;
  gap: 4px;
}

.sandbox-payment-status {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ead9ad;
}

.sandbox-payment-status.is-success {
  color: #166534;
  border-color: #86d19a;
  background: #f0fff4;
}

.sandbox-payment-status.is-error {
  color: #9f1239;
  border-color: #f5a3b5;
  background: #fff4f6;
}

.sandbox-payment-history {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.sandbox-payment-history > p {
  margin: 0;
  color: var(--muted);
}

.sandbox-payment-history-panel {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #dce5f2;
}

.sandbox-payment-history-panel summary {
  color: #245f9f;
  font-weight: 800;
  cursor: pointer;
}

.sandbox-payment-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.sandbox-payment-order small {
  color: var(--muted);
}

.sandbox-payment-order-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.sandbox-payment-order-actions .secondary-button {
  max-width: 320px;
}

@media (max-width: 760px) {
  .sandbox-payment-head,
  .sandbox-payment-controls,
  .sandbox-package-heading,
  .proposed-monthly-pricing-head {
    flex-direction: column;
    align-items: stretch;
  }

  .sandbox-balance-grid,
  .sandbox-plan-grid,
  .proposed-monthly-plan-grid {
    grid-template-columns: 1fr;
  }

  .customer-onboarding-form {
    grid-template-columns: 1fr;
  }

  .customer-onboarding-actions,
  .customer-onboarding-form>.analysis-connection-status {
    grid-column: 1;
  }

  .sandbox-package-heading > span,
  .proposed-monthly-status {
    width: max-content;
    white-space: normal;
  }
}

.supabase-privacy-notice {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
}

.analysis-consent-panel {
  margin-top: 14px;
  padding: 0 2px;
}

.analysis-consent-panel .supabase-consent-row {
  margin-top: 12px;
}

.local-admin-preview-button {
  width: 100%;
  margin-top: 12px;
  font-size: 0.84rem;
}

.supabase-privacy-notice summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
}

.supabase-privacy-notice p {
  margin: 10px 0 0;
  line-height: 1.55;
}

.policy-risk-panel {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #d8e0eb;
  border-radius: 14px;
  background: #fff;
}

.policy-risk-under-input {
  margin: 12px 0 0;
  padding: 16px;
}

.analysis-industry-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid #b9d0f4;
  border-radius: 14px;
  background: #f4f8ff;
}

.analysis-industry-panel[hidden] { display: none; }
.analysis-industry-panel span { color: var(--muted); font-size: 0.85rem; }
.analysis-industry-panel strong { display: block; margin-top: 5px; color: var(--navy); font-size: 1.15rem; }
.analysis-industry-panel p { margin: 7px 0 0; color: var(--muted); }
.analysis-industry-meta { display: grid; align-content: center; gap: 7px; min-width: 230px; }
.analysis-industry-meta span { padding: 7px 10px; border-radius: 999px; background: #fff; border: 1px solid #d6e2f3; }

.policy-risk-panel.policy-risk-low { border-color: #9bc8a1; background: #f5fbf5; }
.policy-risk-panel.policy-risk-medium { border-color: #efc46b; background: #fffaf0; }
.policy-risk-panel.policy-risk-high,
.policy-risk-panel.policy-risk-manual_review { border-color: #e59aa3; background: #fff5f6; }

.policy-risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #65748a;
  font-size: 0.82rem;
  font-weight: 800;
}

.policy-risk-low .policy-risk-badge { color: #35753d; }
.policy-risk-medium .policy-risk-badge { color: #96610b; }
.policy-risk-high .policy-risk-badge,
.policy-risk-manual_review .policy-risk-badge { color: #a33142; }

.policy-risk-summary { margin: 12px 0; color: #263852; }
.policy-risk-findings { display: grid; gap: 8px; }

.policy-risk-finding {
  padding: 10px 12px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.policy-risk-finding strong { display: block; margin-bottom: 4px; }
.policy-risk-finding p { margin: 3px 0; }

.policy-risk-platforms,
.policy-risk-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.policy-risk-platforms { margin: 5px 0 7px; }
.policy-risk-platforms span {
  padding: 2px 7px;
  border: 1px solid #d8e0eb;
  border-radius: 999px;
  color: #50627a;
  font-size: .76rem;
  font-weight: 700;
}

.policy-score-disclaimer {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid #a33142;
  background: #fff;
  color: #4c2b31;
  line-height: 1.55;
}

.policy-risk-links {
  margin-top: 12px;
  color: #52647c;
  font-size: .85rem;
}
.policy-risk-links a { color: #2456a6; text-underline-offset: 2px; }

.policy-risk-reference { margin: 12px 0; border: 1px solid var(--border, #d5dce6); border-radius: 10px; padding: 12px; }
.policy-risk-reference summary { cursor: pointer; font-weight: 700; }
.policy-risk-reference>p { font-size: 13px; line-height: 1.6; margin: 10px 0; }
.policy-risk-reference-groups { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; }
.policy-risk-reference-groups h3 { font-size: 14px; margin: 0 0 8px; }

.supabase-security-card h4,
.supabase-security-card p,
.supabase-recovery-card h4,
.supabase-recovery-card p {
  margin: 0;
}

.trial-quota-row,
.customer-library-head,
.customer-library-card-head,
.customer-library-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.trial-quota-row {
  padding-top: 14px;
  border-top: 1px solid #d7e0ee;
}

.customer-library-panel {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid #b9cce8;
  border-radius: 14px;
  background: #f8fbff;
}

.customer-library-head h2,
.customer-library-head p,
.customer-library-card h3,
.customer-library-card p {
  margin: 0;
}

.customer-library-head p {
  margin-top: 6px;
  color: #5f6f86;
}

.customer-library-status {
  margin: 14px 0;
  color: #365578;
}

.customer-library-list {
  display: grid;
  gap: 12px;
}

.customer-library-import,
.customer-imported-drive-list,
.customer-analysis-history {
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  padding: 16px;
  background: #f8fbff;
}

.customer-library-import h3,
.customer-imported-drive-list h3,
.customer-analysis-history h3 {
  margin: 0 0 6px;
  color: #112b50;
}

.customer-library-import > p {
  margin: 0;
  color: #526985;
  line-height: 1.55;
}

.customer-library-import-controls {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.customer-library-import-controls input {
  flex: 1;
  min-width: 0;
}

.customer-imported-drive-files {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.customer-imported-drive-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fff;
}

.customer-imported-drive-file strong,
.customer-imported-drive-file small {
  display: block;
}

.customer-imported-drive-file small {
  margin-top: 3px;
  color: #667892;
}

.customer-analysis-history {
  display: grid;
  gap: 12px;
}

.customer-library-card,
.customer-library-empty {
  padding: 16px;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  background: #fff;
}

.customer-library-card-head span,
.customer-library-meta {
  color: #667892;
  font-size: 0.85rem;
}

.customer-library-card-head time {
  color: #667892;
  font-size: 0.8rem;
  white-space: nowrap;
}

.customer-library-card > p {
  margin-top: 10px;
  color: #40536d;
}

.customer-score-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.customer-score-scope {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  color: #40536d;
  font-size: 0.82rem;
}

.customer-score-scope span {
  color: #667892;
  line-height: 1.45;
}

.customer-library-disclosure-actions,
.customer-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-library-disclosure-actions {
  margin-top: 12px;
}

.customer-library-disclosure-actions button {
  margin: 0;
}

.customer-score-disclosure,
.customer-library-inline-images {
  margin-top: 12px;
}

.customer-score-disclosure[hidden],
.customer-library-inline-images[hidden] {
  display: none;
}

.customer-image-card > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style-position: outside;
}

.customer-image-card > summary span {
  color: #667892;
  font-size: 0.82rem;
}

.customer-image-card > summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-image-card-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d7e0ee;
}

.customer-image-inline-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed #d7e0ee;
  border-radius: 10px;
  color: #667892;
}

.saved-analysis-id-map {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid #d8e2ef;
  border-radius: 9px;
  background: #f8fbff;
}

.saved-analysis-id-map > strong {
  display: block;
  margin-bottom: 6px;
}

.saved-analysis-id-map p {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.customer-score {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 0.78rem;
}

.customer-score.strong {
  background: #e8f7ed;
  color: #176533;
}

.customer-score.medium {
  background: #fff5d9;
  color: #875a00;
}

.customer-score.weak {
  background: #ffebee;
  color: #9b2430;
}

@media (max-width: 720px) {
  .trial-quota-row,
  .customer-library-head,
  .customer-library-card-head,
  .customer-library-meta {
    flex-direction: column;
  }

  .customer-library-import-controls,
  .customer-imported-drive-file {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-library-disclosure-actions > button,
  .customer-image-actions > button {
    flex: 1 1 180px;
  }
}

.supabase-security-card p {
  margin-top: 5px;
  color: #5f6f86;
}

.supabase-mfa-setup {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.supabase-mfa-setup[hidden] {
  display: none;
}

.supabase-mfa-setup img {
  width: min(220px, 100%);
  padding: 8px;
  border: 1px solid #d7e0ee;
  border-radius: 10px;
  background: #fff;
}

.supabase-mfa-setup img[hidden] {
  display: none;
}

.supabase-mfa-verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

@media (max-width: 620px) {
  .supabase-mfa-verify {
    grid-template-columns: 1fr;
  }
}

.supabase-mfa-verify input {
  min-width: 0;
  border: 1px solid #cbd6e5;
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
}

.supabase-result-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
  padding: 11px;
}

.supabase-result-panel h4 {
  color: var(--text);
  font-size: 13px;
  margin: 0 0 8px;
}

.supabase-result-panel table {
  border-collapse: collapse;
  color: var(--text);
  font-size: 11px;
  margin-top: 9px;
  width: 100%;
}

.supabase-result-panel th,
.supabase-result-panel td {
  border-bottom: 1px solid var(--line);
  padding: 7px 6px;
  text-align: left;
  vertical-align: top;
}

.supabase-result-panel th {
  background: #f6f8fb;
  font-weight: 850;
}

.supabase-output {
  background: #0f172a;
  border-radius: 6px;
  color: #e2e8f0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.45;
  margin: 9px 0 0;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.supabase-output[hidden] { display: none !important; }
.saved-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 0; flex-wrap: wrap; }
.saved-pager button { padding: 8px 12px; border: 1px solid var(--line, #d5dfeb); border-radius: 8px; background: var(--panel, white); color: inherit; cursor: pointer; }
.saved-pager button:disabled { opacity: .45; cursor: default; }
.saved-video-detail summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line, #d7c4ab);
  border-radius: 8px;
  background: var(--soft, #f5eee4);
  color: var(--text, #18283b);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.saved-video-detail summary::-webkit-details-marker { display: none; }
.saved-video-detail summary::after { content: "＋"; font-size: 1rem; line-height: 1; }
.saved-video-detail[open] summary::after { content: "−"; }
.saved-video-detail summary:hover { border-color: var(--accent, #b5773c); background: var(--soft-strong, #efe3d3); }
.saved-video-detail summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent, #2456a6) 45%, transparent); outline-offset: 2px; }
.saved-source-heading { overflow-wrap: anywhere; padding: 12px; background: var(--soft, #eff5ff); border-radius: 8px; }

.supabase-status-ok {
  color: #247a37;
  font-weight: 850;
}

.supabase-status-error {
  color: #b33a3a;
  font-weight: 850;
}

.source-link-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.source-link-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
}

.source-link-card.is-selected {
  border-color: #2b67d1;
  box-shadow: 0 0 0 2px rgba(43, 103, 209, 0.12);
}

.analysis-source-panel {
  background: #fff;
  border: 1px solid #cbd9ee;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.analysis-source-panel h3 {
  font-size: 13px;
  margin: 0 0 3px;
}

.analysis-source-panel p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
}

.analysis-source-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analysis-source-option {
  align-items: flex-start;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  padding: 10px;
}

.analysis-source-option.active {
  background: #eef5ff;
  border-color: #2b67d1;
}

.analysis-source-option input {
  margin-top: 2px;
}

.analysis-source-option span,
.analysis-source-option small {
  display: block;
}

.analysis-source-option b {
  color: var(--text);
  font-size: 12px;
}

.analysis-source-option small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  margin-top: 3px;
}

.analysis-source-summary {
  background: #f2f6fc;
  border-radius: 6px;
  color: #27466f !important;
  font-weight: 750;
  padding: 9px 10px;
}

.analysis-source-summary.is-blocked {
  background: #fff3f3;
  color: #9f2f3f !important;
}

.analysis-submit-note {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.feedback-report-identity {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.image-analysis-panel {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
}

.image-analysis-panel[hidden],
.image-analysis-preview[hidden],
.image-analysis-head button[hidden] {
  display: none;
}

.image-analysis-head,
.image-analysis-preview {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.image-analysis-head strong,
.image-analysis-head small,
.image-analysis-preview strong,
.image-analysis-preview small {
  display: block;
}

.image-analysis-head small,
.image-analysis-preview small,
.image-analysis-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.image-analysis-drop {
  align-items: center;
  background: #fff;
  border: 1px dashed #92a7c4;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 86px;
  padding: 14px;
  text-align: center;
}

.image-analysis-drop:hover,
.image-analysis-drop:focus-within,
.image-analysis-drop.is-dragging {
  background: #eef5ff;
  border-color: #2b67d1;
}

.image-analysis-drop input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.image-analysis-drop span,
.image-analysis-drop small {
  display: block;
}

.image-analysis-preview {
  justify-content: flex-start;
}

.image-analysis-preview img {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 92px;
  object-fit: contain;
  width: 120px;
}

.image-analysis-status {
  margin: 0;
}

.image-sequence-source-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-analysis-drop-compact {
  min-height: 86px;
}

.image-sequence-file-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-sequence-file-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
}

.image-sequence-file-item img {
  border-radius: 4px;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.image-sequence-file-item span {
  min-width: 0;
}

.image-sequence-file-item b,
.image-sequence-file-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-source-policy {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.45;
}

#imageDriveFolderInput {
  width: 100%;
}

@media (max-width: 760px) {
  .analysis-source-options {
    grid-template-columns: 1fr;
  }

  .image-analysis-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-sequence-source-grid,
  .image-sequence-file-list {
    grid-template-columns: 1fr;
  }

  .image-analysis-preview img {
    height: auto;
    max-height: 220px;
    width: 100%;
  }
}

.primary-analysis-status {
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  min-height: 0;
}

.primary-analysis-status:empty {
  display: none;
}

.primary-analysis-status.is-blocked {
  background: #fff3f3;
  border: 1px solid #efb7bf;
  color: #8f2636;
  padding: 9px 10px;
}

.primary-analysis-status.is-running {
  background: #eef5ff;
  border: 1px solid #bfd3f2;
  color: #245a9a;
  padding: 9px 10px;
}

.analysis-quota-summary {
  background: #f5f7fb;
  border: 1px solid #d8dfeb;
  border-radius: 8px;
  color: #56647a;
  font-size: 11px;
  line-height: 1.45;
  padding: 9px 11px;
}

.analysis-quota-summary.is-available {
  background: #eef9f2;
  border-color: #b9dfc7;
  color: #276642;
}

.analysis-quota-summary.is-exhausted,
.analysis-quota-summary.is-blocked {
  background: #fff2f3;
  border-color: #f0bdc3;
  color: #963746;
}

.primary-analysis-status strong,
.primary-analysis-status span {
  display: block;
}

.primary-analysis-status ul {
  margin: 5px 0 0;
  padding-left: 18px;
}

.analysis-requirement-missing {
  animation: requirement-pulse 1.1s ease-in-out 2;
  box-shadow: 0 0 0 3px rgba(211, 55, 79, 0.2) !important;
  outline: 2px solid #d3374f !important;
  outline-offset: 2px;
}

@keyframes requirement-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(211, 55, 79, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(211, 55, 79, 0.08); }
}

.admin-technical-panel {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 14px;
}

.admin-technical-panel h3 {
  margin: 5px 0 4px;
}

.admin-customer-lookup {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.admin-customer-lookup label,
.admin-customer-control-grid label,
.admin-account-note {
  display: grid;
  gap: 6px;
  color: #465a78;
  font-size: 0.88rem;
}

.admin-customer-lookup input,
.admin-customer-control-grid input,
.admin-customer-control-grid select,
.admin-account-note textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd8ea;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #10213d;
  font: inherit;
}

.admin-customer-account-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.admin-customer-account-summary article {
  border: 1px solid #d6e1f0;
  border-radius: 10px;
  padding: 12px;
  background: #f7faff;
}

.admin-customer-account-summary span,
.admin-customer-account-summary small {
  display: block;
}

.admin-customer-account-summary strong {
  display: block;
  margin: 5px 0;
  overflow-wrap: anywhere;
}

.admin-account-fieldset {
  margin: 16px 0;
  border: 1px solid #d6e1f0;
  border-radius: 10px;
  padding: 14px;
}

.admin-account-fieldset legend {
  padding: 0 6px;
  color: #10213d;
  font-weight: 700;
}

.admin-customer-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-account-note {
  margin-bottom: 12px;
}

.admin-control-boundary,
.admin-customer-account-history p {
  color: #60708d;
  font-size: 0.86rem;
}

@media (max-width: 800px) {
  .admin-customer-lookup,
  .admin-customer-control-grid,
  .admin-customer-account-summary {
    grid-template-columns: 1fr;
  }
}

.admin-model-router-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.admin-model-router-grid label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 700;
}

.admin-model-router-grid select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
}

.admin-model-test-table-wrap { margin-top: 14px; }
.admin-model-test-table { min-width: 820px; }
.admin-model-test-table th,
.admin-model-test-table td { white-space: nowrap; }

.analysis-connection-status {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 0;
  padding: 10px;
}

.analysis-connection-status.is-ok {
  background: #eef9f1;
  border-color: #add9b8;
  color: #205e32;
}

.analysis-connection-status.is-error {
  background: #fff3f3;
  border-color: #efb7bf;
  color: #8f2636;
}

.supabase-save-receipt {
  background: #eef9f1;
  border: 1px solid #add9b8;
  border-radius: 8px;
  color: #205e32;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 10px;
  padding: 11px;
}

.supabase-save-receipt strong,
.supabase-save-receipt span {
  display: block;
}

.supabase-save-receipt button {
  margin-top: 8px;
}

.source-link-card strong,
.source-link-card span,
.source-link-card small {
  display: block;
}

.source-link-card strong {
  font-size: 13px;
}

.source-link-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.source-link-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 6px;
}

.source-link-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.source-link-badge {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 8px;
}

.source-link-badge.readable {
  background: #edf8f1;
  color: #267447;
}

.source-link-badge.pending {
  background: #fff7e6;
  color: #93600e;
}

.source-link-badge.failed {
  background: #fff0f1;
  color: #a93d4a;
}

.context-comparison {
  margin-top: 14px;
}

.submitted-type-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
  margin-bottom: 14px;
  padding: 14px 16px;
}

.submitted-type-panel.matched {
  border-color: #8ccf9a;
  background: #f5fff6;
}

.submitted-type-panel.warning {
  border-color: #f0b15a;
  background: #fff9ef;
}

.submitted-type-panel.neutral {
  border-color: #b9cff4;
  background: #f6f9ff;
}

.submitted-type-panel span,
.submitted-type-panel small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.45;
}

.submitted-type-panel strong {
  color: var(--text);
  display: block;
  font-size: 18px;
  margin: 5px 0;
}

.submitted-type-panel p {
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.submitted-type-aside {
  align-content: start;
  display: grid;
  gap: 6px;
}

.submitted-type-aside i {
  background: #fff;
  border: 1px solid rgba(16, 33, 63, 0.08);
  border-radius: 999px;
  color: var(--blue);
  display: inline-block;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  padding: 6px 9px;
  width: fit-content;
}

.landing-framework-audit {
  background: #fff8eb;
  border: 1px solid #efcf96;
  border-radius: 8px;
  color: #6f4b14;
  grid-column: 1 / -1;
  padding: 11px 12px;
}

.landing-framework-audit > strong {
  color: #26344d;
  font-size: 13px;
  margin: 0 0 5px;
}

.landing-framework-audit p,
.landing-framework-audit li {
  color: #6f4b14;
  font-size: 11px;
  line-height: 1.5;
}

.landing-framework-audit p {
  margin: 0 0 8px;
}

.landing-framework-score {
  background: #fff;
  border: 1px solid #efd8aa;
  border-radius: 6px;
  color: #7a5418;
  font-size: 11px;
  font-weight: 850;
  margin-bottom: 8px;
  padding: 7px 8px;
}

.landing-framework-audit ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.landing-framework-audit li {
  align-items: start;
  background: #fff;
  border: 1px solid #efd8aa;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px minmax(0, 1fr);
  list-style: none;
  padding: 7px 8px;
}

.landing-framework-audit li > span {
  font-weight: 900;
}

.landing-framework-audit li.passed {
  border-color: #bfe7c8;
  color: #235d33;
}

.landing-framework-audit li.missing {
  border-color: #efc2c8;
  color: #833844;
}

.landing-framework-audit b,
.landing-framework-audit small {
  display: block;
}

.landing-framework-audit small {
  color: inherit;
  margin-top: 2px;
}

.context-empty {
  background: #edf4ff;
  border: 1px dashed #b9cff4;
  border-radius: 6px;
  color: #24529a;
  font-size: 12px;
  padding: 10px 12px;
}

.sample-template-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

.sample-template-summary,
.reference-library-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
}

.sample-template-summary::-webkit-details-marker,
.reference-library-summary::-webkit-details-marker { display: none; }

.sample-template-summary::before,
.reference-library-summary::before {
  color: var(--blue);
  content: "▸";
  font-size: 16px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.sample-template-panel[open] .sample-template-summary::before,
.reference-library[open] .reference-library-summary::before { transform: rotate(90deg); }

.sample-template-summary > span,
.reference-library-summary > span { display: grid; gap: 4px; min-width: 0; }
.sample-template-summary strong,
.reference-library-summary strong { color: var(--text); font-size: 14px; }
.sample-template-summary small,
.reference-library-summary small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.sample-template-summary em,
.reference-library-summary em { color: var(--muted); font-size: 11px; font-style: normal; white-space: nowrap; }
.sample-template-content,
.reference-library-content { display: grid; gap: 12px; }
.sample-template-panel[open] .sample-template-content,
.reference-library[open] .reference-library-content { margin-top: 12px; }

.batch-analysis-panel {
  background: #fbfdff;
  border: 1px solid #cbd9ee;
  border-radius: 10px;
  display: grid;
  gap: 11px;
  margin-top: 16px;
  padding: 15px;
}

.batch-analysis-panel[hidden] {
  display: none !important;
}

.batch-analysis-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.batch-analysis-head h3 {
  font-size: 14px;
  margin: 0 0 5px;
}

.batch-analysis-head p,
.batch-analysis-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.batch-analysis-badge {
  background: #eef5ff;
  border: 1px solid #c8daf4;
  border-radius: 999px;
  color: #245a9a;
  font-size: 11px;
  font-weight: 750;
  padding: 6px 9px;
  white-space: nowrap;
}

.batch-analysis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-analysis-actions .primary-button,
.batch-analysis-actions .secondary-button {
  min-height: 36px;
  padding: 8px 12px;
  width: auto;
}

.batch-analysis-status {
  background: #f2f6fc;
  border: 1px solid #d9e3f0;
  border-radius: 7px;
  color: #496179;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 9px 10px;
}

.batch-analysis-status.is-warning {
  background: #fff8eb;
  border-color: #ecd09a;
  color: #805817;
}

.batch-analysis-queue {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  max-height: 340px;
  overflow: auto;
  padding: 0;
}

.batch-analysis-item {
  align-items: center;
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  padding: 9px 10px;
}

.batch-analysis-item.is-running { border-color: #78a7e8; background: #f1f7ff; }
.batch-analysis-item.is-completed { border-color: #b8dec3; background: #f1fbf4; }
.batch-analysis-item.is-failed,
.batch-analysis-item.is-blocked { border-color: #efbec5; background: #fff5f5; }
.batch-analysis-item.is-stopped { opacity: 0.7; }

.batch-analysis-item-index {
  align-items: center;
  background: #edf2f8;
  border-radius: 50%;
  color: #3e5269;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.batch-analysis-item-copy { min-width: 0; }
.batch-analysis-item-copy b,
.batch-analysis-item-copy small { display: block; }
.batch-analysis-item-copy b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-analysis-item-copy small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.batch-analysis-item-status { color: #48617d; font-size: 11px; font-weight: 750; text-align: right; }

.batch-analysis-note {
  border-top: 1px dashed #d9e2ee;
  padding-top: 10px;
}

.industry-resolution-panel {
  grid-column: 1 / -1;
  border: 1px solid #eabf78;
  border-radius: 12px;
  background: #fff9ef;
  padding: 14px;
}

.industry-resolution-panel strong { color: #7b4a08; }
.industry-resolution-panel p { margin: 6px 0 10px; color: #6b5b3e; }
.industry-resolution-panel dl { margin: 0; display: grid; gap: 7px; }
.industry-resolution-panel dl div { display: grid; grid-template-columns: 155px 1fr; gap: 10px; }
.industry-resolution-panel dt { font-weight: 700; color: #59401a; }
.industry-resolution-panel dd { margin: 0; color: #4b4f58; }

.account-quota-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.account-quota-grid article {
  background: #f8fbff;
  border: 1px solid #dbe7f7;
  border-radius: 9px;
  padding: 12px;
}

.account-quota-grid span,
.account-quota-grid strong { display: block; }
.account-quota-grid span { color: var(--muted); font-size: 10px; font-weight: 800; }
.account-quota-grid strong { color: var(--navy); font-size: 18px; margin-top: 6px; }

.quota-usage-receipt {
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  color: #475569;
  font-size: 12px;
  margin: 10px 0 0;
  padding: 9px 11px;
}

.quota-usage-receipt.is-trial { border-left-color: #2563eb; }
.quota-usage-receipt.is-paid { border-left-color: #15803d; }

.saved-analysis-detail { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.saved-analysis-detail summary { color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 800; }
.saved-analysis-summary { display: grid; gap: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }
.saved-analysis-summary p,
.saved-analysis-score-list p,
.saved-analysis-privacy-note { margin: 0; }
.saved-analysis-score-list { display: grid; gap: 8px; }
.saved-analysis-score-list article { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; }
.saved-analysis-score-list article > div { align-items: center; display: flex; justify-content: space-between; }
.saved-analysis-score-list span { color: var(--blue); font-weight: 850; }
.saved-analysis-score-list p,
.saved-analysis-privacy-note { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 6px; }
.saved-analysis-privacy-note { background: #fff9ef; border-left: 3px solid #d99a18; margin: 12px 0; padding: 9px 11px; }

@media (max-width: 760px) {
  .account-quota-grid,
  .saved-analysis-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sample-template-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.sample-template-head > div {
  display: grid;
  gap: 4px;
}

.sample-template-head strong {
  color: var(--text);
  font-size: 14px;
}

.sample-template-head span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.sample-template-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.sample-template-card {
  background: #f8fbff;
  border: 1px solid #dbe7f7;
  border-radius: 9px;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.sample-template-card.active {
  background: #eff6ff;
  border-color: #7eaded;
  box-shadow: inset 0 0 0 1px #7eaded;
}

.sample-template-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sample-template-card strong {
  color: var(--text);
  font-size: 13px;
}

.sample-template-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
}

.context-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 9px;
}

.context-title strong {
  font-size: 13px;
}

.context-title span {
  color: var(--muted);
  font-size: 11px;
}

.context-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.context-card-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.context-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  min-height: 260px;
  padding: 14px;
}

.context-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 200, 0.1);
}

.context-card.locked {
  background: #f8fafc;
  border-style: dashed;
  cursor: default;
  opacity: 0.78;
}

.context-card.locked strong {
  color: #64748b;
}

.context-card span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 850;
  margin-bottom: 7px;
}

.context-card strong {
  color: var(--blue);
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.context-card p,
.context-card small,
.context-card li {
  display: block;
  font-size: 11px;
  line-height: 1.45;
}

.context-card p {
  color: var(--text);
  margin: 8px 0;
}

.context-card small {
  color: var(--muted);
}

.context-card ul {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.context-card li {
  color: var(--text);
  padding-left: 14px;
  position: relative;
}

.context-card li::before {
  background: var(--blue);
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  top: 7px;
  width: 4px;
}

.context-card .context-checklist {
  gap: 6px;
}

.context-card .context-checklist li {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  gap: 7px;
  padding: 6px 8px;
}

.context-card .context-checklist li::before {
  display: none;
}

.context-checklist li > span {
  align-items: center;
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  flex: 0 0 20px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  margin: 0;
}

.context-checklist li.passed {
  background: #f0fbf3;
  border-color: #bfe7c8;
  color: #235d33;
}

.context-checklist li.partial {
  background: #fff9ec;
  border-color: #efd99f;
  color: #7b5615;
}

.context-checklist li.missing {
  background: #fff3f4;
  border-color: #efc2c8;
  color: #833844;
}

.context-checklist li small {
  color: inherit;
  font-weight: 850;
  margin-left: auto;
}

.context-score {
  background: #f2f6fc;
  border-radius: 6px;
  padding: 7px 8px;
}

.context-sample {
  background: #fff9ef;
  border: 1px solid #f3d5aa;
  border-radius: 7px;
  color: #70480b;
  font-size: 11px;
  line-height: 1.5;
  margin: 9px 0;
  padding: 9px;
}

.context-source {
  color: var(--blue);
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 8px;
  text-decoration: none;
}

.context-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.context-source-list .context-source {
  background: #eef5ff;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  margin-top: 0;
  padding: 5px 8px;
}

.reference-library {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
}

.reference-library > div:first-child {
  display: grid;
  gap: 4px;
}

.reference-library strong {
  font-size: 13px;
}

.reference-library span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.reference-disclaimer {
  background: #fff8eb;
  border: 1px solid #edd09d;
  border-radius: 7px;
  color: #7a5418;
  font-size: 11px;
  line-height: 1.45;
  padding: 9px 10px;
}

.reference-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-image-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.customer-image-preview {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 120px;
  overflow: hidden;
}

.customer-image-preview img {
  display: block;
  max-height: 360px;
  max-width: 100%;
  object-fit: contain;
}

.customer-image-card > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; }

.reference-links a {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  display: grid;
  gap: 4px;
  padding: 10px;
  text-decoration: none;
}

.reference-links a:hover {
  border-color: var(--blue);
}

.reference-links b {
  color: var(--blue);
  font-size: 12px;
}

.reference-links small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.primary-button,
.secondary-button {
  border-radius: 5px;
  font-size: 13px;
  font-weight: 750;
  min-height: 42px;
}

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

.secondary-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.secondary-button:disabled,
.secondary-button.is-loading {
  cursor: wait;
  opacity: 0.62;
}

.text-button {
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}

.stage-rail {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.stage-card {
  background: var(--stage-soft);
  border: 1px solid var(--stage);
  border-radius: 7px;
  color: var(--stage-dark);
  min-height: 74px;
  padding: 10px;
  position: relative;
}

.stage-card::after {
  color: #8b98aa;
  content: "›";
  font-size: 23px;
  position: absolute;
  right: -10px;
  top: 24px;
}

.stage-card:last-child::after {
  content: "";
}

.stage-card span {
  background: var(--stage);
  border-radius: 999px;
  color: #fff;
  display: grid;
  font-size: 11px;
  font-weight: 900;
  height: 22px;
  place-items: center;
  width: 22px;
}

.stage-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  margin-top: 9px;
}

.result-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  margin-top: 14px;
}

.shadow-library-panel {
  background: linear-gradient(180deg, #f7f4ff 0%, #fff 100%);
  border: 1px solid #d8cdfb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(66, 45, 134, 0.07);
  margin-top: 14px;
  padding: 18px;
}

.shadow-library-heading {
  align-items: center;
}

.shadow-mode-badge {
  background: #ede7ff;
  border: 1px solid #c9b8ff;
  border-radius: 999px;
  color: #50319b;
  font-size: 10px;
  font-weight: 850;
  padding: 6px 9px;
  white-space: nowrap;
}

.shadow-mode-disclaimer,
.shadow-baseline-note,
.shadow-empty {
  background: #fff;
  border: 1px solid #ddd7ef;
  border-radius: 8px;
  color: #4d4761;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
}

.customer-feedback-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 14px;
  padding: 18px;
}

.customer-feedback-panel .shadow-feedback-panel {
  background: #fbfaff;
  margin-top: 0;
}

.feedback-report-summary {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.feedback-report-summary > div {
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.feedback-report-summary span,
.feedback-report-summary strong {
  display: block;
}

.feedback-report-summary span {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}

.feedback-report-summary strong {
  color: var(--navy);
  font-size: 12px;
}

.feedback-report-summary button {
  align-self: center;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 11px 14px;
}

.customer-feedback-workspace {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.feedback-empty-state {
  color: var(--muted);
  line-height: 1.6;
  padding: 20px;
  text-align: center;
}

.customer-view-label {
  background: #eaf3ff;
  border: 1px solid #bdd3f2;
  border-radius: 999px;
  color: #245fa9;
  display: inline-block;
  font-size: 10px;
  font-weight: 850;
  margin-bottom: 8px;
  padding: 5px 8px;
}

.shadow-summary-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.shadow-summary-grid > div {
  background: #fff;
  border: 1px solid #e2dcf2;
  border-radius: 8px;
  padding: 10px;
}

.shadow-summary-grid span,
.shadow-summary-grid strong {
  display: block;
}

.shadow-summary-grid span {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}

.shadow-summary-grid strong {
  color: #2f2550;
  font-size: 12px;
}

.shadow-match-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.shadow-match-card {
  align-items: start;
  background: #fff;
  border: 1px solid #ded7f1;
  border-radius: 9px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 11px;
}

.shadow-match-rank {
  background: #684bc3;
  border-radius: 999px;
  color: #fff;
  display: grid;
  font-size: 11px;
  font-weight: 900;
  height: 25px;
  place-items: center;
  width: 25px;
}

.shadow-match-title {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.shadow-match-title strong {
  color: #241b42;
  font-size: 12px;
}

.shadow-match-title span {
  background: #f0ebff;
  border-radius: 999px;
  color: #593aa7;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 7px;
  white-space: nowrap;
}

.shadow-match-card p,
.shadow-match-card small,
.shadow-method-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.shadow-score-breakdown {
  color: #4e3a89;
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
}

.shadow-scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.shadow-scope-tags span {
  background: #f4f1fb;
  border: 1px solid #ddd5ef;
  border-radius: 999px;
  color: #594b78;
  font-size: 9px;
  font-weight: 750;
  padding: 3px 6px;
}

.shadow-method-note {
  margin-bottom: 0;
}

.shadow-feedback-panel {
  align-items: start;
  background: #fff;
  border: 1px solid #ddd7ef;
  border-radius: 9px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 0.65fr) minmax(0, 1.35fr);
  margin-top: 10px;
  padding: 11px;
}

.shadow-feedback-panel strong,
.shadow-feedback-panel small {
  display: block;
}

.shadow-feedback-panel strong {
  color: #30234f;
  font-size: 11px;
}

.shadow-feedback-panel small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  margin-top: 4px;
}

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

.feedback-report-picker {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: var(--ink, #182b4d);
  font-weight: 700;
}

.feedback-report-picker select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bfd0e8;
  border-radius: 10px;
  background: #fff;
  color: #182b4d;
  font: inherit;
  font-weight: 500;
}

.shadow-feedback-form label {
  color: #433666;
  display: grid;
  font-size: 10px;
  font-weight: 750;
  gap: 4px;
}

.shadow-feedback-form .corrected-industry-field[hidden] {
  display: none;
}

.shadow-feedback-form select,
.shadow-feedback-form textarea {
  background: #fff;
  border: 1px solid #cfc3ed;
  border-radius: 7px;
  color: #2f2550;
  font: inherit;
  padding: 7px 8px;
  width: 100%;
}

.shadow-feedback-form textarea {
  min-height: 54px;
  resize: vertical;
}

.shadow-feedback-form .feedback-note-field,
.shadow-feedback-form button {
  grid-column: 1 / -1;
}

.shadow-feedback-form button {
  background: #f7f4ff;
  border: 1px solid #cfc3ed;
  border-radius: 7px;
  color: #4d378d;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  padding: 7px 9px;
}

.shadow-feedback-form button:hover:not(:disabled) {
  background: #ece5ff;
}

.shadow-feedback-form button:disabled,
.shadow-feedback-form select:disabled,
.shadow-feedback-form textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shadow-feedback-status {
  color: #277046;
  font-size: 10px;
  grid-column: 1 / -1;
  margin: 0;
}

.shadow-feedback-status.is-error {
  color: #a0313f;
}

.admin-library-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-only-label {
  background: #ede7ff;
  border: 1px solid #cfbfff;
  border-radius: 999px;
  color: #50319b;
  display: inline-block;
  font-size: 10px;
  font-weight: 850;
  margin-bottom: 8px;
  padding: 5px 8px;
}

.admin-library-stats,
.admin-feedback-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-library-stats article,
.admin-feedback-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
}

.admin-library-stats span,
.admin-library-stats strong,
.admin-library-stats small,
.admin-feedback-grid span,
.admin-feedback-grid strong,
.admin-feedback-grid small {
  display: block;
}

.admin-library-stats span,
.admin-feedback-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.admin-library-stats strong {
  color: var(--navy);
  font-size: 25px;
  margin: 7px 0 4px;
}

.admin-feedback-grid strong {
  color: #69758b;
  font-size: 14px;
  margin: 8px 0 5px;
}

.admin-library-stats small,
.admin-feedback-grid small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.admin-library-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 14px;
  padding: 16px;
}

.admin-coverage-table-wrap {
  margin-top: 0;
}

.admin-coverage-table {
  min-width: 1280px;
}

.admin-coverage-table td,
.admin-coverage-table th {
  font-size: 10px;
  text-align: center;
}

.admin-coverage-table td:first-child,
.admin-coverage-table th:first-child {
  text-align: left;
}

.admin-coverage-table td:first-child small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.industry-feedback-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
  padding: 12px;
}

.industry-feedback-filters label {
  color: var(--navy);
  display: grid;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
}

.industry-feedback-filters select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--navy);
  font: inherit;
  padding: 8px;
}

.admin-operations-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px 0;
  padding: 16px;
}

.admin-operations-panel h3 {
  margin: 0 0 5px;
}

.admin-operations-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 14px;
  overflow: hidden;
}

.admin-operations-section > summary {
  background: #f7f9fc;
  color: var(--astra-text, var(--navy));
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 14px;
}

.admin-section-note {
  color: var(--muted);
  font-size: 11px;
  margin: 12px 14px 0;
}

.admin-operations-table-wrap {
  margin: 12px 14px 14px;
}

.admin-operations-table {
  min-width: 980px;
  width: 100%;
}

.admin-operations-table th,
.admin-operations-table td {
  font-size: 10px;
  text-align: left;
  vertical-align: top;
}

.admin-operations-table td small {
  color: var(--muted);
  display: block;
  line-height: 1.45;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.admin-state-badge,
.admin-risk-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
}

.admin-state-badge.is-active,
.admin-risk-badge.is-low {
  background: #e7f6ed;
  color: #17663a;
}

.admin-state-badge.is-suspended,
.admin-risk-badge.is-high,
.admin-risk-badge.is-manual_review {
  background: #fdebed;
  color: #9a2637;
}

.admin-risk-badge.is-medium,
.admin-risk-badge.is-unclassified {
  background: #fff3d9;
  color: #8a5a00;
}

.compact-button {
  padding: 7px 9px;
  white-space: nowrap;
}

.admin-pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 14px 14px;
}

.admin-pagination span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-feedback-table-wrap {
  margin-top: 14px;
}

.admin-feedback-table {
  min-width: 1380px;
}

.admin-feedback-table td,
.admin-feedback-table th {
  font-size: 10px;
  text-align: left;
  vertical-align: top;
}

.admin-feedback-table tr.is-anomaly td {
  background: #fff8ed;
}

.admin-anomaly-alert,
.admin-anomaly-note {
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 14px;
  padding: 11px 13px;
}

.admin-anomaly-alert {
  background: #fff1f2;
  border: 1px solid #f4a8b1;
  color: #8f2435;
}

.admin-anomaly-alert p {
  margin: 5px 0 0;
}

.admin-anomaly-note {
  background: #f5f8fc;
  border: 1px solid var(--line);
  color: #5d6d84;
}

.admin-coverage-status {
  border-radius: 999px;
  display: inline-block;
  font-size: 9px;
  font-weight: 850;
  padding: 5px 7px;
  white-space: nowrap;
}

.coverage-none {
  background: #f5f6f8;
  color: #69758b;
}

.coverage-thin {
  background: #fff0f1;
  color: #9a3442;
}

.coverage-starting {
  background: #fff7e8;
  color: #875b13;
}

.coverage-present {
  background: #eaf8ef;
  color: #277046;
}

.admin-data-warning {
  background: #fff8e9;
  border: 1px solid #efd39d;
  border-radius: 8px;
  color: #795118;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 12px;
  padding: 10px 12px;
}

.section-title {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 13px;
}

.section-title h2 {
  font-size: 16px;
  margin: 0;
}

.section-title p {
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0 0;
}

.section-title .analysis-result-source {
  background: #eef5ff;
  border-radius: 6px;
  color: #2459a8;
  font-weight: 750;
  padding: 6px 8px;
}

.method-label {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  padding: 6px 8px;
}

.method-label.is-local-preview {
  background: #fff7e8;
  border-color: #f2c98b;
  color: #8a4b08;
}

.analysis-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 245px minmax(0, 1fr);
}

.current-state {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
}

.current-state > span,
.confidence span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.current-state > strong {
  color: var(--blue);
  display: block;
  font-size: 23px;
  line-height: 1.2;
  margin: 9px 0;
}

.current-state > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.confidence {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 13px;
}

.confidence > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.confidence strong {
  font-size: 18px;
}

.confidence-track,
.coverage-track {
  background: #e5eaf1;
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.confidence-track {
  margin-top: 8px;
}

.confidence-track span {
  background: var(--blue);
  display: block;
  height: 100%;
  width: 0;
}

.evidence-block h3 {
  font-size: 12px;
  margin: 0 0 8px;
}

.evidence-block h3:not(:first-child) {
  margin-top: 14px;
}

.detected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.detected-tag {
  background: var(--stage-soft);
  border: 1px solid var(--stage);
  border-radius: 4px;
  color: var(--stage-dark);
  font-size: 10px;
  font-weight: 750;
  padding: 5px 7px;
}

.evidence-list {
  color: #33445f;
  display: grid;
  font-size: 12px;
  gap: 6px;
  line-height: 1.45;
  margin: 0;
  padding-left: 18px;
}

.next-action {
  background: #edf4ff;
  border: 1px solid #d1e1fb;
  border-radius: 5px;
  color: #24529a;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
}

.campaign-tags-panel {
  background: #fffaf0;
  border: 1px solid #f0d39a;
  border-radius: 6px;
  color: #5b4420;
  display: grid;
  font-size: 12px;
  gap: 10px;
  line-height: 1.45;
  padding: 10px 12px;
}

.campaign-tag-section {
  display: grid;
  gap: 6px;
}

.campaign-tag-section strong {
  color: #26344d;
}

.campaign-tag-section ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.campaign-tag-section code {
  background: #fff;
  border: 1px solid #eed9ad;
  border-radius: 4px;
  color: #17315b;
  font-family: Consolas, "Courier New", monospace;
  padding: 2px 5px;
}

.campaign-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.campaign-tag-list span {
  background: #fff;
  border: 1px solid #eed9ad;
  border-radius: 999px;
  color: #8a5d10;
  font-size: 10px;
  font-weight: 850;
  padding: 5px 7px;
}

.coverage-list {
  display: grid;
  gap: 11px;
}

.coverage-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 132px minmax(90px, 1fr) 34px;
}

.coverage-row label,
.coverage-row strong {
  font-size: 11px;
}

.coverage-row strong {
  text-align: right;
}

.coverage-track span {
  background: var(--stage);
  display: block;
  height: 100%;
}

.gap-summary {
  background: #fff8ef;
  border: 1px solid #f1dec0;
  border-radius: 6px;
  color: #87531c;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 15px;
  padding: 11px;
}

.matrix-panel {
  margin-top: 14px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legend span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  gap: 5px;
}

.legend-dot {
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.legend-dot.strong {
  background: #2f8b57;
}

.legend-dot.medium {
  background: #d99118;
}

.legend-dot.weak {
  background: #c85252;
}

.legend-dot.blocked {
  background: #8793a5;
}

.video-audit-header,
.video-matrix-panel,
.video-detail-panel,
.spreadsheet-preview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.customer-video-matrix-panel,
.customer-gap-panel {
  background: #f8fbff;
  border: 1px solid #b9cce8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.customer-data-heading {
  align-items: flex-start;
}

.customer-data-heading h2,
.customer-data-heading p {
  margin: 0;
}

.customer-data-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 6px;
}

.content-matrix-tabs {
  background: #eef3f9;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 10px;
  max-width: 600px;
  padding: 4px;
}

.content-matrix-tabs button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  min-height: 38px;
  padding: 8px 14px;
}

.content-matrix-tabs button.active {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 2px 8px rgba(28, 53, 86, 0.08);
  color: var(--blue);
}

@media (max-width: 650px) {
  .content-matrix-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.customer-video-table-panel {
  box-shadow: none;
}

.legacy-video-audit,
.legacy-gap-audit {
  border-top: 1px dashed #b8c5d8;
  margin-top: 28px;
  padding-top: 20px;
}

.legacy-gap-audit > h2 {
  margin-top: 10px;
}

.customer-video-diagnostics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-record-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  margin-top: 14px;
  padding-top: 10px;
}

.video-audit-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.video-audit-header h2 {
  font-size: 20px;
  margin: 0;
}

.video-audit-header p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 7px 0 0;
  max-width: 720px;
}

.report-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 150px;
  padding: 0 14px;
  text-decoration: none;
}

.audio-status {
  align-items: center;
  border: 1px solid;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 14px 16px;
}

.audit-batch-panel {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 14px 16px;
}

.audit-batch-panel strong {
  display: block;
  font-size: 13px;
}

.audit-batch-panel p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 4px 0;
}

.audit-batch-panel small {
  color: var(--muted);
  font-size: 10px;
}

.audit-batch-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.audit-batch-actions select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  min-height: 34px;
  padding: 0 12px;
}

.audio-status.warning {
  background: #fff8e9;
  border-color: #e7cc91;
  color: #754c08;
}

.audio-status.success {
  background: #effaf4;
  border-color: #9bd7b3;
  color: #146339;
}

.audio-status strong {
  display: block;
  font-size: 13px;
}

.audio-status p {
  font-size: 11px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.audio-status code {
  background: rgba(117, 76, 8, 0.09);
  border-radius: 3px;
  padding: 2px 4px;
}

.audio-status > span {
  border: 1px solid currentColor;
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  margin-left: 18px;
  padding: 6px 9px;
}

.voice-status {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 10px;
  padding: 11px 12px;
}

.voice-status strong,
.voice-status span {
  display: block;
}

.voice-status strong {
  font-size: 12px;
}

.voice-status span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  margin-top: 4px;
}

.voice-status p {
  font-size: 11px;
  line-height: 1.55;
  margin: 7px 0 0;
}

.voice-partial {
  background: #effaf4;
  border-color: #9bd7b3;
}

.voice-missing {
  background: #fff8e9;
  border-color: #e7cc91;
}

.video-audit-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.video-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.video-stat span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.video-stat strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}

.video-stat p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin: 4px 0 0;
}

.video-matrix-panel,
.video-detail-panel,
.spreadsheet-preview-panel {
  margin-top: 14px;
  padding: 16px;
}

.spreadsheet-title {
  align-items: flex-start;
}

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

.spreadsheet-actions select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  min-height: 34px;
  padding: 0 12px;
}

.export-status {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 10px 0 12px;
  padding: 9px 10px;
}

.spreadsheet-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 520px;
  overflow: auto;
}

.spreadsheet-table {
  min-width: 1900px;
}

.spreadsheet-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.spreadsheet-table th,
.spreadsheet-table td {
  background: #fff;
  font-size: 10px;
  line-height: 1.45;
  min-width: 90px;
}

.spreadsheet-table th {
  background: #eef3fb;
}

.spreadsheet-table td:nth-child(1),
.spreadsheet-table th:nth-child(1) {
  min-width: 150px;
}

.spreadsheet-table td:nth-child(3),
.spreadsheet-table th:nth-child(3) {
  min-width: 190px;
}

.spreadsheet-table td:nth-child(4),
.spreadsheet-table th:nth-child(4),
.spreadsheet-table td:nth-child(16),
.spreadsheet-table th:nth-child(16),
.spreadsheet-table td:nth-child(17),
.spreadsheet-table th:nth-child(17) {
  min-width: 260px;
}

.spreadsheet-table td:nth-child(n + 6):nth-child(-n + 12),
.spreadsheet-table th:nth-child(n + 6):nth-child(-n + 12),
.spreadsheet-table td:nth-child(14),
.spreadsheet-table th:nth-child(14) {
  min-width: 76px;
  text-align: center;
}

.spreadsheet-table small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.video-filter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  min-height: 32px;
  padding: 0 10px;
}

.video-filter:hover,
.video-filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.video-matrix-table {
  min-width: 1280px;
  table-layout: fixed;
}

.video-matrix-table th:first-child,
.video-matrix-table td:first-child {
  min-width: 190px;
  width: 300px;
  text-align: left;
}

.video-matrix-table th:nth-child(2),
.video-matrix-table td:nth-child(2) {
  min-width: 78px;
  width: 78px;
  text-align: center;
}

.video-matrix-table th:nth-child(n + 3):nth-child(-n + 9),
.video-matrix-table td:nth-child(n + 3):nth-child(-n + 9) {
  text-align: center;
  width: 78px;
}

.video-name {
  overflow-wrap: anywhere;
  color: var(--text);
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.video-meta {
  color: var(--muted);
  display: block;
  font-size: 9px;
  margin-top: 4px;
}

.video-source-warning {
  color: #9a5b00;
  display: block;
  font-size: 9px;
  line-height: 1.4;
  margin-top: 4px;
}

.event-cell {
  border-radius: 4px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  justify-content: center;
  min-width: 42px;
  padding: 4px 5px;
}

.event-pass {
  background: #e4f4e9;
  color: #25633d;
}

.event-signal {
  background: #fff1d8;
  color: #8b5904;
}

.event-missing {
  background: #f8e7e7;
  color: #913b3b;
}

.audit-result {
  border-radius: 4px;
  display: inline-block;
  font-size: 10px;
  font-weight: 850;
  padding: 5px 7px;
  white-space: nowrap;
}

.audit-role-pass {
  background: #e4f4e9;
  color: #25633d;
}

.audit-needs-work {
  background: #fff1d8;
  color: #8b5904;
}

.audit-major-gap {
  background: #f8e7e7;
  color: #913b3b;
}

.video-audit-list {
  display: grid;
  gap: 10px;
}

.video-audit-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.video-card-head {
  align-items: center;
  background: #f8fafc;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.video-card-head h3 {
  font-size: 13px;
  margin: 0;
}

.video-card-head p {
  color: var(--muted);
  font-size: 10px;
  margin: 4px 0 0;
}

.video-card-body {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 13px 14px;
}

.diagnostic-block strong {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}

.diagnostic-block p,
.diagnostic-block li {
  color: #42516a;
  font-size: 11px;
  line-height: 1.5;
}

.diagnostic-block p {
  margin: 0;
}

.diagnostic-block ul {
  margin: 0;
  padding-left: 17px;
}

.voice-unchecked {
  color: #7a5b20;
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 1040px;
  width: 100%;
}

th,
td {
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.4;
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f7f9fc;
  font-weight: 800;
}

td:nth-child(1),
td:nth-child(3) {
  text-align: center;
  width: 52px;
}

.stage-name {
  color: var(--stage-dark);
  font-weight: 800;
  white-space: nowrap;
}

.score-badge {
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-weight: 800;
  min-width: 38px;
  padding: 3px 5px;
}

.score-strong {
  background: #2f8b57;
}

.score-medium {
  background: #d99118;
}

.score-weak {
  background: #c85252;
}

.placeholder-view {
  min-height: 600px;
  padding: 24px;
}

.placeholder-view h2 {
  margin: 0;
}

.placeholder-view > p {
  color: var(--muted);
  font-size: 13px;
}

.history-list,
.aggregate-gaps,
.criteria-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.content-library-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.tag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.secondary-tags {
  margin-top: 8px;
}

.tag-filter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tag-filter:hover,
.tag-filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.library-compact-grid,
.gap-dashboard-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-card {
  box-shadow: none;
}

.compact-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 0;
  max-height: 560px;
  overflow: auto;
}

.compact-audit-table {
  min-width: 980px;
}

.compact-audit-table th,
.compact-audit-table td {
  font-size: 11px;
  line-height: 1.45;
  vertical-align: top;
}

.compact-audit-table td:nth-child(1),
.compact-audit-table td:nth-child(3) {
  text-align: left;
  width: auto;
}

.gap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.gap-card-head {
  align-items: center;
  border-left: 4px solid var(--stage);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-left: 10px;
}

.gap-card-head span,
.gap-card-head strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.gap-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
}

.gap-card small,
.gap-card em {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 8px;
}

.gap-card small {
  color: var(--ink);
  font-weight: 800;
}

.gap-card em {
  color: var(--muted);
  font-style: normal;
}

.library-batch-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.library-batch-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.library-source {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.library-batch-head h3 {
  font-size: 18px;
  margin: 4px 0 6px;
}

.library-batch-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

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

.library-metrics,
.library-event-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.library-metrics span,
.library-event-strip span {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 7px 9px;
}

.library-metrics span {
  background: #f4f7fb;
  color: var(--ink);
}

.library-event-strip span {
  background: color-mix(in srgb, var(--stage), white 84%);
  color: var(--ink);
}

.library-video-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.library-video-item {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 0;
}

.library-video-item strong {
  display: block;
  font-size: 13px;
}

.library-video-item p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.library-video-status {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.library-video-status small {
  color: var(--muted);
  font-size: 10px;
  max-width: 190px;
}

.history-item,
.criteria-item,
.aggregate-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.history-item strong,
.criteria-item strong,
.aggregate-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.history-item p,
.criteria-item p,
.aggregate-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-note {
    display: none;
  }
}

@media (max-width: 860px) {
  .input-grid,
  .result-grid,
  .analysis-layout,
  .video-card-body,
  .context-card-grid,
  .link-intake-form,
  .link-intake-choice-grid,
  .reference-links,
  .submitted-type-panel,
  .supabase-config-grid,
  .supabase-actions,
  .shadow-feedback-panel {
    grid-template-columns: 1fr;
  }

  .shadow-feedback-form {
    grid-template-columns: 1fr;
  }

  .shadow-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-library-stats,
  .admin-feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-audit-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-compact-grid,
  .gap-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .video-audit-header,
  .audio-status,
  .audit-batch-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-batch-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .library-batch-head,
  .library-video-item {
    grid-template-columns: 1fr;
  }

  .library-batch-head {
    flex-direction: column;
  }

  .library-actions,
  .library-video-status,
  .spreadsheet-actions {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .spreadsheet-actions {
    width: 100%;
  }

  .report-link {
    margin-top: 12px;
  }

  .audio-status > span {
    margin: 10px 0 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-select,
  .project-select input {
    width: 100%;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .view {
    padding: 9px;
  }

  .topbar {
    padding: 14px;
  }

  .stage-rail {
    grid-template-columns: repeat(7, 130px);
  }

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

  .video-audit-stats {
    grid-template-columns: 1fr;
  }

  .admin-library-stats,
  .admin-feedback-grid,
  .shadow-summary-grid {
    grid-template-columns: 1fr;
  }
}
.supabase-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.85rem 0;
  color: #27364f;
  font-size: 0.92rem;
}

.supabase-consent-row input {
  margin-top: 0.2rem;
}

.notification-choice {
  padding: 0.8rem;
  border: 1px solid #cfe0f7;
  border-radius: 10px;
  background: #f7fbff;
}

.pipeline-notification-note {
  margin: 0.65rem 0;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid #2563eb;
  background: #f4f8ff;
}

.supabase-pipeline-file {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: 0.4rem 0.8rem;
  margin: 0.75rem 0;
}

.supabase-pipeline-file dt {
  font-weight: 700;
}

.supabase-pipeline-file dd {
  margin: 0;
}

.supabase-pipeline-progress {
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  margin: 8px 0;
  overflow: hidden;
}

.supabase-pipeline-progress span {
  background: #2b67d1;
  display: block;
  height: 100%;
  transition: width 0.25s ease;
}

.pipeline-eta-note {
  color: #475569;
  font-size: 0.92rem;
  margin: 0.45rem 0;
}

.pipeline-delay-warning {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  color: #9a3412;
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
}

.pipeline-completed-time {
  background: #eef8f1;
  border: 1px solid #bbdec4;
  border-radius: 8px;
  color: #245c33;
  padding: 0.65rem 0.8rem;
}

@media (max-width: 700px) {
  .feedback-report-summary,
  .industry-feedback-filters {
    grid-template-columns: 1fr;
  }

  .feedback-report-summary button {
    width: 100%;
  }
  .analysis-source-options {
    grid-template-columns: 1fr;
  }
}
.sandbox-payment-instruction {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #b8d4f5;
  border-radius: 12px;
  background: #f5f9ff;
}

.sandbox-payment-instruction-head,
.sandbox-payment-instruction-actions,
.sandbox-payment-instruction dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sandbox-payment-instruction-head strong,
.sandbox-payment-instruction-head span {
  display: block;
}

.sandbox-payment-expiry {
  text-align: right;
}

.sandbox-payment-expiry strong {
  color: #a66200;
  font-variant-numeric: tabular-nums;
}

.sandbox-payment-instruction.is-terminal {
  border-color: #d8b4b4;
  background: #fff8f8;
}

.sandbox-payment-instruction.is-terminal .sandbox-payment-qr {
  opacity: 0.45;
}

.sandbox-payment-instruction-notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #c43131;
  background: #fff1f1;
  color: #7d1f1f;
}

.sandbox-payment-instruction dl {
  margin: 14px 0;
}

.sandbox-payment-qr {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 18px;
  align-items: center;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #cfe0f6;
  border-radius: 14px;
  background: #fff;
}

.sandbox-payment-qr img {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 10px;
}

.sandbox-payment-qr p {
  margin: 8px 0 0;
}

@media (max-width: 720px) {
  .sandbox-payment-qr {
    grid-template-columns: 1fr;
  }
}

.sandbox-payment-instruction dl > div {
  padding: 8px 0;
  border-bottom: 1px solid #dce8f6;
}

.sandbox-payment-instruction dt {
  color: #52657f;
}

.sandbox-payment-instruction dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.sandbox-payment-instruction-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.sandbox-payment-instruction-actions a {
  text-decoration: none;
}
.software-release-watermark {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 24px 14px;
  color: #66738b;
  font-size: 11px;
}

.software-release-watermark code {
  color: #40516f;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}
.release-security-dashboard {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.release-security-dashboard code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
.ui-language-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 20px;
  background: #fff;
  color: #16365b;
  border-bottom: 1px solid #d8e1ef;
}
.ui-language-bar label { font-weight: 600; }
.ui-language-bar select { width: auto; min-width: 120px; }
.ui-language-bar small { flex: 1 1 320px; line-height: 1.5; }
.source-vault-dialog { width:min(760px,90vw); max-height:85vh; border:1px solid var(--line); border-radius:12px; padding:24px; }
.source-vault-dialog pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; }
.matrix-source-details { margin-top:10px; }
.matrix-source-details p { overflow-wrap:anywhere; }
.matrix-source-details button { margin:4px 0; }
.admin-cost-table { width:100%; border-collapse:collapse; }
.admin-cost-table td,.admin-cost-table th { padding:10px; border:1px solid var(--line); text-align:left; overflow-wrap:anywhere; }
.analysis-completion-notice {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  width: min(28rem, calc(100vw - 2rem));
  display: grid;
  gap: .45rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: .75rem;
  background: var(--panel, #fff);
  color: var(--text, #1e293b);
  box-shadow: 0 .5rem 2rem rgb(15 23 42 / 18%);
}
.analysis-completion-notice[hidden] { display: none; }
.analysis-completion-notice > div { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.analysis-completion-close { margin-left: auto; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; }
/* The isolated account pilot has no analysis/payment backend yet. */
.auth-review-notice { padding: 16px; margin: 0; background: #fff3cd; color: #533f03; text-align: center; }
.auth-only-review .sidebar .nav-item:not([data-view="account"]),
.auth-only-review #saveSupabaseResultBtn { display: none !important; }
#accountAccessPanel [hidden], #supabaseSaveReceipt [hidden] { display: none !important; }
.account-session-row { padding: 12px 0; border-bottom: 1px solid var(--border, #d6dce5); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.account-session-row p { flex: 1 1 240px; margin: 0; }
.auth-only-review #guestAuthPassword { width: 100%; padding: 12px; margin: 8px 0; }
.account-password-form {
  display: grid;
  gap: 12px;
  margin-block: 16px;
  padding: 16px;
  border: 1px solid var(--border-color, #d5dce5);
  border-radius: 12px;
}
.account-password-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.account-password-form input { width: 100%; box-sizing: border-box; }
.account-password-control { display: flex; align-items: center; gap: 8px; }
.account-password-control input { flex: 1; min-width: 0; }
.account-password-control button { flex: 0 0 auto; white-space: nowrap; }
.password-auth-outcome { position: fixed; right: 20px; bottom: 20px; z-index: 1200; width: min(460px, calc(100vw - 40px)); padding: 16px; border: 2px solid #2563eb; border-radius: 12px; background: #eff6ff; color: #17345d; box-shadow: 0 8px 30px #0003; }
.password-auth-outcome[hidden] { display: none !important; }
.password-auth-outcome[data-state="success"] { border-color: #15803d; background: #f0fdf4; color: #14532d; }
.password-auth-outcome[data-state="error"] { border-color: #b91c1c; background: #fef2f2; color: #7f1d1d; }
.password-auth-outcome p { margin: 0 0 12px; font-weight: 600; }
.account-notifications { margin-block: 16px; padding: 16px; border: 1px solid var(--border-color,#d5dce5); border-radius: 12px; }
.account-notification-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.account-notification-actions [aria-pressed="true"] { outline: 2px solid var(--accent-color,#2461c6); outline-offset: 2px; }
.account-notification-item { padding: 12px; margin-block: 8px; border: 1px solid var(--border-color,#d5dce5); border-radius: 8px; }
.account-notification-item p { margin-block: 8px; }
.account-notification-item small { display:block; margin-top:8px; }
.account-notification-item button { margin-right:8px; }
.account-hub { width:100%; min-width:0; }
.account-hub #accountNotificationList,.account-hub #customerSupportList { max-height:65vh; overflow:auto; overscroll-behavior:contain; }
.support-form,.support-ticket form { display:grid; gap:12px; margin-block:16px; }
.support-form label,.support-ticket label { display:grid; gap:8px; }
.support-form input,.support-form select,.support-form textarea,.support-ticket textarea,.support-ticket select { width:100%; max-width:100%; box-sizing:border-box; }
.support-ticket p { white-space:pre-wrap; overflow-wrap:anywhere; }
.account-password-form small { display: block; line-height: 1.5; }
.account-password-form #passwordAuthStatus { margin: 0; }
.saved-report-comparison { width:min(1280px,94vw); max-height:90vh; padding:24px; color:var(--ink); background:var(--surface,#fff); border:1px solid var(--line); border-radius:16px; }
.saved-report-comparison::backdrop { background:rgba(0,0,0,.5); }
.saved-report-comparison-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.saved-report-comparison-scroll { overflow:auto; margin-top:16px; }
.saved-report-comparison table { width:100%; border-collapse:collapse; table-layout:fixed; min-width:660px; }
.saved-report-comparison th,.saved-report-comparison td { border:1px solid var(--line); padding:12px; vertical-align:top; white-space:pre-wrap; overflow-wrap:anywhere; text-align:left; }
.saved-report-comparison th:first-child { width:16%; }
.saved-report-comparison td p { margin:8px 0; }
.saved-report-comparison-header { position:sticky; top:-24px; z-index:5; min-height:54px; padding:12px 54px 12px 0; background:var(--surface,#fff); }
.report-corner-close { position:absolute; top:12px; right:0; z-index:10; width:36px; height:36px; padding:0; display:grid; place-items:center; font-size:24px; line-height:1; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--surface,#fff); cursor:pointer; }
.report-corner-close:hover { background:var(--surface-alt,#f2f2f2); }
.report-corner-close:focus-visible { outline:2px solid var(--accent,#2563eb); outline-offset:2px; }
.saved-report-version { width:100%; padding:10px; text-align:left; white-space:pre-wrap; color:var(--ink); background:var(--surface,#fff); border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.saved-report-version:hover,.saved-report-version:focus-visible { outline:2px solid var(--accent,#2563eb); }
.saved-report-stage-rail { display:flex; gap:10px; overflow:auto; margin:16px 0; }
.saved-report-stage-rail strong { min-width:120px; padding:12px; border:1px solid var(--line); border-radius:8px; }
.saved-report-comparison .saved-version-matrix { min-width:1000px; }
.saved-report-comparison .saved-version-matrix th:nth-child(2) { width:8%; }
.content-event-matrix-dialog .customer-video-table-panel { margin:0; }
.content-event-matrix-dialog .video-table-wrap { max-height:none; }
.source-vault-dialog { padding-top:66px; }
.saved-version-overview { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:20px 0; }
.saved-version-overview>section { padding:20px; border:1px solid var(--line); border-radius:12px; }
.saved-version-overview h3 { margin-top:0; }
.saved-version-guidance { grid-column:1/-1; }
.saved-version-coverage-row { display:grid; grid-template-columns:minmax(130px,1fr) 1fr 44px; gap:12px; align-items:center; margin:12px 0; }
.saved-version-overview progress { width:100%; accent-color:var(--accent,#2563eb); }
.saved-version-guidance .context-source { display:inline-block; margin:4px; }
@media(max-width:680px){.saved-version-overview{grid-template-columns:1fr}.saved-version-coverage-row{grid-template-columns:1fr 1fr 44px}}

/* Pending connected reports must not display another result in the native view. */
#evaluation .result-grid[hidden]{display:none!important}
#connectionLibrary>label{display:grid;gap:8px;margin:16px 0 12px;font-weight:600}
#connectionLibrary input[type="search"]{width:100%;max-width:520px;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--text);font:inherit}
#connectionLibrary .customer-library-card>strong{display:block;margin:8px 0}
#connectionLibrary button{margin-top:10px}
