/* Compact heading controls; portrait is 56px x 1.3, description spans below them. */
html[data-design][data-page] #main#main .profile-view-compact .creator-profile-choice{position:relative;display:grid;grid-template-columns:72.8px minmax(0,1fr) 32px 32px;grid-template-rows:minmax(32px,auto) auto auto auto;gap:6px 8px;padding:12px 14px!important;border:1px solid var(--edge);text-align:start}
html[data-design][data-page] #main#main .profile-view-compact .creator-profile-choice .profile-settings-icon{position:static!important;inset:auto!important;margin:0!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;padding:5px!important;border-radius:9px!important;align-self:center}
html[data-design][data-page] #main#main .profile-view-compact .creator-profile-choice .profile-settings-icon svg{width:18px!important;height:18px!important}
html[data-design][data-page] #main#main .profile-view-compact [data-profile-options]{grid-column:3;grid-row:1}
html[data-design][data-page] #main#main .profile-view-compact [data-my-profile-edit]{grid-column:4;grid-row:1}
html[data-design][data-page] #main#main .profile-view-compact .creator-profile-choice.profile-has-moderation{grid-template-columns:72.8px minmax(0,1fr) 28px 32px 32px;column-gap:6px}
html[data-design][data-page] #main#main .profile-view-compact .profile-has-moderation .profile-mod-icon{grid-column:3;grid-row:1;width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;padding:5px!important}
html[data-design][data-page] #main#main .profile-view-compact .profile-has-moderation .profile-mod-icon svg{width:16px!important;height:16px!important}
html[data-design][data-page] #main#main .profile-view-compact .profile-has-moderation [data-profile-options]{grid-column:4}
html[data-design][data-page] #main#main .profile-view-compact .profile-has-moderation [data-my-profile-edit]{grid-column:5}
html[data-design][data-page] #main#main .profile-view-compact .profile-identity,html[data-design][data-page] #main#main .profile-view-compact .profile-identity>div{display:contents!important}
html[data-design][data-page] #main#main .profile-view-compact .profile-identity>img{grid-column:1;grid-row:1/span 2;width:72.8px!important;height:72.8px!important;margin:0!important;align-self:start}
html[data-design][data-page] #main#main .profile-view-compact .profile-identity h1{grid-column:2;grid-row:1;font-size:1.2rem!important;line-height:1.2!important;margin:0!important;text-align:start;overflow-wrap:anywhere;min-width:0;align-self:center}
html[data-design][data-page] #main#main .profile-view-compact .creator-profile-bio{grid-column:2/-1;grid-row:2;margin:0!important;font-size:.775rem!important;line-height:1.4!important;text-align:start;max-width:none;min-width:0;align-self:start}
html[data-design][data-page] #main#main .profile-view-compact .creator-profile-stats{grid-column:1/-1;grid-row:3;width:100%;margin:6px 0 0!important;padding-top:8px;border-top:1px solid var(--edge)}
html[data-design][data-page] #main#main .profile-view-compact .profile-footer{grid-column:1/-1;grid-row:4;margin:0!important;padding:0!important;border:0}
html[data-design][data-page] #main#main .profile-view-compact .profile-share-message{grid-column:1/-1}
html[data-design][data-page] #main#main .profile-view-compact .creator-profile-bio{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;max-height:5.6em;overflow:hidden}
.profile-bio-counter{font-size:.8rem;font-weight:400;color:var(--muted)}
.profile-bio-counter.is-over-limit,.profile-bio-notice{font-size:.8rem;font-weight:400;color:var(--accent)}
.profile-bio-notice:empty{display:none}
.personal-visibility-tabs{grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0 16px}
.personal-visibility-tabs button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;padding:12px 4px;font-size:clamp(.78rem,3.3vw,1rem)}
.personal-visibility-tabs button small{font-size:.8em;font-weight:400}
.personal-search-toggle{display:grid;place-items:center;flex:none;width:36px;height:36px;min-height:36px;margin-inline-start:auto;padding:7px;border:1px solid var(--edge);border-radius:10px;background:var(--surface);color:var(--accent);cursor:pointer;align-self:center}
.personal-search-toggle svg{display:block;width:20px;height:20px}
.personal-search-toggle[aria-expanded=true]{background:var(--soft)}
.personal-search-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.personal-profile-search{margin:0 0 14px}
.own-profile-section-tabs{margin:0 0 18px}
html[data-design][data-page] #main#main .own-profile-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;border-bottom:1px solid var(--edge)}
html[data-design][data-page] #main#main .own-profile-tabs>button{min-width:0;min-height:48px;padding:12px 6px;white-space:normal;font-size:1rem}
.personal-profile-search[hidden]{display:none!important}
.personal-profile-search .personal-recipe-search{width:100%;box-sizing:border-box;margin:0}
.own-profile-recipe-search{display:flex;align-items:center;gap:10px;min-height:46px;margin-top:14px;padding:10px 14px;border:1px solid var(--edge);border-radius:16px;background:var(--surface);color:var(--muted);box-sizing:border-box}
.own-profile-recipe-search>svg{flex:none}
html[data-design][data-page] #main#main#main.main .own-profile-recipe-search>input.personal-recipe-search{flex:1;min-width:0;height:auto!important;min-height:24px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--ink);font:inherit!important;font-size:16px!important}
.own-profile-recipe-search:focus-within{outline:2px solid var(--accent);outline-offset:2px}
html[data-design][data-page] #main#main#main.main .own-profile-recipe-search>input.personal-recipe-search:focus{outline:none!important}
.personal-profile-search-actions{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(92px,140px);align-items:stretch;gap:8px;margin:0 0 18px}
.personal-profile-search-actions .personal-recipe-search{min-width:0;align-self:stretch}
.personal-profile-search-actions .personal-profile-add{display:flex;align-items:center;justify-content:center;gap:7px;max-width:155px;margin:0;padding:10px 14px;font-family:inherit;font-size:.9rem;line-height:1.25}
@media(max-width:400px){.personal-profile-search-actions{gap:8px}.personal-profile-search-actions .personal-profile-add{max-width:112px;padding:9px 10px;gap:5px;font-size:.8rem}}
.profile-view-picker{position:relative;min-width:0;margin:0;padding:0;border:0;background:transparent;align-self:stretch}
.profile-view-picker>summary{display:flex;align-items:center;justify-content:center;gap:6px;height:50px;box-sizing:border-box;min-width:92px;max-width:112px;min-height:50px;margin:0;padding:8px;border:1px solid var(--accent,#a5522e);border-radius:13px;background:var(--soft,#e3ecef);color:var(--accent,#a5522e);font:700 13px/1.2 Georgia,serif;list-style:none;cursor:pointer}
.profile-view-picker>summary::-webkit-details-marker{display:none}.profile-view-picker>summary>svg{flex:none}.profile-view-picker[open]>summary{background:var(--accent,#a5522e);color:#fff}.profile-view-picker>summary:focus-visible,.profile-view-menu button:focus-visible{outline:2px solid var(--accent,#a5522e);outline-offset:3px}
.profile-view-menu{position:absolute;z-index:30;top:calc(100% + 8px);left:50%;transform:translateX(-50%);width:222px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:6px;border:1px solid var(--edge,#ccd6da);border-radius:16px;background:var(--card,#fffdf9);box-shadow:0 8px 22px #1d35432b}
.profile-view-picker:not([open])>.profile-view-menu{display:none}.profile-view-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;margin:0;padding:11px 12px;text-align:left;border:0;border-radius:10px;background:transparent;color:var(--ink,#213846);font:700 .9rem/1.3 Georgia,serif;cursor:pointer}.profile-view-menu button[aria-checked=true]{background:var(--soft,#e3ecef);color:var(--accent,#a5522e)}.profile-view-menu small{font-weight:400}.profile-view-check{width:18px;text-align:center}
html[data-design] #main .personal-profile-search-actions>.personal-recipe-search,html[data-design] #main .personal-profile-search-actions>.personal-profile-add{height:50px;min-height:50px;box-sizing:border-box}.personal-profile-search-actions .personal-recipe-search{padding:10px;font-size:.9rem}
@media(max-width:400px){.personal-profile-search-actions{grid-template-columns:minmax(0,1fr) auto 96px;gap:6px}.profile-view-picker>summary{min-width:80px;max-width:96px;padding:9px 7px;font-size:.78rem;gap:4px}.personal-profile-search-actions .personal-profile-add{padding:8px;font-size:.78rem}.personal-profile-search-actions .personal-recipe-search{padding:10px 8px;font-size:.82rem}}
html[data-design][data-page]:not([data-page=home]) #main#main.main .personal-profile-search-actions>.btn.personal-profile-add{padding:8px!important;font-size:14px!important;line-height:1.2!important;white-space:normal!important;max-width:none!important}
@media(max-width:400px){html[data-design][data-page]:not([data-page=home]) #main#main.main .personal-profile-search-actions>.btn.personal-profile-add{font-size:12px!important}html[data-design][data-page]:not([data-page=home]) #main#main.main .personal-profile-search-actions>.personal-recipe-search{font-size:13px!important;padding:10px 8px!important}}

html[data-design][data-page] #main#main .profile-shortcuts.profile-shortcuts-strip{display:flex!important;flex-wrap:nowrap!important;align-items:stretch;gap:10px;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:2px;scrollbar-width:thin;padding:2px 2px 8px}
html[data-design][data-page] #main#main .profile-shortcuts.profile-shortcuts-strip>.btn{display:grid!important;grid-template-columns:24px minmax(0,1fr);flex:0 0 155px!important;width:155px!important;min-width:155px!important;min-height:64px!important;box-sizing:border-box;margin:0!important;padding:12px 10px!important;scroll-snap-align:start;white-space:normal!important}
.profile-shortcuts-strip:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:14px}

/* Compact identity and statistics shared by personal and visited profiles. */
html[data-design][data-page] #main#main .creator-profile-choice.own-profile-header{position:relative;display:flex;flex-direction:column;gap:14px;grid-template-columns:none;grid-template-rows:none;max-width:none;min-height:0;margin:0 0 18px;padding:0!important;border:0!important;border-radius:0!important;background:transparent;box-shadow:none;text-align:start}
.own-profile-identity{display:flex;align-items:center;gap:14px;min-width:0;padding-inline-end:26px}
.own-profile-identity>img{flex:none;width:76px;height:76px;object-fit:cover;border-radius:50%;background:var(--soft)}
.own-profile-identity>div{min-width:0}
html[data-design] #main#main .own-profile-identity h1{margin:0;font-size:clamp(1.4rem,5.4vw,2rem);line-height:1.15;overflow-wrap:anywhere}
.own-profile-bio{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;margin:8px 0 0;font-size:.86rem;line-height:1.45;overflow-wrap:anywhere;white-space:pre-line}
.own-profile-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.own-profile-controls,.own-profile-share-tools{display:flex;align-items:center;gap:8px;min-width:0}
html[data-design][data-page] #main#main .own-profile-header .own-profile-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;width:auto;margin:0;padding:9px 12px;border:1px solid var(--edge);border-radius:11px;background:var(--surface);color:var(--ink);font-size:.85rem;line-height:1.2;font-weight:700}
.own-profile-action svg{flex:none;width:19px;height:19px}
.own-profile-controls [data-profile-options]{flex:none}
.own-profile-controls [data-my-profile-edit]{min-width:0;white-space:normal}
.own-profile-action>span{min-width:0}
html[data-design][data-page] #main#main .own-profile-header [data-my-profile-edit]{background:var(--accent);border-color:var(--accent);color:var(--accent-text,#fff)}
html[data-design][data-page] #main#main .own-profile-header .own-profile-mod{position:absolute;inset-inline-end:0;top:0;display:grid;place-items:center;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;opacity:.75}
.own-profile-mod:hover{opacity:1;background:var(--soft)}
.own-profile-mod:focus-visible{outline:2px solid var(--accent);outline-offset:2px;opacity:1}
html[data-design][data-page] #main#main .own-profile-share-tools .btn{box-sizing:border-box;display:grid;place-items:center;flex:none;width:46px;min-width:46px;height:46px;min-height:46px;margin:0;padding:10px!important;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--edge));border-radius:12px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));color:var(--accent)}
html[data-design][data-page] #main#main .own-profile-share-tools .btn svg{width:22px;height:22px}
html[data-design][data-page] #main#main .own-profile-share-tools .btn:hover{background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
.own-profile-networks .profile-social-links{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px;margin:0}
.own-profile-networks .profile-social-links a{display:grid;place-items:center;width:38px;height:38px;box-sizing:border-box;padding:8px;border:0;border-radius:10px;background:var(--soft);text-decoration:none;color:var(--ink)}
.own-profile-networks svg{width:22px;height:22px}
.own-profile-networks .profile-social-links .profile-brand-logo{display:block;width:24px;height:24px;max-width:none;object-fit:contain;border:0;border-radius:0;background:transparent;box-shadow:none;filter:none;margin:0}
.own-profile-header .profile-share-message{font-size:.8rem;margin:0;color:var(--muted)}
html[data-design][data-page] #main#main :is(.my-profile-view,.other-profile-view) .own-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 18px!important;padding:12px 0;border-top:1px solid var(--edge);border-bottom:1px solid var(--edge)}
.own-profile-stats>div,.own-profile-stats>.creator-connection-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;gap:4px}
html[data-design] #main#main .own-profile-stats strong{font-size:1.25rem}
html[data-design] #main#main .own-profile-stats span{font-size:.8rem}
@media(max-width:380px){html[data-design][data-page] #main#main .own-profile-header .own-profile-action{gap:5px;padding:9px 10px;font-size:.8rem}.own-profile-controls,.own-profile-share-tools{gap:5px}.own-profile-toolbar{gap:6px}.own-profile-identity{gap:10px}.own-profile-identity>img{width:68px;height:68px}}

html[data-design][data-page] #main#main .other-profile-header .other-profile-controls>.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:46px!important;width:auto;margin:0;padding:9px 12px!important;border:1px solid var(--edge);border-radius:11px;background:var(--surface);color:var(--ink);font-size:.85rem!important;line-height:1.2;white-space:normal}
html[data-design][data-page] #main#main .other-profile-header .other-profile-controls>.creator-follow-btn{background:var(--accent);border-color:var(--accent);color:var(--accent-text,#fff)}
html[data-design][data-page] #main#main .other-profile-header .profile-safety-options{inset-inline-end:0;inset-inline-start:auto;top:0;width:28px;min-width:28px;height:28px;min-height:28px!important;padding:4px!important;border:0;background:transparent;color:var(--muted)}
.other-profile-controls{flex-wrap:wrap}
.other-profile-section-tabs{margin:0 0 18px!important}
html[data-design][data-page] #main#main .other-profile-recipes-heading{margin:0 0 18px!important;padding:12px 6px;border-bottom:2px solid var(--accent);text-align:center;font-size:1rem!important;line-height:1.5;color:var(--accent);font-style:normal}
.personal-recipes-empty strong{display:block;color:var(--ink);font-size:1.05rem}
.personal-recipes-empty p{margin:10px 0 16px;color:var(--muted);font-size:.9rem;line-height:1.5}
