/* ============================================
   海纳AI招聘Claw · 工作台（登录后）
   参考：Manus.im / Genspark / ChatGPT / Workbuddy / 悟空
   ============================================ */

:root {
  --c-brand: #4B64FF;
  --c-brand-dark: #3648D9;
  --c-brand-alt: #216FFF;
  --c-brand-mid: #518EFF;
  --c-brand-light: #EFF4FF;
  --c-accent: #FFCD27;
  --c-accent-2: #FAAB3C;
  --c-ink-0: #1A1A2E;
  --c-ink-1: #2C2C2C;
  --c-ink-2: #474747;
  --c-ink-3: #6F6F6F;
  --c-ink-4: #8E8E8E;
  --c-line: #E6E8F2;
  --c-line-soft: #F1F3F8;
  --c-bg: #FAFBFF;
  --c-bg-panel: #FFFFFF;
  --c-bg-side: #F6F7FB;
  --c-bg-dark: #1A1D36;
  --grad-brand: linear-gradient(135deg, #4B64FF 0%, #216FFF 100%);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(75,100,255,0.04);
  --sh-md: 0 4px 14px rgba(75,100,255,0.08);
  --sh-lg: 0 12px 32px rgba(75,100,255,0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --side-w: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body.app-body {
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-ink-1);
  background: var(--c-bg);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea { font-family: inherit; }
ul { list-style: none; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: white;
  border: 1px solid var(--c-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--c-brand);
}

/* ---------- Shell ---------- */
.app-shell {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  height: 100vh;
}

/* ---------- 侧边栏 ---------- */
.app-side {
  background: var(--c-bg-side);
  border-right: 1px solid var(--c-line-soft);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* 侧栏顶部 */
.app-side-head {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--c-line-soft);
  flex-shrink: 0;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-logo { height: 28px; }
.app-brand-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-brand);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--c-brand-light);
}

/* 侧栏主体：可滚动 */
.app-side-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.app-new-task {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--grad-brand);
  color: white;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--r-md);
  box-shadow: 0 4px 12px rgba(75,100,255,.25);
  transition: transform .15s;
}
.app-new-task:hover { transform: translateY(-1px); }

.app-side-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  color: var(--c-ink-4);
}
.app-side-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
  color: var(--c-ink-1);
}

