:root {
  color-scheme:light;
  /* Hevku brand kit (October 7): ink, purple, purple hover and tint; Onest for body and buttons. */
  --ink:#15131a;
  --muted:#55525c;
  --line:#e7e6eb;
  --surface:#fff;
  --canvas:#f8f7fa;
  --accent:#5b2ee0;
  --accent-hover:#4a22c4;
  --tint:#f3effe;
  font-family:"Onest",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
}

* {
  box-sizing:border-box;
}

html {
  min-width:320px;
  background:var(--canvas);
}

body {
  margin:0;
  color:var(--ink);
  background:var(--canvas);
  font-size:15px;
  line-height:1.5;
}

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

button,a,select,input {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

a {
  color:inherit;
}

svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}

[hidden] {
  display:none!important;
}

:focus-visible {
  outline:3px solid #95b7fb;
  outline-offset:3px;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.noscript {
  padding:16px;
  background:#fff3d5;
  text-align:center;
}

/* Navigation and a centered workspace, using one consistent spacing scale. */
.app-header {
  height:72px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}

.header-inner {
  width:min(1460px,100%);
  height:100%;
  padding:0 40px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:64px;
  position:relative;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  flex-shrink:0;
}

.brand-logo {
  display:block;
  width:auto;
  height:34px;
}

.nav-list {
  display:flex;
  align-items:stretch;
  height:100%;
  gap:32px;
}

.nav-link {
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:3px solid transparent;
  padding:3px 0 0;
  color:var(--muted);
  font-weight:550;
  font-size:14px;
  text-decoration:none;
  white-space:nowrap;
}

.nav-link svg {
  width:17px;
  height:17px;
}

.nav-link:hover {
  color:var(--ink);
}

.nav-link.is-active {
  color:var(--ink);
  border-color:var(--ink);
}

.nav-count {
  padding:1px 6px;
  border-radius:5px;
  background:#f0f1ee;
  font-size:11px;
  line-height:1.6;
  font-weight:600;
}

.account-area {
  display:flex;
  align-items:center;
  gap:20px;
  margin-left:auto;
  white-space:nowrap;
}

.preview-label {
  color:var(--muted);
  font-size:12px;
}

.avatar {
  width:34px;
  height:34px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#f0f0eb;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:600;
}

.icon-button {
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:white;
}

#mobile-menu-button {
  display:none;
}

.mobile-nav {
  position:absolute;
  inset:71px 0 auto;
  z-index:30;
  background:white;
  padding:12px 24px;
  box-shadow:0 8px 24px #0000000a;
  border-bottom:1px solid var(--line);
}

.mobile-nav a {
  display:block;
  padding:14px 8px;
  text-decoration:none;
  font-weight:550;
}

.main-content {
  max-width:1460px;
  padding:34px 40px 28px;
  margin:auto;
}

.view {
  width:100%;
}

.page-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:24px;
}

.page-header h1 {
  font-size:30px;
  line-height:1.2;
  font-weight:650;
  letter-spacing:-.035em;
  margin:0 0 9px;
}

.page-header p {
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.freshness-card {
  text-align:right;
  color:var(--muted);
  font-size:13px;
}

.freshness-card>* {
  display:block;
}

.freshness-card small {
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

.eyebrow {
  margin:0 0 8px;
  color:var(--muted);
  font-size:12px;
  font-weight:550;
}

.app-footer {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--muted);
  padding-top:36px;
}

.app-footer>span:last-child {
  margin-left:auto;
}

.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#b2b5ae;
}

.status-dot.is-fresh {
  background:#77a78a;
}

/* Search and filters. */
.search-form {
  display:flex;
  gap:12px;
  margin-bottom:28px;
}

.search-input-wrap {
  position:relative;
  display:block;
  flex:1;
}

.search-input-wrap svg {
  position:absolute;
  top:50%;
  left:19px;
  color:var(--muted);
  transform:translateY(-50%);
  pointer-events:none;
}

.search-input-wrap input {
  width:100%;
  height:56px;
  padding:0 20px 0 52px;
  border:1px solid var(--line);
  border-radius:9px;
  background:white;
  color:var(--ink);
  font-size:16px;
}

input::placeholder {
  color:var(--muted);
  opacity:1;
}

input:focus,select:focus {
  outline:none;
  border-color:#9c86ef;
  box-shadow:0 0 0 3px var(--tint);
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:0 16px;
  border:1px solid transparent;
  border-radius:7px;
  font-weight:550;
  font-size:13px;
  text-decoration:none;
  transition:background .15s;
  white-space:nowrap;
}

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

.button.primary {
  background:var(--accent);
  color:white;
  border-color:var(--accent);
}

.button.primary:hover {
  background:var(--accent-hover);
  border-color:var(--accent-hover);
}

.button.secondary {
  background:white;
  border-color:var(--line);
  color:var(--ink);
}

.button.secondary:hover {
  background:#f4f5f1;
  border-color:#ccd0c5;
}

.button:disabled {
  cursor:default;
  opacity:.38;
}

.button.danger-quiet {
  color:var(--muted);
  background:transparent;
}

.button.danger-quiet:hover {
  color:#ad4343;
  background:#fff5f3;
}

.search-button {
  min-width:110px;
  height:56px;
  font-size:15px;
}

.workspace {
  display:grid;
  grid-template-columns:242px minmax(0,1fr);
  align-items:start;
  gap:32px;
}

.filters {
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  padding:22px;
}

.filters-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
}

.filters-heading h2 {
  margin:0;
  font-size:16px;
  font-weight:600;
}

.filter-heading-actions {
  display:flex;
  gap:16px;
  align-items:center;
}

