.profile-view{overflow-x:clip}.profile-header-link{display:flex;align-items:center;justify-content:center;color:inherit}.profile-page{padding-top:18px;padding-bottom:64px}.profile-shell{max-width:920px;margin:0 auto}.profile-topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 0 22px}.profile-settings-button{display:flex;align-items:center;gap:9px;padding:9px 12px;border-radius:9px;color:var(--text);font-size:13px;font-weight:700}.profile-settings-button:hover{background:var(--surface-top)}.profile-settings-button svg{width:19px;height:19px}.profile-balance{border:1px solid rgba(145,167,185,.2);border-radius:9px;padding:10px 13px;color:var(--muted);font-size:12px}.profile-balance strong{color:var(--text);font-weight:700}.profile-identity{text-align:center;padding:8px 0 27px}.profile-avatar-wrap{position:relative;width:112px;height:112px;margin:0 auto 14px}.profile-avatar{display:grid;width:112px;height:112px;place-items:center;overflow:hidden;border:1px solid rgba(69,184,255,.34);border-radius:50%;background:linear-gradient(145deg,#0879f5,#6949d8);box-shadow:0 12px 34px rgba(0,84,190,.2);color:#fff;font-size:42px;font-weight:900}.profile-avatar img{width:100%;height:100%;object-fit:cover}.presence-dot{position:absolute;right:5px;bottom:7px;width:18px;height:18px;border:4px solid var(--bg);border-radius:50%;background:#77838c}.presence-dot.is-online{background:#33c46a}.profile-identity h1{margin:0;font-size:27px;line-height:1.15}.profile-id{margin:6px 0 0;color:var(--muted);font-size:12px}.presence-label{margin:5px 0 0;color:#36c773;font-size:11px;font-weight:700}.presence-label.is-offline{color:var(--muted)}.profile-info{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0}.profile-info h2,.profile-section-heading h2{margin:0;font-size:23px}.profile-info dl{display:grid;gap:13px;margin:18px 0 0}.profile-info dl>div{display:grid;grid-template-columns:170px 1fr;gap:18px}.profile-info dt{color:var(--muted)}.profile-info dd{margin:0;color:var(--text);font-weight:600}.profile-listings{padding-top:27px}.profile-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.outline-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;border:1px solid rgba(145,167,185,.28);border-radius:9px;padding:0 14px;color:var(--text);font-weight:700}.outline-button:hover{border-color:var(--blue);background:rgba(0,113,255,.08);color:#fff}.outline-button svg{width:16px;height:16px}.profile-listing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.profile-listing-card{position:relative;display:grid;grid-template-columns:132px minmax(0,1fr);min-height:158px;overflow:visible;border:1px solid rgba(145,167,185,.14);border-radius:13px;background:var(--surface);box-shadow:0 8px 24px rgba(0,0,0,.12)}.profile-listing-image{width:132px;height:100%;min-height:158px;object-fit:cover;border-radius:12px 0 0 12px;background:var(--surface-top)}.profile-listing-copy{display:flex;min-width:0;flex-direction:column;padding:14px 42px 13px 14px}.profile-listing-copy h3{margin:0 0 6px;overflow:hidden;font-size:15px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.profile-listing-copy>p{display:-webkit-box;margin:0 0 9px;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}.profile-listing-price{margin-top:auto;font-size:18px}.profile-listing-seller{margin-top:7px;color:var(--muted);font-size:11px}.listing-status{display:inline-flex;align-items:center;gap:6px;width:max-content;margin-top:8px;border-radius:999px;padding:5px 8px;background:#75808a1c;color:#9ca9b2;font-size:10px;font-weight:800}.listing-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.listing-status.active{background:#30bd6a19;color:#43ce7a}.listing-status.pending{background:#f0a51c19;color:#f2b13e}.listing-status.rejected,.listing-status.removed{background:#e84d5919;color:#f16c76}.listing-menu-button{position:absolute;right:9px;top:9px;display:grid;width:30px;height:30px;place-items:center;border-radius:8px;color:var(--muted);font-size:20px;line-height:1}.listing-menu-button:hover{background:var(--surface-top);color:var(--text)}.profile-empty{border:1px dashed rgba(145,167,185,.24);border-radius:13px;padding:42px;text-align:center}.profile-empty h3{margin:0 0 7px}.profile-empty p{margin:0;color:var(--muted)}
.profile-modal-layer{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px}.profile-modal-layer[hidden]{display:none}.profile-modal-backdrop{position:absolute;inset:0;background:rgba(1,7,11,.72);backdrop-filter:blur(4px)}.profile-modal{position:relative;width:min(440px,100%);max-height:min(720px,calc(100vh - 40px));overflow:auto;border:1px solid #34414b;border-radius:15px;background:#12191e;box-shadow:0 26px 80px rgba(0,0,0,.65);color:var(--text);animation:profile-modal-in .18s ease-out}.profile-modal.is-wide{width:min(590px,100%)}@keyframes profile-modal-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}.profile-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:inherit;padding:18px 20px}.profile-modal-head h2{margin:0;font-size:20px}.modal-close{display:grid;width:32px;height:32px;place-items:center;border-radius:8px;color:var(--muted);font-size:24px}.modal-close:hover{background:var(--surface-top);color:var(--text)}.profile-modal-body{padding:16px 20px 20px}.settings-list{display:grid;gap:4px}.settings-item{display:flex;width:100%;align-items:center;gap:12px;min-height:48px;border-radius:9px;padding:0 10px;text-align:left;color:var(--text)}.settings-item:hover{background:#1d272e}.settings-item>span:first-child{display:grid;width:24px;place-items:center;color:#7fa4bf}.settings-item svg{width:19px;height:19px}.settings-item .settings-meta{margin-left:auto;color:var(--muted);font-size:11px}.settings-divider{height:1px;margin:8px 0;background:var(--line)}.settings-item.danger{color:#ff7b84}.settings-item.danger>span:first-child{color:inherit}.profile-form{display:grid;gap:13px}.profile-form label{display:grid;gap:7px;color:var(--muted);font-size:12px}.profile-form input{height:42px;border:1px solid #34414b;border-radius:9px;background:#0e151a;padding:0 12px;color:var(--text);outline:none}.profile-form input:focus{border-color:var(--blue)}.form-help{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.form-error{min-height:16px;margin:0;color:#ff727d;font-size:11px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:5px}.modal-button{min-height:38px;border:1px solid #34414b;border-radius:9px;padding:0 15px;color:var(--text);font-weight:700}.modal-button:hover{background:var(--surface-top)}.modal-button.primary-action{border-color:var(--blue);background:var(--blue);color:#fff}.modal-button.primary-action:hover{background:#2084ff}.modal-button.danger-action{border-color:#d74955;background:#d74955;color:#fff}.listing-menu-title{margin:0 0 4px;font-size:15px}.listing-menu-subtitle{margin:0 0 15px;color:var(--muted);font-size:11px}.listing-action-list{display:grid;gap:7px}.listing-action-list button{display:flex;align-items:center;gap:10px;min-height:42px;border-radius:9px;padding:0 11px;text-align:left}.listing-action-list button:hover{background:var(--surface-top)}.listing-action-list button:last-child{color:#ff747e}.account-list{display:grid;gap:8px}.account-row{display:grid;grid-template-columns:42px 1fr 24px;align-items:center;gap:11px;width:100%;border:1px solid var(--line);border-radius:11px;padding:9px;text-align:left}.account-row:hover{border-color:#315a78;background:var(--surface-top)}.account-avatar{display:grid;width:42px;height:42px;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(145deg,#0879f5,#6949d8);color:#fff;font-weight:900}.account-avatar img{width:100%;height:100%;object-fit:cover}.account-copy{display:grid;gap:3px}.account-copy small{color:var(--muted)}.account-check{color:#43ce7a;font-size:18px}.avatar-crop-stage{position:relative;width:280px;height:280px;margin:0 auto;overflow:hidden;border-radius:50%;background:#080d10;touch-action:none;cursor:grab;box-shadow:0 0 0 1px #3b4b57}.avatar-crop-stage:active{cursor:grabbing}.avatar-crop-stage img{position:absolute;left:50%;top:50%;max-width:none;user-select:none;pointer-events:none;transform-origin:center}.avatar-crop-ring{position:absolute;inset:0;border:2px solid rgba(255,255,255,.7);border-radius:50%;box-shadow:0 0 0 100px rgba(0,0,0,.24);pointer-events:none}.avatar-zoom{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:18px 0}.avatar-zoom input{width:100%;accent-color:var(--blue)}.avatar-zoom span{color:var(--muted)}.profile-toast{position:fixed;z-index:1200;left:50%;bottom:25px;transform:translateX(-50%);max-width:min(440px,calc(100vw - 32px));border:1px solid #34414b;border-radius:10px;background:#172129;padding:11px 15px;box-shadow:0 12px 36px rgba(0,0,0,.48);color:#fff;font-size:12px;text-align:center}.profile-toast[hidden]{display:none}
.light .profile-listing-card,.light .profile-modal{background:#fff;border-color:#c3d0da;color:#17212c}.light .profile-modal-backdrop{background:rgba(39,56,69,.38)}.light .profile-modal-head{background:#fff}.light .profile-form input{background:#f5f8fa;border-color:#b9c8d3;color:#17212c}.light .settings-item:hover,.light .listing-action-list button:hover,.light .modal-button:hover,.light .account-row:hover{background:#e9f0f5;color:#17212c}.light .profile-balance,.light .outline-button,.light .profile-listing-card,.light .account-row{border-color:#c5d1da}.light .profile-toast{background:#fff;border-color:#b9c8d3;color:#17212c}.light .presence-dot{border-color:var(--bg)}
@media(max-width:850px){.profile-page{padding-top:82px}.profile-shell{max-width:680px}.profile-listing-grid{grid-template-columns:1fr}.profile-listing-card{grid-template-columns:150px minmax(0,1fr)}.profile-listing-image{width:150px}}
@media(max-width:540px){.profile-page.container{width:calc(100% - 32px);padding-top:95px}.profile-topbar{padding-bottom:19px}.profile-settings-button{padding-left:0}.profile-avatar-wrap,.profile-avatar{width:96px;height:96px}.profile-avatar{font-size:36px}.presence-dot{right:3px;bottom:5px}.profile-identity{padding-bottom:23px}.profile-identity h1{font-size:24px}.profile-info dl>div{grid-template-columns:1fr;gap:5px}.profile-listing-card{display:block}.profile-listing-image{width:100%;height:176px;min-height:0;border-radius:12px 12px 0 0}.profile-listing-copy{min-height:155px}.profile-modal-layer{align-items:end;padding:0}.profile-modal,.profile-modal.is-wide{width:100%;max-height:90vh;border-radius:16px 16px 0 0}.avatar-crop-stage{width:min(280px,calc(100vw - 72px));height:min(280px,calc(100vw - 72px))}}

/* Refined profile presentation */
.profile-avatar{border-color:rgba(145,167,185,.2);background:#69737b;box-shadow:none}
.profile-settings-button,.listing-menu-button,.settings-item,.listing-action-list button,.modal-button,.account-row{transition:background-color .2s ease,border-color .2s ease,color .2s ease}
.profile-settings-button:hover,.listing-menu-button:hover,.settings-item:hover,.listing-action-list button:hover,.modal-button:hover,.account-row:hover{background:rgba(145,167,185,.055)}
.profile-info dl>div{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
.profile-info dt{flex:0 0 auto}.profile-info dt::after{content:":"}.profile-info dd{min-width:0}
.profile-about{margin-top:18px}.profile-about-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-about-heading h3{margin:0;font-size:14px;font-weight:700}.profile-about-edit{border-radius:7px;padding:4px 7px;color:var(--blue);font-size:11px;font-weight:700}.profile-about-edit:hover{background:rgba(0,113,255,.09)}.profile-about-text{margin:7px 0 0;overflow-wrap:anywhere;color:var(--text);font-size:13px;line-height:1.5;white-space:pre-wrap}.profile-about-text.is-empty{color:var(--muted)}.profile-about-form{display:grid;gap:7px;margin-top:8px}.profile-about-form[hidden]{display:none}.profile-about-form textarea{width:100%;min-height:76px;resize:vertical;border:1px solid rgba(145,167,185,.28);border-radius:9px;background:var(--surface);padding:9px 11px;color:var(--text);font:inherit;font-size:13px;line-height:1.45;outline:none}.profile-about-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(0,113,255,.12)}.profile-about-form-meta{display:flex;min-height:16px;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}.profile-about-error{color:#ff727d}.profile-about-actions{display:flex;justify-content:flex-end;gap:7px}.profile-about-button{min-height:32px;border:1px solid rgba(145,167,185,.28);border-radius:8px;padding:0 11px;color:var(--text);font-size:11px;font-weight:700}.profile-about-button:hover{background:var(--surface-top)}.profile-about-button.primary{border-color:var(--blue);background:var(--blue);color:#fff}.profile-about-button.danger{color:#ff727d}.profile-about-button:disabled{cursor:not-allowed;opacity:.5}.light .profile-about-form textarea{border-color:#bdcbd5;background:#f7f9fb;color:#17212c}
.outline-button{border-color:var(--blue);background:#11191f}
.outline-button:hover{border-color:var(--blue);background:rgba(0,113,255,.07);color:var(--text)}
.profile-modal-backdrop{background:rgba(1,7,11,.62);backdrop-filter:blur(5px)}
.profile-modal{width:min(380px,100%);border-color:rgba(145,167,185,.3);border-radius:12px;background:#12191e;box-shadow:0 18px 50px rgba(0,0,0,.42);animation:none}
.profile-modal-head{padding:14px 16px}.profile-modal-head h2{font-size:17px}.profile-modal-body{padding:14px 16px 17px}.modal-close{width:28px;height:28px;border-radius:7px;font-size:21px}
.light .profile-settings-button:hover,.light .listing-menu-button:hover,.light .settings-item:hover,.light .listing-action-list button:hover,.light .modal-button:hover,.light .account-row:hover{background:rgba(56,75,89,.055)}
.light .outline-button{background:#fff;color:#17212c}.light .outline-button:hover{background:rgba(0,113,255,.055)}
.listing-menu-button{right:8px;top:8px;width:26px;height:26px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:18px;line-height:1;transition:background-color .2s ease,color .2s ease}
.listing-menu-button:hover{background:rgba(38,38,38,.72);color:#fff}
@media(max-width:540px){.profile-info dl{gap:11px}.profile-info dl>div{display:flex;gap:4px;font-size:clamp(11px,3.35vw,13px)}.profile-modal-layer{align-items:center;padding:16px}.profile-modal,.profile-modal.is-wide{width:min(380px,100%);max-height:calc(100vh - 32px);border-radius:12px}}
@media(max-width:540px){.profile-about{margin-top:15px}.profile-about-actions{display:grid;grid-template-columns:repeat(3,1fr)}.profile-about-button{padding:0 8px}}

.profile-toast{opacity:0;transform:translate(-50%,18px);pointer-events:none}
.profile-toast.is-visible{opacity:1;transform:translate(-50%,0);transition:opacity 280ms ease-out,transform 280ms ease-out}
.profile-toast.is-hiding{opacity:0;transform:translate(-50%,18px);transition:opacity 220ms ease-in,transform 220ms ease-in}
.account-avatar{background:#69737b;box-shadow:none}
.account-check{color:#0084ff;font-size:18px}
.account-check{display:grid;width:24px;height:42px;place-items:center;color:#0084ff;font-size:0;line-height:0}
.account-check svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;transform:none;animation:none}
.account-row:hover{border-color:var(--line);background:rgba(145,167,185,.055)}
.light .account-row:hover{border-color:var(--line);background:rgba(56,75,89,.055)}
.settings-avatar-row{position:relative;display:flex;align-items:center}.settings-avatar-row .settings-item{flex:1;padding-right:42px}.avatar-menu-trigger{position:absolute;right:7px;top:50%;display:grid;width:28px;height:28px;place-items:center;border-radius:7px;transform:translateY(-50%);color:var(--muted);font-size:20px;line-height:1}.avatar-menu-trigger:hover{background:rgba(145,167,185,.08);color:var(--text)}
.avatar-remove-menu{position:absolute;z-index:4;right:6px;top:44px;width:190px;border:1px solid rgba(145,167,185,.3);border-radius:9px;background:#12191e;padding:5px;box-shadow:0 12px 30px rgba(0,0,0,.35)}.avatar-remove-menu[hidden]{display:none}.avatar-remove-menu button{display:flex;width:100%;align-items:center;gap:9px;border-radius:7px;padding:9px;color:#ff6b75;text-align:left;font-size:12px}.avatar-remove-menu button:hover{background:rgba(145,167,185,.07)}.avatar-remove-menu svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.light .avatar-remove-menu{border-color:#c5d1da;background:#fff;box-shadow:0 12px 28px rgba(38,52,61,.16)}
.modal-close[hidden]{display:none}
.outline-button,.light .outline-button{border-color:rgba(145,167,185,.2);background:transparent;color:var(--text)}
.outline-button:hover,.light .outline-button:hover{border-color:rgba(145,167,185,.3);background:rgba(145,167,185,.055);color:var(--text)}
.profile-modal:has(.delete-confirm-copy) .profile-modal-head{padding:16px 20px 10px}
.profile-modal:has(.delete-confirm-copy) .profile-modal-body{padding:8px 20px 20px}
.delete-confirm-copy{margin:0 0 22px;font-size:14px;line-height:1.5;overflow-wrap:break-word}
.delete-confirm-copy+.modal-actions{margin-top:0}
.profile-listing-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.profile-listing-card{display:flex;min-height:0;flex-direction:column;overflow:hidden}
.profile-listing-image{width:100%;height:auto;min-height:0;aspect-ratio:1/1;object-fit:cover;border-radius:12px 12px 0 0}
.profile-listing-copy{min-height:170px;padding:13px 14px 12px}
.profile-listing-copy h3{margin-bottom:5px}.profile-listing-copy>p{margin-bottom:8px}.profile-listing-seller{margin-top:6px}.listing-status{margin-top:7px}
.listing-menu-button{z-index:2}
@media(max-width:540px){.profile-listing-grid{grid-template-columns:1fr;gap:12px}.profile-listing-card{display:flex}.profile-listing-image{width:100%;height:auto;min-height:0;aspect-ratio:1/1;border-radius:12px 12px 0 0}.profile-listing-copy{min-height:166px;padding:13px 14px 12px}}
.profile-listing-image{aspect-ratio:2/1}
.profile-listing-copy{min-height:154px;padding:11px 13px 10px}
.profile-listing-copy h3{margin-bottom:4px}
.profile-listing-copy>p{margin-bottom:6px;line-height:1.38}
.profile-listing-seller{margin-top:4px}
.listing-status{margin-top:5px}
@media(max-width:540px){.profile-listing-image{aspect-ratio:2/1}.profile-listing-copy{min-height:154px;padding:11px 13px 10px}}
.profile-listing-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.profile-listing-image{aspect-ratio:2.15/1}
.profile-listing-copy{min-height:122px;padding:10px 12px 9px}
.profile-listing-copy h3{margin-bottom:3px}
.profile-listing-copy>p{margin-bottom:5px;line-height:1.35}
.profile-listing-seller{margin-top:3px}
.listing-status{margin-top:4px;padding:4px 7px}
@media(max-width:540px){.profile-listing-grid{grid-template-columns:1fr}.profile-listing-image{aspect-ratio:2.15/1}.profile-listing-copy{min-height:122px;padding:10px 12px 9px}}
.listing-editor-select{height:42px;border:1px solid #34414b;border-radius:9px;background:#0e151a;padding:0 12px;color:var(--text);outline:none}.listing-editor-select:focus{border-color:var(--blue)}.listing-category-picker{display:grid;gap:8px}.listing-category-picker>span{color:var(--muted);font-size:12px}.listing-category-row{display:flex;flex-wrap:wrap;gap:7px}.listing-category-row button{min-height:34px;border:1px solid #34414b;border-radius:9px;padding:0 11px;color:var(--text);font-size:12px}.listing-category-row button:hover{background:var(--surface-top)}.listing-category-row button.selected{border-color:var(--blue);background:var(--blue);color:#fff}.listing-category-empty{margin:0;color:var(--muted);font-size:12px}.light .listing-editor-select{background:#f5f8fa;border-color:#b9c8d3;color:#17212c}.light .listing-category-row button{border-color:#b9c8d3;color:#17212c}.light .listing-category-row button:hover{background:#e9f0f5}.light .listing-category-row button.selected{border-color:var(--blue);background:var(--blue);color:#fff}

/* Local profile states reuse the existing profile layout at every breakpoint. */
.profile-auth-required{display:flex;min-height:calc(100dvh - 136px);align-items:center;justify-content:center;flex-direction:column;gap:18px;text-align:center}
.profile-auth-required[hidden],.profile-shell[hidden],.profile-listing-grid[hidden],.profile-empty[hidden]{display:none}
.profile-section-heading .outline-button[hidden]{display:none}
.profile-auth-required p{max-width:470px;margin:0;color:var(--text);font-size:15px;line-height:1.55}
.profile-state-primary{display:inline-flex;min-width:126px;height:42px;align-items:center;justify-content:center;border:1px solid var(--blue);border-radius:9px;background:var(--blue);box-shadow:0 3px 12px rgba(0,109,255,.15);color:#fff;font-size:13px;font-weight:700}
.profile-state-primary:hover{background:#2084ff;color:#fff}
.profile-empty{display:flex;min-height:230px;align-items:center;justify-content:center;flex-direction:column;border:0;border-radius:0;padding:38px 20px;text-align:center}
.profile-empty p{max-width:520px;margin:0;color:var(--text);font-size:15px;line-height:1.55}
.profile-empty .profile-state-primary{margin-top:18px}
.light .profile-state-primary,html[data-theme="light"] .profile-state-primary{color:#fff}
@media(max-width:850px){.profile-auth-required{min-height:calc(100dvh - 164px)}}
@media(max-width:768px){.profile-auth-required{min-height:calc(100dvh - 160px);padding-bottom:18px}.profile-empty{min-height:210px}}
@media(max-width:540px){.profile-auth-required{min-height:calc(100dvh - 158px);gap:16px;padding-inline:8px}.profile-auth-required p,.profile-empty p{font-size:14px}.profile-state-primary{min-width:122px;height:40px}.profile-empty{min-height:190px;padding:32px 8px}.profile-empty .profile-state-primary{margin-top:16px}}
.listing-edit-note{margin:0;padding:0 11px;color:#aeb6bd;font-size:12px;line-height:1.4}
