:root {
  --lr-bg: #ebf0fa;
  --lr-surface: #ffffff;
  --lr-border: #e7ecf6;
  --lr-text: #222222;
  --lr-heading: #0b1e46;
  --lr-muted: #7b8497;
  --lr-blue: #3a57f7;
  --lr-blue-2: #3a80f7;
  --lr-violet: #5b3af7;
  --lr-green: #16845b;
  --lr-red: #b42318;
  --lr-amber: #a15c00;
  --lr-cascade-border: #e1e1e1;
  --lr-cascade-active-bg: #e6e7e7;
  --lr-cascade-radius: 4px;
  --lr-cascade-height: 285px;
  --lr-cascade-shadow: 0 4px 10px rgba(0, 0, 0, .05);
  --lr-radius-control: 8px;
  --lr-radius-panel: 12px;
  --lr-header-height: 64px;
  --lr-sider-width: 260px;
  --lr-sider-collapsed-width: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--lr-text);
  background: var(--lr-bg);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    Arial,
    sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

body:has(.eagle-eye-workspace-results),
body:has(.eagle-eye-workspace-detail) {
  background: #EBF0FA;
}

body:has(.eagle-eye-workspace-results) .app-shell,
body:has(.eagle-eye-workspace-detail) .app-shell {
  background: #EBF0FA;
}

body:has(.eagle-eye-workspace-results) .sidebar-region,
body:has(.eagle-eye-workspace-detail) .sidebar-region {
  background: var(--lr-bg);
}

a {
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--lr-sider-width) minmax(0, 1fr);
  grid-template-rows: var(--lr-header-height) minmax(calc(100vh - var(--lr-header-height)), auto);
  background: var(--lr-bg);
  transition: grid-template-columns .2s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: var(--lr-sider-collapsed-width) minmax(0, 1fr);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  grid-column: 1 / -1;
  grid-row: 1;
  height: var(--lr-header-height);
  min-height: var(--lr-header-height);
  border-bottom: 1px solid #edf0f5;
  background: var(--lr-bg);
}

.app-topbar > .ant-app,
.sidebar-region > .ant-app {
  width: 100%;
  height: 100%;
}

.sidebar-region {
  position: sticky;
  top: var(--lr-header-height);
  z-index: 40;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  height: calc(100vh - var(--lr-header-height));
  background: transparent;
  border-right: 1px solid #edf0f5;
  overflow: hidden;
}

.shell-topbar-fallback,
.lr-ant-topbar-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
  background: var(--lr-bg);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 28px;
  height: 39px;
  object-fit: contain;
  object-position: center;
}

.shell-brand,
.lr-ant-topbar-brand {
  width: var(--lr-sider-width);
  height: 100%;
  flex: 0 0 var(--lr-sider-width);
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid #edf0f5;
  padding: 0 24px;
  color: #222;
  transition: width .2s ease, flex-basis .2s ease, padding .2s ease;
}

.shell-brand img,
.lr-ant-topbar-brand img {
  width: 29px;
  height: 40px;
  flex: 0 0 29px;
  object-fit: contain;
}

.shell-brand strong,
.lr-ant-topbar-brand strong {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.app-shell.sidebar-collapsed .shell-brand,
.app-shell.sidebar-collapsed .lr-ant-topbar-brand {
  width: var(--lr-sider-collapsed-width);
  flex-basis: var(--lr-sider-collapsed-width);
  justify-content: center;
  padding: 0;
}

.app-shell.sidebar-collapsed .shell-brand strong,
.app-shell.sidebar-collapsed .lr-ant-topbar-brand strong {
  display: none;
}

.lr-ant-topbar-brand-area {
  height: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.shell-top-links,
.lr-ant-topbar-menu {
  min-width: 0;
  flex: 1 1 auto;
}

.shell-top-links {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
}

.shell-top-links a {
  height: 100%;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  padding: 0 18px;
  color: #333;
  font-size: 15px;
  font-weight: 400;
}

.shell-top-links a.active {
  border-bottom-color: var(--lr-blue);
  color: var(--lr-blue);
  font-weight: 500;
}

.lr-ant-topbar-menu.ant-menu-horizontal {
  height: 100%;
  border-bottom: 0;
  background: transparent;
  padding: 0 20px;
  line-height: calc(var(--lr-header-height) - 1px);
}

.lr-ant-topbar-menu.ant-menu-horizontal > .ant-menu-item {
  min-width: 76px;
  height: 100%;
  margin-inline: 2px;
  padding-inline: 18px;
  color: #333;
  font-size: 15px;
  font-weight: 400;
}

.lr-ant-topbar-menu.ant-menu-horizontal > .ant-menu-item-selected {
  color: var(--lr-blue);
  font-weight: 500;
}

.lr-ant-topbar-menu a,
.lr-ant-nav-anchor {
  color: inherit;
}

.lr-ant-mobile-nav-trigger {
  display: none;
}

.topbar-profile-button {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
}

img.topbar-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.topbar-profile-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  min-height: 40px;
  border-radius: var(--lr-radius-control);
  margin-right: 22px;
  padding: 0 4px 0 0;
}

.topbar-profile-button:hover {
  background: rgba(255, 255, 255, .46);
}

.topbar-avatar {
  border-radius: 50%;
  overflow: hidden;
}

.topbar-profile-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg) translateY(-2px);
}

.topbar-profile-menu {
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(20, 38, 82, .12);
}

.shell-profile-fallback {
  width: 40px;
  height: 40px;
  display: block;
  border: 0;
  border-radius: 50%;
  background: transparent;
  margin-right: 24px;
  padding: 0;
  overflow: hidden;
}

.shell-profile-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shell-sidebar-fallback,
.lr-ant-desktop-sider.ant-layout-sider {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  background: transparent !important;
}

.shell-sidebar-fallback {
  padding: 16px 12px;
}

.shell-fallback-link {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 0 14px;
  color: #333;
  font-size: 14px;
}

.shell-fallback-link img {
  width: 18px;
  height: 18px;
}

.shell-fallback-link.active {
  color: var(--lr-blue);
  background: #eef2ff;
  font-weight: 500;
}

.shell-fallback-subnav {
  position: relative;
  display: none;
  margin: 2px 0 4px 30px;
  padding-left: 20px;
}

.shell-fallback-subnav::before {
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: #dfe4ec;
  content: "";
}

.shell-fallback-group.open .shell-fallback-subnav {
  display: grid;
}

.shell-fallback-subnav a {
  min-height: 36px;
  display: flex;
  align-items: center;
  color: #5b6475;
}

.shell-fallback-subnav a.active {
  color: var(--lr-blue);
  font-weight: 500;
}

.lr-ant-desktop-sider .ant-layout-sider-children {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lr-ant-sidebar-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 12px 8px;
}

.lr-ant-sidebar-menu.ant-menu,
.lr-ant-mobile-nav-menu.ant-menu {
  border-inline-end: 0 !important;
  background: transparent;
  color: #333;
  font-size: 14px;
  font-weight: 400;
}

.lr-ant-sidebar-menu .ant-menu-item,
.lr-ant-sidebar-menu .ant-menu-submenu-title,
.lr-ant-mobile-nav-menu .ant-menu-item,
.lr-ant-mobile-nav-menu .ant-menu-submenu-title {
  height: 44px;
  margin-block: 3px;
  margin-inline: 0;
  width: 100%;
  border-radius: 8px;
  line-height: 44px;
}

.lr-ant-sidebar-menu .ant-menu-item-selected,
.lr-ant-mobile-nav-menu .ant-menu-item-selected {
  color: var(--lr-blue);
  background: #eef2ff;
  font-weight: 500;
}

.lr-ant-sidebar-menu .ant-menu-submenu-selected > .ant-menu-submenu-title,
.lr-ant-sidebar-menu .lr-ant-parent-current > .ant-menu-submenu-title,
.lr-ant-mobile-nav-menu .ant-menu-submenu-selected > .ant-menu-submenu-title,
.lr-ant-mobile-nav-menu .lr-ant-parent-current > .ant-menu-submenu-title {
  color: var(--lr-blue);
  font-weight: 500;
}

.lr-ant-nav-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  opacity: .86;
}

.lr-ant-sidebar-menu .ant-menu-sub.ant-menu-inline,
.lr-ant-mobile-nav-menu .ant-menu-sub.ant-menu-inline {
  position: relative;
  background: transparent;
}

.lr-ant-sidebar-menu .ant-menu-sub.ant-menu-inline::before,
.lr-ant-mobile-nav-menu .ant-menu-sub.ant-menu-inline::before {
  position: absolute;
  left: 31px;
  top: 5px;
  bottom: 5px;
  z-index: 1;
  width: 1px;
  background: #dfe4ec;
  content: "";
}

.lr-ant-sidebar-menu .ant-menu-sub.ant-menu-inline > .ant-menu-item,
.lr-ant-mobile-nav-menu .ant-menu-sub.ant-menu-inline > .ant-menu-item {
  padding-left: 52px !important;
  color: #5b6475;
}

.lr-ant-sidebar-menu .ant-menu-sub.ant-menu-inline > .ant-menu-item-selected,
.lr-ant-mobile-nav-menu .ant-menu-sub.ant-menu-inline > .ant-menu-item-selected {
  color: var(--lr-blue);
  background: transparent;
  font-weight: 500;
}

.lr-ant-sidebar-menu.ant-menu-inline-collapsed {
  width: 48px;
}

.lr-ant-sidebar-menu.ant-menu-inline-collapsed .ant-menu-item,
.lr-ant-sidebar-menu.ant-menu-inline-collapsed .ant-menu-submenu-title {
  padding-inline: 15px;
}

.lr-ant-sidebar-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid #e3e8f1;
  border-radius: 8px;
  background: transparent;
  margin: 8px 0 20px;
  padding: 0;
}

.lr-ant-sidebar-toggle img {
  width: 18px;
  height: 18px;
  display: block;
  transform: rotate(180deg);
}

.lr-ant-sidebar-toggle img.is-collapsed {
  transform: rotate(0deg);
}

.content {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: calc(100vh - var(--lr-header-height) - 32px);
  background: var(--lr-surface);
  border-radius: 16px;
  margin: 16px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(20, 38, 82, .05);
}

.content-workspace {
  padding: 0;
  overflow: hidden;
}

.content:has(.eagle-eye-workspace-results),
.content:has(.eagle-eye-workspace-detail) {
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: #EBF0FA;
  box-shadow: none;
}

.content-upload-home {
  min-height: calc(100vh - 92px);
  padding: 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card,
.panel {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border);
  border-radius: 12px;
}

.metric-card {
  padding: 16px;
}

.metric-card span {
  display: block;
  color: var(--lr-muted);
  margin-bottom: 8px;
}

.metric-card strong {
  font-size: 26px;
  line-height: 1;
}

.metric-card .metric-text {
  font-size: 18px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .55fr);
  gap: 16px;
}

.panel {
  padding: 18px;
}

.lr-table-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--lr-border);
  border-radius: var(--lr-radius-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lr-table-card.panel {
  padding: 0;
}

.lr-table-card > .panel-header,
.lr-table-card > .department-toolbar {
  flex: 0 0 auto;
  min-height: 64px;
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
}

.lr-table-card > .panel-header + .lr-table-wrap {
  min-height: 0;
}

.lr-table-card > .department-filter {
  flex: 0 0 auto;
  margin: 14px 22px 16px;
}

.lr-table-card .assignment-import-hint {
  flex: 0 0 auto;
  margin: 12px 22px 14px;
}

.lr-table-wrap {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--lr-border);
  border-radius: var(--lr-radius-panel);
  overflow: auto;
}

.lr-table-card > .lr-table-wrap,
.lr-table-card > form + .lr-table-wrap,
.lr-table-card .lr-table-wrap {
  border-width: 0;
  border-radius: 0;
}

.lr-table-card > .lr-pagination-bar,
.lr-table-card .lr-pagination-bar {
  flex: 0 0 auto;
  min-height: 60px;
  padding: 12px 22px;
}

.lr-table-card > .empty-state,
.lr-table-card .empty-table-text,
.lr-table-card .department-empty-state,
.lr-table-card .text-muted[colspan] {
  border: 0;
  background: #fff;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--lr-heading);
}

.upload-home-layout {
  min-height: calc(100vh - 98px);
  display: grid;
  grid-template-columns: minmax(0, 1094fr) minmax(320px, 460fr);
  gap: 20px;
  justify-content: stretch;
}

