/*
 * Platform-wide visual token layer.
 *
 * The workbench keeps the warm neutral canvas and white cards, while every
 * interactive accent uses the institutional red.  This file is loaded last
 * so legacy view styles cannot bring back the former teal/green palette.
 */
:root {
  --accent: #D71914;
  --brand-red: #D71914;
  --brand-strong: #B9120E;
  --brand-tint: #FFF0ED;
  --brand-soft: #FFF8F6;
  --brand-line: #E9B6AA;
}

button.primary,
.send-button {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
}

button.primary:hover,
.send-button:hover {
  background: var(--brand-strong) !important;
  border-color: var(--brand-strong) !important;
}

a,
.text-action,
.case-dashboard-open {
  color: var(--brand-red) !important;
}

button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline-color: var(--brand-red) !important;
}

.sidebar .brand-name,
.sidebar .brand-name > span,
.new-analysis > svg:first-child,
.nav-link.active,
.nav-link.active > svg,
.session-link.active,
.project-item.active,
.project-item.active .project-mark,
.context-title > span,
.context-ability-icon,
.context-case svg,
.composer-context button,
.case-home-nav.active,
.case-home-nav.active svg {
  color: var(--brand-red) !important;
}

.nav-link.active,
.session-link.active,
.project-item.active,
.case-home-nav.active,
.context-ability:hover,
.rail-catalog-item:hover {
  background: var(--brand-tint) !important;
}

.project-active-dot,
.status-dot,
.case-dashboard-progress-track span {
  background: var(--brand-red) !important;
}

.project-count,
.badge.green,
.badge.blue,
.badge.warn,
.badge.red {
  background: var(--brand-tint) !important;
  color: var(--brand-strong) !important;
}

.agent-composer:focus-within,
.case-dashboard-search:focus-within {
  border-color: var(--brand-red) !important;
  box-shadow: 0 0 0 2px rgba(215, 25, 20, .12) !important;
}

/* 案件总览 */
.case-dashboard {
  --dashboard-accent: var(--brand-red) !important;
}

.case-dashboard-header-meta svg,
.case-dashboard-filter.is-selected,
.case-dashboard-filter.is-selected span,
.case-dashboard-list-head h2,
.case-dashboard-number,
.case-dashboard-progress-label strong,
.case-dashboard-metrics dd,
.case-dashboard-empty svg,
.case-dashboard-card.is-active .case-dashboard-number {
  color: var(--brand-red) !important;
}

.case-dashboard-filter.is-selected {
  border-color: var(--brand-line) !important;
}

.case-dashboard-filter.is-selected span {
  background: var(--brand-tint) !important;
}

.case-dashboard-card:hover,
.case-dashboard-card.is-active {
  border-color: var(--brand-line) !important;
}

.case-dashboard-card.is-active {
  box-shadow: 0 0 0 2px rgba(215, 25, 20, .12), 0 7px 22px rgba(94, 28, 24, .08) !important;
}

