@import url("./account.css?v=20261102-1");
@import url("./sidebar-controls.css");
@import url("./consumption.css?v=20261102-1");
@import url("./platform-admin.css?v=20261102-1");
@import url("./dashboard.css?v=tooltip-contrast");
@import url("./dashboard/status.css");
@import url("./matrix/feedback.css");
@import url("./matrix/platform-filter.css");
@import url("./matrix/works-layout.css");
@import url("./matrix/dialog.css?v=20261102-1");
@import url("./login.css?v=20261109-entry");
@import url("./sticky-controls.css");
/* Only the small enterprise controls use new styles; the workbench skin stays original. */
html[data-enterprise-workbench="true"] body:not(.enterprise-authenticated) .page {
  visibility: hidden;
}

.side-scope[hidden] {
  display: none !important;
}

.enterprise-login-card input,
.side-scope select {
  min-width: 0;
  padding: 9px 11px;
  color: var(--text, var(--theme-ink));
  background: var(--surface, color-mix(in srgb,var(--theme-sunken) 4%,transparent));
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent));
  border-radius: 9px;
}

.side-scope select {
  width: 100%;
  padding: 6px 9px;
  font-size: 13px;
  background: var(--surface-opaque, var(--surface-raised));
}

/* 企业名称与 Logo 放在品牌区，下方只保留项目选择。 */
.enterprise-brand-name { display: block; min-width: 0; margin: 0; }
.enterprise-brand-name [hidden] { display: none !important; }
.enterprise-brand-name .brand-name {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enterprise-brand-name select {
  padding: 0 18px 0 0;
  color: inherit;
  background-color: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.enterprise-brand-name select option { color: var(--text); background: var(--surface-opaque); }
.enterprise-workbench .brand-txt { flex: 1; min-width: 0; }
.enterprise-workbench .brand-badge img { object-fit: contain; object-position: center; }

.side-scope {
  position: relative;
  flex: 0 0 auto;
  margin: 0 14px 6px;
  padding: 8px 12px;
  color: var(--text, var(--theme-ink));
  background: var(--surface, color-mix(in srgb,var(--theme-ink) 3.5%,transparent));
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 16%,transparent));
  border-radius: 12px;
}

.side-scope-summary { display: none; }
.side-scope [hidden] { display: none !important; }
.side-scope-body { display: grid; gap: 6px; }
.side-scope-field { display: grid; gap: 3px; margin: 0; color: var(--text, var(--theme-ink)); }
.side-scope-label { color: var(--text-3, var(--theme-accent)); font-size: 11px; letter-spacing: .08em; }
.side-scope-static {
  overflow: hidden;
  color: var(--text, var(--theme-ink));
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 侧栏底部账号卡：只做账号，不再单占顶部横栏 */
.side-account {
  position: relative;
  flex: 0 0 auto;
  margin: 0 14px 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 14%,transparent));
}

.side-account > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  overflow: hidden;
  color: var(--text, var(--theme-ink));
  background: var(--surface-opaque, var(--surface-raised));
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 16%,transparent));
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.side-account > summary::-webkit-details-marker { display: none; }
.side-account-icon { display: inline-flex; flex-shrink: 0; }
.side-account > summary:has(.enterprise-account-avatar:not([hidden])) .side-account-icon { display: none; }

.side-account > summary #enterprise-account-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-account .enterprise-account-menu-panel {
  top: auto;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 0;
}

.enterprise-workbench #sidebar-refresh { display: none; }
.enterprise-workbench .enterprise-chat-partial { align-items: flex-start; flex-direction: column; gap: 5px; }
.enterprise-workbench .enterprise-chat-partial .bubble { opacity: .82; border-style: dashed; }
.enterprise-workbench .enterprise-chat-partial-label { color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; }
.enterprise-workbench .enterprise-chat-sources { max-width: min(760px, 88%); margin: 2px 0 8px; padding: 8px 11px; border-left: 2px solid var(--a1, var(--theme-line)); color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; }
.enterprise-workbench .enterprise-chat-sources-title { margin-bottom: 3px; font-weight: 600; }
.enterprise-workbench .enterprise-chat-source { display: block; max-width: 100%; padding: 1px 0; color: var(--text-2, var(--theme-ink-secondary)); background: transparent; border: 0; text-align: left; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; cursor: pointer; }
.enterprise-workbench .enterprise-chat-source:hover { color: var(--text, var(--theme-ink)); }
.enterprise-workbench .enterprise-chat-source:disabled { cursor: default; text-decoration: none; }
.enterprise-chat-citation-dialog { width: min(760px, calc(100vw - 32px)); max-height: min(82vh, 900px); padding: 20px; color: var(--text, var(--theme-ink)); background: var(--surface-opaque, var(--surface-raised)); border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 14px; box-shadow: 0 24px 80px color-mix(in srgb,var(--theme-overlay) 38%,transparent); }
.enterprise-chat-citation-dialog::backdrop { background: color-mix(in srgb,var(--theme-overlay) 60%,transparent); }
.enterprise-chat-citation-dialog h3 { margin: 0 0 5px; font-size: 18px; }
.enterprise-chat-citation-meta { color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; }
.enterprise-chat-citation-text { max-height: 62vh; overflow: auto; padding: 12px; color: inherit; background: var(--surface, color-mix(in srgb,var(--theme-ink) 4%,transparent)); border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.enterprise-chat-citation-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.enterprise-workbench .enterprise-task-conflict-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.enterprise-workbench .enterprise-task-conflict-actions .btn { color: var(--text, var(--theme-ink)); }
.enterprise-workbench .enterprise-login-card label { margin: 4px 0 -7px; color: var(--text-2, var(--theme-ink-secondary)); font-size: 13px; }
.enterprise-workbench .enterprise-login-card button { min-height: 42px; }

.enterprise-workbench #view-benchmark .enterprise-benchmark-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color:var(--theme-accent-ink);
  border-color: var(--line, var(--theme-line));
  background: var(--surface-2, var(--theme-surface));
}

.enterprise-workbench #view-benchmark .enterprise-benchmark-avatar-small {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
}

.enterprise-workbench #view-benchmark {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.enterprise-workbench #view-benchmark #benchmark-page {
  --bm-accent: var(--a1);
}

.bmv-more { display: flex; justify-content: center; margin-top: 14px; }
.bmv-inline-error { margin: 10px 0; color: var(--danger, var(--theme-danger)); font-size: 12px; }

.enterprise-dashboard-page { display: grid; gap: 18px; padding: 18px 22px 28px; }
.enterprise-dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.enterprise-dashboard-head .ph-kicker { color:var(--theme-accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.enterprise-dashboard-head h1 { margin: 3px 0 0; color: var(--text, var(--theme-ink)); font-size: 22px; font-weight: 700; }
.enterprise-dashboard-head p { margin: 5px 0 0; color: var(--text-2, var(--theme-ink-secondary)); font-size: 12.5px; }
.enterprise-dashboard-message { min-height: 20px; color: var(--text-2, var(--theme-ink-secondary)); }
.enterprise-dashboard-message.is-error { color: var(--theme-danger); }

.enterprise-workbench #view-chat .enterprise-chat-ai-notice {
  max-width: var(--chat-col, 900px);
  margin: 0 auto;
  padding: 10px 14px;
  color: var(--text-2, var(--theme-ink-secondary));
  background: var(--surface, color-mix(in srgb,var(--theme-ink) 4%,transparent));
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent));
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
}
.enterprise-chat-notice-help { margin-top: 3px; }
.enterprise-chat-notice-help > summary { cursor: pointer; color: var(--text-2, var(--theme-ink-secondary)); }
.enterprise-chat-notice-help p { margin: 6px 0 0; line-height: 1.65; }
/* 输入框上方的「选题」开关：开启时用主题色描边，避免和普通快捷按钮混淆。 */
.enterprise-workbench .topic-skill-toggle[aria-pressed="true"] {
  color: var(--a1, var(--theme-accent));
  border-color: var(--a1, var(--theme-line));
  background: color-mix(in srgb, var(--a1, var(--theme-accent-soft)) 15%, transparent);
}
.enterprise-workbench .topic-skill-toggle[aria-pressed="true"]::before {
  content: "●";
  margin-right: 6px;
  font-size: 9px;
  vertical-align: 1px;
}
.enterprise-chat-jump {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 24%,transparent));
  border-radius: 999px;
  color: var(--text, var(--theme-ink));
  background: var(--surface-opaque, var(--surface-raised));
  box-shadow: 0 8px 22px color-mix(in srgb,var(--theme-overlay) 18%,transparent);
  font-size: 12px;
  cursor: pointer;
}

