:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --border: #e8eaf5;
  --border-soft: #f0f2fb;
  --text: #1d2240;
  --muted: #6b7193;
  --violet: #4f2fb8;
  --violet-900: #21104d;
  --green: #1f9f64;
  --amber: #f49d37;
  --blue: #3d6bf2;
  --pink: #e44b8d;
  --danger: #de3d46;
  --radius: 0px;
  --shadow: 0 8px 18px rgba(43, 54, 110, 0.05);
  --shadow-premium: 0 18px 36px rgba(37, 51, 112, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.vcpm-body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(80% 45% at 10% -2%, #edf0ff 0%, transparent 100%),
    radial-gradient(75% 40% at 90% 0%, #f4f6ff 0%, transparent 100%),
    linear-gradient(180deg, #f6f8fd 0%, #f8f9fc 100%);
  color: var(--text);
}

.vcpm-auth-body {
  min-height: 100vh;
}

.vcpm-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
}

.vcpm-auth-brand {
  position: relative;
  color: #eef1ff;
  padding: 48px 46px;
  display: grid;
  overflow: hidden;
  isolation: isolate;
}

.vcpm-auth-brand-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(30, 15, 74, 0.94) 0%, rgba(24, 13, 62, 0.95) 45%, rgba(18, 10, 48, 0.97) 100%),
    url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1400&q=70');
  background-size: cover;
  background-position: center;
}

.vcpm-auth-brand-inner {
  display: grid;
  align-content: space-between;
  gap: 22px;
  max-width: 560px;
}

.vcpm-auth-brand-head {
  display: grid;
  gap: 8px;
}

.vcpm-auth-brand-logo {
  width: min(168px, 100%);
  height: auto;
}

.vcpm-auth-fallback-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vcpm-auth-brand-sub {
  font-size: 12px;
  color: #bac2e9;
}

.vcpm-auth-overline {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ea9de;
  font-weight: 700;
}

.vcpm-auth-overline.main {
  color: #7480ab;
  margin-bottom: 4px;
}

.vcpm-auth-brand-copy {
  display: grid;
  gap: 10px;
}

.vcpm-auth-brand-copy h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.vcpm-auth-brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #d2d9fb;
  max-width: 460px;
}

.vcpm-auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(171, 186, 240, 0.2);
}

.vcpm-auth-feature {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #e4e8fb;
  line-height: 1.3;
}

.vcpm-auth-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.vcpm-auth-feature-icon svg {
  width: 20px;
  height: 20px;
}

.vcpm-auth-feature-icon.tone-violet {
  background: linear-gradient(135deg, #6f49f1 0%, #4d2bb7 100%);
}

.vcpm-auth-feature-icon.tone-teal {
  background: linear-gradient(135deg, #1fb891 0%, #0f8f6f 100%);
}

.vcpm-auth-feature-icon.tone-amber {
  background: linear-gradient(135deg, #ffbf4e 0%, #f39a2e 100%);
}

.vcpm-auth-feature-icon.tone-blue {
  background: linear-gradient(135deg, #6b8cff 0%, #3d6bf2 100%);
}

.vcpm-auth-brand-notes {
  display: grid;
  gap: 10px;
}

.vcpm-auth-brand-notes article {
  border: 1px solid rgba(171, 186, 240, 0.22);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vcpm-auth-note-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #cfd7fb;
}

.vcpm-auth-note-icon svg {
  width: 17px;
  height: 17px;
}

.vcpm-auth-note-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vcpm-auth-brand-notes strong {
  font-size: 12.5px;
  color: #f4f6ff;
  letter-spacing: 0.01em;
}

.vcpm-auth-brand-notes small {
  font-size: 11.5px;
  line-height: 1.4;
  color: #cfd7fb;
}

.vcpm-auth-quote {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(171, 186, 240, 0.2);
}

.vcpm-auth-quote p {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #f2f3ff;
}

.vcpm-auth-quote cite {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: #a7b0e0;
}

.vcpm-auth-main {
  display: grid;
  align-content: center;
  justify-items: stretch;
  padding: 40px 52px;
  background: #ffffff;
}

.vcpm-auth-main-inner {
  width: min(440px, 100%);
  justify-self: center;
  display: grid;
  gap: 10px;
}

.vcpm-auth-lang {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e3e7f4;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #3a4472;
  width: max-content;
}

.vcpm-auth-lang-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e4423f 50%, #ffffff 50%);
  box-shadow: 0 0 0 1px #e7e9f5;
  flex: 0 0 auto;
}

.vcpm-auth-lang svg {
  width: 13px;
  height: 13px;
  color: #8791b8;
}

.vcpm-auth-title {
  margin-top: 2px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: #161c3d;
}

.vcpm-auth-caption {
  color: #6b7399;
  font-size: 13.5px;
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 10px;
}

.vcpm-auth-alert {
  border: 1px solid #cce8d8;
  background: #eaf7ef;
  color: #177d4f;
  border-radius: 8px;
  font-size: 12px;
  padding: 10px 11px;
  margin-bottom: 4px;
}

.vcpm-auth-form {
  display: grid;
  gap: 14px;
}

.vcpm-auth-login-logo {
  width: min(142px, 100%);
  height: auto;
}

.vcpm-auth-field {
  display: grid;
  gap: 6px;
}

.vcpm-auth-field>span:first-child {
  font-size: 12.5px;
  font-weight: 700;
  color: #2b3363;
}

.vcpm-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.vcpm-auth-input-icon {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #8b93b9;
  pointer-events: none;
}

.vcpm-auth-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dde2f4;
  border-radius: 10px;
  padding: 8px 14px 8px 40px;
  font-size: 14px;
  color: #1f2b54;
  font-family: inherit;
  background: #ffffff;
}

#password {
  padding-right: 42px;
}

.vcpm-auth-field input::placeholder {
  color: #a6acc9;
}

.vcpm-auth-field input:focus {
  outline: none;
  border-color: #7a97f6;
  box-shadow: 0 0 0 3px rgba(93, 127, 235, 0.15);
}

.vcpm-auth-toggle-pass {
  position: absolute;
  right: 10px;
  border: 0;
  background: transparent;
  padding: 6px;
  display: inline-flex;
  color: #8b93b9;
  cursor: pointer;
}

.vcpm-auth-toggle-pass svg {
  width: 17px;
  height: 17px;
}

.vcpm-auth-toggle-pass:hover {
  color: #4a567f;
}

.vcpm-auth-field small {
  font-size: 12px;
  color: #c33644;
}

.vcpm-auth-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.vcpm-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4a5480;
}

.vcpm-auth-remember input[type='checkbox'] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #3d5dcf;
}

.vcpm-auth-link {
  color: #3f62da;
  font-size: 13px;
  font-weight: 700;
}

.vcpm-auth-link:hover {
  color: #2f4db8;
}

.vcpm-auth-submit {
  min-height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #5676ea 0%, #3d5dcf 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(61, 93, 207, 0.25);
}

.vcpm-auth-submit svg {
  width: 17px;
  height: 17px;
}

.vcpm-auth-submit:hover {
  background: linear-gradient(135deg, #4867db 0%, #324fba 100%);
}

.vcpm-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9aa1c4;
  font-size: 12px;
  font-weight: 600;
}

.vcpm-auth-divider::before,
.vcpm-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e9f6;
}

.vcpm-auth-sso {
  min-height: 46px;
  border: 1px solid #dde2f4;
  border-radius: 10px;
  background: #ffffff;
  color: #33406f;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.vcpm-auth-sso:hover {
  background: #f7f9ff;
  border-color: #ccd5f0;
}

.vcpm-auth-restricted {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #e3e7f4;
  background: #f6f8fd;
  border-radius: 10px;
  padding: 11px 12px;
}

.vcpm-auth-restricted-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7ecfb;
  color: #3d5dcf;
}

.vcpm-auth-restricted-icon svg {
  width: 15px;
  height: 15px;
}

.vcpm-auth-restricted strong {
  display: block;
  font-size: 12.5px;
  color: #232c58;
}

.vcpm-auth-restricted small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #6b7399;
}

.vcpm-auth-help {
  display: none;
}

.vcpm-auth-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef0fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #8991b6;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .vcpm-auth-brand {
    padding: 34px 30px;
  }

  .vcpm-auth-brand-copy h1 {
    font-size: clamp(22px, 2.6vw, 30px);
  }

  .vcpm-auth-brand-desc {
    font-size: 13px;
    line-height: 1.55;
  }

  .vcpm-auth-feature-grid {
    gap: 8px;
  }

  .vcpm-auth-main {
    padding: 32px 34px;
  }
}

@media (max-width: 767px) {
  .vcpm-auth-shell {
    grid-template-columns: 1fr;
  }

  .vcpm-auth-brand {
    padding: 28px 24px;
  }

  .vcpm-auth-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vcpm-auth-brand-copy h1 {
    font-size: clamp(24px, 5vw, 32px);
  }

  .vcpm-auth-main {
    padding: 24px;
  }
}

@media (max-width: 620px) {
  .vcpm-auth-main {
    padding: 16px;
  }

  .vcpm-auth-title {
    font-size: 24px;
  }

  .vcpm-auth-form-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .vcpm-auth-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

h1,
h2,
h3,
strong {
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.vcpm-shell {
  display: flex;
  min-height: 100vh;
}

.vcpm-sidebar {
  width: 248px;
  background: linear-gradient(180deg, #0e2242 0%, #0b1c37 55%, #0a1730 100%);
  border-right: 1px solid rgba(148, 174, 228, 0.16);
  color: #edf3ff;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  height: 100vh;
  overflow: hidden;
}

.vcpm-logo-wrap {
  display: grid;
  gap: 8px;
  align-items: start;
  padding: 6px 10px 12px;
  border-bottom: 1px solid rgba(153, 179, 230, 0.12);
  margin-bottom: 10px;
}

.vcpm-logo {
  width: 150px;
  max-width: 100%;
  display: block;
}

.vcpm-logo-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.vcpm-logo-sub {
  color: #a7bbdf;
  font-size: 11px;
  letter-spacing: 0.1px;
}

.vcpm-nav {
  display: grid;
  gap: 4px;
  align-content: start;
  grid-auto-rows: max-content;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.vcpm-nav::-webkit-scrollbar {
  width: 7px;
}

.vcpm-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.vcpm-nav::-webkit-scrollbar-thumb {
  background: rgba(173, 185, 238, 0.45);
  border-radius: 8px;
}

.vcpm-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(189, 198, 245, 0.65);
}

.vcpm-nav-section {
  margin: 10px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea6d1;
}

.vcpm-nav-subsection {
  margin: 8px 12px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8f99ca;
}

.vcpm-nav-dropdown {
  border: 1px solid rgba(126, 151, 208, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
}

.vcpm-nav-dropdown-trigger {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbe6fb;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 11px;
  cursor: pointer;
  border-radius: 9px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vcpm-nav-dropdown-trigger::-webkit-details-marker {
  display: none;
}

.vcpm-nav-dropdown-trigger:hover {
  background: rgba(143, 172, 229, 0.14);
}

.vcpm-nav-dropdown.is-active {
  border-color: rgba(126, 151, 255, 0.38);
  background: rgba(56, 95, 174, 0.22);
}

.vcpm-nav-dropdown.is-active .vcpm-nav-dropdown-trigger {
  color: #ffffff;
}

.vcpm-nav-dropdown-body {
  display: grid;
  gap: 3px;
  padding: 2px 6px 7px;
}

.vcpm-nav-tree {
  position: relative;
}

.vcpm-nav-tree::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 2px;
  bottom: 8px;
  width: 1px;
  background: rgba(157, 181, 227, 0.38);
}

.vcpm-nav-caret {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #9eb4df;
  transition: transform 0.16s ease;
}

.vcpm-nav-caret svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.1;
}

.vcpm-nav-dropdown[open] .vcpm-nav-caret {
  transform: rotate(180deg);
}

.vcpm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7e3fb;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 9px;
  transition: background-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.vcpm-nav-item .nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.vcpm-nav-item .nav-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.vcpm-nav-text {
  min-width: 0;
  flex: 1 1 auto;
}

.vcpm-nav-tail {
  margin-left: auto;
  color: #8da3d2;
  display: inline-flex;
  align-items: center;
}

.vcpm-nav-tail svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.vcpm-nav-button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font-family: inherit;
}

.vcpm-nav-item:hover {
  background: rgba(135, 166, 225, 0.15);
  transform: translateX(2px);
}

.vcpm-nav-item.active {
  background: linear-gradient(90deg, #2f65d8 0%, #2552b8 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(199, 220, 255, 0.28);
}

.vcpm-nav-item.active .vcpm-nav-tail {
  color: rgba(233, 242, 255, 0.88);
}

.vcpm-nav-item.is-subitem {
  margin-left: 14px;
  min-height: 30px;
  padding: 6px 10px 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #c9d8f5;
  border-left: 0;
  border-radius: 8px;
  position: relative;
}

.vcpm-nav-item.is-subitem::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(165, 187, 230, 0.5);
}

.vcpm-nav-item.is-subitem:hover {
  background: rgba(122, 156, 224, 0.18);
  transform: translateX(1px);
}

.vcpm-nav-item.is-subitem.active {
  background: rgba(58, 104, 205, 0.42);
  box-shadow: inset 0 0 0 1px rgba(187, 210, 255, 0.3);
}

.vcpm-nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #eef4ff;
  background: rgba(139, 164, 208, 0.42);
  border: 1px solid rgba(186, 206, 240, 0.25);
  flex-shrink: 0;
}

.vcpm-nav-item.is-subitem.active .vcpm-nav-badge {
  background: rgba(217, 231, 255, 0.28);
  border-color: rgba(220, 233, 255, 0.36);
  color: #ffffff;
}

.vcpm-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 7px;
  border-top: 1px solid rgba(145, 171, 221, 0.16);
  padding: 10px 4px 0;
}

.vcpm-sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  padding: 8px 9px;
  border: 1px solid rgba(153, 179, 230, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.vcpm-sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(160deg, #4f7be2 0%, #2e58c4 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.vcpm-sidebar-user-text {
  min-width: 0;
}

.vcpm-sidebar-user-text p {
  font-size: 12.5px;
  font-weight: 700;
  color: #edf4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcpm-sidebar-user-text small {
  display: block;
  margin-top: 1px;
  color: #9db4df;
  font-size: 11px;
}

.vcpm-sidebar-presence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: #9ed3b8;
  font-size: 10.5px;
  font-weight: 600;
}

.vcpm-sidebar-presence i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fcd74;
  box-shadow: 0 0 0 3px rgba(47, 205, 116, 0.16);
}

.vcpm-sidebar-user-caret {
  margin-left: auto;
  color: #89a2d1;
}

.vcpm-sidebar-user-caret svg {
  width: 14px;
  height: 14px;
}

.vcpm-main-area {
  margin-left: 248px;
  width: calc(100% - 248px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
  min-width: 0;
  overflow-x: hidden;
}

.vcpm-topbar {
  min-height: 78px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 26px;
  position: sticky;
  top: 0;
  z-index: 12;
}

.vcpm-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vcpm-topbar-left h1 {
  font-size: 30px;
  line-height: 1.1;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.vcpm-topbar-left p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.vcpm-menu-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #3d446e;
  cursor: pointer;
  display: none;
}

.vcpm-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vcpm-topbar-logo {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
}

.vcpm-chip {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: #374065;
  font-size: 13px;
  font-weight: 600;
}

.crm-input-select,
.crm-input-number {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}

.crm-input-number {
  max-width: 92px;
}

.pm-flow-board {
  padding: 14px;
}

.pm-flow-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.pm-flow-step {
  border: 1px solid #e6ebfb;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px 10px;
  min-height: 156px;
}

.pm-flow-step h3 {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.pm-flow-step p {
  margin-top: 6px;
  font-size: 12px;
  color: #5f678b;
  line-height: 1.4;
}

.pm-flow-number {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pm-flow-step.ready {
  border-color: #8dd2aa;
  box-shadow: 0 0 0 1px rgba(44, 166, 96, 0.14) inset;
}

.pm-flow-step.ready .pm-flow-number {
  background: #2ca660;
  color: #ffffff;
}

.pm-flow-step.recommended {
  border-color: #95b4ff;
  box-shadow: 0 0 0 1px rgba(74, 113, 227, 0.14) inset;
}

.pm-flow-step.recommended .pm-flow-number {
  background: #4a71e3;
  color: #ffffff;
}

.pm-flow-step.pending {
  border-color: #e4e8f7;
  background: #fbfcff;
}

.pm-flow-step.pending .pm-flow-number {
  background: #eef1fb;
  color: #46507a;
}

.pm-stage-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.pm-stage-card {
  border: 1px solid #e6ebfb;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}

.pm-stage-card h3 {
  font-size: 13px;
  line-height: 1.35;
}

.pm-stage-card ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.pm-stage-card li {
  margin-bottom: 6px;
  color: #5f678b;
  font-size: 12px;
  line-height: 1.35;
}

.pm-stage-output {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #2f3b68;
}

.pm-stage-card.stage-violet {
  border-top: 3px solid #5530cc;
}

.pm-stage-card.stage-blue {
  border-top: 3px solid #2450d8;
}

.pm-stage-card.stage-amber {
  border-top: 3px solid #ef8a17;
}

.pm-stage-card.stage-green {
  border-top: 3px solid #23935b;
}

.pm-stage-card.stage-indigo {
  border-top: 3px solid #4f46e5;
}

.pm-stage-card.stage-sky {
  border-top: 3px solid #0284c7;
}

.pm-stage-card.stage-rose {
  border-top: 3px solid #e11d48;
}

.pm-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pm-checklist-grid h3,
.pm-meta-card h3 {
  font-size: 14px;
}

.pm-checklist {
  margin: 8px 0 0;
  padding-left: 16px;
}

.pm-checklist li {
  margin-bottom: 6px;
  color: #5f678b;
  font-size: 13px;
  line-height: 1.4;
}

.pm-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pm-meta-card {
  border: 1px solid #e6ebfb;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

.pm-focus-hero-meta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pm-focus-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
}

.pm-focus-assignment-card {
  grid-column: 1 / -1;
}

.pm-focus-series-table th:first-child,
.pm-focus-series-table td:first-child {
  width: 42px;
  text-align: center;
}

.pm-focus-policy-list {
  margin: 0;
  padding-left: 17px;
  display: grid;
  gap: 8px;
}

.pm-focus-policy-list li {
  color: #5d678d;
  font-size: 13px;
  line-height: 1.45;
}

.pm-focus-current-series {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf1fb;
  display: grid;
  gap: 8px;
}

.pm-focus-series-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-focus-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e1e6f5;
  background: #f8faff;
  color: #4a567f;
  font-size: 12px;
  font-weight: 700;
}

.pm-focus-chip.active {
  border-color: #b9ceff;
  background: #edf3ff;
  color: #2f4c9b;
}

.pm-focus-toolbar {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.8fr)) minmax(250px, auto);
  gap: 10px;
}

.pm-focus-toolbar label {
  display: grid;
  gap: 4px;
}

.pm-focus-toolbar label span {
  font-size: 11px;
  font-weight: 700;
  color: #5e688e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pm-focus-toolbar-search .crm-input-select {
  min-height: 36px;
}

.pm-focus-cta-group {
  display: grid;
  gap: 4px;
}

.pm-focus-cta-group>span {
  font-size: 11px;
  font-weight: 700;
  color: #5e688e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pm-focus-cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pm-focus-cta-clear {
  border-color: #dce2f1;
  background: #ffffff;
  color: #3a4775;
}

.pm-focus-table {
  min-width: 1260px;
}

.pm-focus-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fbfcff;
}

