:root {
  color-scheme: dark;
  --bg: #0c0f0c;
  --bg-soft: #111611;
  --panel: #151a15;
  --panel-raised: #1b211b;
  --panel-hover: #202820;
  --line: #2d352d;
  --line-soft: #232a23;
  --text: #f4f1e9;
  --muted: #9da69a;
  --muted-2: #737d72;
  --accent: #e5a73d;
  --accent-strong: #f1b94e;
  --accent-ink: #241806;
  --green: #58d28d;
  --green-soft: rgba(88, 210, 141, 0.14);
  --yellow: #e8c653;
  --yellow-soft: rgba(232, 198, 83, 0.14);
  --red: #f0786c;
  --red-soft: rgba(240, 120, 108, 0.13);
  --blue: #7fb8e8;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% -8%, rgba(229, 167, 61, 0.11), transparent 34rem),
    radial-gradient(circle at 10% 20%, rgba(88, 210, 141, 0.035), transparent 24rem),
    var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--accent-strong);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(10px + env(safe-area-inset-top)) 14px 0;
  background: rgba(12, 15, 12, 0.9);
  border-bottom: 1px solid rgba(45, 53, 45, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent-strong), #bd7920);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px rgba(229, 167, 61, 0.16);
}

.brand-copy {
  min-width: 0;
  flex: 1;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.event-meta {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: #485448;
  background: var(--panel-raised);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-button.icon-only {
  width: 38px;
  padding: 0;
  justify-content: center;
}

.icon-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.icon-button.spinning svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sync-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 1240px;
  margin: 8px auto 0;
  padding: 5px 0 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}

#syncText {
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(88, 210, 141, 0.1);
}

