* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  color: #58a6ff;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #30363d;
  font-size: 28px;
  font-weight: 600;
}

h2 {
  color: #8b949e;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 30px 0 15px;
  font-weight: 600;
}

h3 {
  color: #c9d1d9;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.card-section-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #e6edf3;
}

.card-legacy {
  border-color: #21262d;
  background: #0d1117;
}

.card-legacy .card-section-title {
  color: #8b949e;
}

.card:hover {
  border-color: #484f58;
}

/* 레포지토리 카드 스타일 (통합: 미리보기 + 수정/삭제 + 매일 포함 + 접기/펼치기) */
.repo-list-hint {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #0d1117;
  border-radius: 8px;
  border-left: 4px solid #388bfd;
  font-size: 13px;
  color: #8b949e;
  line-height: 1.5;
}
.daily-order-section {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}
.daily-order-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}
.daily-order-header:hover {
  background: rgba(255, 255, 255, 0.03);
}
.daily-order-header:focus {
  outline: none;
}
.daily-order-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #8b949e;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.daily-order-section:not(.collapsed) .daily-order-chevron {
  transform: rotate(180deg);
}
.daily-order-title {
  font-size: 14px;
  margin: 0;
  color: #c9d1d9;
}
.daily-order-body {
  overflow: visible;
  max-height: min(90vh, 1400px);
  transition: max-height 0.25s ease;
  border-top: 1px solid #21262d;
  padding: 0 20px 16px 20px;
}
.daily-order-section.collapsed .daily-order-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
  overflow: hidden;
}
.daily-order-section .info-text {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #8b949e;
}
.daily-order-list-wrap {
  position: relative;
  --daily-order-list-height: 280px;
  height: calc(var(--daily-order-list-height) + 10px);
  min-height: 90px;
  max-height: min(80vh, 1200px);
}
.daily-order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: var(--daily-order-list-height);
  min-height: 80px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}
.daily-order-resize-handle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  cursor: ns-resize;
  background: linear-gradient(to bottom, transparent 0%, #21262d 30%, #21262d 70%, transparent 100%);
  border-radius: 0 0 6px 6px;
  user-select: none;
}
.daily-order-resize-handle:hover,
.daily-order-resize-handle.dragging {
  background: linear-gradient(to bottom, transparent 0%, #388bfd 30%, #388bfd 70%, transparent 100%);
}
.daily-order-resize-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 3px;
  background: #6e7681;
  border-radius: 2px;
}
.daily-order-resize-handle:hover::after,
.daily-order-resize-handle.dragging::after {
  background: #58a6ff;
}
.daily-order-list::-webkit-scrollbar {
  width: 8px;
}
.daily-order-list::-webkit-scrollbar-track {
  background: #21262d;
  border-radius: 4px;
}
.daily-order-list::-webkit-scrollbar-thumb {
  background: #484f58;
  border-radius: 4px;
}
.daily-order-list::-webkit-scrollbar-thumb:hover {
  background: #6e7681;
}
.daily-order-empty {
  margin: 0;
  font-size: 13px;
  color: #8b949e;
}
.daily-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #21262d;
  border-radius: 6px;
}
.daily-order-name {
  font-weight: 500;
  min-width: 120px;
}
.daily-order-repo {
  font-size: 12px;
  color: #8b949e;
  flex: 1;
}
.daily-order-buttons {
  display: flex;
  gap: 4px;
}
.daily-order-buttons .btn-sm {
  min-width: 32px;
  padding: 4px 8px;
}
#repo-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.repo-card {
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.repo-card.is-daily {
  border-left: 4px solid #238636;
  background: linear-gradient(90deg, rgba(35, 134, 54, 0.05) 0%, transparent 10%);
}
.repo-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
}
.repo-card-preview {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.repo-card-preview:focus {
  outline: none;
}
.repo-card-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #8b949e;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: 6px;
}
.repo-card:not(.collapsed) .repo-card-chevron {
  transform: rotate(180deg);
}
.repo-card-preview-inner {
  flex: 1;
  min-width: 0;
}
.repo-card-preview-inner .repo-name {
  margin-bottom: 6px;
}
.repo-card-preview-inner .repo-status,
.repo-card-preview-inner .repo-progress,
.repo-card-preview-inner .repo-notes-preview {
  margin-bottom: 8px;
}
.repo-card-preview-inner .repo-last-commit {
  margin-bottom: 6px;
}
.repo-card-preview-inner .repo-devs {
  margin-top: 8px;
}
.repo-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.repo-card-actions {
  display: flex;
  gap: 8px;
}
.repo-daily-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #21262d;
  border-radius: 20px;
  color: #8b949e;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}
