/* =========================================================
   小崧中台 · 工作台样式
   ========================================================= */

.console-page {
  background: #f2f8f5;
}

.console-page .topbar,
.console-page .site-header,
.console-page .footer {
  display: none;
}

.console-shell {
  display: flex;
  min-height: 100vh;
}

/* ---------- 侧边栏 ---------- */

.sidebar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 252px;
  height: 100vh;
  flex: none;
  padding: 18px 14px 14px;
  background: #081714;
  color: rgba(255, 255, 255, 0.68);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.side-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-brand .brand-mark {
  width: 32px;
  height: 32px;
  color: var(--brand);
}

.side-brand .brand-text strong {
  color: #fff;
  font-size: 16px;
}

.side-brand .brand-text small {
  color: rgba(255, 255, 255, 0.36);
}

.side-close {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.side-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.side-workspace {
  margin: 16px 4px 8px;
  padding: 12px 12px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.side-ws-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.34);
  text-transform: uppercase;
}

.side-ws-name {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-top: 8px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
}

.role-chip-requester {
  background: rgba(22, 125, 111, 0.18);
  color: #9cdccb;
}

.role-chip-provider {
  background: rgba(46, 125, 91, 0.18);
  color: #7fe0c4;
}

.role-chip-admin {
  background: rgba(168, 133, 31, 0.2);
  color: #e8d49a;
}

.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 4px 12px;
}

.side-nav::-webkit-scrollbar {
  width: 5px;
}

.side-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.side-group {
  display: block;
  margin: 18px 0 6px;
  padding-left: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.32);
}

.side-group:first-child {
  margin-top: 6px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  transition: background 0.18s ease, color 0.18s ease;
}

.side-link .i {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.18s ease;
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.side-link:hover .i {
  color: rgba(255, 255, 255, 0.78);
}

.side-link.active {
  background: rgba(22, 125, 111, 0.16);
  color: #fff;
  font-weight: 600;
}

.side-link.active .i {
  color: #a8ead9;
}

.side-dot {
  width: 7px;
  height: 7px;
  margin: 0 5px 0 6px;
  border-radius: 50%;
  flex: none;
}

.side-badge {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

.side-badge[hidden] {
  display: none;
}

.mini-badge {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(22, 125, 111, 0.16);
  color: #a8ead9;
  font-size: 9.5px;
  font-weight: 600;
}

.side-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.side-user .avatar {
  background: linear-gradient(135deg, #4fc3a8, #0f6558);
}

.side-user-text {
  min-width: 0;
}

.side-user-text strong {
  display: block;
  font-size: 12.5px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-user-text small {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.36);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-tool {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.side-tool:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.side-logout {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.42);
  flex: none;
}

.side-logout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(8, 11, 15, 0.5);
  backdrop-filter: blur(2px);
}

.sidebar-scrim[hidden] {
  display: none;
}

/* ---------- 主区域 ---------- */

.console-main {
  flex: 1;
  min-width: 0;
}

.console-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.icon-btn:hover {
  background: var(--mist);
  border-color: var(--line);
  color: var(--text);
}

.side-toggle {
  display: none;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted-2);
  min-width: 0;
}

.crumb strong {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.console-content {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 30px 30px 64px;
}

.view[hidden] {
  display: none;
}

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.view-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
}

.view-head h1 {
  margin-top: 5px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.view-sub {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 统计卡片 ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sc, var(--brand)) 9%, transparent);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.stat-label .i {
  width: 15px;
  height: 15px;
  color: var(--sc, var(--brand));
}

.stat-value {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-note {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ---------- 面板 ---------- */

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.panel {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head h2 {
  font-size: 15.5px;
  font-weight: 600;
}

.panel-head p {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.panel-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-head-actions .btn {
  flex: none;
}

.panel-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.panel-link:hover {
  color: var(--brand-deep);
}

/* 模块分布 */

.module-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.module-bar-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
}

.module-bar-label {
  font-size: 12.5px;
  color: #3b444d;
  white-space: nowrap;
}

.module-bar-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #eef3f1;
  overflow: hidden;
}

.module-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--mc, var(--brand));
  transition: width 0.5s ease;
}

.module-bar-count {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 最近动态 */

.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #eef3f1;
  cursor: pointer;
}

.recent-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.recent-item:hover .recent-title {
  color: var(--brand);
}

.recent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.recent-main {
  min-width: 0;
  flex: 1;
}

.recent-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.recent-meta {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted-2);
}

/* 快速发起 */

.quick-modules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.quick-module {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-module:hover {
  border-color: var(--mc, var(--brand));
  box-shadow: var(--shadow-sm);
}

.quick-module-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--mc, var(--brand)) 10%, #fff);
  color: var(--mc, var(--brand));
  margin-bottom: 10px;
}

