/* Only the two free public rankings opt in. Member card styles stay unchanged. */
body.data-workspace .ranking-grid.public-won-grid{gap:32px;justify-content:center;align-items:stretch}
/* Previous image width = (grid width - 2 * 16px) / 3 - 2px borders.
   New card width = previous image width * .9 + the same 2px borders. */
@media(min-width:1100px){
  body.data-workspace .ranking-grid.public-won-grid{grid-template-columns:repeat(3,minmax(0,calc(30% - 9.4px)))}
}
/* Keep the existing portrait framing, as confirmed in the layout review.
   Scaling both axes together retains the same visible portion of each capture. */
body.data-workspace .public-won-grid .image-button img{object-fit:cover;object-position:center top}
/* The public capture includes a thin white page frame. Cover only its outer
   top/bottom strips, retaining the image scale, framing and product content. */
/* Remove the empty capture tail below the yellow status bar. At 9:16,
   4.5% of image height equals 8% of its width; move the body up by that amount. */
body.data-workspace .public-won-grid .has-image .image-button{background:#000;clip-path:inset(0 0 4.5% 0);margin-bottom:-8%}
body.data-workspace .public-won-grid .has-image .image-button::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,#000 0 2.5%,transparent 2.5% 97.5%,#000 97.5% 100%);pointer-events:none;z-index:1}
body.data-workspace .public-won-grid .image-button :is(.rank-badge,.won-badge,.zoom,.image-placeholder){z-index:2}
body.data-workspace .public-won-grid .product-body{padding:6px 14px 12px;gap:6px;flex:1}
body.data-workspace .public-won-grid .product-name{display:block;min-height:0;-webkit-line-clamp:unset;overflow:visible;font-size:15px;line-height:1.4}
body.data-workspace .public-won-grid .product-facts{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:10px;margin-top:2px}
body.data-workspace .public-won-grid .public-won-price{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
body.data-workspace .public-won-grid .public-won-amount{color:var(--accent);font-size:clamp(24px,2.3vw,32px);font-weight:750;letter-spacing:-.035em;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.data-workspace .public-won-grid .public-won-bids{font-size:13px;color:var(--muted);line-height:1.4}
body.data-workspace .public-won-grid .public-won-bidders{display:flex;flex-direction:column;align-items:flex-end;text-align:right;font-size:13px;color:var(--muted);flex-shrink:0}
body.data-workspace .public-won-grid .by-bidders .public-won-amount{font-size:18px;font-weight:600;color:var(--text);letter-spacing:0}
body.data-workspace .public-won-grid .by-bidders .fact-value{font-size:36px;line-height:1.1;color:var(--accent)}
body.data-workspace .public-won-grid .product-time{display:block;margin-top:auto;padding-top:8px;border-top:1px solid var(--line);font-size:12px;line-height:1.5}
@media(max-width:1099px){
  body.data-workspace .ranking-grid.public-won-grid{gap:24px}
}
@media(max-width:699px){
  body.data-workspace .ranking-grid.public-won-grid{grid-template-columns:minmax(0,1fr)}
  body.data-workspace .public-won-grid .public-won-amount{font-size:30px}
}

/* Public purchase CTA: centered button first, explanatory line second. */
body.data-workspace .ranking-block .login-gate:not([hidden]){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}
body.data-workspace .ranking-block .login-gate>.button{align-self:center;margin:0;max-width:100%;white-space:normal;text-align:center}
body.data-workspace .ranking-block .login-gate>p{margin:0;text-align:center}

body.data-workspace .ranking-intro[hidden]{display:none!important}

/* 副标题 + Detail：长句（信息栏与免责说明）默认收起，点 Detail 才显示。 */
body.data-workspace .ranking-intro-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}
body.data-workspace .ranking-intro-row[hidden]{display:none!important}
body.data-workspace .ranking-intro{margin:0}
body.data-workspace .ranking-detail-toggle{appearance:none;border:0;background:none;padding:2px 0;margin:0;
  color:var(--accent);font:inherit;font-size:13px;font-weight:700;letter-spacing:.02em;cursor:pointer;
  text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
body.data-workspace .ranking-detail-toggle:hover{opacity:.85}
body.data-workspace .ranking-detail-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
/* 只折叠「正常信息栏」和免责说明。加载、刷新、空态、期限/权限提示、公共榜更新提示
   以及错误行都不带 .ranking-state-detail，始终可见，避免把故障或必要说明藏起来。 */
body.data-workspace .ranking-block:not(.is-detail-open) .ranking-state-detail,
body.data-workspace .ranking-block:not(.is-detail-open) .ranking-disclaimer{display:none!important}
