:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202124; background: #f5f5f4; }
* { box-sizing: border-box; }
body { margin: 0; padding: 64px 20px; }
.tool { width: 100%; max-width: 580px; margin: 0 auto; padding: 40px; background: #fff; border: 1px solid #e5e5e3; border-radius: 16px; }
h1 { margin: 0 0 10px; font-size: clamp(25px, 5vw, 32px); letter-spacing: -1px; line-height: 1.2; }
header p { margin: 0 0 32px; color: #606269; line-height: 1.6; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
input { width: 100%; min-width: 0; height: 52px; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid #bcbfc4; border-radius: 8px; color: inherit; background: #fff; }
input::placeholder { color: #75777e; }
input[aria-invalid="true"] { border-color: #b42318; }
.hint, .error { margin: 9px 0 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.hint { color: #606269; }
.error { color: #b42318; }
button { width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.primary { margin-top: 22px; background: #25272b; color: #fff; border: 1px solid #25272b; }
.primary:hover { background: #404249; }
.secondary { background: #fff; color: #25272b; border: 1px solid #bcbfc4; }
.secondary:hover { background: #f5f5f4; }
:focus-visible { outline: 3px solid #3566b8; outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; }
.status { font-size: 13px; color: #606269; line-height: 1.5; margin: 16px 0 0; }
.status:empty { display: none; }
#result { margin-top: 24px; padding-top: 24px; border-top: 1px solid #ececeb; text-align: center; }
.preview { max-width: 330px; margin: 0 auto; background: #fff; }
canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.details { margin: 14px 0 20px; font-size: 13px; color: #606269; }
.note { margin: 16px 0 0; font-size: 12px; color: #606269; line-height: 1.8; text-align: left; }
[hidden] { display: none !important; }
@media (max-width: 480px) { body { padding: 24px 12px; } .tool { padding: 26px 20px; border-radius: 12px; } header p { margin-bottom: 26px; } }