.case-dashboard-progress-track span {
  background: linear-gradient(90deg, #E56D64, var(--brand-red)) !important;
}

.case-home-brand strong,
.case-home-nav.active,
.case-home-user .avatar {
  color: var(--brand-red) !important;
}

.case-home-nav.active,
.case-home-user .avatar {
  background: var(--brand-tint) !important;
}

/* 关系图谱、研析卡片和来源引用也沿用同一红色标识。 */
.relation-dot-person,
.relation-dot-statement,
.relation-dot-material {
  background: #E56D64 !important;
}

.relation-edge.is-selected,
.relation-edge:hover,
.relation-node:hover .relation-node-shape,
.relation-node.is-selected .relation-node-shape,
.relation-edge-card.is-selected {
  stroke: var(--brand-red) !important;
}

.relation-node:hover .relation-node-shape,
.relation-node.is-selected .relation-node-shape {
  fill: var(--brand-soft) !important;
}

.skill-icon,
.knowledge-icon,
.task-row-icon {
  color: var(--brand-red) !important;
  background: var(--brand-tint) !important;
}

.assistant-mark {
  background: var(--brand-red) !important;
}

.mint,
.amber,
.result-symbol.mint,
.result-symbol.amber {
  background: var(--brand-tint) !important;
  color: var(--brand-strong) !important;
}

.quick-tasks button,
.response-summary,
.evidence-quote,
.evidence-label,
.text-action,
.expand-results,
.story-link-kind,
.relation-kind {
  color: var(--brand-strong) !important;
}

.quick-tasks button:hover {
  border-color: var(--brand-line) !important;
  background: var(--brand-tint) !important;
}

.evidence-quote:hover {
  background: var(--brand-soft) !important;
  border-color: var(--brand-line) !important;
}

.evidence-label b {
  background: var(--brand-tint) !important;
  color: var(--brand-strong) !important;
}

.quick-tasks button > svg:first-child,
.task-empty svg,
.story-card-icon,
.timeline-list > div:before {
  color: var(--brand-red) !important;
}

.story-card-icon {
  background: var(--brand-tint) !important;
}

.composer-mention-menu {
  border-color: var(--brand-line) !important;
  box-shadow: 0 12px 30px rgba(94, 28, 24, .12) !important;
}

.composer-mention-option:hover,
.composer-reference:hover {
  background: var(--brand-tint) !important;
}

.composer-reference {
  border-color: var(--brand-line) !important;
  color: var(--brand-strong) !important;
  background: var(--brand-tint) !important;
}

.composer-mention-wrap {
  position: relative;
  flex-wrap: wrap;
  min-width: 0;
}

.mention-trigger {
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--brand-red);
  font-size: 11px;
}

.mention-trigger:hover,
.mention-trigger[aria-expanded="true"] {
  border-color: var(--brand-line);
  background: var(--brand-tint);
}

.mention-trigger svg {
  width: 14px;
  height: 14px;
}