.text-button {
  padding:0;
  border:0;
  background:none;
  font-size:12px;
  color:var(--muted);
}

.text-button:hover {
  color:var(--ink);
}

.mobile-filter-toggle {
  display:none;
}

.field {
  display:grid;
  gap:7px;
  margin-bottom:19px;
  min-width:0;
}

.field>span {
  font-size:12px;
  font-weight:550;
  color:#60655e;
}

.field input,.field select,.sort-field select {
  width:100%;
  height:40px;
  min-width:0;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:white;
  color:var(--ink);
  font-size:13px;
}

.field-grid {
  display:grid;
  gap:0;
}

.field-grid.two {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.money-input {
  position:relative;
}

.money-input>span {
  position:absolute;
  top:50%;
  left:10px;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:13px;
}

.money-input input {
  padding-left:23px;
}

.more-filters {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin:8px 0 20px;
}

.more-filters summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  list-style:none;
  cursor:pointer;
  padding:17px 0;
  font-size:13px;
  font-weight:550;
}

.more-filters summary::-webkit-details-marker {
  display:none;
}

.more-filters summary svg {
  width:16px;
  height:16px;
}

.more-filters[open] summary svg {
  transform:rotate(180deg);
}

.more-filter-fields {
  padding-top:4px;
}

.toggle-row {
  display:grid;
  grid-template-columns:31px 1fr;
  gap:10px;
  cursor:pointer;
  position:relative;
}

.toggle-row input {
  position:absolute;
  opacity:0;
  width:31px;
  height:20px;
  margin:0;
}

.toggle {
  width:31px;
  height:19px;
  margin-top:2px;
  border-radius:12px;
  background:#d9dcd5;
}

.toggle::after {
  content:'';
  display:block;
  width:13px;
  height:13px;
  margin:3px;
  border-radius:50%;
  background:white;
  transition:transform .12s;
}

.toggle-row input:checked+.toggle {
  background:#414a3e;
}

.toggle-row input:checked+.toggle::after {
  transform:translateX(12px);
}

.toggle-row input:focus-visible+.toggle {
  outline:3px solid #95b7fb;
  outline-offset:2px;
}

.toggle-row strong {
  display:block;
  font-size:12px;
  font-weight:550;
}

.toggle-row small {
  display:block;
  font-size:11px;
  line-height:1.5;
  color:var(--muted);
  margin-top:4px;
}

.results-column {
  min-width:0;
}

.results-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:42px;
  margin:0 0 20px;
}

.result-count {
  margin:0;
  font-size:15px;
  font-weight:600;
}

.toolbar-actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

.sort-field select {
  width:auto;
  height:42px;
  font-size:12px;
  padding-right:24px;
  color:var(--muted);
}

.applied-filters:empty {
  display:none;
}

.applied-filters {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}

.filter-chip {
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:1px solid #dfe3d9;
  border-radius:6px;
  padding:4px 8px;
  color:#56654a;
  background:#f1f4ec;
  font-size:11px;
  font-weight:500;
}

.filter-chip svg {
  width:13px;
  height:13px;
}

.inventory-tabs {
  display:flex;
  align-items:center;
  gap:24px;
  margin:0 0 22px;
  border-bottom:1px solid var(--line);
}

.inventory-tab {
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 0 13px;
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:var(--muted);
  font-size:13px;
}

.inventory-tab.is-active {
  color:var(--ink);
  border-bottom-color:var(--ink);
  font-weight:600;
}

.inventory-tab span {
  font-size:11px;
  background:#eaece6;
  color:var(--muted);
  border-radius:5px;
  padding:0 6px;
}

.results-display-bar {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid var(--line);
  margin-bottom:20px;
}

.results-display-bar .inventory-tabs {
  margin:0;
  border-bottom:0;
}

.results-view-switch {
  display:flex;
  gap:3px;
  padding:3px;
  margin-top:-6px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#eeefec;
}

.results-view-switch button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 10px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}

.results-view-switch button[aria-pressed="true"] {
  background:white;
  color:var(--ink);
  box-shadow:0 1px 3px #20251e12;
}

.results-view-switch svg {
  width:15px;
  height:15px;
}

.results-list.is-table {
  display:block;
}

.equipment-table-scroll {
  max-width:100%;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:9px;
  background:white;
}

.equipment-table {
  width:100%;
  min-width:840px;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  font-size:12px;
}

.equipment-table th,.equipment-table td {
  padding:17px 10px;
  text-align:left;
  vertical-align:middle;
  border-bottom:1px solid #eeefec;
}

.equipment-table thead th {
  padding-top:12px;
  padding-bottom:12px;
  background:#fafaf8;
  color:var(--muted);
  font-size:11px;
  font-weight:550;
  white-space:nowrap;
}

.equipment-table thead button {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:0;
  color:inherit;
  border:0;
  background:transparent;
  font:inherit;
}

.equipment-table thead button:hover,.equipment-table th[aria-sort]:not([aria-sort="none"]) button {
  color:var(--ink);
}

.equipment-table thead button span {
  font-size:13px;
  color:var(--muted);
}

.equipment-table tbody tr:last-child>* {
  border-bottom:0;
}

.equipment-table tbody tr:hover>* {
  background:#fcfcfa;
}

.equipment-table .table-photo {
  width:82px;
  padding-left:14px;
  padding-right:4px;
}

.table-photo-button {
  display:block;
  width:62px;
  height:54px;
  padding:0;
  border:0;
  border-radius:5px;
  overflow:hidden;
  background:#f3f4f0;
}

.table-photo-button img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.table-photo-button .photo-placeholder {
  min-height:0;
}

