/* 让 hidden 属性始终生效：本表里不少元素带 display:flex/grid 等会盖过浏览器默认的 [hidden]{display:none}，
   导致设了 hidden 仍可见（曾让管理后台导航对普通用户也显示、Caps Lock 警示常驻）。这条兜底修复整类问题。 */
[hidden] { display: none !important; }

:root {
  --page: #e7ece3;
  --screen: #edf7e9;
  --panel: #ffffff;
  --panel-soft: #f8fbf5;
  --ink: #171b16;
  --muted: #778172;
  --line: rgba(30, 38, 28, 0.1);
  --dark: #1b1d1b;
  --dark-2: #2b2e2b;
  --green: #7fd53c;
  --green-deep: #2d8d0e;
  --lime: #d7f36d;
  --teal: #75d2c5;
  --amber: #efa73c;
  --shadow: 0 28px 80px rgba(30, 39, 27, 0.13);
  --sticky-top: 116px;
  --jelly: cubic-bezier(0.18, 1.32, 0.28, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  --intro-fade: 1;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.36) 4%, rgba(231, 236, 227, 0) 13%),
    linear-gradient(180deg, #f3f5ef 0%, var(--page) 100%);
}

button,
a,
input {
  font: inherit;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

button {
  cursor: pointer;
}

.dashboard-shell {
  min-height: 100vh;
  padding: 12px;
}

.dashboard-screen {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 24px);
  margin: 0 auto;
  padding: 34px;
  overflow: visible;
  border: 1px solid rgba(30, 36, 27, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.74), transparent 30%),
    linear-gradient(180deg, #eef8eb 0%, #eaf4e6 38%, #f8faf5 100%);
  box-shadow: var(--shadow);
}

.dashboard-screen::before {
  content: "NiceHR.AI";
  position: absolute;
  top: -54px;
  left: -28px;
  z-index: 0;
  font-size: 180px;
  line-height: 1;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.topbar,
.primary-tabs,
.user-tools,
.brand,
.intro-row,
.assistant-prompts,
.assistant-message,
.module-bar,
.module-tabs,
.module-actions,
.module-grid,
.panel-heading,
.chat-input,
.summary-grid {
  display: flex;
}

.topbar,
.primary-tabs,
.user-tools,
.brand,
.assistant-message,
.module-bar,
.panel-heading,
.chat-input {
  align-items: center;
}

.topbar,
.intro-row,
.recruit-module {
  position: relative;
  z-index: 1;
}

.topbar {
  position: fixed;
  top: 32px;
  left: 50%;
  z-index: 10;
  width: calc(100% - 108px);
  max-width: none;
  justify-content: space-between;
  gap: 22px;
  min-height: 58px;
  margin-bottom: 0;
  transform: translateX(-50%);
  transition: margin-bottom 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: -10px -16px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  background: rgba(238, 248, 232, 0.5);
  box-shadow: 0 18px 42px rgba(27, 38, 24, 0.08);
  opacity: 0;
  backdrop-filter: blur(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.is-scrolled .topbar::before {
  opacity: 1;
  transform: translateY(-2px);
}

.brand {
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #1d221c;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  transform: rotate(-18deg);
}

.primary-tabs {
  position: absolute;
  left: 50%;
  top: 4px;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(25, 33, 22, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.nav-pill,
.module-tab,
.module-actions button,
.assistant-prompts button,
.icon-button,
.mic-button,
.output-item,
.history-item,
.chat-input button {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
}

.nav-pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 17px;
  overflow: hidden;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms ease,
    background 260ms ease,
    color 260ms ease;
}

.nav-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(127, 213, 60, 0.48), transparent 28%),
    radial-gradient(circle at calc(var(--mx, 50%) + 18px) calc(var(--my, 50%) - 12px), rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle at calc(var(--mx, 50%) - 24px) calc(var(--my, 50%) + 10px), rgba(45, 141, 14, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at calc(var(--mx, 50%) + 42px) calc(var(--my, 50%) + 18px), rgba(215, 243, 109, 0.8) 0 1px, transparent 2px);
  transition: opacity 180ms ease;
}

.nav-pill:hover {
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 18px 34px rgba(40, 54, 34, 0.16);
}

.nav-pill:hover::before {
  opacity: 1;
}

.nav-pill.active {
  color: #1a2117;
  background: #fff;
  box-shadow: 0 14px 30px rgba(27, 38, 24, 0.13);
}

.nav-pill.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -7px;
  height: 8px;
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.icon {
  font-weight: 800;
}

.user-tools {
  position: relative;
  gap: 0;
  margin-left: auto;
}

.icon-button {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #283027;
}

.avatar-button {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.avatar {
  display: block;
  width: 46px;
  height: 46px;
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle at 51% 31%, #efc7a0 0 17%, transparent 18%),
    radial-gradient(circle at 50% 72%, #6b775d 0 30%, transparent 31%),
    radial-gradient(circle at 41% 24%, #2b221d 0 16%, transparent 17%),
    linear-gradient(180deg, #cfd8bf, #8ea17f);
  box-shadow: 0 12px 24px rgba(28, 37, 24, 0.18);
}

.account-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 280px;
  max-height: min(76vh, 720px);
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 60px rgba(28, 38, 24, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  backdrop-filter: blur(22px) saturate(1.12);
  transition: opacity 220ms ease, transform 220ms ease;
}

.account-popover::-webkit-scrollbar {
  width: 8px;
}

.account-popover::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(70, 93, 60, 0.28);
}

.account-open .account-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.account-popover strong {
  font-size: 16px;
}

.account-popover span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-popover button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(247, 251, 242, 0.82);
  text-align: left;
  padding: 0 12px;
}

.api-key-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.api-key-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 11px;
  color: var(--ink);
  background: rgba(247, 251, 242, 0.92);
  outline: 0;
}

.ai-provider-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.model-provider-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ai-provider-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 251, 242, 0.78);
}

.account-popover .ai-provider-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  padding: 0 8px;
  background: transparent;
  color: #64705e;
  text-align: center;
  white-space: nowrap;
}

.account-popover .ai-provider-switch button.active {
  background: #2f5f3b;
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 95, 59, 0.18);
}

.model-provider-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.model-provider-grid button,
.agent-setup-options button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 8px;
  color: #41503d;
  background: rgba(247, 251, 242, 0.9);
  font-weight: 800;
}

.model-provider-grid button.active,
.agent-setup-options button.active {
  border-color: #2f5f3b;
  color: #fff;
  background: #2f5f3b;
  box-shadow: 0 8px 18px rgba(47, 95, 59, 0.18);
}

.report-output-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-output-field > span {
  grid-column: 1 / -1;
  margin: 0;
}

.report-output-field label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  background: rgba(247, 251, 242, 0.78);
  color: #64705e;
}

.report-output-field input {
  accent-color: #2f5f3b;
}

.lark-auth-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lark-auth-field a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(47, 95, 59, 0.26);
  border-radius: 12px;
  padding: 0 10px;
  color: #2f5f3b;
  background: rgba(230, 241, 224, 0.84);
  text-decoration: none;
}

.account-popover .lark-auth-field button {
  min-height: 34px;
  border-radius: 12px;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 25% 18%, rgba(213, 245, 172, 0.52), transparent 28%),
    linear-gradient(180deg, rgba(235, 241, 230, 0.58), rgba(231, 236, 227, 0.82));
  backdrop-filter: blur(22px) saturate(1.08);
}

.auth-gate.hidden {
  display: none;
}

.auth-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 32px 90px rgba(26, 35, 23, 0.18);
}

.auth-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(127, 213, 60, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.auth-panel h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.08;
}

.auth-panel p {
  margin: 0;
  color: #687363;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  align-content: start;
  gap: 13px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  background: #f8fbf4;
}

#auth-message {
  min-height: 20px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
}

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

.auth-actions button {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
}

.auth-actions button:first-child {
  color: #fff;
  background: #243022;
}

.auth-actions button:last-child {
  color: #243022;
  background: rgba(127, 213, 60, 0.2);
}

.auth-logo {
  display: none;
}

.auth-form label a {
  color: var(--green-deep);
  text-decoration: none;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.intro-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
  margin-top: 118px;
  margin-bottom: 36px;
  opacity: var(--intro-fade);
  transition: opacity 140ms linear;
}

.is-scrolled .intro-row {
  pointer-events: none;
}

h1 {
  max-width: 620px;
  margin: 0;
  color: rgba(20, 31, 38, 0.82);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  margin-top: 10px;
  color: rgba(37, 44, 34, 0.4);
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.assistant-card {
  position: relative;
  width: 450px;
  margin-top: 0;
  padding: 12px;
  overflow: hidden;
  opacity: 0.42;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(226, 246, 216, 0.3)),
    rgba(237, 248, 229, 0.42);
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.52),
    0 18px 40px rgba(31, 42, 28, 0.09);
  backdrop-filter: blur(24px) saturate(1.18);
  transition: opacity 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.assistant-card:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.58),
    0 24px 54px rgba(31, 42, 28, 0.13);
}

.assistant-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(20, 26, 18, 0.55) 0 0.8px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 0.9px, transparent 1.2px);
  background-position: 0 0, 7px 9px;
  background-size: 13px 13px, 17px 17px;
  pointer-events: none;
}

.assistant-prompts,
.assistant-message {
  position: relative;
  z-index: 1;
}

.assistant-prompts {
  gap: 8px;
  margin-bottom: 10px;
}

.assistant-prompts button {
  flex: 1;
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.68);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  transition: transform 220ms ease, background 220ms ease;
}

.assistant-prompts button:hover,
.assistant-prompts button.active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.82);
}

.assistant-message {
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 12px 0 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.assistant-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.assistant-title strong {
  font-weight: 700;
}

.mic-button {
  width: 46px;
  height: 46px;
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.recruit-module {
  width: 100%;
  z-index: 2;
  border-radius: 20px;
  background: var(--dark);
  box-shadow: 0 18px 44px rgba(16, 18, 16, 0.18);
}

.workspace-backplate {
  display: none;
}

.workspace-backplate.is-pinned {
  position: fixed;
  top: calc(var(--sticky-top) - 44px);
  left: 50%;
  z-index: 1;
  display: block;
  width: calc(100% - 40px);
  height: calc(var(--workspace-height, 720px) + 88px);
  border: 1px solid rgba(30, 36, 27, 0.1);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(180deg, rgba(239, 248, 235, 0.96) 0%, rgba(235, 244, 231, 0.96) 45%, rgba(248, 250, 245, 0.98) 100%);
  box-shadow: var(--shadow);
  pointer-events: none;
  transform: translateX(-50%) translateY(var(--pin-offset, 0px));
}

.recruit-module.is-pinned {
  position: fixed;
  top: var(--sticky-top);
  left: 50%;
  z-index: 2;
  width: calc(100% - 108px);
  max-width: none;
  transform: translateX(-50%) translateY(var(--pin-offset, 0px));
}

.workspace-spacer {
  display: block;
  height: var(--workspace-pin-space, 28px);
  pointer-events: none;
}

.workspace-spacer.is-active {
  height: calc(var(--workspace-height, 720px) + var(--workspace-pin-track, 180px));
}

.module-bar {
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 14px 18px;
}

.module-tabs {
  gap: 12px;
}

.module-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 13px;
  background: var(--dark-2);
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  font-weight: 600;
  transition:
    transform 260ms ease,
    background 260ms ease,
    color 260ms ease,
    box-shadow 260ms ease;
}

.module-tab:hover {
  transform: translateY(-1px);
  background: #3a3e3a;
}

.module-tab.active {
  color: #1c211b;
  background: #fff;
  box-shadow: 0 0 0 6px #fff;
}

.module-actions {
  gap: 12px;
}

.module-title {
  color: #fff;
}

.module-title p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.module-title h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.16;
}

.module-actions button {
  min-height: 50px;
  padding: 0 22px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
}

.prompt-console-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 210px;
  min-height: 52px;
  padding: 8px 18px;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 260ms var(--jelly), background 260ms ease, box-shadow 260ms ease;
}

.prompt-console-button:hover,
.prompt-console-button.active {
  transform: translateY(-2px);
  color: #1c211b;
  background: linear-gradient(135deg, #f8fff1, #e6f4dc);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(80, 123, 63, 0.18);
}

.prompt-console-button span {
  font-size: 15px;
  font-weight: 900;
}

.prompt-console-button small {
  margin-top: 2px;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.62;
}

.prompt-console-shell {
  display: block;
  min-height: 0;
  padding: 16px 18px 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 8%, rgba(155, 206, 130, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 241, 0.94));
}

.prompt-deck {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: min(630px, calc(100vh - 250px));
  perspective: 1200px;
  animation: promptDeckLand 420ms var(--jelly) both;
}

