:root {
  --ink: #102033;
  --muted: #5c6878;
  --line: rgba(16, 32, 51, 0.12);
  --surface: #ffffff;
  --surface-cool: #eef8f7;
  --blue: #1573ff;
  --blue-deep: #0759d1;
  --mint: #20c9a7;
  --coral: #ff6d4a;
  --yellow: #ffd86a;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: #f7fbfd;
}

body::selection {
  background: rgba(32, 201, 167, 0.28);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(18px, 4vw, 54px);
  color: #fff;
  background: rgba(6, 19, 37, 0.22);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand,
.site-nav,
.hero-actions,
.checker-grid,
.trust {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
}

.site-nav {
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a,
.header-cta {
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: end;
  padding: 96px clamp(20px, 6vw, 78px) 16px;
  overflow: hidden;
  background: #102033;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 20, 35, 0.88) 0%, rgba(7, 20, 35, 0.64) 38%, rgba(7, 20, 35, 0.16) 70%),
    linear-gradient(180deg, rgba(7, 20, 35, 0.36) 0%, rgba(7, 20, 35, 0.1) 42%, rgba(7, 20, 35, 0.46) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  color: #fff;
  padding-bottom: clamp(12px, 2.8vh, 24px);
}

.eyebrow {
  margin: 0;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--mint);
}

.hero h1 {
  margin: 12px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(4.7rem, 12vw, 8.7rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-title-sub {
  margin: 16px 0 0;
  font-size: clamp(1.85rem, 3.8vw, 3.35rem);
  line-height: 1.06;
  font-weight: 900;
  max-width: 10.5ch;
}

.hero-copy {
  max-width: 36rem;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.78;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 32px rgba(21, 115, 255, 0.28);
}

.button-primary:hover {
  background: var(--blue-deep);
}

.button-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, var(--max));
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
}

.hero-strip div {
  padding: 12px clamp(14px, 3vw, 28px) 4px 0;
}

.hero-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-strip strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.quick-check,
.collector,
.filing,
.flow,
.final-cta {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  scroll-margin-top: 92px;
}

.quick-check {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  padding: clamp(72px, 10vw, 118px) 0;
}

.collector {
  padding: clamp(72px, 10vw, 118px) 0;
  border-top: 1px solid var(--line);
}

.collector .section-copy {
  max-width: 780px;
}

.file-protocol-banner {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #ffe0a3;
  color: #8a5c00;
  font-size: 14px;
  line-height: 1.5;
}

.file-protocol-banner strong {
  font-weight: 700;
  white-space: nowrap;
}

.file-protocol-banner code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 12px;
}

.file-protocol-banner a {
  color: var(--blue-deep);
  text-decoration: underline;
}

.collector-shell {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.consent-panel,
.source-panel,
.collected-summary,
.source-catalog,
.api-contract {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.consent-panel {
  grid-row: span 4;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 24px 70px rgba(16, 32, 51, 0.08);
}

.source-panel,
.collected-summary,
.source-catalog,
.api-contract {
  grid-column: 2;
}

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.consent-row input {
  margin-top: 4px;
  accent-color: var(--mint);
}

.collector-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.collector-run,
.collector-preview,
.collector-clear {
  width: 100%;
}

.collector-import {
  display: grid;
  gap: 12px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}

.collector-import label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.collector-import select,
.collector-import input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d5e0ea;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.collector-guard {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #c9d9ec;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.collector-guard h3 {
  margin: 0;
  font-size: 1rem;
}

.guard-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.guard-row input {
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: var(--blue);
}

.collector-legal-note {
  margin: 2px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.65;
}

.button:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #c5d3df;
}

.collector-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* 북마크릿 & 파일 업로드 UI */
.method-card {
  margin-top: 16px;
  padding: 20px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
}

.method-primary {
  background: #f0f7ff;
  border: 1px solid #c2d9f5;
  position: relative;
}

.method-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
}

.method-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.method-card h3:not(:first-of-type) {
  margin-top: 18px;
}

.method-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.bookmarklet-wrap {
  display: flex;
  justify-content: center;
  padding: 14px;
  background: white;
  border-radius: 10px;
  border: 2px dashed var(--blue);
  margin-bottom: 4px;
}

.bookmarklet-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  background: var(--blue);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  cursor: move;
  transition: transform 0.15s;
}

.bookmarklet-btn:hover {
  transform: translateY(-2px);
  background: var(--blue-deep);
}

.bookmarklet-btn span {
  font-size: 15px;
}

.bookmarklet-btn small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}

