/* ===== 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; word-wrap: break-word; overflow-wrap: break-word; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #f4f6f9; color: #333; min-width: 320px; }

/* ===== 头部 ===== */
header { background: linear-gradient(135deg, #003366 0%, #004080 100%); color: white; padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.header-left { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.header-logo { height: 40px; width: auto; border-radius: 6px; }
.logo-placeholder { display: none; align-items: center; justify-content: center; height: 40px; width: 40px; background: rgba(255,255,255,0.2); border-radius: 6px; font-size: 1.5rem; }
header h1 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.header-actions { display: flex; gap: 0.5rem; }
.print-btn, .btn-primary, .btn-secondary, .btn-small { padding: 0.4rem 0.9rem; border: none; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: background 0.2s; }
.print-btn { background: white; color: #003366; }
.print-btn:hover { background: #e6eef9; }
.btn-primary { background: #003366; color: white; }
.btn-primary:hover { background: #004080; }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #5a6268; }
.btn-small { background: #e9ecef; color: #333; padding: 0.25rem 0.6rem; }
.btn-small:hover { background: #dee2e6; }

/* ===== 导航标签 ===== */
nav.tabs { display: flex; flex-wrap: nowrap; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.05); padding: 0.5rem 1rem; gap: 0.4rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
nav.tabs button { background: none; border: none; padding: 0.6rem 0.9rem; font-size: 0.85rem; cursor: pointer; border-radius: 6px; color: #555; transition: all 0.2s; white-space: nowrap; }
nav.tabs button:hover { background: #eee; }
nav.tabs button.active { background: #003366; color: white; font-weight: 600; }

/* ===== 主内容区域 ===== */
main { padding: 1rem; width: 100%; box-sizing: border-box; }

/* ===== 通用卡片与表格 ===== */
.section-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.controls { display: flex; gap: 0.5rem; flex-wrap: wrap; }
input[type="text"], select, input[type="number"] { padding: 0.5rem 0.7rem; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9rem; }
.table-wrapper { overflow-x: auto; background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { background: #f1f4f9; font-weight: 600; text-align: left; padding: 0.7rem 0.8rem; border-bottom: 2px solid #ddd; white-space: nowrap; }
td { padding: 0.6rem 0.8rem; border-bottom: 1px solid #eee; white-space: nowrap; }
tr:hover td { background: #f9fbff; }
.rank { font-weight: 700; color: #003366; }
.name-col a { color: #003366; text-decoration: none; font-weight: 600; }
.name-col a:hover { text-decoration: underline; }
.badge { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 12px; font-weight: 600; display: inline-block; }
.badge.高度稳定 { background: #d4edda; color: #155724; }
.badge.可能变动 { background: #fff3cd; color: #856404; }
.badge.边缘待定 { background: #f8d7da; color: #721c24; }

/* 标签徽章 */
.tag-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 12px; font-size: 0.7rem; font-weight: 600; margin: 1px 2px; white-space: nowrap; }
.tag-cell { max-width: 200px; overflow-x: auto; white-space: nowrap; }

/* ===== 模态框（个人详情） ===== */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); }
.modal-content { background: white; margin: 3% auto; padding: 2rem; border-radius: 12px; width: 90%; max-width: 800px; max-height: 85vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.2); position: relative; }
.close { position: absolute; right: 1.5rem; top: 1rem; font-size: 1.5rem; font-weight: bold; cursor: pointer; color: #999; }
.close:hover { color: #333; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.detail-section { background: #f8f9fa; padding: 1rem; border-radius: 8px; }
.detail-section.full-width { grid-column: span 2; }
.detail-section h3 { color: #003366; margin-bottom: 0.5rem; border-left: 4px solid #003366; padding-left: 0.5rem; }
.detail-section p { margin: 0.3rem 0; line-height: 1.6; }

/* ===== 决策工具页面 ===== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.tool-card { background: white; border-radius: 12px; padding: 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.tool-card.full-width { grid-column: span 2; }
.tool-card h3 { color: #003366; margin-bottom: 0.8rem; border-left: 4px solid #003366; padding-left: 0.5rem; }
.tool-card p { margin-bottom: 0.8rem; color: #555; }
.tool-card button { margin-right: 0.5rem; margin-bottom: 0.5rem; }

/* 风险分析卡片 */
.risk-dashboard { margin-top: 1rem; }
.risk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.risk-card { padding: 1rem; border-radius: 8px; border-left: 6px solid #ccc; background: #f8f9fa; }
.risk-card.risk-red { border-left-color: #dc3545; background: #fff5f5; }
.risk-card.risk-yellow { border-left-color: #ffc107; background: #fffdf5; }
.risk-card.risk-green { border-left-color: #28a745; background: #f5fff5; }
.risk-card h4 { margin-bottom: 0.5rem; color: #003366; }
.risk-badge { font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 12px; color: white; margin-left: 0.5rem; }
.risk-red .risk-badge, .risk-badge.risk-red { background: #dc3545; }
.risk-yellow .risk-badge, .risk-badge.risk-yellow { background: #e0a800; }
.risk-green .risk-badge, .risk-badge.risk-green { background: #28a745; }

/* 对比表格 */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border: 1px solid #ddd; padding: 0.5rem; text-align: center; }
.compare-table th { background: #f1f4f9; }

/* ===== 中心数据页面 ===== */
.dashboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.dash-card { background: white; border-radius: 8px; padding: 1.3rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.dash-card h3 { margin-bottom: 0.8rem; color: #003366; white-space: nowrap; overflow-x: auto; }
.dash-card ul { list-style: none; }
.dash-card li { margin-bottom: 0.4rem; display: flex; justify-content: space-between; align-items: center; }
.dash-card li span:first-child { flex-shrink: 0; color: #555; }

/* ===== 数据管理页面 ===== */
.admin-container { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 1.2rem; width: 100%; box-sizing: border-box; overflow-x: auto; }
.admin-form-section { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow-x: auto; }
.admin-form-section h3 { color: #003366; margin-bottom: 1rem; }
.member-form { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; width: 100%; }
.form-group { flex: 1; min-width: 120px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #555; margin-bottom: 0.3rem; }
.form-group input, .form-group select { width: 100%; padding: 0.6rem; border: 1px solid #ddd; border-radius: 4px; font-size: 0.9rem; }
.checkbox-group { display: flex; align-items: flex-end; }
.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.admin-list-section { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.admin-table-wrapper { overflow-x: auto; }
.btn-edit, .btn-delete { padding: 0.35rem 0.7rem; border: none; border-radius: 4px; font-size: 0.8rem; cursor: pointer; }
.btn-edit { background: #d1ecf1; color: #0c5460; }
.btn-edit:hover { background: #bee5eb; }
.btn-delete { background: #f8d7da; color: #721c24; }
.btn-delete:hover { background: #f5c6cb; }
.admin-footer { background: white; border-radius: 8px; padding: 1rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-top: 1rem; }
.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.btn-export, .btn-import, .btn-template { padding: 0.5rem 1rem; border: none; border-radius: 4px; background: #003366; color: white; cursor: pointer; font-size: 0.85rem; }
.admin-tip { font-size: 0.8rem; color: #888; }

/* 图表容器 */
.chart-container { max-width: 500px; margin: 0 auto; padding: 1rem; }
.radar-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.select-group { display: flex; flex-direction: column; }
.detail-cards { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.detail-card { flex: 1; min-width: 200px; background: #f8f9fa; padding: 1rem; border-radius: 6px; }

/* ===== 页脚 ===== */
footer { text-align: center; padding: 1rem; color: #888; font-size: 0.85rem; }

/* ===== 替换模态框 ===== */
.replace-modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.replace-modal-content {
  background: white;
  margin: 3% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
}

.replace-close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}

.replace-close:hover { color: #333; }

.replace-modal-content h3 {
  color: #003366;
  margin-bottom: 1rem;
}

.replace-modal-content p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.replace-select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.replace-info {
  margin: 1rem 0;
  padding: 0.7rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.replace-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* 成员姓名样式 */
.member-name {
  font-weight: 600;
  color: #333;
}

/* ===== 中心介绍模态框 ===== */
.center-intro-modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.center-intro-content {
  background: white;
  margin: 3% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
}

.center-intro-close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}

.center-intro-close:hover { color: #333; }

.center-intro-content h2 {
  color: #003366;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.center-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #003366;
}

.center-mbti, .center-needs, .center-intro-text {
  margin-bottom: 1.5rem;
}

.center-mbti h3, .center-needs h3, .center-intro-text h3 {
  color: #003366;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  border-left: 4px solid #003366;
  padding-left: 0.5rem;
}

.center-mbti p {
  color: #555;
  line-height: 1.6;
}

.needs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.need-tag {
  padding: 0.4rem 0.8rem;
  background: #e6f0ff;
  color: #003366;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.center-intro-text p {
  color: #555;
  line-height: 1.8;
  text-align: justify;
}

.center-intro-close-btn {
  display: block;
  margin: 0 auto;
  margin-top: 1.5rem;
}

/* ===== 能力雷达图样式 ===== */
.radar-controls-container {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

.radar-select-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radar-select-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.radar-select-item label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.radar-select {
  padding: 0.6rem 2rem 0.6rem 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  min-width: 160px;
  background: white;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.3s;
}

.radar-select:focus {
  outline: none;
  border-color: #0066cc;
}

.select-arrow {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #999;
  font-size: 0.7rem;
}

.vs-badge {
  padding: 0.4rem 0.8rem;
  background: #003366;
  color: white;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
}

.radar-update-btn {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #0066cc, #003366);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.radar-update-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.radar-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.radar-chart-wrapper {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 1rem;
  text-align: center;
}

.chart-container.radar-chart {
  max-width: 100%;
  margin: 0 auto;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid;
}

.radar-details {
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.radar-card {
  background: white;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid;
}

.radar-card.card-a {
  border-left-color: #0066cc;
}

.radar-card.card-b {
  border-left-color: #cc3333;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}

.card-badge {
  padding: 0.3rem 0.6rem;
  background: #f0f4f8;
  color: #003366;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-score {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 8px;
}

.score-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #003366;
}

.score-label {
  font-size: 0.85rem;
  color: #666;
}

.card-info {
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.85rem;
  color: #666;
}

.info-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.stability-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.stability-badge.稳定留任 {
  background: #d4edda;
  color: #155724;
}

.stability-badge.边缘待定 {
  background: #fff3cd;
  color: #856404;
}

.stability-badge.可能变动 {
  background: #f8d7da;
  color: #721c24;
}

.card-strengths {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px dashed #e0e0e0;
}

.strengths-label {
  font-size: 0.8rem;
  color: #888;
}

.strengths-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0066cc;
}

/* ===== 分享页面样式 ===== */
.share-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.share-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.share-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0066cc, #003366);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.share-basic h2 {
  color: #003366;
  margin: 0 0 0.3rem 0;
  font-size: 1.3rem;
}

.share-basic p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
}

.share-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.share-tag {
  padding: 0.3rem 0.8rem;
  background: #e6f0ff;
  color: #003366;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.share-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.share-stat {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.share-stat.stability-stable { background: #d4edda; }
.share-stat.stability-border { background: #fff3cd; }
.share-stat.stability-risk { background: #f8d7da; }

.stat-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #003366;
}

.stat-desc {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.3rem;
}

.share-card {
  background: white;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.share-card h3 {
  color: #003366;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.share-radar {
  max-width: 300px;
  margin: 0 auto;
}

.share-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.share-info-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.share-info-item .info-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.share-info-item .info-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.share-footer {
  text-align: center;
  padding: 1.5rem;
  color: #999;
  font-size: 0.8rem;
  border-top: 1px dashed #eee;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  header { padding: 0.8rem 1rem; }
  header h1 { font-size: 0.9rem; }
  header nav { gap: 0.5rem; }
  header nav button { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
  
  .section-header { flex-direction: column; gap: 0.8rem; align-items: flex-start; }
  .section-header h2 { font-size: 1.1rem; }
  
  .detail-grid { grid-template-columns: 1fr; }
  .detail-section.full-width { grid-column: span 1; }
  
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card.full-width { grid-column: span 1; }
  
  .risk-grid { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  
  .form-row { flex-direction: column; }
  
  .radar-content { grid-template-columns: 1fr; }
  .radar-select-row { flex-direction: column; align-items: stretch; }
  .radar-select { width: 100%; min-width: auto; }
  .vs-badge { align-self: center; }
  
  .center-intro-content { padding: 1.2rem; margin: 5% auto; }
  .center-stats { grid-template-columns: repeat(2, 1fr); }
  
  .replace-modal-content { padding: 1.2rem; margin: 5% auto; width: 95%; }
  
  .modal-content { padding: 1rem; margin: 5% auto; max-height: 85vh; }
  .detail-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .detail-section.full-width { grid-column: span 1; }
  
  .admin-form-section { padding: 1rem; }
  .form-group { min-width: 100%; }
  
  .share-page { padding: 0.5rem; }
  .share-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .share-stat { padding: 0.6rem; }
  .stat-num { font-size: 1rem; }
  .share-info-grid { grid-template-columns: 1fr; }
  
  .btn-primary, .btn-secondary, .btn-small { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
  
  .dash-card { padding: 0.8rem; }
  .dash-card h3 { font-size: 0.95rem; }
  .dash-card ul { font-size: 0.8rem; }
  
  .tool-card { padding: 1rem; }
  .tool-card h3 { font-size: 1rem; }
  
  table { font-size: 0.75rem; }
  th, td { padding: 0.4rem 0.2rem; }
  
  .table-responsive { overflow-x: auto; }
  
  .replace-select { font-size: 0.85rem; }
  .replace-actions { flex-direction: column; }
  .replace-actions button { width: 100%; }
}