.quick-module-icon .i {
  width: 18px;
  height: 18px;
}

.quick-module strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.quick-module small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted-2);
}

/* ---------- 需求列表 ---------- */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-tab {
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-tab:hover {
  background: var(--mist);
  color: var(--text);
}

.filter-tab.active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.filter-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.select {
  width: auto;
  min-width: 128px;
  height: 36px;
  padding: 0 30px 0 11px;
  font-size: 12.5px;
  border-radius: 8px;
  cursor: pointer;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .i {
  position: absolute;
  left: 11px;
  color: var(--muted-2);
  pointer-events: none;
}

.search-box input {
  width: 210px;
  height: 36px;
  padding: 0 12px 0 32px;
  font-size: 12.5px;
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted-2);
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #eef3f1;
  font-size: 12.5px;
  vertical-align: middle;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #fafcfb;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-title strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 330px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-title small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cell-muted {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.cell-module {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cell-module .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  white-space: nowrap;
}

.priority::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.priority-high { color: #c02c22; }
.priority-medium { color: #167d6f; }
.priority-low { color: var(--muted-2); }

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.empty-state {
  padding: 54px 20px;
  text-align: center;
}

.empty-state .i {
  width: 34px;
  height: 34px;
  color: #c2cdc8;
  margin: 0 auto 12px;
}

.empty-state h3 {
  font-size: 15px;
  font-weight: 600;
}

.empty-state p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.empty-state[hidden] {
  display: none;
}

/* ---------- 新建需求 ---------- */

.new-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.new-panel {
  padding: 26px;
}

.form-block {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #eef3f1;
}

.form-block:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #333a42;
}

.module-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.module-option {
  position: relative;
  padding: 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.module-option:hover {
  border-color: var(--mc, var(--brand));
}

.module-option.selected {
  border-color: var(--mc, var(--brand));
  background: color-mix(in srgb, var(--mc, var(--brand)) 6%, #fff);
  box-shadow: 0 0 0 1px var(--mc, var(--brand)) inset;
}

.module-option .mo-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--mc, var(--brand)) 10%, #fff);
  color: var(--mc, var(--brand));
  margin-bottom: 8px;
}

.module-option .mo-icon .i {
  width: 16px;
  height: 16px;
}

.module-option strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.module-option small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.form-block > .field + .field {
  margin-top: 16px;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.custom-select-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-trigger .i {
  color: var(--muted-2);
  transition: transform 0.18s ease;
}

.custom-select-trigger:hover {
  border-color: var(--brand);
}

.custom-select-trigger:focus-visible,
.custom-select-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 125, 111, 0.12);
}

.custom-select-trigger[aria-expanded="true"] .i {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.custom-option:hover,
.custom-option:focus-visible {
  outline: none;
  background: #eef8f4;
}

.custom-option.selected {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}

.custom-option-sla {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-2);
  white-space: nowrap;
}

.custom-option.selected .custom-option-sla {
  color: var(--brand);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
}

.segmented label {
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.segmented input:checked + span {
  background: #fff;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.1);
}

.segmented input:focus-visible + span {
  outline: 2px solid rgba(22, 125, 111, 0.4);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.new-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 84px;
}

.aside-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.aside-card p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-service-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.aside-service-name .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.aside-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.aside-meta span {
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--mist);
  font-size: 11px;
  color: var(--muted);
}

.tick-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.tick-list .i {
  color: #2e7d5b;
  margin-top: 2px;
}

/* ---------- 服务目录 ---------- */

.service-module {
  margin-bottom: 18px;
}

.service-module-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.service-module-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--mc) 10%, #fff);
  color: var(--mc);
  flex: none;
}