.prompt-deck.flip-up {
  animation-name: promptDeckFlipUp;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  min-height: min(630px, calc(100vh - 250px));
  padding: 18px;
  border: 1px solid rgba(111, 132, 101, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 55px rgba(24, 35, 21, 0.11);
  overflow: hidden;
}

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

.prompt-card p,
.prompt-card h3 {
  margin: 0;
}

.prompt-card p {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.prompt-card h3 {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.1;
}

.prompt-card-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 4px;
  border: 1px solid rgba(111, 132, 101, 0.14);
  border-radius: 999px;
  background: rgba(245, 250, 240, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.prompt-card-actions button,
.prompt-page-arrow {
  min-height: 32px;
  padding: 0 13px;
  border-color: rgba(109, 149, 89, 0.2);
  border-radius: 999px;
  color: #2d5d25;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(32, 60, 23, 0.06);
  transition:
    transform 220ms var(--jelly),
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.prompt-card-actions button:hover,
.prompt-card-actions button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(58, 129, 35, 0.34);
  background: #f2faeb;
  box-shadow: 0 10px 20px rgba(32, 60, 23, 0.1);
}

.prompt-card-actions [data-edit-prompt] {
  color: #fff;
  border-color: rgba(28, 83, 18, 0.28);
  background: linear-gradient(135deg, #2d6927, #1f4c1d);
  box-shadow: 0 10px 22px rgba(29, 82, 24, 0.18);
}

.prompt-card-actions [data-toggle-prompt-history] {
  background: linear-gradient(135deg, #f8fff2, #e7f4dd);
}

.prompt-card-actions button:disabled {
  color: rgba(92, 109, 84, 0.48);
  border-color: rgba(111, 132, 101, 0.12);
  background: rgba(242, 245, 238, 0.68);
  box-shadow: none;
  cursor: not-allowed;
}

.prompt-card-actions button:disabled:hover {
  transform: none;
}

.prompt-editor {
  flex: 1;
  width: 100%;
  min-height: 360px;
  padding: 16px;
  border: 1px solid rgba(111, 132, 101, 0.18);
  border-radius: 18px;
  color: #1d251c;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    var(--grid);
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: none;
  outline: none;
}

.prompt-card.is-editing .prompt-editor,
.prompt-editor:focus {
  border-color: rgba(48, 130, 31, 0.44);
  box-shadow: 0 0 0 4px rgba(97, 164, 74, 0.14);
}

.prompt-page-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 34px rgba(38, 67, 27, 0.2);
  z-index: 4;
}

.prompt-history-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.prompt-history-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(14, 18, 13, 0.42);
  backdrop-filter: blur(12px);
}

.prompt-history-dialog {
  width: calc(100vw - 56px);
  max-height: min(760px, calc(100vh - 56px));
  padding: 22px;
  border: 1px solid rgba(111, 132, 101, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 15% 10%, rgba(202, 237, 177, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 237, 0.96));
  box-shadow: 0 34px 100px rgba(9, 13, 8, 0.34);
  animation: promptDeckLand 360ms var(--jelly) both;
}

.prompt-history-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.prompt-history-dialog p,
.prompt-history-dialog h3 {
  margin: 0;
}

.prompt-history-dialog p {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.prompt-history-dialog h3 {
  margin-top: 3px;
  font-size: 26px;
}

.prompt-history-dialog > header button,
.prompt-history-preview-actions button {
  border-color: rgba(109, 149, 89, 0.22);
  color: #2d5d25;
  background: #f2faeb;
  font-weight: 900;
}

.prompt-history-dialog-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  min-height: 520px;
}

.prompt-history-records {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  padding-right: 6px;
  overflow: auto;
}

.prompt-history-record {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(111, 132, 101, 0.16);
  border-radius: 16px;
  color: #1b2319;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.prompt-history-record.active,
.prompt-history-record:hover {
  border-color: rgba(65, 139, 43, 0.36);
  background: #eff9e8;
}

.prompt-history-record strong {
  font-size: 14px;
}

.prompt-history-record span,
.prompt-history-record small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.prompt-history-record small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-history-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.prompt-history-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.prompt-history-preview textarea {
  flex: 1;
  min-height: 470px;
  padding: 16px;
  border: 1px solid rgba(111, 132, 101, 0.18);
  border-radius: 18px;
  color: #1d251c;
  background: rgba(255, 255, 255, 0.82);
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: none;
  outline: none;
}

@keyframes promptDeckLand {
  from {
    opacity: 0;
    transform: rotateX(-14deg) translateY(34px) scale(0.98);
  }
  68% {
    opacity: 1;
    transform: rotateX(3deg) translateY(-5px) scale(1.006);
  }
  to {
    opacity: 1;
    transform: rotateX(0deg) translateY(0) scale(1);
  }
}

@keyframes promptDeckFlipUp {
  from {
    opacity: 0;
    transform: rotateX(14deg) translateY(-34px) scale(0.98);
  }
  68% {
    opacity: 1;
    transform: rotateX(-3deg) translateY(5px) scale(1.006);
  }
  to {
    opacity: 1;
    transform: rotateX(0deg) translateY(0) scale(1);
  }
}

.module-grid {
  display: flex;
  gap: 12px;
  padding: 0 12px 12px;
  min-height: calc(100vh - 260px);
  overflow: visible;
}

.chat-card,
.output-card,
.history-card,
.filter-card,
.talent-card,
.job-card,
.definition-card,
.file-analyzer {
  border: 1px solid rgba(17, 21, 15, 0.08);
  background: var(--panel);
}

.lift-card {
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms ease;
}

.lift-card:hover {
  transform: scale(1.012);
  box-shadow: 0 20px 48px rgba(24, 31, 21, 0.16);
}

.chat-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  border-radius: 18px;
}

.insights-column {
  flex: 0 0 340px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}

.output-card,
.history-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 18px;
  padding: 20px;
}

.output-card {
  flex: 1.05;
}

.history-card {
  flex: 0.95;
}

.panel-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-heading p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 700;
}

.panel-heading span,
.panel-heading button {
  flex: 0 0 auto;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: #64705e;
  background: #f6faf1;
  font-size: 12px;
  font-weight: 800;
}

#chat-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#chat-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d64545;
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12);
}

#chat-status.is-online::before {
  background: var(--green-deep);
  box-shadow: 0 0 0 4px rgba(45, 141, 14, 0.13);
}

.chat-heading-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.chat-expand-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  max-width: none;
  padding: 0;
  border: 1px solid rgba(45, 141, 14, 0.18);
  border-radius: 999px;
  color: #24401f;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.96), transparent 38%),
    linear-gradient(145deg, #f7fcf2, #e5f4dc);
  box-shadow: 0 8px 20px rgba(35, 68, 27, 0.1);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 420ms var(--jelly),
    box-shadow 280ms ease,
    background 280ms ease;
}

.chat-expand-button:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 14px 28px rgba(38, 88, 28, 0.16);
}

.chat-expand-button[aria-pressed="true"] {
  color: #fff;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(145deg, var(--green-deep), #1f6611);
}

.recruit-module,
.module-bar,
.module-tabs,
.module-grid,
.chat-card,
.insights-column,
.output-card,
.history-card,
.module-tab,
.module-actions button {
  transition-timing-function: var(--jelly);
}

.module-bar {
  transition:
    min-height 520ms var(--jelly),
    padding 520ms var(--jelly);
}

.module-tabs {
  min-width: 0;
  transition: gap 520ms var(--jelly);
}

.module-tab {
  transition:
    min-height 520ms var(--jelly),
    max-width 520ms var(--jelly),
    padding 520ms var(--jelly),
    opacity 360ms ease,
    transform 520ms var(--jelly),
    background 360ms ease,
    color 360ms ease,
    box-shadow 360ms ease;
}

.module-actions button {
  transition:
    min-height 520ms var(--jelly),
    padding 520ms var(--jelly),
    opacity 360ms ease,
    transform 520ms var(--jelly);
}

.module-grid {
  transition:
    gap 560ms var(--jelly),
    height 560ms var(--jelly),
    padding 560ms var(--jelly);
}

.chat-card {
  transition:
    flex-basis 620ms var(--jelly),
    flex-grow 620ms var(--jelly),
    padding 520ms var(--jelly),
    border-radius 520ms var(--jelly),
    transform 520ms var(--jelly),
    box-shadow 520ms ease;
}

.insights-column {
  transition:
    flex-basis 620ms var(--jelly),
    min-width 620ms var(--jelly),
    width 620ms var(--jelly),
    gap 520ms var(--jelly);
}

.output-card,
.history-card {
  transform-style: preserve-3d;
  transition:
    width 620ms var(--jelly),
    flex-basis 620ms var(--jelly),
    padding 520ms var(--jelly),
    border-radius 520ms var(--jelly),
    transform 520ms var(--jelly),
    opacity 360ms ease,
    box-shadow 520ms ease,
    background 520ms ease;
}

.recruit-module.is-chat-expanded {
  box-shadow: 0 30px 80px rgba(9, 12, 9, 0.28);
}

.recruit-module.is-chat-expanded .module-bar {
  min-height: 44px;
  padding: 0 12px 8px;
}

.recruit-module.is-chat-expanded .module-tabs {
  gap: 8px;
  align-items: flex-start;
  min-height: 44px;
  overflow: visible;
}

.recruit-module.is-chat-expanded .module-tab {
  position: relative;
  justify-content: center;
  min-width: 56px;
  min-height: 36px;
  max-width: 56px;
  padding: 0 16px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 18px 18px;
  color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    #2a2f2a;
  font-size: 13px;
  text-overflow: clip;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.16);
  transform: translateY(-4px);
  transition:
    max-width 520ms var(--jelly),
    min-width 520ms var(--jelly),
    padding 520ms var(--jelly),
    transform 520ms var(--jelly),
    opacity 260ms ease,
    color 260ms ease,
    background 420ms ease,
    box-shadow 420ms ease;
}

.recruit-module.is-chat-expanded .module-tab .tab-text {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  white-space: nowrap;
  transition: width 480ms var(--jelly), opacity 260ms ease;
}

.recruit-module.is-chat-expanded .module-tab .icon {
  font-size: 16px;
}

.recruit-module.is-chat-expanded .module-tab:not(.active) {
  opacity: 0.9;
  transform: translateY(-4px);
}

.recruit-module.is-chat-expanded .module-tabs:hover .module-tab,
.recruit-module.is-chat-expanded .module-tabs:focus-within .module-tab {
  min-width: 148px;
  max-width: 168px;
  justify-content: flex-start;
  padding: 0 18px;
}

.recruit-module.is-chat-expanded .module-tabs:hover .module-tab .tab-text,
.recruit-module.is-chat-expanded .module-tabs:focus-within .module-tab .tab-text {
  width: auto;
  opacity: 1;
}

.recruit-module.is-chat-expanded .module-tab:hover,
.recruit-module.is-chat-expanded .module-tab:focus-visible {
  transform: translateY(-10px);
  opacity: 1;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(127, 213, 60, 0.34), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    #30392d;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.recruit-module.is-chat-expanded .module-tab.active {
  color: #eaffdf;
  background:
    radial-gradient(circle at 50% 6%, rgba(127, 213, 60, 0.42), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(127, 213, 60, 0.08)),
    #20301d;
  box-shadow: 0 14px 32px rgba(127, 213, 60, 0.2);
}

.recruit-module.is-chat-expanded .module-actions button {
  min-height: 38px;
  padding: 0 16px;
  opacity: 0.78;
  transform: translateY(-2px) scale(0.96);
}

.recruit-module.is-chat-expanded .module-grid {
  gap: 8px;
  height: clamp(500px, calc(100vh - 244px), 760px);
  padding: 0 7px 7px;
  overflow: visible;
}

.recruit-module.is-chat-expanded .chat-card {
  flex: 1 1 calc(100% - 70px);
  padding: 14px;
  border-radius: 20px;
  box-shadow: 0 26px 64px rgba(9, 13, 8, 0.18);
  animation: chat-panel-grow 620ms var(--jelly);
}

.recruit-module.is-chat-expanded .chat-card > .panel-heading {
  display: block;
  height: 0;
  margin: 0;
}

.recruit-module.is-chat-expanded .chat-card > .panel-heading > div:first-child {
  display: none;
}

.recruit-module.is-chat-expanded .chat-heading-tools {
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 12;
  display: inline-flex;
}

.recruit-module.is-chat-expanded .chat-card.lift-card:hover {
  transform: none;
}

.recruit-module.is-chat-expanded .insights-column {
  flex: 0 0 58px;
  width: 58px;
  min-width: 58px;
  gap: 10px;
  overflow: visible;
  perspective: 1200px;
}

.recruit-module.is-chat-expanded .output-card,
.recruit-module.is-chat-expanded .history-card {
  position: relative;
  z-index: 1;
  width: 58px;
  flex: 1 1 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background:
    radial-gradient(circle at var(--hover-x, 50%) var(--hover-y, 50%), rgba(127, 213, 60, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 236, 0.9));
  box-shadow: inset 0 0 0 1px rgba(30, 38, 28, 0.04), 0 18px 38px rgba(10, 14, 9, 0.12);
  transform-origin: right center;
  will-change: transform;
}

.recruit-module.is-chat-expanded .output-card::before,
.recruit-module.is-chat-expanded .history-card::before {
  position: absolute;
  inset: 14px 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #4f6248;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: opacity 260ms ease, transform 420ms var(--jelly);
}

.recruit-module.is-chat-expanded .output-card::before {
  content: "内容产出";
}

.recruit-module.is-chat-expanded .history-card::before {
  content: "对话历史";
}

.recruit-module.is-chat-expanded .output-card > *,
.recruit-module.is-chat-expanded .history-card > * {
  opacity: 0;
  pointer-events: none;
  transform: translateX(22px) scale(0.96);
  transition:
    opacity 220ms ease,
    transform 420ms var(--jelly);
}

.recruit-module.is-chat-expanded .output-card:focus-within,
.recruit-module.is-chat-expanded .output-card.is-preview-open,
.recruit-module.is-chat-expanded .history-card:focus-within,
.recruit-module.is-chat-expanded .history-card.is-preview-open {
  z-index: 30;
  width: calc(100vw - 150px);
  max-height: min(70vh, 520px);
  padding: 20px;
  overflow: auto;
  border-radius: 28px;
  background:
    radial-gradient(circle at var(--hover-x, 50%) var(--hover-y, 50%), rgba(127, 213, 60, 0.16), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f8fbf4 100%);
  box-shadow: 0 34px 78px rgba(13, 18, 12, 0.24);
  transform: translateX(calc(-100% + 58px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1.01);
}

.recruit-module.is-chat-expanded .output-card:focus-within::before,
.recruit-module.is-chat-expanded .output-card.is-preview-open::before,
.recruit-module.is-chat-expanded .history-card:focus-within::before,
.recruit-module.is-chat-expanded .history-card.is-preview-open::before {
  opacity: 0;
  transform: translateX(18px) scale(0.86);
}

.recruit-module.is-chat-expanded .output-card:focus-within > *,
.recruit-module.is-chat-expanded .output-card.is-preview-open > *,
.recruit-module.is-chat-expanded .history-card:focus-within > *,
.recruit-module.is-chat-expanded .history-card.is-preview-open > * {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition-delay: 80ms;
}

.recruit-module.is-chat-expanded .output-card.lift-card.is-preview-open,
.recruit-module.is-chat-expanded .history-card.lift-card.is-preview-open {
  box-shadow: 0 34px 78px rgba(13, 18, 12, 0.24);
}

.recruit-module.is-chat-expanded .panel-heading p {
  font-size: 10px;
}

.recruit-module.is-chat-expanded .panel-heading h2 {
  font-size: 17px;
}

.recruit-module.is-chat-expanded #chat-status {
  padding: 7px 10px;
  font-size: 11px;
}

.recruit-module.is-chat-expanded #chat-status::before {
  width: 7px;
  height: 7px;
}

.recruit-module.is-chat-expanded .chat-expand-button {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

@keyframes workspace-jelly {
  0% { transform: scale(0.992); }
  55% { transform: scale(1.008); }
  100% { transform: scale(1); }
}

@keyframes chat-panel-grow {
  0% { transform: scaleX(0.982) translateY(2px); }
  58% { transform: scaleX(1.006) translateY(-1px); }
  100% { transform: scaleX(1) translateY(0); }
}

.chat-flow {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(30, 38, 28, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(rgba(29, 37, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 37, 25, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fcfff8 0%, #f8fbf3 100%);
  background-size: 100% 58px, 70px 100%, auto;
}

.agent-setup-card {
  display: grid;
  gap: 12px;
  margin: auto;
  max-width: 520px;
  width: 100%;
  border: 1px solid rgba(47, 95, 59, 0.16);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(24, 32, 21, 0.08);
}

.agent-setup-card small {
  color: #2f5f3b;
  font-size: 12px;
  font-weight: 900;
}

.agent-setup-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.agent-setup-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.agent-setup-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.file-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  margin-top: 10px;
}

.file-chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: min(100%, 360px);
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px 12px 8px;
  color: #263024;
  background: rgba(127, 213, 60, 0.14);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.file-chip-main,
.file-chip-status {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip-main em {
  color: #6d7867;
  font-style: normal;
}

.file-chip-status {
  color: #6d7867;
  font-size: 11px;
  font-weight: 700;
}

.file-chip > i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  transition: width 260ms ease;
}

.file-chip.is-parsing {
  box-shadow: 0 10px 24px rgba(45, 141, 14, 0.1);
}

.file-chip:disabled {
  cursor: progress;
  opacity: 0.9;
}

.empty-state {
  padding: 15px 46px 15px 15px;
  border: 1px dashed rgba(30, 38, 28, 0.16);
  border-radius: 15px;
  color: #7a8374;
  background: #f8fbf4;
  font-size: 13px;
  line-height: 1.55;
}

.locked-workspace {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 54px;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
}

.locked-workspace span {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #d7f36d;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.locked-workspace h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.locked-workspace p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.library-layout,
.company-layout,
.jobs-console {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  padding: 0 12px 12px;
}

.library-layout,
.company-layout,
.job-board {
  min-height: clamp(330px, calc(100vh - 360px), 500px);
}

.company-layout {
  grid-template-columns: 280px 1fr;
  align-items: stretch;
}

.filter-card,
.definition-card,
.job-editor,
.file-analyzer {
  border-radius: 18px;
  padding: 20px;
}

.filter-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #52604e;
  background: #eef7e9;
  font-size: 12px;
  font-weight: 800;
}

.filter-card label,
.definition-card label,
.job-editor label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-card input,
.filter-card select,
.definition-card input,
.definition-card textarea,
.job-editor input,
.job-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbf4;
  color: var(--ink);
  padding: 12px 13px;
  outline: 0;
}

.filter-card button,
.talent-card button,
.job-card button,
.file-analyzer button,
.job-editor button {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #243022;
  font-weight: 800;
}

.file-analyzer .secondary-action,
.job-editor .secondary-action {
  color: #243022;
  background: rgba(127, 213, 60, 0.2);
}

.jobs-console {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.35fr);
  align-items: start;
}

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

.job-form-actions,
.job-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-card-actions button {
  flex: 1 1 120px;
}

.talent-results,
.job-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 12px 0;
}

