/* 工作台（用户端）
   还是一张纸：纸白底、发丝分隔线、墨色文字；品牌绿只用在"当前"和可点的动作上。 */

.page-workspace {
  background: var(--paper);
  min-height: 100vh;
}

/* display 规则会顶掉 hidden 属性的默认样式（.btn/.ws-menu-badge 都是 display:flex|grid），这里统一压住 */
.page-workspace [hidden] {
  display: none !important;
}

/* 问候语与统计条只属于「我的简历」视图 */
.ws-content:not(.is-resumes) .ws-hero,
.ws-content:not(.is-resumes) .ws-stats {
  display: none;
}

/* hero 隐藏后，首个可见 section 的 52px 顶距（.ws-section）会变成悬空留白，压掉 */
.ws-content:not(.is-resumes) .ws-view:not([hidden]) {
  margin-top: 0;
}

/* ── 顶栏 ─────────────────────────────────────────────── */
.ws-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 60px;
  padding: 0 26px;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.ws-nav {
  display: flex;
  gap: 2px;
}

.ws-nav a {
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}

.ws-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.ws-nav a.is-current {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.ws-account {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-3);
}

.ws-user {
  color: var(--ink-2);
  font-weight: 600;
}

/* 顶栏与编辑器 .app-bar 宽屏规格对齐（styles.css @1151px 同款）：
   68px 栏高 / 38px 品牌标 / 17.5px 品牌字 / 42px 按钮 / 14.5px 字号 */
@media (min-width: 961px) {
  .ws-bar {
    height: 68px;
    padding: 0 20px;
    gap: 16px;
  }

  .ws-bar .brand-mark {
    width: 38px;
    height: 38px;
  }

  .ws-bar .brand-name {
    font-size: 17.5px;
  }

  .ws-nav a {
    padding: 11px 14px;
    font-size: 14.5px;
  }

  .ws-account {
    font-size: 14px;
  }

  .ws-bar .btn {
    height: 42px;
    padding: 0 18px;
    font-size: 14.5px;
  }
}

/* ── 主体：操作台骨架（左菜单 + 内容视图） ───────────────
   布局放开：大屏铺满到 1480px，菜单 232px，内容区至少 ~1180px，
   看板八列、简历网格都舒展开，不再挤在中间一小条里。 */
.ws-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  max-width: 1480px;
  /* body 是 flex 纵向布局（页脚贴底），auto margin 会让 flex 子项收缩成
     fit-content 而不是拉伸——必须显式 width:100% 才能撑满窗口宽度 */
  width: 100%;
  margin: 0 auto;
  padding: 34px 44px 110px;
  /* sticky footer：主区撑满剩余视口，页脚贴底（见下方 body 弹性列） */
  flex: 1 0 auto;
}

/* 页脚贴底（sticky footer）：内容不足一屏时页脚固定在视口底部，
   内容超出时正常随滚动。body 弹性列 + .ws-shell flex:1 撑满剩余空间 */
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* 超宽屏（2K+）再多给一点，但不无限铺开——纸面要有边界感 */
@media (min-width: 1720px) {
  .ws-shell {
    max-width: 1640px;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 48px;
  }
}

