﻿:root {
  color-scheme: light;
  --bg: #f4f8fc;
  --panel: #ffffff;
  --ink: #142438;
  --muted: #5a6b7c;
  --line: #dce6f0;
  --teal: #1e6fd9;
  --teal-deep: #1557b0;
  --teal-soft: #e3effb;
  --rust: #c96f3a;
  --green: #2f6fd9;
  --yellow: #e8a13c;
  --accent: #e8a13c;
  --accent-deep: #d98a24;
  --shadow: 0 18px 44px rgba(22, 52, 92, 0.10);
  --shadow-soft: 0 6px 18px rgba(22, 52, 92, 0.06);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
}

.topbar h1,
.hero-panel h2,
.panel h2,
.section-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 700;
}

.tenant-switcher {
  display: grid;
  gap: 6px;
  min-width: 280px;
}

.switcher-row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tenant-switcher label {
  color: var(--muted);
  font-size: 13px;
}

select,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.context-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 32px;
}

.context-bar div,
.detail-grid div,
.meta-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.context-bar strong,
.detail-grid strong,
.meta-grid strong {
  display: block;
  font-size: 14px;
}

.context-bar span,
.detail-grid span,
.meta-grid span {
  color: var(--muted);
  font-size: 12px;
}

.notice {
  margin: 0 32px 16px;
  border: 1px solid #e6c16f;
  border-radius: 8px;
  background: #fff8e5;
  padding: 10px 12px;
}

.nav {
  display: flex;
  gap: 8px;
  padding: 0 32px 18px;
  flex-wrap: wrap;
}

.nav-button,
.secondary,
.primary,
.card-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 10px 14px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-button.active,
.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.layout {
  padding: 0 32px 40px;
}

.chat-layout {
  padding: 0;
  min-height: 100vh;
  background: #fff;
}

.hero-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.hero-panel p,
.panel p {
  color: var(--muted);
  line-height: 1.7;
}

.rules,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.rules span,
.tag-row span {
  border-radius: 999px;
  background: #f0eee7;
  color: #4d5963;
  padding: 6px 10px;
  font-size: 12px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 14px;
}

.section-header.compact {
  margin-top: 0;
}

.secondary-hero {
  margin-top: 18px;
}

.view-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  margin: 0 32px 18px;
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.view-preview strong {
  display: block;
  font-size: 22px;
}

.view-preview span {
  color: var(--muted);
}

.view-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.view-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 12px 16px;
  font-size: 16px;
}

.view-button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.perspective-panel {
  margin-bottom: 18px;
  border-width: 2px;
}

.perspective-admin {
  border-color: var(--teal);
}

.perspective-agent {
  border-color: #b85f38;
}

.perspective-store {
  border-color: var(--green);
}

.admin-home {
  display: grid;
  gap: 22px;
}

.admin-home-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.admin-home-head h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.admin-home-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.admin-agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.simple-agent-card {
  display: grid;
  gap: 12px;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
  cursor: pointer;
}

.simple-agent-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(36, 107, 104, 0.14);
}

.simple-agent-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.simple-agent-card p {
  margin: 0;
  color: var(--muted);
}

.quiet-details,
.agent-quiet-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 16px;
}

.quiet-details summary,
.agent-quiet-details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.perspective-panel h2 {
  font-size: 30px;
  line-height: 1.25;
}

.scope-note {
  font-size: 17px;
}

.summary-grid,
.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.summary-grid div,
.scope-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 16px;
}

.summary-grid strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.summary-grid span,
.scope-grid p,
.permission-line {
  color: var(--muted);
}

.scope-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scope-grid h3 {
  margin: 0 0 8px;
}

.scope-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.admin-workbench {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
  margin: 18px 0;
}

.workbench-block,
.version-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 18px;
}

.workbench-block h3,
.version-board h3 {
  margin: 0;
  font-size: 20px;
}

.capability-grid,
.published-versions,
.agent-dashboard,
.daily-board {
  display: grid;
  gap: 12px;
}

.admin-capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-card,
.published-versions article,
.agent-dashboard article,
.daily-board article,
.pipeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.capability-card {
  display: grid;
  gap: 12px;
}

.clickable-agent-card {
  cursor: pointer;
}

.clickable-agent-card:hover,
.service-employee-card:hover,
.employee-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(36, 107, 104, 0.14);
}

.capability-card h4 {
  margin: 0 0 4px;
  font-size: 20px;
}

.capability-card p {
  margin: 0;
  font-size: 13px;
}

.version-line {
  border-left: 3px solid var(--teal);
  background: #eaf2fc;
  border-radius: 8px;
  padding: 10px 12px;
}

.version-line strong,
.published-versions strong {
  display: block;
}

.version-line span,
.published-versions span {
  color: var(--muted);
  font-size: 13px;
}

.capability-card ul,
.agent-dashboard ul,
.daily-board ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.75;
}

.pipeline {
  display: grid;
  gap: 10px;
}

.pipeline article {
  position: relative;
  border-left: 4px solid var(--rust);
}

.pipeline strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.pipeline span {
  color: var(--muted);
  line-height: 1.6;
}

.agent-dashboard {
  grid-template-columns: 1fr 1.15fr 0.85fr;
  margin: 18px 0;
}

.daily-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.published-versions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.published-versions.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.published-versions p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.compact-version-board {
  background: #f8faf8;
}

.locked-scope {
  opacity: 0.72;
  background: #f3f1ec !important;
}