.table-photo-button .photo-placeholder svg {
  width:20px;
  height:20px;
}

.equipment-table .table-machine {
  width:23%;
  font-weight:400;
}

.table-machine-link {
  display:block;
  color:var(--ink);
  background:transparent;
  border:0;
  padding:0;
  text-align:left;
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.table-machine-link:hover {
  text-decoration:underline;
  text-underline-offset:3px;
}

.table-secondary {
  display:block;
  margin-top:4px;
  font-size:10px;
  line-height:1.45;
  font-weight:400;
  color:var(--muted);
  overflow-wrap:anywhere;
}

.equipment-table .table-hours {
  width:8%;
  font-variant-numeric:tabular-nums;
}

.equipment-table .table-price {
  width:14%;
}

.table-price-value {
  display:block;
  font-size:15px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}

.table-price-value.unpublished {
  font-size:12px;
  font-weight:500;
  color:var(--muted);
}

.equipment-table .table-location {
  width:14%;
  color:var(--muted);
  overflow-wrap:anywhere;
}

.equipment-table .table-options {
  width:17%;
}

.table-options .option-list {
  gap:4px;
}

.table-options .option-pill {
  padding:2px 5px;
  font-size:10px;
}

.table-check-specs {
  display:inline-block;
  color:#78571e;
  font-size:10px;
  margin-top:5px;
}

.table-unknown {
  font-size:11px;
  color:var(--muted);
}

.equipment-table .table-checked {
  width:12%;
  color:var(--muted);
  white-space:nowrap;
}

.equipment-table .table-open {
  width:40px;
  padding-left:0;
  padding-right:12px;
}

.table-open-button {
  display:grid;
  place-items:center;
  width:27px;
  height:30px;
  padding:0;
  color:var(--muted);
  background:transparent;
  border:0;
  border-radius:4px;
}

.table-open-button:hover {
  background:#eef0e9;
  color:var(--ink);
}

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

@media(max-width:760px) {
  .results-view-switch {
    display:none;
  }
}

/* Original image proportions remain visible in rows and the gallery. */
.results-list {
  display:grid;
  gap:16px;
}

.result-row {
  display:grid;
  grid-template-columns:218px minmax(0,1fr) 166px;
  gap:22px;
  padding:18px;
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  transition:border-color .15s,box-shadow .15s;
}

.result-row:hover {
  border-color:#cbd0c3;
  box-shadow:0 3px 12px #27341b06;
}

.result-photo {
  position:relative;
  padding:0;
  width:100%;
  height:176px;
  align-self:center;
  border:0;
  border-radius:7px;
  overflow:hidden;
  background:#f1f2ee;
}

.result-photo img {
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}

.photo-count {
  position:absolute;
  right:7px;
  bottom:7px;
  display:flex;
  align-items:center;
  gap:4px;
  padding:3px 6px;
  background:#242824b8;
  color:white;
  border-radius:4px;
  font-size:10px;
}

.photo-count svg {
  width:13px;
  height:13px;
}

.photo-placeholder {
  min-height:140px;
  height:100%;
  display:grid;
  place-items:center;
  color:#c4c9be;
  background:#f3f4f0;
}

.photo-placeholder svg {
  width:30px;
  height:30px;
}

.result-main {
  padding:2px 0;
  min-width:0;
}

.result-category {
  color:var(--muted);
  font-size:11px;
  margin:0 0 6px;
}

.result-title {
  font-size:19px;
  font-weight:650;
  line-height:1.3;
  letter-spacing:-.025em;
  margin:0;
}

.result-title button {
  padding:0;
  background:none;
  border:0;
  text-align:left;
  font:inherit;
  color:inherit;
}

.result-title button:hover {
  color:#517746;
}

.result-meta {
  display:flex;
  flex-wrap:wrap;
  gap:6px 16px;
  margin:12px 0;
  color:var(--muted);
  font-size:13px;
}

.result-meta>span {
  display:inline-flex;
  gap:5px;
  align-items:center;
}

.result-meta svg {
  width:14px;
  height:14px;
  color:var(--muted);
}

.option-list {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

.option-pill {
  padding:3px 7px;
  border-radius:4px;
  background:#f3f4f1;
  color:#656e5d;
  font-size:11px;
}

.possible-reason {
  color:#78571e;
  font-size:11px;
  margin:8px 0 0;
}

.source-line {
  margin:12px 0 0;
  font-size:12px;
  color:#67715e;
}

.source-line span {
  color:var(--muted);
}

.result-price {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:flex-end;
  text-align:right;
  padding:4px 0;
  min-width:0;
}

.price-value {
  display:block;
  font-size:23px;
  font-weight:650;
  letter-spacing:-.035em;
  line-height:1.3;
  white-space:nowrap;
}

.price-value.unpublished {
  font-size:17px;
  font-weight:550;
  letter-spacing:-.02em;
  white-space:normal;
}

.price-label {
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
}

.result-open {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  height:36px;
  padding:0 14px;
  border:1px solid #dedfd9;
  border-radius:6px;
  background:white;
  color:#5b6651;
  font-size:12px;
  font-weight:550;
}

.result-open:hover {
  background:#f5f6f1;
  color:var(--ink);
}

.loading-state {
  min-height:240px;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:12px;
  color:var(--muted);
}

.loading-state p {
  margin:0;
}

.spinner {
  width:25px;
  height:25px;
  border:2px solid #e0e4d9;
  border-top-color:#4e6140;
  border-radius:50%;
  animation:spin .8s linear infinite;
}

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

.empty-state {
  padding:60px 24px;
  text-align:center;
  border:1px solid var(--line);
  background:white;
  border-radius:10px;
}

.empty-state h2 {
  font-size:20px;
  margin:14px 0 8px;
  font-weight:600;
}

.empty-state p {
  color:var(--muted);
  font-size:14px;
  margin:0 0 24px;
}

.empty-icon {
  margin:auto;
  width:48px;
  height:48px;
  border-radius:12px;
  background:#f2f3ee;
  color:var(--muted);
  display:grid;
  place-items:center;
}

.pagination {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-top:28px;
}

.page-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border:1px solid transparent;
  background:transparent;
  border-radius:6px;
  font-size:12px;
  color:var(--muted);
}

.page-button.is-current {
  color:white;
  background:var(--accent);
}

.page-button:hover:not(.is-current):not(:disabled) {
  background:white;
  border-color:var(--line);
}

.page-button:disabled {
  opacity:.35;
  cursor:default;
}

/* Saved searches and coverage. */
.notice {
  display:flex;
  align-items:center;
  gap:10px;
  padding:16px 20px;
  border:1px solid var(--line);
  background:white;
  border-radius:8px;
  margin-bottom:24px;
  color:var(--muted);
  font-size:13px;
}

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

.buy-box-list {
  display:grid;
  gap:18px;
}

.buy-box-row {
  padding:28px;
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  display:flex;
  justify-content:space-between;
  gap:30px;
}

.buy-box-row h2 {
  margin:0 0 14px;
  font-size:20px;
  font-weight:600;
}

.buy-box-row .filter-chip {
  margin:0 5px 6px 0;
}

.buy-box-meta {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  color:var(--muted);
  font-size:12px;
  margin-top:16px;
}

.buy-box-counts {
  display:flex;
  gap:30px;
  margin-bottom:18px;
}

.count-block strong {
  display:block;
  font-size:27px;
  font-weight:550;
}

.count-block span {
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
}

.buy-box-actions {
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.source-summary {
  margin:0 0 20px;
}

.source-totals {
  display:flex;
  flex-wrap:wrap;
  gap:16px 32px;
  margin:0;
  font-size:13px;
}

.source-totals>div {
  display:flex;
  align-items:baseline;
  gap:8px;
}

.source-totals dt {
  color:var(--muted);
}

.source-totals dd {
  margin:0;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}

.source-list {
  max-width:100%;
  overflow-x:auto;
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
}

.source-table {
  width:100%;
  min-width:740px;
  border-collapse:collapse;
  text-align:left;
  font-size:14px;
}

.source-table th,.source-table td {
  padding:18px 22px;
  vertical-align:middle;
}

.source-table thead {
  background:#fafaf9;
  color:var(--muted);
  font-size:12px;
}

.source-table thead th {
  font-weight:600;
  white-space:nowrap;
}

.source-table tbody tr {
  border-top:1px solid var(--line);
}

.source-table tbody th {
  font-weight:550;
  white-space:nowrap;
}

.source-table time {
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.source-table .source-listing-count {
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.source-table .source-update {
  white-space:nowrap;
}

.source-table .source-empty {
  text-align:center;
  padding:32px;
  color:var(--muted);
}

.health-pill {
  display:inline-block;
  color:#466238;
  background:#eff4e9;
  border-radius:4px;
  padding:2px 7px;
  font-size:11px;
}

.health-pill.aging,.health-pill.stale {
  color:#78571e;
  background:#faf3e1;
}

.health-pill.unavailable {
  color:var(--muted);
  background:#f1f2ef;
}

/* Detail view keeps price, specs and seller contact together. */
.dialog {
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:white;
  color:var(--ink);
  max-height:calc(100dvh - 48px);
  box-shadow:0 24px 100px #00000029;
}

.dialog::backdrop {
  background:#2429246b;
  backdrop-filter:blur(3px);
}

.listing-dialog {
  width:min(1160px,calc(100vw - 48px));
}

.dialog-close {
  display:grid;
  place-items:center;
  position:sticky;
  top:16px;
  z-index:5;
  margin:16px 16px -52px auto;
  width:36px;
  height:36px;
  border:1px solid #e0e3db;
  border-radius:50%;
  background:#ffffffed;
  color:var(--muted);
}

.dialog-close svg {
  width:17px;
  height:17px;
}

.listing-detail {
  padding:30px;
}

.listing-detail-grid {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  gap:32px;
}

.listing-detail-grid>div {
  min-width:0;
}

.gallery-main {
  position:relative;
  aspect-ratio:4/3;
  border-radius:8px;
  overflow:hidden;
  background:#f4f5f1;
}

.gallery-main>img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.gallery-arrow {
  position:absolute;
  top:50%;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border:1px solid #ffffff80;
  border-radius:50%;
  background:#ffffffee;
  color:#505b46;
  box-shadow:0 1px 5px #00000012;
}

.gallery-arrow.prev {
  left:12px;
}

.gallery-arrow.next {
  right:12px;
}

.gallery-count {
  position:absolute;
  right:12px;
  bottom:12px;
  padding:4px 8px;
  color:white;
  background:#343a31bb;
  border-radius:5px;
  font-size:11px;
}

.gallery-thumbs {
  display:flex;
  overflow-x:auto;
  gap:8px;
  padding:12px 0 4px;
  scrollbar-width:thin;
}

.gallery-thumb {
  flex:0 0 66px;
  height:52px;
  border-radius:5px;
  border:2px solid transparent;
  padding:2px;
  background:#f5f6f3;
  overflow:hidden;
}

.gallery-thumb.is-active {
  border-color:#53664a;
}

.gallery-thumb img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.detail-heading {
  padding:4px 36px 0 0;
}

.detail-heading h2 {
  font-size:27px;
  letter-spacing:-.03em;
  line-height:1.2;
  font-weight:650;
  margin:0 0 10px;
}

.detail-location {
  color:var(--muted);
  font-size:13px;
  margin:0;
}

.detail-price {
  padding:22px 0;
  margin-top:6px;
}

.detail-price span {
  color:var(--muted);
  font-size:11px;
  display:block;
}

.detail-price strong {
  display:block;
  font-size:32px;
  font-weight:600;
  letter-spacing:-.035em;
  margin-top:4px;
}

.fact-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid var(--line);
}

.fact {
  padding:13px 0;
  border-bottom:1px solid var(--line);
}

.fact:nth-child(2n) {
  padding-left:12px;
}

.fact span {
  color:var(--muted);
  font-size:11px;
  display:block;
}

.fact strong {
  display:block;
  font-size:13px;
  font-weight:550;
  margin-top:4px;
  overflow-wrap:anywhere;
}

.detail-panel {
  border-top:1px solid var(--line);
  margin-top:26px;
  padding-top:22px;
}

.detail-panel h3 {
  font-weight:600;
  font-size:15px;
  margin:0 0 12px;
}

.detail-panel p {
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
  margin:0;
  white-space:pre-line;
}

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

.detail-option {
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:10px 12px;
  border-radius:5px;
  background:#f6f7f3;
  color:var(--muted);
  font-size:11px;
}

.detail-option strong {
  font-weight:550;
}

.detail-option .yes {
  color:#41612a;
}

.detail-option .no,.detail-option .unknown {
  color:var(--muted);
}

.match-explanation {
  background:#fdf8eb;
  border:1px solid #efe4ca;
  border-radius:6px;
  padding:16px;
}

.seller-card {
  padding:20px;
  background:#f8f9f5;
  border:1px solid var(--line);
  border-radius:8px;
}

.seller-card h3 {
  margin:5px 0;
}

.seller-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}

.seller-actions .button {
  font-size:12px;
  min-height:38px;
}

.provenance-list {
  display:grid;
  gap:12px;
}

.provenance-row {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:20px;
  font-size:11px;
}

.provenance-row span {
  color:var(--muted);
  flex-shrink:0;
}

.provenance-row strong {
  font-weight:500;
  color:var(--muted);
  text-align:right;
}

.history-empty {
  margin-top:16px!important;
  font-size:11px!important;
}

.save-dialog {
  width:min(500px,calc(100vw - 32px));
}

.save-dialog form {
  padding:32px;
}

.dialog-heading h2 {
  font-size:25px;
  font-weight:600;
  letter-spacing:-.03em;
  margin:0 0 8px;
}

.dialog-heading p {
  font-size:13px;
  color:var(--muted);
  margin:0 0 28px;
}

.saved-filter-summary {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:16px;
  background:#f7f8f4;
  border-radius:7px;
}

.dialog-helper {
  font-size:11px;
  color:var(--muted);
  margin-top:16px;
}

.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:28px;
}

.toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  z-index:100;
  max-width:calc(100vw - 32px);
  padding:14px 20px;
  border-radius:8px;
  background:#30392b;
  color:white;
  box-shadow:0 4px 18px #00000015;
  font-size:13px;
}