.pm-focus-row.is-focus {
  background: #f7fbff;
}

.pm-focus-row.is-non-focus {
  background: #ffffff;
}

.pm-focus-topic strong {
  display: block;
  color: #26335f;
  line-height: 1.35;
}

.pm-focus-topic small {
  display: block;
  margin-top: 3px;
  color: #7a85ad;
  font-size: 11px;
}

.pm-focus-status-cell .crm-input-select {
  min-width: 112px;
}

.pm-focus-checklist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #33416d;
  font-size: 12px;
  font-weight: 700;
}

.pm-focus-checklist input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.pm-focus-target-cell .crm-input-number,
.pm-focus-progress-cell .crm-input-number {
  max-width: 94px;
}

.pm-focus-progress-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pm-focus-achievement-cell {
  min-width: 190px;
}

.pm-focus-meter {
  width: 170px;
  height: 8px;
  border-radius: 999px;
  background: #eceffd;
  overflow: hidden;
}

.pm-focus-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6d4cf0 0%, #3f71ea 100%);
  transition: width 0.15s ease;
}

.pm-focus-achievement-cell small {
  display: block;
  margin-top: 5px;
  color: #5f6a90;
  font-size: 11px;
  font-weight: 700;
}

.pm-focus-submit-wrap {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #edf1fb;
}

.pm-focus-submit-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.pm-workflow-filter {
  display: inline-flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.pm-workflow-filter label {
  display: grid;
  gap: 4px;
  min-width: 130px;
}

.pm-workflow-filter label span {
  font-size: 11px;
  font-weight: 700;
  color: #5e688e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pm-workflow-table {
  min-width: 1850px;
}

.pm-workflow-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pm-workflow-kpi-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-workflow-kpi-grid label {
  display: grid;
  gap: 3px;
}

.pm-workflow-kpi-grid label span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #6f799e;
}

.pm-workflow-textarea {
  width: 100%;
  min-width: 220px;
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  resize: vertical;
}

.pm-workflow-date {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
}

.pm-workflow-submit-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vcpm-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
}

.vcpm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(155deg, #6947d6 0%, #431f9f 100%);
}

.vcpm-profile p {
  font-size: 13px;
  font-weight: 700;
}

.vcpm-profile small {
  color: var(--muted);
  font-size: 12px;
}