.ws-menu {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.ws-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.ws-menu-item:hover {
  background: var(--paper-2);
  color: var(--ink);
}

/* 菜单图标 + 文字左组：图标随 currentColor 变色，略收一档不抢文字 */
.ws-menu-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ws-menu-label svg {
  flex: 0 0 auto;
  opacity: 0.78;
}

.ws-menu-item.is-current .ws-menu-label svg {
  opacity: 1;
}

.ws-menu-item.is-current {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.ws-menu-meta {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 500;
}

.ws-menu-item.is-current .ws-menu-meta {
  color: var(--accent-ink);
}

.ws-menu-badge {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* 会员皇冠标识：玄金系，与会员版体验入口同一色族（顶栏用户名左侧） */
.ws-crown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 7px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: #8A6A1F;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 问候语皇冠：斜扣在昵称上方（会员身份点亮），顺时针倾斜 34° 营造「扣在名字上」感 */
.ws-greeting-crown {
  margin-left: 8px;
  transform: rotate(34deg) translateY(-12px);
}

/* 顶栏皇冠胶囊里的到期日期：浅一档，前缀圆点分隔 */
.ws-crown-exp {
  font-weight: 500;
  opacity: 0.85;
}

.ws-crown-exp::before {
  content: '·';
  margin-right: 5px;
}

.ws-menu-cta {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--accent-ink);
  font-size: 12.5px;
}

/* 侧栏菜单宽屏放大一档（与顶栏 .app-bar 宽屏规格同批）：
   菜单列 232→264px、条目 15px 字号 / 14px 16px 触达、图标 17px、角标 20px。
   1720px+ 超宽档相应再放宽到 280px（本块在后，覆盖上方 248px 档的列宽） */
@media (min-width: 961px) {
  .ws-shell {
    grid-template-columns: 264px minmax(0, 1fr);
  }

  .ws-menu {
    padding: 14px;
    gap: 6px;
  }

  .ws-menu-item {
    padding: 14px 16px;
    font-size: 15px;
  }

  .ws-menu-label svg {
    width: 17px;
    height: 17px;
  }

  .ws-menu-meta {
    font-size: 12.5px;
  }

  .ws-menu-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 12px;
  }

  .ws-menu-cta {
    font-size: 14px;
  }
}

@media (min-width: 1720px) {
  .ws-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

.ws-content {
  min-width: 0;
}

.ws-view[hidden] {
  display: none !important;
}

/* 旧版堆叠容器（兼容保留） */
.ws-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 42px 26px 96px;
}

.ws-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.ws-hero h1 {
  font-size: 34px;
  letter-spacing: -0.03em;
}

.ws-hero-copy p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

.ws-hero-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.btn-lg {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

/* 概览三格：不是卡片套卡片，只用一条发丝线切开；每格压成两行（标签/数值） */
.ws-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}

.ws-stat {
  padding: 12px 26px;
  border-right: 1px solid var(--line);
}

.ws-stat:last-child {
  border-right: 0;
}

.ws-stat-label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 数值改行内：与会员到期日（.ws-stat-sub）同行基线对齐，整卡压成两行高 */
.ws-stat-value {
  display: inline;
  margin-top: 3px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

/* 会员格到期日：跟在数值右侧（同一行第二行内容），浅金小字 */
.ws-stat-sub {
  display: inline-block;
  margin: 3px 0 0 10px;
  font-size: 12.5px;
  color: #8A6A1F;
}

.ws-section {
  margin-top: 34px;
}

.ws-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ws-section-head h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.ws-section-meta {
  font-size: 12.5px;
  color: var(--ink-3);
}

.ws-text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font-size: 12.5px;
}

.ws-text-btn:hover {
  text-decoration: underline;
}

/* 「记一笔投递」：实心主按钮——页面里唯一的深绿实心块，添加入口一眼可辨 */
.job-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #17564A;
  color: #F7F5EF;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(23, 86, 74, 0.25);
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.job-add-btn svg {
  display: block;
}

.job-add-btn:hover {
  background: #11453B;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(23, 86, 74, 0.28);
}

.job-add-btn:active {
  transform: none;
  box-shadow: 0 1px 2px rgba(23, 86, 74, 0.25);
}

.ws-loading,
.ws-empty {
  margin: 0;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

/* ── 简历卡片 ─────────────────────────────────────────── */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
}

.resume-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.resume-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-paper);
}

.resume-thumb {
  position: relative;
  display: block;
  aspect-ratio: 794 / 1123;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}

.resume-thumb .sheet {
  /* 缩略图默认按卡片最小宽度缩放，量到真实宽度后再精确覆盖，避免一进来"放大镜"一下 */
  --sheet-scale: 0.26;
  pointer-events: none;
}

/* 空白简历的缩略态：不渲染样张（渲染器会补出默认内容），给一张明确的空纸 */
.thumb-blank {
  position: absolute;
  inset: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink-3);
  font-size: 11.5px;
}

.thumb-blank i {
  width: 18px;
  border-top: 1px solid var(--line-strong);
}

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 11.5px;
}

/* 仅限卡片标题区（article 的直接子级）。不加 > 会命中渲染层内部的
   .resume-body（.resume-thumb .sheet 里），12px/14px padding 会把
   .resume-side 深色块从渐变底色上顶开，双栏模板缩略图出现双层错位。
   display:block 是必须的：template-library.css 的全局 .resume-body
   是 display:flex（给侧栏模板用的），不显式盖掉的话标题和编辑时间
   会挤成一行 */
.resume-card > .resume-body {
  display: block;
  padding: 12px 14px 0;
  flex: 1;
}

.resume-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 11.5px;
}

.resume-meta .tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: #f6efe3;
  color: #8a5a2e;
  font-size: 10.5px;
  line-height: 1.3;
}

.resume-meta .tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c98d4e;
}

/* 空简历卡：标题退一档，让「还是空的」状态更明确、更轻 */
.resume-card.is-empty .resume-title {
  color: var(--ink-2);
}

