:root {
  --brand: #1a56c8;
  --brand-dark: #0c2a5a;
  --brand-light: #2bb0ea;
  --bs-primary: #1a56c8;
  --bs-primary-rgb: 26, 86, 200;
  --bs-link-color: #1a56c8;
  --bs-link-hover-color: #0c2a5a;
  --bg: #f3f7fb;
  --sidebar: #ffffff;
  --text: #0c2a5a;
  --muted: #6b7c93;
  --line: #e8eef5;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(12, 42, 90, .06);
  --radius: 16px;
  --kpi-blue: #2bb0ea;
  --kpi-green: #22c55e;
  --kpi-purple: #8b5cf6;
  --kpi-orange: #f97316;
  --kpi-teal: #14b8a6;
  --kpi-pink: #ef4444;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.app-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
}
a { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar {
  width: 236px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 10px;
  z-index: 20;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar .brand { flex-shrink: 0; }
.sidebar nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #7dd3f0 transparent;
}
.sidebar nav::-webkit-scrollbar {
  width: 8px;
}
.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}
.sidebar nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7dd3f0 0%, #2bb0ea 45%, #1a56c8 100%);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 48px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.sidebar nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2bb0ea 0%, #1a56c8 100%);
  background-clip: padding-box;
}
.sidebar nav::-webkit-scrollbar-thumb:active {
  background: var(--brand-dark);
  background-clip: padding-box;
}
.brand {
  display: flex;
  align-items: center;
  padding: 2px 4px 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.auth-logo {
  height: 56px;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #2bb0ea, #1a56c8);
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
.brand-name { font-weight: 800; letter-spacing: .2px; font-size: 15px; line-height: 1.1; }
.brand-sub { font-size: 10px; color: var(--muted); letter-spacing: 1.4px; font-weight: 700; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; color: #4b5563;
  text-decoration: none; font-weight: 600; font-size: 13px;
  margin-bottom: 1px; line-height: 1.25;
}
.nav-link i { font-size: 16px; width: 18px; text-align: center; }
.nav-link:hover { background: #e8f6fc; color: var(--brand); }
.nav-link.active { background: var(--brand); color: #fff; }
.nav-group {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 10px 4px;
}
.sidebar-foot {
  flex-shrink: 0;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.main-col { min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.search-wrap { flex: 1; position: relative; max-width: 560px; }
.search-wrap input {
  width: 100%;
  border: 1px solid #dbe7f3;
  background: #f3f7fb;
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  box-shadow: inset 0 1px 2px rgba(12, 42, 90, .04);
}
.search-wrap input::placeholder { color: #8aa0b8; }
.search-wrap input:hover {
  border-color: #c5d8ee;
  background: #eef6fb;
}
.search-wrap input:focus {
  outline: 0;
  background: #fff;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 .2rem rgba(43, 176, 234, .22);
}
.search-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7b91a8; pointer-events: none; }
.search-results {
  display: none; position: absolute; left: 0; right: 0; top: 46px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 30;
  max-height: 360px; overflow: auto;
}
.search-results.open { display: block; }
.search-item { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.search-item:hover { background: #e8f6fc; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-add {
  background: var(--brand); color: #fff !important; border: 0; border-radius: 999px;
  padding: 8px 14px; font-weight: 700;
}
.btn-add:hover { background: var(--brand-dark); color: #fff !important; }
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-focus-shadow-rgb: 26, 86, 200;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-focus-shadow-rgb: 26, 86, 200;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 .25rem rgba(43, 176, 234, .22);
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: var(--shadow); display: grid; place-items: center; position: relative;
}
.icon-btn .badge-dot {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px;
  background: #ef4444; color: #fff; border-radius: 99px; font-size: 10px;
  display: grid; place-items: center;
}
.user-chip { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #dbeafe; color: var(--brand);
  display: grid; place-items: center; font-weight: 800;
}
.page { padding: 24px 24px 32px; }
.page-title { font-size: 26px; font-weight: 800; margin: 0 0 8px; line-height: 1.25; }
.page-sub { color: var(--muted); margin: 0 0 6px; line-height: 1.45; }
.page > :first-child:not(.page-title):not(.alert) {
  margin-bottom: 22px !important;
}
.page > .page-title:first-child + .page-sub {
  margin-bottom: 22px;
}
.card-soft {
  background: var(--card); border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kpi {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px;
  min-height: 84px;
}
.kpi-icon {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  min-width: 48px; min-height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  overflow: hidden;
}
.kpi-icon i {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  font-size: 22px; line-height: 1;
}
.kpi-icon i::before {
  display: block;
  width: 22px; height: 22px;
  line-height: 22px;
  vertical-align: 0;
}
.kpi-body { min-width: 0; flex: 1; }
.kpi h3 {
  margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kpi span { color: var(--muted); font-size: 12px; font-weight: 600; display: block; }
.kpi-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.kpi-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-row-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-row-4 .kpi-compact .kpi-icon,
.kpi-row-5 .kpi-compact .kpi-icon {
  flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
}
.kpi-row-4 .kpi-compact .kpi-icon i,
.kpi-row-4 .kpi-compact .kpi-icon i::before,
.kpi-row-5 .kpi-compact .kpi-icon i,
.kpi-row-5 .kpi-compact .kpi-icon i::before {
  width: 20px; height: 20px; font-size: 20px; line-height: 20px;
}
.kpi-row-4 .kpi-compact h3,
.kpi-row-5 .kpi-compact h3 { font-size: 24px; }
.kpi-link {
  display: inline-block; margin-top: 6px;
  font-size: 12px; font-weight: 700; color: var(--brand); text-decoration: none;
}
.kpi-link:hover { text-decoration: underline; }
.mkt-jumps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mkt-jump {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--task-accent);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.mkt-jump:hover { border-color: #c7d2fe; border-left-color: var(--task-accent); color: inherit; }
.mkt-jump-n { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.mkt-jump-l { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.mkt-jump-go { margin-left: auto; color: #94a3b8; }
@media (max-width: 991px) {
  .mkt-jumps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.camp-compose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.camp-compose-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.camp-compose-title { font-weight: 800; }
.camp-compose-sub { font-size: 13px; color: var(--muted); }
.camp-compose-note {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.camp-compose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.camp-compose-body { grid-column: 1 / -1; }
.camp-compose .form-label { font-weight: 700; font-size: 12px; color: var(--muted); }
.task-empty .btn { margin-top: 14px; }
@media (max-width: 991px) {
  .camp-compose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lst-compose-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.lst-page .camp-compose .form-label { font-weight: 700; font-size: 12px; color: var(--muted); }
.lst-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 10px;
}
.lst-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lst-chip {
  display: inline-flex;
  align-items: center;
  background: #eef2ff;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
}
.lst-chip-open { background: #f0fdf4; color: #15803d; }
.lst-meta { text-align: right; min-width: 4.5rem; flex-shrink: 0; }
.lst-preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.lst-preview-head { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.lst-preview-head strong { color: #111827; }
.lst-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.lst-page .pagination { margin-top: 16px; }
@media (max-width: 1199px) {
  .lst-compose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .lst-compose-grid { grid-template-columns: 1fr; }
  .lst-card { flex-wrap: wrap; }
  .lst-meta { text-align: left; }
}
.tpl-compose-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-bottom: 14px;
}
.tpl-compose-body { grid-column: 1 / -1; }
.tpl-page .camp-compose .form-label { font-weight: 700; font-size: 12px; color: var(--muted); }
.tpl-merges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tpl-merges-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 4px; }
button.tpl-merge {
  border: 0;
  cursor: pointer;
}
button.tpl-merge:hover { background: #dbeafe; }
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tpl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  min-width: 0;
}
.tpl-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.tpl-preview {
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 12px;
  line-height: 1.45;
}
.tpl-page .pagination { margin-top: 16px; }
@media (max-width: 767px) {
  .tpl-compose-grid, .tpl-grid { grid-template-columns: 1fr; }
}
.adm-person {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}
.adm-person:hover { border-color: #c7d2fe; color: inherit; }
.adm-person.is-off { opacity: .72; }
.adm-setup {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--set-tint, #eff6ff);
  border-color: var(--set-accent, var(--brand));
}
.adm-setup:hover { color: inherit; }
.adm-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}
.adm-tool:last-child { border-bottom: 0; padding-bottom: 0; }
.adm-role {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.adm-role:last-child { border-bottom: 0; padding-bottom: 0; }
.adm-role:hover { color: inherit; }
.adm-role-name { display: block; font-weight: 800; font-size: 13px; }
.adm-role-sum { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.ap-card, .ar-card { overflow: hidden; }
.ap-head, .ar-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
}
.ap-head {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 68%);
  border-bottom: 1px solid #bfdbfe;
}
.ar-head {
  background: linear-gradient(135deg, #f5f3ff 0%, #f8fafc 68%);
  border-bottom: 1px solid #ddd6fe;
}
.ap-head-icon, .ar-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  color: #fff; display: grid; place-items: center; font-size: 18px;
}
.ap-head-icon {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 8px 16px rgba(37, 99, 235, .22);
}
.ar-head-icon {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  box-shadow: 0 8px 16px rgba(109, 40, 217, .22);
}
.ap-head h2, .ar-head h2 { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25; }
.ap-head p, .ar-head p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.ap-head a, .ar-head a { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; padding-top: 2px; }
.ap-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.ap-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 4px 9px;
}
.ap-pill.is-on { background: #dcfce7; color: #15803d; }
.ap-pill.is-off { background: #fee2e2; color: #b91c1c; }
.ap-list, .ar-list { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ap-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  text-decoration: none; color: inherit;
}
.ap-item:hover { background: #fff; border-color: #93c5fd; box-shadow: 0 8px 18px rgba(37, 99, 235, .08); color: inherit; }
.ap-item.is-off { opacity: .78; background: #fff7f7; border-color: #fecaca; }
.ap-item.is-off:hover { border-color: #fca5a5; box-shadow: 0 8px 18px rgba(185, 28, 28, .08); }
.ap-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ap-av-bg, #dbeafe); color: var(--ap-av, #2563eb);
  font-size: 12px; font-weight: 800;
}
.ap-item.is-off .ap-avatar { background: #fee2e2; color: #b91c1c; }
.ap-name { display: block; font-weight: 800; font-size: 13px; }
.ap-item:hover .ap-name { color: #1d4ed8; }
.ap-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.ap-mail { font-size: 12px; font-weight: 700; color: #475569; max-width: 14rem; }
.ap-role {
  font-size: 10px; font-weight: 800; border-radius: 999px;
  padding: 2px 7px; background: #eff6ff; color: #1d4ed8;
}
.ap-side { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ap-status {
  font-size: 10px; font-weight: 800; border-radius: 999px; padding: 3px 8px;
}
.ap-status.is-on { background: #dcfce7; color: #15803d; }
.ap-status.is-off { background: #fee2e2; color: #b91c1c; }
.ap-when { font-size: 11px; font-weight: 700; color: #64748b; white-space: nowrap; }
.ap-empty { text-align: center; padding: 28px 16px 24px; color: var(--muted); }
.ap-empty i { display: block; font-size: 28px; color: #93c5fd; margin-bottom: 8px; }
.ap-empty strong { display: block; color: #334155; font-size: 14px; margin-bottom: 2px; }
.ap-empty span { display: block; font-size: 12px; font-weight: 600; }
.ar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  background: var(--ar-tint, #f8fafc);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--ar-accent, var(--brand));
  text-decoration: none; color: inherit;
}
.ar-item:hover { background: #fff; border-color: var(--ar-accent, #c4b5fd); box-shadow: 0 8px 18px rgba(109, 40, 217, .08); color: inherit; }
.ar-icon {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ar-accent, #7c3aed); color: #fff; font-size: 15px;
}
.ar-name { display: block; font-weight: 800; font-size: 13px; }
.ar-item:hover .ar-name { color: var(--ar-accent, #6d28d9); }
.ar-sum { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-top: 2px; }
.ar-count { flex-shrink: 0; text-align: right; line-height: 1.15; }
.ar-count strong { display: block; font-size: 18px; font-weight: 800; color: #0f172a; }
.ar-count em { display: block; font-size: 10px; font-weight: 800; font-style: normal; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.ar-count small { display: block; font-size: 10px; font-weight: 700; color: #b91c1c; margin-top: 2px; }
.usr-compose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.usr-page .camp-compose .form-label { font-weight: 700; font-size: 12px; color: var(--muted); }
.usr-roles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.usr-role {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
}
.usr-role i { color: var(--brand); }
.usr-role:hover { border-color: #c7d2fe; }
.usr-role:has(input:checked) {
  background: #eff6ff;
  border-color: var(--brand);
}
.usr-page .lead-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.usr-meta { flex-wrap: wrap; justify-content: flex-end; }
.usr-you { font-size: 12px; font-weight: 700; color: var(--muted); }
.usr-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.usr-card.is-off { opacity: .72; }
.usr-card .adm-person {
  box-shadow: none;
  border: 0;
  margin-bottom: 0;
  background: transparent;
}
.usr-card .adm-person:hover { border-color: transparent; }
.usr-edit { padding: 0 16px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.role-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  border-left: 4px solid var(--task-accent, var(--brand));
  min-width: 0;
}
.role-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.role-sum { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.role-count {
  text-align: right;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.role-count:hover { color: inherit; }
.role-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 767px) {
  .role-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1199px) {
  .usr-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .usr-compose-grid { grid-template-columns: 1fr; }
  .usr-roles { grid-template-columns: 1fr 1fr; }
  .usr-meta { width: 100%; margin-left: 54px; justify-content: flex-start; }
}
.unsub-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 4px solid #f87171;
}
.unsub-tone-campaign { border-left-color: #a78bfa; }
.unsub-tone-manual { border-left-color: #fb923c; }
.unsub-tone-import { border-left-color: #2dd4bf; }
.unsub-card .lead-avatar { background: #fef2f2; color: #dc2626; }
.unsub-src-campaign { background: #f3e8ff; color: #7c3aed; }
.unsub-src-manual { background: #fff7ed; color: #c2410c; }
.unsub-src-import { background: #f0fdfa; color: #0f766e; }
.unsub-page .camp-compose-note {
  background: #fef2f2;
  border-color: #fecaca;
}
.unsub-page .lead-sub a { color: var(--brand); text-decoration: none; font-weight: 700; }
.unsub-page .lead-sub a:hover { text-decoration: underline; }
.unsub-page .pagination { margin-top: 16px; }
.kpi-compact { padding: 14px 12px; gap: 10px; min-height: 0; align-items: flex-start; }
.kpi-compact .kpi-icon {
  flex: 0 0 36px; width: 36px; height: 36px; min-width: 36px; min-height: 36px;
}
.kpi-compact .kpi-icon i,
.kpi-compact .kpi-icon i::before { width: 16px; height: 16px; font-size: 16px; line-height: 16px; }
.kpi-compact h3 { font-size: 20px; }
.kpi-compact span { font-size: 11px; }
.kpi-delta { font-size: 11px; font-weight: 700; margin-top: 2px; white-space: nowrap; }
.kpi-delta.up { color: #16a34a; }
.kpi-delta.down { color: #dc2626; }
.dash-wave { font-size: 22px; }
.dash-date {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 12px; padding: 8px 12px;
  box-shadow: var(--shadow); color: var(--muted); font-weight: 600; font-size: 13px;
}
.svc-visit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid #ea580c;
  text-decoration: none;
  color: inherit;
}
.svc-visit-main {
  display: flex; align-items: center; gap: 14px;
  min-width: 0; flex: 1; text-decoration: none; color: inherit;
}
.svc-attend { flex-shrink: 0; }
.svc-attend .btn { font-weight: 800; white-space: nowrap; }
.svc-visit:hover { border-color: #c7d2fe; color: inherit; }
.svc-tone-done { border-left-color: #0f766e; }
.svc-tone-done .svc-visit-icon { background: #ccfbf1; color: #0f766e; }
.svc-visit-icon {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 18px;
  background: #fff7ed; color: #ea580c;
}
.svc-tone-late .svc-visit-icon { background: #fef2f2; color: #ef4444; }
.svc-tone-today .svc-visit-icon { background: #f0fdf4; color: #16a34a; }
.svc-tone-open { border-left-color: #2563eb; }
.svc-tone-open .svc-visit-icon { background: #eff6ff; color: #2563eb; }
.svc-tone-progress { border-left-color: #ea580c; }
.svc-tone-progress .svc-visit-icon { background: #fff7ed; color: #ea580c; }
.svc-tone-cancelled { border-left-color: #9ca3af; }
.svc-tone-cancelled .svc-visit-icon { background: #f3f4f6; color: #6b7280; }
.svc-tone-active { border-left-color: #0f766e; }
.svc-tone-active .svc-visit-icon { background: #f0fdfa; color: #0f766e; }
.svc-tone-retired { border-left-color: #9ca3af; }
.svc-tone-retired .svc-visit-icon { background: #f3f4f6; color: #6b7280; }
.svc-tone-signed { border-left-color: #7c3aed; }
.svc-tone-signed .svc-visit-icon { background: #f5f3ff; color: #7c3aed; }
.svc-visit-amt { text-align: right; flex-shrink: 0; min-width: 72px; }
.svc-visit-amt strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.1; }
.svc-visit-amt span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.svc-visit .inv-bar { margin-top: 8px; max-width: 220px; }
.svc-visit .com-doc-btns { width: auto; }
.svc-visit-name { font-weight: 800; }
.svc-visit-need {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-visit-sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 600;
}
.svc-visit-sub a {
  color: var(--brand); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.svc-visit-sub a:hover { text-decoration: underline; }
.mv-card { overflow: hidden; }
.mv-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 68%);
  border-bottom: 1px solid #99f6e4;
}
.mv-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  color: #fff; display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 8px 16px rgba(15, 118, 110, .22);
}
.mv-head h2 { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25; }
.mv-head p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.mv-head a { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; padding-top: 2px; }
.mv-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.mv-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 4px 9px;
}
.mv-pill.is-today { background: #dcfce7; color: #15803d; }
.mv-pill.is-late { background: #fee2e2; color: #b91c1c; }
.mv-pill.is-soon { background: #ffedd5; color: #c2410c; }
.mv-pill.is-done { background: #ccfbf1; color: #0f766e; }
.mv-list { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.mv-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #ccfbf1;
}
.mv-item-main {
  display: flex; align-items: center; gap: 12px;
  min-width: 0; flex: 1; padding: 4px 0;
  text-decoration: none; color: inherit;
}
.mv-item:hover { border-color: #5eead4; box-shadow: 0 8px 18px rgba(15, 118, 110, .08); color: inherit; }
.mv-item.is-late { background: #fff7f7; border-color: #fecaca; }
.mv-item.is-late:hover { border-color: #fca5a5; box-shadow: 0 8px 18px rgba(185, 28, 28, .08); }
.mv-item.is-today { background: #f0fdf4; border-color: #bbf7d0; }
.mv-item.is-soon { background: #fff7ed; border-color: #fed7aa; }
.mv-item.is-done { background: #f0fdfa; border-color: #99f6e4; }
.mv-attend { flex-shrink: 0; }
.mv-attend .btn { font-weight: 800; white-space: nowrap; }
.mv-mark {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px;
  background: #ccfbf1; color: #0f766e;
}
.mv-item.is-late .mv-mark { background: #fee2e2; color: #b91c1c; }
.mv-item.is-today .mv-mark { background: #dcfce7; color: #15803d; }
.mv-item.is-soon .mv-mark { background: #ffedd5; color: #c2410c; }
.mv-item.is-done .mv-mark { background: #ccfbf1; color: #0f766e; }
.mv-name { display: block; font-weight: 800; font-size: 13px; }
.mv-item:hover .mv-name { color: #0f766e; }
.mv-item.is-late:hover .mv-name { color: #b91c1c; }
.mv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; font-weight: 600; color: #64748b; }
.mv-loc { max-width: 16rem; }
.mv-empty { text-align: center; padding: 28px 16px 24px; color: var(--muted); }
.mv-empty i { display: block; font-size: 28px; color: #5eead4; margin-bottom: 8px; }
.mv-empty strong { display: block; color: #334155; font-size: 14px; margin-bottom: 2px; }
.mv-empty span { display: block; font-size: 12px; font-weight: 600; }
.vis-hero-today { background: #dcfce7 !important; color: #15803d !important; }
.vis-hero-late { background: #fee2e2 !important; color: #b91c1c !important; }
.vis-hero-soon { background: #ffedd5 !important; color: #c2410c !important; }
.vis-hero-done { background: #dcfce7 !important; color: #15803d !important; }
.vis-need-subject { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.vis-need-detail { font-size: 14px; line-height: 1.55; color: #334155; white-space: pre-wrap; }
.event-date.is-call .mon { color: #16a34a; }
.event-date.is-visit .mon { color: #ea580c; }
.event-date.is-meeting .mon { color: #2563eb; }
.funnel-board { display: flex; gap: 16px; align-items: center; }
.funnel {
  width: 132px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.funnel-slice {
  height: 26px;
  clip-path: polygon(8% 0, 92% 0, 86% 100%, 14% 100%);
}
.funnel-slice:first-child { clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%); }
.funnel-slice:last-child { clip-path: polygon(14% 0, 86% 0, 72% 100%, 28% 100%); }
.funnel-legend { flex: 1; min-width: 0; }
.funnel-legend-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; margin-bottom: 8px;
}
.funnel-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.chart-wrap { height: 160px; position: relative; }
.act-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; text-align: center; }
.act-stat-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 4px;
}
.dash-list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.dp-card,
.da-card,
.do-card { overflow: hidden; }
.dp-head,
.da-head,
.do-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
}
.dp-head {
  background: linear-gradient(135deg, #f5f3ff 0%, #f8fafc 68%);
  border-bottom: 1px solid #ddd6fe;
}
.da-head {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 68%);
  border-bottom: 1px solid #dbeafe;
}
.do-head {
  background: linear-gradient(135deg, #fffbeb 0%, #f8fafc 68%);
  border-bottom: 1px solid #fde68a;
}
.dp-head-icon,
.da-head-icon,
.do-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  color: #fff; display: grid; place-items: center; font-size: 18px;
}
.dp-head-icon {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  box-shadow: 0 8px 16px rgba(109, 40, 217, .22);
}
.da-head-icon {
  background: linear-gradient(135deg, #1a56c8, #3b82f6);
  box-shadow: 0 8px 16px rgba(26, 86, 200, .22);
}
.do-head-icon {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 8px 16px rgba(217, 119, 6, .22);
}
.dp-head h2,
.da-head h2,
.do-head h2 { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25; }
.dp-head p,
.da-head p,
.do-head p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.dp-head a,
.do-head a { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; padding-top: 2px; }
.dp-body { padding: 14px 16px 16px; }
.do-list { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.do-empty { text-align: center; padding: 28px 16px 24px; color: var(--muted); }
.do-empty i { display: block; font-size: 28px; color: #fcd34d; margin-bottom: 8px; }
.do-empty strong { display: block; color: #334155; font-size: 14px; margin-bottom: 2px; }
.do-empty span { display: block; font-size: 12px; font-weight: 600; }
.da-chart {
  height: 140px; position: relative;
  margin: 12px 12px 4px; padding: 8px 8px 4px;
  background: #f8fbff; border: 1px solid #e8eef5; border-radius: 14px;
}
.da-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px 12px;
}
.da-stat {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--act-accent, var(--brand));
}
.da-stat-ico {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px;
}
.da-stat-n { font-size: 16px; font-weight: 800; line-height: 1.1; }
.da-stat-l { font-size: 11px; font-weight: 700; color: var(--muted); }
.do-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: #f8fafc; border: 1px solid #eef2f7;
  text-decoration: none; color: inherit;
  border-left: 4px solid #f59e0b;
}
.do-item.is-2 { border-left-color: #94a3b8; }
.do-item.is-3 { border-left-color: #fb923c; }
.do-item.is-4 { border-left-color: #60a5fa; }
.do-item:hover { background: #fff; border-color: #fde68a; box-shadow: 0 8px 18px rgba(217, 119, 6, .08); }
.do-rank { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.do-name { display: block; font-weight: 800; font-size: 13px; }
.do-item:hover .do-name { color: #b45309; }
.do-co { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.do-amt { flex-shrink: 0; font-weight: 800; font-size: 13px; white-space: nowrap; }
.rank-icon { font-size: 20px; width: 24px; text-align: center; flex-shrink: 0; }
.comm-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
}
.event-date { width: 48px; text-align: center; flex-shrink: 0; }
.event-date .mon { font-size: 11px; font-weight: 800; color: #16a34a; }
.event-date .day { font-size: 20px; font-weight: 800; }
.event-date.tone-0 .mon { color: #2563eb; }
.event-date.tone-1 .mon { color: #16a34a; }
.event-date.tone-2 .mon { color: #ef4444; }
.mkt-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mkt-snap { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
.mkt-stat { display: flex; align-items: center; gap: 10px; }
.mkt-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px;
}
.min-w-0 { min-width: 0; }
@media (max-width: 1399px) {
  .kpi-row,
  .kpi-row-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mkt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .kpi-row-4,
  .kpi-row-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-stats, .mkt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel-board { flex-direction: column; align-items: stretch; }
  .funnel { width: 100%; }
}
.hl-card { overflow: hidden; }
.hl-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #f5f3ff 0%, #f8fafc 68%);
  border-bottom: 1px solid #ddd6fe;
}
.hl-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  color: #fff; display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 8px 16px rgba(109, 40, 217, .22);
}
.hl-head h2 { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25; }
.hl-head p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.hl-head a { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; padding-top: 2px; }
.hl-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.hl-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 4px 10px;
}
.hl-pill.is-new { background: #ede9fe; color: #6d28d9; }
.hl-pill.is-today { background: #dbeafe; color: #1d4ed8; }
.hl-list { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.hl-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: #f8fafc; border: 1px solid #eef2f7;
  text-decoration: none; color: inherit;
}
.hl-item:hover { background: #fff; border-color: #c4b5fd; box-shadow: 0 8px 18px rgba(109, 40, 217, .08); }
.hl-item.is-today { box-shadow: inset 3px 0 0 #8b5cf6; }
.hl-avatar {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #ede9fe; color: #6d28d9;
  font-size: 12px; font-weight: 800;
}
.hl-title { display: block; font-weight: 800; font-size: 13px; }
.hl-item:hover .hl-title { color: #6d28d9; }
.hl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.hl-co { font-size: 12px; font-weight: 700; color: #475569; max-width: 10rem; }
.hl-src {
  font-size: 10px; font-weight: 800; border-radius: 999px;
  padding: 2px 8px; background: #ede9fe; color: #6d28d9;
}
.hl-owner { font-size: 12px; font-weight: 600; color: var(--muted); max-width: 8rem; }
.hl-contact {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px;
  font-size: 11px; font-weight: 600; color: #64748b;
}
.hl-contact i { margin-right: 3px; }
.hl-when { flex-shrink: 0; font-size: 11px; font-weight: 800; color: #7c3aed; padding-top: 2px; white-space: nowrap; }
.hl-empty { text-align: center; padding: 28px 16px 24px; color: var(--muted); }
.hl-empty i { display: block; font-size: 28px; color: #c4b5fd; margin-bottom: 8px; }
.hl-empty strong { display: block; color: #334155; font-size: 14px; margin-bottom: 2px; }
.hl-empty span { font-size: 12px; font-weight: 600; }
.ho-card { overflow: hidden; }
.ho-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 68%);
  border-bottom: 1px solid #fed7aa;
}
.ho-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #c2410c, #f97316);
  color: #fff; display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 8px 16px rgba(194, 65, 12, .22);
}
.ho-head h2 { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25; }
.ho-head p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.ho-head a { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; padding-top: 2px; }
.ho-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.ho-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 4px 10px;
}
.ho-pill.is-late { background: #fee2e2; color: #b91c1c; }
.ho-pill.is-miss { background: #ffedd5; color: #c2410c; }
.ho-pill.is-due { background: #fef3c7; color: #b45309; }
.ho-list { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ho-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: #fffbeb; border: 1px solid #fde68a;
  text-decoration: none; color: inherit;
}
.ho-item:hover { background: #fff; border-color: #fdba74; box-shadow: 0 8px 18px rgba(194, 65, 12, .08); }
.ho-item.is-late { background: #fff7f7; border-color: #fecaca; }
.ho-item.is-miss { background: #fff7ed; border-color: #fed7aa; }
.ho-mark {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px;
  background: #ffedd5; color: #c2410c;
}
.ho-item.is-late .ho-mark { background: #fee2e2; color: #b91c1c; }
.ho-item.is-due .ho-mark { background: #fef3c7; color: #b45309; }
.ho-title { display: block; font-weight: 800; font-size: 13px; }
.ho-item:hover .ho-title { color: #c2410c; }
.ho-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.ho-acct { font-size: 12px; font-weight: 700; color: #475569; max-width: 9rem; }
.ho-stage {
  font-size: 10px; font-weight: 800; border-radius: 999px;
  padding: 2px 8px; background: #ffedd5; color: #c2410c;
}
.ho-amt { font-size: 12px; font-weight: 800; color: #0f172a; }
.ho-step { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-top: 3px; }
.ho-step.is-empty { color: #c2410c; font-style: italic; }
.ho-due { flex-shrink: 0; padding-top: 2px; white-space: nowrap; }
.ho-empty { text-align: center; padding: 28px 16px 24px; color: var(--muted); }
.ho-empty i { display: block; font-size: 28px; color: #fdba74; margin-bottom: 8px; }
.ho-empty strong { display: block; color: #334155; font-size: 14px; margin-bottom: 2px; }
.ho-empty span { font-size: 12px; font-weight: 600; }
.hr-card { overflow: hidden; }
.hr-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #fff1f2 0%, #f8fafc 68%);
  border-bottom: 1px solid #fecdd3;
}
.hr-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #be123c, #f43f5e);
  color: #fff; display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 8px 16px rgba(190, 18, 60, .22);
}
.hr-head h2 { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25; }
.hr-head p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.hr-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.hr-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 4px 10px;
}
.hr-pill.is-deal { background: #ffe4e6; color: #be123c; }
.hr-pill.is-account { background: #ffedd5; color: #c2410c; }
.hr-list { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.hr-group-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  margin: 4px 2px 0;
}
.hr-group-label.is-deal { color: #be123c; }
.hr-group-label.is-account { color: #c2410c; margin-top: 6px; }
.hr-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: #fff1f2; border: 1px solid #fecdd3;
  text-decoration: none; color: inherit;
}
.hr-item:hover { background: #fff; border-color: #fda4af; box-shadow: 0 8px 18px rgba(190, 18, 60, .08); }
.hr-item.is-account { background: #fff7ed; border-color: #fed7aa; }
.hr-item.is-account:hover { border-color: #fdba74; box-shadow: 0 8px 18px rgba(194, 65, 12, .08); }
.hr-mark {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px;
  background: #ffe4e6; color: #be123c;
}
.hr-item.is-account .hr-mark { background: #ffedd5; color: #c2410c; }
.hr-title { display: block; font-weight: 800; font-size: 13px; }
.hr-item:hover .hr-title { color: #be123c; }
.hr-item.is-account:hover .hr-title { color: #c2410c; }
.hr-why { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-top: 3px; }
.hr-empty { text-align: center; padding: 28px 16px 24px; color: var(--muted); }
.hr-empty i { display: block; font-size: 28px; color: #fda4af; margin-bottom: 8px; }
.hr-empty strong { display: block; color: #334155; font-size: 14px; margin-bottom: 2px; }
.hr-empty span { font-size: 12px; font-weight: 600; }
.hc-card,
.hm-card { overflow: hidden; }
.hc-head,
.hm-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
}
.hc-head {
  background: linear-gradient(135deg, #ecfeff 0%, #f8fafc 68%);
  border-bottom: 1px solid #a5f3fc;
}
.hm-head {
  background: linear-gradient(135deg, #fdf2f8 0%, #f8fafc 68%);
  border-bottom: 1px solid #fbcfe8;
}
.hc-head-icon,
.hm-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  color: #fff; display: grid; place-items: center; font-size: 18px;
}
.hc-head-icon {
  background: linear-gradient(135deg, #0e7490, #22d3ee);
  box-shadow: 0 8px 16px rgba(14, 116, 144, .22);
}
.hm-head-icon {
  background: linear-gradient(135deg, #be185d, #ec4899);
  box-shadow: 0 8px 16px rgba(190, 24, 93, .22);
}
.hc-head h2,
.hm-head h2 { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25; }
.hc-head p,
.hm-head p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.hc-head a,
.hm-head a { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; padding-top: 2px; }
.hc-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.hc-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 4px 10px; background: #ecfeff; color: #0e7490;
}
.hc-pill.is-email { background: #dbeafe; color: #1d4ed8; }
.hc-pill.is-call { background: #ccfbf1; color: #0f766e; }
.hc-pill.is-note { background: #fef3c7; color: #b45309; }
.hc-pill.is-meeting { background: #ffedd5; color: #c2410c; }
.hc-pill.is-visit { background: #ede9fe; color: #6d28d9; }
.hc-item.is-visit:hover { border-color: #c4b5fd; }
.hc-list { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.hc-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: #f8fafc; border: 1px solid #eef2f7;
  text-decoration: none; color: inherit;
}
.hc-item:hover { background: #fff; border-color: #67e8f9; box-shadow: 0 8px 18px rgba(14, 116, 144, .08); }
.hc-mark {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px;
}
.hc-title { display: block; font-weight: 800; font-size: 13px; }
.hc-item:hover .hc-title { color: #0e7490; }
.hc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.hc-kind {
  font-size: 10px; font-weight: 800; border-radius: 999px;
  padding: 2px 8px; background: #ecfeff; color: #0e7490;
}
.hc-who { font-size: 12px; font-weight: 600; color: var(--muted); max-width: 10rem; }
.hc-when { flex-shrink: 0; font-size: 11px; font-weight: 800; color: #0e7490; padding-top: 2px; white-space: nowrap; }
.hc-empty,
.hm-empty { text-align: center; padding: 28px 16px 24px; color: var(--muted); }
.hc-empty i { display: block; font-size: 28px; color: #67e8f9; margin-bottom: 8px; }
.hc-empty strong,
.hm-empty strong { display: block; color: #334155; font-size: 14px; margin-bottom: 2px; }
.hc-empty span,
.hm-empty span { font-size: 12px; font-weight: 600; }
.hm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.hm-wide .hm-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hm-stat {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: #fff; border: 1px solid #fce7f3;
}
.hm-icon {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px;
}
.hm-n { font-size: 16px; font-weight: 800; line-height: 1.2; }
.hm-l { font-size: 11px; font-weight: 700; color: var(--muted); }
.rc-card { overflow: hidden; }
.rc-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #fdf2f8 0%, #f8fafc 68%);
  border-bottom: 1px solid #fbcfe8;
}
.rc-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  color: #fff; display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(135deg, #be185d, #ec4899);
  box-shadow: 0 8px 16px rgba(190, 24, 93, .22);
}
.rc-head h2 { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25; }
.rc-head p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.rc-head a { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; padding-top: 2px; }
.rc-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.rc-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 4px 9px;
}
.rc-pill.is-sent { background: #dcfce7; color: #15803d; }
.rc-pill.is-draft { background: #ede9fe; color: #6d28d9; }
.rc-list { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.rc-item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #fce7f3;
  text-decoration: none; color: inherit;
}
.rc-item:hover { border-color: #f9a8d4; box-shadow: 0 8px 18px rgba(190, 24, 93, .08); color: inherit; }
.rc-item.is-sent { background: #fff7fb; }
.rc-item.is-draft { background: #faf8ff; border-color: #ede9fe; }
.rc-item-top { display: flex; align-items: center; gap: 12px; }
.rc-mark {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px;
  background: #fce7f3; color: #be185d;
}
.rc-item.is-sent .rc-mark { background: #dcfce7; color: #15803d; }
.rc-item.is-draft .rc-mark { background: #ede9fe; color: #6d28d9; }
.rc-name { display: block; font-weight: 800; font-size: 13px; }
.rc-item:hover .rc-name { color: #be185d; }
.rc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.rc-list-name {
  font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 2px 8px; background: #fce7f3; color: #9d174d; max-width: 12rem;
}
.rc-subj { font-size: 12px; font-weight: 600; color: #64748b; max-width: 22rem; }
.rc-side { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rc-status {
  font-size: 10px; font-weight: 800; border-radius: 999px; padding: 3px 8px;
}
.rc-status.is-sent { background: #dcfce7; color: #15803d; }
.rc-status.is-draft { background: #ede9fe; color: #6d28d9; }
.rc-when { font-size: 11px; font-weight: 700; color: #64748b; white-space: nowrap; }
.rc-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px; margin-left: 50px;
}
.rc-stat {
  padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #fce7f3;
}
.rc-stat-warn { border-color: #fed7aa; background: #fff7ed; }
.rc-stat-n { font-size: 16px; font-weight: 800; line-height: 1.1; }
.rc-stat-l { font-size: 11px; font-weight: 700; color: #64748b; margin-top: 2px; }
.rc-bar {
  height: 6px; border-radius: 99px; background: #f1f5f9;
  margin-top: 6px; overflow: hidden;
}
.rc-bar span { display: block; height: 100%; border-radius: 99px; min-width: 0; }
.rc-empty { text-align: center; padding: 28px 16px 24px; color: var(--muted); }
.rc-empty i { display: block; font-size: 28px; color: #f9a8d4; margin-bottom: 8px; }
.rc-empty strong { display: block; color: #334155; font-size: 14px; margin-bottom: 2px; }
.rc-empty span { display: block; font-size: 12px; font-weight: 600; }
@media (max-width: 767px) {
  .rc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; }
}
@media (max-width: 1199px) {
  .hm-wide .hm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .hm-grid,
  .hm-wide .hm-grid { grid-template-columns: 1fr 1fr; }
}
.home-work-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.home-work-row:last-child { border-bottom: 0; }
.home-work-link { display: block; text-decoration: none; color: inherit; min-width: 0; }
.home-work-link:hover .fw-semibold { color: var(--brand); }
.up-card { overflow: hidden; }
.up-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #e8f0ff 0%, #f8fafc 68%);
  border-bottom: 1px solid #e2e8f0;
}
.up-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #1a56c8, #3b82f6);
  color: #fff; display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 8px 16px rgba(26, 86, 200, .22);
}
.up-head h2 { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25; }
.up-head p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.up-head a { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; padding-top: 2px; }
.up-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.up-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 4px 10px;
}
.up-pill.is-call { background: #f0fdf4; color: #15803d; }
.up-pill.is-meeting { background: #eff6ff; color: #1d4ed8; }
.up-pill.is-visit { background: #fff7ed; color: #c2410c; }
.up-list { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.up-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border-radius: 14px;
  background: #f8fafc; border: 1px solid #eef2f7;
  text-decoration: none; color: inherit;
}
.up-item:hover { background: #fff; border-color: #c7d2fe; box-shadow: 0 8px 18px rgba(26, 86, 200, .08); }
.up-item.is-today { box-shadow: inset 3px 0 0 #1a56c8; }
.up-date {
  width: 46px; border-radius: 12px; text-align: center; padding: 6px 0 7px;
  flex-shrink: 0; background: #eff6ff;
}
.up-date .mon { display: block; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.up-date .day { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; color: #0f172a; }
.up-item.is-call .up-date { background: #f0fdf4; }
.up-item.is-call .up-date .mon { color: #16a34a; }
.up-item.is-meeting .up-date { background: #eff6ff; }
.up-item.is-meeting .up-date .mon { color: #2563eb; }
.up-item.is-visit .up-date { background: #fff7ed; }
.up-item.is-visit .up-date .mon { color: #ea580c; }
.up-title { font-weight: 800; font-size: 13px; }
.up-item:hover .up-title { color: var(--brand); }
.up-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.up-when { font-size: 12px; font-weight: 700; color: #475569; }
.up-kind {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 8px;
}
.up-item.is-call .up-kind { background: #dcfce7; color: #15803d; }
.up-item.is-meeting .up-kind { background: #dbeafe; color: #1d4ed8; }
.up-item.is-visit .up-kind { background: #ffedd5; color: #c2410c; }
.up-who { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.up-empty { text-align: center; padding: 28px 16px 24px; color: var(--muted); }
.up-empty i { display: block; font-size: 28px; color: #93c5fd; margin-bottom: 8px; }
.up-empty strong { display: block; color: #334155; font-size: 14px; margin-bottom: 2px; }
.up-empty span { font-size: 12px; font-weight: 600; }
.ht-card { overflow: hidden; }
.ht-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 68%);
  border-bottom: 1px solid #d1fae5;
}
.ht-card.is-late .ht-head {
  background: linear-gradient(135deg, #fef2f2 0%, #f8fafc 68%);
  border-bottom-color: #fecaca;
}
.ht-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #059669, #22c55e);
  color: #fff; display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 8px 16px rgba(5, 150, 105, .22);
}
.ht-card.is-late .ht-head-icon {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  box-shadow: 0 8px 16px rgba(185, 28, 28, .22);
}
.ht-head h2 { font-size: 14px; font-weight: 800; margin: 0; line-height: 1.25; }
.ht-head p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.ht-head a { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; padding-top: 2px; }
.ht-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.ht-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 4px 10px;
}
.ht-pill.is-today { background: #dcfce7; color: #15803d; }
.ht-pill.is-overdue { background: #fee2e2; color: #b91c1c; }
.ht-list { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ht-group-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  margin: 4px 2px 0;
}
.ht-group-label.is-today { color: #15803d; }
.ht-group-label.is-overdue { color: #b91c1c; margin-top: 6px; }
.ht-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: #f8fafc; border: 1px solid #eef2f7;
  text-decoration: none; color: inherit;
}
.ht-item:hover { background: #fff; border-color: #bbf7d0; box-shadow: 0 8px 18px rgba(5, 150, 105, .08); }
.ht-item.is-overdue { background: #fff7f7; border-color: #fecaca; }
.ht-item.is-overdue:hover { border-color: #fca5a5; box-shadow: 0 8px 18px rgba(185, 28, 28, .08); }
.ht-item.is-high { box-shadow: inset 3px 0 0 #ef4444; }
.ht-mark {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px;
  background: #dcfce7; color: #15803d;
}
.ht-item.is-overdue .ht-mark { background: #fee2e2; color: #b91c1c; }
.ht-title { display: block; font-weight: 800; font-size: 13px; }
.ht-item:hover .ht-title { color: var(--brand); }
.ht-item.is-overdue:hover .ht-title { color: #b91c1c; }
.ht-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.ht-when { font-size: 12px; font-weight: 700; color: #475569; }
.ht-prio {
  font-size: 10px; font-weight: 800; border-radius: 999px;
  padding: 2px 8px; background: #fee2e2; color: #b91c1c;
}
.ht-who { font-size: 12px; font-weight: 600; color: var(--muted); max-width: 11rem; }
.ht-due { flex-shrink: 0; padding-top: 2px; }
.ht-empty { text-align: center; padding: 28px 16px 24px; color: var(--muted); }
.ht-empty i { display: block; font-size: 28px; color: #86efac; margin-bottom: 8px; }
.ht-empty strong { display: block; color: #334155; font-size: 14px; margin-bottom: 2px; }
.ht-empty span { font-size: 12px; font-weight: 600; }
.task-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.task-owner { max-width: 8.5rem; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.js-task-status { width: auto; min-width: 7.75rem; flex: 0 0 auto; }
.js-task-due { min-width: 3.25rem; text-align: right; white-space: nowrap; }
.due-today { color: #16a34a; font-weight: 700; font-size: 12px; }
.due-overdue { color: #ef4444; font-weight: 800; font-size: 12px; }
.due-later { color: #ea580c; font-weight: 700; font-size: 12px; }
.due-done { color: #16a34a; font-weight: 700; font-size: 12px; }
.due-cancelled { color: #dc2626; font-weight: 700; font-size: 12px; }
.task-row.is-done { opacity: .65; }
.task-row.is-done .flex-grow-1 > div:first-child,
.task-page .task-card.is-done .task-card-title { text-decoration: line-through; }

.task-page .task-search,
.lead-page .task-search,
.account-page .task-search,
.contact-page .task-search,
.email-page .task-search,
.opp-page .task-search,
.unsub-page .task-search,
.usr-page .task-search {
  position: relative;
  width: min(280px, 100%);
}
.task-page .task-search i,
.lead-page .task-search i,
.account-page .task-search i,
.contact-page .task-search i,
.email-page .task-search i,
.opp-page .task-search i,
.unsub-page .task-search i,
.usr-page .task-search i {
  position: absolute; left: 12px; top: 11px; color: #9ca3af;
}
.task-page .task-search input,
.lead-page .task-search input,
.account-page .task-search input,
.contact-page .task-search input,
.email-page .task-search input,
.opp-page .task-search input,
.unsub-page .task-search input,
.usr-page .task-search input {
  padding-left: 36px;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  background: #fff;
  height: 42px;
}
.opp-page .task-search i {
  top: 50%;
  transform: translateY(-50%);
}
.opp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.opp-toggle {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 4px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.opp-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: #4b5563;
  white-space: nowrap;
}
.opp-toggle a:hover { color: var(--brand); }
.opp-toggle a.active { background: var(--brand); color: #fff; }
.opp-toggle a.active:hover { color: #fff; }
.opp-toggle a i { font-size: 14px; }
.task-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.task-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
a.task-summary-card:hover { border-color: #c7d2fe; }
a.task-summary-card.is-active { border-color: var(--task-accent); box-shadow: 0 8px 24px rgba(37, 99, 235, .12); }
.task-summary-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--task-tint);
  color: var(--task-accent);
  font-size: 18px;
}
.task-summary-n { font-size: 22px; font-weight: 800; line-height: 1.1; }
.task-summary-l { font-size: 12px; font-weight: 600; color: var(--muted); }
.task-summary-card.is-inactive {
  border-left: 4px solid #dc2626;
}
.task-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.task-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: #fff; color: #4b5563; text-decoration: none;
  font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow); border: 1px solid transparent;
}
.task-chip span {
  background: #eef2ff; color: var(--brand); border-radius: 999px;
  padding: 1px 8px; font-size: 11px;
}
.task-chip.active {
  background: var(--brand); color: #fff;
}
.task-chip.active span { background: rgba(255,255,255,.2); color: #fff; }
.task-chip:hover { color: var(--brand); }
.task-chip.active:hover { color: #fff; }

.task-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 12px 14px;
  align-items: end;
}
.task-filters.has-assigned {
  grid-template-columns: minmax(160px, 1.2fr) repeat(4, minmax(130px, 1fr)) auto;
}
.task-filters.is-compact {
  grid-template-columns: minmax(180px, 1.6fr) minmax(140px, 1fr) auto;
}
.task-filters.opp-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: end;
}
.opp-filters .task-filter-go {
  grid-column: 4;
  justify-self: stretch;
}
.opp-filters .task-filter-go .btn {
  width: 100%;
  justify-content: center;
}
.task-summary.is-pair {
  grid-template-columns: repeat(2, minmax(180px, 280px));
}
.task-summary.is-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.task-filters .form-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 4px;
}
.task-filters .form-select,
.task-filters .task-filter-search .form-control {
  height: 42px;
  border-radius: 12px;
  border-color: var(--line);
}
.task-filter-go .btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
@media (max-width: 991px) {
  .task-filters, .task-filters.has-assigned, .task-filters.is-compact { grid-template-columns: 1fr 1fr; }
  .task-filters:not(.opp-filters) .task-filter-go { grid-column: 1 / -1; }
  .task-filters:not(.opp-filters) .task-filter-go .btn { width: 100%; justify-content: center; }
  .task-filters.opp-filters { grid-template-columns: 1fr 1fr; }
  .opp-filters .task-filter-go { grid-column: 2; }
}
@media (max-width: 575px) {
  .task-filters, .task-filters.has-assigned, .task-filters.is-compact { grid-template-columns: 1fr; }
  .task-summary.is-pair { grid-template-columns: 1fr; }
  .task-filters.opp-filters { grid-template-columns: 1fr; }
  .opp-filters .task-filter-go { grid-column: 1; }
}

.task-page .task-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid #cbd5e1;
}
.task-page .task-card:last-child { margin-bottom: 0; border-bottom: 1px solid var(--line); }
.task-page .task-tone-overdue { border-left-color: #ef4444; }
.task-page .task-tone-today { border-left-color: #16a34a; }
.task-page .task-tone-later { border-left-color: #ea580c; }
.task-page .task-tone-done { border-left-color: #16a34a; }
.task-page .task-tone-cancelled { border-left-color: #dc2626; }
.task-card-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 18px;
  background: #f3f4f6; color: #6b7280;
}
.task-tone-overdue .task-card-icon { background: #fef2f2; color: #ef4444; }
.task-tone-today .task-card-icon { background: #f0fdf4; color: #16a34a; }
.task-tone-later .task-card-icon { background: #fff7ed; color: #ea580c; }
.task-tone-done .task-card-icon { background: #f0fdf4; color: #16a34a; }
.task-tone-cancelled .task-card-icon { background: #fef2f2; color: #dc2626; }
.task-card-title { font-weight: 700; }
.task-card-sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 2px; font-size: 12px; color: var(--muted);
}
.task-card-sub a { color: var(--brand); text-decoration: none; font-weight: 600; }
.task-card-sub a:hover { text-decoration: underline; }
.task-prio {
  border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700;
}
.task-prio.high { background: #fee2e2; color: #b91c1c; }
.task-prio.low { background: #f3f4f6; color: #6b7280; }
.task-file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 220px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  vertical-align: middle;
}
.task-file i { font-size: 13px; }
.task-file:hover { color: var(--brand-dark); background: #dbeafe; }
.task-card-sub .task-file { margin-top: 0; }
.task-owner-chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
}
.task-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: #dbeafe; color: var(--brand);
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.task-page .task-owner { max-width: 7.5rem; }
.due-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 4.25rem; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap; text-align: center;
}
.due-pill.due-today { background: #dcfce7; color: #16a34a; }
.due-pill.due-overdue { background: #fee2e2; color: #ef4444; }
.due-pill.due-later { background: #ffedd5; color: #c2410c; }
.due-pill.due-done { background: #dcfce7; color: #16a34a; }
.due-pill.due-cancelled { background: #fee2e2; color: #dc2626; }
.due-pill.due-window { background: #eff6ff; color: #1d4ed8; }
.task-page .js-task-status {
  border-radius: 999px;
  font-weight: 600;
  border-color: #e5e7eb;
  min-width: 7.5rem;
}
.task-empty {
  text-align: center; padding: 48px 24px;
}
.task-empty-icon {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: #eff6ff; color: var(--brand); font-size: 28px;
}
.task-empty h2 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.task-empty p { color: var(--muted); margin: 0; }
.task-page .pagination,
.lead-page .pagination,
.account-page .pagination,
.contact-page .pagination,
.email-page .pagination,
.opp-page .pagination { margin-top: 16px; }

.lead-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid #93c5fd;
  text-decoration: none;
  color: inherit;
}
.lead-card:hover { border-color: #c7d2fe; color: inherit; }
.lead-tone-new { border-left-color: #2563eb; }
.lead-tone-qualified { border-left-color: #16a34a; }
.lead-tone-unqualified { border-left-color: #dc2626; }
.lead-tone-converted { border-left-color: #0f766e; }
.lead-avatar {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.lead-tone-qualified .lead-avatar { background: #f0fdf4; color: #16a34a; }
.lead-tone-unqualified .lead-avatar { background: #fef2f2; color: #dc2626; }
.lead-tone-converted .lead-avatar { background: #f0fdfa; color: #0f766e; }
.lead-name { font-weight: 800; }
.lead-sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 600;
}
.lead-source {
  background: #eef2ff; color: var(--brand-dark);
  border-radius: 999px; padding: 1px 8px; font-size: 11px;
}
.lead-contact {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 4px; font-size: 12px; color: #4b5563;
}
.lead-contact i { margin-right: 4px; color: #9ca3af; }
.lead-status {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 5.5rem; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.lead-status-new { background: #dbeafe; color: #1d4ed8; }
.lead-status-qualified { background: #dcfce7; color: #16a34a; }
.lead-status-unqualified { background: #fee2e2; color: #dc2626; }
.lead-status-converted { background: #ccfbf1; color: #0f766e; }
.lead-date { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; min-width: 3rem; text-align: right; }

.lead-show .lead-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 12px;
}
.lead-show .lead-back:hover { color: var(--brand); }
.lead-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); border-left: 4px solid #2563eb;
  padding: 20px 22px; margin-bottom: 16px;
}
.lead-hero.lead-tone-qualified { border-left-color: #16a34a; }
.lead-hero.lead-tone-unqualified { border-left-color: #dc2626; }
.lead-hero.lead-tone-converted { border-left-color: #0f766e; }
.lead-hero-main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; flex: 1; }
.lead-hero-avatar {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.lead-tone-qualified .lead-hero-avatar { background: #f0fdf4; color: #16a34a; }
.lead-tone-unqualified .lead-hero-avatar { background: #fef2f2; color: #dc2626; }
.lead-tone-converted .lead-hero-avatar { background: #f0fdfa; color: #0f766e; }
.lead-hero-sub, .lead-hero-contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-size: 13px; color: var(--muted); margin-top: 6px;
}
.lead-hero-sub span, .lead-hero-contact span, .lead-hero-contact a {
  display: inline-flex; align-items: center; gap: 6px;
}
.lead-hero-contact a { color: var(--brand); text-decoration: none; font-weight: 600; }
.lead-hero-contact a:hover { text-decoration: underline; }
.lead-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.lead-hero-actions .btn { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.lead-converted-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: #f0fdfa; color: #0f766e; border-radius: 14px; padding: 12px 14px;
  font-size: 13px; max-width: 360px;
}
.lead-converted-banner i { font-size: 20px; margin-top: 2px; }
.lead-converted-banner a { color: #0f766e; font-weight: 700; }
.lead-section-title { font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead-stepper { display: flex; align-items: flex-start; gap: 0; }
.lead-step { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 88px; }
.lead-step-dot {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; font-size: 16px;
}
.lead-step.is-done .lead-step-dot { background: #dbeafe; color: #1d4ed8; }
.lead-step-qualified.is-done .lead-step-dot { background: #dcfce7; color: #16a34a; }
.lead-step-unqualified.is-done .lead-step-dot { background: #fee2e2; color: #dc2626; }
.lead-step-converted.is-done .lead-step-dot { background: #ccfbf1; color: #0f766e; }
.lead-step.is-current .lead-step-dot { box-shadow: 0 0 0 4px #dbeafe; }
.lead-step.lead-step-new.is-current .lead-step-dot { background: #1d4ed8; color: #fff; }
.lead-step.lead-step-qualified.is-current .lead-step-dot { background: #16a34a; color: #fff; box-shadow: 0 0 0 4px #dcfce7; }
.lead-step.lead-step-unqualified.is-current .lead-step-dot { background: #dc2626; color: #fff; box-shadow: 0 0 0 4px #fee2e2; }
.lead-step.lead-step-converted.is-current .lead-step-dot { background: #0f766e; color: #fff; box-shadow: 0 0 0 4px #ccfbf1; }
.lead-step.is-skipped .lead-step-dot { background: #f8fafc; color: #cbd5e1; box-shadow: none; }
.lead-step-label { font-size: 12px; font-weight: 800; margin-top: 8px; }
.lead-step.is-current .lead-step-label { color: #0f766e; }
.lead-step.lead-step-new.is-current .lead-step-label { color: #1d4ed8; }
.lead-step.lead-step-qualified.is-current .lead-step-label { color: #16a34a; }
.lead-step.lead-step-unqualified.is-current .lead-step-label { color: #dc2626; }
.lead-step-hint { font-size: 11px; font-weight: 700; color: var(--muted); }
.lead-step.is-current .lead-step-hint { color: inherit; }
.lead-step-line { flex: 1; height: 3px; background: #e2e8f0; margin: 18px 8px 0; border-radius: 99px; min-width: 24px; }
.lead-step-line.is-on { background: #93c5fd; }
.lead-status-tl { position: relative; padding-left: 22px; }
.lead-status-tl:before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.lead-status-tl-item { position: relative; display: flex; gap: 12px; padding-bottom: 16px; opacity: .65; }
.lead-status-tl-item.is-current { opacity: 1; }
.lead-status-tl-item:last-child { padding-bottom: 0; }
.lead-status-tl-dot {
  position: absolute; left: -22px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: #2563eb; border: 2px solid #fff; box-shadow: 0 0 0 1px #bfdbfe;
}
.lead-status-tl-item.is-current .lead-status-tl-dot { width: 14px; height: 14px; left: -23px; top: 3px; }
.lead-status-tl-item.lead-tone-qualified .lead-status-tl-dot { background: #16a34a; box-shadow: 0 0 0 1px #bbf7d0; }
.lead-status-tl-item.lead-tone-unqualified .lead-status-tl-dot { background: #dc2626; box-shadow: 0 0 0 1px #fecaca; }
.lead-status-tl-item.lead-tone-converted .lead-status-tl-dot { background: #0f766e; box-shadow: 0 0 0 1px #99f6e4; }
.lead-status-tl-from { font-size: 12px; font-weight: 700; color: var(--muted); }
.lead-status-tl-now { font-size: 11px; font-weight: 800; color: #0f766e; background: #ccfbf1; border-radius: 999px; padding: 1px 8px; }
.lead-activity-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lead-activity-row:last-child { border-bottom: 0; }
.lead-empty { padding: 20px 8px; }
.lead-facts { margin: 0; }
.lead-facts > div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lead-facts > div:last-child { border-bottom: 0; }
.lead-facts dt { color: var(--muted); font-weight: 700; margin: 0; }
.lead-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.lead-facts a { color: var(--brand); text-decoration: none; }
.lead-facts a:hover { text-decoration: underline; }
.lead-notes { font-size: 14px; line-height: 1.5; }
@media (max-width: 767px) {
  .lead-hero-main { flex-direction: column; }
  .lead-stepper { overflow-x: auto; }
}

.rec-page .rec-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 12px;
}
.rec-page .rec-back:hover { color: var(--brand); }
.rec-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 42%);
  border-radius: 20px; box-shadow: var(--shadow);
  border: 1px solid #e2e8f0; border-left: 5px solid #2563eb;
  padding: 20px 22px; margin-bottom: 16px;
}
.rec-hero.lead-tone-qualified,
.rec-hero.rec-tone-open { border-left-color: #2563eb; }
.rec-hero.lead-tone-unqualified,
.rec-hero.rec-tone-lost,
.rec-hero.rec-tone-cancelled { border-left-color: #dc2626; }
.rec-hero.lead-tone-converted,
.rec-hero.rec-tone-won { border-left-color: #0f766e; }
.rec-hero.rec-tone-progress { border-left-color: #ea580c; }
.rec-hero.rec-tone-signed { border-left-color: #7c3aed; }
.rec-hero-main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; flex: 1; }
.rec-hero-avatar {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
}
.rec-tone-won .rec-hero-avatar,
.lead-tone-converted .rec-hero-avatar { background: #f0fdfa; color: #0f766e; }
.rec-tone-lost .rec-hero-avatar,
.rec-tone-cancelled .rec-hero-avatar,
.lead-tone-unqualified .rec-hero-avatar { background: #fef2f2; color: #dc2626; }
.rec-tone-progress .rec-hero-avatar { background: #fff7ed; color: #ea580c; }
.job-hero-open { background: #dbeafe !important; color: #1d4ed8 !important; }
.job-hero-progress { background: #ffedd5 !important; color: #c2410c !important; }
.job-hero-done { background: #ccfbf1 !important; color: #0f766e !important; }
.job-hero-cancelled { background: #f3f4f6 !important; color: #4b5563 !important; }
.rec-tone-signed .rec-hero-avatar,
.doc-hero-signed { background: #f5f3ff !important; color: #7c3aed !important; }
.doc-hero-open { background: #dbeafe !important; color: #1d4ed8 !important; }
.doc-hero-progress { background: #ffedd5 !important; color: #c2410c !important; }
.doc-hero-won { background: #ccfbf1 !important; color: #0f766e !important; }
.doc-hero-lost { background: #fee2e2 !important; color: #b91c1c !important; }
.rec-hero-amt { text-align: right; min-width: 110px; }
.rec-hero-amt strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.rec-hero-amt span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.rec-page .quo-steps { margin-top: 0; }
.rec-kicker { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.rec-hero-sub, .rec-hero-contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-size: 13px; color: var(--muted); margin-top: 6px;
}
.rec-hero-sub span, .rec-hero-sub a, .rec-hero-contact span, .rec-hero-contact a {
  display: inline-flex; align-items: center; gap: 6px;
}
.rec-hero-sub a, .rec-hero-contact a { color: var(--brand); text-decoration: none; font-weight: 700; }
.rec-hero-sub a:hover, .rec-hero-contact a:hover { text-decoration: underline; }
.rec-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; max-width: 360px; }
.rec-hero-actions .btn { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.rec-action-hint { width: 100%; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 2px; }
.rec-status {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 800;
}
.rec-status-open { background: #dbeafe; color: #1d4ed8; }
.rec-status-won { background: #ccfbf1; color: #0f766e; }
.rec-status-lost { background: #fee2e2; color: #dc2626; }
.rec-amount {
  display: inline-flex; border-radius: 999px; padding: 3px 10px;
  background: #fef3c7; color: #b45309; font-size: 12px; font-weight: 800;
}
.rec-banner {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: 14px; padding: 12px 14px; font-size: 13px;
}
.rec-banner.is-won { background: #f0fdfa; color: #0f766e; }
.rec-banner.is-lost { background: #fef2f2; color: #b91c1c; }
.rec-banner i { font-size: 20px; margin-top: 2px; }
.rec-banner a { color: inherit; font-weight: 700; }
.rec-card { border: 1px solid #eef2f7; }
.rec-section-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.rec-section-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #eff6ff; color: var(--brand); font-size: 16px;
}
.rec-section-title { font-size: 14px; font-weight: 800; margin: 0; letter-spacing: 0; text-transform: none; color: #0f172a; }
.rec-section-hint { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 0 0; }
.rec-subhead { font-size: 13px; font-weight: 800; margin: 0 0 4px; }
.rec-split { border: 0; border-top: 1px solid var(--line); margin: 18px 0 16px; }
.rec-paper-list { display: flex; flex-direction: column; gap: 10px; }
.rec-paper-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.rec-paper-kind {
  flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; background: #dbeafe; color: #1d4ed8;
}
.rec-fields { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec-pipe {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.rec-pipe-item {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0; max-width: 100%;
  padding: 8px 10px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: 12px; font-weight: 700; color: #64748b;
}
.rec-pipe-n {
  width: 22px; height: 22px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #e2e8f0; color: #475569; font-size: 11px; font-weight: 800;
}
.rec-pipe-name { min-width: 0; }
.rec-pipe-now {
  font-size: 10px; font-weight: 800; border-radius: 999px;
  padding: 2px 7px; background: #dbeafe; color: #1d4ed8;
}
.rec-pipe-item.is-done { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.rec-pipe-item.is-done .rec-pipe-n { background: #2563eb; color: #fff; }
.rec-pipe-item.is-current { background: #fff; border-color: var(--brand); color: #0f172a; box-shadow: 0 0 0 3px rgba(26, 86, 200, .12); }
.rec-pipe-item.is-current .rec-pipe-n { background: var(--brand); color: #fff; }
.rec-pipe-item.is-current.is-won { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.rec-pipe-item.is-current.is-won .rec-pipe-n,
.rec-pipe-item.is-current.is-won .rec-pipe-now { background: #0f766e; color: #fff; }
.rec-pipe-item.is-current.is-lost { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.rec-pipe-item.is-current.is-lost .rec-pipe-n,
.rec-pipe-item.is-current.is-lost .rec-pipe-now { background: #dc2626; color: #fff; }
.rec-pipe-item.is-skipped { opacity: .55; }
.rec-stepper { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; padding-bottom: 4px; }
.rec-step { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 88px; }
.rec-step-dot {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; font-size: 16px;
}
.rec-step.is-done .rec-step-dot { background: #dbeafe; color: #1d4ed8; }
.rec-step-qualified.is-done .rec-step-dot,
.rec-step-converted.is-done .rec-step-dot { background: #dcfce7; color: #16a34a; }
.rec-step-unqualified.is-done .rec-step-dot { background: #fee2e2; color: #dc2626; }
.rec-step.is-current .rec-step-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px #dbeafe; }
.rec-step.rec-step-qualified.is-current .rec-step-dot { background: #16a34a; box-shadow: 0 0 0 4px #dcfce7; }
.rec-step.rec-step-unqualified.is-current .rec-step-dot { background: #dc2626; box-shadow: 0 0 0 4px #fee2e2; }
.rec-step.rec-step-converted.is-current .rec-step-dot { background: #0f766e; box-shadow: 0 0 0 4px #ccfbf1; }
.rec-step.is-skipped .rec-step-dot { background: #f8fafc; color: #cbd5e1; box-shadow: none; }
.rec-step-label { font-size: 12px; font-weight: 800; margin-top: 8px; }
.rec-step.is-current .rec-step-label { color: var(--brand); }
.rec-step-hint { font-size: 11px; font-weight: 700; color: var(--muted); }
.rec-step-line { flex: 1; height: 3px; background: #e2e8f0; margin: 18px 8px 0; border-radius: 99px; min-width: 24px; }
.rec-step-line.is-on { background: #93c5fd; }
.rec-status-tl { position: relative; padding-left: 22px; }
.rec-status-tl:before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.rec-status-tl-item { position: relative; display: flex; gap: 12px; padding-bottom: 16px; opacity: .65; }
.rec-status-tl-item.is-current { opacity: 1; }
.rec-status-tl-item:last-child { padding-bottom: 0; }
.rec-status-tl-dot {
  position: absolute; left: -22px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: #2563eb; border: 2px solid #fff; box-shadow: 0 0 0 1px #bfdbfe;
}
.rec-status-tl-item.is-current .rec-status-tl-dot { width: 14px; height: 14px; left: -23px; top: 3px; }
.rec-status-tl-item.lead-tone-qualified .rec-status-tl-dot { background: #16a34a; box-shadow: 0 0 0 1px #bbf7d0; }
.rec-status-tl-item.lead-tone-unqualified .rec-status-tl-dot { background: #dc2626; box-shadow: 0 0 0 1px #fecaca; }
.rec-status-tl-item.lead-tone-converted .rec-status-tl-dot { background: #0f766e; box-shadow: 0 0 0 1px #99f6e4; }
.rec-status-tl-from { font-size: 12px; font-weight: 700; color: var(--muted); }
.rec-status-tl-now { font-size: 11px; font-weight: 800; color: #0f766e; background: #ccfbf1; border-radius: 999px; padding: 1px 8px; }
.rec-activity-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rec-activity-row:last-child { border-bottom: 0; }
.rec-chip {
  font-size: 10px; font-weight: 800; border-radius: 999px;
  padding: 2px 8px; background: #f1f5f9; color: #475569;
}
.rec-empty { padding: 20px 8px; }
.rec-facts { margin: 0; }
.rec-facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rec-facts > div:last-child { border-bottom: 0; }
.rec-facts dt { color: var(--muted); font-weight: 700; margin: 0; }
.rec-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.rec-facts a { color: var(--brand); text-decoration: none; }
.rec-facts a:hover { text-decoration: underline; }
.rec-notes { font-size: 14px; line-height: 1.5; }
@media (max-width: 767px) {
  .rec-hero-main { flex-direction: column; }
  .rec-fields { grid-template-columns: 1fr; }
}

.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid #2563eb;
  text-decoration: none;
  color: inherit;
}
.account-card:hover { border-color: #c7d2fe; color: inherit; }
.account-tone-active { border-left-color: #2563eb; }
.account-tone-today { border-left-color: #16a34a; }
.account-tone-due { border-left-color: #ef4444; }
.account-tone-inactive { border-left-color: #9ca3af; opacity: .82; }
.account-avatar {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.account-tone-today .account-avatar { background: #f0fdf4; color: #16a34a; }
.account-tone-due .account-avatar { background: #fef2f2; color: #ef4444; }
.account-tone-inactive .account-avatar { background: #f3f4f6; color: #6b7280; }
.account-status-active { background: #dbeafe; color: #1d4ed8; }
.account-status-inactive { background: #f3f4f6; color: #4b5563; }

.account-show .account-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 12px;
}
.account-show .account-back:hover { color: var(--brand); }
.account-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); border-left: 4px solid #2563eb;
  padding: 20px 22px; margin-bottom: 16px;
}
.account-hero.account-tone-today { border-left-color: #16a34a; }
.account-hero.account-tone-due { border-left-color: #ef4444; }
.account-hero.account-tone-inactive { border-left-color: #9ca3af; }
.account-hero-main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; flex: 1; }
.account-hero-avatar {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.account-tone-today .account-hero-avatar { background: #f0fdf4; color: #16a34a; }
.account-tone-due .account-hero-avatar { background: #fef2f2; color: #ef4444; }
.account-tone-inactive .account-hero-avatar { background: #f3f4f6; color: #6b7280; }
.account-hero-sub, .account-hero-contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-size: 13px; color: var(--muted); margin-top: 6px;
}
.account-hero-sub span, .account-hero-contact span, .account-hero-contact a, .account-hero-sub a {
  display: inline-flex; align-items: center; gap: 6px;
}
.account-hero-contact a, .account-hero-sub a { color: var(--brand); text-decoration: none; font-weight: 600; }
.account-hero-contact a:hover, .account-hero-sub a:hover { text-decoration: underline; }
.account-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.account-hero-actions .btn { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.account-section-title, .contact-section-title {
  font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none;
  color: #0f172a; margin: 0 0 14px;
}
.account-activity-row, .account-mail-row, .account-task-row {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.account-activity-row:last-child, .account-mail-row:last-child, .account-task-row:last-child { border-bottom: 0; }
.account-task-row { align-items: center; justify-content: space-between; }
.account-empty { padding: 20px 8px; }
.account-facts { margin: 0; }
.account-facts > div {
  display: grid; grid-template-columns: 92px 1fr; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.account-facts > div:last-child { border-bottom: 0; }
.account-facts dt { color: var(--muted); font-weight: 700; margin: 0; }
.account-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.account-facts a { color: var(--brand); text-decoration: none; }
.account-facts a:hover { text-decoration: underline; }
.account-fact-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.account-fact-line:last-child { border-bottom: 0; }
.account-fact-line span { color: var(--muted); font-weight: 700; }
.account-next { border-left: 4px solid #cbd5e1; }
.account-next.due-today { border-left-color: #16a34a; }
.account-next.due-overdue { border-left-color: #ef4444; }
.account-next.due-later { border-left-color: #ea580c; }
.account-rel-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  border-left: 4px solid #2563eb;
  text-decoration: none; color: inherit;
}
.account-rel-card:last-child { margin-bottom: 0; }
.account-rel-card:hover { border-color: #c7d2fe; color: inherit; }
.account-rel-card.is-primary { border-left-color: #f59e0b; }
.account-rel-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.account-show .opp-card { margin-bottom: 8px; }
@media (max-width: 767px) {
  .account-hero-main { flex-direction: column; }
}

.contact-add {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.contact-add-title {
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-add-title i { color: var(--brand); }
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid #2563eb;
  text-decoration: none;
  color: inherit;
}
.contact-card:hover { border-color: #c7d2fe; color: inherit; }
.contact-tone-primary { border-left-color: #f59e0b; }
.contact-tone-bounced { border-left-color: #dc2626; }
.contact-tone-ok { border-left-color: #2563eb; }
.contact-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.contact-tone-primary .contact-avatar { background: #fffbeb; color: #d97706; }
.contact-tone-bounced .contact-avatar { background: #fef2f2; color: #dc2626; }
.contact-primary {
  display: inline-flex; align-items: center;
  margin-left: 8px; vertical-align: middle;
  background: #fef3c7; color: #b45309;
  border-radius: 999px; padding: 1px 8px;
  font-size: 11px; font-weight: 800;
}
.contact-status-ok { background: #dcfce7; color: #16a34a; }
.contact-status-bounced { background: #fee2e2; color: #dc2626; }
.contact-status-none { background: #f3f4f6; color: #6b7280; }

.contact-show .contact-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 12px;
}
.contact-show .contact-back:hover { color: var(--brand); }
.contact-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); border-left: 4px solid #2563eb;
  padding: 20px 22px; margin-bottom: 16px;
}
.contact-hero.contact-tone-primary { border-left-color: #f59e0b; }
.contact-hero.contact-tone-bounced { border-left-color: #dc2626; }
.contact-hero-main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; flex: 1; }
.contact-hero-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.contact-tone-primary .contact-hero-avatar { background: #fffbeb; color: #d97706; }
.contact-tone-bounced .contact-hero-avatar { background: #fef2f2; color: #dc2626; }
.contact-hero-sub, .contact-hero-contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-size: 13px; color: var(--muted); margin-top: 6px;
}
.contact-hero-sub span, .contact-hero-contact span, .contact-hero-contact a {
  display: inline-flex; align-items: center; gap: 6px;
}
.contact-hero-sub a, .contact-hero-contact a { color: var(--brand); text-decoration: none; font-weight: 600; }
.contact-hero-sub a:hover, .contact-hero-contact a:hover { text-decoration: underline; }
.contact-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.contact-hero-actions .btn { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.contact-activity-row, .contact-mail-row, .contact-task-row {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-activity-row:last-child, .contact-mail-row:last-child, .contact-task-row:last-child { border-bottom: 0; }
.contact-task-row { align-items: center; justify-content: space-between; }
.contact-empty { padding: 20px 8px; }
.contact-facts { margin: 0; }
.contact-facts > div {
  display: grid; grid-template-columns: 72px 1fr; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.contact-facts > div:last-child { border-bottom: 0; }
.contact-facts dt { color: var(--muted); font-weight: 700; margin: 0; }
.contact-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.contact-facts a { color: var(--brand); text-decoration: none; }
.contact-facts a:hover { text-decoration: underline; }
.contact-account-card { display: block; color: inherit; }
.contact-account-card:hover { color: inherit; }
.contact-rel-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  border-left: 4px solid #2563eb;
  text-decoration: none; color: inherit;
}
.contact-rel-card:last-child { margin-bottom: 0; }
.contact-rel-card:hover { border-color: #c7d2fe; color: inherit; }
.contact-rel-card.is-primary { border-left-color: #f59e0b; }
.contact-rel-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.contact-show .task-summary-n { font-size: 18px; }
@media (max-width: 767px) {
  .contact-hero-main { flex-direction: column; }
}

.email-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid #2563eb;
}
.email-tone-sent { border-left-color: #16a34a; }
.email-tone-logged { border-left-color: #7c3aed; }
.email-tone-failed { border-left-color: #dc2626; }
.email-tone-in { border-left-color: #ea580c; }
.email-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 18px;
  background: #eff6ff; color: var(--brand);
}
.email-tone-sent .email-icon { background: #f0fdf4; color: #16a34a; }
.email-tone-logged .email-icon { background: #f3e8ff; color: #7c3aed; }
.email-tone-failed .email-icon { background: #fef2f2; color: #dc2626; }
.email-tone-in .email-icon { background: #fff7ed; color: #ea580c; }
.email-preview {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.email-status-sent { background: #dcfce7; color: #16a34a; }
.email-status-logged { background: #f3e8ff; color: #6d28d9; }
.email-status-failed { background: #fee2e2; color: #dc2626; }

@media (max-width: 991px) {
  .lead-card, .account-card, .contact-card, .email-card, .svc-visit { flex-wrap: wrap; }
  .lead-page .task-meta,
  .account-page .task-meta,
  .contact-page .task-meta,
  .email-page .task-meta,
  .asg-page .task-meta { width: 100%; margin-left: 54px; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 575px) {
  .lead-page .task-meta,
  .account-page .task-meta,
  .contact-page .task-meta,
  .email-page .task-meta,
  .asg-page .task-meta { margin-left: 0; }
}

@media (max-width: 991px) {
  .task-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-page .task-card { flex-wrap: wrap; }
  .task-page .task-meta { width: 100%; margin-left: 54px; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 575px) {
  .task-page .task-meta { margin-left: 0; }
}
.rpt-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.rpt-kpis .task-summary-n { font-size: 20px; }
.rpt-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
}
a.rpt-card:hover { border-color: #c7d2fe; color: inherit; }
.rpt-card:not(:has(.rpt-metrics)) .rpt-card-top { margin-bottom: 0; }
.rpt-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rpt-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #eff6ff; color: var(--brand); font-size: 18px;
}
.rpt-status-sent { background: #dcfce7; color: #16a34a; }
.rpt-status-draft { background: #eef2ff; color: #1d4ed8; }
.rpt-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.rpt-metric-n { font-size: 18px; font-weight: 800; line-height: 1.1; }
.rpt-metric-l { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.rpt-bar {
  height: 6px; border-radius: 99px; background: #eef0f4;
  margin-top: 6px; overflow: hidden;
}
.rpt-bar span { display: block; height: 100%; border-radius: 99px; min-width: 0; }
.rpt-bounce {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  margin-bottom: 8px;
  border-left: 4px solid #dc2626;
}
.rpt-bounce-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #fef2f2; color: #dc2626;
}
.rpt-page .pagination { margin-top: 16px; }

@media (max-width: 1199px) {
  .rpt-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .rpt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpt-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpt-card-top { flex-wrap: wrap; }
}
.table-soft td { vertical-align: middle; }
.badge-soft { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.kanban-wrap { min-width: 0; }
.kanban-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.kanban-nav-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.kanban-nav-copy strong { font-size: 13px; }
.kanban-nav-copy span { font-size: 12px; color: var(--muted); font-weight: 600; }
.kanban-wrap.is-overflow .kanban-nav-hint.is-fit-only,
.kanban-wrap:not(.is-overflow) .kanban-nav-hint.is-overflow-only { display: none; }
.kanban-nav-btns { display: flex; gap: 8px; flex-shrink: 0; }
.kanban-nav-btn,
.kanban-edge {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.kanban-nav-btn:hover,
.kanban-edge:hover { background: #eff6ff; }
.kanban-nav-btn:disabled,
.kanban-edge:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.kanban-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 4px;
  scrollbar-width: thin;
}
.kanban-rail-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 32px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 12px;
  color: #4b5563;
  white-space: nowrap;
}
.kanban-rail-chip:hover { border-color: #93c5fd; color: var(--brand); }
.kanban-rail-chip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.kanban-rail-chip.is-won.is-on { background: #16a34a; border-color: #16a34a; }
.kanban-rail-chip.is-lost.is-on { background: #dc2626; border-color: #dc2626; }
.kanban-rail-n {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.kanban-rail-chip.is-on .kanban-rail-n { background: rgba(255,255,255,.22); color: #fff; }
.kanban-viewport { position: relative; min-width: 0; }
.kanban-edge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: none;
}
.kanban-wrap.is-overflow .kanban-edge { display: grid; }
.kanban-wrap:not(.has-left) .kanban-edge.is-left,
.kanban-wrap:not(.has-right) .kanban-edge.is-right { display: none; }
.kanban-edge.is-left { left: 6px; }
.kanban-edge.is-right { right: 6px; }
.kanban-viewport::before,
.kanban-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 14px;
  width: 36px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
.kanban-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 20%, transparent);
}
.kanban-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 20%, transparent);
}
.kanban-wrap.has-left .kanban-viewport::before,
.kanban-wrap.has-right .kanban-viewport::after { opacity: 1; }
.kanban {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  align-items: flex-start;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #60a5fa #e5e7eb;
  cursor: grab;
}
.kanban:active { cursor: grabbing; }
.kanban:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.kanban::-webkit-scrollbar { height: 12px; }
.kanban::-webkit-scrollbar-track { background: #e5e7eb; border-radius: 999px; }
.kanban::-webkit-scrollbar-thumb {
  background: #60a5fa;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
}
.kanban::-webkit-scrollbar-thumb:hover { background: var(--brand); }
.kanban-col {
  min-width: 272px; max-width: 272px; flex: 0 0 272px;
  background: #f3f5f9; border-radius: 16px; padding: 10px;
  border: 1px solid var(--line);
  min-height: 220px;
}
.kanban-col.is-won { background: #f0fdf4; }
.kanban-col.is-lost { background: #fef2f2; min-height: 140px; }
.kanban-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px; margin-bottom: 10px; padding: 4px 4px 8px;
  border-bottom: 3px solid var(--col-tone, #2563eb);
}
.kanban-col.is-lost .kanban-head { border-bottom-color: #dc2626; }
.kanban-title { font-weight: 800; font-size: 13px; }
.kanban-sub { font-size: 11px; font-weight: 600; color: var(--muted); }
.kanban-count {
  min-width: 24px; height: 24px; border-radius: 999px;
  background: var(--col-tone, #2563eb); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.kanban-card {
  background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px;
  box-shadow: var(--shadow); cursor: pointer; border: 1px solid #eef0f4;
}
.kanban-card:hover { border-color: #c7d2fe; }
.kanban-card:active { cursor: grabbing; }
.kanban-name { font-weight: 800; text-decoration: none; color: inherit; display: block; }
.kanban-name:hover { color: var(--brand); }
.kanban-amt { font-weight: 800; font-size: 15px; margin-top: 6px; color: var(--text); }
.kanban-next {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 11px; color: var(--muted); font-weight: 600;
}
@media (max-width: 575px) {
  .kanban-nav { flex-wrap: wrap; }
  .kanban-edge { display: none !important; }
}

.opp-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid #2563eb;
  text-decoration: none;
  color: inherit;
}
.opp-card:hover { border-color: #c7d2fe; color: inherit; }
.opp-tone-open { border-left-color: #2563eb; }
.opp-tone-today { border-left-color: #16a34a; }
.opp-tone-due { border-left-color: #ef4444; }
.opp-tone-won { border-left-color: #16a34a; }
.opp-tone-lost { border-left-color: #dc2626; opacity: .85; }
.opp-avatar {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.opp-amt { font-weight: 800; font-size: 15px; white-space: nowrap; }
.opp-stage-open { background: #dbeafe; color: #1d4ed8; }
.opp-stage-today { background: #dcfce7; color: #16a34a; }
.opp-stage-due { background: #fee2e2; color: #b91c1c; }
.opp-stage-won { background: #dcfce7; color: #16a34a; }
.opp-stage-lost { background: #fee2e2; color: #dc2626; }
.record-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pills span { background: #eef2ff; color: var(--brand-dark); border-radius: 999px; padding: 4px 10px; font-weight: 600; font-size: 12px; }
.timeline { border-left: 2px solid var(--line); margin-left: 12px; padding-left: 18px; }
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-item:before {
  content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand);
}
.cal-page { width: 100%; min-width: 0; }
.cal-add-btn {
  height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cal-board {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}
.cal-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cal-board-month { font-size: 16px; font-weight: 800; }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.cal-dot.is-meeting { background: #2563eb; }
.cal-dot.is-call { background: #16a34a; }
.cal-dot.is-visit { background: #ea580c; }
.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.cal-weekdays > *,
.cal-grid > * {
  min-width: 0;
  max-width: 100%;
}
.cal-weekdays {
  margin-bottom: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cal-weekdays .is-weekend { color: #94a3b8; }
.cal-cell {
  background: #f8fafc;
  min-width: 0;
  min-height: 104px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  padding: 6px;
  border: 1px solid transparent;
}
.cal-cell.is-weekend { background: #f1f5f9; }
.cal-cell.mute { opacity: .42; }
.cal-cell.has-events { cursor: pointer; }
.cal-cell.has-events:hover {
  background: #fff;
  border-color: #c7d2fe;
  box-shadow: 0 8px 18px rgba(12, 42, 90, .08);
}
.cal-cell.has-events.is-today:hover { background: #eff6ff; }
.cal-cell.is-today {
  background: #eff6ff;
  border-color: #93c5fd;
}
.cal-daynum {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 4px;
  line-height: 22px;
}
.cal-cell.is-today .cal-daynum {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #fff;
  text-align: center;
}
.cal-event {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 6px;
  padding: 3px 6px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #dbeafe;
  color: #1e3a8a;
  border-left: 3px solid #2563eb;
}
.cal-event.is-call { background: #dcfce7; color: #166534; border-left-color: #16a34a; }
.cal-event.is-visit { background: #ffedd5; color: #9a3412; border-left-color: #ea580c; }
.cal-event.is-meeting { background: #dbeafe; color: #1e3a8a; border-left-color: #2563eb; }
.cal-event.is-other { background: #f3e8ff; color: #6b21a8; border-left-color: #7c3aed; }
.cal-more {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-side {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}
.cal-side-title { font-weight: 800; margin-bottom: 12px; }
.cal-side-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 20px;
}
.cal-side-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  min-width: 0;
}
.cal-side-item .min-w-0 { min-width: 0; overflow: hidden; }
.cal-side-item .event-date {
  width: 46px;
  text-align: center;
  flex-shrink: 0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 6px 0 4px;
}
.cal-side-item .event-date.is-call { background: #f0fdf4; }
.cal-side-item .event-date.is-visit { background: #fff7ed; }
.cal-side-item .event-date.is-meeting { background: #eff6ff; }
.cal-side-item .event-date.is-other { background: #f5f3ff; }
.cal-side-item .event-date.is-call .mon { color: #16a34a; }
.cal-side-item .event-date.is-visit .mon { color: #ea580c; }
.cal-side-item .event-date.is-meeting .mon { color: #2563eb; }
.cal-side-item .event-date.is-other .mon { color: #7c3aed; }
.cal-side-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  min-width: 0;
  overflow: hidden;
}
.cal-side-meta .task-avatar { width: 22px; height: 22px; font-size: 9px; }
.cal-side-meta .task-owner { font-size: 12px; font-weight: 600; max-width: 6.5rem; }
.cal-related {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-day-modal {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
}
.cal-day-modal .modal-header {
  border-bottom: 1px solid var(--line);
  padding: 18px 20px 14px;
  align-items: flex-start;
}
.cal-day-modal-count {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 2px;
}
.cal-day-modal .modal-title { font-weight: 800; font-size: 18px; }
.cal-day-modal .modal-body { padding: 12px 16px 16px; }
.cal-day-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  background: #fff;
  border-left: 4px solid #2563eb;
}
.cal-day-item:last-child { margin-bottom: 0; }
.cal-day-item.is-call { border-left-color: #16a34a; background: #f8fff9; }
.cal-day-item.is-visit { border-left-color: #ea580c; background: #fffaf5; }
.cal-day-item.is-meeting { border-left-color: #2563eb; background: #f8fbff; }
.cal-day-item.is-other { border-left-color: #7c3aed; background: #fbf8ff; }
.cal-day-item-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px;
  background: #eff6ff; color: #2563eb;
}
.cal-day-item.is-call .cal-day-item-icon { background: #dcfce7; color: #16a34a; }
.cal-day-item.is-visit .cal-day-item-icon { background: #ffedd5; color: #ea580c; }
.cal-day-item.is-meeting .cal-day-item-icon { background: #dbeafe; color: #2563eb; }
.cal-day-item.is-other .cal-day-item-icon { background: #f3e8ff; color: #7c3aed; }
.cal-day-item-title { font-weight: 800; }
.cal-day-item-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cal-day-item-notes { font-size: 13px; margin-top: 8px; color: #334155; }
.cal-day-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #eef2ff;
  color: #1a56c8;
  margin-left: 6px;
}
.cal-day-item.is-call .cal-day-type { background: #dcfce7; color: #166534; }
.cal-day-item.is-visit .cal-day-type { background: #ffedd5; color: #9a3412; }
.cal-day-item.is-meeting .cal-day-type { background: #dbeafe; color: #1e3a8a; }
.cal-day-item.is-other .cal-day-type { background: #f3e8ff; color: #6b21a8; }
@media (max-width: 1199px) {
  .cal-side-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .cal-side-grid { grid-template-columns: 1fr; }
}
.set-page { width: 100%; min-width: 0; }
.set-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}
.set-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.set-section-title {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.set-section-title i { color: var(--brand); }
.set-section-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}
.set-save {
  height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.set-tz {
  max-width: 520px;
}
.set-tz .form-label {
  font-weight: 700;
  font-size: 13px;
}
.set-tz .form-select {
  border-radius: 12px;
}
.set-tz-now {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
}
.set-industry-grid,
.set-connect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.set-industry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.set-industry:hover { border-color: #c7d2fe; }
.set-industry.is-on,
.set-industry:has(input:checked) {
  background: var(--set-tint, #eff6ff);
  border-color: var(--set-accent, var(--brand));
  box-shadow: 0 8px 24px rgba(37, 99, 235, .08);
}
.set-industry-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--set-tint, #eff6ff);
  color: var(--set-accent, var(--brand));
  font-size: 18px;
}
.set-industry-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.set-industry-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--set-accent, var(--brand));
}
.set-industry-name { font-weight: 800; }
.set-industry-sum, .set-industry-meta { font-size: 12px; color: var(--muted); }
.set-connect {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-width: 0;
}
.set-connect.is-on { background: var(--set-tint, #f0fdf4); border-color: #bbf7d0; }
.set-connect-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--set-tint, #eff6ff);
  color: var(--set-accent, var(--brand));
  font-size: 18px;
}
.set-connect-name { font-weight: 800; }
.set-connect-sum { font-size: 12px; color: var(--muted); }
.set-connect-btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 4px 12px;
  white-space: nowrap;
}
.set-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.25rem; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.set-pill.is-on { background: #dcfce7; color: #16a34a; }
.set-pill.is-off { background: #f3f4f6; color: #6b7280; }
@media (max-width: 991px) {
  .set-industry-grid, .set-connect-grid { grid-template-columns: 1fr; }
}
.asg-page { width: 100%; min-width: 0; }
.asg-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.asg-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.asg-method {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  min-width: 0;
}
.asg-method i {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #eff6ff; color: var(--brand); font-size: 16px;
}
.asg-method strong { display: block; font-size: 13px; font-weight: 800; }
.asg-method em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.asg-method:hover { border-color: #c7d2fe; }
.asg-method:has(input:checked) {
  border-color: var(--brand);
  background: #eff6ff;
  box-shadow: 0 8px 18px rgba(26, 86, 200, .08);
}
.asg-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.asg-submit {
  height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
  white-space: nowrap;
}
.asg-territory { display: none; }
.asg-page:has([name="method"][value="territory"]:checked) .asg-user,
.asg-page:has([name="method"][value="round_robin"]:checked) .asg-user { display: none; }
.asg-page:has([name="method"][value="territory"]:checked) .asg-territory { display: block; }
.asg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 13px;
}
.asg-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.asg-card { cursor: pointer; }
.asg-card:has(.asg-check:checked) {
  border-color: var(--brand);
  background: #f8fbff;
  box-shadow: 0 8px 18px rgba(26, 86, 200, .08);
}
.asg-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand);
  margin-top: 2px;
}
@media (max-width: 991px) {
  .asg-methods, .asg-fields { grid-template-columns: 1fr; }
  .asg-submit { width: 100%; }
}
.auth-body { margin: 0; }
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(125, 211, 240, .55), transparent 55%),
    radial-gradient(700px 420px at 100% 110%, rgba(26, 86, 200, .45), transparent 50%),
    linear-gradient(160deg, #0c2a5a 0%, #1a56c8 52%, #2bb0ea 100%);
}
.auth-shell {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(12, 42, 90, .28);
  min-height: 540px;
}
.auth-hero {
  background:
    radial-gradient(420px 280px at 80% 0%, rgba(125, 211, 240, .35), transparent 60%),
    linear-gradient(165deg, #2bb0ea 0%, #1a56c8 58%, #0c2a5a 100%);
  color: #fff;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}
.auth-hero h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
}
.auth-hero p,
.auth-tagline {
  margin: 0 0 16px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.45;
}
.auth-roles {
  display: grid;
  gap: 8px;
  margin-top: auto;
}
.auth-role {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 6px 10px 6px 6px;
  min-width: 0;
}
.auth-role img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}
.auth-role strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.auth-role span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-card {
  width: 100%;
  max-width: none;
  background: #fff;
  border-radius: 0;
  padding: 40px 36px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-logo { height: 48px; margin-bottom: 22px; }
.auth-title { font-size: 26px; font-weight: 800; margin: 0 0 4px; color: var(--brand-dark); }
.auth-sub { color: var(--muted); margin-bottom: 20px; }
.auth-form .form-label { font-weight: 700; font-size: 13px; color: var(--brand-dark); }
.auth-field {
  position: relative;
  margin-bottom: 14px;
}
.auth-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}
.auth-field .form-control {
  height: 46px;
  border-radius: 12px;
  padding-left: 42px;
  border-color: #e2e8f0;
  background: #f8fafc;
}
.auth-field .form-control:focus {
  background: #fff;
}
.auth-submit {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  font-weight: 800;
  margin-top: 8px;
}
.auth-demo {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--muted);
  background: #f1f5f9;
  border-radius: 10px;
  padding: 10px 12px;
}
@media (max-width: 767px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-hero { padding: 20px 18px 16px; }
  .auth-hero h2 { font-size: 18px; }
  .auth-role img { width: 40px; height: 40px; }
  .auth-card { padding: 28px 22px; }
}
.dropdown-panel {
  position: absolute; right: 0; top: 46px; width: 280px; background: #fff;
  border-radius: 14px; box-shadow: var(--shadow); display: none; z-index: 40; padding: 8px;
}
.dropdown-panel.open { display: block; }
@media (max-width: 991px) {
  .sidebar { position: fixed; left: -246px; transition: left .2s ease; height: 100%; max-height: 100%; }
  .sidebar.open { left: 0; }
  .topbar, .page { padding-left: 16px; padding-right: 16px; }
}

.qa-dialog { max-width: 960px; width: min(960px, calc(100% - 24px)); }
.qa-modal {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(12, 42, 90, .22);
}
.qa-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #1a56c8 0%, #0c2a5a 100%);
  color: #fff;
}
.qa-head .modal-title { font-weight: 800; font-size: 18px; margin: 0; color: #fff; }
.qa-head-sub { font-size: 12px; font-weight: 600; opacity: .8; margin-top: 2px; }
.qa-head-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.16); color: #fff;
  display: grid; place-items: center; font-size: 20px;
}
.qa-head .btn-close { margin: 4px 0 0 auto; opacity: .85; }
.qa-body { padding: 16px 20px 20px; background: #f8fafc; }
.qa-tabs {
  display: flex; flex-wrap: nowrap; gap: 8px;
  margin-bottom: 16px;
}
.qa-modal .nav-link.qa-tab {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 0; flex: 1 1 0;
  margin: 0; padding: 10px 6px;
  border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: #4b5563;
  font-size: 11px; font-weight: 800; line-height: 1.2;
  white-space: nowrap;
}
.qa-modal .nav-link.qa-tab:hover { background: #e8f6fc; color: var(--brand); border-color: #c7d2fe; }
.qa-modal .nav-link.qa-tab.active {
  background: #fff; color: var(--brand); border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 86, 200, .12);
}
.qa-tab-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: #eff6ff; color: var(--brand); font-size: 16px;
}
.qa-modal .nav-link.qa-tab.active .qa-tab-icon { background: var(--brand); color: #fff; }
.qa-pane-hint { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.qa-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 10px 16px;
  align-items: start;
}
.qa-fields .qa-wide { grid-column: 1 / -1; max-width: 656px; }
.qa-modal .form-label { font-weight: 700; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.qa-modal .form-control,
.qa-modal .form-select {
  width: 100%;
  max-width: none;
  border-radius: 12px;
  border-color: #dbe7f3;
  background: #fff;
}
.qa-submit {
  width: auto;
  min-width: 200px;
  margin-top: 14px;
  padding: 0 28px;
  height: 44px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media (max-width: 767px) {
  .qa-tabs { flex-wrap: wrap; }
  .qa-modal .nav-link.qa-tab { min-width: calc(25% - 8px); flex: 1 1 calc(25% - 8px); }
}
@media (max-width: 575px) {
  .qa-dialog { margin: 12px; width: calc(100% - 24px); }
  .qa-modal .nav-link.qa-tab { min-width: calc(33.33% - 8px); flex: 1 1 calc(33.33% - 8px); }
  .qa-fields { grid-template-columns: 1fr; }
  .qa-fields .qa-wide { max-width: none; }
}

.sup-page { max-width: 1100px; }
.sup-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 12px;
}
.sup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sup-stamp { font-size: 12px; font-weight: 700; color: var(--muted); }
.sup-draft {
  background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa;
  border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 13px; margin-bottom: 12px;
}
.sup-steps {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px;
}
.sup-step {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: #4b5563; font-size: 12px; font-weight: 800; text-decoration: none;
}
.sup-step:hover { color: var(--brand); border-color: #c7d2fe; }
.sup-step.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.sup-step-n {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px;
  background: #e5e7eb; color: #374151;
}
.sup-step.is-on .sup-step-n { background: rgba(255,255,255,.25); color: #fff; }
.sup-h { font-size: 13px; font-weight: 800; color: var(--muted); margin: 16px 0 8px; }
.sup-name-grid, .sup-add-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.sup-field { display: flex; flex-direction: column; gap: 4px; }
.sup-field span { font-size: 12px; font-weight: 800; color: var(--muted); }
.sup-field small { font-size: 11px; color: var(--muted); font-weight: 600; }
.sup-stage-list { display: flex; flex-direction: column; gap: 10px; }
.sup-stage {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff;
}
.sup-stage-top { display: grid; grid-template-columns: 1fr 88px 120px auto; gap: 8px; align-items: center; }
.sup-prob { max-width: 88px; }
.sup-stage-move { display: flex; gap: 4px; }
.sup-req { margin-top: 8px; }
.sup-req > span { font-size: 12px; font-weight: 700; color: var(--muted); }
.sup-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; }
.sup-checks label, .sup-check { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.sup-add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-field-row, .sup-rule {
  display: grid; grid-template-columns: auto 1fr 80px auto auto; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.sup-rule { grid-template-columns: auto 1fr 1fr 1fr 72px auto; }
.sup-on { font-size: 12px; font-weight: 800; white-space: nowrap; }
.sup-type { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: capitalize; }
.sup-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sup-form-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff;
}
.sup-form-card h2 { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.sup-form-card p { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.sup-check { display: flex; gap: 8px; margin-bottom: 6px; }
.sup-check small { color: var(--muted); font-weight: 700; }
.sup-table-wrap { overflow-x: auto; }
.sup-perm select { min-width: 88px; }
.sup-next { margin-top: 16px; }
@media (max-width: 767px) {
  .sup-name-grid, .sup-add-grid, .sup-form-grid { grid-template-columns: 1fr; }
  .sup-stage-top, .sup-field-row, .sup-rule { grid-template-columns: 1fr; }
  .sup-steps { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}
.svc-wait { text-align: center; padding: 36px 24px; }
.svc-wait-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.svc-req {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky; top: 16px;
}
.svc-req-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #0f766e 0%, #1a56c8 100%);
  color: #fff;
}
.svc-req-icon {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(255,255,255,.16);
}
.svc-req-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  opacity: .85; margin-bottom: 2px;
}
.svc-req-head h2 { font-size: 18px; font-weight: 800; margin: 0 0 4px; color: #fff; }
.svc-req-head p { font-size: 13px; margin: 0; opacity: .88; font-weight: 600; }
.svc-req-body { padding: 16px 18px 18px; }
.svc-req-body .form-label { font-weight: 700; font-size: 12px; color: var(--muted); }
.svc-req-body .form-control,
.svc-req-body .form-select { border-radius: 12px; }
.svc-req-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 8px;
}
.svc-req-foot .svc-wait-chips { margin-top: 0; justify-content: flex-start; }
.svc-req-foot .btn { border-radius: 999px; font-weight: 800; height: 42px; padding: 0 16px; }
@media (max-width: 991px) {
  .svc-req { position: static; }
}

.com-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
}
a.com-row:hover { border-color: #c7d2fe; color: inherit; }
.com-row.com-static { cursor: default; }
.com-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #eff6ff; color: var(--brand); font-size: 18px;
}
.com-ico-unpaid { background: #fef2f2; color: #dc2626; }
.com-ico-partial { background: #fff7ed; color: #ea580c; }
.com-ico-paid { background: #f0fdf4; color: #16a34a; }
.com-ico-void { background: #f3f4f6; color: #6b7280; }
.com-amt { text-align: right; flex-shrink: 0; }
.com-amt strong { display: block; font-size: 15px; line-height: 1.1; }
.com-amt span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.com-name { font-weight: 800; }
a.com-name { color: inherit; text-decoration: none; }
a.com-name:hover { color: var(--brand); text-decoration: underline; }
.com-sub { font-size: 12px; font-weight: 600; color: var(--muted); }
.com-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; text-transform: capitalize;
  background: #f3f4f6; color: #374151; white-space: nowrap;
}
.com-pill.com-draft, .com-pill.com-open { background: #eff6ff; color: #1d4ed8; }
.com-pill.com-pending_approval, .com-pill.com-in_progress, .com-pill.com-partial { background: #fff7ed; color: #c2410c; }
.com-pill.com-approved, .com-pill.com-sent, .com-pill.com-paid, .com-pill.com-fulfilled, .com-pill.com-done, .com-pill.com-active { background: #f0fdf4; color: #15803d; }
.com-pill.com-signed { background: #f5f3ff; color: #6d28d9; }
.com-pill.com-rejected, .com-pill.com-void, .com-pill.com-cancelled, .com-pill.com-unpaid, .com-pill.com-retired, .com-pill.com-inactive { background: #fef2f2; color: #b91c1c; }
.com-pill.com-pending { background: #fff7ed; color: #c2410c; }
.com-pill.com-declined { background: #f3f4f6; color: #4b5563; }
.com-doc { align-items: center; }
.com-doc-body { min-width: 0; flex: 1; }
.com-doc .com-name {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.com-doc-btns {
  display: flex; flex-direction: column; gap: 6px;
  flex-shrink: 0; width: 128px;
}
.com-doc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 10px; border-radius: 10px;
  font-size: 12px; font-weight: 800; white-space: nowrap; text-decoration: none;
  border: 1px solid #c7d2fe; background: #fff; color: var(--brand);
}
.com-doc-btn:hover { background: #eff6ff; color: var(--brand-dark); }
.com-doc-btn.is-signed { background: var(--brand); border-color: var(--brand); color: #fff; }
.com-doc-btn.is-signed:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.doc-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.doc-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #4b5563;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.doc-tab i { font-size: 16px; color: var(--brand); }
.doc-tab em {
  font-style: normal;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eff6ff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}
.doc-tab:hover { border-color: #c7d2fe; color: var(--brand); background: #f8fbff; }
.doc-tab.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.doc-tab.is-on i, .doc-tab.is-on em { color: #fff; }
.doc-tab.is-on em { background: rgba(255,255,255,.22); }
@media (max-width: 575px) {
  .doc-tab { flex-direction: column; gap: 2px; min-height: 56px; font-size: 11px; padding: 8px 4px; }
}
.com-page .svc-req-head { background: linear-gradient(135deg, #1a56c8 0%, #0c2a5a 100%); }
.ren-send {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 767px) {
  .com-row { flex-wrap: wrap; }
  .com-doc-btns { width: 100%; flex-direction: row; }
  .com-doc-btn { flex: 1; }
  .ren-send { width: 100%; justify-content: center; }
}

.tip-jump {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 12px;
  background: #fffbeb; color: #b45309; border: 1px solid #fde68a;
  font-size: 13px; font-weight: 800; text-decoration: none;
  box-shadow: var(--shadow);
}
.tip-jump:hover { background: #fef3c7; color: #92400e; }
html { scroll-behavior: smooth; }
html.is-keep-scroll { scroll-behavior: auto !important; }
#smart-tips { scroll-margin-top: 24px; }
.tip-panel {
  background: var(--card);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px 10px;
  margin-top: 20px;
}
.tip-head { margin-bottom: 10px; }
.tip-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #fffbeb; color: #b45309;
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.tip-summary { margin-top: 8px; font-weight: 700; color: #1f2937; }
.tip-h {
  margin: 14px 0 8px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; color: #92400e;
}
.tip-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: 12px;
  text-decoration: none; color: inherit;
}
.tip-row:hover { background: #fffbeb; color: inherit; }
.tip-row-ico {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px;
  background: #eff6ff; color: var(--brand);
}
.tip-row.tip-warn .tip-row-ico { background: #fef2f2; color: #dc2626; }
.tip-row.tip-now .tip-row-ico { background: #fff7ed; color: #ea580c; }
.tip-row-title { display: block; font-weight: 800; }
.tip-row-why { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.tip-go { color: #d1d5db; }
.tip-ask { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #f3e8c8; }
.tip-ask-row { display: flex; gap: 8px; }
.tip-ask-row .form-control { flex: 1; }
.tip-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tip-chip {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  background: #fff7ed; color: #9a3412; font-size: 12px; font-weight: 700;
  text-decoration: none;
}
.tip-chip:hover { background: #ffedd5; color: #9a3412; }
.tip-empty { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.tip-recap {
  display: block; padding: 12px 14px; border-radius: 14px;
  background: #f8fafc; border: 1px solid var(--line);
  text-decoration: none; color: inherit; margin-bottom: 8px;
}
.tip-recap:hover { border-color: #c7d2fe; color: inherit; }
.tip-recap-kicker { font-size: 11px; font-weight: 800; color: #0f766e; text-transform: uppercase; }
.tip-recap-name { font-weight: 800; font-size: 16px; }
.tip-recap-meta, .tip-recap-facts {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px;
}
.tip-recap-note { margin-top: 8px; font-size: 13px; font-weight: 600; }
.tip-suggest {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-bottom: 8px;
}
.tip-suggest-card {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px; border-radius: 14px;
  background: #fffbeb; text-decoration: none; color: inherit;
}
.tip-suggest-card:hover { background: #fef3c7; color: inherit; }
.tip-suggest-n { font-size: 22px; font-weight: 800; line-height: 1; }
.tip-suggest-l { font-weight: 800; }
@media (max-width: 767px) {
  .tip-ask-row { flex-direction: column; }
  .tip-suggest { grid-template-columns: 1fr; }
}

.quo-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  text-decoration: none; margin-bottom: 12px;
}
.quo-back:hover { color: var(--brand); }
.quo-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, #1a56c8 0%, #1246a8 48%, #0c2a5a 100%);
  color: #fff; border-radius: 20px; padding: 22px 24px; margin-bottom: 16px;
  box-shadow: 0 16px 36px rgba(26, 86, 200, .22);
}
.quo-hero-main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; flex: 1; }
.quo-hero-ico {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(255,255,255,.14); color: #fff;
}
.quo-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  opacity: .78; margin-bottom: 4px;
}
.quo-title { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.2; color: #fff; }
.quo-hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 10px; font-size: 13px; font-weight: 600; opacity: .92;
}
.quo-hero-meta a { color: #fff; text-decoration: none; }
.quo-hero-meta a:hover { text-decoration: underline; }
.quo-hero-aside { text-align: right; }
.quo-hero-aside .com-pill { margin-bottom: 8px; }
.quo-amount { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.quo-amount-l { font-size: 12px; font-weight: 700; opacity: .75; margin-top: 4px; }
.quo-tone-pending_approval { background: linear-gradient(135deg, #ea580c 0%, #c2410c 55%, #7c2d12 100%); }
.quo-tone-approved { background: linear-gradient(135deg, #16a34a 0%, #15803d 55%, #14532d 100%); }
.quo-tone-sent { background: linear-gradient(135deg, #0f766e 0%, #0f766e 40%, #134e4a 100%); }
.quo-tone-signed { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 55%, #4c1d95 100%); }
.quo-tone-rejected { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 55%, #7f1d1d 100%); }
.quo-tone-active { background: linear-gradient(135deg, #16a34a 0%, #15803d 55%, #14532d 100%); }
.quo-tone-expired { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 55%, #7f1d1d 100%); }
.quo-tone-cancelled { background: linear-gradient(135deg, #6b7280 0%, #4b5563 55%, #1f2937 100%); }
.quo-tone-unpaid { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 55%, #7f1d1d 100%); box-shadow: 0 16px 36px rgba(185, 28, 28, .22); }
.quo-tone-partial { background: linear-gradient(135deg, #ea580c 0%, #c2410c 55%, #7c2d12 100%); box-shadow: 0 16px 36px rgba(194, 65, 12, .22); }
.quo-tone-paid { background: linear-gradient(135deg, #16a34a 0%, #15803d 55%, #14532d 100%); box-shadow: 0 16px 36px rgba(22, 163, 74, .22); }
.quo-tone-void { background: linear-gradient(135deg, #6b7280 0%, #4b5563 55%, #1f2937 100%); box-shadow: 0 16px 36px rgba(75, 85, 99, .22); }
.inv-bar {
  height: 6px; border-radius: 99px; background: #e8eef5; overflow: hidden; margin-top: 8px; max-width: 220px;
}
.inv-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2bb0ea, #1a56c8); }
.inv-bar-unpaid span { background: linear-gradient(90deg, #f87171, #dc2626); }
.inv-bar-partial span { background: linear-gradient(90deg, #fb923c, #ea580c); }
.inv-bar-paid span { background: linear-gradient(90deg, #4ade80, #16a34a); }
.inv-bar-lg { max-width: none; height: 10px; margin-top: 4px; }
.quo-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; list-style: none; padding: 0; margin: 0 0 16px;
}
.quo-step {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-size: 12px; font-weight: 800; color: var(--muted);
}
.quo-step-dot {
  width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px;
  background: #eef2ff; color: var(--brand);
}
.quo-step.is-done { color: #15803d; border-color: #bbf7d0; }
.quo-step.is-done .quo-step-dot { background: #dcfce7; color: #15803d; }
.quo-step.is-now { color: var(--brand-dark); border-color: #c7d2fe; box-shadow: var(--shadow); }
.quo-step.is-now .quo-step-dot { background: var(--brand); color: #fff; }
.quo-reject {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; font-weight: 700;
}
.quo-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.quo-fact {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: inherit; min-width: 0;
}
a.quo-fact:hover { border-color: #c7d2fe; color: inherit; }
.quo-fact-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--quo-tint); color: var(--quo-accent); font-size: 18px;
}
.quo-fact-n { font-size: 15px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quo-fact-l { font-size: 12px; font-weight: 600; color: var(--muted); }
.quo-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 12px;
}
.quo-card h2 {
  font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.quo-card p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.55; }
.quo-doc { display: flex; align-items: center; gap: 14px; }
.quo-doc-ico {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center; background: #fef2f2; color: #dc2626; font-size: 24px;
}
.quo-doc-kicker { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quo-doc-name { font-weight: 800; word-break: break-word; }
.quo-doc-sub { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.quo-doc .btn { flex-shrink: 0; font-weight: 800; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.quo-next { margin-bottom: 0; }
.quo-action { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.quo-action:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.quo-wait { font-weight: 600; color: var(--muted); }
@media (max-width: 991px) {
  .quo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quo-hero-aside { text-align: left; }
}
@media (max-width: 767px) {
  .quo-steps, .quo-facts { grid-template-columns: 1fr 1fr; }
  .quo-doc { flex-wrap: wrap; }
}

.record-composer {
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%);
  border: 1px solid #dbe7f4;
  border-radius: 14px;
  padding: 14px;
}
.record-composer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.record-composer-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 17px;
  background: #dbeafe;
  color: var(--brand);
}
.record-composer.is-task .record-composer-icon {
  background: #fff7ed;
  color: #ea580c;
}
.record-composer-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.record-composer-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.record-composer-grid {
  display: grid;
  grid-template-columns: minmax(132px, 170px) minmax(0, 1fr);
  gap: 12px;
}
.record-composer-span { grid-column: 1 / -1; }
.record-composer .form-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.record-composer .form-control,
.record-composer .form-select {
  border-radius: 10px;
  border-color: #d7e3f0;
  background: #fff;
}
.record-composer .form-control:focus,
.record-composer .form-select:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(43, 176, 234, .16);
}
.record-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px dashed #b7d0ea;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  margin: 0;
}
.record-file:hover,
.record-file.has-file {
  border-color: var(--brand);
  background: #eff6ff;
}
.record-file i {
  font-size: 18px;
  color: var(--brand);
  flex-shrink: 0;
}
.record-file-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  pointer-events: none;
}
.record-file-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-file-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.record-file.has-file .record-file-name { color: var(--brand); }
.record-file input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.record-composer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e4eef7;
}
.record-composer-actions .btn {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 148px;
  border-radius: 10px;
}
.record-composer.is-task .record-composer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.col-lg-4 .record-composer.is-task .record-composer-grid {
  grid-template-columns: 1fr;
}
@media (max-width: 575px) {
  .record-composer-grid { grid-template-columns: 1fr; }
  .record-composer-actions .btn { width: 100%; }
}