.permission-line {
  border-left: 4px solid var(--teal);
  background: #f8faf8;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.employee-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
  cursor: pointer;
  text-align: left;
}

.employee-card:hover {
  border-color: var(--teal);
}

.card-top,
.employee-home-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-top h3,
.employee-home-head h2 {
  margin: 0 0 4px;
}

.card-top p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.avatar-top-left {
  background-image: url("../assets/avatars/director.jpg");
  border-color: rgba(79, 110, 247, 0.35);
}

.avatar-top-right {
  background-image: url("../assets/avatars/buyer.jpg");
  border-color: rgba(245, 158, 11, 0.35);
}

.avatar-bottom-left {
  background-image: url("../assets/avatars/starter.jpg");
  border-color: rgba(16, 185, 129, 0.35);
}

.avatar-bottom-right {
  background-image: url("../assets/avatars/researcher.jpg");
  border-color: rgba(236, 72, 153, 0.35);
}

.meta-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.task-line,
.note {
  border-left: 3px solid var(--yellow);
  background: #fffaf0;
  padding: 10px 12px;
  color: #5d4a20;
}

.card-action {
  width: 100%;
  background: #f8faf8;
}

.two-column,
.load-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.list-item.static {
  cursor: default;
}

.highlight-item {
  border-color: #e6c16f;
  background: #fffaf0;
}

.list-item span:last-child {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.feed-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.feed-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.wide-field {
  grid-column: span 3;
}

.feed-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.candidate-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.candidate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.candidate-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.candidate-head h3 {
  margin: 0;
}

.candidate-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.candidate-meta span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 10px 12px;
  color: var(--muted);
}

.candidate-meta strong {
  display: block;
  color: var(--ink);
}

.status-pill {
  border-radius: 999px;
  background: #f0eee7;
  padding: 6px 10px;
  color: #4d5963;
  white-space: nowrap;
}

.employee-workroom {
  display: grid;
  gap: 18px;
}

.employee-version-line {
  margin: 0;
}

.employee-chat-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 18px;
}

.employee-chat-box h3 {
  margin-top: 0;
}

.employee-chat-box textarea {
  min-height: 150px;
  font-size: 17px;
  margin: 8px 0 12px;
}

.agent-chat-shell {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.agent-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
}

.agent-identity {
  display: flex;
  gap: 10px;
  align-items: center;
}

.agent-identity h2 {
  margin: 0 0 2px;
  font-size: 19px;
}

.agent-identity p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.agent-identity .avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  font-size: 16px;
}

.back-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 6px;
}

.agent-status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  min-width: 240px;
}

.agent-status-card strong,
.agent-status-card span {
  display: block;
}

.agent-status-card span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.agent-context-strip,
.agent-boundary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0 0;
}

.agent-context-strip div,
.agent-boundary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 12px;
}

.agent-boundary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-boundary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.agent-boundary p,
.agent-context-strip span {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.agent-context-strip strong,
.agent-context-strip span {
  display: block;
}

.agent-message-list {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 18px 18px 132px;
  background: #fff;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-message.from-admin {
  justify-content: flex-end;
}

.chat-message .avatar {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  font-size: 16px;
}

.bubble {
  max-width: min(720px, 78%);
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  padding: 10px 12px;
  box-shadow: none;
}

.from-admin .bubble {
  background: #d9f2d6;
}

.bubble span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.bubble p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.generated-bubble {
  max-width: min(860px, 84%);
}

.publish-confirm {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 0 18px 112px;
  border: 1px solid #d8bd79;
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
}

.publish-confirm strong,
.publish-confirm span {
  display: block;
}

.publish-confirm span {
  color: #5d4a20;
  margin-top: 4px;
}

.agent-composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  z-index: 4;
}

.plus-menu {
  position: absolute;
  left: 16px;
  bottom: 20px;
  z-index: 2;
}

.plus-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.plus-popover {
  display: none;
  position: absolute;
  left: 0;
  bottom: 50px;
  width: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px;
  gap: 10px;
}

.plus-menu.open .plus-popover {
  display: grid;
}

.plus-popover label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.plus-cancel {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.plus-cancel:hover {
  background: #f2f2f0;
  color: var(--ink);
}

.composer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf7;
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
}

.tool-chip input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tool-chip input:not([type="file"]) {
  width: 180px;
  border: 0;
  background: transparent;
  padding: 0;
}

.file-receipt {
  border-left: 3px solid var(--teal);
  background: #eaf2fc;
  border-radius: 8px;
  padding: 10px 12px;
  color: #1557b0;
  margin-left: 54px;
}

.agent-composer textarea {
  min-height: 42px;
  max-height: 120px;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 8px;
}

.composer-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-left: 54px;
}

.composer-row textarea {
  flex: 1;
}

.send-button {
  min-width: 76px;
  height: 42px;
}

.agent-composer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.context-check,
.code-card {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfaf7;
}

.status-strip {
  border-radius: 8px;
  padding: 12px 14px;
  margin: 14px 0;
  font-weight: 700;
}

.status-strip.ready {
  background: #eaf2fc;
  border: 1px solid #c3d8f0;
  color: #1557b0;
}

.status-strip.warn {
  background: #fff8e5;
  border: 1px solid #e6c16f;
  color: #76531b;
}

.draft-form {
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: start;
}