.repo-daily-check:hover {
  background: #30363d;
  color: #c9d1d9;
}
.repo-daily-check input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #238636;
}
.repo-card.is-daily .repo-daily-check {
  background: rgba(35, 134, 54, 0.2);
  color: #3fb950;
}
.repo-card-body {
  overflow: hidden;
  max-height: 800px;
  transition: max-height 0.25s ease;
  border-top: 1px solid #21262d;
  padding: 16px 20px 20px;
  background: #0d1117;
}
.repo-card.collapsed .repo-card-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
}
.repo-card-body .form-group {
  margin-bottom: 14px;
}
.repo-card-body .form-group:last-child {
  margin-bottom: 0;
}
.repo-card-body label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6e7681;
  margin-bottom: 6px;
}
.repo-card-body .repo-notes-input,
.repo-card-body .repo-custom-content-input {
  min-height: 120px;
  font-size: 14px;
  border-radius: 6px;
  resize: vertical;
}
.repo-card-body-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #21262d;
}
.repo-card-body-actions .btn {
  min-width: 140px;
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}

.repo-name {
  color: #8b949e;
  font-size: 13px;
  font-family: 'Consolas', 'Monaco', monospace;
}
.repo-name-link {
  color: #58a6ff;
  text-decoration: none;
}
.repo-name-link:hover {
  text-decoration: underline;
  color: #79c0ff;
}

.repo-last-commit {
  color: #6e7681;
  font-size: 12px;
}
.repo-status {
  color: #8b949e;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 4px 8px;
  background: #0d1117;
  border-radius: 4px;
  display: inline-block;
}

.repo-progress {
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.repo-devs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dev-tag {
  background: #238636;
  color: #fff;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

/* 입력 필드 스타일 */
input, textarea, select {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 10px 14px;
  border-radius: 6px;
  width: 100%;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #58a6ff;
  background: #161b22;
}

input::placeholder, textarea::placeholder {
  color: #6e7681;
}

textarea {
  min-height: 150px;
  font-family: 'Consolas', 'Monaco', monospace;
  resize: vertical;
  line-height: 1.6;
}

#prompt-input {
  min-height: 400px;
  resize: both;
  overflow: auto;
}

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

.form-group label {
  display: block;
  color: #8b949e;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* 버튼 스타일 */
.btn {
  background: #238636;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  background: #2ea043;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  background: #da3633;
}

.btn-danger:hover:not(:disabled) {
  background: #f85149;
}

.btn-secondary {
  background: #30363d;
  color: #c9d1d9;
}

.btn-secondary:hover:not(:disabled) {
  background: #484f58;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* 개발자 목록 스타일 */
.developers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.dev-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1117;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #30363d;
  gap: 10px;
}

.dev-item span {
  color: #c9d1d9;
  font-size: 13px;
}

.developer-tag {
  background: #30363d;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.developer-tag .remove {
  cursor: pointer;
  color: #f85149;
}

/* 매핑 아이템 스타일 */
.mapping-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1117;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #30363d;
  margin-bottom: 10px;
  gap: 15px;
}

.mapping-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.mapping-github {
  color: #58a6ff;
  font-weight: 600;
  font-size: 14px;
}

.mapping-slack {
  color: #c9d1d9;
  font-size: 14px;
}

.mapping-userid {
  color: #8b949e;
  font-size: 12px;
  font-family: 'Consolas', 'Monaco', monospace;
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal.active {
  display: flex;
  animation: modalFadeIn 0.2s;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 28px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #30363d;
}

.modal-header h3 {
  color: #c9d1d9;
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 28px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #30363d;
  color: #c9d1d9;
}

/* 수동 실행 모달: 채널 선택 */
.manual-run-channel-load {
  color: #8b949e;
  font-size: 13px;
  padding: 12px 0;
}
.manual-run-channel-list {
  margin-top: 8px;
}
.manual-run-channel-options {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #0d1117;
}
.manual-run-channel-option {
  display: block;
  padding: 8px 10px;
  margin: 2px 0;
  border-radius: 6px;
  cursor: pointer;
  color: #c9d1d9;
  font-size: 14px;
}
.manual-run-channel-option:hover {
  background: #21262d;
}
.manual-run-channel-option input {
  margin-right: 10px;
  cursor: pointer;
}
.channel-id-hint {
  color: #8b949e;
  font-size: 12px;
  margin-left: 6px;
}

/* 레포지토리 모달 전용 */
.repo-modal-content {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
}
.repo-modal-content .modal-header {
  flex-shrink: 0;
  margin: 0;
  padding: 20px 24px;
}
.repo-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.repo-modal-content .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 20px;
}
.modal-section {
  padding: 20px 0;
  border-bottom: 1px solid #21262d;
}
.modal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.modal-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b949e;
  margin-bottom: 14px;
}
.modal-hint {
  font-size: 12px;
  color: #6e7681;
  margin-bottom: 10px;
  line-height: 1.45;
}
.repo-modal-content .form-group {
  margin-bottom: 16px;
}
.repo-modal-content .form-group:last-child {
  margin-bottom: 0;
}
.form-group-checkbox {
  margin-bottom: 18px;
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #c9d1d9;
  margin-bottom: 0;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #238636;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-text {
  user-select: none;
}
.repo-modal-content .modal-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #30363d;
  background: #0d1117;
  border-radius: 0 0 12px 12px;
}
.repo-modal-content .progress-controls {
  margin-top: 10px;
}
.repo-modal-content .developers-list {
  margin-top: 12px;
}
.dev-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  font-size: 13px;
}
.dev-item span {
  color: #c9d1d9;
  font-family: 'Consolas', 'Monaco', monospace;
}
.dev-item .btn-sm {
  flex-shrink: 0;
}