.method-steps {
  margin: 0 0 0 18px;
  padding: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}

.method-steps li {
  margin-bottom: 4px;
}

.method-steps a {
  color: var(--blue);
  text-decoration: underline;
}

/* 업로드 목록 */
.upload-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.upload-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.upload-item:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(21, 115, 255, 0.08);
}

.upload-item.is-uploaded {
  border-color: var(--mint);
  background: #f0faf7;
}

.upload-item-conditional {
  border-style: dashed;
  background: #f8fbff;
}

.upload-item-conditional .upload-num {
  width: auto;
  min-width: 34px;
  padding: 0 8px;
  border-radius: 999px;
}

.upload-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.upload-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.upload-note {
  display: block;
  margin-top: 4px;
  color: #536175;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.upload-text span {
  font-size: 12px;
  color: var(--muted);
}

.upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  padding-left: 34px;
}

.upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--surface-cool);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid transparent;
  user-select: none;
}

.upload-label:hover {
  background: #e0f0ed;
  border-color: var(--mint);
}

.upload-icon {
  font-size: 16px;
}

.upload-filename {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: min(100%, 320px);
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  overflow: visible;
  white-space: normal;
}

.upload-file-count {
  color: var(--mint);
  font-weight: 800;
}

.upload-file-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
}

.upload-file-chip {
  display: inline-flex;
  align-items: center;
  max-width: 150px;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #cae0ff;
  color: #1f4f99;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}

/* 추가 공제 섹션 */
.extra-deduction {
  margin-top: 24px;
  padding: 20px;
  background: #fff8e6;
  border-radius: 12px;
  border: 1px solid #ffe0a3;
}

.extra-deduction h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}

.extra-deduction-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.extra-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.extra-item-info strong {
  font-size: 13px;
  font-weight: 600;
}

.extra-item-info span {
  font-size: 12px;
  color: var(--muted);
}

/* 제출 섹션 */
.submit-section {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface-cool);
  border-radius: 12px;
  text-align: center;
}

.submit-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.submit-section p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

/* 세무사 대시보드 */
.dashboard-panel {
  margin-top: 24px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.dashboard-panel h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.review-item-name {
  font-size: 13px;
  font-weight: 600;
}

.review-item-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e0e0e0;
}

.review-item-status.pending {
  background: #fff3cd;
  color: #856404;
}

.review-item-status.completed {
  background: #d4edda;
  color: #155724;
}

.file-dropzone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.file-dropzone:hover,
.file-dropzone.drag-over {
  border-color: var(--blue);
  background: #f0f7ff;
}

.file-dropzone-inner {
  pointer-events: none;
}

.file-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.file-dropzone p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.file-hint {
  font-size: 12px;
  color: var(--muted);
}

.source-panel {
  display: grid;
}

.source-row,
.collected-summary div,
.api-contract div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.source-row:last-child,
.collected-summary div:last-child,
.api-contract div:last-child {
  border-bottom: 0;
}

.source-row span,
.collected-summary span,
.api-contract span {
  color: var(--muted);
  font-weight: 800;
}

.source-row strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f3f8fc;
  color: var(--muted);
}

.source-row[data-status="running"] strong {
  background: rgba(255, 216, 106, 0.28);
  color: #8a6100;
}

.source-row[data-status="done"] strong {
  background: rgba(32, 201, 167, 0.16);
  color: #07846d;
}

.collected-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collected-summary div:nth-child(2n) {
  border-left: 1px solid var(--line);
}

.collected-summary strong {
  font-size: 1.08rem;
}

.source-catalog {
  display: block;
  overflow: hidden;
  background: #fff;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.catalog-header h3 {
  margin: 0;
  font-size: 1rem;
}

.catalog-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.catalog-body {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.catalog-empty {
  margin: 0;
  padding: 18px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.44fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
}

.catalog-doc-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.catalog-file-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.catalog-file-chip {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f7ff;
  border: 1px solid #d4e4ff;
  color: #244d88;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withholding-detail-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.withholding-detail-panel[hidden] {
  display: none;
}

.withholding-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #f3f8ff;
  border-bottom: 1px solid var(--line);
}

.withholding-detail-head div {
  display: grid;
  gap: 4px;
}

.withholding-detail-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.withholding-detail-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.withholding-detail-head b {
  color: var(--blue);
  font-size: 1rem;
  white-space: nowrap;
}

.withholding-detail-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.withholding-detail-list > p {
  margin: 0;
  padding: 16px 18px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.withholding-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 18px;
  background: #fff;
}

