body { font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif; margin: 0; background: #f4f7fb; color: #1f2937; font-size: 17px; line-height: 1.5; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.hero h1 { margin: 0 0 8px; font-size: 1.6rem; }
.hero p { color: #64748b; margin: 0 0 20px; }
.dept-layout { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.dept-layout .panel { margin-top: 0; }
.card-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 0; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.card:hover { border-color: #1a73e8; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-desc { margin: 8px 0 0; color: #64748b; }
.badge { font-size: 15px; font-weight: 700; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: #ecfdf5; color: #047857; }
.badge.missing { background: #fef2f2; color: #b91c1c; }
.status-banner { margin-bottom: 0; }
.status-missing { color: #b91c1c; margin: 8px 0 0; }
.status-complete { color: #047857; margin: 8px 0 0; }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.copy-summary-btn {
  flex-shrink: 0;
  box-sizing: border-box;
  /* 기존 버튼 폭의 2배 — flex 우측 정렬로 오른쪽 끝 고정, 왼쪽으로만 확장 */
  min-width: calc(2 * (1.75rem + 2ch));
  padding: 10px 14px;
  text-align: center;
}
.summary-text { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: 0.95rem; line-height: 1.5; resize: vertical; background: #f8fafc; }
.missing-text { color: #b91c1c; }
.inline-help { color: #64748b; font-size: 15px; margin: 8px 0 0; }
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-top: 16px; }
label { display: block; margin-bottom: 12px; font-weight: 600; }
input[type="date"], input[type="text"], input[type="number"] { width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 16px; }
button, .btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; background: #1a73e8; color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; text-decoration: none; font-size: 16px; }
button.secondary, .btn.secondary { background: #eef2ff; color: #1a73e8; }
.msg { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.msg.ok { background: #ecfdf5; color: #047857; }
.msg.err { background: #fef2f2; color: #b91c1c; }
.plan-line { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.plan-line input { flex: 1; }
.plan-line.is-dragging {
  opacity: 0.95;
  background: #eef4ff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
body.plan-lines-dragging { cursor: grabbing; user-select: none; }
body.plan-lines-dragging .plan-line input { pointer-events: none; }
#planLines.is-drop-over { background: rgba(59, 130, 246, 0.06); border-radius: 8px; }
.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
}
.drag-handle:hover { background: #eef2f7; color: #64748b; }
.drag-handle:active { cursor: grabbing; }
.plan-line.is-dragging .drag-handle { cursor: grabbing; }
.top-links { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.top-links .btn:last-child { margin-left: auto; }
.page-desc { color: #64748b; margin: 0 0 16px; line-height: 1.6; }
.dept-settings-table { display: grid; gap: 8px; }
.dept-settings-head,
.dept-settings-row { display: grid; grid-template-columns: 1.2fr 1.6fr 0.6fr auto; gap: 8px; align-items: center; }
.dept-settings-head { font-size: 0.875rem; font-weight: 700; color: #64748b; padding-bottom: 4px; }
.dept-settings-row input[type="number"] { width: 100%; }
.form-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
button.small, .btn.small { min-height: 44px; padding: 8px 10px; font-size: 15px; }