.vcpm-content {
  padding: 20px 22px;
  display: grid;
  gap: 16px;
  background: #ffffff;
  min-width: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.vcpm-hero {
  background: linear-gradient(120deg, #ffffff 0%, #f9faff 90%);
  border: 1px solid #e7ebf5;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.vcpm-hero h2 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.vcpm-hero p {
  margin-top: 4px;
  color: #667198;
  font-size: 13px;
}

.vcpm-card-grid {
  display: grid;
  gap: 13px;
  align-items: stretch;
}

.vcpm-card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vcpm-card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-detail-hero {
  flex-wrap: wrap;
}

.topic-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-detail-meta .vcpm-chip {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcpm-card {
  background: var(--surface);
  border: 1px solid #e7ebf5;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 15px;
}

.vcpm-card.stat {
  padding: 12px 12px;
  min-height: 104px;
  box-shadow: none;
  border: 1px solid #e7ebf5;
}

.vcpm-card.stat .label {
  color: #737b9e;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.vcpm-card.stat .value {
  margin-top: 7px;
  font-size: clamp(21px, 1.65vw, 29px);
  font-weight: 800;
  line-height: 1.02;
  color: #1b2344;
  white-space: nowrap;
}

.vcpm-card.stat .value.money {
  font-size: clamp(18px, 1.35vw, 24px);
}

.vcpm-card.stat .delta {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: normal;
  line-height: 1.2;
}

.vcpm-card.stat .delta.up {
  color: #16915d;
}

.vcpm-card.stat .delta.down {
  color: #cb3846;
}

.vcpm-card.stat .delta.up::before {
  content: "↗";
  font-size: 11px;
  line-height: 1;
}

.vcpm-card.stat .delta.down::before {
  content: "↘";
  font-size: 11px;
  line-height: 1;
}

.stat-layout {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
}

.stat-copy {
  min-width: 0;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex: 0 0 42px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.stat-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

.tone-violet .stat-icon {
  background: linear-gradient(135deg, #6f49f1 0%, #4d2bb7 100%);
}

.tone-green .stat-icon {
  background: linear-gradient(135deg, #45cb8c 0%, #1f9f64 100%);
}

.tone-amber .stat-icon {
  background: linear-gradient(135deg, #ffbf4e 0%, #f39a2e 100%);
}

.tone-blue .stat-icon {
  background: linear-gradient(135deg, #6b8cff 0%, #3d6bf2 100%);
}

.tone-pink .stat-icon {
  background: linear-gradient(135deg, #ff71af 0%, #e44b8d 100%);
}

.vcpm-layout.two-left {
  display: grid;
  gap: 14px;
  grid-template-columns: 2fr 2fr 1.45fr;
  align-items: start;
}

.vcpm-layout.two-left>.vcpm-card:nth-child(4),
.vcpm-layout.two-left>.vcpm-card:nth-child(5) {
  grid-column: span 1;
}

.sales-flow-board {
  display: grid;
  gap: 12px;
}

.sales-flow-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.sales-flow-item {
  border: 1px solid #e6ebfb;
  background: #fbfcff;
  padding: 10px;
  display: grid;
  gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sales-flow-item:hover {
  border-color: #c8d7ff;
  box-shadow: 0 6px 14px rgba(63, 88, 175, 0.08);
  transform: translateY(-1px);
}

.sales-flow-item.active {
  border-color: #96b2ff;
  background: #eff4ff;
  box-shadow: 0 0 0 1px rgba(77, 111, 224, 0.18) inset;
}

.sales-flow-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e7edff;
  color: #334ba0;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.sales-flow-item.active .sales-flow-number {
  background: linear-gradient(145deg, #5676ea 0%, #3d5dcf 100%);
  color: #ffffff;
}

.sales-flow-copy {
  display: grid;
  gap: 4px;
}

.sales-flow-title {
  font-size: 13px;
  font-weight: 800;
  color: #273665;
}

.sales-flow-subtitle {
  font-size: 11px;
  line-height: 1.4;
  color: #64719b;
}

.sales-workspace {
  display: grid;
  gap: 12px;
}

.sales-workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sales-workspace-card {
  border: 1px solid #e8edfa;
  background: #fcfdff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.sales-workspace-card h3 {
  font-size: 14px;
  color: #2e3d6d;
}

.sales-workspace-links {
  display: grid;
  gap: 8px;
}

.sales-workspace-link {
  border: 1px solid #e7ecfb;
  background: #ffffff;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sales-workspace-link:hover {
  border-color: #cfdcff;
  background: #f7f9ff;
}

.sales-workspace-link.active {
  border-color: #9db7ff;
  background: #edf3ff;
}

.sales-workspace-link strong {
  font-size: 12px;
  color: #30427a;
}

.sales-workspace-link span {
  font-size: 11px;
  line-height: 1.35;
  color: #66749f;
}

.vcpm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.vcpm-card-head h2 {
  font-size: 18px;
  font-weight: 700;
}

.vcpm-card-head .muted {
  color: var(--muted);
  font-size: 12px;
}

.vcpm-table-wrap {
  overflow: auto;
  max-width: 100%;
  min-width: 0;
}

.vcpm-table {
  width: 100%;
  border-collapse: collapse;
}

.vcpm-table th,
.vcpm-table td {
  border-bottom: 1px solid #edf0fa;
  padding: 10px 8px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.vcpm-table tbody tr {
  transition: background-color 0.12s ease;
}

.vcpm-table tbody tr:hover {
  background: #fafbff;
}

.vcpm-table th {
  color: #5f678b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.vcpm-table td small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.vcpm-table.wide {
  min-width: 1750px;
}

.vcpm-admin-users-table {
  min-width: 640px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge.good {
  background: #eaf9ef;
  color: #177d4f;
}

.badge.warn {
  background: #fff5e9;
  color: #b86805;
}

.badge.danger {
  background: #ffecee;
  color: #ba2f38;
}

.badge.muted {
  background: #f0f2f9;
  color: #636e96;
}

.webinar-form-grid,
.webinar-filter-grid {
  display: grid;
  gap: 10px;
}

.webinar-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.webinar-filter-grid {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(190px, 250px);
  align-items: end;
}

.webinar-form-grid label,
.webinar-filter-grid label {
  display: grid;
  gap: 5px;
}

.webinar-form-grid label span,
.webinar-filter-grid label span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f6890;
}

.webinar-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dbe2f4;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: #24335f;
  background: #ffffff;
}

textarea.webinar-input {
  min-height: 96px;
  resize: vertical;
}

.webinar-full-width {
  grid-column: 1 / -1;
}

.webinar-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.webinar-inline-check input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.webinar-inline-check span {
  font-size: 13px;
  font-weight: 600;
  color: #33406f;
  letter-spacing: normal;
  text-transform: none;
}

.webinar-form-actions,
.webinar-filter-actions,
.webinar-action-group,
.webinar-public-link-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.webinar-public-link-box {
  width: 100%;
}

.webinar-public-link-box .webinar-input {
  flex: 1 1 420px;
}

.webinar-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.webinar-hero {
  align-items: center;
}

.webinar-toolbar-card {
  display: grid;
  gap: 12px;
}

.webinar-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.webinar-summary-item {
  border: 1px solid #e3e8f6;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  padding: 11px 12px;
  display: grid;
  gap: 2px;
}

.webinar-summary-item small {
  color: #62719d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.webinar-summary-item strong {
  color: #223566;
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
}

.webinar-toolbar-actions {
  justify-content: flex-start;
}

.webinar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #4668e3;
  background: #4668e3;
  color: #ffffff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.webinar-btn:hover {
  background: #3d5cd0;
  border-color: #3d5cd0;
}

.webinar-btn.secondary {
  background: #ffffff;
  color: #32447a;
  border-color: #d7def0;
}

.webinar-btn.secondary:hover {
  background: #f6f8ff;
}

.webinar-btn.danger {
  background: #ffecee;
  color: #ba2f38;
  border-color: #f6c9cd;
}

.webinar-btn.danger:hover {
  background: #ffdde1;
  border-color: #f0aab1;
}

.webinar-btn.success {
  background: #1d9b63;
  border-color: #1d9b63;
}

.webinar-btn.success:hover {
  background: #188554;
  border-color: #188554;
}

.webinar-note {
  font-size: 12px;
  color: #667097;
}

.webinar-description {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #43507c;
}

.webinar-success {
  margin: 0;
  font-size: 13px;
  color: #136f47;
  background: #e9f8ef;
  border: 1px solid #c8e8d6;
  padding: 9px 10px;
}

.webinar-error-list {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #f2c6cb;
  background: #fff1f2;
  color: #b2313c;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.webinar-pagination-wrap {
  margin-top: 10px;
}

.webinar-board {
  display: block;
}

.webinar-sheet-main .vcpm-card-head h2 {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.webinar-sheet-table thead th {
  background: #23408f;
  color: #ffffff;
  border-bottom-color: #1c3372;
}

.webinar-sheet-table td {
  background: #ffffff;
}

.webinar-sheet-table tbody tr:nth-child(even) td {
  background: #f7fafc;
}

.webinar-sheet-table td:first-child {
  width: 58px;
  text-align: center;
}

.webinar-sheet-table td:nth-child(2) {
  width: 130px;
}

.webinar-sheet-table td:nth-child(4) {
  width: 150px;
}

.webinar-sheet-table td:nth-child(5) {
  width: 170px;
}

.webinar-modal-open {
  overflow: hidden;
}

.webinar-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

.webinar-modal[hidden] {
  display: none;
}

.webinar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 19, 37, 0.52);
}

.webinar-modal-card {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #dbe3f7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 30px 56px rgba(17, 30, 64, 0.24);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.webinar-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.webinar-modal-head h3 {
  margin: 0;
  color: #253666;
  font-size: 18px;
  font-weight: 800;
}

.webinar-modal-close {
  border: 1px solid #d5def7;
  border-radius: 8px;
  background: #f7f9ff;
  color: #54649b;
  font-size: 20px;
  line-height: 1;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.webinar-modal-close:hover {
  border-color: #becaf1;
  background: #edf2ff;
}

.webinar-modal-form {
  gap: 11px;
}

.webinar-modal-actions {
  justify-content: flex-end;
}

@media (max-width: 1200px) {

  .webinar-form-grid,
  .webinar-filter-grid {
    grid-template-columns: 1fr;
  }

  .webinar-summary-grid {
    grid-template-columns: 1fr;
  }

  .webinar-modal {
    padding: 10px;
  }

  .webinar-modal-card {
    width: min(720px, 100%);
    max-height: calc(100vh - 20px);
  }

  .webinar-filter-actions {
    justify-content: flex-start;
  }
}

.chart-placeholder {
  min-height: 225px;
  border-radius: 0;
  border: 1px solid #e8ebf8;
  background:
    repeating-linear-gradient(to top,
      rgba(118, 131, 184, 0.08) 0,
      rgba(118, 131, 184, 0.08) 1px,
      transparent 1px,
      transparent 34px),
    linear-gradient(180deg, #f9faff 0%, #ffffff 100%);
  display: grid;
  place-items: center;
  padding: 14px;
}

.line-plot {
  width: 100%;
  height: 170px;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(84, 53, 207, 0.12) 0%, rgba(84, 53, 207, 0) 70%),
    linear-gradient(125deg, transparent 3%, #5c3bd5 30%, #7860da 45%, #5a39d3 65%, #7f67de 96%);
  clip-path: polygon(0 79%, 9% 67%, 18% 69%, 27% 56%, 36% 58%, 45% 44%, 54% 39%, 63% 50%, 72% 62%, 81% 53%, 90% 49%, 100% 36%, 100% 100%, 0 100%);
}

.score-wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 8px 2px 4px;
}

.score-circle {
  width: 172px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#5433cf 295deg, #edf0fc 0deg);
  display: grid;
  place-items: center;
  position: relative;
}

.score-circle::before {
  content: "";
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
}

.score-circle strong,
.score-circle span {
  position: relative;
  z-index: 1;
}

.score-circle strong {
  font-size: 38px;
  font-weight: 800;
}

.score-circle span {
  color: var(--muted);
  font-size: 13px;
}

.score-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.funnel-list {
  display: grid;
  gap: 10px;
}

.funnel-item {
  display: grid;
  grid-template-columns: 1.45fr 2.8fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.funnel-bar-wrap {
  background: #f0f2fb;
  border-radius: 999px;
  height: 11px;
  overflow: hidden;
}

.funnel-bar {
  height: 100%;
  background: linear-gradient(90deg, #6848d9 0%, #4e30bf 100%);
}

.alert-list {
  display: grid;
  gap: 10px;
}

.alert-list article {
  border: 1px solid #edf0fa;
  border-left: 3px solid #f2a338;
  border-radius: 0;
  padding: 10px 11px;
  background: #fff;
}

.alert-list h3 {
  font-size: 14px;
  font-weight: 700;
}

.alert-list p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.alert-list span {
  margin-top: 8px;
  display: inline-block;
  color: #c2333b;
  font-size: 11px;
  font-weight: 700;
}

.vcpm-empty-cell {
  color: #7a84ab;
  font-size: 12px;
}

.topics-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  flex-wrap: wrap;
}

.topics-panel {
  padding: 10px;
  min-width: 0;
  max-width: 100%;
}

.topics-panel-compact {
  display: grid;
  gap: 8px;
}

.topics-pickbar,
.topics-pick-footer {
  border: 1px solid #e8edfb;
  background: #f8faff;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.topics-pick-title {
  color: #283765;
  font-size: 13px;
  font-weight: 800;
}

.topics-pick-subtitle {
  margin-top: 2px;
  color: #6f7ba4;
  font-size: 12px;
}

.topics-pick-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topics-selected-summary {
  border: 1px solid #e8edfb;
  background: #f8faff;
  padding: 8px 10px;
  display: grid;
  gap: 8px;
}

.topics-selected-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.topics-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  letter-spacing: -0.15px;
}

.topics-title.compact {
  font-size: 17px;
}

.topics-title-block {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.topics-sort-meta {
  font-size: 11px;
  color: #7682a9;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.topics-title-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #6b4ef1 0%, #4f2fb8 100%);
}

.topics-title-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topics-toolbar-form {
  margin-left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
}

.topics-filter-field {
  min-height: 32px;
  border: 1px solid #dce2f1;
  background: #ffffff;
  color: #32406e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  min-width: 0;
}

.topics-filter-field svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: #7380a7;
}

.topics-filter-field select,
.topics-filter-field input {
  border: 0;
  background: transparent;
  color: #2e3d6f;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  min-height: 24px;
  font-family: inherit;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.topics-filter-field select {
  min-width: 126px;
  cursor: pointer;
}

.topics-filter-field.year select {
  min-width: 78px;
}

.topics-filter-field.month select {
  min-width: 108px;
}

.topics-filter-field.sort select {
  min-width: 104px;
}

.topics-filter-field.dir select {
  min-width: 96px;
}

.topics-filter-field.search input {
  min-width: 0;
}

.topics-toolbar-form .topics-filter-field.search {
  grid-column: span 2;
}

.topics-toolbar-form .topics-chip {
  justify-self: start;
  white-space: nowrap;
}

.topics-pm-tabs-card,
.topics-pm-directory-card {
  margin-bottom: 12px;
}

.topics-pm-tabs-head,
.topics-pm-directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.topics-pm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.topics-pm-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9e1f5;
  border-radius: 999px;
  padding: 6px 11px;
  background: #ffffff;
  color: #344274;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.topics-pm-tab small {
  color: #7280aa;
  font-size: 10px;
  font-weight: 700;
}

.topics-pm-tab:hover {
  border-color: #bdcaec;
  background: #f8faff;
}

.topics-pm-tab.active {
  border-color: #5c42d2;
  background: #f1eeff;
  color: #3a2a92;
}

.topics-pm-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.topics-pm-directory-item {
  border: 1px solid #e6ebf8;
  border-radius: 10px;
  background: #fbfdff;
  padding: 9px;
  display: grid;
  gap: 8px;
  box-shadow: 0 5px 14px rgba(45, 58, 115, 0.04);
}

.topics-pm-directory-item.active {
  border-color: #c5b8f7;
  background: #f8f4ff;
}

.topics-pm-directory-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.topics-pm-directory-top h3 {
  margin: 0;
  font-size: 13px;
  color: #2a3765;
}

.topics-pm-topic-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.topics-pm-topic-preview span {
  border: 1px solid #e5ebfb;
  border-radius: 999px;
  background: #ffffff;
  color: #4e5d8f;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
}

.topics-sync-inline-form {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.topics-sync-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.topics-sync-status {
  max-width: 100%;
  white-space: normal;
  text-align: right;
}

.topics-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: #dce2f1;
  color: #32406e;
  font-weight: 700;
  font-size: 11px;
}

.topics-chip svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.topics-chip:hover {
  border-color: #c8d2ec;
  background: #f7f9ff;
}

.topics-chip:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.topics-chip.clear {
  text-decoration: none;
}

.topics-th {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.topics-sort-link {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.topics-sort-link>svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.1;
  color: #8d97b8;
}

.topics-sort-link:hover {
  color: #2f3f70;
}

.topics-sort-link.active {
  color: #24325e;
  font-weight: 700;
}

.topics-sort-link.active>svg {
  color: #5263a5;
}

.topics-th svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
  color: #7481a8;
}

.topics-compact-table {
  min-width: 1120px;
}

.topics-compact-table.is-pm-pick {
  min-width: 1200px;
}

.topics-compact-table.is-it-dashboard th:nth-child(1),
.topics-compact-table.is-it-dashboard td:nth-child(1) {
  width: 84px;
}

.topics-compact-table.is-it-dashboard th:nth-child(2),
.topics-compact-table.is-it-dashboard td:nth-child(2) {
  width: 33%;
}

.topics-compact-table.is-it-dashboard th:nth-child(3),
.topics-compact-table.is-it-dashboard td:nth-child(3) {
  width: 34%;
}

.topics-compact-table.is-it-dashboard th:nth-child(4),
.topics-compact-table.is-it-dashboard td:nth-child(4),
.topics-compact-table.is-it-dashboard th:nth-child(5),
.topics-compact-table.is-it-dashboard td:nth-child(5),
.topics-compact-table.is-it-dashboard th:nth-child(6),
.topics-compact-table.is-it-dashboard td:nth-child(6),
.topics-compact-table.is-it-dashboard th:nth-child(7),
.topics-compact-table.is-it-dashboard td:nth-child(7),
.topics-compact-table.is-it-dashboard th:nth-child(8),
.topics-compact-table.is-it-dashboard td:nth-child(8),
.topics-compact-table.is-it-dashboard th:nth-child(9),
.topics-compact-table.is-it-dashboard td:nth-child(9) {
  width: 54px;
}

.topics-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475685;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.topics-check-inline input[type='checkbox'] {
  width: 15px;
  height: 15px;
  margin: 0;
}

.topics-compact-table th:nth-child(1),
.topics-compact-table td:nth-child(1) {
  width: 33%;
}

.topics-compact-table th:nth-child(2),
.topics-compact-table td:nth-child(2) {
  width: 34%;
}

.topics-compact-table th:nth-child(3),
.topics-compact-table td:nth-child(3) {
  width: 58px;
}

.topics-compact-table th:nth-child(4),
.topics-compact-table td:nth-child(4) {
  width: 54px;
}

.topics-compact-table th:nth-child(5),
.topics-compact-table td:nth-child(5) {
  width: 54px;
}

.topics-compact-table th:nth-child(6),
.topics-compact-table td:nth-child(6) {
  width: 54px;
}

.topics-compact-table.is-pm-pick th:nth-child(1),
.topics-compact-table.is-pm-pick td:nth-child(1) {
  width: 84px;
}

.topics-compact-table.is-pm-pick th:nth-child(2),
.topics-compact-table.is-pm-pick td:nth-child(2) {
  width: 33%;
}

.topics-compact-table.is-pm-pick th:nth-child(3),
.topics-compact-table.is-pm-pick td:nth-child(3) {
  width: 34%;
}

.topics-compact-table.is-pm-pick th:nth-child(4),
.topics-compact-table.is-pm-pick td:nth-child(4) {
  width: 58px;
}

.topics-compact-table.is-pm-pick th:nth-child(5),
.topics-compact-table.is-pm-pick td:nth-child(5) {
  width: 54px;
}

.topics-compact-table.is-pm-pick th:nth-child(6),
.topics-compact-table.is-pm-pick td:nth-child(6) {
  width: 54px;
}

.topics-compact-table.is-pm-pick th:nth-child(7),
.topics-compact-table.is-pm-pick td:nth-child(7) {
  width: 54px;
}

.topics-topic-link {
  color: #243463;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.topics-topic-link:hover {
  text-decoration: underline;
}

.topic-inline-actions {
  margin-top: 4px;
}

.topic-inline-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #51629b;
  text-decoration: none;
}

.topic-inline-detail:hover {
  color: #2c3f7e;
  text-decoration: underline;
}

.topic-inline-detail svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.topics-panel .vcpm-table thead th {
  background: #fbfcff;
  border-top: 1px solid #edf1fb;
  border-bottom: 1px solid #e6ebf7;
  position: sticky;
  top: 0;
  z-index: 6;
  padding-top: 7px;
  padding-bottom: 7px;
}

.topics-panel .vcpm-table th,
.topics-panel .vcpm-table td {
  border-right: 1px solid #f0f3fb;
}

.topics-panel .vcpm-table th:last-child,
.topics-panel .vcpm-table td:last-child {
  border-right: 0;
}

.topics-panel .vcpm-table td {
  padding-top: 6px;
  padding-bottom: 6px;
  vertical-align: middle;
}

.topics-panel .vcpm-table tbody tr.topics-row-selected td {
  background: #eefbf8;
}

.topics-panel .vcpm-table tbody tr.topics-row-selected:hover td {
  background: #e4f7f2;
}

.topics-scroll {
  max-height: calc(100vh - 315px);
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid #edf1fb;
  width: 100%;
  min-width: 0;
}

.topics-scroll .vcpm-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
}

.topic-name-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.topic-name-wrap.compact {
  align-items: center;
  gap: 7px;
}

.topic-name-wrap.compact strong {
  font-size: 13px;
  line-height: 1.2;
}

.topic-name-wrap.compact small {
  color: #7380a8;
  font-size: 10px;
  margin-top: 2px;
}

.topic-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(140deg, #7b63f5 0%, #4f2fb8 100%);
  margin-top: 2px;
}

.topic-dot svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.4;
}

.metric-stack {
  display: grid;
  gap: 1px;
}

.metric-stack.compact {
  gap: 1px;
}

.topics-score {
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  padding: 3px 6px;
  border: 1px solid #dde4f4;
  background: #f9fbff;
  color: #304172;
  font-weight: 700;
  font-size: 11px;
}

.topics-score svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.3;
}

.topics-score.compact strong {
  font-size: 11px;
}

.topics-conv-rate {
  font-size: 20px;
  line-height: 1;
  color: #202b4e;
}

.topics-conv-rate.compact {
  font-size: 16px;
}

.topics-seo-main {
  font-size: 12px;
  color: #22305a;
}

.topics-score.compact.plain {
  min-width: 0;
  width: 100%;
  justify-content: center;
}

.topics-meta-soft {
  color: #7783aa;
  font-size: 10px;
}

.seo-stack.compact .text-up,
.seo-stack.compact .text-down,
.conversion-stack.compact .text-up,
.conversion-stack.compact .text-down {
  font-size: 10px;
}

.topics-th-kpi .topics-sort-link {
  justify-content: center;
}

.topics-th-kpi .topics-th {
  justify-content: center;
}

.topics-cell-kpi {
  text-align: center;
}

.topics-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
  padding: 7px 9px;
  font-size: 11px;
}

.topics-action svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.3;
}

.topics-pagination {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.topics-page-link {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #dbe2f2;
  color: #334272;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.topics-page-link.active {
  background: linear-gradient(90deg, #5835cd 0%, #492bb4 100%);
  border-color: #4d2eb9;
  color: #ffffff;
}

.topics-page-link.disabled {
  color: #8a94b6;
  background: #f5f7fe;
  border-color: #e5eaf7;
  pointer-events: none;
}

.topics-page-dots {
  color: #8892b3;
  font-size: 12px;
  font-weight: 700;
  padding: 0 2px;
}

.action-btn {
  border: 0;
  background: linear-gradient(90deg, #5633cb 0%, #4528ad 100%);
  color: #fff;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.recommendation {
  min-width: 280px;
  color: #4e577f;
  line-height: 1.5;
}

.text-up {
  color: var(--green);
  font-weight: 700;
}

.text-down {
  color: var(--danger);
  font-weight: 700;
}

.vcpm-footer {
  border-top: 1px solid var(--border);
  color: #7b83a8;
  padding: 10px 24px 18px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.vcpm-admin-layout {
  grid-template-columns: 1.2fr 2fr;
  gap: 14px;
}

.vcpm-admin-notice {
  font-size: 13px;
  font-weight: 600;
}

.vcpm-admin-notice.success {
  border-color: #b7e9cf;
  color: #186a44;
  background: #effcf5;
}

.vcpm-admin-notice.error {
  border-color: #f3c3c8;
  color: #9d1f2b;
  background: #fff4f5;
}

.vcpm-admin-notice ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.vcpm-admin-form {
  display: grid;
  gap: 12px;
}

.vcpm-admin-grid {
  display: grid;
  gap: 10px;
}

.vcpm-admin-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vcpm-admin-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vcpm-admin-form label {
  display: grid;
  gap: 6px;
}

.vcpm-admin-form label span {
  color: #555f89;
  font-size: 12px;
  font-weight: 700;
}

.vcpm-admin-form input,
.vcpm-admin-form select,
.vcpm-admin-inline input,
.vcpm-admin-inline select {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 7px 10px;
  font-size: 13px;
  color: #252d4a;
}

.vcpm-admin-inline {
  display: grid;
  gap: 8px;
}

.vcpm-switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555f89;
  font-size: 13px;
  font-weight: 600;
}

.vcpm-switch-row.compact {
  font-size: 12px;
  font-weight: 700;
}

.vcpm-switch-row input {
  width: 16px;
  height: 16px;
}

.vcpm-admin-assignment-list {
  display: grid;
  gap: 12px;
}

.vcpm-admin-assignment-card {
  border: 1px solid #e8eaf5;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 12px;
  background: #fbfcff;
}

.vcpm-admin-assignment-card header h3 {
  font-size: 15px;
  font-weight: 700;
}

.vcpm-admin-assignment-card header p {
  margin-top: 4px;
  color: #6d7497;
  font-size: 12px;
}

.vcpm-muted-text {
  color: #747ea3;
  font-size: 13px;
}

.topic-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.topic-detail-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  border-color: #4f2fb8;
  background: linear-gradient(90deg, #5d3bd2 0%, #4a2daf 100%);
  color: #ffffff;
}

.topic-detail-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.topic-detail-btn.ghost {
  border-color: #dce2f1;
  background: #ffffff;
  color: #3a4775;
}

.topic-overview-hero {
  border-radius: 12px;
  padding: 16px;
}

.topic-overview-main {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  width: 100%;
}

.topic-overview-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(140deg, #6d50ec 0%, #4f2fb8 100%);
}

.topic-overview-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.topic-overview-breadcrumb {
  color: #7984ad;
  font-size: 12px;
  font-weight: 700;
}

.topic-overview-breadcrumb span {
  opacity: 0.6;
  margin: 0 4px;
}

.topic-overview-heading-row {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topic-overview-heading-row h2 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.topic-overview-meta {
  margin-top: 6px;
  color: #637099;
  font-size: 13px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.topic-detail-tabs {
  margin-top: -2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid #e8ecf8;
  padding-bottom: 8px;
}

.topic-detail-tabs a {
  padding: 7px 11px;
  color: #7480a8;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
}

.topic-detail-tabs a.active {
  color: #4d2eb8;
  background: #f1edff;
}

.topic-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(290px, 1fr);
  gap: 14px;
  align-items: start;
}

.topic-detail-main,
.topic-detail-sidebar {
  display: grid;
  gap: 14px;
}

/* Topic detail cards should use square corners for an infographic board look */
.topic-overview-hero,
.topic-detail-layout .vcpm-card,
.topic-kpi-card,
.topic-side-list-item,
.topic-insight-list article,
.topic-trend-svg,
.topic-sync-loader,
.topic-detail-tabs a,
.topic-funnel-bar-wrap,
.topic-funnel-bar,
.topic-overview-icon,
.topic-overview-stat-card,
.topic-article-performance-item {
  border-radius: 0 !important;
}

.vcpm-card-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.topic-overview-stat-grid {
  gap: 10px;
}

.topic-overview-stat-card {
  border-color: #e8ecf8;
  padding: 12px;
}

.topic-overview-stat-card .label {
  color: #7b84aa;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.topic-overview-stat-card .value {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: #1d2850;
}

.topic-overview-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
}

.topic-article-performance-list {
  display: grid;
  gap: 8px;
}

.topic-article-performance-item {
  border: 1px solid #ebeffa;
  border-left: 3px solid #5d3ad1;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.topic-article-performance-item h3 {
  font-size: 13px;
  font-weight: 700;
  color: #2d3a68;
}

.topic-article-performance-item h3 a {
  color: inherit;
  text-decoration: none;
}

.topic-article-performance-item h3 a:hover {
  text-decoration: underline;
}

.topic-add-article-inline-btn {
  border: 1px solid #d8e0f7;
  border-radius: 0;
  background: #f5f8ff;
  color: #324a92;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.topic-add-article-inline-btn svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.topic-add-article-inline-btn:hover {
  background: #eaf0ff;
  border-color: #c4d1f4;
}

.topic-article-url-line {
  margin: 0;
  font-size: 11px;
  color: #61709c;
  line-height: 1.35;
  word-break: break-word;
}

.topic-article-url-line a {
  color: #2a4aa7;
  text-decoration: none;
}

.topic-article-url-line a:hover {
  text-decoration: underline;
}

.topic-mini-kpis {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #61709c;
}

.topic-mini-kpis strong {
  color: #2c3a69;
}

.topic-article-mini-chart {
  margin-top: 6px;
  border: 1px solid #e4eaf9;
  background: #f9fbff;
  padding: 6px 8px 8px;
}

.topic-article-mini-chart-title {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5d6c9b;
}

.topic-article-mini-chart-svg {
  width: 100%;
  height: 94px;
  display: block;
}

.topic-article-mini-chart-line {
  fill: none;
  stroke: #3f61d8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-article-mini-chart-point {
  fill: #2748b5;
  stroke: #ffffff;
  stroke-width: 1;
}

.topic-article-mini-chart-value {
  fill: #273665;
  font-size: 8.5px;
  font-weight: 700;
  text-anchor: middle;
}

.topic-article-mini-chart-axis {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  color: #6d7ba6;
}

.topic-article-mini-chart-axis span {
  text-align: center;
}

.topic-article-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-article-edit-btn {
  border: 1px solid #d6defa;
  background: #ffffff;
  color: #27418f;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0;
}

.topic-article-edit-btn:hover:not(:disabled) {
  background: #f4f7ff;
  border-color: #bac9f7;
}

.topic-article-edit-btn.disabled,
.topic-article-edit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.topic-article-sync-btn {
  border: 1px solid #d6defa;
  background: #f5f8ff;
  color: #27418f;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0;
}

.topic-article-sync-btn:hover:not(:disabled) {
  background: #e9f0ff;
  border-color: #bac9f7;
}

.topic-article-sync-btn.is-loading {
  color: #415585;
  background: #eef2fa;
  border-color: #cfd8f1;
}

.topic-article-sync-btn.is-done {
  color: #1f6e46;
  background: #e9f8ef;
  border-color: #b9e8ca;
}

.topic-article-sync-btn.disabled,
.topic-article-sync-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.topic-overview-health-list {
  display: grid;
  gap: 8px;
}

.topic-overview-health-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ebeffa;
  padding: 8px 10px;
  font-size: 12px;
  color: #5e6d98;
}

.topic-overview-health-list strong {
  color: #2d3a68;
  font-size: 13px;
}

.topic-outlook-visuals {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.topic-outlook-status-stack {
  display: flex;
  width: 100%;
  height: 10px;
  background: #eef2ff;
  overflow: hidden;
}

.topic-outlook-status-stack .segment {
  display: block;
  height: 100%;
}

.topic-outlook-status-stack .segment.prospect {
  background: #8f95ad;
}

.topic-outlook-status-stack .segment.running {
  background: #3f63f1;
}

.topic-outlook-status-stack .segment.closed {
  background: #21a46b;
}

.topic-outlook-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #61709c;
}

.topic-outlook-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topic-outlook-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
}

.topic-outlook-legend .dot.prospect {
  background: #8f95ad;
}

.topic-outlook-legend .dot.running {
  background: #3f63f1;
}

.topic-outlook-legend .dot.closed {
  background: #21a46b;
}

.topic-outlook-meter {
  display: grid;
  gap: 6px;
}

.topic-outlook-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #6573a2;
}

.topic-outlook-meter-head strong {
  font-size: 12px;
  color: #22325d;
}

.topic-outlook-track {
  width: 100%;
  height: 10px;
  border: 1px solid #e8ecf8;
  background: #f6f8ff;
  overflow: hidden;
}

.topic-outlook-track .bar {
  display: block;
  height: 100%;
}

.topic-outlook-track .bar.bar-progress {
  background: linear-gradient(90deg, #4d68f7 0%, #21a46b 100%);
}

.topic-outlook-track .bar.bar-registered {
  background: #4d68f7;
}

.topic-outlook-track .bar.bar-paid {
  background: #21a46b;
}

.topic-kpi-card {
  border-radius: 12px;
  padding: 13px;
  border-color: #e8ecf8;
}

.topic-kpi-card .label {
  color: #7b84aa;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.topic-kpi-card .value {
  margin-top: 8px;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  color: #1d2850;
}

.topic-kpi-card .value small {
  font-size: 14px;
  color: #7783ab;
  font-weight: 700;
}

.topic-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px;
}

.topic-trend-chart {
  display: grid;
  gap: 8px;
}

.topic-trend-shell {
  position: relative;
}

.topic-trend-chart.is-sync-loading {
  opacity: 0.25;
}

.topic-trend-data {
  display: flex;
  flex-direction: column;
  border: 1px solid #e9eef9;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
  overflow: hidden;
}

.topic-trend-side-card {
  padding: 0;
}

.topic-trend-data-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid #eef2fb;
}

.topic-trend-data-head h3 {
  margin: 0;
  font-size: 12px;
  color: #2b3d72;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.topic-trend-data-head p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #6f7ea8;
}

.topic-trend-side-top {
  display: grid;
  gap: 10px;
  padding: 10px 12px 8px;
}

.topic-trend-data-wrap {
  max-height: 318px;
  overflow: auto;
}

.topic-trend-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.topic-trend-data-table th,
.topic-trend-data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef2fb;
  white-space: nowrap;
}

.topic-trend-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8faff;
  text-align: left;
  font-weight: 800;
  color: #51608f;
}

.topic-trend-data-table td {
  color: #2d3f73;
  font-weight: 600;
}

.topic-trend-data-table td:nth-child(2),
.topic-trend-data-table td:nth-child(3),
.topic-trend-data-table td:nth-child(4),
.topic-trend-data-table th:nth-child(2),
.topic-trend-data-table th:nth-child(3),
.topic-trend-data-table th:nth-child(4) {
  text-align: right;
}

.topic-sync-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid #e9eef9;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #2c3c70;
  font-size: 12px;
  font-weight: 700;
}

.topic-sync-loader.error {
  color: #a02833;
}

.topic-sync-spinner {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #ccd7f5;
  border-top-color: #5533c8;
  animation: topicSyncSpin 0.9s linear infinite;
}

@keyframes topicSyncSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.topic-trend-svg {
  width: 100%;
  height: auto;
  border: 1px solid #e9eef9;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.topic-trend-grid {
  stroke: #eef2fb;
  stroke-width: 1;
}

.topic-trend-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-trend-line.impression {
  stroke: #5a3ad2;
}

.topic-trend-line.clicks {
  stroke: #1ea366;
}

.topic-trend-line.ctr {
  stroke: #f39a2e;
}

.topic-trend-legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  color: #64719c;
  font-size: 11px;
  font-weight: 700;
}

.topic-trend-legend span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid #ebeffb;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px 8px;
}

.topic-trend-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.topic-trend-legend .dot.impression {
  background: #5a3ad2;
}

.topic-trend-legend .dot.clicks {
  background: #1ea366;
}

.topic-trend-legend .dot.ctr {
  background: #f39a2e;
}

.topic-trend-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.topic-trend-stats span {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  border: 1px solid #ebeffb;
  background: #ffffff;
  padding: 7px 8px;
}

.topic-trend-stats small {
  font-size: 10px;
  color: #7a88b1;
  font-weight: 700;
}