.enterprise-workbench .enterprise-knowledge-context {
  position: relative;
  flex: 0 0 auto;
}
.enterprise-workbench .enterprise-knowledge-context summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 9px;
  color: var(--text-2, var(--theme-ink-secondary));
  background: var(--surface, color-mix(in srgb,var(--theme-ink) 4%,transparent));
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent));
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  white-space: nowrap;
}
.enterprise-workbench .enterprise-knowledge-context summary::-webkit-details-marker { display: none; }
.enterprise-workbench .enterprise-knowledge-context[open] summary,
.enterprise-workbench .enterprise-knowledge-context summary:hover {
  color: var(--text, var(--theme-ink));
  border-color: var(--a1);
}
.enterprise-workbench .enterprise-knowledge-context-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 28px));
  max-height: min(440px, calc(100vh - 100px));
  overflow: auto;
  padding: 12px;
  color: var(--text, var(--theme-ink));
  background: var(--surface-opaque, var(--surface-raised));
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 24%,transparent));
  border-radius: 10px;
  box-shadow: 0 14px 36px color-mix(in srgb,var(--theme-overlay) 32%,transparent);
}
.enterprise-workbench .enterprise-knowledge-context-help,
.enterprise-workbench .enterprise-knowledge-context-status {
  margin: 0 0 9px;
  color: var(--text-2, var(--theme-ink-secondary));
  font-size: 11.5px;
  line-height: 1.55;
}
.enterprise-workbench .enterprise-knowledge-context-status { margin: 9px 0 0; }
.enterprise-workbench .enterprise-project-image-preview {
  display: grid;
  place-items: center;
  max-height: 70vh;
  overflow: auto;
  padding: 10px;
  background: var(--surface, color-mix(in srgb,var(--theme-ink) 4%,transparent));
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 16%,transparent));
  border-radius: 10px;
}
.enterprise-workbench .enterprise-project-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
}
.enterprise-workbench .enterprise-knowledge-context-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 6px 4px;
  border-top: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 12%,transparent));
  cursor: pointer;
}
.enterprise-workbench .enterprise-knowledge-context-option input { margin: 0; accent-color: var(--a1); }
.enterprise-workbench .enterprise-knowledge-context-title {
  overflow: hidden;
  color: var(--text, var(--theme-ink));
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enterprise-workbench .enterprise-knowledge-context-meta { color: var(--text-3, var(--theme-accent)); font-size: 10px; white-space: nowrap; }
.enterprise-workbench .enterprise-knowledge-context-option:has(input:disabled) { cursor: default; opacity: .66; }

@media (max-width: 760px) {
  .enterprise-dashboard-page { padding: 14px 12px 22px; }
}

.enterprise-account-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 160px;
  padding: 6px;
  background: var(--surface-opaque, var(--surface-raised));
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent));
  border-radius: 10px;
  box-shadow: 0 12px 32px color-mix(in srgb,var(--theme-overlay) 28%,transparent);
}
.enterprise-account-menu-panel a,
.enterprise-account-menu-panel button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  color: var(--text, var(--theme-ink));
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.enterprise-account-menu-panel a:hover,
.enterprise-account-menu-panel button:hover { background: var(--surface, color-mix(in srgb,var(--theme-ink) 7%,transparent)); }
#enterprise-member-role {
  color: var(--text-2, var(--theme-ink-secondary));
  font-size: 12px;
}

.enterprise-task-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.enterprise-task-filters select {
  min-height: 34px;
  padding: 5px 9px;
  color: var(--text, var(--theme-ink));
  background: var(--surface, color-mix(in srgb,var(--theme-sunken) 4%,transparent));
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent));
  border-radius: 8px;
}

.enterprise-deploying {
  display: grid;
  min-height: 48vh;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--text-2, var(--theme-ink-secondary));
}

.enterprise-deploying h1 {
  margin: 0;
  color: var(--text, var(--theme-ink));
  font-size: 24px;
}

.op-task-dialog [data-enterprise-save-error] {
  color: var(--theme-danger);
}

@media (max-width: 760px) {
  #enterprise-member-role { display: none; }
}

