
.ts-reference .tms-crm-body { margin: 0; background: #f3f5fa; }
.ts-reference .tms-crm {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --primary: #1f6feb;
  --primary-ink: #ffffff;
  --primary-soft: #e8f0fe;
  --nav: #0b1530;
  --nav-2: #13204a;
  --nav-ink: #c7d2fe;
  --accent: #f59e0b;
  --green: #059669;
  --green-soft: #d1fae5;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --violet: #6d28d9;
  --violet-soft: #ede9fe;
  --teal: #0f766e;
  --teal-soft: #ccfbf1;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.ts-reference .tms-crm *,.ts-reference .tms-crm *::before,.ts-reference .tms-crm *::after { box-sizing: border-box; }
.ts-reference .tms-crm h1,.ts-reference .tms-crm h2,.ts-reference .tms-crm h3,.ts-reference .tms-crm h4,.ts-reference .tms-crm p { margin: 0; }
.ts-reference .tms-crm a { color: inherit; text-decoration: none; }
.ts-reference .tms-crm button,.ts-reference .tms-crm input,.ts-reference .tms-crm select,.ts-reference .tms-crm textarea { font: inherit; color: inherit; }
.ts-reference .tms-crm svg { display: block; flex-shrink: 0; }
.ts-reference .tms-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ts-reference .tms-crm :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }


.ts-reference .tms-boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.ts-reference .tms-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: tms-spin .8s linear infinite; }
@keyframes tms-spin { to { transform: rotate(360deg); } }


.ts-reference .tms-app { display: flex; min-height: 100vh; }
.ts-reference .tms-side {
  width: 248px; flex-shrink: 0; background: var(--nav); color: var(--nav-ink);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.ts-reference .tms-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; color: #fff; }
.ts-reference .tms-brand b { font-weight: 650; letter-spacing: -.01em; }
.ts-reference .tms-brand small { display: block; font-size: 11px; color: #94a3b8; letter-spacing: .08em; text-transform: uppercase; }
.ts-reference .tms-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; flex: 1; overflow-y: auto; }
.ts-reference .tms-nav__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 14px 10px 6px; }
.ts-reference .tms-nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px;
  color: #cbd5e1; font-weight: 500; transition: background .15s, color .15s;
}
.ts-reference .tms-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.ts-reference .tms-nav a[aria-current="page"] { background: var(--nav-2); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.ts-reference .tms-nav a .tms-count { margin-left: auto; background: var(--accent); color: #111827; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.ts-reference .tms-side__foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; gap: 10px; }
.ts-reference .tms-side__foot .tms-who { min-width: 0; flex: 1; }
.ts-reference .tms-side__foot .tms-who b { display: block; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-reference .tms-side__foot .tms-who span { font-size: 12px; color: #94a3b8; text-transform: capitalize; }
.ts-reference .tms-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.ts-reference .tms-iconbtn:hover { background: rgba(255, 255, 255, .08); }

.ts-reference .tms-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ts-reference .tms-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 12px 28px; background: rgba(243, 245, 250, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.ts-reference .tms-top .tms-menu { display: none; color: var(--ink); }
.ts-reference .tms-top .tms-menu:hover { background: var(--line-2); }
.ts-reference .tms-search { position: relative; flex: 1; max-width: 460px; }
.ts-reference .tms-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ts-reference .tms-search input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 12px 0 38px; }
.ts-reference .tms-top__meta { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.ts-reference .tms-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 12px; }
.ts-reference .tms-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ts-reference .tms-view { padding: 26px 28px 48px; display: flex; flex-direction: column; gap: 22px; }


.ts-reference .tms-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ts-reference .tms-ph__eyebrow { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ts-reference .tms-ph h1 { font-size: 26px; letter-spacing: -.02em; font-weight: 700; margin-top: 4px; text-wrap: balance; }
.ts-reference .tms-ph p { color: var(--muted); margin-top: 4px; }
.ts-reference .tms-ph__actions { display: flex; gap: 8px; flex-wrap: wrap; }


.ts-reference .tms-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ts-reference .tms-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.ts-reference .tms-card__head h2 { font-size: 15px; font-weight: 650; }
.ts-reference .tms-card__head p { font-size: 12px; color: var(--muted); }
.ts-reference .tms-card__body { padding: 16px 18px; }
.ts-reference .tms-grid { display: grid; gap: 18px; }
.ts-reference .tms-grid--kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ts-reference .tms-grid--main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.ts-reference .tms-grid--lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.ts-reference .tms-stack { display: flex; flex-direction: column; gap: 18px; }

.ts-reference .tms-kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ts-reference .tms-kpi__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 500; }
.ts-reference .tms-kpi__icon { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.ts-reference .tms-kpi__icon--amber { background: var(--amber-soft); color: var(--amber); }
.ts-reference .tms-kpi__icon--red { background: var(--red-soft); color: var(--red); }
.ts-reference .tms-kpi__icon--green { background: var(--green-soft); color: var(--green); }
.ts-reference .tms-kpi__value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ts-reference .tms-kpi__hint { font-size: 12px; color: var(--muted); }
.ts-reference .tms-strip { display: flex; flex-wrap: wrap; gap: 0; }
.ts-reference .tms-strip > div { flex: 1 1 160px; padding: 14px 18px; border-right: 1px solid var(--line-2); }
.ts-reference .tms-strip > div:last-child { border-right: 0; }
.ts-reference .tms-strip span { display: block; font-size: 12px; color: var(--muted); }
.ts-reference .tms-strip b { font-size: 18px; font-variant-numeric: tabular-nums; }


.ts-reference .tms-list { list-style: none; margin: 0; padding: 0; }
.ts-reference .tms-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); transition: background .12s; }
.ts-reference .tms-row:last-child { border-bottom: 0; }
.ts-reference a.tms-row:hover { background: var(--surface-2); }
.ts-reference .tms-row__main { min-width: 0; flex: 1; }
.ts-reference .tms-row__title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts-reference .tms-row__sub { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.ts-reference .tms-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--muted); text-align: right; }
.ts-reference .tms-avatar { position: relative; overflow: hidden; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--primary-soft); color: var(--primary); }
.ts-reference .tms-avatar--lg { width: 52px; height: 52px; font-size: 18px; }
.ts-reference .tms-avatar--nav { background: var(--nav-2); color: #fff; }


.ts-reference .tms-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.ts-reference .tms-badge--blue { background: var(--primary-soft); color: var(--primary); }
.ts-reference .tms-badge--amber { background: var(--amber-soft); color: var(--amber); }
.ts-reference .tms-badge--sky { background: #e0f2fe; color: #0369a1; }
.ts-reference .tms-badge--violet { background: var(--violet-soft); color: var(--violet); }
.ts-reference .tms-badge--green { background: var(--green-soft); color: var(--green); }
.ts-reference .tms-badge--teal { background: var(--teal-soft); color: var(--teal); }
.ts-reference .tms-badge--solid { background: var(--green); color: #fff; }
.ts-reference .tms-badge--gray { background: #f1f5f9; color: #475569; }
.ts-reference .tms-badge--red { background: var(--red-soft); color: var(--red); }
.ts-reference .tms-badge--outline { background: transparent; border-color: var(--line); color: var(--ink-2); }
.ts-reference .tms-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }


.ts-reference .tms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.ts-reference .tms-btn--primary { background: var(--primary); color: var(--primary-ink); }
.ts-reference .tms-btn--primary:hover { background: #1a5fd0; }
.ts-reference .tms-btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.ts-reference .tms-btn--ghost:hover { background: var(--surface-2); }
.ts-reference .tms-btn--danger { background: var(--surface); border-color: #fecaca; color: var(--red); }
.ts-reference .tms-btn--danger:hover { background: var(--red-soft); }
.ts-reference .tms-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.ts-reference .tms-btn--block { width: 100%; height: 44px; }
.ts-reference .tms-btn[disabled] { opacity: .6; cursor: progress; }

.ts-reference .tms-form { display: flex; flex-direction: column; gap: 14px; }
.ts-reference .tms-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ts-reference .tms-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-reference .tms-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ts-reference .tms-field--full { grid-column: 1 / -1; }
.ts-reference .tms-field > span,.ts-reference .tms-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ts-reference .tms-input,.ts-reference .tms-select,.ts-reference .tms-textarea {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 0 12px; transition: border-color .15s, box-shadow .15s;
}
.ts-reference .tms-textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.ts-reference .tms-input:focus,.ts-reference .tms-select:focus,.ts-reference .tms-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 111, 235, .15); }
.ts-reference .tms-help { font-size: 12px; color: var(--muted); }
.ts-reference .tms-error { font-size: 13px; color: var(--red); background: var(--red-soft); border-radius: 9px; padding: 9px 12px; }
.ts-reference .tms-error:empty { display: none; }
.ts-reference .tms-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-reference .tms-check { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13px; }
.ts-reference .tms-check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.ts-reference .tms-check input { accent-color: var(--primary); }


.ts-reference .tms-outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ts-reference .tms-outcome { position: relative; }
.ts-reference .tms-outcome input { position: absolute; opacity: 0; inset: 0; }
.ts-reference .tms-outcome span { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 500; cursor: pointer; transition: all .12s; }
.ts-reference .tms-outcome span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--muted)); }
.ts-reference .tms-outcome input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.ts-reference .tms-outcome input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }


