/*
 * 学子居 Consumer UI v1
 * 仅覆盖视觉与导航呈现；所有业务 DOM、权限判断和 hidden 语义继续由原系统负责。
 */
:root {
  --blue: #5b5ce2;
  --blue-strong: #4647cf;
  --blue-soft: #eeefff;
  --cyan: #28b8c7;
  --mint: #e8f8f3;
  --mint-ink: #167562;
  --amber: #fff2d8;
  --amber-ink: #9a6415;
  --rose: #fff0f2;
  --rose-ink: #b7475a;
  --ink: #202235;
  --muted: #777b91;
  --line: #e8e9f2;
  --bg: #f7f7fb;
  --surface: rgba(255, 255, 255, .94);
  --shadow-sm: 0 7px 24px rgba(43, 45, 78, .06);
  --shadow-md: 0 18px 55px rgba(50, 51, 95, .11);
  --shadow-blue: 0 14px 34px rgba(91, 92, 226, .24);
}

*[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { min-width: 0; background: var(--bg); }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(91, 92, 226, .08), transparent 24rem),
    var(--bg);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(91, 92, 226, .2);
  outline-offset: 2px;
}
::selection { color: #fff; background: rgba(91, 92, 226, .82); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: #d7d8e5; background-clip: padding-box; }

/* 登录：品牌叙事 + 轻量工作预览 */
.login-screen {
  min-height: 100vh;
  height: 100vh;
  padding: clamp(18px, 3vh, 42px) clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(520px, 1.18fr) minmax(400px, .82fr);
  place-items: stretch;
  gap: clamp(28px, 5vw, 86px);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 16%, rgba(123, 118, 255, .2), transparent 23rem),
    linear-gradient(135deg, #f4f5ff 0%, #fbfbfe 50%, #f2fbfa 100%);
}
.login-story {
  position: relative;
  isolation: isolate;
  min-height: 0;
  height: 100%;
  max-height: 820px;
  align-self: center;
  overflow: hidden;
  border-radius: 38px;
  padding: clamp(34px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(32, 33, 95, .14), transparent 40%),
    linear-gradient(145deg, #4f50da 0%, #6764ec 48%, #43b9bd 120%);
  box-shadow: 0 30px 90px rgba(75, 74, 190, .25);
}
.login-story:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .38;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(150deg, #000, transparent 68%);
}
.login-story-brand { display: flex; align-items: center; gap: 13px; font-size: 18px; font-weight: 760; letter-spacing: .04em; }
.login-story-brand b {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.32); border-radius: 15px;
  background: rgba(255,255,255,.18); box-shadow: inset 0 1px rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
}
.login-story-copy { position: relative; z-index: 2; max-width: 640px; margin-top: clamp(70px, 10vh, 130px); }
.login-story-kicker {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.92); font-size: 13px; font-weight: 650;
}
.login-story-copy h2 { margin: 22px 0 24px; font-size: clamp(42px, 4vw, 68px); line-height: 1.1; letter-spacing: -.045em; }
.login-story-copy h2 em { color: #bffff0; font-style: normal; }
.login-story-copy p { max-width: 560px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.85; }
.login-story-preview {
  position: absolute; z-index: 3; right: clamp(28px, 4vw, 62px); bottom: clamp(28px, 4vw, 60px);
  width: min(440px, 72%); padding: 20px; border: 1px solid rgba(255,255,255,.5); border-radius: 24px;
  color: #2b2c45; background: rgba(255,255,255,.9); box-shadow: 0 24px 60px rgba(28, 29, 85, .2);
  backdrop-filter: blur(18px);
}
.preview-head { display: flex; align-items: center; gap: 11px; }
.preview-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #6667e8, #4aa7ce); font-size: 11px; font-weight: 800; }
.preview-head div { flex: 1; }
.preview-head b, .preview-head small { display: block; }
.preview-head small, .preview-head i { color: #9294a7; font-size: 10px; font-style: normal; }
.login-story-preview > p { margin: 17px 0; font-size: 13px; line-height: 1.75; }
.preview-script { padding: 13px 14px; border-radius: 15px; background: #f0f1ff; }
.preview-script small, .preview-script b { display: block; }
.preview-script small { margin-bottom: 6px; color: #6869d8; font-size: 10px; font-weight: 700; }
.preview-script b { font-size: 12px; line-height: 1.65; }
.login-story-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 300px; height: 300px; right: -90px; top: -80px; background: rgba(181, 255, 238, .2); }
.orb-two { width: 180px; height: 180px; left: 9%; bottom: 5%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.login-card {
  align-self: center;
  width: min(100%, 480px);
  min-height: min(590px, calc(100vh - 36px));
  justify-self: start;
  padding: clamp(34px, 4vw, 58px);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 32px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
}
.login-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 42px; }
.login-brand b {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px;
  color: #fff; background: linear-gradient(145deg, #6869eb, #4a4bc9); box-shadow: var(--shadow-blue); font-size: 20px;
}
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 17px; letter-spacing: .02em; }
.login-brand small { margin-top: 2px; color: #989aac; font-size: 10px; }
.login-heading span { color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.login-heading h1 { margin: 9px 0 10px; font-size: 36px; line-height: 1.2; letter-spacing: -.04em; }
.login-heading p { margin: 0 0 31px; color: var(--muted); font-size: 13px; }
.login-card form { display: grid; gap: 8px; }
.login-card form label { margin-top: 7px; color: #585b71; font-size: 12px; font-weight: 650; }
.login-card input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid #e2e3ec; border-radius: 15px;
  color: var(--ink); background: #fafafe; transition: .2s ease;
}
.login-card input:hover { border-color: #c9cae1; background: #fff; }
.login-card input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(91,92,226,.1); outline: none; }
.login-submit {
  height: 52px; margin-top: 8px; border: 0; border-radius: 15px; color: #fff;
  background: linear-gradient(135deg, #6768e8, #4e4fd5); box-shadow: var(--shadow-blue); font-weight: 760; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(91,92,226,.3); }
.login-submit:disabled { cursor: wait; opacity: .64; transform: none; }
.login-message { min-height: 21px; margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.login-message[data-type="error"] { color: var(--rose-ink); }
.login-message[data-type="success"] { color: var(--mint-ink); }
.login-footnote { display: block; margin-top: 25px; color: #a0a2b3; text-align: center; font-size: 10px; line-height: 1.7; }

/* 应用骨架 */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: transparent; }
.rail {
  position: relative; z-index: 8; height: 100vh; padding: 24px 15px 17px; display: flex; flex-direction: column;
  overflow: hidden; color: #4e5066; background: rgba(255,255,255,.92); border-right: 1px solid rgba(226,227,238,.9);
  box-shadow: 8px 0 34px rgba(45,47,82,.035); backdrop-filter: blur(24px);
}
.logo { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 0 10px 20px; border-bottom: 0; }
.logo > b {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 14px;
  color: #fff; background: linear-gradient(145deg, #6a6bea, #494aca); box-shadow: 0 10px 22px rgba(91,92,226,.25); font-size: 17px;
}
.logo strong, .logo small { display: block; }
.logo strong { color: #25263a; font-size: 18px; letter-spacing: .02em; }
.logo small { margin-top: 2px; color: #a1a3b2; font-size: 9px; }
.nav-list { display: flex; flex: 1; flex-direction: column; gap: 5px; min-height: 0; padding: 18px 2px; overflow: auto; }
.nav-list button {
  width: 100%; min-height: 50px; padding: 0 13px; display: grid; grid-template-columns: 31px minmax(0,1fr) 14px; align-items: center;
  border: 0; border-radius: 14px; color: #74778a; background: transparent; text-align: left; font-size: 13px; font-weight: 620; cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-list button:hover { color: #4f50cd; background: #f4f4ff; transform: translateX(2px); }
.nav-list button.active { color: #fff; background: linear-gradient(135deg, #6869e8, #5152d7); box-shadow: 0 12px 25px rgba(91,92,226,.22); }
.nav-list button > i { color: currentColor; opacity: .45; font-style: normal; text-align: right; }
body[data-ui-role="sales"] .nav-list [data-view="assistant"] { order: 1; }
body[data-ui-role="sales"] .nav-list [data-view="customers"] { order: 2; }
body[data-ui-role="sales"] .nav-list [data-view="properties"] { order: 3; }
body[data-ui-role="sales"] .nav-list [data-view="reviews"] { order: 4; }
body[data-ui-role="sales"] .nav-list [data-view="cases"] { order: 5; }
.agent {
  width: 100%; min-height: 66px; margin-top: auto; padding: 9px 10px; display: flex; align-items: center; gap: 10px;
  border: 1px solid #ececf4; border-radius: 17px; color: #404256; background: #fafafe; cursor: pointer;
}
.agent:hover { border-color: #dcdcf0; background: #f5f5ff; }
.agent .avatar.photo { width: 42px; height: 42px; border: 3px solid #fff; border-radius: 14px; background: linear-gradient(145deg, #f3b38c, #ca755c); box-shadow: 0 6px 16px rgba(131,74,57,.18); }
.agent strong, .agent small { display: block; }
.agent strong { max-width: 128px; overflow: hidden; text-overflow: ellipsis; color: #34364a; white-space: nowrap; font-size: 12px; }
.agent small { margin-top: 2px; color: #999bae; font-size: 9px; }
.agent i { margin-left: auto; color: #aaaabd; font-style: normal; }
.product { height: 100vh; min-width: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.panel { border: 1px solid rgba(230,231,240,.94); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.top-panel {
  position: relative; z-index: 6; flex: none; min-height: 74px; margin: 16px 22px 0; padding: 10px 16px;
  display: grid; grid-template-columns: minmax(220px,1fr) auto; align-items: center; gap: 20px;
  border-radius: 20px; background: rgba(255,255,255,.9); backdrop-filter: blur(20px);
}
.client { display: flex; align-items: center; gap: 11px; min-width: 0; }
.client .avatar { width: 40px; height: 40px; border-radius: 13px; color: #5556d7; background: #eeeeff; }
.client small, .client strong { display: block; }
.client small { color: #a1a3b2; font-size: 9px; }
.client strong { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.top-meta { height: auto; display: flex; justify-content: flex-end; align-items: center; }
.top-meta > div { min-width: 94px; padding: 0 17px; border-left: 1px solid #ececf3; }
.top-meta small, .top-meta b { display: block; white-space: nowrap; }
.top-meta small { color: #a1a3b2; font-size: 9px; }
.top-meta b { margin-top: 3px; color: #4a4c62; font-size: 11px; }
.top-meta .blue-pill { display: inline-flex; padding: 3px 8px; color: #5556d7; background: #eeeefe; border-radius: 999px; }
.model-meta { display: none !important; }

/* AI 助手：对话优先 */
#assistantView {
  width: 100%; min-height: 0; height: calc(100vh - 106px); margin: 16px 0 0; padding: 0 22px 20px;
  grid-template-columns: minmax(0,1fr) minmax(290px,330px); gap: 16px; overflow: hidden;
}
body[data-ui-role="sales"] #assistantView { width: min(1080px, 100%); margin-left: auto; margin-right: auto; grid-template-columns: minmax(0,1fr); }
body[data-ui-role="sales"] #assistantView > .input-column,
body[data-ui-role="sales"] #assistantView > .support-column { display: none; }
body[data-ui-role="sales"] #assistantView > .decision-column { grid-column: 1; }
.input-column, .decision-column, .support-column { min-width: 0; min-height: 0; }
.decision-column { overflow: hidden; }
.ai-workbench {
  height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; position: relative;
  border-radius: 26px; background: rgba(255,255,255,.94); box-shadow: 0 20px 60px rgba(51,52,88,.09);
}
.ai-workbench > .panel-title {
  min-height: 72px; height: auto; padding: 14px 22px; display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid #ededf4; background: rgba(255,255,255,.82);
}
.brain-title h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; letter-spacing: -.02em; }
.brain-title h2 span { padding: 4px 9px; border-radius: 999px; color: #6667d8; background: #f0f0ff; font-size: 9px; font-weight: 700; }
.assistant-session-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.assistant-session-actions button, .assistant-session-actions b {
  min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; border: 1px solid #e4e4ef;
  border-radius: 11px; color: #686a7f; background: #fff; font-size: 10px; font-weight: 650;
}
.assistant-session-actions button { cursor: pointer; }
.assistant-session-actions button:hover { color: var(--blue); border-color: #cfd0f1; background: #f8f8ff; }
.assistant-session-actions b { color: var(--mint-ink); border-color: #cfede4; background: #f1fbf8; }
.assistant-conversation-status {
  margin: 0; padding: 8px 22px; border-bottom: 1px solid #f0f0f5; color: #9698aa; background: #fcfcfe; font-size: 9px;
}
.assistant-recent-panel {
  position: absolute; z-index: 5; top: 72px; right: 18px; width: min(390px,calc(100% - 36px)); max-height: 58%; overflow: auto;
  padding: 13px; border: 1px solid #e4e5f0; border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: var(--shadow-md); backdrop-filter: blur(18px);
}
.assistant-recent-panel header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.assistant-recent-panel header button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.assistant-recent-panel #assistantRecentList { display: grid; gap: 7px; }
.assistant-recent-panel #assistantRecentList > button { padding: 12px; border: 0; border-radius: 13px; background: #f7f7fb; text-align: left; cursor: pointer; }
.assistant-recent-panel #assistantRecentList strong, .assistant-recent-panel #assistantRecentList span, .assistant-recent-panel #assistantRecentList small { display: block; }
.assistant-recent-panel #assistantRecentList span { margin-top: 4px; color: #6e7083; font-size: 11px; }
.assistant-recent-panel #assistantRecentList small { margin-top: 4px; color: #aaaabb; font-size: 9px; }
.conversation-feed {
  flex: 1; min-height: 0; overflow: auto; padding: 28px clamp(24px, 6vw, 64px) 22px;
  background:
    radial-gradient(circle at 12% 12%, rgba(91,92,226,.045), transparent 16rem),
    linear-gradient(180deg,#fff 0%,#fdfdff 100%);
  scroll-behavior: smooth;
}
.conversation-feed > .empty-cell { min-height: 54vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #9a9caf; }
.conversation-feed > .empty-cell:before {
  content: "居"; width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 20px;
  color: #fff; background: linear-gradient(145deg,#6b6cea,#4e4fd0); box-shadow: var(--shadow-blue); font-size: 20px; font-weight: 800;
}
.conversation-feed > .empty-cell strong { color: #393b50; font-size: 17px; }
.conversation-feed > .empty-cell span { max-width: 420px; text-align: center; font-size: 11px; }
.chat-turn { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; }
.chat-turn.sales { justify-content: flex-end; }
.turn-avatar {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 12px;
  color: #5556cf; background: #eeeeff; font-size: 10px; font-weight: 800;
}
.chat-turn.sales .turn-avatar { order: 2; color: #fff; background: linear-gradient(145deg,#f2ae82,#d47761); }
.turn-body {
  max-width: min(76%, 680px); padding: 12px 15px; border: 1px solid #e9e9f1; border-radius: 6px 18px 18px 18px;
  color: #313348; background: #fff; box-shadow: 0 6px 20px rgba(48,50,84,.055); font-size: 13px; line-height: 1.75;
}
.chat-turn.sales .turn-body { color: #fff; border-color: transparent; border-radius: 18px 6px 18px 18px; background: linear-gradient(145deg,#696ae7,#5556d8); box-shadow: 0 10px 24px rgba(91,92,226,.2); }
.turn-body p { margin: 0 0 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.turn-body time { display: block; margin-top: 6px; color: #a2a4b5; font-size: 9px; }
.chat-turn.sales .turn-body time { color: rgba(255,255,255,.68); }
.turn-body > button[data-assistant-edit-latest] {
  margin-top: 8px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; color: #fff; background: rgba(255,255,255,.12); font-size: 9px; cursor: pointer;
}
.assistant-attachment { display: inline-flex; margin: 0 5px 7px 0; padding: 6px 9px; border: 1px solid rgba(255,255,255,.26); border-radius: 10px; background: rgba(255,255,255,.12); font-size: 10px; }
.ai-card { width: auto; max-width: min(82%, 720px); }
.ai-runtime { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #9a9cad; font-size: 9px; }
.ai-runtime strong { color: #77798d; font-weight: 650; }
.ai-runtime span { padding: 2px 6px; border-radius: 999px; background: #f2f2f7; }
.assistant-generation-content { margin-bottom: 10px !important; font-size: 13px; }
.assistant-turn-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.assistant-turn-actions button {
  padding: 5px 8px; border: 0; border-radius: 8px; color: #85879a; background: #f5f5f9; font-size: 9px; cursor: pointer;
}
.assistant-turn-actions button:hover { color: var(--blue); background: #eeeeff; }
.composer {
  position: relative; left: auto; right: auto; bottom: auto; flex: none; margin: 0 22px 20px; padding: 10px 12px;
  border: 1px solid #dddded; border-radius: 20px; background: #fff; box-shadow: 0 16px 42px rgba(48,50,84,.12);
}
.composer:focus-within { border-color: #bfc0ef; box-shadow: 0 18px 48px rgba(74,75,165,.15), 0 0 0 4px rgba(91,92,226,.07); }
.composer textarea { width: 100%; min-height: 58px; max-height: 132px; padding: 6px 8px; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; line-height: 1.65; }
.composer textarea::placeholder { color: #b0b1c0; }
.composer-actions { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid #f0f0f5; }
.composer-actions button { padding: 7px 10px; border: 0; border-radius: 10px; color: #787a8d; background: #f5f5f9; font-size: 10px; cursor: pointer; }
.composer-actions button:hover { color: var(--blue); background: #eeeeff; }
.composer-actions .composer-hint { margin-left: auto; color: #aaaabb; font-size: 9px; }
.composer-actions .primary { min-width: 66px; color: #fff; background: linear-gradient(135deg,#6768e7,#5051d3); box-shadow: 0 8px 18px rgba(91,92,226,.22); }
.composer-attachments { max-height: 84px; display: flex; gap: 7px; flex-wrap: wrap; overflow: auto; }
.composer-attachments span { padding: 6px 9px; border: 1px solid #dddff4; border-radius: 9px; color: #5e6075; background: #f4f4ff; font-size: 10px; }
.new-message-tip { right: 28px; bottom: 126px; border: 0; border-radius: 999px; color: #fff; background: var(--blue); box-shadow: var(--shadow-blue); }
.support-column { gap: 12px; overflow: auto; }
.support-column .panel { padding-bottom: 13px; border-radius: 18px; }

/* 功能页共用 C 端语言 */
.feature-view {
  flex: 1; min-width: 0; min-height: 0; padding: 24px clamp(24px, 3vw, 42px) 56px;
  overflow: auto; background: transparent;
}
.feature-heading {
  position: relative; isolation: isolate; min-height: 150px; margin: 0 0 18px; padding: 28px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden;
  border: 1px solid rgba(224,224,241,.9); border-radius: 26px;
  background: linear-gradient(118deg, rgba(255,255,255,.98), rgba(243,243,255,.96) 72%, rgba(231,248,246,.93));
  box-shadow: var(--shadow-sm);
}
.feature-heading:after {
  content: ""; position: absolute; z-index: -1; width: 210px; height: 210px; right: -42px; top: -84px; border-radius: 50%;
  border: 38px solid rgba(91,92,226,.055); background: rgba(69,190,188,.05);
}
.feature-heading > div:first-child { max-width: 760px; }
.feature-heading small { display: inline-flex; margin-bottom: 5px; color: #6465d5; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.feature-heading h1 { margin: 2px 0 7px; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.feature-heading p { max-width: 720px; margin: 0; color: #7c7f93; font-size: 12px; line-height: 1.75; }
.limit-pill {
  position: relative; z-index: 1; padding: 8px 12px; border: 1px solid #dedff2; border-radius: 999px;
  color: #6162cf; background: rgba(255,255,255,.76); font-size: 10px; font-weight: 700; white-space: nowrap;
}
.primary-feature, .feature-heading button {
  position: relative; z-index: 1; min-height: 40px; padding: 0 14px; border: 1px solid #dedff0; border-radius: 12px;
  color: #6163d2; background: rgba(255,255,255,.86); font-size: 11px; font-weight: 700; cursor: pointer;
}
.feature-heading .primary-feature { color: #fff; border-color: transparent; background: linear-gradient(135deg,#6768e7,#5051d3); box-shadow: var(--shadow-blue); }
.feature-stats, .statistics-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.feature-stats article, .feature-stats > button, .statistics-cards > * {
  min-height: 116px; padding: 19px 20px; border: 1px solid #e8e8f1; border-radius: 19px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm);
}
.feature-stats article:nth-child(4n+1), .feature-stats > button:nth-child(4n+1) { background: linear-gradient(145deg,#fff,#f3f3ff); }
.feature-stats article:nth-child(4n+2), .feature-stats > button:nth-child(4n+2) { background: linear-gradient(145deg,#fff,#f0faf7); }
.feature-stats article span, .feature-stats article strong, .feature-stats article small,
.feature-stats > button span, .feature-stats > button strong, .feature-stats > button small { display: block; }
.feature-stats article span, .feature-stats > button span { color: #898b9d; font-size: 10px; }
.feature-stats article strong, .feature-stats > button strong { margin-top: 6px; color: #292b40; font-size: 25px; line-height: 1.25; }
.feature-stats article small, .feature-stats > button small { margin-top: 7px; color: #696ad8; font-size: 9px; }
.feature-stats > button { text-align: left; cursor: pointer; }
.panel-title { min-height: 50px; height: auto; padding: 10px 17px; }
.panel-title h2 { color: #34364a; font-size: 14px; }
.panel-title button { color: #6768d5; }
input, select, textarea { color: var(--ink); }
.feature-view input, .feature-view select {
  min-height: 38px; border: 1px solid #e0e1eb; border-radius: 11px; color: #4e5064; background: #fff;
}
.feature-view input:focus, .feature-view select:focus { border-color: #bfc0ed; box-shadow: 0 0 0 3px rgba(91,92,226,.08); outline: none; }
.statistics-toolbar, .customer-toolbar, .property-toolbar, .case-toolbar, .review-status, .statistics-method, .daily-review-head {
  border-radius: 18px; box-shadow: var(--shadow-sm);
}
.statistics-toolbar, .customer-toolbar, .property-toolbar { padding: 13px 16px; }
.statistics-toolbar button, .customer-toolbar button, .property-toolbar button, .case-toolbar button {
  min-height: 36px; border: 1px solid #dfe0ef; border-radius: 10px; color: #6263d0; background: #f7f7ff; cursor: pointer;
}

/* 客户 / 房源 */
.feature-table-panel { overflow: hidden; border-radius: 22px; }
.table-wrap { width: 100%; overflow: auto; }
.table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-wrap thead { background: #fafafe; }
.table-wrap th { padding: 13px 15px; color: #989aab; border-bottom: 1px solid #ececf3; font-size: 9px; font-weight: 700; text-align: left; white-space: nowrap; }
.table-wrap td { padding: 15px; border-bottom: 1px solid #f0f0f5; color: #5d5f73; font-size: 11px; }
.table-wrap td b { color: #303247; }
.table-wrap td small { display: block; margin-top: 4px; color: #a0a2b2; }
.table-wrap tbody tr { transition: background .18s ease, transform .18s ease; }
.table-wrap tbody tr:hover { background: #f8f8ff; }
.identity-tag, .availability { display: inline-flex; padding: 4px 8px; border-radius: 999px; }
.identity-tag.confirmed, .availability.yes { color: var(--mint-ink); background: var(--mint); }
.identity-tag.pending, .availability.no { color: var(--amber-ink); background: var(--amber); }
#propertyRows td button { margin: 2px; border: 0; border-radius: 9px; color: #6263d0; background: #eeeeff; }
.customer-detail-backdrop, .daily-review-detail-backdrop, .case-evidence-backdrop, .action-overlay:before { backdrop-filter: blur(5px); }
.customer-detail-drawer, .daily-review-detail-drawer, .case-evidence-drawer { border-left: 1px solid rgba(255,255,255,.8); background: #f8f8fc; box-shadow: -24px 0 70px rgba(35,37,65,.18); }
.customer-detail-drawer > header, .daily-review-detail-drawer > header, .case-evidence-drawer > header { background: rgba(255,255,255,.94); }
.customer-detail-content > section { border-color: #e8e8f0; border-radius: 16px; box-shadow: 0 7px 22px rgba(50,52,84,.045); }
.customer-chat { border: 0; border-radius: 6px 16px 16px 16px; background: #f0f0f5; }
.customer-chat.sales { align-self: flex-end; border: 0; border-radius: 16px 6px 16px 16px; color: #fff; background: linear-gradient(145deg,#696ae6,#5556d6); }
.customer-chat.sales button { color: #fff; }

/* 复盘 */
.statistics-toolbar { margin-bottom: 12px; }
.review-status { padding: 16px 18px; border-color: #dbeee9; background: linear-gradient(120deg,#f7fffd,#fff); }
.review-status b { color: var(--mint-ink); }
.statistics-cards > * { position: relative; overflow: hidden; }
.statistics-cards > *:after { content: ""; position: absolute; width: 64px; height: 64px; right: -22px; top: -22px; border-radius: 50%; background: rgba(91,92,226,.07); }
.statistics-method { padding: 14px 17px; border-color: #e4e4f2; background: #f9f9ff; }
.daily-review-head { min-height: 90px; margin-top: 16px; padding: 17px 20px; border-color: #e4e4f2; background: linear-gradient(118deg,#fff,#f5f5ff); }
.daily-review-head small { color: #6667d6; }
.daily-review-card { padding: 19px; border-color: #e7e7f0; border-radius: 20px; box-shadow: var(--shadow-sm); }
.daily-review-card > header h3 { font-size: 16px; }
.daily-review-score strong { color: #5556d4; font-size: 28px; }
.daily-review-dimensions { gap: 8px; }
.daily-review-dimensions div { border: 0; border-radius: 12px; background: #f6f6fa; }
.daily-review-conclusions article { border: 0; border-radius: 13px; background: #f7f7fb; }
.daily-review-conclusions article:nth-child(1) { background: var(--mint); }
.daily-review-conclusions article:nth-child(2) { background: var(--amber); }
.daily-review-conclusions article:nth-child(3) { background: #f0efff; }
.daily-review-flags span { color: #66687b; background: #f0f0f5; }
.daily-review-card button, .daily-review-pagination button, .daily-review-detail-drawer button { border: 0; border-radius: 10px; color: #6263d1; background: #eeeeff; }

/* 学习案例：贡献者、学习点和话术有明确视觉层级 */
.case-toolbar { padding: 16px 18px; }
.case-mode-controls button.active { color: #fff; border-color: transparent; background: linear-gradient(135deg,#6768e7,#5051d3); box-shadow: 0 8px 18px rgba(91,92,226,.2); }
.case-layout { grid-template-columns: minmax(290px,.78fr) minmax(520px,1.5fr); gap: 16px; }
.case-list, .case-detail { min-height: 520px; border-radius: 22px; }
.case-row { padding: 17px 18px; border-bottom-color: #eeeeF4; background: transparent; }
.case-row:hover, .case-row:focus-visible { background: #f7f7ff; }
.case-row small:first-child { color: #7778dc; font-weight: 700; }
.case-row b { margin: 5px 0; color: #313348; font-size: 13px; }
.case-row em { color: #888a9d; }
.case-row span small:last-child { display: inline-flex; margin-top: 9px; padding: 4px 8px; border-radius: 999px; color: #7b5f2d; background: #fff4de; }
.case-row > strong { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#6e6fe9,#5354d2); box-shadow: 0 8px 18px rgba(91,92,226,.18); }
.case-detail { padding: 22px; }
.case-detail-head { border-bottom-color: #ececf3; }
.case-detail-head > strong { min-width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(145deg,#6d6ee8,#4f50ce); box-shadow: var(--shadow-blue); }
.case-watermark { border: 0; border-radius: 12px; color: #8f6a25; background: #fff5e2; }
.case-learning { gap: 10px; }
.case-learning > div { padding: 14px; border: 0; border-radius: 15px; background: #f5f5f9; }
.case-learning > div:nth-child(1) { background: #f1f1ff; }
.case-learning > div:nth-child(2) { color: #765118; background: #fff0cf; box-shadow: inset 0 0 0 1px rgba(221,165,58,.16); }
.case-learning > div:nth-child(3) { color: #176c5b; background: #e8f8f3; box-shadow: inset 0 0 0 1px rgba(40,161,137,.13); }
.case-learning > div > b { display: inline-flex; margin-bottom: 6px; font-size: 11px; }
.case-learning button { border: 0; border-radius: 9px; color: #fff; background: #35a98e; }
.case-conversation { gap: 10px; }
.case-chat { max-width: 86%; padding: 12px 14px; border: 0; border-radius: 6px 16px 16px 16px; background: #f1f1f6; }
.case-chat:nth-child(even) { align-self: flex-end; border-radius: 16px 6px 16px 16px; background: #eeeeff; }
.case-chat header b { display: inline-flex; padding: 3px 7px; border-radius: 999px; color: #5556c9; background: #fff; }
.case-chat header span { color: #999bad; }
.case-evidence-actions button { border: 0; border-radius: 10px; color: #6263d0; background: #eeeeff; }

/* 弹层与反馈 */
.action-overlay { background: rgba(35,36,60,.28); backdrop-filter: blur(6px); }
.action-dialog { border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: #fbfbfe; box-shadow: 0 28px 90px rgba(32,34,61,.22); }
.action-dialog > header { border-bottom-color: #ececf3; background: #fff; }
.action-grid > div { border-color: #e8e8f1; border-radius: 13px; background: #fff; }
.toast { bottom: 24px; padding: 11px 17px; border-radius: 999px; background: #303146; box-shadow: 0 12px 36px rgba(31,32,52,.24); font-size: 11px; }

@media (max-height: 760px) and (min-width: 961px) {
  .login-story-copy { margin-top: 58px; }
  .login-story-copy p { display: none; }
  .login-story-preview { width: min(410px,68%); right: 24px; bottom: 18px; padding: 17px; }
  .login-story-preview > p { margin: 12px 0; }
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .top-meta > div { min-width: 80px; padding: 0 10px; }
  .case-layout { grid-template-columns: minmax(250px,.75fr) minmax(440px,1.4fr); }
  .feature-stats, .statistics-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 960px) {
  .login-screen { grid-template-columns: minmax(0,1fr); place-items: center; }
  .login-story { display: none; }
  .login-card { justify-self: center; min-height: auto; }
  .app-shell { grid-template-columns: 82px minmax(0,1fr); }
  .rail { padding-inline: 10px; }
  .logo { justify-content: center; padding-inline: 0; }
  .logo > div, .nav-list button span, .nav-list button i, .agent > span:not(.avatar), .agent i { display: none; }
  .nav-list button { grid-template-columns: 1fr; place-items: center; padding: 0; font-size: 17px; }
  .agent { justify-content: center; padding: 7px; }
  .top-panel { grid-template-columns: 1fr; }
  .top-meta { display: none; }
  #assistantView { grid-template-columns: minmax(0,1fr); }
  #assistantView > .support-column { display: none; }
  .case-layout { grid-template-columns: 1fr; }
  .case-list { min-height: 240px; }
}

@media (max-width: 640px) {
  .login-screen { padding: 16px; }
  .login-card { padding: 30px 24px; border-radius: 24px; }
  .app-shell { display: block; }
  .rail { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 70px; padding: 7px 10px; flex-direction: row; border-top: 1px solid #e8e8f0; border-right: 0; }
  .logo, .agent { display: none; }
  .nav-list { padding: 0; flex-direction: row; justify-content: space-around; overflow: visible; }
  .nav-list button { width: 54px; min-height: 54px; border-radius: 16px; }
  .product { height: calc(100vh - 70px); }
  .top-panel { margin: 10px 10px 0; min-height: 62px; }
  #assistantView { height: calc(100vh - 150px); padding: 0 10px 10px; margin-top: 10px; }
  .ai-workbench { border-radius: 20px; }
  .ai-workbench > .panel-title { min-height: 62px; padding: 10px 13px; }
  .brain-title h2 { font-size: 16px; }
  .brain-title h2 span, .assistant-session-actions b { display: none; }
  .assistant-session-actions button { padding-inline: 8px; font-size: 9px; }
  .conversation-feed { padding: 20px 14px 16px; }
  .turn-body, .ai-card { max-width: 88%; }
  .composer { margin: 0 10px 10px; }
  .composer-actions button:not(.primary) { font-size: 0; width: 34px; padding: 7px; }
  .composer-actions button:not(.primary):before { content: "+"; font-size: 16px; }
  .composer-hint { display: none; }
  .feature-view { padding: 14px 12px 88px; }
  .feature-heading { min-height: 128px; padding: 22px; border-radius: 22px; }
  .feature-heading h1 { font-size: 25px; }
  .feature-heading .limit-pill { display: none; }
  .feature-stats, .statistics-cards { grid-template-columns: 1fr 1fr; }
  .feature-stats article, .feature-stats > button, .statistics-cards > * { min-height: 96px; padding: 14px; }
  .case-learning, .daily-review-dimensions, .daily-review-conclusions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* 2026-08-02：将已确认的 C 端视觉稿结构真正落到正式网页 */
:root {
  --blue: #3598f5;
  --blue-dark: #1978d4;
  --blue-soft: #e6f3ff;
  --blue-softer: #f3f9ff;
  --mint: #e6f5ee;
  --mint-ink: #24745d;
  --amber: #fff2d9;
  --amber-ink: #8a6328;
  --violet-soft: #f0edff;
  --rose-soft: #fff0ee;
  --ink: #20242d;
  --muted: #777f8c;
  --line: #e3e7ec;
  --canvas: #f4f6f8;
  --card: #fff;
  --shadow-sm: 0 12px 34px rgba(31, 50, 73, .06);
  --shadow-blue: 0 12px 30px rgba(53, 152, 245, .18);
}

body { color: var(--ink); background: var(--canvas); }
.panel { border-color: var(--line); background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); }

/* 登录页：与确认稿一致的公司记忆故事 + 清爽登录区 */
.login-screen {
  min-height: 100vh; padding: 0; gap: 0;
  grid-template-columns: minmax(0,1.15fr) minmax(390px,.85fr);
  background: #f5f7f9;
}
.login-story {
  min-height: 100vh; max-height: none; padding: clamp(38px,6vw,82px);
  color: var(--ink); border-radius: 0; box-shadow: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(113,175,255,.26), transparent 31%),
    radial-gradient(circle at 78% 84%, rgba(159,141,255,.17), transparent 30%),
    linear-gradient(145deg,#eff7ff,#fbfcfd 55%,#f3efff);
}
.login-story:before { display: none; }
.login-story-brand { color: var(--ink); }
.login-story-brand > span { display: grid; gap: 2px; }
.login-story-brand > span strong,
.login-story-brand > span small { display: block; }
.login-story-brand > b,
.login-brand > b,
.logo > b {
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg,#43a7ff,#7776ef);
  box-shadow: 0 10px 24px rgba(53,152,245,.2);
}
.login-story-brand small { color: #75808e; }
.login-story-copy { margin-top: clamp(48px,8vh,92px); }
.login-story-kicker { color: var(--blue-dark); background: var(--blue-soft); }
.login-story-copy h2 { margin: 20px 0 16px; color: #1f2530; font-size: clamp(42px,5.1vw,70px); letter-spacing: -.06em; line-height: 1.06; }
.login-story-copy p { max-width: 620px; color: #697382; font-size: 16px; line-height: 1.9; }
.login-memory-map { position: relative; width: min(570px,92%); min-height: 250px; margin-top: 32px; }
.memory-core {
  position: absolute; top: 64px; left: 36%; width: 132px; height: 132px;
  display: grid; place-items: center; align-content: center; gap: 3px;
  border-radius: 32px; color: #fff; transform: rotate(-6deg);
  background: linear-gradient(135deg,#3d9cf3,#7775ea);
  box-shadow: 0 25px 54px rgba(65,132,213,.26);
}
.memory-core b { font-size: 36px; }
.memory-core small { font-weight: 500; }
.memory-note {
  position: absolute; padding: 13px 17px; border: 1px solid rgba(210,218,228,.9);
  border-radius: 15px; color: #4d5968; background: rgba(255,255,255,.82);
  box-shadow: 0 13px 30px rgba(39,58,83,.08); backdrop-filter: blur(8px);
}
.note-customer { top: 2px; left: 2%; transform: rotate(-3deg); }
.note-property { top: 34px; right: 2%; transform: rotate(4deg); }
.note-case { bottom: 0; left: 8%; transform: rotate(2deg); }
.note-insight { right: 1%; bottom: 3px; transform: rotate(-4deg); }
.login-card {
  width: 100%; min-height: 100vh; max-width: none; justify-self: stretch;
  align-content: center; padding: clamp(46px,7vw,96px); border: 0; border-left: 1px solid var(--line);
  border-radius: 0; background: rgba(255,255,255,.92); box-shadow: none;
}
.login-brand { margin-bottom: 55px; }
.login-heading span { color: var(--blue-dark); background: var(--blue-soft); }
.login-heading h1 { margin: 13px 0 8px; font-size: 38px; letter-spacing: -.045em; }
.login-heading p,.login-footnote { color: #7b8491; }
.login-card input { min-height: 52px; border-color: #dfe4ea; border-radius: 14px; background: #f9fafb; }
.login-card input:focus { border-color: #83c2fa; box-shadow: 0 0 0 4px rgba(53,152,245,.1); }
.login-submit { min-height: 52px; border-radius: 14px; background: linear-gradient(135deg,#2f96f5,#357fdc); box-shadow: var(--shadow-blue); }

/* 正式应用壳：6.4rem 窄导航，不再显示旧后台长菜单 */
.app-shell { grid-template-columns: 104px minmax(0,1fr); background: var(--canvas); }
.rail {
  gap: 9px; padding: 16px 10px 13px; border-right: 1px solid var(--line);
  background: rgba(255,255,255,.91); backdrop-filter: blur(16px);
}
.logo { display: grid; justify-items: center; gap: 5px; padding: 0 0 7px; text-align: center; }
.logo > b { width: 42px; height: 42px; border-radius: 15px; font-size: 17px; }
.logo > div strong { font-size: 11px; }
.logo > div small { display: none; }
.legacy-nav-list,
.rail > .nav-list { display: none !important; }
.consumer-primary-nav { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 4px; overflow: auto; padding: 3px 0; }
.consumer-primary-nav button {
  width: 100%; min-height: 61px; padding: 8px 3px; display: grid; place-items: center; align-content: center; gap: 4px;
  border: 0; border-radius: 14px; color: #89919c; background: transparent; cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.consumer-primary-nav button:hover { color: #357aa8; background: #f0f7fc; transform: translateY(-1px); }
.consumer-primary-nav button.active { color: #1876c5; background: var(--blue-soft); }
.consumer-primary-nav button span { font-size: 10px; font-weight: 700; white-space: nowrap; }
.consumer-nav-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.agent { width: 100%; min-height: 66px; padding: 7px 2px; display: grid; place-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 14px; background: transparent; box-shadow: none; }
.agent:hover { background: #f1f6f9; }
.agent .avatar { width: 35px; height: 35px; border-radius: 50%; }
.agent > span:not(.avatar) { display: block; max-width: 88px; text-align: center; }
.agent > span:not(.avatar) strong { display: block; overflow: hidden; color: #4e5966; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.agent > span:not(.avatar) small { display: none; }
.agent i { display: none; }

.product { background: var(--canvas); }
.consumer-context-nav {
  flex: 0 0 auto; min-height: 48px; padding: 9px clamp(18px,3vw,34px) 0;
  display: flex; align-items: end; gap: 6px; overflow-x: auto; background: transparent;
}
.consumer-context-nav[hidden] { display: none !important; }
.consumer-context-nav button {
  min-height: 34px; padding: 0 13px; border: 0; border-radius: 11px; color: #7b8490;
  background: transparent; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.consumer-context-nav button:hover { color: #267fc9; background: #eef6fd; }
.consumer-context-nav button.active { color: #1478cb; background: var(--blue-soft); }
.top-panel { display: none; }
body[data-active-view="assistant"] .top-panel {
  min-height: 64px; margin: 14px clamp(18px,3vw,34px) 0; padding: 10px 16px;
  grid-template-columns: minmax(0,1fr) auto; border-radius: 17px; box-shadow: none;
}
body[data-active-view="assistant"] .top-panel { display: grid; }
.top-panel .client { min-width: 0; }
.top-panel .client .avatar { color: #2478b6; background: var(--blue-soft); }
.top-meta { gap: 0; }
.top-meta > div { min-width: 90px; padding: 0 12px; }
.top-meta .model-meta { display: none; }

/* AI 助手：正式聊天主舞台，原有输入和辅助栏收进会话内能力 */
#assistantView { width: min(1180px,100%); height: calc(100vh - 94px); margin: 0 auto; padding: 14px clamp(18px,3vw,34px) 22px; grid-template-columns: minmax(0,1fr); }
#assistantView > .input-column,
#assistantView > .support-column { display: none !important; }
#assistantView > .decision-column { min-width: 0; }
.ai-workbench { overflow: hidden; border-radius: 20px; border-color: var(--line); }
.ai-workbench > .panel-title { min-height: 70px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.brain-title h2 { color: #202630; font-size: 20px; }
.brain-title h2 span { color: #8a929d; font-size: 10px; }
.assistant-session-actions button { color: #5a6572; border-color: #dfe5ea; background: #fff; }
.assistant-session-actions button:hover { color: #1e7fcf; border-color: #b9dbf8; background: var(--blue-softer); }
.assistant-conversation-status { margin: 0; padding: 9px 18px; color: #6d7b88; border-bottom: 1px solid #edf0f3; background: #f7fafc; }
.conversation-feed { padding: 28px clamp(18px,4vw,52px) 22px; background: #fbfcfd; }
.chat-turn.sales { justify-content: flex-end; }
.chat-turn.sales .turn-avatar { order: 2; color: #fff; background: #3b95e9; }
.chat-turn.sales .turn-body { max-width: 78%; color: #fff; border: 0; border-radius: 18px 18px 5px 18px; background: linear-gradient(135deg,#3d9ff5,#337fd9); box-shadow: 0 12px 26px rgba(53,152,245,.15); }
.chat-turn.ai .turn-avatar { color: #3d748f; background: #e5f1f7; }
.chat-turn.ai .turn-body { max-width: 82%; border: 0; border-radius: 18px 18px 18px 5px; background: #eef1f4; box-shadow: none; }
.ai-card { border-color: #dfe5ea; border-radius: 16px; background: #fff; box-shadow: none; }
.composer { margin: 0 clamp(12px,3vw,38px) 16px; border-color: #dce3e9; border-radius: 18px; box-shadow: 0 12px 30px rgba(34,55,77,.08); }
.composer:focus-within { border-color: #92c9f6; box-shadow: 0 14px 34px rgba(53,152,245,.12),0 0 0 4px rgba(53,152,245,.07); }
.composer-actions .primary { background: linear-gradient(135deg,#359cf4,#2a7fd0); box-shadow: var(--shadow-blue); }

/* 功能页使用确认稿的页头、留白和卡片层级 */
.feature-view { padding: 18px clamp(22px,3.2vw,44px) 56px; }
.feature-heading {
  min-height: 76px; margin: 0 0 18px; padding: 0 0 16px; overflow: visible;
  align-items: end; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; box-shadow: none;
}
.feature-heading:after { display: none; }
.feature-heading small { margin-bottom: 4px; color: #7b8794; font-size: 10px; }
.feature-heading h1 { margin: 0 0 4px; color: #202630; font-size: clamp(25px,2.4vw,34px); }
.feature-heading p { color: #7a8490; }
.limit-pill { color: #177ac8; border: 0; background: var(--blue-soft); }
.primary-feature,.feature-heading button { color: #217fc9; border-color: #d7e7f4; background: #fff; box-shadow: none; }
.feature-heading .primary-feature { background: linear-gradient(135deg,#379cf4,#2d80cf); box-shadow: var(--shadow-blue); }
.feature-stats,.statistics-cards { gap: 12px; }
.feature-stats article,.feature-stats > button,.statistics-cards > * { border-color: var(--line); border-radius: 17px; box-shadow: none; }
.feature-stats article:nth-child(4n+1),.feature-stats > button:nth-child(4n+1) { background: linear-gradient(145deg,#fff,#eef7ff); }
.feature-stats article:nth-child(4n+2),.feature-stats > button:nth-child(4n+2) { background: linear-gradient(145deg,#fff,#eff9f5); }
.feature-stats article:nth-child(4n+3),.feature-stats > button:nth-child(4n+3) { background: linear-gradient(145deg,#fff,#fff8ea); }
.feature-stats article:nth-child(4n+4),.feature-stats > button:nth-child(4n+4) { background: linear-gradient(145deg,#fff,#f5f1ff); }
.feature-stats article small,.feature-stats > button small { color: #257fc7; }
.feature-table-panel,.case-list,.case-detail,.daily-review-card,.statistics-toolbar,.statistics-method,.daily-review-head { border-radius: 18px; box-shadow: none; }
.statistics-toolbar button,.customer-toolbar button,.property-toolbar button,.case-toolbar button { color: #217fc8; border-color: #d6e7f3; background: #f4faff; }
.table-wrap tbody tr:hover { background: #f5faff; }
#propertyRows td button { color: #217fc8; background: var(--blue-soft); }
.customer-chat.sales { background: linear-gradient(145deg,#399cf3,#307fd4); }

/* 我的复盘：与确认稿中的柔和蓝色经营卡一致，且数字来自真实复盘 */
.review-experience-hero {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px;
  overflow: hidden; min-height: 132px; margin: 0 0 16px; padding: 22px 26px; border-radius: 20px;
  background: linear-gradient(135deg,#dfefff,#f0f1f4 58%,#e9eee2);
}
.review-experience-hero:after { content: ""; position: absolute; right: -44px; bottom: -92px; width: 220px; height: 220px; border-radius: 50%; background: rgba(143,180,111,.18); }
.review-experience-hero > * { position: relative; z-index: 1; }
.review-experience-hero > div:first-child > span { color: #2b86d1; font-size: 11px; font-weight: 750; }
.review-experience-hero h2 { margin: 9px 0 6px; color: #202630; font-size: clamp(22px,2.2vw,31px); letter-spacing: -.035em; }
.review-experience-hero h2 strong { font-size: 1.12em; }
.review-experience-hero p { margin: 0; color: #78838f; }
.review-hero-ratio { min-width: 170px; display: grid; justify-items: end; gap: 3px; text-align: right; }
.review-hero-ratio strong { color: #202630; font-size: clamp(30px,3vw,44px); font-weight: 500; letter-spacing: -.05em; }
.review-hero-ratio span { color: #65717d; font-size: 10px; }
.review-status { border-color: #d9ede5; background: #f4fbf8; }
.statistics-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
.statistics-cards > *:after { background: rgba(53,152,245,.07); }
.statistics-method { border-color: #dceaf5; background: #f5faff; }
.daily-review-head { background: linear-gradient(118deg,#fff,#eef7ff); }
.daily-review-head small { color: #2581c9; }
.daily-review-score strong { color: #2586d0; }
.daily-review-conclusions article:nth-child(1) { background: var(--mint); }
.daily-review-conclusions article:nth-child(2) { background: var(--amber); }
.daily-review-conclusions article:nth-child(3) { background: var(--violet-soft); }
.daily-review-card button,.daily-review-pagination button,.daily-review-detail-drawer button { color: #217fc8; background: var(--blue-soft); }

/* 案例仍保留醒目学习点，但去掉旧紫色后台气质 */
.case-mode-controls button.active { background: linear-gradient(135deg,#3c9df2,#2d7fce); box-shadow: var(--shadow-blue); }
.case-row:hover,.case-row:focus-visible { background: #f3f9fe; }
.case-row small:first-child { color: #277fc5; }
.case-row > strong,.case-detail-head > strong { background: linear-gradient(145deg,#3ca0f4,#307dce); box-shadow: var(--shadow-blue); }
.case-learning > div:nth-child(1) { background: var(--blue-soft); }
.case-learning > div:nth-child(2) { background: #fff0cf; }
.case-learning > div:nth-child(3) { background: #e6f6ef; }
.case-chat:nth-child(even) { background: var(--blue-soft); }
.case-chat header b { color: #277fc6; }
.case-evidence-actions button { color: #217fc8; background: var(--blue-soft); }

@media (max-width: 1180px) and (min-width: 821px) {
  .app-shell { grid-template-columns: 92px minmax(0,1fr); }
  .statistics-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .top-meta > div:nth-child(n+4) { display: none; }
}
@media (max-width: 820px) {
  .login-screen { grid-template-columns: minmax(0,1fr); }
  .login-story { display: none; }
  .login-card { min-height: 100vh; border-left: 0; }
  .app-shell { display: grid; grid-template-columns: minmax(0,1fr); }
  .rail { position: static; width: auto; height: auto; padding: 9px 12px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .logo { display: block; padding: 0; }
  .logo > div { display: none; }
  .consumer-primary-nav { flex-direction: row; justify-content: center; overflow-x: auto; }
  .consumer-primary-nav button { min-width: 58px; min-height: 52px; padding: 5px 2px; }
  .agent { width: 48px; min-height: 48px; }
  .agent > span:not(.avatar) { display: none; }
  .product { height: calc(100vh - 72px); }
  body[data-active-view="assistant"] .top-panel { margin-top: 9px; }
  #assistantView { height: calc(100vh - 150px); }
  .top-meta { display: none; }
  .case-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .login-screen { padding: 0; }
  .login-card { padding: 34px 24px; border-radius: 0; }
  .rail { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto; height: 72px; grid-template-columns: minmax(0,1fr); padding: 6px 8px; border-top: 1px solid var(--line); border-bottom: 0; }
  .logo,.agent { display: none; }
  .consumer-primary-nav { justify-content: space-around; overflow: visible; }
  .consumer-primary-nav button { min-width: 48px; min-height: 58px; }
  .product { height: calc(100vh - 72px); }
  .consumer-context-nav { min-height: 44px; padding: 7px 10px 0; }
  body[data-active-view="assistant"] .top-panel { display: none; }
  #assistantView { height: calc(100vh - 72px); padding: 10px 8px 82px; }
  .feature-view { padding: 14px 12px 88px; }
  .feature-heading { min-height: 68px; padding: 0 0 13px; border-radius: 0; }
  .review-experience-hero { grid-template-columns: minmax(0,1fr); padding: 19px; }
  .review-hero-ratio { justify-items: start; text-align: left; }
  .statistics-cards { grid-template-columns: 1fr 1fr; }
}

/* 系统优化报告：经营者先读结论，再看证据与授权流程 */
#systemOptimizationView {
  --optimization-blue: #308fdc;
  --optimization-deep: #25354d;
  --optimization-soft: #edf7ff;
  --optimization-warm: #fff4dc;
  width: min(1320px,100%);
  margin: 0 auto;
}
#systemOptimizationView > .feature-heading { margin-left: 0; margin-right: 0; }
.optimization-heading { align-items: center; }
.optimization-heading-meta { display: grid; justify-items: end; gap: 8px; color: #8a94a0; font-size: 10px; }
.optimization-hero {
  position: relative;
  isolation: isolate;
  min-height: 205px;
  margin-bottom: 16px;
  padding: clamp(24px,3.4vw,42px);
  display: grid;
  grid-template-columns: minmax(0,1fr) 190px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(117,176,222,.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 83% 115%,rgba(133,185,147,.27) 0 18%,transparent 18.5%),
    linear-gradient(128deg,#dcebfb 0%,#edf1f8 51%,#eee9f7 100%);
}
.optimization-hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -118px;
  border-radius: 50%;
  background: rgba(255,255,255,.46);
}
.optimization-hero-copy { max-width: 820px; }
.optimization-hero-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #247fc2;
  background: rgba(255,255,255,.66);
  font-size: 10px;
  font-weight: 750;
}
.optimization-hero h2 {
  max-width: 880px;
  margin: 16px 0 8px;
  color: #202a37;
  font-size: clamp(25px,3vw,39px);
  line-height: 1.22;
  letter-spacing: -.04em;
}
.optimization-hero p { max-width: 780px; margin: 0; color: #657382; font-size: 14px; line-height: 1.8; }
.optimization-hero-copy > small { display: block; margin-top: 16px; color: #718090; font-size: 10px; }
.optimization-hero-art { display: grid; place-items: center; }
.optimization-hero-art svg {
  width: 154px;
  height: 154px;
  overflow: visible;
  fill: none;
  stroke: #3a8dca;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 18px 24px rgba(58,141,202,.15));
}
.optimization-hero-art circle { fill: rgba(255,255,255,.54); stroke: rgba(255,255,255,.76); }
.optimization-overview-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(290px,.75fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.optimization-detail-panel,.optimization-permission-card,.optimization-external-card,.optimization-list-panel {
  border-color: #e1e7ec;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: none;
}
.optimization-detail-panel { min-height: 390px; padding: clamp(21px,2.5vw,30px); overflow: visible; }
.optimization-detail-panel > header.optimization-opportunity-head {
  padding: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  border: 0;
}
.optimization-opportunity-head > div { display: grid; gap: 3px; }
.optimization-opportunity-head > div > span { color: #283545; font-size: 15px; font-weight: 780; }
.optimization-opportunity-head > div > small { color: #919aa5; font-size: 9px; }
.optimization-state { font-style: normal; }
.optimization-opportunity-number { margin-top: 27px; color: #253246; font-size: clamp(26px,3vw,40px); font-weight: 520; letter-spacing: -.045em; }
.optimization-opportunity-copy { margin: 5px 0 22px; color: #74808d; font-size: 11px; line-height: 1.75; }
.optimization-highlight {
  padding: 18px 20px;
  border: 1px solid rgba(226,185,105,.17);
  border-radius: 17px;
  background: linear-gradient(130deg,#fff2d5,#f4edf8 88%);
}
.optimization-highlight span { color: #a0721c; font-size: 10px; font-weight: 760; }
.optimization-highlight p { margin: 7px 0 0; color: #4d4f61; font-size: 13px; line-height: 1.75; }
.optimization-actions {
  min-height: 48px;
  margin-top: 16px;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  border: 0;
}
.optimization-actions > span { color: #8b95a0; font-size: 10px; }
.optimization-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d8e3eb;
  border-radius: 11px;
  color: #3d556b;
  background: #fff;
  font-size: 10px;
  font-weight: 720;
}
.optimization-actions .primary-feature { color: #fff; border-color: transparent; background: linear-gradient(135deg,#3b9be6,#2f7fc6); box-shadow: 0 10px 22px rgba(47,127,198,.18); }
.optimization-evidence-disclosure { margin-top: 10px; border-top: 1px solid #edf0f3; }
.optimization-evidence-disclosure > summary { padding: 16px 2px 5px; color: #287ebd; font-size: 10px; font-weight: 740; cursor: pointer; }
.optimization-evidence-disclosure > section { padding: 15px 0; border-top: 1px solid #edf0f3; }
.optimization-evidence-disclosure > section h3 { margin: 0 0 8px; color: #344456; font-size: 11px; }
.optimization-evidence-disclosure > section p { margin: 5px 0; color: #667483; font-size: 10px; }
.optimization-detail-grid { margin: 14px 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
.optimization-detail-grid > div { border-color: #e5ebef; border-radius: 12px; background: #fafcfd; }
.optimization-claims > div { border-left-color: #8dbfe6; border-radius: 0 10px 10px 0; background: #f6fafe; }
.optimization-claims b > span { margin-right: 7px; color: #2e84c6; font-size: 9px; }
.optimization-honesty > div { border-color: #e9ca8e; border-radius: 12px; background: #fff9ec; }
.optimization-empty-state {
  min-height: 330px;
  padding: 30px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.optimization-empty-state > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 16px;
  color: #2d84c5;
  background: #eaf5fd;
  font-size: 10px;
  font-weight: 780;
}
.optimization-empty-state strong { color: #334052; font-size: 16px; }
.optimization-empty-state p { max-width: 360px; margin: 8px 0 0; color: #8a95a0; font-size: 10px; line-height: 1.7; }
.optimization-empty-sources { margin-top: 18px; display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.optimization-empty-sources i { padding: 6px 9px; border: 1px solid #deebf3; border-radius: 999px; color: #668298; background: #f6fafc; font-size: 8px; font-style: normal; }
.optimization-permission-card { min-height: 390px; padding: clamp(21px,2.5vw,30px); }
.optimization-permission-card > header { display: flex; justify-content: space-between; gap: 12px; }
.optimization-permission-card > header span { color: #283545; font-size: 15px; font-weight: 780; }
.optimization-permission-card > header small { color: #8c97a2; font-size: 9px; }
.optimization-timeline { position: relative; margin: 24px 0 0; padding: 0; display: grid; gap: 0; list-style: none; }
.optimization-timeline:before { content: ""; position: absolute; left: 17px; top: 31px; bottom: 31px; width: 1px; background: #dbe7ee; }
.optimization-timeline li { position: relative; min-height: 71px; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 13px; }
.optimization-timeline li > span {
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #d5e7f3;
  border-radius: 12px;
  color: #2d82bf;
  background: #f1f8fd;
  font-size: 11px;
  font-weight: 800;
}
.optimization-timeline li > div { padding-top: 1px; display: grid; gap: 4px; }
.optimization-timeline strong { color: #374556; font-size: 11px; }
.optimization-timeline small { color: #8a95a1; font-size: 9px; }
.optimization-external-card { margin-bottom: 26px; padding: 22px 25px; }
.optimization-external-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.optimization-external-card > header > div { display: grid; gap: 3px; }
.optimization-external-card > header strong { color: #283545; font-size: 14px; }
.optimization-external-card > header small { color: #8d97a2; font-size: 9px; }
.optimization-external-card > header > span { padding: 5px 9px; border-radius: 999px; color: #8d6d29; background: #fff5dc; font-size: 9px; font-weight: 740; }
.optimization-external-empty { min-height: 96px; margin-top: 14px; padding: 17px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 14px; border-radius: 15px; background: #f8fafb; }
.optimization-external-empty > b { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #3987be; background: #e8f4fb; font-size: 18px; }
.optimization-external-empty > div { display: grid; gap: 4px; }
.optimization-external-empty strong { color: #3e4a58; font-size: 11px; }
.optimization-external-empty p { margin: 0; color: #8b96a0; font-size: 9px; line-height: 1.65; }
.optimization-directions-section { padding-top: 5px; }
.optimization-directions-heading { margin-bottom: 14px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.optimization-directions-heading > div > small { color: #3185c2; font-size: 9px; font-weight: 750; }
.optimization-directions-heading h2 { margin: 4px 0 2px; color: #273445; font-size: 22px; }
.optimization-directions-heading p { margin: 0; color: #8b95a0; font-size: 9px; }
.optimization-stats { width: min(510px,56%); grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.optimization-stats article { min-height: 67px; padding: 10px 12px; border-radius: 14px; }
.optimization-stats article span { font-size: 8px; }
.optimization-stats article strong { margin-top: 3px; font-size: 18px; }
#systemOptimizationView > .optimization-toolbar { margin: 0 0 12px; }
.optimization-toolbar { min-height: 72px; padding: 12px 15px; border-color: #e2e8ed; border-radius: 17px; background: #fff; box-shadow: none; }
.optimization-toolbar select { min-width: 176px; border-color: #dde5eb; border-radius: 10px; }
.optimization-toolbar button { min-height: 36px; border-color: #d4e7f4; border-radius: 10px; color: #277fbe; background: #f1f8fd; }
.optimization-toolbar > small { max-width: 520px; }
.optimization-list-panel { min-height: 210px; overflow: hidden; }
.optimization-list-panel > header { min-height: 58px; padding: 0 18px; }
.optimization-list-panel > header h2 { color: #364456; font-size: 12px; }
#optimizationList { padding: 8px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; overflow: visible; }
#optimizationList > .empty-review { grid-column: 1/-1; min-height: 150px; }
.optimization-row {
  min-height: 92px;
  padding: 13px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #e7ecef;
  border-radius: 14px;
  background: #fff;
}
.optimization-row + .optimization-row { margin-top: 0; }
.optimization-row:hover { border-color: #c9dfed; background: #f8fbfd; }
.optimization-row.active { border-color: #85bde3; background: #eef7fd; box-shadow: inset 0 0 0 1px rgba(73,151,205,.08); }
.optimization-row-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: #2d82bf; background: #e8f4fb; font-size: 10px; font-weight: 800; }
.optimization-row-copy { min-width: 0; display: grid; gap: 6px; }
.optimization-row-copy b { overflow: hidden; color: #394759; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.optimization-row-copy small { color: #929ba5; font-size: 8px; }
.optimization-row-end { display: grid; justify-items: end; gap: 7px; }
.optimization-row-end small { color: #9aa3ac; font-size: 8px; }
.optimization-row-end .optimization-state { font-size: 8px; }
#optimizationPagination { min-height: 48px; }

@media (max-width: 900px) {
  .optimization-overview-grid { grid-template-columns: 1fr; }
  .optimization-permission-card { min-height: auto; }
  .optimization-timeline { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
  .optimization-timeline:before { display: none; }
  .optimization-timeline li { min-height: 0; grid-template-columns: 32px minmax(0,1fr); gap: 9px; }
  .optimization-timeline li > span { width: 32px; height: 32px; }
}
@media (max-width: 760px) {
  .optimization-heading-meta { justify-items: start; }
  .optimization-hero { grid-template-columns: minmax(0,1fr); padding: 24px 20px; }
  .optimization-hero-art { display: none; }
  .optimization-directions-heading { align-items: stretch; flex-direction: column; }
  .optimization-stats { width: 100%; }
  .optimization-timeline { grid-template-columns: 1fr 1fr; }
  #optimizationList { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .optimization-stats { grid-template-columns: 1fr 1fr; }
  .optimization-timeline { grid-template-columns: 1fr; }
  .optimization-toolbar > div { align-items: stretch; flex-direction: column; }
  .optimization-toolbar select { width: 100%; }
  .optimization-row { grid-template-columns: 38px minmax(0,1fr); }
  .optimization-row-end { grid-column: 2; justify-items: start; }
}

/* 2026-08-06 · 销售端 C 端体验统一层。仅覆盖登录与五个销售入口。 */
:root {
  --sales-canvas: #f4f7fb;
  --sales-surface: #ffffff;
  --sales-ink: #172033;
  --sales-muted: #748094;
  --sales-line: #e7edf4;
  --sales-blue: #3b8ff1;
  --sales-blue-deep: #2f72d8;
  --sales-blue-soft: #eaf4ff;
  --sales-mint: #eaf8f1;
  --sales-amber: #fff4d8;
  --sales-violet: #f1edff;
  --sales-shadow: 0 18px 52px rgba(39,64,96,.10);
}

/* 登录：完整品牌故事、可信提示和现代输入体验 */
.login-screen {
  min-height: 100vh; grid-template-columns: minmax(0,1.46fr) minmax(440px,.84fr);
  color: var(--sales-ink); background: #fff;
}
.login-story {
  position: relative; min-width: 0; padding: clamp(42px,5vw,82px) clamp(44px,7vw,104px) 34px;
  overflow: hidden; justify-content: space-between;
  background:
    radial-gradient(circle at 18% 15%,rgba(103,177,255,.24),transparent 33%),
    radial-gradient(circle at 82% 85%,rgba(137,117,244,.18),transparent 31%),
    linear-gradient(145deg,#f7fbff 0%,#eef5ff 48%,#f7f3ff 100%);
}
.login-story:before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.36) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.36) 1px,transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom,rgba(0,0,0,.32),transparent 62%); }
.login-story > * { position: relative; z-index: 1; }
.login-story-brand b,.login-brand b { background: linear-gradient(145deg,#55a6f5,#5d68dc); box-shadow: 0 14px 32px rgba(62,129,225,.24); }
.login-story-brand strong { color: var(--sales-ink); font-size: 18px; }
.login-story-brand small { color: #6c788b; }
.login-story-copy { max-width: 670px; margin-top: clamp(34px,5vh,72px); }
.login-story-kicker,.login-heading > span { display: inline-flex; width: max-content; padding: 7px 11px; color: #287ac7; border: 1px solid rgba(68,148,229,.16); border-radius: 999px; background: rgba(255,255,255,.72); font-weight: 760; }
.login-story-copy h2 { max-width: 680px; margin: 22px 0 18px; color: #162033; font-size: clamp(42px,5.4vw,72px); line-height: 1.06; letter-spacing: -.055em; }
.login-story-copy p { max-width: 620px; color: #68768a; font-size: clamp(15px,1.3vw,19px); line-height: 1.8; }
.login-memory-map { width: min(660px,96%); margin: 8px 0 0; }
.login-memory-map svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 30px rgba(43,82,135,.10)); }
.memory-track { fill: none; stroke: #9fc2e8; stroke-width: 4; stroke-dasharray: 8 9; }
.memory-panel { fill: rgba(255,255,255,.88); stroke: #d6e5f3; stroke-width: 2; }
.memory-face { fill: #f3c5aa; }.memory-hair { fill: #3b4d68; }.memory-accent { fill: #bcdcff; }.memory-line { fill: #e7edf5; }.memory-window { fill: #cce8fb; }.memory-window-line { fill: none; stroke: #83b6dc; stroke-width: 3; }.memory-bed { fill: #597896; }.memory-core-shape { fill: url(#memory-gradient); fill: #4d86eb; }.memory-home { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }.memory-trend { fill: none; stroke: #4b91e4; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }.memory-dot { fill: #4b91e4; }
.login-memory-map figcaption { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: -2px; }
.login-memory-map figcaption span { padding: 7px 11px; color: #5c6b80; border: 1px solid rgba(132,158,189,.22); border-radius: 999px; background: rgba(255,255,255,.76); box-shadow: 0 8px 20px rgba(56,80,111,.06); font-size: 11px; }
.login-card { align-self: stretch; min-height: 100vh; padding: clamp(42px,7vh,88px) clamp(44px,6vw,86px); justify-content: center; border-left: 1px solid #e8edf4; background: rgba(255,255,255,.97); }
.login-card > * { width: min(430px,100%); }
.login-brand { margin-bottom: clamp(38px,7vh,74px); }
.login-heading { gap: 8px; margin-bottom: 30px; }
.login-heading > span { margin-bottom: 10px; background: var(--sales-blue-soft); }
.login-heading h1 { color: var(--sales-ink); font-size: clamp(34px,3vw,46px); letter-spacing: -.045em; }
.login-heading p { color: var(--sales-muted); }
.login-card form { gap: 10px; }
.login-card form > label { margin-top: 7px; color: #445066; font-weight: 690; }
.login-card input { height: 54px; padding: 0 16px; color: var(--sales-ink); border: 1px solid #dfe6ef; border-radius: 15px; background: #f9fbfd; box-shadow: none; transition: .18s ease; }
.login-card input:focus { border-color: #77b4f1; background: #fff; box-shadow: 0 0 0 4px rgba(57,144,236,.10); }
.login-password-field { position: relative; }
.login-password-field input { width: 100%; padding-right: 56px; }
.login-password-toggle { position: absolute; right: 8px; top: 7px; width: 40px; height: 40px; display: grid; place-items: center; color: #8a96a7; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.login-password-toggle:hover,.login-password-toggle.active { color: #2f7ed1; background: var(--sales-blue-soft); }
.login-submit { height: 54px; margin-top: 8px; border-radius: 15px; background: linear-gradient(135deg,var(--sales-blue),var(--sales-blue-deep)); box-shadow: 0 16px 32px rgba(48,124,219,.22); }
.login-trust-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: #66758a; font-size: 11px; }
.login-trust-row span { display: inline-flex; align-items: center; gap: 5px; }
.login-help { margin-top: 20px; color: #929cab; line-height: 1.7; text-align: left; }

/* AI 助手：以对话为中心，空态直接提供三个常用入口 */
body[data-active-view="assistant"] #assistantView { background: var(--sales-canvas); }
body[data-active-view="assistant"] .ai-workbench { min-height: 0; border: 1px solid var(--sales-line); border-radius: 24px; background: var(--sales-surface); box-shadow: var(--sales-shadow); }
body[data-active-view="assistant"] .conversation-feed { min-height: 0; padding: clamp(24px,4vw,58px); background: linear-gradient(180deg,#fbfdff 0%,#f7f9fc 100%); }
.assistant-empty-hero { max-width: 900px; display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: center; gap: 22px; margin: 18px auto 26px; padding: 30px 32px; overflow: hidden; border: 1px solid #dceafa; border-radius: 26px; background: radial-gradient(circle at 90% 10%,rgba(114,172,244,.22),transparent 35%),linear-gradient(135deg,#edf6ff,#fff 62%); box-shadow: 0 18px 40px rgba(51,94,145,.08); }
.assistant-empty-mark { width: 68px; height: 68px; display: grid; place-items: center; color: #fff; border-radius: 23px; background: linear-gradient(145deg,#51a0f4,#5766df); box-shadow: 0 15px 28px rgba(66,119,222,.24); font-size: 25px; font-weight: 820; transform: rotate(-4deg); }
.assistant-empty-hero small { color: #2c82cf; font-weight: 760; }
.assistant-empty-hero h3 { margin: 7px 0 8px; color: var(--sales-ink); font-size: clamp(24px,2.6vw,36px); letter-spacing: -.035em; }
.assistant-empty-hero p { margin: 0; color: var(--sales-muted); font-size: 13px; line-height: 1.7; }
.assistant-quick-grid { max-width: 900px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0 auto 28px; }
.assistant-quick-card { min-height: 126px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-content: center; column-gap: 12px; padding: 20px; color: var(--sales-ink); text-align: left; border: 1px solid var(--sales-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 26px rgba(47,70,98,.06); cursor: pointer; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.assistant-quick-card:hover { transform: translateY(-3px); border-color: #a8d0f6; box-shadow: 0 18px 34px rgba(47,98,151,.10); }
.assistant-quick-card > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; color: #2f83d4; border-radius: 14px; background: var(--sales-blue-soft); font-size: 18px; font-weight: 800; }
.assistant-quick-card strong { align-self: end; font-size: 14px; }.assistant-quick-card small { align-self: start; margin-top: 5px; color: var(--sales-muted); }
body[data-active-view="assistant"] .chat-turn { gap: 10px; margin-bottom: 20px; }
body[data-active-view="assistant"] .chat-turn .turn-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 13px; }
body[data-active-view="assistant"] .chat-turn.sales .turn-body { max-width: min(76%,760px); padding: 15px 18px; border-radius: 20px 20px 6px 20px; }
body[data-active-view="assistant"] .chat-turn.ai .turn-body { max-width: min(84%,840px); padding: 15px; border: 1px solid #e5ebf2; border-radius: 20px 20px 20px 6px; background: #fff; box-shadow: 0 10px 28px rgba(38,62,91,.07); }
.assistant-mode-tabs { display: flex; gap: 8px; margin: 12px 0; padding-bottom: 10px; border-bottom: 1px solid var(--sales-line); }
.assistant-mode-tabs span { padding: 7px 11px; color: #9aa4b2; border-radius: 999px; background: #f3f5f8; font-size: 10px; }
.assistant-mode-tabs span.active { color: #247ccc; background: var(--sales-blue-soft); font-weight: 760; }
.assistant-reply-panel { padding: 15px 16px; border: 1px solid #cfe7dc; border-radius: 16px; background: linear-gradient(145deg,#f2fbf7,#fff); }
.assistant-reply-panel > small { color: #19845f; font-weight: 780; }.assistant-reply-panel p { margin: 8px 0 0; color: #1f2f2a; line-height: 1.85; white-space: pre-wrap; }
.assistant-reply-panel[data-assistant-output-kind="internal"],.assistant-reply-panel[data-assistant-output-kind="system"],.assistant-reply-panel[data-assistant-output-kind="incomplete"],.assistant-reply-panel[data-assistant-output-kind="unverified"] { border-color: #dfe6ef; background: linear-gradient(145deg,#f7f9fc,#fff); }
.assistant-reply-panel[data-assistant-output-kind="internal"] > small,.assistant-reply-panel[data-assistant-output-kind="system"] > small,.assistant-reply-panel[data-assistant-output-kind="incomplete"] > small,.assistant-reply-panel[data-assistant-output-kind="unverified"] > small { color: #66758a; }
.assistant-internal-note { margin-top: 10px; padding: 10px 13px; border: 1px solid #e5e9ef; border-radius: 12px; color: #687487; background: #fafbfd; }
.assistant-internal-note summary { cursor: pointer; color: #66758a; font-size: 11px; font-weight: 720; }
.assistant-internal-note p { margin: 8px 0 0; line-height: 1.7; white-space: pre-wrap; }
.assistant-turn-actions { margin-top: 12px; }.assistant-turn-actions button { border-color: #dbe7f3; border-radius: 11px; background: #f6faff; }
.assistant-attachment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.assistant-attachment { min-width: 0; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 2px 9px; padding: 9px 10px; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; background: rgba(255,255,255,.12); }
.assistant-attachment i { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.18); font-style: normal; font-weight: 800; }.assistant-attachment b,.assistant-attachment small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.assistant-attachment small { color: rgba(255,255,255,.78); }
.assistant-image-preview { grid-column: 1 / -1; width: min(100%,430px); min-height: 120px; position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; background: rgba(255,255,255,.12); }
.assistant-image-preview img { width: 100%; max-height: 330px; display: block; object-fit: contain; opacity: 0; transition: opacity .16s ease; }
.assistant-image-preview.loaded { min-height: 0; background: transparent; }.assistant-image-preview.loaded img { opacity: 1; }
.assistant-image-state { min-height: 120px; display: grid; place-items: center; padding: 18px; color: rgba(255,255,255,.82); font-size: 11px; }
.assistant-image-preview.unavailable { min-height: 76px; }.assistant-image-preview.unavailable .assistant-image-state { min-height: 76px; }
body[data-active-view="assistant"] .composer { max-width: 940px; margin: 0 auto 18px; border: 1px solid #dbe4ee; border-radius: 21px; background: #fff; box-shadow: 0 16px 38px rgba(36,60,89,.10); }

/* 我的客户：保留表格与权限契约，视觉上转为人物卡片流 */
#customersView .customer-experience-hero,#propertiesView .property-experience-hero,#casesView .case-experience-hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 148px; margin: 0 0 16px; padding: 28px 32px; overflow: hidden; border: 1px solid #dceaf8; border-radius: 24px;
  background: radial-gradient(circle at 92% 12%,rgba(86,158,239,.20),transparent 35%),linear-gradient(135deg,#eaf5ff,#fff 58%,#f2efff);
}
#customersView .customer-experience-hero span,#propertiesView .property-experience-hero span,#casesView .case-experience-hero span { color: #2a82cf; font-size: 11px; font-weight: 780; }
#customersView .customer-experience-hero h2,#propertiesView .property-experience-hero h2,#casesView .case-experience-hero h2 { margin: 8px 0 6px; color: var(--sales-ink); font-size: clamp(24px,2.5vw,34px); letter-spacing: -.04em; }
#customersView .customer-experience-hero p,#propertiesView .property-experience-hero p,#casesView .case-experience-hero p { margin: 0; color: var(--sales-muted); }
#customerHeroDefinitions { flex: 0 0 auto; padding: 10px 15px; color: #277bc8; border: 1px solid #cfe4f7; border-radius: 13px; background: rgba(255,255,255,.8); cursor: pointer; }
#customersView .customer-table-panel { min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
#customersView .customer-toolbar { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--sales-line); border-radius: 18px; background: #fff; }
#customersView .table-wrap { overflow: visible; }
#customersView table,#customersView #customerRows { display: block; width: 100%; }
#customersView thead { display: none; }
#customersView #customerRows { display: grid; gap: 12px; }
#customersView .customer-card { width: 100%; display: grid; grid-template-columns: 64px minmax(180px,1.45fr) auto auto minmax(100px,.7fr) minmax(130px,.85fr) 70px minmax(112px,.72fr); align-items: center; gap: 14px; padding: 17px 18px; border: 1px solid var(--sales-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(38,64,94,.06); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
#customersView .customer-card:hover,#customersView .customer-card:focus-visible { transform: translateY(-2px); border-color: #abd1f6; background: #fff; box-shadow: 0 18px 38px rgba(45,92,139,.10); outline: none; }
#customersView .customer-card td { display: grid; gap: 4px; padding: 0; border: 0; }
#customersView .customer-card td > small { color: var(--sales-muted); font-size: 9px; }
.customer-card-id { justify-items: center; }.customer-card-avatar { width: 48px; height: 48px; display: grid; place-items: center; color: #277dca; border-radius: 17px; background: linear-gradient(145deg,#e0f1ff,#eef0ff); font-size: 17px; font-weight: 820; }.customer-card-main b { color: var(--sales-ink); font-size: 14px; }.customer-card-main small { color: #6d7c90; }.customer-card-status { justify-items: start; }.customer-card-owner b,.customer-card-updated b,.customer-card-count button,.customer-card-probability b { color: #344258; font-size: 11px; }.customer-card-probability { position: relative; }.customer-card-probability i { position: absolute; right: 0; top: 50%; color: #6fa7dd; font-size: 20px; font-style: normal; transform: translateY(-50%); }
#customersView #customerRows > tr:not(.customer-card) { display: block; padding: 30px; border: 1px solid var(--sales-line); border-radius: 18px; background: #fff; }
#customersView #customerRows > tr:not(.customer-card) td { display: block; border: 0; }
#customersView .customer-detail-drawer { width: min(980px,calc(100vw - 50px)); background: var(--sales-canvas); }
#customersView .customer-detail-content { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(310px,.8fr); align-content: start; gap: 14px; }
#customersView .customer-detail-content > section { margin: 0; border-radius: 18px; }
#customersView .customer-detail-content > section:nth-child(1),#customersView .customer-detail-content > section:nth-child(2) { grid-column: 2; }
#customersView .customer-detail-content > section:nth-child(3) { grid-column: 1; grid-row: 1 / span 3; }
#customersView .customer-detail-content > section:nth-child(4) { grid-column: 1 / -1; }

/* 房源：受权限保护的图片首屏直显，卡片内保留真实字段 */
#propertiesView .property-experience-hero { background: radial-gradient(circle at 90% 12%,rgba(95,191,171,.20),transparent 35%),linear-gradient(135deg,#eef8ff,#fff 55%,#eefaf5); }
.property-hero-art { position: relative; width: 190px; height: 88px; flex: 0 0 190px; }
.property-hero-art i { position: absolute; bottom: 0; width: 84px; height: 66px; border: 5px solid rgba(255,255,255,.86); border-radius: 18px; background: linear-gradient(145deg,#b5dcf6,#d9edf9 48%,#8eb397 49%,#a8c3a7); box-shadow: 0 14px 24px rgba(56,94,120,.14); }
.property-hero-art i:nth-child(1) { left: 0; transform: rotate(-8deg); }.property-hero-art i:nth-child(2) { left: 53px; z-index: 2; height: 78px; }.property-hero-art i:nth-child(3) { right: 0; transform: rotate(8deg); }
#propertiesView .feature-table-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
#propertiesView .property-toolbar { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--sales-line); border-radius: 18px; background: #fff; }
#propertiesView .table-wrap { overflow: visible; }
#propertiesView table,#propertiesView #propertyRows { display: block; width: 100%; }
#propertiesView thead { display: none; }
#propertiesView #propertyRows { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
#propertiesView .property-card { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; grid-template-areas: "main main main" "location room price" "commute stock assets" "actions actions actions"; gap: 12px; padding: 14px; border: 1px solid var(--sales-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(40,66,95,.07); }
#propertiesView .property-card td { min-width: 0; display: grid; align-content: start; gap: 4px; padding: 0; border: 0; }
#propertiesView .property-card td > small { color: var(--sales-muted); font-size: 9px; }
.property-card-main { grid-area: main; grid-template-columns: 148px minmax(0,1fr); align-items: center; gap: 14px; }.property-card-main > div { min-width: 0; display: grid; gap: 5px; }.property-card-main b { overflow: hidden; color: var(--sales-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }.property-card-main small { color: var(--sales-muted); }.property-card-location { grid-area: location; }.property-card-room { grid-area: room; }.property-card-price { grid-area: price; }.property-card-commute { grid-area: commute; }.property-card-stock { grid-area: stock; }.property-card-assets { grid-area: assets; }.property-card-actions { grid-area: actions; display: flex !important; justify-content: flex-end; flex-wrap: wrap; padding-top: 10px !important; border-top: 1px solid var(--sales-line) !important; }
.property-card-location b,.property-card-room b,.property-card-commute b,.property-card-assets b { color: #344258; font-size: 11px; }.property-card-location span { color: #69778a; font-size: 10px; }.property-card-price b { color: #1f78c7; font-size: 18px; }
.property-card-media { position: relative; min-height: 104px; margin: 0; overflow: hidden; border-radius: 17px; background: linear-gradient(145deg,#d9ecfa,#edf5fb); }
.property-card-media:before { content: ""; position: absolute; inset: 17px 19px; border-radius: 12px; background: linear-gradient(180deg,#b9ddf4 0 46%,#83aa8b 47% 58%,#c8a984 59%); opacity: .7; }
.property-card-media img { position: relative; z-index: 1; width: 100%; height: 104px; display: block; object-fit: cover; opacity: 0; transition: opacity .2s ease; }.property-card-media.loaded img { opacity: 1; }.property-card-media > span { position: relative; z-index: 1; height: 104px; display: grid; place-items: center; color: #70859b; font-size: 10px; }.property-card-media em { position: absolute; z-index: 2; left: 9px; top: 9px; padding: 5px 8px; color: #fff; border-radius: 999px; background: rgba(22,51,73,.66); font-size: 9px; font-style: normal; backdrop-filter: blur(7px); }
#propertiesView #propertyRows > tr:not(.property-card) { grid-column: 1 / -1; display: block; padding: 30px; border: 1px solid var(--sales-line); border-radius: 18px; background: #fff; }
#propertiesView #propertyRows > tr:not(.property-card) td { display: block; border: 0; }
.property-detail-gallery { margin-bottom: 14px; }.property-assets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.property-gallery-item { min-height: 120px; overflow: hidden; display: grid; grid-template-rows: 1fr auto; padding: 0 !important; border: 1px solid var(--sales-line) !important; border-radius: 15px !important; background: #f2f7fb !important; }.property-gallery-item img { width: 100%; height: 110px; object-fit: cover; opacity: 0; }.property-gallery-item.loaded img { opacity: 1; }.property-gallery-item span { padding: 8px; color: #317fc6; background: #fff; }
.property-customer-preview,.property-internal-panel { margin-top: 12px; padding: 16px; border-radius: 16px; }.property-customer-preview { border: 1px solid #d9eaf8; background: #f7fbff; }.property-internal-panel { border: 1px solid #f0dfb4; background: #fff9e9; }.property-customer-preview > header,.property-internal-panel > header { display: flex; justify-content: space-between; margin-bottom: 12px; }.property-customer-preview header span { color: #277fc8; }.property-internal-panel header span { color: #9b691c; }.property-customer-preview header small,.property-internal-panel header small { color: var(--sales-muted); }

/* 我的复盘：减少后台表格感，保留全部真实统计与版本证据 */
#reviewsView .statistics-toolbar { padding: 15px 17px; border: 1px solid var(--sales-line); background: #fff; }
#reviewsView .review-status { padding: 12px 16px; border-radius: 15px; }
#reviewsView .statistics-cards > * { min-height: 116px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(42,70,103,.06); }
#reviewsView .daily-review-head { margin-top: 18px; padding: 19px 21px; border: 1px solid #dbeaf7; border-radius: 20px; }
#reviewsView .daily-review-card { padding: 20px; border: 1px solid var(--sales-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(40,66,95,.07); }
#reviewsView .daily-review-card > header h3 { color: var(--sales-ink); font-size: 16px; }
#reviewsView .daily-review-dimensions div { border: 0; border-radius: 13px; background: #f5f8fb; }
#reviewsView .daily-review-conclusions article { min-height: 84px; border: 0; border-radius: 15px; padding: 13px; }
#reviewsView .daily-review-card > footer { margin-top: 15px; padding-top: 13px; }

/* 学习案例：精选、贡献者和重点学习形成清晰动机 */
#casesView .case-experience-hero { background: radial-gradient(circle at 88% 18%,rgba(246,190,83,.25),transparent 35%),linear-gradient(135deg,#eef6ff,#fff 52%,#fff7df); }
#casesView .case-experience-hero > strong { flex: 0 0 auto; padding: 11px 15px; color: #8a6119; border: 1px solid #f0d9a2; border-radius: 14px; background: rgba(255,255,255,.78); }
#casesView .case-toolbar { border: 1px solid var(--sales-line); border-radius: 18px; background: #fff; }
#casesView .case-layout { grid-template-columns: minmax(320px,.84fr) minmax(520px,1.5fr); gap: 16px; }
#casesView .case-list,#casesView .case-detail { border: 1px solid var(--sales-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(39,65,96,.07); }
#casesView .case-row { position: relative; padding: 17px; border-bottom: 1px solid var(--sales-line); background: #fff; }
#casesView .case-row--featured { margin: 10px; width: calc(100% - 20px); border: 1px solid #bcdaf5; border-radius: 18px; background: linear-gradient(145deg,#edf7ff,#fff 65%,#fff8e7); box-shadow: 0 12px 28px rgba(42,88,133,.09); }
#casesView .case-row-copy { display: grid; gap: 5px; }.case-contributor { display: flex !important; align-items: center; gap: 8px; margin-top: 7px; }.case-contributor > i { width: 30px; height: 30px; display: grid; place-items: center; color: #2b7ec7; border-radius: 10px; background: var(--sales-blue-soft); font-style: normal; font-weight: 800; }.case-contributor > span strong { color: #536176; font-size: 10px; }.case-contributor > span small { margin: 2px 0 0 !important; }.case-value-score { min-width: 48px !important; height: 48px !important; border-radius: 16px !important; }
.case-contributor-hero { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 15px !important; border: 1px solid #d9e9f7; border-radius: 17px; background: linear-gradient(145deg,#f3f9ff,#fff); }.case-contributor-hero > span { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: #267dc9; border-radius: 16px; background: var(--sales-blue-soft); font-size: 17px; font-weight: 820; }.case-contributor-hero div { display: grid; gap: 3px; }.case-contributor-hero small { color: var(--sales-muted); }.case-contributor-hero strong { color: var(--sales-ink); font-size: 14px; }.case-contributor-hero p { margin: 0; color: #69778a; font-size: 10px; }
#casesView .case-learning { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.case-learning-highlight { border: 1px solid #f0d18a !important; background: linear-gradient(145deg,#fff3c9,#fff9e9) !important; box-shadow: inset 0 0 0 1px rgba(242,193,76,.12); }.case-learning-highlight > b { color: #8b6013; }
#casesView .case-conversation { padding: 16px; border-radius: 18px; background: #f7f9fc; }.case-conversation .case-chat { max-width: 82%; border: 0; border-radius: 17px 17px 17px 5px; background: #fff; box-shadow: 0 8px 20px rgba(43,65,92,.06); }.case-conversation .case-chat.sales,.case-conversation .case-chat.employee,.case-conversation .case-chat.agent { align-self: flex-end; color: #fff; border-radius: 17px 17px 5px 17px; background: linear-gradient(135deg,#3b99ef,#317bd0); }.case-conversation .case-chat.sales header,.case-conversation .case-chat.employee header,.case-conversation .case-chat.agent header { color: rgba(255,255,255,.76); }.case-conversation .case-chat.sales header b,.case-conversation .case-chat.employee header b,.case-conversation .case-chat.agent header b { color: #fff; }

@media (max-width: 1180px) {
  #customersView .customer-card { grid-template-columns: 58px minmax(160px,1.4fr) auto auto minmax(110px,.8fr); }
  #customersView .customer-card-owner,#customersView .customer-card-count,#customersView .customer-card-identity { display: none; }
  #propertiesView #propertyRows { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }.login-story { display: none; }.login-card { border-left: 0; }
  .assistant-quick-grid { grid-template-columns: 1fr; }.assistant-quick-card { min-height: 92px; }
  #customersView .customer-card { grid-template-columns: 52px minmax(150px,1fr) auto; }.customer-card-status,.customer-card-updated { display: none !important; }
  #customersView .customer-detail-content { grid-template-columns: 1fr; }.customer-detail-content > section { grid-column: 1 !important; grid-row: auto !important; }
  #casesView .case-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .login-card { padding: 34px 24px; }.login-brand { margin-bottom: 46px; }.login-heading h1 { font-size: 34px; }
  .assistant-empty-hero { grid-template-columns: 1fr; padding: 24px; }.assistant-empty-mark { width: 54px; height: 54px; border-radius: 18px; }
  #customersView .customer-experience-hero,#propertiesView .property-experience-hero,#casesView .case-experience-hero { align-items: flex-start; flex-direction: column; padding: 23px; }.property-hero-art { display: none; }
  #customersView .customer-toolbar > div,#propertiesView .property-toolbar > div { align-items: stretch; flex-direction: column; }.table-search { width: 100%; }
  #customersView .customer-card { grid-template-columns: 48px minmax(0,1fr); }.customer-card-probability { grid-column: 2; }.customer-card-room,.customer-card-location { display: none !important; }
  .property-card-main { grid-template-columns: 112px minmax(0,1fr); }.property-card-media,.property-card-media img,.property-card-media > span { min-height: 88px; height: 88px; }
  .property-assets { grid-template-columns: 1fr 1fr; }
  #casesView .case-learning { grid-template-columns: 1fr; }
}

/* 审计中心：修正旧版面板与新版 C 端外壳混排造成的比例失衡。 */
#auditCenterView {
  width: min(1360px,100%);
  margin: 0 auto;
  gap: 0;
}
#auditCenterView > .audit-center-heading,
#auditCenterView > .audit-center-toolbar,
#auditCenterView > #auditExportPanel,
#auditCenterView > .audit-center-layout { flex: none; }
#auditCenterView .audit-center-heading { margin-bottom: 18px; }
#auditCenterView .audit-center-toolbar {
  margin: 0 0 16px;
  padding: 18px 20px;
  border-color: var(--sales-line,var(--line));
  border-radius: 20px;
  box-shadow: none;
}
#auditCenterView .audit-center-toolbar form {
  display: grid;
  grid-template-columns: minmax(220px,1.45fr) repeat(2,minmax(118px,.72fr)) repeat(2,minmax(142px,.82fr)) minmax(150px,.92fr) auto auto;
  gap: 11px;
  align-items: end;
}
#auditCenterView .audit-center-toolbar label {
  gap: 7px;
  color: #788491;
  font-size: 10px;
  font-weight: 680;
}
#auditCenterView .audit-center-toolbar input,
#auditCenterView .audit-center-toolbar select,
#auditCenterView .audit-center-toolbar button,
#auditCenterView .audit-center-pagination button {
  min-width: 0;
  height: 40px;
  border-color: #dce4ea;
  border-radius: 11px;
}
#auditCenterView .audit-center-toolbar button { padding-inline: 14px; }
#auditCenterView .audit-center-toolbar form > button { min-width: 72px; white-space: nowrap; }
#auditCenterView .audit-center-toolbar button[type="submit"] {
  border-color: transparent;
  background: linear-gradient(135deg,#399cf3,#2d7fce);
  box-shadow: 0 9px 20px rgba(45,127,206,.16);
}
#auditCenterView .audit-center-pagination { margin-top: 12px; font-size: 10px; }

#auditExportPanel {
  margin: 0 0 16px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr);
  grid-template-areas:
    "title prepare"
    "impact challenge"
    "backup phrase"
    "rollback confirm"
    "status status";
  gap: 10px 20px;
  overflow: hidden;
  border-color: #eadfc9;
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% -18%,rgba(245,194,96,.18),transparent 15rem),
    linear-gradient(125deg,#fffdf9,#fff 56%,#f7fbff);
  box-shadow: none;
}
#auditExportPanel[hidden] { display: none !important; }
#auditExportPanel > h2 {
  grid-area: title;
  align-self: center;
  margin: 0;
  color: #253241;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.02em;
}
#auditExportPanel > h2:before {
  content: "需确认";
  display: inline-flex;
  min-height: 25px;
  margin-right: 9px;
  padding: 0 9px;
  align-items: center;
  vertical-align: 2px;
  border-radius: 999px;
  color: #9a6719;
  background: #fff1cf;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .02em;
}
#auditExportPanel > p:nth-of-type(1) { grid-area: impact; }
#auditExportPanel > p:nth-of-type(2) { grid-area: backup; }
#auditExportPanel > p:nth-of-type(3) { grid-area: rollback; }
#auditExportPanel > p:nth-of-type(-n+3) {
  min-height: 42px;
  margin: 0;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(226,231,235,.9);
  border-radius: 12px;
  color: #61707d;
  background: rgba(255,255,255,.78);
  font-size: 10px;
  line-height: 1.65;
}
#prepareAuditExport,
#confirmAuditExport {
  width: 100%;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #d8e3eb;
  border-radius: 12px;
  font-weight: 740;
  cursor: pointer;
}
#prepareAuditExport {
  grid-area: prepare;
  color: #277fc6;
  background: #f1f8fe;
}
#prepareAuditExport:hover { border-color: #b9d9f2; background: #eaf6ff; }
#auditExportChallenge {
  grid-area: challenge;
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  color: #875c1c;
  background: #fff4d9;
  font-size: 10px;
  line-height: 1.6;
}
#auditExportChallenge:empty,
#auditExportStatus:empty { display: none; }
#auditExportPanel > label {
  grid-area: phrase;
  display: grid;
  gap: 7px;
  color: #667380;
  font-size: 10px;
  font-weight: 680;
}
#auditExportPhrase {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dce4ea;
  border-radius: 12px;
  background: #fff;
}
#auditExportPhrase:disabled { color: #9aa3ac; background: #f4f6f8; }
#confirmAuditExport {
  grid-area: confirm;
  align-self: end;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg,#d58a37,#b96b2f);
  box-shadow: 0 9px 20px rgba(185,107,47,.17);
}
#prepareAuditExport:disabled,
#confirmAuditExport:disabled {
  cursor: default;
  color: #9aa3ac;
  border-color: #e4e8eb;
  background: #eef1f3;
  box-shadow: none;
}
#auditExportStatus {
  grid-area: status;
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 11px;
  color: #566575;
  background: #eef6fc;
  font-size: 10px;
}
#auditCenterView .audit-center-layout {
  grid-template-columns: minmax(330px,.82fr) minmax(460px,1.18fr);
  gap: 16px;
  padding: 0;
  min-height: 520px;
  height: clamp(520px,68vh,720px);
  align-items: stretch;
}
#auditCenterView .audit-center-layout > .panel {
  padding: 12px;
  min-height: 0;
  height: 100%;
  overflow: auto;
  scrollbar-gutter: stable;
  border-color: var(--sales-line,var(--line));
  border-radius: 20px;
  box-shadow: none;
}
#auditCenterDetail > p:only-child {
  min-height: 100%;
  margin: 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #d8e5ee;
  border-radius: 14px;
  color: #7d8995;
  background: linear-gradient(145deg,#fbfdff,#f6f9fb);
  text-align: center;
  font-size: 11px;
  line-height: 1.75;
}
#auditCenterDetail > p:only-child:before {
  content: "◎";
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #2e84c8;
  background: #e9f5fd;
  font-size: 23px;
}
#auditCenterDetail:empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #7d8995;
  background: linear-gradient(145deg,#fff,#f7fafc);
  text-align: center;
}
#auditCenterDetail:empty:before {
  content: "◎";
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: #2e84c8;
  background: #e9f5fd;
  font-size: 24px;
}
#auditCenterDetail:empty:after {
  content: "选择左侧一条记录，查看操作详情与前后差异";
  max-width: 260px;
  font-size: 11px;
  line-height: 1.75;
}
#auditCenterView .audit-center-row {
  padding: 13px 12px;
  border-radius: 12px;
  transition: background .18s ease,transform .18s ease;
}
#auditCenterView .audit-center-row:hover,
#auditCenterView .audit-center-row:focus-visible {
  background: #f2f8fd;
  transform: translateX(2px);
}
#auditCenterDetail > label {
  display: block;
  margin-top: 12px;
  color: #667380;
  font-size: 10px;
  font-weight: 700;
}
#auditCenterDetail textarea[data-audit-anomaly-reason] {
  width: 100%;
  min-height: 94px;
  margin: 7px 0 10px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid #dce4ea;
  border-radius: 12px;
  color: #344252;
  background: #fff;
}
#auditCenterDetail button[data-audit-anomaly-action] {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #efd6a9;
  border-radius: 11px;
  color: #93601a;
  background: #fff5df;
  font-weight: 740;
  cursor: pointer;
}
#auditCenterDetail button[data-audit-anomaly-action]:disabled { cursor: wait; opacity: .56; }

@media (max-width: 1350px) {
  #auditCenterView .audit-center-toolbar form { grid-template-columns: repeat(6,minmax(0,1fr)); }
  #auditCenterView .audit-center-toolbar label:first-child { grid-column: span 2; }
  #auditCenterView .audit-center-toolbar label:nth-child(6) { grid-column: span 2; }
  #auditCenterView .audit-center-layout { grid-template-columns: minmax(300px,.78fr) minmax(420px,1.22fr); }
}
@media (max-width: 900px) {
  #auditCenterView .audit-center-toolbar form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #auditCenterView .audit-center-toolbar label:first-child,
  #auditCenterView .audit-center-toolbar label:nth-child(6) { grid-column: span 2; }
  #auditExportPanel {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "title" "impact" "backup" "rollback" "prepare" "challenge" "phrase" "confirm" "status";
  }
  #auditCenterView .audit-center-layout {
    grid-template-columns: minmax(0,1fr);
    min-height: 0;
    height: auto;
  }
  #auditCenterView .audit-center-layout > .panel { height: auto; }
  #auditCenterList { max-height: 520px; }
  #auditCenterDetail { min-height: 360px; max-height: 620px; }
  #auditCenterDetail > p:only-child { min-height: 334px; }
}
@media (max-width: 640px) {
  #auditCenterView .audit-center-toolbar { padding: 15px; }
  #auditCenterView .audit-center-toolbar form { grid-template-columns: minmax(0,1fr); }
  #auditCenterView .audit-center-toolbar label:first-child,
  #auditCenterView .audit-center-toolbar label:nth-child(6) { grid-column: auto; }
  #auditCenterView .audit-center-pagination { justify-content: center; }
  #auditExportPanel { padding: 18px; }
  #auditExportPanel > h2 { font-size: 16px; }
  #auditCenterList { max-height: 430px; }
  #auditCenterDetail { min-height: 320px; max-height: 520px; }
  #auditCenterDetail > p:only-child { min-height: 294px; padding: 24px; }
}

/* GPT-like image thumbnails before send; filenames stay hidden for images. */
body[data-active-view="assistant"] .composer-attachments{max-height:132px;align-items:center;gap:9px;padding:2px 4px 10px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}
body[data-active-view="assistant"] .composer-attachments .composer-image-preview{width:104px;height:104px;flex-basis:104px;border-color:#dce4ec;border-radius:16px;background:linear-gradient(145deg,#f4f7fa,#fff);box-shadow:0 5px 16px rgba(38,62,91,.08)}
body[data-active-view="assistant"] .composer-attachments .composer-file-chip{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){body[data-active-view="assistant"] .composer-attachments .composer-image-preview{width:82px;height:82px;flex-basis:82px}}