.talent-card,
.job-card {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 132px;
  border-radius: 18px;
  padding: 18px;
}

.talent-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.talent-card strong,
.job-card h3 {
  margin: 0;
  font-size: 20px;
}

.talent-card div span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(127, 213, 60, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.talent-card p,
.job-card p,
.file-analyzer p {
  margin: 0;
  color: #687363;
  line-height: 1.55;
}

.talent-card small {
  color: #7b8675;
  font-weight: 800;
}

.job-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 12px 12px;
}

.job-card small {
  color: #7b8675;
  font-weight: 800;
}

.job-card span {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(127, 213, 60, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.definition-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

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

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

.core-definition textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.file-analyzer {
  display: grid;
  align-content: start;
  gap: 13px;
}

.file-analyzer h3 {
  margin: 0;
  font-size: 24px;
}

.company-paste-input {
  min-height: 104px;
  resize: vertical;
  line-height: 1.55;
}

.company-lark-input,
.company-paste-input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
}

.company-parse-status {
  min-height: 20px;
  color: #2f5f3b;
  font-size: 13px;
  font-weight: 800;
}

.analyzer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analyzer-tags span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf2;
  font-size: 12px;
  font-weight: 800;
}

.company-file-list {
  display: grid;
  gap: 8px;
  overscroll-behavior: contain;
}

.company-file-row {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 11px 42px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbf4;
  transition: transform 220ms ease, background 220ms ease;
}

.company-file-row strong {
  font-size: 13px;
}

.company-file-row span {
  color: #788372;
  font-size: 12px;
  font-weight: 700;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(34, 44, 31, 0.08);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  transition: width 320ms ease;
}

.parsed-preview {
  margin-top: 2px;
  color: #697463;
  font-size: 12px;
}

.parsed-preview summary {
  cursor: pointer;
  font-weight: 800;
}

.parsed-preview pre {
  max-height: 180px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid rgba(30, 38, 28, 0.08);
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.72);
  font-family: "Manrope", "Avenir Next", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.site-notes {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 28px;
  margin: 38px auto 0;
  padding: 20px 10px 28px;
  border-top: 1px solid rgba(31, 39, 27, 0.12);
  color: rgba(31, 39, 27, 0.42);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  opacity: var(--footer-opacity, 1);
  transform: translateY(var(--footer-shift, 0px));
  transition: opacity 180ms ease, transform 180ms ease;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex: 0 0 auto;
}

.site-notes p {
  margin: 0;
  text-align: right;
}

.site-notes a {
  margin: 0;
  color: rgba(31, 39, 27, 0.48);
  text-decoration: none;
}

.message {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  max-width: 86%;
  animation: riseIn 380ms ease both;
}

.message.user {
  align-self: flex-end;
  grid-template-columns: minmax(0, 1fr) 36px;
}

.message span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #293128;
  font-size: 12px;
  font-weight: 800;
}

.message.user span {
  order: 2;
  background: var(--green-deep);
}

.message p {
  margin: 0;
}

.message-stack,
.message-body {
  min-width: 0;
}

.message-stack {
  display: grid;
  gap: 7px;
}

.message-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #848b80;
  font-size: 13px;
  line-height: 1;
}

.message.user .message-actions {
  justify-content: flex-end;
}

.message-actions button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  color: #858c82;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.message-actions button:hover {
  color: #235421;
  background: rgba(238, 248, 232, 0.9);
  transform: translateY(-1px);
}

.message-actions time {
  color: #8a9186;
  font-size: 13px;
  font-weight: 700;
}

.formal-reply {
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(30, 38, 28, 0.07);
  border-radius: 16px;
  color: #30362e;
  background: #fff;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.formal-reply p + p {
  margin-top: 10px;
}

.reply-label {
  margin-bottom: 6px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
}

.thought-block {
  max-width: 100%;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(30, 38, 28, 0.06);
  border-radius: 14px;
  color: rgba(63, 70, 59, 0.62);
  background: rgba(242, 245, 239, 0.82);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
}

.thought-block[open] + .thought-preview {
  display: none;
}

.thought-block summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
}

.thought-block summary i {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(45, 141, 14, 0.18);
  border-top-color: var(--green-deep);
  border-radius: 50%;
  animation: spin 860ms linear infinite;
}

.thought-full,
.thought-preview {
  margin-top: 8px;
}

.thought-preview {
  display: -webkit-box;
  min-height: 40px;
  max-height: 44px;
  margin: 0 0 8px;
  padding: 0 12px 8px;
  color: rgba(63, 70, 59, 0.58);
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  overflow-wrap: anywhere;
  cursor: pointer;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thought-preview p {
  margin: 0;
}

.message.user .formal-reply {
  color: #172215;
  background: rgba(218, 246, 192, 0.72);
}

.message.user .reply-label {
  display: none;
}

.chat-heading-inline {
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.chat-table-wrap {
  width: 100%;
  margin: 10px 0;
  overflow-x: auto;
  border: 1px solid rgba(30, 38, 28, 0.08);
  border-radius: 14px;
  background: rgba(250, 252, 247, 0.86);
}

.chat-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.chat-table th,
.chat-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 38, 28, 0.07);
  border-right: 1px solid rgba(30, 38, 28, 0.06);
  text-align: left;
  vertical-align: top;
}

.chat-table th:last-child,
.chat-table td:last-child {
  border-right: 0;
}

.chat-table tr:last-child td {
  border-bottom: 0;
}

.chat-table th {
  color: #1f2d1d;
  background: rgba(227, 241, 218, 0.82);
  font-weight: 900;
}

.chat-list {
  margin: 8px 0;
  padding-left: 22px;
}

.chat-list li + li {
  margin-top: 5px;
}

.chat-callout {
  margin: 10px 0;
  padding: 11px 13px;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  color: #243220;
  background: rgba(230, 246, 218, 0.72);
  font-weight: 700;
}

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

.quick-action {
  min-width: 112px;
  padding: 10px 18px;
  border: 1px solid rgba(45, 105, 47, 0.22);
  border-radius: 999px;
  color: #235421;
  background: #eef8e8;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.quick-action:hover {
  transform: translateY(-1px);
  background: #dcf3cf;
  box-shadow: 0 10px 22px rgba(43, 97, 36, 0.14);
}

.output-choice-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(45, 105, 47, 0.16);
  border-radius: 18px;
  background: rgba(247, 252, 243, 0.94);
}

.output-choice-title {
  color: #263521;
  font-size: 14px;
  font-weight: 900;
}

.output-choice-options,
.output-format-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.output-choice-options label,
.output-format-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(45, 105, 47, 0.16);
  border-radius: 999px;
  color: #263521;
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}

.output-choice-options input,
.output-format-options input {
  accent-color: #2f722c;
}

.output-choice-hint {
  margin: 0;
  color: #617058;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

.output-choice-footer,
.module-edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.remember-output-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #72806d;
  font-size: 12px;
  font-weight: 800;
}

.output-choice-footer > .quick-action,
.module-edit-actions > .quick-action {
  justify-self: start;
}

.inline-intake-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(45, 105, 47, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(127, 213, 60, 0.16), transparent 30%),
    rgba(247, 252, 243, 0.94);
}

.inline-form-title {
  color: #263521;
  font-size: 14px;
  font-weight: 900;
}

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

.inline-intake-grid label {
  display: grid;
  gap: 5px;
  color: #5d6b55;
  font-size: 12px;
  font-weight: 800;
}

.inline-intake-grid b {
  color: #d83f38;
}

.inline-intake-grid input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(29, 41, 26, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  color: #1f261d;
  font: inherit;
}

.inline-intake-grid input.is-missing {
  border-color: rgba(255, 77, 79, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.12);
}

.inline-intake-form > .quick-action {
  justify-self: start;
}

.module-edit-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(127, 213, 60, 0.28);
  border-radius: 16px;
  background: #f7fbf4;
}

.module-edit-form label {
  display: grid;
  gap: 8px;
  color: #52604e;
  font-size: 13px;
  font-weight: 900;
}

.module-edit-form textarea {
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

.export-waiting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #52604e;
  font-weight: 900;
}

.export-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(127, 213, 60, 0.25);
  border-top-color: #2f7d2c;
  animation: spin 0.8s linear infinite;
}

.chat-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7faf3;
}

.chat-input textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(30, 38, 28, 0.08);
  border-radius: 12px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  resize: none;
  overflow: auto;
  overscroll-behavior: contain;
  line-height: 1.55;
  padding: 8px 11px;
}

.chat-input button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-weight: 800;
}

.chat-input button:last-child {
  color: #fff;
  background: #263024;
}

.chat-input button:disabled,
.chat-input textarea:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.chat-input button[type="submit"]:disabled {
  color: rgba(255, 255, 255, 0.86);
  background: #8a9186;
}

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

.output-list,
.history-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: calc(100% - 62px);
  overflow: auto;
  overscroll-behavior: contain;
}

.output-card.is-list-expanded .output-list {
  max-height: calc(100% - 62px);
}

.output-card.is-list-expanded {
  z-index: 42;
  overflow: hidden;
  box-shadow: 0 30px 72px rgba(13, 18, 12, 0.18);
}

.recruit-module:not(.is-chat-expanded) .output-card.is-list-expanded {
  flex: 0 0 min(62vh, 520px);
  max-height: min(62vh, 520px);
  min-height: 360px;
  transform: translateY(-5px) scale(1.018);
  box-shadow: 0 34px 82px rgba(13, 18, 12, 0.22);
}

