:root {
  /* 绿侧栏，内容区用浅青绿，避免纯白 */
  --bg: #e7f0ea;
  --paper: #f7faf8;
  --ink: #1d2129;
  --muted: #86909c;
  --line: #e5e6eb;
  --chip: #f2f3f5;
  --accent: #165dff;
  --orange: #165dff;
  --orange-deep: #0e42d2;
  --link: #165dff;
  --ok: #00b42a;
  --nav: #f2f3f5;
  --soft: #f7f8fa;
  --wash: #e8f3ff;
  --peach: #bedaff;
  --glass: rgba(255, 255, 255, .92);
  --glass-strong: #ffffff;
  --shadow: 0 4px 10px rgba(0, 0, 0, .06);
  --glow: none;
  --radius: 4px;
  --sky: #e8f3ff;
  --lavender: #f5e8ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--ink);
  background: linear-gradient(163.85deg, #1d2129 0%, #00308f 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  display: flex;
  height: 100vh;
  overflow: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
button, input, select, textarea { font-family: inherit; color: var(--ink); }
html { color-scheme: light; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sidenav {
  width: 220px;
  flex: none;
  color: rgba(255, 255, 255, .88);
  background: linear-gradient(90deg, transparent 0%, transparent 62%, rgba(138, 164, 200, .72) 100%);
  border-right: 0;
  box-shadow: none;
  padding: 12px 8px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  transition: width .18s ease;
}
.sidenav .logo {
  display: block;
  padding: 8px 12px 0;
  color: #fff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
}
.sidenav .logo-kicker {
  margin: 2px 12px 16px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  letter-spacing: 0;
}
.sidenav .group-title {
  margin: 16px 12px 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  letter-spacing: 0;
}
.sidenav button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0 12px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, .88);
  text-align: left;
  font-size: 14px;
}
.sidenav button.on {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}
.sidenav button:hover:not(.on) {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.sidenav nav { flex: 1; }
.nav-fold {
  flex: none;
  margin-top: 8px;
  color: rgba(255, 255, 255, .8);
  justify-content: center;
}
body.nav-collapsed .sidenav {
  width: 0;
  padding: 0;
  overflow: visible;
  z-index: 2;
}
body.nav-collapsed .logo,
body.nav-collapsed .logo-kicker,
body.nav-collapsed .sidenav nav {
  display: none;
}
body.nav-collapsed .nav-fold {
  position: absolute;
  left: 10px;
  top: 14px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  font-size: 0;
  color: transparent;
  border-radius: 4px;
  background: rgba(255, 255, 255, .16);
}
body.nav-collapsed .nav-fold::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color-scheme: light;
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #1d2129;
  --muted: #86909c;
  --line: #e5e6eb;
  --chip: #f2f3f5;
  --soft: #f7f8fa;
  --wash: #e8f3ff;
  --peach: #bedaff;
  --glass: rgba(255, 255, 255, .92);
  --glass-strong: #ffffff;
  --link: #165dff;
  --accent: #165dff;
  --orange: #165dff;
  --orange-deep: #0e42d2;
  --shadow: 0 4px 10px rgba(0, 0, 0, .06);
  color: var(--ink);
  background: linear-gradient(90deg, #8aa4c8 0%, #c5d6eb 90px, #e7eef7 200px, #f6f8fb 320px);
}
.content-top {
  flex: none;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(29, 33, 41, .06);
  background: transparent;
  backdrop-filter: none;
}
.user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-menu { position: relative; }
.user-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0 8px 0 2px;
  border-radius: 2px;
  cursor: pointer;
  color: inherit;
}
.user-entry:hover,
.user-entry[aria-expanded="true"] {
  background: var(--chip);
  border-color: var(--line);
}
.user-caret {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex: none;
}
.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  max-width: 140px;
}
.user-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 176px;
  padding: 8px;
  background: #15243f;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}
