.profile-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:1rem;margin-top:1.5rem}.profile-card{display:flex;align-items:center;gap:1.25rem}.profile-photo-frame{width:112px;height:112px;flex:0 0 112px;border:2px solid var(--gold);border-radius:28px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#1a2028,#090c10);box-shadow:0 16px 32px rgba(0,0,0,.25)}.member-profile-photo{width:100%;height:100%;object-fit:cover}.member-profile-initials{font:700 2.4rem/1 var(--display);color:var(--gold)}.profile-upload{display:inline-flex;cursor:pointer}.profile-upload+.button{margin-left:.5rem}.preference-set{display:grid;gap:.7rem;margin:1.25rem 0;padding:1rem;border:1px solid var(--line);border-radius:18px}.preference-set legend{padding:0 .4rem;color:var(--gold);font-weight:800}.privacy-card{border-left:3px solid var(--gold)}.account-security-heading{align-items:center;margin-bottom:1rem}.account-shell a{display:inline-flex;align-items:center;min-height:44px}html[data-member-contrast="high"]{--muted:#e5e8ec;--line:#806621;--panel:#111821;--panel2:#18222d}html[data-member-contrast="high"] .button:not(.primary){border-color:#d8ad38;color:#fff}html[data-member-motion="reduced"]{scroll-behavior:auto}html[data-member-motion="reduced"] *{animation:none!important;transition:none!important}.state{color:var(--gold);font-size:.75rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:760px){.profile-layout{grid-template-columns:1fr}.profile-card{align-items:flex-start}.profile-photo-frame{width:88px;height:88px;flex-basis:88px;border-radius:22px}.profile-upload{width:100%;justify-content:center}.profile-upload+.button{width:100%;margin:.65rem 0 0}.account-security-heading{align-items:flex-start}}
@media(max-width:420px){.profile-card{display:grid}.profile-photo-frame{width:80px;height:80px}}

/* V1.9.6 authenticated personalization. Signed-out Nation Gate styling remains unchanged. */
.prompt-grid,.results-summary-grid,.result-history-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.contextual-prompt{display:flex;min-height:220px;flex-direction:column}.contextual-prompt .resource-actions{margin-top:auto}.lesson-unavailable{margin-top:auto;padding:.7rem .8rem;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-weight:750}.receipt-reference{margin-top:1rem;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.75rem;overflow-wrap:anywhere}.result-history-card details{margin:1rem 0}.theme-field{max-width:440px}
html[data-member-theme="light"]{color-scheme:light;--ink:#f5f0e6;--panel:#fffdf8;--panel2:#f8f1e5;--ivory:#111820;--muted:#4f5963;--line:rgba(113,78,15,.28);--ok:#16663a;--danger:#9f241d}
html[data-member-theme="light"] body{background:radial-gradient(circle at 78% 4%,rgba(201,156,67,.16),transparent 34rem),linear-gradient(145deg,#f8f3e9,#efe6d6 48%,#faf7f0)}
html[data-member-theme="light"] .site-header{background:rgba(255,252,246,.97)}
html[data-member-theme="light"] .notice,html[data-member-theme="light"] .journey-boundary{background:rgba(255,255,255,.72)}
@media(prefers-color-scheme:light){html[data-member-theme="system"]{color-scheme:light;--ink:#f5f0e6;--panel:#fffdf8;--panel2:#f8f1e5;--ivory:#111820;--muted:#4f5963;--line:rgba(113,78,15,.28);--ok:#16663a;--danger:#9f241d}html[data-member-theme="system"] body{background:radial-gradient(circle at 78% 4%,rgba(201,156,67,.16),transparent 34rem),linear-gradient(145deg,#f8f3e9,#efe6d6 48%,#faf7f0)}html[data-member-theme="system"] .site-header{background:rgba(255,252,246,.97)}}
@media(max-width:1050px){.prompt-grid,.results-summary-grid,.result-history-grid{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.prompt-grid,.results-summary-grid,.result-history-grid{grid-template-columns:1fr}.contextual-prompt{min-height:0}}
