.market { min-width: 0; padding: 28px 28px 60px; }
.market-header { display: block; margin-bottom: 22px; }
.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: clamp(240px, 26vw, 292px);
  margin-bottom: 18px;
  padding: 30px 32px;
  padding-right: clamp(210px, 28vw, 312px);
  border-radius: 20px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, .20), transparent 56%),
    linear-gradient(118deg, #4a3ad9 0%, #6355ea 48%, #8b7ff0 100%);
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero .eyebrow { color: rgba(255, 255, 255, .70); }
.hero h1 { color: #ffffff; font-size: clamp(27px, 2.7vw, 38px); }
.hero .market-subtitle { max-width: 430px; color: rgba(255, 255, 255, .80); font-size: 14px; }
.hero-art { position: absolute; right: 16px; top: 0; bottom: 0; width: clamp(240px, 26vw, 294px); line-height: 0; pointer-events: none; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom right; }
.hero-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  padding: 9px 15px;
  color: #ffffff; background: rgba(255, 255, 255, .13);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.hero-more:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .46); }
.hero-more .icon { width: 15px; height: 15px; transition: transform .18s; }
.hero-more:hover .icon { transform: translateX(3px); }
.eyebrow { margin: 0 0 6px; color: var(--violet); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(32px, 3vw, 44px); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.market-subtitle { margin: 8px 0 0; max-width: 670px; color: var(--muted); font-size: 15px; }
.market-tools { display: flex; align-items: center; gap: 8px; }
.search-wrap { position: relative; min-width: 190px; }
.search-wrap .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--subtle); }
.search-input, .sort-select {
  height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; outline: 0; color: var(--text); font-size: 13px;
}
.search-input { width: 100%; padding: 0 12px 0 33px; }
.search-input:focus, .sort-select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.sort-select { padding: 0 26px 0 11px; cursor: pointer; }

.ticker {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(26, 27, 46, .045);
}
.ticker-item { display: flex; flex-direction: column; gap: 7px; padding: 15px 18px; border-right: 1px solid var(--line); }
.ticker-item:last-child { border-right: 0; }
.ticker-item > span {
  order: -1; display: flex; align-items: center; gap: 6px;
  color: var(--subtle); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.ticker-item:first-child > span::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.ticker-item strong {
  display: flex; align-items: baseline; gap: 8px;
  font-family: inherit; font-size: 25px; font-weight: 600; line-height: 1;
  letter-spacing: -.022em; font-variant-numeric: tabular-nums;
}
.ticker-item strong i { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--mint); }

.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 700; }
.velocity { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 12px; min-width: 0; }
.velocity-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.velocity-bars i { width: 3px; border-radius: 2px; background: var(--violet); opacity: .45; animation: equalize 1.9s ease-in-out infinite alternate; }
.velocity-bars i:nth-child(1) { height: 5px; }
.velocity-bars i:nth-child(2) { height: 12px; opacity: .62; animation-delay: -.6s; }
.velocity-bars i:nth-child(3) { height: 8px; opacity: .8; animation-delay: -1.1s; }
.velocity-bars i:nth-child(4) { height: 14px; opacity: 1; animation-delay: -.25s; }
@keyframes equalize { to { height: 4px; } }
.spark { margin-top: 2px; line-height: 0; }
.spark svg { display: block; max-width: 100%; }

