.qa-page { display: grid; gap: 20px; max-width: 1440px; margin: 0 auto; color: var(--deep, #123e55); }
.qa-page-head, .qa-section-head, .qa-rule > header, .qa-request header, .qa-request footer, .qa-rule > footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa-page-head p, .qa-section-head p { margin: 0; color: var(--slate, #526d79); }
.qa-tabs { display: flex; gap: 8px; border-bottom: 1px solid #dbe6eb; padding-bottom: 8px; }
.qa-tabs { flex-wrap: wrap; }
[data-facebook-welcome] .qa-field { display: grid; gap: 7px; margin: 14px 0; min-width: 0; font-weight: 700; }
[data-facebook-welcome] .qa-field input, [data-facebook-welcome] .qa-field select, [data-facebook-welcome] .qa-field textarea { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; padding: 11px 12px; border: 1px solid #b8ccd5; border-radius: 8px; color: inherit; background: #fff; font: inherit; font-weight: 400; }
[data-facebook-welcome] .qa-field textarea { resize: vertical; line-height: 1.5; }
[data-facebook-welcome] .qa-field small { font-size: 12px; font-weight: 400; }
[data-facebook-welcome] details.qa-rule-step { display: block; }
[data-facebook-welcome] summary { cursor: pointer; font-weight: 800; }
[data-facebook-welcome] summary .qa-step-number { display: inline-grid; margin-right: 10px; }
[data-facebook-welcome] .qa-rule-step .qa-rule-step { padding-bottom: 0; }
.qa-tabs a { padding: 10px 16px; border-radius: 9px; color: #385867; text-decoration: none; font-weight: 800; }
.qa-tabs a[aria-current] { color: #fff; background: #164a60; }
.qa-triggers { flex-wrap: wrap; border: 0; padding: 0; }
.qa-triggers a { display: flex; align-items: center; min-height: 44px; border: 1px solid #d5e2e8; }
.qa-load-status:empty, .qa-feedback:empty { display: none; }
.qa-load-status { color: #973d26; padding: 8px 0; }
.qa-rule-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.qa-rule, .qa-connections, .qa-deliveries, [data-qa-attention], .qa-quote-requests { background: #fff; border: 1px solid #d5e2e8; border-radius: 15px; padding: 24px; min-width: 0; }
.qa-page h2, .qa-quote-requests h2 { font-size: 21px; margin: 0 0 8px; line-height: 1.3; }
.qa-page h3 { font-size: 16px; margin: 0 0 10px; }
.qa-rule p { color: #536c78; line-height: 1.5; margin: 6px 0; }
.qa-eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; font-weight: 800; color: #558094; }
.qa-rule > header { align-items: start; padding-bottom: 24px; }
.qa-status { display: inline-flex; align-items: center; border-radius: 999px; background: #edf2f4; padding: 5px 10px; font-size: 12px; font-weight: 800; white-space: normal; text-align: center; }
.qa-status.ready { color: #1c644d; background: #e4f3e9; }
.qa-status.blocked, .qa-status.attention { color: #8b351f; background: #fff0dc; }
.qa-status.paused { color: #536b76; }
.qa-rule-step { display: flex; align-items: start; gap: 14px; padding: 24px 0; border-top: 1px solid #e2eaed; }
.qa-rule-step > div { min-width: 0; flex: 1; }
.qa-step-number { display: grid; place-items: center; border-radius: 50%; width: 28px; height: 28px; flex: 0 0 28px; color: #fff; background: #247382; font-size: 13px; font-weight: 800; }
.qa-recipient-list { display: grid; gap: 12px; margin: 16px 0; max-height: 440px; overflow-y: auto; padding: 3px; }
.qa-recipient { border: 1px solid #dbe5ea; border-radius: 10px; min-width: 0; padding: 12px; margin: 0; }
.qa-recipient legend { padding: 0 6px; font-weight: 800; overflow-wrap: anywhere; }
.qa-recipient-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qa-recipient label { display: grid; gap: 5px; cursor: pointer; min-width: 0; }
.qa-recipient label > span, .qa-enabled { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.qa-page input[type=checkbox] { width: 19px; height: 19px; flex: 0 0 19px; accent-color: #207080; margin: 0; }
.qa-recipient small { font-size: 12px; color: #58707a; overflow-wrap: anywhere; }
.qa-recipient .qa-blocker { color: #904321; }
.qa-help { font-size: 12px; }
.qa-rule > footer { border-top: 1px solid #dbe5ea; padding-top: 20px; flex-wrap: wrap; justify-content: start; }
.qa-feedback { font-size: 13px; color: #6e3a24; line-height: 1.5; margin: 8px 0 0; overflow-wrap: anywhere; }
.qa-connections > div { border-top: 1px solid #dfe9ec; padding: 18px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.qa-connections > div:last-child { padding-bottom: 0; }
.qa-connections p, .qa-connections a { grid-column: 1 / -1; margin: 0; line-height: 1.5; font-size: 13px; overflow-wrap: anywhere; }
.qa-connections a { font-weight: 800; color: #246d86; }
.qa-channel-icon { display: none; }
.qa-count { color: #923619; background: #ffecd1; padding: 3px 9px; border-radius: 7px; font-size: 15px; vertical-align: middle; }
.qa-request-list { display: grid; gap: 16px; margin-top: 18px; }
.qa-request { background: #fffcf5; border: 1px solid #ebc88e; border-left: 5px solid #de9c36; border-radius: 10px; padding: 18px; min-width: 0; }
.qa-request header { align-items: start; }
.qa-request header > div { display: grid; gap: 4px; min-width: 0; }
.qa-request header a { color: #174c60; font-size: 17px; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.qa-request header span, .qa-request time, .qa-reviewed { color: #617581; font-size: 12px; overflow-wrap: anywhere; }
.qa-request-message { color: #193e50; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.6; margin: 20px 0; }
.qa-request footer { justify-content: start; flex-wrap: wrap; }
.qa-quote-requests { display: grid; gap: 14px; }
.qa-quote-requests h2 { margin: 0; }
.qa-empty { padding: 22px 0; color: #627985; line-height: 1.5; }
.qa-empty strong { display: block; color: #285f4a; font-size: 18px; }
.qa-empty p { margin: 6px 0 0; }
.qa-pagination { display: flex; justify-content: end; gap: 8px; margin-top: 18px; }
.qa-deliveries ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 0; }
.qa-deliveries li { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #e0e9ed; padding: 16px 0; align-items: start; }
.qa-deliveries li > div { min-width: 0; display: grid; gap: 5px; }
.qa-deliveries time { font-size: 12px; color: #617985; }
.qa-deliveries li p { font-size: 13px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.qa-page-head h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 34px); line-height: 1.15; }
.qa-page-head > div { min-width: 0; }
.qa-hub-tabs { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.qa-hub-tabs a { white-space: nowrap; }
.ca-page { gap: 18px; }
.ca-safety-note { margin: 0; border: 1px solid #cddfe6; border-left: 4px solid #247382; border-radius: 10px; background: #f4fafb; color: #365a69; padding: 12px 14px; line-height: 1.5; }
.ca-readiness { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ca-readiness > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; background: #fff; border: 1px solid #d5e2e8; border-radius: 12px; padding: 16px; min-width: 0; }
.ca-readiness p { grid-column: 1 / -1; margin: 0; color: #58717d; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ca-rule-list { display: grid; gap: 18px; }
.ca-rule { background: #fff; border: 1px solid #d5e2e8; border-radius: 15px; min-width: 0; overflow: hidden; }
.ca-rule > header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 22px 24px; border-bottom: 1px solid #e1eaee; }
.ca-rule > header > div { min-width: 0; }
.ca-rule h2 { margin: 3px 0 6px; font-size: 22px; }
.ca-rule h3 { margin: 0 0 8px; font-size: 15px; }
.ca-rule p { color: #536c78; line-height: 1.5; margin: 4px 0; overflow-wrap: anywhere; }
.ca-rule-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); }
.ca-rule-body > section, .ca-rule-body > fieldset { padding: 20px 24px; margin: 0; border: 0; border-bottom: 1px solid #e2eaed; min-width: 0; }
.ca-rule-body > :nth-child(odd) { border-right: 1px solid #e2eaed; }
.ca-trigger { background: #f8fbfc; }
.ca-trigger p { color: #173f51; font-weight: 750; }
.ca-steps { display: grid; gap: 14px; list-style: none; margin: 12px 0 0; padding: 0; }
.ca-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.ca-steps li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: #247382; font-size: 12px; font-weight: 800; }
.ca-steps li > div { display: grid; gap: 4px; min-width: 0; }
.ca-steps small { color: #58717d; overflow-wrap: anywhere; }
.ca-steps p { white-space: pre-wrap; font-size: 13px; }
.ca-stops ul { margin: 8px 0 0; padding-left: 20px; color: #536c78; line-height: 1.5; }
.ca-channels legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.ca-channel { display: grid; gap: 4px; padding: 10px 0; cursor: pointer; }
.ca-channel + .ca-channel { border-top: 1px solid #e3ebee; }
.ca-channel > span, .ca-controls label, .ca-pause-toggle { display: flex; gap: 9px; align-items: center; color: #173f51; font-weight: 750; }
.ca-channel small { margin-left: 28px; color: #568071; }
.ca-channel.is-blocked small { color: #943e25; }
.ca-controls { display: grid; gap: 14px; align-content: start; }
.ca-controls p { font-size: 12px; }
.ca-cutover { padding: 12px; border: 1px solid #e4ccb3; border-radius: 9px; background: #fffaf2; }
.ca-rule > footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 24px 22px; }
.ca-rule > footer .qa-feedback { margin: 0; }
.ca-pauses, .ca-activity { background: #fff; border: 1px solid #d5e2e8; border-radius: 15px; padding: 24px; min-width: 0; }
.ca-pause-search { display: grid; gap: 7px; margin-top: 18px; max-width: 660px; }
.ca-pause-search > label { font-size: 13px; font-weight: 800; }
.ca-pause-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ca-pause-search input, .ca-customer input[type=text] { width: 100%; min-width: 0; border: 1px solid #bacbd2; border-radius: 8px; background: #fff; color: #173f51; padding: 10px 12px; font: inherit; }
.ca-pause-results { display: grid; gap: 10px; margin-top: 14px; }
.ca-customer { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.4fr) auto auto; align-items: end; gap: 12px; border-top: 1px solid #e0e9ed; padding: 16px 0 6px; min-width: 0; }
.ca-customer > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ca-customer > div strong { overflow-wrap: anywhere; }
.ca-customer > label:not(.ca-pause-toggle) { display: grid; gap: 5px; min-width: 0; font-size: 12px; font-weight: 800; }
.ca-customer .qa-feedback { grid-column: 1 / -1; margin: 0; }
.ca-activity ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; }
.ca-activity li { display: flex; justify-content: space-between; align-items: start; gap: 14px; border-top: 1px solid #e0e9ed; padding: 16px 0; }
.ca-activity li > div { display: grid; gap: 4px; min-width: 0; }
.ca-activity li span:not(.qa-status), .ca-activity time { color: #607985; font-size: 12px; overflow-wrap: anywhere; }
.ca-activity li p { margin: 2px 0; color: #475f6a; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
@media (max-width: 1050px) { .qa-rule-layout { grid-template-columns: minmax(0, 1fr); } .qa-connections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .qa-connections h2 { grid-column: 1 / -1; } .qa-connections > div { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .ca-rule-body { grid-template-columns: minmax(0, 1fr); }
  .ca-rule-body > :nth-child(odd) { border-right: 0; }
  .ca-customer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  .qa-page { gap: 14px; }
  .qa-page-head { align-items: start; gap: 10px; }
  .qa-page-head p { font-size: 13px; line-height: 1.5; }
  .qa-tabs a { padding: 10px 12px; font-size: 13px; }
  .qa-rule, .qa-connections, .qa-deliveries, [data-qa-attention], .qa-quote-requests { padding: 16px; border-radius: 12px; }
  .qa-rule > header { flex-direction: column; gap: 10px; }
  .qa-rule-step { gap: 10px; padding: 20px 0; }
  .qa-recipient-channels, .qa-connections { grid-template-columns: minmax(0, 1fr); }
  .qa-recipient-list { max-height: 480px; }
  .qa-request { padding: 14px; }
  .qa-request header { flex-direction: column; gap: 8px; }
  .qa-request-message { font-size: 16px; }
  .qa-request footer { gap: 8px; }
  .qa-deliveries li { flex-direction: column; gap: 8px; }
  .qa-hub-tabs { margin-inline: -2px; padding-inline: 2px; }
  .ca-readiness { grid-template-columns: minmax(0, 1fr); }
  .ca-rule > header { flex-direction: column; padding: 18px 16px; }
  .ca-rule-body > section, .ca-rule-body > fieldset { padding: 18px 16px; }
  .ca-rule > footer { align-items: start; flex-direction: column; padding: 16px; }
  .ca-rule > footer .button { width: 100%; }
  .ca-pauses, .ca-activity { padding: 16px; border-radius: 12px; }
  .ca-pause-search > div { grid-template-columns: minmax(0, 1fr); }
  .ca-pause-search button { width: 100%; }
  .ca-customer { grid-template-columns: minmax(0, 1fr); }
  .ca-customer > button { width: 100%; }
  .ca-activity li { flex-direction: column; }
}