.service-module-icon .i {
  width: 21px;
  height: 21px;
}

.service-module-head h2 {
  font-size: 17px;
  font-weight: 700;
}

.service-module-head p {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 720px;
}

.service-module-head .module-count {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--mc) 40%, var(--line));
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  font-size: 14px;
  font-weight: 600;
}

.service-card p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.service-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef3f1;
}

.sla-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted-2);
}

.sla-tag .i {
  width: 13px;
  height: 13px;
}

.service-cta {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}

.service-cta:hover {
  color: var(--brand-deep);
}

/* ---------- 详情弹窗 ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 11, 15, 0.56);
  backdrop-filter: blur(3px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.modal-code {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.modal-head h2 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 24px;
  background: #fafbfb;
  border-bottom: 1px solid var(--line);
}

.modal-meta div span {
  display: block;
  font-size: 10.5px;
  color: var(--muted-2);
}

.modal-meta div strong {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
}

.modal-body {
  padding: 22px 24px 26px;
}

.modal-desc {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--mist);
  font-size: 13px;
  line-height: 1.75;
  color: #3b444d;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-section {
  margin-top: 24px;
}

.modal-section h3 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccd8d3;
  box-shadow: 0 0 0 3px #fff;
  z-index: 1;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: #e5ebe8;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item.is-created::before { background: #8b949e; }
.timeline-item.is-status::before { background: var(--brand); }
.timeline-item.is-comment::before { background: #167d6f; }
.timeline-item.is-review::before { background: #f59e0b; }

.overdue-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid #ffd4d1;
  border-radius: 5px;
  background: #fff0ef;
  color: #b42318;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.plan-note {
  display: block;
  width: 100%;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--muted-2);
  white-space: nowrap;
}

.plan-note.is-late {
  color: #b4453a;
  font-weight: 600;
}

.data-table tr.is-overdue td:first-child {
  box-shadow: inset 3px 0 0 #c02c22;
}

.timeline-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.timeline-top strong {
  font-size: 12.5px;
  font-weight: 600;
}

.timeline-top time {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted-2);
}

.timeline-content {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.plan-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-soft);
}

.plan-box[hidden] {
  display: none;
}

.plan-box-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.plan-box-head strong {
  font-size: 13px;
  color: var(--text);
}

.plan-box-head span {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.plan-box-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-box-row input[type="date"] {
  height: 36px;
  min-width: 160px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
}

.plan-box-row input[type="date"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 125, 111, 0.12);
}

.plan-box .form-error {
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-actions:empty {
  display: none;
}

.comment-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 16px;
}

.comment-form textarea {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.comment-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 125, 111, 0.12);
}

/* ---------- toast ---------- */

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #151a21;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.25s ease;
  pointer-events: auto;
}

.toast.is-error {
  background: #8f1d16;
}

.toast .i {
  width: 16px;
  height: 16px;
  color: #7fe0c4;
}