.resume-actions {
  display: flex;
  gap: 2px;
  padding: 8px 8px 9px;
}

.resume-actions a,
.resume-actions button {
  flex: 1;
  padding: 6px 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink-2);
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.resume-actions a:hover,
.resume-actions button:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.resume-actions .is-danger {
  color: var(--danger);
}

.resume-actions .is-danger:hover {
  background: #fdf0ee;
}

/* 新建卡：与简历卡同位的虚线纸，永远排第一；+ 号圆钮是唯一的动效主角 */
.new-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: stretch;
  min-height: 372px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--ink-3);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.new-card-plus {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.new-card strong {
  font-size: 15px;
  color: var(--ink);
}

.new-card > span:not(.new-card-plus) {
  font-size: 12.5px;
}

.new-card:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.new-card:hover .new-card-plus {
  transform: scale(1.08);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.ws-empty-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}

/* ── 消息 ─────────────────────────────────────────────── */
.msg-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}

.msg-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

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

.msg-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.msg-dot.is-read {
  background: var(--line-strong);
}

.msg-body {
  flex: 1;
  min-width: 0;
}

.msg-title {
  font-size: 13.5px;
  font-weight: 600;
}

.msg-content {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.msg-time {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-size: 11.5px;
}

/* ── 账号 ─────────────────────────────────────────────── */
.account-card {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.account-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.account-info {
  flex: 1;
  min-width: 0;
}

.account-key {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.account-desc {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
}

.account-val {
  flex: 0 0 auto;
  max-width: 40%;
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-val code {
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.account-foot {
  display: flex;
  justify-content: flex-end;
  padding: 14px 0;
}

/* ── 轻提示已统一到顶部通知组件（public/toast.js），此处不再有底部 toast 样式 ── */

@media (max-width: 720px) {
  .ws-bar {
    gap: 12px;
    padding: 0 16px;
  }

  .ws-nav,
  .ws-code {
    display: none;
  }

  .ws-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 16px 72px;
  }

  /* 手机上菜单变成顶部横向胶囊 */
  .ws-menu {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 6px;
  }

  .ws-menu-item {
    flex: 0 0 auto;
    padding: 8px 14px;
  }

  .ws-menu-cta {
    display: none;
  }

  .ws-main {
    padding: 26px 16px 72px;
  }

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

  .ws-hero-actions {
    width: 100%;
  }

  .ws-hero-actions .btn {
    flex: 1;
  }

  .ws-stats {
    grid-template-columns: 1fr;
  }

  /* 手机上两列：一列会让每张 A4 缩略图都占满屏宽，翻很久才看到下一份 */
  .resume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .new-card {
    min-height: 250px;
    gap: 8px;
    padding: 16px;
  }

  .new-card-plus {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .ws-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ws-stat:last-child {
    border-bottom: 0;
  }

  /* 手机上账号行改两行：说明在上，值和动作在下 */
  .account-row {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .account-val {
    max-width: none;
    text-align: left;
  }
}

/* ── 我的求职：看板（JobTrack 式流水线，纸张主题） ─────── */

/* 流水线健康条：大数字 + 小标签，一条发丝线切开 */
.job-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  margin: 16px 0 20px;
  overflow: hidden;
}

.job-health-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
}

.job-health-item:last-child {
  border-right: 0;
}

.job-health-item span {
  font-size: 12.5px;
  color: var(--ink-3);
}

.job-health-item strong {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.job-health-item.is-warn strong {
  color: var(--danger);
}

/* 快捷添加条 */
.job-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  margin-bottom: 20px;
}

.job-input {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
}

.job-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.job-quick .job-input {
  flex: 1 1 120px;
  min-width: 0;
}

/* 文本输入占比大一点，下拉窄一点：保证整行排得下 */
.job-quick input.job-input {
  flex: 1.6 1 150px;
}

.job-quick .btn,
.job-quick .job-trash-btn {
  flex: 0 0 auto;
}

/* 垃圾桶删除按钮（红）：点击弹确认删除弹窗 */
.job-trash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border: 1px solid #E7CBC6;
  border-radius: 8px;
  background: #FDF3F2;
  color: #B23A2E;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.job-trash-btn:hover {
  background: #B23A2E;
  border-color: #B23A2E;
  color: #fff;
}

.job-trash-btn svg {
  width: 17px;
  height: 17px;
}

/* 删除投递确认弹窗：一层确认（选择记录 + 确认/取消） */
.job-del-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 28, 29, 0.45);
}

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

.job-del-card {
  width: min(430px, calc(100vw - 48px));
  background: var(--white);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 18px 50px rgba(25, 28, 29, 0.25);
}

.job-del-card h4 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--ink);
}