.job-list { display: grid; gap: 10px; }
.job-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 112px 100px 94px;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px 20px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s, transform .16s, box-shadow .18s, background .16s;
  overflow: hidden;
}
.job-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: transparent; }
.job-card:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(26, 27, 46, .07); }
.job-card[aria-current="true"] { border-color: rgba(93, 78, 232, .42); background: linear-gradient(110deg, rgba(93, 78, 232, .07), rgba(255, 255, 255, .98) 38%); }
.job-card[aria-current="true"]::before { background: var(--violet); }
.job-card.closing { border-color: rgba(239, 68, 68, .35); }
.job-card.closed { opacity: .62; }
.job-main { min-width: 0; }
.job-topline { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.job-id { color: var(--subtle); font-size: 11px; }
.mode-pill { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); background: var(--surface-3); }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(239, 68, 68, .18); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--coral); background: rgba(239, 68, 68, .05); }
.job-title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; }
.tiny-avatar { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--text); background: var(--surface-3); font-size: 9px; font-weight: 700; }
.job-meta { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--subtle); font-size: 12px; }
.job-meta .tiny-avatar { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--text); background: var(--surface-3); font-size: 9px; font-weight: 700; }
.verified { color: var(--mint); }
.job-col { min-width: 0; }
.job-col span { display: block; margin-bottom: 5px; color: var(--subtle); font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.job-col strong { display: block; font-family: "Space Mono", monospace; font-size: 15px; font-weight: 700; }
.job-col .gold { color: var(--violet); }
.job-col .strike { margin-top: 2px; color: var(--subtle); font-size: 10px; text-decoration: line-through; }
.job-col .match-who { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--subtle); font-size: 10px; font-weight: 500; }
.job-col .urgent { color: var(--coral); }
.progress-track { height: 3px; margin-top: 12px; overflow: hidden; border-radius: 2px; background: var(--surface-3); }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(93, 78, 232, .36), var(--violet)); }
.participant-stack { display: flex; margin-top: 8px; }
.participant-stack i { width: 24px; height: 24px; display: grid; place-items: center; margin-left: -7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--surface-3); color: var(--muted); font-style: normal; font-size: 8px; font-weight: 600; }
.participant-stack i:first-child { margin-left: 0; }
.empty-state { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; background: rgba(255, 255, 255, .45); }
.empty-state h3 { margin: 0 0 8px; font-size: 19px; }
.empty-state p { margin: 0 auto 18px; max-width: 430px; color: var(--muted); }