/* Collapse filters before the listing columns become cramped. */
@media(min-width:1600px) {
  .main-content {
    padding-top:52px;
  }
  .workspace {
    gap:40px;
  }
  .result-row {
    grid-template-columns:240px minmax(0,1fr) 170px;
    padding:22px;
    gap:28px;
  }
  .result-photo {
    height:185px;
  }
}

@media(max-width:1200px) {
  .header-inner {
    gap:36px;
    padding:0 28px;
  }
  .main-content {
    padding:36px 28px 24px;
  }
  .workspace {
    grid-template-columns:210px minmax(0,1fr);
    gap:24px;
  }
  .filters {
    padding:18px;
  }
  .result-row {
    grid-template-columns:180px minmax(0,1fr) 145px;
    gap:16px;
    padding:16px;
  }
  .result-photo {
    height:155px;
  }
  .result-title {
    font-size:18px;
  }
  .price-value {
    font-size:21px;
  }
  .preview-label {
    display:none;
  }
}

@media(max-width:1100px) {
  .workspace {
    grid-template-columns:1fr;
    gap:22px;
  }
  .filters {
    padding:16px 20px;
  }
  .filters-heading {
    margin:0;
  }
  .mobile-filter-toggle {
    display:inline;
  }
  .filters:not(.is-open)>:not(.filters-heading) {
    display:none;
  }
  .filters.is-open .filters-heading {
    margin-bottom:22px;
  }
  .filters.is-open {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:24px;
  }
  .filters.is-open .filters-heading,.filters.is-open .more-filters {
    grid-column:1/-1;
  }
  .filters.is-open .more-filter-fields {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 24px;
  }
  .result-row {
    grid-template-columns:220px minmax(0,1fr) 170px;
    padding:20px;
    gap:24px;
  }
  .result-photo {
    height:174px;
  }
  .result-title {
    font-size:20px;
  }
  .price-value {
    font-size:24px;
  }
}

