.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-normal) ease, border-color var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out);
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.card-title {
  font-family: var(--font-body), var(--font-cjk);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
}

.card-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.card-section .card-section-title {
  font-family: var(--font-display), var(--font-cjk);
  font-size: 1.0625rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.stat-card-inner {
  padding: 22px 24px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.stat-card .stat-value {
  font-family: var(--font-display), var(--font-cjk);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--foreground);
}

.stat-card .stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-card .stat-glow {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--duration-normal) ease;
}

.stat-card:hover .stat-glow {
  opacity: 0.8;
}

.stat-card .stat-bar {
  height: 3px;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.stat-card.accent .stat-icon-wrap { background: var(--accent-glow); color: var(--accent); }
.stat-card.accent .stat-glow { background: radial-gradient(circle, rgba(0,82,255,0.08) 0%, transparent 70%); }
.stat-card.accent .stat-bar { background: var(--accent-gradient); }
.stat-card.accent:hover { border-color: rgba(0,82,255,0.2); }

.stat-card.purple .stat-icon-wrap { background: var(--purple-light); color: var(--purple); }
.stat-card.purple .stat-glow { background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%); }
.stat-card.purple .stat-bar { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.stat-card.purple:hover { border-color: rgba(139,92,246,0.2); }

.stat-card.success .stat-icon-wrap { background: var(--success-light); color: var(--success); }
.stat-card.success .stat-glow { background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%); }
.stat-card.success .stat-bar { background: linear-gradient(135deg, #10B981, #34D399); }
.stat-card.success:hover { border-color: rgba(16,185,129,0.2); }

.stat-card.warning .stat-icon-wrap { background: var(--warning-light); color: var(--warning); }
.stat-card.warning .stat-glow { background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%); }
.stat-card.warning .stat-bar { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.stat-card.warning:hover { border-color: rgba(245,158,11,0.2); }

.stat-card.danger .stat-icon-wrap { background: var(--danger-light); color: var(--danger); }
.stat-card.danger .stat-glow { background: radial-gradient(circle, rgba(239,68,68,0.08) 0%, transparent 70%); }
.stat-card.danger .stat-bar { background: linear-gradient(135deg, #EF4444, #F87171); }
.stat-card.danger:hover { border-color: rgba(239,68,68,0.2); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-pi { background: var(--purple-light); color: var(--purple); border-color: rgba(139,92,246,0.2); }
.badge-admin { background: var(--accent-glow); color: var(--accent); border-color: rgba(0,82,255,0.15); }
.badge-member { background: var(--success-light); color: var(--success); border-color: rgba(16,185,129,0.15); }
.badge-temp { background: var(--cyan-light); color: var(--cyan); border-color: rgba(6,182,212,0.15); }
.badge-viewer { background: var(--muted); color: var(--muted-foreground); border-color: var(--border); }
.badge-pending { background: var(--warning-light); color: var(--warning); border-color: rgba(245,158,11,0.2); }
.badge-danger { background: var(--danger-light); color: var(--danger); border-color: rgba(239,68,68,0.15); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  border: 1px solid rgba(0,82,255,0.12);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.section-label .pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulseRing 1.8s ease-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body), var(--font-cjk);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  position: relative;
  line-height: 1.25;
}

.btn:disabled, .btn.loading { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn.loading .btn-label { visibility: hidden; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }

.btn-primary { background: var(--accent-gradient); color: var(--accent-foreground); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-secondary { background: var(--foreground); color: var(--card); }
.btn-secondary:hover { background: var(--inverted-muted); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline { background: var(--card); border: 1px solid var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: var(--border-hover); background: var(--muted); box-shadow: var(--shadow-xs); }

.btn-ghost { background: transparent; color: var(--muted-foreground); padding: 8px 12px; }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }

.btn-danger { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(239,68,68,0.15); }
.btn-danger:hover { background: rgba(239,68,68,0.15); box-shadow: 0 4px 12px rgba(239,68,68,0.15); }

.btn-success { background: var(--success-light); color: var(--success); border: 1px solid rgba(16,185,129,0.15); }
.btn-success:hover { background: rgba(16,185,129,0.15); }

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; border-radius: var(--radius-md); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-xl); }
.btn-icon { padding: 8px; border-radius: var(--radius-md); min-width: 36px; min-height: 36px; }

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--foreground);
}

.form-required::after {
  content: " *";
  color: var(--danger);
}

.form-input, .form-select, textarea.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: var(--font-body), var(--font-cjk);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  outline: none;
}

.form-input::placeholder, textarea.form-input::placeholder { color: var(--muted-foreground); opacity: 0.6; }
.form-input:focus, .form-select:focus, textarea.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.form-input.error { border-color: var(--danger); }
textarea.form-input { resize: vertical; min-height: 72px; line-height: 1.6; }
.form-hint { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 6px 0;
}

.checkbox-label input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }

.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.data-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }

.data-table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr { transition: background var(--duration-fast) ease; }
.data-table tbody tr:hover td { background: var(--muted); }
.data-table tbody tr:last-child td { border-bottom: none; }
.td-mono { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted-foreground); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn var(--duration-fast) ease;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px;
  width: 440px;
  max-width: 92vw;
  box-shadow: var(--shadow-xl);
  animation: scaleIn var(--duration-normal) var(--ease-spring);
}

.modal h3 { font-family: var(--font-display), var(--font-cjk); font-size: 1.125rem; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 20px; font-size: 0.875rem; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: slideInLeft var(--duration-slow) var(--ease-out); max-width: 380px; pointer-events: auto; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent); }

.spinner { width: 28px; height: 28px; border: 2.5px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 48px auto; }

.empty-state { text-align: center; padding: 56px 24px; }
.empty-state .empty-icon { font-size: 42px; margin-bottom: 16px; opacity: 0.6; }
.empty-state h3 { font-family: var(--font-display), var(--font-cjk); font-size: 1.125rem; color: var(--foreground); margin-bottom: 6px; }
.empty-state p { font-size: 0.875rem; color: var(--muted-foreground); }

.tab-bar { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-btn { padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted-foreground); font-family: var(--font-body), var(--font-cjk); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all var(--duration-fast) ease; white-space: nowrap; }
.tab-btn:hover { color: var(--foreground); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp var(--duration-normal) var(--ease-out); }

.section-title { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); margin-bottom: 12px; }

.activity-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.activity-text { font-size: 0.875rem; line-height: 1.5; }
.activity-time { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 3px; }

.approval-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 8px; transition: all var(--duration-normal) ease; }
.approval-item:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.approval-icon { font-size: 22px; flex-shrink: 0; }
.approval-body { flex: 1; min-width: 0; }
.approval-body .title { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.approval-body .desc { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 2px; }
.approval-actions { display: flex; gap: 6px; flex-shrink: 0; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.project-card:hover { border-color: var(--accent); box-shadow: var(--shadow-accent); transform: translateY(-3px); }
.project-card:hover::after { opacity: 1; }
.project-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.project-card .desc { font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card .meta { display: flex; gap: 16px; font-size: 0.75rem; color: var(--muted-foreground); }

.kanban { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; min-height: 400px; }
.kanban-col { flex: 0 0 300px; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-xl); display: flex; flex-direction: column; max-height: calc(100vh - 200px); }
.kanban-col-header { padding: 14px 16px; font-size: 0.8125rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.kanban-col-header .count { background: var(--card); border: 1px solid var(--border); color: var(--muted-foreground); font-family: var(--font-mono); font-size: 0.6875rem; padding: 2px 8px; border-radius: var(--radius-full); }
.kanban-col-body { flex: 1; overflow-y: auto; padding: 12px; }
.kanban-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 8px; cursor: pointer; box-shadow: var(--shadow-xs); transition: all var(--duration-normal) var(--ease-out); }
.kanban-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kanban-card.overdue { border-left: 3px solid var(--danger); }
.kanban-card .kc-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.kanban-card .kc-meta { display: flex; gap: 10px; font-size: 0.75rem; color: var(--muted-foreground); flex-wrap: wrap; }
.kanban-card .kc-tags { display: flex; gap: 4px; margin-bottom: 6px; }

.task-project-tag { background: var(--accent-glow); color: var(--accent); padding: 2px 8px; border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.03em; border: 1px solid rgba(0,82,255,0.1); }

.pipeline { display: flex; align-items: center; gap: 0; margin: 20px 0; overflow-x: auto; padding: 8px 0; }
.pipeline-node { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 80px; }
.pipeline-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; background: var(--card); z-index: 1; transition: all var(--duration-normal) ease; }
.pipeline-dot.active { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); box-shadow: 0 0 0 4px rgba(0,82,255,0.08); }
.pipeline-dot.done { border-color: var(--success); background: var(--success); color: #fff; }
.pipeline-label { font-size: 0.6875rem; color: var(--muted-foreground); text-align: center; max-width: 80px; line-height: 1.3; }
.pipeline-line { flex: 1; height: 2px; background: var(--border); min-width: 24px; }
.pipeline-line.done { background: var(--success); }

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.month-day {
  background: var(--card);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: background var(--duration-fast) ease;
}

.month-day:hover { background: var(--muted); }
.month-day.today { background: rgba(0,82,255,0.03); }
.month-day.other-month { opacity: 0.35; }

.month-day-header {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.month-day-num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.month-day.today .month-day-num {
  background: var(--accent-gradient);
  color: #fff;
}

.month-day-events {
  flex: 1;
  padding: 0 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.month-event-chip {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.6875rem;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity var(--duration-fast) ease;
}

.month-event-chip:hover { opacity: 0.8; }
.month-event-chip.lab { background: rgba(0,82,255,0.1); color: var(--accent); }
.month-event-chip.res { background: var(--warning-light); color: var(--warning); }
.month-event-chip.personal { background: var(--purple-light); color: var(--purple); }

.month-weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 0;
}

.month-weekday-header span {
  text-align: center;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  background: var(--muted);
}

.month-weekday-header span:first-child { border-radius: var(--radius-xl) 0 0 0; }
.month-weekday-header span:last-child { border-radius: 0 var(--radius-xl) 0 0; }

.month-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.month-nav-label {
  font-family: var(--font-display), var(--font-cjk);
  font-size: 1.25rem;
  flex: 1;
  text-align: center;
}

.docs-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.docs-toolbar-actions { display: flex; gap: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 0.875rem; }
.breadcrumb-item { cursor: pointer; color: var(--muted-foreground); padding: 4px 8px; border-radius: var(--radius-sm); transition: all var(--duration-fast) ease; }
.breadcrumb-item:hover { color: var(--foreground); background: var(--muted); }
.breadcrumb-sep { color: var(--border-hover); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.doc-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; transition: all var(--duration-normal) ease; position: relative; }
.doc-item.folder { cursor: pointer; }
.doc-item:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.doc-icon { font-size: 28px; margin-bottom: 8px; }
.doc-name { font-size: 0.875rem; font-weight: 600; word-break: break-all; }
.doc-meta { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 4px; }
.doc-item.file { display: flex; align-items: center; gap: 12px; }
.doc-item.file .doc-icon { margin-bottom: 0; font-size: 24px; }
.doc-del { position: absolute; top: 8px; right: 8px; padding: 2px 6px; font-size: 0.625rem; opacity: 0; transition: opacity var(--duration-fast) ease; }
.doc-item:hover .doc-del { opacity: 1; }
.confidential-badge { background: var(--danger-light); color: var(--danger); padding: 2px 7px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; }

.detail-section { margin-top: 24px; }
.detail-section h4 { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); margin-bottom: 10px; }
.detail-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 0.8125rem; font-weight: 600; color: var(--muted-foreground); width: 100px; flex-shrink: 0; }