.draft-form .wide {
  grid-column: span 1;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  line-height: 1.7;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.error-box {
  margin-top: 14px;
  border: 1px solid #e2a09a;
  border-radius: 8px;
  background: #fff1ef;
  color: #8a3027;
  padding: 12px 14px;
}

.result-box {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.result-box pre {
  white-space: pre-wrap;
  line-height: 1.8;
  border-radius: 8px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  padding: 16px;
  color: var(--ink);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--muted);
  padding: 16px;
}

.config-help {
  margin: 16px 0;
  border: 1px solid #e6c16f;
  border-radius: 8px;
  background: #fffaf0;
  padding: 16px;
}

.config-help h3 {
  margin-top: 0;
}

.config-help ol {
  line-height: 1.8;
  padding-left: 22px;
}

.path-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.path-row code {
  flex: 1 1 420px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.simple-flow > h2 {
  font-size: 32px;
  line-height: 1.25;
}

.simple-flow > p {
  font-size: 18px;
}

.flow-steps {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.flow-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.flow-step h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.flow-step p {
  margin: 0 0 8px;
  font-size: 18px;
}

.flow-step small {
  color: var(--muted);
  font-size: 15px;
}

.flow-step textarea {
  font-size: 18px;
  min-height: 160px;
  margin: 8px 0;
}

.big-action {
  font-size: 20px;
  padding: 15px 22px;
  min-width: 220px;
}

.sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.code-card {
  display: grid;
  gap: 8px;
}

.code-card code,
.mock-output {
  border-radius: 8px;
  background: #1f2933;
  color: #eef2f4;
  padding: 10px;
  overflow-x: auto;
}

.mock-output {
  white-space: pre-wrap;
  margin-top: 14px;
}

/* Director AI full chat app */
.director-chat-app {
  display: grid;
  grid-template-rows: 58px 1fr 166px;
  height: 100vh;
  width: 100%;
  background: #f7f7f7;
  overflow: hidden;
}

.director-contact-bar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid #eeeeee;
  background: #fff;
}

.director-contact-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.director-back {
  border: 0;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  padding: 8px 2px;
  font-size: 16px;
}

.director-contact-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
}

.director-contact-title {
  min-width: 0;
}

.director-contact-title h2 {
  margin: 0 0 2px;
  color: #101828;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.director-contact-title p {
  margin: 0;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
}

.director-contact-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.director-contact-actions button {
  border: 0;
  background: transparent;
  color: #333741;
  cursor: pointer;
  padding: 8px 5px;
  font-size: 13px;
}

.director-dialogue {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 26px 34px;
  background: #f7f7f7;
}

.director-time {
  width: max-content;
  margin: 0 auto 26px;
  color: #98a2b3;
  font-size: 14px;
}

.director-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
}

.director-message.from-admin {
  justify-content: flex-end;
}

.director-message-avatar,
.director-admin-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
}

.director-admin-avatar {
  display: grid;
  place-items: center;
  background: #f2e7d3;
  color: #664b25;
  font-size: 14px;
  font-weight: 700;
}

.director-bubble {
  max-width: min(560px, 72%);
  border-radius: 6px;
  background: #e9eaec;
  color: #111827;
  padding: 10px 13px;
  box-shadow: none;
}

.director-message.from-admin .director-bubble {
  background: #85ea98;
}

.director-bubble p {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
}