@media(max-width:780px) {
  .header-inner {
    padding:0 20px;
    gap:24px;
  }
  .nav-list {
    gap:22px;
  }
  .nav-link {
    font-size:13px;
  }
  .nav-link svg {
    display:none;
  }
  .account-area {
    display:none;
  }
  .main-content {
    padding:30px 20px 24px;
  }
  .page-header h1 {
    font-size:28px;
  }
  .freshness-card {
    display:none;
  }
  .result-row {
    grid-template-columns:170px minmax(0,1fr) 145px;
    gap:18px;
    padding:16px;
  }
  .result-photo {
    height:150px;
  }
  .result-title {
    font-size:18px;
  }
  .price-value {
    font-size:22px;
  }
  .toolbar-actions {
    gap:8px;
  }
  .listing-detail-grid {
    grid-template-columns:1fr;
    gap:28px;
  }
  .listing-detail-grid>div:nth-child(2) {
    display:contents;
  }
  .detail-heading {
    grid-row:1;
    padding-right:36px;
  }
  .detail-price {
    margin:0;
    padding:0;
  }
  .fact-grid {
    margin-top:0;
  }
  .buy-box-row {
    flex-direction:column;
    gap:24px;
  }
  .buy-box-counts {
    justify-content:flex-start;
  }
  .buy-box-actions {
    justify-content:flex-start;
  }
  .app-footer>span:last-child {
    width:100%;
    margin:6px 0 0;
  }
}