.upload-stage {
  min-height: calc(100vh - 98px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(140px, 23vh, 232px) 20px 40px;
  background: #fff;
  border-radius: 16px;
}

.upload-stage-home {
  min-height: 0;
}

.upload-copy h2 {
  margin: 0;
  color: var(--lr-heading);
  font-size: 44px;
  line-height: 1.18;
  font-weight: 600;
}

.upload-copy span {
  display: inline-block;
  margin-top: 16px;
  color: rgba(11, 30, 70, .8);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
}

.upload-form {
  width: min(888px, 100%);
  margin-top: 34px;
  display: grid;
  justify-items: center;
  gap: 28px;
}

.lr-react-island.import-upload-island {
  width: min(888px, 100%);
  margin-top: 34px;
  display: block;
}

.import-upload-island > .ant-app {
  width: 100%;
}

.lr-ant-import-upload {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0;
}

.lr-ant-import-upload .ant-upload-wrapper {
  width: 100%;
}

.lr-ant-import-upload .ant-upload-wrapper .ant-upload-drag {
  height: 202px;
  min-height: 202px;
  border: 1px solid #dce4f2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(239, 243, 255, .88), rgba(255, 255, 255, .98) 50%, rgba(237, 242, 255, .7));
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.lr-ant-import-upload .ant-upload-wrapper .ant-upload-drag:not(.ant-upload-disabled):hover,
.lr-ant-import-upload .ant-upload-wrapper .ant-upload-drag.ant-upload-drag-hover {
  border-color: var(--lr-blue);
  box-shadow: 0 10px 24px rgba(58, 87, 247, .1);
}

.lr-ant-import-upload .ant-upload-drag-container {
  min-height: 202px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}

.lr-ant-upload-icon {
  width: 32px;
  height: 31px;
  object-fit: contain;
}

.lr-ant-upload-title {
  color: rgba(11, 30, 70, .82);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 400;
}

.lr-ant-upload-files {
  width: 100%;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
  padding: 0 10px;
  text-align: left;
}

.lr-ant-upload-file {
  min-width: 0;
  max-width: 190px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3f4654;
  font-size: 14px;
  line-height: 20px;
}

.lr-ant-upload-file > img {
  width: 18px;
  height: 16px;
  flex: 0 0 18px;
  object-fit: contain;
}

.lr-ant-upload-file > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lr-ant-upload-file > button {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8b93a3;
  padding: 0;
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  transition: color .16s ease, background-color .16s ease, opacity .16s ease;
}

.lr-ant-upload-file:hover > button,
.lr-ant-upload-file > button:focus-visible {
  opacity: 1;
}

.lr-ant-upload-file > button:hover {
  color: #d92d20;
  background: #fff1f0;
}

.lr-ant-upload-file > button:disabled {
  cursor: not-allowed;
}

@media (hover: none) {
  .lr-ant-upload-file > button {
    opacity: 1;
  }
}

.lr-ant-upload-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 199px;
  margin-top: 32px;
}

.lr-ant-upload-actions .ant-btn-primary {
  height: 48px;
  border: 0;
  background: linear-gradient(90deg, var(--lr-blue-2), var(--lr-violet));
  box-shadow: none;
  font-size: 16px;
  font-weight: 500;
}

.lr-ant-upload-actions > .ant-btn-primary:first-child {
  width: 157px;
  min-width: 157px;
  border-radius: 8px 0 0 8px;
}

.lr-ant-upload-actions .lr-ant-upload-toggle {
  width: 42px;
  min-width: 42px;
  border-left: 1px solid rgba(255, 255, 255, .28);
  border-radius: 0 8px 8px 0;
  padding: 0;
}

.lr-ant-upload-chevron {
  width: 7px;
  height: 7px;
  display: block;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

.lr-ant-upload-type-dropdown .ant-dropdown-menu {
  min-width: 148px;
  border: 1px solid #dce3f2;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(20, 38, 82, .12);
}

.upload-controls {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 16px;
}

.upload-dropzone {
  min-height: 202px;
  border: 1px solid rgba(11, 30, 70, .1);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(233, 239, 255, .61), rgba(255, 255, 255, .96) 49.42%, rgba(210, 222, 255, .2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  color: var(--lr-heading);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.upload-dropzone:hover {
  border-color: var(--lr-blue);
  box-shadow: 0 16px 32px rgba(58, 87, 247, .12);
  transform: translateY(-1px);
}

.upload-icon {
  width: 32px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upload-icon img {
  width: 32px;
  height: 31px;
  object-fit: contain;
}

.upload-dropzone-tip {
  color: rgba(11, 30, 70, .8);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.upload-dropzone input,
.folder-picker input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-actions {
  display: grid;
  grid-template-columns: repeat(2, 199px);
  gap: 32px;
  margin-top: 10px;
}

.upload-actions-single {
  grid-template-columns: 199px;
}

.primary-action {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--lr-blue-2), var(--lr-violet));
  color: #fff;
  font-weight: 600;
  box-shadow: none;
  overflow: hidden;
}

.primary-action {
  width: 199px;
  height: 48px;
  padding: 0 28px;
  font-size: 16px;
  line-height: 1;
}

.upload-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.recognition-action {
  position: relative;
  display: block;
  width: 199px;
}

.recognition-submit {
  width: 199px;
  border-radius: 12px;
  padding-right: 28px;
}

.recognition-toggle {
  position: absolute !important;
  right: 48px;
  top: 50%;
  transform: translateY(-52%);
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  appearance: none;
  box-shadow: none !important;
}

.recognition-toggle-icon {
  display: none;
}

.recognition-toggle::before {
  display: block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  transform: rotate(45deg) translate(-1px, -1px);
}

.recognition-menu {
  min-width: 148px;
  border-color: #dce3f2;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(20, 38, 82, .12);
}

.upload-submit.is-loading {
  cursor: wait;
  opacity: .92;
}

.upload-submit-spinner {
  width: 16px;
  height: 16px;
  display: none;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lr-spin .8s linear infinite;
}

.upload-submit.is-loading .upload-submit-spinner {
  display: inline-block;
}

.selected-file-list {
  width: 100%;
  min-height: 29px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 10px;
}

.selected-file-list:empty {
  visibility: hidden;
}

.selected-file-chip {
  width: 102px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #333;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
}

.selected-file-chip img {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
}

.selected-file-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.secondary-action {
  width: 199px;
  min-height: 48px;
  border-radius: var(--lr-radius-control);
  border: 1px solid #d8e1f1;
  background: #f4f7ff;
  color: var(--lr-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.secondary-action:hover {
  color: var(--lr-blue);
  border-color: #b9c7ee;
}

.btn {
  min-height: 32px;
  border-radius: var(--lr-radius-control);
  border-color: #ececec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 12px;
  color: #222;
  background: #fbfbfb;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none !important;
}

.btn:hover {
  border-color: #d9d9d9;
  background: #f6f8fc;
  color: #222;
}

.btn-primary {
  border-color: var(--lr-blue);
  background: var(--lr-blue);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: #2948f0;
  background: #2948f0;
  color: #fff;
}

.btn-light {
  border-color: #ececec;
  background: #fbfbfb;
  color: #222;
}

.btn-outline-secondary,
.btn-outline-primary {
  border-color: #d9e0ec;
  background: #fff;
  color: #333;
}

.btn-outline-danger {
  border-color: #ffd6dd;
  background: #fff;
  color: #e02d49;
}

.btn-sm {
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
}

.form-control,
.form-select {
  min-height: 32px;
  border-color: #dfe5f0;
  border-radius: var(--lr-radius-control);
  color: #2d3548;
  font-weight: 400;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: #8fa3ff;
  box-shadow: 0 0 0 3px rgba(58, 87, 247, .12);
}

.button-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 0;
}

.button-icon-light {
  filter: brightness(0) invert(1);
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  display: inline-block;
  background: #d8dfec;
}

.action-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-link-with-icon .button-icon {
  width: 14px;
  height: 14px;
}

.ledger-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ledger-tabs {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 38px;
}

.ledger-tab {
  position: relative;
  color: #5f687d;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 12px;
}

.ledger-tab:hover {
  color: var(--lr-blue);
}

.ledger-tab.active {
  color: var(--lr-heading);
}

.ledger-tab.active::after {
  display: none;
}

.import-kind-pill {
  min-width: 42px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--lr-blue);
  background: rgba(58, 87, 247, .15);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.import-kind-pill.failed {
  color: #ff001e;
  background: #ffbbbb;
}

.import-kind-pill.total {
  color: #0b1e46;
  background: #eef2ff;
}

.import-status-pill {
  min-width: 44px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.import-status-pill.success {
  color: #3a57f7;
  background: rgba(58, 87, 247, .2);
}

.import-status-pill.failed {
  color: #ff001e;
  background: #ffbbbb;
}

.upload-record-aside {
  min-width: 0;
  min-height: 0;
  background: #fff;
  border-radius: 16px;
  padding: clamp(20px, 1.25vw, 24px) clamp(16px, 1.04vw, 20px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.upload-record-aside h2 {
  margin: 0 0 20px;
  color: var(--lr-heading);
  font-size: 18px;
  font-weight: 600;
}

.home-import-list {
  display: grid;
  align-content: start;
  gap: clamp(12px, .83vw, 16px);
  min-width: 0;
  overflow: hidden;
}

.home-import-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: clamp(56px, 3.23vw, 62px);
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: clamp(8px, .52vw, 10px);
  padding: 0 clamp(12px, .73vw, 14px);
}

.home-import-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-import-arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b1e46;
}

.home-import-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--lr-heading);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 400;
}

.home-import-actions {
  flex: 0 0 auto;
}

.home-import-menu-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #999;
  padding: 0;
}

.home-import-menu-toggle span {
  display: none;
}

.home-import-menu-toggle::before {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor, 14px 0 0 currentColor;
  content: "";
  transform: translateX(-7px);
}

.home-import-menu-toggle:hover,
.home-import-menu-toggle[aria-expanded="true"] {
  color: #0b1e46;
}

.lr-ant-import-menu-button.ant-btn {
  border: 0;
  box-shadow: none;
}

.lr-ant-import-menu-button.ant-btn:hover,
.lr-ant-import-menu-button.ant-btn:focus {
  color: #0b1e46;
  background: transparent;
}

.lr-ant-import-action-dropdown .ant-dropdown-menu {
  min-width: 88px;
  padding: 0;
  overflow: hidden;
  background: #343434;
  border: 1px solid rgba(217, 217, 217, .72);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(20, 38, 82, .14);
}

.lr-ant-import-action-dropdown .ant-dropdown-menu .ant-dropdown-menu-item {
  height: 43px;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
}

.lr-ant-import-action-dropdown .ant-dropdown-menu .ant-dropdown-menu-item-danger {
  color: #fff;
}

.lr-ant-import-action-dropdown .ant-dropdown-menu .ant-dropdown-menu-item:hover,
.lr-ant-import-action-dropdown .ant-dropdown-menu .ant-dropdown-menu-item-active {
  color: #fff;
  background: rgba(255, 255, 255, .11);
}

.lr-ant-import-action-dropdown .ant-dropdown-menu .ant-dropdown-menu-item-divider {
  margin: 0;
  background: rgba(255, 255, 255, .12);
}

.lr-ant-topbar-profile-dropdown .ant-dropdown-menu {
  min-width: 128px;
  padding: 6px;
  border: 1px solid rgba(11, 30, 70, .08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.lr-ant-topbar-profile-dropdown .ant-dropdown-menu .ant-dropdown-menu-item,
.lr-ant-topbar-profile-dropdown .ant-dropdown-menu .ant-dropdown-menu-item-disabled {
  min-height: 34px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
}

.lr-ant-topbar-profile-dropdown .ant-dropdown-menu .ant-dropdown-menu-item-disabled {
  color: var(--lr-muted);
  cursor: default;
}

.lr-ant-topbar-profile-dropdown .ant-dropdown-menu .ant-dropdown-menu-item-divider {
  margin: 4px 0;
}

.lr-ant-prompt-content {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.lr-ant-prompt-input.ant-input-number {
  width: 100%;
  border-radius: 8px;
}

.home-import-arrow img {
  width: 20px;
  height: 20px;
  display: block;
}

.home-import-menu {
  min-width: 88px;
  padding: 0;
  overflow: hidden;
  background: #343434;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  box-shadow: none;
}

.home-import-menu .dropdown-item {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: transparent;
  font-size: 14px;
  line-height: 1;
}

.home-import-menu form {
  margin: 0;
}

.home-import-menu button.dropdown-item {
  width: 100%;
  border: 0;
}

.home-import-menu .dropdown-item:hover,
.home-import-menu .dropdown-item:focus {
  color: #fff;
  background: rgba(255, 255, 255, .11);
}

.home-import-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--lr-muted);
}

.home-import-view {
  justify-self: end;
  min-width: clamp(64px, 3.75vw, 72px);
  min-height: clamp(40px, 2.5vw, 48px);
  border: 1px solid rgba(11, 30, 70, .1);
  border-radius: var(--lr-radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lr-heading);
  font-weight: 600;
}

.ledger-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ledger-actions form {
  margin: 0;
}

.ledger-panel {
  padding: 0;
}

.ledger-panel.lr-table-card {
  min-height: 0;
}

.content:has(.ledger-panel) {
  height: calc(100vh - 92px);
  min-height: calc(100vh - 92px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content:has(.ledger-panel) .ledger-toolbar {
  flex: 0 0 auto;
}

.content:has(.ledger-panel) .ledger-panel {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.ledger-table-wrap {
  overflow: auto;
  min-height: calc(100vh - 188px);
  max-height: calc(100vh - 264px);
}

.content:has(.ledger-panel) .ledger-table-wrap {
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
}

.content:has(.ledger-panel) .lr-pagination-bar {
  flex: 0 0 auto;
}

.table {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 13px 18px;
  white-space: nowrap;
  vertical-align: middle;
}

.table td strong {
  font-weight: 500;
}

.table thead th {
  background: #fafbff;
  color: #566077;
  border-bottom: 1px solid var(--lr-border);
  font-weight: 600;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
}

.table tbody td {
  color: #2d3548;
  border-color: #eef2f8;
}

.table-hover > tbody > tr:hover > * {
  background-color: #f7f9ff;
}

.wide-table {
  overflow-x: auto;
}

.wide-table table {
  min-width: 1380px;
}

.select-col {
  width: 44px;
  min-width: 44px;
}

.table-link {
  color: var(--lr-blue);
  font-weight: 500;
}

.dt-container .dt-search,
.dt-container .dt-length,
.dt-container .dt-info,
.dt-container .dt-paging,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  display: none;
}

.lr-pagination-bar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 0 0;
  border-top: 1px solid #edf1f7;
  background: #fff;
  color: #1f2937;
  white-space: nowrap;
}

.lr-pagination-summary {
  color: #111827;
  font-weight: 400;
}

.lr-page-length {
  width: 98px;
  height: 34px;
  border-radius: var(--lr-radius-control);
  font-weight: 400;
}

.lr-page-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lr-page-btn,
.lr-page-ellipsis {
  min-width: 34px;
  height: 34px;
  border: 1px solid #ececec;
  border-radius: var(--lr-radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: #fbfbfb;
  color: #222;
  font-size: 14px;
  font-weight: 400;
}

.lr-page-btn:hover:not(:disabled) {
  border-color: #b9c7ee;
  color: var(--lr-blue);
}

.lr-page-btn.active {
  border-color: var(--lr-blue);
  background: var(--lr-blue);
  color: #fff;
  font-weight: 500;
}

.lr-page-btn:disabled {
  cursor: default;
  opacity: 1;
}

.lr-page-btn.disabled {
  pointer-events: none;
  cursor: default;
  opacity: 1;
}

.lr-page-prev,
.lr-page-next,
.lr-page-jump {
  min-width: 72px;
}

.lr-page-edge,
.lr-page-ellipsis {
  color: #667085;
  background: #f4f6fa;
}

.has-sticky-actions {
  --sticky-action-width: 150px;
  --sticky-action-shadow: -4px 0 10px rgba(0, 0, 0, .06);
  --sticky-action-border: #ececec;
}

.has-sticky-actions thead th:last-child,
.has-sticky-actions tbody td:last-child {
  position: sticky;
  right: 0;
  width: var(--sticky-action-width);
  min-width: var(--sticky-action-width);
  max-width: var(--sticky-action-width);
  padding-left: 20px;
  padding-right: 20px;
  background: #fff;
  background-clip: padding-box;
  border-left: 1px solid var(--sticky-action-border);
  box-shadow: var(--sticky-action-shadow);
  text-align: left;
  white-space: nowrap;
}

.has-sticky-actions thead th:last-child {
  z-index: 16;
  background: #fafbff;
}

.has-sticky-actions tbody td:last-child {
  z-index: 10;
}

.has-sticky-actions tbody tr:hover td:last-child {
  background: #f7f9ff;
}

.assignment-sticky-table {
  --assignment-select-width: 64px;
  --assignment-contract-width: 260px;
}

.assignment-result-table.assignment-sticky-table {
  --assignment-contract-width: 230px;
}

.assignment-sticky-table .select-col,
.assignment-sticky-table .assignment-contract-col {
  position: sticky;
  background: #fff;
  white-space: nowrap;
}

.assignment-sticky-table .select-col {
  left: 0;
  width: var(--assignment-select-width);
  min-width: var(--assignment-select-width);
  max-width: var(--assignment-select-width);
  z-index: 12;
  text-align: center;
}

.assignment-sticky-table .assignment-contract-col {
  left: var(--assignment-select-width);
  width: var(--assignment-contract-width);
  min-width: var(--assignment-contract-width);
  max-width: var(--assignment-contract-width);
  z-index: 11;
  box-shadow: 10px 0 18px rgba(31, 41, 55, .06);
}

.assignment-sticky-table thead .select-col {
  z-index: 18;
  background: #fafbff;
}

.assignment-sticky-table thead .assignment-contract-col {
  z-index: 17;
  background: #fafbff;
}

.assignment-sticky-table tbody tr:hover .select-col,
.assignment-sticky-table tbody tr:hover .assignment-contract-col {
  background: #f7f9ff;
}

.assignment-filter-drawer {
  width: min(760px, 100vw);
}

.assignment-filter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.assignment-source-lock {
  border: 1px solid #dfe6f4;
  border-radius: 8px;
  background: #f7f9ff;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.assignment-source-lock span {
  color: #7c879d;
  font-size: 13px;
  font-weight: 500;
}

.assignment-source-lock strong {
  min-width: 0;
  overflow: hidden;
  color: var(--lr-heading);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.assignment-source-lock small {
  color: #7c879d;
  font-size: 12px;
}

.assignment-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.assignment-team-picker {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  color: #333;
  font-weight: 500;
}

.assignment-filter-form label {
  display: grid;
  gap: 8px;
  color: #333;
  font-weight: 500;
  min-width: 0;
}

.assignment-filter-form label > span,
.assignment-team-picker > span {
  font-size: 14px;
}

.assignment-source-select .form-select {
  min-width: 0;
  text-overflow: ellipsis;
}

.assignment-source-status {
  min-height: 34px;
  border: 1px solid #cfe8dd;
  border-radius: 6px;
  padding: 8px 10px;
  color: #24543d;
  background: #eefaf3;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.assignment-source-status.is-warning {
  color: #8a5a00;
  background: #fff8e7;
  border-color: #f4df9e;
}

.assignment-source-status.is-error {
  color: #9b2c2c;
  background: #fff1ed;
  border-color: #ffd4c9;
}

.assignment-filter-form .required-field > span::before,
.assignment-team-picker.required-field > span::before {
  content: "*";
  color: #dc3545;
  margin-right: 2px;
}

.assignment-team-selector {
  overflow: visible;
  border-radius: 6px;
  background: transparent;
}

.assignment-team-summary {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--lr-cascade-border);
  border-radius: var(--lr-cascade-radius);
  padding: 3px 12px 3px 8px;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, border-radius .15s ease;
}

.assignment-team-summary-content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-team-summary-content.is-placeholder {
  display: block;
  padding-left: 12px;
  color: #8a94a6;
  font-weight: 400;
}

.assignment-team-summary-arrow {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #666;
  font-size: 0;
  line-height: 1;
  transition: transform .15s ease;
}

.assignment-team-summary-arrow::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  content: "";
}

.assignment-team-confirm {
  flex: 0 0 auto;
  height: 28px;
  min-width: 48px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: #3a57f7;
  padding: 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.assignment-team-confirm:disabled {
  background: #d6dbe8;
  color: #fff;
  cursor: not-allowed;
}

.assignment-team-confirm[hidden] {
  display: none;
}

.assignment-team-selector.is-open .assignment-team-summary {
  border-color: #3a57f7;
  border-radius: var(--lr-cascade-radius);
  box-shadow: 0 0 0 1px #3a57f7;
}

.assignment-team-selector.is-open .assignment-team-summary-arrow {
  transform: rotate(180deg);
}

.assignment-team-panel[hidden] {
  display: none;
}

.assignment-team-panel {
  margin-top: 6px;
}

.assignment-team-tags {
  display: contents;
}

.assignment-team-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 148px;
  height: 32px;
  padding: 0 12px;
  border-radius: 5px;
  background: #e6e7e7;
  color: #222;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
}

.assignment-team-tag span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assignment-team-tag button {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #0b1e46;
  font-size: 22px;
  font-weight: 400;
  line-height: 16px;
  cursor: pointer;
}

.assignment-team-tag-count {
  min-width: 44px;
  max-width: none;
  padding: 0 16px;
}

.assignment-team-cascade {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: var(--lr-cascade-height);
  height: var(--lr-cascade-height);
  overflow: hidden;
  border: 1px solid var(--lr-cascade-border);
  border-radius: var(--lr-cascade-radius);
  background: #fff;
  box-shadow: var(--lr-cascade-shadow);
}

.assignment-team-level {
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.assignment-team-level + .assignment-team-level {
  border-left: 1px solid var(--lr-cascade-border);
}

.assignment-team-options {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 8px 10px;
}

.assignment-team-options.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a94a6;
  font-size: 13px;
}

.assignment-team-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 6px;
  border-radius: var(--lr-cascade-radius);
  color: #333;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.assignment-team-row:hover,
.assignment-team-row.active {
  background: var(--lr-cascade-active-bg);
}

.assignment-team-row.is-disabled {
  color: #a0a8b8;
}

.assignment-team-row.is-disabled input {
  cursor: not-allowed;
}

.assignment-team-row input {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  appearance: none;
  border: 1px solid #999;
  border-radius: 4px;
  background: #fff;
  justify-self: center;
  align-self: center;
}

.assignment-team-row input:checked {
  border-color: var(--lr-blue);
  background: var(--lr-blue);
}

.assignment-team-row input:checked::after {
  width: 8px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  margin-top: -1px;
  transform: rotate(-45deg);
  content: "";
}

.assignment-team-row-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-team-arrow {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: #555;
  font-size: 0;
  line-height: 1;
  text-align: right;
}

.assignment-team-arrow::before {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  content: "";
}

.assignment-team-hint {
  margin: 0;
  color: #7b8496;
  font-size: 13px;
  font-weight: 500;
}

.assignment-team-picker:not(.is-open) .assignment-team-hint {
  display: none;
}

.assignment-average-rule {
  display: inline-flex;
  margin-top: 2px;
}

.status-pill,
.record-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.completed,
.record-status.valid {
  color: var(--lr-green);
  background: #e6f5ee;
}

.status-pill.completed_with_issues,
.status-pill.processing {
  color: var(--lr-amber);
  background: #fff4d8;
}

.record-status.invalid {
  color: var(--lr-red);
  background: #fde7e4;
}

.status-pill.failed {
  color: var(--lr-red);
  background: #fde7e4;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--lr-muted);
  font-size: 13px;
  font-weight: 600;
}

.page-breadcrumb a {
  color: var(--lr-primary);
  text-decoration: none;
}

.page-breadcrumb a::after {
  content: "/";
  margin-left: 8px;
  color: #a5adbc;
}

.import-record-panel {
  min-height: calc(100vh - 226px);
}

.import-record-panel.lr-table-card {
  min-height: calc(100vh - 174px);
}

.import-record-list {
  display: grid;
  gap: 12px;
}

.import-day-card {
  border: 1px solid var(--lr-border);
  background: #fff;
}

.import-day-header {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: #fcfcfc;
  color: #555;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(3, minmax(110px, auto)) 28px;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  text-align: left;
  font-weight: 600;
}

.import-day-title {
  color: #222;
  font-weight: 600;
}

.day-caret,
.issue-toggle {
  color: #606a80;
}

.import-record-table-wrap {
  overflow-x: auto;
}

.import-record-table {
  min-width: 1320px;
}

.clickable-row {
  cursor: pointer;
}

.file-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.file-name-cell strong {
  display: block;
  color: #222;
  font-weight: 600;
}

.file-name-cell small {
  display: block;
  margin-top: 4px;
  color: var(--lr-muted);
  font-size: 12px;
}

.issue-toggle {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: #f1f4fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.issue-count {
  color: var(--lr-green);
  font-weight: 600;
}

.issue-count.danger {
  color: var(--lr-red);
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.table-actions form {
  margin: 0;
}

.action-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--lr-blue);
  font-weight: 500;
}

.action-link:hover,
.table-link:hover {
  color: #2948f0;
}

.link-danger.action-link,
.action-link.link-danger {
  color: #e02d49;
}

.issue-detail-row > td {
  padding: 0 !important;
  background: #fbfcff;
}

.issue-detail-list {
  display: grid;
  gap: 8px;
  padding: 14px 20px 18px 64px;
  border-top: 1px solid #eef2f8;
}

.issue-detail-item {
  display: grid;
  grid-template-columns: 76px 130px 110px 100px minmax(320px, 1fr);
  align-items: center;
  gap: 12px;
  color: #4f586f;
}

.issue-detail-item strong {
  color: #222;
  font-weight: 600;
  white-space: normal;
}

.empty-issues,
.empty-state {
  color: var(--lr-muted);
}

.empty-issues {
  padding: 14px 20px 18px 64px;
}

.empty-state {
  min-height: calc(100vh - 226px);
  border: 1px solid var(--lr-border);
  border-radius: var(--lr-radius-panel);
  display: grid;
  place-items: center;
  background: #fff;
}

.user-management-page {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
}

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

.user-form label {
  display: grid;
  gap: 6px;
  color: #4f586f;
  font-weight: 600;
}

.user-list-panel {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}

.content:has(.user-management-page),
.content:has(.assignment-case-list-panel) {
  height: calc(100vh - 92px);
  min-height: calc(100vh - 92px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-list-panel > .lr-table-wrap,
.assignment-case-list-panel > .lr-table-wrap {
  min-height: 0;
  flex: 1 1 auto;
}

.user-table {
  min-width: 1120px;
  --sticky-action-width: 150px;
}

.user-table tbody td {
  color: #263246;
  font-weight: 400;
}

.user-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 8px;
  color: #667085;
  background: #f3f5f8;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}

.user-status-pill.is-on {
  color: #2563eb;
  background: #eef4ff;
}

.user-status-pill.is-off {
  color: #e5484d;
  background: #fff1f2;
}

/* Figma 52:940 dialog standard: right-side 750px full-height drawer. */
.lr-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  justify-content: flex-end;
  background: rgba(0, 0, 0, .42);
}

.lr-drawer-backdrop.is-open {
  display: flex;
}

.lr-drawer {
  width: min(750px, 100vw);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  box-shadow: -18px 0 44px rgba(15, 23, 42, .18);
}

.lr-drawer-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid #ececec;
}

.lr-drawer-header h2 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.lr-drawer-body {
  min-height: 0;
  height: calc(100dvh - 56px);
  padding: 16px 20px 18px;
  overflow: auto;
}

.lr-drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-top: auto;
  padding-top: 24px;
}

.lr-drawer-footer .btn {
  min-width: 100px;
  min-height: 40px;
}

.drawer-close {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: var(--lr-radius-control);
  padding: 0;
  color: #4f586f;
  background: #f4f7fc;
  font-size: 24px;
  line-height: 1;
}

.drawer-close:hover {
  color: var(--lr-blue);
  background: #eef2ff;
}

.lr-react-island {
  display: contents;
}

.lr-ant-drawer-root .ant-drawer-mask {
  background: rgba(15, 23, 42, .22);
}

.lr-ant-drawer-root .ant-drawer-content {
  box-shadow: -10px 0 28px rgba(15, 23, 42, .12);
}

.lr-ant-drawer-root .ant-drawer-header {
  min-height: 56px;
  padding: 0 20px;
  border-bottom-color: #ececec;
}

.lr-ant-drawer-root .ant-drawer-title {
  color: var(--lr-heading);
  font-size: 18px;
  font-weight: 600;
}

.lr-ant-drawer-root .ant-drawer-body {
  padding: 18px 20px;
}

.lr-ant-drawer-root .ant-drawer-footer {
  padding: 14px 20px;
  border-top-color: #ececec;
}

.lr-ant-drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.lr-ant-form .ant-form-item {
  margin-bottom: 16px;
}

.lr-ant-form .ant-form-item-label > label {
  color: #333;
  font-size: 14px;
  font-weight: 400;
}

.lr-ant-form .ant-input,
.lr-ant-form .ant-select-selector,
.lr-ant-form .ant-picker,
.lr-ant-form .ant-cascader-picker {
  border-color: #dce3ef;
}

.lr-ant-info-card {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  border: 1px solid #e7ecf6;
  border-radius: var(--lr-radius-control);
  background: #f8faff;
  padding: 12px 14px;
}

.lr-ant-info-card strong {
  color: var(--lr-heading);
  font-size: 16px;
  font-weight: 600;
}

.lr-ant-info-card span {
  color: var(--lr-muted);
  font-size: 13px;
  font-weight: 400;
}

.assignment-result-transfer-drawer .lr-ant-info-card {
  min-width: 0;
}

.assignment-result-transfer-drawer .lr-ant-info-card strong,
.assignment-result-transfer-drawer .lr-ant-info-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.assignment-result-transfer-drawer .ant-cascader,
.assignment-result-transfer-drawer .ant-cascader .ant-select-selector,
.assignment-result-transfer-drawer .ant-cascader .ant-select-selection-item,
.assignment-result-transfer-drawer .ant-cascader .ant-select-selection-placeholder {
  min-width: 0;
  max-width: 100%;
}

.assignment-result-transfer-cascader-popup {
  max-width: min(860px, calc(100vw - 40px));
}

.assignment-result-transfer-cascader-popup .ant-cascader-menus {
  max-width: min(860px, calc(100vw - 40px));
  overflow-x: auto;
}

.assignment-result-transfer-cascader-popup .ant-cascader-menu-item-content {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lr-ant-cascader-popup .ant-cascader-menu {
  min-width: 172px;
}

.lr-ant-cascader-popup .ant-cascader-menu-item {
  min-height: 36px;
  font-weight: 400;
}

.lr-ant-cascader-popup .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),
.lr-ant-cascader-popup .ant-cascader-menu-item:hover {
  background: #edf4ff;
}

.lr-ant-full {
  width: 100%;
}

.lr-ant-alert {
  margin-bottom: 14px;
  border-radius: var(--lr-radius-control);
}

.login-react-island {
  display: block;
}

.lr-ant-login-form {
  gap: 0;
}

.lr-ant-login-form .ant-form-item {
  margin-bottom: 14px;
}

.lr-ant-login-form .ant-form-item-label {
  padding-bottom: 5px;
}

.lr-ant-login-form .ant-form-item-label > label {
  color: #333;
  font-size: 14px;
  font-weight: 400;
}

.lr-ant-login-form .ant-input,
.lr-ant-login-form .ant-input-password {
  border-radius: var(--lr-radius-control);
  border-color: #dce3ef;
  min-height: 40px;
}

.lr-ant-form .ant-upload-wrapper .ant-upload-list-picture-card .ant-upload-list-item,
.lr-ant-form .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload.ant-upload-select {
  border-radius: var(--lr-radius-control);
  border-color: #dce3ef;
}

.lr-ant-template-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lr-ant-template-radio .ant-radio-button-wrapper {
  border-radius: var(--lr-radius-control);
  border-inline-start-width: 1px;
  border-color: #dce3ef;
  font-weight: 400;
}

.lr-ant-template-radio .ant-radio-button-wrapper::before {
  display: none;
}

.user-drawer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.user-permission-switch {
  min-height: 38px;
  padding: 0;
  align-items: center;
  gap: 8px;
}

.status-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  color: #4f586f;
}

.status-switch input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}

.status-switch span {
  line-height: 16px;
}

.password-reset-input {
  width: 116px;
}

.assignment-members-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.assignment-members-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.assignment-org-panel {
  min-height: 360px;
}

.assignment-org-list {
  display: grid;
  gap: 8px;
}

.assignment-org-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--lr-radius-control);
  color: #253047;
  padding: 0 12px;
  font-weight: 600;
}

