/* ==========================================================================
   供应商台账 · 组件层：头部 / 金额汇总 / 风险提醒 / 页签 / 表格 / 抽屉
   ========================================================================== */

.app { min-height: 100%; padding-bottom: 40px; }

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================ 页面头部 ============================ */
.page-head {
  position: relative;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-head-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}

.head-left { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; }
.head-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.head-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }

.supplier-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  word-break: break-all;
}

.badge-demo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  border: 1px dashed var(--warn-border);
  border-radius: var(--radius-sm);
  background: var(--notice-soft);
  color: var(--notice);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
}
.head-meta .meta-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.head-meta .meta-sep { width: 1px; height: 12px; background: var(--border); }
.head-meta .val { color: var(--text-2); font-weight: 500; }

.head-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ============================ 金额汇总区 ============================ */
.summary-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.summary-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 11px 0 12px;
  overflow: visible;
}
.sum-item {
  flex: 1 0 150px;
  min-width: 150px;
  padding: 0 14px;
  border-left: 1px solid var(--divider);
  background: transparent;
  border-radius: 0;
  border-top: 0; border-right: 0; border-bottom: 0;
  text-align: left;
  transition: background .14s;
}
.sum-item:first-child { border-left: 0; padding-left: 2px; }
.sum-item:hover { background: var(--surface-2); }
.sum-item.is-active { background: var(--primary-soft); }

.sum-label {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}
.sum-label .lucide { width: 11px; height: 11px; color: var(--text-3); }
.sum-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 3px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sum-value.is-link { color: var(--primary); }
.sum-value.is-danger { color: var(--danger); }
.sum-value.is-warn { color: var(--warn); }
.sum-unit { font-size: 11px; font-weight: 400; color: var(--text-3); }

/* 资金链路汇总（分组：4 锚点 + 占用资金 + 可展开过程量） */
.sum-flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.sum-node {
  flex: 1 1 150px; min-width: 150px; text-align: left; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 12px; transition: background .14s, border-color .14s;
}
.sum-node:hover { background: var(--surface-3); border-color: var(--border-strong); }
.sum-node.is-danger { background: var(--danger-soft); border-color: var(--danger-border); }
.sum-node.is-danger .sn-value { color: var(--danger); }
.sum-node.is-link { border-color: var(--primary-border); }
.sum-node.is-warn { background: var(--warn-soft); border-color: var(--warn-border); }
.sn-label { display: flex; align-items: center; gap: 3px; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.sn-label .lucide { width: 11px; height: 11px; color: var(--text-3); }
.sn-value { margin-top: 3px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.sn-unit { font-size: 11px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.sum-arrow { display: flex; align-items: center; color: var(--text-3); flex: 0 0 auto; }
.sum-arrow .lucide { width: 15px; height: 15px; }
.sum-occupy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.sum-occupy .so-label { font-weight: 600; color: var(--text-2); }
.sum-occupy .so-item b { color: var(--text); font-family: var(--font-num); }
.sum-toggle {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  margin-top: 1px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text-2); font-size: 12px; cursor: pointer;
}
.sum-toggle:hover { background: var(--surface-2); }
.sum-toggle .lucide { width: 13px; height: 13px; }
.sum-process { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }

/* ============================ 风险提醒栏 ============================ */
.risk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.risk-lead {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding-left: 2px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}
.risk-list { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
  transition: background .14s, border-color .14s;
}
.risk-chip:hover { background: var(--surface-3); border-color: var(--border-strong); }
.risk-chip .lucide { width: 12px; height: 12px; }
.risk-chip.level-high { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }
.risk-chip.level-mid { background: var(--warn-soft); border-color: var(--warn-border); color: var(--warn); }
.risk-chip.level-low { background: var(--notice-soft); border-color: var(--notice-border); color: var(--notice); }

/* ============================ 页签导航 ============================ */
.tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.tabs {
  display: flex;
  flex-wrap: wrap;          /* 页签全部展开，宽度不足时换行而非横向滚动 */
  align-items: stretch;
  gap: 0;
  overflow: visible;
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .14s, background .14s;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.is-active { color: var(--primary); font-weight: 600; }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--primary);
}
.tab-count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tab.is-active .tab-count { background: var(--primary-soft); color: var(--primary); }
.tab .lucide { width: 14px; height: 14px; }

/* ============================ 页签内容区 ============================ */
.pane {
  padding: 14px 0 24px;
}
.pane[hidden] { display: none; }

.section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.section + .section { margin-top: 12px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--divider);
}
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.section-title .lucide { width: 14px; height: 14px; color: var(--text-3); }
.section-body { padding: 12px; }