.withholding-detail-row.is-excluded {
  background: #fbfcfe;
  color: var(--muted);
}

.withholding-detail-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.withholding-detail-row strong {
  color: var(--ink);
  font-size: 13px;
}

.withholding-detail-row span,
.withholding-detail-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.withholding-detail-row b {
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.withholding-detail-row.is-excluded b {
  color: var(--muted);
  text-decoration: line-through;
}

.source-card {
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
}

.source-card h3 {
  margin: 0;
  font-size: 1rem;
}

.source-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.source-card li {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.api-contract {
  background: #102033;
  color: #fff;
}

.api-contract div {
  border-color: rgba(255, 255, 255, 0.12);
}

.api-contract span {
  color: rgba(255, 255, 255, 0.62);
}

.api-contract code {
  font-family: "Manrope", monospace;
  color: #8ff5de;
  text-align: right;
  white-space: normal;
}

.filing {
  padding: clamp(72px, 10vw, 118px) 0;
  border-top: 1px solid var(--line);
}

.filing .section-copy {
  max-width: 760px;
}

.section-copy h2,
.final-cta h2 {
  margin: 10px 0 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.final-cta p,
.trust-list {
  color: var(--muted);
  line-height: 1.78;
  font-size: 1.03rem;
}

.checker {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(16, 32, 51, 0.1);
}

.filing-app {
  margin-top: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(16, 32, 51, 0.09);
  overflow: hidden;
}

.filing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f3f8fc;
}

.filing-step {
  min-height: 58px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.filing-step:last-child {
  border-right: 0;
}

.filing-step.is-active {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: inset 0 -3px 0 var(--blue);
}

.filing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: stretch;
}

.filing-form,
.filing-result {
  min-width: 0;
}

.filing-form {
  padding: clamp(22px, 4vw, 34px);
}

.filing-panel {
  display: none;
}

.filing-panel.is-active {
  display: block;
}

.panel-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.panel-heading strong {
  font-size: 1.32rem;
}

.panel-heading span {
  color: var(--muted);
  line-height: 1.6;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.field-grid label {
  display: grid;
  gap: 10px;
}

.field-grid span {
  font-weight: 900;
}

.field-grid input,
.field-grid select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.field-grid input[readonly] {
  border-color: #cdd8e5;
  background:
    linear-gradient(90deg, rgba(21, 115, 255, 0.04), rgba(21, 115, 255, 0)),
    #f5f9fd;
  color: var(--ink);
  font-weight: 900;
  cursor: default;
}

.locked-income-field {
  position: relative;
}

.scraped-decision-field {
  position: relative;
}

.scraped-decision-field::after {
  content: "홈택스 판단";
  position: absolute;
  right: 0;
  top: 2px;
  border: 1px solid rgba(21, 115, 255, 0.18);
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--blue);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.locked-income-field::after {
  content: "홈택스 고정값";
  position: absolute;
  right: 10px;
  top: 40px;
  border: 1px solid rgba(21, 115, 255, 0.18);
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--blue);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.field-grid .locked-income-field input {
  padding-right: 116px;
}

.field-grid .scraped-decision-field input {
  font-size: 0.92rem;
  padding-left: 10px;
  padding-right: 10px;
  text-overflow: clip;
}

.field-grid select:disabled {
  color: var(--muted);
  background: #eef4f8;
  opacity: 1;
}

.field-grid input:focus,
.field-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 115, 255, 0.12);
}

.scraped-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.scraped-item {
  display: grid;
  gap: 9px;
}

.scraped-item > span {
  font-weight: 900;
}

.scraped-value {
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid #cdd8e5;
  border-radius: 8px;
  background: #f5f9fd;
  color: var(--ink);
  padding: 0 14px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.scraped-value::after {
  content: "홈택스 고정값";
  margin-left: auto;
  border: 1px solid rgba(21, 115, 255, 0.18);
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--blue);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.scraped-value.is-empty {
  color: var(--muted);
  background: #f7f9fc;
}

.scraped-value.is-empty::after {
  content: "자동 수집";
  color: #7b8997;
  background: #edf2f7;
  border-color: #d5dde6;
}

.scraped-item small {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.income-source-map {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.income-source-map-head {
  display: grid;
  gap: 5px;
}

.income-source-map-head strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
}

.income-source-map-head span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.55;
}

.income-source-route {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #dde8f3;
  border-radius: 8px;
  background: #fff;
}

.income-source-route span {
  color: #66778d;
  font-size: 0.78rem;
  font-weight: 900;
}

.income-source-route strong {
  color: #20324a;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.55;
}

.income-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.income-source-list article {
  display: grid;
  gap: 10px;
  border: 1px solid #e0e9f4;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.income-source-list article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.income-source-list article span {
  color: #53637a;
  font-size: 0.84rem;
  font-weight: 900;
}

.income-source-list article strong {
  color: var(--blue-deep);
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.income-source-list article p {
  margin: 0;
  color: #445268;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.58;
}

.expense-rate-choice {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(21, 115, 255, 0.2);
  border-radius: 8px;
  background: #f6fbff;
}

.expense-rate-choice[hidden] {
  display: none;
}

.expense-rate-choice strong {
  font-size: 1rem;
  font-weight: 950;
}

.expense-rate-choice p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.6;
}

.expense-rate-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.expense-rate-options button {
  display: grid;
  gap: 7px;
  text-align: left;
  min-height: 112px;
  padding: 14px;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.expense-rate-options button.is-selected {
  border-color: var(--blue);
  background: #edf5ff;
  box-shadow: 0 0 0 3px rgba(21, 115, 255, 0.1);
}

.expense-rate-options button span {
  color: #526175;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.5;
}

.filing-scope,
.penalty-alert {
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.filing-scope strong,
.penalty-alert strong {
  display: block;
  font-size: 1.02rem;
}

.filing-scope p,
.penalty-alert p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.scope-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f3f8fc;
  color: var(--blue-deep);
  font-weight: 900;
}

.income-decision-note {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 115, 255, 0.22);
  border-radius: 8px;
  background: #f6faff;
  color: #526175;
  font-weight: 800;
  line-height: 1.58;
}

.income-decision-note[hidden] {
  display: none;
}

.income-decision-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.income-decision-note ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.penalty-alert {
  border-color: rgba(255, 109, 74, 0.38);
  background: #fff8f5;
}

.penalty-alert.is-exempt {
  border-color: rgba(32, 201, 167, 0.34);
  background: #f2fbf8;
}

.penalty-alert ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.penalty-alert li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.penalty-alert li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--coral);
}