.topic-trend-stats strong {
  font-size: 12px;
  color: #253567;
  font-weight: 800;
}

.topic-month-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  color: #8893b5;
  font-size: 11px;
  font-weight: 600;
}

.topic-funnel-list {
  display: grid;
  gap: 10px;
}

.topic-leads-source {
  border: 1px solid #e9eef9;
  border-radius: 10px;
  background: #f8fbff;
  color: #4d5d8f;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.topic-leads-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.topic-leads-kpi-row article {
  border: 1px solid #e8edf9;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 9px;
  display: grid;
  gap: 3px;
}

.topic-leads-kpi-row span {
  color: #7481aa;
  font-size: 11px;
  font-weight: 700;
}

.topic-leads-kpi-row strong {
  color: #253769;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.topic-funnel-item {
  display: grid;
  grid-template-columns: 1.35fr 2.2fr 0.85fr 0.65fr;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.topic-funnel-item span {
  color: #51608f;
  font-weight: 600;
}

.topic-funnel-item strong {
  text-align: right;
  color: #293661;
}

.topic-funnel-item small {
  text-align: right;
  color: #7d88ad;
  font-weight: 700;
}

.topic-funnel-bar-wrap {
  height: 10px;
  border-radius: 999px;
  background: #eef1fb;
  overflow: hidden;
}

.topic-funnel-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b4ce5 0%, #4d2fb9 100%);
}

.topic-insight-list {
  display: grid;
  gap: 10px;
}

.topic-insight-list article {
  border: 1px solid #ebeffa;
  border-left: 3px solid #5d3ad1;
  border-radius: 10px;
  padding: 10px 11px;
}

.topic-insight-list h3 {
  font-size: 13px;
  font-weight: 700;
  color: #2d3a68;
}

.topic-insight-list p {
  margin-top: 4px;
  color: #6f7ba4;
  font-size: 12px;
  line-height: 1.45;
}

.topic-content-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.45fr);
  gap: 14px;
}

.topic-content-list {
  display: grid;
  gap: 8px;
  max-height: 680px;
  overflow: auto;
  padding-right: 2px;
}

.topic-content-list-item {
  border: 1px solid #e8edf9;
  border-left: 3px solid #dbe3f8;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 11px;
  display: grid;
  gap: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.topic-content-list-item:hover {
  border-color: #cfd9f6;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(36, 52, 112, 0.08);
}

.topic-content-list-item.active {
  border-color: #7f92df;
  border-left-color: #5d3ad1;
  background: #f8faff;
}

.topic-content-list-item h3 {
  font-size: 13px;
  font-weight: 800;
  color: #26366a;
}

.topic-content-list-item p {
  font-size: 11px;
  color: #63719f;
  word-break: break-word;
}

.topic-content-list-meta {
  display: grid;
  gap: 2px;
}

.topic-content-list-meta span {
  font-size: 11px;
  color: #7481aa;
  font-weight: 600;
}

.topic-content-detail-card {
  display: grid;
  gap: 10px;
}

.topic-content-detail-summary {
  border: 1px solid #ebeffa;
  border-radius: 10px;
  padding: 10px 11px;
  background: #ffffff;
  display: grid;
  gap: 4px;
}

.topic-content-detail-summary h3 {
  font-size: 14px;
  font-weight: 800;
  color: #27376c;
}

.topic-content-detail-summary p {
  color: #6674a1;
  font-size: 12px;
  line-height: 1.45;
}

.topic-content-detail-summary a {
  color: #3c58c9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.topic-content-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.topic-content-kpi-grid article {
  border: 1px solid #e7ecf8;
  border-radius: 10px;
  background: #ffffff;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.topic-content-kpi-grid span {
  font-size: 11px;
  color: #7885af;
  font-weight: 700;
}

.topic-content-kpi-grid strong {
  font-size: 18px;
  line-height: 1;
  color: #243568;
  font-weight: 800;
}

.topic-content-keywords-wrap {
  max-height: 430px;
  overflow: auto;
}

.topic-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.topic-info-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf1fb;
}

.topic-info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.topic-info-list dt {
  color: #7b86ad;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
}

.topic-info-list dd {
  margin: 0;
  color: #2f3b69;
  font-size: 13px;
  line-height: 1.4;
}

.topic-side-list {
  display: grid;
  gap: 10px;
}

.topic-side-list-item {
  border: 1px solid #eaf0fa;
  border-radius: 10px;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.topic-side-list-item strong {
  color: #2f3b69;
  font-size: 13px;
}

.topic-side-list-item p {
  color: #6f7ba3;
  font-size: 12px;
}

.topic-quick-actions {
  display: grid;
  gap: 8px;
}

.topic-quick-actions a,
.topic-quick-actions .topic-quick-action-btn {
  border: 1px solid #e9edf9;
  border-radius: 9px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344172;
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  text-align: left;
  background: #fff;
  appearance: none;
  cursor: pointer;
}

.topic-quick-actions a svg,
.topic-quick-actions .topic-quick-action-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: #6070a4;
}

.topic-quick-actions a:hover,
.topic-quick-actions .topic-quick-action-btn:hover {
  background: #f8f9ff;
  border-color: #dce3f5;
}

.topic-modal-open {
  overflow: hidden;
}

.topic-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}

.topic-modal[hidden] {
  display: none;
}

.topic-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 42, 0.5);
}

.topic-modal-card {
  position: relative;
  width: min(540px, 100%);
  border: 1px solid #dbe3f7;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 26px 48px rgba(18, 35, 76, 0.22);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.topic-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topic-modal-head h3 {
  margin: 0;
  color: #253666;
  font-size: 17px;
  font-weight: 800;
}

.topic-modal-close {
  border: 1px solid #d5def7;
  border-radius: 0;
  background: #f6f8ff;
  color: #54649b;
  font-size: 18px;
  line-height: 1;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.topic-modal-close:hover {
  border-color: #becaf1;
  background: #edf2ff;
}

.topic-modal-form {
  display: grid;
  gap: 8px;
}

.topic-modal-form label {
  color: #5f6d99;
  font-size: 12px;
  font-weight: 700;
}

.topic-modal-form input {
  width: 100%;
  border: 1px solid #dbe3f7;
  border-radius: 0;
  padding: 10px 11px;
  font-size: 13px;
  color: #273564;
  outline: none;
}

.topic-modal-form select {
  width: 100%;
  border: 1px solid #dbe3f7;
  border-radius: 0;
  padding: 10px 11px;
  font-size: 13px;
  color: #273564;
  background: #fff;
  outline: none;
}

.topic-modal-form input:focus {
  border-color: #7d95e8;
  box-shadow: 0 0 0 3px rgba(101, 133, 232, 0.16);
}

.topic-modal-form select:focus {
  border-color: #7d95e8;
  box-shadow: 0 0 0 3px rgba(101, 133, 232, 0.16);
}

.topic-modal-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.topic-modal-btn {
  border: 1px solid #d3dcf7;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.topic-modal-btn.ghost {
  background: #fff;
  color: #5b6a98;
}

.topic-modal-btn.primary {
  background: #4d68f7;
  border-color: #4d68f7;
  color: #fff;
}

.topic-modal-btn.primary:hover {
  background: #3f58dd;
  border-color: #3f58dd;
}

.topic-modal-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.topic-revenue-value {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: #273563;
}

@media (max-width: 1440px) and (max-height: 900px) {

  .topics-panel {
    padding: 8px;
  }

  .topics-panel-compact {
    gap: 6px;
  }

  .topics-title.compact {
    font-size: 16px;
  }

  .topics-sort-meta {
    font-size: 10px;
  }

  .topics-toolbar-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .topics-filter-field {
    min-height: 30px;
    padding: 0 7px;
  }

  .topics-filter-field select,
  .topics-filter-field input {
    min-height: 22px;
    font-size: 10.5px;
  }

  .topics-filter-field select {
    min-width: 112px;
  }

  .topics-filter-field.year select {
    min-width: 72px;
  }

  .topics-filter-field.month select {
    min-width: 96px;
  }

  .topics-filter-field.sort select {
    min-width: 92px;
  }

  .topics-filter-field.dir select {
    min-width: 84px;
  }

  .topics-filter-field.search input {
    min-width: 0;
  }

  .topics-toolbar-form .topics-filter-field.search {
    grid-column: span 2;
  }

  .topics-chip {
    font-size: 10.5px;
  }

  .topics-pickbar,
  .topics-pick-footer {
    padding: 7px 9px;
  }

  .topics-pick-title {
    font-size: 12px;
  }

  .topics-pick-subtitle {
    font-size: 11px;
  }

  .topics-pick-actions {
    gap: 6px;
  }

  .topics-panel .vcpm-table thead th {
    font-size: 10px;
    letter-spacing: 0.2px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .topics-panel .vcpm-table td {
    font-size: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .topics-scroll {
    max-height: calc(100vh - 280px);
  }

  .topic-name-wrap.compact {
    gap: 6px;
  }

  .topic-name-wrap.compact strong,
  .topics-topic-link {
    font-size: 12px;
  }

  .topic-name-wrap.compact small {
    font-size: 9px;
  }

  .topic-dot {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }

  .topic-dot svg {
    width: 9px;
    height: 9px;
  }

  .topics-seo-main {
    font-size: 11px;
  }

  .topics-meta-soft,
  .seo-stack.compact .text-up,
  .seo-stack.compact .text-down,
  .conversion-stack.compact .text-up,
  .conversion-stack.compact .text-down {
    font-size: 9px;
  }

  .topics-score {
    font-size: 10px;
    padding: 2px 5px;
  }

  .topics-score.compact strong {
    font-size: 10px;
  }

  .topics-pagination {
    margin-top: 8px;
    gap: 5px;
  }

  .topics-page-link {
    min-width: 26px;
    height: 26px;
    font-size: 11px;
    padding: 0 7px;
  }
}

@media (max-width: 1320px) {

  .sales-flow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sales-workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-flow-grid,
  .pm-stage-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pm-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vcpm-layout.two-left {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vcpm-card-grid.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-detail-layout {
    grid-template-columns: 1fr;
  }

  .topic-detail-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vcpm-admin-layout {
    grid-template-columns: 1fr;
  }

  .vcpm-admin-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topics-toolbar-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1220px) {

  .sales-flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sales-workspace-grid {
    grid-template-columns: 1fr;
  }

  .pm-flow-grid,
  .pm-stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vcpm-card-grid.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vcpm-card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vcpm-card.stat .value {
    font-size: 26px;
  }

  .vcpm-card.stat .value.money {
    font-size: 22px;
  }

  .topic-analytics-grid {
    grid-template-columns: 1fr;
  }

  .topic-trend-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-trend-legend span {
    justify-content: flex-start;
  }

  .topic-trend-side-top {
    padding-bottom: 10px;
  }

  .topic-trend-data-wrap {
    max-height: 240px;
  }

  .topic-overview-grid-two {
    grid-template-columns: 1fr;
  }

  .topic-content-grid {
    grid-template-columns: 1fr;
  }

  .topic-content-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-funnel-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .topic-leads-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-funnel-item strong,
  .topic-funnel-item small {
    text-align: left;
  }

  .pm-focus-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topics-pickbar,
  .topics-pick-footer {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {

  .vcpm-nav-badge {
    display: inline-flex;
  }

  .sales-flow-grid {
    grid-template-columns: 1fr;
  }

  .pm-flow-grid,
  .pm-stage-grid,
  .pm-checklist-grid,
  .pm-meta-grid {
    grid-template-columns: 1fr;
  }

  .vcpm-menu-btn {
    display: inline-block;
  }

  .vcpm-sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .vcpm-sidebar.open {
    transform: translateX(0);
  }

  .vcpm-main-area {
    margin-left: 0;
    width: 100%;
  }

  .vcpm-topbar {
    padding: 12px 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .vcpm-topbar-left h1 {
    font-size: 24px;
  }

  .vcpm-topbar-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .vcpm-topbar-logo {
    width: 102px;
  }

  .vcpm-content {
    padding: 14px;
  }

  .vcpm-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .vcpm-hero h2 {
    font-size: 22px;
  }

  .vcpm-card-grid.five,
  .vcpm-card-grid.four,
  .vcpm-layout.two-left {
    grid-template-columns: 1fr;
  }

  .vcpm-card-grid.six,
  .topic-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .topic-overview-heading-row h2 {
    font-size: 24px;
  }

  .topic-month-row {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 6px;
  }

  .topic-detail-tabs {
    overflow: auto;
    flex-wrap: nowrap;
  }

  .topic-detail-tabs a {
    white-space: nowrap;
  }

  .vcpm-admin-grid.two,
  .vcpm-admin-grid.three {
    grid-template-columns: 1fr;
  }

  .funnel-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .vcpm-footer {
    flex-direction: column;
    padding: 12px 14px 18px;
  }

  .topics-title {
    font-size: 18px;
  }

  .topics-toolbar-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topics-pm-tabs-head,
  .topics-pm-directory-head {
    flex-direction: column;
    gap: 4px;
  }

  .topics-pm-directory-grid {
    grid-template-columns: 1fr;
  }

  .topics-sync-inline-form {
    justify-items: start;
  }

  .topics-sync-actions {
    justify-content: flex-start;
  }

  .topics-sync-status {
    text-align: left;
  }

  .topics-filter-field.search input {
    min-width: 0;
  }

  .topics-filter-field.month select {
    min-width: 106px;
  }

  .topics-filter-field.sort select,
  .topics-filter-field.dir select {
    min-width: 98px;
  }

  .topics-scroll {
    max-height: 62vh;
  }

  .topics-toolbar-form .topics-filter-field.search {
    grid-column: span 2;
  }

  .pm-focus-toolbar {
    grid-template-columns: 1fr;
  }

  .topics-pick-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .vcpm-admin-form input,
  .vcpm-admin-form select,
  .vcpm-admin-inline input,
  .vcpm-admin-inline select {
    font-size: 16px;
  }

  .vcpm-admin-form .action-btn,
  .vcpm-admin-assignment-card .action-btn {
    width: 100%;
  }

  .vcpm-admin-assignment-card {
    padding: 10px;
  }

  .vcpm-admin-assignment-card header {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .vcpm-admin-users-table th,
  .vcpm-admin-users-table td {
    padding: 8px 6px;
    font-size: 12px;
  }

  .vcpm-admin-users-table input,
  .vcpm-admin-users-table select {
    min-height: 32px;
  }
}

/* Topics layout guardrail: keep filter controls from colliding on narrow laptop widths */
.topics-head {
  align-items: start;
}

.topics-toolbar-form {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 6px;
}

.topics-toolbar-form .topics-filter-field {
  flex: 1 1 150px;
  min-width: 0;
}

.topics-toolbar-form .topics-filter-field.year {
  flex: 0 1 96px;
}

.topics-toolbar-form .topics-filter-field.month {
  flex: 0 1 120px;
}

.topics-toolbar-form .topics-filter-field.sort {
  flex: 0 1 120px;
}

.topics-toolbar-form .topics-filter-field.dir {
  flex: 0 1 110px;
}

.topics-toolbar-form .topics-filter-field.search {
  flex: 2 1 260px;
}

.topics-toolbar-form .topics-filter-field select {
  min-width: 0;
}

.topics-toolbar-form .topics-filter-field.search input {
  min-width: 0;
}

.topics-toolbar-form .topics-chip {
  flex: 0 0 auto;
}

@media (max-width: 1220px) {
  .topics-toolbar-form .topics-filter-field {
    flex: 1 1 140px;
  }

  .topics-toolbar-form .topics-filter-field.search {
    flex: 1 1 220px;
  }
}

@media (max-width: 1024px) {
  .topics-toolbar-form .topics-filter-field {
    flex: 1 1 calc(50% - 6px);
  }

  .topics-toolbar-form .topics-filter-field.search {
    flex: 1 1 100%;
  }
}

/* Training report redesign */
.tr-report-hero {
  border: 1px solid #e6ebf8;
  background: linear-gradient(120deg, #ffffff 0%, #f8faff 85%);
  padding: 15px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.tr-report-hero-main {
  display: grid;
  gap: 4px;
}

.tr-report-breadcrumb {
  color: #7d87ad;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tr-report-breadcrumb span {
  color: #a1aad0;
}

.tr-report-hero h2 {
  font-size: 31px;
  line-height: 1.1;
  font-weight: 800;
  color: #22315d;
}

.tr-report-hero p {
  font-size: 13px;
  color: #5f6b96;
}

.tr-report-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tr-report-btn {
  min-height: 36px;
  border: 1px solid #d6def2;
  border-radius: 9px;
  background: #ffffff;
  color: #344173;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tr-report-btn i {
  width: 14px;
  height: 14px;
}

.tr-report-btn.primary {
  background: #3767e8;
  border-color: #3767e8;
  color: #ffffff;
}

.tr-report-btn.primary:hover {
  background: #2d57ca;
  border-color: #2d57ca;
}

.tr-report-btn.ghost:hover {
  background: #f7f9ff;
}

.tr-report-alert-wrap {
  padding: 11px 13px;
}

.tr-report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.tr-report-kpi-card {
  border: 1px solid #e6ebf8;
  background: #ffffff;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tr-report-kpi-card:hover {
  border-color: #d2ddf6;
  box-shadow: 0 8px 18px rgba(53, 79, 161, 0.08);
  transform: translateY(-1px);
}

.tr-kpi-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tr-kpi-icon i,
.tr-kpi-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.tr-kpi-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.tr-report-kpi-card .label {
  color: #7380a8;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-report-kpi-card .value {
  color: #1f2d58;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

.tr-report-kpi-card .meta {
  color: #6f7ba4;
  font-size: 11px;
  line-height: 1.35;
}

.tr-report-kpi-card.tone-blue .tr-kpi-icon {
  background: #e8f0ff;
  color: #3777ea;
}

.tr-report-kpi-card.tone-amber .tr-kpi-icon {
  background: #fff3de;
  color: #d98d10;
}

.tr-report-kpi-card.tone-green .tr-kpi-icon {
  background: #e4f8ee;
  color: #1f9d5e;
}

.tr-report-kpi-card.tone-violet .tr-kpi-icon {
  background: #efeaff;
  color: #7f63f4;
}

.tr-report-kpi-card.tone-indigo .tr-kpi-icon {
  background: #e9f0ff;
  color: #4f7bf8;
}

.tr-report-kpi-card.tone-cyan .tr-kpi-icon {
  background: #e1f6f5;
  color: #189693;
}

.tr-report-kpi-card.tone-orange .tr-kpi-icon {
  background: #ffe9d9;
  color: #dd6a1c;
}

.tr-report-filter-card {
  padding: 12px;
}

.tr-report-filter-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(280px, 1.4fr) minmax(190px, 0.9fr) minmax(210px, 1fr) auto;
}

.tr-report-filter-grid label {
  display: grid;
  gap: 5px;
}

.tr-report-filter-grid label span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #60709e;
  font-weight: 700;
}

.tr-report-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tr-report-filter-actions .tr-report-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
}

.tr-report-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tr-filter-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dde3f4;
  border-radius: 10px;
  background: #f9fafe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tr-filter-field:hover {
  border-color: #c7d2ee;
  background: #f5f7fe;
}

.tr-filter-field:focus-within {
  border-color: #7e97ea;
  box-shadow: 0 0 0 3px rgba(92, 124, 223, 0.14);
  background: #ffffff;
}

.tr-filter-field i,
.tr-filter-field svg {
  width: 15px;
  height: 15px;
  color: #7b88b3;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.tr-filter-field:focus-within i,
.tr-filter-field:focus-within svg {
  color: #4763c9;
}

.tr-filter-field input,
.tr-filter-field select {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  color: #2b3a69;
  min-width: 0;
  padding: 0;
  height: 40px;
}

.tr-filter-field input::placeholder {
  color: #97a2c4;
}

.tr-filter-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 20px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%237b88b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

.tr-filter-search {
  flex: 1 1 260px;
  min-width: 220px;
}

.tr-filter-search input {
  width: 100%;
}

.tr-filter-select {
  flex: 0 0 150px;
}

.tr-filter-field select {
  width: 100%;
}

.tr-filter-date {
  flex: 0 0 auto;
}

.tr-filter-date input {
  width: 210px;
}

.tr-report-list-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tr-report-list-card .vcpm-table-wrap {
  flex: 1 1 auto;
  min-height: 258px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b9c4e6 #f1f4fc;
}

.tr-report-list-card .vcpm-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.tr-report-list-card .vcpm-table-wrap::-webkit-scrollbar-track {
  background: #f1f4fc;
  border-radius: 999px;
}

.tr-report-list-card .vcpm-table-wrap::-webkit-scrollbar-thumb {
  background: #b9c4e6;
  border-radius: 999px;
  border: 2px solid #f1f4fc;
}

.tr-report-list-card .vcpm-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #94a4dc;
}

.tr-report-table {
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
}

.tr-report-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8faff;
  box-shadow: inset 0 -1px 0 #e6ebf8;
}

.tr-report-table td strong {
  display: block;
  color: #2b3a69;
  line-height: 1.35;
}

.tr-report-table td:nth-child(1) {
  padding-left: 4px;
}

.tr-report-table th:nth-child(1),
.tr-report-table td:nth-child(1) {
  text-align: left;
}

.tr-event-subline {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: #7281ad;
  font-size: 11px;
  line-height: 1.3;
  min-width: 0;
  max-width: 100%;
}

.tr-event-subline i,
.tr-event-subline svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  stroke-width: 2.2;
}

.tr-event-subline span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.tr-company-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4b5a89;
  white-space: nowrap;
}

.tr-company-total i,
.tr-company-total svg {
  width: 14px;
  height: 14px;
  color: #8896c2;
  flex-shrink: 0;
}

.tr-company-total strong {
  color: #2b3a69;
  font-weight: 700;
}

.tr-company-group-cell {
  vertical-align: top;
  background: #f7f9ff;
}

.tr-company-group-cell strong {
  font-size: 12.5px;
}

.tr-company-group-cell span {
  display: block;
  color: #4a5687;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.tr-company-group-cell small {
  display: block;
  color: #7683ad;
}

.tr-company-group-cell .tr-wa-link {
  margin-top: 4px;
}

.tr-report-inline-actions {
  display: grid;
  gap: 8px;
}


.tr-inline-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tr-inline-btn {
  min-height: 30px;
  border: 1px solid #d4dcf3;
  border-radius: 8px;
  background: #ffffff;
  color: #3951a0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
}

.tr-inline-btn:hover {
  background: #f7f9ff;
}

.tr-inline-btn.success {
  border-color: #cbead9;
  color: #177f50;
  background: #ecfbf2;
}

.tr-inline-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background: #f2f4fa;
  color: #7b86ac;
  border-color: #d9dfef;
}

.tr-inline-icon-btn {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid #d4dcf3;
  border-radius: 8px;
  background: #ffffff;
  color: #3951a0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.tr-inline-icon-btn i,
.tr-inline-icon-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.tr-inline-icon-btn:hover {
  background: #f7f9ff;
}

.tr-inline-icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: #f2f4fa;
}

.tr-inline-icon-btn:disabled:hover {
  background: #f2f4fa;
}

.tr-inline-icon-btn.success {
  border-color: #cbead9;
  color: #177f50;
  background: #ecfbf2;
}

.tr-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid transparent;
}

.tr-pill.complete,
.tr-pill.ready,
.tr-pill.delivered,
.tr-pill.read,
.tr-pill.good {
  background: #eaf9ef;
  color: #187f50;
  border-color: #ccead9;
}

.tr-pill.sent,
.tr-pill.info {
  background: #f1ecff;
  color: #6547cb;
  border-color: #ddd3ff;
}

.tr-pill.queued,
.tr-pill.muted {
  background: #eff2fa;
  color: #6171a3;
  border-color: #dce2f1;
}

.tr-pill.warn {
  background: #fdf3e3;
  color: #a5690c;
  border-color: #f3ddb0;
}

.tr-pill.failed,
.tr-pill.danger,
.tr-pill.incomplete {
  background: #ffeef1;
  color: #b73745;
  border-color: #f5d2d8;
}

.tr-pill.outline {
  background: transparent;
  font-weight: 600;
}

.tr-pill.outline.blue {
  color: #3777ea;
  border-color: #bdd2f8;
}

.tr-pill.outline.violet {
  color: #7f63f4;
  border-color: #dbd2fb;
}

.tr-training-cell {
  padding-left: 4px;
}

#tr-report-detail-panel,
#tr-report-activity-log {
  scroll-margin-top: 94px;
}

.tr-training-link {
  color: #24407f;
  font-weight: 700;
  text-decoration: none;
}

.tr-training-link:hover {
  color: #2147ad;
  text-decoration: underline;
}

.tr-report-table tbody tr.is-active-row td {
  background: #eef3ff;
}

.tr-report-table tbody tr.is-active-row td:first-child {
  box-shadow: inset 3px 0 0 #3777ea;
}

.tr-next-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.tr-next-action i,
.tr-next-action svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.3;
}