.toast.is-error .i {
  color: #fca5a5;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 通知 ---------- */

.notify-wrap {
  position: relative;
}

.notify-btn {
  position: relative;
}

.notify-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notify-badge[hidden] {
  display: none;
}

.notify-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  width: 360px;
  max-height: 460px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.notify-panel[hidden] {
  display: none;
}

.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.notify-head strong {
  font-size: 13.5px;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.text-btn:hover {
  color: var(--brand-deep);
}

.notify-list {
  max-height: 400px;
  overflow-y: auto;
}

.notify-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #eef3f1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.notify-item:first-child {
  border-top: 0;
}

.notify-item:hover {
  background: #fafcfb;
}

.notify-item.is-unread {
  background: #f4faf7;
}

.notify-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.notify-dot.read {
  background: #d5d9de;
}

.notify-body {
  min-width: 0;
}

.notify-title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.notify-text {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.notify-time {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.notify-empty {
  padding: 34px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------- SLA 提示 ---------- */

.sla-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
}

.sla-alert[hidden] {
  display: none;
}

.sla-alert > .i {
  color: #d97706;
  flex: none;
}

.sla-alert-body {
  min-width: 0;
  flex: 1;
}

.sla-alert-body strong {
  display: block;
  font-size: 13px;
  color: #92400e;
}

.sla-alert-body span {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: #b45309;
}

.sla-alert-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #b45309;
  white-space: nowrap;
}

.sla-alert-link:hover {
  color: #92400e;
}

/* ---------- 筛选 ---------- */

.filter-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-chip.active {
  background: #fff2ec;
  border-color: var(--brand);
  color: var(--brand-deep);
  font-weight: 600;
}

/* ---------- 附件 ---------- */

.file-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: #f9fcfb;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.file-drop:hover {
  border-color: var(--brand);
  background: #fffaf7;
}

.file-drop > .i {
  width: 26px;
  height: 26px;
  color: var(--brand);
  flex: none;
}

.file-drop strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.file-drop small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 11.5px;
  color: var(--muted);
}

.file-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title-row h3 {
  margin: 0;
}

.upload-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
}

.upload-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.upload-link input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f9fcfb;
}

.attachment-item > .i {
  color: var(--brand);
  flex: none;
}

.attachment-main {
  min-width: 0;
  flex: 1;
}

.attachment-name {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-meta {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.attachment-download {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  flex: none;
}

.attachment-empty {
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- 验收评价 ---------- */

.review-form {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcfb;
}

.review-form[hidden] {
  display: none;
}

.review-label {
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.star-picker {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.star-picker button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 25px;
  line-height: 1;
  color: #d6dfdb;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-picker button:hover,
.star-picker button.active {
  color: #f59e0b;
  transform: translateY(-1px);
}

.review-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 12.5px;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
}

.review-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 125, 111, 0.12);
}

.review-summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcfb;
}

.review-summary .stars {
  font-size: 20px;
  letter-spacing: 2px;
  color: #f59e0b;
}

.review-summary p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.review-summary small {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--muted-2);
}

/* ---------- 订单 ---------- */

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.order-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef3f1;
}

.order-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--muted-2);
}

.order-head strong {
  font-size: 13px;
}

.order-head .pill {
  margin-left: auto;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
}

.order-item span:first-child {
  color: var(--muted);
}

.order-item .qty {
  color: var(--muted-2);
  font-size: 11.5px;
}

.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #eef3f1;
}

.order-total {
  font-size: 12.5px;
  color: var(--muted);
}

.order-total strong {
  margin-left: 4px;
  font-size: 19px;
  color: var(--text);
  font-weight: 700;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-empty {
  padding: 34px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------- 管理后台 ---------- */

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.admin-tab:hover {
  background: var(--mist);
  color: var(--text);
}

.admin-tab.active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.admin-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user .avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
  background: linear-gradient(135deg, #4fc3a8, #0f6558);
}

.admin-user strong {
  display: block;
  font-size: 12.5px;
}

.admin-user small {
  display: block;
  font-size: 10.5px;
  color: var(--muted-2);
}

.admin-select {
  height: 32px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.admin-save {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.admin-save:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.admin-save:disabled {
  opacity: 0.5;
  cursor: default;
}

.admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

.admin-tab-count[hidden] {
  display: none;
}

.lead-filter {
  flex: none;
}

.lead-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.lead-summary-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcfb;
}

.lead-summary-item strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.lead-summary-item span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted-2);
}

.lead-summary-item.is-new strong {
  color: var(--brand);
}

.lead-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.lead-card.is-new {
  border-left: 3px solid var(--brand);
}

.lead-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lead-card-head h3 {
  margin: 0;
  font-size: 16px;
}

.lead-card-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted-2);
}

.lead-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.lead-contact-row a {
  color: var(--brand-deep);
  font-weight: 600;
}

.lead-contact-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lead-contact-row .i {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.lead-card-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lead-subject {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.lead-message {
  margin-top: 8px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--mist);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
}

.lead-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.lead-status-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
}

