* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f2f9f5;
  color: #0f172a;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  font-size: 19px;
}

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: 19px;
}

.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: 17px;
  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: 18px;
}

.divider {
  width: 1px;
  height: 14px;
  background: #222;
}

.grade-badge {
  background: #168657;
  color: #ffffff;
  border-radius: 4px;
  padding: 5px 9px;
  font-weight: 700;
  font-size: 18px;
}

.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: 18px;
}

.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: 35px;
  font-weight: 800;
  line-height: 1.2;
}

.title-section p {
  margin: 0;
  font-size: 20px;
  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: 25px;
  font-weight: 800;
}

.step-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #64748b;
  font-size: 20px;
  white-space: nowrap;
  min-width: 0;
}

.step-item span:last-child {
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef3f7;
  color: #7b8a9b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-item.active {
  color: #168657;
  font-weight: 700;
}

.step-item.active .step-circle {
  background: #168657;
  color: #ffffff;
}

.process-right {
  min-width: 0;
}

.upload-panel {
  border: 1.5px dashed #bfd0e5;
  border-radius: 8px;
  background: #fbfdff;
  min-height: 148px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.upload-panel.dragover {
  border-color: #168657;
  background: #f4fbf7;
}

.upload-panel.upload-locked {
  border-color: #d9e5df;
  background: #f8fbff;
  cursor: default;
  pointer-events: none;
}

.upload-panel.upload-locked::after {
  content: "현황판 생성 완료";
  position: absolute;
  top: 10px;
  right: 12px;
  border: 1px solid #168657;
  color: #0f5132;
  background: #ffffff;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.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: 22px;
}

.upload-empty-view span {
  color: #64748b;
  font-size: 19px;
}

.upload-file-list {
  width: 100%;
  color: #334155;
  font-size: 21px;
  line-height: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.upload-file-list ol {
  margin: 0;
  padding-left: 22px;
  display: inline-block;
  text-align: left;
}

.file-muted,
.file-missing {
  color: #94a3b8;
}

.add-file-btn {
  display: block;
  margin: 8px auto 10px;
  border: 0;
  background: transparent;
  color: #334155;
  text-decoration: underline;
  font-size: 20px;
}

.add-file-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none;
}

.loading-view {
  width: 100%;
  min-height: 88px;
  font-size: 24px;
  font-weight: 800;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 16px;
}

.complete-message {
  text-align: center;
  color: #334155;
  font-size: 18px;
  font-weight: 800;
  padding: 10px 0 16px;
}

.primary-btn,
.secondary-btn {
  height: 64px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 21px;
}

.primary-btn {
  width: 100%;
  border: 1px solid #078655;
  background: #078655;
  color: #ffffff;
  font-weight: 800;
}

.secondary-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
}

.primary-btn img,
.secondary-btn img {
  width: 18px;
  height: 18px;
}

.primary-btn img {
  filter: brightness(0) invert(1);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.status-message {
  margin-top: 10px;
  font-size: 18px;
  color: #64748b;
  text-align: center;
  width: 100%;
}

.status-message.success {
  color: #168657;
  font-weight: 700;
}

.status-message.error {
  color: #dc2626;
  font-weight: 700;
}

.dashboard-section {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #e2ebe7;
  border-radius: 12px;
  padding: 22px;
}

.dashboard-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-head h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
}

.dashboard-head span {
  border: 1px solid #168657;
  color: #0f5132;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-list {
  display: flex;
  flex-direction: column;
}

/* 운영 현황판 카드 */
.figma-dashboard-item,
.junggu-widget {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e8eef0;
}

.figma-dashboard-item:last-child,
.junggu-widget:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.figma-dashboard-title,
.junggu-widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

.figma-dashboard-title img,
.junggu-widget-title img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.junggu-widget-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.junggu-widget-title {
  margin-bottom: 0;
}

.junggu-widget-count {
  color: #667c9f;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.figma-dashboard-body,
.junggu-widget-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.figma-metric-row,
.junggu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 24px;
  column-gap: 24px;
}

.figma-metric-label,
.junggu-row-name {
  color: #0f172a;
  font-size: 19px;
  font-weight: 700;
}

.figma-metric-value,
.junggu-row-desc {
  color: #0f172a;
  font-size: 19px;
  font-weight: 500;
}

.figma-metric-value strong {
  font-size: 21px;
  font-weight: 800;
}

.figma-metric-value span {
  margin-left: 6px;
  font-size: 17px;
  color: #0f172a;
}

.widget-empty {
  min-height: 60px;
  color: #94a3b8;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figma-dashboard-log,
.widget-log {
  text-align: right;
  margin-top: 18px;
  color: #8da0b7;
  font-size: 11px;
}

.figma-card-reset-btn,
.card-reset-btn {
  width: 100%;
  height: 34px;
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 5px;
  color: #334155;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.upload-panel.upload-locked {
  border-color: #d9e5df;
  background: #f8fbff;
  cursor: default;
  pointer-events: none;
}

.upload-panel.upload-locked::after {
  content: "현황판 생성 완료";
  position: absolute;
  top: 10px;
  right: 12px;
  border: 1px solid #168657;
  color: #0f5132;
  background: #ffffff;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.upload-file-list {
  justify-content: flex-start;
  text-align: left;
}

.upload-file-list ol {
  margin-left: 0;
  margin-right: auto;
}

/* dashboardSection 전체 가운데 정렬 */
#dashboardSection {
  text-align: center;
}

#dashboardSection .dashboard-head {
  justify-content: center;
  position: relative;
}

#dashboardSection .dashboard-head span {
  position: absolute;
  right: 0;
}

#dashboardSection .dashboard-list {
  align-items: center;
}

#dashboardSection .junggu-widget,
#dashboardSection .figma-dashboard-item {
  width: 100%;
  text-align: center;
}

#dashboardSection .junggu-widget-title,
#dashboardSection .figma-dashboard-title {
  justify-content: center;
}

#dashboardSection .junggu-widget-head {
  justify-items: center;
}

#dashboardSection .junggu-widget-count {
  position: absolute;
  right: 0;
}

#dashboardSection .junggu-widget-head {
  position: relative;
}

#dashboardSection .junggu-widget-body,
#dashboardSection .figma-dashboard-body {
  align-items: center;
}

#dashboardSection .junggu-row,
#dashboardSection .figma-metric-row {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

#dashboardSection .junggu-row-name,
#dashboardSection .junggu-row-desc,
#dashboardSection .figma-metric-label,
#dashboardSection .figma-metric-value {
  text-align: center;
}

#dashboardSection .widget-log,
#dashboardSection .figma-dashboard-log {
  text-align: center;
}