* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
.image-page { max-width: 1024px; padding: 28px 16px 48px; margin: auto; }
h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 10px; } h2 { font-size: 19px; margin: 0; } h3 { font-size: 16px; }
.header { margin: 0 0 24px; } .privacy { color: #047857; font-size: 14px; }
.panel { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; min-width: 0; }
.section-heading { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
button, .button { border-radius: 6px; border: 1px solid #cbd5e1; padding: 10px 14px; min-height: 44px; font: inherit; font-size: 14px; background: white; color: #334155; cursor: pointer; transition: background-color .15s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { background: #f1f5f9; } .primary { background: #2563eb; border-color: #2563eb; color: white; } .primary:hover { background: #1d4ed8; }
button:disabled { opacity: .5; cursor: not-allowed; } :focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; } [hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 2000; background: white; padding: 12px; } .skip-link:focus { top: 12px; }
label, legend { font-size: 14px; font-weight: 500; } label { display: block; }
input, select { font: inherit; font-size: 16px; color: #1e293b; } input:not([type="checkbox"]), select { width: 100%; min-width: 0; margin-top: 6px; border: 1px solid #cbd5e1; border-radius: 6px; background: white; padding: 10px; min-height: 44px; }
input[type="color"] { padding: 4px; cursor: pointer; } input:disabled { background: #f1f5f9; }
fieldset { border: 1px solid #cbd5e1; border-radius: 6px; min-width: 0; margin: 0; padding: 0 12px 6px; } .check { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; } input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; } .settings-title { margin: 24px 0 16px; } .generate-actions { margin-top: 24px; }
.drop-zone { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 18px; background: #f8fafc; } .drop-zone.dragging { border-color: #2563eb; background: #eff6ff; }
.hint { font-size: 13px; color: #475569; margin: 8px 0; overflow-wrap: anywhere; }
.status { border-radius: 6px; padding: 12px 16px; overflow-wrap: anywhere; background: #eff6ff; color: #1d4ed8; } .status.error { background: #fef2f2; color: #b91c1c; }
.result { margin: 24px 0; } .previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } figure { margin: 0; min-width: 0; } figcaption { font-size: 14px; margin: 8px 0; }
.image-stage { min-height: 200px; height: 300px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 6px; display: flex; align-items: center; justify-content: center; background-color: #fff; background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e8f0 75%), linear-gradient(-45deg, transparent 75%, #e2e8f0 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.image-stage img { max-width: 100%; max-height: 100%; object-fit: contain; } .image-stage span { padding: 8px 12px; background: white; color: #475569; font-size: 14px; }
.guide { font-size: 14px; color: #475569; } .guide li { margin: 8px 0; } .guide ol { padding-left: 22px; } .related { display: flex; flex-wrap: wrap; gap: 12px 24px; } a { color: #2563eb; }
@media (max-width: 700px) { .panel { padding: 18px; } .image-page { padding-top: 20px; } .section-heading { flex-wrap: wrap; gap: 12px; } .settings, .previews { grid-template-columns: 1fr; gap: 12px; } .image-stage { height: 260px; } .generate-actions button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { button, .button { transition: none; } }