.assignment-org-item:hover,
.assignment-org-item.active {
  color: var(--lr-blue);
  background: #f3f6ff;
}

.assignment-org-item strong {
  min-width: 30px;
  color: var(--lr-muted);
  text-align: right;
}

.assignment-member-form {
  display: grid;
  gap: 14px;
}

.assignment-member-form label {
  display: grid;
  gap: 6px;
  color: #4f586f;
  font-weight: 600;
}

.staff-unit-cascade-field {
  display: grid;
  gap: 6px;
  color: #4f586f;
  font-weight: 600;
}

.staff-unit-cascade {
  position: relative;
  min-width: 0;
}

.staff-unit-cascade-trigger {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--lr-cascade-border);
  border-radius: var(--lr-cascade-radius);
  background: #fff;
  padding: 0 12px;
  color: #222;
  text-align: left;
  font-weight: 400;
}

.staff-unit-cascade-trigger:focus,
.staff-unit-cascade-trigger[aria-expanded="true"] {
  border-color: #3a57f7;
  box-shadow: 0 0 0 1px #3a57f7;
  outline: 0;
}

.staff-unit-cascade-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-unit-cascade-trigger b {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
}

.staff-unit-cascade-trigger b::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid #5f687d;
  border-bottom: 2px solid #5f687d;
  transform: rotate(45deg) translate(-1px, -1px);
  content: "";
}

.staff-unit-cascade-trigger[aria-expanded="true"] b::before {
  transform: rotate(225deg) translate(-1px, -1px);
}

.staff-unit-cascade-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1100;
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.staff-unit-cascade-popover[hidden] {
  display: none;
}

.staff-unit-cascade-search {
  height: 36px;
}

.staff-unit-cascade-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: var(--lr-cascade-height);
  height: var(--lr-cascade-height);
  border-radius: var(--lr-cascade-radius);
  box-shadow: var(--lr-cascade-shadow);
}

.staff-unit-cascade-picker .department-cascade-options {
  height: 100%;
}

.staff-unit-cascade-picker .department-cascade-row {
  min-height: 40px;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  gap: 8px;
  padding: 0 6px;
  border-radius: var(--lr-cascade-radius);
  font-size: 14px;
}

.staff-unit-cascade-picker .department-cascade-row span {
  font-weight: 400;
}

.staff-unit-cascade-picker .department-cascade-row:hover,
.staff-unit-cascade-picker .department-cascade-row.active {
  background: #e6e7e7;
  color: #333;
}

.assignment-list-panel,
.assignment-form-panel {
  min-width: 0;
}

.assignment-member-table {
  min-width: 1080px;
  --sticky-action-width: 180px;
}

.assignment-weight-input {
  width: 82px;
}

.assignment-member-import-form {
  margin: 0;
}

.assignment-import-hint {
  margin: -4px 0 14px;
  color: var(--lr-muted);
}

.assignment-member-drawer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.assignment-member-select {
  min-width: 132px;
}

.assignment-runs-table {
  min-width: 900px;
}

.assignment-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 500;
}

.assignment-status-draft {
  color: #8a4a00;
  background: #fff2d6;
}

.assignment-status-confirmed {
  color: #176044;
  background: #dcf3e7;
}

.assignment-status-cancelled {
  color: #6b7280;
  background: #eef2f7;
}

.assignment-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.assignment-case-tools {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
}

.assignment-case-list-panel {
  min-height: 0;
  flex: 1 1 auto;
}

.assignment-case-list-header {
  align-items: flex-start;
}

.assignment-case-list-header h2 {
  margin: 0;
}

.assignment-case-list-header p {
  margin: 5px 0 0;
  color: var(--lr-muted);
  font-size: 14px;
  font-weight: 400;
}

.assignment-case-list-header .breadcrumb-lite {
  margin-bottom: 6px;
}

.assignment-case-import-inline {
  display: inline-flex;
  align-items: center;
}

.assignment-case-tool-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(300px, 1fr);
  gap: 14px;
  align-items: center;
}

.assignment-case-import,
.assignment-case-add {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.assignment-case-import .assignment-import-hint {
  margin: 0;
}

.assignment-case-add .form-control {
  max-width: 420px;
}

.assignment-case-table {
  min-width: 1800px;
}

.assignment-case-actions form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.assignment-result-header {
  margin-bottom: 16px;
}

.assignment-result-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.assignment-result-org-panel,
.assignment-result-main-panel {
  min-height: calc(100vh - 264px);
}

.assignment-result-org-panel {
  padding: 0;
  overflow: hidden;
}

.assignment-result-org-title {
  padding: 20px 20px 14px;
  border-bottom: 1px solid #edf1f7;
}

.assignment-result-org-title h2,
.assignment-result-main-title h2 {
  margin: 0;
  color: var(--lr-heading);
  font-size: 18px;
  font-weight: 700;
}

.assignment-result-tree,
.assignment-result-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.assignment-result-tree {
  max-height: calc(100vh - 390px);
  overflow: auto;
  padding: 10px 12px 20px;
}

.assignment-result-tree-row {
  margin: 0 0 4px;
  padding-left: calc(8px + var(--level) * 18px);
  padding-right: 10px;
}

.assignment-result-tree .staff-leaf-spacer {
  display: none;
}

.assignment-result-main-panel {
  min-width: 0;
  padding: 0;
}

.assignment-result-main-title {
  min-height: 64px;
  padding: 18px 22px;
  border-bottom: 1px solid #edf1f7;
}

.assignment-result-table-wrap {
  border: 0;
  border-radius: 0;
  min-height: calc(100vh - 350px);
  max-height: calc(100vh - 360px);
  overflow: auto;
}

.assignment-result-table {
  min-width: 1520px;
}

.assignment-summary-table {
  min-width: 760px;
}

.assignment-result-table > :not(caption) > * > * {
  padding: 14px 16px;
}

.assignment-result-table.has-sticky-actions tbody td:last-child form {
  display: flex;
  justify-content: flex-start;
}

.assignment-result-action-stack {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.department-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: 0;
  height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
}

.department-tree-panel {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.staff-roster-sync-modal {
  display: grid;
  gap: 16px;
}

.staff-roster-sync-upload {
  display: inline-flex;
  width: fit-content;
}

.staff-roster-sync-totals {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
}

.staff-roster-sync-totals > div {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border-right: 1px solid #edf0f5;
}

.staff-roster-sync-totals > div:last-child {
  border-right: 0;
}

.staff-roster-sync-totals span,
.staff-roster-sync-anomalies span {
  color: #7b8599;
  font-size: 13px;
}

.staff-roster-sync-totals strong {
  color: #1e2b45;
  font-size: 20px;
  line-height: 24px;
}

.staff-roster-sync-totals .is-warning strong,
.staff-roster-sync-table .is-warning {
  color: #d4382a;
}

.staff-roster-sync-table-wrap {
  overflow-x: auto;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
}

.staff-roster-sync-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  color: #2d3548;
  font-size: 14px;
}

.staff-roster-sync-table th,
.staff-roster-sync-table td {
  height: 42px;
  padding: 0 14px;
  text-align: center;
  border-bottom: 1px solid #edf0f5;
  white-space: nowrap;
}

.staff-roster-sync-table th:first-child,
.staff-roster-sync-table td:first-child {
  text-align: left;
}

.staff-roster-sync-table th {
  color: #626d82;
  font-weight: 500;
  background: #fafbfc;
}

.staff-roster-sync-table tbody tr:last-child td {
  border-bottom: 0;
}

.staff-roster-sync-anomalies {
  display: grid;
  gap: 6px;
  color: #7b8599;
  font-size: 13px;
}

.staff-roster-sync-anomalies strong {
  color: #2d3548;
  font-size: 14px;
  font-weight: 500;
}

.staff-roster-sync-anomalies ul {
  max-height: 168px;
  margin: 0;
  padding-left: 20px;
  overflow-y: auto;
}

.staff-roster-sync-anomalies li + li {
  margin-top: 4px;
}

.department-tree-panel .panel-header,
.department-tree-search {
  flex: 0 0 auto;
}

.department-tree-panel .panel-header {
  min-height: 32px;
  align-items: center;
}

.department-tree-panel .panel-header > div {
  min-height: 32px;
  display: flex;
  align-items: center;
}

.department-tree-panel .panel-header h2 {
  line-height: 32px;
}

.department-tree-search {
  height: 38px;
  margin-bottom: 12px;
  border-radius: var(--lr-radius-control);
}

.department-tree,
.department-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.department-tree {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 8px 0;
}

.department-tree-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 8px 4px;
  padding: 0 10px 0 calc(10px + var(--level) * 18px);
  border-radius: 8px;
  color: #222;
  font-weight: 500;
}

