.smm-page {
  max-width: none;
}

.smm-filter-wrap {
  padding: 18px 30px 0;
}

.smm-filter-wrap .business-tag-filter {
  margin-bottom: 0;
}

.smm-workspace {
  padding: 14px 30px 30px;
}

.smm-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  margin-bottom: 10px;
}

.smm-statusbar .summary-line {
  margin: 0;
}

.smm-actions,
.smm-level-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.smm-actions button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid #cfdce7;
  border-radius: 5px;
  cursor: pointer;
}

.smm-actions button:hover,
.smm-actions button.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.smm-divider {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: #d7e2eb;
}

.smm-scale {
  min-width: 48px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.smm-canvas-wrap {
  position: relative;
  height: calc(100vh - 390px);
  min-height: 480px;
  overflow: hidden;
  background:
    linear-gradient(rgba(210, 229, 242, 0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 229, 242, 0.36) 1px, transparent 1px),
    #f4f9fd;
  background-size: 28px 28px;
  border: 1px solid #d2e3ef;
  border-radius: 8px;
  box-shadow: inset 0 1px 4px rgba(36, 98, 143, 0.05);
}

.smm-canvas {
  width: 100%;
  height: 100%;
}

.smm-canvas-tip {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 4;
  padding: 7px 11px;
  color: #667c8d;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(201, 220, 233, 0.9);
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
}

.smm-loading,
.smm-empty {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(244, 249, 253, 0.92);
  font-size: 16px;
}

.smm-node-content {
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.smm-root-node {
  width: 220px;
  padding: 19px 18px 17px;
  color: #fff;
  background: linear-gradient(135deg, #155f9a, #2b8fda);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(21, 95, 154, 0.22);
  text-align: center;
}

.smm-root-node strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
}

.smm-root-node small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.smm-category-node {
  width: 210px;
  padding: 12px 14px 11px;
  color: #fff;
  background: var(--node-color, #247fc0);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(35, 103, 154, 0.16);
}

.smm-category-node strong,
.smm-topic-node strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.smm-category-node small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

.smm-topic-node {
  width: 194px;
  padding: 10px 12px;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid #76b3df;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(35, 103, 154, 0.08);
}

.smm-topic-node small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.smm-matter-node {
  width: 240px;
  padding: 9px 11px 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d4e3ee;
  border-left: 3px solid var(--node-color, #5da5dc);
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(35, 103, 154, 0.06);
}

.smm-matter-node:hover {
  border-color: #86bbe1;
  box-shadow: 0 5px 15px rgba(35, 103, 154, 0.14);
}

.smm-matter-node strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.smm-office-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 6px;
  color: #587286;
  background: #edf5fa;
  border-radius: 3px;
  font-size: 10px;
}

.smm-mind-map-container .smm-node {
  transition: opacity 160ms ease;
}

.smm-mind-map-container .smm-expand-btn {
  cursor: pointer;
}

@media (max-width: 1440px) {
  .smm-workspace { padding: 12px 24px 24px; }
  .smm-canvas-wrap { min-height: 560px; }
  .smm-level-actions button { padding: 0 9px; }
}

@media (max-width: 1120px) {
  .smm-statusbar { align-items: flex-start; flex-direction: column; }
  .smm-actions { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .smm-canvas-wrap { height: 680px; }
}