/* Original skills viewer styles; kept in the local viewer and enterprise CSP stylesheet. */
#view-skills{overflow:hidden;}
#view-skills #skills-page{height:100%;min-height:0;display:flex;flex-direction:column;}
#view-skills #skills-page>.page-header{flex-shrink:0;}
.sk-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;}
.sk-count{font-size:12.5px;color:var(--theme-ink-subtle);white-space:nowrap;padding-bottom:5px;}
.sk-layout{display:flex;flex:1;min-height:0;gap:20px;align-items:stretch;overflow:hidden;padding:0 24px 24px;}
.sk-list{width:308px;flex-shrink:0;min-height:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;scrollbar-gutter:stable;padding-right:4px;}
.sk-item{background:var(--theme-surface);border:1px solid var(--theme-line);border-radius:12px;padding:14px 16px;cursor:pointer;transition:background .15s,border-color .15s,opacity .15s;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--theme-overlay) 3%,transparent);}
.sk-item:hover{background:var(--theme-surface);border-color:var(--theme-line);}
.sk-item.active{background:var(--theme-surface);border-color:var(--sk-accent);box-shadow:inset 3px 0 0 var(--sk-accent),inset 0 1px 0 color-mix(in srgb,var(--theme-overlay) 4%,transparent);}
.sk-item.dragging{opacity:.55;}
.sk-item.drop-above{box-shadow:inset 0 2px 0 var(--sk-accent),inset 0 1px 0 color-mix(in srgb,var(--theme-overlay) 4%,transparent);}
.sk-item.drop-below{box-shadow:inset 0 -2px 0 var(--sk-accent),inset 0 1px 0 color-mix(in srgb,var(--theme-overlay) 4%,transparent);}
.sk-item-head{font-size:13.5px;font-weight:600;color:var(--theme-ink);letter-spacing:-.2px;display:flex;align-items:center;gap:8px;}
.sk-drag-handle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:20px;margin:0 -2px 0 -4px;padding:0;border:0;background:transparent;color:var(--theme-ink-subtle);cursor:grab;border-radius:4px;}
.sk-drag-handle:hover{color:var(--sk-accent);background:var(--theme-surface);}
.sk-drag-handle:active{cursor:grabbing;}
.sk-item-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sk-item-desc{font-size:12.5px;color:var(--theme-ink-subtle);margin-top:7px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.sk-badge{font-size:11px;font-weight:400;padding:2px 8px;border-radius:9999px;background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-ink);flex-shrink:0;}
.sk-badge.sk-user{color:var(--sk-accent);}
.sk-toggle{margin-left:auto;display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--theme-ink-subtle);padding:0;cursor:pointer;flex-shrink:0;font-size:11px;}
.sk-toggle-label{min-width:36px;text-align:right;}
.sk-toggle-track{width:30px;height:17px;border-radius:999px;background:var(--theme-surface);border:1px solid var(--theme-line);display:inline-flex;align-items:center;padding:1px;box-sizing:border-box;transition:background .15s,border-color .15s;}
.sk-toggle-knob{width:13px;height:13px;border-radius:50%;background:var(--theme-surface);transform:translateX(0);transition:transform .15s,background .15s;}
.sk-toggle.on{color:var(--sk-accent);}
.sk-toggle.on .sk-toggle-track{background:color-mix(in srgb,var(--sk-accent) 32%,var(--theme-surface));border-color:var(--sk-accent);}
.sk-toggle.on .sk-toggle-knob{background:var(--theme-surface);transform:translateX(12px);}
.sk-toggle:hover .sk-toggle-track{border-color:var(--sk-accent);}
.sk-main{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;}
.sk-tabs{display:flex;flex-wrap:wrap;flex-shrink:0;gap:8px;margin-bottom:14px;}
.sk-tab{background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-ink-subtle);border-radius:9999px;padding:6px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:color .15s,border-color .15s,background .15s;}
.sk-tab:hover{color:var(--theme-ink);border-color:var(--theme-line);}
.sk-tab.active{background:var(--theme-surface);border-color:var(--sk-accent);color:var(--theme-ink);}
#sk-detail{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable;}
.sk-doc{min-height:100%;background:var(--theme-surface);border:1px solid var(--theme-line);border-radius:16px;padding:28px 32px 32px;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--theme-overlay) 4%,transparent);}
.sk-doc-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--theme-line);margin-bottom:18px;}
.sk-file{font-size:12px;color:var(--theme-ink-subtle);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.2px;}
.sk-dirty{font-size:11.5px;color:var(--theme-ink-subtle);flex-shrink:0;}
.sk-dirty.hidden{display:none;}
.sk-actions{margin-left:auto;display:flex;gap:8px;flex-shrink:0;}
.sk-btn{background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-ink);border-radius:8px;padding:4px 12px;font-size:12.5px;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s,color .15s;white-space:nowrap;}
.sk-btn:hover{background:var(--theme-surface);border-color:var(--theme-line);color:var(--theme-ink);}
.sk-btn.primary{color:var(--sk-accent);border-color:var(--sk-accent);background:transparent;}
.sk-btn.primary:hover{background:color-mix(in srgb,var(--sk-accent) 12%,transparent);}
.sk-btn.danger{color:var(--theme-danger);border-color:color-mix(in srgb,var(--theme-danger) 30%,transparent);}
.sk-btn.danger:hover{background:color-mix(in srgb,var(--theme-danger) 8%,transparent);border-color:color-mix(in srgb,var(--theme-danger) 50%,transparent);}
.sk-editor-hint{font-size:12px;color:var(--theme-ink-subtle);line-height:1.7;margin:0 0 10px;}
.sk-editor{width:100%;box-sizing:border-box;height:58vh;min-height:320px;resize:vertical;background:var(--theme-control);border:1px solid var(--theme-line);border-radius:10px;padding:14px 16px;color:var(--theme-ink);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.7;outline:none;transition:border-color .15s,box-shadow .15s;}
.sk-editor:focus{border-color:var(--sk-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--sk-accent) 15%,transparent);}
.sk-md{font-size:14.5px;line-height:1.85;color:var(--theme-ink);}
.sk-md h1{font-size:21px;font-weight:600;color:var(--theme-ink);letter-spacing:-.4px;margin:2px 0 16px;}
.sk-md h2{font-size:16.5px;font-weight:600;color:var(--theme-ink);letter-spacing:-.2px;margin:28px 0 12px;}
.sk-md h2:first-child{margin-top:0;}
.sk-md h3{font-size:14.5px;font-weight:600;color:var(--theme-ink);margin:18px 0 8px;}
.sk-md p{margin:10px 0;}
.sk-md strong{color:var(--theme-ink);font-weight:600;}
.sk-md ul{margin:10px 0;padding-left:22px;}
.sk-md li{margin:6px 0;}
.sk-md li::marker{color:var(--theme-ink-subtle);}
.sk-md blockquote{border-left:2px solid var(--sk-accent);margin:14px 0;padding:10px 16px;color:var(--theme-ink-subtle);background:var(--theme-surface);border-radius:0 8px 8px 0;font-size:13.5px;}
.sk-md blockquote p{margin:4px 0;}
.sk-md code{background:var(--theme-surface);border:1px solid var(--theme-line);border-radius:6px;padding:1px 7px;font-size:12.5px;color:var(--theme-ink);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;}
.sk-md hr{border:none;border-top:1px solid var(--theme-line);margin:22px 0;}
.sk-table-wrap{overflow-x:auto;border:1px solid var(--theme-line);border-radius:10px;margin:14px 0;}
.sk-md table{width:100%;border-collapse:collapse;font-size:13px;margin:0;}
.sk-md th{background:var(--theme-surface);color:var(--theme-ink);font-weight:600;font-size:12.5px;padding:9px 12px;text-align:left;white-space:nowrap;}
.sk-md td{border-top:1px solid var(--theme-line);padding:9px 12px;color:var(--theme-ink);vertical-align:top;}
.sk-md tr:hover td{background:var(--theme-surface);}
.sk-loading,.sk-empty,.sk-error{color:var(--theme-danger);font-size:13px;padding:40px;text-align:center;}
.sk-error{color:var(--theme-danger);}
@media (max-width: 900px){#view-skills{overflow-y:auto;overflow-x:hidden;}#view-skills #skills-page{height:auto;min-height:max-content;display:block;}.sk-layout{display:flex;flex:none;flex-direction:column;overflow:visible;padding:0 12px 24px;}.sk-list{width:100%;min-height:0;overflow:visible;padding-right:0;}.sk-main{display:block;min-height:0;}.sk-tabs{margin-bottom:14px;}#sk-detail{min-height:0;overflow:visible;}.sk-doc{min-height:0;padding:20px 18px;}.sk-doc-head{flex-wrap:wrap;}}

/* Enterprise administration shares the original workbench shell and theme. */
#view-enterprise-admin { overflow-y:auto; overflow-x:hidden; scrollbar-gutter:stable; }
.enterprise-admin-module { width:100%; padding-top:24px; padding-bottom:48px; }
.enterprise-admin-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.enterprise-admin-section { padding:24px; }
.enterprise-admin-section[hidden] { display:none !important; }
.enterprise-admin-row { padding:18px 0; border-bottom:1px solid var(--tblr-border-color, var(--theme-line)); }
.enterprise-admin-member-summary { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.enterprise-admin-member-summary > div:first-child { flex:1; min-width:200px; overflow-wrap:anywhere; }
.enterprise-admin-badge { padding:4px 10px; border:1px solid var(--tblr-border-color, var(--theme-line)); border-radius:20px; font-size:13px; }
.enterprise-admin-form { display:flex; flex-wrap:wrap; gap:16px; align-items:end; margin:20px 0; }
.enterprise-admin-field { display:flex; flex-direction:column; gap:8px; min-width:180px; flex:1; }
.enterprise-admin-projects { border:0; padding:0; width:100%; }
.enterprise-admin-projects legend { font-size:14px; margin-bottom:8px; }
.enterprise-admin-projects label { display:inline-flex; align-items:center; gap:8px; margin:0 20px 8px 0; }
.enterprise-admin-projects input { width:16px; height:16px; }
.enterprise-admin-link { padding:16px; margin:16px 0; border:1px solid var(--tblr-border-color, var(--theme-line)); border-radius:10px; }
.enterprise-admin-link input { margin-bottom:12px; }
.enterprise-admin-message { min-height:24px; }
.enterprise-admin-section details > summary { cursor:pointer; padding:8px 0; }
@media(max-width:700px){ .enterprise-admin-section{padding:16px}.enterprise-admin-form{align-items:stretch}.enterprise-admin-field{min-width:100%} }
html[data-enterprise-workbench="true"] body.enterprise-member-assignees [data-op-modal-action="add-assignee"] { display:none !important; }

.enterprise-org-logo,
.enterprise-project-cover,
.enterprise-account-avatar {
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 25%,transparent));
  background: var(--surface, color-mix(in srgb,var(--theme-ink) 6%,transparent));
}
.enterprise-org-logo { width: 22px; height: 22px; border-radius: 6px; }
.enterprise-project-cover { width: 30px; height: 20px; border-radius: 5px; }
.enterprise-account-avatar { width: 24px; height: 24px; border-radius: 50%; }
.enterprise-org-logo[hidden],
.enterprise-project-cover[hidden],
.enterprise-account-avatar[hidden],
.enterprise-avatar-preview[hidden] { display: none; }
.ea-profile-media { display: flex; flex-wrap: wrap; gap: 18px; }
.ea-profile-media-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ea-profile-media-item label { cursor: pointer; margin: 0; }
.ea-profile-logo,
.ea-profile-cover,
.ea-project-cover {
  display: block;
  object-fit: cover;
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 28%,transparent));
  background: var(--surface, color-mix(in srgb,var(--theme-ink) 6%,transparent));
}
.ea-profile-logo { width: 72px; height: 72px; border-radius: 12px; }
.ea-profile-cover { width: 240px; height: 135px; border-radius: 10px; }
.ea-profile-logo[hidden],
.ea-profile-cover[hidden] { display: none; }
.ea-project-cover { width: 76px; height: 43px; border-radius: 7px; flex: 0 0 auto; }
.ea-project-cover-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2, var(--theme-ink-secondary));
  font-size: 11px;
}