.department-tree-row a {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-tree-row.active,
.department-tree-row:hover,
.department-tree-node.is-drop-target > .department-tree-row {
  background: #edf4ff;
  color: var(--lr-blue);
}

.department-tree-node.is-search-match > .department-tree-row {
  color: var(--lr-blue);
}

.department-company-node > .department-tree-row {
  min-height: 32px;
  margin: 0 0 4px;
  padding-left: 10px;
  border: 0;
  background: transparent;
  color: #222;
  font-weight: 500;
}

.department-company-node > .department-tree-row:hover,
.department-company-node > .department-tree-row.active {
  background: transparent;
  color: #222;
}

.tree-drag-handle {
  width: 16px;
  color: #8b95a8;
  cursor: grab;
  font-weight: 700;
}

.tree-toggle {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #222;
  font-weight: 700;
  line-height: 1;
}

.tree-toggle-spacer,
.staff-leaf-spacer {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.department-staff-leaf .department-tree-row {
  color: #222;
}

.department-staff-leaf .department-tree-row.active,
.department-staff-leaf .department-tree-row:hover {
  color: var(--lr-blue);
}

.department-staff-leaf .tree-badge {
  font-size: 11px;
}

.department-ungrouped-node > .department-tree-row {
  color: #222;
  font-weight: 500;
}

.icon-button {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: var(--lr-radius-control);
  background: #f3f6fb;
  color: #536078;
}

.icon-button-add::before,
.icon-button-add::after {
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.icon-button-add::after {
  transform: rotate(90deg);
}

.tree-badge {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--lr-muted);
  font-size: 12px;
}

.department-tree-node.is-collapsed > ul {
  display: none;
}

.department-main-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.department-list-panel {
  --department-row-height: 48px;
  --department-header-height: 46px;
  --department-action-width: 164px;
}

.department-list-panel.lr-table-card > .department-toolbar {
  min-height: 84px;
  padding: 18px 22px 12px;
  box-shadow: none;
  z-index: 18;
}

.department-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.department-toolbar > div:first-child {
  flex: 1 1 280px;
  min-width: 0;
}

.department-toolbar h2 {
  margin: 0 0 10px;
  color: var(--lr-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.department-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  border-bottom: 0;
  white-space: nowrap;
}

.department-toolbar .table-actions {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  flex-wrap: nowrap;
  justify-content: flex-end;
  white-space: nowrap;
}

.department-toolbar .table-actions .btn {
  white-space: nowrap;
}

.department-tabs a {
  color: #4f586f;
  font-weight: 400;
  padding-bottom: 7px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.department-tabs a.active {
  color: var(--lr-blue);
  border-bottom-color: var(--lr-blue);
  font-weight: 500;
}

.department-unit-modal {
  display: grid;
  gap: 16px;
}

.department-unit-current {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #edf1f7;
  border-radius: var(--lr-radius-control);
  background: #fbfcff;
}

.department-unit-current strong {
  color: var(--lr-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.department-unit-section {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.department-unit-section + .department-unit-section {
  padding-top: 14px;
  border-top: 1px solid #edf1f7;
}

.department-unit-section h3 {
  margin: 0;
  color: var(--lr-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.department-unit-section .ant-btn {
  min-width: 96px;
  height: 36px;
  border-radius: var(--lr-radius-control);
}

.department-filter {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 96px;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  max-width: 428px;
}

.department-list-filter {
  padding: 0;
}

.lr-table-card > .department-list-filter {
  margin: 16px 22px 12px;
}

.department-filter .form-control,
.department-filter .btn {
  height: 34px;
  border-radius: var(--lr-radius-control);
}

.department-filter .btn {
  width: 96px;
  white-space: nowrap;
}

.department-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.department-staff-table {
  min-width: 1180px;
  --sticky-action-width: var(--department-action-width, 164px);
  margin: 0;
}

.department-list-table thead th {
  height: var(--department-header-height);
  padding: 0 18px;
  color: #596276;
  background: #fafbff;
  font-size: 14px;
  font-weight: 500;
  line-height: var(--department-header-height);
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #e8edf6;
  vertical-align: middle;
}

.department-list-table tbody td {
  height: var(--department-row-height);
  padding: 0 18px;
  color: #263246;
  font-size: 14px;
  font-weight: 400;
  line-height: var(--department-row-height);
  border-bottom: 1px solid #edf1f7;
  vertical-align: middle;
}

.department-list-table tbody tr:hover td {
  background: #f8faff;
}

.department-list-table .department-select-col {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  padding-left: 18px;
  padding-right: 10px;
}

.department-list-table .department-name-col {
  width: 140px;
  min-width: 140px;
}

.department-list-table .department-path-col {
  width: 336px;
  min-width: 336px;
}

.department-list-table .department-role-col {
  width: 110px;
  min-width: 110px;
}

.department-list-table .department-gender-col,
.department-list-table .department-phone-col,
.department-list-table .department-position-col {
  width: 96px;
  min-width: 96px;
}

.department-list-table .department-count-col {
  width: 116px;
  min-width: 116px;
  text-align: right;
}

.department-list-table th.department-count-col {
  text-align: right;
}

.department-list-table tbody td:nth-child(2) .table-link {
  font-weight: 500;
}

.department-list-table tbody td:nth-child(3) {
  color: #2f394d;
  white-space: nowrap;
}

.department-list-table tbody td:nth-child(8) {
  text-align: right;
}

.department-list-table.has-sticky-actions thead th:last-child,
.department-list-table.has-sticky-actions tbody td:last-child {
  width: var(--department-action-width);
  min-width: var(--department-action-width);
  max-width: var(--department-action-width);
  padding-left: 18px;
  padding-right: 18px;
  box-shadow: -4px 0 10px rgba(0, 0, 0, .06);
}

.department-list-table.has-sticky-actions thead th:last-child {
  background: #fafbff;
}

.department-list-table.has-sticky-actions tbody td:last-child {
  background: #fff;
}

.department-list-table.has-sticky-actions tbody tr:hover td:last-child {
  background: #f8faff;
}

.department-staff-table.has-sticky-actions tbody td:last-child {
  overflow: visible;
}

.unified-list-table {
  margin: 0;
  color: #263246;
  font-size: 14px;
}

.unified-list-table thead th {
  height: 54px;
  padding: 0 18px;
  color: #596276;
  background: #fafbff;
  font-size: 14px;
  font-weight: 500;
  line-height: 54px;
  border-bottom: 1px solid #e8edf6;
  vertical-align: middle;
  white-space: nowrap;
}

.unified-list-table tbody td {
  height: 54px;
  padding: 0 18px;
  color: #263246;
  font-size: 14px;
  font-weight: 400;
  line-height: 54px;
  border-bottom: 1px solid #edf1f7;
  vertical-align: middle;
  white-space: nowrap;
}

.unified-list-table tbody tr:hover td {
  background: #f8faff;
}

.unified-list-table .table-link,
.unified-list-table .action-link {
  font-weight: 500;
}

.unified-list-table.has-sticky-actions thead th:last-child,
.unified-list-table.has-sticky-actions tbody td:last-child {
  padding-left: 18px;
  padding-right: 18px;
}

.unified-list-table.has-sticky-actions tbody tr:hover td:last-child {
  background: #f8faff;
}

.department-empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--lr-muted);
  font-size: 14px;
  font-weight: 600;
}

.department-actions {
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.department-actions .action-link,
.department-actions .lr-ant-more-menu-button.ant-btn {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.staff-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.staff-status-pill.resigned {
  color: #b42318;
  background: #fff0ec;
}

.more-menu-toggle {
  color: var(--lr-blue);
}

.staff-more-menu-root {
  display: inline-flex;
}

.lr-ant-more-menu-button.ant-btn {
  height: auto;
  padding: 0;
  border: 0;
  color: var(--lr-blue);
  background: transparent;
  box-shadow: none;
  font-size: inherit;
  line-height: inherit;
  font-weight: 500;
}

.lr-ant-more-menu-button.ant-btn:hover,
.lr-ant-more-menu-button.ant-btn:focus {
  color: var(--lr-blue);
  background: transparent;
}

.department-staff-table tr[draggable="true"],
.department-tree-node[draggable="true"] {
  cursor: grab;
}

.department-move-drawer {
  width: min(680px, 100vw);
}

.department-move-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.department-move-person {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #e4e9f3;
  border-radius: var(--lr-radius-control);
  background: #f8faff;
}

.department-move-person span,
.department-move-person small {
  color: var(--lr-muted);
  font-size: 13px;
  font-weight: 600;
}

.department-move-person strong {
  color: var(--lr-heading);
  font-size: 16px;
  font-weight: 700;
}

.department-cascade-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: var(--lr-cascade-height);
  height: var(--lr-cascade-height);
  overflow: hidden;
  border: 1px solid var(--lr-cascade-border);
  border-radius: var(--lr-cascade-radius);
  background: #fff;
  box-shadow: var(--lr-cascade-shadow);
}

.department-cascade-level + .department-cascade-level {
  border-left: 1px solid var(--lr-cascade-border);
}

.department-cascade-title {
  display: none;
}

.department-cascade-options {
  height: 100%;
  overflow: auto;
  padding: 8px 10px;
}

.department-cascade-options.is-empty {
  display: grid;
  place-items: center;
  color: #9aa3b4;
  font-size: 13px;
  font-weight: 600;
}

.department-cascade-row {
  width: 100%;
  min-height: 40px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  border: 0;
  border-radius: var(--lr-cascade-radius);
  padding: 0 6px;
  background: transparent;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

.department-cascade-row.is-checkable {
  grid-template-columns: 16px minmax(0, 1fr) 16px;
}

.department-cascade-row span,
.department-cascade-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-cascade-row span {
  font-weight: 400;
}

.department-cascade-row small {
  color: var(--lr-muted);
  font-size: 12px;
}

.department-cascade-row:hover,
.department-cascade-row.active {
  background: var(--lr-cascade-active-bg);
  color: #333;
}

.department-cascade-row.active small {
  color: var(--lr-muted);
}

.assignment-result-assign-drawer {
  width: min(750px, 100vw);
}

.assignment-result-cascade-field {
  display: grid;
  gap: 8px;
}

.assignment-result-cascade-field > span {
  color: #333;
  font-size: 14px;
  font-weight: 400;
}

.assignment-result-cascade-field > span::before {
  color: #ff4d4f;
  content: "*";
}

.assignment-result-cascade-shell {
  display: grid;
  gap: 6px;
}

.assignment-result-selected-tags {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  position: relative;
  border: 1px solid #3a57f7;
  border-radius: var(--lr-cascade-radius);
  background: #fff;
  padding: 4px 34px 4px 8px;
  color: #222;
  font-size: 14px;
  line-height: 1;
}

.assignment-result-selected-tags::after {
  position: absolute;
  right: 12px;
  top: 50%;
  color: #555;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-50%);
  content: "⌄";
}

.assignment-result-selected-tags.is-placeholder {
  color: #8b95a8;
}

.assignment-result-selected-tag {
  max-width: 118px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #e6e7e7;
  padding: 0 9px;
  color: #333;
  font-size: 14px;
}

.assignment-result-selected-tag span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-result-selected-tag b {
  color: #0b1e46;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.assignment-result-cascade-picker {
  min-height: var(--lr-cascade-height);
  height: var(--lr-cascade-height);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-color: var(--lr-cascade-border);
  border-radius: var(--lr-cascade-radius);
  box-shadow: var(--lr-cascade-shadow);
}

.assignment-result-cascade-picker .department-cascade-level + .department-cascade-level {
  border-left-color: var(--lr-cascade-border);
}

.assignment-result-cascade-picker .department-cascade-options {
  height: 100%;
  padding: 8px 10px;
}

.assignment-result-cascade-picker .department-cascade-options.is-empty {
  font-weight: 400;
}

.assignment-result-cascade-picker .department-cascade-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  gap: 8px;
  padding: 0 6px;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  font-weight: 400;
}

.assignment-result-cascade-picker .department-cascade-row:not(.is-checkable) {
  grid-template-columns: minmax(0, 1fr);
}

.assignment-result-cascade-picker .department-cascade-row span {
  font-weight: 400;
}

.assignment-result-cascade-picker .department-cascade-row:hover,
.assignment-result-cascade-picker .department-cascade-row.active {
  background: #e6e7e7;
  color: #333;
}

.cascade-checkbox {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #999;
  border-radius: 4px;
  background: #fff;
}

.department-cascade-row.is-checked .cascade-checkbox {
  border-color: var(--lr-blue);
  background: var(--lr-blue);
}

.department-cascade-row.is-checked .cascade-checkbox::after {
  width: 8px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  margin-top: -1px;
  transform: rotate(-45deg);
  content: "";
}

.cascade-row-arrow {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: #555;
  font-size: 0;
  line-height: 1;
  text-align: right;
}

.cascade-row-arrow::before {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  content: "";
}

.empty-table-text {
  padding: 16px;
  color: var(--lr-muted);
}

.field-list {
  columns: 2;
  margin-bottom: 0;
  color: #3f4c63;
  line-height: 1.85;
}

.field-list li::marker {
  color: #9aa4b7;
}

.config-list,
.settings-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.config-list dt,
.settings-list strong {
  color: #667287;
  font-weight: 400;
}

.config-list dt {
  margin-top: 12px;
}

.config-list dt:first-child {
  margin-top: 0;
}

.config-list dd {
  color: var(--lr-muted);
  word-break: break-all;
  margin-bottom: 12px;
}

.settings-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 18px;
}

.settings-list div {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-bottom: 1px solid #edf1f7;
}

.settings-list span {
  color: #222;
  font-weight: 400;
}

.chart {
  height: 320px;
}

.wecom-board {
  background: #fff;
  border-radius: 16px;
}

.wecom-board {
  min-height: calc(100vh - 88px);
  overflow: hidden;
}

.lr-tool-board {
  border: 1px solid var(--lr-border);
  border-radius: var(--lr-radius-panel);
  background: #fff;
  box-shadow: none;
}

.wecom-board-header {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--lr-border);
  padding: 0 24px;
}

.lr-tool-board-header {
  min-height: 64px;
  height: auto;
  padding: 0 22px;
  background: #fff;
}

.wecom-board-header h2 {
  margin: 0;
  color: #222;
  font-size: 18px;
  font-weight: 600;
}

.wecom-edit-trigger {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #222;
  font-size: 16px;
  font-weight: 600;
}

.lr-tool-board .wecom-edit-trigger {
  min-height: 36px;
  border: 1px solid #dfe5f0;
  border-radius: var(--lr-radius-control);
  padding: 0 12px;
  color: #273348;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
}

.lr-tool-board .wecom-edit-trigger:hover {
  border-color: #c9d4ff;
  color: var(--lr-blue);
  background: #f6f8ff;
}

.wecom-edit-trigger img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.wecom-board-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 150px);
}

.lr-tool-board-body {
  grid-template-columns: 230px minmax(0, 1fr);
}

.wecom-group-list {
  border-right: 1px solid var(--lr-border);
  padding: 12px 26px 0 24px;
}

.lr-tool-group-list {
  padding: 14px 12px;
  background: #fbfcff;
}

.wecom-group-item {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef2f8;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.lr-tool-board .wecom-group-item {
  min-height: 42px;
  border-bottom: 0;
  border-radius: var(--lr-radius-control);
  padding: 0 10px;
  color: #3f4c63;
  font-size: 14px;
  font-weight: 400;
}

.lr-tool-board .wecom-group-item:hover {
  color: var(--lr-blue);
  background: #f1f5ff;
}

.wecom-group-item.active {
  color: var(--lr-blue);
}

.lr-tool-board .wecom-group-item.active {
  color: var(--lr-blue);
  background: #eef3ff;
  font-weight: 500;
}

.wecom-empty-group {
  color: var(--lr-muted);
  padding: 16px 0;
}

.wecom-card-area {
  padding: 20px;
}

.lr-tool-card-area {
  padding: 18px 20px;
}

.wecom-reminder-card {
  width: min(907px, 100%);
  min-height: 98px;
  border: 1px solid #d8deea;
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  margin-bottom: 16px;
}

.lr-tool-item-card {
  width: min(1040px, 100%);
  min-height: 92px;
  border-color: #e2e8f3;
  border-radius: var(--lr-radius-control);
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 38, 82, .025);
}

.lr-tool-item-card:hover {
  border-color: #d4ddf0;
  background: #fbfcff;
}

.report-task-card {
  grid-template-columns: 104px minmax(0, 1fr) auto;
}

.report-card-preview {
  width: 86px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #121212;
  background: #eef5ce;
}

.report-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.report-preview-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 28px;
  grid-template-rows: 22px 16px 1fr;
  color: #071a44;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}

.report-preview-fallback span,
.report-preview-fallback b {
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.report-preview-fallback b {
  grid-row: 2;
}

.report-preview-fallback i {
  display: block;
  border-right: 1px dotted #111;
  border-bottom: 1px dotted #111;
  background: #fff;
}

.report-card-copy {
  min-width: 0;
}

.report-source-mode {
  color: #6b7280;
  font-size: 13px;
  margin-top: 6px;
}

.report-preview-dropzone {
  width: 100%;
  min-height: 178px;
  border: 1px dashed #b9c3d5;
  border-radius: var(--lr-radius-control);
  display: grid;
  place-items: center;
  padding: 10px;
  background: #f8fafc;
  color: #738096;
  font-weight: 500;
  text-align: center;
}

.report-preview-dropzone:focus {
  border-color: var(--lr-blue);
  outline: 3px solid rgba(62, 80, 255, .16);
}

.report-preview-dropzone img {
  display: none;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.report-preview-dropzone img.is-visible {
  display: block;
}

.report-preview-actions {
  display: flex;
  gap: 10px;
}

.report-template-field {
  gap: 10px;
}

.report-template-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.report-template-option {
  width: 178px;
  border: 1px solid #d9e1ee;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fff;
  color: #0f1f42;
  text-align: left;
  cursor: pointer;
}

.report-template-option.is-selected {
  border-color: #3e50ff;
  box-shadow: 0 0 0 2px rgba(62, 80, 255, .14);
}

.report-template-thumb {
  width: 100%;
  aspect-ratio: 2.6 / 1;
  border: 1px solid #111;
  display: grid;
  grid-template-columns: 40px 36px 28px repeat(6, 1fr);
  grid-template-rows: 18px 1fr;
  overflow: hidden;
  background: #fff;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
}

.report-template-thumb > span {
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  display: grid;
  place-items: center;
}

.report-template-thumb .template-head,
.report-template-thumb .template-band {
  background: #eaf3cf;
  font-weight: 500;
}

.report-template-thumb .template-head {
  grid-row: 1 / span 2;
}

.report-template-thumb .template-band {
  grid-column: 4 / -1;
}

.report-template-thumb .template-cell {
  min-width: 0;
}

.report-template-thumb .progress.red {
  background: linear-gradient(90deg, #ff8b95 0 70%, #fff 70%);
  box-shadow: inset 0 0 0 1px #ff6f7a;
}

.report-template-thumb .progress.orange {
  background: linear-gradient(90deg, #ffd35d 0 58%, #fff 58%);
  box-shadow: inset 0 0 0 1px #e0a21a;
}

.report-template-thumb .progress.blue {
  background: linear-gradient(90deg, #8fb8eb 0 76%, #fff 76%);
  box-shadow: inset 0 0 0 1px #4d82c3;
}

.report-template-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.report-template-name::before {
  width: 12px;
  height: 12px;
  border: 1px solid #8ca0c4;
  border-radius: 50%;
  content: "";
}

.report-template-option.is-selected .report-template-name::before {
  border: 4px solid #3e50ff;
}

.wecom-card-copy strong {
  color: #071a44;
  font-size: 16px;
  font-weight: 500;
}

.wecom-card-copy p,
.wecom-card-copy small {
  display: block;
  margin: 8px 0 0;
  color: #778196;
}

.wecom-card-copy a {
  color: var(--lr-blue);
  font-weight: 500;
  margin-left: 8px;
}

.wecom-time-pill {
  min-height: 22px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--lr-blue);
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
}

.wecom-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-card-actions {
  gap: 10px;
}

.report-card-actions .wecom-muted-action,
.report-card-actions .wecom-toggle-action {
  width: 86px;
  min-width: 86px;
}

.wecom-card-actions form {
  margin: 0;
}

.wecom-muted-action,
.wecom-toggle-action {
  width: 72px;
  min-width: 72px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: var(--lr-radius-control);
  font-weight: 400;
}

.wecom-muted-action {
  background: #fff;
  border-color: #dfe5f0;
  color: #273348;
}

.wecom-muted-action:hover {
  border-color: #c9d4ff;
  color: var(--lr-blue);
  background: #f6f8ff;
}

.wecom-empty-state {
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--lr-muted);
  text-align: center;
}

.wecom-empty-state strong {
  color: var(--lr-heading);
  font-size: 18px;
}

.app-toast-stack,
.wecom-toast-stack {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 1080;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 40px));
  pointer-events: none;
  transform: translateX(-50%);
}

.app-toast,
.wecom-toast {
  min-height: 48px;
  border-radius: var(--lr-radius-control);
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-weight: 600;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
  animation: toast-fade-out 3s ease forwards;
}

.app-toast.success,
.wecom-toast.success {
  color: #24543d;
  background: #d8efe3;
  border: 1px solid #b9dec9;
}

.app-toast.error,
.wecom-toast.error {
  color: #8a1f14;
  background: #fde7e4;
  border: 1px solid #f6b9b0;
}

@keyframes toast-fade-out {
  0%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
  }
}

.wecom-modal-form {
  display: flex;
  flex-direction: column;
}

.wecom-modal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  column-gap: 16px;
  row-gap: 16px;
}

.wecom-field {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #333;
  font-weight: 600;
}

.wecom-field b {
  color: var(--lr-red);
  margin-right: 1px;
}

.wecom-field.full {
  grid-column: 1 / -1;
}

.wecom-field textarea {
  min-height: 79px;
  resize: vertical;
}

.wecom-field small {
  min-height: 16px;
  color: var(--lr-muted);
  font-weight: 400;
}

.wecom-saved-status {
  min-height: 28px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #f8fafc;
}

.wecom-saved-status[data-tone="saved"] {
  color: #176044;
  background: #edf8f2;
  border-color: #bfe3ce;
}

.wecom-saved-status[data-tone="changed"] {
  color: #8a4a00;
  background: #fff7e8;
  border-color: #ffd899;
}

.wecom-saved-status[data-tone="empty"] {
  color: #6b7280;
  background: #f8fafc;
  border-color: #dfe7f2;
}

.wecom-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wecom-image-add,
.wecom-image-item {
  width: 74px;
  height: 74px;
  border: 1px solid #dfe4ee;
  border-radius: 4px;
  background: #f8fafc;
}

.wecom-image-add {
  display: grid;
  place-items: center;
  color: #222;
  font-size: 28px;
  line-height: 1;
}

.wecom-image-item {
  position: relative;
  overflow: hidden;
}

.wecom-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wecom-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .68);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.wecom-switch {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lead-content {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.lead-workspace {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
}

/* Server-rendered Eagle Eye modules share the React workspace visual system. */
.eagle-legacy-workspace {
  --eagle-blue: #2455d9;
  --eagle-blue-bright: #2878f6;
  --eagle-orange: #ff7a45;
  --eagle-ink: #17223b;
  --eagle-muted: #667085;
  --eagle-line: #e3e9f3;
  --eagle-radius-control: var(--lr-radius-control);
  --eagle-radius-panel: var(--lr-radius-panel);
  min-height: calc(100vh - var(--lr-header-height));
  gap: 16px;
  background: #EBF0FA;
}

.eagle-legacy-workspace .lead-card {
  border-color: var(--eagle-line);
  border-radius: var(--eagle-radius-panel);
  box-shadow: 0 8px 22px rgba(31, 55, 96, .04);
}

.eagle-legacy-workspace .lead-card-header h1 {
  font-size: 20px;
  line-height: 1.35;
}

.eagle-legacy-workspace .lead-card-header p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.eagle-legacy-workspace.lead-sources-workspace .lead-profile-hero h1 {
  font-size: 22px;
  line-height: 1.35;
}

.lead-card {
  background: #fff;
  border-radius: var(--lr-radius-panel);
  border: 1px solid rgba(223, 230, 243, .76);
  box-shadow: 0 10px 26px rgba(20, 38, 82, .035);
}

.lead-search-panel {
  min-height: 236px;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 26px 30px;
}

.lead-panel-copy h1,
.lead-card-header h1,
.lead-profile-hero h1 {
  margin: 0;
  color: var(--lr-heading);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
}

.lead-panel-copy p,
.lead-profile-hero p,
.lead-rule-grid p {
  margin: 8px 0 0;
  color: #58657c;
}

.lead-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--lr-blue);
  font-size: 13px;
  font-weight: 400;
}

.lead-search-form {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.lead-search-tabs {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  width: fit-content;
  min-height: 36px;
  padding: 0;
  border-bottom: 1px solid #edf1f7;
  background: transparent;
}

.lead-search-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: 34px;
  border-bottom: 2px solid transparent;
  color: #536078;
  font-weight: 500;
}

.lead-search-tabs a.active {
  color: var(--lr-blue);
  border-bottom-color: var(--lr-blue);
  background: transparent;
  box-shadow: none;
}

.lead-search-field {
  display: grid;
  gap: 8px;
  color: #3f4c63;
  font-weight: 400;
}

.lead-search-field input {
  min-height: 48px;
  border-color: #dce4f3;
  border-radius: 8px;
}

.lead-search-submit {
  min-width: 142px;
  min-height: 48px;
  border-radius: 8px;
  background: var(--lr-blue);
  border-color: var(--lr-blue);
  font-weight: 400;
}

.lead-search-submit.is-loading {
  cursor: wait;
  opacity: .82;
}

.lead-source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-source-strip span,
.lead-source-summary span,
.lead-source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2f55ee;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 400;
}

.lead-diagnose-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  color: #4c5c75;
  background: #f4f6fb;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 400;
}

