:root {
  --bg: #eef3f9;
  --surface: #f7fafe;
  --panel: #ffffff;
  --panel-soft: #f1f5fb;
  --line: rgba(56, 79, 118, 0.10);
  --line-strong: rgba(56, 79, 118, 0.18);
  --text: #1b2b48;
  --text-soft: #7887a3;
  --navy: #183153;
  --navy-deep: #12263f;
  --brand: #2f80ed;
  --brand-soft: rgba(47, 128, 237, 0.12);
  --green: #2e9b68;
  --green-soft: rgba(46, 155, 104, 0.12);
  --orange: #eb9b2f;
  --orange-soft: rgba(235, 155, 47, 0.14);
  --red: #d05d6b;
  --red-soft: rgba(208, 93, 107, 0.14);
  --shadow-lg: 0 26px 70px rgba(82, 106, 145, 0.12);
  --shadow-md: 0 12px 34px rgba(82, 106, 145, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #f1f5fa 0%, #e8eef6 100%);
  color: var(--text);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
}

body {
  min-width: 1280px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.app-frame {
  min-height: calc(100vh - 48px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  overflow: hidden;
  background: #f1f5fa;
  box-shadow: var(--shadow-lg);
}

.topbar {
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  border-bottom: 1px solid rgba(56, 79, 118, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2f80ed, #5ea2ff);
  box-shadow: 0 8px 18px rgba(47, 128, 237, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-soft);
}

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

.status-pill,
.pill-button,
.ghost-button,
.primary-button,
.secondary-button,
.danger-button,
.tab-button,
.quick-chip,
.nav-item {
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(56, 79, 118, 0.08);
}

.status-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6bcf85;
}

.status-pill-dot.off {
  background: #8e97aa;
}

.topbar-actions button:hover,
.quick-chip:hover,
.nav-item:hover,
.secondary-button:hover,
.ghost-button:hover,
.pill-button:hover {
  transform: translateY(-1px);
}

.pill-button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
}

.pill-button {
  height: 42px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(56, 79, 118, 0.08);
}

.primary-button {
  height: 42px;
  padding: 0 18px;
  background: linear-gradient(180deg, #3d8dff, #2f80ed);
  color: #fff;
  box-shadow: 0 12px 26px rgba(47, 128, 237, 0.2);
}

.secondary-button,
.ghost-button,
.danger-button {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.danger-button {
  color: var(--red);
  background: #fff7f8;
  border-color: rgba(219, 79, 95, 0.18);
}

.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.tab-button:hover,
.nav-item:hover {
  box-shadow: var(--shadow-md);
}

.route-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.home-stage {
  min-height: calc(100vh - 48px);
  padding: 18px 22px 22px;
}

.home-stage-shell {
  min-height: calc(100vh - 88px);
  height: calc(100vh - 88px);
  border-radius: 24px;
  background: linear-gradient(180deg, #f5f8fc, #edf2f8);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 0;
  min-height: 100%;
  height: 100%;
}

.workbench-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  border-radius: 22px 0 0 22px;
  overflow: hidden;
}

.wechat-nav {
  background: linear-gradient(180deg, #d7e7fb, #d2e1f4);
  border-right: 1px solid rgba(56, 79, 118, 0.08);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wechat-nav-brand {
  margin-bottom: 10px;
}

.wechat-nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3d8dff, #2f80ed);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(47, 128, 237, 0.2);
}

.wechat-nav-items {
  display: grid;
  gap: 10px;
  width: 100%;
}

.wechat-nav-item {
  min-height: 58px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 4px;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
}

.wechat-nav-item.active {
  background: rgba(47, 128, 237, 0.12);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(47, 128, 237, 0.08);
}

.wechat-nav-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: currentColor;
  opacity: 0.8;
}

.wechat-nav-helper {
  margin-top: auto;
  display: none;
}

.wechat-nav-helper-title {
  font-size: 13px;
  font-weight: 800;
}

.wechat-nav-helper-text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-soft);
}

.wechat-app {
  min-width: 0;
  min-height: 0;
  border-radius: 0 22px 22px 0;
  background: #f2f5fa;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-left: 0;
  box-shadow: var(--shadow-md);
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
}

.wechat-app-toolbar {
  height: 34px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6f8fc;
  border-bottom: 1px solid rgba(56, 79, 118, 0.06);
}

.wechat-window-actions,
.wechat-window-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wechat-window-actions span,
.wechat-window-icons span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c2ccdb;
}

.wechat-search {
  min-width: 0;
  flex: 1;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(56, 79, 118, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #a1adc1;
  font-size: 12px;
}

.wechat-search-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.wechat-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  right: -5px;
  bottom: -1px;
  transform: rotate(45deg);
}

.wechat-shell-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
}

