/* ===================================
   DesignMatch Platform - Design System
   简洁大气 · 互联网大厂风格
   =================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand Colors */
  --primary: #165DFF;
  --primary-hover: #4080FF;
  --primary-active: #0E42D2;
  --primary-light: #E8F3FF;
  --primary-lighter: #F2F7FF;

  /* Status Colors */
  --success: #00B42A;
  --success-light: #E8FFEA;
  --warning: #FF7D00;
  --warning-light: #FFF7E8;
  --danger: #F53F3F;
  --danger-light: #FFECE8;
  --info: #86909C;
  --info-light: #F2F3F5;
  --purple: #722ED1;
  --purple-light: #F5E8FF;
  --cyan: #0FC6C2;
  --cyan-light: #E8FFFB;

  /* Neutral Colors */
  --bg-page: #F7F8FA;
  --bg-card: #FFFFFF;
  --bg-hover: #F7F8FA;
  --bg-selected: #E8F3FF;

  --text-1: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --text-4: #C9CDD4;

  --border-1: #E5E6EB;
  --border-2: #F2F3F5;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", "Courier New", monospace;

  /* Sizing */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-primary: 0 4px 16px rgba(22,93,255,0.25);

  /* Layout */
  --header-height: 64px;
  --container-max: 1200px;
  --sidebar-width: 220px;

  /* Transitions */
  --transition: all 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-page);
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.4; color: var(--text-1); }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--text-3); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 32px; }
.font-bold { font-weight: 600; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-fluid { width: 100%; padding: 0 24px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.w-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-1);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #4080FF);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-primary);
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}
.main-nav a:hover { background: var(--bg-hover); color: var(--text-1); }
.main-nav a.active { background: var(--primary-light); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #722ED1, #165DFF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-primary);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  border-color: var(--border-1);
  color: var(--text-2);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lighter);
}
.btn-text {
  padding: 4px 8px;
  color: var(--primary);
  background: none;
}
.btn-text:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #D93030; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #00A026; color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-2);
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}
.card-body { padding: 20px; }
.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-1);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-cyan { background: var(--cyan-light); color: var(--cyan); }
.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--info-light);
  color: var(--text-3);
  line-height: 1.6;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 8px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-1);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,93,255,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-4); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-row { display: flex; gap: 16px; }
.form-row > .form-group { flex: 1; }

/* Checkbox & Radio */
.checkbox, .radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
}
.checkbox input, .radio input { accent-color: var(--primary); }

