.brand-generator h2{
    font-size: clamp(2rem, 3.2rem, 3.2rem);
    font-weight: 700;
    line-height: 1.08;
	text-align:center;
}
.brand-generator p{
    font-size: clamp(1rem, 1.2rem, 1.25rem);
    margin-top: 20px;
    color: var(--muted);
	text-align:center;
}
    /* ── CHAT ── */
    #paletteChat { width:800px;max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px;     padding-top: 32px;}

    .chat-msg { display: flex; align-items: flex-end; gap: 10px; animation: fadeUp 0.3s ease; }
    .chat-msg.user { flex-direction: row-reverse; }
    @keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

    .chat-avatar { width:34px; height:34px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:16px; }
    .avatar-ai   { background: var(--primary, #673ab7); color:#fff; }
    .avatar-user { background: #e2e8f0; color:#334155; }

    .chat-bubble { max-width:82%; padding:12px 16px; border-radius:18px; font-size:15px; line-height:1.5; }
    .bubble-ai   { background:#f1f5f9; color:#1e293b; border-bottom-left-radius:4px; }
    .bubble-user { background:var(--primary, #673ab7); color:#fff; border-bottom-right-radius:4px; }

    .typing-dots { display:flex; gap:5px; padding:4px 2px; }
    .typing-dots span { width:7px; height:7px; background:#94a3b8; border-radius:50%; animation:bounce 1.2s infinite; }
    .typing-dots span:nth-child(2) { animation-delay:.2s; }
    .typing-dots span:nth-child(3) { animation-delay:.4s; }
    @keyframes bounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-6px)} }

    /* ── INPUT AREA ── */
    #palInputArea { max-width:800px; margin:0 auto; }

    .color-input-row { display:flex; align-items:center; gap:10px; margin-top:32px; }
    .color-swatch-btn { width:46px; height:46px; border-radius:12px; border:2px solid #e2e8f0; cursor:pointer; padding:0; flex-shrink:0; overflow:hidden; }
    .color-swatch-btn input[type="color"] { width:200%; height:200%; border:none; outline:none; cursor:pointer; margin:-25% 0 0 -25%; }
    .hex-input { flex:1; padding:12px 16px; border:2px solid #e2e8f0; border-radius:24px; font-size:15px; outline:none; transition:border-color .2s; font-family:monospace; }
    .hex-input:focus { border-color:var(--primary, #673ab7); }
    .send-btn { width:46px; height:46px; border-radius:50%; background:var(--primary, #673ab7); color:#fff; border:none; cursor:pointer; font-size:18px; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:opacity .2s; }
    .send-btn:hover { opacity:.85; }

    /* ── MODE CHIPS ── */
    .mode-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
    .mode-chip { padding:8px 14px; border:2px solid #e2e8f0; border-radius:20px; font-size:13px; cursor:pointer; background:#fff; transition:all .2s; user-select:none; }
    .mode-chip:hover  { border-color:var(--primary,#673ab7); color:var(--primary,#673ab7); }
    .mode-chip.active { border-color:var(--primary,#673ab7); background:var(--primary,#673ab7); color:#fff; }
    .chip-send-btn { width:auto; border-radius:24px; padding:0 20px; height:42px; font-size:14px; margin-top:6px; }

    /* ── PALETTE RESULT ── */
    .palette-result-wrap { width:100%; }

    .palette-section { margin-bottom:18px; }
    .palette-section-title { font-size:12px; font-weight:700; color:#94a3b8; text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px; }

    .palette-row { display:flex; gap:10px; flex-wrap:wrap; }

    .color-card { border-radius:12px; overflow:hidden; border:1.5px solid #e2e8f0; flex:1; min-width:100px; transition:box-shadow .2s; cursor:pointer; }
    .color-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.1); }
    .color-swatch { height:70px; width:100%; }
    .color-meta { padding:8px 10px; background:#fff; }
    .color-hex  { font-size:13px; font-weight:700; font-family:monospace; color:#1e293b; }
    .color-name { font-size:11px; color:#94a3b8; margin-top:2px; }
    .color-copy-hint { font-size:10px; color:#cbd5e1; margin-top:2px; }

    /* Palette full-width strip */
    .palette-strip { display:flex; border-radius:14px; overflow:hidden; height:80px; width:100%; }
    .strip-block { flex:1; cursor:pointer; transition:flex .2s; }
    .strip-block:hover { flex:2; }

    /* Contrasto badge */
    .contrast-badge { display:inline-block; font-size:11px; font-weight:700; padding:2px 7px; border-radius:10px; margin-top:4px; }
    .contrast-pass  { background:#dcfce7; color:#16a34a; }
    .contrast-fail  { background:#fee2e2; color:#dc2626; }

    /* CSS vars preview */
    .css-preview { background:#1e293b; color:#e2e8f0; border-radius:10px; padding:14px 16px; font-family:monospace; font-size:12px; line-height:1.7; margin-top:6px; position:relative; }
    .css-copy-btn { position:absolute; top:10px; right:10px; background:#334155; color:#e2e8f0; border:none; border-radius:6px; padding:4px 10px; font-size:11px; cursor:pointer; }
    .css-copy-btn:hover { background:#475569; }

    .restart-btn { margin:0 auto; display:block; background:transparent; border:1.5px solid #cbd5e1; color:#64748b; padding:8px 20px; border-radius:20px; font-size:13px; cursor:pointer; transition:all .2s; }
    .restart-btn:hover { border-color:var(--primary,#673ab7); color:var(--primary,#673ab7); }

    .ad-space { width:100%; height:90px; background:#eee; display:flex; align-items:center; justify-content:center; color:#999; font-size:12px; border-radius:8px; margin:8px 0; }

    .copied-flash { color:#16a34a !important; }