:root {
  --ink: #172736; --navy: #173a5e; --blue: #1565c0; --blue-soft: #edf5ff;
  --red: #c62828; --red-soft: #fff0f0; --teal: #087f78; --paper: #f4f7fa;
  --white: #ffffff; --line: #cad5df; --muted: #687887; --warning: #fff7dd;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Pretendard", "Apple SD Gothic Neo", Inter, ui-sans-serif, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; } button { cursor: pointer; } [hidden] { display: none !important; }
.shell { width: min(1500px, calc(100% - 44px)); margin: 0 auto; padding: 26px 0 44px; }
.masthead { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--navy); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand > span:last-child { display: grid; gap: 1px; }.brand small, .kicker { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .14em; }
.brand strong { font-size: 1.05rem; letter-spacing: -.035em; }.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); align-items: end; gap: 3px; width: 31px; height: 31px; padding: 6px; background: var(--navy); }
.brand-mark i { display: block; height: 18px; background: white; }.brand-mark i:nth-child(2) { height: 11px; }.brand-mark i:nth-child(3) { height: 15px; }
.phase-badge { padding: 7px 10px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: .72rem; font-weight: 750; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; padding: 56px 0 42px; }.kicker { margin: 0 0 12px; color: var(--blue); }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 0; max-width: 800px; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.05; letter-spacing: -.07em; }
.hero-copy { max-width: 46ch; margin-bottom: 3px; color: var(--muted); line-height: 1.75; }
.upload-panel { padding: 28px; border: 1px solid var(--line); background: var(--white); box-shadow: 10px 10px 0 #dfe8ef; }
.panel-heading, .result-heading, .progress-copy { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.panel-heading > div, .result-heading > div:first-child, .progress-copy > div { display: flex; align-items: center; gap: 12px; }
.panel-heading h2, .result-heading h2, .progress-copy h2 { margin: 0; font-size: 1.18rem; letter-spacing: -.04em; }.panel-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.step-number { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--navy); color: white; font-size: .7rem; font-weight: 800; }
.comparison-form { display: grid; grid-template-columns: 1fr 56px 1fr 190px; gap: 16px; align-items: stretch; margin-top: 24px; }
.file-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 7px 18px; min-height: 152px; padding: 22px; border: 1px dashed #8ca0b2; background: #f9fbfd; cursor: pointer; transition: border-color .16s ease, transform .16s ease; }
.file-card:hover { border-color: var(--blue); transform: translateY(-2px); }.proposed-card { background: #f4f9ff; border-color: #78a5d5; }
.file-card input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }.file-role { color: var(--blue); font-size: .7rem; font-weight: 850; letter-spacing: .1em; }
.file-card strong { grid-column: 1 / -1; font-size: 1.08rem; }.file-name { align-self: end; min-width: 0; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }.choose-file { align-self: end; color: var(--navy); font-size: .75rem; font-weight: 800; }
.compare-axis { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; gap: 8px; color: var(--muted); }.compare-axis span { width: 1px; height: 100%; background: var(--line); }.compare-axis b { font-size: .65rem; }
.primary-action, .download-action { border: 0; background: var(--navy); color: white; font-weight: 800; }.primary-action { padding: 20px; }.primary-action:hover, .download-action:hover { background: var(--blue); }.primary-action:disabled { opacity: .55; cursor: wait; }
.upload-notes { display: flex; gap: 8px; margin-top: 16px; }.upload-notes span { padding: 5px 8px; background: #edf1f4; color: var(--muted); font-size: .68rem; font-weight: 700; }
.progress-panel { margin-top: 38px; padding: 27px 30px; border: 1px solid var(--line); background: var(--white); }.progress-copy strong { color: var(--blue); font-size: 1.3rem; }
.progress-track { height: 8px; margin-top: 22px; overflow: hidden; background: #dfe7ee; }.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); transition: width .35s ease; }.progress-panel > p { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.empty-state { display: grid; place-items: center; min-height: 210px; margin-top: 36px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }.empty-sheet { display: grid; gap: 8px; width: 54px; padding: 16px 11px; border: 1px solid #9babb9; background: white; box-shadow: 6px 6px 0 #dfe7ed; }.empty-sheet span { height: 2px; background: #b7c4ce; }.empty-state p { margin: 24px 0 0; }
.result-panel { margin-top: 48px; }.result-heading { padding: 22px 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); }.result-heading > div:first-child { flex-wrap: wrap; }.result-heading p { width: 100%; margin: 0 0 0 42px; color: var(--muted); font-size: .76rem; }
.result-actions { display: flex; gap: 8px; }.quiet-action, .download-action { min-height: 42px; padding: 0 15px; }.quiet-action { border: 1px solid var(--line); background: white; color: var(--navy); font-weight: 750; }.quiet-action:hover { border-color: var(--blue); color: var(--blue); }
.warning-list { margin: 16px 0; padding: 11px 14px; border-left: 3px solid #dba82d; background: var(--warning); }.warning-list p { margin: 3px 0; color: #695211; font-size: .72rem; }
.table-head { display: grid; grid-template-columns: 1.3fr 2.5fr 2.5fr .55fr .8fr 88px; gap: 1px; margin-top: 18px; background: var(--line); }.table-head span { padding: 11px 10px; background: #dce8f2; color: var(--navy); font-size: .7rem; font-weight: 850; text-align: center; }
.change-rows { display: grid; gap: 10px; margin-top: 10px; }.change-row { position: relative; display: grid; grid-template-columns: 1.3fr 2.5fr 2.5fr .55fr .8fr 88px; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.change-row > label, .row-actions { min-width: 0; padding: 11px; background: white; }.change-row label > span { display: none; }.row-index { position: absolute; left: -29px; top: 12px; color: #9aa8b4; font: 700 .62rem ui-monospace, monospace; }
.change-row input, .change-row select, .change-row textarea { width: 100%; border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--ink); font-size: .74rem; }.change-row input:focus, .change-row select:focus, .change-row textarea:focus { border-color: var(--blue); background: white; outline: 2px solid #cfe3fa; }
.part-cell { display: grid; gap: 7px; align-content: start; }.part-cell input:first-of-type { color: var(--navy); font-weight: 850; }.part-cell input:nth-of-type(2) { color: var(--muted); }.part-cell select { margin-top: 5px; padding: 5px; background: #eef3f7; }
.text-cell textarea { display: block; min-height: 110px; padding: 8px; resize: vertical; line-height: 1.55; white-space: pre-wrap; }.before-cell textarea { color: var(--red); background: var(--red-soft); }.after-cell textarea { color: var(--blue); background: var(--blue-soft); }
.page-cell, .status-cell { display: grid; align-content: center; }.page-cell input { padding: 8px 3px; text-align: center; }.status-cell select { padding: 8px 3px; }.row-actions { display: grid; gap: 7px; align-content: center; }.row-actions button { border: 1px solid var(--line); padding: 7px 5px; background: white; color: var(--navy); font-size: .68rem; font-weight: 750; }.row-actions button:last-child { color: var(--red); }.row-actions button:hover { border-color: currentColor; }
.save-message { min-height: 22px; margin: 14px 0 0; color: var(--teal); font-size: .78rem; font-weight: 750; }.no-changes { padding: 34px; border: 1px solid var(--line); background: white; color: var(--muted); text-align: center; }.error-panel { margin-top: 22px; padding: 15px; border-left: 4px solid var(--red); background: var(--red-soft); color: #7d2020; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .68rem; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .file-card:focus-within { outline: 3px solid #8bc0f2; outline-offset: 2px; }
@media (max-width: 980px) {
  .comparison-form { grid-template-columns: 1fr 40px 1fr; }.primary-action { grid-column: 1 / -1; min-height: 54px; }.table-head { display: none; }.change-row { grid-template-columns: 1fr 1fr; }.change-row label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .65rem; font-weight: 800; }.row-actions { grid-template-columns: 1fr 1fr; }.row-index { display: none; }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 650px); padding-top: 16px; }.phase-badge { display: none; }.hero { grid-template-columns: 1fr; gap: 22px; padding: 38px 0 30px; } h1 { font-size: 2.3rem; }.upload-panel { padding: 18px; box-shadow: 6px 6px 0 #dfe8ef; }.panel-heading, .result-heading, .progress-copy { align-items: flex-start; flex-direction: column; }.panel-heading p { margin-left: 42px; }.comparison-form { grid-template-columns: 1fr; }.compare-axis { display: none; }.file-card { min-height: 135px; }.result-actions { width: 100%; flex-wrap: wrap; }.result-actions button { flex: 1; }.change-row { grid-template-columns: 1fr; }.result-heading p { margin-left: 42px; }.row-actions { grid-template-columns: 1fr 1fr; }.upload-notes { flex-wrap: wrap; } footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