.recruit-module:not(.is-chat-expanded) .output-card.is-list-expanded::after {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 30px;
  background:
    radial-gradient(circle at 72% 18%, rgba(127, 213, 60, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.48);
  filter: blur(2px);
}

.output-card.is-list-expanded .output-list {
  max-height: calc(100% - 64px);
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.output-card.is-list-expanded .output-item {
  min-height: 54px;
  padding-block: 8px;
}

.recruit-module.is-chat-expanded .output-card.is-preview-open .output-list,
.recruit-module.is-chat-expanded .output-card:focus-within .output-list,
.recruit-module.is-chat-expanded .history-card.is-preview-open .history-list,
.recruit-module.is-chat-expanded .history-card:focus-within .history-list {
  max-height: min(52vh, 430px);
  padding-right: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.recruit-module.is-chat-expanded .output-card.is-preview-open,
.recruit-module.is-chat-expanded .history-card.is-preview-open,
.recruit-module.is-chat-expanded .output-card:focus-within,
.recruit-module.is-chat-expanded .history-card:focus-within {
  pointer-events: auto;
}

.recruit-module.is-chat-expanded .output-card.is-preview-open button,
.recruit-module.is-chat-expanded .output-card.is-preview-open a,
.recruit-module.is-chat-expanded .history-card.is-preview-open button,
.recruit-module.is-chat-expanded .history-card.is-preview-open a,
.recruit-module.is-chat-expanded .output-card:focus-within button,
.recruit-module.is-chat-expanded .output-card:focus-within a,
.recruit-module.is-chat-expanded .history-card:focus-within button,
.recruit-module.is-chat-expanded .history-card:focus-within a {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.recruit-module.is-chat-expanded .output-card.is-preview-open .output-item,
.recruit-module.is-chat-expanded .output-card:focus-within .output-item {
  min-height: 54px;
  padding-block: 8px;
}

.output-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "type title action"
    "time desc action";
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(30, 38, 28, 0.07);
  border-radius: 14px;
  text-align: left;
  background: var(--panel-soft);
  transition: transform 220ms ease, background 220ms ease;
}

.output-item.is-unread,
.history-item.is-unread {
  border-color: rgba(255, 77, 79, 0.34);
  box-shadow: inset 3px 0 0 rgba(255, 77, 79, 0.78);
}

.output-item:hover,
.history-item:hover,
.company-file-row:hover {
  transform: translateY(-2px);
  background: #fff;
}

.output-item small {
  grid-area: type;
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(232, 246, 223, 0.84);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.output-item strong {
  grid-area: title;
  min-width: 0;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-time {
  grid-area: time;
  white-space: nowrap;
  color: rgba(93, 105, 86, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.output-item span {
  grid-area: desc;
  min-width: 0;
  color: #7a8374;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-link {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 148px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(45, 141, 14, 0.16);
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(238, 248, 232, 0.78);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.output-link:hover {
  transform: translateY(-1px);
  background: #e1f4d8;
  box-shadow: 0 10px 20px rgba(45, 141, 14, 0.12);
}

.history-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(30, 38, 28, 0.07);
  border-radius: 14px;
  text-align: left;
  background: #f7faf4;
  transition: transform 220ms ease, background 220ms ease;
}

.history-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-height: 48px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.unread-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #ff4d4f;
  box-shadow: 0 8px 16px rgba(255, 77, 79, 0.26);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.item-badge {
  position: absolute;
  top: 10px;
  right: 42px;
  z-index: 3;
}

.message > span {
  position: relative;
}

.message-badge {
  position: absolute;
  top: -11px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-width: 2px;
  font-size: 10px;
}

.side-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  pointer-events: none;
  transform: none;
}

.side-card-badge:empty {
  display: none;
}

.recruit-module.is-chat-expanded .output-card > .side-card-badge,
.recruit-module.is-chat-expanded .history-card > .side-card-badge {
  top: 50%;
  right: 50%;
  opacity: 1;
  pointer-events: none;
  transform: translate(50%, 28px);
}

.recruit-module.is-chat-expanded .output-card:not(.is-preview-open):not(:focus-within) > .side-card-badge,
.recruit-module.is-chat-expanded .history-card:not(.is-preview-open):not(:focus-within) > .side-card-badge {
  opacity: 1;
  transform: translate(50%, 28px);
}

.delete-button {
  display: grid;
  width: 26px;
  height: 26px;
  min-height: 0;
  place-items: center;
  border: 1px solid rgba(30, 38, 28, 0.08);
  border-radius: 50%;
  color: rgba(42, 49, 39, 0.56);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.output-item > .delete-button,
.company-file-row > .delete-button {
  position: absolute;
  top: 4px;
  right: 4px;
  opacity: 0;
  transform: scale(0.9);
}

.output-item:hover > .delete-button,
.company-file-row:hover > .delete-button,
.output-item:focus-within > .delete-button,
.company-file-row:focus-within > .delete-button {
  opacity: 1;
  transform: scale(1);
}

.delete-button:hover {
  color: #fff;
  background: #243022;
  transform: scale(1.08);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .dashboard-screen {
    padding: 24px;
  }

  .primary-tabs {
    position: static;
    order: 3;
    width: 100%;
    overflow-x: auto;
    transform: none;
  }

  .topbar {
    flex-wrap: wrap;
    top: 24px;
    width: min(100% - 48px, 1052px);
    margin-bottom: 38px;
  }

  .intro-row,
  .module-grid,
  .library-layout,
  .company-layout,
  .jobs-console {
    flex-direction: column;
    display: flex;
  }

  .assistant-card {
    width: 100%;
    margin-top: 0;
  }

  .intro-row {
    margin-top: 158px;
  }

  .insights-column {
    min-width: 0;
    width: 100%;
  }

  .recruit-module.is-chat-expanded .module-grid {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .recruit-module.is-chat-expanded .chat-card {
    flex: 0 0 auto;
    height: min(56vh, 560px);
    min-height: 440px;
  }

  .recruit-module.is-chat-expanded .chat-flow {
    min-height: 0;
  }

  .recruit-module.is-chat-expanded .insights-column {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .recruit-module.is-chat-expanded .output-card,
  .recruit-module.is-chat-expanded .history-card,
  .recruit-module.is-chat-expanded .output-card:hover,
  .recruit-module.is-chat-expanded .history-card:hover,
  .recruit-module.is-chat-expanded .output-card:focus-within,
  .recruit-module.is-chat-expanded .history-card:focus-within,
  .recruit-module.is-chat-expanded .output-card.is-preview-open,
  .recruit-module.is-chat-expanded .history-card.is-preview-open {
    flex: 0 0 auto;
    width: 100%;
    max-height: none;
    min-height: 210px;
    padding: 20px;
    overflow: hidden;
    transform: none;
  }

  .recruit-module.is-chat-expanded .output-card::before,
  .recruit-module.is-chat-expanded .history-card::before {
    content: none;
  }

  .recruit-module.is-chat-expanded .output-card > *,
  .recruit-module.is-chat-expanded .history-card > * {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .recruit-module.is-chat-expanded .output-card.is-preview-open .output-list,
  .recruit-module.is-chat-expanded .output-card:focus-within .output-list,
  .recruit-module.is-chat-expanded .history-card.is-preview-open .history-list,
  .recruit-module.is-chat-expanded .history-card:focus-within .history-list {
    max-height: 320px;
  }

  .talent-results,
  .job-board,
  .definition-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    padding: 12px;
  }

  .dashboard-screen {
    min-height: calc(100vh - 24px);
    padding: 16px;
    border-radius: 18px;
  }

  .topbar {
    top: 16px;
    width: calc(100% - 32px);
  }

  .dashboard-screen::before {
    top: -20px;
    font-size: 88px;
  }

  h1 {
    font-size: 34px;
  }

  .intro-row {
    margin-top: 172px;
  }

  .module-bar,
  .summary-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .module-tabs,
  .module-actions,
  .assistant-prompts {
    overflow-x: auto;
  }

  .module-tab,
  .module-actions button,
  .assistant-prompts button {
    white-space: nowrap;
  }

  .chat-card {
    min-height: 560px;
  }

  .chat-flow {
    min-height: 360px;
    padding: 16px;
  }

  .agent-setup-options,
  .model-provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recruit-module.is-chat-expanded .chat-card,
  .chat-expand-button,
  .output-card,
  .history-card,
  .module-grid,
  .module-tab,
  .module-actions button {
    animation: none;
    transition-duration: 1ms;
  }
}

.view-switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 8px 0 2px;
  padding: 10px 12px;
  border: 1px solid rgba(74, 124, 89, 0.22);
  border-radius: 12px;
  background: #4a7c59;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.new-mode .dashboard-shell,
.new-mode .site-notes {
  display: none;
}

.new-mode {
  background: #f8f4ec;
}

.new-mode .auth-gate {
  background:
    radial-gradient(circle at 32% 36%, rgba(229, 233, 220, 0.78), transparent 30%),
    linear-gradient(90deg, #f3f0e8 0%, #faf7f1 48%, #f4efe6 100%);
  backdrop-filter: none;
}

.new-mode .auth-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: min(486px, calc(100vw - 36px));
  padding: 48px;
  border: 1px solid rgba(228, 224, 216, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 42px rgba(46, 50, 48, 0.12);
}

.new-mode .auth-brand-block {
  text-align: center;
}

.new-mode .auth-logo {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  place-items: center;
  border-radius: 50%;
  background: #f0ece4;
  color: #4a7c59;
  box-shadow: 0 2px 8px rgba(46, 50, 48, 0.16);
}

.new-mode .auth-logo .material-symbols-outlined {
  font-size: 34px;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 40;
}

.new-mode .auth-kicker {
  display: none;
}

.new-mode .auth-panel h2 {
  margin: 0 0 8px;
  color: #2e3230;
  font-family: "Literata", Georgia, serif;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.new-mode .auth-panel p {
  color: #555d56;
  font-family: "Nunito Sans", "Manrope", sans-serif;
  font-size: 17px;
}

.new-mode .auth-form {
  gap: 22px;
}

.new-mode .auth-form label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  color: #2e3230;
  font-family: "Nunito Sans", "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.new-mode .auth-form label a {
  color: #4a7c59;
  font-size: 14px;
}

.new-mode .auth-input-wrap {
  grid-column: 1 / -1;
  min-height: 66px;
  padding: 0 18px;
  border: 1.5px solid #c4c8bc;
  border-radius: 16px;
  background: #fbf8f2;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.new-mode .auth-input-wrap:focus-within {
  border-color: #4a7c59;
  box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.12);
}

.new-mode .auth-input-wrap .material-symbols-outlined {
  color: #555d56;
}

.new-mode .auth-form input {
  min-height: 0;
  flex: 1;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #2e3230;
  font-size: 18px;
}

.auth-pw-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #555d56;
  line-height: 0;
}
.auth-pw-toggle:hover { color: #4a7c59; }
.auth-caps-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #b06a00;
}
.auth-caps-warning .material-symbols-outlined { font-size: 18px; }

.new-mode .auth-invite-row {
  margin-top: -8px;
}

.new-mode .auth-actions {
  display: grid;
  gap: 16px;
  margin-top: 2px;
}

.new-mode .auth-actions button {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  font-size: 18px;
}

.new-mode .auth-actions button:first-child {
  background: #4a7c59;
}

.new-mode .auth-actions button:last-child {
  min-height: auto;
  background: transparent;
  color: #4a7c59;
  font-size: 16px;
}

.new-workbench {
  --new-bg: #faf6f0;
  --new-surface: #fffdf8;
  --new-soft: #f5f1ea;
  --new-panel: #ffffff;
  --new-line: rgba(116, 121, 110, 0.18);
  --new-ink: #2e3230;
  --new-muted: #6f766d;
  --new-primary: #4a7c59;
  --new-primary-soft: #d8f0de;
  --new-tertiary: #705c30;
  --new-tertiary-soft: #f8e0a8;
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 240, 222, 0.5), transparent 24%),
    linear-gradient(180deg, #faf6f0 0%, #f3efe7 100%);
  color: var(--new-ink);
  font-family: "Nunito Sans", "Manrope", "Avenir Next", Helvetica, Arial, sans-serif;
}

.new-workbench.hidden {
  display: none;
}

.new-sidebar {
  display: flex;
  width: 256px;
  flex: 0 0 256px;
  flex-direction: column;
  padding: 18px;
  border-right: 1px solid var(--new-line);
  background: rgba(245, 241, 234, 0.92);
  box-shadow: 4px 0 22px rgba(46, 50, 48, 0.06);
}

.new-brand,
.new-user-profile,
.new-topbar,
.new-top-actions,
.new-card-head,
.new-row-actions,
.new-page-head,
.new-mini-stats,
.new-user-actions {
  display: flex;
  align-items: center;
}

.new-brand {
  gap: 12px;
  padding: 12px 8px 22px;
}

.new-brand-mark,
.new-profile-photo {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--new-primary-soft);
  color: #21492f;
  font-size: 24px;
  font-weight: 900;
}

.new-brand-mark {
  width: 42px;
  height: 42px;
}

.new-brand strong {
  display: block;
  color: var(--new-primary);
  font-family: "Literata", Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.new-brand span,
.new-user-profile span,
.new-page-head span,
.new-muted {
  color: var(--new-muted);
}

.new-brand span {
  font-size: 12px;
}

.new-page-actions button,
.new-row-actions button,
.new-company-edit-form button,
.new-panel form > button,
.new-user-actions button {
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--new-primary);
  color: #fff;
  font-weight: 800;
}

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

.new-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--new-muted);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.new-nav .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 350, "GRAD" 0, "opsz" 24;
}

.new-nav button.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.new-nav button:hover,
.new-nav button.active,
.new-top-actions button:hover {
  background: #f0e8db;
  color: var(--new-primary);
}

.new-user-card {
  margin-top: auto;
  padding: 12px;
  border-radius: 22px;
  background: rgba(228, 224, 216, 0.5);
}

.new-user-profile {
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.new-avatar-dot,
.new-avatar {
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, #f8e0a8 0 18%, transparent 19%),
    linear-gradient(135deg, #4a7c59, #8ecf9e);
}

.new-avatar-dot {
  width: 40px;
  height: 40px;
}

.new-user-photo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

.new-user-profile img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

.new-user-profile strong {
  display: block;
  color: var(--new-ink);
  font-size: 15px;
  font-weight: 900;
}

.new-user-profile span {
  display: block;
  font-size: 13px;
}

.new-main-shell {
  flex: 1;
  min-width: 0;
  overflow: auto;
}

.new-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  justify-content: flex-end;
  gap: 20px;
  min-height: 70px;
  padding: 14px 34px;
  border-bottom: 1px solid rgba(196, 200, 188, 0.2);
  background: rgba(250, 246, 240, 0.82);
  backdrop-filter: blur(18px);
}

.new-top-back {
  display: grid;
  width: 42px;
  height: 42px;
  margin-right: auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--new-primary);
}

.new-top-back.hidden {
  display: none;
}

.new-top-back .material-symbols-outlined {
  font-size: 34px;
  font-weight: 300;
}

.new-search {
  position: relative;
  display: flex;
  width: min(430px, 46vw);
  align-items: center;
}

.new-search span {
  position: absolute;
  left: 14px;
  color: var(--new-muted);
}

.new-search input,
.new-project-card input,
.new-job-card input,
.new-project-card select,
.new-panel select,
.new-panel input,
.new-panel textarea,
.new-company-edit-form textarea,
.new-project-card textarea,
.new-job-card textarea,
.new-textarea-card textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--new-soft);
  color: var(--new-ink);
  outline: none;
}

.new-search input {
  height: 42px;
  padding: 0 16px 0 42px;
}

.new-company-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(260px, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: center;
  width: 100%;
  min-height: 92px;
  margin: 0 0 42px;
  padding: clamp(14px, 1.8vw, 20px) clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(196, 200, 188, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(102deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.98) 84%, rgba(228, 239, 232, 0.7) 84% 100%);
  box-shadow: 0 14px 34px rgba(46, 50, 48, 0.06);
}

.new-company-hero::after {
  content: "HR";
  position: absolute;
  right: 20px;
  top: 18px;
  color: rgba(74, 124, 89, 0.07);
  font-family: "Literata", Georgia, serif;
  font-size: 126px;
  font-weight: 900;
  transform: rotate(12deg);
}

.new-company-intro,
.new-company-context {
  position: relative;
  z-index: 1;
}

.new-company-intro {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.new-company-intro h2,
.new-projects-title h1 {
  margin: 0;
  color: var(--new-ink);
  font-family: "Literata", Georgia, serif;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.new-company-intro p {
  max-width: 300px;
  margin: 0;
  color: #555d56;
  font-size: 14px;
  line-height: 1.4;
}

.new-company-intro button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(112, 92, 48, 0.18);
  border-radius: 999px;
  background: #f0e8db;
  color: var(--new-primary);
  font-size: 14px;
  font-weight: 900;
}

.new-company-context {
  max-height: 68px;
  overflow: auto;
  padding: 12px 18px;
  border: 1px solid rgba(196, 200, 188, 0.24);
  border-radius: 20px;
  background: #f7f1e8;
  color: #4f5650;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.new-company-edit-form {
  display: none;
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  gap: 14px;
}

.new-company-hero.is-editing {
  width: 100%;
  grid-template-columns: 1fr;
  align-items: start;
}

.new-company-hero.is-editing .new-company-intro {
  flex-wrap: wrap;
}

.new-company-hero.is-editing .new-company-context {
  display: none;
}

.new-company-hero.is-editing .new-company-edit-form {
  display: grid;
}

.new-company-edit-form textarea {
  min-height: clamp(160px, 22vh, 320px);
  padding: 18px 20px;
  border: 1px solid rgba(196, 200, 188, 0.24);
  border-radius: 20px;
  background: #f7f1e8;
  color: #4f5650;
  font-size: 16px;
  line-height: 1.62;
  resize: vertical;
}

.new-projects-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 36px;
}

.new-projects-title h1 {
  margin: 0;
  font-size: 38px;
}

.new-projects-title div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.new-projects-title > div:first-child {
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
}

.new-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f0e8db;
  color: #705c30;
  font-size: 13px;
  font-weight: 900;
}

.new-scope-pill button {
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.85);
  color: var(--new-primary);
  font-size: 12px;
}

.new-management-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.new-segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #f0ece4;
}

.new-segmented button,
.new-projects-title .new-segmented button {
  min-width: auto;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #697169;
  font-size: 13px;
  font-weight: 900;
}

.new-segmented button.active,
.new-projects-title .new-segmented button.active {
  background: #fffdf8;
  color: var(--new-primary);
  box-shadow: 0 6px 18px rgba(46, 50, 48, 0.08);
}

.new-segmented.subtle button.active {
  color: #705c30;
}

.new-projects-title button {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f0ece4;
  color: #4f5650;
  font-weight: 900;
}

.new-management-toolbar > button {
  padding: 0 18px;
  background: var(--new-primary);
  color: #fff;
}

.new-projects-title .new-segmented button {
  min-width: auto;
  min-height: 34px;
  padding: 0 14px;
  background: transparent;
  color: #697169;
}

.new-projects-title .new-segmented button.active {
  background: #fffdf8;
  color: var(--new-primary);
}

.new-top-actions {
  gap: 10px;
}

.new-top-actions button,
.new-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--new-muted);
  font-weight: 900;
  position: relative;
}

.new-top-actions button i {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b83230;
}

.new-top-actions button.active,
.new-top-actions button[data-new-page="settings"].active {
  color: var(--new-primary);
  box-shadow: inset 0 -2px 0 var(--new-primary);
}

.new-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 4vw, 52px) clamp(32px, 5vw, 72px) 70px;
}

.new-page-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.new-back-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: -18px 0 20px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--new-primary);
}

.new-back-icon .material-symbols-outlined {
  font-size: 42px;
  font-weight: 300;
}

