/* ============================================================================
   升小满 · 纸质手账皮肤（/open）
   覆盖 live.css / live-v3.css / breakthrough.css 的观感，不改动任何 JS 逻辑。
   ========================================================================== */

:root {
  --canvas: #e9dfc8;
  --canvas-deep: #eee5d0;
  --paper: #f2e9d5;
  --paper-soft: #f6eedd;
  --ink: #2e2a20;
  --ink-soft: #453f30;
  --muted: #6b6350;
  --faint: #948b73;
  --line: #cdbf9f;
  --line-strong: #9d8f70;
  --accent: #c1652f;
  --accent-deep: #a1501f;
  --accent-soft: #f0e0c6;
  --accent-pale: #f6eedd;
  --sage: #33453a;
  --sage-soft: #e4e4d2;
  --sky: #59684a;
  --sky-soft: #eef0e0;
  --danger: #8d3524;
  --shadow-sm: 0 1px 2px rgba(70, 58, 35, .07), 0 8px 20px rgba(70, 58, 35, .06);
  --shadow-lg: 0 22px 50px rgba(70, 58, 35, .18);
  --font: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --kai: "Kaiti SC", "KaiTi", "STKaiti", cursive;
  --brass: #b08d4f;
  --ink-green: #33453a;
  --ink-green-deep: #26332b;
  --chat-user-bubble: #f4ead8;
  --chat-user-border: #cdb48e;
  --chat-paper-shadow: 1px 2px 0 rgba(58, 50, 35, .12);
}

html,
body {
  background: var(--canvas);
}

body {
  color: var(--ink);
  font: 13px/1.7 var(--font);
}

/* 纸张颗粒 */
body::after {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

::selection {
  color: #332c1d;
  background: #e5d6b4;
}

/* ---------------------------------------------------------------- 三栏骨架 */
.app-shell {
  grid-template-columns: 272px minmax(0, 1fr) 382px;
}

body.embed-mode .paper-rail {
  display: none !important;
}

/* -------------------------------------------------------------------- 侧栏 */
.sidebar {
  padding: 14px 12px 12px;
  background: linear-gradient(180deg, #f1ead9 0%, #ebe3d0 100%);
  border-right: 1px solid var(--line);
}

.sidebar-head {
  min-height: 36px;
  padding: 0 4px 10px;
}

.brand {
  gap: 8px;
}

.brand-avatar {
  width: 30px;
  height: 30px;
  border: 0;
  box-shadow: 0 0 0 1px rgba(30, 26, 18, .55), 0 1px 3px rgba(24, 20, 12, .28);
}

.brand-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.sidebar .icon-button {
  width: 30px;
  height: 30px;
}

/* 新对话 */
.new-chat {
  min-height: 36px;
  padding: 0 12px;
  color: #f1ead9;
  background: #33453a;
  border: 1px solid #000;
  border-radius: 9px;
  box-shadow: 2px 3px 0 rgba(50, 42, 25, .22);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 2.5px;
}

.new-chat:hover {
  background: #2b271e;
  transform: translateY(-1px);
  box-shadow: 3px 4px 0 rgba(50, 42, 25, .22);
}

.new-chat:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 rgba(50, 42, 25, .22);
}

.new-chat svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.new-chat kbd {
  color: rgba(241, 234, 217, .55);
  background: transparent;
  border: 1px solid rgba(241, 234, 217, .22);
  border-radius: 5px;
  font-family: var(--font);
  font-size: 9px;
  letter-spacing: 0;
  padding: 0 4px;
}

/* 功能分组标题 */
.sidebar-features {
  margin-top: 12px;
}

.sidebar-features-toggle {
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.sidebar-features-toggle:hover {
  background: rgba(60, 52, 35, .06);
}

.sidebar-features-title {
  gap: 7px;
  color: #3d392e;
  font-size: 12px;
  letter-spacing: .5px;
}

.sidebar-features-title svg {
  width: 13px;
  height: 13px;
  color: #7a7362;
}

.sidebar-features-title small,
.sidebar-features-state {
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0;
}

.sidebar-feature-group-label {
  padding: 11px 8px 3px;
  color: var(--muted);
  border-top: 1px dashed rgba(126, 112, 83, .2);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.6px;
}

.sidebar-feature-group-label:first-child {
  padding-top: 5px;
  border-top: 0;
}

/* 功能条目 */
.sidebar .skills-nav {
  gap: 7px;
  margin: 1px 0 0;
  padding: 6px 8px;
  color: #3d392e;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  box-shadow: none;
}

.sidebar .skills-nav:hover {
  background: rgba(60, 52, 35, .07);
  border-color: transparent;
  transform: none;
}

.sidebar .skills-nav .workspace-icon {
  width: 18px;
  height: 18px;
  color: #7a7362;
  background: transparent !important;
  border: 0;
  border-radius: 0;
}

.sidebar .skills-nav .workspace-icon svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.6;
}

.sidebar .skills-nav b {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .6px;
}

.sidebar .skills-nav small {
  display: none;
}

.sidebar .skills-nav .chevron {
  width: 10px;
  height: 10px;
  color: var(--faint);
  opacity: .8;
}

.sidebar .skills-nav.autonomy-nav,
.sidebar .skills-nav.canvas-nav,
.sidebar .skills-nav.eac-nav,
.sidebar .skills-nav.material-nav {
  background: transparent;
  border-color: transparent;
}

/* 选中态（深绿药丸） */
.sidebar .skills-nav.is-active,
.sidebar .skills-nav[aria-current="page"] {
  color: #f0e6d0;
  background: linear-gradient(180deg, #33453a, #26332b);
  border-color: #2f3823;
  box-shadow: 1px 2px 0 rgba(40, 34, 20, .25);
}

.sidebar .skills-nav.is-active .workspace-icon,
.sidebar .skills-nav[aria-current="page"] .workspace-icon {
  color: #d8cdaf;
}

.sidebar .skills-nav.is-active .chevron,
.sidebar .skills-nav[aria-current="page"] .chevron {
  color: rgba(240, 233, 215, .6);
}

/* ------------------------------------------------------------------ 顶栏 */
.topbar {
  height: 54px;
  padding: 0 20px;
}

.topbar::after {
  right: 20px;
  left: 20px;
  background: linear-gradient(90deg, transparent, rgba(177, 167, 140, .55) 20%, rgba(177, 167, 140, .55) 80%, transparent);
}

.topbar-kicker {
  display: none;
}

.topbar-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.topbar-actions {
  gap: 8px;
}

.topbar-actions > a,
.topbar-actions > button {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #39352a;
  background: rgba(250, 246, 236, .75);
  border: 1px solid #b5ab93;
  border-radius: 999px;
  box-shadow: 1px 1px 0 rgba(60, 50, 30, .1);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .6px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}

.topbar-actions > a:hover,
.topbar-actions > button:hover {
  color: #2e2a20;
  background: #fffaf0;
  border-color: var(--line-strong);
  transform: none;
}

.topbar-actions svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.8;
}

.topbar-actions > .top-autonomy {
  color: #f0e9d8;
  background: #33453a;
  border-color: #26332b;
}

.topbar-actions > .top-autonomy:hover {
  color: #fffaf0;
  background: #332f22;
}

.topbar-actions > .model-status {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  padding: 0 6px;
}

.topbar-actions > .top-login {
  color: #5d584a;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0 6px;
}

.topbar-actions > .top-call {
  color: var(--accent-deep);
  background: rgba(250, 246, 236, .7);
  border-color: var(--accent);
}

/* 主列：纸张底色与页边阴影 */
.main {
  background: linear-gradient(180deg, #efe8d8, var(--canvas));
  box-shadow:
    inset 24px 0 34px -34px rgba(70, 58, 35, .5),
    inset -24px 0 34px -34px rgba(70, 58, 35, .5);
}

/* ------------------------------------------------------------ 欢迎区（纸卡） */
.welcome {
  width: min(800px, calc(100% - 40px));
  padding: 14px 0 300px;
  align-items: center;
}

.welcome-glow {
  display: none;
}

/* 纸张页边（中间的整张纸） */
.welcome::before,
.welcome::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, #cfc5ac 6%, #cfc5ac 94%, transparent);
  content: "";
  opacity: .75;
  pointer-events: none;
}

.welcome::before {
  left: -22px;
}

.welcome::after {
  right: -22px;
}

/* 使用统计：铺满中间栏，被自我介绍卡压住 */
.paper-stats {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  z-index: 1;
  font-size: 11.5px;
  text-align: left;
  animation: none;
}

.paper-stats-head,
.paper-stats-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 74px;
  align-items: center;
}