.director-bubble span {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.director-result-bubble,
.director-publish-bubble {
  background: #e9eaec;
}

.director-inline-action {
  margin-top: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  padding: 8px 14px;
}

.director-error {
  max-width: 560px;
  margin: 12px auto;
  border: 1px solid #efb2b2;
  border-radius: 8px;
  background: #fff3f3;
  color: #9f1f1f;
  padding: 10px 12px;
  text-align: center;
}

.director-composer {
  min-height: 166px;
  border-top: 1px solid #dedede;
  background: #fff;
  padding: 12px 10px 10px;
}

.director-file-receipt {
  width: min(100%, 980px);
  margin: 0 auto 6px;
  color: #667085;
  font-size: 13px;
}

.director-input-frame {
  width: min(100%, 980px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr 38px;
  gap: 8px;
}

.director-input-frame textarea {
  width: 100%;
  min-height: 76px;
  max-height: 92px;
  resize: none;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.55;
}

.director-input-frame textarea:focus {
  border-color: #12b76a;
  outline: 2px solid rgba(18, 183, 106, 0.12);
}

.director-input-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.director-plus {
  position: relative;
}

.director-tool,
.director-plus-button {
  border: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  padding: 5px 2px;
  font-size: 14px;
}

.director-plus-button {
  font-size: 24px;
  line-height: 1;
}

.director-plus-popover {
  left: 0;
  bottom: 34px;
}

.director-tool-spacer {
  flex: 1;
}

.director-send {
  min-width: 70px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: #eeeeee;
  color: #a3a3a3;
  cursor: pointer;
  padding: 0 16px;
}

.director-send:hover,
.director-send:focus {
  background: var(--teal);
  color: #fff;
}

/* WeChat-like employee chat surface */
.chat-layout {
  padding: 0;
  min-height: 100vh;
  background: #f7f7f7;
}

.chat-layout .agent-chat-shell {
  grid-template-rows: 58px 1fr auto;
  background: #f6f6f6;
}

.chat-layout .agent-chat-header {
  height: 58px;
  padding: 0 18px;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #ededed;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-layout .agent-identity h2 {
  font-size: 18px;
  font-weight: 500;
}

.chat-layout .agent-identity p {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.chat-layout .agent-identity .avatar,
.chat-layout .chat-message .avatar {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  font-size: 15px;
}

.chat-header-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.chat-header-actions button {
  border: 0;
  background: transparent;
  color: #3f3f46;
  cursor: pointer;
  font-size: 12px;
  padding: 8px 5px;
}

.chat-layout .agent-quiet-details {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
}

.chat-layout .agent-quiet-details[open] {
  left: 16px;
  right: 16px;
  top: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px;
}

.chat-layout .agent-message-list {
  gap: 16px;
  padding: 18px 28px 210px;
  background: #f6f6f6;
}

.chat-time {
  justify-self: center;
  color: #9ca3af;
  font-size: 14px;
  margin: 2px 0 10px;
}

.chat-layout .chat-message {
  align-items: flex-start;
  max-width: 100%;
}

.chat-layout .bubble {
  max-width: min(520px, 72%);
  border-radius: 6px;
  background: #e6eff8;
  padding: 10px 12px;
}

.chat-layout .from-admin .bubble {
  background: #eef0f3;
}

.chat-layout .bubble p {
  font-size: 15px;
  line-height: 1.6;
}

.chat-layout .bubble span {
  color: var(--muted);
}

.user-mini-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #2c5fb6;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.chat-layout .agent-composer {
  min-height: 164px;
  padding: 12px 12px 10px;
  border-top: 1px solid #e6e6e6;
  background: #fff;
}

.chat-layout .composer-row {
  display: block;
  padding-left: 0;
}

.chat-layout .agent-composer textarea {
  min-height: 78px;
  max-height: 100px;
  padding: 10px 12px;
  border-color: #d9d9d9;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  background: #fff;
  resize: none;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 36px;
}

.chat-layout .plus-menu {
  position: relative;
  left: auto;
  bottom: auto;
}

.composer-icon {
  border: 0;
  background: transparent;
  color: #52525b;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 2px;
}

.chat-layout .plus-button {
  width: auto;
  height: auto;
  border-radius: 0;
  border: 0;
  background: transparent;
  font-size: 22px;
}

.chat-layout .plus-popover {
  left: 0;
  bottom: 34px;
}

.toolbar-spacer {
  flex: 1;
}

.chat-layout .send-button {
  min-width: 70px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #f0f0f0;
  color: #a1a1aa;
  padding: 0 14px;
}

.chat-layout .send-button:hover {
  background: var(--teal);
  color: #fff;
}

.chat-layout .file-receipt {
  margin-left: 0;
}

@media (max-width: 760px) {
  .director-contact-bar {
    padding: 0 18px;
  }

  .director-contact-title p {
    max-width: 210px;
  }

  .director-contact-actions {
    gap: 2px;
  }

  .director-contact-actions button {
    padding-left: 3px;
    padding-right: 3px;
    font-size: 12px;
  }

  .director-dialogue {
    padding-left: 26px;
    padding-right: 26px;
  }

  .director-bubble {
    max-width: 72%;
  }

  .director-input-tools {
    gap: 12px;
  }

  .chat-layout .agent-chat-header {
    display: flex;
    grid-template-columns: none;
  }

  .chat-layout .agent-identity {
    min-width: 0;
    flex: 1;
  }

  .chat-layout .agent-identity p {
    max-width: 160px;
  }

  .chat-layout .back-button {
    padding-left: 0;
  }

  .chat-layout .agent-message-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  .chat-layout .bubble {
    max-width: 68%;
  }

  .chat-layout .agent-composer {
    padding-left: 10px;
    padding-right: 10px;
  }

  .chat-layout .composer-toolbar {
    gap: 11px;
  }
}

@media (max-width: 1100px) {
  .employee-grid,
  .context-bar,
  .admin-workbench,
  .agent-dashboard,
  .daily-board,
  .published-versions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  .hero-panel,
  .two-column,
  .load-grid,
  .switcher-row,
  .view-preview,
  .agent-chat-header,
  .publish-confirm {
    display: grid;
  }

  .context-bar,
  .employee-grid,
  .admin-agent-grid,
  .form-grid,
  .feed-form,
  .candidate-meta,
  .draft-form,
  .summary-grid,
  .scope-grid,
  .admin-workbench,
  .admin-capability-grid,
  .agent-dashboard,
  .daily-board,
  .published-versions,
  .published-versions.compact,
  .agent-context-strip,
  .agent-boundary {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: span 1;
  }

  .flow-step {
    grid-template-columns: 1fr;
  }

  .layout,
  .topbar,
  .context-bar,
  .nav {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Director AI Doubao-style two-column chat override */
.chat-layout .director-chat-app {
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 1fr;
  background: var(--bg);
}

.director-sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  border-right: 1px solid #e7e9ee;
  background: #fff;
  padding: 16px 12px;
}

.director-side-top {
  display: grid;
  gap: 10px;
}

.director-back,
.director-new-chat,
.director-history-head button {
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 14px;
}

.director-new-chat {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.director-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 2px 10px;
  color: #667085;
  font-size: 13px;
}

.director-history-head button {
  border: 0;
  padding: 4px 6px;
  color: #98a2b3;
}

.director-history-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  overflow-y: auto;
}

.director-history-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

.director-history-item.active,
.director-history-item:hover {
  background: #f2f4f7;
}

.director-history-item strong,
.director-history-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.director-history-item strong {
  font-size: 14px;
}

.director-history-item span,
.director-local-note span {
  color: #667085;
  font-size: 12px;
}

.director-local-note {
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: #f9fafb;
  padding: 10px 12px;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.director-main-chat {
  display: grid;
  grid-template-rows: 62px auto 1fr auto;
  min-width: 0;
  min-height: 0;
}

.director-main-chat .director-contact-bar {
  height: 62px;
  padding: 0 28px;
  border-bottom: 1px solid #e7e9ee;
}

.director-contact-title h2 {
  font-size: 20px;
  font-weight: 650;
}

.director-contact-title p {
  max-width: 420px;
  font-size: 13px;
}

.director-contact-actions {
  gap: 8px;
}

.director-contact-actions button {
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 7px 12px;
  font-size: 14px;
}

.director-material-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 28px;
  border-bottom: 1px solid #eef0f4;
  background: #fbfcfe;
}

.director-material-strip span {
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  padding: 5px 9px;
  font-size: 12px;
}

.director-main-chat .director-dialogue {
  padding: 28px max(32px, calc((100% - 860px) / 2)) 36px;
  background: #edf3f9;
}

.director-main-chat .director-message {
  margin-bottom: 22px;
}

.director-message-body {
  display: grid;
  gap: 6px;
  max-width: min(760px, 78%);
}

.director-message.from-admin .director-message-body {
  justify-items: end;
}

.director-message-meta {
  color: #98a2b3;
  font-size: 12px;
}

.director-main-chat .director-bubble {
  max-width: none;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.director-main-chat .director-message.from-admin .director-bubble {
  border-color: var(--line);
  background: #f8e8cf;
}

.director-bubble h3,
.director-bubble h4,
.director-bubble h5,
.director-bubble h6 {
  margin: 14px 0 8px;
  font-weight: 700;
  color: #1f2933;
  line-height: 1.4;
}
.director-bubble h3 { font-size: 17px; }
.director-bubble h4 { font-size: 16px; }
.director-bubble h5 { font-size: 15px; }
.director-bubble h6 { font-size: 14px; }
.director-bubble hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 14px 0;
}
.director-bubble strong {
  font-weight: 700;
  color: #1f2933;
}

.bubble .bubble-content h3,
.bubble .bubble-content h4,
.bubble .bubble-content h5,
.bubble .bubble-content h6 {
  margin: 12px 0 8px;
  font-weight: 700;
  color: #1f2933;
  line-height: 1.4;
}
.bubble .bubble-content h3 { font-size: 16px; }
.bubble .bubble-content h4 { font-size: 15px; }
.bubble .bubble-content h5 { font-size: 14px; }
.bubble .bubble-content h6 { font-size: 13px; }
.bubble .bubble-content hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 12px 0;
}
.bubble .bubble-content strong {
  font-weight: 700;
  color: #1f2933;
}
.bubble .bubble-content p {
  margin: 0 0 8px;
}
.bubble .bubble-content ul {
  margin: 0 0 8px;
  padding-left: 20px;
}
.bubble .bubble-content li {
  margin: 4px 0;
  line-height: 1.6;
}

.director-thinking {
  color: #667085;
}

.agent-thinking {
  color: #667085;
  animation: agent-thinking-pulse 1.2s ease-in-out infinite;
}

@keyframes agent-thinking-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.director-bubble p,
.director-bubble li {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.72;
}

.director-bubble p:last-child,
.director-bubble li:last-child {
  margin-bottom: 0;
}

.director-bubble ul {
  margin: 0;
  padding-left: 20px;
}

.director-main-chat .director-composer {
  min-height: 0;
  border-top: 1px solid #e7e9ee;
  padding: 14px 28px 18px;
}

.director-main-chat .director-file-receipt,
.director-main-chat .director-input-frame {
  width: min(100%, 860px);
}

.director-main-chat .director-input-frame {
  height: auto;
  grid-template-rows: auto auto auto;
  border: 1px solid #d9dde5;
  border-radius: 16px;
  padding: 12px;
}

.director-main-chat .director-input-frame textarea {
  min-height: 74px;
  max-height: 180px;
  border: 0;
  padding: 4px 2px;
}

.director-main-chat .director-input-frame textarea:focus {
  outline: 0;
}

.director-main-chat .director-input-tools {
  gap: 10px;
  flex-wrap: wrap;
}

.director-main-chat .director-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #f9fafb;
  color: #344054;
  padding: 7px 11px;
}

