* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f2f9f5;
  color: #0f172a;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
a {
  font-family: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  background: #f2f9f5;
}

.sidebar {
  width: 220px;
  min-width: 220px;
  min-height: 100vh;
  background: #ffffff;
  border-right: 1px solid #eef2f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px 20px;
}

.logo-box {
  padding: 0 12px 22px;
}

.logo-box img {
  width: 96px;
  display: block;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 12px;
  color: #222;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.side-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.side-link.active {
  background: #168657;
  color: #ffffff;
  font-weight: 700;
}

.side-link.active img {
  filter: brightness(0) invert(1);
}

.side-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #dfe7e3;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  background: #ffffff;
}

.contact-box img {
  width: 20px;
  height: 20px;
}

.contact-box strong {
  display: block;
  margin-bottom: 6px;
}

.contact-box p {
  margin: 0;
  color: #333;
}

.main-area {
  flex: 1;
  min-width: 0;
}

.topbar {
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #eef2f0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 18px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.divider {
  width: 1px;
  height: 14px;
  background: #222;
}

.grade-badge {
  background: #168657;
  color: #ffffff;
  border-radius: 4px;
  padding: 5px 9px;
  font-weight: 700;
  font-size: 13px;
}

.alert-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  border: 1px solid #c96a2c;
  color: #b85115;
  background: #fff8f3;
  border-radius: 4px;
  padding: 0 10px;
  font-weight: 600;
  font-size: 13px;
}

.alert-badge img {
  width: 14px;
  height: 14px;
}

.content {
  width: 100%;
  max-width: 1440px;
  padding: 22px 18px 60px;
}

.title-section {
  margin-bottom: 24px;
}

.title-section h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.title-section p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.process-card {
  background: #ffffff;
  border: 1px solid #e2ebe7;
  border-radius: 14px;
  padding: 26px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
}

.process-left h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 15px;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef3f7;
  color: #7b8a9b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-item.active {
  color: #168657;
  font-weight: 700;
}

.step-item.active .step-circle {
  background: #168657;
  color: #ffffff;
}

.file-panel {
  border: 1.5px dashed #bfd0e5;
  border-radius: 8px;
  background: #fbfdff;
  min-height: 74px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-panel.dragover {
  border-color: #168657;
  background: #f4fbf7;
}

.required-panel {
  display: block;
  margin-top: 10px;
  min-height: 148px;
}

.required-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.upload-empty-view {
  text-align: center;
}

.upload-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
}

.upload-empty-view p {
  margin: 0 0 6px;
  color: #334155;
  font-size: 17px;
}

.upload-empty-view span {
  color: #64748b;
  font-size: 14px;
}

.file-list-view {
  width: 100%;
  color: #334155;
  font-size: 16px;
  line-height: 1.8;
}

.file-list-view ol {
  margin: 0;
  padding-left: 22px;
}

.file-muted {
  color: #94a3b8;
}

.add-file-btn {
  display: block;
  margin: 8px auto 10px;
  border: 0;
  background: transparent;
  color: #334155;
  text-decoration: underline;
  font-size: 15px;
}

.processing-message,
.complete-message {
  text-align: center;
  color: #334155;
  font-size: 24px;
  font-weight: 800;
  padding: 10px 0 16px;
}

.complete-message {
  font-size: 18px;
}

.primary-btn {
  width: 100%;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #078655;
  background: #078655;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.primary-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.secondary-btn {
  height: 38px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.secondary-btn img {
  width: 18px;
  height: 18px;
}

.download-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.download-main-btn {
  height: 38px;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.download-main-btn.excel {
  background: #078655;
}

.download-main-btn.word {
  background: #163bd8;
}

.download-main-btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.status-message {
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
}

.status-message.success {
  color: #168657;
  font-weight: 700;
}

.status-message.error {
  color: #dc2626;
  font-weight: 700;
}

.preview-section {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #e2ebe7;
  border-radius: 12px;
  overflow: hidden;
}

.preview-head {
  min-height: 54px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.preview-complete-badge {
  border: 1px solid #168657;
  color: #0f5132;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.preview-empty {
  height: 230px;
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 13px;
}

.preview-empty img {
  width: 32px;
  height: 32px;
  opacity: 0.45;
}

.preview-empty p {
  margin: 0;
}

.preview-frame {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}

.upload-history-section {
  margin-top: 24px;
}

.history-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.history-title-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.history-count-badge {
  border: 1px solid #168657;
  color: #168657;
  background: #ffffff;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.history-table-wrap {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.history-table th {
  height: 38px;
  background: #f8fafc;
  color: #222;
  font-weight: 800;
  border-bottom: 1px solid #e8efeb;
}

.history-table td {
  height: 38px;
  border-bottom: 1px solid #edf2f0;
  text-align: center;
  color: #222;
}

.history-table td:nth-child(4) {
  text-align: center;
  padding-left: 12px;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 9px;
  background: #168657;
  color: #ffffff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.download-btn {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #168657;
  background: #ffffff;
  color: #168657;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.history-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  font-size: 14px;
}

.history-pagination button {
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #111827;
}

.history-pagination button.active {
  color: #168657;
  font-weight: 800;
}

.history-pagination .page-arrow {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.history-pagination .page-arrow img {
  width: 24px;
  height: 24px;
  display: block;
}

.hidden {
  display: none !important;
}
body {
  font-size: 19px;
}

.side-link {
  font-size: 19px;
}

.contact-box {
  font-size: 17px;
}

.user-info {
  font-size: 18px;
}

.grade-badge,
.alert-badge {
  font-size: 18px;
}

.title-section h1 {
  font-size: 35px;
}

.title-section p {
  font-size: 20px;
}

.process-left h2 {
  font-size: 25px;
}

.step-item {
  font-size: 20px;
}

.step-circle {
  font-size: 17px;
}

.upload-empty-view p {
  font-size: 22px;
}

.upload-empty-view span {
  font-size: 19px;
}

.file-list-view {
  font-size: 21px;
}

.add-file-btn {
  font-size: 20px;
}

.primary-btn,
.secondary-btn,
.download-main-btn {
  font-size: 21px;
  height: 64px;
}

.status-message {
  text-align: center;
  width: 100%;
  font-size: 18px;
}

.preview-head h2,
.history-title-row h2 {
  font-size: 27px;
}

.preview-empty {
  font-size: 18px;
}

.history-table {
  font-size: 20px;
}

.history-count-badge {
  font-size: 17px;
}

.level-badge,
.download-btn {
  font-size: 19px;
}
.step-list {
  width: 100%;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  min-width: 0;
}

.step-item span:last-child {
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-table th,
.history-table td {
  text-align: center;
  vertical-align: middle;
}

.history-table td {
  padding: 14px 10px;
}

.history-table .download-btn {
  margin: 0 auto;
}
.step-item {
  color: #64748b !important;
  font-weight: 400 !important;
}

.step-item .step-circle {
  background: #eef3f7 !important;
  color: #7b8a9b !important;
}

.step-item.active {
  color: #168657 !important;
  font-weight: 700 !important;
}

.step-item.active .step-circle {
  background: #168657 !important;
  color: #ffffff !important;
}