/* Linx Center · shared interaction and surface system · 2026-10-19.
   Brand/provider colors and the application layout remain owned by their modules. */
:root {
  color-scheme: light;
  --linx-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --linx-canvas: #f5f5f7;
  --linx-surface: #ffffff;
  --linx-soft: #f0f1f4;
  --linx-hover: #e8eaee;
  --linx-ink: #202126;
  --linx-muted: #626874;
  --linx-line: #e0e2e7;
  --linx-line-strong: #b8c7d1;
  --linx-glass: rgb(255 255 255 / 88%);
  --linx-nav: #142732;
  --linx-nav-glass: rgb(20 39 50 / 94%);
  --linx-shadow: 0 2px 4px rgb(16 35 47 / 3%), 0 12px 32px rgb(16 35 47 / 5%);
  --linx-floating-shadow: 0 12px 48px rgb(16 35 47 / 16%), 0 2px 8px rgb(16 35 47 / 6%);
  --linx-focus: #24728e;
  --linx-radius: 20px;
  --linx-control-radius: 12px;
  --linx-sheet-radius: 24px;
  --linx-motion: 180ms cubic-bezier(.2,.8,.2,1);
  --crm-canvas: var(--linx-canvas);
  --crm-surface: var(--linx-surface);
  --crm-soft: var(--linx-soft);
  --crm-hover: var(--linx-hover);
  --crm-ink: var(--linx-ink);
  --crm-muted: var(--linx-muted);
  --crm-line: var(--linx-line);
  --crm-line-strong: var(--linx-line-strong);
  --crm-shadow: var(--linx-shadow);
  --crm-radius: var(--linx-radius);
  --crm-nav: var(--linx-nav);
  --ink: var(--linx-ink);
  --muted: var(--linx-muted);
  --line: var(--linx-line);
  --bg: var(--linx-canvas);
  --radius: var(--linx-control-radius);
  --shadow: var(--linx-shadow);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --linx-canvas: #141518;
  --linx-surface: #202226;
  --linx-soft: #292c31;
  --linx-hover: #34383f;
  --linx-ink: #f3f4f6;
  --linx-muted: #b7bdc7;
  --linx-line: #3a3e46;
  --linx-line-strong: #6b7280;
  --linx-glass: rgb(32 34 38 / 92%);
  --linx-nav: #0e2029;
  --linx-nav-glass: rgb(14 32 41 / 95%);
  --linx-shadow: 0 2px 5px rgb(0 0 0 / 9%), 0 12px 32px rgb(0 0 0 / 12%);
  --linx-floating-shadow: 0 14px 52px rgb(0 0 0 / 32%), 0 2px 8px rgb(0 0 0 / 14%);
  --linx-focus: #7ccde1;
  --crm-canvas: var(--linx-canvas); --crm-surface: var(--linx-surface);
  --crm-soft: var(--linx-soft); --crm-hover: var(--linx-hover);
  --crm-ink: var(--linx-ink); --crm-muted: var(--linx-muted);
  --crm-line: var(--linx-line); --crm-line-strong: var(--linx-line-strong);
  --crm-shadow: var(--linx-shadow); --crm-nav: var(--linx-nav);
}
html, body, button, input, select, textarea {
  font-family: var(--linx-font);
  font-optical-sizing: auto;
}
body { background: var(--linx-canvas); color: var(--linx-ink); }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:is(h1,h2,h3) { text-wrap: balance; }
h1 { letter-spacing: -.035em; }
h2 { letter-spacing: -.025em; }
h3 { letter-spacing: -.015em; }
:is(.eyebrow,.chat-eyebrow,.tiny-label) { letter-spacing: .08em; }
:is(.stat-value,.dashboard-value,.chat-time,.chat-recording-time) { font-variant-numeric: tabular-nums; }
/* Keep the navigation as a single dark structural surface in both themes. */
#workspace :is(.sidebar,.workspace-utility) {
  background: var(--linx-nav-glass);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
}
#workspace .workspace-utility { border-bottom: 1px solid rgb(255 255 255 / 7%); }
#workspace .main-nav .nav-item { border-radius: var(--linx-control-radius); transition: background var(--linx-motion), color var(--linx-motion); }
#workspace .main-nav .nav-item.active { box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%); }
#workspace :is(.workspace-tools,.header-actions) { gap: 8px; }
/* Shared controls: no changes to action order, compact chat height or pointer semantics. */
:is(.button,.icon-button,.theme-toggle,.app-refresh,.password-toggle,.chat-button,.chat-icon-button,.chat-send-button,.chat-camera-button) {
  border-radius: var(--linx-control-radius);
  transition: background-color var(--linx-motion), border-color var(--linx-motion), box-shadow var(--linx-motion), opacity var(--linx-motion), scale 120ms ease-out;
  touch-action: manipulation;
}
:is(.button,.icon-button,.theme-toggle,.app-refresh,.chat-button,.chat-icon-button,.chat-send-button):not(:disabled):not([aria-disabled="true"]):active,
.linx-pressable.linx-pressed {
  scale: .97;
  transition-duration: 40ms;
}
:is(button,a,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 3px solid var(--linx-focus);
  outline-offset: 3px;
}
:is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]) {
  border-radius: var(--linx-control-radius);
  transition: border-color var(--linx-motion), box-shadow var(--linx-motion), background-color var(--linx-motion);
}
:is(.search-field,.chat-search,.command-search):focus-within { box-shadow: 0 0 0 3px color-mix(in srgb,var(--linx-focus) 15%,transparent); }
/* Dashboard, directories, settings, imports and billing share the same material. */
#workspace :is(.panel,.stat-card,.review-card,.settings-card,.connection-card,.status-panel,.area-overview) {
  border-radius: var(--linx-radius);
  border-color: var(--linx-line);
  box-shadow: var(--linx-shadow);
}
#workspace :is(.toolbar,.sales-filters,.settings-tabs,.directory-tabs) { border-radius: 14px; }
#workspace :is(.settings-tab,.directory-tabs button) { border-radius: 10px; }
#workspace .table-scroll { border-radius: 16px; }
#workspace table { font-variant-numeric: tabular-nums; }
#workspace tbody tr { transition: background-color var(--linx-motion); }
#workspace :is(.empty-state,.status-panel) { color: var(--linx-muted); }
#workspace :is(.badge,.server-badge) { border-radius: 8px; }
/* Sheets are elevated; their content stays opaque for readability. */
.dialog, .chat-dialog {
  border-radius: var(--linx-sheet-radius);
  box-shadow: var(--linx-floating-shadow);
  border-color: var(--linx-line);
  background: var(--linx-surface);
  color: var(--linx-ink);
}
.dialog::backdrop { background: rgb(7 18 27 / 48%); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.chat-modal-backdrop { background: rgb(7 18 27 / 48%); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.dialog-header, .chat-dialog-head {
  background: var(--linx-glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom-color: var(--linx-line);
}
.dialog-body { line-height: 1.55; }
:is(.dialog,.chat-dialog) :is(label,.help,.footnote) { line-height: 1.5; }
:is(.dialog,.chat-dialog) :is(.alert,.chat-alert,.confirmation-result,.review-summary) { border-radius: 14px; }
:is(.dialog,.chat-dialog) :is(input,select,textarea) { min-width: 0; }
/* Local entry feedback follows the source control; JS supplies the origin. */
.linx-entering { transform-origin: var(--linx-origin,50% 25%); animation: linx-surface-enter 220ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes linx-surface-enter { from { opacity: 0; transform: translateY(5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
#workspace :is(.workspace-menu-content,.chat-filter-options), .command-dialog {
  border-radius: 18px;
  box-shadow: var(--linx-floating-shadow);
}
#workspace .chat-filter-options { transform-origin: top left; }
#workspace :is(.chat-channel-filter:last-child,.chat-filter-more) .chat-filter-options { transform-origin: top right; }
/* Atendimento: preserve brand green, compact status/assignee and provider badges. */
#workspace .linx-chat-app {
  font-family: var(--linx-font);
  --chat-bg: #ffffff; --chat-surface: #f2f6f5; --chat-history: #edf3f1;
  --chat-ink: #19332e; --chat-muted: #576f67; --chat-line: #dce7e2;
  --chat-accent: #167862; --chat-accent-hover: #105e4d; --chat-accent-soft: #e0f1e9;
  --chat-out: #daf0e3; --chat-shadow: var(--linx-shadow);
}
[data-theme="dark"] #workspace .linx-chat-app {
  --chat-bg: #152724; --chat-surface: #1d322e; --chat-history: #10221e;
  --chat-ink: #e6f1eb; --chat-muted: #a2bdb1; --chat-line: #314c42;
  --chat-accent: #53c6a3; --chat-accent-hover: #75d7b8; --chat-accent-soft: #25473a;
  --chat-out: #234a39;
}
#workspace .linx-chat-app :is(.chat-search,.chat-filter-trigger,.chat-filter) { border-radius: 13px; }
#workspace .linx-chat-app .chat-search { background: var(--chat-surface); }
#workspace .linx-chat-app .chat-conversation { border-radius: 15px; transition: background-color var(--linx-motion), border-color var(--linx-motion); }
#workspace .linx-chat-app :is(.chat-composer-row,.chat-attachment-panel) { border-radius: 18px; }
#workspace .linx-chat-app .chat-composer-row { background: var(--chat-bg); box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%); }
#workspace .linx-chat-app .chat-composer-row:focus-within { border-color: var(--chat-accent); }
#workspace .linx-chat-app :is(.chat-info,.chat-queue) { background: var(--chat-bg); }
#workspace .linx-chat-app .chat-filter-options { background: var(--chat-bg); box-shadow: var(--linx-floating-shadow); }
#workspace .linx-chat-app .chat-button-accent { color: #ffffff !important; background: #167862; border-color: #167862; }
#workspace .linx-chat-app .chat-button-accent:hover:not(:disabled) { background: #105e4d; }
#workspace .linx-chat-app .chat-send-button { color: #ffffff !important; background: #167862; }
/* Login, invitations and return pages use the same system. */
.login-screen, .login-shell { background: var(--linx-canvas); color: var(--linx-ink); }
.login-shell { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card {
  border-radius: var(--linx-sheet-radius);
  background: var(--linx-surface);
  border: 1px solid var(--linx-line);
  box-shadow: var(--linx-shadow);
  color: var(--linx-ink);
}
.login-card :is(p,label) { line-height: 1.55; }
.login-card input { background: var(--linx-soft); color: var(--linx-ink); border-color: var(--linx-line); }
.login-card .login-logo { object-fit: contain; }
.linx-rules { background: var(--linx-canvas); color: var(--linx-ink); }
.linx-rules main { width: min(760px,calc(100% - 32px)); margin: 32px auto; padding: 0; }
.linx-rules article { background: var(--linx-surface); border-color: var(--linx-line); border-radius: var(--linx-sheet-radius); box-shadow: var(--linx-shadow); }
.linx-rules header small { color: var(--linx-muted); }
.linx-rules footer a { background: var(--linx-soft); border-color: var(--linx-line); border-radius: var(--linx-control-radius); color: var(--linx-ink); }
/* Touch targets grow in general forms without undoing the compact chat toolbar. */
@media (pointer:coarse) {
  :is(.dialog,.login-card,.settings-tab-panel) :is(.button,.icon-button,input:not([type=checkbox]):not([type=radio]),select) { min-height: 44px; }
  :is(.dialog,.login-card,.settings-tab-panel) :is(input,select,textarea) { font-size: 16px; }
}
@media(max-width:760px) {
  #workspace :is(.panel,.stat-card,.review-card,.settings-card,.status-panel) { border-radius: 16px; }
  /* Existing full-height mobile dialogs retain their edge-to-edge geometry. */
  .dialog, .chat-dialog { border-radius: 0; }
  .login-card { border-radius: 20px; }
  .linx-rules article { padding: 20px; }
}

/* Visual refinement: shared surfaces, hierarchy and conversation readability. */
#workspace :is(#dashboard-direct,#dashboard-network) > .dashboard-card[data-provider] {
  border-radius:24px; padding:24px; box-shadow:0 4px 24px rgb(0 0 0 / 4%);
}
#workspace .dashboard-card[data-provider] .dashboard-card-heading { margin-bottom:20px; }
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-number {
  font-size:32px; font-weight:650; letter-spacing:-.045em; line-height:1.15;
}
#workspace #dashboard-total {
  border-radius:24px; padding:30px 28px; gap:28px;
  box-shadow:0 8px 28px rgb(15 25 35 / 12%); margin-bottom:24px;
}
#workspace #dashboard-total h2 { font-size:13px; font-weight:500; letter-spacing:0; }
#workspace #dashboard-total .dashboard-number { font-size:clamp(30px,3.1vw,44px); font-weight:650; letter-spacing:-.045em; line-height:1.15; }
#workspace #dashboard-total .help { font-size:11px; }
#workspace .dashboard-heading h2 { font-size:24px; font-weight:650; letter-spacing:-.035em; }
#workspace :is(.panel,.settings-card,.status-panel,.review-card,.area-overview) { background:var(--linx-surface); }
#workspace :is(.toolbar,.settings-tabs,.directory-tabs) { background:var(--linx-soft); padding:8px; }
:is(.dialog,.login-card,.settings-card,.settings-tab-panel) :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
:is(.dialog,.login-card) .linx-country-trigger {
  background:var(--linx-soft); color:var(--linx-ink); border:1px solid var(--linx-line);
  border-radius:12px; min-height:44px;
}
#dialog .dialog-header { padding:24px; }
#dialog .dialog-header h2 { font-size:24px; font-weight:650; letter-spacing:-.03em; }
#dialog .dialog-body { padding:24px; }
#workspace .linx-chat-app {
 --chat-bg:#ffffff; --chat-surface:#f2f3f5; --chat-history:#f0f2f5;
 --chat-ink:#202b30; --chat-muted:#626e76; --chat-line:#dfe4e8;
}
[data-theme="dark"] #workspace .linx-chat-app {
 --chat-bg:#202529; --chat-surface:#292f34; --chat-history:#171c20;
 --chat-ink:#eef3f5; --chat-muted:#adb9c1; --chat-line:#3a444c;
}
#workspace .linx-chat-app .chat-conversation { border:1px solid transparent; border-radius:18px; margin-block:4px; }
#workspace .linx-chat-app .chat-conversation.selected { background:var(--chat-accent-soft); border-color:var(--chat-accent); }
#workspace .linx-chat-app .chat-bubble { border-radius:18px; padding:12px 15px 9px; box-shadow:0 2px 5px rgb(0 0 0 / 4%); }
#workspace .linx-chat-app .chat-bubble.outbound { border-radius:18px; border-color:transparent; }
#workspace .linx-chat-app .chat-message-text { font-size:14px; line-height:1.55; }
#workspace .linx-chat-app .chat-bubble-meta { color:var(--chat-muted); font-size:10px; }
#workspace .linx-chat-app .chat-composer-row { border-radius:22px; border:1px solid var(--chat-line); background:var(--chat-surface); padding:6px; }
#workspace .linx-chat-app .chat-send-button { border-radius:50%; }
@media(min-width:761px) {
 #workspace .linx-chat-app .chat-thread-head { padding-block:18px; }
 .login-card { padding:36px; }
}
@media(max-width:760px) {
 #workspace :is(#dashboard-direct,#dashboard-network)>.dashboard-card[data-provider] { padding:20px; border-radius:20px; }
 #workspace #dashboard-total { padding:22px; border-radius:20px; }
 #workspace #dashboard-total .dashboard-number { font-size:32px; }
 #dialog .dialog-header,#dialog .dialog-body { padding:20px; }
 #workspace .linx-chat-app .chat-bubble { padding:10px 13px 8px; }
}

/* Solid fallbacks for unsupported blur and explicit accessibility preferences. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  #workspace :is(.sidebar,.workspace-utility) { background: var(--linx-nav); }
  .dialog-header,.chat-dialog-head { background: var(--linx-surface); }
}
@media(prefers-reduced-transparency:reduce) {
  #workspace :is(.sidebar,.workspace-utility) { background: var(--linx-nav); -webkit-backdrop-filter:none; backdrop-filter:none; }
  .dialog-header,.chat-dialog-head { background:var(--linx-surface); -webkit-backdrop-filter:none; backdrop-filter:none; }
  .dialog::backdrop,.chat-modal-backdrop { background:rgb(7 18 27 / 72%); -webkit-backdrop-filter:none; backdrop-filter:none; }
  #workspace .chat-filter-options { background:var(--chat-bg); -webkit-backdrop-filter:none; backdrop-filter:none; }
}
@media(prefers-contrast:more) {
  :root { --linx-line:#8195a2; --linx-muted:#344d5d; }
  :root[data-theme="dark"] { --linx-line:#8298a5; --linx-muted:#d5e0e7; }
  #workspace .linx-chat-app { --chat-line:#7e9a8f; --chat-muted:#355d4d; }
  [data-theme="dark"] #workspace .linx-chat-app { --chat-line:#829e90; --chat-muted:#d1e4d8; }
  :is(.button,.chat-button,.icon-button,.chat-filter-trigger) { border-width:2px; }
  #workspace :is(.sidebar,.workspace-utility) { background:var(--linx-nav); }
}
@media(prefers-reduced-motion:reduce) {
  .linx-entering { animation:none !important; }
  :is(.button,.icon-button,.theme-toggle,.app-refresh,.password-toggle,.chat-button,.chat-icon-button,.chat-send-button,.chat-camera-button,.nav-item,.chat-conversation,input,select,textarea) { transition:none !important; }
  :is(.button,.icon-button,.theme-toggle,.app-refresh,.chat-button,.chat-icon-button,.chat-send-button):active, .linx-pressable.linx-pressed { scale:1; filter:brightness(.9); }
}
/* Reserve room for the desktop search field before shortcuts can collide. */
@media(min-width:601px) and (max-width:1480px) {
  #workspace .workspace-utility #home-shortcuts>.home-shortcut { width:38px; min-width:38px; padding:7px; justify-content:center; }
  #workspace .workspace-utility #home-shortcuts :is(.home-shortcut-copy,#reload-label) { display:none; }
}

.login-card .login-logo:not(.logo-light) { background:var(--linx-nav); border-radius:18px; padding:8px; box-sizing:border-box; }
:is(.dialog,.login-card) .linx-country-trigger { border-color:var(--linx-line); border-radius:var(--linx-control-radius); color:var(--linx-ink); background:var(--linx-surface); }
.linx-rules header img { background:var(--linx-nav); padding:6px; border-radius:14px; box-sizing:border-box; }

#workspace .header-secondary-actions { border-radius:18px; box-shadow:var(--linx-floating-shadow); }

/* Shared mobile entry and login: preserve the established Linx surfaces and blue action color. */
#login-screen,.entry-screen{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0;min-height:100svh;padding:16px;}
#login-screen[hidden]{display:none!important}
#login-screen>.login-alternate{width:auto;max-width:100%;margin:0;min-height:36px;align-self:center;}
#login-screen .login-card,.entry-screen .login-card{box-sizing:border-box;flex:none;width:100%;max-width:420px;min-width:0;margin:0;padding:24px;}
#login-screen .login-card>*{min-width:0;max-width:100%;}
#login-screen .login-card .login-brand-row,.entry-screen .login-brand-row{margin-bottom:12px;align-items:center;}
#login-screen .login-card .login-logo,.entry-screen .login-logo{width:64px;height:64px;max-width:100%;margin:0;object-fit:contain;}
#login-screen .login-card h1,.entry-screen h1{font-size:24px;line-height:1.2;letter-spacing:-.6px;margin:4px 0 10px;overflow-wrap:break-word;}
#login-screen .login-card>.muted{font-size:13px;line-height:1.45;margin:0 0 12px;}
#login-screen .login-card label{font-size:13px;line-height:1.4;margin-top:10px;}
#login-screen .login-card :is(input,select){box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;font-size:16px;}
#login-screen .login-card .login-password-field input{padding-right:52px;}
#login-screen .login-card .login-security{margin-top:10px;}
#login-screen .login-card .login-security-status{line-height:1.4;margin:6px 0;}
#login-screen .login-card .form-error:empty,#login-screen .login-card .login-security-status:empty{display:none;}
#login-screen .login-card .form-error{font-size:13px;margin:8px 0;}
#login-screen .login-card .button.full{min-height:44px;margin-top:10px;}
#login-screen .login-card>.help{font-size:12px;line-height:1.4;margin:10px 0 0;}
#login-screen .login-card .login-alternate{font-size:12px;min-height:40px;margin-top:6px;white-space:normal;}
body.entry-page{margin:0;background:var(--linx-canvas);color:var(--linx-ink);font-family:var(--linx-font);}
.entry-screen .login-card{background:var(--linx-surface);color:var(--linx-ink);border:1px solid var(--linx-line);box-shadow:var(--linx-shadow);}
.entry-screen .eyebrow{color:var(--linx-muted);font-size:12px;letter-spacing:.1em;margin:0 0 6px;}
.entry-screen .entry-intro{color:var(--linx-muted);font-size:14px;line-height:1.5;margin:0 0 20px;}
.entry-roles{display:grid;gap:12px;min-width:0;}
.entry-role{display:flex;align-items:center;gap:12px;min-height:76px;min-width:0;padding:14px;text-decoration:none;color:var(--linx-ink);background:var(--linx-soft);border:1px solid var(--linx-line);border-radius:12px;}
.entry-role:hover{border-color:#466cdf;background:var(--linx-hover);}
.entry-role:focus-visible,.entry-admin a:focus-visible{outline:3px solid var(--linx-focus);outline-offset:3px;}
.entry-role-icon{display:grid;place-items:center;width:36px;height:36px;flex:none;color:#466cdf;}
.entry-role-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.entry-role-label{flex:1;min-width:0;}
.entry-role strong{display:block;font-size:16px;line-height:1.3;}
.entry-role small{display:block;margin-top:4px;color:var(--linx-muted);font-size:12px;line-height:1.4;}
.entry-admin{margin:16px 0 0;text-align:center;}
.entry-admin a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;color:var(--linx-muted);font-size:12px;text-decoration:none;}
@media(max-width:480px){
 #login-screen,.entry-screen{padding:12px;}
 #login-screen .login-card,.entry-screen .login-card{padding:20px;border-radius:20px;}
}
@media(max-width:350px){
 #login-screen,.entry-screen{padding:8px;}
 #login-screen .login-card,.entry-screen .login-card{padding:12px;}
 #login-screen .login-card h1,.entry-screen h1{font-size:22px;}
}
@media(max-height:680px){
 #login-screen,.entry-screen{justify-content:flex-start;padding-top:10px;padding-bottom:10px;}
 #login-screen .login-card .login-logo{width:48px;height:48px;}
 #login-screen .login-card .login-brand-row{margin-bottom:8px;}
}
/* Compact phones keep the sign-in action visible; errors and challenge can still scroll. */
@media(max-width:480px){
 #login-screen .login-card{padding:16px;}
 #login-screen .login-card .login-logo{width:48px;height:48px;}
 #login-screen .login-card .login-brand-row{margin-bottom:8px;}
 #login-screen .login-card .eyebrow{font-size:10px;line-height:1.4;margin-bottom:4px;}
 #login-screen .login-card h1{margin-top:2px;margin-bottom:8px;}
 #login-screen .login-card label{margin-top:8px;}
 #login-screen .login-card>.help{display:none;}
}

/* Shared access geometry. Identical block in both entry stylesheets. */
body:is(:has(.entry-screen),:has(#login-screen:not([hidden])),:has(#customer-login:not([hidden]))){--access-gutter:12px;--access-pad:20px;--access-top:16px;}
#login-screen.access-shell,.entry-screen.access-shell{display:flex;align-items:center;justify-content:flex-start;gap:0;min-height:100svh;padding:var(--access-top) max(var(--access-gutter),env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(var(--access-gutter),env(safe-area-inset-left));}
#login-screen .access-card,.entry-screen .access-card,#customer-login.access-card{box-sizing:border-box;width:100%;max-width:420px;min-width:0;margin:0;padding:var(--access-pad);border-radius:20px;}
#customer-login.access-card{width:calc(100% - 2 * var(--access-gutter));margin:var(--access-top) auto max(24px,env(safe-area-inset-bottom));}
#login-screen .access-card .access-back,.entry-screen .access-back-slot,#customer-login .access-back{display:flex;align-items:center;height:36px;min-height:36px;margin:0;padding:0;color:inherit;opacity:.72;font-size:12px;line-height:18px;text-decoration:none;}
#login-screen .access-card .access-brand,.entry-screen .access-brand,#customer-login .access-brand{display:flex;align-items:center;justify-content:flex-start;gap:12px;height:48px;margin:8px 0 16px;font-size:13px;font-weight:650;line-height:20px;}
#login-screen .access-card .access-logo,.entry-screen .access-logo,#customer-login .access-logo{display:block;flex:0 0 48px;width:48px;height:48px;max-width:48px;margin:0;padding:0;border:0;border-radius:12px;object-fit:contain;background:#10262b;}
#login-screen .access-card .access-brand .theme-toggle{margin-left:auto;flex:none;}
#login-screen .access-card .access-title,.entry-screen .access-title,#customer-login .access-title{font-size:24px;font-weight:750;line-height:1.2;letter-spacing:-.6px;margin:0 0 8px;}
#login-screen .access-card .access-intro,.entry-screen .access-intro,#customer-login .access-intro{font-size:13px;line-height:20px;min-height:40px;margin:0 0 16px;color:var(--linx-muted,var(--lc-muted));}
@media(min-width:700px){body:is(:has(.entry-screen),:has(#login-screen:not([hidden])),:has(#customer-login:not([hidden]))){--access-top:40px;--access-pad:24px;}}
@media(max-width:350px){body:is(:has(.entry-screen),:has(#login-screen:not([hidden])),:has(#customer-login:not([hidden]))){--access-gutter:8px;--access-pad:12px;}#login-screen .access-card .access-title,.entry-screen .access-title,#customer-login .access-title{font-size:22px;}}

/* Prevent collapsing top margins and reserve the same scrollbar space on every access page. */
html:is(:has(.entry-screen),:has(#login-screen:not([hidden])),:has(#customer-login:not([hidden]))){scrollbar-gutter:stable;}
body:is(:has(.entry-screen),:has(#login-screen:not([hidden])),:has(#customer-login:not([hidden]))){display:flow-root;}

/* Center a common access frame, keeping its header stable between roles. */
body:is(:has(.entry-screen),:has(#login-screen:not([hidden])),:has(#customer-login:not([hidden]))){--access-frame:680px;--access-vertical:16px;}
#login-screen.access-shell,.entry-screen.access-shell{min-height:100svh;justify-content:flex-start;padding-top:max(var(--access-vertical),env(safe-area-inset-top));padding-bottom:max(var(--access-vertical),env(safe-area-inset-bottom));}
#login-screen .access-card,.entry-screen .access-card,#customer-login.access-card{min-height:min(var(--access-frame),calc(100svh - 2 * var(--access-vertical)));margin-block:auto;}
body:has(#customer-login:not([hidden])){box-sizing:border-box;display:flex;flex-direction:column;min-height:100svh;padding:max(var(--access-vertical),env(safe-area-inset-top)) max(var(--access-gutter),env(safe-area-inset-right)) max(var(--access-vertical),env(safe-area-inset-bottom)) max(var(--access-gutter),env(safe-area-inset-left));}
#customer-login.access-card{flex:none;width:100%;margin:auto;}
.entry-screen .access-card{display:flex;flex-direction:column;}
.entry-screen .access-card .access-back-slot,.entry-screen .access-card .access-brand{flex:none;}
.entry-screen .access-card .entry-roles{margin-block:auto;}
.entry-screen .access-card .entry-admin{margin-bottom:0;}
@media(min-width:700px){body:is(:has(.entry-screen),:has(#login-screen:not([hidden])),:has(#customer-login:not([hidden]))){--access-frame:720px;}}
@media(max-width:350px){body:is(:has(.entry-screen),:has(#login-screen:not([hidden])),:has(#customer-login:not([hidden]))){--access-frame:640px;}}

/* The public entry presents the brand and two clear destinations. */
.entry-screen.access-shell{justify-content:center;}
.entry-screen .access-card{min-height:0;width:100%;max-width:480px;padding:32px 24px;gap:28px;}
.entry-screen .entry-identity{display:flex;justify-content:center;align-items:center;flex:none;margin:0;}
.entry-screen .entry-identity img{display:block;width:160px;height:160px;object-fit:contain;}
.entry-screen .access-card .entry-roles{margin:0;display:grid;gap:14px;}
.entry-screen .entry-role{min-height:88px;}
#reseller-login-form .login-alternate{align-self:center;font-size:13px;padding:10px;}
@media(max-width:350px){.entry-screen .access-card{padding:24px 16px;gap:22px}.entry-screen .entry-identity img{width:136px;height:136px}}
@media(max-height:540px) and (min-width:600px){.entry-screen .access-card{max-width:640px;gap:18px;padding:20px}.entry-screen .entry-identity img{width:100px;height:100px}.entry-screen .entry-roles{grid-template-columns:1fr 1fr}}


/* Linx Center: operation dialogs. Loaded after linx-design.css.
   Deliberately excludes login, continuous chat, attachment viewer and command palette. */
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal){
  --dialog-surface:var(--linx-surface,var(--lc-surface,#fff));--dialog-soft:var(--linx-soft,var(--lc-soft,#f0f1f4));
  --dialog-ink:var(--linx-ink,var(--lc-text,#202126));--dialog-muted:var(--linx-muted,var(--lc-muted,#626874));
  --dialog-line:var(--linx-line,var(--lc-border,#e0e2e7));--dialog-focus:var(--linx-focus,var(--lc-focus,#24728e));
  --dialog-primary:#466cdf;--dialog-primary-hover:#365bc8;--dialog-gap:20px;--dialog-pad:24px;
  /* Legacy modules read these names outside #workspace as well. */
  --surface:var(--dialog-surface);--surface-soft:var(--dialog-soft);--panel:var(--dialog-surface);
  --panel-2:var(--dialog-soft);--border:var(--dialog-line);--line:var(--dialog-line);
  --text:var(--dialog-ink);--ink:var(--dialog-ink);--muted:var(--dialog-muted);
  --accent:var(--dialog-primary);--primary:var(--dialog-primary);--brand:var(--dialog-primary);
  --chat-bg:var(--dialog-surface);--chat-surface:var(--dialog-soft);--chat-line:var(--dialog-line);
  --chat-ink:var(--dialog-ink);--chat-muted:var(--dialog-muted);--chat-accent:var(--dialog-primary);--chat-accent-hover:var(--dialog-primary-hover);
  --fb-paper:var(--dialog-surface);--fb-line:var(--dialog-line);--fb-ink:var(--dialog-ink);
  --fb-accent:var(--dialog-primary);--fb-tint:var(--dialog-soft);
  box-sizing:border-box;color:var(--dialog-ink);background:var(--dialog-surface);
  border:1px solid var(--dialog-line);border-radius:var(--linx-sheet-radius,24px);
  font-family:var(--linx-font,system-ui,sans-serif);font-size:14px;line-height:1.55;
  max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);
  margin:auto;box-shadow:var(--linx-floating-shadow,0 20px 64px #0003);
  overflow-wrap:anywhere;overscroll-behavior:contain;
}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(input,select,textarea,button,a,summary){box-sizing:border-box;max-width:100%}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.fb-modal)::backdrop{background:rgb(9 18 28 /56%);backdrop-filter:blur(5px)}

/* A single stable header/body contract, including fichas opened from Atendimento. */
body #dialog.dialog{width:min(800px,calc(100vw - 32px));padding:0;overflow:hidden}
body #dialog.dialog[open],body #customer-dialog.lc-dialog:not(.lc-chat-dialog)[open],body .private-notices-dialog[open],body .content-requests-dialog[open],body .panel-purchase-dialog[open],body .fb-modal[open]{display:flex;flex-direction:column}
body #customer-dialog.lc-dialog:not(.lc-chat-dialog){width:min(620px,calc(100vw - 32px));padding:0;overflow:hidden}
body #customer-push-invite.lc-dialog{width:min(480px,calc(100vw - 32px))}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal)>:is(header,.dialog-header,.chat-dialog-head,.fb-modal-head){
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex:none;
  position:relative;top:auto;z-index:2;margin:0;padding:var(--dialog-pad);
  max-height:min(34dvh,220px);overflow:auto;border-bottom:1px solid var(--dialog-line);
  background:var(--dialog-surface);color:var(--dialog-ink);
}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal)>:is(header,.dialog-header,.chat-dialog-head,.fb-modal-head)>div{min-width:0;flex:1}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.dialog-header h2,header>h2,.chat-dialog-head h3,.fb-modal-head h2){margin:0;font-size:22px;font-weight:700;line-height:1.35;letter-spacing:-.4px;color:var(--dialog-ink)}
body #dialog.dialog .dialog-header .eyebrow{margin:0 0 6px;color:var(--dialog-muted);font-size:11px;line-height:1.5;letter-spacing:1px}
body .chat-modal-backdrop>.chat-dialog .chat-dialog-head p{margin:7px 0 0;font-size:13px;line-height:1.5}
body #dialog.dialog #dialog-body,body #customer-dialog.lc-dialog:not(.lc-chat-dialog)>#customer-dialog-body,body .chat-modal-backdrop>.chat-dialog>.chat-dialog-body,body .fb-modal>.fb-modal-body,body .content-requests-dialog>.content-requests-detail{
  flex:1 1 auto;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;
  padding:var(--dialog-pad);scroll-padding-block:24px;scrollbar-width:thin;-webkit-overflow-scrolling:touch;
}
body #dialog.dialog #dialog-alert,body .chat-modal-backdrop>.chat-dialog>.chat-dialog-alert{flex:none;max-height:22dvh;overflow:auto;margin:16px var(--dialog-pad) 0;border-radius:12px}
body #dialog.dialog #dialog-body>form>.action-row.end:last-child{position:static;bottom:auto;margin:24px 0 0;padding:18px 0 0;border-top:1px solid var(--dialog-line);background:transparent}
body #dialog:has(.recharge-form,.reseller-plan-form){width:min(920px,calc(100vw - 32px))}

/* Close controls use the same touch target and never squeeze the heading. */
body #dialog.dialog #close-dialog,
body #customer-dialog.lc-dialog:not(.lc-chat-dialog)>header>#customer-dialog-close,
body .private-notices-dialog>header>button,
body .chat-modal-backdrop>.chat-dialog>.chat-dialog-head>.chat-icon-button,
body .fb-modal>.fb-modal-head>button{
  display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;
  min-width:44px;min-height:44px;margin:0;padding:10px;border:1px solid var(--dialog-line);
  border-radius:var(--linx-control-radius,12px);background:var(--dialog-soft);color:var(--dialog-ink);
  font-size:24px;line-height:1;text-decoration:none;
}

/* Form controls: neutral surfaces, legible help and consistent spacing. */
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(form,fieldset,.form-grid,.field,.form-field,.chat-field,.fb-field,.purchase-field){min-width:0;max-width:100%}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.field,.form-field,.chat-field,.fb-field,.purchase-field){gap:7px;font-size:13px;line-height:1.5}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(label,.field-label,.chat-label){color:var(--dialog-ink);font-size:13px;line-height:1.5}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea){
  min-width:0;max-width:100%;min-height:44px;padding:11px 13px;
  border:1px solid var(--dialog-line);border-radius:var(--linx-control-radius,12px);
  background:var(--dialog-soft);color:var(--dialog-ink);font:inherit;font-size:14px;line-height:1.5;
  scroll-margin-block:24px;
}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) textarea{resize:vertical;min-height:112px}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.helper,.help,.field-help,.form-help,.chat-help,.purchase-footnote,.field small,.form-field small,.fb-field small,.purchase-field small,.lc-help){display:block;margin-top:6px;font-size:12px;line-height:1.6;color:var(--dialog-muted);font-weight:400;overflow-wrap:anywhere}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(input,textarea)::placeholder{color:var(--dialog-muted);opacity:1}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) input[type=file]::file-selector-button{min-height:44px;max-width:100%;margin-right:10px;border:1px solid var(--dialog-line);border-radius:8px;padding:8px 12px;background:var(--dialog-surface);color:var(--dialog-ink);font:inherit;white-space:normal}

/* Neutral secondary actions and the established CRM blue for primary actions. */
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.button,.tab,.lc-button,.lc-text-button,.chat-button,.chat-text-button,.fb-button){
  min-height:44px;max-width:100%;border-radius:var(--linx-control-radius,12px);padding:11px 15px;
  font-family:inherit;font-size:14px;line-height:1.45;font-weight:600;white-space:normal;
  text-align:center;text-decoration:none;overflow-wrap:anywhere;
}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.button.secondary,.button.ghost,.button.text,.lc-button:not(.lc-primary),.lc-text-button,.chat-button:not(.chat-button-accent),.chat-text-button,.fb-button:not(.fb-primary)){
  border:1px solid var(--dialog-line);background:var(--dialog-soft);color:var(--dialog-ink);
}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.button.primary,.lc-primary,.chat-button-accent,.fb-primary){background:var(--dialog-primary);border:1px solid var(--dialog-primary);color:#fff!important}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.button.primary,.lc-primary,.chat-button-accent,.fb-primary):hover:not(:disabled){background:var(--dialog-primary-hover);border-color:var(--dialog-primary-hover)}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--dialog-focus);outline-offset:3px}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(button,input,select,textarea):disabled{cursor:not-allowed;opacity:.55}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.action-row,.lc-actions,.purchase-actions){display:flex;flex-wrap:wrap;align-items:center;gap:10px}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.action-row,.lc-actions,.purchase-actions)>:is(button,.button,.lc-button){min-width:0}

/* Semantic shared sections added by the operation renderers. */
body #dialog.dialog .crm-dialog-form{display:grid;gap:18px;margin:0;min-width:0}
body #dialog.dialog .crm-dialog-form>label{margin:0}
body #dialog.dialog .crm-dialog-form>.crm-dialog-actions{margin-top:6px}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-section{min-width:0}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-section+.crm-dialog-section{margin-top:18px;padding-top:18px;border-top:1px solid var(--dialog-line)}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-section-title{margin:0 0 12px;font-size:16px;line-height:1.45;font-weight:700;color:var(--dialog-ink)}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.crm-dialog-actions,.crm-dialog-navigation){display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:20px 0 0;min-width:0}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.crm-dialog-actions,.crm-dialog-navigation)>:is(button,a){min-width:0;min-height:44px;text-decoration:none;max-width:100%}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-navigation{padding-top:18px;border-top:1px solid var(--dialog-line)}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-navigation>:is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;border:1px solid var(--dialog-line);border-radius:12px;background:var(--dialog-soft);color:var(--dialog-ink);font:inherit;font-weight:600;line-height:1.45;white-space:normal}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-summary{min-width:0;padding:16px;border:1px solid var(--dialog-line);border-radius:16px;background:var(--dialog-soft);color:var(--dialog-ink)}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-meta{margin:8px 0 0;color:var(--dialog-muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-history{display:grid;gap:12px;min-width:0;margin-top:20px;padding-top:20px;border-top:1px solid var(--dialog-line)}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-disclosure{min-width:0;margin-top:16px;border:1px solid var(--dialog-line);border-radius:14px;padding:0 16px;background:var(--dialog-surface)}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-disclosure>summary{min-height:48px;padding:13px 0;font-size:14px;font-weight:600;color:var(--dialog-ink);cursor:pointer;line-height:1.5}
body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) .crm-dialog-disclosure[open]{padding-bottom:16px}

/* The first return action belongs directly below the heading, without an empty divider. */
body #dialog.dialog #dialog-body>.crm-dialog-navigation:first-child,
body #customer-dialog.lc-dialog:not(.lc-chat-dialog)>#customer-dialog-body>.crm-dialog-navigation:first-child,
body .chat-modal-backdrop>.chat-dialog>.chat-dialog-body>.crm-dialog-navigation:first-child,
body .fb-modal>.fb-modal-body>.crm-dialog-navigation:first-child{margin-top:0;padding-top:0;border-top:0}

/* Shared data and long identifiers must fit the dialog rather than its viewport. */
body #dialog.dialog :is(.detail-grid,.form-grid){grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
body #dialog.dialog :is(.data-field,.detail-hero,.direct-message-recipient,.direct-message-preview){min-width:0;max-width:100%;color:var(--dialog-ink)}
body #dialog.dialog :is(.data-field small,.data-field strong,.detail-meta,.payment-link,.pix-code,.quote-line,.direct-message-recipient strong){overflow-wrap:anywhere;min-width:0}
body #dialog.dialog :is(.panel-result,.panel-operation,.direct-message-recipient,.direct-message-preview){border-color:var(--dialog-line);background:var(--dialog-soft)}
body #dialog.dialog .direct-message-recipient strong{color:var(--dialog-ink)}
body #dialog.dialog .direct-message-choices{min-width:0}
body #dialog.dialog .tabs{gap:5px;padding:5px;border:1px solid var(--dialog-line);border-radius:13px;background:var(--dialog-soft);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
body #dialog.dialog .tab{flex:none;border:0;padding:11px 14px;color:var(--dialog-muted);background:transparent;white-space:nowrap}
body #dialog.dialog .tab.active{background:var(--dialog-surface);color:var(--dialog-ink);box-shadow:0 1px 4px #0001}

/* Customer instruction steps retain their content and provider/app identity. */
body #customer-dialog.lc-dialog:not(.lc-chat-dialog) :is(.lc-access-guide,.lc-install-guide){background:var(--dialog-soft);color:var(--dialog-ink);border-color:var(--dialog-line);padding:18px;border-radius:16px}
body #customer-dialog.lc-dialog:not(.lc-chat-dialog) .lc-guide-navigation{gap:10px;margin-top:22px;padding-top:18px;border-color:var(--dialog-line)}
body #customer-dialog.lc-dialog:not(.lc-chat-dialog) :is(.lc-guide-navigation,.lc-access-actions)>:is(.lc-button,.lc-text-button){width:100%;min-height:44px;border:1px solid var(--dialog-line);background:var(--dialog-soft);color:var(--dialog-ink);text-decoration:none}
body #customer-push-invite.lc-dialog{padding:28px;overflow:auto}

/* Content request detail uses the same section and scroll contract. */
body .content-requests-dialog{padding:0;overflow:hidden}
body .content-requests-dialog>header>button{min-height:44px;flex:none}
body .content-requests-dialog .content-requests-detail blockquote{border-left-color:var(--dialog-primary);background:var(--dialog-soft);color:var(--dialog-ink)}

/* Own inbox: fixed heading/footer, only the list scrolls. */
body .private-notices-dialog{padding:0;overflow:hidden;width:min(620px,calc(100vw - 32px))}
body .private-notices-dialog>p{flex:none;margin:18px var(--dialog-pad) 0;color:var(--dialog-muted);font-size:13px}
body .private-notices-dialog>.private-notices-list{flex:1 1 auto;min-height:0;overflow:auto;margin:0;padding:18px var(--dialog-pad);scrollbar-width:thin;overscroll-behavior:contain}
body .private-notices-dialog>footer{flex:none;padding:16px var(--dialog-pad);border-top:1px solid var(--dialog-line);background:var(--dialog-surface)}
body .private-notices-dialog>footer>button{width:100%}
body .private-notices-dialog .private-notice{border-color:var(--dialog-line);background:var(--dialog-soft);color:var(--dialog-ink)}
body .linx-notifications{padding:var(--dialog-pad);overflow:auto}
body .linx-notifications>h2{position:sticky;top:calc(-1 * var(--dialog-pad));z-index:2;margin:calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad)) 16px;padding:var(--dialog-pad);border-bottom:1px solid var(--dialog-line);background:var(--dialog-surface);font-size:22px;line-height:1.35;color:var(--dialog-ink)}
body .linx-notifications .notification-actions{position:static;margin-top:20px;padding-top:16px;border-top:1px solid var(--dialog-line);background:var(--dialog-surface)}
body .linx-notifications :is(.notification-bulk,.notification-device-controls){flex-wrap:wrap;gap:10px}
body .linx-notifications :is(.notification-bulk,.notification-device-controls)>button{flex:1 1 110px;min-width:0}
body .linx-notifications .notification-device{background:var(--dialog-soft);border-color:var(--dialog-line)}
body .linx-notifications .notification-device.is-current{border-color:var(--dialog-primary)}
body .linx-notifications .notification-current{color:var(--dialog-primary)}

/* Panel purchase keeps the provider tint in its identity header, not action colors. */
body .panel-purchase-dialog{padding:0;position:fixed;overflow:hidden}
body .panel-purchase-dialog>.purchase-close{position:absolute;top:16px;right:16px;float:none;margin:0;z-index:3;border-radius:12px;border-color:var(--dialog-line);background:var(--dialog-soft);color:var(--dialog-ink)}
body .panel-purchase-dialog>div,body .panel-purchase-dialog .panel-purchase{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;min-width:0;overflow:hidden}
body .panel-purchase-dialog .purchase-header{flex:none;max-height:34dvh;overflow:auto;padding:24px 76px 22px 24px}
body .panel-purchase-dialog .purchase-header h2{font-size:22px;line-height:1.35;letter-spacing:-.4px}
body .panel-purchase-dialog .purchase-body{flex:1 1 auto;min-height:0;overflow:auto;padding:var(--dialog-pad);scrollbar-width:thin;overscroll-behavior:contain}
body .panel-purchase-dialog .purchase-error{flex:none;max-height:22dvh;overflow:auto}
body .panel-purchase-dialog .button.primary{background:var(--dialog-primary);border-color:var(--dialog-primary);color:#fff}
body .chat-modal-backdrop>.chat-dialog{height:auto;padding:0;max-width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:1px solid var(--dialog-line);border-radius:24px;box-shadow:var(--linx-floating-shadow);overflow:hidden}
body .chat-modal-backdrop>.chat-dialog :is(.chat-button,.chat-text-button){font-size:14px!important}
body .fb-modal{padding:0;overflow:hidden}
body .fb-modal .fb-modal-body>.fb-button{margin:5px 0}

@media(max-width:600px){
  body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal){--dialog-pad:18px;--dialog-gap:16px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:20px}
  body #dialog.dialog{width:calc(100vw - 20px)}
  body #dialog.dialog #dialog-body,body #customer-dialog.lc-dialog:not(.lc-chat-dialog)>#customer-dialog-body{padding:18px 18px max(20px,env(safe-area-inset-bottom));scroll-padding-block:20px}
  body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal)>:is(header,.dialog-header,.chat-dialog-head,.fb-modal-head){padding:18px;gap:12px}
  body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.dialog-header h2,header>h2,.chat-dialog-head h3,.fb-modal-head h2){font-size:20px}
  body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
  body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(.crm-dialog-actions,.crm-dialog-navigation,.action-row)>:is(button,a){flex:1 1 140px;min-width:0}
  body #dialog.dialog :is(.detail-grid,.form-grid){grid-template-columns:minmax(0,1fr);gap:14px}
  body #dialog.dialog .contact-record-actions>.button{flex:1 1 140px}
  body .chat-modal-backdrop>.chat-dialog{max-width:calc(100vw - 20px);height:auto;max-height:calc(100dvh - 20px);border:1px solid var(--dialog-line);border-radius:20px}
  body .panel-purchase-dialog .purchase-header{padding:20px 72px 20px 18px}
  body .panel-purchase-dialog .purchase-header h2,body .linx-notifications>h2{font-size:20px}
  body .panel-purchase-dialog .purchase-close{top:14px;right:14px}
  body .private-notices-dialog>p{margin-top:14px}
  body #customer-dialog.lc-dialog:not(.lc-chat-dialog) .lc-guide-navigation{grid-template-columns:minmax(0,1fr)}
}
@media(max-height:500px){
  body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal){max-height:calc(100dvh - 12px)}
  body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal)>:is(header,.dialog-header,.chat-dialog-head,.fb-modal-head){padding:12px 16px;max-height:38dvh}
  body #dialog.dialog #dialog-body{padding:16px}
}
@media(prefers-reduced-motion:reduce){
  body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),#customer-push-invite.lc-dialog,.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal) :is(button,a,input,select,textarea){transition:none;scroll-behavior:auto}
}
@media(forced-colors:active){
  body :is(#dialog.dialog,#customer-dialog.lc-dialog:not(.lc-chat-dialog),.private-notices-dialog,.content-requests-dialog,.linx-notifications,.panel-purchase-dialog,.chat-modal-backdrop>.chat-dialog,.fb-modal){border-color:CanvasText}
}

/* Dense facts, consistent whether opened from a directory or Atendimento. */
body #dialog.dialog .detail-grid>.data-field{padding:10px 12px;border:1px solid var(--dialog-line);border-radius:12px;background:var(--dialog-soft)}
body #dialog.dialog .data-field small{font-size:12px;line-height:1.5;margin-bottom:4px;color:var(--dialog-muted)}
body #dialog.dialog .data-field strong{font-size:14px;line-height:1.5;color:var(--dialog-ink)}
body #dialog.dialog #dialog-body>.crm-dialog-navigation:first-child{margin-bottom:18px}
@media (max-width:600px){body #dialog.dialog .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media (max-width:359px){body #dialog.dialog .detail-grid{grid-template-columns:minmax(0,1fr)}}

body #dialog.dialog .crm-dialog-summary+.crm-dialog-section{margin-top:18px}

/* Keep content review readable on tablets as well as wide desktops. */
body .content-requests-dialog{width:min(620px,calc(100vw - 32px))}

/* Contact sheet: compact identity, grouped actions and scoped account filters. */
body #dialog.dialog.contact-sheet{width:min(960px,calc(100vw - 32px))}
body #dialog.dialog .contact-sheet-overview{display:grid;grid-template-columns:minmax(210px,.9fr) minmax(0,1.4fr);gap:20px;align-items:stretch;margin-bottom:18px}
body #dialog.dialog .contact-sheet-identity{padding:16px;margin:0;min-width:0}
body #dialog.dialog .contact-sheet-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
body #dialog.dialog .contact-sheet-identity .contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0}
body #dialog.dialog .contact-sheet-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
body #dialog.dialog .contact-sheet-metrics>.data-field{margin:0;padding:13px 15px;border:1px solid var(--dialog-line);border-radius:12px;background:var(--dialog-soft);min-width:0}
body #dialog.dialog .contact-sheet-metrics small{font-size:12px;line-height:1.45;color:var(--dialog-muted);margin-bottom:6px}
body #dialog.dialog .contact-sheet-metrics strong{font-size:21px;line-height:1.2;color:var(--dialog-ink)}
body #dialog.dialog .contact-sheet-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;margin:0 0 18px}
body #dialog.dialog .contact-sheet-actions>.button{flex:1 1 auto;margin:0;min-height:44px;font-size:12px;padding:10px 12px}
body #dialog.dialog .contact-sheet-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
body #dialog.dialog .contact-sheet-filters>.button{flex:1 1 140px}
body #dialog.dialog .contact-sheet-filters>.button[aria-pressed=true]{border-color:var(--gold,#d6b15f);background:var(--linx-gold-soft,rgba(214,177,95,.14));color:var(--dialog-ink);box-shadow:inset 0 0 0 1px var(--gold,#d6b15f)}
body #dialog.dialog .contact-sheet-account{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:16px;margin:10px 0;border:1px solid var(--provider-line,var(--dialog-line));border-left:3px solid var(--provider-ink,var(--dialog-line));border-radius:12px;background:var(--provider-soft,var(--dialog-soft));align-items:start}
body #dialog.dialog .contact-sheet-account[hidden]{display:none}
body #dialog.dialog .contact-sheet-account>.action-row{flex-direction:column;align-items:stretch;justify-content:flex-start}
body #dialog.dialog .contact-sheet-account .lead-record-main>.badge{justify-self:start}
body #dialog.dialog .contact-sheet-account .lead-record-main>strong{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
body #dialog.dialog .contact-reseller-card{display:block;margin:12px 0;padding:16px;border:1px solid var(--provider-line,var(--dialog-line));border-left:3px solid var(--provider-ink,var(--dialog-line));border-radius:12px;background:var(--provider-soft,var(--dialog-soft))}
body #dialog.dialog .contact-reseller-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0}
body #dialog.dialog .contact-reseller-heading .crm-account-chip{display:inline-flex;align-items:center;justify-content:flex-start;flex:0 1 auto;flex-wrap:wrap;gap:6px;min-height:44px;width:auto;max-width:100%;padding:9px 12px;text-align:left;color:var(--provider-ink,var(--dialog-ink));background:var(--provider-soft,var(--dialog-soft));border-color:var(--provider-line,var(--dialog-line));font-size:13px}
body #dialog.dialog .contact-reseller-details{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-top:12px}
body #dialog.dialog .contact-reseller-details .data-field{margin:0}
@media(max-width:640px){body #dialog.dialog.contact-sheet{width:calc(100vw - 16px)}body #dialog.dialog .contact-sheet-overview{grid-template-columns:minmax(0,1fr);gap:12px}body #dialog.dialog .contact-sheet-actions>.button{flex:1 1 calc(50% - 8px)}body #dialog.dialog .contact-sheet-account{grid-template-columns:minmax(0,1fr);padding:13px}body #dialog.dialog .contact-sheet-account>.action-row{flex-direction:row;align-items:center;justify-content:space-between}body #dialog.dialog .contact-reseller-heading{align-items:stretch;flex-direction:column}body #dialog.dialog .contact-reseller-heading>.button{width:100%}body #dialog.dialog .contact-sheet-metrics>.data-field{padding:12px}body #dialog.dialog .contact-sheet-metrics strong{font-size:19px}}

body #dialog.dialog .contact-sheet-identity:only-child{grid-column:1/-1}

/* Mobile workspace navigation. Atendimento retains its own conversation toolbar. */
@media (max-width:900px) {
  #workspace:has(.mobile-panel-header) { --workspace-bar-height:60px; }
  #workspace .workspace-utility.mobile-panel-header {
    height:var(--workspace-bar-height); min-height:var(--workspace-bar-height); padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));
    display:flex; align-items:center; gap:4px; box-sizing:border-box; overflow:visible;
  }
  #workspace .mobile-panel-header #workspace-brand {
    order:0; flex:0 0 54px; width:54px; min-width:54px; height:44px; justify-content:flex-start; gap:4px; padding:0; border-radius:10px;
  }
  #workspace .mobile-panel-header #workspace-brand .linx-logo { width:32px; height:36px; }
  #workspace .mobile-panel-header #workspace-brand::after {
    content:""; width:14px; height:12px; flex:none;
    background:linear-gradient(#dfd6bf,#dfd6bf) left center/100% 1.5px no-repeat;
    border-block:1.5px solid #dfd6bf; box-sizing:border-box;
  }
  #workspace .mobile-panel-header #workspace-menu-toggle { display:none; }
  #workspace .workspace-utility.mobile-panel-header .workspace-breadcrumb {
    position:static; order:1; display:flex; flex:1 1 0; height:auto; min-width:0; padding:0 2px; overflow:hidden;
  }
  #workspace .mobile-panel-header #workspace-location {
    margin:0; color:#f6f1e7; font-size:clamp(15px,3.8vw,18px); line-height:1.25; font-weight:650;
  }
  #workspace .workspace-utility.mobile-panel-header #home-shortcuts {
    order:2; flex:0 0 auto; width:auto; margin:0; padding:0; gap:0;
  }
  #workspace .mobile-panel-header #workspace-tools { order:3; flex:none; width:auto; margin:0; padding:0; gap:2px; }
  #workspace .mobile-panel-header #workspace-tools-menu { order:4; flex:none; position:relative; margin:0; }
  #workspace .workspace-utility.mobile-panel-header #home-shortcuts>.home-shortcut,
  #workspace .workspace-utility.mobile-panel-header #workspace-tools>button,
  #workspace .mobile-panel-header #workspace-tools-menu>summary {
    display:inline-flex; align-items:center; justify-content:center; flex:none; box-sizing:border-box;
    width:44px; min-width:44px; height:44px; min-height:44px; margin:0; padding:0; gap:6px; overflow:visible;
    border:1px solid transparent; border-radius:13px; color:#f3ead7; background:transparent; box-shadow:none;
  }
  #workspace .workspace-utility.mobile-panel-header #home-shortcuts>.home-shortcut {
    color:var(--linx-gold); border-color:#75613f; background:linear-gradient(140deg,#403725,#29261e);
    box-shadow:inset 0 1px 0 #fff1;
  }
  #workspace .mobile-panel-header #home-shortcuts .home-shortcut-icon { width:20px; height:20px; padding:0; background:none; color:inherit; }
  #workspace .mobile-panel-header #home-shortcuts svg, #workspace .mobile-panel-header #workspace-tools>button svg { width:20px; height:20px; flex:none; }
  #workspace .mobile-panel-header #workspace-tools>.private-notices-launcher { order:2; color:#f3ead7!important; background:transparent!important; border-color:transparent!important; }
  #workspace .mobile-panel-header #workspace-tools>.private-notices-launcher>span:not(.private-notice-count) { display:none; }
  #workspace .mobile-panel-header .private-notice-count:not([hidden]) {
    position:absolute; right:-1px; top:0; min-width:17px; height:17px; padding:0 4px; border-radius:12px;
    box-sizing:border-box; color:var(--linx-on-gold); background:var(--linx-gold); font:700 10px/17px system-ui;
    white-space:nowrap; text-align:center;
  }
  #workspace .mobile-panel-header #workspace-tools-menu[open]>summary { background:#ffffff12; }
  #workspace .mobile-panel-header .mobile-chat-more-icon { color:inherit; font:700 15px/1 system-ui; letter-spacing:1px; }
  #workspace .mobile-panel-header #workspace-menu-content {
    position:absolute; inset-inline-end:0; top:calc(100% + 6px); width:min(260px,calc(100vw - 22px)); max-height:calc(100dvh - 76px); overflow:auto;
    box-sizing:border-box; margin:0; padding:6px; border:1px solid #705f41; border-radius:16px;
    box-shadow:0 14px 42px #0005,inset 0 1px 0 #fff1;
  }
  #workspace .mobile-panel-header #workspace-panel-more>button {
    display:flex; align-items:center; justify-content:flex-start; gap:12px; width:100%; min-height:46px; height:auto; margin:0; padding:9px 12px;
    border:0; border-radius:10px; background:transparent; box-shadow:none; color:#f3ead7; font:600 14px/1.35 var(--linx-font); text-align:left;
  }
  #workspace .mobile-panel-header #workspace-panel-more>button:is(:hover,:focus-visible) { background:#ffffff12; }
  #workspace .mobile-panel-header #workspace-panel-more>button[hidden], #workspace .mobile-panel-header #home-shortcuts>button[hidden] { display:none!important; }
  #workspace .mobile-panel-header #workspace-panel-more>button:is(.theme-toggle,.app-refresh)::after { content:attr(aria-label); }
  #workspace .mobile-panel-header #workspace-panel-more .home-shortcut-icon { display:inline-flex; width:20px; height:20px; padding:0; color:var(--linx-gold); background:transparent; }
  #workspace .mobile-panel-header #workspace-panel-more button svg {
    width:20px; height:20px; flex:none; fill:none; stroke:var(--linx-gold); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
  }
  #workspace .mobile-panel-header #workspace-panel-more .home-shortcut-copy { display:inline; }
  #workspace .mobile-panel-header #workspace-panel-more .home-shortcut-copy strong { color:inherit; font:inherit; }
}
@media (min-width:470px) and (max-width:900px) {
  #workspace .workspace-utility.mobile-panel-header #home-shortcuts>.home-shortcut { width:auto; padding:0 12px; }
  #workspace .workspace-utility.mobile-panel-header #home-shortcuts .home-shortcut-copy { display:inline!important; }
  #workspace .workspace-utility.mobile-panel-header #home-shortcuts .home-shortcut-copy strong { color:inherit; font-size:13px; }
}