.director-tool input[type="file"] {
  display: none;
}

.director-tool input:not([type="file"]) {
  width: 150px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  outline: 0;
}

.director-main-chat .director-send {
  height: 36px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  padding: 0 18px;
}

.director-main-chat .director-send:hover,
.director-main-chat .director-send:focus {
  background: var(--teal-deep);
}

.director-hint-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #98a2b3;
  font-size: 12px;
}

@media (max-width: 860px) {
  .chat-layout .director-chat-app {
    grid-template-columns: 1fr;
  }

  .director-sidebar {
    display: none;
  }

  .director-main-chat .director-contact-bar,
  .director-material-strip,
  .director-main-chat .director-composer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .director-main-chat .director-dialogue {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===== C 端门店极简视图 · 浅色科技感 ===== */
.store-home {
  position: relative;
  overflow: hidden;
  overflow: clip;
  min-height: 100vh;
  background: linear-gradient(180deg, #f4f8fc 0%, #ecf3fb 46%, #f7fafd 100%);
}

.content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
  padding: 48px 0;
}

.bg-fluid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(30, 111, 217, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 111, 217, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 95% 78% at 50% 0%, #000 32%, transparent 80%);
  mask-image: radial-gradient(ellipse 95% 78% at 50% 0%, #000 32%, transparent 80%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: blob-float 20s var(--ease-out-quart) infinite;
}

.blob1 {
  width: 560px;
  height: 560px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(30, 111, 217, 0.20) 0%, transparent 68%);
}

.blob2 {
  width: 340px;
  height: 340px;
  bottom: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(232, 161, 60, 0.20) 0%, transparent 70%);
  animation-delay: 7s;
}

.blob3 {
  width: 420px;
  height: 420px;
  top: 30%;
  left: 52%;
  background: radial-gradient(circle, rgba(47, 111, 217, 0.14) 0%, transparent 70%);
  animation-delay: 12s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(46px, -40px) scale(1.08); }
  66%      { transform: translate(-34px, 32px) scale(0.93); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fade-in-up 0.7s cubic-bezier(.2,.7,.2,1) backwards; }
.delay-1    { animation-delay: 0.05s; }
.delay-2    { animation-delay: 0.18s; }
.delay-3    { animation-delay: 0.31s; }
.delay-4    { animation-delay: 0.44s; }

.store-main {
  display: grid;
  gap: 40px;
  justify-items: center;
  text-align: center;
  padding: 36px 12px;
}

.store-home-head {
  max-width: 640px;
}

.store-home-head .eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 95, 85, 0.22);
}