.lead-source {
  font-size: 11px;
  color: var(--muted-2);
}

@media (max-width: 760px) {
  .lead-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-card-head,
  .lead-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .lead-card {
    padding: 16px;
  }
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d5d9de;
  transition: background 0.18s ease;
  flex: none;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease;
}

.switch input:checked + .switch-track {
  background: var(--brand);
}

.switch input:checked + .switch-track::after {
  transform: translateX(16px);
}

.switch input:disabled + .switch-track {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- 商城下单弹窗 ---------- */

.buy-modal {
  width: min(560px, 100%);
}

.buy-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--mist);
}

.buy-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.buy-stock {
  font-size: 12px;
  color: var(--muted);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  width: 34px;
  height: 36px;
  border: 0;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}

.qty-control button:hover {
  background: var(--mist);
}

.qty-control input {
  width: 56px;
  height: 36px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  outline: none;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.buy-total {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.buy-total strong {
  margin-left: 4px;
  font-size: 19px;
  color: var(--text);
}

.buy-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.buy-modal .form-actions {
  margin-top: 0;
}

/* ---------- 人员数据 ---------- */

.team-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #455a54;
}

.team-table {
  min-width: 1000px;
}

.team-table th,
.team-table td {
  padding-left: 8px;
  padding-right: 8px;
}

.team-table td:first-child {
  min-width: 190px;
}

.team-table .admin-user small {
  max-width: 175px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-table tbody tr {
  cursor: pointer;
}

.team-number {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.team-number.is-danger {
  color: #b42318;
}

.member-modal {
  width: min(640px, 100%);
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.member-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mc, var(--brand)) 12%, #fff);
  color: var(--mc, var(--brand));
  font-size: 12px;
  font-weight: 600;
}

.member-tag-role {
  background: #fbf3dd;
  color: #8a6a12;
}

.member-tag-muted {
  background: var(--mist);
  color: var(--muted);
  font-weight: 500;
}

.member-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.member-stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcfb;
}

.member-stat span {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
}

.member-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.member-recent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-request {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.member-request:hover {
  border-color: var(--brand);
  background: #fffaf7;
}

.member-request-main {
  min-width: 0;
  flex: 1;
}

.member-request-main strong {
  display: block;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-request-main small {
  display: block;
  font-size: 10.5px;
  color: var(--muted-2);
}

/* ---------- 商品管理 ---------- */

.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-product-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-product-thumb {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  flex: none;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #4fc3a8, #167d6f);
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-thumb .i {
  width: 28px;
  height: 28px;
}

.admin-product-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-product-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-product-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted-2);
}

.admin-product-price {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.admin-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.admin-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-actions .admin-save {
  height: 28px;
}

.admin-product-actions .admin-delete {
  border-color: #ecc8c3;
  color: #b4453a;
}

.admin-product-actions .admin-delete:hover,
.admin-product-actions .admin-delete.is-armed {
  border-color: #b4453a;
  background: #b4453a;
  color: #fff;
}

.admin-product-status {
  font-size: 10.5px;
}

.product-modal {
  width: min(620px, 100%);
}

.product-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-upload-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-image-preview {
  width: 128px;
  height: 96px;
  flex: none;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--mist);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-preview span {
  font-size: 11.5px;
  color: var(--muted-2);
}

.product-upload-info {
  min-width: 0;
}

.product-upload-info .field-hint {
  margin-top: 8px;
  line-height: 1.6;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .quick-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .new-layout {
    grid-template-columns: 1fr;
  }

  .new-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 50px -20px rgba(0, 0, 0, 0.4);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .side-close {
    display: inline-flex;
  }

  .side-toggle {
    display: inline-grid;
  }

  .console-topbar {
    padding: 0 18px;
  }

  .console-content {
    padding: 22px 18px 56px;
  }

  .module-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .view-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-value {
    font-size: 27px;
  }

  .quick-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-right {
    width: 100%;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

  .new-panel {
    padding: 20px 16px;
  }

  .module-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-aside {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-grid {
    grid-template-columns: 1fr;
  }

  .product-upload-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal {
    max-height: 94vh;
  }

  .modal-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-head,
  .modal-body,
  .modal-meta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: none;
  }

  .notify-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 70px;
    width: auto;
    max-height: 70vh;
  }

  .member-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sla-alert {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sla-alert-link {
    margin-left: 28px;
  }

  .order-head .pill {
    margin-left: 0;
  }

  .buy-total {
    margin-left: 0;
    width: 100%;
  }
}

/* ---------- ERP 对接 ---------- */

.erp-endpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.erp-endpoint {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f9fcfb;
}

.erp-method {
  flex: none;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 700;
}

.erp-endpoint code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--text);
}

.erp-endpoint-desc {
  margin-left: auto;
  flex: none;
  font-size: 10.5px;
  color: var(--muted-2);
}

.erp-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.erp-stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.erp-stat strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.erp-stat span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted-2);
}