.tr-next-action.tone-good {
  color: #187f50;
}

.tr-next-action.tone-info {
  color: #3777ea;
}

.tr-next-action.tone-muted {
  color: #6f7ba4;
}

.tr-next-action.tone-danger {
  color: #c8394a;
}

.tr-icon-pill {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.tr-icon-pill i,
.tr-icon-pill svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.tr-icon-pill.complete,
.tr-icon-pill.ready,
.tr-icon-pill.delivered,
.tr-icon-pill.read,
.tr-icon-pill.good {
  background: #eaf9ef;
  color: #187f50;
  border-color: #ccead9;
}

.tr-icon-pill.sent,
.tr-icon-pill.info {
  background: #f1ecff;
  color: #6547cb;
  border-color: #ddd3ff;
}

.tr-icon-pill.queued,
.tr-icon-pill.muted {
  background: #eff2fa;
  color: #6171a3;
  border-color: #dce2f1;
}

.tr-icon-pill.orange {
  background: #ffe8d6;
  color: #b5560e;
}

.tr-icon-pill.warn {
  background: #fdf3e3;
  color: #a5690c;
  border-color: #f3ddb0;
}

.tr-icon-pill.failed,
.tr-icon-pill.danger,
.tr-icon-pill.incomplete {
  background: #ffeef1;
  color: #b73745;
  border-color: #f5d2d8;
}

.tr-icon-pill.sm {
  width: 20px;
  height: 20px;
}

.tr-icon-pill.sm i,
.tr-icon-pill.sm svg {
  width: 11px;
  height: 11px;
}

.tr-status-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #eaeef8;
  border-radius: 8px;
  background: #f9fafe;
}

.tr-status-legend-title {
  font-size: 11px;
  font-weight: 700;
  color: #5f6d99;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tr-status-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4b5a89;
  white-space: nowrap;
}

.tr-status-legend-divider {
  width: 1px;
  height: 16px;
  background: #dde3f4;
}

.tr-icon-pill.action {
  width: 30px;
  height: 30px;
}

.tr-tip {
  position: relative;
}

@media (hover: hover) and (pointer: fine) {

  .tr-tip[data-tip]:hover::after,
  .tr-tip[data-tip]:focus-visible::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(24, 33, 64, 0.95);
    color: #ffffff;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    padding: 5px 7px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 25;
  }

  .tr-tip[data-tip]:hover::before,
  .tr-tip[data-tip]:focus-visible::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(24, 33, 64, 0.95);
    pointer-events: none;
    z-index: 24;
  }
}

@media (hover: none),
(pointer: coarse) {

  .tr-tip[data-tip]:focus::after,
  .tr-tip[data-tip]:active::after {
    content: attr(data-tip);
    position: absolute;
    right: 0;
    left: auto;
    bottom: calc(100% + 8px);
    transform: none;
    background: rgba(24, 33, 64, 0.95);
    color: #ffffff;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    padding: 5px 7px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 25;
  }

  .tr-tip[data-tip]:focus::before,
  .tr-tip[data-tip]:active::before {
    content: "";
    position: absolute;
    right: 6px;
    left: auto;
    bottom: calc(100% + 3px);
    transform: none;
    border: 5px solid transparent;
    border-top-color: rgba(24, 33, 64, 0.95);
    pointer-events: none;
    z-index: 24;
  }
}

.tr-report-detail-card {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.tr-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tr-detail-head h3 {
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  color: #1f2e59;
}

.tr-detail-head p {
  margin-top: 6px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tr-detail-head p span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5f6d99;
  font-size: 12px;
}

.tr-detail-head p span i {
  width: 14px;
  height: 14px;
}

.tr-detail-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tr-detail-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e6ebf7;
  overflow: auto;
}

.tr-detail-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #63719d;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 9px;
  white-space: nowrap;
  cursor: pointer;
}

.tr-detail-tabs button.active {
  color: #2c46a2;
  border-bottom-color: #3f66df;
}

.tr-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(300px, 1fr) minmax(320px, 1.1fr);
  gap: 11px;
}

.tr-panel.is-solo-panel,
.tr-panel-wide {
  grid-column: 1 / -1;
}

.tr-panel {
  border: 1px solid #e6ebf8;
  background: #ffffff;
  padding: 11px;
  display: grid;
  gap: 10px;
}

.tr-detail-grid>.tr-panel[hidden],
.tr-report-history-card[hidden] {
  display: none !important;
}

.tr-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tr-panel-head h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #425489;
}

.tr-panel-head span {
  color: #6f7aa1;
  font-size: 11px;
  font-weight: 700;
}

.tr-progress-wrap {
  display: grid;
  gap: 5px;
}

.tr-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #edf1fb;
  overflow: hidden;
}

.tr-progress-bar span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #2eb673 0%, #3285f8 100%);
}

.tr-progress-wrap small {
  color: #6674a0;
  font-size: 11px;
  font-weight: 700;
}

.tr-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.tr-checklist li {
  border: 1px solid #e9eef9;
  background: #fbfcff;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.tr-checklist .mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tr-checklist .mark.done {
  background: #1ea365;
}

.tr-checklist .mark.todo {
  background: #d35b67;
}

.tr-checklist .mark.partial {
  background: #e0a638;
}

.tr-checklist li span {
  color: #334276;
  font-size: 12px;
  font-weight: 600;
}

.tr-checklist li em {
  color: #7683ad;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-style: normal;
  font-weight: 700;
}

.tr-checklist-item {
  grid-template-columns: 14px minmax(0, 1fr) !important;
}

.tr-checklist-item-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.tr-checklist-item-body small {
  flex-basis: 100%;
  color: #7683ad;
  font-size: 11px;
}

.tr-checklist-item-body small a {
  color: #3951a0;
  font-weight: 600;
}