.store-home-head h2 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
}

.accent-word {
  color: var(--accent);
}

.store-home-head p {
  margin: 0;
  color: #5a6660;
  font-size: 16px;
  line-height: 1.8;
}

.store-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 780px;
}

.store-avatar-slot {
  display: grid;
  gap: 18px;
  justify-items: center;
  background: transparent;
  border: none;
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  color: var(--ink);
  border-radius: 16px;
  transition: background 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}

.store-avatar-slot:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-5px);
}

.store-avatar-dot {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: store-breathe 3s var(--ease-out-quart) infinite;
  transition: transform 0.45s var(--ease-out-quart);
}

.store-avatar-dot::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 161, 60, 0.30) 0%, rgba(232, 161, 60, 0) 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-quart);
}

.store-avatar-slot:hover .store-avatar-dot {
  animation: none;
  transform: scale(1.1);
}

.store-avatar-slot:hover .store-avatar-dot::before {
  opacity: 1;
}

.store-avatar-dot .avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1.5px solid rgba(30, 111, 217, 0.28);
  box-shadow: 0 12px 28px rgba(16, 40, 34, 0.12), inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.4s var(--ease-out-quart), border-color 0.4s var(--ease-out-quart);
}

.store-avatar-slot:hover .store-avatar-dot .avatar {
  border-color: rgba(232, 161, 60, 0.75);
  box-shadow: 0 16px 38px rgba(16, 40, 34, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

@keyframes store-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.store-avatar-text {
  display: grid;
  gap: 4px;
  transition: transform 0.3s var(--ease-out-quart);
}

.store-avatar-text strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.store-avatar-text em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 150px;
}

.store-avatar-slot:hover .store-avatar-text strong {
  color: var(--teal);
}

.store-task-panel {
  position: sticky;
  top: 140px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 3px 0 0 var(--accent);
  padding: 22px 22px 18px;
}

.store-task-head {
  border-bottom: 1px solid rgba(93,138,180,0.18);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.store-task-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.store-task-section {
  padding: 14px 0;
}

.store-task-section + .store-task-section {
  border-top: 1px solid rgba(93,138,180,0.14);
}

.store-task-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.store-task-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.store-task-section li {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(93,138,180,0.14);
  border-radius: 10px;
  background: rgba(251,250,247,0.8);
  padding: 10px 14px;
  transition: background 0.25s ease;
}

.store-task-section li:hover {
  background: rgba(234,242,252,0.9);
}

.store-task-section li strong {
  font-size: 13.5px;
  color: var(--ink);
}

.store-task-section li span {
  color: var(--muted);
  font-size: 12px;
}

.store-empty {
  margin: 0;
  color: #8a9bb0;
  font-size: 13px;
}

.store-ads-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.store-ads-metrics div {
  border: 1px solid rgba(93,138,180,0.14);
  border-radius: 10px;
  background: rgba(236,243,251,0.7);
  padding: 10px 12px;
}

.store-ads-metrics strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--teal);
}

.store-ads-metrics span {
  color: #7a8a9b;
  font-size: 12px;
}

.store-ads-note {
  margin: 10px 0 0;
  border-left: 3px solid var(--teal);
  background: rgba(236,243,251,0.8);
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
  color: #1557b0;
  font-size: 13px;
  line-height: 1.6;
}

.store-accounts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.store-account-card {
  border: 1px solid rgba(93,138,180,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  padding: 18px;
}

.store-account-card.current {
  border-color: rgba(36,107,88,0.3);
  box-shadow: 0 12px 28px rgba(60,90,75,0.1);
}

.store-account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-account-top h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.store-account-badge {
  border-radius: 999px;
  background: rgba(240,238,231,0.8);
  color: #7a8a9b;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.store-account-badge.bound {
  background: rgba(238,246,244,0.9);
  color: var(--teal);
}

.store-account-card p {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.store-account-card button {
  width: 100%;
}

@media (max-width: 960px) {
  .content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }
  .store-task-panel {
    position: static;
  }
  .store-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .store-home-head h2 {
    font-size: 32px;
  }
  .store-accounts-grid,
  .store-ads-metrics {
    grid-template-columns: 1fr;
  }
}

/* ===== C 端门店 · 精简顶栏 + 手机端适配 ===== */
.store-appbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.store-appbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.store-appbar-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 62%, var(--accent) 150%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.store-appbar-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.store-appbar-brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.store-view-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
}