/* 企业管理：范围页头 + 内部分类。与任务页共用字号、按钮和表单底板约定。 */
#view-enterprise-admin { overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.enterprise-admin-module { width: 100%; max-width: 1320px; padding: 20px 24px 48px; }
.ea-header { display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ea-header .page-title { margin: 0; font-size: 24px; letter-spacing: .1px; }
.ea-header .page-subtitle { max-width: 840px; margin: 4px 0 0; color: var(--text-2, var(--theme-ink-secondary)); font-size: 13px; line-height: 1.6; }
.ea-header .page-subtitle b { color: var(--text, var(--theme-ink)); }
.ea-header-meta { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 8px; }
.ea-role-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 99px; color: var(--text-2, var(--theme-ink-secondary)); background: var(--surface, var(--surface-opaque)); font-size: 12px; white-space: nowrap; }
.ea-tabs { display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); overflow-x: auto; scrollbar-width: none; }
.ea-tabs::-webkit-scrollbar { display: none; }
.ea-tabs button { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-2, var(--theme-ink-secondary)); font: inherit; font-size: 14px; cursor: pointer; }
.ea-tabs button:hover { color: var(--text, var(--theme-ink)); }
.ea-tabs button.is-active { color: var(--primary-deep, var(--a1)); border-bottom-color: var(--a1); font-weight: 600; }
.ea-tabs button b { min-width: 20px; padding: 1px 6px; border-radius: 99px; background: color-mix(in srgb, var(--text, var(--theme-surface)) 7%, transparent); color: var(--text-2, var(--theme-ink-secondary)); text-align: center; font-size: 11px; font-weight: 500; }
.ea-notice { min-height: 0; }
.ea-notice:not(:empty) { margin-bottom: 12px; padding: 8px 12px; border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 8px; background: var(--surface, var(--surface-opaque)); color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; }
.ea-notice.is-error { color: var(--theme-danger); border-color: color-mix(in srgb, var(--theme-danger) 35%, var(--line, color-mix(in srgb,var(--theme-danger) 20%,transparent))); }
.ea-section { padding: 18px; border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 12px; background: var(--surface, var(--surface-opaque)); }
.ea-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ea-section-head h2 { margin: 0; color: var(--text, var(--theme-ink)); font-size: 18px; }
.ea-section-head p { margin: 4px 0 0; color: var(--text-2, var(--theme-ink-secondary)); font-size: 13px; line-height: 1.55; }
.ea-head-actions, .ea-row-actions, .ea-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ea-head-actions { flex: 0 0 auto; justify-content: flex-end; }
.ea-section .btn { min-height: 34px; }
.ea-panel { margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 10px; background: color-mix(in srgb, var(--text, var(--theme-surface)) 3%, var(--surface, var(--surface-opaque))); }
.ea-panel[hidden] { display: none !important; }
.ea-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ea-panel-head h3 { margin: 0; color: var(--text, var(--theme-ink)); font-size: 15px; }
.ea-panel-head p { margin: 3px 0 0; color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; line-height: 1.55; }
.ea-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ea-form-stack { grid-template-columns: 1fr; }
.ea-field { display: grid; gap: 5px; min-width: 0; color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; }
.ea-field input, .ea-field select, .ea-field textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 8px; background: var(--surface, var(--surface-opaque)); color: var(--text, var(--theme-ink)); font: inherit; font-size: 14px; }
.ea-field textarea { resize: vertical; }
.ea-field-wide { grid-column: 1 / -1; }
.ea-field-label { color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; }
.ea-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ea-checks label, .ea-checks .form-check { display: inline-flex; align-items: center; gap: 7px; min-width: 160px; margin: 0; padding-left: 0; color: var(--text, var(--theme-ink)); }
.ea-checks input, .ea-checks .form-check-input { position: static; flex: 0 0 auto; width: 16px; height: 16px; margin: 0; float: none; }
.ea-form-actions { grid-column: 1 / -1; justify-content: flex-end; }
.ea-table-wrap { overflow-x: auto; border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 10px; }
.ea-table { width: 100%; min-width: 760px; border-collapse: collapse; color: var(--text, var(--theme-ink)); font-size: 13px; }
.ea-table th { padding: 9px 12px; border-bottom: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); background: color-mix(in srgb, var(--text, var(--theme-surface)) 5%, var(--surface, var(--surface-opaque))); color: var(--text-2, var(--theme-ink-secondary)); text-align: left; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ea-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft, color-mix(in srgb,var(--theme-line) 12%,transparent)); vertical-align: top; }
.ea-table tbody tr:last-child td { border-bottom: 0; }
.ea-member-table th:first-child { min-width: 200px; }
.ea-member-table th:nth-child(2) { min-width: 96px; }
.ea-member-table th:nth-child(3) { min-width: 76px; }
.ea-member-table th:nth-child(4) { min-width: 220px; }
.ea-member-table th:last-child { min-width: 150px; }
.ea-muted { color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; line-height: 1.55; }
.ea-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ea-badge { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 99px; background: var(--surface, var(--surface-opaque)); color: var(--text-2, var(--theme-ink-secondary)); font-size: 11px; white-space: nowrap; }
.ea-badge.is-ok { color: var(--theme-success); border-color: color-mix(in srgb, var(--theme-success) 35%, var(--line, color-mix(in srgb,var(--theme-success) 20%,transparent))); }
.ea-more { position: relative; }
.ea-more > summary { list-style: none; cursor: pointer; }
.ea-more > summary::-webkit-details-marker { display: none; }
.ea-more-menu { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; display: grid; min-width: 165px; padding: 4px; border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 8px; background: var(--surface-opaque, var(--surface-raised)); box-shadow: 0 12px 30px color-mix(in srgb,var(--theme-overlay) 28%,transparent); }
.ea-more-menu button { padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--text, var(--theme-ink)); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.ea-more-menu button:hover { background: color-mix(in srgb, var(--text, var(--theme-surface)) 8%, transparent); }
.ea-edit-row td { padding: 0; background: color-mix(in srgb, var(--text, var(--theme-surface)) 3%, var(--surface, var(--surface-opaque))); }
.ea-member-form { padding: 14px 16px; }
.ea-member-form .ea-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ea-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ea-role-grid .form-label { display: grid; gap: 4px; margin: 0; color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; font-weight: 400; }
.ea-role-grid .form-select { min-height: 36px; }
.ea-member-form > .ea-muted { margin: 10px 0; }
.ea-project-list { display: grid; gap: 0; }
.ea-project-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line-soft, color-mix(in srgb,var(--theme-line) 12%,transparent)); }
.ea-project-row:first-child { padding-top: 0; border-top: 0; }
.ea-project-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ea-project-copy { min-width: 0; }
.ea-project-copy strong { display: block; color: var(--text, var(--theme-ink)); font-size: 14px; }
.ea-inline-details, .ea-advanced { margin-top: 4px; }
.ea-inline-details summary, .ea-advanced summary { color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; cursor: pointer; }
.ea-inline-details div { margin-top: 3px; color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; overflow-wrap: anywhere; }
.ea-advanced { border: 1px solid var(--line-soft, color-mix(in srgb,var(--theme-line) 12%,transparent)); border-radius: 8px; padding: 10px 12px; }
.ea-advanced summary { margin-bottom: 8px; }
.ea-subsection { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft, color-mix(in srgb,var(--theme-line) 12%,transparent)); }
.ea-subsection > summary { color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; cursor: pointer; }
.ea-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft, color-mix(in srgb,var(--theme-line) 12%,transparent)); font-size: 13px; }
.ea-list-row:last-child { border-bottom: 0; }
.ea-empty { padding: 14px; border: 1px dashed var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 8px; color: var(--text-2, var(--theme-ink-secondary)); text-align: center; font-size: 12px; }
.ea-link-box { background: color-mix(in srgb, var(--a1) 5%, var(--surface, var(--surface-opaque))); }
.ea-link-row { display: flex; align-items: center; gap: 8px; }
.ea-link-row input { flex: 1; min-width: 0; }
.ea-danger-zone { border-color: color-mix(in srgb, var(--danger, var(--theme-danger)) 35%, var(--line, color-mix(in srgb,var(--theme-danger) 20%,transparent))); }
.ea-fingerprint { max-width: 260px; overflow: hidden; color: var(--text-3, var(--text-2, var(--theme-ink-secondary))); text-overflow: ellipsis; white-space: nowrap; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.ea-project-row .ea-row-actions .btn, .ea-list-row .btn { min-height: 32px; }
@media (max-width: 900px) {
  .enterprise-admin-module { padding: 16px 16px 40px; }
  .ea-header { flex-direction: column; }
  .ea-form, .ea-member-form .ea-form-grid { grid-template-columns: 1fr; }
  .ea-field-wide { grid-column: auto; }
  .ea-role-grid { grid-template-columns: 1fr; }
  .ea-section-head { flex-direction: column; }
  .ea-head-actions { justify-content: flex-start; }
  .ea-project-row { align-items: flex-start; flex-direction: column; }
  .ea-tabs { margin-left: -4px; margin-right: -4px; }
}
html[data-theme="light"] .ea-badge.is-ok { color: var(--theme-success); }
html[data-theme="light"] .ea-notice.is-error { color: var(--theme-danger); }

/* Personal settings: account, security and per-account appearance. */
#view-settings { overflow-y:auto; overflow-x:hidden; scrollbar-gutter:stable; }
/* Matrix works: full-width data grid matching the original data panel. */
#data-page.matrix-works-wide { max-width:none; width:100%; }
.matrix-page-header { margin-bottom:14px; }
.matrix-page-header .page-title { margin:0; font-size:24px; }
.matrix-page-header .page-subtitle { margin-top:4px; color:var(--text-2, var(--theme-ink-secondary)); font-size:13px; }
.matrix-account-toolbar [data-account-query] { flex:1 1 220px; min-width:200px; }
.matrix-account-name { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.matrix-account-matrix { white-space:nowrap; }
.matrix-account-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:4px; }
.matrix-account-actions .btn { min-height:30px; padding:4px 7px; white-space:nowrap; }
.matrix-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:12px; }
.matrix-section-head h2 { margin:0; }
.matrix-section-head p { margin:3px 0 0; }
.matrix-section-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; flex:0 0 auto; }
.matrix-more { position:relative; }
.matrix-more > summary { list-style:none; cursor:pointer; white-space:nowrap; }
.matrix-more > summary::-webkit-details-marker { display:none; }
.matrix-more-menu { position:absolute; z-index:30; top:calc(100% + 4px); right:0; display:grid; min-width:160px; padding:4px; border:1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius:8px; background:var(--surface-opaque, var(--surface-raised)); box-shadow:0 12px 30px color-mix(in srgb,var(--theme-overlay) 28%,transparent); }
.matrix-more-menu button { padding:7px 9px; border:0; border-radius:6px; background:transparent; color:var(--text, var(--theme-ink)); text-align:left; font:inherit; font-size:12px; cursor:pointer; }
.matrix-more-menu button:hover { background:color-mix(in srgb, var(--text, var(--theme-surface)) 8%, transparent); }
.matrix-more-menu button.is-danger { color:var(--theme-danger); }
.matrix-account-form-card .card-body { padding:20px; }
.matrix-account-form-card form { max-width:720px; }
.matrix-inline-form { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius: 10px; background: color-mix(in srgb, var(--text, var(--theme-surface)) 3%, var(--surface, var(--surface-opaque))); }
.matrix-inline-form-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.matrix-inline-form-head b { font-size:14px; }
.matrix-inline-form form { max-width:680px; }
.matrix-page-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
body.enterprise-workbench .matrix-page-header { flex-direction:row; }
.matrix-platform-logo { display:inline-flex; align-items:center; gap:5px; padding:3px 8px; border-radius:7px; background:var(--glass-2); color:var(--text-2); font-size:12px; white-space:nowrap; }
.matrix-platform-logo i { font-size:15px; }
.matrix-platform-logo.is-douyin i { color:var(--text); }
.matrix-platform-logo.is-xhs { color:#ff6379; }
.matrix-platform-logo.is-channels { color:#36c990; }
.matrix-platform-logo.is-bilibili { color:var(--theme-accent-ink); }
.matrix-platform-logo.is-weibo { color:var(--theme-accent-ink); }
.matrix-xhs-logo { display:inline-grid; place-content:center; width:16px; height:16px; border-radius:4px; background:#ff2442; color:white; font-size:10px; font-weight:700; }
.matrix-works-table .play-metric { justify-content:flex-end; }
.matrix-works-table .play-tier-warning .play-metric-value { font-weight:600; }
.matrix-more-trigger { display:inline-flex; justify-content:center; align-items:center; min-width:30px; width:30px; padding:5px; border-color:transparent; background:transparent; color:var(--text-2); }
.matrix-more-trigger::marker { content:""; }
.matrix-more[open] { z-index:80; }
.matrix-more .matrix-more-menu { width:190px; z-index:1000; }
.matrix-work-content .btn { margin-top:4px; }
/* Association previews and AI suggestions are owned by matrix/feedback.css. */
@media(max-width:720px){ .matrix-page-header{flex-wrap:wrap;} }
/* 战略面板沿用旧版的全宽层级，长标签只在各自区域内滚动。 */
.strategy-page { display: grid; gap: 20px; min-width: 0; }
.strategy-page > * { min-width: 0; }
.strategy-page-head { margin: 0 0 10px; }
.strategy-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 5px; color: var(--text-2); font-size: 13px; text-decoration: none; }
.strategy-back:hover { color: var(--text); }
.strategy-kicker { margin-bottom: 8px; color:var(--theme-accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .22em; }
.strategy-page-head h1 { margin: 0; color: var(--text); font-size: 26px; font-weight: 700; }
.strategy-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.strategy-tabs .btn { min-width: 72px; }
.strategy-page .card { margin: 0; border-radius: 18px; }
.strategy-page .card-body { padding: 22px 24px; }
.strategy-page .matrix-section-head { align-items: center; margin-bottom: 14px; }
.strategy-page .matrix-section-head h2 { color:var(--theme-accent-ink); font-size: 16px; font-weight: 650; }
.strategy-page .matrix-section-head p { color: var(--text-3); font-size: 12px; }
.strategy-page .strategy-goals-table { width: 100%; margin: 0; }
.strategy-goals-table th { color: var(--text-3); font-size: 12px; font-weight: 500; }
.strategy-goals-table td { padding: 10px 14px; color: var(--text); font-size: 13px; line-height: 1.7; vertical-align: middle; }
.strategy-goal-content { width: 58%; min-width: 260px; overflow-wrap: anywhere; }
.strategy-goal-date { min-width: 95px; white-space: nowrap; }
.strategy-goal-actions { display: flex; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; white-space: nowrap; }
.strategy-goal-status { display: inline-block; padding: 1px 8px; border-radius: 6px; color: var(--a2); background: color-mix(in srgb, var(--a2) 10%, transparent); white-space: nowrap; font-size: 12px; }
.strategy-goal-status.is-done { color: var(--teal); background: var(--teal-soft); }
.strategy-goal-edit { margin-top: 16px; }
.strategy-page .strategy-matrices { margin-top: 8px; }
.strategy-matrices > .matrix-section-head { margin-bottom: 14px; }
.strategy-matrices > .matrix-section-head > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.strategy-matrix-list { display: grid; gap: 18px; }
.strategy-matrix-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.strategy-matrix-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.strategy-matrix-identity h3 { color: var(--text); font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.strategy-matrix-identity .text-secondary { font-size: 12px; }
.strategy-matrix-icon { display: grid; place-content: center; flex: 0 0 38px; height: 38px; color:var(--theme-accent-ink); background: var(--a1-0); border-radius: 10px; font-size: 19px; }
.strategy-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.strategy-fields > div, .strategy-tag-grid > div { min-width: 0; }
.strategy-page .form-label { margin: 0 0 6px; color: var(--text-2); font-size: 12px; font-weight: 400; }
.strategy-field-value { min-height: 40px; max-height: 112px; padding: 10px 12px; overflow: auto; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--glass-2); color: var(--text); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.strategy-field-value.is-empty, .strategy-tag-text.is-empty { color: var(--text-3); }
.strategy-name-field { max-width: 540px; margin-bottom: 18px; }
.strategy-page .strategy-fields .form-control { min-height: 62px; max-height: 160px; }
.strategy-tags { margin-top: 24px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--glass-2); }
.strategy-tags-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; color: var(--text-2); font-size: 12px; }
.strategy-tags-head small { color: var(--text-3); font-size: 11px; }
.strategy-tag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.strategy-tag-text { height: 132px; padding: 10px 12px; overflow: auto; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--glass-2); color: var(--text); font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.strategy-tag-text.is-empty { height: 52px; }
.strategy-page .strategy-tag-editor { height: 142px; min-height: 100px; max-height: 240px; overflow: auto; font-size: 12.5px; line-height: 1.75; }
.strategy-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.strategy-page .matrix-inline-form form { max-width: none; }
.strategy-page :is(button, a, input, textarea, [tabindex]):focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; }
@media (max-width: 900px) {
  .strategy-page .matrix-section-head { flex-direction: row; }
  .strategy-goal-actions { flex-wrap: wrap; }
  .strategy-goal-content { width: auto; min-width: 220px; }
  .strategy-goals-table { min-width: 620px; }
}
@media (max-width: 640px) {
  .strategy-page { gap: 16px; }
  .strategy-page .card-body { padding: 18px; }
  .strategy-page .matrix-section-head { align-items: flex-start; }
  .strategy-fields, .strategy-tag-grid { grid-template-columns: 1fr; gap: 14px; }
  .strategy-matrix-head { flex-wrap: wrap; margin-bottom: 16px; }
  .strategy-tags { padding: 12px; }
  .strategy-tag-text { height: 120px; }
  .strategy-matrices > .matrix-section-head > div:first-child { display: block; }
}
.matrix-help { margin-top:10px; color:var(--text-2, var(--theme-ink-secondary)); font-size:12px; }
.matrix-help > summary { cursor:pointer; }
.matrix-help p { margin:7px 0 0; line-height:1.65; }
@media (max-width:900px){ .matrix-section-head { flex-direction:column; } .matrix-section-actions { justify-content:flex-start; } }
.matrix-work-link-button { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.matrix-works-table th,
.matrix-works-table td { vertical-align:middle; }
.matrix-works-table .text-end { text-align:right; white-space:nowrap; }
.matrix-sort-button { appearance:none; border:0; background:none; color:inherit; font:inherit; font-weight:600; padding:0; cursor:pointer; display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.matrix-sort-button:hover { color:var(--primary,var(--theme-accent)); }
.matrix-sort-button:focus-visible { outline:2px solid var(--primary,var(--theme-focus)); outline-offset:2px; border-radius:3px; }
.matrix-works-table th.text-end .matrix-sort-button { justify-content:flex-end; }
.matrix-sort-arrow { font-size:9px; line-height:1; opacity:.8; }
.matrix-work-title { min-width:0; }
.matrix-work-content { min-width:0; overflow-wrap:anywhere; }
.matrix-metric-source { cursor:help; }
.matrix-match-row { padding:12px 0; border-top:1px solid var(--line-soft); overflow-wrap:anywhere; }
.matrix-match-row > span { margin-left:12px; color:var(--text-2); }
.matrix-match-row .btn { margin:4px 8px; }

/* Dashboard: trends, rankings and matrix comparison from scoped project data. */
.enterprise-dashboard-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.enterprise-dashboard-period { display:flex; gap:6px; }
.enterprise-dashboard-filter { width:auto; min-width:160px; max-width:220px; }
.enterprise-dashboard-kpis { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; }
.enterprise-dashboard-panels { display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr); gap:16px; align-items:start; }
.enterprise-dashboard-panel { min-width:0; padding:18px; background:var(--surface-opaque,var(--surface-raised)); border:1px solid var(--line,color-mix(in srgb,var(--theme-line) 20%,transparent)); border-radius:12px; }
.enterprise-dashboard-panel h2 { margin:0; color:var(--text,var(--theme-ink)); font-size:17px; }
.enterprise-dashboard-panel > p { margin:5px 0 14px; color:var(--text-2,var(--theme-ink-secondary)); font-size:12.5px; }
.enterprise-dashboard-trend { min-height:210px; color:var(--theme-accent-ink); }
.enterprise-dashboard-trend-svg { display:block; width:100%; height:180px; overflow:visible; }
.enterprise-dashboard-trend-labels { display:flex; justify-content:space-between; color:var(--text-2,var(--theme-ink-secondary)); font-size:11px; }
.enterprise-dashboard-wide { grid-template-columns:minmax(0,1fr); }
.enterprise-dashboard-hour-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 28px; }
.enterprise-dashboard-hour-row { display:grid; grid-template-columns:46px minmax(0,1fr) 30px; gap:10px; align-items:center; color:var(--text-2,var(--theme-ink-secondary)); font-size:11.5px; }
.enterprise-dashboard-hour-row progress { width:100%; height:8px; accent-color:var(--a1); }
.enterprise-dashboard-hour-row span:last-child { text-align:right; color:var(--text,var(--theme-ink)); font-variant-numeric:tabular-nums; }
.enterprise-dashboard-hour-note { margin:14px 0 0; color:var(--text-2,var(--theme-ink-secondary)); font-size:12px; }
.enterprise-dashboard-hour-note strong { color:var(--text,var(--theme-ink)); }
.enterprise-dashboard-table { margin:0; }
.enterprise-dashboard-table th, .enterprise-dashboard-table td { padding:8px 6px; color:var(--text,var(--theme-ink)); font-size:12.5px; vertical-align:middle; }
.enterprise-dashboard-table th { color:var(--text-2,var(--theme-ink-secondary)); font-weight:600; }
.enterprise-dashboard-empty { margin:0; padding:24px 8px; color:var(--text-2,var(--theme-ink-secondary)); font-size:13px; text-align:center; }
@media (max-width:1100px){ .enterprise-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));} .enterprise-dashboard-panels{grid-template-columns:1fr;} .enterprise-dashboard-hour-grid{grid-template-columns:1fr;} }
@media (max-width:900px){ .enterprise-dashboard-controls{align-items:flex-start;flex-direction:column;} .enterprise-dashboard-filter{width:100%;max-width:none;} }