.app-side-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-side-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-ink-4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 10px 6px;
}
.app-section-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.app-section-trigger:hover,
.app-section-trigger.is-active {
  color: var(--c-brand);
  background: rgba(75,100,255,.06);
}
.app-side-label-action {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-brand);
  background: var(--c-brand-light);
  border-radius: var(--r-pill);
  padding: 1px 7px;
}
.app-side-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--c-ink-1);
  text-align: left;
  width: 100%;
  transition: background .15s;
}
.app-side-item:hover { background: white; }
.app-side-item.active {
  background: white;
  color: var(--c-brand);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(75,100,255,.08);
}
.app-view-nav.is-active {
  background: white;
  color: var(--c-brand);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(75,100,255,.08);
}
.app-view-entry {
  font-weight: 700;
}
.asi-icon { width: 20px; display: inline-flex; justify-content: center; font-size: 15px; }
.asi-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFCD27, #FAAB3C);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.asi-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #FFCD27, #FAAB3C);
  color: white;
  font-weight: 600;
}
.asi-online {
  margin-left: auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16,185,129,.5);
}
.asi-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-left: 4px;
}
.asi-dot-blue { background: var(--c-brand); }
.asi-dot-green { background: #10B981; }
.asi-dot-orange { background: #FAAB3C; }
.app-side-task {
  padding: 8px 10px;
}
.asi-task-name {
  flex: 1;
  font-size: 13px;
  color: var(--c-ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asi-task-meta {
  font-size: 11px;
  color: var(--c-ink-4);
}

/* 侧栏底部：分享邀请 + 个人账号区块 */
.app-side-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--c-line-soft);
  padding: 8px;
  background: white;
}

/* 分享邀请卡片 - Manus.im 风格 */
.app-invite-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  margin-bottom: 7px;
  background: linear-gradient(135deg, #FFF4E6 0%, #FFE8CC 100%);
  border: 1.5px solid #FFD699;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.app-invite-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,205,39,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.app-invite-card:hover {
  background: linear-gradient(135deg, #FFE8CC 0%, #FFD699 100%);
  border-color: #FAAB3C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(250,171,60,0.25);
}
.app-invite-icon {
  font-size: 18px;
  flex-shrink: 0;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.app-invite-text {
  flex: 1;
  min-width: 0;
}
.app-invite-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-ink-0);
  margin-bottom: 1px;
  line-height: 1.3;
}
.app-invite-reward {
  font-size: 10px;
  font-weight: 600;
  color: #D97706;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}
.app-invite-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  color: #FAAB3C;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(250,171,60,0.2);
  transition: all .2s;
}
.app-invite-card:hover .app-invite-btn {
  background: #FAAB3C;
  color: white;
  transform: rotate(90deg);
}
.app-user-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 7px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s;
}
.app-user-block:hover {
  background: var(--c-bg-side);
}
.app-user-info {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.app-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-user-text {
  flex: 1;
  min-width: 0;
}
.app-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.app-user-meta {
  font-size: 10px;
  color: var(--c-ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.app-user-menu-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: var(--c-ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.app-user-menu-btn:hover {
  background: var(--c-bg-side);
  color: var(--c-brand);
}

/* ---------- 主区 ---------- */
.app-main {
  height: 100vh;
  overflow-y: auto;
  background: var(--c-bg);
}

/* 主区内容 */
.app-main-inner {
  padding: 22px 40px 40px;
  max-width: 1120px;
  margin: 0 auto;
}
.app-view[hidden] { display: none; }
.app-view-home {
  max-width: 920px;
  margin: 0 auto;
}

.app-hello {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.app-hello-avatar {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(75,100,255,.25);
}
.app-hello-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-ink-0);
  margin-bottom: 2px;
}
.app-hello-sub {
  font-size: 14px;
  color: var(--c-ink-3);
}

/* ---------- Today Widget ---------- */
.today-widget {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: 20px 22px 22px;
  margin-bottom: 32px;
  box-shadow: var(--sh-sm);
}
.today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line-soft);
  margin-bottom: 16px;
}
.today-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink-0);
}
.today-icon { font-size: 16px; }
.today-more {
  font-size: 12.5px;
  color: var(--c-brand);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  transition: background .15s;
}
.today-more:hover { background: var(--c-brand-light); }

.today-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.today-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.today-col-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 2px 2px;
}
.today-col-count {
  background: var(--c-bg-side);
  color: var(--c-ink-3);
  padding: 1px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  letter-spacing: 0;
}
.today-col-pin .today-col-count {
  background: var(--c-brand-light);
  color: var(--c-brand);
}

.today-card {
  padding: 14px 16px;
  background: var(--c-bg-side);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: all .2s;
  cursor: pointer;
}
.today-card:hover {
  background: white;
  border-color: var(--c-brand);
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
}
.today-card-pin {
  background: linear-gradient(180deg, #F4F7FF 0%, #FAFBFF 100%);
  border-color: #D9E2FF;
}
.today-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.today-card-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-brand);
  background: white;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-soft);
}
.today-card-pin-icon { font-size: 13px; opacity: .7; }
.today-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-ink-0);
  margin-bottom: 8px;
}
.today-card-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.today-prog-bar {
  flex: 1;
  height: 5px;
  background: var(--c-line-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.today-prog-fill {
  height: 100%;
  background: var(--grad-brand);
  border-radius: var(--r-pill);
}
.today-prog-text {
  font-size: 11.5px;
  color: var(--c-ink-3);
  font-weight: 500;
  flex-shrink: 0;
}
.today-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--c-ink-3);
  gap: 8px;
}
.today-card-foot strong {
  color: var(--c-brand);
  font-weight: 600;
}
.today-card-time {
  flex-shrink: 0;
  color: var(--c-ink-4);
}