.new-page-head p {
  margin: 0 0 8px;
  color: var(--new-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.new-page-head h1 {
  margin: 0 0 8px;
  font-family: "Literata", Georgia, serif;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.new-page-actions button,
.new-row-actions button,
.new-panel form > button {
  padding: 10px 14px;
}

.new-notice {
  margin: -10px 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(74, 124, 89, 0.18);
  border-radius: 14px;
  background: rgba(216, 240, 222, 0.55);
  color: #2a6038;
  font-size: 13px;
  font-weight: 800;
}

.new-panel,
.new-project-card,
.new-empty-card,
.new-stats-grid article,
.new-talent-card {
  border: 1px solid rgba(196, 200, 188, 0.24);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 32px rgba(46, 50, 48, 0.07);
}

.new-panel,
.new-project-card,
.new-empty-card,
.new-talent-card {
  padding: 22px;
}

.new-panel form,
.new-project-card form,
.new-job-card form {
  display: grid;
  gap: 12px;
}

.new-panel label,
.new-textarea-card {
  display: grid;
  gap: 8px;
  color: var(--new-muted);
  font-size: 13px;
  font-weight: 900;
}

.new-project-grid,
.new-talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: clamp(16px, 2vw, 24px);
  margin-top: 20px;
}

.new-project-grid {
  align-items: start;
  justify-content: start;
}

.new-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.new-card-head {
  justify-content: space-between;
  gap: 10px;
}

.new-card-head input {
  font-size: 17px;
  font-weight: 900;
}

.new-project-edit input,
.new-job-edit input,
.new-project-edit select,
.new-panel select,
.new-panel input {
  min-height: 42px;
  padding: 0 12px;
}

.new-project-edit textarea,
.new-job-edit textarea,
.new-panel textarea,
.new-textarea-card textarea {
  min-height: 78px;
  padding: 12px;
  resize: vertical;
}

.new-row-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.new-row-actions button:nth-child(n + 2) {
  border-color: var(--new-line);
  background: #fff;
  color: var(--new-primary);
}

.new-job-list {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.new-job-card,
.new-candidate-card,
.new-rank-row {
  border-radius: 16px;
  background: #faf6f0;
  padding: 14px;
}

.new-project-card {
  position: relative;
  padding: 0;
  overflow: visible;
  aspect-ratio: 2 / 3;
  width: 100%;
  min-height: 0;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.96);
}

.new-project-card.is-expanded {
  aspect-ratio: auto;
}

.new-project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.new-project-card-head > span {
  padding: 6px 12px;
  border-radius: 10px;
  background: #f0e8db;
  color: #705c30;
  font-size: 14px;
  font-weight: 900;
}

.new-project-card-head button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4f5650;
}

.new-project-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-project-card-actions > button {
  width: auto;
  min-width: 70px;
  height: 32px;
  padding: 0 10px;
  background: #f0ece4;
  color: var(--new-primary);
  font-size: 13px;
  font-weight: 900;
}

.new-project-menu-wrap {
  position: relative;
}

.new-project-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  display: grid;
  min-width: 124px;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(196, 200, 188, 0.28);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 16px 38px rgba(46, 50, 48, 0.14);
}

.new-project-menu button {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--new-ink);
  font-size: 14px;
  font-weight: 900;
}

.new-project-menu button:hover {
  background: #f0ece4;
}

.new-project-card > h2 {
  margin: 14px 20px 10px;
  color: var(--new-ink);
  font-family: "Literata", Georgia, serif;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.new-project-card > p {
  min-height: 56px;
  margin: 0;
  padding: 0 20px 18px;
  color: #555d56;
  font-size: 18px;
  line-height: 1.45;
}

.new-project-edit,
.new-job-edit {
  display: none;
}

.new-project-edit.is-open,
.new-job-edit.is-open {
  display: grid;
}

.new-project-edit.is-open {
  position: absolute;
  inset: 64px 14px auto;
  z-index: 5;
  max-height: calc(100% - 80px);
  margin: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(196, 200, 188, 0.3);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 38px rgba(46, 50, 48, 0.16);
}

.new-project-jobs-head {
  padding: 28px 30px 0;
  border-top: 1px solid rgba(196, 200, 188, 0.2);
  color: var(--new-ink);
  font-family: "Literata", Georgia, serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.new-project-card .new-job-list {
  padding: 0 30px 30px;
}

.new-project-job-rows {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px 20px 20px;
}

.new-project-job-rows.is-faded {
  max-height: 262px;
  overflow: hidden;
  cursor: pointer;
}

.new-project-job-rows.is-faded::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 124px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.05), rgba(255, 253, 248, 0.82));
  backdrop-filter: blur(7px);
  pointer-events: none;
}

.new-project-job-row-wrap {
  display: grid;
  gap: 10px;
}

.new-project-job-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 8px 0 14px;
  border-radius: 14px;
  background: #f0ece4;
}

.new-project-job-row > button:first-child {
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--new-ink);
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-project-job-row .new-project-menu-wrap > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.new-job-more-glass {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.58);
  color: var(--new-primary);
  box-shadow: 0 10px 24px rgba(46, 50, 48, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.new-project-collapse {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: #f0e8db;
  color: var(--new-primary);
  font-weight: 900;
}

.new-managed-job-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(196, 200, 188, 0.24);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 32px rgba(46, 50, 48, 0.07);
}

.new-managed-job-top {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding-right: 32px;
}

.new-managed-job-top strong {
  display: block;
  color: var(--new-ink);
  font-family: "Literata", Georgia, serif;
  font-size: 20px;
  line-height: 1.16;
  font-weight: 750;
}

.new-managed-job-top small {
  display: block;
  margin-top: 4px;
  color: var(--new-muted);
  font-size: 12px;
  font-weight: 700;
}

.new-managed-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.new-managed-metrics span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 14px;
  background: #f0ece4;
  color: var(--new-muted);
  font-size: 11px;
  font-weight: 750;
}

.new-managed-metrics b {
  color: var(--new-ink);
  font-family: "Literata", Georgia, serif;
  font-size: 21px;
  line-height: 1;
  font-weight: 750;
}

.new-job-delete-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f0ece4;
  color: #8d5a4f;
}

.new-job-delete-icon .material-symbols-outlined {
  font-size: 18px;
}

.new-job-delete-icon:hover {
  background: #f2ded9;
  color: #9f2f24;
}

.new-job-card {
  padding: 0;
  border-radius: 20px;
  background: #f0ece4;
}

.new-job-display {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 20px 22px;
}

.new-job-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #e6eadf;
  color: var(--new-primary);
}

.new-job-icon .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.new-job-display strong {
  color: var(--new-ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.new-job-display button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #e7e2d8;
  color: #4f5650;
  font-size: 16px;
  font-weight: 900;
}

.new-job-display button:hover,
.new-job-display button:focus {
  background: #77ad84;
  color: #fff;
}

.new-job-fields,
.new-analysis-grid,
.new-analysis-title-row,
.new-two-col,
.new-stats-grid {
  display: grid;
  gap: 18px;
}

.new-job-fields,
.new-analysis-title-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.new-analysis-grid,
.new-two-col,
.new-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.new-wide-actions {
  grid-column: 1 / -1;
}

.new-textarea-card textarea {
  min-height: 220px;
}

.new-manual-stage {
  position: relative;
}

.new-manual-intake-panel,
.new-manual-modules {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.new-manual-intake-panel label,
.new-manual-module-card {
  display: grid;
  gap: 8px;
  color: var(--new-muted);
  font-size: 13px;
  font-weight: 900;
}

.new-required-star {
  color: #c69c53;
  font-size: 13px;
  font-style: normal;
  line-height: 1;
}

.new-manual-intake-panel input,
.new-manual-intake-panel textarea,
.new-manual-module-card textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--new-soft);
  color: var(--new-ink);
  outline: none;
}

.new-manual-intake-panel input {
  min-height: 48px;
  padding: 0 14px;
  color: var(--new-ink);
  font-size: 17px;
  font-weight: 900;
}

.new-manual-intake-panel textarea {
  min-height: 96px;
  padding: 14px;
  resize: vertical;
}

.new-manual-module-card {
  padding: 20px;
  border: 1px solid rgba(196, 200, 188, 0.24);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 32px rgba(46, 50, 48, 0.06);
}

.new-manual-module-card span {
  color: var(--new-primary);
  font-family: "Literata", Georgia, serif;
  font-size: 20px;
}

.new-manual-module-card textarea {
  min-height: 280px;
  padding: 16px;
  line-height: 1.62;
  resize: vertical;
}

.new-handbook-hero {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 18%, rgba(216, 240, 222, 0.65), transparent 22%),
    linear-gradient(135deg, rgba(231, 237, 224, 0.88), rgba(245, 241, 234, 0.96));
}

.new-handbook-hero-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 18px;
  background: #fffdf8;
  color: var(--new-primary);
  box-shadow: 0 12px 24px rgba(46, 50, 48, 0.1);
}

.new-handbook-hero-icon .material-symbols-outlined {
  font-size: 38px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.new-handbook-hero p {
  margin: 0 0 6px;
  color: var(--new-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.new-handbook-hero h2 {
  margin: 0 0 12px;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.new-handbook-hero blockquote {
  margin: 0;
  color: #4f5650;
  font-size: 17px;
  line-height: 1.7;
}

.new-handbook-module-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(196, 200, 188, 0.18);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 42px rgba(46, 50, 48, 0.07);
}

.new-handbook-module-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.new-handbook-module-card small {
  color: var(--new-primary);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.new-handbook-module-card h3 {
  margin: 4px 0 0;
  font-family: "Literata", Georgia, serif;
  font-size: 25px;
  line-height: 1.15;
}

.new-handbook-module-card > header button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(74, 124, 89, 0.24);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--new-primary);
  font-weight: 900;
}

.new-handbook-module-card > header .material-symbols-outlined {
  font-size: 18px;
}

.new-handbook-preview {
  padding: 22px;
  border-radius: 18px;
  background: #f2eee7;
  color: var(--new-ink);
  font-size: 15px;
  line-height: 1.72;
}

.new-handbook-preview p {
  margin: 0 0 12px;
}

.new-handbook-preview ul,
.new-handbook-preview ol {
  margin: 10px 0 14px;
  padding-left: 22px;
}

.new-handbook-preview strong {
  color: var(--new-ink);
}

.new-handbook-edit {
  border-top: 1px solid rgba(196, 200, 188, 0.18);
  padding-top: 12px;
}

.new-handbook-edit summary {
  cursor: pointer;
  color: var(--new-primary);
  font-weight: 900;
}

.new-handbook-edit textarea {
  width: 100%;
  min-height: 260px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(196, 200, 188, 0.18);
  border-radius: 16px;
  background: var(--new-soft);
  color: var(--new-ink);
  line-height: 1.62;
}

.new-handbook-visuals {
  display: grid;
  gap: 22px;
}

.new-template-shell {
  display: grid;
  gap: 24px;
}

.new-template-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 4px 0 8px;
}

.new-template-crumb {
  margin-bottom: 10px;
  color: var(--new-muted);
  font-size: 13px;
  font-weight: 800;
}

.new-template-top h2 {
  margin: 0 0 10px;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
}

.new-template-top p {
  max-width: 760px;
  margin: 0;
  color: #58615a;
  font-size: 16px;
  line-height: 1.7;
}

.new-template-actions {
  display: flex;
  gap: 10px;
}

.new-template-actions span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(74, 124, 89, 0.24);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--new-primary);
  font-weight: 900;
}

.new-template-actions .material-symbols-outlined {
  font-size: 18px;
}

.new-template-nav {
  position: sticky;
  top: 78px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(196, 200, 188, 0.2);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 16px 36px rgba(44, 50, 46, 0.08);
  backdrop-filter: blur(18px);
}

.new-template-nav a {
  display: grid;
  gap: 3px;
  min-height: 58px;
  align-content: center;
  padding: 0 14px;
  border-radius: 15px;
  color: var(--new-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.new-template-nav a:hover {
  background: var(--new-soft-green);
}

.new-template-nav b {
  color: var(--new-primary);
  font-size: 14px;
}

.new-template-module {
  position: relative;
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
  scroll-margin-top: 160px;
  border: 1px solid rgba(196, 200, 188, 0.18);
  border-radius: 32px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 22px 58px rgba(44, 50, 46, 0.09);
}

.new-template-module.is-generating > *:not(.new-module-loading) {
  filter: blur(3px);
  opacity: 0.48;
  pointer-events: none;
}

.new-template-module-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.new-template-index {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 24px;
  background: #e8f0e7;
  color: var(--new-primary);
  font-family: "Literata", Georgia, serif;
  font-size: 28px;
  font-weight: 900;
}

.new-template-module-head p {
  margin: 0 0 7px;
  color: var(--new-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.new-template-module-head h3 {
  margin: 0;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.new-template-module-head span:not(.material-symbols-outlined):not(.new-template-index) {
  display: block;
  margin-top: 10px;
  color: var(--new-muted);
  line-height: 1.65;
}

.new-template-module-head button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(74, 124, 89, 0.24);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--new-primary);
  font-weight: 900;
}

.new-template-module-head button .material-symbols-outlined {
  font-size: 18px;
}

.new-template-content {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 22px;
  background: #f2eee7;
  color: #414941;
  font-size: 15px;
  line-height: 1.78;
}

.new-template-content p {
  margin: 0;
}

.new-template-content strong {
  color: var(--new-ink);
}

.new-template-content ul,
.new-template-content ol {
  margin: 0;
  padding-left: 22px;
}

.new-template-content table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 18px;
  background: #fffdf8;
}

.new-template-content th,
.new-template-content td {
  padding: 12px 14px;
  border: 1px solid rgba(196, 200, 188, 0.22);
  text-align: left;
  vertical-align: top;
}

.new-template-content th {
  background: #e8f0e7;
  color: var(--new-primary);
}

.new-template-editable {
  min-height: 220px;
  outline: 0;
  transition: box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.new-template-editable:focus {
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.14);
}

.new-template-module-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.new-template-module-actions span {
  color: var(--new-muted);
  font-size: 13px;
  font-weight: 800;
}

.new-template-module-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(74, 124, 89, 0.24);
  border-radius: 999px;
  background: var(--new-primary);
  color: #fff;
  font-weight: 900;
}

.new-template-module-actions .material-symbols-outlined {
  font-size: 18px;
}

.new-module-loading {
  position: absolute;
  inset: 28px;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(196, 200, 188, 0.22);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.78);
  text-align: center;
  box-shadow: 0 22px 58px rgba(46, 50, 48, 0.14);
  backdrop-filter: blur(18px);
}

.new-module-loading strong {
  font-family: "Literata", Georgia, serif;
  font-size: 28px;
  line-height: 1.12;
}

.new-module-loading p {
  max-width: 360px;
  margin: 0;
  color: var(--new-muted);
  line-height: 1.55;
}

.new-export-popover {
  position: fixed;
  right: 34px;
  bottom: 102px;
  z-index: 35;
  display: grid;
  width: min(320px, calc(100vw - 42px));
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(196, 200, 188, 0.22);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 22px 58px rgba(46, 50, 48, 0.18);
  backdrop-filter: blur(18px);
}

.new-export-popover strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Literata", Georgia, serif;
  font-size: 22px;
}

.new-export-popover p {
  margin: 0 0 8px;
  color: var(--new-muted);
  line-height: 1.5;
}

.new-export-popover button {
  min-height: 42px;
  border: 1px solid rgba(74, 124, 89, 0.24);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--new-primary);
  font-weight: 900;
}

.new-template-edit {
  border-top: 1px solid rgba(196, 200, 188, 0.18);
  padding-top: 12px;
}

.new-template-edit summary {
  cursor: pointer;
  color: var(--new-primary);
  font-weight: 900;
}

.new-template-edit textarea {
  width: 100%;
  min-height: 280px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(196, 200, 188, 0.18);
  border-radius: 16px;
  background: var(--new-soft);
  color: var(--new-ink);
  line-height: 1.62;
  resize: vertical;
}