/* ---------- Tables ---------- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-page);
  color: var(--text-3);
  font-weight: 500;
  font-size: 13px;
  border-bottom: 1px solid var(--border-1);
  white-space: nowrap;
}
table.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-2);
  color: var(--text-1);
}
table.data-table tr:hover td { background: var(--bg-hover); }
table.data-table tr:last-child td { border-bottom: none; }

/* ---------- Stat Cards ---------- */
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-2);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}
.stat-card .stat-trend {
  font-size: 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Progress / Timeline ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-1);
}
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-1);
  z-index: 1;
}
.timeline-item.done::before { background: var(--success); border-color: var(--success); }
.timeline-item.active::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.timeline-item .timeline-title { font-size: 14px; font-weight: 500; color: var(--text-1); }
.timeline-item .timeline-time { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.timeline-item .timeline-content { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ---------- Step Flow (阶段流转) ---------- */
.step-flow { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 20px 0; }
.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  position: relative;
}
.step-node .step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  border: 2px solid var(--border-1);
  color: var(--text-3);
  z-index: 1;
  position: relative;
}
.step-node.done .step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.step-node.active .step-circle { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-light); }
.step-node.loop .step-circle { border-style: dashed; border-color: var(--warning); color: var(--warning); }
.step-node .step-label {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
  max-width: 100px;
}
.step-node.done .step-label { color: var(--text-1); font-weight: 500; }
.step-node.active .step-label { color: var(--primary); font-weight: 600; }
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-1);
  margin-top: 17px;
  min-width: 24px;
}
.step-connector.done { background: var(--success); }
.step-connector.loop { background: repeating-linear-gradient(90deg, var(--warning) 0, var(--warning) 4px, transparent 4px, transparent 8px); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-1); margin-bottom: 20px; }
.tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
}
.tab:hover { color: var(--text-1); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title { font-size: 18px; font-weight: 600; }
.modal-close { font-size: 22px; color: var(--text-3); cursor: pointer; line-height: 1; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-1);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state .empty-text { font-size: 14px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 24px; }
.pagination button {
  min-width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-1);
  background: #fff;
  color: var(--text-2);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  transition: var(--transition);
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1D2129;
  color: #86909C;
  padding: 48px 0 24px;
  margin-top: 80px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.site-footer h4 { color: #C9CDD4; font-size: 14px; margin-bottom: 16px; }
.site-footer a { color: #86909C; display: block; margin-bottom: 8px; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
}

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.3s ease; }

/* ---------- Page Hero (内部页面顶部) ---------- */
.page-hero {
  background: linear-gradient(135deg, #F2F7FF 0%, #E8F3FF 100%);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-1);
}
.page-hero h1 { font-size: 24px; margin-bottom: 4px; }
.page-hero p { color: var(--text-2); font-size: 14px; }

/* ---------- Requirement Card ---------- */
.req-card { cursor: pointer; }
.req-card .req-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.req-card .req-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.req-card .req-desc {
  font-size: 13px;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.req-card .req-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.req-card .req-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-2);
}
.req-card .req-budget { font-size: 18px; font-weight: 700; color: var(--danger); }
.req-card .req-budget small { font-size: 12px; font-weight: 400; }
.req-card .req-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 12px; }

/* ---------- Avatar ---------- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-1 { background: linear-gradient(135deg, #165DFF, #4080FF); }
.avatar-2 { background: linear-gradient(135deg, #722ED1, #9254DE); }
.avatar-3 { background: linear-gradient(135deg, #00B42A, #23C343); }
.avatar-4 { background: linear-gradient(135deg, #FF7D00, #FF9A2E); }
.avatar-5 { background: linear-gradient(135deg, #F53F3F, #F76560); }
.avatar-6 { background: linear-gradient(135deg, #0FC6C2, #37D4CF); }

/* ---------- Filter Bar ---------- */
.filter-bar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border-2);
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-2);
}
.filter-row:last-child { border-bottom: none; }
.filter-label {
  font-size: 13px;
  color: var(--text-3);
  min-width: 60px;
  flex-shrink: 0;
}
.filter-options { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-option {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}
.filter-option:hover { background: var(--bg-hover); }
.filter-option.active { background: var(--primary); color: #fff; }

/* ---------- Sidebar Layout ---------- */
.layout-with-sidebar { display: flex; gap: 20px; align-items: flex-start; }
.layout-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-2);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}
.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-menu-item:hover { background: var(--bg-hover); color: var(--text-1); }
.sidebar-menu-item.active { background: var(--primary-light); color: var(--primary); font-weight: 500; }
.sidebar-menu-item .menu-icon { font-size: 18px; width: 20px; text-align: center; }
.layout-main { flex: 1; min-width: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1D2129;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  display: none;
  animation: slideUp 0.3s ease;
}
.toast.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .layout-with-sidebar { flex-direction: column; }
  .layout-sidebar { width: 100%; position: static; }
  .form-row { flex-direction: column; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  h1 { font-size: 24px; }
  .step-flow { padding: 16px 0; }
  .step-node { min-width: 80px; }
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.cursor-pointer { cursor: pointer; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rounded-full { border-radius: var(--radius-full); }
.border-t { border-top: 1px solid var(--border-1); }
.border-b { border-bottom: 1px solid var(--border-1); }