.job-del-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2, #4B5254);
}

.job-del-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.job-del-actions .btn.is-danger {
  background: #B23A2E;
  border-color: #B23A2E;
  color: #fff;
}

.job-del-actions .btn.is-danger:hover {
  background: #9E3227;
  border-color: #9E3227;
}

.job-del-actions .btn.is-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 看板：横向八列，窄屏横向滚动 */
.job-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  align-items: flex-start;
}

/* 列：白色列头 + 阶段色顶带（--stage 由 JS 注入），列身浅纸色 */
.job-col {
  flex: 0 0 262px;
  min-width: 262px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.job-col.is-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.job-col-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

/* 阶段色顶带：整列的身份色，一眼看清流水线 */
.job-col-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stage, transparent);
}

.job-col-head .job-dot {
  margin-right: 7px;
}

.job-col-pill {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  font-style: normal;
}

.job-col-pill.is-hit {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.job-col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  min-height: 60px;
  max-height: 62vh;
  overflow-y: auto;
}

/* 卡片：左缘 3px 阶段色条（同 --stage），悬停微浮起 */
.job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--stage, var(--line));
  border-radius: 10px;
  cursor: grab;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.job-card:hover {
  border-color: var(--line-strong);
  border-left-color: var(--stage, var(--line-strong));
  box-shadow: 0 6px 18px rgba(25, 28, 29, 0.08);
  transform: translateY(-1px);
}

.job-card.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.job-card.is-due {
  border-left-color: var(--danger);
}

.job-company {
  font-weight: 500;
  color: var(--ink);
}

.job-company i {
  font-style: normal;
  color: var(--ink-3);
  font-weight: 400;
}

.job-position {
  color: var(--ink-2);
}

.job-meta {
  font-size: 12px;
  color: var(--ink-3);
}

/* 跟进徽章分级：逾期红 / 今天橙 / 倒计时灰（JobTrack 的 overdue/today/countdown） */
.job-due-tag {
  align-self: flex-start;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--danger);
  background: #fcebeb;
}

.job-due-tag.is-today {
  color: #9a5b16;
  background: #fdf2e2;
}

.job-due-tag.is-soon {
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

/* 来源小标签：内推 / Boss 直聘… */
.job-src-tag {
  flex: 0 0 auto;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--ink-2);
  background: var(--white);
}

/* 详情抽屉 */
/* ── 全站页脚：法务链接（隐私政策/用户协议等）的公认位置 ── */
.ws-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 24px 30px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.ws-foot a {
  color: var(--ink-3);
  text-decoration: none;
}
.ws-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ws-foot-copy {
  opacity: 0.75;
}

.job-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(25, 28, 29, 0.32);
}

.job-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(420px, 94vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  padding: 20px 22px 32px;
  overflow-y: auto;
}

.job-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.job-drawer-head strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.job-drawer-pos {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.job-drawer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-drawer-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-3);
}