.tr-checklist-upload-form {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-checklist-upload-form .webinar-input {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 11px;
  flex: 1 1 auto;
}

.tr-checklist-status-form {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-checklist-status-form .webinar-input {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 11px;
  flex: 1 1 auto;
}

.tr-inline-btn.ghost {
  border-color: #d4dcf3;
  color: #6b7597;
  background: #f7f9ff;
}

.tr-checklist-status-pill {
  padding: 2px 8px !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.tr-checklist-flow-note {
  margin: 0 0 8px;
  color: #7683ad;
  font-size: 11px;
}

.tr-report-file-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px dashed #c7d2ef;
  background: #f7f9ff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.tr-report-file-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.tr-report-file-info i {
  width: 18px;
  height: 18px;
  color: #3951a0;
  flex-shrink: 0;
  margin-top: 2px;
}

.tr-report-file-info strong {
  display: block;
  font-size: 12.5px;
  color: #2b3a69;
}

.tr-report-file-info small {
  display: block;
  color: #7683ad;
  font-size: 11px;
}

.tr-report-file-info small a {
  color: #3951a0;
  font-weight: 600;
}

.tr-report-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tr-report-file-actions form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-report-file-actions .webinar-input {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 11px;
  width: auto;
}

.tr-ready-note {
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 9px;
  border: 1px solid #dce4f4;
}

.tr-ready-note.good {
  background: #ecfaf2;
  border-color: #cce8d8;
  color: #1c7f52;
}

.tr-ready-note.warn {
  background: #fff5ea;
  border-color: #f3dfbd;
  color: #b16a10;
}

.tr-summary-core {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.tr-donut {
  --percent: 0;
  width: 96px;
  height: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#24b074 calc(var(--percent) * 1%), #e9eef9 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.tr-donut::before {
  content: "";
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tr-donut strong,
.tr-donut small {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.tr-donut strong {
  font-size: 20px;
  line-height: 1;
  color: #2a3969;
}

.tr-donut small {
  color: #6f7ca6;
  font-size: 10px;
  margin-top: -3px;
}

.tr-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.tr-summary-list li {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #54628e;
  font-size: 12px;
}

.tr-summary-list li strong {
  color: #2c3c6d;
}

.tr-summary-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tr-summary-list .dot.mint {
  background: #2cb172;
}

.tr-summary-list .dot.blue {
  background: #4a83f6;
}

.tr-summary-list .dot.amber {
  background: #f4a437;
}

.tr-summary-list .dot.red {
  background: #d24859;
}

.tr-recipient-mini-list {
  display: grid;
  gap: 6px;
}

.tr-recipient-mini-list article {
  border: 1px solid #e9edf9;
  background: #fbfcff;
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}

.tr-recipient-mini-list article strong {
  font-size: 12px;
  color: #2f3e70;
}

.tr-recipient-mini-list article span,
.tr-recipient-mini-list article small {
  color: #6f7ca7;
  font-size: 11px;
}

.tr-participant-list-panel {
  grid-column: 1 / -1;
}

.tr-participant-note {
  margin: -2px 0 2px;
  color: #5d6b95;
  font-size: 12px;
  line-height: 1.45;
}

.tr-participant-table-wrap {
  border: 1px solid #e4eaf8;
  border-radius: 10px;
  overflow: auto;
  background: #ffffff;
}

.tr-participant-company-table {
  min-width: 840px;
}

.tr-participant-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

.tr-participant-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  background: #f7f9ff;
  color: #5e6c99;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 10px 11px;
  border-bottom: 1px solid #e6ebf8;
}

.tr-participant-table td {
  padding: 10px 11px;
  border-bottom: 1px solid #edf1fb;
  vertical-align: middle;
}

.tr-participant-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.tr-participant-table tbody tr:hover td {
  background: #f6f9ff;
}

.tr-participant-company-table td:nth-child(2) {
  font-weight: 700;
  color: #304274;
}

.tr-company-send-actions {
  display: grid;
  gap: 6px;
}

.tr-company-send-actions form {
  display: inline-flex;
}

.tr-company-send-actions .tr-inline-btn {
  min-height: 28px;
  font-size: 10.5px;
  padding: 4px 9px;
}

.tr-company-send-actions small {
  color: #6d7aa4;
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tr-company-send-actions .tr-pill {
  padding: 2px 7px;
}

.tr-company-send-hint.warn {
  color: #9b5f11;
  background: #fff4e4;
  border: 1px solid #f2d9ae;
  border-radius: 7px;
  padding: 3px 7px;
  line-height: 1.3;
}

.tr-company-group-row td {
  background: #eef2fc !important;
}

.tr-company-group-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px !important;
  border-bottom: 1px solid #dde3f4 !important;
}

.tr-company-group-header i,
.tr-company-group-header svg {
  width: 13px;
  height: 13px;
  color: #5f82e9;
  flex-shrink: 0;
}

.tr-company-group-header strong {
  color: #24407f;
  font-size: 12px;
}

.tr-company-group-header span {
  color: #7280aa;
  font-size: 11px;
  margin-left: auto;
}

.tr-person-cell {
  display: grid;
  gap: 2px;
}

.tr-person-cell strong {
  color: #2f3f70;
  font-size: 12px;
  line-height: 1.35;
}

.tr-person-cell small {
  color: #7280aa;
  font-size: 11px;
}

.tr-contact-link {
  color: #2f56c4;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.tr-contact-link:hover {
  color: #2147ad;
  text-decoration: underline;
}

.tr-muted-text {
  color: #7a86af;
  font-size: 12px;
}

.tr-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1ea365;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.tr-wa-link:hover {
  text-decoration: underline;
}

.tr-wa-link i {
  width: 12px;
  height: 12px;
}

.tr-response-meta {
  margin: 0;
  display: grid;
  gap: 8px;
}

.tr-response-meta div {
  display: grid;
  gap: 3px;
  padding-bottom: 7px;
  border-bottom: 1px solid #edf1fb;
}

.tr-response-meta div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tr-response-meta dt {
  color: #7a85ac;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.tr-response-meta dd {
  margin: 0;
  color: #2f3f70;
  font-size: 12px;
  line-height: 1.45;
}

.tr-opportunity-box {
  border: 1px solid #d9e4fb;
  background: #f4f8ff;
  padding: 9px;
}

.tr-opportunity-box p {
  color: #4b5a88;
  font-size: 12px;
  line-height: 1.45;
}

.tr-response-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tr-report-history-card {
  padding: 12px;
}

.tr-report-history-table {
  min-width: 1220px;
}

.tr-status-form {
  display: grid;
  grid-template-columns: minmax(112px, 140px) minmax(180px, 1fr) auto;
  gap: 6px;
}

@media (max-width: 1500px) {
  .tr-report-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1220px) {
  .tr-report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tr-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .tr-report-hero {
    flex-direction: column;
  }

  .tr-report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tr-detail-head {
    flex-direction: column;
  }

  .tr-detail-head h3 {
    font-size: 25px;
  }

  .tr-status-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tr-report-filter-grid {
    grid-template-columns: 1fr;
  }

  .tr-report-kpi-grid {
    grid-template-columns: 1fr;
  }

  .tr-summary-core {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .tr-participant-table {
    min-width: 760px;
  }
}

/* Training report scroll UX (tablet-desktop): vertical scroll only, no side scroll */
@media (min-width: 768px) {
  .vcpm-content {
    min-height: calc(100dvh - 142px);
    height: auto;
    padding: 12px 14px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .tr-report-screen {
    min-height: 0;
    display: grid;
  }

  .tr-event-progress-grid {
    grid-template-columns: 1fr;
  }

  .tr-event-timeline-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tr-report-filter-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .tr-report-history-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
  }

  .tr-report-table th,
  .tr-report-table td,
  .tr-report-history-table th,
  .tr-report-history-table td {
    white-space: normal;
    word-break: break-word;
  }

  .tr-report-history-card .vcpm-table-wrap {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .tr-report-list-card .vcpm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tr-report-inline-actions .webinar-action-group {
    flex-wrap: wrap;
  }

  .tr-status-form>* {
    min-width: 0;
  }

  .tr-report-table {
    min-width: 0;
    width: 100%;
  }

  .tr-report-history-table {
    min-width: 0;
  }
}

@media (max-width: 1366px) and (min-width: 768px) {
  .tr-report-hero h2 {
    font-size: 27px;
  }

  .tr-report-kpi-card .value {
    font-size: 24px;
  }

  .tr-report-table th:nth-child(3),
  .tr-report-table td:nth-child(3),
  .tr-report-table th:nth-child(9),
  .tr-report-table td:nth-child(9) {
    display: none;
  }
}

@media (max-width: 1180px) and (min-width: 768px) {
  .vcpm-content {
    min-height: calc(100dvh - 184px);
  }

  .tr-report-table th:nth-child(8),
  .tr-report-table td:nth-child(8) {
    display: none;
  }
}

/* Training report professional polish */
.tr-report-screen {
  gap: 12px;
}

.tr-report-hero,
.tr-report-screen>.vcpm-card {
  border-radius: 12px;
  border-color: #dfe6f7;
  box-shadow: 0 10px 24px rgba(33, 54, 122, 0.05);
}

.tr-report-hero {
  padding: 16px 18px;
  background: linear-gradient(125deg, #ffffff 0%, #f7faff 78%);
}

.tr-report-hero-main {
  gap: 5px;
}

.tr-report-hero p {
  max-width: 780px;
}

.tr-report-btn {
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tr-report-btn:hover {
  transform: translateY(-1px);
}

.tr-report-kpi-grid {
  gap: 11px;
}

.tr-report-kpi-card {
  border-radius: 10px;
  padding: 12px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tr-report-kpi-card:hover {
  border-color: #cfdaf5;
  box-shadow: 0 8px 18px rgba(53, 79, 161, 0.08);
}

.tr-report-filter-card {
  padding: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.tr-report-filter-grid {
  align-items: end;
  gap: 11px;
}

.tr-report-filter-actions {
  align-items: end;
}

.tr-report-filter-grid .webinar-input {
  border-color: #d8e0f4;
  min-height: 40px;
}

.tr-report-filter-grid .webinar-input:focus {
  border-color: #7e97ea;
  box-shadow: 0 0 0 3px rgba(92, 124, 223, 0.14);
}

.tr-report-list-card,
.tr-report-detail-card,
.tr-report-history-card {
  padding: 13px;
}

.tr-report-list-card .vcpm-card-head,
.tr-report-history-card .vcpm-card-head {
  margin-bottom: 10px;
}

.tr-report-table,
.tr-report-history-table {
  border-collapse: separate;
  border-spacing: 0;
}

.tr-report-table th,
.tr-report-history-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8faff;
  color: #5e6c99;
  letter-spacing: 0.04em;
  font-size: 11px;
  border-bottom: 1px solid #e6ebf8;
  padding: 10px 11px;
  white-space: nowrap;
}

.tr-report-table td,
.tr-report-history-table td {
  border-bottom: 1px solid #edf1fb;
  padding: 9px 11px;
  vertical-align: middle;
}

.tr-report-table tbody tr:nth-child(even) td,
.tr-report-history-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.tr-report-table tbody tr:hover td,
.tr-report-history-table tbody tr:hover td {
  background: #f6f9ff;
}

.tr-empty-cell {
  padding: 18px 14px !important;
  background: #fbfcff;
}

.tr-empty-inline {
  border: 1px dashed #d8e0f3;
  border-radius: 10px;
  background: #ffffff;
  padding: 16px 14px;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.tr-empty-inline i,
.tr-empty-inline svg {
  width: 18px;
  height: 18px;
  color: #6582d8;
  stroke-width: 2.1;
}

.tr-empty-inline strong {
  color: #334477;
  font-size: 13px;
}

.tr-empty-inline p {
  color: #7281ad;
  font-size: 12px;
  line-height: 1.45;
  max-width: 520px;
}

.tr-empty-inline.compact {
  align-items: start;
  justify-items: start;
  text-align: left;
  padding: 10px 11px;
}

.tr-empty-inline.compact p {
  font-size: 11px;
  max-width: none;
}

.tr-training-link {
  color: #2f56c4;
  font-weight: 700;
  text-decoration: none;
}

.tr-training-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.tr-training-link:hover {
  color: #2147ad;
  text-decoration: underline;
}

.tr-report-table th:nth-child(1),
.tr-report-table td:nth-child(1) {
  width: 15%;
}

.tr-detail-placeholder-card {
  min-height: 180px;
  display: grid;
  align-items: center;
}

.tr-detail-placeholder-card .tr-empty-inline {
  margin: 8px 6px;
}

.tr-event-modal-card {
  width: min(980px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
}

.tr-event-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tr-event-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e0e7f7;
  border-radius: 999px;
  background: #f8faff;
  color: #405081;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

.tr-event-modal-meta span i,
.tr-event-modal-meta span svg {
  width: 14px;
  height: 14px;
}

.tr-event-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 0;
}

.tr-event-modal-tabs button {
  border: 1px solid #dbe4f7;
  border-radius: 999px;
  background: #f8faff;
  color: #4f5d87;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tr-event-modal-tabs button i,
.tr-event-modal-tabs button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.tr-event-modal-tabs button.active {
  border-color: #8ea8ee;
  background: #edf3ff;
  color: #284caa;
}

.tr-event-modal-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #e3e9f8;
  border-radius: 10px;
  background: #fcfdff;
  padding: 10px;
}

.tr-event-kpi-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.tr-event-kpi-card {
  border: 1px solid #e3e9f8;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.tr-event-kpi-card small {
  color: #66759f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tr-event-kpi-card strong {
  color: #243668;
  font-size: 15px;
  line-height: 1.25;
}

.tr-event-kpi-card span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #61719d;
  font-size: 11px;
  font-weight: 600;
}

.tr-event-kpi-card span i,
.tr-event-kpi-card span svg {
  width: 13px;
  height: 13px;
}

.tr-event-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tr-event-chart-card {
  border: 1px solid #e3e9f8;
  border-radius: 10px;
  background: #ffffff;
  padding: 11px;
  display: grid;
  gap: 8px;
}

.tr-event-chart-card h4 {
  font-size: 13px;
  color: #2d3f71;
}

.tr-event-donut {
  --value: 0;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 2px auto;
  background: conic-gradient(#4f7df0 calc(var(--value) * 1%), #e8eefb 0);
  display: grid;
  place-items: center;
  position: relative;
}

.tr-event-donut::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e7ecfa;
}

.tr-event-donut strong,
.tr-event-donut small {
  position: relative;
  z-index: 1;
}

.tr-event-donut strong {
  font-size: 18px;
  color: #28438d;
  line-height: 1;
}

.tr-event-donut small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: #6c79a5;
}

.tr-event-donut.mint {
  background: conic-gradient(#2fb28a calc(var(--value) * 1%), #e8eefb 0);
}

.tr-event-chart-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.tr-event-chart-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #5b6992;
  font-size: 12px;
}

.tr-event-chart-card li strong {
  color: #2b3b6d;
  font-size: 12px;
}

.tr-event-progress-note {
  margin: 0;
  color: #51608b;
  font-size: 12px;
  line-height: 1.45;
}

.tr-event-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tr-event-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dde6f8;
  border-radius: 999px;
  background: #f5f8ff;
  color: #465788;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
}

.tr-event-legend span i,
.tr-event-legend span svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.1;
}

.tr-event-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.tr-event-progress-card {
  border: 1px solid #e3e9f8;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.tr-event-progress-card h4 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #2d3d70;
}

.tr-event-progress-card h4 i,
.tr-event-progress-card h4 svg {
  width: 13px;
  height: 13px;
}

.tr-event-progress-card p {
  font-size: 12px;
  color: #5d6a95;
}

.tr-event-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #edf1fb;
  overflow: hidden;
}

.tr-event-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2ea56b 0%, #4e80ed 100%);
}

.tr-event-timeline-wrap {
  border: 1px solid #e3e9f8;
  border-radius: 10px;
  background: #fcfdff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.tr-event-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tr-event-timeline-head h4 {
  font-size: 13px;
  color: #2f3f72;
}

.tr-event-timeline-list {
  display: grid;
  gap: 8px;
}

.tr-event-timeline-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 8px;
}

.tr-event-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5f82e9;
  margin-top: 8px;
}

.tr-event-timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.tr-event-timeline-top small {
  color: #6a789f;
  font-size: 11px;
}

.tr-event-timeline-item strong {
  display: block;
  color: #2d3d6f;
  font-size: 12px;
}

.tr-event-timeline-item strong span {
  color: #60709b;
  font-weight: 600;
}

.tr-event-timeline-item p {
  margin-top: 3px;
  color: #5b688f;
  font-size: 12px;
  line-height: 1.4;
}

.tr-report-table th:nth-child(1),
.tr-report-table td:nth-child(1) {
  width: 32%;
}

.tr-report-table th:nth-child(2),
.tr-report-table td:nth-child(2) {
  width: 11%;
}

.tr-report-table th:nth-child(3),
.tr-report-table td:nth-child(3) {
  width: 8%;
}

.tr-report-table th:nth-child(4),
.tr-report-table td:nth-child(4) {
  width: 10%;
}

.tr-company-group-cell {
  background: linear-gradient(180deg, #f8faff 0%, #f5f8ff 100%) !important;
  border-left: 2px solid #d5dff7;
}

.tr-company-group-cell .tr-wa-link {
  margin-top: 6px;
}

.tr-report-inline-actions {
  gap: 6px;
}

.tr-inline-icon-btn,
.tr-icon-pill.action,
.tr-icon-pill {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.tr-inline-icon-btn {
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.tr-inline-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(65, 92, 172, 0.14);
}

.tr-detail-tabs {
  padding-bottom: 2px;
}

.tr-detail-tabs button {
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
}

.tr-detail-tabs button.active {
  background: #f4f7ff;
}

.tr-panel {
  border-radius: 10px;
  border-color: #e2e8f8;
}

.tr-checklist-item {
  border-radius: 8px;
}

.tr-checklist-empty {
  background: #ffffff !important;
}

.tr-checklist-empty .tr-empty-inline {
  border-style: solid;
}

.tr-checklist-item:hover {
  border-color: #d5def5;
  background: #f7f9ff;
}

.tr-checklist-upload-form {
  align-items: flex-start;
}

.tr-checklist-upload-form .webinar-input {
  min-height: 34px;
}

.tr-opportunity-box {
  border-radius: 8px;
}

.tr-status-form .webinar-input {
  min-height: 34px;
}

.tr-status-form .tr-inline-icon-btn {
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .tr-report-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .tr-report-btn {
    min-height: 34px;
  }

  .tr-report-table th:nth-child(1),
  .tr-report-table td:nth-child(1),
  .tr-report-table th:nth-child(2),
  .tr-report-table td:nth-child(2),
  .tr-report-table th:nth-child(3),
  .tr-report-table td:nth-child(3),
  .tr-report-table th:nth-child(4),
  .tr-report-table td:nth-child(4),
  .tr-report-table th:nth-child(8),
  .tr-report-table td:nth-child(8) {
    width: auto;
  }

  .tr-event-progress-grid {
    grid-template-columns: 1fr;
  }

  .tr-event-kpi-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tr-event-chart-grid {
    grid-template-columns: 1fr;
  }

  .tr-event-legend {
    gap: 6px;
  }

  .tr-event-legend span {
    font-size: 10.5px;
    padding: 4px 8px;
  }

  .tr-event-modal-tabs {
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .tr-event-timeline-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tr-report-filter-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .tr-event-kpi-cards {
    grid-template-columns: 1fr;
  }

  .tr-event-legend {
    display: grid;
  }

  .tr-event-modal-card {
    padding: 11px;
  }
}

/* Training report: tablet polish (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .tr-report-screen {
    gap: 14px;
  }

  .tr-report-hero {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 18px 20px;
  }

  .tr-report-hero-main h2 {
    font-size: 24px;
  }

  .tr-report-hero-actions {
    width: auto;
  }

  .tr-report-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .tr-report-kpi-card {
    padding: 13px;
  }

  .tr-report-kpi-card .value {
    font-size: 21px;
  }

  .tr-filter-field {
    min-height: 42px;
  }

  .tr-report-filter-bar {
    gap: 10px 12px;
  }

  .tr-filter-search {
    flex-basis: 100%;
  }

  .tr-filter-select,
  .tr-filter-date {
    flex: 1 1 0;
    min-width: 160px;
  }

  .tr-filter-date input {
    width: 100%;
  }

  .tr-report-filter-actions {
    flex-basis: 100%;
    justify-content: flex-end;
  }

  .tr-report-list-card .vcpm-table-wrap {
    max-height: calc(100vh - 360px);
    min-height: 220px;
  }

  .tr-report-table th,
  .tr-report-table td {
    padding: 10px 9px;
    font-size: 12px;
  }

  .tr-report-table th:nth-child(1),
  .tr-report-table td:nth-child(1) {
    width: 36%;
  }

  .tr-report-table th:nth-child(4),
  .tr-report-table td:nth-child(4) {
    width: 10%;
  }

  .tr-event-subline {
    font-size: 11px;
  }

  .tr-detail-head {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tr-detail-head h3 {
    font-size: 22px;
  }

  .tr-detail-tabs {
    gap: 6px;
  }

  .tr-detail-tabs button {
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .tr-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tr-detail-grid>article:last-child {
    grid-column: 1 / -1;
  }

  .tr-panel {
    padding: 13px;
  }
}

/* ===== Active Sales Overview ===== */
.as-screen {
  display: grid;
  gap: 18px;
}

.as-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.as-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow);
}

.as-stat-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.as-stat-icon i,
.as-stat-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.as-stat-card.tone-blue .as-stat-icon {
  background: #e8f0ff;
  color: #3777ea;
}

.as-stat-card.tone-green .as-stat-icon {
  background: #e4f8ee;
  color: #1f9d5e;
}

.as-stat-card.tone-violet .as-stat-icon {
  background: #efeaff;
  color: #7f63f4;
}

.as-stat-card.tone-amber .as-stat-icon {
  background: #fff3de;
  color: #d98d10;
}

.as-stat-card.tone-red .as-stat-icon {
  background: #fde7e8;
  color: #de3d46;
}

.as-stat-card.tone-teal .as-stat-icon {
  background: #e1f6f5;
  color: #189693;
}

.as-stat-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.as-stat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.as-stat-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-stat-meta {
  font-size: 11px;
  color: var(--muted);
}

.as-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.as-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.as-side {
  display: grid;
  gap: 18px;
}

.as-training-head,
.as-detail-head,
.as-funnel-head,
.as-calendar-head,
.as-priority-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.as-training-head h2,
.as-funnel-head h2,
.as-calendar-head h2,
.as-priority-head h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.as-training-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-select-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: #f9fafe;
  cursor: pointer;
}

.as-select-field i,
.as-select-field svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.as-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.as-btn i,
.as-btn svg {
  width: 14px;
  height: 14px;
}

.as-btn.primary {
  background: var(--violet);
  border-color: var(--violet);
  color: #ffffff;
}

.as-btn.sm {
  padding: 6px 11px;
  font-size: 11.5px;
}

.as-training-table th,
.as-training-table td {
  vertical-align: top;
}

.as-training-table tr.is-selected {
  background: #f7f5ff;
}

.as-date-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-date-day {
  font-size: 18px;
  font-weight: 800;
  color: var(--violet);
}

.as-date-mon {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.3;
}

.as-training-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.as-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.as-tag.tone-blue {
  background: #e8f0ff;
  color: #3269e0;
}

.as-tag.tone-violet {
  background: #efeaff;
  color: #7f63f4;
}

.as-peserta-cell {
  min-width: 120px;
}

.as-peserta-row {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.as-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #eef0fa;
  overflow: hidden;
  margin-bottom: 3px;
}

.as-progress-track.lg {
  height: 9px;
  margin: 10px 0;
}

.as-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.as-progress-fill.tone-green {
  background: var(--green);
}

.as-progress-fill.tone-amber {
  background: var(--amber);
}

.as-progress-fill.tone-red {
  background: var(--danger);
}

.as-profit-cell {
  font-weight: 700;
  font-size: 12.5px;
}

.as-gap-value {
  color: var(--danger);
  font-weight: 700;
  font-size: 12.5px;
}

.as-gap-zero {
  color: var(--green);
  font-weight: 700;
}

.as-health-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.as-health-badge.tone-green {
  background: #e4f8ee;
  color: #1f9d5e;
}

.as-health-badge.tone-amber {
  background: #fff3de;
  color: #d98d10;
}

.as-health-badge.tone-red {
  background: #fde7e8;
  color: #de3d46;
}

.as-prospecting-mini {
  display: grid;
  gap: 3px;
  min-width: 130px;
}

.as-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.as-mini-row b {
  color: var(--text);
}

.as-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-link-btn {
  color: var(--violet);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
}

.as-kebab-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
}

.as-kebab-btn i,
.as-kebab-btn svg {
  width: 14px;
  height: 14px;
}

.as-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px 0;
}

.as-show-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--violet);
  text-decoration: none;
}

.as-show-more i,
.as-show-more svg {
  width: 14px;
  height: 14px;
}

.as-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.as-detail-title h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.as-back-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.as-back-btn i,
.as-back-btn svg {
  width: 15px;
  height: 15px;
}

.as-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 14px;
}

.as-detail-meta i,
.as-detail-meta svg {
  width: 13px;
  height: 13px;
}

.as-dot {
  color: var(--border);
}

.as-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.as-tab {
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  font-family: inherit;
  white-space: nowrap;
}

.as-tab.active {
  color: var(--violet);
  border-bottom-color: var(--violet);
}

.as-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.as-detail-panel {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
  background: #fbfbfe;
}

.as-detail-panel h3 {
  font-size: 12.5px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text);
}

.as-summary-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.as-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.as-summary-row dt {
  font-size: 12px;
  color: var(--muted);
}

.as-summary-row dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.as-donut-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.as-donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.as-donut-hole {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
}

.as-donut-hole strong {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.as-donut-hole span {
  font-size: 10.5px;
  color: var(--muted);
}

.as-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  width: 100%;
  font-size: 11.5px;
  color: var(--muted);
}

.as-donut-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.as-donut-legend b {
  color: var(--text);
}

.as-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.as-target-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 8px;
}

.as-target-row b {
  color: var(--text);
}

.as-target-note {
  font-size: 11.5px;
  color: var(--muted);
  margin: 6px 0 0;
}

.as-quick-actions {
  display: grid;
  gap: 8px;
}

.as-quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
}

.as-quick-action b {
  display: block;
  font-size: 12px;
  color: var(--text);
}

.as-quick-action small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

.as-quick-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #efeaff;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.as-quick-icon i,
.as-quick-icon svg {
  width: 15px;
  height: 15px;
}

.as-funnel-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.as-funnel-step {
  display: grid;
  gap: 2px;
  min-width: 84px;
}

.as-funnel-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.as-funnel-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.as-funnel-percent {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
}

.as-funnel-arrow {
  color: var(--border);
  flex-shrink: 0;
}

.as-funnel-arrow i,
.as-funnel-arrow svg {
  width: 16px;
  height: 16px;
}

.as-calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.as-calendar-nav button {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
}

.as-calendar-nav button i,
.as-calendar-nav button svg {
  width: 12px;
  height: 12px;
}

.as-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.as-calendar-dow {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 4px;
}

.as-calendar-day {
  font-size: 12px;
  padding: 6px 0;
  border-radius: 8px;
  color: var(--text);
  position: relative;
}

.as-calendar-day.is-muted {
  color: #c7cbe4;
}

.as-calendar-day.is-today {
  background: var(--violet);
  color: #ffffff;
  font-weight: 800;
}

.as-calendar-day.has-mark::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.as-calendar-day.mark-critical::after {
  background: var(--danger);
}

.as-calendar-day.mark-attention::after {
  background: var(--amber);
}

.as-calendar-day.mark-healthy::after {
  background: var(--green);
}

.as-calendar-day.is-today.has-mark::after {
  background: #ffffff;
}

.as-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}

.as-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.as-calendar-legend .as-legend-dot.mark-critical {
  background: var(--danger);
}

.as-calendar-legend .as-legend-dot.mark-attention {
  background: var(--amber);
}