/* Benchmark samples: imported metric and research dimensions. */
.bm-sample-cover { display:block; width:100%; max-height:220px; object-fit:cover; margin:0 0 10px; border-radius:9px; background:var(--theme-surface); border:1px solid var(--border,color-mix(in srgb,var(--theme-line) 8%,transparent)); }
.bm-sample-metrics { margin-top:8px; padding:7px 9px; border-radius:7px; background:var(--surface,color-mix(in srgb,var(--theme-ink) 4%,transparent)); color:var(--text-2,var(--theme-ink-secondary)); font-size:12px; font-variant-numeric:tabular-nums; }
.bm-sample-note { margin:7px 0 0; color:var(--text-2,var(--theme-ink-secondary)); font-size:12.5px; line-height:1.5; white-space:pre-wrap; }

/* 图片创作与企业版其它模块共用同一套侧栏：全屏画布的收栏规则在
   app/web/image-generation.css 里已排除企业版，这里不要再覆盖侧栏尺寸和内边距。 */

/* 企业版生图服务由平台管理员配置，成员侧不需要“打开设置”入口。 */
.enterprise-image-generation #enterprise-image-queue-status {
  display: inline-flex;
  width: max-content;
  margin: 8px 12px 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--line, var(--theme-line));
  border-radius: 999px;
  background: color-mix(in srgb,var(--theme-ink) 4.5%,transparent);
  color: var(--text-2, var(--theme-ink));
  font-size: 11px;
  line-height: 1.2;
}