.ts-reference .tms-seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.ts-reference .tms-seg a,.ts-reference .tms-seg button { height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; font-weight: 600; font-size: 13px; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.ts-reference .tms-seg [aria-current="page"],.ts-reference .tms-seg [aria-selected="true"] { background: var(--nav); color: #fff; }


.ts-reference .tms-table-wrap { overflow-x: auto; }
.ts-reference .tms-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ts-reference .tms-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ts-reference .tms-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ts-reference .tms-table tr:last-child td { border-bottom: 0; }
.ts-reference .tms-table tbody tr:hover { background: var(--surface-2); }
.ts-reference .tms-table .tms-num { text-align: right; font-variant-numeric: tabular-nums; }
.ts-reference .tms-table a.tms-link { font-weight: 600; }
.ts-reference .tms-table a.tms-link:hover { color: var(--primary); }


.ts-reference .tms-bars { display: flex; flex-direction: column; gap: 10px; }
.ts-reference .tms-bar { display: grid; grid-template-columns: 140px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.ts-reference .tms-bar__track { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.ts-reference .tms-bar__fill { height: 100%; border-radius: 999px; background: var(--tone, var(--primary)); }
.ts-reference .tms-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.ts-reference .tms-hours { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.ts-reference .tms-hours div { flex: 1; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.ts-reference .tms-hours div:hover { opacity: 1; }
.ts-reference .tms-hours-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }


.ts-reference .tms-timeline { list-style: none; margin: 0; padding: 0; }
.ts-reference .tms-timeline li { display: flex; gap: 12px; padding: 12px 18px; position: relative; }
.ts-reference .tms-timeline li::before { content: ""; position: absolute; left: 33px; top: 44px; bottom: -4px; width: 1px; background: var(--line); }
.ts-reference .tms-timeline li:last-child::before { display: none; }
.ts-reference .tms-tl-icon { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--ink-2); flex-shrink: 0; position: relative; z-index: 1; }
.ts-reference .tms-tl-icon--call { background: var(--primary-soft); color: var(--primary); }
.ts-reference .tms-tl-icon--status { background: var(--violet-soft); color: var(--violet); }
.ts-reference .tms-tl-icon--alert { background: var(--amber-soft); color: var(--amber); }
.ts-reference .tms-tl-body { min-width: 0; flex: 1; }
.ts-reference .tms-tl-body p { color: var(--ink-2); margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.ts-reference .tms-tl-meta { font-size: 12px; color: var(--muted); }


.ts-reference .tms-lead-head { display: flex; align-items: center; gap: 16px; padding: 20px; flex-wrap: wrap; }
.ts-reference .tms-lead-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ts-reference .tms-lead-head__meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 4px; }
.ts-reference .tms-lead-head__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ts-reference .tms-lead-head__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ts-reference .tms-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.ts-reference .tms-facts > div { padding: 12px 20px; border-right: 1px solid var(--line-2); }
.ts-reference .tms-facts > div:last-child { border-right: 0; }
.ts-reference .tms-facts span { display: block; font-size: 12px; color: var(--muted); }
.ts-reference .tms-facts b { font-weight: 600; }
.ts-reference .tms-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.ts-reference .tms-banner--amber { background: var(--amber-soft); color: #78350f; }
.ts-reference .tms-banner--red { background: var(--red-soft); color: #7f1d1d; }

.ts-reference details.tms-section { border-top: 1px solid var(--line-2); }
.ts-reference details.tms-section:first-of-type { border-top: 0; }
.ts-reference details.tms-section summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.ts-reference details.tms-section summary::-webkit-details-marker { display: none; }
.ts-reference details.tms-section summary::after { content: "+"; color: var(--muted); font-size: 18px; }
.ts-reference details.tms-section[open] summary::after { content: "–"; }
.ts-reference details.tms-section .tms-fields { padding: 0 18px 18px; }


.ts-reference .tms-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.ts-reference .tms-board__col h2 { display: flex; align-items: center; gap: 8px; }


.ts-reference .tms-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ts-reference .tms-podium .tms-card { padding: 18px; display: flex; gap: 14px; align-items: center; }
.ts-reference .tms-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--nav); color: #fff; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ts-reference .tms-rank--1 { background: var(--accent); color: #111827; }
.ts-reference .tms-meter { width: 72px; height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.ts-reference .tms-meter i { display: block; height: 100%; background: var(--green); border-radius: 999px; }


.ts-reference .tms-empty { padding: 36px 18px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ts-reference .tms-empty b { color: var(--ink); }
.ts-reference .tms-skel { background: linear-gradient(90deg, var(--line-2), #f8fafc, var(--line-2)); background-size: 200% 100%; animation: tms-shimmer 1.2s infinite; border-radius: 10px; }
@keyframes tms-shimmer { to { background-position: -200% 0; } }

.ts-reference .tms-pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
.ts-reference .tms-pager div { display: flex; gap: 8px; }



.ts-reference .tms-toasts { position: fixed; top: 56px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 100000; width: max-content; max-width: calc(100vw - 24px); }
.ts-reference .tms-toast { background: var(--nav); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); font-weight: 500; animation: tms-in .2s ease-out; max-width: 360px; }
.ts-reference .tms-toast--error { background: var(--red); }
@keyframes tms-in { from { transform: translateY(8px); opacity: 0; } }
.ts-reference .tms-dialog { border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(15, 23, 42, .3); color: var(--ink); }
.ts-reference .tms-dialog::backdrop { background: rgba(11, 21, 48, .5); backdrop-filter: blur(2px); }
.ts-reference .tms-dialog .tms-card__head { padding: 18px 20px; }
.ts-reference .tms-dialog .tms-card__body { padding: 20px; }


.ts-reference .tms-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.ts-reference .tms-auth__art { position: relative; overflow: hidden; background: var(--nav); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.ts-reference .tms-auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ts-reference .tms-auth__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 21, 48, .35) 0%, rgba(11, 21, 48, .2) 40%, rgba(11, 21, 48, .92) 100%); }
.ts-reference .tms-auth__art > * { position: relative; z-index: 1; }
.ts-reference .tms-auth__art h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; max-width: 480px; text-wrap: balance; }
.ts-reference .tms-auth__art p { color: #cbd5e1; margin-top: 12px; max-width: 440px; }
.ts-reference .tms-auth__points { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.ts-reference .tms-auth__points div { display: flex; flex-direction: column; }
.ts-reference .tms-auth__points b { font-size: 22px; }
.ts-reference .tms-auth__points span { font-size: 12px; color: #94a3b8; }
.ts-reference .tms-auth__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.ts-reference .tms-auth__card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.ts-reference .tms-auth__card h1 { font-size: 26px; letter-spacing: -.02em; font-weight: 700; }
.ts-reference .tms-auth__card > header p { color: var(--muted); margin-top: 6px; }
.ts-reference .tms-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.ts-reference .tms-tabs button { height: 36px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; color: var(--muted); cursor: pointer; }
.ts-reference .tms-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.ts-reference .tms-domain { display: flex; align-items: center; gap: 8px; background: var(--primary-soft); color: #1e3a8a; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.ts-reference .tms-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.ts-reference .tms-steps li { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.ts-reference .tms-steps i { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--muted); flex-shrink: 0; }
.ts-reference .tms-steps .is-done i { background: var(--green); color: #fff; }
.ts-reference .tms-steps .is-now i { background: var(--accent); color: #111827; }
.ts-reference .tms-steps b { display: block; }
.ts-reference .tms-steps span { font-size: 13px; color: var(--muted); }
.ts-reference .tms-kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13px; }
.ts-reference .tms-kv dt { color: var(--muted); }
.ts-reference .tms-kv dd { margin: 0; font-weight: 500; }

.ts-reference .tms-muted { color: var(--muted); }
.ts-reference .tms-flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts-reference .tms-right { margin-left: auto; }
.ts-reference .tms-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.ts-reference .tms-filters .tms-input,.ts-reference .tms-filters .tms-select { width: auto; min-width: 180px; height: 36px; }
.ts-reference .tms-filters .tms-input { flex: 1; min-width: 220px; }


@media (max-width: 1200px) {
  .ts-reference .tms-grid--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-reference .tms-grid--main,.ts-reference .tms-grid--lead { grid-template-columns: minmax(0, 1fr); }
  .ts-reference .tms-board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ts-reference .tms-side { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .ts-reference .tms-app.is-nav-open .tms-side { transform: none; }
  .ts-reference .tms-top .tms-menu { display: inline-flex; }
  .ts-reference .tms-top__meta .tms-date { display: none; }
  .ts-reference .tms-view { padding: 18px 16px 40px; }
  .ts-reference .tms-top { padding: 10px 16px; }
  .ts-reference .tms-auth { grid-template-columns: minmax(0, 1fr); }
  .ts-reference .tms-auth__art { min-height: 240px; padding: 28px; }
  .ts-reference .tms-auth__art h2 { font-size: 24px; }
  .ts-reference .tms-auth__points { display: none; }
  .ts-reference .tms-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-reference .tms-podium { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ts-reference .tms-grid--kpi { grid-template-columns: minmax(0, 1fr); }
  .ts-reference .tms-fields,.ts-reference .tms-fields--3,.ts-reference .tms-outcomes { grid-template-columns: minmax(0, 1fr); }
  .ts-reference .tms-bar { grid-template-columns: 100px 1fr 32px; }
  .ts-reference .tms-row__side { display: none; }
}


.ts-reference .tms-leadalerts { position: fixed; top: 76px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100000; width: min(340px, calc(100vw - 24px)); }
.ts-reference .tms-leadalert { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; box-shadow: 0 14px 40px rgba(15, 23, 42, .22); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; animation: tms-in .25s ease-out; }
.ts-reference .tms-leadalert__head { display: flex; align-items: center; justify-content: space-between; }
.ts-reference .tms-leadalert__pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 3px 9px; border-radius: 999px; }
.ts-reference .tms-leadalert__x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; padding: 4px; line-height: 1; }
.ts-reference .tms-leadalert__name { font-size: 16px; color: var(--ink); }
.ts-reference .tms-leadalert__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.ts-reference .tms-leadalert__act { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
@media (max-width: 560px) { .ts-reference .tms-leadalerts { top: 64px; right: 12px; } }


.ts-reference .tms-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; z-index: 100001; padding: 16px; }
.ts-reference .tms-modal__box { background: var(--surface, #fff); border-radius: 16px; padding: 22px; width: min(440px, 100%); box-shadow: 0 24px 60px rgba(15, 23, 42, .35); }
.ts-reference .tms-modal__title { margin: 0 0 8px; font-size: 18px; color: var(--ink, #0f172a); }
.ts-reference .tms-modal__msg { margin: 0 0 12px; color: var(--ink-2, #334155); line-height: 1.5; }
.ts-reference .tms-modal__err:empty { display: none; }
.ts-reference .tms-modal__err { margin: 0 0 12px; padding: 10px 12px; background: var(--red-soft, #fee2e2); color: var(--red, #dc2626); border-radius: 10px; font-weight: 600; }
.ts-reference .tms-modal__act { display: flex; justify-content: flex-end; gap: 8px; }
.ts-reference .tms-btn--dangerfill { background: var(--red, #dc2626); border-color: var(--red, #dc2626); color: #fff; }
.ts-reference .tms-btn--dangerfill:hover { filter: brightness(.93); }


.ts-reference.tms-crm-body #ptTimeSelectCntr,.ts-reference.tms-crm-body #ui-datepicker-div { display: none !important; }


.ts-reference .tms-chat { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding: 4px 2px; }
.ts-reference .tms-bubble { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.ts-reference .tms-bubble time { display: block; margin-top: 3px; font-size: 11px; opacity: .7; }
.ts-reference .tms-bubble--in { align-self: flex-start; background: #eef2f7; color: #0f172a; border-bottom-left-radius: 4px; }
.ts-reference .tms-bubble--out { align-self: flex-end; background: #1f6feb; color: #fff; border-bottom-right-radius: 4px; }


.ts-reference .tms-avatar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ts-reference .tms-bubble-row { display: flex; align-items: flex-end; gap: 8px; align-self: flex-start; max-width: 92%; }
.ts-reference .tms-bubble-row .tms-bubble { max-width: 100%; }
.ts-reference .tms-nav__badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; font-style: normal; }
.ts-reference .tms-nav__badge[hidden] { display: none; }
.ts-reference .tms-chatapp { display: grid; grid-template-columns: 290px 1fr; gap: 16px; align-items: stretch; min-height: 520px; }
.ts-reference .tms-chatlist { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 8px; overflow-y: auto; max-height: 72vh; }
.ts-reference .tms-chatitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.ts-reference .tms-chatitem:hover { background: rgba(31, 111, 235, .06); }
.ts-reference .tms-chatitem.is-active { background: rgba(31, 111, 235, .12); }
.ts-reference .tms-chatitem__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ts-reference .tms-chatitem__main b { font-size: 14px; }
.ts-reference .tms-chatitem__main span { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-reference .tms-chatpane { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; max-height: 72vh; }
.ts-reference .tms-chathead { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; }
.ts-reference .tms-chathead h2 { margin: 0; font-size: 17px; }
.ts-reference .tms-chatlog { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.ts-reference .tms-cmsg { display: flex; align-items: flex-end; gap: 8px; max-width: 80%; }
.ts-reference .tms-cmsg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.ts-reference .tms-cmsg__bubble { padding: 8px 12px; border-radius: 14px; background: #eef2f7; color: #0f172a; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.ts-reference .tms-cmsg__bubble b { display: block; font-size: 12px; color: #475569; margin-bottom: 1px; }
.ts-reference .tms-cmsg__bubble time { display: block; margin-top: 3px; font-size: 11px; opacity: .65; }
.ts-reference .tms-cmsg.is-mine .tms-cmsg__bubble { background: #1f6feb; color: #fff; }
.ts-reference .tms-chatform { display: flex; gap: 10px; padding: 12px; border-top: 1px solid #e2e8f0; }
.ts-reference .tms-chatform textarea { flex: 1; resize: none; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 12px; font: inherit; }
@media (max-width: 800px) { .ts-reference .tms-chatapp { grid-template-columns: 1fr; } .ts-reference .tms-chatlist { max-height: 200px; } }


.ts-reference .tms-chanstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px 18px 14px; }
.ts-reference .tms-chanstat { background: #f1f5f9; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.ts-reference .tms-chanstat b { font-size: 20px; line-height: 1.1; }
.ts-reference .tms-chanstat span { font-size: 11px; color: #64748b; }
.ts-reference .tms-chanstat--amber { background: #fef3c7; }
.ts-reference .tms-chanstat--red { background: #fee2e2; }
@media (max-width: 600px) { .ts-reference .tms-chanstats { grid-template-columns: repeat(2, 1fr); } }


.ts-reference .tms-crm-body { background: #f4d9e6; }
.ts-reference .tms-crm {
  --bg: transparent; --surface: #ffffff; --surface-2: #f8f7fd;
  --ink: #1a2040; --ink-2: #3a4467; --muted: #7b84a6; --line: #ebe8f6; --line-2: #f2f0fa;
  --primary: #2f7df6; --primary-soft: #e6f0ff; --primary-ink: #ffffff;
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 12px 34px rgba(122, 92, 170, .11), 0 2px 6px rgba(122, 92, 170, .05);
  --grad: linear-gradient(135deg, #17b8a6 0%, #2f7df6 100%);
  --grad-warm: linear-gradient(135deg, #ff9f5a 0%, #f472b6 100%);
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(255, 190, 140, .55), transparent 60%),
    radial-gradient(800px 600px at 92% 8%, rgba(190, 160, 255, .55), transparent 60%),
    linear-gradient(135deg, #ffdcbd 0%, #f9d0e1 45%, #d5c8f8 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01", "tnum" 0;
}
.ts-reference .tms-crm svg { shape-rendering: geometricPrecision; }
.ts-reference .tms-crm :focus-visible { outline: 3px solid rgba(47, 125, 246, .45); outline-offset: 2px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .ts-reference .tms-crm * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }


.ts-reference .tms-fabbar,.ts-reference .tms-fab { display: none !important; visibility: hidden !important; }


.ts-reference .tms-app { padding: 16px; gap: 18px; }
.ts-reference .tms-side {
  width: 252px; height: calc(100vh - 32px); top: 16px; border-radius: 28px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); color: var(--ink-2);
  box-shadow: 0 18px 50px rgba(122, 92, 170, .16), 0 2px 8px rgba(122, 92, 170, .06); border: 1px solid rgba(255, 255, 255, .8);
}
.ts-reference .tms-brand { color: var(--ink); padding: 22px 22px 14px; }
.ts-reference .tms-brand b { font-size: 17px; letter-spacing: -.02em; }
.ts-reference .tms-brand small { color: var(--muted); }
.ts-reference .tms-nav { padding: 6px 14px; gap: 4px; }
.ts-reference .tms-nav__label { color: #a2a8c4; padding: 16px 12px 6px; }
.ts-reference .tms-nav a { color: #4b557a; border-radius: 15px; padding: 11px 14px; font-weight: 560; transition: background .15s, color .15s, transform .15s; }
.ts-reference .tms-nav a:hover { background: #f1f4ff; color: var(--ink); }
.ts-reference .tms-nav a[aria-current="page"] {
  background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(47, 125, 246, .30), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.ts-reference .tms-nav a .tms-count,.ts-reference .tms-nav__badge { background: #ff5d7a; color: #fff; }
.ts-reference .tms-nav a[aria-current="page"] .tms-nav__badge { background: #fff; color: #2f7df6; }
.ts-reference .tms-side__foot { border-top: 1px solid var(--line); padding: 12px 14px 14px; gap: 6px; }
.ts-reference .tms-me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 8px; border-radius: 16px; transition: background .15s; }
.ts-reference .tms-me:hover,.ts-reference .tms-me[aria-current="page"] { background: #f1f4ff; }
.ts-reference .tms-side__foot .tms-who b { color: var(--ink); }
.ts-reference .tms-side__foot .tms-who span { color: var(--muted); }
.ts-reference .tms-iconbtn { color: var(--muted); border-radius: 12px; }
.ts-reference .tms-iconbtn:hover { background: #f1f4ff; color: var(--ink); }
.ts-reference .tms-avatar { background: #e8efff; color: #2f7df6; }
.ts-reference .tms-avatar--nav { background: var(--grad); color: #fff; width: 40px; height: 40px; }


.ts-reference .tms-top { background: transparent; backdrop-filter: none; border-bottom: 0; padding: 4px 6px 10px; }
.ts-reference .tms-search input { height: 44px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 22px rgba(122, 92, 170, .10); padding-left: 42px; }
.ts-reference .tms-search input:focus { outline: 3px solid rgba(47, 125, 246, .35); }
.ts-reference .tms-top__meta { color: #5b4e7e; font-weight: 500; }
.ts-reference .tms-topme { display: inline-flex; border-radius: 50%; box-shadow: 0 6px 16px rgba(122, 92, 170, .22); }
.ts-reference .tms-live { background: rgba(255, 255, 255, .85); }
.ts-reference .tms-view { padding: 6px 6px 48px; gap: 22px; }


.ts-reference .tms-card {
  background: rgba(255, 255, 255, .90); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--radius); box-shadow: var(--shadow);
}
.ts-reference .tms-card__head { border-bottom: 1px solid var(--line-2); padding: 18px 22px; }
.ts-reference .tms-card__head h2 { font-size: 16px; letter-spacing: -.01em; }
.ts-reference .tms-card__body { padding: 18px 22px; }
.ts-reference .tms-row { padding: 13px 22px; }
.ts-reference a.tms-row:hover { background: #f6f5fd; }
.ts-reference .tms-ph h1 { font-size: 30px; letter-spacing: -.03em; }
.ts-reference .tms-ph__eyebrow { color: #7a6ca3; }


.ts-reference .tms-btn { border-radius: 14px; height: 42px; font-weight: 600; transition: transform .12s, box-shadow .15s, filter .15s, background .15s; }
.ts-reference .tms-btn:active { transform: translateY(1px); }
.ts-reference .tms-btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(47, 125, 246, .28); }
.ts-reference .tms-btn--primary:hover { background: var(--grad); filter: brightness(1.06); box-shadow: 0 14px 28px rgba(47, 125, 246, .34); }
.ts-reference .tms-btn--ghost { background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(122, 92, 170, .06); }
.ts-reference .tms-btn--ghost:hover { background: #f6f5fd; }
.ts-reference .tms-btn--sm { height: 34px; border-radius: 12px; }
.ts-reference .tms-seg { background: #f3f1fb; border: 0; border-radius: 14px; padding: 4px; }
.ts-reference .tms-seg a,.ts-reference .tms-seg button { border-radius: 11px; color: var(--ink-2); }
.ts-reference .tms-seg [aria-current="page"],.ts-reference .tms-seg [aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(122, 92, 170, .16); }
.ts-reference .tms-badge { border-radius: 999px; font-weight: 600; }
.ts-reference .tms-banner { border-radius: 18px; padding: 14px 18px; box-shadow: 0 8px 22px rgba(122, 92, 170, .08); }
.ts-reference .tms-banner--red { background: #ffe3e8; } .ts-reference .tms-banner--amber { background: #fff1d6; }


.ts-reference .tms-hero { padding: 26px 30px 28px; background: linear-gradient(135deg, rgba(255, 255, 255, .97) 0%, rgba(233, 249, 246, .95) 55%, rgba(230, 240, 255, .95) 100%); }
.ts-reference .tms-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ts-reference .tms-hero__top h1 { font-size: 30px; letter-spacing: -.03em; font-weight: 750; margin-top: 4px; color: #123a6b; }
.ts-reference .tms-hero__top p { color: var(--muted); }
.ts-reference .tms-hero__body { display: grid; grid-template-columns: minmax(250px, 330px) 1fr; gap: 30px; align-items: center; margin-top: 18px; }
.ts-reference .tms-hero__donut { display: flex; flex-direction: column; align-items: center; }
.ts-reference .tms-donut { width: 230px; height: 230px; max-width: 100%; display: block; filter: drop-shadow(0 8px 14px rgba(47, 125, 246, .10)); }
.ts-reference .tms-donut__num { font-size: 38px; font-weight: 800; fill: #123a6b; letter-spacing: -.02em; }
.ts-reference .tms-donut__lbl { font-size: 12.5px; fill: #7b84a6; font-weight: 600; }
.ts-reference .tms-donut__seg { transition: opacity .15s; cursor: pointer; }
.ts-reference .tms-donut:hover .tms-donut__seg { opacity: .55; } .ts-reference .tms-donut .tms-donut__seg:hover { opacity: 1; }
.ts-reference .tms-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; width: 100%; max-width: 280px; font-size: 13px; }
.ts-reference .tms-legend li { display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.ts-reference .tms-legend i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ts-reference .tms-legend b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }
.ts-reference .tms-legend em { color: var(--muted); font-style: normal; width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.ts-reference .tms-legend--inline { display: flex; gap: 16px; margin: 0; width: auto; max-width: none; }
.ts-reference .tms-legend--inline span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ts-reference .tms-legend--inline i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }


.ts-reference .tms-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ts-reference .tms-tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; border-radius: 22px; transition: transform .18s, box-shadow .18s; overflow: hidden; }
.ts-reference .tms-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(122, 92, 170, .16); }
.ts-reference .tms-tile__icon { width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .85); margin-bottom: 10px; box-shadow: 0 6px 14px rgba(122, 92, 170, .10); }
.ts-reference .tms-tile__num { font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ts-reference .tms-tile__lbl { font-weight: 650; font-size: 14px; margin-top: 2px; }
.ts-reference .tms-tile small { color: rgba(26, 32, 64, .62); font-size: 12.5px; }
.ts-reference .tms-tile--blue { background: linear-gradient(135deg, #dde9ff, #eef4ff); } .ts-reference .tms-tile--blue .tms-tile__icon { color: #2f7df6; } .ts-reference .tms-tile--blue .tms-tile__num { color: #164a9c; }
.ts-reference .tms-tile--violet { background: linear-gradient(135deg, #eadfff, #f6f1ff); } .ts-reference .tms-tile--violet .tms-tile__icon { color: #8b5cf6; } .ts-reference .tms-tile--violet .tms-tile__num { color: #55309f; }
.ts-reference .tms-tile--orange { background: linear-gradient(135deg, #ffe6d1, #fff2e6); } .ts-reference .tms-tile--orange .tms-tile__icon { color: #ef7d2d; } .ts-reference .tms-tile--orange .tms-tile__num { color: #9a4a0c; }
.ts-reference .tms-tile--green { background: linear-gradient(135deg, #d8f5e5, #eefaf3); } .ts-reference .tms-tile--green .tms-tile__icon { color: #23a263; } .ts-reference .tms-tile--green .tms-tile__num { color: #14673c; }


.ts-reference .tms-grid { gap: 22px; }
.ts-reference .tms-grid--charts { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; }
.ts-reference .tms-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ts-reference .tms-grid--main { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.ts-reference .tms-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ts-reference .tms-strip { overflow: hidden; }
.ts-reference .tms-strip > div { padding: 16px 22px; border-right: 1px solid var(--line-2); }
.ts-reference .tms-strip b { font-size: 22px; font-weight: 750; color: #123a6b; }
.ts-reference .tms-chanstats { padding: 14px 22px 8px; }
.ts-reference .tms-chanstat { background: #f4f2fc; border-radius: 14px; }
.ts-reference .tms-chanstat--amber { background: #fff1d6; } .ts-reference .tms-chanstat--red { background: #ffe3e8; }


.ts-reference .tms-chart { position: relative; }
.ts-reference .tms-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ts-reference .tms-chart__grid { stroke: #ece9f7; stroke-width: 1; stroke-dasharray: 3 5; }
.ts-reference .tms-chart__ax { fill: #8a90ad; font-size: 11.5px; font-weight: 500; }
.ts-reference .tms-chart__guide { stroke: #c9c2e6; stroke-width: 1.5; stroke-dasharray: 4 4; }
.ts-reference .tms-chart__hit { cursor: crosshair; }
.ts-reference .tms-tip { position: absolute; top: 4px; transform: translateX(-50%); background: #1a2040; color: #fff; border-radius: 14px; padding: 10px 14px; font-size: 12.5px; box-shadow: 0 14px 30px rgba(26, 32, 64, .30); pointer-events: none; white-space: nowrap; z-index: 5; display: grid; gap: 4px; }
.ts-reference .tms-tip[hidden] { display: none; }
.ts-reference .tms-tip.is-right { transform: translateX(-100%); }
.ts-reference .tms-tip b { font-size: 12px; opacity: .75; font-weight: 600; }
.ts-reference .tms-tip span { display: flex; align-items: center; gap: 8px; }
.ts-reference .tms-tip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ts-reference .tms-tip em { margin-left: auto; padding-left: 18px; font-style: normal; font-weight: 750; font-variant-numeric: tabular-nums; }
.ts-reference .tms-bars { display: grid; gap: 12px; }
.ts-reference .tms-bar { grid-template-columns: 150px 1fr 40px; }
.ts-reference .tms-bar__track { height: 10px; background: #f0eef9; }
.ts-reference .tms-bar__fill { background: linear-gradient(90deg, color-mix(in srgb, var(--tone, #2f7df6) 70%, #fff), var(--tone, #2f7df6)); }
.ts-reference .tms-hb { display: grid; gap: 14px; }
.ts-reference .tms-hb__key { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.ts-reference .tms-hb__key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.ts-reference .tms-hb__row { display: grid; grid-template-columns: minmax(110px, 190px) 1fr; gap: 16px; align-items: center; }
.ts-reference .tms-hb__lbl { font-weight: 650; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-reference .tms-hb__bars { display: grid; gap: 5px; }
.ts-reference .tms-hb__bar { display: flex; align-items: center; gap: 10px; height: 14px; }
.ts-reference .tms-hb__bar i { display: block; height: 100%; border-radius: 999px; min-width: 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.ts-reference .tms-hb__bar b { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); }


.ts-reference .tms-table th { background: transparent; color: #8a90ad; }
.ts-reference .tms-table tbody tr { transition: background .12s; } .ts-reference .tms-table tbody tr:hover { background: #f6f5fd; }
.ts-reference .tms-input,.ts-reference .tms-select,.ts-reference .tms-textarea,.ts-reference .tms-field input:not([type="checkbox"]):not([type="radio"]),.ts-reference .tms-field select,.ts-reference .tms-field textarea { border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.ts-reference .tms-field input:not([type="checkbox"]):not([type="radio"]) { height: 44px; padding: 0 14px; width: 100%; }
.ts-reference .tms-field input:not([type="checkbox"]):not([type="radio"]):focus { outline: none; border-color: #2f7df6; box-shadow: 0 0 0 4px rgba(47, 125, 246, .15); }
.ts-reference .tms-field input:disabled { background: #f6f5fd; color: var(--muted); }
.ts-reference .tms-input:focus,.ts-reference .tms-select:focus,.ts-reference .tms-textarea:focus { border-color: #2f7df6; box-shadow: 0 0 0 4px rgba(47, 125, 246, .15); }
.ts-reference .tms-hint { color: var(--muted); font-size: 12.5px; max-width: 280px; }
.ts-reference .tms-error { color: #c0334d; background: #ffe3e8; border-radius: 12px; padding: 10px 14px; font-weight: 500; }
.ts-reference .tms-form__actions { display: flex; justify-content: flex-end; margin-top: 16px; }


.ts-reference .tms-grid--profile { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.ts-reference .tms-profile-photo .tms-card__body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 30px 24px; }
.ts-reference .tms-profile-photo h2 { font-size: 20px; margin-top: 10px; letter-spacing: -.02em; }
.ts-reference .tms-photo { position: relative; width: 176px; height: 176px; border-radius: 50%; overflow: hidden; background: var(--grad); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 16px 36px rgba(47, 125, 246, .30), 0 0 0 6px #fff; }
.ts-reference .tms-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-reference .tms-photo__ph { font-size: 60px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.ts-reference .tms-photo::after { content: "Change photo"; position: absolute; inset: auto 0 0 0; padding: 18px 0 14px; text-align: center; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(18, 30, 70, .62)); opacity: 0; transition: opacity .15s; }
.ts-reference .tms-photo:hover::after,.ts-reference .tms-photo:focus-visible::after { opacity: 1; }
.ts-reference .tms-photo__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }


.ts-reference .tms-chatlist,.ts-reference .tms-chatpane { background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow); border-radius: 22px; }
.ts-reference .tms-chatitem { border-radius: 16px; } .ts-reference .tms-chatitem.is-active { background: #eaf1ff; }
.ts-reference .tms-cmsg__bubble { border-radius: 18px; background: #f1effa; }
.ts-reference .tms-cmsg.is-mine .tms-cmsg__bubble { background: var(--grad); }
.ts-reference .tms-chatform textarea { border-radius: 14px; }


@media (max-width: 1200px) {
  .ts-reference .tms-hero__body { grid-template-columns: 1fr; justify-items: center; }
  .ts-reference .tms-tiles { width: 100%; }
  .ts-reference .tms-grid--charts,.ts-reference .tms-grid--2,.ts-reference .tms-grid--main,.ts-reference .tms-grid--profile { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ts-reference .tms-app { padding: 10px; gap: 0; }
  .ts-reference .tms-side { left: 10px; top: 10px; height: calc(100vh - 20px); z-index: 60; transform: translateX(-115%); }
  .ts-reference .tms-app.is-nav-open .tms-side { transform: none; }
  .ts-reference .tms-view { padding: 4px 0 40px; }
  .ts-reference .tms-hero { padding: 20px 18px; }
  .ts-reference .tms-hero__top h1 { font-size: 24px; }
  .ts-reference .tms-donut { width: 200px; height: 200px; }
}
@media (max-width: 560px) {
  .ts-reference .tms-tiles { gap: 12px; } .ts-reference .tms-tile { padding: 16px 16px; } .ts-reference .tms-tile__num { font-size: 32px; }
  .ts-reference .tms-hb__row { grid-template-columns: 1fr; gap: 6px; }
  .ts-reference .tms-bar { grid-template-columns: 110px 1fr 34px; }
}


.ts-reference .tms-crm .tms-btn--primary,.ts-reference .tms-crm a.tms-btn--primary { color: #fff; }
.ts-reference .tms-crm .tms-btn--ghost,.ts-reference .tms-crm a.tms-btn--ghost { color: var(--ink); }
.ts-reference .tms-chart__dot { opacity: 0; transition: opacity .12s; }
.ts-reference .tms-side__foot .tms-who span { text-transform: none; }

.ts-reference .tms-bar__fill { display: block; min-width: 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.ts-reference .tms-bar__track { display: block; }
.ts-reference .tms-chart__guide { opacity: 0; transition: opacity .12s; }


.ts-reference .tms-app.has-wpbar { --wpbar: 32px; }
@media (max-width: 782px) { .ts-reference .tms-app.has-wpbar { --wpbar: 46px; } }
.ts-reference .tms-app.has-wpbar .tms-side { top: calc(16px + var(--wpbar)); height: calc(100vh - 32px - var(--wpbar)); }
@media (max-width: 900px) { .ts-reference .tms-app.has-wpbar .tms-side { top: calc(10px + var(--wpbar)); height: calc(100vh - 20px - var(--wpbar)); } }
.ts-reference .tms-top { top: var(--wpbar, 0px); }
.ts-reference .tms-table .tms-flex { flex-wrap: nowrap; white-space: nowrap; }


@media (max-width: 900px) {
  .ts-reference .tms-app.has-wpbar .tms-side,.ts-reference .tms-side { top: 10px; height: calc(100vh - 20px); z-index: 100000; }
}
@media (max-width: 560px) {
  .ts-reference .tms-chart__ax { font-size: 19px; }
  .ts-reference .tms-tip { font-size: 13px; }
}


.ts-reference .tms-crm-body { background: #0a1a45; }
.ts-reference .tms-crm {
  background:
    radial-gradient(900px 620px at 8% -10%, rgba(70, 120, 255, .30), transparent 62%),
    radial-gradient(800px 600px at 96% 12%, rgba(40, 90, 220, .35), transparent 60%),
    linear-gradient(135deg, #081538 0%, #0b2160 48%, #153b9e 100%);
  background-attachment: fixed;
}
.ts-reference .tms-ph h1 { color: #ffffff; }
.ts-reference .tms-ph p,.ts-reference .tms-ph__eyebrow { color: rgba(214, 226, 255, .78); }
.ts-reference .tms-ph__eyebrow { color: #9db8ff; }
.ts-reference .tms-top__meta { color: rgba(226, 235, 255, .88); }
.ts-reference .tms-top .tms-iconbtn,.ts-reference .tms-top__meta .tms-iconbtn { color: rgba(226, 235, 255, .9); }
.ts-reference .tms-top .tms-iconbtn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ts-reference .tms-top .tms-menu { color: #fff; }
.ts-reference .tms-search input { background: rgba(255, 255, 255, .96); box-shadow: 0 10px 26px rgba(2, 10, 40, .35); }
.ts-reference .tms-search input:focus { outline: 3px solid rgba(120, 160, 255, .55); }
.ts-reference .tms-live { background: rgba(255, 255, 255, .95); }
.ts-reference .tms-topme { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 8px 18px rgba(2, 10, 40, .4); }


.ts-reference .tms-ph__actions .tms-seg { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.ts-reference .tms-ph__actions .tms-seg a,.ts-reference .tms-ph__actions .tms-seg button { color: rgba(226, 235, 255, .92); }
.ts-reference .tms-ph__actions .tms-seg [aria-current="page"],.ts-reference .tms-ph__actions .tms-seg [aria-selected="true"] { background: #fff; color: #0b2160; }
.ts-reference .tms-ph__actions .tms-btn--ghost { background: rgba(255, 255, 255, .96); }
.ts-reference .tms-card,.ts-reference .tms-chatlist,.ts-reference .tms-chatpane { box-shadow: 0 18px 44px rgba(2, 10, 40, .38), 0 2px 6px rgba(2, 10, 40, .18); border-color: rgba(255, 255, 255, .55); }
.ts-reference .tms-side { box-shadow: 0 22px 56px rgba(2, 10, 40, .5), 0 2px 8px rgba(2, 10, 40, .2); }
.ts-reference .tms-banner { box-shadow: 0 10px 26px rgba(2, 10, 40, .28); }
.ts-reference .tms-boot { color: #fff; }
.ts-reference .tms-spinner { border-color: rgba(255, 255, 255, .25); border-top-color: #fff; }
.ts-reference .tms-view > .tms-muted,.ts-reference .tms-view > p.tms-muted { color: rgba(226, 235, 255, .8); }
.ts-reference .tms-podium .tms-muted { color: var(--muted); }


.ts-reference .tms-card { background: rgba(255, 255, 255, .975); }
.ts-reference .tms-side { background: rgba(255, 255, 255, .985); }
.ts-reference .tms-chatlist,.ts-reference .tms-chatpane { background: rgba(255, 255, 255, .975); }
.ts-reference .tms-hero { background: linear-gradient(135deg, #ffffff 0%, #eefaf8 55%, #eaf2ff 100%); }


.ts-reference .tms-checks { gap: 10px; align-items: center; }
.ts-reference .tms-check { height: 38px; padding: 0 16px 0 12px; gap: 9px; background: #fff; white-space: nowrap; line-height: 1; transition: border-color .15s, background .15s, box-shadow .15s; }
.ts-reference .tms-check:hover { border-color: #b9c8f5; box-shadow: 0 4px 12px rgba(47, 125, 246, .10); }
.ts-reference .tms-check input { width: 17px; height: 17px; min-width: 17px; margin: 0; padding: 0; flex: none; accent-color: #2f7df6; }
.ts-reference .tms-check:has(input:checked) { border-color: #2f7df6; background: #e8f0ff; color: #1c57c4; font-weight: 600; }


.ts-reference .tms-listbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 12px; }
.ts-reference .tms-listbar__count { margin: 0; font-size: 15px; color: #eaf0ff; }
.ts-reference .tms-listbar__count .tms-muted { color: rgba(214, 226, 255, .78); }
.ts-reference .tms-listbar__count b { font-weight: 700; }
.ts-reference .tms-seg--period { flex-wrap: wrap; }
.ts-reference .tms-seg--period a { min-height: 36px; padding: 0 14px; text-decoration: none; }
.ts-reference .tms-pager--numbered { flex-wrap: wrap; gap: 10px 16px; }
.ts-reference .tms-pager--numbered .tms-pager__sum { flex: 1 1 220px; }
.ts-reference .tms-pager--numbered .tms-pager__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ts-reference .tms-pager--numbered .tms-btn { min-height: 40px; padding: 0 14px; }
.ts-reference .tms-pager__num { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.ts-reference .tms-pager__num:hover { border-color: #b9c8f5; background: #f5f8ff; }
.ts-reference .tms-pager__num:focus-visible,.ts-reference .tms-seg--period a:focus-visible { outline: 3px solid #2f7df6; outline-offset: 2px; }
.ts-reference .tms-pager__num[aria-current="page"] { background: var(--nav, #1f2a44); border-color: var(--nav, #1f2a44); color: #fff; cursor: default; }
.ts-reference .tms-pager__gap { min-width: 24px; text-align: center; color: var(--muted); }
.ts-reference .tms-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.ts-reference .tms-periodcard .tms-card__head { flex-wrap: wrap; gap: 12px; }
.ts-reference .tms-strip--flat { box-shadow: none; border: 0; padding: 4px 16px 16px; }
.ts-reference .tms-strip--flat small { display: block; margin-top: 2px; font-size: 12px; }
.ts-reference .tms-wf-sources { border: 0; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.ts-reference .tms-wf-sources legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.ts-reference #tms-wf-form .tms-check { display: flex; margin-bottom: 8px; height: auto; min-height: 38px; white-space: normal; }
@media (max-width: 640px) {
  .ts-reference .tms-pager--numbered .tms-pager__sum { flex-basis: 100%; }
  .ts-reference .tms-pager--numbered .tms-pager__nav { width: 100%; justify-content: center; }
}


.ts-reference .tms-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; border: 1px solid transparent; line-height: 1.4; }
.ts-reference .tms-chip--web { background: #e3faff; color: #075a6e; border-color: #22e3ff; }
.ts-reference .tms-chip--meta { background: #f0e8ff; color: #5b21b6; border-color: #a66bff; }
.ts-reference .tms-oldcard .tms-card__head { flex-wrap: wrap; gap: 12px; }
.ts-reference .tms-oldlist { list-style: none; margin: 0; padding: 4px 16px 8px; display: grid; gap: 10px; }
.ts-reference .tms-old { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); border-left-width: 5px; background: #fff; }
.ts-reference .tms-old--amber { border-left-color: #f59e0b; background: #fffaf0; }
.ts-reference .tms-old--red { border-left-color: #ef4444; background: #fff5f6; }
.ts-reference .tms-old__main { min-width: 0; flex: 1 1 320px; }
.ts-reference .tms-old__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ts-reference .tms-old__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ts-reference .tms-old__days { font-weight: 700; }
.ts-reference .tms-old__days--amber { color: #92400e; }
.ts-reference .tms-old__days--red { color: #b91c1c; }
.ts-reference .tms-old__act { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-reference .tms-old__act .tms-btn { min-height: 38px; }
.ts-reference .tms-old__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 8px 18px 16px; font-size: 13px; }
.ts-reference .tms-oldcard .tms-seg button b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.ts-reference .tms-leadalert--reply { border-left-color: #ff3dcb; }
.ts-reference .tms-leadalert--reply .tms-leadalert__pill { color: #9d174d; background: #ffe4f3; }
.ts-reference .tms-leadalert__act .tms-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.ts-reference .tms-toast--undo { display: flex; align-items: center; gap: 14px; }
.ts-reference .tms-toast__undo { border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: inherit; font-weight: 700; border-radius: 8px; padding: 4px 10px; cursor: pointer; min-height: 32px; }
.ts-reference .tms-bellwrap { position: relative; display: inline-flex; }
.ts-reference .tms-bell__badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff3dcb; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-style: normal; }
.ts-reference .tms-bell__badge[hidden] { display: none; }
.ts-reference .tms-themebtn { border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: rgba(226, 235, 255, .95); font-weight: 700; font-size: 12px; border-radius: 999px; padding: 5px 12px; min-height: 32px; cursor: pointer; }
.ts-reference .tms-themebtn:hover { background: rgba(255, 255, 255, .12); }
.ts-reference .tms-nav__label:first-child { padding-top: 6px; }
.ts-reference #tms-fu-form .tms-fields,.ts-reference #tms-fu-form .tms-error,.ts-reference #tms-fu-form .tms-flex { margin: 0 20px; }
.ts-reference #tms-fu-form .tms-flex { gap: 10px; margin-bottom: 20px; margin-top: 10px; }
.ts-reference #tms-fu-form .tms-error:empty { display: none; }


.ts-reference .tms-crm.tms-neon {
  --neon-cyan: #22e3ff; --neon-violet: #a66bff; --neon-magenta: #ff3dcb; --neon-lime: #7cff6b; --neon-amber: #ffb020; --neon-coral: #ff4d6d;
  --primary: #5b3df5; --primary-soft: #ece8ff;
  background:
    radial-gradient(900px 600px at 6% -8%, rgba(34, 227, 255, .20), transparent 60%),
    radial-gradient(800px 600px at 96% 8%, rgba(166, 107, 255, .24), transparent 60%),
    radial-gradient(700px 520px at 50% 112%, rgba(255, 61, 203, .13), transparent 60%),
    linear-gradient(160deg, #060a18 0%, #0b1230 55%, #101a45 100%);
  background-attachment: fixed;
}
.ts-reference .tms-crm.tms-neon .tms-side { background: linear-gradient(180deg, rgba(9, 14, 38, .95), rgba(12, 18, 50, .95)); border: 1px solid rgba(34, 227, 255, .30); box-shadow: 0 0 0 1px rgba(166, 107, 255, .14), 0 24px 64px rgba(0, 0, 0, .6), 0 0 44px rgba(34, 227, 255, .10); }
.ts-reference .tms-crm.tms-neon .tms-brand,.ts-reference .tms-crm.tms-neon .tms-brand b { color: #fff; }
.ts-reference .tms-crm.tms-neon .tms-brand small { color: #9db0f0; }
.ts-reference .tms-crm.tms-neon .tms-nav__label { color: #93a4ec; }
.ts-reference .tms-crm.tms-neon .tms-nav a { color: #c9d4ff; }
.ts-reference .tms-crm.tms-neon .tms-nav a:hover { background: rgba(34, 227, 255, .10); color: #fff; }
.ts-reference .tms-crm.tms-neon .tms-nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(34, 227, 255, .22), rgba(166, 107, 255, .22)); color: #fff; box-shadow: inset 3px 0 0 var(--neon-cyan), 0 0 22px rgba(34, 227, 255, .22); }
.ts-reference .tms-crm.tms-neon .tms-nav a[data-nav="leads"] svg { color: var(--neon-cyan); }
.ts-reference .tms-crm.tms-neon .tms-nav a[data-nav="messenger"] svg { color: #cfb3ff; }
.ts-reference .tms-crm.tms-neon .tms-nav a[data-nav="old-leads"] svg { color: #ffc24d; }
.ts-reference .tms-crm.tms-neon .tms-nav__badge { background: var(--neon-magenta); color: #fff; }
.ts-reference .tms-crm.tms-neon .tms-nav a[aria-current="page"] .tms-nav__badge { background: #fff; color: #5b3df5; }
.ts-reference .tms-crm.tms-neon .tms-side__foot { border-top: 1px solid rgba(255, 255, 255, .12); }
.ts-reference .tms-crm.tms-neon .tms-side__foot .tms-who b { color: #fff; }
.ts-reference .tms-crm.tms-neon .tms-side__foot .tms-who span { color: #a9b8f0; }


.ts-reference .tms-crm.tms-neon .tms-ph h1 { color: #fff; text-shadow: 0 0 24px rgba(34, 227, 255, .35); }
.ts-reference .tms-crm.tms-neon .tms-ph__eyebrow { color: #7ee9ff; }
.ts-reference .tms-crm.tms-neon .tms-search input { background: rgba(10, 16, 44, .78); color: #eaf0ff; border: 1px solid rgba(34, 227, 255, .38); box-shadow: 0 0 18px rgba(34, 227, 255, .14); }
.ts-reference .tms-crm.tms-neon .tms-search input::placeholder { color: #9db0f0; }
.ts-reference .tms-crm.tms-neon .tms-search svg { color: #7ee9ff; }
.ts-reference .tms-crm.tms-neon .tms-live { background: rgba(124, 255, 107, .14); color: #b6ff9f; border: 1px solid rgba(124, 255, 107, .5); }
.ts-reference .tms-crm.tms-neon .tms-themebtn { border-color: rgba(34, 227, 255, .6); color: #aef3ff; }
.ts-reference .tms-crm.tms-neon .tms-listbar__count,.ts-reference .tms-crm.tms-neon .tms-listbar__count b { color: #f2f6ff; }


.ts-reference .tms-crm.tms-neon .tms-hero {
  --ink: #f4f7ff; --ink-2: #d7e0ff; --muted: #a9b8f0; --line: rgba(255, 255, 255, .16); --line-2: rgba(255, 255, 255, .09);
  background: radial-gradient(520px 260px at 0% 0%, rgba(34, 227, 255, .20), transparent 70%), radial-gradient(520px 300px at 100% 100%, rgba(166, 107, 255, .24), transparent 70%), linear-gradient(135deg, rgba(10, 16, 44, .97), rgba(16, 24, 66, .97));
  border: 1px solid rgba(34, 227, 255, .5); color: #f4f7ff;
  box-shadow: 0 0 0 1px rgba(166, 107, 255, .2), 0 0 38px rgba(34, 227, 255, .20), 0 22px 60px rgba(0, 0, 0, .55);
}
.ts-reference .tms-crm.tms-neon .tms-hero__top h1 { color: #fff; text-shadow: 0 0 22px rgba(34, 227, 255, .4); }
.ts-reference .tms-crm.tms-neon .tms-hero__top p { color: #b9c6f6; }
.ts-reference .tms-crm.tms-neon .tms-hero .tms-ph__eyebrow { color: #7ee9ff; }
.ts-reference .tms-crm.tms-neon .tms-tile { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); }
.ts-reference .tms-crm.tms-neon .tms-tile__icon { background: rgba(255, 255, 255, .09); box-shadow: none; }
.ts-reference .tms-crm.tms-neon .tms-tile__lbl { color: #eef2ff; }
.ts-reference .tms-crm.tms-neon .tms-tile small { color: #b4c2f3; }
.ts-reference .tms-crm.tms-neon .tms-tile:hover { transform: translateY(-3px); box-shadow: 0 0 34px rgba(34, 227, 255, .30); }
.ts-reference .tms-crm.tms-neon .tms-tile--blue { background: linear-gradient(135deg, rgba(34, 227, 255, .18), rgba(34, 227, 255, .04)); border-color: rgba(34, 227, 255, .6); box-shadow: 0 0 24px rgba(34, 227, 255, .16); }
.ts-reference .tms-crm.tms-neon .tms-tile--blue .tms-tile__icon { color: #22e3ff; } .ts-reference .tms-crm.tms-neon .tms-tile--blue .tms-tile__num { color: #86f1ff; text-shadow: 0 0 18px rgba(34, 227, 255, .5); }
.ts-reference .tms-crm.tms-neon .tms-tile--violet { background: linear-gradient(135deg, rgba(166, 107, 255, .22), rgba(166, 107, 255, .05)); border-color: rgba(166, 107, 255, .65); box-shadow: 0 0 24px rgba(166, 107, 255, .18); }
.ts-reference .tms-crm.tms-neon .tms-tile--violet .tms-tile__icon { color: #c9a6ff; } .ts-reference .tms-crm.tms-neon .tms-tile--violet .tms-tile__num { color: #d9c2ff; text-shadow: 0 0 18px rgba(166, 107, 255, .55); }
.ts-reference .tms-crm.tms-neon .tms-tile--orange { background: linear-gradient(135deg, rgba(255, 176, 32, .18), rgba(255, 176, 32, .04)); border-color: rgba(255, 176, 32, .6); box-shadow: 0 0 24px rgba(255, 176, 32, .14); }
.ts-reference .tms-crm.tms-neon .tms-tile--orange .tms-tile__icon { color: #ffb020; } .ts-reference .tms-crm.tms-neon .tms-tile--orange .tms-tile__num { color: #ffd27a; text-shadow: 0 0 18px rgba(255, 176, 32, .45); }
.ts-reference .tms-crm.tms-neon .tms-tile--green { background: linear-gradient(135deg, rgba(124, 255, 107, .17), rgba(124, 255, 107, .04)); border-color: rgba(124, 255, 107, .55); box-shadow: 0 0 24px rgba(124, 255, 107, .13); }
.ts-reference .tms-crm.tms-neon .tms-tile--green .tms-tile__icon { color: #7cff6b; } .ts-reference .tms-crm.tms-neon .tms-tile--green .tms-tile__num { color: #b9ffa8; text-shadow: 0 0 18px rgba(124, 255, 107, .45); }


.ts-reference .tms-crm.tms-neon .tms-card:not(.tms-hero) { position: relative; border-color: rgba(120, 200, 255, .55); box-shadow: 0 0 0 1px rgba(166, 107, 255, .14), 0 0 26px rgba(34, 227, 255, .10), 0 18px 44px rgba(0, 0, 0, .45); }
.ts-reference .tms-crm.tms-neon .tms-card:not(.tms-hero)::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #22e3ff, #a66bff, #ff3dcb); pointer-events: none; }
.ts-reference .tms-crm.tms-neon .tms-table tbody tr:hover { background: #f3f0ff; }


.ts-reference .tms-crm.tms-neon .tms-banner--red { background: rgba(255, 77, 109, .16); color: #ffd9df; border: 1px solid rgba(255, 77, 109, .65); box-shadow: 0 0 22px rgba(255, 77, 109, .22); }
.ts-reference .tms-crm.tms-neon .tms-banner--amber { background: rgba(255, 176, 32, .14); color: #ffe6b0; border: 1px solid rgba(255, 176, 32, .65); box-shadow: 0 0 22px rgba(255, 176, 32, .18); }
.ts-reference .tms-crm.tms-neon .tms-banner a,.ts-reference .tms-crm.tms-neon .tms-banner .tms-link { color: #fff; text-decoration: underline; }


.ts-reference .tms-crm.tms-neon .tms-btn--primary { background: linear-gradient(135deg, #27e0ff, #9b7bff); color: #050d26; border-color: transparent; box-shadow: 0 0 18px rgba(39, 224, 255, .38); }
.ts-reference .tms-crm.tms-neon .tms-btn--primary:hover { background: linear-gradient(135deg, #5ae9ff, #b39cff); box-shadow: 0 0 26px rgba(39, 224, 255, .6); }
.ts-reference .tms-crm.tms-neon .tms-seg [aria-current="page"],.ts-reference .tms-crm.tms-neon .tms-seg [aria-selected="true"] { background: linear-gradient(135deg, #27e0ff, #9b7bff); color: #050d26; box-shadow: 0 0 16px rgba(39, 224, 255, .45); }
.ts-reference .tms-crm.tms-neon .tms-pager__num[aria-current="page"] { background: linear-gradient(135deg, #27e0ff, #9b7bff); border-color: #27e0ff; color: #050d26; box-shadow: 0 0 14px rgba(39, 224, 255, .5); }
.ts-reference .tms-crm.tms-neon .tms-pager__num:hover { border-color: #9b7bff; background: #f3f0ff; }
.ts-reference .tms-crm.tms-neon .tms-input:focus,.ts-reference .tms-crm.tms-neon .tms-select:focus,.ts-reference .tms-crm.tms-neon .tms-textarea:focus { border-color: #5b3df5; box-shadow: 0 0 0 3px rgba(91, 61, 245, .22); }
.ts-reference .tms-crm.tms-neon .tms-leadalert { border-left-color: #22e3ff; box-shadow: 0 0 0 1px rgba(34, 227, 255, .55), 0 0 28px rgba(34, 227, 255, .35), 0 14px 40px rgba(0, 0, 0, .45); }
.ts-reference .tms-crm.tms-neon .tms-leadalert--reply { border-left-color: #ff3dcb; box-shadow: 0 0 0 1px rgba(255, 61, 203, .55), 0 0 28px rgba(255, 61, 203, .32), 0 14px 40px rgba(0, 0, 0, .45); }


.ts-reference .tms-crm.tms-neon :focus-visible { outline: 3px solid #5b3df5; outline-offset: 2px; }
.ts-reference .tms-crm.tms-neon .tms-side :focus-visible,.ts-reference .tms-crm.tms-neon .tms-top :focus-visible,.ts-reference .tms-crm.tms-neon .tms-ph :focus-visible,.ts-reference .tms-crm.tms-neon .tms-listbar :focus-visible,.ts-reference .tms-crm.tms-neon .tms-hero :focus-visible { outline-color: #7ee9ff; }
@media (prefers-reduced-motion: reduce) { .ts-reference .tms-crm.tms-neon *,.ts-reference .tms-crm.tms-neon *::before { transition: none !important; animation: none !important; } }


.ts-reference .tms-emailcard .tms-field { display: grid; gap: 6px; }
.ts-reference .tms-emailcard .tms-textarea { min-height: 150px; resize: vertical; }
.ts-reference .tms-email__sig { margin: 0; font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, #f8fafc); border: 1px dashed var(--line); }
.ts-reference .tms-email__h { margin: 18px 0 8px; font-size: 14px; }
.ts-reference .tms-emails { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ts-reference .tms-email { border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; background: #fff; }
.ts-reference .tms-email--out { border-left-color: #22b8cf; }
.ts-reference .tms-email--in { border-left-color: #a66bff; background: #fbf9ff; }
.ts-reference .tms-email--failed { border-left-color: #ef4444; background: #fff5f6; }
.ts-reference .tms-email summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.ts-reference .tms-email summary::-webkit-details-marker { display: none; }
.ts-reference .tms-email__who { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ts-reference .tms-email__subj { flex: 1 1 200px; min-width: 0; }
.ts-reference .tms-email__text { margin: 0; padding: 0 14px 14px; white-space: pre-wrap; word-wrap: break-word; font: inherit; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.ts-reference .tms-email__err { margin: 0 14px 8px; color: #b91c1c; font-size: 13px; font-weight: 600; }


.ts-reference .tms-crm.tms-neon .tms-hero .tms-donut__num { fill: #f4f7ff; filter: drop-shadow(0 0 10px rgba(34, 227, 255, .35)); }
.ts-reference .tms-crm.tms-neon .tms-hero .tms-donut__lbl { fill: #a9b8f5; }

.ts-reference .tms-crm.tms-neon .tms-me:hover,.ts-reference .tms-crm.tms-neon .tms-me[aria-current="page"] { background: rgba(34, 227, 255, .12); box-shadow: inset 0 0 0 1px rgba(34, 227, 255, .35); }


.ts-reference .tms-gads-range { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; padding: 14px 20px; }
.ts-reference .tms-gads-range label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.ts-reference .tms-gads-range input[type="date"] { height: 38px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; background: #fff; color: var(--ink); }
.ts-reference .tms-table .tms-total td { border-top: 2px solid var(--line); background: rgba(47, 125, 246, .06); }
.ts-reference .tms-pad { padding: 4px 20px 16px; }


.ts-reference .tms-code { width: 100%; box-sizing: border-box; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #0b1226; color: #d7e3ff; border: 1px solid #22305a; border-radius: 12px; padding: 14px; resize: vertical; margin: 12px 0 4px; }
.ts-reference .tms-badge--grey { background: #eceff6; color: #475068; }


.ts-reference .tms-howto { margin: 0; padding-left: 24px; display: grid; gap: 10px; line-height: 1.55; list-style: decimal; }
.ts-reference .tms-howto li { display: list-item; padding-left: 4px; }
.ts-reference .tms-howto li::marker { color: var(--primary, #2f7df6); font-weight: 700; }
.ts-reference .tms-crm textarea.tms-code,.ts-reference .tms-crm.tms-neon textarea.tms-code { color: #d7e3ff; -webkit-text-fill-color: #d7e3ff; background: #0b1226; caret-color: #22e3ff; }
.ts-reference .tms-crm .tms-card .tms-banner--amber,.ts-reference .tms-crm.tms-neon .tms-card .tms-banner--amber { background: #fff4d6; color: #6b4300; margin-bottom: 4px; }

.ts-reference .tms-howto code { background: rgba(47, 125, 246, .1); border-radius: 6px; padding: 1px 6px; font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-word; }


.ts-reference .tms-stages { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; background: #f3f1fb; border-radius: 16px; padding: 5px; margin: 0 0 14px; }
.ts-reference .tms-stages a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 12px; font-weight: 600; font-size: 13.5px; color: #46506b; text-decoration: none; white-space: nowrap; }
.ts-reference .tms-stages a:hover { background: rgba(255, 255, 255, .75); }
.ts-reference .tms-stages a b { font-variant-numeric: tabular-nums; font-size: 12px; min-width: 22px; text-align: center; padding: 2px 8px; border-radius: 999px; background: rgba(60, 70, 110, .11); color: inherit; font-weight: 700; }
.ts-reference .tms-stages [aria-current="page"] { background: #fff; color: #1b2340; box-shadow: 0 4px 12px rgba(122, 92, 170, .16); }
.ts-reference .tms-stages [aria-current="page"] b { background: #2f7df6; color: #fff; }
.ts-reference .tms-stages a:focus-visible,.ts-reference .tms-chansw a:focus-visible { outline: 3px solid #2f7df6; outline-offset: 2px; }
.ts-reference .tms-stages .tms-stages__fu { margin-left: auto; color: #8a4b00; }
.ts-reference .tms-stages .tms-stages__fu b { background: rgba(245, 158, 11, .24); color: #8a4b00; }
.ts-reference .tms-stages b.tms-count--red { background: #dc2626; color: #fff; }
.ts-reference .tms-stages b.tms-count--amber { background: #f59e0b; color: #fff; }
.ts-reference .tms-stages b.tms-count--blue { background: #2f7df6; color: #fff; }
.ts-reference .tms-chansw { margin: 0 0 14px; }
.ts-reference .tms-chansw a { min-height: 36px; padding: 0 18px; text-decoration: none; }

.ts-reference .tms-table--leads { table-layout: fixed; width: 100%; }
.ts-reference .tms-table--leads td,.ts-reference .tms-table--leads th { vertical-align: middle; }
.ts-reference .tms-table--leads td { white-space: normal; overflow-wrap: anywhere; }
.ts-reference .tms-table--leads .tms-flex { flex-wrap: nowrap; white-space: normal; min-width: 0; }
.ts-reference .tms-table--leads .tms-flex.tms-flex--wrap { flex-wrap: wrap; gap: 6px; }
.ts-reference .tms-cell { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ts-reference .tms-cell__name { font-weight: 650; color: #1b2340; }
.ts-reference .tms-cell__sub { font-size: 12.5px; font-weight: 400; display: block; }
.ts-reference .tms-table--leads .tms-actions { white-space: nowrap; }
.ts-reference .tms-table--leads .tms-actions .tms-btn + .tms-btn { margin-left: 6px; }
.ts-reference .tms-table--leads [data-del] { background: transparent; color: #b42318; border: 1px solid #f1c7c3; box-shadow: none; }
.ts-reference .tms-table--leads [data-del]:hover { background: #fdecea; }

.ts-reference .tms-today__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.ts-reference .tms-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1180px) { .ts-reference .tms-today__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ts-reference .tms-grid--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .ts-reference .tms-today__tiles { grid-template-columns: minmax(0, 1fr); } .ts-reference .tms-stages .tms-stages__fu { margin-left: 0; } .ts-reference .tms-stages { flex-wrap: nowrap; overflow-x: auto; } }

.ts-reference .tms-list--today { margin: 0; padding: 0; list-style: none; }
.ts-reference .tms-list--today li + li { border-top: 1px solid #eceff6; }
.ts-reference .tms-trow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; text-decoration: none; color: inherit; }
.ts-reference .tms-trow:hover { background: #f6f8ff; }
.ts-reference .tms-trow__main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ts-reference .tms-trow__main b { font-weight: 650; color: #1b2340; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-reference .tms-trow__main small,.ts-reference .tms-trow__side small { font-size: 12.5px; color: #6b7390; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-reference .tms-trow__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ts-reference .tms-unclaimed { color: #b45309; font-weight: 600; }

.ts-reference .tms-gads-range__dates { font-weight: 650; color: #1b2340; font-size: 14px; }
.ts-reference .tms-gads-range__form { display: flex; gap: 12px 14px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.ts-reference .tms-gads-range__form label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.ts-reference .tms-gads-range .tms-seg--period a { text-decoration: none; }
