/* Migo CRM v8.5.21.185 — Account Center + structured Settings */
body.crm-app #accountView{padding-bottom:32px}
body.crm-app .migo-account-center-v185{display:flex;flex-direction:column;gap:18px;max-width:1280px;margin:0 auto;width:100%;color:var(--text,#111827)}
body.crm-app .migo-account-hero-v185{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end;padding:22px 24px;border:1px solid #e5eaf1;border-radius:22px;background:linear-gradient(135deg,#fff 0%,#fbfdfb 58%,rgba(64,160,32,.07) 100%);box-shadow:0 12px 38px rgba(15,23,42,.055)}
body.crm-app .migo-account-hero-v185 h2{margin:4px 0 6px;font-size:28px;line-height:1.08;letter-spacing:-.035em;color:#0f172a}
body.crm-app .migo-account-hero-v185 p{margin:0;max-width:720px;color:#687386;font-size:14px;line-height:1.55}
body.crm-app .migo-account-kicker-v185{display:inline-flex;align-items:center;gap:7px;color:var(--brand-accent,#40A020);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
body.crm-app .migo-account-kicker-v185:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 12%,transparent)}
body.crm-app .migo-account-tenant-v185{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #e7ebf0;border-radius:14px;background:rgba(255,255,255,.78);color:#536174;font-size:12px;font-weight:700;white-space:nowrap}
body.crm-app .migo-account-tenant-v185 svg{width:17px;height:17px;color:var(--brand-accent,#40A020)}
body.crm-app .migo-account-tabs-shell-v185,body.crm-app .migo-settings-tabs-shell-v185{position:sticky;top:0;z-index:24;padding:8px 0;background:linear-gradient(to bottom,var(--bg,#f6f7fb) 72%,transparent)}
body.crm-app .migo-account-tabs-v185,body.crm-app .migo-settings-tabs-v185{display:flex;gap:6px;padding:6px;border:1px solid #e3e8ef;border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 8px 26px rgba(15,23,42,.06);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);overflow:auto;scrollbar-width:none}
body.crm-app .migo-account-tabs-v185::-webkit-scrollbar,body.crm-app .migo-settings-tabs-v185::-webkit-scrollbar{display:none}
body.crm-app .migo-account-tab-v185,body.crm-app .migo-settings-tab-v185{border:0;background:transparent;color:#687386;border-radius:11px;padding:9px 13px;display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap;transition:.18s ease}
body.crm-app .migo-account-tab-v185:hover,body.crm-app .migo-settings-tab-v185:hover{background:#f4f7f5;color:#1d2c24}
body.crm-app .migo-account-tab-v185.is-active,body.crm-app .migo-settings-tab-v185.is-active{background:#101d35;color:#fff;box-shadow:0 6px 16px rgba(15,29,53,.15)}
body.crm-app .migo-account-tab-v185 svg,body.crm-app .migo-settings-tab-v185 svg{width:16px;height:16px;flex:0 0 auto}
body.crm-app .migo-account-content-v185{display:flex;flex-direction:column;gap:16px;min-height:360px}
body.crm-app .migo-account-grid-v185{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(300px,.82fr);gap:16px}
body.crm-app .migo-account-card-v185{border:1px solid #e4e9ef;border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.045);overflow:hidden}
body.crm-app .migo-account-card-head-v185{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px 14px;border-bottom:1px solid #edf0f4}
body.crm-app .migo-account-card-head-v185 h3{margin:0 0 4px;color:#111827;font-size:16px;letter-spacing:-.015em}
body.crm-app .migo-account-card-head-v185 p{margin:0;color:#7a8595;font-size:12px;line-height:1.45}
body.crm-app .migo-account-card-body-v185{padding:19px 20px}
body.crm-app .migo-account-profile-summary-v185{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;align-items:center}
body.crm-app .migo-account-avatar-v185{width:88px;height:88px;border-radius:24px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,var(--brand-accent,#40A020),#111827);color:#fff;font-weight:900;font-size:25px;border:4px solid #fff;box-shadow:0 0 0 1px #dfe6e2,0 10px 24px rgba(15,23,42,.12)}
body.crm-app .migo-account-avatar-v185 img{width:100%;height:100%;object-fit:cover}
body.crm-app .migo-account-profile-copy-v185 strong{display:block;color:#111827;font-size:18px;line-height:1.2}
body.crm-app .migo-account-profile-copy-v185 span{display:block;color:#647084;font-size:13px;margin-top:4px;word-break:break-word}
body.crm-app .migo-account-profile-copy-v185 small{display:inline-flex;margin-top:9px;padding:5px 8px;border-radius:999px;background:#f0f6ee;color:#477044;font-size:11px;font-weight:800}
body.crm-app .migo-account-avatar-actions-v185{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
body.crm-app .migo-account-btn-v185{min-height:38px;border:1px solid #dfe5eb;border-radius:11px;background:#fff;color:#334155;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:.18s ease}
body.crm-app .migo-account-btn-v185:hover{border-color:#c7d1dd;background:#f8fafc;transform:translateY(-1px)}
body.crm-app .migo-account-btn-v185.is-primary{border-color:#101d35;background:#101d35;color:#fff}
body.crm-app .migo-account-btn-v185.is-danger{border-color:#f1c9c9;color:#a33b3b;background:#fffafa}
body.crm-app .migo-account-btn-v185:disabled{opacity:.55;cursor:not-allowed;transform:none}
body.crm-app .migo-account-btn-v185 svg{width:15px;height:15px}
body.crm-app .migo-account-form-v185{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.crm-app .migo-account-form-v185 .is-wide{grid-column:1/-1}
body.crm-app .migo-account-field-v185{display:grid;gap:7px}
body.crm-app .migo-account-field-v185>span{font-size:12px;font-weight:800;color:#3c4757}
body.crm-app .migo-account-field-v185>small{font-size:11px;color:#8993a2;line-height:1.4}
body.crm-app .migo-account-field-v185 input,body.crm-app .migo-account-field-v185 select{min-height:44px;border:1px solid #dfe5ec;border-radius:12px;background:#fff;color:#111827;padding:10px 12px;font:inherit;font-size:13px;outline:0;box-shadow:none}
body.crm-app .migo-account-field-v185 input:focus,body.crm-app .migo-account-field-v185 select:focus{border-color:color-mix(in srgb,var(--brand-accent,#40A020) 70%,#94a3b8);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand-accent,#40A020) 10%,transparent)}
body.crm-app .migo-account-field-v185 input[readonly]{background:#f7f8fa;color:#738094}
body.crm-app .migo-account-form-actions-v185{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:10px;padding-top:4px}
body.crm-app .migo-account-message-v185{min-height:18px;margin-right:auto;color:#64748b;font-size:12px;font-weight:700}
body.crm-app .migo-account-message-v185[data-tone="success"]{color:#2c7a42}
body.crm-app .migo-account-message-v185[data-tone="error"]{color:#b33a3a}
body.crm-app .migo-account-option-grid-v185{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.crm-app .migo-account-option-v185{position:relative;display:flex!important;gap:10px!important;align-items:flex-start;padding:14px;border:1px solid #e2e7ed;border-radius:15px;background:#fff;cursor:pointer;color:inherit;font-weight:400!important;min-width:0}
body.crm-app .migo-account-option-v185:hover{background:#fafcfb;border-color:#d4ded8}
body.crm-app .migo-account-option-v185.is-selected{border-color:color-mix(in srgb,var(--brand-accent,#40A020) 45%,#d9e1dc);background:color-mix(in srgb,var(--brand-accent,#40A020) 5%,#fff);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand-accent,#40A020) 18%,transparent)}
body.crm-app .migo-account-option-v185 input{position:absolute;opacity:0;pointer-events:none}
body.crm-app .migo-account-option-dot-v185{width:17px;height:17px;border:1.5px solid #bcc6d2;border-radius:50%;flex:0 0 auto;margin-top:2px;display:grid;place-items:center}
body.crm-app .migo-account-option-v185.is-selected .migo-account-option-dot-v185{border-color:var(--brand-accent,#40A020)}
body.crm-app .migo-account-option-v185.is-selected .migo-account-option-dot-v185:after{content:"";width:9px;height:9px;border-radius:50%;background:var(--brand-accent,#40A020)}
body.crm-app .migo-account-option-v185 b{display:block;color:#1e293b;font-size:12px;margin-bottom:3px}
body.crm-app .migo-account-option-v185 small{display:block;color:#7c8796;font-size:11px;line-height:1.4}
body.crm-app .migo-account-setting-row-v185{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 0;border-bottom:1px solid #eef1f4}
body.crm-app .migo-account-setting-row-v185:last-child{border-bottom:0}
body.crm-app .migo-account-setting-copy-v185 strong{display:block;font-size:13px;color:#273244}
body.crm-app .migo-account-setting-copy-v185 small{display:block;margin-top:3px;font-size:11px;color:#8490a0;line-height:1.4}
body.crm-app .migo-switch-v185{position:relative;width:42px;height:24px;flex:0 0 auto}
body.crm-app .migo-switch-v185 input{position:absolute;opacity:0}
body.crm-app .migo-switch-v185 i{position:absolute;inset:0;border-radius:999px;background:#cbd3dc;transition:.18s ease;cursor:pointer}
body.crm-app .migo-switch-v185 i:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.22);transition:.18s ease}
body.crm-app .migo-switch-v185 input:checked+i{background:var(--brand-accent,#40A020)}
body.crm-app .migo-switch-v185 input:checked+i:after{transform:translateX(18px)}
body.crm-app .migo-account-section-label-v185{margin:4px 0 8px;color:#8a95a4;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
body.crm-app .migo-account-savebar-v185{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:2px}
body.crm-app .migo-security-status-v185{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #e4e9ef;border-radius:15px;background:#fafbfc}
body.crm-app .migo-security-status-icon-v185{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#edf5eb;color:#3f7b35}
body.crm-app .migo-security-status-icon-v185 svg{width:19px;height:19px}
body.crm-app .migo-security-status-v185 strong{display:block;font-size:13px;color:#1f2a37}
body.crm-app .migo-security-status-v185 small{display:block;margin-top:3px;color:#7a8797;font-size:11px}
body.crm-app .migo-security-2fa-v185{margin-top:14px;display:grid;gap:12px}
body.crm-app .migo-qr-v185{width:190px;max-width:100%;padding:10px;border:1px solid #e4e8ed;border-radius:16px;background:#fff}
body.crm-app .migo-qr-v185 svg{display:block;width:100%;height:auto}
body.crm-app .migo-recovery-codes-v185{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px;border:1px dashed #cad4df;border-radius:14px;background:#f8fafc}
body.crm-app .migo-recovery-codes-v185 code{font:700 12px ui-monospace,SFMono-Regular,Consolas,monospace;color:#334155}
body.crm-app .migo-session-list-v185{display:flex;flex-direction:column;gap:9px}
body.crm-app .migo-session-v185{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px;border:1px solid #e5e9ef;border-radius:15px;background:#fff}
body.crm-app .migo-session-icon-v185{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#f3f6f4;color:#53675b}
body.crm-app .migo-session-icon-v185 svg{width:19px;height:19px}
body.crm-app .migo-session-copy-v185{min-width:0}
body.crm-app .migo-session-copy-v185 strong{display:flex;flex-wrap:wrap;align-items:center;gap:7px;color:#253142;font-size:13px}
body.crm-app .migo-session-copy-v185 span{display:block;margin-top:4px;color:#7d8999;font-size:11px;white-space:normal;overflow-wrap:anywhere}
body.crm-app .migo-badge-v185{display:inline-flex;align-items:center;padding:3px 6px;border-radius:999px;background:#edf6eb;color:#3a7132;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
body.crm-app .migo-badge-v185.is-muted{background:#f0f2f5;color:#7a8594}
body.crm-app .migo-account-loading-v185,body.crm-app .migo-account-empty-v185{padding:38px 22px;text-align:center;border:1px dashed #d7dee6;border-radius:18px;background:#fafbfc;color:#7b8796;font-size:13px}
body.crm-app .migo-account-error-v185{padding:14px 16px;border:1px solid #f0caca;border-radius:14px;background:#fff8f8;color:#a53d3d;font-size:12px;font-weight:700}

/* Settings: keep the existing renderer/logic; v185 only groups its panels into clear tabs. */
body.crm-app #settingsView.active{gap:10px}
body.crm-app #settingsView>.migo-settings-tabs-shell-v185{margin-bottom:2px}
body.crm-app #settingsView .migo-settings-v3068{gap:14px!important}
body.crm-app #settingsView [data-migo-settings-hidden-v185="1"]{display:none!important}
body.crm-app #settingsView .migo-settings-primary-grid-v852138.migo-settings-single-v185{grid-template-columns:1fr!important}
body.crm-app #settingsView .migo-settings-basics-v852138 [data-migo-settings-group-hidden-v185="1"]{display:none!important}
body.crm-app #settingsView .migo-settings-basics-v852138.migo-settings-basics-filtered-v185 .migo-settings-basics-body-v852138{gap:0!important}

/* Preference application */
body.crm-app.migo-density-compact-v185 .migo-account-center-v185{gap:12px}
body.crm-app.migo-density-compact-v185 .migo-account-card-head-v185{padding:14px 16px 11px}
body.crm-app.migo-density-compact-v185 .migo-account-card-body-v185{padding:14px 16px}
body.crm-app.migo-density-compact-v185 .migo-account-setting-row-v185{padding:10px 0}
body.crm-app.migo-density-compact-v185 .migo-account-hero-v185{padding:17px 19px}
body.crm-app.migo-density-compact-v185 .data-table td{padding-top:9px!important;padding-bottom:9px!important}
body.crm-app.migo-theme-dark-v185{--bg:#101418;--text:#e7edf4;color:#e7edf4;background:#101418}
body.crm-app.migo-theme-dark-v185 .main-panel{background:#101418}
body.crm-app.migo-theme-dark-v185 .migo-account-hero-v185,body.crm-app.migo-theme-dark-v185 .migo-account-card-v185,body.crm-app.migo-theme-dark-v185 .migo-account-tabs-v185,body.crm-app.migo-theme-dark-v185 .migo-settings-tabs-v185,body.crm-app.migo-theme-dark-v185 .migo-session-v185{background:#171d23;border-color:#29313a;box-shadow:none}
body.crm-app.migo-theme-dark-v185 .migo-account-tabs-shell-v185,body.crm-app.migo-theme-dark-v185 .migo-settings-tabs-shell-v185{background:linear-gradient(to bottom,#101418 72%,transparent)}
body.crm-app.migo-theme-dark-v185 .migo-account-hero-v185 h2,body.crm-app.migo-theme-dark-v185 .migo-account-card-head-v185 h3,body.crm-app.migo-theme-dark-v185 .migo-account-profile-copy-v185 strong,body.crm-app.migo-theme-dark-v185 .migo-account-field-v185>span,body.crm-app.migo-theme-dark-v185 .migo-account-setting-copy-v185 strong,body.crm-app.migo-theme-dark-v185 .migo-account-option-v185 b,body.crm-app.migo-theme-dark-v185 .migo-session-copy-v185 strong{color:#edf2f7}
body.crm-app.migo-theme-dark-v185 .migo-account-hero-v185 p,body.crm-app.migo-theme-dark-v185 .migo-account-card-head-v185 p,body.crm-app.migo-theme-dark-v185 .migo-account-profile-copy-v185 span,body.crm-app.migo-theme-dark-v185 .migo-account-setting-copy-v185 small,body.crm-app.migo-theme-dark-v185 .migo-account-option-v185 small,body.crm-app.migo-theme-dark-v185 .migo-session-copy-v185 span{color:#9aa6b4}
body.crm-app.migo-theme-dark-v185 .migo-account-field-v185 input,body.crm-app.migo-theme-dark-v185 .migo-account-field-v185 select,body.crm-app.migo-theme-dark-v185 .migo-account-option-v185,body.crm-app.migo-theme-dark-v185 .migo-account-btn-v185{background:#11161b;border-color:#303944;color:#e8eef5}
body.crm-app.migo-theme-dark-v185 .migo-account-option-v185.is-selected{background:#172218}
body.crm-app.migo-theme-dark-v185 .migo-account-field-v185 input[readonly],body.crm-app.migo-theme-dark-v185 .migo-security-status-v185,body.crm-app.migo-theme-dark-v185 .migo-recovery-codes-v185{background:#12171c;border-color:#2c3540;color:#dbe4ee}

@media(max-width:900px){
 body.crm-app .migo-account-grid-v185{grid-template-columns:1fr}
 body.crm-app .migo-account-option-grid-v185{grid-template-columns:1fr}
}
@media(max-width:720px){
 body.crm-app #accountView{padding-bottom:18px}
 body.crm-app .migo-account-hero-v185{grid-template-columns:1fr;padding:18px;border-radius:18px}
 body.crm-app .migo-account-hero-v185 h2{font-size:24px}
 body.crm-app .migo-account-tenant-v185{justify-self:start}
 body.crm-app .migo-account-tabs-shell-v185,body.crm-app .migo-settings-tabs-shell-v185{top:0}
 body.crm-app .migo-account-tab-v185,body.crm-app .migo-settings-tab-v185{padding:9px 11px}
 body.crm-app .migo-account-form-v185{grid-template-columns:1fr}
 body.crm-app .migo-account-profile-summary-v185{grid-template-columns:72px minmax(0,1fr)}
 body.crm-app .migo-account-avatar-v185{width:72px;height:72px;border-radius:20px}
 body.crm-app .migo-session-v185{grid-template-columns:38px minmax(0,1fr)}
 body.crm-app .migo-session-v185>.migo-account-btn-v185{grid-column:2;justify-self:start}
 body.crm-app .migo-recovery-codes-v185{grid-template-columns:1fr}
}

/* v185: personal security now lives under Contul meu; keep the legacy route compatible but remove the duplicate sidebar entry. */
body.crm-app .sidebar .nav-item[data-view="security"]{display:none!important}
html[data-migo-canonical-view-v3088="account"] body.crm-app .topbar-actions{display:none!important}


/* v8.5.21.187 — canonical account popover, single renderer */
body.crm-app .migo-account-menu.migo-account-menu-v187 {
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  padding: 7px !important;
  border: 1px solid #dbe5d6 !important;
  border-radius: 14px !important;
  background: #fffefb !important;
  box-shadow: 0 18px 42px rgba(48,64,52,.18) !important;
  color: #344238 !important;
  overflow: hidden !important;
}
body.crm-app .migo-account-menu-v187 .migo-account-v85195-head { padding: 9px 9px 10px !important; }
body.crm-app .migo-account-menu-v187 .migo-account-v85195-copy strong { font-size: 13px !important; }
body.crm-app .migo-account-menu-v187 .migo-account-v85195-copy span { font-size: 11px !important; }
body.crm-app .migo-account-menu-v187 .migo-account-v85195-copy small { font-size: 10px !important; }
body.crm-app .migo-account-menu-v187 .migo-account-v85195-cabinet { padding: 9px !important; }
body.crm-app .migo-account-menu-v187 .migo-account-v85195-actions { padding-top: 6px !important; }
body.crm-app .migo-account-menu-v187 .migo-account-v85195-actions > button {
  min-height: 36px !important;
  border-radius: 9px !important;
}
body.crm-app .migo-account-menu-v187 [data-migo-account-path-v187="/setari/general"] {
  margin-top: 2px !important;
}
body.crm-app .migo-account-menu-v187 .migo-account-v187-section-divider {
  height: 1px !important;
  margin: 5px 2px !important;
  background: #e8eee4 !important;
}
body.crm-app .migo-account-menu-v187 .migo-cabinet-select:disabled {
  opacity: 1 !important;
  cursor: default !important;
}
/* Legacy account actions must never become visible again after the hard reset. */
body.crm-app .migo-account-menu-v187 .migo-account-actions,
body.crm-app .migo-account-menu-v187 .migo-account-menu-head { display:none !important; }


/* Migo CRM v8.5.21.188 — canonical Migo UI for Account Center + route-isolated Settings */
body.crm-app #accountView{padding-bottom:24px}
body.crm-app .migo-account-center-v188{width:100%;max-width:none;margin:0;gap:12px}
body.crm-app .migo-account-overview-v188{border-radius:var(--migo-ws-radius-v3067,8px)!important;box-shadow:none!important}
body.crm-app .migo-account-overview-v188>.migo-ws-panel-head-v3067{min-height:62px}
body.crm-app .migo-account-tenant-v188{display:inline-flex;align-items:center;gap:8px;max-width:320px;min-height:34px;padding:6px 9px;color:#475467;background:#f8fafc;border:1px solid #e1e7ef;border-radius:6px;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.crm-app .migo-account-tenant-v188 svg{width:16px;height:16px;flex:0 0 16px;color:#667085}
body.crm-app .migo-account-tenant-v188 span{overflow:hidden;text-overflow:ellipsis}
body.crm-app .migo-account-nav-v188{justify-content:flex-start;min-height:48px;padding:5px;overflow:hidden}
body.crm-app .migo-account-segments-v188{max-width:100%;overflow:auto;scrollbar-width:none}
body.crm-app .migo-account-segments-v188::-webkit-scrollbar{display:none}
body.crm-app .migo-account-content-v188{display:flex;flex-direction:column;gap:12px;min-height:320px}

/* Existing account controls now inherit the canonical administration workspace language. */
body.crm-app .migo-account-card-v185{border:1px solid var(--migo-ws-line-v3067,#d9e1ec)!important;border-radius:var(--migo-ws-radius-v3067,8px)!important;background:#fff!important;box-shadow:none!important}
body.crm-app .migo-account-card-head-v185{align-items:center;min-height:58px;padding:12px 14px;border-bottom:1px solid #e7ecf2}
body.crm-app .migo-account-card-head-v185 h3{margin:0;color:#101828;font-size:15px!important;font-weight:750;letter-spacing:0;line-height:1.25}
body.crm-app .migo-account-card-head-v185 p{margin:3px 0 0;color:#667085;font-size:11px;line-height:1.3}
body.crm-app .migo-account-card-body-v185{padding:14px}
body.crm-app .migo-account-grid-v185{gap:12px}
body.crm-app .migo-account-avatar-v185{width:76px;height:76px;border:1px solid #d9e1ec;border-radius:10px;background:#f1f4f8;color:#344054;font-size:21px;box-shadow:none}
body.crm-app .migo-account-profile-summary-v185{grid-template-columns:76px minmax(0,1fr);gap:13px}
body.crm-app .migo-account-profile-copy-v185 strong{color:#101828;font-size:15px}
body.crm-app .migo-account-profile-copy-v185 span{color:#667085;font-size:12px}
body.crm-app .migo-account-profile-copy-v185 small{margin-top:7px;padding:4px 7px;border-radius:5px;background:#f2f4f7;color:#475467;font-size:10px}
body.crm-app .migo-account-btn-v185{min-height:38px;padding:8px 13px;border:1px solid var(--migo-ws-line-v3067,#d9e1ec);border-radius:6px;background:#fff;color:#344054;font-size:13px;font-weight:700;box-shadow:none;transform:none!important}
body.crm-app .migo-account-btn-v185:hover{background:#f5f7fa;border-color:#d9e1ec}
body.crm-app .migo-account-btn-v185.is-primary{color:#fff;background:#111c34;border-color:#111c34}
body.crm-app .migo-account-btn-v185.is-primary:hover{background:#1d2a44;border-color:#1d2a44}
body.crm-app .migo-account-btn-v185.is-danger{color:#b42318;background:#fff;border-color:#f0c6c2}
body.crm-app .migo-account-field-v185{gap:6px}
body.crm-app .migo-account-field-v185>span{color:#475467;font-size:11px;font-weight:700}
body.crm-app .migo-account-field-v185>small{color:#667085;font-size:10px;line-height:1.4}
body.crm-app .migo-account-field-v185 input,body.crm-app .migo-account-field-v185 select{min-height:38px;padding:7px 10px;border:1px solid var(--migo-ws-line-v3067,#d9e1ec);border-radius:6px;background:#fff;color:#101828;font-size:13px;box-shadow:none}
body.crm-app .migo-account-field-v185 input:focus,body.crm-app .migo-account-field-v185 select:focus{border-color:#94b6f8;box-shadow:0 0 0 3px rgba(37,99,235,.10)}
body.crm-app .migo-account-field-v185 input[readonly]{background:#f8fafc;color:#667085}
body.crm-app .migo-account-option-grid-v185{gap:8px}
body.crm-app .migo-account-option-v185{padding:11px;border:1px solid #e1e7ef;border-radius:7px;background:#fff}
body.crm-app .migo-account-option-v185:hover{background:#f8fafc;border-color:#cfd8e4}
body.crm-app .migo-account-option-v185.is-selected{border-color:#94b6f8;background:#f5f8ff;box-shadow:0 0 0 1px rgba(37,99,235,.05)}
body.crm-app .migo-account-option-v185.is-selected .migo-account-option-dot-v185{border-color:#2563eb}
body.crm-app .migo-account-option-v185.is-selected .migo-account-option-dot-v185:after{background:#2563eb}
body.crm-app .migo-switch-v185 input:checked+i{background:#2563eb}
body.crm-app .migo-security-status-v185,body.crm-app .migo-session-v185{border-color:#e1e7ef;border-radius:8px;background:#fff}
body.crm-app .migo-session-icon-v185,body.crm-app .migo-security-status-icon-v185{border-radius:7px;background:#f1f4f8;color:#475467}
body.crm-app .migo-account-loading-v185,body.crm-app .migo-account-empty-v185{border-radius:8px;background:#f8fafc}
body.crm-app .migo-account-error-v185{border-radius:8px}

/* Settings navigation uses the same commandbar + segmented control as the rest of Migo CRM. */
body.crm-app #settingsView{gap:12px}
body.crm-app .migo-settings-nav-v188{justify-content:space-between;gap:12px;position:relative;z-index:8}
body.crm-app .migo-settings-current-v188{display:flex;align-items:center;gap:9px;min-width:220px;flex:1 1 300px;padding:0 7px}
body.crm-app .migo-settings-current-icon-v188{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:6px;background:#eef4ff;color:#2563eb}
body.crm-app .migo-settings-current-icon-v188 svg{width:16px;height:16px}
body.crm-app .migo-settings-current-v188 strong{display:block;color:#101828;font-size:12px;font-weight:750;line-height:1.25}
body.crm-app .migo-settings-current-v188 small{display:block;margin-top:2px;color:#667085;font-size:9.5px;line-height:1.35}
body.crm-app .migo-settings-segments-v188{max-width:100%;overflow:auto;scrollbar-width:none}
body.crm-app .migo-settings-segments-v188::-webkit-scrollbar{display:none}
body.crm-app #settingsView .migo-settings-v3068{gap:12px!important}
body.crm-app #settingsView .migo-settings-primary-grid-v852138.migo-settings-single-v188{grid-template-columns:1fr!important}
body.crm-app #settingsView .migo-settings-basics-v852138.migo-settings-basics-filtered-v188 .migo-settings-basics-body-v852138{gap:0!important}
/* Explicit route isolation. This is intentionally redundant with inline !important from JS. */
body.crm-app #settingsView [hidden],body.crm-app #settingsView [aria-hidden="true"]{display:none!important}

/* Canonical account menu polish and the requested company icon. */
body.crm-app .migo-account-menu.migo-account-menu-v188{left:0!important;right:0!important;width:auto!important;padding:7px!important;border:1px solid #dbe5d6!important;border-radius:14px!important;background:#fffefb!important;box-shadow:0 18px 42px rgba(48,64,52,.18)!important;color:#344238!important;overflow:hidden!important}
body.crm-app .migo-account-menu-v188 .migo-account-v85195-head{padding:9px 9px 10px!important}
body.crm-app .migo-account-menu-v188 .migo-account-v85195-cabinet{padding:9px!important}
body.crm-app .migo-account-menu-v188 .migo-account-v85195-actions{padding-top:6px!important}
body.crm-app .migo-account-menu-v188 .migo-account-v85195-actions>button{min-height:36px!important;border-radius:9px!important}
body.crm-app .migo-account-menu-v188 .migo-account-v188-section-divider{height:1px!important;margin:5px 2px!important;background:#e8eee4!important}
body.crm-app .migo-account-menu-v188 .migo-cabinet-select:disabled{opacity:1!important;cursor:default!important}

@media(max-width:900px){
 body.crm-app .migo-settings-nav-v188{align-items:stretch;flex-wrap:wrap}
 body.crm-app .migo-settings-current-v188{flex-basis:100%}
 body.crm-app .migo-settings-segments-v188{width:100%}
}
@media(max-width:720px){
 body.crm-app .migo-account-overview-v188>.migo-ws-panel-head-v3067{align-items:flex-start;flex-direction:column}
 body.crm-app .migo-account-tenant-v188{max-width:100%}
 body.crm-app .migo-account-nav-v188{overflow:auto}
 body.crm-app .migo-account-form-v185{grid-template-columns:1fr}
}


/* Migo CRM v8.5.21.189 — Settings pipeline route isolation + CRM rule layout repair */
/* Pipeline configuration is an asynchronously injected CRM-only panel. */
body.crm-app #settingsView[data-migo-settings-active-tab-v189]:not([data-migo-settings-active-tab-v189="crm"]) [data-pipeline-settings-v131],
body.crm-app #settingsView[data-migo-settings-active-tab-v188]:not([data-migo-settings-active-tab-v188="crm"]) [data-pipeline-settings-v131]{
  display:none!important;
}
body.crm-app #settingsView[data-migo-settings-active-tab-v189="crm"] [data-pipeline-settings-v131]{
  display:block;
}

/* Prevent historical grid/density rules from collapsing the explanatory copy into a 20px column. */
body.crm-app #settingsView .migo-settings-probability-note-v852139,
body.crm-app #settingsView .migo-settings-assignment-rules-v852140{
  display:flex!important;
  align-items:flex-start!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.crm-app #settingsView .migo-settings-probability-note-v852139>.migo-ws-icon-v3067,
body.crm-app #settingsView .migo-settings-assignment-rules-v852140>.migo-ws-icon-v3067{
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
}
body.crm-app #settingsView .migo-settings-probability-note-v852139>div,
body.crm-app #settingsView .migo-settings-assignment-rules-v852140>div{
  display:block!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
}
body.crm-app #settingsView .migo-settings-probability-note-v852139 strong,
body.crm-app #settingsView .migo-settings-probability-note-v852139 span,
body.crm-app #settingsView .migo-settings-assignment-rules-v852140 strong,
body.crm-app #settingsView .migo-settings-assignment-rules-v852140 span{
  width:auto!important;
  max-width:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  writing-mode:horizontal-tb!important;
}

/* Migo CRM v8.5.21.190 — Settings icons + autosave in page header */
/* The icon host existed in v188/v189, but historical workspace rules could leave the SVG visually blank. */
body.crm-app #settingsView .migo-settings-current-icon-v188{
  display:grid!important;
  place-items:center!important;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  flex:0 0 32px!important;
  border-radius:6px!important;
  background:#eef4ff!important;
  color:#2563eb!important;
  opacity:1!important;
  visibility:visible!important;
}
body.crm-app #settingsView .migo-settings-current-icon-v188>svg.migo-ui-icon-v190{
  display:block!important;
  width:17px!important;
  height:17px!important;
  min-width:17px!important;
  flex:0 0 17px!important;
  color:#2563eb!important;
  stroke:currentColor!important;
  fill:none!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
}
body.crm-app #settingsView .migo-settings-current-icon-v188>svg.migo-ui-icon-v190 *{
  stroke:currentColor!important;
  opacity:1!important;
  visibility:visible!important;
}

/* Autosave status now uses the otherwise empty right side of the global page header. */
body.crm-app .topbar>.topbar-actions.migo-settings-topbar-actions-v190{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  margin-left:auto!important;
}
body.crm-app .topbar>.topbar-actions.migo-settings-topbar-actions-v190>button,
body.crm-app .topbar>.topbar-actions.migo-settings-topbar-actions-v190>.migo-auto-refresh-box{
  display:none!important;
}
body.crm-app .topbar .migo-settings-topbar-autosave-v190{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:28px!important;
  padding:0 9px!important;
  margin:0!important;
  border:1px solid #dfe6ef!important;
  border-radius:999px!important;
  background:#f8fafc!important;
  color:#66758b!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
body.crm-app .topbar .migo-settings-topbar-autosave-v190[hidden]{display:none!important}
body.crm-app .topbar .migo-settings-topbar-autosave-v190 .migo-ws-icon-v3067{
  display:block!important;
  width:13px!important;
  height:13px!important;
  flex:0 0 13px!important;
  stroke:currentColor!important;
}
body.crm-app .topbar .migo-settings-topbar-autosave-v190.is-saved{border-color:#cdebdc!important;background:#f0faf5!important;color:#087758!important}
body.crm-app .topbar .migo-settings-topbar-autosave-v190.is-saving{border-color:#cfe0ff!important;background:#f3f7ff!important;color:#2769eb!important}
body.crm-app .topbar .migo-settings-topbar-autosave-v190.is-dirty{border-color:#e1e6ed!important;background:#f8fafc!important;color:#65748a!important}
body.crm-app .topbar .migo-settings-topbar-autosave-v190.is-error{border-color:#f3c9c5!important;background:#fff5f4!important;color:#b8322a!important}

/* The original in-content row remains as the canonical state source, but is no longer rendered visually. */
body.crm-app #settingsView .migo-settings-autosave-row-v3163{display:none!important}

@media(max-width:720px){
  body.crm-app .topbar>.topbar-actions.migo-settings-topbar-actions-v190{width:100%!important;justify-content:flex-start!important;margin-left:0!important}
  body.crm-app .topbar .migo-settings-topbar-autosave-v190{max-width:100%!important}
  body.crm-app .topbar .migo-settings-topbar-autosave-v190 span{overflow:hidden;text-overflow:ellipsis}
}

/* Migo CRM v8.5.21.191 — precision fixes for Settings UI */

/* 1) Navigation bar needs breathing room before the active settings content. */
body.crm-app #settingsView .migo-settings-nav-v188{
  margin-bottom:12px!important;
}

/* 2) Restore every existing Settings outline SVG, not only the current-section icon. */
body.crm-app #settingsView svg.migo-ws-icon-v3067{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  color:inherit!important;
  stroke:currentColor!important;
  overflow:visible!important;
}
body.crm-app #settingsView svg.migo-ws-icon-v3067 path,
body.crm-app #settingsView svg.migo-ws-icon-v3067 circle,
body.crm-app #settingsView svg.migo-ws-icon-v3067 rect,
body.crm-app #settingsView svg.migo-ws-icon-v3067 line,
body.crm-app #settingsView svg.migo-ws-icon-v3067 polyline,
body.crm-app #settingsView svg.migo-ws-icon-v3067 polygon,
body.crm-app #settingsView svg.migo-ws-icon-v3067 ellipse{
  visibility:visible!important;
  opacity:1!important;
  stroke:currentColor!important;
}
body.crm-app #settingsView .migo-ws-icon-button-v3067{color:#344054!important}
body.crm-app #settingsView .migo-settings-rule-icon-v852138{color:#175cd3!important}
body.crm-app #settingsView .migo-settings-currency-toggle-v3094>span{color:#667085!important}
body.crm-app #settingsView .migo-settings-currency-toggle-v3094>input:checked+span{color:#175cd3!important}
body.crm-app #settingsView .migo-settings-msign-summary-icon-v3164{color:#2769eb!important}

/* 3) Keep the ORIGINAL Migo last-saved badge design. v191 changes position only. */
body.crm-app .topbar>.topbar-actions.migo-settings-topbar-actions-v191{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  margin-left:auto!important;
}
body.crm-app .topbar>.topbar-actions.migo-settings-topbar-actions-v191>button,
body.crm-app .topbar>.topbar-actions.migo-settings-topbar-actions-v191>.migo-auto-refresh-box{
  display:none!important;
}
body.crm-app .topbar .migo-settings-topbar-autosave-v191{
  margin:0!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
body.crm-app .topbar .migo-settings-topbar-autosave-v191[hidden]{display:none!important}
body.crm-app .topbar .migo-settings-topbar-autosave-v191 .migo-ws-icon-v3067{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  stroke:currentColor!important;
}

/* 4) The annual numbering checkbox is a compact control, not a wide settings field. */
body.crm-app #settingsView .migo-commercial-number-grid-v169 label.migo-commercial-toggle-v169.is-wide{
  grid-column:1/-1!important;
  justify-self:start!important;
  width:auto!important;
  max-width:min(100%,560px)!important;
  min-height:0!important;
  grid-template-columns:18px minmax(0,1fr)!important;
  padding:5px 0!important;
}
body.crm-app #settingsView .migo-commercial-number-grid-v169 label.migo-commercial-toggle-v169.is-wide>input[type="checkbox"]{
  position:static!important;
  display:block!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
  margin:1px 0 0!important;
  padding:0!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body.crm-app #settingsView .migo-commercial-number-grid-v169 label.migo-commercial-toggle-v169.is-wide>small{
  grid-column:2!important;
  max-width:520px!important;
}

/* 5) Related-settings block was explicitly removed in v191; this is a safety net for stale cached DOM. */
body.crm-app #settingsView .migo-settings-related-v852138{display:none!important}

@media(max-width:720px){
  body.crm-app .topbar>.topbar-actions.migo-settings-topbar-actions-v191{
    width:100%!important;
    justify-content:flex-start!important;
    margin-left:0!important;
  }
  body.crm-app .topbar .migo-settings-topbar-autosave-v191{max-width:100%!important}
  body.crm-app .topbar .migo-settings-topbar-autosave-v191 span{overflow:hidden;text-overflow:ellipsis}
}


/* Migo CRM v8.5.21.192 — System spacing + refresh feedback (preserved by v193) */

/* System contains no settings form after related shortcuts were removed. Do not reserve its old space. */
body.crm-app #settingsView[data-migo-settings-active-tab-v188="system"] form[data-settings-form-v3068],
body.crm-app #settingsView[data-migo-settings-active-tab-v188="system"] .migo-settings-primary-grid-v852138{
  display:none!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  height:0!important;
}

/* Restore click feedback for the Settings refresh button even though the button is re-rendered immediately. */
body.crm-app #settingsView.migo-settings-refreshing-v192 [data-settings-refresh-v3068] .migo-ws-icon-v3067{
  transform-origin:50% 50%!important;
  animation:migo-settings-refresh-spin-v192 .58s linear infinite!important;
  will-change:transform;
}
@keyframes migo-settings-refresh-spin-v192{
  to{transform:rotate(360deg)}
}
@media (prefers-reduced-motion:reduce){
  body.crm-app #settingsView.migo-settings-refreshing-v192 [data-settings-refresh-v3068] .migo-ws-icon-v3067{
    animation:none!important;
  }
}

/* Migo CRM v8.5.21.194 — account header cleanup, topbar tenant, timezone picker */
body.crm-app .migo-account-center-v188{gap:14px}
body.crm-app .migo-account-nav-v188{justify-content:flex-start;min-height:auto;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
body.crm-app .migo-account-nav-v188 .migo-account-segments-v188{display:inline-flex;max-width:100%;padding:6px;border:1px solid #d9e1ec;border-radius:8px;background:#fff;box-shadow:none}
body.crm-app .migo-account-overview-v188{display:none!important}
html[data-migo-canonical-view-v3088="account"] body.crm-app .topbar-actions{display:flex!important;align-items:center;gap:10px}
body.crm-app .topbar-actions.migo-account-topbar-actions-v194{display:flex!important;align-items:center;gap:10px}
body.crm-app .migo-account-topbar-tenant-v194{display:inline-flex!important;align-items:center;gap:8px;max-width:340px;min-height:34px;padding:6px 10px;background:#f8fafc;border:1px solid #e1e7ef;border-radius:6px;color:#475467;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.crm-app .migo-account-topbar-tenant-v194 svg{width:16px;height:16px;flex:0 0 16px;color:#667085}
body.crm-app .migo-account-topbar-tenant-v194 span{overflow:hidden;text-overflow:ellipsis}
body.crm-app .migo-account-timezone-field-v194{position:relative}
body.crm-app .migo-account-timezone-v194{position:relative}
body.crm-app .migo-account-timezone-trigger-v194{width:100%;min-height:38px;padding:7px 10px;border:1px solid var(--migo-ws-line-v3067,#d9e1ec);border-radius:6px;background:#fff;color:#101828;font:inherit;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;text-align:left}
body.crm-app .migo-account-timezone-trigger-v194:hover{border-color:#cfd8e4;background:#fbfdff}
body.crm-app .migo-account-timezone-v194.is-open .migo-account-timezone-trigger-v194,
body.crm-app .migo-account-timezone-trigger-v194:focus{border-color:#94b6f8;box-shadow:0 0 0 3px rgba(37,99,235,.10);outline:0}
body.crm-app .migo-account-timezone-trigger-v194 svg{width:16px;height:16px;flex:0 0 16px;color:#475467}
body.crm-app .migo-account-timezone-popover-v194{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:40;padding:8px;border:1px solid #d9e1ec;border-radius:10px;background:#fff;box-shadow:0 18px 44px rgba(15,23,42,.12)}
body.crm-app .migo-account-timezone-search-v194{display:flex;align-items:center;gap:8px;padding:0 10px;min-height:38px;border:1px solid #d9e1ec;border-radius:8px;background:#fff}
body.crm-app .migo-account-timezone-search-v194 svg{width:15px;height:15px;color:#667085;flex:0 0 15px}
body.crm-app .migo-account-timezone-search-v194 input{border:0!important;box-shadow:none!important;outline:0!important;min-height:36px!important;padding:0!important;background:transparent!important}
body.crm-app .migo-account-timezone-list-v194{display:flex;flex-direction:column;gap:6px;max-height:320px;margin-top:8px;overflow:auto;padding-right:2px}
body.crm-app .migo-account-timezone-option-v194{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid transparent;border-radius:8px;background:#fff;color:#101828;text-align:left;cursor:pointer}
body.crm-app .migo-account-timezone-option-v194:hover{background:#f8fafc;border-color:#e1e7ef}
body.crm-app .migo-account-timezone-option-v194.is-selected{background:#f6faf6;border-color:#cfe3c7}
body.crm-app .migo-account-timezone-option-main-v194{display:flex;flex-direction:column;gap:2px;min-width:0}
body.crm-app .migo-account-timezone-option-main-v194 strong{font-size:13px;color:#101828}
body.crm-app .migo-account-timezone-option-main-v194 small{font-size:11px;color:#667085}
body.crm-app .migo-account-timezone-option-meta-v194{display:flex;flex-direction:column;gap:2px;align-items:flex-end;white-space:nowrap}
body.crm-app .migo-account-timezone-option-meta-v194 b{font-size:12px;color:#344054}
body.crm-app .migo-account-timezone-option-meta-v194 small{font-size:11px;color:#667085}
@media(max-width:900px){
  body.crm-app .migo-account-topbar-tenant-v194{max-width:220px}
}
@media(max-width:640px){
  body.crm-app .migo-account-timezone-option-v194{flex-direction:column;align-items:flex-start}
  body.crm-app .migo-account-timezone-option-meta-v194{align-items:flex-start}
}

/* Migo CRM v8.5.21.199 — account tabs + timezone overflow */
html[data-migo-canonical-view-v3088="account"] body.crm-app .topbar-actions{
  display:none!important;
}
body.crm-app #accountView .migo-account-tabs-v199{
  width:max-content;
  max-width:100%;
  overflow:auto;
  scrollbar-width:none;
}
body.crm-app #accountView .migo-account-tabs-v199::-webkit-scrollbar{display:none}
body.crm-app #accountView .migo-account-tabs-v199 button{white-space:nowrap}

/* The timezone popup must escape the profile card instead of being clipped by it. */
body.crm-app #accountView .migo-account-grid-v185,
body.crm-app #accountView .migo-account-content-v188,
body.crm-app #accountView .migo-account-card-body-v185{
  overflow:visible!important;
}
body.crm-app #accountView .migo-account-grid-v185>.migo-account-card-v185:first-child{
  position:relative;
  z-index:20;
  overflow:visible!important;
}
body.crm-app #accountView .migo-account-grid-v185>.migo-account-card-v185:nth-child(2){
  position:relative;
  z-index:1;
}
body.crm-app #accountView .migo-account-timezone-field-v194{
  position:relative;
  z-index:2;
}
body.crm-app #accountView .migo-account-timezone-field-v194:has(.migo-account-timezone-v194.is-open){
  z-index:200;
}
body.crm-app #accountView .migo-account-timezone-v194.is-open{
  position:relative;
  z-index:210;
}
body.crm-app #accountView .migo-account-timezone-popover-v194{
  z-index:220!important;
}