.new-handbook-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.new-handbook-section-title h2 {
  margin: 0;
  font-family: "Literata", Georgia, serif;
  font-size: 26px;
}

.new-handbook-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--new-muted);
  font-size: 13px;
  font-weight: 900;
}

.new-handbook-section-title i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--new-primary);
}

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

.new-competency-grid article,
.new-standards-table {
  border: 1px solid rgba(196, 200, 188, 0.16);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 28px rgba(46, 50, 48, 0.06);
}

.new-competency-grid article {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
}

.new-visual-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #f2f5ee;
  color: var(--new-primary);
}

.new-competency-grid strong {
  font-size: 18px;
}

.new-competency-grid p {
  margin: 0;
  color: #555d56;
  line-height: 1.6;
}

.new-competency-grid article > i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e3d8;
}

.new-competency-grid article > i::before {
  content: "";
  display: block;
  width: var(--score, 72%);
  height: 100%;
  border-radius: inherit;
  background: var(--new-primary);
}

.new-standards-table {
  overflow: hidden;
}

.new-standards-table div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(196, 200, 188, 0.15);
}

.new-standards-table div:last-child {
  border-bottom: 0;
}

.new-standards-table strong {
  color: var(--new-primary);
}

.new-standards-table p {
  margin: 0;
  color: #4f5650;
  line-height: 1.65;
}

.new-manual-error,
.new-manual-warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(159, 47, 36, 0.18);
  border-radius: 18px;
  background: rgba(252, 236, 232, 0.78);
  color: #7b3027;
}

.new-manual-warning {
  border-color: rgba(198, 156, 83, 0.22);
  background: rgba(255, 247, 225, 0.8);
  color: #705c30;
}

.new-manual-error .material-symbols-outlined,
.new-manual-warning .material-symbols-outlined {
  font-size: 26px;
}

.new-manual-error strong,
.new-manual-warning strong {
  display: block;
  margin-bottom: 4px;
  color: #6d281f;
}

.new-manual-warning strong {
  color: #705c30;
}

.new-manual-error p,
.new-manual-warning p {
  margin: 0;
  color: #8d5a4f;
  line-height: 1.5;
}

.new-manual-warning p {
  color: #705c30;
}

.new-orbit-loader {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(74, 124, 89, 0.92) 0 14px, transparent 15px),
    conic-gradient(from 0deg, rgba(74, 124, 89, 0.1), rgba(198, 156, 83, 0.65), rgba(74, 124, 89, 0.1));
  animation: newManualPulse 2.4s ease-in-out infinite;
}

.new-orbit-loader span {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: newManualOrbit 2.6s linear infinite;
}

.new-orbit-loader span:nth-child(1) {
  border-top-color: var(--new-primary);
}

.new-orbit-loader span:nth-child(2) {
  inset: 22px;
  border-right-color: #c69c53;
  animation-duration: 1.9s;
  animation-direction: reverse;
}

.new-orbit-loader span:nth-child(3) {
  inset: 34px;
  border-bottom-color: rgba(74, 124, 89, 0.65);
  animation-duration: 1.35s;
}

.new-floating-resume,
.new-floating-template {
  position: fixed;
  right: 34px;
  bottom: 34px;
  z-index: 30;
  min-width: 116px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--new-primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(46, 50, 48, 0.18);
}

@keyframes newManualOrbit {
  to { transform: rotate(360deg); }
}

@keyframes newManualPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 124, 89, 0.22); transform: scale(1); }
  50% { box-shadow: 0 0 0 18px rgba(74, 124, 89, 0.04); transform: scale(1.05); }
}

.new-candidate-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(228, 224, 216, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.new-candidate-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--new-primary-soft);
  color: var(--new-primary);
  font-size: 14px;
  font-weight: 900;
}

/* ===== 多选 ===== */
.new-multiselect-toggle.active {
  color: var(--new-primary, #4a7c59);
  font-weight: 800;
  background: rgba(74, 124, 89, 0.12);
}
.new-resume-section-head .danger {
  color: #b2483b;
}
.new-candidate-card.is-selectable {
  cursor: pointer;
  grid-template-columns: 22px 40px 1fr;
}
.new-candidate-card.is-selectable .new-candidate-avatar { grid-column: 2; }
.new-candidate-card.is-selectable .new-candidate-main { grid-column: 3; }
.new-candidate-check {
  display: grid;
  place-items: center;
  color: var(--new-muted, #9a948a);
}
.new-candidate-card.is-selected {
  border-color: var(--new-primary, #4a7c59);
  background: rgba(74, 124, 89, 0.08);
}
.new-candidate-card.is-selected .new-candidate-check { color: var(--new-primary, #4a7c59); }
.new-candidate-check .material-symbols-outlined { font-size: 20px; }

/* ===== 通用弹框 ===== */
.nh-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(38, 42, 40, 0.34);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.14s ease;
}
.nh-modal-overlay.is-open { opacity: 1; }
.nh-modal {
  width: min(440px, calc(100vw - 48px));
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(228, 224, 216, 0.9);
  box-shadow: 0 30px 80px rgba(40, 44, 42, 0.26);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.16s ease;
}
.nh-modal-overlay.is-open .nh-modal { transform: none; }
.nh-modal-title { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--new-ink, #2b2f2c); }
.nh-modal-message { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--new-muted, #6f6a60); }
.nh-modal-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(74, 124, 89, 0.28);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  margin-bottom: 12px;
}
textarea.nh-modal-input { resize: vertical; min-height: 76px; }
.nh-modal-input:focus { outline: none; border-color: var(--new-primary, #4a7c59); }
.nh-modal-field { margin-bottom: 12px; }
.nh-modal-field .nh-modal-input { margin-bottom: 0; }
.nh-modal-label { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 600; color: var(--new-muted, #6f6a60); }
.nh-modal-pw-wrap { position: relative; display: block; }
.nh-modal-pw-wrap .nh-modal-input { padding-right: 40px; }
.nh-modal-pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  color: #6f6a60;
  line-height: 0;
}
.nh-modal-pw-wrap .nh-modal-input { margin-bottom: 0; }
.nh-modal-pw-toggle:hover { color: var(--new-primary, #4a7c59); }
.nh-modal-pw-toggle .material-symbols-outlined { font-size: 20px; }
.nh-modal-caps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 12px;
  font-size: 12px;
  color: #b06a00;
}
.nh-modal-caps .material-symbols-outlined { font-size: 17px; }
.nh-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.nh-modal-actions button { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; }
.nh-modal-cancel { background: #f0ece4; color: var(--new-ink, #2b2f2c); }
.nh-modal-confirm { background: var(--new-primary, #4a7c59); color: #fff; }
.nh-modal-confirm.is-danger { background: #b2483b; }

.new-candidate-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.new-candidate-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.new-candidate-title em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(143, 148, 138, 0.14);
  color: var(--new-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.new-candidate-title em.is-scored {
  background: var(--new-primary-soft);
  color: var(--new-primary);
}

.new-candidate-main p {
  margin: 0;
  color: var(--new-muted);
  font-size: 13px;
  line-height: 1.55;
}

.new-candidate-card strong,
.new-talent-card strong {
  display: block;
  color: var(--new-ink);
  font-size: 17px;
}

.new-candidate-card span,
.new-talent-card span {
  color: var(--new-muted);
  font-size: 12px;
  line-height: 1.32;
}

.new-resume-screen {
  display: grid;
  gap: 24px;
  color: var(--new-ink);
}

.new-resume-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.new-resume-crumb {
  margin: 0 0 8px;
  color: var(--new-muted);
  font-size: 13px;
  font-weight: 800;
}

.new-resume-crumb strong {
  color: var(--new-primary);
}

.new-resume-hero h1 {
  margin: 0;
  color: #2e312e;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
}

.new-resume-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.new-resume-hero-actions button,
.new-resume-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--new-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(74, 124, 89, 0.2);
}

.new-resume-hero-actions .ghost {
  border-color: var(--new-primary);
  background: rgba(255, 253, 248, 0.72);
  color: var(--new-primary);
  box-shadow: none;
}

.new-resume-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
  align-items: end;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(210, 205, 195, 0.9);
  border-radius: 20px;
  background: rgba(244, 240, 233, 0.62);
  box-shadow: 0 2px 6px rgba(46, 50, 48, 0.04);
}

.new-resume-filter label {
  display: grid;
  gap: 8px;
  color: #333834;
  font-size: 13px;
  font-weight: 900;
}

.new-resume-filter select {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #262c27;
  font-size: 15px;
  font-weight: 800;
}

.new-resume-filter .link {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--new-primary);
  box-shadow: none;
  font-size: 14px;
}

.new-resume-columns {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 22px;
  align-items: start;
}

.new-resume-candidates,
.new-resume-ranking {
  display: grid;
  gap: 14px;
}

.new-resume-candidates {
  position: relative;
}

.new-resume-filter-popover {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 8;
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  padding: 14px;
  border: 1px solid rgba(226, 217, 203, 0.9);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 48px rgba(50, 40, 24, 0.13);
  backdrop-filter: blur(14px);
}

.new-resume-filter-popover section {
  display: grid;
  gap: 8px;
}

.new-resume-filter-popover strong {
  color: var(--new-ink);
  font-size: 13px;
}

.new-resume-filter-popover section div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.new-resume-filter-popover button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(218, 210, 195, 0.9);
  border-radius: 999px;
  background: rgba(244, 240, 233, 0.82);
  color: #625c51;
  font-size: 12px;
  font-weight: 760;
}

.new-resume-filter-popover button.active {
  border-color: rgba(74, 124, 89, 0.36);
  background: var(--new-primary-soft);
  color: var(--new-primary);
}

.new-resume-filter-popover .new-resume-filter-reset {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--new-primary);
}

.new-resume-ranking {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.new-resume-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
}

.new-resume-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #2f332f;
  font-size: 23px;
}

.new-resume-section-head h2 span:not(.material-symbols-outlined) {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8e0d3;
  color: #715f38;
  font-size: 13px;
}

.new-resume-section-head button {
  border: 0;
  background: transparent;
  color: var(--new-muted);
  font-size: 12px;
  font-weight: 900;
}

.new-resume-section-head > div {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.new-resume-section-head button.active {
  padding: 7px 12px;
  border-radius: 12px;
  background: #e9dfce;
  color: #7a6330;
}

.new-resume-candidates .new-candidate-card {
  position: relative;
  min-height: 60px;
  margin-bottom: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(234, 229, 219, 0.98);
}

/* 加载（解析/模版化）时的占位框更细：内容已收起阶段行，给定较小高度。 */
.new-resume-candidates .new-candidate-card.is-templating {
  min-height: 46px;
}

.new-candidate-card.is-templating .new-candidate-main,
.new-candidate-card.is-templating .new-candidate-avatar {
  filter: blur(11px);
}

.new-resume-candidates .new-candidate-avatar {
  width: 42px;
  height: 42px;
  border: 3px solid #9ed0aa;
  background: #d8ded0;
  color: #4b544b;
  font-size: 14px;
}

.new-resume-candidates .new-candidate-title strong {
  color: #2d312d;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.14;
}

.new-resume-candidates .new-candidate-title em {
  min-width: 54px;
  padding: 5px 10px;
  text-align: center;
  color: #6b5b34;
  background: #e8dfcf;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 760;
}

.new-resume-candidates .new-candidate-title em.is-scored {
  color: var(--new-primary);
}

.new-candidate-score {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 4px;
}

.new-candidate-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: #9b8f7b;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.new-candidate-card:hover .new-candidate-delete {
  opacity: 1;
}

.new-candidate-delete .material-symbols-outlined {
  font-size: 16px;
}

.new-resume-progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(74, 124, 89, 0.12);
}

.new-resume-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #79b48a, #4a7c59);
  transition: width 0.25s ease;
}

.new-candidate-card.is-templating {
  position: relative;
  overflow: hidden;
  background: rgba(235, 231, 222, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(136, 183, 147, 0.2),
    0 18px 44px rgba(73, 98, 76, 0.08);
}

.new-candidate-card.is-templating::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 48%, rgba(169, 223, 184, 0.28), transparent 28%),
    linear-gradient(100deg, rgba(255, 253, 248, 0.72), rgba(227, 238, 224, 0.86), rgba(255, 250, 241, 0.7));
  backdrop-filter: blur(18px) saturate(1.2);
  pointer-events: none;
}

/* 细边旋转光环：沿卡片边框匀速转一圈，明确表示“在动而非卡住”。
   用 @property 注册角度变量，让 conic-gradient 的角度可被动画严格线性插值（避免之前忽快忽慢）。
   只作用于卡片自身（绝对定位 + 边框遮罩），不会波及侧边栏等其它 UI。 */
.new-candidate-card.is-templating::after,
.new-resume-rank-card.is-loading .new-resume-rank-body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--nh-ring-angle, 0deg), transparent 0deg, transparent 250deg, rgba(74, 124, 89, 0.25) 300deg, rgba(74, 124, 89, 0.95) 340deg, rgba(255, 255, 255, 0.6) 355deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: nhRingSpin 1.15s linear infinite;
  pointer-events: none;
}

/* 面试评估加载：同样的旋转光环，但用棕色，与简历评估（绿色）区分。 */
.new-candidate-card.is-interview-loading::after,
.new-resume-rank-card.is-interview-loading .new-resume-rank-body::after {
  background: conic-gradient(from var(--nh-ring-angle, 0deg), transparent 0deg, transparent 250deg, rgba(150, 105, 60, 0.25) 300deg, rgba(150, 105, 60, 0.95) 340deg, rgba(255, 255, 255, 0.55) 355deg, transparent 360deg);
}

.new-candidate-ring.is-interview {
  border-color: rgba(150, 105, 60, 0.2);
  border-top-color: #96693c;
}

.new-candidate-card.is-templating .new-candidate-main,
.new-candidate-card.is-templating .new-candidate-avatar {
  filter: blur(13px);
  opacity: 0.34;
}

/* 取消按钮：仅在卡片悬停时居中显示。 */
.new-resume-op-cancel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(38, 42, 40, 0.78);
  color: #ffffff;
  cursor: pointer;
  z-index: 4;
  transition: background 0.14s ease;
}

.new-resume-op-cancel:hover {
  background: rgba(28, 30, 28, 0.92);
}

.new-resume-op-cancel .material-symbols-outlined {
  font-size: 28px;
  font-weight: 600;
}

.new-candidate-card.is-templating:hover .new-resume-op-cancel,
.new-candidate-card.is-analysis-loading:hover .new-resume-op-cancel {
  display: inline-flex;
}

.new-candidate-card.is-templating .new-resume-progress,
.new-candidate-card.is-templating .new-candidate-delete {
  position: relative;
  z-index: 3;
}

.new-candidate-avatar {
  border: 0;
}

.new-candidate-title > button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.new-candidate-ring {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(74, 124, 89, 0.18);
  border-top-color: var(--new-primary);
  border-radius: 50%;
  animation: newResumeSpin 0.8s linear infinite;
}

.new-resume-rank-card {
  position: relative;
  display: block;
  min-height: 78px;
  margin-bottom: 6px;
  animation: newResumeSlideIn 0.34s ease both;
}

.new-resume-rank-card:hover {
  background: transparent;
}

.new-resume-rank-card:hover .new-resume-rank-body {
  background: rgba(237, 232, 223, 0.72);
  box-shadow: none;
}

.new-resume-rank-index {
  color: #7a6b48;
  font-size: 15px;
  font-weight: 760;
}

.new-resume-rank-body {
  position: relative;
  display: grid;
  grid-template-columns: 40px 40px minmax(150px, 1fr) minmax(110px, 0.52fr) auto 28px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 6px 8px 6px 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
}

.new-resume-rank-card.is-loading .new-resume-rank-body {
  background: rgba(242, 238, 231, 0.62);
  box-shadow: inset 0 0 28px rgba(255, 253, 248, 0.52);
  backdrop-filter: blur(10px);
}

.new-resume-rank-card.is-loading .new-resume-rank-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14% 50%, rgba(171, 223, 184, 0.24), transparent 30%),
    linear-gradient(100deg, rgba(255, 253, 248, 0.7), rgba(229, 238, 225, 0.84), rgba(255, 250, 240, 0.66));
  backdrop-filter: blur(16px) saturate(1.16);
  pointer-events: none;
}