.store-view-switch select {
  width: auto;
  min-width: 150px;
  border: 1px solid rgba(93, 138, 180, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

.store-layout {
  padding: 0 24px 24px;
}

@media (max-width: 960px) {
  .store-appbar {
    padding: 10px 16px;
  }
  .store-layout {
    padding: 0 12px 12px;
  }
}

@media (max-width: 480px) {
  .store-appbar {
    gap: 10px;
  }
  .store-appbar-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .store-appbar-brand strong {
    font-size: 15px;
  }
  .store-view-switch span {
    display: none;
  }
  .store-view-switch select {
    min-width: 0;
    max-width: 132px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .store-home-head h2 {
    font-size: 26px;
  }
  .store-home-head p {
    font-size: 14px;
  }

  .store-avatar-grid {
    gap: 18px;
  }
  .store-avatar-dot,
  .store-avatar-dot .avatar {
    width: 74px;
    height: 74px;
  }
  .store-avatar-slot {
    gap: 12px;
  }
  .store-avatar-text strong {
    font-size: 15px;
  }
  .store-avatar-text em {
    font-size: 12px;
  }

  .store-task-panel {
    border-radius: 14px;
  }
}

/* ===== 对话界面手机端专项适配 ===== */
@media (max-width: 760px) {
  /* 门店老板手机端隐藏内部配置入口 */
  .chat-layout .agent-quiet-details,
  .chat-layout .chat-header-actions,
  .chat-layout .director-contact-actions {
    display: none;
  }

  /* 普通 AI 对话：顶部更紧凑 */
  .chat-layout .agent-chat-header {
    padding: 10px 12px;
  }
  .chat-layout .agent-identity {
    gap: 8px;
  }
  .chat-layout .agent-identity h2 {
    font-size: 17px;
  }
  .chat-layout .agent-identity p {
    font-size: 12px;
    max-width: 170px;
  }
  .chat-layout .agent-identity .avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .chat-layout .back-button {
    padding: 8px 4px;
    font-size: 13px;
  }

  /* 消息列表：留足底部空间，避免被输入框遮挡 */
  .chat-layout .agent-message-list {
    padding: 14px 14px 150px;
    gap: 14px;
  }
  .chat-layout .chat-message {
    gap: 8px;
  }
  .chat-layout .chat-message .avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .chat-layout .bubble {
    max-width: 84%;
    padding: 10px 12px;
  }
  .chat-layout .bubble p {
    font-size: 14px;
  }

  /* 输入框：只保留 + 和发送，隐藏装饰图标 */
  .chat-layout .agent-composer {
    padding: 8px 10px 10px;
  }
  .chat-layout .composer-toolbar {
    gap: 8px;
  }
  .chat-layout .composer-toolbar > .composer-icon {
    display: none;
  }

  /* 编导 AI：顶部栏、素材标签、输入工具手机端适配 */
  .chat-layout .director-main-chat {
    grid-template-rows: 56px auto 1fr auto;
  }
  .chat-layout .director-contact-bar {
    height: 56px;
    padding: 0 12px;
  }
  .chat-layout .director-contact-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .chat-layout .director-contact-title h2 {
    font-size: 18px;
  }
  .chat-layout .director-contact-title p {
    max-width: 190px;
    font-size: 12px;
  }

  .chat-layout .director-material-strip {
    padding: 8px 12px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .chat-layout .director-material-strip span {
    flex: 0 0 auto;
    padding: 4px 8px;
    font-size: 11px;
  }

  .chat-layout .director-main-chat .director-dialogue {
    padding: 18px 14px 28px;
  }
  .chat-layout .director-message-body {
    max-width: 88%;
  }
  .chat-layout .director-bubble p,
  .chat-layout .director-bubble li {
    font-size: 15px;
  }

  .chat-layout .director-main-chat .director-composer {
    padding: 10px 12px 12px;
  }
  .chat-layout .director-main-chat .director-input-frame {
    padding: 10px;
  }
  .chat-layout .director-main-chat .director-input-frame textarea {
    min-height: 60px;
  }
  .chat-layout .director-input-tools {
    gap: 8px;
  }
  .chat-layout .director-input-tools > button.director-tool {
    display: none;
  }
  .chat-layout .director-tool input:not([type="file"]) {
    width: 104px;
    font-size: 12px;
  }
  .chat-layout .director-main-chat .director-send {
    padding: 0 16px;
  }
  .chat-layout .director-hint-row {
    font-size: 11px;
    gap: 8px;
  }
}

/* ===== 无障碍：尊重减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .store-avatar-dot,
  .blob,
  .fade-in-up {
    animation: none !important;
  }
  .store-avatar-dot,
  .store-avatar-slot,
  .store-avatar-dot .avatar {
    transition: none !important;
  }
}

/* ===== C 端门店 · 宣传话语面板 ===== */
.store-promo-panel {
  position: sticky;
  top: 140px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 26px 22px 22px;
  display: grid;
  gap: 18px;
}

.store-promo-head .eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.store-promo-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

.store-promo-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.store-promo-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.store-promo-points li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfe;
}

.store-promo-points li strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}

.store-promo-points li span {
  font-size: 13px;
  color: var(--muted);
}

.store-promo-foot {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 960px) {
  .store-promo-panel {
    position: static;
  }
}

/* ===== C 端门店 · 平台宣传页 ===== */
.store-platforms {
  width: 100%;
  max-width: 780px;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.store-platforms-head .eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.store-platforms-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.store-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.store-platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart);
}

.store-platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.platform-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.platform-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.platform-meta strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.platform-meta em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

/* ===== C 端门店 · 底部能力说明 ===== */
.store-capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 28px;
  margin-top: 32px;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.6), rgba(255, 255, 255, 0.4));
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.store-cap-item {
  display: grid;
  gap: 6px;
  text-align: center;
}