.wechat-session-list {
  background: #f4f7fb;
  border-right: 1px solid rgba(56, 79, 118, 0.08);
  padding: 10px;
  overflow-y: auto;
}

.wechat-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.wechat-plus-button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f4f8;
  border: 1px solid rgba(56, 79, 118, 0.08);
  color: #8c9ab1;
  font-size: 22px;
  line-height: 1;
}

.wechat-session-card {
  padding: 10px;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: transparent;
  margin-bottom: 12px;
}

.wechat-session-card.active {
  background: linear-gradient(180deg, #4c95f7, #3b86ec);
  color: #fff;
}

.wechat-session-avatar-stack {
  width: 46px;
  min-width: 46px;
  height: 34px;
  position: relative;
}

.wechat-session-avatar-stack span {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #e5edf9;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.wechat-session-avatar-stack span:nth-child(1) {
  left: 0;
  top: 0;
}

.wechat-session-avatar-stack span:nth-child(2) {
  left: 12px;
  top: 0;
}

.wechat-session-avatar-stack span:nth-child(3) {
  left: 6px;
  top: 10px;
}

.wechat-session-copy {
  min-width: 0;
}

.wechat-session-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.wechat-session-meta {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.82;
}

.wechat-session-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(56, 79, 118, 0.06);
}

.wechat-session-placeholder-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #d8dde6;
}

.wechat-session-placeholder-line {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: #e3e8f0;
}

.wechat-chat-frame {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 176px), rgba(56, 79, 118, 0.06) calc(100% - 176px), rgba(56, 79, 118, 0.06) calc(100% - 175px), transparent calc(100% - 175px)),
    linear-gradient(180deg, #f8fbff 0%, #f6f9fd 100%);
}

.wechat-chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(56, 79, 118, 0.06);
  background: rgba(255, 255, 255, 0.62);
}

.wechat-chat-title {
  font-size: 15px;
  font-weight: 800;
}

.wechat-chat-toolbar-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wechat-chat-toolbar-icons span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #a6b3c7;
}

