/* 1.1.302: Profile page (photo + name) and the ☰ Menu that opens the old Settings. Nothing here is fixed or sticky. */
#profile-view.pm-home>:not(.profile-home){display:none!important}
#profile-view:not(.pm-home)>.profile-home{display:none}
.profile-menu-bar{display:none}
#profile-view.pm-menu>.profile-menu-bar{display:flex;align-items:center;gap:8px;margin:0 0 12px}
/* 1.1.323 owner: no logo / Admin Dashboard picture between the ☰ and Settings (seller shops: Profile has Dashboard). */
#profile-view.pm-shop.pm-menu #settings-profile-hero{display:none!important}
.profile-home{position:relative;display:grid;justify-items:center;align-content:start;gap:12px;min-height:calc(100svh - var(--bottom-nav-h,80px) - 40px);padding:64px 16px calc(var(--bottom-nav-h,80px) + 24px);text-align:center;box-sizing:border-box}
.profile-menu-open,#profile-menu-close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff;color:#1d2a21;box-shadow:0 2px 10px #173c2a1f;cursor:pointer}
.profile-menu-open{position:absolute;top:8px;left:8px}
.profile-menu-open svg,#profile-menu-close svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.profile-menu-bar b{font-size:20px;font-weight:800;color:#173c2a}
.profile-home-photo{display:grid;place-items:center;width:168px;height:168px;overflow:hidden;border:5px solid #fff;border-radius:50%;background:#eef5ea;box-shadow:0 8px 28px #173c2a29;color:#4a7a4f;font-size:64px}
.profile-home-photo img{width:100%;height:100%;object-fit:cover}
.profile-home-photo span.pm-initial{color:#fff;font-size:88px;font-weight:800;line-height:1;background:linear-gradient(160deg,#35b04e,#137a2c);width:100%;height:100%;display:grid;place-items:center}
.profile-home-photo img[hidden],.profile-home-photo span[hidden]{display:none}
.profile-home-name{margin:0;color:#14241a;font-size:28px;font-weight:800;letter-spacing:-.01em;line-height:1.25;overflow-wrap:anywhere}
.profile-home-name:empty{display:none}
:root[data-theme="dark"] .profile-home-name,:root[data-theme="dark"] .profile-menu-bar b{color:#e1f0de}
:root[data-theme="dark"] .profile-menu-open,:root[data-theme="dark"] #profile-menu-close{background:#253b28;color:#e1f0de}
/* 1.1.303: counts, Follow / + Add, the shop's personal posts, and the Add sheet. */
.profile-home-counts{margin:-4px 0 0;color:#2b3a30;font-size:15px}
.profile-home-counts b{font-weight:800}
.profile-home-counts[hidden],.profile-home-actions[hidden]{display:none}
.profile-home-actions{display:flex;justify-content:center;width:min(100%,420px);margin-top:4px}
.profile-add,.profile-follow{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;border:0;border-radius:14px;font:inherit;font-size:17px;font-weight:800;cursor:pointer}
.profile-add{background:#1a7a2e;color:#fff}
.profile-add svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.profile-follow{background:#1a7a2e;color:#fff}
.profile-follow.is-on{background:#e4ebe5;color:#1d2a21}
.profile-home-posts{display:grid;gap:14px;width:min(100%,640px);margin-top:14px;text-align:left}
.profile-post{padding:14px 14px 12px;border:1px solid #e3e9e4;border-radius:18px;background:#fff;box-shadow:0 3px 14px #173c2a0d}
.profile-post header{display:flex;align-items:baseline;gap:8px}
.profile-post header b{font-size:15px;color:#14241a}
.profile-post header small{color:#6e7a72;font-size:12px}
.profile-post header button{margin-left:auto;padding:0;border:0;background:none;color:#b42318;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.profile-post p{margin:8px 0 0;color:#1f2b23;font-size:15px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.profile-post-photos{display:grid;gap:3px;margin-top:10px;overflow:hidden;border-radius:14px}
.profile-post-photos.n2,.profile-post-photos.n3,.profile-post-photos.n4{grid-template-columns:1fr 1fr}
.profile-post-photos.n3>span:first-child{grid-row:span 2}
.profile-post-photos>span{position:relative;display:block;min-height:0;aspect-ratio:1;background:#f3f5f2}
.profile-post-photos.n1>span{aspect-ratio:auto}
.profile-post-photos img{display:block;width:100%;height:100%;object-fit:cover}
.profile-post-photos.n1 img{height:auto;max-height:520px;object-fit:contain}
.profile-post-photos b{position:absolute;inset:0;display:grid;place-items:center;background:#10201875;color:#fff;font-size:26px}
.profile-none{margin:10px 0 0;color:#6e7a72;text-align:center}
.profile-more{justify-self:center;min-width:120px;min-height:40px;border:1px solid #cfe0cf;border-radius:12px;background:#fff;color:#2f6a3e;font-weight:800;cursor:pointer}
.profile-sheet{position:fixed;inset:auto 0 0 0;width:min(100%,560px);max-width:100vw;max-height:88svh;margin:0 auto;padding:10px 18px calc(18px + env(safe-area-inset-bottom));border:0;border-radius:26px 26px 0 0;background:#fff;color:#1b2a20;box-shadow:0 -10px 40px #1020182e;overflow:auto}
.profile-sheet:not([open]){display:none}
.profile-sheet::backdrop{background:#10201866}
.profile-sheet-grip{width:46px;height:5px;margin:0 auto 12px;border-radius:9px;background:#d5d9d6}
.profile-sheet-x{position:absolute;top:10px;right:12px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:#2b332e;cursor:pointer}
.profile-sheet-x svg{width:24px;height:24px;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.profile-choice{display:flex;align-items:center;gap:14px;width:100%;margin:6px 0;padding:10px 4px;border:0;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit}
.profile-choice i{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:50%;background:#e9eeea}
.profile-choice svg{width:26px;height:26px;fill:none;stroke:#1d2a21;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.profile-choice span{display:grid;gap:2px}
.profile-choice b{font-size:19px}
.profile-choice small{color:#6e7a72;font-size:13px}
.profile-compose textarea{width:100%;min-height:110px;margin-top:22px;padding:12px 14px;border:1px solid #d5dbd7;border-radius:14px;font:inherit;font-size:16px;line-height:1.5;resize:vertical;box-sizing:border-box}
.profile-compose-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.profile-compose-thumbs:empty{display:none}
.profile-compose-thumbs span{position:relative;width:72px;height:72px;overflow:hidden;border-radius:10px;background:#f3f5f2}
.profile-compose-thumbs img{width:100%;height:100%;object-fit:cover}
.profile-compose-thumbs button{position:absolute;top:2px;right:2px;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#000a;color:#fff;font-size:16px;line-height:1;cursor:pointer}
.profile-compose-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.profile-compose-photo{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 16px;border:1px solid #cfe0cf;border-radius:14px;color:#1d6b2c;font-weight:800;cursor:pointer}
.profile-compose-photo svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.profile-compose-post{min-height:46px;padding:0 26px;border:0;border-radius:14px;background:#1a7a2e;color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer}
.profile-compose-post.wide{width:100%}
.profile-compose-post:disabled{opacity:.6}
.profile-sheet-text{margin:24px 0 16px;color:#4b5650;text-align:center;font-size:15px}
.profile-sheet-note{margin:10px 0 0;color:#b42318;font-size:13px;text-align:center}
.profile-sheet-note:empty{display:none}
body:has(#profile-sheet[open]){overflow:hidden}
:root[data-theme="dark"] .profile-home-counts,:root[data-theme="dark"] .profile-post header b,:root[data-theme="dark"] .profile-post p{color:#e1f0de}
:root[data-theme="dark"] .profile-post,:root[data-theme="dark"] .profile-sheet{background:#182b1e;border-color:#334b35;color:#e1f0de}
/* 1.1.311 owner's profile design: green cover with clouds, big ringed logo, name + green check, counts with icons,
   caption, Add + Dashboard, details card and Facebook-like post cards. */
#profile-view.pm-home{padding-top:0}
.profile-home{padding-top:0;gap:0;overflow:visible}
.profile-cover{position:absolute;top:0;left:50%;width:100vw;max-width:none;height:300px;transform:translateX(-50%);background:url("/images/profile-cover.svg?v=2") center top/cover no-repeat;-webkit-mask:linear-gradient(#000 62%,#0000);mask:linear-gradient(#000 62%,#0000);pointer-events:none;z-index:0}
.profile-home>:not(.profile-cover){position:relative;z-index:1}
.profile-menu-open,.profile-edit{position:absolute!important;top:max(14px,env(safe-area-inset-top));z-index:3!important;display:grid;place-items:center;width:48px;height:48px;border:0;border-radius:50%;background:#fff;color:#1d2a21;box-shadow:0 3px 12px #173c2a29;text-decoration:none}
.profile-menu-open{left:14px}
.profile-edit{right:14px}
.profile-edit[hidden]{display:none}
.profile-edit svg{width:24px;height:24px;fill:none;stroke:#14532d;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.profile-home-photo{width:178px;height:178px;margin-top:54px;border:6px solid #fff;outline:3px solid #2e9a3e;outline-offset:0;background:#fff;box-shadow:0 10px 30px #14532d33}
.profile-home-photo img{object-fit:contain;padding:6px;box-sizing:border-box}
.profile-home-title{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:16px;max-width:100%}
.profile-home-title .profile-home-name{font-size:32px}
.profile-verified{flex:0 0 30px;width:30px;height:30px;fill:#22a23c}
.profile-home-counts{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:nowrap;margin:14px 0 0!important;color:#1d2a21;font-size:15px}
.profile-home-counts span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.profile-home-counts svg{width:24px;height:24px;fill:none;stroke:#1f8a37;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.profile-home-counts i{width:1px;height:22px;background:#d3dbd4}
.profile-caption{display:flex;align-items:center;gap:12px;width:min(100%,640px);margin-top:16px;padding:12px 16px;border:1px solid #cfe3cf;border-radius:999px;background:#f1f8ef;box-sizing:border-box;text-align:left}
.profile-caption[hidden],.profile-details[hidden]{display:none}
.profile-caption>svg{flex:0 0 26px;width:26px;height:26px;color:#1f8a37}
.profile-caption span{flex:1;min-width:0;color:#1f2b23;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.profile-caption span.is-empty{color:#6e7a72}
.profile-caption a,.profile-details header a{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;color:#14532d}
.profile-caption a svg,.profile-details header a svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.profile-home-actions{gap:14px;width:min(100%,640px)!important;margin-top:16px!important}
.profile-home-actions>*{flex:1}
.profile-add{min-height:56px!important;border-radius:999px!important;background:linear-gradient(180deg,#1f8a37,#156f2a)!important;box-shadow:0 6px 14px #156f2a40;font-size:19px!important}
.profile-dashboard{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;border:2px solid #2e9a3e;border-radius:999px;background:#fff;color:#14532d;font-size:19px;font-weight:800;text-decoration:none}
.profile-dashboard svg{width:28px;height:28px}
.profile-follow{min-height:56px!important;border-radius:999px!important}
.profile-details{width:min(100%,640px);margin-top:16px;padding:16px 18px 8px;border:1px solid #e3e9e4;border-radius:22px;background:#fff;box-shadow:0 4px 18px #173c2a0d;box-sizing:border-box;text-align:left}
.profile-details header{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.profile-details header b{flex:1;font-size:20px;color:#14241a}
.profile-details-user{width:30px;height:30px;fill:#2e9a3e;stroke:none}
.profile-details p{display:flex;align-items:center;gap:16px;margin:0;padding:11px 0;border-top:1px solid #edf1ee;font-size:15px;color:#1f2b23}
.profile-details p:first-of-type{border-top:0}
.profile-details p svg{flex:0 0 26px;width:26px;height:26px;fill:none;stroke:#14532d;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.profile-details p a{color:inherit;text-decoration:none;overflow-wrap:anywhere}
.profile-details p.is-empty{color:#6e7a72}
.profile-home-posts{margin-top:16px!important}
.profile-post{padding:16px!important;border-radius:22px!important}
.profile-post header{align-items:center!important;gap:12px!important}
.profile-post-avatar{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;overflow:hidden;border:2px solid #2e9a3e;border-radius:50%;background:#fff;color:#14532d;font-weight:800}
.profile-post-avatar img{width:100%;height:100%;object-fit:contain}
.profile-post-who{display:grid;flex:1;min-width:0}
.profile-post-who b{font-size:17px!important}
.profile-post-who small{display:flex;align-items:center;gap:4px;color:#6e7a72;font-size:13px}
.profile-post-who small svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.profile-post-menu{position:relative}
.profile-post-menu>button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.profile-dots{width:24px;height:24px;fill:#1d2a21}
.profile-post-menu>span{position:absolute;right:0;top:42px;z-index:5;padding:6px;border:1px solid #e1e8e2;border-radius:14px;background:#fff;box-shadow:0 12px 30px #10201826}
.profile-post-menu>span[hidden]{display:none}
.profile-post-menu>span button{display:block;padding:10px 14px;border:0;border-radius:10px;background:transparent;color:#b42318;font:inherit;font-weight:750;white-space:nowrap;cursor:pointer}
.profile-post p{font-size:16px!important}
@media(max-width:420px){.profile-home-photo{width:156px;height:156px;margin-top:58px}.profile-home-title .profile-home-name{font-size:28px}.profile-home-counts{gap:7px;font-size:13px}.profile-home-counts span{gap:4px}.profile-home-counts svg{width:19px;height:19px}.profile-home-counts i{height:18px}.profile-dashboard{gap:6px}.profile-add,.profile-dashboard{font-size:17px!important}}
:root[data-theme="dark"] .profile-details,:root[data-theme="dark"] .profile-dashboard{background:#182b1e;border-color:#334b35;color:#e1f0de}
:root[data-theme="dark"] .profile-caption{background:#1f3326;border-color:#334b35}
:root[data-theme="dark"] .profile-caption span,:root[data-theme="dark"] .profile-details p,:root[data-theme="dark"] .profile-details header b,:root[data-theme="dark"] .profile-home-counts{color:#e1f0de}
/* 1.1.311 follow-up: closer to the owner's picture — lighter cover, smaller caption and buttons, filled count icons,
   address with a bold first line. */
.profile-home-photo{border-width:8px;outline-width:3px;outline-color:#3aa548}
.profile-home-counts{gap:16px}
.profile-home-counts span:not(:last-child) svg{fill:#2e9a3e;stroke:none}
.profile-home-counts b{font-weight:800}
.profile-home-counts i{background:#c9d3cb}
.profile-caption{padding:8px 14px;margin-top:14px;background:#eef7ea;border-color:#d4e8d2}
.profile-caption>svg{width:24px;height:24px;flex-basis:24px}
.profile-caption a{width:32px;height:32px;flex-basis:32px}
.profile-home-actions{margin-top:14px!important}
.profile-add,.profile-dashboard,.profile-follow{min-height:50px!important;font-size:18px!important}
.profile-add{background:linear-gradient(180deg,#1e8a35,#0f6a26)!important}
.profile-dashboard{border:1.5px solid #9fd09f}
.profile-details{padding:14px 16px 4px;margin-top:14px}
.profile-details header b{font-size:19px}
.profile-details p{padding:9px 0;gap:18px;font-size:14.5px}
.profile-details p .profile-address{display:grid;gap:1px}
.profile-details p .profile-address b{font-size:15px;color:#14241a}
.profile-details p .profile-address small{color:#5a665e;font-size:13px;line-height:1.45}
@media(max-width:420px){.profile-home-counts{gap:8px}}
/* 1.1.311 owner: the same side gaps as the picture — boxes 14px from the screen edge on phones. */
@media(max-width:850px){
 #profile-view.pm-home{padding-left:14px!important;padding-right:14px!important}
 #profile-view.pm-home .profile-home{padding-left:0;padding-right:0}
 #profile-view.pm-home .profile-caption,#profile-view.pm-home .profile-home-actions,#profile-view.pm-home .profile-details,#profile-view.pm-home .profile-home-posts{width:100%!important;max-width:none}
 #profile-view.pm-home .profile-home-actions{gap:12px}
 #profile-view.pm-home .profile-post{padding:14px!important}
}
/* 1.1.312: pencils edit in place (buttons) and the Edit profile sheet. */
.profile-pen{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:#14532d;cursor:pointer}
.profile-pen svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
button.profile-edit{padding:0;cursor:pointer}
.profile-edit-title{margin:4px 44px 12px 0;font-size:22px;font-weight:800;color:#14241a}
.profile-edit-form{display:grid;gap:10px}
.profile-edit-logo{display:flex;align-items:center;gap:14px;margin-bottom:4px}
.profile-edit-photo{display:grid;place-items:center;flex:0 0 76px;width:76px;height:76px;overflow:hidden;border:3px solid #3aa548;border-radius:50%;background:#fff}
.profile-edit-photo img{width:100%;height:100%;object-fit:contain}
.profile-edit-field{display:grid;gap:4px;font-size:13px;font-weight:700;color:#4b5650}
.profile-edit-field input,.profile-edit-field textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #d5dbd7;border-radius:12px;background:#fff;color:#1d2a21;font:inherit;font-size:16px;font-weight:400;box-sizing:border-box}
.profile-edit-field textarea{resize:vertical}

/* 1.1.421: who is signed in, under Add / Dashboard. */
.profile-who{flex:1 0 100%;margin:8px 4px 0;font-size:13px;line-height:1.35;color:#4a5f52;text-align:center;overflow-wrap:anywhere}
.profile-who span{font-weight:800;color:#1f6f33}
.profile-who.is-other{padding:7px 10px;border-radius:12px;background:#fff3d6;color:#7a5200}
.profile-who.is-other span{color:#8a4b00}
.profile-home-actions:has(.profile-who){flex-wrap:wrap}