.status-dot.error {
  background: var(--red);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 12px 28px;
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.search-box {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.search-box > svg {
  flex: 0 0 19px;
  margin-left: 13px;
  color: var(--muted-2);
}

.search-box input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 40px 0 9px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-box button {
  position: absolute;
  right: 4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.search-box button svg {
  width: 16px;
  height: 16px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.filter-button svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.filter-count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 900;
}

.quick-row,
.type-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.quick-row {
  margin-top: 10px;
}

.type-row {
  margin-top: 8px;
}

.quick-row::-webkit-scrollbar,
.type-row::-webkit-scrollbar,
.related-list::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible {
  border-color: #485448;
  color: var(--text);
}

.chip.active {
  border-color: rgba(229, 167, 61, 0.6);
  background: rgba(229, 167, 61, 0.13);
  color: var(--accent-strong);
}

.chip .count {
  min-width: 17px;
  padding: 1px 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.chip.active .count {
  background: rgba(229, 167, 61, 0.2);
  color: var(--accent-strong);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.chip-dot.green {
  background: var(--green);
}

.chip-dot.yellow {
  background: var(--yellow);
}

.chip-dot.red {
  background: var(--red);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 1px 9px;
}

.summary-row strong {
  font-size: 13px;
}

.summary-row span {
  color: var(--muted);
  font-size: 11px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sort-control select {
  max-width: 135px;
  padding: 5px 22px 5px 7px;
  border: 0;
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.active-filter svg {
  width: 12px;
  height: 12px;
}

.lot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.lot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.lot-card:hover {
  border-color: #404b40;
}

.lot-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lot-card.deal-green {
  border-color: rgba(88, 210, 141, 0.25);
}

.lot-card.deal-yellow {
  border-color: rgba(232, 198, 83, 0.2);
}

.lot-card.deal-red {
  border-color: rgba(240, 120, 108, 0.16);
}

.lot-card.passed {
  opacity: 0.5;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  background: #080a08;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.thumb img.broken,
.lot-hero img.broken {
  display: none;
}

.lot-card:hover .thumb img {
  transform: scale(1.025);
}

.thumb::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(8, 10, 8, 0.75));
  content: "";
  pointer-events: none;
}

.lot-number {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(8, 10, 8, 0.74);
  color: var(--text);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.deal-badge {
  position: absolute;
  bottom: 9px;
  left: 9px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.deal-badge.green {
  background: var(--green);
  color: #07150c;
}

.deal-badge.yellow {
  background: var(--yellow);
  color: #1b1603;
}

.deal-badge.red {
  background: var(--red);
  color: #210705;
}

.deal-badge.unknown {
  background: #3b433b;
  color: var(--text);
}

.watch-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(8, 10, 8, 0.74);
  color: #d8ddd6;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.watch-button svg {
  width: 17px;
  height: 17px;
}

.watch-button.watched {
  border-color: rgba(229, 167, 61, 0.65);
  background: var(--accent);
  color: var(--accent-ink);
}

.watch-button.watched svg {
  fill: currentColor;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 11px 12px 12px;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.type-pill {
  overflow: hidden;
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-pill.won {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.bidding {
  background: rgba(127, 184, 232, 0.13);
  color: var(--blue);
}

.status-pill.passed {
  background: rgba(255, 255, 255, 0.05);
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.012em;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.13fr;
  gap: 6px;
  margin-top: auto;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(8, 10, 8, 0.25);
}

.price-cell {
  min-width: 0;
}

.price-cell span {
  display: block;
  margin-bottom: 1px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-cell strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-cell.all-in strong.green {
  color: var(--green);
}

.price-cell.all-in strong.yellow {
  color: var(--yellow);
}

.price-cell.all-in strong.red {
  color: var(--red);
}

.comp-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.comp-line strong {
  color: var(--text);
  font-weight: 650;
}

.over-budget {
  color: var(--red);
  font-weight: 750;
}

.bbgv-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  white-space: nowrap;
}

.bbgv-link:hover,
.bbgv-link:focus-visible {
  border-bottom-style: solid;
}

.empty-state {
  padding: 52px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted-2);
  font-size: 16px;
  font-weight: 800;
}

.empty-state h2 {
  margin-bottom: 4px;
  font-size: 17px;
}

.empty-state p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: var(--accent-ink);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.danger-button {
  border: 1px solid rgba(240, 120, 108, 0.3);
  background: var(--red-soft);
  color: var(--red);
}

.app-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 14px calc(24px + env(safe-area-inset-bottom));
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.app-footer p {
  margin-bottom: 7px;
}

.app-footer a {
  color: var(--muted);
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--accent);
}

.sheet {
  width: 100%;
  max-width: 760px;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--bg-soft);
  color: var(--text);
  box-shadow: var(--shadow);
}

.sheet[open] {
  animation: sheet-up 180ms ease-out;
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

@keyframes sheet-up {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-inner {
  padding: 17px 16px calc(18px + env(safe-area-inset-bottom));
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sheet-head h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.close-button {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.close-button svg {
  width: 16px;
  height: 16px;
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.money-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.money-field span {
  padding-left: 11px;
  color: var(--muted);
  font-size: 13px;
}

.money-field input {
  border: 0;
  background: transparent;
}

.fee-breakdown {
  margin: 4px 0 16px;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.fee-breakdown strong {
  color: var(--text);
}

.sheet-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

.lot-content {
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.lot-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060806;
}

.lot-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lot-hero::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, var(--bg-soft));
  content: "";
}

.lot-hero .hero-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(8, 10, 8, 0.78);
}

.lot-hero .hero-lot {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(8, 10, 8, 0.78);
  font-size: 10px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.lot-detail {
  padding: 0 16px;
}

.lot-detail-head {
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.lot-detail-head h2 {
  margin: 4px 0 6px;
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.detail-tag {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-tag.deal-green {
  border-color: rgba(88, 210, 141, 0.3);
  background: var(--green-soft);
  color: var(--green);
}

.detail-tag.deal-yellow {
  border-color: rgba(232, 198, 83, 0.3);
  background: var(--yellow-soft);
  color: var(--yellow);
}

.detail-tag.deal-red {
  border-color: rgba(240, 120, 108, 0.3);
  background: var(--red-soft);
  color: var(--red);
}

.description {
  margin: 12px 0 15px;
  color: #cfd4ca;
  font-size: 13px;
  line-height: 1.55;
}

.bid-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.bid-stat {
  padding: 10px;
  background: var(--panel);
}

.bid-stat span {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bid-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.bid-stat strong.green {
  color: var(--green);
}

.bid-stat strong.yellow {
  color: var(--yellow);
}

.bid-stat strong.red {
  color: var(--red);
}

.detail-section {
  margin: 15px 0;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
}

.detail-section h3 {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comp-range {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 7px;
}

.comp-range strong {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.comp-range span {
  color: var(--muted);
  font-size: 11px;
}

.comp-source {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.comp-note {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.45;
}

.confidence {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fee-table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  color: var(--muted);
  font-size: 11px;
}

.fee-table strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.fee-table .total {
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 14px 0;
}

.detail-actions .proxibid-link {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.detail-actions .proxibid-link svg {
  width: 15px;
  height: 15px;
}

.detail-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.detail-actions button.watched {
  border-color: rgba(229, 167, 61, 0.55);
  background: rgba(229, 167, 61, 0.12);
  color: var(--accent-strong);
}

.detail-actions button svg {
  width: 15px;
  height: 15px;
}

.detail-actions button.watched svg {
  fill: currentColor;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.status-grid .field {
  margin-bottom: 0;
}

.related-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.related-card {
  flex: 0 0 152px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--panel-raised);
  cursor: pointer;
}

.related-card:hover {
  border-color: var(--line);
}

.related-card .related-lot {
  color: var(--accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 5px;
  font-size: 11px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.toast {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 60;
  max-width: min(90vw, 420px);
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #252c25;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  border-color: rgba(240, 120, 108, 0.35);
  background: #33201e;
}

@media (min-width: 560px) {
  .lot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .app-header {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (min-width: 860px) {
  .lot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sheet {
    margin-top: 4vh;
    margin-bottom: auto;
    border-bottom: 1px solid var(--line);
    border-radius: 20px;
  }
}

@media (min-width: 1160px) {
  .lot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .icon-button span {
    display: none;
  }

  .icon-button {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .brand-copy h1 {
    font-size: 18px;
  }

  .filter-button {
    padding: 0 9px;
    font-size: 0;
  }

  .filter-button svg {
    width: 19px;
    height: 19px;
  }

  .filter-button .filter-count {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