.composer-mention-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 9px);
  z-index: 120;
  width: min(360px, calc(100vw - 36px));
  max-height: min(380px, 55vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

/* The composer is a floating Codex-style control. Keep the @ menu above the
   response stream instead of clipping it at the rounded composer boundary. */
.composer-dock{position:relative;z-index:80}
.agent-composer{position:relative;overflow:visible!important}
.composer-mention-wrap{z-index:121}
.composer-mention-menu{isolation:isolate}

/* Inline capability panels stay in the current task workspace. */
.context-section>summary{list-style:none;cursor:pointer;user-select:none}
.context-section>summary::-webkit-details-marker{display:none}
.context-section>summary .context-disclosure-icon{display:inline-flex;margin-left:5px;transition:transform .18s ease}
.context-section:not([open])>summary .context-disclosure-icon{transform:rotate(-90deg)}
.context-title>span{display:inline-flex;align-items:center}
.context-title .context-disclosure-icon svg{width:11px;height:11px}
.context-inline-action{display:flex;justify-content:flex-end;margin:-2px 0 4px}
.context-ability.is-open{background:var(--brand-tint)!important;color:var(--brand-strong)}
.context-ability.is-open .context-ability-icon{background:#fff;color:var(--brand-red)}
.agent-inline-panel{margin:18px auto 0;max-width:960px;border:1px solid #e5e8eb;border-radius:10px;background:#fff;box-shadow:0 8px 28px rgba(35,45,53,.08);overflow:hidden}
.agent-inline-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 17px;border-bottom:1px solid #edf0f2;background:#fffafa}
.agent-inline-panel-head h2{font-size:15px;color:#303a40}
.inline-panel-kicker{display:block;margin-bottom:2px;color:var(--brand-strong);font-size:9px;letter-spacing:.04em}
.inline-panel-close{min-height:28px;padding:4px 9px;border:1px solid var(--brand-line);border-radius:5px;background:#fff;color:var(--brand-strong);font-size:10px}
.inline-panel-close:hover{background:var(--brand-tint);border-color:var(--brand-red)}
.inline-panel-close svg{width:13px;height:13px}
.agent-inline-panel-body{max-height:min(62vh,650px);overflow:auto;padding:0 17px 18px;scrollbar-width:thin}
.agent-inline-panel-body>.page-heading{margin:0;padding:16px 0 12px;border-bottom:1px solid #edf0f2}
.agent-inline-panel-body>.page-heading .actions{display:none}
.agent-inline-panel-body>.relation-banner{margin-top:14px}
.agent-inline-panel-body>.relation-layout{margin-top:14px}
.agent-inline-panel-body>.relation-edge-list{margin-bottom:0}
.agent-inline-panel-body>.empty{padding:44px 20px}
.agent-inline-panel-body .relation-canvas{height:min(54vh,500px)}

/* Codex-style left rail: keep the work area readable while allowing the
   platform navigation to collapse to an icon rail on desktop. */
@media(min-width:761px){
  .shell.sidebar-collapsed{grid-template-columns:72px minmax(0,1fr)}
  .shell.sidebar-collapsed .sidebar{width:72px;padding-left:10px;padding-right:10px}
  .shell.sidebar-collapsed .brand{justify-content:center;padding-left:0;padding-right:0}
  .shell.sidebar-collapsed .brand-name,
  .shell.sidebar-collapsed .new-case-space span,
  .shell.sidebar-collapsed .new-analysis span,
  .shell.sidebar-collapsed .nav-label,
  .shell.sidebar-collapsed .rail-section-action,
  .shell.sidebar-collapsed .project-copy,
  .shell.sidebar-collapsed .project-count,
  .shell.sidebar-collapsed .session-list,
  .shell.sidebar-collapsed .rail-recent,
  .shell.sidebar-collapsed .sidebar-user>div{display:none}
  .shell.sidebar-collapsed .new-analysis{width:42px;justify-content:center;padding:0;margin:20px auto 8px}
  .shell.sidebar-collapsed .new-analysis>svg:last-child{display:none}
  .shell.sidebar-collapsed .new-case-space{width:42px;justify-content:center;padding:0;margin:20px auto 8px}
  .shell.sidebar-collapsed .new-case-space>svg:last-child{display:none}
  .shell.sidebar-collapsed .nav-link{justify-content:center;padding-left:7px;padding-right:7px}
  .shell.sidebar-collapsed .nav-link>span,
  .shell.sidebar-collapsed .nav-link>svg:last-child{display:none}
  .shell.sidebar-collapsed .rail-section{margin-top:15px}
  .shell.sidebar-collapsed .rail-section-head{justify-content:center;padding-right:0}
  .shell.sidebar-collapsed .project-list{max-height:none}
  .shell.sidebar-collapsed .project-item{justify-content:center;padding-left:7px;padding-right:7px}
  .shell.sidebar-collapsed .project-mark{width:30px}
  .shell.sidebar-collapsed .sidebar-user{justify-content:center;padding-left:0;padding-right:0}
}

.composer-mention-heading {
  padding: 6px 8px 8px;
  color: #6c7377;
  font-size: 11px;
  font-weight: 600;
}

.composer-mention-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #596168;
  text-align: left;
}

.composer-mention-option > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.composer-mention-option > span > svg {
  width: 15px;
  height: 15px;
  color: var(--brand-red);
  flex: none;
}

.composer-mention-option strong,
.composer-mention-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-mention-option strong {
  font-size: 11px;
  font-weight: 550;
}

.composer-mention-option small {
  margin-top: 2px;
  color: #9aa1a5;
  font-size: 9px;
}

.composer-mention-option > svg {
  width: 13px;
  height: 13px;
  color: #b6a7a4;
  flex: none;
}

.composer-mention-empty {
  padding: 16px 8px;
  color: #9aa1a5;
  font-size: 10px;
  text-align: center;
}

.composer-mention-back {
  width: 100%;
  min-height: 28px;
  margin-top: 5px;
  border: 0;
  border-top: 1px solid #f1e9e6;
  border-radius: 0;
  background: transparent;
  color: #9b7772;
  font-size: 10px;
}

.composer-references {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: min(480px, 100%);
  overflow-x: auto;
  scrollbar-width: thin;
}

.composer-reference {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 24px;
  max-width: 210px;
  padding: 2px 4px 2px 7px;
  border: 1px solid var(--brand-line);
  border-radius: 5px;
  font-size: 9px;
  white-space: nowrap;
}

.composer-reference > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.composer-reference button {
  width: 18px;
  min-height: 18px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: inherit;
}

.composer-reference button svg {
  width: 11px;
  height: 11px;
}

.request-references {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.request-references span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-size: 9px;
}

.request-references svg {
  width: 11px;
  height: 11px;
}

@media (max-width: 760px) {
  .case-dashboard-filter.is-selected {
    border-color: var(--brand-line) !important;
  }
}

/* 录音材料：播放、转写和文字提炼保持只读演示路径。 */
.source-audio-preview{border:1px solid #f0d8d4;border-radius:8px;background:#fffafa;padding:14px 14px 12px;margin-top:10px}
.source-audio-preview .source-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:11px;color:#6e777d}
.source-audio-preview .source-preview-toolbar>span{display:inline-flex;align-items:center;gap:6px;color:var(--brand-strong);font-weight:600}
.source-audio-preview .source-preview-toolbar svg{width:15px;height:15px}
.source-audio-player{display:block;width:100%;height:38px;margin:4px 0 10px;accent-color:var(--brand-red)}
.source-audio-unavailable{padding:12px;border-radius:6px;background:#f8f5f4;color:#9e8b88;font-size:11px}
.audio-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:4px 0 12px;color:#8e969c;font-size:10px}
.audio-meta span{padding-right:7px;border-right:1px solid #e7d8d5}.audio-meta span:last-child{border-right:0}
.audio-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:7px 0 12px}
.audio-action{display:inline-flex;align-items:center;gap:5px;min-height:29px;padding:5px 10px;border:1px solid #ebc7c1;border-radius:5px;background:#fff;color:var(--brand-strong);font-size:11px;cursor:pointer}
.audio-action:hover{background:var(--brand-tint);border-color:var(--brand-line)}
.audio-action.primary{background:var(--brand-red);border-color:var(--brand-red);color:#fff}.audio-action.primary:hover{background:var(--brand-strong)}
.audio-action svg{width:13px;height:13px}
.audio-transcript{border-top:1px solid #f1ddda;padding-top:10px}.audio-transcript summary{display:flex;align-items:center;gap:6px;cursor:pointer;color:#5b666d;font-size:11px;list-style:none}.audio-transcript summary::-webkit-details-marker{display:none}.audio-transcript summary>svg:first-child{width:14px;color:var(--brand-red)}.audio-transcript summary>svg:last-child{width:13px;margin-left:auto;color:#a4aaad}.audio-transcript summary .badge{margin-left:auto}.audio-transcript-body{margin-top:8px}.audio-segment{display:grid;grid-template-columns:67px 57px minmax(0,1fr);gap:6px;padding:7px 0;border-top:1px solid #f4eeee;font-size:10px;line-height:1.7}.audio-segment-time{font-family:ui-monospace,SFMono-Regular,monospace;color:#ad7971}.audio-segment-speaker{color:#7c6867;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audio-segment p{margin:0;color:#68737a;white-space:pre-wrap}.audio-transcript-text{padding:8px 0;color:#68737a;font-size:11px;line-height:1.8;white-space:pre-wrap}
.audio-summary{margin-top:12px;border-top:1px solid #f1ddda;padding-top:10px}.audio-result-heading{display:flex;align-items:center;gap:6px;color:#5b666d;font-size:11px}.audio-result-heading svg{width:14px;color:var(--brand-red)}.audio-result-heading .badge{margin-left:auto}.audio-summary ul{margin:8px 0 6px;padding-left:19px;color:#68737a;font-size:10px;line-height:1.8}.audio-summary small{color:#a09290;font-size:9px;line-height:1.6}.audio-transcript-empty{display:flex;flex-direction:column;gap:4px;border-top:1px solid #f1ddda;padding-top:11px;color:#8b959b;font-size:10px;line-height:1.6}.audio-transcript-empty strong{color:#6c777d;font-size:11px}
.context-file-icon svg[data-lucide="mic-2"]{color:var(--brand-red)}
@media(max-width:760px){.audio-segment{grid-template-columns:58px 49px minmax(0,1fr);font-size:9px}.source-audio-preview{padding:12px 10px}.audio-action{font-size:10px}.audio-meta{font-size:9px}}

/* 卷宗多格式预览：能力标签和预览卡只描述当前授权原件，不生成材料对象。 */
.context-preview-capability{margin-top:14px;padding-top:12px;border-top:1px solid #f0e8e7}.context-preview-caption{display:block;color:#8c7774;font-size:10px;margin-bottom:8px}.context-preview-format-list{display:flex;flex-wrap:wrap;gap:6px}.context-preview-format{display:inline-flex;align-items:center;gap:4px;padding:4px 6px;border:1px solid #f0d8d5;border-radius:5px;background:#fffafa;color:#8c5b57;font-size:9px}.context-preview-format i{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:3px;background:#fbe8e6;color:#c52a25;font-size:8px;font-style:normal;font-weight:700}.context-material-more{display:inline-flex;align-items:center;gap:4px;margin-top:3px;padding:4px 0;border:0;background:transparent;color:#c52621;font-size:9px}.context-material-more svg{width:11px;height:11px}.context-file-copy{min-width:0;display:block;overflow:hidden}.context-file-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.context-file-icon{display:inline-flex;align-self:flex-start;margin-top:2px;color:#bf6e68}.context-file-icon svg{width:14px;height:14px}.source-format-badge{display:inline-flex;align-items:center;min-height:18px;padding:0 5px;border-radius:4px;background:#fff2f1;color:#c52a25;font-size:9px}.source-format-card{display:flex;align-items:flex-start;gap:12px;margin:16px 0;padding:17px 15px;border:1px solid #f0d8d5;border-radius:9px;background:linear-gradient(135deg,#fffafa,#fff)}.source-format-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;border-radius:8px;background:#fbe8e6;color:#c52a25}.source-format-icon svg{width:18px;height:18px}.source-format-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.source-format-copy strong{font-size:12px;color:#533b38}.source-format-copy span{font-size:10px;color:#b44a44}.source-format-copy small{font-size:9px;color:#9d8a87}.source-open-file{display:inline-flex;align-items:center;gap:4px;margin-top:6px;color:#c52621;font-size:10px}.source-open-file svg{width:12px;height:12px}.source-native-preview{margin:15px 0;border:1px solid #ecdeda;border-radius:8px;overflow:hidden;background:#fff}.source-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid #f0e8e7;color:#87514c;font-size:10px}.source-preview-toolbar>span{display:inline-flex;align-items:center;gap:5px}.source-preview-toolbar svg{width:13px;height:13px}.source-preview-toolbar a{display:inline-flex;align-items:center;gap:3px;color:#c52621;font-size:9px}.source-preview-toolbar a svg{width:11px;height:11px}.source-native-preview iframe{display:block;width:100%;height:430px;border:0;background:#f7f8f8}
/* 新建案件导入表单 */
dialog .dialog-hint{margin:-4px 0 20px;padding:10px 12px;border-left:3px solid var(--brand-red);border-radius:4px;background:#fff7f5;color:#7f5d59;font-size:11px;line-height:1.7}
dialog .field-help{display:block;margin-top:7px;color:#929b9f;font-size:10px;line-height:1.6}
dialog input[type="file"]{width:100%;padding:8px;border-color:#ead9d5;background:#fffafa;color:#68737a;font-size:11px}
dialog input[type="file"]::file-selector-button{margin-right:9px;padding:6px 10px;border:1px solid #efc6bf;border-radius:4px;background:#fff;color:var(--brand-strong);font:inherit;cursor:pointer}
dialog input[type="file"]::file-selector-button:hover{background:var(--brand-tint)}
dialog .form-status{min-height:19px;margin:10px 0 0;color:var(--brand-strong);font-size:10px;line-height:1.6}
dialog #new-case-form .dialog-footer{justify-content:space-between}
dialog #new-case-form .dialog-footer button:last-child{min-width:118px}
/* 成员与复核概况按需查看，不占用材料阅读空间。 */
.case-info-body{font-size:12px}
.case-info-name{margin:0 0 18px;color:var(--brand-strong);font-weight:600;overflow-wrap:anywhere}
.case-info-section+.case-info-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.case-info-section h3{display:flex;align-items:center;gap:7px;margin:0 0 10px;font-size:12px;font-weight:600;color:#4f5b63}
.case-info-section h3 svg{width:15px;height:15px;color:var(--brand-red)}
.case-info-members{list-style:none;padding:0;margin:0;max-height:240px;overflow:auto}
.case-info-members li{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:8px 0;overflow-wrap:anywhere}
.case-info-members strong{font-weight:500;color:#505d65}
.case-info-members li>span{text-align:right;color:#6d787f}
.case-info-members small{display:block;margin-top:2px;font-size:11px;color:#90999e}
.case-info-status{margin:0}
.case-info-status>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:7px 0}
.case-info-status dt{color:#7c878e}
.case-info-status dd{margin:0;color:#505d65}
/* 侧栏结构：任务归属当前案件，案件空间与最近任务可独立收起。 */
.rail-section-toggle{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:24px;padding:4px;border:0;border-radius:4px;background:transparent;color:#89968c}
.rail-section-toggle:hover{background:var(--brand-tint);border-color:transparent;color:var(--brand-red)}
.rail-section-toggle svg{width:14px;height:14px}
.project-list.is-collapsed,.session-list.is-collapsed{display:none}
.project-entry{display:flex;flex-direction:column;gap:2px}
/* 案件任务直接归属案件项目，避免在主区重复维护一套任务列表。 */
.project-task-summary{display:flex;align-items:center;justify-content:space-between;margin:2px 8px 1px 30px;padding:3px 7px;color:#9b706b;font-size:10px}
.project-task-summary>span{display:flex;align-items:center;gap:5px;min-width:0}
.project-task-summary svg{width:13px;height:13px;color:var(--brand-red)}
.project-task-summary b{min-width:14px;color:var(--brand-strong);font-size:9px;font-weight:500;text-align:right}
.project-task-list{display:flex;flex-direction:column;gap:2px;margin:0 8px 6px 30px}
.project-task-item{display:flex;align-items:center;gap:6px;width:100%;min-height:25px;padding:4px 7px;border:0;border-radius:5px;background:transparent;color:#8a9692;text-align:left;font-size:10px}
.project-task-item:hover,.project-task-item.active{background:var(--brand-tint);color:var(--brand-strong)}
.project-task-item svg{width:12px;height:12px;flex:none}
.project-task-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-task-empty{padding:3px 7px;color:#b2aaa7;font-size:9px}

/* 侧栏动作保持轻量图标按钮，避免被全局按钮规则放大成独立卡片。 */
.new-case-space{display:flex;align-items:center;gap:9px;width:calc(100% - 4px);height:36px;min-height:36px;margin:20px 2px 7px;padding:7px 10px;border:1px solid #eadfdb;border-radius:7px;background:#fff;color:#60686d;font-size:12px;text-align:left;box-shadow:0 2px 8px rgba(89,53,46,.04)}
.new-case-space:hover{border-color:#e6aaa0;background:#fff8f6;color:var(--brand-strong)}
.new-case-space>svg:first-child{width:15px;height:15px;color:var(--brand-red)}
.new-case-space>svg:last-child{width:13px;height:13px;margin-left:auto;color:#a3abad}
.sidebar>.new-analysis{margin:0 2px 20px;height:36px;min-height:36px;border-radius:7px;background:#fff8f6;color:var(--brand-strong);box-shadow:none}
.sidebar .brand>.icon-btn{display:flex;flex:none;color:#8f999f}
.rail-workspace .new-case-space{margin:8px 2px 6px}
.rail-workspace .new-analysis{margin:0 2px 2px;height:36px;min-height:36px;border-radius:7px;background:#fff8f6;color:var(--brand-strong);box-shadow:none}
.rail-section-actions{gap:4px}
.rail-section-toggle{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:4px!important;border:1px solid #e2e6e3!important;border-radius:6px!important;background:#fff!important;color:#7d8985!important;line-height:1!important;box-shadow:0 1px 2px rgba(51,69,62,.04)}
.rail-section-toggle:hover{border-color:#edb3ab!important;background:var(--brand-tint)!important;color:var(--brand-red)!important}
.rail-section-toggle svg{width:14px!important;height:14px!important}
.rail-section-action{box-sizing:border-box;width:24px!important;min-width:24px;height:24px!important;min-height:24px;padding:5px!important;border:1px solid transparent;border-radius:6px}
.rail-section-action:hover{border-color:#eadfdb;background:#fff8f6;color:var(--brand-red)}
.project-item{border:1px solid transparent;transition:background .16s ease,border-color .16s ease}
.project-item.active{border-color:#f2d6d0;box-shadow:0 3px 10px rgba(215,25,20,.05)}