.new-resume-rank-card.is-loading .new-resume-rank-body > * {
  filter: blur(9px);
  opacity: 0.38;
}

.new-resume-rank-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #9ed0aa;
  color: #326140;
  font-size: 14px;
  font-weight: 760;
}

.new-resume-rank-name strong {
  display: block;
  color: #2d312d;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.14;
}

.new-resume-rank-name span {
  display: block;
  color: #756b5b;
  font-size: 12px;
  line-height: 1.32;
}

.new-resume-rank-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0ede7;
}

.new-resume-rank-bar i {
  display: block;
  width: var(--score, 42%);
  height: 100%;
  border-radius: inherit;
  background: #79a982;
  transition: width 0.35s ease;
}

.new-resume-rank-body button {
  border: 0;
  background: transparent;
  color: #9d9b91;
  font-weight: 900;
}

.new-resume-rank-body button .material-symbols-outlined {
  font-size: 25px;
}

.new-resume-rank-body em {
  display: grid;
  min-width: 48px;
  color: var(--new-primary);
  text-align: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 760;
}

.new-resume-rank-body em small {
  color: #6e746d;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.new-resume-rank-body .loading-label {
  color: #7a6330;
  font-size: 13px;
}

.new-resume-inline-analyze {
  justify-self: end;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--new-primary);
  font-size: 12px;
  font-weight: 760;
}

.new-resume-insight {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 26px 30px;
  border-left: 4px solid rgba(74, 124, 89, 0.35);
  border-radius: 24px;
  background: rgba(237, 232, 223, 0.96);
}

.new-resume-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(41, 45, 42, 0.2);
  backdrop-filter: blur(8px);
}

.new-resume-upload-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(420px, 100%);
  padding: 30px 28px;
  border: 1px solid rgba(74, 124, 89, 0.2);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 26px 70px rgba(46, 50, 48, 0.18);
}

.new-resume-upload-dialog > .material-symbols-outlined {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--new-primary-soft);
  color: var(--new-primary);
  font-size: 28px;
}

.new-resume-upload-dialog h2 {
  margin: 0;
  color: var(--new-ink);
  font-size: 22px;
}

.new-resume-upload-dialog p {
  margin: 0;
  color: var(--new-muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
}

.new-resume-upload-dialog div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.new-resume-upload-dialog .new-resume-standardize-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
}

.new-resume-standardize-choice label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(226, 217, 203, 0.9);
  border-radius: 14px;
  background: rgba(244, 240, 233, 0.58);
  color: var(--new-ink);
  font-size: 12px;
  font-weight: 760;
}

.new-resume-standardize-choice input {
  accent-color: var(--new-primary);
}

.new-resume-upload-dialog .new-resume-upload-note {
  color: #7c776d;
  font-size: 12px;
  line-height: 1.45;
}

.new-resume-upload-dialog .new-resume-pending-list {
  display: grid;
  justify-content: stretch;
  gap: 8px;
  width: 100%;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  border-radius: 16px;
  background: rgba(244, 240, 233, 0.68);
}

.new-resume-pending-list > p {
  margin: 0;
  padding: 14px;
  color: var(--new-muted);
  text-align: center;
  font-size: 13px;
}

.new-resume-pending-list article {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(226, 217, 203, 0.9);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
}

.new-resume-pending-list article > span {
  color: var(--new-primary);
  font-size: 22px;
}

.new-resume-pending-list strong,
.new-resume-pending-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-resume-pending-list strong {
  color: var(--new-ink);
  font-size: 13px;
}

.new-resume-pending-list small {
  color: var(--new-muted);
  font-size: 11px;
}

.new-resume-pending-list article button {
  display: grid;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f0ece4;
  color: var(--new-muted);
  font-size: 18px;
  line-height: 1;
}

.new-resume-upload-dialog > div:last-child > button:not(.new-resume-upload-close) {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--new-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.new-resume-upload-dialog > div:last-child > button.ghost {
  border-color: var(--new-primary);
  background: transparent;
  color: var(--new-primary);
}

.new-resume-upload-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f0ece4;
  color: var(--new-ink);
}

.new-resume-insight > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #dfe9dc;
  color: var(--new-primary);
}

.new-resume-insight strong {
  display: block;
  margin-bottom: 4px;
  color: #3d3326;
  font-size: 20px;
}

.new-resume-insight p {
  margin: 0;
  color: #3c403c;
  font-size: 14px;
  line-height: 1.65;
}

.new-resume-insight button {
  margin-left: 18px;
  border: 0;
  background: transparent;
  color: #0aa6ff;
  font: inherit;
  font-weight: 900;
}

.new-resume-rank-card.is-fresh .new-resume-rank-body {
  animation: newResumePromote 0.55s ease both;
}

.new-resume-report-drawer {
  position: fixed;
  top: 86px;
  right: 28px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100vh - 118px);
  overflow: hidden;
  border: 1px solid rgba(74, 124, 89, 0.18);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 28px 70px rgba(46, 50, 48, 0.18);
  backdrop-filter: blur(18px);
}

.new-resume-report-drawer.is-large {
  top: 16px;
  right: 24px;
  width: min(660px, calc(100vw - 40px));
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
}

.new-resume-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(38, 42, 40, 0.34);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: niceDrawerFade 0.18s ease;
}

@keyframes niceDrawerFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.new-resume-drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 报告抽屉头部「通过 / 不通过」直决按钮 */
.new-drawer-decide {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.new-drawer-decide.is-pass {
  background: var(--new-primary, #4a7c59);
  color: #fff;
}

.new-drawer-decide.is-fail {
  background: #f2e3e0;
  color: #b2483b;
}

.new-screening-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--new-line);
}

.new-screening-actions.is-pass {
  background: rgba(77, 127, 95, 0.08);
  border-color: rgba(77, 127, 95, 0.3);
}

.new-screening-actions.is-fail {
  background: rgba(193, 78, 64, 0.07);
  border-color: rgba(193, 78, 64, 0.28);
}

.new-screening-verdict {
  display: grid;
  gap: 2px;
}

.new-screening-verdict strong {
  font-size: 14px;
}

.new-screening-verdict span {
  font-size: 12px;
  color: var(--new-muted, #7a756b);
}

.new-screening-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-screening-buttons button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--new-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.new-screening-buttons button.ghost {
  background: #f0ece4;
  color: var(--new-ink, #2b2f2c);
}

.new-screening-buttons button[disabled] {
  opacity: 0.6;
  cursor: default;
}

.new-candidate-stage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--new-muted, #7a756b);
  font-size: 12px;
}

.new-candidate-stage .material-symbols-outlined {
  font-size: 15px;
}

.new-candidate-stage select {
  border: 1px solid rgba(74, 124, 89, 0.22);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(74, 124, 89, 0.06);
  color: var(--new-ink, #2b2f2c);
  font-size: 12px;
  font-weight: 700;
}

.new-candidate-interview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.new-candidate-interview-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--new-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.new-candidate-interview-actions button.ghost {
  background: #f0ece4;
  color: var(--new-ink, #2b2f2c);
}

.new-candidate-interview-actions .material-symbols-outlined {
  font-size: 16px;
}

.new-interview-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: #333834;
}

.new-interview-field select,
.new-interview-field textarea,
.new-interview-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--new-line, #e6dfd2);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-weight: 600;
}

.new-interview-field textarea {
  min-height: 96px;
  resize: vertical;
}

.new-interview-dialog-actions {
  margin-top: 14px;
}

.new-resume-report-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--new-line);
}

.new-resume-report-drawer p {
  margin: 0 0 4px;
  color: var(--new-primary);
  font-weight: 900;
}

.new-resume-report-drawer h2 {
  margin: 0;
}

/* 只把“关闭(✕)”按钮做成 38×38 圆形；其它头部按钮（查看原简历 / 通过 / 不通过）保持自适应宽度，避免被压成竖排。 */
.new-resume-report-drawer header [data-new-resume-report-close] {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f0ece4;
  color: var(--new-ink);
  flex-shrink: 0;
}

.new-resume-report-drawer article {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
  color: var(--new-ink);
  line-height: 1.72;
}

.new-resume-drawer-raw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #f0ece4;
  color: var(--new-ink, #2b2f2c);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.new-resume-drawer-raw-toggle .material-symbols-outlined {
  font-size: 16px;
}

/* 抽屉头部：标题过长时截断，避免把右侧按钮挤窄导致文字竖排。 */
.new-resume-report-drawer header > div:first-child {
  min-width: 0;
}

.new-resume-report-drawer header h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-resume-drawer-actions {
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.new-resume-raw {
  height: 100%;
  padding: 0;
}

.new-resume-raw pre {
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  color: var(--new-ink, #2b2f2c);
}

.new-resume-raw-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border: 0;
}

.new-resume-raw-img {
  display: block;
  width: 100%;
  height: auto;
}

.new-resume-raw-hint {
  margin: 0;
  padding: 24px 16px;
  color: var(--new-muted, #7a756b);
  text-align: center;
}

.nice-report-panel {
  --green: #4d7f5f;
  --green-dark: #2f5f45;
  --green-soft: #eaf3e8;
  --text: #242424;
  --muted: #7a756b;
  --line: #e6dfd2;
  --red-soft: #fff1ef;
  width: 100%;
  min-height: 100%;
  padding: 16px;
  background: #fffdf8;
  color: var(--text);
  line-height: 1.65;
}

.nice-resume-panel {
  --green: #4d7f5f;
  --green-dark: #2f5f45;
  --green-soft: #eaf3e8;
  --text: #242424;
  --muted: #7a756b;
  --line: #e6dfd2;
  --orange-soft: #fff5df;
  --blue-soft: #eef5ff;
  width: 100%;
  min-height: 100%;
  padding: 16px;
  background: #fffdf8;
  color: var(--text);
  line-height: 1.65;
}

.nice-resume-panel * {
  box-sizing: border-box;
}

.nice-resume-panel .resume-hero {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #f3f8ef, #fffaf0);
  box-shadow: 0 8px 24px rgba(70, 60, 40, 0.08);
}

.nice-resume-panel .candidate-name {
  margin: 0 0 6px;
  color: #202020;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
}

.nice-resume-panel .candidate-role {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.nice-resume-panel .avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #d5e5d2;
  border-radius: 20px;
  background: linear-gradient(135deg, #dfeee0, #f7ead3);
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
}

.nice-resume-panel .contact-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nice-resume-panel .contact-pill,
.nice-resume-panel .mini-tag {
  border-radius: 999px;
  font-weight: 800;
}

.nice-resume-panel .contact-pill {
  padding: 4px 8px;
  border: 1px solid #eadfce;
  background: rgba(255, 255, 255, 0.75);
  color: #5f574b;
  font-size: 11.5px;
}

.nice-resume-panel .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.nice-resume-panel .field-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.nice-resume-panel .field-card.wide {
  grid-column: 1 / -1;
}

.nice-resume-panel .field-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.nice-resume-panel .field-value {
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.nice-resume-panel .field-note {
  margin-top: 4px;
  color: #9a8f7e;
  font-size: 11px;
}

.nice-resume-panel .highlight-box {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d7e5d4;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef7ed, #fffaf0);
  color: var(--green-dark);
  font-size: 13.5px;
  font-weight: 800;
}

.nice-resume-panel .section,
.nice-resume-panel .job-card,
.nice-resume-panel .project-card,
.nice-resume-panel .edu-card {
  border: 1px solid var(--line);
  background: #fff;
}

.nice-resume-panel .section {
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(70, 60, 40, 0.04);
}

.nice-resume-panel .section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  color: var(--green-dark);
  font-size: 16px;
}

.nice-resume-panel .section h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
}

.nice-resume-panel .summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nice-resume-panel .summary-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.nice-resume-panel .summary-list li:last-child {
  border-bottom: 0;
}

.nice-resume-panel .summary-list strong {
  color: var(--green-dark);
}

.nice-resume-panel .timeline {
  display: grid;
  gap: 10px;
}

.nice-resume-panel .job-card,
.nice-resume-panel .project-card,
.nice-resume-panel .edu-card {
  padding: 13px;
  border-radius: 16px;
  background: #fbfaf6;
}

.nice-resume-panel .job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.nice-resume-panel .job-company,
.nice-resume-panel .project-name,
.nice-resume-panel .edu-school {
  margin: 0 0 5px;
  color: #242424;
  font-size: 14px;
  font-weight: 900;
}

.nice-resume-panel .job-date {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.nice-resume-panel .job-title,
.nice-resume-panel .project-desc,
.nice-resume-panel .edu-info {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.nice-resume-panel .job-points {
  margin: 0;
  padding-left: 16px;
  color: #4f4a42;
  font-size: 12.5px;
}

.nice-resume-panel .mini-tag {
  padding: 5px 9px;
  background: #f1eadf;
  color: #5f574b;
  font-size: 12px;
}

.nice-resume-panel .mini-tag.good {
  background: var(--green-soft);
  color: var(--green-dark);
}

.nice-resume-panel .mini-tag.blue {
  background: var(--blue-soft);
  color: #315c8a;
}

.nice-resume-panel .mini-tag.warn {
  background: var(--orange-soft);
  color: #8a5a12;
}

.nice-report-panel * {
  box-sizing: border-box;
}

.nice-report-panel .report-hero {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f3f8ef, #fffaf0);
  box-shadow: 0 8px 24px rgba(70, 60, 40, 0.08);
}

.nice-report-panel .report-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.nice-report-panel .report-title {
  margin: 0 0 8px;
  color: #202020;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.nice-report-panel .report-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.nice-report-panel .score-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.nice-report-panel .score-box,
.nice-report-panel .section {
  border: 1px solid var(--line);
  background: #fff;
}

.nice-report-panel .score-box {
  padding: 13px;
  border-radius: 16px;
}

.nice-report-panel .score-box .label {
  color: var(--muted);
  font-size: 12px;
}

.nice-report-panel .score-box .value {
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 900;
}

.nice-report-panel .conclusion,
.nice-report-panel .advice-box {
  padding: 13px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.nice-report-panel .section {
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(70, 60, 40, 0.04);
}

.nice-report-panel .section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  color: var(--green-dark);
  font-size: 16px;
}

.nice-report-panel .section h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
}

.nice-report-panel .point-list,
.nice-report-panel .question-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nice-report-panel .point-list li,
.nice-report-panel .question-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.nice-report-panel .point-list li:last-child,
.nice-report-panel .question-list li:last-child {
  border-bottom: 0;
}

.nice-report-panel .risk-list li strong,
.nice-report-panel .risk-list li {
  color: #8d4a40;
}

.nice-report-panel .score-item {
  margin-bottom: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfaf6;
}

.nice-report-panel .score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.nice-report-panel .score-name,
.nice-report-panel .score-num {
  font-weight: 900;
}

.nice-report-panel .score-name {
  font-size: 15px;
}

.nice-report-panel .score-num {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
}

.nice-report-panel .bar {
  height: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7db;
}

.nice-report-panel .bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7dbb8a, #4d7f5f);
}

.nice-report-panel .score-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.nice-report-panel .evidence {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #eee6d8;
  border-radius: 12px;
  background: #fff;
  color: #5d574e;
  font-size: 12px;
}

.nice-report-panel .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nice-report-panel .mini-tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1eadf;
  color: #5f574b;
  font-size: 12px;
  font-weight: 800;
}

.nice-report-panel .mini-tag.good {
  background: var(--green-soft);
  color: var(--green-dark);
}

.nice-report-panel .mini-tag.warn {
  background: var(--red-soft);
  color: #9b4a3f;
}

.nice-report-panel .question-list {
  counter-reset: item;
}

.nice-report-panel .question-list li {
  position: relative;
  padding-left: 28px;
}

.nice-report-panel .question-list li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  top: 11px;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
}

.nice-report-panel .summary-line {
  margin: 14px 0 4px;
  padding: 15px;
  border-radius: 18px;
  background: #28261f;
  color: #fffaf0;
  font-size: 14px;
  font-weight: 800;
}


@keyframes newResumeSpin {
  to { transform: rotate(360deg); }
}

@property --nh-ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes nhRingSpin {
  to { --nh-ring-angle: 360deg; }
}

@keyframes newResumeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes newResumePromote {
  0% { transform: scale(0.98) translateY(10px); }
  45% { transform: scale(1.035) translateY(-8px); }
  100% { transform: scale(1) translateY(0); }
}

@media (max-width: 980px) {
  .new-resume-hero,
  .new-resume-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .new-resume-filter,
  .new-resume-columns {
    grid-template-columns: 1fr;
  }

  .new-resume-rank-body {
    grid-template-columns: 34px 36px minmax(120px, 1fr) minmax(80px, 0.6fr) auto 28px;
  }

  .new-resume-rank-bar {
    grid-column: auto;
  }
}

@media (max-width: 1280px) {
  .new-content {
    padding: 26px 28px 40px;
  }

  .new-resume-screen {
    gap: 18px;
  }

  .new-resume-hero h1 {
    font-size: clamp(24px, 2.8vw, 34px);
  }

  .new-resume-hero-actions button {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 13px;
  }

  .new-resume-filter {
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) auto;
    gap: 14px;
    padding: 16px 18px;
  }

  .new-resume-filter select {
    min-height: 42px;
    font-size: 13px;
  }

  .new-resume-columns {
    grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
    gap: 18px;
  }

  .new-resume-section-head h2 {
    font-size: 20px;
  }

  .new-resume-ranking {
    padding: 0;
  }

  .new-resume-candidates .new-candidate-card {
    grid-template-columns: 42px 1fr;
    min-height: 74px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .new-resume-candidates .new-candidate-avatar {
    width: 42px;
    height: 42px;
    border-width: 2px;
    font-size: 13px;
  }

  .new-resume-candidates .new-candidate-title strong {
    font-size: 15px;
    font-weight: 760;
  }

  .new-candidate-main p {
    font-size: 12px;
    line-height: 1.4;
  }

  .new-row-actions {
    gap: 6px;
  }

  .new-row-actions button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .new-resume-rank-card {
    min-height: 70px;
    margin-bottom: 8px;
  }

  .new-resume-rank-index {
    font-size: 15px;
  }

  .new-resume-rank-body {
    grid-template-columns: 34px 34px minmax(95px, 1fr) minmax(70px, 0.55fr) auto 24px;
    min-height: 66px;
    gap: 8px;
    padding: 7px 8px 7px 0;
    border-radius: 18px;
  }

  .new-resume-rank-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .new-resume-rank-name strong {
    font-size: 15px;
    font-weight: 760;
  }

  .new-resume-rank-name span {
    max-height: 34px;
    overflow: hidden;
    font-size: 11px;
  }

  .new-resume-rank-body em {
    min-width: 42px;
    font-size: 15px;
  }

  .new-resume-rank-body em small {
    font-size: 9px;
  }
}

@media (max-width: 1100px) {
  .new-resume-columns {
    grid-template-columns: 1fr;
  }

  .new-resume-ranking {
    order: 2;
  }

  .new-resume-candidates {
    order: 1;
  }
}

@media (max-width: 760px) {
  .new-content {
    padding: 18px 14px 28px;
  }

  .new-resume-hero h1 {
    font-size: 26px;
  }

  .new-resume-hero-actions {
    gap: 8px;
  }

  .new-resume-filter {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 18px;
  }

  .new-resume-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .new-resume-section-head > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .new-candidate-title {
    flex-direction: column;
    gap: 6px;
  }

  .new-resume-rank-body {
    grid-template-columns: 28px 30px 1fr auto;
  }

  .new-resume-rank-bar,
  .new-resume-rank-body button {
    grid-column: 3 / -1;
  }

  .new-resume-report-drawer {
    top: 72px;
    right: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 92px);
  }
}

