:root {
  font-family: 'Inter', 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
  color: #182e29;
  background: #f5f7f6;
  font-synthesis: none;
  --ink: #162e27;
  --green: #087456;
  --green-dark: #075d47;
  --line: #dce4df;
  --muted: #536860;
  --wash: #edf6f1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d39224;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  color: inherit;
}
svg {
  display: block;
}
.top {
  background: white;
  border-bottom: 1px solid var(--line);
}
.top-inner,
main,
footer {
  width: min(1192px, calc(100% - 84px));
  margin: auto;
}
.top-inner {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 35px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.34rem;
  letter-spacing: -0.065em;
  color: var(--ink);
  font-weight: 800;
}
.nav-active {
  font-size: 0.92rem;
  font-weight: 650;
  border-left: 1px solid #d7dfda;
  padding-left: 30px;
  color: #4d6259;
}
.guide-button,
.text-btn,
.x {
  border: 0;
  background: transparent;
}
.guide-button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.89rem;
  font-weight: 650;
  color: #445d53;
  padding: 8px 0;
}
.question {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  font-size: 0.8rem;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 48px 0 28px;
}
.kicker,
.demo-kicker {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 750;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 9px;
}
.kicker i {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--green);
}
h1 {
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  line-height: 1.23;
  letter-spacing: -0.08em;
  margin: 8px 0 11px;
}
.lead {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: -0.035em;
}
.btn {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  min-height: 43px;
  padding: 9px 17px;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: -0.025em;
}
.white {
  background: white;
  border: 1px solid #bdcdc4;
}
.white:hover {
  background: #f1f7f2;
  border-color: #89a397;
}
.primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
}
.primary:hover {
  background: var(--green-dark);
}
.primary:disabled {
  background: #dce6df;
  border-color: #dce6df;
  color: #5c6c63;
}
.wide {
  width: 100%;
  min-height: 48px;
}
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 2px 4px #19362705;
}
.files-panel {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}
.panel-heading,
.demo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.055em;
  line-height: 1.45;
}
.local-tag,
.foot-local {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #4d675b;
  font-size: 0.8rem;
  font-weight: 600;
}
.local-tag svg {
  width: 14px;
}
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 12px;
}
.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 164px;
  padding: 14px 8px;
  border: 1.5px dashed #b6c9bf;
  border-radius: 10px;
  background: #fbfcfb;
  cursor: pointer;
  text-align: center;
}
.drop:hover,
.drop.over,
.drop:focus-within {
  border-color: var(--green);
  background: #f1f8f4;
}
.drop input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.drop.loaded {
  border-style: solid;
  background: #f6faf7;
  border-color: #a2c8b3;
}
.file-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 3px;
}
.sheet-icon {
  color: #178255;
  background: #e7f4e9;
}
.pdf-icon {
  color: #b66a3c;
  background: #fcf0e5;
}
.file-icon svg {
  width: 23px;
  height: 23px;
}
.drop strong {
  font-size: 1rem;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.file-kind {
  color: var(--muted);
  font-size: 0.77rem;
}
.pick-label {
  font-size: 0.81rem;
  font-weight: 650;
  color: #376353;
  margin-top: 3px;
}
.drop-hint,
.demo-footer p,
.scope-grid p,
.small {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
  letter-spacing: -0.025em;
}
.options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: auto 0 13px;
  padding-top: 16px;
}
.options label {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.options input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}
.text-btn {
  font-size: 0.89rem;
  color: var(--green);
  font-weight: 700;
  padding: 4px;
}
.text-btn:hover {
  text-decoration: underline;
}
.notice,
.link-warning {
  padding: 12px 14px;
  background: #fff3de;
  color: #775010;
  border-radius: 7px;
  font-size: 0.91rem;
  line-height: 1.55;
  margin: 0 0 12px;
}
.demo-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.demo-title {
  padding: 20px 23px 14px;
}
.demo-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: #60786a;
  margin-bottom: 3px;
}
.count-tag,
.pill {
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.count-tag {
  background: #eef3ef;
  color: #435a4d;
}
.artboard {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 175px;
  flex: 1;
  display: grid;
  place-items: center;
  background-color: #d4eadd;
  background-image: radial-gradient(#a8cdb8 1px, transparent 1px);
  background-size: 9px 9px;
  border-block: 1px solid #cde1d3;
}
.axis {
  position: absolute;
  border: 1px dashed #83ac92;
  opacity: 0.48;
}
.ax1 {
  height: 100%;
  left: 16%;
}
.ax2 {
  width: 100%;
  top: 75%;
}
.sample-art {
  position: relative;
  width: min(57%, 242px);
  transform: rotate(-7deg);
  box-shadow: 5px 8px 0 #60866b24;
}
.sample-art img {
  width: 100%;
  height: auto;
  display: block;
}
.focus-bracket {
  position: absolute;
  left: 57.8%;
  top: 62%;
  width: 33%;
  height: 26%;
  background: #ffb13e13;
}
.mono {
  font-family: Consolas, monospace;
}
.focus-bracket b {
  width: 10px;
  height: 10px;
  position: absolute;
  border: 2px solid #ab5e17;
}
.focus-bracket b:nth-child(1) {
  left: 0;
  top: 0;
  border-right: 0;
  border-bottom: 0;
}
.focus-bracket b:nth-child(2) {
  right: 0;
  top: 0;
  border-left: 0;
  border-bottom: 0;
}
.focus-bracket b:nth-child(3) {
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
}
.focus-bracket b:nth-child(4) {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
}
.demo-footer {
  padding: 14px 22px 17px;
}
.downloads,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.downloads {
  gap: 18px;
  margin-top: 7px;
}
.downloads a {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 0.84rem;
  text-decoration: none;
  font-weight: 700;
}
.downloads a:hover {
  text-decoration: underline;
}
.downloads svg {
  width: 15px;
  height: 15px;
}
.inspection-scope {
  margin: 28px 0 34px;
}
.inspection-scope > h2 {
  font-size: 1.02rem;
  margin-bottom: 12px;
}
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.scope-grid article {
  display: flex;
  align-items: center;
  gap: 13px;
  background: white;
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 10px;
}
.scope-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  background: #eff4f0;
  color: #4c6c58;
  border-radius: 8px;
}
h3 {
  font-size: 0.97rem;
  letter-spacing: -0.04em;
}
.scope-grid p {
  font-size: 0.82rem;
  margin-top: 3px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0 28px;
  border-top: 1px solid var(--line);
  color: #64756c;
  font-size: 0.79rem;
}
footer div span {
  margin: 0 6px;
}
.foot-local {
  font-size: 0.76rem;
  font-weight: 500;
}
.foot-local i,
.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.working {
  margin: 55px auto;
  text-align: center;
  padding: 60px 20px;
}
.working h1 {
  font-size: 1.8rem;
}
.working p {
  color: var(--muted);
  margin: 12px;
}
.working progress {
  display: block;
  margin: 20px auto;
  width: min(360px, 95%);
  accent-color: var(--green);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #d7e9dd;
  border-top-color: var(--green);
  border-radius: 50%;
  margin: auto;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 19px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}
.stat strong {
  font-size: 1.65rem;
  letter-spacing: -0.055em;
  color: var(--ink);
}
.stat.active {
  background: #e8f4ec;
  border-color: #72a98b;
  box-shadow: inset 0 0 0 1px #72a98b;
}
.result-grid {
  display: grid;
  grid-template-columns: minmax(245px, 0.85fr) minmax(0, 1.8fr);
  gap: 16px;
  margin-bottom: 30px;
  align-items: start;
}
.list-panel,
.detail-panel {
  overflow: hidden;
}
.list-panel .panel-heading,
.detail-head {
  padding: 19px 19px 13px;
}
.search-wrap {
  margin: 0 15px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.search-wrap svg {
  color: #69796f;
  width: 16px;
}
.search-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  font-size: 0.9rem;
}
.row-list {
  max-height: 650px;
  overflow-y: auto;
}
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  text-align: left;
}
.result-row:hover,
.result-row.selected {
  background: #eef6f0;
}
.result-row.selected {
  box-shadow: inset 3px 0 var(--green);
}
.result-row strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.5;
}
.result-row small,
.detail-head small {
  font-family: Consolas, monospace;
  color: #687870;
  font-size: 0.78rem;
}
.pill.diff {
  background: #ffede6;
  color: #a13f20;
}
.pill.review {
  background: #fff3d9;
  color: #865c11;
}
.pill.ok {
  background: #e7f3eb;
  color: #226849;
}
.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.detail-head h2 {
  margin-top: 2px;
}
.detail-file {
  margin: 0 19px 13px;
  overflow-wrap: anywhere;
}
.compare {
  display: grid;
  grid-template-columns: 0.6fr 1.1fr 1.1fr 0.65fr;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  text-align: left;
  width: 100%;
  overflow-wrap: anywhere;
}
.compare.header {
  background: #f3f6f3;
  color: #576a60;
  font-size: 0.77rem;
}
.check-row {
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  font-size: 0.88rem;
  min-height: 46px;
}
.check-row.active {
  background: #f9f7ed;
  box-shadow: inset 3px 0 #aa7627;
}
.check-row:disabled {
  cursor: default;
}
.check-row .pill {
  justify-self: start;
}
.proof-section {
  padding: 14px 18px 18px;
}
.proof-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.proof-title h3 {
  font-size: 0.92rem;
}
.proof-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 15px;
  background: #eaf0eb;
  border: 1px solid #dae4da;
  border-radius: 8px;
}
.canvas-frame {
  display: block;
  position: relative;
  max-width: 100%;
  box-shadow: 0 1px 5px #2843312a;
}
.canvas-frame canvas {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 365px;
  object-fit: contain;
}
.bbox {
  position: absolute;
  pointer-events: none;
  outline: 2.5px solid #d06527;
  background: #ffaf3b2b;
  box-shadow: 0 0 0 1px #fff7;
}
.bbox.ok {
  outline-color: #17835f;
  background: #2ca86d18;
}
.proof-stage.large {
  min-height: 0;
  padding: 8px;
}
.proof-stage.large canvas {
  max-height: none;
}
.empty {
  padding: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
.link-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.file-digest {
  display: flex;
  gap: 4px 12px;
  flex-wrap: wrap;
  font-size: 0.81rem;
  line-height: 1.7;
  color: #496052;
}
.digest-name {
  overflow-wrap: anywhere;
}
.form-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.5fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}
.form-row label {
  font-size: 0.9rem;
  font-weight: 650;
}
.form-row select,
.form-row input {
  padding: 9px 10px;
  color: var(--ink);
  border: 1px solid #b9cbbf;
  border-radius: 6px;
  background: white;
  max-width: 100%;
  min-width: 0;
}
.form-row select {
  appearance: none;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23375044' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  padding-right: 28px;
}
.dialog-body {
  padding: 22px;
}
.dialog-body > .panel-heading {
  margin-bottom: 15px;
}
.dialog-body .actions {
  margin-top: 18px;
  justify-content: flex-end;
}
.dialog-body h3 {
  font-size: 1.02rem;
  margin-top: 16px;
}
.dialog-body p,
.dialog-body li {
  line-height: 1.7;
  color: var(--muted);
  font-size: 0.92rem;
}
.dialog-body ol {
  padding-left: 21px;
}
.dialog-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}
dialog {
  width: min(540px, calc(100% - 24px));
  max-height: 88vh;
  max-height: 88dvh;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 18px 80px #102d2138;
}
dialog::backdrop {
  background: #172c2580;
}
dialog.zoom {
  width: min(920px, calc(100% - 24px));
}
.x {
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.x:hover {
  background: var(--wash);
}
.spaced {
  margin-top: 10px;
}
.file-local-error {
  padding: 20px;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .top-inner,
  main,
  footer {
    width: calc(100% - 40px);
  }
  .setup-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(245px, 1fr);
    gap: 14px;
  }
  .files-panel {
    padding: 19px;
  }
  .scope-grid article {
    padding: 13px;
    gap: 8px;
  }
  .scope-icon {
    flex-basis: 29px;
    height: 32px;
  }
  .result-grid {
    grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.5fr);
  }
}
@media (max-width: 680px) {
  .top-inner,
  main,
  footer {
    width: calc(100% - 28px);
  }
  .top-inner {
    height: 60px;
    gap: 13px;
  }
  .nav-active {
    display: none;
  }
  .brand {
    font-size: 1.18rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin: 30px 0 19px;
  }
  .title-row h1 {
    margin: 8px 0;
    font-size: 2.1rem;
  }
  .lead {
    font-size: 0.93rem;
  }
  .setup-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }
  .files-panel {
    padding: 17px;
  }
  .upload-grid {
    margin-top: 15px;
    gap: 8px;
  }
  .drop {
    min-height: 145px;
  }
  .scope-grid {
    grid-template-columns: 1fr;
  }
  .scope-grid article {
    padding: 12px;
  }
  .inspection-scope {
    margin: 19px 0;
  }
  .demo-title {
    padding: 15px 17px 12px;
  }
  .artboard {
    min-height: 155px;
  }
  .demo-footer {
    padding: 12px 17px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
  .stat {
    min-height: 52px;
  }
  .row-list {
    max-height: 260px;
  }
  .result-grid {
    gap: 12px;
  }
  .compare {
    padding: 9px 10px;
    gap: 5px;
    font-size: 0.79rem;
  }
  .compare .pill {
    font-size: 0.68rem;
    padding: 3px 5px;
  }
  .proof-section {
    padding: 12px;
  }
  .foot-local {
    display: none;
  }
  .scope-grid p {
    font-size: 0.85rem;
  }
  .dialog-body {
    padding: 16px;
  }
  .working {
    padding: 35px 14px;
  }
  .actions .btn {
    min-height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