.job-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.job-drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.job-ev-title {
  margin: 22px 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.job-ev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.job-ev {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.job-ev:last-child {
  border-bottom: 0;
}

.job-ev-time {
  flex: 0 0 64px;
  color: var(--ink-3);
}

.job-ev-body {
  color: var(--ink-2);
}

.job-ev-body b {
  font-weight: 500;
  color: var(--ink);
}

/* ── 专业版看板：卡片/漏斗/筛选（阶段 9 升级） ─────────── */

/* 卡片：头像字 + 阶段色 + 悬停快捷操作 */
.job-card-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.job-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.job-card-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.job-company {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-position {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
  padding-left: 34px;
}

/* 卡片底部 chip 行：来源 + 所用简历 */
.job-card-chips {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.job-resume-chip {
  flex: 0 0 auto;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--paper-2);
}

.job-due-tag.is-stalled {
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

/* 悬停快捷操作条 */
.job-card-acts {
  display: none;
  gap: 6px;
  margin-top: 6px;
}

.job-card:hover .job-card-acts,
.job-card:focus-within .job-card-acts {
  display: flex;
}

.job-act {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}

.job-act:hover {
  border-color: var(--accent);
  color: var(--ink);
}

/* 已选跟进档：绿色高亮 = 当前生效的跟进日；同排其余档置灰（仍可点，hover 恢复） */
.job-act.is-chosen {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.job-card-acts.has-chosen .job-act:not(.is-chosen):not(.job-act-ghost) {
  color: var(--ink-3);
  border-color: var(--line);
  background: transparent;
}

.job-card-acts.has-chosen .job-act:not(.is-chosen):not(.job-act-ghost):hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.job-act-ghost:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* 恢复跟进（撤销误关）：品牌绿，和红色「石沉大海」形成对比 */
.job-act-reopen:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* 「石沉大海」自绘确认弹窗（替代原生 confirm） */
.ghost-confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 28, 29, 0.42);
  animation: gc-fade 0.16s ease;
}

.ghost-confirm {
  width: 336px;
  max-width: calc(100vw - 48px);
  padding: 22px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(22, 33, 31, 0.22);
  animation: gc-pop 0.16s ease;
}

.ghost-confirm h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.ghost-confirm p {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.ghost-confirm-acts {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.gc-btn {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
}

.gc-btn:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.gc-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.gc-ok {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.gc-ok:hover {
  border-color: var(--danger);
  background: #c02020;
  color: #fff;
}

@keyframes gc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gc-pop {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* 列头阶段色点 */
.job-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}

/* 筛选工具条 */
.job-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.job-search {
  flex: 0 1 240px;
}

.job-toolbar-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.job-toolbar-check input {
  accent-color: var(--accent);
}

/* 漏斗 + 来源统计面板 */
.job-funnel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 18px 22px;
  margin-bottom: 20px;
}

.job-panel-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.job-panel-title i {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 8px;
}

.job-funnel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.job-funnel-row:last-child {
  margin-bottom: 0;
}

.job-funnel-label {
  flex: 0 0 58px;
  font-size: 12px;
  color: var(--ink-2);
  text-align: right;
}

.job-funnel-bar {
  flex: 1;
  height: 14px;
  border-radius: 4px;
  background: var(--paper-2);
  overflow: hidden;
}

.job-funnel-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.job-funnel-num {
  flex: 0 0 64px;
  font-size: 12px;
  color: var(--ink-2);
}

.job-funnel-num i {
  font-style: normal;
  margin-left: 5px;
  color: var(--ink-3);
  font-size: 11px;
}

.job-src-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.job-src-table th {
  text-align: left;
  font-weight: 400;
  color: var(--ink-3);
  padding: 3px 8px 6px 0;
  border-bottom: 1px solid var(--line);
}

.job-src-table td {
  padding: 5px 8px 5px 0;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

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

.job-src-empty {
  font-size: 12px;
  color: var(--ink-3);
}

/* 抽屉速览行 */
.job-glance {
  margin: -6px 0 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--paper-2);
  font-size: 12.5px;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .job-funnel {
    grid-template-columns: 1fr;
  }
}

/* 窄列防换行挤压：meta/按钮/标签一律不折行 */
.job-card-bottom .job-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-act,
.job-due-tag {
  white-space: nowrap;
  flex: 0 0 auto;
}

/* 卡片底部两行制：meta 独占一行，简历 chip 换行排 */
.job-card-bottom {
  flex-wrap: wrap;
}

.job-card-bottom .job-meta {
  flex: 1 1 100%;
  min-width: 0;
}

/* ── 求职进度改版第二轮：视图切换 / 今日行动 / 泳道 / 指标保护 ── */

/* 视图切换：看板 | 进度 */
.job-viewtoggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.job-viewtoggle button {
  width: 108px;
  padding: 8px 0;
  border: 0;
  background: var(--white);
  color: var(--ink-2);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
}

.job-viewtoggle button + button {
  border-left: 1px solid var(--line);
}

.job-viewtoggle button.is-current {
  background: #17564A;
  color: #F7F5EF;
  font-weight: 600;
}

/* 看板细滚动条（替代原生粗滚动条） */
.job-board {
  scrollbar-width: thin;
  scrollbar-color: #d3d1c7 transparent;
}

.job-board::-webkit-scrollbar {
  height: 8px;
}

.job-board::-webkit-scrollbar-track {
  background: transparent;
}

.job-board::-webkit-scrollbar-thumb {
  background: #d3d1c7;
  border-radius: 4px;
}

/* 空列引导 */
.job-col-hint {
  display: block;
  margin: 2px 0;
  padding: 12px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
}

/* 「今天该行动」条 */
.job-today {
  border: 1px solid #f0c9c9;
  border-left: 3px solid var(--danger, #c0392b);
  border-radius: var(--radius);
  background: #fdf7f5;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.job-today-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.job-today-head b {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.job-today-head span {
  font-size: 12px;
  color: var(--ink-3);
}

.job-today-list {
  display: flex;
  flex-direction: column;
}

.job-today-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0e4e0;
  cursor: pointer;
}

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

.job-today-item:hover {
  background: #fbf0ec;
}

.job-today-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.job-today-who strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-today-who span {
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 漏斗摘要行（默认收起） */
.job-funnel-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-funnel-brief-text {
  font-size: 12.5px;
  color: var(--ink-2);
}

.job-funnel-brief-text i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-3);
}

.job-funnel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* 泳道进度图 */
.job-lane {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.job-lane-head,
.job-lane-row {
  display: flex;
  align-items: center;
}

.job-lane-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.job-lane-label {
  position: relative;
  flex: 0 0 var(--lane-label-w, 252px);
  width: var(--lane-label-w, 252px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

/* 岗位栏宽度手柄：悬停/拖拽亮出品牌绿握把，拖任意一行整列联动 */
.job-lane-split {
  flex: 0 0 6px;
  align-self: stretch;
  position: relative;
  cursor: col-resize;
  touch-action: none;
}

.job-lane-split::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2px;
  width: 2px;
  height: 24px;
  transform: translateY(-50%);
  border-radius: 1px;
  background: transparent;
}

.job-lane-split:hover::before,
.job-lane-split.is-drag::before {
  background: rgba(47, 158, 131, 0.5);
}

.job-lane-split.is-drag::before {
  height: 100%;
  top: 0;
  transform: none;
}

.job-lane-cap {
  font-size: 12px;
  color: var(--ink-3);
}

/* 公司 · 岗位排一行（岗位淡色小字），超出省略——泳道行高压到两行文字 */
.job-lane-who {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.job-lane-who strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  flex: 0 0 auto;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-lane-who span {
  font-size: 11.5px;
  color: var(--ink-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 来源/薪资/标签/简历 chip 收成单行，超出省略 */
.job-lane-meta {
  display: block;
  width: 100%;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* meta 改单行后原本 flex gap 失效，给行内胶囊补左间距 */
.job-lane-meta .job-lane-tag,
.job-lane-meta .job-resume-chip {
  margin-left: 6px;
}

.job-lane-tag {
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10.5px;
  white-space: nowrap;
}

.job-lane-tag.is-due {
  color: var(--danger, #c0392b);
  background: #fcebeb;
}

.job-lane-tag.is-closed {
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.job-lane-row {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

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

.job-lane-row:hover {
  background: var(--paper-2);
}

.job-lane-track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 48px;
}

/* 阶段分界竖虚线：标出 6 个阶段的边界，进度条画在其上层 */
.job-lane-tick {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 0;
  border-left: 1px dashed #A9A192;
  pointer-events: none;
}

.job-lane-head .job-lane-track {
  height: 40px;
}

.job-lane-stage {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.job-lane-rail {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 6px;
  background: var(--paper-2);
}

.job-lane-fill {
  position: absolute;
  top: 50%;
  left: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 6px;
}

.job-lane-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.job-lane-dot.is-stalled {
  animation: jobPulse 1.6s ease-in-out infinite;
}

@keyframes jobPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(226, 75, 74, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(226, 75, 74, 0.12);
  }
}

.job-lane-x {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #d3d1c7;
}

.job-lane-x::before,
.job-lane-x::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 1.5px;
  background: #888780;
}

.job-lane-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.job-lane-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.job-lane-none {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  font-size: 11.5px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .job-funnel-grid {
    grid-template-columns: 1fr;
  }
}

/* 泳道左侧两行制：头像 + 右侧（公司/岗位在上，来源/标签在下） */
.job-lane-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.job-lane-meta {
  width: auto;
}

/* 漏斗面板改单列：摘要行在上，明细 grid 在下（覆盖旧的两列 grid 布局） */
.job-funnel {
  display: block;
}

/* ── 会员版体验入口（独立页 /preview/member）：玄金系点缀 ── */
.ws-menu-preview {
  color: #8A6A1F;
}

.ws-menu-preview .mp-spark {
  display: inline-flex;
  align-items: flex-start;
  color: #C9A227;
  font-size: 11px;
}

/* 皇冠 + 小星星组合：星星叠在皇冠右上角，金色略分深浅制造层次 */
.ws-menu-preview .mp-spark .spark-sm {
  margin: -3px 0 0 -4px;
  opacity: 0.9;
}

.ws-menu-preview .mp-spark .spark-xs {
  opacity: 0.55;
  margin: 5px 0 0 -2px;
}

.ws-menu-preview:hover .mp-spark {
  color: #A8841B;
}

.ws-menu-preview:hover {
  background: rgba(201, 162, 39, 0.08);
}

/* ── 投递日历 ─────────────────────────────────────────── */
.job-calendar {
  margin-top: 14px;
  padding: 18px 20px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.job-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.job-cal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-cal-title {
  font-size: 15px;
  color: var(--ink);
}

.job-cal-navbtn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.job-cal-navbtn:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.job-cal-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

.job-cal-legend .job-cal-dot {
  margin-left: 12px;
}

.job-cal-legend .job-cal-dot:first-child {
  margin-left: 0;
}

.job-cal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.job-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 12px;
  color: var(--ink-3);
  padding: 0 0 6px;
}

.job-cal-week span {
  text-align: center;
}

.job-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

button.job-cal-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 64px;
  padding: 6px 8px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.job-cal-cell.is-blank {
  background: var(--paper);
  cursor: default;
}

button.job-cal-cell:hover {
  background: var(--paper-2);
}

button.job-cal-cell.is-selected,
button.job-cal-cell.is-selected:hover {
  background: var(--accent-soft);
}

.job-cal-daynum {
  font-size: 12.5px;
  line-height: 1;
  color: var(--ink-2);
  padding: 3px 6px;
  border-radius: 999px;
}

.job-cal-cell.is-today .job-cal-daynum {
  background: var(--accent-ink);
  color: var(--white);
}

.job-cal-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 7px;
}

.job-cal-more {
  font-size: 11px;
  color: var(--ink-3);
}

.job-cal-panel {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.job-cal-daytitle {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.job-cal-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}

.job-cal-empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

.job-cal-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.job-cal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
}

.job-cal-item:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--white);
}

.job-cal-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  flex: none;
}

.job-cal-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  button.job-cal-cell {
    min-height: 46px;
    padding: 4px 5px;
  }

  .job-cal-legend {
    display: none;
  }
}
/* ── 交互式能力演示（Agent 流程：左切换 + 右终端动画） ── */

.mp-flow {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 20px;
  align-items: start;
}

.mp-flow-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-flow-tab {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 11px 12px;
  border: 1px solid #E2DED4;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.mp-flow-tab:hover {
  border-color: #C9C4B6;
}

.mp-flow-tab.is-current {
  border-color: #17564A;
  background: #F1EEE6;
  box-shadow: 0 1px 4px rgba(22, 33, 31, 0.06);
}

.mp-flow-tab i {
  flex: 0 0 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #E2DED4;
  color: #4B5254;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.mp-flow-tab.is-current i {
  background: #17564A;
  color: #FBFAF7;
}

.mp-flow-tab span {
  font-size: 13.5px;
  font-weight: 600;
  color: #191C1D;
  line-height: 1.35;
}

.mp-flow-tab small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: #78807F;
}

.mp-flow-plan {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: #8A6A1F;
  font-size: 11px;
  font-style: normal;
}

.mp-flow-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.mp-flow-copy h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #191C1D;
}

.mp-flow-copy p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #4B5254;
}

/* 终端模拟：深墨块 + 打字机动画 */
.mp-flow-term {
  background: #16211F;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(22, 33, 31, 0.22);
}

.mp-flow-term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.045);
}

.mp-flow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3A4A45;
}