.lead-diagnose-link:hover {
  color: var(--lr-blue);
  background: #eef3ff;
}

.lead-job-status,
.lead-error {
  border-radius: 8px;
  padding: 10px 12px;
  background: #f6f8ff;
  color: #44516a;
  font-weight: 400;
}

.lead-error {
  background: #fff2f0;
  color: var(--lr-red);
}

.lead-results-panel,
.lead-profile-panel,
.lead-pool-card,
.lead-page-card,
.lead-rules-card,
.lead-profile-facts,
.lead-profile-hero {
  padding: 24px;
}

.lead-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.lead-card.lr-table-card {
  padding: 0;
  box-shadow: none;
}

.lead-card.lr-table-card > .lead-card-header {
  flex: 0 0 auto;
  min-height: 64px;
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
}

.lead-card.lr-table-card > .lead-filter-bar {
  flex: 0 0 auto;
  margin: 14px 22px 16px;
}

.lead-card.lr-table-card > .lead-table-wrap,
.lead-card.lr-table-card .lead-table-wrap {
  border-width: 0;
  border-radius: 0;
}

.lead-card.lr-table-card > .lead-evidence-chain-list {
  padding: 18px 22px;
}

.lead-card.lr-table-card > .lead-empty-state {
  min-height: 176px;
  padding: 28px 22px;
}

.lead-card-header h2,
.lead-rule-grid h2 {
  margin: 0;
  color: var(--lr-heading);
  font-size: 18px;
  font-weight: 600;
}

.lead-card-header p {
  margin: 8px 0 0;
  color: #667287;
  line-height: 1.55;
}

.lead-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lead-stat-card {
  min-height: 128px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}

.lead-stat-card span {
  display: block;
  color: #667287;
  font-size: 16px;
  font-weight: 400;
}

.lead-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}

.lead-stat-card em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 14px;
  color: #2563eb;
  background: #eff6ff;
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.lead-table-wrap {
  overflow-x: auto;
}

.lead-table {
  margin: 0;
  min-width: 760px;
}

.lead-table th,
.lead-table thead th {
  color: #5a6579;
  font-size: 13px;
  font-weight: 400;
  background: #f7f9fe;
}

.lead-table td {
  color: #273348;
  vertical-align: middle;
}

.lead-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 400;
}

.lead-status-queued {
  color: #725300;
  background: #fff7d6;
}

.lead-status-running {
  color: #2544c7;
  background: #edf2ff;
}

.lead-status-success {
  color: #0f6b47;
  background: #e8f7ef;
}

.lead-status-failed {
  color: var(--lr-red);
  background: #fff0ec;
}

.lead-link {
  color: var(--lr-blue);
  font-weight: 400;
}

.lead-empty-state {
  min-height: 180px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: #667287;
}

.lead-empty-state.compact {
  min-height: 96px;
}

.lead-empty-state strong {
  color: var(--lr-heading);
  font-size: 18px;
  font-weight: 500;
}

.lead-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.lead-company-card {
  min-height: 124px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #e6ecf7;
  border-radius: 8px;
  padding: 16px;
  color: var(--lr-heading);
  background: #fbfcff;
}

.lead-company-card:hover {
  border-color: var(--lr-blue);
  box-shadow: 0 12px 26px rgba(58, 87, 247, .12);
}

.lead-company-card strong {
  font-size: 17px;
  font-weight: 500;
}

.lead-company-card span,
.lead-muted-line,
.lead-company-card em,
.lead-evidence-item em {
  color: #667287;
  font-style: normal;
}

.lead-muted-line {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.lead-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.lead-row-actions {
  white-space: nowrap;
}

.lead-row-actions a + a {
  margin-left: 10px;
}

.lead-profile-workspace {
  grid-template-rows: auto auto auto 1fr;
}

.lead-profile-workbench {
  display: block;
}

.lead-profile-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.45fr) minmax(340px, .9fr);
  gap: 16px;
  align-items: start;
}

.lead-profile-main,
.lead-profile-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.lead-profile-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-profile-banner,
.lead-profile-module,
.lead-profile-suggestions,
.lead-profile-note {
  border: 1px solid rgba(223, 230, 243, .9);
  border-radius: var(--lr-radius-panel);
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 38, 82, .035);
}

.lead-profile-banner {
  min-height: 148px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #eef5ff);
  border-color: #d6e5ff;
}

.lead-profile-banner-head,
.lead-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-profile-banner h1 {
  margin: 0;
  color: var(--lr-heading);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 600;
}

.lead-profile-banner p {
  max-width: 840px;
  margin: 0;
  color: #627089;
  line-height: 1.55;
}

.lead-profile-module,
.lead-profile-suggestions,
.lead-profile-note {
  padding: 18px;
}

.lead-profile-module h2,
.lead-profile-suggestions h2,
.lead-section-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--lr-heading);
  font-size: 17px;
  font-weight: 600;
}

.lead-section-title h2 {
  margin: 0;
}

.lead-profile-module h2 span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #2f55ee;
  background: #edf4ff;
  font-size: 13px;
  font-weight: 500;
}

.lead-profile-kv {
  display: grid;
  gap: 0;
  margin: 0;
}

.lead-profile-kv div {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed #e5eaf4;
}

.lead-profile-kv div:last-child {
  border-bottom: 0;
}

.lead-profile-kv dt {
  color: #718098;
  font-weight: 500;
}

.lead-profile-kv dd {
  margin: 0;
  color: #26344c;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.lead-profile-kv.compact div {
  grid-template-columns: 96px minmax(0, 1fr);
}

.lead-profile-divider {
  height: 1px;
  background: #e7edf8;
}

.lead-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lead-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.lead-tag.dark {
  color: #fff;
  background: #111827;
}

.lead-tag.blue {
  color: #1d4ed8;
  background: #eff6ff;
}

.lead-tag.green {
  color: #15803d;
  background: #ecfdf3;
}

.lead-tag.amber {
  color: #b45309;
  background: #fffbeb;
}

.lead-tag.purple {
  color: #6d28d9;
  background: #f5f3ff;
}

.lead-tag.gray {
  color: #475467;
  background: #f2f4f7;
}

.lead-profile-note {
  display: grid;
  gap: 4px;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #475467;
}

.lead-profile-note strong {
  color: var(--lr-heading);
  font-size: 15px;
}

.lead-score-list,
.lead-source-confidence {
  display: grid;
  gap: 16px;
}

.lead-score-list div,
.lead-source-confidence div {
  display: grid;
  gap: 8px;
}

.lead-score-list div {
  grid-template-columns: 1fr auto;
}

.lead-score-list b,
.lead-source-confidence b {
  height: 9px;
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #f2f4f7;
}

.lead-score-list i,
.lead-source-confidence i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.lead-score-list i.green,
.lead-source-confidence i.green {
  background: linear-gradient(90deg, #34d399, #16a34a);
}

.lead-score-list i.amber,
.lead-source-confidence i.amber {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.lead-score-list span {
  color: #667287;
}

.lead-score-list em {
  color: #667287;
  font-style: normal;
}

.lead-source-confidence div {
  border: 1px solid #e7edf8;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.lead-source-confidence div {
  grid-template-columns: 1fr auto;
}

.lead-source-confidence strong {
  color: var(--lr-heading);
  font-size: 15px;
}

.lead-profile-timeline {
  display: grid;
  gap: 10px;
}

.lead-profile-timeline div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
}

.lead-profile-timeline span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #3730a3;
  background: #e0e7ff;
  font-size: 12px;
  font-weight: 600;
}

.lead-profile-timeline p {
  display: grid;
  gap: 4px;
  margin: 0;
  border: 1px solid #e7edf8;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.lead-profile-timeline strong {
  color: var(--lr-heading);
  font-size: 14px;
}

.lead-profile-timeline em {
  color: #667287;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.lead-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lead-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-fact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.lead-fact-grid div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-radius: 8px;
  background: #f7f9fe;
  padding: 12px;
}

.lead-fact-grid span {
  color: #718098;
  font-size: 13px;
}

.lead-fact-grid strong {
  color: var(--lr-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.lead-source-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lead-source-summary span {
  gap: 8px;
}

.lead-source-summary b {
  font-weight: 500;
}

.lead-field-table {
  min-width: 980px;
}

.lead-field-table th,
.lead-field-table td {
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.55;
}

.lead-field-table thead th {
  background: #f8fafc;
  color: #667287;
  font-size: 15px;
  font-weight: 500;
}

.lead-field-table tbody tr + tr td {
  border-top: 1px solid #e5eaf4;
}

.lead-rule-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.lead-rule-pill.blue {
  color: #1d4ed8;
  background: #eff6ff;
}

.lead-rule-pill.green {
  color: #15803d;
  background: #ecfdf3;
}

.lead-rule-pill.amber {
  color: #b45309;
  background: #fffbeb;
}

.lead-rule-pill.purple {
  color: #6d28d9;
  background: #f5f3ff;
}

.lead-rule-pill.red {
  color: #be123c;
  background: #fff1f2;
}

.lead-profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
}

.lead-profile-detail-grid div {
  min-height: 72px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid #e7edf8;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.lead-profile-detail-grid dt {
  color: #718098;
  font-size: 13px;
  font-weight: 400;
}

.lead-profile-detail-grid dd {
  margin: 0;
  color: var(--lr-heading);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lead-profile-prototype {
  --lead-prototype-bg: #f5f7fb;
  --lead-prototype-panel: #ffffff;
  --lead-prototype-panel-soft: #f8fafc;
  --lead-prototype-text: #111827;
  --lead-prototype-muted: #6b7280;
  --lead-prototype-line: #e5e7eb;
  --lead-prototype-primary: #2563eb;
  --lead-prototype-primary-soft: #eff6ff;
  --lead-prototype-success: #16a34a;
  --lead-prototype-success-soft: #ecfdf5;
  --lead-prototype-warning: #d97706;
  --lead-prototype-warning-soft: #fffbeb;
  --lead-prototype-purple: #7c3aed;
  --lead-prototype-purple-soft: #f5f3ff;
  --lead-prototype-radius-control: var(--lr-radius-control);
  --lead-prototype-radius-panel: var(--lr-radius-panel);
  --lead-prototype-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  min-height: calc(100vh - 72px);
  background: transparent;
  color: var(--lead-prototype-text);
}

.lead-prototype-link-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--lead-prototype-radius-control);
  padding: 0 16px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.lead-prototype-link-btn {
  background: var(--lead-prototype-primary);
  color: #fff;
}

.lead-prototype-link-btn {
  width: 100%;
  margin-top: 10px;
}

.lead-prototype-layout {
  width: 100%;
  margin: 0;
  padding: 16px 16px 48px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
  gap: 16px;
}

.lead-prototype-main {
  min-width: 0;
}

.lead-prototype-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-prototype-panel {
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: var(--lead-prototype-panel);
  box-shadow: var(--lead-prototype-shadow);
}

.lead-prototype-pad {
  padding: 22px;
}

.lead-prototype-hero {
  overflow: hidden;
  padding: 26px;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .12), transparent 28%),
    radial-gradient(circle at 95% 14%, rgba(124, 58, 237, .12), transparent 30%),
    #fff;
}