.chat-shell.compact {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.chat-shell.compact .chat-feed {
  padding: 18px 18px 8px;
  min-height: 0;
}

.chat-input-area.compact {
  padding: 10px 18px 18px;
  background: transparent;
  border-top: 0;
}

.quick-actions.compact {
  margin-bottom: 10px;
  gap: 8px;
}

.quick-chip.compact {
  padding: 8px 12px;
  font-size: 11px;
  background: #fbfcff;
}

.chat-compose-box {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(56, 79, 118, 0.08);
  padding: 12px;
}

.input-row.compact {
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.input-shell.compact {
  height: 44px;
  border-radius: 10px;
  background: #fbfdff;
}

.icon-button.compact {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 16px;
}

.chat-compose-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-compose-hint {
  color: #a1adc1;
  font-size: 12px;
}

.send-button.compact {
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  box-shadow: none;
}

.chat-shell {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #f6f9fd;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(82, 106, 145, 0.08);
  display: grid;
  grid-template-rows: 74px 1fr auto;
}

.chat-header {
  background: linear-gradient(180deg, #bfcad8 0%, #aab7c8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.chat-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-avatars {
  display: flex;
  align-items: center;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid rgba(135, 151, 173, 0.9);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.chat-avatar:first-child {
  margin-left: 0;
}

.chat-avatar.one {
  background: #4f8bff;
}

.chat-avatar.two {
  background: #1d9d62;
}

.chat-avatar.three {
  background: #ef8b17;
}

.chat-avatar.four {
  background: #9557ff;
}

.chat-group-title {
  font-size: 19px;
  font-weight: 800;
}

.chat-group-meta {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  margin-top: 4px;
}

.chat-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.chat-feed {
  padding: 28px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, #f7fbff 0%, #f3f7fc 100%);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-feed::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.message-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.message-row.self {
  flex-direction: row-reverse;
}

.message-role {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(17, 29, 51, 0.14);
}

.message-role.hr {
  background: linear-gradient(135deg, #0d6efd, #58a5ff);
}

.message-role.interviewer {
  background: linear-gradient(135deg, #17a672, #4ed2a2);
}

.message-role.system {
  background: linear-gradient(135deg, #5d6b84, #8694ac);
}

.message-content {
  max-width: 72%;
  display: grid;
  gap: 8px;
}

.message-row.self .message-content {
  justify-items: end;
}

.message-meta {
  color: var(--text-soft);
  font-size: 12px;
  padding: 0 4px;
}

.message-bubble,
.attachment-card {
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(25, 44, 78, 0.08);
}

.message-bubble {
  padding: 15px 18px;
  line-height: 1.6;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}

.message-row.self .message-bubble {
  background: linear-gradient(180deg, #dcedff, #eef6ff);
}

.attachment-card {
  width: 340px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(13, 110, 253, 0.14);
}

.attachment-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.attachment-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e7f0ff, #d3e6ff);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.attachment-name {
  font-size: 14px;
  font-weight: 700;
}

.attachment-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.attachment-tag {
  margin-top: 14px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}

.chat-input-area {
  padding: 18px 20px 20px;
  background: rgba(250, 252, 255, 0.96);
  border-top: 1px solid rgba(56, 79, 118, 0.08);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.quick-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(56, 79, 118, 0.08);
  color: var(--text-soft);
  font-size: 12px;
}

.input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.input-shell {
  height: 56px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(56, 79, 118, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.input-shell input {
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--text);
}

.icon-button {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(56, 79, 118, 0.08);
  color: var(--text);
  font-size: 18px;
}

.send-button {
  height: 56px;
  padding: 0 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #3d8dff, #2f80ed);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(47, 128, 237, 0.18);
}

.plugin-sidebar {
  background: #ffffff;
  border: 1px solid rgba(56, 79, 118, 0.08);
  border-radius: 0 22px 22px 0;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
  margin-left: 10px;
}

.plugin-header {
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(56, 79, 118, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plugin-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.plugin-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plugin-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2f80ed;
  box-shadow: 0 0 0 6px rgba(47, 128, 237, 0.1);
}

.copilot-title {
  font-weight: 800;
  font-size: 18px;
}

.copilot-subtitle {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 12px;
}

.copilot-toolbar {
  display: flex;
  gap: 8px;
}

.toolbar-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f7f9fd;
  color: var(--text);
  border: 1px solid rgba(56, 79, 118, 0.08);
}

.plugin-summary-grid {
  padding: 18px 22px 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plugin-summary-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f5f9ff;
  border: 1px solid rgba(47, 128, 237, 0.08);
}

.plugin-summary-label {
  font-size: 12px;
  color: var(--text-soft);
}

.plugin-summary-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
}

.copilot-scroll {
  padding: 14px 18px 18px;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.copilot-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.plugin-sidebar.attached {
  border-left: 0;
}

.plugin-header.compact {
  padding: 12px 16px;
}

.plugin-header-topline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plugin-header-count {
  font-size: 14px;
  font-weight: 700;
  color: #4d5565;
}

.plugin-header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-button.compact {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
  background: transparent;
  color: #808ea5;
}

.copilot-scroll.attached {
  padding-top: 12px;
}

.empty-state {
  margin: auto 0;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px dashed rgba(56, 79, 118, 0.12);
}

.empty-state h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 14px;
}

.task-card {
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(56, 79, 118, 0.08);
  box-shadow: 0 6px 14px rgba(82, 106, 145, 0.05);
  display: grid;
  gap: 8px;
}

.task-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

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

.task-badge.resume {
  color: var(--brand);
  background: var(--brand-soft);
}

.task-badge.event {
  color: var(--green);
  background: var(--green-soft);
}

.task-badge.warn {
  color: var(--orange);
  background: var(--orange-soft);
}

.task-badge.error {
  color: var(--red);
  background: var(--red-soft);
}

.task-confidence {
  font-size: 12px;
  color: var(--text-soft);
}

.task-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.task-fields {
  display: grid;
  gap: 6px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.task-inline-note {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.task-inline-note.warn {
  background: rgba(239, 139, 23, 0.1);
  color: #b66a09;
}

.batch-candidate-list {
  display: grid;
  gap: 8px;
}

.batch-candidate-item {
  padding: 10px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid rgba(56, 79, 118, 0.08);
}

.batch-candidate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.batch-candidate-index {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}

.batch-remove-button {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(194, 58, 58, 0.18);
  background: #fff;
  color: #b74a4a;
  font-size: 11px;
  font-weight: 700;
}

.field {
  padding: 8px 9px;
  border-radius: 12px;
  background: var(--panel-soft);
}

.field-label {
  display: block;
  font-size: 10px;
  color: var(--text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input,
.field select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.task-actions button {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.board-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 48px);
}

.board-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  color: var(--text);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(56, 79, 118, 0.08);
}

.board-sidebar .brand-text {
  margin-bottom: 26px;
}

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

.nav-item {
  height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  background: transparent;
}

.nav-item.active {
  background: #edf5ff;
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(47, 128, 237, 0.12);
}

.board-main {
  padding: 24px;
  overflow-y: auto;
  background: linear-gradient(180deg, #edf3fa 0%, #e9eff6 100%);
}

.board-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.board-close-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(56, 79, 118, 0.08);
  color: #71819b;
  font-size: 22px;
  line-height: 1;
}

.board-close-button:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.board-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.board-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.board-description {
  margin-top: 10px;
  max-width: 640px;
  color: var(--text-soft);
  line-height: 1.7;
}

.board-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.board-panel {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-button {
  height: 40px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid rgba(18, 34, 61, 0.08);
  color: var(--text-soft);
}

.tab-button.active {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
}

.stats-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(18, 34, 61, 0.06);
}

.stat-label {
  color: var(--text-soft);
  font-size: 12px;
}

.stat-value {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 800;
}

.stat-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}

.funnel {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.funnel-stage {
  flex: 1;
  min-width: 0;
}

.funnel-bar {
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #74b7ff 0%, #0d6efd 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding-bottom: 12px;
}

.funnel-label {
  margin-top: 10px;
  text-align: center;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.activity-list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.activity-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(18, 34, 61, 0.08);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-title {
  font-weight: 700;
}

.activity-sub {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-soft);
}

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

.control-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.control-select {
  min-width: 180px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(18, 34, 61, 0.08);
  background: #fff;
  padding: 0 12px;
  color: var(--text);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.kanban-column {
  min-height: 480px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #eef4fb, #e7eef6);
  border: 1px solid rgba(56, 79, 118, 0.06);
}

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

.kanban-title {
  font-weight: 800;
}

.kanban-count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.candidate-stack {
  display: grid;
  gap: 12px;
}

.candidate-card {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 29, 51, 0.08);
  display: grid;
  gap: 12px;
}

.candidate-head {
  display: flex;
  gap: 12px;
}

.candidate-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d6efd, #58a5ff);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.candidate-name {
  font-weight: 800;
}

.candidate-role {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.mini-badge.brand {
  color: var(--brand);
  background: var(--brand-soft);
}

.mini-badge.green {
  color: var(--green);
  background: var(--green-soft);
}

.mini-badge.orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.mini-badge.red {
  color: var(--red);
  background: var(--red-soft);
}

.candidate-meta {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
}

.placeholder-panel {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
}

.placeholder-panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.placeholder-panel p {
  margin: 0;
  max-width: 440px;
  line-height: 1.7;
  color: var(--text-soft);
}

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

.settings-card {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(56, 79, 118, 0.06);
}

.settings-card h3 {
  margin: 0;
  font-size: 18px;
}

.settings-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 14px;
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.stack label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.stack input,
.stack select {
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(18, 34, 61, 0.08);
  padding: 0 14px;
  background: #fff;
  color: var(--text);
}

.settings-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.settings-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.6;
}

.settings-note.info {
  background: var(--brand-soft);
  color: var(--brand);
}

.settings-note.warn {
  background: var(--orange-soft);
  color: var(--orange);
}

.toggle-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.toggle-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(18, 34, 61, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-pill {
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: rgba(18, 34, 61, 0.12);
  position: relative;
}

.toggle-pill::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 29, 51, 0.18);
}

.toggle-pill.on {
  background: rgba(13, 110, 253, 0.22);
}

.toggle-pill.on::after {
  left: 26px;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 50;
  min-width: 280px;
  max-width: 360px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: slide-up 280ms ease;
}

.toast.success {
  background: linear-gradient(135deg, #1d9d62, #4ac18a);
}

.toast.info {
  background: linear-gradient(135deg, #0d6efd, #4ca0ff);
}

.toast.error {
  background: linear-gradient(135deg, #db4f5f, #f17d8a);
}

.toast-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.toast-body {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.skeleton {
  overflow: hidden;
  position: relative;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.58),
    transparent
  );
  animation: shimmer 1.8s infinite;
}

.skeleton-block {
  height: 14px;
  border-radius: 999px;
  background: rgba(18, 34, 61, 0.08);
}

.skeleton-block.large {
  height: 18px;
  width: 76%;
}

.skeleton-block.medium {
  width: 100%;
}

.skeleton-block.short {
  width: 54%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.72);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