/* Correspondências do diretório de clientes */
.crm-directory-match{display:grid;align-content:start;gap:4px;max-width:100%;min-width:0}
.crm-directory-match .crm-contact-chip-list{align-items:center}
.crm-directory-match .crm-match-note{color:var(--crm-ink);font-size:14px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-line}
.crm-contact-more{width:100%;min-width:0}
.crm-contact-more>summary{width:max-content;max-width:100%;padding:8px 2px;cursor:pointer;font-size:13px;font-weight:650;color:var(--crm-accent)}
.crm-contact-more>summary:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:4px}

/* Android app discovery: navigation footer and post-login dialog. */
#workspace .linx-store-entry[hidden]{display:none!important}
#workspace .linx-store-entry{display:none;flex:none;min-width:0;padding:16px 4px 4px;margin-top:12px;border-top:1px solid var(--crm-line);color:var(--crm-muted);font-size:11px;line-height:1.5}
#workspace #navigation-shell:is(.nav-expanded,.menu-open) .linx-store-entry{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
:is(#workspace,#linx-android-suggestion) .linx-play-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:164px;max-width:100%;min-height:44px;border-radius:10px;text-decoration:none;touch-action:manipulation}
:is(#workspace,#linx-android-suggestion) .linx-play-badge img{display:block;width:100%;height:auto;object-fit:contain;filter:none;box-shadow:none}
:is(#workspace,#linx-android-suggestion) .linx-play-badge:focus-visible{outline:2px solid var(--linx-gold,#e9c46a);outline-offset:3px}
body #linx-android-suggestion{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;margin:auto;overflow:auto;border:1px solid var(--linx-line);border-radius:var(--linx-sheet-radius);background:var(--linx-surface);color:var(--linx-ink);box-shadow:var(--linx-floating-shadow);overscroll-behavior:contain}
body #linx-android-suggestion:not([open]){display:none}
body #linx-android-suggestion .dialog-header{padding:24px 24px 20px;gap:12px;align-items:flex-start;background:var(--linx-glass);border-bottom:1px solid var(--linx-line)}
#linx-android-suggestion .eyebrow{margin:0 0 8px;color:var(--linx-muted);font-size:10px;letter-spacing:1.4px;line-height:1.5}
#linx-android-suggestion h2{margin:0;font-size:25px;line-height:1.2;letter-spacing:-.6px;color:var(--linx-ink)}
#linx-android-suggestion .icon-button{flex:none;width:44px;height:44px;min-height:44px;border-radius:12px}
#linx-android-suggestion .dialog-body{padding:24px}
#linx-android-suggestion .linx-android-intro{display:flex;align-items:center;gap:16px}
#linx-android-suggestion .linx-android-mark{flex:none;width:64px;height:64px;object-fit:contain}
#linx-android-suggestion p#linx-android-description{margin:0;font-size:14px;line-height:1.65;color:var(--linx-muted)}
#linx-android-suggestion .linx-android-actions{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin-top:26px}
#linx-android-suggestion .linx-play-badge{width:200px;align-self:center}
#linx-android-suggestion .button.secondary{min-height:44px;width:100%;justify-content:center}
@media(max-width:360px){
 body #linx-android-suggestion .dialog-header{padding:20px 16px 16px}
 #linx-android-suggestion .dialog-body{padding:20px 16px}
 #linx-android-suggestion h2{font-size:22px}
 #linx-android-suggestion .linx-android-intro{gap:12px}
 #linx-android-suggestion .linx-android-mark{width:48px;height:48px}
}
