/* 管理后台全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; color: #333; background: #f5f5f5;
}

/* ===== 登录页 ===== */
.login-container {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}
.login-card {
  background: #fff; border-radius: 12px;
  padding: 48px 40px; width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.login-card h1 { font-size: 24px; text-align: center; color: #FF6B35; }
.login-card .subtitle { text-align: center; color: #999; margin: 8px 0 32px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #666; }
.form-group input {
  width: 100%; padding: 12px 16px; font-size: 16px;
  border: 2px solid #e8e8e8; border-radius: 8px; outline: none;
}
.form-group input:focus { border-color: #FF6B35; }
.error-msg { color: #E74C3C; font-size: 14px; margin-bottom: 16px; }

/* ===== 通用布局 ===== */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 220px; background: #333; color: #fff; padding: 24px 0;
}
.sidebar h2 { padding: 0 24px 24px; font-size: 18px; color: #FF6B35; }
.sidebar a {
  display: block; padding: 14px 24px; color: #ccc;
  text-decoration: none; font-size: 15px;
}
.sidebar a:hover, .sidebar a.active { background: #444; color: #fff; }

.main-content {
  margin-left: 220px; padding: 32px; min-height: 100vh;
}
.page-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 22px; }

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-block; width: 100%;
  padding: 12px; background: #FF6B35; color: #fff;
  font-size: 16px; font-weight: 600; border: none;
  border-radius: 8px; cursor: pointer; text-align: center;
}
.btn-primary:hover { background: #E55A2B; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-danger { background: #E74C3C; }
.btn-danger:hover { background: #C0392B; }
.btn-success { background: #27AE60; }

/* ===== 卡片 / 表格 ===== */
.card {
  background: #fff; border-radius: 12px;
  padding: 24px; margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

table {
  width: 100%; border-collapse: collapse;
}
thead { background: #fafafa; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; }
th { font-weight: 600; color: #666; font-size: 14px; }
td { font-size: 14px; }

/* ===== 标签 ===== */
.tag {
  display: inline-block; padding: 2px 10px; font-size: 12px;
  border-radius: 12px;
}
.tag-success { background: #E8F8EF; color: #27AE60; }
.tag-danger { background: #FDE8E8; color: #E74C3C; }
.tag-warning { background: #FFF8E8; color: #F39C12; }
.tag-info { background: #E8F0FE; color: #3498DB; }

/* ===== 统计卡片 ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 24px;
}
.stat-card {
  background: #fff; border-radius: 12px; padding: 24px;
  text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.stat-card .number { font-size: 36px; font-weight: 700; color: #FF6B35; }
.stat-card .label { font-size: 14px; color: #999; margin-top: 8px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Web 后台 v0.1 ===== */
body { background: #f6f7fb; color: #2c2c2c; }
.sidebar { background: #242832; }
.sidebar h2 { color: #fff; line-height: 1.4; }
.sidebar .nav-caption {
  padding: 0 24px 8px; color: #8f96a3; font-size: 12px;
}
.sidebar a.active { background: #ff6b35; }
.sidebar a.logout-link { margin-top: 28px; color: #ffb5a0; }

.page-header {
  gap: 16px; align-items: flex-start;
}
.page-header .subtitle {
  margin-top: 6px; color: #7c8491; font-size: 14px;
}
.admin-meta {
  color: #7c8491; font-size: 13px; text-align: right;
}

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 18px;
}
.toolbar .spacer { flex: 1; }
.form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; margin-bottom: 6px; font-size: 13px; color: #606875;
  font-weight: 600;
}
.field label.required::before {
  content: "*"; color: #ff5a3c; margin-right: 4px;
}
.input, .select, .textarea {
  width: 100%; border: 1px solid #d9dee7; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; outline: none; background: #fff;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: #ff6b35; box-shadow: 0 0 0 3px rgba(255,107,53,.12); }
.hint { margin-top: 6px; color: #8f96a3; font-size: 12px; line-height: 1.5; }
.muted { color: #8f96a3; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.image-uploader {
  display: grid; grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px; align-items: stretch;
}
.image-uploader.compact {
  grid-template-columns: 120px minmax(0, 1fr);
}
.image-upload-preview {
  min-height: 120px; border: 1px dashed #cfd6e3; border-radius: 8px;
  background: #fafbfc; color: #98a2b3; display: flex; align-items: center;
  justify-content: center; overflow: hidden; font-size: 13px;
}
.image-uploader.compact .image-upload-preview { min-height: 92px; }
.image-upload-preview img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.image-upload-body {
  min-width: 0; display: grid; align-content: start; gap: 10px;
}
.image-upload-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}

.tabs {
  display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid #eceff4;
}
.tab-btn {
  border: 0; background: transparent; padding: 12px 16px;
  color: #667085; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent;
}
.tab-btn.active { color: #ff6b35; border-bottom-color: #ff6b35; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.btn-primary, .btn-secondary, .btn-outline, .btn-danger, .btn-success {
  width: auto; min-width: 92px; border-radius: 8px; border: none;
  padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none;
}
.btn-secondary { background: #edf0f5; color: #343a46; }
.btn-secondary:hover { background: #dde3ec; }
.btn-outline { background: #fff; color: #343a46; border: 1px solid #d9dee7; }
.btn-outline:hover { border-color: #ff6b35; color: #ff6b35; }
.btn-danger, .btn-success { color: #fff; }
.btn-success:hover { background: #219653; }
.btn-small { min-width: auto; padding: 6px 10px; font-size: 12px; }
.btn-link {
  border: 0; background: transparent; color: #ff6b35; cursor: pointer; font-weight: 600;
}
button:disabled { opacity: .62; cursor: not-allowed; }

.table-wrap { overflow-x: auto; }
.data-table td { vertical-align: top; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty {
  padding: 40px 16px; color: #8f96a3; text-align: center; background: #fafbfc;
  border-radius: 8px;
}
.loading { padding: 24px; text-align: center; color: #8f96a3; }

.quick-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.quick-card {
  display: block; background: #fff; border: 1px solid #eceff4;
  border-radius: 10px; padding: 18px; text-decoration: none; color: #2c2c2c;
}
.quick-card strong { display: block; margin-bottom: 6px; }
.quick-card span { color: #7c8491; font-size: 13px; line-height: 1.5; }
.quick-card:hover { border-color: #ff6b35; box-shadow: 0 8px 22px rgba(31,35,44,.08); }

.dashboard-page-header { align-items: flex-start; }
.dashboard-page-header > div:first-child { min-width: 260px; }
.dashboard-header-tools {
  flex: 1; min-width: 0; display: grid; gap: 12px; justify-items: end;
}
.dashboard-filter-bar {
  display: grid; grid-template-columns: 180px 220px 170px auto;
  gap: 10px; align-items: end; justify-content: end;
  width: min(100%, 850px);
}
.dashboard-page-header .field label { display: none; }
.dashboard-filter-actions {
  display: flex; gap: 8px; justify-content: flex-end; align-items: center;
}
.dashboard-metrics .metric-card {
  min-height: 104px; display: grid; grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px; align-items: center; padding: 20px;
}
.dashboard-metrics .metric-card.accent,
.dashboard-metrics .metric-card.blue,
.dashboard-metrics .metric-card.green,
.dashboard-metrics .metric-card.warning {
  border-left: 1px solid #eceff4;
}
.metric-icon {
  width: 56px; height: 56px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 22px; font-weight: 800;
}
.metric-icon svg { width: 28px; height: 28px; display: block; }
.metric-card.accent .metric-icon { background: #eaf1ff; color: #1a73e8; }
.metric-card.green .metric-icon { background: #e8f7ef; color: #25a15a; }
.metric-card.blue .metric-icon { background: #fff3df; color: #f08a00; }
.metric-card.warning .metric-icon { background: #fdebea; color: #df4a20; }
.dashboard-grid {
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(340px, .9fr);
  gap: 18px; align-items: start;
}
.dashboard-side {
  display: grid; gap: 18px; min-width: 0;
}
.dashboard-calendar-card { min-width: 0; }
.dashboard-type-summary-card { padding-bottom: 18px; }
.type-summary-strip {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #eef1f5;
}
.type-summary-item {
  min-width: 0; padding: 12px 14px; text-align: center;
  border-right: 1px solid #eef1f5;
}
.type-summary-item:last-child { border-right: 0; }
.type-summary-item strong {
  display: block; color: #343a46; font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.type-summary-item span {
  display: block; margin-top: 8px; color: #252b36; font-size: 14px;
}
.type-summary-item b {
  font-size: 18px; line-height: 1; font-weight: 800;
}
.dashboard-bottom-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px; align-items: stretch;
}
.dashboard-calendar {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #dfe4ec; border-right: 0; border-bottom: 0;
}
.dashboard-weekday {
  padding: 10px 8px; background: #f6f7fb; color: #4b5565;
  font-size: 13px; font-weight: 800; text-align: center;
  border-right: 1px solid #dfe4ec; border-bottom: 1px solid #dfe4ec;
}
.dashboard-day {
  min-height: 92px; padding: 7px; background: #fff;
  border-right: 1px solid #dfe4ec; border-bottom: 1px solid #dfe4ec;
}
.dashboard-day.out-month { background: #fbfcfe; color: #a0a7b3; }
.dashboard-day.today { box-shadow: inset 0 0 0 2px rgba(255,107,53,.22); }
.dashboard-day-head {
  display: flex; justify-content: space-between; align-items: center;
  color: #343a46; font-size: 12px; font-weight: 800; margin-bottom: 6px;
}
.dashboard-day-head span { color: #98a2b3; font-weight: 600; }
.dashboard-event-list { display: grid; gap: 5px; }
.dashboard-event {
  border-left: 3px solid #8f96a3; background: #f7f8fa; border-radius: 6px;
  padding: 4px 5px;
}
.dashboard-event strong {
  display: block; color: #343a46; font-size: 10px; line-height: 1.35;
  white-space: normal; overflow-wrap: anywhere;
}
.dashboard-event span {
  display: block; color: #6b7280; font-size: 9px; line-height: 1.35;
  white-space: normal; overflow-wrap: anywhere;
}
.dashboard-event-more { color: #7c8491; font-size: 10px; padding: 2px 4px; }
.pending-list, .type-stat-list {
  display: grid; gap: 10px;
}
.pending-item, .type-stat-item {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 12px; border: 1px solid #eceff4; border-radius: 8px;
  background: #fafbfc; text-decoration: none; color: #343a46;
}
.pending-item:hover { border-color: #ff6b35; }
.pending-item strong, .type-stat-item strong {
  display: block; font-size: 14px; color: #252b36;
}
.pending-item span, .type-stat-item span {
  display: block; margin-top: 4px; color: #7c8491; font-size: 12px;
}
.pending-count {
  min-width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff1eb; color: #ff6b35; font-weight: 800;
}
.type-stat-bar {
  grid-column: 1 / -1; height: 7px; background: #edf0f5; border-radius: 999px; overflow: hidden;
}
.type-stat-bar i {
  display: block; height: 100%; background: #ff6b35; border-radius: inherit;
}
.ranking-table {
  width: 100%; border-collapse: collapse;
}
.ranking-table th, .ranking-table td {
  padding: 10px 8px; border-bottom: 1px solid #eef1f5; font-size: 13px;
}
.ranking-table th { color: #667085; font-weight: 700; background: #fafbfc; }
.rank-medal {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: #667085; background: #edf0f5;
  font-size: 12px; font-weight: 800;
}
.rank-1 { background: #fff4d6; color: #c27803; }
.rank-2 { background: #edf0f5; color: #667085; }
.rank-3 { background: #ffe8d7; color: #b45309; }
.trend-chart {
  min-height: 238px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px; align-items: end; padding: 8px 4px 0;
}
.dashboard-trend-select {
  width: 116px; min-width: 116px; padding: 8px 10px; font-size: 13px;
}
.trend-group {
  display: grid; gap: 8px; justify-items: center; text-align: center; min-width: 0;
}
.trend-bars {
  height: 170px; display: flex; align-items: flex-end; justify-content: center;
  gap: 6px; width: 100%; border-bottom: 1px solid #dfe4ec;
}
.trend-bar {
  width: 16px; min-height: 0; border-radius: 4px 4px 0 0; display: block;
  transition: height .2s ease;
}
.trend-bar.participant { background: #42b883; }
.trend-group strong {
  color: #252b36; font-size: 12px; line-height: 1.35;
}
.trend-group em {
  color: #7c8491; font-size: 11px; font-style: normal; line-height: 1.35;
  white-space: nowrap;
}
.trend-legend {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; color: #667085; font-size: 12px;
}
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.trend-legend i.activity { background: #1a73e8; }
.trend-legend i.participant { background: #42b883; }

.team-detail-section {
  margin-top: 18px;
}
.team-detail-section h3 {
  font-size: 15px; color: #252b36; margin-bottom: 10px;
}
.team-people-list, .team-activity-list {
  display: grid; gap: 8px;
}
.team-person {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid #eceff4; border-radius: 8px;
  background: #fafbfc;
}
.team-person.pending { background: #fffaf6; border-color: #ffe0d1; }
.team-person strong {
  display: block; color: #252b36; font-size: 14px;
}
.team-person span {
  display: block; margin-top: 4px; color: #7c8491; font-size: 12px; line-height: 1.5;
}
.team-person em {
  font-style: normal; color: #ff6b35; background: #fff1eb;
  border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700;
}
.leader-picker {
  display: grid; gap: 10px;
}
.leader-picker-list {
  display: grid; gap: 8px; max-height: 260px; overflow: auto;
}
.leader-option {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid #eceff4; border-radius: 8px; background: #fafbfc;
  cursor: pointer;
}
.leader-option:has(input:checked) {
  border-color: #ffb59b; background: #fff4ed;
}
.leader-option strong {
  display: block; color: #252b36; font-size: 14px;
}
.leader-option em {
  display: block; margin-top: 4px; color: #7c8491; font-size: 12px; font-style: normal;
}
.leader-picker-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.team-activity-item {
  display: block; padding: 10px 12px; border: 1px solid #eceff4;
  border-radius: 8px; background: #fafbfc; color: #343a46; text-decoration: none;
}
.team-activity-item:hover { border-color: #ff6b35; }
.team-activity-item strong {
  display: block; font-size: 14px; color: #252b36;
}
.team-activity-item span {
  display: block; margin-top: 4px; color: #7c8491; font-size: 12px;
}

.audit-list {
  display: grid; gap: 10px;
}
.audit-list-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
  width: 100%; text-align: left; border: 1px solid #eceff4; background: #fff;
  border-radius: 8px; padding: 13px; cursor: pointer;
}
.audit-list-item:hover, .audit-list-item.selected {
  border-color: #ff6b35; box-shadow: 0 8px 20px rgba(31,35,44,.06);
}
.audit-list-item strong {
  grid-column: 1 / 2; color: #252b36; font-size: 14px;
}
.audit-list-item span {
  grid-column: 1 / 2; color: #7c8491; font-size: 12px; line-height: 1.5;
}
.audit-list-item .audit-type {
  display: inline-flex; width: fit-content; color: #ff6b35;
  background: #fff1eb; border-radius: 999px; padding: 3px 8px; font-weight: 700;
}
.audit-list-item em {
  grid-row: 1 / 3; grid-column: 2 / 3; font-style: normal;
}
.audit-list-item small {
  grid-column: 1 / -1; color: #98a2b3; font-size: 12px;
}
.audit-detail-image {
  width: 100%; margin: 14px 0; max-height: 260px; object-fit: cover;
}
.audit-remark {
  margin: 16px 0; padding: 12px; background: #fafbfc;
  border: 1px solid #eceff4; border-radius: 8px;
}
.audit-remark strong {
  display: block; color: #252b36; margin-bottom: 6px; font-size: 13px;
}
.audit-remark p {
  color: #667085; font-size: 13px; line-height: 1.6;
}
.audit-quick-reasons {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0;
}

.tag-draft { background: #edf0f5; color: #667085; }
.tag-published { background: #e8f8ef; color: #219653; }
.tag-registering { background: #e8f8ef; color: #219653; }
.tag-upcoming { background: #e8f0fe; color: #3498db; }
.tag-ended { background: #f1f2f4; color: #667085; }
.tag-offline { background: #f1f2f4; color: #667085; }
.tag-cancelled { background: #fde8e8; color: #e74c3c; }
.tag-pending { background: #fff8e8; color: #f39c12; }
.tag-approved { background: #e8f8ef; color: #27ae60; }
.tag-rejected { background: #fde8e8; color: #e74c3c; }
.tag-default { background: #f1f2f4; color: #667085; }

.toast {
  position: fixed; right: 24px; top: 24px; z-index: 20;
  background: #242832; color: #fff; border-radius: 8px; padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2); display: none;
}
.toast.error { background: #e74c3c; }
.toast.success { background: #27ae60; }

.modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(20,24,31,.42); z-index: 15; padding: 24px;
}
.modal.active { display: flex; }
.modal-panel {
  width: min(920px, 100%); max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.modal-header {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px;
}
.modal-header h2 { font-size: 20px; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.image-thumb {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px;
  background: #edf0f5;
}
.featured-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start;
}
.featured-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid #eceff4;
}
.featured-item:last-child { border-bottom: 0; }
.featured-preview {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
}

.batch-table input, .batch-table select { min-width: 110px; }
.batch-results {
  margin-top: 16px; padding: 12px; background: #fafbfc; border-radius: 8px;
  font-size: 13px; line-height: 1.7;
}
.batch-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px; align-items: start;
}
.batch-main, .batch-side { min-width: 0; }
.batch-side {
  position: sticky; top: 24px; display: grid; gap: 14px;
}
.batch-note {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 14px; border: 1px solid #ffe0d1;
  border-radius: 8px; background: #fff7f1; color: #7c4b36; font-size: 13px;
}
.batch-edit-table {
  min-width: 1380px;
}
.batch-edit-table th, .batch-edit-table td {
  padding: 10px; vertical-align: top;
}
.batch-edit-table .batch-index {
  width: 42px; text-align: center;
}
.batch-fieldset {
  display: grid; gap: 8px; min-width: 170px;
}
.batch-fieldset.compact { min-width: 130px; }
.batch-fieldset.wide { min-width: 210px; }
.batch-fieldset .input, .batch-fieldset .select, .batch-fieldset .textarea {
  padding: 8px 10px; font-size: 13px;
}
.batch-fieldset .textarea {
  min-height: 104px; max-height: 180px;
}
.batch-row-status {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: #edf0f5; color: #667085;
}
.batch-row-status.ok { background: #e8f8ef; color: #27ae60; }
.batch-row-status.error { background: #fde8e8; color: #e74c3c; }
.batch-summary {
  display: grid; gap: 10px;
}
.batch-summary-card {
  border: 1px solid #eceff4; border-radius: 8px; padding: 12px; background: #fafbfc;
}
.batch-summary-card strong { display: block; color: #252b36; margin-bottom: 6px; }
.batch-summary-card p { color: #7c8491; font-size: 13px; line-height: 1.5; }
.batch-error-list {
  display: grid; gap: 8px;
}
.batch-error-item {
  border: 1px solid #f6c8c4; border-radius: 8px; padding: 10px;
  background: #fff8f7; color: #70342f; font-size: 13px; line-height: 1.5;
}
.batch-preview-list {
  display: grid; gap: 10px;
}
.batch-preview-item {
  border: 1px solid #eceff4; border-radius: 8px; padding: 12px;
  background: #fff;
}
.batch-preview-item strong { display: block; color: #252b36; font-size: 14px; margin-bottom: 6px; }
.batch-preview-item p { color: #7c8491; font-size: 12px; line-height: 1.6; }
.file-button {
  display: inline-flex; align-items: center; justify-content: center;
}
.import-status {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 14px; margin-bottom: 14px; border: 1px solid #eceff4;
  border-radius: 8px; background: #fafbfc; color: #667085; font-size: 13px;
}
.import-status strong { color: #252b36; }
.import-preview-table { min-width: 1120px; }
.import-preview-table td { vertical-align: top; }
.import-preview-table .desc-cell {
  max-width: 240px; white-space: normal; line-height: 1.5;
}
.import-preview-table .row-error td { background: #fff8f7; }
.import-preview-table .row-ok td { background: #f8fff9; }
.import-row-status {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; border-radius: 50%;
  background: #edf0f5; color: #667085; font-size: 12px; font-weight: 800;
}
.import-row-status.ok { background: #e8f8ef; color: #27ae60; }
.import-row-status.error { background: #fde8e8; color: #e74c3c; }
.calendar-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px; align-items: start;
}
.calendar-main, .calendar-side { min-width: 0; }
.calendar-side {
  position: sticky; top: 24px; display: grid; gap: 14px;
}
.calendar-settings {
  display: grid; gap: 12px;
}
.calendar-checks {
  display: grid; gap: 10px; color: #4b5565; font-size: 13px;
}
.calendar-checks label {
  display: flex; align-items: center; gap: 8px;
}
.calendar-preview-card {
  background: #fff; border: 1px solid #eceff4; border-radius: 8px;
  padding: 20px; min-height: 720px; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.calendar-paper-head {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  margin-bottom: 14px;
}
.calendar-paper-head h2 { font-size: 24px; color: #252b36; }
.calendar-paper-head p { margin-top: 6px; color: #7c8491; font-size: 13px; }
.calendar-signature {
  color: #5d6675; font-size: 13px; font-weight: 700; text-align: right;
}
.calendar-legend {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.calendar-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: #5d6675; font-size: 12px;
}
.calendar-legend-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #dfe4ec; border-right: 0; border-bottom: 0;
}
.calendar-weekday {
  padding: 10px 8px; background: #f6f7fb; color: #4b5565;
  font-size: 13px; font-weight: 800; text-align: center;
  border-right: 1px solid #dfe4ec; border-bottom: 1px solid #dfe4ec;
}
.calendar-cell {
  min-height: 118px; padding: 8px; border-right: 1px solid #dfe4ec;
  border-bottom: 1px solid #dfe4ec; background: #fff; overflow: hidden;
}
.calendar-cell.out-month { background: #fbfcfe; color: #a0a7b3; }
.calendar-cell.today { box-shadow: inset 0 0 0 2px rgba(255,107,53,.22); }
.calendar-date {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
  font-size: 12px; font-weight: 800; color: #343a46;
}
.calendar-date span:last-child {
  color: #98a2b3; font-weight: 600;
}
.calendar-events {
  display: grid; gap: 5px;
}
.calendar-event {
  border-left: 3px solid #8f96a3; background: #f7f8fa; border-radius: 6px;
  padding: 5px 6px; color: #343a46;
}
.calendar-event strong {
  display: block; font-size: 11px; line-height: 1.35;
  white-space: normal; overflow-wrap: anywhere;
}
.calendar-event span {
  display: block; margin-top: 2px; font-size: 10px; line-height: 1.35;
  color: #6b7280; white-space: normal; overflow-wrap: anywhere;
}
.calendar-more {
  font-size: 10px; color: #7c8491; padding: 2px 4px;
}
.calendar-footer {
  min-height: 18px; margin-top: 14px; color: #7c8491; font-size: 12px; text-align: right;
}
.calendar-type-health { border-left-color: #27ae60; background: #edf9f0; }
.calendar-type-culture { border-left-color: #c35aa0; background: #fff0f8; }
.calendar-type-service { border-left-color: #4e9ecf; background: #edf7fc; }
.calendar-type-sport { border-left-color: #f39c12; background: #fff8e8; }
.calendar-type-class { border-left-color: #7b61ff; background: #f3f0ff; }
.calendar-type-redemption { border-left-color: #e74c3c; background: #fff1ef; }
.calendar-type-volunteer_service { border-left-color: #16a085; background: #eafaf7; }

.export-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px; align-items: start;
}
.export-main, .export-side { min-width: 0; }
.export-side {
  position: sticky; top: 24px; display: grid; gap: 14px;
}
.export-filter-bar {
  display: grid; grid-template-columns: minmax(240px, 1fr) 220px;
  gap: 14px; margin-bottom: 16px;
}
.export-summary-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-bottom: 14px;
}
.export-summary-card {
  background: #fff; border: 1px solid #eceff4; border-radius: 8px;
  padding: 14px; min-height: 92px;
}
.export-summary-card strong {
  display: block; color: #252b36; font-size: 20px; line-height: 1.2;
}
.export-summary-card span {
  display: block; margin-top: 8px; color: #667085; font-size: 12px; line-height: 1.5;
}
.export-actions-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.export-preview-card {
  background: #fff; border: 1px solid #eceff4; border-radius: 8px;
  padding: 18px; min-height: 360px;
}
.export-current-meta {
  display: grid; gap: 8px; color: #667085; font-size: 13px; line-height: 1.5;
}
.export-current-meta strong {
  color: #252b36; font-size: 15px;
}
.export-doc-preview {
  display: grid; gap: 12px;
}
.export-doc-preview .doc-section {
  border: 1px solid #eef1f5; border-radius: 8px; padding: 14px; background: #fafbfc;
}
.export-doc-preview h4 {
  margin-bottom: 8px; color: #252b36; font-size: 14px;
}
.export-doc-preview p {
  color: #5d6675; line-height: 1.7; font-size: 13px;
}
.export-photo-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.export-photo-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px;
  border: 1px solid #eceff4;
}
.export-preview-table {
  max-height: 520px; overflow: auto; border: 1px solid #eef1f5; border-radius: 8px;
}
.export-preview-table .data-table {
  margin: 0;
}

.section-title-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-bottom: 16px;
}
.section-title-row h2 { font-size: 18px; color: #252b36; }
.section-title-row h3 { font-size: 16px; color: #252b36; }
.section-title-row p { margin-top: 4px; color: #7c8491; font-size: 13px; }
.section-title-row.compact {
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f0f2f6;
}

.metric-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; margin-bottom: 18px;
}
.metric-card {
  background: #fff; border: 1px solid #eceff4; border-radius: 8px;
  padding: 18px; min-height: 112px;
}
.metric-card .metric-value {
  font-size: 30px; line-height: 1; font-weight: 700; color: #252b36;
}
.metric-card .metric-label {
  margin-top: 10px; font-size: 14px; color: #667085; font-weight: 600;
}
.metric-card .metric-note {
  margin-top: 8px; font-size: 12px; color: #98a2b3;
}
.metric-card.accent { border-left: 4px solid #ff6b35; }
.metric-card.blue { border-left: 4px solid #4e9ecf; }
.metric-card.green { border-left: 4px solid #4f9f63; }
.metric-card.warning { border-left: 4px solid #f39c12; }

.workbench-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px; align-items: start;
}
.list-panel, .detail-panel {
  min-width: 0;
}
.detail-panel {
  position: sticky; top: 24px;
  border: 1px solid #eceff4; border-radius: 8px; padding: 18px;
  background: #fff;
}
.detail-panel h2 { font-size: 18px; margin-bottom: 8px; color: #252b36; }
.detail-panel .detail-subtitle { color: #7c8491; font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.detail-cover {
  height: 168px; margin-bottom: 14px; border-radius: 8px; overflow: hidden;
  background: #fff1e8; color: #b07155; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13px;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-heading-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.audit-notice {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 8px;
  font-size: 13px; line-height: 1.5;
}
.audit-notice.warning { background: #fff8e8; color: #9a5b00; }
.audit-notice.danger { background: #fde8e8; color: #b42318; }
.detail-list {
  display: grid; gap: 12px; margin: 16px 0;
}
.detail-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 10px;
  font-size: 13px; line-height: 1.5;
}
.detail-row .label { color: #7c8491; }
.detail-row .value { color: #252b36; font-weight: 600; }
.detail-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 16px 0;
}
.progress-line {
  height: 8px; border-radius: 999px; background: #edf0f5; overflow: hidden;
}
.progress-line span {
  display: block; height: 100%; background: #4f9f63; border-radius: inherit;
}
.photo-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin-top: 12px;
}
.photo-strip img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px;
  background: #edf0f5;
}
.photo-placeholder {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #fafbfc; color: #98a2b3; font-size: 12px;
  text-align: center; padding: 8px;
}
.activity-row {
  cursor: pointer;
}
.activity-row:hover td { background: #fffaf7; }
.activity-row.selected td { background: #fff4ed; }
.activity-title-cell {
  display: grid; grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px; align-items: center; min-width: 220px;
}
.activity-title-cell strong {
  display: block; color: #252b36; line-height: 1.35;
}
.activity-thumb {
  width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
  background: #fff1e8; display: flex; align-items: center; justify-content: center;
  color: #ff6b35; font-weight: 800;
}
.activity-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-action-row {
  display: flex; flex-wrap: wrap; gap: 8px 10px; min-width: 130px;
}
.activity-action-row .action-link {
  padding: 0; font-size: 13px; line-height: 1.6; color: #1a73e8;
}
.activity-action-row .action-link.danger { color: #e74c3c; }
.filter-bar {
  display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.filter-actions {
  display: flex; gap: 10px; align-items: center;
}

/* ===== 活动管理工作台精修 ===== */
.activity-page {
  padding: 24px 30px;
}
.activity-page-header {
  align-items: flex-start;
  margin-bottom: 18px;
}
.activity-page-header h1 {
  font-size: 24px;
  line-height: 1.2;
  color: #111827;
}
.activity-header-tools {
  flex: 1;
  min-width: 680px;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.activity-top-filter {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 150px 150px 150px minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.activity-top-filter .input,
.activity-top-filter .select {
  height: 40px;
  border-color: #e2e7ef;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
}
.activity-search {
  position: relative;
}
.activity-search::after {
  content: "⌕";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 18px;
  pointer-events: none;
}
.activity-search .input {
  padding-right: 38px;
}
.activity-create-btn {
  height: 40px;
  min-width: 108px;
  box-shadow: 0 8px 18px rgba(255, 107, 53, .22);
}
.activity-create-btn::before {
  content: "+";
  margin-right: 6px;
  font-size: 18px;
  line-height: 0;
}
.activity-metrics {
  gap: 14px;
}
.activity-metric-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 94px;
  padding: 18px 22px;
  border-left: 1px solid #eceff4;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}
.activity-metric-card .metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 22px;
}
.activity-metric-card .metric-label {
  margin-top: 0;
  color: #667085;
  font-size: 13px;
}
.activity-metric-card .metric-value {
  margin-top: 6px;
  font-size: 28px;
}
.activity-metric-card .metric-note {
  margin-top: 5px;
}
.activity-workbench-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7ebf1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}
.activity-workbench-card .tabs {
  margin: 0;
  padding: 0 18px;
  background: #fff;
}
.activity-workbench-card .tab-panel {
  padding: 16px 18px 20px;
}
.activity-list-filter {
  grid-template-columns: auto 132px auto 132px auto 190px minmax(250px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0 14px;
  border-bottom: 1px solid #f0f2f6;
}
.activity-list-filter .select {
  height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.filter-label {
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
}
.date-range-chip {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  background: #fff;
  white-space: nowrap;
}
.activity-list-filter .filter-actions {
  justify-content: flex-end;
}
.activity-list-filter .btn-primary,
.activity-list-filter .btn-outline {
  min-width: 64px;
  height: 36px;
  padding: 8px 14px;
}
.advanced-filter-link {
  min-width: auto;
  padding: 0 2px;
  color: #1a73e8;
}
.activity-workbench-card .workbench-grid {
  grid-template-columns: minmax(760px, 1fr) 420px;
  gap: 16px;
}
.activity-workbench-card .list-panel {
  border: 1px solid #edf0f5;
  border-radius: 8px;
  overflow: hidden;
}
.activity-workbench-card .table-wrap {
  overflow-x: auto;
}
.activity-workbench-card .data-table {
  min-width: 980px;
}
.activity-workbench-card th,
.activity-workbench-card td {
  padding: 11px 12px;
  vertical-align: middle;
}
.activity-workbench-card th {
  color: #344054;
  background: #fbfcfe;
  white-space: nowrap;
}
.activity-workbench-card td {
  color: #252b36;
}
.activity-title-cell {
  min-width: 250px;
}
.activity-title-cell strong {
  font-size: 14px;
}
.activity-location {
  margin-top: 4px;
  color: #8f96a3;
  font-size: 12px;
  line-height: 1.35;
}
.activity-time-cell {
  min-width: 112px;
  line-height: 1.35;
  white-space: nowrap;
}
.activity-time-cell span {
  color: #667085;
  font-size: 12px;
}
.type-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2ff;
  color: #3154c8;
  white-space: nowrap;
}
.type-health { background: #e8f8ef; color: #219653; }
.type-culture { background: #fff0e8; color: #d95c24; }
.type-service { background: #eaf4ff; color: #1a73e8; }
.type-sport { background: #eaf8f1; color: #188c5a; }
.type-class { background: #f0ebff; color: #7554d9; }
.type-redemption { background: #fff5dd; color: #b86b00; }
.type-volunteer_service { background: #e8fbf6; color: #087f6f; }
.activity-action-row {
  min-width: 118px;
}
.detail-panel {
  top: 18px;
  border-color: #e4e8ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.detail-cover {
  height: 158px;
  background: #fff0e8;
}
.detail-list {
  gap: 11px;
}
.detail-row {
  grid-template-columns: 82px 1fr;
}
.detail-section-title {
  margin: 18px 0 10px;
  color: #252b36;
  font-size: 14px;
  font-weight: 700;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #667085;
  font-size: 12px;
}
.detail-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.detail-actions .btn-small {
  min-height: 54px;
  padding: 8px 6px;
}

/* 活动管理二次收窄：让列表列完整露出 */
.activity-workbench-card .workbench-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.activity-workbench-card .data-table {
  min-width: 840px;
}
.activity-workbench-card th,
.activity-workbench-card td {
  padding: 10px 10px;
}
.activity-workbench-card .activity-title-cell {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  min-width: 196px;
  max-width: 230px;
}
.activity-workbench-card .activity-title-cell strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.activity-workbench-card .activity-thumb {
  width: 46px;
  height: 46px;
}
.activity-workbench-card .activity-time-cell {
  min-width: 96px;
}
.activity-workbench-card .activity-action-row {
  min-width: 104px;
  gap: 6px 8px;
}
.activity-workbench-card .detail-panel {
  padding: 14px;
}
.activity-workbench-card .detail-cover {
  height: 122px;
  margin-bottom: 12px;
}
.activity-workbench-card .detail-panel h2 {
  font-size: 17px;
}
.activity-workbench-card .detail-panel .detail-subtitle {
  font-size: 12px;
  margin-bottom: 12px;
}
.activity-workbench-card .detail-row {
  grid-template-columns: 72px 1fr;
  font-size: 12px;
}
.activity-workbench-card .detail-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.activity-workbench-card .detail-actions .btn-small {
  min-height: 38px;
}

/* ===== 团队管理工作台精修 ===== */
.team-page {
  padding: 24px 30px;
}
.team-page-header {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.team-page-header h1 {
  font-size: 24px;
  line-height: 1.2;
  color: #111827;
}
.team-header-tools {
  flex: 1;
  min-width: 760px;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.team-top-filter {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: 138px 150px 154px minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.team-top-filter .input,
.team-top-filter .select {
  height: 40px;
  border-color: #e2e7ef;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
}
.team-search {
  position: relative;
}
.team-search::after {
  content: "⌕";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 18px;
  pointer-events: none;
}
.team-search .input {
  padding-right: 38px;
}
.team-create-btn {
  height: 40px;
  min-width: 108px;
  box-shadow: 0 8px 18px rgba(255, 107, 53, .22);
}
.team-create-btn::before {
  content: "+";
  margin-right: 6px;
  font-size: 18px;
  line-height: 0;
}
.team-metrics {
  gap: 14px;
}
.team-metric-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 94px;
  padding: 18px 22px;
  border-left: 1px solid #eceff4;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}
.team-metric-card .metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 20px;
}
.team-metric-card .metric-label {
  margin-top: 0;
  color: #667085;
  font-size: 13px;
}
.team-metric-card .metric-value {
  margin-top: 6px;
  font-size: 28px;
}
.team-metric-card .metric-note {
  margin-top: 5px;
}
.team-workbench-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7ebf1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}
.team-workbench-card .tabs {
  margin: 0;
  padding: 0 18px;
  background: #fff;
}
.team-sub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f0f2f6;
  color: #667085;
  font-size: 13px;
}
.team-workbench-card .workbench-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  padding: 16px 18px 18px;
}
.team-workbench-card .list-panel {
  border: 1px solid #edf0f5;
  border-radius: 8px;
  overflow: hidden;
}
.team-workbench-card .table-wrap {
  overflow-x: auto;
}
.team-table {
  min-width: 780px;
  table-layout: fixed;
}
.team-table th:nth-child(1),
.team-table td:nth-child(1) { width: 190px; }
.team-table th:nth-child(2),
.team-table td:nth-child(2) { width: 108px; }
.team-table th:nth-child(3),
.team-table td:nth-child(3) { width: 84px; }
.team-table th:nth-child(4),
.team-table td:nth-child(4) { width: 66px; }
.team-table th:nth-child(5),
.team-table td:nth-child(5) { width: 70px; }
.team-table th:nth-child(6),
.team-table td:nth-child(6) { width: 112px; }
.team-table th:nth-child(7),
.team-table td:nth-child(7) { width: 68px; }
.team-table th:nth-child(8),
.team-table td:nth-child(8) { width: 82px; }
.team-workbench-card th,
.team-workbench-card td {
  padding: 10px 10px;
  vertical-align: middle;
}
.team-workbench-card th {
  color: #344054;
  background: #fbfcfe;
  white-space: nowrap;
}
.team-workbench-card td {
  color: #252b36;
}
.team-row {
  cursor: pointer;
}
.team-row:hover td {
  background: #fffaf7;
}
.team-row.selected td {
  background: #fff4ed;
}
.team-name-col {
  width: 190px;
  min-width: 190px;
}
.team-name-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}
.team-name-cell strong {
  display: block;
  color: #252b36;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-name-cell .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff0e8;
  color: #ff6b35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.team-avatar.small {
  width: 38px;
  height: 38px;
  font-size: 15px;
}
.team-avatar.large {
  width: 58px;
  height: 58px;
  font-size: 22px;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-pending-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fff0e8;
  color: #ff5a28;
  font-size: 12px;
  font-weight: 700;
}
.pending-count {
  color: #ff5a28;
  font-weight: 800;
}
.team-recent-cell {
  display: grid;
  gap: 3px;
  min-width: 96px;
  line-height: 1.35;
}
.team-recent-cell strong {
  font-size: 13px;
  color: #252b36;
}
.team-recent-cell span {
  color: #667085;
  font-size: 12px;
}
.team-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 72px;
}
.team-action-row .action-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
}
.team-action-row .action-link:hover {
  color: #ff6b35;
}
.role-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 6px;
  padding: 3px 7px;
  background: #fff0e8;
  color: #ff5a28;
  font-size: 12px;
  font-weight: 700;
}
.team-workbench-card .tag-active {
  background: #e8f8ef;
  color: #219653;
}
.team-workbench-card .tag-disabled,
.team-workbench-card .tag-offline {
  background: #edf0f5;
  color: #667085;
}
.team-workbench-card .detail-panel {
  top: 18px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 14px;
  border-color: #e4e8ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.team-detail-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f5;
}
.team-detail-title {
  min-width: 0;
}
.team-detail-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.team-detail-title h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
}
.team-detail-title p {
  margin-top: 8px;
  color: #5f6775;
  font-size: 13px;
  line-height: 1.5;
}
.team-detail-close {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 20px;
  line-height: 22px;
  cursor: pointer;
}
.team-detail-close:hover {
  background: #f4f6f9;
  color: #ff6b35;
}
.team-detail-intro {
  padding: 16px 0 14px;
  border-bottom: 1px solid #edf0f5;
}
.team-detail-intro h3,
.team-detail-section h3 {
  margin: 0;
  color: #252b36;
  font-size: 15px;
  line-height: 1.4;
}
.team-detail-intro p {
  margin-top: 8px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.8;
}
.team-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f5;
}
.team-detail-actions .btn-small {
  min-height: 40px;
}
.team-detail-section {
  margin-top: 18px;
}
.team-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.team-section-heading span {
  color: #667085;
  font-size: 12px;
}
.team-people-list,
.team-activity-list {
  display: grid;
  gap: 8px;
}
.team-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eceff4;
  border-radius: 8px;
  background: #fafbfc;
}
.team-person strong {
  display: block;
  color: #252b36;
  font-size: 14px;
}
.team-person span {
  display: block;
  margin-top: 4px;
  color: #7c8491;
  font-size: 12px;
  line-height: 1.5;
}
.team-person em {
  font-style: normal;
  color: #ff6b35;
  background: #fff1eb;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}
.team-mini-table-wrap {
  overflow-x: auto;
  border: 1px solid #eef1f5;
  border-radius: 8px;
}
.team-mini-table {
  min-width: 100%;
  table-layout: fixed;
}
.team-mini-table th:nth-child(1),
.team-mini-table td:nth-child(1) { width: 72px; }
.team-mini-table th:nth-child(2),
.team-mini-table td:nth-child(2) { width: 106px; }
.team-mini-table th:nth-child(3),
.team-mini-table td:nth-child(3) { width: 48px; }
.team-mini-table th:nth-child(4),
.team-mini-table td:nth-child(4) { width: 64px; }
.team-mini-table th,
.team-mini-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-mini-table th,
.team-mini-table td {
  padding: 8px 8px;
  font-size: 12px;
  vertical-align: middle;
}
.team-mini-table th {
  background: #fafbfc;
  color: #344054;
}
.team-mini-table td {
  color: #252b36;
}
.team-mini-table .muted {
  font-size: 12px;
  line-height: 1.5;
}
.pending-table {
  min-width: 520px;
  table-layout: auto;
}
.pending-table th,
.pending-table td {
  width: auto;
  white-space: normal;
}
.nowrap-actions {
  flex-wrap: nowrap;
}
.leader-picker {
  display: grid;
  gap: 10px;
}
.leader-picker-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}
.leader-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eceff4;
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
}
.leader-option strong {
  display: block;
  color: #252b36;
  font-size: 13px;
}
.leader-option em {
  display: block;
  margin-top: 3px;
  color: #7c8491;
  font-size: 12px;
  font-style: normal;
}
.leader-picker-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.team-activity-item {
  display: block;
  padding: 10px 12px;
  border: 1px solid #eceff4;
  border-radius: 8px;
  background: #fafbfc;
  color: #343a46;
  text-decoration: none;
}
.team-activity-item:hover {
  border-color: #ff6b35;
}
.team-activity-item strong {
  display: block;
  color: #252b36;
  font-size: 14px;
}
.team-activity-item span {
  display: block;
  margin-top: 4px;
  color: #7c8491;
  font-size: 12px;
}
.empty.compact {
  padding: 24px 12px;
}
.team-edit-modal .modal-panel {
  width: min(760px, 100%);
}
.team-edit-modal .modal-header {
  align-items: flex-start;
}
.team-edit-modal .modal-header .subtitle {
  margin-top: 6px;
  color: #7c8491;
  font-size: 13px;
}
.team-edit-cover-uploader {
  grid-template-columns: 120px minmax(0, 1fr);
}
.team-edit-cover-uploader .image-upload-preview {
  min-height: 96px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}
.team-more-menu {
  position: fixed;
  z-index: 40;
  width: 150px;
  display: grid;
  padding: 6px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .16);
}
.team-more-menu button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 9px 10px;
  color: #344054;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.team-more-menu button:hover {
  background: #fff4ed;
  color: #ff6b35;
}

/* ===== 银龄风采工作台精修 ===== */
.silver-page {
  padding: 24px 30px;
}
.silver-page-header {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.silver-page-header h1 {
  font-size: 24px;
  line-height: 1.2;
  color: #111827;
}
.silver-header-tools {
  flex: 1;
  min-width: 760px;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.silver-top-filter {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 170px 130px 130px minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.silver-top-filter .input,
.silver-top-filter .select {
  height: 40px;
  border-color: #e2e7ef;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
}
.silver-search {
  position: relative;
}
.silver-search::after {
  content: "⌕";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 18px;
  pointer-events: none;
}
.silver-search .input {
  padding-right: 38px;
}
.silver-create-btn {
  height: 40px;
  min-width: 108px;
  box-shadow: 0 8px 18px rgba(255, 107, 53, .22);
}
.silver-create-btn::before {
  content: "+";
  margin-right: 6px;
  font-size: 18px;
  line-height: 0;
}
.silver-metrics {
  gap: 14px;
}
.silver-metric-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 94px;
  padding: 18px 22px;
  border-left: 1px solid #eceff4;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}
.silver-metric-card .metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 20px;
}
.silver-metric-card.green .metric-icon { background: #e8f7ef; color: #239e55; }
.silver-metric-card.blue .metric-icon { background: #fff3df; color: #f08a00; }
.silver-metric-card.accent .metric-icon { background: #eaf1ff; color: #1a73e8; }
.silver-metric-card.warning .metric-icon { background: #f1e8ff; color: #7c3aed; }
.silver-metric-card .metric-label {
  margin-top: 0;
  color: #667085;
  font-size: 13px;
}
.silver-metric-card .metric-value {
  margin-top: 6px;
  font-size: 28px;
}
.silver-metric-card .metric-note {
  margin-top: 5px;
}
.silver-workbench-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(820px, 1.25fr) minmax(440px, .75fr);
  gap: 14px;
  align-items: start;
  overflow: visible;
}
.silver-list-card,
.silver-editor-card,
.silver-preview-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7ebf1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}
.silver-list-card .section-title-row {
  margin: 0;
  padding: 16px 18px 14px;
  background: #fff;
}
.silver-list-card .table-wrap {
  overflow-x: auto;
}
.silver-table {
  min-width: 650px;
  table-layout: fixed;
}
.silver-table th:nth-child(1),
.silver-table td:nth-child(1) { width: 62px; }
.silver-table th:nth-child(2),
.silver-table td:nth-child(2) { width: 148px; }
.silver-table th:nth-child(3),
.silver-table td:nth-child(3) { width: 76px; }
.silver-table th:nth-child(4),
.silver-table td:nth-child(4) { width: 76px; }
.silver-table th:nth-child(5),
.silver-table td:nth-child(5) { width: 44px; }
.silver-table th:nth-child(6),
.silver-table td:nth-child(6) { width: 66px; }
.silver-table th:nth-child(7),
.silver-table td:nth-child(7) { width: 84px; }
.silver-table th:nth-child(8),
.silver-table td:nth-child(8) { width: 94px; }
.silver-table th,
.silver-table td {
  padding: 10px 10px;
  vertical-align: middle;
}
.silver-table th {
  color: #344054;
  background: #fbfcfe;
  white-space: nowrap;
}
.silver-row {
  cursor: pointer;
}
.silver-row:hover td {
  background: #fffaf7;
}
.silver-row.selected td {
  background: #fff4ed;
}
.silver-cover-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b35;
  font-weight: 800;
}
.silver-cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.silver-title-cell {
  min-width: 0;
}
.silver-title-cell strong,
.silver-title-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.silver-title-cell strong {
  color: #252b36;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}
.silver-title-cell span {
  margin-top: 4px;
  color: #7c8491;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}
.silver-category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.silver-category-talent {
  background: #eaf1ff;
  color: #1a73e8;
}
.silver-category-story {
  background: #fff0e8;
  color: #d95c24;
}
.silver-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.silver-action-row .action-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1a73e8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
}
.silver-action-row .action-link:hover {
  color: #ff6b35;
}
.silver-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid #edf0f5;
  color: #667085;
  font-size: 13px;
}
.silver-pagination .page-size {
  margin-right: auto;
  padding: 7px 12px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
}
.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagination-buttons .active {
  background: #ff6b35;
  color: #fff;
  border-color: #ff6b35;
}
.pagination-ellipsis {
  color: #98a2b3;
  font-size: 12px;
}
.silver-editor-card .tabs {
  margin: 0;
  padding: 0 18px;
  background: #fff;
}
.silver-editor-panel {
  display: none;
  padding: 16px 18px 0;
}
.silver-editor-panel.active {
  display: block;
}
.silver-editor-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.silver-cover-uploader {
  grid-template-columns: 102px minmax(0, 1fr);
}
.silver-cover-uploader .image-upload-preview {
  min-height: 82px;
  background: #fff0e8;
}
.silver-summary-input {
  min-height: 72px;
}
.silver-rich-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dfe4ec;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f7f8fb;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}
.silver-rich-toolbar span {
  min-width: 22px;
  text-align: center;
}
.silver-story-input {
  min-height: 152px;
  border-radius: 0 0 8px 8px;
}
.silver-media-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.silver-media-heading label {
  margin: 0;
}
.silver-media-heading span {
  color: #98a2b3;
  font-size: 12px;
}
.silver-media-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.silver-media-tile,
.silver-media-add {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px dashed #cfd6e3;
  background: #fafbfc;
  color: #98a2b3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.silver-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.silver-media-tile button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, .62);
  color: #fff;
  cursor: pointer;
}
.silver-media-add {
  cursor: pointer;
  background: #fff;
}
.silver-media-add:hover {
  border-color: #ffb59b;
  color: #ff6b35;
  background: #fffaf7;
}
.silver-media-add span {
  font-size: 24px;
  line-height: 1;
}
.silver-editor-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 16px;
  border-top: 1px solid #edf0f5;
}
.silver-editor-actions .btn-primary,
.silver-editor-actions .btn-secondary,
.silver-editor-actions .btn-outline {
  min-width: 0;
}
.silver-preview-card {
  position: absolute;
  left: calc(100% + 18px);
  top: 0;
  width: 270px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.silver-phone-preview {
  max-width: 270px;
  min-height: 610px;
  margin: 0;
  border: 8px solid #20242b;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
}
.silver-phone-status {
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  color: #111827;
  font-size: 11px;
  background: #fff;
}
.silver-phone-nav {
  height: 38px;
  display: grid;
  grid-template-columns: 28px 1fr 38px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #111827;
  background: #fff;
}
.silver-phone-nav strong {
  text-align: center;
  font-size: 13px;
}
.silver-phone-nav span {
  font-size: 18px;
}
.silver-phone-cover {
  height: 158px;
  margin: 0 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff0e8;
  color: #b07155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.silver-phone-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.silver-phone-body {
  padding: 14px 14px 8px;
}
.silver-phone-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.silver-phone-title-row h3 {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}
.silver-phone-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
}
.silver-phone-summary {
  margin-top: 12px;
  color: #344054;
  font-size: 13px;
  line-height: 1.7;
}
.silver-phone-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
}
.silver-phone-section h4 {
  color: #252b36;
  font-size: 14px;
  margin-bottom: 8px;
}
.silver-phone-section p {
  color: #344054;
  font-size: 12px;
  line-height: 1.75;
  max-height: 148px;
  overflow: hidden;
}
.silver-phone-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.silver-phone-media img,
.silver-phone-media span {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #edf0f5;
  object-fit: cover;
  display: block;
}
.silver-phone-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px 14px 14px;
  border-top: 1px solid #edf0f5;
  color: #667085;
  font-size: 12px;
}
.silver-phone-footer button {
  border: 0;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}
.silver-more-menu {
  position: fixed;
  z-index: 40;
  width: 144px;
  display: grid;
  padding: 6px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .16);
}
.silver-more-menu button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 9px 10px;
  color: #344054;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.silver-more-menu button:hover {
  background: #fff4ed;
  color: #ff6b35;
}

/* ===== 人员与账号权限管理工作台 ===== */
.permission-page {
  padding: 24px 30px;
}
.permission-page-header {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.permission-page-header h1 {
  font-size: 24px;
  line-height: 1.2;
  color: #111827;
}
.permission-header-tools {
  flex: 1;
  min-width: 720px;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.permission-top-filter {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}
.permission-top-filter .input {
  height: 40px;
  border-color: #e2e7ef;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
}
.permission-search {
  position: relative;
}
.permission-search::after {
  content: "⌕";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 18px;
  pointer-events: none;
}
.permission-search .input {
  padding-right: 38px;
}
.permission-admin-btn,
.permission-invite-btn {
  height: 40px;
  white-space: nowrap;
}
.permission-admin-btn::before {
  content: "+";
  margin-right: 6px;
  font-size: 18px;
  line-height: 0;
}
.permission-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.permission-metric-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 94px;
  padding: 18px 20px;
  border-left: 1px solid #eceff4;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}
.permission-metric-card .metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 20px;
}
.permission-metric-card.green .metric-icon { background: #e8f7ef; color: #239e55; }
.permission-metric-card.accent .metric-icon { background: #eaf1ff; color: #1a73e8; }
.permission-metric-card.blue .metric-icon { background: #fff3df; color: #f08a00; }
.permission-metric-card.warning .metric-icon { background: #f1e8ff; color: #7c3aed; }
.permission-metric-card.danger .metric-icon { background: #fdebea; color: #df4a20; }
.permission-metric-card .metric-label {
  margin-top: 0;
  color: #667085;
  font-size: 13px;
}
.permission-metric-card .metric-value {
  margin-top: 6px;
  font-size: 28px;
}
.permission-metric-card .metric-note {
  margin-top: 5px;
}
.permission-workbench-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7ebf1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}
.permission-workbench-card .tabs {
  margin: 0;
  padding: 0 18px;
  background: #fff;
}
.permission-workbench-card .tab-panel {
  padding: 16px 18px 18px;
}
.permission-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 180px));
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f2f6;
}
.permission-filter-bar .input,
.permission-filter-bar .select {
  height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.permission-filter-bar .btn-primary,
.permission-filter-bar .btn-outline {
  height: 36px;
  min-width: 68px;
  padding: 8px 14px;
}
.permission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}
.permission-grid .list-panel {
  min-width: 0;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.permission-grid .table-wrap {
  overflow-x: auto;
}
.account-detail-panel {
  top: 18px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 16px;
  border-color: #e4e8ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.account-detail-panel h2 {
  font-size: 18px;
  color: #111827;
}
.account-table {
  min-width: 760px;
}
.account-table th,
.account-table td,
.compact-table th,
.compact-table td {
  padding: 10px 11px;
  vertical-align: middle;
}
.account-table th,
.compact-table th {
  color: #344054;
  background: #fbfcfe;
  white-space: nowrap;
}
.account-table td,
.compact-table td {
  color: #252b36;
}
.account-row {
  cursor: pointer;
}
.account-row:hover td {
  background: #fffaf7;
}
.account-row.selected td {
  background: #fff4ed;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.account-actions .action-link,
.account-table .action-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
}
.account-actions .action-link:hover,
.account-table .action-link:hover {
  color: #ff6b35;
}
.account-actions .action-link.success {
  color: #1f9d55;
}
.account-actions .action-link.danger {
  color: #e74c3c;
}
.permission-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid #edf0f5;
  color: #667085;
  font-size: 13px;
}
.permission-pagination .page-size {
  margin-right: auto;
  padding: 7px 12px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
}
.permission-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
}
.permission-form-actions.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.permission-form-actions .btn-primary,
.permission-form-actions .btn-outline {
  min-width: 0;
}
.permission-sub-card {
  margin-top: 12px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}
.permission-sub-card .section-title-row {
  margin: 0;
  padding: 14px 16px;
}
.permission-sub-card .empty {
  margin: 0 16px 16px;
}
.compact-table {
  min-width: 720px;
}
.role-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 6px;
  padding: 3px 7px;
  background: #fff0e8;
  color: #ff5a28;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1500px) {
  .silver-workbench-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
  .silver-preview-card {
    grid-column: 1 / -1;
    position: static;
    width: auto;
    justify-self: center;
  }
  .silver-phone-preview {
    max-width: 270px;
    margin: 0 auto;
  }
}
.coming-soon {
  min-height: 280px; display: grid; place-items: center;
  text-align: center; color: #7c8491; background: #fafbfc; border-radius: 8px;
  padding: 32px;
}
.coming-soon strong { display: block; color: #252b36; margin-bottom: 8px; font-size: 18px; }

.content-editor-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px; align-items: start;
}
.home-display-cell {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center;
  min-width: 260px;
}
.home-display-thumb {
  width: 96px; height: 62px; border-radius: 8px; object-fit: cover;
  background: #edf0f5; display: block;
}
.home-display-thumb.empty-thumb {
  display: flex; align-items: center; justify-content: center;
  color: #98a2b3; font-size: 12px;
}
.home-phone-preview, .content-phone-preview {
  max-width: 300px; margin: 0 auto; border: 8px solid #20242b;
  border-radius: 24px; overflow: hidden; background: #fff7ef;
  box-shadow: 0 12px 28px rgba(22, 28, 38, .12);
}
.home-phone-status, .content-phone-status {
  height: 38px; display: flex; align-items: center; justify-content: center;
  background: #fff; color: #252b36; font-size: 13px; font-weight: 700;
}
.home-phone-banner {
  height: 150px; position: relative; background: #ffe3d0;
  display: flex; align-items: center; justify-content: center;
  color: #b07155; font-size: 13px; overflow: hidden;
}
.home-phone-banner img, .content-phone-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.home-phone-copy {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.26);
}
.home-phone-copy strong, .home-phone-copy span {
  display: block; line-height: 1.35;
}
.home-phone-copy strong { font-size: 17px; }
.home-phone-copy span { margin-top: 3px; font-size: 12px; opacity: .92; }
.home-phone-entry-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 16px 20px; background: #fff;
}
.home-phone-entry-row i {
  width: 44px; height: 44px; border-radius: 50%; background: #f0cab8;
  margin: 0 auto; display: block;
}
.home-phone-card {
  height: 54px; margin: 0 14px 12px; border-radius: 12px;
  background: #e7a38b;
}
.home-phone-card.short { width: calc(100% - 56px); background: #8dbad1; }
.content-phone-cover {
  height: 138px; background: #ffe3d0; color: #b07155;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.content-phone-card {
  margin: 12px; padding: 12px; border-radius: 10px; background: #fff;
  box-shadow: 0 2px 10px rgba(34, 42, 55, .06);
}
.content-phone-card strong, .content-phone-card em {
  display: block; color: #252b36; font-size: 14px; font-style: normal; font-weight: 800;
  margin-bottom: 6px;
}
.content-phone-card p {
  color: #667085; font-size: 12px; line-height: 1.7;
  max-height: 84px; overflow: hidden;
}
.content-media-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.content-media-grid img, .content-media-grid span {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 8px; background: #edf0f5; display: block;
}
.check-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px; min-height: 42px; border: 1px solid #e5e9f0;
  border-radius: 8px; background: #fafbfc;
}
.check-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #dfe4ec; background: #fff; color: #343a46;
  border-radius: 999px; padding: 6px 10px; font-size: 12px;
  cursor: pointer; user-select: none;
}
.check-pill input { margin: 0; }
.check-pill:has(input:checked) {
  border-color: #ffb59b; background: #fff4ed; color: #ff6b35;
}
.invite-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .04em; color: #252b36;
}
.invite-result {
  margin-top: 14px; padding: 14px; border: 1px solid #ffe0d1;
  border-radius: 8px; background: #fff7f1; display: grid; gap: 6px;
}
.invite-result span {
  color: #7c4b36; font-size: 12px; font-weight: 700;
}
.invite-result strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #ff6b35; font-size: 24px; letter-spacing: .08em;
}

.publish-workbench {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px; align-items: start;
}
.publish-main, .publish-side { min-width: 0; }
.publish-topbar {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #eef1f5;
}
.publish-topbar h2 { font-size: 20px; color: #252b36; }
.publish-topbar p { margin-top: 6px; color: #7c8491; font-size: 13px; }
.publish-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
}
.publish-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-bottom: 16px;
}
.publish-step {
  border: 1px solid #e5e9f0; background: #fff; color: #5b6472;
  border-radius: 8px; padding: 12px 10px; font-weight: 700; cursor: pointer;
}
.publish-step.active {
  color: #ff6b35; border-color: #ffb59b; background: #fff4ed;
}
.publish-form { display: grid; gap: 16px; }
.publish-section {
  border: 1px solid #eceff4; border-radius: 8px; padding: 18px;
  background: #fff; box-shadow: 0 8px 22px rgba(31,35,44,.035);
}
.basic-info-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px; align-items: start;
}
.basic-info-fields {
  display: grid; gap: 14px;
}
.basic-inline-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.basic-cover-field { min-width: 0; }
.cover-uploader {
  grid-template-columns: 1fr; gap: 12px;
}
.cover-uploader .image-upload-preview {
  aspect-ratio: 4 / 3; min-height: 0;
}
.activity-desc { min-height: 160px; }
.related-id-input { margin-top: 8px; }
.publish-side {
  position: sticky; top: 24px; display: grid; gap: 14px;
}
.preview-card, .validation-card {
  border: 1px solid #eceff4; border-radius: 8px; padding: 16px;
  background: #fff;
}
.preview-card h3, .validation-card h3 { font-size: 16px; color: #252b36; }
.preview-card p { margin-top: 4px; color: #7c8491; font-size: 12px; }
.preview-card-header {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.phone-preview {
  max-width: 320px; margin: 0 auto; border-radius: 24px;
  background: #fff7ef; border: 10px solid #20242b; overflow: hidden;
  box-shadow: 0 14px 30px rgba(22, 28, 38, .12);
}
.mini-preview {
  min-height: 560px; padding: 0 12px 16px; color: #343a46;
}
.mini-status {
  height: 42px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #252b36; background: #fff;
  margin: 0 -12px 12px;
}
.mini-cover {
  height: 122px; margin: 0 -12px 12px; background: #ffe3d0;
  display: flex; align-items: center; justify-content: center; color: #b07155;
  font-size: 13px; font-weight: 700;
}
.mini-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-card {
  background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(34, 42, 55, .06);
}
.mini-title-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  margin-bottom: 10px;
}
.mini-title-row h4 {
  font-size: 17px; line-height: 1.35; color: #252b36;
}
.mini-title-row span {
  flex: 0 0 auto; font-size: 11px; color: #b5795c; background: #fff3eb;
  border-radius: 999px; padding: 4px 7px;
}
.mini-card p {
  color: #5f6775; font-size: 12px; line-height: 1.7; margin: 3px 0;
  word-break: break-word;
}
.mini-card strong { display: block; margin-bottom: 6px; color: #252b36; font-size: 13px; }
.mini-points div {
  display: grid; gap: 6px;
}
.mini-points span {
  display: inline-flex; width: fit-content; border-radius: 6px;
  background: #e8f6ec; color: #2f8c48; padding: 5px 8px; font-size: 12px;
  font-weight: 700;
}
.mini-submit {
  width: 100%; border: 0; border-radius: 16px; padding: 13px 16px;
  background: #ef604d; color: #fff; font-weight: 700; font-size: 15px;
}
.validation-card { display: grid; gap: 12px; }
.validation-item {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px;
  padding: 10px; border-radius: 8px; background: #fafbfc;
}
.validation-item span {
  width: 24px; height: 24px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.validation-item strong { font-size: 13px; color: #252b36; }
.validation-item p { margin-top: 3px; font-size: 12px; color: #7c8491; line-height: 1.5; }
.validation-item.ok span { color: #fff; background: #27ae60; }
.validation-item.warn span { color: #8a5b10; background: #ffe2a8; }
.validation-item.error span { color: #fff; background: #e74c3c; }

@media (max-width: 980px) {
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .image-uploader, .image-uploader.compact { grid-template-columns: 1fr; }
  .stats-grid, .quick-grid { grid-template-columns: 1fr 1fr; }
  .featured-card, .featured-item { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-grid, .publish-workbench, .batch-layout, .calendar-layout, .export-layout, .dashboard-grid, .dashboard-bottom-grid, .content-editor-grid, .basic-info-layout { grid-template-columns: 1fr; }
  .detail-panel, .publish-side, .batch-side, .calendar-side, .export-side { position: static; }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-header-tools { min-width: 0; width: 100%; justify-items: stretch; }
  .activity-top-filter { grid-template-columns: 1fr 1fr; width: 100%; }
  .activity-search, .activity-create-btn { grid-column: span 2; }
  .activity-list-filter { grid-template-columns: 1fr 1fr; }
  .activity-list-filter .filter-label { display: none; }
  .activity-list-filter .filter-actions { justify-content: flex-start; }
  .team-header-tools { min-width: 0; width: 100%; justify-items: stretch; }
  .team-top-filter { grid-template-columns: 1fr 1fr; width: 100%; }
  .team-search, .team-create-btn { grid-column: span 2; }
  .team-workbench-card .workbench-grid { grid-template-columns: 1fr; }
  .team-workbench-card .detail-panel { position: static; max-height: none; }
  .silver-header-tools { min-width: 0; width: 100%; justify-items: stretch; }
  .silver-top-filter { grid-template-columns: 1fr 1fr; width: 100%; }
  .silver-search, .silver-create-btn { grid-column: span 2; }
  .silver-workbench-grid { grid-template-columns: 1fr; }
  .silver-preview-card { position: static; }
  .permission-header-tools { min-width: 0; width: 100%; justify-items: stretch; }
  .permission-top-filter { grid-template-columns: 1fr 1fr; width: 100%; }
  .permission-search { grid-column: span 2; }
  .permission-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .permission-grid { grid-template-columns: 1fr; }
  .account-detail-panel { position: static; max-height: none; }
  .export-summary-grid, .export-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-page-header { display: block; }
  .dashboard-header-tools { justify-items: stretch; margin-top: 14px; }
  .export-filter-bar, .dashboard-filter-bar { grid-template-columns: 1fr; }
  .dashboard-filter-bar { width: 100%; }
  .type-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-summary-item:nth-child(2n) { border-right: 0; }
  .trend-chart { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-filter-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .main-content { padding: 18px; }
  .stats-grid, .quick-grid, .metric-grid, .filter-bar { grid-template-columns: 1fr; }
  .basic-inline-fields { grid-template-columns: 1fr; }
  .dashboard-metrics .metric-card { grid-template-columns: 50px minmax(0, 1fr); }
  .metric-icon { width: 48px; height: 48px; font-size: 19px; }
  .type-summary-strip { grid-template-columns: 1fr; }
  .type-summary-item { border-right: 0; border-bottom: 1px solid #eef1f5; }
  .type-summary-item:last-child { border-bottom: 0; }
  .trend-chart { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-header { display: block; }
  .admin-meta { text-align: left; margin-top: 10px; }
  .detail-actions { grid-template-columns: 1fr; }
  .activity-top-filter { grid-template-columns: 1fr; }
  .activity-search, .activity-create-btn { grid-column: auto; }
  .activity-list-filter { grid-template-columns: 1fr; }
  .team-top-filter { grid-template-columns: 1fr; }
  .team-search, .team-create-btn { grid-column: auto; }
  .team-workbench-card .workbench-grid { padding: 14px; }
  .team-detail-head { grid-template-columns: 48px minmax(0, 1fr) 28px; }
  .team-avatar.large { width: 48px; height: 48px; }
  .team-detail-actions { grid-template-columns: 1fr; }
  .silver-top-filter { grid-template-columns: 1fr; }
  .silver-search, .silver-create-btn { grid-column: auto; }
  .silver-editor-form { grid-template-columns: 1fr; }
  .silver-editor-actions { grid-template-columns: 1fr 1fr; }
  .silver-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .silver-pagination { align-items: flex-start; flex-direction: column; }
  .permission-top-filter { grid-template-columns: 1fr; }
  .permission-search { grid-column: auto; }
  .permission-metrics { grid-template-columns: 1fr; }
  .permission-filter-bar { grid-template-columns: 1fr; }
  .permission-pagination { align-items: flex-start; flex-direction: column; }
  .permission-form-actions.two { grid-template-columns: 1fr; }
  .publish-topbar { display: block; }
  .publish-actions { justify-content: flex-start; margin-top: 12px; }
  .publish-steps { grid-template-columns: 1fr 1fr; }
  .phone-preview { border-width: 8px; }
  .calendar-paper-head { display: block; }
  .calendar-signature { text-align: left; margin-top: 8px; }
  .calendar-cell { min-height: 96px; padding: 6px; }
  .export-summary-grid, .export-actions-grid, .export-photo-grid { grid-template-columns: 1fr; }
  .dashboard-day { min-height: 96px; padding: 6px; }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body.printing-calendar { background: #fff; }
  body.printing-calendar .sidebar,
  body.printing-calendar .page-header,
  body.printing-calendar .metric-grid,
  body.printing-calendar .tabs,
  body.printing-calendar .section-title-row,
  body.printing-calendar .calendar-side,
  body.printing-calendar .tab-panel:not(#tab-calendar) {
    display: none !important;
  }
  body.printing-calendar .main-content {
    margin: 0; padding: 0; min-height: auto;
  }
  body.printing-calendar .card {
    padding: 0; margin: 0; box-shadow: none; border-radius: 0;
  }
  body.printing-calendar #tab-calendar {
    display: block !important;
  }
  body.printing-calendar .calendar-layout {
    display: block;
  }
  body.printing-calendar .calendar-preview-card {
    border: 0; box-shadow: none; padding: 0; min-height: auto;
  }
  body.printing-calendar .calendar-cell {
    min-height: 92px;
  }
  body.printing-calendar .calendar-event strong {
    white-space: normal;
  }
}