.mp-flow-dot:first-child {
  background: #B23A2E;
}

.mp-flow-dot:nth-child(2) {
  background: #C9A227;
}

.mp-flow-dot:nth-child(3) {
  background: #2F9E83;
}

.mp-flow-term-bar em {
  margin-left: 10px;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: #78807F;
}

.mp-flow-term-body {
  padding: 18px 20px;
  min-height: 190px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 2;
}

.fl-line {
  display: flex;
  gap: 8px;
  white-space: pre-wrap;
  word-break: break-all;
}

.fl-prefix {
  flex: 0 0 auto;
}

.fl-user {
  color: #F5C64F;
}

.fl-sys {
  color: #9AA6A0;
}

.fl-agent {
  color: #D8DED9;
}

.fl-ok {
  color: #7FD1B9;
}

.fl-plan {
  color: #C9A227;
}

.fl-caret {
  color: #2F9E83;
  animation: fl-blink 1s step-end infinite;
}

@keyframes fl-blink {
  50% {
    opacity: 0;
  }
}

.mp-flow-term-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-flow-replay {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #D8DED9;
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
}

.mp-flow-replay:hover {
  border-color: #2F9E83;
  color: #7FD1B9;
}

.mp-flow-term-foot span {
  font-size: 11.5px;
  color: #78807F;
}

