/* Account Center choice and owner-selected profile grid. No Home/Explore overrides. */
.profile-layout-settings{margin:24px 0 8px;color:var(--iris-text,#211e25)}
.account-center .profile-layout-settings h3{margin:0 0 8px;font-size:18px;letter-spacing:-.025em}
.profile-layout-help{margin:0 0 16px;color:var(--iris-muted,#817a87);font-size:14px;line-height:1.5}
.profile-layout-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;border:0;min-width:0}
.profile-layout-option{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px;border:1px solid var(--iris-line,#e8e4eb);border-radius:16px;background:var(--iris-surface,#fff);color:var(--iris-text,#211e25);cursor:pointer;transition:border-color .15s,background .15s}
.profile-layout-option.selected{border-color:var(--iris-accent,#7052e7);box-shadow:inset 0 0 0 1px var(--iris-accent,#7052e7);background:var(--iris-accent-soft,#eee9ff)}
.profile-layout-option:focus-within{outline:2px solid var(--iris-accent,#7052e7);outline-offset:3px}
.profile-layout-preview{display:grid;height:94px;gap:4px;padding:9px;border:1px solid var(--iris-line,#e8e4eb);border-radius:8px;background:var(--iris-bg,#fff);overflow:hidden}
.profile-layout-preview[data-layout="grid"]{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}
.profile-layout-preview i{display:block;position:relative;background:var(--iris-surface-3,#eeebf3);border-radius:2px}
.profile-layout-preview[data-layout="grid"] i:nth-child(3n+1){background:var(--iris-accent-soft,#eee9ff)}
.profile-layout-preview[data-layout="threads"]{grid-template-rows:repeat(3,minmax(0,1fr));gap:8px}
.profile-layout-preview[data-layout="threads"] i{margin-left:22px;border-radius:3px}
.profile-layout-preview[data-layout="threads"] i::before{content:'';position:absolute;left:-22px;top:0;width:16px;height:16px;border-radius:50%;background:var(--iris-accent-soft,#eee9ff)}
.profile-layout-preview[data-layout="threads"] i::after{content:'';position:absolute;left:7px;right:16px;top:6px;height:3px;border-radius:3px;background:var(--iris-muted,#817a87);opacity:.4}
.profile-layout-name{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px}
.profile-layout-option .profile-layout-radio{appearance:auto;-webkit-appearance:radio;flex:0 0 18px;width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:var(--iris-accent,#7052e7);box-shadow:none}
.profile-layout-description{color:var(--iris-muted,#817a87);font-size:12px;line-height:1.4}
.profile-layout-options:disabled{opacity:.7;cursor:progress}
.profile-layout-status{min-height:20px;margin:10px 0 0;color:var(--iris-muted,#817a87);font-size:13px;line-height:1.45}
.profile-layout-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#pane .profile-post-list.profile-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;width:100%;padding:0;margin:0;background:var(--iris-bg,#fff)}
#pane .profile-grid-tile{position:relative;display:block;isolation:isolate;box-sizing:border-box;width:100%;min-width:0;min-height:0;aspect-ratio:3/4;overflow:hidden;margin:0;padding:0;border:0;border-radius:0;background:var(--iris-surface-2,#f6f5f8);color:var(--iris-text,#211e25);text-align:left;cursor:pointer;font:inherit;touch-action:pan-y}
#pane .profile-grid-tile:focus-visible{outline:3px solid var(--iris-accent,#7052e7);outline-offset:-3px;z-index:1}
#pane .profile-grid-media{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center;margin:0;padding:0;border:0;border-radius:0;background:var(--iris-surface-2,#f6f5f8);pointer-events:none}
#pane .profile-grid-media[hidden]{display:none!important}
.profile-grid-fallback{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:9px;padding:clamp(10px,3vw,20px);overflow:hidden}
.profile-grid-glyph{display:block;width:20px;height:20px;color:var(--iris-accent,#7052e7);flex-shrink:0}
.profile-grid-glyph svg{display:block;width:100%;height:100%}
.profile-grid-text{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap;font-size:clamp(11px,2.9vw,16px);font-weight:500;line-height:1.45}
#pane .profile-grid-marker{position:absolute;top:8px;right:8px;z-index:1;display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#0007;color:#fff;pointer-events:none}
.profile-grid-marker svg{width:17px;height:17px;filter:drop-shadow(0 1px 2px #0004)}
@media(prefers-reduced-motion:reduce){.profile-layout-option{transition:none}}
