/*!************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/styles.css ***!
  \************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --line: #d8dee8;
  --line-strong: #b8c2d2;
  --text: #171b22;
  --muted: #667085;
  --faint: #98a2b3;
  --accent: #2457c5;
  --accent-strong: #183f91;
  --accent-soft: #eef4ff;
  --ok: #067647;
  --danger: #b42318;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Malgun Gothic", sans-serif;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
  min-height: 38px;
  padding: 9px 14px;
  white-space: nowrap;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

button.secondary {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: #243146;
}

button.secondary:hover {
  background: #f2f4f7;
}

button.ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--danger);
  font-weight: 700;
  min-height: 30px;
  padding: 4px 8px;
}

button.ghost:hover {
  background: #fff1f0;
  border-color: #ffd1cc;
}

button.icon-button {
  font-size: 20px;
  line-height: 1;
  min-height: 34px;
  min-width: 34px;
  padding: 4px 8px;
}

.loading-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.app-shell {
  margin: 0 auto;
  max-width: 1480px;
  min-height: 100vh;
  padding: 18px 22px 92px;
}

.app-header {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 14px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-header h1 {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 20px;
  gap: 10px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.case-pill {
  background: var(--accent-soft);
  border: 1px solid #bfd1ff;
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
}

.header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.header-actions select,
.header-actions .combo-input {
  min-width: 180px;
}

.toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #344054;
  display: inline-flex;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
}

.toggle input {
  height: 16px;
  width: 16px;
}

.file-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: #243146;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  white-space: nowrap;
}

.file-button:hover {
  background: #f2f4f7;
}

.file-button.disabled {
  cursor: wait;
  opacity: 0.55;
}

.file-button input {
  display: none;
}

.workspace {
  align-items: flex-start;
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  grid-template-columns: 210px minmax(0, 1fr);
}

.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  position: -webkit-sticky;
  position: sticky;
  top: 82px;
}

.toc-summary {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  padding: 4px 4px 10px;
}

.toc-summary strong {
  color: var(--accent);
  font-size: 22px;
}

.toc-summary span {
  color: var(--muted);
  font-size: 12px;
}

.toc a {
  align-items: center;
  border-radius: 6px;
  color: #344054;
  display: flex;
  gap: 8px;
  min-height: 31px;
  padding: 6px 7px;
  text-decoration: none;
}

.toc a:hover {
  background: var(--panel-soft);
}

.toc a span {
  color: var(--muted);
  font-size: 12px;
  min-width: 34px;
}

.toc a.done {
  color: var(--ok);
  font-weight: 700;
}

.toc a.done::after {
  color: var(--ok);
  content: "완료";
  font-size: 11px;
  margin-left: auto;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.status {
  background: #fffdf5;
  border: 1px solid #f5d58b;
  border-radius: 8px;
  color: #694100;
  margin: 0;
  min-height: 38px;
  padding: 9px 12px;
}

.status.warning {
  background: #fff6f5;
  border-color: #fecdca;
  color: #912018;
}

.validation-panel {
  align-items: flex-start;
  background: #fff6f5;
  border: 1px solid #fecdca;
  border-radius: 8px;
  color: #912018;
  display: flex;
  gap: 10px;
  padding: 9px 12px;
}

.validation-panel strong {
  line-height: 1.45;
  white-space: nowrap;
}

.validation-panel span {
  line-height: 1.45;
  white-space: normal;
}

.autofill-panel {
  background: #ffffff;
  border-color: var(--line);
  color: #243146;
}

.notice-list {
  display: grid;
  flex: 1 1;
  grid-gap: 6px;
  gap: 6px;
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.notice-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: 136px minmax(0, 1fr);
  line-height: 1.45;
  padding: 7px 9px;
}

.notice-item.success {
  background: #f6fef9;
  border-color: #abefc6;
  color: #067647;
}

.notice-item.warning {
  background: #fff6f5;
  border-color: #fecdca;
  color: #912018;
}

.notice-item.info {
  background: #f5f8ff;
  border-color: #b2ccff;
  color: #175cd3;
}

.notice-title {
  font-weight: 700;
  white-space: nowrap;
}

.notice-detail {
  min-width: 0;
}

.modal-backdrop {
  align-items: center;
  background: rgba(16, 24, 40, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

.review-modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  max-height: min(720px, calc(100vh - 48px));
  max-width: 920px;
  overflow: hidden;
  padding: 16px;
  width: min(920px, 100%);
}

.modal-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.modal-head h2 {
  font-size: 18px;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.modal-head p {
  color: var(--muted);
  margin: 0;
}

.registry-review-table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.registry-review-table th,
.registry-review-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.registry-review-table thead th {
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
}

.registry-review-table tbody th {
  color: #243146;
  font-weight: 800;
  width: 180px;
}

.header-choice {
  align-items: center;
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.header-choice input {
  flex: 0 0 auto;
}

.choice-cell {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  line-height: 1.45;
  min-width: 0;
}

.choice-cell input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.choice-cell span {
  overflow-wrap: anywhere;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.preview-stack {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.preview-pane,
.calc-preview {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.preview-pane strong,
.calc-preview strong {
  color: #344054;
  display: block;
  margin-bottom: 6px;
}

.preview-pane p {
  line-height: 1.6;
  margin: 0;
}

.section-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-margin-top: 90px;
}

.section-head {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.section-head h2 {
  align-items: center;
  display: flex;
  font-size: 16px;
  gap: 8px;
  letter-spacing: 0;
  margin: 0;
}

.section-head h2 span {
  color: var(--accent);
  font-weight: 800;
}

.section-head em {
  color: var(--ok);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.section-note {
  color: var(--muted);
  margin: 0;
  padding: 10px 14px 0;
}

.field-grid {
  display: grid;
  grid-gap: 11px;
  gap: 11px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  padding: 14px;
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.field-grid.four {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.field-grid.six {
  grid-template-columns: repeat(6, minmax(110px, 1fr));
}

.field-grid.address {
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(110px, 0.8fr) minmax(86px, 0.55fr) minmax(70px, 0.45fr);
}

.field-grid.address .field:last-child {
  grid-column: 1 / -1;
}

.field-grid.building {
  grid-template-columns: minmax(260px, 4fr) repeat(3, minmax(90px, 1fr));
}

.field-grid.location {
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(240px, 2fr) minmax(90px, 0.75fr) minmax(120px, 1fr);
}

.field-grid.mixed {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.field-grid.calc {
  grid-template-columns: minmax(180px, 2fr) minmax(240px, 2fr) repeat(4, minmax(100px, 1fr));
}

.field,
.check-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span,
.check-row span {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.field-label {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.autofill-badge {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 999px;
  color: #067647;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 6px;
}

.combo-box {
  min-width: 0;
  position: relative;
  width: 100%;
}

.combo-box .combo-input {
  padding-right: 34px;
}

.combo-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #667085;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 3px;
  width: 28px;
}

.combo-toggle:hover {
  background: #f2f4f7;
  color: #344054;
}

.combo-menu {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  left: 0;
  max-height: 240px;
  overflow: auto;
  padding: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 70;
}

.combo-option {
  background: #fff;
  border: 0;
  border-radius: 4px;
  color: var(--text);
  display: block;
  font-weight: 500;
  min-height: 30px;
  overflow-wrap: anywhere;
  padding: 6px 8px;
  text-align: left;
  white-space: normal;
  width: 100%;
}

.combo-option:hover,
.combo-option.selected {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.combo-empty {
  color: var(--muted);
  padding: 10px 8px;
  text-align: center;
}

.field input,
.field select,
.field .combo-input,
.field textarea,
.header-actions select,
.header-actions .combo-input,
.paste-row textarea,
.data-grid input {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  min-height: 38px;
  outline: none;
  padding: 8px 10px;
  width: 100%;
}

.field textarea,
.paste-row textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field .combo-input:focus,
.field textarea:focus,
.header-actions select:focus,
.header-actions .combo-input:focus,
.reb-strip select:focus,
.reb-strip .combo-input:focus,
.paste-row textarea:focus,
.data-grid input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 87, 197, 0.12);
}

.field.invalid input,
.field.invalid select,
.field.invalid .combo-input,
.field.invalid textarea,
.check-row.invalid {
  border-color: #f97066;
}

.field.auto-filled:not(.invalid) input,
.field.auto-filled:not(.invalid) .combo-input,
.field.auto-filled:not(.invalid) textarea,
.check-row.auto-filled:not(.invalid) {
  background: #f6fef9;
  border-color: #75e0a7;
  box-shadow: inset 3px 0 0 #12b76a;
}

.field em {
  color: var(--danger);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.check-row {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  flex-direction: row;
  min-height: 62px;
  padding: 8px 10px;
}

.check-row input {
  height: 17px;
  width: 17px;
}

.action-strip {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
}

.reb-strip {
  align-items: center;
  display: grid;
  flex: 1 1 100%;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: 110px 170px 140px minmax(140px, 1fr) 160px;
}

.reb-strip select,
.reb-strip .combo-input {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.repeat-box {
  padding: 14px;
}

.repeat-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.repeat-toolbar div {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.repeat-toolbar strong {
  font-size: 15px;
}

.repeat-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.paste-row {
  align-items: stretch;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 128px;
  margin-bottom: 10px;
}

.paste-row button {
  min-height: 100%;
}

.table-scroll {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.data-grid {
  border-collapse: collapse;
  min-width: 1040px;
  width: 100%;
}

.calc-table {
  border-collapse: collapse;
  min-width: 960px;
  width: 100%;
}

.data-grid th,
.calc-table th {
  background: #f8fafc;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #344054;
  font-size: 12px;
  padding: 8px;
  text-align: left;
  white-space: nowrap;
}

.data-grid td,
.calc-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 6px;
  vertical-align: middle;
}

.data-grid th:last-child,
.data-grid td:last-child,
.calc-table th:last-child,
.calc-table td:last-child {
  border-right: 0;
}

.data-grid tr:last-child td,
.calc-table tr:last-child td {
  border-bottom: 0;
}

.calc-table td {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.data-grid input {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 32px;
  padding: 7px 8px;
}

.data-grid input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.data-grid td:has(input) {
  padding: 0;
}

.row-num {
  color: var(--muted);
  text-align: center;
  width: 42px;
}

.row-action {
  text-align: center;
  width: 64px;
}

.derived-cell {
  color: #344054;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  min-width: 110px;
  text-align: right;
  white-space: nowrap;
}

.empty-row {
  color: var(--faint);
  height: 56px;
  text-align: center;
}

.factor-grid {
  display: grid;
  grid-gap: 0;
  gap: 0;
  padding: 14px;
}

.factor-head {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  color: #344054;
  font-weight: 800;
  padding: 9px 10px;
}

.factor-head:nth-child(1) {
  border-radius: 8px 0 0 0;
}

.factor-head:nth-child(3) {
  border-radius: 0 8px 0 0;
}

.factor-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(130px, 1.2fr) minmax(360px, 6fr);
}

.factor-row > * {
  border-bottom: 1px solid #edf0f5;
  padding: 7px;
}

.factor-label {
  align-items: center;
  color: #344054;
  display: flex;
  font-weight: 800;
}

.factor-grid .field span {
  display: none;
}

.factor-product {
  align-items: center;
  background: #fbfcfe;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px;
}

.factor-product span {
  color: var(--muted);
  font-weight: 700;
}

.factor-product strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.bottom-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 220px;
  left: 22px;
  margin: 0 auto;
  max-width: calc(1480px - 44px);
  padding: 10px;
  position: fixed;
  right: 22px;
  z-index: 30;
}

.output-path {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  padding: 8px 10px;
}

.output-path span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.output-path strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .toc {
    display: grid;
    grid-gap: 4px;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: static;
  }

  .toc-summary {
    grid-column: 1 / -1;
  }

  .field-grid,
  .field-grid.three,
  .field-grid.four,
  .field-grid.six,
  .field-grid.address,
  .field-grid.building,
  .field-grid.location,
  .field-grid.mixed,
  .field-grid.calc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-grid.address .field:last-child {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding: 12px 12px 96px;
  }

  .app-header {
    align-items: stretch;
    flex-direction: column;
    position: static;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions > * {
    flex: 1 1 100%;
  }

  .toc {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .field-grid.three,
  .field-grid.four,
  .field-grid.six,
  .field-grid.address,
  .field-grid.building,
  .field-grid.location,
  .field-grid.mixed,
  .field-grid.calc,
  .reb-strip,
  .paste-row,
  .factor-row,
  .bottom-bar {
    grid-template-columns: 1fr;
  }

  .bottom-bar {
    bottom: 8px;
    left: 8px;
    right: 8px;
  }

  .validation-panel {
    flex-direction: column;
  }

  .notice-item {
    grid-template-columns: 1fr;
  }
}