/* 实现效果图轮播：与能力 tab 联动，可滑动，占位后期贴 GIF */
.mp-flow-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-flow-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 14px;
  scrollbar-width: none;
}

.mp-flow-track::-webkit-scrollbar {
  display: none;
}

.mp-flow-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}

.mp-flow-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 16 / 9; /* 正常显示器屏比例：后期 GIF/截图按此比例出图即可 */
  border: 2px dashed rgba(201, 162, 39, 0.55);
  border-radius: 14px;
  background: rgba(201, 162, 39, 0.05);
  padding: 20px;
  text-align: center;
}

.mp-flow-shot svg {
  width: 38px;
  height: 38px;
  color: #C9A227;
}

.mp-flow-shot span {
  font-size: 13.5px;
  font-weight: 600;
  color: #8A6A1F;
  letter-spacing: 0.03em;
}

.mp-flow-shot small {
  font-size: 12px;
  color: #78807F;
}

.mp-flow-gallery-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mp-flow-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid #E2DED4;
  border-radius: 50%;
  background: #fff;
  color: #4B5254;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.mp-flow-arrow:hover {
  border-color: #17564A;
  color: #17564A;
}

.mp-flow-dots {
  display: flex;
  gap: 7px;
}

.mp-flow-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #E2DED4;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.mp-flow-dots button.is-current {
  background: #C9A227;
  transform: scale(1.25);
}

