@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root { color-scheme: light; font-family: 'DM Sans', Arial, sans-serif; color: #1e2925; background: #f5f7f2; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1440px; padding: 0 48px; margin: auto; }
.masthead { height: 94px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #d8e0d7; }
.head-tools { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; gap: 12px; align-items: center; color: #184c37; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.brand-mark { display: inline-grid; place-items: center; width: 33px; height: 33px; border: 1.5px solid #2f8b60; border-radius: 50%; font-size: 20px; line-height: 1; }
.privacy { color: #5e7468; font-size: 13px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid #d1ded2; border-radius: 999px; background: #fff; color: #315c41; font-size: 12px; font-weight: 700; }
.theme-toggle:hover { background: #eff7ef; }
#theme-icon { font-size: 17px; }
.intro { padding: 78px 0 73px; max-width: 810px; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: #39825b; font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .17em; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: 'Space Grotesk', sans-serif; }
h1 { margin-bottom: 22px; font-size: clamp(54px, 7vw, 96px); line-height: .99; font-weight: 600; letter-spacing: -.075em; }
h1 em { font-style: normal; color: #39825b; }
.lead { max-width: 620px; color: #62756a; font-size: 17px; line-height: 1.65; }
.workspace { margin-bottom: 85px; border: 1px solid #dbe4da; border-radius: 20px; background: #fff; padding: 36px; box-shadow: 0 18px 55px rgba(30,65,46,.045); }
.workspace-top { display: flex; align-items: end; justify-content: space-between; margin-bottom: 25px; }
h2 { margin-bottom: 0; font-size: 26px; letter-spacing: -.04em; }
.count { margin: 0; color: #6f8074; font-size: 13px; }
.dropzone { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #a9cbb4; border-radius: 14px; background: #f8fbf7; color: #245f42; text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone:hover, .dropzone.dragging { background: #ebf5eb; border-color: #3b9863; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 3px solid #8dc7a2; outline-offset: 3px; }
.upload-symbol { font-size: 34px; line-height: 1; font-weight: 300; }
.upload-title { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; }
.upload-subtitle { font-size: 13px; color: #738a79; }
.message { min-height: 20px; margin: 12px 0 0; color: #347d52; font-size: 13px; }
.message.error { color: #b34d3d; }
.tools { padding: 36px 0 28px; border-top: 1px solid #e6ebe4; }
.tool-heading { margin-bottom: 23px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tool-card { padding: 25px; border: 1px solid #dce6db; border-radius: 13px; background: #fbfcfa; }
.tool-name { display: flex; gap: 10px; align-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 17px; }
.tool-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #e6f4e9; color: #317f51; font-size: 20px; }
.tool-card p { min-height: 40px; max-width: 410px; margin: 14px 0 20px; color: #718075; font-size: 13px; line-height: 1.5; }
.fields { display: flex; gap: 12px; margin-bottom: 18px; }
.fields label { display: flex; flex-direction: column; gap: 7px; color: #53675b; font-size: 12px; font-weight: 700; }
.fields input, .number-wrap input { border: 1px solid #d4ded3; border-radius: 7px; background: #fff; color: #1e3428; outline: none; }
.fields input:focus, .number-wrap input:focus { border-color: #3f9560; box-shadow: 0 0 0 3px #dcefe0; }
.fields input { width: 116px; height: 40px; padding: 0 10px; }
.tool-card .fields label { min-width: 0; flex: 1; }
.tool-card .fields input { width: 100%; min-width: 0; }
.shift-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); }
.shift-fields .end-number-field { grid-column: 1; }
.shift-fields input::placeholder { color: #a3b0a6; opacity: 1; }
#shift-to:placeholder-shown { border-color: #e1e8e1; background: #f7f9f6; color: #98a59b; }
html[data-theme="dark"] .shift-fields input::placeholder { color: #74877a; }
html[data-theme="dark"] #shift-to:placeholder-shown { border-color: #34453a; background: #19221c; color: #829287; }
.button { min-height: 42px; padding: 0 18px; border-radius: 7px; font-weight: 700; font-size: 13px; }
.secondary { border: 1px solid #bad4bf; background: #ebf6ec; color: #246b42; }
.secondary:hover { background: #d8efde; }
.tools-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 23px; color: #7c8c80; font-size: 13px; }
.text-button { padding: 0; border: 0; background: none; color: #2e7e4c; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.file-list-heading { padding: 35px 0 22px; border-top: 1px solid #e6ebe4; }
.file-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.clear-files-button { padding: 8px 12px; border: 1px solid #e4c9c3; border-radius: 7px; background: #fff; color: #9d5142; font-size: 12px; font-weight: 700; }
.clear-files-button:hover { background: #fff2ef; }
.file-list-heading p:last-child { margin: 9px 0 0; color: #788a7d; font-size: 13px; }
.file-list { display: grid; gap: 14px; }
.file-names { gap: 8px; }
.file-names .file-head { min-height: 56px; }
.file-label-count { color: #87958a; font-size: 12px; }
.eps-status { font-size: 11px; }
.eps-status.ready { color: #388355; }
.eps-status.missing { color: #a26342; }
.eps-missing-numbers { margin: 0; padding: 0 16px 13px; color: #8e694f; font-size: 11px; line-height: 1.45; }
.eps-unmatched { margin-top: 10px; padding: 14px 16px; border: 1px solid #ecd9c6; border-radius: 10px; background: #fffaf4; color: #795d43; font-size: 12px; }
.eps-unmatched p { margin: 5px 0 0; color: #977b62; }
.global-heading { padding: 30px 0 17px; }
.global-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.global-heading h2 { font-size: 21px; }
.global-heading p { margin: 7px 0 0; color: #788a7d; font-size: 13px; }
.file-card { border: 1px solid #dfe6dc; border-radius: 12px; overflow: hidden; }
.file-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 66px; padding: 12px 16px; background: #f7faf6; }
.file-title-stack { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.file-name-group { display: flex; min-width: 0; align-items: center; gap: 14px; }
.file-index { color: #4c9c69; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.file-actions { display: flex; gap: 5px; }
.icon-button { width: 31px; height: 31px; border: 1px solid #d7e3d8; border-radius: 6px; background: #fff; color: #4d7960; font-size: 18px; line-height: 1; }
.icon-button:hover:not(:disabled) { background: #e8f4e9; }
.icon-button:disabled { opacity: .35; cursor: default; }
.label-list { padding: 0 16px 8px; }
.label-row { display: grid; grid-template-columns: 115px 1fr 1fr 1.7fr; align-items: center; min-height: 58px; gap: 10px; border-bottom: 1px solid #edf0eb; }
.global-row { grid-template-columns: 70px 130px 140px minmax(150px, 1fr); }
.global-card .label-list { padding-bottom: 4px; }
.global-card .label-row:last-child { border-bottom: 0; }
.label-row:last-child { border-bottom: 0; }
.label-head { min-height: 37px; color: #87958a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.check-wrap { display: flex; align-items: center; }
.check-wrap input { width: 17px; height: 17px; accent-color: #3e925d; cursor: pointer; }
.original-number { color: #4f6455; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.number-wrap input { width: 92px; height: 35px; padding: 0 9px; font-weight: 700; }
.changed .number-wrap input { border-color: #7ab688; background: #f4fbf4; color: #246f43; }
.position { color: #9aaa9b; font-size: 12px; }
.global-details { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.occurrence-count { color: #536c5a; font-size: 12px; font-weight: 700; }
.occurrence-files { overflow: hidden; color: #91a094; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.download-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 24px 27px; border-radius: 11px; background: #214e38; color: #fff; }
.download-bar strong { font-family: 'Space Grotesk', sans-serif; font-size: 18px; }
.download-bar p { margin: 5px 0 0; color: #bdd5c3; font-size: 12px; }
.primary { display: flex; align-items: center; justify-content: center; gap: 20px; border: 0; background: #c5efac; color: #18492f; white-space: nowrap; }
.primary:hover { background: #e0ffc9; }
.primary span { font-size: 18px; }
.format-select { display: flex; flex-direction: column; gap: 6px; color: #d1dfd4; font-size: 11px; font-weight: 700; }
.format-select select { min-width: 140px; height: 40px; padding: 0 10px; border: 1px solid #63836d; border-radius: 7px; background: #183d2a; color: #fff; font: inherit; font-size: 13px; }
.footnote { margin: 15px 0 0; color: #849588; font-size: 12px; line-height: 1.5; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 40px; border-top: 1px solid #dce5da; color: #5f7666; font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: .08em; }
footer span { font-family: 'DM Sans', Arial, sans-serif; letter-spacing: 0; }
html[data-theme="dark"] { color-scheme: dark; background: #111916; color: #e5eee7; }
html[data-theme="dark"] body { background: #111916; color: #e5eee7; }
html[data-theme="dark"] .masthead, html[data-theme="dark"] footer { border-color: #304038; }
html[data-theme="dark"] .brand, html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .section-kicker { color: #91c99d; }
html[data-theme="dark"] .brand-mark { border-color: #6eae7c; color: #a6d9b0; }
html[data-theme="dark"] .privacy, html[data-theme="dark"] .lead, html[data-theme="dark"] .count,
html[data-theme="dark"] .file-list-heading p:last-child, html[data-theme="dark"] .global-heading p,
html[data-theme="dark"] .tools-footer, html[data-theme="dark"] .footnote { color: #a1b2a6; }
html[data-theme="dark"] .workspace { border-color: #34473c; background: #1a2420; box-shadow: 0 18px 55px rgba(0,0,0,.2); }
html[data-theme="dark"] .dropzone { border-color: #52725d; background: #1d2a22; color: #b7e2c2; }
html[data-theme="dark"] .dropzone:hover, html[data-theme="dark"] .dropzone.dragging { border-color: #70b481; background: #22372a; }
html[data-theme="dark"] .upload-subtitle, html[data-theme="dark"] .file-index { color: #9cbba4; }
html[data-theme="dark"] .message { color: #91d2a2; }
html[data-theme="dark"] .message.error { color: #ff9b8b; }
html[data-theme="dark"] .tools, html[data-theme="dark"] .file-list-heading { border-color: #304038; }
html[data-theme="dark"] .tool-card, html[data-theme="dark"] .file-card { border-color: #35483c; background: #202c26; }
html[data-theme="dark"] .tool-card p { color: #a1b2a6; }
html[data-theme="dark"] .tool-icon { background: #2a4933; color: #a9dbb5; }
html[data-theme="dark"] .fields label { color: #b8c8bc; }
html[data-theme="dark"] .fields input, html[data-theme="dark"] .number-wrap input { border-color: #405348; background: #151e19; color: #e5eee7; }
html[data-theme="dark"] .fields input:focus, html[data-theme="dark"] .number-wrap input:focus { border-color: #70b481; box-shadow: 0 0 0 3px #294633; }
html[data-theme="dark"] .secondary { border-color: #486c52; background: #2a4933; color: #c3edcb; }
html[data-theme="dark"] .secondary:hover { background: #345b3e; }
html[data-theme="dark"] .file-head { background: #202c26; }
html[data-theme="dark"] .file-name, html[data-theme="dark"] .original-number { color: #e0ebe2; }
html[data-theme="dark"] .file-label-count, html[data-theme="dark"] .label-head { color: #9aac9e; }
html[data-theme="dark"] .eps-status.ready { color: #94d2a0; }
html[data-theme="dark"] .eps-status.missing, html[data-theme="dark"] .eps-missing-numbers { color: #d7a47e; }
html[data-theme="dark"] .eps-unmatched { border-color: #594633; background: #2b241c; color: #e0c09b; }
html[data-theme="dark"] .eps-unmatched p { color: #b99a77; }
html[data-theme="dark"] .icon-button { border-color: #405348; background: #17211b; color: #b8d8bf; }
html[data-theme="dark"] .icon-button:hover:not(:disabled) { background: #2a4933; }
html[data-theme="dark"] .label-row { border-color: #2c3b32; }
html[data-theme="dark"] .occurrence-count { color: #b8d9bf; }
html[data-theme="dark"] .occurrence-files { color: #91a398; }
html[data-theme="dark"] .changed .number-wrap input { border-color: #54805e; background: #1c3022; color: #c5edcb; }
html[data-theme="dark"] .text-button { color: #9bd1a7; }
html[data-theme="dark"] .clear-files-button { border-color: #704840; background: #2b211f; color: #efad9f; }
html[data-theme="dark"] .clear-files-button:hover { background: #3b2925; }
html[data-theme="dark"] .download-bar { background: #183d2a; }
html[data-theme="dark"] .primary { background: #c5efac; color: #18492f; }
html[data-theme="dark"] .format-select select { border-color: #65816c; background: #183d2a; color: #fff; }
html[data-theme="dark"] .theme-toggle { border-color: #405348; background: #202c26; color: #d3ebd8; }
html[data-theme="dark"] .theme-toggle:hover { background: #2a3b30; }
@media (max-width: 760px) { .shell { padding: 0 20px; } .masthead { height: 72px; } .privacy { display: none; } .intro { padding: 60px 0 48px; } h1 { font-size: clamp(45px, 10vw, 65px); } .lead { font-size: 15px; } .workspace { padding: 20px; } .tool-grid { grid-template-columns: 1fr; } .tools-footer, .download-bar { align-items: flex-start; flex-direction: column; } .global-row { grid-template-columns: 45px 75px 95px minmax(0, 1fr); gap: 6px; } .global-row .number-wrap input { width: 82px; } .global-row .label-head { font-size: 8px; } .occurrence-count { font-size: 10px; } .occurrence-files { font-size: 10px; } .file-heading-row, .global-heading-row { align-items: flex-start; flex-direction: column; } .file-head { padding: 12px; } .file-name { font-size: 12px; } footer span { display: none; } }
