/* V22 auction + artwork chat */
.artwork-chat-btn,.auction-bid-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:46px;padding:0 16px;border-radius:11px;font-size:15px;font-weight:750;
  cursor:pointer;border:1px solid #171717;background:#fff;color:#171717;
}
.artwork-chat-btn:hover{background:#f7f7f7}
.auction-bid-btn{background:#171717;color:#fff}
.auction-panel{
  margin-top:18px;padding:18px;border:1px solid #e4e4e4;border-radius:14px;background:#fafafa;
}
.auction-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.auction-title{font-size:17px;font-weight:800}
.auction-status{font-size:12px;font-weight:800;padding:5px 8px;border-radius:999px;background:#eef8ef;color:#277334}
.auction-price{font-size:28px;font-weight:850;letter-spacing:-.03em;margin:10px 0 4px}
.auction-meta{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:13px;color:#666}
.auction-bid-row{display:flex;gap:8px;margin-top:14px}
.auction-bid-row input{
  min-width:0;flex:1;border:1px solid #d5d5d5;border-radius:10px;padding:12px 13px;font-size:15px
}
.auction-history{margin-top:14px;border-top:1px solid #e2e2e2;padding-top:12px}
.auction-history-title{font-size:13px;font-weight:800;margin-bottom:8px}
.auction-history-list{display:grid;gap:7px;max-height:140px;overflow:auto}
.auction-history-item{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#555}
.art-chat-modal{
  position:fixed;inset:0;z-index:11000;background:rgba(0,0,0,.38);display:none;align-items:flex-end;justify-content:flex-end;padding:18px
}
.art-chat-modal.open{display:flex}
.art-chat-panel{
  width:min(390px,calc(100vw - 24px));height:min(620px,calc(100dvh - 36px));background:#fff;
  border-radius:18px;box-shadow:0 24px 90px rgba(0,0,0,.2);display:flex;flex-direction:column;overflow:hidden
}
.art-chat-head{padding:14px;border-bottom:1px solid #eee;display:flex;gap:10px;align-items:center}
.art-chat-thumb{width:54px;height:54px;border-radius:10px;object-fit:cover;background:#eee;flex:0 0 auto}
.art-chat-info{min-width:0;flex:1}
.art-chat-name{font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.art-chat-meta{font-size:12px;color:#777;margin-top:2px}
.art-chat-close{width:36px;height:36px;border-radius:9px;border:1px solid #ddd;background:#fff;font-size:18px;cursor:pointer}
.art-chat-body{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#fbfbfb}
.art-chat-msg{max-width:82%;padding:10px 12px;border-radius:12px;font-size:14px;line-height:1.45}
.art-chat-msg.bot{align-self:flex-start;background:#fff;border:1px solid #e5e5e5}
.art-chat-msg.user{align-self:flex-end;background:#171717;color:#fff}
.art-chat-compose{display:flex;gap:8px;padding:12px;border-top:1px solid #eee}
.art-chat-compose input{min-width:0;flex:1;border:1px solid #d8d8d8;border-radius:10px;padding:11px 12px;font-size:14px}
.art-chat-compose button{border:0;background:#171717;color:#fff;border-radius:10px;padding:0 16px;font-weight:750;cursor:pointer}
@media(max-width:640px){
  .art-chat-modal{padding:0;align-items:flex-end}
  .art-chat-panel{width:100%;height:min(78dvh,680px);border-radius:18px 18px 0 0}
  .auction-bid-row{flex-direction:column}
  .auction-bid-btn,.artwork-chat-btn{width:100%}
}
