:root { color-scheme: light; font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; color: #203a36; background: #f5f7f4; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse at 15% 0, #e6efdf 0, transparent 48%), #f5f7f4; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #c8a445; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { width: min(100% - 40px, 550px); margin: 0 auto; padding: 60px 0 calc(30px + env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 8px; margin: 0 0 30px; color: #557163; font-size: 12px; font-weight: 750; letter-spacing: .14em; }
.brand-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #e0e9d8; color: #346955; font-size: 19px; letter-spacing: 0; }
h1 { margin: 0; color: #263f37; font-size: clamp(42px, 8.5vw, 56px); line-height: 1.17; font-weight: 760; letter-spacing: -.065em; }
h1 span { color: #34745c; }
.description { margin: 20px 0 29px; color: #6c7d74; font-size: 16px; line-height: 1.65; letter-spacing: -.02em; }
.mobile-break { display: none; }
.card { padding: 26px; border: 1px solid #dde5dc; border-radius: 22px; background: #fff; box-shadow: 0 14px 48px #243a3010; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 235px; padding: 22px 14px; border: 1.5px dashed #c0d1c0; border-radius: 13px; background: #fafcf8; text-align: center; transition: border-color .15s, background .15s; }
.dropzone.drag { background: #edf5e8; border-color: #3d7c59; }
.document-icon { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 35px; height: 43px; padding: 8px; margin-bottom: 17px; border: 1.5px solid #8ba48a; border-radius: 4px; transform: rotate(-5deg); }
.document-icon span { height: 1px; background: #8ba48a; }
.document-icon span:last-child { width: 60%; }
h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.025em; }
.dropzone p { margin: 7px 0 19px; color: #7a887d; font-size: 13px; line-height: 1.5; }
.choose-button { min-height: 44px; padding: 10px 22px; border: 1px solid #bacbb7; border-radius: 8px; background: #fff; color: #3b624d; font-size: 14px; font-weight: 700; }
.selected-file { display: flex; align-items: center; gap: 12px; min-height: 85px; padding: 14px; border: 1px solid #e2e9df; border-radius: 11px; background: #f7faf4; }
.file-icon { flex: 0 0 auto; display: grid; place-items: center; width: 35px; height: 42px; border: 1px solid #b4c5ab; border-radius: 5px; color: #69835f; font-size: 9px; font-weight: 750; }
.file-info { flex: 1 1 auto; min-width: 0; display: grid; gap: 5px; }
.file-info strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; font-weight: 650; }
.file-info span { color: #8a9686; font-size: 12px; }
.strength-control { margin-top: 22px; }
.strength-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
.strength-heading output { min-width: 58px; padding: 5px 9px; border-radius: 7px; background: #edf4e8; color: #327251; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.strength-slider { display: block; width: 100%; height: 44px; margin: 9px 0 0; accent-color: #327251; cursor: pointer; touch-action: pan-y; }
.strength-slider:disabled { cursor: not-allowed; opacity: .55; }
.strength-scale { position: relative; display: flex; justify-content: space-between; color: #7a8b72; font-size: 11px; }
.strength-scale span:nth-child(2) { position: absolute; left: 33.3333%; transform: translateX(-50%); }
.strength-description { margin: 11px 0 0; min-height: 18px; color: #7a8873; font-size: 11px; line-height: 1.6; }
.preview-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e7ece3; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.preview-heading h2 { font-size: 13px; }
.preview-paging { display: flex; align-items: center; gap: 3px; }
.page-button { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 7px; color: #476a4e; background: #f2f6ee; font-size: 24px; line-height: 1; }
.page-button:disabled { color: #b2bca9; background: #f7f9f4; }
.preview-page { min-width: 51px; text-align: center; color: #74836a; font-size: 11px; font-variant-numeric: tabular-nums; }
.preview-stage { display: flex; align-items: center; justify-content: center; min-height: 190px; padding: 12px; overflow: hidden; border: 1px solid #e1e7dc; border-radius: 10px; background: #edf0e9; }
.preview-image { display: block; max-width: 100%; width: auto; height: auto; max-height: min(64vh, 620px); object-fit: contain; box-shadow: 0 2px 12px #263a2f18; }
.preview-placeholder { max-width: 100%; margin: 30px 5px; color: #7e8a73; font-size: 12px; text-align: center; line-height: 1.8; overflow-wrap: anywhere; }
.preview-feedback { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 31px; }
.preview-status { margin: 7px 0 0; color: #6c7e62; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.preview-status.error { color: #a34436; }
.preview-feedback .text-button { min-height: 32px; padding: 3px 5px; font-size: 11px; }
.preview-note { margin: 7px 0 0; color: #8a967e; font-size: 10px; line-height: 1.65; }
.text-button { flex: 0 0 auto; min-height: 44px; padding: 8px 10px; border: 0; background: transparent; color: #64825a; font-size: 13px; font-weight: 650; }
.status { min-height: 20px; margin: 19px 0 16px; color: #788574; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.status.error { color: #a34436; }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 53px; padding: 14px 19px; border: 0; border-radius: 10px; background: #327251; color: #fff; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; text-decoration: none; cursor: pointer; }
.primary-button span { font-size: 20px; line-height: 1; font-weight: 400; }
.primary-button:disabled { background: #e3e9df; color: #9da997; }
.cancel-button { display: block; min-height: 44px; margin: 5px auto -9px; padding: 8px 17px; border: 0; background: transparent; color: #7e8978; font-size: 13px; }
.progress-area { margin-top: 24px; }
.progress-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #60755a; font-size: 12px; line-height: 1.5; }
#progress-label { min-width: 0; overflow-wrap: anywhere; }
#progress-percent { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 10px; background: #e6eddf; accent-color: #5c9271; }
progress::-webkit-progress-bar { border-radius: 10px; background: #e6eddf; }
progress::-webkit-progress-value { border-radius: 10px; background: #5c9271; }
progress::-moz-progress-bar { border-radius: 10px; background: #5c9271; }
.result-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.done-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; color: #4b7a4c; background: #e9f1df; font-size: 19px; }
.result-heading h2 { font-size: 15px; }
.result-heading p { margin: 5px 0 0; color: #84917b; font-size: 12px; }
.reset-button { display: block; margin: 6px auto -10px; }
.privacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px 0 0; color: #8b9783; font-size: 11px; line-height: 1.6; }
.privacy span { color: #8ba77d; font-size: 6px; }
.noscript { margin: 16px 0; padding: 12px; border-radius: 9px; background: #fff2dc; color: #7e613a; font-size: 13px; }
@media (hover: hover) { .choose-button:hover:not(:disabled) { background: #eef5e8; }.primary-button:hover:not(:disabled) { background: #265e40; }.text-button:hover:not(:disabled), .cancel-button:hover:not(:disabled) { color: #294e35; } }
@media (max-width: 480px) { .shell { width: calc(100% - 32px); padding-top: 36px; }.brand { margin-bottom: 23px; }.card { padding: 20px; border-radius: 18px; }.description { font-size: 14px; margin-top: 17px; margin-bottom: 25px; }.dropzone { min-height: 225px; }.selected-file { gap: 9px; padding: 11px; }.text-button { padding-inline: 6px; }.privacy { font-size: 10px; } }
@media (max-width: 350px) { .shell { width: calc(100% - 24px); }.card { padding: 15px; }.file-icon { display: none; }.mobile-break { display: inline; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