.lead-prototype-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lead-prototype-company-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lead-prototype-company-title h2 {
  margin: 0;
  color: var(--lead-prototype-text);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.lead-prototype-subline {
  margin: 8px 0 0;
  color: var(--lead-prototype-muted);
  font-size: 14px;
}

.lead-prototype-badge-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-prototype-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.lead-prototype-badge.success {
  color: #15803d;
  background: var(--lead-prototype-success-soft);
  border-color: #bbf7d0;
}

.lead-prototype-badge.primary {
  color: #1d4ed8;
  background: var(--lead-prototype-primary-soft);
  border-color: #bfdbfe;
}

.lead-prototype-badge.warning {
  color: #b45309;
  background: var(--lead-prototype-warning-soft);
  border-color: #fde68a;
}

.lead-prototype-badge.purple {
  color: #6d28d9;
  background: var(--lead-prototype-purple-soft);
  border-color: #ddd6fe;
}

.lead-prototype-score-card {
  min-width: 172px;
  border-radius: var(--lead-prototype-radius-panel);
  background: #0f172a;
  color: #fff;
  padding: 18px;
  text-align: center;
  box-shadow: 0 18px 32px rgba(15, 23, 42, .22);
}

.lead-prototype-score-label {
  margin-bottom: 6px;
  color: #cbd5e1;
  font-size: 12px;
}

.lead-prototype-score {
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
}

.lead-prototype-score-desc {
  margin-top: 8px;
  color: #e2e8f0;
  font-size: 13px;
}

.lead-prototype-metric-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.lead-prototype-metric {
  min-width: 0;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: rgba(248, 250, 252, .88);
  padding: 14px;
}

.lead-prototype-num {
  margin-bottom: 4px;
  color: var(--lead-prototype-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.lead-prototype-txt {
  color: var(--lead-prototype-muted);
  font-size: 12px;
}

.lead-prototype-section-title {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-prototype-section-title h3 {
  margin: 0;
  color: var(--lead-prototype-text);
  font-size: 17px;
  font-weight: 600;
}

.lead-prototype-section-title span {
  color: var(--lead-prototype-muted);
  font-size: 12px;
}

.lead-prototype-two-col {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.lead-prototype-ai-box {
  border: 1px solid #dbeafe;
  border-radius: var(--lead-prototype-radius-panel);
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  padding: 20px;
}

.lead-prototype-ai-summary {
  margin: 0 0 16px;
  color: var(--lead-prototype-text);
  font-size: 15px;
}

.lead-prototype-suggestion-list {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lead-prototype-suggestion {
  border: 1px solid rgba(191, 219, 254, .8);
  border-radius: var(--lead-prototype-radius-panel);
  background: rgba(255, 255, 255, .7);
  padding: 12px;
  color: var(--lead-prototype-text);
  font-size: 13px;
}

.lead-prototype-suggestion strong,
.lead-prototype-script-box strong {
  font-weight: 600;
}

.lead-prototype-script-box {
  margin-top: 14px;
  border: 1px solid #dbeafe;
  border-radius: var(--lead-prototype-radius-panel);
  background: #fff;
  padding: 14px;
}

.lead-prototype-script-box p {
  margin: 0;
  color: var(--lead-prototype-text);
  font-size: 14px;
}

.lead-prototype-action-box {
  display: grid;
  gap: 12px;
}

.lead-prototype-action-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: #fff;
  padding: 14px;
}

.lead-prototype-step {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lead-prototype-primary-soft);
  color: var(--lead-prototype-primary);
  font-size: 12px;
  font-weight: 600;
}

.lead-prototype-action-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--lead-prototype-text);
  font-size: 14px;
  font-weight: 600;
}

.lead-prototype-action-item p {
  margin: 0;
  color: var(--lead-prototype-muted);
  font-size: 13px;
}

.lead-prototype-card-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lead-prototype-info-card {
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: var(--lead-prototype-panel);
  padding: 18px;
}

.lead-prototype-info-card h4 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--lead-prototype-text);
  font-size: 15px;
  font-weight: 600;
}

.lead-prototype-mini-tag {
  border-radius: 999px;
  background: #f3f4f6;
  padding: 4px 8px;
  color: var(--lead-prototype-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.lead-prototype-field-list {
  display: grid;
  gap: 10px;
}

.lead-prototype-field {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  color: var(--lead-prototype-text);
  font-size: 13px;
}

.lead-prototype-k {
  color: var(--lead-prototype-muted);
}

.lead-prototype-v {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lead-prototype-source {
  display: inline-flex;
  margin-left: 4px;
  border-radius: var(--lead-prototype-radius-control);
  background: #eef2ff;
  padding: 2px 6px;
  color: #4338ca;
  font-size: 11px;
  font-weight: 600;
}

.lead-prototype-tabs-panel {
  margin-top: 18px;
  overflow: hidden;
}

.lead-prototype-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--lead-prototype-line);
  background: #fff;
  padding: 14px 14px 0;
}

.lead-prototype-tab-btn {
  border: 0;
  border-radius: var(--lead-prototype-radius-control) var(--lead-prototype-radius-control) 0 0;
  background: transparent;
  padding: 12px 14px;
  color: var(--lead-prototype-muted);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.lead-prototype-tab-btn.active {
  background: var(--lead-prototype-primary-soft);
  color: var(--lead-prototype-primary);
}

.lead-prototype-tab-content {
  display: none;
  background: #fff;
  padding: 20px;
}

.lead-prototype-tab-content.active {
  display: block;
}

.lead-prototype-evidence-note {
  margin: 0 0 14px;
  color: var(--lead-prototype-muted);
  font-size: 13px;
}

.lead-prototype-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
}

.lead-prototype-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border-collapse: collapse;
  color: var(--lead-prototype-text);
  font-size: 13px;
}

.lead-prototype-table th,
.lead-prototype-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--lead-prototype-line);
  text-align: left;
  vertical-align: top;
}

.lead-prototype-table th {
  background: #f8fafc;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}

.lead-prototype-table tr:last-child td {
  border-bottom: 0;
}

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

.lead-prototype-raw-card {
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: #f8fafc;
  padding: 14px;
}

.lead-prototype-raw-card h4 {
  margin: 0 0 10px;
  color: var(--lead-prototype-text);
  font-size: 14px;
  font-weight: 600;
}

.lead-prototype-raw-card pre {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  color: #334155;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.lead-prototype-footer-note {
  margin-top: 18px;
  color: var(--lead-prototype-muted);
  font-size: 12px;
  text-align: center;
}

.lead-prototype-progress-list,
.lead-prototype-rank-list,
.lead-prototype-todo-list,
.lead-prototype-source-confidence {
  display: grid;
  gap: 13px;
}

.lead-prototype-progress-row {
  display: grid;
  gap: 6px;
}

.lead-prototype-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--lead-prototype-text);
  font-size: 13px;
}

.lead-prototype-progress-head strong {
  font-weight: 600;
}

.lead-prototype-bar,
.lead-prototype-source-confidence b {
  height: 9px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Person lookup is isolated from public-company search because it handles internal sensitive data. */
.lead-person-workspace {
  width: 100%;
  min-height: calc(100vh - var(--lr-header-height));
  padding: 16px 16px 48px;
  color: #17223b;
  background: #ebf0fa;
}

.lead-person-search-hero,
.lead-person-profile-hero,
.lead-person-results-panel,
.lead-person-cases-panel,
.lead-person-info-card {
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(37, 61, 104, .06);
}

.lead-person-search-hero {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: 40px;
  padding: 32px 36px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.lead-person-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #3157ff;
  font-size: 13px;
  font-weight: 600;
}

.lead-person-search-hero h1,
.lead-person-profile-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
}

.lead-person-search-hero p,
.lead-person-profile-title p,
.lead-person-info-card p {
  margin: 8px 0 0;
  color: #667085;
  line-height: 1.7;
}

.lead-person-search-form {
  display: grid;
  gap: 8px;
}

.lead-person-search-form label {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.lead-person-search-form > div {
  height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.lead-person-search-form input {
  min-width: 0;
  border: 1px solid #cfd9ea;
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: #17223b;
  font-size: 15px;
  outline: none;
}

.lead-person-search-form input:focus {
  border-color: #3157ff;
  box-shadow: 0 0 0 3px rgba(49, 87, 255, .12);
}

.lead-person-search-form .btn {
  border-radius: 8px;
}

.lead-person-search-form small,
.lead-person-section-head span,
.lead-person-result-main small,
.lead-person-result-stats small,
.lead-person-card-note {
  color: #98a2b3;
  font-size: 12px;
}

.lead-person-alert {
  margin-top: 14px;
  border: 1px solid #fecdca;
  border-radius: 8px;
  padding: 12px 16px;
  background: #fef3f2;
  color: #b42318;
}

.lead-person-results-panel,
.lead-person-cases-panel {
  margin-top: 16px;
  padding: 22px 24px;
}

.lead-person-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lead-person-section-head > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.lead-person-section-head h2,
.lead-person-info-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.lead-person-scope-badge,
.lead-person-source-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #edf3ff;
  color: #3157ff !important;
  font-size: 12px;
}

.lead-person-result-list {
  display: grid;
  gap: 12px;
}

.lead-person-result-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 132px 92px;
  align-items: center;
  gap: 16px;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
  color: #17223b;
  text-decoration: none;
}

.lead-person-result-card:hover {
  border-color: #a9c0ff;
  box-shadow: 0 8px 22px rgba(49, 87, 255, .08);
}

.lead-person-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #3157ff;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.lead-person-avatar.large {
  width: 70px;
  height: 70px;
  font-size: 25px;
}

.lead-person-result-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.lead-person-result-main strong {
  font-size: 16px;
  font-weight: 600;
}

.lead-person-mask-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-person-mask-row b {
  border-radius: 5px;
  padding: 3px 8px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  font-weight: 500;
}

.lead-person-result-stats {
  display: grid;
  gap: 2px;
  text-align: right;
}

.lead-person-result-stats b {
  color: #3157ff;
  font-size: 22px;
}

.lead-person-open {
  border-radius: 8px;
  padding: 9px 12px;
  background: #3157ff;
  color: #fff;
  text-align: center;
  font-size: 13px;
}

.lead-person-boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lead-person-boundary-grid > div {
  display: grid;
  gap: 6px;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  padding: 18px;
  background: #f8faff;
}

.lead-person-boundary-grid span {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.lead-person-back {
  display: inline-block;
  margin-bottom: 10px;
  color: #3157ff;
  font-size: 13px;
  text-decoration: none;
}

.lead-person-profile-hero {
  padding: 28px;
}

.lead-person-profile-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lead-person-profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.lead-person-profile-summary > div {
  display: grid;
  gap: 4px;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  padding: 15px 16px;
  background: #f8faff;
}

.lead-person-profile-summary strong {
  font-size: 22px;
}

.lead-person-profile-summary span {
  color: #667085;
  font-size: 12px;
}

.lead-person-compliance-note {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  border-left: 4px solid #3157ff;
  padding: 12px 14px;
  background: #edf3ff;
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
}

.lead-person-compliance-note strong {
  flex: 0 0 auto;
  color: #17223b;
}

.lead-person-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.lead-person-info-card {
  min-width: 0;
  min-height: 210px;
  padding: 20px;
}

.lead-person-detail-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.lead-person-detail-list > a,
.lead-person-detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf1f6;
  padding: 10px 0;
  color: #475467;
  text-decoration: none;
}

.lead-person-detail-list > a:last-child,
.lead-person-detail-list > div:last-child {
  border-bottom: 0;
}

.lead-person-detail-list b {
  color: #17223b;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.lead-person-detail-list.compact span {
  color: #667085;
  font-size: 13px;
}

.lead-person-metric-value {
  margin-top: 26px;
  color: #3157ff;
  font-size: 34px;
  font-weight: 600;
}

.lead-person-metric-value.small {
  font-size: 24px;
}

.lead-person-source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.lead-person-empty-inline {
  margin-top: 18px;
  border-radius: 8px;
  padding: 16px;
  background: #f8faff;
  color: #98a2b3;
  font-size: 13px;
}

.lead-person-case-table-wrap {
  overflow-x: auto;
}

.lead-person-case-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lead-person-case-table th,
.lead-person-case-table td {
  border-bottom: 1px solid #edf1f6;
  padding: 12px 10px;
  color: #475467;
  text-align: left;
  white-space: nowrap;
}

.lead-person-case-table th {
  background: #f8faff;
  color: #667085;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .lead-person-search-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

@media (max-width: 780px) {
  .lead-person-workspace {
    padding: 12px 12px 36px;
  }

  .lead-person-search-hero,
  .lead-person-profile-hero,
  .lead-person-results-panel,
  .lead-person-cases-panel {
    padding: 18px;
  }

  .lead-person-search-form > div,
  .lead-person-result-card,
  .lead-person-boundary-grid,
  .lead-person-profile-summary,
  .lead-person-card-grid {
    grid-template-columns: 1fr;
  }

  .lead-person-search-form > div {
    height: auto;
  }

  .lead-person-search-form input,
  .lead-person-search-form .btn {
    height: 48px;
  }

  .lead-person-result-card {
    justify-items: start;
  }

  .lead-person-result-stats {
    text-align: left;
  }

  .lead-person-open {
    width: 100%;
  }

  .lead-person-profile-title,
  .lead-person-compliance-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

.lead-prototype-bar span,
.lead-prototype-source-confidence i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.lead-prototype-source-confidence i.lead-prototype-bar-warning {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.lead-prototype-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: var(--lead-prototype-panel-soft);
  padding: 12px;
}

.lead-prototype-rank-item div:first-child {
  min-width: 0;
}

.lead-prototype-rank-item strong {
  display: block;
  color: var(--lead-prototype-text);
  font-size: 13px;
  font-weight: 600;
}

.lead-prototype-rank-item span:not(.lead-prototype-badge) {
  color: var(--lead-prototype-muted);
  font-size: 12px;
}

.lead-prototype-source-confidence > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: #fff;
  padding: 12px;
}

.lead-prototype-source-confidence strong {
  color: var(--lead-prototype-text);
  font-size: 14px;
  font-weight: 600;
}

.lead-prototype-source-confidence b {
  grid-column: 1 / -1;
}

.lead-prototype-todo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: #fff;
  padding: 12px;
}

.lead-prototype-todo input {
  margin-top: 4px;
  accent-color: var(--lead-prototype-primary);
}

.lead-prototype-todo strong {
  display: block;
  margin-bottom: 2px;
  color: var(--lead-prototype-text);
  font-size: 13px;
  font-weight: 600;
}

.lead-prototype-todo span {
  color: var(--lead-prototype-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .lead-prototype-layout {
    grid-template-columns: 1fr;
  }

  .lead-prototype-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .lead-prototype-layout {
    padding: 16px 16px 36px;
  }

  .lead-prototype-hero-head,
  .lead-prototype-two-col {
    grid-template-columns: 1fr;
    display: grid;
  }

  .lead-prototype-score-card {
    text-align: left;
  }

  .lead-prototype-metric-grid,
  .lead-prototype-card-grid,
  .lead-prototype-suggestion-list,
  .lead-prototype-raw-grid,
  .lead-prototype-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .lead-prototype-layout {
    padding: 12px 12px 28px;
  }

  .lead-prototype-company-title h2 {
    font-size: 22px;
  }

  .lead-prototype-field {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.lead-evidence-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.lead-evidence-item {
  display: grid;
  gap: 6px;
  border: 1px solid #e7edf8;
  border-radius: var(--lr-radius-panel);
  padding: 14px;
  background: #fbfcff;
}

.lead-evidence-item span {
  color: var(--lr-blue);
  font-size: 13px;
  font-weight: 400;
}

.lead-evidence-item strong {
  color: var(--lr-heading);
  font-weight: 500;
}

.lead-evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .9fr);
  gap: 16px;
  align-items: stretch;
}

.lead-evidence-chain-list {
  display: grid;
  gap: 14px;
}

.lead-evidence-chain-item {
  display: grid;
  gap: 10px;
  border: 1px solid #e5eaf4;
  border-radius: var(--lr-radius-panel);
  padding: 18px;
  background: #fff;
}

.lead-evidence-chain-title,
.lead-evidence-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-evidence-chain-title strong {
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.lead-evidence-chain-item p,
.lead-prototype-note {
  margin: 0;
  color: #667287;
  line-height: 1.6;
}

.lead-evidence-meta span {
  color: #7a869a;
  font-size: 13px;
}

.lead-relation-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.lead-relation-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #e0e7f3;
  border-radius: var(--lr-radius-panel);
  background:
    radial-gradient(circle at 72% 26%, rgba(34, 197, 94, .09), transparent 34%),
    radial-gradient(circle at 28% 22%, rgba(59, 130, 246, .08), transparent 34%),
    #fff;
}

.lead-relation-center {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 2;
  transform: translate(-50%, -50%);
  max-width: 210px;
  min-width: 152px;
  min-height: 80px;
  display: grid;
  place-items: center;
  border-radius: var(--lr-radius-panel);
  padding: 16px 22px;
  color: #fff;
  background: #2554e0;
  box-shadow: 0 18px 34px rgba(37, 84, 224, .24);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.lead-relation-lines span {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 35%;
  height: 3px;
  border-radius: 999px;
  background: #cdd8ff;
  transform-origin: left center;
}

.lead-relation-lines .line-0 { transform: rotate(-34deg); }
.lead-relation-lines .line-1 { transform: rotate(-164deg); }
.lead-relation-lines .line-2 { transform: rotate(22deg); }
.lead-relation-lines .line-3 { transform: rotate(154deg); }
.lead-relation-lines .line-4 { transform: rotate(74deg); }
.lead-relation-lines .line-5 { transform: rotate(-88deg); }

.lead-relation-node {
  position: absolute;
  z-index: 3;
  min-width: 128px;
  max-width: 180px;
  min-height: 56px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid #d7e7ff;
  border-radius: var(--lr-radius-control);
  padding: 10px 16px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 14px 30px rgba(20, 38, 82, .08);
  text-align: center;
}

.lead-relation-node strong {
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.lead-relation-node span {
  color: #667287;
  font-size: 12px;
  font-weight: 400;
}

.lead-relation-node.pos-0 { top: 46px; right: 90px; }
.lead-relation-node.pos-1 { top: 98px; left: 40px; }
.lead-relation-node.pos-2 { top: 142px; right: 36px; }
.lead-relation-node.pos-3 { bottom: 86px; left: 42px; }
.lead-relation-node.pos-4 { bottom: 88px; right: 42px; }
.lead-relation-node.pos-5 { bottom: 28px; left: 50%; transform: translateX(-50%); }

.lead-prototype-note {
  color: #6b778d;
  font-size: 15px;
}

.lead-source-detail summary {
  color: var(--lr-blue);
  cursor: pointer;
  font-weight: 400;
}

.lead-source-detail dl {
  display: grid;
  grid-template-columns: minmax(100px, .35fr) minmax(160px, 1fr);
  gap: 6px 10px;
  max-width: 520px;
  margin: 10px 0 0;
  padding: 10px;
  border-radius: var(--lr-radius-panel);
  background: #f7f9fe;
}

.lead-source-detail dt {
  color: #5a6579;
  font-weight: 400;
}

.lead-source-detail dd {
  margin: 0;
  color: #26344c;
  overflow-wrap: anywhere;
}

.lead-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lead-rule-grid section {
  min-height: 156px;
  border: 1px solid #e7edf8;
  border-radius: var(--lr-radius-panel);
  background: #fbfcff;
  padding: 18px;
}

.lead-rules-sources {
  margin-top: 18px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #edf2f7;
}

.login-panel {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--lr-border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .10);
}

.login-brand {
  margin-bottom: 22px;
}

.login-brand h1 {
  font-size: 19px;
  margin: 0;
}

.login-brand p {
  color: var(--lr-muted);
  margin: 4px 0 0;
}

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

.assignment-participant-preview {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e8edf6;
  border-radius: 6px;
  background: #f8fbff;
  color: #67738a;
  font-size: 13px;
}

.assignment-participant-preview.is-warning {
  border-color: #ffd6c7;
  background: #fff7f3;
  color: #b5532d;
}

.assignment-participant-chips,
.assignment-run-center-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assignment-participant-chips em,
.assignment-run-center-chips em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  background: #eef3ff;
  color: #2f55ee;
  font-style: normal;
  font-weight: 600;
}

.assignment-run-center-chips em.is-empty {
  background: #fff0ec;
  color: #bf4b31;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .lead-profile-grid {
    grid-template-columns: 1fr;
  }

  .upload-home-layout {
    grid-template-columns: minmax(0, 1094fr) minmax(280px, 460fr);
  }

  .upload-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .upload-home-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .upload-stage {
    min-height: 620px;
    padding-top: 96px;
  }

  .upload-record-aside {
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    --lr-header-height: 56px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--lr-header-height) auto;
  }

  .app-topbar {
    grid-column: 1;
  }

  .sidebar-region {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: 0;
    height: 0;
    border: 0;
    overflow: visible;
  }

  .lr-ant-desktop-sider,
  .shell-sidebar-fallback {
    display: none;
  }

  .app-shell:has(.sidebar-region:not([data-react-mounted])) {
    grid-template-rows: var(--lr-header-height) auto minmax(0, 1fr);
  }

  .sidebar-region:not([data-react-mounted]) {
    width: auto;
    height: auto;
    border-bottom: 1px solid #edf0f5;
  }

  .sidebar-region:not([data-react-mounted]) .shell-sidebar-fallback {
    display: block;
    padding-block: 8px;
  }

  .app-shell:has(.sidebar-region:not([data-react-mounted])) .content {
    grid-row: 3;
  }

  .content {
    grid-column: 1;
    grid-row: 2;
    min-height: calc(100vh - var(--lr-header-height) - 24px);
    margin: 12px;
  }

  .lr-ant-mobile-nav-trigger {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    margin-left: 8px;
    padding: 0;
  }

  .lr-ant-mobile-nav-trigger > span,
  .lr-ant-mobile-nav-trigger::before,
  .lr-ant-mobile-nav-trigger::after {
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: #333;
    content: "";
  }

  .lr-ant-mobile-nav-trigger::before,
  .lr-ant-mobile-nav-trigger::after {
    position: absolute;
    left: 11px;
  }

  .lr-ant-mobile-nav-trigger::before {
    top: 13px;
  }

  .lr-ant-mobile-nav-trigger::after {
    bottom: 13px;
  }

  .lr-ant-topbar-brand,
  .app-shell.sidebar-collapsed .lr-ant-topbar-brand {
    width: auto;
    flex-basis: auto;
    border-right: 0;
    padding: 0 10px 0 4px;
  }

  .app-shell.sidebar-collapsed .lr-ant-topbar-brand strong {
    display: block;
  }

  .lr-ant-topbar-brand img {
    width: 24px;
    height: 34px;
    flex-basis: 24px;
  }

  .lr-ant-topbar-brand strong {
    font-size: 16px;
  }

  .lr-ant-topbar-menu.ant-menu-horizontal {
    padding: 0;
    overflow: hidden;
  }

  .lr-ant-topbar-menu.ant-menu-horizontal > .ant-menu-item {
    min-width: 58px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .topbar-profile-button {
    margin-right: 10px;
  }

  img.topbar-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    max-width: 34px;
    min-height: 34px;
    max-height: 34px;
  }

  .lr-ant-mobile-nav-drawer .ant-drawer-header {
    min-height: 56px;
    padding: 0 16px;
  }

  .lr-ant-mobile-nav-drawer .ant-drawer-body {
    padding: 10px 12px 16px;
  }
}