@media(max-width:620px) {
  .app-header {
    height:68px;
  }
  .header-inner {
    padding:0 18px;
    justify-content:space-between;
  }
  .brand-logo {
    height:30px;
  }
  .nav-list {
    display:none;
  }
  #mobile-menu-button {
    display:grid;
  }
  .mobile-nav {
    top:67px;
  }
  .main-content {
    padding:26px 16px 20px;
  }
  .page-header {
    margin-bottom:22px;
  }
  .page-header h1 {
    font-size:26px;
  }
  .page-header p {
    font-size:13px;
  }
  .search-form {
    gap:8px;
    margin-bottom:20px;
  }
  .search-input-wrap input {
    height:48px;
    font-size:14px;
    padding-left:42px;
  }
  .search-input-wrap svg {
    left:14px;
    width:17px;
  }
  .search-button {
    min-width:75px;
    height:48px;
    min-height:48px;
    font-size:13px;
    padding:0 12px;
  }
  .filters {
    padding:14px 16px;
  }
  .filters-heading h2 {
    font-size:14px;
  }
  .results-toolbar {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-bottom:18px;
  }
  .result-count {
    font-size:14px;
  }
  .toolbar-actions {
    width:100%;
    justify-content:space-between;
  }
  .toolbar-actions .button {
    min-height:38px;
  }
  .sort-field select {
    height:38px;
  }
  .inventory-tabs {
    gap:22px;
    margin-bottom:18px;
  }
  .inventory-tab {
    font-size:12px;
  }
  .result-row {
    grid-template-columns:130px minmax(0,1fr);
    gap:14px;
    padding:14px;
  }
  .result-photo {
    height:126px;
    align-self:start;
  }
  .result-category {
    font-size:9px;
    margin-bottom:4px;
  }
  .result-title {
    font-size:17px;
  }
  .result-meta {
    font-size:11px;
    margin:8px 0;
    gap:4px;
  }
  .result-meta span {
    width:100%;
  }
  .option-list {
    gap:4px;
  }
  .option-pill {
    font-size:9px;
    padding:2px 5px;
  }
  .source-line {
    font-size:10px;
    margin-top:8px;
  }
  .result-price {
    grid-column:1/-1;
    flex-direction:row;
    align-items:center;
    text-align:left;
    border-top:1px solid var(--line);
    padding:12px 0 0;
  }
  .price-value {
    font-size:21px;
  }
  .price-label {
    font-size:9px;
  }
  .price-value.unpublished {
    font-size:17px;
  }
  .result-open {
    height:34px;
    font-size:11px;
  }
  .possible-reason {
    font-size:10px;
  }
  .dialog {
    max-height:calc(100dvh - 20px);
    border-radius:10px;
  }
  .listing-dialog {
    width:calc(100vw - 20px);
  }
  .listing-detail {
    padding:20px;
  }
  .detail-heading h2 {
    font-size:24px;
  }
  .gallery-thumbs {
    padding-top:10px;
  }
  .gallery-thumb {
    flex-basis:58px;
    height:46px;
  }
  .detail-options {
    grid-template-columns:1fr;
  }
  .detail-panel {
    margin-top:20px;
  }
  .detail-price strong {
    font-size:29px;
  }
  .source-totals {
    gap:12px 20px;
  }
  .source-table th,.source-table td {
    padding:16px;
  }
  .save-dialog form {
    padding:24px;
  }
  .buy-box-row {
    padding:22px;
  }
  .page-header>.button {
    white-space:normal;
  }
}

@media(max-width:380px) {
  .result-row {
    grid-template-columns:110px minmax(0,1fr);
    gap:12px;
    padding:12px;
  }
  .result-photo {
    height:115px;
  }
  .result-title {
    font-size:16px;
  }
  .filters.is-open {
    grid-template-columns:1fr;
  }
  .filters.is-open .more-filter-fields {
    grid-template-columns:1fr;
  }
}

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

/* Searchable multi-selection filters. */
.multi-select {
  position:relative;
  min-width:0;
}

.multi-trigger {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  min-height:40px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:white;
  text-align:left;
  color:var(--ink);
  font-size:13px;
}

