:root {
  --sm-green: #00A350;
  --sm-green-rgb: 0,163,80;
  --sm-green-dark: #008642;
  --sm-green-soft: #E6F7EE;
  --sm-bg: #EBEBEB;
  --sm-card: #FFFFFF;
  --sm-text: #000000;
  --sm-muted: #666666;
  --sm-border: #ECEFF3;
  --sm-danger: #EF4444;
  --sm-warning: #F59E0B;
  --sm-blue: #3B82F6;
  --sm-pink: #F05A92;
  --sm-orange: #F59E42;
  --sm-radius: 20px;
  --sm-shadow: 0 12px 36px rgba(25, 40, 55, .07);
  --sm-shadow-hover: 0 18px 44px rgba(var(--sm-green-rgb), .14);
  --sm-sidebar: 275px;
  --sm-transition: .25s ease;
  --sm-font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sm-base-font-size: 15px;
  --sm-body-weight: 400;
  --sm-heading-weight: 600;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.smcrm-fullscreen-template {
  margin: 0 !important;
  background: var(--sm-bg) !important;
  color: var(--sm-text);
  font-family: var(--sm-font-family);
  font-size:var(--sm-base-font-size);
  font-weight:var(--sm-body-weight);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body.smcrm-fullscreen-template #wpadminbar { display: none !important; }
#smcrm-app-root { min-height: 100vh; }
.smcrm-shell,
.sm-auth-page { font-family: var(--sm-font-family); }
.smcrm-shell button,
.smcrm-shell input,
.smcrm-shell select,
.smcrm-shell textarea,
.sm-auth-page button,
.sm-auth-page input,
.sm-auth-page select,
.sm-auth-page textarea { font: inherit; }
.smcrm-shell a,
.sm-auth-page a { color: inherit; }
.sm-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.sm-muted { color: var(--sm-muted); }

/* Authentication */
.sm-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vh, 48px) 24px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 25%, rgba(var(--sm-green-rgb), .08), transparent 32%),
    linear-gradient(145deg, #FAFCFB 0%, #EEF8F2 48%, #F8FBF9 100%);
}
.sm-auth-shape { position: absolute; border-radius: 999px; filter: blur(.1px); pointer-events: none; }
.sm-auth-shape-one { width: 620px; height: 360px; right: -140px; top: -180px; background: linear-gradient(135deg, rgba(var(--sm-green-rgb),.82), rgba(73,190,122,.35)); transform: rotate(-9deg); }
.sm-auth-shape-two { width: 600px; height: 340px; left: -260px; bottom: -165px; background: linear-gradient(135deg, rgba(var(--sm-green-rgb),.16), rgba(var(--sm-green-rgb),.42)); transform: rotate(-12deg); }
.sm-auth-shape-three { width: 240px; height: 240px; right: 12%; bottom: 6%; background: rgba(255,255,255,.55); filter: blur(30px); }
.sm-auth-card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  max-width: calc(100vw - 32px);
  margin: auto;
  flex: 0 0 auto;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 30px;
  padding: 40px 48px 32px;
  box-shadow: 0 30px 70px rgba(15, 70, 38, .13), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  animation: smFadeUp .55s ease both;
}
.sm-auth-card::after { content:""; position:absolute; inset:auto 0 0; height:35%; border-radius:0 0 30px 30px; background:linear-gradient(180deg, transparent, rgba(var(--sm-green-rgb),.07)); pointer-events:none; }
.sm-auth-logo-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto 12px; display:grid; place-items:center; }
.sm-auth-logo-wrap img { width: 116px; height: 116px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.12)); position:relative; z-index:2; }
.sm-logo-dot { position:absolute; display:block; border-radius:50%; background:var(--sm-green); background:linear-gradient(145deg,color-mix(in srgb,var(--sm-green) 74%,white 26%),var(--sm-green-dark)); box-shadow:0 8px 16px rgba(var(--sm-green-rgb),.25); }
.sm-logo-dot.d1 { width:12px; height:12px; right:1px; top:15px; }
.sm-logo-dot.d2 { width:8px; height:8px; left:0; top:54px; }
.sm-logo-dot.d3 { width:6px; height:6px; right:10px; bottom:18px; }
.sm-auth-card > h1 { margin:0 0 24px; text-align:center; font-size:30px; line-height:1.2; font-weight:600; letter-spacing:-.5px; }
.sm-auth-card > h1 em { color:var(--sm-green); font-style:normal; }
.sm-auth-tabs { display:grid; grid-template-columns:1fr 1fr; margin:0 0 28px; border-bottom:2px solid #E6E9EC; }
.sm-auth-tabs a { position:relative; padding:12px; color:#969696; font-size:16px; font-weight:600; text-align:center; text-decoration:none; }
.sm-auth-tabs a::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:transparent; }
.sm-auth-tabs a.is-active { color:var(--sm-green); }
.sm-auth-tabs a.is-active::after { background:linear-gradient(90deg,var(--sm-green),#56CD8D); }
.sm-auth-form { position:relative; z-index:2; display:grid; gap:16px; }
.sm-auth-intro { position:relative; z-index:2; text-align:center; margin:-6px 0 20px; }
.sm-auth-intro h2 { margin:0 0 8px; font-size:24px; }
.sm-auth-intro p { margin:0; color:var(--sm-muted); font-size:15px; }
.sm-input-group { position:relative; display:flex; align-items:center; min-height:56px; padding:0 14px; border-radius:999px; background:#fff; border:1px solid #EDF0EE; box-shadow:0 7px 18px rgba(19,61,35,.08), inset 0 1px 0 rgba(255,255,255,.8); }
.sm-input-group > span { color:var(--sm-green); display:grid; place-items:center; margin-right:10px; }
.sm-input-group input { flex:1; min-width:0; height:54px; padding:0; border:0 !important; outline:0; background:transparent !important; box-shadow:none !important; color:var(--sm-text); }
.sm-input-group input:-webkit-autofill,
.sm-input-group input:-webkit-autofill:hover,
.sm-input-group input:-webkit-autofill:focus { -webkit-text-fill-color:var(--sm-text); -webkit-box-shadow:0 0 0 1000px #fff inset !important; transition:background-color 9999s ease-out; }
.sm-input-group input::placeholder { color:#989898; }
.sm-input-group button { width:38px; height:38px; border:0; background:transparent; color:#74BD92; display:grid; place-items:center; cursor:pointer; border-radius:50%; }
.sm-form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.sm-auth-options { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:2px 6px; font-size:14px; }
.sm-auth-options a, .sm-auth-switch a, .sm-terms a { color:var(--sm-green); text-decoration:none; font-weight:600; }
.sm-check { display:flex; align-items:flex-start; gap:8px; cursor:pointer; color:#333; }
.sm-check input { position:absolute; opacity:0; pointer-events:none; }
.sm-check > span { width:20px; height:20px; border-radius:5px; border:1.5px solid #73C394; background:#fff; flex:0 0 auto; position:relative; margin-top:1px; }
.sm-check input:checked + span { background:var(--sm-green); border-color:var(--sm-green); }
.sm-check input:checked + span::after { content:""; position:absolute; width:8px; height:4px; border-left:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(-45deg); left:5px; top:5px; }
.sm-terms { font-size:13px; line-height:1.5; }
.sm-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 18px; border:1px solid transparent; border-radius:13px; font-weight:600; text-decoration:none !important; cursor:pointer; transition:transform var(--sm-transition), box-shadow var(--sm-transition), background var(--sm-transition), border-color var(--sm-transition); position:relative; overflow:hidden; white-space:nowrap; }
.sm-btn:hover { transform:translateY(-2px); }
.sm-btn:disabled { opacity:.55; cursor:not-allowed; transform:none; }
.sm-btn-primary { color:#fff !important; background:var(--sm-green); background:linear-gradient(135deg,color-mix(in srgb,var(--sm-green) 84%,white 16%),var(--sm-green-dark)); box-shadow:0 10px 22px rgba(var(--sm-green-rgb),.24); }
.sm-btn-primary:hover { box-shadow:0 14px 28px rgba(var(--sm-green-rgb),.33); }
.sm-btn-secondary { color:var(--sm-green) !important; background:#fff; border-color:#D8EEE2; box-shadow:0 6px 16px rgba(18,57,34,.05); }
.sm-btn-secondary:hover { background:#F3FBF7; border-color:#A9DBC0; }
.sm-btn-ghost { color:#4D5863 !important; background:#F6F7F8; border-color:#E8EBEE; }
.sm-btn-block { width:100%; min-height:58px; border-radius:999px; font-size:17px; letter-spacing:.2px; }
.sm-btn-sm { min-height:38px; padding:8px 14px; font-size:14px; }
.sm-btn-xs { min-height:30px; padding:5px 9px; font-size:13px; border-radius:9px; }
.sm-ripple { position:absolute; border-radius:50%; background:rgba(255,255,255,.35); transform:scale(0); animation:smRipple .6s linear; pointer-events:none; }
.sm-auth-divider { display:flex; align-items:center; gap:14px; color:#888; margin-top:12px; }
.sm-auth-divider::before,.sm-auth-divider::after { content:""; height:1px; background:#DDE2DF; flex:1; }
.sm-auth-switch { margin:0; text-align:center; color:#454545; font-size:15px; }
.sm-auth-site { position:relative; z-index:2; text-align:center; color:#8B8B8B; font-size:13px; margin:24px 0 0; }
.sm-auth-feedback,.sm-verification-note { position:relative; z-index:2; display:flex; gap:9px; align-items:flex-start; padding:12px 14px; border-radius:13px; font-size:14px; }
.sm-auth-feedback.is-error { background:#FFF0F0; color:#B42318; }
.sm-auth-feedback.is-success { background:#EAF9F1; color:#087A3D; }
.sm-auth-feedback.is-warning { background:#FFF8E7; color:#9A6500; }
.sm-kpi-card small.sm-neutral { color:var(--sm-muted); }
.sm-verification-note { padding:8px 3px; color:var(--sm-green); background:transparent; }
.sm-password-strength { display:grid; gap:7px; margin-top:-7px; padding:0 8px; }
.sm-password-strength > span { height:4px; width:0; border-radius:999px; background:var(--sm-danger); transition:width .25s ease,background .25s ease; }
.sm-password-strength small { color:#8B8B8B; font-size:13px; }
.sm-auth-result { position:relative; z-index:2; text-align:center; }
.sm-auth-result > span { width:76px; height:76px; margin:0 auto 16px; display:grid; place-items:center; border-radius:50%; background:#EAF9F1; color:var(--sm-green); }
.sm-auth-result > span .sm-icon { width:36px; height:36px; }
.sm-auth-result.is-error > span { background:#FFF0F0; color:var(--sm-danger); }
.sm-auth-result h2 { margin:0 0 8px; }
.sm-auth-result p { color:var(--sm-muted); margin:0 0 22px; }
.sm-verify-shell { position:relative; z-index:2; }
.sm-verify-shell .sm-auth-intro { margin-bottom:16px; }
.sm-verify-code-form { margin-top:16px; }
.sm-code-input { display:grid; gap:8px; color:var(--sm-text); font-weight:700; text-align:center; }
.sm-code-input > span { font-size:14px; }
.sm-code-input input { width:100%; min-height:64px; padding:10px 18px; border:1px solid #DDE9E1; border-radius:18px; outline:0; background:#fff; color:var(--sm-text); box-shadow:0 8px 22px rgba(19,61,35,.08); font:700 28px/1.2 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; letter-spacing:.32em; text-align:center; transition:border-color var(--sm-transition),box-shadow var(--sm-transition),transform var(--sm-transition); }
.sm-code-input input::placeholder { color:#C5CEC8; opacity:1; }
.sm-code-input input:focus { border-color:var(--sm-green); box-shadow:0 0 0 4px rgba(var(--sm-green-rgb),.12),0 10px 25px rgba(19,61,35,.09); transform:translateY(-1px); }
.sm-code-input small { color:var(--sm-muted); font-size:12px; font-weight:500; }
.sm-verify-resend { display:grid; gap:10px; margin:18px 0 14px; padding-top:17px; border-top:1px solid #E5EAE7; color:var(--sm-muted); font-size:13px; text-align:center; }
.sm-verify-resend form { margin:0; }
.sm-verify-resend .sm-btn { min-height:46px; font-size:14px; }
.sm-verification-mail-state { display:block; margin-top:5px; color:var(--sm-muted); font-size:11px; line-height:1.35; }
.sm-verification-mail-state.is-failed { color:var(--sm-danger); font-weight:600; }

/* Main shell */
.smcrm-shell { min-height:100vh; display:grid; grid-template-columns:var(--sm-sidebar) minmax(0,1fr); background:linear-gradient(135deg,#F7F8FA 0%,#EFF1F4 100%); }
.sm-sidebar {
  width:var(--sm-sidebar); height:calc(100vh - 16px); position:fixed; z-index:40; inset:8px auto 8px 8px; display:flex; flex-direction:column; padding:18px 12px 16px; background:rgba(255,255,255,.92); border:1px solid rgba(255,255,255,.9); border-radius:22px; box-shadow:0 15px 40px rgba(35,48,61,.09); backdrop-filter:blur(18px); transition:width var(--sm-transition),transform var(--sm-transition); overflow:hidden; }
.sm-brand { min-height:64px; display:flex; align-items:center; gap:10px; padding:0 7px 12px; position:relative; flex:0 0 auto; }
.sm-brand img { width:52px; height:52px; object-fit:contain; flex:0 0 auto; }
.sm-brand-copy { min-width:0; display:flex; flex-direction:column; }
.sm-brand-copy strong { font-size:16px; line-height:1.2; letter-spacing:-.2px; white-space:nowrap; }
.sm-brand-copy small { font-size:12px; color:var(--sm-muted); margin-top:3px; white-space:nowrap; }
.sm-sidebar-collapse { width:28px; height:28px; position:absolute; right:-2px; top:18px; border:0; border-radius:10px; background:#F2F6F4; color:var(--sm-green); display:grid; place-items:center; cursor:pointer; opacity:0; transition:opacity .2s ease; }
.sm-brand:hover .sm-sidebar-collapse { opacity:1; }
.sm-sidebar-collapse .sm-icon { width:15px; height:15px; }
.sm-nav { display:flex; flex-direction:column; gap:3px; overflow-y:auto; overflow-x:hidden; padding:2px 2px 10px; scrollbar-width:thin; scrollbar-color:#D6E5DC transparent; }
.sm-nav-item { min-height:42px; display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:11px; color:#4C5560 !important; font-size:14px; font-weight:500; text-decoration:none !important; white-space:nowrap; transition:background var(--sm-transition),color var(--sm-transition),box-shadow var(--sm-transition),transform var(--sm-transition); }
.sm-nav-item .sm-icon { width:18px; height:18px; color:var(--sm-green); }
.sm-nav-item:hover { background:#F0FAF5; color:#111 !important; transform:translateX(2px); }
.sm-nav-item.is-active { color:#fff !important; background:var(--sm-green); background:linear-gradient(135deg,color-mix(in srgb,var(--sm-green) 86%,white 14%),var(--sm-green-dark)); box-shadow:0 10px 22px rgba(var(--sm-green-rgb),.23); }
.sm-nav-item.is-active .sm-icon { color:#fff; }
.sm-nav-badge { margin-left:auto; min-width:22px; height:22px; display:grid; place-items:center; padding:0 6px; border-radius:999px; background:#E9F7EF; color:var(--sm-green); font-size:13px; font-weight:700; }
.sm-nav-item.is-active .sm-nav-badge { background:rgba(255,255,255,.2); color:#fff; }
.sm-nav-group { border-radius:12px; }
.sm-nav-group > summary {
  min-height:42px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 12px;
  border-radius:11px;
  color:#4C5560;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
  list-style:none;
  transition:background var(--sm-transition),color var(--sm-transition);
}
.sm-nav-group > summary::-webkit-details-marker { display:none; }
.sm-nav-group > summary .sm-icon { width:18px; height:18px; color:var(--sm-green); }
.sm-nav-group > summary .sm-icon:last-child { width:15px; height:15px; margin-left:auto; transition:transform var(--sm-transition); }
.sm-nav-group[open] > summary .sm-icon:last-child { transform:rotate(180deg); }
.sm-nav-group > summary:hover,.sm-nav-group.is-active > summary { color:#111; background:#F0FAF5; }
.sm-nav-children { display:flex; flex-direction:column; gap:3px; margin:3px 0 6px 17px; padding-left:9px; border-left:1px solid #DCECE3; }
.sm-nav-child { min-height:38px; padding:7px 10px; font-size:13px; }
.sm-nav-child .sm-icon { width:16px; height:16px; }
.sm-logout { color:#D73B3B !important; flex:0 0 auto; }
.sm-logout .sm-icon { color:#D73B3B; }
.sm-main { grid-column:2; min-width:0; min-height:100vh; padding:18px 24px 120px; transition:margin var(--sm-transition); }
.sm-topbar { min-height:82px; display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:16px; }
.sm-heading { min-width:260px; }
.sm-heading p { margin:0 0 2px; color:#39414A; font-size:14px; }
.sm-heading h1 { margin:0; font-size:29px; line-height:1.25; font-weight:600; letter-spacing:-.7px; }
.sm-heading > span { display:block; margin-top:3px; color:var(--sm-muted); font-size:13px; }
.sm-header-tools { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.sm-global-search { width:min(260px,22vw); min-width:190px; height:46px; display:flex; align-items:center; gap:9px; padding:0 14px; background:#fff; border:1px solid #EEF0F3; border-radius:999px; box-shadow:0 8px 22px rgba(33,47,61,.07); color:#7C8792; }
.sm-global-search .sm-icon { width:17px; height:17px; }
.sm-global-search input { min-width:0; width:100%; border:0; outline:0; background:transparent; font-size:13px; }
.sm-icon-button { width:44px; height:44px; border:1px solid #EEF0F2; border-radius:50%; background:#fff; color:#26313B; display:grid; place-items:center; cursor:pointer; box-shadow:0 8px 22px rgba(33,47,61,.07); position:relative; transition:transform var(--sm-transition),box-shadow var(--sm-transition); }
.sm-icon-button:hover { transform:translateY(-2px); box-shadow:var(--sm-shadow-hover); color:var(--sm-green); }
.sm-icon-button .sm-icon { width:18px; height:18px; }
.sm-count-badge { position:absolute; top:-4px; right:-3px; min-width:18px; height:18px; padding:0 5px; display:grid; place-items:center; border-radius:999px; background:var(--sm-green); color:#fff; font-size:12px; font-weight:700; border:2px solid #fff; }
.sm-date-chip { height:46px; display:flex; align-items:center; gap:10px; padding:0 14px; border:1px solid #EEF0F2; border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(33,47,61,.07); }
.sm-date-chip > span { color:var(--sm-green); display:grid; place-items:center; }
.sm-date-chip div { display:flex; flex-direction:column; line-height:1.2; }
.sm-date-chip strong { font-size:13px; font-weight:600; }
.sm-date-chip small { font-size:12px; color:var(--sm-muted); }
.sm-profile-chip { min-width:176px; height:48px; display:flex; align-items:center; gap:9px; padding:4px 10px 4px 5px; border:1px solid #EEF0F2; border-radius:999px; background:#fff; cursor:pointer; box-shadow:0 8px 22px rgba(33,47,61,.07); }
.sm-profile-chip img { width:38px; height:38px; border-radius:50%; object-fit:cover; border:2px solid #E5F5EC; }
.sm-profile-chip > span { min-width:0; display:flex; flex-direction:column; align-items:flex-start; line-height:1.2; flex:1; }
.sm-profile-chip strong { font-size:13px; white-space:nowrap; max-width:100px; overflow:hidden; text-overflow:ellipsis; }
.sm-profile-chip small { color:var(--sm-green); font-size:11px; }
.sm-profile-chip > .sm-icon { width:14px; height:14px; }
.sm-dropdown-wrap { position:relative; }
.sm-dropdown { position:absolute; z-index:80; top:calc(100% + 10px); right:0; width:330px; max-height:480px; overflow:auto; background:#fff; border:1px solid #EDF0F2; border-radius:18px; box-shadow:0 22px 55px rgba(22,35,46,.16); opacity:0; visibility:hidden; transform:translateY(-8px) scale(.98); transform-origin:top right; transition:all .2s ease; }
.sm-dropdown.is-open { opacity:1; visibility:visible; transform:translateY(0) scale(1); }
.sm-dropdown-head { display:flex; align-items:center; justify-content:space-between; padding:16px 16px 10px; border-bottom:1px solid #F0F2F4; }
.sm-dropdown-head strong { font-size:15px; }
.sm-dropdown-head button { border:0; background:transparent; color:var(--sm-green); font-size:12px; cursor:pointer; }
.sm-dropdown-list { padding:6px; }
.sm-dropdown-item { display:flex; gap:10px; padding:10px; border-radius:12px; text-decoration:none !important; }
.sm-dropdown-item:hover { background:#F5FAF7; }
.sm-dropdown-item.is-unread { background:#F0FAF5; }
.sm-mini-icon { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; background:#E4F7ED; color:var(--sm-green); }
.sm-mini-icon .sm-icon { width:15px; height:15px; }
.sm-dropdown-item > span:last-child { min-width:0; display:flex; flex-direction:column; }
.sm-dropdown-item strong { font-size:13px; }
.sm-dropdown-item small { color:var(--sm-muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:230px; }
.sm-dropdown-item time { color:#999; font-size:11px; margin-top:3px; }
.sm-dropdown-footer { height:42px; display:flex; align-items:center; justify-content:center; gap:8px; color:var(--sm-green) !important; border-top:1px solid #F0F2F4; text-decoration:none !important; font-size:13px; font-weight:600; }
.sm-dropdown-footer .sm-icon { width:14px; height:14px; }
.sm-profile-menu { width:210px; padding:7px; }
.sm-profile-menu a { display:flex; align-items:center; gap:9px; padding:10px; border-radius:10px; text-decoration:none !important; font-size:13px; }
.sm-profile-menu a:hover { background:#F1F8F4; color:var(--sm-green); }
.sm-profile-menu .sm-icon { width:16px; height:16px; }
.sm-empty-mini { padding:28px 14px; text-align:center; color:var(--sm-muted); font-size:13px; }
.sm-mobile-menu { display:none; }
.sm-content { animation:smFadeIn .35s ease both; }
.sm-footer { text-align:center; color:#858E97; font-size:12px; margin-top:30px; }

/* Notices */
.sm-notice { display:flex; align-items:center; gap:10px; min-height:48px; margin-bottom:16px; padding:10px 14px; border-radius:14px; border:1px solid #DCEFE4; background:#F1FBF5; color:#08783D; box-shadow:0 7px 18px rgba(28,70,45,.05); }
.sm-notice.is-error { background:#FFF2F2; border-color:#FAD5D5; color:#B42318; }
.sm-notice.is-warning { background:#FFF8E9; border-color:#FBE8B8; color:#8A5A00; }
.sm-notice.is-info { background:#EFF6FF; border-color:#D4E6FF; color:#215EA7; }
.sm-notice span { flex:1; font-size:13px; }
.sm-notice button { border:0; background:transparent; font-size:22px; line-height:1; color:inherit; cursor:pointer; }

/* Generic layout and cards */
.sm-card { background:var(--sm-card); border:1px solid rgba(236,239,243,.9); border-radius:var(--sm-radius); box-shadow:var(--sm-shadow); transition:transform var(--sm-transition),box-shadow var(--sm-transition); }
.sm-card:hover { box-shadow:var(--sm-shadow-hover); }
.sm-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.sm-card-head h2,.sm-card-head h3 { margin:0; font-size:15px; font-weight:600; }
.sm-card-head p { margin:3px 0 0; color:var(--sm-muted); font-size:13px; }
.sm-card-head select { min-height:32px; padding:5px 28px 5px 10px; border-radius:9px; border:1px solid #EDF0F2; background:#FAFBFC; color:#58616B; font-size:12px; }
.sm-page-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.sm-page-actions > div:first-child { min-width:0; }
.sm-page-actions > div:last-child { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.sm-page-actions h2 { margin:0; font-size:22px; font-weight:600; }
.sm-page-actions p { margin:4px 0 0; color:var(--sm-muted); font-size:13px; }
.sm-eyebrow { color:var(--sm-green); font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:1.2px; }

/* Dashboard */
.sm-kpi-grid { display:grid; grid-template-columns:repeat(5,minmax(150px,1fr)); gap:14px; margin-bottom:16px; }
.sm-kpi-card { min-height:114px; display:flex; justify-content:space-between; gap:10px; padding:20px; background:#fff; border:1px solid #EDF0F3; border-radius:17px; box-shadow:var(--sm-shadow); transition:transform var(--sm-transition),box-shadow var(--sm-transition); }
.sm-kpi-card:hover { transform:translateY(-4px); box-shadow:var(--sm-shadow-hover); }
.sm-kpi-card > div { display:flex; flex-direction:column; min-width:0; }
.sm-kpi-card > div > span { color:#26323D; font-size:13px; }
.sm-kpi-card strong { margin:7px 0 2px; font-size:27px; line-height:1.1; font-weight:600; letter-spacing:-.6px; }
.sm-kpi-card small { font-size:11px; font-weight:600; }
.sm-kpi-card small em { color:var(--sm-muted); font-style:normal; font-weight:400; }
.sm-positive { color:var(--sm-green) !important; }
.sm-negative { color:var(--sm-danger) !important; }
.sm-kpi-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:50%; flex:0 0 auto; }
.sm-kpi-icon .sm-icon { width:22px; height:22px; }
.tone-green { color:#04984B !important; background:#DDF5E8 !important; }
.tone-blue { color:#2877E5 !important; background:#E0EDFF !important; }
.tone-pink { color:#E63D78 !important; background:#FFE2EC !important; }
.tone-red { color:#EB4E43 !important; background:#FFE7E3 !important; }
.tone-orange { color:#EA8B22 !important; background:#FFF0D9 !important; }
.sm-dashboard-main-grid { display:grid; grid-template-columns:minmax(340px,.95fr) minmax(480px,1.25fr) 220px; gap:16px; margin-bottom:16px; }
.sm-pipeline-summary,.sm-revenue-chart { padding:18px; min-height:296px; }
.sm-pipeline-summary-body { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:18px; height:calc(100% - 30px); }
.sm-donut { width:112px; aspect-ratio:1; border-radius:50%; display:grid; place-items:center; position:relative; flex:0 0 auto; }
.sm-donut::before { content:""; position:absolute; inset:23%; border-radius:50%; background:#fff; box-shadow:inset 0 0 0 1px #F1F3F5; }
.sm-donut > div { position:relative; z-index:2; text-align:center; display:flex; flex-direction:column; }
.sm-donut > div strong { font-size:24px; line-height:1; }
.sm-donut > div span { color:var(--sm-muted); font-size:12px; margin-top:5px; }
.sm-donut-large { width:min(175px,100%); margin:auto; }
.sm-donut-legend,.sm-compact-legend,.sm-performance-card ul,.sm-project-performance ul,.sm-list-card ul,.sm-upcoming-card ul,.sm-role-card ul { list-style:none; padding:0; margin:0; }
.sm-donut-legend { display:grid; gap:8px; }
.sm-donut-legend li { display:grid; grid-template-columns:8px 1fr auto; align-items:center; gap:8px; font-size:12px; }
.sm-donut-legend li > span { width:7px; height:7px; border-radius:50%; background:hsl(calc(145deg - var(--shade) * 7deg),65%,calc(37% + var(--shade) * 5%)); }
.sm-donut-legend b { font-weight:500; color:#4A5560; }
.sm-donut-legend em { color:#5D6874; font-style:normal; }
.sm-revenue-total { display:block; color:var(--sm-green); font-size:22px; margin-top:7px; }
.sm-revenue-chart .sm-card-head small { display:block; margin-top:3px; font-size:11px; }
.sm-revenue-chart .sm-card-head small span { color:var(--sm-muted); }
.sm-chart-container { position:relative; height:205px; margin-top:5px; }
.sm-chart-container canvas { width:100% !important; height:100% !important; display:block; }
.sm-quick-stats { display:grid; grid-template-rows:repeat(3,1fr); gap:14px; }
.sm-quick-card { min-height:62px; padding:15px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sm-quick-card > div { display:flex; flex-direction:column; }
.sm-quick-card > div > span { color:#26323D; font-size:12px; }
.sm-quick-card strong { font-size:23px; line-height:1.25; font-weight:600; }
.sm-quick-card a { display:flex; align-items:center; gap:5px; color:var(--sm-green) !important; font-size:11px; text-decoration:none !important; }
.sm-quick-card a .sm-icon { width:12px; height:12px; }
.sm-quick-card .sm-kpi-icon { width:42px; height:42px; }
.sm-dashboard-mid-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:16px; margin-bottom:16px; }
.sm-dashboard-mid-grid > .sm-card { min-height:184px; padding:16px; }
.sm-small-chart-body { display:flex; align-items:center; gap:18px; margin-top:12px; }
.sm-compact-legend { flex:1; display:grid; gap:8px; }
.sm-compact-legend li { display:grid; grid-template-columns:7px 1fr auto; gap:7px; align-items:center; font-size:11px; }
.sm-compact-legend li > span { width:7px; height:7px; border-radius:50%; background:hsl(calc(145deg + var(--i) * 12deg),65%,calc(36% + var(--i) * 6%)); }
.sm-compact-legend b { font-weight:500; }
.sm-compact-legend em { font-style:normal; color:var(--sm-muted); }
.sm-performance-card ul,.sm-project-performance ul { display:grid; gap:8px; margin-top:12px; }
.sm-performance-card li { display:grid; grid-template-columns:25px minmax(85px,1fr) 90px 25px; align-items:center; gap:7px; font-size:11px; }
.sm-performance-card li img { width:24px; height:24px; border-radius:50%; object-fit:cover; }
.sm-performance-card li > span { display:flex; justify-content:space-between; gap:4px; }
.sm-performance-card li b { font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sm-performance-card li small { color:var(--sm-muted); white-space:nowrap; }
.sm-progress { height:6px; border-radius:999px; background:#EDEFF3; overflow:hidden; }
.sm-progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--sm-green),#43C77F); }
.sm-performance-card li em { color:var(--sm-muted); font-style:normal; text-align:right; }
.sm-project-performance li { display:grid; grid-template-columns:22px 1fr auto auto; align-items:center; gap:7px; font-size:11px; }
.sm-project-icon { width:20px; height:20px; display:grid; place-items:center; border-radius:50%; background:#E8F8EF; color:var(--sm-green); }
.sm-project-icon .sm-icon { width:11px; height:11px; }
.sm-project-performance li b { font-weight:500; }
.sm-project-performance li small { color:var(--sm-muted); }
.sm-project-performance li em { padding:3px 6px; border-radius:999px; color:var(--sm-green); background:#E9F8F0; font-style:normal; }
.sm-dashboard-bottom-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.sm-list-card { min-height:205px; padding:16px; }
.sm-list-card ul { display:grid; gap:8px; margin-top:12px; }
.sm-list-card li { min-height:25px; display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:7px; font-size:11px; }
.sm-list-card li img { width:23px; height:23px; border-radius:50%; object-fit:cover; }
.sm-list-card li > span:nth-child(2) { display:flex; flex-direction:column; min-width:0; }
.sm-list-card li b { font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sm-list-card li small { color:var(--sm-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sm-list-card li time { color:#7F8993; white-space:nowrap; font-size:10px; }
.sm-list-icon { width:22px; height:22px; display:grid; place-items:center; border-radius:7px; color:var(--sm-green); background:#ECF9F2; }
.sm-list-icon .sm-icon { width:11px; height:11px; }
.sm-card-link { display:flex; align-items:center; gap:8px; margin-top:14px; color:var(--sm-green) !important; font-size:11px; text-decoration:none !important; }
.sm-card-link .sm-icon { width:13px; height:13px; }
.sm-empty-row { color:var(--sm-muted); font-size:13px !important; display:block !important; padding:18px 0; text-align:center; }

/* Forms and filters */
.sm-filter-bar { display:flex; align-items:center; gap:9px; padding:12px; margin-bottom:16px; }
.sm-filter-bar input,.sm-filter-bar select,.sm-form-grid input,.sm-form-grid select,.sm-form-grid textarea,.sm-settings-layout input,.sm-settings-layout select,.sm-settings-layout textarea,.sm-profile-form input,.sm-message-form input,.sm-message-form select,.sm-message-form textarea,.sm-export-card input,.sm-export-card select,.sm-upload-card select {
  width:100%; min-height:42px; border:1px solid #E6EAED; border-radius:11px; padding:9px 12px; background:#FAFBFC; color:#222; outline:0; transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.sm-form-grid textarea,.sm-settings-layout textarea,.sm-profile-form textarea,.sm-message-form textarea { resize:vertical; min-height:100px; }
.sm-filter-bar input:focus,.sm-filter-bar select:focus,.sm-form-grid input:focus,.sm-form-grid select:focus,.sm-form-grid textarea:focus,.sm-settings-layout input:focus,.sm-settings-layout select:focus,.sm-settings-layout textarea:focus,.sm-profile-form input:focus,.sm-message-form input:focus,.sm-message-form select:focus,.sm-message-form textarea:focus,.sm-export-card input:focus,.sm-export-card select:focus,.sm-upload-card select:focus { border-color:color-mix(in srgb,var(--sm-green) 52%,white 48%); box-shadow:0 0 0 3px rgba(var(--sm-green-rgb),.08); background:#fff; }
.sm-filter-search { min-width:250px; flex:1; display:flex; align-items:center; gap:8px; padding:0 12px; min-height:42px; border:1px solid #E6EAED; border-radius:11px; background:#FAFBFC; color:#89939D; }
.sm-filter-search input { border:0; background:transparent; padding:0; box-shadow:none; min-height:auto; }
.sm-filter-search .sm-icon { width:16px; height:16px; }
.sm-filter-bar > select { width:auto; min-width:135px; }
.sm-filter-bar > label:not(.sm-filter-search) { display:grid; gap:4px; color:var(--sm-muted); font-size:12px; }
.sm-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.sm-form-grid label,.sm-settings-layout label,.sm-profile-form label,.sm-message-form label,.sm-upload-card label { display:grid; gap:6px; color:#4A535C; font-size:13px; font-weight:500; }
.sm-form-grid label small,.sm-profile-form label small { color:var(--sm-muted); font-size:11px; font-weight:400; }
.sm-field-span-2 { grid-column:1/-1; }

/* Tables */
.sm-table-card { overflow:hidden; }
.sm-table-toolbar { min-height:66px; padding:13px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; border-bottom:1px solid #EFF1F3; }
.sm-table-toolbar > div { display:flex; flex-direction:column; }
.sm-table-toolbar strong { font-size:15px; }
.sm-table-toolbar span { color:var(--sm-muted); font-size:12px; }
.sm-table-search { width:230px; height:38px; display:flex; align-items:center; gap:8px; padding:0 11px; border:1px solid #E7EAED; border-radius:10px; background:#FAFBFC; color:#89939D; }
.sm-table-search input { min-width:0; width:100%; border:0; outline:0; background:transparent; font-size:12px; }
.sm-table-search .sm-icon { width:15px; height:15px; }
.sm-bulk-bar { display:flex; align-items:center; gap:8px; padding:9px 16px; border-bottom:1px solid #EFF1F3; background:#FAFCFB; }
.sm-bulk-bar select { min-height:34px; border:1px solid #E4E8EB; border-radius:9px; background:#fff; padding:5px 28px 5px 9px; font-size:12px; }
.sm-table-wrap { width:100%; overflow:auto; }
.sm-table-wrap table { width:100%; min-width:1000px; border-collapse:separate; border-spacing:0; }
.sm-table-wrap th { position:sticky; top:0; z-index:3; height:46px; padding:10px 13px; background:#FAFBFC; border-bottom:1px solid #E9ECEF; color:#69737D; text-align:left; font-size:12px; font-weight:600; white-space:nowrap; cursor:default; }
.sm-table-wrap th[data-sort] { cursor:pointer; }
.sm-table-wrap th[data-sort]::after { content:"↕"; margin-left:5px; opacity:.35; }
.sm-table-wrap td { padding:12px 13px; border-bottom:1px solid #F0F1F3; color:#303943; font-size:12px; vertical-align:middle; }
.sm-table-wrap tbody tr { transition:background .2s ease,transform .2s ease; }
.sm-table-wrap tbody tr:hover { background:#F7FCF9; }
.sm-table-wrap td strong { display:block; font-size:12px; font-weight:600; }
.sm-table-wrap td small { display:block; color:var(--sm-muted); font-size:11px; margin-top:2px; }
.sm-table-wrap input[type="checkbox"] { accent-color:var(--sm-green); }
.sm-lead-id { color:#246B46; font-weight:600; }
.sm-person-cell { display:flex; align-items:center; gap:9px; min-width:150px; }
.sm-person-cell.compact { min-width:115px; }
.sm-person-cell img,.sm-avatar-initial { width:34px; height:34px; border-radius:50%; flex:0 0 auto; object-fit:cover; }
.sm-avatar-initial { display:grid; place-items:center; background:linear-gradient(145deg,#DDF5E8,#BEE9D0); color:var(--sm-green-dark); font-size:14px; font-weight:700; }
.sm-person-cell > span { min-width:0; }
.sm-status,.sm-priority { display:inline-flex; align-items:center; justify-content:center; min-height:24px; padding:3px 9px; border-radius:999px; font-size:11px; font-weight:600; white-space:nowrap; }
.sm-status-new,.sm-status-pending,.sm-status-scheduled { background:#EEF1FF; color:#5564D8; }
.sm-status-not_connected { background:#FFF2E5; color:#B54708; }
.sm-status-pending_call { background:#FFF4D6; color:#986300; }
.sm-status-contacted,.sm-status-in-progress,.sm-status-rescheduled { background:#E9F4FF; color:#3478C8; }
.sm-status-power_off { background:#F2F3F5; color:#5D6670; }
.sm-status-interested,.sm-status-visit,.sm-status-negotiation { background:#FFF5DD; color:#9A6A00; }
.sm-status-booking,.sm-status-payment { background:#E7F8EF; color:#078646; }
.sm-status-converted,.sm-status-active,.sm-status-completed { background:#E7F8EF; color:#08783D; }
.sm-status-completed_on_time { background:#E7F8EF; color:#08783D; }
.sm-status-completed_late,.sm-status-missed { background:#FFF2E5; color:#B54708; }
.sm-status-lost,.sm-status-suspended,.sm-status-cancelled { background:#FFF0F0; color:#B42318; }
.sm-status-archived,.sm-status-inactive { background:#EFF1F3; color:#69737D; }
.sm-presence { display:inline-flex; align-items:center; gap:7px; min-height:28px; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; }
.sm-presence i,.sm-presence-inline i { width:8px; height:8px; border-radius:50%; background:currentColor; flex:0 0 auto; }
.sm-presence.is-online { background:#E7F8EF; color:#08783D; }
.sm-presence.is-offline { background:#EFF1F3; color:#5D6670; }
.sm-presence.is-inactive { background:#FFF0F0; color:#B42318; }
.sm-presence.is-online i { box-shadow:0 0 0 4px rgba(8,120,61,.12); }
.sm-presence-inline { display:inline-flex; align-items:center; gap:5px; margin-left:5px; font-weight:600; white-space:nowrap; }
.sm-presence-inline i { width:6px; height:6px; }
.sm-presence-inline.is-online { color:#08783D; }
.sm-presence-inline.is-offline { color:#69737D; }
.sm-last-seen { display:block; min-width:150px; }
.sm-last-seen strong { white-space:nowrap; }
#users-table { min-width:1500px; }
.sm-priority-cold,.sm-priority-low { background:#EAF2FF; color:#3570B8; }
.sm-priority-warm,.sm-priority-medium { background:#FFF3DB; color:#A36A00; }
.sm-priority-hot,.sm-priority-high,.sm-priority-urgent { background:#FFE6E6; color:#C03333; }
.sm-row-actions { display:flex; align-items:center; gap:5px; }
.sm-row-actions a,.sm-row-actions button { width:30px; height:30px; display:grid; place-items:center; border:1px solid #E8EBEE; border-radius:9px; background:#fff; color:#52606B !important; text-decoration:none !important; cursor:pointer; }
.sm-row-actions a:hover { border-color:#B9E1CA; color:var(--sm-green) !important; background:#F4FBF7; }
.sm-row-actions .is-danger { color:#D83E3E !important; }
.sm-row-actions .sm-icon { width:14px; height:14px; }
.sm-row-actions a.sm-action-preview { width:auto; grid-auto-flow:column; gap:5px; padding:0 9px; color:var(--sm-green-dark) !important; font-size:11px; font-weight:600; white-space:nowrap; }
.sm-row-actions.text-actions a { width:auto; padding:0 9px; font-size:11px; }
.sm-table-pagination { min-height:54px; display:flex; align-items:center; justify-content:flex-end; gap:5px; padding:10px 14px; }
.sm-table-pagination button { min-width:30px; height:30px; border:1px solid #E4E8EB; border-radius:8px; background:#fff; color:#53606B; cursor:pointer; font-size:12px; }
.sm-table-pagination button.is-active { background:var(--sm-green); color:#fff; border-color:var(--sm-green); }
.sm-table-pagination button:disabled { opacity:.4; cursor:not-allowed; }
.sm-empty-state { min-height:220px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:30px; text-align:center; color:var(--sm-muted); }
.sm-empty-state.compact { min-height:120px; }
.sm-empty-state > .sm-icon { width:42px; height:42px; color:#9BCEB1; margin-bottom:10px; }
.sm-empty-state strong { color:#2D3740; font-size:15px; }
.sm-empty-state p { margin:5px 0 14px; font-size:13px; }

/* Modals */
.sm-modal { position:fixed; z-index:120; inset:0; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(16,27,35,.42); backdrop-filter:blur(5px); opacity:0; visibility:hidden; transition:opacity .2s ease,visibility .2s ease; }
.sm-modal.is-open { opacity:1; visibility:visible; }
.sm-modal-dialog { width:min(680px,100%); max-height:calc(100vh - 48px); overflow:auto; background:#fff; border-radius:22px; box-shadow:0 30px 90px rgba(7,25,17,.28); transform:translateY(24px) scale(.98); transition:transform .25s ease; }
.sm-modal.is-open .sm-modal-dialog { transform:translateY(0) scale(1); }
.sm-modal-wide .sm-modal-dialog,.sm-modal-dialog.sm-modal-wide { width:min(880px,100%); }
.sm-modal-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px 20px; border-bottom:1px solid #EEF0F2; position:sticky; top:0; z-index:2; background:#fff; }
.sm-modal-head span { color:var(--sm-green); font-size:12px; text-transform:uppercase; letter-spacing:.8px; }
.sm-modal-head h3 { margin:2px 0 0; font-size:19px; }
.sm-modal-head button,.sm-modal-head > a { width:34px; height:34px; border:0; border-radius:10px; background:#F4F6F7; color:#535D66 !important; display:grid; place-items:center; cursor:pointer; text-decoration:none !important; }
.sm-modal-dialog > form { padding:20px; }
.sm-modal-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; padding-top:5px; }
body.sm-modal-open { overflow:hidden; }

/* Pipeline */
.sm-pipeline-board { display:flex; gap:12px; overflow-x:auto; padding:14px; min-height:600px; }
.sm-pipeline-column { width:250px; min-width:250px; border-radius:15px; background:#F4F6F7; padding:10px; }
.sm-pipeline-column > header { display:grid; grid-template-columns:9px 1fr auto; align-items:center; gap:7px; padding:4px 4px 10px; }
.sm-pipeline-column h3 { margin:0; font-size:13px; font-weight:600; }
.sm-pipeline-column header b { min-width:23px; height:23px; display:grid; place-items:center; border-radius:999px; background:#fff; color:#65717C; font-size:11px; }
.sm-pipeline-dot { width:8px; height:8px; border-radius:50%; background:var(--sm-green); }
.status-not_connected { background:#F79009; }.status-pending_call { background:#E4B33B; }.status-contacted { background:#4291F5; }.status-power_off { background:#7A848E; }.status-interested { background:#E4B33B; }.status-visit { background:#F08D42; }.status-negotiation { background:#2AB6A2; }.status-booking { background:#C85CC5; }.status-payment { background:#4AAE72; }.status-converted { background:var(--sm-green); }.status-lost { background:var(--sm-danger); }
.sm-pipeline-dropzone { min-height:520px; display:flex; flex-direction:column; gap:8px; border-radius:11px; transition:background .2s ease; }
.sm-pipeline-column.is-drag-over .sm-pipeline-dropzone { background:rgba(var(--sm-green-rgb),.08); outline:2px dashed rgba(var(--sm-green-rgb),.35); }
.sm-pipeline-card { padding:12px; border-radius:12px; background:#fff; border:1px solid #EAEDF0; box-shadow:0 5px 14px rgba(31,45,56,.06); cursor:grab; transition:transform .2s ease,box-shadow .2s ease; }
.sm-pipeline-card:active { cursor:grabbing; }
.sm-pipeline-card.is-dragging { opacity:.55; transform:rotate(1deg) scale(.98); }
.sm-pipeline-card:hover { transform:translateY(-2px); box-shadow:0 9px 20px rgba(var(--sm-green-rgb),.12); }
.sm-pipeline-card > div { display:flex; align-items:center; gap:8px; }
.sm-pipeline-card .sm-avatar-initial { width:29px; height:29px; font-size:13px; }
.sm-pipeline-card strong { display:block; font-size:13px; }
.sm-pipeline-card small { display:block; color:var(--sm-muted); font-size:11px; }
.sm-pipeline-card p { margin:10px 0; color:#5D6873; font-size:11px; }
.sm-pipeline-card footer { display:flex; align-items:center; justify-content:space-between; }
.sm-pipeline-card footer b { font-size:11px; }
.sm-pipeline-empty { min-height:80px; display:grid; place-items:center; color:#A0A8AF; font-size:12px; border:1px dashed #D9DEE2; border-radius:10px; }

/* Projects */
.sm-project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.sm-project-card { padding:18px; }
.sm-project-card-top { display:flex; align-items:center; justify-content:space-between; }
.sm-project-mark { width:44px; height:44px; display:grid; place-items:center; border-radius:13px; background:#E8F8EF; color:var(--sm-green); }
.sm-project-card h3 { margin:14px 0 3px; font-size:16px; }
.sm-project-card > p { margin:0; display:flex; align-items:center; gap:5px; color:var(--sm-muted); font-size:12px; }
.sm-project-card > p .sm-icon { width:13px; height:13px; }
.sm-project-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:18px 0; }
.sm-project-metrics span { min-width:0; padding:10px; border-radius:11px; background:#F8FAF9; }
.sm-project-metrics b { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.sm-project-metrics small { color:var(--sm-muted); font-size:11px; }
.sm-project-availability > div:first-child { display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; font-size:11px; color:var(--sm-muted); }
.sm-project-availability b { color:#303943; }
.sm-project-card footer { display:flex; align-items:center; justify-content:space-between; margin-top:17px; padding-top:12px; border-top:1px solid #EFF1F3; }
.sm-project-card footer small { color:var(--sm-muted); font-size:11px; }

/* Task */
.sm-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.sm-summary-grid article { position:relative; min-height:105px; padding:18px; overflow:hidden; }
.sm-summary-grid span { color:var(--sm-muted); font-size:13px; }
.sm-summary-grid strong { display:block; margin-top:6px; font-size:26px; }
.sm-summary-grid i { width:45px; height:45px; position:absolute; right:16px; top:50%; transform:translateY(-50%); display:grid; place-items:center; border-radius:50%; font-style:normal; }
.sm-task-title { display:flex; gap:9px; min-width:230px; }
.sm-task-check { width:27px; height:27px; flex:0 0 auto; display:grid; place-items:center; border-radius:8px; background:#F1F4F5; color:#94A0AA; }
.sm-task-check.is-complete { background:#E6F7EE; color:var(--sm-green); }
.sm-task-check .sm-icon { width:15px; height:15px; }
.sm-overdue { color:#C93333 !important; }
.sm-inline-select { min-height:31px; border:1px solid #E3E7EA; border-radius:8px; background:#fff; padding:4px 22px 4px 7px; font-size:11px; }
.sm-task-progress { display:flex; align-items:center; gap:7px; min-width:130px; }
.sm-task-progress input { width:90px; accent-color:var(--sm-green); }
.sm-task-progress span { min-width:28px; color:var(--sm-muted); font-size:11px; }

/* Calendar */
.sm-calendar-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:16px; }
.sm-calendar-card { padding:16px; }
.sm-calendar-card > header { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.sm-calendar-card > header h3 { margin:0; font-size:16px; }
.sm-calendar-card > header button { width:32px; height:32px; border:1px solid #E5E9EC; border-radius:9px; background:#fff; cursor:pointer; color:#47515A; }
.sm-calendar-weekdays,.sm-calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); }
.sm-calendar-weekdays span { padding:9px 5px; text-align:center; color:#74808B; font-size:12px; font-weight:600; }
.sm-calendar-day { min-height:103px; padding:7px; border-top:1px solid #EDF0F2; border-left:1px solid #EDF0F2; background:#fff; transition:background .2s ease; }
.sm-calendar-day:nth-child(7n) { border-right:1px solid #EDF0F2; }
.sm-calendar-day:nth-last-child(-n+7) { border-bottom:1px solid #EDF0F2; }
.sm-calendar-day.is-other { background:#FAFBFC; color:#ABB2B8; }
.sm-calendar-day.is-today { background:#F0FAF5; box-shadow:inset 0 0 0 1px #A9DEC0; }
.sm-calendar-day > strong { width:25px; height:25px; display:grid; place-items:center; border-radius:8px; font-size:12px; }
.sm-calendar-day.is-today > strong { background:var(--sm-green); color:#fff; }
.sm-calendar-events { display:grid; gap:3px; margin-top:4px; }
.sm-calendar-event { display:block; padding:4px 5px; border-radius:5px; background:#E8F7EF; color:#08783D; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sm-calendar-event.is-task { background:#E8F0FF; color:#3567AE; }
.sm-calendar-event.is-visit { background:#FFF0DD; color:#995E00; }
.sm-upcoming-card { padding:16px; }
.sm-upcoming-card ul { display:grid; gap:10px; margin-top:14px; }
.sm-upcoming-card li { display:flex; gap:9px; align-items:flex-start; padding-bottom:10px; border-bottom:1px solid #EFF1F3; }
.sm-calendar-type { width:9px; height:9px; margin-top:4px; border-radius:50%; background:var(--sm-green); flex:0 0 auto; }
.sm-calendar-type.is-task { background:#4C82D8; }.sm-calendar-type.is-visit { background:#E9972C; }.sm-calendar-type.is-followup { background:var(--sm-green); }
.sm-upcoming-card li div { display:flex; flex-direction:column; }
.sm-upcoming-card li strong { font-size:12px; }
.sm-upcoming-card li small { color:var(--sm-muted); font-size:11px; }

/* Analytics and reports */
.sm-analytics-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.sm-analytics-kpis article { min-height:120px; padding:18px; position:relative; overflow:hidden; }
.sm-analytics-kpis span { color:var(--sm-muted); font-size:12px; }
.sm-analytics-kpis strong { display:block; max-width:80%; margin:7px 0 4px; font-size:23px; }
.sm-analytics-kpis small { color:var(--sm-muted); font-size:11px; }
.sm-analytics-kpis i { position:absolute; width:50px; height:50px; right:16px; top:18px; display:grid; place-items:center; border-radius:50%; background:#E7F8EF; color:var(--sm-green); }
.sm-analytics-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.sm-chart-card { padding:18px; min-height:310px; }
.sm-chart-card .sm-chart-container { height:245px; }
.sm-report-filter { justify-content:flex-start; }
.sm-report-grid { display:grid; gap:16px; }
.sm-report-card { overflow:hidden; }
.sm-report-card > .sm-card-head { padding:16px; border-bottom:1px solid #EEF0F2; }

/* Roles, import, export */
.sm-role-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.sm-role-card { padding:22px; }
.sm-role-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:16px; color:var(--sm-green); background:#E6F7EE; }
.sm-role-card h3 { margin:15px 0 5px; font-size:16px; }
.sm-role-card p { min-height:46px; margin:0; color:var(--sm-muted); font-size:12px; }
.sm-role-card ul { display:grid; gap:8px; margin-top:16px; }
.sm-role-card li { display:flex; align-items:center; gap:8px; font-size:12px; }
.sm-role-card li .sm-icon { width:14px; height:14px; color:var(--sm-green); }
.sm-permission-note { display:flex; align-items:center; gap:16px; padding:18px; margin-top:16px; }
.sm-permission-note > span { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; color:var(--sm-green); background:#E7F8EF; }
.sm-permission-note h3 { margin:0; font-size:15px; }
.sm-permission-note p { margin:3px 0 0; color:var(--sm-muted); font-size:12px; }
.sm-import-layout { display:grid; grid-template-columns:420px minmax(0,1fr); gap:16px; }
.sm-upload-card,.sm-import-guide,.sm-export-card { padding:22px; }
.sm-drop-upload { min-height:245px; display:flex !important; flex-direction:column; align-items:center; justify-content:center; text-align:center; border:2px dashed #B8DEC8; border-radius:16px; background:#F5FBF8; cursor:pointer; margin-bottom:14px; }
.sm-drop-upload input { display:none; }
.sm-drop-upload > span { width:62px; height:62px; display:grid; place-items:center; border-radius:50%; background:#E3F6EC; color:var(--sm-green); margin-bottom:10px; }
.sm-drop-upload strong { color:#26313A; font-size:15px; }
.sm-drop-upload p { margin:3px 0 0; color:var(--sm-muted); font-size:12px; }
.sm-import-guide h3 { margin:0 0 5px; font-size:16px; }
.sm-import-guide h4 { margin:18px 0 4px; }
.sm-import-guide p { color:var(--sm-muted); font-size:13px; }
.sm-code-columns { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.sm-code-columns code { padding:5px 8px; border-radius:7px; background:#EEF7F2; color:#27704A; font-size:11px; }
.sm-export-preview { display:flex; align-items:center; gap:14px; margin-top:22px; padding:18px; border-radius:16px; background:#F3FAF6; }
.sm-export-preview > span { width:48px; height:48px; display:grid; place-items:center; border-radius:13px; color:var(--sm-green); background:#DDF4E8; }
.sm-export-preview > div { flex:1; }
.sm-export-preview strong { font-size:15px; }
.sm-export-preview p { margin:3px 0 0; color:var(--sm-muted); font-size:12px; }

/* Notification, profile, settings */
.sm-notification-list { display:grid; gap:10px; }
.sm-notification-row { min-height:90px; display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:14px; padding:16px; }
.sm-notification-row.is-unread { border-left:3px solid var(--sm-green); background:linear-gradient(90deg,#F4FBF7,#fff 26%); }
.sm-notification-icon { width:45px; height:45px; display:grid; place-items:center; border-radius:14px; background:#E7F8EF; color:var(--sm-green); }
.sm-notification-row h3 { margin:0; font-size:14px; }
.sm-notification-row p { margin:3px 0; color:var(--sm-muted); font-size:12px; }
.sm-notification-row time { color:#969FA7; font-size:11px; }
.sm-settings-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.sm-settings-card { padding:20px; }
.sm-settings-section-head { display:flex; gap:12px; align-items:center; margin-bottom:18px; }
.sm-settings-section-head > span { width:44px; height:44px; display:grid; place-items:center; border-radius:13px; color:var(--sm-green); background:#E7F8EF; }
.sm-settings-section-head h3 { margin:0; font-size:15px; }
.sm-settings-section-head p { margin:3px 0 0; color:var(--sm-muted); font-size:12px; }
.sm-toggle-list { display:grid; gap:5px; }
.sm-toggle-list label { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0; border-bottom:1px solid #EFF1F3; cursor:pointer; }
.sm-toggle-list label > span { display:flex; flex-direction:column; }
.sm-toggle-list strong { font-size:13px; }
.sm-toggle-list small { color:var(--sm-muted); font-size:11px; }
.sm-toggle-list input { position:absolute; opacity:0; }
.sm-toggle-list i { width:42px; height:23px; position:relative; border-radius:999px; background:#D7DDE1; transition:background .2s ease; }
.sm-toggle-list i::after { content:""; width:17px; height:17px; position:absolute; top:3px; left:3px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.16); transition:transform .2s ease; }
.sm-toggle-list input:checked + i { background:var(--sm-green); }
.sm-toggle-list input:checked + i::after { transform:translateX(19px); }
.sm-settings-actions { grid-column:1/-1; display:flex; justify-content:flex-end; }
.sm-brand-logo-editor { display:grid; grid-template-columns:150px minmax(0,1fr); align-items:center; gap:20px; }
.sm-brand-logo-preview { width:150px; height:120px; display:grid; place-items:center; padding:14px; border:1px solid var(--sm-border); border-radius:16px; background:linear-gradient(145deg,var(--sm-card),var(--sm-green-soft)); }
.sm-brand-logo-preview img { display:block; max-width:100%; max-height:100%; object-fit:contain; }
.sm-favicon-editor { display:grid; grid-template-columns:96px minmax(0,1fr); align-items:center; gap:20px; }
.sm-favicon-preview { width:96px; height:96px; display:grid; place-items:center; padding:16px; border:1px solid var(--sm-border); border-radius:22px; background:linear-gradient(145deg,var(--sm-card),var(--sm-green-soft)); }
.sm-favicon-preview img { display:block; width:58px; height:58px; object-fit:contain; border-radius:12px; }
.sm-remove-brand-logo { margin-top:14px; }
.sm-color-settings-card { grid-column:1/-1; }
.sm-color-settings-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.sm-color-settings-grid label { display:grid; grid-template-columns:minmax(0,1fr) 48px; align-items:center; gap:7px 12px; min-height:82px; padding:13px; border:1px solid var(--sm-border); border-radius:14px; background:var(--sm-card); background:color-mix(in srgb,var(--sm-card) 96%,var(--sm-green) 4%); }
.sm-color-settings-grid label > span { font-weight:600; color:var(--sm-text); }
.sm-color-settings-grid input[type="color"] { width:48px; height:40px; padding:3px; border:1px solid var(--sm-border); border-radius:10px; background:var(--sm-card); cursor:pointer; }
.sm-color-settings-grid code { grid-column:1/-1; color:var(--sm-muted); font-size:12px; background:transparent; }
.sm-type-preview { margin-top:18px; padding:18px; border:1px solid var(--sm-border); border-radius:15px; background:linear-gradient(135deg,var(--sm-card),var(--sm-green-soft)); }
.sm-type-preview span { display:block; margin-bottom:6px; color:var(--sm-muted); font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.sm-type-preview strong { display:block; color:var(--sm-text); font-size:23px; line-height:1.25; }
.sm-type-preview p,.sm-license-settings-copy { margin:6px 0 0; color:var(--sm-muted); }
.sm-license-settings-card .sm-btn { margin-top:18px; }
.sm-profile-layout { display:grid; grid-template-columns:300px minmax(0,1fr); gap:16px; }
.sm-profile-summary { padding:24px; text-align:center; }
.sm-profile-summary > img { width:120px; height:120px; border-radius:50%; object-fit:cover; border:6px solid #EDF8F2; box-shadow:0 12px 28px rgba(var(--sm-green-rgb),.15); }
.sm-profile-summary h3 { margin:14px 0 3px; font-size:19px; }
.sm-profile-summary > span { display:inline-flex; padding:5px 10px; border-radius:999px; color:var(--sm-green); background:#E8F8EF; font-size:12px; font-weight:600; }
.sm-profile-summary ul { list-style:none; padding:0; margin:20px 0 0; display:grid; gap:11px; text-align:left; }
.sm-profile-summary li { display:flex; align-items:center; gap:9px; color:#5C6670; font-size:12px; }
.sm-profile-summary li .sm-icon { width:15px; height:15px; color:var(--sm-green); }
.sm-profile-form { padding:22px; }
.sm-profile-form hr { border:0; border-top:1px solid #EFF1F3; margin:22px 0; }
.sm-profile-form > .sm-btn { margin-top:18px; }
.sm-verified { display:flex; align-items:center; gap:5px; font-size:11px; }
.sm-verified .sm-icon { width:13px; height:13px; }
.sm-verified.is-yes { color:var(--sm-green); }.sm-verified.is-no { color:var(--sm-warning); }
.sm-inline-role-form { display:flex; align-items:center; gap:5px; }
.sm-inline-role-form select { min-height:31px; border:1px solid #E3E7EA; border-radius:8px; background:#fff; padding:4px 22px 4px 7px; font-size:11px; }
.sm-inline-team-form select { min-width:130px; }
.sm-team-label,.sm-team-scope-badge { display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:5px 10px; border-radius:10px; background:#EDF8F2; color:#087843; font-size:12px; font-weight:600; white-space:nowrap; }
.sm-team-scope-badge .sm-icon { width:15px; height:15px; }

.sm-lead-preview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:20px; }
.sm-lead-preview-grid > div { min-height:76px; padding:13px 14px; border:1px solid #E8ECEF; border-radius:13px; background:#FBFCFC; }
.sm-lead-preview-grid span,.sm-lead-preview-notes > span { display:block; margin-bottom:5px; color:var(--sm-muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.45px; }
.sm-lead-preview-grid strong { display:block; color:#25312A; font-size:13px; line-height:1.45; word-break:break-word; }
.sm-lead-preview-notes { margin:0 20px; padding:15px; border-radius:13px; background:#F3FAF6; }
.sm-lead-preview-notes p { margin:0; color:#4E5C54; font-size:13px; line-height:1.65; }
.sm-followup-compose,.sm-followup-history { margin:18px 20px 0; border:1px solid #DDE9E2; border-radius:16px; background:#fff; overflow:hidden; }
.sm-followup-compose { background:linear-gradient(145deg,#F7FCF9 0%,#FFFFFF 72%); }
.sm-followup-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:18px 20px; border-bottom:1px solid #E7EEE9; }
.sm-followup-section-head > div { min-width:0; }
.sm-followup-section-head > div > span { display:block; margin-bottom:4px; color:var(--sm-green-dark); font-size:11px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; }
.sm-followup-section-head h4 { margin:0; color:#223029; font-size:18px; line-height:1.35; }
.sm-followup-section-head p { margin:5px 0 0; color:var(--sm-muted); font-size:13px; line-height:1.55; }
.sm-followup-section-head > .sm-icon { flex:0 0 auto; width:28px; height:28px; padding:6px; border-radius:9px; background:#E5F6ED; color:var(--sm-green-dark); }
.sm-followup-section-head > b { flex:0 0 auto; padding:7px 11px; border-radius:999px; background:#EAF7F0; color:var(--sm-green-dark); font-size:12px; white-space:nowrap; }
.sm-followup-compose-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:18px 20px 20px; }
.sm-followup-compose-form label { display:grid; gap:7px; color:#3D4A43; font-size:12px; font-weight:600; }
.sm-followup-compose-form input,.sm-followup-compose-form select,.sm-followup-compose-form textarea { width:100%; }
.sm-followup-note-field,.sm-followup-submit { grid-column:1/-1; }
.sm-followup-submit { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.sm-followup-submit small { color:var(--sm-muted); font-size:12px; line-height:1.45; }
.sm-followup-history > ol { max-height:460px; margin:0; padding:20px; overflow-y:auto; list-style:none; }
.sm-followup-history > ol > li { position:relative; display:grid; grid-template-columns:16px minmax(0,1fr); gap:12px; padding:0 0 20px; }
.sm-followup-history > ol > li:last-child { padding-bottom:0; }
.sm-followup-history > ol > li:not(:last-child)::after { content:""; position:absolute; top:16px; bottom:0; left:7px; width:2px; background:#DDEBE3; }
.sm-followup-timeline-dot { position:relative; z-index:1; width:14px; height:14px; margin-top:5px; border:3px solid #DFF3E8; border-radius:50%; background:var(--sm-green); box-shadow:0 0 0 2px #fff; }
.sm-followup-history li > article { min-width:0; padding:15px 16px; border:1px solid #E3EBE6; border-radius:13px; background:#FBFDFC; }
.sm-followup-history li article > header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.sm-followup-history li article > header > div:first-child { display:grid; gap:6px; }
.sm-followup-history time { color:#7B8880; font-size:11px; line-height:1.4; }
.sm-followup-action { display:inline-flex; width:max-content; padding:5px 9px; border-radius:999px; background:#E7F6EE; color:#087A42; font-size:11px; font-weight:700; }
.sm-followup-action.is-rescheduled { background:#FFF2DB; color:#9A5C00; }
.sm-followup-action.is-cleared { background:#FDE8E8; color:#B42318; }
.sm-followup-action.is-migrated { background:#EDF0F4; color:#5B6670; }
.sm-followup-action.is-completed_on_time { background:#E7F8EF; color:#08783D; }
.sm-followup-action.is-completed_late { background:#FFF2DB; color:#9A5C00; }
.sm-followup-action.is-cancelled { background:#FDE8E8; color:#B42318; }
.sm-followup-history-badges { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.sm-followup-schedule { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:12px; }
.sm-followup-schedule strong { color:#26362D; font-size:13px; }
.sm-followup-schedule small { color:#7A867F; font-size:11px; }
.sm-followup-history li article > p { margin:10px 0 0; color:#4D5B53; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.sm-followup-history-empty { align-items:center; padding:18px !important; border:1px dashed #D6E5DC; border-radius:13px; background:#F8FBF9; }
.sm-followup-history-empty::after { display:none !important; }
.sm-followup-history-empty > .sm-icon { width:18px; height:18px; color:var(--sm-green); }
.sm-followup-history-empty strong { display:block; color:#334138; font-size:13px; }
.sm-followup-history-empty p { margin:4px 0 0; color:var(--sm-muted); font-size:12px; }
.sm-modal-dialog > .sm-modal-actions { padding:18px 20px 20px; }

/* Live follow-up assistant */
.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.sm-assistant-widget{position:fixed;z-index:190;right:24px;bottom:22px;font-family:var(--sm-font-family)}
.sm-assistant-launcher{min-height:54px;display:flex;align-items:center;gap:10px;padding:8px 17px 8px 8px;border:0;border-radius:999px;background:linear-gradient(135deg,var(--sm-green),var(--sm-green-dark));color:#fff;box-shadow:0 16px 38px rgba(0,134,66,.3);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.sm-assistant-launcher:hover{transform:translateY(-2px);box-shadow:0 19px 44px rgba(0,134,66,.36)}
.sm-assistant-launcher>span{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.17)}
.sm-assistant-launcher .sm-icon{width:20px}.sm-assistant-launcher b{font-size:13px}.sm-assistant-launcher>i{width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:#6ff2aa;box-shadow:0 0 0 4px rgba(255,255,255,.12)}
.sm-assistant-panel{position:absolute;right:0;bottom:68px;width:min(400px,calc(100vw - 32px));height:min(590px,calc(100vh - 125px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #dce9e1;border-radius:22px;background:#fff;box-shadow:0 28px 70px rgba(18,44,30,.24);opacity:0;visibility:hidden;transform:translateY(14px) scale(.97);transform-origin:bottom right;transition:opacity .22s ease,transform .22s ease,visibility .22s ease}
.sm-assistant-widget.is-open .sm-assistant-panel{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.sm-assistant-panel>header{min-height:72px;display:flex;align-items:center;gap:11px;padding:13px 14px;background:linear-gradient(135deg,#f4fbf7,#e9f8f0);border-bottom:1px solid #deeee4}
.sm-assistant-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:var(--sm-green);color:#fff;box-shadow:0 9px 20px rgba(var(--sm-green-rgb),.2)}
.sm-assistant-panel>header>div{display:grid;gap:2px;flex:1}.sm-assistant-panel>header strong{font-size:14px}.sm-assistant-panel>header small{display:flex;align-items:center;gap:6px;color:#668174;font-size:10px}.sm-assistant-panel>header small i{width:7px;height:7px;border-radius:50%;background:#12b76a;box-shadow:0 0 0 3px rgba(18,183,106,.12)}
.sm-assistant-panel>header button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:10px;background:rgba(255,255,255,.8);color:#53655c;cursor:pointer}.sm-assistant-panel>header button .sm-icon{width:17px}
.sm-assistant-messages{flex:1;display:flex;flex-direction:column;gap:12px;overflow-y:auto;padding:16px;background:#f8fbf9;scroll-behavior:smooth}
.sm-assistant-message{max-width:92%;padding:11px 12px;border-radius:15px;font-size:12px;line-height:1.55;box-shadow:0 4px 15px rgba(32,58,43,.06)}.sm-assistant-message p{margin:0}.sm-assistant-message.is-assistant{align-self:flex-start;background:#fff;border:1px solid #e3ece6;border-bottom-left-radius:5px}.sm-assistant-message.is-user{align-self:flex-end;background:var(--sm-green);color:#fff;border-bottom-right-radius:5px}.sm-assistant-message.is-refreshing{opacity:.65}
.sm-assistant-message>time{display:block;margin-top:8px;color:#899b91;font-size:9px}
.sm-assistant-results{display:grid;gap:7px;margin-top:10px}.sm-assistant-results>a,.sm-assistant-results>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid #e3eee7;border-radius:11px;background:#fbfdfc;color:inherit;text-decoration:none;transition:.18s ease}.sm-assistant-results>a:hover{border-color:#8ad2aa;background:#effaf4}.sm-assistant-results span{display:grid;min-width:0}.sm-assistant-results strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.sm-assistant-results small{color:#788a80;font-size:9px}.sm-assistant-results b{flex:0 0 auto;color:var(--sm-green-dark);font-size:10px;text-align:right}
.sm-assistant-prompts{display:flex;gap:6px;overflow-x:auto;padding:10px 12px;border-top:1px solid #e9f0ec;background:#fff}.sm-assistant-prompts button{flex:0 0 auto;padding:7px 9px;border:1px solid #cfe5d8;border-radius:999px;background:#f1faf5;color:#157246;font-size:10px;font-weight:600;cursor:pointer}
.sm-assistant-panel>form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #e8efeb;background:#fff}.sm-assistant-panel>form input{min-width:0;flex:1;height:42px;padding:0 13px;border:1px solid #dce8e0;border-radius:13px;outline:0;background:#f9fbfa;font-size:12px}.sm-assistant-panel>form input:focus{border-color:#6acb96;box-shadow:0 0 0 3px rgba(var(--sm-green-rgb),.08)}.sm-assistant-panel>form button{width:42px;height:42px;display:grid;place-items:center;border:0;border-radius:13px;background:var(--sm-green);color:#fff;cursor:pointer}.sm-assistant-panel>form button .sm-icon{width:18px}
.sm-assistant-panel>footer{padding:0 12px 9px;background:#fff;color:#8b978f;text-align:center;font-size:9px}

/* Mobile overlay and collapsed sidebar */
.sm-mobile-overlay { display:none; }
.smcrm-shell.is-collapsed { --sm-sidebar:82px; }
.smcrm-shell.is-collapsed .sm-brand-copy,.smcrm-shell.is-collapsed .sm-nav-item > span:not(.sm-nav-badge) { opacity:0; visibility:hidden; width:0; overflow:hidden; }
.smcrm-shell.is-collapsed .sm-brand { justify-content:center; padding-left:0; padding-right:0; }
.smcrm-shell.is-collapsed .sm-brand img { width:48px; height:48px; }
.smcrm-shell.is-collapsed .sm-nav-item { justify-content:center; padding-left:0; padding-right:0; }
.smcrm-shell.is-collapsed .sm-nav-item .sm-icon { width:20px; height:20px; }
.smcrm-shell.is-collapsed .sm-nav-badge { position:absolute; margin:0; transform:translate(13px,-12px); min-width:16px; height:16px; padding:0 4px; font-size:10px; }
.smcrm-shell.is-collapsed .sm-nav-group > summary { justify-content:center; padding-right:0; padding-left:0; }
.smcrm-shell.is-collapsed .sm-nav-group > summary > span,
.smcrm-shell.is-collapsed .sm-nav-group > summary .sm-icon:last-child,
.smcrm-shell.is-collapsed .sm-nav-children { display:none; }
.smcrm-shell.is-collapsed .sm-sidebar-collapse { transform:rotate(180deg); opacity:1; right:4px; top:53px; }
.smcrm-shell.is-collapsed .sm-logout { justify-content:center; }

/* Toasts and animation */
.sm-toast-stack { position:fixed; z-index:200; right:18px; bottom:18px; display:grid; gap:9px; width:min(330px,calc(100vw - 36px)); }
.sm-toast { display:flex; align-items:center; gap:9px; padding:12px 14px; border-radius:13px; background:#17231D; color:#fff; box-shadow:0 16px 40px rgba(0,0,0,.22); animation:smToastIn .28s ease both; font-size:13px; }
.sm-toast.is-error { background:#A52E2E; }
.sm-toast.is-success { background:#08783D; }
.sm-toast .sm-icon { width:16px; height:16px; }
.is-loading { pointer-events:none; opacity:.75; }
.is-loading::after { content:""; width:13px; height:13px; border:2px solid rgba(255,255,255,.45); border-top-color:#fff; border-radius:50%; animation:smSpin .7s linear infinite; }
[data-global-hidden="true"] { display:none !important; }
@keyframes smFadeIn { from{opacity:0} to{opacity:1} }
@keyframes smFadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes smRipple { to{transform:scale(4);opacity:0} }
@keyframes smSpin { to{transform:rotate(360deg)} }
@keyframes smToastIn { from{opacity:0;transform:translateX(18px)} to{opacity:1;transform:translateX(0)} }

/* Responsive */
@media (max-width: 1600px) {
  .sm-dashboard-main-grid { grid-template-columns:minmax(310px,.9fr) minmax(420px,1.25fr) 205px; }
  .sm-kpi-grid { gap:12px; }
  .sm-main { padding-left:20px; padding-right:20px; }
}
@media (max-width: 1370px) {
  :root { --sm-sidebar:250px; }
  .sm-global-search { width:210px; }
  .sm-date-chip { display:none; }
  .sm-dashboard-main-grid { grid-template-columns:minmax(300px,1fr) minmax(400px,1.35fr); }
  .sm-quick-stats { grid-column:1/-1; grid-template-columns:repeat(3,1fr); grid-template-rows:auto; }
  .sm-dashboard-bottom-grid { grid-template-columns:repeat(2,1fr); }
  .sm-project-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 1180px) {
  .sm-kpi-grid { grid-template-columns:repeat(3,1fr); }
  .sm-dashboard-main-grid { grid-template-columns:1fr; }
  .sm-quick-stats { grid-template-columns:repeat(2,1fr); }
  .sm-dashboard-mid-grid { grid-template-columns:1fr 1fr; }
  .sm-header-tools .sm-global-search { display:none; }
  .sm-role-grid { grid-template-columns:1fr 1fr; }
  .sm-import-layout { grid-template-columns:360px 1fr; }
  .sm-settings-layout { grid-template-columns:1fr; }
  .sm-settings-actions { grid-column:1; }
}
@media (max-width: 980px) {
  .smcrm-shell { display:block; }
  .sm-sidebar { transform:translateX(calc(-100% - 18px)); width:min(290px,calc(100vw - 24px)); }
  .sm-sidebar.is-mobile-open { transform:translateX(0); }
  .sm-main { padding:14px 14px 90px; }
  .sm-mobile-menu { width:42px; height:42px; display:grid; place-items:center; border:1px solid #E8EBEE; border-radius:12px; background:#fff; box-shadow:var(--sm-shadow); cursor:pointer; flex:0 0 auto; }
  .sm-topbar { align-items:center; }
  .sm-heading { flex:1; }
  .sm-heading > span { display:none; }
  .sm-header-tools .sm-icon-button:nth-of-type(2),.sm-date-chip { display:none; }
  .sm-profile-chip { min-width:48px; width:48px; padding:4px; }
  .sm-profile-chip > span,.sm-profile-chip > .sm-icon { display:none; }
  .sm-mobile-overlay { display:block; position:fixed; z-index:35; inset:0; background:rgba(18,29,36,.36); opacity:0; visibility:hidden; transition:all .2s ease; }
  .sm-mobile-overlay.is-open { opacity:1; visibility:visible; }
  .sm-sidebar-collapse { display:none; }
  .sm-calendar-layout,.sm-profile-layout { grid-template-columns:1fr; }
  .sm-profile-summary { display:grid; grid-template-columns:120px 1fr; text-align:left; align-items:center; }
  .sm-profile-summary ul { grid-column:1/-1; }
  .sm-analytics-kpis { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 760px) {
  .sm-auth-page { align-items:flex-start; padding:20px 14px max(24px,env(safe-area-inset-bottom)); }
  .sm-auth-card { padding:30px 22px 26px; border-radius:24px; }
  .sm-auth-logo-wrap { width:110px; height:110px; }
  .sm-auth-logo-wrap img { width:96px; height:96px; }
  .sm-auth-card > h1 { font-size:25px; }
  .sm-form-row,.sm-form-grid { grid-template-columns:1fr; }
  .sm-field-span-2 { grid-column:1; }
  .sm-topbar { gap:10px; }
  .sm-heading p { display:none; }
  .sm-heading h1 { font-size:23px; }
  .sm-header-tools { gap:6px; }
  .sm-header-tools .sm-icon-button { width:40px; height:40px; }
  .sm-profile-chip { width:42px; height:42px; }
  .sm-profile-chip img { width:34px; height:34px; }
  .sm-assistant-widget{right:13px;bottom:13px}.sm-assistant-launcher{min-height:50px;padding:6px}.sm-assistant-launcher>b,.sm-assistant-launcher>i{display:none}.sm-assistant-launcher>span{width:38px;height:38px}.sm-assistant-panel{position:fixed;left:12px;right:12px;bottom:72px;width:auto;height:min(620px,calc(100dvh - 90px));border-radius:20px;transform-origin:bottom center}
  .sm-kpi-grid { grid-template-columns:repeat(2,1fr); }
  .sm-kpi-card { min-height:104px; padding:15px; }
  .sm-kpi-card strong { font-size:23px; }
  .sm-kpi-icon { width:41px; height:41px; }
  .sm-dashboard-mid-grid,.sm-dashboard-bottom-grid,.sm-analytics-grid,.sm-project-grid,.sm-role-grid,.sm-import-layout { grid-template-columns:1fr; }
  .sm-dashboard-mid-grid > :last-child { grid-column:auto; }
  .sm-quick-stats { grid-template-columns:1fr 1fr; }
  .sm-page-actions { align-items:flex-start; flex-direction:column; }
  .sm-page-actions > div:last-child { width:100%; }
  .sm-filter-bar { align-items:stretch; flex-direction:column; }
  .sm-filter-search,.sm-filter-bar > select { width:100%; min-width:0; }
  .sm-table-toolbar { align-items:flex-start; flex-direction:column; }
  .sm-table-search { width:100%; }
  .sm-bulk-bar { overflow:auto; }
  .sm-pipeline-summary-body { grid-template-columns:1fr; }
  .sm-donut-legend { grid-template-columns:1fr 1fr; }
  .sm-pipeline-summary { min-height:auto; }
  .sm-calendar-day { min-height:78px; padding:4px; }
  .sm-calendar-event { font-size:9px; }
  .sm-summary-grid,.sm-analytics-kpis { grid-template-columns:1fr 1fr; }
  .sm-notification-row { grid-template-columns:42px 1fr; }
  .sm-notification-row > a { grid-column:2; justify-self:start; }
  .sm-export-preview { align-items:flex-start; flex-wrap:wrap; }
  .sm-export-preview .sm-btn { width:100%; }
  .sm-color-settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .sm-auth-page { padding:12px 10px max(18px,env(safe-area-inset-bottom)); }
  .sm-auth-card { width:100%; max-width:none; padding:22px 15px 20px; border-radius:20px; }
  .sm-auth-logo-wrap { width:92px; height:92px; margin-bottom:6px; }
  .sm-auth-logo-wrap img { width:82px; height:82px; }
  .sm-auth-card > h1 { margin-bottom:18px; font-size:23px; }
  .sm-auth-tabs { margin-bottom:20px; }
  .sm-auth-tabs a { padding:10px 6px; }
  .sm-auth-form { gap:13px; }
  .sm-input-group { min-height:52px; padding:0 12px; }
  .sm-input-group input { height:50px; width:100%; }
  .sm-auth-options { align-items:flex-start; flex-direction:column; }
  .sm-btn-block { min-height:52px; font-size:16px; }
  .sm-topbar { margin-bottom:12px; }
  .sm-heading h1 { font-size:21px; }
  .sm-kpi-grid { grid-template-columns:1fr; }
  .sm-quick-stats,.sm-summary-grid,.sm-analytics-kpis { grid-template-columns:1fr; }
  .sm-dashboard-main-grid,.sm-dashboard-mid-grid,.sm-dashboard-bottom-grid { gap:12px; }
  .sm-main { padding-left:10px; padding-right:10px; }
  .sm-donut-legend { grid-template-columns:1fr; }
  .sm-calendar-weekdays span { font-size:10px; }
  .sm-calendar-day { min-height:63px; }
  .sm-calendar-events .sm-calendar-event:nth-child(n+2) { display:none; }
  .sm-profile-summary { grid-template-columns:1fr; text-align:center; }
  .sm-profile-summary > img { margin:auto; }
  .sm-brand-logo-editor { grid-template-columns:1fr; }
  .sm-brand-logo-preview { width:100%; }
  .sm-color-settings-grid { grid-template-columns:1fr; }
}

@media (min-width:761px) and (max-height:850px) {
  .sm-auth-page { align-items:flex-start; padding:16px 24px 24px; }
  .sm-auth-card { padding:22px 42px 24px; }
  .sm-auth-logo-wrap { width:94px; height:94px; margin-bottom:4px; }
  .sm-auth-logo-wrap img { width:84px; height:84px; }
  .sm-auth-card > h1 { margin-bottom:16px; font-size:27px; }
  .sm-auth-tabs { margin-bottom:19px; }
  .sm-auth-tabs a { padding:9px; }
  .sm-auth-form { gap:12px; }
  .sm-input-group { min-height:52px; }
  .sm-input-group input { height:50px; }
  .sm-btn-block { min-height:52px; }
  .sm-auth-divider { margin-top:6px; }
  .sm-auth-site { margin-top:16px; }
}

@media (max-height:520px) and (orientation:landscape) {
  .sm-auth-page { align-items:flex-start; padding:10px 18px 20px; }
  .sm-auth-card { max-width:680px; padding:16px 24px; }
  .sm-auth-logo-wrap { width:70px; height:70px; margin-bottom:0; }
  .sm-auth-logo-wrap img { width:62px; height:62px; }
  .sm-auth-card > h1 { margin-bottom:10px; font-size:22px; }
}


/* Readable responsive typography and spacing — v2.0.1 */
.smcrm-shell input,
.smcrm-shell select,
.smcrm-shell textarea,
.sm-auth-page input,
.sm-auth-page select,
.sm-auth-page textarea { font-size: max(16px, 1em); }
.sm-table-wrap { scrollbar-width: thin; }
.sm-table-wrap th,.sm-table-wrap td { line-height: 1.45; }
.sm-nav-item,.sm-btn,.sm-profile-chip,.sm-date-chip { line-height: 1.35; }

@media (min-width: 1601px) {
  body.smcrm-fullscreen-template { font-size:16px; }
  .sm-main { padding-left:28px; padding-right:28px; }
  .sm-nav-item { min-height:45px; }
}

@media (max-width: 980px) {
  body.smcrm-fullscreen-template { font-size:15px; }
  .sm-heading h1 { line-height:1.2; }
  .sm-table-wrap { overflow-x:auto; }
  .sm-table-wrap table { min-width:760px; }
}

@media (max-width: 520px) {
  body.smcrm-fullscreen-template { font-size:14px; }
  .sm-main { padding-bottom:72px; }
  .sm-card { border-radius:16px; }
  .sm-auth-card > h1 { line-height:1.25; }
  .sm-kpi-card > div > span,.sm-quick-card > div > span { line-height:1.35; }
}

@media print {
  .sm-sidebar,.sm-topbar,.sm-page-actions .sm-btn,.sm-footer,.sm-drawer,.sm-drawer-overlay,.sm-mobile-overlay,.sm-toast-stack,.sm-assistant-widget { display:none !important; }
  .smcrm-shell { display:block; background:#fff; }
  .sm-main { padding:0; }
  .sm-card { box-shadow:none; border:1px solid #ddd; break-inside:avoid; }
}

/* v2.7.0 — AI recommendations, security health and update compatibility */
.sm-ai-widget { margin:0 0 16px; padding:18px; border-color:#DCEFE4; background:linear-gradient(135deg,#FFFFFF 0%,#F2FBF6 100%); }
.sm-ai-widget .sm-card-head { align-items:center; margin-bottom:14px; }
.sm-ai-widget .sm-card-head h2 { margin-top:3px; font-size:19px; }
.sm-ai-mini-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.sm-ai-mini { min-width:0; display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:11px; min-height:86px; padding:13px; color:inherit !important; text-decoration:none !important; border:1px solid #E4ECE7; border-radius:15px; background:#fff; transition:transform var(--sm-transition),box-shadow var(--sm-transition),border-color var(--sm-transition); }
.sm-ai-mini:hover { transform:translateY(-2px); border-color:#B8DFC8; box-shadow:0 12px 26px rgba(var(--sm-green-rgb),.1); }
.sm-ai-mini > span,.sm-ai-recommendation-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; color:var(--sm-green); background:#E5F7EE; }
.sm-ai-mini > span .sm-icon,.sm-ai-recommendation-icon .sm-icon { width:20px; height:20px; }
.sm-ai-mini > div { min-width:0; display:flex; flex-direction:column; }
.sm-ai-mini strong { font-size:13px; }
.sm-ai-mini small { margin-top:3px; color:var(--sm-muted); font-size:11px; line-height:1.4; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.sm-ai-mini em { align-self:flex-start; padding:4px 7px; border-radius:999px; color:#08783E; background:#E7F8EF; font-size:10px; font-style:normal; font-weight:700; }
.sm-ai-mini.is-urgent > span,.sm-ai-recommendation.is-urgent .sm-ai-recommendation-icon { color:#B42318; background:#FFF0F0; }
.sm-ai-mini.is-high > span,.sm-ai-recommendation.is-high .sm-ai-recommendation-icon { color:#B35C00; background:#FFF4E3; }
.sm-ai-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.sm-ai-recommendation { min-width:0; display:grid; grid-template-columns:52px minmax(0,1fr); gap:15px; padding:20px; border-left:4px solid var(--sm-green); }
.sm-ai-recommendation.is-urgent { border-left-color:#E2483D; }
.sm-ai-recommendation.is-high { border-left-color:#F29A38; }
.sm-ai-recommendation.is-medium { border-left-color:#3B82F6; }
.sm-ai-recommendation-icon { width:52px; height:52px; border-radius:16px; }
.sm-ai-recommendation > div:last-child > span { color:var(--sm-green); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; }
.sm-ai-recommendation h3 { margin:4px 0 7px; font-size:17px; }
.sm-ai-recommendation p { margin:0 0 12px; color:var(--sm-muted); line-height:1.55; }
.sm-ai-recommendation a { display:inline-flex; align-items:center; gap:6px; color:var(--sm-green) !important; text-decoration:none !important; font-size:13px; font-weight:600; }
.sm-ai-recommendation a .sm-icon { width:14px; height:14px; }
.sm-ai-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:4px 0 14px; }
.sm-ai-section-head h3 { margin:0 0 4px; font-size:19px; }
.sm-ai-section-head p { margin:0; color:var(--sm-muted); }
.sm-ai-builder { margin-top:22px; padding:24px; overflow:hidden; }
.sm-ai-builder-head { display:flex; align-items:center; gap:15px; margin-bottom:20px; }
.sm-ai-builder-head > span { flex:0 0 auto; width:52px; height:52px; display:grid; place-items:center; border-radius:16px; color:#fff; background:linear-gradient(135deg,var(--sm-green),var(--sm-green-dark)); box-shadow:0 12px 24px rgba(var(--sm-green-rgb),.22); }
.sm-ai-builder-head > span .sm-icon { width:23px; height:23px; }
.sm-ai-builder-head > div { min-width:0; flex:1; }
.sm-ai-builder-head em { color:var(--sm-green-dark); font-size:11px; font-style:normal; font-weight:800; letter-spacing:.7px; text-transform:uppercase; }
.sm-ai-builder-head h3 { margin:3px 0 4px; font-size:21px; }
.sm-ai-builder-head p { margin:0; color:var(--sm-muted); }
.sm-ai-builder-head > strong { flex:0 0 auto; padding:8px 11px; border-radius:999px; color:var(--sm-green-dark); background:var(--sm-green-soft); font-size:11px; }
.sm-ai-builder > form { display:grid; gap:12px; padding:18px; border:1px solid #DCE9E1; border-radius:16px; background:#F8FBF9; }
.sm-ai-builder > form > label { color:#33463B; font-size:13px; font-weight:700; }
.sm-ai-builder textarea { width:100%; min-height:112px; resize:vertical; padding:14px 15px; border:1px solid #D8E5DD; border-radius:13px; outline:0; background:#fff; color:var(--sm-text); font:inherit; line-height:1.55; }
.sm-ai-builder textarea:focus { border-color:var(--sm-green); box-shadow:0 0 0 3px rgba(var(--sm-green-rgb),.09); }
.sm-ai-builder > form > .sm-btn { justify-self:start; }
.sm-ai-builder-examples { display:flex; flex-wrap:wrap; gap:7px; }
.sm-ai-builder-examples button { padding:7px 10px; border:1px solid #CFE3D7; border-radius:999px; background:#fff; color:#397052; font-size:11px; font-weight:650; cursor:pointer; }
.sm-ai-builder-examples button:hover { border-color:var(--sm-green); color:var(--sm-green-dark); background:var(--sm-green-soft); }
.sm-ai-builder-plan { margin-top:16px; padding:17px; border:1px solid #DCE8E0; border-radius:16px; background:#fff; }
.sm-ai-builder-plan > div:first-child { margin-bottom:10px; padding:10px 12px; border-radius:10px; font-size:13px; font-weight:650; }
.sm-ai-builder-plan > div.is-success { color:#08753E; background:#EAF8F0; }
.sm-ai-builder-plan > div.is-warning { color:#935A08; background:#FFF7E8; }
.sm-ai-builder-plan > div.is-error { color:#A22B25; background:#FFF0F0; }
.sm-ai-builder-plan ul { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.sm-ai-builder-plan li { display:flex; align-items:center; gap:10px; padding:11px 12px; border:1px solid #E4ECE7; border-radius:11px; background:#FBFDFC; }
.sm-ai-builder-plan li > span { display:grid; gap:2px; }
.sm-ai-builder-plan li strong { font-size:13px; }
.sm-ai-builder-plan li small { color:var(--sm-muted); font-size:11px; }
.sm-ai-builder-plan li.is-warning { border-color:#F4D79E; background:#FFFAF0; }
.sm-ai-builder-plan li.is-success { justify-content:flex-end; border:0; background:transparent; }
.sm-ai-builder-plan-actions { display:flex; gap:9px; margin-top:13px; }
.sm-ai-builder-safety { display:flex; gap:12px; margin-top:15px; padding:14px; border-radius:14px; color:#3E5A4A; background:#F0F7F3; }
.sm-ai-builder-safety .sm-icon { flex:0 0 auto; width:21px; color:var(--sm-green); }
.sm-ai-builder-safety p { margin:0; font-size:12px; line-height:1.55; }
.sm-ai-builder-history { margin-top:20px; padding-top:18px; border-top:1px solid var(--sm-border); }
.sm-ai-builder-history > div { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.sm-ai-builder-history h4 { margin:0; font-size:15px; }
.sm-ai-builder-history ul { display:grid; gap:8px; margin:13px 0 0; padding:0; list-style:none; }
.sm-ai-builder-history li { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:11px; background:#F8FBF9; }
.sm-ai-builder-history li > span { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; color:var(--sm-green); background:var(--sm-green-soft); }
.sm-ai-builder-history li > span .sm-icon { width:15px; }
.sm-ai-builder-history li > div { display:grid; gap:2px; }
.sm-ai-builder-history li strong { font-size:12px; }
.sm-ai-builder-history li small { color:var(--sm-muted); font-size:10px; }
.sm-security-score { margin-left:auto; min-width:74px; height:40px; display:grid; place-items:center; border-radius:12px; color:#08783E; background:#E7F8EF; font-size:15px; }
.sm-readonly-value { min-height:46px; display:flex; align-items:center; margin-top:6px; padding:10px 12px; border:1px solid var(--sm-border); border-radius:11px; background:#F7F9F8; font-size:13px; font-weight:600; }
.sm-security-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:18px 0; padding:0; list-style:none; }
.sm-security-checks li { min-width:0; display:flex; align-items:flex-start; gap:9px; padding:11px; border:1px solid #E6ECE8; border-radius:12px; background:#FAFCFB; }
.sm-security-checks li > span { display:grid; place-items:center; color:var(--sm-green); }
.sm-security-checks li.is-warning > span { color:var(--sm-warning); }
.sm-security-checks .sm-icon { width:18px; height:18px; }
.sm-security-checks li > div { min-width:0; display:flex; flex-direction:column; }
.sm-security-checks strong { font-size:12px; }
.sm-security-checks small { margin-top:2px; color:var(--sm-muted); font-size:11px; line-height:1.4; }
.sm-ai-privacy-note { display:flex; align-items:flex-start; gap:12px; margin-top:18px; padding:15px; border:1px solid #CBE8D7; border-radius:14px; background:#F2FBF6; color:#17623A; }
.sm-ai-privacy-note > .sm-icon { margin-top:2px; }
.sm-ai-privacy-note strong { display:block; }
.sm-ai-privacy-note p { margin:4px 0 0; color:#4F6C5C; font-size:12px; }

@media (max-width:1180px) {
  .sm-ai-mini-list { grid-template-columns:1fr; }
  .sm-ai-mini { min-height:74px; }
}
@media (max-width:760px) {
  .sm-ai-widget .sm-card-head { align-items:flex-start; flex-direction:column; }
  .sm-ai-grid,.sm-security-checks { grid-template-columns:1fr; }
  .sm-ai-recommendation { grid-template-columns:44px minmax(0,1fr); padding:16px; }
  .sm-ai-recommendation-icon { width:44px; height:44px; }
  .sm-security-score { margin-left:0; }
}
@media (max-width:420px) {
  .sm-ai-mini { grid-template-columns:38px minmax(0,1fr); }
  .sm-ai-mini > em { display:none; }
  .sm-ai-mini > span { width:38px; height:38px; }
  .sm-ai-recommendation { grid-template-columns:1fr; }
}

/* v2.1.0 — responsive readability and Google Drive integration */
.sm-access-links-card { margin-bottom:18px; }
.sm-access-url-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.sm-access-url-grid label { display:grid; gap:7px; color:#44505A; font-size:14px; font-weight:600; }
.sm-access-url-grid span { min-width:0; padding:12px 14px; border:1px solid var(--sm-border); border-radius:12px; background:#F8FAF9; overflow:auto; }
.sm-access-url-grid code { color:var(--sm-green-dark); font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:13px; white-space:nowrap; }
.sm-drive-card .sm-settings-section-head { align-items:flex-start; }
.sm-integration-badge { margin-left:auto; display:inline-flex; align-items:center; min-height:28px; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }
.sm-integration-badge.is-connected { color:#08783E; background:#E7F8EF; border:1px solid #BEE9D0; }
.sm-integration-badge.is-pending { color:#9A6200; background:#FFF7E6; border:1px solid #F8D99B; }
.sm-integration-message { margin:14px 0 18px; padding:12px 14px; border:1px solid #E5E9EC; border-radius:12px; background:#F8FAFB; color:#4D5863; font-size:14px; }
.sm-integration-message.is-success { border-color:#BFE8D1; background:#F0FBF5; color:#08783E; }
.sm-integration-message.is-error { border-color:#F2C2C2; background:#FFF4F4; color:#B42318; }
.sm-drive-steps { margin-top:18px; padding:18px; border:1px dashed #B9DDC9; border-radius:14px; background:#F5FBF8; }
.sm-drive-steps h4 { margin:0 0 10px; font-size:16px; }
.sm-drive-steps ol { margin:0 0 16px 20px; padding:0; color:#4E5963; }
.sm-drive-steps li { margin:7px 0; line-height:1.55; }
.sm-drive-steps code { padding:2px 6px; border-radius:6px; background:#E7F5ED; color:#08783E; }
.sm-integration-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
.sm-integration-actions form { margin:0; }

@media screen {
  body.smcrm-fullscreen-template { font-size:16px; }
  .sm-nav-item { font-size:15px; }
  .sm-heading p { font-size:15px; }
  .sm-heading > span,.sm-page-actions p,.sm-card-head p { font-size:14px; }
  .sm-card-head h2,.sm-card-head h3 { font-size:16px; }
  .sm-page-actions h2 { font-size:24px; }
  .sm-form-grid label,.sm-settings-layout label,.sm-profile-form label,.sm-message-form label,.sm-upload-card label { font-size:14px; }
  .sm-form-grid label small,.sm-profile-form label small { font-size:12px; }
  .sm-table-wrap th { font-size:13px; }
  .sm-table-wrap td,.sm-table-wrap td strong { font-size:13px; }
  .sm-table-wrap td small { font-size:12px; }
  .sm-status,.sm-priority { font-size:12px; }
  .sm-kpi-card > div > span,.sm-quick-card > div > span { font-size:14px; }
  .sm-list-card li,.sm-performance-card li,.sm-project-performance li { font-size:12px; }
}

@media screen and (min-width:1600px) {
  body.smcrm-fullscreen-template { font-size:17px; }
  .sm-main { max-width:none; }
  .sm-heading h1 { font-size:32px; }
  .sm-page-actions h2 { font-size:26px; }
  .sm-table-wrap th,.sm-table-wrap td,.sm-table-wrap td strong { font-size:14px; }
  .sm-card-head h2,.sm-card-head h3 { font-size:17px; }
}

@media screen and (max-width:980px) {
  body.smcrm-fullscreen-template { font-size:16px; }
  .sm-nav-item { font-size:15px; }
  .sm-access-url-grid { grid-template-columns:1fr; }
  .sm-integration-actions { display:grid; grid-template-columns:1fr 1fr; }
  .sm-integration-actions .sm-btn { width:100%; }
}

@media screen and (max-width:520px) {
  body.smcrm-fullscreen-template { font-size:16px; }
  .sm-auth-card > h1 { font-size:27px; }
  .sm-auth-tabs a { font-size:16px; }
  .sm-auth-options,.sm-auth-feedback,.sm-verification-note { font-size:15px; }
  .sm-auth-switch { font-size:16px; }
  .sm-heading h1 { font-size:24px; }
  .sm-page-actions h2 { font-size:23px; }
  .sm-kpi-card strong { font-size:26px; }
  .sm-table-wrap th,.sm-table-wrap td,.sm-table-wrap td strong { font-size:14px; }
  .sm-table-wrap td small { font-size:13px; }
  .sm-integration-actions { grid-template-columns:1fr; }
  .sm-settings-section-head { align-items:flex-start; }
  .sm-integration-badge { margin-left:0; }
  .sm-drive-steps { padding:15px; }
}

/* Performance intelligence, report center and follow-up workspace */
.sm-performance-user-link{display:grid;grid-template-columns:25px minmax(85px,1fr) 90px 25px;align-items:center;gap:7px;color:inherit;text-decoration:none;border-radius:10px;padding:5px;transition:background .2s ease,transform .2s ease}
.sm-performance-user-link:hover{background:#eff9f4;transform:translateX(2px)}
.sm-performance-user-link>span{display:flex;flex-direction:column;min-width:0}.sm-performance-user-link .sm-progress{width:100%}
.sm-performance-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0}.sm-performance-summary-card{padding:24px}.sm-performance-summary-card>span,.sm-metric-tile span{display:block;color:var(--sm-muted);font-size:13px;font-weight:600}.sm-performance-summary-card>strong{display:block;margin:9px 0 15px;font-size:28px}.sm-performance-summary-card .sm-progress{height:11px;margin-bottom:9px}.sm-performance-summary-card small{font-size:12px;color:var(--sm-muted)}
.sm-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.sm-metric-tile{padding:20px;min-height:110px}.sm-metric-tile strong{display:block;margin-top:12px;font-size:23px;color:var(--sm-text)}
.sm-inline-event-form{display:flex;align-items:end;gap:14px;padding:18px;margin:18px 0}.sm-inline-event-form label{display:grid;gap:7px;flex:1;font-size:12px;font-weight:600}.sm-inline-event-form input{width:100%}
.sm-activity-timeline{padding:22px}.sm-activity-timeline ul{list-style:none;margin:15px 0 0;padding:0}.sm-activity-timeline li{position:relative;display:flex;gap:15px;padding:0 0 20px 7px}.sm-activity-timeline li>i{width:12px;height:12px;margin-top:5px;border-radius:50%;background:var(--sm-green);box-shadow:0 0 0 5px #e8f7ef}.sm-activity-timeline li:not(:last-child):after{content:"";position:absolute;left:12px;top:20px;bottom:2px;width:2px;background:#dcebe2}.sm-activity-timeline p{margin:5px 0;color:var(--sm-muted)}.sm-activity-timeline small{color:#89958e}
.sm-filter-chips{display:flex;gap:9px;overflow-x:auto;padding:3px 1px 13px}.sm-filter-chip{display:inline-flex;align-items:center;min-height:38px;padding:8px 14px;border:1px solid #dbe8e0;border-radius:20px;background:#fff;color:#506057;text-decoration:none;white-space:nowrap;font-size:13px;font-weight:600}.sm-filter-chip.is-active,.sm-filter-chip:hover{background:var(--sm-green);border-color:var(--sm-green);color:#fff}
.sm-lead-server-pagination{min-height:62px;display:flex;align-items:center;gap:16px;padding:11px 14px;border-top:1px solid var(--sm-border);background:#FBFCFB}.sm-lead-server-pagination>div:first-child{display:grid;margin-right:auto}.sm-lead-server-pagination>div:first-child strong{font-size:13px}.sm-lead-server-pagination>div:first-child span{color:var(--sm-muted);font-size:11px}.sm-lead-server-pagination form label{display:flex;align-items:center;gap:8px;color:var(--sm-muted);font-size:11px;font-weight:600}.sm-lead-server-pagination select{height:36px;padding:0 30px 0 10px;border:1px solid #DDE7E1;border-radius:9px;background:#fff;color:var(--sm-text)}.sm-lead-server-pagination nav{display:flex;align-items:center;gap:5px}.sm-lead-server-pagination nav a{min-width:34px;height:34px;display:grid;place-items:center;padding:0 9px;border:1px solid #E0E8E3;border-radius:9px;background:#fff;color:#53635A;text-decoration:none;font-size:12px;font-weight:650}.sm-lead-server-pagination nav a.is-active{border-color:var(--sm-green);background:var(--sm-green);color:#fff}.sm-lead-server-pagination nav a.is-disabled{opacity:.35;pointer-events:none}
.sm-pdf-center{margin-top:20px;padding:22px}.sm-report-export-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.sm-report-export-tile{display:flex;align-items:center;gap:13px;padding:17px;border:1px solid #dce9e1;border-radius:15px;background:#f9fcfa;color:var(--sm-text);text-decoration:none;transition:.2s ease}.sm-report-export-tile:hover{border-color:var(--sm-green);background:#effaf4;transform:translateY(-2px)}.sm-report-export-tile .sm-icon{width:24px;color:var(--sm-green)}.sm-report-export-tile span{display:grid;gap:3px}.sm-report-export-tile small{color:var(--sm-muted)}
.sm-integration-actions form label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}.sm-integration-actions form input[type=date]{min-height:40px}
@media(max-width:1100px){.sm-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sm-report-export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sm-performance-summary-grid,.sm-metric-grid,.sm-report-export-grid{grid-template-columns:1fr}.sm-inline-event-form{align-items:stretch;flex-direction:column}.sm-performance-filter{overflow-x:auto}.sm-performance-user-link{grid-template-columns:32px minmax(0,1fr);}.sm-performance-user-link .sm-progress,.sm-performance-user-link>em{grid-column:2}}

@media(max-width:760px){
  .sm-dashboard-performance{padding:20px;border-radius:15px}
  .sm-section-heading{align-items:flex-start;flex-direction:column;margin-bottom:20px}
  .sm-user-performance-grid{grid-template-columns:1fr}
  .sm-user-performance-card{padding:18px}
  .sm-user-performance-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sm-live-updated{text-align:left}
}

@media(max-width:420px){
  .sm-user-performance-card header{grid-template-columns:48px minmax(0,1fr) 58px;gap:10px}
  .sm-user-performance-card header>img{width:48px;height:48px}
  .sm-mini-score-ring{width:56px;height:56px}
  .sm-user-performance-card footer{grid-template-columns:1fr auto}
  .sm-user-performance-card footer .sm-progress{grid-column:1/-1;grid-row:2}
}

/* v2.2.0 — WordPress Admin integration */
body.smcrm-wp-admin-page #wpcontent { padding-left:0; }
body.smcrm-wp-admin-page #wpbody-content { padding-bottom:0; }
body.smcrm-wp-admin-page .wrap.smcrm-wpadmin-wrap { margin:0; max-width:none; }
body.smcrm-wp-admin-page #screen-meta-links { margin-right:20px; }
body.smcrm-wp-admin-page #adminmenu #toplevel_page_sultan-marketing-crm .wp-menu-image:before { color:#57D08E; }
body.smcrm-wp-admin-page #adminmenu #toplevel_page_sultan-marketing-crm.current > a.menu-top,
body.smcrm-wp-admin-page #adminmenu #toplevel_page_sultan-marketing-crm.wp-has-current-submenu > a.wp-has-current-submenu { background:var(--sm-green); color:#fff; }
body.smcrm-wp-admin-page #adminmenu #toplevel_page_sultan-marketing-crm.current > a.menu-top .wp-menu-image:before,
body.smcrm-wp-admin-page #adminmenu #toplevel_page_sultan-marketing-crm.wp-has-current-submenu > a.wp-has-current-submenu .wp-menu-image:before { color:#fff; }

.smcrm-wpadmin-wrap {
  width:100%;
  min-width:0;
  color:var(--sm-text);
  font-family:var(--sm-font-family);
  font-size:16px;
  line-height:1.55;
}
.smcrm-wpadmin-shell {
  display:block;
  min-height:calc(100vh - 32px);
  background:linear-gradient(135deg,#F7F8FA 0%,#EFF1F4 100%);
  overflow:hidden;
}
.smcrm-wpadmin-shell .sm-main {
  grid-column:auto;
  min-height:calc(100vh - 32px);
  padding:18px 24px 70px;
}
.sm-wpadmin-brandbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:13px 16px;
  border:1px solid rgba(255,255,255,.95);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  box-shadow:0 10px 28px rgba(33,47,61,.07);
  backdrop-filter:blur(16px);
}
.sm-wpadmin-brand { display:flex; align-items:center; gap:12px; min-width:0; }
.sm-wpadmin-brand img { width:50px; height:50px; object-fit:contain; flex:0 0 auto; }
.sm-wpadmin-brand span { display:flex; flex-direction:column; min-width:0; }
.sm-wpadmin-brand strong { font-size:17px; line-height:1.25; }
.sm-wpadmin-brand small { color:var(--sm-muted); font-size:13px; }
.sm-wpadmin-brandbar > a {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:8px 14px;
  color:var(--sm-green-dark);
  text-decoration:none;
  font-weight:600;
  border:1px solid #D5EEDF;
  border-radius:12px;
  background:#F3FBF7;
}
.sm-wpadmin-brandbar > a:hover { color:#006E37; border-color:#A8DABE; background:#EAF8F1; }
.sm-wpadmin-brandbar > a .sm-icon { width:17px; height:17px; }

.sm-admin-quicknav {
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  margin:0 0 18px;
  padding:8px;
  overflow-x:auto;
  scrollbar-width:thin;
  border:1px solid rgba(255,255,255,.95);
  border-radius:16px;
  background:rgba(255,255,255,.86);
  box-shadow:0 9px 24px rgba(33,47,61,.06);
}
.sm-admin-nav-link {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:8px 12px;
  color:#4C5560 !important;
  text-decoration:none !important;
  white-space:nowrap;
  border-radius:11px;
  font-size:14px;
  font-weight:600;
  transition:background var(--sm-transition),color var(--sm-transition),transform var(--sm-transition),box-shadow var(--sm-transition);
}
.sm-admin-nav-link .sm-icon { width:17px; height:17px; color:var(--sm-green); }
.sm-admin-nav-link:hover { color:#111 !important; background:#EFF9F4; transform:translateY(-1px); }
.sm-admin-nav-link.is-active { color:#fff !important; background:var(--sm-green); background:linear-gradient(135deg,color-mix(in srgb,var(--sm-green) 86%,white 14%),var(--sm-green-dark)); box-shadow:0 8px 20px rgba(var(--sm-green-rgb),.22); }
.sm-admin-nav-link.is-active .sm-icon { color:#fff; }
.smcrm-wpadmin-shell .sm-content { min-width:0; }
.smcrm-wpadmin-shell .sm-topbar { margin-bottom:16px; }
.smcrm-wpadmin-shell .sm-footer { padding-bottom:0; }
.smcrm-wpadmin-shell input,
.smcrm-wpadmin-shell select,
.smcrm-wpadmin-shell textarea,
.smcrm-wpadmin-shell button { font-family:inherit; }
.smcrm-wpadmin-shell input[type="text"],
.smcrm-wpadmin-shell input[type="email"],
.smcrm-wpadmin-shell input[type="number"],
.smcrm-wpadmin-shell input[type="tel"],
.smcrm-wpadmin-shell input[type="search"],
.smcrm-wpadmin-shell input[type="password"],
.smcrm-wpadmin-shell input[type="url"],
.smcrm-wpadmin-shell input[type="datetime-local"],
.smcrm-wpadmin-shell select,
.smcrm-wpadmin-shell textarea { font-size:16px; }

@media screen and (min-width:1600px) {
  .smcrm-wpadmin-wrap { font-size:17px; }
  .smcrm-wpadmin-shell .sm-main { padding-left:30px; padding-right:30px; }
  .sm-admin-nav-link { font-size:15px; min-height:41px; }
}

@media screen and (max-width:1100px) {
  .smcrm-wpadmin-shell .sm-topbar { align-items:flex-start; }
  .smcrm-wpadmin-shell .sm-header-tools { width:100%; justify-content:flex-start; }
  .smcrm-wpadmin-shell .sm-global-search { width:min(380px,100%); }
}

@media screen and (max-width:782px) {
  body.smcrm-wp-admin-page #wpcontent { padding-left:0; }
  .smcrm-wpadmin-wrap { font-size:16px; }
  .smcrm-wpadmin-shell { min-height:calc(100vh - 46px); }
  .smcrm-wpadmin-shell .sm-main { min-height:calc(100vh - 46px); padding:14px 12px 56px; }
  .sm-wpadmin-brandbar { align-items:flex-start; padding:12px; border-radius:15px; }
  .sm-wpadmin-brand img { width:44px; height:44px; }
  .sm-wpadmin-brand strong { font-size:16px; }
  .sm-wpadmin-brandbar > a { padding:8px 10px; font-size:13px; }
  .sm-admin-quicknav { border-radius:14px; }
  .sm-admin-nav-link { font-size:14px; }
}

@media screen and (max-width:520px) {
  .smcrm-wpadmin-shell .sm-main { padding-left:9px; padding-right:9px; }
  .sm-wpadmin-brandbar { flex-direction:column; }
  .sm-wpadmin-brandbar > a { width:100%; justify-content:center; }
  .smcrm-wpadmin-shell .sm-heading h1 { font-size:25px; }
  .smcrm-wpadmin-shell .sm-heading > span { font-size:14px; }
  .smcrm-wpadmin-shell .sm-header-tools { gap:8px; }
  .smcrm-wpadmin-shell .sm-global-search { min-width:100%; width:100%; }
  .sm-admin-nav-link { min-height:40px; padding:8px 11px; font-size:14px; }
}

/* Additive v3.0.2 modules. The v2.9.1 shell and navigation remain unchanged. */
.sm-chart-legend { display:flex; align-items:center; gap:14px; color:#6F7B73; font-size:10px; white-space:nowrap; }
.sm-chart-legend span { display:inline-flex; align-items:center; gap:6px; }
.sm-chart-legend span::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--sm-green); }
.sm-chart-legend .is-orange::before { background:#F2A93B; }
.sm-card-action { color:var(--sm-green-dark) !important; font-size:10px; font-weight:600; text-decoration:none !important; }
.sm-conversion-ring,.sm-performance-score-ring,.sm-mini-score-ring {
  position:relative;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:conic-gradient(var(--sm-green) calc(var(--score,0) * 1%),#E7F5ED 0);
}
.sm-conversion-ring { width:150px; height:150px; margin:22px auto 18px; }
.sm-conversion-ring::before,.sm-performance-score-ring::before,.sm-mini-score-ring::before { content:""; position:absolute; inset:12px; border-radius:50%; background:#fff; }
.sm-conversion-ring > div,.sm-performance-score-ring > span,.sm-mini-score-ring > b { position:relative; z-index:1; text-align:center; }
.sm-conversion-ring strong { display:block; font-size:26px; }
.sm-conversion-ring span { color:var(--sm-muted); font-size:10px; }
.sm-conversion-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.sm-conversion-list li { display:grid; grid-template-columns:8px 1fr auto; align-items:center; gap:8px; padding:7px 0; border-top:1px solid #F0F3F1; font-size:11px; }
.sm-conversion-list li > span { width:7px; height:7px; border-radius:50%; background:var(--sm-green); }
.sm-conversion-list li > span.is-mint { background:#8ADFB1; }
.sm-conversion-list li > span.is-orange { background:#F2A93B; }
.sm-conversion-list b { color:#657068; font-weight:500; }

.sm-dashboard-performance { margin:0 0 24px; padding:28px; border:1px solid #DCE7E0; border-radius:20px; background:linear-gradient(180deg,#FFFFFF 0%,#FCFEFD 100%); box-shadow:0 16px 42px rgba(24,70,45,.075); }
.sm-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.sm-section-heading h2 { margin:5px 0 0; font-size:24px; line-height:1.25; letter-spacing:-.35px; }
.sm-section-heading p { margin:7px 0 0; color:var(--sm-muted); font-size:14px; line-height:1.55; }
.sm-section-heading > a { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 4px; color:var(--sm-green-dark) !important; font-size:16px; font-weight:700; text-decoration:none !important; white-space:nowrap; }
.sm-section-heading > a:hover { color:var(--sm-green) !important; }
.sm-section-heading > a .sm-icon { width:18px; height:18px; }
.sm-performance-heading-actions { display:flex; align-items:flex-end; justify-content:flex-end; flex-wrap:wrap; gap:12px; }
.sm-performance-heading-actions > a { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 15px; border:1px solid #CFE5D8; border-radius:12px; background:#F4FBF7; color:var(--sm-green-dark) !important; font-size:13px; font-weight:700; text-decoration:none !important; white-space:nowrap; transition:background .2s ease,border-color .2s ease,transform .2s ease; }
.sm-performance-heading-actions > a:hover { border-color:#9ED3B5; background:#EAF8F0; transform:translateY(-1px); }
.sm-performance-heading-actions > a .sm-icon { width:17px; height:17px; }
.sm-performance-team-selector label { display:grid; gap:5px; color:var(--sm-muted); font-size:12px; font-weight:650; }
.sm-performance-team-selector select { min-width:210px; min-height:44px; border:1px solid #DCE5E0; border-radius:11px; padding:9px 36px 9px 12px; background:#fff; color:#26332C; font:600 14px var(--sm-font-family); }
.sm-filter-scope { display:grid; gap:4px; min-width:145px; padding:6px 12px; border:1px solid #E3EAE6; border-radius:11px; background:#F7FAF8; }
.sm-filter-scope span { color:var(--sm-muted); font-size:16px; font-weight:600; }
.sm-filter-scope strong { font-size:16px; }
.sm-team-progress-summary { display:grid; grid-template-columns:1.05fr 1fr 1.4fr; align-items:center; gap:20px; margin:0 0 20px; padding:20px; border:1px solid #CDE7D8; border-radius:16px; background:linear-gradient(135deg,#F5FCF8,#EBF8F1); }
.sm-team-progress-score { display:flex; align-items:center; gap:14px; min-width:0; }
.sm-team-progress-score > span { min-width:0; display:grid; gap:3px; }
.sm-team-progress-score small,.sm-team-progress-visits small,.sm-team-progress-metrics small { color:#65736B; font-weight:600; }
.sm-team-progress-score strong { font-size:21px; }
.sm-team-progress-score em { color:#66756C; font-size:14px; font-style:normal; line-height:1.45; }
.sm-team-progress-visits { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px 12px; padding:0 20px; border-left:1px solid #D3E8DB; border-right:1px solid #D3E8DB; }
.sm-team-progress-visits > span { display:grid; gap:4px; }
.sm-team-progress-visits > span strong { font-size:22px; }
.sm-team-progress-visits > .sm-progress { grid-column:1/-1; height:9px; overflow:hidden; border-radius:999px; background:#DDEDE4; }
.sm-team-progress-visits > .sm-progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--sm-green),#71D39E); }
.sm-team-progress-visits > b { color:var(--sm-green-dark); }
.sm-team-progress-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.sm-team-progress-metrics span { display:grid; gap:4px; min-width:0; padding:10px 12px; border:1px solid #DDEDE4; border-radius:11px; background:rgba(255,255,255,.78); }
.sm-team-progress-metrics strong { font-size:20px; }
.sm-user-performance-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.sm-user-performance-card { position:relative; display:block; min-width:0; padding:21px; overflow:hidden; color:inherit !important; text-decoration:none !important; border:1px solid #DCE7E0; border-radius:17px; background:#fff; box-shadow:0 6px 18px rgba(28,66,45,.045); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.sm-user-performance-card::after { content:""; position:absolute; top:0; left:22px; right:22px; height:3px; border-radius:0 0 4px 4px; background:linear-gradient(90deg,var(--sm-green),#77D7A2); opacity:0; transition:opacity .2s ease; }
.sm-user-performance-card:hover { transform:translateY(-3px); border-color:#A9DCC0; box-shadow:0 14px 30px rgba(27,116,70,.11); }
.sm-user-performance-card:hover::after { opacity:1; }
.sm-user-performance-card header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; }
.sm-user-performance-person { min-width:0; display:flex; align-items:center; gap:13px; }
.sm-user-performance-person > img { width:52px; height:52px; flex:0 0 auto; border:2px solid #fff; border-radius:14px; object-fit:cover; box-shadow:0 4px 12px rgba(25,80,48,.13); }
.sm-user-performance-person > span { min-width:0; display:grid; gap:3px; }
.sm-user-performance-person strong { overflow:hidden; font-size:17px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.sm-user-performance-person small { overflow:hidden; color:var(--sm-muted); font-size:13px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.sm-user-performance-presence { min-width:0; display:flex; align-items:center; flex-wrap:wrap; gap:4px 7px; margin-top:3px; color:#68756D; font-size:11px; line-height:1.35; }
.sm-user-performance-presence > i { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:#8B9690; }
.sm-user-performance-presence > b { flex:0 0 auto; color:#5F6A64; font-size:11px; font-weight:750; }
.sm-user-performance-presence > em { min-width:0; color:#7A867F; font-size:10.5px; font-style:normal; font-weight:550; white-space:normal; }
.sm-user-performance-presence.is-online > i { background:#10A85B; box-shadow:0 0 0 4px rgba(16,168,91,.12); animation:sm-dashboard-presence-pulse 2.2s ease-in-out infinite; }
.sm-user-performance-presence.is-online > b { color:#087A43; }
.sm-user-performance-presence.is-offline > i { background:#929C96; }
@keyframes sm-dashboard-presence-pulse { 0%,100% { box-shadow:0 0 0 3px rgba(16,168,91,.1); } 50% { box-shadow:0 0 0 6px rgba(16,168,91,.02); } }
.sm-user-performance-score { display:flex; align-items:center; gap:9px; }
.sm-user-performance-score > small { color:#77847C; font-size:11px; font-weight:650; letter-spacing:.15px; }
.sm-mini-score-ring { width:62px; height:62px; }
.sm-mini-score-ring::before { inset:6px; }
.sm-mini-score-ring > b { font-size:16px; font-weight:800; }
.sm-user-performance-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:20px 0 18px; }
.sm-user-performance-stats > span { min-width:0; min-height:82px; display:flex; flex-direction:column; justify-content:space-between; gap:8px; padding:12px 13px; border:1px solid #E7EFEA; border-radius:12px; background:#F8FBF9; text-align:left; box-shadow:inset 3px 0 0 #C7D5CD; }
.sm-user-performance-stats > span.is-primary { background:#F0FAF5; box-shadow:inset 3px 0 0 var(--sm-green); }
.sm-user-performance-stats > span.is-warning { background:#FFF9EF; box-shadow:inset 3px 0 0 #E9A23B; }
.sm-user-performance-stats > span.is-success { background:#F2FAF5; box-shadow:inset 3px 0 0 #48B97D; }
.sm-user-performance-stats > span.is-blue { background:#F3F8FD; box-shadow:inset 3px 0 0 #4C91D8; }
.sm-user-performance-stats > span.is-violet { background:#F7F5FC; box-shadow:inset 3px 0 0 #8C72C7; }
.sm-user-performance-stats small { display:block; overflow:visible; color:#66736B; font-size:12px; font-weight:650; line-height:1.35; text-overflow:clip; white-space:normal; }
.sm-user-performance-stats strong { display:block; margin:0; color:#142019; font-size:21px; line-height:1.05; letter-spacing:-.25px; }
.sm-user-performance-card footer { display:grid; grid-template-columns:1fr; gap:9px; color:#66736B; }
.sm-user-performance-target { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sm-user-performance-target span { min-width:0; color:#66736B; font-size:12px; font-weight:600; line-height:1.35; }
.sm-user-performance-target b { flex:0 0 auto; color:var(--sm-green-dark); font-size:13px; }
.sm-user-performance-card footer .sm-progress { height:8px; overflow:hidden; border-radius:999px; background:#E6EDE9; }
.sm-user-performance-card footer .sm-progress i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--sm-green),#72D59F); transition:width .35s ease; }
.sm-live-updated { display:block; margin-top:16px; color:#7B8980; font-size:11px; text-align:right; }

.sm-modern-lower-grid { display:grid; grid-template-columns:1.05fr .9fr 1fr; gap:14px; margin-bottom:16px; }
.sm-modern-lower-grid > .sm-card { min-height:286px; }
.sm-modern-lower-grid .sm-pipeline-summary,.sm-modern-lower-grid .sm-project-performance { padding:16px; }
.sm-modern-side-stack { display:grid; gap:12px; }
.sm-modern-side-stack .sm-small-chart-card { min-height:150px; padding:15px; }
.sm-modern-side-stack .sm-small-chart-body { margin-top:8px; }
.sm-modern-side-stack .sm-donut { width:82px; }
.sm-modern-side-stack .sm-quick-stats { grid-template-columns:repeat(3,1fr); grid-template-rows:auto; gap:7px; }
.sm-modern-side-stack .sm-quick-card { min-height:76px; padding:9px; }
.sm-modern-side-stack .sm-quick-card .sm-kpi-icon { display:none; }
.sm-modern-side-stack .sm-quick-card strong { font-size:17px; }
.sm-modern-side-stack .sm-quick-card a { display:none; }

.sm-performance-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:15px; padding:18px; border:1px solid #DCECE3; border-radius:14px; background:linear-gradient(135deg,#F8FCFA,#EAF8F1); }
.sm-performance-person { display:flex; align-items:center; gap:13px; min-width:0; }
.sm-performance-person img { width:64px; height:64px; border-radius:14px; object-fit:cover; border:3px solid #fff; box-shadow:0 7px 18px rgba(32,110,69,.12); }
.sm-performance-person span { min-width:0; }
.sm-performance-person small { color:var(--sm-green-dark); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; }
.sm-performance-person h2 { margin:2px 0; font-size:21px; }
.sm-performance-person p { margin:0; color:var(--sm-muted); font-size:10px; }
.sm-performance-filter,.sm-insights-filter { flex-wrap:wrap; align-items:end; }
.sm-performance-filter > label,.sm-insights-filter > label { flex:1 1 125px; min-width:115px; }
.sm-performance-kpis { grid-template-columns:repeat(6,minmax(0,1fr)); }
.sm-performance-visual-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,.65fr); gap:14px; margin:16px 0; }
.sm-performance-trend-card,.sm-performance-score-card { min-height:340px; padding:18px; }
.sm-performance-trend-card .sm-chart-container { height:270px; }
.sm-performance-score-ring { width:172px; height:172px; margin:18px auto; }
.sm-performance-score-ring::before { inset:16px; }
.sm-performance-score-ring strong { display:block; font-size:30px; }
.sm-performance-score-ring small { display:block; color:var(--sm-muted); font-size:10px; }
.sm-score-breakdown { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.sm-score-breakdown span { display:flex; justify-content:space-between; gap:8px; padding:8px; border-radius:8px; background:#F4F8F6; font-size:9px; }
.sm-score-breakdown b { color:#667169; font-weight:500; }
.sm-score-breakdown em { color:var(--sm-green-dark); font-style:normal; font-weight:700; }
.sm-score-note { display:block; margin-top:9px; color:var(--sm-muted); font-size:10px; line-height:1.45; text-align:center; }
.sm-performance-period-tabs { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:16px; margin:0 0 20px; padding:9px; border:1px solid #E0EAE4; border-radius:15px; background:#F7FAF8; }
.sm-performance-period-options { display:grid; grid-template-columns:repeat(3,minmax(96px,1fr)); gap:4px; padding:4px; border:1px solid #E1EAE5; border-radius:12px; background:#fff; box-shadow:0 3px 10px rgba(31,77,50,.045); }
.sm-performance-period-tabs a { min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:0 13px; border:0; border-radius:9px; background:transparent; color:#56655C !important; text-decoration:none !important; font-size:12px; font-weight:700; white-space:nowrap; transition:background .2s ease,color .2s ease,box-shadow .2s ease; }
.sm-performance-period-tabs a .sm-icon { width:16px; height:16px; }
.sm-performance-period-tabs a span { font-size:12px; }
.sm-performance-period-tabs a.is-active { background:var(--sm-green); color:#fff !important; box-shadow:0 6px 14px rgba(var(--sm-green-rgb),.23); }
.sm-performance-period-tabs a:not(.is-active):hover { background:#ECF7F1; color:var(--sm-green-dark) !important; }
.sm-performance-period-note { min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:0 8px; color:var(--sm-muted); }
.sm-performance-period-note > .sm-icon { width:19px; height:19px; flex:0 0 auto; color:var(--sm-green); }
.sm-performance-period-note > span { min-width:0; display:grid; gap:2px; color:#68766D; font-size:11px; line-height:1.45; text-align:right; }
.sm-performance-period-note strong { color:#35433B; font-size:11px; }
.sm-metric-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; }
.sm-metric-tile { min-height:86px; padding:15px; }
.sm-metric-tile strong { margin-top:8px; font-size:18px; }
.sm-activity-timeline { margin-top:16px; }

/* Dashboard daily follow-up reminder and previous-month report */
.sm-followup-reminder { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px; min-height:64px; margin:0 0 16px; padding:10px 14px; overflow:hidden; border:1px solid rgba(var(--sm-green-rgb),.2); border-radius:15px; background:linear-gradient(100deg,#F7FCF9,#FFFFFF 60%,#F3FBF6); box-shadow:0 8px 24px rgba(22,83,50,.06); }
.sm-followup-reminder-label { display:flex; align-items:center; gap:9px; min-width:max-content; color:var(--sm-green-dark); font-weight:700; }
.sm-followup-reminder-label .sm-icon { width:20px; height:20px; }
.sm-followup-reminder-label span { font-size:14px; }
.sm-followup-reminder-label strong { min-width:29px; height:29px; display:grid; place-items:center; border-radius:999px; background:var(--sm-green); color:#fff; font-size:13px; }
.sm-followup-reminder-viewport { min-width:0; overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); }
.sm-followup-reminder-track { width:max-content; display:flex; animation:sm-followup-marquee 32s linear infinite; will-change:transform; }
.sm-followup-reminder:hover .sm-followup-reminder-track,.sm-followup-reminder:focus-within .sm-followup-reminder-track { animation-play-state:paused; }
.sm-followup-reminder-group { display:flex; align-items:center; gap:26px; padding-right:26px; }
.sm-followup-reminder-group > a { position:relative; display:flex; align-items:center; gap:8px; min-height:38px; padding:6px 12px; border:1px solid #E3ECE7; border-radius:999px; background:#fff; color:inherit !important; text-decoration:none !important; white-space:nowrap; }
.sm-followup-reminder-group > a::after { content:""; position:absolute; right:-15px; width:4px; height:4px; border-radius:50%; background:#B8C7BE; }
.sm-followup-reminder-group strong { font-size:13px; }
.sm-followup-reminder-group span { color:var(--sm-muted); font-size:12px; }
.sm-followup-reminder-group em { padding:3px 7px; border-radius:999px; background:#E9F8F0; color:var(--sm-green-dark); font-size:10px; font-style:normal; font-weight:700; text-transform:uppercase; letter-spacing:.25px; }
.sm-followup-reminder-group em.is-overdue { background:#FFF0E4; color:#B45309; }
.sm-followup-reminder-more { align-self:center; color:var(--sm-muted); font-size:12px; font-weight:700; white-space:nowrap; }
.sm-followup-reminder-open { display:inline-flex; align-items:center; gap:7px; min-width:max-content; color:var(--sm-green-dark) !important; font-size:13px; font-weight:700; text-decoration:none !important; }
.sm-followup-reminder-open .sm-icon,.sm-followup-reminder > a:last-child .sm-icon { width:15px; height:15px; }
.sm-followup-reminder-empty { overflow:hidden; color:#536159; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.sm-followup-reminder.is-clear { border-color:#DCE9E1; background:#FBFDFC; }
@keyframes sm-followup-marquee { from { transform:translateX(0); } to { transform:translateX(calc(-50% - 13px)); } }

.sm-previous-month-report { margin:0 0 24px; padding:24px; border-color:#DDE8E2; }
.sm-previous-month-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.sm-previous-month-head h2 { margin:5px 0 2px; font-size:22px; line-height:1.2; }
.sm-previous-month-head p { margin:0; color:var(--sm-muted); font-size:13px; }
.sm-previous-month-head > a { display:inline-flex; align-items:center; gap:7px; color:var(--sm-green-dark) !important; font-size:13px; font-weight:700; text-decoration:none !important; white-space:nowrap; }
.sm-previous-month-head > a .sm-icon { width:16px; height:16px; }
.sm-previous-month-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:11px; }
.sm-previous-month-grid article { display:flex; align-items:center; gap:11px; min-width:0; min-height:82px; padding:14px; border:1px solid #E7EEE9; border-radius:13px; background:#FBFDFC; }
.sm-previous-month-grid article > div { min-width:0; }
.sm-previous-month-grid article.is-linked { padding:0; }
.sm-previous-month-grid article.is-linked > a { width:100%; min-height:80px; display:flex; align-items:center; gap:11px; padding:14px; border-radius:inherit; color:inherit !important; text-decoration:none !important; }
.sm-previous-month-grid article.is-linked > a:focus-visible { outline:3px solid rgba(17,154,88,.24); outline-offset:3px; }
.sm-previous-month-grid small { display:block; overflow:hidden; color:var(--sm-muted); font-size:12px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.sm-previous-month-grid strong { display:block; margin-top:4px; font-size:20px; line-height:1.1; }
.sm-previous-month-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:11px; }
.sm-previous-month-icon .sm-icon { width:18px; height:18px; }

.sm-modern-analytics-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
.sm-modern-analytics-kpis article { min-height:104px; padding:16px; border-radius:12px; }
.sm-modern-analytics-kpis strong { font-size:21px; }
.sm-modern-analytics-kpis i { width:40px; height:40px; border-radius:10px; }
.sm-report-grid { margin-top:16px; }
.sm-report-card > .sm-card-head { background:#FBFDFC; }
.sm-pdf-center { border-style:dashed; }

@media (max-width:1450px) {
  .sm-user-performance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sm-modern-lower-grid { grid-template-columns:1fr 1fr; }
  .sm-modern-lower-grid > .sm-project-performance { grid-column:1/-1; min-height:auto; }
}
@media (max-width:1180px) {
  .sm-modern-kpi-grid,.sm-performance-kpis,.sm-modern-analytics-kpis { grid-template-columns:repeat(2,1fr); }
  .sm-team-progress-summary { grid-template-columns:1fr 1fr; }
  .sm-team-progress-metrics { grid-column:1/-1; grid-template-columns:repeat(4,minmax(0,1fr)); }
  .sm-team-progress-visits { border-right:0; }
  .sm-modern-analytics-grid,.sm-performance-visual-grid { grid-template-columns:1fr; }
  .sm-conversion-overview { min-height:auto; }
  .sm-conversion-ring { width:132px; height:132px; }
  .sm-metric-grid { grid-template-columns:repeat(2,1fr); }
  .sm-previous-month-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:980px) {
  .sm-user-performance-grid { grid-template-columns:1fr; }
  .sm-performance-period-tabs { grid-template-columns:1fr; gap:10px; }
  .sm-performance-period-note { justify-content:flex-start; padding:2px 5px 4px; }
  .sm-performance-period-note > span { text-align:left; }
}
@media (max-width:760px) {
  .sm-modern-kpi-grid,.sm-performance-kpis,.sm-modern-analytics-kpis,.sm-user-performance-grid,.sm-modern-lower-grid,.sm-metric-grid { grid-template-columns:1fr; }
  .sm-dashboard-performance { padding:20px; }
  .sm-modern-lower-grid > .sm-project-performance { grid-column:auto; }
  .sm-command-chart,.sm-conversion-overview,.sm-performance-trend-card,.sm-performance-score-card { min-height:auto; }
  .sm-command-chart .sm-chart-container,.sm-performance-trend-card .sm-chart-container { height:230px; }
  .sm-section-heading,.sm-performance-hero { align-items:flex-start; flex-direction:column; }
  .sm-performance-hero .sm-btn { width:100%; }
  .sm-modern-side-stack .sm-quick-stats { grid-template-columns:1fr 1fr 1fr; }
  .sm-score-breakdown { grid-template-columns:1fr; }
  .sm-performance-heading-actions { width:100%; align-items:stretch; flex-direction:column; }
  .sm-team-progress-summary { grid-template-columns:1fr; }
  .sm-team-progress-visits { padding:16px 0; border-left:0; border-right:0; border-top:1px solid #D3E8DB; border-bottom:1px solid #D3E8DB; }
  .sm-team-progress-metrics { grid-column:auto; grid-template-columns:1fr 1fr; }
  .sm-performance-team-selector,.sm-performance-team-selector label,.sm-performance-team-selector select { width:100%; }
  .sm-lead-preview-grid { grid-template-columns:1fr 1fr; }
  .sm-followup-compose-form { grid-template-columns:1fr; }
  .sm-followup-note-field,.sm-followup-submit { grid-column:auto; }
  .sm-followup-submit { align-items:stretch; flex-direction:column; }
  .sm-followup-submit .sm-btn { width:100%; }
  .sm-performance-heading-actions > a { width:100%; }
  .sm-performance-period-tabs { align-items:stretch; padding:7px; }
  .sm-performance-period-options { width:100%; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .sm-user-performance-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sm-followup-reminder { grid-template-columns:1fr auto; gap:10px; }
  .sm-followup-reminder-label { grid-column:1; }
  .sm-followup-reminder-open,.sm-followup-reminder > a:last-child { grid-column:2; grid-row:1; }
  .sm-followup-reminder-viewport,.sm-followup-reminder-empty { grid-column:1/-1; }
  .sm-previous-month-head { align-items:flex-start; flex-direction:column; }
  .sm-previous-month-grid { grid-template-columns:repeat(2,1fr); }
  .sm-lead-server-pagination { align-items:stretch; flex-direction:column; }
  .sm-lead-server-pagination > div:first-child { margin-right:0; }
  .sm-lead-server-pagination form label { justify-content:space-between; }
  .sm-lead-server-pagination nav { overflow-x:auto; }
  .sm-ai-section-head,.sm-ai-builder-head,.sm-ai-builder-history > div { align-items:flex-start; flex-direction:column; }
  .sm-ai-builder-head > strong { align-self:flex-start; }
  .sm-ai-builder-plan-actions { align-items:stretch; flex-direction:column; }
  .sm-ai-builder-plan-actions .sm-btn { width:100%; }
}
@media (max-width:520px) {
  .sm-dashboard-performance { padding:16px; border-radius:16px; }
  .sm-section-heading h2 { font-size:21px; }
  .sm-user-performance-card { padding:16px; }
  .sm-modern-side-stack .sm-quick-stats { grid-template-columns:1fr; }
  .sm-user-performance-stats { grid-template-columns:1fr 1fr; }
  .sm-user-performance-card header { grid-template-columns:minmax(0,1fr) auto; gap:10px; }
  .sm-user-performance-person { gap:10px; }
  .sm-user-performance-person > img { width:46px; height:46px; border-radius:12px; }
  .sm-user-performance-presence { gap:3px 6px; }
  .sm-user-performance-presence > em { flex-basis:100%; padding-left:14px; }
  .sm-user-performance-score > small { display:none; }
  .sm-mini-score-ring { width:54px; height:54px; }
  .sm-mini-score-ring > b { font-size:14px; }
  .sm-user-performance-stats { gap:8px; margin:16px 0; }
  .sm-user-performance-stats > span { min-height:76px; padding:11px; }
  .sm-performance-period-tabs a { min-height:42px; gap:5px; padding:0 7px; }
  .sm-performance-period-tabs a .sm-icon { width:14px; height:14px; }
  .sm-performance-period-note { align-items:flex-start; }
  .sm-performance-period-note > span { font-size:10px; }
  .sm-performance-person { align-items:flex-start; }
  .sm-performance-person img { width:54px; height:54px; }
  .sm-chart-legend { gap:7px; font-size:8px; }
  .sm-lead-preview-grid { grid-template-columns:1fr; }
  .sm-followup-compose,.sm-followup-history { margin-left:12px; margin-right:12px; }
  .sm-followup-section-head { align-items:flex-start; flex-direction:column; padding:16px; }
  .sm-followup-section-head > b { align-self:flex-start; }
  .sm-followup-compose-form,.sm-followup-history > ol { padding:16px; }
  .sm-followup-history li article > header { flex-direction:column; }
  .sm-followup-history-badges { justify-content:flex-start; }
  .sm-inline-team-form { align-items:stretch; flex-direction:column; }
  .sm-inline-team-form select,.sm-inline-team-form .sm-btn { width:100%; }
  .sm-favicon-editor { grid-template-columns:1fr; }
  .sm-ai-builder { padding:16px; }
  .sm-ai-builder-examples { flex-direction:column; }
  .sm-ai-builder-examples button { width:100%; }
  .sm-previous-month-report { padding:18px; }
  .sm-previous-month-grid { grid-template-columns:1fr; }
  .sm-followup-reminder-label span { font-size:13px; }
  .sm-followup-reminder-open,.sm-followup-reminder > a:last-child { font-size:0; }
  .sm-followup-reminder-open .sm-icon,.sm-followup-reminder > a:last-child .sm-icon { width:19px; height:19px; }
}

@media (prefers-reduced-motion:reduce) {
  .sm-followup-reminder-track { width:100%; animation:none; }
  .sm-followup-reminder-group:first-child { max-width:100%; overflow-x:auto; }
  .sm-followup-reminder-group[aria-hidden="true"] { display:none; }
  .sm-user-performance-presence.is-online > i { animation:none; }
}

/* v3.11.0 visit-led performance workspace and missed follow-up updates */
.sm-dashboard-performance {
  padding:26px;
  border:1px solid #DDEAE3;
  border-radius:22px;
  background:linear-gradient(145deg,#FBFDFC 0%,#F6FBF8 46%,#FFFFFF 100%);
  box-shadow:0 18px 45px rgba(25,72,45,.055);
}
.sm-dashboard-performance > .sm-section-heading { margin-bottom:18px; }
.sm-dashboard-performance .sm-section-heading h2 { margin-bottom:5px; letter-spacing:-.35px; }
.sm-performance-period-tabs {
  grid-template-columns:minmax(320px,.72fr) minmax(360px,1.28fr);
  gap:18px;
  padding:10px;
  border-color:#DCE8E1;
  border-radius:16px;
  background:#F5F9F7;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.sm-performance-period-options { border:0; box-shadow:0 5px 16px rgba(28,72,46,.06); }
.sm-performance-period-tabs a { min-height:43px; border-radius:9px; font-size:13px; }
.sm-performance-period-note { justify-content:flex-start; padding:2px 10px; }
.sm-performance-period-note > span { text-align:left; }
.sm-performance-period-note strong { font-size:12px; }

.sm-team-progress-summary {
  grid-template-columns:minmax(250px,1.05fr) minmax(235px,.9fr) minmax(330px,1.25fr);
  gap:22px;
  padding:22px;
  border-color:#CBE4D6;
  border-radius:18px;
  background:linear-gradient(128deg,#F0FAF5 0%,#F8FCFA 54%,#FFFFFF 100%);
  box-shadow:0 10px 28px rgba(30,103,62,.065);
}
.sm-team-progress-score strong { font-size:22px; }
.sm-team-progress-score em { font-size:12px; }
.sm-team-progress-target {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:8px 12px;
  padding:2px 22px;
  border-left:1px solid #CEE5D8;
  border-right:1px solid #CEE5D8;
}
.sm-team-progress-target > span { display:grid; gap:4px; }
.sm-team-progress-target small { color:#65736B; font-size:12px; font-weight:650; }
.sm-team-progress-target strong { font-size:24px; letter-spacing:-.35px; }
.sm-team-progress-target > b { color:var(--sm-green-dark); font-size:13px; }
.sm-team-progress-target > .sm-progress {
  grid-column:1/-1;
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:#DDEDE4;
}
.sm-team-progress-target > .sm-progress i {
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--sm-green),#72D59F);
  transition:width .35s ease;
}
.sm-team-progress-target.is-neutral > .sm-progress { opacity:.55; }
.sm-team-progress-metrics span { min-height:64px; justify-content:center; padding:11px 13px; }
.sm-team-progress-metrics span.is-alert { border-color:#F2D7D4; background:#FFF8F7; }
.sm-team-progress-metrics span.is-alert strong { color:#B42318; }

.sm-user-performance-grid { gap:20px; }
.sm-user-performance-card {
  padding:22px;
  border-color:#D9E7DF;
  border-radius:20px;
  background:linear-gradient(155deg,#FFFFFF 0%,#FFFFFF 68%,#FAFCFB 100%);
  box-shadow:0 10px 28px rgba(25,69,43,.065);
}
.sm-user-performance-card::before {
  content:"";
  position:absolute;
  top:-55px;
  right:-55px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(var(--sm-green-rgb),.08),transparent 69%);
  pointer-events:none;
}
.sm-user-performance-card::after { left:0; right:0; height:4px; border-radius:20px 20px 0 0; }
.sm-user-performance-card:hover { transform:translateY(-4px); box-shadow:0 18px 38px rgba(27,108,65,.12); }
.sm-user-performance-card header { position:relative; z-index:1; padding-bottom:17px; border-bottom:1px solid #E8EFEB; }
.sm-user-performance-person > img { width:56px; height:56px; border-radius:16px; }
.sm-user-performance-person strong { font-size:18px; }
.sm-user-performance-score { padding-left:10px; }
.sm-user-performance-score > small { text-transform:uppercase; letter-spacing:.45px; }
.sm-user-performance-visit {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px 14px;
  margin:17px 0;
  padding:14px 15px;
  border:1px solid #CFE6DA;
  border-radius:15px;
  background:linear-gradient(110deg,#ECF9F2,#F8FCFA 62%,#FFFFFF);
}
.sm-user-performance-visit-copy { min-width:0; display:flex; align-items:center; gap:12px; }
.sm-user-performance-visit-copy > span:last-child { min-width:0; display:grid; gap:2px; }
.sm-user-performance-visit-icon {
  width:42px;
  height:42px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--sm-green);
  color:#fff;
  box-shadow:0 7px 14px rgba(var(--sm-green-rgb),.2);
}
.sm-user-performance-visit-icon .sm-icon { width:20px; height:20px; }
.sm-user-performance-visit small { color:#5F6F66; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.35px; }
.sm-user-performance-visit strong { color:#14231A; font-size:24px; line-height:1.05; letter-spacing:-.45px; }
.sm-user-performance-visit em { color:#6B7A71; font-size:11px; font-style:normal; line-height:1.35; }
.sm-user-performance-visit > b { color:var(--sm-green-dark); font-size:13px; white-space:nowrap; }
.sm-user-performance-visit > .sm-progress {
  grid-column:1/-1;
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#DDEBE4;
}
.sm-user-performance-visit > .sm-progress i {
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--sm-green),#78D8A5);
  transition:width .35s ease;
}
.sm-user-performance-visit.is-neutral { border-style:dashed; background:#F8FAF9; }
.sm-user-performance-visit.is-neutral .sm-user-performance-visit-icon { background:#718078; box-shadow:none; }
.sm-user-performance-visit.is-neutral > .sm-progress { opacity:.45; }
.sm-user-performance-stats { gap:9px; margin:0 0 17px; }
.sm-user-performance-stats > span { min-height:78px; padding:12px; border-radius:13px; box-shadow:none; }
.sm-user-performance-stats > span.is-danger { border-color:#F0DEDC; background:#FFF8F7; box-shadow:inset 3px 0 0 #D84B3F; }
.sm-user-performance-stats > span.is-danger strong { color:#B42318; }
.sm-user-performance-stats small { font-size:11.5px; }
.sm-user-performance-stats strong { font-size:22px; }
.sm-user-performance-card footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:14px;
  border-top:1px solid #E8EFEB;
  color:#718078;
  font-size:11px;
  line-height:1.45;
}
.sm-user-performance-card footer > span { min-width:0; }
.sm-user-performance-card footer > strong { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; color:var(--sm-green-dark); font-size:11px; }
.sm-user-performance-card footer .sm-icon { width:15px; height:15px; transition:transform .2s ease; }
.sm-user-performance-card:hover footer .sm-icon { transform:translateX(3px); }

.sm-followup-row-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:250px; }
.sm-followup-row-actions .sm-action-preview {
  min-height:32px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 9px;
  border:1px solid #DFE9E3;
  border-radius:9px;
  background:#fff;
  color:#56645C !important;
  text-decoration:none !important;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}
.sm-followup-row-actions .sm-action-preview .sm-icon { width:15px; height:15px; }
.sm-followup-row-actions .sm-action-preview.is-update { border-color:#B9DEC9; background:#EDF9F2; color:#087842 !important; }
.sm-followup-row-actions .sm-action-preview.is-complete { border-color:#B7E4C9; background:#ECFDF3; color:#067647 !important; }
.sm-followup-row-actions .sm-action-preview.is-reschedule { border-color:#B8D7F5; background:#EEF6FF; color:#175CD3 !important; }
.sm-followup-row-actions .sm-action-preview.is-note { border-color:#E3D4F5; background:#F8F3FF; color:#6941C6 !important; }
.sm-followup-row-actions .sm-action-preview:hover { border-color:var(--sm-green); color:var(--sm-green-dark) !important; }
.sm-followup-update-dialog { width:min(720px,100%); }
.sm-followup-update-summary {
  display:flex;
  align-items:center;
  gap:14px;
  margin:18px 20px 0;
  padding:15px 17px;
  border:1px solid #F0D7D2;
  border-radius:14px;
  background:linear-gradient(110deg,#FFF7F5,#FFFCFB);
}
.sm-followup-update-alert { width:42px; height:42px; flex:0 0 auto; display:grid; place-items:center; border-radius:12px; background:#FDE9E6; color:#B42318; }
.sm-followup-update-alert .sm-icon { width:21px; height:21px; }
.sm-followup-update-summary > div { min-width:0; display:grid; gap:3px; }
.sm-followup-update-summary small { color:#8A5E57; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.sm-followup-update-summary strong { color:#522D29; font-size:17px; }
.sm-followup-update-summary p { margin:0; color:#82665F; font-size:12px; }
.sm-followup-update-form { padding:18px 20px 20px; }
.sm-followup-update-rule { display:flex; align-items:flex-start; gap:10px; padding:13px 14px; border:1px solid #D8EADF; border-radius:12px; background:#F4FAF7; }
.sm-followup-update-rule > .sm-icon { width:19px; height:19px; flex:0 0 auto; color:var(--sm-green); }
.sm-followup-update-rule > span { display:grid; gap:3px; }
.sm-followup-update-rule strong { color:#2D4336; font-size:12px; }
.sm-followup-update-rule small { color:#68776E; font-size:11px; line-height:1.45; }

@media (max-width:1180px) {
  .sm-performance-period-tabs { grid-template-columns:1fr; gap:10px; }
  .sm-team-progress-summary { grid-template-columns:1fr 1fr; }
  .sm-team-progress-target { border-right:0; }
  .sm-team-progress-metrics { grid-column:1/-1; }
}
@media (max-width:760px) {
  .sm-dashboard-performance { padding:20px; border-radius:18px; }
  .sm-team-progress-summary { grid-template-columns:1fr; }
  .sm-team-progress-target { padding:16px 0; border:0; border-top:1px solid #CEE5D8; border-bottom:1px solid #CEE5D8; }
  .sm-team-progress-metrics { grid-column:auto; grid-template-columns:1fr 1fr; }
  .sm-user-performance-card { padding:18px; }
  .sm-user-performance-card footer { align-items:flex-start; flex-direction:column; }
  .sm-followup-row-actions { min-width:190px; }
}
@media (max-width:520px) {
  .sm-dashboard-performance { padding:15px; }
  .sm-performance-period-tabs { margin-bottom:15px; }
  .sm-performance-period-options { gap:3px; }
  .sm-performance-period-tabs a { min-height:42px; padding:0 5px; }
  .sm-performance-period-note { padding:3px 5px; }
  .sm-team-progress-summary { padding:17px; }
  .sm-team-progress-metrics { gap:7px; }
  .sm-team-progress-metrics span { min-height:60px; padding:9px; }
  .sm-user-performance-card { padding:15px; border-radius:17px; }
  .sm-user-performance-card header { align-items:start; }
  .sm-user-performance-score { padding-left:4px; }
  .sm-user-performance-visit { grid-template-columns:1fr; align-items:start; padding:13px; }
  .sm-user-performance-visit > b { justify-self:start; padding:4px 8px; border-radius:999px; background:#E4F4EB; }
  .sm-user-performance-stats { grid-template-columns:1fr 1fr; gap:7px; }
  .sm-user-performance-stats > span { min-height:72px; padding:10px; }
  .sm-user-performance-stats small { font-size:10.5px; }
  .sm-user-performance-stats strong { font-size:20px; }
  .sm-followup-update-summary { align-items:flex-start; margin:14px 14px 0; padding:13px; }
  .sm-followup-update-form { grid-template-columns:1fr; padding:14px; }
  .sm-followup-update-form .sm-field-span-2 { grid-column:auto; }
  .sm-followup-update-form .sm-modal-actions { align-items:stretch; flex-direction:column; }
  .sm-followup-update-form .sm-btn { width:100%; }
}

/* v3.11.1 — friendly, low-noise Team Performance dashboard */
.sm-dashboard-performance {
  --sm-performance-border:#E2E9E5;
  --sm-performance-surface:#F7F9F8;
  --sm-performance-text:#17231C;
  --sm-performance-muted:#6D7972;
  padding:clamp(20px,2vw,30px);
  border:1px solid var(--sm-performance-border);
  border-radius:22px;
  background:#FFFFFF;
  box-shadow:0 12px 34px rgba(27,63,43,.06);
}
.sm-dashboard-performance > .sm-section-heading {
  align-items:center;
  margin-bottom:20px;
}
.sm-dashboard-performance .sm-eyebrow {
  color:#158A50;
  font-size:11px;
  font-weight:750;
  letter-spacing:.65px;
}
.sm-dashboard-performance .sm-section-heading h2 {
  margin:4px 0 0;
  color:var(--sm-performance-text);
  font-size:clamp(22px,2vw,27px);
  line-height:1.2;
  letter-spacing:-.55px;
}
.sm-dashboard-performance .sm-section-heading p {
  max-width:650px;
  margin-top:7px;
  color:var(--sm-performance-muted);
  font-size:13px;
}
.sm-dashboard-performance .sm-performance-heading-actions > a {
  min-height:42px;
  padding:0 14px;
  border-color:#DCE7E1;
  border-radius:10px;
  background:#FFFFFF;
  box-shadow:0 3px 10px rgba(31,72,48,.04);
}
.sm-dashboard-performance .sm-performance-heading-actions > a:hover {
  border-color:#A7D7BC;
  background:#F3FAF6;
}

.sm-dashboard-performance .sm-performance-period-tabs {
  grid-template-columns:minmax(300px,.72fr) minmax(360px,1.28fr);
  gap:14px;
  margin-bottom:18px;
  padding:8px;
  border:1px solid #E3EAE6;
  border-radius:14px;
  background:#F7F9F8;
  box-shadow:none;
}
.sm-dashboard-performance .sm-performance-period-options {
  padding:3px;
  border:1px solid #E5EBE7;
  border-radius:10px;
  background:#FFFFFF;
  box-shadow:none;
}
.sm-dashboard-performance .sm-performance-period-tabs a {
  min-height:39px;
  border-radius:8px;
  color:#657169 !important;
  font-size:12px;
}
.sm-dashboard-performance .sm-performance-period-tabs a.is-active {
  background:#119A58;
  color:#FFFFFF !important;
  box-shadow:0 4px 10px rgba(17,154,88,.2);
}
.sm-dashboard-performance .sm-performance-period-note {
  padding:2px 8px;
}
.sm-dashboard-performance .sm-performance-period-note > .sm-icon {
  width:18px;
  height:18px;
  color:#1B9A5A;
}
.sm-dashboard-performance .sm-performance-period-note > span {
  gap:1px;
  color:#6D7972;
  font-size:10.5px;
  text-align:left;
}
.sm-dashboard-performance .sm-performance-period-note strong {
  color:#334239;
  font-size:11px;
}

.sm-dashboard-performance .sm-team-progress-summary {
  grid-template-columns:minmax(220px,.8fr) minmax(280px,1fr) minmax(360px,1.45fr);
  gap:18px;
  margin-bottom:22px;
  padding:20px;
  border:1px solid #DDE8E2;
  border-radius:18px;
  background:linear-gradient(118deg,#F7FBF9 0%,#FFFFFF 64%);
  box-shadow:none;
}
.sm-dashboard-performance .sm-team-progress-score {
  gap:13px;
}
.sm-dashboard-performance .sm-team-progress-score .sm-mini-score-ring {
  width:66px;
  height:66px;
  flex:0 0 auto;
}
.sm-dashboard-performance .sm-team-progress-score small {
  color:#738078;
  font-size:10.5px;
  font-weight:750;
  letter-spacing:.35px;
  text-transform:uppercase;
}
.sm-dashboard-performance .sm-team-progress-score strong {
  color:var(--sm-performance-text);
  font-size:21px;
}
.sm-dashboard-performance .sm-team-progress-score em {
  color:#748078;
  font-size:11px;
  line-height:1.35;
}
.sm-dashboard-performance .sm-team-progress-target {
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
  padding:0 18px;
  border-left:1px solid #E1E9E4;
  border-right:1px solid #E1E9E4;
}
.sm-team-progress-target-head {
  min-width:0;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
}
.sm-team-progress-target-icon {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#E8F6EE;
  color:#118A4F;
}
.sm-team-progress-target-icon .sm-icon {
  width:18px;
  height:18px;
}
.sm-team-progress-target-head > span {
  min-width:0;
  display:grid;
  gap:2px;
}
.sm-team-progress-target-head small {
  color:#6D7972;
  font-size:10.5px;
  font-weight:700;
}
.sm-team-progress-target-head strong {
  color:var(--sm-performance-text);
  font-size:22px;
  line-height:1.05;
}
.sm-team-progress-target-head > b {
  color:#118A4F;
  font-size:12px;
  white-space:nowrap;
}
.sm-dashboard-performance .sm-team-progress-target > .sm-progress {
  grid-column:auto;
  height:7px;
  background:#E6ECE8;
}
.sm-dashboard-performance .sm-team-progress-target > em {
  overflow:hidden;
  color:#738078;
  font-size:10.5px;
  font-style:normal;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sm-dashboard-performance .sm-team-progress-metrics {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.sm-dashboard-performance .sm-team-progress-metrics > span {
  min-height:61px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  justify-content:initial;
  gap:9px;
  padding:9px 10px;
  border:1px solid #E6ECE8;
  border-radius:11px;
  background:#FFFFFF;
}
.sm-team-progress-metric-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#EFF4F1;
  color:#627168;
}
.sm-team-progress-metric-icon .sm-icon {
  width:16px;
  height:16px;
}
.sm-dashboard-performance .sm-team-progress-metrics > span > span {
  min-width:0;
  display:grid;
  gap:2px;
}
.sm-dashboard-performance .sm-team-progress-metrics small {
  overflow:hidden;
  color:#758179;
  font-size:10px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sm-dashboard-performance .sm-team-progress-metrics strong {
  color:var(--sm-performance-text);
  font-size:18px;
  line-height:1.05;
}
.sm-dashboard-performance .sm-team-progress-metrics > span.is-primary .sm-team-progress-metric-icon {
  background:#E8F6EE;
  color:#118A4F;
}
.sm-dashboard-performance .sm-team-progress-metrics > span.is-success .sm-team-progress-metric-icon {
  background:#EAF7F0;
  color:#168B51;
}
.sm-dashboard-performance .sm-team-progress-metrics > span.is-violet .sm-team-progress-metric-icon {
  background:#F1EFF8;
  color:#745CB0;
}
.sm-dashboard-performance .sm-team-progress-metrics > span.is-alert {
  border-color:#F1DFDC;
  background:#FFFBFA;
}
.sm-dashboard-performance .sm-team-progress-metrics > span.is-alert .sm-team-progress-metric-icon {
  background:#FCEDEB;
  color:#C13D31;
}

.sm-dashboard-performance .sm-user-performance-grid {
  gap:18px;
}
.sm-dashboard-performance .sm-user-performance-card {
  padding:20px;
  border:1px solid #E1E8E4;
  border-radius:17px;
  background:#FFFFFF;
  box-shadow:0 5px 16px rgba(27,64,43,.045);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.sm-dashboard-performance .sm-user-performance-card::before {
  display:none;
}
.sm-dashboard-performance .sm-user-performance-card::after {
  left:20px;
  right:20px;
  height:2px;
  border-radius:0 0 3px 3px;
  opacity:0;
}
.sm-dashboard-performance .sm-user-performance-card:hover {
  transform:translateY(-2px);
  border-color:#B9DCC8;
  box-shadow:0 12px 25px rgba(25,82,49,.09);
}
.sm-dashboard-performance .sm-user-performance-card:focus-visible {
  outline:3px solid rgba(17,154,88,.22);
  outline-offset:2px;
}
.sm-dashboard-performance .sm-user-performance-card:hover::after,
.sm-dashboard-performance .sm-user-performance-card:focus-visible::after {
  opacity:1;
}
.sm-dashboard-performance .sm-user-performance-card header {
  padding-bottom:14px;
  border-bottom:1px solid #EDF1EF;
}
.sm-dashboard-performance .sm-user-performance-person {
  gap:11px;
}
.sm-dashboard-performance .sm-user-performance-person > img {
  width:50px;
  height:50px;
  border:1px solid #FFFFFF;
  border-radius:13px;
  box-shadow:0 3px 9px rgba(30,65,44,.12);
}
.sm-dashboard-performance .sm-user-performance-person > span {
  gap:2px;
}
.sm-dashboard-performance .sm-user-performance-person strong {
  color:var(--sm-performance-text);
  font-size:16px;
}
.sm-dashboard-performance .sm-user-performance-person small {
  color:#69766E;
  font-size:11.5px;
}
.sm-dashboard-performance .sm-user-performance-presence {
  width:max-content;
  max-width:100%;
  gap:4px 6px;
  margin-top:5px;
  padding:3px 7px;
  border-radius:999px;
  background:#F3F5F4;
  font-size:9.5px;
}
.sm-dashboard-performance .sm-user-performance-presence > i {
  width:6px;
  height:6px;
}
.sm-dashboard-performance .sm-user-performance-presence > b {
  font-size:9.5px;
}
.sm-dashboard-performance .sm-user-performance-presence > em {
  overflow:hidden;
  font-size:9.5px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sm-dashboard-performance .sm-user-performance-presence.is-online {
  background:#ECF8F1;
}
.sm-dashboard-performance .sm-user-performance-score {
  align-items:flex-end;
  flex-direction:column;
  gap:4px;
  padding-left:8px;
}
.sm-dashboard-performance .sm-user-performance-score > small {
  color:#7B867F;
  font-size:9px;
  font-weight:750;
  letter-spacing:.45px;
  text-transform:uppercase;
}
.sm-dashboard-performance .sm-user-performance-score .sm-mini-score-ring {
  width:56px;
  height:56px;
}
.sm-dashboard-performance .sm-user-performance-score .sm-mini-score-ring > b {
  font-size:14px;
}

.sm-dashboard-performance .sm-user-performance-visit {
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px 12px;
  margin:14px 0;
  padding:12px 13px;
  border:1px solid #DDE8E2;
  border-radius:12px;
  background:#F7FAF8;
}
.sm-dashboard-performance .sm-user-performance-visit-icon {
  width:36px;
  height:36px;
  border-radius:10px;
  background:#E6F4EC;
  color:#118A4F;
  box-shadow:none;
}
.sm-dashboard-performance .sm-user-performance-visit-icon .sm-icon {
  width:17px;
  height:17px;
}
.sm-dashboard-performance .sm-user-performance-visit small {
  color:#6A776F;
  font-size:9.5px;
  letter-spacing:.3px;
}
.sm-dashboard-performance .sm-user-performance-visit strong {
  font-size:20px;
  letter-spacing:-.25px;
}
.sm-dashboard-performance .sm-user-performance-visit em {
  overflow:hidden;
  color:#758178;
  font-size:9.5px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sm-dashboard-performance .sm-user-performance-visit > b {
  padding:4px 8px;
  border-radius:999px;
  background:#E9F6EF;
  color:#118A4F;
  font-size:10.5px;
}
.sm-dashboard-performance .sm-user-performance-visit > .sm-progress {
  height:5px;
  background:#E3EAE6;
}
.sm-dashboard-performance .sm-user-performance-visit.is-neutral {
  border-style:solid;
  background:#F8FAF9;
}
.sm-dashboard-performance .sm-user-performance-visit.is-neutral .sm-user-performance-visit-icon {
  background:#EEF2F0;
  color:#65736B;
}

.sm-dashboard-performance .sm-user-performance-stats {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:0 0 14px;
}
.sm-dashboard-performance .sm-user-performance-stats > span,
.sm-dashboard-performance .sm-user-performance-stats > span.is-primary,
.sm-dashboard-performance .sm-user-performance-stats > span.is-warning,
.sm-dashboard-performance .sm-user-performance-stats > span.is-success,
.sm-dashboard-performance .sm-user-performance-stats > span.is-violet {
  min-height:67px;
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  align-items:center;
  justify-content:initial;
  gap:8px;
  padding:9px;
  border:1px solid #E7ECE9;
  border-radius:11px;
  background:#FAFBFA;
  box-shadow:none;
}
.sm-dashboard-performance .sm-user-performance-stats > span.is-danger {
  min-height:67px;
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  align-items:center;
  justify-content:initial;
  gap:8px;
  padding:9px;
  border:1px solid #F0DEDB;
  border-radius:11px;
  background:#FFFBFA;
  box-shadow:none;
}
.sm-user-performance-stat-icon {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#EEF2F0;
  color:#67746C;
}
.sm-user-performance-stat-icon .sm-icon {
  width:15px;
  height:15px;
}
.sm-dashboard-performance .sm-user-performance-stats > span > span {
  min-width:0;
  display:grid;
  gap:3px;
}
.sm-dashboard-performance .sm-user-performance-stats small {
  color:#717D75;
  font-size:9.5px;
  font-weight:650;
  line-height:1.2;
}
.sm-dashboard-performance .sm-user-performance-stats strong {
  color:var(--sm-performance-text);
  font-size:18px;
  line-height:1;
}
.sm-dashboard-performance .sm-user-performance-stats > span.is-primary .sm-user-performance-stat-icon,
.sm-dashboard-performance .sm-user-performance-stats > span.is-success .sm-user-performance-stat-icon {
  background:#E8F6EE;
  color:#118A4F;
}
.sm-dashboard-performance .sm-user-performance-stats > span.is-warning .sm-user-performance-stat-icon {
  background:#FFF3DD;
  color:#B87514;
}
.sm-dashboard-performance .sm-user-performance-stats > span.is-violet .sm-user-performance-stat-icon {
  background:#F1EFF8;
  color:#735CAD;
}
.sm-dashboard-performance .sm-user-performance-stats > span.is-danger .sm-user-performance-stat-icon {
  background:#FCEDEB;
  color:#C43F33;
}
.sm-dashboard-performance .sm-user-performance-stats > span.is-danger strong {
  color:#B52E25;
}
.sm-dashboard-performance .sm-user-performance-card footer {
  min-height:31px;
  padding-top:11px;
  border-top:1px solid #EDF1EF;
}
.sm-dashboard-performance .sm-user-performance-footer-note {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#7B867F;
  font-size:10px;
}
.sm-dashboard-performance .sm-user-performance-footer-note .sm-icon {
  width:13px;
  height:13px;
}
.sm-dashboard-performance .sm-user-performance-card footer > strong {
  min-height:29px;
  padding:0 9px;
  border-radius:8px;
  background:#EEF8F2;
  color:#087A43;
  font-size:10.5px;
}
.sm-dashboard-performance .sm-live-updated {
  margin-top:14px;
  color:#7D8881;
  font-size:10px;
}

@media (max-width:1180px) {
  .sm-dashboard-performance .sm-performance-period-tabs {
    grid-template-columns:1fr;
    gap:8px;
  }
  .sm-dashboard-performance .sm-team-progress-summary {
    grid-template-columns:1fr 1fr;
  }
  .sm-dashboard-performance .sm-team-progress-target {
    border-right:0;
  }
  .sm-dashboard-performance .sm-team-progress-metrics {
    grid-column:1/-1;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

/* v3.14.4 — shared responsive foundation for every CRM workspace */
html,
body.smcrm-fullscreen-template,
#smcrm-app-root,
.smcrm-shell,
.sm-main,
.sm-content {
  width:100%;
  max-width:100%;
  min-width:0;
}
html,
body.smcrm-fullscreen-template { overflow-x:hidden; }
@supports (overflow:clip) {
  html,
  body.smcrm-fullscreen-template { overflow-x:clip; }
}
.sm-content > *,
.sm-card,
.sm-card-head > *,
.sm-page-actions > *,
.sm-dashboard-performance,
.sm-dashboard-performance * { min-width:0; }
.smcrm-shell img,
.smcrm-shell video,
.smcrm-shell canvas { max-width:100%; }
.smcrm-shell p,
.smcrm-shell li,
.smcrm-shell dd,
.smcrm-shell strong,
.smcrm-shell small { overflow-wrap:anywhere; }
.sm-table-card,
.sm-report-card,
.sm-chart-card { max-width:100%; overflow:hidden; }
.sm-table-wrap {
  max-width:100%;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
.sm-table-wrap:focus-visible {
  outline:3px solid rgba(var(--sm-green-rgb),.22);
  outline-offset:-3px;
}
.sm-pipeline-board,
.sm-admin-quicknav,
.sm-performance-filter,
.sm-bulk-bar {
  max-width:100%;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
.sm-btn,
.sm-icon-button,
.sm-profile-chip,
.sm-mobile-menu { touch-action:manipulation; }

@media (max-width:980px) {
  body.sm-mobile-nav-open { overflow:hidden !important; touch-action:none; }
  .smcrm-shell:not(.smcrm-wpadmin-shell) .sm-main {
    width:100%;
    max-width:100vw;
    padding-top:max(12px,env(safe-area-inset-top));
    padding-right:max(14px,env(safe-area-inset-right));
    padding-bottom:max(96px,calc(74px + env(safe-area-inset-bottom)));
    padding-left:max(14px,env(safe-area-inset-left));
  }
  .smcrm-shell:not(.smcrm-wpadmin-shell) .sm-topbar {
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto;
    align-items:center;
    justify-content:stretch;
    gap:10px;
  }
  .smcrm-shell:not(.smcrm-wpadmin-shell) .sm-heading {
    width:auto;
    min-width:0;
    overflow:hidden;
  }
  .smcrm-shell:not(.smcrm-wpadmin-shell) .sm-heading h1 {
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .smcrm-shell:not(.smcrm-wpadmin-shell) .sm-header-tools {
    width:auto;
    min-width:0;
    flex:0 0 auto;
    flex-wrap:nowrap;
  }
  .sm-sidebar {
    width:min(320px,calc(100vw - 24px));
    height:calc(100dvh - 16px);
    max-height:calc(100dvh - 16px);
    padding-bottom:max(16px,env(safe-area-inset-bottom));
    will-change:transform;
  }
  .sm-sidebar.is-mobile-open { box-shadow:0 24px 70px rgba(15,32,23,.24); }
  .sm-mobile-overlay { touch-action:none; }
  .sm-dropdown { width:min(330px,calc(100vw - 28px)); }
  .sm-modal-dialog { max-height:calc(100dvh - 32px); }
  .smcrm-wpadmin-shell .sm-topbar {
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
  }
  .smcrm-wpadmin-shell .sm-heading { min-width:0; }
  .smcrm-wpadmin-shell .sm-header-tools { width:auto; min-width:0; flex-wrap:nowrap; }
}

/* v3.12: aggregate cards contain real drill-down links instead of nested cards. */
.sm-dashboard-performance .sm-team-progress-metrics > a {
  min-height:70px;
  display:grid;
  grid-template-columns:39px minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding:11px 12px;
  border:1px solid #E6ECE8;
  border-radius:13px;
  background:#FFFFFF;
  color:inherit !important;
  text-decoration:none !important;
  box-shadow:0 3px 10px rgba(25,70,43,.035);
  transition:transform .22s cubic-bezier(.2,.8,.2,1),border-color .2s ease,box-shadow .22s ease,background .2s ease;
}
.sm-dashboard-performance .sm-team-progress-metrics > a > span,
.sm-dashboard-performance .sm-user-performance-stats > a > span {
  min-width:0;
  display:grid;
  gap:3px;
}
.sm-dashboard-performance .sm-team-progress-metrics > a.is-alert {
  border-color:#F2D7D4;
  background:#FFF8F7;
}
.sm-dashboard-performance .sm-team-progress-metrics > a.is-alert .sm-team-progress-metric-icon {
  background:#FCEDEB;
  color:#C13D31;
}
.sm-dashboard-performance .sm-team-progress-metrics > a.is-alert strong {
  color:#B42318;
}
.sm-dashboard-performance .sm-user-performance-stats > a {
  min-height:80px;
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid #E7ECE9;
  border-radius:13px;
  background:#FAFBFA;
  color:inherit !important;
  text-decoration:none !important;
  box-shadow:0 3px 10px rgba(23,65,40,.025);
  transition:transform .22s cubic-bezier(.2,.8,.2,1),border-color .2s ease,box-shadow .22s ease,background .22s ease;
}
.sm-dashboard-performance .sm-user-performance-stats > a.is-danger {
  border-color:#F0DEDC;
  background:#FFF8F7;
}
.sm-dashboard-performance .sm-user-performance-stats > a.is-danger .sm-user-performance-stat-icon {
  background:#FCEDEB;
  color:#C43F33;
}
.sm-dashboard-performance .sm-user-performance-stats > a.is-danger strong {
  color:#B42318;
}
.sm-user-performance-card footer > a {
  flex:0 0 auto;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 12px;
  border-radius:10px;
  background:#EEF8F2;
  color:var(--sm-green-dark) !important;
  font-size:12.5px;
  font-weight:700;
  text-decoration:none !important;
  transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}
.sm-dashboard-performance .sm-team-progress-metrics > a:focus-visible,
.sm-dashboard-performance .sm-user-performance-stats > a:focus-visible,
.sm-dashboard-performance .sm-user-performance-card footer > a:focus-visible {
  outline:3px solid rgba(17,154,88,.24);
  outline-offset:3px;
}
@media (hover:hover) and (pointer:fine) {
  .sm-dashboard-performance .sm-team-progress-metrics > a:hover,
  .sm-dashboard-performance .sm-user-performance-stats > a:hover {
    transform:translateY(-3px);
    border-color:#E8B9B2;
    background:#FFF7F5;
    box-shadow:0 10px 21px rgba(24,87,50,.095);
  }
  .sm-dashboard-performance .sm-team-progress-metrics > a:hover .sm-team-progress-metric-icon,
  .sm-dashboard-performance .sm-user-performance-stats > a:hover .sm-user-performance-stat-icon {
    transform:scale(1.1) rotate(-4deg);
  }
  .sm-dashboard-performance .sm-user-performance-card footer > a:hover {
    transform:translateX(2px);
    background:#DFF5E8;
    box-shadow:0 6px 14px rgba(17,145,80,.13);
  }
}
@media (max-width:520px) {
  .sm-dashboard-performance .sm-team-progress-metrics > a {
    min-height:60px;
    grid-template-columns:34px minmax(0,1fr);
    padding:9px;
  }
  .sm-dashboard-performance .sm-user-performance-stats > a {
    min-height:74px;
    grid-template-columns:32px minmax(0,1fr);
    gap:8px;
    padding:10px;
  }
}

@media (max-width:980px) {
  .sm-dashboard-performance .sm-user-performance-grid {
    grid-template-columns:1fr;
  }
}

@media (max-width:760px) {
  .sm-dashboard-performance {
    padding:17px;
    border-radius:17px;
  }
  .sm-dashboard-performance > .sm-section-heading {
    align-items:flex-start;
  }
  .sm-dashboard-performance .sm-section-heading p {
    font-size:12px;
  }
  .sm-dashboard-performance .sm-performance-period-tabs {
    padding:6px;
  }
  .sm-dashboard-performance .sm-performance-period-note {
    align-items:flex-start;
    padding:4px 5px 2px;
  }
  .sm-dashboard-performance .sm-team-progress-summary {
    grid-template-columns:1fr;
    gap:15px;
    padding:17px;
  }
  .sm-dashboard-performance .sm-team-progress-target {
    padding:15px 0;
    border:0;
    border-top:1px solid #E1E9E4;
    border-bottom:1px solid #E1E9E4;
  }
  .sm-dashboard-performance .sm-team-progress-metrics {
    grid-column:auto;
    grid-template-columns:1fr 1fr;
  }
  .sm-dashboard-performance .sm-user-performance-card {
    padding:16px;
  }
  .sm-dashboard-performance .sm-user-performance-stats {
    grid-template-columns:1fr 1fr;
  }
  .sm-dashboard-performance .sm-user-performance-card footer {
    align-items:center;
    flex-direction:row;
  }
}

@media (max-width:520px) {
  .sm-dashboard-performance {
    padding:14px;
  }
  .sm-dashboard-performance .sm-performance-period-options {
    gap:2px;
  }
  .sm-dashboard-performance .sm-performance-period-tabs a {
    min-height:40px;
    padding:0 5px;
  }
  .sm-dashboard-performance .sm-performance-period-tabs a .sm-icon {
    width:13px;
    height:13px;
  }
  .sm-dashboard-performance .sm-team-progress-summary {
    padding:14px;
  }
  .sm-dashboard-performance .sm-team-progress-metrics {
    gap:6px;
  }
  .sm-dashboard-performance .sm-team-progress-metrics > span {
    grid-template-columns:30px minmax(0,1fr);
    gap:7px;
    padding:8px;
  }
  .sm-dashboard-performance .sm-team-progress-metric-icon {
    width:30px;
    height:30px;
  }
  .sm-dashboard-performance .sm-user-performance-card {
    padding:14px;
    border-radius:15px;
  }
  .sm-dashboard-performance .sm-user-performance-person > img {
    width:44px;
    height:44px;
  }
  .sm-dashboard-performance .sm-user-performance-score .sm-mini-score-ring {
    width:50px;
    height:50px;
  }
  .sm-dashboard-performance .sm-user-performance-presence {
    width:fit-content;
  }
  .sm-dashboard-performance .sm-user-performance-presence > em {
    flex-basis:100%;
    max-width:190px;
    padding-left:12px;
  }
  .sm-dashboard-performance .sm-user-performance-visit {
    grid-template-columns:minmax(0,1fr) auto;
    padding:11px;
  }
  .sm-dashboard-performance .sm-user-performance-visit > b {
    justify-self:auto;
  }
  .sm-dashboard-performance .sm-user-performance-stats {
    grid-template-columns:1fr 1fr;
    gap:6px;
  }
  .sm-dashboard-performance .sm-user-performance-stats > span,
  .sm-dashboard-performance .sm-user-performance-stats > span.is-primary,
  .sm-dashboard-performance .sm-user-performance-stats > span.is-warning,
  .sm-dashboard-performance .sm-user-performance-stats > span.is-success,
  .sm-dashboard-performance .sm-user-performance-stats > span.is-violet,
  .sm-dashboard-performance .sm-user-performance-stats > span.is-danger {
    min-height:62px;
    grid-template-columns:27px minmax(0,1fr);
    gap:6px;
    padding:8px;
  }
  .sm-dashboard-performance .sm-user-performance-stat-icon {
    width:27px;
    height:27px;
  }
}

@media (max-width:390px) {
  .sm-dashboard-performance .sm-performance-period-tabs a span {
    font-size:10.5px;
  }
  .sm-dashboard-performance .sm-team-progress-metrics,
  .sm-dashboard-performance .sm-user-performance-stats {
    grid-template-columns:1fr;
  }
  .sm-dashboard-performance .sm-user-performance-card header {
    grid-template-columns:minmax(0,1fr) auto;
  }
  .sm-dashboard-performance .sm-user-performance-visit {
    grid-template-columns:1fr;
  }
  .sm-dashboard-performance .sm-user-performance-visit > b {
    justify-self:start;
  }
  .sm-dashboard-performance .sm-user-performance-card footer {
    align-items:flex-start;
    flex-direction:column;
  }
}

/* v3.11.2 — larger animated Team Performance experience */
@keyframes sm-performance-section-in {
  from { opacity:0; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes sm-performance-card-in {
  from { opacity:0; transform:translateY(18px) scale(.985); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes sm-performance-progress-in {
  from { transform:scaleX(0); }
  to { transform:scaleX(1); }
}
@keyframes sm-performance-shimmer {
  0% { transform:translateX(-140%) skewX(-18deg); }
  55%,100% { transform:translateX(280%) skewX(-18deg); }
}
@keyframes sm-performance-live-pulse {
  0%,100% { box-shadow:0 0 0 0 rgba(17,154,88,.28); }
  50% { box-shadow:0 0 0 5px rgba(17,154,88,0); }
}

.sm-dashboard-performance {
  --sm-performance-card-shadow:0 9px 26px rgba(23,67,41,.07);
  --sm-performance-card-shadow-hover:0 22px 48px rgba(20,108,61,.15);
  padding:clamp(23px,2.35vw,34px);
  overflow:hidden;
  border-color:#DCE8E1;
  background:
    radial-gradient(circle at 98% 1%,rgba(26,174,96,.07),transparent 25%),
    linear-gradient(180deg,#FFFFFF 0%,#FBFDFC 100%);
  box-shadow:0 16px 46px rgba(22,67,40,.075);
  animation:sm-performance-section-in .5s cubic-bezier(.22,1,.36,1) both;
}
.sm-dashboard-performance > .sm-section-heading {
  margin-bottom:24px;
}
.sm-dashboard-performance .sm-eyebrow {
  font-size:12.5px;
  letter-spacing:.75px;
}
.sm-dashboard-performance .sm-section-heading h2 {
  font-size:clamp(26px,2.3vw,32px);
  line-height:1.16;
  letter-spacing:-.7px;
}
.sm-dashboard-performance .sm-section-heading p {
  max-width:720px;
  margin-top:9px;
  font-size:14.5px;
  line-height:1.55;
}
.sm-dashboard-performance .sm-performance-heading-actions > a {
  min-height:46px;
  padding:0 17px;
  border-radius:12px;
  font-size:13px;
  transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

.sm-dashboard-performance .sm-performance-period-tabs {
  margin-bottom:22px;
  padding:10px;
  border-radius:16px;
  background:linear-gradient(135deg,#F5F9F7,#F9FBFA);
}
.sm-dashboard-performance .sm-performance-period-options {
  padding:4px;
  border-radius:12px;
}
.sm-dashboard-performance .sm-performance-period-tabs a {
  min-height:44px;
  border-radius:10px;
  font-size:13.5px;
  font-weight:750;
  transition:transform .18s ease,color .18s ease,background .18s ease,box-shadow .18s ease;
}
.sm-dashboard-performance .sm-performance-period-tabs a .sm-icon {
  width:17px;
  height:17px;
  transition:transform .22s ease;
}
.sm-dashboard-performance .sm-performance-period-tabs a.is-active {
  box-shadow:0 7px 18px rgba(17,154,88,.25);
}
.sm-dashboard-performance .sm-performance-period-note > .sm-icon {
  width:20px;
  height:20px;
}
.sm-dashboard-performance .sm-performance-period-note > span {
  font-size:12px;
  line-height:1.4;
}
.sm-dashboard-performance .sm-performance-period-note strong {
  font-size:12.5px;
}

.sm-dashboard-performance .sm-team-progress-summary {
  gap:21px;
  margin-bottom:26px;
  padding:23px;
  border-color:#D7E6DE;
  border-radius:20px;
  background:
    linear-gradient(118deg,rgba(238,250,243,.9),rgba(255,255,255,.98) 58%),
    #FFFFFF;
  box-shadow:0 8px 24px rgba(25,76,46,.06);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.sm-dashboard-performance .sm-team-progress-score {
  gap:15px;
}
.sm-dashboard-performance .sm-team-progress-score .sm-mini-score-ring {
  width:74px;
  height:74px;
  transition:transform .25s cubic-bezier(.2,.8,.2,1),filter .25s ease;
}
.sm-dashboard-performance .sm-team-progress-score small,
.sm-dashboard-performance .sm-team-progress-target-head small {
  font-size:12px;
}
.sm-dashboard-performance .sm-team-progress-score strong {
  font-size:24px;
}
.sm-dashboard-performance .sm-team-progress-score em {
  font-size:12.5px;
  line-height:1.45;
}
.sm-dashboard-performance .sm-team-progress-target {
  gap:11px;
  padding:0 21px;
}
.sm-dashboard-performance .sm-team-progress-target-head {
  grid-template-columns:43px minmax(0,1fr) auto;
  gap:12px;
}
.sm-dashboard-performance .sm-team-progress-target-icon {
  width:43px;
  height:43px;
  border-radius:13px;
  transition:transform .24s cubic-bezier(.2,.8,.2,1),background .2s ease,color .2s ease;
}
.sm-dashboard-performance .sm-team-progress-target-icon .sm-icon {
  width:20px;
  height:20px;
}
.sm-dashboard-performance .sm-team-progress-target-head strong {
  font-size:25px;
}
.sm-dashboard-performance .sm-team-progress-target-head > b {
  font-size:13px;
}
.sm-dashboard-performance .sm-team-progress-target > .sm-progress {
  height:9px;
}
.sm-dashboard-performance .sm-team-progress-target > em {
  font-size:12px;
  line-height:1.45;
}
.sm-dashboard-performance .sm-team-progress-metrics {
  gap:10px;
}
.sm-dashboard-performance .sm-team-progress-metrics > span {
  min-height:70px;
  grid-template-columns:39px minmax(0,1fr);
  gap:11px;
  padding:11px 12px;
  border-radius:13px;
  box-shadow:0 3px 10px rgba(25,70,43,.035);
  transition:transform .22s cubic-bezier(.2,.8,.2,1),border-color .2s ease,box-shadow .22s ease,background .2s ease;
}
.sm-dashboard-performance .sm-team-progress-metric-icon {
  width:39px;
  height:39px;
  border-radius:11px;
  transition:transform .24s cubic-bezier(.2,.8,.2,1),background .2s ease,color .2s ease;
}
.sm-dashboard-performance .sm-team-progress-metric-icon .sm-icon {
  width:18px;
  height:18px;
}
.sm-dashboard-performance .sm-team-progress-metrics small {
  overflow:visible;
  font-size:11.5px;
  line-height:1.3;
  text-overflow:clip;
  white-space:normal;
}
.sm-dashboard-performance .sm-team-progress-metrics strong {
  font-size:21px;
}

.sm-dashboard-performance .sm-user-performance-grid {
  gap:22px;
}
.sm-dashboard-performance .sm-user-performance-card {
  padding:23px;
  overflow:hidden;
  border-color:#DCE7E1;
  border-radius:20px;
  background:linear-gradient(150deg,#FFFFFF 0%,#FFFFFF 66%,#F8FCFA 100%);
  box-shadow:var(--sm-performance-card-shadow);
  animation:sm-performance-card-in .55s cubic-bezier(.22,1,.36,1) both;
  transition:transform .28s cubic-bezier(.2,.8,.2,1),border-color .24s ease,box-shadow .28s ease,background .28s ease;
}
.sm-dashboard-performance .sm-user-performance-card:nth-child(2) { animation-delay:.06s; }
.sm-dashboard-performance .sm-user-performance-card:nth-child(3) { animation-delay:.12s; }
.sm-dashboard-performance .sm-user-performance-card:nth-child(4) { animation-delay:.18s; }
.sm-dashboard-performance .sm-user-performance-card:nth-child(5) { animation-delay:.24s; }
.sm-dashboard-performance .sm-user-performance-card:nth-child(6) { animation-delay:.3s; }
.sm-dashboard-performance .sm-user-performance-card:nth-child(n+7) { animation-delay:.34s; }
.sm-dashboard-performance .sm-user-performance-card::before {
  display:block;
  top:-75px;
  right:-72px;
  width:190px;
  height:190px;
  opacity:.55;
  background:radial-gradient(circle,rgba(19,168,89,.12),transparent 68%);
  transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .3s ease;
}
.sm-dashboard-performance .sm-user-performance-card::after {
  left:23px;
  right:23px;
  height:3px;
  background:linear-gradient(90deg,#0CA45A,#63D795,#0CA45A);
  transform:scaleX(.25);
  transform-origin:center;
  transition:opacity .25s ease,transform .35s cubic-bezier(.2,.8,.2,1);
}
.sm-dashboard-performance .sm-user-performance-card:hover::after,
.sm-dashboard-performance .sm-user-performance-card:focus-visible::after {
  transform:scaleX(1);
}
.sm-dashboard-performance .sm-user-performance-card header {
  padding-bottom:17px;
}
.sm-dashboard-performance .sm-user-performance-person {
  gap:14px;
}
.sm-dashboard-performance .sm-user-performance-person > img {
  width:58px;
  height:58px;
  border-radius:16px;
  box-shadow:0 6px 16px rgba(29,73,45,.15);
  transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease;
}
.sm-dashboard-performance .sm-user-performance-person > span {
  gap:3px;
}
.sm-dashboard-performance .sm-user-performance-person strong {
  font-size:18.5px;
  line-height:1.2;
  letter-spacing:-.25px;
}
.sm-dashboard-performance .sm-user-performance-person small {
  font-size:13px;
  line-height:1.35;
}
.sm-dashboard-performance .sm-user-performance-presence {
  gap:5px 7px;
  margin-top:6px;
  padding:5px 9px;
  font-size:11.5px;
}
.sm-dashboard-performance .sm-user-performance-presence > i {
  width:7px;
  height:7px;
}
.sm-dashboard-performance .sm-user-performance-presence > b,
.sm-dashboard-performance .sm-user-performance-presence > em {
  font-size:11px;
  line-height:1.3;
}
.sm-dashboard-performance .sm-user-performance-presence.is-online > i {
  animation:sm-performance-live-pulse 1.8s ease-in-out infinite;
}
.sm-dashboard-performance .sm-user-performance-score {
  gap:6px;
  padding-left:11px;
}
.sm-dashboard-performance .sm-user-performance-score > small {
  font-size:10.5px;
}
.sm-dashboard-performance .sm-user-performance-score .sm-mini-score-ring {
  width:64px;
  height:64px;
  transition:transform .28s cubic-bezier(.2,.8,.2,1),filter .25s ease;
}
.sm-dashboard-performance .sm-user-performance-score .sm-mini-score-ring > b {
  font-size:16px;
}

.sm-dashboard-performance .sm-user-performance-visit {
  gap:11px 14px;
  margin:18px 0;
  padding:15px 16px;
  border-radius:15px;
  box-shadow:0 4px 13px rgba(23,89,50,.045);
  transition:transform .24s cubic-bezier(.2,.8,.2,1),border-color .2s ease,box-shadow .24s ease,background .24s ease;
}
.sm-dashboard-performance .sm-user-performance-visit-icon {
  width:43px;
  height:43px;
  border-radius:12px;
  transition:transform .28s cubic-bezier(.2,.8,.2,1),background .22s ease,color .22s ease,box-shadow .22s ease;
}
.sm-dashboard-performance .sm-user-performance-visit-icon .sm-icon {
  width:20px;
  height:20px;
}
.sm-dashboard-performance .sm-user-performance-visit small {
  font-size:11.5px;
}
.sm-dashboard-performance .sm-user-performance-visit strong {
  font-size:25px;
}
.sm-dashboard-performance .sm-user-performance-visit em {
  overflow:visible;
  font-size:11.5px;
  line-height:1.4;
  text-overflow:clip;
  white-space:normal;
}
.sm-dashboard-performance .sm-user-performance-visit > b {
  padding:6px 10px;
  font-size:12px;
}
.sm-dashboard-performance .sm-user-performance-visit > .sm-progress {
  height:7px;
}
.sm-dashboard-performance .sm-user-performance-visit > .sm-progress i,
.sm-dashboard-performance .sm-team-progress-target > .sm-progress i {
  position:relative;
  overflow:hidden;
  transform-origin:left center;
  animation:sm-performance-progress-in .8s .16s cubic-bezier(.22,1,.36,1) both;
}
.sm-dashboard-performance .sm-user-performance-visit > .sm-progress i::after,
.sm-dashboard-performance .sm-team-progress-target > .sm-progress i::after {
  content:"";
  position:absolute;
  inset:0 auto 0 -35%;
  width:32%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);
  animation:sm-performance-shimmer 2.8s .8s ease-in-out infinite;
}

.sm-dashboard-performance .sm-user-performance-stats {
  gap:10px;
  margin-bottom:18px;
}
.sm-dashboard-performance .sm-user-performance-stats > span,
.sm-dashboard-performance .sm-user-performance-stats > span.is-primary,
.sm-dashboard-performance .sm-user-performance-stats > span.is-warning,
.sm-dashboard-performance .sm-user-performance-stats > span.is-success,
.sm-dashboard-performance .sm-user-performance-stats > span.is-violet,
.sm-dashboard-performance .sm-user-performance-stats > span.is-danger {
  min-height:80px;
  grid-template-columns:36px minmax(0,1fr);
  gap:10px;
  padding:11px 12px;
  border-radius:13px;
  box-shadow:0 3px 10px rgba(23,65,40,.025);
  transition:transform .22s cubic-bezier(.2,.8,.2,1),border-color .2s ease,box-shadow .22s ease,background .22s ease;
}
.sm-dashboard-performance .sm-user-performance-stat-icon {
  width:36px;
  height:36px;
  border-radius:10px;
  transition:transform .24s cubic-bezier(.2,.8,.2,1),background .2s ease,color .2s ease;
}
.sm-dashboard-performance .sm-user-performance-stat-icon .sm-icon {
  width:18px;
  height:18px;
}
.sm-dashboard-performance .sm-user-performance-stats small {
  font-size:11.5px;
  line-height:1.3;
}
.sm-dashboard-performance .sm-user-performance-stats strong {
  font-size:21px;
}
.sm-dashboard-performance .sm-user-performance-card footer {
  min-height:40px;
  padding-top:14px;
}
.sm-dashboard-performance .sm-user-performance-footer-note {
  gap:7px;
  font-size:11.5px;
}
.sm-dashboard-performance .sm-user-performance-footer-note .sm-icon {
  width:15px;
  height:15px;
}
.sm-dashboard-performance .sm-user-performance-card footer > strong {
  min-height:34px;
  padding:0 12px;
  border-radius:10px;
  font-size:12.5px;
  transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}
.sm-dashboard-performance .sm-live-updated {
  margin-top:17px;
  font-size:11.5px;
}

@media (hover:hover) and (pointer:fine) {
  .sm-dashboard-performance .sm-performance-heading-actions > a:hover {
    transform:translateY(-2px);
    box-shadow:0 9px 20px rgba(22,108,60,.12);
  }
  .sm-dashboard-performance .sm-performance-period-tabs a:not(.is-active):hover {
    transform:translateY(-1px);
    background:#ECF7F1;
    color:#087A43 !important;
  }
  .sm-dashboard-performance .sm-performance-period-tabs a:hover .sm-icon {
    transform:scale(1.12);
  }
  .sm-dashboard-performance .sm-team-progress-summary:hover {
    transform:translateY(-2px);
    border-color:#B9DBC7;
    box-shadow:0 15px 32px rgba(24,92,51,.1);
  }
  .sm-dashboard-performance .sm-team-progress-summary:hover .sm-mini-score-ring {
    transform:scale(1.045);
    filter:drop-shadow(0 6px 8px rgba(17,154,88,.14));
  }
  .sm-dashboard-performance .sm-team-progress-summary:hover .sm-team-progress-target-icon {
    transform:translateY(-2px) rotate(-4deg);
    background:#DDF4E7;
  }
  .sm-dashboard-performance .sm-team-progress-metrics > span:hover {
    transform:translateY(-3px);
    border-color:#B9DAC6;
    background:#FFFFFF;
    box-shadow:0 11px 22px rgba(22,94,52,.105);
  }
  .sm-dashboard-performance .sm-team-progress-metrics > span:hover .sm-team-progress-metric-icon {
    transform:scale(1.09) rotate(-3deg);
  }
  .sm-dashboard-performance .sm-user-performance-card:hover {
    transform:translateY(-6px);
    border-color:#9FD2B5;
    background:linear-gradient(150deg,#FFFFFF 0%,#FFFFFF 57%,#F1FAF5 100%);
    box-shadow:var(--sm-performance-card-shadow-hover);
  }
  .sm-dashboard-performance .sm-user-performance-card:hover::before {
    opacity:.9;
    transform:translate(-8px,8px) scale(1.08);
  }
  .sm-dashboard-performance .sm-user-performance-card:hover .sm-user-performance-person > img {
    transform:translateY(-2px) scale(1.035);
    box-shadow:0 10px 22px rgba(25,100,52,.18);
  }
  .sm-dashboard-performance .sm-user-performance-card:hover .sm-user-performance-score .sm-mini-score-ring {
    transform:scale(1.055);
    filter:drop-shadow(0 6px 8px rgba(17,154,88,.15));
  }
  .sm-dashboard-performance .sm-user-performance-visit:hover {
    transform:translateY(-2px);
    border-color:#A8D7BC;
    background:linear-gradient(110deg,#E6F8EE,#F8FCFA 62%,#FFFFFF);
    box-shadow:0 11px 24px rgba(21,104,56,.1);
  }
  .sm-dashboard-performance .sm-user-performance-visit:hover .sm-user-performance-visit-icon {
    transform:scale(1.08) rotate(-4deg);
    background:#0F9B57;
    color:#FFFFFF;
    box-shadow:0 8px 18px rgba(15,155,87,.24);
  }
  .sm-dashboard-performance .sm-user-performance-stats > span:hover {
    transform:translateY(-3px);
    border-color:#B9DCC7;
    background:#FFFFFF;
    box-shadow:0 10px 21px rgba(24,87,50,.095);
  }
  .sm-dashboard-performance .sm-user-performance-stats > span.is-danger:hover {
    border-color:#E8B9B2;
    background:#FFF7F5;
  }
  .sm-dashboard-performance .sm-user-performance-stats > span:hover .sm-user-performance-stat-icon {
    transform:scale(1.1) rotate(-4deg);
  }
  .sm-dashboard-performance .sm-user-performance-card footer > strong:hover {
    transform:translateX(2px);
    background:#DFF5E8;
    box-shadow:0 6px 14px rgba(17,145,80,.13);
  }
}

.sm-dashboard-performance .sm-performance-period-tabs a:focus-visible,
.sm-dashboard-performance .sm-team-progress-metrics > span:focus-within,
.sm-dashboard-performance .sm-performance-heading-actions > a:focus-visible {
  outline:3px solid rgba(17,154,88,.24);
  outline-offset:3px;
}

@media (max-width:980px) {
  .sm-dashboard-performance .sm-user-performance-grid { grid-template-columns:1fr; }
}

@media (max-width:760px) {
  .sm-dashboard-performance {
    padding:19px;
    border-radius:19px;
  }
  .sm-dashboard-performance .sm-section-heading h2 { font-size:25px; }
  .sm-dashboard-performance .sm-section-heading p { font-size:13.5px; }
  .sm-dashboard-performance .sm-team-progress-summary { padding:19px; }
  .sm-dashboard-performance .sm-team-progress-target { padding:16px 0; }
  .sm-dashboard-performance .sm-user-performance-card { padding:19px; }
  .sm-dashboard-performance .sm-user-performance-stats { grid-template-columns:1fr 1fr; }
}

@media (max-width:520px) {
  .sm-dashboard-performance { padding:15px; }
  .sm-dashboard-performance .sm-section-heading h2 { font-size:23px; }
  .sm-dashboard-performance .sm-performance-period-tabs { padding:7px; }
  .sm-dashboard-performance .sm-performance-period-tabs a {
    min-height:42px;
    padding:0 7px;
    font-size:12px;
  }
  .sm-dashboard-performance .sm-team-progress-summary { padding:16px; }
  .sm-dashboard-performance .sm-team-progress-metrics { gap:8px; }
  .sm-dashboard-performance .sm-team-progress-metrics > span {
    grid-template-columns:34px minmax(0,1fr);
    padding:10px;
  }
  .sm-dashboard-performance .sm-team-progress-metric-icon {
    width:34px;
    height:34px;
  }
  .sm-dashboard-performance .sm-user-performance-card {
    padding:16px;
    border-radius:17px;
  }
  .sm-dashboard-performance .sm-user-performance-person { gap:10px; }
  .sm-dashboard-performance .sm-user-performance-person > img {
    width:48px;
    height:48px;
  }
  .sm-dashboard-performance .sm-user-performance-person strong { font-size:16.5px; }
  .sm-dashboard-performance .sm-user-performance-person small { font-size:12px; }
  .sm-dashboard-performance .sm-user-performance-presence > b,
  .sm-dashboard-performance .sm-user-performance-presence > em { font-size:10.5px; }
  .sm-dashboard-performance .sm-user-performance-score .sm-mini-score-ring {
    width:54px;
    height:54px;
  }
  .sm-dashboard-performance .sm-user-performance-visit { padding:13px; }
  .sm-dashboard-performance .sm-user-performance-stats {
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .sm-dashboard-performance .sm-user-performance-stats > span,
  .sm-dashboard-performance .sm-user-performance-stats > span.is-primary,
  .sm-dashboard-performance .sm-user-performance-stats > span.is-warning,
  .sm-dashboard-performance .sm-user-performance-stats > span.is-success,
  .sm-dashboard-performance .sm-user-performance-stats > span.is-violet,
  .sm-dashboard-performance .sm-user-performance-stats > span.is-danger {
    min-height:74px;
    grid-template-columns:32px minmax(0,1fr);
    gap:8px;
    padding:10px;
  }
  .sm-dashboard-performance .sm-user-performance-stat-icon {
    width:32px;
    height:32px;
  }
  .sm-dashboard-performance .sm-user-performance-stats small { font-size:11px; }
  .sm-dashboard-performance .sm-user-performance-stats strong { font-size:20px; }
}

@media (max-width:390px) {
  .sm-dashboard-performance .sm-team-progress-metrics,
  .sm-dashboard-performance .sm-user-performance-stats { grid-template-columns:1fr; }
  .sm-dashboard-performance .sm-user-performance-visit { grid-template-columns:1fr; }
  .sm-dashboard-performance .sm-user-performance-visit > b { justify-self:start; }
  .sm-dashboard-performance .sm-user-performance-card footer {
    align-items:flex-start;
    flex-direction:column;
  }
}

@media (prefers-reduced-motion:reduce) {
  .sm-dashboard-performance,
  .sm-dashboard-performance .sm-user-performance-card,
  .sm-dashboard-performance .sm-user-performance-presence.is-online > i,
  .sm-dashboard-performance .sm-user-performance-visit > .sm-progress i,
  .sm-dashboard-performance .sm-team-progress-target > .sm-progress i,
  .sm-dashboard-performance .sm-user-performance-visit > .sm-progress i::after,
  .sm-dashboard-performance .sm-team-progress-target > .sm-progress i::after {
    animation:none !important;
  }
  .sm-dashboard-performance *,
  .sm-dashboard-performance *::before,
  .sm-dashboard-performance *::after {
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
}

/* v3.14.4 — phone and tablet component behavior (kept last intentionally). */
@media (max-width:760px) {
  .smcrm-shell:not(.smcrm-wpadmin-shell) .sm-main {
    padding-right:max(11px,env(safe-area-inset-right));
    padding-left:max(11px,env(safe-area-inset-left));
  }
  .sm-topbar { min-height:58px; margin-bottom:14px; }
  .smcrm-shell:not(.smcrm-wpadmin-shell) .sm-heading h1 {
    font-size:clamp(18px,5.7vw,23px);
    letter-spacing:-.35px;
  }
  .sm-mobile-menu,
  .sm-header-tools .sm-icon-button,
  .sm-profile-chip {
    width:40px;
    min-width:40px;
    height:40px;
  }
  .sm-header-tools { gap:6px; }
  .sm-profile-chip { padding:3px; }
  .sm-profile-chip img { width:32px; height:32px; }
  .sm-dropdown-wrap { position:static; }
  .sm-header-tools .sm-dropdown {
    position:fixed;
    z-index:210;
    top:max(68px,calc(env(safe-area-inset-top) + 62px));
    right:max(10px,env(safe-area-inset-right));
    left:max(10px,env(safe-area-inset-left));
    width:auto;
    max-height:calc(100dvh - 82px - env(safe-area-inset-bottom));
    transform-origin:top center;
  }
  .sm-card { max-width:100%; }
  .sm-card-head,
  .sm-section-heading,
  .sm-ai-section-head { flex-wrap:wrap; }
  .sm-card-head > div:first-child,
  .sm-section-heading > div:first-child { flex:1 1 230px; }
  .sm-page-actions { width:100%; gap:13px; }
  .sm-page-actions > div:last-child {
    display:grid;
    grid-template-columns:1fr;
    align-items:stretch;
    gap:8px;
  }
  .sm-page-actions > .sm-btn,
  .sm-page-actions > div:last-child > .sm-btn,
  .sm-page-actions > div:last-child > a,
  .sm-page-actions > div:last-child > button,
  .sm-page-actions > div:last-child > form,
  .sm-settings-actions .sm-btn { width:100%; }
  .sm-btn { max-width:100%; white-space:normal; text-align:center; }
  .sm-filter-bar,
  .sm-filter-bar > *,
  .sm-filter-bar > label,
  .sm-filter-search,
  .sm-table-toolbar,
  .sm-table-toolbar > *,
  .sm-table-search { min-width:0; max-width:100%; width:100%; }
  .sm-filter-bar .sm-btn,
  .sm-filter-bar > button,
  .sm-filter-bar > a { width:100%; }
  .sm-bulk-bar {
    align-items:stretch;
    flex-direction:column;
    padding:11px;
  }
  .sm-bulk-bar > *,
  .sm-bulk-bar select,
  .sm-bulk-bar .sm-btn { width:100%; min-width:0; }
  .sm-table-wrap {
    position:relative;
    border-top:1px solid #EEF1EF;
    border-bottom:1px solid #EEF1EF;
    background:linear-gradient(90deg,#fff 0,#fff calc(100% - 16px),#F0F5F2 100%);
  }
  .sm-table-wrap table { min-width:760px; }
  .sm-table-pagination,
  .sm-lead-server-pagination {
    max-width:100%;
    justify-content:flex-start;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
  }
  .sm-lead-server-pagination { align-items:stretch; flex-direction:column; }
  .sm-lead-server-pagination > div:first-child { margin-right:0; }
  .sm-lead-server-pagination nav { width:max-content; min-width:100%; }
  .sm-modal {
    align-items:flex-end;
    padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
  }
  .sm-modal-dialog {
    width:100%;
    max-width:100%;
    max-height:calc(100dvh - max(20px,env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    border-radius:18px;
    overscroll-behavior:contain;
  }
  .sm-modal-head { padding:15px; }
  .sm-modal-dialog > form,
  .sm-modal-dialog > .sm-modal-actions { padding:15px; }
  .sm-modal-actions { align-items:stretch; flex-direction:column-reverse; }
  .sm-modal-actions .sm-btn,
  .sm-modal-actions > button,
  .sm-modal-actions > a { width:100%; }
  .sm-form-grid,
  .sm-form-row,
  .sm-followup-compose-form,
  .sm-lead-preview-grid { grid-template-columns:minmax(0,1fr); }
  .sm-form-grid > *,
  .sm-form-row > *,
  .sm-followup-compose-form > * { min-width:0; }
  .smcrm-shell input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  .smcrm-shell select,
  .smcrm-shell textarea { max-width:100%; font-size:16px; }
  .sm-followup-section-head,
  .sm-followup-history li article > header { align-items:flex-start; flex-direction:column; }
  .sm-followup-submit { align-items:stretch; flex-direction:column; }
  .sm-followup-submit .sm-btn { width:100%; }
  .sm-followup-row-actions { min-width:0; width:100%; }
  .sm-followup-row-actions .sm-action-preview { flex:1 1 calc(50% - 6px); justify-content:center; }
  .sm-calendar-card {
    max-width:100%;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
  }
  .sm-calendar-card > header,
  .sm-calendar-weekdays,
  .sm-calendar-grid { min-width:620px; }
  .sm-calendar-card > header { position:sticky; left:0; }
  .sm-pipeline-board { scroll-snap-type:x proximity; padding:11px; }
  .sm-pipeline-column {
    width:min(82vw,280px);
    min-width:min(82vw,280px);
    scroll-snap-align:start;
  }
  .sm-chart-container { max-width:100%; min-width:0; }
  .sm-notification-row { align-items:flex-start; }
  .sm-notification-row > a { width:100%; }
  .sm-export-preview > span { flex:0 0 auto; }
  .sm-export-preview > div { min-width:0; }
  .sm-settings-actions { grid-column:auto; }
  .sm-assistant-widget {
    right:max(12px,env(safe-area-inset-right));
    bottom:max(12px,env(safe-area-inset-bottom));
  }
  .sm-assistant-panel {
    right:max(10px,env(safe-area-inset-right));
    bottom:max(70px,calc(62px + env(safe-area-inset-bottom)));
    left:max(10px,env(safe-area-inset-left));
    width:auto;
    max-width:none;
    height:min(620px,calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  }
  .sm-toast-stack {
    right:max(10px,env(safe-area-inset-right));
    bottom:max(10px,env(safe-area-inset-bottom));
    left:max(10px,env(safe-area-inset-left));
    width:auto;
  }
  .smcrm-wpadmin-shell .sm-topbar { grid-template-columns:minmax(0,1fr) auto; }
  .smcrm-wpadmin-shell .sm-header-tools .sm-global-search { display:none; }
  .smcrm-wpadmin-shell .sm-heading h1 { overflow-wrap:anywhere; }
}

@media (max-width:520px) {
  .smcrm-shell:not(.smcrm-wpadmin-shell) .sm-topbar {
    grid-template-columns:40px minmax(0,1fr) auto;
    gap:8px;
  }
  .smcrm-shell:not(.smcrm-wpadmin-shell) .sm-heading h1 { font-size:20px; }
  .sm-content { width:100%; }
  .sm-card-head { align-items:stretch; flex-direction:column; }
  .sm-card-head > select,
  .sm-card-head > .sm-btn,
  .sm-card-head > div:last-child:not(:first-child) { max-width:100%; width:100%; }
  .sm-card-head > div:last-child:not(:first-child) { display:flex; flex-wrap:wrap; }
  .sm-dashboard-performance { max-width:100%; padding:13px; }
  .sm-dashboard-performance > .sm-section-heading { align-items:stretch; }
  .sm-dashboard-performance .sm-performance-heading-actions,
  .sm-dashboard-performance .sm-performance-heading-actions > a { width:100%; }
  .sm-dashboard-performance .sm-team-progress-summary,
  .sm-dashboard-performance .sm-user-performance-card { padding:13px; }
  .sm-dashboard-performance .sm-team-progress-metrics,
  .sm-dashboard-performance .sm-user-performance-stats { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .sm-dashboard-performance .sm-user-performance-card header { grid-template-columns:minmax(0,1fr) auto; }
  .sm-dashboard-performance .sm-user-performance-person { align-items:flex-start; }
  .sm-dashboard-performance .sm-user-performance-person > img { width:44px; height:44px; }
  .sm-dashboard-performance .sm-user-performance-person strong { font-size:15px; }
  .sm-dashboard-performance .sm-user-performance-presence { width:100%; border-radius:10px; }
  .sm-dashboard-performance .sm-user-performance-presence > em { max-width:100%; white-space:normal; }
  .sm-dashboard-performance .sm-user-performance-card footer { align-items:stretch; }
  .sm-dashboard-performance .sm-user-performance-card footer > a,
  .sm-dashboard-performance .sm-user-performance-card footer > strong { justify-content:center; width:100%; }
  .sm-profile-summary { padding:17px; }
  .sm-notification-row { grid-template-columns:38px minmax(0,1fr); padding:13px; }
  .sm-notification-row > a { grid-column:1/-1; }
  .sm-export-preview { padding:14px; }
  .sm-followup-compose,
  .sm-followup-history { margin-right:12px; margin-left:12px; }
  .sm-followup-section-head,
  .sm-followup-compose-form,
  .sm-followup-history > ol { padding:14px; }
  .sm-followup-row-actions .sm-action-preview { flex-basis:100%; }
  .sm-wpadmin-brandbar { min-width:0; }
  .sm-wpadmin-brand { width:100%; }
  .sm-wpadmin-brand span { overflow:hidden; }
  .sm-wpadmin-brand strong,
  .sm-wpadmin-brand small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}

@media (max-width:390px) {
  .smcrm-shell:not(.smcrm-wpadmin-shell) .sm-heading h1 { font-size:18px; }
  .sm-dashboard-performance .sm-team-progress-metrics,
  .sm-dashboard-performance .sm-user-performance-stats { grid-template-columns:1fr; }
  .sm-dashboard-performance .sm-performance-period-tabs a span { font-size:10px; }
  .sm-assistant-panel > header { min-height:62px; padding:10px; }
  .sm-assistant-messages { padding:12px; }
}
