/* ═══════════════════════════════════════════════════════════════
   VIEW: BIDDING SESSION TRACKER
   Ported from the prototype: Kimi_Agent_Steelco ai/app/buyer.html
   ═══════════════════════════════════════════════════════════════ */

/* ─── bidding ─── */
.bid-hero{display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:center}
@media (max-width:840px){.bid-hero{grid-template-columns:1fr;justify-items:center;text-align:center}}
.ring-wrap{position:relative;width:180px;height:180px;flex:none}
.ring-wrap svg{transform:rotate(-90deg);display:block}
.ring-track{fill:none;stroke:var(--border);stroke-width:10}
.ring-prog{fill:none;stroke:url(#ringGrad);stroke-width:10;stroke-linecap:round;transition:stroke-dashoffset 1s linear}
.ring-center{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
}
.ring-time{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-weight:600;font-size:1.5rem;color:var(--heading);direction:ltr}
.ring-label{font-size:.6875rem;color:var(--caption)}
.bid-meta{display:flex;flex-direction:column;gap:10px;min-width:0}
.bid-meta .bm-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.9375rem}
.bid-meta .bm-k{color:var(--caption);font-size:.8125rem;min-width:110px}
.bid-meta .num{color:var(--heading);font-weight:600}
/* live activity feed */
.activity{display:flex;flex-direction:column;gap:0;max-height:280px;overflow-y:auto}
.activity li{display:flex;gap:12px;padding:10px 4px;border-bottom:1px dashed var(--border);font-size:.875rem;align-items:flex-start}
.activity li:last-child{border-bottom:none}
.activity .a-dot{width:10px;height:10px;border-radius:50%;background:var(--ai-blue);flex:none;margin-top:8px}
.activity .a-dot.new{background:var(--success)}
.activity .a-time{margin-inline-start:auto;font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:.75rem;color:var(--caption);direction:ltr;white-space:nowrap}
/* extrusion spinner (section-profile motif loading) */
.extrude{animation:spin 2.4s linear infinite;color:var(--brushed)}
@keyframes spin{to{transform:rotate(360deg)}}
/* offer cards */
.offers-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media (max-width:1200px){.offers-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.offers-grid{grid-template-columns:1fr}}
.offer-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);
  box-shadow:var(--shadow-flat);padding:20px;display:flex;flex-direction:column;gap:12px;
  transition:box-shadow .18s var(--ease),transform .18s var(--ease);
}
.offer-card:hover{box-shadow:var(--shadow-raised);transform:translateY(-2px)}
.offer-card .oc-head{display:flex;align-items:center;gap:10px}
.offer-card .oc-hex{
  width:38px;height:38px;flex:none;
  border-radius:50%; overflow:hidden;
  background:var(--bg-alt);color:var(--graphite);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-family:var(--font-mono);font-size:.875rem;
}
html[data-theme="dark"] .offer-card .oc-hex{background:var(--raised);color:var(--body)}
.offer-card .oc-name{font-weight:700;color:var(--heading);font-size:.9375rem}
.offer-card .oc-anon{font-size:.6875rem;color:var(--caption)}
.offer-card .oc-price{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-weight:600;font-size:1.375rem;color:var(--heading);direction:ltr;text-align:start}
.offer-card .oc-price small{font-size:.6em;font-family:var(--font-body);font-weight:500;color:var(--caption)}
.offer-card .oc-rows{display:flex;flex-direction:column;gap:6px;font-size:.8125rem;color:var(--body)}
.offer-card .oc-rows .r{display:flex;justify-content:space-between;gap:8px}
.offer-card .oc-foot{margin-top:auto;padding-top:12px;border-top:1px dashed var(--border-strong);display:flex;flex-direction:column;gap:10px}
.offer-card.best{
  border:2px solid var(--royal);
  box-shadow:0 8px 24px rgba(4,70,136,.14);
  position:relative;
}
html[data-theme="dark"] .offer-card.best{border-color:var(--ai-blue);box-shadow:var(--shadow-raised)}
.offer-card.best .oc-hex{background:var(--royal);color:#FFFFFF}
html[data-theme="dark"] .offer-card.best .oc-hex{background:var(--ai-blue)}
.save-badge{
  font-size:.75rem;font-weight:600;background:var(--success-bg);color:#1B7A43;
  border:1px solid var(--success);
  padding:5px 12px;border-radius:var(--radius-chip);white-space:nowrap;
  font-family:var(--font-mono);font-variant-numeric:tabular-nums;
}
html[data-theme="dark"] .save-badge{background:rgba(46,173,98,.14);border-color:rgba(46,173,98,.40);color:#4ECB7F}
.best-tag{position:absolute;top:-13px;inset-inline-start:18px}
/* demo state toggle */
.state-toggle{display:inline-flex;border:1px solid var(--border-strong);border-radius:var(--radius-chip);overflow:hidden;background:var(--surface)}
.state-toggle button{padding:8px 16px;min-height:44px;font-size:.8125rem;font-weight:600;color:var(--body);transition:background .16s var(--ease),color .16s var(--ease)}
.state-toggle button[aria-pressed="true"]{background:var(--royal);color:#FFFFFF}
html[data-theme="dark"] .state-toggle button[aria-pressed="true"]{background:var(--ai-blue)}

