/* ============================================================
   界面 v2(2026-09-26 设计稿落地):紧凑侧栏、面包屑顶栏、中央输入框首页、bento 网格、汇总页
   只做覆盖与新增,不改 app.css / workbench.css 的既有规则
   ============================================================ */
:root { --rail-w: 232px; --rail-min: 60px; }

/* ---------- 侧栏 ---------- */
.rail { width: var(--rail-w); background: var(--bg-elevated); transition: width .2s var(--ease-out); }
:root:not([data-theme="dark"]) .rail { background: #FAFAFB; }
.rail__brand { display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 10px 0 16px; margin: 0; border: none; }
.rail__logo { height: 19px; width: auto; flex-shrink: 0; }
:root[data-theme="dark"] .rail__logo { filter: brightness(0) invert(.92); }
.rail__sep { width: 1px; height: 14px; background: var(--border-strong); flex-shrink: 0; }
.rail__title { font-size: 13.5px; font-weight: 650; white-space: nowrap; letter-spacing: .2px; }
.rail__fold { margin-left: auto; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); flex-shrink: 0; }
.rail__fold:hover { background: var(--surface-2); color: var(--text); }
.rail__row { padding: 2px 12px 6px; }
.rail .rail__new {
  width: 100%; height: 34px; margin: 0; border-radius: 9px; justify-content: flex-start; gap: 8px; padding: 0 11px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: 0 1px 1px rgba(15,23,38,.03);
  font-size: 13px; font-weight: 550;
}
.rail .rail__new:hover { background: var(--surface); border-color: var(--brand); color: var(--brand); transform: none; }
.rail__nav { padding: 2px 8px 4px; display: flex; flex-direction: column; gap: 1px; }
.rail__nav button {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 9px; border-radius: 8px;
  font-size: 13px; color: var(--text-2); text-align: left; white-space: nowrap;
}
.rail__nav button svg { color: var(--text-3); flex-shrink: 0; }
.rail__nav button:hover { background: var(--surface-2); color: var(--text); }
.rail__nav button.is-on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.rail__nav button.is-on svg { color: var(--brand); }
.rail__nav em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 99px; padding: 0 6px; line-height: 16px; }
.rail__search { margin: 10px 12px 2px; height: 30px; }
.rail__search kbd { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; line-height: 15px; }
.rail__group { padding: 10px 16px 3px; font-size: 11px; letter-spacing: .5px; }
.rail__list { padding: 0 8px; }
.sess { height: 30px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; gap: 7px; margin: 0; }
.sess.is-active::before { display: none; }
.sess.is-active { background: var(--surface-3); color: var(--text); font-weight: 500; }
.sess__dot { width: 6px; height: 6px; box-shadow: none; margin-right: 0; }
.sess__time { margin-left: auto; font-size: 11px; color: var(--text-3); flex-shrink: 0; padding-left: 6px; }
.sess:hover .sess__time { display: none; }
.sess.is-busy::after {
  content: ''; width: 11px; height: 11px; margin-left: auto; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--border-strong); border-top-color: var(--brand); animation: spin 1s linear infinite;
}
.rail__foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.rail__ava { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #0B318F, #006CD9); }
.rail__me { min-width: 0; flex: 1; line-height: 1.25; }
.rail__me b { display: block; font-size: 12.5px; font-weight: 600; }
.rail__me small { font-size: 11px; color: var(--text-3); }
.rail__foot .iconbtn { width: 28px; height: 28px; }

/* 折叠成图标栏 */
@media (min-width: 901px) {
  body.rail-min .rail { width: var(--rail-min); }
  body.rail-min .rail__sep, body.rail-min .rail__title, body.rail-min .rail__logo,
  body.rail-min .rail__new span, body.rail-min .rail__nav span, body.rail-min .rail__search,
  body.rail-min .rail__list, body.rail-min .rail__group, body.rail-min .rail__me, body.rail-min #btnClear { display: none; }
  body.rail-min .rail__brand { padding: 0; justify-content: center; }
  body.rail-min .rail__fold { margin: 0; }
  body.rail-min .rail__row { padding: 2px 12px 6px; }
  body.rail-min .rail .rail__new { justify-content: center; padding: 0; }
  body.rail-min .rail__nav button { justify-content: center; padding: 0; position: relative; }
  body.rail-min .rail__nav em { position: absolute; top: 2px; right: 4px; }
  body.rail-min .rail__foot { flex-direction: column; margin-top: auto; }
}

/* ---------- 顶栏 ---------- */
.topbar { gap: 10px; }
.topbar__crumb { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--text-3); }
.topbar__crumb i { font-style: normal; color: var(--border-strong); }
.topbar__crumb .topbar__title { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.topbar__crumb .topbar__title:empty, .topbar__crumb .topbar__title:empty ~ *, body.is-home .topbar__crumb i, body.is-home .topbar__crumb .topbar__title { display: none; }
body.is-view .topbar__crumb i, body.is-view .topbar__crumb .topbar__title { display: none; }
.topbar__crumb #crumbView { color: var(--text-3); }
body.is-home .topbar__crumb #crumbView, body.is-view .topbar__crumb #crumbView { color: var(--text); font-weight: 600; }
.taskpill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; max-width: 320px;
  border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; color: var(--text-2);
  box-shadow: 0 1px 1px rgba(15,23,38,.03); white-space: nowrap; overflow: hidden; transition: border-color .15s;
}
.taskpill:hover { border-color: var(--brand); }
.taskpill b { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.taskpill em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--brand); }
.taskpill__spin { width: 11px; height: 11px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--border-strong); border-top-color: var(--brand); animation: spin 1s linear infinite; }
.taskpill:not([hidden]) + .topbar__badge { margin-left: 0; }

