/*
 * HiZero 网页版 · 组织空间（2026-11-05，CLD-26）
 *
 * 目标只有一个：用现有对话页的设计语言（浅色纸面、极轻分割线、12–16px 圆角、
 * 中性灰、克制的强调色）承载组织能力，不把页面变回传统企业管理后台。
 *
 * 三条视觉纪律：
 * 1. 侧栏宽度不动（248px），组织功能靠分层，不靠加宽。
 * 2. 卡片不套卡片：分组、留白、表格优先；只有确实独立的区块才用一块浅边框。
 * 3. hover / 弹层 / 空间切换 150–220ms，并尊重 prefers-reduced-motion。
 */

/* ---------------------------------------------------------------- 空间切换器 */

.space-switcher {
  position: relative;
  flex: none;
  margin-top: auto;
  padding: 8px 4px 2px;
  border-top: 1px solid #eceef0;
}

.org-wallet-summary { margin: 16px 0; }
.org-wallet-summary > strong { display: block; margin: 9px 0; font-size: 22px; }
.org-dept-list { display: grid; gap: 14px; margin-top: 16px; }
.org-dept-card { min-width: 0; }
.org-dept-members { list-style: none; margin: 12px 0; padding: 0; }
.org-dept-member { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid #eceef0; }
.org-dept-member > span:first-child { min-width: 120px; font-weight: 550; }
.org-dept-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid #eceef0; }
.org-dept-task > span { min-width: 160px; overflow-wrap: anywhere; }
.org-dept-form { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 12px 0; }
.org-dept-form input, .org-dept-form select { min-width: 150px; max-width: 100%; padding: 9px 11px; border: 1px solid #dfe4e7; border-radius: 9px; background: #fff; color: #25313b; font: inherit; }
.org-dept-form label { font-weight: 550; }

.space-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2d3841;
  text-align: left;
  font: inherit;
  font-size: 12.5px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(.2, 0, 0, 1);
}
.space-trigger:hover,
.space-trigger[aria-expanded="true"] { background: #e9ecef; }

.space-tile {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f3f5;
  color: #5c6672;
}
.space-tile svg { width: 15px; height: 15px; }
.space-initial { font-size: 12px; font-weight: 620; line-height: 1; letter-spacing: -.01em; }
/* 组织 Logo 可以有颜色，但只用几档低饱和的固定色，普通界面仍是中性灰白。 */
.space-tile-slate { background: #eef1f4; color: #4c5966; }
.space-tile-sage { background: #edf2ef; color: #4a6255; }
.space-tile-sand { background: #f4f1ea; color: #6b6250; }
.space-tile-clay { background: #f4efee; color: #6a5652; }

.space-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.space-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 580;
  color: #232a31;
}
.space-sub {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  color: #98a1ab;
}
.space-trigger > .ui-icon { flex: none; width: 13px; height: 13px; color: #8b97a1; }

.space-panel {
  position: absolute;
  z-index: 90;
  bottom: calc(100% + 6px);
  left: 0;
  width: min(268px, calc(100vw - 28px));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #e4e7ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20, 36, 48, .13), 0 2px 6px rgba(20, 36, 48, .04);
  animation: space-panel-in 170ms cubic-bezier(.2, 0, 0, 1);
}
@keyframes space-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.space-panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 6px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 580;
  letter-spacing: .03em;
  color: #9aa3ad;
}

.space-badge {
  padding: 1px 6px;
  border: 1px solid #e2e6ea;
  border-radius: 999px;
  background: #fafbfc;
  color: #97a1ab;
  font-size: 9.5px;
  font-weight: 560;
  letter-spacing: 0;
}

.space-list { display: flex; flex-direction: column; gap: 1px; }

.space-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #36434f;
  text-align: left;
  font: inherit;
  font-size: 12.5px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(.2, 0, 0, 1);
}
.space-row:hover { background: #f2f4f5; }
.space-row[aria-checked="true"] { background: #f4f5f6; }
.space-row-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.space-row-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 550;
  color: #232a31;
}
.space-row-sub { font-size: 10.5px; color: #98a1ab; }
.space-check { width: 14px; height: 14px; color: #4b5563; }

.space-manage { margin-top: 3px; }
.space-manage .space-tile { background: #f2f4f5; color: #5a6672; }

.space-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 0px);
  margin: 6px 0 2px;
  padding: 10px 8px;
  border: 1px dashed #d6dbdf;
  border-radius: 10px;
  background: transparent;
  color: #6b7480;
  font: inherit;
  font-size: 12px;
  font-weight: 540;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 160ms, background-color 160ms, color 160ms;
}
.space-add:hover {
  border-color: #c3cbd2;
  background: #fafbfc;
  color: #37424d;
}
.space-add-plus { font-size: 14px; line-height: 1; color: #8b97a1; }

.space-divider { height: 1px; margin: 6px 5px; background: #edf0f2; }

.space-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4a5763;
  text-align: left;
  font: inherit;
  font-size: 12px;
  box-shadow: none;
  cursor: pointer;
}
.space-link:hover { background: #f2f4f5; }
.space-link-icon { display: inline-flex; color: #8b97a1; }
.space-link-icon svg { width: 15px; height: 15px; }

.space-note {
  margin: 6px 4px 2px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fafbfc;
  color: #97a1ab;
  font-size: 10.5px;
  line-height: 1.55;
}

.space-picks { display: flex; flex-direction: column; gap: 4px; }
.space-pick {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #e7eaed;
  border-radius: 10px;
  background: #fff;
  color: #37424d;
  text-align: left;
  font: inherit;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 160ms, background-color 160ms;
}
.space-pick:hover { border-color: #d6dce1; background: #fafbfc; }
.space-pick strong { font-size: 12.5px; font-weight: 580; color: #232a31; }
.space-pick span { font-size: 10.5px; color: #98a1ab; line-height: 1.5; }

.space-back {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 6px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b97a1;
  font: inherit;
  font-size: 11px;
  box-shadow: none;
  cursor: pointer;
}
.space-back:hover { background: #f2f4f5; color: #4a5763; }

.space-form { display: flex; flex-direction: column; gap: 10px; padding: 2px 4px 4px; }
.space-field { display: flex; flex-direction: column; gap: 5px; }
.space-field > span { font-size: 11px; font-weight: 560; color: #6b7480; }
.space-field-inline { flex-direction: row; align-items: center; justify-content: space-between; }
.space-input {
  min-height: 34px !important;
  padding: 7px 10px !important;
  border: 1px solid #e2e6ea !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #232a31;
  font: inherit;
  font-size: 12.5px;
}
.space-color {
  width: 44px;
  height: 28px;
  padding: 0;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.space-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.space-submit {
  min-height: 31px;
  padding: 5px 12px;
  border: 1px solid #232b34;
  border-radius: 8px;
  background: #232b34;
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 560;
  box-shadow: none;
  cursor: pointer;
}
.space-submit:hover:not(:disabled) { background: #10161d; border-color: #10161d; }
.space-form-error {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #efd6d6;
  border-radius: 8px;
  background: #fff8f8;
  color: #a45151;
  font-size: 10.5px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- 侧栏空间导航 */

.space-context {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0 4px 4px;
  padding: 4px 8px 6px;
  color: #8b97a1;
  font-size: 10.5px;
  font-weight: 560;
  letter-spacing: .02em;
}
.space-context span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.space-context .ui-icon { width: 12px; height: 12px; flex: none; }

.rail-section { display: flex; flex-direction: column; gap: 1px; padding: 0 2px; }
.rail-section + .rail-section { margin-top: 8px; }
.rail-section-title {
  margin: 0;
  padding: 8px 9px 3px;
  font-size: 10.5px;
  font-weight: 560;
  letter-spacing: .04em;
  color: #9aa3ad;
}
.rail-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3a424b;
  text-align: left;
  font: inherit;
  font-size: 12.5px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 150ms;
}
.rail-link:hover { background: #e9ebee; }
.rail-link[aria-current="page"] { background: #e6e8eb; font-weight: 560; }
.rail-link > .ui-icon { width: 15px; height: 15px; flex: none; color: #6b7480; }
.rail-link-label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rail-link-tag {
  flex: none;
  padding: 1px 5px;
  border-radius: 999px;
  background: #eceef1;
  color: #9299a1;
  font-size: 9.5px;
  font-weight: 540;
}
.rail-link[aria-disabled="true"] { color: #a7aeb6; cursor: default; }
.rail-link[aria-disabled="true"]:hover { background: transparent; }
.rail-link[aria-disabled="true"] > .ui-icon { color: #b6bdc4; }

/* ---------------------------------------------------------------- 主区域组织页 */

.org-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.org-page {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(20px, 3.4vw, 34px) clamp(18px, 3.4vw, 40px) 48px;
  animation: org-page-in 200ms cubic-bezier(.2, 0, 0, 1);
}
@keyframes org-page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.org-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.org-head-copy { min-width: 0; }
.org-head h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.035em;
  color: #1f2933;
}
.org-sub { margin: 0; font-size: 12.5px; color: #6b7480; }
.org-sub strong { font-weight: 580; color: #3a424b; }
.org-hint { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: #8b95a0; }
.org-demo {
  padding: 1px 7px;
  border: 1px solid #e6e1d5;
  border-radius: 999px;
  background: #fbf8f1;
  color: #8a7c5c;
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0;
}
.org-back {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 6px;
  padding: 2px 7px 2px 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b95a0;
  font: inherit;
  font-size: 11.5px;
  box-shadow: none;
  cursor: pointer;
}
.org-back:hover { background: #f4f5f6; color: #4a5560; }

.org-primary,
.org-secondary,
.org-ghost,
.org-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 560;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.org-primary { border: 1px solid #232b34; background: #232b34; color: #fff; }
.org-primary:hover:not(:disabled) { background: #10161d; border-color: #10161d; }
.org-secondary { border: 1px solid #e2e6ea; background: #fff; color: #37424d; }
.org-secondary:hover:not(:disabled) { background: #f7f8f9; border-color: #d7dce1; }
.org-ghost { border: 1px solid transparent; background: transparent; color: #6b7480; min-height: 30px; padding: 5px 9px; font-size: 11.5px; }
.org-ghost:hover:not(:disabled) { background: #f2f4f5; color: #37424d; }
.org-ghost-danger { color: #a45151; }
.org-ghost-danger:hover:not(:disabled) { background: #fdf5f5; color: #8f3f3f; }
.org-danger { border: 1px solid #efd6d6; background: #fff; color: #a45151; }
.org-danger:hover:not(:disabled) { background: #fdf5f5; border-color: #e6c4c4; }
.org-primary .ui-icon,
.org-secondary .ui-icon { width: 15px; height: 15px; }
.org-ghost .ui-icon { width: 14px; height: 14px; }

.org-notice {
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid #eceef1;
  border-radius: 9px;
  background: #fafbfc;
  color: #6b7480;
  font-size: 11.5px;
  line-height: 1.6;
}

.org-tabs {
  display: flex;
  gap: 2px;
  margin: 0 0 18px;
  padding-bottom: 0;
  border-bottom: 1px solid #eef0f2;
  overflow-x: auto;
  scrollbar-width: none;
}
.org-tabs::-webkit-scrollbar { display: none; }
.org-tab {
  flex: none;
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #7b8590;
  font: inherit;
  font-size: 12.5px;
  font-weight: 540;
  box-shadow: none;
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
}
.org-tab:hover { color: #37424d; background: transparent; }
.org-tab[aria-current="page"] { color: #1f2933; border-bottom-color: #232b34; font-weight: 600; }

.org-panel { display: flex; flex-direction: column; gap: 16px; }

.org-card {
  padding: 16px 18px;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  background: #fff;
}
.org-card h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #232a31; letter-spacing: -.01em; }
.org-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.org-card-head h3 { margin: 0; }
.org-danger-zone { border-color: #f2e4e4; background: #fffcfc; }

.org-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  background: #eef0f2;
}
.org-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 15px;
  background: #fff;
}
.org-metric-label { font-size: 11px; color: #8b95a0; }
.org-metric-value { font-size: 22px; font-weight: 620; letter-spacing: -.03em; color: #1f2933; font-variant-numeric: tabular-nums; }
.org-metric-note { font-size: 10.5px; color: #a0a8b1; }

.org-muted { margin: 0; font-size: 12px; line-height: 1.6; color: #8b95a0; }
.org-foot { margin: 16px 0 0; font-size: 11px; line-height: 1.6; color: #a3abb4; }
.org-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.org-todo,
.org-activity { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.org-todo li,
.org-activity li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  border-bottom: 1px solid #f2f4f5;
  font-size: 12px;
  color: #4a5560;
}
.org-todo li:last-child,
.org-activity li:last-child { border-bottom: 0; }
.org-todo-icon { display: inline-flex; color: #a0a8b1; }
.org-todo li[data-tone="bad"] .org-todo-icon { color: #b8624f; }
.org-todo li[data-tone="warn"] .org-todo-icon { color: #a58448; }
.org-activity-text { flex: 1; min-width: 0; }
.org-activity-when { flex: none; font-size: 10.5px; color: #a3abb4; font-variant-numeric: tabular-nums; }
.org-dot { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #c9cfd5; }
.org-dot[data-tone="done"] { background: #4f9c78; }
.org-dot[data-tone="bad"] { background: #c47a6a; }
.org-dot[data-tone="warn"] { background: #b99a63; }

.org-empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 20px;
  border: 1px dashed #e4e8eb;
  border-radius: 14px;
  background: #fafbfc;
  text-align: center;
}
.org-empty strong { font-size: 13px; font-weight: 580; color: #5c6672; }
.org-empty span { font-size: 11.5px; line-height: 1.6; color: #98a1ab; }

.org-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.org-project {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-align: left;
  font: inherit;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 160ms, background-color 160ms, transform 160ms;
}
.org-project:hover { border-color: #dfe4e8; background: #fcfcfd; }
.org-project:active { transform: scale(.995); }
.org-project-icon { display: inline-flex; color: #7b8590; margin-bottom: 2px; }
.org-project-name { font-size: 13.5px; font-weight: 600; color: #1f2933; }
.org-project-summary { font-size: 11.5px; line-height: 1.55; color: #8b95a0; }
.org-project-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; font-size: 10.5px; color: #a3abb4; }

.org-table-wrap { overflow-x: auto; border: 1px solid #eef0f2; border-radius: 14px; }
.org-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.org-table th,
.org-table td { padding: 10px 14px; border-bottom: 1px solid #f2f4f5; text-align: left; }
.org-table th {
  background: #fafbfc;
  font-size: 10.5px;
  font-weight: 560;
  letter-spacing: .03em;
  color: #98a1ab;
  white-space: nowrap;
}
.org-table tbody tr:last-child td { border-bottom: 0; }
.org-table tbody tr:hover { background: #fcfcfd; }
.org-file-name { display: inline-flex; align-items: center; gap: 8px; color: #303942; font-weight: 540; }
.org-file-icon { display: inline-flex; color: #7b8590; }

.org-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.org-search-wrap { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: 1; min-width: 200px; max-width: 340px; }
.org-search-wrap > .ui-icon { position: absolute; left: 10px; width: 14px; height: 14px; color: #a3abb4; pointer-events: none; }
.org-search {
  width: 100%;
  min-height: 32px !important;
  padding: 6px 10px 6px 30px !important;
  border: 1px solid #e6e9ec !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #232a31;
  font: inherit;
  font-size: 12px;
}
.org-search:focus { border-color: #ccd4db !important; box-shadow: 0 0 0 3px rgba(35, 43, 52, .04) !important; }
.org-toolbar-note { font-size: 10.5px; color: #a9b0b8; }

.org-people { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.org-people li,
.org-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid #f2f4f5;
}
.org-people li:last-child,
.org-member:last-child { border-bottom: 0; }
.org-member[data-pending="true"] { opacity: .72; }
.org-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f3f5;
  color: #5c6672;
  font-size: 11px;
  font-weight: 600;
}
.org-person-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.org-person-copy strong { font-size: 12.5px; font-weight: 560; color: #303942; }
.org-person-copy span { font-size: 10.5px; color: #98a1ab; }
.org-member-actions { display: flex; gap: 2px; flex: none; }

.org-resource-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.org-resource-list li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #f2f4f5; }
.org-resource-list li:last-child { border-bottom: 0; }
.org-tag {
  flex: none;
  padding: 2px 7px;
  border: 1px solid #e8ebee;
  border-radius: 999px;
  background: #fafbfc;
  color: #8b95a0;
  font-size: 10px;
  font-weight: 540;
}

.org-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.org-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 22px; margin: 0; }
.org-facts dt { margin-bottom: 3px; font-size: 10.5px; color: #98a1ab; }
.org-facts dd { margin: 0; font-size: 12.5px; color: #303942; font-weight: 540; }

.org-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.org-card .org-cards { margin-top: 2px; }
.org-cards .org-card { background: #fafbfc; border-color: #f0f2f4; }

.org-bars { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.org-bars li { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #4a5560; }
.org-bar-label { flex: 0 0 42%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.org-bar { flex: 1; height: 5px; border-radius: 999px; background: #f0f2f4; overflow: hidden; }
.org-bar i { display: block; height: 100%; border-radius: 999px; background: #c2cbd3; width: 50%; }
.org-bar i[data-share="1"] { width: 10%; }
.org-bar i[data-share="2"] { width: 20%; }
.org-bar i[data-share="3"] { width: 30%; }
.org-bar i[data-share="4"] { width: 40%; }
.org-bar i[data-share="5"] { width: 50%; }
.org-bar i[data-share="6"] { width: 60%; }
.org-bar i[data-share="7"] { width: 70%; }
.org-bar i[data-share="8"] { width: 80%; }
.org-bar i[data-share="9"] { width: 90%; }
.org-bar i[data-share="10"] { width: 100%; }
.org-bar-value { flex: none; font-variant-numeric: tabular-nums; color: #6b7480; font-size: 11.5px; }

/* ---------------------------------------------------------------- 窄屏 */

@media (max-width: 860px) {
  .org-page { padding: 18px 14px 40px; }
  .org-head { flex-direction: column; gap: 12px; }
  .org-head h1 { font-size: 19px; }
  .org-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-metric-value { font-size: 19px; }
  .org-projects { grid-template-columns: minmax(0, 1fr); }
  .org-card { padding: 14px 14px; border-radius: 12px; }
  .org-tabs { gap: 0; }
  .org-tab { padding: 7px 9px; font-size: 12px; }

  /* 表格转紧凑行，不强塞桌面宽表格。 */
  .org-table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .org-table thead { display: none; }
  .org-table,
  .org-table tbody,
  .org-table tr,
  .org-table td { display: block; width: 100%; }
  .org-table tr {
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    background: #fff;
  }
  .org-table td { border: 0; padding: 1px 0; font-size: 11.5px; }
  .org-table td:first-child { padding-bottom: 3px; }
  .org-num { white-space: normal; }
  .org-file-name { font-size: 12.5px; }
}

@media (max-width: 480px) {
  .org-metrics { grid-template-columns: minmax(0, 1fr); }
  .org-inline-actions > button { flex: 1 1 auto; justify-content: center; }
  .org-member-actions { flex-direction: column; }
  .org-bar-label { flex-basis: 52%; }
}

@media (prefers-reduced-motion: reduce) {
  .space-panel,
  .org-page,
  .space-trigger,
  .space-row,
  .space-add,
  .space-pick,
  .org-project,
  .rail-link,
  .org-tab { animation: none; transition: none; }
}

/*
 * CLD-26 hover isolation:
 * Portal's global `button:hover:not(:disabled)` paints every button
 * --indigo-deep (opaque blue). Give neutral navigation controls a strictly
 * more specific hover style, without changing primary actions or focus rings.
 */
body.is-chat button.space-trigger:hover:not(:disabled),
body.is-chat button.space-trigger[aria-expanded="true"] { background: #e9ecef; }
body.is-chat button.space-row:hover:not(:disabled) { background: #f2f4f5; }
body.is-chat button.space-row[aria-checked="true"] { background: #f4f5f6; }
body.is-chat button.space-add:hover:not(:disabled) { background: #fafbfc; }
body.is-chat button.space-link:hover:not(:disabled),
body.is-chat a.space-link:hover { background: #f2f4f5; }
body.is-chat button.space-pick:hover:not(:disabled) { background: #fafbfc; }
body.is-chat button.space-back:hover:not(:disabled) { background: #f2f4f5; }
body.is-chat button.rail-link:hover:not(:disabled) { background: #e9ebee; }
body.is-chat button.rail-link[aria-disabled="true"]:hover:not(:disabled) { background: transparent; }
body.is-chat button.org-back:hover:not(:disabled) { background: #f4f5f6; }
body.is-chat button.org-tab:hover:not(:disabled) { background: transparent; }
body.is-chat button.org-project:hover:not(:disabled) { background: #fcfcfd; }

/* ---------------------------------------------------------------- 真实项目页 */
/* 与组织页共用外壳（.org-page/.org-head/.org-empty），这里只补项目自己的部件。 */

.project-create {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 16px; padding: 12px 14px;
  border: 1px solid #e6e9ec; border-radius: 12px; background: #fafbfc;
}

.project-input {
  flex: 1 1 240px; min-width: 0; min-height: 36px; padding: 6px 11px;
  border: 1px solid #dde2e7; border-radius: 9px; background: #fff;
  font-size: 13px; color: #232a31;
}

.project-link {
  min-height: 30px; padding: 3px 9px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: #5b6674; font-size: 12px; cursor: pointer;
}
.project-link:hover { background: #eef1f4; color: #232a31; }
.project-head-actions { display: flex; align-items: center; gap: 2px; flex: none; }

.org-project { display: flex; align-items: stretch; gap: 6px; }
.project-card-main {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px;
  padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.project-card-actions { display: flex; flex-direction: column; gap: 2px; justify-content: center; }

.project-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.project-tab {
  min-height: 30px; padding: 4px 12px; border: 1px solid #e6e9ec; border-radius: 999px;
  background: #fff; color: #5b6674; font-size: 12px; cursor: pointer;
}
.project-tab[aria-selected="true"] { background: #eef3f8; border-color: #cdd8e3; color: #232a31; }

.project-body { display: flex; flex-direction: column; gap: 14px; }
.project-actions { display: flex; gap: 8px; }
.project-rows { display: flex; flex-direction: column; gap: 8px; }

.project-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 1px solid #eceef1; border-radius: 10px;
  background: #fff; color: #2c333b; text-decoration: none; font-size: 13px;
}
.project-row-main {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit;
}
.project-row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 540; }
.project-row-meta { font-size: 11.5px; color: #9aa3ad; }

.project-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.project-textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #dde2e7; border-radius: 10px;
  background: #fff; font: inherit; font-size: 13px; line-height: 1.6; color: #232a31; resize: vertical;
}

.project-memory {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border: 1px solid #eceef1; border-radius: 10px; background: #fff;
}
.project-memory-text { margin: 0; font-size: 13px; line-height: 1.7; color: #2c333b; white-space: pre-wrap; }
.project-memory-meta { margin: 0; font-size: 11px; color: #9aa3ad; }

.project-title { display: block; font-size: 17px; font-weight: 640; color: #232a31; }

@media (max-width: 640px) {
  .org-project { flex-direction: column; }
  .project-card-actions { flex-direction: row; }
  .project-row { flex-wrap: wrap; }
}

/* Conversation delivery: one quiet surface across chat, projects and account pages. */
body.is-chat .chat-rail { background: #f9f9f9; border-right: 1px solid #ededed; }
body.is-chat .chat-head { border-bottom: 0; }
body.is-chat .chat-head-copy strong { font-size: 15px; font-weight: 550; }
body.is-chat .chat-status { background: transparent; color: #7a827f; font-size: 11px; }
body.is-chat .chat-hero-mark, body.is-chat .chat-lead { display: none; }
body.is-chat .chat-hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 550; letter-spacing: -.04em; }
body.is-chat .chat-suggest { margin-top: 24px; gap: 8px; }
body.is-chat .chat-suggest-btn { border-color: #e8e8e8; background: #fff; color: #626262; border-radius: 24px; }
body.is-chat .chat-suggest-btn .ui-icon { display: none; }
body.is-chat .chat-box { background: #f4f4f4; border: 1px solid transparent; border-radius: 26px; box-shadow: none; }
body.is-chat .chat-box:focus-within { border-color: #dedede; box-shadow: none; }
body.is-chat .chat-input { background: transparent; font-size: 15px; line-height: 1.6; resize: none; }
body.is-chat .chat-send:not(:disabled) { background: #212121; color: white; }
body.is-chat .chat-msg-body { font-size: 15px; line-height: 1.85; color: #242424; }
body.is-chat .chat-actions { gap: 3px; }
body.is-chat .chat-action { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 6px; border: 0; border-radius: 7px; background: transparent; color: #777; }
body.is-chat .chat-action:hover:not(:disabled) { background: #eee; color: #222; }
body.is-chat .chat-action .ui-icon { width: 16px; height: 16px; }
body.is-chat .chat-usage { color: #999; font-size: 11px; }
body.is-chat .account-avatar { border-radius: 50%; background: #e9ebea; color: #414d47; font-size: 13px; }
body.is-chat .rail-section-title { display: none; }
body.is-chat .rail-section { margin: 0; }
body.is-chat .chat-thread { max-width: 780px; }
body.is-chat .org-main { padding: 28px clamp(16px, 4vw, 48px); }
body.is-chat .org-main > section { width: 100%; max-width: 960px; margin-inline: auto; }
body.is-chat .org-main .card { background: transparent; box-shadow: none; border: 0; border-bottom: 1px solid #ebebeb; border-radius: 0; padding: 24px 0; }
body.is-chat .org-main .portal-heading { margin-bottom: 28px; }
body.is-chat .org-main h1 { font-size: 25px; letter-spacing: -.03em; }
body.is-chat .org-main h2 { font-size: 15px; font-weight: 600; }
body.is-chat .org-main .hint { color: #7a7a7a; line-height: 1.7; }
body.is-chat .org-main button:not(.ghost):not(.project-link):not(.org-tab):not(.project-tab):not(.cmd-range):not(.ck-link):not(.ck-mini-link):not(.mem-primary):not(.mem-secondary):not(.oc-type):not(.oc-button):not(.oc-color):not(.oc-result) { background: #242424; color: white; }
body.is-chat .org-main .ghost { color: #666; }
body.is-chat .org-main input, body.is-chat .org-main select, body.is-chat .org-main textarea { color: #242424; border-color: #dedede; background: white; }
.schedule-page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.schedule-cloud-editor { padding: 24px; margin-bottom: 24px; background: #f7f7f7; border-radius: 18px; }
.schedule-cloud-editor input, .schedule-cloud-editor textarea { width: 100%; }
.schedule-time-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.schedule-time-fields > * { flex: 1; min-width: 130px; }
.schedule-cloud-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid #ebebeb; }
.schedule-cloud-row > div { min-width: 0; overflow-wrap: anywhere; }
.schedule-cloud-row h2, .schedule-cloud-row p { margin: 0 0 6px; }
.schedule-cloud-row details { color: #777; font-size: 12px; margin-top: 10px; }
.schedule-cloud-row details p { white-space: pre-wrap; color: #444; }
.schedule-cloud-row button { flex: none; }
.schedule-records { margin-top: 38px; }
.schedule-device-section { margin-top: 38px; color: #777; }
.schedule-device-section > summary { padding: 12px 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .schedule-page-head { align-items: flex-start; }
  .schedule-cloud-editor { padding: 16px; }
  body.is-chat .chat-action { width: 38px; height: 38px; }
}

body.is-chat .chat-session-menu[popover] { margin: 0; padding: 5px; }
body.is-chat .chat-session-menu[popover]:not(:popover-open) { display: none !important; }
body.is-chat .chat-session-menu[popover]:popover-open { display: grid; }
body.is-chat .portal-embedded > .empty::before { display: none; }

body.is-chat .chat-shell[data-show-usage="false"] .chat-usage { display: none; }
.settings-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.settings-check input { width: 16px; height: 16px; min-height: 0; accent-color: #303030; }
.schedule-page-head > .actions { margin: 0; flex: none; }

/* Compact account card. Constrain every direct SVG, including legacy space icons. */
.space-panel { width: min(286px, calc(100vw - 28px)); padding: 8px; border-radius: 18px; box-shadow: 0 15px 48px #2032461c, 0 2px 6px #20324608; }
.space-panel .space-row > svg { width: 18px; height: 18px; flex: 0 0 18px; }
.space-panel .space-row { min-height: 42px; padding: 10px 11px; font-size: 13px; font-weight: 500; border-radius: 10px; }
.space-panel .space-row-copy { min-width: 0; }
.space-panel .space-row-name { font-weight: 550; font-size: 13px; line-height: 1.5; }
.space-panel .space-row-sub { font-size: 11px; line-height: 1.5; color: #8c97a5; white-space: nowrap; }
.space-account-header { display: flex; align-items: center; gap: 12px; padding: 12px 11px 17px; margin-bottom: 5px; border-bottom: 1px solid #edf0f3; }
.space-account-avatar { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: #eaf0f6; color: #425972; font-weight: 600; font-size: 16px; }
.space-account-header > div { display: grid; gap: 4px; min-width: 0; }
.space-account-header strong { font-size: 15px; line-height: 1.4; font-weight: 650; color: #2d3c4e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-account-header div > span { font-size: 11px; font-weight: 450; color: #8b97a5; }
.space-panel .space-account-link { font-size: 13px; font-weight: 500; color: #46566b; min-height: 38px; }
.space-panel .space-account-link .ui-icon { width: 17px; height: 17px; color: #7a899c; flex: none; }

/* Organisation workspace: all styles scoped to the web command center. */
body.is-chat .org-main:has(> .is-console) { padding: 0; background: #f7f8fc; }
body.is-chat .org-main > section.org-page.is-console {
  --cmd-ink: #29283e;
  --cmd-muted: #858598;
  --cmd-accent: #7762d8;
  width: 100%; max-width: 1600px; margin: 0 auto; padding: 32px clamp(20px, 3.2vw, 52px) 48px;
  background: radial-gradient(ellipse at 90% 0, #ebe7fc80, transparent 38%), #f7f8fc;
  color: var(--cmd-ink); animation: none; opacity: 1;
}
.is-console, .is-console * { box-sizing: border-box; }
.is-console .org-head { position: relative; align-items: center; margin: 0 0 28px; padding: 0 0 26px; border-bottom: 1px solid #e5e5f0; }
.cmd-eyebrow { display: flex; align-items: center; gap: 7px; color: #9290aa; font-size: 10px; font-weight: 650; letter-spacing: .12em; line-height: 1.6; }
.is-console .org-head h1 { margin: 9px 0 8px; font-size: clamp(25px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.04em; color: #29283e; overflow-wrap: anywhere; }
.is-console .org-sub { margin: 0; color: #858498; font-size: 13px; }
.cmd-role { position: absolute; right: 0; top: 0; padding: 4px 10px; border: 1px solid #e3dff2; border-radius: 6px; color: #8876b3; background: #f3f0fb; font-size: 11px; }
body.is-chat .is-console button.org-ghost { display: flex; align-items: center; gap: 7px; background: #fff; color: #5d5875; border: 1px solid #e4e1ef; border-radius: 9px; padding: 9px 13px; margin-top: 23px; font-size: 12px; box-shadow: 0 2px 3px #30274303; }
.cmd-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.cmd-shell .cmd-nav { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 5px; padding: 0 0 4px; margin: 0; border: 0; scrollbar-width: thin; }
body.is-chat .is-console .cmd-nav .org-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; color: #858297; font-size: 12px; font-weight: 550; white-space: nowrap; background: transparent; }
body.is-chat .is-console .cmd-nav .org-tab[aria-current="page"] { color: #735cc6; background: #eae5fa; border-color: #e2dbf6; }
body.is-chat .is-console .cmd-nav .org-tab:hover:not(:disabled) { background: #edeaf6; color: #7057bd; }
.cmd-nav .ui-icon { width: 15px; height: 15px; }
.cmd-body, .cmd-root { min-width: 0; }
.cmd-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.cmd-section-intro h2 { margin: 4px 0 0; font-size: 21px !important; font-weight: 650 !important; letter-spacing: -.03em; color: var(--cmd-ink); }
.cmd-section-intro .cmd-eyebrow { font-size: 9px; letter-spacing: .13em; }
.cmd-search { display: flex; align-items: center; gap: 10px; color: #8c879b; font-size: 12px; }
body.is-chat .is-console .cmd-search input { width: 172px; height: 35px; padding: 0 12px; border: 1px solid #e6e4ef; border-radius: 9px; background: #fff; font: inherit; outline-offset: 3px; }
.cmd-banner { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 10px 13px; color: #8b859d; font-size: 11px; line-height: 1.7; background: #f0edf8; border: 1px solid #e9e4f4; border-radius: 9px; }
.cmd-info { display: inline-grid; place-items: center; flex: 0 0 14px; height: 14px; border: 1px solid #b3a7cf; border-radius: 50%; font-size: 9px; font-family: Georgia, serif; font-style: italic; }
.cmd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.cmd-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cmd-span-8 { grid-column: span 8; }
.cmd-span-6 { grid-column: span 6; }
.cmd-span-4 { grid-column: span 4; }
.cmd-span-12 { grid-column: 1 / -1; }
.cmd-grid > div { min-width: 0; }
.cmd-kpi, .cmd-panel, .cmd-drawer { background: #fff; border: 1px solid #ecebf3; border-radius: 15px; padding: 22px; box-shadow: 0 4px 18px #39315e03; min-width: 0; }
.cmd-kpi { position: relative; overflow: hidden; padding: 18px 20px; }
.cmd-kpi-label { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; color: #8c879b; font-size: 11px; font-weight: 550; }
.cmd-kpi-mark { display: inline-grid; place-items: center; width: 25px; height: 25px; color: #9583ce; background: #f0ecfa; border-radius: 7px; font-style: normal; font-size: 15px; }
.cmd-kpi:nth-child(2) .cmd-kpi-mark { background: #e9f5f2; color: #5aab99; }
.cmd-kpi:nth-child(3) .cmd-kpi-mark { background: #fff3e2; color: #cd9b4d; }
.cmd-kpi:nth-child(4) .cmd-kpi-mark { background: #ebf1fc; color: #799ccd; }
.cmd-kpi-value { display: block; margin: 12px 0 5px; color: #37314e; font-size: clamp(23px, 2.5vw, 32px); font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -.04em; overflow-wrap: anywhere; }
.cmd-kpi-note { color: #aaa6b5; font-size: 10px; line-height: 1.6; }
.cmd-kpis > .cmd-kpi:nth-child(n+5) { padding-block: 13px; background: #fbfbfe; box-shadow: none; }
.cmd-kpis > .cmd-kpi:nth-child(n+5) .cmd-kpi-mark { display: none; }
.cmd-kpis > .cmd-kpi:nth-child(n+5) .cmd-kpi-value { font-size: 23px; margin: 8px 0 3px; }
.cmd-preview { font-style: normal; font-weight: 500; font-size: 9px; color: #b29365; background: #faf3e6; border: 1px solid #f0e6d1; border-radius: 4px; padding: 1px 5px; }
.cmd-panel { height: 100%; }
.cmd-panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.cmd-panel-head h3, .cmd-drawer h3 { margin: 0; font-size: 14px; font-weight: 650; color: #454057; letter-spacing: -.02em; }
.cmd-panel-head p, .cmd-drawer p { margin: 6px 0 0; color: #aaa5b6; font-size: 10px; line-height: 1.7; }
.cmd-chart { width: 100%; height: auto; min-height: 170px; max-height: 240px; display: block; overflow: visible; }
.cmd-axis { stroke: #eeecf4; }
.cmd-chart-label { fill: #b1aabb; font-family: inherit; font-size: 10px; }
.cmd-ranges { display: flex; gap: 2px; padding: 3px; background: #f6f5fa; border: 1px solid #efedf5; border-radius: 7px; flex: none; }
body.is-chat .is-console button.cmd-range { min-height: 24px; border: 0; background: transparent; color: #a49bad; border-radius: 5px; padding: 4px 7px; font-size: 10px; font-weight: 500; }
body.is-chat .is-console button.cmd-range[aria-pressed="true"] { background: #fff; color: #8b70c9; box-shadow: 0 1px 4px #3a215b0d; }
body.is-chat .is-console button.cmd-range:hover:not(:disabled) { background: #eee9f8; color: #735cc6; }
.cmd-live, .cmd-activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cmd-live li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f3f1f7; font-size: 12px; }
.cmd-live li:last-child, .cmd-activity li:last-child { border-bottom: 0; }
.cmd-member-avatar { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 11px; background: #eeeafa; color: #8a75be; font-size: 13px; font-weight: 600; }
.cmd-live li:nth-child(3n+2) .cmd-member-avatar { background: #e7f3ef; color: #659f92; }
.cmd-live li:nth-child(3n+3) .cmd-member-avatar { background: #fcf0e1; color: #c39b65; }
.cmd-member-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.cmd-member-copy strong { font-size: 12px; font-weight: 600; color: #5b536e; overflow-wrap: anywhere; }
.cmd-member-copy > span { color: #b1aaba; font-size: 10px; }
.cmd-status { display: inline-flex; align-items: center; gap: 5px; color: #a49eae; background: #f5f4f8; padding: 4px 7px; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.cmd-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cmd-status[data-active="true"] { color: #62a795; background: #edf7f3; }
.cmd-activity li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 14px 18px; border-bottom: 1px solid #f3f1f7; position: relative; color: #8f879e; font-size: 12px; line-height: 1.8; }
.cmd-activity li::before { content: ''; position: absolute; left: 0; top: 23px; width: 6px; height: 6px; border-radius: 50%; background: #b8a6df; box-shadow: 0 0 0 4px #f4f0fa; }
.cmd-activity time { color: #b8b0c2; font-size: 10px; white-space: nowrap; }
.cmd-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.cmd-legend > span { display: flex; gap: 5px; align-items: center; color: #a79daf; font-size: 10px; }
.cmd-legend i, .cmd-person i { display: inline-block; width: 7px; height: 7px; border-radius: 3px; flex: none; }
.cmd-swatch-0 { background: #7863df; }.cmd-swatch-1 { background: #38a69a; }.cmd-swatch-2 { background: #e4af63; }.cmd-swatch-3 { background: #d7809c; }.cmd-swatch-4 { background: #6b9cdb; }.cmd-swatch-5 { background: #a590d1; }
.cmd-table-wrap { overflow: auto; max-width: 100%; }
.cmd-table { width: 100%; border-collapse: collapse; color: #7b718c; font-size: 12px; }
.cmd-table th, .cmd-table td { padding: 15px 12px; border-bottom: 1px solid #f0edf5; text-align: left; white-space: nowrap; }
.cmd-table th { color: #a69bac; background: #faf9fc; font-weight: 500; font-size: 11px; }
.cmd-table tbody tr:hover { background: #faf8ff; }
.cmd-person { display: inline-flex; align-items: center; gap: 9px; color: #645775; font-weight: 550; }
body.is-chat .is-console .cmd-table input[type="checkbox"] { width: 14px; height: 14px; accent-color: #8a73cf; min-height: 0; }
.cmd-drawer dl { display: grid; gap: 12px; margin: 20px 0; }
.cmd-drawer dl > div { display: flex; justify-content: space-between; gap: 12px; color: #8b809a; font-size: 12px; }
.cmd-drawer dd { margin: 0; color: #655277; }
.cmd-empty { display: grid; place-items: center; min-height: 170px; color: #a69bae; font-size: 12px; text-align: center; }
.is-console .org-card { border-color: #ecebf3; border-radius: 15px; padding: 22px; }
.is-console .org-panel { gap: 18px; }
.is-console button:focus-visible, .is-console input:focus-visible { outline: 2px solid #9680d8; outline-offset: 3px; }
@media (min-width: 1600px) { .is-console .cmd-kpi { padding-block: 23px; } }
@media (max-width: 1200px) {
  .cmd-panel-head { flex-wrap: wrap; }
  .cmd-kpi { padding: 15px; }
  .cmd-kpi-label { font-size: 10px; }
  .cmd-kpi-mark { width: 21px; height: 21px; }
}
@media (max-width: 980px) {
  .cmd-span-8, .cmd-span-4 { grid-column: 1 / -1; }
  .cmd-live { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .cmd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.is-chat .org-main > section.org-page.is-console { padding: 22px 16px 36px; }
  .is-console .org-head { margin-bottom: 18px; padding-bottom: 20px; gap: 12px; align-items: stretch; }
  .is-console .org-head h1 { padding-right: 52px; }
  body.is-chat .is-console button.org-ghost { align-self: flex-start; margin: 0; }
  .cmd-shell { gap: 20px; }
  .cmd-toolbar { gap: 10px; flex-wrap: wrap; }
  .cmd-search { margin-top: 4px; }
  .cmd-banner { align-items: flex-start; font-size: 10px; }
  .cmd-info { margin-top: 3px; }
  .cmd-grid { gap: 12px; }
  .cmd-kpis { gap: 10px; }
  .cmd-kpi { padding: 14px 12px; border-radius: 12px; }
  .cmd-kpi-value { font-size: 26px; }
  .cmd-kpi-note { font-size: 9px; }
  .cmd-panel, .cmd-drawer { padding: 18px 15px; }
  .cmd-span-6 { grid-column: 1 / -1; }
  .cmd-live { grid-template-columns: 1fr; }
  .cmd-ranges { flex-wrap: wrap; }
  .cmd-chart { min-height: 120px; }
}
/* Keep the command hierarchy readable over the portal's shared typography. */
body.is-chat .org-main .is-console .org-head h1 { font-size: clamp(26px, 2.6vw, 34px); }
body.is-chat .org-main .is-console button.org-ghost { background: #fff !important; color: #696079 !important; }
.cmd-kpi-label { color: #71697f; font-size: 12px; }
.cmd-kpi-note, .cmd-panel-head p { color: #8d849b; font-size: 11px; }
.cmd-banner { color: #827393; }
.cmd-member-copy > span, .cmd-activity time { color: #94859f; }
.cmd-kpi:first-child { background: #7561cc; border-color: #7561cc; box-shadow: 0 6px 16px #7561cc20; }
.cmd-kpi:first-child::after { content: ''; position: absolute; right: -28px; top: -38px; width: 120px; height: 120px; border: 1px solid #ffffff18; border-radius: 50%; box-shadow: 0 0 0 18px #ffffff05, 0 0 0 38px #ffffff04; pointer-events: none; }
.cmd-kpi:first-child .cmd-kpi-label { color: #ece5ff; }
.cmd-kpi:first-child .cmd-kpi-mark { background: #ffffff1f; color: #fff; }
.cmd-kpi:first-child .cmd-kpi-value { color: #fff; }
.cmd-kpi:first-child .cmd-kpi-note { color: #ddd3f9; }
@media (min-width: 601px) {
  body.is-chat .org-main > section.org-page.is-console { padding-top: 24px; }
  .is-console .org-head { margin-bottom: 20px; padding-bottom: 20px; }
  .cmd-shell { gap: 20px; }
  .cmd-banner { margin-bottom: 16px; }
  .cmd-kpi { padding-block: 15px; }
  .cmd-kpi-value { margin-top: 10px; font-size: 30px; }
  .cmd-kpis > .cmd-kpi:nth-child(n+5) { padding-block: 11px; }
}
/* 驾驶舱同一套纸面：去掉组织控制台的紫色光晕与胶囊页签，避免新的中性数据区和旧的
   紫色外壳拼在一起。只作用于组织控制台，不影响个人对话与其它页面。 */
body.is-chat .org-main:has(> .is-console) { background: #f6f6f5; }
body.is-chat .org-main > section.org-page.is-console {
  background: #f6f6f5;
  color: #1d1d1b;
}
body.is-chat .is-console .org-head { border-bottom-color: #e6e5e0; }
body.is-chat .is-console .cmd-eyebrow { color: #a3a19a; }
body.is-chat .is-console .org-head h1 { color: #1d1d1b; }
body.is-chat .is-console .cmd-nav {
  gap: 22px; padding: 0; border-bottom: 1px solid #e6e5e0;
}
body.is-chat .is-console .cmd-nav .org-tab {
  min-height: 0; padding: 8px 0 10px;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; color: #8d8c83;
}
body.is-chat .is-console .cmd-nav .org-tab[aria-current="page"] {
  border: 0; border-bottom: 2px solid #5b4bc7; border-radius: 0;
  background: transparent; color: #1d1d1b;
}
body.is-chat .is-console .cmd-nav .org-tab:hover:not(:disabled) {
  background: transparent; color: #4b3cb0;
}


/* Organisation type is a label, not a verification badge. */
.is-console .org-kind-badge {
  display: inline-flex; align-items: center; vertical-align: middle;
  height: 18px; margin-left: 8px; padding: 0 6px;
  border: 1px solid #e3e1da; border-radius: 4px;
  background: #f3f1ec; color: #77746a;
  font-size: 9.5px; font-weight: 500; letter-spacing: 0;
}

/* ------------------------------------------------------------ 成员任务页
 * 成员只处理自己的任务：进展、阻塞、请求。没有金额、验收和成员管理入口。
 * 视觉与驾驶舱同一套中性纸面，但密度更适合逐条操作。
 */
.mem-shell { display: block; }
.mem-back { margin: 0 0 14px; }
.mem-page { max-width: 980px; }
.mem-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.mem-list { display: grid; gap: 14px; }
.mem-task {
  display: grid; gap: 12px;
  padding: 18px 20px 20px;
  border: 1px solid #e6e5e0; border-radius: 12px; background: #fff;
}
.mem-task-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.mem-task-title { min-width: 0; }
.mem-task-title h2 { margin: 0; font-size: 15px; font-weight: 640; color: #1d1d1b; letter-spacing: -.01em; }
.mem-task-title p { margin: 6px 0 0; color: #8b8b85; font-size: 10.5px; line-height: 1.7; }
.mem-task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.mem-status { display: inline-flex; align-items: center; gap: 5px; color: #8b8b85; font-size: 10.5px; }
.mem-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mem-status.run { color: #1e7a4e; }
.mem-status.wait { color: #a4661b; }
.mem-status.block, .mem-status.fail { color: #a63d35; }
.mem-status.done { color: #5d5d58; }
.mem-progress { display: inline-flex; align-items: center; gap: 7px; }
.mem-bar { display: inline-flex; gap: 2px; }
.mem-bar i { width: 12px; height: 3px; border-radius: 2px; background: #e7e6e1; }
.mem-bar i.on { background: #5b4bc7; }
.mem-progress em { color: #8b8b85; font-size: 9.5px; font-style: normal; }
.mem-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mem-step {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border: 1px solid #efeee9; border-radius: 8px;
  color: #5d5d58; font-size: 11px;
}
.mem-step-seq { color: #aaa9a2; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.mem-step-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.mem-step-select {
  flex: 0 0 auto; width: 104px;
  height: 26px; min-height: 0; padding: 0 6px;
  border: 1px solid #e2e1db; border-radius: 6px; background: #fff;
  color: #5d5d58; font-size: 10px;
}
.mem-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mem-form-wide { width: 100%; }
.mem-input {
  flex: 1 1 260px; min-width: 160px; height: 32px; padding: 0 10px;
  border: 1px solid #e2e1db; border-radius: 7px; background: #fff;
  color: #1d1d1b; font-size: 11px;
}
.mem-input:focus { outline: 2px solid #e2ddf7; outline-offset: 1px; border-color: #5b4bc7; }
.mem-primary, .mem-secondary {
  height: 32px; min-height: 0; padding: 0 13px;
  border-radius: 7px; font-size: 10.5px; font-weight: 550; cursor: pointer;
}
.mem-primary { border: 1px solid #5b4bc7; background: #5b4bc7; color: #fff; }
.mem-secondary { border: 1px solid #e2e1db; background: #fbfbf8; color: #5d5d58; }
.mem-primary:disabled, .mem-secondary:disabled { opacity: .55; cursor: default; }
.mem-blocked { flex: 1 1 300px; color: #a63d35; font-size: 10.5px; line-height: 1.6; }
.mem-muted { margin: 0; color: #aaa9a2; font-size: 10.5px; }
.mem-requests { display: grid; gap: 7px; margin: 2px 0 0; padding: 10px 0 0; border-top: 1px dashed #efeee9; list-style: none; }
.mem-requests li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; font-size: 10.5px; color: #5d5d58; }
.mem-requests time { margin-left: auto; color: #aaa9a2; font-size: 9px; }
.mem-request-badge { color: #a4661b; font-size: 9.5px; }
.mem-request-badge.resolved { color: #1e7a4e; }
.mem-request-body { overflow-wrap: anywhere; }
.mem-request-resolution { color: #1e7a4e; }
.mem-empty {
  display: grid; gap: 6px; place-items: start;
  padding: 40px 22px; border: 1px dashed #e2e1db; border-radius: 12px;
  color: #8b8b85; font-size: 11px;
}
.mem-empty strong { color: #5d5d58; font-size: 12.5px; }
.mem-error { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #f0d9d5; border-radius: 8px; background: #fdf7f6; color: #a63d35; font-size: 10.5px; }
.mem-error strong { font-size: 11.5px; }

@media (max-width: 720px) {
  .mem-task { padding: 15px 14px 16px; }
  .mem-task-head { flex-direction: column; gap: 8px; }
  .mem-task-side { flex-direction: row; align-items: center; }
  .mem-input { flex-basis: 100%; }
  .mem-primary, .mem-secondary { flex: 1; }
}

/* The portal has a global `button:hover { background: indigo }` rule. Inside the org
 * pages, links and secondary/primary buttons must keep their own hover state instead of
 * turning blue on every mouse-over. */
body.is-chat .org-main button.ck-link:hover,
body.is-chat .org-main button.ck-mini-link:hover {
  background: transparent;
  color: #5b4bc7;
}
body.is-chat .org-main button.mem-primary:hover:not(:disabled) {
  background: #4a3cb5;
  color: #fff;
}
body.is-chat .org-main button.mem-secondary:hover:not(:disabled) {
  background: #f2f1ec;
  color: #5d5d58;
}
body.is-chat .org-main .ck-refresh:hover,
body.is-chat .org-main .ck-seg button.ck-btn:hover {
  background: #f2f1ec;
  color: #5d5d58;
}
body.is-chat .org-main .ck-seg button.ck-btn[aria-pressed="true"]:hover {
  background: #fff;
  color: #1d1d1b;
}

/* ------------------------------------------------ 真实数据命令台补充（2026-11-11）
 * 旧版预览图表的样式已不再使用；这里只补真实表格、状态与加载/错误态。
 */
.cmd-toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmd-status.run { color: #5f9e86; background: #edf7f3; }
.cmd-status.wait { color: #b58a3f; background: #faf3e4; }
.cmd-status.block, .cmd-status.fail { color: #b06a63; background: #fbeeed; }
.cmd-status.done { color: #7b6aa8; background: #f3f0fa; }
.cmd-status.idle { color: #a49eae; background: #f5f4f8; }
.cmd-loading { padding: 60px 24px; border: 1px solid #ecebf3; border-radius: 15px; background: #fff; color: #858598; font-size: 12px; text-align: center; }
.cmd-error { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid #f0d9d5; border-radius: 12px; background: #fdf7f6; color: #a63d35; font-size: 12px; }
.cmd-inline-error { margin: 0; padding: 8px 12px; border: 1px solid #f0d9d5; border-radius: 8px; background: #fdf7f6; color: #a63d35; font-size: 11px; }
.cmd-empty { display: grid; gap: 6px; place-items: center; min-height: 170px; padding: 26px 16px; color: #a69bae; font-size: 12px; text-align: center; }
.cmd-empty strong { color: #6f6887; font-size: 13px; }
.cmd-tag { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid #ecebf3; border-radius: 5px; color: #8b839e; font-size: 10px; }
.cmd-table td .cmd-person { font-weight: 550; color: #454057; }
.cmd-download { color: #6a56c0; font-size: 11px; text-decoration: none; }
.cmd-download:hover { text-decoration: underline; }
.cmd-legend-line { display: inline-block; width: 14px; height: 2px; margin-right: 6px; background: #5b4bc7; vertical-align: middle; }
.cmd-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .cmd-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------ 创建组织 / 公司（全页）
 * 这是空间入口，不是侧栏小表单：左侧填写、右侧说明，宽屏两列、窄屏单列。
 */
.oc-shell { width: 100%; max-width: 1220px; margin: 0 auto; position: relative; }
.oc-back { margin: 0 0 14px; }
.oc-page { width: 100%; max-width: none; padding: 0; }
.oc-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  padding: 34px 36px 30px; margin-bottom: 22px;
  border: 1px solid #e7e4f1; border-radius: 22px;
  background:
    radial-gradient(720px 280px at 100% -20%, #e8e2fb 0%, transparent 70%),
    linear-gradient(140deg, #fbfaff 0%, #f5f3fb 100%);
}
.oc-hero-copy { max-width: 720px; }
.oc-eyebrow { color: #8b7fb0; font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.oc-hero h1 { margin: 10px 0 10px; color: #221f33; font-size: clamp(30px, 3.4vw, 44px); font-weight: 720; letter-spacing: -.045em; line-height: 1.1; }
.oc-hero p { margin: 0; max-width: 640px; color: #6f6887; font-size: 13px; line-height: 1.8; }
.oc-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.oc-hero-meta span { padding: 5px 10px; border: 1px solid #e2ddf2; border-radius: 999px; background: #fff; color: #7b6aa8; font-size: 10px; white-space: nowrap; }
.oc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.oc-main { display: grid; gap: 16px; min-width: 0; }
.oc-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.oc-type {
  display: grid; gap: 7px; justify-items: start; text-align: left;
  padding: 20px 20px 18px; border: 1px solid #e4e1ee; border-radius: 14px;
  background: #fff; color: #6f6887; cursor: pointer;
}
.oc-type strong { color: #2b2740; font-size: 15px; font-weight: 650; }
.oc-type span:last-child { font-size: 11.5px; line-height: 1.65; color: #857f9b; max-width: 320px; }
.oc-type-mark {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px;
  border-radius: 10px; background: #f1edfb; color: #6a56c0; font-size: 14px; font-weight: 700;
}
.oc-type[aria-pressed="true"] { border-color: #8f7ad9; box-shadow: 0 0 0 3px #efeafb; }
.oc-type[aria-pressed="true"] .oc-type-mark { background: #6a56c0; color: #fff; }
.oc-search, .oc-verify, .oc-card {
  padding: 22px 24px; border: 1px solid #e9e6f1; border-radius: 16px; background: #fff;
}
.oc-search-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.oc-search-head > div { display: grid; gap: 4px; }
.oc-search-head strong { color: #2b2740; font-size: 13px; }
.oc-search-head span { color: #8f89a3; font-size: 11px; line-height: 1.65; }
.oc-search > .oc-input { width: 100%; margin-top: 2px; }
.oc-results { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.oc-result {
  display: grid; gap: 3px; width: 100%; text-align: left;
  padding: 10px 12px; border: 1px solid #ece9f4; border-radius: 9px;
  background: #fcfbff; color: #6f6887; cursor: pointer;
}
.oc-result strong { color: #2b2740; font-size: 12px; }
.oc-result span { font-size: 10.5px; color: #8f89a3; }
.oc-result em { font-style: normal; font-size: 10px; color: #b58a3f; }
.oc-result:hover { border-color: #b7a8e4; background: #f8f5ff; }
.oc-hint { margin: 10px 0 0; color: #a39166; font-size: 10.5px; line-height: 1.7; }
.oc-verify { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.oc-verify-copy { display: grid; gap: 4px; }
.oc-verify-copy strong { color: #2b2740; font-size: 13px; }
.oc-verify-copy span { color: #8f89a3; font-size: 11px; line-height: 1.65; }
.oc-verify-ok { padding: 5px 10px; border-radius: 999px; background: #edf7f3; color: #4f9279; font-size: 10px; font-weight: 600; white-space: nowrap; }
.oc-verify-blocked { color: #b06a63; font-size: 11px; white-space: nowrap; }
.oc-verify-form { display: flex; gap: 8px; flex: none; }
.oc-code { width: 170px; }
.oc-card-head { margin-bottom: 18px; }
.oc-card-head h2 { margin: 0 0 6px; color: #2b2740; font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.oc-card-head p { margin: 0; color: #8f89a3; font-size: 11px; line-height: 1.7; }
.oc-field { display: grid; gap: 6px; margin-bottom: 14px; }
.oc-field-label { color: #5f5875; font-size: 11px; font-weight: 600; }
.oc-field-note { color: #9d97ae; font-size: 10px; line-height: 1.6; }
.oc-input {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid #e2dfea; border-radius: 9px; background: #fff;
  color: #2b2740; font-size: 12px;
}
.oc-input:focus { outline: 2px solid #e6e0fa; outline-offset: 1px; border-color: #8f7ad9; }
.oc-textarea { height: auto; min-height: 74px; padding: 9px 11px; resize: vertical; }
.oc-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.oc-grid-2 .oc-field:nth-child(5), .oc-grid-2 .oc-field:nth-child(6) { grid-column: 1 / -1; }
.oc-colors { display: flex; gap: 8px; }
.oc-color { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ddd8e8; cursor: pointer; }
.oc-color[aria-pressed="true"] { box-shadow: 0 0 0 2px #6a56c0; }
.oc-color-slate { background: #7c8794; }
.oc-color-sage { background: #83a48f; }
.oc-color-sand { background: #c4ae86; }
.oc-color-clay { background: #b98176; }
.oc-error { margin: 4px 0 14px; padding: 10px 12px; border: 1px solid #f0d9d5; border-radius: 9px; background: #fdf7f6; color: #a63d35; font-size: 11px; line-height: 1.65; }
.oc-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.oc-button { height: 38px; min-height: 0; padding: 0 18px; border-radius: 9px; font-size: 12px; font-weight: 600; cursor: pointer; }
.oc-button-primary { border: 1px solid #6a56c0; background: #6a56c0; color: #fff; }
.oc-button-primary:disabled { opacity: .5; cursor: default; }
.oc-button-secondary { border: 1px solid #e2dfea; background: #fbfaff; color: #5f5875; }
.oc-button-ghost { border: 1px solid transparent; background: transparent; color: #8f89a3; }
.oc-submit-hint { color: #b06a63; font-size: 10px; }
.oc-aside { position: sticky; top: 18px; padding: 22px 22px 20px; border: 1px solid #ece9f4; border-radius: 16px; background: #fbfaff; }
.oc-aside h3 { margin: 0 0 14px; color: #2b2740; font-size: 13px; font-weight: 650; }
.oc-aside ol { display: grid; gap: 14px; margin: 0; padding-left: 18px; color: #7d7692; font-size: 11px; line-height: 1.75; }
.oc-aside li strong { display: block; color: #4b4462; font-size: 11.5px; margin-bottom: 2px; }
.oc-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #ece9f4; color: #9d97ae; font-size: 10px; line-height: 1.7; }
@media (max-width: 1080px) {
  .oc-layout { grid-template-columns: minmax(0, 1fr); }
  .oc-aside { position: static; }
}
@media (max-width: 720px) {
  .oc-hero { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
  .oc-types, .oc-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .oc-grid-2 .oc-field:nth-child(5), .oc-grid-2 .oc-field:nth-child(6) { grid-column: auto; }
  .oc-verify { flex-direction: column; align-items: flex-start; }
  .oc-search, .oc-verify, .oc-card { padding: 18px 16px; }
}


/* 创建页的按钮必须保持自己的纸面样式：全局按钮规则会给所有按钮刷黑底。 */
body.is-chat .org-main button.oc-type,
body.is-chat .org-main button.oc-type:hover {
  background: #fff; color: #6f6887;
}
body.is-chat .org-main button.oc-type[aria-pressed="true"] { background: #fff; }
body.is-chat .org-main button.oc-color,
body.is-chat .org-main button.oc-color:hover { background: transparent; }
body.is-chat .org-main button.oc-result,
body.is-chat .org-main button.oc-result:hover { background: #fcfbff; color: #6f6887; }
body.is-chat .org-main button.oc-button-ghost,
body.is-chat .org-main button.oc-button-ghost:hover { background: transparent; color: #8f89a3; }
body.is-chat .org-main button.oc-button-secondary,
body.is-chat .org-main button.oc-button-secondary:hover { background: #fbfaff; color: #5f5875; }
body.is-chat .org-main button.oc-button-primary,
body.is-chat .org-main button.oc-button-primary:hover { background: #6a56c0; color: #fff; }
body.is-chat .org-main button.oc-button-primary:disabled { background: #b9aee6; }
body.is-chat .org-main button.oc-color-slate { background: #7c8794; }
body.is-chat .org-main button.oc-color-sage { background: #83a48f; }
body.is-chat .org-main button.oc-color-sand { background: #c4ae86; }
body.is-chat .org-main button.oc-color-clay { background: #b98176; }
body.is-chat .org-main button.oc-color[aria-pressed="true"] { box-shadow: 0 0 0 2px #6a56c0; }

/* 企业选择 → 资料核对 → 人工确认。沿用创建页的颜色、间距与移动端网格。 */
.oc-host .oc-page { animation: none; }
.oc-search-status { margin-top: 10px; color: #756c89; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.oc-result { width: 100%; text-align: left; overflow-wrap: anywhere; }
.oc-result[aria-selected="true"] { border-color: #9b85c7; background: #f3eefb; }
.oc-lookup-summary { display: grid; gap: 5px; padding: 12px 14px; margin-bottom: 18px; background: #f5f2fa; border: 1px solid #e7e1ef; border-radius: 10px; color: #756c89; font-size: 11px; line-height: 1.65; }
.oc-lookup-summary strong { color: #514364; }
.oc-input[readonly] { background: #f4f2f6; color: #665d75; }
.oc-confirm { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0 18px; color: #665d75; font-size: 12px; line-height: 1.7; cursor: pointer; }
.oc-confirm input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #79609d; }
