* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #fdfdff; color: #333366; min-height: 100vh; padding: 20px; }
body * { transition: color 0.2s, background-color 0.2s; }

header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 2px solid #ffb6c1; }
.logo { font-size: 1.5rem; font-weight: bold; color: #ff69b4; text-shadow: 0 0 10px rgba(255,105,180,0.5); }


.container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.panel { background: #fffbf0; padding: 20px; border-radius: 12px; border: 2px solid #ffb6c1; }


.subtitle { color: #666699; font-size: 0.9rem; margin-bottom: 20px; }


.upload-box { border: 3px dashed #ff69b4; border-radius: 8px; padding: 20px; text-align: center; cursor: margin; min-height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.upload-box img { max-width: 100%; max-height: 200px; border-radius: 6px; }


.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 20px 0; }
.preset-card { background: #fff0f5; color: #333366; border: 2px solid #ffb6c1; border-radius: 6px; padding: 10px; cursor: pointer; }
.preset-card.active { border-color: #ff69b4; background: #ffb6c1; color: #ffffff; }


textarea { width: 100%; background: #fff0f0; border: 2px solid #ffb6c1; color: #333366; padding: 10px; border-radius: 6px; margin: 10px 0 20px 0; resize: vertical; }


button[type="submit"] { width: 100%; background: #ff69b4; border: none; color: #ffffff; font-weight: bold; padding: 12px; border-radius: 6px; cursor: pointer; font-size: 1rem; }


.hidden { display: none !important; }
.result-container img { width: 100%; border-radius: 8px; margin-top: 15px; }
.action-bar a { display: block; text-align: center; background: #ff69b4; color: #ffffff; text-decoration: none; padding: 8px; border-radius: 6px; font-weight: bold; margin-top: 10px; }


@media (max-width: 800px) {
  .container { grid-template-columns: 1fr; }
}