@media (max-width: 780px) {
  .ledger-toolbar,
  .ledger-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .content {
    padding: 18px;
  }

  .upload-stage {
    min-height: auto;
    padding: 48px 16px 32px;
  }

  .upload-copy h2 {
    font-size: 30px;
  }

  .upload-copy span {
    font-size: 16px;
  }

  .import-upload-island {
    margin-top: 28px;
  }

  .lr-ant-import-upload .ant-upload-wrapper .ant-upload-drag,
  .lr-ant-import-upload .ant-upload-drag-container {
    height: 170px;
    min-height: 170px;
  }

  .lr-ant-upload-files {
    gap: 8px 16px;
    padding: 0;
  }

  .upload-dropzone {
    min-height: 170px;
  }

  .upload-actions {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .lead-search-tabs,
  .lead-search-tabs a {
    width: 100%;
  }

  .metric-grid,
  .layout-grid,
  .lead-stat-grid,
  .lead-evidence-layout,
  .lead-search-form,
  .lead-filter-bar,
  .lead-fact-grid,
  .lead-rule-grid,
  .user-management-page,
  .assignment-members-grid,
  .assignment-members-layout,
  .assignment-case-tool-grid,
  .assignment-summary-grid,
  .department-layout,
  .department-filter,
  .lead-profile-grid,
  .lead-profile-module-grid {
    grid-template-columns: 1fr;
  }

  .department-layout {
    height: auto;
    max-height: none;
  }

  .lead-profile-hero,
  .lead-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .department-toolbar {
    flex-direction: column;
    justify-content: flex-start;
  }

  .department-toolbar > div:first-child {
    width: 100%;
    flex: 0 1 auto;
  }

  .department-toolbar .table-actions {
    width: 100%;
    max-width: none;
    flex-basis: auto;
    justify-content: flex-start;
  }

  .department-tree-panel {
    height: auto;
    max-height: none;
  }

  .department-tree {
    max-height: 420px;
  }

  .staff-roster-sync-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-roster-sync-totals > div:nth-child(3n) {
    border-right: 0;
  }

  .staff-roster-sync-totals > div:nth-child(-n + 3) {
    border-bottom: 1px solid #edf0f5;
  }

  .staff-unit-cascade-popover {
    position: static;
    margin-top: 6px;
  }

  .department-cascade-picker,
  .assignment-team-cascade {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .staff-unit-cascade-picker {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .lr-drawer {
    width: min(750px, 100vw);
  }

  .import-day-header {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 16px;
  }

  .issue-detail-item {
    grid-template-columns: 1fr;
  }
}

/* Eagle Eye enterprise search workspace. */
.eagle-eye-workspace,
.eagle-eye-island,
.eagle-eye-island > .ant-app {
  width: 100%;
  min-height: calc(100vh - var(--lr-header-height));
}

.eagle-eye-workspace {
  --eagle-blue: #2455d9;
  --eagle-blue-bright: #2878f6;
  --eagle-orange: #ff7a45;
  --eagle-ink: #17223b;
  --eagle-muted: #667085;
  --eagle-line: #e3e9f3;
  --eagle-soft: #f4f7fc;
  --eagle-radius-control: var(--lr-radius-control);
  --eagle-radius-panel: var(--lr-radius-panel);
  overflow: hidden;
  background: var(--eagle-soft);
}

.eagle-eye-workspace-results,
.eagle-eye-workspace-detail,
.eagle-eye-workspace-results .eagle-eye-island,
.eagle-eye-workspace-detail .eagle-eye-island,
.eagle-eye-workspace-results .eagle-eye-island > .ant-app,
.eagle-eye-workspace-detail .eagle-eye-island > .ant-app {
  min-height: 0;
  background: #EBF0FA;
}

.eagle-eye-workspace-results,
.eagle-eye-workspace-detail {
  overflow: visible;
}

.eagle-eye-workspace-results .eagle-page,
.eagle-eye-workspace-detail .eagle-page {
  min-height: 0;
  background: #EBF0FA;
}

.eagle-page {
  min-height: calc(100vh - var(--lr-header-height));
  color: var(--eagle-ink);
  background: var(--eagle-soft);
}

.eagle-page button,
.eagle-page input {
  letter-spacing: 0;
}

.eagle-hero {
  position: relative;
  min-height: 350px;
  overflow: visible;
  border-radius: var(--eagle-radius-panel) var(--eagle-radius-panel) 0 0;
  background: linear-gradient(125deg, #173f9c 0%, var(--eagle-blue) 48%, var(--eagle-blue-bright) 100%);
  color: #fff;
}

.eagle-hero::after {
  position: absolute;
  top: -190px;
  right: -110px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  content: "";
}

.eagle-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.eagle-hero-inner {
  position: relative;
  z-index: 10;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 52px;
}

.eagle-product-tabs.ant-tabs {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .76);
}

.eagle-product-tabs .ant-tabs-nav {
  margin: 0;
}

.eagle-product-tabs .ant-tabs-nav::before {
  border: 0;
}

.eagle-product-tabs .ant-tabs-tab,
.eagle-product-tabs .ant-tabs-tab-btn {
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
}

.eagle-product-tabs .ant-tabs-tab:hover,
.eagle-product-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #fff !important;
}

.eagle-product-tabs .ant-tabs-ink-bar {
  height: 3px !important;
  background: #fff;
}

.eagle-hero-copy {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.eagle-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
}

.eagle-search-control {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
}

.eagle-search-box {
  height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--eagle-radius-control);
  padding: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(5, 34, 92, .22);
}

.eagle-search-box .ant-input-affix-wrapper {
  min-width: 0;
  border: 0;
  border-radius: var(--eagle-radius-control);
  box-shadow: none !important;
  padding-inline: 16px;
  font-size: 16px;
}

.eagle-search-box .ant-btn {
  height: 52px;
  border-color: var(--eagle-orange);
  border-radius: var(--eagle-radius-control);
  background: var(--eagle-orange);
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}

.eagle-search-box .ant-btn:hover,
.eagle-search-box .ant-btn:focus-visible {
  border-color: #ff6329 !important;
  background: #ff6329 !important;
}

.eagle-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 160px;
  z-index: 40;
  max-height: min(440px, 52vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce5f2;
  border-radius: var(--eagle-radius-control);
  background: #fff;
  box-shadow: 0 20px 46px rgba(17, 42, 84, .2);
}

.eagle-autocomplete > button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
  padding: 10px 14px;
  text-align: left;
}

.eagle-autocomplete > button:last-child {
  border-bottom: 0;
}

.eagle-autocomplete > button:hover,
.eagle-autocomplete > button.active {
  background: #f3f7ff;
}

.eagle-suggestion-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf3ff;
  color: #3157ff;
  font-size: 17px;
}

.eagle-suggestion-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.eagle-suggestion-copy strong {
  overflow: hidden;
  color: var(--eagle-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eagle-suggestion-copy small {
  color: var(--eagle-muted);
}

.eagle-hot-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: #d9e7ff;
  font-size: 13px;
}

.eagle-hot-label {
  border-radius: 4px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 400;
}

.eagle-hot-row button {
  border: 0;
  background: transparent;
  color: #d9e7ff;
  padding: 2px 0;
}

.eagle-hot-row button:hover {
  color: #fff;
}

.eagle-home-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.eagle-detail-page {
  width: 100%;
  margin: 0 auto;
}

.eagle-results-content,
.eagle-results-hero-inner {
  width: calc(100% - 32px);
  margin: 0 auto;
}

.eagle-home-content {
  position: relative;
  z-index: 5;
  margin-top: -36px;
  padding-bottom: 40px;
}

.eagle-home-content > .ant-alert {
  margin-bottom: 14px;
}

.eagle-popular-apps {
  margin-bottom: 16px;
}

.eagle-popular-apps .ant-pro-card-header {
  padding: 22px 24px 10px;
}

.eagle-popular-apps .ant-pro-card-title {
  font-size: 20px;
  font-weight: 600;
}

.eagle-popular-apps .ant-pro-card-body {
  padding: 14px 24px 24px;
}

.eagle-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 20px;
}

.eagle-popular-grid button {
  min-width: 0;
  min-height: 90px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: var(--eagle-radius-panel);
  background: transparent;
  padding: 12px;
  color: var(--eagle-ink);
  text-align: left;
}

.eagle-popular-grid button:hover,
.eagle-popular-grid button:focus-visible {
  background: #f5f8ff;
  outline: 0;
}

.eagle-popular-grid button > span:first-child {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--eagle-radius-control);
  background: #edf3ff;
  color: #3157ff;
  font-size: 21px;
}

.eagle-popular-grid button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.eagle-popular-grid strong {
  font-size: 16px;
  font-weight: 600;
}

.eagle-popular-grid small {
  color: var(--eagle-muted);
  font-size: 13px;
  line-height: 1.5;
}

.eagle-related-panel.ant-pro-card,
.eagle-empty-card.ant-pro-card,
.eagle-people-panel.ant-pro-card,
.eagle-results-content .ant-pro-card,
.eagle-detail-page .ant-pro-card {
  border: 1px solid var(--eagle-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(37, 61, 104, .06);
}

.eagle-related-panel .ant-pro-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.eagle-related-panel .ant-pro-card-title small {
  color: #ef476f;
  font-size: 18px;
}

.eagle-related-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr);
  gap: 18px;
}

.eagle-best-match {
  width: 100%;
  min-height: 130px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #b9d0ff;
  border-radius: 8px;
  background: #fbfdff;
  padding: 20px;
  color: var(--eagle-ink);
  text-align: left;
}

.eagle-best-match:hover {
  border-color: #5e89ff;
  box-shadow: 0 10px 24px rgba(49, 87, 255, .09);
}

.eagle-best-match > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 8px;
}

.eagle-best-match strong {
  font-size: 18px;
}

.eagle-best-match small {
  color: var(--eagle-muted);
  line-height: 1.7;
}

.eagle-company-avatar,
.eagle-detail-logo {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ff914d;
  color: #fff;
  font-weight: 600;
}

.eagle-company-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  align-self: start;
  font-size: 15px;
}

.eagle-related-companies h3,
.eagle-related-layout aside h3 {
  margin: 22px 0 12px;
  color: var(--eagle-ink);
  font-size: 15px;
  font-weight: 600;
}

.eagle-related-companies > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.eagle-related-companies button {
  min-height: 96px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--eagle-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  color: var(--eagle-ink);
  text-align: left;
}

.eagle-related-companies button:hover {
  border-color: #9bb7ff;
  background: #fbfdff;
}

.eagle-related-companies span {
  color: var(--eagle-muted);
  font-size: 12px;
}

.eagle-related-layout aside {
  display: grid;
  align-content: start;
  gap: 14px;
}

.eagle-related-layout aside section {
  border: 1px solid var(--eagle-line);
  border-radius: 8px;
  padding: 4px 16px 16px;
  background: #fff;
}

.eagle-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eagle-keyword-list .ant-tag {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  padding: 5px 10px;
  text-overflow: ellipsis;
}

.eagle-source-hit-list {
  display: grid;
  gap: 8px;
}

.eagle-source-hit-list > div {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 12px;
  background: var(--eagle-soft);
}

.eagle-source-hit-list span {
  color: var(--eagle-muted);
  font-size: 12px;
}

.eagle-empty-card {
  min-height: 260px;
  display: grid;
  place-items: center;
}

.eagle-people-grid {
  display: grid;
  gap: 10px;
}

.eagle-people-grid > button {
  min-height: 82px;
  display: grid;
  grid-template-columns: 44px 180px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--eagle-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 16px;
  color: var(--eagle-ink);
  text-align: left;
}

.eagle-people-grid > button:hover {
  border-color: #99b5ff;
  background: #fbfdff;
}

.eagle-person-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf3ff;
  color: #3157ff;
}

.eagle-people-grid > button > span:not(.eagle-person-avatar) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.eagle-people-grid small {
  color: var(--eagle-muted);
}

.eagle-compact-header {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(480px, 1.2fr);
  align-items: center;
  gap: 28px;
  padding: 24px max(24px, calc((100% - 1180px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--eagle-line);
}

.eagle-compact-header > div:first-child > span {
  color: var(--eagle-muted);
  font-size: 12px;
}

.eagle-compact-header h1 {
  margin: 6px 0 0;
  color: var(--eagle-ink);
  font-size: 24px;
  font-weight: 600;
}

.eagle-results-page {
  min-height: 0;
  background: #EBF0FA;
}

.eagle-results-hero {
  position: relative;
  width: calc(100% - 32px);
  min-height: 196px;
  margin: 12px auto 0;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(125deg, #173f9c 0%, var(--eagle-blue) 48%, var(--eagle-blue-bright) 100%);
  color: #fff;
}

.eagle-results-hero::after {
  position: absolute;
  top: -230px;
  right: -120px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  content: "";
}

.eagle-results-hero .eagle-hero-grid {
  position: absolute;
  inset: 0;
}

.eagle-results-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px 32px;
}

.eagle-results-breadcrumb {
  display: block;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
}

.eagle-results-title-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 8px 0 12px;
}

.eagle-results-title-row h1 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.12;
}

.eagle-results-title-row p {
  margin: 0 0 4px;
  color: #d7e6ff;
  font-size: 13px;
}

.eagle-results-hero .eagle-search-control.is-compact {
  width: min(760px, 70vw);
  margin: 0;
}

.eagle-results-hero .eagle-search-control.is-compact .eagle-search-box {
  height: 48px;
  grid-template-columns: minmax(0, 1fr) 136px;
  border-color: rgba(255, 255, 255, .58);
  padding: 4px;
  box-shadow: 0 18px 42px rgba(5, 34, 92, .22);
}

.eagle-results-hero .eagle-search-control.is-compact .eagle-search-box .ant-input-affix-wrapper {
  font-size: 15px;
}

.eagle-results-hero .eagle-search-control.is-compact .eagle-search-box .ant-btn {
  height: 40px;
  font-size: 15px;
}

.eagle-results-hero .eagle-search-control.is-compact .eagle-autocomplete {
  right: 146px;
}

.eagle-results-keywords {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-height: 26px;
  margin-top: 10px;
  overflow: hidden;
}

.eagle-results-keywords button {
  flex: 0 0 auto;
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  padding: 3px 10px;
  color: #d7e6ff;
  font-size: 13px;
}