.multi-trigger-text {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.multi-trigger svg {
  flex:none;
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
}

.multi-trigger[aria-expanded="true"] {
  border-color:#8e938c;
}

.multi-panel {
  position:absolute;
  z-index:30;
  top:calc(100% + 6px);
  left:0;
  width:max(100%,260px);
  max-width:calc(100vw - 72px);
  border:1px solid #dedfd9;
  border-radius:8px;
  background:white;
  box-shadow:0 8px 28px #1720191a;
  overflow:hidden;
}

.multi-search-wrap {
  padding:10px;
  border-bottom:1px solid var(--line);
}

.multi-options {
  max-height:250px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:5px;
}

.multi-option {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  margin:0;
  padding:8px;
  border-radius:4px;
  cursor:pointer;
  font-size:13px;
  line-height:1.4;
}

.multi-option:hover,.multi-option:focus-within {
  background:#f3f4f0;
}

.multi-option:has(input:checked) {
  background:#f0f2ed;
}

.multi-option input[type="checkbox"] {
  flex:none;
  width:16px;
  height:16px;
  margin:0;
  padding:0;
  accent-color:var(--ink);
}

.multi-option span {
  flex:1;
  min-width:0;
}

.multi-option small {
  color:var(--muted);
  font-size:11px;
  font-variant-numeric:tabular-nums;
}

.multi-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 13px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
}

.multi-empty {
  margin:12px 8px;
  color:var(--muted);
  font-size:13px;
}

@media(max-width:780px) {
  .multi-panel {
    width:100%;
  }
}


