:root{
  --bg:#0b0c0e;
  --bg-soft:#111215;
  --panel:#17191d;
  --panel-strong:#202226;
  --panel-muted:#121417;
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(86,176,103,.34);
  --text:#f4f7fb;
  --muted:rgba(244,247,251,.72);
  --muted-2:rgba(244,247,251,.48);
  --accent:#58b86b;
  --accent-soft:rgba(88,184,107,.18);
  --teal:#70c381;
  --gold:#f3be63;
  --green:#4fd18b;
  --red:#ff7b88;
  --shadow:0 24px 80px rgba(0,0,0,.48);
  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:14px;
  --font-body:"Aptos","Segoe UI Variable Text","Segoe UI",sans-serif;
  --font-display:"Aptos Display","Segoe UI Variable Display","Trebuchet MS",sans-serif;
}

body[data-theme="light"]{
  color-scheme:light;
  --bg:#ffffff;
  --bg-soft:#f4f7f3;
  --panel:#ffffff;
  --panel-strong:#f3f6f1;
  --panel-muted:#e8eee6;
  --line:rgba(24,32,26,.14);
  --line-strong:rgba(68,114,76,.38);
  --text:#18201a;
  --muted:rgba(24,32,26,.72);
  --muted-2:rgba(24,32,26,.55);
  --accent:#4f8f5b;
  --accent-soft:rgba(79,143,91,.12);
  --teal:#44724c;
  --green:#3f7f4b;
  --red:#c2414b;
  --shadow:0 20px 56px rgba(53,75,60,.16);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  position:relative;
  isolation:isolate;
  font-family:var(--font-body);
  color:var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.035), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(255,255,255,.025), transparent 20%),
    radial-gradient(circle at 72% 74%, rgba(0,0,0,.18), transparent 26%),
    linear-gradient(180deg, #0b0c0e 0%, #101114 100%);
  overflow:hidden;
}

body[data-theme="light"]{
  background:#ffffff;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
}

body::before{
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.035), transparent 18%),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.025), transparent 16%),
    radial-gradient(circle at 48% 68%, rgba(0,0,0,.12), transparent 18%);
  filter:blur(12px);
  opacity:.95;
  animation:ambientShift 26s ease-in-out infinite alternate;
}

body[data-theme="light"]::before{
  background:linear-gradient(180deg, rgba(68,114,76,.045), rgba(79,143,91,.035));
  filter:none;
  opacity:1;
}

body::after{
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.018), transparent 16%),
    radial-gradient(circle at 68% 58%, rgba(255,255,255,.014), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,.015), transparent 26%);
  filter:blur(36px);
  opacity:.88;
  animation:ambientShiftSecondary 32s ease-in-out infinite alternate;
}

body[data-theme="light"]::after{
  background:none;
  filter:none;
  opacity:1;
}

body[data-theme="light"] .workspace{
  background:#ffffff;
}

body[data-theme="light"] .brandBlock,
body[data-theme="light"] .sidebarCard,
body[data-theme="light"] .metaCard,
body[data-theme="light"] .panel,
body[data-theme="light"] .summaryCard,
body[data-theme="light"] .heroCard,
body[data-theme="light"] .editorCard,
body[data-theme="light"] .toast,
body[data-theme="light"] .authCard{
  background:linear-gradient(180deg, #ffffff, #f3f6f1);
  border-color:var(--line);
  color:var(--text);
}

body[data-theme="light"] .detailCard,
body[data-theme="light"] .timelineCard,
body[data-theme="light"] .transcriptMessage,
body[data-theme="light"] .calendarDay,
body[data-theme="light"] .filterPill,
body[data-theme="light"] .badge,
body[data-theme="light"] .heroBadge,
body[data-theme="light"] .pill,
body[data-theme="light"] .tab,
body[data-theme="light"] .btnGhost{
  background:#f3f6f8;
  border-color:var(--line);
  color:var(--text);
}

body[data-theme="light"] .fieldInput,
body[data-theme="light"] .authField input,
body[data-theme="light"] select.fieldInput,
body[data-theme="light"] textarea.fieldInput{
  color-scheme:light;
  background:#ffffff;
  color:var(--text);
  border-color:#cbd6cb;
}

body[data-theme="light"] select.fieldInput,
body[data-theme="light"] select.fieldInput option,
body[data-theme="light"] select.fieldInput optgroup{
  background:#ffffff;
  color:#18201a;
}

body[data-theme="light"] input[type="date"].fieldInput{
  color:#18201a;
  background:#ffffff;
}

body[data-theme="light"] .fieldInput::placeholder,
body[data-theme="light"] .authField input::placeholder{
  color:rgba(24,32,26,.62);
}

body[data-theme="light"] .fieldInput:focus,
body[data-theme="light"] .authField input:focus{
  border-color:var(--teal);
  box-shadow:0 0 0 3px rgba(68,114,76,.14);
}

body[data-theme="light"] .btnPrimary{
  color:#ffffff;
}

body[data-theme="light"] .btnSecondary{
  background:#e7f1e5;
  border-color:rgba(68,114,76,.26);
  color:var(--text);
}

body[data-theme="light"] .workspaceNavBtn.active,
body[data-theme="light"] .tab.active,
body[data-theme="light"] .table tbody tr.active{
  background:#e8f2e5;
  color:var(--text);
}

body[data-theme="light"] .filterChoice{
  background:#ffffff;
  border-color:#c8d4c8;
  color:#344238;
}

body[data-theme="light"] .filterChoice:hover,
body[data-theme="light"] .filterChoice:focus-visible{
  background:#eef3ed;
  color:#18201a;
  border-color:#8fa08f;
}

body[data-theme="light"] .filterChoice.active{
  background:#dcebdd;
  border-color:rgba(68,114,76,.42);
  color:#183c22;
}

body[data-theme="light"] .filterPill{
  background:#e8f1e7;
  border-color:rgba(68,114,76,.28);
  color:#18201a;
}

body[data-theme="light"] .activeFilterChip.highlighted{
  color:#ffffff;
  background:#075f5a;
  border-color:#0d8177;
}

body[data-theme="light"] .leadFilterMenu{
  background:transparent;
  border-color:#d3ded2;
}

body[data-theme="light"] .activeFilters,
body[data-theme="light"] .panelMeta,
body[data-theme="light"] .hint,
body[data-theme="light"] .fieldLabel,
body[data-theme="light"] .muted,
body[data-theme="light"] .muted2{
  color:#475569;
}

button,input,select,textarea{
  font:inherit;
}

button,
a,
input,
select,
textarea{
  max-width:100%;
}

img,
svg,
canvas,
video{
  max-width:100%;
}

.hidden{display:none!important}
[hidden]{display:none!important}
.srOnly{
  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;
}

.shell{
  height:100vh;
  display:grid;
  grid-template-columns: 364px minmax(0, 1fr);
  position:relative;
  z-index:1;
}

.sidebar{
  padding:24px 22px 24px 24px;
  background:linear-gradient(180deg, #101216 0%, #0c0e12 100%);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:16px;
  position:sticky;
  top:0;
  height:100vh;
  min-height:0;
  overflow:hidden;
}

body[data-theme="light"] .sidebar{
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,247,249,.94));
}

.sidebarScroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding-right:6px;
  margin-right:-6px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.24) transparent;
}

.sidebarScroll::-webkit-scrollbar,
.tableWrap::-webkit-scrollbar,
.json::-webkit-scrollbar{
  width:10px;
  height:10px;
}

.sidebarScroll::-webkit-scrollbar-thumb,
.tableWrap::-webkit-scrollbar-thumb,
.json::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.20);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}

.sidebarScroll::-webkit-scrollbar-track,
.tableWrap::-webkit-scrollbar-track,
.json::-webkit-scrollbar-track{
  background:transparent;
}

.brandBlock,
.sidebarCard,
.metaCard,
.panel,
.summaryCard,
.heroCard,
.editorCard,
.toast,
.authCard{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.dashboardBrandLogo{
  width:54px;
  height:54px;
  object-fit:contain;
  padding:6px;
  margin-bottom:12px;
  background:rgba(255,255,255,.9);
  border:1px solid var(--line);
  border-radius:14px;
}

.brandBlock,
.sidebarCard{
  border-radius:var(--radius-lg);
  padding:20px;
  min-width:0;
  display:grid;
  gap:14px;
}

.brandBlock,
.sidebarCard,
.panelHeader > *,
.topbar > *,
.topbarMeta,
.metaCard,
.heroCard > *,
.heroBadges,
.activeFilters{
  min-width:0;
}

.brandEyebrow,
.panelEyebrow,
.topbarEyebrow,
.metaLabel,
.sidebarLabel{
  color:var(--muted-2);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:11px;
}

.brandEyebrow{
  letter-spacing:0;
  overflow-wrap:anywhere;
}

.brandTitle,
.panelTitle,
.heroTitle,
.authTitle{
  font-family:var(--font-display);
}

.brandTitle{
  margin-top:8px;
  font-size:28px;
  font-weight:700;
}

.brandText,
.sectionText{
  margin-top:10px;
  color:var(--muted);
  line-height:1.5;
  font-size:14px;
  overflow-wrap:anywhere;
}

.tenantBadge,
.badge,
.heroBadge,
.filterPill,
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  border:1px solid var(--line);
  padding:7px 12px;
  font-size:12px;
  font-weight:600;
}

.tenantBadge{
  margin-top:10px;
  color:var(--text);
  background:rgba(255,255,255,.06);
  border-color:var(--line);
}

.sectionTitle{
  font-size:15px;
  font-weight:700;
}

.fieldGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}

.fieldGroup{
  min-width:0;
}

.fieldGridDates{
  grid-template-columns:1fr;
}

.fieldLabel{
  display:block;
  margin-bottom:8px;
  font-size:12px;
  color:var(--muted);
}

.fieldInput{
  width:100%;
  min-width:0;
  min-height:46px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:12px 14px;
  outline:none;
  text-overflow:ellipsis;
}

.fieldInput:focus{
  border-color:var(--line-strong);
  box-shadow:0 0 0 3px rgba(111,191,122,.14);
}

.filterButtonGroup{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.filterBubbleSection{
  margin-top:18px;
}

.filterChoice{
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:var(--muted);
  padding:9px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  line-height:1.2;
  min-height:38px;
  max-width:100%;
  overflow-wrap:anywhere;
}

.filterChoice.active{
  color:#ffffff;
  border-color:#0d8177;
  background:#075f5a;
}

.filterButtonGroup .filterChoice,
.pipelineModeBtn{
  background:rgba(255,255,255,.05);
  border-color:var(--line);
  color:var(--muted);
}

.filterButtonGroup .filterChoice.active,
.pipelineModeBtn.active{
  color:#ffffff;
  background:#0d8177;
  border-color:#0d8177;
  box-shadow:0 0 0 3px rgba(13,129,119,.22);
}

select.fieldInput{
  color-scheme:dark;
  background-color:#17191d;
  color:var(--text);
  padding-right:40px;
}

select.fieldInput option,
select.fieldInput optgroup{
  background:#17191d;
  color:#f4f7fb;
}

input[type="date"].fieldInput{
  min-height:48px;
  padding-right:40px;
  font-variant-numeric:tabular-nums;
}

input[type="date"].fieldInput::-webkit-calendar-picker-indicator{
  margin:0 2px 0 10px;
  opacity:.78;
}

input[type="date"].fieldInput::-webkit-datetime-edit,
input[type="date"].fieldInput::-webkit-datetime-edit-fields-wrapper{
  min-width:0;
}

.notesInput{
  min-height:150px;
  resize:vertical;
}

.sidebarActions,
.editorActions,
.toastActions,
.authActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.sidebarActions{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.sidebarActionWide{
  grid-column:1 / -1;
}

.btnPrimary,
.btnSecondary,
.btnGhost{
  border-radius:14px;
  padding:11px 14px;
  border:1px solid transparent;
  color:var(--text);
  cursor:pointer;
  transition:transform .14s ease, border-color .14s ease, background .14s ease;
  white-space:nowrap;
}

.btnPrimary{
  background:#0d8177;
  border-color:#0d8177;
  color:#ffffff;
}

.btnSecondary{
  background:#075f5a;
  border-color:#0d8177;
  color:#ffffff;
}

.btnGhost{
  background:#075f5a;
  border-color:#0d8177;
  color:#ffffff;
}

.btnPrimary:hover,
.btnSecondary:hover,
.btnGhost:hover{
  transform:translateY(-1px);
}

.btnBlock{
  width:100%;
  justify-content:center;
}

.stageLegend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.stageLegend .badge{
  color:var(--muted);
  background:rgba(255,255,255,.05);
  border-color:var(--line);
}

body[data-theme="light"] .stageLegend .badge{
  color:#344238;
  background:#f3f6f8;
  border-color:#c8d4c8;
}

.sidebarFoot{
  margin-top:auto;
  padding-top:4px;
}

.accountSummary{
  flex:0 0 auto;
  margin-top:0;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow:var(--shadow);
  padding:14px 16px;
  min-width:0;
}

.accountSummaryName{
  margin-top:8px;
  color:var(--text);
  font-weight:800;
  font-size:14px;
  overflow-wrap:anywhere;
}

.accountSummaryOrg{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.accountPasswordForm{
  display:grid;
  gap:14px;
}

.accountPasswordGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.accountPasswordForm .fieldLabel{
  margin-bottom:8px;
}

.accountPasswordForm .fieldInput{
  min-height:48px;
}

.accountPasswordActions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.accountPasswordActions .btnSecondary,
.accountPasswordActions .btnGhost{
  min-height:42px;
}

.workspace{
  height:100vh;
  min-height:0;
  overflow:hidden;
  background:linear-gradient(180deg, #17191d 0%, #14161a 100%);
  display:flex;
  flex-direction:column;
}

.workspaceScroll{
  flex:1 1 auto;
  height:100%;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:28px 34px 40px 30px;
  display:flex;
  flex-direction:column;
  gap:24px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.22) transparent;
  overscroll-behavior:contain;
}

.workspaceScroll::-webkit-scrollbar{
  width:10px;
}

.workspaceScroll::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}

.topbar{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  position:relative;
  z-index:1;
  padding:2px 0 10px;
  background:none;
  backdrop-filter:none;
  box-shadow:none;
}

.topbar h1{
  margin:8px 0 10px;
  font-size:40px;
  line-height:1;
  letter-spacing:-.03em;
}

.topbar p{
  margin:0;
  max-width:780px;
  color:var(--muted);
  line-height:1.6;
}

.topbarMeta{
  display:flex;
  gap:12px;
  align-items:stretch;
  flex-wrap:wrap;
}

.metaCard{
  min-width:170px;
  max-width:220px;
  border-radius:18px;
  padding:16px;
}

.metaValue{
  display:block;
  margin-top:8px;
  font-size:clamp(17px, 1.2vw, 21px);
  font-weight:700;
  line-height:1.3;
  overflow-wrap:anywhere;
  text-wrap:balance;
}

.topbarLogout{
  align-self:stretch;
  padding-inline:18px;
  border-color:rgba(255,255,255,.12);
}

.summaryGrid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:18px;
}

.workspaceNav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.sidebarNav{
  display:grid;
  gap:10px;
  align-items:stretch;
}

.workspaceNavBtn{
  border-radius:14px;
  min-width:132px;
  justify-content:center;
}

.sidebarNav .workspaceNavBtn{
  width:100%;
  min-width:0;
  justify-content:flex-start;
  text-align:left;
}

.workspaceNavBtn.active{
  background:#0d8177;
  color:var(--text);
  border-color:#0d8177;
}

.dashboardBackBar{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg, #181a1f, #14161a);
  box-shadow:var(--shadow-soft);
}

.dashboardBackBar .themeToggleBtn{
  margin-left:auto;
}

.workspace.mode-onboarding .summaryGrid,
.workspace.mode-lead-detail .summaryGrid,
.workspace.mode-team .summaryGrid,
.workspace.mode-settings .summaryGrid,
.workspace.mode-stock .summaryGrid,
.workspace.mode-bookings .summaryGrid,
.workspace.mode-calendar .summaryGrid{
  display:none;
}

.workspace.mode-onboarding .contentGrid,
.workspace.mode-lead-detail .contentGrid,
.workspace.mode-team .contentGrid,
.workspace.mode-settings .contentGrid,
.workspace.mode-stock .contentGrid,
.workspace.mode-bookings .contentGrid,
.workspace.mode-calendar .contentGrid{
  grid-template-columns:1fr;
}

.workspace.mode-onboarding .contentGrid > .panel:first-child,
.workspace.mode-lead-detail .contentGrid > .panel:first-child,
.workspace.mode-team .contentGrid > .panel:first-child,
.workspace.mode-settings .contentGrid > .panel:first-child,
.workspace.mode-stock .contentGrid > .panel:first-child,
.workspace.mode-bookings .contentGrid > .panel:first-child,
.workspace.mode-calendar .contentGrid > .panel:first-child{
  display:none;
}

.workspace.mode-onboarding .detailBody > .heroCard,
.workspace.mode-team .detailBody > .heroCard,
.workspace.mode-settings .detailBody > .heroCard,
.workspace.mode-stock .detailBody > .heroCard,
.workspace.mode-bookings .detailBody > .heroCard,
.workspace.mode-calendar .detailBody > .heroCard,
.workspace.mode-onboarding .detailBody > .tabs,
.workspace.mode-team .detailBody > .tabs,
.workspace.mode-settings .detailBody > .tabs,
.workspace.mode-stock .detailBody > .tabs,
.workspace.mode-bookings .detailBody > .tabs,
.workspace.mode-calendar .detailBody > .tabs{
  display:none;
}

.workspace.mode-team .teamGrid,
.workspace.mode-bookings .teamGrid{
  grid-template-columns:minmax(0,1.35fr) minmax(460px,.65fr);
}

.workspace.mode-stock .teamGrid{
  grid-template-columns:minmax(0,1fr) minmax(520px,.85fr);
}

.workspace.mode-settings .editorCard{
  max-width:1120px;
}

.accountPasswordCard{
  margin-bottom:18px;
}

.settingsNotificationActions{
  margin-top:18px;
  row-gap:14px;
}

.settingsSaveActions{
  margin-top:20px;
}

.workspace.mode-overview .contentGrid{
  grid-template-columns:1fr;
}

.workspace.mode-overview .detailPanel{
  display:none;
}

.workspace.mode-lead-detail .detailPanel{
  max-width:1240px;
  width:100%;
  justify-self:center;
}

.workspace.mode-lead-detail .detailBody{
  gap:20px;
}

.workspace.mode-onboarding .editorCard{
  max-width:1160px;
}

.onboardingPack{
  display:grid;
  gap:18px;
}

.onboardingHeroGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.onboardingValue,
.onboardingStatus{
  min-height:48px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
  overflow-wrap:anywhere;
}

.onboardingStatus{
  color:#f8d77a;
}

.onboardingStatus.ready{
  color:#75e0a7;
}

.onboardingSteps{
  display:grid;
  gap:16px;
}

.onboardingStep{
  gap:16px;
}

.onboardingChecklist{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.onboardingCheck{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
  background:rgba(255,255,255,.035);
  color:var(--text);
}

.onboardingCheck.missing{
  border-color:rgba(248,113,113,.36);
}

.onboardingCheck.done{
  border-color:rgba(117,224,167,.34);
}

.onboardingCheckMark{
  flex:0 0 auto;
  min-width:58px;
  border-radius:999px;
  padding:4px 8px;
  background:rgba(255,255,255,.08);
  font-size:11px;
  font-weight:800;
  text-align:center;
  text-transform:uppercase;
}

.onboardingCheck.done .onboardingCheckMark{
  background:rgba(117,224,167,.18);
  color:#75e0a7;
}

.onboardingCheck.missing .onboardingCheckMark{
  background:rgba(248,113,113,.16);
  color:#fca5a5;
}

.onboardingCode{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.onboardingBullets{
  margin:0;
  padding-left:20px;
  color:var(--muted);
  line-height:1.7;
}

.onboardingOrigins{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.onboardingOrigins code{
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 10px;
  background:rgba(255,255,255,.06);
  color:var(--text);
}

.onboardingPrintActions{
  margin-top:2px;
}

.workspace.mode-calendar .calendarGridWrap{
  min-height:680px;
}

.workspace.mode-calendar .calendarDay{
  min-height:210px;
}

.themeToggleBtn{
  align-self:stretch;
  min-width:112px;
}

.uploadCard{
  display:grid;
  gap:14px;
  margin-top:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg, var(--panel-strong), var(--panel-muted));
}

.uploadControls{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:12px;
  align-items:center;
}

body[data-theme="light"] .dashboardBackBar,
body[data-theme="light"] .uploadCard{
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,248,250,.94));
}

.summaryCard{
  border-radius:20px;
  padding:20px;
  position:relative;
  overflow:hidden;
}

.summaryCard::before,
.summaryCard::after{
  content:"";
  position:absolute;
  border-radius:999px;
  pointer-events:none;
  opacity:.88;
}

.summaryCard::before{
  inset:-18% auto auto -6%;
  width:62%;
  height:58%;
  background:radial-gradient(ellipse at center, rgba(255,255,255,.045), rgba(255,255,255,.014) 38%, transparent 78%);
  filter:blur(28px);
}

.summaryCard::after{
  inset:auto -10% -26% auto;
  width:64%;
  height:66%;
  background:radial-gradient(ellipse at center, rgba(255,255,255,.06), rgba(255,255,255,.018) 36%, transparent 76%);
  filter:blur(34px);
}

.summaryCard:nth-child(1)::before{
  inset:-12% auto auto 8%;
  width:56%;
  height:52%;
  background:radial-gradient(ellipse at 38% 42%, rgba(255,255,255,.045), rgba(255,255,255,.014) 40%, transparent 76%);
}

.summaryCard:nth-child(1)::after{
  background:radial-gradient(ellipse at 42% 40%, rgba(255,255,255,.065), rgba(255,255,255,.016) 38%, transparent 78%);
  inset:auto 4% -28% auto;
  width:58%;
  height:64%;
  transform:scale(1.02);
}

.summaryCard:nth-child(2)::before{
  inset:auto auto -10% 6%;
  width:52%;
  height:46%;
  background:radial-gradient(ellipse at 52% 48%, rgba(255,255,255,.045), rgba(255,255,255,.012) 34%, transparent 76%);
}

.summaryCard:nth-child(2)::after{
  background:radial-gradient(ellipse at 52% 36%, rgba(255,255,255,.06), rgba(255,255,255,.016) 40%, transparent 78%);
  inset:auto -2% -18% auto;
  width:66%;
  height:62%;
}

.summaryCard:nth-child(3)::before{
  inset:8% auto auto -4%;
  width:48%;
  height:48%;
  background:radial-gradient(ellipse at 40% 48%, rgba(255,255,255,.04), rgba(255,255,255,.012) 38%, transparent 78%);
}

.summaryCard:nth-child(3)::after{
  background:radial-gradient(ellipse at 62% 50%, rgba(255,255,255,.06), rgba(255,255,255,.014) 36%, transparent 78%);
  inset:auto -4% -14% auto;
  width:60%;
  height:58%;
}

.summaryCard:nth-child(4)::before{
  inset:-10% auto auto auto;
  right:12%;
  width:50%;
  height:46%;
  background:radial-gradient(ellipse at 54% 38%, rgba(255,255,255,.04), rgba(255,255,255,.012) 38%, transparent 78%);
}

.summaryCard:nth-child(4)::after{
  background:radial-gradient(ellipse at 40% 42%, rgba(255,255,255,.06), rgba(255,255,255,.018) 36%, transparent 78%);
  inset:auto 14% -22% auto;
  width:56%;
  height:60%;
}

.summaryCard:nth-child(5)::before{
  inset:auto auto -8% 10%;
  width:46%;
  height:44%;
  background:radial-gradient(ellipse at 44% 46%, rgba(255,255,255,.04), rgba(255,255,255,.012) 36%, transparent 78%);
}

.summaryCard:nth-child(5)::after{
  background:radial-gradient(ellipse at 60% 38%, rgba(255,255,255,.06), rgba(255,255,255,.016) 38%, transparent 78%);
  inset:auto -6% -18% auto;
  width:62%;
  height:64%;
  transform:scale(1.01);
}

.summaryLabel{
  color:var(--muted);
  font-size:13px;
}

.summaryValue{
  margin-top:14px;
  font-size:34px;
  font-weight:800;
  letter-spacing:-.04em;
}

.summaryHint{
  margin-top:8px;
  color:var(--muted-2);
  font-size:12px;
  line-height:1.5;
  max-width:30ch;
}

.contentGrid{
  display:grid;
  grid-template-columns:minmax(0, 1.42fr) minmax(340px, .58fr);
  gap:20px;
  min-height:0;
  align-items:start;
}

.panel{
  border-radius:var(--radius-xl);
  overflow:hidden;
  min-height:0;
}

.panelHeader{
  padding:20px 22px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.panelTitle{
  margin-top:6px;
  font-size:24px;
  font-weight:700;
}

.panelMeta,
.hint{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.activeFilters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-start;
  align-items:flex-start;
}

.pipelineHeaderTools{
  display:grid;
  justify-items:end;
  gap:10px;
  min-width:min(520px, 100%);
}

.pipelineModeButtons{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.pipelineModeBtn{
  min-width:144px;
  justify-content:center;
}

.pipelineModeBtn.active{
  color:#ffffff;
  background:#075f5a;
  border-color:#0d8177;
}

.filterPill{
  background:rgba(255,255,255,.05);
  max-width:100%;
  overflow-wrap:anywhere;
}

.leadFilterToolbar{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:flex-start;
  gap:10px;
  padding:16px 22px;
  border-bottom:1px solid var(--line);
}

.leadFilterToolbar .activeFilters{
  flex:1 1 auto;
  min-width:0;
}

.activeFilterChip{
  cursor:pointer;
  color:var(--text);
  font-family:inherit;
}

.activeFilterChip.highlighted{
  color:#ffffff;
  border-color:#0d8177;
  background:#0d8177;
  box-shadow:0 0 0 4px rgba(13,129,119,.24), inset 0 0 0 1px rgba(255,255,255,.18);
}

.activeFilterChip.highlighted::before{
  content:"Active";
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#ffffff;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.filterPillMuted{
  color:var(--muted);
}

.filterPillRemove{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  color:inherit;
  background:rgba(255,255,255,.08);
  font-size:11px;
  line-height:1;
}

.filterMoreBtn{
  flex:0 0 auto;
  min-width:48px;
  min-height:38px;
  padding:7px 12px;
}

.leadFilterToggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.05);
  border-color:var(--line);
  color:var(--muted);
  transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.leadFilterToggle[aria-expanded="true"]{
  background:#0d8177;
  border-color:#0d8177;
  color:#ffffff;
  box-shadow:0 0 0 3px rgba(13,129,119,.2);
}

body[data-theme="light"] .leadFilterToggle{
  color:#344238;
  background:#f3f6f8;
  border-color:#c8d4c8;
}

body[data-theme="light"] .leadFilterToggle[aria-expanded="true"]{
  color:#ffffff;
  background:#0d8177;
  border-color:#0d8177;
}

.filterButtonIcon{
  width:16px;
  height:14px;
  display:inline-block;
  clip-path:polygon(0 0, 100% 0, 62% 48%, 62% 100%, 38% 100%, 38% 48%);
  background:currentColor;
}

.leadFilterMenu{
  flex:1 0 100%;
  width:100%;
  padding:16px 0 0;
  border-top:1px solid var(--line);
  background:transparent;
}

.leadFilterMenuHeader,
.leadFilterActions{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}

.leadFilterActions{
  margin:18px 0 2px;
}

.leadFilterActions .btnPrimary,
.leadFilterActions .btnSecondary{
  flex:1 1 0;
}

.tableWrap{
  overflow-x:auto;
  overflow-y:visible;
  max-height:none;
  padding-right:0;
  max-width:100%;
  -webkit-overflow-scrolling:touch;
}

.table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  table-layout:fixed;
}

.colUpdated{ width:11%; }
.colIntent{ width:8%; }
.colVehicle{ width:18%; }
.colContact{ width:16%; }
.colMessage{ width:13%; }
.colLead{ width:20%; }
.colStage{ width:13%; }
.colOwner{ width:14%; }
.colBudget{ width:9%; }
.colActivity{ width:19%; }
.colHeat{ width:12%; }

#pipelinePanel .table{
  min-width:1040px;
}