.eagle-results-keywords button:hover,
.eagle-results-keywords button:focus-visible {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  outline: 0;
}

.eagle-search-control.is-compact {
  width: 100%;
}

.eagle-search-control.is-compact .eagle-search-box {
  height: 54px;
  grid-template-columns: minmax(0, 1fr) 112px;
  border-color: #cfd9e8;
  padding: 5px;
  box-shadow: none;
}

.eagle-search-control.is-compact .eagle-search-box .ant-btn {
  height: 42px;
  font-size: 14px;
}

.eagle-search-control.is-compact .eagle-autocomplete {
  right: 122px;
}

.eagle-results-content {
  padding: 20px 0 28px;
}

.eagle-results-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.eagle-filter-sidebar {
  position: sticky;
  top: calc(var(--lr-header-height) + 14px);
}

.eagle-filter-panel {
  overflow: hidden;
  border: 1px solid var(--eagle-line);
  border-radius: var(--eagle-radius-panel);
  background: #fff;
}

.eagle-filter-panel-heading {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--eagle-line);
  padding: 0 18px;
}

.eagle-filter-panel-heading strong {
  color: var(--eagle-ink);
  font-size: 14px;
  font-weight: 600;
}

.eagle-filter-panel-heading button {
  border: 0;
  border-radius: var(--eagle-radius-control);
  background: transparent;
  padding: 6px 0;
  color: #3157ff;
  font-size: 13px;
}

.eagle-filter-panel section {
  padding: 15px 18px;
  border-bottom: 1px solid var(--eagle-line);
}

.eagle-filter-panel section:last-child {
  border-bottom: 0;
}

.eagle-filter-panel h3 {
  margin: 0 0 10px;
  color: var(--eagle-ink);
  font-size: 13px;
  font-weight: 600;
}

.eagle-filter-panel section > div {
  display: grid;
  gap: 8px;
}

.eagle-filter-panel label {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #53627a;
  font-size: 13px;
  cursor: pointer;
}

.eagle-filter-panel label.is-unavailable {
  color: #98a2b3;
}

.eagle-filter-panel label small {
  color: #98a2b3;
  font-size: 12px;
}

.eagle-results-list-column {
  min-width: 0;
  align-self: start;
}

.eagle-detail-page > .ant-pro-card,
.eagle-detail-page > .ant-tabs,
.eagle-detail-page > .eagle-detail-layout {
  width: 100%;
}

.eagle-sort-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--eagle-line);
  border-radius: var(--eagle-radius-panel);
  background: #fff;
  padding: 0 18px;
}

.eagle-sort-bar nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.eagle-sort-bar button {
  border: 0;
  background: transparent;
  padding: 9px 0;
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
}

.eagle-sort-bar button.is-active {
  color: #3157ff;
  font-weight: 600;
}

.eagle-sort-bar button[aria-disabled="true"]:not(.is-active) {
  color: #98a2b3;
}

.eagle-sort-bar > span {
  min-width: 0;
  overflow: hidden;
  color: #98a2b3;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eagle-mobile-filter-button {
  display: none;
  margin-bottom: 12px;
}

.eagle-result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--eagle-ink);
  font-size: 12px;
  line-height: 1.35;
}

.eagle-result-summary strong {
  color: #3157ff;
  font-size: 14px;
}

.eagle-result-summary .ant-alert {
  max-width: 62%;
}

.eagle-company-list,
.eagle-company-list .ant-pro-card,
.eagle-company-list .ant-pro-card-body,
.eagle-company-list .ant-card,
.eagle-company-list .ant-card-body,
.eagle-company-list .ant-list,
.eagle-company-list .ant-list-items,
.eagle-company-list .ant-list-item,
.eagle-company-list .ant-list-item-meta,
.eagle-company-list .ant-list-item-meta-content,
.eagle-company-list .ant-pro-list-row,
.eagle-company-list .ant-pro-list-row:hover,
.eagle-company-list .ant-pro-list-item {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.eagle-company-list .ant-pro-card-body,
.eagle-company-list .ant-card-body,
.eagle-company-list .ant-list-item,
.eagle-company-list .ant-list-item-meta,
.eagle-company-list .ant-list-item-meta-content,
.eagle-company-list .ant-pro-list-row,
.eagle-company-list .ant-pro-list-item {
  padding: 0 !important;
}

.eagle-company-list .ant-list-items {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
}

/* ProList renders the result articles in this container, not ant-list-items. */
.eagle-company-list .ant-spin-container {
  width: 100%;
  display: grid;
  gap: 16px;
}

.eagle-company-list .ant-list-item + .ant-list-item {
  margin-top: 0 !important;
}

.eagle-company-list .ant-list-item-meta-content {
  min-width: 0;
}

.eagle-company-result-card {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 168px;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--eagle-line);
  border-radius: 12px;
  background: #fff;
  padding: 18px 20px;
  color: var(--eagle-ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(31, 55, 96, .04);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.eagle-company-result-card:hover,
.eagle-company-result-card:focus-visible {
  border-color: #8aaaff;
  box-shadow: 0 12px 28px rgba(49, 87, 255, .09);
  outline: 0;
  color: var(--eagle-ink);
}

.eagle-company-result-card:hover .eagle-company-result-title-link,
.eagle-company-result-card:focus-visible .eagle-company-result-title-link {
  color: #1769ff;
}

.eagle-company-result-main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 12px;
}

.eagle-company-result-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.eagle-company-result-title strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.eagle-company-result-title-link {
  min-width: 0;
  color: #17223b;
  text-decoration: none;
}

.eagle-company-name-highlight {
  color: #ff4d6d;
}

.eagle-company-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 22px;
  color: #344054;
  font-size: 13px;
}

.eagle-company-meta-grid > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  overflow-wrap: anywhere;
}

.eagle-company-meta-grid b {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 400;
}

.eagle-company-meta-grid em {
  min-width: 0;
  color: #344054;
  font-style: normal;
}

.eagle-company-description {
  margin: 0;
  color: #53627a;
  font-size: 13px;
  line-height: 1.8;
}

.eagle-signal-row,
.eagle-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eagle-company-result-card .ant-tag {
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 12px;
  line-height: 1.3;
}

.eagle-view-detail-button {
  min-width: 88px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: var(--eagle-radius-control);
  background: #3157ff;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.eagle-view-detail-button,
.eagle-view-detail-button:visited,
.eagle-view-detail-button:hover,
.eagle-view-detail-button:focus,
.eagle-view-detail-button:focus-visible,
.eagle-view-detail-button.ant-btn,
.eagle-view-detail-button.ant-btn-primary,
.eagle-view-detail-button.ant-btn-primary:hover,
.eagle-view-detail-button.ant-btn-primary:focus {
  color: #fff !important;
  background: #3157ff !important;
  border-color: #3157ff !important;
}

.eagle-view-detail-button span {
  color: #fff !important;
}

.eagle-result-card-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.eagle-result-card-actions .ant-btn {
  height: 34px;
  border-radius: var(--eagle-radius-control);
  padding-inline: 12px;
  font-size: 12px;
}

.eagle-follow-button {
  min-width: 60px;
  color: #667085;
}

.eagle-results-list-column > .ant-pagination {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.eagle-confidence {
  width: 88px;
  flex: 0 0 88px;
  display: grid;
  justify-items: end;
  gap: 8px;
  padding-top: 2px;
}

.eagle-company-result-side {
  min-height: 100%;
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: 18px;
}

.eagle-confidence strong {
  color: #3157ff;
  font-size: 24px;
  line-height: 1;
}

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

.eagle-results-content > .ant-pagination {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.eagle-detail-page {
  min-height: 0;
  padding: 10px 16px 0 0;
  background: #EBF0FA;
}

.eagle-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  margin-bottom: 8px;
  padding: 2px 0;
  color: #3157ff;
  font-size: 12px;
}

.eagle-detail-header .ant-pro-card-body {
  padding: 24px;
}

.eagle-detail-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
}

.eagle-detail-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.eagle-detail-company-head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
}

.eagle-detail-logo {
  width: 70px;
  height: 70px;
  background: #3157ff;
  font-size: 20px;
}

.eagle-detail-company-head h1 {
  margin: 0;
  color: var(--eagle-ink);
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
}

.eagle-detail-company-head p {
  margin: 14px 0 8px;
  color: #475467;
  line-height: 1.8;
}

.eagle-detail-company-head small {
  color: #98a2b3;
}

.eagle-detail-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.eagle-detail-quick-grid button {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--eagle-line);
  border-radius: var(--eagle-radius-panel);
  background: #fff;
  padding: 12px 14px;
  color: var(--eagle-ink);
  text-align: left;
}

.eagle-detail-quick-grid button:hover {
  border-color: #9bb7ff;
  background: #fbfdff;
}

.eagle-detail-quick-grid button > span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--eagle-radius-control);
  background: #edf3ff;
  color: #3157ff;
  font-size: 18px;
}

.eagle-detail-quick-grid button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.eagle-detail-quick-grid strong {
  font-weight: 600;
}

.eagle-detail-quick-grid small {
  overflow: hidden;
  color: var(--eagle-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eagle-metric-strip {
  margin-top: 14px;
}

.eagle-metric-strip .ant-pro-card-body {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr repeat(3, 1fr);
  padding: 0;
}

.eagle-metric-group,
.eagle-metric-item {
  min-height: 92px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-right: 1px solid var(--eagle-line);
  text-align: center;
}

.eagle-metric-group {
  grid-template-columns: auto auto;
  align-items: center;
  gap: 16px;
}

.eagle-metric-group > strong {
  font-size: 16px;
  font-weight: 600;
}

.eagle-metric-group > span,
.eagle-metric-item {
  justify-items: center;
}

.eagle-metric-group b,
.eagle-metric-item b {
  color: var(--eagle-ink);
  font-size: 22px;
  font-weight: 600;
}

.eagle-metric-group small,
.eagle-metric-item small {
  color: var(--eagle-muted);
}

.eagle-metric-group.is-risk {
  background: #fff8f8;
  color: #e5484d;
}

.eagle-metric-group.is-sales {
  background: #f3f7ff;
  color: #3157ff;
}

.eagle-metric-item:last-child {
  border-right: 0;
}

.eagle-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
  margin-top: 14px;
}

.eagle-detail-meta span {
  min-width: 0;
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}

.eagle-detail-meta b {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 400;
}

.eagle-summary-card {
  margin-top: 14px;
}

.eagle-summary-card .ant-pro-card-body {
  padding: 0;
}

.eagle-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.eagle-summary-grid > div {
  min-height: 94px;
  display: grid;
  place-content: center;
  gap: 6px;
  border-right: 1px solid var(--eagle-line);
  text-align: center;
}

.eagle-summary-grid > div:last-child {
  border-right: 0;
}

.eagle-summary-grid strong {
  color: #3157ff;
  font-size: 24px;
}

.eagle-summary-grid span {
  color: var(--eagle-muted);
}

.eagle-anchor-tabs {
  position: sticky;
  top: var(--lr-header-height);
  z-index: 20;
  margin-top: 14px;
  border: 1px solid var(--eagle-line);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
}

.eagle-anchor-tabs .ant-tabs-nav {
  margin: 0;
}

.eagle-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.eagle-detail-layout > main,
.eagle-sales-aside {
  display: grid;
  gap: 14px;
}

.eagle-detail-section {
  scroll-margin-top: calc(var(--lr-header-height) + 72px);
}

.eagle-detail-section .ant-pro-card-title,
.eagle-sales-aside .ant-pro-card-title {
  color: var(--eagle-ink);
  font-weight: 600;
}

.eagle-structured-rows {
  display: grid;
  gap: 12px;
}

.eagle-structured-rows > .ant-descriptions {
  border-bottom: 1px solid var(--eagle-line);
  padding-bottom: 12px;
}

.eagle-structured-rows > .ant-descriptions:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.eagle-evidence-list {
  display: grid;
  gap: 8px;
}

.eagle-evidence-list article {
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--eagle-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.eagle-evidence-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf3ff;
  color: #3157ff;
}

.eagle-evidence-list article > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.eagle-evidence-list small {
  overflow: hidden;
  color: var(--eagle-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eagle-evidence-list a {
  color: #3157ff;
  white-space: nowrap;
}

.eagle-sales-aside {
  position: sticky;
  top: calc(var(--lr-header-height) + 68px);
}

.eagle-sales-aside .ant-pro-card-body {
  padding: 18px;
}

.eagle-page-directory .ant-pro-card-body {
  display: grid;
  gap: 4px;
}

.eagle-page-directory button {
  border: 0;
  border-radius: var(--eagle-radius-control);
  background: transparent;
  padding: 9px 10px;
  color: #475467;
  text-align: left;
}

.eagle-page-directory button:hover {
  background: #f3f7ff;
  color: #3157ff;
}

.eagle-sales-content {
  display: grid;
  gap: 14px;
}

.eagle-sales-content section {
  border: 1px solid var(--eagle-line);
  border-radius: var(--eagle-radius-panel);
  padding: 16px;
}

.eagle-sales-content h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.eagle-sales-content p,
.eagle-sales-content ul {
  margin: 0;
  color: #475467;
  line-height: 1.8;
}

.eagle-sales-aside ul {
  margin: 0;
  padding-left: 20px;
}

.eagle-sales-aside li + li {
  margin-top: 8px;
}

.eagle-opening-script {
  border: 1px solid #ffd7bf;
  border-radius: 8px;
  background: #fff7f0;
  padding: 12px;
  color: #7a3d18;
  line-height: 1.8;
}

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

.eagle-contact-list > span {
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}

.eagle-contact-list b {
  color: var(--eagle-muted);
  font-size: 12px;
  font-weight: 400;
}

.eagle-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3157ff;
  overflow-wrap: anywhere;
}

/* Eagle Eye uses the same control and panel radii as the rest of the workspace. */
.eagle-suggestion-icon,
.eagle-company-avatar,
.eagle-detail-logo,
.eagle-person-avatar,
.eagle-evidence-icon {
  border-radius: var(--eagle-radius-control);
}

.eagle-related-panel.ant-pro-card,
.eagle-popular-apps.ant-pro-card,
.eagle-empty-card.ant-pro-card,
.eagle-people-panel.ant-pro-card,
.eagle-results-content .ant-pro-card,
.eagle-detail-page .ant-pro-card,
.eagle-best-match,
.eagle-related-companies button,
.eagle-related-layout aside section,
.eagle-source-hit-list > div,
.eagle-people-grid > button,
.eagle-company-result-card,
.eagle-anchor-tabs,
.eagle-evidence-list article,
.eagle-opening-script {
  border-radius: var(--eagle-radius-panel);
}

@media (max-width: 1100px) {
  .eagle-related-layout,
  .eagle-detail-layout {
    grid-template-columns: 1fr;
  }

  .eagle-popular-grid,
  .eagle-detail-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eagle-results-shell {
    grid-template-columns: 1fr;
  }

  .eagle-filter-sidebar {
    display: none;
  }

  .eagle-mobile-filter-button {
    display: inline-flex;
  }

  .eagle-metric-strip .ant-pro-card-body {
    grid-template-columns: repeat(3, 1fr);
  }

  .eagle-metric-group {
    grid-column: span 1;
  }

  .eagle-sales-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eagle-compact-header {
    grid-template-columns: 1fr;
  }

  .eagle-detail-header-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .eagle-detail-actions {
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (max-width: 780px) {
  .eagle-hero {
    min-height: 380px;
  }

  .eagle-hero-inner,
  .eagle-home-content,
  .eagle-results-content,
  .eagle-detail-page {
    width: min(100% - 24px, 1180px);
  }

  .eagle-results-hero {
    width: min(100% - 24px, 1180px);
    margin-top: 10px;
  }

  .eagle-results-hero-inner {
    padding: 18px 16px;
  }

  .eagle-detail-page {
    padding-right: 0;
  }

  .eagle-hero-copy h1 {
    font-size: 28px;
  }

  .eagle-search-box,
  .eagle-search-control.is-compact .eagle-search-box {
    height: auto;
    grid-template-columns: 1fr;
  }

  .eagle-search-box .ant-input-affix-wrapper {
    min-height: 48px;
  }

  .eagle-search-box .ant-btn,
  .eagle-search-control.is-compact .eagle-search-box .ant-btn {
    width: 100%;
    height: 46px;
  }

  .eagle-autocomplete,
  .eagle-search-control.is-compact .eagle-autocomplete {
    right: 0;
  }

  .eagle-related-companies > div,
  .eagle-popular-grid,
  .eagle-company-meta-grid,
  .eagle-detail-meta,
  .eagle-detail-quick-grid,
  .eagle-sales-aside {
    grid-template-columns: 1fr;
  }

  .eagle-popular-apps .ant-pro-card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px 8px;
  }

  .eagle-popular-apps .ant-pro-card-body {
    padding: 8px 8px 16px;
  }

  .eagle-sort-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .eagle-sort-bar nav {
    width: 100%;
    overflow-x: auto;
  }

  .eagle-sort-bar > span {
    width: 100%;
  }

  .eagle-company-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .eagle-view-detail-button {
    width: 100%;
  }

  .eagle-people-grid > button {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .eagle-people-grid > button > span:last-child {
    grid-column: 1 / -1;
  }

  .eagle-compact-header {
    padding: 18px 12px;
  }

  .eagle-result-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .eagle-result-summary .ant-alert {
    max-width: none;
  }

  .eagle-company-result-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 16px;
  }

  .eagle-company-result-card > .eagle-company-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .eagle-confidence {
    width: auto;
    grid-column: 1 / -1;
    justify-items: start;
  }

  .eagle-detail-company-head {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .eagle-detail-logo {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .eagle-detail-company-head h1 {
    font-size: 22px;
  }

  .eagle-detail-actions {
    justify-content: flex-start;
  }

  .eagle-metric-strip .ant-pro-card-body {
    grid-template-columns: 1fr 1fr;
  }

  .eagle-metric-group,
  .eagle-metric-item {
    border-bottom: 1px solid var(--eagle-line);
  }

  .eagle-metric-item:last-child {
    grid-column: 1 / -1;
  }

  .eagle-anchor-tabs {
    overflow: hidden;
  }

  .eagle-evidence-list article {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .eagle-evidence-list article > a {
    grid-column: 2;
  }
}
.local-preview-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  padding: 6px 10px;
  border: 1px solid #f5c26b;
  border-radius: 6px;
  background: #fff8e8;
  color: #8a5400;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 4px 14px rgb(15 23 42 / 10%);
}