.enterprise-image-generation .iw-capability-banner .iw-primary {
  display: none;
}

/* 对标作品编辑弹窗：封面墙里的作品点开后只编辑这一条。 */
.bm-sample-dialog {
  width: min(820px, 94vw);
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 24%,transparent));
  border-radius: 16px;
  color: var(--text, var(--theme-ink));
  background: var(--surface-opaque, var(--surface-raised));
}
.bm-sample-dialog::backdrop { background: color-mix(in srgb,var(--theme-accent) 72%,transparent); }
.bm-sample-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 16%,transparent)); }
.bm-sample-dialog-head h3 { margin: 2px 0 5px; font-size: 17px; line-height: 1.4; }
.bm-sample-dialog-head p { margin: 0 0 6px; color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; }
.bm-sample-dialog-head a { color:var(--theme-accent-ink); font-size: 12px; }
.bm-sample-dialog-body { display: grid; gap: 14px; max-height: 62vh; overflow-y: auto; padding: 18px 22px; }
.bm-sample-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 16%,transparent)); }
.bm-sample-dialog-actions [data-sample-editor-status] { margin-right: auto; }
.bm-sample-dialog .bm-field { display: grid; gap: 5px; }
.bm-sample-dialog .bm-label small { color: var(--text-3, var(--theme-accent)); font-weight: 400; }
.bm-sample-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.bm-sample-tags .bm-mini-chip.is-accent { color:var(--theme-accent-ink); border-color: color-mix(in srgb, var(--a1) 35%, transparent); }
.bmv-card-head { display: flex; gap: 10px; width: 100%; min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.bmv-card-head:hover .bmv-card-title { color:var(--theme-accent-ink); }
.bmv-cover .bm-sample-cover-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; }

