/* Presentation only: everyday actions first, readable instructions and optional tools. */
body { background: #f4f6fb; }
#app { font-size: 15px; }
#app .card { background: #fff; border-color: #e3e7ef; box-shadow: 0 2px 8px #172b4d08; }
#app .page-head p, #app .page-head.ph p { color: #52627a; font-size: 14px; line-height: 1.6; }
#app .btn, #app .input, #app .select { min-height: 42px; }
#app .pill { min-height: 40px; }
#app :is(button, a, input, select, textarea, summary):focus-visible,
.easy-help-dialog :is(button, a, select):focus-visible, .easy-help-trigger:focus-visible {
  outline: 3px solid #6657df; outline-offset: 3px;
}
.sidebar .nav-item, .sidebar #whatsappPages .nav-item { min-height: 44px; height: auto; font-size: 14px; line-height: 1.4; }
.sidebar .nav-item > span:not(.nav-icon) { white-space: normal; }
.sidebar .sidebar-utilities { grid-template-columns: 1fr; }
.sidebar .sidebar-settings { justify-content: flex-start; gap: 13px; }
.sidebar .sidebar-settings > span:not(.nav-icon) { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; }
.sidebar.collapsed .sidebar-settings > span:not(.nav-icon) { display: none; }
.topbar { min-height: 56px; height: auto; gap: 12px; padding-block: 6px; flex-wrap: wrap; background: #fff; border-bottom-color: #e2e7f0; }
.topbar .trial { margin-right: auto; min-width: 0; }
.easy-help-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid #d7dcea; background: #f8f9ff; border-radius: 10px; color: #36318a; font-size: 13px; font-weight: 700; white-space: nowrap; }
.easy-help-trigger > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e9e6ff; }
.easy-home { padding: 24px; margin-bottom: 24px; }
.easy-home-copy h2 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.4px; }
.easy-home-copy p { margin: 0; color: #52627a; line-height: 1.6; }
.easy-start-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.easy-action { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 102px; min-width: 0; padding: 18px 16px; border: 1px solid #dce1ec; border-radius: 13px; background: #fafbff; }
.easy-action:hover { background: #f0efff; border-color: #b1a8ed; }
.easy-action-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; background: #eae7ff; color: #5544bd; border-radius: 12px; }
.easy-action strong, .easy-action small { display: block; }
.easy-action strong { font-size: 15px; line-height: 1.4; }
.easy-action small { margin-top: 5px; color: #536078; font-size: 13px; line-height: 1.5; }
.easy-action-count { margin-left: auto; flex: none; font-size: 21px; font-weight: 700; color: #5544bd; }
.easy-primary-filters { align-items: center; gap: 12px; }
.easy-primary-filters .search { flex: 1 1 260px; max-width: 540px; min-width: 0; }
.easy-primary-filters .select { min-width: 170px; }
.easy-filters, .easy-more-actions, .easy-disclosure, .easy-optional-fields, .easy-customer-info, .easy-technical { border: 1px solid #e0e5ef; border-radius: 12px; background: #fff; margin-bottom: 16px; }
:is(.easy-filters, .easy-more-actions, .easy-disclosure, .easy-optional-fields, .easy-customer-info, .easy-technical) > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 12px 16px; min-height: 46px; cursor: pointer; color: #3d4870; font-weight: 600; font-size: 14px; line-height: 1.5; }
:is(.easy-filters, .easy-more-actions, .easy-disclosure, .easy-optional-fields, .easy-customer-info, .easy-technical) > summary::-webkit-details-marker { display: none; }
:is(.easy-filters, .easy-more-actions, .easy-disclosure, .easy-optional-fields, .easy-customer-info, .easy-technical) > summary::before { content: '›'; font-size: 21px; font-weight: 500; line-height: 18px; flex: none; }
:is(.easy-filters, .easy-more-actions, .easy-disclosure, .easy-optional-fields, .easy-customer-info, .easy-technical)[open] > summary::before { transform: rotate(90deg); }
:is(.easy-filters, .easy-more-actions, .easy-disclosure, .easy-optional-fields, .easy-customer-info, .easy-technical) > summary .ico { display: inline-block; flex: none; }
:is(.easy-filters, .easy-more-actions, .easy-disclosure, .easy-optional-fields, .easy-customer-info, .easy-technical)[open] > summary { border-bottom: 1px solid #e6e9f1; }
.easy-summary-hint { margin-left: 10px; color: #64718b; font-size: 12px; font-weight: 400; }
.easy-customer-info > .detail-card, .easy-technical > .card { margin: 12px; }
.easy-filter-body, .easy-more-actions-body, .easy-disclosure-body, .easy-optional-body { padding: 16px; }
.easy-filter-body .toolbar:last-child { margin-bottom: 0; }
.easy-more-actions-body { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.easy-more-actions-body > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.easy-optional-body { display: grid; gap: 14px; }
.easy-form-help, .easy-task-help { color: #52627a; font-size: 14px; line-height: 1.65; }
.easy-next-step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; background: #f0f5ff; border: 1px solid #dbe5f6; border-radius: 14px; margin-bottom: 20px; }
.easy-next-copy { flex: 1 1 240px; min-width: 0; }
.easy-next-copy h2 { margin: 0; font-size: 18px; }
.easy-next-status { flex-basis: 100%; margin: 0; font-size: 13px; color: #52627a; line-height: 1.6; }
.easy-next-copy strong { font-size: 16px; }
.easy-next-copy p { margin: 5px 0 0; color: #52627a; font-size: 14px; line-height: 1.6; }
.easy-contact-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.task-row:has(.easy-complete) { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
.tasks-card .task-mini:has(.easy-complete) { grid-template-columns: auto minmax(0, 1fr) auto; }
#app .task-check.easy-complete { width: auto; min-width: 70px; height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 9px; border-radius: 9px; border: 1px solid #cedbd6; background: #f2faf6; color: #186449; }
#app .task-check.easy-complete .ico { opacity: 1; color: inherit; width: 14px; height: 14px; }
.easy-complete-label { font-size: 12px; font-weight: 600; }
.easy-note-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
#app .easy-add-reminder { width: auto; display: inline-flex; gap: 5px; padding-inline: 9px; }
#app .task-actions { opacity: 1; }
.easy-task-help { margin: 12px 0 20px; }
.easy-age-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #5a687e; font-size: 12px; }
.easy-mobile-more { display: none; }
.easy-report-primary, .easy-report-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
details.easy-report-filters { display: block; }
#rpMoreFilters > .rp-filters { border: 0; border-radius: 0; margin: 0; }
.easy-report-primary > *, .easy-report-filters > * { min-width: 0; }
.easy-wa-actions { margin-bottom: 18px; }
.easy-page-guide { display: flex; align-items: center; gap: 10px; margin: -4px 0 20px; padding: 12px 15px; background: #f0f3fc; border: 1px solid #dfe5f1; border-radius: 10px; font-size: 14px; color: #40516c; line-height: 1.55; }
.easy-page-guide > svg { flex: none; color: #6657bf; }
.easy-page-guide p { margin: 0; flex: 1; }
.easy-page-guide button { flex: none; border: 0; background: #fff; color: #5141b5; border-radius: 8px; min-height: 42px; padding: 9px 12px; font-weight: 600; }
.easy-help-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 0; border: 1px solid #dce2ee; border-radius: 20px; background: #fff; color: #142641; box-shadow: 0 24px 100px #16294e40; }
.easy-help-dialog::backdrop { background: #12244770; backdrop-filter: blur(3px); }
.easy-help-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 14px; }
.easy-help-head h2 { margin: 4px 0 0; font-size: 24px; }
.easy-help-eyebrow { color: #6555b9; font-size: 13px; font-weight: 700; }
.easy-help-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid #dce2ee; border-radius: 10px; background: #fff; }
.easy-help-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 24px 18px; flex-wrap: wrap; }
.easy-help-options label { display: inline-flex; align-items: center; gap: 9px; color: #52627a; font-size: 14px; }
.easy-help-options select, .easy-help-options button { min-height: 44px; padding: 9px 12px; border: 1px solid #dce2ee; border-radius: 9px; background: #f8f9ff; color: #36318a; font-size: 14px; }
.easy-help-body { padding: 0 24px 24px; }
.easy-help-intro { margin: 0 0 18px; color: #52627a; line-height: 1.6; font-size: 15px; }
.easy-help-steps { list-style: none; counter-reset: easy-step; padding: 0; margin: 0; display: grid; gap: 12px; }
.easy-help-steps li { counter-increment: easy-step; position: relative; padding: 16px 16px 16px 62px; min-height: 80px; border: 1px solid #e0e6ef; border-radius: 12px; background: #fafbfe; }
.easy-help-steps li::before { content: counter(easy-step); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e8e4ff; color: #5141b5; font-size: 15px; font-weight: 700; }
.easy-help-steps strong { display: block; font-size: 16px; line-height: 1.5; }
.easy-help-steps p { margin: 5px 0 0; color: #52627a; font-size: 14px; line-height: 1.65; }
.easy-help-note { margin: 16px 0; padding: 12px 14px; color: #485b75; background: #edf4fc; border-radius: 10px; line-height: 1.6; font-size: 14px; }
.easy-help-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.easy-help-footer button { min-height: 44px; padding: 10px 14px; border: 1px solid #d5dbeb; border-radius: 10px; background: #fff; color: #4b428e; font-size: 14px; font-weight: 600; }
.easy-help-footer .easy-help-primary { background: #5543bc; color: #fff; border-color: #5543bc; }
.easy-help-status { color: #536078; font-size: 13px; line-height: 1.5; margin: 10px 0 0; }
@media (max-width: 1100px) { .easy-start-actions { gap: 10px; } .easy-action { flex-wrap: wrap; } .easy-action-count { margin-left: 0; } }
@media (max-width: 980px) {
  .topbar { padding-left: 12px; }
  .topbar .mobile-menu { position: static; flex: none; display: flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-width: 72px; height: 44px; font-size: 13px; }
  .sc-support-panel { height: min(665px, calc(100dvh - 244px)); }
}
@media (max-width: 600px) { .sc-support-panel { height: min(690px, calc(100dvh - 170px - env(safe-area-inset-bottom))); } }
@media (max-width: 760px) {
  #app { padding: 20px 14px 40px; }
  #app .btn, #app .input, #app .select, #app .pill { min-height: 44px; }
  .topbar { gap: 8px; padding-inline: 12px; }
  .topbar .trial { font-size: 11px; flex: 1; }
  .topbar > a { font-size: 11px; }
  .easy-help-trigger { font-size: 12px; }
  .easy-home { padding: 18px; }
  .easy-home-copy h2 { font-size: 20px; }
  .easy-start-actions { grid-template-columns: 1fr; margin-top: 16px; }
  .easy-action { min-height: 84px; flex-wrap: nowrap; padding: 14px; }
  .easy-action-count { margin-left: auto; }
  .easy-primary-filters .search { flex-basis: 100%; max-width: none; }
  .easy-primary-filters .select { flex: 1; min-width: 0; }
  .easy-filter-body .toolbar > :is(select, label, input) { max-width: 100%; }
  .easy-filter-body :is(.input, .select) { width: 100%; }
  .easy-next-step { align-items: flex-start; flex-direction: column; padding: 16px; }
  .easy-next-copy { flex-basis: auto; }
  .easy-contact-actions { width: 100%; }
  .easy-next-status { flex-basis: auto; }
  .easy-summary-hint { display: block; flex-basis: 100%; margin: 0 0 0 26px; }
  .task-row:has(.easy-complete) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .leads-table-card { overflow: visible; }
  .leads-table { display: block; min-width: 0; width: 100%; }
  .leads-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .leads-table tbody { display: block; padding: 12px; }
  .leads-table tr[data-id] { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; padding: 12px; border: 1px solid #dce3ee; border-radius: 12px; background: #fff; }
  .leads-table tr[data-id].selected { background: #f1efff; border-color: #9284db; }
  .leads-table tr[data-id] > td { min-width: 0; height: auto; border: 0; padding: 8px 0; white-space: normal; }
  .leads-table tr[data-id] > td[data-column-id] { display: grid; grid-template-columns: 94px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; overflow-wrap: anywhere; }
  .leads-table td[data-column-id]::before { content: attr(data-label); color: #617087; font-size: 12px; font-weight: 500; }
  .leads-table tr[data-id] > td[data-column-id="lead"] { display: block; padding-right: 34px; }
  .leads-table td[data-column-id="lead"]::before { display: none; }
  .leads-table tr[data-id] > td.select-cell { position: absolute; right: 7px; top: 7px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
  .leads-table .select-cell .checkbox { width: 20px; height: 20px; }
  .leads-table tr[data-id] > td.open-cell { width: auto; padding: 10px 0 0; }
  .leads-table .row-open { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: 100%; background: #f1effb; border: 1px solid #e2ddf7; border-radius: 8px; color: #4d3dac; }
  .leads-table .row-open::after { content: 'Open customer'; font-size: 13px; font-weight: 600; }
  .leads-table td :is(.status-wrap, .tag-wrap, .assign-wrap) { max-width: 100%; min-height: 40px; }
  .leads-table .row-group { display: block; }
  .leads-table .row-group td { display: block; padding: 8px 0 12px; }
  .leads-table tr[data-id] > td.easy-mobile-more { display: block; padding: 6px 0; }
  .easy-mobile-more details { width: 100%; }
  .easy-mobile-more summary { min-height: 44px; padding: 12px 8px; cursor: pointer; font-size: 13px; color: #5743b6; font-weight: 600; background: #f6f4fc; border-radius: 8px; }
  .easy-mobile-more-body { padding: 8px 0 0; display: grid; gap: 8px; }
  .easy-mobile-field { display: grid; grid-template-columns: 94px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding-block: 4px; overflow-wrap: anywhere; }
  .easy-mobile-field::before { content: attr(data-label); color: #617087; font-size: 12px; font-weight: 500; }
  .sc-support-launcher { width: 48px; min-height: 48px; padding: 5px; gap: 0; justify-content: center; }
  .sc-support-launcher > span:not(.sc-support-launcher-icon) { display: none; }
  .sc-support-launcher b:not([hidden]) { position: absolute; right: -4px; top: -4px; margin: 0; }
  .easy-page-guide { flex-wrap: wrap; padding: 12px; }
  .easy-page-guide p { min-width: 160px; }
  .easy-page-guide button { margin-left: 28px; }
  .easy-help-head { padding: 20px 18px 14px; }
  .easy-help-options { padding-inline: 18px; }
  .easy-help-body { padding: 0 18px 20px; }
  .easy-help-head h2 { font-size: 22px; }
  .easy-help-steps li { padding-left: 55px; }
  .easy-help-steps li::before { left: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.we-campaigns .we-row-actions { white-space: normal; min-width: 190px; }
.we-campaign-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.we-campaigns .we-row-actions .we-campaign-action { margin: 0; }
.we-campaign-action { min-height: 36px; white-space: normal; }
[data-we-report-reason] > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }

@media (max-width: 600px) {
  .we-campaign-action { min-height: 44px; }
  #weCampaignTable .we-campaigns, #weCampaignTable .we-campaigns tbody { display: block; width: 100%; }
  #weCampaignTable .we-campaigns thead { display: none; }
  #weCampaignTable .we-campaigns tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; border-bottom: 1px solid #e4e7f1; }
  #weCampaignTable .we-campaigns tr:last-child { border-bottom: 0; }
  #weCampaignTable .we-campaigns td { display: block; border: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
  #weCampaignTable .we-campaigns td:first-child, #weCampaignTable .we-campaigns td:nth-child(2), #weCampaignTable .we-campaigns td:last-child { grid-column: 1 / -1; }
  #weCampaignTable .we-campaigns td[data-label]::before { content: attr(data-label); display: block; color: #617087; font-size: 11px; margin-bottom: 4px; }
  #weCampaignTable .we-campaigns .we-row-title { font-size: 15px; }
  #weCampaignTable .we-campaigns .we-campaign-actions { justify-content: flex-start; padding-top: 4px; }
  #waConsentHost > .we-card-head { flex-direction: column; align-items: stretch; gap: 12px; }
  #waConsentHost > .we-card-head > div { width: 100%; min-width: 0; }
  #waConsentHost [data-wa-consent-return] { width: 100%; min-height: 42px; white-space: normal; }
  #waConsentRecords .we-table { table-layout: fixed; }
  #waConsentRecords .we-table th, #waConsentRecords .we-table td { padding: 10px 7px; overflow-wrap: anywhere; }
  #waConsentRecords .we-table th:first-child { width: 38%; }
  #waConsentRecords [data-wa-subscription-manage] { width: 100%; min-height: 42px; padding: 6px; white-space: normal; font-size: 12px; }
  #weInboxTplForm [data-we-inbox-restore], #weInboxTplForm [data-we-inbox-subscription-refresh] { min-height: 44px; white-space: normal; }
}
