/* Approved Rex composition. Enabled by the presentation release setting or authenticated preview.
   All tokens and selectors are scoped; the existing interface is unchanged. */
body.rex-approved {
  --rex-bg:#f5f7fb; --rex-surface:#fff; --rex-line:#d5dbe6;
  --rex-ink:#16100a; --rex-muted:#43546b; --rex-accent:#f28c18;
  --bg:var(--rex-bg); --surface:var(--rex-surface); --surface-2:#eef2f7;
  --text:var(--rex-ink); --text-strong:var(--rex-ink); --text-soft:#3a4558;
  --text-muted:var(--rex-muted); --text-dim:var(--rex-muted); --text-faint:#6a778c;
  --border:var(--rex-line); --border-strong:#c0c8d6; --accent:var(--rex-accent);
  --accent-hover:#da7710; --accent-ink:#fff;
  background:var(--rex-bg); color:var(--rex-ink);
  font-family:"Segoe UI",Arial,sans-serif; font-size:13px; line-height:1.5;
}
.rex-approved *, .rex-approved *::before, .rex-approved *::after {box-sizing:border-box}
.rex-approved h1,.rex-approved h2,.rex-approved h3,.rex-approved button,.rex-approved input,.rex-approved select,.rex-approved textarea {font-family:inherit}
.rex-approved a {text-decoration:none}
.rex-approved svg {flex:none}
.rex-approved :focus-visible {outline:3px solid #9a4100;outline-offset:3px}
.rex-approved .shell {display:block;min-height:100vh;width:100%;max-width:none}
.rex-approved .shell .sidebar {
  position:fixed;left:0;top:0;bottom:0;width:212px;flex-basis:212px;
  display:flex;flex-direction:column;align-items:stretch;gap:0;
  padding:20px 12px 16px;background:#0d121b;color:#d5dbe6;
  border:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
  scrollbar-color:#3c4b61 #0d121b;z-index:40;
}
.rex-approved .shell .content {width:calc(100% - 212px);margin-left:212px;max-width:none;padding:0 28px 40px;min-width:0;gap:0}
.rex-approved .content>.card,.rex-approved .content>.topbar {margin-bottom:20px}
.rex-approved .sidebar .brand {margin:0 0 24px;padding:0 10px;gap:10px;min-height:47px;flex-shrink:0}
.rex-approved .sidebar .brand-mark {background:#ffa726;color:#1c1000;box-shadow:none;width:32px;height:32px;border-radius:8px;font-size:24px;line-height:1;font-weight:800;flex:none}
.rex-approved .sidebar .brand-name {font-size:22px;font-weight:750;letter-spacing:-.7px;color:#fff;line-height:1.15}
.rex-approved .sidebar .brand-sub {font-size:13px;letter-spacing:2px;color:#b2bccb}
.rex-approved .sidebar .brand-logo {width:36px;height:36px;object-fit:contain}
.rex-approved .sidebar .profile {display:flex;flex-direction:column;align-items:flex-start;gap:5px;border:1px solid #29313c;background:#111721;border-radius:9px;margin:0 0 10px;padding:15px;color:#d5dbe6;font-size:13px}
.rex-approved .sidebar .profile .avatar {display:none}
.rex-approved .sidebar .profile-text {display:flex;flex-direction:column;min-width:0;width:100%;font-size:13px}
.rex-approved .sidebar .profile-name {color:#fff;font-size:15px;font-weight:700;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.rex-approved .sidebar .profile-role {color:#b2bccb;font-size:13px;font-weight:500}
.rex-approved .sidebar .quick-search {display:none}
.rex-approved .sidebar .nav {gap:6px;display:flex;flex-direction:column}
.rex-approved .sidebar .nav-group {margin:0 0 8px;padding:0;border:0;background:none}
.rex-approved .sidebar .nav-label {display:flex;gap:7px;align-items:center;font-size:13px;letter-spacing:1.4px;color:#aab4c3;padding:13px 12px 8px;min-height:44px;list-style:none;font-weight:500;white-space:normal}
.rex-approved .sidebar summary.nav-label {cursor:pointer}
.rex-approved .sidebar summary.nav-label::-webkit-details-marker {display:none}
.rex-approved .sidebar summary.nav-label:after {content:'⌄';margin-left:auto;font-size:13px;letter-spacing:0}
.rex-approved .sidebar details:not([open]) summary.nav-label:after {content:'›'}
.rex-approved .sidebar .nav-label svg {display:none}
.rex-approved .sidebar .nav-item {display:flex;align-items:center;gap:8px;min-height:46px;padding:10px 10px;color:#c4cbd5;font-size:16px;font-weight:700;border:0;border-radius:7px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.rex-approved .sidebar .nav-item svg {color:#aab4c3;stroke:currentColor;width:17px;height:17px;flex:none}
.rex-approved .sidebar .nav-item:hover {background:#1a2433;color:#fff}
.rex-approved .sidebar .nav-item.active {background:#2d2114;color:#ffa726;border:0}
.rex-approved .sidebar .nav-item.active svg {color:#ffa726}
.rex-approved .sidebar .nav-count {margin-left:auto;background:#5f3717;color:#e8ead5;font-size:12px;font-weight:700;padding:2px 6px;border-radius:4px;flex:none}
.rex-approved .sidebar .nav-count-lead {margin-left:0;margin-right:2px;min-width:1.6em;text-align:center}
.rex-approved .sidebar .btn {background:transparent;border-color:#485261;color:#d0dfd5;min-height:44px;font-size:13px}
.rex-approved .sidebar-footer {margin-top:10px}
.rex-approved .sidebar .sidebar-wallet {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:8px;color:#d7e2d7;font-size:13px;
  border:1px solid #3a4558;background:#111721;border-radius:12px;
  margin:0 0 14px;padding:16px 12px 14px;width:100%;max-width:100%;
  box-sizing:border-box;overflow:visible;min-height:96px;
  flex:0 0 auto;align-self:stretch;
}
.rex-approved .sidebar .sidebar-wallet.is-unlimited {
  padding:2px 10px 12px;min-height:140px;gap:0;
  justify-content:flex-start;
}
.rex-approved .sidebar .sidebar-wallet strong {
  display:block;width:100%;text-align:center;color:#e9cc8e;
  font-size:34px;line-height:1.1;font-weight:750;font-variant-numeric:tabular-nums;
  letter-spacing:-.5px;
}
.rex-approved .sidebar .sidebar-wallet span {
  display:block;width:100%;text-align:center;font-size:13px;line-height:1.35;color:#c5cddb;
  white-space:normal;overflow:visible;font-weight:600;
}
/* Admin / franquia: ∞ quase rente à borda superior do card */
.rex-approved .sidebar .sidebar-wallet.is-unlimited strong {
  font-size:78px;line-height:.78;letter-spacing:-3px;color:#e9cc8e;font-weight:600;
  height:auto;overflow:visible;width:100%;margin:0;padding:0;
}
.rex-approved .sidebar form[action="/aparencia/barra"] {display:none}
.rex-approved .mobile-header {display:none}
.rex-header {height:77px;margin:0 -37px 31px;padding:0 37px;display:flex;align-items:center;gap:20px;background:var(--rex-surface);border-bottom:1px solid var(--rex-line)}
.rex-breadcrumb {display:flex;align-items:center;gap:13px;margin-right:auto;min-width:0;font-size:13px}
.rex-breadcrumb span {color:#52647c}.rex-breadcrumb i {color:#b8c4bd;font-style:normal}.rex-breadcrumb strong {font-weight:500;overflow-wrap:anywhere}
.rex-search {display:flex;align-items:center;gap:9px;min-width:0;width:min(320px,42vw);padding:0 12px;border:1px solid var(--rex-line);border-radius:10px;background:var(--rex-surface);color:var(--rex-muted)}
.rex-search input {background:none;border:0;box-shadow:none;outline:none;min-width:0;width:100%;font-size:14px;padding:8px 0;min-height:44px;color:var(--rex-ink)}
.rex-search input::placeholder {color:var(--rex-muted);opacity:.9}
.rex-search button {flex:none;min-width:64px;min-height:36px;padding:0 10px;border:0;border-radius:8px;background:#2d2114;color:#ffa726;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.rex-search button:hover {background:#3a2b1a}
.rex-exit {font-size:13px;color:var(--rex-muted);min-height:44px;display:flex;align-items:center;white-space:nowrap}
.rex-account-wrap {position:relative;flex:none}
.rex-account {display:flex;align-items:center;justify-content:center;background:#2d2114;color:#ffa726;border:0;border-radius:10px;width:44px;height:44px;font-size:13px;font-weight:700;cursor:pointer;font:inherit}
.rex-account[aria-expanded="true"] {outline:2px solid #f28c18;outline-offset:2px}
.rex-account-menu {
  position:absolute;right:0;top:calc(100% + 8px);z-index:90;width:min(320px,calc(100vw - 24px));
  background:var(--rex-surface);color:var(--rex-ink);border:1px solid var(--rex-line);border-radius:14px;
  box-shadow:0 18px 48px rgba(8,12,20,.28);padding:14px;display:grid;gap:12px;
}
.rex-account-menu[hidden] {display:none !important}
.rex-account-menu__head {display:grid;gap:2px}
.rex-account-menu__head strong {font-size:15px;font-weight:750;color:var(--rex-ink)}
.rex-account-menu__head span {font-size:12px;color:var(--rex-muted)}
.rex-account-menu__meta {margin:0;display:grid;gap:8px}
.rex-account-menu__meta > div {display:grid;gap:2px}
.rex-account-menu__meta dt {font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--rex-muted)}
.rex-account-menu__meta dd {margin:0;font-size:13px;font-weight:650;color:var(--rex-ink);overflow-wrap:anywhere}
.rex-account-menu__meta .rex-account-infinity {display:inline-block;font-size:42px;line-height:1;vertical-align:middle;color:#c9a227;font-weight:600;margin-right:6px}
.rex-account-menu__actions {display:grid;gap:6px;border-top:1px solid var(--rex-line);padding-top:10px}
.rex-account-menu__actions a,
.rex-account-menu__actions button {
  display:flex;align-items:center;min-height:40px;padding:0 10px;border-radius:8px;border:1px solid var(--rex-line);
  background:transparent;color:var(--rex-ink);font:inherit;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;text-align:left;width:100%;
}
.rex-account-menu__actions a:hover,
.rex-account-menu__actions button:hover {border-color:#f28c18;background:rgba(242,140,24,.08)}
.rex-search-hit {display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;color:inherit;padding:10px 0;border-bottom:1px solid var(--rex-line)}
.rex-search-hit:last-child {border-bottom:0}
.rex-search-hit .list-meta {color:#f28c18;font-size:12px;font-weight:700;flex:none}
.rex-search-hit:hover .list-title {color:#f28c18}
.rex-search-links {display:flex;flex-wrap:wrap;gap:8px}
.rex-search-hit-btn {text-decoration:none}
.rex-search-page .field {margin-bottom:10px}
.rex-approved .rex-header .rex-menu,.rex-approved .sidebar .drawer-close {display:none}
.rex-skip {position:fixed;left:16px;top:8px;transform:translateY(-180%);z-index:100;background:#fff;color:#163a2e;padding:12px 18px;border-radius:8px}
.rex-skip:focus {transform:none}
.rex-approved .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.rex-approved .btn {min-height:44px;padding:10px 15px;border-radius:7px;border:1px solid var(--rex-line);box-shadow:none;background:var(--rex-surface);color:var(--rex-ink);font-size:13px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:9px}
.rex-approved .btn .rex-icon {width:17px;height:17px;margin:0}
.rex-approved .btn-primary {background:var(--rex-accent);color:#1c1000;border-color:var(--rex-accent);font-weight:600}
.rex-approved .btn:hover {border-color:#c0c8d6;background:#eef2f7}.rex-approved .btn-primary:hover {background:#ffa726;color:#1c1000}
.rex-approved .card,.rex-approved .management-client-card {background:var(--rex-surface);border:1px solid var(--rex-line);border-radius:14px;box-shadow:none}
.rex-approved .page-title {color:var(--rex-ink);font-size:28px;letter-spacing:-.7px}
.rex-approved .mobile-nav {background:var(--rex-surface);border-color:var(--rex-line)}
.rex-approved .mobile-nav a,.rex-approved .mobile-nav button {color:var(--rex-muted)}
.rex-approved .mobile-nav [aria-current="page"] {color:#9a4100}
.rex-overview {max-width:1600px;margin:0 auto}
.rex-intro {display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:23px}
.rex-eyebrow {font-size:13px;letter-spacing:1.4px;color:#758878;line-height:1.6;font-weight:500;display:block}
.rex-intro h1 {font-size:29px;font-weight:600;letter-spacing:-1px;line-height:1.2;margin:11px 0 9px;color:var(--rex-ink)}
.rex-intro p {font-size:13px;color:var(--rex-muted);margin:0}
.rex-intro-actions {display:flex;gap:9px;flex:none}
.rex-context {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px;color:var(--rex-muted)}
.rex-context>div {display:flex;gap:9px;flex-wrap:wrap}
.rex-context>div>span {background:var(--rex-surface);border:1px solid var(--rex-line);padding:11px 16px;border-radius:8px;font-size:13px;min-height:44px;display:flex;align-items:center}
.rex-context>small {font-size:13px;text-align:right}
.rex-bento {display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;align-items:stretch}
.rex-panel {min-width:0;border:1px solid var(--rex-line);background:var(--rex-surface);border-radius:16px;overflow-wrap:anywhere}
.rex-panel h2 {font-size:18px;line-height:1.3;font-weight:500;letter-spacing:-.3px;margin:0;color:var(--rex-ink)}
.rex-revenue {grid-column:span 7;grid-row:span 2;padding:26px 0 0;display:flex;flex-direction:column;min-height:505px}
.rex-panel-top {display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:0 26px}
.rex-panel-top>.rex-icon {height:44px;width:44px;padding:12px;border:1px solid #dfe8d5;border-radius:50%;background:#f0f5e9;color:#7b956a}
.rex-revenue-value {font-size:46px;line-height:1.2;font-weight:500;letter-spacing:-2px;color:#713c14;margin-top:12px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.rex-panel-top p {font-size:13px;color:var(--rex-muted);margin:8px 0 0}
.rex-chart-heading {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:28px 26px 12px}
.rex-chart-heading h2 {font-size:16px}.rex-chart-heading>span {font-size:13px;color:var(--rex-muted)}
.rex-chart {padding:0 26px 25px;margin-bottom:auto}
.rex-chart-key {display:flex;gap:6px;align-items:center;font-size:13px;color:var(--rex-muted);margin-bottom:8px}
.rex-chart-key i {width:5px;height:5px;background:#54866a;border-radius:50%}
.rex-chart svg {display:block;width:100%;height:180px;color:#6f8e72;overflow:visible}
.rex-chart-months {display:flex;justify-content:space-between;gap:8px;padding-top:12px;font-size:13px;color:#718876}
.rex-revenue-footer {border-top:1px solid var(--rex-line);padding:12px 24px;display:flex;gap:16px;align-items:center;justify-content:space-between;font-size:13px;color:var(--rex-muted);flex-wrap:wrap}
.rex-revenue-footer details {max-width:100%;min-width:0}
.rex-revenue-footer summary {list-style:none;display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer;color:#577647;font-size:13px}
.rex-revenue-footer summary::-webkit-details-marker {display:none}
.rex-revenue-footer summary>span {font-size:18px}
.rex-revenue-footer details[open] {width:100%}
.rex-revenue-footer table {width:100%;font-size:13px}.rex-revenue-footer td,.rex-revenue-footer th {text-align:left;padding:10px 5px;border-bottom:1px solid var(--rex-line)}
.rex-pulse {grid-column:span 5;padding:25px;border-radius:16px;background:#194637;border:1px solid #2d5542;color:#eef2df;min-width:0}
.rex-pulse-heading {display:flex;justify-content:space-between;align-items:center}
.rex-pulse-heading .rex-eyebrow {color:#b7c9a8}.rex-pulse-heading .rex-icon {color:#a7be8d;width:18px;height:18px}
.rex-pulse-stats {display:grid;grid-template-columns:1fr 1fr;margin-top:22px;gap:24px}
.rex-pulse-stats>div+div {border-left:1px solid #7c491e;padding-left:24px}
.rex-pulse-stats strong {display:block;font-size:38px;line-height:1;font-weight:450;letter-spacing:-1.5px;overflow-wrap:anywhere}
.rex-pulse-stats span {display:block;font-size:13px;color:#fff0dc;margin-top:10px}
.rex-pulse-stats small {display:block;font-size:13px;color:#dcc2a1;margin-top:5px}
.rex-pulse-link {display:flex;justify-content:space-between;align-items:center;gap:15px;color:#d0dec0;border-top:1px solid #466a48;font-size:13px;min-height:44px;padding-top:12px;margin-top:19px}
.rex-pulse-link>span {font-size:19px}
.rex-owner {grid-column:span 2;padding:20px;border-radius:16px;background:#f1eedb;border:1px solid #e0ddc4;display:flex;flex-direction:column;min-width:0;color:#7b7f50}
.rex-owner .rex-eyebrow {font-size:8px;color:#827d4e;letter-spacing:1px}
.rex-owner>strong {font-size:57px;font-weight:400;line-height:1;margin:18px 0 9px}
.rex-owner>p {font-size:13px;line-height:1.7;color:#777b51;margin:0 0 15px}
.rex-owner>a {font-size:13px;min-height:44px;display:flex;gap:6px;align-items:center;justify-content:space-between;color:#667344;margin-top:auto}
.rex-next {grid-column:span 3;padding:21px 22px;display:flex;flex-direction:column}
.rex-next .rex-eyebrow {font-size:8px}.rex-next h2 {font-size:21px;line-height:1.15;margin:8px 0 14px}
.rex-next>div {margin-top:auto}
.rex-next a {display:flex;justify-content:space-between;align-items:center;gap:8px;color:#805022;font-size:13px;min-height:44px;padding:8px 0;border-top:1px solid var(--rex-line)}
.rex-next a>span:first-child {display:flex;align-items:center;gap:9px}.rex-next .rex-icon {width:15px;height:15px}
.rex-attention {grid-column:span 12;display:flex;align-items:center;gap:15px;border:1px solid #efce9c;background:#fff4e4;border-radius:13px;padding:17px 22px}
.rex-attention-symbol {display:flex;align-items:center;justify-content:center;width:39px;height:39px;background:#ffe1b6;color:#805022;border-radius:50%;flex:none}
.rex-attention>div {flex:1;min-width:0}.rex-attention strong {font-size:13px;font-weight:500;color:#713c14}.rex-attention p {font-size:13px;color:#713c14;margin:5px 0 0}.rex-attention .btn {font-size:13px}
.rex-clients {grid-column:span 8}.rex-operation {grid-column:span 4}
.rex-panel-heading {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:24px}
.rex-panel-heading p {font-size:13px;color:var(--rex-muted);margin:5px 0 0}
.rex-panel-heading>a {color:#567648;font-size:13px;min-height:44px;display:flex;align-items:center;gap:10px}
.rex-panel-heading>.rex-icon {color:#8b9d7b}
.rex-clients .data-table {width:100%;border:0;border-collapse:collapse}
.rex-clients th {font-size:13px;font-weight:500;letter-spacing:.6px;text-transform:uppercase;background:#f7f9f4;color:#7c8e7b;text-align:left}
.rex-clients th,.rex-clients td {padding:15px 20px;border-bottom:1px solid var(--rex-line)}
.rex-clients td {font-size:13px}.rex-clients td strong {font-weight:500;display:block}.rex-clients td small {display:block;font-size:13px;color:var(--rex-muted);margin-top:3px;overflow-wrap:anywhere}
.rex-status {display:inline-flex;border-radius:5px;background:#eef2df;color:#687342;padding:4px 7px;font-size:13px;white-space:normal}
.rex-operation dl {padding:0 24px;margin:0}.rex-panel dl>div {display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--rex-line)}
.rex-panel dt {font-size:13px;color:var(--rex-muted)}.rex-panel dd {font-size:13px;font-weight:500;margin:0;text-align:right}
.rex-panel-url {color:#557847;display:block;margin:14px 24px 22px;font-size:13px;overflow-wrap:anywhere;min-height:44px}
.rex-empty,.rex-unavailable {padding:24px;color:var(--rex-muted);font-size:13px;line-height:1.8}
.rex-unavailable {margin-top:auto;margin-bottom:auto}.rex-unavailable strong {color:var(--rex-ink)}
.rex-details-grid {display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}
.rex-detail {padding:24px}.rex-detail>p {color:var(--rex-muted);font-size:13px;line-height:1.7}
.rex-inline-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.rex-catalog-counts {display:flex;gap:30px;margin:20px 0}.rex-catalog-counts strong {display:block;font-size:24px;font-weight:500}.rex-catalog-counts span {display:block;font-size:13px;color:var(--rex-muted)}
.rex-settings {padding:8px 24px;margin-bottom:18px}.rex-settings summary {display:flex;align-items:center;gap:10px;min-height:52px;cursor:pointer;font-size:13px;font-weight:500}.rex-settings summary>span {font-size:13px;font-weight:400;color:var(--rex-muted);margin-left:auto}.rex-settings>p {font-size:13px;color:var(--rex-muted)}.rex-settings form {padding-bottom:16px}.rex-settings form>.btn {justify-self:start}.rex-settings .form-grid {max-width:680px}
.rex-account-detail {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px;margin-bottom:18px}.rex-account-detail p {font-size:13px;color:var(--rex-muted);overflow-wrap:anywhere;margin:6px 0 0}
html[data-theme="dark"] body.rex-approved {--rex-bg:#090f18;--rex-surface:#131d2a;--rex-line:#344153;--rex-ink:#f3f5f7;--rex-muted:#c5d0e0;--surface-2:#1d2a3d;--text-soft:#e2eaf4;--text-faint:#c5d0e0;--accent-hover:#f28c18}
html[data-theme="dark"] body.rex-approved .rex-breadcrumb span,
html[data-theme="dark"] body.rex-approved .rex-breadcrumb i {color:var(--rex-muted)}
html[data-theme="dark"] body.rex-approved .rex-breadcrumb strong {color:var(--rex-ink)}
html[data-theme="dark"] body.rex-approved .rex-search {background:#0f172a;border-color:#334155;color:var(--rex-muted)}
html[data-theme="dark"] body.rex-approved .rex-search button {background:#3a2b1a;color:#ffbf6c}
html[data-theme="dark"] body.rex-approved .rex-account-menu {box-shadow:0 18px 48px rgba(0,0,0,.55)}
/* Tema claro: tipografia e superfícies legíveis (sem texto claro em fundo claro) */
html[data-theme="light"] body.rex-approved .content,
html[data-theme="light"] body.rex-approved .content .page-title,
html[data-theme="light"] body.rex-approved .content .page-sub,
html[data-theme="light"] body.rex-approved .content .card-title,
html[data-theme="light"] body.rex-approved .content .card-note,
html[data-theme="light"] body.rex-approved .content .muted,
html[data-theme="light"] body.rex-approved .content p,
html[data-theme="light"] body.rex-approved .content label,
html[data-theme="light"] body.rex-approved .content th,
html[data-theme="light"] body.rex-approved .content td,
html[data-theme="light"] body.rex-approved .content .field label,
html[data-theme="light"] body.rex-approved .content .rex-panel h2,
html[data-theme="light"] body.rex-approved .content .rex-intro h1,
html[data-theme="light"] body.rex-approved .content .rex-customer-brand,
html[data-theme="light"] body.rex-approved .content .rex-customer-detail,
html[data-theme="light"] body.rex-approved .content .rex-ico-label,
html[data-theme="light"] body.rex-approved .content .rex-client-count {
  color: var(--rex-ink);
}
html[data-theme="light"] body.rex-approved .content .page-sub,
html[data-theme="light"] body.rex-approved .content .card-note,
html[data-theme="light"] body.rex-approved .content .muted,
html[data-theme="light"] body.rex-approved .content .rex-ico-label {
  color: var(--rex-muted);
}
html[data-theme="light"] body.rex-approved .content .card,
html[data-theme="light"] body.rex-approved .content .rex-panel,
html[data-theme="light"] body.rex-approved .content .rex-customer,
html[data-theme="light"] body.rex-approved .content input,
html[data-theme="light"] body.rex-approved .content select,
html[data-theme="light"] body.rex-approved .content textarea {
  background: var(--rex-surface);
  color: var(--rex-ink);
  border-color: var(--rex-line);
}
html[data-theme="light"] body.rex-approved .content a:not(.btn):not(.rex-ico):not(.rex-t-ico):not(.rex-2fa-badge) {
  color: #0c4ba9;
}
html[data-theme="light"] body.rex-approved .btn {
  color: var(--rex-ink);
  background: var(--rex-surface);
  border-color: var(--rex-line);
}
html[data-theme="light"] body.rex-approved .btn-primary {
  background: var(--rex-accent);
  border-color: transparent;
  color: #1c1000;
}
html[data-theme="light"] body.rex-approved .btn-danger {
  background: #fff0f1;
  color: #a02238;
  border-color: #e9abb6;
}
html[data-theme="dark"] body.rex-approved .card-note,
html[data-theme="dark"] body.rex-approved .page-sub,
html[data-theme="dark"] body.rex-approved .list-sub,
html[data-theme="dark"] body.rex-approved .field small,
html[data-theme="dark"] body.rex-approved .rex-intro p,
html[data-theme="dark"] body.rex-approved .muted {color:var(--rex-muted)!important}
html[data-theme="dark"] body.rex-approved .data-table th,
html[data-theme="dark"] body.rex-approved .data-table td {color:var(--rex-ink)}
html[data-theme="dark"] body.rex-approved label,
html[data-theme="dark"] body.rex-approved .field label {color:var(--rex-ink)}

html[data-theme="dark"] .rex-approved .rex-revenue-value {color:#f3f5f7}
html[data-theme="dark"] .rex-approved .rex-clients th {background:#1d2a3d;color:#c9d4e2}
html[data-theme="dark"] .rex-approved .rex-attention {background:#3a2b1a;border-color:#755020}
html[data-theme="dark"] .rex-approved .rex-attention strong,html[data-theme="dark"] .rex-approved .rex-attention p {color:#ffe1b6}
html[data-theme="dark"] .rex-approved .rex-next a,html[data-theme="dark"] .rex-approved .rex-panel-heading>a,html[data-theme="dark"] .rex-approved .rex-panel-url,html[data-theme="dark"] .rex-approved .rex-revenue-footer summary {color:#ffbf6c}
@media(min-width:1600px) {.rex-bento {gap:22px}.rex-revenue {min-height:540px}.rex-pulse {padding:28px}}
@media(max-width:1200px) {
  .rex-approved .shell .sidebar {width:200px;flex-basis:200px;padding-inline:10px}
  .rex-approved .shell .content {width:calc(100% - 200px);margin-left:200px;padding-inline:25px}.rex-header {margin-inline:-25px;padding-inline:25px;gap:14px}
  .rex-intro {align-items:flex-start}.rex-intro h1 {font-size:26px}.rex-intro-actions {flex-direction:column}
  .rex-bento {gap:14px}.rex-revenue-value {font-size:40px}.rex-owner {padding:17px}.rex-next {padding:19px 17px}.rex-next h2 {font-size:18px}.rex-next a {font-size:13px}
  .rex-pulse {padding:20px}.rex-pulse-stats {gap:18px}.rex-pulse-stats>div+div {padding-left:18px}
  .rex-clients,.rex-operation {grid-column:span 12}.rex-operation dl {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.rex-operation dl>div {display:block}.rex-operation dd {text-align:left;margin-top:7px}
  .rex-search {width:185px}.rex-breadcrumb {font-size:13px;gap:8px}.rex-breadcrumb>span,.rex-breadcrumb>i {display:none}
}
@media(max-width:950px) {
  .rex-bento {gap:16px}
  .rex-approved .shell .sidebar {width:188px;flex-basis:188px}
  .rex-approved .shell .content {width:calc(100% - 188px);margin-left:188px;padding-inline:21px}.rex-header {margin-inline:-21px;padding-inline:21px}
  .rex-search {width:155px}.rex-header {gap:10px}.rex-breadcrumb {font-size:13px}
  .rex-revenue {grid-column:span 12;grid-row:auto;min-height:475px}.rex-pulse {grid-column:span 12;padding:23px}.rex-owner {grid-column:span 4;padding:23px}.rex-next {grid-column:span 8;padding:23px}.rex-next h2 {font-size:22px}.rex-next h2 br {display:none}.rex-next a {font-size:13px}
  .rex-pulse-stats strong {font-size:41px}.rex-revenue-value {font-size:46px}
}
@media(min-width:861px) {.rex-approved .shell .mobile-nav {display:none}}
@media(max-width:860px) {
  .rex-approved .shell .sidebar {display:none}
  .rex-approved .shell .content {width:100%;margin:0;padding:0 24px 104px}
  /* Drawer acima do menu fixo (z-index 50) e com safe-area iPhone */
  .rex-approved .shell.mobile-menu-open .sidebar {
    display:flex;flex-direction:column;align-items:stretch;position:fixed;inset:0 auto 0 0;
    width:min(280px,calc(100vw - 48px));max-width:calc(100vw - 48px);
    height:100vh;height:100dvh;
    padding:calc(12px + env(safe-area-inset-top,0px)) 10px calc(24px + env(safe-area-inset-bottom,0px));
    z-index:80;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  }
  .rex-approved .shell.mobile-menu-open .drawer-backdrop {display:block;z-index:70}
  /* Menu inferior não cobre o lateral enquanto o drawer está aberto */
  .rex-approved .shell.mobile-menu-open .mobile-nav {visibility:hidden;pointer-events:none}
  .rex-approved .sidebar .drawer-close {display:flex;margin-bottom:10px;min-height:44px;padding-top:2px}
  .rex-approved .shell.mobile-menu-open .sidebar .rex-official-brand {margin-bottom:8px}
  .rex-approved .shell.mobile-menu-open .sidebar .rex-official-brand .brand-logo {width:110px;height:64px}
  .rex-approved .shell.mobile-menu-open .sidebar .profile {margin:0 0 8px;padding:10px 12px}
  .rex-approved .shell.mobile-menu-open .sidebar .sidebar-wallet.is-unlimited strong {font-size:58px;line-height:.85}
  .rex-approved .shell.mobile-menu-open .sidebar .nav-item {min-height:42px;padding:8px 10px;font-size:15px;font-weight:600;gap:8px}
  .rex-approved .shell.mobile-menu-open .sidebar .nav-label {min-height:36px;padding:8px 10px;font-size:10px}
  .rex-approved .shell.mobile-menu-open .sidebar .sidebar-wallet {margin:0 0 12px;padding:12px 10px;min-height:84px}
  .rex-approved .shell.mobile-menu-open .sidebar .sidebar-wallet.is-unlimited {padding:4px 10px 12px;min-height:120px;gap:2px;justify-content:flex-start}
  .rex-approved .shell.mobile-menu-open .sidebar .sidebar-footer {padding-bottom:8px}
  .rex-approved .rex-header .rex-menu {display:inline-flex;padding:10px;min-width:44px;flex:none}
  .rex-header {
    position:relative;height:auto;min-height:77px;margin-inline:-24px;padding-inline:24px;gap:12px;
    padding-top:calc(12px + env(safe-area-inset-top,0px));
  }
  .rex-breadcrumb {font-size:13px}.rex-search {width:200px}.rex-account {width:44px;height:44px}
  .rex-intro-actions {flex-direction:row}.rex-details-grid {grid-template-columns:1fr 1fr}
}
@media(max-width:860px) {
  .rex-approved .shell .content {padding-inline:18px}.rex-header {padding:12px 18px;margin:0 -18px 23px;height:auto;min-height:77px;flex-wrap:wrap;gap:10px}
  .rex-breadcrumb {font-size:13px;margin-right:auto;flex:1}.rex-exit {font-size:13px}.rex-account {width:44px;height:44px;font-size:13px}
  .rex-search {order:5;width:100%;border:1px solid var(--rex-line);border-radius:7px;padding-left:11px}.rex-search input {font-size:16px;height:44px}.rex-search button {font-size:15px}
  .rex-intro {display:block;margin-bottom:20px}.rex-intro h1 {font-size:25px;letter-spacing:-.7px;line-height:1.2;max-width:300px;margin-top:9px}.rex-intro p {font-size:13px;line-height:1.7}.rex-eyebrow {font-size:8px}
  .rex-intro-actions {margin-top:20px;display:flex}.rex-intro-actions .btn {flex:1;font-size:13px;padding:10px}
  .rex-context {display:block;margin-bottom:19px}.rex-context>small {display:block;text-align:left;margin-top:10px;font-size:13px}.rex-context>div>span {font-size:13px;padding:10px 12px;min-height:40px}
  .rex-bento {gap:13px}.rex-revenue {padding-top:22px;border-radius:14px;min-height:445px}.rex-panel-top {padding:0 20px;gap:12px}.rex-revenue-value {font-size:39px;letter-spacing:-1.8px}.rex-panel-top p {font-size:13px}.rex-panel-top>.rex-icon {width:36px;height:36px;padding:9px}
  .rex-chart-heading {padding:24px 20px 12px;display:block}.rex-chart-heading h2 {font-size:16px}.rex-chart-heading>span {display:block;margin-top:5px;font-size:13px}.rex-chart {padding:0 20px 22px}.rex-chart svg {height:145px}.rex-chart-months {font-size:8px;gap:4px}.rex-chart-key {font-size:13px}
  .rex-revenue-footer {padding:10px 17px;gap:8px}.rex-revenue-footer>span {font-size:13px;line-height:1.6}.rex-revenue-footer summary {font-size:13px;gap:5px}
  .rex-pulse {padding:23px 21px;border-radius:14px}.rex-pulse-stats {gap:20px;margin-top:21px}.rex-pulse-stats>div+div {padding-left:20px}.rex-pulse-stats strong {font-size:39px}.rex-pulse-stats span {font-size:13px}.rex-pulse-stats small {font-size:13px;line-height:1.5}.rex-pulse-link {font-size:13px}
  .rex-owner {grid-column:span 5;padding:20px 16px;border-radius:14px}.rex-owner .rex-eyebrow {font-size:8px;letter-spacing:.7px}.rex-owner>strong {font-size:57px}.rex-owner>p {font-size:13px}.rex-owner>a {font-size:13px;line-height:1.5}
  .rex-next {grid-column:span 7;padding:20px 15px;border-radius:14px}.rex-next .rex-eyebrow {font-size:7px;letter-spacing:.7px}.rex-next h2 {font-size:18px;line-height:1.2}.rex-next h2 br {display:block}.rex-next a {font-size:13px;gap:3px;line-height:1.4}.rex-next a>span:first-child {gap:6px}.rex-next .rex-icon {width:14px;height:14px}
  .rex-attention {padding:18px 16px;border-radius:13px;gap:12px;flex-wrap:wrap}.rex-attention-symbol {height:33px;width:33px}.rex-attention>div {min-width:calc(100% - 46px)}.rex-attention strong {font-size:13px;line-height:1.5;display:block}.rex-attention p {font-size:13px;line-height:1.7}.rex-attention .btn {margin-left:45px;font-size:13px;padding:9px 12px}
  .rex-panel-heading {padding:20px 17px}.rex-panel-heading h2 {font-size:16px}.rex-panel-heading p {font-size:13px}.rex-panel-heading>a {font-size:13px;max-width:85px;line-height:1.5;flex:none}
  .rex-clients .mobile-card-table tbody tr {margin:0 12px 12px;background:var(--rex-surface);border-color:var(--rex-line)}.rex-clients .mobile-card-table td {font-size:13px;padding:10px}.rex-clients .mobile-card-table td:before {color:var(--rex-muted);font-size:13px}
  .rex-operation dl {display:block;padding-inline:18px}.rex-operation dl>div {display:flex}.rex-operation dd {margin-top:0;text-align:right}.rex-panel-url {margin-inline:18px}
  .rex-details-grid {grid-template-columns:1fr;gap:13px;margin-top:13px}.rex-detail {padding:20px 18px}.rex-panel h2 {font-size:17px}
  .rex-settings {padding:8px 18px}.rex-settings summary {flex-wrap:wrap;gap:8px;padding-block:8px}.rex-settings summary>span {width:100%;margin-left:30px;font-size:13px}
  .rex-account-detail {padding:20px 18px;align-items:flex-start;flex-direction:column}.rex-account-detail p {line-height:1.7}
}
@media(prefers-reduced-motion:reduce) {.rex-approved *,.rex-approved *::before,.rex-approved *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Older WebKit can still read every block without CSS Grid. */
@supports not (display:grid) {
  .rex-bento,.rex-details-grid,.rex-pulse-stats {display:block}
  .rex-bento>* {margin-bottom:18px}.rex-details-grid>* {margin-bottom:18px}
  .rex-pulse-stats>div {display:inline-block;width:46%;vertical-align:top}
  .rex-owner>strong {display:block}.rex-owner>a {margin-top:20px}
}
.rex-message-page {max-width:1600px;margin:0 auto;width:100%}
.rex-template-controls {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0 24px}
.rex-template-controls>div,.rex-template-controls>label {min-width:0;display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--rex-muted)}
.rex-template-controls strong,.rex-template-controls select {display:flex;align-items:center;min-height:44px;padding:10px 15px;border:1px solid var(--rex-line);background:var(--rex-surface);color:var(--rex-ink);border-radius:8px;font-size:13px;font-weight:400;width:100%;max-width:100%}
.rex-template-notice {padding:16px 19px;border-radius:8px;background:#eaf0e3;border:1px solid #dbe4cf;color:#60764e;font-size:13px;line-height:1.7;margin:0 0 20px}
.rex-template-layout {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:20px;align-items:start}
.rex-template-editor,.rex-template-preview {padding:23px;min-width:0}
.rex-template-heading {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}
.rex-template-heading h2 {font-size:17px}.rex-template-heading p {font-size:13px;color:var(--rex-muted);margin:5px 0 0;line-height:1.6}
.rex-template-editable {font-size:13px;color:#5d7c4c;border-radius:5px;background:#eaf2e3;padding:4px 8px;flex:none}
.rex-template-editor .field label {font-size:13px;font-weight:500;color:var(--rex-ink)}
.rex-template-editor textarea {height:350px;min-height:200px;resize:vertical;font:12px/1.8 Consolas,monospace;background:#fafbf7;border:1px solid #d7e1cb;border-radius:8px;color:#36583e;padding:13px;max-width:100%;width:100%}
.rex-template-help {font-size:13px;color:var(--rex-muted);line-height:1.7;margin:19px 0 10px}
.rex-template-fields {display:flex;flex-wrap:wrap;gap:7px}
.rex-template-fields button {min-height:44px;max-width:100%;overflow-wrap:anywhere;border:1px solid #d9e2cd;border-radius:6px;padding:8px 10px;background:#f2f6eb;color:#5c7750;font-size:13px;cursor:pointer}
.rex-template-fields button:hover {background:#e5edd9}
.rex-template-sections {margin:20px 0;border-block:1px solid var(--rex-line);padding:9px 0}
.rex-template-sections summary {display:flex;align-items:center;min-height:44px;font-size:13px;color:#617c4a;cursor:pointer;gap:8px}
.rex-template-sections summary:before {content:'▸';font-size:13px}.rex-template-sections[open] summary:before {content:'▾'}
.rex-template-sections>p {font-size:13px;color:var(--rex-muted);line-height:1.7}
.rex-template-sections input:not([type=checkbox]) {min-height:44px;width:100%;font-size:13px;border-radius:7px}
.rex-template-check {display:flex;gap:10px;align-items:flex-start;min-height:44px;margin:14px 0;color:var(--rex-muted);font-size:13px;line-height:1.7;cursor:pointer}
.rex-template-check input {margin-top:2px;width:18px;height:18px;accent-color:var(--rex-accent);flex:none}
.rex-template-sections>.btn {margin:0 0 12px}
.rex-template-error {color:#a22d38;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.rex-template-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.rex-template-preview .rex-template-heading {margin-bottom:22px}
.rex-message-bubble {white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;border:1px solid #dce5cf;background:#eaf1e0;color:#4c6b3d;font:12px/1.9 'Segoe UI',Arial,sans-serif;border-radius:9px;padding:24px;margin:0 0 16px;max-width:100%;min-height:220px}
.rex-template-preview>.btn {width:100%;margin-top:9px;font-size:13px}
.rex-template-preview>.rex-template-whatsapp {background:#eaf2ef;border-color:#eaf2ef}
.rex-template-copy-state {font-size:13px;color:var(--rex-muted);line-height:1.7}
.rex-template-preview.whatsapp-format .rex-message-bubble {max-width:370px;margin-inline:auto;border-radius:12px 12px 3px 12px;box-shadow:0 0 0 9px #f0f3ea;padding-top:50px;position:relative}
.rex-template-preview.whatsapp-format .rex-message-bubble:before {content:'Prévia de conversa · sem envio';position:absolute;top:12px;left:20px;right:20px;font-size:13px;color:#708364;border-bottom:1px solid #cfdbbd;padding-bottom:8px}
.rex-approved .playlist-dialog:not([open]) {display:none !important}
.rex-approved .playlist-dialog[open] {max-width:94vw;width:680px;max-height:min(90dvh,920px);display:flex;flex-direction:column;gap:12px;overflow:hidden;box-sizing:border-box;border:1px solid var(--rex-line);border-radius:16px;padding:24px;background:var(--rex-surface);color:var(--rex-ink)}
.rex-approved .playlist-dialog[open] .delivery-access-card {background:#edf3e5;border-radius:9px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0;max-height:min(52vh,520px);margin:0}
.rex-approved .playlist-dialog[open] .playlist-body {white-space:pre-wrap;overflow-wrap:anywhere;padding:20px;background:transparent;border-radius:0;color:#47663c;font-size:13px;line-height:1.8;margin:0}
.rex-approved .playlist-dialog[open] .row-actions {flex:0 0 auto;position:static;bottom:auto;z-index:auto;margin:0;padding-top:10px;padding-bottom:max(8px,env(safe-area-inset-bottom,0));background:var(--rex-surface)}
.rex-approved .playlist-dialog .delivery-epg {padding:0 20px 16px;border-top:1px dashed #c5d6b5;color:#47663c}
.rex-approved .playlist-dialog .delivery-epg-head {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 8px}
.rex-approved .playlist-dialog .delivery-epg-head strong {font-size:13px;color:#3f5a36}
.rex-approved .playlist-dialog .delivery-epg textarea {width:100%;min-width:0;box-sizing:border-box;border:1px solid #c5d6b5;border-radius:8px;background:#f7faf2;color:#47663c;padding:10px 12px;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}
.rex-approved .playlist-dialog .delivery-epg .card-note {margin:8px 0 0;font-size:12px;color:#5d7a52}
.rex-approved .playlist-dialog .delivery-epg .btn {font-size:12px;padding:8px 12px;min-height:36px}
.rex-approved .delivery-review h2 {font-size:20px;letter-spacing:-.5px}.rex-approved .delivery-recipient {font-size:13px;font-weight:600}.rex-approved .delivery-review-note {font-size:13px;line-height:1.7;color:var(--rex-muted)}
html[data-theme=dark] .rex-approved .rex-message-bubble,html[data-theme=dark] .rex-approved .rex-template-editor textarea {background:#263e2d;border-color:#43593d;color:#d8e6cf}
html[data-theme=dark] .rex-approved .rex-template-notice {background:#3a2b1a;border-color:#755020;color:#ffe1b6}
@media(max-width:950px) {.rex-template-layout {grid-template-columns:1fr}.rex-template-controls {grid-template-columns:1fr}.rex-template-preview {margin-top:0}}
@media(max-width:860px) {.rex-template-controls {gap:12px;margin-top:23px}.rex-template-notice {padding:14px;font-size:13px}.rex-template-editor,.rex-template-preview {padding:19px 16px}.rex-template-heading {gap:10px}.rex-template-heading h2 {font-size:16px}.rex-template-editor textarea {font-size:14px;height:330px}.rex-template-fields {gap:6px}.rex-template-fields button {font-size:13px;padding:8px}.rex-template-sections input:not([type=checkbox]) {font-size:16px}.rex-template-actions>.btn {width:100%}.rex-message-bubble {padding:20px 16px;font-size:13px}.rex-approved .playlist-dialog[open] {padding:18px}.rex-approved .playlist-dialog[open] .playlist-body {padding:15px}.rex-approved .playlist-dialog[open] .delivery-epg {padding:0 15px 14px}.rex-approved .playlist-dialog[open] .delivery-epg-head {flex-direction:column;align-items:stretch}}
@supports not (display:grid) {.rex-template-layout,.rex-template-controls {display:block}.rex-template-controls>*,.rex-template-layout>* {margin-bottom:20px}}

/* Rex identity release: shared management surfaces, with no business logic changes. */
.rex-approved {font-size:14px;line-height:1.55}
.rex-approved .sidebar {border-right:1px solid #29313c}
.rex-approved .sidebar .brand {padding:0;gap:12px}
.rex-approved .sidebar .brand-logo {width:74px;height:56px;object-fit:contain}
.rex-approved .sidebar .brand-name {font-size:19px;letter-spacing:-.5px}
.rex-approved .sidebar .brand-sub {font-size:10px;letter-spacing:1px}
.rex-approved .sidebar .nav-item {font-size:14px}
.rex-approved .sidebar .nav-label {font-size:12px;letter-spacing:1.2px;font-weight:600}
.rex-approved .btn,.rex-approved .field label {font-size:14px}
.rex-approved input,.rex-approved select,.rex-approved textarea {font-size:16px;min-height:44px;max-width:100%}
.rex-approved .field small,.rex-approved .card-note,.rex-approved .page-sub {font-size:14px;line-height:1.6}
.rex-approved .rex-intro h1 {font-size:32px;font-weight:700;letter-spacing:-1px}
.rex-approved .rex-intro p {font-size:14px}
.rex-approved .rex-eyebrow {color:var(--rex-muted);font-size:11px;font-weight:700;letter-spacing:1.25px}
.rex-approved .rex-pulse .rex-eyebrow {color:#ffe1b6}
.rex-approved .rex-pulse {background:#2c1c12;border:1px solid #7c491e;color:#fff2df}
.rex-approved .rex-pulse strong {color:#ffb64f}
.rex-approved .rex-pulse-link {color:#ffe1b6;border-color:#7c491e}
.rex-approved .rex-owner {background:#fff1d9;color:#562b08;border:1px solid #efce9c}
.rex-approved .rex-owner .rex-eyebrow,.rex-approved .rex-owner p,.rex-approved .rex-owner a {color:#713c14}
.rex-approved .rex-revenue-value {color:var(--rex-ink)}
.rex-approved .rex-panel-top>.rex-icon {background:#fff1d9;color:#8f470a;border-color:#efce9c}
.rex-approved .rex-chart-key i {background:#b95c00}
.rex-approved .rex-header {box-shadow:none}
.rex-approved .rex-breadcrumb {font-size:14px}
.rex-approved .rex-search {width:min(340px,46vw)}
.rex-approved .rex-search input {font-size:14px}
.rex-approved .data-table {font-size:14px}
.rex-approved .data-table th {font-size:12px;letter-spacing:.5px}
.rex-approved .card {padding:24px}
.rex-approved .content>section.card {margin-bottom:20px}
.rex-approved .content .card-title {font-size:20px}
.rex-approved .content .field {min-width:0}
.rex-approved .table-wrap {max-width:100%;overflow:auto}
.rex-approved .row-actions {flex-wrap:wrap;gap:8px}
.rex-approved .btn-primary {font-weight:700}
.rex-approved .btn:active {transform:translateY(1px)}
.rex-approved .btn:disabled {cursor:not-allowed;opacity:.65}
.rex-approved [hidden] {display:none!important}
.rex-approved .rex-auth {min-height:100vh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,1fr);background:var(--rex-surface)}
.rex-auth-story {padding:64px 10%;background:#0d121b;display:flex;flex-direction:column;justify-content:space-between;gap:70px;position:relative;color:#fff;border-top:5px solid #f28c18}
.rex-auth-story .brand {gap:16px}.rex-auth-story .brand-logo {width:120px;height:82px;object-fit:contain}
.rex-auth-story .brand-name {font-size:25px;color:#fff;font-weight:750}.rex-auth-story .brand-sub {color:#aab4c3}
.rex-auth-story h1 {font-size:clamp(32px,3.4vw,54px);line-height:1.1;letter-spacing:-1.8px;color:#fff;margin:22px 0}
.rex-auth-story p {color:#c0c8d6;font-size:17px;line-height:1.8}
.rex-auth-story .rex-eyebrow {color:#ffb64f}
.rex-auth-signature {display:flex;align-items:center;gap:12px;font-size:13px;color:#aab4c3}
.rex-auth-signature i {width:28px;height:3px;background:#f28c18}
.rex-auth .auth-card {width:min(440px,100%);margin:auto;padding:36px;border:0;box-shadow:none;background:transparent}
.rex-auth .page-title {font-size:30px;margin:12px 0}
.rex-auth .form {gap:24px;margin-top:32px}
.rex-auth .btn-block {width:100%;display:flex;justify-content:space-between}
.rex-auth-help {font-size:13px;line-height:1.7;color:var(--rex-muted);margin-top:26px}
html[data-theme="dark"] .rex-approved .rex-owner {background:#392613;color:#ffe1b6;border-color:#755020}
html[data-theme="dark"] .rex-approved .rex-owner p,html[data-theme="dark"] .rex-approved .rex-owner a,html[data-theme="dark"] .rex-approved .rex-owner .rex-eyebrow {color:#ffe1b6}
@media(max-width:1100px) and (min-width:861px) {
  .rex-approved .shell .content {padding-left:24px;padding-right:24px}
  .rex-approved .rex-header {margin-left:-24px;margin-right:-24px;padding:0 24px}
  .rex-approved .rex-intro {align-items:flex-start;flex-wrap:wrap}
  .rex-approved .rex-search {width:200px}
}
@media(max-width:860px) {
  .rex-approved .rex-auth {grid-template-columns:1fr;min-height:100vh}
  .rex-auth-story {padding:24px;gap:20px}
  .rex-auth-story>div:nth-child(2),.rex-auth-signature {display:none}
  .rex-auth-story .brand-logo {width:88px;height:56px}
  .rex-auth .auth-card {padding:32px 24px;margin:16px auto auto}
  .rex-approved .rex-intro h1 {font-size:28px}
  .rex-approved .rex-intro-actions {flex-wrap:wrap}
  .rex-approved .card {padding:18px}
  .rex-approved .content .form-grid {grid-template-columns:1fr}
  .rex-approved .rex-client-toolbar {flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce) {
  .rex-approved *, .rex-approved *::before, .rex-approved *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}



.rex-approved .rex-owner .rex-eyebrow {overflow-wrap:anywhere;letter-spacing:.7px}
html[data-theme="dark"] .rex-approved :focus-visible{outline-color:#ffb64f}
html[data-theme="dark"] .rex-approved .mobile-nav [aria-current="page"]{color:#ffb64f}

.rex-approved .brand-logo{background:transparent;border:0;padding:0}
.rex-approved .sidebar .rex-official-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin-bottom:16px}
.rex-approved .sidebar .rex-official-brand .brand-logo{width:154px;height:90px}
.rex-approved .sidebar .rex-official-brand .brand-text{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.rex-approved .sidebar .rex-official-brand .brand-name,
.rex-approved .sidebar .rex-official-brand .brand-sub{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.rex-approved .sidebar .rex-official-brand .rex-2fa-badge{position:static;width:fit-content;max-width:100%}

/* rex-visual-pass-20261123 */
.rex-approved .btn{transition:background .12s ease,border-color .12s ease,color .12s ease}
.rex-approved .btn:hover{transform:none}
.rex-approved .card,.rex-approved .management-client-card{box-shadow:0 1px 3px #0001}
@media (max-width: 860px) {
  body.rex-approved dialog#playlist-dialog.playlist-dialog[open] .delivery-access-card {
    max-height: calc(100dvh - 230px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow: auto;
  }
  body.rex-approved dialog#playlist-dialog.playlist-dialog[open] .row-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--rex-surface);
  }
  body.rex-approved dialog#playlist-dialog.playlist-dialog[open] .row-actions > .btn,
  body.rex-approved dialog#playlist-dialog.playlist-dialog[open] .row-actions > a.btn {
    width: 100%;
    min-height: 44px;
    margin: 0;
  }
}