.table thead th{
  position:sticky;
  top:0;
  z-index:1;
  background:rgba(16,29,48,.96);
  border-bottom:1px solid var(--line);
  color:var(--muted);
  text-align:left;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding:12px 10px;
}

body[data-theme="light"] .table thead th{
  background:#eef3ec;
  color:#344238;
  border-bottom-color:#d3ded2;
}

.table thead th:nth-child(3),
.table thead th:nth-child(4),
.table thead th:nth-child(5),
.table thead th:nth-child(7){
  white-space:nowrap;
}

.table tbody tr{
  cursor:pointer;
  transition:background .14s ease;
}

.table tbody tr:hover{
  background:rgba(255,255,255,.03);
}

body[data-theme="light"] .table tbody tr:hover{
  background:#f3f6f1;
}

.table tbody tr.filterHighlighted{
  background:rgba(13,129,119,.16);
  box-shadow:inset 4px 0 0 #0d8177;
}

body[data-theme="light"] .table tbody tr.filterHighlighted{
  background:#dff1ed;
  box-shadow:inset 4px 0 0 #0d8177;
}

.table tbody tr.active{
  background:rgba(111,191,122,.09);
  box-shadow:inset 3px 0 0 rgba(111,191,122,.9);
}

body[data-theme="light"] .table tbody tr.active{
  box-shadow:inset 3px 0 0 var(--accent);
}

.table tbody td{
  padding:14px 10px;
  border-bottom:1px solid rgba(255,255,255,.05);
  vertical-align:top;
  font-size:14px;
  overflow-wrap:anywhere;
}

#pipelinePanel .table tbody td{
  overflow:hidden;
}

#pipelinePanel .table thead th:nth-child(6),
#pipelinePanel .table tbody td:nth-child(6){
  overflow:visible;
  white-space:nowrap;
}

.leadFilterActiveCount{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(32,205,191,.14);
  color:#79eadc;
  font-size:10px;
  font-weight:850;
  line-height:1;
}

.leadFilterToggle[aria-expanded="true"] .leadFilterActiveCount{
  background:rgba(255,255,255,.18);
  color:#ffffff;
}

#pipelinePanel .table thead th:nth-child(7),
#pipelinePanel .table tbody td:nth-child(7){
  overflow:hidden;
  white-space:normal;
}

body[data-theme="light"] .table tbody td{
  border-bottom-color:#dde7dc;
}

.table tbody td:nth-child(3),
.table tbody td:nth-child(4),
.table tbody td:nth-child(5){
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.table thead th:nth-child(6),
.table tbody td:nth-child(6),
.table thead th:nth-child(7),
.table tbody td:nth-child(7){
  white-space:nowrap;
  padding-right:10px;
}

.leadCell{
  display:grid;
  gap:6px;
}

.leadPrimary{
  font-weight:700;
}

.leadSecondary,
.muted,
.muted2{
  color:var(--muted);
  overflow-wrap:anywhere;
}

.muted2{
  color:var(--muted-2);
}

.badge,
.heroBadge,
.pill{
  background:rgba(255,255,255,.04);
  white-space:nowrap;
  max-width:100%;
}

.intentBadge{
  max-width:100%;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  justify-content:center;
}

.statusBadge,
.heatBadge{
  justify-content:center;
  min-width:106px;
  max-width:none;
}

.heatBadge{
  min-width:98px;
}

.badge.intentBuy,
.heroBadge.intentBuy,
.filterChoice.intentBuy{
  color:#ddf1df;
  background:rgba(111,191,122,.16);
  border-color:rgba(111,191,122,.34);
}

.badge.intentFinance,
.heroBadge.intentFinance,
.filterChoice.intentFinance{
  color:#ffe7b8;
  background:rgba(243,190,99,.16);
  border-color:rgba(243,190,99,.32);
}

.badge.intentSell,
.heroBadge.intentSell,
.filterChoice.intentSell{
  color:#d9eadb;
  background:rgba(132,163,139,.16);
  border-color:rgba(132,163,139,.32);
}

.badge.intentService,
.heroBadge.intentService,
.filterChoice.intentService{
  color:#c8f8dc;
  background:rgba(79,209,139,.14);
  border-color:rgba(79,209,139,.3);
}

.badge.intentLease,
.heroBadge.intentLease,
.filterChoice.intentLease{
  color:#e1efe2;
  background:rgba(132,163,139,.14);
  border-color:rgba(132,163,139,.3);
}

.badge.intentGeneral,
.heroBadge.intentGeneral,
.filterChoice.intentGeneral{
  color:#e4e9f0;
  background:rgba(154,164,178,.14);
  border-color:rgba(154,164,178,.26);
}

body[data-theme="light"] .badge.intentBuy,
body[data-theme="light"] .heroBadge.intentBuy,
body[data-theme="light"] .filterChoice.intentBuy{
  color:#275a31;
  background:#e8f3e6;
  border-color:#b9d7bb;
}

body[data-theme="light"] .badge.intentFinance,
body[data-theme="light"] .heroBadge.intentFinance,
body[data-theme="light"] .filterChoice.intentFinance{
  color:#624111;
  background:#fff3d8;
  border-color:#e9c878;
}

body[data-theme="light"] .badge.intentSell,
body[data-theme="light"] .heroBadge.intentSell,
body[data-theme="light"] .filterChoice.intentSell{
  color:#344238;
  background:#e9efe7;
  border-color:#c7d4c4;
}

body[data-theme="light"] .badge.intentService,
body[data-theme="light"] .heroBadge.intentService,
body[data-theme="light"] .filterChoice.intentService{
  color:#17613b;
  background:#e6f7ed;
  border-color:#a9ddbd;
}

body[data-theme="light"] .badge.intentLease,
body[data-theme="light"] .heroBadge.intentLease,
body[data-theme="light"] .filterChoice.intentLease{
  color:#275a31;
  background:#e3f0e1;
  border-color:#b5d2b7;
}

body[data-theme="light"] .badge.intentGeneral,
body[data-theme="light"] .heroBadge.intentGeneral,
body[data-theme="light"] .filterChoice.intentGeneral{
  color:#344238;
  background:#edf2ec;
  border-color:#c8d4c8;
}

.filterButtonGroup .filterChoice:not(.active),
.pipelineModeBtn:not(.active){
  color:var(--muted);
  background:rgba(255,255,255,.05);
  border-color:var(--line);
  box-shadow:none;
}

.filterButtonGroup .filterChoice.active,
.pipelineModeBtn.active{
  color:#ffffff;
  background:#0d8177;
  border-color:#0d8177;
  box-shadow:0 0 0 3px rgba(13,129,119,.22);
}

body[data-theme="light"] .filterButtonGroup .filterChoice:not(.active),
body[data-theme="light"] .pipelineModeBtn:not(.active){
  color:#344238;
  background:#f3f6f8;
  border-color:#c8d4c8;
}

body[data-theme="light"] .filterButtonGroup .filterChoice.active,
body[data-theme="light"] .pipelineModeBtn.active{
  color:#ffffff;
  background:#0d8177;
  border-color:#0d8177;
}

.badge.good,
.heroBadge.good{
  background:rgba(79,209,139,.14);
  border-color:rgba(79,209,139,.3);
}

.badge.warn,
.heroBadge.warn{
  background:rgba(243,190,99,.16);
  border-color:rgba(243,190,99,.28);
}

.badge.info,
.heroBadge.info{
  background:rgba(111,191,122,.16);
  border-color:rgba(111,191,122,.3);
}

.badge.low,
.heroBadge.low{
  background:rgba(154,164,178,.14);
  border-color:rgba(154,164,178,.22);
}

.badge.danger,
.heroBadge.danger{
  background:rgba(255,123,136,.16);
  border-color:rgba(255,123,136,.28);
}

.detailPanel{
  display:flex;
  flex-direction:column;
}

.detailBody{
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:18px;
  min-height:0;
}

.leadActionCentre{
  display:grid;
  gap:14px;
}

.leadSummaryHero{
  border-color:rgba(111,191,122,.28);
  background:linear-gradient(180deg, rgba(22,37,56,.96), rgba(14,24,38,.96));
}

.leadSummaryHero .sectionTitle{
  font-size:17px;
}

.leadSummaryHero .sectionText{
  color:var(--text);
  font-size:16px;
  font-weight:650;
  line-height:1.55;
}

.summaryWantText{
  margin-top:10px;
  color:#cfe6ff;
  font-size:14px;
  font-weight:750;
  line-height:1.45;
}

.keyDetailsGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.keyDetailItem{
  display:grid;
  grid-template-columns:minmax(118px,.42fr) minmax(0,1fr);
  gap:12px;
  align-items:start;
  min-width:0;
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(255,255,255,.035);
}

.labelValueLabel{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  line-height:1.35;
}

.labelValueValue{
  color:var(--text);
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.labelValueTone.danger{
  color:#ffd1d6;
}

.labelValueTone.warn{
  color:#f8d77a;
}

.labelValueTone.info{
  color:#cfe6ff;
}

.labelValueTone.low{
  color:#d2d7df;
}

.leadDetailBackBtn{
  justify-self:start;
  min-height:46px;
  width:100%;
  border-color:rgba(111,191,122,.34);
  background:linear-gradient(135deg, rgba(111,191,122,.16), rgba(132,163,139,.08));
  color:var(--text);
  font-size:15px;
  font-weight:850;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}

.quickActionGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(128px,1fr));
  gap:10px;
}

.quickActionBtn{
  min-height:72px;
  white-space:normal;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  line-height:1.25;
}

.quickActionIcon{
  display:block;
  font-size:22px;
  line-height:1;
}

.quickActionBtn:disabled,
.followUpStatusBtn:disabled{
  opacity:.48;
  cursor:not-allowed;
  transform:none;
}

.recommendationGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.recommendationCard{
  min-width:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:16px;
  background:rgba(7,14,24,.34);
}

.recommendationCardWide{
  grid-column:1 / -1;
}

.replyDetailsCard{
  background:rgba(89,166,255,.07);
  border-color:rgba(89,166,255,.18);
}

.replyDetailsGrid{
  margin-top:14px;
}

.contactedFollowUpPanel{
  display:grid;
  gap:12px;
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(77,223,206,.26);
  border-radius:14px;
  background:rgba(6,36,50,.58);
}

.contactedFollowUpPanel[hidden]{display:none}

.contactedFollowUpPanel summary{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  font-size:13px;
  font-weight:850;
  cursor:pointer;
  list-style:none;
}

.contactedFollowUpPanel summary::-webkit-details-marker{display:none}

.contactedFollowUpPanel summary::before{
  width:18px;
  height:18px;
  border:1px solid rgba(77,223,206,.45);
  border-radius:50%;
  color:#75f0df;
  content:"+";
  display:grid;
  place-items:center;
  font-size:15px;
  line-height:1;
}

.contactedFollowUpPanel[open] summary::before{content:"–"}

.contactedFollowUpPanel.is-saved summary::before{
  border-color:rgba(100,223,155,.55);
  color:#8cf3b6;
  content:"✓";
}