/* ---------- 首页 ---------- */
body.is-home .composer { display: none; }
.home2 { position: relative; }
/* 首页区块在 bento 之上:卡片有入场动画(transform 会新建层叠上下文),不抬高的话能力菜单会被它们盖住 */
.hero2 { position: relative; z-index: 5; padding: 54px 24px 26px; }
.hero2__bg { position: absolute; inset: -60px 0 auto 0; height: 440px; pointer-events: none;
  background:
    radial-gradient(520px 260px at 28% 12%, color-mix(in srgb, var(--sf-blue) 12%, transparent), transparent 70%),
    radial-gradient(460px 240px at 74% 0%, color-mix(in srgb, var(--sf-logo-green) 10%, transparent), transparent 70%),
    radial-gradient(380px 220px at 52% 32%, color-mix(in srgb, #6D5BD0 7%, transparent), transparent 70%); }
.hero2__bg::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: radial-gradient(600px 300px at 50% 22%, #000, transparent 75%); mask-image: radial-gradient(600px 300px at 50% 22%, #000, transparent 75%); }
.hero2__in { position: relative; max-width: 780px; margin: 0 auto; text-align: center; animation: rise .5s var(--ease-out) both; }
.eyebrow2 { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 12px; color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(6px); max-width: 100%; }
.eyebrow2 i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.eyebrow2 b { color: var(--text); font-weight: 600; }
.eyebrow2 > span { width: 1px; height: 11px; background: var(--border-strong); }
.hero2__title { font-size: 34px; font-weight: 700; letter-spacing: -.6px; line-height: 1.25; margin: 18px 0 8px; }
.hero2__title span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2__sub { font-size: 14px; color: var(--text-3); margin: 0 0 24px; }
.hero2__cmp { text-align: left; }
.hero2__cmp .composer__inner { max-width: none; }
.hero2__cmp .box {
  border-radius: 18px; padding: 14px 12px 10px 14px; flex-wrap: wrap; align-items: flex-end; box-shadow: var(--shadow-3);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(120deg, color-mix(in srgb, var(--sf-blue) 55%, transparent), color-mix(in srgb, #6D5BD0 35%, transparent), color-mix(in srgb, var(--sf-logo-green) 50%, transparent));
  background-origin: border-box; background-clip: padding-box, border-box;
}
.hero2__cmp .box textarea { order: -2; flex: 1 0 100%; min-height: 60px; padding: 2px 6px 8px; font-size: 15px; }
.hero2__cmp .box:focus-within { box-shadow: var(--shadow-3), 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.hero2__cmp .send { margin-left: auto; }
.hero2__cmp .composer__hint { text-align: center; }
.hero2__cmp .modemenu { bottom: auto; top: calc(100% + 6px); }
.hero2__caps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px -60px 0; }
.cap2 { --c: var(--brand); display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; font-size: 12.5px;
  color: var(--text-2); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); transition: border-color .15s, color .15s, background .15s; }
.cap2 svg { color: var(--c); }
.cap2:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); color: var(--text); background: var(--surface); }

.bento2 { max-width: 1120px; margin: 0 auto; padding: 8px 24px 44px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.tile { grid-column: span 12; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 15px 17px; box-shadow: 0 1px 2px rgba(15,23,38,.03); animation: rise .45s var(--ease-out) both; }
.tile.s7 { grid-column: span 7; } .tile.s5 { grid-column: span 5; } .tile.s4 { grid-column: span 4; } .tile.s6 { grid-column: span 6; }
.tile__h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-width: 0; }
.tile__ic { display: inline-flex; }
.tile__h b { font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.tile__h small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.tile__more:hover { color: var(--brand); }
.tile__empty { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }

.tabs2 { display: flex; gap: 3px; padding: 3px; background: var(--surface-2); border-radius: 9px; margin-bottom: 16px; }
.tabs2 button { flex: 1; height: 28px; border-radius: 7px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.tabs2 button.is-on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,38,.08); }
.steps2 { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.steps2::before { content: ''; position: absolute; left: 14px; right: 14px; top: 13px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 5px, transparent 5px 9px); }
.step2 { position: relative; text-align: left; padding: 0 10px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.step2__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text-3);
  background: var(--surface); border: 1.5px solid var(--border-strong); position: relative; z-index: 1; transition: all .15s; }
.step2 b { font-size: 13px; font-weight: 600; line-height: 1.4; }
.step2__cap { --c: var(--brand); font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; color: color-mix(in srgb, var(--c) 85%, var(--text)); background: color-mix(in srgb, var(--c) 11%, transparent); }
.step2:hover .step2__n { border-color: var(--brand); color: var(--brand); }
.step2.is-done .step2__n { background: var(--success); border-color: var(--success); color: #fff; }
.step2.is-cur .step2__n { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.flow2__cta { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--border); }
.flow2__cta p { flex: 1; margin: 0; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.flow2__cta .wbbtn svg { width: 12px; height: 12px; }

.task2s, .panel2 { display: flex; flex-direction: column; }
.task2 { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); text-align: left; width: 100%; }
.task2:first-child { border-top: none; padding-top: 0; }
.task2__ic { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); color: var(--success); }
.task2__ic.is-run { background: var(--brand-soft); }
.task2__ic.is-run i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--brand) 30%, transparent); border-top-color: var(--brand); animation: spin 1s linear infinite; }
.task2__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.task2__b b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task2__b small { font-size: 11.5px; color: var(--text-3); }
.prog2 { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.prog2 i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #fff)); }
.prog2.is-ind i { width: 35%; animation: scan 1.4s ease-in-out infinite; }
.file2 { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-top: 8px; border-radius: 9px; background: var(--surface-2); text-decoration: none; color: var(--text); }
.file2 > span:not(.ext2) { flex: 1; min-width: 0; }
.file2 b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file2 small { font-size: 11px; color: var(--text-3); }
.file2 svg { color: var(--brand); }
.ext2 { font-size: 9.5px; font-weight: 800; padding: 2px 4px; border-radius: 3px; color: #fff; flex-shrink: 0; line-height: 1.3; }

.resume2__b { display: flex; flex-direction: column; gap: 9px; text-align: left; width: 100%; }
.resume2__b > b { font-size: 14px; font-weight: 650; }
.resume2__b > small { font-size: 12px; color: var(--text-3); }
.kv2 { display: flex; flex-wrap: wrap; gap: 5px; }
.kv2 span { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.kv2 i { font-style: normal; color: var(--text-3); margin-right: 4px; }
.resume2__caps { display: flex; gap: 5px; flex-wrap: wrap; }
.resume2:hover { border-color: var(--border-strong); }

.pitch2 { background: linear-gradient(160deg, #0B2447 0%, #0B3A78 55%, #0F5CAF 100%); border: none; color: #fff; }
.pitch2::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(83,199,0,.35), transparent 70%); pointer-events: none; }
.pitch2 .tile__h b { color: #fff; }
.pitch2 .tile__h small, .pitch2 .tile__more { color: rgba(255,255,255,.62); }
.pitch2 .tile__more:hover { color: #fff; }
.pitch2 blockquote { margin: 0; font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.pitch2 blockquote b { color: #9BE15D; font-weight: 650; }
.pitch2__three { display: flex; gap: 6px; margin-top: 12px; position: relative; z-index: 1; }
.pitch2__three span { flex: 1; text-align: center; font-size: 12px; padding: 7px 0; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }

.list2 { display: flex; flex-direction: column; }
.list2__i { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--border); font-size: 12.5px; text-align: left; width: 100%; border-radius: 0; }
.list2__i:first-child { border-top: none; padding-top: 0; }
.list2__i em { flex: 1; min-width: 0; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.list2__i:hover em { color: var(--brand); }
.list2__i small { font-size: 11.5px; color: var(--text-3); flex-shrink: 0; }
.rank2 { width: 18px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.rank2.is-top { color: var(--brand); font-weight: 700; }

.capgrid2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.capgrid2 button { --c: var(--brand); display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--border); text-align: left; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.capgrid2 button:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); box-shadow: var(--shadow-1); }
.capgrid2__ic { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.capgrid2 b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.capgrid2 small { display: block; font-size: 11px; color: var(--text-3); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capgrid2 span:last-child { min-width: 0; }

/* ---------- 汇总页 ---------- */
.page2 { max-width: 980px; margin: 0 auto; padding: 34px 24px 48px; animation: rise .4s var(--ease-out) both; }
.page2__h h1 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; margin: 0 0 6px; }
.page2__h p { font-size: 13.5px; color: var(--text-3); margin: 0 0 20px; }
.page2__h2 { font-size: 14px; font-weight: 650; margin: 26px 0 10px; }
.page2__note { font-size: 12.5px; color: var(--text-3); line-height: 1.7; margin: 14px 0 0; }
.panel2 { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.panel2.list2 .list2__i { padding: 9px 2px; }
.flows2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.flowcard { --c: var(--brand); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; position: relative; overflow: hidden; }
.flowcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 20%, transparent)); }
.flowcard__h { display: flex; gap: 11px; margin-bottom: 12px; }
.flowcard__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.flowcard__h b { display: block; font-size: 15px; font-weight: 650; }
.flowcard__h small { font-size: 12px; color: var(--text-3); }
.flowcard__steps { list-style: none; margin: 0; padding: 0; }
.flowcard__steps button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; font-size: 13px; color: var(--text-2); text-align: left; }
.flowcard__steps button:hover { background: var(--surface-2); color: var(--text); }
.flowcard__steps button > span:first-child { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); flex-shrink: 0; }
.flowcard__steps .capbadge { margin-left: auto; }
.flowcard__ing { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.flowcard__ing small { font-size: 11.5px; color: var(--text-3); margin-right: 4px; }
.flowcard__ing button { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.flowcard__ing button:hover { color: var(--brand); }
.filerow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.filerow:first-child { border-top: none; padding-top: 0; }
.filerow__b { flex: 1; min-width: 0; }
.filerow__b b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filerow__b small { font-size: 11.5px; color: var(--text-3); }
.filerow .wbbtn { height: 30px; text-decoration: none; }
.libstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.libstats div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.libstats b { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.5px; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.libstats span { display: block; font-size: 12.5px; color: var(--text-2); }
.libstats small { display: block; font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ---------- 对话页微调:用户气泡改浅色 ---------- */
.msg--user .msg__body { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15,23,38,.04); }
.msg--user .chip { background: var(--surface-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .tile.s7, .tile.s5 { grid-column: span 12; }
  .tile.s4 { grid-column: span 6; }
  .tile.s6 { grid-column: span 12; }
  .flows2 { grid-template-columns: minmax(0, 1fr); }
  .libstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .taskpill { max-width: 150px; }
}
@media (max-width: 640px) {
  .hero2 { padding: 26px 14px 18px; }
  .hero2__title { font-size: 24px; }
  .hero2__sub { font-size: 13px; margin-bottom: 16px; }
  .eyebrow2 { font-size: 11px; white-space: nowrap; overflow: hidden; }
  .hero2__caps { margin: 12px 0 0; }
  .bento2 { padding: 4px 14px 30px; gap: 10px; }
  .tile.s4 { grid-column: span 12; }
  .steps2 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .steps2::before { display: none; }
  .step2 { flex-direction: row; align-items: center; }
  .capgrid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .taskpill b { display: none; }
  .tabs2 { overflow-x: auto; scrollbar-width: none; }
  .tabs2::-webkit-scrollbar { display: none; }
  .tabs2 button { flex: 0 0 auto; padding: 0 10px; }
  .flow2__cta { flex-wrap: wrap; }
  .page2 { padding: 22px 14px 32px; }
}
.hero2__cmp .composer__hint { display: none; }