.member-list-select { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px; }
.member-checkbox { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.875rem; transition: background var(--duration-fast) ease; }
.member-checkbox:hover { background: var(--muted); }
.member-checkbox input { accent-color: var(--accent); }

.ai-steps-box { background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; }
.ai-steps-header { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.ai-step-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-glow); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; flex-shrink: 0; border: 1px solid rgba(0,82,255,0.15); }
.ai-step-input { flex: 1; padding: 6px 10px; font-size: 0.8125rem; }

.subtask-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.875rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.subtask-item:last-child { border-bottom: none; }
.subtask-item.done span { text-decoration: line-through; color: var(--muted-foreground); }

.comment-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-item strong { font-size: 0.8125rem; }
.comment-time { font-size: 0.6875rem; color: var(--muted-foreground); margin-left: 8px; }
.comment-item p { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 4px; line-height: 1.5; }

.consent-banner { background: var(--warning-light); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.consent-banner .icon { font-size: 24px; flex-shrink: 0; }
.consent-banner .text { flex: 1; font-size: 0.8125rem; line-height: 1.6; }

.notif-list { max-height: 420px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border); border-radius: var(--radius-md); transition: background var(--duration-fast) ease; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--accent-glow); }
.notif-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.notif-body p { font-size: 0.875rem; margin-bottom: 2px; }
.notif-time { font-size: 0.6875rem; color: var(--muted-foreground); }

.invite-code-box { background: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius-xl); padding: 24px; text-align: center; margin: 16px 0; }
.invite-code { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; letter-spacing: 6px; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.budget-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.budget-item {
  background: var(--muted);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
}

.budget-item .budget-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.budget-item .budget-value {
  font-family: var(--font-display), var(--font-cjk);
  font-size: 1.5rem;
}

.budget-item.total .budget-value { color: var(--foreground); }
.budget-item.spent .budget-value { color: var(--danger); }
.budget-item.remaining .budget-value { color: var(--success); }

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--muted);
  border-radius: var(--radius-xl);
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: var(--shadow-md);
}

.profile-info h3 {
  font-family: var(--font-display), var(--font-cjk);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.profile-info p { font-size: 0.875rem; color: var(--muted-foreground); }

@media (max-width: 768px) {
  .kanban { flex-direction: column; }
  .kanban-col { flex: 0 0 auto; max-height: none; }
  .month-grid { font-size: 0.75rem; }
  .month-day { min-height: 60px; }
  .project-grid, .docs-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { flex-wrap: wrap; gap: 8px; }
  .approval-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .budget-summary { grid-template-columns: 1fr; }
}
