/* My Gaps and My Ideas (Step 1377). One stylesheet for both pages, because
 * they are the same page about two different things, and two copies of these
 * rules would drift apart. The field and button heights are set together, in
 * one place, so every row reads as one straight line. */
.account-page { display: flex; align-items: flex-start; gap: 1.5rem; }
.account-main { flex: 1 1 auto; min-width: 0; }
@media (max-width: 800px) { .account-page { flex-direction: column; } .account-sidebar { width: 100%; } }

.account-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-5); padding: 1.1rem 1.25rem; margin-bottom: 1.1rem; }
.account-card h2 { margin: 0 0 0.7rem; font-size: 1.1rem; }
.notice-text { font-size: 0.85rem; color: var(--text-muted); margin: 0.6rem 0; }
.error-text { font-size: 0.9rem; color: #991b1b; margin: 0.6rem 0; }
.good-text { font-size: 0.9rem; color: #166534; margin: 0.6rem 0; }

.contrib-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.field { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; }
.field-wide { flex-basis: 100%; }
.field label { font-size: 0.8rem; font-weight: 700; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea { box-sizing: border-box; width: 100%; font: inherit; font-size: 0.9rem; padding: 0 0.6rem; border: 1px solid var(--border-dark, #94a3b8); border-radius: 6px; background: var(--white); color: var(--text-main); }
/* Every typed-in box, every dropdown and every button in one row is exactly
 * this tall. A dropdown is given its height here because a browser decides
 * its own otherwise. */
.field input, .field select, .contrib-form .btn, .contrib-actions .btn { height: 2.5rem; box-sizing: border-box; }
.field textarea { padding: 0.5rem 0.6rem; resize: vertical; }
.field-hint { font-size: 0.75rem; color: var(--text-muted); margin: 0.25rem 0 0; }

.contrib-goals { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; min-height: 2.5rem; }
.contrib-goals label { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 400; margin: 0; }
.contrib-goals input { width: auto; height: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 1.1rem; border: 1px solid transparent; border-radius: 6px; font: inherit; font-weight: 600; font-size: 0.88rem; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent-blue); color: var(--white); border-color: var(--accent-blue); }
.btn-secondary { background: var(--white); color: var(--text-main); border-color: var(--border-dark, #94a3b8); }
.btn-danger { background: var(--white); color: #991b1b; border-color: #fca5a5; }

.contrib { border-top: 1px solid var(--border-color); padding: 0.85rem 0; overflow-wrap: anywhere; }
.contrib:first-child { border-top: 0; padding-top: 0; }
.contrib h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.contrib-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.contrib p { margin: 0.3rem 0; font-size: 0.9rem; }
.contrib ul { margin: 0.3rem 0 0.3rem 1.1rem; font-size: 0.9rem; }
.contrib-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.contrib-state { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.15rem 0.45rem; border-radius: 4px; border: 1px solid var(--border-dark, #94a3b8); }
.contrib-state.is-saved { background: #f1f5f9; }
.contrib-state.is-pending { background: #fffbeb; border-color: #fcd34d; }
.contrib-state.is-approved { background: #f0fdf4; border-color: #86efac; }
.contrib-state.is-rejected { background: #fef2f2; border-color: #fca5a5; }

.account-main .page-title-block { margin-bottom: 1rem; }
.account-main .game-rules { margin-bottom: 1rem; }
