:root { color-scheme: light; --ink: #191919; --muted: #686868; --line: #d4d4d4; --soft: #f5f5f5; --error: #a21c1c; --radius: 14px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: #fff; font-synthesis: none; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
.workspace { width: min(100% - 48px, 540px); margin: 72px auto 48px; padding-bottom: env(safe-area-inset-bottom); }
.page-header { margin-bottom: 40px; }
h1 { font-size: 28px; line-height: 1.35; margin: 0; letter-spacing: -.8px; font-weight: 650; }
h2 { font-size: 18px; line-height: 1.5; margin: 0; font-weight: 600; }
.field { margin-bottom: 24px; }
label { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.optional { color: var(--muted); font-weight: 400; margin-left: 5px; font-size: 13px; }
input[type="url"] { width: 100%; height: 54px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; color: var(--ink); font-size: 16px; transition: border-color 150ms; }
input::placeholder { color: var(--muted); }
input:hover { border-color: #9b9b9b; }
input[aria-invalid="true"] { border-color: var(--error); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.upload-area { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px; background: var(--soft); border: 1px solid #e6e6e6; border-radius: var(--radius); }
input[type="file"] { width: 100%; min-width: 0; color: var(--muted); font-size: 14px; line-height: 2; overflow: hidden; }
input::file-selector-button { cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font: inherit; line-height: 1.5; margin-right: 12px; }
input::file-selector-button:hover { border-color: #777; }
.logo-preview { flex: 0 0 52px; border-radius: 10px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.upload-note { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 9px; }
.upload-note p, .save-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.text-button { border: 0; background: transparent; color: var(--ink); font-size: 12px; padding: 8px 0 8px 8px; margin: -8px 0; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.primary-button { display: block; width: 100%; min-height: 52px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; transition: background-color 150ms, border-color 150ms; }
.primary-button:hover { background: #353535; border-color: #353535; }
.primary-button:active { background: #050505; }
.primary-button:disabled { background: #626262; border-color: #626262; cursor: wait; }
.form-error { color: var(--error); line-height: 1.7; font-size: 14px; overflow-wrap: anywhere; margin: 0 0 18px; }
.progress { min-height: 22px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.result { margin-top: 28px; padding-top: 28px; border-top: 1px solid #e6e6e6; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 16px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.download-button:hover { background: var(--soft); border-color: #999; }
.image-stage { border: 1px solid #ececec; border-radius: var(--radius); padding: 12px; background: #fff; }
#result-image { display: block; width: 100%; height: auto; max-width: 380px; margin: auto; }
.save-hint { text-align: center; margin-top: 12px; }
@media (max-width: 600px) { .workspace { width: calc(100% - 40px); margin-top: 36px; } .page-header { margin-bottom: 30px; } h1 { font-size: 26px; } .upload-area { padding: 14px; gap: 10px; } .result { margin-top: 20px; padding-top: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
