/*
  NuvoCall Premium UI System V3
  Single source of visual truth: tokens, layout, components, utilities.
*/
:root {
  --nv-graphite: #111A1F;
  --nv-graphite-2: #1B262C;
  --nv-emerald-900: #063F37;
  --nv-emerald-800: #074F45;
  --nv-emerald-700: #0B6558;
  --nv-teal-600: #0E8B78;
  --nv-mint-500: #10BFA4;
  --nv-mint-100: #DDF8F2;
  --nv-violet-500: #8360F6;
  --nv-bg: #F4FAF8;
  --nv-bg-2: #ECF7F3;
  --nv-surface: rgba(255,255,255,.86);
  --nv-surface-solid: #FFFFFF;
  --nv-line: rgba(17,26,31,.10);
  --nv-line-strong: rgba(17,26,31,.16);
  --nv-muted: #687780;
  --nv-muted-2: #92A0A7;
  --nv-danger: #B42318;
  --nv-danger-bg: #FFF1F2;
  --nv-success: #067647;
  --nv-success-bg: #ECFDF3;
  --nv-warning: #B54708;
  --nv-warning-bg: #FFFAEB;
  --nv-radius-xs: 10px;
  --nv-radius-sm: 14px;
  --nv-radius-md: 20px;
  --nv-radius-lg: 28px;
  --nv-radius-xl: 36px;
  --nv-shadow-soft: 0 18px 45px rgba(17,26,31,.075);
  --nv-shadow-premium: 0 28px 90px rgba(7,79,69,.13);
  --nv-shadow-button: 0 18px 36px rgba(11,101,88,.28);
  --nv-font: Inter, Manrope, Segoe UI, Arial, sans-serif;
  --nv-font-display: Manrope, Inter, Segoe UI, Arial, sans-serif;
  --nv-sidebar-w: 292px;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--nv-graphite); font-family: var(--nv-font); background: var(--nv-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--nv-emerald-700); text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

