/* Patiyiz profile header & PatiCoin – compact, predictable on every width.
 * Own profile: a real feature menu trigger. Other profiles keep their 3-dot safety menu. */
#main-content .pati-ig-profile>.pati-profile-topbar{
 position:relative;z-index:10;display:flex!important;align-items:center!important;
 justify-content:space-between!important;gap:12px;
 min-height:58px;width:100%;box-sizing:border-box;
 padding:7px clamp(12px,3.8vw,20px)!important;
 background:#fff!important;color:#1b1d22!important;
 border-bottom:1px solid #eceef1!important;
}
#main-content .pati-profile-topbar-title{
 font-size:16px!important;font-weight:800!important;line-height:1.25!important;
 letter-spacing:-.015em;color:#191b20!important;
}
#main-content .pati-profile-menu-trigger{
 box-sizing:border-box!important;flex:0 0 44px;
 display:grid!important;place-items:center!important;
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
 padding:0!important;margin:0!important;
 border:1px solid #e4e6eb!important;border-radius:13px!important;
 background:#f6f7f9!important;color:#24262c!important;
 box-shadow:none!important;cursor:pointer;
 -webkit-tap-highlight-color:transparent;
}
#main-content .pati-profile-menu-trigger svg{
 display:block;width:24px;height:24px;
 stroke:#24262c!important;fill:none!important;
}
#main-content .pati-profile-menu-trigger:focus-visible{
 outline:2px solid #6688e8!important;outline-offset:2px!important;
}
#main-content .pati-profile-menu-trigger:active{
 transform:scale(.97);
 background:#e9ebef!important;
}
/* The existing personal profile is an always-white surface in either theme. */
#main-content .pati-ig-profile .pati-ig-actions:has(.pati-profile-coin-balance){
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)!important;
 align-items:stretch!important;justify-content:stretch!important;
 gap:9px!important;box-sizing:border-box!important;
 width:100%!important;min-width:0!important;
 padding:8px clamp(12px,3.8vw,20px) 14px!important;
 margin:0!important;
}
#main-content .pati-ig-profile .pati-ig-actions:has(.pati-profile-coin-balance)>button{
 box-sizing:border-box!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:64px!important;min-height:64px!important;max-height:64px!important;
 margin:0!important;border-radius:14px!important;
 font-family:inherit!important;
}
#main-content .pati-ig-profile .pati-ig-actions>button[data-action="edit-profile"]{
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:10px 9px!important;overflow-wrap:break-word!important;
 border:1px solid #22252a!important;
 background:#22252a!important;color:#fff!important;
 font-size:13px!important;font-weight:800!important;
 box-shadow:none!important;text-align:center;
}
#main-content .pati-ig-profile .pati-ig-actions>button.pati-profile-coin-balance{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;gap:9px!important;
 padding:8px 10px!important;
 border:1px solid #e0e3e8!important;
 border-radius:14px!important;
 background:#fff!important;color:#1c1e24!important;
 box-shadow:0 1px 6px #1b1e2c0a!important;
 text-align:left!important;
 overflow:hidden!important;
}
#main-content .pati-profile-coin-icon{
 display:grid!important;place-items:center!important;
 width:35px!important;height:35px!important;
 flex:0 0 35px!important;
 box-sizing:border-box!important;
 border-radius:11px!important;
 background:#f3f4f6!important;
}
#main-content .pati-profile-coin-icon img{
 display:block!important;
 width:26px!important;height:26px!important;
 min-width:0!important;max-width:26px!important;max-height:26px!important;
 object-fit:contain!important;flex:0 0 auto!important;
}
#main-content .pati-profile-coin-copy{
 display:flex!important;flex-direction:column!important;
 justify-content:center!important;align-items:flex-start!important;
 flex:1 1 auto!important;min-width:0!important;gap:4px!important;
 margin:0!important;padding:0!important;
}
#main-content .pati-profile-coin-copy small{
 display:block!important;width:100%!important;
 color:#666b74!important;font-weight:700!important;
 font-size:11px!important;line-height:1.2!important;
 white-space:normal!important;overflow-wrap:normal!important;
 letter-spacing:0!important;
}
#main-content .pati-profile-coin-copy strong{
 display:block!important;max-width:100%!important;
 font-size:19px!important;line-height:1.05!important;
 font-weight:850!important;color:#15171a!important;
 font-variant-numeric:tabular-nums!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
#main-content .pati-ig-profile .pati-ig-actions>button.pati-profile-coin-balance:hover{
 background:#f9fafb!important;border-color:#cdd1d8!important;
}
#main-content .pati-ig-profile .pati-ig-actions>button.pati-profile-coin-balance:focus-visible,
#main-content .pati-ig-profile .pati-ig-actions>button[data-action="edit-profile"]:focus-visible{
 outline:2px solid #7795ed!important;outline-offset:3px!important;
}
@media(max-width:390px){
 #main-content .pati-ig-profile .pati-ig-actions:has(.pati-profile-coin-balance){
  grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)!important;
  gap:7px!important;
 }
 #main-content .pati-ig-profile .pati-ig-actions>button.pati-profile-coin-balance{
  padding-inline:8px!important;gap:7px!important;
 }
 #main-content .pati-profile-coin-icon{
  width:29px!important;height:29px!important;flex-basis:29px!important;
 }
 #main-content .pati-profile-coin-icon img{
  width:23px!important;height:23px!important;max-width:23px!important;max-height:23px!important;
 }
 #main-content .pati-profile-coin-copy small{font-size:10px!important}
 #main-content .pati-profile-coin-copy strong{font-size:16px!important}
 #main-content .pati-ig-profile .pati-ig-actions>button[data-action="edit-profile"]{font-size:12px!important}
}
@media(max-width:320px){
 #main-content .pati-profile-coin-icon{width:25px!important;height:25px!important;flex-basis:25px!important}
 #main-content .pati-profile-coin-icon img{width:21px!important;height:21px!important}
 #main-content .pati-profile-coin-copy small{font-size:9px!important}
}
@media(prefers-reduced-motion:reduce){
 #main-content .pati-profile-menu-trigger{transition:none!important}
}
