/* 결재 조종석 보드 공통 스타일 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Apple SD Gothic Neo', sans-serif; background: #0f1115; color: #e6e8eb; }

.topbar {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.75rem 1rem;
  border-bottom: 1px solid #2a2f3a; background: #14171f;
  position: sticky; top: 0; z-index: 10;
}
.topbar h1 { margin: 0; font-size: 1.1rem; }
.topbar .meta { color: #8a93a4; font-size: 0.9rem; }
.topbar .conn { margin-left: auto; font-size: 0.8rem; padding: 0.15rem 0.5rem; border-radius: 4px; }
.topbar .conn.on { background: #1f3d2a; color: #6ee7a0; }
.topbar .conn.off { background: #3d1f1f; color: #e76e6e; }

.board {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem; padding: 0.75rem; overflow-x: auto;
}
.col {
  background: #14171f; border: 1px solid #2a2f3a; border-radius: 8px;
  display: flex; flex-direction: column; min-height: 0; padding: 0.5rem;
}
.col h2 {
  margin: 0 0 0.5rem 0; font-size: 0.85rem; color: #a8b0c0; text-transform: uppercase;
  letter-spacing: 0.05em; display: flex; justify-content: space-between;
}
.col h2 .count { color: #5d6678; font-weight: normal; }
.col[data-col="done"] h2 .col-label { color: #6ee7a0; }
.col[data-col="rejected"] h2 .col-label { color: #e76e6e; }

.cards { display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; flex: 1; }
.card {
  background: #1c2030; border: 1px solid #2a2f3a; border-radius: 6px;
  padding: 0.5rem; font-size: 0.85rem;
}
.card header { display: flex; justify-content: space-between; font-size: 0.7rem; color: #8a93a4; margin-bottom: 0.25rem; }
.card .task-id { font-family: ui-monospace, monospace; color: #6ec1e7; }
.card .agent { background: #252b3d; padding: 0.05rem 0.4rem; border-radius: 3px; }
.card h3 { margin: 0 0 0.4rem 0; font-size: 0.95rem; line-height: 1.3; }
.card details { margin-top: 0.3rem; }
.card details summary { cursor: pointer; color: #8a93a4; font-size: 0.75rem; }
.card details pre { background: #0f1115; padding: 0.4rem; border-radius: 4px; font-size: 0.75rem; max-height: 200px; overflow: auto; margin: 0.3rem 0 0; white-space: pre-wrap; }
.card footer { margin-top: 0.4rem; color: #5d6678; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; gap: 0.3rem; }
.card footer .actions { display: flex; gap: 0.25rem; }
.btn { background: #252b3d; color: #e6e8eb; border: 1px solid #353a4a; border-radius: 4px; padding: 0.15rem 0.5rem; cursor: pointer; font-size: 0.7rem; }
.btn:hover { background: #2f3550; }
.btn.btn-ok { background: #1f3d2a; border-color: #2f5d40; color: #6ee7a0; }
.btn.btn-no { background: #3d1f1f; border-color: #5d2f2f; color: #e76e6e; }
.btn-link { background: none; border: none; color: #6ec1e7; cursor: pointer; padding: 0.15rem 0.5rem; font-size: 0.8rem; text-decoration: underline; }
.badge { font-size: 0.7rem; padding: 0.05rem 0.4rem; border-radius: 3px; }
.badge.boss { background: #3d2f1f; color: #e7c46e; }
.badge.warn { background: #3d2f1f; color: #e7a06e; }
.topbar .user { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.topbar .conn { font-size: 0.75rem; padding: 0.1rem 0.45rem; border-radius: 4px; }
.filterbar { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; background: #14171f; border-bottom: 1px solid #2a2f3a; }
.filter-input { background: #0f1115; color: #e6e8eb; border: 1px solid #2a2f3a; border-radius: 4px; padding: 0.3rem 0.6rem; font-size: 0.8rem; flex: 1; max-width: 320px; }
.filter-input:focus { outline: none; border-color: #6ec1e7; }
.filter-select { background: #0f1115; color: #e6e8eb; border: 1px solid #2a2f3a; border-radius: 4px; padding: 0.3rem 0.5rem; font-size: 0.8rem; }
.filter-toggle { color: #a8b0c0; font-size: 0.8rem; display: flex; align-items: center; gap: 0.25rem; cursor: pointer; }
.filter-toggle input { accent-color: #6ec1e7; }
.filter-stat { margin-left: auto; color: #5d6678; font-size: 0.75rem; font-family: ui-monospace, monospace; }
.board { height: calc(100vh - 96px); }
.comments-list { max-height: 200px; overflow-y: auto; }
.comment { padding: 0.3rem 0; border-bottom: 1px solid #2a2f3a; }
.comment:last-child { border-bottom: none; }
.comment-author { color: #6ec1e7; font-size: 0.7rem; font-family: ui-monospace, monospace; }
.comment-time { color: #5d6678; font-size: 0.65rem; margin-left: 0.4rem; }
.comment-text { color: #c8cdd8; font-size: 0.8rem; margin-top: 0.15rem; white-space: pre-wrap; }
.comment-empty { color: #5d6678; font-size: 0.75rem; padding: 0.3rem 0; }
.comment-form { display: flex; gap: 0.3rem; margin-top: 0.4rem; }
.comment-form input { flex: 1; background: #0f1115; color: #e6e8eb; border: 1px solid #2a2f3a; border-radius: 4px; padding: 0.3rem 0.5rem; font-size: 0.8rem; }
.comment-form input:focus { outline: none; border-color: #6ec1e7; }