.penalty-alert.is-exempt li::before {
  background: var(--mint);
}

.required-evidence {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 32, 51, 0.12);
}

.required-evidence[hidden] {
  display: none;
}

.attachment-review {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.attachment-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.attachment-review-head span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attachment-review-head h3 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.attachment-review-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.62;
}

.attachment-review-head > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(21, 115, 255, 0.18);
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 950;
}

.attachment-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
}

.attachment-review-form {
  display: grid;
  gap: 14px;
}

.attachment-review-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 950;
}

.attachment-review-form select,
.attachment-review-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-weight: 850;
}

.attachment-review-form input[type="file"] {
  padding: 11px 12px;
  color: var(--muted);
}

.attachment-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.attachment-meta div,
.attachment-review-total,
.attachment-review-case {
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #f8fbff;
}

.attachment-meta div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.attachment-meta span,
.attachment-review-total span,
.attachment-review-case span {
  color: #65758a;
  font-size: 0.76rem;
  font-weight: 900;
}

.attachment-meta strong,
.attachment-review-total strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.45;
}

.attachment-review-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.6;
}

.attachment-review-note.is-ready {
  color: var(--blue-deep);
}

.attachment-review-note.is-approved {
  color: #087f5b;
}

.attachment-review-result {
  display: grid;
  align-content: start;
  gap: 12px;
}

.attachment-review-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
}

.attachment-review-total strong {
  color: var(--blue-deep);
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  white-space: nowrap;
}

.attachment-review-queue {
  display: grid;
  gap: 10px;
}

.attachment-review-queue > p {
  margin: 0;
  border: 1px dashed #cbd8e7;
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: #fbfdff;
  font-weight: 850;
  text-align: center;
}

.attachment-review-case {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.attachment-review-case header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.attachment-review-case h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.attachment-review-case p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
}

.attachment-review-case .status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff4e6;
  color: #b15c00;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 950;
}

.attachment-review-case.is-approved .status {
  background: #e6fcf5;
  color: #087f5b;
}

.attachment-review-case button {
  justify-self: start;
}

.deduction-details {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.deduction-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}

.deduction-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.deduction-card-head h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.36rem);
  letter-spacing: 0;
}

.deduction-list {
  display: grid;
  gap: 4px;
  padding: 14px 18px 18px;
}

.deduction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 900;
}

.deduction-row.is-group {
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fbff;
}

.deduction-row.is-group:first-child {
  margin-top: 0;
}

.deduction-row.is-group-lite {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e3ecf6;
}