@media (max-width: 900px) {
  .mp-flow {
    grid-template-columns: 1fr;
  }

  .mp-flow-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .mp-flow-tab {
    flex: 0 0 auto;
    width: 180px;
  }
}

/* ── 简历优化 / 定制 · 教程板块（data-view=guide） ── */

/* 横向步骤 tab：第一步安装 / 第二步实操演示 / 第三步开始使用 */
.mp-guide-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.mp-guide-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #E2DED4;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.mp-guide-tab:hover {
  border-color: #C9C4B6;
}

.mp-guide-tab.is-current {
  background: #17564A;
  border-color: #17564A;
}

.mp-guide-tab i {
  font-style: normal;
  font-size: 11.5px;
  color: #78807F;
}

.mp-guide-tab span {
  font-size: 13.5px;
  font-weight: 600;
  color: #191C1D;
}

.mp-guide-tab.is-current i {
  color: rgba(251, 250, 247, 0.75);
}

.mp-guide-tab.is-current span {
  color: #FBFAF7;
}

/* 第一步 / 第三步的正文占位（后续排版补充） */
.mp-guide-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 300px;
  border: 2px dashed rgba(201, 162, 39, 0.55);
  border-radius: 14px;
  background: rgba(201, 162, 39, 0.05);
  padding: 24px;
  text-align: center;
}

.mp-guide-placeholder svg {
  width: 38px;
  height: 38px;
  color: #C9A227;
}

.mp-guide-placeholder span {
  font-size: 14px;
  font-weight: 600;
  color: #8A6A1F;
  letter-spacing: 0.04em;
}

.mp-guide-placeholder small {
  font-size: 12.5px;
  color: #78807F;
}

.mp-guide-soon {
  font-size: 12.5px;
  color: #8A6A1F;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}

.mp-guide {
  background: #FBFAF7;
  border: 1px solid #E2DED4;
  border-radius: 14px;
  padding: 28px 30px 22px;
}

.mp-guide-lead {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #4B5254;
}

.mp-guide-todo {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px dashed #E2DED4;
  text-align: center;
  font-size: 12.5px;
  color: #78807F;
  letter-spacing: 0.04em;
}

/* ── 新建简历：先选模板（工作台 / 体验工作台共用 new-resume-picker.js） ──
   骨架类名（.modal / .template-grid / .template-card / .filter-btn）来自
   template-library.css，这里只补静态样张图与选中态。 */
#newTemplateModal .modal-filters[hidden] { display: none; }
#newTemplateModal .template-card { cursor: pointer; }
#newTemplateModal .nt-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
#newTemplateModal .template-thumb.is-empty { background: var(--paper-2); }
#newTemplateModal .template-thumb.is-empty::after {
  content: '预览生成中';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.04em;
}
#newTemplateModal .template-thumb.is-empty .nt-thumb { display: none; }
#newTemplateModal .nt-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
}
#newTemplateModal .nt-cta i { font-style: normal; transition: transform 0.18s ease; }
#newTemplateModal .template-card:hover .nt-cta i { transform: translateX(3px); }
#newTemplateModal.is-busy .template-card { opacity: 0.55; pointer-events: none; }
#newTemplateModal .nt-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
#newTemplateModal .nt-foot-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
}
#newTemplateModal .nt-blank {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#newTemplateModal .nt-blank:hover { color: var(--ink); }
#newTemplateModal .nt-blank[hidden] { display: none; }

