/* ZERO TWO profile v2 (own page and everyone's page).
   Instagram-style header: avatar + stats on one row, name / bio / links, equal action buttons, underline tabs, 3-column grid.
   All classes are new (zp-*), so none of the older profile rules can fight with this file. */
html body .zp.wrap{width:min(940px,100%);max-width:940px;margin:0 auto;padding:18px 0 40px}
html body .zp *{box-sizing:border-box}

/* ---------- card / cover ---------- */
html body .zp .zp-card{position:relative;background:var(--surface,#fff);border:1px solid var(--line2,#e5e5ea);border-radius:20px;overflow:hidden;box-shadow:none}
html body .zp .zp-cover{height:200px;background:linear-gradient(135deg,color-mix(in srgb,var(--c,#7e3def) 70%,#fff),color-mix(in srgb,var(--c,#7e3def) 30%,#fff));background-size:cover;background-position:center}
html body .zp .zp-head{padding:0 24px 18px}
html body .zp .zp-main{display:block;min-width:0;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;gap:0}

/* ---------- avatar + stats ---------- */
html body .zp .zp-hd{display:flex;align-items:flex-end;gap:24px}
html body .zp .zp-av{position:relative;flex:none;margin-top:-62px;width:132px;height:132px}
html body .zp .zp-ring{display:block;width:100%;height:100%;border-radius:50%;padding:4px;background:var(--surface,#fff);box-shadow:0 0 0 1px var(--line2,#e5e5ea)}
html body .zp .zp-ring .avatar{width:100%!important;height:100%!important;border-radius:50%;font-size:46px!important;display:grid;place-items:center;overflow:hidden}
html body .zp .zp-ring .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
html body .zp .zp-cam{position:absolute;right:2px;bottom:4px;width:34px;height:34px;display:grid;place-items:center;padding:0;border-radius:50%;border:2px solid var(--surface,#fff);background:var(--accent,#7e3def);color:#fff;cursor:pointer}
html body .zp .zp-cam svg{width:16px;height:16px}
html body .zp .zp-stats{display:flex;flex:1;min-width:0;list-style:none;margin:0;padding:14px 0 0;gap:6px}
html body .zp .zp-stats>li{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.2;color:var(--muted,#777);font-size:13px}
html body .zp .zp-stats>li b{display:block;font-size:19px;font-weight:800;color:var(--text,#111);letter-spacing:-.01em}
html body .zp .zp-stats>li span{display:block;margin-top:2px;font-weight:500}
html body .zp .zp-stats .linkish{all:unset;display:flex;flex-direction:column;align-items:center;cursor:pointer;min-width:0;line-height:1.2;-webkit-tap-highlight-color:transparent}
html body .zp .zp-stats .linkish b{font-size:19px;font-weight:800;color:var(--text,#111)}
html body .zp .zp-stats .linkish span{margin-top:2px;font-size:13px;color:var(--muted,#777);font-weight:500}

/* ---------- identity ---------- */
html body .zp .zp-id{margin:12px 0 0}
html body .zp .zp-id h1{margin:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:22px;line-height:1.2;font-weight:800;letter-spacing:-.015em;color:var(--text,#111);text-align:left;text-transform:none}
html body .zp .zp-id h1 .vbadge{font-size:18px;filter:none}
html body .zp .zp-un{margin:2px 0 0;font-size:14px;color:var(--muted,#777);font-weight:500}
html body .zp .pres{margin:2px 0 0;font-size:12.5px;min-height:0}
html body .zp .pres:empty{display:none}
html body .zp .zp-bio{margin:10px 0 0;font-size:14.5px;line-height:1.5;color:var(--text,#111);white-space:pre-line;overflow-wrap:anywhere}
html body .zp .zp-info{display:flex;flex-wrap:wrap;gap:4px 14px;margin:8px 0 0;font-size:13.5px;color:var(--muted,#777)}
html body .zp .zp-info>*{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}
html body .zp .zp-info svg{width:15px;height:15px;flex:none}
html body .zp .zp-web{color:var(--accent-text,#6a3ad8);font-weight:600;text-decoration:none}
html body .zp .zp-web span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .zp .zp-sub{display:flex;align-items:center;flex-wrap:wrap;gap:0 4px;margin:10px 0 0;font-size:13px;color:var(--muted,#777)}
html body .zp .zp-sub b{color:var(--text,#111);font-weight:700}
html body .zp .zp-sub i{margin:0 4px;width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.5}

/* ---------- action buttons ---------- */
html body .zp .zp-acts{display:flex;align-items:stretch;gap:8px;margin:14px 0 0;padding:0;width:100%}
html body .zp .zp-acts>*{margin:0!important;min-width:0}
html body .zp .zp-acts .btn,html body .zp .zp-acts .fbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;min-height:38px;padding:0 14px;border-radius:10px;border:0!important;background:var(--surface3,#eee)!important;color:var(--text,#111);font:inherit;font-size:14px;font-weight:700;line-height:1;white-space:nowrap;box-shadow:none;text-decoration:none;cursor:pointer;transition:background .15s,transform .1s}
html body .zp .zp-acts .btn:hover,html body .zp .zp-acts .fbtn:hover{background:var(--line,#e2e2e2)!important;opacity:1}
html body .zp .zp-acts .btn:active,html body .zp .zp-acts .fbtn:active{transform:scale(.97)}
html body .zp .zp-acts .zp-b,html body .zp .zp-acts .fbtn,html body .zp .zp-acts [data-msg]{flex:1 1 0}
html body .zp .zp-acts .zp-ico{flex:none;width:44px;padding:0}
html body .zp .zp-acts .zp-ico svg{width:19px;height:19px}
html body .zp .zp-acts [data-pp="edit"]{background:var(--accent,#7e3def)!important;color:#fff!important;border:0!important}
html body .zp .zp-acts [data-pp="edit"]:hover,html body .zp .zp-acts .fbtn:not(.on):hover{background:var(--accent-hi,#7736e8)!important}
html body .zp .zp-acts .fbtn:not(.on){background:var(--accent,#7e3def)!important;color:#fff!important}
html body .zp .zp-acts .fbtn:not(.on):hover{background:var(--accent-hi,#7736e8)}
html body .zp .zp-acts .fbtn .f-b{display:none}
html body .zp .zp-acts [data-copyprof]{display:none}
html body .zp .zp-acts .btn svg{width:16px;height:16px;flex:none}

/* followers / following list */
html body .zp .zp-people{margin:14px 0 0;border:1px solid var(--line2,#e5e5ea);border-radius:14px;background:var(--surface2,#fafafa);overflow:hidden}
html body .zp .zp-ph{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--line,#eee)}
html body .zp .zp-ph h3{margin:0;font-size:15px}
html body .zp .zp-ph small{margin-left:6px;color:var(--muted,#777)}
html body .zp .zp-x{border:0;background:none;color:var(--accent-text,#6a3ad8);font:inherit;font-weight:700;font-size:13px;cursor:pointer;padding:6px}
html body .zp .zp-none{margin:0;padding:16px 14px;font-size:14px;color:var(--muted,#777)}
html body .zp .zp-people .plist{max-height:320px;overflow:auto;margin:0;padding:4px 8px;list-style:none}

/* ---------- tabs ---------- */
html body .zp .zp-tabs{display:flex;border-top:1px solid var(--line2,#e5e5ea);margin:0;padding:0 8px;gap:0;overflow-x:auto;scrollbar-width:none;background:var(--surface,#fff)}
html body .zp .zp-tabs::-webkit-scrollbar{display:none}
html body .zp .zp-tabs button{flex:1 1 0;min-width:84px;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:48px;padding:0 10px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;color:var(--muted,#777);font:inherit;font-size:14px;font-weight:700;cursor:pointer;border-radius:0;transition:color .15s,border-color .15s;-webkit-tap-highlight-color:transparent}
html body .zp .zp-tabs button small{font-size:12px;font-weight:600;opacity:.75}
html body .zp .zp-tabs button.on{color:var(--text,#111);border-bottom-color:var(--accent,#7e3def)}
html body .zp .zp-tabs button:hover:not(.on){color:var(--text,#111)}

/* ---------- complete-your-profile ---------- */
html body .zp .zp-complete{margin:12px 0 0;padding:14px 16px;border:1px solid var(--line2,#e5e5ea);border-radius:16px;background:var(--surface,#fff)}
html body .zp .zp-ch{display:flex;justify-content:space-between;align-items:baseline;font-size:14px}
html body .zp .zp-ch span{font-size:12.5px;color:var(--muted,#777);font-weight:600}
html body .zp .zp-bar{height:5px;margin:9px 0 11px;border-radius:99px;background:var(--surface3,#eee);overflow:hidden}
html body .zp .zp-bar i{display:block;height:100%;border-radius:inherit;background:var(--accent,#7e3def)}
html body .zp .zp-todo{display:flex;flex-wrap:wrap;gap:8px}
html body .zp .zp-chip{height:32px;padding:0 12px;border-radius:99px;border:1px dashed var(--line3,#ccc);background:none;color:var(--accent-text,#6a3ad8);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
html body .zp .zp-chip:hover{background:var(--accent-soft,#f1e9ff)}

/* ---------- pane: tools, grid, list ---------- */
html body .zp .zp-pane{margin-top:14px;min-width:0}
html body .zp .zp-tools{display:flex;align-items:center;gap:10px;margin:0 0 12px}
html body .zp .zp-sp{flex:1}
html body .zp .zp-tools .field{flex:1;min-width:0;height:40px;border-radius:12px}
html body .zp .zp-view{display:inline-flex;flex:none;padding:3px;gap:2px;border-radius:12px;background:var(--surface3,#eee)}
html body .zp .zp-view button{display:grid;place-items:center;width:36px;height:32px;padding:0;border:0;border-radius:9px;background:none;color:var(--muted,#777);cursor:pointer}
html body .zp .zp-view button.on{background:var(--surface,#fff);color:var(--text,#111);box-shadow:0 1px 3px rgba(0,0,0,.12)}
html body .zp .zp-view svg{width:18px;height:18px}
html body .zp .zp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding:0}
html body .zp .zp-grid>*{margin:0;min-width:0}
html body .zp .zp-grid .tile{aspect-ratio:1/1;border-radius:12px}
html body .zp .zp-grid>.empty{grid-column:1/-1}
html body .zp .zp-list{display:flex;flex-direction:column;gap:12px;margin:0;padding:0}
html body .zp .zp-list>*{margin:0}
html body .zp .zp-about{padding:18px;border:1px solid var(--line2,#e5e5ea);border-radius:16px;background:var(--surface,#fff)}
html body .zp .zp-about h3{margin:0 0 10px;font-size:17px}
html body .zp .zp-abio{margin:0 0 14px;font-size:15px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
html body .zp .zp-about ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
html body .zp .zp-about li{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--text2,#444)}
html body .zp .zp-about li svg{width:17px;height:17px;flex:none;color:var(--muted,#777)}
html body .zp .zp-about a{color:var(--accent-text,#6a3ad8);font-weight:600;text-decoration:none;overflow-wrap:anywhere}
html body .zp .empty{padding:36px 16px;text-align:center}

/* ---------- phones ---------- */
@media (max-width:760px){
  html body .zp.wrap{width:100%;max-width:none;padding:0 0 24px}
  html body .zp .zp-card{border:0;border-radius:0;background:transparent}
  html body .zp .zp-cover{height:104px}
  html body .zp .zp-head{padding:0 16px 14px;background:var(--surface,#fff)}
  html body .zp .zp-hd{gap:16px}
  html body .zp .zp-av{margin-top:-40px;width:88px;height:88px}
  html body .zp .zp-ring{padding:3px}
  html body .zp .zp-ring .avatar{font-size:32px!important}
  html body .zp .zp-cam{width:28px;height:28px;right:-2px;bottom:0}
  html body .zp .zp-cam svg{width:14px;height:14px}
  html body .zp .zp-stats{padding:8px 0 4px;gap:2px}
  html body .zp .zp-stats>li b,html body .zp .zp-stats .linkish b{font-size:17px}
  html body .zp .zp-stats>li,html body .zp .zp-stats .linkish span{font-size:12.5px}
  html body .zp .zp-id{margin-top:10px}
  html body .zp .zp-id h1{font-size:18px}
  html body .zp .zp-bio{font-size:14px;margin-top:8px}
  html body .zp .zp-info{font-size:13px;margin-top:6px}
  html body .zp .zp-sub{margin-top:8px;font-size:12.5px}
  html body .zp .zp-acts{margin-top:12px;gap:6px}
  html body .zp .zp-acts .btn,html body .zp .zp-acts .fbtn{height:36px;min-height:36px;padding:0 10px;font-size:13.5px}
  html body .zp .zp-acts .zp-ico{width:40px}
  html body .zp .zp-tabs{padding:0;position:sticky;top:0;z-index:5;border-top:1px solid var(--line,#eee);border-bottom:1px solid var(--line,#eee)}
  html body .zp .zp-tabs button{min-width:0;height:44px;padding:0 6px;font-size:13.5px}
  html body .zp .zp-complete{margin:8px 12px 0;padding:12px 14px}
  html body .zp .pp-devtools{margin:8px 12px 0}
  html body .zp .zp-pane{margin-top:0}
  html body .zp .zp-tools{margin:0;padding:10px 12px}
  html body .zp .zp-tools .field{height:38px}
  html body .zp .zp-grid{gap:2px}
  html body .zp .zp-grid .tile{border-radius:0}
  html body .zp .zp-list{gap:10px;padding:0 0}
  html body .zp .zp-about{margin:10px 12px;padding:16px}
  html body .zp .zp-people{margin:12px 0 0}
  html body .zp .zp-pane>.empty,html body .zp .zp-pane .notice{margin:12px}
}
@media (max-width:360px){
  html body .zp .zp-av{width:76px;height:76px;margin-top:-34px}
  html body .zp .zp-hd{gap:10px}
  html body .zp .zp-acts .btn,html body .zp .zp-acts .fbtn{font-size:13px;padding:0 6px}
}