.deduction-row.is-nested {
  padding-left: 18px;
}

.deduction-label {
  position: relative;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.deduction-label span:not(.deduction-toggle, .deduction-dot, .deduction-dash) {
  min-width: 0;
}

.deduction-toggle,
.deduction-dot,
.deduction-dash {
  flex: 0 0 auto;
}

.deduction-toggle {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #e7f0ff;
  color: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 0;
  font-weight: 900;
}

.deduction-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--blue);
}

.deduction-toggle.is-small {
  width: 16px;
  height: 16px;
  border-radius: 5px;
}

.deduction-dot,
.deduction-dash {
  color: #99a7b7;
  font-size: 1rem;
}

.deduction-dash {
  color: #a0a5ad;
}

.deduction-subbox {
  display: grid;
  gap: 2px;
  margin: 4px 0 10px 21px;
  padding: 4px 0 4px 16px;
  border-left: 2px solid #e4edf7;
  background: transparent;
}

.deduction-amount {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 86px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue-deep);
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-size: 1.02rem;
  padding: 0 10px;
  text-align: right;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease,
    transform 160ms ease;
}

.deduction-row:not(.is-group) .deduction-amount {
  background: #f6f8fb;
  color: #303946;
}

.deduction-amount:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 115, 255, 0.2);
  transform: translateY(-1px);
}

.deduction-amount:focus-visible {
  outline: 3px solid rgba(21, 115, 255, 0.24);
  outline-offset: 3px;
}

.deduction-help {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(21, 115, 255, 0.2);
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: help;
}

.deduction-help::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: min(340px, 78vw);
  padding: 12px 14px;
  border-radius: 8px;
  background: #102033;
  color: #fff;
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.22);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.58;
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.deduction-help::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 31;
  border: 7px solid transparent;
  border-top-color: #102033;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.deduction-help:hover::after,
.deduction-help:focus::after,
.deduction-help:focus-visible::after,
.deduction-help:hover::before,
.deduction-help:focus::before,
.deduction-help:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.deduction-help:focus-visible {
  outline: 3px solid rgba(21, 115, 255, 0.25);
  outline-offset: 2px;
}

.deduction-help::before,
.deduction-help::after {
  display: none;
}

.floating-tooltip {
  position: fixed;
  z-index: 100;
  width: min(340px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #102033;
  color: #fff;
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.24);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.floating-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.is-modal-open {
  overflow: hidden;
}

.deduction-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.deduction-modal[hidden] {
  display: none;
}

.deduction-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.deduction-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 34, 0.44);
  backdrop-filter: blur(10px);
}

.deduction-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(760px, 86vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(176, 194, 216, 0.72);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(10, 20, 34, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.deduction-modal.is-open .deduction-modal-panel {
  transform: translateY(0) scale(1);
}

.deduction-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.deduction-modal-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.deduction-modal-head h2 {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
}

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

.deduction-modal-close {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d7e3f0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.deduction-modal-close:hover,
.deduction-modal-close:focus-visible {
  border-color: rgba(21, 115, 255, 0.45);
  color: var(--blue);
  transform: rotate(4deg);
}

.deduction-modal-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.deduction-modal-metrics div {
  display: grid;
  gap: 6px;
  min-height: 82px;
  align-content: center;
  border-radius: 10px;
  padding: 14px 16px;
  background: #f7f9fc;
}

.deduction-modal-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.deduction-modal-metrics strong {
  color: var(--blue-deep);
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.62rem);
  letter-spacing: 0;
}

.deduction-modal-body {
  display: grid;
  gap: 14px;
  padding: 20px 24px 24px;
  overflow-y: auto;
  background: #fff;
}

.deduction-modal-summary {
  margin: 0;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 14px 16px;
  background: #f7fbff;
  color: #314056;
  font-weight: 800;
  line-height: 1.72;
}

.deduction-modal-section {
  border: 1px solid #e4edf7;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.deduction-modal-section h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
}

.deduction-modal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deduction-modal-section li {
  position: relative;
  padding-left: 18px;
  color: #445268;
  font-weight: 800;
  line-height: 1.62;
}

.deduction-modal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
}

.deduction-popup-grid {
  display: grid;
  gap: 8px;
}

.deduction-popup-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid #e8eff7;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.deduction-popup-row > span {
  color: #53637a;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.45;
}

.deduction-popup-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.deduction-popup-row strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.deduction-popup-row small {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.45;
}

.reduction-popup-section {
  display: grid;
  gap: 14px;
}