@media (max-width: 760px) {
  .erp-endpoint-grid,
  .erp-summary {
    grid-template-columns: 1fr;
  }

  .erp-endpoint-desc {
    display: none;
  }
}

/* ---------- 商品类型：实物 / 服务 ---------- */

#priceModeField[hidden],
#productStockField[hidden],
.product-service-fields[hidden] {
  display: none !important;
}

.product-service-fields {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.product-service-fields .form-row + .form-row,
.product-service-fields .form-row + .field {
  margin-top: 14px;
}

.order-kind {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--mist);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.order-kind.is-service {
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-deep);
}

.order-service-note {
  margin: -2px 0 12px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.custom-select-native {
  display: none !important;
}

.custom-select.open-up .custom-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

/* ---------- 合作伙伴审核 ---------- */

.partner-admin-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.partner-admin-stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcfb;
}

.partner-admin-stat strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.partner-admin-stat span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted-2);
}

.partner-admin-stat.is-pending strong {
  color: var(--brand);
}

.partner-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-admin-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.partner-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.partner-admin-head h3 {
  margin: 0;
  font-size: 16px;
}

.partner-admin-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted-2);
}

.partner-admin-types {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.partner-admin-types span {
  padding: 3px 8px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 10.5px;
  font-weight: 600;
}

.partner-admin-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
}

.partner-admin-mode label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
}

.partner-admin-mode .admin-select {
  min-width: 108px;
}

.partner-admin-mode .cell-muted {
  font-size: 11.5px;
}

.partner-admin-desc {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.partner-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted-2);
}

.partner-admin-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.partner-admin-actions {
  display: flex;
  gap: 8px;
}

.partner-admin-actions .partner-approve {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.partner-admin-actions .partner-approve:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

@media (max-width: 760px) {
  .partner-admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-admin-head,
  .partner-admin-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- 站点联系设置 ---------- */

.settings-form {
  max-width: 760px;
}

.settings-form .form-row + .form-row {
  margin-top: 14px;
}

.settings-form .form-actions {
  margin-top: 18px;
}

.settings-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid #ead8a8;
  border-radius: 5px;
  background: #fbf3dd;
  color: #8a6a12;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 验收评价 ---------- */

#reviewBody tr {
  cursor: pointer;
}

.review-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.review-stars span {
  color: #d8dce0;
}

.review-stars span.on {
  color: #c9a227;
}

.review-comment-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

/* ---------- 客户开通 / 邀请 ---------- */

.role-chip-customer {
  background: rgba(72, 147, 184, 0.2);
  color: #a9dff2;
}

.invite-modal {
  width: min(560px, 100%);
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lead-convert {
  border-color: var(--brand-line);
  color: var(--brand-deep);
}

.lead-convert:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* ---------- 合作伙伴工作台 ---------- */

.role-chip-partner {
  background: rgba(63, 174, 150, 0.2);
  color: #a8ead9;
}

.partner-side-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.partner-side-chips .pill {
  height: 20px;
  padding: 0 7px;
  font-size: 10.5px;
}

.partner-side-mode {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}

.partner-topbar-status {
  height: 24px;
  font-size: 11px;
}

.partner-status-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
  padding: 15px 18px;
  border: 1px solid #ead8a8;
  border-radius: 13px;
  background: #fffaf0;
  color: #745a18;
}

.partner-status-notice > .i {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}

.partner-status-notice div {
  min-width: 0;
  flex: 1;
}

.partner-status-notice strong {
  display: block;
  font-size: 13px;
}

.partner-status-notice p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.65;
  color: #806b32;
}

