#agency-clients-view{display:none;color:#e9edf5;padding-bottom:28px}#dashboard-view.dash-nav-clientes #agency-clients-view{display:block}#dashboard-view.dash-nav-clientes .dash-hero,#dashboard-view.dash-nav-clientes #dashboard-boards-list,#dashboard-view.dash-nav-clientes #global-demands-section,#dashboard-view.dash-nav-clientes #filmmaker-agenda-section,#dashboard-view.dash-nav-clientes #conta-view{display:none!important}
#app-mobile-nav [data-nav=clientes][hidden],.agency-desktop-link[hidden],.agency-account-message[hidden]{display:none!important}.agency-clients-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 24px}.agency-clients h2{font-size:30px;font-weight:750;letter-spacing:-.03em;margin:3px 0 8px}.agency-eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;color:#b7a6ff}.agency-muted{font-size:14px;line-height:1.5;color:#a8b3c5;margin:0}.agency-secondary,.agency-primary,.agency-desktop-link{min-height:44px;border-radius:13px;padding:11px 15px;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}.agency-secondary,.agency-desktop-link{background:#202633;border:1px solid #3b4352;color:#e9edf5}.agency-primary{background:#7659ed;border:1px solid #947dff;color:white;width:100%;margin-top:18px;font-weight:650}.agency-secondary:hover,.agency-desktop-link:hover{background:#2b3443}.agency-primary:hover{background:#684bdc}.agency-clients button:focus-visible,.agency-clients input:focus-visible,.agency-account-overlay button:focus-visible{outline:3px solid #b4a2ff;outline-offset:3px}.agency-search{box-sizing:border-box;width:100%;min-height:48px;border-radius:14px;border:1px solid #3b4352;background:#161d29;color:#fff;padding:12px 15px;margin-bottom:16px;font:inherit}.agency-search::placeholder{color:#a8b3c5}.agency-client-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:16px 0 20px}.agency-client-card{border:1px solid #343d4b;border-radius:20px;padding:20px;background:#151c27;min-width:0}.agency-client-top{display:flex;gap:12px;align-items:center}.agency-client-top>div{min-width:0}.agency-client-avatar{display:grid;place-items:center;width:44px;height:44px;flex:none;background:#302849;color:#cabcff;border-radius:14px;font-weight:750}.agency-client-card h3{font-size:17px;font-weight:700;overflow-wrap:anywhere;line-height:1.3;margin:0 0 5px}.agency-client-email{font-size:13px;color:#a8b3c5;margin:16px 0 12px;overflow-wrap:anywhere}.agency-client-segment{font-size:12px;background:#252d3b;color:#c5cede;padding:5px 9px;border-radius:8px;display:inline-block}.agency-desktop-link{margin-bottom:16px}
html.agency-client-open{overflow:hidden}.agency-account-overlay{position:fixed;inset:0;z-index:2147483000;background:#f7f8fb;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);box-sizing:border-box;color:#172334}.agency-account-bar{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid #e1e6ed;background:#fff;flex:none}.agency-account-bar .agency-secondary{background:#f1eefc;border-color:#e4defb;color:#5842a6;white-space:nowrap}.agency-account-bar strong{font:600 14px system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agency-account-frame{display:block;flex:1;min-height:0;width:100%;border:0;background:white;padding-bottom:env(safe-area-inset-bottom,0px)}.agency-account-message{padding:12px 18px;font:14px/1.5 system-ui;color:#526073;background:#f7f8fb;flex:none}
@media(max-width:639px){.agency-clients-head{align-items:flex-start;flex-direction:column;gap:14px}.agency-clients h2{font-size:27px}.agency-client-grid{grid-template-columns:1fr}.agency-account-bar{padding:8px;gap:8px}.agency-account-bar strong{max-width:36%;font-size:12px}.agency-account-bar .agency-secondary{font-size:12px;padding:10px}.agency-desktop-link{display:none}.agency-clients-head .agency-secondary{width:100%}#app-mobile-nav .am-nav-item[data-nav=clientes]{flex:1;min-width:0}}
@media(prefers-color-scheme:light){.agency-clients{color-scheme:dark}}

.agency-back-boards{margin-bottom:12px}@media(max-width:639px){.agency-back-boards{display:none}}

/* Two dashboard collections: marketing boards and existing CRM accounts. */
.agency-marketing-head{margin:4px 0 16px;color:#e9edf5}
.agency-marketing-head h2,.agency-dashboard-head h2{margin:0 0 5px;font-size:21px;line-height:1.25;font-weight:750;letter-spacing:-.02em;color:#e9edf5}
.agency-dashboard-clients{margin-top:30px;padding-top:24px;border-top:1px solid #29313d;color:#e9edf5}
.agency-dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.agency-dashboard-head>div{min-width:0}
.agency-dashboard-head .agency-secondary{flex:none;font-size:12px}
.agency-dashboard-status{margin:0 0 14px;font-size:12px}
.agency-dashboard-grid{display:grid;grid-template-columns:1fr;gap:12px}
.agency-dashboard-card{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0;min-height:160px;width:100%;margin:0;padding:18px;border:1px solid #304c52;border-radius:18px;background:linear-gradient(145deg,#18383f,#141e2b);color:#f1f5f9;text-align:left;font-family:inherit;cursor:pointer;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.agency-dashboard-card:hover{border-color:#5bb4af;background:linear-gradient(145deg,#20454b,#192838)}
.agency-dashboard-card-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.agency-dashboard-card .agency-client-avatar{width:36px;height:36px;border-radius:12px;font-size:13px;background:#295057;color:#baf1e8}
.agency-dashboard-card .agency-client-segment{max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;font-size:10px;background:#ffffff0d;color:#b5d7db}
.agency-dashboard-card-name{display:block;font-size:16px;line-height:1.35;font-weight:700;overflow-wrap:anywhere}
.agency-dashboard-card-action{display:block;margin-top:auto;font-size:12px;font-weight:600;color:#9ee1d7}
.agency-dashboard-card:focus-visible,.agency-dashboard-head button:focus-visible{outline:3px solid #a4e9dc;outline-offset:3px}
.agency-dashboard-card{scroll-margin-top:80px;scroll-margin-bottom:calc(7rem + env(safe-area-inset-bottom,0px))}
.agency-dashboard-head button:disabled{opacity:.55;cursor:wait}
#agency-marketing-head[hidden],#agency-dashboard-clients[hidden]{display:none!important}
#dashboard-view.dash-nav-clientes #agency-marketing-head,#dashboard-view.dash-nav-clientes #agency-dashboard-clients,
#dashboard-view.dash-nav-demandas #agency-marketing-head,#dashboard-view.dash-nav-demandas #agency-dashboard-clients,
#dashboard-view.dash-nav-agenda #agency-marketing-head,#dashboard-view.dash-nav-agenda #agency-dashboard-clients,
#dashboard-view.dash-nav-conta #agency-marketing-head,#dashboard-view.dash-nav-conta #agency-dashboard-clients{display:none!important}
@media(min-width:360px){.agency-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:768px){.agency-dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){.agency-dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:639px){.agency-marketing-head{margin-bottom:12px}.agency-marketing-head h2,.agency-dashboard-head h2{font-size:18px}.agency-marketing-head .agency-muted,.agency-dashboard-head .agency-muted{font-size:12px}.agency-dashboard-clients{margin-top:24px;padding-top:20px}.agency-dashboard-grid{gap:10px}.agency-dashboard-card{border-radius:14px;padding:14px;min-height:154px;gap:10px}.agency-dashboard-card-name{font-size:14px}.agency-dashboard-card-top{gap:6px}.agency-dashboard-head .agency-secondary{padding:10px;font-size:11px}}

/* Client identity and separate account actions. All colors preserve dark surfaces. */
.agency-dashboard-search{margin:2px 0 12px;min-height:46px;font-size:16px}
.agency-client-notice:empty{display:none}.agency-client-notice{margin:0 0 14px;color:#b6efd6;font-size:13px;line-height:1.5}
.agency-dashboard-card{position:relative;padding:0;gap:0;cursor:default;background:linear-gradient(145deg,var(--client-bg,#18383f),var(--client-bg-end,#141e2b));border-color:var(--client-border,#304c52)}
.agency-dashboard-card:hover{background:linear-gradient(145deg,var(--client-bg,#18383f),var(--client-bg-end,#141e2b));border-color:var(--client-accent,#5bb4af)}
.agency-dashboard-open{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:14px;box-sizing:border-box;min-width:0;width:100%;min-height:190px;padding:18px;margin:0;border:0;border-radius:inherit;background:transparent;color:inherit;font-family:inherit;text-align:left;cursor:pointer;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.agency-dashboard-card .agency-client-avatar{position:relative;width:48px;height:48px;font-size:15px;background:var(--client-avatar,#295057);color:var(--client-accent,#baf1e8);overflow:hidden}
.agency-client-avatar.has-logo{background:#fff!important;border:1px solid #ffffff26;box-sizing:border-box}
.agency-client-logo{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain;padding:3px;box-sizing:border-box}
.agency-dashboard-card .agency-dashboard-card-action{padding-right:44px;color:var(--client-accent,#9ee1d7);line-height:1.4;min-height:18px}
.agency-dashboard-card .agency-client-segment{background:#ffffff0d;color:#e1e8ec}
.agency-client-delete{display:grid;place-items:center;position:absolute;right:7px;bottom:7px;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:#00000021;color:#c9d2dc;cursor:pointer;touch-action:manipulation}
.agency-client-delete:hover{background:#a6283638;color:#ffb6bd}
.agency-client-card{position:relative;padding-bottom:70px;border-color:var(--client-border,#343d4b);background:linear-gradient(145deg,var(--client-bg,#151c27),var(--client-bg-end,#151c27))}
.agency-client-card .agency-client-avatar{position:relative;overflow:hidden;background:var(--client-avatar,#302849);color:var(--client-accent,#cabcff)}
.agency-dashboard-open:focus-visible,.agency-client-delete:focus-visible,.agency-dashboard-search:focus-visible{outline:3px solid var(--client-accent,#b4a2ff);outline-offset:3px}
html.agency-deletion-open{overflow:hidden}
.agency-deletion-overlay{position:fixed;inset:0;z-index:2147483100;display:flex;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top,0px)) 16px max(16px,env(safe-area-inset-bottom,0px));box-sizing:border-box;background:#05070bd9;color:#edf2f7}
.agency-deletion-box{box-sizing:border-box;max-width:460px;width:100%;max-height:calc(100% - 16px);overflow-y:auto;padding:24px;border-radius:22px;border:1px solid #414958;background:#171e29;box-shadow:0 24px 80px #0008;font-family:inherit}
.agency-deletion-box h2{font-size:22px;font-weight:750;line-height:1.3;overflow-wrap:anywhere;margin:0 0 14px}
.agency-deletion-identity{font-size:14px;font-weight:650;overflow-wrap:anywhere;margin:14px 0;color:#e5edf7}
.agency-deletion-billing{color:#f2d4a4;font-size:13px;line-height:1.5;margin:0 0 18px}
.agency-deletion-label{display:block;font-size:13px;line-height:1.5;margin:18px 0 8px;color:#c7d1df}
.agency-deletion-box .agency-search{margin:0;font-size:16px}
.agency-deletion-error{margin:12px 0;color:#ffafb8;font-size:13px;line-height:1.5}
.agency-deletion-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:20px}
.agency-delete-confirm{min-height:44px;padding:11px 15px;border-radius:13px;border:1px solid #f77681;background:#b93245;color:#fff;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.agency-delete-confirm:disabled,.agency-deletion-actions button:disabled{opacity:.5;cursor:default}
.agency-deletion-box button:focus-visible,.agency-deletion-box input:focus-visible{outline:3px solid #b4a2ff;outline-offset:3px}
@media(max-width:639px){.agency-dashboard-open{padding:15px;min-height:190px;gap:12px}.agency-dashboard-card .agency-client-avatar{width:46px;height:46px}.agency-dashboard-card-top{gap:8px}.agency-deletion-box{padding:20px}.agency-deletion-box h2{font-size:20px}}

/* Connection checks are read-only and scoped to the customer's linked instances. */
.agency-connection-note{margin:-4px 0 16px;font-size:11px;line-height:1.5;color:#a8b3c5;overflow-wrap:anywhere}
.agency-client-connections{display:flex;flex-direction:column;gap:7px;min-width:0;width:100%;font-size:11px;line-height:1.4;color:#e1e8ef}
.agency-connection-row{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.agency-connection-name{max-width:100%;overflow-wrap:anywhere;font-size:10px;color:#bdc7d4}
.agency-connection-badge{display:inline-flex;align-items:center;gap:5px;max-width:100%;box-sizing:border-box;padding:3px 6px;border-radius:7px;background:#0003;color:#c4cdda;overflow-wrap:anywhere}
.agency-connection-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.agency-connection-badge[data-status=connected]{color:#a5f3cb;background:#133f2bbb}
.agency-connection-badge[data-status=disconnected],.agency-connection-badge[data-status=missing]{color:#ffc0c5;background:#571d28bb}
.agency-connection-badge[data-status=connecting]{color:#ffe2a0;background:#49360fbb}
.agency-connection-empty{font-size:11px;color:#b5c1cf;overflow-wrap:anywhere}
.agency-client-card .agency-client-connections{margin-top:14px}
.agency-dashboard-open{min-height:252px}
@media(min-width:640px){.agency-connection-row{flex-direction:row;justify-content:space-between;align-items:center;gap:8px}.agency-connection-name{flex:1}.agency-connection-badge{flex:none}}