.store-cap-item strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.store-cap-item span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

@media (max-width: 760px) {
  .store-capabilities {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 12px;
    padding: 24px 16px;
  }
  .store-cap-item strong { font-size: 16px; }
  .store-cap-item span { font-size: 12px; }
}

/* ===== C 端门店 · 客服气泡 ===== */
.store-service-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.store-service-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(30, 111, 217, 0.35);
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart);
}

.store-service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(30, 111, 217, 0.42);
}

.store-service-pop {
  display: none;
  width: 300px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.store-service-pop.open {
  display: block;
  animation: service-pop-in 0.25s var(--ease-out-quart);
}

@keyframes service-pop-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.store-service-pop-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
}

.service-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}

.store-service-pop-head strong {
  display: block;
  font-size: 15px;
}

.store-service-pop-head span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.store-service-pop-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.store-service-pop-body p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.store-service-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-service-quick button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f8fc;
  color: var(--teal);
  cursor: pointer;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s var(--ease-out-quart);
}

.store-service-quick button:hover {
  background: var(--teal-soft);
}

/* 移动端适配 */
@media (max-width: 760px) {
  .store-platform-grid {
    gap: 10px;
  }
  .store-platform-card {
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
    text-align: center;
    justify-items: center;
  }
  .platform-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 16px;
  }
  .platform-meta {
    justify-items: center;
  }
  .platform-meta strong {
    font-size: 13px;
  }
  .platform-meta em {
    display: none;
  }

  .store-service-float {
    right: 16px;
    bottom: 16px;
  }
  .store-service-pop {
    width: 260px;
  }
}

/* ===== 手机端门店版整体打磨 ===== */
@media (max-width: 480px) {
  .content {
    gap: 18px;
    padding: 18px 0 76px;
  }
  .store-main {
    gap: 24px;
    padding: 16px 6px;
  }

  .store-home-head .eyebrow {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 10px;
  }
  .store-home-head h2 {
    font-size: 24px;
    line-height: 1.22;
    margin-bottom: 10px;
  }
  .store-home-head p {
    font-size: 13px;
    line-height: 1.65;
  }

  .store-avatar-grid {
    gap: 12px;
    max-width: 320px;
  }
  .store-avatar-slot {
    gap: 10px;
    padding: 6px 2px;
  }
  .store-avatar-dot,
  .store-avatar-dot .avatar {
    width: 66px;
    height: 66px;
  }
  .store-avatar-text strong {
    font-size: 14px;
  }
  .store-avatar-text em {
    font-size: 11px;
    max-width: 96px;
  }

  .store-platform-grid {
    gap: 8px;
  }
  .store-platform-card {
    min-height: 92px;
    padding: 10px 6px;
  }
  .store-platforms-head h3 {
    font-size: 19px;
  }

  .store-promo-panel {
    padding: 18px 14px 14px;
    gap: 14px;
    border-radius: 14px;
  }
  .store-promo-head h3 {
    font-size: 19px;
  }
  .store-promo-lead {
    font-size: 13px;
  }
  .store-promo-points li {
    padding: 9px 12px;
  }
  .store-promo-points li strong {
    font-size: 14px;
  }

  .store-service-float {
    right: 14px;
    bottom: 14px;
  }
  .store-service-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
  .store-service-pop {
    width: min(280px, calc(100vw - 28px));
  }
}
/* Agent 底层模型切换（A 端管理员专属） */
.agent-model-select { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #667085; }
.agent-model-select span { white-space: nowrap; }
.agent-model-select select { border: 1px solid var(--line, #ded9cf); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12px; background: #fff; color: #1f2933; cursor: pointer; }
.agent-model-select select:focus { outline: 2px solid rgba(36, 107, 104, 0.35); outline-offset: 1px; }
.agent-model-select.compact { justify-self: start; }
.agent-model-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid #ece7dd; border-radius: 10px; background: #fbfaf7; }
.agent-model-row h3 { margin: 0 0 4px; font-size: 13px; }
.agent-model-row p { margin: 0; font-size: 12px; color: #667085; }
.agent-model-hint { margin: 6px 0 0; font-size: 12px; color: #98a2b3; }
.agent-model-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #edf7ef; border: 1px solid #bddbc3; color: #315c38; font-size: 13px; }
.director-model-note { padding: 4px 14px 12px; }
.director-model-note .agent-model-row { margin-top: 0; background: transparent; border: 0; padding: 0; }

/* 各端员工卡片上的模型选择下拉 */
.store-avatar-slot .agent-model-select.compact { justify-self: center; }
.capability-card .agent-model-select.compact { justify-self: start; margin-top: 4px; }
.store-avatar-slot:focus-visible { outline: 2px solid rgba(36, 107, 104, 0.45); outline-offset: 2px; }

/* 对话输入区的模型切换下拉 */
.composer-toolbar .agent-model-select.compact { flex-shrink: 0; }
.composer-toolbar .agent-model-select.compact select { padding: 6px 8px; font-size: 12px; }
.director-input-tools .agent-model-select.compact { flex-shrink: 0; }
.director-input-tools .agent-model-select.compact select { padding: 5px 8px; font-size: 12px; }