.partner-status-rejected,
.partner-status-disabled {
  border-color: #f1c2bd;
  background: #fff7f6;
  color: #9e3028;
}

.partner-status-rejected p,
.partner-status-disabled p {
  color: #8c544f;
}

.partner-workbench-page .partner-request-history {
  margin-top: 16px;
}

.partner-workbench-page .partner-request-history-list {
  gap: 12px;
}

.partner-workbench-page .partner-request-item {
  padding: 17px 18px;
  border-radius: 13px;
}

.partner-workbench-page .partner-request-item-head {
  align-items: flex-start;
}

.partner-workbench-page .partner-request-item-head > .pill {
  display: inline-flex;
  flex: none;
  margin-top: 0;
  font-size: 11.5px;
  color: inherit;
  line-height: normal;
}

.partner-workbench-page .partner-request-item-head strong {
  font-size: 14px;
}

.partner-workbench-page .partner-request-item-head span {
  line-height: 1.55;
}

.partner-empty-compact {
  padding: 34px 16px;
}

.partner-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.partner-identity {
  padding: 2px 0;
}

.partner-identity-code {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--mist);
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.partner-identity > strong {
  display: block;
  margin-top: 12px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.partner-identity > p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.partner-identity dl,
.partner-profile-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 16px 0;
}

.partner-identity dl > div,
.partner-profile-list > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.partner-identity dt,
.partner-profile-list dt {
  color: var(--muted-2);
}

.partner-identity dd,
.partner-profile-list dd {
  min-width: 0;
  margin: 0;
  line-height: 1.65;
  color: var(--text);
  overflow-wrap: anywhere;
}

.partner-product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.partner-product-strip article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdfc;
}

.partner-product-strip strong {
  display: block;
  font-size: 12.5px;
}

.partner-product-strip span:not(.pill) {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.partner-product-strip .pill {
  height: 22px;
  padding: 0 8px;
  font-size: 10.5px;
  flex: none;
}

.partner-request-panel .partner-request-form {
  margin-top: 0;
}

.partner-opportunity-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.partner-opportunity-form .form-row {
  margin-bottom: 2px;
}

.partner-opportunity-form .form-actions {
  margin-top: 14px;
}

.partner-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.partner-profile-icon {
  width: 20px;
  height: 20px;
  color: #aab7b1;
}

.partner-profile-help > p {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.partner-profile-help .btn {
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .partner-product-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .partner-profile-grid {
    grid-template-columns: 1fr;
  }

  .partner-status-notice {
    flex-wrap: wrap;
  }

  .partner-status-notice .btn {
    margin-left: 33px;
  }

  .partner-side-mode {
    display: none;
  }

  .partner-topbar-status {
    display: none;
  }

  .partner-identity dl > div,
  .partner-profile-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.password-modal {
  width: min(460px, 100%);
}

/* ---------- 成员账号操作 ---------- */

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-user-actions .admin-save {
  height: 28px;
  padding: 0 9px;
}

.admin-user-actions .admin-delete {
  border-color: #ecc8c3;
  color: #b4453a;
}

.admin-user-actions .admin-delete:hover,
.admin-user-actions .admin-delete.is-armed {
  border-color: #b4453a;
  background: #b4453a;
  color: #fff;
}

.admin-user-status {
  margin-left: 6px;
  font-size: 9.5px;
  vertical-align: middle;
}

/* ---------- 需求详情 · 伙伴招募 ---------- */

.sourcing-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcfb;
}

.sourcing-item + .sourcing-item {
  margin-top: 8px;
}

.sourcing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sourcing-head strong {
  display: block;
  font-size: 13px;
}

.sourcing-head .cell-muted {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}

.sourcing-invites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.sourcing-invite {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  color: var(--muted);
}

.sourcing-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
