/* Pluze interface identity. Screen chrome only; business states and printed documents stay in their modules. */
@media screen {
  body[data-pluze-interface] {
    --pluze-color-canvas:#f5f6fb;--pluze-color-surface:#fff;--pluze-color-surface-soft:#fafbfe;
    --pluze-color-text:#172033;--pluze-color-text-muted:#687184;--pluze-color-border:#e2e5ed;
    --pluze-action-primary:#5548c8;--pluze-action-primary-hover:#4438ad;--pluze-action-primary-soft:#eeeafa;
    --pluze-action-secondary-text:#5142b7;--pluze-action-on-primary:#fff;--pluze-action-focus-ring:#d9d3f7;
    --bg:#f5f6fb;--background:#f5f6fb;--surface:#fff;--surface-soft:#fafbfe;--panel:#fff;--card:#fff;
    --ink:#172033;--text:#172033;--muted:#687184;--line:#e2e5ed;--blue:#5548c8;--blue2:#4438ad;
    --blue-soft:#eeeafa;--accent:#5548c8;--radius:8px;
    background:#f5f6fb;color:#172033;font-family:Inter,"Segoe UI",Arial,sans-serif;
  }
  body[data-pluze-interface] :is(.content,.main-area,.main) {min-width:0}
  body[data-pluze-interface] :is(.panel,.card,.form-panel,.content>*) {min-width:0;max-width:100%}
  body[data-pluze-interface] .sidebar {
    width:256px;background:#fff;color:#485064;border-right:1px solid #e2e5ed;
    box-shadow:none;border-radius:0;max-height:100dvh;overflow-y:auto;overflow-x:hidden;
    scrollbar-width:thin;scrollbar-color:#d9dce5 transparent;
  }
  body[data-pluze-interface] .sidebar :is(.brand,.sidebar-footer,.sidebar-user,.operator-card) {border-color:#edf0f5;background:#fff;color:#485064}
  body[data-pluze-interface] .sidebar :is(.brand strong,.brand b,.user-info strong,.sidebar-user strong,.operator-card strong,.pluze-product-switcher strong) {color:#202536}
  body[data-pluze-interface] .sidebar :is(.brand small,.user-info small,.sidebar-user small,.operator-card small,.nav-section-title,.nav-label,.nav-group,.company-switcher small) {color:#687184}
  body[data-pluze-interface] .sidebar .brand {justify-content:flex-start;gap:10px;padding:16px 12px;border-bottom:1px solid #edf0f5;margin:0 0 12px;min-height:70px}
  body[data-pluze-interface] .sidebar :is(.brand-logo,.brand img,.brand-mark img) {width:34px!important;height:38px!important;object-fit:contain;filter:none}
  body[data-pluze-interface] .sidebar .brand-mark {background:transparent;box-shadow:none;border:0;border-radius:0;flex:0 0 34px}
  body[data-pluze-interface] .sidebar .pluze-brand-copy {display:flex;flex-direction:column;gap:3px;line-height:1.1}
  body[data-pluze-interface] .sidebar .pluze-brand-copy strong {font-size:25px;letter-spacing:-1.3px}
  body[data-pluze-interface] .sidebar .pluze-brand-copy small {font-size:11px;letter-spacing:0;text-transform:none}
  body[data-pluze-interface] .sidebar :is(.main-nav a,.nav-list a,.nav-item,nav>a,.nav-group>a,.campaign-email-sidebar summary,.campaign-email-sidebar a) {
    color:#485064;background:transparent;border-color:transparent;box-shadow:none;border-radius:6px;
    font-size:12px;line-height:1.4;font-weight:500;min-height:36px;white-space:normal;
  }
  body[data-pluze-interface] .sidebar :is(.main-nav a,.nav-list a,.nav-item,nav>a,.campaign-email-sidebar a):hover {background:#f5f4fa;color:#5142b7}
  body[data-pluze-interface] .sidebar :is(.main-nav a,.nav-list a,.nav-item,nav>a,.campaign-email-sidebar a).active,
  body[data-pluze-interface] .sidebar [aria-current="page"] {color:#5142b7;background:#eeeafa;border-color:transparent;box-shadow:none}
  body[data-pluze-interface] .sidebar :is(.nav-icon,svg) {color:currentColor}
  body[data-pluze-interface] .sidebar :is(.nav-item.active,.main-nav a.active,nav a.active) :is(.nav-icon,svg) {color:inherit;background:transparent}
  body[data-pluze-interface="pessoas"] .sidebar nav :is(a,a:hover,a.active)>span:first-child {color:inherit;background:transparent}
  body[data-pluze-interface] .sidebar .company-switcher :is(select,select:hover,select:focus) {color:#485064;background:#fff;border:1px solid #e2e5ed}
  body[data-pluze-interface] .sidebar .pluze-product-switcher {background:#fafbfe;border:1px solid #e2e5ed;border-radius:8px;box-shadow:none;color:#485064}
  body[data-pluze-interface] .sidebar .pluze-product-switcher :is(label,small,select) {color:#485064}
  body[data-pluze-interface] .sidebar .pluze-product-switcher select {background:#fff;border:1px solid #e2e5ed;border-radius:6px;min-height:34px;font-size:12px}
  body[data-pluze-interface] .sidebar .pluze-product-switcher__mark {background:#eeeafa;color:#5142b7}
  body[data-pluze-interface] .sidebar :is(.sidebar-logout button,.sidebar-user button) {color:#687184;background:#fafbfe;border:1px solid #e2e5ed;border-radius:6px}
  body[data-pluze-interface] :is(.topbar,.app-header,.desk-header) {background:#fff;color:#172033;border-color:#e2e5ed;box-shadow:none;min-width:0}
  body[data-pluze-interface] .topbar::before {display:none}
  body[data-pluze-interface] :is(.heading h1,.page-header h1,.page-head h1,.top-title,.desk-header h1) {font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:23px;line-height:1.3;font-weight:650;letter-spacing:-.025em;color:#172033}
  body[data-pluze-interface] :is(.heading p,.page-description,.page-head>div>p,.desk-header .summary) {color:#687184;font-size:12px;line-height:1.6}
  body[data-pluze-interface] :is(.eyebrow,.section-kicker) {color:#5142b7;font-size:10px;letter-spacing:.045em}
  body[data-pluze-interface] :is(.panel,.state-card,.card,.metric-card,.kpi-row article,.context-card) {background:#fff;border-color:#e2e5ed;border-radius:8px;box-shadow:0 1px 2px rgb(24 33 52 / 3%)}
  body[data-pluze-interface] :is(.panel-head,.card-head) {background:#fff;border-color:#e2e5ed}
  body[data-pluze-interface] :is(.panel-head,.card-head) :is(h2,h3) {font-family:inherit;font-size:17px;font-weight:650;color:#172033}
  body[data-pluze-interface] .kpi-row article::before {display:none}
  body[data-pluze-interface] .kpi-row article strong {color:#172033}
  body[data-pluze-interface] :is(.btn,.button) {border-radius:6px;box-shadow:none;font-size:12px;font-weight:600;min-height:34px;transition:background-color .15s,border-color .15s;transform:none}
  body[data-pluze-interface] :is(.btn.primary,.button-primary,.button.primary):not(:disabled):not([aria-disabled="true"]) {background:#5548c8;border-color:#5548c8;color:#fff}
  body[data-pluze-interface] :is(.btn.primary,.button-primary,.button.primary):not(:disabled):hover {background:#4438ad;border-color:#4438ad;transform:none}
  body[data-pluze-interface] :is(.btn.secondary,.button-secondary,.button.secondary) {background:#fff;border-color:#e2e5ed;color:#5142b7}
  body[data-pluze-interface] :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="number"],input[type="date"],input[type="month"],input[type="url"],input[type="tel"],select,textarea) {border-radius:6px;border-color:#e2e5ed;font-size:12px;max-width:100%;min-width:0}
  body[data-pluze-interface] :is(input[type="checkbox"],input[type="radio"],progress) {accent-color:#5548c8}
  body[data-pluze-interface] :is(a,button,input,select,textarea,summary):focus-visible {outline:2px solid #5548c8;outline-offset:2px}
  body[data-pluze-interface] :is(.tabs,.tab-bar,.campaign-tabs,.section-tabs) {border-color:#e2e5ed;box-shadow:none}
  body[data-pluze-interface] :is(.tab.active,.tab-button.active,.tabs .active,[role="tab"][aria-selected="true"]) {background:#eeeafa;color:#5142b7;border-color:#5548c8}
  body[data-pluze-interface] :is(.table-wrap,.table-scroll,.table-responsive) {max-width:100%;overflow-x:auto;border-color:#e2e5ed;border-radius:6px}
  body[data-pluze-interface] :is(.panel,.card,.content) table {font-size:12px}
  body[data-pluze-interface] :is(.panel,.card,.content) thead th {background:#fafbfe;color:#687184;font-size:11px;font-weight:600;border-color:#e2e5ed;letter-spacing:.01em}
  body[data-pluze-interface] :is(.panel,.card,.content) tbody td {border-color:#e2e5ed;line-height:1.5}
  body[data-pluze-interface] :is(dialog,.modal,.dialog-card) {border-radius:10px;border-color:#e2e5ed;max-width:calc(100vw - 24px)}
  body[data-pluze-interface] .pluze-nav-search {display:grid;gap:6px;margin:2px 0 14px;padding:0 4px}
  body[data-pluze-interface] .pluze-nav-search label {font-size:11px;color:#687184}
  body[data-pluze-interface] .pluze-nav-search input {width:100%;height:35px;border:1px solid #e2e5ed;background:#fafbfe;padding:7px 10px;color:#172033}
  body[data-pluze-interface] .pluze-nav-search-status {font-size:11px;color:#687184;padding:4px;margin:0}
  body[data-pluze-interface] .pluze-nav-group {margin:3px 0 8px}
  body[data-pluze-interface] .pluze-nav-toggle {display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;border-radius:6px;background:transparent;color:#485064;padding:10px;font:600 12px/1.4 Inter,"Segoe UI",Arial,sans-serif;text-align:left;cursor:pointer;min-height:40px}
  body[data-pluze-interface] .pluze-nav-toggle:hover {background:#f5f4fa}
  body[data-pluze-interface] .pluze-nav-toggle[aria-expanded="true"] {background:#f5f4fa;color:#302d51}
  body[data-pluze-interface] .pluze-nav-toggle span:last-child {transition:transform .15s}
  body[data-pluze-interface] .pluze-nav-toggle[aria-expanded="true"] span:last-child {transform:rotate(90deg)}
  body[data-pluze-interface] .pluze-nav-items {margin:5px 0 9px 15px;padding-left:9px;border-left:1px solid #e2e5ed}
  body[data-pluze-interface] .pluze-nav-items a {display:flex;align-items:center;gap:10px;margin:2px 0!important;padding:8px 10px!important;color:#485064;border-radius:6px;font-size:12px;line-height:1.4}
  body[data-pluze-interface] .pluze-nav-items a.active {background:#eeeafa;color:#5142b7}
  body[data-pluze-interface] [hidden] {display:none!important}
  body[data-pluze-interface="crm"] .main-area {margin-left:256px}
  body[data-pluze-interface="pessoas"] .main {margin-left:256px}
  body[data-pluze-interface="campanhas"] .main {margin-left:256px}
  body[data-pluze-interface="campanhas"] .campaign-list article {background:#fff;border-color:#e2e5ed;box-shadow:none}
  body[data-pluze-interface="campanhas"] .campaign-list h3 {font-size:15px;color:#172033}
  body[data-pluze-interface="campanhas"] .campaign-icon {background:#eeeafa;color:#5142b7}
  body[data-pluze-interface="campanhas"] :is(.campaign-wizard,.campaign-cockpit,.campaign-type-card,.campaign-strategy-card,.campaign-review-card,.campaign-channel-card,.campaign-kpi-grid article) {background:#fff;color:#172033;border-color:#e2e5ed;border-radius:8px;box-shadow:none}
  body[data-pluze-interface="campanhas"] :is(.campaign-wizard-steps,.campaign-filter-grid,.campaign-meta-bar) {background:#fafbfe;border-color:#e2e5ed;color:#485064}
  body[data-pluze-interface="campanhas"] .campaign-wizard-steps {display:flex;flex-wrap:wrap;gap:8px}
  body[data-pluze-interface="campanhas"] .campaign-wizard-steps a {color:#687184;border-radius:6px;font-size:12px}
  body[data-pluze-interface="campanhas"] .campaign-wizard-steps a.active {background:#eeeafa;color:#5142b7;border-color:#5548c8}
  body[data-pluze-interface="campanhas"] :is(.stack-form,.campaign-publico-form,.campaign-new-form,.campaign-strategy-form) label {font-size:12px;line-height:1.5;color:#485064}
  body[data-pluze-interface] .pluze-list-filter {display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid #e2e5ed}
  body[data-pluze-interface] .pluze-list-filter input {flex:1 1 180px;min-height:36px;padding:8px 10px;border:1px solid #e2e5ed;background:#fafbfe}
  body[data-pluze-interface] .pluze-list-filter select {flex:0 1 170px;min-height:36px;padding:8px;border:1px solid #e2e5ed;background:#fff}
  body[data-pluze-interface] .pluze-list-count {font-size:11px;color:#687184}
  body[data-pluze-interface] .pluze-list-empty {padding:24px 18px;color:#687184;font-size:13px}
  body[data-pluze-interface="financiamentos"] .app {grid-template-columns:256px minmax(0,1fr)}
  body[data-pluze-interface="financiamentos"] .sidebar :is(.nav-group,.sidebar-environment) {color:#687184;border-color:#e2e5ed}
  body[data-pluze-interface="chat"] .desk-shell {background:#f5f6fb;min-width:0}
  body[data-pluze-interface="chat"] .desk-header {border:1px solid #e2e5ed;border-radius:8px}
  body[data-pluze-interface="chat"] .tab-bar {overflow-x:auto;flex-wrap:nowrap;max-width:100%}
  body[data-pluze-interface="chat"] .tab-button {white-space:nowrap;flex-shrink:0}
  @media(min-width:901px) {
    body[data-pluze-interface] .sidebar {transform:none}
    body[data-pluze-interface="campanhas"] .sidebar.compact:not(.peek) {width:78px}
    body[data-pluze-interface="campanhas"] .sidebar.compact~.main {margin-left:78px}
    body[data-pluze-interface="campanhas"] .sidebar.compact.peek {width:256px}
    body[data-pluze-interface="campanhas"] .sidebar.compact:not(.peek) :is(.pluze-brand-copy,.pluze-nav-search,.pluze-nav-toggle) {display:none}
    body[data-pluze-interface="campanhas"] .sidebar.compact:not(.peek) .pluze-nav-items {margin:0;padding:0;border:0}
    body[data-pluze-interface="campanhas"] .sidebar.compact:not(.peek) .pluze-nav-items[hidden] {display:block!important}
    body[data-pluze-interface="campanhas"] .sidebar-collapse-toggle {right:4px;box-shadow:none}
  }
  @media(max-width:900px) {
    body[data-pluze-interface] :is(.main,.main-area) {margin-left:0}
    body[data-pluze-interface="financiamentos"] .app {grid-template-columns:minmax(0,1fr)}
    body[data-pluze-interface="financiamentos"] .sidebar {position:fixed!important;inset:0 auto 0 0;display:block!important;height:100dvh!important;z-index:250;transform:translateX(-100%);box-shadow:none}
    body[data-pluze-interface="financiamentos"].mobile-nav-open .sidebar {transform:none}
    body[data-pluze-interface="financiamentos"] :is(.mobile-nav-toggle,.mobile-nav-close) {display:inline-grid!important;place-items:center;color:#485064;background:#fff;border:1px solid #e2e5ed}
    body[data-pluze-interface] .sidebar {width:256px;max-width:calc(100vw - 40px)}
    body:is([data-pluze-interface="campanhas"],[data-pluze-interface="crm"],[data-pluze-interface="pessoas"]) .sidebar {transform:translateX(-100%)}
    body:is([data-pluze-interface="campanhas"],[data-pluze-interface="crm"],[data-pluze-interface="pessoas"]) .sidebar.open {transform:none}
    body[data-pluze-interface] :is(.topbar,.app-header,.desk-header,.page-header,.page-head,.panel-head,.actions,.header-actions,.top-actions) {flex-wrap:wrap;min-width:0;height:auto;gap:10px}
    body[data-pluze-interface] .content {padding:20px 16px}
    body[data-pluze-interface] :is(.topbar,.desk-header) {padding:16px}
    body[data-pluze-interface] :is(.form-grid,.formgrid,.user-field-grid)>* {min-width:0}
    body[data-pluze-interface] :is(.btn,.button) {white-space:normal}
    body[data-pluze-interface] :is(.page-header h1,.page-head h1,.heading h1) {font-size:21px}
  }
  @media(prefers-reduced-motion:reduce) {
    body[data-pluze-interface] :is(.pluze-nav-toggle span,.btn,.button) {transition:none}
  }
  /* Readable mobile screens and comfortable touch controls. Desktop sizes stay above. */
  @media(max-width:900px) {
    body[data-pluze-interface] {font-size:15px;line-height:1.5}
    body[data-pluze-interface] :is(main,.main,.main-area,.content,.desk-shell) p {font-size:15px;line-height:1.6}
    body[data-pluze-interface] :is(label,.page-description,.muted,.summary,.help,.hint) {font-size:14px!important;line-height:1.5}
    body[data-pluze-interface] :is(.eyebrow,.section-kicker,.pluze-nav-search-status,.pluze-list-count) {font-size:12px;line-height:1.5}
    body[data-pluze-interface] :is(.panel,.card,.content) :is(table,thead th,tbody td) {font-size:14px}
    body[data-pluze-interface] :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="number"],input[type="date"],input[type="month"],input[type="url"],input[type="tel"],input[type="file"],select,textarea) {font-size:16px!important;min-height:44px!important;line-height:1.4;box-sizing:border-box}
    body[data-pluze-interface] :is(button,.btn,.button,summary,[role="tab"]) {min-height:44px!important}
    body[data-pluze-interface] :is(.btn,.button,.tab-button,.pluze-nav-toggle) {font-size:14px;line-height:1.5}
    body[data-pluze-interface] .sidebar {width:min(320px,calc(100vw - 40px))!important;max-width:calc(100vw - 40px)}
    body[data-pluze-interface] .sidebar :is(nav a,.nav-item,.campaign-email-sidebar summary,.campaign-email-sidebar a,.pluze-nav-items a,.finance-nav-link,.finance-nav-heading) {font-size:14px!important;line-height:1.5;min-height:44px!important}
    body[data-pluze-interface] .sidebar nav a>span:last-child {font-size:14px!important}
    body[data-pluze-interface] .sidebar :is(.pluze-nav-toggle,.finance-nav-toggle,button.nav-label,.sidebar-logout button,.sidebar-footer button,.sidebar-user button) {font-size:14px!important;line-height:1.5;min-height:44px!important}
    body[data-pluze-interface] .sidebar :is(.pluze-nav-search label,.pluze-brand-copy small) {font-size:13px}
    body[data-pluze-interface] .sidebar .pluze-nav-search input {height:44px}
    body[data-pluze-interface] .sidebar .finance-menu-search label {height:auto!important;min-height:46px!important}
    body[data-pluze-interface] :is(.menu-toggle,.mobile-menu,.mobile-nav-toggle,.mobile-nav-close,#menuToggle,#menu-toggle,#sidebar-close,.sidebar-close) {min-width:44px;min-height:44px;font-size:20px;flex-shrink:0}
    body[data-pluze-interface] :is(.pluze-system-help-mobile-trigger,.pluze-system-help-trigger.is-floating) {width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;box-sizing:border-box;right:16px;bottom:max(16px,env(safe-area-inset-bottom));font-size:16px}
    body[data-pluze-interface] .pluze-list-filter :is(input,select) {min-height:44px}
    body[data-pluze-interface] :is(.form-grid,.formgrid,.user-field-grid,.campaign-filter-grid) {min-width:0;max-width:100%}
    body[data-pluze-interface="campanhas"] :is(.stack-form,.campaign-publico-form,.campaign-new-form,.campaign-strategy-form) label {font-size:14px}
    body[data-pluze-interface="campanhas"] .campaign-wizard-steps a {font-size:14px;min-height:44px;display:inline-flex;align-items:center}
    body[data-pluze-interface="chat"] .tab-button {font-size:14px;min-height:44px}
  }
}