.new-rank-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.new-rank-row b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--new-primary-soft);
  color: var(--new-primary);
}

.new-rank-row span {
  display: block;
  color: var(--new-muted);
  font-size: 12px;
}

.new-rank-row em {
  color: var(--new-tertiary);
  font-style: normal;
  font-weight: 900;
}

.new-mail-draft {
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 14px;
  background: #f5f1ea;
  color: var(--new-ink);
  font: inherit;
}

.new-report-text {
  max-height: 460px;
  overflow: auto;
  color: var(--new-ink);
}

.new-profile-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 226px;
  margin-bottom: 40px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(196, 200, 188, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 18%, rgba(216, 240, 222, 0.72), transparent 18%),
    rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 32px rgba(46, 50, 48, 0.07);
}

.new-profile-photo-wrap {
  position: relative;
  flex: 0 0 auto;
}

.new-profile-photo-wrap img {
  display: block;
  width: 120px;
  height: 120px;
  padding: 5px;
  border-radius: 18px;
  background: linear-gradient(135deg, #8ab894, #e4e0d8);
  object-fit: cover;
}

.new-profile-photo-wrap button {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #fffdf8;
  border-radius: 999px;
  background: var(--new-primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(46, 50, 48, 0.18);
}

.new-profile-photo-wrap .material-symbols-outlined {
  font-size: 21px;
}

.new-profile-copy {
  min-width: 0;
}

.new-profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.new-profile-name-row h2 {
  margin: 0;
  color: var(--new-ink);
  font-family: "Literata", Georgia, serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.new-profile-name-row > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f0e8db;
  color: #554020;
  font-size: 12px;
  font-weight: 900;
}

.new-profile-name-row > span:nth-child(3) {
  background: #f5f1ea;
  color: #4a4538;
}

.new-profile-name-row .material-symbols-outlined {
  font-size: 15px;
}

.new-profile-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #555d56;
  font-size: 16px;
  line-height: 1.7;
}

.new-profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.new-profile-contact > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #555d56;
  font-size: 14px;
}

.new-profile-contact .material-symbols-outlined {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: #fffdf8;
  color: #77ad84;
  box-shadow: 0 6px 16px rgba(46, 50, 48, 0.08);
}

.new-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.new-stats-grid article {
  position: relative;
  min-height: 180px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.96);
}

.new-stat-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 999px;
  background: #f0e8db;
  color: #5b5145;
}

.new-stat-icon.gold {
  background: #c4a66a;
  color: #554020;
}

.new-stat-icon.green {
  background: #77ad84;
  color: #fff;
}

.new-stat-icon .material-symbols-outlined {
  font-size: 26px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.new-stats-grid article em {
  position: absolute;
  top: 28px;
  right: 24px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(216, 240, 222, 0.82);
  color: var(--new-primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.new-stats-grid article:nth-child(2) em {
  background: rgba(248, 224, 168, 0.45);
  color: #705c30;
}

.new-stats-grid span,
.new-stats-grid small {
  color: var(--new-muted);
}

.new-stats-grid span {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.new-stats-grid strong {
  display: inline-block;
  margin: 8px 6px 0 0;
  color: var(--new-ink);
  font-family: "Literata", Georgia, serif;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

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

.new-settings-card {
  padding: 32px;
  border: 1px solid rgba(196, 200, 188, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(46, 50, 48, 0.06);
}

.new-settings-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(196, 200, 188, 0.22);
  color: var(--new-ink);
  font-size: 22px;
}

.new-settings-card h2 .material-symbols-outlined {
  color: var(--new-primary);
}

.new-settings-line,
.new-security-line,
.new-toggle-line {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--new-ink);
  text-align: left;
}

.new-settings-line strong,
.new-security-line strong,
.new-toggle-line strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.new-settings-line small,
.new-security-line small,
.new-toggle-line small {
  display: block;
  color: var(--new-muted);
  font-size: 12px;
  line-height: 1.45;
}

.new-settings-line > .material-symbols-outlined {
  color: rgba(116, 121, 110, 0.45);
}

.new-security-line button {
  min-width: 62px;
  min-height: 38px;
  border: 1px solid rgba(116, 121, 110, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--new-ink);
  font-size: 13px;
  font-weight: 800;
}

.new-security-line em {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(216, 240, 222, 0.72);
  color: var(--new-primary);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.new-ai-settings-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(196, 200, 188, 0.22);
}

.new-ai-settings-form > strong {
  color: var(--new-ink);
  font-size: 15px;
}

.new-ai-settings-form label {
  display: grid;
  gap: 7px;
  color: var(--new-muted);
  font-size: 12px;
  font-weight: 800;
}

.new-ai-settings-form select,
.new-ai-settings-form input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(196, 200, 188, 0.24);
  border-radius: 13px;
  background: var(--new-soft);
  color: var(--new-ink);
  outline: none;
}

.new-ai-settings-form button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--new-primary);
  color: #fff;
  font-weight: 900;
}

.new-notification-card {
  margin-bottom: 20px;
}

.new-notification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  row-gap: 22px;
}

.new-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
}

.new-switch input {
  position: absolute;
  opacity: 0;
}

.new-switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #dedbd2;
  transition: background 180ms ease;
}

.new-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(46, 50, 48, 0.22);
  transition: transform 180ms ease;
}

.new-switch input:checked + i {
  background: var(--new-primary);
}

.new-switch input:checked + i::after {
  transform: translateX(20px);
}

.new-empty-state {
  display: grid;
  min-height: 58vh;
  place-content: center;
  text-align: center;
}

.new-empty-state span {
  color: var(--new-primary);
  font-weight: 900;
}

.new-empty-state h1 {
  margin: 10px 0;
  font-size: 36px;
}

.new-empty-card {
  grid-column: 1 / -1;
}

.new-empty-card h3 {
  margin: 0 0 8px;
}

.new-talent-card {
  display: grid;
  gap: 10px;
}


@media (max-width: 1024px) {
  .dashboard-shell { padding: 8px; }
  .dashboard-screen {
    padding: 20px;
    border-radius: 16px;
  }
  .dashboard-screen::before {
    font-size: 100px;
    top: -30px;
    left: -14px;
  }
  .topbar {
    position: sticky;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
  }
  .recruit-module {
    flex-direction: column;
  }

  .new-workbench {
    position: static;
    min-height: 100vh;
    overflow: visible;
  }

  .new-sidebar {
    width: 220px;
    flex-basis: 220px;
  }

  .new-project-grid,
  .new-analysis-grid,
  .new-analysis-title-row,
  .new-two-col {
    grid-template-columns: 1fr;
  }

  .new-company-hero {
    grid-template-columns: 1fr;
  }

  .new-company-intro {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .dashboard-shell { padding: 4px; }
  .dashboard-screen {
    padding: 14px;
    min-height: calc(100vh - 8px);
    border-radius: 12px;
  }
  .dashboard-screen::before {
    font-size: 60px;
    top: -14px;
    left: -8px;
  }
  .topbar {
    position: sticky;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    min-height: 44px;
    padding: 6px 10px;
    gap: 8px;
  }
  .recruit-module {
    flex-direction: column;
  }
  .module-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .new-workbench {
    display: block;
  }

  .new-sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .new-main-shell {
    overflow: visible;
  }

  .new-topbar {
    justify-content: space-between;
    padding: 12px 16px;
  }

  .new-search {
    width: min(100%, 280px);
  }

  .new-content {
    padding: 22px 16px 46px;
  }

  .new-page-head,
  .new-profile-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .new-project-grid,
  .new-stats-grid,
  .new-job-fields,
  .new-settings-grid,
  .new-notification-grid {
    grid-template-columns: 1fr;
  }

  .new-project-grid {
    grid-template-columns: 1fr;
  }

  .new-company-hero {
    margin-bottom: 28px;
    padding: 20px;
  }

  .new-company-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .new-company-intro h2,
  .new-projects-title h1 {
    font-size: 30px;
  }

  .new-company-context {
    max-height: none;
  }

  .new-projects-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .new-management-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .new-segmented {
    width: 100%;
  }

  .new-segmented button,
  .new-projects-title .new-segmented button {
    flex: 1;
  }

  .new-management-toolbar > button {
    width: 100%;
    min-height: 44px;
  }

  .new-managed-metrics {
    grid-template-columns: 1fr;
  }

  .new-handbook-hero,
  .new-competency-grid,
  .new-standards-table div,
  .new-template-top,
  .new-template-nav,
  .new-template-module-head {
    grid-template-columns: 1fr;
  }

  .new-handbook-module-card > header,
  .new-handbook-section-title,
  .new-template-actions,
  .new-template-module-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .new-template-nav {
    position: static;
  }

  .new-template-actions {
    display: none;
  }

  .new-template-module {
    border-radius: 24px;
  }

  .new-floating-template {
    right: 18px;
    bottom: 18px;
  }

  .new-job-display {
    grid-template-columns: 42px 1fr;
  }

  .new-job-display button {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .new-content:has(.new-resume-screen) {
    padding: 18px 14px 28px;
  }

  .new-resume-screen {
    gap: 14px;
  }

  .new-resume-hero h1 {
    font-size: 25px;
  }

  .new-resume-crumb {
    font-size: 12px;
  }

  .new-resume-hero-actions button,
  .new-resume-filter button {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 12px;
  }

  .new-resume-filter select {
    min-height: 40px;
    border-radius: 14px;
    font-size: 13px;
  }

  .new-resume-section-head h2 {
    font-size: 18px;
  }

  .new-resume-ranking {
    padding: 0;
    border-radius: 18px;
  }

  .new-resume-candidates .new-candidate-card {
    grid-template-columns: 38px 1fr;
    padding: 10px;
    border-radius: 16px;
  }

  .new-resume-candidates .new-candidate-avatar {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .new-resume-candidates .new-candidate-title strong,
  .new-resume-rank-name strong {
    font-size: 14px;
  }

  .new-candidate-main p,
  .new-resume-rank-name span {
    font-size: 11px;
  }

  .new-resume-rank-card {
    min-height: 66px;
  }

  .new-resume-rank-index {
    font-size: 13px;
  }

  .new-resume-rank-body {
    grid-template-columns: 28px 30px 1fr auto 22px;
    min-height: 62px;
    gap: 8px;
    padding: 8px 8px 8px 0;
    border-radius: 16px;
  }

  .new-resume-rank-avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .new-resume-rank-body em {
    min-width: 36px;
    font-size: 15px;
  }
}