/* Utilities */
.nv-eyebrow { color: var(--nv-emerald-700); font-weight: 900; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }
.nv-muted { color: var(--nv-muted); }
.nv-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--nv-mint-500); display: inline-block; box-shadow: 0 0 0 6px rgba(16,191,164,.12); }
.nv-shell-card { border: 1px solid var(--nv-line); border-radius: var(--nv-radius-lg); background: var(--nv-surface); box-shadow: var(--nv-shadow-soft); backdrop-filter: blur(18px); }
.nv-gradient-text { background: linear-gradient(135deg, var(--nv-emerald-800), var(--nv-mint-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nv-page-bg { background:
  radial-gradient(circle at 90% 0%, rgba(16,191,164,.15), transparent 32%),
  radial-gradient(circle at 8% 22%, rgba(131,96,246,.055), transparent 28%),
  linear-gradient(135deg, #F9FCFB, var(--nv-bg-2)); }

/* Flash */
.flash { padding: 14px 16px; border-radius: var(--nv-radius-sm); margin: 14px 0; font-weight: 800; border: 1px solid transparent; }
.flash.error { color: var(--nv-danger); background: var(--nv-danger-bg); border-color: #FFD5D9; }
.flash.success { color: var(--nv-success); background: var(--nv-success-bg); border-color: #ABEFC6; }

/* Auth */
.auth-body { min-height: 100vh; background:
  radial-gradient(circle at 88% 12%, rgba(16,191,164,.18), transparent 28%),
  radial-gradient(circle at 10% 84%, rgba(7,79,69,.13), transparent 34%),
  linear-gradient(135deg, #FFFFFF, #F2FBF8 55%, #FFFFFF); }
.nv-login-canvas { min-height: 100vh; display: grid; place-items: center; padding: 34px; }
.nv-login-window { width: min(1320px, 100%); min-height: 790px; display: grid; grid-template-columns: .92fr 1.58fr; overflow: hidden; border: 1px solid var(--nv-line); border-radius: 38px; background: rgba(255,255,255,.58); box-shadow: var(--nv-shadow-premium); backdrop-filter: blur(22px); }
.nv-login-card { padding: 56px 52px; background: rgba(255,255,255,.92); border-inline-end: 1px solid var(--nv-line); display: flex; flex-direction: column; justify-content: center; }
.nv-login-logo { width: 332px; margin: 0 auto 26px; display: block; }
.nv-login-card h1 { margin: 0; color: var(--nv-emerald-700); font-family: var(--nv-font-display); font-size: 30px; letter-spacing: -.03em; text-align: center; }
.nv-login-card p { margin: 8px 0 30px; color: var(--nv-muted); text-align: center; }
.nv-login-form label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 850; color: #243137; }
.nv-input { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 17px; border: 1px solid var(--nv-line); border-radius: 17px; background: #fff; transition: border .2s, box-shadow .2s, transform .2s; }
.nv-input:focus-within { border-color: rgba(14,139,120,.42); box-shadow: 0 0 0 5px rgba(16,191,164,.12); }
.nv-input svg { width: 20px; height: 20px; color: var(--nv-emerald-700); flex: 0 0 auto; }
.nv-input input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--nv-graphite); }
.nv-input button { border: 0; background: transparent; color: var(--nv-muted); cursor: pointer; padding: 4px; }
.nv-form-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 26px; font-size: 14px; }
.nv-checkbox { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 9px; margin: 0 !important; color: #3D4B52; font-weight: 650 !important; }
.nv-checkbox input { accent-color: var(--nv-emerald-700); }
.nv-btn { border: 0; border-radius: 16px; height: 54px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 900; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.nv-btn:hover { transform: translateY(-1px); }
.nv-btn-primary { color: #fff; background: linear-gradient(135deg, var(--nv-emerald-800), var(--nv-teal-600)); box-shadow: var(--nv-shadow-button); }
.nv-btn-primary svg { width: 18px; }
.nv-btn-ghost { color: #304047; border: 1px solid var(--nv-line); background: #fff; }
.nv-btn-sm { height: 42px; border-radius: 13px; padding: 0 15px; font-size: 13px; }
.nv-login-submit { width: 100%; height: 62px; }
.nv-language-tabs { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin-top: 30px; border: 1px solid var(--nv-line); border-radius: 16px; background: #fff; }
.nv-language-tabs a { padding: 13px 10px; color: #59676E; text-align: center; border-inline-end: 1px solid var(--nv-line); font-weight: 750; }
.nv-language-tabs a:last-child { border-inline-end: 0; }
.nv-language-tabs .active { color: var(--nv-emerald-800); background: linear-gradient(135deg, rgba(16,191,164,.12), rgba(11,101,88,.06)); }
.nv-security-line { display: flex; align-items: center; gap: 8px; margin-top: 21px; color: var(--nv-muted); font-size: 13px; }
.nv-security-line svg { width: 18px; color: var(--nv-emerald-700); }
.nv-feature-panel { padding: 58px 64px; position: relative; overflow: hidden; background:
  linear-gradient(145deg, rgba(255,255,255,.60), rgba(235,249,244,.78)),
  radial-gradient(circle at 100% 0%, rgba(16,191,164,.14), transparent 30%); }
.nv-feature-panel::after { content: ''; position: absolute; inset: auto -80px -140px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(16,191,164,.16), transparent 65%); pointer-events: none; }
.nv-hero-copy h2 { margin: 0; font-family: var(--nv-font-display); font-size: clamp(38px, 4vw, 60px); line-height: 1.03; letter-spacing: -.055em; }
.nv-hero-copy h2 span { color: var(--nv-emerald-700); }
.nv-hero-copy p { max-width: 760px; color: #415057; font-size: 17px; line-height: 1.72; }
.nv-feature-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nv-feature-item { padding: 22px; border: 1px solid var(--nv-line); border-radius: 23px; background: rgba(255,255,255,.72); box-shadow: 0 15px 36px rgba(17,26,31,.055); }
.nv-feature-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 15px; color: var(--nv-emerald-700); border-radius: 50%; background: linear-gradient(135deg, rgba(16,191,164,.16), rgba(11,101,88,.05)); }
.nv-feature-icon svg { width: 24px; height: 24px; }
.nv-feature-item strong { display: block; margin-bottom: 7px; font-size: 16px; }
.nv-feature-item span { color: var(--nv-muted); line-height: 1.55; }
.nv-mini-dashboard { margin-top: 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nv-mini-dashboard div { padding: 18px; border: 1px solid var(--nv-line); border-radius: 19px; background: rgba(255,255,255,.78); }
.nv-mini-dashboard span { display: block; color: var(--nv-muted); font-size: 12px; }
.nv-mini-dashboard strong { display: block; margin: 7px 0; font-size: 26px; letter-spacing: -.03em; }
.nv-mini-dashboard small { color: var(--nv-success); font-weight: 900; }
.nv-mini-dashboard .violet { color: var(--nv-violet-500); }

/* App layout */
.app-body { min-height: 100vh; background:
  radial-gradient(circle at 94% -6%, rgba(16,191,164,.16), transparent 32%),
  linear-gradient(135deg, #FAFDFC, #EEF8F4); }
.nv-app-shell { display: grid; grid-template-columns: var(--nv-sidebar-w) 1fr; min-height: 100vh; }
.nv-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: rgba(255,255,255,.82); border-inline-end: 1px solid var(--nv-line); backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 24px; }
.nv-brand { display: flex; align-items: center; justify-content: center; height: 58px; padding: 0 10px; }
.nv-brand img { max-width: 214px; max-height: 54px; object-fit: contain; }
.nv-side-nav { display: flex; flex-direction: column; gap: 7px; }
.nv-side-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 0 14px; color: #26343A; border-radius: 16px; font-size: 14px; font-weight: 850; transition: background .18s, color .18s, transform .18s; }
.nv-side-link::before { content: ''; position: absolute; inset-inline-start: 5px; width: 3px; height: 20px; border-radius: 99px; background: transparent; }
.nv-side-link:hover { background: rgba(16,191,164,.09); color: var(--nv-emerald-800); transform: translateX(1px); }
.nv-side-link.is-active { background: linear-gradient(135deg, rgba(16,191,164,.15), rgba(11,101,88,.06)); color: var(--nv-emerald-800); }
.nv-side-link.is-active::before { background: var(--nv-mint-500); }
.nv-side-icon { width: 22px; height: 22px; display: inline-grid; place-items: center; color: currentColor; opacity: .95; }
.nv-side-icon svg { width: 19px; height: 19px; stroke-width: 2; }
.nv-sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 13px; }
.nv-user-chip { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--nv-line); border-radius: 21px; background: #fff; box-shadow: 0 12px 26px rgba(17,26,31,.055); }
.nv-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 950; background: linear-gradient(135deg, var(--nv-emerald-800), var(--nv-mint-500)); }
.nv-user-chip strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-user-chip small { display: block; color: var(--nv-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-logout { padding: 10px 12px; color: var(--nv-danger); font-weight: 900; border-radius: 13px; }
.nv-logout:hover { background: var(--nv-danger-bg); }
.nv-main { min-width: 0; padding: 28px 32px 42px; }
.nv-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.nv-topbar h1 { margin: 6px 0 0; font-family: var(--nv-font-display); font-size: clamp(28px, 2.4vw, 42px); letter-spacing: -.052em; line-height: 1.04; }
.nv-top-actions { display: flex; align-items: center; gap: 10px; }
.nv-lang-pill { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--nv-line); border-radius: 999px; background: rgba(255,255,255,.76); }
.nv-lang-pill a { padding: 8px 12px; border-radius: 999px; color: #58676E; font-size: 12px; font-weight: 850; }
.nv-lang-pill .active { color: #fff; background: var(--nv-emerald-800); }
.nv-mobile-toggle { display: none; }

/* Dashboard */
.nv-dashboard-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 180px; gap: 20px; padding: 34px; margin-bottom: 20px; }
.nv-dashboard-hero::after { content: ''; position: absolute; right: -90px; top: -120px; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(16,191,164,.18), transparent 62%); }
.nv-dashboard-hero h2 { margin: 10px 0 10px; font-family: var(--nv-font-display); max-width: 920px; font-size: clamp(30px, 3vw, 48px); line-height: 1.09; letter-spacing: -.05em; }
.nv-dashboard-hero p { margin: 0; max-width: 760px; color: var(--nv-muted); line-height: 1.7; }
.nv-hero-badge { align-self: center; justify-self: end; width: 118px; height: 118px; display: grid; place-items: center; color: var(--nv-emerald-700); border-radius: 34px; background: linear-gradient(135deg, rgba(16,191,164,.14), rgba(255,255,255,.72)); border: 1px solid var(--nv-line); }
.nv-hero-badge svg { width: 48px; height: 48px; }
.nv-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.nv-kpi { padding: 20px; border: 1px solid var(--nv-line); border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgba(17,26,31,.052); }
.nv-kpi span { color: var(--nv-muted); font-size: 13px; }
.nv-kpi strong { display: block; margin: 7px 0 5px; font-family: var(--nv-font-display); font-size: 28px; letter-spacing: -.045em; }
.nv-kpi small { color: var(--nv-emerald-800); font-weight: 900; }
.nv-two-col { display: grid; grid-template-columns: 1.25fr .85fr; gap: 18px; }
.nv-panel { padding: 24px; border: 1px solid var(--nv-line); border-radius: 26px; background: rgba(255,255,255,.86); box-shadow: var(--nv-shadow-soft); }
.nv-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.nv-panel-head h3 { margin: 0; font-family: var(--nv-font-display); font-size: 20px; letter-spacing: -.025em; }
.nv-activity { display: flex; flex-direction: column; gap: 12px; }
.nv-activity-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--nv-line); border-radius: 18px; background: #fff; }
.nv-activity-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--nv-emerald-700); background: rgba(16,191,164,.11); }
.nv-activity-icon svg { width: 20px; height: 20px; }
.nv-activity-item strong { display:block; font-size: 14px; }
.nv-activity-item small { color: var(--nv-muted); }
.nv-status-stack { display: grid; gap: 12px; }
.nv-status-line { padding: 14px; border: 1px solid var(--nv-line); border-radius: 18px; background: #fff; }
.nv-status-line b { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nv-bar { height: 8px; border-radius: 99px; overflow: hidden; background: #EEF4F2; }
.nv-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nv-emerald-700), var(--nv-mint-500)); }
.nv-debug { margin-top: 18px; padding: 18px; }
.nv-debug summary { cursor: pointer; font-weight: 900; }
.nv-permission-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.nv-permission-list span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--nv-line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; }
.nv-permission-list em { color: var(--nv-emerald-800); font-style: normal; }

/* Tables and forms */
.nv-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.nv-section-head h2 { margin: 5px 0 0; font-family: var(--nv-font-display); font-size: 31px; letter-spacing: -.04em; }
.nv-table-card { overflow: hidden; border: 1px solid var(--nv-line); border-radius: 28px; background: #fff; box-shadow: var(--nv-shadow-soft); }
.nv-table-scroll { overflow: auto; }
.nv-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.nv-table th, .nv-table td { padding: 17px 20px; text-align: start; border-bottom: 1px solid var(--nv-line); vertical-align: top; }
.nv-table th { color: #607078; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; background: rgba(247,251,250,.86); }
.nv-table td small { display: block; margin-top: 4px; color: var(--nv-muted); }
.nv-table tr:hover td { background: rgba(16,191,164,.035); }
.nv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 950; background: #EEF2F4; color: #425058; }
.nv-pill.active { color: var(--nv-success); background: var(--nv-success-bg); }
.nv-pill.suspended { color: var(--nv-danger); background: var(--nv-danger-bg); }
.nv-pill.invited { color: var(--nv-warning); background: var(--nv-warning-bg); }
.nv-form-card { padding: 26px; border: 1px solid var(--nv-line); border-radius: 28px; background: #fff; box-shadow: var(--nv-shadow-soft); }
.nv-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nv-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 900; }
.nv-field input, .nv-field select, .nv-field textarea { width: 100%; min-height: 48px; padding: 0 14px; color: var(--nv-graphite); border: 1px solid var(--nv-line); border-radius: 14px; background: #fff; outline: 0; }
.nv-field input:focus, .nv-field select:focus, .nv-field textarea:focus { border-color: rgba(14,139,120,.45); box-shadow: 0 0 0 5px rgba(16,191,164,.11); }
.nv-matrix { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--nv-line); }
.nv-matrix h3 { margin: 0 0 6px; font-family: var(--nv-font-display); font-size: 20px; }
.nv-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.nv-check-card { min-height: 78px; display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 15px; border: 1px solid var(--nv-line); border-radius: 18px; background: #fff; cursor: pointer; transition: border .18s, box-shadow .18s, transform .18s; }
.nv-check-card:hover { transform: translateY(-1px); border-color: rgba(14,139,120,.26); box-shadow: 0 10px 24px rgba(17,26,31,.06); }
.nv-check-card input { margin-top: 3px; accent-color: var(--nv-emerald-700); }
.nv-check-card strong { display: block; }
.nv-check-card small { display: block; color: var(--nv-muted); margin-top: 3px; font-weight: 550; }
.nv-form-actions { margin-top: 26px; display: flex; gap: 12px; align-items: center; }

/* RTL */
html[dir="rtl"] .nv-login-card { border-inline-end: 0; border-inline-start: 1px solid var(--nv-line); }
html[dir="rtl"] .nv-btn svg.arrow { transform: rotate(180deg); }
html[dir="rtl"] .nv-side-link:hover { transform: translateX(-1px); }

@media (max-width: 1120px) {
  .nv-login-window, .nv-app-shell { grid-template-columns: 1fr; }
  .nv-feature-panel { display: none; }
  .nv-sidebar { position: fixed; z-index: 20; transform: translateX(-105%); transition: transform .2s; width: var(--nv-sidebar-w); }
  .nv-sidebar.is-open { transform: translateX(0); }
  html[dir="rtl"] .nv-sidebar { transform: translateX(105%); }
  html[dir="rtl"] .nv-sidebar.is-open { transform: translateX(0); }
  .nv-mobile-toggle { display: inline-flex; }
  .nv-main { padding: 20px; }
  .nv-kpi-grid, .nv-two-col, .nv-form-grid, .nv-check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nv-login-canvas { padding: 18px; }
  .nv-login-card { padding: 34px 22px; }
  .nv-mini-dashboard, .nv-feature-grid { grid-template-columns: 1fr; }
  .nv-dashboard-hero { grid-template-columns: 1fr; }
  .nv-hero-badge { justify-self: start; width: 80px; height: 80px; }
}

/* =========================================================
   NuvoCall Luxury Theme V4 Override
   Direction: Graphite + Deep Emerald + Controlled Mint
   Goal: less flat white, stronger premium contrast, cleaner nav.
   ========================================================= */
:root {
  --nv-graphite: #0F171B;
  --nv-graphite-2: #172328;
  --nv-emerald-900: #042C27;
  --nv-emerald-800: #06483F;
  --nv-emerald-700: #087060;
  --nv-teal-600: #0B8A78;
  --nv-mint-500: #19D2B1;
  --nv-mint-100: #DDF8F2;
  --nv-bg: #EEF5F2;
  --nv-bg-2: #E6F1ED;
  --nv-surface: rgba(255,255,255,.88);
  --nv-line: rgba(10, 31, 35, .12);
  --nv-line-strong: rgba(10,31,35,.20);
  --nv-shadow-soft: 0 18px 48px rgba(5, 28, 28, .09);
  --nv-shadow-premium: 0 34px 110px rgba(4, 44, 39, .22);
}

body.app-body {
  background:
    radial-gradient(circle at 92% -8%, rgba(25,210,177,.18), transparent 30%),
    radial-gradient(circle at 45% 110%, rgba(4,44,39,.08), transparent 35%),
    linear-gradient(135deg, #F7FAF8 0%, #EAF3EF 50%, #F7FAF8 100%);
}

.nv-app-shell {
  grid-template-columns: 306px 1fr;
}

.nv-sidebar {
  width: 306px;
  padding: 22px 17px;
  background:
    radial-gradient(circle at 20% 0%, rgba(25,210,177,.18), transparent 28%),
    linear-gradient(180deg, #071113 0%, #09211F 48%, #041412 100%);
  border-inline-end: 1px solid rgba(255,255,255,.08);
  box-shadow: 24px 0 70px rgba(4, 20, 18, .14);
}

.nv-brand {
  height: 70px;
  margin: 0 0 4px;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
}
.nv-brand img { max-width: 222px; max-height: 58px; }

.nv-side-nav { gap: 8px; padding-top: 6px; }
.nv-side-link {
  min-height: 50px;
  color: rgba(255,255,255,.72);
  border: 1px solid transparent;
  letter-spacing: -.01em;
}
.nv-side-link .nv-side-icon { color: rgba(255,255,255,.74); }
.nv-side-link:hover {
  color: #fff;
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.08);
  transform: translateX(2px);
}
.nv-side-link:hover .nv-side-icon { color: var(--nv-mint-500); }
.nv-side-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(25,210,177,.22), rgba(255,255,255,.06));
  border-color: rgba(25,210,177,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.16);
}
.nv-side-link.is-active .nv-side-icon { color: var(--nv-mint-500); }
.nv-side-link::before { inset-inline-start: 7px; width: 3px; height: 22px; }
.nv-side-link.is-active::before { background: linear-gradient(180deg, var(--nv-mint-500), var(--nv-teal-600)); }

.nv-user-chip {
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nv-user-chip strong { color: #fff; }
.nv-user-chip small { color: rgba(255,255,255,.58); }
.nv-avatar { background: linear-gradient(135deg, var(--nv-mint-500), var(--nv-emerald-700)); color: #021413; }
.nv-logout { color: #FFB4B4; }
.nv-logout:hover { background: rgba(255,255,255,.06); color: #fff; }

.nv-main { padding: 30px 34px 46px; }
.nv-topbar { margin-bottom: 24px; }
.nv-topbar h1 {
  color: #101A1E;
  font-size: clamp(31px, 2.5vw, 46px);
  font-weight: 900;
}
.nv-eyebrow { color: var(--nv-emerald-800); }
.nv-lang-pill {
  padding: 5px;
  background: rgba(255,255,255,.74);
  border-color: rgba(7,79,69,.10);
  box-shadow: 0 10px 28px rgba(4,44,39,.08);
}
.nv-lang-pill a { color: #526269; }
.nv-lang-pill .active { background: linear-gradient(135deg, var(--nv-emerald-900), var(--nv-emerald-700)); color: #fff; box-shadow: 0 8px 18px rgba(4,72,63,.22); }

.nv-dashboard-hero {
  min-height: 238px;
  padding: 42px 46px;
  background:
    radial-gradient(circle at 88% 10%, rgba(25,210,177,.22), transparent 24%),
    linear-gradient(135deg, #101A1E 0%, #063F37 55%, #042C27 100%);
  border-color: rgba(255,255,255,.12);
  box-shadow: var(--nv-shadow-premium);
}
.nv-dashboard-hero .nv-eyebrow { color: var(--nv-mint-500); }
.nv-dashboard-hero h2 {
  max-width: 980px;
  color: #FFFFFF;
  font-size: clamp(34px, 3.2vw, 56px);
  font-weight: 950;
  letter-spacing: -.065em;
}
.nv-dashboard-hero p {
  color: rgba(255,255,255,.72);
  font-size: 15px;
}
.nv-dashboard-hero::after {
  opacity: .65;
  background: radial-gradient(circle, rgba(25,210,177,.26), transparent 63%);
}
.nv-hero-badge {
  color: var(--nv-mint-500);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.nv-kpi {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(249,252,251,.90));
  border-color: rgba(7,79,69,.10);
  box-shadow: 0 18px 42px rgba(4,44,39,.075);
}
.nv-kpi::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--nv-emerald-900), var(--nv-mint-500));
  opacity: .88;
}
.nv-kpi span { color: #728087; }
.nv-kpi strong { color: #101A1E; }
.nv-kpi small { color: var(--nv-emerald-800); }

.nv-panel,
.nv-table-card,
.nv-form-card,
.nv-debug {
  background: rgba(255,255,255,.88);
  border-color: rgba(7,79,69,.11);
  box-shadow: 0 22px 58px rgba(4,44,39,.085);
}
.nv-panel-head h3 { color: #111A1F; font-size: 22px; }
.nv-dot { background: var(--nv-mint-500); box-shadow: 0 0 0 7px rgba(25,210,177,.13); }

.nv-activity-item,
.nv-status-line,
.nv-permission-list span,
.nv-table tr,
.nv-check-card {
  border-color: rgba(7,79,69,.10);
}
.nv-activity-item {
  background: linear-gradient(180deg, #fff, #FBFEFD);
}
.nv-activity-icon {
  color: var(--nv-emerald-800);
  background: linear-gradient(135deg, rgba(25,210,177,.18), rgba(6,72,63,.05));
}
.nv-bar { background: rgba(6,72,63,.08); }
.nv-bar i { background: linear-gradient(90deg, var(--nv-emerald-900), var(--nv-teal-600), var(--nv-mint-500)); }

.nv-section-head h2 { color: #101A1E; font-size: 34px; }
.nv-table-card { background: rgba(255,255,255,.92); }
.nv-table th { background: linear-gradient(180deg, #F8FCFB, #F1F7F4); color: #526169; }
.nv-table tr:hover td { background: rgba(25,210,177,.045); }
.nv-pill.active { color: #035C4F; background: #DDF8F2; }
.nv-btn-primary { background: linear-gradient(135deg, var(--nv-emerald-900), var(--nv-emerald-700)); box-shadow: 0 18px 36px rgba(4,72,63,.30); }
.nv-btn-ghost { background: rgba(255,255,255,.84); border-color: rgba(7,79,69,.13); }
.nv-field input,
.nv-field select,
.nv-field textarea {
  border-color: rgba(7,79,69,.13);
  background: #FCFEFD;
}
.nv-check-card:hover {
  border-color: rgba(25,210,177,.32);
  box-shadow: 0 16px 34px rgba(4,44,39,.09);
}

/* Auth luxury alignment */
.auth-body {
  background:
    radial-gradient(circle at 88% 10%, rgba(25,210,177,.18), transparent 28%),
    radial-gradient(circle at 8% 80%, rgba(4,44,39,.16), transparent 34%),
    linear-gradient(135deg, #F9FCFB, #EAF3EF 55%, #F7FBFA);
}
.nv-login-window {
  box-shadow: 0 38px 120px rgba(4,44,39,.20);
  border-color: rgba(7,79,69,.12);
}
.nv-login-card { background: rgba(255,255,255,.94); }
.nv-feature-panel {
  background:
    radial-gradient(circle at 92% 7%, rgba(25,210,177,.16), transparent 25%),
    linear-gradient(145deg, #101A1E 0%, #063F37 100%);
}
.nv-feature-panel::after { background: radial-gradient(circle, rgba(25,210,177,.23), transparent 65%); }
.nv-hero-copy h2 { color: #fff; }
.nv-hero-copy h2 span { color: var(--nv-mint-500); }
.nv-hero-copy p { color: rgba(255,255,255,.70); }
.nv-feature-item,
.nv-mini-dashboard div {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nv-feature-item span,
.nv-mini-dashboard span { color: rgba(255,255,255,.64); }
.nv-feature-icon { color: var(--nv-mint-500); background: rgba(255,255,255,.09); }
.nv-mini-dashboard strong { color: #fff; }

@media (max-width: 1120px) {
  .nv-sidebar { transform: translateX(-105%); }
}

/* =========================================================
   NuvoCall V5 Profile Components
   ========================================================= */
.nv-user-link { text-decoration: none; color: inherit; }
.nv-user-link:hover { transform: translateY(-1px); }
.nv-avatar-img,
.nv-top-avatar-img,
.nv-profile-avatar-img {
  display: block;
  object-fit: cover;
  border-radius: 999px;
}
.nv-avatar-img { width: 44px; height: 44px; border: 2px solid rgba(25,210,177,.38); }
.nv-top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #152226;
  box-shadow: 0 10px 28px rgba(4,44,39,.08);
}
.nv-top-user:hover { background: #fff; }
.nv-top-avatar,
.nv-top-avatar-img {
  width: 34px;
  height: 34px;
}
.nv-top-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #021413;
  font-size: 13px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--nv-mint-500), var(--nv-emerald-700));
}
.nv-top-user strong { font-size: 13px; max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.nv-profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}
.nv-profile-card {
  padding: 26px;
  border: 1px solid rgba(7,79,69,.11);
  border-radius: 28px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 22px 58px rgba(4,44,39,.085);
}
.nv-profile-identity {
  text-align: center;
}
.nv-profile-avatar,
.nv-profile-avatar-img {
  width: 142px;
  height: 142px;
  margin: 0 auto 18px;
}
.nv-profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #021413;
  font-size: 48px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--nv-mint-500), var(--nv-emerald-700));
  box-shadow: 0 20px 46px rgba(6,72,63,.22);
}
.nv-profile-avatar-img {
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 46px rgba(6,72,63,.22);
}
.nv-profile-identity h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.03em; }
.nv-profile-identity p { margin: 0; color: var(--nv-muted); }
.nv-profile-meta {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  text-align: start;
}
.nv-profile-meta div {
  padding: 13px 14px;
  border: 1px solid rgba(7,79,69,.09);
  border-radius: 16px;
  background: #FCFEFD;
}
.nv-profile-meta span { display: block; color: var(--nv-muted); font-size: 12px; margin-bottom: 4px; }
.nv-profile-meta strong { display: block; overflow-wrap: anywhere; }
.nv-profile-tabs {
  display: grid;
  gap: 20px;
}
.nv-profile-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -.03em;
}
.nv-profile-card .nv-muted { margin-top: 0; }
.nv-profile-card textarea { min-height: 112px; padding: 14px; resize: vertical; }
.nv-photo-upload {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.nv-photo-upload input[type=file] {
  height: auto;
  padding: 14px;
}
@media (max-width: 1120px) {
  .nv-profile-grid { grid-template-columns: 1fr; }
  .nv-top-user strong { display: none; }
}

/* =========================================================
   NuvoCall V6 Role Management Components
   ========================================================= */
.nv-role-form-header {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.nv-role-matrix {
  display: grid;
  gap: 18px;
}
.nv-role-module {
  border: 1px solid rgba(7,79,69,.11);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(4,44,39,.065);
  overflow: hidden;
}
.nv-role-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #F8FCFB, #F1F7F4);
  border-bottom: 1px solid rgba(7,79,69,.10);
}
.nv-role-module-head h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.025em;
}
.nv-role-permissions {
  display: grid;
}
.nv-role-permission-row {
  display: grid;
  grid-template-columns: 42px 1fr 170px;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(7,79,69,.08);
}
.nv-role-permission-row:last-child { border-bottom: 0; }
.nv-role-permission-row:hover { background: rgba(25,210,177,.045); }
.nv-role-permission-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--nv-emerald-700); }
.nv-role-permission-row strong { display: block; font-size: 14px; }
.nv-role-permission-row small { display: block; color: var(--nv-muted); margin-top: 3px; }
.nv-role-permission-row select {
  height: 40px;
  border: 1px solid rgba(7,79,69,.13);
  border-radius: 12px;
  padding: 0 10px;
  background: #fff;
}
.nv-role-protected {
  padding: 18px 20px;
  border: 1px solid rgba(181,71,8,.18);
  border-radius: 20px;
  background: #FFFAEB;
  color: #7A2E0E;
  margin-bottom: 20px;
  font-weight: 800;
}
.nv-role-actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .nv-role-form-header { grid-template-columns: 1fr; }
  .nv-role-permission-row { grid-template-columns: 32px 1fr; }
  .nv-role-permission-row select { grid-column: 2; }
}

/* =========================================================
   NuvoCall V7 Clients / Leads Pipeline Kanban
   ========================================================= */
.nv-clients-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 95% 20%, rgba(16,191,164,.26), transparent 28%),
    linear-gradient(135deg, #0B1618 0%, #082F2A 54%, #0B6558 100%);
  box-shadow: 0 30px 80px rgba(4,44,39,.24);
  color: #fff;
  overflow: hidden;
  margin-bottom: 18px;
}
.nv-clients-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(131,96,246,.16);
  filter: blur(5px);
}
.nv-clients-hero .nv-eyebrow { color: #56E8D0; }
.nv-clients-hero h2 {
  position: relative;
  margin: 8px 0 10px;
  max-width: 780px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .94;
  letter-spacing: -.06em;
}
.nv-clients-hero p {
  position: relative;
  max-width: 760px;
  color: rgba(255,255,255,.72);
  margin: 0;
  line-height: 1.7;
}
.nv-client-actions { position: relative; z-index: 2; display:flex; gap:10px; }
.nv-pipeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(7,79,69,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 50px rgba(4,44,39,.07);
  margin-bottom: 18px;
}
.nv-pipeline-toolbar strong { display:block; font-size: 16px; }
.nv-pipeline-toolbar small { display:block; color: var(--nv-muted); margin-top: 4px; }
.nv-pipeline-toolbar select {
  min-width: 220px;
  height: 44px;
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 14px;
  background: #fff;
  padding: 0 12px;
}
.nv-kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(286px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 22px;
  min-height: 580px;
  scroll-snap-type: x proximity;
}
.nv-kanban-column {
  scroll-snap-align: start;
  border-radius: 26px;
  border: 1px solid rgba(7,79,69,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,251,249,.84));
  box-shadow: 0 18px 48px rgba(4,44,39,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 76vh;
}
.nv-kanban-head {
  --stage-color: var(--nv-emerald-700);
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(7,79,69,.09);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-color) 18%, #fff), #fff 72%);
}
.nv-kanban-head h3 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -.02em;
}
.nv-kanban-head small { color: var(--nv-muted); font-weight: 800; }
.nv-kanban-head span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--stage-color);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--stage-color) 14%, transparent);
}
.nv-kanban-dropzone {
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  min-height: 480px;
  transition: background .18s ease;
}
.nv-kanban-dropzone.is-over { background: rgba(16,191,164,.10); }
.nv-account-card {
  cursor: pointer;
  border: 1px solid rgba(7,79,69,.10);
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(4,44,39,.09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nv-account-card[draggable="true"] { cursor: grab; }
.nv-account-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16,191,164,.35);
  box-shadow: 0 18px 44px rgba(4,44,39,.13);
}
.nv-account-card.is-dragging { opacity: .62; transform: rotate(1.2deg) scale(.98); }
.nv-account-card.is-saved { outline: 2px solid rgba(16,191,164,.35); }
.nv-card-topline,
.nv-card-footer,
.nv-card-activity {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.nv-card-topline { color: var(--nv-muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.nv-source-badge {
  display:inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(7,79,69,.07);
  color: var(--nv-emerald-800);
}
.nv-account-card h4 {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.nv-card-meta {
  display:grid;
  gap: 4px;
  min-height: 34px;
  color: var(--nv-muted);
  font-size: 12px;
}
.nv-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(7,79,69,.08);
  font-size: 12px;
}
.nv-card-footer span { color: var(--nv-muted); }
.nv-card-footer strong { color: var(--nv-emerald-800); }
.nv-card-activity {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  background: #F7FBFA;
  color: var(--nv-muted);
  font-size: 12px;
}
.priority-urgent { border-color: rgba(181,71,8,.24); }
.priority-high { border-color: rgba(131,96,246,.22); }
.nv-client-drawer {
  position: fixed;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(430px, calc(100vw - 48px));
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.20);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,252,250,.94));
  box-shadow: 0 38px 110px rgba(4,44,39,.30);
  z-index: 90;
  transform: translateX(calc(100% + 48px));
  transition: transform .24s ease;
  overflow: auto;
}
.nv-client-drawer.is-open { transform: translateX(0); }
.nv-drawer-close {
  position:absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  background: rgba(7,79,69,.08);
  color: var(--nv-emerald-900);
  font-size: 24px;
  cursor: pointer;
}
.nv-client-drawer h3 {
  margin: 12px 0 22px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.nv-drawer-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.nv-drawer-grid div,
.nv-drawer-notes {
  padding: 14px;
  border: 1px solid rgba(7,79,69,.09);
  border-radius: 18px;
  background: #fff;
}
.nv-drawer-grid small,
.nv-drawer-notes small { display:block; color: var(--nv-muted); margin-bottom: 5px; }
.nv-drawer-grid strong { display:block; overflow-wrap:anywhere; }
.nv-drawer-notes { margin-bottom: 20px; }
.nv-drawer-notes p { margin: 0; color: var(--nv-text); line-height: 1.6; }
.nv-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nv-account-form textarea { min-height: 130px; }
.nv-empty-state {
  padding: 40px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(7,79,69,.10);
  color: var(--nv-muted);
  box-shadow: 0 16px 42px rgba(4,44,39,.08);
}
@media (max-width: 980px) {
  .nv-clients-hero,
  .nv-pipeline-toolbar { flex-direction: column; align-items: stretch; }
  .nv-kanban { grid-auto-columns: minmax(270px, 82vw); }
  .nv-form-grid.two { grid-template-columns: 1fr; }
}

/* =========================================================
   NuvoCall V8 Client Workspace / Timeline / Tasks / Notes
   ========================================================= */
.nv-workspace-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 18, 17, .56);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  padding: 28px;
}
.nv-workspace-overlay.is-open { opacity: 1; visibility: visible; }
.nv-workspace-modal {
  position: relative;
  width: min(1240px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  margin: 0 auto;
  overflow: auto;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(180deg, #F8FCFA 0%, #EEF7F3 100%);
  box-shadow: 0 50px 150px rgba(0,0,0,.38);
}
.nv-workspace-close {
  position: sticky;
  top: 18px;
  float: right;
  z-index: 5;
  margin: 18px 18px 0 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  background: #081C1A;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.nv-workspace-loading,
.nv-workspace-error {
  padding: 80px 36px;
  text-align: center;
  font-weight: 900;
  color: var(--nv-muted);
}
.nv-workspace-content { padding: 34px; clear: both; }
.nv-workspace-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 15%, rgba(16,191,164,.28), transparent 32%),
    linear-gradient(135deg, #0B1618 0%, #073E37 58%, #0B6558 100%);
  box-shadow: 0 26px 70px rgba(4,44,39,.20);
}
.nv-workspace-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: .98;
  letter-spacing: -.055em;
}
.nv-workspace-head p { margin: 0; color: rgba(255,255,255,.74); }
.nv-workspace-summary {
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin: 16px 0;
}
.nv-workspace-summary div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(7,79,69,.10);
  box-shadow: 0 12px 34px rgba(4,44,39,.06);
}
.nv-workspace-summary small { display:block; color: var(--nv-muted); margin-bottom: 6px; }
.nv-workspace-summary strong { display:block; overflow-wrap:anywhere; }
.nv-workspace-tabs {
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  margin-bottom: 16px;
}
.nv-workspace-tabs a {
  text-decoration:none;
  color: var(--nv-emerald-900);
  font-weight: 900;
  font-size: 12px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(7,79,69,.10);
}
.nv-workspace-grid {
  display:grid;
  grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr);
  gap: 16px;
  align-items:start;
}
.nv-workspace-panel {
  border-radius: 26px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(7,79,69,.10);
  box-shadow: 0 18px 48px rgba(4,44,39,.08);
  padding: 20px;
  margin-bottom: 16px;
}
.nv-panel-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  margin-bottom: 16px;
}
.nv-panel-head h3 { margin:0; font-size: 20px; letter-spacing: -.03em; }
.nv-panel-head small { color: var(--nv-muted); font-weight: 800; }
.nv-timeline { display:grid; gap: 12px; }
.nv-timeline-item {
  display:grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(7,79,69,.08);
  border-radius: 18px;
  background: #FCFEFD;
}
.nv-timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--nv-emerald-700);
  box-shadow: 0 0 0 7px rgba(16,191,164,.12);
}
.nv-timeline-item.type-note .nv-timeline-dot { background:#8360F6; }
.nv-timeline-item.type-task_completed .nv-timeline-dot { background:#10BFA4; }
.nv-timeline-item.type-stage_changed .nv-timeline-dot { background:#0B6558; }
.nv-timeline-item header {
  display:flex;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.nv-timeline-item header span { color: var(--nv-muted); font-size: 12px; white-space:nowrap; }
.nv-timeline-item p { margin: 0; color: var(--nv-muted); line-height: 1.6; }
.nv-mini-form {
  display:grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #F8FCFA;
  border: 1px solid rgba(7,79,69,.08);
  margin-bottom: 12px;
}
.nv-mini-form input,
.nv-mini-form select,
.nv-mini-form textarea {
  width:100%;
  border:1px solid rgba(7,79,69,.12);
  border-radius: 14px;
  padding: 11px 12px;
  background:#fff;
}
.nv-mini-form textarea { min-height: 78px; resize: vertical; }
.nv-mini-row { display:grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nv-edit-last-note { border-color: rgba(131,96,246,.20); background: #F7F5FF; }
.nv-task-list { display:grid; gap: 10px; }
.nv-task-item {
  display:grid;
  gap: 10px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(7,79,69,.08);
  background:#fff;
}
.nv-task-item strong { display:block; }
.nv-task-item small { display:block; color: var(--nv-muted); margin-top:4px; }
.nv-task-item.status-done { opacity:.72; }
.nv-task-item form { display:grid; gap: 8px; }
.nv-empty-state.small { padding: 18px; box-shadow:none; font-size: 13px; }
@media (max-width: 1100px) {
  .nv-workspace-grid { grid-template-columns: 1fr; }
  .nv-workspace-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .nv-workspace-overlay { padding: 10px; }
  .nv-workspace-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); border-radius: 22px; }
  .nv-workspace-content { padding: 16px; }
  .nv-workspace-head { flex-direction:column; border-radius: 22px; }
  .nv-workspace-summary { grid-template-columns: 1fr; }
  .nv-timeline-item header { flex-direction:column; }
}


/* =========================================================
   NuvoCall V8A Workspace Premium Redesign
   Icons, colored notes, voice note button, cleaner timeline.
   ========================================================= */
.nv-workspace-modal {
  background:
    radial-gradient(circle at 10% 0%, rgba(25,210,177,.14), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(131,96,246,.11), transparent 30%),
    linear-gradient(180deg, #F8FCFA 0%, #EDF6F2 100%);
}
.nv-workspace-pro { padding: 30px; }
.nv-workspace-head-pro {
  min-height: 190px;
  align-items: center;
  background:
    radial-gradient(circle at 88% 22%, rgba(16,191,164,.33), transparent 28%),
    radial-gradient(circle at 22% 18%, rgba(131,96,246,.17), transparent 32%),
    linear-gradient(135deg, #081716 0%, #052E2A 48%, #0B6558 100%);
}
.nv-workspace-head-pro h2 {
  font-size: clamp(34px, 4vw, 64px);
  letter-spacing: -.065em;
}
.nv-workspace-actions { display:flex; gap: 10px; position:relative; z-index:2; }
.nv-workspace-summary-pro {
  grid-template-columns: repeat(4, minmax(0,1fr));
  margin-top: -26px;
  position:relative;
  z-index:2;
  padding: 0 18px;
}
.nv-workspace-summary-pro div {
  background: rgba(255,255,255,.96);
  border-color: rgba(7,79,69,.11);
  box-shadow: 0 18px 55px rgba(5,28,28,.10);
}
.nv-workspace-tabs-pro {
  margin: 18px 0;
  padding: 8px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(7,79,69,.09);
  border-radius: 999px;
}
.nv-workspace-tabs-pro a {
  border: 0;
  background: transparent;
}
.nv-workspace-tabs-pro a:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(4,44,39,.08);
}
.nv-workspace-grid-pro {
  grid-template-columns: minmax(0, 1.38fr) minmax(390px, .72fr);
}
.nv-workspace-panel-pro {
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(7,79,69,.10);
  background: rgba(255,255,255,.93);
  box-shadow: 0 22px 60px rgba(4,44,39,.085);
}
.nv-timeline-pro {
  position: relative;
  padding-left: 12px;
}
.nv-timeline-pro::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(16,191,164,.48), rgba(131,96,246,.25), rgba(7,79,69,.18));
}
.nv-timeline-card {
  position: relative;
  grid-template-columns: 56px 1fr;
  align-items: start;
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,250,.94));
  border: 1px solid rgba(7,79,69,.09);
  box-shadow: 0 14px 38px rgba(4,44,39,.06);
}
.nv-timeline-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 52px rgba(4,44,39,.10);
}
.nv-timeline-icon,
.nv-task-icon {
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--nv-emerald-800), var(--nv-teal-600));
  box-shadow: 0 14px 28px rgba(6,72,63,.22);
  position: relative;
  z-index: 2;
}
.nv-timeline-icon svg,
.nv-task-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nv-activity-note { background: linear-gradient(135deg, #8360F6, #6D4FE8); }
.nv-activity-task { background: linear-gradient(135deg, #0B6558, #10BFA4); }
.nv-activity-check { background: linear-gradient(135deg, #079455, #10BFA4); }
.nv-activity-stage { background: linear-gradient(135deg, #06483F, #0E8B78); }
.nv-activity-phone { background: linear-gradient(135deg, #0E8B78, #10BFA4); }
.nv-activity-mail { background: linear-gradient(135deg, #8360F6, #10BFA4); }
.nv-activity-chat { background: linear-gradient(135deg, #10BFA4, #0B6558); }
.nv-activity-quote { background: linear-gradient(135deg, #B54708, #F79009); }
.nv-activity-payment { background: linear-gradient(135deg, #067647, #12B76A); }
.nv-timeline-body header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.nv-timeline-body header strong { display:block; font-size: 15px; }
.nv-timeline-body header em {
  display:inline-flex;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7,79,69,.07);
  color: var(--nv-muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nv-timeline-body header span {
  color: var(--nv-muted);
  font-size: 12px;
  white-space: nowrap;
}
.nv-timeline-body p {
  margin: 0;
  color: #445158;
  line-height: 1.65;
}
.nv-note-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.nv-note-colors {
  display:flex;
  align-items:center;
  gap: 7px;
  flex-wrap: wrap;
}
.nv-note-color {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(7,79,69,.12), 0 6px 14px rgba(4,44,39,.10);
  cursor: pointer;
}
.nv-note-color.active { box-shadow: 0 0 0 3px rgba(16,191,164,.22), 0 7px 16px rgba(4,44,39,.12); }
.color-default { background: linear-gradient(135deg, #EAF2EF, #fff); }
.color-mint { background: #10BFA4; }
.color-teal { background: #0E8B78; }
.color-violet { background: #8360F6; }
.color-amber { background: #F79009; }
.color-rose { background: #F04438; }
.color-graphite { background: #111A1F; }
.nv-mic-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(131,96,246,.12), rgba(16,191,164,.12));
  color: var(--nv-emerald-800);
  cursor: pointer;
  font-size: 18px;
}
.nv-mic-btn.is-recording {
  color: #fff;
  background: linear-gradient(135deg, #8360F6, #10BFA4);
  box-shadow: 0 0 0 7px rgba(131,96,246,.16);
  animation: nvPulseMic 1.05s infinite;
}
@keyframes nvPulseMic {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.nv-note-composer,
.nv-edit-last-note {
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(16,191,164,.10), transparent 40%),
    #fff;
}
.nv-note-stack {
  display:grid;
  gap: 10px;
  margin-top: 12px;
}
.nv-note-card {
  position:relative;
  padding: 14px 14px 14px 17px;
  border-radius: 19px;
  background: #fff;
  border: 1px solid rgba(7,79,69,.09);
  box-shadow: 0 10px 28px rgba(4,44,39,.055);
  overflow:hidden;
}
.nv-note-card::before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background: rgba(7,79,69,.20);
}
.nv-note-card header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.nv-note-card header span {
  color: var(--nv-muted);
  font-size: 12px;
}
.nv-note-card p {
  margin:0;
  color:#425058;
  line-height:1.55;
}
.nv-note-color-mint::before { background: #10BFA4; }
.nv-note-color-teal::before { background: #0E8B78; }
.nv-note-color-violet::before { background: #8360F6; }
.nv-note-color-amber::before { background: #F79009; }
.nv-note-color-rose::before { background: #F04438; }
.nv-note-color-graphite::before { background: #111A1F; }
.nv-task-list-pro { gap: 12px; }
.nv-task-card {
  grid-template-columns: 44px 1fr;
  align-items:start;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #fff, #FAFDFC);
  box-shadow: 0 12px 32px rgba(4,44,39,.06);
}
.nv-task-main p {
  margin: 8px 0 0;
  color: var(--nv-muted);
  font-size: 12px;
  line-height: 1.5;
}
.nv-task-done-form {
  grid-column: 2;
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.nv-task-done-form input {
  min-height: 40px;
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 13px;
  padding: 0 12px;
}
@media (max-width: 1100px) {
  .nv-workspace-grid-pro { grid-template-columns: 1fr; }
}

/* =========================================================
   NuvoCall V8B Clean Product UI Override
   Goal: compact, sharp, modern workspace + Kanban. Less 2000s cards.
   CSS-only, no workflow change.
   ========================================================= */

/* Global spacing cleanup */
.nv-main { padding: 22px 26px 34px; }
.nv-topbar { margin-bottom: 14px; }
.nv-topbar h1 { font-size: clamp(24px, 2vw, 34px); }

/* Kanban: more working space, less presentation space */
.nv-clients-hero {
  min-height: 116px;
  padding: 24px 28px;
  margin-bottom: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 18%, rgba(16,191,164,.22), transparent 26%),
    linear-gradient(135deg, #061918 0%, #06362F 58%, #0B6558 100%);
  box-shadow: 0 20px 58px rgba(4,44,39,.20);
}
.nv-clients-hero h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -.055em;
  margin: 6px 0 8px;
}
.nv-clients-hero p { max-width: 720px; line-height: 1.45; }
.nv-pipeline-toolbar {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(4,44,39,.055);
}
.nv-kanban {
  grid-auto-columns: minmax(255px, 1fr);
  gap: 12px;
  min-height: calc(100vh - 315px);
  padding-bottom: 14px;
}
.nv-kanban-column {
  border-radius: 18px;
  max-height: calc(100vh - 315px);
  box-shadow: 0 12px 36px rgba(4,44,39,.06);
  background: rgba(255,255,255,.72);
}
.nv-kanban-head {
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,249,247,.88));
}
.nv-kanban-head h3 { font-size: 14px; }
.nv-kanban-head small { font-size: 11px; }
.nv-kanban-dropzone { padding: 10px; gap: 9px; min-height: calc(100vh - 390px); }
.nv-account-card {
  padding: 12px;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(4,44,39,.055);
}
.nv-account-card h4 { font-size: 15px; margin: 9px 0 7px; }
.nv-card-meta { font-size: 11px; min-height: 28px; }
.nv-card-footer { margin-top: 9px; padding-top: 9px; }
.nv-card-activity { margin-top: 8px; padding: 8px 9px; border-radius: 11px; }

/* Workspace modal: product-app feel */
.nv-workspace-overlay {
  background: rgba(1,15,14,.58);
  backdrop-filter: blur(10px);
  padding: 16px;
}
.nv-workspace-modal {
  width: min(1500px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 22px;
  background: linear-gradient(180deg, #F6FAF8 0%, #EEF5F2 100%);
  box-shadow: 0 36px 120px rgba(0,0,0,.34);
}
.nv-workspace-content,
.nv-workspace-pro { padding: 18px 22px 22px; }
.nv-workspace-close {
  top: 12px;
  margin: 12px 12px 0 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #071B19;
  font-size: 22px;
}

/* Compact header instead of giant hero */
.nv-workspace-head,
.nv-workspace-head-pro {
  min-height: 112px;
  padding: 22px 26px;
  border-radius: 20px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(16,191,164,.28), transparent 32%),
    linear-gradient(135deg, #071817 0%, #05352F 55%, #0A5F53 100%);
  box-shadow: 0 16px 46px rgba(4,44,39,.18);
}
.nv-workspace-head h2,
.nv-workspace-head-pro h2 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.055em;
  margin: 5px 0 5px;
}
.nv-workspace-head p { font-size: 13px; }
.nv-workspace-head .nv-eyebrow { font-size: 10px; }

/* Summary becomes a slim info strip */
.nv-workspace-summary,
.nv-workspace-summary-pro {
  margin: 10px 0 12px;
  padding: 0;
  gap: 10px;
}
.nv-workspace-summary div,
.nv-workspace-summary-pro div {
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(4,44,39,.055);
}
.nv-workspace-summary small { font-size: 11px; }
.nv-workspace-summary strong { font-size: 13px; }

/* Tabs: thin and modern */
.nv-workspace-tabs,
.nv-workspace-tabs-pro {
  margin: 10px 0 14px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.nv-workspace-tabs a,
.nv-workspace-tabs-pro a {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 12px;
}

/* Workspace grid: dense, app-like */
.nv-workspace-grid,
.nv-workspace-grid-pro {
  grid-template-columns: minmax(0, 1.55fr) 390px;
  gap: 14px;
}
.nv-workspace-panel,
.nv-workspace-panel-pro {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 10px 30px rgba(4,44,39,.055);
}
.nv-panel-head { margin-bottom: 12px; }
.nv-panel-head h3 { font-size: 18px; }
.nv-panel-head small { font-size: 12px; }

/* Timeline: not huge cards, clean feed */
.nv-timeline-pro { padding-left: 0; gap: 8px; }
.nv-timeline-pro::before { display: none; }
.nv-timeline-card,
.nv-timeline-item {
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 15px;
  box-shadow: none;
  background: #fff;
  border: 1px solid rgba(7,79,69,.08);
}
.nv-timeline-card:hover { box-shadow: 0 10px 24px rgba(4,44,39,.06); }
.nv-timeline-icon,
.nv-task-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(6,72,63,.15);
}
.nv-timeline-icon svg,
.nv-task-icon svg { width: 18px; height: 18px; }
.nv-timeline-body header { margin-bottom: 4px; align-items: center; }
.nv-timeline-body header strong { font-size: 13px; }
.nv-timeline-body header span { font-size: 11px; }
.nv-timeline-body header em {
  padding: 3px 7px;
  font-size: 10px;
  margin-top: 3px;
  background: rgba(7,79,69,.06);
}
.nv-timeline-body p { font-size: 13px; line-height: 1.45; }

/* Notes/task side panels: tighter and more professional */
.nv-mini-form { padding: 10px; border-radius: 15px; gap: 8px; }
.nv-mini-form input,
.nv-mini-form select,
.nv-mini-form textarea {
  border-radius: 11px;
  padding: 9px 10px;
  font-size: 13px;
}
.nv-mini-form textarea { min-height: 70px; }
.nv-note-tools { min-height: 34px; }
.nv-note-color { width: 18px; height: 18px; }
.nv-mic-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 15px;
}
.nv-note-stack { gap: 8px; }
.nv-note-card {
  padding: 11px 12px 11px 14px;
  border-radius: 14px;
  box-shadow: none;
}
.nv-note-card header { margin-bottom: 4px; }
.nv-note-card header strong { font-size: 12px; }
.nv-note-card header span { font-size: 11px; }
.nv-note-card p { font-size: 13px; line-height: 1.45; }
.nv-task-list-pro { gap: 12px; }
.nv-task-card {
  grid-template-columns: 34px 1fr;
  border-radius: 15px;
  padding: 11px;
  box-shadow: none;
}
.nv-task-main strong { font-size: 13px; }
.nv-task-main small { font-size: 11px; }
.nv-task-main p { font-size: 12px; margin-top: 5px; }
.nv-task-done-form {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
}
.nv-task-done-form input {
  min-height: 36px;
  border-radius: 11px;
  font-size: 12px;
}
.nv-task-done-form .nv-btn { height: 36px; }

/* Sidebar slightly cleaner */
.nv-sidebar {
  background: linear-gradient(180deg, #071B19, #051311);
  color: rgba(255,255,255,.78);
}
.nv-brand {
  background: #fff;
  border-radius: 18px;
}
.nv-side-link { color: rgba(255,255,255,.78); }
.nv-side-link:hover,
.nv-side-link.is-active {
  color: #fff;
  background: rgba(16,191,164,.14);
}
.nv-user-chip {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.nv-user-chip small { color: rgba(255,255,255,.68); }

/* Responsive */
@media (max-width: 1180px) {
  .nv-workspace-grid,
  .nv-workspace-grid-pro { grid-template-columns: 1fr; }
  .nv-workspace-summary,
  .nv-workspace-summary-pro { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .nv-workspace-overlay { padding: 6px; }
  .nv-workspace-modal { width: calc(100vw - 12px); max-height: calc(100vh - 12px); border-radius: 16px; }
  .nv-workspace-content, .nv-workspace-pro { padding: 12px; }
  .nv-workspace-summary, .nv-workspace-summary-pro { grid-template-columns: 1fr; }
  .nv-task-done-form { grid-template-columns: 1fr; }
}


/* =========================================================
   NuvoCall V8C Compact Workbench
   Remove marketing hero from Clients page + collapsed sidebar default.
   ========================================================= */

/* Remove the big Clients hero from the working page */
.nv-clients-hero {
  display: none !important;
}

/* Compact toolbar becomes the main header for pipeline page */
.nv-pipeline-toolbar {
  margin-top: 0;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
}
.nv-pipeline-toolbar .nv-pipeline-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nv-pipeline-toolbar .nv-btn {
  height: 42px;
  border-radius: 12px;
}

/* Sidebar collapsed by default: icon rail */
:root {
  --nv-sidebar-w-expanded: 252px;
  --nv-sidebar-w-collapsed: 76px;
  --nv-sidebar-w: var(--nv-sidebar-w-collapsed);
}
.nv-app-shell {
  grid-template-columns: var(--nv-sidebar-w) minmax(0, 1fr) !important;
  transition: grid-template-columns .18s ease;
}
.nv-sidebar {
  width: var(--nv-sidebar-w);
  overflow: hidden;
  padding: 16px 10px !important;
  transition: width .18s ease, padding .18s ease;
}
.nv-brand {
  height: 50px !important;
  padding: 0 !important;
  border-radius: 16px !important;
}
.nv-brand img {
  max-width: 50px !important;
  max-height: 42px !important;
  object-fit: contain;
  object-position: left center;
}
.nv-side-link {
  justify-content: center;
  padding: 0 !important;
  min-height: 44px;
}
.nv-side-link strong {
  display: none !important;
}
.nv-side-link::before {
  inset-inline-start: 0 !important;
}
.nv-side-icon {
  width: 44px !important;
  height: 44px !important;
}
.nv-user-chip {
  grid-template-columns: 44px !important;
  justify-content: center;
  padding: 8px !important;
}
.nv-user-chip > div {
  display: none !important;
}
.nv-logout {
  display: none !important;
}

/* Expanded sidebar when user clicks menu */
body.nv-sidebar-expanded {
  --nv-sidebar-w: var(--nv-sidebar-w-expanded);
}
body.nv-sidebar-expanded .nv-sidebar {
  padding: 24px 18px !important;
}
body.nv-sidebar-expanded .nv-brand {
  height: 58px !important;
  padding: 0 10px !important;
}
body.nv-sidebar-expanded .nv-brand img {
  max-width: 214px !important;
  max-height: 54px !important;
}
body.nv-sidebar-expanded .nv-side-link {
  justify-content: flex-start;
  padding: 0 14px !important;
}
body.nv-sidebar-expanded .nv-side-link strong {
  display: block !important;
}
body.nv-sidebar-expanded .nv-user-chip {
  grid-template-columns: 44px 1fr !important;
  justify-content: initial;
  padding: 12px !important;
}
body.nv-sidebar-expanded .nv-user-chip > div {
  display: block !important;
}
body.nv-sidebar-expanded .nv-logout {
  display: block !important;
}

/* The menu toggle is useful on desktop now */
.nv-mobile-toggle {
  display: inline-flex !important;
}

/* Rebalance board height after hero removal */
.nv-kanban {
  min-height: calc(100vh - 205px) !important;
}
.nv-kanban-column {
  max-height: calc(100vh - 205px) !important;
}
.nv-kanban-dropzone {
  min-height: calc(100vh - 282px) !important;
}

/* More desktop density */
@media (min-width: 1121px) {
  .nv-main {
    padding-left: 22px;
    padding-right: 22px;
  }
}


/* =========================================================
   NuvoCall V8D Sidebar Hover
   Desktop: no click button. Sidebar opens on mouse hover.
   Mobile/tablet keeps the menu button.
   ========================================================= */

/* Hide the expand/collapse button on desktop */
@media (min-width: 1121px) {
  .nv-mobile-toggle {
    display: none !important;
  }

  /* Expand grid when sidebar is hovered. Chrome/Edge support :has(). */
  .nv-app-shell:has(.nv-sidebar:hover) {
    grid-template-columns: var(--nv-sidebar-w-expanded) minmax(0, 1fr) !important;
  }

  .nv-sidebar:hover {
    width: var(--nv-sidebar-w-expanded);
    padding: 24px 18px !important;
    box-shadow: 18px 0 44px rgba(0,0,0,.18);
  }

  .nv-sidebar:hover .nv-brand {
    height: 58px !important;
    padding: 0 10px !important;
  }

  .nv-sidebar:hover .nv-brand img {
    max-width: 214px !important;
    max-height: 54px !important;
  }

  .nv-sidebar:hover .nv-side-link {
    justify-content: flex-start;
    padding: 0 14px !important;
  }

  .nv-sidebar:hover .nv-side-link strong {
    display: block !important;
  }

  .nv-sidebar:hover .nv-user-chip {
    grid-template-columns: 44px 1fr !important;
    justify-content: initial;
    padding: 12px !important;
  }

  .nv-sidebar:hover .nv-user-chip > div {
    display: block !important;
  }

  .nv-sidebar:hover .nv-logout {
    display: block !important;
  }
}

/* Keep mobile menu usable */
@media (max-width: 1120px) {
  .nv-mobile-toggle {
    display: inline-flex !important;
  }
}


/* =========================================================
   NuvoCall V8M Clean Stage Text
   New isolated classes: no old circles, no colored label background.
   ========================================================= */
.nv-kanban-head-clean {
  display: block;
  width: 100%;
  padding: 8px 10px 5px;
  background: transparent;
  border: 0;
}
.nv-stage-clean {
  --stage-color: var(--nv-emerald-700);
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
.nv-stage-clean::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0;
  background: var(--stage-color);
}
.nv-stage-clean-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 16px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: #071311;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}
.nv-stage-clean-label {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
  color: #172328;
  background: transparent !important;
  border: 0 !important;
  font-size: 12px;
  font-weight: 950;
  line-height: 16px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nv-kanban-dropzone {
  padding-top: 6px !important;
}

/* =========================================================
   NuvoCall V8O Collapsed Sidebar Logo
   Collapsed sidebar shows N icon, expanded/hover sidebar shows full logo.
   ========================================================= */
.nv-brand {
  overflow: hidden;
}
.nv-logo-icon {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
}
.nv-logo-full {
  display: none !important;
}
body.nv-sidebar-expanded .nv-logo-icon,
.nv-sidebar:hover .nv-logo-icon {
  display: none !important;
}
body.nv-sidebar-expanded .nv-logo-full,
.nv-sidebar:hover .nv-logo-full {
  display: block !important;
  max-width: 214px !important;
  max-height: 54px !important;
  object-fit: contain !important;
}
.nv-sidebar:not(:hover) .nv-brand,
body:not(.nv-sidebar-expanded) .nv-brand {
  justify-content: center !important;
}


/* =========================================================
   NuvoCall V8P Clean Header + Sidebar Separator
   Remove top title text and visually separate sidebar/content.
   ========================================================= */

/* Remove "Nuvocall / Operational command center" block from the topbar */
.nv-topbar > div:first-child {
  display: none !important;
}

/* Keep top actions clean and aligned */
.nv-topbar {
  justify-content: flex-end !important;
  align-items: center !important;
  min-height: 48px !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(7,79,69,.10) !important;
}

/* Stronger separation between sidebar/nav and the work area */
.nv-sidebar {
  border-inline-end: 1px solid rgba(16,191,164,.22) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.05), 8px 0 28px rgba(0,0,0,.10) !important;
}
.nv-main {
  border-inline-start: 1px solid rgba(7,79,69,.06) !important;
}

/* When sidebar is collapsed, keep separator subtle but visible */
.nv-app-shell {
  background:
    linear-gradient(90deg, rgba(7,79,69,.12) 0, rgba(7,79,69,.00) 10px),
    transparent;
}

/* =========================================================
   NuvoCall V8Q Workspace Top Modal
   Workspace opens as a top-attached working window. Backdrop click does not close it.
   ========================================================= */
.nv-workspace-overlay {
  padding: 0 18px 18px !important;
  align-items: flex-start !important;
  overflow-y: auto !important;
}
.nv-workspace-modal {
  margin: 0 auto !important;
  width: min(1540px, calc(100vw - 36px)) !important;
  max-height: none !important;
  min-height: min(860px, calc(100vh - 20px)) !important;
  border-radius: 0 0 26px 26px !important;
  border-top: 0 !important;
}
.nv-workspace-close {
  position: sticky !important;
  top: 12px !important;
  float: right !important;
  z-index: 20 !important;
  width: auto !important;
  min-width: 76px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  background: #071B19 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.18) !important;
}
.nv-workspace-content,
.nv-workspace-pro {
  padding-top: 24px !important;
}
@media (max-width: 760px) {
  .nv-workspace-overlay { padding: 0 !important; }
  .nv-workspace-modal {
    width: 100vw !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
  }
}


/* =========================================================
   NuvoCall V8R Workspace Window Header
   Close button lives inside green header. Modal is not closed by backdrop click.
   ========================================================= */
.nv-workspace-window-head {
  display: block !important;
  padding: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(16,191,164,.30), transparent 34%),
    linear-gradient(135deg, #061817 0%, #053E36 55%, #0B6558 100%) !important;
}
.nv-workspace-windowbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 0 22px;
  color: rgba(255,255,255,.86);
  background: rgba(2,18,16,.36);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.nv-workspace-windowbar > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nv-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--nv-mint-500);
  box-shadow: 0 0 0 6px rgba(16,191,164,.12);
}
.nv-workspace-windowbar strong {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nv-workspace-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px 28px;
}
.nv-workspace-window-head h2 {
  margin: 7px 0 6px !important;
}
.nv-workspace-window-head p {
  margin: 0 !important;
  color: rgba(255,255,255,.78) !important;
}

/* Close button now belongs to the green window header */
.nv-workspace-windowbar .nv-workspace-close,
.nv-workspace-loading-frame .nv-workspace-close {
  position: static !important;
  float: none !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 74px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(2,18,16,.72) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}
.nv-workspace-windowbar .nv-workspace-close:hover,
.nv-workspace-loading-frame .nv-workspace-close:hover {
  background: rgba(0,0,0,.88) !important;
}
.nv-workspace-loading-frame {
  min-height: 260px;
  padding: 16px;
  display: grid;
  gap: 30px;
  align-content: start;
}
.nv-workspace-loading-frame .nv-workspace-close {
  justify-self: end;
}
.nv-workspace-content,
.nv-workspace-pro {
  padding-top: 18px !important;
}
@media (max-width: 760px) {
  .nv-workspace-windowbar {
    height: 50px;
    padding: 0 12px 0 14px;
  }
  .nv-workspace-hero-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
}


/* =========================================================
   NuvoCall V8T Workspace Header Full Modal Width
   Based on V8R: keep modal width, make green header span the full modal.
   ========================================================= */

/* Keep the V8R modal width, not fullscreen */
.nv-workspace-overlay {
  padding: 0 18px 18px !important;
}
.nv-workspace-modal {
  width: min(1540px, calc(100vw - 36px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  border-radius: 0 0 26px 26px !important;
}

/* Content keeps padding, but the green header escapes it */
.nv-workspace-content,
.nv-workspace-pro {
  padding: 0 22px 24px !important;
}
.nv-workspace-window-head {
  margin-left: -22px !important;
  margin-right: -22px !important;
  margin-top: 0 !important;
  border-radius: 0 0 24px 24px !important;
}

/* The content below remains padded and clean */
.nv-workspace-summary,
.nv-workspace-summary-pro {
  margin-top: 16px !important;
}

/* =========================================================
   NuvoCall V9 Notifications + Activities
   Correct CRM flow: notes/notifications need attention, activities are done actions.
   ========================================================= */

/* Clean Kanban stage header from final accepted direction */
.nv-kanban-head-clean {
  display: block;
  width: 100%;
  padding: 8px 10px 5px;
  background: transparent;
  border: 0;
}
.nv-stage-clean {
  --stage-color: var(--nv-emerald-700);
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
.nv-stage-clean::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0;
  background: var(--stage-color);
}
.nv-stage-clean-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 16px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: #071311;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}
.nv-stage-clean-label {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
  color: #172328;
  background: transparent !important;
  border: 0 !important;
  font-size: 12px;
  font-weight: 950;
  line-height: 16px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nv-account-card { position: relative; }
.nv-card-alert {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #D92D20;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(217,45,32,.28);
  z-index: 3;
}

.nv-notification-list { display: grid; gap: 10px; }
.nv-notification-item {
  position: relative;
  padding: 13px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(7,79,69,.10);
  box-shadow: 0 10px 24px rgba(4,44,39,.045);
}
.nv-notification-item.is-unread {
  border-color: rgba(217,45,32,.22);
  box-shadow: 0 12px 28px rgba(217,45,32,.07);
}
.nv-notification-item.is-unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 99px 99px 0;
  background: #D92D20;
}
.nv-notification-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.nv-notification-item header strong { font-size: 13px; }
.nv-notification-item header span, .nv-notification-item small { color: var(--nv-muted); font-size: 11px; }
.nv-notification-item p { margin: 0 0 7px; color: #425058; line-height: 1.45; font-size: 13px; }
.nv-notification-item form { margin-top: 10px; }
.nv-activity-composer .nv-mini-row { grid-template-columns: 1fr 1fr; }
.nv-activity-composer input[name="title"] { font-weight: 800; }

@media (max-width: 760px) {
  .nv-activity-composer .nv-mini-row { grid-template-columns: 1fr; }
}

/* =========================================================
   NuvoCall V9A Timeline Post-it Notes
   Notes appear only in timeline, as yellow post-it cards with chosen accent.
   ========================================================= */
.nv-note-flow-hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255,248,196,.68);
  border: 1px solid rgba(240,191,54,.28);
  color: #6B5600;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}
.nv-timeline-card.is-note-postit {
  --note-accent: #F6C343;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,252,214,.98), rgba(255,244,157,.94)) !important;
  border: 1px solid rgba(198,151,18,.20) !important;
  border-left: 7px solid var(--note-accent) !important;
  box-shadow: 0 16px 34px rgba(130,95,12,.12) !important;
}
.nv-timeline-card.is-note-postit::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.74) 0 48%, rgba(230,183,44,.23) 49% 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.nv-timeline-card.is-note-postit .nv-timeline-icon {
  background: linear-gradient(135deg, #F8D65D, #F2B705) !important;
  color: #3C3102 !important;
  box-shadow: 0 10px 22px rgba(198,151,18,.20) !important;
}
.nv-timeline-card.is-note-postit .nv-timeline-body header strong {
  color: #2C2400;
}
.nv-timeline-card.is-note-postit .nv-timeline-body header em {
  background: rgba(97,73,0,.10) !important;
  color: #6B5600 !important;
}
.nv-timeline-card.is-note-postit .nv-timeline-body p {
  color: #3D3305 !important;
  font-weight: 650;
}
.nv-timeline-card.is-note-postit.nv-note-color-default { --note-accent: #F2B705; }
.nv-timeline-card.is-note-postit.nv-note-color-mint { --note-accent: #10BFA4; }
.nv-timeline-card.is-note-postit.nv-note-color-teal { --note-accent: #0E8B78; }
.nv-timeline-card.is-note-postit.nv-note-color-violet { --note-accent: #8360F6; }
.nv-timeline-card.is-note-postit.nv-note-color-amber { --note-accent: #F79009; }
.nv-timeline-card.is-note-postit.nv-note-color-rose { --note-accent: #F04438; }
.nv-timeline-card.is-note-postit.nv-note-color-graphite { --note-accent: #111A1F; }

/* =========================================================
   NuvoCall V9B Phone Composer Placeholder
   Design-only dialer block, not connected yet.
   ========================================================= */
.nv-phone-composer {
  background:
    radial-gradient(circle at 100% 0%, rgba(16,191,164,.14), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,252,250,.92)) !important;
}
.nv-phone-composer-box {
  display: grid;
  gap: 12px;
}
.nv-phone-screen {
  position: relative;
  padding: 12px;
  border-radius: 18px;
  background: #061B18;
  border: 1px solid rgba(16,191,164,.20);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 16px 34px rgba(4,44,39,.10);
}
.nv-phone-screen span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nv-phone-screen input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  border-radius: 13px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .02em;
}
.nv-phone-screen input::placeholder { color: rgba(255,255,255,.35); }
.nv-phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nv-phone-btn {
  height: 44px;
  border: 0;
  border-radius: 14px;
  cursor: default;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
}
.nv-phone-btn-call {
  color: #fff;
  background: linear-gradient(135deg, var(--nv-emerald-800), var(--nv-teal-600));
  box-shadow: 0 14px 28px rgba(7,79,69,.22);
}
.nv-phone-btn-call span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-inline-end: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.nv-phone-btn-log {
  color: var(--nv-emerald-800);
  background: rgba(16,191,164,.12);
  border: 1px solid rgba(7,79,69,.10);
}
@media (max-width: 760px) {
  .nv-phone-actions { grid-template-columns: 1fr; }
}

/* =========================================================
   NuvoCall V10 Email Foundation
   Shared commercial mailbox composer, logged only for now.
   ========================================================= */
.nv-email-composer {
  background:
    radial-gradient(circle at 100% 0%, rgba(131,96,246,.10), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,251,.92)) !important;
}
.nv-email-form label {
  color: var(--nv-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nv-email-form input[readonly] {
  color: var(--nv-emerald-800);
  background: rgba(16,191,164,.08);
  font-weight: 850;
}
.nv-email-form textarea {
  min-height: 108px;
}

/* =========================================================
   NuvoCall V12 Rich Email Composer + Templates
   ========================================================= */
.nv-email-rich-form {
  gap: 10px !important;
}
.nv-wysiwyg-toolbar {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(7,79,69,.10);
  border-radius: 13px 13px 0 0;
  background: rgba(6,72,63,.05);
}
.nv-wysiwyg-toolbar button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 9px;
  background: #fff;
  color: var(--nv-emerald-800);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.nv-wysiwyg-editor {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(7,79,69,.10);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background: #fff;
  color: #243137;
  font-size: 14px;
  line-height: 1.65;
  outline: 0;
}
.nv-wysiwyg-editor:focus {
  border-color: rgba(14,139,120,.38);
  box-shadow: 0 0 0 5px rgba(16,191,164,.10);
}
.nv-wysiwyg-editor:empty::before {
  content: attr(data-placeholder);
  color: #93A2A8;
}
.nv-email-form input[type="file"] {
  padding: 10px;
  background: #fff;
  border: 1px dashed rgba(7,79,69,.24);
  border-radius: 13px;
}

/* V12A: email sending busy state */
.nv-email-rich-form.is-sending {
  position: relative;
  opacity: .62;
  filter: grayscale(.25);
  pointer-events: none;
}
.nv-email-rich-form.is-sending::after {
  content: "Sending email...";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: var(--nv-emerald-800);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .03em;
  backdrop-filter: blur(2px);
}

/* =========================================================
   NuvoCall V14 Email subject list + client notification style
   ========================================================= */
.nv-account-card.has-unread-notification {
  border-color: rgba(217,45,32,.34) !important;
  box-shadow: 0 18px 34px rgba(217,45,32,.10), 0 0 0 1px rgba(217,45,32,.12) !important;
}
.nv-account-card.has-unread-notification::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 99px 99px 0;
  background: #D92D20;
}
.nv-email-timeline-placeholder {
  color: #6b7b82 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  background: rgba(16,191,164,.08);
  border: 1px solid rgba(16,191,164,.12);
  padding: 8px 10px;
  border-radius: 12px;
}
.nv-email-subject-list {
  display: grid;
  gap: 9px;
}
.nv-email-subject-item {
  border: 1px solid rgba(7,79,69,.10);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.nv-email-subject-item.direction-inbound {
  border-left: 4px solid #D92D20;
}
.nv-email-subject-item.direction-outbound {
  border-left: 4px solid var(--nv-teal-600);
}
.nv-email-subject-main {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 10px 11px;
  cursor: pointer;
}
.nv-email-subject-main span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(16,191,164,.10);
  color: var(--nv-emerald-800);
  font-weight: 950;
}
.nv-email-subject-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172328;
  font-size: 12px;
  font-weight: 950;
}
.nv-email-subject-main small {
  color: var(--nv-muted);
  font-size: 10px;
  font-weight: 800;
}
.nv-email-subject-actions {
  display: flex;
  gap: 6px;
  padding: 0 10px 10px 43px;
}
.nv-email-subject-actions button {
  border: 1px solid rgba(7,79,69,.10);
  border-radius: 999px;
  background: rgba(16,191,164,.08);
  color: var(--nv-emerald-800);
  font-size: 11px;
  font-weight: 950;
  padding: 6px 9px;
  cursor: pointer;
}
.nv-email-preview {
  margin-top: 10px;
  padding: 12px;
  border-radius: 15px;
  background: #F8FCFA;
  border: 1px solid rgba(7,79,69,.10);
  color: var(--nv-muted);
  font-size: 12px;
}
.nv-email-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.nv-email-preview-head strong { color: #172328; }
.nv-email-preview-head small { color: var(--nv-muted); }
.nv-email-preview pre {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #243137;
  font-family: inherit;
  line-height: 1.55;
}

/* V14A: email preview actions */
.nv-email-preview-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.nv-email-preview-actions button {
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 999px;
  background: rgba(16,191,164,.10);
  color: var(--nv-emerald-800);
  font-size: 11px;
  font-weight: 950;
  padding: 7px 10px;
  cursor: pointer;
}
.nv-email-preview.is-marked-unread {
  border-color: rgba(217,45,32,.28);
  box-shadow: 0 12px 28px rgba(217,45,32,.08);
}
.nv-email-preview.is-marked-unread::before {
  content: "Marked unread";
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(217,45,32,.10);
  color: #D92D20;
  font-size: 10px;
  font-weight: 950;
}

/* V14B: make email timeline cards clearly clickable */
.nv-timeline-card.is-email-clickable,
.nv-email-subject-main,
.nv-email-subject-actions button,
.nv-email-preview-actions button {
  cursor: pointer !important;
}
.nv-timeline-card.is-email-clickable {
  border-color: rgba(14,139,120,.22) !important;
}
.nv-timeline-card.is-email-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(7,79,69,.10) !important;
  background: rgba(16,191,164,.055) !important;
}
.nv-timeline-card.is-email-clickable .nv-timeline-body header strong::after {
  content: "  · click to open";
  color: var(--nv-teal-600);
  font-size: 11px;
  font-weight: 900;
}

/* V14C: email inline slide inside timeline */
.nv-email-inline-reader {
  display: none;
  margin: 12px 0 0 48px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(7,79,69,.10);
  background: #fff;
  overflow: hidden;
}
.nv-email-inline-reader.is-open {
  display: block;
  animation: nvEmailSlide .18s ease-out;
}
@keyframes nvEmailSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nv-email-slide-loading {
  padding: 18px;
  color: var(--nv-emerald-800);
  font-size: 12px;
  font-weight: 950;
  background: rgba(16,191,164,.08);
}
.nv-email-slide-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(7,79,69,.08);
  background: #F8FCFA;
}
.nv-email-slide-head strong {
  display: block;
  color: #172328;
  font-size: 13px;
  font-weight: 950;
}
.nv-email-slide-head small {
  display: block;
  color: var(--nv-muted);
  font-size: 11px;
  margin-top: 3px;
}
.nv-email-inline-reader pre {
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 15px;
  color: #243137;
  font-family: inherit;
  line-height: 1.6;
}
.nv-email-slide-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(7,79,69,.08);
  background: #FAFDFC;
}
.nv-email-slide-attachments strong {
  width: 100%;
  color: #172328;
  font-size: 11px;
  font-weight: 950;
}
.nv-email-slide-attachments a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16,191,164,.10);
  border: 1px solid rgba(7,79,69,.10);
  color: var(--nv-emerald-800);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
}
.nv-email-inline-reader.is-marked-unread {
  border-color: rgba(217,45,32,.28);
  box-shadow: 0 12px 28px rgba(217,45,32,.08);
}

/* V14D: no email body in notifications, robust timeline click/slide */
.nv-email-notification-hint {
  margin: 7px 0 0 !important;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(16,191,164,.08);
  color: var(--nv-emerald-800) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
.nv-timeline-card.is-email-clickable:not(.has-open-email) .nv-email-inline-reader {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.nv-timeline-card.is-email-clickable.has-open-email .nv-email-inline-reader.is-open {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
}
.nv-timeline-card.is-email-clickable * {
  cursor: pointer;
}
.nv-timeline-card.is-email-clickable .nv-email-inline-reader,
.nv-timeline-card.is-email-clickable .nv-email-inline-reader * {
  cursor: auto;
}
.nv-timeline-card.is-email-clickable .nv-email-preview-actions button,
.nv-timeline-card.is-email-clickable .nv-email-slide-attachments a {
  cursor: pointer !important;
}

/* V14E: email slide layout fix - slide lives inside timeline body */
.nv-timeline-body .nv-email-inline-reader {
  grid-column: auto !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  min-height: 0 !important;
}
.nv-timeline-card.is-email-clickable:not(.has-open-email) .nv-email-inline-reader {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.nv-timeline-card.is-email-clickable.has-open-email .nv-email-inline-reader.is-open {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.nv-email-inline-reader pre {
  min-height: 42px !important;
  max-height: 380px !important;
}

/* V15 - Client workspace tabs refactor */
.nv-workspace-main-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px !important;
}
.nv-workspace-main-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #111A1F;
  font-weight: 900;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.nv-workspace-main-tabs button:hover,
.nv-workspace-main-tabs button.active {
  background: rgba(16,191,164,.12);
  color: #063f38;
  box-shadow: inset 0 0 0 1px rgba(14,139,120,.16);
}
.nv-workspace-tab-panel { display: none; }
.nv-workspace-tab-panel.active { display: block; }
.nv-client-details-panel,
.nv-contacts-panel,
.nv-logs-panel {
  max-width: 1080px;
  margin: 0 auto;
}
.nv-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.nv-form-grid-2 label,
.nv-contact-json-form label {
  display: grid;
  gap: 7px;
  color: #5b6970;
  font-size: 12px;
  font-weight: 900;
}
.nv-form-grid-2 input,
.nv-form-grid-2 select,
.nv-contact-json-textarea {
  width: 100%;
  border: 1px solid rgba(11,101,88,.16);
  background: #fff;
  color: #111A1F;
  border-radius: 16px;
  padding: 12px 13px;
  font-weight: 800;
  outline: none;
}
.nv-form-grid-2 input:focus,
.nv-form-grid-2 select:focus,
.nv-contact-json-textarea:focus {
  border-color: rgba(16,191,164,.55);
  box-shadow: 0 0 0 4px rgba(16,191,164,.12);
}
.nv-form-span-2 { grid-column: 1 / -1; }
.nv-contact-json-textarea {
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.45;
  resize: vertical;
  white-space: pre;
}
.nv-help-text {
  display: block;
  color: #65757b;
  font-size: 12px;
  line-height: 1.5;
  margin-top: -2px;
}
.nv-log-list {
  display: grid;
  gap: 10px;
}
.nv-log-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(11,101,88,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}
.nv-log-row strong {
  display: block;
  color: #111A1F;
  font-weight: 900;
}
.nv-log-row small,
.nv-log-row span {
  color: #64767d;
  font-size: 12px;
  font-weight: 800;
}
.nv-log-row span { white-space: nowrap; }
@media (max-width: 860px) {
  .nv-form-grid-2 { grid-template-columns: 1fr; }
  .nv-form-span-2 { grid-column: auto; }
  .nv-workspace-main-tabs { overflow-x: auto; }
  .nv-log-row { align-items: flex-start; flex-direction: column; }
  .nv-log-row span { white-space: normal; }
}

/* V15A - Visual contacts form + stage/log split */
.nv-contact-form {
  gap: 18px;
}
.nv-contact-list {
  display: grid;
  gap: 16px;
}
.nv-contact-card {
  border: 1px solid rgba(11,101,88,.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,253,251,.9));
  padding: 16px;
  box-shadow: 0 14px 35px rgba(17,26,31,.06);
}
.nv-contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.nv-contact-card-head strong {
  color: #111A1F;
  font-weight: 950;
}
.nv-primary-contact {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 7px !important;
  margin-left: auto;
  color: #0B6558 !important;
}
.nv-primary-contact input {
  width: auto !important;
  box-shadow: none !important;
}
.nv-contact-remove {
  border: 1px solid rgba(217,45,32,.18);
  background: rgba(217,45,32,.08);
  color: #9e1c13;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 900;
  cursor: pointer;
}
.nv-contact-card textarea {
  width: 100%;
  border: 1px solid rgba(11,101,88,.16);
  background: #fff;
  color: #111A1F;
  border-radius: 16px;
  padding: 12px 13px;
  font-weight: 800;
  outline: none;
  resize: vertical;
}
.nv-contact-card textarea:focus {
  border-color: rgba(16,191,164,.55);
  box-shadow: 0 0 0 4px rgba(16,191,164,.12);
}
.nv-timeline-card.type-stage_changed,
.nv-timeline-card.type-client_updated,
.nv-timeline-card.type-contacts_updated {
  display: none;
}
@media (max-width: 860px) {
  .nv-contact-card-head { align-items: flex-start; flex-direction: column; }
  .nv-primary-contact { margin-left: 0; }
}


/* V17 - Email templates admin */
.nv-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.nv-template-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11,101,88,.14);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(17,26,31,.08);
}
.nv-template-card-head,
.nv-template-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nv-template-card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  color: #111A1F;
}
.nv-template-card p {
  min-height: 38px;
  color: #65757b;
  line-height: 1.55;
}
.nv-template-card code {
  display: block;
  padding: 10px 12px;
  margin: 12px 0;
  background: #eff8f5;
  color: #0B6558;
  border-radius: 14px;
  font-weight: 900;
}
.nv-template-actions form { margin: 0; }
.nv-email-template-form { display: grid; gap: 18px; }
.nv-template-builder {
  border: 1px solid rgba(11,101,88,.16);
  background: #f8fcfa;
  border-radius: 26px;
  overflow: hidden;
}
.nv-template-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(11,101,88,.12);
  background: linear-gradient(135deg, rgba(6,24,23,.96), rgba(11,101,88,.95));
}
.nv-template-toolbar button {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 900;
  cursor: pointer;
}
.nv-template-toolbar button:hover { background: rgba(16,191,164,.35); }
.nv-template-editor-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.nv-template-editor-wrap > div { padding: 14px; }
.nv-template-editor-wrap label {
  display: block;
  margin-bottom: 8px;
  color: #5b6970;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.nv-template-visual {
  min-height: 620px;
  background: #eef7f4;
  border: 1px solid rgba(11,101,88,.14);
  border-radius: 18px;
  padding: 18px;
  overflow: auto;
  outline: none;
}
.nv-template-editor-wrap textarea {
  width: 100%;
  min-height: 620px;
  border: 1px solid rgba(11,101,88,.14);
  border-radius: 18px;
  padding: 16px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #172328;
  outline: none;
}
.nv-template-vars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: rgba(16,191,164,.08);
  border: 1px solid rgba(16,191,164,.18);
  border-radius: 20px;
}
.nv-template-vars strong { margin-right: 8px; color: #0B6558; }
.nv-template-vars span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  color: #063f38;
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
}
@media (max-width: 1100px) {
  .nv-template-editor-wrap { grid-template-columns: 1fr; }
  .nv-template-visual, .nv-template-editor-wrap textarea { min-height: 460px; }
}

/* V18C - Email composer as a full workspace tab */
.nv-email-tab-panel .nv-email-composer {
  max-width: 1180px;
  margin: 0 auto;
}
.nv-email-tab-panel .nv-email-rich-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.nv-email-tab-panel .nv-wysiwyg-editor {
  min-height: 520px;
  max-height: 720px;
  overflow: auto;
}
.nv-email-tab-panel .nv-wysiwyg-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
}
@media (max-width: 900px) {
  .nv-email-tab-panel .nv-wysiwyg-editor { min-height: 420px; }
}

/* V19 - Funding requests */
.nv-funding-tab-panel { gap: 16px; }
.nv-workspace-tab-panel.nv-funding-tab-panel.active { display: grid; }
.nv-funding-panel,
.nv-funding-card {
  border: 1px solid rgba(11,101,88,.12);
  background: rgba(255,255,255,.94);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(17,26,31,.06);
}
.nv-funding-list { display: grid; gap: 14px; }
.nv-funding-card { padding: 18px; display: grid; gap: 14px; }
.nv-funding-card header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.nv-funding-card header strong { display:block; font-size:17px; color:#111A1F; }
.nv-funding-card header small { color:#73838a; font-weight:800; }
.nv-funding-status { border-radius:999px; padding:7px 11px; background:#e8f7f3; color:#0B6558; font-weight:950; text-transform:capitalize; }
.nv-funding-amount { font-size:28px; font-weight:950; color:#063f38; }
.nv-funding-meta { display:flex; flex-wrap:wrap; gap:10px; color:#66747b; font-weight:800; }
.nv-copy-row { display:grid; grid-template-columns: minmax(0,1fr) auto; gap:10px; }
.nv-copy-row input { width:100%; border:1px solid rgba(11,101,88,.12); border-radius:14px; padding:10px 12px; background:#f8fcfa; color:#405158; }
.nv-funding-update-form { border:1px dashed rgba(11,101,88,.18); background:#fbfffd; }
.nv-funding-actions { display:flex; flex-wrap:wrap; gap:8px; }
.nv-funding-actions form { margin:0; }
.nv-funding-log { border-top:1px solid rgba(11,101,88,.10); padding-top:12px; display:grid; gap:8px; }
.nv-funding-log > strong { color:#0B6558; }
.nv-funding-log div { padding:10px 12px; border-radius:14px; background:#f6fbf9; }
.nv-funding-log span { color:#7b8b92; font-size:12px; font-weight:800; }
.nv-funding-log p { margin:4px 0 0; color:#283940; font-weight:800; }
.nv-funding-card.status-cancelled .nv-funding-status,
.nv-funding-card.status-refund_requested .nv-funding-status,
.nv-funding-card.status-refunded .nv-funding-status { background:#fff1f0; color:#D92D20; }
.nv-funding-card.status-approved .nv-funding-status,
.nv-funding-card.status-paid_by_card .nv-funding-status { background:#e8fff7; color:#067647; }
@media (max-width: 760px) {
  .nv-copy-row { grid-template-columns: 1fr; }
  .nv-funding-card header { flex-direction:column; }
}

/* V19B - funding receipts */
.nv-funding-receipts {
  border-top:1px solid rgba(11,101,88,.10);
  padding-top:12px;
  display:grid;
  gap:8px;
}
.nv-funding-receipts > strong { color:#0B6558; }
.nv-funding-receipts div { padding:10px 12px; border-radius:14px; background:#fff8e8; border:1px solid rgba(247,181,0,.18); }
.nv-funding-receipts span { color:#9a6b00; font-size:12px; font-weight:800; }
.nv-funding-receipts p { margin:4px 0 0; color:#4f3f10; font-weight:850; }

/* V20 - Ajax Kanban notifications */
.nv-account-card.has-new-notification-pulse {
  animation: nvNotificationPulse 1.6s ease;
}
@keyframes nvNotificationPulse {
  0% { box-shadow: 0 0 0 0 rgba(217,45,32,.42), 0 18px 40px rgba(17,26,31,.08); }
  70% { box-shadow: 0 0 0 12px rgba(217,45,32,0), 0 18px 40px rgba(17,26,31,.08); }
  100% { box-shadow: 0 0 0 0 rgba(217,45,32,0), 0 18px 40px rgba(17,26,31,.08); }
}

/* V21 - Quotes / Devis */
.nv-quotes-tab-panel { gap: 16px; }
.nv-workspace-tab-panel.nv-quotes-tab-panel.active { display: grid; }
.nv-quotes-panel,
.nv-quote-card {
  border: 1px solid rgba(11,101,88,.12);
  background: rgba(255,255,255,.94);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(17,26,31,.06);
}
.nv-quotes-panel { padding: 18px; }
.nv-quotes-list { display: grid; gap: 14px; }
.nv-quote-card { padding: 18px; display: grid; gap: 14px; }
.nv-quote-card header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.nv-quote-card header strong { display:block; font-size:17px; color:#111A1F; }
.nv-quote-card header small { color:#73838a; font-weight:800; }
.nv-quote-form { display:grid; gap:14px; }
.nv-quote-lines { display:grid; gap:10px; margin-top:10px; }
.nv-quote-line {
  display:grid;
  grid-template-columns:minmax(260px,1.7fr) 90px 120px 100px 120px 120px 38px;
  gap:8px;
  align-items:start;
  padding:10px;
  border:1px solid rgba(11,101,88,.12);
  background:#fbfffd;
  border-radius:18px;
}
.nv-quote-line textarea,
.nv-quote-line input {
  width:100%;
  border:1px solid rgba(11,101,88,.14);
  border-radius:13px;
  padding:10px 11px;
  background:#fff;
  color:#172328;
  font:inherit;
  font-weight:750;
  outline:none;
}
.nv-quote-line textarea {
  min-height:52px;
  resize:vertical;
  line-height:1.45;
  font-weight:800;
}
.nv-quote-line input[readonly] { background:#f2fbf8; color:#4a6264; }
.nv-quote-line button[data-nv-remove-quote-line] {
  height:40px;
  border:0;
  border-radius:12px;
  background:#fff1f0;
  color:#D92D20;
  font-weight:950;
  cursor:pointer;
}
.nv-quote-line button[data-nv-remove-quote-line]:hover { background:#ffe4e0; }
.nv-quote-totals {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.nv-quote-totals span {
  display:flex;
  gap:10px;
  align-items:center;
  border:1px solid rgba(11,101,88,.12);
  background:#f6fbf9;
  color:#52656c;
  border-radius:999px;
  padding:10px 14px;
  font-weight:950;
}
.nv-quote-totals span:last-child {
  background:#0B6558;
  color:#fff;
  border-color:#0B6558;
}
.nv-quote-card.status-accepted .nv-funding-status { background:#e8fff7; color:#067647; }
.nv-quote-card.status-cancelled .nv-funding-status,
.nv-quote-card.status-expired .nv-funding-status { background:#fff1f0; color:#D92D20; }
@media (max-width: 1160px) {
  .nv-quote-line { grid-template-columns:1fr 1fr 1fr; }
  .nv-quote-line textarea { grid-column:1 / -1; }
}
@media (max-width: 720px) {
  .nv-quote-line { grid-template-columns:1fr; }
  .nv-quote-totals { justify-content:stretch; }
  .nv-quote-totals span { justify-content:space-between; width:100%; }
}

/* V21A - Quote line headers + accepted quote readonly view */
.nv-quote-line-head,
.nv-quote-readonly-line {
  display:grid;
  grid-template-columns:minmax(260px,1.7fr) 90px 120px 100px 120px 120px 38px;
  gap:8px;
  align-items:center;
}
.nv-quote-line-head {
  margin: 12px 10px 4px;
  color:#65777e;
  font-size:11px;
  font-weight:950;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.nv-quote-readonly {
  display:grid;
  gap:14px;
  border:1px solid rgba(11,101,88,.12);
  background:#fbfffd;
  border-radius:20px;
  padding:14px;
}
.nv-quote-readonly .nv-form-grid-2 > div {
  border:1px solid rgba(11,101,88,.10);
  background:#fff;
  border-radius:16px;
  padding:12px;
}
.nv-quote-readonly small {
  display:block;
  color:#6a7b82;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:5px;
}
.nv-quote-readonly p { margin:0; color:#26373d; font-weight:800; line-height:1.55; }
.nv-quote-readonly-lines { display:grid; gap:8px; }
.nv-quote-readonly-line {
  padding:10px;
  border:1px solid rgba(11,101,88,.10);
  background:#fff;
  border-radius:16px;
}
.nv-quote-readonly-line div { color:#172328; font-weight:850; line-height:1.45; }
.nv-quote-readonly-line strong { color:#22343a; text-align:right; }
@media (max-width: 1160px) {
  .nv-quote-line-head { display:none; }
  .nv-quote-readonly-line { grid-template-columns:1fr 1fr 1fr; }
  .nv-quote-readonly-line div { grid-column:1 / -1; }
}
@media (max-width: 720px) {
  .nv-quote-readonly-line { grid-template-columns:1fr; }
  .nv-quote-readonly-line strong { text-align:left; }
}

/* V22 - Daily wallboard / TV dashboard */
.nv-daily-body {
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(16,191,164,.22), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(131,96,246,.18), transparent 26%),
    linear-gradient(135deg,#061817,#0b2927 48%,#111A1F);
  color:#fff;
  overflow:hidden;
}
.nv-daily-wall { padding:28px; min-height:100vh; display:grid; grid-template-rows:auto auto 1fr; gap:22px; }
.nv-daily-head { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.nv-daily-brand { display:flex; align-items:center; gap:18px; }
.nv-daily-brand img { width:210px; max-height:58px; object-fit:contain; filter:drop-shadow(0 16px 32px rgba(0,0,0,.22)); }
.nv-daily-brand span { display:block; color:#9cebdd; font-size:13px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.nv-daily-brand strong { display:block; font-size:34px; line-height:1.1; }
.nv-daily-clock { text-align:right; }
.nv-daily-clock strong { display:block; font-size:44px; line-height:1; }
.nv-daily-clock span { color:#b9d7d1; font-weight:850; }
.nv-daily-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.nv-daily-kpis article { padding:20px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.08); border-radius:26px; box-shadow:0 24px 70px rgba(0,0,0,.18); backdrop-filter:blur(16px); }
.nv-daily-kpis span { color:#a6dcd3; font-size:12px; font-weight:950; text-transform:uppercase; letter-spacing:.10em; }
.nv-daily-kpis strong { display:block; margin-top:10px; font-size:34px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nv-daily-kpis small { color:#bcd6d1; font-weight:850; }
.nv-daily-grid { display:grid; grid-template-columns:1.4fr .8fr .8fr; grid-template-rows:1fr 1fr; gap:16px; min-height:0; }
.nv-daily-wide { grid-row:span 2; }
.nv-daily-panel { min-height:0; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.08); border-radius:28px; padding:20px; box-shadow:0 24px 70px rgba(0,0,0,.18); backdrop-filter:blur(16px); overflow:hidden; display:flex; flex-direction:column; gap:16px; }
.nv-daily-panel header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.nv-daily-panel h2 { margin:0; font-size:24px; }
.nv-daily-panel header span { color:#9cebdd; font-size:12px; font-weight:950; text-transform:uppercase; letter-spacing:.10em; }
.nv-daily-chart { flex:1; min-height:0; display:grid; grid-template-columns:repeat(24,1fr); gap:7px; align-items:end; padding:12px 4px 0; }
.nv-hour-bar { min-width:0; display:flex; flex-direction:column; align-items:center; gap:7px; height:100%; justify-content:flex-end; }
.nv-hour-bar i { width:100%; min-height:4px; border-radius:999px 999px 6px 6px; background:linear-gradient(180deg,#10BFA4,#8360F6); box-shadow:0 0 24px rgba(16,191,164,.28); transition:height .4s ease; }
.nv-hour-bar span { font-size:10px; color:#bcd6d1; font-weight:850; }
.nv-daily-winners,
.nv-daily-score { overflow:auto; padding-right:4px; display:grid; gap:10px; }
.nv-daily-person { display:grid; grid-template-columns:44px 1fr auto; gap:12px; align-items:center; padding:10px; border-radius:18px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); }
.nv-daily-person img,
.nv-daily-initials { width:44px; height:44px; border-radius:50%; object-fit:cover; background:linear-gradient(135deg,#10BFA4,#8360F6); display:grid; place-items:center; color:#fff; font-weight:950; }
.nv-daily-person strong { display:block; font-size:14px; }
.nv-daily-person small { color:#bcd6d1; font-weight:800; }
.nv-daily-person b { font-size:18px; color:#10BFA4; }
.nv-deal-spotlight { position:fixed; inset:0; display:grid; place-items:center; background:rgba(3,12,12,.45); opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:10000; }
.nv-deal-spotlight.is-open { opacity:1; }
.nv-deal-card { position:relative; width:min(520px,88vw); padding:42px 34px; border-radius:38px; background:linear-gradient(135deg,#fff,#e9fff9); color:#111A1F; text-align:center; box-shadow:0 36px 120px rgba(0,0,0,.36); transform:scale(.92) translateY(20px); transition:transform .35s ease; overflow:hidden; }
.nv-deal-spotlight.is-open .nv-deal-card { transform:scale(1) translateY(0); }
.nv-deal-avatar img,
.nv-deal-avatar .nv-daily-initials { width:148px; height:148px; margin:0 auto 18px; border:6px solid #10BFA4; box-shadow:0 0 0 10px rgba(16,191,164,.14); }
.nv-deal-card span { color:#0B6558; font-size:13px; font-weight:950; text-transform:uppercase; letter-spacing:.18em; }
.nv-deal-card h2 { margin:8px 0; font-size:42px; }
.nv-deal-card p { margin:0; color:#475b62; font-size:18px; font-weight:850; }
.nv-confetti::before,
.nv-confetti::after { content:""; position:absolute; inset:0; background-image:radial-gradient(#10BFA4 0 4px, transparent 5px), radial-gradient(#8360F6 0 3px, transparent 4px), radial-gradient(#f7b500 0 4px, transparent 5px); background-size:80px 80px, 110px 110px, 130px 130px; animation:nvConfetti 1.8s linear infinite; }
.nv-confetti::after { animation-duration:2.4s; opacity:.6; }
@keyframes nvConfetti { from { transform:translateY(-20px) rotate(0deg); } to { transform:translateY(120px) rotate(20deg); } }
@media (max-width:1100px) {
  .nv-daily-body { overflow:auto; }
  .nv-daily-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nv-daily-grid { grid-template-columns:1fr; grid-template-rows:auto; }
  .nv-daily-wide { grid-row:auto; min-height:420px; }
}
@media (max-width:700px) {
  .nv-daily-wall { padding:16px; }
  .nv-daily-head { display:block; }
  .nv-daily-clock { text-align:left; margin-top:16px; }
  .nv-daily-kpis { grid-template-columns:1fr; }
  .nv-daily-brand strong { font-size:26px; }
}

/* V23 - Landing pages foundation */
.nv-landing-grid .nv-template-card { min-height: 260px; }
.nv-landing-copy-row { margin: 12px 0; }
.nv-landing-page-form .nv-template-visual,
.nv-landing-page-form .nv-template-editor-wrap textarea { min-height: 700px; }
.nv-ai-template-box {
  display:grid;
  gap:12px;
  margin:16px 0;
  padding:18px;
  border:1px solid rgba(131,96,246,.20);
  background:linear-gradient(135deg, rgba(131,96,246,.10), rgba(16,191,164,.08));
  border-radius:22px;
  box-shadow:0 18px 44px rgba(17,26,31,.06);
}
.nv-ai-template-box h3 { margin:4px 0 4px; color:#111A1F; }
.nv-ai-template-box p { margin:0; color:#5d6f76; font-weight:800; }
.nv-ai-template-box textarea {
  width:100%;
  min-height:110px;
  border:1px solid rgba(11,101,88,.16);
  border-radius:18px;
  padding:14px;
  resize:vertical;
  outline:none;
  font:inherit;
  line-height:1.55;
  background:#fff;
  color:#172328;
}
.nv-ai-template-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.nv-ai-template-actions small { color:#0B6558; font-weight:900; }
.nv-ai-template-actions small.is-error { color:#D92D20; }
.nv-ai-template-box.is-busy { opacity:.78; pointer-events:none; }
.nv-public-landing-body { margin:0; background:#eef7f4; }
.nv-public-lead-form {
  display:grid;
  gap:12px;
  padding:28px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.96);
  border-radius:28px;
  box-shadow:0 28px 80px rgba(0,0,0,.20);
  color:#172328;
}
.nv-public-lead-form h2 { margin:0; color:#0B6558; font-size:28px; }
.nv-public-lead-form p { margin:0 0 6px; color:#5d6f76; font-weight:800; line-height:1.55; }
.nv-public-lead-form label { display:grid; gap:6px; font-size:12px; color:#5d6f76; font-weight:950; text-transform:uppercase; letter-spacing:.06em; }
.nv-public-lead-form input,
.nv-public-lead-form textarea {
  width:100%;
  box-sizing:border-box;
  border:1px solid #dbeae5;
  border-radius:14px;
  padding:13px 14px;
  font:inherit;
  color:#172328;
  background:#fff;
  outline:none;
  text-transform:none;
  letter-spacing:0;
  font-weight:800;
}
.nv-public-lead-form button {
  border:0;
  border-radius:999px;
  padding:14px 18px;
  background:#0B6558;
  color:#fff;
  font-weight:950;
  cursor:pointer;
}
.nv-public-lead-toast {
  position:fixed;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  z-index:20;
  border-radius:999px;
  padding:12px 18px;
  font-weight:950;
  box-shadow:0 14px 34px rgba(0,0,0,.16);
}
.nv-public-lead-toast.is-success { background:#e8fff7; color:#067647; }
.nv-public-lead-toast.is-error { background:#fff1f0; color:#D92D20; }
@media(max-width:900px){
  .nv-landing-page-form .nv-template-visual,
  .nv-landing-page-form .nv-template-editor-wrap textarea { min-height: 480px; }
}

/* V24 Media Library */
.nv-media-hero{align-items:center}
.nv-media-layout{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:18px;margin:18px 0}
.nv-media-upload{display:grid;gap:13px}
.nv-media-upload label{display:grid;gap:7px;font-weight:800;color:#172328;font-size:13px}
.nv-media-guide{display:flex;flex-direction:column;gap:12px;justify-content:center;background:linear-gradient(135deg,#ffffff,#f0fbf8)}
.nv-media-guide ol{margin:0;padding-left:20px;color:#43515a;line-height:1.8}
.nv-code-line{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;background:#111a1f;color:#d7fff6;border-radius:14px;padding:12px 14px;font-size:12px;overflow:auto}
.nv-media-toolbar{margin:6px 0 16px}
.nv-tab-lite{display:flex;gap:8px;flex-wrap:wrap}
.nv-tab-lite a{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;text-decoration:none;border:1px solid rgba(15,35,45,.12);background:#fff;color:#30424b;font-weight:850;font-size:13px}
.nv-tab-lite a.active{background:#0b6558;color:#fff;border-color:#0b6558;box-shadow:0 12px 28px rgba(11,101,88,.18)}
.nv-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-bottom:28px}
.nv-media-card{background:#fff;border:1px solid rgba(15,35,45,.1);border-radius:22px;overflow:hidden;box-shadow:0 16px 40px rgba(18,35,45,.08);display:flex;flex-direction:column;min-height:100%}
.nv-media-thumb{height:190px;background:linear-gradient(135deg,#0b6558,#10bfa4);display:flex;align-items:center;justify-content:center;overflow:hidden}
.nv-media-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.nv-media-body{padding:14px;display:grid;gap:10px}
.nv-media-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.nv-media-title strong{font-size:14px;color:#13242b;line-height:1.3}
.nv-media-title span{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#0b6558;background:#e9fbf6;border-radius:999px;padding:5px 8px;white-space:nowrap}
.nv-media-url{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;color:#65737c;background:#f6faf9;border-radius:10px;padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.nv-media-meta{display:flex;gap:7px;flex-wrap:wrap;font-size:11px;color:#60707a}
.nv-media-meta span{background:#f5f7f8;border:1px solid rgba(15,35,45,.06);border-radius:999px;padding:5px 8px;font-weight:750}
.nv-media-meta .is-optimized{background:#ecfdf5;color:#067647;border-color:#bbf7d0}
.nv-media-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.nv-media-actions form{margin:0}
.nv-btn-danger{background:#d92d20;color:#fff;border-color:#d92d20}
.nv-btn-danger:hover{filter:brightness(.96)}
@media (max-width:900px){.nv-media-layout{grid-template-columns:1fr}.nv-media-thumb{height:220px}}

/* V24A Premium Media Gallery */
.nv-media-premium-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#f8fffd,#e9fbf6);border:1px solid rgba(11,101,88,.12);box-shadow:0 18px 54px rgba(11,101,88,.08)}
.nv-media-premium-hero h2{margin-bottom:8px}.nv-media-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.nv-media-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.nv-media-stats article{background:#fff;border:1px solid rgba(15,35,45,.09);border-radius:20px;padding:16px 18px;box-shadow:0 14px 36px rgba(18,35,45,.06)}
.nv-media-stats span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.09em;font-weight:900;color:#66767d;margin-bottom:8px}.nv-media-stats strong{font-size:26px;color:#0b302a;line-height:1}
.nv-media-premium-layout{display:grid;grid-template-columns:350px minmax(0,1fr);gap:18px;align-items:start}
.nv-media-upload-panel{position:sticky;top:20px;display:grid;gap:16px;background:linear-gradient(180deg,#fff,#f5fcfa);border-radius:26px;padding:18px}
.nv-media-upload-head{display:flex;gap:12px;align-items:center}.nv-media-upload-head h3{margin:0}.nv-media-upload-head p{margin:4px 0 0;color:#65737c;font-size:13px;line-height:1.4}
.nv-media-upload-icon{width:44px;height:44px;border-radius:16px;background:#0b6558;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:28px;font-weight:900;box-shadow:0 16px 30px rgba(11,101,88,.18)}
.nv-media-upload-panel form{display:grid;gap:12px}.nv-media-upload-panel label:not(.nv-media-dropzone){display:grid;gap:7px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:#52646c}
.nv-media-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;border:1.5px dashed rgba(11,101,88,.32);background:linear-gradient(135deg,#eefbf8,#fff);border-radius:22px;min-height:156px;padding:18px;cursor:pointer;transition:.2s ease;color:#0d3d35}
.nv-media-dropzone:hover,.nv-media-dropzone.is-dragover{border-color:#10bfa4;background:#e7fff8;transform:translateY(-1px)}
.nv-media-dropzone input{display:none}.nv-media-drop-icon{width:54px;height:54px;border-radius:18px;background:#d8fff5;color:#0b6558;display:flex;align-items:center;justify-content:center;font-size:24px}.nv-media-dropzone small{color:#6c7b82;font-size:12px}.nv-media-upload-btn{width:100%;justify-content:center}.nv-media-tip{border-radius:18px;background:#0b302a;color:#dffbf5;padding:14px}.nv-media-tip strong{display:block;margin-bottom:4px}.nv-media-tip p{margin:0;color:#bdebe0;font-size:13px;line-height:1.45}
.nv-media-gallery-panel{min-width:0;background:rgba(255,255,255,.62);border:1px solid rgba(15,35,45,.08);border-radius:28px;padding:16px;box-shadow:0 18px 50px rgba(18,35,45,.06)}
.nv-media-gallery-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:12px}.nv-media-search{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid rgba(15,35,45,.12);border-radius:18px;padding:0 14px;height:48px}.nv-media-search input{border:0;outline:0;background:transparent;width:100%;font-weight:750;color:#172328}.nv-media-sort{max-width:180px;height:48px}
.nv-media-category-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.nv-media-category-pills a{display:inline-flex;align-items:center;padding:8px 13px;border-radius:999px;background:#fff;border:1px solid rgba(15,35,45,.1);text-decoration:none;color:#21363e;font-weight:850;font-size:12px}.nv-media-category-pills a.active{background:#0b6558;border-color:#0b6558;color:#fff;box-shadow:0 12px 28px rgba(11,101,88,.18)}
.nv-media-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}.nv-media-premium-card{background:#fff;border:1px solid rgba(15,35,45,.1);border-radius:24px;overflow:hidden;box-shadow:0 16px 42px rgba(18,35,45,.08);transition:.2s ease;min-width:0}.nv-media-premium-card:hover{transform:translateY(-3px);box-shadow:0 24px 58px rgba(18,35,45,.13)}
.nv-media-image-btn{position:relative;width:100%;height:210px;border:0;padding:0;background:#092e28;display:block;overflow:hidden;cursor:pointer}.nv-media-image-btn img{width:100%;height:100%;object-fit:cover;display:block;transition:.25s ease}.nv-media-premium-card:hover .nv-media-image-btn img{transform:scale(1.04);filter:saturate(1.04)}.nv-media-hover{position:absolute;inset:auto 14px 14px auto;background:rgba(255,255,255,.92);color:#0b302a;font-weight:900;border-radius:999px;padding:8px 12px;box-shadow:0 8px 26px rgba(0,0,0,.14);opacity:0;transform:translateY(6px);transition:.2s}.nv-media-premium-card:hover .nv-media-hover{opacity:1;transform:translateY(0)}
.nv-media-card-body{padding:14px;display:grid;gap:10px}.nv-media-card-title{display:flex;justify-content:space-between;gap:12px}.nv-media-card-title strong{color:#172328;line-height:1.25}.nv-media-card-title span{height:max-content;background:#e8fbf6;color:#0b6558;border-radius:999px;padding:5px 8px;text-transform:uppercase;letter-spacing:.07em;font-size:10px;font-weight:950}.nv-media-card-url{margin:0;background:#f5faf9;border-radius:12px;padding:8px;color:#66767d;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-media-card-meta{display:flex;gap:6px;flex-wrap:wrap}.nv-media-card-meta span{font-size:11px;font-weight:800;color:#5c6d75;background:#f4f6f7;border-radius:999px;padding:5px 8px}.nv-media-card-meta span.ok{background:#ecfdf5;color:#067647}.nv-media-card-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.nv-media-card-actions form{margin:0}.nv-media-empty{grid-column:1/-1;background:#fff;border:1px dashed rgba(11,101,88,.3);border-radius:24px;padding:50px;text-align:center;color:#60727a}.nv-media-empty strong{display:block;color:#0b302a;font-size:22px;margin-bottom:8px}.nv-media-empty p{margin:0}
.nv-media-modal[hidden]{display:none}.nv-media-modal{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:24px}.nv-media-modal-backdrop{position:absolute;inset:0;background:rgba(4,18,22,.58);backdrop-filter:blur(8px)}.nv-media-modal-card{position:relative;z-index:1;width:min(1100px,calc(100vw - 40px));max-height:calc(100vh - 40px);display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);overflow:hidden;border-radius:28px;background:#fff;box-shadow:0 40px 120px rgba(0,0,0,.35)}.nv-media-modal-close{position:absolute;top:14px;right:14px;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:#0b302a;font-size:24px;font-weight:900;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.18);z-index:3}.nv-media-modal-image{background:#092e28;display:flex;align-items:center;justify-content:center;min-height:460px}.nv-media-modal-image img{max-width:100%;max-height:calc(100vh - 80px);object-fit:contain}.nv-media-modal-info{padding:28px;display:flex;flex-direction:column;gap:14px}.nv-media-modal-info h3{font-size:26px;margin:0;color:#111a1f}.nv-media-modal-info p{margin:0;color:#60727a;font-weight:750}.nv-media-modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
@media(max-width:1100px){.nv-media-premium-layout{grid-template-columns:1fr}.nv-media-upload-panel{position:relative;top:auto}.nv-media-stats{grid-template-columns:repeat(2,1fr)}.nv-media-modal-card{grid-template-columns:1fr}.nv-media-modal-image{min-height:320px}.nv-media-modal-info{padding:20px}}@media(max-width:620px){.nv-media-stats{grid-template-columns:1fr}.nv-media-gallery-toolbar{flex-direction:column;align-items:stretch}.nv-media-sort{max-width:none}.nv-media-premium-hero{align-items:flex-start;flex-direction:column}.nv-media-gallery-grid{grid-template-columns:1fr}}
.nv-media-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.nv-media-body{padding:14px;display:grid;gap:10px}
.nv-media-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.nv-media-title strong{font-size:14px;color:#13242b;line-height:1.3}
.nv-media-title span{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#0b6558;background:#e9fbf6;border-radius:999px;padding:5px 8px;white-space:nowrap}
.nv-media-url{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;color:#65737c;background:#f6faf9;border-radius:10px;padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.nv-media-meta{display:flex;gap:7px;flex-wrap:wrap;font-size:11px;color:#60707a}
.nv-media-meta span{background:#f5f7f8;border:1px solid rgba(15,35,45,.06);border-radius:999px;padding:5px 8px;font-weight:750}
.nv-media-meta .is-optimized{background:#ecfdf5;color:#067647;border-color:#bbf7d0}
.nv-media-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.nv-media-actions form{margin:0}
.nv-btn-danger{background:#d92d20;color:#fff;border-color:#d92d20}
.nv-btn-danger:hover{filter:brightness(.96)}
@media (max-width:900px){.nv-media-layout{grid-template-columns:1fr}.nv-media-thumb{height:220px}}

/* V24A Premium Media Gallery */
.nv-media-premium-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#f8fffd,#e9fbf6);border:1px solid rgba(11,101,88,.12);box-shadow:0 18px 54px rgba(11,101,88,.08)}
.nv-media-premium-hero h2{margin-bottom:8px}.nv-media-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.nv-media-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.nv-media-stats article{background:#fff;border:1px solid rgba(15,35,45,.09);border-radius:20px;padding:16px 18px;box-shadow:0 14px 36px rgba(18,35,45,.06)}
.nv-media-stats span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.09em;font-weight:900;color:#66767d;margin-bottom:8px}.nv-media-stats strong{font-size:26px;color:#0b302a;line-height:1}
.nv-media-premium-layout{display:grid;grid-template-columns:350px minmax(0,1fr);gap:18px;align-items:start}
.nv-media-upload-panel{position:sticky;top:20px;display:grid;gap:16px;background:linear-gradient(180deg,#fff,#f5fcfa);border-radius:26px;padding:18px}
.nv-media-upload-head{display:flex;gap:12px;align-items:center}.nv-media-upload-head h3{margin:0}.nv-media-upload-head p{margin:4px 0 0;color:#65737c;font-size:13px;line-height:1.4}
.nv-media-upload-icon{width:44px;height:44px;border-radius:16px;background:#0b6558;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:28px;font-weight:900;box-shadow:0 16px 30px rgba(11,101,88,.18)}
.nv-media-upload-panel form{display:grid;gap:12px}.nv-media-upload-panel label:not(.nv-media-dropzone){display:grid;gap:7px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:#52646c}
.nv-media-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;border:1.5px dashed rgba(11,101,88,.32);background:linear-gradient(135deg,#eefbf8,#fff);border-radius:22px;min-height:156px;padding:18px;cursor:pointer;transition:.2s ease;color:#0d3d35}
.nv-media-dropzone:hover,.nv-media-dropzone.is-dragover{border-color:#10bfa4;background:#e7fff8;transform:translateY(-1px)}
.nv-media-dropzone input{display:none}.nv-media-drop-icon{width:54px;height:54px;border-radius:18px;background:#d8fff5;color:#0b6558;display:flex;align-items:center;justify-content:center;font-size:24px}.nv-media-dropzone small{color:#6c7b82;font-size:12px}.nv-media-upload-btn{width:100%;justify-content:center}.nv-media-tip{border-radius:18px;background:#0b302a;color:#dffbf5;padding:14px}.nv-media-tip strong{display:block;margin-bottom:4px}.nv-media-tip p{margin:0;color:#bdebe0;font-size:13px;line-height:1.45}
.nv-media-gallery-panel{min-width:0;background:rgba(255,255,255,.62);border:1px solid rgba(15,35,45,.08);border-radius:28px;padding:16px;box-shadow:0 18px 50px rgba(18,35,45,.06)}
.nv-media-gallery-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:12px}.nv-media-search{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid rgba(15,35,45,.12);border-radius:18px;padding:0 14px;height:48px}.nv-media-search input{border:0;outline:0;background:transparent;width:100%;font-weight:750;color:#172328}.nv-media-sort{max-width:180px;height:48px}
.nv-media-category-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.nv-media-category-pills a{display:inline-flex;align-items:center;padding:8px 13px;border-radius:999px;background:#fff;border:1px solid rgba(15,35,45,.1);text-decoration:none;color:#21363e;font-weight:850;font-size:12px}.nv-media-category-pills a.active{background:#0b6558;border-color:#0b6558;color:#fff;box-shadow:0 12px 28px rgba(11,101,88,.18)}
.nv-media-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}.nv-media-premium-card{background:#fff;border:1px solid rgba(15,35,45,.1);border-radius:24px;overflow:hidden;box-shadow:0 16px 42px rgba(18,35,45,.08);transition:.2s ease;min-width:0}.nv-media-premium-card:hover{transform:translateY(-3px);box-shadow:0 24px 58px rgba(18,35,45,.13)}
.nv-media-image-btn{position:relative;width:100%;height:210px;border:0;padding:0;background:#092e28;display:block;overflow:hidden;cursor:pointer}.nv-media-image-btn img{width:100%;height:100%;object-fit:cover;display:block;transition:.25s ease}.nv-media-premium-card:hover .nv-media-image-btn img{transform:scale(1.04);filter:saturate(1.04)}.nv-media-hover{position:absolute;inset:auto 14px 14px auto;background:rgba(255,255,255,.92);color:#0b302a;font-weight:900;border-radius:999px;padding:8px 12px;box-shadow:0 8px 26px rgba(0,0,0,.14);opacity:0;transform:translateY(6px);transition:.2s}.nv-media-premium-card:hover .nv-media-hover{opacity:1;transform:translateY(0)}
.nv-media-card-body{padding:14px;display:grid;gap:10px}.nv-media-card-title{display:flex;justify-content:space-between;gap:12px}.nv-media-card-title strong{color:#172328;line-height:1.25}.nv-media-card-title span{height:max-content;background:#e8fbf6;color:#0b6558;border-radius:999px;padding:5px 8px;text-transform:uppercase;letter-spacing:.07em;font-size:10px;font-weight:950}.nv-media-card-url{margin:0;background:#f5faf9;border-radius:12px;padding:8px;color:#66767d;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-media-card-meta{display:flex;gap:6px;flex-wrap:wrap}.nv-media-card-meta span{font-size:11px;font-weight:800;color:#5c6d75;background:#f4f6f7;border-radius:999px;padding:5px 8px}.nv-media-card-meta span.ok{background:#ecfdf5;color:#067647}.nv-media-card-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.nv-media-card-actions form{margin:0}.nv-media-empty{grid-column:1/-1;background:#fff;border:1px dashed rgba(11,101,88,.3);border-radius:24px;padding:50px;text-align:center;color:#60727a}.nv-media-empty strong{display:block;color:#0b302a;font-size:22px;margin-bottom:8px}.nv-media-empty p{margin:0}
.nv-media-modal[hidden]{display:none}.nv-media-modal{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:24px}.nv-media-modal-backdrop{position:absolute;inset:0;background:rgba(4,18,22,.58);backdrop-filter:blur(8px)}.nv-media-modal-card{position:relative;z-index:1;width:min(1100px,calc(100vw - 40px));max-height:calc(100vh - 40px);display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);overflow:hidden;border-radius:28px;background:#fff;box-shadow:0 40px 120px rgba(0,0,0,.35)}.nv-media-modal-close{position:absolute;top:14px;right:14px;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:#0b302a;font-size:24px;font-weight:900;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.18);z-index:3}.nv-media-modal-image{background:#092e28;display:flex;align-items:center;justify-content:center;min-height:460px}.nv-media-modal-image img{max-width:100%;max-height:calc(100vh - 80px);object-fit:contain}.nv-media-modal-info{padding:28px;display:flex;flex-direction:column;gap:14px}.nv-media-modal-info h3{font-size:26px;margin:0;color:#111a1f}.nv-media-modal-info p{margin:0;color:#60727a;font-weight:750}.nv-media-modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
@media(max-width:1100px){.nv-media-premium-layout{grid-template-columns:1fr}.nv-media-upload-panel{position:relative;top:auto}.nv-media-stats{grid-template-columns:repeat(2,1fr)}.nv-media-modal-card{grid-template-columns:1fr}.nv-media-modal-image{min-height:320px}.nv-media-modal-info{padding:20px}}@media(max-width:620px){.nv-media-stats{grid-template-columns:1fr}.nv-media-gallery-toolbar{flex-direction:column;align-items:stretch}.nv-media-sort{max-width:none}.nv-media-premium-hero{align-items:flex-start;flex-direction:column}.nv-media-gallery-grid{grid-template-columns:1fr}}

/* V24B - AI prompt history in template builders */
.nv-ai-prompt-history{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(11,101,88,.12);
}
.nv-ai-prompt-history strong{
  width:100%;
  color:#0B6558;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.nv-ai-prompt-history span{
  color:#718188;
  font-size:13px;
}
.nv-ai-prompt-history button{
  border:1px solid rgba(11,101,88,.16);
  background:#fff;
  color:#102321;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.nv-ai-prompt-history button:hover{
  background:#e9faf5;
  border-color:rgba(16,191,164,.45);
  color:#06483f;
}

/* V24G - Fix sandbox preview size and prevent admin CSS leaks */
.nv-template-visual[data-nv-safe-preview="1"]{
  padding:0 !important;
  overflow:hidden !important;
  background:#fff !important;
  min-height:760px !important;
  height:760px !important;
  border-radius:18px !important;
  position:relative;
}
.nv-template-visual[data-nv-safe-preview="1"] iframe[data-nv-template-preview-frame]{
  display:block !important;
  width:100% !important;
  height:760px !important;
  min-height:760px !important;
  border:0 !important;
  background:#fff !important;
  border-radius:18px !important;
}
.nv-template-editor-wrap > div:first-child{min-width:0;}
.nv-template-editor-wrap > div:first-child label,
.nv-template-editor-wrap > div:nth-child(2) label{display:block;margin-bottom:10px;}
@media(max-width:900px){
  .nv-template-visual[data-nv-safe-preview="1"],
  .nv-template-visual[data-nv-safe-preview="1"] iframe[data-nv-template-preview-frame]{height:640px!important;min-height:640px!important;}
}

/* V24I - Clean assistant labels + premium generation loader */
.nv-ai-template-box{position:relative;overflow:hidden;}
.nv-ai-template-box .nv-ai-loader{display:none;position:absolute;inset:0;z-index:20;align-items:center;justify-content:center;flex-direction:column;gap:10px;text-align:center;background:rgba(248,255,252,.86);backdrop-filter:blur(10px);border-radius:inherit;color:#0b302a;}
.nv-ai-template-box .nv-ai-loader span{width:46px;height:46px;border-radius:999px;background:conic-gradient(from 0deg,#0b6558,#10bfa4,#8360f6,#0b6558);animation:nv-ai-spin 1s linear infinite;position:relative;box-shadow:0 16px 38px rgba(11,101,88,.24);}
.nv-ai-template-box .nv-ai-loader span::after{content:"";position:absolute;inset:6px;border-radius:999px;background:#fff;}
.nv-ai-template-box .nv-ai-loader strong{font-size:18px;font-weight:950;letter-spacing:.01em;}
.nv-ai-template-box .nv-ai-loader small{max-width:320px;color:#64757d;font-weight:750;line-height:1.45;}
.nv-ai-template-box.is-busy .nv-ai-loader{display:flex;}
.nv-ai-template-box.is-busy textarea,.nv-ai-template-box.is-busy .nv-ai-template-actions,.nv-ai-template-box.is-busy .nv-ai-prompt-history{filter:blur(1px);opacity:.35;}
@keyframes nv-ai-spin{to{transform:rotate(360deg)}}

/* V24J - Neutral public landing form
   The injected {{formulaire}} must stay brand-neutral so it does not conflict
   with a client's landing page colors or industry identity. */
.nv-public-landing-body {
  background:#ffffff !important;
}

.nv-public-lead-form {
  display:grid;
  gap:13px;
  padding:28px !important;
  border:1px solid rgba(17,24,39,.10) !important;
  background:rgba(255,255,255,.98) !important;
  border-radius:26px !important;
  box-shadow:0 24px 70px rgba(17,24,39,.11) !important;
  color:#111827 !important;
}

.nv-public-lead-form h2 {
  margin:0 !important;
  color:#111827 !important;
  font-size:28px;
  letter-spacing:-.03em;
}

.nv-public-lead-form p {
  margin:0 0 6px !important;
  color:#64748b !important;
  font-weight:800;
  line-height:1.55;
}

.nv-public-lead-form label {
  display:grid;
  gap:7px;
  font-size:12px;
  color:#64748b !important;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.nv-public-lead-form input,
.nv-public-lead-form textarea {
  width:100%;
  box-sizing:border-box;
  border:1px solid #e5e7eb !important;
  border-radius:15px !important;
  padding:13px 14px;
  font:inherit;
  color:#111827 !important;
  background:#ffffff !important;
  outline:none;
  text-transform:none;
  letter-spacing:0;
  font-weight:800;
  box-shadow:0 1px 0 rgba(17,24,39,.02) !important;
}

.nv-public-lead-form input::placeholder,
.nv-public-lead-form textarea::placeholder {
  color:#9ca3af !important;
}

.nv-public-lead-form input:focus,
.nv-public-lead-form textarea:focus {
  border-color:#111827 !important;
  box-shadow:0 0 0 4px rgba(17,24,39,.07) !important;
}

.nv-public-lead-form button {
  border:0;
  border-radius:999px;
  padding:14px 18px;
  background:#111827 !important;
  color:#ffffff !important;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(17,24,39,.18) !important;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.nv-public-lead-form button:hover {
  background:#374151 !important;
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(17,24,39,.22) !important;
}

.nv-public-lead-form button:active {
  transform:translateY(0);
}

/* V24K - Media Library loader to prevent double clicks during upload/delete */
[data-nv-media-upload-form] {
  position:relative;
}

[data-nv-media-upload-form].is-uploading {
  pointer-events:none;
}

[data-nv-media-upload-form].is-uploading::before {
  content:"";
  position:absolute;
  inset:-10px;
  z-index:8;
  border-radius:26px;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(5px);
  box-shadow:inset 0 0 0 1px rgba(11,101,88,.10);
}

[data-nv-media-upload-form].is-uploading::after {
  content:"Uploading and optimizing your image...";
  position:absolute;
  left:50%;
  top:50%;
  z-index:9;
  transform:translate(-50%,-50%);
  min-width:240px;
  padding:16px 20px 16px 52px;
  border-radius:999px;
  background:#ffffff;
  color:#0b302a;
  font-weight:950;
  box-shadow:0 18px 55px rgba(17,24,39,.16);
  border:1px solid rgba(17,24,39,.08);
}

.nv-media-upload-btn.is-busy,
.nv-media-card-actions button.is-busy {
  opacity:.72;
  cursor:wait !important;
}

[data-nv-media-upload-form].is-uploading .nv-media-upload-btn::before {
  content:"";
  display:inline-block;
  width:14px;
  height:14px;
  margin-right:8px;
  vertical-align:-2px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.55);
  border-top-color:#ffffff;
  animation:nv-media-spin .8s linear infinite;
}

@keyframes nv-media-spin { to { transform:rotate(360deg); } }

/* V24L - Public landing AJAX feedback and neutral loader */
.nv-public-lead-feedback {
  display:block;
  border-radius:16px;
  padding:12px 14px;
  font-weight:850;
  font-size:14px;
  line-height:1.45;
  border:1px solid transparent;
  box-shadow:0 10px 28px rgba(17,24,39,.06);
}

.nv-public-lead-feedback[hidden] {
  display:none !important;
}

.nv-public-lead-success,
.nv-public-lead-feedback.is-success {
  color:#166534;
  background:#f0fdf4;
  border-color:#bbf7d0;
}

.nv-public-lead-error,
.nv-public-lead-feedback.is-error {
  color:#991b1b;
  background:#fef2f2;
  border-color:#fecaca;
}

.nv-public-lead-form.is-submitting {
  position:relative;
  pointer-events:none;
}

.nv-public-lead-form.is-submitting::before {
  content:"";
  position:absolute;
  inset:-8px;
  z-index:8;
  border-radius:inherit;
  background:rgba(255,255,255,.68);
  backdrop-filter:blur(3px);
}

.nv-public-lead-form.is-submitting::after {
  content:"Sending your request...";
  position:absolute;
  left:50%;
  top:50%;
  z-index:9;
  transform:translate(-50%,-50%);
  min-width:210px;
  padding:14px 18px 14px 46px;
  border-radius:999px;
  background:#ffffff;
  color:#111827;
  font-weight:950;
  box-shadow:0 18px 45px rgba(17,24,39,.16);
  border:1px solid rgba(17,24,39,.08);
}

.nv-public-lead-form.is-submitting button[type="submit"]::before {
  content:"";
  display:inline-block;
  width:14px;
  height:14px;
  margin-right:8px;
  vertical-align:-2px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.55);
  border-top-color:#ffffff;
  animation:nv-public-lead-spin .8s linear infinite;
}

@keyframes nv-public-lead-spin { to { transform:rotate(360deg); } }

/* V25 - Sales supervisor structure */
.nv-inline-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.nv-sales-structure-card { overflow:auto; }
.nv-sales-structure-table select.nv-input { min-width:220px; }
.nv-checkline { display:flex !important; align-items:center; gap:10px; padding:13px 14px; border:1px solid rgba(15,35,45,.1); border-radius:16px; background:#fff; font-weight:900; color:#172328; }
.nv-checkline input { width:auto !important; }
.nv-switch-line { display:flex; align-items:center; gap:8px; font-weight:900; color:#172328; }
.nv-switch-line input { width:auto; }

/* V25A - Restore legacy admin view classes used by Users/Roles pages */
.section-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 20px;
  padding:22px 24px;
  border:1px solid rgba(15,35,45,.09);
  border-radius:26px;
  background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,251,250,.92));
  box-shadow:0 18px 54px rgba(18,35,45,.07);
}
.section-head .eyebrow,
.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#0B6558;
  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.section-head h2 {
  margin:6px 0 0;
  color:#101A1E;
  font-family:var(--nv-font-display, inherit);
  font-size:32px;
  line-height:1.05;
  letter-spacing:-.04em;
}
.section-head .muted { margin:8px 0 0; }

.table-card,
.form-card,
.matrix-block {
  background:#ffffff;
  border:1px solid rgba(15,35,45,.10);
  border-radius:24px;
  box-shadow:0 16px 44px rgba(18,35,45,.07);
}
.table-card { overflow:auto; }
.table-card table {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:760px;
}
.table-card th {
  text-align:left;
  padding:15px 18px;
  color:#5d6f76;
  background:#f7fbfa;
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
  border-bottom:1px solid rgba(15,35,45,.08);
}
.table-card td {
  padding:16px 18px;
  border-bottom:1px solid rgba(15,35,45,.07);
  color:#172328;
  vertical-align:middle;
}
.table-card tr:last-child td { border-bottom:0; }
.table-card td strong { display:block; color:#101A1E; font-weight:950; }
.table-card td small { display:block; margin-top:5px; color:#6d7d83; font-weight:800; }

.form-card {
  padding:24px;
  display:grid;
  gap:22px;
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.form-card label,
.matrix-block label {
  display:grid;
  gap:7px;
  color:#415157;
  font-size:13px;
  font-weight:900;
}
.form-card input,
.form-card select,
.form-card textarea,
.matrix-block input,
.matrix-block select,
.matrix-block textarea,
.table-card select.nv-input {
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(15,35,45,.13);
  border-radius:14px;
  background:#fff;
  color:#172328;
  padding:12px 13px;
  font:inherit;
  font-weight:800;
  outline:none;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.table-card select.nv-input:focus {
  border-color:#0B6558;
  box-shadow:0 0 0 4px rgba(16,191,164,.13);
}
.matrix-block {
  padding:18px;
  display:grid;
  gap:14px;
}
.matrix-block h3 { margin:0; color:#101A1E; font-size:18px; }
.check-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:12px;
}
.check-grid label {
  padding:14px;
  border:1px solid rgba(15,35,45,.10);
  border-radius:16px;
  background:#fbfdfd;
}
.check-grid input { width:auto !important; }
.check-grid small { color:#6d7d83; font-weight:700; }

.primary-btn,
.primary-small,
.ghost-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:999px;
  text-decoration:none;
  font-weight:950;
  border:0;
  cursor:pointer;
}
.primary-btn,
.primary-small {
  background:linear-gradient(135deg,#0B6558,#0E8B78);
  color:#ffffff;
  box-shadow:0 14px 34px rgba(11,101,88,.20);
}
.primary-btn { padding:13px 18px; }
.primary-small { padding:10px 14px; font-size:13px; }
.ghost-link {
  padding:10px 14px;
  background:#ffffff;
  color:#172328;
  border:1px solid rgba(15,35,45,.10);
}
.primary-btn:hover,
.primary-small:hover,
.ghost-link:hover { transform:translateY(-1px); }

.muted { color:#6d7d83; font-weight:800; line-height:1.55; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; }
.form-submit { justify-self:end; }

.pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:24px;
  padding:5px 10px;
  border-radius:999px;
  background:#eef3f2;
  color:#415157;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.pill.active { background:#ecfdf5; color:#0B6558; }
.pill.suspended,
.pill.lost { background:#fef2f2; color:#B42318; }
.pill.invited { background:#fff7ed; color:#9a3412; }

@media(max-width:760px){
  .section-head { align-items:flex-start; flex-direction:column; padding:18px; }
  .section-head h2 { font-size:27px; }
  .form-grid { grid-template-columns:1fr; }
  .check-grid { grid-template-columns:1fr; }
}

/* V25B - Scalable sales structure UI */
.nv-sales-structure-workbench{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.nv-sales-supervisor-rail{position:sticky;top:92px;display:grid;gap:10px}.nv-sales-supervisor-card{position:relative;width:100%;text-align:left;border:1px solid rgba(15,35,45,.1);border-radius:18px;background:#fff;padding:14px 16px;box-shadow:0 10px 28px rgba(18,35,45,.06);cursor:pointer;color:#172328}.nv-sales-supervisor-card span{display:block;font-weight:950}.nv-sales-supervisor-card small{display:block;margin-top:4px;color:#6d7d83;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-sales-supervisor-card strong{position:absolute;top:12px;right:12px;min-width:28px;height:28px;border-radius:999px;background:#eef7f4;color:#0B6558;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:950}.nv-sales-supervisor-card.active{border-color:rgba(11,101,88,.38);background:linear-gradient(135deg,#ffffff,#f1fbf8);box-shadow:0 18px 44px rgba(11,101,88,.12)}.nv-sales-rail-title{margin:12px 4px 2px;color:#6d7d83;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.1em}.nv-sales-employee-panel{min-width:0;display:grid;gap:14px}.nv-sales-toolbar{display:flex;gap:12px;align-items:center}.nv-sales-search{flex:1;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid rgba(15,35,45,.1);border-radius:999px;padding:0 14px;box-shadow:0 10px 30px rgba(18,35,45,.05)}.nv-sales-search input{width:100%;border:0;outline:none;padding:13px 0;font:inherit;font-weight:850;color:#172328}.nv-sales-bulkbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid rgba(15,35,45,.1);border-radius:20px;padding:12px;box-shadow:0 12px 32px rgba(18,35,45,.06)}.nv-sales-bulkbar .nv-input{max-width:280px}.nv-sales-select-all{display:flex;align-items:center;gap:8px;font-weight:950;color:#172328}.nv-sales-select-all input,.nv-sales-structure-table input[type=checkbox]{width:16px;height:16px;accent-color:#0B6558}.nv-sales-table-card{position:relative}.nv-sales-table-card table{min-width:980px}.nv-sales-empty{padding:22px;text-align:center;color:#6d7d83;font-weight:900}.nv-sales-structure-table tr{transition:background .16s ease}.nv-sales-structure-table tr:hover td{background:#fbfdfd}@media(max-width:1120px){.nv-sales-structure-workbench{grid-template-columns:1fr}.nv-sales-supervisor-rail{position:relative;top:auto;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.nv-sales-toolbar{flex-direction:column;align-items:stretch}.nv-sales-bulkbar .nv-input{max-width:none}}

/* V26 - Lead Inbox */
.nv-lead-inbox-filters{display:flex;align-items:center;gap:12px;margin-bottom:14px}.nv-lead-inbox-filters .nv-sales-search{flex:1}.nv-lead-inbox-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.nv-lead-inbox-stats article{background:#fff;border:1px solid rgba(15,35,45,.1);border-radius:18px;padding:16px;box-shadow:0 12px 32px rgba(18,35,45,.06)}.nv-lead-inbox-stats span{display:block;color:#6d7d83;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.nv-lead-inbox-stats strong{display:block;margin-top:6px;color:#101A1E;font-size:28px}.nv-lead-inbox-grid{display:grid;gap:14px}.nv-lead-card{background:#fff;border:1px solid rgba(15,35,45,.1);border-radius:24px;padding:18px;box-shadow:0 16px 44px rgba(18,35,45,.07);display:grid;gap:14px}.nv-lead-card-top{display:flex;justify-content:space-between;gap:14px}.nv-lead-card h3{margin:8px 0 4px;color:#101A1E;font-size:24px;letter-spacing:-.03em}.nv-lead-card p{margin:0;color:#6d7d83;font-weight:800}.nv-lead-card-top small{color:#6d7d83;font-weight:900;white-space:nowrap}.nv-lead-contact-line,.nv-lead-meta{display:flex;flex-wrap:wrap;gap:8px}.nv-lead-contact-line span,.nv-lead-meta span{border:1px solid rgba(15,35,45,.08);background:#f8fbfa;border-radius:999px;padding:7px 10px;color:#415157;font-weight:850;font-size:13px}.nv-lead-card blockquote{margin:0;padding:13px 15px;border-left:4px solid #0B6558;background:#f7fbfa;border-radius:14px;color:#172328;font-weight:800;line-height:1.55}.nv-lead-actions{display:grid;gap:10px;padding-top:4px}.nv-lead-actions form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) auto;gap:8px;align-items:center}.nv-lead-actions form:first-child{grid-template-columns:minmax(240px,1fr) auto}.nv-lead-actions form:last-child{grid-template-columns:minmax(240px,1fr) auto}.ghost-link.danger{color:#B42318;border-color:rgba(180,35,24,.22);background:#fff7f7}.nv-lead-converted{padding:12px 14px;border-radius:16px;background:#ecfdf5;color:#166534;font-weight:900}.nv-lead-converted a{color:#0B6558;font-weight:950}.nv-lead-empty{padding:26px;text-align:center}.pill.converted{background:#ecfdf5;color:#166534}.pill.rejected{background:#fef2f2;color:#991b1b}.pill.new{background:#eff6ff;color:#1d4ed8}.pill.assigned_supervisor{background:#fff7ed;color:#9a3412}@media(max-width:900px){.nv-lead-inbox-filters{flex-direction:column;align-items:stretch}.nv-lead-inbox-stats{grid-template-columns:repeat(2,1fr)}.nv-lead-card-top{flex-direction:column}.nv-lead-actions form,.nv-lead-actions form:first-child,.nv-lead-actions form:last-child{grid-template-columns:1fr}}@media(max-width:560px){.nv-lead-inbox-stats{grid-template-columns:1fr}}

/* V26A - Compact Lead Inbox */
.nv-lead-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.nv-lead-tabs a{display:inline-flex;align-items:center;gap:8px;text-decoration:none;border:1px solid rgba(15,35,45,.1);background:#fff;border-radius:999px;padding:9px 12px;color:#415157;font-weight:950;box-shadow:0 8px 22px rgba(18,35,45,.05)}.nv-lead-tabs a.active{background:#0B6558;color:#fff;border-color:#0B6558}.nv-lead-tabs strong{min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(15,35,45,.08);font-size:12px}.nv-lead-tabs a.active strong{background:rgba(255,255,255,.18)}.nv-lead-inbox-stats.compact{grid-template-columns:repeat(4,minmax(0,1fr));}.nv-lead-bulkbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid rgba(15,35,45,.1);border-radius:20px;padding:12px;margin-bottom:14px;box-shadow:0 12px 32px rgba(18,35,45,.06)}.nv-lead-bulkbar label{display:flex;align-items:center;gap:8px;font-weight:950;color:#172328}.nv-lead-bulkbar form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.nv-lead-bulkbar .nv-input{min-width:210px}.nv-lead-compact-table-card{overflow:visible}.nv-lead-compact-table{min-width:1080px}.nv-lead-compact-table th{white-space:nowrap}.nv-lead-compact-table td{vertical-align:top}.nv-lead-compact-table td span{display:block;color:#172328;font-weight:850}.nv-lead-message-clip{max-width:260px;max-height:46px;overflow:hidden;color:#415157;font-weight:800;line-height:1.45}.nv-lead-row-actions{position:relative;min-width:92px}.nv-lead-row-actions details{position:relative}.nv-lead-row-actions summary{list-style:none;cursor:pointer}.nv-lead-row-actions summary::-webkit-details-marker{display:none}.nv-lead-action-popover{position:absolute;right:0;top:38px;z-index:30;width:390px;background:#fff;border:1px solid rgba(15,35,45,.12);border-radius:20px;padding:12px;box-shadow:0 24px 70px rgba(18,35,45,.18);display:grid;gap:10px}.nv-lead-action-popover form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.nv-lead-action-popover form:nth-child(2){grid-template-columns:1fr 1fr auto}.nv-lead-action-popover .nv-input{min-width:0}.nv-lead-compact-table input[type=checkbox],.nv-lead-bulkbar input[type=checkbox]{width:16px;height:16px;accent-color:#0B6558}@media(max-width:1000px){.nv-lead-bulkbar,.nv-lead-bulkbar form{align-items:stretch;flex-direction:column}.nv-lead-bulkbar .nv-input{width:100%}.nv-lead-inbox-stats.compact{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.nv-lead-inbox-stats.compact{grid-template-columns:1fr}.nv-lead-action-popover{right:auto;left:0;width:min(86vw,390px)}}

/* V27 - Supervisor Kanban team scope */
.nv-kanban-filter-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.nv-kanban-filter-form select{min-width:190px}.nv-kanban-team-strip{display:flex;gap:8px;overflow:auto;padding:2px 0 12px;margin-bottom:4px}.nv-kanban-team-strip a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;text-decoration:none;border:1px solid rgba(15,35,45,.1);border-radius:999px;background:#fff;color:#415157;padding:8px 12px;font-weight:950;box-shadow:0 8px 22px rgba(18,35,45,.05)}.nv-kanban-team-strip a.active{background:#0B6558;color:#fff;border-color:#0B6558}.nv-kanban-team-strip strong{min-width:24px;height:24px;border-radius:999px;background:rgba(15,35,45,.08);display:inline-flex;align-items:center;justify-content:center;font-size:12px}.nv-kanban-team-strip a.active strong{background:rgba(255,255,255,.18)}@media(max-width:760px){.nv-kanban-filter-form{width:100%;align-items:stretch}.nv-kanban-filter-form select{width:100%}}

/* V27A - Searchable owner filter with avatar */
.nv-owner-combobox{position:relative;min-width:260px}.nv-owner-combobox-btn{width:100%;height:44px;display:flex;align-items:center;gap:10px;border:1px solid rgba(15,35,45,.12);background:#fff;border-radius:15px;padding:5px 12px 5px 7px;cursor:pointer;color:#172328;box-shadow:0 8px 22px rgba(18,35,45,.05)}.nv-owner-combobox-btn em{margin-left:auto;font-style:normal;color:#6d7d83;font-weight:950}.nv-owner-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;background:linear-gradient(135deg,#eef7f4,#dff6ef);border:1px solid rgba(11,101,88,.14);color:#0B6558;font-weight:950}.nv-owner-avatar img{width:100%;height:100%;object-fit:cover;display:block}.nv-owner-current{display:grid;text-align:left;min-width:0}.nv-owner-current strong{font-size:13px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-owner-current small{font-size:11px;color:#6d7d83;font-weight:850}.nv-owner-combobox-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:360px;max-width:88vw;background:#fff;border:1px solid rgba(15,35,45,.12);border-radius:20px;padding:10px;box-shadow:0 24px 70px rgba(18,35,45,.18);display:grid;gap:8px}.nv-owner-search{width:100%;box-sizing:border-box;border:1px solid rgba(15,35,45,.12);border-radius:14px;padding:11px 12px;font:inherit;font-weight:850;outline:none}.nv-owner-search:focus{border-color:#0B6558;box-shadow:0 0 0 4px rgba(16,191,164,.12)}.nv-owner-option{width:100%;display:flex;align-items:center;gap:10px;border:0;background:#fff;border-radius:14px;padding:8px;cursor:pointer;text-align:left;color:#172328}.nv-owner-option:hover{background:#f4fbf8}.nv-owner-option span:last-child{display:grid;min-width:0}.nv-owner-option strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-owner-option small{font-size:11px;color:#6d7d83;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:760px){.nv-owner-combobox{width:100%}.nv-owner-combobox-panel{left:0;right:auto;width:100%}}

/* V27B - keep owner selector above Kanban and stable while open */
.nv-owner-combobox.is-open { z-index:120; }
.nv-owner-combobox-panel { z-index:999 !important; }
.nv-owner-combobox-panel[hidden] { display:none !important; }

/* V28 - CSV Lead Import Center */
.nv-import-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}.nv-import-upload-card h3,.nv-import-map-card h3{margin:0;color:#101A1E;font-size:22px}.nv-import-upload-card form{display:grid;gap:14px}.nv-import-tip{padding:12px 14px;border-radius:16px;background:#f7fbfa;border:1px solid rgba(15,35,45,.08);color:#415157;font-weight:850;line-height:1.55}.nv-import-history-card table{min-width:840px}.nv-import-map-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}.nv-import-map-card{position:sticky;top:90px}.nv-import-map-card label{display:grid;gap:7px}.nv-import-preview-card{overflow:auto}.nv-import-preview-card table{min-width:960px}.nv-import-preview-card td{max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pill.uploaded{background:#eff6ff;color:#1d4ed8}.pill.imported{background:#ecfdf5;color:#166534}.pill.failed{background:#fef2f2;color:#991b1b}@media(max-width:1100px){.nv-import-layout,.nv-import-map-layout{grid-template-columns:1fr}.nv-import-map-card{position:relative;top:auto}}

/* V28D - Import mapping layout fix */
.nv-import-map-layout{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:18px !important;
  align-items:start !important;
  width:100% !important;
}
.nv-import-map-card{
  position:relative !important;
  top:auto !important;
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
  z-index:1;
}
.nv-import-map-card label,
.nv-import-map-card select{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
.nv-import-preview-card{
  width:100% !important;
  max-width:100% !important;
  overflow:auto !important;
  box-sizing:border-box !important;
  position:relative;
  z-index:0;
}
.nv-import-preview-card table{
  width:max-content;
  min-width:100% !important;
}
.nv-import-preview-card th:first-child,
.nv-import-preview-card td:first-child{
  width:54px;
  min-width:54px;
  text-align:center;
}
.nv-import-preview-card input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:#0B6558;
}

/* V28E - Import sample download buttons */
.nv-import-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.nv-import-head-actions .ghost-link{
  white-space:nowrap;
}
@media(max-width:760px){
  .nv-import-head-actions{justify-content:flex-start;width:100%;}
}

/* V29 - Lost client recycling */
.nv-lost-recycle-card{margin-top:14px;overflow:visible}.nv-lost-recycle-table{min-width:1120px}.nv-lost-recycle-form{display:flex;align-items:center;gap:8px;min-width:360px}.nv-lost-recycle-form .nv-input{min-width:240px}.nv-lost-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:14px}.nv-lead-tabs a[href*="lost_recycle"].active{background:#111A1F;border-color:#111A1F;color:#fff}@media(max-width:900px){.nv-lost-recycle-form{flex-direction:column;align-items:stretch;min-width:260px}.nv-lost-recycle-form .nv-input{min-width:0;width:100%}.nv-lost-pagination{justify-content:flex-start}}

/* V30 - Supervisor performance dashboard */
.nv-supervisor-head{align-items:flex-start;gap:18px}.nv-supervisor-filters{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.nv-supervisor-filters .nv-input{min-width:160px}.nv-supervisor-kpis{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:14px;margin:18px 0 20px}.nv-supervisor-kpi{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid rgba(15,23,42,.08);border-radius:22px;padding:18px;box-shadow:0 18px 45px rgba(15,23,42,.07);position:relative;overflow:hidden}.nv-supervisor-kpi:after{content:"";position:absolute;inset:auto -35px -45px auto;width:100px;height:100px;background:radial-gradient(circle,rgba(16,191,164,.16),transparent 68%);border-radius:50%}.nv-supervisor-kpi span{display:block;color:#64748b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.nv-supervisor-kpi strong{display:block;margin-top:10px;color:#111827;font-size:34px;line-height:1;font-weight:900}.nv-supervisor-kpi small{display:block;margin-top:8px;color:#64748b;font-size:12px}.nv-supervisor-kpi.warn:after{background:radial-gradient(circle,rgba(245,158,11,.18),transparent 68%)}.nv-supervisor-kpi.danger:after{background:radial-gradient(circle,rgba(217,45,32,.14),transparent 68%)}.nv-supervisor-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;margin-bottom:18px}.nv-supervisor-grid.compact{grid-template-columns:1fr 1fr}.nv-panel-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.nv-panel-title-row h3{margin:0;color:#111827;font-size:18px}.nv-panel-title-row p{margin:4px 0 0}.nv-panel-title-row small{white-space:nowrap;color:#94a3b8;font-size:12px}.nv-supervisor-table-wrap{overflow:auto;border-radius:18px}.nv-supervisor-table,.nv-supervisor-list-table{width:100%;border-collapse:separate;border-spacing:0}.nv-supervisor-table th,.nv-supervisor-table td,.nv-supervisor-list-table th,.nv-supervisor-list-table td{padding:12px 13px;border-bottom:1px solid rgba(148,163,184,.16);vertical-align:middle;text-align:left}.nv-supervisor-table th,.nv-supervisor-list-table th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;background:#f8fafc;position:sticky;top:0;z-index:1}.nv-supervisor-table td{font-size:13px;color:#334155}.nv-supervisor-table td small,.nv-supervisor-list-table td small{display:block;margin-top:3px;color:#94a3b8;font-size:11px}.nv-user-line{display:flex;align-items:center;gap:10px;min-width:190px}.nv-user-line img,.nv-user-line span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;object-fit:cover;background:linear-gradient(135deg,#111827,#475569);color:#fff;font-size:12px;font-weight:900;box-shadow:0 9px 22px rgba(15,23,42,.12);flex:0 0 auto}.nv-user-line strong{display:block;color:#111827;font-size:13px}.nv-user-line small{display:block;color:#64748b;font-size:11px}.nv-user-line.small{min-width:0}.nv-user-line.small img,.nv-user-line.small span{width:28px;height:28px;font-size:10px}.nv-soft-badge{display:inline-flex;align-items:center;justify-content:center;min-width:30px;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900;background:#eef2f7;color:#334155}.nv-soft-badge.ok{background:#ecfdf5;color:#047857}.nv-soft-badge.warn{background:#fff7ed;color:#c2410c}.nv-soft-badge.danger{background:#fef2f2;color:#b91c1c}.nv-supervisor-side{display:grid;gap:18px}.nv-supervisor-stage-card h3{margin-top:0}.nv-stage-bars{display:grid;gap:12px}.nv-stage-bar-row div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#475569}.nv-stage-bar-row div span{font-weight:800}.nv-stage-bar-row div strong{color:#111827}.nv-stage-bar-row em{display:block;height:8px;border-radius:999px;background:#eef2f7;overflow:hidden;margin-top:7px}.nv-stage-bar-row em i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#111827,#64748b)}.nv-mini-user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(148,163,184,.16)}.nv-mini-user-row:last-child{border-bottom:0}.nv-mini-user-row b{background:#f8fafc;border:1px solid rgba(148,163,184,.18);border-radius:12px;padding:6px 9px;color:#111827}.nv-supervisor-list-table td strong{display:block;color:#111827}.nv-supervisor-activity-card{margin-top:2px}.nv-supervisor-activity-list{display:grid;gap:10px}.nv-activity-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid rgba(148,163,184,.15);background:#fff;border-radius:16px}.nv-activity-line .pill{white-space:nowrap}.nv-supervisor-team-card{min-width:0}@media(max-width:1280px){.nv-supervisor-kpis{grid-template-columns:repeat(3,minmax(150px,1fr))}.nv-supervisor-grid,.nv-supervisor-grid.compact{grid-template-columns:1fr}}@media(max-width:760px){.nv-supervisor-head{display:block}.nv-supervisor-filters{justify-content:flex-start;margin-top:12px}.nv-supervisor-filters .nv-input,.nv-supervisor-filters .ghost-link{width:100%}.nv-supervisor-kpis{grid-template-columns:1fr 1fr}.nv-supervisor-kpi{padding:15px;border-radius:18px}.nv-supervisor-kpi strong{font-size:28px}.nv-panel-title-row{display:block}.nv-supervisor-table th,.nv-supervisor-table td,.nv-supervisor-list-table th,.nv-supervisor-list-table td{padding:10px}.nv-activity-line{align-items:flex-start;flex-direction:column}}@media(max-width:480px){.nv-supervisor-kpis{grid-template-columns:1fr}}

/* V30A - Supervisor dashboard spacing/cropping fix */
.nv-supervisor-team-card,
.nv-supervisor-grid.compact > .table-card,
.nv-supervisor-activity-card{
    padding:24px !important;
    overflow:hidden;
}
.nv-supervisor-team-card .nv-panel-title-row,
.nv-supervisor-grid.compact > .table-card .nv-panel-title-row,
.nv-supervisor-activity-card .nv-panel-title-row{
    padding-left:0 !important;
    margin-left:0 !important;
}
.nv-supervisor-table-wrap,
.nv-supervisor-list-table,
.nv-supervisor-table{
    margin-left:0 !important;
}
.nv-supervisor-table th:first-child,
.nv-supervisor-table td:first-child,
.nv-supervisor-list-table th:first-child,
.nv-supervisor-list-table td:first-child{
    padding-left:18px !important;
}
.nv-supervisor-grid{
    padding-left:0 !important;
    padding-right:0 !important;
}
@media(max-width:760px){
    .nv-supervisor-team-card,
    .nv-supervisor-grid.compact > .table-card,
    .nv-supervisor-activity-card{padding:18px !important;}
}

/* V31 - AI lead scoring */
.nv-ai-score-action{border-color:rgba(131,96,246,.26)!important;background:linear-gradient(180deg,#fff,#faf8ff)!important;color:#5b3fd1!important}.nv-ai-score-badge{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:30px;border-radius:999px;font-size:13px;font-weight:900;box-shadow:0 10px 22px rgba(15,23,42,.08)}.nv-ai-score-badge.hot{background:#ecfdf5;color:#047857;border:1px solid rgba(16,185,129,.22)}.nv-ai-score-badge.warm{background:#fff7ed;color:#c2410c;border:1px solid rgba(245,158,11,.24)}.nv-ai-score-badge.cold{background:#eff6ff;color:#1d4ed8;border:1px solid rgba(59,130,246,.22)}.nv-ai-score-badge.bad{background:#fef2f2;color:#b91c1c;border:1px solid rgba(239,68,68,.22)}.nv-ai-score-empty{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#f8fafc;border:1px solid rgba(148,163,184,.18);color:#94a3b8;font-size:12px;font-weight:800}.nv-ai-next-action{margin-top:8px;padding:9px 10px;border:1px solid rgba(131,96,246,.14);background:linear-gradient(180deg,#fbfaff,#fff);border-radius:13px;max-width:360px}.nv-ai-next-action strong{display:block;color:#4c1d95;font-size:12px}.nv-ai-next-action small{display:block;margin-top:3px;color:#64748b;font-size:11px;line-height:1.4}.nv-lead-compact-table td>small{display:block;margin-top:4px;color:#64748b;font-size:11px}@media(max-width:1100px){.nv-lead-compact-table th:nth-child(5),.nv-lead-compact-table td:nth-child(5){display:none}}

/* V31A - AI scoring loader + Kanban score badge */
.nv-btn-spinner{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid rgba(100,116,139,.25);border-top-color:currentColor;vertical-align:-2px;margin-right:6px;animation:nv-spin .8s linear infinite}@keyframes nv-spin{to{transform:rotate(360deg)}}form.is-ai-scoring button[aria-busy="true"]{opacity:.82;cursor:wait}.is-ai-scoring-row{position:relative}.is-ai-scoring-row:after{content:"AI scoring...";position:absolute;inset:0;background:rgba(255,255,255,.74);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;color:#4c1d95;font-weight:900;font-size:12px;letter-spacing:.06em;text-transform:uppercase;z-index:5}.is-ai-scoring-bulk{position:relative}.is-ai-scoring-bulk:after{content:"Scoring selected leads...";position:absolute;inset:0;border-radius:18px;background:rgba(255,255,255,.76);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;color:#4c1d95;font-weight:900;z-index:20}.nv-kanban-ai-score{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 8px;margin:8px 0 10px;padding:8px 10px;border-radius:14px;border:1px solid rgba(148,163,184,.16);background:#f8fafc}.nv-kanban-ai-score strong{grid-row:1 / span 2;min-width:38px;height:30px;border-radius:999px;display:grid;place-items:center;background:#fff;color:#111827;font-size:13px;box-shadow:0 8px 18px rgba(15,23,42,.07)}.nv-kanban-ai-score span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:#475569}.nv-kanban-ai-score small{font-size:11px;color:#64748b;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-kanban-ai-score.hot{background:#ecfdf5;border-color:rgba(16,185,129,.20)}.nv-kanban-ai-score.hot strong{color:#047857}.nv-kanban-ai-score.warm{background:#fff7ed;border-color:rgba(245,158,11,.22)}.nv-kanban-ai-score.warm strong{color:#c2410c}.nv-kanban-ai-score.cold{background:#eff6ff;border-color:rgba(59,130,246,.20)}.nv-kanban-ai-score.cold strong{color:#1d4ed8}.nv-kanban-ai-score.bad{background:#fef2f2;border-color:rgba(239,68,68,.20)}.nv-kanban-ai-score.bad strong{color:#b91c1c}

/* V30B - Supervisor dashboard safe spacing on latest AI build */
.nv-supervisor-team-card,
.nv-supervisor-grid.compact > .table-card,
.nv-supervisor-activity-card{padding:24px !important;overflow:hidden}.nv-supervisor-team-card .nv-panel-title-row,.nv-supervisor-grid.compact > .table-card .nv-panel-title-row,.nv-supervisor-activity-card .nv-panel-title-row{padding-left:0!important;margin-left:0!important}.nv-supervisor-table th:first-child,.nv-supervisor-table td:first-child,.nv-supervisor-list-table th:first-child,.nv-supervisor-list-table td:first-child{padding-left:18px!important}

/* V33C - Data Quality Center design alignment + 50/50 duplicate panels */
.nv-data-quality-duplicates-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin-bottom:18px;
    align-items:start;
}
.nv-data-quality-secondary-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:18px;
    margin-bottom:18px;
    align-items:start;
}
.nv-data-quality-card{
    min-width:0;
    padding:24px !important;
    overflow:hidden !important;
}
.nv-data-quality-card .nv-panel-title-row{
    padding-left:0 !important;
    margin-left:0 !important;
    margin-bottom:16px;
}
.nv-data-quality-card .nv-panel-title-row h3,
.nv-data-quality-card .nv-panel-title-row p{
    padding-left:0 !important;
    margin-left:0 !important;
}
.nv-data-quality-card .nv-supervisor-table-wrap{
    width:100%;
    max-width:100%;
    margin-left:0 !important;
    overflow:auto;
    border-radius:18px;
}
.nv-data-quality-card .nv-supervisor-table{
    min-width:760px;
}
.nv-data-quality-group{
    margin-top:14px;
}
.nv-data-quality-group h4{
    margin:0 0 10px;
    padding-left:0 !important;
    color:#111827;
    font-size:14px;
    line-height:1.35;
    font-weight:950;
}
.nv-data-quality-group h4 small{
    color:#64748b;
    font-size:12px;
    font-weight:850;
}
.nv-data-quality-card form{
    display:grid;
    grid-template-columns:minmax(180px,1fr) auto;
    gap:8px;
    align-items:center;
    min-width:300px;
}
@media(max-width:1280px){
    .nv-data-quality-duplicates-grid,
    .nv-data-quality-secondary-grid{grid-template-columns:1fr;}
}
@media(max-width:760px){
    .nv-data-quality-card{padding:18px !important;}
    .nv-data-quality-card form{grid-template-columns:1fr;min-width:240px;}
}

/* V34A - Role-based home dashboard */
.nv-home-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:22px;
    align-items:stretch;
    padding:34px;
    border-radius:30px;
    background:
        radial-gradient(circle at 86% 20%, rgba(16,191,164,.28), transparent 28%),
        linear-gradient(135deg,#071c1d 0%,#063b31 52%,#0b6558 100%);
    color:#fff;
    box-shadow:0 22px 60px rgba(7,28,29,.22);
    overflow:hidden;
    position:relative;
}
.nv-home-hero:after{content:"";position:absolute;inset:auto -90px -120px auto;width:320px;height:320px;border-radius:50%;background:rgba(255,255,255,.06);pointer-events:none}.nv-home-hero-copy{position:relative;z-index:1}.nv-home-hero .nv-eyebrow{color:#39f2d0}.nv-home-hero h2{max-width:760px;margin:8px 0 10px;font-size:40px;line-height:1.05;letter-spacing:-.045em;color:#fff}.nv-home-hero p{max-width:780px;margin:0;color:rgba(255,255,255,.74);font-size:14px;line-height:1.75}.nv-home-scope-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}.nv-home-scope-line span{display:inline-flex;align-items:center;min-height:32px;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.13);color:#dffcf6;font-size:12px;font-weight:900}.nv-home-user-card{position:relative;z-index:1;display:flex;align-items:center;gap:14px;align-self:center;padding:18px;border-radius:24px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.13);backdrop-filter:blur(12px)}.nv-home-user-card img,.nv-home-user-card>span{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;object-fit:cover;background:linear-gradient(135deg,#10bfa4,#0b6558);color:#fff;font-size:26px;font-weight:950;box-shadow:0 14px 34px rgba(0,0,0,.18);flex:0 0 auto}.nv-home-user-card strong{display:block;color:#fff;font-size:16px}.nv-home-user-card small{display:block;margin-top:4px;color:rgba(255,255,255,.68);font-size:12px;word-break:break-word}.nv-home-user-card em{display:inline-flex;margin-top:10px;padding:6px 10px;border-radius:999px;background:#fff;color:#0b6558;font-style:normal;font-size:11px;font-weight:950}.nv-home-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:14px;margin:18px 0}.nv-home-kpi{position:relative;overflow:hidden;padding:18px;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbfa);border:1px solid rgba(15,35,45,.09);box-shadow:0 14px 38px rgba(18,35,45,.07)}.nv-home-kpi:after{content:"";position:absolute;inset:auto -38px -48px auto;width:110px;height:110px;border-radius:50%;background:rgba(16,191,164,.12)}.nv-home-kpi span{display:block;position:relative;z-index:1;color:#64748b;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.nv-home-kpi strong{display:block;position:relative;z-index:1;margin-top:10px;color:#101a1e;font-size:32px;line-height:1;font-weight:950;letter-spacing:-.04em}.nv-home-kpi small{display:block;position:relative;z-index:1;margin-top:8px;color:#64748b;font-size:12px;font-weight:800}.nv-home-kpi.primary:after{background:rgba(16,191,164,.18)}.nv-home-kpi.warn:after{background:rgba(245,158,11,.17)}.nv-home-kpi.danger:after{background:rgba(217,45,32,.14)}.nv-home-kpi.money:after{background:rgba(131,96,246,.15)}.nv-home-shortcuts{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:14px;margin-bottom:18px}.nv-home-shortcut{display:flex;align-items:center;gap:12px;padding:15px;border-radius:20px;background:#fff;border:1px solid rgba(15,35,45,.09);box-shadow:0 14px 34px rgba(18,35,45,.06);text-decoration:none;color:#101a1e;min-width:0;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.nv-home-shortcut:hover{transform:translateY(-2px);box-shadow:0 20px 44px rgba(18,35,45,.10);border-color:rgba(16,191,164,.25)}.nv-home-shortcut>span{width:38px;height:38px;border-radius:15px;display:grid;place-items:center;flex:0 0 auto;background:#ecfdf5;color:#0b6558;font-weight:950}.nv-home-shortcut strong{display:block;font-size:13px;color:#101a1e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-home-shortcut small{display:block;margin-top:3px;color:#64748b;font-size:11px;line-height:1.25}.nv-home-shortcut.is-blue>span{background:#eff6ff;color:#1d4ed8}.nv-home-shortcut.is-purple>span{background:#f5f3ff;color:#6d28d9}.nv-home-shortcut.is-orange>span{background:#fff7ed;color:#c2410c}.nv-home-shortcut.is-dark>span{background:#111827;color:#fff}.nv-home-main-grid{display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:18px;margin-bottom:18px;align-items:start}.nv-home-panel{min-width:0;padding:24px;border-radius:24px;background:#fff;border:1px solid rgba(15,35,45,.09);box-shadow:0 16px 44px rgba(18,35,45,.07);overflow:hidden}.nv-home-panel-wide{min-width:0}.nv-home-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.nv-home-panel-head h3{margin:0;color:#101a1e;font-size:18px;letter-spacing:-.02em}.nv-home-panel-head p{margin:4px 0 0}.nv-home-panel-head a{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:32px;padding:7px 11px;border-radius:999px;background:#ecfdf5;color:#047857;text-decoration:none;font-size:12px;font-weight:950}.nv-home-pipeline-bars{display:grid;gap:14px}.nv-home-bar-row div{display:flex;align-items:center;justify-content:space-between;gap:12px}.nv-home-bar-row span{font-size:13px;color:#334155;font-weight:850}.nv-home-bar-row strong{font-size:13px;color:#101a1e}.nv-home-bar-row em{display:block;height:10px;margin-top:8px;border-radius:999px;background:#eef2f7;overflow:hidden}.nv-home-bar-row em i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0b6558,#10bfa4)}.nv-home-trend{height:220px;display:grid;grid-template-columns:repeat(7,1fr);gap:10px;align-items:end;padding-top:6px}.nv-home-trend div{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}.nv-home-trend em{display:block;width:100%;max-width:34px;min-height:8px;border-radius:999px 999px 8px 8px;background:linear-gradient(180deg,#10bfa4,#0b6558);box-shadow:0 10px 20px rgba(16,191,164,.18)}.nv-home-trend strong{font-size:12px;color:#101a1e}.nv-home-trend span{font-size:11px;color:#64748b;font-weight:850}.nv-home-list{display:grid;gap:10px}.nv-home-list-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid rgba(148,163,184,.16);border-radius:18px;background:#fff;color:#101a1e;text-decoration:none}.nv-home-list-item>span{width:38px;height:38px;border-radius:15px;display:grid;place-items:center;background:#ecfdf5;color:#047857;font-weight:950}.nv-home-list-item.is-important>span,.nv-home-list-item.is-danger>span{background:#fef2f2;color:#b91c1c}.nv-home-list-item strong{display:block;color:#101a1e;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-home-list-item small{display:block;margin-top:3px;color:#64748b;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-home-list-item time{color:#94a3b8;font-size:11px;font-weight:850;white-space:nowrap}.nv-home-team-table{overflow:auto;border-radius:18px}.nv-home-team-table table{width:100%;min-width:680px;border-collapse:separate;border-spacing:0}.nv-home-team-table th,.nv-home-team-table td{padding:12px 14px;border-bottom:1px solid rgba(148,163,184,.16);text-align:left}.nv-home-team-table th{background:#f8fafc;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.nv-home-team-table td{color:#334155;font-size:13px}.nv-home-team-table td strong{color:#101a1e}.nv-home-quality-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.nv-home-quality-grid div{padding:14px;border:1px solid rgba(148,163,184,.16);border-radius:18px;background:#f8fafc}.nv-home-quality-grid strong{display:block;color:#101a1e;font-size:26px;line-height:1;font-weight:950}.nv-home-quality-grid span{display:block;margin-top:8px;color:#334155;font-size:12px;font-weight:950}.nv-home-quality-grid small{display:block;margin-top:4px;color:#64748b;font-size:11px;line-height:1.35}@media(max-width:1360px){.nv-home-kpi-grid,.nv-home-shortcuts{grid-template-columns:repeat(3,minmax(160px,1fr))}.nv-home-main-grid{grid-template-columns:1fr}.nv-home-hero{grid-template-columns:1fr}}@media(max-width:760px){.nv-home-hero{padding:24px;border-radius:24px}.nv-home-hero h2{font-size:30px}.nv-home-user-card{align-items:flex-start}.nv-home-kpi-grid,.nv-home-shortcuts{grid-template-columns:1fr 1fr}.nv-home-panel{padding:18px}.nv-home-panel-head{display:block}.nv-home-panel-head a{margin-top:10px}.nv-home-list-item{grid-template-columns:34px minmax(0,1fr);align-items:start}.nv-home-list-item time{grid-column:2}.nv-home-quality-grid{grid-template-columns:1fr}}@media(max-width:480px){.nv-home-kpi-grid,.nv-home-shortcuts{grid-template-columns:1fr}.nv-home-trend{gap:6px}.nv-home-trend em{max-width:26px}}

/* V35A - NuvoCall Voice Lab / SIP Foundation */
.nv-voice-head{margin-bottom:18px}.nv-voice-kpis{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:14px;margin:18px 0}.nv-voice-kpis article{position:relative;overflow:hidden;padding:18px;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbfa);border:1px solid rgba(15,35,45,.09);box-shadow:0 14px 38px rgba(18,35,45,.07)}.nv-voice-kpis article:after{content:"";position:absolute;right:-38px;bottom:-50px;width:120px;height:120px;border-radius:50%;background:rgba(16,191,164,.13)}.nv-voice-kpis span{position:relative;z-index:1;display:block;color:#64748b;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.nv-voice-kpis strong{position:relative;z-index:1;display:block;margin-top:10px;color:#101a1e;font-size:32px;line-height:1;font-weight:950;letter-spacing:-.04em}.nv-voice-kpis small{position:relative;z-index:1;display:block;margin-top:8px;color:#64748b;font-size:12px;font-weight:800}.nv-voice-note{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:18px 20px;border-radius:22px;background:linear-gradient(135deg,#071c1d,#0b6558);color:#fff;box-shadow:0 16px 42px rgba(7,28,29,.14)}.nv-voice-note strong{display:block;font-size:15px}.nv-voice-note p{margin:5px 0 0;color:rgba(255,255,255,.72);font-size:13px;line-height:1.55}.nv-voice-note span{white-space:nowrap;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.13);font-size:12px;font-weight:950;color:#dffcf6}.nv-voice-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px;align-items:start}.nv-voice-card{min-width:0;padding:24px !important;border-radius:24px !important;overflow:hidden}.nv-voice-warning{padding:24px;border-radius:24px}.nv-voice-warning h3{margin:0 0 8px;color:#101a1e}.nv-voice-provider-list{display:grid;gap:10px;margin-bottom:18px}.nv-voice-provider{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:13px;border:1px solid rgba(148,163,184,.18);border-radius:18px;background:#fff}.nv-voice-provider strong{display:block;color:#101a1e;font-size:14px}.nv-voice-provider small{display:block;margin-top:3px;color:#64748b;font-size:11px;font-weight:800}.nv-voice-provider em{font-style:normal;color:#0b6558;background:#ecfdf5;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:950}.nv-voice-pill,.nv-voice-status{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:11px;font-weight:950;text-transform:capitalize}.nv-voice-pill.active,.nv-voice-status.answered{background:#ecfdf5;color:#047857}.nv-voice-pill.testing,.nv-voice-status.manual_test{background:#eff6ff;color:#1d4ed8}.nv-voice-pill.inactive,.nv-voice-status.failed,.nv-voice-status.rejected,.nv-voice-status.invalid_number{background:#fef2f2;color:#b91c1c}.nv-voice-status.no_answer,.nv-voice-status.busy,.nv-voice-status.cancelled{background:#fff7ed;color:#c2410c}.nv-voice-form{display:grid;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid rgba(148,163,184,.18)}.nv-voice-form h4{margin:0;color:#101a1e;font-size:14px}.nv-voice-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.nv-voice-form label{display:grid;gap:6px;color:#334155;font-size:12px;font-weight:900}.nv-voice-checks{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#334155;font-size:12px;font-weight:900}.nv-voice-checks label{display:flex;align-items:center;gap:7px}.nv-voice-table small{color:#94a3b8;font-weight:850}.nv-voice-table a{color:#047857;font-weight:900;text-decoration:none}.nv-voice-table a:hover{text-decoration:underline}@media(max-width:1320px){.nv-voice-grid{grid-template-columns:1fr}.nv-voice-kpis{grid-template-columns:repeat(3,minmax(150px,1fr))}}@media(max-width:760px){.nv-voice-kpis,.nv-voice-form-grid{grid-template-columns:1fr}.nv-voice-note{display:block}.nv-voice-note span{display:inline-flex;margin-top:12px}.nv-voice-provider{grid-template-columns:1fr}.nv-voice-card{padding:18px !important}}

/* V35B - Quick SIP register test */
.nv-voice-sip-test{margin-bottom:18px}.nv-voice-form-grid-six{grid-template-columns:repeat(4,minmax(0,1fr))}.nv-voice-test-result{margin-top:16px;padding:16px;border-radius:20px;border:1px solid rgba(148,163,184,.18);background:#f8fafc}.nv-voice-test-result.ok{border-color:rgba(16,185,129,.24);background:#ecfdf5}.nv-voice-test-result.bad{border-color:rgba(217,45,32,.22);background:#fef2f2}.nv-voice-test-result strong{display:block;color:#101a1e;font-size:15px}.nv-voice-test-result span{display:block;margin-top:5px;color:#334155;font-size:13px;line-height:1.55}.nv-voice-test-result em{display:inline-flex;margin-top:10px;padding:6px 9px;border-radius:999px;background:#fff;color:#64748b;font-style:normal;font-size:11px;font-weight:950}.nv-voice-test-result details{margin-top:12px}.nv-voice-test-result summary{cursor:pointer;color:#0b6558;font-weight:950;font-size:12px}.nv-voice-test-result pre{max-height:240px;overflow:auto;margin:10px 0 0;padding:12px;border-radius:14px;background:#071c1d;color:#dffcf6;font-size:11px;line-height:1.45;white-space:pre-wrap}@media(max-width:1320px){.nv-voice-form-grid-six{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.nv-voice-form-grid-six{grid-template-columns:1fr}}

/* V35C - keep SIP test first, advanced setup collapsed */
.nv-voice-advanced{margin-top:18px}.nv-voice-advanced>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;cursor:pointer;padding:16px 18px;border-radius:20px;background:#fff;border:1px solid rgba(15,35,45,.09);box-shadow:0 14px 34px rgba(18,35,45,.06);color:#101a1e;font-weight:950}.nv-voice-advanced>summary::-webkit-details-marker{display:none}.nv-voice-advanced>summary:after{content:"+";width:28px;height:28px;display:grid;place-items:center;border-radius:999px;background:#ecfdf5;color:#0b6558;font-size:18px}.nv-voice-advanced[open]>summary{margin-bottom:18px}.nv-voice-advanced[open]>summary:after{content:"−"}.nv-voice-sip-test{border:1px solid rgba(16,191,164,.22) !important;box-shadow:0 18px 48px rgba(16,191,164,.10) !important}

/* V35D - Zadarma outbound callback test */
.nv-voice-api-test{margin-bottom:18px;border:1px solid rgba(59,130,246,.20) !important;box-shadow:0 18px 48px rgba(59,130,246,.08) !important}.nv-voice-api-test .nv-panel-title-row h3:before{content:"↗";display:inline-grid;place-items:center;width:26px;height:26px;margin-right:8px;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-size:14px;vertical-align:middle}

/* V35E - outbound call safety guard */
.nv-voice-danger-note{padding:12px 14px;border-radius:16px;background:#fff7ed;border:1px solid rgba(245,158,11,.25);color:#9a3412;font-size:12px;font-weight:850;line-height:1.5}.nv-voice-danger-note strong{font-weight:950}

/* V36A - NuvoCall Browser WebRTC Dialer Lab */
.nv-webrtc-head{margin-bottom:18px}.nv-webrtc-shell{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:18px;align-items:start}.nv-webrtc-card{padding:24px !important;border-radius:24px !important;min-width:0;overflow:hidden}.nv-webrtc-config{border:1px solid rgba(16,191,164,.18) !important}.nv-webrtc-phone{border:1px solid rgba(59,130,246,.18) !important}.nv-webrtc-log{grid-column:1 / -1}.nv-webrtc-status{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:7px 11px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:12px;font-weight:950}.nv-webrtc-status[data-state="registered"],.nv-webrtc-status[data-state="incall"]{background:#ecfdf5;color:#047857}.nv-webrtc-status[data-state="connecting"],.nv-webrtc-status[data-state="calling"]{background:#eff6ff;color:#1d4ed8}.nv-webrtc-status[data-state="error"]{background:#fef2f2;color:#b91c1c}.nv-webrtc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.nv-webrtc-form-grid label,.nv-webrtc-destination label{display:grid;gap:6px;color:#334155;font-size:12px;font-weight:900}.nv-webrtc-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.nv-webrtc-hint{margin-top:16px;padding:12px 14px;border-radius:16px;background:#f8fafc;border:1px solid rgba(148,163,184,.18);color:#475569;font-size:12px;line-height:1.55}.nv-webrtc-hint strong{color:#101a1e}.nv-webrtc-destination small{display:block;margin-top:7px;color:#64748b;font-size:12px}.nv-webrtc-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.nv-webrtc-keypad button{min-height:46px;border:1px solid rgba(148,163,184,.20);border-radius:16px;background:#fff;color:#101a1e;font-size:20px;font-weight:950;cursor:pointer;box-shadow:0 10px 26px rgba(18,35,45,.05)}.nv-webrtc-keypad button:hover{background:#ecfdf5;border-color:rgba(16,191,164,.26)}.nv-webrtc-log-box{min-height:180px;max-height:300px;overflow:auto;padding:14px;border-radius:18px;background:#071c1d;color:#dffcf6;font-family:Consolas,Monaco,monospace;font-size:12px;line-height:1.55}.nv-webrtc-log-box div{padding:5px 0;border-bottom:1px solid rgba(255,255,255,.05)}.nv-webrtc-log-box .is-success{color:#6ee7b7}.nv-webrtc-log-box .is-error{color:#fecaca}.nv-webrtc-log-box .is-info{color:#bfdbfe}.nv-btn-danger{background:#fef2f2 !important;color:#b91c1c !important;border:1px solid rgba(185,28,28,.18) !important}@media(max-width:1180px){.nv-webrtc-shell{grid-template-columns:1fr}}@media(max-width:760px){.nv-webrtc-form-grid{grid-template-columns:1fr}.nv-webrtc-card{padding:18px !important}}

/* V37A - Production NuvoCall call button and call bar */
.nv-card-footer-actions{display:inline-flex;align-items:center;gap:8px;min-width:0;justify-content:flex-end}.nv-card-footer-actions strong{white-space:nowrap}.nv-card-call-btn{appearance:none;border:0;border-radius:999px;background:#0b6558;color:#fff;font-size:11px;font-weight:950;padding:7px 11px;line-height:1;cursor:pointer;box-shadow:0 10px 20px rgba(11,101,88,.14);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.nv-card-call-btn:hover{background:#064d43;transform:translateY(-1px);box-shadow:0 14px 28px rgba(11,101,88,.20)}.nv-card-call-btn:active{transform:translateY(0)}.nv-live-callbar{position:fixed;right:24px;bottom:24px;z-index:1600;width:min(560px,calc(100vw - 36px));border-radius:26px;background:rgba(7,28,29,.96);color:#fff;box-shadow:0 28px 90px rgba(7,28,29,.34);border:1px solid rgba(255,255,255,.10);backdrop-filter:blur(16px);overflow:hidden;transform:translateY(28px) scale(.98);opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}.nv-live-callbar.is-open{opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}.nv-live-callbar-main{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:18px}.nv-live-callbar-client{min-width:0}.nv-live-callbar-kicker{display:block;margin-bottom:4px;color:#39f2d0;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.11em}.nv-live-callbar-client strong{display:block;color:#fff;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-live-callbar-client small{display:block;margin-top:3px;color:rgba(255,255,255,.68);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-live-callbar-status{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.10);color:#dffcf6;font-size:12px;font-weight:950;white-space:nowrap}.nv-live-callbar-status[data-state="registered"],.nv-live-callbar-status[data-state="incall"]{background:rgba(16,191,164,.18);color:#7cf8df}.nv-live-callbar-status[data-state="connecting"],.nv-live-callbar-status[data-state="calling"]{background:rgba(59,130,246,.20);color:#bfdbfe}.nv-live-callbar-status[data-state="error"]{background:rgba(248,113,113,.18);color:#fecaca}.nv-live-callbar-actions{display:inline-flex;align-items:center;gap:8px}.nv-live-callbar-actions button{appearance:none;border:0;cursor:pointer;font-weight:950}.nv-live-callbar-call{min-height:38px;padding:9px 14px;border-radius:999px;background:#10bfa4;color:#052e2b;box-shadow:0 12px 28px rgba(16,191,164,.24)}.nv-live-callbar-hangup{min-height:38px;padding:9px 14px;border-radius:999px;background:#fef2f2;color:#b91c1c}.nv-live-callbar-close{width:38px;height:38px;border-radius:999px;background:rgba(255,255,255,.10);color:#fff;font-size:20px;line-height:1}.nv-live-callbar-log{max-height:104px;overflow:auto;padding:0 18px 16px;color:rgba(255,255,255,.72);font-family:Consolas,Monaco,monospace;font-size:11px;line-height:1.55}.nv-live-callbar-log div{padding:4px 0;border-top:1px solid rgba(255,255,255,.06)}.nv-live-callbar-log .is-success{color:#7cf8df}.nv-live-callbar-log .is-error{color:#fecaca}.nv-live-callbar-log .is-info{color:#bfdbfe}.nv-workspace-actions .nv-btn-primary[data-nuvocall-start-call]{box-shadow:0 12px 28px rgba(11,101,88,.16)}.nv-phone-btn[disabled]{opacity:.45;cursor:not-allowed;filter:grayscale(.35)}@media(max-width:760px){.nv-live-callbar{right:12px;bottom:12px;width:calc(100vw - 24px);border-radius:22px}.nv-live-callbar-main{grid-template-columns:1fr;gap:10px}.nv-live-callbar-actions{width:100%;display:grid;grid-template-columns:1fr 1fr 38px}.nv-live-callbar-actions button{width:100%}}

/* V37B - Premium voice call bar, timeline call logs and recordings */
.nv-live-callbar{width:min(640px,calc(100vw - 36px));background:linear-gradient(135deg,rgba(7,28,29,.98),rgba(6,59,49,.97) 58%,rgba(11,101,88,.96));border:1px solid rgba(124,248,223,.18);box-shadow:0 30px 100px rgba(7,28,29,.42),inset 0 1px 0 rgba(255,255,255,.08)}.nv-live-callbar:before{content:"";position:absolute;right:-80px;top:-90px;width:210px;height:210px;border-radius:50%;background:rgba(57,242,208,.16);filter:blur(2px);pointer-events:none}.nv-live-callbar-main{position:relative;z-index:1;grid-template-columns:56px minmax(0,1fr) auto auto;padding:18px 18px 14px}.nv-live-callbar-orb{position:relative;width:54px;height:54px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,#10bfa4,#7cf8df);color:#05342f;box-shadow:0 16px 34px rgba(16,191,164,.30);font-size:24px;font-weight:950}.nv-live-callbar-orb i{position:absolute;right:6px;bottom:6px;width:12px;height:12px;border-radius:50%;background:#94a3b8;border:2px solid rgba(7,28,29,.96)}.nv-live-callbar[data-call-state="registered"] .nv-live-callbar-orb i,.nv-live-callbar[data-call-state="incall"] .nv-live-callbar-orb i{background:#22c55e}.nv-live-callbar[data-call-state="calling"] .nv-live-callbar-orb i,.nv-live-callbar[data-call-state="connecting"] .nv-live-callbar-orb i,.nv-live-callbar[data-call-state="saving"] .nv-live-callbar-orb i{background:#60a5fa}.nv-live-callbar[data-call-state="error"] .nv-live-callbar-orb i{background:#f87171}.nv-live-callbar-metrics{display:grid;gap:6px;justify-items:end}.nv-live-callbar-metrics>strong{font-variant-numeric:tabular-nums;color:#fff;font-size:18px;letter-spacing:.02em}.nv-live-callbar-status[data-state="saving"]{background:rgba(59,130,246,.20);color:#bfdbfe}.nv-live-callbar-actions{position:relative;z-index:1}.nv-live-callbar-call{background:linear-gradient(135deg,#10bfa4,#7cf8df);color:#042f2a}.nv-live-callbar-hangup{background:rgba(254,226,226,.96);color:#991b1b}.nv-live-callbar-log{position:relative;z-index:1;margin:0 18px 18px;padding:10px 12px;max-height:96px;border-radius:16px;background:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.07)}.nv-call-timeline-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.nv-call-timeline-meta span{display:inline-flex;align-items:center;min-height:26px;padding:5px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:11px;font-weight:950;text-transform:capitalize}.nv-call-recording-player{margin-top:12px;padding:12px;border-radius:16px;background:#f8fafc;border:1px solid rgba(148,163,184,.18)}.nv-call-recording-player span{display:block;margin-bottom:8px;color:#334155;font-size:12px;font-weight:950}.nv-call-recording-player audio{width:100%;height:38px}.nv-phone-composer .nv-phone-actions{grid-template-columns:1fr}.nv-phone-composer .nv-phone-btn-call{width:100%;justify-content:center}@media(max-width:760px){.nv-live-callbar-main{grid-template-columns:44px 1fr}.nv-live-callbar-orb{width:44px;height:44px;border-radius:16px;font-size:20px}.nv-live-callbar-metrics{justify-items:start}.nv-live-callbar-actions{grid-column:1 / -1}}

/* =========================================================
   NuvoCall V37C Premium Phone Composer polish
   Small UI upgrade for workspace phone composer only.
   ========================================================= */
.nv-phone-composer {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(11,101,88,.10) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(16,191,164,.18), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(131,96,246,.06), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,250,248,.94)) !important;
  box-shadow: 0 20px 48px rgba(7,79,69,.08), inset 0 1px 0 rgba(255,255,255,.72);
}
.nv-phone-composer::after {
  content: '';
  position: absolute;
  right: -34px;
  top: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,191,164,.16), transparent 68%);
  pointer-events: none;
}
.nv-phone-composer .nv-panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}
.nv-phone-composer .nv-panel-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -.03em;
  color: #071c1d;
}
.nv-phone-composer .nv-panel-head small {
  display: block;
  margin-top: 5px;
  color: #5f6f76;
  font-size: 13px;
  line-height: 1.5;
}
.nv-phone-composer-box {
  position: relative;
  z-index: 1;
  gap: 14px;
}
.nv-phone-screen {
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(4,31,28,.99), rgba(5,45,40,.98) 58%, rgba(8,75,65,.95));
  border: 1px solid rgba(124,248,223,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(255,255,255,.02),
    0 20px 44px rgba(4,44,39,.20);
}
.nv-phone-screen span {
  margin-bottom: 10px;
  color: rgba(204,255,246,.68);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
}
.nv-phone-screen input {
  height: 58px;
  border-radius: 17px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .03em;
}
.nv-phone-screen input:focus {
  box-shadow: 0 0 0 4px rgba(16,191,164,.13), inset 0 1px 0 rgba(255,255,255,.05);
}
.nv-phone-actions {
  gap: 12px;
}
.nv-phone-btn {
  height: 48px;
  border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.nv-phone-btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0a6d60, #10bfa4 72%, #38d7be);
  box-shadow: 0 18px 34px rgba(7,79,69,.24);
}
.nv-phone-btn-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(7,79,69,.28);
}
.nv-phone-btn-call span {
  width: 24px;
  height: 24px;
  margin-inline-end: 0;
  background: rgba(255,255,255,.16);
}
.nv-phone-btn-log {
  color: #0b6558;
  background: linear-gradient(135deg, rgba(16,191,164,.12), rgba(16,191,164,.06));
  border: 1px solid rgba(11,101,88,.10);
}

/* =========================================================
   NuvoCall V37D Phone contact combobox
   Premium selector for multiple client contacts while keeping manual typing.
   ========================================================= */
.nv-phone-contact-picker{position:relative;z-index:5}.nv-phone-contact-toggle{width:100%;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;border:1px solid rgba(11,101,88,.10);border-radius:18px;background:linear-gradient(180deg,#fff,#f7fbfa);box-shadow:0 12px 28px rgba(7,79,69,.06);padding:11px 14px;cursor:pointer;color:#101a1e}.nv-phone-contact-toggle:hover{border-color:rgba(16,191,164,.30);box-shadow:0 16px 34px rgba(7,79,69,.09)}.nv-phone-contact-toggle span{grid-column:1 / -1;color:#64748b;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.12em}.nv-phone-contact-toggle strong{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:950;color:#071c1d}.nv-phone-contact-toggle em{justify-self:end;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:normal;color:#0b6558;background:#ecfdf5;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:950}.nv-phone-contact-panel{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:30;padding:10px;border-radius:20px;background:rgba(255,255,255,.98);border:1px solid rgba(15,35,45,.10);box-shadow:0 24px 70px rgba(7,28,29,.18);backdrop-filter:blur(14px);max-height:310px;overflow:auto}.nv-phone-contact-panel input{width:100%;height:42px;border-radius:14px;border:1px solid rgba(148,163,184,.20);outline:0;background:#f8fafc;padding:0 12px;margin-bottom:8px;font-size:12px;font-weight:850;color:#101a1e}.nv-phone-contact-panel input:focus{border-color:rgba(16,191,164,.34);box-shadow:0 0 0 4px rgba(16,191,164,.10);background:#fff}.nv-phone-contact-panel button[data-phone-picker-option]{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;border:0;border-radius:15px;background:transparent;padding:9px 10px;text-align:left;cursor:pointer;color:#101a1e}.nv-phone-contact-panel button[data-phone-picker-option]:hover{background:#ecfdf5}.nv-phone-contact-panel button[data-phone-picker-option]>span{width:34px;height:34px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#0b6558,#10bfa4);color:#fff;font-size:13px;font-weight:950;text-transform:uppercase}.nv-phone-contact-panel button[data-phone-picker-option] strong{display:block;min-width:0;font-size:13px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#101a1e}.nv-phone-contact-panel button[data-phone-picker-option] small{display:block;margin-top:2px;font-size:11px;font-weight:800;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-phone-contact-panel button[data-phone-picker-option] em{max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:normal;font-size:12px;font-weight:950;color:#0b6558}.nv-phone-contact-panel [hidden]{display:none!important}@media(max-width:760px){.nv-phone-contact-panel{position:relative;top:auto;margin-top:8px}.nv-phone-contact-toggle{grid-template-columns:1fr}.nv-phone-contact-toggle em{justify-self:start;max-width:100%}.nv-phone-contact-panel button[data-phone-picker-option]{grid-template-columns:34px minmax(0,1fr)}.nv-phone-contact-panel button[data-phone-picker-option] em{grid-column:2;max-width:100%}}

/* =========================================================
   NuvoCall V38A Global premium phone widget
   Topbar phone, dialer, contacts and call history.
   ========================================================= */
.nv-top-phone-trigger{width:42px;height:42px;border:0;border-radius:15px;display:grid;place-items:center;cursor:pointer;color:#fff;background:linear-gradient(135deg,#0b6558,#10bfa4);box-shadow:0 14px 28px rgba(11,101,88,.20);transition:transform .18s ease,box-shadow .18s ease}.nv-top-phone-trigger:hover{transform:translateY(-1px);box-shadow:0 18px 36px rgba(11,101,88,.27)}.nv-top-phone-trigger svg{width:19px;height:19px;stroke-width:2.4}.nv-global-phone-widget{position:fixed;inset:0;z-index:2200;pointer-events:none;opacity:0;transition:opacity .18s ease}.nv-global-phone-widget.is-open{opacity:1;pointer-events:auto}.nv-global-phone-backdrop{position:absolute;inset:0;background:rgba(7,28,29,.22);backdrop-filter:blur(4px)}.nv-global-phone-panel{position:absolute;top:78px;right:24px;width:min(430px,calc(100vw - 28px));max-height:calc(100vh - 102px);display:flex;flex-direction:column;border-radius:30px;overflow:hidden;background:linear-gradient(180deg,#fff,#f7fbfa);border:1px solid rgba(15,35,45,.10);box-shadow:0 34px 110px rgba(7,28,29,.28);transform:translateY(-12px) scale(.98);transition:transform .18s ease}.nv-global-phone-widget.is-open .nv-global-phone-panel{transform:translateY(0) scale(1)}.nv-global-phone-head{position:relative;padding:20px 20px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#fff;background:radial-gradient(circle at 88% 0%,rgba(57,242,208,.22),transparent 35%),linear-gradient(135deg,#071c1d,#063b31 58%,#0b6558)}.nv-global-phone-head span{display:block;color:#7cf8df;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.15em}.nv-global-phone-head strong{display:block;margin-top:4px;font-size:25px;font-weight:950;letter-spacing:-.04em}.nv-global-phone-head button{width:38px;height:38px;border:0;border-radius:999px;background:rgba(255,255,255,.10);color:#fff;font-size:22px;cursor:pointer}.nv-global-phone-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;background:#eef8f5;border-bottom:1px solid rgba(15,35,45,.08)}.nv-global-phone-tabs button{height:40px;border:0;border-radius:999px;background:transparent;color:#64748b;font-size:12px;font-weight:950;cursor:pointer}.nv-global-phone-tabs button.active{background:#fff;color:#0b6558;box-shadow:0 10px 24px rgba(7,79,69,.08)}.nv-global-phone-tab{display:none;padding:16px;overflow:auto}.nv-global-phone-tab.active{display:block}.nv-global-phone-screen{position:relative;overflow:hidden;padding:18px;border-radius:24px;background:linear-gradient(135deg,#041f1c,#063b31 70%,#0b6558);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 20px 48px rgba(7,79,69,.18);color:#fff}.nv-global-phone-screen small{display:block;color:rgba(223,252,246,.72);font-size:12px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-global-phone-screen input{width:100%;height:62px;margin:10px 0 12px;border:1px solid rgba(255,255,255,.06);outline:0;border-radius:18px;background:rgba(255,255,255,.09);color:#fff;font-size:22px;font-weight:950;letter-spacing:.02em;padding:0 16px}.nv-global-phone-screen input::placeholder{color:rgba(255,255,255,.40)}.nv-global-phone-screen strong{display:inline-flex;align-items:center;min-height:30px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.10);color:#dffcf6;font-size:11px;font-weight:950}.nv-global-phone-screen strong[data-state="incall"],.nv-global-phone-screen strong[data-state="registered"]{background:rgba(16,191,164,.18);color:#7cf8df}.nv-global-phone-screen strong[data-state="calling"],.nv-global-phone-screen strong[data-state="connecting"],.nv-global-phone-screen strong[data-state="saving"]{background:rgba(59,130,246,.20);color:#bfdbfe}.nv-global-phone-screen strong[data-state="error"]{background:rgba(248,113,113,.18);color:#fecaca}.nv-global-phone-screen em{float:right;color:#fff;font-style:normal;font-size:18px;font-weight:950;font-variant-numeric:tabular-nums}.nv-global-phone-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.nv-global-phone-keypad button{height:48px;border:1px solid rgba(148,163,184,.18);border-radius:18px;background:#fff;color:#101a1e;font-size:20px;font-weight:950;box-shadow:0 10px 24px rgba(18,35,45,.05);cursor:pointer}.nv-global-phone-keypad button:hover{background:#ecfdf5;border-color:rgba(16,191,164,.28)}.nv-global-phone-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.nv-global-phone-actions button{height:50px;border:0;border-radius:17px;cursor:pointer;font-weight:950}.nv-global-phone-actions .call{color:#042f2a;background:linear-gradient(135deg,#10bfa4,#7cf8df);box-shadow:0 16px 34px rgba(16,191,164,.22)}.nv-global-phone-actions .hangup{color:#991b1b;background:#fee2e2}.nv-global-phone-log{margin-top:12px;max-height:95px;overflow:auto;padding:10px 12px;border-radius:16px;background:#071c1d;color:#dffcf6;font-family:Consolas,Monaco,monospace;font-size:11px;line-height:1.5}.nv-global-phone-log div{padding:4px 0;border-bottom:1px solid rgba(255,255,255,.05)}.nv-global-phone-log .is-success{color:#7cf8df}.nv-global-phone-log .is-error{color:#fecaca}.nv-global-phone-log .is-info{color:#bfdbfe}.nv-global-phone-search{margin-bottom:12px}.nv-global-phone-search input{width:100%;height:48px;border-radius:16px;border:1px solid rgba(148,163,184,.18);outline:0;background:#fff;padding:0 14px;font-size:13px;font-weight:850;color:#101a1e}.nv-global-phone-list{display:grid;gap:9px}.nv-global-phone-contact{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px;border:1px solid rgba(148,163,184,.14);border-radius:18px;background:#fff;text-align:left;cursor:pointer;box-shadow:0 10px 26px rgba(18,35,45,.04)}.nv-global-phone-contact:hover{background:#ecfdf5;border-color:rgba(16,191,164,.24)}.nv-global-phone-contact>span{width:38px;height:38px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(135deg,#0b6558,#10bfa4);color:#fff;font-weight:950;text-transform:uppercase}.nv-global-phone-contact strong{display:block;min-width:0;color:#101a1e;font-size:13px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-global-phone-contact small{display:block;margin-top:2px;color:#64748b;font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-global-phone-contact em{max-width:126px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#0b6558;font-style:normal;font-size:12px;font-weight:950}.nv-global-phone-history{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border-radius:18px;background:#fff;border:1px solid rgba(148,163,184,.14);box-shadow:0 10px 26px rgba(18,35,45,.04)}.nv-global-phone-history strong{display:block;color:#101a1e;font-size:13px}.nv-global-phone-history small{display:block;margin-top:3px;color:#64748b;font-size:11px;line-height:1.35}.nv-global-phone-history time{color:#94a3b8;font-size:11px;font-weight:900;white-space:nowrap}.nv-global-phone-history audio{grid-column:1 / -1;width:100%;height:34px;margin-top:6px}.nv-global-phone-more{width:100%;height:42px;margin-top:12px;border:0;border-radius:16px;background:#ecfdf5;color:#047857;font-weight:950;cursor:pointer}.nv-global-phone-empty{padding:18px;border-radius:18px;background:#fff;color:#64748b;text-align:center;font-size:13px;font-weight:850;border:1px dashed rgba(148,163,184,.28)}@media(max-width:760px){.nv-global-phone-panel{top:64px;right:10px;left:10px;width:auto;max-height:calc(100vh - 76px)}.nv-global-phone-contact{grid-template-columns:38px minmax(0,1fr)}.nv-global-phone-contact em{grid-column:2;max-width:100%}}

/* V42A NuvoCall Voice connector: locked/add-on state */
.nv-top-phone-trigger.is-locked{
    opacity:.52;
    cursor:not-allowed;
    filter:grayscale(.25);
}

/* =========================================================
   NuvoCall V37 - Premium global voice widget
   Header phone, lazy contacts, searchable call history.
   ========================================================= */
.nv-top-phone-trigger{position:relative;overflow:visible}.nv-top-phone-pulse{position:absolute;right:-2px;top:-2px;width:11px;height:11px;border-radius:999px;background:#7cf8df;box-shadow:0 0 0 5px rgba(124,248,223,.16)}.nv-top-phone-trigger[data-call-state="calling"] .nv-top-phone-pulse,.nv-top-phone-trigger[data-call-state="incall"] .nv-top-phone-pulse{animation:nvPhonePulse 1.1s ease-in-out infinite}@keyframes nvPhonePulse{0%{transform:scale(.9);box-shadow:0 0 0 0 rgba(124,248,223,.36)}70%{transform:scale(1);box-shadow:0 0 0 9px rgba(124,248,223,0)}100%{transform:scale(.9);box-shadow:0 0 0 0 rgba(124,248,223,0)}}
.nv-global-phone-panel{width:min(470px,calc(100vw - 28px));background:linear-gradient(180deg,#ffffff,#f4fbf9 70%,#eef8f5);border:1px solid rgba(15,35,45,.12)}.nv-global-phone-head{padding:22px 22px 18px}.nv-global-phone-brand small{display:block;margin-top:5px;color:rgba(223,252,246,.70);font-size:11px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-global-phone-head-actions{display:flex;align-items:center;gap:10px}.nv-global-phone-online{min-width:72px;text-align:center;padding:8px 10px;border-radius:999px;background:rgba(255,255,255,.10);color:#dffcf6!important;font-size:10px!important;font-weight:950!important;letter-spacing:.08em!important;text-transform:uppercase!important}.nv-global-phone-online[data-state="registered"],.nv-global-phone-online[data-state="incall"]{background:rgba(16,191,164,.20);color:#7cf8df!important}.nv-global-phone-online[data-state="calling"],.nv-global-phone-online[data-state="connecting"],.nv-global-phone-online[data-state="saving"]{background:rgba(59,130,246,.22);color:#bfdbfe!important}.nv-global-phone-online[data-state="error"]{background:rgba(248,113,113,.22);color:#fecaca!important}.nv-global-phone-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;background:#071c1d;color:#fff}.nv-global-phone-meta span{display:block;min-width:0;padding:11px 12px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.05)}.nv-global-phone-meta b{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:950;color:#fff}.nv-global-phone-meta small{display:block;margin-top:3px;color:rgba(223,252,246,.58);font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.11em}.nv-global-phone-tabs{background:#eef8f5}.nv-global-phone-selected{display:flex;align-items:center;justify-content:space-between;gap:10px}.nv-global-phone-selected button{border:0;border-radius:999px;background:rgba(255,255,255,.10);color:#7cf8df;padding:6px 9px;font-size:10px;font-weight:950;cursor:pointer}.nv-global-phone-state-row{display:flex;align-items:center;justify-content:space-between}.nv-global-phone-screen em{float:none}.nv-global-phone-tools{display:grid;grid-template-columns:78px 1fr;gap:10px;margin:-2px 0 12px}.nv-global-phone-tools button{height:40px;border:1px solid rgba(148,163,184,.16);border-radius:15px;background:#fff;color:#0b6558;font-size:12px;font-weight:950;cursor:pointer}.nv-global-phone-tools button:hover{background:#ecfdf5;border-color:rgba(16,191,164,.30)}.nv-global-phone-search{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px}.nv-global-phone-search button{height:48px;border:1px solid rgba(148,163,184,.18);border-radius:16px;background:#fff;color:#0b6558;font-size:18px;font-weight:950;cursor:pointer}.nv-global-phone-search button:hover{background:#ecfdf5;border-color:rgba(16,191,164,.30)}.nv-global-phone-more:disabled{opacity:.58;cursor:wait}.nv-global-phone-empty.is-loading{background:linear-gradient(90deg,#fff,#f4fbf9,#fff);background-size:200% 100%;animation:nvPhoneSkeleton 1.2s ease-in-out infinite}.nv-global-phone-empty.is-error{color:#991b1b;background:#fff7f7;border-color:rgba(248,113,113,.25)}@keyframes nvPhoneSkeleton{0%{background-position:0 0}100%{background-position:200% 0}}
.nv-global-phone-contact{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.nv-global-phone-contact:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(7,79,69,.09)}.nv-global-phone-history{grid-template-columns:minmax(0,1fr) auto}.nv-global-phone-history-main{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;min-width:0}.nv-global-phone-history-main>span{width:42px;height:42px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#071c1d,#0b6558);color:#fff;font-size:12px;font-weight:950}.nv-global-phone-history-main strong,.nv-global-phone-history-main small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nv-global-phone-history-side{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.nv-global-phone-history-side button{border:0;border-radius:999px;background:#ecfdf5;color:#047857;padding:7px 10px;font-size:11px;font-weight:950;cursor:pointer}.nv-global-phone-history-side button:hover{background:#d1fae5}.nv-global-phone-history-open{grid-column:1 / -1;display:inline-flex;width:max-content;max-width:100%;padding:6px 10px;border-radius:999px;background:#f8fafc;color:#0f766e;text-decoration:none;font-size:11px;font-weight:950}.nv-global-phone-history[data-status="failed"] .nv-global-phone-history-main>span,.nv-global-phone-history[data-status="no_answer"] .nv-global-phone-history-main>span{background:linear-gradient(135deg,#7f1d1d,#f97316)}.nv-global-phone-history[data-status="answered"] .nv-global-phone-history-main>span{background:linear-gradient(135deg,#065f46,#10bfa4)}@media(max-width:760px){.nv-global-phone-meta{grid-template-columns:1fr}.nv-global-phone-history{grid-template-columns:1fr}.nv-global-phone-history-side{align-items:flex-start;flex-direction:row;justify-content:space-between}.nv-global-phone-tools{grid-template-columns:1fr 1fr}}

/* =========================================================
   NuvoCall V38 - Mobile Responsive CRM Layer
   Goal: phone-first usability before PWA activation.
   ========================================================= */
html { min-width: 0; }
body { min-width: 0; }
* { box-sizing: border-box; }
img, svg, video, canvas { max-width: 100%; }
.nv-main, .nv-panel, .nv-card, .nv-table-card, .nv-workspace-modal, .nv-global-phone-panel { min-width: 0; }

/* Mobile/off-canvas shell */
@media (max-width: 1120px) {
  :root {
    --nv-sidebar-w: min(86vw, 318px);
  }
  body.nv-mobile-menu-open {
    overflow: hidden;
    touch-action: none;
  }
  body.nv-mobile-menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(3, 18, 16, .52);
    backdrop-filter: blur(8px);
  }
  .nv-app-shell {
    display: block !important;
    grid-template-columns: 1fr !important;
    min-width: 0;
  }
  .nv-sidebar {
    position: fixed !important;
    inset-block: 0 !important;
    inset-inline-start: 0 !important;
    z-index: 70 !important;
    width: var(--nv-sidebar-w) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)) !important;
    transform: translateX(-108%) !important;
    transition: transform .22s ease, box-shadow .22s ease !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    box-shadow: none;
  }
  html[dir="rtl"] .nv-sidebar {
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
    transform: translateX(108%) !important;
  }
  .nv-sidebar.is-open {
    transform: translateX(0) !important;
    box-shadow: 24px 0 70px rgba(0,0,0,.30);
  }
  html[dir="rtl"] .nv-sidebar.is-open {
    transform: translateX(0) !important;
    box-shadow: -24px 0 70px rgba(0,0,0,.30);
  }
  .nv-sidebar .nv-brand {
    height: 58px !important;
    padding: 0 10px !important;
  }
  .nv-sidebar .nv-brand img {
    max-width: 214px !important;
    max-height: 54px !important;
  }
  .nv-sidebar .nv-side-link {
    justify-content: flex-start !important;
    padding: 0 14px !important;
    min-height: 48px;
  }
  .nv-sidebar .nv-side-link strong { display: block !important; }
  .nv-sidebar .nv-user-chip {
    grid-template-columns: 44px 1fr !important;
    justify-content: initial !important;
    padding: 12px !important;
  }
  .nv-sidebar .nv-user-chip > div { display: block !important; }
  .nv-sidebar .nv-logout { display: block !important; }
  .nv-main {
    width: 100%;
    min-width: 0;
    padding: calc(12px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom)) !important;
  }
  .nv-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    margin: -12px -14px 14px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    align-items: center !important;
    gap: 10px;
    background: rgba(246, 252, 249, .88);
    border-bottom: 1px solid rgba(7,79,69,.08);
    backdrop-filter: blur(18px);
  }
  .nv-topbar > div:first-child { min-width: 0; }
  .nv-topbar h1 {
    max-width: 42vw;
    margin-top: 2px;
    font-size: 20px !important;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -.035em;
  }
  .nv-topbar .nv-eyebrow { font-size: 9px; letter-spacing: .12em; }
  .nv-top-actions {
    flex: 0 0 auto;
    gap: 7px;
    min-width: 0;
  }
  .nv-mobile-toggle {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
  }
  .nv-mobile-toggle svg { width: 20px; height: 20px; }
  .nv-lang-pill {
    max-width: 132px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nv-lang-pill::-webkit-scrollbar { display: none; }
  .nv-lang-pill a { padding: 8px 10px; font-size: 11px; }
  .nv-top-user {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    justify-content: center;
    border-radius: 15px !important;
  }
  .nv-top-user strong { display: none !important; }
  .nv-top-avatar, .nv-top-avatar-img { width: 34px !important; height: 34px !important; }
  .nv-top-phone-trigger {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
}

/* Phone layout: page sections, cards and forms */
@media (max-width: 760px) {
  .nv-section-head,
  .nv-import-head,
  .nv-lead-inbox-head,
  .nv-supervisor-head,
  .nv-voice-head,
  .nv-sales-head,
  .nv-panel-head,
  .nv-home-panel-head,
  .nv-page-hero,
  .nv-role-form-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .nv-section-head h2,
  .nv-import-head h2,
  .nv-lead-inbox-head h2,
  .nv-supervisor-head h2,
  .nv-voice-head h2,
  .nv-sales-head h2,
  .nv-page-hero h2 {
    font-size: 24px !important;
    line-height: 1.12 !important;
  }
  .nv-btn,
  button.nv-btn,
  a.nv-btn {
    min-height: 42px;
    border-radius: 13px;
  }
  .nv-form-actions,
  .nv-template-actions,
  .nv-inline-actions,
  .nv-import-head-actions,
  .nv-pipeline-toolbar-actions,
  .nv-live-callbar-actions,
  .nv-workspace-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100%;
  }
  .nv-form-actions .nv-btn,
  .nv-template-actions .nv-btn,
  .nv-inline-actions .nv-btn,
  .nv-import-head-actions .nv-btn,
  .nv-pipeline-toolbar-actions .nv-btn,
  .nv-live-callbar-actions .nv-btn,
  .nv-workspace-actions .nv-btn {
    width: 100%;
    justify-content: center;
  }
  .nv-form-grid,
  .nv-form-grid.two,
  .nv-form-grid-2,
  .nv-template-builder,
  .nv-template-toolbar,
  .nv-import-layout,
  .nv-import-map-layout,
  .nv-profile-grid,
  .nv-supervisor-grid,
  .nv-voice-grid,
  .nv-voice-form-grid,
  .nv-voice-form-grid-six,
  .nv-data-quality-duplicates-grid,
  .nv-data-quality-secondary-grid,
  .nv-sales-structure-workbench,
  .nv-home-main-grid,
  .nv-home-quality-grid,
  .nv-home-kpi-grid,
  .nv-home-shortcuts,
  .nv-daily-grid,
  .nv-daily-kpis {
    grid-template-columns: 1fr !important;
  }
  .nv-form-span-2,
  .nv-home-panel-wide,
  .nv-daily-wide {
    grid-column: auto !important;
  }
  .nv-panel,
  .nv-home-panel,
  .nv-form-card,
  .nv-table-card,
  .nv-import-upload-card,
  .nv-import-history-card,
  .nv-import-map-card,
  .nv-import-preview-card,
  .nv-data-quality-card,
  .nv-supervisor-team-card,
  .nv-supervisor-stage-card,
  .nv-supervisor-activity-card,
  .nv-voice-card,
  .nv-media-card-body,
  .nv-profile-card {
    border-radius: 18px !important;
    padding: 16px !important;
  }
  .nv-table-card,
  .nv-supervisor-table-wrap,
  .nv-lead-compact-table-card,
  .nv-lost-recycle-card,
  .nv-sales-table-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .nv-table,
  .nv-supervisor-table,
  .nv-supervisor-list-table,
  .nv-lead-compact-table,
  .nv-lost-recycle-table,
  .nv-sales-structure-table,
  .nv-voice-table {
    min-width: 720px !important;
  }
  .nv-table th,
  .nv-table td,
  .nv-supervisor-table th,
  .nv-supervisor-table td,
  .nv-lead-compact-table th,
  .nv-lead-compact-table td {
    padding: 12px 12px !important;
    font-size: 12px;
  }
  .nv-pill,
  .nv-soft-badge,
  .nv-source-badge {
    white-space: nowrap;
  }
}

/* Dashboard mobile */
@media (max-width: 760px) {
  .nv-home-hero,
  .nv-dashboard-hero {
    grid-template-columns: 1fr !important;
    padding: 22px !important;
    border-radius: 22px !important;
  }
  .nv-home-hero h2,
  .nv-dashboard-hero h2 {
    font-size: 28px !important;
  }
  .nv-home-scope-line {
    flex-wrap: wrap;
    gap: 8px;
  }
  .nv-home-user-card,
  .nv-hero-badge { justify-self: stretch !important; width: auto !important; }
  .nv-kpi-grid,
  .nv-mini-dashboard { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .nv-two-col { grid-template-columns: 1fr !important; }
}
@media (max-width: 420px) {
  .nv-kpi-grid,
  .nv-mini-dashboard { grid-template-columns: 1fr !important; }
}

/* Pipeline / Kanban mobile */
@media (max-width: 760px) {
  .nv-pipeline-toolbar {
    display: grid;
    gap: 12px;
    padding: 12px !important;
    border-radius: 18px !important;
  }
  .nv-pipeline-toolbar form,
  .nv-kanban-filter-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100%;
  }
  .nv-kanban-team-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .nv-kanban {
    grid-auto-columns: minmax(288px, 88vw) !important;
    gap: 12px !important;
    min-height: calc(100dvh - 190px) !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .nv-kanban-column {
    max-height: calc(100dvh - 205px) !important;
    scroll-snap-align: start;
    border-radius: 18px !important;
  }
  .nv-kanban-dropzone {
    min-height: 260px !important;
    max-height: calc(100dvh - 310px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nv-account-card {
    border-radius: 17px !important;
    padding: 12px !important;
  }
  .nv-card-footer,
  .nv-card-footer-actions,
  .nv-card-meta {
    flex-wrap: wrap;
    gap: 7px !important;
  }
  .nv-owner-combobox-panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    width: auto !important;
    max-height: 60dvh;
    overflow: auto;
    z-index: 90;
  }
}

/* Lead Inbox / imports mobile */
@media (max-width: 760px) {
  .nv-lead-inbox-stats,
  .nv-lead-tabs,
  .nv-media-category-pills,
  .nv-profile-tabs,
  .nv-workspace-main-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding-bottom: 4px;
  }
  .nv-lead-tabs a,
  .nv-media-category-pills a,
  .nv-profile-tabs a,
  .nv-workspace-main-tabs a {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .nv-lead-inbox-filters,
  .nv-lost-recycle-form,
  .nv-sales-toolbar,
  .nv-supervisor-filters {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .nv-lead-bulkbar,
  .nv-sales-bulkbar {
    position: sticky;
    bottom: 10px;
    z-index: 35;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
    border-radius: 18px !important;
    box-shadow: 0 18px 48px rgba(4,44,39,.18);
  }
  .nv-lead-row-actions,
  .nv-template-actions,
  .nv-media-card-actions {
    flex-wrap: wrap;
  }
  .nv-lead-action-popover {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    width: auto !important;
    max-height: 70dvh;
    overflow: auto;
    z-index: 95;
    border-radius: 20px !important;
  }
}

/* Client workspace mobile: full-screen app feel */
@media (max-width: 760px) {
  .nv-workspace-overlay {
    padding: 0 !important;
    background: rgba(4,18,17,.72) !important;
  }
  .nv-workspace-modal {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
  }
  .nv-workspace-close {
    position: sticky !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    margin: max(10px, env(safe-area-inset-top)) 10px 0 0 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 15px !important;
  }
  html[dir="rtl"] .nv-workspace-close { margin: max(10px, env(safe-area-inset-top)) 0 0 10px !important; }
  .nv-workspace-content,
  .nv-workspace-pro {
    padding: 12px 12px calc(22px + env(safe-area-inset-bottom)) !important;
  }
  .nv-workspace-head,
  .nv-workspace-head-pro {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }
  .nv-workspace-head h2,
  .nv-workspace-head-pro h2 {
    font-size: 26px !important;
    line-height: 1.05 !important;
  }
  .nv-workspace-summary,
  .nv-workspace-summary-pro,
  .nv-workspace-grid,
  .nv-workspace-grid-pro,
  .nv-mini-row,
  .nv-task-done-form,
  .nv-email-composer,
  .nv-funding-create-form,
  .nv-funding-update-form,
  .nv-quote-form,
  .nv-contact-form {
    grid-template-columns: 1fr !important;
  }
  .nv-workspace-tabs,
  .nv-workspace-tabs-pro {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .nv-workspace-tabs a,
  .nv-workspace-tabs-pro a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .nv-workspace-panel,
  .nv-workspace-panel-pro,
  .nv-contact-card,
  .nv-note-card,
  .nv-task-card,
  .nv-quote-card,
  .nv-funding-card {
    border-radius: 17px !important;
  }
  .nv-timeline-item,
  .nv-timeline-card {
    grid-template-columns: 36px minmax(0,1fr) !important;
    padding: 12px !important;
  }
  .nv-timeline-item header,
  .nv-timeline-body header,
  .nv-contact-card-head,
  .nv-quote-line-head,
  .nv-funding-meta,
  .nv-funding-actions {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .nv-wysiwyg-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Voice widget mobile */
@media (max-width: 760px) {
  .nv-global-phone-widget.is-open .nv-global-phone-backdrop,
  .nv-global-phone-widget.is-open .nv-global-phone-panel { z-index: 130; }
  .nv-global-phone-panel {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: min(92dvh, 760px) !important;
    max-height: 92dvh !important;
    border-radius: 28px 28px 0 0 !important;
    overflow: hidden !important;
  }
  .nv-global-phone-head {
    padding: 18px 16px 14px !important;
  }
  .nv-global-phone-brand strong { font-size: 20px !important; }
  .nv-global-phone-meta {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    padding: 8px !important;
    gap: 6px !important;
  }
  .nv-global-phone-meta span {
    padding: 9px 8px !important;
    border-radius: 13px !important;
  }
  .nv-global-phone-tab {
    max-height: calc(92dvh - 184px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  }
  .nv-global-phone-keypad { gap: 8px !important; }
  .nv-global-phone-keypad button { height: 46px !important; border-radius: 15px !important; }
  .nv-global-phone-actions { position: sticky; bottom: 0; padding-top: 8px; background: linear-gradient(180deg, rgba(244,251,249,0), #f4fbf9 35%); }
  .nv-global-phone-contact,
  .nv-global-phone-history { border-radius: 16px !important; }
}
@media (max-width: 420px) {
  .nv-global-phone-meta { grid-template-columns: 1fr !important; }
  .nv-global-phone-search,
  .nv-global-phone-tools,
  .nv-global-phone-actions { grid-template-columns: 1fr !important; }
  .nv-global-phone-panel { height: 94dvh !important; max-height: 94dvh !important; }
  .nv-topbar h1 { max-width: 34vw; }
  .nv-lang-pill { max-width: 98px; }
}

/* Admin modules mobile */
@media (max-width: 760px) {
  .nv-template-grid,
  .nv-landing-grid,
  .nv-media-grid,
  .nv-role-matrix,
  .nv-role-permissions,
  .nv-voice-kpis,
  .nv-voice-checks,
  .nv-voice-provider-list {
    grid-template-columns: 1fr !important;
  }
  .nv-role-module-head,
  .nv-role-permission-row,
  .nv-copy-row,
  .nv-log-row,
  .nv-phone-composer,
  .nv-phone-screen,
  .nv-webrtc-form-grid,
  .nv-webrtc-actions {
    grid-template-columns: 1fr !important;
  }
  .nv-template-editor-wrap textarea,
  .nv-wysiwyg-editor,
  textarea {
    max-width: 100%;
  }
  .nv-media-dropzone {
    padding: 22px 14px !important;
    border-radius: 18px !important;
  }
}

/* Initial CRM loader - shown once per authenticated session */
.nv-initial-loader {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(16,191,164,.26), transparent 34%),
    radial-gradient(circle at 84% 76%, rgba(131,96,246,.18), transparent 32%),
    linear-gradient(135deg, #061512 0%, #071f1b 48%, #0b2b25 100%);
  transition: opacity .38s ease, visibility .38s ease;
}
.nv-initial-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nv-initial-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
}
body.nv-initial-loader-open { overflow: hidden; }
.nv-initial-loader::before,
.nv-initial-loader::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.nv-initial-loader::before {
  width: 760px;
  height: 760px;
  inset: -280px auto auto -250px;
  background: radial-gradient(circle, rgba(16,191,164,.22), transparent 66%);
  animation: nvLoaderDrift 7s ease-in-out infinite alternate;
}
.nv-initial-loader::after {
  width: 520px;
  height: 520px;
  inset: auto -180px -210px auto;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 64%);
  animation: nvLoaderDrift 8s ease-in-out infinite alternate-reverse;
}
.nv-initial-loader-card {
  position: relative;
  width: min(440px, 100%);
  padding: 36px 34px 32px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.06));
  box-shadow: 0 34px 110px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(24px);
  transform: translateY(10px) scale(.98);
  animation: nvLoaderCardIn .55s ease forwards;
}
.nv-initial-loader-logo {
  display: block;
  width: 218px;
  max-height: 64px;
  object-fit: contain;
  margin: 0 auto 24px;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.22));
}
.nv-initial-loader-signal {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,191,164,.22), rgba(16,191,164,.08) 54%, transparent 55%);
  box-shadow: 0 0 0 1px rgba(16,191,164,.18), 0 0 54px rgba(16,191,164,.22);
}
.nv-initial-loader-signal i {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(16,191,164,.78);
  border-radius: 50%;
  animation: nvLoaderSignal 1.65s ease-out infinite;
}
.nv-initial-loader-signal i:nth-child(2) { animation-delay: .28s; }
.nv-initial-loader-signal i:nth-child(3) { animation-delay: .56s; }
.nv-initial-loader-card h2 {
  margin: 0;
  font-family: var(--nv-font-display);
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: -.035em;
}
.nv-initial-loader-card p {
  max-width: 330px;
  margin: 10px auto 24px;
  color: rgba(255,255,255,.70);
  font-size: 14px;
  line-height: 1.65;
}
.nv-initial-loader-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.nv-initial-loader-progress span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(16,191,164,.15), #10BFA4, rgba(255,255,255,.78));
  box-shadow: 0 0 26px rgba(16,191,164,.62);
  animation: nvLoaderProgress 1.25s ease-in-out infinite;
}
.nv-initial-loader-card small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nv-initial-loader-card small::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nv-mint-500);
  box-shadow: 0 0 0 6px rgba(16,191,164,.12);
}
.nv-initial-loader-orb,
.nv-initial-loader-orb span {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nv-initial-loader-orb span {
  width: 260px;
  height: 260px;
  margin: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 42% 58% 56% 44%;
  animation: nvLoaderOrbit 7s linear infinite;
}
.nv-initial-loader-orb span:nth-child(2) {
  width: 380px;
  height: 380px;
  animation-duration: 10s;
  animation-direction: reverse;
}
.nv-initial-loader-orb span:nth-child(3) {
  width: 520px;
  height: 520px;
  animation-duration: 14s;
  opacity: .55;
}
@keyframes nvLoaderCardIn {
  to { transform: translateY(0) scale(1); }
}
@keyframes nvLoaderSignal {
  0% { transform: scale(.55); opacity: .95; }
  100% { transform: scale(2.15); opacity: 0; }
}
@keyframes nvLoaderProgress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}
@keyframes nvLoaderOrbit {
  to { transform: rotate(360deg); }
}
@keyframes nvLoaderDrift {
  to { transform: translate3d(34px, 22px, 0) scale(1.04); }
}
@media (max-width: 640px) {
  .nv-initial-loader { padding: 18px; }
  .nv-initial-loader-card { padding: 30px 24px 28px; border-radius: 28px; }
  .nv-initial-loader-logo { width: 190px; }
  .nv-initial-loader-card h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-initial-loader,
  .nv-initial-loader-card,
  .nv-initial-loader::before,
  .nv-initial-loader::after,
  .nv-initial-loader-signal i,
  .nv-initial-loader-progress span,
  .nv-initial-loader-orb span {
    animation: none !important;
    transition: none !important;
  }
}

/* Session lock - premium multi-tab workspace protection */
.sr-only {
  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;
}
body.nv-session-lock-open {
  overflow: hidden;
}
.nv-session-lock {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: grid;
  place-items: center;
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  color: #fff;
  transition: opacity .24s ease, visibility .24s ease;
}
.nv-session-lock.is-active,
body.nv-session-lock-open .nv-session-lock {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nv-session-lock-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(16,191,164,.24), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(131,96,246,.20), transparent 30%),
    linear-gradient(135deg, rgba(2,10,13,.88), rgba(5,25,24,.92) 48%, rgba(7,33,30,.94));
  backdrop-filter: blur(18px) saturate(1.15);
}
.nv-session-lock-backdrop::before,
.nv-session-lock-backdrop::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.nv-session-lock-backdrop::before {
  width: 680px;
  height: 680px;
  inset: -260px auto auto -220px;
  background: radial-gradient(circle, rgba(16,191,164,.22), transparent 66%);
}
.nv-session-lock-backdrop::after {
  width: 480px;
  height: 480px;
  inset: auto -160px -190px auto;
  background: radial-gradient(circle, rgba(255,255,255,.11), transparent 65%);
}
.nv-session-lock-card {
  position: relative;
  width: min(480px, 100%);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.075));
  box-shadow: 0 34px 120px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(24px);
  transform: translateY(8px) scale(.985);
  transition: transform .24s ease;
}
.nv-session-lock.is-active .nv-session-lock-card,
body.nv-session-lock-open .nv-session-lock-card {
  transform: translateY(0) scale(1);
}
.nv-session-lock-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nv-session-lock-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(16,191,164,.30));
}
.nv-session-lock-user {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 28px 0 24px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.075);
}
.nv-session-lock-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(16,191,164,.16);
  box-shadow: 0 0 0 1px rgba(16,191,164,.22), 0 20px 44px rgba(0,0,0,.22);
}
.nv-session-lock-avatar .nv-top-avatar,
.nv-session-lock-avatar .nv-top-avatar-img {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  font-size: 28px;
}
.nv-session-lock-user span {
  display: block;
  margin-bottom: 8px;
  color: var(--nv-mint-500);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nv-session-lock-user strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.nv-session-lock-user small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.58);
  font-size: 13px;
}
.nv-session-lock-form {
  margin-top: 8px;
}
.nv-session-lock-password {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 12px;
}
.nv-session-lock-password input {
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  outline: 0;
  color: #fff;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}
.nv-session-lock-password input::placeholder {
  color: rgba(255,255,255,.46);
}
.nv-session-lock-password input:focus {
  border-color: rgba(16,191,164,.72);
  background: rgba(255,255,255,.14);
  box-shadow: 0 0 0 5px rgba(16,191,164,.16);
}
.nv-session-lock-password button {
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  color: #06211d;
  background: linear-gradient(135deg, #8AF4E0, var(--nv-mint-500));
  box-shadow: 0 18px 40px rgba(16,191,164,.28);
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.nv-session-lock-password button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(16,191,164,.36);
}
.nv-session-lock-password button:disabled {
  opacity: .72;
  cursor: wait;
  transform: none;
}
.nv-session-lock-error {
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(255,141,141,.28);
  border-radius: 15px;
  color: #FFD0D0;
  background: rgba(180,35,24,.22);
  font-size: 13px;
  font-weight: 800;
}
.nv-session-lock-shortcut {
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nv-session-lock-bottom {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.nv-session-lock-logout,
.nv-session-lock-clock {
  position: relative;
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.nv-session-lock-logout {
  padding: 12px 16px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 900;
}
.nv-session-lock-logout:hover {
  color: #fff;
  border-color: rgba(255,255,255,.24);
}
.nv-session-lock-clock {
  padding: 14px 18px;
  color: #fff;
  font-family: var(--nv-font-display);
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -.045em;
}
.nv-top-lock-trigger {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(17,26,31,.09);
  border-radius: 15px;
  color: var(--nv-emerald-700);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 28px rgba(7,79,69,.08);
  cursor: pointer;
}
.nv-top-lock-trigger svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.35;
}
.nv-top-lock-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(16,191,164,.26);
  box-shadow: 0 16px 34px rgba(7,79,69,.12);
}
.nv-session-lock-sidebar {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 14px;
  color: var(--nv-emerald-700);
  background: rgba(16,191,164,.08);
  font-weight: 950;
  cursor: pointer;
}
.nv-session-lock-sidebar:hover {
  border-color: rgba(7,79,69,.22);
  background: rgba(16,191,164,.13);
}
.nv-session-locked-page {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--nv-muted);
}
.nv-session-locked-page span {
  color: var(--nv-emerald-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nv-session-locked-page h2 {
  margin: 10px 0 8px;
  color: var(--nv-graphite);
  font-family: var(--nv-font-display);
  font-size: 34px;
  letter-spacing: -.045em;
}
.nv-session-locked-page p {
  margin: 0;
}
@media (max-width: 640px) {
  .nv-session-lock { padding: 18px; }
  .nv-session-lock-card { padding: 22px; border-radius: 28px; }
  .nv-session-lock-user { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 14px; }
  .nv-session-lock-password { grid-template-columns: 1fr; }
  .nv-session-lock-password button { width: 100%; }
  .nv-session-lock-bottom { right: 18px; left: 18px; bottom: 16px; align-items: center; }
  .nv-session-lock-clock { font-size: 24px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-session-lock,
  .nv-session-lock-card,
  .nv-top-lock-trigger,
  .nv-session-lock-password button {
    transition: none !important;
  }
}

/* =========================================================
   V39 - Multi pipeline manager
   ========================================================= */
.nv-pipeline-admin-head p { max-width: 760px; margin: 8px 0 0; color: var(--nv-muted); line-height: 1.65; }
.nv-pipeline-create-card { display: grid; grid-template-columns: minmax(230px, .45fr) 1fr; gap: 22px; margin-bottom: 22px; }
.nv-pipeline-create-copy h3 { margin: 5px 0 8px; font-family: var(--nv-font-display); font-size: 24px; letter-spacing: -.035em; }
.nv-pipeline-create-copy p { margin: 0; color: var(--nv-muted); line-height: 1.6; }
.nv-pipeline-inline-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.nv-pipeline-inline-form .wide { grid-column: span 2; }
.nv-pipeline-admin-grid { display: grid; gap: 22px; }
.nv-pipeline-admin-card { padding: 24px; border: 1px solid rgba(15,35,45,.10); border-radius: 30px; background: rgba(255,255,255,.92); box-shadow: 0 20px 60px rgba(17,26,31,.07); }
.nv-pipeline-admin-card.is-disabled { opacity: .68; }
.nv-pipeline-admin-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.nv-pipeline-admin-card-head h3 { margin: 4px 0 4px; font-family: var(--nv-font-display); font-size: 26px; letter-spacing: -.04em; }
.nv-pipeline-admin-card-head small { color: var(--nv-muted); line-height: 1.5; }
.nv-pipeline-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.nv-pipeline-edit-form { padding: 18px; border: 1px solid rgba(15,35,45,.08); border-radius: 24px; background: linear-gradient(180deg, rgba(248,252,251,.92), rgba(255,255,255,.86)); }
.nv-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nv-pipeline-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.nv-pipeline-stage-list { margin-top: 18px; display: grid; gap: 12px; }
.nv-pipeline-stage-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.nv-pipeline-stage-list-head strong { font-size: 16px; }
.nv-pipeline-stage-list-head small { color: var(--nv-muted); }
.nv-pipeline-stage-row { display: grid; grid-template-columns: 14px minmax(160px, 1.2fr) minmax(120px, .9fr) minmax(110px, .75fr) 76px 80px minmax(160px, 1.4fr) auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid rgba(15,35,45,.08); border-radius: 22px; background: #fff; }
.nv-pipeline-stage-row.is-disabled { opacity: .58; }
.nv-stage-dot { width: 12px; height: 42px; border-radius: 99px; background: var(--stage-color, #0B6558); box-shadow: 0 0 0 6px color-mix(in srgb, var(--stage-color, #0B6558) 14%, transparent); align-self: center; }
.nv-field.compact { gap: 5px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5C6A70; }
.nv-field.compact input, .nv-field.compact select { min-height: 38px; border-radius: 12px; padding: 0 10px; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--nv-graphite); }
.nv-field.compact.mini { max-width: 86px; }
.nv-field.compact.wide { min-width: 0; }
.nv-pipeline-stage-actions { display: flex; gap: 8px; justify-content: flex-end; }
.nv-pipeline-add-stage { margin-top: 18px; padding: 18px; border: 1px dashed rgba(11,101,88,.22); border-radius: 24px; background: rgba(16,191,164,.045); }
.nv-pipeline-add-stage .nv-form-grid { margin: 12px 0; }

@media (max-width: 1260px) {
  .nv-pipeline-stage-row { grid-template-columns: 14px repeat(3, minmax(0, 1fr)); }
  .nv-pipeline-stage-row .nv-field.compact.wide { grid-column: 2 / -1; }
  .nv-pipeline-stage-actions { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 920px) {
  .nv-pipeline-create-card { grid-template-columns: 1fr; }
  .nv-pipeline-inline-form, .nv-form-grid.three { grid-template-columns: 1fr; }
  .nv-pipeline-inline-form .wide { grid-column: auto; }
  .nv-pipeline-admin-card-head { flex-direction: column; }
  .nv-pipeline-badges { justify-content: flex-start; }
  .nv-pipeline-stage-row { grid-template-columns: 12px 1fr; }
  .nv-pipeline-stage-row .nv-field.compact, .nv-pipeline-stage-row .nv-field.compact.wide, .nv-pipeline-stage-actions { grid-column: 2; }
}

/* =========================================================
   TrainingConnect Workbench Theme V1
   Neutral-first CRM interface for prolonged daily use.
   Brand palette is deliberately used as an accent only.
   ========================================================= */
:root {
  --nv-graphite: #111A1E;
  --nv-graphite-2: #1D272C;
  --nv-emerald-900: #084D44;
  --nv-emerald-800: #0B6558;
  --nv-emerald-700: #0B6558;
  --nv-teal-600: #0E8B78;
  --nv-mint-500: #10BFA4;
  --nv-violet-500: #8360F6;
  --nv-bg: #F5F6F7;
  --nv-bg-2: #F0F2F3;
  --nv-surface: #FFFFFF;
  --nv-surface-solid: #FFFFFF;
  --nv-line: #E3E7E9;
  --nv-line-strong: #D7DDE0;
  --nv-muted: #65727A;
  --nv-muted-2: #96A0A6;
  --nv-shadow-soft: 0 1px 2px rgba(17,26,30,.025), 0 8px 24px rgba(17,26,30,.035);
  --nv-shadow-premium: 0 18px 55px rgba(17,26,30,.08);
  --nv-shadow-button: 0 6px 18px rgba(11,101,88,.16);
  --nv-radius-sm: 10px;
  --nv-radius-md: 14px;
  --nv-radius-lg: 18px;
  --nv-radius-xl: 22px;
  --nv-sidebar-w: 252px;
}

body.app-body {
  background: #F5F6F7 !important;
}
.nv-app-shell { grid-template-columns: var(--nv-sidebar-w) 1fr !important; }
.nv-sidebar {
  width: var(--nv-sidebar-w) !important;
  padding: 18px 14px !important;
  gap: 16px !important;
  background: #FFFFFF !important;
  border-inline-end: 1px solid var(--nv-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.nv-brand.tc-brand {
  height: 60px !important;
  margin: 0 2px 6px !important;
  padding: 7px 8px !important;
  display: grid !important;
  grid-template-columns: 42px 1fr !important;
  gap: 9px !important;
  justify-content: stretch !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 12px !important;
}
.tc-brand-symbol { width: 42px !important; height: 42px !important; object-fit: contain !important; }
.tc-brand-wordmark { display: flex; min-width: 0; flex-wrap: wrap; align-content: center; line-height: 1; letter-spacing: .055em; }
.tc-brand-wordmark strong, .tc-brand-wordmark em { font-family: var(--nv-font-display); font-size: 13px; font-style: normal; }
.tc-brand-wordmark strong { color: var(--nv-graphite); font-weight: 750; }
.tc-brand-wordmark em { color: var(--nv-teal-600); font-weight: 750; }
.tc-brand-wordmark small { width: 100%; margin-top: 5px; color: #89949A; font-size: 5.7px; font-weight: 700; letter-spacing: .16em; white-space: nowrap; }

.nv-side-nav { gap: 3px !important; padding-top: 4px !important; }
.nv-side-link {
  min-height: 42px !important;
  padding: 0 11px !important;
  gap: 10px !important;
  color: #4E5B62 !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
.nv-side-icon { width: 20px !important; height: 20px !important; color: #7A878D !important; }
.nv-side-icon svg { width: 18px !important; height: 18px !important; stroke-width: 1.8 !important; }
.nv-side-link:hover {
  color: #253238 !important;
  background: #F4F6F6 !important;
  border-color: transparent !important;
  transform: none !important;
}
.nv-side-link:hover .nv-side-icon { color: var(--nv-teal-600) !important; }
.nv-side-link.is-active {
  color: #123C37 !important;
  background: #EEF7F5 !important;
  border-color: #DCEEEA !important;
  box-shadow: none !important;
}
.nv-side-link.is-active .nv-side-icon { color: var(--nv-teal-600) !important; }
.nv-side-link::before { inset-inline-start: -1px !important; width: 3px !important; height: 18px !important; }
.nv-side-link.is-active::before { background: var(--nv-teal-600) !important; }

.nv-sidebar-footer { gap: 8px !important; }
.nv-user-chip {
  grid-template-columns: 36px 1fr !important;
  gap: 9px !important;
  padding: 9px !important;
  border-radius: 12px !important;
  background: #F8F9F9 !important;
  border: 1px solid var(--nv-line) !important;
  box-shadow: none !important;
}
.nv-avatar { width: 36px !important; height: 36px !important; font-size: 12px; background: var(--nv-graphite) !important; }
.nv-user-chip strong { color: #263238 !important; }
.nv-user-chip small { color: var(--nv-muted) !important; }
.nv-session-lock-sidebar, .nv-logout { font-size: 12px !important; border-radius: 9px !important; }

.nv-main { padding: 22px 28px 38px !important; background: #F5F6F7; }
.nv-topbar {
  min-height: 58px;
  align-items: center !important;
  margin: -22px -28px 24px !important;
  padding: 10px 28px !important;
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid var(--nv-line) !important;
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(12px);
}
.nv-topbar h1 { margin: 2px 0 0 !important; font-size: 21px !important; letter-spacing: -.025em !important; font-weight: 700 !important; }
.nv-eyebrow { color: var(--nv-teal-600) !important; font-size: 8px !important; font-weight: 800 !important; letter-spacing: .14em !important; }
.nv-top-actions { gap: 8px !important; }
.nv-lang-pill { padding: 3px !important; border-radius: 9px !important; background: #F6F7F8 !important; }
.nv-lang-pill a { padding: 6px 9px !important; border-radius: 7px !important; color: #6F7B81 !important; font-size: 10px !important; }
.nv-lang-pill .active { color: #173C37 !important; background: #FFFFFF !important; box-shadow: 0 1px 4px rgba(17,26,30,.08) !important; }
.nv-top-user, .nv-top-lock-trigger, .nv-top-phone-trigger { box-shadow: none !important; }

.nv-shell-card, .nv-panel, .nv-kpi, .nv-table-card, .nv-form-card, .nv-pipeline-admin-card {
  background: #FFFFFF !important;
  border-color: var(--nv-line) !important;
  box-shadow: var(--nv-shadow-soft) !important;
  backdrop-filter: none !important;
}
.nv-shell-card, .nv-panel, .nv-form-card { border-radius: 16px !important; }
.nv-kpi { border-radius: 14px !important; padding: 17px 18px !important; }
.nv-kpi span { font-size: 11px !important; color: #7A858B !important; font-weight: 650; }
.nv-kpi strong { margin: 5px 0 2px !important; font-size: 24px !important; font-weight: 700 !important; }
.nv-kpi small { color: #4E6A64 !important; font-weight: 700 !important; }

.nv-dashboard-hero {
  padding: 24px 26px !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  border: 1px solid var(--nv-line) !important;
  box-shadow: var(--nv-shadow-soft) !important;
}
.nv-dashboard-hero::after { display: none !important; }
.nv-dashboard-hero h2 { margin: 7px 0 8px !important; font-size: clamp(26px, 2.2vw, 36px) !important; letter-spacing: -.035em !important; }
.nv-dashboard-hero p { line-height: 1.6 !important; color: var(--nv-muted) !important; }
.nv-hero-badge { width: 88px !important; height: 88px !important; border-radius: 18px !important; color: var(--nv-teal-600) !important; background: #F3F8F7 !important; }
.nv-hero-badge svg { width: 36px !important; height: 36px !important; }
.nv-kpi-grid { gap: 12px !important; }
.nv-two-col { gap: 14px !important; }
.nv-panel { padding: 20px !important; }
.nv-panel-head h3, .nv-matrix h3 { font-size: 17px !important; }
.nv-activity-item, .nv-status-line { border-radius: 11px !important; }
.nv-activity-icon { border-radius: 9px !important; color: var(--nv-teal-600) !important; background: #EFF7F5 !important; }
.nv-bar { height: 6px !important; background: #EEF1F2 !important; }
.nv-bar i { background: var(--nv-teal-600) !important; }

.nv-section-head h2 { font-size: 25px !important; letter-spacing: -.03em !important; }
.nv-table-card { border-radius: 14px !important; }
.nv-table th, .nv-table td { padding: 14px 16px !important; }
.nv-table th { color: #748087 !important; font-size: 10px !important; letter-spacing: .075em !important; background: #F8F9F9 !important; }
.nv-table td { font-size: 13px; color: #2A373D; }
.nv-table tr:hover td { background: #FAFBFB !important; }
.nv-pill { padding: 5px 8px !important; border-radius: 7px !important; font-size: 10px !important; font-weight: 800 !important; }
.nv-form-card { padding: 22px !important; }
.nv-field { gap: 6px !important; font-size: 12px !important; font-weight: 750 !important; color: #46535A; }
.nv-field input, .nv-field select, .nv-field textarea, .nv-input {
  border-radius: 9px !important;
  border-color: #DDE2E4 !important;
  box-shadow: none !important;
}
.nv-field input:focus, .nv-field select:focus, .nv-field textarea:focus, .nv-input:focus-within {
  border-color: rgba(14,139,120,.55) !important;
  box-shadow: 0 0 0 3px rgba(14,139,120,.08) !important;
}
.nv-check-card { border-radius: 11px !important; box-shadow: none !important; }
.nv-check-card:hover { transform: none !important; border-color: #C9DCD8 !important; box-shadow: none !important; }

.nv-btn { border-radius: 9px !important; font-weight: 750 !important; box-shadow: none !important; }
.nv-btn-primary { background: var(--nv-emerald-700) !important; box-shadow: 0 4px 12px rgba(11,101,88,.14) !important; }
.nv-btn-primary:hover { background: #095B50 !important; }
.nv-btn-ghost { background: #FFFFFF !important; border-color: var(--nv-line-strong) !important; color: #3F4C52 !important; }

/* Login: premium but restrained, with room for the brand. */
.auth-body { background: #F2F4F5 !important; }
.nv-login-canvas { padding: 28px !important; }
.nv-login-window {
  width: min(1180px,100%) !important;
  min-height: 690px !important;
  grid-template-columns: .9fr 1.1fr !important;
  border-radius: 22px !important;
  border-color: var(--nv-line) !important;
  background: #FFFFFF !important;
  box-shadow: 0 24px 70px rgba(17,26,30,.10) !important;
  backdrop-filter: none !important;
}
.nv-login-card { padding: 48px 46px !important; background: #FFFFFF !important; }
.tc-login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 28px; }
.tc-login-brand > img { width: 58px; height: 58px; object-fit: contain; }
.tc-login-brand > div { line-height: 1; }
.tc-login-brand span { display: block; font-family: var(--nv-font-display); letter-spacing: .065em; }
.tc-login-brand strong, .tc-login-brand em { font-size: 18px; font-style: normal; }
.tc-login-brand strong { color: var(--nv-graphite); }
.tc-login-brand em { color: var(--nv-teal-600); font-weight: 700; }
.tc-login-brand small { display: block; margin-top: 6px; color: #8B969C; font-size: 7px; font-weight: 750; letter-spacing: .16em; }
.nv-login-card h1 { color: var(--nv-graphite) !important; font-size: 27px !important; }
.nv-login-card p { color: var(--nv-muted) !important; }
.nv-login-form label { color: #4B585E !important; font-weight: 700 !important; }
.nv-input { height: 52px !important; }
.nv-input svg { color: #859096 !important; }
.nv-login-submit { height: 54px !important; }
.nv-language-tabs { border-radius: 10px !important; background: #F7F8F8 !important; }
.nv-language-tabs .active { color: #16463F !important; background: #FFFFFF !important; }
.nv-feature-panel { padding: 52px !important; background: #182126 !important; color: #FFFFFF; }
.nv-feature-panel::after { display: none !important; }
.nv-hero-copy h2 { font-size: clamp(34px,3.3vw,50px) !important; }
.nv-hero-copy h2 span { color: #8EDDD0 !important; }
.nv-hero-copy p { color: #B8C2C7 !important; }
.nv-feature-item { background: rgba(255,255,255,.045) !important; border-color: rgba(255,255,255,.09) !important; box-shadow: none !important; border-radius: 13px !important; }
.nv-feature-icon { color: #8EDDD0 !important; background: rgba(142,221,208,.08) !important; }
.nv-feature-item span { color: #B8C2C7 !important; }
.nv-mini-dashboard div { background: rgba(255,255,255,.045) !important; border-color: rgba(255,255,255,.09) !important; border-radius: 11px !important; }
.nv-mini-dashboard span { color: #AAB6BB !important; }
.nv-mini-dashboard small { color: #8EDDD0 !important; }
.nv-mini-dashboard .violet { color: #B7A6FF !important; }

.tc-loader-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.tc-loader-brand img { width: 48px; height: 48px; object-fit: contain; }
.tc-loader-brand span { font-family: var(--nv-font-display); letter-spacing: .07em; }
.tc-loader-brand b { color: var(--nv-graphite); }
.tc-loader-brand em { color: var(--nv-teal-600); font-style: normal; font-weight: 750; }
.nv-initial-loader-card > .nv-initial-loader-logo { display: none !important; }
.nv-session-lock-brand img { object-fit: contain !important; }

@media (max-width: 1120px) {
  .nv-sidebar { width: var(--nv-sidebar-w) !important; }
  .nv-main { padding: 18px !important; }
  .nv-topbar { margin: -18px -18px 18px !important; padding: 10px 18px !important; }
}

/* ========================================================================== */
/* TrainingConnect — Premium Login V2                                        */
/* ========================================================================== */
.tc-auth-premium { margin: 0; background: #EEF1F2 !important; }
.tc-premium-login { min-height: 100vh; display: grid; place-items: center; padding: clamp(18px, 3vw, 42px); background: radial-gradient(circle at 16% 8%, rgba(14,139,120,.055), transparent 30%), #EEF1F2; }
.tc-premium-shell { width: min(1240px, 100%); min-height: min(790px, calc(100vh - 72px)); display: grid; grid-template-columns: minmax(400px,.82fr) minmax(560px,1.18fr); overflow: hidden; border: 1px solid #DDE3E5; border-radius: 28px; background: #fff; box-shadow: 0 30px 90px rgba(17,26,30,.11), 0 2px 8px rgba(17,26,30,.03); }
.tc-premium-formside { display: flex; align-items: center; background: #fff; }
.tc-login-inner { width: 100%; max-width: 470px; margin: 0 auto; padding: 58px 52px; }
.tc-login-logo { width: max-content; display: flex; align-items: center; gap: 13px; margin-bottom: 62px; text-decoration: none; }
.tc-login-logo > img { width: 48px; height: 48px; object-fit: contain; }
.tc-login-logo--stacked { display: flex; width: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.tc-login-logo--stacked > img { width: 94px; height: 94px; filter: drop-shadow(0 10px 22px rgba(17,26,30,.10)); }
.tc-login-wordmark { line-height: 1; }
.tc-login-wordmark > span { display: block; font-family: var(--nv-font-display); letter-spacing: .07em; white-space: nowrap; }
.tc-login-wordmark strong,.tc-login-wordmark em { font-size: 17px; font-style: normal; }
.tc-login-wordmark strong { color: #111A1E; font-weight: 760; }
.tc-login-wordmark em { color: #0E8B78; font-weight: 760; }
.tc-login-wordmark small { display: block; margin-top: 6px; color: #8A959A; font-size: 6.3px; font-weight: 760; letter-spacing: .17em; white-space: nowrap; }
.tc-login-wordmark--stacked { width: 100%; text-align: center; }
.tc-login-wordmark--stacked > span { font-size: 0; text-align: center; }
.tc-login-wordmark--stacked strong,.tc-login-wordmark--stacked em { font-size: 18px; }
.tc-login-wordmark--stacked small { margin-top: 8px; font-size: 7px; letter-spacing: .19em; text-align: center; }
.tc-login-heading { margin-bottom: 32px; }
.tc-login-kicker { display: inline-block; margin-bottom: 13px; color: #0B6558; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.tc-login-heading h1 { margin: 0 !important; color: #111A1E !important; font-family: var(--nv-font-display); font-size: clamp(34px, 3vw, 43px) !important; font-weight: 690; letter-spacing: -.045em; line-height: 1.04; text-align: left !important; }
.tc-login-heading p { max-width: 410px; margin: 13px 0 0 !important; color: #6D797E !important; font-size: 14px; line-height: 1.7; text-align: left !important; }
.tc-premium-form > label { display: block; margin: 19px 0 8px; color: #3F4B50; font-size: 12px; font-weight: 750; }
.tc-premium-input { height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid #DCE2E4; border-radius: 11px; background: #FAFBFB; transition: .18s ease; }
.tc-premium-input:focus-within { border-color: rgba(14,139,120,.58); background: #fff; box-shadow: 0 0 0 4px rgba(14,139,120,.075); }
.tc-premium-input > svg { width: 18px; height: 18px; flex: 0 0 auto; color: #879297; stroke-width: 1.7; }
.tc-premium-input input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #111A1E; font: inherit; font-size: 14px; }
.tc-premium-input input::placeholder { color: #A6AFB3; }
.tc-premium-input button { display: grid; place-items: center; padding: 5px; border: 0; background: transparent; color: #8D979B; cursor: pointer; }
.tc-premium-input button svg { width: 18px; height: 18px; }
.tc-login-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 26px; font-size: 12px; }
.tc-login-options > a { color: #0B6558; font-weight: 700; text-decoration: none; }
.tc-login-options > a:hover { text-decoration: underline; }
.tc-premium-checkbox { display: inline-flex !important; align-items: center; gap: 9px; margin: 0 !important; color: #667277 !important; font-size: 12px !important; font-weight: 600 !important; cursor: pointer; }
.tc-premium-checkbox input { width: 15px; height: 15px; margin: 0; accent-color: #0B6558; }
.tc-premium-submit { width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: 11px; background: #0B6558; color: #fff; font-size: 13px; font-weight: 780; letter-spacing: .01em; cursor: pointer; box-shadow: 0 8px 24px rgba(11,101,88,.16); transition: .18s ease; }
.tc-premium-submit:hover { background: #095B50; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(11,101,88,.20); }
.tc-premium-submit svg { width: 17px; height: 17px; stroke-width: 1.8; transition: transform .18s ease; }
.tc-premium-submit:hover svg { transform: translateX(2px); }
.tc-login-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 31px; padding-top: 22px; border-top: 1px solid #EDF0F1; }
.tc-premium-languages { display: flex; gap: 5px; }
.tc-premium-languages a { min-width: 34px; padding: 6px 8px; border-radius: 7px; color: #7A858A; font-size: 10px; font-weight: 750; text-align: center; text-decoration: none; }
.tc-premium-languages a.active { background: #F0F5F4; color: #0B6558; }
.tc-login-security { display: inline-flex; align-items: center; gap: 6px; color: #8A9498; font-size: 10px; white-space: nowrap; }
.tc-login-security svg { width: 14px; height: 14px; color: #0E8B78; stroke-width: 1.6; }
.tc-login-error { margin: 0 0 18px !important; border-radius: 10px !important; font-size: 12px; }

.tc-premium-story { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; padding: 58px 62px 46px; background: #141E22; color: #fff; }
.tc-premium-story::before { content: ''; position: absolute; z-index: -2; inset: 0; background: linear-gradient(140deg, rgba(255,255,255,.015), transparent 48%), radial-gradient(circle at 86% 18%, rgba(16,191,164,.11), transparent 34%), radial-gradient(circle at 20% 88%, rgba(131,96,246,.05), transparent 28%); }
.tc-premium-story::after { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 85%); }
.tc-story-symbol { position: absolute; z-index: -1; width: 490px; height: 490px; object-fit: contain; right: -145px; top: -115px; opacity: .075; filter: saturate(.75); transform: rotate(-5deg); }
.tc-story-topline { display: flex; align-items: center; gap: 10px; color: #96A3A8; font-size: 9px; font-weight: 800; letter-spacing: .21em; }
.tc-story-topline span { width: 34px; height: 1px; background: #10BFA4; }
.tc-story-copy { margin-top: clamp(90px, 13vh, 145px); max-width: 610px; }
.tc-story-copy h2 { margin: 0; font-family: var(--nv-font-display); font-size: clamp(46px, 4.9vw, 67px); font-weight: 620; line-height: .98; letter-spacing: -.06em; }
.tc-story-copy h2 span { color: #8EDDD0; }
.tc-story-copy p { max-width: 550px; margin: 24px 0 0; color: #AEB9BD; font-size: 15px; line-height: 1.75; }
.tc-story-capabilities { display: grid; gap: 0; margin-top: 47px; border-top: 1px solid rgba(255,255,255,.11); }
.tc-story-capabilities article { display: grid; grid-template-columns: 43px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.085); }
.tc-story-capabilities i { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(142,221,208,.15); border-radius: 10px; background: rgba(142,221,208,.055); color: #8EDDD0; font-style: normal; }
.tc-story-capabilities i svg { width: 18px; height: 18px; stroke-width: 1.5; }
.tc-story-capabilities strong { display: block; color: #F6F8F8; font-size: 13px; font-weight: 700; }
.tc-story-capabilities span { display: block; margin-top: 4px; color: #8F9CA1; font-size: 12px; line-height: 1.5; }
.tc-story-footer { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 30px; color: #7F8C91; font-size: 8px; font-weight: 800; letter-spacing: .19em; }
.tc-story-footer b { width: 3px; height: 3px; border-radius: 50%; background: #10BFA4; }

@media (max-width: 1050px) {
  .tc-premium-shell { grid-template-columns: 1fr; min-height: auto; }
  .tc-premium-story { display: none; }
  .tc-premium-formside { min-height: calc(100vh - 36px); }
  .tc-login-inner { max-width: 520px; }
}
@media (max-width: 600px) {
  .tc-premium-login { padding: 0; background: #fff; }
  .tc-premium-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .tc-premium-formside { min-height: 100vh; }
  .tc-login-inner { padding: 36px 24px; }
  .tc-login-logo { margin-bottom: 48px; }
  .tc-login-logo > img { width: 43px; height: 43px; }
  .tc-login-logo--stacked > img { width: 76px; height: 76px; }
  .tc-login-wordmark strong,.tc-login-wordmark em { font-size: 15px; }
  .tc-login-wordmark--stacked strong,.tc-login-wordmark--stacked em { font-size: 16px; }
  .tc-login-wordmark--stacked small { font-size: 6.6px; }
  .tc-login-heading h1 { font-size: 36px !important; }
  .tc-login-footer-row { align-items: flex-start; flex-direction: column; }
}
html[dir="rtl"] .tc-login-heading h1,html[dir="rtl"] .tc-login-heading p { text-align: right !important; }
html[dir="rtl"] .tc-premium-submit svg { transform: scaleX(-1); }

html[dir="rtl"] .tc-story-copy, html[dir="rtl"] .tc-story-capabilities, html[dir="rtl"] .tc-story-footer { text-align: right; }
html[dir="rtl"] .tc-story-capabilities article { grid-template-columns: 1fr 43px; }
html[dir="rtl"] .tc-story-capabilities article i { grid-column: 2; grid-row: 1; }
html[dir="rtl"] .tc-story-capabilities article div { grid-column: 1; grid-row: 1; }
html[dir="rtl"] .tc-story-topline { flex-direction: row-reverse; justify-content: flex-end; }

/* ========================================================================== */
/* TrainingConnect — Workspace signup / verification                          */
/* ========================================================================== */
.tc-workspace-cta { margin-top: 18px; padding: 15px 16px; border: 1px solid #DDE4E5; border-radius: 12px; background: #F8FAFA; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tc-workspace-cta > span { color: #7A858A; font-size: 11px; font-weight: 650; }
.tc-workspace-cta > a { display: inline-flex; align-items: center; gap: 8px; color: #0B6558; font-size: 12px; text-decoration: none; white-space: nowrap; }
.tc-workspace-cta > a svg { width: 15px; height: 15px; }
.tc-workspace-cta > a:hover { color: #0E8B78; }

.tc-register-page { min-height: 100vh; display: grid; place-items: center; padding: clamp(18px,3vw,42px); background: radial-gradient(circle at 12% 6%,rgba(14,139,120,.055),transparent 30%),#EEF1F2; }
.tc-register-shell { width: min(1240px,100%); min-height: min(790px,calc(100vh - 72px)); display: grid; grid-template-columns: minmax(620px,1.15fr) minmax(420px,.85fr); overflow: hidden; border: 1px solid #DDE3E5; border-radius: 28px; background: #fff; box-shadow: 0 30px 90px rgba(17,26,30,.11),0 2px 8px rgba(17,26,30,.03); }
.tc-register-formside { display:flex; align-items:center; background:#fff; }
.tc-register-inner { width:100%; max-width:680px; margin:0 auto; padding:48px 52px; }
.tc-register-brand { display:inline-flex; align-items:center; gap:11px; margin-bottom:34px; text-decoration:none; }
.tc-register-brand img { width:52px; height:52px; object-fit:contain; }
.tc-register-brand span { font-family:var(--nv-font-display); letter-spacing:.07em; }
.tc-register-brand strong,.tc-register-brand em { font-size:16px; font-style:normal; font-weight:780; }
.tc-register-brand strong { color:#111A1E; } .tc-register-brand em { color:#0E8B78; }
.tc-register-heading { margin-bottom:26px; }
.tc-register-heading h1 { margin:0; color:#111A1E; font-family:var(--nv-font-display); font-size:clamp(32px,3vw,43px); line-height:1.04; letter-spacing:-.045em; font-weight:690; }
.tc-register-heading p { max-width:600px; margin:12px 0 0; color:#6D797E; font-size:13px; line-height:1.7; }
.tc-register-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.tc-register-grid label { display:block; }
.tc-register-grid label > span { display:block; margin:0 0 7px; color:#3F4B50; font-size:11px; font-weight:750; }
.tc-register-wide { grid-column:1/-1; }
.tc-register-note { margin:16px 0; padding:11px 13px; border-left:2px solid #10BFA4; background:#F6FAF9; color:#657176; font-size:11px; line-height:1.55; }
.tc-register-submit { margin-top:2px; }
.tc-register-bottom { display:flex; justify-content:center; gap:7px; margin-top:18px; color:#7A858A; font-size:11px; }
.tc-register-bottom a { color:#0B6558; font-weight:750; }
.tc-register-story { position:relative; isolation:isolate; overflow:hidden; padding:58px; background:#141E22; color:#fff; }
.tc-register-story::before { content:''; position:absolute; inset:0; z-index:-2; background:radial-gradient(circle at 85% 15%,rgba(16,191,164,.13),transparent 33%),radial-gradient(circle at 10% 90%,rgba(131,96,246,.05),transparent 30%); }
.tc-register-story-kicker { color:#8EDDD0; }
.tc-register-story h2 { max-width:450px; margin:105px 0 20px; font-family:var(--nv-font-display); font-size:48px; line-height:1; letter-spacing:-.055em; font-weight:620; }
.tc-register-story > p { max-width:450px; margin:0; color:#AEB9BD; font-size:14px; line-height:1.75; }
.tc-register-steps { margin-top:50px; border-top:1px solid rgba(255,255,255,.11); }
.tc-register-steps > div { display:grid; grid-template-columns:42px 1fr; gap:16px; padding:19px 0; border-bottom:1px solid rgba(255,255,255,.085); }
.tc-register-steps b { color:#8EDDD0; font-size:11px; letter-spacing:.1em; }
.tc-register-steps strong { display:block; color:#F6F8F8; font-size:13px; }
.tc-register-steps small { display:block; margin-top:4px; color:#8F9CA1; font-size:11px; line-height:1.5; }

.tc-verify-page { min-height:100vh; display:grid; place-items:center; padding:24px; background:#EEF1F2; }
.tc-verify-card { width:min(520px,100%); padding:48px; border:1px solid #DDE3E5; border-radius:24px; background:#fff; box-shadow:0 26px 70px rgba(17,26,30,.10); text-align:center; }
.tc-verify-card > img { width:78px; height:78px; object-fit:contain; margin-bottom:20px; }
.tc-verify-card h1 { margin:8px 0 12px; font-family:var(--nv-font-display); font-size:34px; letter-spacing:-.04em; }
.tc-verify-card > p { margin:0 auto 12px; color:#6D797E; font-size:13px; line-height:1.7; }
.tc-verify-email { display:inline-block; margin:6px 0 20px; color:#111A1E; font-size:13px; }
.tc-verify-back { display:inline-block; margin-top:18px; color:#6D797E; font-size:11px; font-weight:700; }
html[dir="rtl"] .tc-register-note { border-left:0; border-right:2px solid #10BFA4; }

@media (max-width:1050px) { .tc-register-shell{grid-template-columns:1fr}.tc-register-story{display:none}.tc-register-formside{min-height:calc(100vh - 36px)} }
@media (max-width:640px) { .tc-register-page{padding:0;background:#fff}.tc-register-shell{min-height:100vh;border:0;border-radius:0;box-shadow:none}.tc-register-inner{padding:34px 22px}.tc-register-grid{grid-template-columns:1fr}.tc-register-wide{grid-column:auto}.tc-workspace-cta{align-items:flex-start;flex-direction:column}.tc-verify-card{padding:34px 24px;border-radius:18px} }

/* ========================================================================== */
/* TrainingConnect — Workspace Navigation V5                                 */
/* Compact dark rail + hover panel + persistent pin, inspired by AxiCore.    */
/* ========================================================================== */
@media (min-width: 1121px) {
  :root { --tc-rail-w: 78px; --tc-panel-w: 326px; }
  body.app-body { --nv-sidebar-w: var(--tc-rail-w); }
  .nv-app-shell { grid-template-columns: var(--tc-rail-w) minmax(0,1fr) !important; }
  .nv-sidebar.tc-workspace-sidebar {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    width: var(--tc-rail-w) !important;
    height: 100vh !important;
    padding: 10px !important;
    overflow: visible !important;
    display: block !important;
    background: transparent !important;
    border: 0 !important;
  }
  .tc-nav-rail {
    position: relative;
    z-index: 3;
    height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px 11px;
    border: 1px solid #202B31;
    border-radius: 26px;
    background: #10171C;
    box-shadow: 0 18px 46px rgba(17,26,30,.14);
  }
  .tc-rail-brand {
    width: 50px; height: 50px; flex: 0 0 50px;
    display: grid; place-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 17px;
    background: #172126;
    text-decoration: none;
  }
  .tc-rail-brand img { width: 40px; height: 40px; object-fit: contain; }
  .tc-rail-nav {
    width: 100%; display: flex; flex-direction: column; align-items: center;
    gap: 7px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  }
  .tc-rail-nav::-webkit-scrollbar { display: none; }
  .tc-rail-link {
    position: relative; width: 46px; height: 46px; flex: 0 0 46px;
    display: grid; place-items: center;
    border: 1px solid transparent; border-radius: 15px;
    color: #8F9AA0; text-decoration: none;
    transition: background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
  }
  .tc-rail-link:hover { color: #E8F0EF; background: #1B252A; transform: translateY(-1px); }
  .tc-rail-link.is-active {
    color: #9AE5D8; background: #202B2E; border-color: rgba(142,221,208,.18);
    box-shadow: inset 0 0 0 1px rgba(16,191,164,.03);
  }
  .tc-rail-link.is-active::after {
    content: ''; position: absolute; inset-inline-end: -12px; width: 3px; height: 20px;
    border-radius: 999px; background: #10BFA4;
  }
  .tc-rail-link .nv-side-icon { width: 21px !important; height: 21px !important; color: currentColor !important; }
  .tc-rail-link .nv-side-icon svg { width: 20px !important; height: 20px !important; stroke-width: 1.75 !important; }
  .tc-rail-footer { margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; }
    width: 46px; height: 46px; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
    background: #172126; color: #C5D0D4; cursor: pointer; transition: .18s ease;
  }
  .tc-rail-user { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); text-decoration: none; overflow: hidden; }
  .tc-rail-user .nv-avatar,.tc-rail-user .nv-avatar-img { width: 42px !important; height: 42px !important; border-radius: 50% !important; }

  .tc-nav-panel {
    position: absolute; z-index: 2; inset-block: 10px; inset-inline-start: calc(var(--tc-rail-w) - 2px);
    width: var(--tc-panel-w); min-height: calc(100vh - 20px);
    display: flex; flex-direction: column;
    padding: 24px 20px 18px;
    border: 1px solid #E4E8E9; border-inline-start: 0;
    border-radius: 0 26px 26px 0;
    background: rgba(255,255,255,.985);
    box-shadow: 24px 24px 70px rgba(17,26,30,.14);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-14px);
    transition: opacity .18s ease,transform .2s cubic-bezier(.2,.8,.2,1),visibility .18s ease;
  }
  html[dir="rtl"] .tc-nav-panel { border-radius: 26px 0 0 26px; transform: translateX(14px); }
  .tc-workspace-sidebar:hover .tc-nav-panel,
  .tc-workspace-sidebar:focus-within .tc-nav-panel,
  .tc-workspace-sidebar.tc-hover-open .tc-nav-panel {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0);
  }
  .tc-nav-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding-bottom:21px; border-bottom:1px solid #EDF0F1; }
  .tc-panel-brand { display:flex; align-items:center; gap:10px; min-width:0; color:inherit; text-decoration:none; }
  .tc-panel-brand img { width:44px; height:44px; object-fit:contain; }
  .tc-panel-brand > span { display:flex; flex-wrap:wrap; align-content:center; min-width:0; line-height:1; }
  .tc-panel-brand strong,.tc-panel-brand em { font-family:var(--nv-font-display); font-size:13px; font-style:normal; letter-spacing:.055em; }
  .tc-panel-brand strong { color:#111A1E; font-weight:780; }
  .tc-panel-brand em { color:#0E8B78; font-weight:780; }
  .tc-panel-brand small { width:100%; margin-top:5px; color:#929CA1; font-size:5.5px; font-weight:750; letter-spacing:.16em; white-space:nowrap; }
  .tc-panel-title { padding:24px 5px 14px; }
  .tc-panel-title > span { color:#0B6558; font-size:8px; font-weight:850; letter-spacing:.2em; }
  .tc-panel-title h2 { margin:6px 0 3px; color:#111A1E; font-family:var(--nv-font-display); font-size:26px; font-weight:620; letter-spacing:-.035em; }
  .tc-panel-title p { margin:0; color:#879298; font-size:11px; line-height:1.5; }
  .tc-panel-nav { display:flex; flex-direction:column; gap:3px; padding:2px 0 14px; overflow:auto; scrollbar-width:thin; }
  .tc-panel-link {
    position:relative; display:grid; grid-template-columns:38px minmax(0,1fr) 16px; align-items:center; gap:11px;
    min-height:55px; padding:7px 10px; border:1px solid transparent; border-radius:13px;
    color:#324047; text-decoration:none; transition:.15s ease;
  }
  .tc-panel-link:hover { background:#F5F7F7; color:#111A1E; }
  .tc-panel-link.is-active { background:#F0F7F5; border-color:#DDEDE9; color:#123D37; }
  .tc-panel-link.is-active::before { content:''; position:absolute; inset-inline-start:-1px; width:3px; height:21px; border-radius:0 3px 3px 0; background:#10BFA4; }
  html[dir="rtl"] .tc-panel-link.is-active::before { border-radius:3px 0 0 3px; }
  .tc-panel-icon { width:38px; height:38px; display:grid; place-items:center; border:1px solid #E7EBEC; border-radius:11px; background:#FAFBFB; color:#78858B; }
  .tc-panel-link.is-active .tc-panel-icon { color:#0E8B78; border-color:#D8EAE6; background:#fff; }
  .tc-panel-icon svg { width:18px; height:18px; stroke-width:1.7; }
  .tc-panel-copy { min-width:0; }
  .tc-panel-copy strong { display:block; overflow:hidden; color:inherit; font-size:12.5px; font-weight:760; text-overflow:ellipsis; white-space:nowrap; }
  .tc-panel-copy small { display:block; margin-top:3px; color:#96A0A5; font-size:9.5px; }
  .tc-panel-arrow { width:14px; height:14px; color:#A6AFB3; stroke-width:1.7; }
  html[dir="rtl"] .tc-panel-arrow { transform:scaleX(-1); }
  .tc-panel-footer { margin-top:auto; padding-top:15px; border-top:1px solid #EDF0F1; }
  .tc-panel-user { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:6px; }
  .tc-panel-user .nv-user-chip { min-width:0; margin:0 !important; }
  .tc-panel-user .nv-session-lock-sidebar,.tc-panel-user .nv-logout { width:38px; height:38px; display:grid !important; place-items:center; padding:0 !important; overflow:hidden; text-indent:-9999px; border:1px solid #E1E6E8 !important; background:#F8FAFA !important; }
  .tc-panel-user .nv-session-lock-sidebar::after { content:'⌁'; text-indent:0; font-size:15px; color:#65727A; }
  .tc-panel-user .nv-logout::after { content:'↗'; text-indent:0; font-size:15px; color:#65727A; }
}

@media (max-width: 1120px) {
  .nv-sidebar.tc-workspace-sidebar { padding:0 !important; background:#fff !important; }
  .tc-nav-rail { display:none !important; }
  .tc-nav-panel {
    position:relative !important; inset:auto !important; width:100% !important; min-height:100vh;
    display:flex !important; flex-direction:column; padding:24px 20px 18px;
    border:0 !important; border-radius:0 !important; background:#fff !important; box-shadow:none !important;
    opacity:1 !important; visibility:visible !important; pointer-events:auto !important; transform:none !important;
  }
}
/* TrainingConnect Phase B — workspace configuration */
.tc-settings-page{max-width:1280px;margin:0 auto;padding:8px 0 48px}.tc-settings-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:10px 0 28px}.tc-settings-head span,.tc-settings-card>small,.tc-foundation-card span{color:#0b6558;font-size:10px;font-weight:800;letter-spacing:.18em}.tc-settings-head h1{margin:7px 0 8px;color:#111a1e;font:650 34px/1.08 var(--nv-font-display);letter-spacing:-.035em}.tc-settings-head p,.tc-settings-card p{margin:0;color:#718086;font-size:13px;line-height:1.65}.tc-settings-tab{flex:0 0 auto;padding:10px 14px;border:1px solid #dfe5e7;border-radius:10px;background:#fff;color:#0b6558;font-size:12px;font-weight:750;text-decoration:none}.tc-settings-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:20px}.tc-settings-card{padding:28px;border:1px solid #e0e5e7;border-radius:18px;background:#fff;box-shadow:0 10px 35px rgba(17,26,30,.035)}.tc-settings-card-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.tc-settings-card h2{margin:5px 0 6px;color:#172126;font:650 20px/1.2 var(--nv-font-display)}.tc-settings-card-title small{color:#0e8b78;font-weight:800;letter-spacing:.14em}.tc-settings-form{display:grid;gap:15px}.tc-settings-form label{display:grid;gap:7px;color:#46545a;font-size:11px;font-weight:750}.tc-settings-form input,.tc-settings-form select{width:100%;height:45px;padding:0 12px;border:1px solid #dce3e5;border-radius:9px;background:#fafbfb;color:#172126;outline:none}.tc-settings-form input:focus,.tc-settings-form select:focus{border-color:rgba(14,139,120,.55);background:#fff;box-shadow:0 0 0 3px rgba(14,139,120,.07)}.tc-field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tc-field-row-3{grid-template-columns:1fr .7fr .55fr}.tc-primary-btn,.tc-secondary-btn{height:45px;padding:0 18px;border:0;border-radius:9px;font-weight:780;cursor:pointer}.tc-primary-btn{justify-self:start;background:#0b6558;color:#fff;box-shadow:0 8px 20px rgba(11,101,88,.14)}.tc-secondary-btn{background:#f0f5f4;color:#0b6558;border:1px solid #d7e8e4}.tc-logo-card form{display:grid;gap:12px;margin-top:20px}.tc-logo-card input[type=file]{font-size:11px;color:#69767b}.tc-company-logo-preview{width:116px;height:116px;display:grid;place-items:center;margin:24px 0 18px;border:1px solid #e1e6e8;border-radius:22px;background:#f7f9f9}.tc-company-logo-preview img{max-width:82px;max-height:82px;object-fit:contain}.tc-company-logo-preview span{font:700 28px var(--nv-font-display);color:#0b6558}.tc-foundation-card{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:20px;padding:25px 28px;border-radius:18px;background:#141e22;color:#fff}.tc-foundation-card h2{margin:6px 0;color:#fff;font:620 20px var(--nv-font-display)}.tc-foundation-card p{max-width:680px;margin:0;color:#aeb9bd;font-size:12px;line-height:1.6}.tc-foundation-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:360px}.tc-foundation-chips b{padding:7px 10px;border:1px solid rgba(142,221,208,.15);border-radius:999px;color:#8eddd0;font-size:9px;letter-spacing:.04em}.tc-switch{display:flex!important;grid-template-columns:auto auto!important;align-items:center;gap:8px!important}.tc-switch input{display:none}.tc-switch span{width:34px;height:19px;position:relative;border-radius:999px;background:#d6dddf}.tc-switch span:after{content:'';position:absolute;width:13px;height:13px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.15s}.tc-switch input:checked+span{background:#0b6558}.tc-switch input:checked+span:after{transform:translateX(15px)}.tc-test-result{display:grid;gap:5px;margin-top:22px;padding:14px;border-radius:10px;background:#f6f8f8;font-size:11px}.tc-test-result.success b{color:#0b6558}.tc-test-result.failed b{color:#b42318}.tc-test-result span{color:#5f6c72;word-break:break-word}.tc-test-result small{color:#97a1a5}@media(max-width:900px){.tc-settings-grid{grid-template-columns:1fr}.tc-settings-head,.tc-foundation-card{align-items:flex-start;flex-direction:column}.tc-foundation-chips{justify-content:flex-start}}@media(max-width:620px){.tc-field-row,.tc-field-row-3{grid-template-columns:1fr}.tc-settings-card{padding:20px}.tc-settings-head h1{font-size:28px}}

/* TrainingConnect CRM Core — neutral workspace UI */
.tc-core-page{max-width:1500px;margin:0 auto;padding:4px 0 40px;color:#111A1E}.tc-core-page>header{display:flex;justify-content:space-between;align-items:flex-end;margin:4px 0 22px}.tc-core-page>header span{display:block;color:#0B6558;font-size:10px;font-weight:800;letter-spacing:.16em}.tc-core-page>header h1{margin:7px 0 6px;font-family:var(--nv-font-display);font-size:32px;letter-spacing:-.035em;color:#111A1E}.tc-core-page>header p,.tc-muted{margin:0;color:#7A858A;font-size:13px}.tc-core-grid{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:18px;align-items:start}.tc-core-card{background:#fff;border:1px solid #E2E7E9;border-radius:16px;padding:20px;box-shadow:0 5px 18px rgba(17,26,30,.035)}.tc-core-card h2{margin:0 0 16px;font-size:14px;color:#233036;font-weight:760}.tc-core-card h2 small{margin-left:8px;color:#8A959A;font-weight:600}.tc-core-card h3{font-size:12px;margin:22px 0 10px}.tc-core-card hr{border:0;border-top:1px solid #EDF1F2;margin:24px 0}.tc-core-form{display:grid;gap:10px}.tc-core-form input,.tc-core-form select,.tc-core-form textarea{width:100%;box-sizing:border-box;border:1px solid #DDE3E5;background:#FAFBFB;color:#111A1E;border-radius:10px;padding:11px 12px;font:inherit;font-size:12px;outline:0}.tc-core-form textarea{min-height:82px;resize:vertical}.tc-core-form input:focus,.tc-core-form select:focus,.tc-core-form textarea:focus{border-color:#5AAE9F;box-shadow:0 0 0 3px rgba(14,139,120,.07);background:#fff}.tc-core-form button{border:0;border-radius:10px;background:#0B6558;color:#fff;padding:12px 15px;font-weight:750;cursor:pointer}.tc-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.tc-core-table{overflow:auto}.tc-core-table table{width:100%;border-collapse:collapse;font-size:12px}.tc-core-table th{text-align:left;color:#8A959A;font-size:10px;text-transform:uppercase;letter-spacing:.08em;padding:9px 10px;border-bottom:1px solid #E8ECEE}.tc-core-table td{padding:13px 10px;border-bottom:1px solid #EEF1F2;color:#48555A;vertical-align:top}.tc-core-table td strong{display:block;color:#172126;font-size:12.5px}.tc-core-table td small{display:block;color:#98A2A6;margin-top:3px}.tc-core-table .empty{text-align:center;padding:34px;color:#9AA4A8}.tc-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#F0F5F4;color:#0B6558;font-size:10px;font-weight:750;text-transform:capitalize}.tc-core-flash{padding:11px 13px;border-radius:10px;margin-bottom:16px;font-size:12px}.tc-core-flash.success{background:#EDF8F5;color:#0B6558;border:1px solid #CFE9E2}.tc-core-flash.error{background:#FFF3F2;color:#A33B32;border:1px solid #F3D4D0}.tc-check{display:flex;align-items:center;gap:8px;color:#667277;font-size:12px}.tc-check input{width:auto}.tc-mini-row{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #EDF1F2;font-size:11px}.tc-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.tc-stat-grid article{background:#fff;border:1px solid #E2E7E9;border-radius:14px;padding:16px}.tc-stat-grid span{display:block;color:#8A959A;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.tc-stat-grid strong{display:block;margin-top:8px;font-size:25px;color:#111A1E;font-family:var(--nv-font-display)}.tc-pipeline-value{font-family:var(--nv-font-display);font-size:36px;color:#0B6558;letter-spacing:-.04em}.tc-join{min-height:100vh;display:grid;place-items:center;background:#EEF1F2;padding:24px}.tc-join>section{width:min(460px,100%);background:#fff;border:1px solid #DFE5E7;border-radius:20px;padding:32px;box-shadow:0 20px 60px rgba(17,26,30,.09)}.tc-join>section>span{font-size:10px;color:#0B6558;font-weight:800;letter-spacing:.16em}.tc-join h1{font-family:var(--nv-font-display);font-size:30px;margin:10px 0}.tc-join p{color:#6F7B80;font-size:13px;line-height:1.6;margin-bottom:20px}@media(max-width:980px){.tc-core-grid{grid-template-columns:1fr}.tc-stat-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.tc-row{grid-template-columns:1fr}.tc-stat-grid{grid-template-columns:1fr 1fr}.tc-core-page>header h1{font-size:27px}}


/* ========================================================================== */
/* TrainingConnect V6 — first-paint premium startup loader                    */
/* ========================================================================== */
.nv-initial-loader {
  background: #10191d !important;
  transition: opacity .52s cubic-bezier(.22,.61,.36,1), visibility .52s ease !important;
}
.nv-initial-loader.is-server-startup { opacity: 1; visibility: visible; pointer-events: auto; }
.nv-initial-loader.is-leaving { opacity: 0 !important; visibility: hidden !important; }
.nv-initial-loader::before,
.nv-initial-loader::after,
.nv-initial-loader-orb { display: none !important; }
.tc-startup-ambient,
.tc-startup-ambient i { position: absolute; inset: 0; pointer-events: none; }
.tc-startup-ambient::before {
  content: '';
  position: absolute;
  width: min(72vw, 920px);
  aspect-ratio: 1;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,191,164,.075) 0%, rgba(14,139,120,.035) 34%, transparent 68%);
}
.tc-startup-ambient i {
  margin: auto;
  width: 430px; height: 430px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 50%;
  animation: tcStartupAmbient 9s linear infinite;
}
.tc-startup-ambient i:nth-child(2) { width: 620px; height: 620px; opacity: .7; animation-duration: 14s; animation-direction: reverse; }
.tc-startup-ambient i:nth-child(3) { width: 820px; height: 820px; opacity: .45; animation-duration: 20s; }
.nv-initial-loader-card {
  width: min(430px, calc(100vw - 40px)) !important;
  padding: 46px 42px 38px !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,.025) !important;
  box-shadow: 0 36px 110px rgba(0,0,0,.30) !important;
  backdrop-filter: blur(18px) !important;
  animation: tcStartupCardIn .55s cubic-bezier(.22,.61,.36,1) both !important;
}
.tc-startup-mark {
  position: relative;
  width: 116px; height: 116px;
  display: grid; place-items: center;
  margin: 0 auto 22px;
}
.tc-startup-mark img {
  position: relative; z-index: 3;
  width: 82px; height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(0,0,0,.22));
  animation: tcStartupLogo 2.2s ease-in-out infinite;
}
.tc-startup-ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(16,191,164,.23);
  animation: tcStartupRing 2.3s ease-out infinite;
}
.tc-startup-ring--two { inset: 17px; border-color: rgba(131,96,246,.18); animation-delay: .75s; }
.tc-loader-brand { margin: 0 0 22px !important; justify-content: center; }
.tc-loader-brand img { display: none !important; }
.tc-loader-brand span { font-size: 15px; letter-spacing: .14em !important; }
.tc-loader-brand b { color: #f7f9f9 !important; }
.tc-loader-brand em { color: #89d8cb !important; }
.nv-initial-loader-card h2 {
  margin: 0 !important;
  color: #f7f9f9 !important;
  font-size: 24px !important;
  font-weight: 640 !important;
  letter-spacing: -.035em !important;
}
.nv-initial-loader-card p {
  margin: 10px auto 26px !important;
  color: rgba(226,233,235,.58) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
.nv-initial-loader-progress {
  width: 170px !important;
  height: 2px !important;
  margin: 0 auto !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}
.nv-initial-loader-progress span {
  width: 52% !important;
  background: linear-gradient(90deg, transparent, #8eddd0, #10bfa4, transparent) !important;
  box-shadow: 0 0 18px rgba(16,191,164,.25) !important;
  animation: tcStartupProgress 1.35s ease-in-out infinite !important;
}
.nv-initial-loader-card small {
  margin-top: 21px !important;
  color: rgba(222,230,232,.42) !important;
  font-size: 9px !important;
  font-weight: 760 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
}
.nv-initial-loader-card small::before { display: none !important; }
.nv-initial-loader-card small > span {
  width: 5px; height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #10bfa4;
  box-shadow: 0 0 0 4px rgba(16,191,164,.09);
}
@keyframes tcStartupCardIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes tcStartupLogo { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes tcStartupRing { 0% { transform: scale(.72); opacity: 0; } 25% { opacity: .8; } 100% { transform: scale(1.08); opacity: 0; } }
@keyframes tcStartupProgress { 0% { transform: translateX(-130%); } 100% { transform: translateX(250%); } }
@keyframes tcStartupAmbient { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .nv-initial-loader-card { padding: 38px 26px 32px !important; border-radius: 22px !important; }
  .tc-startup-mark { width: 104px; height: 104px; }
  .tc-startup-mark img { width: 72px; height: 72px; }
  .nv-initial-loader-card h2 { font-size: 21px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-startup-ambient i,
  .tc-startup-mark img,
  .tc-startup-ring,
  .nv-initial-loader-progress span,
  .nv-initial-loader-card { animation: none !important; }
}


/* ========================================================================== */
/* TrainingConnect — Header identity / active workspace V6.1                  */
/* ========================================================================== */
.tc-top-identity {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 5px 6px 5px 7px;
  border: 1px solid #E1E6E8;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(17,26,30,.055);
}
.tc-top-workspace,.tc-top-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 3px 8px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .16s ease;
}
.tc-top-workspace:hover,.tc-top-person:hover { background: #F4F7F7; }
.tc-top-workspace-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #E2E8E9;
  border-radius: 10px;
  background: #fff;
}
.tc-top-workspace-logo img { width: 27px; height: 27px; object-fit: contain; display: block; }
.tc-top-workspace-copy,.tc-top-person-copy { min-width: 0; line-height: 1.12; }
.tc-top-workspace-copy strong,.tc-top-person-copy strong {
  display: block;
  max-width: 165px;
  overflow: hidden;
  color: #172126;
  font-size: 11.5px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-top-workspace-copy small,.tc-top-person-copy small {
  display: block;
  margin-top: 4px;
  color: #8A969B;
  font-size: 9.5px;
  font-weight: 620;
  white-space: nowrap;
}
.tc-top-workspace-copy small { color: #0B7A69; }
.tc-top-identity-separator { width: 1px; height: 28px; margin: 0 3px; background: #E8ECEE; }
.tc-top-person-avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; }
.tc-top-person-avatar .nv-top-avatar,.tc-top-person-avatar .nv-top-avatar-img { width: 32px !important; height: 32px !important; }
.tc-top-identity-actions { display: flex; align-items: center; gap: 3px; margin-left: 4px; }
.tc-top-identity-action {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #6F7C81;
  text-decoration: none;
  transition: .16s ease;
}
.tc-top-identity-action:hover { border-color: #DFE6E7; background: #F3F6F6; color: #0B6558; }
.tc-top-identity-action--logout:hover { border-color: #F0DCDC; background: #FCF4F4; color: #A54040; }
.tc-top-identity-action svg { width: 16px; height: 16px; stroke-width: 1.7; }
@media (max-width: 1180px) {
  .tc-top-workspace-copy { display:none; }
  .tc-top-identity-separator { margin:0 1px; }
}
@media (max-width: 860px) {
  .tc-top-person-copy { display:none; }
  .tc-top-identity { min-height:44px; padding:4px; }
  .tc-top-workspace,.tc-top-person { padding:2px 4px; }
  .tc-top-identity-action { width:30px; height:30px; }
}
html[dir="rtl"] .tc-top-identity-actions { margin-left:0; margin-right:4px; }


/* ========================================================================== */
/* TrainingConnect — Menu V5.2: complete iconography + footer account repair */
/* ========================================================================== */
@media (min-width: 821px) {
  .tc-panel-nav { padding-right: 5px; scrollbar-width: thin; scrollbar-color: #A5ADAF transparent; }
  .tc-panel-link { min-height: 50px; }
  .tc-panel-icon { color: #6F7D82 !important; }
  .tc-panel-icon svg,
  .tc-rail-link .nv-side-icon svg { fill: none !important; stroke: currentColor !important; stroke-linecap: round; stroke-linejoin: round; }
  .tc-panel-link:hover .tc-panel-icon,
  .tc-panel-link.is-active .tc-panel-icon { color: #0B6558 !important; }

  .tc-panel-footer {
    position: relative;
    z-index: 5;
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding: 12px 0 0 !important;
    border-top: 1px solid #EDF0F1;
    background: linear-gradient(180deg, rgba(255,255,255,.82), #fff 22%);
  }
  .tc-panel-workspace-mini {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid #E4E9EA;
    border-radius: 14px;
    background: #FAFBFB;
  }
  .tc-panel-workspace-mini-logo {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    overflow: hidden;
    border: 1px solid #E1E7E8;
    border-radius: 11px;
    background: #fff;
  }
  .tc-panel-workspace-mini-logo img { width: 30px; height: 30px; object-fit: contain; }
  .tc-panel-workspace-mini-copy { min-width: 0; display: block; }
  .tc-panel-workspace-mini-copy small {
    display: block; margin-bottom: 3px;
    color: #0E8B78; font-size: 7px; font-weight: 850; letter-spacing: .14em;
  }
  .tc-panel-workspace-mini-copy strong {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: #243238; font-size: 11px; font-weight: 800;
  }

  .tc-panel-account-card {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #E1E7E8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17,26,30,.045);
  }
  .tc-panel-account-person {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
  }
  .tc-panel-account-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; }
  .tc-panel-account-avatar .nv-avatar,
  .tc-panel-account-avatar .nv-avatar-img { width: 38px !important; height: 38px !important; border-radius: 50% !important; }
  .tc-panel-account-copy { min-width: 0; display: block; }
  .tc-panel-account-copy strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#1D2A2F; font-size:11px; font-weight:850; }
  .tc-panel-account-copy small { display:block; margin-top:2px; color:#7B888D; font-size:9px; font-weight:650; }
  .tc-panel-account-actions { display: flex; align-items: center; gap: 4px; }
  .tc-panel-account-action {
    width: 31px; height: 31px;
    display: grid; place-items: center;
    padding: 0;
    border: 1px solid #E2E7E8;
    border-radius: 9px;
    background: #F8FAFA;
    color: #65747A;
    cursor: pointer;
    text-decoration: none;
    transition: .16s ease;
  }
  .tc-panel-account-action:hover { border-color:#CFDEDB; background:#F0F7F5; color:#0B6558; transform:translateY(-1px); }
  .tc-panel-account-action--logout { background:#151F23; border-color:#151F23; color:#fff; }
  .tc-panel-account-action--logout:hover { background:#263237; border-color:#263237; color:#fff; }
  .tc-panel-account-action svg { width: 15px; height: 15px; stroke-width: 1.7; stroke-linecap:round; stroke-linejoin:round; }

  /* Old V5 footer controls are fully retired by V5.2 markup. */
  .tc-panel-footer .tc-panel-user { display:none !important; }
}

@media (max-width: 820px) {
  .tc-panel-workspace-mini { display:none; }
  .tc-panel-account-card { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px; border-top:1px solid #EDF0F1; }
  .tc-panel-account-person { min-width:0; display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; }
  .tc-panel-account-avatar .nv-avatar,.tc-panel-account-avatar .nv-avatar-img { width:38px!important;height:38px!important;border-radius:50%!important; }
  .tc-panel-account-copy strong,.tc-panel-account-copy small { display:block; }
  .tc-panel-account-copy strong { font-size:12px;color:#1D2A2F; }
  .tc-panel-account-copy small { font-size:10px;color:#7B888D;margin-top:2px; }
  .tc-panel-account-actions { display:flex; gap:5px; }
  .tc-panel-account-action { width:34px;height:34px;display:grid;place-items:center;border:1px solid #E2E7E8;border-radius:10px;background:#F8FAFA;color:#65747A;text-decoration:none;padding:0; }
  .tc-panel-account-action--logout { background:#151F23;border-color:#151F23;color:#fff; }
  .tc-panel-account-action svg { width:16px;height:16px; }
}

/* ========================================================================== */
/* TrainingConnect V7 — Global premium form system                            */
/* Master reference: Workspace / Company identity                            */
/* ========================================================================== */
:root{
  --tc-form-border:#dce3e6;
  --tc-form-border-strong:#cdd7da;
  --tc-form-surface:#ffffff;
  --tc-form-field:#fbfcfc;
  --tc-form-muted:#718086;
  --tc-form-ink:#111a1e;
  --tc-form-accent:#0b6558;
  --tc-form-accent-2:#0e8b78;
  --tc-form-focus:rgba(14,139,120,.09);
}
.tc-core-page{max-width:1500px;margin:0 auto;padding:8px 4px 34px;}
.tc-core-page>header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 26px;padding:2px 2px 0;}
.tc-core-page>header span,.tc-section-kicker{display:block;color:var(--tc-form-accent-2);font-size:10px;font-weight:850;letter-spacing:.19em;text-transform:uppercase;margin-bottom:8px;}
.tc-core-page>header h1{margin:0;color:var(--tc-form-ink);font-family:var(--nv-font-display);font-size:30px;line-height:1.08;letter-spacing:-.035em;font-weight:700;}
.tc-core-page>header p{max-width:720px;margin:8px 0 0;color:var(--tc-form-muted);font-size:13px;line-height:1.65;}
.tc-core-grid{display:grid;grid-template-columns:minmax(390px,.82fr) minmax(560px,1.18fr);gap:20px;align-items:start;}
.tc-core-card{background:var(--tc-form-surface);border:1px solid var(--tc-form-border);border-radius:20px;padding:26px;box-shadow:0 2px 8px rgba(17,26,30,.018);min-width:0;}
.tc-core-card.tc-core-wide{padding:26px 28px;}
.tc-core-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px;}
.tc-core-card-head>div{min-width:0;}
.tc-core-card-head .tc-step{display:block;margin-bottom:7px;color:var(--tc-form-accent-2);font-size:11px;font-weight:850;letter-spacing:.12em;}
.tc-core-card h2,.tc-core-card-head h2{margin:0;color:var(--tc-form-ink);font-family:var(--nv-font-display);font-size:19px;line-height:1.2;letter-spacing:-.025em;font-weight:700;}
.tc-core-card-head h2 small,.tc-core-card>h2 small{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:22px;margin-left:7px;padding:0 7px;border-radius:999px;background:#eff5f4;color:var(--tc-form-accent);font-family:var(--nv-font-body);font-size:10px;font-weight:800;vertical-align:2px;}
.tc-core-card-head p{margin:7px 0 0;color:var(--tc-form-muted);font-size:12px;line-height:1.55;}
.tc-core-form{display:grid;gap:15px;}
.tc-core-form .tc-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.tc-core-form label,.tc-form-label{display:grid;gap:7px;color:#334147;font-size:11px;font-weight:750;line-height:1.2;}
.tc-core-form input:not([type="checkbox"]):not([type="radio"]),
.tc-core-form select,.tc-core-form textarea{
  width:100%;box-sizing:border-box;border:1px solid var(--tc-form-border);border-radius:10px;background:var(--tc-form-field);color:var(--tc-form-ink);font:inherit;font-size:13px;outline:0;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.tc-core-form input:not([type="checkbox"]):not([type="radio"]),.tc-core-form select{height:44px;padding:0 12px;}
.tc-core-form textarea{min-height:94px;padding:12px;resize:vertical;line-height:1.5;}
.tc-core-form input:focus,.tc-core-form select:focus,.tc-core-form textarea:focus{border-color:rgba(14,139,120,.56);background:#fff;box-shadow:0 0 0 4px var(--tc-form-focus);}
.tc-core-form input::placeholder,.tc-core-form textarea::placeholder{color:#a1aaae;}
.tc-core-form>button,.tc-core-form .tc-form-submit{justify-self:start;min-width:148px;height:44px;padding:0 18px;border:0;border-radius:9px;background:var(--tc-form-accent);color:#fff;font-size:12px;font-weight:800;cursor:pointer;box-shadow:0 7px 18px rgba(11,101,88,.12);transition:.16s ease;}
.tc-core-form>button:hover,.tc-core-form .tc-form-submit:hover{background:#095b50;transform:translateY(-1px);}
.tc-core-form hr{width:100%;height:1px;margin:4px 0;border:0;background:#edf1f2;}
.tc-check{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:9px!important;padding:2px 0;color:#5d6a70!important;font-size:11px!important;font-weight:600!important;}
.tc-check input{width:15px;height:15px;margin:0;accent-color:var(--tc-form-accent);}
.tc-core-table{overflow:auto;border:1px solid #e4e9eb;border-radius:13px;background:#fff;}
.tc-core-table table{width:100%;border-collapse:collapse;}
.tc-core-table th{padding:11px 13px;border-bottom:1px solid #e5eaec;background:#f8faf9;color:#758188;font-size:9px;font-weight:850;letter-spacing:.085em;text-align:left;text-transform:uppercase;white-space:nowrap;}
.tc-core-table td{padding:13px;border-bottom:1px solid #edf1f2;color:#344249;font-size:12px;vertical-align:middle;}
.tc-core-table tr:last-child td{border-bottom:0;}
.tc-core-table td strong{display:block;color:#172126;font-weight:760;}
.tc-core-table td small{display:block;margin-top:3px;color:#899499;font-size:10px;}
.tc-core-table .empty{padding:42px 20px;color:#929da1;text-align:center;}
.tc-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border:1px solid #dfe7e5;border-radius:999px;background:#f3f7f6;color:#43615b;font-size:9px;font-weight:800;text-transform:capitalize;}
.tc-form-help{margin:-5px 0 0;color:#8b969a;font-size:10px;line-height:1.5;}
.tc-form-divider{height:1px;margin:5px 0;background:#edf1f2;}
.tc-form-subsection{padding-top:2px;}
.tc-form-subsection-title{margin:0 0 12px;color:#233037;font-size:11px;font-weight:850;letter-spacing:.05em;text-transform:uppercase;}
.tc-mini-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #edf1f2;color:#26343a;font-size:12px;}
.tc-mini-row:last-child{border-bottom:0}.tc-mini-row small{color:#78858a;text-transform:capitalize;}
.tc-core-card h3{margin:24px 0 8px;color:#26343a;font-size:12px;font-weight:800;}
@media(max-width:1120px){.tc-core-grid{grid-template-columns:1fr}.tc-core-card.tc-core-wide{padding:24px}}
@media(max-width:650px){.tc-core-page{padding-inline:0}.tc-core-card{padding:20px;border-radius:16px}.tc-core-form .tc-row{grid-template-columns:1fr}.tc-core-page>header h1{font-size:27px}}
html[dir="rtl"] .tc-core-page>header,html[dir="rtl"] .tc-core-table th{text-align:right}.tc-core-card-head{text-align:start}


/* ========================================================================== */
/* TrainingConnect — Tenant workspace menu V5.3                              */
/* ========================================================================== */
.tc-panel-nav--grouped{gap:0!important;padding-top:0!important}
.tc-menu-group{padding:0 0 13px;margin:0 0 11px;border-bottom:1px solid #EEF1F2}
.tc-menu-group:last-child{border-bottom:0;margin-bottom:0;padding-bottom:4px}
.tc-menu-group-title{display:flex;align-items:center;gap:9px;padding:3px 10px 7px}
.tc-menu-group-title:after{content:"";height:1px;flex:1;background:#F0F2F3}
.tc-menu-group-title span{color:#819096;font-size:9px;font-weight:850;letter-spacing:.15em;text-transform:uppercase;white-space:nowrap}
.tc-menu-group-items{display:flex;flex-direction:column;gap:3px}
.tc-panel-nav--grouped .tc-panel-link{min-height:46px;padding:6px 9px;border-radius:13px}
.tc-panel-nav--grouped .tc-panel-icon{width:35px;height:35px;border-radius:11px}
.tc-panel-nav--grouped .tc-panel-copy strong{font-size:12.5px}
.tc-panel-nav--grouped .tc-panel-copy small{font-size:10.5px;color:#8A969B}
.tc-panel-nav--grouped .tc-panel-link.is-active{background:#F0F7F5;border-color:#DCEBE7}
.tc-panel-nav--grouped .tc-panel-link.is-active .tc-panel-copy strong{color:#0B6558}
.tc-rail-nav .tc-rail-link{flex:0 0 auto}
.tc-rail-nav .tc-rail-link:nth-child(1){margin-bottom:8px}
html[dir="rtl"] .tc-menu-group-title span{letter-spacing:.04em}

/* ========================================================================== */
/* TrainingConnect Menu V5.4.1 — clean labels + brand watermark              */
/* ========================================================================== */

/* Keep the active-state hint, but remove the repeated "Open module" helper. */
.tc-panel-nav--grouped .tc-panel-link:not(.is-active) .tc-panel-copy small {
  display: none !important;
}

/* Rebalance the row now that the repeated helper text is gone. */
.tc-panel-nav--grouped .tc-panel-link {
  min-height: 45px !important;
}
.tc-panel-nav--grouped .tc-panel-copy strong {
  line-height: 1.25;
}
.tc-panel-nav--grouped .tc-panel-link.is-active .tc-panel-copy small {
  display: block !important;
  margin-top: 2px;
}

/* One subtle TrainingConnect symbol across the white navigation surface. */
.tc-nav-panel {
  isolation: isolate;
}
.tc-nav-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 250px;
  height: 250px;
  inset-inline-end: -72px;
  top: 42%;
  transform: translateY(-50%) rotate(-8deg);
  background: url('../images/trainingconnect-symbol.png') center / contain no-repeat;
  opacity: .026;
  filter: saturate(.75);
  pointer-events: none;
}
.tc-nav-panel > * {
  position: relative;
  z-index: 1;
}

html[dir="rtl"] .tc-nav-panel::before {
  transform: translateY(-50%) rotate(8deg);
}

@media (max-width: 760px) {
  .tc-nav-panel::before {
    width: 205px;
    height: 205px;
    inset-inline-end: -62px;
    opacity: .022;
  }
}