/* 描述列表（基本信息） */
.desc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}
.desc-cell {
  display: flex;
  min-width: 0;
  padding: 7px 10px;
  background: var(--surface);
}
.desc-cell.is-span2 { grid-column: span 2; }
.desc-cell.is-span4 { grid-column: span 4; }
.desc-k {
  flex: 0 0 92px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 20px;
}
.desc-v {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 20px;
  word-break: break-all;
}
.desc-v .lucide { width: 13px; height: 13px; color: var(--text-3); vertical-align: -2px; }

/* 经营摘要 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell {
  padding: 10px 12px;
  background: var(--surface);
  text-align: center;
}
.stat-k { color: var(--text-3); font-size: 12px; }
.stat-v {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat-v small { font-size: 11px; font-weight: 400; color: var(--text-3); margin-left: 1px; }

/* 评价趋势图 */
.trend-chart { width: 100%; height: 132px; }
.trend-chart svg { width: 100%; height: 100%; overflow: visible; }
.trend-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.trend-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: 2px; }

/* 评分条 */
.score-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.score-k { flex: 0 0 88px; color: var(--text-2); font-size: 12px; }
.score-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }
.score-bar i.is-low { background: var(--warn); }
.score-bar i.is-mid { background: var(--notice); }
.score-bar i.is-high { background: var(--success); }
.score-v { flex: 0 0 46px; text-align: right; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============================ 工具栏（列表通用） ============================ */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-bottom: 1px solid var(--divider);
}
.search-box {
  position: relative;
  flex: 0 0 236px;
  max-width: 100%;
}
.search-box .lucide {
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  width: 14px; height: 14px;
}
.search-box .input { height: 28px; padding-left: 27px; }
.search-box .clear {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-3);
}
.search-box .clear:hover { background: var(--border-strong); color: var(--text); }

.filter-item { display: inline-flex; align-items: center; gap: 5px; }
.filter-item > label { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.filter-item .select, .filter-item .input { height: 28px; width: auto; min-width: 96px; }
.filter-item .input-amt { width: 88px; }
.filter-item .input-date { width: 128px; }
.filter-range { display: inline-flex; align-items: center; gap: 4px; }
.filter-range span { color: var(--text-3); }

.toolbar-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.result-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 12px;
  border-bottom: 1px solid var(--divider);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
}
.result-bar b { color: var(--text); font-variant-numeric: tabular-nums; }
.active-filters { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.filter-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
}
.filter-pin button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--primary);
}
.filter-pin button:hover { background: var(--primary-border); }

/* ============================ 表格 ============================ */
.table-scroll {
  overflow: auto;
  max-height: none;
}
table.grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
table.grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
table.grid th.is-sortable { cursor: pointer; user-select: none; }
table.grid th.is-sortable:hover { color: var(--text); background: var(--surface-3); }
table.grid th .sort-ico { margin-left: 3px; opacity: .5; }
table.grid th.is-sorted .sort-ico { opacity: 1; color: var(--primary); }
table.grid th.num, table.grid td.num { text-align: right; }
table.grid th.center, table.grid td.center { text-align: center; }

table.grid td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--divider);
  color: var(--text);
  vertical-align: middle;
}
table.grid tbody tr { transition: background .12s; }
table.grid tbody tr.is-clickable { cursor: pointer; }
table.grid tbody tr.is-clickable:hover { background: var(--primary-soft); }
table.grid tbody tr.is-clickable:hover .link-cell { color: var(--primary); text-decoration: underline; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid td .cell-sub { display: block; color: var(--text-3); font-size: 11px; }
.link-cell { color: var(--primary); font-weight: 500; }

.tfoot-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-top: 1px solid var(--divider);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
}
.tfoot-sum { font-variant-numeric: tabular-nums; }
.tfoot-sum b { color: var(--text); }

/* 分页 */
.pager { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pager .pager-info { color: var(--text-3); font-variant-numeric: tabular-nums; }
.pager .btn-icon { width: 26px; height: 26px; }
.page-size .select { height: 26px; min-width: 68px; }

/* ---------- 列表状态 ---------- */
.state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 46px 16px;
  text-align: center;
  color: var(--text-3);
}
.state-box .state-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-3);
}
.state-box .state-ico .lucide { width: 22px; height: 22px; }
.state-box .state-title { color: var(--text-2); font-size: 13px; font-weight: 600; }
.state-box .state-desc { font-size: 12px; max-width: 420px; }
.state-box .row { margin-top: 4px; }

