/* PANG MART — approved orange / white mobile marketplace, 2026-10-18 */
:root{--orange:#ff9218;--orange-dark:#b44e00;--ink:#18202b;--soft:#687585;--line:#e6eaf0;--wash:#f2f4f8;color-scheme:light;font-family:'Noto Sans Thai','Noto Sans KR',system-ui,-apple-system,sans-serif;color:var(--ink);background:#fff;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f6f7f9;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:none;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #2181ca;outline-offset:3px}input:focus,textarea:focus{outline:2px solid #ffb352;outline-offset:1px}.app-shell{max-width:600px;min-height:100svh;margin:0 auto;position:relative;background:#fff}.hidden,.wired-hidden{display:none!important}
.pm-head{background:#fff;padding:calc(12px + env(safe-area-inset-top)) 12px 10px}.pm-head-inner{display:flex;align-items:center;gap:7px;justify-content:space-between;min-width:0}.brand{display:flex;gap:5px;align-items:center;min-width:0;flex:1}.brand-paw{color:var(--orange);flex:none;line-height:0}.brand-words{line-height:1.05;min-width:0}.brand-words>span{color:#121619;font-weight:800;font-size:clamp(15px,4.2vw,23px);letter-spacing:-.7px;white-space:nowrap}.brand-words b{font-weight:800}.brand-words small{display:block;color:#bf5700;font-size:11px;font-weight:700;margin-top:4px}.head-controls{display:flex;align-items:center;gap:5px;flex:none}.location-chip,#lang,.account-icon{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:999px;height:36px;font-size:11px;font-weight:600;padding:0 7px;min-width:0}.location-chip{display:flex;align-items:center;gap:3px;max-width:86px;background:var(--orange);color:#18202b;border-color:var(--orange)}.location-chip>span:nth-child(2){max-width:48px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#lang{max-width:66px;min-width:54px;appearance:auto;padding:0 2px 0 6px}#lang option{background:#fff;color:#18202b}.account-icon{position:relative;width:36px;min-width:36px;max-width:36px;height:36px;display:grid;place-items:center;overflow:hidden;padding:0;border:1px solid #efdfc9;font-size:0}.avatar-fallback{display:grid;place-items:center;width:100%;height:100%;font:600 19px/1 system-ui;color:#925208;background:#fff1dc}.account-icon img,.avatar-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.search-wrap{display:flex;align-items:center;height:42px;margin:12px 0 0;background:var(--wash);border:1px solid #f0f2f6;border-radius:24px;gap:8px;padding:3px 4px 3px 12px}.search-wrap input{background:transparent;min-width:0;flex:1;color:var(--ink);border:0;outline:0;font-size:16px}.search-wrap:focus-within{border-color:#e8a655}.search-wrap input::placeholder{color:#818c9d;opacity:1}.search-icon{font:30px/1 system-ui;color:#8291a7}#searchButton{height:34px;width:35px;flex:none;border-radius:50%;background:transparent;color:#68788e;font:27px/1 system-ui;padding:0}
main{padding:0 12px calc(82px + env(safe-area-inset-bottom))}.winter-hero{height:clamp(104px,28vw,146px);border-radius:14px;margin:0 0 12px;background:#fff1dc url('assets/market-banner-orange-v1.png') center/cover no-repeat;display:flex;align-items:center;padding:13px 12px;overflow:hidden}.hero-copy{max-width:58%;display:flex;flex-direction:column;gap:6px}.hero-copy strong{font-size:clamp(18px,5vw,26px);font-weight:800;line-height:1.25;letter-spacing:-.35px;color:#b14e00;overflow-wrap:anywhere}.hero-copy span{font-size:clamp(10px,2.7vw,13px);color:#242831;line-height:1.5;font-weight:500}
.categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px 5px;padding:0 0 13px}.category-tab{min-width:0;padding:0;background:transparent;color:#253044;display:flex;align-items:center;flex-direction:column;gap:4px;font-size:10px;line-height:1.45;font-weight:500;text-align:center;white-space:normal;border-radius:10px}.category-tab>span:last-child{width:100%;min-height:27px;display:flex;align-items:flex-start;justify-content:center;overflow-wrap:anywhere}.category-tab .category-symbol{display:block;width:100%;max-width:72px;aspect-ratio:1;border:1px solid transparent;border-radius:14px;transition:border-color .15s}.category-art{background-image:url('assets/category-sprite-orange-v1.png');background-size:500% 200%;background-repeat:no-repeat;background-color:#fff}.category-art-0{background-position:0% 0%}.category-art-1{background-position:25% 0%}.category-art-2{background-position:50% 0%}.category-art-3{background-position:75% 0%}.category-art-4{background-position:100% 0%}.category-art-5{background-position:0% 100%}.category-art-6{background-position:25% 100%}.category-art-7{background-position:50% 100%}.category-art-8{background-position:75% 100%}.category-art-9{background-position:100% 100%}.category-tab.selected{color:#b45200;font-weight:700}.category-tab.selected .category-symbol{border-color:#ffab49;box-shadow:0 0 0 2px #fff4e4}
.listings-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:12px;margin:0 0 7px;border-top:5px solid #f4f5f7}.listings-header h1{margin:0;font-size:20px;line-height:1.4;font-weight:800;letter-spacing:-.5px}.nearby-note{margin:3px 0 0;color:#6a7685;font-size:11px;display:flex;align-items:center;gap:4px}.see-all{background:transparent;color:#687585;font-size:11px;white-space:nowrap;padding:8px 0}.filter-pills{display:flex;gap:6px;margin:8px 0 12px;overflow-x:auto;scrollbar-width:none;align-items:center;padding:2px}.filter-pills::-webkit-scrollbar{display:none}.filter-pills .pill,.filter-pills select{flex:0 0 auto;min-height:34px;border-radius:999px;background:#f4f6f9;color:#59677a;border:1px solid #e4e8ee;padding:6px 11px;font-size:11px;white-space:nowrap;font-weight:600}.filter-pills .pill.active{background:var(--orange);color:#202020;border-color:var(--orange)}.filter-pills select{max-width:115px;min-width:75px;appearance:auto}.filter-pills option{background:#fff;color:#18202b}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 8px}.grid>.item{min-width:0;background:#fff;padding:0 0 3px;overflow:hidden}.item .pm-image-wrap{position:relative;background:#f3f4f6;aspect-ratio:1.32;border-radius:9px;overflow:hidden}.item .pm-like{position:absolute;right:6px;top:6px;width:30px;height:30px;border:0;border-radius:50%;color:#fff;background:#1722354d;display:grid;place-items:center;font:400 25px/1 system-ui;padding:0;z-index:2}.item .pm-like.saved{color:#fff;background:#e9710c}.item .pm-badge{position:absolute;top:8px;left:7px;border-radius:7px;background:#fff0d8;color:#8e4100;padding:4px 7px;font-size:10px;font-weight:700;z-index:2}.item h3{font-size:13px;line-height:1.5;color:#202938;margin:6px 1px 2px;min-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-weight:500}.item .price{font-size:16px;font-weight:800;color:#111820;margin:1px 1px 3px;line-height:1.4}.item .muted{font-size:10px;color:#7c8796;margin:2px 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item .pm-contact{display:none}.clickable-listing{cursor:pointer}.clickable-listing:focus-visible{outline:2px solid #e47a0e;outline-offset:3px}.status{color:#53677d;line-height:1.5;margin:8px 2px;font-size:13px}.status:empty{display:none}.status.error{color:#b42318}.load-more{display:flex;justify-content:center;padding:16px}.secondary{background:#f2f4f8;color:#263445;border:1px solid #dce2e9;border-radius:11px;padding:10px 14px}.selling-banner{display:flex;align-items:center;gap:10px;margin:14px 0 7px;padding:12px;background:#fff2df;color:#412b17;border-radius:14px;min-height:72px}.parcel-art{color:#fb8b17;flex:none}.selling-banner>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.selling-banner strong{font-size:13px;line-height:1.4}.selling-banner small{font-size:11px;color:#755e46;line-height:1.5}.selling-banner button{background:var(--orange);color:#222;border-radius:22px;padding:9px 12px;font-size:12px;font-weight:700}footer{text-align:center;color:#7b8592;font-size:10px;margin:18px 5px}footer p{line-height:1.6}footer a{display:inline-block;color:#687585;padding:9px}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,600px);z-index:100;display:flex;align-items:center;justify-content:space-around;background:#fffffff7;border-top:1px solid #e1e6ec;padding:5px 4px calc(5px + env(safe-area-inset-bottom));min-height:63px}.bottom-nav button{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;color:#7f8b9b;background:transparent;min-width:0;width:20%;min-height:50px;padding:2px;font-size:10px;border:0}.bottom-nav .nav-icon{font:26px/1 system-ui}.bottom-nav button.active{color:#bf5a00}.bottom-nav .nav-add .nav-icon{width:44px;height:44px;border-radius:50%;background:var(--orange);display:grid;place-items:center;margin-top:-12px;box-shadow:0 0 0 3px #fff;color:#212121;font:31px/1 system-ui}.bottom-nav .nav-add{color:#805021}
.panel{position:fixed;z-index:210;left:50%;transform:translateX(-50%);width:min(100%,600px);top:0;bottom:0;overflow-y:auto;background:#fff;border:1px solid #e0e5eb;box-shadow:0 0 0 100vmax #18202b80;overscroll-behavior:contain;padding:calc(22px + env(safe-area-inset-top)) 16px calc(80px + env(safe-area-inset-bottom));color:#18202b}.panel h2{font-size:23px;margin:5px 40px 18px 0;line-height:1.5}.panel-x{position:absolute;top:calc(20px + env(safe-area-inset-top));right:15px;display:grid;place-items:center;width:40px;height:40px;background:#f2f4f8;border-radius:50%;color:#414d5d;font-size:26px}.fields{display:grid;grid-template-columns:1fr;gap:13px}.fields label{display:flex;flex-direction:column;gap:6px;color:#354355;font-size:13px}.fields input,.fields select,.fields textarea,.chat-actions input{width:100%;min-width:0;border:1px solid #d7dfe8;border-radius:11px;color:#18202b;background:#fbfcfe;font:inherit;padding:11px 12px;font-size:16px;min-height:46px}.fields select option{background:#fff}.fields textarea{min-height:112px;resize:vertical}.bar{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.panel button:not(.panel-x):not(.secondary){background:var(--orange);color:#222;padding:11px 15px;border-radius:11px;font-weight:700}.panel button.secondary{background:#f2f4f8;color:#334155}.panel .note{font-size:12px;color:#697789;line-height:1.6;margin-top:15px}.form-actions{padding-bottom:12px}.row{display:flex;align-items:center;justify-content:space-between}.chat{height:48vh;overflow-y:auto;padding:12px;border-radius:12px;border:1px solid #e2e7ee;background:#f5f7fa;display:flex;flex-direction:column;gap:8px}.bubble{background:#e6ebf2;color:#263445;border-radius:14px;padding:8px 11px;align-self:flex-start;max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.mine{background:#ffdcaa;color:#3b2a17;align-self:flex-end}.chat-actions{display:flex;gap:8px;margin:12px 0}.chat-actions input{flex:1}.chat-moderate{display:flex;gap:8px}#threads{display:grid;gap:8px}#threads button{margin:0!important;text-align:left;padding:12px}
.language-backdrop{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:#1521319e;z-index:450}.language-dialog{width:min(350px,100%);background:#fff;border-radius:22px;border:1px solid #f5dbc0;text-align:center;padding:24px;box-shadow:0 20px 60px #02061135}.language-icon{font-size:40px}.language-dialog h2{font-size:21px;margin:10px 0}.language-dialog p{color:#7a654e;margin:0 0 13px}.language-dialog button{display:block;width:100%;border:1px solid #f5dec3;border-radius:12px;color:#50391e;background:#fff5e8;padding:13px;margin:9px 0;font-size:18px;font-weight:700}.toast-notice{position:fixed;z-index:600;left:50%;transform:translate(-50%,20px);bottom:calc(80px + env(safe-area-inset-bottom));width:min(92%,520px);background:#fff9ef;border:1px solid #eeb46f;color:#493724;border-radius:14px;padding:14px;text-align:center;font-size:14px;opacity:0;pointer-events:none;transition:transform .2s,opacity .2s;box-shadow:0 8px 24px #15213128}.toast-notice.show{transform:translate(-50%,0);opacity:1}
.pm-detail-open{overflow:hidden}.pm-detail-overlay{position:fixed;inset:0;z-index:550;background:#172331a6;display:flex;align-items:flex-end}.pm-detail-dialog{position:relative;width:min(100%,600px);margin:0 auto;max-height:95dvh;overflow-y:auto;background:#fff;color:#18202b;border:1px solid #e1e5e9;border-bottom:none;border-radius:20px 20px 0 0;overscroll-behavior:contain}.pm-detail-close{position:sticky;float:right;top:10px;right:10px;margin:10px 10px -48px 0;z-index:3;display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%;background:#ffffffde;color:#263445;border:1px solid #e4e8ee;font-size:27px}.pm-detail-photo-wrap{position:relative;aspect-ratio:4/3;background:#f5f6f8;overflow:hidden}.pm-detail-thumbs{display:flex;gap:7px;overflow-x:auto;padding:9px 13px}.pm-detail-thumbs button{padding:0;background:#f2f4f8;border:2px solid transparent;border-radius:8px;overflow:hidden;width:50px;height:50px;flex:0 0 50px}.pm-detail-thumbs button.selected{border-color:#ff9218}.pm-detail-thumbs img{width:100%;height:100%;object-fit:cover}.pm-detail-body{padding:10px 16px calc(28px + env(safe-area-inset-bottom))}.pm-detail-heading h2{margin:0;font-size:21px;line-height:1.5}.pm-detail-price{font-size:25px;font-weight:800;color:#17202b;margin:4px 0}.pm-detail-meta{font-size:13px;color:#6c7b8b}.pm-detail-tag{background:#fff0dc;color:#8c4a0a;border-radius:20px;padding:6px 10px;display:inline-block;font-size:12px}.pm-detail-description-label{margin:17px 0 7px}.pm-detail-description{font-size:15px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.pm-detail-source-note,.pm-detail-copy-hint{font-size:12px;color:#6c7b8b;line-height:1.6}.pm-detail-copy{display:inline-flex;min-height:42px;align-items:center;color:#3c4b5d;border:1px solid #dfe5ed;text-decoration:none;border-radius:11px;padding:9px 12px;background:#f1f4f8;font-size:13px;font-weight:700}.pm-detail-chat{width:100%;min-height:48px;margin-top:14px;border-radius:12px;background:var(--orange);color:#292118;font-size:15px;font-weight:700}.pm-inline-translation{border:1px solid #e6d3b8;background:#fff9ef;border-radius:11px;padding:13px;margin-top:11px;overflow-wrap:anywhere}.pm-inline-translation p{white-space:pre-wrap;line-height:1.8}.pm-detail-copy:disabled{opacity:.55}
/* Native touch galleries preserve vertical page scroll and zoom. */
.pm-gallery-track{position:absolute;inset:0;display:flex;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;outline-offset:-3px}.pm-gallery-track::-webkit-scrollbar{display:none}.pm-gallery-track>img{display:block;flex:0 0 100%;width:100%;min-width:100%;height:100%;object-fit:cover;scroll-snap-align:start;scroll-snap-stop:always;user-select:none}.pm-detail-photo-wrap .pm-gallery-track>img{object-fit:contain}.pm-gallery-count{position:absolute;right:7px;bottom:8px;background:#18202bad;color:#fff;border-radius:12px;padding:3px 7px;font-size:10px;pointer-events:none}.pm-gallery-dots{display:flex;gap:4px;position:absolute;bottom:10px;left:10px;pointer-events:none}.pm-gallery-dots span{width:5px;height:5px;border-radius:50%;background:#ffffff75}.pm-gallery-dots .active{background:#fff}.pm-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);padding:0;width:28px;height:34px;background:#1a2635a3;color:white;border:1px solid #ffffff55;border-radius:10px;font:26px/1 system-ui;display:grid;place-items:center;z-index:1}.pm-gallery-arrow.previous{left:5px}.pm-gallery-arrow.next{right:5px}.pm-gallery-arrow:disabled{opacity:0;pointer-events:none}.pm-detail-photo-wrap .pm-gallery-arrow{width:36px;height:42px}
.avatar-editor{display:flex;align-items:center;flex-wrap:wrap;gap:14px;border:1px solid #e3e7ed;border-radius:14px;padding:14px;margin-bottom:18px}.avatar-preview{position:relative;flex:0 0 76px;width:76px;height:76px;border-radius:50%;overflow:hidden;border:2px solid #ffca8a}.avatar-preview .avatar-fallback{font-size:30px}.avatar-options{flex:1;min-width:150px}.avatar-upload{display:inline-flex;border-radius:10px;background:var(--orange);color:#292118;padding:10px 12px;cursor:pointer;font-size:13px;font-weight:700}.avatar-options button{margin-top:7px;font-size:12px;padding:8px!important}.avatar-options .note{font-size:11px;margin:8px 0 0}.avatar-privacy,#avatarStatus{width:100%;margin:0;font-size:12px;line-height:1.6}#avatarStatus:empty{display:none}
@media(max-width:359px){.pm-head{padding-left:10px;padding-right:10px}.pm-head-inner{gap:4px}.brand-paw svg{width:20px;height:23px}.brand{gap:3px}.brand-words>span{font-size:14px;letter-spacing:-.6px}.brand-words small{font-size:10px}.head-controls{gap:3px}.location-chip{padding:0 5px;max-width:70px}.location-chip>span:nth-child(2){max-width:34px}#lang{min-width:48px;max-width:52px;padding-left:4px;font-size:10px}.account-icon{width:32px;min-width:32px;max-width:32px;height:32px}.category-tab{font-size:9px}.hero-copy strong{font-size:17px}.hero-copy span{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* Larger, friendly typography — user feedback from real iPhone, 2026-10-18. */
:root{font-family:'Mali','Jua','Noto Sans Thai','Noto Sans KR',system-ui,sans-serif;font-size:16px;font-weight:500}
.brand-words>span{font-family:system-ui,sans-serif;font-size:clamp(16px,4.3vw,23px);font-weight:800}
.brand-words small{font-size:13px}.location-chip,#lang{font-size:13px}
.search-wrap{height:47px}.search-wrap input{font-size:17px}
.hero-copy strong{font-size:clamp(21px,5.5vw,29px);font-weight:700;line-height:1.4}
.hero-copy span{font-size:clamp(12px,3.2vw,15px);font-weight:600;line-height:1.5}
.category-tab{font-size:13px;line-height:1.5;font-weight:600;gap:5px}
.category-tab>span:last-child{min-height:39px;align-items:flex-start;word-break:normal}
.category-tab .category-symbol{max-width:65px}.categories{gap:8px 5px;padding-bottom:10px}
.listings-header h1{font-size:24px;line-height:1.4}.nearby-note{font-size:13px;line-height:1.55}
.see-all{font-size:13px}.filter-pills .pill,.filter-pills select{font-size:14px;min-height:39px;padding:6px 12px}.filter-pills select{max-width:145px}
.item h3{font-size:16px;line-height:1.55;font-weight:600;min-height:25px;margin-top:7px}
.item .price{font:800 19px/1.5 system-ui,sans-serif}.item .muted{font-size:12px;line-height:1.6}
.item .pm-badge{font-size:12px}.pm-gallery-count{font:600 12px/1.5 system-ui,sans-serif}
.selling-banner strong{font-size:16px}.selling-banner small{font-size:13px}.selling-banner button{font-size:14px}
.bottom-nav{min-height:69px}.bottom-nav button{font-size:12px;min-height:54px;line-height:1.5}.bottom-nav .nav-add{font-size:12px}
.panel h2{font-size:26px}.fields label{font-size:16px}.fields input,.fields select,.fields textarea,.chat-actions input{font-size:17px;line-height:1.6}
.panel .note{font-size:14px}.bar button,.chat-actions button,.chat-moderate button{font-size:16px}.bubble{font-size:16px;line-height:1.7}
.pm-detail-heading h2{font-size:24px;line-height:1.6}.pm-detail-price{font:800 27px/1.5 system-ui,sans-serif}.pm-detail-meta{font-size:15px}.pm-detail-tag{font-size:14px}
.pm-detail-description-label{font-size:19px}.pm-detail-description,.pm-inline-translation{font-size:17px;line-height:1.8}
.pm-detail-source-note,.pm-detail-copy-hint{font-size:14px}.pm-detail-copy{font-size:16px;min-height:46px}.pm-detail-chat{font-size:17px}
.avatar-upload{font-size:15px}.avatar-options button{font-size:14px}.avatar-options .note,.avatar-privacy,#avatarStatus{font-size:13px}
.status,.toast-notice{font-size:15px;line-height:1.65}footer{font-size:12px;line-height:1.7}
@media(max-width:359px){.brand-words>span{font-size:15px}.brand-words small{font-size:12px}.location-chip{font-size:12px;max-width:65px}.location-chip>span:nth-child(2){max-width:33px}#lang{font-size:12px;max-width:51px;min-width:49px}.category-tab{font-size:12px}.hero-copy strong{font-size:19px}.hero-copy span{font-size:12px}.item h3{font-size:15px}.item .price{font-size:18px}}

/* Launch layout: remove the category hub, show existing items sooner. */
.market-intro{margin:0 0 13px;padding:11px 12px;min-height:70px;gap:9px;border:1px solid #ffecd3;background:#fff8ef}
.market-intro .parcel-art svg{width:26px;height:26px}.market-intro strong{font-size:14px;font-weight:600;line-height:1.6}.market-intro small{font-size:12px;line-height:1.6}
.market-intro button{font-size:13px;min-height:40px;padding:8px 12px;flex:none}
.listings-header{border-top:0;padding-top:0}.filter-pills #category{max-width:160px}
@media(max-width:359px){.market-intro{padding:10px;gap:7px}.market-intro .parcel-art{display:none}.market-intro strong{font-size:13px}.market-intro small{font-size:12px}.market-intro button{font-size:12px}}

/* Full-screen photo viewer above product details. Native browser pinch zoom stays enabled. */
.pm-photo-open{overflow:hidden}.pm-detail-photo-wrap .pm-gallery-track{cursor:zoom-in}
.pm-photo-viewer{position:fixed;inset:0;z-index:700;display:flex;flex-direction:column;background:#080a0e;color:#fff;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);overscroll-behavior:contain}
.pm-photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:8px 12px;flex:none;background:transparent}
.pm-photo-toolbar h2{margin:0;font-size:16px;font-weight:600;line-height:1.5;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pm-photo-close{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;background:#ffffff22;border:1px solid #ffffff44;border-radius:50%;color:#fff;font:30px/1 system-ui}
.pm-photo-stage{position:relative;flex:1;min-height:0;overflow:hidden;width:100%;margin:0 auto}
.pm-photo-stage .pm-gallery-track>img{object-fit:contain;background:#080a0e}
.pm-photo-stage .pm-gallery-count{right:50%;transform:translateX(50%);bottom:12px;font:600 14px/1.5 system-ui;padding:4px 12px;border:1px solid #ffffff44}
.pm-photo-stage .pm-gallery-dots{display:none}.pm-photo-stage .pm-gallery-arrow{width:42px;height:48px;background:#20242cbb;border:1px solid #ffffff55;border-radius:12px;font-size:32px}
.pm-photo-stage .pm-gallery-arrow.previous{left:10px}.pm-photo-stage .pm-gallery-arrow.next{right:10px}
.pm-photo-hint{flex:none;min-height:26px;margin:8px 12px 10px;text-align:center;color:#c7ccd5;font-size:13px;line-height:1.6}

/* Autosave status stays inline; unchanged profiles issue no save request. */
#profileStatus{font-size:14px;line-height:1.65;margin-top:12px}#profileStatus:not(.error){color:#397047}

.pm-detail-copy-manual{display:block;width:100%;padding:12px;border:1px solid #d9e1ea;border-radius:11px;background:#fbfcfe;color:#202938;font:16px/1.7 'Mali','Jua',system-ui,sans-serif;resize:vertical;min-height:130px;user-select:text}

.support-entry{display:block;margin:18px 0;padding:12px 16px;border:1px solid #e1e5eb;border-radius:12px;font:inherit;text-align:left}footer .support-entry{margin:0 auto 22px}#supportPanel .note{font-size:15px;line-height:1.65}#supportForm{margin:20px 0}#supportForm .note{margin:0}#supportHistory{margin-top:30px;border-top:1px solid #e5e7eb;padding-top:15px}#supportHistory h3{font-size:19px}#supportRefresh{padding:8px 12px;border-radius:10px;font:inherit}.support-card{border:1px solid #e3e7ed;border-radius:14px;margin:12px 0;padding:15px;background:#fff}.support-card summary{cursor:pointer;overflow-wrap:anywhere;font-size:17px;line-height:1.6}.support-meta{display:block;color:#6b7280;font-size:14px;margin-top:5px}.support-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.7}.support-reply{background:#fff6e9;border-radius:10px;padding:12px}#supportStatus{white-space:pre-wrap;line-height:1.6}button:disabled{opacity:.6;cursor:wait}

.push-settings{margin:22px 0;padding:16px;border:1px solid #ffe0ad;border-radius:15px;background:#fffaf2}.push-settings h3{margin:0;font-size:20px}.push-settings .note{font-size:15px}.push-settings button{font-size:16px}#pushStatus{font-size:15px;line-height:1.65}.bottom-nav #navChat{position:relative}.chat-badge{position:absolute;top:2px;left:55%;min-width:20px;padding:1px 5px;border-radius:20px;background:#ec4b43;color:white;font:700 12px/18px sans-serif}.chat-alert{position:fixed;z-index:590;top:calc(12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(92%,520px);padding:16px;border:1px solid #ffc774;border-radius:14px;background:#fff4e0;color:#522f14;box-shadow:0 5px 24px #0002;font:inherit;font-size:16px}