.paper-stats-head {
  padding: 0 2px 7px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 1.5px;
}

.paper-stats-row {
  padding: 6.5px 2px;
  border-bottom: 1px dashed var(--line);
  color: #454033;
}

.paper-stats-row em {
  display: flex;
  align-items: center;
  gap: 7px;
  font-style: normal;
  letter-spacing: .5px;
}

.paper-stats-row em::before {
  width: 4px;
  height: 4px;
  flex: none;
  background: #b0a68c;
  border-radius: 50%;
  content: "";
}

.paper-stats-head span:nth-child(2),
.paper-stats-head span:nth-child(3),
.paper-stats-row span {
  text-align: right;
  color: #7d7663;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* 自我介绍纸卡 */
.paper-hero {
  position: relative;
  z-index: 2;
  width: min(500px, 100%);
  margin: 62px auto 0;
  padding: 42px 34px 26px;
  background: linear-gradient(180deg, #f6eedb, #f0e9d7);
  border: 1px solid #b6ab8f;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(72, 60, 36, .16), inset 0 2px 0 rgba(255, 255, 255, .55);
  text-align: center;
  transform: rotate(-.4deg);
  animation: heroIn .72s .04s var(--ease) both;
}

.paper-hero::before,
.paper-hero::after {
  position: absolute;
  width: 78px;
  height: 18px;
  background: rgba(198, 180, 140, .55);
  box-shadow: 0 1px 2px rgba(90, 75, 45, .15);
  content: "";
}

.paper-hero::before {
  top: 42%;
  left: -30px;
  transform: rotate(-38deg);
}

.paper-hero::after {
  right: -30px;
  bottom: 26%;
  transform: rotate(-42deg);
}

/* 头像：拍立得相纸 */
.paper-hero .hero-avatar.avatar-orb {
  position: absolute;
  top: -36px;
  left: 50%;
  width: 66px;
  height: 78px;
  margin: 0;
  background: #faf6ec;
  border: 5px solid #faf6ec;
  border-bottom-width: 14px;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(70, 58, 35, .22), 0 0 0 1px rgba(150, 137, 108, .5);
  transform: translateX(-50%) rotate(2deg);
}

.paper-hero .hero-avatar.avatar-orb img {
  border-radius: 1px;
}

/* 问候与标题 */
.welcome-time {
  margin: 2px 0 6px;
  color: #6d6653;
  font-family: var(--kai);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 6px;
  transform: rotate(-1deg);
}

.welcome h1 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  color: #211f18;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: 10px;
  line-height: 1.2;
  padding-left: 10px;
}

.welcome h1::before,
.welcome h1::after {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #8d846c);
  content: "";
}

.welcome h1::after {
  background: linear-gradient(90deg, #8d846c, transparent);
}

.welcome-lead {
  margin: 0;
  color: #57513f;
  font-size: 12.5px;
  letter-spacing: .4px;
  line-height: 1.95;
}

.welcome-lead b {
  margin-bottom: 2px;
  color: #3d3627;
  font-size: 12.5px;
  font-weight: 600;
}

.welcome-lead span {
  max-width: 420px;
  line-height: 1.95;
}

/* 印章 */
.paper-hero .paper-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 7px;
  transform: rotate(7deg);
  border: 1px dashed #9a8f70;
  background: rgba(240, 230, 205, .7);
  text-align: center;
  line-height: 1.25;
}

.paper-hero .paper-stamp b {
  display: block;
  color: #6d6146;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
}

.paper-hero .paper-stamp small {
  color: #a1977d;
  font-size: 8px;
  letter-spacing: 1px;
}

/* ------------------------------------------------- 破限模式：酒红手账横条 */
.breakthrough-rail {
  z-index: 4;
  display: flex;
  width: min(680px, 100%);
  align-items: center;
  gap: 0;
  margin: -20px auto 0;
  padding: 11px 18px;
  overflow: visible;
  color: #ecdcbf;
  background: linear-gradient(180deg, #4d261c, #3f1e15);
  border: 1px solid #2c140d;
  border-radius: 11px;
  box-shadow: 0 10px 22px rgba(60, 30, 15, .3), inset 0 1px 0 rgba(255, 220, 180, .12);
  isolation: auto;
  animation: none;
}

.breakthrough-rail::before {
  display: none;
}

.breakthrough-rail::after {
  position: absolute;
  top: -8px;
  right: 46px;
  width: 76px;
  height: 16px;
  background: rgba(198, 180, 140, .5);
  box-shadow: 0 1px 2px rgba(90, 75, 45, .12);
  content: "";
  transform: rotate(3deg);
  pointer-events: none;
}

.breakthrough-rail-copy {
  gap: 0;
  padding: 0 16px 0 0;
  border-right: 1px solid rgba(240, 220, 180, .22);
}

.breakthrough-signal {
  display: none;
}

.breakthrough-rail-copy small {
  display: none;
}

.breakthrough-rail-copy b {
  color: #f1e3c6;
  font-family: var(--kai);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 3px;
}

.breakthrough-rail-actions {
  display: flex;
  flex: 1;
  gap: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.breakthrough-rail-actions > button {
  display: flex;
  min-height: 0;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0 !important;
}

.breakthrough-rail-actions > button + button::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 14px;
  background: rgba(240, 220, 180, .22);
  content: "";
  transform: translateY(-50%);
}

.breakthrough-rail-actions > button:hover {
  background: rgba(255, 235, 200, .07);
}

.breakthrough-rail-actions > button > span:last-of-type {
  gap: 0;
}

.breakthrough-rail-actions b {
  color: #e2d0ac;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
}

.breakthrough-rail-actions small {
  display: none;
}

.breakthrough-rail-icon {
  width: 14px;
  height: 14px;
  color: #e2d0ac;
  background: none;
  border: 0;
  border-radius: 0;
}

.breakthrough-rail-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.7;
}

.breakthrough-due-badge,
.breakthrough-expansion-badge {
  position: static;
  margin-left: 5px;
  padding: 0 4px;
  color: #f0e3c6;
  background: rgba(240, 220, 180, .18);
  border: 1px solid rgba(240, 220, 180, .3);
  border-radius: 5px;
  font-size: 9px;
  font-style: normal;
  line-height: 1.6;
}

/* ------------------------------------------------ 青蓝 OPC 社区：纸药丸行 */
.home-recruit-banner {
  display: flex;
  width: min(680px, 100%);
  align-items: center;
  gap: 10px;
  margin: 11px auto 0;
  padding: 0;
  overflow: visible;
  background: none;
  border: 0;
  box-shadow: none;
  animation: none;
}

.home-recruit-banner::after {
  display: none;
}

.home-recruit-banner:hover {
  transform: none;
  box-shadow: none;
}

.home-recruit-badge {
  display: none;
}

.home-recruit-main {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  background: rgba(250, 246, 236, .8);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 1px 1px 0 rgba(60, 50, 30, .12);
}

.home-recruit-main::before {
  width: 7px;
  height: 7px;
  flex: none;
  background: #3e5136;
  border-radius: 50%;
  content: "";
}

.home-recruit-main small,
.home-recruit-main > span {
  display: none;
}

.home-recruit-main > b {
  margin: 0;
  color: #45402f;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
}

.home-recruit-cta {
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.home-recruit-cta > b {
  display: none;
}

.home-recruit-cta > small {
  padding-bottom: 1px;
  color: #77705c;
  border-bottom: 1px dashed #a99f85;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .5px;
}

/* --------------------------------------------------- 主要功能：纸片能力格 */
.main-feature-showcase {
  width: min(680px, 100%);
  margin: 13px auto 0;
  animation: none;
}

.main-feature-showcase-head {
  display: none;
}

.main-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 0;
}

.main-feature-card {
  min-height: 0;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  color: #2b281f;
  background: linear-gradient(180deg, #f6eedd, #efe6d1);
  border: 1px solid #3c372b;
  border-radius: 10px;
  box-shadow: 2px 3px 0 rgba(58, 50, 35, .16);
}

.main-feature-card:hover {
  background: #fbf7ec;
  border-color: #2b271e;
  box-shadow: 3px 5px 0 rgba(58, 50, 35, .16);
  transform: translateY(-2px);
}

.main-feature-card:active {
  box-shadow: 1px 1px 0 rgba(58, 50, 35, .16);
  transform: translateY(1px);
}

.main-feature-primary,
.main-feature-card.autonomy-feature-primary {
  grid-column: auto;
  grid-row: auto;
  display: flex;
  min-height: 0;
  background: linear-gradient(180deg, #f8f3e6, #f1ebda);
  border-color: #3c372b;
}

.main-feature-primary .main-feature-flow {
  display: none;
}

.main-feature-primary .main-feature-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.main-feature-primary .main-feature-copy > small {
  display: none;
}

.main-feature-primary .main-feature-copy > p {
  display: none;
}

.topbar .scene-toggle,
.topbar .winter-scene-toggle {
  display: none !important;
}

.main-feature-icon {
  width: 26px;
  height: 26px;
  color: #3d382b !important;
  background: rgba(255, 252, 244, .7) !important;
  border: 1px solid #8d846c;
  border-radius: 7px;
}

.main-feature-icon svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.5;
}

.main-feature-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.main-feature-copy > small {
  order: 2;
  overflow: hidden;
  color: #8c8570;
  font-size: 9.5px;
  letter-spacing: .3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-feature-copy > b {
  order: 1;
  overflow: hidden;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-feature-copy p,
.main-feature-flow {
  display: none;
}

/* 深绿反白卡（生成类） */
.main-feature-card.paper-ink {
  color: #efe6cf;
  background: linear-gradient(180deg, #3c472f, #333c26);
  border-color: #2a3222;
}

.main-feature-card.paper-ink .main-feature-icon {
  color: #ded3b3 !important;
  background: rgba(255, 252, 244, .14) !important;
  border-color: rgba(222, 211, 179, .6);
}

.main-feature-card.paper-ink .main-feature-copy > b {
  color: #f2ead7;
}

.main-feature-card.paper-ink .main-feature-copy > small {
  color: #c3b997;
}

/* --------------------------------------------------- 快捷提问（纸片小卡） */
.starter-list {
  width: min(680px, 100%);
  margin-top: 12px;
  gap: 9px;
  animation: none;
}

.starter {
  min-height: 0;
  gap: 8px;
  padding: 9px 11px;
  background: rgba(250, 246, 236, .6);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 1px 2px 0 rgba(58, 50, 35, .12);
}

.starter:hover {
  background: #fbf7ec;
  border-color: #3c372b;
}

.starter-icon {
  width: 24px;
  height: 24px;
  color: #3d382b;
  background: transparent !important;
  border: 1px solid #8d846c;
  border-radius: 7px;
}

.starter-icon svg {
  width: 12px;
  height: 12px;
}

.starter b {
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .6px;
}

.starter small {
  color: #8c8570;
  font-size: 9.5px;
}

.starter .chevron {
  color: var(--faint);
}

/* ------------------------------------------------------------ 技能货架 */
.skill-shelf {
  width: min(680px, 100%);
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #f4eee0, #efe8d6);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 1px 2px 0 rgba(58, 50, 35, .1);
}

.skill-shelf-copy p {
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 1.5px;
}

.skill-shelf-copy h2 {
  color: #26231c;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
}

.skill-shelf-copy span {
  color: #8c8570;
  font-size: 9.5px;
}

.skill-quiet-button,
.skill-manage-button {
  color: #56503f;
  background: rgba(250, 246, 236, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
}

.featured-skills {
  gap: 9px;
}

/* -------------------------------------------------------------- 输入区 */
.composer-zone {
  padding: 26px max(20px, calc((100% - 680px) / 2)) 12px;
}

.composer-zone::before {
  background: linear-gradient(180deg, rgba(233, 226, 209, 0), rgba(233, 226, 209, .92) 26%, var(--canvas) 66%);
}

.composer-zone::after {
  inset: 6px max(16px, calc((100% - 700px) / 2)) 10px;
  color: var(--accent-deep);
  background: rgba(247, 243, 232, .94);
  border: 1.5px dashed rgba(157, 98, 41, .5);
  border-radius: 18px;
  font-family: var(--font);
  font-size: 12px;
}

.composer {
  width: min(680px, 100%);
  padding: 13px 15px 10px;
  background: linear-gradient(180deg, #f8f3e6, #f2ecdb);
  border: 1.5px solid #35301f;
  border-radius: 16px;
  box-shadow: 3px 4px 0 rgba(50, 42, 25, .15), 0 12px 26px rgba(72, 60, 36, .12);
}

.composer:focus-within {
  border-color: #35301f;
  box-shadow: 3px 4px 0 rgba(50, 42, 25, .15), 0 14px 30px rgba(72, 60, 36, .16);
}

.composer textarea {
  padding: 0 2px 10px;
  color: #2b281f;
  font-family: var(--font);
  font-size: 12.5px;
  letter-spacing: .4px;
  line-height: 1.8;
}

.composer textarea::placeholder {
  color: #8c8570;
}

.composer-bar {
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.tool-button {
  height: 26px;
  padding: 0 10px;
  color: #56503f;
  background: rgba(252, 248, 238, .7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 10.5px;
  letter-spacing: .5px;
}

.tool-button:hover {
  color: #26231c;
  background: #fffaf0;
  border-color: var(--line-strong);
}

.tool-button svg {
  width: 13px;
  height: 13px;
}

.article-tool-button,
.article-tool-button:hover,
.article-tool-button.active {
  color: #3c472f;
  background: rgba(252, 248, 238, .7);
  border-color: var(--line);
  box-shadow: none;
}

.round-tool {
  width: 28px;
  height: 28px;
  color: #3d382b;
  background: #faf6ec;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.round-tool:hover {
  background: #fffaf0;
}

.send-button {
  height: 30px;
  min-width: 30px;
  padding: 0 9px;
  color: #f3ecda;
  background: #262319;
  border: 1px solid #000;
  border-radius: 9px;
  box-shadow: 2px 2px 0 rgba(50, 42, 25, .25);
  font-size: 11.5px;
}

.send-button:hover {
  background: #332f22;
}

.composer-hint,
.composer-note {
  color: #98917c;
  font-size: 9.5px;
  letter-spacing: .5px;
  text-align: center;
}

.local-pill {
  height: 24px;
  color: #77705c;
  background: rgba(252, 248, 238, .7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px;
}

.browser-context-bar {
  width: min(680px, 100%);
  background: rgba(250, 246, 236, .92);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 1px 2px 0 rgba(58, 50, 35, .1);
  color: #56503f;
}

.browser-context-icon {
  color: #3c472f;
  background: #e8e7d5;
}

.capability-mode-bar {
  width: min(680px, 100%);
  background: rgba(250, 246, 236, .92);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: #56503f;
}

/* ================================================== 右侧「今日追问」面板 */
.paper-rail {
  position: relative;
  z-index: 9;
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  overflow-y: auto;
  background: linear-gradient(180deg, #efe8d7 0%, #e8e0cc 100%);
  border-left: 1px solid var(--line);
  scrollbar-width: thin;
}

.paper-rail::-webkit-scrollbar {
  width: 6px;
}

.paper-rail::-webkit-scrollbar-thumb {
  background: #c8bfa8;
  border-radius: 3px;
}

.paper-rail-head {
  display: flex;
  align-items: center;
  padding: 0 2px 2px;
}

.paper-rail-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 2px;
}

.paper-rail-head .rail-stamp {
  margin-left: auto;
  padding: 3px 8px;
  transform: rotate(3deg);
  border: 1px dashed #8d846c;
  background: rgba(244, 236, 216, .6);
  color: #6d6146;
  font-size: 10px;
  letter-spacing: 2px;
}

.rail-card {
  position: relative;
  padding: 11px 12px;
  background: var(--paper-soft);
  border: 1px solid #cdbf9f;
  border-radius: 11px;
  box-shadow: 1px 2px 0 rgba(60, 50, 30, .1);
}

.rail-card-title {
  margin-bottom: 8px;
  color: #7a7360;
  font-size: 10.5px;
  letter-spacing: 1.5px;
}

/* 深绿跟进卡 */
.rail-card.rail-follow {
  overflow: hidden;
  color: #efe6cf;
  background: linear-gradient(160deg, #3a4a3c, #2f3d33);
  border-color: #232b1c;
}

.rail-card.rail-follow::after {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  border: 1px dashed rgba(240, 230, 200, .25);
  border-radius: 50%;
  content: "";
}

.rail-follow .rail-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #c9bf9f;
}

.rail-follow .rail-card-title::before {
  width: 6px;
  height: 6px;
  background: #d8cba4;
  border-radius: 50%;
  content: "";
}

.rail-follow-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rail-follow-main .txt {
  flex: 1;
  color: #cfc29c;
  font-size: 10.5px;
  letter-spacing: .4px;
  line-height: 1.85;
}

.rail-follow-main .num {
  padding-left: 8px;
  color: #f4ecd7;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

.rail-bars {
  display: flex;
  gap: 3px;
  margin-top: 10px;
}

.rail-bars i {
  height: 5px;
  border-radius: 2px;
  background: rgba(240, 230, 200, .25);
}

.rail-bars i:nth-child(1) {
  flex: 2.2;
  background: #e8dcb8;
}

.rail-bars i:nth-child(2) {
  flex: 1;
  background: #8d9862;
}

.rail-bars i:nth-child(3) {
  flex: 1.4;
}

/* 双栏统计 */
.rail-dual {
  display: flex;
  align-items: stretch;
}

.rail-dual .cell {
  flex: 1;
}

.rail-dual .cell + .cell {
  padding-left: 13px;
  border-left: 1px dashed var(--line);
}

.rail-dual small {
  display: block;
  margin-bottom: 3px;
  color: #8c8570;
  font-size: 10px;
  letter-spacing: 1px;
}

.rail-dual .val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.rail-dual b {
  color: #26231c;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rail-dual .delta {
  color: #55703f;
  font-size: 9.5px;
}

.rail-spend {
  display: flex;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: #7a7360;
  font-size: 10.5px;
  letter-spacing: 1px;
}

.rail-spend b {
  margin-left: auto;
  color: #33302a;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}

.rail-spend b::before {
  color: #9a937f;
  font-size: 10px;
  content: "¥ ";
}

/* 7 天柱状图 */
.rail-chart {
  display: flex;
  height: 74px;
  align-items: flex-end;
  gap: 8px;
  padding: 2px 2px 0;
}

.rail-chart .col {
  display: flex;
  height: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.rail-chart .bar {
  width: 100%;
  max-width: 20px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #3c472f, #333c26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}

.rail-chart .col:nth-child(1) .bar {
  height: 34%;
}

.rail-chart .col:nth-child(2) .bar {
  height: 52%;
}

.rail-chart .col:nth-child(3) .bar {
  height: 26%;
}

.rail-chart .col:nth-child(4) .bar {
  height: 64%;
}

.rail-chart .col:nth-child(5) .bar {
  height: 44%;
}

.rail-chart .col:nth-child(6) .bar {
  height: 82%;
}

.rail-chart .col:nth-child(7) .bar {
  height: 58%;
}

.rail-chart .lb {
  color: #948d78;
  font-size: 9px;
}

/* 今日节奏 */
.rail-rhythm {
  display: flex;
  align-items: center;
  gap: 12px;
}

.donut {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(60, 50, 30, .15);
}

.donut::after {
  position: absolute;
  inset: 11px;
  background: var(--paper-soft);
  border-radius: 50%;
  box-shadow: inset 0 1px 3px rgba(60, 50, 30, .12);
  content: "";
}

.donut.d1 {
  background: conic-gradient(#3c472f 0 58%, #ddd3bd 58% 100%);
}

.donut.d2 {
  background: conic-gradient(#c1652f 0 46%, #ddd3bd 46% 100%);
}

.donut .val {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b281f;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .5px;
}

.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.donut-wrap small {
  color: #8c8570;
  font-size: 9px;
  letter-spacing: .5px;
}

.rail-spark {
  min-width: 0;
  flex: 1;
}

/* 画像洞察 */
.rail-insight-row {
  margin-bottom: 8px;
}

.rail-insight-row:last-child {
  margin-bottom: 0;
}

.rail-insight-row .lab {
  display: flex;
  margin-bottom: 4px;
  color: #5f5947;
  font-size: 10.5px;
  letter-spacing: .5px;
}

.rail-insight-row .lab b {
  margin-left: auto;
  color: #3d382b;
  font-weight: 600;
}

.rail-track {
  height: 5px;
  overflow: hidden;
  background: #e0d7c1;
  border-radius: 3px;
}

.rail-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4a5638, #333c26);
  border-radius: 3px;
}

.rail-insight-row:nth-child(3) .rail-track i {
  background: linear-gradient(90deg, #c1652f, #a1501f);
}

/* 最近入口 */
.rail-feed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  color: #454033;
  font-size: 11px;
}

.rail-feed-row:last-child {
  border-bottom: 0;
}

.rail-feed-row .fr-dot {
  width: 5px;
  height: 5px;
  flex: none;
  background: #b0a68c;
  border-radius: 50%;
}

.rail-feed-row .fr-dot.g {
  background: #55703f;
}

.rail-feed-row .time {
  margin-left: auto;
  color: #9a937f;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.paper-rail-foot {
  padding: 4px 0 8px;
  color: #a29a83;
  font-size: 9.5px;
  letter-spacing: 1px;
  text-align: center;
}

/* -------------------------------------------------------------- 断点适配 */
@media (max-width: 1360px) {
  .app-shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .paper-rail {
    display: none;
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .main-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .paper-hero {
    width: 100%;
    margin-top: 56px;
    padding: 40px 20px 24px;
  }

  .paper-stats {
    position: static;
    margin-top: 10px;
  }

  .main-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .breakthrough-rail {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
  }

  .breakthrough-rail-copy {
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(240, 220, 180, .22);
  }

  .breakthrough-rail-actions {
    flex-wrap: wrap;
    gap: 4px;
  }

  .breakthrough-rail-actions > button + button::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .main-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ======================================================= 打磨与配色锁定 */
/* 纸页边缘：让中间栏像一张单独的纸 */
.welcome {
  padding: 14px 20px 300px;
  border-right: 1px solid rgba(199, 189, 163, .55);
  border-left: 1px solid rgba(199, 189, 163, .55);
}

/* 拍立得顶部的胶带 */
.hero-tape {
  position: absolute;
  top: -32px;
  left: 50%;
  width: 84px;
  height: 18px;
  background: rgba(198, 180, 140, .6);
  box-shadow: 0 1px 2px rgba(90, 75, 45, .14);
  transform: translateX(-50%) rotate(-2.5deg);
  pointer-events: none;
}

/* 输入区工具条：一行放得下 */
.tool-button {
  height: 25px;
  padding: 0 9px;
  font-size: 10px;
  letter-spacing: .3px;
}

.composer-tools {
  gap: 5px;
}

.round-tool {
  width: 27px;
  height: 27px;
}

.send-button {
  height: 28px;
  min-width: 28px;
}

.prompt-optimize-button {
  height: 26px;
  padding: 0 10px;
  color: #6b5b3e !important;
  background: rgba(250, 246, 236, .75) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  box-shadow: none !important;
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: .3px;
}

.prompt-optimize-button:hover {
  color: #26231c !important;
  background: #fffaf0 !important;
  border-color: var(--line-strong) !important;
}

/* 图片模式 / 浏览器上下文：去掉淡紫渐变 */
.image-mode-bar {
  background: linear-gradient(120deg, #f4eedd, #efe7d5) !important;
  border: 1px solid var(--line) !important;
}

.image-mode-icon {
  color: #5d5442 !important;
  background: rgba(255, 252, 244, .7) !important;
}

.local-pill.external {
  color: #8a5325;
  background: #f3e8d2;
  border-color: #ddcfae;
}

.local-pill.external span {
  background: #a9682e;
}

/* 能力中心 / 弹窗：统一成纸面 */
.capability-popover {
  background: #f7f2e5 !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(72, 60, 36, .18) !important;
  color: var(--ink);
}

.capability-popover-head b,
.capability-group h3 {
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: 1px;
}

.capability-popover-lead,
.capability-group small {
  color: var(--muted);
}

.capability-card,
.capability-item,
.capability-group button {
  color: var(--ink-soft);
  background: rgba(250, 246, 236, .8);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.capability-card:hover,
.capability-item:hover,
.capability-group button:hover {
  color: var(--ink);
  background: #fffaf0;
  border-color: var(--line-strong);
}

/* 破限模式弹窗：深色霓虹 → 纸面手账 */
.breakthrough-modal,
.breakthrough-dialog {
  color: var(--ink);
  background: #f6f0e1 !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(60, 48, 28, .3) !important;
}

.breakthrough-head b,
.breakthrough-panel-head b,
.breakthrough-panel h3 {
  color: #26231c;
  font-family: var(--display);
}

.breakthrough-switcher {
  background: rgba(60, 52, 35, .06) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
}

.breakthrough-switcher button {
  color: var(--muted);
  background: transparent !important;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
}

.breakthrough-switcher button[aria-selected="true"],
.breakthrough-switcher button.is-active {
  color: #f0e9d7;
  background: linear-gradient(180deg, #3c472f, #333c26) !important;
}

.breakthrough-panel {
  color: var(--ink-soft);
}

.breakthrough-panel textarea,
.breakthrough-panel input,
.breakthrough-echo-form input {
  color: var(--ink);
  background: rgba(255, 252, 244, .85);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--font);
}

.breakthrough-panel button,
.breakthrough-panel-foot button {
  color: #3d382b;
  background: rgba(250, 246, 236, .9);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: none;
  font-size: 11px;
}

.breakthrough-panel button[type="submit"] {
  color: #f0e9d8;
  background: #262319;
  border-color: #14120d;
}

.breakthrough-rail-icon.redteam,
.breakthrough-rail-icon.future,
.breakthrough-rail-icon.echo,
.breakthrough-rail-icon.assumption {
  color: #e2d0ac !important;
}

/* 其它弹窗：统一纸底 */
.prompt-library-dialog,
.skill-dialog,
.model-dialog,
.file-dialog {
  background: #f7f2e5 !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(60, 48, 28, .28) !important;
}

.prompt-library-dialog button,
.skill-dialog button,
.model-dialog button,
.file-dialog button {
  border-radius: 999px;
}

.prompt-library-head .prompt-library-title h2 {
  color: #fffaf1 !important;
}

.prompt-library-head .prompt-library-title small {
  color: #b9d9ca !important;
}

.prompt-library-head .prompt-library-auto {
  padding: 4px 8px;
  color: #c9eddd !important;
  background: rgba(112, 190, 154, .12);
  border: 1px solid rgba(158, 223, 190, .24);
  border-radius: 999px;
}

/* 对话气泡与消息区：纸感 */
.chat-view {
  color: var(--ink);
}

.message-avatar.assistant {
  background: var(--paper-soft);
  border-color: rgba(51, 69, 58, .34);
  box-shadow: var(--chat-paper-shadow);
}

.message-avatar.user {
  color: #f7f0df;
  background: var(--ink-green);
  border: 1px solid var(--ink-green-deep);
  box-shadow: var(--chat-paper-shadow);
}

.message.user .message-content {
  color: #302a1e;
  background: var(--chat-user-bubble);
  border: 1px solid var(--chat-user-border);
  box-shadow: var(--chat-paper-shadow);
}

.message-list .message-bubble,
.message-list .bubble,
.message-list .message-body {
  color: var(--ink);
  background: rgba(250, 246, 236, .78);
  border: 1px solid var(--line);
}

/* 技能货架卡片 */
.featured-skills .skill-card,
.featured-skills button,
.skill-card {
  color: var(--ink-soft);
  background: rgba(250, 246, 236, .78);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 1px 2px 0 rgba(58, 50, 35, .1);
}

.featured-skills .skill-card:hover,
.skill-card:hover {
  background: #fffaf0;
  border-color: var(--line-strong);
}

/* 焦点态也换掉霓虹橙 */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(193, 101, 47, .45);
  outline-offset: 2px;
}

/* ============================================ 复古档案参考：最终颜色锁定 */
/* 右侧栏纸卡：黄铜细边 + 手账偏移影 */
.rail-card {
  background: var(--paper-soft);
  border: 1px solid rgba(51, 69, 58, .32);
  box-shadow: 2px 3px 0 rgba(58, 50, 35, .12);
}

.paper-rail-head .rail-stamp,
.paper-hero .paper-stamp {
  border: 1px solid rgba(176, 141, 79, .8);
  background: rgba(236, 224, 196, .6);
  color: #6d5f3e;
}

.rail-card.rail-follow {
  border-color: #1f2b22;
}

/* 主卡片 / 能力卡：墨绿描边 */
.main-feature-card,
.paper-hero {
  border-color: rgba(51, 69, 58, .55);
}

.main-feature-card.paper-ink {
  background: linear-gradient(180deg, #33453a, #26332b);
  border-color: #1f2b22;
}

/* 输入区 */
.composer {
  border: 1.5px solid rgba(38, 51, 43, .85);
}

.send-button,
.new-chat,
.topbar-actions > .top-autonomy {
  background: var(--ink-green);
  border-color: var(--ink-green-deep);
}

.send-button:hover,
.new-chat:hover,
.topbar-actions > .top-autonomy:hover {
  background: #3f5547;
}

/* 顶部「语音通话」：赤陶描边 */
.topbar-actions > .top-call {
  color: var(--accent-deep);
  border-color: var(--accent);
}

/* 折限横条：深枣红不变，但分隔线用黄铜 */
.breakthrough-rail {
  background: linear-gradient(180deg, #4a2a1c, #3d2115);
  border-color: #2a1409;
}

.breakthrough-rail-copy {
  border-right-color: rgba(196, 157, 92, .35);
}

.breakthrough-rail-actions > button + button::before {
  background: rgba(196, 157, 92, .35);
}

/* --------------------------------- 现场注入：能力六卡（welcome-capabilities） */
.welcome-capabilities {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 9px !important;
  width: min(680px, 100%) !important;
  margin: 13px auto 0 !important;
}

.welcome-capability {
  display: flex !important;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 9px 11px !important;
  color: #2e2a20 !important;
  text-align: left;
  background: linear-gradient(180deg, #f6eedd, #efe6d1) !important;
  border: 1px solid rgba(51, 69, 58, .55) !important;
  border-radius: 10px !important;
  box-shadow: 2px 3px 0 rgba(58, 50, 35, .14) !important;
  font-family: var(--font);
}

.welcome-capability:hover {
  background: #fbf5e7 !important;
  border-color: #26332b !important;
  transform: translateY(-2px);
}

.welcome-capability-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: #33453a !important;
  background: rgba(255, 252, 244, .7) !important;
  border: 1px solid #8a7c5f !important;
  border-radius: 7px !important;
}

.welcome-capability-icon svg {
  width: 13px !important;
  height: 13px !important;
}

.welcome-capability b,
.welcome-capability span b,
.welcome-capability strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #2e2a20;
}

.welcome-capability small {
  display: block;
  overflow: hidden;
  color: #8c8470;
  font-size: 9.5px;
  letter-spacing: .3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 第二张：赤陶图标（智能视觉式强调），后两张：墨绿反白 */
.welcome-capability:nth-child(2) .welcome-capability-icon {
  color: #a1501f !important;
  border-color: rgba(193, 101, 47, .6) !important;
  background: #f4e4cf !important;
}

.welcome-capability:nth-child(5),
.welcome-capability:nth-child(6) {
  color: #efe6cf !important;
  background: linear-gradient(180deg, #33453a, #26332b) !important;
  border-color: #1f2b22 !important;
}

.welcome-capability:nth-child(5) .welcome-capability-icon,
.welcome-capability:nth-child(6) .welcome-capability-icon {
  color: #ded3b3 !important;
  border-color: rgba(222, 211, 179, .5) !important;
  background: rgba(255, 252, 244, .12) !important;
}

.welcome-capability:nth-child(5) b,
.welcome-capability:nth-child(5) span b,
.welcome-capability:nth-child(6) b,
.welcome-capability:nth-child(6) span b {
  color: #f2ead7;
}

.welcome-capability:nth-child(5) small,
.welcome-capability:nth-child(6) small {
  color: #c3b997;
}

/* ------------------------------------------- 现场注入：访客看板（纸面化） */
.visit-board {
  right: 12px !important;
  width: 330px !important;
  max-height: calc(100vh - 120px) !important;
  padding: 12px !important;
  overflow-y: auto;
  color: var(--ink) !important;
  background: linear-gradient(180deg, #f4ecd9, #ece2cc) !important;
  border: 1px solid rgba(51, 69, 58, .45) !important;
  border-radius: 14px !important;
  box-shadow: 2px 3px 0 rgba(58, 50, 35, .14), 0 24px 50px rgba(60, 48, 28, .2) !important;
  font-family: var(--font) !important;
}

@media (max-width: 1360px) {
  .visit-board {
    right: 12px !important;
  }
}

.visit-board-head {
  border-bottom: 1px dashed var(--line) !important;
  background: transparent !important;
}

.visit-board-title {
  color: #2e2a20 !important;
  font-family: var(--display) !important;
  letter-spacing: 2px !important;
}

.visit-board-refresh,
.visit-board-toggle {
  color: #56503f !important;
  background: rgba(250, 246, 236, .85) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.visit-live {
  color: #efe6cf !important;
  background: linear-gradient(160deg, #3a4a3c, #2f3d33) !important;
  border: 1px solid #1f2b22 !important;
  border-radius: 11px !important;
}

.visit-live b,
.visit-live-count {
  color: #f4ecd7 !important;
}

.visit-live small,
.visit-live span {
  color: #cfc29c !important;
}

.visit-dots i {
  background: #c9ab6d !important;
}

.visit-hero,
.visit-kpis,
.visit-week,
.visit-rhythm,
.visit-audience,
.visit-referrers,
.visit-entries,
.visit-recent,
.visit-votes,
.visit-comments {
  color: var(--ink) !important;
  background: var(--paper-soft) !important;
  border: 1px solid rgba(51, 69, 58, .28) !important;
  border-radius: 11px !important;
  box-shadow: 1px 2px 0 rgba(58, 50, 35, .1) !important;
}

.visit-hero b,
.visit-hero-main b,
.visit-hero-side b {
  color: #2e2a20 !important;
  font-family: var(--display) !important;
}

.visit-kpi-grid {
  background: rgba(250, 246, 236, 0.62) !important;
  border-color: var(--line) !important;
  border-radius: 8px !important;
}

.visit-kpi {
  border-color: var(--line) !important;
}

.visit-kpi > b {
  color: #2e2a20 !important;
  font-family: var(--display) !important;
}

.visit-kpi:nth-child(3) > b {
  color: #a1501f !important;
}

.visit-kpi:nth-child(5) > b,
.visit-kpi:nth-child(6) > b {
  color: #33453a !important;
}

.visit-kpi > span,
.visit-kpi > small,
.visit-section-foot,
.visit-section-foot b {
  color: #7a7360 !important;
}

.visit-total-line,
.visit-note {
  color: #7a7360 !important;
}

.visit-insight {
  color: #5f5947 !important;
  background: rgba(60, 52, 35, .05) !important;
  border: 1px dashed var(--line) !important;
  border-radius: 9px !important;
}

.visit-section-head b {
  color: #2e2a20 !important;
  font-family: var(--display) !important;
  letter-spacing: 1px !important;
}

.visit-section-head small,
.visit-week-labels span,
.visit-axis span,
.visit-chart-legend span {
  color: #8c8470 !important;
}

.visit-week-column i,
.visit-chart-bar {
  background: linear-gradient(180deg, #33453a, #26332b) !important;
  border-radius: 3px !important;
}

.visit-path {
  background: rgba(250, 246, 236, .6) !important;
  border: 1px dashed var(--line) !important;
  border-radius: 9px !important;
}

.visit-path-head b,
.visit-dist-row b {
  color: #3d382b !important;
}

.visit-dist-bar,
.visit-dist-row i {
  background: linear-gradient(90deg, #3d4f42, #26332b) !important;
}

.visit-dist-row:nth-child(2) .visit-dist-bar,
.visit-dist-row:nth-child(2) i {
  background: linear-gradient(90deg, #c1652f, #a1501f) !important;
}

.visit-recent-list li {
  color: #454033 !important;
  border-bottom: 1px dashed var(--line) !important;
}

.visit-referrer-list li:not(.visit-path-empty) {
  border-bottom-color: var(--line) !important;
}

.visit-referrer-list li > span,
.visit-referrer-list li > b {
  color: #56503f !important;
}

.visit-vote-option {
  color: #454033 !important;
  background: rgba(250, 246, 236, .7) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
}

.visit-vote-option.is-active,
.visit-vote-option[aria-pressed="true"] {
  color: #f0e9d7 !important;
  background: linear-gradient(180deg, #33453a, #26332b) !important;
  border-color: #1f2b22 !important;
}

.visit-vote-count,
.visit-compact-stats {
  color: #7a7360 !important;
}

.visit-quick-form input,
.visit-quick-row input,
.visit-search {
  color: var(--ink) !important;
  background: rgba(255, 252, 244, .9) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  font-family: var(--font) !important;
}

.visit-quick-row button,
.visit-board-link {
  color: #f1ead9 !important;
  background: #33453a !important;
  border: 1px solid #26332b !important;
  border-radius: 999px !important;
}

/* 粉色悬浮提问签 → 纸签 */
.visit-vote-suggest {
  color: #6d5f3e !important;
  background: rgba(250, 246, 236, .96) !important;
  border: 1px solid rgba(176, 141, 79, .75) !important;
  border-radius: 999px !important;
  box-shadow: 1px 2px 0 rgba(58, 50, 35, .15) !important;
  font-family: var(--font) !important;
}

/* 弹幕便签 */
.visit-danmaku-item {
  color: #3d382b !important;
  background: rgba(247, 240, 226, .94) !important;
  border: 1px solid rgba(157, 143, 112, .7) !important;
  border-radius: 8px !important;
  box-shadow: 1px 2px 0 rgba(58, 50, 35, .12) !important;
  font-family: var(--font) !important;
}

.visit-danmaku-toggle {
  color: #56503f !important;
  background: rgba(250, 246, 236, .92) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 999px !important;
}

/* ------------------------------- 合并模式：今日访问嵌入「今日追问」侧栏 */
.paper-rail .visit-board,
.visit-board.visit-board--rail {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  flex: 0 0 auto;
  width: 100% !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 11px !important;
  box-shadow: 1px 2px 0 rgba(58, 50, 35, .12) !important;
}

.paper-rail .visit-board .visit-board-head {
  padding: 8px 10px 0 !important;
  border-bottom: 0 !important;
}

.paper-rail .visit-board .visit-board-toggle,
.paper-rail .visit-board .visit-board-refresh {
  color: #56503f !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.paper-rail .visit-board .visit-board-toggle {
  padding: 4px 2px 8px !important;
}

.paper-rail .visit-board .visit-board-refresh:hover {
  color: #33453a !important;
  background: #e9ead8 !important;
  border-color: #cdbf9f !important;
}

.paper-rail .visit-board .visit-board-body {
  padding: 10px 11px 12px !important;
  overflow: visible !important;
}

.paper-rail .visit-board .visit-live {
  border-radius: 9px !important;
}

/* ----------------------------------- 技能卡：清掉紫/粉/蓝的浅色底色 */
.featured-skills .skill-card,
.featured-skills a,
.featured-skills button,
.skill-card,
[class*="skill-color-"] {
  color: var(--ink-soft) !important;
  background: rgba(250, 246, 236, .78) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  box-shadow: 1px 2px 0 rgba(58, 50, 35, .1) !important;
}

.featured-skills .skill-card:hover,
.featured-skills a:hover,
.skill-card:hover {
  background: #fbf5e7 !important;
  border-color: var(--line-strong) !important;
}

[class*="skill-color-"] * {
  color: inherit;
}

/* 技能图标：统一纸底墨线 */
.featured-skill-icon,
.featured-skill .workspace-icon,
.skill-card .workspace-icon {
  color: #6b5b3e !important;
  background: rgba(255, 252, 244, .78) !important;
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
}

.featured-skill-icon svg {
  stroke-width: 1.6;
}

/* 技能卡彻底去掉彩色光晕/渐变（含伪元素） */
.featured-skill,
.featured-skill.skill-color-clay,
.featured-skill.skill-color-rose,
.featured-skill.skill-color-sage {
  background: #f6eedd !important;
  background-image: none !important;
  box-shadow: 1px 2px 0 rgba(58, 50, 35, .12) !important;
}

.featured-skill::before,
.featured-skill::after {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* ================================================== 左栏密度：贴合参考手账 */
.sidebar {
  padding: 12px 10px 16px;
}

.sidebar .skills-nav {
  min-height: 0;
  margin: 0;
  padding: 5px 8px;
  gap: 8px;
  border-radius: 7px;
}

.sidebar-feature-group {
  margin-top: 8px;
}

.sidebar-feature-group > summary,
.sidebar .sidebar-feature-group > summary {
  padding: 5px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
}

.sidebar-feature-group[open] > summary {
  color: var(--ink);
}

.sidebar-feature-group-list .skills-nav {
  padding-left: 9px;
}

.sidebar .skills-nav b {
  font-size: 11.5px;
  letter-spacing: .4px;
}

.sidebar .skills-nav small {
  font-size: 9px;
}

/* 欢迎页：快捷提问与技能货架不进入参考版面（随时可删这一条恢复） */
.starter-list,
.skill-shelf {
  display: none !important;
}

/* ---------------------------- 今日访问看板：并入右栏（由页面脚本搬运） */
.paper-rail {
  overflow-y: auto;
  scrollbar-width: thin;
}

.paper-rail .visit-board.in-rail {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  max-height: none !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.paper-rail .visit-board.in-rail .visit-board-head {
  padding: 0 0 8px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px dashed var(--line) !important;
}

.paper-rail .visit-board.in-rail .visit-board-title {
  font-size: 12px;
}

/* 看板进栏后，只保留与访问数据连续的总览卡 */
.paper-rail.has-visit-board > .rail-card:not(.rail-follow):not(.rail-summary) {
  display: none;
}

.paper-rail .visit-board.in-rail + .rail-card.rail-summary {
  margin-top: 10px;
}

.paper-rail .rail-card.rail-summary {
  display: block;
  background: rgba(250, 246, 236, .72);
}

.paper-rail .rail-summary-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.paper-rail .rail-summary-title::after {
  flex: 1;
  border-top: 1px dashed var(--line);
  content: "";
}

.paper-rail .visit-board.in-rail .visit-live {
  margin-top: 2px;
}

/* ============================ 参考卡片：黄铜四角框 + 手账双线边 + 抬升手感 */
.rail-card,
.main-feature-card,
.welcome-capability {
  position: relative;
  border-radius: 8px !important;
  border: 1px solid rgba(51, 69, 58, .55) !important;
  box-shadow: inset 0 0 0 3px rgba(246, 238, 221, .65), 2px 3px 0 rgba(58, 50, 35, .13) !important;
}

.rail-card::before,
.main-feature-card::before,
.welcome-capability::before {
  position: absolute;
  inset: 4px;
  z-index: 1;
  background-image:
    linear-gradient(rgba(176, 141, 79, .8), rgba(176, 141, 79, .8)),
    linear-gradient(rgba(176, 141, 79, .8), rgba(176, 141, 79, .8)),
    linear-gradient(rgba(176, 141, 79, .8), rgba(176, 141, 79, .8)),
    linear-gradient(rgba(176, 141, 79, .8), rgba(176, 141, 79, .8)),
    linear-gradient(rgba(176, 141, 79, .8), rgba(176, 141, 79, .8)),
    linear-gradient(rgba(176, 141, 79, .8), rgba(176, 141, 79, .8)),
    linear-gradient(rgba(176, 141, 79, .8), rgba(176, 141, 79, .8)),
    linear-gradient(rgba(176, 141, 79, .8), rgba(176, 141, 79, .8));
  background-position:
    left top, left top, right top, right top,
    left bottom, left bottom, right bottom, right bottom;
  background-repeat: no-repeat;
  background-size:
    9px 1px, 1px 9px, 9px 1px, 1px 9px,
    9px 1px, 1px 9px, 9px 1px, 1px 9px;
  content: "";
  opacity: .85;
  pointer-events: none;
}

.main-feature-card:hover,
.welcome-capability:hover {
  border-color: rgba(176, 141, 79, .9) !important;
  box-shadow: inset 0 0 0 3px rgba(246, 238, 221, .7), 3px 5px 0 rgba(58, 50, 35, .15) !important;
}

/* 墨绿反白卡：黄铜角线提亮 */
.main-feature-card.paper-ink::before,
.welcome-capability:nth-child(5)::before,
.welcome-capability:nth-child(6)::before {
  background-image:
    linear-gradient(rgba(201, 171, 109, .9), rgba(201, 171, 109, .9)),
    linear-gradient(rgba(201, 171, 109, .9), rgba(201, 171, 109, .9)),
    linear-gradient(rgba(201, 171, 109, .9), rgba(201, 171, 109, .9)),
    linear-gradient(rgba(201, 171, 109, .9), rgba(201, 171, 109, .9)),
    linear-gradient(rgba(201, 171, 109, .9), rgba(201, 171, 109, .9)),
    linear-gradient(rgba(201, 171, 109, .9), rgba(201, 171, 109, .9)),
    linear-gradient(rgba(201, 171, 109, .9), rgba(201, 171, 109, .9)),
    linear-gradient(rgba(201, 171, 109, .9), rgba(201, 171, 109, .9));
  background-position:
    left top, left top, right top, right top,
    left bottom, left bottom, right bottom, right bottom;
  background-repeat: no-repeat;
  background-size:
    9px 1px, 1px 9px, 9px 1px, 1px 9px,
    9px 1px, 1px 9px, 9px 1px, 1px 9px;
}

/* 输入框：双线纸卡 */
.composer {
  box-shadow:
    inset 0 0 0 3px rgba(246, 238, 221, .65),
    3px 4px 0 rgba(58, 50, 35, .14),
    0 14px 30px rgba(72, 60, 36, .12) !important;
}

/* 右栏数据卡内的分隔线用黄铜 */
.rail-card + .rail-card {
  margin-top: 10px;
}

.rail-dual .cell + .cell,
.rail-spend {
  border-color: rgba(176, 141, 79, .45);
}


