/* Okno profilu */
#profileEditor.hbp{width:min(980px,calc(100vw - 32px));max-width:none;height:min(800px,calc(100dvh - 32px));max-height:none;padding:0;border:0;border-radius:26px;background:#fff;color:var(--ink);overflow:hidden;box-shadow:0 40px 80px -30px rgba(0,0,0,.5)}#profileEditor.hbp::backdrop{background:rgba(14,16,18,.46)}
#profileEditor.hbp form{display:grid;grid-template-columns:330px minmax(0,1fr);height:100%;margin:0;padding:0;gap:0}#profileEditor.hbp :is(h2,h3,h4,p){margin:0}#profileEditor.hbp :is(button,a,input,textarea,summary,label):focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.hbp-left{position:relative;display:flex;flex-direction:column;align-items:center;min-height:0;padding:26px 22px 18px;background:var(--hb-stage);text-align:center;overflow:hidden;isolation:isolate}.hbp-kick{align-self:stretch;font-size:13.5px;font-weight:600;color:#c4158c}
#profileEditor.hbp .profile-avatar-preview{flex:none;display:grid;place-items:center;width:172px;height:172px;margin:16px 0 12px;padding:5px;border:0;border-radius:50%;background:var(--hb-grad);box-shadow:0 26px 50px -24px rgba(240,38,172,.7)}#profileEditor.hbp .profile-avatar-preview .member-avatar{display:grid;place-items:center;width:100%;height:100%;margin:0;border:0;border-radius:50%;object-fit:cover;font-size:56px;font-weight:700;line-height:1}#profileEditor.hbp .profile-avatar-preview img.member-avatar{background:#fff}
.hbp-names{min-width:0}#profileEditor.hbp .hbp-names h3{font-size:26px;font-weight:700;letter-spacing:-.025em;line-height:1.1;overflow-wrap:anywhere}#profileEditor.hbp .hbp-city{margin-top:3px;min-height:20px;color:var(--muted);font-size:14px}#profileEditor.hbp .hbp-bio{margin-top:8px;max-height:92px;overflow:hidden;color:var(--muted);font-size:13.5px;overflow-wrap:anywhere}.hbp-live-printers{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-top:10px}.hbp-live-printers span{padding:3px 9px;border-radius:999px;background:#fff;font-size:12px;font-weight:500}
.hbp-strand{position:absolute;left:0;right:0;bottom:64px;width:100%;height:120px;z-index:-1;pointer-events:none}.hbp-progress{align-self:stretch;margin-top:auto;padding:11px 13px;border-radius:16px;background:#fff;text-align:left}.hbp-progress b{font-size:14px;font-weight:600}.hbp-bar{height:8px;margin-top:6px;border-radius:99px;background:var(--hb-stage);overflow:hidden}.hbp-bar i{display:block;width:100%;height:100%;border-radius:99px;background:var(--hb-grad);transform-origin:left;transition:transform .2s}
.hbp-right{display:flex;flex-direction:column;min-width:0;min-height:0}.hbp-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 22px 12px;border-bottom:1px solid var(--line)}#profileEditor.hbp .hbp-head h2{font-size:24px;font-weight:700;letter-spacing:-.025em}#profileEditor.hbp .member-close,.hbp-btn{position:static;width:auto;min-height:42px;margin:0;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:14px;font-weight:500;box-shadow:none;cursor:pointer}
.hbp-body{flex:1;min-height:0;display:grid;gap:14px;align-content:start;padding:14px 22px 16px;overflow-y:auto;scrollbar-width:thin}#profileEditor.hbp .hbp-section h4{margin-bottom:7px;font-size:15px;font-weight:600}.hbp-muted{color:var(--muted);font-size:13.5px}#profileEditor.hbp .hbp-section>.hbp-muted{margin:10px 0 0}
#profileEditor.hbp .hbp-drop{position:relative;display:flex;align-items:center;gap:14px;width:100%;margin:0;padding:13px 15px;border:1.5px dashed #c1c5ca;border-radius:18px;background:#fff;font-weight:400;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}#profileEditor.hbp .hbp-drop:is(:hover,.over){border-color:var(--ink);background:var(--hb-stage)}#profileEditor.hbp .hbp-drop:focus-within{outline:3px solid var(--ink);outline-offset:2px}.hbp-cam{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:50%;background:var(--ink);color:#fff}.hbp-drop b{display:block;font-size:15.5px;font-weight:600}.hbp-drop small{display:block;font-size:12.5px;color:var(--muted)}#profileEditor.hbp .hbp-drop input{position:absolute;width:1px;height:1px;min-height:0;padding:0;border:0;opacity:0}
#profileEditor.hbp .profile-avatar-options{margin:9px 0 0;padding:0;border:0;background:none}#profileEditor.hbp .profile-avatar-options>summary,#profileEditor.hbp .profile-avatar-options>.fineprint{display:none}#profileEditor.hbp .profile-avatar-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;margin:0;padding:0;max-height:none;overflow:visible}#profileEditor.hbp .profile-avatar-choice{display:block;width:auto;min-width:0;min-height:0;height:auto;aspect-ratio:1;margin:0;padding:0;border:0;border-radius:50%;background:var(--hb-stage);box-shadow:none;overflow:hidden;cursor:pointer;transition:transform .15s}#profileEditor.hbp .profile-avatar-choice:hover{transform:scale(1.1)}#profileEditor.hbp .profile-avatar-choice img{display:block;width:100%;height:100%;margin:0}#profileEditor.hbp .profile-avatar-choice span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#profileEditor.hbp .profile-avatar-choice[aria-pressed=true]{outline:3px solid var(--ink);outline-offset:2px}
.hbp-mini{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px}#profileEditor.hbp .hbp-mini button{width:auto;min-height:28px;margin:0;padding:0;border:0;background:none;box-shadow:none;color:var(--muted);font-size:13px;font-weight:400;text-decoration:underline;text-underline-offset:3px;cursor:pointer}#profileEditor.hbp .hbp-mini button[hidden]{display:none}
#profileEditor.hbp [data-initial-color]{display:block;margin:6px 0 0;font-size:0}#profileEditor.hbp [data-initial-color][hidden]{display:none}#profileEditor.hbp [data-initial-color] select{position:absolute;width:1px;height:1px;min-height:0;padding:0;border:0;opacity:0}.hbp-swatches{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:13px;color:var(--muted)}#profileEditor.hbp .hbp-swatches button{flex:none;width:30px;min-width:0;height:30px;min-height:0;margin:0;padding:0;border:1px solid rgba(0,0,0,.12);border-radius:50%;box-shadow:none;cursor:pointer}#profileEditor.hbp .hbp-swatches button[aria-pressed=true]{outline:3px solid var(--ink);outline-offset:2px}
.hbp-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}#profileEditor.hbp .hbp-body>label,#profileEditor.hbp .hbp-pair>label{display:grid;gap:4px;margin:0;font-size:13.5px;font-weight:500}#profileEditor.hbp .hbp-body>label :is(input,textarea),#profileEditor.hbp .hbp-pair input{width:100%;min-height:44px;margin:0;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:14.5px;font-weight:400;box-shadow:none}#profileEditor.hbp textarea{min-height:66px;resize:vertical}#profileEditor.hbp .hbp-right :is(input:not([type=checkbox]):not([type=file]),textarea){border-color:var(--line)!important;box-shadow:none!important}#profileEditor.hbp .hbp-right :is(input:not([type=checkbox]):not([type=file]),textarea):focus{border-color:var(--ink)!important;outline:1px solid var(--ink);outline-offset:0}.hbp-count{justify-self:end;font-size:12px;font-weight:400;color:var(--hb-soft)}
.hbp-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.hbp-chip{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 6px 0 12px;border-radius:999px;background:var(--hb-stage);font-size:13.5px;font-weight:500}#profileEditor.hbp .hbp-chip button{width:26px;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:#fff;box-shadow:none;color:var(--ink);font-size:14px;line-height:1;cursor:pointer}#profileEditor.hbp .hbp-add{flex:1;min-width:190px;min-height:40px;margin:0;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:14px;box-shadow:none}.hbp-hints{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}#profileEditor.hbp .hbp-hints button{width:auto;min-height:32px;margin:0;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:#fff;box-shadow:none;color:var(--ink);font-size:12.5px;font-weight:400;cursor:pointer}#profileEditor.hbp .hbp-rows[hidden]{display:none}
#profileEditor.hbp .hbp-switch{position:relative;display:flex;align-items:flex-start;gap:12px;margin:0;padding:12px 14px;border:0;border-radius:16px;background:var(--hb-stage);font-weight:400;cursor:pointer}#profileEditor.hbp .hbp-switch input{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;opacity:0}.hbp-switch>i{flex:none;position:relative;width:44px;height:26px;margin-top:1px;border-radius:99px;background:#c9cdd2;transition:background .15s}.hbp-switch>i::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s}.hbp-switch input:checked+i{background:var(--ink)}.hbp-switch input:checked+i::after{transform:translateX(18px)}.hbp-switch input:focus-visible+i{outline:3px solid var(--ink);outline-offset:2px}.hbp-switch b{display:block;font-size:14px;font-weight:600}#profileEditor.hbp .hbp-switch .fineprint{margin-top:2px;font-size:12.5px;line-height:1.4;color:var(--muted)}#profileEditor.hbp .profile-visibility{display:none}
.hbp-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:12px 22px;border-top:1px solid var(--line)}#profileEditor.hbp .profile-save-status{flex:1 1 180px;min-width:0;margin:0;font-size:13px;color:var(--muted)}#profileEditor.hbp .hbp-foot [type=submit]{width:auto;min-height:48px;margin:0;padding:0 22px;border:0;border-radius:14px;background:var(--hb-grad);box-shadow:0 10px 24px -10px rgba(240,38,172,.55);color:#fff;font-size:15px;font-weight:600;cursor:pointer}#profileEditor.hbp .hbp-foot [type=submit]:disabled{opacity:.55;cursor:default}
/* Kadrowanie */
#avatarCropDialog{width:min(440px,calc(100vw - 24px));border:0;border-radius:26px;background:#fff;color:var(--ink);box-shadow:0 40px 80px -30px rgba(0,0,0,.6)}#avatarCropDialog::backdrop{background:rgba(14,16,18,.62)}.avatar-crop-body{padding:20px 20px 8px;text-align:center}.avatar-crop-body h2{font-size:22px;font-weight:700;letter-spacing:-.02em}.avatar-crop-body>p{color:var(--muted)}.avatar-crop-frame{border-radius:22px;background:#17191c}.avatar-crop-frame:after{box-shadow:0 0 0 200px rgba(14,16,18,.55);border-width:3px}#avatarCropDialog .avatar-crop-frame:focus-within,#avatarCropDialog .avatar-crop-frame canvas:focus,#avatarCropDialog .avatar-crop-frame canvas:focus-visible{outline:3px solid var(--ink);outline-offset:2px}.avatar-crop-zoom{display:flex;align-items:center;gap:10px;font-size:13.5px;text-align:left}.avatar-crop-zoom input{flex:1;min-height:0;accent-color:var(--ink)}#avatarCropDialog [data-crop-reset]{min-height:32px;border:0;background:none;box-shadow:none;color:var(--muted);font-size:13px;text-decoration:underline;text-underline-offset:3px}.avatar-crop-actions{display:flex;justify-content:flex-end;gap:8px;padding:10px 20px 18px;border:0;background:#fff}#avatarCropDialog [data-crop-cancel]{min-height:48px;padding:0 15px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:none;color:var(--ink);font-weight:500}#avatarCropDialog [data-crop-use]{min-height:48px;padding:0 19px;border:0;border-radius:14px;background:var(--hb-grad);box-shadow:0 10px 24px -10px rgba(240,38,172,.55);color:#fff;font-weight:600}
/* Telefon */
@media(max-width:760px){
 #profileEditor.hbp{width:100vw;height:100dvh;max-width:100vw;margin:0;border-radius:0;overflow-y:auto}#profileEditor.hbp form{display:flex;flex-direction:column;height:auto;min-height:100%}
 .hbp-left{flex:none;flex-direction:row;flex-wrap:wrap;gap:0 12px;padding:14px 16px;text-align:left}.hbp-kick,.hbp-strand,.hbp-live-printers,#profileEditor.hbp .hbp-bio{display:none}#profileEditor.hbp .profile-avatar-preview{width:72px;height:72px;margin:0;padding:3px}#profileEditor.hbp .profile-avatar-preview .member-avatar{font-size:24px}.hbp-names{flex:1}#profileEditor.hbp .hbp-names h3{font-size:20px}.hbp-progress{flex:1 0 100%;margin-top:10px;padding:8px 11px}
 .hbp-right{flex:1;display:flex}.hbp-head{padding:12px 16px}.hbp-body{overflow:visible;padding:12px 16px}#profileEditor.hbp .profile-avatar-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.hbp-pair{grid-template-columns:minmax(0,1fr)}
 .hbp-foot{position:sticky;bottom:0;z-index:2;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff}#profileEditor.hbp .hbp-foot [type=submit]{flex:1}#profileEditor.hbp .profile-save-status{flex:1 0 100%}
}