/* Purchasing details: key facts and direct seller contact stay beside the photo. */
.detail-header-grid {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-right:40px;
  margin-bottom:22px;
}
.detail-header-grid .detail-heading { padding:0; }
.detail-header-grid .detail-price { margin:0; padding:0; text-align:right; flex-shrink:0; }
.detail-header-grid .detail-price strong { font-size:30px; line-height:1.2; }
.listing-detail-grid { grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr); gap:28px; align-items:start; }
.detail-gallery,.detail-summary { min-width:0; }
.gallery-main { aspect-ratio:auto; height:390px; }
.gallery-arrow { width:40px; height:40px; color:var(--ink); }
.detail-summary .key-facts { grid-template-columns:repeat(3,minmax(0,1fr)); border-top:0; margin-bottom:16px; }
.key-facts .fact { padding:0 10px 13px 0; }
.key-facts .fact span { font-size:12px; }
.key-facts .fact strong { font-size:15px; color:var(--ink); }
.detail-summary .detail-options { gap:7px; margin-bottom:16px; }
.detail-option { padding:8px 9px; color:var(--muted); font-size:12px; }
.seller-card { margin:0; padding:16px; background:#fafbf9; }
.seller-card .eyebrow { margin:0 0 4px; }
.listing-terms { margin:0 0 16px; padding:12px 14px; border:1px solid #e6d8b0; border-radius:8px; background:#fffaf0; color:#30291a; }
.listing-terms h3 { margin:0 0 6px; font-size:14px; }
.listing-terms ul, .source-notes { margin:0; padding-left:18px; font-size:13px; line-height:1.6; }
.source-notes { margin-bottom:14px; color:var(--muted); }
.seller-card h3 { font-size:16px; font-weight:650; margin:0; }
.seller-contact-name { font-size:13px; color:var(--muted); margin:3px 0 0; }
.seller-contact-lines { display:grid; gap:6px; margin:10px 0 14px; }
.seller-contact-line { display:flex; align-items:center; gap:14px; }
.seller-contact-link { font-size:14px; font-weight:550; color:var(--ink); text-decoration:underline; text-decoration-color:#a8afa5; text-underline-offset:3px; overflow-wrap:anywhere; }
.seller-contact-link:hover { text-decoration-color:currentColor; }
.seller-email { font-size:13px; }
.seller-contact-line .text-button { font-size:12px; min-height:30px; }
.source-listing-link { width:100%; min-height:40px; font-size:13px; }
.source-listing-link svg { width:15px; height:15px; }
.not-listed { color:var(--muted); font-size:12px; margin:0; }
.detail-summary .match-explanation { font-size:12px; line-height:1.5; padding:10px 12px; margin:0 0 14px; }
.detail-summary .match-explanation strong { display:block; color:#78571e; }
.detail-more { border-top:1px solid var(--line); margin-top:20px; }
.detail-more>summary { display:flex; justify-content:space-between; align-items:center; padding:17px 0 0; font-size:13px; font-weight:600; list-style:none; cursor:pointer; }
.detail-more>summary::-webkit-details-marker { display:none; }
.detail-more[open]>summary svg { transform:rotate(180deg); }
.detail-more-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:28px; padding-top:20px; }
.detail-more-grid h3 { font-size:14px; margin:0 0 12px; }
.source-specifications { margin-top:20px; }
.source-specifications h4 { font-size:13px; margin:0 0 8px; color:var(--text); }
.source-specifications > div { border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.source-spec-row { display:grid; grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr); gap:16px; padding:9px 12px; border-top:1px solid var(--line); font-size:13px; }
.source-spec-row:first-child { border-top:0; }
.source-spec-row span { color:var(--muted); }
.source-spec-row strong { color:var(--text); font-weight:600; overflow-wrap:anywhere; }
.listing-identifiers { grid-template-columns:repeat(3,minmax(0,1fr)); }
.listing-identifiers .fact { padding:12px 10px 12px 0; }
.listing-description { margin:16px 0 0; white-space:pre-line; font-size:13px; line-height:1.65; color:var(--ink); }
.provenance-row { font-size:12px; }
.source-website a { display:inline-flex; align-items:center; gap:7px; color:var(--ink); text-decoration:underline; text-underline-offset:3px; text-decoration-color:#a8afa5; }
.source-website svg { width:13px; height:13px; }
.source-table { min-width:1040px; }
.source-table th,.source-table td { padding:17px 18px; }
.equipment-table .table-machine>small,.equipment-table .table-checked { color:var(--muted); }

@media(max-width:1000px) and (min-width:781px) {
  .listing-detail { padding:24px; }
  .listing-detail-grid { grid-template-columns:minmax(0,1fr) minmax(290px,1fr); gap:20px; }
  .gallery-main { height:330px; }
  .detail-header-grid { gap:20px; }
}
@media(max-width:780px) {
  .detail-header-grid { display:block; padding-right:34px; margin-bottom:18px; }
  .detail-heading h2 { font-size:25px; margin-bottom:7px; }
  .detail-header-grid .detail-price { text-align:left; margin-top:13px; }
  .detail-header-grid .detail-price strong { font-size:27px; }
  .listing-detail-grid,.detail-more-grid { grid-template-columns:1fr; gap:18px; }
  .gallery-main { height:auto; aspect-ratio:4/3; max-height:350px; }
  .detail-summary .key-facts { margin-bottom:14px; }
  .detail-summary .detail-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .seller-card { padding:16px; }
  .seller-contact-link { font-size:15px; }
  .source-listing-link { min-height:44px; }
  .listing-identifiers { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.opportunity-list { display: grid; gap: 14px; margin-top: 22px; }
.opportunity-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; background: #fff; border: 1px solid #e4e4e1; border-radius: 12px; }
.opportunity-row h2 { margin: 7px 0 10px; font-size: 20px; }
.opportunity-row h2 .text-button { color: #171717; font: inherit; text-align: left; }
.opportunity-row p { margin: 6px 0; }
.opportunity-meta { color: #525252; font-size: 13px; }
.opportunity-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; max-width: 310px; }
.opportunity-state { flex-basis: 100%; font-size: 13px; font-weight: 600; color: #353535; }
#updates-status { color: #404040; line-height: 1.6; }
@media (max-width: 760px) { .opportunity-row { align-items: flex-start; flex-direction: column; padding: 20px; gap: 12px; } .opportunity-actions { max-width: none; } }

.linked-offers { margin: 28px 0; }
.linked-offers p { color: #454545; margin: 8px 0 16px; }
.listing-history { list-style:none; padding:0; margin:16px 0; }
.listing-history li { padding:10px 0; border-bottom:1px solid #e9e9e9; }
.listing-history span { display:block; margin-top:4px; color:#454545; }

.price-picture { margin:28px 0; padding:22px; border:1px solid var(--line); border-radius:12px; background:#fff; color:#242424; }
.price-picture h3 { margin:0 0 12px; font-size:18px; }
.price-picture-verdict { font-size:17px; margin:0 0 18px; font-weight:600; }
.price-picture-metrics { display:flex; flex-wrap:wrap; gap:18px 32px; margin-bottom:18px; }
.price-picture-metrics span { display:flex; flex-direction:column; gap:6px; font-size:13px; color:#454545; }
.price-picture-metrics strong { font-size:20px; color:#202020; }
.price-picture .table-scroll { margin:16px 0; }
.price-picture .equipment-table td { white-space:nowrap; }
.price-picture-notes { padding-left:18px; margin:12px 0 0; color:#454545; line-height:1.5; font-size:13px; }
@media(max-width:600px) { .price-picture { padding:16px; } .price-picture-metrics { gap:16px; } }

.auction-watch { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e8e8e8; }
.auction-watch-toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.auction-watch-toggle input { width: 18px; height: 18px; accent-color: #222; }
.auction-watch-fields { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 16px; margin-top: 20px; }
@media (max-width: 520px) { .auction-watch-fields { grid-template-columns: 1fr; } }

.table-deal {
  display: block;
  margin-top: 4px;
  color: #0a6b35;
  font-size: 12px;
  font-weight: 600;
}

/* Sign-in screens */
.auth-screen {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--canvas);
}

.auth-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 28px;
}

.auth-logo {
  display:block;
  width:auto;
  height:36px;
}

.auth-signup {
  min-height:38px;
  padding:0 18px;
}

.auth-card {
  width:calc(100% - 32px);
  max-width:400px;
  margin:9vh auto 48px;
  padding:32px 28px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
}

.auth-card h1 {
  margin:0 0 20px;
  font-size:24px;
  line-height:1.25;
  letter-spacing:-.01em;
}

.auth-lead {
  margin:-12px 0 20px;
  color:var(--muted);
  font-size:14px;
}

.auth-error,.auth-note {
  margin:0 0 18px;
  padding:10px 12px;
  border-radius:7px;
  font-size:13px;
}

.auth-error {
  color:#8d2f2f;
  background:#fff3f1;
  border:1px solid #f1d2cc;
}

.auth-note {
  color:#3d2a8a;
  background:var(--tint);
  border:1px solid #ddd3fb;
}

.auth-card .field input {
  height:44px;
  font-size:15px;
}

.auth-submit {
  width:100%;
  min-height:46px;
  font-size:14px;
}

.auth-links {
  display:grid;
  justify-items:start;
  gap:10px;
  margin-top:20px;
}

.auth-links .text-button {
  font-size:13px;
}

/* Email code banner */
.verify-banner {
  margin:16px 24px 0;
  padding:14px 16px;
  border:1px solid #e5dcc3;
  border-radius:10px;
  background:#fffbef;
  font-size:13px;
}

.verify-banner p {
  margin:0;
}

.verify-form {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:10px;
}

.verify-form input {
  width:120px;
  height:40px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:6px;
  letter-spacing:.2em;
  font-size:16px;
}

.verify-message:empty {
  display:none;
}

.verify-message {
  margin-top:8px!important;
  color:var(--muted);
}

.mobile-sign-out {
  padding:12px 0;
  border:0;
  background:none;
  color:var(--muted);
  text-align:left;
  font-size:15px;
}

@media (max-width:640px) {
  .auth-topbar {
    padding:14px 16px;
  }

  .auth-card {
    margin-top:6vh;
    padding:26px 18px;
  }

  .verify-banner {
    margin:12px 16px 0;
  }
}