.skeleton-row {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--divider);
}
.skeleton {
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, #eef2f6 25%, #e2e8f0 37%, #eef2f6 63%);
  background-size: 400% 100%;
  animation: skeleton 1.2s ease-in-out infinite;
}
@keyframes skeleton {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ============================ 详情抽屉 ============================ */
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 2400;
  background: rgba(15, 23, 42, .38);
  animation: fade-in .15s ease-out;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  width: 50%;
  min-width: 420px;
  max-width: 900px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: drawer-in .2s cubic-bezier(.22, .61, .36, 1);
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }

.drawer-head {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.drawer-crumb {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 4px;
  overflow: hidden;
}
.drawer-crumb button {
  border: 0; background: transparent; padding: 0;
  color: var(--text-3); font-size: 12px;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drawer-crumb button:hover { color: var(--primary); text-decoration: underline; }
.drawer-crumb .cur { color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.drawer-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.drawer-title { font-size: 15px; font-weight: 600; line-height: 1.4; word-break: break-all; }
.drawer-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
}
.drawer-sub .val { color: var(--text-2); }
.drawer-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }

.drawer-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 12px 14px 20px;
  background: var(--surface);
}

.d-block { margin-bottom: 14px; }
.d-block:last-child { margin-bottom: 0; }
.d-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--divider);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.d-block-title .lucide { width: 13px; height: 13px; color: var(--text-3); }
.d-block-title .t-3 { font-weight: 400; font-size: 11px; }

.d-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}
.d-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-cell {
  display: flex;
  min-width: 0;
  padding: 6px 9px;
  background: var(--surface);
}
.d-cell.is-span { grid-column: 1 / -1; }
.d-k { flex: 0 0 84px; color: var(--text-3); font-size: 12px; line-height: 19px; }
.d-val { flex: 1; min-width: 0; font-size: 12.5px; line-height: 19px; word-break: break-all; }
.d-val.num { font-variant-numeric: tabular-nums; }

/* 金额条 */
.amt-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}
.amt-cell { padding: 8px 10px; background: var(--surface); }
.amt-cell .k { color: var(--text-3); font-size: 11.5px; }
.amt-cell .v {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.amt-cell .v.is-danger { color: var(--danger); }
.amt-cell .v.is-success { color: var(--success); }
.amt-cell .v.is-warn { color: var(--warn); }

/* 明细小表 */
.mini-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.mini-table th {
  padding: 6px 8px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.mini-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--divider);
}
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-table tfoot td { background: var(--surface-2); font-weight: 600; }

/* 关联单据链路 */
.chain { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 2px; }
.chain-node {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  transition: border-color .14s, background .14s;
}
.chain-node:hover { border-color: var(--primary); background: var(--primary-soft); }
.chain-node.is-self { border-color: var(--primary-border); background: var(--primary-soft); cursor: default; }
.chain-node .cn-ico {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text-2);
}
.chain-node:hover .cn-ico { background: #fff; color: var(--primary); }
.chain-node .cn-t { font-size: 12px; font-weight: 600; line-height: 1.35; }
.chain-node .cn-s { color: var(--text-3); font-size: 11px; line-height: 1.35; }
.chain-arrow {
  display: flex; align-items: center;
  flex: 0 0 auto;
  padding: 0 5px;
  color: var(--text-3);
}

/* 审批时间线 */
.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 5px; bottom: 5px;
  width: 1px;
  background: var(--border);
}
.tl-item { position: relative; padding: 0 0 10px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -17px; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
}
.tl-item.is-done::before { border-color: var(--success); background: var(--success-soft); }
.tl-item.is-current::before { border-color: var(--primary); background: var(--primary-soft); }
.tl-item.is-reject::before { border-color: var(--danger); background: var(--danger-soft); }
.tl-t { font-size: 12.5px; font-weight: 500; }
.tl-s { color: var(--text-3); font-size: 11.5px; }

/* 附件列表 */
.attach-list { display: flex; flex-direction: column; gap: 6px; }
.attach {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.attach:hover { border-color: var(--primary-border); background: var(--surface-2); }
.attach .a-ico { color: var(--text-3); }
.attach .a-name { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach .a-meta { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }

/* ============================ 通知行 ============================ */
.notice-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--notice-border);
  border-radius: var(--radius);
  background: var(--notice-soft);
  color: var(--notice);
  font-size: 12px;
  line-height: 1.5;
}
.notice-line .lucide { width: 14px; height: 14px; margin-top: 1px; }
