:root {
  font-family: "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: #152238;
  background: #edf3f5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, #dceff0 0, transparent 35%), #edf3f5;
}
.shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8vh 0 56px;
}
.panel {
  width: min(650px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 54px);
  background: #fff;
  border: 1px solid #d9e5e7;
  box-shadow: 0 24px 60px #1b3a4514;
}
.eyebrow {
  margin: 0 0 12px;
  color: #117c80;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}
.lead {
  margin: 0 0 32px;
  color: #61727a;
  line-height: 1.75;
}
.file-field {
  display: block;
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed #a8bec1;
  background: #f7fbfb;
  cursor: pointer;
}
.file-title,
.file-help,
.file-name {
  display: block;
}
.file-title {
  font-weight: 800;
}
.file-help,
.file-name {
  margin-top: 5px;
  color: #73858a;
  font-size: 13px;
}
.file-name {
  color: #117c80;
  overflow-wrap: anywhere;
}
input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
button,
.primary {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.primary {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 18px;
  color: #fff;
  background: #117c80;
  text-decoration: none;
}
.primary:hover {
  background: #0c6266;
}
.primary:disabled {
  cursor: wait;
  opacity: 0.55;
}
.primary.download {
  margin-top: 0;
  white-space: nowrap;
}
.footnote,
.muted {
  color: #73858a;
  font-size: 13px;
  line-height: 1.6;
}
.message {
  margin: 0 0 18px;
  padding: 13px;
  line-height: 1.5;
}
.error {
  color: #a52b31;
  background: #fff1f0;
}
.progress-track {
  height: 14px;
  margin-top: 32px;
  background: #e5eeee;
  overflow: hidden;
}
#progress-fill {
  width: 10%;
  height: 100%;
  background: #117c80;
  transition: width 0.4s ease;
}
.progress-percent {
  color: #117c80;
  font-weight: 800;
  text-align: right;
}
.result-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  padding: clamp(20px, 4vw, 30px);
  background: #fff;
  border: 1px solid #d9e5e7;
  box-shadow: 0 14px 35px #1b3a450e;
}
h2 {
  margin: 0 0 20px;
  font-size: 21px;
}
h3 {
  margin: 28px 0 10px;
  font-size: 15px;
  color: #52666c;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: #dce8e9;
  border: 1px solid #dce8e9;
}
.profile-item {
  min-width: 0;
  padding: 14px;
  background: #fff;
}
.profile-item span {
  display: block;
  margin-bottom: 5px;
  color: #73858a;
  font-size: 12px;
}
.profile-item strong {
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid #e5eeee;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #73858a;
  font-size: 12px;
}
.long,
.document {
  padding: 16px;
  white-space: pre-wrap;
  overflow: auto;
  line-height: 1.75;
}
.long {
  max-height: 300px;
  background: #f7fbfb;
}
.document {
  max-height: 520px;
  background: #fffdf6;
  border: 1px solid #eee8d8;
}
.text-button {
  padding: 0;
  color: #117c80;
  background: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 980px);
    padding-top: 28px;
  }
  .result-header {
    align-items: start;
    flex-direction: column;
  }
  .primary.download {
    margin-top: 0;
  }
}