.as-calendar-legend .as-legend-dot.mark-healthy {
  background: var(--green);
}

.as-priority-list {
  display: grid;
  gap: 12px;
}

.as-priority-item {
  display: flex;
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px;
}

.as-priority-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--violet);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.as-priority-body {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.as-priority-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.as-priority-top b {
  font-size: 12.5px;
  color: var(--text);
}

.as-priority-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.as-priority-bottom small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

.as-priority-profit {
  font-size: 12.5px;
  color: var(--green);
}

.as-sim-source {
  font-size: 12px;
  color: var(--muted);
  background: #fbfbfe;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
}

.as-sim-source b {
  color: var(--text);
}

.as-tabs-sm {
  margin-bottom: 12px;
}

.as-tabs-sm .as-tab {
  padding: 7px 12px;
  font-size: 12px;
}

.as-sim-table-wrap {
  margin-bottom: 18px;
}

.as-sim-table th,
.as-sim-table td {
  white-space: nowrap;
  font-size: 12px;
}

.as-sim-summary {
  margin-top: 6px;
}

.as-sim-summary h3 {
  font-size: 12.5px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}

.as-sim-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.as-sim-summary-table thead tr:first-child th {
  background: #efeaff;
  color: var(--violet);
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .as-sim-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1280px) {
  .as-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .as-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .as-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .as-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Active Sales - Top Profit Opportunities layout */
.as2-screen {
  display: grid;
  gap: 18px;
}

.as2-alert {
  background: #fde7e8;
  border: 1px solid #f6c4c7;
  color: var(--danger);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

.as2-hero-row {
  display: flex;
  justify-content: flex-end;
}

.as2-quote {
  background: linear-gradient(135deg, #eef1ff 0%, #f7f4ff 100%);
  border: 1px solid #e3e2fb;
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
}

.as2-quote i {
  width: 18px;
  height: 18px;
  color: var(--violet);
  flex-shrink: 0;
}

.as2-quote p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.as2-quote span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.as2-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.as2-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow);
}

.as2-stat-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.as2-stat-icon i {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.as2-stat-card.tone-blue .as2-stat-icon { background: #e8f0ff; color: #3777ea; }
.as2-stat-card.tone-green .as2-stat-icon { background: #e4f8ee; color: #1f9d5e; }
.as2-stat-card.tone-violet .as2-stat-icon { background: #efeaff; color: #7f63f4; }
.as2-stat-card.tone-amber .as2-stat-icon { background: #fff3de; color: #d98d10; }
.as2-stat-card.tone-teal .as2-stat-icon { background: #e1f6f5; color: #189693; }

.as2-stat-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.as2-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.as2-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.as2-stat-meta {
  font-size: 11px;
  color: var(--muted);
}

.as2-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.as2-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.as2-section-head h2 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.as2-section-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.as2-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
}

.as2-link i {
  width: 14px;
  height: 14px;
}

.as2-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 20px 0;
  text-align: center;
}

.as2-opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.as2-opportunity-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fbfbfe;
}

.as2-opp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.as2-opp-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: #b9c0da;
}

.as2-opp-rank.rank-1 { background: linear-gradient(135deg, #f6b93b, #e2861a); }
.as2-opp-rank.rank-2 { background: linear-gradient(135deg, #9aa4c4, #6b7193); }
.as2-opp-rank.rank-3 { background: linear-gradient(135deg, #d68a52, #b6693a); }

.as2-opp-h {
  background: #fde7e8;
  color: var(--danger);
  font-weight: 800;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
}

.as2-opportunity-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.as2-opp-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.as2-opp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.as2-opp-meta i {
  width: 13px;
  height: 13px;
}

.as2-opp-participants {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--border-soft);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.as2-opp-participants b {
  color: var(--text);
  font-size: 13px;
}

.as2-opp-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.as2-opp-col {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.as2-opp-col.highlight {
  border-color: #cdeedd;
  background: #f2fbf6;
}

.as2-opp-col h4 {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.as2-opp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  gap: 8px;
}

.as2-opp-row b {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.as2-opp-col.highlight .as2-opp-row:last-child b {
  color: #1f9d5e;
}

.as2-opp-uplift {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e7f8ee;
  color: #1f9d5e;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  padding: 9px;
}

.as2-opp-uplift i {
  width: 15px;
  height: 15px;
}

.as2-opp-uplift b {
  font-size: 14px;
  font-weight: 800;
}

.as2-opp-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.as2-opp-actions-full {
  grid-column: 1 / -1;
}

.as2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
}

.as2-btn i {
  width: 14px;
  height: 14px;
}

.as2-btn.ghost {
  background: #fff;
  color: var(--text);
}

.as2-btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.as2-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as2-filter label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.as2-section-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.as2-filter {
  flex-wrap: wrap;
}

.as2-filter input[type="month"],
.as2-filter select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
}

.as2-events-table th,
.as2-events-table td {
  white-space: nowrap;
}

.as2-status-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.as2-status-tag.tone-gold { background: #fff3de; color: #b4790a; }
.as2-status-tag.tone-amber { background: #fff3de; color: #d98d10; }
.as2-status-tag.tone-blue { background: #e8f0ff; color: #3777ea; }

.as2-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  height: 220px;
  padding: 10px 8px 0;
  border-bottom: 1px solid var(--border);
}

.as2-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.as2-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
  width: 100%;
  justify-content: center;
}

.as2-bar {
  width: 16px;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}

.as2-bar.current-revenue { background: #3d6bf2; }
.as2-bar.current-cost { background: #f49d37; }
.as2-bar.target-revenue { background: #9fb8ff; }
.as2-bar.target-cost { background: #ffce93; }

.as2-bar-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  max-width: 120px;
}

.as2-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.as2-bar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.as2-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.as2-dot.current-revenue { background: #3d6bf2; }
.as2-dot.current-cost { background: #f49d37; }
.as2-dot.target-revenue { background: #9fb8ff; }
.as2-dot.target-cost { background: #ffce93; }

.as2-banner {
  background: linear-gradient(135deg, #2f4bd6 0%, #4f2fb8 100%);
  border-radius: 16px;
  padding: 28px;
  color: #fff;
  text-align: center;
}

.as2-banner h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.as2-banner p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

@media (max-width: 1100px) {
  .as2-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .as2-opportunity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .as2-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as2-opportunity-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .as2-opp-compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Active Sales - Find Leads page */
.as2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.as2-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.as2-breadcrumb .is-current {
  color: var(--text);
  font-weight: 700;
}

.as2-success {
  background: #e7f8ee;
  border: 1px solid #cdeedd;
  color: #1f9d5e;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

.as2-lead-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: center;
}

.as2-lead-info {
  display: grid;
  gap: 8px;
}

.as2-lead-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.as2-lead-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.as2-lead-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.as2-lead-uplift {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e7f8ee;
  border-radius: 12px;
  padding: 14px;
  color: #1f9d5e;
}

.as2-lead-uplift i {
  width: 22px;
  height: 22px;
}

.as2-lead-uplift span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
}

.as2-lead-uplift b {
  font-size: 17px;
  font-weight: 800;
}

.as2-manual-note {
  display: flex;
  gap: 10px;
  background: #eef1ff;
  border: 1px solid #e3e2fb;
  border-radius: 12px;
  padding: 12px 16px;
  align-items: flex-start;
}

.as2-manual-note i {
  width: 18px;
  height: 18px;
  color: var(--violet);
  flex-shrink: 0;
  margin-top: 2px;
}

.as2-manual-note p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
}

.as2-manual-note a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.as2-lead-table td,
.as2-lead-table th {
  vertical-align: top;
}

.as2-source-detail {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  max-width: 220px;
}

.as2-lead-submit {
  margin-top: 14px;
  width: 100%;
}

.as2-selected-list {
  display: grid;
  gap: 10px;
}

.as2-selected-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.as2-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.as2-selected-head b {
  display: block;
  font-size: 13.5px;
  color: var(--text);
}

.as2-selected-company {
  font-size: 11.5px;
  color: var(--muted);
}

.as2-selected-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.as2-log-activity {
  margin-top: 10px;
}

.as2-log-activity summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

.as2-log-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.as2-log-form select,
.as2-log-form textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
  resize: vertical;
}

.as2-btn.sm {
  padding: 6px 10px;
  font-size: 11.5px;
  justify-self: start;
}

@media (max-width: 1000px) {
  .as2-lead-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.as2-alert,
.as2-success {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as2-alert i,
.as2-success i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.as2-breadcrumb i {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.as2-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.as2-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.as2-dot-tone {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.as2-dot-tone.tone-violet { background: #7f63f4; }
.as2-dot-tone.tone-amber { background: #d98d10; }
.as2-dot-tone.tone-blue { background: #3777ea; }

.as2-status-tag.tone-violet { background: #efeaff; color: #7f63f4; }

.as2-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 36px 20px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}

.as2-empty-box i {
  width: 26px;
  height: 26px;
  color: #c3c8e0;
  margin-bottom: 4px;
}

.as2-empty-box p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.as2-empty-box small {
  font-size: 11.5px;
  color: var(--muted);
}

.as2-check-col {
  width: 34px;
}

.as2-lead-table tbody tr:hover {
  background: var(--border-soft);
}

.as2-lead-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.as2-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f2fb8, #7f63f4);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.as2-contact-cell {
  display: grid;
  gap: 3px;
}

.as2-contact-cell span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}

.as2-contact-cell span.muted {
  color: var(--muted);
}

.as2-contact-cell i {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.as2-nowrap {
  white-space: nowrap;
}

.as2-lead-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.as2-selected-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.as2-lead-actions .as2-btn {
  min-width: 260px;
}

.as2-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.as2-selected-item {
  transition: box-shadow 0.15s ease;
}

.as2-selected-item:hover {
  box-shadow: var(--shadow);
}

.as2-log-activity summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.as2-log-activity summary i {
  width: 13px;
  height: 13px;
}

@media (max-width: 720px) {
  .as2-lead-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .as2-lead-actions .as2-btn {
    min-width: 0;
  }
}

/* Active Sales - Find Leads: compact CRM decision workspace */
.as3-screen {
  display: grid;
  gap: 12px;
  padding-bottom: 70px;
}

.as3-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  align-items: stretch;
}

.as3-strip-seg {
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  display: grid;
  gap: 4px;
  align-content: center;
}

.as3-strip-event h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.as3-strip-event p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

.as3-seg-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.as3-seg-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.as3-seg-row span {
  color: var(--muted);
}

.as3-seg-row b {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.as3-strip-uplift {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, #1f9d5e 0%, #16794a 100%);
  color: #fff;
  min-width: 170px;
}

.as3-strip-uplift span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

.as3-strip-uplift b {
  font-size: 21px;
  font-weight: 800;
}

.as3-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef1ff;
  border: 1px solid #e3e2fb;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text);
}

.as3-notice i {
  width: 15px;
  height: 15px;
  color: var(--violet);
  flex-shrink: 0;
}

.as3-segment-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.as3-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.as3-chip b {
  font-weight: 800;
  color: var(--text);
}

.as3-chip:hover {
  border-color: var(--violet);
}

.as3-chip.is-active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.as3-chip.is-active b {
  color: #fff;
}

.as3-already-selected {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1f9d5e;
  text-decoration: none;
}

.as3-already-selected i {
  width: 14px;
  height: 14px;
}

.as3-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.as3-search {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--surface);
  flex: 1;
  min-width: 200px;
}

.as3-search i {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.as3-search input {
  border: none;
  outline: none;
  font-size: 12.5px;
  width: 100%;
  color: var(--text);
  font-family: inherit;
}

.as3-toolbar select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}

.as3-table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
}

.as3-lead-table {
  font-size: 12.5px;
}

.as3-lead-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 8px 10px;
}

.as3-lead-table td {
  padding: 6px 10px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-soft);
}

.as3-lead-table tbody tr {
  height: 52px;
}

.as3-lead-table tbody tr:hover {
  background: var(--border-soft);
}

.as3-check-col {
  width: 30px;
}

.as3-contact-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as2-avatar.sm {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.as3-contact-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.as3-contact-text b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text);
  font-weight: 700;
}

.as3-contact-text b .as4-status-icon {
  width: 12px;
  height: 12px;
}

.as3-contact-text small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.as3-contact-text small.muted {
  color: var(--muted);
}

.as3-contact-text small i {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.as3-history-cell {
  display: grid;
  gap: 1px;
}

.as3-history-cell span {
  font-size: 12px;
  color: var(--text);
}

.as3-history-cell small {
  font-size: 10.5px;
  color: var(--muted);
}

.as3-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.as3-pagination-controls {
  display: flex;
  gap: 4px;
}

#paginationInfo {
  font-size: 11.5px;
  color: var(--muted);
}

.as3-page-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 11.5px;
  cursor: pointer;
}

.as3-page-btn.is-active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.as3-sticky-bar[hidden] {
  display: none;
}

.as3-sticky-bar {
  position: sticky;
  bottom: 12px;
  margin-top: 14px;
  background: var(--violet-900);
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-premium);
  flex-wrap: wrap;
  z-index: 20;
}

.as3-sticky-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.as3-sticky-info b {
  font-size: 13.5px;
  font-weight: 800;
}

.as3-sticky-info span {
  font-size: 12px;
  opacity: 0.8;
}

.as3-sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as3-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.as3-btn i {
  width: 14px;
  height: 14px;
}

.as3-btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.as3-btn.primary {
  background: #fff;
  color: var(--violet-900);
}

@media (max-width: 1100px) {
  .as3-strip {
    grid-template-columns: 1fr 1fr;
  }

  .as3-strip-uplift {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .as3-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .as3-strip-seg {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .as3-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .as3-sticky-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.as2-status-tag.tone-red { background: #fde7e8; color: var(--danger); }
.as2-status-tag.tone-green { background: #e4f8ee; color: #1f9d5e; }
.as2-status-tag.tone-gray { background: #eef0f7; color: #6b7193; }

.as2-dot-tone.tone-red { background: #de3d46; }
.as2-dot-tone.tone-green { background: #1f9d5e; }
.as2-dot-tone.tone-gray { background: #9aa4c4; }

.as3-chip.tone-blue:hover { border-color: #3777ea; }
.as3-chip.tone-red:hover { border-color: #de3d46; }
.as3-chip.tone-green:hover { border-color: #1f9d5e; }
.as3-chip.tone-gray:hover { border-color: #9aa4c4; }

/* Active Sales - Find Leads v2: two-column decision workspace */
.as4-screen {
  display: grid;
  gap: 12px;
  padding-bottom: 76px;
}

.as4-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.as4-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.as4-main > * {
  min-width: 0;
}

.as4-event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.as4-event-thumb {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.as4-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.as4-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f2fb8, #7f63f4);
  color: rgba(255, 255, 255, 0.85);
}

.as4-thumb-placeholder i {
  width: 32px;
  height: 32px;
}

.as4-event-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.as4-event-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.as4-event-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.as4-event-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.as4-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.as4-event-meta i {
  width: 13px;
  height: 13px;
}

.as4-event-stats {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.as4-stat-col {
  display: grid;
  gap: 3px;
  min-width: 140px;
}

.as4-stat-head {
  font-size: 11px;
  font-weight: 800;
}

.as4-stat-head.tone-blue { color: #3777ea; }
.as4-stat-head.tone-violet { color: #7f63f4; }

.as4-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
}

.as4-stat-row span {
  color: var(--muted);
}

.as4-stat-row b {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.as4-uplift-box {
  background: linear-gradient(135deg, #1f9d5e 0%, #16794a 100%);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 150px;
}

.as4-uplift-box span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.9;
  text-align: center;
}

.as4-uplift-box b {
  font-size: 18px;
  font-weight: 800;
}

.as4-reco-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.as4-reco-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as4-reco-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.as4-reco-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.as4-criteria {
  position: relative;
}

.as4-criteria summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--surface);
}

.as4-criteria summary::-webkit-details-marker { display: none; }

.as4-criteria summary i {
  width: 14px;
  height: 14px;
}

.as4-criteria-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-premium);
  padding: 12px 14px;
  z-index: 30;
}

.as4-criteria-panel p {
  margin: 0 0 8px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.as4-criteria-panel p:last-child {
  margin-bottom: 0;
}

.as4-criteria-panel b {
  color: var(--text);
}

.as4-segment-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.as4-toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(150px, 1fr)) auto;
  align-items: stretch;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.as4-search {
  min-width: 0;
}

.as4-toolbar select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 30px 8px 12px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236b7193' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat right 12px center,
    var(--surface);
  min-width: 0;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.as4-toolbar select:hover,
.as4-toolbar select:focus {
  border-color: var(--violet);
  outline: none;
}

.as4-toolbar-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.as4-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.as4-filter-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.as4-filter-btn i {
  width: 13px;
  height: 13px;
}

.as4-reset-btn {
  border: 1px solid transparent;
  background: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 6px;
  white-space: nowrap;
}

.as4-reset-btn:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .as4-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as4-search {
    grid-column: 1 / -1;
  }

  .as4-toolbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .as4-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .as4-toolbar-actions {
    justify-content: stretch;
  }

  .as4-filter-btn {
    flex: 1;
  }
}

.as4-table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
}

.as4-lead-table {
  font-size: 12.5px;
}

.as4-lead-table th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 8px 8px;
}

.as4-lead-table td {
  padding: 5px 8px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-soft);
}

.as4-lead-table tbody tr.as3-lead-row {
  height: 50px;
}

.as4-lead-table tbody tr.as3-lead-row:hover {
  background: var(--border-soft);
}

.as4-row-no {
  color: var(--muted);
  font-size: 11.5px;
  width: 28px;
}

.as4-action-col {
  white-space: nowrap;
}

.as4-detail-btn {
  border: 1px solid var(--blue);
  background: var(--surface);
  color: var(--blue);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.as4-detail-row td {
  background: var(--border-soft);
  padding: 10px 16px;
}

.as4-detail-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
}

.as4-detail-panel div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}

.as4-detail-panel span {
  color: var(--muted);
}

.as4-detail-panel b {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.as4-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 4px;
  flex-wrap: wrap;
  gap: 10px;
}

.as4-pagination select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}

.as4-side {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 12px;
}

.as4-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.as4-side-card h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.as4-side-card h4 i {
  width: 14px;
  height: 14px;
  color: var(--violet);
}

.as4-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.as4-side-head h4 {
  margin: 0;
}

.as4-summary-list {
  display: grid;
  gap: 8px;
}

.as4-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.as4-summary-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}

.as4-summary-row b {
  color: var(--text);
  font-weight: 800;
}

.as4-side-thumb {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.as4-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.as4-side-card h5 {
  margin: 8px 0 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.as4-side-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.as4-side-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.as4-side-meta i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.as4-side-btn {
  width: 100%;
  justify-content: center;
}

.as4-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.as4-tips li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.as4-tips i {
  width: 13px;
  height: 13px;
  color: #1f9d5e;
  flex-shrink: 0;
  margin-top: 1px;
}

.as4-sticky-count {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .as4-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .as4-side {
    position: static;
  }
}

@media (max-width: 900px) {
  .as4-event-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .as4-event-stats {
    flex-direction: column;
  }

  .as4-detail-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Icon-only status marker used inline in table rows (no label, kept small) */
.as4-status-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  vertical-align: middle;
}

.as4-status-icon.tone-green { color: #1f9d5e; }
.as4-status-icon.tone-amber { color: #d98d10; }
.as4-status-icon.tone-red { color: var(--danger); }
.as4-status-icon.tone-blue { color: #3777ea; }
.as4-status-icon.tone-gray { color: var(--muted); }

.as4-icon-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Icon + label pair, used in the legend and the expanded detail panel */
.as4-legend-item,
.as4-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.as4-legend-item { font-size: 11px; color: var(--muted); }
.as4-detail-status { font-size: 11.5px; }

.as4-detail-status.tone-green { color: #1f9d5e; }
.as4-detail-status.tone-amber { color: #d98d10; }
.as4-detail-status.tone-red { color: var(--danger); }
.as4-detail-status.tone-blue { color: #3777ea; }
.as4-detail-status.tone-gray { color: var(--muted); }

.as4-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 8px 8px 0;
  border-top: 1px solid var(--border-soft);
  margin-top: 4px;
}

.as4-legend-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.as4-legend-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.as4-history-col {
  min-width: 150px;
}

.as4-history-cell {
  display: grid;
  gap: 3px;
}

.as4-history-topic {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.as4-history-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as4-history-date {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Topbar: greeting, search, notifications, clock ---------- */

.vcpm-topbar-greeting-eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.vcpm-topbar-greeting {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-top: 1px;
}

.vcpm-topbar-search {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: #8791b8;
  min-width: 240px;
  flex: 1 1 320px;
  max-width: 360px;
}

.vcpm-topbar-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.vcpm-topbar-search input {
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  background: transparent;
}

.vcpm-topbar-search input::placeholder {
  color: #a3aad0;
}

.vcpm-topbar-icon-btn {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #4a5480;
  flex: 0 0 auto;
}

.vcpm-topbar-icon-btn svg {
  width: 18px;
  height: 18px;
}

.vcpm-topbar-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #de3d46;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

.vcpm-topbar-clock {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 12px;
  background: #fff;
  color: #4a5480;
  white-space: nowrap;
}

.vcpm-topbar-clock svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #8791b8;
}

.vcpm-topbar-clock strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #262e54;
}

.vcpm-topbar-clock small {
  display: block;
  font-size: 11px;
  color: #8791b8;
}

@media (min-width: 860px) {
  .vcpm-topbar-search,
  .vcpm-topbar-icon-btn,
  .vcpm-topbar-clock {
    display: inline-flex;
  }
}

/* ---------- Dashboard landing ---------- */

.dash-stat-row {
  display: flex;
  align-items: stretch;
  gap: 13px;
}

.dash-stat-grid {
  flex: 1 1 auto;
}

.dash-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5676ea 0%, #3d5dcf 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(61, 93, 207, 0.22);
}

.dash-cta-btn svg {
  width: 16px;
  height: 16px;
}

.dash-cta-btn:hover {
  background: linear-gradient(135deg, #4867db 0%, #324fba 100%);
}

.dash-grid {
  display: grid;
  grid-template-columns: 2.15fr 1.15fr 1.05fr;
  gap: 13px;
  align-items: start;
}

.dash-panel {
  min-width: 0;
}

.dash-panel-tall {
  display: flex;
  flex-direction: column;
}

.dash-chip-static {
  cursor: default;
}

.dash-head-link {
  font-size: 12px;
  white-space: nowrap;
}

.dash-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 18px 4px;
  text-align: center;
}

.dash-empty-block {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 22px 8px;
  color: var(--muted);
  font-size: 13px;
}

.dash-linechart {
  width: 100%;
  height: 200px;
  display: block;
}

.dash-linechart-axis {
  display: flex;
  justify-content: space-between;
  padding: 4px 4px 0;
  font-size: 10.5px;
  color: #8791b8;
}

.dash-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0fb;
}

.dash-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4a5480;
  font-weight: 600;
}

.dash-legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dash-donut-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.dash-donut {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
}

.dash-donut::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
}

.dash-donut-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1px;
}

.dash-donut-center strong {
  font-size: 20px;
  font-weight: 800;
  color: #1b2344;
}

.dash-donut-center span {
  font-size: 9.5px;
  color: var(--muted);
}

.dash-donut-legend {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-donut-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #4a5480;
}

.dash-donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dash-donut-legend span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-donut-legend strong {
  font-weight: 700;
  color: #262e54;
}

.dash-priority-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
}

.dash-priority-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid #f1f3fb;
}

.dash-priority-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dash-priority-copy strong {
  font-size: 12.5px;
  color: #232c58;
  line-height: 1.3;
}

.dash-priority-copy small {
  font-size: 10.5px;
  color: var(--muted);
}

.dash-priority-done button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #d8e0f5;
  background: #f6f8fd;
  color: #1f9f64;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dash-priority-done button:hover {
  background: #eaf9ef;
  border-color: #bfe6cd;
}

.dash-priority-done svg {
  width: 13px;
  height: 13px;
}

.dash-priority-add {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0fb;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
}

.dash-priority-add input,
.dash-priority-add select {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

.dash-priority-add button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #4a6ae3;
  background: linear-gradient(135deg, #5676ea 0%, #3d5dcf 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dash-priority-add svg {
  width: 15px;
  height: 15px;
}

.dash-upcoming-table td small {
  display: block;
}

.dash-target-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dash-target-form input {
  width: 56px;
  min-height: 28px;
}

.dash-target-form button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #4a6ae3;
  background: #3d5dcf;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.dash-progress-bar {
  margin-top: 6px;
  width: 100px;
  height: 5px;
  border-radius: 999px;
  background: #eceffd;
  overflow: hidden;
}

.dash-progress-bar span {
  display: block;
  height: 100%;
}

.dash-campaign-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.dash-campaign-list li {
  display: flex;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f3fb;
}

.dash-campaign-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dash-campaign-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: #eef1ff;
  color: #3d5dcf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-campaign-icon svg {
  width: 16px;
  height: 16px;
}

.dash-campaign-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dash-campaign-copy strong {
  font-size: 12.5px;
  color: #232c58;
  line-height: 1.3;
}

.dash-campaign-copy small {
  font-size: 10.5px;
  color: var(--muted);
}

.dash-campaign-metrics {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.dash-campaign-metrics span {
  display: flex;
  flex-direction: column;
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 600;
}

.dash-campaign-metrics strong {
  font-size: 13px;
  color: #232c58;
  font-weight: 800;
}

.dash-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.dash-activity-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid #f1f3fb;
}

.dash-activity-list li:last-child {
  border-bottom: 0;
}

.dash-activity-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-activity-icon svg {
  width: 14px;
  height: 14px;
}

.dash-activity-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 1px;
}

.dash-activity-copy strong {
  font-size: 12px;
  color: #232c58;
  line-height: 1.3;
}

.dash-activity-copy small {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-activity-time {
  font-size: 10px;
  color: #a3aad0;
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (max-width: 1400px) {
  .dash-grid {
    grid-template-columns: 1.6fr 1fr;
  }

  .dash-panel-tall {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .dash-stat-row {
    flex-direction: column;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dash-panel-tall {
    grid-column: auto;
  }
}
/* ===== Training Report v2 layout (mockup-aligned) ===== */

.tr-report-kpi-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .tr-report-kpi-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tr-report-kpi-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tr-report-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid #e7ebf5;
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.tr-report-tabs-bar a,
.tr-report-tabs-bar .tr-report-tab-disabled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #5b6478;
  text-decoration: none;
  white-space: nowrap;
}

.tr-report-tabs-bar a i,
.tr-report-tabs-bar .tr-report-tab-disabled i {
  width: 15px;
  height: 15px;
}

.tr-report-tabs-bar a:hover {
  background: #f2f5fb;
  color: #2b3346;
}

.tr-report-tabs-bar a.active {
  background: #eaf1ff;
  color: #3777ea;
}

.tr-report-tabs-bar .tr-report-tab-disabled {
  color: #a9b0c0;
  cursor: not-allowed;
}

.tr-report-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 1180px) {
  .tr-report-body-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tr-report-list-card {
    height: auto;
  }

  .tr-report-list-card .vcpm-table-wrap {
    max-height: calc(100vh - 420px);
  }
}

.tr-report-list-head {
  flex-wrap: wrap;
  gap: 10px;
}

.tr-report-list-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tr-report-list-tabs a {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #5b6478;
  text-decoration: none;
  background: #f2f5fb;
}

.tr-report-list-tabs a.active {
  background: #3777ea;
  color: #fff;
}

.tr-check-col,
.tr-check-cell {
  width: 34px;
  text-align: center;
}

.tr-row-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3777ea;
}

.tr-report-row {
  cursor: pointer;
}

.tr-report-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 4px 2px;
}

.tr-report-pagination-info {
  font-size: 12.5px;
  color: #7c8494;
}

.tr-report-pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tr-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #5b6478;
  text-decoration: none;
  border: 1px solid #e7ebf5;
}

.tr-page-btn i {
  width: 14px;
  height: 14px;
}

.tr-page-btn:hover {
  background: #f2f5fb;
}

.tr-page-btn.active {
  background: #3777ea;
  border-color: #3777ea;
  color: #fff;
}

.tr-page-btn.is-disabled {
  pointer-events: none;
  opacity: 0.4;
}

.tr-page-ellipsis {
  padding: 0 4px;
  color: #a9b0c0;
  font-size: 12.5px;
}

.tr-report-detail-panel {
  position: sticky;
  top: 14px;
  align-self: start;
}

.tr-report-detail-card-v2 {
  padding: 0;
  overflow: hidden;
}

.tr-detail-banner {
  position: relative;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3777ea, #5f9bff);
}

.tr-detail-banner.tone-inhouse {
  background: linear-gradient(135deg, #7f63f4, #a68cff);
}

.tr-detail-banner i {
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.85);
}

.tr-detail-banner-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #2b3346;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.tr-detail-v2-body {
  padding: 14px 16px 16px;
}

.tr-detail-v2-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e2433;
  margin: 0 0 8px;
}

.tr-detail-v2-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12.5px;
  color: #7c8494;
  margin-bottom: 12px;
}

.tr-detail-v2-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tr-detail-v2-meta i {
  width: 13px;
  height: 13px;
}

.tr-detail-v2-panels {
  margin-top: 14px;
}

.tr-detail-v2-block {
  margin-top: 18px;
}

.tr-detail-v2-block h4 {
  font-size: 13px;
  font-weight: 700;
  color: #2b3346;
  margin: 0 0 10px;
}

.tr-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.tr-detail-info-grid dt {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9aa1b1;
  font-weight: 600;
  margin-bottom: 2px;
}

.tr-detail-info-grid dt i {
  width: 12px;
  height: 12px;
}

.tr-detail-info-grid dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #2b3346;
}

.tr-status-workflow {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.tr-status-workflow-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.tr-status-workflow-step::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e7ebf5;
  z-index: 0;
}

.tr-status-workflow-step:first-child::before {
  display: none;
}

.tr-status-workflow-step.is-done::before {
  background: #3777ea;
}

.tr-status-workflow-dot {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef1f7;
  color: #9aa1b1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tr-status-workflow-dot i {
  width: 13px;
  height: 13px;
}

.tr-status-workflow-step.is-done .tr-status-workflow-dot {
  background: #3777ea;
  color: #fff;
}

.tr-status-workflow-step.is-current .tr-status-workflow-dot {
  background: #eaf1ff;
  color: #3777ea;
  border: 2px solid #3777ea;
}

.tr-status-workflow-step strong {
  font-size: 11px;
  font-weight: 700;
  color: #2b3346;
}

.tr-status-workflow-step small {
  font-size: 10px;
  color: #9aa1b1;
  margin-top: 2px;
}

.tr-quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tr-quick-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid #e7ebf5;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: #2b3346;
  text-decoration: none;
  cursor: pointer;
}

.tr-quick-action-btn i {
  width: 15px;
  height: 15px;
  color: #3777ea;
  flex-shrink: 0;
}

.tr-quick-action-btn:hover {
  background: #f2f5fb;
}

.tr-quick-action-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tr-file-doc-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tr-file-doc-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 120px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e7ebf5;
  text-decoration: none;
  color: #2b3346;
}

.tr-file-doc-card i {
  width: 18px;
  height: 18px;
  color: #d64545;
}

.tr-file-doc-card strong {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-file-doc-card small {
  font-size: 10.5px;
  color: #9aa1b1;
}

.tr-pill.orange {
  background: #ffe9d9;
  color: #dd6a1c;
}

/* ===== Training Report v2 detail panel: no horizontal scroll ===== */

.tr-report-detail-card-v2 .tr-detail-tabs {
  flex-wrap: wrap;
  overflow: visible;
  gap: 2px 4px;
}

.tr-report-detail-card-v2 .tr-detail-tabs button {
  padding: 7px 8px;
  font-size: 11.5px;
}

.tr-card-list {
  display: grid;
  gap: 8px;
}

.tr-card-group {
  border: 1px solid #e4eaf8;
  border-radius: 10px;
  overflow: hidden;
}

.tr-card-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f4f7ff;
  padding: 7px 10px;
  font-size: 11.5px;
}

.tr-card-group-head i {
  width: 13px;
  height: 13px;
  color: #5a72c9;
  flex-shrink: 0;
}

.tr-card-group-head strong {
  flex: 1;
  min-width: 0;
  color: #2f3e70;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-card-group-head span {
  color: #6f7ca7;
  white-space: nowrap;
}

.tr-person-card {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-top: 1px solid #eef1fa;
}

.tr-person-card strong {
  font-size: 12px;
  color: #2b3346;
}

.tr-person-card span {
  font-size: 11px;
  color: #6f7ca7;
}

.tr-delivery-card {
  border: 1px solid #e4eaf8;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.tr-delivery-card-head {
  display: grid;
  gap: 2px;
}

.tr-delivery-card-head strong {
  font-size: 12.5px;
  color: #2b3346;
}

.tr-delivery-card-head span {
  font-size: 11.5px;
  color: #6f7ca7;
}

.tr-delivery-card-head .tr-contact-link {
  font-size: 11.5px;
}

.tr-delivery-card .tr-company-send-actions {
  border-top: 1px solid #eef1fa;
  padding-top: 8px;
}

.tr-card-group .tr-company-send-actions {
  border-top: 1px solid #eef1fa;
  padding: 8px 10px;
}

/* ==========================================================================
   Flyer Database module (sales/flyer-database)
   ========================================================================== */

.fdb-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6f49f1 0%, #4d2bb7 100%);
  color: #fff;
  flex: 0 0 30px;
  margin-right: 8px;
}

.fdb-card-icon svg {
  width: 16px;
  height: 16px;
}

.fdb-card-icon.tone-blue { background: linear-gradient(135deg, #6b8cff 0%, #3d6bf2 100%); }
.fdb-card-icon.tone-green { background: linear-gradient(135deg, #45cb8c 0%, #1f9f64 100%); }
.fdb-card-icon.tone-amber { background: linear-gradient(135deg, #ffbf4e 0%, #f39a2e 100%); }
.fdb-card-icon.tone-pink { background: linear-gradient(135deg, #ff71af 0%, #e44b8d 100%); }

.fdb-card-title {
  display: flex;
  align-items: center;
}

.fdb-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: #f3f4fb;
  border: 1px solid #e6e9f6;
}

.fdb-hero-status select {
  border: none;
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #32447a;
  box-shadow: inset 0 0 0 1px #dfe4f5;
  cursor: pointer;
}

.fdb-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.fdb-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.fdb-breakdown-list {
  display: grid;
  gap: 10px;
}

.fdb-breakdown-row {
  display: grid;
  grid-template-columns: 128px 1fr 34px;
  align-items: center;
  gap: 10px;
}

.fdb-breakdown-row span.fdb-breakdown-label {
  font-size: 12px;
  font-weight: 600;
  color: #384169;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fdb-breakdown-row span.fdb-breakdown-count {
  font-size: 12px;
  font-weight: 800;
  color: #1b2344;
  text-align: right;
}

.fdb-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #eef0f9;
  overflow: hidden;
}

.fdb-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b8cff 0%, #3d6bf2 100%);
}

.fdb-bar-fill.tone-response {
  background: linear-gradient(90deg, #ff9fc4 0%, #e44b8d 100%);
}

.fdb-campaign-list {
  display: grid;
  gap: 12px;
}

.fdb-campaign-card {
  display: grid;
  grid-template-columns: 96px 1.6fr 1.4fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #e7ebf5;
  border-radius: 14px;
  background: #ffffff;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.fdb-campaign-card:hover {
  box-shadow: var(--shadow-premium);
  border-color: #d9deef;
  transform: translateY(-1px);
}

.fdb-campaign-month {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 2px;
  background: linear-gradient(135deg, #6f49f1 0%, #4d2bb7 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 6px;
  min-height: 62px;
}

.fdb-campaign-month small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.85;
}

.fdb-campaign-month strong {
  font-size: 19px;
  line-height: 1.05;
  font-weight: 800;
}

.fdb-campaign-main {
  min-width: 0;
}

.fdb-campaign-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fdb-campaign-name a {
  font-size: 15px;
  font-weight: 800;
  color: #1b2344;
  text-decoration: none;
}

.fdb-campaign-name a:hover {
  color: #4668e3;
}

.fdb-campaign-desc {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7193;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fdb-campaign-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #6b7193;
}

.fdb-campaign-progress {
  display: grid;
  gap: 6px;
}

.fdb-campaign-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #384169;
}

.fdb-campaign-progress-head strong {
  color: #1f9f64;
}

.fdb-campaign-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fdb-campaign-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.fdb-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.fdb-tag.blue { background: #eaf0ff; color: #3552b8; }
.fdb-tag.violet { background: #f1ecff; color: #5b34c9; }
.fdb-tag.green { background: #eaf9ef; color: #177d4f; }
.fdb-tag.amber { background: #fff5e9; color: #b86805; }
.fdb-tag.pink { background: #fff0f6; color: #c23c7c; }
.fdb-tag.muted { background: #f0f2f9; color: #636e96; }

.fdb-status-select {
  border: 1px solid #dfe4f5;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #32447a;
  cursor: pointer;
}

.fdb-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 42px 20px;
  text-align: center;
  color: #6b7193;
}

.fdb-empty-state .fdb-empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f3f4fb;
  color: #8a92c2;
}

.fdb-empty-state strong {
  color: #384169;
  font-size: 13.5px;
}

.fdb-empty-state span {
  font-size: 12px;
  max-width: 320px;
}

.fdb-contact-cell {
  display: grid;
  gap: 3px;
}

.fdb-contact-cell span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #384169;
}

.fdb-contact-cell span.muted-line {
  color: #9099bd;
}

.fdb-contact-cell svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: #9099bd;
}

.fdb-actions-cell {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  justify-content: flex-end;
}

.fdb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #dfe4f5;
  background: #fff;
  color: #4b5580;
  cursor: pointer;
}

.fdb-icon-btn:hover {
  background: #f4f6ff;
  border-color: #c7cff1;
}

.fdb-icon-btn.danger {
  color: #ba2f38;
}

.fdb-icon-btn.danger:hover {
  background: #ffecee;
  border-color: #f6c9cd;
}

.fdb-icon-btn svg {
  width: 15px;
  height: 15px;
}

.fdb-manage-details > summary {
  list-style: none;
  cursor: pointer;
}

.fdb-manage-details > summary::-webkit-details-marker {
  display: none;
}

.fdb-manage-panel {
  margin-top: 10px;
  width: 300px;
  background: #fafbff;
  border: 1px solid #e5e9f7;
  border-radius: 12px;
  box-shadow: none;
  padding: 14px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.fdb-manage-panel label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #62719d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fdb-manage-panel input,
.fdb-manage-panel select {
  font-size: 12.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #1d2240;
  border: 1px solid #dfe4f5;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.fdb-manage-panel .fdb-manage-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .fdb-stat-row,
  .fdb-breakdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fdb-campaign-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .fdb-campaign-actions {
    justify-self: start;
  }
}