/* ---------- Prompt Section ---------- */
.prompt-section {
  margin-top: 8px;
}
.prompt-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.prompt-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink-0);
  margin: 0;
  flex-shrink: 0;
}
.prompt-hint {
  font-size: 13px;
  color: var(--c-ink-3);
  margin: 0;
  text-align: right;
}
.prompt-hint kbd { margin: 0 2px; }

.app-prompt-form {
  position: relative;
}
.app-prompt-box {
  position: relative;
  background: white;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: 16px 18px 12px;
  box-shadow: var(--sh-md);
  transition: all .2s;
}
.app-prompt-box:focus-within {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(75,100,255,.12), var(--sh-lg);
}
.app-prompt-input {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink-0);
  min-height: 52px;
  max-height: 240px;
  background: transparent;
}
.app-prompt-input::placeholder { color: var(--c-ink-4); }

.app-prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--c-line-soft);
}
.app-prompt-tools {
  display: flex;
  gap: 4px;
}
.app-tool-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.app-tool-btn:hover { background: var(--c-bg-side); }
.app-prompt-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--grad-brand);
  color: white;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: transform .15s;
}
.app-prompt-send:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(75,100,255,.3); }

/* ---------- Mention Menu ---------- */
.mention-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 340px;
  max-height: 400px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 10px;
  overflow-y: auto;
  z-index: 20;
}
.mention-menu[hidden] { display: none; }
.mention-menu-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-ink-4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--c-line-soft);
  margin-bottom: 6px;
}
.mention-group {
  padding: 6px 0;
}
.mention-group + .mention-group {
  border-top: 1px dashed var(--c-line-soft);
  margin-top: 4px;
}
.mention-group-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-ink-3);
  padding: 4px 8px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mg-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  background: #FFF2D6;
  color: #B45309;
  border-radius: var(--r-pill);
  letter-spacing: .3px;
}
.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--c-ink-1);
  transition: background .12s;
}
.mention-item:hover { background: var(--c-brand-light); }
.mi-icon {
  width: 22px;
  display: inline-flex;
  justify-content: center;
  font-size: 15px;
}
.mi-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFCD27, #FAAB3C);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mi-desc {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--c-ink-4);
}

/* ---------- Quick chips ---------- */
.prompt-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pq-chip {
  padding: 7px 14px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--c-ink-2);
  transition: all .15s;
  font-family: var(--font);
}
.pq-chip:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  background: var(--c-brand-light);
}