/* Matrix account onboarding; scoped to existing module elements. */
.wf-empty { display: grid; justify-items: center; gap: 14px; padding: 60px 24px; text-align: center; }
.wf-empty > i { font-size: 42px; color:var(--theme-accent-ink); }
.wf-empty h2 { margin: 0; font-size: 24px; }
.wf-empty p { max-width: 600px; color: var(--text-2); margin: 0; line-height: 1.8; }
.wf-empty .btn { margin: 8px 0; min-height: 42px; }
.wf-account-name { background: none; border: 0; padding: 0; color: var(--text); font-weight: 700; text-align: left; font-size: 15px; margin-bottom: 6px; cursor: pointer; }
.wf-account-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 16px; background: var(--a1-0); border-radius: 10px; }
.wf-account-info p { margin: 8px 0 0; color: var(--text-2); }
.wf-badge { display: inline-flex; align-items: center; padding: 4px 8px; font-size: 12px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.wf-badge.is-success { color: var(--green, var(--theme-success)); background: color-mix(in srgb,var(--theme-success) 10%,transparent); }
.wf-badge.is-info { color:var(--theme-accent-ink); background: var(--a1-0); }
.wf-badge.is-warning { color: var(--orange, var(--theme-warning)); background: color-mix(in srgb,var(--theme-warning) 10%,transparent); }
html[data-theme="light"] .wf-badge.is-success { color: var(--theme-success); }
html[data-theme="light"] .wf-badge.is-warning { color: var(--theme-warning); }
.wf-receipt { max-width: 260px; margin-top: 7px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.wf-account-dialog > header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.wf-account-dialog header h2 { margin: 4px 0 0; font-size: 22px; }
.wf-account-dialog header small { color: var(--text-3); }
.wf-account-dialog > form { max-height: calc(100dvh - 152px); overflow: auto; padding: 20px 24px 0; }
.wf-account-dialog [hidden] { display: none !important; }
.wf-form-footer { position: sticky; bottom: 0; padding: 16px 0; background: var(--surface-opaque); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 20px; z-index: 2; }
.wf-review-card { padding: 18px; border-radius: 12px; background: var(--a1-0); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
/* Sync confirmation fields are owned by matrix/dialog.css. */
.wf-context { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; }
.wf-context > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-draft { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--a1-0); border-radius: 10px; }
:is(.wf-account-dialog, .wf-account-toolbar, .wf-empty, .wf-account-table, .wf-context) :is(button, summary, input, select, a):focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; }
@media(max-width: 720px) {
  .wf-empty { padding: 32px 12px; }
  .wf-empty h2 { font-size: 21px; }
  .wf-account-dialog { max-height: calc(100dvh - 16px); width: calc(100vw - 16px); }
  .wf-account-dialog > header { padding: 16px; }
  .wf-account-dialog > form { padding: 16px 16px 0; max-height: calc(100dvh - 126px); }
  .wf-context, .wf-account-info { flex-direction: column; align-items: stretch; }
}


/* 账号查找：候选卡、头像与身份确认 */
.wf-account-cell { display:flex; align-items:center; gap:9px; min-width:0; }
.wf-avatar { position:relative; display:inline-grid; place-content:center; flex:0 0 auto; width:36px; height:36px; overflow:hidden; border:1px solid var(--line); border-radius:50%; background:var(--glass-2); color:var(--text-2); font-weight:600; }
.wf-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.wf-avatar-sm { width:32px; height:32px; font-size:13px; }
.wf-avatar-lg { width:48px; height:48px; font-size:17px; }
.wf-candidates { display:grid; gap:10px; margin:10px 0; }
.wf-candidate { display:flex; gap:12px; min-width:0; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--glass-2); }
.wf-candidate.is-selected { border-color:var(--a1); box-shadow:0 0 0 1px var(--a1); }
.wf-candidate-main { flex:1; min-width:0; }
.wf-candidate-head { display:flex; flex-wrap:wrap; gap:8px; align-items:baseline; }
.wf-candidate-head span { color:var(--text-3); font-size:12px; }
.wf-candidate-handle { margin-top:2px; color:var(--text-2); font-size:12px; }
.wf-candidate-bio { display:-webkit-box; overflow:hidden; margin:6px 0; color:var(--text-2); font-size:13px; white-space:pre-line; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.wf-candidate-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.wf-discovery-search { display:flex; gap:8px; align-items:center; }
.wf-discovery-search .form-control { flex:1; }
.wf-discovery-state { margin:10px 0; padding:12px; border:1px dashed var(--line); border-radius:10px; color:var(--text-2); }
.wf-identity-card { display:flex; gap:12px; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--glass-2); }
.wf-identity-card p { margin:6px 0; color:var(--text-2); }
.wf-account-bio { white-space:pre-line; }
@media (max-width: 640px) {
  .wf-discovery-search { flex-direction:column; align-items:stretch; }
  .wf-candidate { flex-direction:column; }
}


/* 过程卡片：工具步骤与状态，刷新后由事件重放 */
.enterprise-chat-work-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 8px;
}
.enterprise-chat-work-event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb,var(--theme-line) 35%,transparent);
  border-radius: 10px;
  background: color-mix(in srgb,var(--theme-accent) 8%,transparent);
  font-size: 12.5px;
}
.enterprise-chat-work-event.is-error {
  border-color: color-mix(in srgb,var(--theme-danger) 45%,transparent);
  background: color-mix(in srgb,var(--theme-danger) 8%,transparent);
}
.enterprise-chat-work-name { font-weight: 600; }
.enterprise-chat-work-status {
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb,var(--theme-accent) 14%,transparent);
  color: inherit;
  font-size: 11.5px;
}
.enterprise-chat-work-event.is-error .enterprise-chat-work-status {
  background: color-mix(in srgb,var(--theme-danger) 18%,transparent);
}
.enterprise-chat-work-summary { opacity: 0.75; }

/* narrow chat layout: history docks below the conversation, composer keeps full width */
@media (max-width: 860px) {
  #view-chat .chat-columns {
    flex-direction: column;
  }
  #view-chat .chat-main {
    width: 100%;
    min-height: 0;
  }
  #view-chat #conv-dock {
    width: auto;
    max-height: 34vh;
    flex: 0 0 auto;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb,var(--theme-line) 30%,transparent);
  }
  #view-chat #composer {
    width: calc(100% - 24px);
    margin-bottom: 8px;
  }
}
@media (max-width: 520px) {
  .enterprise-chat-message-actions { flex-wrap: wrap; gap: 4px; }
  .enterprise-chat-work-event { font-size: 12px; }
  #view-chat #conv-dock { max-height: 30vh; }
}

/* 知识浮层必须盖住消息层，点击才能命中选项 */
.enterprise-workbench #view-chat #composer { position: relative; z-index: 30; }
.enterprise-workbench .enterprise-knowledge-context-panel { z-index: 90; }

/* 对话内选题方向卡：成熟度与硬门原因直接可见 */
.enterprise-chat-topic-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.enterprise-chat-topic-card {
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb,var(--theme-line) 32%,transparent);
  border-radius: 12px;
  background: color-mix(in srgb,var(--theme-accent) 7%,transparent);
}
.enterprise-chat-topic-card.is-blocked {
  border-color: color-mix(in srgb,var(--theme-line) 42%,transparent);
  background: color-mix(in srgb,var(--theme-accent) 7%,transparent);
}
.enterprise-chat-topic-card-index { font-size: 11.5px; opacity: 0.7; }
.enterprise-chat-topic-card-title { font-weight: 600; margin: 2px 0 4px; }
.enterprise-chat-topic-card-meta { font-size: 12px; opacity: 0.82; line-height: 1.6; }
.enterprise-chat-topic-card-status { font-size: 12px; opacity: 0.7; }

.enterprise-chat-confirm-full {
  margin: 10px 0;
  padding: 10px;
  border-top: 1px dashed color-mix(in srgb,var(--theme-line) 35%,transparent);
}
.enterprise-chat-confirm-full pre { max-height: 320px; overflow: auto; white-space: pre-wrap; }

