
.gr-page { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }
.gr-hero { 
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%); 
    color: #fff; 
    border-radius: 20px; 
    padding: 35px 25px; 
    margin-bottom: 30px; 
    text-align: center;
}

.gr-flex { display: flex; gap: 30px; flex-wrap: wrap; }
.gr-controls { flex: 1; min-width: 300px; background: #fff; border-radius: 20px; padding: 25px; border: 1px solid #e2e8f0; }
.gr-preview-container { flex: 1.2; min-width: 350px; position: sticky; top: 20px; }

.gr-preview {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 20px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: #fff;
    transition: 0.5s;
}

.gr-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-bottom: 20px; }
.gr-theme-item { 
    aspect-ratio: 1; border-radius: 12px; cursor: pointer; border: 3px solid transparent; 
    background-size: cover; background-position: center; transition: 0.2s;
}
.gr-theme-item.active { border-color: #3b7cb5; transform: scale(1.1); }

.gr-text-area { width: 100%; padding: 15px; border: 1px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: 14px; margin-bottom: 20px; outline: none; }
.gr-text-area:focus { border-color: #3b7cb5; }

.gr-btn { width: 100%; padding: 15px; background: #1e3a5f; color: #fff; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; }
.gr-btn:hover { background: #1a304e; transform: translateY(-2px); }

/* Overlay ornaments */
.gr-ornament-top { position: absolute; top: 20px; width: 60%; opacity: 0.5; }
.gr-ornament-bottom { position: absolute; bottom: 20px; width: 40%; opacity: 0.5; }

.gr-quote-list { display: flex; flex-direction: column; gap: 10px; max-height: 200px; overflow-y: auto; margin-bottom: 20px; padding: 5px; }
.gr-quote-item { padding: 10px; background: #f8fafc; border-radius: 8px; font-size: 13px; cursor: pointer; border: 1px solid #e2e8f0; }
.gr-quote-item:hover { background: #eff6ff; border-color: #3b7cb5; }

@media (max-width: 600px) { .gr-hero { padding: 25px 15px; } .gr-hero h1 { font-size: 1.5rem; } }