.user-pop button {
  display: flex;
  width: 100%;
  height: 32px;
  align-items: center;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0 8px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.user-pop button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-member-left {
  display: block;
  margin: 0 0 4px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.member-clock-box {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--peach);
  background: var(--wash);
  border-radius: 18px;
}
.member-clock-label {
  margin: 0 0 4px;
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 600;
}
.member-clock {
  margin: 0;
  color: var(--orange);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  line-height: 1.2;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #165dff;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.avatar svg { width: 16px; height: 16px; }
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.avatar.has-img { background: var(--chip); overflow: hidden; }
button.avatar,
label.avatar {
  border: 0;
  padding: 0;
  cursor: pointer;
}
.user-bar #whoami {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.page { width: 100%; margin: 0; padding: 18px 22px 24px; flex: 1; min-height: 0; overflow: auto; }
.coming-board { padding: 48px 32px 56px; min-height: 360px; }
.coming-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--wash);
  color: var(--orange);
  font-size: 12px;
}
.coming-board h1 { margin-bottom: 10px; }
.board {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 20px 20px 12px;
  box-shadow: none;
}
.board-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}
h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}
.board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}
.board-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(560px, 100%);
  flex: 1;
  justify-content: flex-end;
}
.search-bar input {
  width: min(420px, 100%);
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 12px;
  outline: none;
  background: var(--glass-strong);
}
.search-bar input:focus { border-color: #165dff; box-shadow: 0 0 0 2px rgba(22, 93, 255, .16); }
.search-bar button, .btn.primary {
  height: 32px;
  border: 0;
  border-radius: 2px;
  background: #165dff;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 500;
  box-shadow: none;
}
.search-bar button:hover, .btn.primary:hover { background: #4080ff; filter: none; }
.chip-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.chip-label {
  width: 40px;
  flex: none;
  padding-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-custom {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.chip-custom input {
  width: 168px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 12px;
  outline: none;
  font-size: 13px;
  background: var(--glass-strong);
}
.chip-custom input:focus { border-color: var(--orange); }
.chip-custom button {
  height: 30px;
  border: 0;
  border-radius: 2px;
  background: var(--chip);
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
}
.chip-custom button:hover { background: var(--line); }
.chip-x {
  margin-left: 4px;
  font-size: 12px;
  opacity: .5;
}
.chip-x:hover { opacity: 1; }
.chip {
  border: 1px solid transparent;
  background: var(--chip);
  color: #3f4553;
  border-radius: 2px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  line-height: 16px;
}
.chip.on {
  background: #e8f3ff;
  color: #246352;
  box-shadow: none;
  border: 1px solid #bedaff;
  font-weight: 600;
}
.chip:hover:not(.on) { background: #e3efe6; }
.board-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 18px 0 10px;
  flex-wrap: wrap;
}
#totalCount { color: var(--muted); font-size: 13px; }
.board-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.type-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 2px; background: var(--chip); }
.type-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 7px 14px;
  font-size: 14px;
  border-radius: 2px;
}
.type-tabs .tab-ico {
  width: 16px;
  height: 16px;
  flex: none;
}
.type-tabs button.on {
  color: var(--ink);
  font-weight: 600;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(80, 110, 90, .08);
}
.sort-hint { color: var(--muted); font-size: 12px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1280px; }
.logs-table { min-width: 880px; }
th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  background: #f4f8f5;
  position: sticky;
  top: 0;
  z-index: 1;
}
th[data-col], th.sortable { cursor: pointer; }
th i {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #5b6478;
  vertical-align: middle;
}
th.sortable b {
  color: var(--orange);
  font-weight: 700;
  margin-left: 2px;
}
tbody tr:nth-child(even) { background: transparent; }
tbody tr:hover { background: rgba(125, 186, 164, .12); }
.company-cell strong { display: block; font-size: 14px; font-weight: 600; }
.company-cell small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.pos {
  max-width: 280px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.loc { max-width: 160px; color: var(--muted); }
.ind {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.6;
}
.tone-yellow { background: #fef6d8; color: #92400e; }
.tone-orange { background: #f8ebe3; color: #8a5a45; }
.tone-purple { background: #f3e8ff; color: #6b21a8; }
.tone-green { background: #dcfce7; color: #166534; }
.tone-cyan { background: #e0f7fa; color: #0e7490; }
.tone-gray { background: #eef2f6; color: #475569; }
.tone-peach { background: #f8ecec; color: #8d5a64; }
.tone-blue { background: #e0edff; color: #1d4ed8; }
.tone-red { background: #f8e8ea; color: #8d5360; }
.tone-beige { background: #f8eedc; color: #78350f; }
.tone-lime { background: #ecfccb; color: #3f6212; }
.tone-sky { background: #e0e7ff; color: #3730a3; }
.tone-mint { background: #ccfbf1; color: #0f766e; }
.tone-gold { background: #fef6d8; color: #854d0e; }
.type-text { color: var(--orange); font-weight: 500; white-space: nowrap; }
.linkish {
  color: var(--link);
  text-decoration: none;
  white-space: nowrap;
}
.linkish:hover { text-decoration: underline; }
.need-member { opacity: .72; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 56px 16px !important; }
.track-btn {
  border: 1px solid var(--orange);
  background: var(--glass-strong);
  color: var(--orange);
  border-radius: 2px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
}
.track-btn.on {
  background: #165dff;
  color: #fff;
  border-color: #165dff;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 18px;
  color: var(--muted);
  font-size: 13px;
}
.pager button {
  border: 1px solid var(--line);
  background: var(--glass-strong);
  border-radius: 2px;
  padding: 6px 12px;
  cursor: pointer;
  margin-left: 8px;
  color: var(--ink);
}
.pager button:disabled { opacity: .45; cursor: default; }
.btn {
  border: 0;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 2px;
}
.btn.ghost {
  background: var(--glass-strong);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  border-color: #165dff;
  color: #165dff;
  background: #fff;
}
label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.row-actions { display: flex; gap: 10px; flex: none; }
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.source-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.source-card h3 { margin: 0 0 6px; font-size: 16px; }
.source-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.source-card .nums {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 12px;
  color: var(--muted);
}
.btn.tiny { padding: 7px 10px; font-size: 13px; }
.log-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 10px;
  margin-bottom: 18px;
  background: var(--paper);
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; }
h2 { margin: 0; font-size: 16px; }
.card-head em { font-style: normal; color: var(--muted); font-size: 12px; }
pre {
  white-space: pre-wrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-height: 280px;
  overflow: auto;
}
.col-pop {
  position: fixed;
  z-index: 20;
  width: 240px;
  max-height: 320px;
  overflow: auto;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .40);
  padding: 8px;
}
.col-pop input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  margin-bottom: 6px;
  outline: none;
}
.col-pop button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 7px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
}
.col-pop button:hover, .col-pop button.on { background: var(--wash); color: var(--orange); }
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, .55);
  display: none;
  justify-content: flex-end;
  align-items: stretch;
  padding: 16px;
  z-index: 30;
}
.drawer.show { display: flex; }
.drawer-panel {
  width: min(460px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(16, 28, 58, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 18px 18px 16px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}
.close {
  float: right;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.drawer .close {
  float: none;
  align-self: flex-end;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  color: #fff;
  font-size: 13px;
}
.drawer .close:hover { background: rgba(255, 255, 255, .2); }
.drawer-panel h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  line-height: 1.35;
}
.kicker { margin: 0 0 8px; color: var(--orange); font-size: 12px; font-family: Sora, sans-serif; letter-spacing: .14em; }
.drawer-meta { color: var(--muted); line-height: 1.7; margin: 0; }
.drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.8;
  margin: 14px 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}
.match-box {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
}
.match-box p { margin: 0 0 8px; }
.match-box ul { margin: 0 0 8px; padding-left: 18px; }
.match-box .muted { margin: 0; }
.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: none;
}
.drawer-actions .btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
}
.drawer-actions .btn.primary {
  background: #fff;
  color: #00308f;
}
.drawer-actions .btn.ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
}
.drawer-actions .btn.ghost:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.check-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  grid-template-columns: none;
}
.check-inline input { width: auto; height: auto; margin: 0; }
.board-meta .check-inline { margin-left: 12px; }
tr.is-closed { opacity: .62; }
.closed-tag { color: #b36b62; }
.match-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--orange);
}
.funnel { margin: 0 0 16px; }
.funnel-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}
.funnel-steps span {
  min-width: 72px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.funnel-steps span b {
  display: block;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 2px;
}
.funnel-steps i {
  width: 18px;
  align-self: center;
  height: 1px;
  background: var(--line);
}
.resume-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.resume-ver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  border-radius: 2px;
  padding: 6px 10px 6px 12px;
  cursor: pointer;
  font-size: 13px;
}
.resume-ver.on { border-color: var(--peach); background: var(--soft); color: var(--orange); }
.resume-ver span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.resume-ver span:hover { color: #b45b62; }
#resumeName {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  margin: 0 0 10px;
  font-size: 14px;
}
body.auth-page {
  display: block;
  height: auto;
  min-height: 100vh;
  overflow: auto;
  color: #fff;
  background: linear-gradient(163.85deg, #1d2129 0%, #00308f 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, .95fr);
}
.auth-brand {
  position: relative;
  overflow: visible;
  color: #fff;
  padding: 36px 44px 32px;
  background: transparent;
  border-right: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-brand-logo {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #fff;
}
.auth-brand-kicker {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  letter-spacing: 0;
}
.auth-brand h2 {
  max-width: 12em;
  margin: 8px 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  font-weight: 700;
}
.auth-brand-lead {
  max-width: 34em;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.7;
}
.auth-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
}
.auth-modules span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  line-height: 1.4;
}
.auth-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 560px;
}
.auth-perks li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
}
.auth-perks strong { font-size: 14px; }
.auth-perks span { color: rgba(255, 255, 255, .72); font-size: 12px; line-height: 1.5; }
.auth-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  max-width: 560px;
}
.auth-metrics div {
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}
.auth-metrics b {
  display: block;
  font-family: Sora, "Noto Sans SC", sans-serif;
  font-size: 20px;
  color: #fff;
}
.auth-metrics span { color: rgba(255, 255, 255, .72); font-size: 12px; }
.auth-board {
  max-width: 560px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
}
.auth-board[open] { padding-bottom: 16px; }
.auth-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  list-style: none;
}
.auth-board-head::-webkit-details-marker { display: none; }
.auth-board-head strong { font-size: 14px; }
.auth-board-head strong::before {
  content: "▸ ";
  color: rgba(255, 255, 255, .72);
}
.auth-board[open] .auth-board-head { margin-bottom: 10px; }
.auth-board[open] .auth-board-head strong::before { content: "▾ "; }
.auth-board-head span { color: rgba(255, 255, 255, .65); font-size: 12px; }
.auth-tickets {
  display: grid;
  gap: 6px;
}
.auth-ticket {
  display: grid;
  gap: 1px;
  padding: 7px 10px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: #1d2129;
}
.auth-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.auth-ticket em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-weight: 650;
  color: #1d2129;
  font-size: 13px;
  line-height: 1.35;
}
.auth-ticket small {
  flex: none;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #165dff;
  font-size: 10px;
  line-height: 16px;
}
.auth-ticket strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #4e5969;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.auth-ticket-where {
  color: #86909c;
  font-size: 11px;
  line-height: 1.35;
}
@media (max-width: 980px) {
  .auth-perks,
  .auth-metrics { grid-template-columns: 1fr 1fr; }
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: transparent;
}
.auth-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 28px;
  padding: 32px 28px 26px;
  box-shadow: 0 24px 64px rgba(4, 16, 48, .35);
  backdrop-filter: blur(18px);
}
.auth-card-kicker {
  margin: 0 0 6px;
  font-family: Sora, sans-serif;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  letter-spacing: .16em;
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #fff;
}
.auth-card-sub {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.6;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 20px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}
.auth-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 0;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  font-size: 14px;
  border-radius: 999px;
}
.auth-tabs button.on {
  color: #00308f;
  font-weight: 600;
  background: #fff;
  box-shadow: none;
}
.auth-hint { margin: 0 0 8px; color: rgba(255, 255, 255, .72); font-size: 12px; line-height: 1.6; }
.auth-hint strong { color: #fff; }
.auth-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.auth-code-row input { margin-top: 0; flex: 1; min-width: 0; }
.auth-code-row .btn {
  flex: none;
  height: 46px;
  padding: 0 14px;
  white-space: nowrap;
  border-radius: 14px;
}
.auth-code-row .btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.auth-captcha {
  flex: none;
  width: 132px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.auth-code-row .btn.ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
}
.auth-code-row .btn.ghost:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.auth-captcha img { display: block; width: 100%; height: 100%; }
.auth-card label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
}
.auth-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.auth-card input::placeholder { color: rgba(255, 255, 255, .45); }
.auth-card input:focus {
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12);
}
.auth-card input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #1a305f inset;
}
.auth-pass { position: relative; display: block; }
.auth-pass input { padding-right: 52px; }
.auth-pass-btn {
  position: absolute;
  right: 8px;
  top: 16px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  font-size: 12px;
  padding: 6px 8px;
}
.auth-extra {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin: 2px 0 8px;
}
.auth-extra button {
  border: 0;
  background: none;
  padding: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  cursor: pointer;
}
.auth-extra button:hover { text-decoration: underline; }
.auth-error { min-height: 20px; color: #ffccc7; font-size: 13px; margin: 0 0 8px; }
.auth-actions { display: flex; gap: 10px; }
.auth-actions .btn {
  flex: 1;
  height: 46px;
  background: #fff;
  color: #00308f;
  font-weight: 600;
  border-radius: 14px;
}
.auth-actions .btn:hover { background: #e8f3ff; color: #00308f; filter: none; }
.auth-actions .btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
}
.auth-actions .btn.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 22px 32px; }
  .auth-main { padding: 18px 16px 28px; }
  .auth-card { padding: 26px 20px 22px; }
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 10px;
  background: var(--paper);
  cursor: pointer;
  text-align: center;
}
.stat-card b { display: block; font-size: 22px; color: var(--ink); }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card.on { border-color: var(--peach); background: var(--wash); }
.stat-card.on b { color: var(--orange); }
.note-input {
  width: 140px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  outline: none;
}
.note-input:focus { border-color: var(--orange); }
#progressBody select {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 12px;
  background: var(--glass-strong);
}
.qa-list { display: grid; gap: 10px; padding-bottom: 18px; }
.qa-item { border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.qa-q {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.qa-a {
  display: none;
  margin: 0;
  padding: 0 16px 14px;
  color: var(--muted);
  line-height: 1.8;
}
.qa-item.open .qa-a { display: block; }
.resume-work {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 20px;
  padding: 8px 20px 28px 8px;
  align-items: start;
}
.resume-pane {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 18px 22px;
  box-shadow: var(--shadow);
}
.resume-pane h1 { margin: 0 0 8px; font-size: 22px; }
.resume-modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0;
}
.resume-mode {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.resume-mode strong { display: block; margin-bottom: 2px; }
.resume-mode span { color: var(--muted); font-size: 12px; }
.resume-mode.on { border-color: var(--peach); background: var(--soft); }
.resume-drop {
  display: block;
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 10px;
  background: var(--soft);
}
#resumeFile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.resume-drop strong { display: block; margin-bottom: 4px; }
.resume-upload { margin-bottom: 14px; }
.resume-jd-label { display: block; margin: 8px 0 6px; color: var(--muted); font-size: 12px; }
#resumeJd {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  font-family: inherit;
  margin-bottom: 12px;
}
.resume-pane .row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.resume-pane .wb-tune {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}
.resume-pane .wb-tune select {
  width: 100%;
  min-width: 0;
  height: 32px;
}
.resume-pane .row-actions .btn { width: 100%; }
.resume-pane #resumeHint { margin: 8px 0 0; }
.resume-result { margin-top: 14px; line-height: 1.7; }
.resume-keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.resume-keys span {
  font-size: 12px;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 2px;
  background: #e7f2ea;
  color: #24613a;
}
.resume-keys .gap { background: #f8efe6; color: #8a5a2a; }
.resume-block { margin-top: 12px; }
.resume-rewrite {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.resume-rewrite p { margin: 4px 0; }
.resume-export { justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.resume-export-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
.resume-export-pick select {
  height: 32px;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
}
.resume-diff del { color: #8a5a2a; }
.resume-diff ins { color: #24613a; text-decoration: none; }
.resume-result .score {
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
}
.resume-tpl-board { margin-top: 0; }
.resume-tpl-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.resume-tpl-board .board-head p { max-width: 820px; line-height: 1.6; }
.resume-tpl-form {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(120px, 0.8fr) minmax(160px, 1.2fr) 110px auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}
.resume-tpl-form input,
.resume-tpl-form select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}
@media (max-width: 980px) {
  .resume-tpl-form { grid-template-columns: 1fr; }
}
.resume-paper {
  min-height: 640px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 40px 48px;
  box-shadow: var(--shadow);
}
.resume-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--chip);
}
.resume-paper h2 { text-align: center; margin: 0 0 6px; font-size: 26px; }
.resume-paper .contact { text-align: center; color: var(--muted); margin: 0 0 20px; font-size: 13px; }
.resume-paper h3 {
  margin: 18px 0 8px;
  font-size: 14px;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.resume-paper p { margin: 0 0 8px; line-height: 1.75; color: var(--muted); }
.pay-mask {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, .68);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.pay-card {
  width: min(480px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 20px 18px;
  position: relative;
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-shadow: var(--shadow);
}
.pay-card .close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: var(--soft);
  border-radius: 2px;
  padding: 4px 10px;
  cursor: pointer;
}
.compare-card {
  width: min(920px, calc(100vw - 32px));
}
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}
.compare-table thead th { background: var(--soft); }
.compare-table tbody th { width: 72px; color: var(--muted); font-weight: 500; }
.check-col { width: 28px; }
.company-block { margin: 16px 0; }
.company-block h3 { margin: 0 0 8px; font-size: 15px; }
.company-block ul { margin: 0 0 10px; padding-left: 18px; }
.company-block li { margin: 0 0 6px; }
.company-block li span { display: block; color: var(--muted); font-size: 12px; }
.pay-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.pay-plan {
  position: relative;
  border: 2px solid var(--line);
  background: var(--glass-strong);
  border-radius: 10px;
  padding: 12px 12px 10px;
  text-align: left;
  cursor: pointer;
}
.pay-plan:hover { border-color: var(--peach); background: var(--soft); }
.pay-plan.on {
  border-color: var(--orange);
  background: var(--wash);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .22);
  color: var(--orange-deep);
  font-weight: 600;
}
.pay-plan strong { display: block; }
.pay-plan .pick {
  display: none;
  margin-top: 6px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
}
.pay-plan.on .pick { display: block; }
.pay-qr { text-align: center; }
.pay-qr img { width: 200px; height: 200px; object-fit: contain; }
.pay-amount {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 22px;
  font-weight: 700;
}
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pay-admin-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.profile-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.profile-card h2 { margin: 0 0 10px; font-size: 16px; }
.daily-card { grid-column: 1 / -1; }
.daily-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.daily-head h2 { margin: 0; }
.daily-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daily-nav input[type="date"] {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
}
.daily-progress { margin: 0 0 8px; }
.daily-tasks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.daily-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.daily-task input { width: 16px; height: 16px; accent-color: #165dff; flex: none; }
.daily-task span { flex: 1; min-width: 0; line-height: 1.5; }
.daily-task.done span { color: var(--muted); text-decoration: line-through; }
.daily-del {
  border: 0;
  background: transparent;
  color: #86909c;
  cursor: pointer;
  font-size: 12px;
}
.daily-add { display: contents; }
.daily-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "input add"
    "label label"
    "text save";
  gap: 8px;
  align-items: start;
  margin-bottom: 12px;
}
#dailyTaskInput { grid-area: input; }
#dailyAddForm button { grid-area: add; }
.daily-kicker {
  grid-area: label;
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
#dailyReflection { grid-area: text; }
#dailySaveBtn { grid-area: save; align-self: start; }
.daily-editor input,
.daily-editor textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
}
.daily-editor input {
  height: 36px;
  padding: 0 12px;
}
.daily-editor textarea {
  display: block;
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}
.daily-editor .btn.primary {
  width: 100%;
  height: 36px;
  white-space: nowrap;
}
.daily-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.daily-days button {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  cursor: pointer;
  font-size: 12px;
}
.daily-days button.on { background: #e8f3ff; border-color: #bedaff; color: #165dff; font-weight: 600; }
.perk-title {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.perk-list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.perk-list li { margin: 0 0 6px; }
.perk-list strong { color: var(--ink); font-weight: 600; }
.pay-card .perk-title { margin-top: 4px; }
.profile-form { display: grid; gap: 12px; }
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
}
.profile-avatar svg { width: 36px; height: 36px; }
.profile-avatar-meta { display: grid; gap: 6px; justify-items: start; }
.profile-avatar-meta .muted { margin: 0; }
.profile-form label { display: grid; gap: 6px; color: var(--ink); font-size: 13px; }
.profile-form input, .profile-form select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  background: var(--glass-strong);
}
.profile-form input[readonly] { background: var(--soft); color: var(--muted); }
.assist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 18px;
}
.assist-list-admin {
  grid-template-columns: 1fr;
}
.assist-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  box-shadow: var(--shadow);
}
.assist-card.assist-edit {
  min-height: 0;
}
.assist-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.assist-edit-head strong {
  font-size: 15px;
  word-break: break-all;
}
.assist-edit .assist-upload {
  margin: 0;
  grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.6fr) 160px;
}
.assist-edit .assist-upload .row-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}
.assist-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.assist-card-top strong {
  font-size: 15px;
  word-break: break-all;
}
.assist-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}
.assist-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.assist-tag {
  flex: none;
  border-radius: 2px;
  padding: 2px 8px;
  background: var(--wash);
  color: var(--orange);
  font-size: 12px;
}
.assist-tag.all {
  background: rgba(56, 189, 248, .14);
  color: #7dd3fc;
}
.assist-guide {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.assist-guide summary {
  cursor: pointer;
  font-weight: 600;
}
.assist-guide-body { margin-top: 10px; }
.assist-steps, .assist-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.assist-steps li, .assist-notes li { margin: 0 0 8px; }
.assist-steps code {
  background: var(--chip);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
}
.assist-upload {
  display: grid;
  grid-template-columns: 1fr 1.4fr 160px auto;
  gap: 12px;
  align-items: end;
  margin: 12px 0 0;
}
.assist-upload label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.assist-upload input, .assist-upload textarea, .assist-upload select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}
.assist-upload .row-actions { margin: 0; }
@media (max-width: 980px) {
  .assist-list, .assist-list-admin, .assist-upload { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .profile-grid { grid-template-columns: 1fr; }
}
.pay-admin {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}
@media (max-width: 980px) {
  body { display: block; }
  .sidenav {
    width: auto;
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .board-head, .board-meta, .chip-row { display: block; }
  .search-bar { margin-top: 12px; justify-content: stretch; }
  .search-bar input { width: 100%; }
  .chip-label { display: block; padding: 0 0 8px; }
  .type-tabs { margin: 10px 0; }
  .stat-row, .resume-work { grid-template-columns: 1fr; }
  .jobs-page, .news-page, .workbench-page {
    overflow: auto;
    display: block;
    height: auto;
  }
  .jobs-page .board { overflow: visible; display: block; }
}

.workbench-page {
  padding: 16px 20px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wb {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  flex: 1;
  min-height: 0;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.jobs-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 20px;
}
.jobs-page .board {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.jobs-page .table-wrap {
  flex: 1;
  min-height: 120px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.jobs-page table {
  border-collapse: separate;
  border-spacing: 0;
}
.jobs-page thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 40px;
  padding: 0 12px;
  background: #f4f8f5;
  box-shadow: inset 0 -1px 0 var(--line);
}
.jobs-page tbody td {
  height: 48px;
  padding: 0 12px;
  white-space: nowrap;
}
.jobs-page tbody td.empty {
  height: auto;
  white-space: normal;
}
.jobs-page .pos {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 20px;
}
.jobs-page td.loc,
.jobs-page td.hire,
.jobs-page td.cohort { overflow: hidden; }
.jobs-page .loc-text,
.jobs-page .cohort-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jobs-page .loc-text { width: 148px; color: var(--muted); }
.jobs-page td.hire { width: 72px; }
.jobs-page .cohort-text { width: 112px; }
.roadmap { list-style: none; margin: 0; padding: 4px 0 8px; }
.roadmap > li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  position: relative;
}
.roadmap > li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: #d7e8de;
  border-radius: 2px;
}
.roadmap > li:last-child::before { display: none; }
.rm-node {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: #165dff;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 650;
  position: relative;
  z-index: 1;
}
.rm-card {
  margin: 0 0 18px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}
.rm-kicker { color: #165dff; font-size: 12px; font-weight: 650; }
.rm-card h2 { margin: 2px 0 6px; font-size: 16px; font-weight: 650; }
.rm-card > p,
.rm-track p { margin: 0 0 8px; color: var(--muted); line-height: 1.6; }
.rm-card details { margin: 4px 0 8px; }
.rm-card summary {
  cursor: pointer;
  color: #0e42d2;
  font-size: 13px;
  font-weight: 650;
}
.rm-track { list-style: none; margin: 12px 0 0; padding: 8px 0 0 8px; border-left: 2px solid #d7e8de; }
.rm-track > li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f6f3ec;
}
.rm-track > li > span {
  height: 26px;
  border-radius: 2px;
  background: #e7f1e8;
  color: #0e42d2;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
}
.rm-track strong { display: block; margin-bottom: 2px; }
.path-todo { margin: 8px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.65; }
.path-todo li { display: list-item; margin: 0 0 4px; padding: 0; border: 0; background: none; }
.path-notes h3 { margin: 14px 0 6px; font-size: 14px; font-weight: 650; }
.path-notes ul { margin: 0; padding-left: 18px; }
.path-notes li { margin: 0 0 6px; line-height: 1.65; color: var(--muted); }
.path-notes b { color: var(--ink, #24352d); font-weight: 600; }
.path-links { display: flex; flex-wrap: wrap; gap: 14px; }
.jobs-page .company-cell strong,
.jobs-page .company-cell small {
  display: block;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jobs-page .company-cell strong { font-size: 13px; line-height: 16px; }
.jobs-page .company-cell small { margin-top: 0; font-size: 11px; line-height: 14px; }
.jobs-page .ind { margin: 0 4px 0 0; }
.news-page {
  padding: 16px 20px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hotboard {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, #ffffff 180px);
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(80, 110, 90, .04);
  overflow: hidden;
}
.hotboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}
.hotboard-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hot-leaf { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.hot-leaf svg { width: 18px; height: 18px; display: block; }
.hot-leaf svg path { fill: #b7cfc4; }
.hotboard-title h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: 0; color: #0e42d2; }
.hot-live {
  padding: 0 8px;
  border-radius: 2px;
  background: #f3f8f5;
  color: #6d8578;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
}
.hotboard-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hotboard-note { margin: 0; padding: 6px 20px 12px; color: var(--muted); font-size: 12px; }
.news-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 12px;
}
.news-source {
  border: 0;
  background: transparent;
  color: #7d8d84;
  border-radius: 2px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}
.news-source.on {
  background: #f3f8f5;
  color: #3d6b5c;
  font-weight: 500;
}
.news-source:hover:not(.on) { background: #f7faf8; color: var(--ink); }
.hot-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-content: start;
  padding: 0 20px 12px;
  background: transparent;
}
.news-empty { margin: 0; padding: 24px 4px; color: var(--muted); }
.hot-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "rank main"
    "rank side";
  align-items: start;
  column-gap: 12px;
  row-gap: 10px;
  min-width: 0;
  padding: 18px 4px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(211, 224, 214, .45);
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}
.hot-row:last-child { border-bottom: 0; }
.hot-row:hover { background: rgba(243, 248, 245, .7); border-radius: 18px; }
.hot-rank {
  grid-area: rank;
  padding-top: 3px;
  font-family: Sora, "Noto Sans SC", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-align: right;
  color: #a3b0a8;
}
.hot-rank-1,
.hot-rank-2,
.hot-rank-3 { color: #8fa399; }
.hot-main {
  grid-area: main;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.hot-line { display: flex; align-items: center; min-width: 0; }
.hot-title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hot-main:hover .hot-title { color: #165dff; }
.hot-sub {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #7d8b83;
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hot-side {
  grid-area: side;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}
.news-source-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 2px;
  background: #f6f4ee;
  color: #8a978f;
  font-size: 11px;
  line-height: 20px;
  cursor: pointer;
}
.news-source-chip:hover,
.news-source-chip.on { color: #4d6b5e; background: #eef6f1; }
.hot-time {
  color: #a3b0a8;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .hot-side { display: none; }
  .hotboard-note { display: none; }
}
.wb-rail, .wb-inspector {
  min-height: 0;
  overflow: auto;
  background: var(--soft);
}
.wb-rail {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
}
.wb-inspector { display: none; }
.wb-rail-head h2, .wb-inspector h3, .wb-stage-head h1 {
  margin: 0 0 8px;
}
.wb-kicker {
  margin: 0 0 4px;
  color: var(--orange);
  font-family: Sora, sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wb-rail-head .btn { width: 100%; margin: 10px 0 14px; }
.wb-session {
  display: flex;
  gap: 4px;
  align-items: stretch;
  margin-bottom: 6px;
}
.wb-session button[data-wb-session] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}
.wb-session.on button[data-wb-session] {
  background: var(--wash);
  color: var(--orange);
  box-shadow: inset 2px 0 0 var(--orange);
}
.wb-session strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-session span { color: var(--muted); font-size: 12px; }
.wb-session-del {
  width: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
}
.wb-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.wb-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.wb-stage-head p { margin: 0; color: var(--muted); font-size: 13px; max-width: 46em; }
.wb-stage-head h1 { font-size: 22px; }
.wb-thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #f7f4ee;
}
.wb-welcome { max-width: 520px; padding: 28px 8px; }
.wb-welcome h2 { font-size: 26px; margin: 0 0 10px; }
.wb-welcome p { color: var(--muted); line-height: 1.7; }
.wb-msg {
  max-width: min(820px, 94%);
  margin: 0 0 20px;
  align-self: flex-start;
}
.wb-msg.user {
  align-self: flex-end;
  width: fit-content;
  max-width: min(640px, 78%);
  margin-left: auto;
}
.wb-msg.user .wb-msg-name { justify-content: flex-end; color: #165dff; }
.wb-msg.assistant .wb-msg-name { color: #2a6d78; }
.wb-msg-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.wb-msg-time {
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.wb-msg-body {
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.55;
  background: var(--chip);
}
.wb-msg.assistant .wb-msg-body {
  font-size: 13px;
}
.wb-msg.assistant .wb-msg-body p {
  margin: 0 0 8px;
}
.wb-msg.assistant .wb-msg-body p:last-child { margin-bottom: 0; }
.wb-msg.assistant .wb-lead {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.wb-msg.assistant .wb-note {
  margin: 0 0 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f4f8fb;
  color: #5c6e74;
  font-size: 12px;
  line-height: 1.5;
}
.wb-msg.assistant .wb-msg-body h4 {
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 650;
}
.wb-msg.assistant .wb-sec {
  margin: 12px 0 6px;
  padding-top: 8px;
  border-top: 1px solid #e3eef2;
  color: #2a6d78;
  font-size: 12px;
}
.wb-msg.assistant .wb-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.wb-msg.assistant .wb-job {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 4px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f6fafb;
  font-size: 12px;
  line-height: 1.45;
}
.wb-msg.assistant .wb-job b {
  font-weight: 650;
  font-size: 12.5px;
}
.wb-msg.assistant .wb-job span { color: #5c6e74; }
.wb-job-link {
  color: #1f6f86;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.wb-job-link:hover { color: #174e60; }
.wb-source-link { cursor: pointer; }
.wb-source-link:hover { border-color: #2a6d78; }
.wb-source-link strong { text-decoration: underline; text-underline-offset: 2px; }
.wb-msg.assistant .wb-ul {
  margin: 2px 0 8px;
  padding-left: 1.15em;
}
.wb-msg.assistant .wb-ul li { margin: 3px 0; }
.wb-msg.user .wb-msg-body p { margin: 0; }
.wb-msg.user .wb-msg-body {
  background: #165dff;
  color: #f7fbf8;
  border: 0;
  border-bottom-right-radius: 4px;
}
.wb-msg.user .wb-msg-body a { color: #d7f3ea; }
.wb-msg.assistant .wb-msg-body {
  background: #fff;
  border: 1px solid #d5e4ea;
  border-left: 3px solid #2a6d78;
  border-bottom-left-radius: 4px;
  font-size: 13px;
}
.wb-msg-body pre, .wb-msg-body code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}
.wb-composer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}
.wb-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.wb-chip {
  border: 1px solid #bedaff;
  background: #eef6f2;
  border-radius: 2px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  color: #165dff;
}
.wb-chip:hover { background: #e3f2ea; }
.wb-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.wb-composer textarea {
  flex: 1;
  min-width: 0;
  width: auto;
  min-height: 52px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  line-height: 1.5;
  outline: none;
  background: var(--glass-strong);
}
.wb-composer textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(34, 211, 238, .22); }
.wb-composer-row .btn { flex-shrink: 0; height: 40px; }
.wb-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  min-height: 18px;
  margin: 0;
}
.wb-composer-bar .muted { font-size: 12px; line-height: 1.4; }
.wb-tune-group { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.wb-tune { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.wb-tune select {
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  color: inherit;
  font-size: 12px;
  padding: 0 6px;
}
.wb-tune input[type="range"] { width: 92px; accent-color: var(--orange); }
.wb-inspector section { margin-bottom: 18px; }
.wb-inspector h3 { font-size: 13px; letter-spacing: .02em; }
.wb-sec-tools h3 { color: #165dff; }
.wb-sec-sources h3 { color: #2a6d78; }
.wb-sec-memory h3 { color: #165dff; }
.wb-sec-kb h3 { color: #8a5a32; }
.wb-tool, .wb-source, .wb-memory, .wb-kb {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.wb-tool { background: #f6f2fa; border-color: #e4dced; }
.wb-source { background: #f3f8fb; border-color: #d5e4ea; }
.wb-memory { background: #f3f8f4; border-color: #bedaff; }
.wb-kb { background: #fbf6f1; border-color: #eadfd2; }
.wb-tool span, .wb-source span, .wb-kb span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.wb-memory, .wb-kb {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.wb-memory p { margin: 0; font-size: 13px; }
.wb-memory button, .wb-kb button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.wb-kb-form { margin: 8px 0; }
.wb-retrieve {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.wb-retrieve input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
}
.wb-cite {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: var(--wash);
  color: var(--orange-deep);
  border-radius: 2px;
  padding: 0 6px;
  margin: 0 2px;
  font-size: 12px;
  cursor: pointer;
}
.wb-source p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.wb-source.on { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(34, 211, 238, .28); }
.wb-think {
  max-width: 720px;
  margin: 0 0 8px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}
.wb-think summary {
  cursor: pointer;
  padding: 8px 12px;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}
.wb-think summary::-webkit-details-marker { display: none; }
.wb-think summary::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5b6478;
  margin-right: 8px;
  vertical-align: middle;
}
.wb-think.live summary::before {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .22);
  animation: wbPulse 1.2s ease-in-out infinite;
}
.wb-think[open] summary { border-bottom: 1px dashed var(--line); }
.wb-think-list {
  margin: 8px 12px 10px;
  padding-left: 18px;
  line-height: 1.55;
  max-height: 520px;
  overflow: auto;
}
.wb-think-list li { margin: 0 0 10px; }
.wb-think-list li:last-child { margin-bottom: 0; }
.wb-think-tool {
  margin-left: 8px;
  margin-right: auto;
  color: #165dff;
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  background: #f6f2fa;
  border-radius: 2px;
  padding: 1px 8px;
}
.wb-think-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
}
.wb-think-head span { color: var(--muted); font-weight: 600; }
.wb-think-list li.is-run .wb-think-head span { color: var(--orange); }
.wb-think-doing,
.wb-think-progress,
.wb-think-result { margin: 2px 0 0; }
.wb-think-result {
  color: var(--ink);
  white-space: pre-wrap;
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
}
.wb-think-result span {
  display: inline-block;
  margin-right: 6px;
  color: var(--orange);
  font-weight: 700;
}
.wb-think-io {
  margin: 6px 0 0;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  max-height: 280px;
  overflow: auto;
}
.wb-think-io span {
  display: block;
  margin: 0 0 4px;
  color: var(--orange);
  font-weight: 700;
}
.wb-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  background: var(--orange);
  vertical-align: text-bottom;
  animation: wbPulse 1s ease-in-out infinite;
}
.wb-files {
  margin-top: 8px;
  max-width: min(720px, 100%);
}
.wb-file-fold summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
  list-style: none;
}
.wb-file-fold summary::-webkit-details-marker { display: none; }
.wb-file-fold summary::before {
  content: "▸ ";
  color: var(--orange);
}
.wb-file-fold[open] summary::before { content: "▾ "; }
.wb-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.wb-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}
.wb-file span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-file em {
  flex: none;
  color: var(--orange-deep);
  font-style: normal;
}
.wb-file:hover { border-color: var(--orange); }
.wb-hit-images {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  max-width: min(720px, 100%);
}
.wb-hit-images img,
.wb-msg-body img,
.wb-source img,
.kb-chunk-card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.wb-msg.streaming .wb-msg-body::after {
  content: "▍";
  color: var(--orange);
  margin-left: 2px;
  animation: wbBlink 1s step-end infinite;
}
@keyframes wbBlink {
  50% { opacity: 0; }
}
@keyframes wbPulse {
  50% { box-shadow: 0 0 0 7px rgba(255, 122, 26, .06); }
}
.kb-table { min-width: 960px; }
.kb-table td strong { display: block; }
.kb-table td small { display: block; margin-top: 2px; }
.kb-meta { margin: 0 0 12px; }
.kb-hint-warn { color: #fbbf24; }
.kb-hint-error { color: #b45b62; }
.kb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin: 0 0 10px;
}
.kb-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted, #6b6358);
}
.kb-cat-label select,
#wbKbCategory {
  min-width: 132px;
  padding: 6px 10px;
  border: 1px solid rgba(60, 48, 36, 0.18);
  border-radius: 8px;
  background: #fffaf3;
  color: inherit;
}
.kb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kb-filter {
  border: 1px solid rgba(60, 48, 36, 0.16);
  background: transparent;
  color: inherit;
  border-radius: 2px;
  padding: 4px 12px;
  font-size: 0.86rem;
  cursor: pointer;
}
.kb-filter.on {
  background: rgba(60, 48, 36, 0.1);
  border-color: rgba(60, 48, 36, 0.28);
  font-weight: 600;
}
.kb-cat-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(60, 48, 36, 0.08);
  font-size: 0.82rem;
}
.kb-chunk-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 10px;
  background: var(--paper);
}
.kb-chunk-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding: 8px 0 4px;
}
.kb-chunk-card {
  border: 1px solid #e8c9a8;
  border-radius: 12px;
  background: #fff6eb;
  padding: 10px 12px;
}
.kb-chunk-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
}
.kb-chunk-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
@media (max-width: 1100px) {
  .wb { grid-template-columns: 200px minmax(0, 1fr); }
  .wb-inspector { display: none; }
}
#mailboxView.page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#mailboxView > .board {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.mb-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.mb-col {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  gap: 10px;
  align-content: stretch;
}
.mb-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mb-col:not(.mb-side) {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}
.mb-side .mb-tools {
  flex: none;
  max-height: none;
  overflow: visible;
}
.mb-side > .mb-list {
  flex: 1 1 auto;
  min-height: 0;
}
.mb-tools {
  min-height: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.mb-tabs, .mb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mb-tabs button, .mb-all, .mb-addr, .mb-open {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
}
.mb-tabs button.on, .mb-all.on, .mb-item.on { background: var(--wash); border-color: #bedaff; }
.mb-layout input, .mb-layout textarea, .mb-layout select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
}
.mb-layout textarea { min-height: 88px; resize: vertical; }
.mb-row input, .mb-row select { width: auto; flex: 1; min-width: 0; }
.mb-label { font-size: 12px; color: var(--muted); }
.mb-alert { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mb-alert input { width: auto; flex: none; }
.mb-list {
  min-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.mb-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mb-open {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 12px;
  text-align: left;
  padding: 4px 6px;
}
.mb-open span, .mb-addr {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.mb-addr { border-radius: 12px; max-width: 42ch; }
.mb-open small { display: block; color: var(--muted); margin-top: 3px; }
.mb-open em {
  display: inline-block;
  margin-left: 6px;
  background: #c43b2a;
  color: #fff;
  border-radius: 2px;
  font-style: normal;
  font-size: 11px;
  padding: 0 6px;
}
.mb-chip, .mb-code {
  border: 1px solid #c43b2a;
  color: #c43b2a;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
  font-family: Consolas, monospace;
  letter-spacing: 0.08em;
}
.mb-chip.fresh, .mb-code.fresh { background: #fff6cc; }
.mb-code { font-size: 22px; padding: 8px 12px; }
.mb-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-otp, .mb-toolbar { display: grid; gap: 8px; }
.mb-toolbar { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mb-reader {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 14px;
  max-height: 28vh;
  overflow: auto;
  font-family: Consolas, "Sarasa Mono SC", monospace;
  font-size: 13px;
  line-height: 1.6;
}
.mb-empty { padding: 18px 8px; }
.btn.danger { background: #c43b2a; color: #fff; }
.mb-banner, .mb-toast {
  position: fixed;
  left: 50%;
  z-index: 40;
  display: none;
}
.mb-banner {
  bottom: 22px;
  transform: translateX(-50%);
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.mb-banner.show { display: flex; }
.mb-banner b { font-family: Consolas, monospace; font-size: 22px; letter-spacing: 0.12em; color: #ffe08a; }
.mb-toast {
  top: 16px;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  border-radius: 2px;
  padding: 8px 14px;
  font-size: 13px;
}
.mb-toast.show { display: block; }
.mb-toast.err { background: #c43b2a; }
@media (max-width: 980px) {
  html, body { height: auto; }
  body { height: auto; overflow: auto; }
  .content { overflow: visible; height: auto; }
  .page { overflow: visible; }
  .workbench-page { height: auto; display: block; overflow: visible; }
  .wb { grid-template-columns: 1fr; min-height: 70vh; grid-template-rows: none; height: auto; }
  .wb-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .mb-layout { grid-template-columns: 1fr; }
  #mailboxView.page, #mailboxView > .board { height: auto; overflow: visible; }
  .mb-col, .mb-tools { height: auto; max-height: none; overflow: visible; }
  .mb-list { max-height: 46vh; }
}

body:not(.auth-page) .mb-banner {
  background: #15243f;
  color: #fff;
}

.acl-page .acl-board {
  border: 1px solid #d0d7de;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(27, 31, 36, .04);
  background: #fff;
}
.acl-page .board-head h1 { font-size: 20px; letter-spacing: -0.01em; }
.acl-page .board-head p { color: #656d76; }
.acl-page .auth-error { color: #656d76; min-height: 18px; }
.acl-page .auth-error.bad { color: #cf222e; }
.acl-page .table-wrap {
  border: 1px solid #d0d7de;
  border-radius: 8px;
  overflow: auto;
}
.acl-page .acl-table { min-width: 720px; border-collapse: separate; border-spacing: 0; }
.acl-page .acl-table th {
  background: #f6f8fa;
  color: #656d76;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 1px solid #d0d7de;
  padding: 10px 14px;
}
.acl-page .acl-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eaeef2;
  background: #fff;
  font-size: 14px;
}
.acl-page .acl-table tr:last-child td { border-bottom: 0; }
.acl-page .acl-table tbody tr:hover td { background: #f6f8fa; }
.acl-person { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.acl-person b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ddf4ff;
  color: #0969da;
  font-size: 13px;
  font-weight: 700;
}
.acl-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ddf4ff;
  color: #0969da;
  font-size: 12px;
  font-weight: 600;
}
.acl-badge.soft { background: #f6f8fa; color: #656d76; border: 1px solid #d0d7de; }
.acl-muted, .acl-empty { color: #8c959f; }
.acl-input, .acl-select {
  height: 32px;
  width: 100%;
  min-width: 120px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: #1f2328;
  outline: none;
}
.acl-sort { width: 88px; min-width: 88px; }
.acl-input:focus, .acl-select:focus {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, .15);
}
.acl-page .btn.primary { border-radius: 6px; height: 32px; }
.acl-page .btn.ghost {
  height: 32px;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
  color: #cf222e;
}
.acl-create {
  display: grid;
  grid-template-columns: 160px 180px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 4px 0 16px;
}
.acl-create input { width: 100%; }
.acl-roles { display: grid; gap: 12px; }
.acl-role {
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}
.acl-role header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.acl-role h2 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.acl-role header p { margin: 4px 0 0; color: #656d76; font-size: 13px; }
.acl-role code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 1px 6px;
}
.acl-role-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acl-role-fields label, .acl-kicker { display: block; color: #656d76; font-size: 12px; font-weight: 600; }
.acl-role-fields input { margin-top: 6px; }
.acl-kicker { margin: 14px 0 8px; }
.acl-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.acl-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  background: #fff;
  color: #1f2328;
  font-size: 13px;
  cursor: pointer;
}
.acl-pick:has(input:checked) {
  background: #ddf4ff;
  border-color: #54aeff;
  color: #0969da;
  font-weight: 600;
}
.acl-pick input { accent-color: #0969da; }
.acl-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.acl-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.acl-switch i {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d0d7de;
  position: relative;
  display: inline-block;
}
.acl-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}
.acl-switch input:checked + i { background: #1f883d; }
.acl-switch input:checked + i::after { transform: translateX(16px); }
.acl-switch input:disabled + i { opacity: .55; }
@media (max-width: 860px) {
  .acl-create, .acl-role-fields { grid-template-columns: 1fr; }
}
.book-upload {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 4px 0 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.book-upload input[type="text"], .book-upload input[type="file"] { min-width: 0; height: 36px; }
.book-upload input[type="text"] { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 10px; background: var(--soft); }
.book-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px 16px;
  padding: 18px 12px 32px;
  background:
    linear-gradient(#e7d7bc, #e7d7bc) left bottom / 100% 12px no-repeat,
    linear-gradient(#f4f7f5, #e7f0ea);
  border-radius: 12px;
}
.book-empty { grid-column: 1 / -1; }
.book-card { position: relative; }
.book-open {
  width: 100%;
  min-height: 252px;
  border: 0;
  padding: 0 0 12px;
  background: #fff;
  border-radius: 3px 12px 12px 3px;
  box-shadow: 8px 12px 0 rgba(29, 33, 41, .06);
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.book-cover {
  min-height: 156px;
  background: var(--book-tone, var(--accent));
  color: #fff;
  padding: 16px 14px 14px 20px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.book-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: rgba(0, 0, 0, .2);
}
.book-kind {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .86;
}
.book-cover-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 0 18px;
  font-size: 12px;
  color: var(--muted);
}
.book-foot b { color: var(--accent); font-weight: 650; }
.book-progress { margin: 10px 12px 0 18px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.book-progress > span { display: block; height: 100%; background: var(--book-tone, var(--accent)); }
.book-del {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 1;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 12px;
}
#booksView:has(#bookReader:not(.hidden)) { overflow: hidden; display: flex; flex-direction: column; }
#bookReader:not(.hidden) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.book-reader-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.book-reader-title { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.book-reader-title strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-reader-tools { display: flex; align-items: center; gap: 6px; }
.book-font { min-width: 36px; padding: 0 8px; }
#bookFontLabel { min-width: 42px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.book-read-layout {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
  margin-top: 12px;
}
.book-read-layout.toc-off { grid-template-columns: minmax(0, 1fr); }
.book-read-layout.toc-off .book-toc { display: none; }
.book-toc {
  position: relative;
  height: calc(100vh - 188px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.book-toc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.book-jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.book-jump input { width: 72px; height: 32px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; background: #fff; }
.book-toc-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.book-toc-item span { min-width: 0; }
.book-toc-item em { flex: none; font-style: normal; color: var(--muted); font-size: 12px; }
.book-toc-item.on { background: var(--wash); color: var(--accent); }
.book-reader-body {
  position: relative;
  height: calc(100vh - 188px);
  margin: 0;
  overflow: auto;
  padding: 32px 40px 72px;
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.9;
  font-size: 18px;
  box-shadow: var(--shadow);
}
.book-reader-body p { margin: 0 0 .9em; }
.book-line-head { font-weight: 700; font-size: 1.14em; color: #1d2129; }
@media (max-width: 860px) {
  .book-upload { grid-template-columns: 1fr; }
  .book-read-layout { grid-template-columns: 1fr; }
  .book-toc {
    position: absolute;
    z-index: 4;
    left: 0;
    top: 0;
    width: min(320px, 88vw);
    height: calc(100vh - 200px);
    box-shadow: 0 12px 30px rgba(29, 33, 41, .16);
  }
  .book-reader-body { padding: 22px 18px 56px; }
}
