/* 探元素 AI 工作台 · 样式 v0.3（响应式与体验优化版；历史版本在 backup/） */
:root {
  --brand: #d7654a;
  --brand-2: #a97ab7;
  --brand-grad: linear-gradient(135deg, #d45f45, #e47b52 58%, #b06f9f 130%);
  --brand-soft: #fff2ec;
  --brand-dark: #98472f;
  --bg: #f8f4f0;
  --card: #fffdfa;
  --text: #2f2722;
  --text-soft: #7d7067;
  --border: #e3d6cc;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(76, 51, 37, .055);
  --shadow: 0 8px 28px rgba(76, 51, 37, .07), inset 0 1px 0 rgba(255, 255, 255, .9);
  --shadow-lift: 0 18px 50px rgba(76, 51, 37, .12), inset 0 1px 0 rgba(255, 255, 255, .94);
  --focus-ring: 0 0 0 4px rgba(215, 101, 74, .11);
  /* 部门主题色（c0 品牌橙 / c1 蓝 / c2 绿 / c3 紫 / c4 青） */
  --c0: #c84b14; --c0-soft: #fff0e6;
  --c1: #315ed8; --c1-soft: #edf2ff;
  --c2: #087f5b; --c2-soft: #e8f7f1;
  --c3: #6d4ed8; --c3-soft: #f1edff;
  --c4: #0f766e; --c4-soft: #e7f8f6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(214, 83, 18, .07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--text); }
a { color: var(--brand-dark); }
::selection { background: rgba(214, 83, 18, .18); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 主题色小工具类 */
.c0 { --tone: var(--c0); --tone-soft: var(--c0-soft); }
.c1 { --tone: var(--c1); --tone-soft: var(--c1-soft); }
.c2 { --tone: var(--c2); --tone-soft: var(--c2-soft); }
.c3 { --tone: var(--c3); --tone-soft: var(--c3-soft); }
.c4 { --tone: var(--c4); --tone-soft: var(--c4-soft); }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; height: 60px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(42, 31, 19, .035);
  position: sticky; top: 0; z-index: 10;
}
.topbar .logo {
  font-weight: 500; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; gap: 10px; letter-spacing: .2px;
  flex-shrink: 0;
}
.topbar .logo b { font-weight: 800; }
.topbar .logo .dot {
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--brand-grad);
  box-shadow: 0 3px 8px rgba(255, 106, 0, .35);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 800;
}
.topbar .spacer { flex: 1; }
.topbar .user-info {
  color: var(--text-soft); font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
}
.user-chip {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.topbar button {
  border: 1px solid var(--border); background: #fff;
  border-radius: 10px; padding: 0 14px; min-height: 36px;
  font-size: 13px; color: var(--text); white-space: nowrap; flex-shrink: 0;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}
.topbar button:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.topbar button.logo {
  min-height: auto; padding: 0; border: 0; border-radius: 0; background: transparent;
}
.topbar button.logo:hover { background: transparent; color: var(--text); transform: none; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions button[aria-current="page"] {
  border-color: rgba(207, 105, 77, .28); background: #fff1e9; color: #9b4d37; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}
.topbar-account { position: relative; display: none; }
.topbar-account > summary {
  min-height: 40px; padding: 5px 9px 5px 6px; display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(220, 205, 195, .82); border-radius: 12px; background: rgba(255, 255, 255, .76);
  color: #65574f; font-size: 12px; font-weight: 750; list-style: none; cursor: pointer;
}
.topbar-account > summary::-webkit-details-marker { display: none; }
.topbar-account > summary::marker { content: ''; }
.topbar-account-menu {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: 190px; padding: 8px; display: grid; gap: 3px;
  border: 1px solid rgba(222, 208, 199, .86); border-radius: 15px; background: rgba(255, 253, 250, .98);
  box-shadow: 0 16px 38px rgba(67, 46, 33, .15); backdrop-filter: blur(16px);
}
.topbar-account-menu > div { padding: 7px 8px 9px; display: grid; gap: 1px; border-bottom: 1px solid rgba(226, 215, 207, .72); }
.topbar-account-menu b { color: #463a33; font-size: 12.5px; }
.topbar-account-menu small { color: #95877f; font-size: 10.5px; }
.topbar .topbar-account-menu button { width: 100%; min-height: 37px; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.topbar .topbar-account-menu button:hover { border: 0; background: #fff2ea; }
.topbar .topbar-account-menu button[aria-current="page"] { border: 0; background: #fff0e8; color: #984b36; font-weight: 800; }
.topbar .topbar-account-menu .danger-soft { color: #a34431; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 28px;
  background: linear-gradient(165deg, #fff8f2 0%, #f7f5f1 58%, #f1ede7 100%);
  position: relative; overflow: hidden;
}
.login-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none;
}
.login-glow.a { width: 420px; height: 420px; background: #ffd9b8; top: -120px; right: -80px; }
.login-glow.b { width: 360px; height: 360px; background: #ffe9d4; bottom: -140px; left: -60px; }
.login-card {
  width: min(410px, 100%); background: rgba(255, 255, 255, .94); border-radius: 24px;
  box-shadow: var(--shadow-lift); padding: 42px 38px; position: relative;
  border: 1px solid rgba(255, 255, 255, .9);
  animation: rise .4s ease;
}
.login-logo .dot {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--brand-grad);
  box-shadow: 0 6px 16px rgba(255, 106, 0, .35);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 18px;
}
.login-card h1 { font-size: 23px; margin-bottom: 6px; letter-spacing: .3px; }
.login-card .sub { color: var(--text-soft); font-size: 13px; margin-bottom: 26px; }
.login-card label { display: block; font-size: 13px; color: var(--text-soft); margin: 14px 0 6px; }
.login-card input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 12px; outline: none; background: #fff; transition: border .15s;
}
.login-card input:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
.password-control { position: relative; }
.login-card .password-control input { padding-right: 58px; }
.login-card .password-control button {
  position: absolute; top: 50%; right: 7px; min-width: 44px; min-height: 32px; padding: 4px 8px;
  border: 0; border-radius: 8px; background: transparent; color: #9a6653; font-size: 11px; font-weight: 750; transform: translateY(-50%);
}
.login-card .password-control button:hover { background: #fff1e9; color: #98472f; }
.caps-lock-hint { min-height: 0; margin-top: 4px; color: #a85a40; font-size: 10.5px; }
.caps-lock-hint:not(:empty)::before { content: '!'; margin-right: 5px; font-weight: 900; }
.login-card .btn-primary { width: 100%; margin-top: 26px; padding: 12px; font-size: 15px; }
.login-activate-link { display: block; margin: 14px auto 0; }
.login-error { color: #b42318; font-size: 13px; margin-top: 12px; min-height: 18px; }

/* ---------- 按钮 ---------- */
.btn-primary {
  background: var(--brand-grad); color: #fff; border: none;
  border-radius: 12px; padding: 10px 20px; min-height: 40px; font-size: 14px; font-weight: 700;
  box-shadow: 0 5px 14px rgba(143, 47, 16, .22);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(143, 47, 16, .28); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 15px; min-height: 40px; font-size: 13px; color: var(--text);
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }

/* ---------- 技能广场 ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 38px 28px 72px; }
body.home-mode {
  overflow-x: clip;
  background:
    radial-gradient(circle at 88% 8%, rgba(202, 183, 255, .22), transparent 24rem),
    radial-gradient(circle at 7% 28%, rgba(255, 191, 153, .2), transparent 27rem),
    linear-gradient(180deg, #fbf9f6 0%, #f8f5f1 100%);
}
body.home-mode .topbar {
  background: rgba(255, 253, 250, .82); border-bottom-color: rgba(224, 214, 205, .72);
}
body.home-mode .topbar .logo .dot {
  background: linear-gradient(145deg, #f59b76 0%, #dc6544 55%, #9a78d3 125%);
  box-shadow: 0 5px 16px rgba(202, 91, 60, .2);
}
.home-container {
  --life-coral: #dd6b4d;
  --life-peach: #f3a66f;
  --life-violet: #8f77cf;
  --life-mint: #6ba894;
  position: relative; padding-top: 32px;
}
.home-container::before,
.home-container::after {
  content: ''; position: absolute; z-index: -1; border-radius: 999px; filter: blur(2px); pointer-events: none;
}
.home-container::before {
  width: 110px; height: 110px; right: -18px; top: 530px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), rgba(173, 151, 226, .16) 45%, transparent 72%);
}
.home-container::after {
  width: 72px; height: 72px; left: -8px; top: 690px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .85), rgba(241, 165, 112, .16) 48%, transparent 72%);
}
.yiren-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 38px 44px 30px; border: 1px solid rgba(255, 255, 255, .92); border-radius: 32px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .9), rgba(255, 248, 241, .86) 52%, rgba(246, 241, 255, .88)),
    #fffaf6;
  color: #2f2722;
  box-shadow: 0 24px 70px rgba(94, 66, 49, .1), inset 0 1px 0 rgba(255, 255, 255, .92);
}
.yiren-hero::after {
  content: '弈'; position: absolute; right: 34px; top: -70px; z-index: -1;
  font-family: "STKaiti", "KaiTi", serif; font-size: 270px; line-height: 1; font-weight: 700;
  color: rgba(125, 83, 69, .045); transform: rotate(7deg); pointer-events: none;
}
.yiren-hero-glow {
  position: absolute; z-index: -2; border-radius: 50%; filter: blur(4px); pointer-events: none;
  animation: yiren-drift 11s ease-in-out infinite alternate;
}
.yiren-hero-glow.glow-peach {
  width: 390px; height: 390px; left: -190px; bottom: -225px;
  background: radial-gradient(circle, rgba(255, 188, 143, .33), rgba(255, 188, 143, 0) 70%);
}
.yiren-hero-glow.glow-violet {
  width: 430px; height: 430px; right: -170px; top: -240px;
  background: radial-gradient(circle, rgba(170, 145, 226, .28), rgba(170, 145, 226, 0) 70%);
  animation-delay: -5s;
}
.yiren-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.yiren-identity { display: flex; align-items: center; gap: 13px; }
.yiren-hero-actions { display: flex; align-items: center; gap: 9px; }
.yiren-mark {
  width: 50px; height: 50px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #f6ad81 0%, #df6e4d 58%, #a982d9 135%); color: #fff; font-size: 23px; font-weight: 900;
  box-shadow: 0 9px 24px rgba(207, 100, 70, .22), inset 0 1px 0 rgba(255, 255, 255, .38);
  animation: yiren-breathe 3.8s ease-in-out infinite;
}
.yiren-name { display: grid; gap: 1px; line-height: 1.4; }
.yiren-name b { font-size: 17px; letter-spacing: .15px; }
.yiren-name em { color: #86786d; font-size: 12px; font-style: normal; }
.yiren-enter {
  min-height: 38px; padding: 7px 13px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(209, 174, 158, .58); border-radius: 12px;
  background: rgba(255, 255, 255, .7); color: #8e4e3c; font-size: 12px; font-weight: 800;
  box-shadow: 0 5px 16px rgba(94, 61, 43, .055); backdrop-filter: blur(8px);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.yiren-enter:hover { border-color: rgba(210, 96, 69, .42); background: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(94, 61, 43, .09); }
.yiren-enter i { font-size: 15px; font-style: normal; }
.yiren-enter:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.yiren-copy { max-width: 790px; margin: 29px 0 22px; }
.yiren-greeting {
  display: block; margin-bottom: 7px; color: var(--life-coral);
  font-size: 13px; font-weight: 750; letter-spacing: .06em;
}
.yiren-copy h1 { font-size: clamp(33px, 4.2vw, 46px); line-height: 1.18; letter-spacing: -1.35px; font-weight: 760; }
.yiren-copy h1 span {
  color: transparent; background: linear-gradient(90deg, #cf5d43, #e48a60 54%, #8f73c8);
  background-clip: text; -webkit-background-clip: text;
}
.yiren-copy p { max-width: 690px; margin-top: 14px; color: #766b62; font-size: 14px; line-height: 1.85; }
.yiren-ask {
  max-width: 900px; padding: 17px 18px 12px; border: 1px solid rgba(226, 208, 196, .76); border-radius: 21px;
  background: rgba(255, 255, 255, .88); box-shadow: 0 15px 38px rgba(115, 74, 48, .11), inset 0 1px 0 #fff;
  backdrop-filter: blur(14px); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.yiren-ask:focus-within { border-color: rgba(221, 107, 77, .5); box-shadow: 0 18px 46px rgba(115, 74, 48, .14), 0 0 0 4px rgba(221, 107, 77, .07); transform: translateY(-1px); }
.yiren-ask-head { display: none; }
.yiren-ask textarea {
  display: block; width: 100%; min-height: 70px; max-height: 180px; padding: 0 2px 10px;
  border: 0; outline: 0; resize: vertical; background: transparent; color: var(--text); font-size: 15px; line-height: 1.75;
}
.yiren-ask textarea::placeholder { color: #aaa098; }
.yiren-ask textarea:focus-visible { outline: 0; }
.yiren-ask-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #eee7e0; padding-top: 10px; }
.yiren-ask-bar > span { color: #93877e; font-size: 12px; }
.yiren-ask #yiren-start {
  flex-shrink: 0; min-height: 43px; padding: 9px 17px 9px 19px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #d45d43, #e47b52 58%, #b06f9f 130%); color: #fff; font-weight: 800; box-shadow: 0 7px 17px rgba(190, 83, 57, .22);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.yiren-ask #yiren-start:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(190, 83, 57, .28); }
.yiren-ask #yiren-start i { margin-left: 6px; font-size: 17px; font-style: normal; }
.yiren-ask button:disabled, .yiren-prompts button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.yiren-prompts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.yiren-prompts > span { margin-right: 3px; color: #91847b; font-size: 12px; }
.yiren-prompts button {
  min-height: 35px; padding: 6px 13px; border: 1px solid rgba(219, 202, 191, .7); border-radius: 999px;
  background: rgba(255, 255, 255, .56); color: #6e625a; font-size: 12px;
  box-shadow: 0 2px 10px rgba(83, 59, 42, .035);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.yiren-prompts button::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--life-peach); vertical-align: 1px; }
.yiren-prompts button:nth-of-type(2)::before { background: var(--life-violet); }
.yiren-prompts button:nth-of-type(3)::before { background: var(--life-mint); }
.yiren-prompts button:hover { border-color: rgba(221, 107, 77, .35); background: rgba(255, 255, 255, .92); color: #40362f; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(83, 59, 42, .07); }
.yiren-path {
  display: flex; align-items: center; gap: 11px; max-width: 730px; margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(188, 159, 143, .18); color: #83766d; font-size: 12px;
}
.yiren-path[hidden] { display: none !important; }
.yiren-path span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.yiren-path span i {
  width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(221, 107, 77, .18); border-radius: 50%; background: rgba(255, 255, 255, .55); color: var(--life-coral); font-size: 10px; font-style: normal; font-weight: 800;
}
.yiren-path > b { flex: 1; min-width: 24px; height: 1px; background: linear-gradient(90deg, rgba(221, 107, 77, .2), rgba(143, 119, 207, .2)); font-size: 0; }
.yiren-path.is-onboarding { max-width: 820px; gap: 8px; }
.yiren-path.is-onboarding > small { display: grid; flex: 0 0 auto; gap: 1px; color: #9a887e; font-size: 9px; line-height: 1.2; white-space: nowrap; }
.yiren-path.is-onboarding > small b { color: #6f5a50; font-family: Georgia, serif; font-size: 13px; }
.yiren-onboarding-step {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 10px; border: 1px solid rgba(218, 201, 191, .82); border-radius: 11px;
  background: rgba(255, 255, 255, .58); color: #6e6058; font-size: 10.5px; font-weight: 650; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.yiren-onboarding-step i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #f4e8e2; color: #bd644a; font-size: 8.5px; font-style: normal; }
.yiren-onboarding-step.is-current { border-color: rgba(217, 102, 75, .34); background: rgba(255, 250, 247, .94); color: #9b503c; box-shadow: 0 5px 14px rgba(104, 70, 51, .055); }
.yiren-onboarding-step.is-done { border-color: rgba(105, 157, 133, .25); color: #607d6f; }
.yiren-onboarding-step.is-done i { background: rgba(105, 157, 133, .13); color: #619078; }
.yiren-onboarding-step:hover { transform: translateY(-1px); border-color: rgba(217, 102, 75, .36); background: #fff; box-shadow: 0 6px 15px rgba(91, 62, 45, .07); }
.yiren-path.is-onboarding > em { flex: 1 1 18px; min-width: 12px; height: 1px; background: linear-gradient(90deg, rgba(221, 107, 77, .2), rgba(143, 119, 207, .18)); }

.home-section { margin-top: 42px; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.home-section-head > div, .all-skills-head > div { display: grid; gap: 1px; }
.home-section-head span, .all-skills-head span { color: #9a8174; font-size: 11px; letter-spacing: .08em; }
.home-section-head h2, .all-skills-head h2 { position: relative; font-size: 20px; line-height: 1.4; }
.home-section-head h2::after, .all-skills-head h2::after {
  content: ''; display: inline-block; width: 22px; height: 5px; margin-left: 9px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(221, 107, 77, .68), rgba(143, 119, 207, .48)); vertical-align: 4px;
}
.yiren-business-context-slot:empty { display: none; }
.business-context-button {
  min-height: 38px; padding: 6px 11px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(205, 189, 179, .62); border-radius: 12px;
  background: rgba(255, 255, 255, .56); color: #75665e; text-align: left;
  box-shadow: 0 4px 14px rgba(83, 58, 42, .04); backdrop-filter: blur(8px);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.business-context-button:hover {
  border-color: rgba(203, 112, 86, .34); background: rgba(255, 255, 255, .9);
  box-shadow: 0 7px 18px rgba(83, 58, 42, .07); transform: translateY(-1px);
}
.business-context-button > span:nth-child(2) { display: grid; gap: 0; line-height: 1.25; }
.business-context-button small { color: #a09289; font-size: 8.5px; font-weight: 600; }
.business-context-button b { max-width: 108px; overflow: hidden; color: #65544b; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.business-context-button > i { color: #a98777; font-size: 14px; font-style: normal; }
.business-context-dot {
  width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #79a58f;
  box-shadow: 0 0 0 4px rgba(111, 158, 137, .1);
}
.business-context-button.needs-review { border-color: rgba(175, 132, 199, .38); background: rgba(252, 248, 255, .78); }
.business-context-button.needs-review .business-context-dot { background: #9a73b2; box-shadow: 0 0 0 4px rgba(154, 115, 178, .11); }
.business-context-button.needs-review b, .business-context-button.needs-review > i { color: #76548a; }
.modal.business-overview-modal {
  width: min(1060px, 94vw); max-height: min(780px, 90vh); padding: 24px; overflow-y: auto;
}
.business-overview-modal .business-state-section { margin-top: 0; }
.business-overview-modal .business-state-head { padding-right: 42px; }
.business-state-section { margin-top: 30px; }
.business-state-card {
  display: grid; grid-template-columns: minmax(150px, .72fr) minmax(280px, 1.55fr) auto; gap: 0;
  overflow: hidden; border: 1px solid rgba(221, 207, 198, .88); border-radius: 23px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(250,246,255,.92));
  box-shadow: 0 13px 34px rgba(79, 54, 39, .06);
}
.business-stage-column, .business-state-focus, .business-state-assets { padding: 19px 21px; }
.business-stage-column { display: grid; align-content: center; gap: 2px; background: linear-gradient(145deg, rgba(221,107,77,.1), rgba(143,119,207,.08)); }
.business-stage-column small, .business-state-focus small, .business-action-list > small { color: #97877d; font-size: 10.5px; letter-spacing: .055em; }
.business-stage-column b { color: #674437; font-size: 19px; }
.business-stage-column span { color: #a18d81; font-size: 10px; }
.business-state-focus { display: grid; gap: 12px; border-left: 1px solid rgba(228,216,207,.75); }
.business-state-focus > span { display: grid; gap: 2px; }
.business-state-focus b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #493c35; font-size: 13px; }
.business-state-assets { display: flex; align-items: center; gap: 18px; border-left: 1px solid rgba(228,216,207,.75); }
.business-state-assets > span { display: grid; min-width: 48px; text-align: center; }
.business-state-assets b { color: #76584b; font-size: 18px; }
.business-state-assets small { color: #a08e83; font-size: 9.5px; }
.business-action-list { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-height: 51px; padding: 9px 15px; border-top: 1px solid rgba(228,216,207,.75); background: rgba(255,250,247,.56); }
.business-action-list > small { flex-shrink: 0; padding: 0 5px; }
.business-action-item { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 10px; border: 1px solid rgba(224,209,199,.8); border-radius: 10px; background: rgba(255,255,255,.8); color: #67554c; cursor: pointer; font-size: 11.5px; }
.business-action-item span { overflow: hidden; max-width: 230px; text-overflow: ellipsis; white-space: nowrap; }
.business-action-item input { accent-color: var(--brand); }
.business-empty-action { padding: 7px 10px; border: 1px dashed rgba(205,177,161,.9); border-radius: 10px; background: transparent; color: #a05943; font-size: 11.5px; }
.business-editor-kicker { display: block; margin-bottom: 4px; color: #a76a54; font-size: 10.5px; letter-spacing: .06em; }
.business-state-modal { width: min(580px, 94vw); }
.business-draft-status,
.profile-editor-draft-status {
  display: flex; align-items: center; gap: 7px; margin: 5px 0 2px; padding: 8px 10px; border-radius: 10px;
  background: #f7f2ee; color: #6d5c54; font-size: 10px; line-height: 1.45;
}
.business-draft-status::before,
.profile-editor-draft-status::before {
  content: '✓'; display: grid; flex: 0 0 17px; width: 17px; height: 17px; place-items: center; border-radius: 50%;
  background: rgba(99, 153, 128, .12); color: #668f7c; font-size: 9px; font-weight: 900;
}
.business-review-inbox {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid rgba(194,166,213,.72);
  border-radius: 16px; background: linear-gradient(120deg, rgba(250,246,255,.98), rgba(255,249,245,.94)); box-shadow: 0 9px 24px rgba(90,62,108,.055);
}
.business-review-mark {
  display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 11px;
  background: linear-gradient(145deg, #8063a6, #bb7fa1); color: #fff; font-size: 14px; font-weight: 750;
}
.business-review-copy { display: grid; flex: 1; min-width: 0; gap: 1px; }
.business-review-copy small { color: #927c91; font-size: 9.5px; letter-spacing: .035em; }
.business-review-copy b { color: #5d465d; font-size: 12.5px; }
.business-review-copy em { overflow: hidden; color: #9b8996; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.business-review-inbox > button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid rgba(152,113,175,.28); border-radius: 10px; background: #fff; color: #7d5893; font-size: 10.5px; font-weight: 650; }
.business-review-inbox > button i { font-style: normal; }
.business-observation-shelf { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid rgba(214,205,192,.72); border-radius: 15px; background: rgba(255,253,250,.82); }
.business-observation-shelf-head { display: grid; flex: 0 0 auto; gap: 1px; padding-top: 3px; }
.business-observation-shelf-head small { color: #9c7e6e; font-size: 9.5px; letter-spacing: .04em; }
.business-observation-shelf-head b { color: #998a81; font-size: 9px; font-weight: 500; }
.business-observation-shelf-items { display: flex; flex: 1; min-width: 0; gap: 7px; overflow: hidden; }
.business-observation-shelf-items > span { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 9px; background: rgba(247,242,238,.86); }
.business-observation-shelf-items em { color: #a37869; font-size: 8.5px; font-style: normal; white-space: nowrap; }
.business-observation-shelf-items b { overflow: hidden; max-width: 180px; color: #725f56; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.business-observation-shelf-items button { padding: 2px 4px; border: 0; background: transparent; color: #927596; font-size: 8.5px; }
.business-activity-strip { display: flex; align-items: flex-start; gap: 13px; padding: 11px 15px 0; }
.business-activity-strip > small { flex: 0 0 auto; padding-top: 5px; color: #a18e83; font-size: 9.5px; letter-spacing: .04em; }
.business-activity-strip > div { display: flex; flex: 1; min-width: 0; gap: 8px; overflow: hidden; }
.business-activity-strip > div > span { display: flex; align-items: center; min-width: 0; gap: 5px; padding: 4px 8px; border-radius: 9px; background: rgba(247,241,236,.65); font-size: 9.5px; }
.business-activity-strip span i { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: linear-gradient(145deg, #dd6b4d, #896ac0); }
.business-activity-strip span b { flex: 0 0 auto; color: #816c60; font-size: inherit; }
.business-activity-strip span em { overflow: hidden; max-width: 150px; color: #9a8980; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.business-activity-strip span time { flex: 0 0 auto; color: #b2a39b; }
.business-review-modal { width: min(650px, 94vw); max-height: min(780px, 88vh); overflow-y: auto; }
.business-review-summary { margin: 3px 0 13px; color: #8f7c88; font-size: 11px; line-height: 1.6; }
.business-review-items { display: grid; gap: 9px; }
.business-review-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid rgba(217,202,220,.82); border-radius: 13px; background: rgba(253,251,255,.76); }
.business-review-item > input { flex: 0 0 auto; width: auto; margin-top: 9px; accent-color: #8663a3; }
.business-review-item > span { display: grid; flex: 1; min-width: 0; gap: 6px; }
.business-review-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.business-review-item-head b { color: #735a73; font-size: 10.5px; }
.business-review-item-head em { color: #a38fa0; font-size: 9px; font-style: normal; }
.business-review-item input[data-review-value], .business-review-item select {
  width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid rgba(210,193,216,.9); border-radius: 9px; outline: none; background: #fff; color: #51464f; font: inherit; font-size: 11px;
}
.business-review-item input[data-review-value]:focus, .business-review-item select:focus { border-color: #9878b5; box-shadow: 0 0 0 3px rgba(152,120,181,.12); }
.business-review-item small { overflow: hidden; color: #a08f9b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.business-review-source-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.business-review-source-row .btn-link { padding: 5px 0; border: 0; background: transparent; color: #8a659e; font-size: 10.5px; }
.business-review-actions { display: flex; gap: 8px; }
.business-review-actions button { min-height: 36px; padding: 8px 13px; font-size: 10.5px; }
.business-review-actions i { font-style: normal; }
.business-proposal-card {
  display: grid; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid rgba(203,178,219,.8);
  border-radius: 17px; background: linear-gradient(145deg, rgba(255,252,249,.98), rgba(247,243,255,.96));
  box-shadow: 0 10px 26px rgba(91,62,111,.08); color: #4f414e;
}
.business-proposal-card > header { display: flex; align-items: center; gap: 10px; }
.business-proposal-card > header > span:last-child { display: grid; gap: 2px; min-width: 0; }
.business-proposal-card > header small { color: #90778f; font-size: 10px; letter-spacing: .04em; }
.business-proposal-card > header b { color: #493d49; font-size: 13px; line-height: 1.45; }
.business-proposal-card > p { margin: 0; color: #8c7d88; font-size: 10.5px; }
.business-proposal-mark {
  display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 10px;
  background: linear-gradient(145deg, #8466ad, #bd84a6); color: #fff; font-size: 13px; font-weight: 700;
}
.business-proposal-items { display: grid; gap: 8px; }
.business-proposal-item {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid rgba(218,204,222,.82);
  border-radius: 12px; background: rgba(255,255,255,.82);
}
.business-proposal-item > input { flex: 0 0 auto; margin-top: 8px; accent-color: #8a66ad; }
.business-proposal-item-body { display: grid; flex: 1; min-width: 0; gap: 6px; }
.business-proposal-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.business-proposal-item-head b { color: #775d77; font-size: 10.5px; }
.business-proposal-item-head em { color: #a28e9f; font-size: 9px; font-style: normal; }
.business-proposal-item-body input, .business-proposal-item-body select {
  width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid rgba(211,194,216,.9); border-radius: 9px;
  outline: none; background: #fff; color: #4d424b; font: inherit; font-size: 11px;
}
.business-proposal-item-body input:focus, .business-proposal-item-body select:focus { border-color: #9878b5; box-shadow: 0 0 0 3px rgba(152,120,181,.12); }
.business-proposal-item-body small { overflow: hidden; color: #a08f9b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.business-proposal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.business-proposal-actions button { min-height: 34px; padding: 7px 12px; font-size: 10.5px; }
.business-proposal-actions i { font-style: normal; }
.business-proposal-error { min-height: 14px; color: #b34747; font-size: 10px; }
.business-proposal-resolved { display: grid; gap: 3px; padding: 4px; }
.business-proposal-resolved b { color: #6e5a6d; font-size: 12px; }
.business-proposal-resolved span { color: #988795; font-size: 10px; }
.business-proposal-resolved.success b { color: #47745b; }
.business-observation-note { display: grid; gap: 9px; margin-top: 13px; padding: 11px 12px; border: 1px solid rgba(198,215,200,.82); border-radius: 13px; background: linear-gradient(135deg, rgba(248,253,248,.94), rgba(251,248,255,.9)); }
.business-observation-note > header { display: flex; align-items: center; gap: 8px; }
.business-observation-note > header > span:first-child { display: grid; flex: 0 0 23px; width: 23px; height: 23px; place-items: center; border-radius: 8px; background: #e3f0e6; color: #4e795a; font-size: 10px; font-weight: 800; }
.business-observation-note > header > span:last-child { display: grid; gap: 1px; }
.business-observation-note header b { color: #55705d; font-size: 10.5px; }
.business-observation-note header small { color: #8a998e; font-size: 8.8px; }
.business-observation-note > div { display: grid; gap: 5px; }
.business-observation-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 9px; background: rgba(255,255,255,.72); }
.business-observation-item > span { display: flex; min-width: 0; align-items: center; gap: 7px; }
.business-observation-item em { flex: 0 0 auto; color: #86718e; font-size: 8.5px; font-style: normal; }
.business-observation-item b { overflow: hidden; color: #665c65; font-size: 9.5px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.business-observation-item button { flex: 0 0 auto; padding: 3px 5px; border: 0; background: transparent; color: #936f84; font-size: 8.8px; }
.current-task-card {
  overflow: hidden; border: 1px solid rgba(228, 214, 204, .86); border-radius: 23px;
  background: linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,248,243,.95) 66%, rgba(247,244,255,.9) 100%);
  box-shadow: 0 13px 34px rgba(79, 54, 39, .065);
}
.current-task-card.has-draft { border-color: rgba(218, 121, 94, .34); box-shadow: 0 13px 34px rgba(121, 73, 50, .075); }
.current-task-main { display: flex; align-items: center; gap: 15px; padding: 20px 22px; }
.current-task-copy { display: grid; flex: 1; min-width: 0; gap: 2px; line-height: 1.5; }
.current-task-copy small { color: var(--text-soft); font-size: 11px; }
.current-task-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.current-task-copy em {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-soft); font-size: 12px; font-style: normal;
}
.current-task-copy em i {
  margin-right: 7px; padding: 2px 6px; border-radius: 5px;
  background: rgba(151, 119, 98, .08); color: #9a725d; font-size: 9.5px; font-style: normal; font-weight: 750;
}
.current-task-open {
  flex-shrink: 0; min-height: 42px; padding: 9px 15px; border: 0; border-radius: 11px;
  background: linear-gradient(135deg, #d45d43, #df7b55); color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(190, 83, 57, .17); transition: transform .15s ease, box-shadow .15s ease;
}
.current-task-open:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(143, 47, 16, .25); }
.current-task-open i { margin-left: 5px; font-style: normal; }
.current-task-progress {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 22px; border-top: 1px solid rgba(233, 221, 213, .78); background: rgba(255, 248, 244, .58);
}
.current-task-progress > span { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.current-task-progress > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(214, 83, 18, .1); }
.current-task-progress p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); font-size: 12px; }
.current-task-progress p b {
  margin-right: 7px; padding: 2px 6px; border-radius: 5px;
  background: rgba(220, 104, 75, .08); color: #a3533b; font-size: 9.5px;
}
.current-task-progress small { color: #8f6b55; font-size: 11px; }
.current-task-card.has-draft .current-task-progress { background: linear-gradient(90deg, rgba(255, 244, 237, .76), rgba(249, 245, 255, .68)); }
.current-task-card.has-draft .current-task-progress > span i { background: #d97658; box-shadow: 0 0 0 4px rgba(217, 118, 88, .1); }
.current-task-progress .current-task-draft-note { color: #9b654f; }
.recent-task-subhead { margin: 17px 0 9px; color: var(--text-soft); font-size: 11px; }
.recent-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.recent-task-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recent-task {
  min-width: 0; min-height: 76px; padding: 13px 14px; display: flex; align-items: center; gap: 11px; text-align: left;
  border: 1px solid rgba(228, 216, 207, .82); border-radius: 18px; background: rgba(255, 255, 255, .76); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.recent-task:hover { transform: translateY(-2px); border-color: #d8c4b4; background: #fff; box-shadow: var(--shadow); }
.recent-task.has-draft { border-color: rgba(220, 124, 95, .24); background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,246,241,.76)); }
.recent-task-copy { display: grid; flex: 1; min-width: 0; gap: 2px; line-height: 1.45; }
.recent-task-copy > span { min-width: 0; display: flex; align-items: center; gap: 6px; }
.recent-task-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.recent-task-copy em { flex: 0 0 auto; padding: 2px 5px; border-radius: 5px; background: #fff0e8; color: #a0523c; font-size: 9px; font-style: normal; font-weight: 750; }
.recent-task-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); font-size: 11px; }
.recent-task > i { flex-shrink: 0; color: var(--brand-dark); font-size: 11px; font-style: normal; }
.quick-skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quick-skill-card {
  position: relative; overflow: hidden; min-width: 0; min-height: 94px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid rgba(227, 214, 204, .78); border-radius: 21px; background: linear-gradient(135deg, rgba(255,255,255,.96), var(--tone-soft, var(--brand-soft))); box-shadow: 0 8px 22px rgba(79, 54, 39, .045);
  transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease, background .17s ease;
}
.quick-skill-card::after { content: ''; position: absolute; right: -26px; bottom: -38px; width: 90px; height: 90px; border-radius: 50%; background: var(--tone-soft, var(--brand-soft)); opacity: .72; pointer-events: none; }
.quick-skill-card:hover { transform: translateY(-3px); border-color: var(--tone, var(--brand)); background: linear-gradient(135deg, #fff, var(--tone-soft, var(--brand-soft))); box-shadow: 0 14px 32px rgba(79, 54, 39, .08); }
.quick-skill-copy { display: grid; flex: 1; min-width: 0; gap: 3px; line-height: 1.5; }
.quick-skill-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.quick-skill-heading b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-skill-copy b { font-size: 14px; }
.quick-skill-copy small {
  color: var(--text-soft); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quick-skill-card > i { position: relative; z-index: 1; color: var(--tone, var(--brand)); font-size: 18px; font-style: normal; transition: transform .17s ease; }
.quick-skill-card:hover > i { transform: translateX(3px); }
.all-skills-panel { scroll-margin-top: 82px; margin-top: 42px; padding-top: 32px; border-top: 1px solid var(--border); }
.all-skills-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 3px; }
.all-skills-head .search-box { max-width: 360px; margin: 0; }
.all-skills-panel .dept-title { margin-top: 28px; }
.plaza-head { margin: 2px 0 10px; }
.plaza-head h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 5px; letter-spacing: -.3px; line-height: 1.35; }
.plaza-head p { color: var(--text-soft); font-size: 13.5px; }
.search-box {
  width: 100%; max-width: 500px; padding: 12px 18px; margin: 20px 0 5px;
  border: 1.5px solid var(--border); border-radius: 14px; outline: none;
  background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.search-box:focus { border-color: var(--brand); box-shadow: var(--focus-ring); background: #fff; }

.dept-title {
  font-size: 15px; font-weight: 800; margin: 34px 0 14px;
  display: flex; align-items: baseline; gap: 10px;
}
.dept-title::before {
  content: ''; width: 8px; height: 8px; border-radius: 3px;
  background: var(--tone, var(--brand)); align-self: center;
}
.dept-title em { font-style: normal; font-size: 12px; color: var(--text-soft); font-weight: 400; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.skill-card {
  width: 100%; min-width: 0; min-height: 120px; text-align: left; color: var(--text);
  background: rgba(255, 255, 255, .96); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 17px 18px 16px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
  animation: rise .3s ease both;
}
.skill-card::before {
  content: ''; position: absolute; inset: 18px auto 18px 0; width: 3px;
  border-radius: 0 999px 999px 0; background: var(--tone, var(--brand)); opacity: .75;
}
.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--tone, var(--brand));
  box-shadow: var(--shadow-lift);
  background: #fff;
}
.skill-card:active { transform: translateY(-1px); }
.card-top { display: flex; align-items: center; gap: 10px; }
.skill-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: var(--tone-soft, var(--brand-soft)); color: var(--tone, var(--brand));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
}
.skill-icon.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
.skill-card .name {
  font-weight: 800; font-size: 15px; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.skill-card .desc {
  color: var(--text-soft); font-size: 13px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.tag {
  font-size: 11px; padding: 2px 9px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; white-space: nowrap;
}
.tag.skill-status.developing { background: #fff1e8; color: #a34418; }
.tag.skill-status.internal { background: #eef2ff; color: #4f46e5; }
.tag.skill-status.public-beta { background: #eaf8f2; color: #087f5b; }
.yiren-status-slot:empty { display: none; }
.empty-tip { color: var(--text-soft); text-align: center; padding: 64px 18px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes yiren-breathe {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 9px 24px rgba(207, 100, 70, .2), inset 0 1px 0 rgba(255, 255, 255, .38); }
  50% { transform: translateY(-2px) scale(1.025); box-shadow: 0 13px 30px rgba(207, 100, 70, .28), 0 0 0 8px rgba(223, 110, 77, .045), inset 0 1px 0 rgba(255, 255, 255, .42); }
}
@keyframes yiren-drift {
  from { transform: translate3d(-8px, 5px, 0) scale(.98); }
  to { transform: translate3d(12px, -8px, 0) scale(1.04); }
}
@keyframes presence-pulse {
  0%, 100% { opacity: .72; box-shadow: 0 0 0 4px rgba(112, 165, 143, .1); }
  50% { opacity: 1; box-shadow: 0 0 0 7px rgba(112, 165, 143, .055); }
}

/* ---------- 工具型 skill：产品海报 ---------- */
.tool-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.tool-head .back {
  border: 1px solid var(--border); background: #fff; border-radius: 10px;
  font-size: 17px; color: var(--text-soft); width: 40px; height: 40px; flex-shrink: 0;
}
.tool-head .back:hover { color: var(--brand-dark); border-color: var(--brand); }
.tool-head h2 { font-size: 22px; line-height: 1.25; }
.tool-head p { color: var(--text-soft); font-size: 13px; margin-top: 3px; }
.poster-layout {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 18px;
  align-items: start;
}
.tool-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; min-width: 0;
}
.tool-panel label {
  display: block; font-size: 13px; color: var(--text-soft); margin: 13px 0 6px;
}
.tool-panel input, .tool-panel textarea, .tool-panel select {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--border);
  border-radius: 12px; outline: none; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tool-panel input:focus, .tool-panel textarea:focus, .tool-panel select:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
.poster-engine-lab {
  margin: -2px -22px 18px; padding: 15px 22px 16px;
  border-top: 1px solid rgba(130, 106, 192, .16); border-bottom: 1px solid rgba(130, 106, 192, .16);
  background: linear-gradient(90deg, rgba(246, 241, 255, .88), rgba(255, 249, 244, .82));
}
.poster-engine-lab-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.poster-engine-lab-head > div { display: grid; gap: 1px; }
.poster-engine-lab-head span { color: #8068b7; font-size: 9px; font-weight: 800; }
.poster-engine-lab-head b { color: #40364d; font-size: 15px; }
.poster-engine-lab-head small { color: #8e8088; font-size: 10px; text-align: right; }
.poster-engine-lab label { margin-top: 10px; }
.poster-engine-meta { min-height: 38px; margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; color: #7d7078; font-size: 10.5px; line-height: 1.45; }
.poster-engine-meta b { color: #564568; font-size: 11px; }
.poster-engine-meta span { color: #a04f39; font-weight: 700; }
.poster-engine-meta small { flex-basis: 100%; color: #8d8087; font-size: 10px; }
.upload-control {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fffdf9;
}
.upload-control label { margin-top: 0; }
.upload-control input[type="file"] {
  padding: 8px;
  border-style: solid;
  margin-top: 8px;
}
.upload-control .upload-file-input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.upload-control .upload-file-trigger {
  min-height: 46px; margin-top: 8px; padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid rgba(220, 104, 75, .25); border-radius: 12px; background: rgba(255,255,255,.78); color: #a34e38; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.upload-control .upload-file-trigger:hover { border-color: rgba(220, 104, 75, .5); background: #fff; }
.upload-control .upload-file-trigger span { font-size: 12px; font-weight: 800; }
.upload-control .upload-file-trigger small { color: #998b82; font-size: 9.5px; font-weight: 600; }
.upload-control .upload-file-input:focus-visible + .upload-file-trigger { border-color: var(--brand); box-shadow: var(--focus-ring); }
.upload-status {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}
.upload-status.success { color: var(--brand-dark); }
.upload-status.error { color: #b42318; }
.upload-preview {
  display: block;
  max-width: 100%;
  max-height: 170px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf8f4;
  object-fit: contain;
}
.upload-preview[hidden] { display: none; }
.inline-actions {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px;
  border-top: 1px dashed var(--border); padding-top: 14px;
}
.poster-result { position: sticky; top: 84px; min-height: 360px; scroll-margin-top: 76px; }
.poster-variant-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin-bottom: 12px;
}
.poster-variant-head > div:first-child { display: grid; gap: 2px; min-width: 0; }
.poster-variant-head b { color: var(--text); font-size: 15px; }
.poster-variant-head span { color: var(--text-soft); font-size: 12px; }
.poster-variant-tabs {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  border: 1px solid rgba(220, 205, 196, .9); border-radius: 8px; background: #f7f3ef;
}
.poster-variant-tab {
  min-height: 34px; padding: 7px 11px; border: 0; border-radius: 6px;
  color: #766961; background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.poster-variant-tab:hover { color: var(--brand-dark); background: rgba(255, 255, 255, .75); }
.poster-variant-tab.is-active { color: #fff; background: var(--brand-dark); box-shadow: 0 3px 10px rgba(145, 68, 43, .18); }
.poster-preview-stage {
  max-height: calc(100vh - 300px); overflow: auto; padding: 10px;
  border: 1px solid rgba(214, 200, 191, .9); border-radius: 8px;
  background: #eee9e4; scrollbar-width: thin;
}
.poster-preview img {
  width: 100%; border: 0; border-radius: 6px;
  background: #faf8f4; display: block;
  box-shadow: 0 12px 30px rgba(52, 39, 31, .12);
}
.poster-selected-style { margin-top: 8px; color: var(--text-soft); font-size: 12px; font-weight: 650; }
.poster-generation-meta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px;
  border-top: 1px solid rgba(129, 105, 187, .2); border-bottom: 1px solid rgba(129, 105, 187, .2); color: #7c6d76; font-size: 10px;
}
.poster-generation-meta span { color: #8068b7; font-weight: 800; }
.poster-generation-meta b { color: #4d414a; font-size: 11px; }
.poster-generation-meta small { color: #8f7f87; font-size: 9.5px; text-align: right; }
.poster-result-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px;
}
.poster-result-actions .btn-primary,
.poster-result-actions .btn-ghost { min-height: 42px; margin: 0; }
.poster-download-btn { display: inline-flex; align-items: center; gap: 8px; }
.poster-download-btn span { font-size: 20px; line-height: 1; }
.poster-open-link { display: inline-flex; align-items: center; text-decoration: none; }
.poster-download-note { margin-top: 9px; color: var(--text-soft); font-size: 12px; }
.poster-error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.poster-error-actions .msg-error-retry,
.poster-error-actions .btn-ghost { min-height: 38px; margin: 0; }
.poster-status {
  background: #fffaf2;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.poster-status b { color: var(--brand-dark); }
.poster-status p { color: var(--text-soft); font-size: 13px; margin-top: 4px; }
.poster-status small {
  display: block; margin-top: 8px; color: var(--text-soft);
  word-break: break-all;
}
.poster-progress {
  height: 8px; background: #f2e7d7; border-radius: 999px;
  overflow: hidden; margin-top: 12px;
}
.poster-progress span {
  display: block; height: 100%; min-width: 8px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  transition: width .25s ease;
}
.poster-handoff-status { max-width: none; margin-bottom: 18px; }
.poster-copy-prefill-status {
  display: flex; align-items: center; gap: 11px; margin: 0 0 18px; padding: 12px 14px;
  border: 1px solid rgba(220, 151, 122, .42); border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 245, 238, .96), rgba(248, 244, 255, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}
.poster-copy-prefill-mark {
  width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; background: linear-gradient(145deg, #f18a66, #da6547); color: #fff;
  box-shadow: 0 7px 17px rgba(201, 91, 61, .18); font-size: 16px; font-weight: 850;
}
.poster-copy-prefill-status > div { display: grid; min-width: 0; gap: 2px; }
.poster-copy-prefill-status b { color: #513b31; font-size: 13px; }
.poster-copy-prefill-status span:not(.poster-copy-prefill-mark) { color: #88766c; font-size: 11px; line-height: 1.5; }
.handoff-context { flex-basis: 100%; margin: 4px 0 0 36px; color: var(--text-soft); font-size: 11px; }
.handoff-context summary { cursor: pointer; color: var(--brand-dark); font-weight: 700; }
.handoff-context p { margin-top: 6px; white-space: pre-wrap; }
.poster-return-yiren {
  display: grid; gap: 4px; margin-top: 16px; padding: 14px;
  border: 1px solid #dfc7b8; border-radius: 12px; background: #fff8f3;
}
.poster-return-yiren b { font-size: 13px; }
.poster-return-yiren span { color: var(--text-soft); font-size: 11px; }
.poster-return-yiren button { width: 100%; margin-top: 6px; }
.poster-config-tip {
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0; padding: 12px 14px; margin-bottom: 14px;
}
.poster-config-tip b { color: var(--brand-dark); }
.poster-config-tip p { color: var(--text-soft); font-size: 13px; margin-top: 4px; }
.poster-prompt { margin-top: 14px; }
.poster-prompt summary { cursor: pointer; color: var(--brand-dark); font-size: 13px; }
.poster-prompt pre {
  margin-top: 8px; background: #262019; color: #f3ede4; border-radius: 12px;
  padding: 12px; overflow-x: auto; font-size: 12px; line-height: 1.55;
}

/* ---------- 对话页 ---------- */
.chat-page {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  overflow: hidden;
  background: #fff;
}
.chat-sidebar {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 12px 10px 10px;
  background: #f4f4f2;
  border-right: 1px solid #e9e8e5;
  overflow: hidden;
}
.chat-brand {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  border: 0; background: transparent; color: var(--text);
  padding: 5px 8px 8px;
  border-radius: 6px;
  font-size: 15px; font-weight: 600; text-align: left;
  transition: background .15s ease;
}
.chat-brand:hover { background: rgba(0, 0, 0, .045); }
.chat-brand b { font-weight: 800; }
.chat-brand .dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-grad);
  box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 800;
  flex-shrink: 0;
}
.chat-skill-panel {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 11px 8px;
}
.chat-title-copy { min-width: 0; }
.chat-title-copy .title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.chat-title-copy .desc {
  color: #89847e; font-size: 11px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-tools {
  padding: 3px 4px 7px;
  flex-shrink: 0;
}
.chat-new.btn-ghost {
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-align: left;
}
.chat-new.btn-ghost:hover { border: 0; background: rgba(0, 0, 0, .055); color: var(--text); }

.chat-session-panel {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-label {
  padding: 10px 10px 5px;
  color: #827d77;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.chat-session-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 1px;
  padding-right: 2px;
  scrollbar-width: thin;
}
.chat-session-row {
  position: relative;
  min-width: 0;
  border-radius: 6px;
}
.chat-session-item {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 7px 38px 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  color: var(--text);
  transition: background .15s ease, color .15s ease;
}
.chat-session-row:hover .chat-session-item { background: rgba(0, 0, 0, .05); }
.chat-session-row.active .chat-session-item {
  background: #e4e4e1;
  box-shadow: none;
}
.session-title, .session-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-title { font-size: 13px; font-weight: 400; line-height: 1.4; }
.session-preview { color: #918c86; font-size: 11px; font-weight: 400; line-height: 1.4; }
.chat-session-row.active .session-title { color: var(--text); font-weight: 500; }
.session-more-trigger {
  position: absolute;
  top: 50%; right: 5px;
  width: 28px; height: 28px;
  padding: 0 0 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .12s ease, background .12s ease, color .12s ease;
}
.chat-session-row:hover .session-more-trigger,
.chat-session-row:focus-within .session-more-trigger,
.session-more-trigger[aria-expanded="true"] {
  opacity: 1;
  pointer-events: auto;
}
.session-more-trigger:hover,
.session-more-trigger[aria-expanded="true"] { background: rgba(0, 0, 0, .08); color: var(--text); }
.session-context-menu {
  position: fixed;
  z-index: 40;
  width: 196px;
  padding: 5px;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #e5e4e1;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(28, 25, 21, .14);
}
.session-context-menu[hidden] { display: none; }
.session-context-menu button {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
}
.session-context-menu button:hover { background: #f1f1ef; }
.session-context-menu .danger-soft { color: #b42318; }
.chat-sidebar-footer {
  border-top: 1px solid #e2e1de;
  padding-top: 6px;
  flex-shrink: 0;
}
.sidebar-user-menu { position: relative; }
.sidebar-user-menu > summary::-webkit-details-marker { display: none; }
.sidebar-user-menu > summary::marker { content: ''; }
.sidebar-user {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  gap: 9px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.sidebar-user:hover,
.sidebar-user-menu[open] > .sidebar-user { background: rgba(0, 0, 0, .055); }
.sidebar-user b, .sidebar-user small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user b { font-size: 13px; line-height: 1.25; }
.sidebar-user small { color: var(--text-soft); font-size: 12px; line-height: 1.3; }
.sidebar-user-more {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
  transform: translateY(-3px);
}
.sidebar-account-menu {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  padding: 5px;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #e5e4e1;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(28, 25, 21, .13);
}
.sidebar-account-menu .btn-ghost {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}
.sidebar-account-menu .btn-ghost:hover { border: 0; background: #f1f1ef; color: var(--text); }
.sidebar-account-menu .danger-soft { color: #9a3b2b; }
.chat-main {
  min-width: 0; min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff 0%, #fff 70%, #fbfaf8 100%);
}
.yiren-task-status-wrap,
.handoff-status-wrap {
  flex-shrink: 0; padding: 14px 28px 0; background: #fff;
}
.yiren-task-status,
.handoff-status {
  max-width: 900px; margin: 0 auto; border-radius: 15px; box-shadow: var(--shadow-sm);
}
.yiren-task-status {
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.yiren-task-status-details { border-bottom: 1px solid rgba(225, 207, 196, .78); }
.yiren-task-status-details > summary { list-style: none; cursor: pointer; }
.yiren-task-status-details > summary::-webkit-details-marker { display: none; }
.yiren-task-status-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px; border-bottom: 1px solid #f0e4dc;
}
.yiren-task-status-head > span { display: inline-flex; align-items: center; gap: 8px; color: #513225; font-size: 12px; font-weight: 800; }
.yiren-task-status-head > span i,
.handoff-mark,
.return-yiren-mark {
  width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--brand-grad); color: #fff; font-size: 12px; font-style: normal; font-weight: 900;
}
.yiren-task-status-head em {
  padding: 3px 9px; border-radius: 999px; background: #f1efec; color: #6d5f57; font-size: 10px; font-style: normal; font-weight: 700;
}
.yiren-task-status-head em.working { background: #fff0e6; color: #a83c0d; }
.yiren-task-status-head em.ready { background: #eaf7f1; color: #087f5b; }
.yiren-task-status-summary {
  min-height: 44px; padding: 5px 0; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 10px; align-items: center; gap: 9px;
}
.yiren-task-mark {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--brand-grad); color: #fff; font-size: 10px; font-style: normal; font-weight: 900;
}
.yiren-task-status-summary > span { min-width: 0; display: grid; gap: 1px; }
.yiren-task-status-summary small { color: #9a8275; font-size: 9.5px; letter-spacing: .05em; }
.yiren-task-status-summary b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #47372f; font-size: 13px; }
.yiren-task-status-summary > em {
  padding: 3px 9px; border-radius: 999px; background: #f1efec; color: #6d5f57; font-size: 10px; font-style: normal; font-weight: 700;
}
.yiren-task-status-summary > em.working { background: #fff0e6; color: #a83c0d; }
.yiren-task-status-summary > em.ready { background: #eaf7f1; color: #087f5b; }
.yiren-task-toggle {
  width: 7px; height: 7px; border-right: 1.5px solid #9b887d; border-bottom: 1.5px solid #9b887d;
  transform: rotate(45deg) translateY(-2px); transition: transform .16s ease;
}
.yiren-task-status-details[open] .yiren-task-toggle { transform: rotate(225deg) translate(-1px, -1px); }
.yiren-task-focus { display: grid; gap: 2px; padding: 12px 14px 10px; }
.yiren-task-focus small { color: var(--text-soft); font-size: 10px; letter-spacing: .08em; }
.yiren-task-focus b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.yiren-task-status-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 8px 0 11px 35px; border-top: 1px solid rgba(232, 219, 211, .5); color: var(--text-soft); font-size: 10.5px;
}
.yiren-task-status-foot > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.yiren-task-status-foot > span > i { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #e87924; }
.yiren-task-status-foot button,
.handoff-status button {
  flex-shrink: 0; min-height: 34px; padding: 6px 11px; border: 1px solid #ddb39c; border-radius: 9px;
  background: #fff; color: var(--brand-dark); font-size: 11px; font-weight: 800;
}
.yiren-task-status-foot button:hover,
.handoff-status button:hover { border-color: var(--brand); background: var(--brand-soft); }
.yiren-task-status-foot button i { margin-left: 4px; font-style: normal; }
.handoff-status {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border: 1px solid #dfc7b8; background: #fffaf6;
}
.handoff-status > div { display: grid; flex: 1; min-width: 0; gap: 1px; line-height: 1.45; }
.handoff-status b { font-size: 12px; }
.handoff-status span { color: var(--text-soft); font-size: 10.5px; }
.positioning-status-wrap {
  flex-shrink: 0;
  padding: 14px 28px 0;
  background: #fff;
}
.positioning-status {
  max-width: 900px;
  margin: 0 auto;
  padding: 13px 15px;
  border: 1px solid #eaded5;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf7, #fff);
  box-shadow: var(--shadow-sm);
}
.positioning-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.positioning-status-head b,
.positioning-status-head span { display: block; }
.positioning-status-head b { font-size: 13px; }
.positioning-status-head span { color: var(--text-soft); font-size: 11px; margin-top: 1px; }
.positioning-status-head strong { color: var(--brand-dark); font-size: 14px; }
.positioning-progress {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8e1;
}
.positioning-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-grad);
  transition: width .25s ease;
}
.positioning-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 9px;
  color: #91877e;
  font-size: 10.5px;
  line-height: 1.4;
}
.positioning-section-list .done { color: #087f5b; }
.positioning-report-action {
  margin-top: 10px;
  padding: 6px 11px;
  border: 1px solid #e5c5b4;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}
.positioning-report-action:hover { border-color: var(--brand); }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 34px 0 24px; }
.chat-inner { max-width: 900px; margin: 0 auto; padding: 0 28px; }

.msg { margin-bottom: 20px; display: flex; gap: 10px; animation: rise .25s ease; }
.msg.user { justify-content: flex-end; }
.msg .avatar {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; margin-top: 2px;
  background: var(--tone-soft, var(--brand-soft)); color: var(--tone, var(--brand));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.msg .bubble {
  max-width: 85%; padding: 13px 17px; border-radius: 16px; word-break: break-word;
}
.msg.user .bubble {
  background: var(--brand-grad); color: #fff; white-space: pre-wrap;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 3px 10px rgba(255, 106, 0, .22);
}
.msg.assistant .bubble {
  background: var(--card); border: 1px solid var(--border); width: auto; flex: 1; min-width: 0;
  border-radius: 4px 16px 16px 16px; box-shadow: var(--shadow-sm);
}
.msg.assistant .bubble.thinking { color: var(--text-soft); }

.quick-replies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 8px;
  margin-top: 14px;
}
.quick-reply-hint {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 9px;
  color: var(--text-soft); font-size: 12px;
}
.quick-reply-hint b {
  padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark);
  font-size: 11px; line-height: 1.4;
}
.msg.assistant .bubble.positioning-report-bubble {
  border-color: #dfc3b4;
  box-shadow: 0 12px 30px rgba(143, 47, 16, .08);
}
.positioning-report-bubble > h1:first-child {
  margin-top: 0;
  color: var(--brand-dark);
  font-size: 21px;
}
.quick-reply-option {
  width: 100%; min-height: 44px; padding: 9px 12px;
  border: 1px solid #e5c5b4; border-radius: 8px;
  background: #fffaf7; color: var(--brand-dark);
  text-align: left; line-height: 1.45; white-space: normal; word-break: break-word;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.quick-reply-option:hover, .quick-reply-option:focus-visible {
  border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--focus-ring);
}
.yiren-stage-choices .quick-reply-direct-input {
  grid-column: 1 / -1;
  min-height: 42px;
  background: #fff;
  color: var(--brand-dark);
  text-align: center;
  font-weight: 700;
}
.quick-replies.multiple .quick-reply-option:not(.quick-reply-other-trigger) {
  position: relative; padding-left: 40px;
}
.quick-replies.multiple .quick-reply-option:not(.quick-reply-other-trigger)::before {
  content: ''; position: absolute; left: 13px; top: 50%; width: 16px; height: 16px;
  border: 1.5px solid #d6ae99; border-radius: 5px; background: #fff; transform: translateY(-50%);
}
.quick-replies.multiple .quick-reply-option.selected:not(.quick-reply-other-trigger)::before {
  content: '✓'; display: grid; place-items: center; border-color: var(--brand); background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 900;
}
.quick-reply-option.selected { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.quick-replies.answered .quick-reply-option:not(.selected) { opacity: .48; }
.quick-reply-option:disabled { cursor: default; }
.quick-replies.positioning-mode-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.positioning-mode-choices .quick-reply-option {
  min-height: 104px;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
}
.positioning-mode-choices .quick-reply-option b {
  color: var(--brand-dark);
  font-size: 15px;
  line-height: 1.3;
}
.positioning-mode-choices .quick-reply-option small {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}
.quick-reply-other-trigger { background: #fff; color: var(--text-soft); }
.quick-reply-other-editor {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.quick-reply-other-editor:not([hidden]) { display: grid; }
.quick-reply-other-editor input {
  width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 8px; outline: none; background: #fff;
}
.quick-reply-other-editor input:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
.quick-reply-other-send {
  min-width: 68px; min-height: 44px; padding: 8px 15px;
  border: 0; border-radius: 8px; background: var(--brand-grad); color: #fff; font-weight: 700;
}
.quick-reply-other-send:disabled { opacity: .55; }
.quick-reply-multiple-actions {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding-top: 4px;
}
.quick-reply-selection-count { margin-right: auto; color: var(--text-soft); font-size: 12px; }
.quick-reply-confirm {
  min-width: 108px; min-height: 42px; padding: 8px 16px; border: 0; border-radius: 9px;
  background: var(--brand-grad); color: #fff; font-weight: 800;
}
.quick-reply-confirm:disabled { opacity: .45; cursor: not-allowed; }
.knowledge-note {
  margin-top: 12px; padding: 8px 10px; border: 1px solid #eee5dd; border-radius: 9px;
  background: #faf8f5; color: #7a6e64; font-size: 10.5px; line-height: 1.55;
}
.knowledge-note summary { cursor: pointer; color: #765746; font-weight: 700; }
.knowledge-note p { margin-top: 5px; color: var(--text-soft); }
.skill-jump {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.skill-jump > span { color: var(--text-soft); font-size: 12px; }
.skill-jump-button {
  min-height: 40px; padding: 8px 14px; border: 1px solid var(--brand-dark);
  border-radius: 8px; background: var(--brand-dark); color: #fff; font-weight: 700;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.skill-jump-button:hover, .skill-jump-button:focus-visible {
  background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: var(--focus-ring);
}
.return-yiren-panel {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 12px;
  border: 1px solid #dfc7b8; border-radius: 11px; background: linear-gradient(135deg, #fff8f3, #fff);
}
.return-yiren-panel > span:nth-child(2) { display: grid; flex: 1; min-width: 0; gap: 1px; line-height: 1.45; }
.return-yiren-panel b { font-size: 11.5px; }
.return-yiren-panel small { color: var(--text-soft); font-size: 10.5px; }
.return-yiren-panel button {
  flex-shrink: 0; min-height: 38px; padding: 7px 12px; border: 0; border-radius: 9px;
  background: var(--brand-grad); color: #fff; font-size: 11px; font-weight: 800;
}
.return-yiren-panel button:hover { box-shadow: var(--focus-ring); }
.return-yiren-panel button i { margin-left: 4px; font-style: normal; }

/* 打字中动画 */
.dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.workflow-thinking { display: inline-flex; align-items: center; gap: 10px; }
.dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2);
  animation: bounce 1.2s infinite;
}
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.msg .bubble .actions {
  margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px dashed var(--border); padding-top: 10px;
}
.msg .bubble .actions button {
  border: 1px solid var(--border); background: none; border-radius: 8px;
  min-height: 34px; font-size: 12px; padding: 5px 12px; color: var(--text-soft);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.msg .bubble .actions button:hover { color: var(--brand-dark); border-color: var(--brand); background: var(--brand-soft); }
.msg-error {
  color: #c52222; font-size: 13px; background: #fef2f2;
  border: 1px solid #fecaca; border-radius: 10px; padding: 10px 14px;
}

/* markdown 内容样式 */
.bubble h1, .bubble h2, .bubble h3, .bubble h4 { margin: 14px 0 8px; line-height: 1.4; }
.bubble h1 { font-size: 18px; } .bubble h2 { font-size: 16px; } .bubble h3 { font-size: 15px; }
.bubble p { margin: 7px 0; }
.bubble ul, .bubble ol { margin: 7px 0; padding-left: 22px; }
.bubble li { margin: 3px 0; }
.bubble code {
  background: #f5f2ec; border-radius: 5px; padding: 1px 6px; font-size: 13px;
  font-family: Consolas, monospace;
}
.bubble pre {
  background: #262019; color: #f3ede4; border-radius: 12px;
  padding: 14px; overflow-x: auto; margin: 10px 0;
}
.bubble pre code { background: none; color: inherit; padding: 0; }
.bubble blockquote {
  border-left: 3px solid var(--brand); background: var(--brand-soft);
  padding: 7px 14px; border-radius: 0 10px 10px 0; margin: 8px 0;
}
.bubble table { display: block; overflow-x: auto; border-collapse: collapse; margin: 10px 0; width: 100%; font-size: 13px; }
.bubble th, .bubble td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.bubble th { background: #faf8f4; }
.bubble hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* ---------- 输入区 ---------- */
.chat-input-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .96) 28%);
  padding: 18px 28px max(18px, env(safe-area-inset-bottom));
}
.composer {
  max-width: 900px; margin: 0 auto;
  background: #fff; border: 1.5px solid var(--border); border-radius: 18px;
  padding: 10px 12px 8px; box-shadow: 0 14px 36px rgba(42, 31, 19, .08);
  transition: all .15s;
}
.composer:focus-within { border-color: var(--brand); box-shadow: var(--focus-ring); }
.composer textarea {
  width: 100%; resize: none; border: none; outline: none;
  padding: 4px 6px; max-height: 200px; line-height: 1.6; background: transparent;
}
.composer-bar {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 6px;
}
.model-select {
  border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 10px; font-size: 12px; color: var(--text-soft);
  background: #faf8f4; outline: none; max-width: 220px; min-width: 0; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.model-select:hover, .model-select:focus { border-color: var(--brand); color: var(--brand-dark); }
.composer-bar .input-tip { flex: 1; font-size: 12px; color: var(--text-soft); text-align: right; }
.btn-send {
  background: var(--brand-grad); color: #fff; border: none;
  border-radius: 12px; padding: 8px 22px; min-width: 76px; min-height: 40px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 5px 14px rgba(143, 47, 16, .22); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-send:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(255, 106, 0, .4); }
.btn-send:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-pause {
  border: 1px solid #e0b6a1; background: #fff8f3; color: var(--brand-dark);
  border-radius: 12px; padding: 8px 18px; min-width: 72px; min-height: 40px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease;
}
.btn-pause:hover { transform: translateY(-1px); border-color: var(--brand); background: var(--brand-soft); }
.btn-pause:disabled { opacity: .55; cursor: wait; transform: none; }

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(30, 24, 15, .4);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center; z-index: 100;
  padding: 24px;
  overflow-y: auto;
}
.modal {
  width: 440px; max-width: min(92vw, 980px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  background: var(--card); border-radius: 20px;
  padding: 28px 28px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
  animation: rise .25s ease;
  overflow-y: auto;
  position: relative;
}
.modal.skill-editor-modal { width: 620px; }
.modal.prompt-modal, .modal.compare-modal { width: 900px; }
.modal-close {
  position: sticky; top: 0; float: right; z-index: 2;
  width: 40px; height: 40px; margin: -12px -12px 4px 12px;
  border: 1px solid var(--border); border-radius: 50%;
  background: #fff; color: var(--text-soft); font-size: 20px; line-height: 1;
  box-shadow: var(--shadow-sm);
}
.modal-close:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.modal h3 { font-size: 16px; margin-bottom: 14px; padding-right: 38px; }
.modal label { display: block; font-size: 13px; color: var(--text-soft); margin: 14px 0 6px; }
.modal input, .modal textarea, .modal select {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 12px; outline: none;
  transition: border .15s;
}
.modal input:focus, .modal textarea:focus, .modal select:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
.modal .modal-btns {
  display: flex; justify-content: flex-end; gap: 10px; margin: 22px -28px -22px;
  padding: 12px 28px 16px;
  position: sticky; bottom: -22px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.modal .err { color: #dc2626; font-size: 13px; min-height: 18px; margin-top: 8px; }
.form-grid.two {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px;
}
.draft-tip {
  background: var(--brand-soft); color: var(--brand-dark); border-radius: 10px;
  padding: 8px 11px; font-size: 12.5px; margin-bottom: 10px;
}
.prompt-preview-panel {
  margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px;
}
.preview-output {
  margin-top: 10px; background: #faf8f4; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; min-height: 42px; max-height: 260px; overflow-y: auto; font-size: 13px;
}
.stars { display: flex; gap: 8px; font-size: 28px; }
.stars span { cursor: pointer; color: #e2ddd4; transition: color .12s ease, transform .12s ease; }
.stars span:hover { transform: scale(1.15); }
.stars span.on { color: #f59e0b; }
.fb-quote {
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0; padding: 9px 13px;
  font-size: 12.5px; color: var(--text-soft); margin-bottom: 4px; line-height: 1.6;
}
.fb-quote b { color: var(--brand-dark); }
.guide-grid {
  display: grid; gap: 12px; color: var(--text-soft); font-size: 13px;
}
.guide-grid div {
  background: #faf8f4; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.guide-grid b { color: var(--text); display: block; margin-bottom: 4px; }
.guide-grid p { white-space: pre-wrap; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.compare-card {
  border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 14px;
  max-height: 520px; overflow-y: auto;
}
.compare-title {
  display: flex; justify-content: space-between; gap: 10px; font-weight: 800; margin-bottom: 10px;
}
.compare-title span { color: var(--text-soft); font-weight: 400; font-size: 12px; }
.compare-output { font-size: 13px; line-height: 1.65; }
.compare-output h1, .compare-output h2, .compare-output h3 { font-size: 15px; margin: 10px 0 6px; }
.compare-output p { margin: 6px 0; }
.compare-vote {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px;
  border-top: 1px dashed var(--border); padding-top: 14px;
}
.compare-vote select, .compare-vote input {
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; background: #fff;
}
.compare-vote input { flex: 1; min-width: 220px; }

/* ---------- 管理页 ---------- */
.admin-tabs {
  display: flex; gap: 8px; margin: 14px 0 22px; overflow-x: auto;
  scrollbar-width: thin; overscroll-behavior-inline: contain;
}
.admin-tabs button {
  border: 1px solid var(--border); background: #fff; border-radius: 20px;
  padding: 7px 20px; min-height: 40px; flex: 0 0 auto; font-size: 13px; color: var(--text-soft);
  transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.admin-tabs button:hover { border-color: var(--brand); color: var(--brand-dark); }
.admin-tabs button.active {
  background: var(--brand-grad); border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px rgba(255, 106, 0, .3);
}
.tab-count {
  display: inline-flex; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px;
  align-items: center; justify-content: center; border-radius: 999px; background: #dc2626; color: #fff;
  font-size: 11px; font-weight: 800;
}
.admin-tabs button.active .tab-count { background: #fff; color: #c2410c; }
.admin-actions {
  display: flex; align-items: center; gap: 12px; margin: -8px 0 20px;
}
.admin-list-actions {
  display: flex; align-items: center; gap: 12px; margin: 0 0 24px;
}
.skill-admin-actions { flex-wrap: wrap; margin-top: 0; }
.muted { color: var(--text-soft); font-size: 12px; font-weight: 400; }
.skill-order-panel {
  margin-bottom: 22px; padding: 14px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff;
}
.skill-order-panel .section-title { margin: 0 0 12px; }
#skill-order-list {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.skill-order-group {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #faf8f4;
}
.skill-order-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 12px; font-weight: 800; font-size: 13px; color: var(--text);
  border-left: 4px solid var(--tone, var(--brand)); background: #fff;
  cursor: grab; user-select: none;
}
.skill-order-heading:active { cursor: grabbing; }
.skill-order-heading b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-order-heading span { color: var(--text-soft); font-size: 12px; font-weight: 500; }
.skill-order-row {
  display: grid; grid-template-columns: 28px 32px minmax(0, 1fr); gap: 8px;
  align-items: center; min-height: 54px; padding: 9px 10px; border-top: 1px solid var(--border);
  cursor: grab; user-select: none;
}
.skill-order-row:active { cursor: grabbing; }
.skill-order-row.is-hidden { opacity: .62; }
.skill-order-group.dragging, .skill-order-row.dragging { opacity: .45; }
.skill-order-group.drag-over { outline: 2px solid rgba(255, 106, 0, .35); outline-offset: -3px; background: #fff7ed; }
.skill-order-row.drag-over { background: #fff7ed; box-shadow: inset 0 0 0 2px rgba(255, 106, 0, .22); }
.skill-order-rank {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #fff; border: 1px solid var(--border);
  color: var(--text-soft); font-size: 12px; font-weight: 700;
}
.skill-order-name { min-width: 0; display: grid; gap: 2px; }
.skill-order-name b {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; color: var(--text);
}
.skill-order-name em {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-soft); font-size: 11px; font-style: normal;
}
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px;
}
.filter-bar select, .filter-bar input {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 11px; min-height: 40px; background: #fff; outline: none;
}
.filter-bar input { min-width: 240px; flex: 1; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--brand); }
.admin-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 13px;
}
.admin-table th, .admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { background: #faf8f4; color: var(--text-soft); font-weight: 700; white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .danger { color: #dc2626; background: none; border: none; font-size: 13px; }
.admin-table .link-btn {
  color: var(--brand-dark); background: none; border: none;
  font-size: 13px; padding: 0; cursor: pointer; text-decoration: none;
}
.admin-table .link-btn:hover { text-decoration: underline; }
.table-scroll {
  max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--card); overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.table-scroll .admin-table {
  width: max-content; min-width: 100%; border-radius: 0; box-shadow: none; border: 0;
}
.status-pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 2px 9px; background: #fff7ed; color: var(--brand-dark); white-space: nowrap;
}
.status-pill.done { background: #ecfdf5; color: #15803d; }
.fb-detail summary { cursor: pointer; color: var(--brand-dark); font-size: 12.5px; }
.fb-detail-body {
  margin-top: 8px; background: #faf8f4; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--text-soft);
  max-width: 460px; max-height: 260px; overflow-y: auto; line-height: 1.65;
}
.fb-detail-body p { margin: 4px 0; }
.fb-detail-body b { color: var(--text); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--brand-dark); line-height: 1.2; }
.stat-card .label { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.stat-card.review-due { border-color: #f59e0b; background: #fffbeb; }
.stat-card.review-due .num { color: #b45309; }
.knowledge-alert {
  margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f59e0b;
  border-radius: 12px; background: #fffbeb; color: #92400e; font-size: 13px; font-weight: 650;
}
.knowledge-vector-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px;
  margin: -10px 0 18px; padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.knowledge-vector-panel div { display: grid; gap: 3px; min-width: 0; }
.knowledge-vector-panel b { font-size: 12px; color: var(--text-soft); }
.knowledge-vector-panel span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text); }
.knowledge-ok { padding: 14px; margin-bottom: 18px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; color: #15803d; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.knowledge-counts .section-title { margin-top: 26px; }
.knowledge-counts .admin-table { box-shadow: none; border: 1px solid var(--border); }
.admin-table code { white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
.section-title { font-size: 15px; font-weight: 800; margin: 26px 0 12px; }
.ok-dot { color: #16a34a; } .no-dot { color: #d1cdc4; }
.version-list { display: grid; gap: 12px; max-height: 62vh; overflow-y: auto; }
.version-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.version-item div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.version-item span, .version-item p, .version-item summary { color: var(--text-soft); font-size: 12.5px; }
.version-item pre {
  margin-top: 8px; padding: 10px; border-radius: 10px; background: #262019; color: #f3ede4;
  overflow-x: auto; font-size: 12px; line-height: 1.5;
}

/* ---------- 生命力主题延展：功能陈列、具体功能与输入区 ---------- */
.all-skills-panel {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 46px; padding: 34px 34px 40px; border: 1px solid rgba(222, 211, 202, .74); border-radius: 24px;
  background: rgba(255, 253, 250, .78);
  box-shadow: 0 18px 52px rgba(91, 62, 44, .065), inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}
.all-skills-panel::before { display: none; }
.all-skills-head { align-items: center; margin-bottom: 8px; }
.all-skills-head .search-box {
  max-width: 390px; min-height: 46px; margin: 0; padding: 10px 16px;
  border: 1px solid rgba(218, 204, 194, .82); border-radius: 12px;
  background: rgba(255, 255, 255, .82); box-shadow: 0 5px 16px rgba(83, 59, 42, .045), inset 0 1px 0 #fff;
}
.all-skills-head .search-box:focus {
  border-color: rgba(221, 107, 77, .5);
  box-shadow: 0 0 0 4px rgba(221, 107, 77, .07), 0 12px 28px rgba(83, 59, 42, .08);
}
.all-skills-panel .dept-title { margin: 34px 0 13px; gap: 9px; font-size: 15px; letter-spacing: .01em; }
.all-skills-panel .dept-title::before {
  width: 3px; height: 17px; border-radius: 2px; box-shadow: none;
}
.all-skills-panel .dept-title em { color: #9a8d85; font-size: 11.5px; }
.all-skills-panel .card-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.all-skills-panel .skill-card {
  min-height: 126px; gap: 10px; padding: 18px 18px 17px 20px;
  border: 1px solid rgba(221, 210, 201, .82); border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 6px 18px rgba(80, 55, 40, .035);
}
.all-skills-panel .skill-card::before {
  inset: 18px auto 18px 0; width: 3px; height: auto; border-radius: 0 3px 3px 0;
  background: var(--tone, var(--brand)); opacity: .58;
}
.all-skills-panel .skill-card:hover {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone, var(--brand)) 32%, #ddd5cf);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 13px 30px rgba(80, 55, 40, .075);
}
.all-skills-panel .card-top,
.all-skills-panel .skill-card .desc { position: relative; z-index: 1; }
.all-skills-panel .skill-icon {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(222, 211, 203, .62);
  background: color-mix(in srgb, var(--tone-soft, var(--brand-soft)) 46%, #fff);
  box-shadow: none; font-size: 15px; filter: saturate(.72);
}
.all-skills-panel .skill-card .name { color: #352c27; font-size: 15px; font-weight: 750; letter-spacing: .01em; }
.all-skills-panel .skill-card .desc { color: #786e67; font-size: 13px; line-height: 1.65; }
.all-skills-panel .tag.skill-status {
  padding: 2px 7px; border: 1px solid rgba(139, 126, 117, .18); border-radius: 5px;
  font-size: 10px; font-weight: 650; letter-spacing: .02em;
}

body.tool-mode {
  background:
    radial-gradient(circle at 90% 8%, rgba(178, 153, 231, .18), transparent 25rem),
    radial-gradient(circle at 7% 34%, rgba(255, 185, 143, .17), transparent 27rem),
    linear-gradient(180deg, #fbf9f6, #f7f3ef);
}
body.tool-mode .topbar { background: rgba(255, 253, 250, .84); border-bottom-color: rgba(224, 214, 205, .72); }
body.tool-mode .topbar .logo .dot,
.chat-brand .dot {
  background: linear-gradient(145deg, #f59b76 0%, #dc6544 56%, #9a78d3 130%);
}
.poster-tool { position: relative; padding-top: 32px; }
.tool-head { margin-bottom: 22px; }
.tool-head .back {
  border-color: rgba(220, 204, 193, .8); border-radius: 14px; background: rgba(255, 255, 255, .76);
  box-shadow: 0 5px 16px rgba(80, 55, 40, .045);
}
.tool-head h2 { font-size: 24px; letter-spacing: -.3px; }
.tool-panel {
  border: 1px solid rgba(226, 212, 202, .8); border-radius: 26px; padding: 25px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 250, 247, .9));
  box-shadow: 0 16px 40px rgba(80, 55, 40, .075), inset 0 1px 0 #fff;
}
.tool-panel label { color: #7f7168; font-weight: 650; }
.tool-panel input, .tool-panel textarea, .tool-panel select {
  min-height: 44px; border-color: rgba(219, 202, 191, .82); border-radius: 15px;
  background: rgba(255, 255, 255, .86);
}
.tool-panel textarea { min-height: 110px; }
.tool-panel textarea.poster-short-textarea { min-height: 72px; }
.upload-control input[name]::placeholder { font-size: 12px; }
.delivery-form-other[hidden] { display: none; }
.delivery-form-other label { margin-top: 10px; }
.poster-select { position: relative; }
.poster-select-trigger {
  width: 100%; min-height: 46px; padding: 10px 42px 10px 13px;
  border: 1.5px solid rgba(220, 205, 195, .88); border-radius: 14px;
  background: rgba(255, 255, 255, .76); color: #8a7d74; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.poster-select-trigger::after {
  content: ''; position: absolute; right: 17px; top: 19px; width: 8px; height: 8px;
  border-right: 2px solid #8f8178; border-bottom: 2px solid #8f8178;
  transform: rotate(45deg); transition: transform .16s ease, top .16s ease;
}
.poster-select-trigger:hover { border-color: rgba(220, 104, 75, .48); background: #fff; }
.poster-select-trigger:focus-visible,
.poster-select.is-open .poster-select-trigger { outline: none; border-color: rgba(220, 104, 75, .62); background: #fff; box-shadow: var(--focus-ring); }
.poster-select.is-open .poster-select-trigger::after { top: 23px; transform: rotate(225deg); }
.poster-select-trigger.has-value { color: #3f342d; font-weight: 650; }
.poster-select-trigger[aria-invalid="true"] { border-color: #c94f3d; box-shadow: 0 0 0 3px rgba(201, 79, 61, .12); }
.poster-select-menu {
  display: grid; gap: 4px; margin-top: 8px; padding: 6px;
  border: 1px solid rgba(220, 205, 195, .92); border-radius: 14px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 12px 28px rgba(76, 51, 37, .1);
}
.poster-select-menu[hidden] { display: none; }
.poster-select-menu button {
  position: relative; width: 100%; min-height: 42px; padding: 9px 40px 9px 12px;
  border: 0; border-radius: 9px; background: transparent; color: #493d35;
  text-align: left; font-weight: 600;
}
.poster-select-menu button:hover,
.poster-select-menu button:focus-visible { outline: none; background: #fff2ec; color: #9e4933; }
.poster-select-menu button.is-selected { background: #fff0e9; color: #9e4933; }
.poster-select-menu button.is-selected::after {
  content: '✓'; position: absolute; right: 14px; top: 9px; color: #cf684e; font-weight: 900;
}
.poster-field-error { margin: 7px 2px 0; color: #b33f31; font-size: 12px; font-weight: 650; }
.poster-field-error[hidden] { display: none; }
.tool-panel input:focus, .tool-panel textarea:focus, .tool-panel select:focus {
  border-color: rgba(221, 107, 77, .55); box-shadow: 0 0 0 4px rgba(221, 107, 77, .07);
}
.upload-control {
  border-color: rgba(221, 107, 77, .28); border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 248, 243, .85), rgba(248, 244, 255, .72));
}
.poster-status, .poster-return-yiren, .poster-config-tip {
  border-color: rgba(223, 199, 184, .72); border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 248, 243, .9), rgba(248, 244, 255, .72));
}
.poster-progress span { background: linear-gradient(90deg, #d86146, #e68a61 55%, #9575cb); }

body.chat-mode { overflow: hidden; background: #f8f4f0; }
.chat-page {
  --chat-coral: #dc684b;
  --chat-peach: #f0a06c;
  --chat-violet: #8d75ca;
  --chat-mint: #71a58f;
  grid-template-columns: 286px minmax(0, 1fr);
  background: #f8f4f0;
}
.chat-sidebar {
  position: relative; isolation: isolate; gap: 9px; padding: 14px 12px 11px;
  border-right: 1px solid rgba(222, 211, 203, .78);
  background-color: #faf7f3;
  background-image: linear-gradient(180deg, rgba(252, 248, 244, .98), rgba(247, 242, 238, .98) 58%, rgba(246, 242, 249, .98));
}
.chat-sidebar::before {
  content: ''; position: absolute; z-index: 0; width: 220px; height: 220px; left: -120px; top: -120px;
  border-radius: 50%; background: radial-gradient(circle, rgba(244, 158, 111, .17), transparent 70%); pointer-events: none;
}
.chat-sidebar > * { position: relative; z-index: 1; }
.chat-brand {
  min-height: 44px; padding: 6px 8px 9px; border-radius: 13px; font-weight: 650;
}
.chat-brand:hover { background: rgba(255, 255, 255, .66); }
.chat-brand .dot {
  width: 32px; height: 32px; border-radius: 11px; box-shadow: 0 6px 16px rgba(202, 91, 60, .18);
}
.chat-skill-panel {
  grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 11px 12px;
  border: 1px solid rgba(224, 211, 202, .76); border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(255, 249, 245, .66));
  box-shadow: 0 8px 24px rgba(76, 51, 37, .05), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.chat-skill-panel .skill-icon { width: 34px; height: 34px; border-radius: 12px; }
.chat-title-copy .title { font-size: 14.5px; }
.chat-title-copy .desc { color: #8d8077; }
.chat-skill-switch {
  width: 100%; min-width: 0; grid-template-columns: 34px minmax(0, 1fr) auto;
  color: #473d37; font-family: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.chat-skill-switch:hover,
.chat-skill-switch:focus-visible,
.chat-skill-switch[aria-expanded="true"] {
  border-color: rgba(141, 117, 202, .34);
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(247, 242, 255, .9));
  box-shadow: var(--focus-ring);
}
.chat-skill-switch-action { display: inline-flex; align-items: center; gap: 3px; color: #8c786d; font-size: 10px; font-weight: 800; white-space: nowrap; }
.chat-skill-switch-action i { font-size: 12px; font-style: normal; transition: transform .16s ease; }
.chat-skill-switch[aria-expanded="true"] .chat-skill-switch-action i { transform: rotate(180deg); }
.chat-skill-switcher {
  position: absolute !important; z-index: 8 !important; top: 128px; right: 10px; bottom: 72px; left: 10px;
  min-height: 230px; padding: 13px 11px 11px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid rgba(219, 203, 193, .92); border-radius: 18px;
  background: rgba(255, 252, 249, .985); box-shadow: 0 20px 48px rgba(61, 42, 31, .18), inset 0 1px 0 #fff;
  overflow: hidden;
}
.chat-skill-switcher[hidden] { display: none; }
.chat-skill-switcher-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.chat-skill-switcher-head > span { min-width: 0; display: grid; gap: 1px; }
.chat-skill-switcher-head small { color: #a77763; font-size: 9.5px; font-weight: 750; }
.chat-skill-switcher-head b { color: #44372f; font-size: 14px; }
.chat-skill-switcher-close {
  width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(219, 204, 194, .82); border-radius: 10px; background: #fff; color: #78675e; font-size: 18px;
}
.chat-skill-switcher-close:hover,
.chat-skill-switcher-close:focus-visible { border-color: rgba(211, 101, 75, .42); color: #a84e37; box-shadow: var(--focus-ring); }
.chat-skill-switcher-search {
  min-width: 0; min-height: 40px; padding: 5px 8px 5px 10px; display: flex; align-items: center; gap: 7px;
  border: 1px solid rgba(219, 206, 197, .9); border-radius: 12px; background: #fff;
}
.chat-skill-switcher-search:focus-within { border-color: rgba(141, 117, 202, .42); box-shadow: var(--focus-ring); }
.chat-skill-switcher-search > i { color: #9a8175; font-size: 15px; font-style: normal; }
.chat-skill-switcher-search input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #473c36; font-size: 12px; }
.chat-skill-switcher-search button { padding: 4px 6px; border: 0; border-radius: 7px; background: #fff1ea; color: #a4523c; font-size: 9.5px; font-weight: 750; }
.chat-skill-switcher-groups { min-height: 0; flex: 1; display: grid; align-content: start; gap: 12px; overflow-y: auto; padding: 1px 2px 4px; scrollbar-width: thin; }
.chat-skill-switcher-group { display: grid; gap: 5px; }
.chat-skill-switcher-label { display: flex; align-items: center; justify-content: space-between; padding: 0 3px; color: #9a887d; }
.chat-skill-switcher-label span { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; }
.chat-skill-switcher-label em { font-size: 9px; font-style: normal; }
.chat-skill-switcher-items { display: grid; gap: 4px; }
.chat-skill-switcher-item {
  width: 100%; min-width: 0; min-height: 48px; padding: 7px 8px; display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; background: rgba(248, 244, 240, .58); color: #4b3e37; text-align: left;
}
.chat-skill-switcher-item:hover,
.chat-skill-switcher-item:focus-visible { border-color: rgba(213, 104, 77, .23); background: #fff5ef; box-shadow: var(--focus-ring); }
.chat-skill-switcher-item.active { border-color: rgba(141, 117, 202, .22); background: linear-gradient(135deg, #fff3ec, #f5f0ff); }
.chat-skill-switcher-item > .skill-icon { width: 32px; height: 32px; border-radius: 10px; }
.chat-skill-switcher-item > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.chat-skill-switcher-item b,
.chat-skill-switcher-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-skill-switcher-item b { font-size: 11.5px; }
.chat-skill-switcher-item small { color: #96877e; font-size: 9.5px; }
.chat-skill-switcher-item > i { color: #a25a45; font-size: 9px; font-style: normal; font-weight: 800; }
.chat-skill-switcher-empty { padding: 24px 10px; color: #998b82; font-size: 11px; text-align: center; }
.chat-tools { padding: 3px 1px 6px; }
.chat-new.btn-ghost {
  position: relative; min-height: 40px; padding: 8px 11px; border: 1px solid transparent; border-radius: 13px;
  background: rgba(255, 255, 255, .34); color: #4b4039;
}
.chat-new.btn-ghost:hover {
  border: 1px solid rgba(220, 104, 75, .16); background: rgba(255, 255, 255, .82); color: #3b302a;
}
.sidebar-label { padding: 10px 11px 6px; color: #96877e; font-size: 11px; letter-spacing: .05em; }
.chat-session-list { gap: 4px; padding-right: 3px; }
.chat-session-row { border-radius: 14px; }
.chat-session-item {
  padding: 9px 39px 9px 11px; border: 1px solid transparent; border-radius: 14px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.chat-session-row:hover .chat-session-item { background: rgba(255, 255, 255, .64); }
.chat-session-row.active .chat-session-item {
  border-color: rgba(220, 104, 75, .14);
  background: linear-gradient(135deg, rgba(255, 246, 240, .95), rgba(245, 241, 255, .84));
  box-shadow: 0 7px 18px rgba(80, 55, 40, .055);
}
.chat-session-row.active .session-title { color: #44372f; font-weight: 650; }
.session-title-row { min-width: 0; display: flex; align-items: center; gap: 6px; }
.session-title-row .session-title { flex: 1; }
.session-title-row > i {
  flex-shrink: 0; padding: 1px 5px; border-radius: 5px; background: rgba(216, 95, 73, .08);
  color: #a65a43; font-size: 8.5px; font-style: normal; font-weight: 800;
}
.chat-session-row.pinned .chat-session-item { border-color: rgba(216, 95, 73, .09); }
.session-search { position: relative; margin: 0 4px 5px; }
.session-search input {
  width: 100%; min-height: 34px; padding: 6px 30px 6px 10px; border: 1px solid rgba(219, 207, 198, .76); border-radius: 11px;
  background: rgba(255, 255, 255, .55); color: #51443d; font-size: 11.5px; outline: 0;
}
.session-search input:focus { border-color: rgba(216, 95, 73, .42); background: rgba(255, 255, 255, .88); box-shadow: 0 0 0 3px rgba(216, 95, 73, .06); }
.session-search button {
  position: absolute; right: 5px; top: 50%; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 7px;
  background: transparent; color: #9a8b82; transform: translateY(-50%);
}
.session-search button:hover { background: rgba(110, 83, 67, .07); }
.session-search-empty { padding: 20px 10px; color: #9a8d85; font-size: 11px; text-align: center; }
.session-search-empty[hidden], .chat-session-row[hidden] { display: none; }
.session-preview { color: #9a8e85; }
.session-more-trigger { border-radius: 9px; }
.session-more-trigger:hover,
.session-more-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .8); color: #574941; }
.chat-sidebar-footer { border-top-color: rgba(218, 205, 196, .74); padding-top: 8px; }
.sidebar-user { border-radius: 13px; padding: 8px 9px; }
.sidebar-user:hover,
.sidebar-user-menu[open] > .sidebar-user { background: rgba(255, 255, 255, .72); }
.sidebar-user .user-chip {
  background: linear-gradient(145deg, #fff0e7, #f0eaff); color: #9c5038; box-shadow: inset 0 0 0 1px rgba(220, 104, 75, .08);
}
.session-context-menu, .sidebar-account-menu {
  padding: 7px; border-color: rgba(222, 208, 199, .82); border-radius: 15px;
  background: rgba(255, 253, 250, .96); box-shadow: 0 16px 38px rgba(67, 46, 33, .14); backdrop-filter: blur(16px);
}
.session-context-menu button, .sidebar-account-menu .btn-ghost { border-radius: 10px; }
.session-context-menu button:hover, .sidebar-account-menu .btn-ghost:hover { background: #fff3ec; }
.chat-main {
  position: relative; isolation: isolate;
  background:
    radial-gradient(circle at 92% 4%, rgba(178, 153, 231, .16), transparent 24rem),
    radial-gradient(circle at 8% 44%, rgba(255, 187, 145, .12), transparent 28rem),
    linear-gradient(180deg, #fcfaf8 0%, #fbf8f5 72%, #f8f4f0 100%);
}
.yiren-task-status-wrap,
.handoff-status-wrap,
.positioning-status-wrap { background: transparent; padding-top: 16px; }
.handoff-status,
.positioning-status {
  border-color: rgba(225, 207, 196, .78); border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 251, 248, .95), rgba(248, 244, 255, .86));
  box-shadow: 0 10px 28px rgba(80, 55, 40, .06), inset 0 1px 0 #fff;
}
.yiren-task-status { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.yiren-task-status-head { border-bottom-color: rgba(232, 219, 211, .74); }
.yiren-task-status-head > span i,
.handoff-mark,
.return-yiren-mark {
  background: linear-gradient(145deg, #f19770, #d96146 60%, #9878ce 135%);
  box-shadow: 0 5px 14px rgba(200, 89, 60, .16);
}
.positioning-progress { height: 7px; background: rgba(229, 220, 214, .72); }
.positioning-progress i { background: linear-gradient(90deg, #d86146, #eb9469 57%, #9575cb); }
.positioning-section-list { color: #958981; }
.positioning-section-list .done { color: #5c967f; }
.chat-body { padding: 38px 0 28px; scrollbar-color: rgba(186, 164, 150, .65) transparent; }
.chat-body > .yiren-task-status-wrap,
.chat-body > .handoff-status-wrap,
.chat-body > .positioning-status-wrap { padding: 0 28px 18px; background: transparent; }
.chat-inner { max-width: 930px; }
.msg { gap: 11px; margin-bottom: 23px; }
.msg .avatar {
  width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .82); border-radius: 13px;
  background: linear-gradient(145deg, #fff, var(--tone-soft, var(--brand-soft)));
  box-shadow: 0 6px 16px rgba(75, 50, 36, .065);
}
.is-yiren-chat .msg.assistant .avatar { animation: yiren-breathe 3.8s ease-in-out infinite; }
.msg .bubble { padding: 15px 18px; border-radius: 21px; }
.msg.user .bubble {
  border-radius: 21px 21px 6px 21px;
  background: linear-gradient(135deg, #d45f45, #e17c56 62%, #a977b9 145%);
  box-shadow: 0 8px 22px rgba(190, 83, 57, .16);
}
.msg.assistant .bubble {
  border-color: rgba(226, 213, 204, .8); border-radius: 6px 21px 21px 21px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 26px rgba(76, 51, 37, .055), inset 0 1px 0 rgba(255, 255, 255, .92);
}
.msg.assistant .bubble.positioning-report-bubble {
  border-color: rgba(207, 170, 151, .7); box-shadow: 0 14px 34px rgba(143, 79, 50, .08);
}
.quick-reply-option {
  border-color: rgba(222, 197, 184, .76); border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 249, 245, .95), rgba(249, 246, 255, .88)); color: #8d4a36;
}
.quick-reply-option:hover, .quick-reply-option:focus-visible {
  border-color: rgba(220, 104, 75, .5); background: #fff6f0; box-shadow: 0 0 0 4px rgba(220, 104, 75, .06);
}
.knowledge-note {
  border-color: rgba(225, 213, 204, .76); border-radius: 13px;
  background: linear-gradient(135deg, rgba(250, 247, 244, .92), rgba(247, 244, 252, .86));
}
.return-yiren-panel {
  border-color: rgba(223, 199, 184, .72); border-radius: 16px;
  background: linear-gradient(135deg, #fff7f1, #f8f4ff);
}
.msg .bubble .actions { border-top-color: rgba(225, 212, 203, .78); }
.msg .bubble .actions button {
  min-height: 35px; padding: 5px 13px; border-color: rgba(220, 205, 195, .82); border-radius: 999px;
  background: rgba(255, 255, 255, .62);
}
.msg .bubble .actions button:hover { border-color: rgba(220, 104, 75, .4); background: #fff4ed; color: #98472f; }
.bubble blockquote { border-left-color: #df7353; background: linear-gradient(90deg, #fff2e9, #fbf6ff); }
.bubble code { background: #f5f0ec; }
.chat-input-wrap {
  background: linear-gradient(180deg, rgba(248, 244, 240, 0), rgba(248, 244, 240, .9) 24%, rgba(248, 244, 240, .99) 100%);
  padding-top: 20px;
}
.composer {
  max-width: 930px; padding: 13px 15px 10px; border: 1px solid rgba(218, 199, 187, .86); border-radius: 24px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(76, 51, 37, .105), inset 0 1px 0 #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.composer:focus-within {
  border-color: rgba(220, 104, 75, .54);
  box-shadow: 0 0 0 4px rgba(220, 104, 75, .07), 0 22px 52px rgba(76, 51, 37, .12);
  transform: translateY(-1px);
}
.composer textarea { min-height: 62px; padding: 5px 6px 9px; font-size: 15px; line-height: 1.72; }
.composer textarea::placeholder { color: #aaa098; }
.composer-bar { border-top: 1px solid rgba(230, 219, 211, .82); padding-top: 9px; }
.model-select {
  min-height: 34px; border-color: rgba(220, 205, 195, .82); background: rgba(251, 248, 245, .9);
}
.composer-bar .input-tip { color: #968a82; }
.btn-send {
  border-radius: 14px; background: linear-gradient(135deg, #d45f45, #e17c56 62%, #aa75ad 145%);
  box-shadow: 0 7px 18px rgba(190, 83, 57, .2);
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 11px 25px rgba(190, 83, 57, .27); }
.btn-pause { border-color: rgba(220, 104, 75, .3); border-radius: 14px; background: #fff5ef; }

/* ---------- 首页视觉系统：全站统一 ---------- */
body.login-mode,
body.tool-mode,
body.admin-mode {
  overflow-x: clip;
  background:
    radial-gradient(circle at 91% 3%, rgba(197, 177, 244, .2), transparent 25rem),
    radial-gradient(circle at 5% 32%, rgba(255, 188, 145, .19), transparent 28rem),
    linear-gradient(180deg, #fbf9f6 0%, #f8f5f1 100%);
}

body:not(.chat-mode) .topbar {
  background: rgba(255, 253, 250, .84);
  border-bottom-color: rgba(224, 214, 205, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body:not(.chat-mode) .topbar .logo .dot,
.login-logo .dot {
  background: linear-gradient(145deg, #f59b76 0%, #dc6544 55%, #9a78d3 125%);
  box-shadow: 0 6px 18px rgba(202, 91, 60, .22), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.topbar .user-chip {
  background: linear-gradient(145deg, #fff0e7, #f0eaff);
  color: #9c5038;
  box-shadow: inset 0 0 0 1px rgba(220, 104, 75, .08);
}
.topbar button:not(.logo) {
  border-color: rgba(224, 211, 202, .82);
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 4px 12px rgba(76, 51, 37, .035);
}
.topbar button:not(.logo):hover {
  border-color: rgba(220, 104, 75, .35);
  background: #fff4ed;
  color: #98472f;
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, #d45f45, #e47b52 58%, #b06f9f 130%);
  box-shadow: 0 7px 18px rgba(190, 83, 57, .2);
}
.btn-primary:hover { box-shadow: 0 11px 26px rgba(190, 83, 57, .27); }
.btn-ghost { border-color: rgba(220, 205, 195, .84); background: rgba(255, 255, 255, .72); }
.btn-ghost:hover { border-color: rgba(220, 104, 75, .42); background: #fff4ed; color: #98472f; }
.link-btn {
  border: 0; background: transparent; color: #a15039; padding: 2px 4px; font-size: 13px;
  text-decoration: none; transition: color .15s ease, background .15s ease;
}
.link-btn:hover { color: #7f3828; text-decoration: underline; }

/* 登录与首次激活 */
.login-wrap {
  isolation: isolate;
  background:
    radial-gradient(circle at 86% 10%, rgba(193, 171, 239, .22), transparent 28rem),
    radial-gradient(circle at 8% 82%, rgba(255, 183, 137, .24), transparent 30rem),
    linear-gradient(145deg, #fcfaf7 0%, #f8f4ef 56%, #f8f3f8 100%);
}
.login-glow { filter: blur(64px); opacity: .6; animation: yiren-drift 11s ease-in-out infinite alternate; }
.login-glow.a { width: 440px; height: 440px; background: #efb08a; top: -180px; right: -90px; }
.login-glow.b { width: 400px; height: 400px; background: #c7b5ee; bottom: -180px; left: -110px; animation-delay: -5s; }
.login-card {
  isolation: isolate; overflow: hidden;
  width: min(430px, 100%); padding: 42px 40px 38px; border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .94);
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 249, 244, .9) 58%, rgba(248, 244, 255, .9));
  box-shadow: 0 28px 80px rgba(86, 59, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .96);
  backdrop-filter: blur(24px);
}
.login-card::before {
  content: ''; position: absolute; z-index: -1; width: 250px; height: 250px; right: -145px; top: -145px;
  border-radius: 50%; background: radial-gradient(circle, rgba(171, 146, 224, .24), transparent 70%);
}
.login-logo .dot { width: 54px; height: 54px; border-radius: 19px; font-size: 25px; margin-bottom: 14px; }
.login-kicker {
  display: inline-flex; align-items: center; min-height: 25px; margin-bottom: 7px; padding: 3px 10px;
  border: 1px solid rgba(220, 104, 75, .14); border-radius: 999px;
  background: rgba(255, 246, 240, .72); color: #b15b43; font-size: 11px; font-weight: 750; letter-spacing: .06em;
}
.login-card h1 { color: #312721; font-size: 25px; letter-spacing: -.35px; }
.login-card .sub { color: #83756c; line-height: 1.7; }
.login-card label { color: #74665d; font-weight: 650; }
.login-card input {
  min-height: 46px; border-color: rgba(220, 205, 195, .88); border-radius: 14px;
  background: rgba(255, 255, 255, .76); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.login-card input:focus { border-color: rgba(220, 104, 75, .58); background: #fff; box-shadow: var(--focus-ring); }
.login-card .btn-primary { min-height: 47px; border-radius: 14px; }
.login-activate-link { color: #a15039; }

/* 专业工具与结构化输入页 */
.poster-tool { max-width: 1210px; padding-top: 30px; }
.poster-tool .tool-head {
  position: relative; isolation: isolate; overflow: hidden; margin-bottom: 22px; padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, .94); border-radius: 26px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .94), rgba(255, 247, 241, .88) 58%, rgba(247, 242, 255, .9));
  box-shadow: 0 18px 52px rgba(84, 57, 41, .085), inset 0 1px 0 #fff;
}
.poster-tool .tool-head::after {
  content: '图'; position: absolute; z-index: -1; right: 28px; top: -42px;
  color: rgba(138, 105, 157, .055); font: 800 145px/1 "STKaiti", "KaiTi", serif; transform: rotate(7deg);
}
.tool-head .back {
  width: 38px; height: 38px; flex: 0 0 38px; border-color: rgba(220, 199, 186, .8); border-radius: 13px;
  background: rgba(255, 255, 255, .72); box-shadow: 0 6px 16px rgba(76, 51, 37, .055);
}
.tool-head .skill-icon { background: linear-gradient(145deg, #fff0e7, #f0eaff); color: #a9533d; box-shadow: inset 0 0 0 1px rgba(220, 104, 75, .08); }
.tool-eyebrow { display: block; margin-bottom: 1px; color: #b15b43; font-size: 10.5px; font-weight: 800; letter-spacing: .11em; }
.tool-head h2 { color: #332922; font-size: 25px; }
.tool-head p { color: #83766d; }
.poster-layout { gap: 22px; align-items: start; }
.tool-panel {
  border: 1px solid rgba(226, 211, 201, .8); border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(255, 251, 247, .9));
  box-shadow: 0 18px 48px rgba(76, 51, 37, .075), inset 0 1px 0 #fff;
}
.tool-panel label { margin-top: 17px; color: #74665d; font-weight: 700; }
.tool-panel input,
.tool-panel textarea,
.tool-panel select {
  border-color: rgba(220, 205, 195, .88); border-radius: 14px;
  background: rgba(255, 255, 255, .76); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94);
}
.tool-panel input:focus,
.tool-panel textarea:focus,
.tool-panel select:focus {
  border-color: rgba(220, 104, 75, .56); background: #fff; box-shadow: var(--focus-ring);
}
.upload-control {
  border-color: rgba(220, 170, 145, .48); border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 248, 243, .92), rgba(249, 246, 255, .86));
}
.poster-result {
  top: 84px; min-height: 500px;
  background: linear-gradient(145deg, rgba(255, 252, 249, .96), rgba(249, 246, 255, .92));
}
.poster-result .empty-tip { color: #8c7e75; }
.inline-actions { border-top-color: rgba(230, 217, 208, .8); }
.poster-return-yiren,
.poster-config-tip,
.poster-status {
  border-color: rgba(222, 198, 184, .72); border-radius: 18px;
  background: linear-gradient(135deg, #fff6f0, #f8f4ff);
}

/* 管理后台：保持信息密度，但使用与首页相同的材质 */
.admin-mode .container { max-width: 1180px; padding-top: 30px; }
.admin-page-head {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 16px; padding: 26px 30px; border: 1px solid rgba(255, 255, 255, .94); border-radius: 28px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .92), rgba(255, 247, 241, .87) 55%, rgba(247, 242, 255, .9));
  box-shadow: 0 20px 58px rgba(84, 57, 41, .09), inset 0 1px 0 #fff;
}
.admin-page-head > div { display: grid; gap: 2px; }
.admin-page-head > div > span { color: #b25d45; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; }
.admin-page-head h2 { color: #302721; font-size: 31px; letter-spacing: -.6px; }
.admin-page-head p { color: #82756c; font-size: 13px; }
.admin-page-mark {
  width: 64px; height: 64px; flex: 0 0 64px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 23px; background: linear-gradient(145deg, #f49b75, #dc6544 58%, #9b78d3 135%); color: #fff;
  box-shadow: 0 12px 28px rgba(199, 90, 61, .2), inset 0 1px 0 rgba(255, 255, 255, .36); font-size: 27px; font-weight: 900;
}
.admin-tabs {
  width: fit-content; max-width: 100%; margin: 0 0 20px; padding: 7px;
  border: 1px solid rgba(225, 212, 203, .78); border-radius: 19px;
  background: rgba(255, 253, 250, .72); box-shadow: 0 10px 28px rgba(76, 51, 37, .06); backdrop-filter: blur(16px);
}
.admin-tabs button { min-height: 40px; border: 0; border-radius: 13px; background: transparent; padding-inline: 18px; }
.admin-tabs button:hover { border-color: transparent; background: #fff4ed; }
.admin-tabs button.active {
  background: linear-gradient(135deg, #d45f45, #e47b52 68%, #b06f9f 145%);
  box-shadow: 0 7px 17px rgba(190, 83, 57, .18);
}
.filter-bar {
  margin: 0 0 18px; padding: 15px; border: 1px solid rgba(226, 213, 204, .8); border-radius: 21px;
  background: rgba(255, 253, 250, .8); box-shadow: 0 10px 30px rgba(76, 51, 37, .055); backdrop-filter: blur(14px);
}
.filter-bar select,
.filter-bar input {
  min-height: 43px; border-color: rgba(220, 205, 195, .86); border-radius: 13px; background: rgba(255, 255, 255, .78);
}
.filter-bar select:focus,
.filter-bar input:focus { border-color: rgba(220, 104, 75, .55); box-shadow: var(--focus-ring); }
.stat-cards { gap: 16px; }
.stat-card {
  position: relative; overflow: hidden; min-height: 112px; padding: 22px 24px; border-color: rgba(255, 255, 255, .92); border-radius: 23px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 244, 237, .92));
  box-shadow: 0 15px 38px rgba(76, 51, 37, .075), inset 0 1px 0 #fff;
}
.stat-card:nth-child(3n + 2) { background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(246, 241, 255, .94)); }
.stat-card:nth-child(3n) { background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(239, 249, 245, .94)); }
.stat-card::after {
  content: ''; position: absolute; width: 92px; height: 92px; right: -34px; top: -38px; border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 110, 77, .13), transparent 68%);
}
.stat-card .num { color: #9c432e; font-size: 31px; }
.stat-card .label { color: #84766d; }
.admin-mode #admin-content > .admin-actions,
.admin-mode #admin-content > .admin-list-actions {
  margin: 0 0 20px; padding: 14px 16px; border: 1px solid rgba(225, 212, 203, .78); border-radius: 18px;
  background: rgba(255, 253, 250, .78); box-shadow: 0 10px 28px rgba(76, 51, 37, .05);
}
.section-title {
  display: flex; align-items: center; gap: 9px; color: #3c3029; font-size: 15.5px; letter-spacing: -.1px;
}
.section-title::before {
  content: ''; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%;
  background: linear-gradient(145deg, #e87957, #9c78ce); box-shadow: 0 0 0 5px rgba(220, 104, 75, .07);
}
.table-scroll {
  border-color: rgba(225, 212, 203, .78); border-radius: 21px;
  background: rgba(255, 253, 250, .88); box-shadow: 0 14px 36px rgba(76, 51, 37, .065);
}
.admin-table { background: rgba(255, 253, 250, .88); }
.admin-table th {
  background: linear-gradient(180deg, #fbf7f3, #f8f3ef); color: #76685f; font-size: 12px; letter-spacing: .02em;
}
.admin-table th,
.admin-table td { border-bottom-color: rgba(229, 217, 209, .78); }
.admin-table tr:hover td { background: rgba(255, 248, 243, .55); }
.admin-table .link-btn { color: #a34c36; }
.skill-status-table .skill-status-group-row td {
  padding: 10px 14px; border-top: 1px solid rgba(224, 211, 202, .9); border-bottom-color: rgba(224, 211, 202, .9);
  background: linear-gradient(90deg, rgba(252, 248, 245, .98), rgba(249, 246, 252, .96));
}
.skill-status-table .skill-status-group-row:first-of-type td { border-top: 0; }
.skill-status-table .skill-status-group-row:hover td { background: linear-gradient(90deg, rgba(252, 248, 245, .98), rgba(249, 246, 252, .96)); }
.skill-status-group-label { display: flex; align-items: center; gap: 8px; min-height: 25px; }
.skill-status-group-label i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #c16949; box-shadow: 0 0 0 4px rgba(193, 105, 73, .09); }
.skill-status-group-label b { color: #493a32; font-size: 12.5px; }
.skill-status-group-label span { padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: #8b7e76; font-size: 10.5px; }
.skill-status-group-label small { margin-left: auto; color: #9a8d85; font-size: 10.5px; font-weight: 400; }
.skill-status-group-row.internal .skill-status-group-label i { background: #7567c7; box-shadow: 0 0 0 4px rgba(117, 103, 199, .09); }
.skill-status-group-row.public-beta .skill-status-group-label i { background: #2f9872; box-shadow: 0 0 0 4px rgba(47, 152, 114, .09); }
.skill-status-group-row.available .skill-status-group-label i { background: #347aa5; box-shadow: 0 0 0 4px rgba(52, 122, 165, .09); }
.admin-inline-select {
  min-width: 102px; min-height: 34px; padding: 6px 28px 6px 9px;
  border: 1px solid rgba(216, 201, 192, .92); border-radius: 9px; outline: none;
  background-color: #fff; color: #554840; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.admin-inline-input {
  width: 112px; min-width: 96px; min-height: 34px; padding: 6px 9px;
  border: 1px solid rgba(216, 201, 192, .92); border-radius: 9px; outline: none;
  background: #fff; color: #554840; font-size: 12px; font-weight: 700;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.admin-inline-input:hover { border-color: rgba(190, 142, 117, .72); }
.admin-inline-input:focus { border-color: rgba(214, 100, 71, .6); box-shadow: 0 0 0 3px rgba(214, 100, 71, .1); }
.admin-inline-input:disabled { opacity: .58; cursor: wait; }
.audience-select { min-width: 112px; }
.admin-inline-select:hover { border-color: rgba(190, 142, 117, .72); }
.admin-inline-select:focus { border-color: rgba(214, 100, 71, .6); box-shadow: 0 0 0 3px rgba(214, 100, 71, .1); }
.admin-inline-select:disabled { opacity: .58; cursor: wait; }
.admin-inline-select.developing { border-color: #eed5c8; background-color: #fff7f1; color: #9a4c2d; }
.admin-inline-select.internal { border-color: #dcd7f2; background-color: #f6f4ff; color: #6556b3; }
.admin-inline-select.public-beta { border-color: #cde7dc; background-color: #f1fbf6; color: #197555; }
.admin-inline-select.available { border-color: #cfe0eb; background-color: #f2f8fc; color: #276d96; }
.visibility-select.is-live { border-color: #cfe5d9; background-color: #f3faf6; color: #237452; }
.visibility-select.is-hidden { border-color: #e2d8d2; background-color: #f8f5f3; color: #6e6058; }
.skill-status-table tr.is-saving td { opacity: .68; }
.skill-order-panel,
.knowledge-vector-panel,
.version-item {
  border-color: rgba(225, 212, 203, .8); border-radius: 21px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 250, 246, .88));
  box-shadow: 0 12px 32px rgba(76, 51, 37, .055);
}
.skill-order-group { border-color: rgba(225, 212, 203, .82); border-radius: 15px; background: rgba(250, 246, 243, .82); }
.skill-order-heading { background: rgba(255, 255, 255, .84); }
.skill-order-row { border-top-color: rgba(229, 217, 209, .78); }
.knowledge-alert { border-color: rgba(239, 169, 76, .45); border-radius: 17px; background: linear-gradient(135deg, #fff9e9, #fff3ea); }
.knowledge-ok { border-color: rgba(100, 174, 139, .36); border-radius: 17px; background: linear-gradient(135deg, #f1fbf6, #f7fffb); }

/* 弹窗、反馈、编辑器 */
.modal-mask {
  background: rgba(46, 36, 31, .32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.modal {
  overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable;
  border: 1px solid rgba(255, 255, 255, .92); border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 249, 245, .97) 62%, rgba(249, 246, 255, .97));
  box-shadow: 0 30px 90px rgba(48, 34, 27, .22), inset 0 1px 0 #fff;
}
.modal::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, #e16d50, #efa071 56%, #9b79ce);
}
.modal h3 { color: #352a24; font-size: 19px; letter-spacing: -.2px; }
.modal label { color: #76685f; font-weight: 650; }
.modal input,
.modal textarea,
.modal select,
.compare-vote input,
.compare-vote select {
  border-color: rgba(220, 205, 195, .86); border-radius: 13px; background: rgba(255, 255, 255, .8);
}
.modal input:focus,
.modal textarea:focus,
.modal select:focus { border-color: rgba(220, 104, 75, .55); background: #fff; box-shadow: var(--focus-ring); }
.modal-close { border-color: rgba(220, 205, 195, .76); border-radius: 11px; background: rgba(255, 255, 255, .68); }
.modal .modal-btns {
  border-top: 1px solid rgba(230, 218, 210, .76); background: rgba(255, 252, 249, .76); backdrop-filter: blur(12px);
}
.modal.user-editor-modal { overscroll-behavior: contain; }
.modal .user-editor-actions { align-items: center; justify-content: space-between; }
.user-editor-feedback { flex: 1 1 auto; min-width: 0; }
.modal .user-editor-feedback .err { min-height: 0; margin: 0; line-height: 1.45; }
.user-editor-action-buttons { display: flex; flex: 0 0 auto; gap: 10px; }
.modal.user-editor-modal [aria-invalid="true"] {
  border-color: #dc6653; background: #fff8f5; box-shadow: 0 0 0 3px rgba(220, 102, 83, .12);
}
.session-dialog { width: min(470px, 94vw); }
.session-dialog-kicker { display: block; margin-bottom: 5px; color: #a7614b; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.session-dialog h3 { margin-bottom: 7px; font-size: 20px; line-height: 1.4; }
.session-dialog > p { color: #887a72; font-size: 12px; line-height: 1.65; }
.session-dialog .modal-btns button { min-width: 96px; min-height: 40px; border-radius: 10px; }
.session-dialog .danger-confirm { border: 0; background: #b94f3a; color: #fff; font-weight: 800; box-shadow: 0 7px 18px rgba(143, 52, 34, .16); }
.session-dialog .danger-confirm:hover { background: #a84230; }
.session-dialog .danger-confirm:disabled { opacity: .56; cursor: wait; }
.danger-dialog::before { background: linear-gradient(90deg, #b94f3a, #e18a68); }

/* 功能编辑器：固定头尾、分区编辑，内容区独立滚动 */
.modal-mask.skill-editor-mask { align-items: center; padding: 20px; overflow: hidden; }
.modal.skill-editor-modal {
  width: min(820px, calc(100vw - 40px));
  height: min(900px, calc(100dvh - 40px));
  max-width: 820px; max-height: calc(100dvh - 40px);
  padding: 0; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: #f8f6f3;
}
.skill-editor-modal .modal-close {
  position: absolute; top: 22px; right: 24px; z-index: 5; float: none;
  width: 42px; height: 42px; margin: 0; border-radius: 13px;
  background: rgba(255, 255, 255, .88); box-shadow: 0 5px 16px rgba(67, 47, 36, .07);
}
.skill-editor-head {
  flex: 0 0 auto; padding: 27px 82px 21px 30px;
  border-bottom: 1px solid rgba(226, 215, 207, .82);
  background:
    radial-gradient(circle at 88% 0, rgba(160, 128, 211, .1), transparent 170px),
    linear-gradient(135deg, #fff, #fffaf7);
}
.skill-editor-eyebrow {
  display: block; margin-bottom: 5px; color: #b1573e;
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
}
.modal .skill-editor-head h3 {
  margin: 0; padding: 0; color: #2f2723; font-size: 21px; line-height: 1.4; letter-spacing: -.35px;
}
.skill-editor-head p { margin-top: 5px; color: #8a7d74; font-size: 12.5px; line-height: 1.6; }
.skill-editor-body {
  flex: 1 1 auto; min-height: 0; padding: 20px 28px 28px; overflow-y: auto;
  overscroll-behavior: contain; scrollbar-gutter: stable;
}
.skill-editor-body::-webkit-scrollbar { width: 9px; }
.skill-editor-body::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #cfc2b9; background-clip: padding-box; }
.skill-editor-section {
  margin-bottom: 14px; padding: 20px;
  border: 1px solid rgba(225, 214, 207, .86); border-radius: 18px;
  background: rgba(255, 255, 255, .88); box-shadow: 0 8px 24px rgba(72, 52, 41, .035);
}
.skill-editor-section:last-child { margin-bottom: 0; }
.skill-editor-section-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 17px; }
.skill-editor-section-head > span {
  width: 28px; height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; background: #fff0e9; color: #b9563d; font-size: 10px; font-weight: 850;
}
.skill-editor-section-head h4 { color: #3c312b; font-size: 14px; line-height: 1.4; }
.skill-editor-section-head p { margin-top: 2px; color: #9a8e86; font-size: 11.5px; line-height: 1.5; }
.skill-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; }
.skill-editor-grid.basic-grid { grid-template-columns: minmax(0, 1.35fr) minmax(180px, .65fr); }
.skill-editor-field { min-width: 0; }
.modal .skill-editor-field label,
.modal label.skill-visibility-toggle { margin: 0 0 7px; }
.modal .skill-editor-field input,
.modal .skill-editor-field select,
.modal .skill-editor-field textarea {
  min-height: 44px; padding: 10px 12px; border-width: 1px; border-radius: 11px;
  background: #fff; font-size: 13.5px; line-height: 1.55;
}
.modal .skill-editor-field textarea { resize: vertical; }
.skill-editor-field > small,
.field-help { display: block; margin: 6px 2px 0; color: #998b82; font-size: 10.5px; line-height: 1.5; }
.status-field > small { min-height: 31px; color: #8a6b5c; }
.skill-visibility-toggle {
  position: relative; display: flex !important; align-items: center; justify-content: space-between; gap: 18px;
  margin: 16px 0 0 !important; padding: 13px 14px !important;
  border: 1px solid #e8ddd6; border-radius: 13px; background: #fbf9f7; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.skill-visibility-toggle:hover { border-color: #d9c6ba; background: #fff; }
.visibility-copy { display: grid; min-width: 0; gap: 2px; }
.visibility-copy b { color: #4b3d36; font-size: 12.5px; }
.visibility-copy small { color: #94877f; font-size: 10.5px; line-height: 1.45; }
.modal .visibility-control {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0;
  overflow: hidden; opacity: 0; pointer-events: none;
}
.visibility-switch {
  position: relative; width: 44px; height: 24px; flex: 0 0 auto;
  border-radius: 999px; background: #d9d1cb; box-shadow: inset 0 0 0 1px rgba(75, 57, 47, .06);
  transition: background .18s ease;
}
.visibility-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(57, 42, 34, .2);
  transition: transform .18s ease;
}
.visibility-control:checked + .visibility-switch { background: #d85f49; }
.visibility-control:checked + .visibility-switch::after { transform: translateX(20px); }
.visibility-control:focus-visible + .visibility-switch { box-shadow: 0 0 0 4px rgba(216, 95, 73, .14); }
.content-section .full-field + .skill-editor-grid,
.content-section .skill-editor-grid + .full-field,
.content-section .full-field + .full-field { margin-top: 16px; }
.skill-editor-label-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal .skill-editor-label-line label { margin-bottom: 7px; }
.skill-editor-label-line span { color: #a2948b; font-size: 10.5px; }
.copy-grid textarea { min-height: 112px; }
.full-field textarea { min-height: 82px; }
.full-field #skill-opening { min-height: 150px; margin-top: 7px; }
.modal.skill-editor-modal .skill-editor-actions {
  position: static; bottom: auto; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 0; padding: 13px 28px 15px; border-top: 1px solid rgba(226, 215, 207, .9);
  background: rgba(255, 255, 255, .94); box-shadow: 0 -8px 24px rgba(70, 50, 39, .045);
}
.skill-editor-feedback { min-width: 0; }
.skill-editor-feedback > span { color: #978a82; font-size: 10.5px; }
.modal .skill-editor-feedback .err { min-height: 0; margin: 1px 0 0; font-size: 11.5px; }
.modal .skill-editor-feedback .err:empty { display: none; }
.skill-editor-action-buttons { display: flex; flex: 0 0 auto; gap: 9px; }
.skill-editor-action-buttons button { min-width: 94px; min-height: 42px; border-radius: 11px; }
.fb-detail-body,
.compare-output { border-color: rgba(225, 212, 203, .8); border-radius: 16px; background: linear-gradient(135deg, #faf7f4, #f8f5fc); }

@media (max-width: 1200px) {
  #skill-order-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  #skill-order-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .poster-layout { grid-template-columns: minmax(0, 1fr); }
  .poster-result { position: static; min-height: 220px; }
  .poster-preview-stage { max-height: none; padding: 7px; }
  .poster-variant-head { align-items: stretch; flex-direction: column; }
  .poster-variant-tabs { align-self: flex-start; max-width: 100%; overflow-x: auto; }
  .recent-task-grid { grid-template-columns: minmax(0, 1fr); }
  .chat-page { grid-template-columns: 248px minmax(0, 1fr); }
  .chat-sidebar { padding-inline: 10px; }
  .chat-brand { font-size: 15px; }
  .chat-skill-panel { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 640px) {
  body { background: var(--bg); }
  input, textarea, select { font-size: 16px; }

  .container { padding: 24px 14px 44px; }
  .home-container { padding-top: 16px; }
  .home-container::before { right: 0; }
  .home-container::after { left: 0; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .logo-wordmark, .topbar .user-info { display: none; }
  .topbar .logo .dot { width: 34px; height: 34px; }
  .topbar-actions { gap: 6px; }
  .topbar button:not(.logo) { min-height: 40px; padding: 0 11px; font-size: 12px; }

  .login-wrap { padding: 18px; align-items: center; }
  .login-card { width: 100%; padding: 32px 24px; border-radius: 20px; }
  .login-card h1 { font-size: 22px; }
  .login-card .sub { margin-bottom: 22px; }
  .login-card input { font-size: 16px; min-height: 46px; }

  .plaza-head h2 { font-size: 25px; }
  .search-box { max-width: none; margin-top: 16px; font-size: 16px; }
  .yiren-hero { padding: 18px 16px 17px; border-radius: 22px; }
  .yiren-hero::after { right: -20px; top: -30px; font-size: 180px; }
  .yiren-hero-top { gap: 10px; }
  .yiren-identity { gap: 10px; }
  .yiren-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 19px; }
  .yiren-name b { font-size: 15px; }
  .yiren-name em { font-size: 10.5px; }
  .yiren-hero-actions { gap: 6px; }
  .yiren-enter { min-height: 36px; padding: 6px 9px; font-size: 11px; }
  .yiren-copy { margin: 17px 0 14px; }
  .yiren-greeting { margin-bottom: 5px; }
  .yiren-copy h1 { font-size: 27px; letter-spacing: -.7px; }
  .yiren-copy p {
    display: -webkit-box; margin-top: 8px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    font-size: 12px; line-height: 1.65;
  }
  .yiren-ask { padding: 12px 11px 10px; }
  .yiren-ask textarea { min-height: 62px; font-size: 16px; resize: none; }
  .yiren-ask-bar { align-items: stretch; flex-direction: column; gap: 9px; }
  .yiren-ask-bar > span { display: none; }
  .yiren-ask-bar > .yiren-ask-meta.has-saved-draft { display: block; text-align: center; }
  .yiren-ask-meta.has-saved-draft .yiren-ask-hint { display: none; }
  .yiren-ask-meta.has-saved-draft .yiren-draft-status { color: #668f7c; }
  .yiren-ask #yiren-start { width: 100%; min-height: 46px; }
  .yiren-prompts { flex-wrap: nowrap; margin: 12px -2px 0; padding: 0 2px 3px; overflow-x: auto; scrollbar-width: none; }
  .yiren-prompts::-webkit-scrollbar { display: none; }
  .yiren-prompts > span { display: none; }
  .yiren-prompts button { flex: 0 0 auto; min-height: 38px; white-space: nowrap; }
  .yiren-path { display: none; }
  .yiren-path.is-onboarding {
    display: flex; margin-top: 12px; padding: 11px 1px 3px; gap: 7px; overflow-x: auto; border-top-color: rgba(188, 159, 143, .15); scrollbar-width: none;
  }
  .yiren-path.is-onboarding::-webkit-scrollbar { display: none; }
  .yiren-path.is-onboarding > small { flex: 0 0 auto; position: sticky; left: 0; z-index: 1; padding: 4px 8px 4px 2px; background: rgba(255, 251, 248, .88); }
  .yiren-onboarding-step { flex: 0 0 auto; min-height: 36px; }
  .yiren-path.is-onboarding > em { flex: 0 0 17px; }
  .home-section { margin-top: 30px; }
  .home-section-head { align-items: center; }
  .current-task-main { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
  .current-task-copy { width: calc(100% - 54px); }
  .current-task-open { width: 100%; min-height: 46px; }
  .current-task-progress { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 16px; }
  .current-task-progress p { white-space: normal; }
  .current-task-progress small { margin-left: 14px; }
  .recent-task-grid, .quick-skill-grid { grid-template-columns: minmax(0, 1fr); }
  .recent-task-grid.compact { grid-template-columns: minmax(0, 1fr); }
  .all-skills-panel { margin-top: 34px; padding-top: 26px; }
  .all-skills-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .all-skills-head .search-box { max-width: none; margin: 0; }
  .dept-title { margin-top: 28px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .skill-card { min-height: 112px; padding: 16px 17px 15px; }

  .tool-head { align-items: flex-start; }
  .tool-head h2 { font-size: 20px; }
  .tool-head p { line-height: 1.55; }
  .tool-panel { padding: 18px; }
  .poster-handoff-status { margin-bottom: 14px; }
  .handoff-context { margin-left: 0; }
  .poster-layout { gap: 14px; }
  .poster-result { scroll-margin-top: 70px; }
  .poster-tool .inline-actions { position: static; margin-inline: 0; padding: 14px 0 max(12px, env(safe-area-inset-bottom)); background: transparent; }

  .chat-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
  .chat-sidebar {
    flex: 0 0 auto;
    max-height: 43vh;
    max-height: 43dvh;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 9px 10px;
    gap: 5px;
  }
  .chat-brand { padding: 2px 4px; font-size: 14px; }
  .chat-brand .dot { width: 28px; height: 28px; border-radius: 9px; }
  .chat-skill-panel { grid-template-columns: 28px minmax(0, 1fr); padding: 3px 8px; }
  .chat-title-copy { flex: 1; }
  .chat-title-copy .title { font-size: 14px; }
  .chat-title-copy .desc { display: none; }
  .chat-tools { padding-block: 1px 4px; }
  .chat-new.btn-ghost { min-height: 36px; padding-inline: 10px; }
  .chat-session-panel { flex: none; max-height: 92px; }
  .sidebar-label { padding-inline: 4px; }
  .chat-session-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(158px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
  }
  .chat-session-item { min-height: 52px; }
  .session-more-trigger { opacity: 1; pointer-events: auto; }
  .chat-sidebar-footer {
    display: block;
    padding-top: 8px;
  }
  .sidebar-user { padding-block: 6px; }
  .chat-main { flex: 1; min-height: 0; }
  .yiren-task-status-wrap, .handoff-status-wrap { padding: 8px 12px 0; }
  .yiren-task-status-head { padding: 8px 10px; }
  .yiren-task-focus { padding: 9px 10px 6px; }
  .yiren-task-status-foot { align-items: stretch; flex-direction: column; gap: 7px; padding: 7px 10px 9px; }
  .yiren-task-status-foot button { width: 100%; min-height: 40px; }
  .handoff-status { align-items: flex-start; flex-wrap: wrap; padding: 10px; }
  .handoff-status > div { width: calc(100% - 36px); }
  .handoff-status button { width: 100%; min-height: 40px; }
  .positioning-status-wrap { padding: 8px 12px 0; }
  .chat-body > .yiren-task-status-wrap,
  .chat-body > .handoff-status-wrap,
  .chat-body > .positioning-status-wrap { padding: 0 12px 14px; }
  .positioning-status { padding: 10px 12px; border-radius: 12px; }
  .positioning-section-list { max-height: 36px; overflow: hidden; }
  .chat-body { padding: 18px 0; }
  .chat-inner { padding: 0 12px; }
  .msg { gap: 8px; margin-bottom: 16px; }
  .msg .avatar { width: 30px; height: 30px; }
  .msg .bubble { max-width: 92%; padding: 12px 14px; }
  .msg.assistant .bubble { max-width: none; }
  .quick-replies { grid-template-columns: minmax(0, 1fr); }
  .quick-replies.positioning-mode-choices { grid-template-columns: minmax(0, 1fr); }
  .positioning-mode-choices .quick-reply-option { min-height: 76px; }
  .quick-reply-option { min-height: 46px; }
  .quick-reply-other-editor { grid-template-columns: minmax(0, 1fr) auto; }
  .skill-jump { align-items: stretch; flex-direction: column; gap: 8px; }
  .skill-jump-button { width: 100%; min-height: 46px; }
  .return-yiren-panel { align-items: flex-start; flex-wrap: wrap; }
  .return-yiren-panel > span:nth-child(2) { width: calc(100% - 38px); }
  .return-yiren-panel button { width: 100%; min-height: 44px; }
  .msg .bubble .actions button { min-height: 40px; }
  .chat-input-wrap { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .composer { border-radius: 16px; padding: 8px 10px 7px; }
  .composer textarea { min-height: 48px; font-size: 16px; }
  .composer-bar { gap: 8px; }
  .composer-bar .input-tip { display: none; }
  .model-select { flex: 1; max-width: none; min-height: 40px; font-size: 16px; }
  .btn-send { min-width: 76px; min-height: 44px; padding-inline: 16px; }
  .btn-pause { min-width: 70px; min-height: 44px; padding-inline: 14px; }

  .all-skills-panel { padding: 22px 15px 26px; border-radius: 18px; }
  .all-skills-panel .card-grid { grid-template-columns: minmax(0, 1fr); }
  .all-skills-panel .skill-card { min-height: 116px; padding: 16px 16px 15px 18px; border-radius: 14px; }
  .all-skills-panel .skill-icon { width: 34px; height: 34px; border-radius: 9px; }

  .poster-tool { padding-top: 20px; }
  .tool-panel { padding: 19px; border-radius: 22px; }
  .upload-control { border-radius: 16px; }

  .chat-sidebar { border-bottom-color: rgba(222, 211, 203, .82); }
  .chat-skill-panel { padding: 8px 9px; border-radius: 15px; }
  .chat-new.btn-ghost { border-radius: 12px; }
  .chat-session-row, .chat-session-item { border-radius: 12px; }
  .chat-body { background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 28%); }
  .msg .bubble { border-radius: 18px; }
  .msg.user .bubble { border-radius: 18px 18px 5px 18px; }
  .msg.assistant .bubble { border-radius: 5px 18px 18px 18px; }
  .chat-input-wrap { background: linear-gradient(180deg, rgba(248,244,240,0), rgba(248,244,240,.96) 26%); }
  .composer { border-radius: 20px; padding: 10px 11px 8px; }
  .composer textarea { min-height: 54px; }
  .btn-send, .btn-pause { border-radius: 13px; }

  .modal-mask { padding: 10px; }
  .modal { max-width: 100%; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding: 22px 18px 18px; border-radius: 16px; }
  .modal .modal-btns { margin: 18px -18px -18px; padding: 10px 18px max(14px, env(safe-area-inset-bottom)); bottom: -18px; flex-wrap: wrap; }
  .modal .modal-btns > button { flex: 1 1 auto; min-height: 44px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .modal-mask.skill-editor-mask { align-items: stretch; padding: 0; }
  .modal.skill-editor-modal {
    width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: 100vh; max-height: 100dvh;
    border: 0; border-radius: 0;
  }
  .skill-editor-modal .modal-close { top: 16px; right: 15px; width: 40px; height: 40px; }
  .skill-editor-head { padding: 20px 66px 16px 18px; }
  .modal .skill-editor-head h3 { font-size: 18px; }
  .skill-editor-head p { font-size: 11.5px; }
  .skill-editor-body { padding: 14px 13px 22px; scrollbar-gutter: auto; }
  .skill-editor-section { padding: 16px 14px; border-radius: 15px; }
  .skill-editor-section-head { margin-bottom: 15px; }
  .skill-editor-grid,
  .skill-editor-grid.basic-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .copy-grid textarea { min-height: 96px; }
  .full-field #skill-opening { min-height: 132px; }
  .modal.skill-editor-modal .skill-editor-actions {
    margin: 0; padding: 10px 13px max(12px, env(safe-area-inset-bottom)); flex-wrap: nowrap;
  }
  .skill-editor-feedback { display: none; }
  .skill-editor-action-buttons { width: 100%; }
  .skill-editor-action-buttons button { flex: 1; min-height: 46px; }

  .admin-tabs { margin: 10px -14px 20px; padding: 0 14px 4px; }
  .admin-tabs button { min-height: 42px; padding-inline: 18px; }
  .filter-bar { gap: 8px; }
  .filter-bar input { min-width: 0; flex: 1 1 100%; }
  .filter-bar select { min-width: 0; flex: 1 1 calc(50% - 4px); }
  .filter-bar button { flex: 1 1 calc(50% - 4px); min-height: 44px; }
  #skill-order-list { grid-template-columns: minmax(0, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card .num { font-size: 24px; }
  .admin-actions { align-items: flex-start; flex-direction: column; }
  .table-scroll { margin-inline: 0; }
  .admin-table th, .admin-table td { padding: 10px 12px; }

  .admin-page-head { align-items: flex-start; padding: 20px; border-radius: 22px; }
  .admin-page-head h2 { font-size: 26px; }
  .admin-page-head p { max-width: 240px; line-height: 1.55; }
  .admin-page-mark { width: 48px; height: 48px; flex-basis: 48px; border-radius: 17px; font-size: 21px; }
  .admin-tabs {
    width: auto; margin: 0 -14px 18px; padding: 7px 14px 8px; border: 0; border-radius: 0;
    background: transparent; box-shadow: none;
  }
  .admin-tabs button { min-height: 40px; padding-inline: 15px; background: rgba(255, 255, 255, .66); }
  .filter-bar { padding: 12px; border-radius: 18px; }
  .admin-mode #admin-content > .admin-actions,
  .admin-mode #admin-content > .admin-list-actions { align-items: stretch; padding: 12px; border-radius: 17px; }
  .table-scroll { border-radius: 17px; }

  .poster-tool .tool-head { padding: 18px; border-radius: 22px; }
  .poster-tool .tool-head::after { right: -8px; top: -12px; font-size: 94px; }
  .poster-result { min-height: 260px; }
}

/* ---------- 任务优先体验 ---------- */
.home-container.has-current-task { padding-top: 24px; }
.has-current-task .yiren-hero {
  padding: 22px 26px 24px; display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(460px, 1.22fr);
  grid-template-areas: "top top" "copy ask"; column-gap: 42px; row-gap: 16px;
  border-radius: 24px;
  background: linear-gradient(118deg, rgba(255, 253, 250, .96), rgba(255, 248, 243, .86) 56%, rgba(249, 246, 255, .9));
  box-shadow: 0 15px 42px rgba(94, 66, 49, .075), inset 0 1px 0 rgba(255, 255, 255, .96);
}
.has-current-task .yiren-hero::after { right: 34px; top: -56px; font-size: 150px; color: rgba(125, 83, 69, .032); }
.has-current-task .yiren-hero-glow { opacity: .54; }
.has-current-task .yiren-hero-top { grid-area: top; }
.has-current-task .yiren-mark { width: 44px; height: 44px; border-radius: 15px; font-size: 21px; }
.has-current-task .yiren-copy { grid-area: copy; align-self: center; max-width: 440px; margin: 5px 0 0; }
.has-current-task .yiren-copy h1 { font-size: clamp(25px, 2.6vw, 31px); line-height: 1.24; letter-spacing: -.65px; }
.has-current-task .yiren-copy p { max-width: 380px; margin-top: 9px; font-size: 13px; line-height: 1.7; }
.has-current-task .yiren-greeting { margin-bottom: 6px; font-size: 11.5px; letter-spacing: .035em; }
.has-current-task .yiren-ask {
  grid-area: ask; align-self: stretch; max-width: 100%; padding: 13px 15px 11px; border-radius: 18px;
  box-shadow: 0 10px 28px rgba(87, 61, 44, .075), inset 0 1px 0 #fff;
}
.has-current-task .yiren-ask-head { margin-bottom: 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.has-current-task .yiren-ask-head strong { color: #55463e; font-size: 12px; }
.has-current-task .yiren-ask-head span { color: #9a8e86; font-size: 10.5px; }
.has-current-task .yiren-ask textarea { min-height: 46px; padding: 2px 2px 7px; resize: none; font-size: 14px; }
.has-current-task .yiren-ask-bar { padding-top: 8px; }
.has-current-task .yiren-ask #yiren-start { min-height: 39px; padding-block: 7px; }
.has-current-task .yiren-prompts,
.has-current-task .yiren-path { display: none; }
.has-current-task .current-task-section { margin-top: 20px; }

/* ---------- 状态反馈与长内容导航 ---------- */
.home-loading {
  margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.loading-line, .loading-card {
  overflow: hidden; position: relative; border-radius: 12px; background: rgba(226, 216, 208, .45);
}
.loading-line::after, .loading-card::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.76), transparent); animation: loading-shimmer 1.45s ease-in-out infinite;
}
.loading-line { grid-column: 1 / -1; width: 96px; height: 11px; }
.loading-line.title { width: 180px; height: 22px; }
.loading-card { min-height: 122px; border: 1px solid rgba(229, 217, 208, .5); background: rgba(255, 255, 255, .54); }
.state-card {
  margin-top: 24px; padding: 18px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 13px;
  border: 1px solid rgba(225, 211, 202, .82); border-radius: 18px; background: rgba(255, 253, 250, .86); box-shadow: var(--shadow-sm);
}
.state-card-mark { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff0e9; color: #b35138; font-weight: 900; }
.state-card > div { min-width: 0; display: grid; gap: 3px; }
.state-card b { color: #493b34; font-size: 14px; }
.state-card p { color: #8a7c74; font-size: 11.5px; }
.state-card button { min-height: 38px; padding: 7px 12px; border: 1px solid rgba(216, 95, 73, .28); border-radius: 10px; background: #fff5ef; color: #9f4c35; font-weight: 750; }
.state-card > .state-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.route-loading {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px;
  background: linear-gradient(145deg, #fffaf6, #faf6ff); color: #54463e;
}
.route-loading > span { width: 32px; height: 32px; margin-bottom: 5px; border: 3px solid rgba(216, 95, 73, .14); border-top-color: #d85f49; border-radius: 50%; animation: route-spin .8s linear infinite; }
.route-loading b { font-size: 14px; }
.route-loading small { color: #92847c; font-size: 11px; }
.route-state { min-height: 100vh; min-height: 100dvh; padding: 24px; display: grid; place-items: center; background: linear-gradient(145deg, #fffaf6, #faf6ff); }
.route-state .state-card { width: min(620px, 100%); margin: 0; }
.chat-jump-latest {
  position: absolute; left: 50%; bottom: 162px; z-index: 8; min-height: 38px; padding: 7px 13px;
  border: 1px solid rgba(216, 198, 187, .88); border-radius: 999px; background: rgba(255, 253, 250, .96); color: #705f55;
  font-size: 11.5px; font-weight: 750; box-shadow: 0 9px 24px rgba(67, 47, 35, .13); transform: translateX(-50%); backdrop-filter: blur(12px);
}
.chat-jump-latest:hover { border-color: rgba(216, 95, 73, .4); color: #9f4d35; }
.chat-jump-latest i { margin-left: 5px; color: #c16449; font-style: normal; }
.chat-jump-latest[hidden] { display: none; }
.app-toast-region {
  position: fixed; z-index: 120; top: 22px; right: 22px; width: min(330px, calc(100vw - 32px)); display: grid; gap: 8px; pointer-events: none;
}
.app-toast {
  padding: 11px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(213, 198, 188, .84); border-radius: 13px;
  background: rgba(255, 253, 250, .96); color: #54473f; font-size: 12px; box-shadow: 0 14px 34px rgba(64, 44, 32, .14);
  opacity: 0; transform: translateY(-7px); transition: opacity .2s ease, transform .2s ease; backdrop-filter: blur(14px);
}
.app-toast.show { opacity: 1; transform: translateY(0); }
.app-toast i { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; background: #eaf6f1; color: #4f8b73; font-style: normal; font-weight: 900; }
.app-toast.error i { background: #fff0e9; color: #b35138; }
@keyframes loading-shimmer { to { transform: translateX(100%); } }
@keyframes route-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .has-current-task .yiren-hero {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "copy" "ask"; gap: 13px;
  }
  .has-current-task .yiren-copy { max-width: none; margin-top: 3px; }
  .has-current-task .yiren-copy p { max-width: none; }
}
.chat-mobile-bar,
.chat-mobile-scrim { display: none; }

/* 弈人交接：只呈现任务结论，完整上下文按需展开。 */
.handoff-status-wrap { padding-top: 12px; }
.handoff-status {
  max-width: 930px; padding: 14px 16px; display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 4px 13px;
  border-radius: 18px;
}
.handoff-status .handoff-mark { width: 32px; height: 32px; border-radius: 10px; }
.handoff-status > .handoff-copy { width: auto; display: grid; gap: 2px; line-height: 1.45; }
.handoff-copy small { color: #a16b56; font-size: 9.5px; font-weight: 850; letter-spacing: .08em; }
.handoff-copy b { color: #3f332d; font-size: 14px; }
.handoff-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #82766e; font-size: 11px; }
.handoff-status #handoff-back,
.handoff-status #topic-handoff-back { min-height: 38px; padding-inline: 13px; border-radius: 10px; }
.topic-return-status-wrap { padding-top: 12px; }
.topic-return-status {
  border-color: rgba(166, 135, 204, .4);
  background: linear-gradient(135deg, rgba(250, 247, 255, .98), rgba(255, 249, 244, .98));
}
.topic-return-status .handoff-mark { background: linear-gradient(135deg, #9a74cc, #d66c54); }
.topic-return-status #topic-handoff-back { border-color: rgba(153, 112, 199, .45); color: #74519e; }
.topic-return-status #topic-handoff-back:hover { border-color: #946ac0; background: #f5edff; }
.handoff-status > .handoff-context {
  grid-column: 2 / -1; width: 100%; margin: 5px 0 0; padding-top: 8px;
  border-top: 1px solid rgba(229, 216, 207, .78); color: #81756d;
}
.handoff-status .handoff-context summary {
  width: max-content; display: inline-flex; align-items: center; gap: 6px; list-style: none;
  color: #a0553f; font-size: 10.5px; font-weight: 750;
}
.handoff-status .handoff-context summary::-webkit-details-marker { display: none; }
.handoff-status .handoff-context summary::before { content: '＋'; font-size: 12px; }
.handoff-status .handoff-context[open] summary::before { content: '−'; }
.handoff-status .handoff-context p {
  max-height: 170px; margin: 9px 0 1px; padding: 11px 12px; overflow: auto;
  border: 1px solid rgba(228, 216, 207, .78); border-radius: 11px; background: rgba(255, 255, 255, .66);
  color: #6f645d; font-size: 11px; line-height: 1.7; white-space: pre-wrap;
}

/* 专业功能：让用户先知道需要提供什么，再开始输入。 */
.skill-start-card {
  width: min(100%, 850px); margin: 0 auto 24px; padding: 25px 26px 23px;
  border: 1px solid rgba(222, 205, 194, .84); border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 253, 250, .97), rgba(255, 247, 242, .94) 58%, rgba(247, 244, 255, .91));
  box-shadow: 0 16px 42px rgba(78, 53, 38, .075), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.skill-start-head { display: flex; align-items: flex-start; gap: 14px; }
.skill-start-mark {
  width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(223, 208, 198, .72); border-radius: 13px; background: rgba(255, 255, 255, .82);
  font-size: 18px; filter: saturate(.75); box-shadow: 0 6px 16px rgba(80, 55, 40, .055);
}
.skill-start-head > div { display: grid; gap: 3px; }
.skill-start-head span { color: #a36a55; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.skill-start-head h2 { max-width: 680px; color: #382e28; font-size: 21px; line-height: 1.45; }
.skill-start-card > p { max-width: 690px; margin: 13px 0 19px 56px; color: #786c64; font-size: 13px; line-height: 1.7; }
.skill-start-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.skill-start-fields > div {
  min-width: 0; padding: 13px 14px; display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid rgba(225, 211, 201, .76); border-radius: 14px; background: rgba(255, 255, 255, .64);
}
.skill-start-fields i {
  width: 23px; height: 23px; flex: 0 0 23px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #f8e9e0; color: #b2573d; font-size: 10px; font-style: normal; font-weight: 850;
}
.skill-start-fields span { display: grid; gap: 3px; min-width: 0; }
.skill-start-fields b { color: #443832; font-size: 12.5px; }
.skill-start-fields small { color: #91857d; font-size: 11px; line-height: 1.5; }
.skill-start-question {
  margin-top: 14px; padding: 14px 16px; display: grid; gap: 5px;
  border: 1px solid rgba(216, 155, 130, .46); border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 244, 237, .9), rgba(255, 255, 255, .72));
}
.skill-start-question span { color: #8f432f; font-size: 14px; font-weight: 850; }
.skill-start-question small { color: #7e6e65; font-size: 12px; line-height: 1.6; }
.skill-start-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.skill-start-actions button {
  min-height: 39px; padding: 8px 14px; border: 1px solid rgba(218, 200, 188, .82); border-radius: 11px;
  background: rgba(255, 255, 255, .75); color: #75675f; font-size: 12px; font-weight: 750;
}
.skill-start-actions .start-template { border: 0; background: linear-gradient(135deg, #d45f45, #e17c56); color: #fff; box-shadow: 0 6px 16px rgba(190, 83, 57, .17); }
.skill-start-actions .start-attachment::before { content: '＋'; margin-right: 4px; }
.skill-start-actions button:hover { transform: translateY(-1px); }

/* 把完整产出从普通消息提升为可继续使用的成果。 */
.msg.assistant .bubble.artifact-bubble { padding: 8px; background: rgba(255, 255, 255, .74); }
.result-artifact { overflow: hidden; border: 1px solid rgba(219, 196, 181, .84); border-radius: 17px; background: #fff; box-shadow: 0 10px 26px rgba(78, 53, 38, .055); }
.result-artifact-head {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px;
  padding: 14px 15px; border-bottom: 1px solid rgba(232, 220, 211, .8);
  background: linear-gradient(135deg, #fff6f0, #fbf7ff);
}
.result-artifact-mark {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; background: linear-gradient(145deg, #ed9a75, #d66147); color: #fff; font-size: 15px; font-weight: 900;
  box-shadow: 0 5px 14px rgba(196, 83, 55, .17);
}
.result-artifact-head > span:nth-child(2) { display: grid; min-width: 0; gap: 1px; }
.result-artifact-head small { color: #a06f5a; font-size: 9.5px; font-weight: 850; letter-spacing: .1em; }
.result-artifact-head b { color: #382e28; font-size: 15px; }
.result-artifact-head em { color: #8b7e76; font-size: 10.5px; font-style: normal; }
.result-artifact-head button {
  min-height: 36px; padding: 7px 12px; border: 1px solid rgba(218, 197, 184, .82); border-radius: 10px;
  background: rgba(255, 255, 255, .82); color: #8e4d39; font-size: 11.5px; font-weight: 750;
}
.result-artifact-head button:hover { border-color: rgba(213, 96, 67, .45); background: #fff; }
.result-artifact-body { padding: 18px 20px 20px; }
.result-artifact-body > :first-child { margin-top: 0; }
.result-artifact-body > :last-child { margin-bottom: 0; }

/* 低频模型设置退出主操作区。 */
.composer-advanced { position: relative; flex: 0 0 auto; }
.composer-advanced > summary {
  min-height: 34px; padding: 6px 11px; display: inline-flex; align-items: center; list-style: none; cursor: pointer;
  border: 1px solid rgba(220, 205, 195, .82); border-radius: 999px; background: rgba(251, 248, 245, .86);
  color: #8d8179; font-size: 11.5px; user-select: none;
}
.composer-advanced > summary::-webkit-details-marker { display: none; }
.composer-advanced > summary::after { content: '⌄'; margin-left: 6px; color: #b27863; }
.composer-advanced[open] > summary { border-color: rgba(220, 104, 75, .38); color: #98472f; background: #fff5ef; }
.composer-advanced-popover {
  position: absolute; left: 0; bottom: calc(100% + 9px); z-index: 8; width: 265px; padding: 14px;
  display: grid; gap: 8px; border: 1px solid rgba(220, 204, 194, .9); border-radius: 15px;
  background: rgba(255, 253, 250, .98); box-shadow: 0 16px 38px rgba(68, 46, 33, .15); backdrop-filter: blur(16px);
}
.composer-advanced-popover label { color: #4e413a; font-size: 12px; font-weight: 750; }
.composer-advanced-popover small { color: #94877f; font-size: 10.5px; line-height: 1.5; }
.composer-advanced .model-select { width: 100%; max-width: none; min-height: 38px; border-radius: 10px; }

/* 常用动作只留在表层，反馈等低频操作收入“更多”。 */
.actions-more { position: relative; }
.actions-more > summary {
  min-height: 35px; padding: 5px 13px; display: inline-flex; align-items: center; cursor: pointer; list-style: none;
  border: 1px solid rgba(220, 205, 195, .82); border-radius: 999px; background: rgba(255, 255, 255, .62);
  color: #8c8078; font-size: 12px;
}
.actions-more > summary::-webkit-details-marker { display: none; }
.actions-more > summary::after { content: '···'; margin-left: 6px; letter-spacing: 1px; }
.actions-more > div {
  position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 7; width: max-content; min-width: 148px; padding: 6px;
  display: grid; gap: 4px; border: 1px solid rgba(222, 207, 197, .9); border-radius: 13px;
  background: rgba(255, 253, 250, .98); box-shadow: 0 13px 30px rgba(69, 47, 34, .14);
}
.msg .bubble .actions .actions-more > div button { width: 100%; border: 0; border-radius: 8px; text-align: left; }
.msg .bubble .actions.quiet { margin-top: 7px; padding-top: 7px; gap: 6px; opacity: .5; transition: opacity .16s ease; }
.msg:hover .actions.quiet, .msg:focus-within .actions.quiet { opacity: 1; }
.msg .bubble .actions.quiet > button,
.msg .bubble .actions.quiet > .actions-more > summary { min-height: 30px; padding: 4px 10px; font-size: 10.5px; }
.msg .bubble .actions.quiet > .actions-more > summary::after { margin-left: 4px; }

/* 输入方式：素材、文本文件与语音转写。 */
.composer-attachment-list:empty { display: none; }
.composer-attachment-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 4px 9px; }
.composer-attachment {
  max-width: 100%; min-height: 30px; padding: 4px 5px 4px 9px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(216, 201, 191, .82); border-radius: 999px; background: #fff8f3; color: #765e52; font-size: 11px;
}
.composer-attachment i { color: #5f947f; font-style: normal; font-weight: 900; }
.composer-attachment b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.composer-attachment button { width: 23px; height: 23px; border: 0; border-radius: 50%; background: rgba(139, 100, 81, .08); color: #8f7568; }
.composer-tools { display: flex; align-items: center; gap: 6px; }
.composer-tool {
  min-height: 34px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgba(220, 205, 195, .82); border-radius: 999px; background: rgba(251, 248, 245, .86); color: #85776f;
}
.composer-tool span { color: #aa5d46; font-size: 15px; line-height: 1; }
.composer-tool em { font-size: 11.5px; font-style: normal; }
.composer-tool:hover { border-color: rgba(220, 104, 75, .38); background: #fff5ef; color: #98472f; }
.composer-tool.listening { border-color: #d75f45; background: #fff0ea; color: #a7442d; box-shadow: 0 0 0 4px rgba(215, 95, 69, .07); }
.composer-tool.listening span { animation: presence-pulse 1.1s ease-in-out infinite; }
.composer-notice { flex: 0 1 auto; color: #8f827a; font-size: 10.5px; white-space: nowrap; }
.composer-notice:empty { display: none; }
.composer-notice.success { color: #4f8a73; }
.composer-notice.error { color: #b14f37; }

/* 成果库与任务闭环。 */
.result-artifact-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.result-artifact-head .result-artifact-actions button { min-height: 34px; padding-inline: 10px; }
.result-artifact-head .result-artifact-actions button[data-artifact-action="complete"] { border-color: transparent; background: #eaf6f1; color: #477e68; }
.artifact-library-modal { width: min(900px, 94vw); }
.artifact-library-head { padding-right: 32px; }
.artifact-library-head > span { color: #a3634c; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.artifact-library-head h3 { margin-top: 4px; font-size: 24px; }
.artifact-library-head p { margin-top: 6px; color: #857970; font-size: 12px; }
.artifact-library-toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) 132px auto; align-items: center; gap: 9px; margin-top: 18px;
}
.artifact-search-shell { position: relative; min-width: 0; }
.artifact-search-shell > i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 1;
  color: #a18e83; font-size: 15px; font-style: normal; pointer-events: none;
}
.artifact-search-shell input,
.artifact-library-toolbar select {
  width: 100%; min-height: 40px; border: 1px solid rgba(222, 207, 197, .88); border-radius: 11px;
  background: rgba(255, 253, 250, .94); color: #51463f; box-shadow: 0 6px 18px rgba(87, 61, 47, .035);
}
.artifact-search-shell input { padding: 8px 36px 8px 35px; }
.artifact-search-shell input::placeholder { color: #aa9c93; }
.artifact-search-shell input:focus,
.artifact-library-toolbar select:focus { outline: none; border-color: rgba(220, 105, 79, .58); box-shadow: var(--focus-ring); }
.artifact-search-shell button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 29px; height: 29px;
  border: 0; border-radius: 8px; background: transparent; color: #9a877c; font-size: 18px; line-height: 1;
}
.artifact-search-shell button:hover { background: #f7eee9; color: #9d4d38; }
.artifact-library-toolbar select { padding: 7px 30px 7px 10px; font-size: 11.5px; }
#artifact-result-count { color: #96867d; font-size: 10.5px; white-space: nowrap; }
.artifact-library-list { display: grid; gap: 10px; margin-top: 12px; }
.artifact-library-item {
  padding: 14px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  border: 1px solid rgba(225, 212, 202, .82); border-radius: 15px; background: #fffdfa;
}
.artifact-library-item[hidden] { display: none; }
.artifact-library-item > div:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.artifact-library-item small { min-width: 0; display: flex; align-items: center; gap: 6px; color: #96877e; font-size: 10.5px; }
.artifact-library-item small > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artifact-library-item small em {
  flex: 0 0 auto; padding: 2px 6px; border: 1px solid rgba(218, 204, 196, .75); border-radius: 999px;
  background: #f8f4f1; color: #8d7a70; font-size: 9px; font-style: normal; font-weight: 750;
}
.artifact-library-item small em.completed { border-color: rgba(119, 183, 156, .28); background: #eef8f3; color: #557f6d; }
.artifact-library-item small em.saved { border-color: rgba(160, 139, 192, .22); background: #f5f0fa; color: #756584; }
.artifact-library-item b { color: #41362f; font-size: 14px; }
.artifact-library-item p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #81746c; font-size: 11.5px; }
.artifact-library-actions { display: flex; align-items: center; gap: 6px; }
.artifact-library-actions button { min-height: 35px; padding: 6px 10px; border: 1px solid rgba(220, 204, 194, .84); border-radius: 9px; background: #fff; color: #806d62; font-size: 11px; }
.artifact-library-actions button:first-child { background: #fff2ea; color: #a44f37; }
.artifact-library-actions button.confirming { border-color: rgba(197, 79, 61, .4); background: #aa4938; color: #fff; box-shadow: 0 7px 16px rgba(170, 73, 56, .16); }
.artifact-library-filter-empty {
  min-height: 154px; padding: 30px 20px; display: grid; place-items: center; align-content: center; gap: 5px;
  border: 1px dashed rgba(216, 196, 184, .9); border-radius: 16px; background: linear-gradient(135deg, #fffcf9, #faf7fc); text-align: center;
}
.artifact-library-filter-empty[hidden] { display: none; }
.artifact-library-filter-empty b { color: #51453f; font-size: 13.5px; }
.artifact-library-filter-empty p { color: #96877e; font-size: 11px; }
.artifact-library-filter-empty button { margin-top: 7px; padding: 7px 12px; border: 1px solid rgba(219, 199, 188, .84); border-radius: 9px; background: #fff; color: #9a513d; font-size: 11px; }

/* 更易读的会话状态与统一字标。 */
.skill-icon { font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif; font-weight: 850; letter-spacing: 0; }
.session-preview-row { min-width: 0; display: flex; align-items: center; gap: 6px; }
.session-preview-row .session-preview { flex: 1; min-width: 0; }
.session-preview-row em { flex-shrink: 0; padding: 2px 5px; border-radius: 5px; background: #eaf6f1; color: #4f846f; font-size: 9.5px; font-style: normal; }
.session-preview-row .session-preview.is-draft { color: #8a624f; }
.session-preview-row .session-draft-badge { border: 1px solid rgba(216, 105, 79, .13); background: #fff0e8; color: #a0523c; }
.session-preview-row em[hidden] { display: none; }
.chat-title-copy .desc,
.session-preview,
.sidebar-user-copy small { color: #857970; font-size: 11.5px; }

@media (max-width: 640px) {
  .topbar { min-height: 58px; padding-inline: 12px; }
  .topbar .logo-wordmark { display: inline; font-size: 13.5px; }
  .topbar .logo .dot { width: 34px; height: 34px; }
  .topbar .user-info, .topbar-actions { display: none; }
  .topbar-account { display: block; }
  .topbar-account .user-chip { width: 28px; height: 28px; }
  .home-container.has-current-task { padding-top: 12px; }
  .has-current-task .yiren-hero { padding: 15px 14px 14px; border-radius: 20px; }
  .has-current-task .yiren-mark { width: 35px; height: 35px; border-radius: 11px; font-size: 17px; }
  .has-current-task .yiren-copy { margin: 13px 0 11px; }
  .has-current-task .yiren-copy h1 { font-size: 23px; line-height: 1.23; }
  .has-current-task .yiren-copy p { display: none; }
  .has-current-task .yiren-ask { padding: 10px; }
  .has-current-task .yiren-ask textarea { min-height: 48px; }
  .has-current-task .current-task-section { margin-top: 18px; }

  .handoff-status { grid-template-columns: 30px minmax(0, 1fr); padding: 11px 12px; gap: 4px 10px; }
  .handoff-status .handoff-mark { width: 29px; height: 29px; border-radius: 9px; }
  .handoff-status > .handoff-copy { width: auto; }
  .handoff-copy b { font-size: 13px; }
  .handoff-copy span { white-space: normal; line-height: 1.55; }
  .handoff-status #handoff-back,
  .handoff-status #topic-handoff-back { grid-column: 1 / -1; width: 100%; min-height: 42px; margin-top: 6px; }
  .handoff-status > .handoff-context { grid-column: 1 / -1; margin-left: 0; }

  .chat-page { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
  .chat-mobile-bar {
    min-height: 58px; flex: 0 0 58px; padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; gap: 9px;
    border-bottom: 1px solid rgba(222, 211, 203, .84); background: rgba(255, 253, 250, .94); backdrop-filter: blur(16px); z-index: 12;
  }
  .chat-mobile-bar button {
    min-width: 42px; min-height: 40px; padding: 7px 10px; border: 1px solid rgba(220, 205, 195, .82); border-radius: 12px;
    background: rgba(255, 255, 255, .82); color: #725f54; font-size: 12px; font-weight: 750;
  }
  .mobile-skill { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .mobile-skill b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #44372f; font-size: 13.5px; }
  .chat-page .chat-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 31; width: min(84vw, 320px); max-height: none; height: 100vh; height: 100dvh;
    padding: 13px 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
    border-right: 1px solid rgba(220, 207, 198, .9); border-bottom: 0;
    background: rgba(250, 247, 243, .98); box-shadow: 18px 0 44px rgba(57, 39, 28, .16);
    transform: translateX(-104%); transition: transform .22s ease;
  }
  .chat-page.mobile-nav-open .chat-sidebar { transform: translateX(0); }
  .chat-mobile-scrim {
    position: fixed; inset: 0; z-index: 30; width: 100%; height: 100%; display: block;
    border: 0; background: rgba(53, 42, 35, .28); backdrop-filter: blur(2px);
  }
  .chat-mobile-scrim[hidden] { display: none; }
  .chat-page .chat-sidebar .chat-brand { padding: 5px 4px 10px; }
  .chat-page .chat-sidebar .chat-skill-panel { padding: 10px; }
  .chat-page .chat-sidebar .chat-session-panel { flex: 1; min-height: 0; max-height: none; }
  .chat-page .chat-sidebar .chat-session-list {
    grid-auto-flow: row; grid-auto-columns: auto; overflow-x: hidden; overflow-y: auto; padding-bottom: 8px;
  }
  .chat-page .chat-sidebar .chat-session-item { min-height: 58px; padding-right: 46px; }
  .chat-page .chat-sidebar .session-more-trigger { right: 2px; width: 40px; height: 40px; }
  .chat-page .chat-sidebar .chat-sidebar-footer { display: block; }
  .chat-page .chat-main { flex: 1; min-height: 0; }

  .skill-start-card { margin-bottom: 17px; padding: 17px 15px 15px; border-radius: 18px; }
  .skill-start-head { gap: 10px; }
  .skill-start-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; font-size: 16px; }
  .skill-start-head h2 { font-size: 17px; }
  .skill-start-card > p { margin: 10px 0 14px 46px; font-size: 12px; }
  .skill-start-fields { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .skill-start-fields > div { padding: 10px 11px; }
  .skill-start-actions { align-items: stretch; flex-direction: column; }
  .skill-start-actions button { min-height: 44px; }

  .result-artifact-head { grid-template-columns: 32px minmax(0, 1fr); padding: 12px; }
  .result-artifact-mark { width: 30px; height: 30px; border-radius: 9px; }
  .result-artifact-head em { display: none; }
  .result-artifact-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .result-artifact-head .result-artifact-actions button { width: 100%; min-height: 42px; padding-inline: 7px; }
  .result-artifact-body { padding: 15px 14px 17px; }
}

/* 内容选题结果：先比较，再按需展开证据和素材。 */
.topic-result-board { display: grid; gap: 18px; color: #443832; }
.topic-result-overview {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 4px;
}
.topic-result-overview > div {
  min-width: 0; padding: 14px 15px; border: 1px solid rgba(222, 206, 196, .82); border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 247, 241, .92), rgba(255, 255, 255, .82));
}
.topic-result-overview > div:last-child { background: linear-gradient(135deg, rgba(248, 245, 255, .92), rgba(255, 255, 255, .82)); }
.topic-result-overview small { color: #aa674f; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.topic-result-overview p { margin: 6px 0 0; color: #665850; font-size: 12.5px; line-height: 1.7; }
.topic-result-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 4px; }
.topic-result-section-head > span { display: grid; gap: 1px; }
.topic-result-section-head small { color: #b56b50; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.topic-result-section-head h2 { color: #3f332d; font-size: 18px; line-height: 1.4; }
.topic-result-section-head p { margin: 0; color: #9a8a81; font-size: 10.5px; }
.topic-result-section-head.is-more { margin-top: 2px; padding-top: 17px; border-top: 1px solid rgba(226, 213, 204, .78); }
.topic-result-section-head.is-more small { color: #8a78ba; }
.topic-result-list { display: grid; gap: 11px; }
.topic-result-card {
  position: relative; display: grid; gap: 11px; padding: 17px 18px 14px; overflow: hidden;
  border: 1px solid rgba(222, 209, 200, .88); border-radius: 17px; background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 22px rgba(78, 53, 38, .045); cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.topic-result-card:hover { border-color: rgba(210, 143, 118, .68); box-shadow: 0 12px 28px rgba(92, 57, 38, .075); }
.topic-result-card:focus-visible { outline: 0; box-shadow: var(--focus-ring), 0 12px 28px rgba(92, 57, 38, .075); }
.topic-result-card.is-priority {
  border-color: rgba(218, 152, 126, .48);
  background: linear-gradient(135deg, rgba(255, 251, 248, .98), rgba(255, 246, 241, .88) 62%, rgba(249, 247, 255, .88));
  box-shadow: 0 10px 28px rgba(120, 72, 48, .075);
}
.topic-result-card.is-priority::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, #da684a, #a985d1);
}
.topic-result-card.is-selected {
  border-color: rgba(206, 91, 61, .82);
  background: linear-gradient(135deg, rgba(255, 252, 249, 1), rgba(255, 242, 235, .95) 62%, rgba(247, 244, 255, .94));
  box-shadow: 0 15px 36px rgba(127, 70, 44, .13), 0 0 0 2px rgba(218, 104, 74, .09);
}
.topic-result-card.is-selected::before { width: 4px; background: linear-gradient(180deg, #d85f42, #956fc3); }
.topic-result-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topic-result-rank {
  width: 31px; height: 26px; flex: 0 0 31px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #f3e5de; color: #a84f38; font-family: Georgia, serif; font-size: 12px; font-weight: 800;
}
.topic-result-badges { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.topic-result-badges > span,
.topic-result-badges > b,
.topic-result-card-head > em {
  padding: 4px 7px; border-radius: 999px; background: #f5f1ee; color: #75675f;
  font-size: 9px; font-style: normal; font-weight: 800; line-height: 1;
}
.topic-result-badges > b.grade-a { background: #e5f3eb; color: #43755c; }
.topic-result-badges > b.grade-b { background: #fff0d8; color: #9a6725; }
.topic-result-badges > b.grade-c { background: #f2ece9; color: #8a7469; }
.topic-result-card-head > em { margin-left: auto; background: #fbe3da; color: #b55339; }
.topic-result-card > h3 { margin: 0; color: #342a25; font-size: 16px; line-height: 1.55; }
.topic-result-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.topic-result-facts > div { min-width: 0; padding: 10px 11px; border-radius: 11px; background: rgba(247, 243, 240, .82); }
.topic-result-facts small,
.topic-result-angle small { display: block; margin-bottom: 4px; color: #99877c; font-size: 9px; font-weight: 800; }
.topic-result-facts p,
.topic-result-angle p { margin: 0; color: #62534b; font-size: 11.5px; line-height: 1.6; }
.topic-result-angle { padding: 11px 12px; border: 1px solid rgba(215, 150, 124, .28); border-radius: 11px; background: rgba(255, 244, 238, .72); }
.topic-result-angle small { color: #a65b43; }
.topic-result-reason { margin: -1px 0 0; color: #77675e; font-size: 10.5px; line-height: 1.6; }
.topic-result-reason b { margin-right: 7px; color: #5d4b42; }
.topic-result-details { border-top: 1px solid rgba(229, 218, 210, .82); }
.topic-result-details summary {
  width: fit-content; padding: 10px 2px 2px; cursor: pointer; list-style: none;
  color: #95614e; font-size: 10.5px; font-weight: 800;
}
.topic-result-details summary::-webkit-details-marker { display: none; }
.topic-result-details summary::after { content: '＋'; margin-left: 6px; }
.topic-result-details[open] summary::after { content: '－'; }
.topic-result-details dl { display: grid; gap: 8px; margin: 9px 0 1px; }
.topic-result-details dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border-radius: 9px; background: #faf8f6; }
.topic-result-details dt { color: #917d71; font-size: 9.5px; font-weight: 800; }
.topic-result-details dd { margin: 0; color: #66564e; font-size: 10.5px; line-height: 1.6; }
.topic-result-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topic-result-secondary-actions { display: flex; justify-content: flex-end; gap: 7px; }
.topic-result-actions button {
  min-height: 32px; padding: 6px 10px; border: 1px solid rgba(218, 202, 192, .88); border-radius: 9px;
  background: #fff; color: #7d6a60; font-size: 10px; font-weight: 800;
}
.topic-result-actions .topic-result-select {
  min-width: 126px; justify-content: center; display: inline-flex; align-items: center; gap: 7px;
  border-color: rgba(202, 91, 62, .38); background: #fff1eb; color: #a84f38;
}
.topic-result-select i {
  width: 13px; height: 13px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(190, 85, 56, .58); border-radius: 50%; background: #fff;
}
.topic-result-card.is-selected .topic-result-select { border-color: #c95c3f; background: #ce6043; color: #fff; }
.topic-result-card.is-selected .topic-result-select i { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3px #ce6043; }
.topic-result-actions [data-topic-outline] { border-color: rgba(214, 105, 75, .28); background: #fff4ef; color: #a84f38; }
.topic-result-actions button:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(84, 57, 42, .07); }
.topic-result-handoff {
  margin: 2px -3px -1px; padding: 13px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 14px; border: 1px solid rgba(206, 104, 76, .3); border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 239, 231, .98), rgba(249, 243, 255, .94)); cursor: default;
  animation: topic-handoff-in .18s ease both;
}
.topic-result-handoff[hidden] { display: none; }
.topic-result-handoff-copy { min-width: 0; display: grid; gap: 2px; }
.topic-result-handoff-copy small { color: #a35c46; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.topic-result-handoff-copy b { color: #49352d; font-size: 12px; }
.topic-result-handoff-copy em { color: #8a776d; font-size: 9.5px; font-style: normal; line-height: 1.45; }
.topic-result-handoff-actions { display: grid; grid-template-columns: repeat(2, minmax(136px, 1fr)); gap: 8px; }
.topic-result-handoff-actions button {
  min-height: 49px; padding: 7px 11px; display: grid; gap: 1px; align-content: center; text-align: left;
  border: 1px solid rgba(205, 94, 65, .32); border-radius: 10px; background: #fff; color: #764638;
}
.topic-result-handoff-actions button:first-child { border-color: #c95d40; background: #ce6043; color: #fff; }
.topic-result-handoff-actions button:hover { transform: translateY(-1px); box-shadow: 0 7px 15px rgba(97, 55, 38, .11); }
.topic-result-handoff-actions button b { font-size: 10.5px; }
.topic-result-handoff-actions button small { color: inherit; font-size: 8.5px; opacity: .75; }
@keyframes topic-handoff-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .topic-result-overview,
  .topic-result-facts { grid-template-columns: minmax(0, 1fr); }
  .topic-result-section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .topic-result-section-head p { line-height: 1.5; }
  .topic-result-card { padding: 14px 13px 12px; border-radius: 14px; }
  .topic-result-card > h3 { font-size: 15px; }
  .topic-result-card-head > em { display: none; }
  .topic-result-details dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .topic-result-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .topic-result-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-result-actions button { min-height: 38px; }
  .topic-result-actions .topic-result-select { width: 100%; }
  .topic-result-handoff { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .topic-result-handoff-actions { grid-template-columns: minmax(0, 1fr); }
  .topic-result-handoff-actions button { min-height: 46px; text-align: center; }
}

@media (max-width: 640px) {
  .composer-advanced > summary { width: 38px; min-height: 40px; justify-content: center; padding: 6px; font-size: 0; }
  .composer-advanced > summary::before { content: '⚙'; font-size: 16px; }
  .composer-advanced > summary::after { display: none; }
  .composer-advanced-popover { width: min(280px, calc(100vw - 42px)); }
  .actions-more > summary { min-height: 40px; }
  .msg .bubble .actions.quiet { opacity: .78; }
  .msg .bubble .actions.quiet > button,
  .msg .bubble .actions.quiet > .actions-more > summary { min-height: 38px; }
  .composer-tools { gap: 5px; }
  .composer-tool { width: 40px; min-height: 40px; justify-content: center; padding: 5px; }
  .composer-tool em { display: none; }
  .composer-notice { display: none; }
  .composer-bar .btn-send { margin-left: auto; }
  .chat-jump-latest { bottom: 166px; min-height: 40px; }
  .app-toast-region { top: 70px; right: 12px; width: calc(100vw - 24px); }
  .home-loading { grid-template-columns: minmax(0, 1fr); }
  .loading-line, .loading-card { grid-column: 1; }
  .state-card { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; }
  .state-card button { grid-column: 1 / -1; min-height: 42px; }
  .artifact-library-modal { width: 100%; }
  .artifact-library-toolbar { grid-template-columns: minmax(0, 1fr) 112px; }
  .artifact-search-shell input { font-size: 16px; }
  #artifact-result-count { grid-column: 1 / -1; justify-self: end; }
  .artifact-library-item { grid-template-columns: 36px minmax(0, 1fr); }
  .artifact-library-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artifact-library-actions button { min-height: 42px; }
}

@media (max-width: 380px) {
  .topbar { padding-inline: 10px; }
  .topbar button:not(.logo) { padding-inline: 8px; }
  .login-wrap { padding: 12px; }
  .login-card { padding: 28px 20px; }
  .stat-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 第三轮体验优化：发现、连续性与移动导航 ---------- */
.workspace-nav { display: flex; align-items: center; gap: 3px; margin-left: 8px; }
.topbar .workspace-nav button {
  min-height: 34px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 9px; background: transparent; color: #766860; font-size: 12px; font-weight: 700;
}
.topbar .workspace-nav button:hover { border: 0; background: rgba(216, 95, 73, .08); color: #9b4b35; }
.workspace-nav button i { color: #bd6c53; font-size: 14px; font-style: normal; font-weight: 800; }

.yiren-ask-meta { min-width: 0; display: grid; gap: 1px; }
.yiren-ask-meta small { color: #aca098; font-size: 9.5px; letter-spacing: .015em; }
.yiren-ask textarea { overflow-y: auto; resize: none; }

.skill-discovery-toolbar {
  min-width: min(460px, 50vw); display: flex !important; align-items: center; justify-content: flex-end; gap: 10px !important;
}
.skill-search-shell {
  width: min(360px, 100%); min-height: 43px; padding: 0 7px 0 13px; display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(222, 207, 197, .9); border-radius: 14px; background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 16px rgba(76, 51, 37, .045); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.skill-search-shell:focus-within { border-color: rgba(215, 101, 74, .62); background: #fff; box-shadow: var(--focus-ring); }
.skill-search-shell > i { flex: 0 0 auto; color: #ae765f; font-size: 17px; font-style: normal; }
.skill-search-shell .search-box {
  min-width: 0; max-width: none; min-height: 40px; margin: 0; padding: 8px 0; flex: 1;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.skill-search-shell .search-box:focus { border: 0; background: transparent; box-shadow: none; }
.skill-search-shell button {
  min-height: 30px; padding: 4px 7px; border: 0; border-radius: 8px; background: #fff2ea; color: #9f513b; font-size: 10.5px; font-weight: 750;
}
.skill-result-count { flex: 0 0 auto; color: #92857d !important; font-size: 10.5px !important; letter-spacing: 0 !important; white-space: nowrap; }
.skill-filter-chips {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 15px 0 3px; padding-bottom: 2px;
}
.skill-filter-chip {
  min-height: 34px; padding: 6px 11px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(222, 208, 198, .82); border-radius: 999px; background: rgba(255, 255, 255, .68);
  color: #766a62; font-size: 11.5px; font-weight: 700; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.skill-filter-chip i {
  min-width: 19px; height: 19px; padding-inline: 5px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(139, 112, 95, .08); color: #9a887c; font-size: 9px; font-style: normal;
}
.skill-filter-chip:hover { border-color: rgba(215, 101, 74, .42); background: #fff8f3; color: #9d4f39; }
.skill-filter-chip.active { border-color: rgba(210, 94, 67, .28); background: linear-gradient(135deg, #fff0e8, #f7f1ff); color: #984b36; }
.skill-filter-chip.active i { background: rgba(215, 101, 74, .12); color: #a14c35; }
.skill-search-empty {
  min-height: 230px; margin-top: 22px; padding: 38px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column;
  border: 1px dashed rgba(214, 197, 186, .9); border-radius: 20px; background: rgba(255, 253, 250, .66); text-align: center;
}
.skill-search-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #fff0e8; color: #b55b41; font-size: 20px; }
.skill-search-empty b { margin-top: 11px; color: #4b3e37; font-size: 14px; }
.skill-search-empty p { margin-top: 2px; color: #8c8078; font-size: 11.5px; }
.skill-search-empty button { min-height: 38px; margin-top: 14px; padding: 7px 13px; border: 1px solid rgba(214, 96, 69, .25); border-radius: 10px; background: #fff5ef; color: #9d4e37; font-weight: 750; }

.sidebar-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-label em { min-width: 20px; height: 20px; padding-inline: 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(140, 117, 102, .09); color: #94857c; font-size: 9.5px; font-style: normal; }
.mobile-drawer-close { display: none; }
.mobile-skill-copy { min-width: 0; display: grid; gap: 0; line-height: 1.2; }
.mobile-skill-copy small { overflow: hidden; color: #9a8c83; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-skill-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-nav-toggle i { min-width: 18px; height: 18px; margin-left: 2px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(215, 101, 74, .1); color: #a8533c; font-size: 9px; font-style: normal; }
.composer-draft-status { flex: 0 0 auto; color: #6f927f; font-size: 10px; white-space: nowrap; }
.composer-draft-status:not(:empty)::before { content: '✓'; margin-right: 4px; font-size: 9px; font-weight: 900; }
.quick-replies.sending { opacity: .64; pointer-events: none; }
.msg-error { display: grid; gap: 3px; }
.msg-error b { color: #9f442f; font-size: 13px; }
.msg-error span { color: #a4513d; font-size: 12px; }
.msg-error small { color: #6d5d55; font-size: 10.5px; }
.msg-error-retry {
  width: fit-content; min-height: 34px; margin-top: 7px; padding: 6px 12px;
  border: 1px solid #dfa994; border-radius: 8px; background: #fff;
  color: #9f442f; font-size: 11px; font-weight: 800;
}
.msg-error-retry:hover, .msg-error-retry:focus-visible {
  border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--focus-ring);
}

@media (max-width: 640px) {
  .poster-error-actions > button { flex: 1 1 132px; min-height: 44px; }
  .workspace-nav { display: none; }
  .topbar-account-menu [data-home-act="artifacts"] { margin-bottom: 3px; border-bottom: 1px solid rgba(226, 215, 207, .72); border-radius: 9px 9px 4px 4px; }
  .skill-discovery-toolbar {
    min-width: 0; width: 100%; padding: 8px 0;
    justify-content: stretch; background: linear-gradient(180deg, rgba(248,244,240,.98), rgba(248,244,240,.92) 78%, transparent);
    backdrop-filter: blur(12px);
  }
  .skill-search-shell { width: 100%; }
  .skill-result-count { display: none; }
  .skill-filter-chips { flex-wrap: nowrap; margin: 9px -15px 1px; padding: 2px 15px 6px; overflow-x: auto; scrollbar-width: none; }
  .skill-filter-chips::-webkit-scrollbar { display: none; }
  .skill-filter-chip { flex: 0 0 auto; min-height: 38px; }

  .mobile-drawer-close {
    position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(218, 204, 194, .84); border-radius: 12px;
    background: rgba(255, 255, 255, .82); color: #78685f; font-size: 21px; line-height: 1;
  }
  .chat-page .chat-sidebar .chat-brand { padding-right: 48px; }
  .mobile-skill { flex: 1; max-width: calc(100% - 138px); justify-content: flex-start; }
  .mobile-skill > .skill-icon { flex: 0 0 32px; }
  .mobile-skill-copy { flex: 1; }
  .mobile-skill-copy b { max-width: 100%; font-size: 11.5px; }
  .mobile-nav-toggle { display: inline-flex; align-items: center; }
  .composer-draft-status { margin-left: auto; font-size: 9.5px; }
}

@media (max-width: 640px) {
  .yiren-hero-actions { min-width: 0; }
  .business-context-button { min-height: 36px; padding: 6px 8px; gap: 6px; }
  .business-context-button small { display: none; }
  .business-context-button b { max-width: 82px; font-size: 9.5px; }
  .business-context-button > i { display: none; }
  .modal-mask.business-overview-mask { align-items: flex-end; padding: 0; }
  .modal.business-overview-modal { width: 100%; max-height: 92vh; padding: 18px 14px; border-radius: 22px 22px 0 0; }
  .business-state-section { margin-top: 24px; }
  .business-state-card { grid-template-columns: minmax(0, 1fr); border-radius: 19px; }
  .business-stage-column, .business-state-focus, .business-state-assets { padding: 14px 15px; }
  .business-state-focus, .business-state-assets { border-left: 0; border-top: 1px solid rgba(228,216,207,.75); }
  .business-state-focus b { white-space: normal; }
  .business-state-assets { justify-content: space-around; }
  .business-action-list { overflow-x: auto; align-items: stretch; padding: 10px 11px; }
  .business-action-list > small { display: none; }
  .business-action-item, .business-empty-action { flex: 0 0 auto; min-height: 40px; }
  .business-state-modal { width: 100%; }
  .business-review-inbox { align-items: flex-start; padding: 12px; }
  .business-review-copy em { white-space: normal; }
  .business-review-inbox > button { align-self: center; white-space: nowrap; }
  .business-observation-shelf { display: grid; gap: 8px; padding: 11px 12px; }
  .business-observation-shelf-items { padding-bottom: 3px; overflow-x: auto; }
  .business-observation-shelf-items > span { flex: 0 0 auto; }
  .business-activity-strip { display: grid; gap: 7px; padding: 10px 2px 0; }
  .business-activity-strip > small { padding-left: 8px; }
  .business-activity-strip > div { padding: 0 8px 5px; overflow-x: auto; }
  .business-activity-strip > div > span { flex: 0 0 auto; }
  .business-review-modal { width: 100%; max-height: 92vh; }
  .business-review-source-row { align-items: stretch; flex-direction: column; }
  .business-review-actions { width: 100%; }
  .business-review-actions button { flex: 1; }
}

/* ---------- 第四轮体验优化：首屏效率、阅读节奏与专业密度 ---------- */
/* 桌面首页先让用户看见“能做什么”和“正在做什么”，避免 AI 弈人独占首屏。 */
@media (min-width: 641px) {
  .home-container { padding-top: 24px; }
  .yiren-hero {
    padding: 30px 36px 25px;
    border-radius: 28px;
    box-shadow: 0 20px 58px rgba(94, 66, 49, .09), inset 0 1px 0 rgba(255, 255, 255, .92);
  }
  .yiren-hero::after { top: -74px; font-size: 240px; }
  .yiren-mark { width: 46px; height: 46px; border-radius: 16px; font-size: 21px; }
  .yiren-copy { margin: 21px 0 16px; }
  .yiren-copy h1 { font-size: clamp(31px, 3.7vw, 40px); line-height: 1.16; letter-spacing: -1.05px; }
  .yiren-copy p { margin-top: 9px; line-height: 1.72; }
  .yiren-ask { padding: 13px 15px 10px; border-radius: 19px; }
  .yiren-ask textarea { min-height: 54px; max-height: 150px; padding-bottom: 7px; }
  .yiren-ask-bar { padding-top: 8px; }
  .yiren-ask #yiren-start { min-height: 41px; }
  .yiren-prompts { margin-top: 12px; }
  .yiren-prompts button { min-height: 33px; padding-block: 5px; }
  .yiren-path { margin-top: 16px; padding-top: 13px; }
  .business-state-section { margin-top: 24px; }
  .home-section { margin-top: 34px; }
}

/* 对话页控制长文行宽与输入区高度，降低“整面都是字”的压迫感。 */
.chat-body,
.chat-session-list { scrollbar-gutter: stable; }
.msg .bubble { line-height: 1.76; }
.bubble p { line-height: 1.78; }
.chat-session-row.active::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 11px;
  bottom: 11px;
  z-index: 2;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #dd6c4f, #a17ad0);
  box-shadow: 0 0 0 3px rgba(216, 95, 73, .045);
  pointer-events: none;
}
.chat-session-row.active .chat-session-item { padding-left: 15px; }

@media (min-width: 901px) {
  .chat-body { padding: 30px 0 24px; }
  .chat-inner { max-width: 960px; padding-inline: 34px; }
  .msg.assistant .bubble {
    flex: 0 1 auto;
    max-width: min(820px, calc(100% - 45px));
  }
  .msg.user .bubble { max-width: min(680px, 76%); }
  .chat-input-wrap { padding-top: 15px; padding-bottom: max(15px, env(safe-area-inset-bottom)); }
  .composer { max-width: 900px; padding: 11px 14px 9px; border-radius: 21px; }
  .composer textarea { min-height: 52px; padding-bottom: 7px; }
}

/* 专项任务的开场说明更像工作简报，信息层次紧凑但仍保留呼吸感。 */
@media (min-width: 641px) {
  .skill-start-card { padding: 22px 23px 20px; border-radius: 21px; }
  .skill-start-card > p { margin-top: 10px; margin-bottom: 15px; }
  .skill-start-fields > div { padding: 11px 12px; }
  .skill-start-actions { margin-top: 14px; }
}

/* 后台是长页面：压缩仪表盘装饰占位，并让一级导航在滚动时可随时切换。 */
@media (min-width: 901px) {
  .admin-mode .container { padding-top: 24px; }
  .admin-page-head { margin-bottom: 14px; padding: 22px 26px; border-radius: 24px; }
  .admin-page-head h2 { font-size: 28px; }
  .admin-page-mark { width: 56px; height: 56px; flex-basis: 56px; border-radius: 19px; font-size: 24px; }
  .admin-tabs {
    position: sticky;
    top: 68px;
    z-index: 12;
    margin-bottom: 16px;
    background: rgba(255, 253, 250, .9);
  }
  .stat-card { min-height: 100px; padding: 18px 21px; }
  .stat-card .num { font-size: 28px; }
}

/* 统一按压、禁用与横向内容反馈，减少“点了没反应”的不确定感。 */
.table-scroll { scrollbar-color: rgba(183, 157, 142, .62) transparent; }
:where(.skill-start-actions button, .composer-tool, .composer-advanced > summary, .skill-filter-chip, .workspace-nav button):active {
  transform: translateY(1px);
}
:where(button, input, textarea, select):disabled { cursor: not-allowed; }

/* ---------- 第五轮体验优化：连续使用、连接状态与加载反馈 ---------- */
.workspace-nav kbd {
  margin-left: 2px; padding: 2px 5px; border: 1px solid rgba(190, 166, 151, .48); border-bottom-color: rgba(165, 139, 123, .58);
  border-radius: 5px; background: rgba(255, 255, 255, .62); color: #9a8174; font-family: inherit; font-size: 8.5px; font-weight: 750;
  line-height: 1.2; box-shadow: 0 1px 0 rgba(116, 86, 67, .07);
}
.all-skills-panel { scroll-margin-top: 78px; }

.connection-banner {
  position: fixed; top: 72px; left: 50%; z-index: 115; width: min(580px, calc(100vw - 32px)); min-height: 54px;
  padding: 9px 10px 9px 12px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  border: 1px solid rgba(210, 147, 119, .45); border-radius: 16px;
  background: rgba(255, 249, 244, .97); color: #5e493f; box-shadow: 0 16px 42px rgba(75, 49, 35, .16);
  transform: translateX(-50%); backdrop-filter: blur(18px); animation: connection-enter .22s ease-out;
}
.connection-banner[hidden] { display: none; }
.connection-banner > i {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  background: #ffe9df; color: #b44f35; font-style: normal; font-weight: 900;
}
.connection-banner > span { min-width: 0; display: grid; gap: 1px; }
.connection-banner b { font-size: 12.5px; }
.connection-banner small { overflow: hidden; color: #8c786e; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.connection-banner button {
  min-height: 35px; padding: 6px 10px; border: 1px solid rgba(207, 105, 76, .28); border-radius: 10px;
  background: rgba(255, 255, 255, .78); color: #9a4b35; font-size: 11px; font-weight: 800;
}
.connection-banner button:hover { border-color: rgba(207, 105, 76, .5); background: #fff; }

.admin-loading { display: grid; gap: 16px; }
.admin-loading-filter,
.admin-loading-cards > i,
.admin-loading-table {
  position: relative; overflow: hidden; border: 1px solid rgba(227, 215, 206, .6); background: rgba(255, 255, 255, .58);
}
.admin-loading-filter { width: 100%; height: 72px; border-radius: 20px; }
.admin-loading-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-loading-cards > i { height: 100px; border-radius: 21px; }
.admin-loading-table { height: 260px; padding: 18px; display: grid; align-content: start; gap: 16px; border-radius: 21px; }
.admin-loading-table > * { display: block; height: 12px; border-radius: 999px; background: rgba(214, 200, 190, .42); }
.admin-loading-table > b { width: 150px; height: 18px; }
.admin-loading-table > span:nth-of-type(1) { width: 94%; }
.admin-loading-table > span:nth-of-type(2) { width: 86%; }
.admin-loading-table > span:nth-of-type(3) { width: 90%; }
.admin-loading-filter::after,
.admin-loading-cards > i::after,
.admin-loading-table::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.82), transparent); animation: loading-shimmer 1.45s ease-in-out infinite;
}
@keyframes connection-enter { from { opacity: 0; transform: translate(-50%, -8px); } }

@media (max-width: 640px) {
  .connection-banner {
    top: 66px; width: calc(100vw - 20px); min-height: 58px; padding: 8px 9px;
    grid-template-columns: 28px minmax(0, 1fr) auto; border-radius: 14px;
  }
  .connection-banner small { max-width: 47vw; }
  .connection-banner button { min-height: 40px; }
  .admin-loading-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .admin-loading-filter { height: 118px; }
  .admin-loading-table { height: 220px; }
}

/* ---------- 第六轮体验优化：弹窗连续性、空状态与编辑安全 ---------- */
body.modal-open { overflow: hidden !important; }
.modal-mask { overscroll-behavior: contain; }
.modal:focus { outline: none; }
.draft-tip.quiet {
  border: 1px solid rgba(220, 205, 195, .68); background: rgba(250, 247, 244, .72); color: #887a72;
}

.artifact-library-empty {
  min-height: 260px; padding: 34px 22px; display: flex; align-items: center; justify-content: center; flex-direction: column;
  border: 1px dashed rgba(216, 197, 185, .88); border-radius: 19px;
  background: linear-gradient(145deg, rgba(255, 251, 247, .88), rgba(249, 246, 255, .72)); text-align: center;
}
.artifact-library-empty > span {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px;
  background: linear-gradient(145deg, #fff0e7, #f2ecff); color: #a65a43; font-size: 23px;
  box-shadow: inset 0 0 0 1px rgba(216, 95, 73, .08);
}
.artifact-library-empty b { margin-top: 13px; color: #463a33; font-size: 15px; }
.artifact-library-empty p { max-width: 440px; margin-top: 5px; color: #8b7e76; font-size: 11.5px; line-height: 1.65; }
.artifact-library-empty button {
  min-height: 41px; margin-top: 17px; padding: 8px 15px; border: 1px solid rgba(215, 101, 74, .28); border-radius: 12px;
  background: linear-gradient(135deg, #fff2ea, #f7f1ff); color: #9b4b35; font-size: 12px; font-weight: 800;
}
.artifact-library-empty button:hover { border-color: rgba(215, 101, 74, .5); background: #fff; transform: translateY(-1px); }

@media (max-width: 640px) {
  .artifact-library-empty { min-height: 230px; padding: 28px 16px; }
  .artifact-library-empty button { width: 100%; min-height: 44px; }
  .composer-bar { flex-wrap: wrap; }
  .composer-notice.error,
  .composer-notice.success {
    order: -1; width: 100%; padding: 6px 8px; display: block; border-radius: 9px;
    background: #fff0e9; color: #a64932; font-size: 10.5px; white-space: normal;
  }
  .composer-notice.success { background: #edf8f3; color: #4c806a; }
}

/* ---------- 第七轮体验优化：后台导航状态与失败恢复 ---------- */
.admin-tabs [role="tab"] { position: relative; }
.admin-tabs [role="tab"][aria-selected="true"]::after {
  content: ''; position: absolute; left: 24%; right: 24%; bottom: 3px; height: 2px; border-radius: 999px;
  background: rgba(255, 255, 255, .78);
}
.admin-tabs [role="tab"]:focus-visible { outline: none; box-shadow: var(--focus-ring); }
#admin-content[aria-busy="true"] { cursor: progress; }
.msg-error-retry:active { transform: translateY(1px); }

@media (max-width: 640px) {
  .msg-error-retry { width: 100%; min-height: 42px; margin-top: 9px; }
}

/* ---------- 学员个人事业主页 ---------- */
body.profile-mode {
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 8%, rgba(247, 177, 135, .2), transparent 25rem),
    radial-gradient(circle at 93% 14%, rgba(164, 138, 210, .18), transparent 28rem),
    linear-gradient(180deg, #fbf8f4 0%, #f7f3f0 52%, #f4f1f3 100%);
}
body.profile-mode .topbar { background: rgba(255, 253, 250, .84); border-bottom-color: rgba(224, 214, 205, .72); }
.profile-shell {
  --profile-coral: #d9664b;
  --profile-peach: #efa174;
  --profile-violet: #8b74c1;
  --profile-mint: #6c9f8e;
  width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 80px;
  display: grid; gap: 22px;
}
.profile-viewbar {
  min-height: 72px; padding: 12px 14px 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px;
  border: 1px solid rgba(222, 207, 198, .76); border-radius: 20px;
  background: rgba(255, 253, 250, .78); box-shadow: 0 10px 32px rgba(75, 50, 38, .045); backdrop-filter: blur(16px);
}
.profile-viewbar-copy { min-width: 0; display: grid; gap: 2px; }
.profile-viewbar-copy > span { color: #b26b54; font-size: 8.5px; font-weight: 850; letter-spacing: 1.25px; }
.profile-viewbar-copy > strong { overflow: hidden; color: #51433c; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-view-switch {
  flex: 0 0 auto; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  border: 1px solid rgba(221, 207, 198, .82); border-radius: 15px; background: rgba(244, 239, 235, .82);
}
.profile-view-switch button {
  min-width: 152px; min-height: 42px; padding: 7px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 11px; background: transparent; color: #7d6f67; font-size: 11.5px; font-weight: 760;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.profile-view-switch button i {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 8px;
  background: rgba(137, 116, 104, .08); color: #9a887e; font-size: 9px; font-style: normal; font-weight: 850;
}
.profile-view-switch button:hover { color: #9f513c; background: rgba(255, 255, 255, .56); }
.profile-view-switch button[aria-selected="true"] {
  background: rgba(255, 255, 255, .96); color: #9b4e39; box-shadow: 0 5px 16px rgba(90, 60, 45, .08);
}
.profile-view-switch button[aria-selected="true"] i {
  background: linear-gradient(145deg, #f6a17b, #d9684e 62%, #9c7ac2 145%); color: #fff;
}
.profile-view-switch button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.profile-shell [data-profile-panel][hidden],
.profile-shell [data-profile-card-action][hidden],
.profile-shell [data-profile-achievement-action][hidden] { display: none !important; }
.profile-panel,
.profile-hero {
  border: 1px solid rgba(222, 207, 198, .82); border-radius: 26px;
  background: rgba(255, 253, 250, .86); box-shadow: 0 16px 46px rgba(75, 50, 38, .065);
}
.profile-hero {
  min-height: 304px; padding: 42px 44px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 168px; grid-template-rows: 1fr auto; gap: 26px 40px;
  background:
    linear-gradient(118deg, rgba(255, 250, 245, .97), rgba(255, 252, 249, .94) 54%, rgba(247, 241, 253, .92)),
    #fff;
}
.profile-hero::before {
  content: ''; position: absolute; width: 430px; height: 430px; right: -170px; top: -230px;
  border-radius: 50%; border: 72px solid rgba(154, 126, 202, .055); pointer-events: none;
}
.profile-hero-orbit {
  position: absolute; width: 330px; height: 330px; right: 35px; bottom: -250px; border-radius: 50%;
  border: 1px solid rgba(218, 105, 75, .15); box-shadow: 0 0 0 38px rgba(238, 154, 111, .035), 0 0 0 76px rgba(145, 117, 196, .025);
}
.profile-identity { min-width: 0; display: flex; align-items: flex-start; gap: 22px; position: relative; z-index: 1; }
.profile-avatar {
  width: 76px; height: 76px; flex: 0 0 76px; display: grid; place-items: center;
  border: 6px solid rgba(255, 255, 255, .76); border-radius: 25px;
  background: linear-gradient(145deg, #f5a078 0%, #d8674e 55%, #9a78c4 125%); color: #fff;
  box-shadow: 0 12px 28px rgba(171, 79, 56, .22); font-family: Georgia, "Songti SC", serif; font-size: 32px; font-weight: 800;
}
.profile-identity-copy { min-width: 0; }
.profile-eyebrow { display: block; margin: 1px 0 8px; color: #b56a53; font-size: 10px; font-weight: 850; letter-spacing: 1.7px; }
.profile-identity-copy h1 { color: #342a25; font-family: Georgia, "Songti SC", "STSong", serif; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; letter-spacing: -.6px; }
.profile-identity-copy > p { max-width: 650px; margin-top: 10px; color: #776a62; font-size: 15px; line-height: 1.75; }
.profile-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tags span {
  min-height: 28px; padding: 3px 11px; display: inline-flex; align-items: center;
  border: 1px solid rgba(220, 202, 190, .82); border-radius: 999px; background: rgba(255, 255, 255, .66); color: #6e5d53; font-size: 11px;
}
.profile-hero-actions { align-self: end; display: flex; gap: 10px; position: relative; z-index: 1; }
.profile-hero-actions .btn-ghost,
.profile-hero-actions .btn-primary { min-height: 44px; }
.profile-stage-orb {
  --profile-progress: 0deg; grid-column: 2; grid-row: 1 / span 2; align-self: center;
  width: 158px; height: 158px; padding: 8px; border-radius: 50%; position: relative; z-index: 1;
  background: conic-gradient(var(--profile-coral) var(--profile-progress), rgba(217, 201, 193, .45) 0);
  box-shadow: 0 18px 35px rgba(92, 63, 50, .09);
}
.profile-stage-orb::after { content: ''; position: absolute; inset: -10px; border: 1px solid rgba(214, 100, 74, .12); border-radius: 50%; }
.profile-stage-orb > div {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 253, 250, .97); text-align: center;
}
.profile-stage-orb small { color: #9a887e; font-size: 10px; }
.profile-stage-orb strong { margin: 2px 0 3px; color: #43352f; font-size: 17px; }
.profile-stage-orb span { color: var(--profile-coral); font-family: Georgia, serif; font-size: 22px; font-weight: 800; }
.profile-stage-orb span i { margin: 0 3px; color: #c0b2ab; font-size: 12px; font-style: normal; }

.profile-journey { padding: 26px 30px 29px; overflow: hidden; }
.profile-section-head { margin-bottom: 23px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.profile-section-head > div > span { display: block; margin-bottom: 2px; color: #a77967; font-size: 11px; font-weight: 750; }
.profile-section-head h2 { color: #3a302a; font-size: 21px; line-height: 1.35; }
.profile-section-head > small { color: #9b8b82; font-size: 10.5px; }
.profile-section-head.compact { margin-bottom: 18px; align-items: center; }
.profile-section-head.compact em {
  max-width: 48%; padding: 4px 10px; overflow: hidden; border-radius: 999px; background: #fff1e9;
  color: #a55740; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap;
}
.profile-stage-track {
  --stage-progress: 0%; min-width: 680px; padding: 4px 2px 0; position: relative;
  display: grid; grid-template-columns: repeat(7, minmax(74px, 1fr)); gap: 10px;
}
.profile-stage-track:focus-visible { outline: 2px solid rgba(215, 101, 74, .52); outline-offset: 7px; border-radius: 9px; }
.profile-stage-scroll-hint { display: none; }
.profile-stage-track::before,
.profile-stage-track::after { content: ''; position: absolute; left: 4.5%; top: 18px; height: 2px; border-radius: 999px; }
.profile-stage-track::before { right: 4.5%; background: #eadfd8; }
.profile-stage-track::after { width: calc(var(--stage-progress) * .91); background: linear-gradient(90deg, #dc6a4e, #a781c3); }
.profile-stage-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; text-align: center; }
.profile-stage-step i {
  width: 30px; height: 30px; display: grid; place-items: center; border: 5px solid #fffdfa; border-radius: 50%;
  background: #eee5df; color: #9c8c83; box-shadow: 0 0 0 1px rgba(218, 204, 195, .8); font-size: 10px; font-style: normal; font-weight: 800;
}
.profile-stage-step span { color: #998981; font-size: 10.5px; white-space: nowrap; }
.profile-stage-step.is-done i { background: #f2b29a; color: #fff; box-shadow: 0 0 0 1px rgba(217, 104, 77, .32); }
.profile-stage-step.is-done span { color: #936653; }
.profile-stage-step.is-current i { transform: scale(1.18); background: linear-gradient(145deg, #df6a4d, #9a79c1); color: #fff; box-shadow: 0 5px 15px rgba(161, 93, 78, .2); }
.profile-stage-step.is-current span { color: #463833; font-weight: 800; }

.profile-dashboard { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 22px; }
.profile-focus-card,
.profile-growth-card,
.profile-story,
.profile-timeline { padding: 28px 30px; }
.profile-focus-block { padding: 20px 22px; border: 1px solid rgba(225, 211, 202, .78); border-radius: 18px; }
.profile-focus-block + .profile-focus-block { margin-top: 12px; }
.profile-focus-block > small { display: block; margin-bottom: 5px; color: #aa7865; font-size: 10.5px; font-weight: 800; }
.profile-focus-block.goal { background: linear-gradient(135deg, #fff7f0, #fffaf7); }
.profile-focus-block.goal.is-overdue { border-color: rgba(205, 134, 82, .34); background: linear-gradient(135deg, #fff6e8, #fffaf4); }
.profile-focus-block.goal.is-overdue > span { color: #a56b3f; font-weight: 700; }
.profile-focus-block.goal strong { display: block; color: #3d312b; font-size: 18px; line-height: 1.55; }
.profile-focus-block.goal span { display: block; margin-top: 5px; color: #9a887e; font-size: 10.5px; }
.profile-focus-block.bottleneck { background: linear-gradient(135deg, #faf7ff, #fffafd); }
.profile-focus-block.bottleneck p { color: #554841; font-size: 13.5px; line-height: 1.75; }
.profile-focus-block.bottleneck button { margin-top: 9px; padding: 0; border: 0; background: transparent; color: #9a604c; font-size: 11.5px; font-weight: 750; }
.profile-focus-block.bottleneck button:hover { color: var(--profile-coral); }
.profile-focus-block.bottleneck button i { margin-left: 4px; font-style: normal; }
.profile-action-block { margin-top: 18px; }
.profile-action-block > div:first-child { display: flex; justify-content: space-between; gap: 16px; }
.profile-action-block > div:first-child small { color: #61534c; font-size: 11px; font-weight: 850; }
.profile-action-block > div:first-child span { color: #a09188; font-size: 10px; }
.profile-action-list { margin-top: 8px; display: grid; gap: 6px; }
.profile-action-list button {
  width: 100%; min-height: 42px; padding: 7px 9px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  border: 0; border-radius: 10px; background: transparent; text-align: left;
}
.profile-action-list button:hover { background: #fff5ef; }
.profile-action-list button > i { width: 15px; height: 15px; border: 1.5px solid #d6b7a9; border-radius: 50%; }
.profile-action-list button > span { overflow: hidden; color: #51443d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-action-list button > small { color: #b27660; font-size: 9.5px; opacity: 0; transition: opacity .15s ease; }
.profile-action-list button:hover > small,
.profile-action-list button:focus-visible > small { opacity: 1; }
.profile-action-list button:disabled { opacity: .5; cursor: wait; }
.profile-action-empty { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: #f8f3ef; color: #8d7c73; font-size: 11.5px; }

.profile-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-metrics > div { min-height: 112px; padding: 16px; display: flex; flex-direction: column; border-radius: 16px; }
.profile-metrics b { font-family: Georgia, serif; font-size: 29px; line-height: 1.1; }
.profile-metrics span { margin-top: 6px; color: #4e413b; font-size: 11.5px; font-weight: 800; }
.profile-metrics small { margin-top: 2px; color: #918078; font-size: 9px; }
.profile-metrics .coral { background: #fff0e9; color: #d16348; }
.profile-metrics .violet { background: #f2edfa; color: #8066b7; }
.profile-metrics .mint { background: #ebf5f1; color: #578b7b; }
.profile-metrics .amber { background: #fbf2df; color: #b47b32; }
.profile-completion { margin-top: 16px; padding-top: 17px; display: flex; align-items: center; gap: 15px; border-top: 1px solid #ebe1db; }
.profile-completion-ring {
  --completion: 0deg; width: 78px; height: 78px; flex: 0 0 78px; padding: 6px; border-radius: 50%;
  background: conic-gradient(var(--profile-violet) var(--completion), #ece5e2 0);
}
.profile-completion-ring > span { width: 100%; height: 100%; display: grid; place-content: center; border-radius: 50%; background: #fffdfa; text-align: center; }
.profile-completion-ring b { color: #57484f; font-family: Georgia, serif; font-size: 17px; line-height: 1; }
.profile-completion-ring small { margin-top: 3px; color: #96868a; font-size: 8px; }
.profile-completion-copy { display: grid; gap: 9px; min-width: 0; }
.profile-completion-copy p { display: grid; gap: 4px; }
.profile-completion-copy p b { color: #554740; font-size: 11.5px; line-height: 1.55; }
.profile-completion-copy p span { color: #9b8b82; font-size: 9.5px; }
.profile-completion-copy button { justify-self: start; padding: 0; border: 0; background: transparent; color: #ad5f49; font-size: 10px; font-weight: 750; }
.profile-completion-copy button i { margin-left: 3px; font-style: normal; transition: transform .15s ease; }
.profile-completion-copy button:hover i { display: inline-block; transform: translateX(2px); }

.profile-story { padding-bottom: 24px; }
.profile-story-actions { display: flex; align-items: center; gap: 12px; }
.profile-story-actions small { color: #9b8b82; font-size: 10.5px; }
.profile-story-actions button {
  min-height: 34px; padding: 6px 12px; border: 1px solid #dfcfc6; border-radius: 10px;
  background: rgba(255, 255, 255, .76); color: #9a5f4b; font-size: 10.5px; font-weight: 750;
}
.profile-story-actions button:hover { border-color: #d9785c; background: #fff2eb; }
.profile-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.profile-story-group { min-width: 0; }
.profile-story-group + .profile-story-group { padding-left: 28px; border-left: 1px solid #eadfd9; }
.profile-story-group h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: #483b34; font-size: 14px; }
.profile-story-group h3 i { color: #c8765b; font-family: Georgia, serif; font-size: 10px; font-style: normal; letter-spacing: .7px; }
.profile-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profile-field { min-width: 0; padding: 12px 14px; border-radius: 12px; background: #faf7f4; }
.profile-field.wide { grid-column: 1 / -1; }
.profile-field small { display: block; color: #75655d; font-size: 9.5px; }
.profile-field p { margin-top: 3px; color: #51443d; font-size: 11.5px; line-height: 1.65; white-space: pre-line; }
.profile-field.is-empty p { color: #796a63; }
.profile-privacy-note { margin-top: 22px; padding: 13px 16px; display: flex; align-items: center; gap: 13px; border-radius: 12px; background: #f4f0ee; }
.profile-privacy-note span { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; background: #fff; color: #875f51; font-size: 9px; font-weight: 800; }
.profile-privacy-note p { color: #6f6059; font-size: 10px; }

.profile-timeline-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.profile-timeline-list > div { min-width: 0; padding: 16px 16px 15px; display: flex; gap: 10px; border-radius: 14px; background: #faf7f4; }
.profile-timeline-list > div > i { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 5px; border-radius: 50%; background: linear-gradient(145deg, #df7255, #9378be); box-shadow: 0 0 0 4px #f3e8e4; }
.profile-timeline-list > div > span { min-width: 0; display: grid; align-content: start; }
.profile-timeline-list small { overflow: hidden; color: #9d8b82; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.profile-timeline-list b { margin-top: 3px; overflow: hidden; color: #51433c; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.profile-timeline-list p { margin-top: 4px; overflow: hidden; color: #8b7b73; font-size: 9.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.profile-timeline-empty { padding: 22px; border: 1px dashed #ddcec5; border-radius: 15px; background: #faf7f4; text-align: center; }
.profile-timeline-empty b { color: #65564e; font-size: 12.5px; }
.profile-timeline-empty p { margin-top: 4px; color: #998981; font-size: 10.5px; }

/* 个人事业主页：阶段由用户选择，里程碑由用户点亮 */
.milestone-profile-hero {
  min-height: 270px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto;
}
.milestone-profile-hero .profile-identity { grid-column: 1 / -1; }
.milestone-profile-hero .profile-hero-actions { grid-column: 2; grid-row: 2; }
.profile-hero-status {
  grid-column: 1; grid-row: 2; min-width: 0; display: flex; align-items: stretch; gap: 10px; position: relative; z-index: 1;
}
.profile-hero-status > span {
  min-width: 150px; padding: 13px 16px; display: grid; gap: 3px;
  border: 1px solid rgba(224, 210, 201, .75); border-radius: 14px; background: rgba(255, 255, 255, .64);
}
.profile-hero-status small { color: #98877e; font-size: 9.5px; }
.profile-hero-status b { color: #433630; font-size: 14px; }
.profile-hero-status b i { color: #aa9a91; font-size: 10px; font-style: normal; font-weight: 600; }
.profile-section-action {
  min-height: 36px; padding: 7px 13px; border: 1px solid #dfcdc3; border-radius: 11px;
  background: rgba(255, 255, 255, .72); color: #995c48; font-size: 10.5px; font-weight: 800;
}
.profile-section-action:hover { border-color: #d9785c; background: #fff2eb; }
.profile-section-intro { margin: -11px 0 23px; color: #908078; font-size: 11px; line-height: 1.7; }
.profile-stage-track.selectable { padding-bottom: 2px; }
.profile-stage-track.selectable .profile-stage-step {
  padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer;
}
.profile-stage-track.selectable .profile-stage-step:hover i,
.profile-stage-track.selectable .profile-stage-step:focus-visible i { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(138, 88, 70, .16); }
.profile-stage-track.selectable .profile-stage-step:focus-visible { outline: none; }
.profile-stage-track.selectable .profile-stage-step.is-past i { background: #f2b29a; color: #fff; box-shadow: 0 0 0 1px rgba(217, 104, 77, .32); }
.profile-stage-track.selectable .profile-stage-step.is-past span { color: #936653; }

.profile-milestones { padding: 28px 30px 32px; }
.profile-achievement-gallery-entry {
  width: 100%; margin: -7px 0 25px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid rgba(188, 135, 55, .32); border-radius: 16px; background: linear-gradient(110deg, #fff8eb, #fffdf9 52%, #f7eef0);
  color: #58433a; text-align: left; box-shadow: 0 8px 24px rgba(91, 58, 42, .055); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.profile-achievement-gallery-entry:hover,
.profile-achievement-gallery-entry:focus-visible { transform: translateY(-2px); border-color: #c59047; box-shadow: 0 12px 28px rgba(91, 58, 42, .09); outline: none; }
.profile-achievement-gallery-entry span { display: grid; gap: 3px; }
.profile-achievement-gallery-entry b { font-family: Georgia, "Songti SC", serif; font-size: 15px; }
.profile-achievement-gallery-entry small { color: #8f7a6e; font-size: 9.5px; }
.profile-achievement-gallery-entry > i { color: #a46345; font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.profile-milestone-progress { height: 5px; margin: -8px 0 26px; overflow: hidden; border-radius: 999px; background: #eee5df; }
.profile-milestone-progress i {
  width: var(--milestone-progress); height: 100%; display: block; border-radius: inherit;
  background: linear-gradient(90deg, #df6a4d, #a17bc2); transition: width .25s ease;
}
.profile-milestone-phases { display: grid; gap: 24px; }
.profile-milestone-phases > section { min-width: 0; }
.profile-milestone-phases h3 {
  margin-bottom: 9px; color: #8b776c; font-size: 10px; font-weight: 850; letter-spacing: .6px;
}
.profile-milestone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-milestone-card {
  min-width: 0; min-height: 108px; padding: 15px 16px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  border: 1px solid #e7dcd5; border-radius: 16px; background: #fbf8f5; text-align: left; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.profile-milestone-card:hover,
.profile-milestone-card:focus-visible { transform: translateY(-2px); border-color: #d9b8a8; box-shadow: 0 9px 22px rgba(78, 52, 41, .075); outline: none; }
.profile-milestone-card.is-next { border-color: rgba(216, 103, 76, .46); background: linear-gradient(135deg, #fff5ee, #fffaf7); }
.profile-milestone-card.is-achieved { border-color: rgba(111, 157, 143, .35); background: linear-gradient(135deg, #edf7f3, #fbf9f6); }
.profile-milestone-number {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eee6e1;
  color: #8e7d74; font-family: Georgia, serif; font-size: 13px; font-weight: 800;
}
.is-next .profile-milestone-number { background: #e27254; color: #fff; }
.is-achieved .profile-milestone-number { background: #6d9d8e; color: #fff; font-family: inherit; }
.profile-milestone-copy { min-width: 0; display: grid; align-content: center; }
.profile-milestone-copy small { color: #a18f85; font-size: 8.5px; }
.profile-milestone-copy b { margin-top: 3px; color: #4b3e37; font-size: 12.5px; line-height: 1.5; }
.profile-milestone-copy em { margin-top: 3px; color: #95847b; font-size: 9.5px; font-style: normal; line-height: 1.55; }
.profile-milestone-card > i { align-self: end; color: #ad6953; font-size: 9px; font-style: normal; white-space: nowrap; }

.profile-next-milestone {
  padding: 28px 30px; display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 22px;
  background: linear-gradient(125deg, rgba(255, 246, 238, .94), rgba(255, 253, 250, .9) 58%, rgba(244, 239, 252, .88));
}
.profile-next-mark {
  width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px;
  background: linear-gradient(145deg, #ed9a73, #d56449 58%, #9b79c2 135%); color: #fff;
  box-shadow: 0 10px 22px rgba(169, 87, 65, .18); font-family: Georgia, serif; font-size: 23px; font-weight: 800;
}
.profile-next-copy { min-width: 0; }
.profile-next-copy > span { color: #a26a55; font-size: 9.5px; font-weight: 800; }
.profile-next-copy h2 { margin-top: 1px; color: #3d322c; font-size: 20px; }
.profile-next-copy b { margin-top: 9px; display: block; color: #54443d; font-size: 14px; }
.profile-next-copy p { max-width: 620px; margin-top: 4px; color: #8c7b72; font-size: 10.5px; line-height: 1.65; }
.profile-next-actions { display: grid; gap: 8px; }
.profile-next-actions button { min-width: 150px; min-height: 40px; }

.milestone-timeline .profile-timeline-list > button {
  min-width: 0; padding: 16px 16px 15px; display: flex; gap: 10px; border: 1px solid transparent; border-radius: 14px;
  background: #faf7f4; text-align: left;
}
.milestone-timeline .profile-timeline-list > button:hover,
.milestone-timeline .profile-timeline-list > button:focus-visible { border-color: #ddc7bb; background: #fff9f5; outline: none; }
.milestone-timeline .profile-timeline-list > button > i { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 5px; border-radius: 50%; background: linear-gradient(145deg, #df7255, #9378be); box-shadow: 0 0 0 4px #f3e8e4; }
.milestone-timeline .profile-timeline-list > button > span { min-width: 0; display: grid; align-content: start; }

.modal.profile-stage-modal { width: 650px; }
.profile-stage-options { max-height: min(58vh, 540px); margin: 16px 0 5px; display: grid; gap: 8px; overflow-y: auto; }
.profile-stage-options label { cursor: pointer; }
.profile-stage-options input { position: absolute; opacity: 0; pointer-events: none; }
.profile-stage-options label > span {
  min-height: 66px; padding: 11px 13px; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 11px;
  border: 1px solid #e5d9d2; border-radius: 14px; background: #fbf8f5;
}
.profile-stage-options label i { grid-row: 1 / span 2; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #eee5df; color: #8e7c72; font-style: normal; font-weight: 800; }
.profile-stage-options label b { color: #51433c; font-size: 12px; }
.profile-stage-options label small { margin-top: 2px; color: #94837a; font-size: 9.5px; line-height: 1.45; }
.profile-stage-options input:checked + span { border-color: #d87458; background: #fff3ec; box-shadow: 0 0 0 2px rgba(216, 105, 79, .1); }
.profile-stage-options input:checked + span i { background: linear-gradient(145deg, #df6a4d, #9a79c1); color: #fff; }
.profile-stage-options input:focus-visible + span { outline: 2px solid rgba(215, 101, 74, .52); outline-offset: 2px; }
.modal.profile-milestone-modal { width: 580px; }
.profile-milestone-modal > label { margin-top: 14px; display: block; color: #62534b; font-size: 11.5px; font-weight: 700; }
.profile-milestone-modal textarea { resize: vertical; min-height: 96px; }
.milestone-modal-actions { grid-template-columns: 1fr auto auto; }
.btn-link.danger { justify-self: start; border: 0; background: transparent; color: #b85043; font-size: 10.5px; }

.profile-loading { min-height: 70vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-content: center; }
.profile-loading span,
.profile-loading b,
.profile-loading i { display: block; border-radius: 24px; background: linear-gradient(100deg, #f2ebe6 20%, #fbf8f5 45%, #f2ebe6 70%); background-size: 220% 100%; animation: profile-shimmer 1.4s infinite linear; }
.profile-loading span { grid-column: 1 / -1; height: 280px; }
.profile-loading b { grid-column: 1 / -1; height: 120px; }
.profile-loading i { height: 210px; }
.profile-load-error { min-height: 66vh; display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; }
.profile-load-error > span { color: #b46850; font-size: 11px; font-weight: 800; }
.profile-load-error h1 { max-width: 620px; margin-top: 8px; color: #3f332d; font-family: Georgia, "Songti SC", serif; font-size: 32px; }
.profile-load-error p { margin-top: 7px; color: #8c7b72; font-size: 13px; }
.profile-load-error > div { margin-top: 21px; display: flex; gap: 10px; }
.profile-edit-mask { align-items: flex-start; }
.modal.profile-edit-modal { width: 720px; }
.profile-editor-kicker { display: block; margin-bottom: 3px; color: #b46750; font-size: 10px; font-weight: 800; letter-spacing: .5px; }
.modal.profile-edit-modal h3 { margin-bottom: 2px; }
.profile-editor-intro { margin-bottom: 10px; color: #716159; font-size: 11px; }
.profile-editor-draft-status { margin-bottom: 13px; }
.profile-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.profile-edit-grid > .wide { grid-column: 1 / -1; }
.profile-edit-grid label { font-size: 11.5px; }
.profile-edit-grid textarea { resize: vertical; min-height: 76px; }
@keyframes profile-shimmer { to { background-position: -220% 0; } }

@media (max-width: 900px) {
  .profile-shell { width: min(100% - 32px, 760px); padding-top: 22px; }
  .profile-hero { grid-template-columns: minmax(0, 1fr) 138px; padding: 34px; gap: 22px 28px; }
  .profile-stage-orb { width: 132px; height: 132px; }
  .profile-dashboard { grid-template-columns: 1fr; }
  .profile-story-grid { grid-template-columns: 1fr; gap: 23px; }
  .profile-story-group + .profile-story-group { padding: 23px 0 0; border: 0; border-top: 1px solid #eadfd9; }
  .profile-timeline-list { grid-template-columns: 1fr 1fr; }
  .profile-journey { overflow-x: auto; }
  .profile-stage-scroll-hint { position: sticky; left: 0; width: max-content; margin: 13px auto 0; display: block; color: #a3948c; font-size: 9.5px; text-align: center; }
  .milestone-profile-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-milestone-grid { grid-template-columns: 1fr; }
  .profile-next-milestone { grid-template-columns: 62px minmax(0, 1fr); }
  .profile-next-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .profile-shell { width: calc(100% - 20px); padding: 12px 0 56px; gap: 12px; }
  .profile-viewbar { padding: 13px; display: grid; gap: 10px; border-radius: 18px; }
  .profile-viewbar-copy { padding-inline: 3px; }
  .profile-viewbar-copy > strong { font-size: 12px; }
  .profile-view-switch { width: 100%; }
  .profile-view-switch button { min-width: 0; min-height: 44px; padding-inline: 8px; font-size: 10.5px; }
  .profile-panel,
  .profile-hero { border-radius: 20px; }
  .profile-hero { min-height: 0; padding: 24px 20px; display: flex; flex-direction: column; gap: 20px; }
  .profile-identity { gap: 14px; }
  .profile-avatar { width: 56px; height: 56px; flex-basis: 56px; border-width: 4px; border-radius: 19px; font-size: 24px; }
  .profile-eyebrow { margin-bottom: 5px; font-size: 8px; letter-spacing: 1px; }
  .profile-identity-copy h1 { font-size: 25px; line-height: 1.28; }
  .profile-identity-copy > p { font-size: 12px; }
  .profile-tags { margin-top: 10px; gap: 5px; }
  .profile-tags span { min-height: 25px; padding: 2px 8px; font-size: 9px; }
  .profile-stage-orb { width: 116px; height: 116px; align-self: center; order: 2; }
  .profile-stage-orb strong { font-size: 14px; }
  .profile-hero-actions { width: 100%; order: 3; display: grid; grid-template-columns: 1fr 1fr; }
  .profile-hero-actions button { width: 100%; padding-inline: 8px; }
  .profile-journey,
  .profile-focus-card,
  .profile-growth-card,
  .profile-story,
  .profile-timeline { padding: 21px 18px; }
  .profile-section-head { margin-bottom: 18px; align-items: flex-start; }
  .profile-section-head h2 { font-size: 18px; }
  .profile-section-head > small { max-width: 42%; text-align: right; }
  .profile-story-actions { flex-direction: column; align-items: flex-end; gap: 6px; }
  .profile-story-actions small { max-width: 190px; text-align: right; }
  .profile-stage-track { min-width: 620px; }
  .milestone-profile-hero { display: flex; }
  .profile-hero-status { width: 100%; order: 2; }
  .profile-hero-status > span { min-width: 0; flex: 1; padding: 11px 12px; }
  .profile-hero-actions { order: 3; }
  .profile-milestones { padding: 21px 18px; }
  .profile-milestone-card { min-height: 102px; padding: 13px; grid-template-columns: 32px minmax(0, 1fr); }
  .profile-milestone-card > i { grid-column: 2; justify-self: start; }
  .profile-next-milestone { padding: 22px 18px; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .profile-next-mark { width: 50px; height: 50px; border-radius: 16px; font-size: 19px; }
  .profile-next-copy h2 { font-size: 18px; }
  .profile-next-actions { grid-template-columns: 1fr; }
  .profile-next-actions button { width: 100%; }
  .profile-section-intro { margin-top: -9px; }
  .profile-stage-options label > span { min-height: 62px; }
  .milestone-modal-actions { grid-template-columns: 1fr 1fr; }
  .milestone-modal-actions .danger { grid-column: 1 / -1; }
  .profile-focus-block { padding: 17px; }
  .profile-focus-block.goal strong { font-size: 16px; }
  .profile-metrics > div { min-height: 102px; padding: 14px; }
  .profile-field-grid { grid-template-columns: 1fr; }
  .profile-field.wide { grid-column: auto; }
  .profile-privacy-note { align-items: flex-start; }
  .profile-timeline-list { grid-template-columns: 1fr; }
  .profile-action-list button > small { opacity: 1; }
  .profile-edit-grid { grid-template-columns: 1fr; }
  .profile-edit-grid > .wide { grid-column: auto; }
  .profile-loading { grid-template-columns: 1fr; gap: 10px; }
  .profile-loading span { height: 340px; }
  .profile-loading b { height: 130px; }
  .profile-loading i { height: 180px; }
}

/* 行业案例监测 */
.industry-monitor-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 22px;
  margin-bottom: 18px; padding: 22px 24px; border: 1px solid rgba(205, 169, 145, .34); border-radius: 22px;
  background: linear-gradient(135deg, #fff8ef, #fffdf9 58%, #f6fbf7); box-shadow: 0 10px 34px rgba(112, 72, 51, .06);
}
.industry-monitor-hero h3 { margin: 4px 0 7px; font-size: 23px; color: var(--text); }
.industry-monitor-hero p { max-width: 720px; margin: 0; color: var(--text-soft); line-height: 1.65; }
.monitor-eyebrow { color: #a45e43; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.monitor-badge {
  display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 999px;
  background: #f2eee9; color: #78675d; font-size: 11px; font-weight: 800; white-space: nowrap;
}
.monitor-badge.ok { background: #eaf8ef; color: #24754a; }
.monitor-badge.wait { background: #fff1dc; color: #9a5c1e; }
.monitor-badge.error { background: #fff0ee; color: #b44739; }
.industry-monitor-actions { margin-bottom: 16px; }
.industry-monitor-config {
  margin: 12px 0 22px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.72); overflow: hidden;
}
.industry-monitor-config > summary { padding: 15px 18px; color: var(--text); font-size: 14px; font-weight: 850; cursor: pointer; }
.industry-monitor-config[open] > summary { border-bottom: 1px solid var(--border); background: #fffaf5; }
.industry-monitor-config > :not(summary) { margin-inline: 18px; }
.monitor-config-grid { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 12px; padding-top: 17px; }
.monitor-config-grid label,
.monitor-industries-label { display: grid; gap: 6px; color: var(--text-soft); font-size: 12px; font-weight: 750; }
.monitor-config-grid input,
.monitor-industries-label textarea,
.industry-source-card input { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); }
.monitor-config-grid input { min-height: 39px; padding: 8px 10px; }
.monitor-config-grid .monitor-toggle { display: flex; align-items: center; align-self: end; min-height: 39px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fffaf5; }
.monitor-config-grid .monitor-toggle input { width: auto; min-height: 0; margin: 0 7px 0 0; }
.monitor-industries-label { margin-top: 15px; }
.monitor-industries-label textarea { min-height: 128px; padding: 11px 12px; resize: vertical; line-height: 1.65; }
.industry-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.industry-source-card { display: grid; gap: 9px; padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: #faf8f5; }
.industry-source-card.is-ready { border-color: rgba(77, 156, 108, .35); background: #f6fcf8; }
.industry-source-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.industry-source-head label { color: var(--text); font-size: 13px; font-weight: 820; }
.industry-source-card input[type="text"],
.industry-source-card input:not([type]) { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.industry-source-card .muted { font-size: 10.5px; line-height: 1.5; overflow-wrap: anywhere; }
.monitor-config-note { margin-top: 13px; padding: 11px 13px; border-radius: 11px; background: #f7f3ef; color: #6e6058; font-size: 11px; line-height: 1.65; }
.industry-case-filters { margin-top: 6px; }
.industry-case-filters input { flex: 1 1 260px; }
.monitor-case-title { color: #8f4b35; font-weight: 800; line-height: 1.45; text-decoration: none; }
.monitor-case-title:hover { text-decoration: underline; }
.monitor-score { display: inline-grid; place-items: center; min-width: 34px; min-height: 28px; padding: 3px 7px; border-radius: 9px; background: #fff0df; color: #a35a25; font-weight: 900; }
.monitor-metrics { color: var(--text-soft); font-size: 11px; line-height: 1.65; white-space: nowrap; }
.industry-case-table code { display: inline-block; max-width: 310px; color: #66554b; overflow-wrap: anywhere; white-space: normal; }

@media (max-width: 900px) {
  .monitor-config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .industry-monitor-hero { display: grid; padding: 17px; }
  .industry-source-grid,
  .monitor-config-grid { grid-template-columns: 1fr; }
  .industry-monitor-config > :not(summary) { margin-inline: 12px; }
}

/* 移动端顶部只保留品牌与账户入口，功能目录直接在主页中呈现。 */
@media (max-width: 640px) {
  .topbar { gap: 6px; }
  .topbar-account { margin-left: 1px; }
  .topbar-account > summary { width: 42px; padding: 5px 6px; justify-content: center; }
  .topbar-account > summary > span:last-child { display: none; }
}

@media (max-width: 370px) {
  .topbar .logo-wordmark { display: none; }
}

/* 长功能目录在桌面端保留搜索与分类上下文，滚到下方仍可随时切换。 */
@media (min-width: 901px) {
  .all-skills-panel { overflow: visible; }
  .skill-directory-controls {
    position: sticky; top: 68px; z-index: 6;
    margin: -12px -8px 6px; padding: 12px 8px 13px;
    border-bottom: 1px solid rgba(221, 207, 198, .7);
    background: linear-gradient(180deg, rgba(255, 253, 250, .98) 0%, rgba(255, 253, 250, .95) 78%, rgba(255, 253, 250, .88) 100%);
    box-shadow: 0 16px 22px -24px rgba(77, 50, 34, .42);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .skill-directory-controls .skill-filter-chips { margin-bottom: 0; }
}

/* ---------- 首页秩序优化：一个入口、一个工作区、一份功能目录 ---------- */
.has-current-task .yiren-hero {
  padding: 20px 24px 22px; column-gap: 34px; row-gap: 12px;
  border-color: rgba(238, 228, 220, .82);
  box-shadow: 0 14px 38px rgba(88, 62, 47, .065), inset 0 1px 0 rgba(255, 255, 255, .96);
}
.has-current-task .yiren-copy { margin-top: 2px; }
.has-current-task .yiren-copy p { margin-top: 7px; line-height: 1.62; }
.has-current-task .yiren-ask {
  border-color: rgba(224, 211, 202, .72);
  box-shadow: 0 7px 22px rgba(87, 61, 44, .055), inset 0 1px 0 #fff;
}
.has-current-task .current-task-section { margin-top: 26px; }
.current-task-section .home-section-head { margin-bottom: 12px; }
.current-task-section .home-section-head span { letter-spacing: .045em; }
.current-task-section .home-section-head h2::after,
.all-skills-panel .all-skills-head h2::after { width: 16px; height: 3px; vertical-align: 5px; opacity: .78; }

.current-task-layout { display: grid; gap: 14px; min-width: 0; }
.current-task-card {
  min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto;
  border-radius: 20px; box-shadow: 0 9px 26px rgba(79, 54, 39, .05);
}
.current-task-main {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start;
  gap: 13px; padding: 19px 20px 17px;
}
.current-task-main > .skill-icon { margin-top: 2px; }
.current-task-copy { gap: 3px; }
.current-task-copy small { color: #978a82; font-size: 10.5px; }
.current-task-copy b {
  display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  color: #3d332e; font-size: 15px; line-height: 1.42;
}
.current-task-copy em {
  display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  color: #83776f; font-size: 11.5px; line-height: 1.55;
}
.current-task-open { align-self: center; min-height: 40px; padding-inline: 14px; border-radius: 12px; }
.current-task-progress {
  grid-template-columns: auto minmax(0, 1fr); gap: 11px;
  padding: 10px 20px; background: rgba(251, 247, 244, .72);
}
.current-task-progress > span { font-size: 11px; }
.current-task-progress p { font-size: 11px; }
.current-task-progress > small:not(.current-task-draft-note) { display: none; }
.current-task-progress .current-task-draft-note { grid-column: 1 / -1; margin-left: 14px; font-size: 10px; }

.recent-task-panel {
  min-width: 0; padding: 13px; border-radius: 20px;
  background: linear-gradient(145deg, rgba(249, 246, 243, .8), rgba(249, 247, 253, .66));
}
.recent-task-subhead {
  margin: 0 2px 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #776961; font-size: 10.5px; font-weight: 750;
}
.recent-task-subhead small { color: #a0938b; font-size: 9.5px; font-weight: 500; }
.recent-task-panel .recent-task-grid.compact { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.recent-task-panel .recent-task {
  min-height: 68px; padding: 11px 12px; border-color: rgba(228, 217, 209, .7); border-radius: 14px;
  background: rgba(255, 255, 255, .72); box-shadow: none;
}
.recent-task-panel .recent-task:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(79, 54, 39, .06); }
.recent-task-panel .recent-task-copy b { font-size: 12.5px; }
.recent-task-panel .recent-task-copy small,
.recent-task-panel .recent-task > i { font-size: 10px; }

.all-skills-panel {
  overflow: visible; margin-top: 42px; padding: 30px 0 44px;
  border: 0; border-top: 1px solid rgba(221, 209, 200, .72); border-radius: 0;
  background: transparent; box-shadow: none; backdrop-filter: none;
}
.all-skills-panel .all-skills-head { margin-bottom: 6px; }
.all-skills-panel .dept-title { margin-top: 30px; }
.all-skills-panel .card-grid { gap: 12px; }
.all-skills-panel .skill-card { min-height: 114px; padding: 16px 17px 15px 19px; box-shadow: 0 4px 14px rgba(80, 55, 40, .028); }
.all-skills-panel .skill-card .desc {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 12.5px; line-height: 1.58;
}

@media (min-width: 901px) {
  .current-task-layout.has-recent-tasks { grid-template-columns: minmax(0, 1.58fr) minmax(282px, .82fr); align-items: stretch; }
  .skill-directory-controls {
    margin: 0 0 8px; padding: 10px 0 13px;
    background: linear-gradient(180deg, rgba(250, 247, 243, .985) 0%, rgba(250, 247, 243, .96) 82%, rgba(250, 247, 243, .9) 100%);
  }
}

@media (max-width: 900px) {
  .recent-task-panel { padding: 12px; }
  .all-skills-panel { margin-top: 34px; }
}

@media (max-width: 640px) {
  .has-current-task .yiren-hero { padding: 17px 15px 16px; row-gap: 10px; }
  .has-current-task .current-task-section { margin-top: 24px; }
  .current-task-main { grid-template-columns: 40px minmax(0, 1fr); gap: 11px; padding: 15px; }
  .current-task-copy { width: auto; }
  .current-task-open { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .current-task-progress { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 11px 15px; }
  .current-task-progress p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .current-task-progress .current-task-draft-note { margin-left: 14px; }
  .recent-task-panel { margin-top: 1px; padding: 12px 0; border-radius: 16px; }
  .recent-task-subhead { margin-inline: 12px; }
  .recent-task-panel .recent-task-grid.compact {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(245px, 84vw);
    gap: 9px; padding: 0 12px 3px; overflow-x: auto; scrollbar-width: none;
  }
  .recent-task-panel .recent-task-grid.compact::-webkit-scrollbar { display: none; }
  .all-skills-panel { margin-top: 30px; padding: 25px 0 36px; }
  .all-skills-panel .skill-card { min-height: 108px; }
}

/* ---------- 双栏工作台定稿：左侧弈人优先，右侧任务降噪，功能纵向浏览 ---------- */
.home-task-count {
  flex: 0 0 auto; color: #a0938a; font-size: 10px; font-style: normal; font-weight: 500; white-space: nowrap;
}

.skill-department-list {
  display: grid; gap: 28px; min-width: 0; margin-top: 24px;
}
.skill-department-group {
  min-width: 0; padding-top: 25px; border-top: 1px solid rgba(226, 215, 207, .78);
}
.skill-department-group:first-child { padding-top: 0; border-top: 0; }
.all-skills-panel .skill-department-group .dept-title { margin: 0 0 12px; }
.all-skills-panel .skill-department-group .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px;
}
.skill-directory-controls {
  position: static; margin: 0; padding: 0 0 18px; border-bottom: 1px solid rgba(224, 212, 203, .82);
  background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}

@media (min-width: 901px) {
  .skill-directory-controls {
    position: sticky; top: 68px; z-index: 6; margin: -12px -8px 8px; padding: 12px 8px 18px;
    background: linear-gradient(180deg, rgba(255, 253, 250, .985) 0%, rgba(255, 253, 250, .96) 84%, rgba(255, 253, 250, .9) 100%);
    box-shadow: 0 16px 22px -24px rgba(77, 50, 34, .38); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .home-container.has-current-task {
    display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: stretch;
    gap: 22px 24px; padding-top: 28px;
  }
  .home-container.has-current-task > #home-content { display: contents; }
  .home-container.has-current-task > .yiren-hero {
    grid-column: 1; grid-row: 1; min-height: 500px; padding: 27px 29px 28px;
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "top" "copy" "ask"; gap: 18px;
    border-color: rgba(255, 255, 255, .96); border-radius: 25px;
    box-shadow: 0 22px 58px rgba(87, 60, 44, .095), inset 0 1px 0 rgba(255, 255, 255, .98);
  }
  .has-current-task .yiren-copy {
    width: 100%; max-width: 520px; margin: 0; align-self: center;
  }
  .has-current-task .yiren-copy h1 {
    max-width: 500px; font-size: clamp(31px, 2.9vw, 39px); line-height: 1.18; letter-spacing: -1px;
  }
  .has-current-task .yiren-copy p { max-width: 440px; font-size: 13px; }
  .has-current-task .yiren-ask {
    width: 100%; align-self: end; padding: 15px 16px 12px; border-radius: 18px;
  }

  .has-current-task .home-workspace-panel {
    grid-column: 2; grid-row: 1; min-width: 0; min-height: 500px; margin: 0; padding: 27px 28px 25px;
    display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: start;
    border: 1px solid rgba(224, 212, 203, .9); border-radius: 25px;
    background: rgba(255, 253, 250, .82);
    box-shadow: 0 14px 38px rgba(80, 55, 40, .055), inset 0 1px 0 rgba(255, 255, 255, .92);
  }
  .home-workspace-panel .home-section-head {
    align-items: end; margin: 0; padding-bottom: 16px; border-bottom: 1px solid rgba(226, 215, 207, .86);
  }
  .home-workspace-panel .home-section-head span { font-size: 10px; letter-spacing: .04em; }
  .home-workspace-panel .home-section-head h2 { font-size: 21px; }
  .home-workspace-panel .home-section-head h2::after { display: none; }
  .home-workspace-panel .current-task-layout,
  .home-workspace-panel .current-task-layout.has-recent-tasks {
    grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; padding-top: 17px;
  }
  .home-workspace-panel .current-task-card {
    border: 1px solid rgba(228, 216, 207, .82); border-radius: 17px;
    background: rgba(255, 255, 255, .72); box-shadow: none;
  }
  .home-workspace-panel .current-task-main {
    grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 16px 17px 14px;
  }
  .home-workspace-panel .current-task-copy b { font-size: 14px; line-height: 1.4; -webkit-line-clamp: 1; }
  .home-workspace-panel .current-task-copy em { font-size: 10.5px; -webkit-line-clamp: 1; }
  .home-workspace-panel .current-task-open {
    min-height: 36px; padding: 6px 11px; border: 1px solid rgba(211, 164, 145, .56); border-radius: 10px;
    background: rgba(255, 252, 249, .88); color: #98513c; font-size: 10.5px; box-shadow: none;
  }
  .home-workspace-panel .current-task-open:hover {
    border-color: rgba(207, 102, 75, .48); background: #fff6f0; box-shadow: 0 6px 15px rgba(98, 64, 45, .07);
  }
  .home-workspace-panel .current-task-progress {
    grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 9px 17px;
    background: rgba(249, 246, 242, .65);
  }
  .home-workspace-panel .current-task-progress > span,
  .home-workspace-panel .current-task-progress p { font-size: 10px; }
  .home-workspace-panel .recent-task-panel { padding: 0; border-radius: 0; background: transparent; }
  .home-workspace-panel .recent-task-subhead { margin: 0 0 9px; }
  .home-workspace-panel .recent-task-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-workspace-panel .recent-task {
    min-height: 66px; padding: 10px 11px; border-radius: 13px; background: rgba(255, 255, 255, .64);
  }
  .home-workspace-panel .recent-task .skill-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .home-workspace-panel .recent-task-copy b { font-size: 11.5px; }
  .home-workspace-panel .recent-task-copy small,
  .home-workspace-panel .recent-task > i { font-size: 9px; }

  .has-current-task .all-skills-panel {
    grid-column: 1 / -1; grid-row: 2; margin-top: 8px; padding: 30px 31px 36px;
    border: 1px solid rgba(224, 212, 203, .86); border-radius: 24px;
    background: rgba(255, 253, 250, .76); box-shadow: 0 14px 42px rgba(80, 55, 40, .05);
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .all-skills-panel .skill-department-group .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .skill-department-list { gap: 24px; }
  .all-skills-panel .skill-department-group .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-task-count { padding-bottom: 2px; }
}

@media (max-width: 640px) {
  .home-workspace-panel .home-section-head { align-items: flex-start; }
  .home-workspace-panel .current-task-open {
    border: 1px solid rgba(211, 164, 145, .56); background: rgba(255, 252, 249, .92); color: #98513c; box-shadow: none;
  }
  .recent-task-panel .recent-task-grid.compact {
    grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-auto-columns: auto;
    gap: 8px; padding: 0 12px 3px; overflow: visible;
  }
  .skill-filter-chips {
    flex-wrap: wrap; margin: 9px 0 1px; padding: 2px 0 6px; overflow: visible;
  }
  .skill-filter-chip { flex: 0 0 auto; min-height: 36px; }
  .all-skills-panel .skill-department-group .card-grid { grid-template-columns: minmax(0, 1fr); }
  .skill-department-list { gap: 21px; margin-top: 20px; }
  .skill-department-group { padding-top: 20px; }
}

/* 对话页功能切换：保持桌面窄栏与移动抽屉里的三列结构。 */
@media (max-width: 900px) {
  .chat-page .chat-skill-switch { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .chat-page .chat-skill-switch > .skill-icon { width: 28px; height: 28px; border-radius: 9px; }
}

@media (max-width: 640px) {
  .chat-page .chat-sidebar .chat-skill-switch { min-height: 52px; padding: 8px 10px; }
  .chat-page .chat-sidebar .chat-skill-switch .chat-title-copy .desc { display: block; }
  .chat-page .chat-sidebar .chat-skill-switcher { top: 126px; right: 9px; bottom: 76px; left: 9px; }
  .chat-page .chat-skill-switcher-search input { font-size: 16px; }
  .chat-page .chat-skill-switcher-item { min-height: 50px; }
}

@media (max-width: 640px) and (max-height: 700px) {
  .chat-page .chat-sidebar .chat-skill-switcher { top: 120px; bottom: 66px; }
  .chat-page .chat-sidebar .chat-skill-switch { min-height: 47px; padding-block: 6px; }
}

/* ---------- 任务中心工作台：统一入口、全局任务记录与多形态任务 ---------- */
.workspace-sidebar { gap: 10px; }
.workspace-focus-toggle { display: none; }
@media (min-width: 641px) {
  .workspace-focus-toggle {
    position: fixed;
    z-index: 24;
    top: 20px;
    left: 272px;
    width: 28px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(218, 204, 195, .82);
    border-radius: 10px;
    background: rgba(255, 253, 250, .94);
    color: #8d7165;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(69, 47, 34, .07);
    transition: left .18s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
  }
  .workspace-focus-toggle:hover,
  .workspace-focus-toggle:focus-visible { color: #a64f38; background: #fff; box-shadow: var(--focus-ring); }
  .workspace-focus-toggle::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 7px);
    top: 50%;
    padding: 5px 8px;
    border: 1px solid rgba(218, 204, 195, .82);
    border-radius: 8px;
    background: rgba(255, 253, 250, .98);
    color: #6f5e55;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 7px 18px rgba(69, 47, 34, .09);
    opacity: 0;
    pointer-events: none;
    transform: translate(-3px, -50%);
    transition: opacity .14s ease, transform .14s ease;
  }
  .workspace-focus-toggle:hover::after,
  .workspace-focus-toggle:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
  .chat-page.is-focus-mode { grid-template-columns: minmax(0, 1fr); }
  .chat-page.is-focus-mode .workspace-sidebar { display: none; }
  .chat-page.is-focus-mode .workspace-focus-toggle { left: 10px; }
}
.workspace-task-actions { display: grid; gap: 7px; flex: 0 0 auto; }
.workspace-task-actions > button {
  width: 100%; min-width: 0; min-height: 54px; padding: 9px 10px; display: grid;
  grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 8px;
  border: 1px solid rgba(220, 205, 195, .82); border-radius: 14px;
  background: rgba(255, 255, 255, .64); color: #493c35; text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.workspace-task-actions > button:hover,
.workspace-task-actions > button:focus-visible {
  border-color: rgba(215, 101, 74, .34); background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 20px rgba(79, 54, 40, .06), var(--focus-ring); transform: translateY(-1px);
}
.workspace-task-actions > button > span:first-child {
  width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px;
  background: #fff0e7; color: #b4533a; font-size: 16px; font-weight: 700;
}
.workspace-task-actions .workspace-new-special > span:first-child { background: #f1ecff; color: #7960b2; }
.workspace-task-actions > button > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.workspace-task-actions b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.workspace-task-actions small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #95877f; font-size: 9.5px; }
.task-list-empty { min-height: 112px; padding: 24px 12px; display: grid; place-items: center; align-content: center; gap: 4px; color: #8d8078; text-align: center; }
.task-list-empty span { font-size: 12px; font-weight: 700; }
.task-list-empty small { color: #a2968e; font-size: 10px; }
.chat-session-row.transient .chat-session-item { border-style: dashed; }
.chat-session-row.transient .session-title { color: #836e62; }

/* 任务记录：先看主题，再看功能与时间；排序偏好与内容状态分离。 */
.task-list-controls {
  margin: 0 4px 7px; display: flex; align-items: center; justify-content: space-between; gap: 7px;
}
.task-kind-filters {
  min-width: 0; padding: 2px; display: flex; align-items: center; gap: 1px;
  border: 1px solid rgba(222, 210, 201, .68); border-radius: 9px; background: rgba(255, 255, 255, .42);
}
.task-kind-filters button {
  min-height: 25px; padding: 3px 7px; border: 0; border-radius: 7px; background: transparent;
  color: #81736b; font-size: 10.5px; white-space: nowrap;
}
.task-kind-filters button:hover { color: #66574f; background: rgba(255, 255, 255, .72); }
.task-kind-filters button.active { color: #8f4c38; background: #fff; box-shadow: 0 2px 7px rgba(79, 54, 40, .07); font-weight: 750; }
.task-sort-select { flex: 0 0 auto; display: flex; align-items: center; gap: 3px; color: #80726a; font-size: 10px; }
.task-sort-select select {
  max-width: 92px; min-height: 29px; padding: 3px 20px 3px 7px; border: 1px solid rgba(222, 210, 201, .72);
  border-radius: 8px; background-color: rgba(255, 255, 255, .66); color: #665850; font-size: 10.5px; outline: 0;
}
.task-sort-select select:focus-visible { border-color: rgba(216, 95, 73, .4); box-shadow: var(--focus-ring); }
.task-list-group { min-width: 0; display: grid; gap: 3px; }
.task-list-group + .task-list-group { margin-top: 7px; }
.task-list-group[hidden] { display: none; }
.task-list-group > h3 {
  margin: 0; padding: 3px 8px 2px; display: flex; align-items: center; justify-content: space-between;
  color: #81746c; font-size: 10px; font-weight: 750; letter-spacing: .04em;
}
.task-list-group > h3 em { color: #94877f; font-size: 9.5px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.task-group-toggle {
  width: calc(100% + 16px);
  min-height: 27px;
  margin: -3px -8px -2px;
  padding: 3px 8px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
}
.task-group-toggle:hover { background: rgba(255, 255, 255, .55); color: #63564e; }
.task-group-toggle > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.task-group-toggle i { color: #9f9188; font-size: 11px; font-style: normal; transition: transform .15s ease; }
.task-list-group.is-collapsed .task-group-toggle i { transform: rotate(-90deg); }
.task-list-group-items { min-width: 0; display: grid; gap: 3px; }
.task-list-group-items[hidden] { display: none; }
.task-reorder-hint {
  margin: -2px 7px 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #82746c;
  font-size: 9.5px;
}
.task-reorder-hint[hidden] { display: none; }
.task-reorder-hint i { color: #9c6d5c; font-size: 12px; font-style: normal; }
.chat-session-row { touch-action: pan-y; }
.chat-session-row .chat-session-item { min-height: 72px; padding: 9px 38px 9px 31px; display: grid; align-content: center; gap: 3px; }
.session-drag-handle {
  position: absolute; z-index: 3; left: 4px; top: 50%; width: 25px; height: 34px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: #b2a69f; font-size: 16px; line-height: 1;
  cursor: grab; opacity: 0; transform: translateY(-50%); transition: opacity .12s ease, color .12s ease, background .12s ease;
}
.chat-session-row:hover .session-drag-handle,
.chat-session-row:focus-within .session-drag-handle { opacity: 1; }
.session-drag-handle:hover { color: #7d6d63; background: rgba(255, 255, 255, .78); }
.session-drag-handle:active { cursor: grabbing; }
.session-drag-handle:disabled { cursor: not-allowed; opacity: .22; }
.chat-session-row.is-dragging { z-index: 4; opacity: .56; }
.chat-session-row.is-dragging .chat-session-item { border-color: rgba(215, 101, 74, .34); background: #fff8f4; box-shadow: 0 10px 22px rgba(85, 55, 39, .12); }
.task-touch-sorting { user-select: none; }
.session-meta-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.session-skill-badge {
  min-width: 0; max-width: 68%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #8e503d; font-size: 10px; font-weight: 750;
}
.session-meta-row time { flex: 0 0 auto; color: #887b73; font-size: 9.5px; }
.session-title-row { gap: 5px; }
.session-title-row .session-title { color: #4d4039; font-size: 13px; font-weight: 650; }
.session-title-row > i { font-size: 8px; }
.session-preview-row { gap: 5px; }
.session-preview-row .session-preview { color: #7f736b; font-size: 11px; }
.workspace-sidebar[data-sort-mode="custom"] .session-drag-handle { opacity: .38; }
.workspace-sidebar[data-sort-mode="custom"] .chat-session-row:hover .session-drag-handle,
.workspace-sidebar[data-sort-mode="custom"] .chat-session-row:focus-within .session-drag-handle { opacity: 1; }
.chat-session-row.active::before { left: 1px; top: 12px; bottom: 12px; }
.chat-session-row.active .chat-session-item { padding-left: 31px; }
.chat-session-row.active .session-drag-handle { left: 5px; }

@media (max-width: 640px) {
  .task-list-controls { align-items: stretch; }
  .task-kind-filters { flex: 1; }
  .task-kind-filters button { flex: 1; min-height: 32px; }
  .task-sort-select select { min-height: 36px; max-width: 92px; }
  .task-sort-select > span { display: none; }
  .chat-page .chat-sidebar .chat-session-item { min-height: 72px; padding-left: 36px; }
  .session-drag-handle { left: 3px; width: 32px; height: 44px; opacity: .66; }
  .chat-page .chat-sidebar .session-more-trigger { right: 0; }
}

.task-picker-modal { width: min(860px, 94vw); max-height: min(760px, 90vh); padding: 25px; display: flex; flex-direction: column; overflow: hidden; }
.task-picker-modal > .modal-close { position: absolute; top: 20px; right: 20px; float: none; margin: 0; }
.task-picker-head { padding-right: 40px; }
.task-picker-head > span { color: #a45e47; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.task-picker-head h3 { margin-top: 4px; color: #3e332d; font-size: 25px; }
.task-picker-head p { margin-top: 6px; color: #8b7d75; font-size: 12px; }
.modal .task-picker-search {
  min-height: 44px; margin: 18px 0 0; padding: 6px 8px 6px 13px; display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(220, 205, 195, .88); border-radius: 13px; background: #fff;
}
.task-picker-search:focus-within { border-color: rgba(215, 101, 74, .48); box-shadow: var(--focus-ring); }
.task-picker-search i {
  width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center;
  color: #9d897e; font-style: normal; line-height: 1; pointer-events: none;
}
.task-picker-search input {
  min-width: 0; width: auto; flex: 1 1 auto; padding: 0 4px 0 2px;
  border: 0; outline: 0; background: transparent; color: #4c4039; caret-color: #a64e36;
}
.modal .task-picker-search input:focus,
.modal .task-picker-search input:focus-visible { border-color: transparent; outline: 0; background: transparent; box-shadow: none; }
.task-picker-search input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; appearance: none; }
.task-picker-search button { width: 28px; height: 28px; flex: 0 0 28px; padding: 0; border: 0; border-radius: 8px; background: #fff0e8; color: #a45039; font-size: 16px; line-height: 1; }
.task-picker-filters { display: flex; gap: 7px; margin-top: 11px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
.task-picker-filters::-webkit-scrollbar { display: none; }
.task-picker-filters button {
  flex: 0 0 auto; min-height: 34px; padding: 6px 11px; border: 1px solid rgba(222, 208, 198, .82); border-radius: 999px;
  background: rgba(255,255,255,.72); color: #82736a; font-size: 10.5px; font-weight: 700;
}
.task-picker-filters button.active { border-color: rgba(215, 101, 74, .3); background: #fff0e8; color: #a64e36; }
.task-picker-results { min-height: 0; margin-top: 12px; padding: 3px 3px 6px; display: grid; align-content: start; gap: 18px; overflow-y: auto; scrollbar-width: thin; }
.task-picker-results > section { display: grid; gap: 8px; }
.task-picker-group-title { display: flex; align-items: center; justify-content: space-between; color: #97877e; }
.task-picker-group-title span { font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.task-picker-group-title em { font-size: 9px; font-style: normal; }
.task-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.task-picker-item {
  min-width: 0; min-height: 70px; padding: 11px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  border: 1px solid rgba(224, 211, 202, .82); border-radius: 15px; background: rgba(255, 253, 250, .82); color: #493d36; text-align: left;
}
.task-picker-item:hover,
.task-picker-item:focus-visible { border-color: rgba(215, 101, 74, .34); background: #fff6f0; box-shadow: var(--focus-ring); }
.task-picker-item > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.task-picker-item b,
.task-picker-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-picker-item b { font-size: 12.5px; }
.task-picker-item small { color: #93867e; font-size: 10px; }
.task-picker-item > i { color: #a25943; font-size: 9.5px; font-style: normal; font-weight: 800; }
.task-picker-empty { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 4px; color: #897c74; text-align: center; }
.task-picker-empty b { font-size: 13px; }
.task-picker-empty span { color: #9c918a; font-size: 10.5px; }
.task-picker-empty .btn-ghost { min-height: 38px; margin-top: 8px; }

.workspace-overview-main { min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(circle at 90% 5%, rgba(180, 155, 230, .15), transparent 28rem), #faf7f3; }
.workspace-overview-scroll { height: 100%; padding: 34px clamp(24px, 5vw, 72px) 52px; overflow-y: auto; scrollbar-gutter: stable; }
.workspace-welcome,
.workspace-overview-section { width: min(100%, 1040px); margin-inline: auto; }
.workspace-welcome {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,.96); border-radius: 29px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,247,242,.9) 58%, rgba(247,243,255,.9));
  box-shadow: 0 22px 60px rgba(83, 57, 42, .09), inset 0 1px 0 #fff;
}
.workspace-welcome::after { content: '弈'; position: absolute; z-index: -1; right: 28px; top: -66px; color: rgba(126, 91, 148, .045); font: 800 230px/1 serif; }
.workspace-welcome-copy > span { color: #d56549; font-size: 11px; font-weight: 800; }
.workspace-welcome-copy h1 { margin-top: 7px; color: #332923; font-size: clamp(30px, 4vw, 43px); letter-spacing: -1.2px; }
.workspace-welcome-copy p { max-width: 660px; margin-top: 9px; color: #83756d; font-size: 13px; line-height: 1.7; }
.workspace-start-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.workspace-start-card {
  min-width: 0; min-height: 112px; padding: 17px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 13px;
  border: 1px solid rgba(222, 207, 197, .82); border-radius: 19px; background: rgba(255,255,255,.7); color: #483b34; text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.workspace-start-card:hover:not(:disabled),
.workspace-start-card:focus-visible { transform: translateY(-2px); border-color: rgba(215, 101, 74, .38); box-shadow: 0 13px 30px rgba(79, 54, 40, .08), var(--focus-ring); }
.workspace-start-card.special:hover { border-color: rgba(135, 107, 194, .36); }
.workspace-start-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #ef946f, #d65d45); color: #fff; font-size: 20px; font-weight: 900; }
.workspace-start-card.special .workspace-start-mark { background: linear-gradient(145deg, #a188da, #7961b4); }
.workspace-start-card > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.workspace-start-card small { color: #a07865; font-size: 9.5px; font-weight: 750; }
.workspace-start-card b { font-size: 16px; }
.workspace-start-card em { color: #93857d; font-size: 10.5px; font-style: normal; }
.workspace-start-card > i { color: #ae624a; font-size: 16px; font-style: normal; }
.workspace-overview-section { margin-top: 27px; padding: 24px 25px; border: 1px solid rgba(225, 213, 204, .82); border-radius: 23px; background: rgba(255,253,250,.78); box-shadow: 0 12px 34px rgba(75, 51, 38, .045); }
.workspace-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.workspace-section-head > div { display: grid; gap: 2px; }
.workspace-section-head span { color: #a47762; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; }
.workspace-section-head h2 { color: #42362f; font-size: 20px; }
.workspace-section-head em { color: #9c8e85; font-size: 10px; font-style: normal; }
.workspace-section-head > button { padding: 6px 9px; border: 0; border-radius: 8px; background: transparent; color: #a1533d; font-size: 10.5px; font-weight: 750; }
.workspace-section-head > button:hover { background: #fff0e8; }
.workspace-recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.workspace-recent-task,
.workspace-featured-skill {
  min-width: 0; padding: 12px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  border: 1px solid rgba(226, 214, 205, .78); border-radius: 15px; background: rgba(255,255,255,.7); color: #4a3e37; text-align: left;
}
.workspace-recent-task:hover,
.workspace-featured-skill:hover { border-color: rgba(215, 101, 74, .3); background: #fff8f3; }
.workspace-recent-task > span:nth-child(2),
.workspace-featured-skill > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.workspace-recent-task small { min-width: 0; display: flex; align-items: center; gap: 6px; color: #a16d56; font-size: 9px; font-weight: 750; }
.workspace-recent-task small > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-task-status { flex: 0 0 auto; padding: 2px 5px; border-radius: 999px; background: #f2eee9; color: #6e5d55; font-size: 8px; font-style: normal; line-height: 1.25; }
.workspace-task-status.waiting { background: #fff0e8; color: #b34d31; }
.workspace-task-status.working,
.workspace-task-status.draft { background: #f1edff; color: #6f57b8; }
.workspace-task-status.done { background: #e9f4ed; color: #356b49; }
.workspace-recent-task b,
.workspace-recent-task em,
.workspace-featured-skill b,
.workspace-featured-skill small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-recent-task b,
.workspace-featured-skill b { font-size: 12.5px; }
.workspace-recent-task em,
.workspace-featured-skill small { color: #94877f; font-size: 10px; font-style: normal; }
.workspace-recent-task > i,
.workspace-featured-skill > i { color: #a35b46; font-size: 9.5px; font-style: normal; font-weight: 750; }
.workspace-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.workspace-featured-skill { grid-template-columns: 38px minmax(0, 1fr) auto; }
.workspace-empty-state { min-height: 100px; display: grid; place-items: center; color: #94877f; font-size: 11.5px; }

.poster-workspace-main { min-width: 0; min-height: 0; overflow-y: auto; background: radial-gradient(circle at 92% 5%, rgba(180, 155, 230, .13), transparent 26rem), #faf7f3; }
.poster-workspace-main .poster-tool { max-width: 1260px; padding: 28px 28px 52px; }
.poster-workspace-main .poster-result { top: 24px; }

@media (max-width: 900px) {
  .workspace-overview-scroll { padding: 24px 20px 44px; }
  .workspace-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-picker-modal { padding: 21px; }
}

@media (max-width: 640px) {
  .poster-engine-lab { margin-inline: -14px; padding-inline: 14px; }
  .poster-engine-lab-head { align-items: start; }
  .poster-engine-lab-head small { max-width: 130px; }
  .poster-generation-meta { grid-template-columns: auto 1fr; }
  .poster-generation-meta small { grid-column: 1 / -1; text-align: left; }
  .workspace-task-actions > button { min-height: 56px; }
  .task-picker-mask { align-items: flex-end; padding: 0; }
  .task-picker-modal { width: 100%; max-height: 92vh; padding: 19px 14px; border-radius: 23px 23px 0 0; }
  .task-picker-modal > .modal-close { top: 13px; right: 13px; }
  .task-picker-head h3 { font-size: 21px; }
  .task-picker-search input { font-size: 16px; }
  .task-picker-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-overview-main,
  .poster-workspace-main { flex: 1; min-height: 0; }
  .workspace-overview-scroll { padding: 14px 12px 34px; }
  .workspace-welcome { padding: 22px 16px; border-radius: 21px; }
  .workspace-welcome::after { right: -20px; top: -30px; font-size: 150px; }
  .workspace-welcome-copy h1 { font-size: 28px; }
  .workspace-welcome-copy p { font-size: 12px; }
  .workspace-start-grid { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .workspace-start-card { min-height: 92px; padding: 14px; }
  .workspace-overview-section { margin-top: 16px; padding: 18px 14px; border-radius: 19px; }
  .workspace-recent-grid,
  .workspace-featured-grid { grid-template-columns: minmax(0, 1fr); }
  .poster-workspace-main .poster-tool { padding: 14px 12px 34px; }
  .poster-workspace-main .poster-tool .tool-head { margin-bottom: 14px; padding: 17px 15px; }
  .poster-workspace-main .poster-tool .tool-head > .back { display: none; }
}

@media (min-width: 641px) and (max-width: 720px) {
  .composer-bar .input-tip,
  .composer-notice { display: none; }
  .composer-tools { flex: 0 0 auto; gap: 5px; }
  .composer-tool { width: 40px; min-height: 40px; justify-content: center; padding: 5px; }
  .composer-tool em { display: none; }
  .composer-bar .btn-send { margin-left: auto; min-width: 72px; padding-inline: 14px; }
}

@media (min-width: 641px) and (max-height: 500px) {
  .chat-body { padding-block: 14px; }
  .chat-input-wrap { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .composer { padding: 7px 11px 6px; }
  .composer textarea { min-height: 34px; max-height: 82px; padding-block: 2px; }
  .composer-bar { margin-top: 3px; padding-top: 6px; }
  .composer-bar .input-tip,
  .composer-notice { display: none; }
}

/* ---------- 工作台阅读与操作层级优化 ---------- */
/* 空闲时保持输入区紧凑；有内容或附件时仍由脚本按内容自动长高。 */
.chat-input-wrap {
  padding-top: 10px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.composer {
  padding: 12px 12px 7px;
  border-radius: 19px;
}
.composer:focus-within { transform: none; }
.composer textarea {
  min-height: 34px;
  padding: 4px 6px 6px;
  line-height: 1.55;
}
.composer.is-expanded { border-radius: 21px; }
.composer-bar {
  gap: 8px;
  margin-top: 4px;
  padding-top: 7px;
}
.composer-tool,
.composer-advanced > summary { min-height: 32px; }
.composer-bar .input-tip { font-size: 11px; }
.msg .bubble .actions > [data-a="fb"] { color: #7b665d; }
.msg .bubble .actions > [data-a="fb"]:hover,
.msg .bubble .actions > [data-a="fb"]:focus-visible { color: #98472f; }
.composer .btn-send,
.composer .btn-pause { min-height: 38px; }

/* 对话中的追问保持轻量，完整成果继续使用成果卡强调。 */
.msg.assistant .bubble:not(.artifact-bubble):not(.positioning-report-bubble) {
  box-shadow: 0 4px 16px rgba(76, 51, 37, .035);
}
.msg.assistant .bubble.question-bubble:not(.artifact-bubble) {
  border-color: rgba(224, 212, 204, .68);
  box-shadow: none;
}
.msg.user .bubble { background: linear-gradient(135deg, #d45f45, #d87a69); }
.quick-reply-option { background: #fffaf7; }
.msg .bubble .actions.quiet { opacity: .66; }

/* 快捷回复按选项数量自动换列；提交后收成一行，保留重新选择入口。 */
.quick-replies.many-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-replies.few-options:not(.positioning-mode-choices) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.quick-reply-hint.single { color: #8f827a; font-size: 10.5px; }
.quick-reply-other-trigger {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  min-height: 32px;
  padding: 4px 3px;
  border-color: transparent;
  background: transparent;
  color: #8a776d;
  font-size: 11px;
}
.quick-reply-other-trigger:hover,
.quick-reply-other-trigger:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #9c4d37;
  box-shadow: none;
  text-decoration: underline;
}
.quick-replies.answered.is-collapsed > :not(.quick-reply-answer-summary) { display: none !important; }
.quick-reply-answer-summary {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(220, 205, 195, .78);
  border-radius: 11px;
  background: rgba(250, 247, 244, .76);
}
.quick-reply-answer-summary > span { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.quick-reply-answer-summary small { flex: 0 0 auto; color: #9b8d85; font-size: 9.5px; }
.quick-reply-answer-summary b { overflow: hidden; color: #5f5149; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.quick-reply-answer-summary button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 9px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #9b503b;
  font-size: 10px;
}

/* 知识引用降为辅助元信息，需要时再展开来源。 */
.knowledge-note {
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7c7069;
  font-size: 10px;
}
details.knowledge-note[open] { width: 100%; }
.knowledge-note summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
  color: #76675f;
  font-weight: 650;
}
.knowledge-note summary::-webkit-details-marker { display: none; }
.knowledge-note summary::before {
  content: '›';
  margin-right: 4px;
  color: #a9644e;
  font-size: 13px;
  transition: transform .15s ease;
}
.knowledge-note[open] summary::before { transform: rotate(90deg); }
.knowledge-note p {
  margin: 6px 0 0;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(247, 243, 240, .72);
  color: #746861;
  font-size: 10px;
  line-height: 1.55;
}

/* 长对话搜索从输入区轻量唤起，不占用常驻顶部空间。 */
.conversation-search-panel {
  max-width: 900px;
  min-height: 42px;
  margin: 0 auto 8px;
  padding: 6px 7px 6px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px 32px 32px;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(218, 202, 192, .86);
  border-radius: 13px;
  background: rgba(255, 253, 250, .97);
  box-shadow: 0 10px 28px rgba(72, 49, 36, .09);
}
.conversation-search-panel[hidden] { display: none; }
.conversation-search-panel label { min-width: 0; display: flex; align-items: center; gap: 7px; }
.conversation-search-panel label > span { color: #9d6a58; font-size: 16px; }
.conversation-search-panel input {
  width: 100%; min-width: 0; padding: 5px 0; border: 0; outline: 0; background: transparent; color: #4d4039; font-size: 12px;
}
.conversation-search-count { min-width: 58px; color: #82756d; font-size: 10px; text-align: right; }
.conversation-search-panel > button {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: #f7f1ed; color: #77675f; font-size: 13px;
}
.conversation-search-panel > button:hover:not(:disabled) { background: #fff0e9; color: #9c4d37; }
.conversation-search-panel > button:disabled { opacity: .38; }
.conversation-search-match .bubble { outline: 2px solid rgba(223, 139, 104, .18); outline-offset: 3px; }
.conversation-search-active .bubble { outline-color: rgba(215, 93, 64, .56); background-color: #fffaf6; }

/* 完整成果使用窄一些的正文行宽，表格与代码块仍保留全部可用宽度。 */
@media (min-width: 901px) {
  .msg.assistant .bubble.artifact-bubble,
  .msg.assistant .bubble.positioning-report-bubble,
  .msg.assistant .bubble.long-form-bubble {
    width: min(820px, calc(100% - 45px));
    flex: 1 1 auto;
  }
  .result-artifact-body { padding: 21px 24px 23px; }
  .result-artifact-body > :where(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, hr) {
    max-width: 730px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 矮屏桌面优先露出最近任务，减少欢迎区重复入口占用的首屏高度。 */
@media (min-width: 901px) and (max-height: 820px) {
  .workspace-overview-scroll { padding-top: 20px; padding-bottom: 36px; }
  .workspace-welcome { padding: 27px 34px; border-radius: 24px; }
  .workspace-welcome::after { top: -78px; font-size: 205px; }
  .workspace-welcome-copy h1 { font-size: 36px; }
  .workspace-start-grid { margin-top: 20px; }
  .workspace-start-card { min-height: 92px; padding: 14px 16px; }
  .workspace-overview-section { margin-top: 18px; padding-block: 19px; }
}

/* 将结果依据、下一步与次要操作收进同一个结果尾部。 */
.result-followup {
  margin-top: 8px;
  padding: 0 8px 2px;
}
.result-followup > div:empty { display: none; }
.result-followup-meta,
.result-followup-dialogue,
.result-followup-primary,
.result-followup-secondary { min-width: 0; }
.result-followup .knowledge-note {
  margin: 0;
  padding: 8px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #93877f;
  font-size: 10.5px;
}
.result-followup .knowledge-note summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
  color: #806e64;
  font-weight: 700;
}
.result-followup .knowledge-note summary::-webkit-details-marker { display: none; }
.result-followup .knowledge-note summary::before {
  content: '›';
  margin-right: 5px;
  color: #b16a51;
  font-size: 14px;
  transform: rotate(0deg);
  transition: transform .15s ease;
}
.result-followup .knowledge-note[open] summary::before { transform: rotate(90deg); }
.result-followup .knowledge-note p {
  margin: 5px 0 0 17px;
  color: #9b8f87;
  line-height: 1.55;
}
.result-followup-dialogue .quick-replies { margin: 6px 0 10px; }
.result-followup .skill-jump,
.result-followup .return-yiren-panel {
  margin: 0;
  border-top: 1px dashed rgba(224, 209, 199, .8);
}
.result-followup .skill-jump {
  padding: 11px 0;
  background: transparent;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}
.result-followup .skill-jump > span {
  color: #8e8179;
  font-size: 11px;
}
.result-followup .skill-jump-button { min-height: 38px; padding: 8px 14px; }
.result-followup-secondary .actions {
  margin: 0;
  padding: 9px 0 0;
  border-top: 1px dashed rgba(224, 209, 199, .8);
}
.result-followup-secondary .actions.quiet { margin-top: 0; }

@media (max-width: 900px) {
  .chat-input-wrap { padding-top: 8px; }
  .composer { padding: 11px 10px 7px; }
  .composer textarea { min-height: 40px; }
  .chat-jump-latest { bottom: 138px; }
  .result-followup { padding-inline: 4px; }
  .quick-replies.many-options,
  .quick-replies.few-options:not(.positioning-mode-choices) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .mobile-skill-copy small { color: #776b63; font-size: 10px; }
  .mobile-skill-copy b { color: #3f342e; font-size: 12.5px; }
  .conversation-search-panel {
    min-height: 46px;
    padding-left: 9px;
    grid-template-columns: minmax(0, 1fr) auto 34px 34px;
  }
  .conversation-search-count { min-width: 45px; }
  #conversation-search-prev { display: none; }
}

/* ---------- 个人档案：名片与成就同页 ---------- */
.profile-anchor-nav {
  min-height: 62px; padding: 10px 13px 10px 18px; position: sticky; top: 68px; z-index: 12;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid rgba(222, 207, 198, .82); border-radius: 18px;
  background: rgba(255, 253, 250, .9); box-shadow: 0 10px 28px rgba(75, 50, 38, .055); backdrop-filter: blur(18px);
}
.profile-anchor-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.profile-anchor-main > span { min-width: 0; display: grid; gap: 1px; }
.profile-anchor-main h1 { margin: 0; color: #493b34; font-family: Georgia, "Songti SC", serif; font-size: 14px; line-height: 1.2; }
.profile-anchor-main small { color: #716159; font-size: 9px; }
.profile-anchor-links { padding: 3px; display: flex; gap: 3px; border-radius: 12px; background: #f3ede9; }
.profile-anchor-nav button {
  min-height: 34px; padding: 6px 13px; border: 0; border-radius: 9px; background: transparent; color: #78675e; font-size: 10.5px; font-weight: 800;
}
.profile-anchor-nav .profile-anchor-back { padding-inline: 11px; border: 1px solid #e6d9d1; background: #fff; color: #715f56; white-space: nowrap; }
.profile-anchor-back span { margin-right: 3px; color: #bd684f; font-size: 13px; }
.profile-anchor-nav button:hover,
.profile-anchor-nav button:focus-visible { background: #fff; color: #a3543f; outline: none; box-shadow: 0 4px 12px rgba(79, 53, 41, .07); }
#profile-business-card,
#profile-achievements { scroll-margin-top: 148px; }

.profile-achievements { padding: 30px; overflow: hidden; }
.profile-achievement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.profile-achievement-head > div:first-child { max-width: 570px; }
.profile-achievement-head > div:first-child > span { color: #8f543e; font-size: 10px; font-weight: 800; }
.profile-achievement-head h2 { margin-top: 2px; color: #3a302a; font-family: Georgia, "Songti SC", serif; font-size: 24px; }
.profile-achievement-head p { margin-top: 5px; color: #716159; font-size: 11px; line-height: 1.65; }
.profile-achievement-ledger { flex: 0 0 auto; display: flex; border: 1px solid #e7dcd5; border-radius: 16px; background: #faf7f4; overflow: hidden; }
.profile-achievement-ledger > span { min-width: 96px; padding: 11px 14px; display: grid; gap: 2px; border-left: 1px solid #e7dcd5; }
.profile-achievement-ledger > span:first-child { border-left: 0; }
.profile-achievement-ledger small { color: #716159; font-size: 8.5px; }
.profile-achievement-ledger b { color: #4b3c35; font-family: Georgia, serif; font-size: 17px; }
.profile-achievement-ledger b i { color: #716159; font-size: 10px; font-style: normal; }
.profile-achievement-progress { margin: 20px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.profile-achievement-progress::before { content: ''; grid-column: 1; grid-row: 1; height: 5px; border-radius: 999px; background: #ece3de; }
.profile-achievement-progress i { grid-column: 1; grid-row: 1; width: 0; height: 5px; border-radius: 999px; background: linear-gradient(90deg, #c9953e, #df7458, #9675bd); transition: width .24s ease; }
.profile-achievement-progress i[data-progress="5"] { width: 5%; }.profile-achievement-progress i[data-progress="10"] { width: 10%; }
.profile-achievement-progress i[data-progress="15"] { width: 15%; }.profile-achievement-progress i[data-progress="20"] { width: 20%; }
.profile-achievement-progress i[data-progress="25"] { width: 25%; }.profile-achievement-progress i[data-progress="30"] { width: 30%; }
.profile-achievement-progress i[data-progress="35"] { width: 35%; }.profile-achievement-progress i[data-progress="40"] { width: 40%; }
.profile-achievement-progress i[data-progress="45"] { width: 45%; }.profile-achievement-progress i[data-progress="50"] { width: 50%; }
.profile-achievement-progress i[data-progress="55"] { width: 55%; }.profile-achievement-progress i[data-progress="60"] { width: 60%; }
.profile-achievement-progress i[data-progress="65"] { width: 65%; }.profile-achievement-progress i[data-progress="70"] { width: 70%; }
.profile-achievement-progress i[data-progress="75"] { width: 75%; }.profile-achievement-progress i[data-progress="80"] { width: 80%; }
.profile-achievement-progress i[data-progress="85"] { width: 85%; }.profile-achievement-progress i[data-progress="90"] { width: 90%; }
.profile-achievement-progress i[data-progress="95"] { width: 95%; }.profile-achievement-progress i[data-progress="100"] { width: 100%; }
.profile-achievement-progress span { color: #716159; font-size: 9px; white-space: nowrap; }

.profile-achievement-toolbar { padding: 11px; display: grid; grid-template-columns: minmax(0, 1fr) 170px 130px; align-items: center; gap: 9px; border-radius: 15px; background: #f7f2ee; }
.profile-achievement-categories { display: flex; flex-wrap: wrap; gap: 5px; }
.profile-achievement-categories button { min-height: 31px; padding: 5px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #705c53; font-size: 9.5px; font-weight: 750; }
.profile-achievement-categories button:hover { background: #fff; }
.profile-achievement-categories button.is-active { border-color: #dfc6b8; background: #fff; color: #a6533e; box-shadow: 0 3px 10px rgba(78, 51, 38, .05); }
.profile-achievement-search,
.profile-achievement-status { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; }
.profile-achievement-search span,
.profile-achievement-status span { color: #716159; font-size: 8px; }
.profile-achievement-search input,
.profile-achievement-status select { width: 100%; min-width: 0; min-height: 34px; padding: 6px 9px; border: 1px solid #e3d6ce; border-radius: 9px; background: #fff; color: #5a4b43; font-size: 10px; outline: none; }
.profile-achievement-search input:focus,
.profile-achievement-status select:focus { border-color: #cf927d; box-shadow: 0 0 0 3px rgba(211, 113, 86, .09); }
.profile-achievement-count { margin: 15px 1px 9px; display: flex; justify-content: space-between; gap: 16px; }
.profile-achievement-count span { color: #62534b; font-size: 10px; font-weight: 800; }
.profile-achievement-count small { color: #865a47; font-size: 9px; }

.profile-achievement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.profile-achievement-card {
  min-width: 0; min-height: 214px; padding: 0; overflow: hidden; display: grid; grid-template-rows: 82px minmax(0, 1fr);
  border: 1px solid #e5dad3; border-radius: 17px; background: #fcfaf8; text-align: left; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.profile-achievement-card:hover,
.profile-achievement-card:focus-visible { transform: translateY(-2px); border-color: #d5b8a9; box-shadow: 0 10px 24px rgba(76, 50, 38, .075); outline: none; }
.profile-achievement-card.is-selected { border-color: #d17458; box-shadow: 0 0 0 2px rgba(209, 106, 80, .09); }
.profile-achievement-card.is-recommended { border-color: rgba(207, 145, 67, .55); background: linear-gradient(145deg, #fffaf0, #fcf9f6); }
.profile-achievement-art { padding: 12px 14px; position: relative; display: flex; align-items: center; justify-content: center; background: #efe8e3; }
.profile-achievement-art::before { content: ''; width: 49px; height: 58px; position: absolute; clip-path: polygon(50% 0, 92% 20%, 82% 78%, 50% 100%, 18% 78%, 8% 20%); background: #b9aaa2; }
.profile-achievement-card[data-status="available"] .profile-achievement-art::before { background: #c97559; }
.profile-achievement-card[data-status="unlocked"] .profile-achievement-art::before { background: #c28c36; }
.profile-achievement-card[data-status="in_review"] .profile-achievement-art::before { background: #806b93; }
.profile-achievement-card[data-category="outreach"] .profile-achievement-art { background: #eaf0ef; }
.profile-achievement-card[data-category="revenue"] .profile-achievement-art { background: #f2eae1; }
.profile-achievement-card[data-category="delivery"] .profile-achievement-art { background: #eeeaf1; }
.profile-achievement-card[data-category="growth"] .profile-achievement-art { background: #e9f0eb; }
.profile-achievement-art > i { position: relative; z-index: 1; color: #fff; font-family: Georgia, "Songti SC", serif; font-size: 18px; font-style: normal; font-weight: 900; }
.profile-achievement-art > small { position: absolute; left: 12px; top: 10px; color: #6f5e56; font-size: 7.5px; }
.profile-achievement-art > em { position: absolute; right: 10px; top: 9px; padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.82); color: #6d5a51; font-size: 7.5px; font-style: normal; font-weight: 800; }
.profile-achievement-card-copy { min-width: 0; padding: 12px 14px 13px; display: grid; align-content: start; }
.profile-achievement-card-copy > small { color: #8f553f; font-size: 8px; font-weight: 800; }
.profile-achievement-card-copy > b { margin-top: 3px; overflow: hidden; color: #493b34; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-achievement-card-copy > p { margin-top: 4px; overflow: hidden; color: #6f5f57; font-size: 9px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.profile-achievement-card-copy > span { margin-top: 10px; padding-top: 8px; display: grid; gap: 3px; border-top: 1px solid #eee5df; }
.profile-achievement-card-copy em { overflow: hidden; color: #726159; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.profile-achievement-card-copy strong { color: #9b5c47; font-size: 8.5px; }

.profile-achievement-detail { grid-column: 1 / -1; padding: 22px; border: 1px solid #dcc8bc; border-radius: 19px; background: linear-gradient(135deg, #fffdf9, #faf6f3); box-shadow: 0 13px 30px rgba(77, 51, 39, .06); }
.profile-achievement-detail-head { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 15px; }
.profile-achievement-detail-sigil { width: 58px; height: 67px; display: grid; place-items: center; clip-path: polygon(50% 0, 92% 20%, 82% 78%, 50% 100%, 18% 78%, 8% 20%); background: #b56852; color: #fff; font-family: Georgia, serif; font-size: 20px; font-weight: 900; }
.profile-achievement-detail-sigil[data-category="outreach"] { background: #607f82; }.profile-achievement-detail-sigil[data-category="revenue"] { background: #a4674d; }
.profile-achievement-detail-sigil[data-category="delivery"] { background: #725d7d; }.profile-achievement-detail-sigil[data-category="growth"] { background: #608371; }
.profile-achievement-detail-head small { color: #a1715f; font-size: 8.5px; font-weight: 800; }
.profile-achievement-detail-head h3 { margin-top: 2px; color: #3f322c; font-family: Georgia, "Songti SC", serif; font-size: 20px; }
.profile-achievement-detail-head p { margin-top: 3px; color: #6f5e56; font-size: 10px; line-height: 1.6; }
.profile-achievement-detail-head > button { align-self: start; padding: 5px 8px; border: 0; background: transparent; color: #9f6753; font-size: 9px; }
.profile-achievement-requirements { margin: 18px 0; display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 9px; }
.profile-achievement-requirements > div { padding: 13px 14px; border-radius: 12px; background: #f6f0ec; }
.profile-achievement-requirements small { color: #865642; font-size: 8px; font-weight: 800; }
.profile-achievement-requirements p { margin-top: 4px; color: #5f5048; font-size: 10px; line-height: 1.55; }
.profile-achievement-submit { padding-top: 17px; border-top: 1px solid #eadfd8; }
.profile-achievement-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-achievement-field { min-width: 0; display: grid; gap: 5px; color: #67564e; font-size: 9.5px; font-weight: 750; }
.profile-achievement-field.wide { grid-column: 1 / -1; }
.profile-achievement-field input,
.profile-achievement-field textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #dfd2ca; border-radius: 10px; background: #fff; color: #4e413b; font: inherit; font-weight: 500; outline: none; }
.profile-achievement-field textarea { resize: vertical; }
.profile-achievement-field input:focus,
.profile-achievement-field textarea:focus { border-color: #cf8c76; box-shadow: 0 0 0 3px rgba(211, 113, 86, .09); }
.profile-achievement-field > small { color: #716159; font-size: 8px; font-weight: 500; }
.profile-achievement-file { min-height: 82px; padding: 12px; position: relative; display: grid; place-content: center; justify-items: center; gap: 3px; border: 1px dashed #d9c5ba; border-radius: 11px; background: #fbf7f4; cursor: pointer; }
.profile-achievement-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.profile-achievement-file b { color: #8f4f39; font-size: 10px; }.profile-achievement-file small { color: #716159; font-size: 8px; }
.profile-achievement-file.has-file { border-style: solid; border-color: #8eae9f; background: #eff7f3; }
.profile-achievement-system-proof { min-height: 70px; padding: 14px; display: grid; align-content: center; gap: 4px; border-radius: 11px; background: #f1ece8; }
.profile-achievement-system-proof b { color: #66544b; font-size: 10px; }.profile-achievement-system-proof span { color: #716159; font-size: 8.5px; }
.profile-achievement-consent { margin: 13px 0; padding: 10px 12px; display: flex; align-items: flex-start; gap: 9px; border-radius: 11px; background: #f5f0ec; }
.profile-achievement-consent input { margin-top: 2px; accent-color: #cf6b50; }.profile-achievement-consent span { display: grid; gap: 2px; }
.profile-achievement-consent b { color: #64534b; font-size: 9.5px; }.profile-achievement-consent small { color: #716159; font-size: 8px; }
.profile-achievement-submit > .btn-primary { min-width: 210px; min-height: 40px; }
.profile-achievement-feedback,
.profile-achievement-error { margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: #fff0e9; color: #a24f3e; font-size: 9px; line-height: 1.55; }
.profile-achievement-feedback b { margin-right: 7px; }
.profile-achievement-result { padding: 18px; display: grid; justify-items: center; gap: 5px; border-radius: 13px; text-align: center; }
.profile-achievement-result b { color: #55463f; font-size: 12px; }.profile-achievement-result p { color: #8e7c73; font-size: 9.5px; }
.profile-achievement-result.success { background: #edf6f1; }.profile-achievement-result.reviewing { background: #f1edf6; }.profile-achievement-result.locked { background: #f1ece9; }
.profile-achievement-spinner { width: 22px; height: 22px; border: 3px solid #d8cde0; border-top-color: #7a6388; border-radius: 50%; animation: spin .9s linear infinite; }
.profile-achievement-empty { padding: 40px; display: grid; justify-items: center; gap: 4px; color: #6f5f57; }.profile-achievement-empty b { font-size: 13px; }.profile-achievement-empty span { font-size: 9px; }
.profile-achievement-empty button { min-height: 38px; margin-top: 8px; }

@media (max-width: 900px) {
  .profile-achievement-head { display: grid; }
  .profile-achievement-ledger { width: 100%; }
  .profile-achievement-ledger > span { flex: 1; }
  .profile-achievement-toolbar { grid-template-columns: 1fr 1fr; }
  .profile-achievement-categories { grid-column: 1 / -1; }
  .profile-achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-achievement-requirements { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .profile-anchor-nav { top: 8px; min-height: 54px; padding: 8px 9px 8px 12px; }
  .profile-anchor-main { gap: 7px; }
  .profile-anchor-main small { display: none; }
  .profile-anchor-main h1 { font-size: 12px; }
  .profile-anchor-nav button { padding-inline: 8px; }
  .profile-anchor-nav .profile-anchor-back { padding-inline: 8px; }
  #profile-business-card, #profile-achievements { scroll-margin-top: 78px; }
  .profile-achievements { padding: 20px 14px; }
  .profile-achievement-head h2 { font-size: 21px; }
  .profile-achievement-ledger > span { min-width: 0; padding: 9px; }
  .profile-achievement-ledger b { font-size: 14px; }
  .profile-achievement-toolbar { grid-template-columns: 1fr; }
  .profile-achievement-categories { grid-column: auto; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .profile-achievement-categories button { white-space: nowrap; }
  .profile-achievement-count small { display: none; }
  .profile-achievement-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-achievement-card { min-height: 198px; }
  .profile-achievement-detail { padding: 17px 13px; }
  .profile-achievement-detail-head { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  .profile-achievement-detail-sigil { width: 46px; height: 54px; font-size: 16px; }
  .profile-achievement-detail-head h3 { font-size: 17px; }
  .profile-achievement-fields { grid-template-columns: 1fr; }
  .profile-achievement-submit > .btn-primary { width: 100%; }
}

/* ---------- 个人档案 V2：事业摘要、单一下一步与可读尺度 ---------- */
.profile-anchor-nav {
  min-height: 66px;
  padding: 10px 14px;
}
.profile-anchor-main { gap: 10px; }
.profile-anchor-main h1 { font-size: 16px; }
.profile-anchor-main small { font-size: 11px; }
.profile-anchor-main b { font: inherit; }
.profile-anchor-links { padding: 4px; }
.profile-anchor-nav button { min-height: 44px; padding: 9px 15px; font-size: 13px; }
.profile-anchor-links button[aria-current="true"] {
  background: #fff;
  color: #a3543f;
  box-shadow: 0 4px 12px rgba(79, 53, 41, .07);
}

.profile-story { padding: 30px 32px 24px; }
.profile-story .profile-section-head { margin-bottom: 20px; align-items: center; }
.profile-story .profile-section-head > div:first-child > span { font-size: 12px; }
.profile-story .profile-section-head h2 { font-family: Georgia, "Songti SC", serif; font-size: 28px; }
.profile-story .profile-section-head > div:first-child > p { margin-top: 4px; color: #77675f; font-size: 13.5px; line-height: 1.6; }
.profile-story-actions { gap: 10px; }
.profile-story-actions small {
  max-width: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f0ec;
  color: #725f56;
  font-size: 12px;
  text-align: left;
}
.profile-story-actions button { min-height: 44px; padding: 9px 15px; font-size: 13px; }

.profile-empty-state {
  min-height: 230px;
  padding: 30px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px dashed #ddc9bd;
  border-radius: 20px;
  background: linear-gradient(125deg, #fff9f4, #fbf7f4 58%, #f7f1fa);
}
.profile-empty-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #ed8c6d, #cf624d 64%, #9476bb 145%);
  color: #fff;
  font-family: Georgia, "Songti SC", serif;
  font-size: 27px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(174, 85, 61, .18);
}
.profile-empty-state > div:nth-child(2) { min-width: 0; }
.profile-empty-state span { color: #a1614b; font-size: 12px; font-weight: 800; }
.profile-empty-state h3 { margin-top: 4px; color: #443630; font-size: 21px; line-height: 1.4; }
.profile-empty-state p { max-width: 650px; margin-top: 7px; color: #78675f; font-size: 14px; line-height: 1.7; }
.profile-empty-state .btn-primary { min-height: 46px; white-space: nowrap; }

.profile-card-summary { display: grid; gap: 16px; }
.profile-business-statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
}
.profile-business-statement > div:first-child,
.profile-completion-card,
.profile-highlight-card {
  border: 1px solid #eadfd8;
  border-radius: 16px;
  background: #fbf8f5;
}
.profile-business-statement > div:first-child { padding: 18px 20px; }
.profile-business-statement small,
.profile-highlight-card small { color: #90604e; font-size: 12px; font-weight: 800; }
.profile-business-statement p { margin-top: 5px; color: #463a34; font-size: 17px; line-height: 1.65; }
.profile-completion-card { padding: 14px 16px; display: grid; align-content: center; gap: 7px; }
.profile-completion-card > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.profile-completion-card b { color: #b35d45; font-family: Georgia, serif; font-size: 24px; }
.profile-completion-card span small { color: #65554d; font-size: 12px; font-weight: 800; }
.profile-completion-card > i { height: 7px; overflow: hidden; border-radius: 999px; background: #ece2dc; }
.profile-completion-card > i > em { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #db785a, #a77bc0); transition: width .24s ease; }
.profile-completion-card > small { color: #6f625b; font-size: 11.5px; line-height: 1.45; }

.profile-meta-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-meta-chips span,
.profile-meta-chips button {
  min-height: 36px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e6d9d1;
  border-radius: 999px;
  background: #fff;
  color: #594a43;
  font-size: 12.5px;
}
.profile-meta-chips small { color: #725f56; font-size: 10px; font-weight: 800; }
.profile-meta-chips button { border-style: dashed; color: #a15842; }

.profile-highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-highlight-card { min-width: 0; min-height: 106px; padding: 15px 16px; text-align: left; }
.profile-highlight-card p { margin-top: 7px; color: #554840; font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile-highlight-card.is-empty { border-style: dashed; color: #9f5a43; }
.profile-highlight-card.is-empty b { display: block; margin-top: 8px; color: #9f5a43; font-size: 13px; }

.profile-full-details { border: 1px solid #e9ddd6; border-radius: 14px; background: #fffdfb; }
.profile-full-details > summary {
  min-height: 48px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #8e513d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.profile-full-details > summary small { color: #6f625b; font-size: 11.5px; font-weight: 500; }
.profile-full-details[open] > summary { border-bottom: 1px solid #eee3dd; }
.profile-full-details .profile-story-grid { padding: 18px; }
.profile-full-details .profile-field { padding: 13px 14px; }
.profile-full-details .profile-field small { font-size: 12px; }
.profile-full-details .profile-field p { font-size: 14px; }
.profile-full-details button.profile-field { width: 100%; border: 0; text-align: left; }
.profile-full-details button.profile-field:hover { background: #fff2ea; }

.profile-privacy-note {
  margin-top: 16px;
  padding: 0;
  display: block;
  border-radius: 12px;
  background: #f5f1ee;
}
.profile-privacy-note > summary { min-height: 42px; padding: 10px 14px; display: flex; align-items: center; color: #755d52; cursor: pointer; font-size: 12px; font-weight: 800; }
.profile-privacy-note > summary::before { content: '🔒'; margin-right: 7px; font-size: 12px; }
.profile-privacy-note p { padding: 0 14px 12px 34px; color: #6f6059; font-size: 12.5px; line-height: 1.6; }

.profile-edit-mask { align-items: center; padding: 20px; overflow: hidden; }
.modal.profile-edit-modal {
  width: min(820px, calc(100vw - 40px));
  height: min(900px, calc(100dvh - 40px));
  max-width: none;
  max-height: none;
  padding: 28px 30px 22px;
  scroll-padding-bottom: 100px;
}
.profile-editor-kicker { font-size: 11px; }
.modal.profile-edit-modal h3 { font-size: 24px; }
.profile-editor-intro { margin-bottom: 12px; font-size: 13px; }
.profile-editor-draft-status { margin-bottom: 16px; font-size: 12px; }
.profile-editor-section { padding: 18px; border: 1px solid #eadfd8; border-radius: 17px; background: #fcfaf8; }
.profile-editor-section + .profile-editor-section { margin-top: 14px; }
.profile-editor-section-head { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.profile-editor-section-head > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #fff0e9; color: #a75840; font-family: Georgia, serif; font-size: 12px; font-weight: 900; }
.profile-editor-section-head h4 { color: #493b34; font-size: 16px; }
.profile-editor-section-head p { margin-top: 1px; color: #8c7b72; font-size: 11.5px; }
.profile-edit-grid { gap: 0 14px; }
.profile-edit-grid label { margin-top: 10px; color: #5f5048; font-size: 13px; font-weight: 750; }
.profile-edit-grid label small { margin-left: 3px; color: #9c8b82; font-size: 10.5px; font-weight: 500; }
.profile-edit-grid input,
.profile-edit-grid select,
.profile-edit-grid textarea { min-height: 44px; font-size: 14px; }
.profile-edit-grid textarea { min-height: 82px; line-height: 1.65; }
.profile-editor-actions { display: grid !important; grid-template-columns: auto 1fr auto auto; align-items: center; }
.profile-editor-discard { min-height: 42px; padding: 8px 4px; border: 0; background: transparent; color: #9c786b; font-size: 12px; }
.profile-editor-discard:hover,
.profile-editor-discard.is-confirming { color: #b84336; }
.profile-edit-modal .err { font-size: 12.5px; }
.profile-edit-modal .err button { margin-left: 5px; padding: 3px 7px; border: 0; border-radius: 7px; background: #fff0e9; color: #a33f32; font-weight: 800; }

.profile-achievements { padding: 32px; }
.profile-achievement-head > div:first-child > span { font-size: 12px; }
.profile-achievement-head h2 { font-size: 28px; }
.profile-achievement-head p { max-width: 600px; font-size: 14px; }
.profile-entitlement-note { display: block; margin-top: 8px; color: #7a675e; font-size: 12px; }
.profile-achievement-ledger > span { min-width: 116px; padding: 14px 16px; }
.profile-achievement-ledger small { font-size: 11px; }
.profile-achievement-ledger b { font-size: 22px; }
.profile-achievement-ledger b i { font-size: 12px; }
.profile-achievement-progress { margin: 20px 0; }
.profile-achievement-progress::before,
.profile-achievement-progress i { height: 8px; }
.profile-achievement-progress span { font-size: 11.5px; }

.profile-next-achievement {
  width: 100%;
  min-height: 112px;
  margin-bottom: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(207, 145, 67, .55);
  border-radius: 18px;
  background: linear-gradient(120deg, #fff8e9, #fffdf8 58%, #f9f2ee);
  text-align: left;
  box-shadow: 0 9px 24px rgba(95, 64, 42, .055);
}
.profile-next-achievement > span { min-width: 0; display: grid; gap: 3px; }
.profile-next-achievement small { color: #9b6731; font-size: 11px; font-weight: 850; }
.profile-next-achievement b { color: #4b3a31; font-family: Georgia, "Songti SC", serif; font-size: 20px; }
.profile-next-achievement p { color: #6c5b52; font-size: 13.5px; line-height: 1.6; }
.profile-next-achievement > em { flex: 0 0 auto; min-height: 42px; padding: 10px 15px; border-radius: 11px; background: #a94f3b; color: #fff; font-size: 13px; font-style: normal; font-weight: 800; }
.profile-next-achievement:hover,
.profile-next-achievement:focus-visible { transform: translateY(-1px); border-color: #c8843e; outline: none; box-shadow: 0 12px 28px rgba(95, 64, 42, .09); }

.profile-achievement-toolbar { padding: 12px; grid-template-columns: minmax(0, 1fr) 200px 150px; }
.profile-achievement-mobile-category { display: none; }
.profile-achievement-categories button { min-height: 44px; padding: 8px 12px; font-size: 12.5px; }
.profile-achievement-search,
.profile-achievement-status,
.profile-achievement-mobile-category { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.profile-achievement-search span,
.profile-achievement-status span,
.profile-achievement-mobile-category span { font-size: 11px; }
.profile-achievement-search input,
.profile-achievement-status select,
.profile-achievement-mobile-category select { min-height: 44px; padding: 8px 10px; border: 1px solid #e3d6ce; border-radius: 10px; background: #fff; color: #5a4b43; font-size: 13px; outline: none; }
.profile-achievement-count { margin-top: 17px; }
.profile-achievement-count span { font-size: 13px; }
.profile-achievement-count small { font-size: 11.5px; }
.profile-achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-achievement-card {
  min-height: 176px;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.profile-achievement-art { padding: 14px; }
.profile-achievement-art > small,
.profile-achievement-art > em { font-size: 10px; }
.profile-achievement-card-copy { padding: 16px; }
.profile-achievement-card-copy > small { font-size: 11px; }
.profile-achievement-card-copy > b { margin-top: 4px; font-size: 16px; }
.profile-achievement-card-copy > p { margin-top: 6px; font-size: 13px; line-height: 1.55; }
.profile-achievement-card-copy > span { margin-top: 11px; padding-top: 9px; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
.profile-achievement-card-copy em { font-size: 11px; }
.profile-achievement-card-copy strong { font-size: 11.5px; }
.profile-achievement-card-copy > span > i { grid-column: 1 / -1; color: #a25842; font-size: 11.5px; font-style: normal; font-weight: 800; }
.profile-achievement-more { min-height: 46px; margin: 18px auto 0; display: block; }

.profile-achievement-detail-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  background: rgba(43, 34, 29, .38);
  backdrop-filter: blur(7px);
}
.profile-achievement-detail {
  width: min(540px, 100%);
  height: 100vh;
  height: 100dvh;
  padding: 28px;
  overflow-y: auto;
  border: 0;
  border-radius: 24px 0 0 24px;
  background: #fffdfb;
  box-shadow: -18px 0 44px rgba(60, 42, 33, .14);
  animation: profile-detail-in .2s ease both;
}
@keyframes profile-detail-in { from { transform: translateX(24px); opacity: .5; } }
.profile-achievement-detail-head { grid-template-columns: 58px minmax(0, 1fr) 44px; }
.profile-achievement-detail-head small { font-size: 11px; }
.profile-achievement-detail-head h3 { font-size: 24px; }
.profile-achievement-detail-head p { font-size: 13px; }
.profile-achievement-detail-head > button { width: 44px; height: 44px; padding: 0; border-radius: 12px; background: #f6f0ec; font-size: 12px; }
.profile-achievement-requirements { grid-template-columns: 1fr; }
.profile-achievement-requirements small { font-size: 11px; }
.profile-achievement-requirements p { font-size: 13px; }
.profile-achievement-fields { grid-template-columns: 1fr; }
.profile-achievement-field { font-size: 13px; }
.profile-achievement-field input,
.profile-achievement-field textarea { min-height: 44px; font-size: 13px; }
.profile-achievement-field > small,
.profile-achievement-file small,
.profile-achievement-consent small { font-size: 11px; }
.profile-achievement-file b,
.profile-achievement-consent b { font-size: 13px; }
.profile-achievement-consent { min-height: 58px; }
.profile-achievement-submit > .btn-primary { min-height: 46px; font-size: 13px; }
.profile-achievement-feedback,
.profile-achievement-error { font-size: 12px; }

@media (max-width: 900px) {
  .profile-business-statement { grid-template-columns: 1fr; }
  .profile-completion-card { grid-template-columns: 1fr; }
  .profile-highlight-grid { grid-template-columns: 1fr 1fr; }
  .profile-highlight-card:last-child { grid-column: 1 / -1; }
  .profile-achievement-toolbar { grid-template-columns: 1fr 1fr; }
  .profile-achievement-categories { grid-column: 1 / -1; }
  .profile-achievement-search { grid-column: 1; }
  .profile-achievement-status { grid-column: 2; }
}

@media (max-width: 640px) {
  .profile-anchor-nav { top: 8px; min-height: 60px; padding: 7px; gap: 6px; }
  .profile-anchor-main { gap: 5px; }
  .profile-anchor-main .profile-anchor-back { width: 44px; padding: 0; }
  .profile-anchor-back b { display: none; }
  .profile-anchor-main h1 { font-size: 14px; }
  .profile-anchor-main small { display: none; }
  .profile-anchor-links { gap: 2px; }
  .profile-anchor-nav button { min-height: 44px; padding-inline: 9px; font-size: 12px; }
  #profile-business-card, #profile-achievements { scroll-margin-top: 80px; }

  .profile-story { padding: 22px 16px 18px; }
  .profile-story .profile-section-head { display: grid; gap: 12px; }
  .profile-story .profile-section-head h2 { font-size: 24px; }
  .profile-story .profile-section-head > div:first-child > p { font-size: 13px; }
  .profile-story-actions { width: 100%; flex-direction: row; align-items: center; }
  .profile-story-actions small { max-width: none; flex: 1; font-size: 10.5px; text-align: left; }
  .profile-story-actions button { flex: 0 0 auto; min-height: 44px; font-size: 12px; }
  .profile-empty-state { min-height: 0; padding: 22px 18px; grid-template-columns: 54px minmax(0, 1fr); gap: 15px; }
  .profile-empty-mark { width: 52px; height: 52px; border-radius: 17px; font-size: 21px; }
  .profile-empty-state h3 { font-size: 18px; }
  .profile-empty-state p { font-size: 13px; }
  .profile-empty-state .btn-primary { grid-column: 1 / -1; width: 100%; }
  .profile-business-statement > div:first-child { padding: 16px; }
  .profile-business-statement p { font-size: 16px; }
  .profile-completion-card { padding: 13px 15px; }
  .profile-meta-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .profile-meta-chips::-webkit-scrollbar { display: none; }
  .profile-meta-chips span,
  .profile-meta-chips button { flex: 0 0 auto; min-height: 40px; }
  .profile-highlight-grid { grid-template-columns: 1fr; }
  .profile-highlight-card,
  .profile-highlight-card:last-child { min-height: 92px; grid-column: auto; }
  .profile-highlight-card p { font-size: 13.5px; }
  .profile-full-details > summary { min-height: 48px; font-size: 12.5px; }
  .profile-full-details .profile-story-grid { padding: 15px; }
  .profile-full-details .profile-story-group + .profile-story-group { padding-top: 20px; }
  .profile-privacy-note p { padding-left: 14px; font-size: 12px; }

  .profile-edit-mask { align-items: stretch; padding: 0; }
  .modal.profile-edit-modal {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding: 20px 16px 18px;
    border: 0;
    border-radius: 0;
  }
  .modal.profile-edit-modal h3 { font-size: 22px; }
  .profile-editor-section { padding: 15px 13px; }
  .profile-editor-section-head h4 { font-size: 15px; }
  .profile-edit-grid { grid-template-columns: 1fr; }
  .profile-edit-grid > .wide { grid-column: auto; }
  .profile-edit-grid label { font-size: 13px; }
  .profile-edit-grid input,
  .profile-edit-grid select,
  .profile-edit-grid textarea { font-size: 16px; }
  .profile-editor-actions { margin-inline: -16px !important; padding-inline: 16px !important; grid-template-columns: auto 1fr 1fr !important; }
  .profile-editor-actions > span { display: none; }
  .profile-editor-actions .profile-editor-discard { grid-column: 1 / -1; min-height: 32px; justify-self: start; }
  .profile-editor-actions .btn-ghost,
  .profile-editor-actions .btn-primary { width: 100%; }

  .profile-achievements { padding: 23px 14px; }
  .profile-achievement-head { gap: 14px; }
  .profile-achievement-head h2 { font-size: 24px; }
  .profile-achievement-head p { font-size: 13px; }
  .profile-entitlement-note { font-size: 11px; }
  .profile-achievement-ledger > span { padding: 12px; }
  .profile-achievement-ledger small { font-size: 10px; }
  .profile-achievement-ledger b { font-size: 18px; }
  .profile-next-achievement { padding: 16px; display: grid; gap: 12px; }
  .profile-next-achievement b { font-size: 18px; }
  .profile-next-achievement p { font-size: 13px; }
  .profile-next-achievement > em { width: 100%; min-height: 44px; display: grid; place-items: center; }
  .profile-achievement-toolbar { grid-template-columns: 1fr 1fr; gap: 9px; }
  .profile-achievement-categories { display: none; }
  .profile-achievement-mobile-category { display: grid; grid-column: 1; }
  .profile-achievement-search { grid-column: 1 / -1; grid-row: 1; }
  .profile-achievement-status { grid-column: 2; }
  .profile-achievement-search input,
  .profile-achievement-status select,
  .profile-achievement-mobile-category select { width: 100%; min-height: 44px; font-size: 14px; }
  .profile-achievement-count span { font-size: 12.5px; }
  .profile-achievement-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-achievement-card { min-height: 170px; grid-template-columns: 88px minmax(0, 1fr); }
  .profile-achievement-art::before { width: 43px; height: 52px; }
  .profile-achievement-card-copy { padding: 14px; }
  .profile-achievement-card-copy > b { font-size: 15px; }
  .profile-achievement-card-copy > p { font-size: 12.5px; }
  .profile-achievement-card-copy em,
  .profile-achievement-card-copy strong,
  .profile-achievement-card-copy > span > i { font-size: 11px; }
  .profile-achievement-detail-mask { align-items: flex-end; }
  .profile-achievement-detail {
    width: 100%;
    height: min(94vh, 900px);
    height: min(94dvh, 900px);
    padding: 21px 16px max(20px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    animation-name: profile-detail-up;
  }
  @keyframes profile-detail-up { from { transform: translateY(24px); opacity: .5; } }
  .profile-achievement-detail-head { grid-template-columns: 50px minmax(0, 1fr) 44px; gap: 10px; }
  .profile-achievement-detail-head h3 { font-size: 20px; }
  .profile-achievement-detail-head p { font-size: 12px; }
  .profile-achievement-detail-sigil { width: 48px; height: 56px; }
}

/* ---------- 正式登录页：暖日远行 ---------- */
body.login-mode { overflow: hidden; background: #fbf8f2; }
body.login-mode #app { min-height: 100vh; }

.login-wrap.login-split {
  width: 100%; height: 100vh; min-height: 680px; display: grid; grid-template-columns: minmax(500px, 46.5%) minmax(0, 1fr);
  align-items: stretch; justify-content: stretch; padding: 0; overflow: hidden; isolation: isolate;
  background: #fbf8f2;
}
.login-panel { min-width: 0; min-height: 0; overflow-y: auto; background: #fbf8f2; scrollbar-width: thin; scrollbar-color: #ddcfc4 transparent; }
.login-split .login-card {
  width: min(470px, calc(100% - 80px)); min-height: 100%; margin: 0 auto; padding: 54px 0 25px;
  display: flex; flex-direction: column; overflow: visible; isolation: auto;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; animation: none;
}
.login-split .login-card::before { display: none; }
.login-brand { width: max-content; display: inline-flex; align-items: center; gap: 11px; color: #342b25; }
.login-brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(145deg, #ec8e70, #d25c43); color: #fff; font-size: 17px; font-weight: 850;
  box-shadow: 0 7px 18px rgba(177, 72, 48, .2), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.login-brand > span:last-child { display: grid; gap: 0; }
.login-brand b { font-size: 15px; line-height: 1.35; }
.login-brand small { color: #74675e; font-size: 9px; font-weight: 650; letter-spacing: .13em; }
.login-heading { margin-top: clamp(48px, 8vh, 94px); }
.login-split .login-kicker {
  min-height: 0; margin: 0 0 16px; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: #974633; font-size: 10px; font-weight: 800; letter-spacing: .14em;
}
.login-split .login-card h1 {
  margin: 0; color: #342a24; font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(35px, 2.8vw, 41px); font-weight: 650; line-height: 1.42; letter-spacing: -.045em;
}
.login-split .login-card h1 em { color: #b94b36; font-style: normal; }
.login-split .login-card .login-heading .sub { margin: 14px 0 0; color: #6f635b; font-size: 12.5px; line-height: 1.7; }
.login-forms { margin-top: 26px; }
.login-split .login-card label { margin: 12px 0 6px; color: #5d5149; font-size: 11.5px; font-weight: 700; }
.login-split .login-card input {
  min-height: 48px; padding: 10px 14px; border: 1px solid #d8cdc3; border-radius: 10px;
  background: rgba(255, 255, 255, .78); box-shadow: none; color: #332a25; font-size: 13px;
}
.login-split .login-card input::placeholder { color: #94877e; }
.login-split .login-card input:focus { border-color: #be604b; background: #fff; box-shadow: 0 0 0 4px rgba(191, 92, 70, .1); }
.login-split .login-card .password-control input { padding-right: 60px; }
.login-split .login-card .password-control button { right: 8px; color: #77483d; }
.login-split .login-card .password-control button:hover { background: #f6e8e2; color: #6f372a; }
.login-split .login-card .btn-primary {
  width: 100%; min-height: 49px; margin-top: 18px; border-radius: 10px; background: #b94b36;
  box-shadow: 0 9px 23px rgba(157, 60, 40, .2); font-size: 13px;
}
.login-split .login-card .btn-primary:hover { background: #a9412f; box-shadow: 0 12px 28px rgba(157, 60, 40, .27); }
.login-split .login-activate-link { display: block; margin: 12px auto 0; color: #8d4635; font-size: 11px; font-weight: 700; }
.login-split .login-error { min-height: 0; margin-top: 8px; font-size: 11.5px; }
.login-split .login-error:empty { display: none; }
.login-split .caps-lock-hint { color: #944731; }
.login-split #login-code-hint,
.login-split #activate-code-hint { color: #695d55; }
.activation-heading { margin-bottom: 14px; padding: 13px 14px; display: grid; gap: 2px; border-radius: 11px; background: #f5ece7; }
.activation-heading b { color: #423630; font-size: 13px; }
.activation-heading span { color: #74675f; font-size: 10px; }
.login-split .login-card:has(#activate-form:not([hidden])) { padding-top: 32px; }
.login-split .login-card:has(#activate-form:not([hidden])) .login-heading { margin-top: 28px; }
.login-split .login-card:has(#activate-form:not([hidden])) .login-heading h1 { font-size: 29px; line-height: 1.35; }
.login-split .login-card:has(#activate-form:not([hidden])) .login-heading .sub { display: none; }
.login-split .login-card:has(#activate-form:not([hidden])) .login-forms { margin-top: 15px; }
.login-footer { margin-top: auto; padding-top: 26px; display: flex; justify-content: space-between; color: #74685f; font-size: 9px; letter-spacing: .04em; }

.login-visual { position: relative; min-width: 0; height: 100vh; min-height: 680px; margin: 0; overflow: hidden; background: #b75540; }
.login-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 17, 10, .02) 34%, rgba(46, 21, 15, .36)); pointer-events: none; }
.login-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.login-visual figcaption { position: absolute; z-index: 2; right: 7%; bottom: 8%; left: 7%; color: #fff; }
.login-visual figcaption > span { display: block; margin-bottom: 16px; font-size: 9px; font-weight: 800; letter-spacing: .17em; opacity: .85; }
.login-visual blockquote {
  max-width: 760px; margin: 0; font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(29px, 3.2vw, 49px); font-weight: 650; line-height: 1.46; letter-spacing: -.045em;
}
.login-visual figcaption > div { margin-top: 22px; display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, .78); font-size: 10px; }
.login-visual figcaption > div i { width: 22px; height: 1px; background: rgba(255, 255, 255, .64); }

@media (max-width: 1000px) {
  .login-wrap.login-split { grid-template-columns: minmax(440px, 55%) minmax(0, 45%); }
  .login-split .login-card { width: min(430px, calc(100% - 50px)); }
  .login-visual blockquote { font-size: 30px; }
}

@media (max-width: 720px) {
  body.login-mode { overflow: auto; }
  .login-wrap.login-split { height: auto; min-height: 100svh; display: flex; flex-direction: column; overflow: visible; }
  .login-visual { order: -1; width: 100%; height: 35svh; min-height: 245px; }
  .login-visual figcaption { right: 20px; bottom: 22px; left: 20px; }
  .login-visual figcaption > span { margin-bottom: 7px; font-size: 8px; }
  .login-visual blockquote { max-width: 390px; font-size: clamp(22px, 6.6vw, 28px); line-height: 1.45; }
  .login-visual figcaption > div { display: none; }
  .login-panel { overflow: visible; }
  .login-split .login-card { width: min(440px, calc(100% - 40px)); min-height: 65svh; padding: 25px 0 22px; }
  .login-brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; }
  .login-heading { margin-top: 26px; }
  .login-split .login-kicker { margin-bottom: 8px; font-size: 8.5px; }
  .login-split .login-card h1 { font-size: clamp(28px, 8vw, 35px); line-height: 1.4; }
  .login-split .login-card .login-heading .sub { margin-top: 8px; font-size: 11.5px; }
  .login-forms { margin-top: 18px; }
  .login-split .login-card input { min-height: 47px; font-size: 16px; }
  .login-footer { padding-top: 22px; }
}

@media (max-height: 760px) and (min-width: 721px) {
  .login-wrap.login-split, .login-visual { min-height: 620px; }
  .login-split .login-card { padding-top: 30px; }
  .login-heading { margin-top: 30px; }
  .login-split .login-card h1 { font-size: 34px; }
  .login-split .login-card .login-heading .sub { margin-top: 8px; }
  .login-forms { margin-top: 15px; }
  .login-split .login-card input { min-height: 43px; }
  .login-split .login-card .btn-primary { min-height: 45px; margin-top: 13px; }
  .login-footer { padding-top: 18px; }
}