/* 专员工位：岗位选择、挂载与删除 */
#sub-agent-btn { position: relative; }
#sub-agent-btn, #sub-agent-badge, #sub-agent-menu { display: none !important; }
#sub-agent-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 12px;
  z-index: 95;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: auto;
  padding: 12px;
  color: var(--text, var(--theme-ink));
  background: var(--surface-opaque, var(--surface-raised));
  border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 24%,transparent));
  border-radius: 12px;
  box-shadow: 0 16px 40px color-mix(in srgb,var(--theme-overlay) 34%,transparent);
}
.specialist-menu-head { font-weight: 700; margin-bottom: 8px; }
.specialist-menu-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 6px;
}
.specialist-menu-open {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  text-align: left;
  border: 1px solid color-mix(in srgb,var(--theme-line) 28%,transparent);
  border-radius: 9px;
  background: color-mix(in srgb,var(--theme-accent) 8%,transparent);
  color: inherit;
  cursor: pointer;
}
.specialist-menu-open:hover { border-color: var(--a1); }
.specialist-menu-meta { font-size: 11.5px; opacity: .72; }
.specialist-menu-remove {
  padding: 0 10px;
  border: 1px solid color-mix(in srgb,var(--theme-line) 40%,transparent);
  border-radius: 9px;
  background: color-mix(in srgb,var(--theme-accent) 10%,transparent);
  color: inherit;
  cursor: pointer;
}
.specialist-menu-form {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.specialist-menu-form select,
.specialist-menu-form input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb,var(--theme-line) 30%,transparent);
  border-radius: 8px;
  background: color-mix(in srgb,var(--theme-accent) 60%,transparent);
  color: inherit;
}
.specialist-menu-status { margin-top: 8px; font-size: 11.5px; opacity: .72; }
.specialist-menu-back {
  width: 100%;
  margin-top: 8px;
  padding: 7px;
  border: 1px solid color-mix(in srgb,var(--theme-line) 30%,transparent);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* 顶栏必须压在消息层之上，知识浮层和专员菜单才能被点到 */
.enterprise-workbench #view-chat #topbar {
  position: relative;
  z-index: 60;
}

/* 窄屏：侧栏收成图标条，主视图拿到可用宽度 */
@media (max-width: 860px) {
  .enterprise-workbench .navbar-expand-sm.navbar-vertical {
    width: 48px;
    margin: 6px 0 6px 6px;
    border-radius: 12px;
  }
  .enterprise-workbench .navbar-vertical .navbar-brand {
    padding: 12px 0 8px !important;
    justify-content: center !important;
  }
  .enterprise-workbench .navbar-vertical .brand-txt,
  .enterprise-workbench .navbar-vertical .nav-link-title,
  .enterprise-workbench .navbar-vertical .sidebar-footer .dock-label,
  .enterprise-workbench .navbar-vertical .sidebar-footer .sidebar-refresh span,
  .enterprise-workbench .navbar-vertical .appearance-switch span {
    display: none !important;
  }
  .enterprise-workbench .navbar-vertical .nav-link {
    justify-content: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* 图标条里放不下两个下拉框：只留一个图标 */
  .side-scope {
    margin: 2px 6px 6px;
  }
  .side-scope-summary {
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto;
    padding: 0;
  }
  .side-scope-current,
  .side-scope-caret { display: none; }
  .side-account { margin: 2px 6px 6px; padding-top: 0; border-top: 0; }
  .side-account > summary {
    justify-content: center;
    gap: 0;
    padding: 6px;
    background: transparent;
    border: 0;
  }
  .side-account > summary #enterprise-account-name { display: none; }
}

/* 窄屏或矮屏：工作范围收成一行，点开在侧栏右侧浮出，避免把菜单挤到滚动 */
@media (max-width: 860px), (max-height: 820px) {
  .enterprise-workbench .navbar-expand-sm.navbar-vertical {
    position: relative;
    z-index: 30;
    overflow: visible;
  }
  .side-scope {
    margin: 2px 12px 8px;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .side-scope-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: var(--text, var(--theme-ink));
    background: var(--surface, color-mix(in srgb,var(--theme-ink) 4%,transparent));
    border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 16%,transparent));
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
  }
  .side-scope-summary::-webkit-details-marker { display: none; }
  .side-scope-current {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .side-scope[open] .side-scope-body {
    position: absolute;
    top: 4px;
    left: calc(100% + 10px);
    width: 240px;
    padding: 12px;
    background: var(--surface-opaque, var(--surface-raised));
    border: 1px solid var(--line, color-mix(in srgb,var(--theme-line) 20%,transparent));
    border-radius: 12px;
    box-shadow: 0 18px 44px color-mix(in srgb,var(--theme-overlay) 45%,transparent);
  }
  .side-account .enterprise-account-menu-panel {
    right: auto;
    bottom: 0;
    left: calc(100% + 10px);
    width: 180px;
  }
}

/* IP 资产勾选：三个标签平铺，允许全部不勾 */
.copy-facet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.copy-facet-options .form-check {
  margin: 0;
}

/* 分类多选：圆形勾选 */
.copy-category-options { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-category {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--theme-line); border-radius: 999px; cursor: pointer;
  user-select: none; font-size: 14px;
}
.copy-category input {
  appearance: none; -webkit-appearance: none; margin: 0; width: 16px; height: 16px;
  flex: none; border: 1.5px solid var(--theme-line); border-radius: 50%;
  background: var(--theme-sunken); position: relative; cursor: pointer;
}
.copy-category input:checked { border-color: var(--theme-line); }
.copy-category input:checked::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--theme-accent-soft);
}
.copy-category:has(input:checked) { border-color: var(--theme-line); }
#enterprise-agent-connection-dialog {
  width: min(460px, calc(100vw - 32px));
  max-width: 460px;
  padding: 0;
  border: 1px solid var(--line, var(--theme-line));
  border-radius: 16px;
  color: var(--text-1, var(--theme-ink));
  background: var(--surface, var(--theme-surface));
  box-shadow: 0 24px 80px color-mix(in srgb,var(--theme-overlay) 45%,transparent);
}
#enterprise-agent-connection-dialog::backdrop { background: color-mix(in srgb,var(--theme-accent) 58%,transparent); backdrop-filter: blur(3px); }
#enterprise-agent-connection-dialog form { display: grid; gap: 18px; padding: 22px; }
#enterprise-agent-connection-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#enterprise-agent-connection-dialog h2 { margin: 0; font-size: 18px; }
#enterprise-agent-connection-dialog header button { min-width: 34px; padding: 5px 9px; }
.ea-connection-body { display: grid; gap: 9px; min-height: 64px; }
.ea-connection-card { padding: 12px 14px; border: 1px solid var(--line, var(--theme-line)); border-radius: 11px; background: color-mix(in srgb,var(--theme-ink) 3.5%,transparent); }
.ea-connection-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ea-connection-card p { margin: 7px 0 0; color: var(--text-2, var(--theme-ink-secondary)); font-size: 12px; }
.ea-connection-state { color:var(--theme-accent-ink); font-size: 12px; }
.ea-connection-loading, .ea-connection-empty, .ea-connection-error { padding: 14px; border-radius: 10px; color: var(--text-2, var(--theme-danger)); background: color-mix(in srgb,var(--theme-danger) 3.5%,transparent); }
.ea-connection-error { color: var(--theme-danger); }

/* finesse · component: strategy tag disclosure · register=product · tokens: inherited */
.strategy-tags-disclosure { padding: 0; }
.strategy-tags-disclosure > summary { margin: 0; padding: 12px 16px; min-height: 44px; cursor: pointer; list-style: none; align-items: center; }
.strategy-tags-disclosure > summary::-webkit-details-marker { display: none; }
.strategy-tags-disclosure > summary:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 12px; }
.strategy-tags-disclosure > summary:active { background: var(--glass-2); }
.strategy-tags-toggle { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.strategy-tags-disclosure .when-open, .strategy-tags-disclosure[open] .when-closed { display: none; }
.strategy-tags-disclosure[open] .when-open { display: inline; }
.strategy-tags-disclosure[open] > summary { margin-bottom: 0; }
.strategy-tags-disclosure > .strategy-tag-grid { padding: 4px 16px 16px; }
.strategy-tags-disclosure > p { padding: 0 16px 16px; }
@media (hover: hover) { .strategy-tags-disclosure > summary:hover { background: var(--glass-2); color: var(--text); } }
