:root {
  font-family: Arial, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: #17221e; background: #f5f7f6; font-synthesis: none; text-rendering: optimizeLegibility;
  --green: #176b4c; --muted: #6e7d76; --line: #dce5df; --red: #bd483f; --amber: #a76313;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button { font: inherit; }
.topbar { height: 68px; padding: 0 clamp(22px, 7vw, 110px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e3e9e5; background: #fafcfb; }
.brand { display: flex; align-items: center; gap: 10px; color: #19382c; text-decoration: none; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 29px; height: 29px; background: var(--green); color: white; display: grid; place-items: center; border-radius: 9px; font-size: 15px; }
.top-tag { font-size: 12px; color: #77877f; border: 1px solid var(--line); padding: 7px 11px; border-radius: 30px; }
main { max-width: 1120px; margin: auto; padding: 0 24px; }
.hero { padding: 72px 0 40px; max-width: 840px; }
.eyebrow, .step { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--green); }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.pulse { width: 7px; height: 7px; background: #49a87a; border-radius: 50%; box-shadow: 0 0 0 4px #e0f1e7; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.19; letter-spacing: -.06em; margin: 20px 0 15px; color: #17392c; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero > p { font-size: 16px; color: #687870; line-height: 1.7; margin: 0; }
.privacy { margin-top: 29px; background: #eaf3ee; border: 1px solid #d7e8dd; border-radius: 12px; padding: 15px 17px; display: flex; gap: 13px; align-items: flex-start; color: var(--green); }
.lock { font-size: 16px; margin-top: 1px; }
.privacy strong, .privacy span { display: block; }
.privacy strong { font-size: 13px; }
.privacy div span { font-size: 12px; color: #587366; line-height: 1.6; margin-top: 3px; }
.workspace, .results { background: #fff; border: 1px solid #e2e9e5; border-radius: 18px; padding: 30px; box-shadow: 0 12px 34px #1c3a2a09; }
.section-head, .result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-head h2, .result-top h2, .rules h2 { font-size: 24px; letter-spacing: -.04em; margin: 7px 0 5px; color: #1a3529; }
.section-head p, .result-top p { color: var(--muted); font-size: 13px; margin: 0; }
.file-count { font-size: 25px; font-weight: 700; color: var(--green); padding: 6px 10px; }
.file-count small { font-size: 12px; font-weight: 500; color: #829087; }
.upload-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.upload-card { border: 1px solid var(--line); border-radius: 11px; min-height: 82px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; transition: .18s; }
.upload-card:hover, .upload-card:focus-within { border-color: #90b7a1; background: #fbfdfb; }
.file-icon { width: 40px; height: 42px; border-radius: 9px; background: #eaf3ee; color: var(--green); display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.upload-meta { min-width: 0; }
.upload-meta strong { display: block; font-size: 13px; color: #263c32; }
.upload-meta small { display: block; color: #78867e; font-size: 11px; margin-top: 3px; }
.upload-meta .selected { color: var(--green); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 700px; }
.pick { position: relative; color: var(--green); border: 1px solid #c9ddd0; border-radius: 8px; padding: 9px 12px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pick:hover { background: #edf6f0; }
.pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.primary { background: var(--green); border: 0; border-radius: 9px; color: #fff; height: 48px; padding: 0 18px 0 21px; display: flex; align-items: center; justify-content: space-between; gap: 26px; font-weight: 700; font-size: 14px; cursor: pointer; min-width: 210px; transition: background .16s; }
.primary:hover:not(:disabled) { background: #10573d; }
.primary:disabled { background: #b7c9bf; cursor: not-allowed; }
.arrow { font-size: 20px; line-height: 1; }
.actions p { color: #89968f; font-size: 11px; }
.progress { margin-top: 17px; display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 13px; }
.spinner { width: 17px; height: 17px; border: 2px solid #dce9e0; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-message { margin-top: 12px; padding: 12px 14px; border: 1px solid #f0c7c2; background: #fff4f2; border-radius: 9px; color: #a53a31; font-size: 13px; line-height: 1.6; }
.results { margin-top: 25px; }
.result-top { align-items: center; }
.secondary { border: 1px solid #cfddd4; background: #fff; border-radius: 8px; color: var(--green); padding: 10px 13px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.secondary:hover { background: #f2f8f4; }
.secondary span { font-size: 16px; margin-left: 8px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 10px; background: #f6f9f7; border: 1px solid #e6eee9; border-radius: 11px; }
.metric { padding: 15px 18px; border-right: 1px solid #e1eae4; }
.metric:last-child { border: 0; }
.metric span { display: block; color: #77867e; font-size: 11px; }
.metric strong { display: block; font-size: 25px; margin-top: 4px; color: #173d2e; }
.filter-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 10px; }
.tabs { display: flex; gap: 6px; }
.tab { border: 0; background: transparent; color: #78867f; padding: 8px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.tab.active { background: #eaf3ee; color: var(--green); font-weight: 700; }
#visible-count { font-size: 11px; color: #8c9992; }
.table-wrap { overflow: auto; border: 1px solid #e7ece9; border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 850px; font-size: 12px; text-align: left; }
th { background: #f6f8f7; color: #65756c; font-weight: 600; padding: 11px 12px; white-space: nowrap; }
td { padding: 12px; border-top: 1px solid #edf0ee; vertical-align: top; color: #3b4b43; line-height: 1.55; }
td:nth-child(5) { min-width: 270px; }
td:last-child { color: #7e8b84; font-size: 11px; }
.badge { display: inline-block; border-radius: 20px; padding: 4px 8px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge.error { background: #fbecea; color: var(--red); }
.badge.check { background: #fff3df; color: var(--amber); }
.empty { padding: 48px 15px; text-align: center; }
.empty span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e8f4ec; color: var(--green); margin: 0 auto 10px; }
.empty strong { font-size: 14px; }
.empty p { font-size: 12px; color: #7f8b85; }
.disclaimer, .rule-note { color: #8a9690; font-size: 11px; line-height: 1.7; margin: 14px 0 0; }
.rules { padding: 55px 4px 64px; }
.rules h2 { font-size: 23px; margin: 8px 0 20px; }
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rule-grid article { background: #fff; border: 1px solid #e4ebe7; border-radius: 12px; padding: 17px 16px; min-height: 155px; }
.rule-grid article > span { color: #76a28a; font-weight: 700; font-size: 11px; }
.rule-grid h3 { font-size: 13px; margin: 12px 0 7px; color: #294538; }
.rule-grid p { font-size: 11px; line-height: 1.6; color: #79867f; margin: 0; }
.rule-note { max-width: 800px; margin-top: 16px; }
.scope-summary { max-width: 780px; color: #64756c; font-size: 14px; line-height: 1.8; margin: 10px 0 0; }
.contact { margin: 0 0 64px; padding: 24px 28px; background: #eaf3ee; border: 1px solid #cfe2d6; border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.contact-copy h2 { margin: 7px 0 6px; color: #17392c; font-size: 22px; letter-spacing: -.04em; }
.contact-copy p { color: #536c5e; font-size: 13px; margin: 0 0 7px; }
.contact-copy small { color: #718178; font-size: 11px; }
.contact-email { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; color: #145c41; font-size: clamp(16px, 2vw, 22px); font-weight: 800; text-decoration: none; white-space: nowrap; }
.contact-email span { border-radius: 20px; background: #176b4c; color: white; padding: 8px 13px; font-size: 11px; font-weight: 700; }
.contact-email:hover span { background: #10573d; }
footer { border-top: 1px solid #e0e7e3; background: #fafcfb; padding: 20px clamp(22px, 7vw, 110px); display: flex; justify-content: space-between; color: #849189; font-size: 11px; }
@media (max-width: 700px) {
  .topbar { padding: 0 18px; height: 60px; } main { padding: 0 15px; } .hero { padding: 50px 3px 26px; }
  .hero h1 { font-size: 39px; } .hero > p { font-size: 14px; } .workspace, .results { padding: 21px 16px; border-radius: 14px; }
  .section-head h2, .result-top h2 { font-size: 20px; } .upload-card { grid-template-columns: 35px 1fr; gap: 10px; padding: 12px; }
  .file-icon { width: 34px; height: 36px; } .pick { grid-column: 2; justify-self: start; padding: 7px 10px; }
  .upload-meta .selected { max-width: 250px; } .actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .primary { width: 100%; } .result-top { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: repeat(2, 1fr); } .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid #e1eae4; } .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { align-items: flex-start; flex-direction: column; gap: 17px; padding: 21px 17px; }
  .contact-email { align-items: flex-start; font-size: 18px; }
  footer { padding: 18px; gap: 12px; flex-direction: column; }
}