/* 토스트 스타일 */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #238636;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  display: none;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  max-width: 400px;
}

.toast.error {
  background: #da3633;
}

.toast.show {
  display: block;
  animation: toastSlideIn 0.3s;
}

@keyframes toastSlideIn {
  from { 
    opacity: 0; 
    transform: translateX(100px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

/* 진척도 선택기 스타일 */
.progress-selector {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  background: #0d1117;
  border-radius: 6px;
  border: 1px solid #30363d;
}

.progress-slot {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #30363d;
  background: #161b22;
  cursor: pointer;
  border-radius: 6px;
  font-size: 18px;
  transition: all 0.2s;
  user-select: none;
}

.progress-slot:hover {
  border-color: #58a6ff;
  background: #1f2937;
  transform: scale(1.05);
}

.progress-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #30363d;
  background: #0d1117;
  cursor: pointer;
  border-radius: 6px;
  font-size: 18px;
  transition: all 0.2s;
}

.progress-btn:hover {
  border-color: #58a6ff;
  background: #161b22;
}

/* 상위·하위 네비게이션 */
.nav-top {
  margin-bottom: 20px;
  border-bottom: 1px solid #30363d;
}

.nav-top-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-top-item {
  padding: 12px 20px;
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-top-item:hover {
  color: #c9d1d9;
}

.nav-top-item.active {
  color: #58a6ff;
  border-bottom-color: #58a6ff;
}

.nav-sub-row {
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.nav-sub {
  display: none;
  gap: 2px;
  padding: 8px 0 0;
  margin-bottom: -1px;
  border-bottom: 1px solid #30363d;
}

.nav-sub.active {
  display: flex;
  flex-wrap: wrap;
}

.nav-sub-item {
  padding: 8px 16px;
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  transition: color 0.2s, background 0.2s;
}

.nav-sub-item:hover {
  color: #c9d1d9;
  background: #21262d;
}

.nav-sub-item.active {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
}

/* 레거시 탭 (호환용) */
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid #30363d;
  overflow-x: auto;
}

.tab {
  padding: 12px 24px;
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab:hover {
  color: #c9d1d9;
}

.tab.active {
  color: #58a6ff;
  border-bottom-color: #58a6ff;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* 미리보기 탭 툴바·필터 */
.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.preview-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9d1d9;
  font-size: 14px;
  cursor: pointer;
}

.preview-filter-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* 미리보기 박스 스타일 */
.preview-box {
  background: #1a1d21;
  border-radius: 8px;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 15px;
  min-height: 200px;
}

/* 로그 탭 (백엔드 로그) */
#logs .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.log-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.log-toolbar label {
  color: #8b949e;
  font-size: 13px;
  white-space: nowrap;
}

.log-toolbar select,
.log-toolbar input[type="date"] {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.log-meta {
  color: #8b949e;
  font-size: 12px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.log-viewer {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 16px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow: auto;
  max-height: 70vh;
  min-height: 200px;
  width: 100%;
  min-width: 0;
  white-space: pre;
  word-break: normal;
  color: #c9d1d9;
  margin: 0;
  direction: ltr;
  text-align: left;
}

/* Slack Block Kit 미리보기 스타일 */
.slack-block-preview {
  background: #1a1d21;
  border-radius: 8px;
  overflow: hidden;
}

.slack-block-header {
  padding: 16px 20px 8px;
}

.slack-block-header-text {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.slack-block-context {
  padding: 0 20px 12px;
  font-size: 13px;
  color: #8b949e;
}

.slack-block-divider {
  height: 1px;
  background: #30363d;
  margin: 0 20px;
}

.slack-block-section {
  padding: 16px 20px;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.6;
}

/* Slack mrkdwn 렌더링 스타일 */
.slack-bold {
  font-weight: 700;
  color: #fff;
}

.slack-quote {
  display: block;
  padding-left: 12px;
  margin: 0;
  border-left: 3px solid #30363d;
  color: #8b949e;
  line-height: 1.5;
}

/* 연속 인용(> ) 줄을 한 블록으로 붙여 표시 */
.slack-quote-block {
  padding-left: 12px;
  margin: 0 0 4px 0;
  border-left: 3px solid #30363d;
  color: #8b949e;
  line-height: 1.5;
}

.slack-quote-block br + * {
  margin-top: 0;
}

.slack-mention {
  background: rgba(29, 155, 209, 0.2);
  color: #1d9bd1;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}

.slack-bullet {
  color: #8b949e;
  margin-right: 4px;
}

.slack-bullet-sub {
  color: #6e7681;
  margin-right: 4px;
}

/* 빈 상태 스타일 */
.slack-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #6e7681;
  text-align: center;
  padding: 40px;
}

.slack-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.slack-empty-text {
  font-size: 15px;
  margin-bottom: 8px;
  color: #8b949e;
}

.slack-empty-hint {
  font-size: 13px;
  color: #6e7681;
}

/* 미리보기 안내 */
.slack-preview-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-size: 13px;
  color: #8b949e;
  line-height: 1.6;
}

.slack-preview-note strong {
  color: #c9d1d9;
  display: block;
  margin-bottom: 6px;
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0d1117;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

/* 헤더 섹션 */
.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.header-section h1 {
  margin: 0;
  padding: 0;
  border: none;
}

/* 섹션 헤더 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 레포지토리 탭 상단 툴바 */
.repo-toolbar {
  margin-bottom: 16px;
}
.repo-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.repo-toolbar-primary .btn {
  font-weight: 600;
}
.repo-toolbar-primary .btn-icon {
  margin-right: 6px;
  opacity: 0.9;
}
.repo-toolbar-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.repo-toolbar-secondary .btn {
  font-size: 13px;
}
.repo-toolbar-secondary .badge {
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 11px;
  background: rgba(35, 134, 54, 0.25);
  color: #3fb950;
  border-radius: 4px;
  font-weight: 500;
}

/* 버튼 변형 */
.btn-primary {
  background: #1f6feb;
}

.btn-primary:hover:not(:disabled) {
  background: #388bfd;
}

.badge {
  font-size: 11px;
  margin-left: 5px;
  opacity: 0.9;
  font-weight: 400;
}

/* 정보 텍스트 */
.info-text {
  margin-bottom: 20px;
  color: #8b949e;
  font-size: 13px;
  line-height: 1.6;
}

.hint-text {
  margin-top: 8px;
  color: #8b949e;
  font-size: 12px;
  line-height: 1.5;
}

.highlight {
  color: #58a6ff;
  font-weight: 600;
}

/* 스케줄러 캘린더 */
.scheduler-calendar-hint {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #0d1117;
  border-radius: 8px;
  border-left: 4px solid #388bfd;
  font-size: 13px;
  color: #8b949e;
  line-height: 1.5;
}

.scheduler-calendar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0;
}

@media (max-width: 900px) {
  .scheduler-calendar-wrap {
    grid-template-columns: 1fr;
  }
}

.scheduler-calendar-month {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 16px;
}

.scheduler-calendar-header {
  font-size: 16px;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 12px;
  text-align: center;
}

.scheduler-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.scheduler-calendar-weekday {
  font-size: 11px;
  color: #8b949e;
  text-align: center;
  font-weight: 600;
}

.scheduler-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.scheduler-calendar-cell {
  aspect-ratio: 1;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.scheduler-calendar-cell-empty {
  background: transparent;
  cursor: default;
}

.scheduler-calendar-cell-run {
  background: rgba(35, 134, 54, 0.15);
  border: 1px solid #238636;
  color: #3fb950;
}

.scheduler-calendar-cell-run:hover {
  background: rgba(35, 134, 54, 0.25);
}

.scheduler-calendar-cell-off {
  background: #21262d;
  border: 1px solid #30363d;
  color: #8b949e;
}

.scheduler-calendar-cell-off:hover {
  background: #30363d;
  border-color: #484f58;
}

.scheduler-calendar-cell-weekend {
  background: #161b22;
  color: #6e7681;
}

.scheduler-calendar-cell-today {
  box-shadow: 0 0 0 2px #58a6ff;
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
  position: relative;
}

.scheduler-calendar-cell-today::before {
  content: '오늘';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 9px;
  font-weight: 600;
  color: #58a6ff;
}

.scheduler-calendar-day-num {
  font-weight: 600;
  color: inherit;
}

.scheduler-calendar-day-label {
  font-size: 10px;
  margin-top: 2px;
  opacity: 0.9;
}

/* 스케줄러 일정 편집 모달 */
.scheduler-day-modal-date {
  font-size: 15px;
  color: #e6edf3;
  margin-bottom: 16px;
}

.scheduler-day-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scheduler-day-options .radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #c9d1d9;
}

.scheduler-day-options .radio-label input[type="radio"] {
  width: auto;
  margin: 0;
}

.scheduler-day-options .radio-label input[type="time"] {
  width: 200px;
  min-width: 200px;
  min-height: 40px;
  padding: 10px 14px;
  margin-left: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

/* Slack 메시지 전송 방식 (위·아래 배치) */
.send-mode-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.send-mode-options .radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #c9d1d9;
  margin-bottom: 0;
}

.send-mode-options .radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #238636;
}

/* 매핑 폼 */
.mapping-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mapping-form select,
.mapping-form input {
  flex: 1;
  min-width: 150px;
}

.mappings-list {
  margin-bottom: 20px;
}

/* PM 탭 */
.pm-section-header {
  margin-bottom: 16px;
}
.pm-card {
  padding: 24px;
}
.pm-info-text {
  margin-bottom: 24px;
  padding: 14px 16px;
  background: #0d1117;
  border-radius: 8px;
  border-left: 4px solid #388bfd;
  font-size: 14px;
  line-height: 1.65;
  color: #8b949e;
}
.pm-info-text strong {
  color: #c9d1d9;
}
.pm-repo-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pm-repo-row.card,
.dev-comment-row.card {
  margin-bottom: 0;
}
.pm-repo-row {
  padding: 20px;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pm-repo-row.is-daily {
  border-left: 4px solid #238636;
  background: linear-gradient(90deg, rgba(35, 134, 54, 0.06) 0%, transparent 12%);
}
.pm-repo-row:hover {
  border-color: #484f58;
}
.pm-repo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #21262d;
  margin-bottom: 0;
}
.pm-repo-row.collapsed .pm-repo-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.pm-repo-toggle {
  cursor: pointer;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-repo-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #8b949e;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.pm-repo-row:not(.collapsed) .pm-repo-chevron {
  transform: rotate(180deg);
}
.pm-repo-name {
  font-family: 'Consolas', 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #58a6ff;
  letter-spacing: 0.02em;
}
.pm-repo-body {
  overflow: hidden;
  max-height: 1200px;
  transition: max-height 0.25s ease, margin-top 0.2s ease;
  margin-top: 16px;
}
.pm-repo-row.collapsed .pm-repo-body {
  max-height: 0;
  margin-top: 0;
}
.pm-daily-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #21262d;
  border-radius: 20px;
  color: #8b949e;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}
.pm-daily-check:hover {
  background: #30363d;
  color: #c9d1d9;
}
.pm-daily-check input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #238636;
}
.pm-repo-row.is-daily .pm-daily-check {
  background: rgba(35, 134, 54, 0.2);
  color: #3fb950;
}
.pm-repo-row .form-group {
  margin-bottom: 16px;
}
.pm-repo-row .form-group:last-child {
  margin-bottom: 0;
}
.pm-repo-row .form-group label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6e7681;
  margin-bottom: 6px;
}
.pm-repo-row input.pm-display-name,
.pm-repo-row .pm-notes,
.pm-repo-row .pm-memo,
.pm-repo-row .pm-custom-content {
  border-radius: 6px;
  font-size: 14px;
}
.pm-repo-row .pm-notes,
.pm-repo-row .pm-memo {
  min-height: 64px;
}
.pm-field-hint {
  font-size: 11px;
  font-weight: 400;
  color: #6e7681;
  text-transform: none;
  letter-spacing: 0;
}
.pm-repo-row .pm-custom-content {
  min-height: 80px;
}
.pm-repo-list-empty {
  text-align: center;
  padding: 48px 24px;
  color: #6e7681;
  font-size: 14px;
  background: #0d1117;
  border-radius: 10px;
  border: 1px dashed #30363d;
}
.repo-name-muted {
  font-size: 12px;
  color: #8b949e;
  font-family: monospace;
}
.developer-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.developer-comments-empty {
  color: #8b949e;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* 입력과 버튼 조합 */
.input-with-btn {
  display: flex;
  gap: 10px;
}

.input-with-btn input {
  flex: 1;
}

/* 개발자 입력 */
.developer-input {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.developer-input select,
.developer-input input {
  flex: 1;
  min-width: 150px;
}

/* 진척도 컨트롤 */
.progress-controls {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.progress-info {
  color: #8b949e;
  font-size: 13px;
  margin-left: 10px;
}

/* alwaysShow 배지 스타일 */
.always-show-badge {
  background: #388bfd;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  margin-left: 8px;
}

/* notes 미리보기 스타일 */
.repo-notes-preview {
  color: #8b949e;
  font-size: 12px;
  margin: 8px 0;
  padding: 8px 12px;
  background: #0d1117;
  border-radius: 4px;
  border-left: 3px solid #58a6ff;
  white-space: pre-line;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  h1 {
    font-size: 24px;
  }

  .header-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .repo-toolbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .repo-toolbar-secondary {
    width: 100%;
  }
  .repo-toolbar-secondary .btn {
    flex: 1;
    min-width: 0;
  }

  .action-buttons {
    width: 100%;
  }

  .action-buttons .btn {
    flex: 1;
    min-width: 0;
  }

  .tabs {
    gap: 2px;
  }

  .tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .nav-top-item {
    padding: 10px 14px;
    font-size: 13px;
  }

  .nav-sub-item {
    padding: 6px 12px;
    font-size: 12px;
  }

  .repo-header {
    flex-direction: column;
    gap: 10px;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .modal-content {
    padding: 20px;
  }

  .repo-modal-content .modal-body {
    padding: 0 16px 16px;
  }
  .repo-modal-content .modal-footer {
    flex-direction: column;
    padding: 16px;
  }
  .repo-modal-content .modal-footer .btn {
    width: 100%;
  }

  .progress-selector {
    gap: 6px;
  }

  .progress-slot {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .mapping-form {
    flex-direction: column;
  }

  .mapping-form select,
  .mapping-form input {
    min-width: 100%;
  }

  .developer-input {
    flex-direction: column;
  }

  .developer-input select,
  .developer-input input {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0;
  }

  h1 {
    font-size: 20px;
  }

  .card {
    padding: 15px;
  }

  .modal-content {
    width: 95%;
    padding: 16px;
  }
  .repo-modal-content .modal-header,
  .repo-modal-content .modal-footer {
    padding: 14px 16px;
  }
  .repo-modal-content .modal-body {
    padding: 0 14px 14px;
  }

  .toast {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }
}

/* 채널 관리 스타일 */
.channel-add-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.channel-add-form-combo {
  flex-direction: column;
  gap: 12px;
}

.channel-add-by-combo {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.channel-add-mode-label {
  color: #8b949e;
  font-size: 13px;
  margin-right: 4px;
}

.channel-combo-select {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.channel-add-toggle-direct {
  align-self: flex-start;
}

.channel-add-direct {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #21262d;
}

.channel-add-form input,
.channel-add-form select {
  flex: 1;
  min-width: 120px;
}

.channel-add-form select {
  max-width: 120px;
}

.channel-add-form-combo .channel-add-by-combo select:first-of-type {
  max-width: none;
}

.channel-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.channel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1117;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #30363d;
  gap: 12px;
}

.channel-item-disabled {
  opacity: 0.5;
}

.channel-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.channel-item-id {
  color: #c9d1d9;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
}

.channel-item-label {
  color: #8b949e;
  font-size: 13px;
}

.channel-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.channel-type-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.channel-type-test {
  background: rgba(227, 179, 65, 0.2);
  color: #e3b341;
}

.channel-type-prod {
  background: rgba(35, 134, 54, 0.2);
  color: #3fb950;
}

.channel-toggle-on {
  background: #238636;
  color: #fff;
}

.channel-toggle-on:hover:not(:disabled) {
  background: #2ea043;
}

.channel-toggle-off {
  background: #30363d;
  color: #8b949e;
}

.channel-toggle-off:hover:not(:disabled) {
  background: #484f58;
}

/* 비개발자 역할 배지 */
.non-github-role-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(136, 132, 216, 0.2);
  color: #a78bfa;
  margin-left: 4px;
}

/* 비개발자 dev-tag */
.dev-tag-non-github {
  background: #6e40c9;
}

/* 레포 모달 개발자 입력 모드 라디오 */
.dev-input-mode {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.dev-input-mode .radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #c9d1d9;
}

.dev-input-mode .radio-label input[type="radio"] {
  width: auto;
  margin: 0;
}

@media (max-width: 768px) {
  .channel-add-form {
    flex-direction: column;
  }

  .channel-add-form select {
    max-width: 100%;
  }

  .channel-quick-actions {
    flex-direction: column;
  }
}

/* ── 프로젝트 대시보드 ─────────────────────────────────────── */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-view-toggle {
  display: flex;
  gap: 4px;
  background: #21262d;
  border-radius: 6px;
  padding: 2px;
}

.dashboard-view-btn {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  transition: background 0.2s, color 0.2s;
}

.dashboard-view-btn.active {
  background: #30363d;
  color: #e6edf3;
}

.dashboard-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8b949e;
  cursor: pointer;
}

.dashboard-filter-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* 칸반 보드 */
.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 300px;
}

.kanban-column {
  flex: 0 0 260px;
  min-width: 260px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

.kanban-column-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
}

.kanban-column-icon {
  font-size: 16px;
}

.kanban-column-label {
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
}

.kanban-column-count {
  background: #30363d;
  color: #8b949e;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}

.kanban-column-body {
  padding: 8px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px;
  cursor: grab;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kanban-card:hover {
  border-color: #58a6ff;
  box-shadow: 0 0 0 1px #58a6ff;
}

.kanban-card-dragging {
  opacity: 0.6;
  cursor: grabbing;
}

.kanban-column-drop-over {
  background: rgba(88, 166, 255, 0.08);
  border-radius: 8px;
  outline: 2px dashed rgba(88, 166, 255, 0.4);
  outline-offset: 2px;
}

.kanban-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 6px;
  line-height: 1.3;
}

.kanban-card-repo {
  display: inline-block;
  font-size: 11px;
  color: #58a6ff;
  text-decoration: none;
  font-family: 'Consolas', 'Monaco', monospace;
  margin-bottom: 6px;
}

.kanban-card-repo:hover {
  text-decoration: underline;
}

.kanban-card-no-repo {
  font-size: 11px;
  color: #6e7681;
  margin-bottom: 6px;
  display: inline-block;
}

.kanban-card-progress {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.kanban-card-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #6e7681;
}

.kanban-empty {
  text-align: center;
  padding: 20px 10px;
  color: #6e7681;
  font-size: 13px;
}

/* 리스트 뷰 */
.dashboard-list-group {
  margin-bottom: 20px;
}

.dashboard-list-group-header {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
  background: #161b22;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #0d1117;
  border: 1px solid #30363d;
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.dashboard-list-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b949e;
  border-bottom: 1px solid #21262d;
  background: #161b22;
}

.dashboard-list-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: #c9d1d9;
  border-bottom: 1px solid #21262d;
}

.dashboard-list-table a {
  color: #58a6ff;
  text-decoration: none;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
}

.dashboard-list-table a:hover {
  text-decoration: underline;
}

.dashboard-list-row:hover td {
  background: rgba(88, 166, 255, 0.05);
}

/* 단계 배지 */
.phase-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* 단계 관리 */
.phase-settings-section {
  margin-top: 24px;
  padding: 0;
  overflow: hidden;
}

.phase-settings-section.collapsed .phase-settings-body {
  max-height: 0;
  padding: 0 20px;
  border-top: none;
  overflow: hidden;
}

.phase-settings-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.phase-settings-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.phase-settings-body {
  max-height: 1000px;
  transition: max-height 0.25s ease;
  border-top: 1px solid #21262d;
  padding: 16px 20px;
}

.phase-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  margin-bottom: 6px;
}

.phase-item-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

.phase-item-id {
  font-size: 12px;
  color: #6e7681;
  font-family: monospace;
  margin-left: auto;
}

.phase-item-actions {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.phase-add-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.phase-add-form input {
  flex: 1;
  min-width: 80px;
}

.phase-add-form input[type="color"] {
  width: 40px;
  min-width: 40px;
  flex: 0;
  padding: 4px;
  height: 38px;
  cursor: pointer;
}

/* 반응형: 모바일에서 칸반 세로 스택 */
@media (max-width: 768px) {
  .kanban-board {
    flex-direction: column;
  }

  .kanban-column {
    flex: none;
    min-width: 100%;
    max-height: none;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .phase-add-form {
    flex-direction: column;
  }

  .phase-add-form input,
  .phase-add-form select {
    min-width: 100%;
  }
}

/* Lucide 아이콘 기본 스타일 */
[data-lucide] {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  vertical-align: middle;
  display: inline-block;
}

/* 진척도 CSS 기반 사각형 */
.progress-slot.filled {
  background: #000000;
  border-color: #000000;
}

.progress-slot.empty {
  background: #ffffff;
  border-color: #30363d;
}

/* 칸반/리스트 뷰 진척도 인라인 표시 */
.progress-bar-inline {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.progress-bar-inline .progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.progress-bar-inline .progress-dot.filled {
  background: #000000;
  border: 1px solid #000000;
}

.progress-bar-inline .progress-dot.empty {
  background: #ffffff;
  border: 1px solid #30363d;
}

/* 단계 아이콘 (Lucide) */
.phase-item-icon [data-lucide] {
  width: 18px;
  height: 18px;
}

.kanban-column-icon [data-lucide] {
  width: 16px;
  height: 16px;
}

/* 빈 상태 아이콘 (Lucide) */
.slack-empty-icon [data-lucide] {
  width: 48px;
  height: 48px;
}

/* 아이콘 피커 커스텀 드롭다운 */
.icon-picker {
  position: relative;
  width: 140px;
  min-width: 140px;
  flex: 0 0 auto;
}

.icon-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 13px;
  cursor: pointer;
  height: 38px;
  gap: 6px;
}

.icon-picker-trigger:hover {
  border-color: #58a6ff;
}

.icon-picker-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.icon-picker-preview [data-lucide] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-picker-arrow {
  color: #8b949e;
  font-size: 11px;
  flex-shrink: 0;
}

.icon-picker-dropdown {
  display: none;
  position: fixed;
  min-width: 200px;
  max-height: 260px;
  overflow-y: auto;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 10000;
  padding: 4px;
}

.icon-picker-dropdown.open {
  display: block;
}

.icon-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 5px;
  cursor: pointer;
  color: #c9d1d9;
  font-size: 13px;
  transition: background 0.12s;
}

.icon-picker-option:hover {
  background: #21262d;
}

.icon-picker-option.selected {
  background: #1f6feb22;
  color: #58a6ff;
}

.icon-picker-option [data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-picker-option-label {
  flex: 1;
}

@media (max-width: 768px) {
  .icon-picker {
    min-width: 100%;
    width: 100%;
  }
}

/* ─────────────────────────────────────────────
   이슈 생성 탭
───────────────────────────────────────────── */

.issue-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.issue-form-card {
  padding: 28px;
}

.issue-form-card .form-group {
  margin-bottom: 20px;
}

.issue-form-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #c9d1d9;
  margin-bottom: 8px;
}

.issue-form-card .required {
  color: #f85149;
  margin-left: 2px;
}

.form-hint {
  font-size: 12px;
  color: #8b949e;
  font-weight: 400;
  margin-left: 4px;
}

.issue-form-card select,
.issue-form-card input[type="text"],
.issue-form-card textarea {
  width: 100%;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.issue-form-card select:focus,
.issue-form-card input[type="text"]:focus,
.issue-form-card textarea:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
}

.issue-form-card textarea {
  resize: vertical;
  min-height: 120px;
}

/* 라벨 칩 */
.issue-label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  align-items: center;
}

.issue-label-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #30363d;
  background: #161b22;
  color: #c9d1d9;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.issue-label-chip:hover {
  border-color: var(--label-color, #58a6ff);
  color: #fff;
}

.issue-label-chip.selected {
  background: color-mix(in srgb, var(--label-color, #58a6ff) 20%, transparent);
  border-color: var(--label-color, #58a6ff);
  color: #fff;
}

.issue-label-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--label-color, #8b949e);
  flex-shrink: 0;
}

.issue-empty-hint {
  color: #8b949e;
  font-size: 13px;
}

/* 담당자 2열 */
.issue-assignee-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.issue-assignee-row select {
  width: 100%;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
}

.issue-assignee-row select:focus {
  outline: none;
  border-color: #58a6ff;
}

/* 폼 액션 버튼 */
.issue-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* 결과 카드 */
.issue-result-card {
  background: #0d2137;
  border: 1px solid #1f6feb;
  border-radius: 10px;
  padding: 20px 24px;
}

.issue-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.issue-result-badge {
  font-size: 15px;
  font-weight: 600;
  color: #3fb950;
}

.issue-result-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.issue-result-repo {
  font-size: 13px;
  color: #8b949e;
  font-family: monospace;
}

.issue-result-number {
  font-size: 13px;
  color: #58a6ff;
  font-weight: 600;
}

.issue-result-title {
  font-size: 15px;
  color: #c9d1d9;
  font-weight: 500;
}

/* Slack 가이드 카드 */
.issue-slack-guide {
  padding: 24px 28px;
}

.issue-slack-guide h3 {
  font-size: 16px;
  font-weight: 600;
  color: #c9d1d9;
  margin-bottom: 10px;
}

.issue-slack-guide code {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  color: #79c0ff;
}

.issue-slack-endpoints {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.slack-endpoint-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 10px 14px;
}

.slack-endpoint-label {
  font-size: 12px;
  color: #8b949e;
  width: 170px;
  flex-shrink: 0;
  font-weight: 600;
}

.slack-endpoint-item code {
  background: transparent;
  border: none;
  padding: 0;
  color: #c9d1d9;
  word-break: break-all;
}

@media (max-width: 640px) {
  .issue-assignee-row {
    grid-template-columns: 1fr;
  }
  .issue-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .slack-endpoint-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .slack-endpoint-label {
    width: auto;
  }
}

/* ── Slack 멤버 드롭다운 + 직접입력 콤보 ── */
.slack-member-combo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.slack-member-combo select,
.slack-member-combo input {
  width: 100%;
}

.slack-member-combo input[readonly] {
  background: #0d1117;
  color: #8b949e;
  cursor: default;
}

/* ── 이슈 이미지 첨부 ── */
.issue-dropzone {
  border: 2px dashed #30363d;
  border-radius: 6px;
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  color: #8b949e;
  transition: border-color .15s, background .15s;
}
.issue-dropzone:hover,
.issue-dropzone.dragover {
  border-color: #58a6ff;
  background: rgba(88,166,255,.06);
  color: #58a6ff;
}

.issue-image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.issue-img-thumb {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #30363d;
  background: #161b22;
  flex-shrink: 0;
}
.issue-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.issue-img-thumb .thumb-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2px 4px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.issue-img-thumb.uploading .thumb-badge { background: rgba(255,255,255,.15); color: #c9d1d9; }
.issue-img-thumb.done     .thumb-badge { background: rgba(35,134,54,.8);    color: #fff; }
.issue-img-thumb.fail     .thumb-badge { background: rgba(248,81,73,.8);    color: #fff; }
.issue-img-thumb .thumb-del {
  position: absolute;
  top: 3px; right: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 10px;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.issue-insert-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #8b949e;
}