/* ---------- Workspace Libraries ---------- */
.view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  padding-top: 6px;
}
.view-head.compact { margin-bottom: 18px; }
.view-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-brand);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.view-title {
  font-size: 28px;
  line-height: 1.25;
  color: var(--c-ink-0);
  margin: 0 0 8px;
}
.view-desc {
  max-width: 660px;
  font-size: 14px;
  color: var(--c-ink-3);
  margin: 0;
}
.view-primary-btn,
.view-secondary-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.view-primary-btn {
  background: var(--grad-brand);
  color: white;
  box-shadow: 0 5px 14px rgba(75,100,255,.22);
}
.view-secondary-btn {
  background: white;
  color: var(--c-brand);
  border: 1px solid #D9E2FF;
}
.view-primary-btn:hover,
.view-secondary-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}
.market-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.market-filter {
  height: 32px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: white;
  color: var(--c-ink-3);
  font-size: 12.5px;
  font-weight: 600;
}
.market-filter.is-active,
.market-filter:hover {
  border-color: #C9D5FF;
  background: var(--c-brand-light);
  color: var(--c-brand);
}
.agent-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.agent-market-card,
.expert-card,
.skills-section,
.automation-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.agent-market-card {
  min-height: 296px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.agent-market-card:hover,
.expert-card:hover,
.automation-card:hover {
  transform: translateY(-2px);
  border-color: #C9D5FF;
  box-shadow: var(--sh-md);
}
.agent-market-card.is-featured {
  background: linear-gradient(180deg, #F4F7FF 0%, #FFFFFF 54%);
  border-color: #C9D5FF;
}
.market-card-top,
.expert-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.market-agent-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--c-bg-side);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.market-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: #FFF2D6;
  color: #B45309;
  font-size: 11px;
  font-weight: 800;
}
.agent-market-card h2,
.expert-card h2,
.automation-card h2 {
  font-size: 16px;
  color: var(--c-ink-0);
  margin: 0 0 8px;
}
.agent-market-card p,
.expert-card p,
.automation-card p,
.recommend-card p,
.skill-row p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--c-ink-3);
  margin: 0;
}
.market-tags,
.expert-scope,
.automation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.market-tags span,
.expert-scope span,
.automation-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--c-bg-side);
  color: var(--c-ink-3);
  font-size: 11.5px;
  font-weight: 600;
}
.market-stats {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}
.market-stats strong {
  color: var(--c-brand);
  font-size: 18px;
  line-height: 1;
}
.market-stats span {
  color: var(--c-ink-4);
  font-size: 11.5px;
}
.market-call-btn,
.expert-call-btn,
.recommend-card button,
.automation-card button {
  width: 100%;
  height: 34px;
  margin-top: 14px;
  border-radius: var(--r-sm);
  background: var(--c-ink-0);
  color: white;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform .15s, background .15s;
}
.market-call-btn:hover,
.expert-call-btn:hover,
.recommend-card button:hover,
.automation-card button:hover {
  transform: translateY(-1px);
  background: var(--c-brand);
}
.expert-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
}
.expert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.expert-grid-library {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.expert-card {
  padding: 18px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.expert-card-team {
  background: linear-gradient(180deg, #FFF8EA 0%, #FFFFFF 58%);
  border-color: #FFE1A8;
}
.expert-avatar,
.expert-avatar-stack i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFCD27, #FAAB3C);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}
.expert-avatar-stack {
  display: inline-flex;
  align-items: center;
}
.expert-avatar-stack i + i { margin-left: -10px; }
.expert-status,
.skill-state,
.automation-state {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: #EAFBF4;
  color: #059669;
  font-size: 11px;
  font-weight: 800;
}
.expert-status.muted,
.skill-state,
.automation-card.muted .automation-state {
  background: var(--c-bg-side);
  color: var(--c-ink-4);
}
.skill-state.on,
.automation-state.on {
  background: #EAFBF4;
  color: #059669;
}
.skills-section {
  padding: 18px;
  margin-bottom: 16px;
}
.library-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line-soft);
  margin-bottom: 12px;
}
.library-section-head h2 {
  font-size: 16px;
  color: var(--c-ink-0);
  margin: 0;
}
.library-section-head span {
  font-size: 12px;
  color: var(--c-ink-4);
}
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skill-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-sm);
  background: var(--c-bg);
}
.skill-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.skill-row h3,
.recommend-card h3 {
  font-size: 14px;
  color: var(--c-ink-0);
  margin: 0 0 4px;
}
.recommend-grid,
.automation-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.recommend-card {
  padding: 16px;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-sm);
  background: var(--c-bg);
}
.automation-card {
  position: relative;
  padding: 18px;
  min-height: 220px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.automation-card.muted {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 100%);
}
.automation-time {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--c-brand-light);
  color: var(--c-brand);
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 14px;
}
.automation-state {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  :root { --side-w: 0px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-main-inner { padding: 20px 18px 30px; }
  .today-body { grid-template-columns: 1fr; }
  .app-hello-title { font-size: 20px; }
  .mention-menu { width: 100%; left: -6px; right: -6px; max-width: none; }
  .view-head { flex-direction: column; gap: 14px; }
  .view-primary-btn,
  .view-secondary-btn { width: 100%; }
  .agent-market-grid,
  .expert-layout,
  .expert-grid,
  .recommend-grid,
  .automation-board {
    grid-template-columns: 1fr;
  }
  .skill-row {
    grid-template-columns: 38px 1fr;
  }
  .skill-state {
    grid-column: 2;
    width: fit-content;
  }
}