.reduction-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reduction-summary-item {
  display: grid;
  gap: 4px;
  border: 1px solid #dce9fb;
  border-radius: 8px;
  padding: 12px;
  background: #f7fbff;
}

.reduction-summary-item span,
.reduction-card-head span {
  color: #5f6f86;
  font-size: 0.78rem;
  font-weight: 900;
}

.reduction-summary-item strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.reduction-summary-item small {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
}

.reduction-section-stack {
  display: grid;
  gap: 14px;
}

.reduction-card {
  overflow: hidden;
  border: 1px solid #cfe0fb;
  border-radius: 10px;
  background: #fff;
}

.reduction-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #eef5ff;
}

.reduction-card-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.35;
}

.reduction-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e6eef9;
}

.reduction-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-right: 1px dashed #cfe0fb;
}

.reduction-group:nth-child(2n) {
  border-right: 0;
}

.reduction-group h5 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.35;
}

.reduction-field-stack {
  display: grid;
  gap: 8px;
}

.reduction-field-row {
  display: grid;
  grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-radius: 8px;
  padding: 10px;
  background: #f7f9fd;
}

.reduction-field-row > span {
  color: #4f5f75;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.45;
}

.reduction-field-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.reduction-field-row strong {
  justify-self: start;
  min-width: min(100%, 148px);
  border: 1px solid #dce3ec;
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.reduction-field-row.is-amount strong {
  width: 100%;
  max-width: 190px;
  text-align: right;
  background:
    repeating-linear-gradient(45deg, #f3f6fa 0 3px, #edf2f7 3px 5px),
    #f4f7fb;
}

.reduction-field-row small {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.35;
}

.reduction-card-note {
  margin: 0;
  padding: 0 14px 14px;
  color: #52647b;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.55;
}

.deduction-modal-foot {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.deduction-modal-foot .button {
  min-height: 44px;
  border: 1px solid rgba(21, 115, 255, 0.32);
  background: #fff;
  color: var(--blue);
}

.draft-list {
  display: grid;
  gap: 12px;
}

.draft-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.draft-list span {
  color: var(--muted);
  font-weight: 800;
}

.draft-list strong {
  text-align: right;
}

.draft-note {
  margin: 24px 0 0;
  padding: 18px;
  border-radius: 8px;
  background: #f3f8fc;
  color: var(--muted);
  line-height: 1.72;
}

.filing-result {
  padding: clamp(22px, 4vw, 34px);
  background: #102033;
  color: #fff;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.result-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(32, 201, 167, 0.18);
  color: #5df0d3;
  font-weight: 900;
}

.result-topline span.is-payment {
  background: rgba(255, 109, 74, 0.18);
  color: #ffb09d;
}

.mini-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
}

.filing-result > strong {
  display: block;
  margin-top: 22px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
}

.filing-result > p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.72;
}

.tax-breakdown {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}

.tax-breakdown div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tax-breakdown dt {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.62);
  text-align: left !important;
  flex-shrink: 0;
}

.tax-breakdown dd {
  margin-left: auto;
  font-weight: 900;
  text-align: right !important;
  flex-shrink: 0;
}

.filing-checklist {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.filing-checklist label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
}

.filing-checklist input {
  accent-color: var(--mint);
}

.filing-disclaimer {
  margin: 0;
  padding: 18px clamp(22px, 4vw, 34px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
  background: #f8fbff;
}

.checker label {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.checker label:first-child {
  margin-top: 0;
}

.checker span {
  font-weight: 800;
}

.checker-grid {
  align-items: start;
  gap: 14px;
}

.checker-grid label {
  flex: 1 1 0;
}

.checker input,
.checker select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.checker input:focus,
.checker select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 115, 255, 0.12);
}

.range-label input {
  accent-color: var(--mint);
}

.checker-submit {
  width: 100%;
  margin-top: 24px;
}

.checker-result {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.checker-result span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.checker-result strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.checker-result p {
  margin: 10px 0 0;
  color: var(--muted);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.proof-band div {
  min-height: 210px;
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 56px);
  background: var(--surface-cool);
}

.metric {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.9rem, 7vw, 6.5rem);
  line-height: 0.95;
  font-weight: 800;
  color: var(--blue-deep);
}

.proof-band p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.flow {
  padding: clamp(72px, 10vw, 124px) 0;
}

