
.zl-lot-dialog { width: min(32rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.75rem; border: 1px solid var(--zl-line); border-radius: 1.25rem; background: var(--zl-card); color: var(--zl-ink); box-shadow: var(--zl-shadow); }
.zl-lot-dialog::backdrop { background: rgba(11, 21, 48, .45); backdrop-filter: blur(4px); }
.zl-lot-dialog[open] { animation: zl-dialog-in .35s var(--zl-ease); }
@keyframes zl-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.zl-lot-dialog-close { position: absolute; top: 1rem; right: 1rem; }
.zl-lot-dialog-close button { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: var(--zl-soft); color: var(--zl-muted); }
.zl-lot-dialog-close .icon { width: 1rem; height: 1rem; }
.zl-lot-dialog .zl-lot-name { margin: .25rem 0 1.25rem; padding-right: 2.5rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.zl-lot-dialog [hidden] { display: none !important; }

.zl-lot-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.25rem; padding: 1rem; border-radius: 1rem; background: var(--zl-soft); }
.zl-lot-facts dt { color: var(--zl-muted); font-size: .75rem; font-weight: 500; }
.zl-lot-facts dd { margin: .15rem 0 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.zl-lot-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.zl-lot-form input { min-width: 0; padding: .7rem .9rem; border: 1px solid var(--zl-line); border-radius: .8rem; background: var(--zl-card); color: var(--zl-ink); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.zl-lot-form input:focus { outline: 0; border-color: var(--zl-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--zl-blue) 18%, transparent); }
.zl-lot-form button, .zl-lot-buy { padding: .7rem 1.2rem; border: 0; border-radius: .8rem; background: var(--zl-blue); color: #fff; font-weight: 600; }
.zl-lot-form button:disabled, .zl-lot-buy:disabled { opacity: .5; }
.zl-lot-buy { width: 100%; margin-top: .75rem; background: var(--zl-ink); color: var(--zl-bg); }
.zl-lot-hint { grid-column: 1 / -1; margin: 0; color: var(--zl-muted); font-size: .9375rem; }
.zl-lot-status { margin: .75rem 0 0; color: var(--zl-muted); font-size: .9375rem; }
.zl-lot-status:empty { display: none; }
.zl-lot-status.is-leading { color: #0f9f78; font-weight: 600; }
.zl-lot-status.is-outbid, .zl-lot-status.is-error { color: #e5484d; font-weight: 600; }
.zl-lot-login { margin: 0; color: var(--zl-muted); }
.zl-lot-login a { color: var(--zl-blue); font-weight: 600; text-decoration: none; }
.zl-lot-terms { display: flex; gap: .75rem; align-items: center; margin: 0 0 .875rem; padding: .8rem .9rem; border: 1px solid color-mix(in srgb, var(--zl-blue) 28%, var(--zl-line)); border-radius: .8rem; background: color-mix(in srgb, var(--zl-blue) 6%, var(--zl-card)); color: var(--zl-ink); font-size: .9375rem; font-weight: 500; line-height: 1.4; cursor: pointer; transition: border-color .2s var(--zl-ease), background .2s var(--zl-ease); }
.zl-lot-terms:hover { border-color: var(--zl-blue); }
.zl-lot-terms input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--zl-blue); cursor: pointer; }
.zl-lot-terms a { color: var(--zl-blue); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.zl-lot-terms.is-required { border-color: #e5484d; background: color-mix(in srgb, #e5484d 7%, var(--zl-card)); animation: zl-terms-nudge .4s var(--zl-ease); }
@keyframes zl-terms-nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.zl-terms-dialog { width: min(46rem, calc(100vw - 2rem)); display: none; padding: 0; overflow: hidden; }
.zl-terms-dialog[open] { display: flex; flex-direction: column; }
.zl-terms-title { margin: 0; padding: 1.5rem 4rem 1rem 1.75rem; border-bottom: 1px solid var(--zl-line); font-size: 1.2rem; line-height: 1.3; }
.zl-terms-body { flex: 1; max-width: none; padding: 1rem 1.75rem 1.5rem; overflow-y: auto; font-size: .9375rem; }
.zl-terms-body h3 { margin: 1.25rem 0 .4rem; font-size: 1rem; }
.zl-terms-body p { margin: 0 0 .6rem; }
.zl-terms-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; padding: 1rem 1.75rem; border-top: 1px solid var(--zl-line); background: var(--zl-soft); }
.zl-terms-actions button { padding: .7rem 1.2rem; border: 0; border-radius: .8rem; font-weight: 600; }
.zl-terms-later { background: transparent; color: var(--zl-muted); }
.zl-terms-accept { background: var(--zl-blue); color: #fff; }
@media (prefers-reduced-motion: reduce) { .zl-lot-terms.is-required { animation: none; } }

.zl-lot-history { display: grid; gap: .25rem; max-height: 14rem; margin: 1.25rem 0 0; padding: 0; overflow-y: auto; list-style: none; }
.zl-lot-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto 3rem; gap: .75rem; padding: .45rem .65rem; border-radius: .8rem; font-size: .9375rem; }
.zl-lot-history li:first-child { background: var(--zl-soft); }
.zl-lot-history li.is-you span { color: var(--zl-blue); font-weight: 600; }
.zl-lot-history strong { font-variant-numeric: tabular-nums; }
.zl-lot-history time { color: var(--zl-muted); text-align: right; }
.zl-lot-history .is-empty { display: block; color: var(--zl-muted); background: transparent !important; }

.zl-auction-empty { margin-top: 2rem; padding: 3rem 1rem; border: 1px solid var(--zl-line); border-radius: 1.75rem; background: var(--zl-card); text-align: center; }
.zl .zl-auction-empty h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
.zl-auction-empty p { max-width: 30rem; margin: 0 auto; color: var(--zl-muted); }

.zl-auction-sold { margin-top: 3rem; }
.zl .zl-auction-sold h2 { margin: 0 0 .75rem; font-size: 1.2rem; font-weight: 700; }
.zl-auction-sold ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: .4rem .75rem; margin: 0; padding: 0; list-style: none; }
.zl-auction-sold li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border-radius: .8rem; background: var(--zl-soft); }
.zl-auction-sold span { color: var(--zl-muted); font-variant-numeric: tabular-nums; }

@media (max-width: 767.98px) {
  .zl-lot-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); border-radius: 1.25rem 1.25rem 0 0; }
}
@media (prefers-reduced-motion: reduce) { .zl-lot-dialog[open] { animation: none; } }
