* { box-sizing: border-box; }
body {
  font-family: "Malgun Gothic", "맑은 고딕", -apple-system, sans-serif;
  margin: 0; background: #f5f6f8; color: #1f2328;
}
.topbar { background: #1f2937; color: #fff; }
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 17px; white-space: nowrap; }
.topbar nav { flex: 1; display: flex; gap: 16px; flex-wrap: wrap; min-width: 0; }
.topbar nav a { color: #cbd5e1; text-decoration: none; font-size: 14px; white-space: nowrap; }
.topbar nav a:hover { color: #fff; }
.user-info { font-size: 13px; color: #cbd5e1; white-space: nowrap; }
.link-button { background: none; border: none; color: #93c5fd; cursor: pointer; font-size: 13px; padding: 0; margin-left: 8px; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

h1 { font-size: 22px; margin-bottom: 4px; }
h2 { font-size: 17px; margin-top: 28px; }
.subtitle { color: #6b7280; font-size: 13px; margin-bottom: 20px; }

.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px;
  margin-bottom: 16px; overflow-x: auto;
}
.ai-summary-card { background: #f8fafc; border-style: dashed; }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
th { background: #f9fafb; font-weight: 600; color: #374151; }
tr:hover td { background: #f9fafb; }
a.row-link { color: inherit; text-decoration: none; display: block; }
a.row-link:hover { color: #2563eb; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-exec { background: #fef3c7; color: #92400e; }
.badge-dept { background: #dbeafe; color: #1e40af; }
.badge-uploaded, .badge-transcribing, .badge-cleaning, .badge-analyzing, .badge-summarizing { background: #f3f4f6; color: #6b7280; }
.badge-done { background: #d1fae5; color: #065f46; }
.badge-failed { background: #fee2e2; color: #991b1b; }
.status-open { background: #fef3c7; color: #92400e; }
.status-in_progress { background: #dbeafe; color: #1e40af; }
.status-done { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #f3f4f6; color: #6b7280; }

form.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
form.filters input, form.filters select { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.field input, .field select, .field textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px;
}
.field textarea { min-height: 100px; }
.field-hint { font-size: 12px; color: #9ca3af; margin: 6px 0 0; }

button, input[type="submit"] {
  background: #2563eb; color: #fff; border: none; padding: 8px 16px; border-radius: 6px;
  font-size: 14px; cursor: pointer;
}
button:hover { background: #1d4ed8; }
button.secondary { background: #6b7280; }

.error { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }

.login-wrap { max-width: 360px; margin: 80px auto; }

.quote { border-left: 3px solid #d1d5db; padding-left: 12px; color: #6b7280; font-style: italic; font-size: 13px; }

.transcript-block { white-space: pre-wrap; line-height: 1.7; font-size: 14px; }

.meta-table { width: auto; }
.meta-table th { width: 80px; background: none; color: #6b7280; padding-left: 0; }
.meta-table td { border-bottom: none; padding-top: 4px; padding-bottom: 4px; }

.directive-list { margin: 0; padding-left: 18px; }
.directive-list li { margin-bottom: 10px; }
.directive-list li:last-child { margin-bottom: 0; }

.progress-log { white-space: pre-line; font-size: 13px; color: #4b5563; }

.material-item { border: 1px solid #e5e7eb; border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; }
.material-item:last-child { margin-bottom: 0; }
.material-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.material-filename { font-weight: 600; font-size: 14px; }
.material-summary { font-size: 13.5px; color: #374151; margin: 6px 0; }
.material-keypoints { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: #4b5563; }
.material-keypoints li { margin-bottom: 4px; }

.content-row { display: grid; grid-template-columns: 160px 1fr; gap: 10px; margin-bottom: 10px; }
.content-row input, .content-row textarea {
  padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit;
}
.content-row textarea { min-height: 44px; resize: vertical; }
@media (max-width: 560px) { .content-row { grid-template-columns: 1fr; } }

/* 안건 입력 카드 -- 회사 PART별 주요현안 양식(주요ISSUE/진행현황/발생일/완료예정일/이행PART/비고)과
   동일한 항목으로 안건을 입력받는다. */
.agenda-item-card {
  border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; margin-bottom: 12px; background: #fafafa;
}
.agenda-item-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.agenda-item-label { display: block; font-size: 11.5px; font-weight: 600; color: #6b7280; margin: 6px 0 3px; }
.agenda-item-card input, .agenda-item-card textarea {
  width: 100%; padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13.5px; font-family: inherit;
}
.agenda-item-card textarea { min-height: 40px; resize: vertical; }
@media (max-width: 560px) { .agenda-item-row { grid-template-columns: 1fr; } }

.finalize-badge { background: #d1fae5; color: #065f46; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; display: inline-block; }
.agenda-card { background: #fffbeb; border-color: #fde68a; }