.flow-list {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-list li {
  min-height: 240px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.flow-list span {
  color: var(--coral);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.flow-list strong {
  display: block;
  margin-top: 34px;
  font-size: 1.36rem;
}

.flow-list p {
  color: var(--muted);
  line-height: 1.72;
}

.trust {
  align-items: stretch;
  min-height: 640px;
  background: #102033;
  color: #fff;
  scroll-margin-top: 76px;
}

.trust-visual,
.trust .section-copy {
  flex: 1 1 0;
  display: grid;
  place-items: center;
  padding: clamp(42px, 7vw, 86px);
}

.trust .section-copy {
  place-items: center start;
}

.trust .section-copy p:not(.eyebrow),
.trust-list {
  color: rgba(255, 255, 255, 0.76);
}

.trust-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.trust-list li {
  position: relative;
  padding-left: 28px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--yellow);
}

.trust-visual {
  background: #dff4f0;
}

.phone-shell {
  width: min(100%, 320px);
  aspect-ratio: 0.56;
  border-radius: 38px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 32px 90px rgba(16, 32, 51, 0.22);
}

.phone-bar {
  width: 78px;
  height: 6px;
  margin: 0 auto 42px;
  border-radius: 999px;
  background: #d6e2ed;
}

.phone-line {
  height: 16px;
  width: 78%;
  margin-top: 16px;
  border-radius: 999px;
  background: #dfe8f0;
}

.phone-line.strong {
  width: 100%;
  height: 34px;
  background: var(--ink);
}

.phone-progress {
  height: 12px;
  margin-top: 54px;
  border-radius: 999px;
  background: #e6eef4;
  overflow: hidden;
}

.phone-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
  animation: progressPulse 2.8s ease-in-out infinite;
}

.phone-check {
  margin-top: 24px;
  padding: 18px;
  border-radius: 8px;
  background: #eef8f7;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.final-cta {
  text-align: center;
  padding: clamp(74px, 11vw, 132px) 0;
}

.final-cta .button {
  margin-top: 22px;
}

.final-cta small {
  display: block;
  max-width: 40rem;
  margin: 22px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes progressPulse {
  0%,
  100% {
    width: 62%;
  }
  50% {
    width: 84%;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 66px;
    padding-inline: 16px;
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 84svh;
    padding: 98px 18px 22px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 20, 35, 0.9) 0%, rgba(7, 20, 35, 0.58) 58%, rgba(7, 20, 35, 0.22) 100%),
      linear-gradient(180deg, rgba(7, 20, 35, 0.26) 0%, rgba(7, 20, 35, 0.52) 100%);
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 22vw, 7rem);
  }

  .hero-title-sub {
    max-width: 9.5ch;
  }

  .button {
    min-height: 50px;
    width: 100%;
  }

  .hero-strip,
  .proof-band,
  .quick-check,
  .collector-shell,
  .filing-layout,
  .flow-list,
  .trust {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    gap: 0;
  }

  .hero-strip div {
    padding: 12px 0;
  }

  .quick-check {
    width: min(100% - 28px, var(--max));
  }

  .collector {
    width: min(100% - 28px, var(--max));
  }

  .consent-panel {
    grid-row: auto;
  }

  .source-panel,
  .collected-summary,
  .source-catalog,
  .api-contract {
    grid-column: auto;
  }

  .collected-summary {
    grid-template-columns: 1fr;
  }

  .collected-summary div:nth-child(2n) {
    border-left: 0;
  }

  .source-catalog {
    grid-template-columns: 1fr;
  }

  .upload-item {
    grid-template-columns: 1fr;
  }

  .upload-zone {
    justify-content: flex-start;
    max-width: 100%;
  }

  .upload-filename,
  .upload-file-list {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .catalog-row {
    grid-template-columns: 1fr;
  }

  .catalog-file-list {
    justify-content: flex-start;
  }

  .checker-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filing {
    width: min(100% - 28px, var(--max));
  }

  .filing-steps {
    grid-template-columns: 1fr;
  }

  .filing-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filing-step:last-child {
    border-bottom: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-grid .locked-income-field input {
    padding-right: 108px;
  }

  .field-grid .scraped-decision-field input {
    padding-right: 18px;
  }

  .locked-income-field::after,
  .scraped-decision-field::after {
    top: 1px;
    right: 9px;
    font-size: 0.66rem;
  }

  .income-source-list {
    grid-template-columns: 1fr;
  }

  .income-source-list article div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .attachment-review {
    padding: 14px;
  }

  .attachment-review-head,
  .attachment-review-layout {
    grid-template-columns: 1fr;
  }

  .attachment-review-head {
    display: grid;
  }

  .attachment-review-head > strong {
    justify-self: start;
  }

  .attachment-meta {
    grid-template-columns: 1fr;
  }

  .attachment-review-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .attachment-review-case header {
    flex-direction: column;
  }

/* 표준세액공제 배너 */
.standard-deduction-banner {
  display: none;
  padding: 16px 20px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
  margin-bottom: 16px;
}

.standard-deduction-banner.is-active {
  display: block;
}

.standard-deduction-banner strong:first-child {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #856404;
}

.standard-deduction-banner p {
  font-size: 13px;
  color: #856404;
  margin: 0 0 10px;
  line-height: 1.5;
}

.standard-deduction-compare {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.standard-deduction-compare strong {
  color: var(--ink);
  font-weight: 700;
}

.scraped-grid {
    grid-template-columns: 1fr;
  }

  .scraped-value {
    min-height: 50px;
    font-size: 1rem;
  }

  .scraped-value::after {
    padding-inline: 7px;
    font-size: 0.68rem;
  }

  .deduction-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .deduction-list {
    padding-inline: 12px;
  }

  .deduction-row {
    grid-template-columns: minmax(0, 1fr) minmax(58px, auto);
    gap: 8px;
    min-height: 38px;
  }

  .deduction-label {
    align-items: flex-start;
    gap: 6px;
    font-size: 0.95rem;
  }

  .deduction-subbox {
    margin-left: 9px;
    padding: 6px 0 6px 12px;
  }

  .deduction-row.is-nested {
    padding-left: 14px;
  }

  .deduction-amount {
    font-size: 1rem;
    min-width: 72px;
  }

  .deduction-help {
    width: 20px;
    height: 20px;
    margin-top: 1px;
  }

  .deduction-help::after {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 76px;
    bottom: auto;
    width: auto;
    transform: translateY(8px);
  }

  .deduction-help::before {
    display: none;
  }

  .deduction-help:hover::after,
  .deduction-help:focus::after,
  .deduction-help:focus-visible::after,
  .deduction-help:hover::before,
  .deduction-help:focus::before,
  .deduction-help:focus-visible::before {
    transform: translateY(0);
  }

  .deduction-modal {
    align-items: end;
    padding: 10px;
  }

  .deduction-modal-panel {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 14px;
  }

  .deduction-modal-head {
    padding: 18px 16px 14px;
  }

  .deduction-modal-head h2 {
    font-size: 1.42rem;
  }

  .deduction-modal-close {
    width: 38px;
    height: 38px;
  }

  .deduction-modal-metrics {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .deduction-modal-metrics div {
    min-height: 72px;
  }

  .deduction-modal-body {
    padding: 16px;
  }

  .deduction-popup-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .reduction-summary-grid,
  .reduction-group-grid {
    grid-template-columns: 1fr;
  }

  .reduction-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .reduction-group {
    border-right: 0;
    border-bottom: 1px dashed #cfe0fb;
  }

  .reduction-group:last-child {
    border-bottom: 0;
  }

  .reduction-field-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .reduction-field-row strong,
  .reduction-field-row.is-amount strong {
    max-width: 100%;
  }

  .deduction-modal-foot {
    padding: 12px 16px 16px;
  }

  .proof-band div {
    min-height: 160px;
  }

  .checker-result strong {
    font-size: 1.58rem;
  }

  .trust {
    display: grid;
  }

  .trust-visual,
  .trust .section-copy {
    padding: 42px 20px;
  }
}

.tax-calculation-detail {
  max-width: 400px;
  margin: 24px auto;
  padding: 24px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.tax-calc-title {
  display: block;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.calc-step {
  margin-bottom: 8px;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.calc-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.calc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.calc-step-name {
  margin-right: auto;
  font-weight: 600;
  color: var(--ink);
  text-align: left !important;
}

.calc-step-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
  text-align: right !important;
}

.calc-step-desc {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #64748b;
  text-align: left !important;
}

.calc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.calc-detail {
  margin-top: 12px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 8px;
}

.calc-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #475569;
  border-bottom: 1px dashed #e2e8f0;
  gap: 16px;
}

.calc-detail-row > span:first-child,
.calc-detail-row > strong:first-child {
  text-align: left !important;
  margin-right: auto;
}

.calc-detail-row > span:last-child,
.calc-detail-row > strong:last-child {
  text-align: right;
  flex-shrink: 0;
}

.calc-detail-row:last-child {
  border-bottom: none;
}

.calc-detail-total {
  font-weight: 700;
  color: var(--ink);
  border-top: 2px solid #cbd5e1;
  margin-top: 4px;
  padding-top: 8px;
}

.calc-step-final .calc-step-value {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
