:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #fff3d4; background: #10201e; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; background: radial-gradient(ellipse at top right, #28463c 0, #10201e 70%); min-height: 100vh; }
main { max-width: 680px; margin: 0 auto; padding: 28px 20px 40px; }
header { display: flex; gap: 16px; align-items: center; }
header img { border-radius: 18px; box-shadow: 0 5px 20px #0004; flex: 0 0 64px; }
h1, h2, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.35; }
h2 { font-size: 19px; line-height: 1.4; }
.eyebrow { font-size: 13px; color: #b8d7c8; margin-bottom: 5px; }
.intro { margin: 24px 0 16px; color: #dce8df; }
.notice { padding: 14px 16px; border-left: 3px solid #d6b675; background: #d6b67510; font-size: 14px; color: #dfd5ba; border-radius: 0 9px 9px 0; }
section { border: 1px solid #647c5b66; background: #203831df; border-radius: 18px; padding: 20px; margin-top: 18px; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #d8ba7d; color: #182b24; font-weight: 700; }
section p { color: #d0ded3; font-size: 15px; margin-bottom: 14px; }
button, .file-label, .return-link { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, .file-label { display: inline-block; min-height: 46px; border: 1px solid #ddc18c; border-radius: 12px; padding: 10px 20px; font: inherit; font-size: 16px; font-weight: 650; background: #ecd19b; color: #1b3028; cursor: pointer; text-align: center; }
button:disabled { opacity: .45; cursor: default; }
button:not(:disabled):active, .file-label:active { transform: translateY(1px); }
button:focus-visible, .file-label:focus-within, a:focus-visible, input:focus-visible { outline: 3px solid #a9e5cc; outline-offset: 4px; }
.file-label { background: #2c4a3f; color: #fff3d4; border-color: #7b9e87; }
input[type=file] { width: 100%; max-width: 100%; display: block; margin: 12px 0; font: inherit; color: #d0ded3; font-size: 13px; }
input[type=file]::file-selector-button { display: none; }
.hint { font-size: 13px; color: #b2c7b9; margin-top: 12px; margin-bottom: 0; overflow-wrap: anywhere; }
#import-save { margin-top: 14px; }
.restore-section { background: transparent; }
.restore-section h2 { font-size: 16px; }
.secondary { margin-top: 14px; background: transparent; color: #dfceb0; font-size: 14px; border-color: #75846a; }
#result { min-height: 26px; padding: 0 2px; margin-top: 18px; overflow-wrap: anywhere; color: #a5e5c3; }
.error, #result.error { color: #ffc5b2; }
.return-link { display: block; text-align: center; min-height: 48px; padding: 10px; color: #f0d6a1; text-underline-offset: 5px; font-weight: 650; }
@media (max-width: 360px) { main { padding: 20px 14px 30px; } h1 { font-size: 22px; } section { padding: 16px; } }