.contactOutcomeIntro{
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.recommendationCardTitle{
  color:var(--text);
  font-size:14px;
  font-weight:800;
}

.recommendationText{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  padding:14px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  line-height:1.6;
  font-size:15px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.importantValue{
  color:#ffffff;
  font-weight:850;
}

body[data-theme="light"] .importantValue{
  color:#17251b;
}

.copySectionHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.recommendationChannelTitle{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.recommendationChannelIcon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  border-radius:12px;
  background:rgba(255,255,255,.04);
}

.recommendationChannelIcon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.emailChannelIcon{color:#75b9ff}
.whatsappChannelIcon{color:#54e6d4}
.phoneChannelIcon{color:#ffc266}

.recommendationCardEyebrow{
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  letter-spacing:.02em;
}

.copySectionBtn{
  min-height:34px;
  padding:7px 10px;
  border-radius:10px;
  font-size:12px;
}

.emailComposeActions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.emailComposeActions .copySectionBtn{
  width:100%;
  min-height:38px;
  border-radius:8px;
  white-space:normal;
}

.channelActionRow{
  display:flex;
  gap:8px;
  margin-top:12px;
}

.channelActionRow .copySectionBtn{
  min-height:38px;
  padding:7px 13px;
}

.emailComposeHint{
  display:block;
  margin-top:10px;
}

.recommendationSubLabel{
  margin-top:14px;
}

.talkingPoints{
  display:grid;
  gap:8px;
  margin:12px 0 0;
  padding:0;
  border:0;
  background:transparent;
  list-style:none;
}

.talkingPoints li{
  display:grid;
  grid-template-columns:10px minmax(0,1fr);
  align-items:start;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:11px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  font-size:13px;
  line-height:1.45;
}

.talkingPoints li + li{
  margin-top:0;
}

.talkingPointNumber{
  width:8px;
  height:8px;
  margin-top:6px;
  border-radius:50%;
  background:rgba(241,166,58,.15);
  border:1px solid rgba(255,207,134,.75);
  color:transparent;
  font-size:0;
}

.talkingPoints li > :only-child{
  grid-column:1 / -1;
  min-width:0;
}

.talkingPoints li > :last-child{
  min-width:0;
  overflow-wrap:anywhere;
}

.handoverSummaryGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

.handoverSummaryItem{
  display:grid;
  grid-template-columns:minmax(132px,.4fr) minmax(0,1fr);
  gap:12px;
  min-width:0;
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(255,255,255,.03);
}

.problemBox{
  border:1px solid rgba(255,123,136,.38);
  border-radius:14px;
  padding:12px 14px;
  color:#ffd1d6;
  background:rgba(255,123,136,.12);
  font-weight:800;
}

body[data-theme="light"] .problemBox{
  color:#8f2530;
  background:#fff0f2;
  border-color:#f2b8bf;
}

body[data-theme="light"] .leadSummaryHero{
  background:#f7fbff;
  border-color:#bfd8f2;
}

body[data-theme="light"] .summaryWantText{
  color:#275a31;
}

body[data-theme="light"] .keyDetailItem,
body[data-theme="light"] .handoverSummaryItem{
  background:#f3f6f1;
  border-color:#d3ded2;
}

body[data-theme="light"] .recommendationCard{
  background:#f5f8fb;
  border-color:#d5dee8;
}

body[data-theme="light"] .recommendationText,
body[data-theme="light"] .talkingPoints{
  background:#ffffff;
  border-color:#dce4ed;
}

body[data-theme="light"] .leadDetailBackBtn,
body[data-theme="light"] .pipelineModeBtn.active{
  background:#e8f3e6;
  border-color:#b9d7bb;
  color:#275a31;
}

.followUpStatusGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.followUpStatusBtn{
  white-space:normal;
  min-height:46px;
}

.followUpStatusBtn.active{
  background:var(--accent-soft);
  border-color:rgba(111,191,122,.38);
}

.heroCard{
  border-radius:22px;
  padding:18px 20px;
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}

.heroTitle{
  font-size:28px;
  font-weight:700;
}

.heroSubhead{
  margin-top:8px;
  color:var(--muted);
  line-height:1.5;
  overflow-wrap:anywhere;
}

.heroBadges{
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  justify-content:flex-end;
  gap:8px;
}

.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tab{
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:var(--muted);
  padding:10px 14px;
  cursor:pointer;
}

.tab.active{
  background:#075f5a;
  color:#ffffff;
  box-shadow:inset 0 0 0 1px rgba(13,129,119,.35);
}

.tabContent{display:none}
.tabContent.active{display:block}

.detailGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.detailCard{
  border-radius:18px;
  padding:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}

.detailLabel{
  color:var(--muted);
  font-size:12px;
  margin-bottom:10px;
}

.detailValue{
  font-size:15px;
  font-weight:600;
  line-height:1.45;
  word-break:break-word;
}

.editorCard{
  margin-top:18px;
  border-radius:22px;
  padding:20px;
}

.editorHeader{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.editorGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:14px;
}

.appointmentCard{
  border:1px solid rgba(111,191,122,.22);
}

.appointmentWideGrid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.checkboxRow{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-size:14px;
  margin-top:14px;
}

.checkboxRow input{
  width:18px;
  height:18px;
  accent-color:var(--accent);
}

.appointmentConfirmRow{
  margin-bottom:14px;
}

.compactHeader{
  margin-bottom:12px;
}

.notificationPanel{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:grid;
  gap:14px;
}

.followUpDigestCard{
  display:grid;
  gap:16px;
  margin-top:4px;
  padding:18px;
  border:1px solid rgba(93,182,255,.22);
  border-top:3px solid #2d8cff;
  border-radius:16px;
  background:
    linear-gradient(130deg,rgba(22,141,244,.1),transparent 48%),
    rgba(4,22,38,.84);
}

.followUpDigestHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.followUpBucketGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.followUpBucket{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
  padding:14px;
  border:1px solid rgba(93,182,255,.18);
  border-radius:14px;
  background:rgba(5,25,43,.82);
}

.followUpBucket.untouched{border-left:3px solid #2d9cff}
.followUpBucket.awaiting{border-left:3px solid #9873f5}

.followUpBucketNumber{
  display:grid;
  width:30px;
  height:30px;
  flex:0 0 30px;
  place-items:center;
  border-radius:9px;
  background:rgba(45,140,255,.16);
  color:#84c9ff;
  font-size:12px;
  font-weight:900;
}

.followUpBucket.awaiting .followUpBucketNumber{background:rgba(152,115,245,.16);color:#c8b5ff}
.followUpBucket strong{display:block;color:var(--text);font-size:13px}
.followUpBucket p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}

.followUpDigestToggle{
  align-items:flex-start;
  padding:13px 14px;
  border:1px solid rgba(32,205,191,.22);
  border-radius:13px;
  background:rgba(17,183,201,.07);
}

.followUpDigestToggle>span{display:grid;gap:4px}
.followUpDigestToggle strong{color:var(--text);font-size:13px}
.followUpDigestToggle small{color:var(--muted);font-size:12px;font-weight:500;line-height:1.45}
body.tenant-admin .followUpDigestCard .fieldHelp{font-size:12px;line-height:1.45}

.followUpDigestControls{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.inputWithSuffix{position:relative}
.inputWithSuffix .fieldInput{padding-right:58px}
.inputWithSuffix>span{
  position:absolute;
  top:50%;
  right:12px;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:11px;
  pointer-events:none;
}

.followUpDigestActions{display:flex;flex-wrap:wrap;gap:10px}
.followUpDigestActions .btnPrimary,.followUpDigestActions .btnSecondary{min-height:42px}
.followUpDigestActions button:disabled{
  cursor:not-allowed;
  opacity:.52;
  filter:saturate(.45);
  box-shadow:none;
  transform:none;
}

.followUpDigestResult{
  display:grid;
  grid-template-columns:minmax(150px,.35fr) minmax(0,1fr);
  gap:8px 16px;
  padding:13px 14px;
  border:1px solid rgba(93,182,255,.2);
  border-radius:13px;
  background:rgba(5,24,42,.76);
}

.followUpDigestResult strong{color:#edf7ff;font-size:13px}
.followUpDigestResult span{color:var(--muted);font-size:12px;line-height:1.45}
.followUpDigestResult.ready{border-color:rgba(53,199,121,.35);background:rgba(53,199,121,.08)}
.followUpDigestResult.warning{border-color:rgba(241,166,58,.34);background:rgba(241,166,58,.08)}
.followUpDigestResult.error{border-color:rgba(240,100,114,.35);background:rgba(240,100,114,.08)}

.toggleGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:10px 0 14px;
}

.toggleRow{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-size:13px;
  font-weight:600;
  min-width:0;
}

.toggleRow input{
  width:18px;
  height:18px;
  flex:0 0 auto;
}

.paidAddOnsSection{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line);
  display:grid;
  gap:12px;
}

.statusPanel{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.statusPanel div{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.statusPanel span{
  color:var(--muted);
  font-size:12px;
}

.statusPanel strong{
  font-size:12px;
}

.timeline{
  display:grid;
  gap:12px;
}

.timelineItem{
  display:grid;
  grid-template-columns:14px 1fr;
  gap:14px;
}

.timelineDot{
  width:14px;
  height:14px;
  border-radius:50%;
  margin-top:6px;
  background:linear-gradient(135deg, var(--accent), var(--teal));
  box-shadow:0 0 0 6px rgba(111,191,122,.08);
}

.timelineCard{
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  padding:14px 16px;
}

.timelineTitle{
  font-weight:700;
}

.timelineMeta{
  margin-top:5px;
  color:var(--muted-2);
  font-size:12px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.timelineText{
  margin-top:8px;
  color:var(--muted);
  line-height:1.5;
}

.timelineSource{
  margin-top:7px;
  color:#9adbd5;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.timeline-staff .timelineCard{
  border-left:3px solid #23cbbf;
  background:linear-gradient(90deg, rgba(27,197,180,.12), rgba(255,255,255,.03));
}

.timeline-staff .timelineTitle{
  font-weight:850;
}

.timeline-system .timelineCard{
  border-left:3px solid rgba(113,148,180,.6);
}

.timeline-system .timelineSource{
  color:var(--muted-2);
}

.activityUpdateDetails{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-top:13px;
}

.activityUpdatePrimary{
  grid-column:1 / -1;
  display:grid;
  gap:6px;
  min-width:0;
  padding:14px 15px;
  border:1px solid rgba(77,223,206,.32);
  border-radius:12px;
  background:rgba(25,181,169,.12);
}

.activityUpdatePrimary > span,
.activityUpdateMeta > span{
  color:#8aeadd;
  font-size:10px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.activityUpdatePrimary > strong{
  color:#f3fffd;
  font-size:15px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.activityUpdateMeta{
  display:grid;
  gap:4px;
  min-width:0;
  padding:10px 11px;
  border:1px solid rgba(132,181,225,.16);
  border-radius:10px;
  background:rgba(2,18,31,.4);
}

.activityUpdateMeta > strong{
  color:var(--text);
  font-size:12px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

@media (max-width:560px){
  .activityUpdateDetails{grid-template-columns:1fr}
  .activityUpdatePrimary > strong{font-size:14px}
}

.transcript{
  display:grid;
  gap:12px;
}

.transcriptMessage{
  border-radius:18px;
  padding:14px 16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}

.transcriptMessage.user{
  background:rgba(111,191,122,.08);
  border-color:rgba(111,191,122,.16);
}

.transcriptRole{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted-2);
  margin-bottom:8px;
  overflow-wrap:anywhere;
}

.transcriptText{
  white-space:pre-wrap;
  line-height:1.6;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.json{
  margin:0;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(4,8,14,.75);
  padding:18px;
  white-space:pre-wrap;
  overflow:auto;
  max-height:520px;
  color:#dfe9df;
}

body[data-theme="light"] .json{
  background:#f3f6f1;
  color:#17251b;
}

.toast{
  position:fixed;
  right:24px;
  top:24px;
  width:min(420px, calc(100vw - 48px));
  border-radius:20px;
  padding:18px;
  z-index:20;
  backdrop-filter:blur(12px);
}

.toastTitle{
  font-weight:800;
}

.toastBody{
  margin-top:8px;
  color:var(--muted);
  line-height:1.5;
}

.toastActions{
  margin-top:12px;
  justify-content:flex-end;
}

.emptyState{
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.14);
  padding:22px;
  color:var(--muted);
  text-align:center;
}

body[data-theme="light"] .emptyState{
  border-color:#c9d5c8;
  background:#f3f6f1;
}

.calendarToolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.calendarNav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.calendarTitleBlock{
  text-align:right;
  min-width:0;
}

.calendarMonthLabel{
  font-size:24px;
  font-weight:800;
}

.calendarGridWrap{
  margin-top:18px;
}

.calendarWeekdays,
.calendarGrid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
}

.calendarWeekdays{
  gap:8px;
  margin-bottom:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.calendarWeekdays > div{
  padding:0 4px;
}

.calendarGrid{
  gap:8px;
}

.calendarDay{
  min-height:168px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  padding:10px;
  min-width:0;
}

.calendarDay.outside{
  opacity:.48;
}

.calendarDayHead{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  min-width:0;
}

.calendarDateNumber{
  font-size:18px;
  font-weight:800;
}

.calendarDayCount{
  color:var(--muted-2);
  font-size:11px;
  white-space:nowrap;
}

.calendarEvents{
  display:grid;
  gap:7px;
  margin-top:10px;
}

.calendarEvent{
  width:100%;
  display:grid;
  gap:3px;
  text-align:left;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(111,191,122,.1);
  color:var(--text);
  padding:9px 10px;
  cursor:pointer;
  transition:transform .14s ease, border-color .14s ease, background .14s ease;
  min-width:0;
}

body[data-theme="light"] .calendarEvent{
  background:#edf6eb;
  border-color:#c9ddc8;
  color:var(--text);
}

.calendarEvent:hover{
  transform:translateY(-1px);
  border-color:rgba(111,191,122,.34);
  background:rgba(111,191,122,.16);
}

.calendarEvent.contacted{
  background:rgba(243,190,99,.13);
}

body[data-theme="light"] .calendarEvent.contacted{
  background:#fff5df;
}

.calendarEvent.confirmed,
.calendarEvent.completed{
  background:rgba(79,209,139,.12);
}

body[data-theme="light"] .calendarEvent.confirmed,
body[data-theme="light"] .calendarEvent.completed{
  background:#e8f8ef;
}

.calendarEvent.cancelled{
  background:rgba(255,123,136,.12);
}

body[data-theme="light"] .calendarEvent.cancelled{
  background:#fff0f2;
}

.calendarEventTime,
.calendarEventTitle,
.calendarEventMeta{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.calendarEventTime{
  color:var(--teal);
  font-size:12px;
  font-weight:800;
}

.calendarEventTitle{
  font-weight:800;
  font-size:13px;
}

.calendarEventMeta{
  color:var(--muted);
  font-size:12px;
}

.calendarStatus{
  justify-self:start;
  margin-top:3px;
  border-radius:999px;
  padding:4px 8px;
  border:1px solid var(--line);
  font-size:11px;
  font-weight:700;
}

.calendarStatus.good{
  border-color:rgba(79,209,139,.3);
  background:rgba(79,209,139,.14);
}

.calendarStatus.warn{
  border-color:rgba(243,190,99,.28);
  background:rgba(243,190,99,.16);
}

.calendarStatus.danger{
  border-color:rgba(255,123,136,.28);
  background:rgba(255,123,136,.16);
}

.calendarStatus.low{
  border-color:rgba(154,164,178,.22);
  background:rgba(154,164,178,.14);
}

.calendarMore{
  color:var(--muted);
  font-size:12px;
  padding:4px 2px;
}

.authShell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.authCard{
  width:min(420px,100%);
  border-radius:26px;
  padding:28px;
}

.authText,
.authHint,
.authError{
  color:var(--muted);
}

.authTitle{
  font-size:32px;
  margin-bottom:10px;
}

.authForm,
.authField{
  display:grid;
  gap:12px;
}

.authDivider{
  height:1px;
  background:var(--line);
  margin:6px 0 2px;
}

.authLinkButton{
  margin-top:14px;
  border:0;
  background:transparent;
  color:var(--accent);
  padding:0;
  font-weight:700;
  cursor:pointer;
}

.authField input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:12px 14px;
}

@keyframes ambientShift{
  0%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(1.6%, -1.2%, 0) scale(1.04)}
  100%{transform:translate3d(-1.4%, 1.4%, 0) scale(1.06)}
}

@keyframes ambientShiftSecondary{
  0%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-1.2%, 1.6%, 0) scale(1.03)}
  100%{transform:translate3d(1.1%, -1%, 0) scale(1.05)}
}

@media (max-width: 1400px){
  .summaryGrid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width: 1180px){
  html,
  body{
    min-height:100%;
    height:auto;
  }

  body:not(.platform-console){
    overflow-y:auto;
    overflow-x:hidden;
  }

  .shell{
    grid-template-columns:1fr;
    height:auto;
    min-height:100svh;
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .sidebar{
    position:static;
    height:auto;
    overflow:visible;
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .sidebarScroll{
    overflow:visible;
    padding-right:0;
    margin-right:0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
  }

  .brandBlock,
  .sidebarCard{
    height:100%;
  }

  .workspace{
    height:auto;
    overflow:visible;
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .workspaceScroll{
    overflow:visible;
    padding:22px 20px 32px;
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .topbar{
    position:static;
    background:none;
    backdrop-filter:none;
    padding:0;
  }

  .contentGrid{
    grid-template-columns:1fr;
  }

  .workspace.mode-team .teamGrid,
  .workspace.mode-bookings .teamGrid,
  .workspace.mode-stock .teamGrid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 820px){
  .sidebarScroll{
    grid-template-columns:1fr;
  }

  .workspaceNav:not(.sidebarNav){
    flex-wrap:nowrap;
    overflow-x:auto;
    max-width:100%;
    min-width:0;
    padding-bottom:4px;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }

  .workspaceNav:not(.sidebarNav) .workspaceNavBtn{
    flex:0 0 auto;
    min-width:max-content;
  }

  .contentGrid,
  .teamGrid{
    min-width:0;
  }
}

@media (max-width: 760px){
  body:not(.platform-console){
    background:
      radial-gradient(circle at 18% 6%, rgba(89,166,255,.16), transparent 24%),
      linear-gradient(180deg, #08111d 0%, #09101b 100%);
  }

  .brandBlock,
  .sidebarCard,
  .panelHeader,
  .workspaceScroll{
    padding-left:16px;
    padding-right:16px;
  }

  .shell{
    display:block;
  }

  .sidebar{
    padding:14px;
    border-right:none;
    border-bottom:1px solid var(--line);
  }

  .brandBlock,
  .sidebarCard,
  .panel,
  .summaryCard,
  .heroCard,
  .editorCard,
  .authCard{
    border-radius:18px;
  }

  .brandBlock,
  .sidebarCard{
    padding:16px;
  }

  .brandTitle{
    font-size:24px;
  }

  .topbar,
  .heroCard,
  .editorHeader{
    flex-direction:column;
  }

  .summaryGrid,
  .detailGrid,
  .editorGrid,
  .toggleGrid,
  .statusPanel,
  .fieldGrid,
  .onboardingHeroGrid,
  .onboardingChecklist,
  .quickActionGrid,
  .recommendationGrid,
  .keyDetailsGrid,
  .handoverSummaryGrid,
  .followUpStatusGrid{
    grid-template-columns:1fr;
  }

  .keyDetailItem,
  .handoverSummaryItem{
    grid-template-columns:1fr;
    gap:5px;
  }

  .calendarToolbar,
  .calendarTitleBlock{
    text-align:left;
    flex-direction:column;
    align-items:flex-start;
  }

  .uploadControls{
    grid-template-columns:1fr;
  }

  .calendarWeekdays{
    display:none;
  }

  .calendarGrid{
    grid-template-columns:1fr;
  }

  .calendarDay{
    min-height:120px;
  }

  .sidebarActions{
    grid-template-columns:1fr;
  }

  .accountPasswordGrid{
    grid-template-columns:1fr;
  }

  .sidebarActions,
  .editorActions,
  .toastActions,
  .authActions{
    gap:10px;
  }

  .topbar h1{
    font-size:clamp(28px, 9vw, 32px);
    line-height:1.05;
    letter-spacing:-.02em;
  }

  .topbar p,
  .sectionText,
  .brandText,
  .heroSubhead,
  .timelineText,
  .toastBody{
    font-size:14px;
    line-height:1.55;
  }

  .topbarMeta{
    width:100%;
    flex-direction:column;
  }

  .metaCard{
    width:100%;
    max-width:none;
  }

  .filterButtonGroup,
  .pipelineHeaderTools,
  .pipelineModeButtons,
  .activeFilters,
  .leadFilterToolbar,
  .sidebarActions,
  .editorActions{
    width:100%;
    justify-content:flex-start;
    justify-items:start;
  }

  .pipelineHeaderTools{
    min-width:0;
    justify-items:stretch;
  }

  .pipelineModeButtons{
    display:grid;
    grid-template-columns:1fr;
  }

  .pipelineModeBtn{
    width:100%;
    min-width:0;
  }

  .leadFilterToolbar{
    flex-wrap:wrap;
    align-items:stretch;
  }

  .leadFilterToggle{
    width:100%;
  }

  .leadFilterMenu{
    width:100%;
    margin-top:10px;
  }

  .leadFilterMenuHeader,
  .leadFilterActions{
    flex-direction:column;
  }

  .filterChoice,
  .btnPrimary,
  .btnSecondary,
  .btnGhost,
  .tab,
  .authActions button{
    min-height:44px;
  }

  .btnPrimary,
  .btnSecondary,
  .btnGhost,
  .authActions button{
    white-space:normal;
    overflow-wrap:anywhere;
  }

  .filterChoice{
    flex:1 1 calc(50% - 8px);
    justify-content:center;
  }

  .workspaceScroll{
    padding:18px 14px 30px;
    gap:18px;
  }

  .summaryGrid{
    gap:12px;
  }

  .summaryCard{
    padding:16px;
  }

  .summaryValue{
    margin-top:8px;
    font-size:28px;
  }

  .panelHeader{
    gap:14px;
    padding-top:16px;
    padding-bottom:16px;
  }

  .panelTitle{
    font-size:21px;
  }

  .detailBody{
    padding:14px;
    gap:14px;
  }

  .heroCard{
    padding:16px;
  }

  .heroTitle{
    font-size:24px;
    line-height:1.15;
    overflow-wrap:anywhere;
  }

  .heroBadges{
    justify-content:flex-start;
  }

  .tabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }

  .tab{
    flex:0 0 auto;
  }

  .editorCard{
    padding:16px;
    margin-top:14px;
  }

  .quickActionGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .quickActionBtn{
    min-height:64px;
  }

  .copySectionHeader,
  .calendarToolbar{
    align-items:flex-start;
  }

  .copySectionHeader{
    flex-direction:column;
  }

  .copySectionBtn{
    width:100%;
  }

  .fieldInput,
  .authField input{
    min-height:48px;
    font-size:16px;
  }

  textarea.fieldInput,
  .notesInput{
    min-height:126px;
  }

  .statusPanel div,
  .toggleRow,
  .checkboxRow{
    min-height:44px;
  }

  .tableWrap{
    overflow-x:hidden;
    overflow-y:visible;
  }

  .table{
    min-width:0;
  }

  #pipelinePanel .table{
    min-width:0;
  }

  .table thead{
    display:none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td{
    display:block;
    width:100%;
  }

  .table tbody tr{
    margin:0 0 12px;
    padding:12px 14px;
    border:1px solid var(--line);
    border-radius:16px;
    background:rgba(255,255,255,.035);
    box-shadow:0 12px 34px rgba(0,0,0,.16);
  }

  body[data-theme="light"] .table tbody tr{
    background:#ffffff;
    box-shadow:0 12px 28px rgba(43,78,102,.10);
  }

  .table tbody td{
    display:grid;
    grid-template-columns:minmax(92px,.42fr) minmax(0,1fr);
    gap:10px;
    align-items:start;
    padding:8px 0;
    border-bottom:none;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }

  .table tbody td::before{
    content:attr(data-label);
    color:var(--muted-2);
    font-size:11px;
    font-weight:800;
    letter-spacing:.06em;
    line-height:1.35;
    text-transform:uppercase;
  }

  .table tbody td:not([data-label])::before{
    content:"";
    display:none;
  }

  .table tbody td[colspan]{
    display:block;
    padding:0;
  }

  .table tbody td[colspan]::before{
    display:none;
  }

  #pipelinePanel .table tbody td:nth-child(6),
  #pipelinePanel .table tbody td:nth-child(7){
    white-space:normal;
  }

  .leadCell{
    gap:5px;
  }

  .badge,
  .heroBadge,
  .pill,
  .tenantBadge{
    white-space:normal;
    overflow-wrap:anywhere;
  }

  .intentBadge,
  .statusBadge,
  .heatBadge{
    justify-self:start;
    min-width:0;
  }

  .json{
    max-height:420px;
    white-space:pre-wrap;
    overflow:auto;
    overflow-wrap:anywhere;
    -webkit-overflow-scrolling:touch;
  }

  .calendarGridWrap{
    overflow-x:hidden;
  }

  .calendarNav,
  .calendarNav button{
    width:100%;
  }

  .calendarNav{
    display:grid;
    grid-template-columns:1fr;
  }

  .toast{
    top:auto;
    right:12px;
    bottom:12px;
    width:calc(100vw - 24px);
    border-radius:16px;
  }

  .authShell{
    align-items:start;
    padding:16px;
  }

  .authCard{
    width:100%;
    padding:22px 18px;
  }

  .authTitle{
    font-size:28px;
  }

  .authActions button{
    width:100%;
    border-radius:14px;
    border:1px solid rgba(122,185,255,.35);
    background:linear-gradient(135deg, var(--accent), #2d7be5);
    color:var(--text);
    cursor:pointer;
  }

  .authLinkButton{
    min-height:44px;
    padding:8px 0;
  }
}

@media (max-width: 430px){
  .workspaceScroll{
    padding-left:10px;
    padding-right:10px;
  }

  .sidebar{
    padding-left:10px;
    padding-right:10px;
  }

  .panelHeader,
  .detailBody,
  .editorCard,
  .heroCard,
  .brandBlock,
  .sidebarCard{
    padding-left:12px;
    padding-right:12px;
  }

  .filterChoice{
    flex-basis:100%;
  }

  .quickActionGrid{
    grid-template-columns:1fr;
  }

  .table tbody td{
    grid-template-columns:1fr;
    gap:4px;
  }
}

/* -------------------------------------------------------------------------- */
/* Platform console - document scroll + sticky sidebar + panel scroll areas    */
/* -------------------------------------------------------------------------- */

html:has(body.platform-console){
  overflow-y:auto;
}

body.platform-console{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  min-height:100vh;
}

html:has(body.platform-console),
body.platform-console{
  scrollbar-color:rgba(255,255,255,.28) #0b0c0e;
  scrollbar-width:thin;
}

html:has(body.platform-console)::-webkit-scrollbar,
body.platform-console::-webkit-scrollbar{
  width:12px;
}

html:has(body.platform-console)::-webkit-scrollbar-track,
body.platform-console::-webkit-scrollbar-track{
  background:#0b0c0e;
}

html:has(body.platform-console)::-webkit-scrollbar-thumb,
body.platform-console::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.24);
  border-radius:999px;
  border:2px solid #0b0c0e;
}

html:has(body.platform-console)::-webkit-scrollbar-thumb:hover,
body.platform-console::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,.34);
}

body.platform-console .shell{
  height:auto !important;
  min-height:100vh;
}

body.platform-console .sidebar{
  position:sticky;
  top:0;
  align-self:start;
  height:100vh;
  min-height:0;
  overflow:hidden;
  background:linear-gradient(180deg,#101216 0%,#0c0e12 100%) !important;
  border-right:1px solid rgba(255,255,255,.06);
}

body.platform-console .sidebar *{
  color:rgba(255,255,255,.85);
}

body.platform-console .sidebar a{
  color:rgba(255,255,255,.7);
}

body.platform-console .sidebar a:hover{
  color:#fff;
}

/* Match /admin: flex column fills sidebar; scroll only the inner stack (no short inner column). */
body.platform-console .sidebarScroll{
  background:transparent;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding-right:6px;
  margin-right:-6px;
  max-height:none;
  scrollbar-width:thin;
  scrollbar-color:rgba(111,191,122,.45) rgba(255,255,255,.08);
}

body.platform-console .sidebarScroll::-webkit-scrollbar{
  width:10px;
}

body.platform-console .sidebarScroll::-webkit-scrollbar-thumb{
  background:rgba(111,191,122,.32);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}

body.platform-console .sidebarScroll::-webkit-scrollbar-track{
  background:rgba(255,255,255,.06);
  border-radius:999px;
}

body.platform-console .workspace{
  height:auto !important;
  min-height:100vh;
  overflow:visible !important;
}

body.platform-console .workspaceScroll{
  height:auto !important;
  min-height:100vh;
  overflow:visible !important;
  padding-bottom:56px;
  gap:36px;
  padding-top:34px;
  padding-left:34px;
  padding-right:40px;
}

body.platform-console .panelHeader{
  flex-wrap:wrap;
  gap:12px;
}

body.platform-console .editorActions{
  flex-wrap:wrap;
}

/* One card shell = .panel only; body is plain. */
body.platform-console section.panel > .platformPanelBody{
  background:transparent;
  border:none;
  box-shadow:none;
  border-radius:0;
  margin:0;
  padding:20px 22px 22px;
  min-width:0;
}

body.platform-console .platformPanelBodyHint{
  margin:0 0 12px;
}

body.platform-console .platformPanelBody .tableWrap{
  padding-right:8px;
  margin-right:0;
}

body.platform-console section.panel{
  padding-bottom:0;
}

body.platform-console .platformPanelScroll--table,
body.platform-console .platformPanelScroll--summary,
body.platform-console .platformPanelScroll--origins{
  max-height:520px;
  min-height:320px;
  overflow-y:auto !important;
  scrollbar-width:thin;
  scrollbar-color:rgba(111,191,122,.45) rgba(255,255,255,.08);
}

body.platform-console .platformPanelScroll--table{
  overflow-x:auto;
}

body.platform-console .platformPanelScroll--summary,
body.platform-console .platformPanelScroll--origins{
  overflow-x:hidden;
}

body.platform-console .platformPanelScroll--table::-webkit-scrollbar,
body.platform-console .platformPanelScroll--summary::-webkit-scrollbar,
body.platform-console .platformPanelScroll--origins::-webkit-scrollbar{
  width:10px;
  height:10px;
}

body.platform-console .platformPanelScroll--table::-webkit-scrollbar-thumb,
body.platform-console .platformPanelScroll--summary::-webkit-scrollbar-thumb,
body.platform-console .platformPanelScroll--origins::-webkit-scrollbar-thumb{
  background:rgba(111,191,122,.3);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}

body.platform-console .platformPanelScroll--table::-webkit-scrollbar-track,
body.platform-console .platformPanelScroll--summary::-webkit-scrollbar-track,
body.platform-console .platformPanelScroll--origins::-webkit-scrollbar-track{
  background:rgba(255,255,255,.07);
  border-radius:999px;
}

body.platform-console .platformTenantsPanel .platformPanelScroll--table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:rgba(14,24,40,.98);
  box-shadow:0 1px 0 var(--line);
}

body.platform-console .table tbody tr.platformRow{
  cursor:pointer;
  transition:background .12s ease;
}

body.platform-console .table tbody tr.platformRow:hover{
  background:rgba(255,255,255,.05);
}

body.platform-console .table tbody tr.platformRowSelected{
  background:rgba(111,191,122,.14);
  box-shadow:inset 0 0 0 1px var(--line-strong);
}

body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea{
  background:#ffffff;
  color:var(--text);
}

body[data-theme="light"].platform-console .platformTenantsPanel .platformPanelScroll--table thead th{
  background:#eef3ec;
  color:#344238;
}

body[data-theme="light"].platform-console .platformSnippet{
  background:#f3f6f1;
  color:#344238;
}

body.platform-console .tenantManageBtn{
  padding:8px 12px;
  border-radius:12px;
}

body.platform-console .platformNav{
  gap:10px;
}

body.platform-console .platformNavBtn{
  width:100%;
  text-align:left;
  justify-content:flex-start;
}

body.platform-console .platformNavBtn.active{
  background:var(--accent-soft);
  border-color:var(--line-strong);
}

body.platform-console .securitySummaryGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:14px;
  margin-bottom:18px;
}

body.platform-console .uploadControls{
  grid-template-columns:minmax(220px,1fr) auto auto;
}

body.platform-console.tenant-editing .topbar h1{
  font-size:34px;
}

body.platform-console .tenantEditorSection .editorActions{
  margin-left:auto;
}

body.platform-console .platformEmptyState{
  padding:28px 22px;
  color:var(--muted);
  text-align:center;
  font-size:14px;
  line-height:1.5;
}

.hint.hintOk{
  color:var(--green);
}

.hint.hintErr{
  color:var(--red);
}

.platformSummaryGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:14px 20px;
  margin-top:8px;
}

.platformSummaryItem{
  min-width:0;
}

.platformSummaryLabel{
  display:block;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
  margin-bottom:6px;
}

.platformSummaryValue{
  font-size:15px;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.platformSnippet{
  margin-top:12px;
  padding:14px 16px;
  border-radius:var(--radius-md);
  background:rgba(0,0,0,.22);
  border:1px solid var(--line);
  font-family:ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size:12px;
  line-height:1.55;
  color:var(--muted);
  overflow-x:auto;
  white-space:pre-wrap;
}

.platformNote{
  margin-top:10px;
  font-size:13px;
  color:var(--muted-2);
  line-height:1.5;
}

@media (max-width:900px){
  body.platform-console .sidebar{
    position:static;
    height:auto;
    overflow:visible;
  }

  body.platform-console .sidebarScroll{
    overflow:visible;
    padding-right:0;
    margin-right:0;
  }

  body.platform-console .workspace,
  body.platform-console .workspaceScroll{
    min-height:0;
  }

  body.platform-console .workspaceScroll{
    padding:22px 20px 36px;
    gap:28px;
  }

  body.platform-console .editorGrid{
    grid-template-columns:1fr;
  }

  body.platform-console .platformTenantsPanel .platformPanelScroll--table .table{
    min-width:560px;
  }
}

@media (max-width:760px){
  body.platform-console .workspaceScroll{
    padding:16px 14px 32px;
    gap:20px;
  }

  body.platform-console .topbar h1,
  body.platform-console.tenant-editing .topbar h1{
    font-size:30px;
  }

  body.platform-console .panelHeader,
  body.platform-console section.panel > .platformPanelBody{
    padding-left:14px;
    padding-right:14px;
  }

  body.platform-console .platformSummaryGrid{
    grid-template-columns:1fr;
  }

  body.platform-console .platformPanelScroll--table,
  body.platform-console .platformPanelScroll--summary,
  body.platform-console .platformPanelScroll--origins{
    min-height:0;
    max-height:none;
  }

  body.platform-console .editorActions a,
  body.platform-console .editorActions button,
  body.platform-console .tenantManageBtn{
    min-height:44px;
  }

  body.platform-console .platformTenantsPanel .table thead{
    display:table-header-group;
  }

  body.platform-console .platformTenantsPanel .table tbody tr{
    display:table-row;
  }

  body.platform-console .platformTenantsPanel .table tbody td{
    display:table-cell;
    padding:12px 14px;
    border-bottom:1px solid var(--line);
  }
}

@media print{
  body{
    background:#fff;
    color:#111;
  }

  .sidebar,
  .topbar,
  .dashboardBackBar,
  .workspaceNav,
  .summaryGrid,
  #pipelinePanel,
  .detailBody > .heroCard,
  .detailBody > .tabs,
  .onboardingPrintActions,
  .toast{
    display:none !important;
  }

  .shell,
  .workspace,
  .workspaceScroll,
  .contentGrid{
    display:block;
    height:auto;
    overflow:visible;
  }

  .workspaceScroll{
    padding:0;
  }

  .panel,
  .editorCard{
    box-shadow:none;
    border-color:#bbb;
    background:#fff;
    color:#111;
    break-inside:avoid;
  }

  .sectionText,
  .fieldLabel,
  .hint,
  .onboardingBullets{
    color:#333;
  }

  .onboardingValue,
  .onboardingStatus,
  .onboardingCheck,
  .onboardingOrigins code,
  .json{
    background:#fff;
    color:#111;
    border-color:#bbb;
  }
}

/* -------------------------------------------------------------------------- */
/* Tenant admin v1 - scoped so the shared platform console remains unchanged. */
/* -------------------------------------------------------------------------- */

body.tenant-admin{
  --tenant-accent:#10b981;
  --tenant-accent-rgb:16,185,129;
  --tenant-bg:#020b16;
  --tenant-bg-soft:#061526;
  --tenant-panel:#081a2e;
  --tenant-panel-strong:#0b2139;
  --tenant-line:rgba(132,181,225,.16);
  --tenant-line-strong:rgba(53,155,255,.42);
  --tenant-text:#f7fbff;
  --tenant-muted:#9fb3c9;
  --tenant-blue:#168df4;
  --tenant-cyan:#11b7c9;
  --tenant-green:#35c779;
  --tenant-amber:#f1a63a;
  --tenant-purple:#9873f5;
  --tenant-red:#f06472;
  color-scheme:dark;
  color:var(--tenant-text);
  background:
    radial-gradient(circle at 14% 8%, rgba(22,141,244,.13), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(17,183,201,.08), transparent 24%),
    linear-gradient(145deg, #020a14 0%, #031324 56%, #020b16 100%);
  overflow:hidden;
}

body.tenant-admin::before{
  background:
    radial-gradient(circle at 34% 22%, rgba(22,141,244,.08), transparent 22%),
    radial-gradient(circle at 72% 68%, rgba(16,185,129,.055), transparent 24%);
  filter:blur(28px);
  opacity:.78;
  animation:tenantAmbient 28s ease-in-out infinite alternate;
}

body.tenant-admin::after{
  background:linear-gradient(180deg, rgba(255,255,255,.012), transparent 24%);
  filter:none;
  opacity:1;
  animation:none;
}

body.tenant-admin .shell{
  height:100vh;
  grid-template-columns:252px minmax(0,1fr);
}

body.tenant-admin .sidebar{
  width:252px;
  padding:12px;
  gap:10px;
  background:
    linear-gradient(180deg, rgba(7,24,43,.98), rgba(3,16,30,.99)),
    #041426;
  border-right:1px solid var(--tenant-line);
  box-shadow:18px 0 50px rgba(0,0,0,.17);
}

body.tenant-admin .sidebarScroll{
  gap:10px;
  padding-right:0;
  margin-right:0;
}

body.tenant-admin .sidebarMobileHeader{
  display:none;
  align-items:center;
  justify-content:space-between;
  min-height:42px;
  padding:0 4px;
}

body.tenant-admin .iconButton{
  width:40px;
  height:40px;
  display:inline-grid;
  place-items:center;
  border:1px solid var(--tenant-line);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:var(--tenant-text);
  cursor:pointer;
}

body.tenant-admin .brandBlock,
body.tenant-admin .sidebarCard,
body.tenant-admin .accountSummary,
body.tenant-admin .panel,
body.tenant-admin .editorCard,
body.tenant-admin .heroCard,
body.tenant-admin .summaryCard,
body.tenant-admin .metaCard{
  background:linear-gradient(145deg, rgba(12,38,66,.88), rgba(5,25,45,.9));
  border-color:var(--tenant-line);
  box-shadow:0 18px 52px rgba(0,5,13,.25);
}

body.tenant-admin .tenantBrandBlock{
  padding:14px;
  border-radius:16px;
  min-height:92px;
}

body.tenant-admin .tenantBrandIdentity{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}

body.tenant-admin .dashboardBrandLogo,
body.tenant-admin .dashboardBrandFallback{
  flex:0 0 54px;
  width:54px;
  height:54px;
  margin:0;
  padding:5px;
  border:1px solid rgba(var(--tenant-accent-rgb),.42);
  border-radius:13px;
  background:rgba(255,255,255,.96);
  object-fit:contain;
}

body.tenant-admin .dashboardBrandFallback{
  display:grid;
  place-content:center;
  text-align:center;
  background:linear-gradient(145deg, rgba(var(--tenant-accent-rgb),.3), rgba(22,141,244,.14));
  color:#fff;
}

body.tenant-admin .dashboardBrandFallback span{
  font-size:17px;
  font-weight:800;
  letter-spacing:.03em;
}

body.tenant-admin .dashboardBrandFallback small{
  margin-top:2px;
  max-width:46px;
  overflow:hidden;
  font-size:7px;
  line-height:1.1;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}

body.tenant-admin .tenantBrandCopy{
  min-width:0;
}

body.tenant-admin .brandEyebrow,
body.tenant-admin .sidebarNavLabel,
body.tenant-admin .topbarEyebrow,
body.tenant-admin .panelEyebrow,
body.tenant-admin .metaLabel,
body.tenant-admin .sidebarLabel{
  color:#5db6ff;
  font-size:10px;
  font-weight:750;
  letter-spacing:.12em;
}

body.tenant-admin .brandTitle{
  margin:4px 0 0;
  font-size:17px;
  line-height:1.12;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.tenant-admin .brandLocation{
  margin-top:4px;
  color:var(--tenant-muted);
  font-size:11px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.tenant-admin .tenantScopeCard{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:44px;
  padding:8px 12px;
  border-radius:13px;
}

body.tenant-admin .tenantBadge{
  max-width:130px;
  margin:0;
  padding:5px 8px;
  overflow:hidden;
  color:var(--tenant-muted);
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.tenant-admin .sidebarNav{
  gap:5px;
  margin-top:4px;
}

body.tenant-admin .sidebarNavLabel{
  padding:10px 10px 5px;
  text-transform:uppercase;
}

body.tenant-admin .sidebarNav .workspaceNavBtn{
  display:flex;
  align-items:center;
  min-height:43px;
  gap:11px;
  padding:9px 11px;
  border-color:transparent;
  border-radius:11px;
  background:transparent;
  color:#c4d2e2;
  box-shadow:none;
  font-size:13px;
  line-height:1;
}

body.tenant-admin .sidebarNav .workspaceNavBtn:hover{
  transform:none;
  background:rgba(22,141,244,.09);
  color:#fff;
}

body.tenant-admin .sidebarNav .workspaceNavBtn.active{
  border-color:rgba(var(--tenant-accent-rgb),.52);
  background:linear-gradient(90deg, rgba(var(--tenant-accent-rgb),.2), rgba(22,141,244,.12));
  color:#fff;
  box-shadow:inset 3px 0 0 var(--tenant-accent), 0 10px 25px rgba(0,0,0,.12);
}

body.tenant-admin .navIcon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  display:inline-grid;
  place-items:center;
  color:#72beff;
  line-height:0;
}

body.tenant-admin .navIcon svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

body.tenant-admin .sidebarNav .workspaceNavBtn > span:not(.navIcon){
  display:block;
  line-height:20px;
}

body.tenant-admin .sidebarFoot{
  margin-top:auto;
}

body.tenant-admin .accountSummary{
  padding:11px 12px;
  border-radius:14px;
}

body.tenant-admin .accountSummaryName{
  margin-top:5px;
  color:#eef7ff;
  font-size:12px;
}

body.tenant-admin .accountSummaryOrg{
  margin-top:2px;
  color:var(--tenant-muted);
  font-size:10px;
}

body.tenant-admin .poweredByCredit{
  display:grid;
  justify-items:center;
  gap:5px;
  padding:8px 4px 2px;
  color:#7f93aa;
  font-size:9px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

body.tenant-admin .poweredByBrand{
  display:flex;
  align-items:center;
  gap:7px;
  color:#a4b7ca;
}

body.tenant-admin .poweredByBrand img{
  width:22px;
  height:22px;
  object-fit:contain;
  opacity:.74;
}

body.tenant-admin .poweredByBrand strong{
  font-size:9px;
  font-weight:750;
  letter-spacing:.15em;
  white-space:nowrap;
}

body.tenant-admin .workspace{
  height:100vh;
  background:
    radial-gradient(circle at 80% 4%, rgba(16,185,129,.05), transparent 25%),
    linear-gradient(160deg, rgba(4,18,33,.99), rgba(3,15,29,.98));
}

body.tenant-admin .workspaceScroll{
  gap:18px;
  padding:16px 20px 28px;
}

body.tenant-admin .sidebarToggleBtn,
body.tenant-admin .sidebarOverlay{
  display:none;
}

body.tenant-admin .topbar{
  position:relative;
  top:auto;
  z-index:4;
  gap:18px;
  padding:12px 2px 14px;
  background:linear-gradient(180deg, rgba(3,15,29,.98) 0%, rgba(3,15,29,.9) 78%, rgba(3,15,29,0) 100%);
}

body.tenant-admin .topbarCopy{
  max-width:720px;
  min-width:280px;
}

body.tenant-admin .topbar h1{
  margin:6px 0 7px;
  font-size:clamp(28px,2.4vw,38px);
  line-height:1.04;
}

body.tenant-admin .topbar p{
  color:var(--tenant-muted);
  font-size:13px;
  line-height:1.5;
}

body.tenant-admin .topbarMeta{
  justify-content:flex-end;
  gap:8px;
}

body.tenant-admin .metaCard,
body.tenant-admin .topbarAction{
  min-width:102px;
  min-height:58px;
  padding:10px 12px;
  border:1px solid var(--tenant-line);
  border-radius:13px;
  background:linear-gradient(145deg, rgba(11,35,61,.86), rgba(5,24,43,.88));
  box-shadow:none;
}

body.tenant-admin .metaCard{
  max-width:172px;
}

body.tenant-admin .metaValue{
  margin-top:4px;
  color:#eff8ff;
  font-size:12px;
  line-height:1.25;
}

body.tenant-admin .topbarAction{
  display:grid;
  place-content:center;
  gap:3px;
  color:#dcecff;
  text-align:center;
  white-space:normal;
}

body.tenant-admin .topbarAction span:first-child{
  color:#5db6ff;
  font-size:17px;
}

body.tenant-admin .dashboardBackBar{
  display:none!important;
}

body.tenant-admin .summaryGrid{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:11px;
}

body.tenant-admin .summaryCard{
  min-height:126px;
  padding:13px 14px;
  border-radius:15px;
}

body.tenant-admin .summaryCard::before,
body.tenant-admin .summaryCard::after{
  opacity:.34;
}

body.tenant-admin .summaryCardIcon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  margin-bottom:8px;
  border:1px solid rgba(93,182,255,.2);
  border-radius:9px;
  background:rgba(22,141,244,.12);
  color:#5db6ff;
  font-size:15px;
}

body.tenant-admin .summaryCard-qualified .summaryCardIcon{background:rgba(152,115,245,.14);color:#b49cff}
body.tenant-admin .summaryCard-booked .summaryCardIcon{background:rgba(241,166,58,.14);color:#ffc266}
body.tenant-admin .summaryCard-won .summaryCardIcon{background:rgba(53,199,121,.14);color:#64df9b}
body.tenant-admin .summaryCard-followup .summaryCardIcon{background:rgba(240,100,114,.13);color:#ff8691}

body.tenant-admin .summaryLabel{color:#c2d1e0;font-size:12px}
body.tenant-admin .summaryValue{margin-top:4px;font-size:27px}
body.tenant-admin .summaryHint{margin-top:4px;color:#8198ae;font-size:10px;line-height:1.32}

body.tenant-admin .panel,
body.tenant-admin .editorCard{
  border-radius:16px;
}

body.tenant-admin .panelHeader{
  padding:15px 17px;
  border-color:var(--tenant-line);
}

body.tenant-admin .panelTitle{font-size:21px}
body.tenant-admin .panelMeta,
body.tenant-admin .hint,
body.tenant-admin .muted,
body.tenant-admin .muted2,
body.tenant-admin .fieldLabel,
body.tenant-admin .sectionText,
body.tenant-admin .heroSubhead{color:var(--tenant-muted)}

body.tenant-admin .workspace.mode-onboarding .contentGrid>.detailPanel,
body.tenant-admin .workspace.mode-team .contentGrid>.detailPanel,
body.tenant-admin .workspace.mode-settings .contentGrid>.detailPanel,
body.tenant-admin .workspace.mode-stock .contentGrid>.detailPanel,
body.tenant-admin .workspace.mode-bookings .contentGrid>.detailPanel,
body.tenant-admin .workspace.mode-calendar .contentGrid>.detailPanel{
  overflow:visible;
  border:0;
  background:transparent;
  box-shadow:none;
}

body.tenant-admin .workspace.mode-onboarding .contentGrid>.detailPanel>.panelHeader,
body.tenant-admin .workspace.mode-team .contentGrid>.detailPanel>.panelHeader,
body.tenant-admin .workspace.mode-settings .contentGrid>.detailPanel>.panelHeader,
body.tenant-admin .workspace.mode-stock .contentGrid>.detailPanel>.panelHeader,
body.tenant-admin .workspace.mode-bookings .contentGrid>.detailPanel>.panelHeader,
body.tenant-admin .workspace.mode-calendar .contentGrid>.detailPanel>.panelHeader{
  display:none;
}

body.tenant-admin .workspace.mode-onboarding .contentGrid>.detailPanel>.detailBody,
body.tenant-admin .workspace.mode-team .contentGrid>.detailPanel>.detailBody,
body.tenant-admin .workspace.mode-settings .contentGrid>.detailPanel>.detailBody,
body.tenant-admin .workspace.mode-stock .contentGrid>.detailPanel>.detailBody,
body.tenant-admin .workspace.mode-bookings .contentGrid>.detailPanel>.detailBody,
body.tenant-admin .workspace.mode-calendar .contentGrid>.detailPanel>.detailBody{
  padding:0;
}

body.tenant-admin .btnPrimary{
  background:linear-gradient(135deg,#168df4,#0871cc);
  border-color:#2b9bff;
  box-shadow:0 8px 22px rgba(22,141,244,.17);
}

body.tenant-admin .btnSecondary{
  background:rgba(22,141,244,.13);
  border-color:rgba(53,155,255,.36);
  color:#dceeff;
}

body.tenant-admin .btnGhost{
  background:rgba(255,255,255,.025);
  border-color:var(--tenant-line);
  color:#c5d6e7;
}

body.tenant-admin .fieldInput,
body.tenant-admin select.fieldInput,
body.tenant-admin textarea.fieldInput{
  border-color:var(--tenant-line);
  background:#06172a;
  color:#f3f9ff;
}

body.tenant-admin select.fieldInput option,
body.tenant-admin select.fieldInput optgroup{background:#06172a;color:#f3f9ff}
body.tenant-admin .fieldInput::placeholder{color:#6f879e}
body.tenant-admin .fieldInput:focus{border-color:#399ef7;box-shadow:0 0 0 3px rgba(22,141,244,.16)}

body.tenant-admin .table thead th{
  background:#06172a;
  color:#8da5bc;
  border-color:var(--tenant-line);
  font-size:10px;
}

body.tenant-admin .table tbody td{border-color:rgba(132,181,225,.09);font-size:12px}
body.tenant-admin .table tbody tr:hover{background:rgba(22,141,244,.07)}
body.tenant-admin .table tbody tr.active{background:rgba(var(--tenant-accent-rgb),.1);box-shadow:inset 3px 0 0 var(--tenant-accent)}

body.tenant-admin .badge,
body.tenant-admin .heroBadge,
body.tenant-admin .filterChoice{
  border-color:var(--tenant-line);
  color:#c7d6e5;
}

body.tenant-admin .badge.statusNew,
body.tenant-admin .heroBadge.statusNew{background:rgba(22,141,244,.13);border-color:rgba(22,141,244,.32);color:#74beff}
body.tenant-admin .badge.statusContacted,
body.tenant-admin .heroBadge.statusContacted{background:rgba(17,183,201,.13);border-color:rgba(17,183,201,.32);color:#5bdce7}
body.tenant-admin .badge.statusAwaiting,
body.tenant-admin .heroBadge.statusAwaiting{background:rgba(152,115,245,.13);border-color:rgba(152,115,245,.32);color:#bea8ff}
body.tenant-admin .badge.statusBooked,
body.tenant-admin .heroBadge.statusBooked,
body.tenant-admin .badge.statusWon,
body.tenant-admin .heroBadge.statusWon,
body.tenant-admin .badge.statusCompleted,
body.tenant-admin .heroBadge.statusCompleted{background:rgba(53,199,121,.13);border-color:rgba(53,199,121,.32);color:#70e5a7}
body.tenant-admin .badge.statusLost,
body.tenant-admin .heroBadge.statusLost,
body.tenant-admin .badge.heatHigh{background:rgba(240,100,114,.14);border-color:rgba(240,100,114,.34);color:#ff929d}
body.tenant-admin .badge.heatMedium{background:rgba(241,166,58,.14);border-color:rgba(241,166,58,.34);color:#ffc36b}
body.tenant-admin .badge.heatLow{background:rgba(115,148,180,.13);border-color:rgba(115,148,180,.26);color:#a9bfd3}

body.tenant-admin .leadFilterToolbar{background:rgba(4,20,37,.54)}
body.tenant-admin .pipelineModeBtn.active,
body.tenant-admin .filterButtonGroup .filterChoice.active{background:#0d78d3;border-color:#2e9fff;box-shadow:0 0 0 3px rgba(22,141,244,.16)}

body.tenant-admin .leadFilterToggle[aria-expanded="true"]{
  background:linear-gradient(135deg,#159f91,#20cdbf);
  border-color:#4ddfce;
  color:#ffffff;
  box-shadow:0 0 0 3px rgba(32,205,191,.18), 0 8px 18px rgba(8,103,101,.22);
}

body.tenant-admin .workspace.mode-team .teamGrid,
body.tenant-admin .workspace.mode-bookings .teamGrid{grid-template-columns:minmax(0,1.45fr) minmax(340px,.7fr)}
body.tenant-admin .workspace.mode-stock .teamGrid{grid-template-columns:minmax(0,1.15fr) minmax(430px,.85fr)}

body.tenant-admin .onboardingPack{gap:14px}
body.tenant-admin .onboardingHero{max-width:none!important;padding:18px}
body.tenant-admin .onboardingHeroGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.tenant-admin .onboardingValue,
body.tenant-admin .onboardingStatus{min-height:42px;background:#06172a;border-color:var(--tenant-line);padding:10px 12px}

body.tenant-admin .onboardingProgress{
  display:grid;
  gap:10px;
  margin-top:16px;
  padding-top:15px;
  border-top:1px solid var(--tenant-line);
}

body.tenant-admin .onboardingProgressCopy,
body.tenant-admin .onboardingProgressStats{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--tenant-muted);
  font-size:12px;
}

body.tenant-admin .onboardingProgressCopy strong{color:#f5fbff;font-size:20px}
body.tenant-admin .onboardingProgressTrack{height:8px;overflow:hidden;border-radius:999px;background:#041221}
body.tenant-admin .onboardingProgressTrack span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--tenant-accent),#16a3ef);transition:width .35s ease}
body.tenant-admin .onboardingProgressStats strong{color:#edf8ff}

body.tenant-admin .onboardingLayout{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.62fr);
  gap:14px;
  align-items:start;
}

body.tenant-admin .onboardingSteps{gap:11px}
body.tenant-admin .onboardingStep{max-width:none!important;padding:15px}
body.tenant-admin .onboardingChecklist{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
body.tenant-admin .onboardingCheck{min-height:36px;padding:8px 9px;background:#06172a}
body.tenant-admin .onboardingCheckMark{min-width:46px;font-size:9px}
body.tenant-admin .onboardingRail{display:grid;gap:12px;position:sticky;top:132px}
body.tenant-admin .onboardingRail .editorCard{max-width:none!important;padding:15px}
body.tenant-admin .resourceTypeBadge{padding:5px 7px;border-radius:8px;background:rgba(240,100,114,.16);color:#ff9aa4;font-size:10px;font-weight:800}
body.tenant-admin .resourceRow{display:grid;gap:11px;color:#edf7ff;font-size:12px}
body.tenant-admin .onboardingRailLabel{margin-top:15px}
body.tenant-admin .onboardingOrigins code{max-width:100%;border-color:var(--tenant-line);background:#041426;color:#a9c4dd;overflow-wrap:anywhere}
body.tenant-admin .onboardingDemoLink{display:inline-flex;margin-top:12px;color:#63baff;font-size:12px;text-decoration:none}
body.tenant-admin .miniWidgetPreview{margin-top:13px;overflow:hidden;border:1px solid var(--tenant-line);border-radius:15px;background:#041426}
body.tenant-admin .miniWidgetHeader{display:flex;align-items:center;gap:9px;padding:11px;background:linear-gradient(135deg,rgba(var(--tenant-accent-rgb),.38),rgba(22,141,244,.24))}
body.tenant-admin .miniWidgetHeader img{width:28px;height:28px;object-fit:contain}
body.tenant-admin .miniWidgetHeader strong,
body.tenant-admin .miniWidgetHeader span{display:block}
body.tenant-admin .miniWidgetHeader span{margin-top:2px;color:#cfe0ef;font-size:9px}
body.tenant-admin .miniWidgetMessage{margin:14px;padding:10px;border-radius:12px 12px 12px 4px;background:#0b2139;color:#eaf6ff;font-size:11px;line-height:1.5}

body.tenant-admin .managementDisclosure{border-top:1px solid var(--tenant-line);margin-top:12px;padding-top:10px}
body.tenant-admin .managementDisclosure summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid var(--tenant-line);border-radius:12px;background:#06172a;color:#eef8ff;cursor:pointer;list-style:none}
body.tenant-admin .managementDisclosure summary::-webkit-details-marker{display:none}
body.tenant-admin .managementDisclosure summary span:first-child{display:grid;gap:3px}
body.tenant-admin .managementDisclosure summary small{color:var(--tenant-muted);font-weight:400}
body.tenant-admin .managementDisclosure[open] summary span:last-child{transform:rotate(45deg)}
body.tenant-admin .managementDisclosureBody{display:grid;gap:14px;padding-top:14px}

body.tenant-admin .fieldHelp{margin-top:6px;font-size:10px;line-height:1.4}

body.tenant-admin .settingsWorkspace{display:grid;gap:13px}
body.tenant-admin .settingsTabs{display:flex;overflow-x:auto;border:1px solid var(--tenant-line);border-radius:15px;background:rgba(5,24,43,.86);scrollbar-width:thin}
body.tenant-admin .settingsTab{flex:1 0 auto;min-height:52px;padding:10px 15px;border:0;border-right:1px solid var(--tenant-line);background:transparent;color:#9db2c8;cursor:pointer}
body.tenant-admin .settingsTab:last-child{border-right:0}
body.tenant-admin .settingsTab.active{background:linear-gradient(180deg,rgba(22,141,244,.17),rgba(22,141,244,.07));color:#fff;box-shadow:inset 0 -2px 0 #269cff}
body.tenant-admin .settingsPanel>.editorCard,
body.tenant-admin .settingsPanel>.settingsBrandLayout{max-width:none!important}
body.tenant-admin .settingsBrandLayout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:13px;align-items:start}
body.tenant-admin .settingsBrandLayout>.editorCard{max-width:none!important;margin:0}
body.tenant-admin .editorGridWide{grid-column:1/-1}
body.tenant-admin .settingsLivePreview{position:sticky;top:132px;display:grid;gap:14px}
body.tenant-admin .settingsTenantPreview{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--tenant-line);border-radius:13px;background:#06172a}
body.tenant-admin .settingsTenantPreview img,
body.tenant-admin .settingsTenantPreview>span{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border:1px solid rgba(var(--tenant-accent-rgb),.38);border-radius:10px;background:rgba(var(--tenant-accent-rgb),.18);object-fit:contain;font-weight:800}
body.tenant-admin .settingsTenantPreview strong,
body.tenant-admin .settingsTenantPreview small{display:block}
body.tenant-admin .settingsTenantPreview small{margin-top:3px;color:var(--tenant-muted)}
body.tenant-admin .settingsWidgetPreview{overflow:hidden;border:1px solid var(--tenant-line);border-radius:15px;background:#041426}
body.tenant-admin .settingsWidgetPreviewHeader{display:flex;align-items:center;gap:9px;padding:12px;background:linear-gradient(135deg,#0a3a55,#07566c)}
body.tenant-admin .settingsWidgetPreviewHeader span{width:10px;height:10px;border-radius:999px;background:#10b981;box-shadow:0 0 14px currentColor}
body.tenant-admin .settingsWidgetPreviewMessage{margin:15px;padding:11px;border-radius:12px 12px 12px 4px;background:#0b2139;font-size:11px;line-height:1.5}
body.tenant-admin .settingsWidgetPreviewInput{margin:0 15px 15px;padding:10px;border:1px solid var(--tenant-line);border-radius:10px;color:#738ba3;font-size:10px}
body.tenant-admin .settingsSaveBar{position:sticky;bottom:0;z-index:8;display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:12px;border:1px solid var(--tenant-line);border-radius:14px;background:rgba(4,20,37,.95);backdrop-filter:blur(14px)}

body.tenant-admin .calendarGridWrap{border-color:var(--tenant-line);border-radius:16px;background:rgba(5,24,43,.62)}
body.tenant-admin .workspace.mode-calendar .calendarGridWrap{min-height:0}
body.tenant-admin .calendarWeekdays{background:#06172a;color:#8da5bc}
body.tenant-admin .calendarDay{min-height:320px!important;padding:9px;background:rgba(4,20,37,.74);border-color:var(--tenant-line)}
body.tenant-admin .calendarDayName{display:none;color:#72beff;font-size:10px;font-weight:800;text-transform:uppercase}
body.tenant-admin .calendarDateNumber{width:26px;height:26px;display:grid;place-items:center;border-radius:999px;background:rgba(22,141,244,.12);color:#eaf6ff}
body.tenant-admin .calendarDayCount{font-size:9px}
body.tenant-admin .calendarDayEmpty{padding:16px 4px;color:#617d97;font-size:10px;text-align:center}
body.tenant-admin .calendarEvent{border-color:rgba(22,141,244,.28);background:rgba(22,141,244,.12)}
body.tenant-admin .calendarEvent.contacted{border-color:rgba(17,183,201,.3);background:rgba(17,183,201,.12)}
body.tenant-admin .calendarEvent.confirmed,
body.tenant-admin .calendarEvent.completed{border-color:rgba(53,199,121,.3);background:rgba(53,199,121,.12)}
body.tenant-admin .calendarEvent.cancelled{border-color:rgba(240,100,114,.3);background:rgba(240,100,114,.12)}
body.tenant-admin .calendarStatus{width:max-content;max-width:100%}

body.tenant-admin :where(button,a,input,select,textarea,[tabindex]):focus-visible{
  outline:2px solid #72beff;
  outline-offset:3px;
}

body.tenant-admin .table tbody tr[tabindex="0"]:focus-visible{
  outline:2px solid #72beff;
  outline-offset:-2px;
  background:rgba(22,141,244,.1);
}

@keyframes tenantAmbient{
  from{transform:translate3d(-1%,0,0) scale(1)}
  to{transform:translate3d(1%,1%,0) scale(1.04)}
}

body[data-theme="light"].tenant-admin{
  --tenant-bg:#f3f8fc;
  --tenant-bg-soft:#e8f1f8;
  --tenant-panel:#fff;
  --tenant-panel-strong:#eff6fb;
  --tenant-line:rgba(22,61,92,.15);
  --tenant-text:#122438;
  --tenant-muted:#566d82;
  color:var(--tenant-text);
  background:#f4f8fb;
}

body[data-theme="light"].tenant-admin .workspace{background:linear-gradient(145deg,#f7fbfe,#eaf3f9)}
body[data-theme="light"].tenant-admin .sidebar{background:linear-gradient(180deg,#eaf3fa,#ddebf5)}
body[data-theme="light"].tenant-admin .topbar{background:linear-gradient(180deg,rgba(247,251,254,.98),rgba(247,251,254,.88),rgba(247,251,254,0))}
body[data-theme="light"].tenant-admin .brandBlock,
body[data-theme="light"].tenant-admin .sidebarCard,
body[data-theme="light"].tenant-admin .accountSummary,
body[data-theme="light"].tenant-admin .panel,
body[data-theme="light"].tenant-admin .editorCard,
body[data-theme="light"].tenant-admin .heroCard,
body[data-theme="light"].tenant-admin .summaryCard,
body[data-theme="light"].tenant-admin .metaCard{background:linear-gradient(145deg,#fff,#f1f7fb);color:var(--tenant-text);border-color:var(--tenant-line);box-shadow:0 14px 38px rgba(39,78,108,.1)}
body[data-theme="light"].tenant-admin .sidebarNav .workspaceNavBtn{color:#365066}
body[data-theme="light"].tenant-admin .sidebarNav .workspaceNavBtn.active{color:#132a3d}
body[data-theme="light"].tenant-admin .topbarAction,
body[data-theme="light"].tenant-admin .settingsTabs,
body[data-theme="light"].tenant-admin .settingsSaveBar{background:rgba(255,255,255,.93);color:#244159}
body[data-theme="light"].tenant-admin .metaValue,
body[data-theme="light"].tenant-admin .accountSummaryName,
body[data-theme="light"].tenant-admin .summaryLabel{color:#18344b}
body[data-theme="light"].tenant-admin .fieldInput,
body[data-theme="light"].tenant-admin select.fieldInput,
body[data-theme="light"].tenant-admin textarea.fieldInput,
body[data-theme="light"].tenant-admin .onboardingValue,
body[data-theme="light"].tenant-admin .onboardingStatus,
body[data-theme="light"].tenant-admin .onboardingCheck,
body[data-theme="light"].tenant-admin .managementDisclosure summary,
body[data-theme="light"].tenant-admin .settingsTenantPreview{background:#fff;color:#18344b}

@media (max-width:1320px){
  body.tenant-admin .summaryGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.tenant-admin .summaryCard{min-height:132px}
  body.tenant-admin .topbar{flex-direction:column}
  body.tenant-admin .topbarMeta{width:100%;justify-content:flex-start}
}

@media (max-width:1040px){
  body.tenant-admin{height:100%;overflow:hidden!important}
  body.tenant-admin .shell{display:grid;grid-template-columns:1fr!important;height:100vh;min-height:0}
  body.tenant-admin .sidebar{
    position:fixed!important;
    inset:0 auto 0 0;
    z-index:100;
    width:min(310px,88vw)!important;
    max-width:none;
    height:100dvh!important;
    padding:12px;
    overflow:hidden!important;
    transform:translateX(-105%);
    transition:transform .22s cubic-bezier(.2,.8,.2,1);
  }
  body.tenant-admin.sidebar-open .sidebar{transform:translateX(0)}
  body.tenant-admin .sidebarMobileHeader{display:flex}
  body.tenant-admin .sidebarScroll{display:flex!important;overflow-y:auto!important}
  body.tenant-admin .brandBlock,
  body.tenant-admin .sidebarCard{height:auto}
  body.tenant-admin .workspace{height:100vh!important;overflow:hidden!important}
  body.tenant-admin .workspaceScroll{height:100%;overflow-y:auto!important;padding:12px 16px 26px}
  body.tenant-admin .sidebarToggleBtn{position:sticky;top:0;z-index:30;display:inline-flex;align-items:center;gap:7px;width:max-content;min-height:42px;background:rgba(4,20,37,.95);backdrop-filter:blur(12px)}
  body.tenant-admin .sidebarOverlay{display:block;position:fixed;inset:0;z-index:90;border:0;background:rgba(0,7,14,.64);opacity:0;pointer-events:none;transition:opacity .2s ease}
  body.tenant-admin.sidebar-open .sidebarOverlay{opacity:1;pointer-events:auto}
  body.tenant-admin .contentGrid,
  body.tenant-admin .workspace.mode-team .teamGrid,
  body.tenant-admin .workspace.mode-bookings .teamGrid,
  body.tenant-admin .workspace.mode-stock .teamGrid{grid-template-columns:1fr}
  body.tenant-admin .onboardingLayout,
  body.tenant-admin .settingsBrandLayout{grid-template-columns:1fr}
  body.tenant-admin .onboardingRail,
  body.tenant-admin .settingsLivePreview{position:static}
}

@media (max-width:760px){
  body.tenant-admin .workspaceScroll{padding:10px 10px 24px;gap:13px}
  body.tenant-admin .topbar{gap:12px;padding:8px 1px 12px}
  body.tenant-admin .topbarCopy{min-width:0}
  body.tenant-admin .topbar h1{font-size:28px}
  body.tenant-admin .topbarMeta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  body.tenant-admin .metaCard,
  body.tenant-admin .topbarAction{width:100%;min-width:0;max-width:none;min-height:54px}
  body.tenant-admin .summaryGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.tenant-admin .summaryCard{min-height:146px;padding:13px}
  body.tenant-admin .onboardingHeroGrid{grid-template-columns:1fr}
  body.tenant-admin .onboardingChecklist{grid-template-columns:1fr}
  body.tenant-admin .onboardingProgressCopy,
  body.tenant-admin .onboardingProgressStats{align-items:flex-start;flex-direction:column}
  body.tenant-admin .settingsTab{min-height:48px;padding:9px 12px}
  body.tenant-admin .settingsSaveBar{align-items:stretch;flex-direction:column}
  body.tenant-admin .settingsSaveBar .btnPrimary{width:100%}
  body.tenant-admin .calendarDay{min-height:140px!important}
  body.tenant-admin .calendarDayName{display:inline}
  body.tenant-admin .calendarDayHead{justify-content:flex-start;gap:8px}
  body.tenant-admin .calendarDayCount{margin-left:auto}
  body.tenant-admin .table tbody tr[tabindex="0"]{cursor:pointer}
}

@media (max-width:430px){
  body.tenant-admin .summaryGrid{grid-template-columns:1fr}
  body.tenant-admin .summaryCard{min-height:122px}
}

@media (prefers-reduced-motion:reduce){
  body.tenant-admin::before,
  body.tenant-admin::after{animation:none!important}
  body.tenant-admin *,
  body.tenant-admin *::before,
  body.tenant-admin *::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

body.tenant-admin .knowledgeTabs{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}
body.tenant-admin .knowledgeMetrics{margin:18px 0;grid-template-columns:repeat(4,minmax(0,1fr))}
body.tenant-admin .knowledgeMetrics .summaryCard{min-height:110px}
body.tenant-admin .knowledgeMetrics strong{font-size:28px}
body.tenant-admin .knowledgeMetrics span{color:var(--muted);font-weight:700}
body.tenant-admin .knowledgeList{display:grid;gap:12px}
body.tenant-admin .knowledgeItem{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel-soft)}
body.tenant-admin .knowledgeItemActions{display:flex;flex-wrap:wrap;gap:8px}
body.tenant-admin .knowledgePanel .editorGrid{margin-top:8px}
body.tenant-admin .knowledgePanel .fullWidth{grid-column:1/-1}
@media (max-width:760px){
  body.tenant-admin .knowledgeMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.tenant-admin .knowledgeItem{align-items:flex-start;flex-direction:column}
  body.tenant-admin .knowledgeItemActions{width:100%}
  body.tenant-admin .knowledgeItemActions button{flex:1}
}

/* -------------------------------------------------------------------------- */
/* Accelerate brand, filter and interaction polish.                            */
/* -------------------------------------------------------------------------- */

body.tenant-admin .sidebarNav .workspaceNavBtn{
  transition:color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body.tenant-admin .sidebarNav .workspaceNavBtn:hover{
  background:linear-gradient(90deg, rgba(45,140,255,.13), rgba(39,218,195,.08));
}

body.tenant-admin .sidebarNav .workspaceNavBtn.active,
body[data-theme="light"].tenant-admin .sidebarNav .workspaceNavBtn.active{
  border-color:rgba(64,221,207,.68);
  background:linear-gradient(105deg, #2d8cff 0%, #1aa9df 52%, #27dac3 100%);
  color:#ffffff;
  box-shadow:inset 3px 0 0 rgba(255,255,255,.72), 0 10px 28px rgba(20,163,206,.24);
}

body.tenant-admin .sidebarNav .workspaceNavBtn.active .navIcon,
body[data-theme="light"].tenant-admin .sidebarNav .workspaceNavBtn.active .navIcon{
  color:#ffffff;
}

body.tenant-admin .sidebarFooterGroup{
  flex:0 0 auto;
  display:grid;
  gap:8px;
  min-width:0;
}

body.tenant-admin .poweredByCredit,
body[data-theme="light"].tenant-admin .poweredByCredit{
  display:grid;
  justify-items:center;
  gap:6px;
  width:100%;
  padding:10px 10px 9px;
  border:1px solid rgba(111,195,255,.18);
  border-radius:14px;
  background:linear-gradient(145deg, rgba(7,29,50,.98), rgba(3,18,34,.98));
  color:#ffffff;
  box-shadow:0 12px 28px rgba(0,6,14,.18);
  font-size:9.5px;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}

body.tenant-admin .poweredByLabel{
  color:#ffffff;
  line-height:1;
  text-align:center;
}

body.tenant-admin .poweredByLockup{
  display:block;
  width:100%;
  max-width:190px;
  height:50px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:9px;
  background:#05070a;
  object-fit:cover;
  object-position:center;
  box-shadow:0 7px 18px rgba(0,0,0,.24);
}

body.tenant-admin .poweredByBrand{
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  color:#ffffff;
}

body.tenant-admin .poweredByBrand img{
  flex:0 0 30px;
  width:30px;
  height:30px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:8px;
  background:#ffffff;
  object-fit:contain;
  opacity:1;
  box-shadow:0 6px 16px rgba(0,0,0,.2);
}

body.tenant-admin .poweredByBrand strong{
  color:#ffffff;
  font-size:10.5px;
  font-weight:850;
  letter-spacing:.12em;
  line-height:1.25;
  white-space:normal;
}

body.tenant-admin .leadFilterMenu{
  width:100%;
  max-width:1120px;
  max-height:0;
  margin:0 auto;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:16px;
  background:linear-gradient(145deg, rgba(8,31,54,.98), rgba(4,21,39,.98));
  box-shadow:0 18px 44px rgba(0,5,14,.2);
  opacity:0;
  overflow:hidden;
  pointer-events:none;
  transform:translateY(-8px);
  transition:max-height .28s ease, margin .28s ease, padding .28s ease, opacity .18s ease, transform .28s ease, border-color .18s ease;
  will-change:max-height,opacity,transform;
}

body.tenant-admin .leadFilterMenu.is-open{
  max-height:1500px;
  margin:16px auto 4px;
  padding:18px;
  border-color:var(--tenant-line);
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

body[data-theme="light"].tenant-admin .leadFilterMenu{
  background:linear-gradient(145deg, #ffffff, #eef7fb);
  box-shadow:0 16px 38px rgba(29,72,103,.12);
}

body.tenant-admin .compactFilterGrid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px 18px;
}

body.tenant-admin .compactFilterWide{
  grid-column:1 / -1;
}

body.tenant-admin .compactFilterGrid .filterBubbleSection{
  margin-top:0;
}

body.tenant-admin .compactFilterGrid .fieldLabel{
  margin-bottom:7px;
  color:#b8cce0;
  font-size:12px;
  font-weight:750;
}

body[data-theme="light"].tenant-admin .compactFilterGrid .fieldLabel{
  color:#405d73;
}

body.tenant-admin .compactFilterGrid .fieldGridDates{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:0;
}

@media (prefers-reduced-motion:reduce){
  body.tenant-admin .leadFilterMenu,
  .leadFilterToggle{transition:none}
}

body.tenant-admin .customDateFilter{
  margin-top:9px;
  border:1px solid rgba(132,181,225,.14);
  border-radius:11px;
  background:rgba(2,18,31,.38);
}

body.tenant-admin .customDateFilter summary{
  padding:9px 11px;
  color:#8fb0c9;
  cursor:pointer;
  font-size:11px;
  font-weight:750;
}

body.tenant-admin .customDateFilter[open] summary{
  color:#dcecff;
}

body.tenant-admin .customDateFilter .fieldGridDates{
  padding:0 9px 9px;
}

body.tenant-admin .compactFilterActions{
  justify-content:flex-end;
  margin:16px 0 0;
  padding-top:15px;
  border-top:1px solid var(--tenant-line);
}

body.tenant-admin .compactFilterActions .btnSecondary{
  flex:0 0 auto;
  min-width:150px;
}

body.tenant-admin .stageLegend{
  gap:8px;
  margin-top:0;
}

body.tenant-admin .compactFilterGrid .filterChoice{
  min-height:36px;
  padding:8px 12px;
}

body.tenant-admin .heatFilterButtons .filterChoice.heatHigh,
body.tenant-admin .badge.heatHigh,
body.tenant-admin .heroBadge.heatHigh{
  border-color:rgba(53,199,121,.42);
  background:rgba(53,199,121,.14);
  color:#76e9ac;
}

body.tenant-admin .heatFilterButtons .filterChoice.heatMedium,
body.tenant-admin .badge.heatMedium,
body.tenant-admin .heroBadge.heatMedium{
  border-color:rgba(241,166,58,.42);
  background:rgba(241,166,58,.14);
  color:#ffc66f;
}

body.tenant-admin .heatFilterButtons .filterChoice.heatLow,
body.tenant-admin .badge.heatLow,
body.tenant-admin .heroBadge.heatLow{
  border-color:rgba(240,100,114,.42);
  background:rgba(240,100,114,.14);
  color:#ff929d;
}

body.tenant-admin .heatFilterButtons .filterChoice.heatHigh.active{
  border-color:#62dda0;
  background:#198550;
  color:#ffffff;
  box-shadow:0 0 0 3px rgba(53,199,121,.18);
}

body.tenant-admin .heatFilterButtons .filterChoice.heatMedium.active{
  border-color:#ffca76;
  background:#a86613;
  color:#ffffff;
  box-shadow:0 0 0 3px rgba(241,166,58,.18);
}

body.tenant-admin .heatFilterButtons .filterChoice.heatLow.active{
  border-color:#ff929d;
  background:#a83f4a;
  color:#ffffff;
  box-shadow:0 0 0 3px rgba(240,100,114,.18);
}

body.tenant-admin .stageLegend .filterChoice.workflowAll.active{
  border-color:#4ddfce;
  background:linear-gradient(105deg, #2d8cff, #20cdbf);
  color:#ffffff;
  box-shadow:0 0 0 3px rgba(39,218,195,.14);
}

body.tenant-admin .stageLegend .filterChoice.statusNew{border-color:rgba(22,141,244,.38);background:rgba(22,141,244,.12);color:#7bc2ff}
body.tenant-admin .stageLegend .filterChoice.statusContacted{border-color:rgba(17,183,201,.38);background:rgba(17,183,201,.12);color:#63dee8}
body.tenant-admin .stageLegend .filterChoice.statusAwaiting{border-color:rgba(152,115,245,.38);background:rgba(152,115,245,.12);color:#c3afff}
body.tenant-admin .stageLegend .filterChoice.statusQualified{border-color:rgba(111,191,122,.38);background:rgba(111,191,122,.12);color:#92dfa0}
body.tenant-admin .stageLegend .filterChoice.statusNew.active{background:#0d78d3;color:#fff;box-shadow:0 0 0 3px rgba(22,141,244,.16)}
body.tenant-admin .stageLegend .filterChoice.statusContacted.active{background:#087f91;color:#fff;box-shadow:0 0 0 3px rgba(17,183,201,.16)}
body.tenant-admin .stageLegend .filterChoice.statusAwaiting.active{background:#6748b6;color:#fff;box-shadow:0 0 0 3px rgba(152,115,245,.16)}
body.tenant-admin .stageLegend .filterChoice.statusQualified.active{background:#377d43;color:#fff;box-shadow:0 0 0 3px rgba(111,191,122,.16)}
body.tenant-admin .stageLegend .filterChoice.statusBooked,
body.tenant-admin .stageLegend .filterChoice.statusWon{border-color:rgba(53,199,121,.4);background:rgba(53,199,121,.13);color:#76e9ac}
body.tenant-admin .stageLegend .filterChoice.statusLost{border-color:rgba(240,100,114,.4);background:rgba(240,100,114,.13);color:#ff929d}
body.tenant-admin .stageLegend .filterChoice.statusBooked.active,
body.tenant-admin .stageLegend .filterChoice.statusWon.active{background:#198550;color:#fff;box-shadow:0 0 0 3px rgba(53,199,121,.16)}
body.tenant-admin .stageLegend .filterChoice.statusLost.active{background:#a83f4a;color:#fff;box-shadow:0 0 0 3px rgba(240,100,114,.16)}

body.tenant-admin .stageLegend .filterChoice.active{
  filter:brightness(1.2);
  box-shadow:0 0 0 3px rgba(111,195,255,.14);
}

body.tenant-admin .calendarEvent{
  transform:translateY(0) scale(1);
  transform-origin:center;
  transition:transform .28s cubic-bezier(.2,.75,.25,1), border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

body.tenant-admin .calendarEvent:hover{
  transform:translateY(-1px) scale(1.008);
  box-shadow:0 8px 20px rgba(0,7,16,.18);
}

@media (max-width:760px){
  body.tenant-admin .compactFilterGrid{
    grid-template-columns:1fr;
  }

  body.tenant-admin .compactFilterWide{
    grid-column:auto;
  }

  body.tenant-admin .compactFilterGrid .fieldGridDates{
    grid-template-columns:1fr;
  }

  body.tenant-admin .compactFilterActions .btnSecondary{
    width:100%;
  }
}

/* -------------------------------------------------------------------------- */
/* Dark-only header flow and clearer dashboard section hierarchy.             */
/* -------------------------------------------------------------------------- */

body.tenant-admin .topbar{
  padding:16px 18px 18px;
  border:1px solid rgba(93,182,255,.18);
  border-radius:18px;
  background:
    linear-gradient(115deg, rgba(22,141,244,.12), rgba(17,183,201,.065) 48%, rgba(4,20,37,.72)),
    linear-gradient(145deg, rgba(8,31,54,.96), rgba(4,19,35,.96));
  box-shadow:0 16px 38px rgba(0,5,14,.2);
}

body.tenant-admin .topbarMeta .metaCard:first-of-type{
  border-color:rgba(93,182,255,.3);
  background:linear-gradient(145deg, rgba(22,141,244,.17), rgba(5,25,45,.92));
}

body.tenant-admin .topbarMeta .metaCard:last-of-type{
  border-color:rgba(39,218,195,.26);
  background:linear-gradient(145deg, rgba(17,183,201,.14), rgba(5,25,45,.92));
}

body.tenant-admin .summaryCard{
  border-top-width:3px;
  box-shadow:0 14px 34px rgba(0,5,14,.2);
}

body.tenant-admin .summaryCard-total{
  border-top-color:#2d8cff;
  background:linear-gradient(145deg, rgba(22,141,244,.14), rgba(5,25,45,.92));
}

body.tenant-admin .summaryCard-new{
  border-top-color:#11b7c9;
  background:linear-gradient(145deg, rgba(17,183,201,.13), rgba(5,25,45,.92));
}

body.tenant-admin .summaryCard-qualified{
  border-top-color:#9873f5;
  background:linear-gradient(145deg, rgba(152,115,245,.13), rgba(5,25,45,.92));
}

body.tenant-admin .summaryCard-booked{
  border-top-color:#f1a63a;
  background:linear-gradient(145deg, rgba(241,166,58,.12), rgba(5,25,45,.92));
}

body.tenant-admin .summaryCard-won{
  border-top-color:#35c779;
  background:linear-gradient(145deg, rgba(53,199,121,.12), rgba(5,25,45,.92));
}

body.tenant-admin .summaryCard-followup{
  border-top-color:#f06472;
  background:linear-gradient(145deg, rgba(240,100,114,.12), rgba(5,25,45,.92));
}

body.tenant-admin #pipelinePanel{
  border-color:rgba(17,183,201,.3);
  background:linear-gradient(155deg, rgba(8,34,57,.96), rgba(4,21,38,.98));
}

body.tenant-admin #pipelinePanel > .panelHeader{
  padding-left:20px;
  border-bottom-color:rgba(17,183,201,.22);
  background:linear-gradient(90deg, rgba(17,183,201,.13), rgba(22,141,244,.055) 46%, transparent 78%);
  box-shadow:inset 4px 0 0 #20cdbf;
}

body.tenant-admin #pipelinePanel .leadFilterToolbar{
  border-bottom-color:rgba(93,182,255,.18);
  background:linear-gradient(90deg, rgba(22,141,244,.08), rgba(17,183,201,.045));
}

body.tenant-admin #pipelinePanel .table tbody tr:nth-child(even):not(.active){
  background:rgba(93,182,255,.022);
}

body.tenant-admin .detailPanel{
  border-color:rgba(152,115,245,.24);
}

body.tenant-admin .detailPanel > .panelHeader{
  background:linear-gradient(90deg, rgba(152,115,245,.1), transparent 72%);
}

@media (max-width:760px){
  body.tenant-admin .topbar{
    padding:14px;
    border-radius:15px;
  }
}

/* -------------------------------------------------------------------------- */
/* Lead workspace: full-width command view with clearer action hierarchy.     */
/* -------------------------------------------------------------------------- */

body.tenant-admin .workspace.mode-lead-detail .contentGrid{
  min-width:0;
}

body.tenant-admin .workspace.mode-lead-detail .detailPanel{
  width:100%;
  max-width:none;
  min-width:0;
  justify-self:stretch;
  overflow:visible;
  border:0;
  background:transparent;
  box-shadow:none;
}

body.tenant-admin .workspace.mode-lead-detail .detailPanel > .panelHeader{
  display:none;
}

body.tenant-admin .workspace.mode-lead-detail .detailBody{
  padding:0;
  gap:14px;
}

body.tenant-admin .workspace.mode-lead-detail .leadDetailBackBtn{
  align-self:flex-start;
  width:auto;
  min-height:44px;
  padding:9px 16px 9px 13px;
  gap:9px;
  border-color:#4ddfce;
  background:linear-gradient(115deg,#168df4,#11b7c9);
  color:#ffffff;
  font-size:14px;
  font-weight:850;
  box-shadow:0 9px 24px rgba(16,148,211,.25), inset 0 0 0 1px rgba(255,255,255,.12);
}

body.tenant-admin .workspace.mode-lead-detail .leadDetailBackBtn:hover{
  border-color:#7ef0e2;
  background:linear-gradient(115deg,#299cf8,#20cdbf);
  color:#ffffff;
  box-shadow:0 11px 28px rgba(16,148,211,.34), inset 0 0 0 1px rgba(255,255,255,.16);
}

body.tenant-admin .workspace.mode-lead-detail .leadDetailBackBtn:focus-visible{
  outline:3px solid rgba(77,223,206,.3);
  outline-offset:3px;
}

body.tenant-admin .leadDetailBackIcon{
  display:grid;
  flex:0 0 auto;
  width:20px;
  height:20px;
  place-items:center;
}

body.tenant-admin .leadDetailBackIcon svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

body.tenant-admin .workspace.mode-lead-detail .heroCard{
  padding:18px 20px;
  border-color:rgba(39,218,195,.24);
  background:
    linear-gradient(110deg, rgba(17,183,201,.14), rgba(22,141,244,.07) 48%, transparent 76%),
    #071d32;
  box-shadow:inset 4px 0 0 #20cdbf, 0 12px 30px rgba(0,6,16,.18);
}

body.tenant-admin .workspace.mode-lead-detail .heroTitle{
  font-size:28px;
}

body.tenant-admin .workspace.mode-lead-detail .tabs{
  width:max-content;
  max-width:100%;
  padding:5px;
  border:1px solid rgba(93,182,255,.18);
  border-radius:14px;
  background:#06182a;
}

body.tenant-admin .workspace.mode-lead-detail .tab{
  min-height:38px;
  padding:8px 15px;
}

body.tenant-admin .workspace.mode-lead-detail #tab-overview.active{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(350px,.65fr);
  grid-auto-flow:row dense;
  gap:16px;
  min-width:0;
}

body.tenant-admin .workspace.mode-lead-detail #tab-overview > .editorCard{
  min-width:0;
  margin-top:0;
}

body.tenant-admin .workspace.mode-lead-detail .compactHeader{
  align-items:flex-start;
}

body.tenant-admin .leadOverviewSummary{order:1;grid-column:1}
body.tenant-admin .leadQuickActionsCard{order:2;grid-column:2}
body.tenant-admin .leadKeyDetailsCard{order:3;grid-column:1}
body.tenant-admin .leadWorkflowCard{order:4;grid-column:2}
body.tenant-admin .leadRecommendationCard{order:5;grid-column:1 / -1}
body.tenant-admin .stockSuggestionCard{order:6;grid-column:1 / -1}
body.tenant-admin .leadKnowledgeCard{order:7;grid-column:1 / -1}
body.tenant-admin .legacySummaryCards{order:8;grid-column:1 / -1}
body.tenant-admin .leadAppointmentCard{order:9;grid-column:1 / -1}

body.tenant-admin .leadOverviewSummary{
  align-content:start;
  border-color:rgba(39,218,195,.32);
  background:
    radial-gradient(circle at 94% 12%, rgba(39,218,195,.16), transparent 32%),
    linear-gradient(145deg, rgba(10,52,68,.96), rgba(6,28,48,.98));
  box-shadow:inset 4px 0 0 #20cdbf;
}

body.tenant-admin .leadOverviewSummary .sectionTitle,
body.tenant-admin .leadRecommendationCard > .editorHeader .sectionTitle{
  font-size:18px;
}

body.tenant-admin .leadQuickActionsCard{
  align-content:start;
  border-color:rgba(93,182,255,.28);
  background:linear-gradient(145deg, rgba(22,141,244,.11), rgba(5,25,45,.96));
}

body.tenant-admin .leadQuickActionsCard .quickActionGrid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}

body.tenant-admin .leadQuickActionsCard .quickActionBtn{
  min-height:68px;
  padding:9px 7px;
  border-radius:13px;
  font-size:12px;
}

body.tenant-admin .leadWorkflowCard{
  align-content:start;
  border-color:rgba(39,218,195,.3);
  background:
    radial-gradient(circle at 100% 0, rgba(39,218,195,.12), transparent 34%),
    linear-gradient(150deg, rgba(7,43,56,.98), rgba(5,24,42,.98));
  box-shadow:inset 4px 0 0 #20cdbf, 0 12px 28px rgba(0,6,16,.17);
}

body.tenant-admin .leadWorkflowCard > .editorHeader{
  padding-bottom:12px;
  border-bottom:1px solid rgba(77,223,206,.15);
}

body.tenant-admin .leadWorkflowGroup{
  display:grid;
  gap:9px;
}

body.tenant-admin .leadWorkflowGroupHeader{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}

body.tenant-admin .leadWorkflowLabel{
  color:#f5fbff;
  font-size:12px;
  font-weight:850;
}

body.tenant-admin .leadWorkflowHelp{
  color:#82a4be;
  font-size:10px;
  line-height:1.35;
  text-align:right;
}

body.tenant-admin .leadWorkflowCard .followUpStatusGrid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

body.tenant-admin .leadWorkflowCard .followUpStatusBtn{
  min-height:43px;
  padding:8px 6px;
  border-color:rgba(132,181,225,.17);
  border-radius:11px;
  background:rgba(93,182,255,.045);
  color:#c9d8e7;
  font-size:11px;
  font-weight:750;
  line-height:1.25;
}

body.tenant-admin .leadWorkflowCard .followUpStatusBtn.active{
  border-color:#5db6ff;
  background:linear-gradient(135deg, rgba(22,141,244,.88), rgba(17,183,201,.78));
  color:#ffffff;
  box-shadow:0 0 0 3px rgba(93,182,255,.12);
}

body.tenant-admin .leadWorkflowCard .followUpStatusBtn:nth-child(2).active{
  border-color:#4ddfce;
  background:linear-gradient(135deg, #118f9e, #159f91);
}

body.tenant-admin .leadWorkflowCard .followUpStatusBtn:nth-child(3).active{
  border-color:#ffc266;
  background:linear-gradient(135deg, #9f6916, #b67c20);
}

body.tenant-admin .leadWorkflowCard .followUpStatusBtn:nth-child(4).active,
body.tenant-admin .leadWorkflowCard .followUpStatusBtn:nth-child(5).active{
  border-color:#64df9b;
  background:linear-gradient(135deg, #168653, #1b9d62);
}

body.tenant-admin .leadWorkflowCard .followUpStatusBtn:nth-child(6).active{
  border-color:#ff929d;
  background:linear-gradient(135deg, #9a3943, #b44853);
}

body.tenant-admin .leadWorkflowFields{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:10px;
  margin-bottom:0;
}

body.tenant-admin .leadWorkflowCard .fieldInput{
  min-height:43px;
  border-color:rgba(132,181,225,.16);
  border-radius:11px;
  background:rgba(2,18,31,.58);
}

body.tenant-admin .leadWorkflowCard .notesInput{
  min-height:86px;
  line-height:1.45;
}

body.tenant-admin .leadWorkflowCard .contactedFollowUpPanel{
  border-color:rgba(77,223,206,.28);
  background:linear-gradient(135deg, rgba(17,143,158,.13), rgba(2,18,31,.6));
}

body.tenant-admin .leadWorkflowCard .contactedFollowUpPanel .fieldInput{
  margin-top:5px;
}

body.tenant-admin .leadWorkflowSaveRow{
  align-items:center;
  justify-content:space-between;
}

body.tenant-admin .leadWorkflowSaveRow .btnPrimary{
  min-width:150px;
  background:linear-gradient(115deg,#168df4,#11b7c9);
  border-color:#4ddfce;
  font-weight:850;
}

body.tenant-admin .leadWorkflowSaveRow .hint{
  min-height:19px;
  text-align:right;
}

body.tenant-admin .quickActionIcon{
  width:22px;
  height:22px;
  color:#7bc2ff;
}

body.tenant-admin .quickActionIcon svg{
  display:block;
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

body.tenant-admin .quickActionBtn.btnPrimary .quickActionIcon{
  color:#ffffff;
}

body.tenant-admin .leadKeyDetailsCard{
  align-content:start;
  border-color:rgba(93,182,255,.22);
  background:linear-gradient(150deg, rgba(10,38,63,.98), rgba(5,23,41,.98));
}

body.tenant-admin .leadKeyDetailsCard .keyDetailsGrid{
  gap:9px;
}

body.tenant-admin .leadKeyDetailsCard .keyDetailItem{
  padding:11px 12px;
  border-color:rgba(132,181,225,.12);
  background:rgba(93,182,255,.045);
}

body.tenant-admin .stockSuggestionCard{
  align-content:start;
  border-color:rgba(53,199,121,.3);
  background:
    radial-gradient(circle at 100% 0, rgba(53,199,121,.13), transparent 34%),
    linear-gradient(150deg, rgba(7,43,48,.96), rgba(5,25,42,.98));
  box-shadow:inset 4px 0 0 rgba(53,199,121,.78);
}

body.tenant-admin .stockSuggestionList{
  display:grid;
  gap:10px;
}

body.tenant-admin .stockSuggestionItem{
  display:grid;
  gap:10px;
  padding:13px;
  border:1px solid rgba(104,226,164,.18);
  border-radius:14px;
  background:rgba(4,23,36,.68);
}

body.tenant-admin .stockSuggestionHeading,
body.tenant-admin .stockSuggestionPricing,
body.tenant-admin .stockSuggestionActions{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

body.tenant-admin .stockSuggestionTitle{
  color:#f5fbff;
  font-size:14px;
  font-weight:850;
  line-height:1.35;
}

body.tenant-admin .stockSuggestionMeta{
  margin-top:3px;
  color:#91a9bf;
  font-size:11px;
  line-height:1.4;
}

body.tenant-admin .stockSuggestionPricing strong{
  color:#72e8ad;
  font-size:17px;
}

body.tenant-admin .stockSuggestionPricing span{
  color:#c8d8e7;
  font-size:12px;
  font-weight:750;
}

body.tenant-admin .stockSuggestionReasons{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

body.tenant-admin .stockSuggestionReasons span{
  padding:5px 8px;
  border:1px solid rgba(53,199,121,.24);
  border-radius:999px;
  background:rgba(53,199,121,.09);
  color:#99edbd;
  font-size:10px;
  font-weight:800;
}

body.tenant-admin .stockSuggestionActions{
  justify-content:flex-start;
  flex-wrap:wrap;
}

body.tenant-admin .stockSuggestionActions .btnSecondary,
body.tenant-admin .stockWebsiteLink{
  min-height:34px;
  padding:7px 10px;
  border-radius:10px;
  font-size:11px;
  text-decoration:none;
}

body.tenant-admin .leadRecommendationCard{
  padding:20px;
  border-color:rgba(152,115,245,.28);
  background:
    linear-gradient(110deg, rgba(152,115,245,.09), transparent 44%),
    #071b30;
  box-shadow:inset 4px 0 0 rgba(152,115,245,.74);
}

body.tenant-admin .leadRecommendationCard .recommendationGrid{
  gap:14px;
}

body.tenant-admin .recommendationCard{
  border-color:rgba(132,181,225,.15);
  background:#06182a;
  box-shadow:0 10px 24px rgba(0,6,16,.16);
}

body.tenant-admin .recommendationCardEmail{
  order:1;
  border-top:3px solid #2d8cff;
  background:linear-gradient(155deg, rgba(22,141,244,.12), #06182a 46%);
}

body.tenant-admin .recommendationCardWhatsapp{
  order:2;
  border-top:3px solid #20cdbf;
  background:linear-gradient(155deg, rgba(17,183,201,.12), #06182a 46%);
}

body.tenant-admin .recommendationCardPhone{
  order:4;
  border-top:3px solid #f1a63a;
  background:linear-gradient(155deg, rgba(241,166,58,.1), #06182a 46%);
}

body.tenant-admin .recommendationCardHandover{
  order:5;
  border-top:3px solid #9873f5;
  background:linear-gradient(155deg, rgba(152,115,245,.1), #06182a 42%);
}

body.tenant-admin .recommendationCardEmail .recommendationText,
body.tenant-admin .recommendationCardWhatsapp .recommendationText{
  min-height:140px;
}

body.tenant-admin .recommendationCardEmail .emailComposeActions{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

body.tenant-admin .recommendationText{
  padding:16px;
  border-color:rgba(132,181,225,.15);
  background:rgba(2,14,26,.62);
  color:#e8f2fb;
  font-size:16px;
  line-height:1.6;
}

body.tenant-admin .recommendationCardTitle{
  font-size:15px;
}

body.tenant-admin .leadKnowledgeCard{
  border-color:rgba(152,115,245,.23);
  background:linear-gradient(145deg, rgba(152,115,245,.07), rgba(5,24,42,.98));
}

body.tenant-admin .leadAppointmentCard{
  border-color:rgba(241,166,58,.24);
  background:linear-gradient(145deg, rgba(241,166,58,.055), rgba(5,24,42,.98));
}

@media (max-width:1280px){
  body.tenant-admin .workspace.mode-lead-detail #tab-overview.active{
    grid-template-columns:1fr;
  }

  body.tenant-admin .workspace.mode-lead-detail #tab-overview > *{
    grid-column:1 / -1;
  }

  body.tenant-admin .leadQuickActionsCard .quickActionGrid{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}

@media (max-width:880px){
  body.tenant-admin .leadQuickActionsCard .quickActionGrid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:760px){
  body.tenant-admin .workspace.mode-lead-detail .heroTitle{
    font-size:24px;
  }

  body.tenant-admin .workspace.mode-lead-detail #tab-overview.active{
    gap:12px;
  }

  body.tenant-admin .leadWorkflowFields{
    grid-template-columns:1fr;
  }

  body.tenant-admin .leadWorkflowCard .followUpStatusGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.tenant-admin .leadWorkflowGroupHeader,
  body.tenant-admin .leadWorkflowSaveRow{
    align-items:flex-start;
    flex-direction:column;
  }

  body.tenant-admin .leadWorkflowHelp,
  body.tenant-admin .leadWorkflowSaveRow .hint{
    text-align:left;
  }

  body.tenant-admin .leadRecommendationCard{
    padding:16px;
  }

  body.tenant-admin .recommendationCardEmail .recommendationText,
  body.tenant-admin .recommendationCardWhatsapp .recommendationText{
    min-height:0;
  }

  body.tenant-admin .recommendationCardEmail .emailComposeActions{
    grid-template-columns:1fr;
  }

  body.tenant-admin .stockSuggestionHeading,
  body.tenant-admin .stockSuggestionPricing{
    align-items:flex-start;
  }
}

@media (max-width:430px){
  body.tenant-admin .leadQuickActionsCard .quickActionGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.tenant-admin .stockSuggestionHeading,
  body.tenant-admin .stockSuggestionPricing{
    flex-direction:column;
  }

  body.tenant-admin .leadWorkflowCard .followUpStatusGrid{
    grid-template-columns:1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Tenant admin subpages: carry the Lead Command Centre visual system through */
/* every operational workspace without changing any controls or data flow.    */
/* -------------------------------------------------------------------------- */

body.tenant-admin .workspace.mode-onboarding{
  --page-accent:#20cdbf;
  --page-accent-rgb:32,205,191;
}

body.tenant-admin .workspace.mode-team{
  --page-accent:#2d8cff;
  --page-accent-rgb:45,140,255;
}

body.tenant-admin .workspace.mode-knowledge{
  --page-accent:#9873f5;
  --page-accent-rgb:152,115,245;
}

body.tenant-admin .workspace.mode-settings{
  --page-accent:#11b7c9;
  --page-accent-rgb:17,183,201;
}

body.tenant-admin .workspace.mode-stock{
  --page-accent:#35c779;
  --page-accent-rgb:53,199,121;
}

body.tenant-admin .workspace.mode-bookings{
  --page-accent:#f1a63a;
  --page-accent-rgb:241,166,58;
}

body.tenant-admin .workspace.mode-calendar{
  --page-accent:#5db6ff;
  --page-accent-rgb:93,182,255;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .workspaceScroll > .contentGrid{
  grid-template-columns:minmax(0,1fr);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .detailPanel{
  width:100%;
  max-width:none;
  min-width:0;
  overflow:visible;
  border:0;
  background:transparent;
  box-shadow:none;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .detailPanel > .panelHeader{
  display:none;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .detailPanel > .detailBody{
  padding:0;
  gap:14px;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .detailPanel > .detailBody > .heroCard,
body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .detailPanel > .detailBody > .tabs{
  display:none;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .tabContent.active{
  min-width:0;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .editorCard{
  border-color:rgba(132,181,225,.16);
  background:linear-gradient(150deg, rgba(10,37,63,.96), rgba(5,23,41,.98));
  box-shadow:0 14px 34px rgba(0,5,14,.18);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) :is(
  #tab-team,
  #tab-knowledge,
  #tab-stock,
  #tab-bookings,
  #tab-calendar
) > .editorCard:first-child,
body.tenant-admin .workspace.mode-onboarding .onboardingHero{
  margin-top:0;
  padding:19px 20px;
  border-color:rgba(var(--page-accent-rgb),.34);
  border-top:3px solid var(--page-accent);
  background:
    radial-gradient(circle at 96% 8%, rgba(var(--page-accent-rgb),.16), transparent 30%),
    linear-gradient(145deg, rgba(var(--page-accent-rgb),.09), rgba(5,24,43,.98) 52%);
  box-shadow:inset 4px 0 0 rgba(var(--page-accent-rgb),.82), 0 15px 36px rgba(0,5,14,.2);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .editorCard > .editorHeader{
  align-items:flex-start;
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(132,181,225,.13);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .sectionTitle{
  color:#f4f9ff;
  font-size:18px;
  line-height:1.25;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .sectionText{
  max-width:96ch;
  margin-top:7px;
  color:#9fb4c9;
  font-size:13px;
  line-height:1.55;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) :is(.hint,.muted,.muted2){
  color:#91a8be;
  font-size:12px;
  line-height:1.5;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .fieldLabel{
  margin-bottom:7px;
  color:#afc4d8;
  font-size:12px;
  font-weight:750;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) :is(.fieldInput,select.fieldInput,textarea.fieldInput){
  min-height:44px;
  border-color:rgba(132,181,225,.19);
  border-radius:11px;
  background:rgba(2,18,32,.74);
  color:#f3f9ff;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) :is(.fieldInput,select.fieldInput,textarea.fieldInput):hover{
  border-color:rgba(var(--page-accent-rgb),.4);
  background:rgba(3,22,38,.86);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) :is(.fieldInput,select.fieldInput,textarea.fieldInput):focus{
  border-color:var(--page-accent);
  box-shadow:0 0 0 3px rgba(var(--page-accent-rgb),.15);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .btnPrimary{
  border-color:rgba(77,223,206,.7);
  background:linear-gradient(105deg,#2d8cff 0%,#1aa9df 55%,#20cdbf 100%);
  color:#ffffff;
  font-weight:800;
  box-shadow:0 8px 22px rgba(20,150,211,.2);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) :is(.btnPrimary,.btnSecondary,.btnGhost){
  transition:transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, filter .2s ease;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .btnPrimary:hover{
  border-color:#7ef0e2;
  filter:brightness(1.08);
  box-shadow:0 10px 26px rgba(20,150,211,.27);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .uploadCard{
  margin-top:16px;
  padding:17px;
  border-color:rgba(241,166,58,.28);
  border-top:3px solid rgba(241,166,58,.82);
  border-radius:14px;
  background:
    linear-gradient(105deg, rgba(241,166,58,.08), transparent 43%),
    rgba(3,19,34,.7);
  box-shadow:inset 3px 0 0 rgba(241,166,58,.46);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) input[type="file"].fieldInput{
  padding:6px;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) input[type="file"].fieldInput::file-selector-button{
  min-height:32px;
  margin-right:10px;
  padding:7px 11px;
  border:1px solid rgba(93,182,255,.34);
  border-radius:8px;
  background:rgba(22,141,244,.15);
  color:#ddecfb;
  font:inherit;
  font-weight:750;
  cursor:pointer;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .toggleRow{
  min-height:44px;
  padding:10px 12px;
  border:1px solid rgba(132,181,225,.15);
  border-radius:11px;
  background:rgba(93,182,255,.045);
  color:#dce9f5;
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) .toggleRow input{
  accent-color:var(--page-accent);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) :is(.emptyState,.statusPanel div){
  border-color:rgba(132,181,225,.16);
  background:rgba(3,20,36,.58);
}

body.tenant-admin .workspace:is(
  .mode-onboarding,
  .mode-team,
  .mode-knowledge,
  .mode-settings,
  .mode-stock,
  .mode-bookings,
  .mode-calendar
) :is(.json,.rawBlock){
  border:1px solid rgba(132,181,225,.16);
  border-radius:13px;
  background:#031321;
  color:#c9deef;
  font-size:12px;
  line-height:1.55;
}

/* Onboarding */

body.tenant-admin .workspace.mode-onboarding .onboardingPack{
  gap:15px;
}

body.tenant-admin .workspace.mode-onboarding .onboardingHeroGrid > div{
  padding:12px;
  border:1px solid rgba(32,205,191,.14);
  border-radius:12px;
  background:rgba(3,24,39,.52);
}

body.tenant-admin .workspace.mode-onboarding .onboardingValue,
body.tenant-admin .workspace.mode-onboarding .onboardingStatus{
  border-color:rgba(32,205,191,.22);
  background:rgba(2,19,32,.78);
}

body.tenant-admin .workspace.mode-onboarding .onboardingStep{
  max-width:none;
  margin-top:0;
  border-color:rgba(32,205,191,.2);
  border-left:3px solid rgba(32,205,191,.72);
}

body.tenant-admin .workspace.mode-onboarding .onboardingCheck{
  border-color:rgba(132,181,225,.14);
  background:rgba(2,18,32,.66);
}

body.tenant-admin .workspace.mode-onboarding .onboardingCheck.done{
  border-color:rgba(53,199,121,.34);
  background:rgba(53,199,121,.07);
}

body.tenant-admin .workspace.mode-onboarding .onboardingCheck.missing{
  border-color:rgba(240,100,114,.34);
  background:rgba(240,100,114,.06);
}

body.tenant-admin .workspace.mode-onboarding .onboardingRail .editorCard{
  margin-top:0;
  border-top:3px solid rgba(93,182,255,.62);
}

body.tenant-admin .workspace.mode-onboarding .onboardingRail .editorCard:nth-child(2){
  border-top-color:rgba(152,115,245,.72);
}

body.tenant-admin .workspace.mode-onboarding .onboardingRail .editorCard:nth-child(3){
  border-top-color:rgba(32,205,191,.72);
}

/* Staff, stock and booking request list/detail workspaces */

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid{
  gap:14px;
  margin-top:14px;
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .panel{
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(132,181,225,.17);
  border-top:3px solid var(--page-accent);
  border-radius:16px;
  background:linear-gradient(150deg, rgba(9,34,58,.97), rgba(4,21,38,.98));
  box-shadow:0 14px 34px rgba(0,5,14,.18);
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .panel > .panelHeader{
  display:flex;
  padding:15px 17px;
  border-bottom:1px solid rgba(var(--page-accent-rgb),.18);
  background:linear-gradient(90deg, rgba(var(--page-accent-rgb),.12), rgba(22,141,244,.035) 54%, transparent);
  box-shadow:inset 4px 0 0 rgba(var(--page-accent-rgb),.72);
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .panel > .panelHeader .panelTitle{
  font-size:19px;
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .panel > .tableWrap{
  background:rgba(2,17,30,.34);
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) .table tbody tr:nth-child(even):not(.active){
  background:rgba(93,182,255,.022);
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) .table tbody td{
  color:#dbe8f4;
  font-size:12px;
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .detailPanel{
  display:flex;
  overflow:hidden;
  border:1px solid rgba(var(--page-accent-rgb),.24);
  border-top:3px solid var(--page-accent);
  background:linear-gradient(150deg, rgba(9,34,58,.97), rgba(4,21,38,.98));
  box-shadow:0 14px 34px rgba(0,5,14,.18);
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .detailPanel > .panelHeader{
  display:flex;
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .detailPanel > .detailBody{
  padding:16px;
  gap:13px;
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .detailPanel > .detailBody > .heroCard{
  display:flex;
  padding:15px 16px;
  border-color:rgba(var(--page-accent-rgb),.27);
  border-radius:14px;
  background:
    linear-gradient(105deg, rgba(var(--page-accent-rgb),.13), transparent 58%),
    rgba(5,27,47,.9);
  box-shadow:inset 3px 0 0 rgba(var(--page-accent-rgb),.68);
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .detailPanel .heroTitle{
  font-size:20px;
}

body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .detailPanel .editorCard{
  margin-top:0;
  padding:17px;
  background:rgba(5,27,47,.78);
  box-shadow:none;
}

/* Knowledge and training */

body.tenant-admin .workspace.mode-knowledge #tab-knowledge > .editorCard{
  width:100%;
  max-width:none;
}

body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics{
  gap:10px;
}

body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics .summaryCard{
  min-height:118px;
  padding:15px;
  border-top-width:3px;
  background:linear-gradient(150deg, rgba(22,141,244,.09), rgba(4,22,39,.94));
}

body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics .summaryCard:nth-child(1){border-top-color:#2d8cff}
body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics .summaryCard:nth-child(2){border-top-color:#35c779;background:linear-gradient(150deg,rgba(53,199,121,.1),rgba(4,22,39,.94))}
body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics .summaryCard:nth-child(3){border-top-color:#f1a63a;background:linear-gradient(150deg,rgba(241,166,58,.1),rgba(4,22,39,.94))}
body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics .summaryCard:nth-child(4){border-top-color:#9873f5;background:linear-gradient(150deg,rgba(152,115,245,.1),rgba(4,22,39,.94))}

body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics strong{
  color:#f6fbff;
  font-size:28px;
}

body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics span{
  color:#9fb4c9;
  font-size:12px;
}

body.tenant-admin .workspace.mode-knowledge .knowledgeTabs{
  gap:6px;
  margin:18px 0 14px;
  padding:6px;
  border:1px solid rgba(152,115,245,.22);
  border-radius:14px;
  background:rgba(3,20,36,.7);
}

body.tenant-admin .workspace.mode-knowledge .knowledgeTabs .tab{
  min-height:38px;
  padding:8px 12px;
  border:1px solid transparent;
  border-radius:9px;
  color:#a9bdd0;
  font-size:12px;
  font-weight:750;
}

body.tenant-admin .workspace.mode-knowledge .knowledgeTabs .tab:hover{
  border-color:rgba(152,115,245,.24);
  background:rgba(152,115,245,.08);
  color:#ffffff;
}

body.tenant-admin .workspace.mode-knowledge .knowledgeTabs .tab.active{
  border-color:rgba(190,168,255,.42);
  background:linear-gradient(135deg,rgba(152,115,245,.72),rgba(22,141,244,.68));
  color:#ffffff;
  box-shadow:0 6px 18px rgba(65,75,160,.2);
}

body.tenant-admin .workspace.mode-knowledge .knowledgePanel{
  min-height:180px;
  padding:16px;
  border:1px solid rgba(152,115,245,.2);
  border-radius:14px;
  background:
    linear-gradient(120deg, rgba(152,115,245,.055), transparent 48%),
    rgba(3,19,34,.56);
}

body.tenant-admin .workspace.mode-knowledge .knowledgePanel[hidden]{
  display:none;
}

body.tenant-admin .workspace.mode-knowledge .knowledgePanel .editorGrid{
  margin:0;
}

body.tenant-admin .workspace.mode-knowledge .knowledgeItem{
  padding:14px 15px;
  border-color:rgba(152,115,245,.2);
  border-radius:13px;
  background:rgba(5,28,48,.82);
  color:#e7f1fa;
}

body.tenant-admin .workspace.mode-knowledge .knowledgeItem strong{
  color:#ffffff;
  font-size:14px;
}

body.tenant-admin .workspace.mode-knowledge .knowledgeItemActions .btnPrimary,
body.tenant-admin .workspace.mode-knowledge .knowledgeItemActions .btnSecondary,
body.tenant-admin .workspace.mode-knowledge .knowledgeItemActions .btnGhost{
  min-height:36px;
  padding:7px 10px;
  border-radius:9px;
  font-size:11px;
}

body.tenant-admin .workspace.mode-knowledge #knowledgeTestResult{
  margin:14px 0 0;
  padding:15px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

/* Dealership settings */

body.tenant-admin .workspace.mode-settings .settingsWorkspace{
  gap:14px;
}

body.tenant-admin .workspace.mode-settings .settingsTabs{
  border-color:rgba(17,183,201,.25);
  border-top:3px solid #11b7c9;
  background:linear-gradient(145deg, rgba(9,35,59,.96), rgba(4,21,38,.97));
  box-shadow:0 12px 30px rgba(0,5,14,.16);
}

body.tenant-admin .workspace.mode-settings .settingsTab{
  min-height:50px;
  color:#a7bbce;
  font-size:12px;
  font-weight:750;
  transition:color .2s ease, background .2s ease, box-shadow .2s ease;
}

body.tenant-admin .workspace.mode-settings .settingsTab:hover{
  background:rgba(17,183,201,.07);
  color:#ffffff;
}

body.tenant-admin .workspace.mode-settings .settingsTab.active{
  background:linear-gradient(180deg,rgba(45,140,255,.19),rgba(32,205,191,.08));
  color:#ffffff;
  box-shadow:inset 0 -3px 0 #20cdbf;
}

body.tenant-admin .workspace.mode-settings .settingsPanel > .editorCard,
body.tenant-admin .workspace.mode-settings .settingsBrandLayout > .editorCard{
  margin-top:0;
  border-top:3px solid rgba(17,183,201,.7);
}

body.tenant-admin .workspace.mode-settings .settingsLivePreview{
  border-top-color:#9873f5;
  background:
    linear-gradient(145deg, rgba(152,115,245,.08), transparent 50%),
    linear-gradient(150deg, rgba(10,37,63,.96), rgba(5,23,41,.98));
}

body.tenant-admin .workspace.mode-settings .settingsSaveBar{
  border-color:rgba(17,183,201,.3);
  border-top:3px solid #20cdbf;
  background:rgba(3,20,36,.96);
  box-shadow:0 -10px 28px rgba(0,6,15,.22);
}

body.tenant-admin .workspace.mode-settings .settingsSaveBar .btnPrimary{
  min-width:170px;
}

body.tenant-admin .workspace.mode-settings .statusPanel div{
  border-left:3px solid rgba(17,183,201,.55);
}

/* Calendar */

body.tenant-admin .workspace.mode-calendar .calendarToolbar{
  margin-bottom:14px;
  padding:13px;
  border:1px solid rgba(93,182,255,.16);
  border-radius:13px;
  background:rgba(3,20,36,.58);
}

body.tenant-admin .workspace.mode-calendar .calendarMonthLabel{
  color:#f5faff;
  font-size:22px;
}

body.tenant-admin .workspace.mode-calendar .calendarGridWrap{
  margin-top:14px;
  padding:12px;
  overflow:hidden;
  border:1px solid rgba(93,182,255,.22);
  border-top:3px solid #5db6ff;
  border-radius:16px;
  background:
    linear-gradient(120deg, rgba(22,141,244,.055), transparent 48%),
    rgba(3,20,36,.68);
  box-shadow:0 14px 34px rgba(0,5,14,.18);
}

body.tenant-admin .workspace.mode-calendar .calendarWeekdays{
  margin-bottom:8px;
  padding:10px 5px;
  border:1px solid rgba(93,182,255,.12);
  border-radius:11px;
  background:rgba(6,27,47,.86);
  color:#8fb8d8;
}

body.tenant-admin .workspace.mode-calendar .calendarDay{
  border-color:rgba(93,182,255,.15);
  border-radius:13px;
  background:rgba(3,20,36,.76);
  transition:border-color .24s ease, background .24s ease, box-shadow .24s ease;
}

body.tenant-admin .workspace.mode-calendar .calendarDay:hover{
  border-color:rgba(93,182,255,.32);
  background:rgba(5,27,47,.9);
  box-shadow:0 8px 20px rgba(0,6,15,.14);
}

body.tenant-admin .workspace.mode-calendar .calendarEvent{
  border-radius:10px;
}

@media (max-width:1320px){
  body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  body.tenant-admin .workspace.mode-stock .teamGrid{
    grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);
  }
}

@media (max-width:1040px){
  body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid{
    grid-template-columns:minmax(0,1fr);
  }
}

@media (max-width:760px){
  body.tenant-admin .workspace:is(
    .mode-onboarding,
    .mode-team,
    .mode-knowledge,
    .mode-settings,
    .mode-stock,
    .mode-bookings,
    .mode-calendar
  ) :is(
    #tab-team,
    #tab-knowledge,
    #tab-stock,
    #tab-bookings,
    #tab-calendar
  ) > .editorCard:first-child,
  body.tenant-admin .workspace.mode-onboarding .onboardingHero{
    padding:16px;
    border-radius:14px;
  }

  body.tenant-admin .workspace:is(
    .mode-onboarding,
    .mode-team,
    .mode-knowledge,
    .mode-settings,
    .mode-stock,
    .mode-bookings,
    .mode-calendar
  ) .editorCard > .editorHeader{
    gap:9px;
  }

  body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.tenant-admin .workspace.mode-knowledge .knowledgeTabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    scroll-snap-type:x proximity;
  }

  body.tenant-admin .workspace.mode-knowledge .knowledgeTabs .tab{
    flex:0 0 auto;
    scroll-snap-align:start;
  }

  body.tenant-admin .workspace.mode-knowledge .knowledgePanel{
    padding:13px;
  }

  body.tenant-admin :is(#tab-team,#tab-stock,#tab-bookings) > .teamGrid > .detailPanel > .detailBody{
    padding:13px;
  }

  body.tenant-admin .workspace.mode-settings .settingsSaveBar .btnPrimary{
    min-width:0;
  }

  body.tenant-admin .workspace.mode-calendar .calendarGridWrap{
    padding:8px;
  }

  body.tenant-admin .workspace.mode-calendar .calendarDay{
    min-height:140px!important;
  }
}

@media (max-width:430px){
  body.tenant-admin .workspace.mode-knowledge .knowledgeMetrics{
    grid-template-columns:minmax(0,1fr);
  }
}

/* Lead inbox and lead workspace polish. */

body.tenant-admin .pipelineHeaderTools{
  width:100%;
  min-width:0;
}

body.tenant-admin .pipelineModeButtons{
  width:100%;
  flex-wrap:nowrap;
  justify-content:flex-end;
  overflow-x:auto;
  padding:3px;
  border:1px solid rgba(93,182,255,.14);
  border-radius:13px;
  background:rgba(3,18,32,.58);
  scrollbar-width:thin;
}

body.tenant-admin .pipelineModeBtn{
  flex:0 0 auto;
  min-width:auto;
  min-height:35px;
  gap:7px;
  padding:7px 11px;
  border-color:transparent;
  background:transparent;
}

body.tenant-admin .pipelineModeCount{
  display:inline-grid;
  min-width:21px;
  min-height:21px;
  place-items:center;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#a9c4dc;
  font-size:10px;
  font-weight:850;
}

body.tenant-admin .pipelineModeBtn.active .pipelineModeCount{
  background:rgba(255,255,255,.18);
  color:#fff;
}

body.tenant-admin .leadAlertsBtn{
  min-height:34px;
  color:#70c5ff;
}

body.tenant-admin #pipelinePanel .table{
  min-width:980px;
}

body.tenant-admin #pipelinePanel .colBookmark{width:44px}
body.tenant-admin #pipelinePanel .colLead{width:20%}
body.tenant-admin #pipelinePanel .colStage{width:15%}
body.tenant-admin #pipelinePanel .colIntent{width:9%}
body.tenant-admin #pipelinePanel .colContact{width:17%}
body.tenant-admin #pipelinePanel .colPriority{width:14%}
body.tenant-admin #pipelinePanel .colActivity{width:25%}

body.tenant-admin #pipelinePanel .leadLastMessage{
  white-space:normal;
  line-height:1.4;
  overflow-wrap:anywhere;
}

body.tenant-admin #pipelinePanel .table tbody tr{
  position:relative;
}

body.tenant-admin #pipelinePanel .table tbody tr.leadUnread td{
  background:linear-gradient(90deg,rgba(22,141,244,.16),rgba(22,141,244,.045) 64%,rgba(22,141,244,.015));
  border-top:1px solid rgba(78,172,255,.42);
  border-bottom:1px solid rgba(78,172,255,.28);
}

body.tenant-admin #pipelinePanel .table tbody tr.leadUnread td:first-child{
  border-left:4px solid #2d9cff;
  box-shadow:-5px 0 18px rgba(22,141,244,.28);
}

body.tenant-admin #pipelinePanel .table tbody tr.leadUnread td:last-child{
  border-right:1px solid rgba(78,172,255,.28);
}

body.tenant-admin #pipelinePanel .table tbody tr.leadUnread .leadPrimary{
  color:#fff;
}

body.tenant-admin #pipelinePanel .table tbody tr.leadBookmarked:not(.leadUnread) td{
  background:rgba(152,115,245,.045);
}

body.tenant-admin .leadBookmarkCell,
body.tenant-admin .bookmarkHeader{
  padding-right:3px!important;
  text-align:center;
}

body.tenant-admin .leadBookmarkToggle,
body.tenant-admin .leadDetailBookmarkBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

body.tenant-admin .leadBookmarkToggle{
  width:32px;
  height:32px;
  padding:7px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#66839e;
  cursor:pointer;
}

body.tenant-admin .leadBookmarkToggle:hover,
body.tenant-admin .leadBookmarkToggle[aria-pressed="true"]{
  border-color:rgba(152,115,245,.42);
  background:rgba(152,115,245,.14);
  color:#bea8ff;
}

body.tenant-admin .leadBookmarkToggle svg,
body.tenant-admin .leadBookmarkIcon svg{
  display:block;
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linejoin:round;
}

body.tenant-admin .leadInboxIdentity{
  display:flex;
  align-items:flex-start;
  gap:8px;
}

body.tenant-admin .leadUnreadDot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  margin-top:5px;
  border-radius:999px;
  background:transparent;
}

body.tenant-admin .leadUnread .leadUnreadDot{
  background:#42aaff;
  box-shadow:0 0 12px rgba(66,170,255,.92);
}

body.tenant-admin .newLeadBadge{
  display:inline-flex;
  margin:6px 0 0 16px;
  padding:3px 7px;
  border:1px solid rgba(78,172,255,.42);
  border-radius:999px;
  background:rgba(22,141,244,.16);
  color:#85caff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

body.tenant-admin .leadStageHelp,
body.tenant-admin .leadBudgetLine,
body.tenant-admin .leadUpdatedAt{
  display:block;
  margin-top:6px;
  color:#7893aa;
  font-size:10px;
  line-height:1.35;
}

body.tenant-admin .leadLastMessage{
  display:-webkit-box;
  overflow:hidden;
  color:#dbe8f4;
  line-height:1.45;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

body.tenant-admin .badge.heatHigh,
body.tenant-admin .heroBadge.heatHigh,
body.tenant-admin .leadHeroFact.heatHigh{
  border-color:rgba(53,199,121,.36);
  background:rgba(53,199,121,.14);
  color:#70e5a7;
}

body.tenant-admin .workspace.mode-lead-detail .leadHeroCard{
  display:grid;
  grid-template-columns:minmax(260px,1.05fr) minmax(560px,1.8fr) auto;
  gap:20px;
  align-items:center;
}

body.tenant-admin .leadHeroIdentity{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

body.tenant-admin .leadAvatar{
  width:64px;
  height:64px;
  display:grid;
  flex:0 0 64px;
  place-items:center;
  border:1px solid rgba(77,223,206,.36);
  border-radius:999px;
  background:linear-gradient(145deg,rgba(17,183,201,.24),rgba(152,115,245,.25));
  color:#f7fbff;
  font-size:21px;
  font-weight:900;
  box-shadow:0 0 24px rgba(17,183,201,.13);
}

body.tenant-admin .leadHeroFacts{
  display:grid;
  grid-template-columns:repeat(5,minmax(100px,1fr));
  gap:0;
  align-self:stretch;
}

body.tenant-admin .leadHeroFact{
  display:grid;
  align-content:center;
  gap:4px;
  min-width:0;
  padding:10px 14px;
  border-left:1px solid rgba(132,181,225,.13);
}

body.tenant-admin .leadHeroFact > span{
  color:#829db4;
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

body.tenant-admin .leadHeroFact > strong{
  color:#f4f9ff;
  font-size:14px;
  line-height:1.25;
  overflow-wrap:anywhere;
}

body.tenant-admin .leadHeroFact > small{
  color:#7f9ab1;
  font-size:9px;
  line-height:1.25;
}

body.tenant-admin .leadDetailBookmarkBtn{
  align-self:start;
  min-width:100px;
}

body.tenant-admin .leadDetailBookmarkBtn .leadBookmarkIcon{
  width:17px;
  height:17px;
}

body.tenant-admin .leadDetailBookmarkBtn.active{
  border-color:rgba(152,115,245,.48);
  background:rgba(152,115,245,.16);
  color:#c8b7ff;
}

body.tenant-admin .leadRecentActivityCard{
  order:5;
  grid-column:2;
  align-content:start;
  border-color:rgba(152,115,245,.26);
  background:linear-gradient(145deg,rgba(152,115,245,.07),rgba(5,24,42,.98));
}

body.tenant-admin .stockSuggestionCard{order:6}
body.tenant-admin .leadRecommendationCard{order:7}
body.tenant-admin .leadKnowledgeCard{order:8}
body.tenant-admin .legacySummaryCards{order:9}
body.tenant-admin .leadAppointmentCard{order:10}

body.tenant-admin .leadWorkflowTimeline{
  position:relative;
  isolation:isolate;
  display:flex;
  width:100%;
  min-width:0;
  gap:0;
  overflow:hidden;
  padding:4px 0 8px;
  --workflow-progress:0%;
  --workflow-inset:8.333%;
}

body.tenant-admin .leadWorkflowTimeline::before,
body.tenant-admin .leadWorkflowTimeline::after{
  content:"";
  position:absolute;
  z-index:0;
  top:18px;
  left:var(--workflow-inset);
  right:var(--workflow-inset);
  height:3px;
  border-radius:999px;
  pointer-events:none;
}

body.tenant-admin .leadWorkflowTimeline::before{
  background:rgba(132,181,225,.16);
}

body.tenant-admin .leadWorkflowTimeline::after{
  background:linear-gradient(90deg,#168df4 0%,#169fe9 24%,#1bb6dc 48%,#22c9cf 68%,#48dcc4 84%,#72eadb 100%);
  clip-path:inset(0 calc(100% - var(--workflow-progress)) 0 0);
  box-shadow:0 0 12px rgba(32,205,191,.24);
  transition:clip-path .64s cubic-bezier(.2,.82,.2,1);
  will-change:clip-path;
}

body.tenant-admin .leadWorkflowStep{
  position:relative;
  z-index:1;
  display:grid;
  flex:1 1 0;
  justify-items:center;
  gap:7px;
  min-width:0;
  color:#66839d;
  text-align:center;
}

body.tenant-admin .leadWorkflowStepMarker{
  position:relative;
  z-index:1;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(132,181,225,.25);
  border-radius:999px;
  background:#071b30;
  color:#7f9bb1;
  font-size:11px;
  font-weight:900;
  transition:color .22s ease,background-color .36s ease,border-color .36s ease,box-shadow .36s ease,transform .36s ease;
}

body.tenant-admin .leadWorkflowStep.complete,
body.tenant-admin .leadWorkflowStep.current{color:#eaf6ff}
body.tenant-admin .leadWorkflowStep.complete .leadWorkflowStepMarker{border-color:rgba(154,246,232,.9);background:var(--workflow-stage-color);color:#fff}
body.tenant-admin .leadWorkflowStep.current .leadWorkflowStepMarker{border-color:#9af6e8;background:var(--workflow-stage-color);color:#fff;box-shadow:0 0 0 4px rgba(22,141,244,.14),0 0 18px rgba(32,205,191,.2);animation:leadWorkflowMarkerArrive .64s cubic-bezier(.2,.82,.2,1) both}
body.tenant-admin .leadWorkflowStep.lost.current{--workflow-stage-color:#a83f4a!important}
body.tenant-admin .leadWorkflowStep.lost.current .leadWorkflowStepMarker{border-color:#ff929d}

@keyframes leadWorkflowMarkerArrive{
  0%,48%{color:#7f9bb1;background:#071b30;border-color:rgba(132,181,225,.25);box-shadow:none;transform:scale(.92)}
  76%{transform:scale(1.12)}
  100%{color:#fff;background:var(--workflow-stage-color);border-color:#9af6e8;transform:scale(1)}
}

@media (prefers-reduced-motion:reduce){
  body.tenant-admin .leadWorkflowTimeline::after{transition:none}
  body.tenant-admin .leadWorkflowStep.current .leadWorkflowStepMarker{animation:none}
}

body.tenant-admin .leadWorkflowStepCopy{
  display:grid;
  gap:3px;
  line-height:1.2;
}

body.tenant-admin .leadWorkflowStepCopy strong{font-size:10.5px;overflow-wrap:anywhere}
body.tenant-admin .leadWorkflowStepCopy small{font-size:9px;color:#7893aa;overflow-wrap:anywhere}

@media (max-width:520px){
  body.tenant-admin .leadWorkflowStepMarker{width:26px;height:26px}
  body.tenant-admin .leadWorkflowTimeline::before,
  body.tenant-admin .leadWorkflowTimeline::after{top:16px}
  body.tenant-admin .leadWorkflowStepCopy strong{font-size:10px;line-height:1.15}
  body.tenant-admin .leadWorkflowStepCopy small{display:none}
}

body.tenant-admin .leadRecentActivity{
  display:grid;
  gap:8px;
}

body.tenant-admin .leadRecentActivityItem{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 11px;
  border:1px solid rgba(132,181,225,.12);
  border-left:3px solid #5db6ff;
  border-radius:11px;
  background:rgba(3,18,32,.5);
}

body.tenant-admin .leadRecentActivityItem > div{
  display:grid;
  gap:3px;
}

body.tenant-admin .leadRecentActivityItem strong{color:#f4f9ff;font-size:11px}
body.tenant-admin .leadRecentActivityItem span{color:#9eb3c7;font-size:10px;line-height:1.35}
body.tenant-admin .leadRecentActivityItem time{flex:0 0 auto;color:#7893aa;font-size:9px;white-space:nowrap}
body.tenant-admin .leadRecentActivityItem.timeline-status{border-left-color:#20cdbf}
body.tenant-admin .leadRecentActivityItem.timeline-note{border-left-color:#9873f5}
body.tenant-admin .leadRecentActivityItem.timeline-staff{
  border-left-color:#20cdbf;
  background:linear-gradient(90deg,rgba(32,205,191,.11),rgba(3,18,32,.5));
}
body.tenant-admin .leadRecentActivityItem.timeline-system{border-left-color:#6383a1}
body.tenant-admin .leadRecentActivityItem .timelineSource{margin-top:2px;font-size:9px}

body.tenant-admin #leadUrgencyBadge,
.adminDemo #leadUrgencyBadge{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  width:max-content;
  min-width:0;
  min-height:0;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:850;
  line-height:1.1;
  white-space:nowrap;
}

body.tenant-admin .notificationRoutingCard{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px;
  border:1px solid rgba(17,183,201,.26);
  border-left:4px solid #20cdbf;
  border-radius:13px;
  background:rgba(17,183,201,.07);
}

body.tenant-admin .notificationRoutingCard strong{color:#f5fbff}
body.tenant-admin .notificationRoutingCard p{max-width:760px;margin:5px 0 0;color:#9db2c8;font-size:11px;line-height:1.5}

body.tenant-admin .notificationRoutingSummary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}

body.tenant-admin .notificationRouteItem{
  display:grid;
  gap:4px;
  padding:11px;
  border:1px solid rgba(132,181,225,.13);
  border-radius:11px;
  background:#06172a;
}

body.tenant-admin .notificationRouteItem span{color:#7f9ab1;font-size:9px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
body.tenant-admin .notificationRouteItem strong{color:#edf7ff;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
body.tenant-admin .notificationRouteItem.ready strong{color:#70e5a7}
body.tenant-admin .notificationRouteItem.warning strong{color:#ffc36b}

body.tenant-admin .staffAlertBadges{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

body.tenant-admin .staffAlertBadges .badge{
  min-width:0;
  padding:4px 7px;
  font-size:9px;
}

@media (max-width:1360px){
  body.tenant-admin .workspace.mode-lead-detail .leadHeroCard{
    grid-template-columns:minmax(260px,1fr) minmax(0,1.7fr);
  }

  body.tenant-admin .workspace.mode-lead-detail .leadDetailBookmarkBtn{
    grid-column:1 / -1;
    justify-self:start;
  }

  body.tenant-admin .leadHeroFacts{
    grid-template-columns:repeat(3,minmax(100px,1fr));
  }
}

@media (max-width:1280px){
  body.tenant-admin .leadRecentActivityCard{grid-column:1 / -1}
}

@media (max-width:920px){
  body.tenant-admin .pipelineHeaderTools{justify-items:start}
  body.tenant-admin .pipelineModeButtons{justify-content:flex-start}
  body.tenant-admin .workspace.mode-lead-detail .leadHeroCard{grid-template-columns:1fr}
  body.tenant-admin .leadHeroFacts{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.tenant-admin .leadHeroFact:nth-child(odd){border-left:0}
  body.tenant-admin .notificationRoutingSummary{grid-template-columns:1fr}
  body.tenant-admin .followUpDigestControls{grid-template-columns:1fr}
}

@media (max-width:620px){
  body.tenant-admin .workspace.mode-lead-detail .leadHeroCard{padding:16px}
  body.tenant-admin .leadHeroIdentity{align-items:flex-start}
  body.tenant-admin .leadAvatar{width:50px;height:50px;flex-basis:50px;font-size:17px}
  body.tenant-admin .leadHeroFacts{grid-template-columns:1fr}
  body.tenant-admin .leadHeroFact{border-left:0;border-top:1px solid rgba(132,181,225,.13)}
  body.tenant-admin .notificationRoutingCard{align-items:flex-start;flex-direction:column}
  body.tenant-admin .followUpDigestHeader{align-items:flex-start;flex-direction:column}
  body.tenant-admin .followUpBucketGrid{grid-template-columns:1fr}
  body.tenant-admin .followUpDigestResult{grid-template-columns:1fr}
  body.tenant-admin .followUpDigestActions>*{width:100%}
}

@media (max-width:430px){
  body.tenant-admin .summaryGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  body.tenant-admin .summaryCard{
    min-height:132px;
    padding:12px;
  }
}

@media (max-width:350px){
  body.tenant-admin .summaryGrid{grid-template-columns:1fr}
}

/* Smooth shared lead-pipeline controls and staff-created lead flow. */
body.tenant-admin .pipelineHeaderTools{
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:9px;
}

body.tenant-admin .pipelineModeButtons{
  position:relative;
  isolation:isolate;
  overflow-x:auto;
  scroll-behavior:smooth;
}

body.tenant-admin .pipelineModeIndicator{
  position:absolute;
  z-index:0;
  top:3px;
  bottom:3px;
  left:3px;
  width:0;
  border:1px solid rgba(93,207,255,.58);
  border-radius:10px;
  background:linear-gradient(135deg,rgba(17,143,236,.96),rgba(14,202,202,.88));
  box-shadow:0 8px 22px rgba(0,116,225,.22),inset 0 1px rgba(255,255,255,.18);
  pointer-events:none;
  transition:transform .32s cubic-bezier(.2,.78,.28,1),width .32s cubic-bezier(.2,.78,.28,1);
}

body.tenant-admin .pipelineModeBtn{
  position:relative;
  z-index:1;
  color:#9eb9d1;
  background:transparent!important;
  transition:color .2s ease,transform .2s ease;
}

body.tenant-admin .pipelineModeBtn:hover{color:#effaff;transform:translateY(-1px)}
body.tenant-admin .pipelineModeBtn.active{color:#fff;border-color:transparent;background:transparent!important;box-shadow:none}
body.tenant-admin .pipelineModeBtn.active .pipelineModeCount{background:rgba(255,255,255,.2);color:#fff}

body.tenant-admin .manualLeadToggleBtn{
  min-height:35px;
  white-space:nowrap;
  gap:7px;
  box-shadow:0 9px 20px rgba(4,157,226,.16);
}

body.tenant-admin .manualLeadToggleBtn span{font-size:17px;line-height:1;font-weight:500}

body.tenant-admin .manualLeadPanel{
  display:grid;
  grid-template-rows:0fr;
  max-height:0;
  margin:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-8px);
  pointer-events:none;
  transition:grid-template-rows .34s cubic-bezier(.2,.78,.28,1),max-height .34s cubic-bezier(.2,.78,.28,1),margin .34s ease,opacity .2s ease,transform .28s ease;
}

body.tenant-admin .manualLeadPanel.is-open{
  grid-template-rows:1fr;
  max-height:950px;
  margin:0 0 15px;
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

body.tenant-admin .manualLeadForm{
  min-height:0;
  padding:0 17px;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(8,30,49,.88),rgba(5,21,36,.84));
  transition:padding .34s ease,border-color .34s ease,box-shadow .34s ease;
}

body.tenant-admin .manualLeadPanel.is-open .manualLeadForm{
  padding:17px;
  border-color:rgba(68,194,255,.25);
  box-shadow:0 14px 34px rgba(0,0,0,.16),inset 0 1px rgba(142,223,255,.05);
}

body.tenant-admin .manualLeadHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px}
body.tenant-admin .manualLeadHeader .sectionTitle{margin-top:3px}
body.tenant-admin .manualLeadHeader p{max-width:760px;margin:6px 0 0;color:#8faac0;font-size:12px;line-height:1.5}

body.tenant-admin .manualLeadGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
body.tenant-admin .manualLeadGrid label{display:grid;gap:6px;min-width:0}
body.tenant-admin .manualLeadGrid .manualLeadNotes{grid-column:span 2}
body.tenant-admin .manualLeadGrid textarea.fieldInput{min-height:78px;resize:vertical}

body.tenant-admin .manualLeadActions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:15px;padding-top:13px;border-top:1px solid rgba(131,189,227,.12)}
body.tenant-admin .manualLeadActions .hint{color:#83aac5}

body.tenant-admin #pipelinePanel .tableWrap{min-height:248px;transition:min-height .28s cubic-bezier(.2,.78,.28,1)}
body.tenant-admin #pipelinePanel.is-switching .tableWrap{min-height:168px}
body.tenant-admin #pipelinePanel .table tbody tr{transition:opacity .15s ease,transform .19s ease}
body.tenant-admin #pipelinePanel.is-switching .table tbody tr{opacity:0;transform:translateY(-7px) scale(.988)}
body.tenant-admin #pipelinePanel .tableWrap.is-entering .table tbody tr{animation:tenantPipelineLeadIn .36s cubic-bezier(.2,.78,.28,1) both;animation-delay:calc(var(--lead-row-index,0) * 32ms)}

@keyframes tenantPipelineLeadIn{
  from{opacity:0;transform:translateY(10px) scale(.988)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

@media (max-width:1120px){
  body.tenant-admin .pipelineHeaderTools{grid-template-columns:1fr;justify-items:stretch}
  body.tenant-admin .pipelineHeaderTools :is(.leadAlertsBtn,.manualLeadToggleBtn){justify-self:start}
  body.tenant-admin .manualLeadGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:620px){
  body.tenant-admin .manualLeadPanel.is-open{max-height:1450px}
  body.tenant-admin .manualLeadHeader{flex-direction:column;gap:10px}
  body.tenant-admin .manualLeadGrid{grid-template-columns:1fr}
  body.tenant-admin .manualLeadGrid .manualLeadNotes{grid-column:auto}
  body.tenant-admin .manualLeadActions{align-items:stretch;flex-direction:column}
  body.tenant-admin .manualLeadActions .btnPrimary{width:100%}
}

@media (prefers-reduced-motion:reduce){
  body.tenant-admin .pipelineModeIndicator,
  body.tenant-admin .pipelineModeBtn,
  body.tenant-admin .manualLeadPanel,
  body.tenant-admin .manualLeadForm,
  body.tenant-admin #pipelinePanel .tableWrap,
  body.tenant-admin #pipelinePanel .table tbody tr{transition:none!important;animation:none!important}
}