.deal-room { position: sticky; top: var(--header); height: calc(100vh - var(--header)); overflow-y: auto; scroll-margin-top: calc(var(--header) + 10px); border-left: 1px solid var(--line); background: rgba(255, 255, 255, .94); }
.deal-room { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.deal-room::-webkit-scrollbar { width: 7px; }
.deal-room::-webkit-scrollbar-track { background: transparent; }
.deal-room::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background-clip: content-box; background-color: transparent; }
.deal-room:hover { scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.deal-room:hover::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .2); }
.deal-inner { padding: 24px 22px 40px; }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.room-id { color: var(--subtle); font-size: 11px; }
.watching { display: flex; align-items: center; gap: 5px; color: var(--subtle); font-size: 11px; }
.deal-room h2 { margin: 15px 0 8px; font-family: "DM Serif Display", Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.17; letter-spacing: -.02em; }
.client-line { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.brief-copy { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag { padding: 4px 8px; color: var(--muted); background: var(--surface); font-size: 11px; }
.trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.trust-card { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--muted); background: var(--surface); font-size: 12px; }
.trust-card .icon { width: 16px; color: var(--mint); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.price-stat { padding: 12px; border-right: 1px solid var(--line); background: var(--surface); }
.price-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.price-stat:nth-child(2n) { border-right: 0; }
.price-stat span { display: block; white-space: nowrap; color: var(--subtle); font-size: 11px; letter-spacing: 0; text-transform: none; }
.price-stat strong { display: block; margin-top: 6px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; color: var(--muted); }
.price-stat strong.gold { color: var(--violet); }
.price-stat strong.teal { color: var(--mint); }
.chart-box { margin-bottom: 18px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; color: var(--subtle); font-size: 11px; text-transform: none; letter-spacing: 0; }
.sparkline { width: 100%; height: 96px; display: block; }
.room-section-title { margin: 20px 0 8px; color: var(--subtle); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.bid-feed { display: grid; gap: 0; }
.bid-row { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto auto; gap: 7px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bid-row.leading { animation: slideIn .35s ease; }
.bid-row.match { margin-inline: -8px; padding-inline: 8px; border-radius: 10px; border-bottom-color: transparent; background: rgba(93, 78, 232, .10); box-shadow: inset 2px 0 0 var(--violet); }
.bid-row.match .bid-person span { color: #c9c2f5; font-weight: 600; }
.bid-delta { font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 3px 7px; border-radius: 7px; white-space: nowrap; }
.bid-delta.down { color: #6ee7a0; background: rgba(34, 197, 94, .13); }
.bid-delta.flat { color: var(--subtle); background: rgba(133, 132, 164, .12); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-5px); } }
.bid-avatar { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); background: var(--surface-2); font-size: 9px; font-weight: 700; }
.bid-avatar.ai { border-radius: 9px; color: #c9c2f5; border-color: rgba(93, 78, 232, .4); background: var(--violet-soft); }
.bid-avatar.me { color: var(--violet); border-color: rgba(93, 78, 232, .35); background: var(--violet-soft); }
.bid-person { min-width: 0; }
.bid-person b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.bid-person span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--subtle); font-size: 10px; }
.bid-value { text-align: right; }
.bid-value b { display: block; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bid-value span { display: block; color: var(--subtle); font-size: 10px; }
.bid-row.leading .bid-value b { color: var(--violet); }
.agent-launch { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; border: 1px solid rgba(93, 78, 232, .34); border-radius: 14px; padding: 13px; background: linear-gradient(115deg, var(--violet-soft), rgba(26, 27, 46, .55)); cursor: pointer; text-align: left; }
.agent-launch:hover { border-color: rgba(93, 78, 232, .6); }
.agent-launch-copy { display: flex; align-items: center; gap: 10px; }
.agent-glyph { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--violet); color: #ffffff; font-weight: 700; font-size: 12px; }
.agent-launch b { display: block; font-size: 13px; }
.agent-launch span { display: block; color: var(--muted); font-size: 11px; }
.agent-launch > .icon { color: var(--violet); }

.bid-form { margin-top: 18px; border: 1px solid var(--line-strong); border-radius: 16px; padding: 15px; background: var(--surface-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field label { display: block; margin-bottom: 6px; color: var(--subtle); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.input-shell { height: 44px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 11px; padding: 0 10px; background: var(--bg); }
.input-shell:focus-within { border-color: var(--violet); }
.input-shell span { color: #6f6e8f; font-size: 12px; font-variant-numeric: tabular-nums; }
.input-shell input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #1a1b2e; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bid-btn { width: 100%; margin-top: 9px; padding: 12px; color: #ffffff; background: var(--violet); }
.form-hint { min-height: 18px; margin: 8px 0 0; color: var(--subtle); font-size: 11px; }
.form-hint.error { color: var(--coral); }

.agents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agent-card { position: relative; min-height: 235px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: linear-gradient(145deg, rgba(34, 197, 94, .07), var(--surface) 45%); overflow: hidden; }
.agent-card::after { content: attr(data-symbol); position: absolute; right: -8px; bottom: -42px; color: rgba(34, 197, 94, .055); font-family: "Space Mono", monospace; font-size: 130px; font-weight: 700; pointer-events: none; }
.agent-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agent-logo { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(34, 197, 94, .33); border-radius: 12px; color: var(--mint); background: var(--mint-soft); font-family: "Space Mono", monospace; font-weight: 700; }
.agent-live { display: flex; align-items: center; gap: 6px; color: var(--mint); font-size: 11px; }
.agent-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.agent-card h3 { margin: 16px 0 4px; font-size: 19px; }
.agent-card > p { margin: 0 0 14px; min-height: 42px; color: var(--muted); font-size: 13px; }
.agent-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.agent-stats { display: flex; gap: 20px; margin-bottom: 16px; }
.agent-stats b { display: block; font-family: "Space Mono", monospace; font-size: 13px; }
.agent-stats span { color: var(--subtle); font-size: 10px; }
.secondary-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface-2); }
.secondary-btn:hover { border-color: var(--mint); color: var(--mint); }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 22px; background: rgba(26, 27, 46, .45); backdrop-filter: blur(9px); }
.modal-backdrop.open { display: grid; }
.modal { width: min(600px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow); }
.modal.wide { width: min(1120px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.close-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; color: var(--muted); }
.close-btn:hover { color: var(--text); border-color: var(--line-strong); }
.modal-body { padding: 20px; }
.modal-field { margin-bottom: 15px; }
.modal-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.modal-field input, .modal-field textarea, .modal-field select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: 0; padding: 11px 12px; background: var(--surface); }
.modal-field textarea { min-height: 96px; resize: vertical; }
.modal-field input:focus, .modal-field textarea:focus, .modal-field select:focus { border-color: var(--violet); }
.modal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.ghost-btn { padding: 11px 14px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.ghost-btn:hover { color: var(--text); border-color: var(--line-strong); }
.primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 15px; color: #ffffff; background: var(--violet); }

.studio { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; min-height: 510px; }
.studio-panel { padding: 18px; border-right: 1px solid var(--line); }
.studio-panel:last-child { border-right: 0; }
.studio-label { margin: 0 0 13px; color: var(--subtle); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.step-list { display: grid; gap: 6px; }
.step { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 9px; align-items: start; padding: 9px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--subtle); font-size: 12px; }
.step-index { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; font-family: "Space Mono", monospace; font-size: 10px; }
.step b { display: block; margin-bottom: 2px; color: inherit; font-size: 12px; }
.step.active { color: var(--text); border-color: rgba(34, 197, 94, .25); background: var(--mint-soft); }
.step.active .step-index { color: var(--mint); border-color: rgba(34, 197, 94, .4); }
.step.done { color: var(--muted); }
.step.done .step-index { color: #06301a; border-color: var(--green); background: var(--green); }
.agent-note { margin-top: 18px; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); background: var(--surface); font-size: 11px; }
.workbench { display: flex; flex-direction: column; padding: 18px; min-width: 0; }
.workbench-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.workbench-top b { font-size: 13px; }
.simulation-pill { padding: 4px 7px; border: 1px solid rgba(93, 78, 232, .26); border-radius: 999px; color: var(--violet); background: var(--violet-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.terminal { flex: 1; min-height: 350px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #12131f; }
.terminal-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.terminal-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.terminal-head span { margin-left: 5px; color: var(--subtle); font-family: "Space Mono", monospace; font-size: 10px; }
.terminal-body { height: 315px; overflow-y: auto; padding: 14px; font-family: "Space Mono", monospace; font-size: 11px; line-height: 1.7; }
.log-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; animation: logIn .3s ease; }
@keyframes logIn { from { opacity: 0; transform: translateY(3px); } }
.log-time { color: var(--subtle); }
.log-line .ok { color: var(--mint); }
.log-line .warn { color: var(--violet); }
.log-line .file { color: var(--blue); }
.studio-metric { padding: 12px 0; border-bottom: 1px solid var(--line); }
.studio-metric span { display: block; color: var(--subtle); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.studio-metric strong { display: block; margin-top: 4px; font-family: "Space Mono", monospace; font-size: 17px; }
.quality-bar { height: 5px; margin-top: 9px; border-radius: 5px; overflow: hidden; background: var(--surface-3); }
.quality-bar i { display: block; height: 100%; width: 0; background: var(--mint); transition: width .4s; }
.review-card { margin-top: 16px; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); background: var(--surface); font-size: 11px; }
.review-card b { display: block; margin-bottom: 4px; color: var(--text); font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 11px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(26, 27, 46, .86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 26px rgba(26, 27, 46, .26), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #f2f0fd;
  font-size: 12px;
  line-height: 1.4;
  max-width: min(320px, calc(100vw - 28px));
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .24s ease, transform .24s ease;
}
.toast::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav { display: none; }

.bid-avatar, .participant-stack i { position: relative; overflow: hidden; }
.bid-avatar img, .participant-stack i img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mine-tabs { display: inline-flex; gap: 4px; margin: 20px 0 2px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mine-tab { border: 0; border-radius: 9px; padding: 7px 13px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.mine-tab:hover { color: var(--text); }
.mine-tab.on { color: #ffffff; background: var(--violet); }

.award-box { margin-top: 18px; border: 1px solid var(--line-strong); border-radius: 16px; padding: 15px; background: var(--surface-2); }
.award-lead { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; display: flex; align-items: center; gap: 8px; }
.award-btn { width: 100%; border: 0; border-radius: 12px; padding: 13px; background: var(--violet); color: #ffffff; cursor: pointer; font-size: 14px; font-weight: 600; box-shadow: 0 8px 22px rgba(93, 78, 232, .34); }
.award-btn:hover { background: var(--violet-strong); }
.award-box .form-hint { margin: 10px 0 0; }
.award-done {
  margin-top: 18px;
  position: relative;
  display: grid;
  gap: 3px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 16px 17px;
  background: var(--surface-2);
}
.award-done::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--violet); }
.award-label { color: var(--subtle); font-size: 11px; }
.award-name { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.award-terms { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.award-foot { display: flex; align-items: center; gap: 7px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11.5px; }
.award-foot .icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--muted); }

.why-wins {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 10px;
  border-left: 2px solid var(--violet);
  padding: 8px 0 8px 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
