.filter-help {
  margin: 6px 0 -7px;
  color: #aaa;
  font-size: 9px;
}

.active-filters button { cursor: pointer; }

.csv-hint {
  margin: 10px 0 0;
  color: #888;
  font-size: 10px;
}

.csv-hint code {
  padding: 2px 5px;
  color: var(--accent);
  background: #edf1ef;
}

@media (max-width: 720px) {
  .filters .filter-group:not(:first-of-type) { display: block; }
  .filters {
    max-height: 360px;
    padding-right: 10px;
    overflow: auto;
    border-bottom: 1px solid var(--line);
  }
  .tag-cloud { padding-bottom: 2px; }
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: #f5f7f4;
  font-size: 11px;
  font-weight: 700;
}

.role-badge[data-role="admin"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.role-badge[data-role="dealer"] {
  color: #fff;
  background: #6b5639;
  border-color: #6b5639;
}

.role-badge[data-role="collector"],
.role-badge[data-role="proCollector"] {
  color: #584826;
  background: #f6efe0;
  border-color: #e8d7b8;
}

.login-button {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.manage-button[hidden],
#adminNav[hidden] {
  display: none !important;
}

.nav-link,
.admin-button,
.primary-link,
.table-link,
.button-like {
  text-decoration: none;
}

.mobile-filter-toggle {
  display: none;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.mobile-filter-toggle::after {
  content: "↓";
  font-size: 14px;
}

.filters.collapsed {
  display: block;
}

.filter-group:not(.open) .filter-body,
.filter-group:not(.open) .filter-help {
  display: none;
}

.price-chart {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  font-family: var(--sans);
}

.trend-chart svg.price-chart {
  height: 156px;
}

.chart-grid line {
  stroke: #ecebe7;
  stroke-width: 1;
}

.chart-grid text,
.chart-axis text {
  fill: #8a8780;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.chart-axis line {
  stroke: rgba(17, 17, 17, .36);
  stroke-width: 1;
}

.chart-axis-title {
  display: none;
}

.chart-empty {
  fill: #8a8780;
  font-size: 11px;
  font-weight: 500;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin: -6px 0 22px;
}

.detail-actions button,
.row-actions button,
.form-actions button {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 11px;
}

.detail-actions button:first-child,
.form-actions button[type="submit"],
.row-actions button:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.permission-note {
  margin: -6px 0 22px;
  padding: 11px 13px;
  background: #f5f2eb;
  color: #7a6a4d;
  font-size: 11px;
  line-height: 1.7;
}

.record-type {
  position: absolute;
  left: 12px;
  top: 42px;
  z-index: 3;
  padding: 5px 7px;
  color: #fff;
  background: rgba(20, 62, 52, .92);
  font-size: 9px;
}

.record-type.private {
  background: rgba(151, 110, 50, .92);
}

.copyright-note,
.detail-lock {
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(28, 28, 24, .68);
  font-size: 10px;
  white-space: nowrap;
}

.copyright-note {
  bottom: 18px;
}

.detail-lock {
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 62, 52, .82);
}

.record-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.detail-visual .record-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.copyright-blur svg,
.copyright-blur .record-photo {
  filter: blur(6px) saturate(.72);
  opacity: .72;
}

.detail-visual.copyright-blur {
  position: relative;
  overflow: hidden;
}

.detail-visual.copyright-blur svg,
.detail-visual.copyright-blur .record-photo {
  filter: blur(8px) saturate(.7);
}

.copyright-detail-note {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 62, 52, .84);
  font-size: 11px;
  white-space: nowrap;
}

.locked-record {
  cursor: not-allowed;
}

.locked-record .card-meta h3::after {
  content: " · 상세 제한";
  color: #a35e40;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
}

.admin-view {
  max-width: 1320px;
}

.admin-page .simple-view,
.create-page .simple-view {
  padding-top: 56px;
}

.page-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.page-title-row p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.admin-summary-grid div,
.admin-summary-card {
  display: grid;
  min-height: 118px;
  align-content: space-between;
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
  text-align: left;
}

.admin-summary-card {
  appearance: none;
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.admin-summary-card:hover,
.admin-summary-card.active {
  border-color: #3b3936;
  box-shadow: inset 0 0 0 1px #4b4945;
}

.admin-summary-card.active {
  transform: translateY(-1px);
}

.admin-summary-grid strong,
.admin-summary-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent);
}

.admin-summary-grid span,
.admin-summary-card span {
  color: var(--muted);
  font-size: 11px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 28px;
}

.permission-grid div {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.permission-grid strong {
  display: block;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 7px;
}

.permission-grid span {
  color: var(--muted);
  font-size: 12px;
}

.management-layout {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-system-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  margin-top: 22px;
}

.admin-system-grid[hidden] {
  display: none !important;
}

.management-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
}

.management-card-head,
#recordForm > .management-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.management-card-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
}

.management-card-head span {
  color: var(--muted);
  font-size: 11px;
}

#recordForm .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#recordForm .form-actions {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  margin-top: 8px;
}

#recordForm .form-actions button {
  flex: 1;
  height: 42px;
}

#recordForm .secondary-action {
  color: var(--muted);
}

#recordForm :disabled {
  opacity: .55;
  cursor: not-allowed;
}

.table-card {
  min-width: 0;
}

.table-scroll {
  overflow-x: auto;
}

.management-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.management-table th,
.management-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #eceae4;
  text-align: left;
  font-size: 11px;
  vertical-align: middle;
}

.management-table th {
  color: var(--muted);
  font-weight: 700;
  background: #faf9f5;
}

.management-table td strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 4px;
}

.management-table td span {
  color: var(--muted);
}

.scope-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2f0ea;
  color: #817d72;
  font-size: 10px;
  white-space: nowrap;
}

.scope-pill.allowed {
  color: var(--accent);
  background: #edf4f0;
}

.row-actions {
  white-space: nowrap;
}

.row-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.table-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
}

.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}

.create-layout > *,
.create-form-card,
.image-preview-card,
.title-builder,
.create-form-card .form-grid,
.dimension-pair,
.create-form-card label,
.generated-title,
.preview-frame {
  min-width: 0;
  max-width: 100%;
}

.create-form-card input,
.create-form-card select,
.create-form-card textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.create-form-card .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.required-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.required-note span,
.required-mark {
  color: #a35e40;
  font-weight: 800;
}

.title-builder {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #e7e2d7;
  background: #fbfaf6;
}

.compact-head {
  margin-bottom: 12px !important;
}

.generated-title {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #d9e4dc;
  background: #f3f8f5;
}

.generated-title span,
.generated-title small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.generated-title strong {
  display: block;
  margin: 4px 0 5px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -.03em;
}

.image-uploader {
  position: relative;
  display: grid;
  gap: 14px;
  place-items: stretch;
  min-height: 158px;
  margin: 0 0 20px;
  padding: 18px;
  border: 1px dashed #b9b6ae;
  background: #faf9f5;
  text-align: center;
  cursor: pointer;
}

.image-uploader.required-missing {
  border-color: #a35e40;
  background: #fff7f3;
}

.image-uploader input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.image-uploader.has-images {
  cursor: default;
}

.image-uploader.has-images input {
  inset: 18px 18px auto 18px;
  height: 48px;
}

.image-uploader strong {
  display: block;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 6px;
}

.image-uploader span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.image-uploader-copy,
.upload-preview,
.upload-status {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.image-uploader.has-images .upload-preview {
  z-index: 6;
  pointer-events: auto;
}

.image-uploader.has-images .preview-item,
.image-uploader.has-images .preview-item img {
  cursor: pointer;
}

.upload-preview {
  width: 100%;
  min-height: 210px;
  border: 1px solid #ebe8df;
  background: #f1f0ec;
}

.upload-status {
  justify-self: center;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf4f0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.create-form-card label {
  color: #68655e;
  font-weight: 600;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.date-pair,
.period-pair,
.dimension-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.date-pair label,
.period-pair label,
.dimension-pair label {
  margin-bottom: 14px;
  min-width: 0;
}

.preview-frame {
  min-height: 310px;
  background: #f1f0ec;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  z-index: 4;
}

.preview-frame span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 20px;
}

.preview-frame img {
  width: 100%;
  height: 100%;
  max-height: 390px;
  object-fit: contain;
}

.preview-grid,
.preview-grid img {
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.preview-grid img {
  cursor: grab;
  transition: transform .12s ease;
}

.preview-grid img.dragging {
  cursor: grabbing;
  transition: none;
  opacity: .9;
}

.preview-drag-hint {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: #81796d;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
}

.compression-stats {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.compression-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eceae4;
  padding-bottom: 10px;
  font-size: 12px;
}

.compression-stats dt {
  color: var(--muted);
}

.compression-stats dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-dialog {
  width: min(720px, 92vw);
}

.login-dialog .login-method-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 20px;
  padding: 12px 14px;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.45;
  text-align: center;
}

.role-options {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.role-options button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.role-options button:hover {
  border-color: var(--accent);
  background: #f7faf8;
}

.role-options strong {
  color: var(--accent);
  font-size: 14px;
}

.role-options span {
  color: var(--muted);
  font-size: 12px;
}

.role-options button.active {
  border-color: var(--accent);
  background: #edf4f0;
}

.signup-roles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-login-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.social-login-grid button {
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.social-login-grid button:hover {
  border-color: var(--accent);
  background: #f7faf8;
}

.social-login-grid strong {
  color: var(--accent);
  font-size: 14px;
}

.social-login-grid span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.guest-link {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #faf9f5;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.user-table td,
.log-table td {
  line-height: 1.55;
}

.member-control {
  min-width: 104px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dedbd2;
  background: #fff;
  color: #111;
  font-size: 11px;
}

.member-save {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #111;
  background: #3b3936;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}

.member-save:disabled {
  opacity: .45;
  cursor: wait;
}

.member-detail-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dedbd2;
  background: #fff;
  color: #111;
  font-size: 11px;
  cursor: pointer;
}

.member-detail-card {
  align-self: start;
}

.member-detail-card[hidden] {
  display: none !important;
}

.member-detail-card:not([hidden]) {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 140;
  width: min(540px, calc(100vw - 36px));
  max-height: calc(100vh - 132px);
  overflow: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.member-detail-form {
  display: grid;
  gap: 12px;
}

.member-detail-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #777;
  font-size: 10px;
}

.member-detail-form input,
.member-detail-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dedbd2;
  background: #fff;
  color: #111;
  padding: 0 11px;
  font-size: 13px;
}

.member-detail-meta {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #eceae4;
  border-bottom: 1px solid #eceae4;
}

.member-detail-meta div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 11px;
}

.member-detail-meta span {
  color: var(--muted);
}

.member-detail-meta strong {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.member-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.member-detail-actions .button-like {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dedbd2;
  background: #fff;
  color: #111;
  font-size: 11px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .management-layout {
    grid-template-columns: 1fr;
  }

  .admin-system-grid {
    grid-template-columns: 1fr;
  }

  .create-layout {
    grid-template-columns: 1fr;
  }

  .permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 17px;
    line-height: 1.65;
  }

  .site-header {
    gap: 10px;
  }

  .header-actions {
    gap: 7px;
  }

  .role-badge {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  .login-button,
  .manage-button {
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .manage-button {
    display: inline-flex !important;
    align-items: center;
  }

  .manage-button[hidden] {
    display: none !important;
  }

  .icon-button {
    width: 32px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.38;
  }

  .hero > p {
    font-size: 16px;
  }

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

  .filters.collapsed {
    display: none !important;
  }

  .filters {
    max-height: none !important;
    overflow: visible !important;
    padding: 18px !important;
    margin-bottom: 28px !important;
    border: 1px solid var(--line) !important;
    background: #fff;
  }

  .filters .filter-group:not(:first-of-type) {
    display: block !important;
  }

  .apply-filter {
    display: block !important;
    margin-top: 10px;
  }

  .filter-title h2 {
    font-size: 18px;
  }

  .filter-head {
    font-size: 15px;
  }

  .chip,
  .tag-cloud button,
  .checks label,
  .price-filter input {
    font-size: 15px;
  }

  .trend-panel.open {
    padding: 18px;
  }

  .trend-copy strong {
    font-size: 24px;
  }

  .trend-chart svg.price-chart {
    height: 164px;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-title-row {
    display: grid;
  }

  .signup-roles,
  .social-login-grid {
    grid-template-columns: 1fr;
  }

  .copyright-detail-note {
    max-width: calc(100% - 34px);
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }

  .management-card {
    padding: 18px;
  }

  .management-card-head h3,
  .create-page h2,
  .admin-page h2 {
    font-size: 22px;
  }

  .page-title-row p,
  .simple-view > p:not(.section-kicker),
  .required-note {
    font-size: 15px;
  }

  form label,
  .create-form-card label {
    font-size: 15px;
    line-height: 1.45;
  }

  form input,
  form select,
  form textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .image-uploader {
    min-height: 180px;
    padding: 24px 18px;
  }

  .image-uploader strong {
    font-size: 17px;
  }

  .image-uploader span,
  .preview-frame span,
  .compression-stats div,
  .generated-title span,
  .generated-title small {
    font-size: 14px;
  }

  .generated-title strong {
    font-size: 22px;
  }

  .form-actions button,
  .button-like,
  .primary-link {
    min-height: 46px;
    font-size: 15px;
  }

  #recordForm .form-grid {
    grid-template-columns: 1fr;
  }

  .create-form-card .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .create-page .simple-view {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .create-layout {
    width: 100%;
    max-width: 100%;
    gap: 16px;
  }

  .create-form-card,
  .image-preview-card {
    width: 100%;
    padding: 16px;
  }

  .title-builder,
  .generated-title {
    padding: 14px;
  }

  .management-card-head,
  #recordForm > .management-card-head {
    min-width: 0;
  }

  .management-card-head h3 {
    min-width: 0;
  }

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

  .brand span:last-child {
    display: inline-block !important;
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px !important;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 5px;
  }

  .role-badge {
    padding: 0 7px;
  }

  .login-button,
  .manage-button {
    padding: 0 9px;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .art-image {
    height: 265px !important;
  }

  .card-meta h3 {
    font-size: 17px !important;
    line-height: 1.45;
    white-space: normal !important;
  }

  .card-facts {
    display: block !important;
    white-space: normal !important;
    font-size: 13px !important;
    line-height: 1.7;
  }

  .price-row {
    display: flex !important;
    align-items: flex-end;
  }

  .price-row strong {
    font-size: 17px !important;
  }

  .price-row time,
  .price-row span,
  .card-meta .source {
    font-size: 11px !important;
  }

  .results-head {
    display: grid;
  }

  .result-tools {
    width: 100%;
  }

  .result-tools select {
    flex: 1;
    width: auto !important;
  }

  .detail-table div {
    grid-template-columns: 86px 1fr;
    font-size: 13px;
  }

  .management-card-head {
    display: grid;
  }
}

@media (max-width: 380px) {
  .brand span:last-child {
    max-width: 96px;
    font-size: 10px !important;
  }

  .role-badge {
    min-height: 28px;
    font-size: 9px;
  }

  .login-button,
  .manage-button {
    height: 31px;
    padding: 0 7px;
    font-size: 11px;
  }
}

@media (max-width: 440px) {
  .create-page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .create-page .simple-view {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .create-layout,
  .create-layout > *,
  .create-form-card,
  .image-preview-card,
  .title-builder,
  .generated-title,
  .create-form-card .form-grid,
  .dimension-pair,
  .create-form-card label,
  .create-form-card input,
  .create-form-card select,
  .create-form-card textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .create-form-card,
  .image-preview-card {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.create-form-card .dimension-pair {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.create-form-card .period-pair {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.create-form-card .period-pair > label {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-bottom: 14px;
}

.create-form-card .dimension-pair > label {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .create-form-card .form-grid:has(input[name="diameter"]) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .create-form-card .form-grid:has(input[name="diameter"]) > label:has(select[name="damageType"]),
  .create-form-card .form-grid:has(input[name="diameter"]) > .date-pair,
  .create-form-card .form-grid:has(input[name="diameter"]) > .dimension-pair {
    grid-column: 1 / -1;
  }

  .create-form-card .form-grid:has(input[name="diameter"]) > label:has(input[name="diameter"]),
  .create-form-card .form-grid:has(input[name="diameter"]) > label:has(input[name="height"]) {
    grid-column: auto;
  }
}

/* 2026-06-29 mobile-first auction archive refresh */
:root {
  --kb-yellow: #ffbc00;
  --kb-yellow-soft: #fff6d8;
  --kb-gray: #60584c;
  --kb-dark-gray: #545045;
  --kb-line: #e7e2d8;
  --accent: #ffbc00;
  --gold: #ffbc00;
  --ink: #171717;
  --muted: #77736b;
  --line: #e6e0d6;
  --paper: #faf9f5;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --serif: "Noto Serif KR", "Noto Sans KR", serif;
}

body {
  background: #fff;
  font-family: var(--sans);
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

.site-header {
  height: 78px;
  border-bottom: 1px solid #ece7dd;
  box-shadow: 0 2px 14px rgba(84, 80, 69, .06);
}

.brand {
  font-size: 22px;
  letter-spacing: -.04em;
}

.brand-mark {
  background: var(--kb-yellow);
  color: #211d17;
  border-radius: 9px;
  font-family: var(--sans);
  font-weight: 900;
}

.nav-link.active::after {
  background: var(--kb-yellow);
}

.role-badge {
  color: var(--kb-gray);
  background: var(--kb-yellow-soft);
  border: 1px solid #ffe09a;
}

.hero {
  background: #fff;
  padding-top: 42px;
  padding-bottom: 32px;
}

.hero h1,
.results-head h2,
.simple-view h2 {
  font-family: var(--sans);
  font-weight: 800;
}

.hero h1 em {
  color: var(--kb-gray);
}

.search-wrap {
  border-radius: 18px;
  border-color: #ded8cc;
  box-shadow: 0 12px 32px rgba(84, 80, 69, .08);
}

.search-wrap button,
.chip.active,
.tag-cloud button.active,
.apply-filter,
.primary-link {
  background: var(--kb-yellow) !important;
  border-color: var(--kb-yellow) !important;
  color: #231f18 !important;
  font-weight: 800;
}

.workspace {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.lot-card {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--kb-line);
  cursor: pointer;
}

.lot-card:hover h3,
.lot-card:focus-within h3 {
  color: #d19400;
}

.lot-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--kb-gray);
  font-size: 13px;
  font-weight: 700;
}

.lot-topline div {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.lot-topline time {
  padding: 6px 10px;
  border-radius: 8px;
  background: #f3f0ea;
  color: #6f695f;
}

.lot-topline em {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff3f3;
  color: #e13225;
  font-style: normal;
}

.lot-main {
  display: grid;
  grid-template-columns: minmax(170px, 34%) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.lot-card .art-image {
  height: 240px;
  background: #fff;
  border: 1px solid #eee9df;
  box-shadow: none;
}

.lot-card .art-image::after {
  display: none;
}

.lot-card .art-image svg,
.lot-card .art-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.record-type {
  top: 10px;
  left: 10px;
  background: rgba(255, 188, 0, .92);
  color: #211d17;
}

.save-card {
  right: 12px;
  top: 12px;
  border-radius: 999px;
  border: 1px solid #e9e2d7;
  background: rgba(255, 255, 255, .94);
}

.save-card svg {
  stroke: #bcb6ac;
}

.save-card.saved svg {
  fill: #e13225;
  stroke: #e13225;
}

.card-meta {
  padding-top: 0;
}

.card-meta h3 {
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.24;
  margin: 0 0 6px;
  white-space: normal;
  font-weight: 850;
  letter-spacing: -.05em;
}

.lot-source {
  margin: 0 0 12px;
  color: var(--kb-gray);
  font-size: 15px;
  font-weight: 650;
}

.lot-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0 0 16px;
}

.lot-facts div {
  min-width: 0;
}

.lot-facts dt {
  display: inline;
  color: #9b968d;
  font-size: 12px;
  margin-right: 8px;
}

.lot-facts dd {
  display: inline;
  margin: 0;
  color: #413d36;
  font-size: 14px;
  font-weight: 650;
}

.price-row {
  border: 0;
  padding: 0;
}

.price-row span {
  display: block;
  font-size: 12px;
  color: #9b968d;
  margin-bottom: 2px;
}

.price-row strong {
  color: #e13225;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 850;
  letter-spacing: -.03em;
}

.card-facts,
.badge,
.load-more {
  display: none !important;
}

.copyright-blur {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.copyright-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.copyright-blur svg,
.copyright-blur .record-photo,
.detail-visual.copyright-blur svg,
.detail-visual.copyright-blur .record-photo {
  filter: blur(8px) saturate(.72) !important;
  opacity: .62 !important;
}

img[data-protected-image],
.art-image img,
.detail-visual img,
.copyright-blur img,
.copyright-blur svg {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.copyright-note,
.copyright-detail-note {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  left: 50% !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 42px !important;
  height: auto !important;
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(18, 18, 16, .78) !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: var(--sans) !important;
  font-size: 0 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  -webkit-text-stroke: 0 transparent;
  paint-order: stroke fill;
  text-shadow: none !important;
  pointer-events: none;
}

.copyright-note::before,
.copyright-detail-note::before {
  content: "";
  position: static;
  flex: 0 0 auto;
  width: 42px;
  height: 27px;
  background: currentColor;
  transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 7h14a5 5 0 0 1 5 5v44H7V12a5 5 0 0 1 5-5Zm90 0h14a5 5 0 0 1 5 5v44H97V12a5 5 0 0 1 5-5ZM31 15h66v7H31V15ZM9 36h110a7 7 0 0 1 7 7v29a7 7 0 0 1-7 7H9a7 7 0 0 1-7-7V43a7 7 0 0 1 7-7Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 7h14a5 5 0 0 1 5 5v44H7V12a5 5 0 0 1 5-5Zm90 0h14a5 5 0 0 1 5 5v44H97V12a5 5 0 0 1 5-5ZM31 15h66v7H31V15ZM9 36h110a7 7 0 0 1 7 7v29a7 7 0 0 1-7 7H9a7 7 0 0 1-7-7V43a7 7 0 0 1 7-7Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.copyright-note::after,
.copyright-detail-note::after {
  content: "LOCKED";
  display: block;
  width: 42px;
  box-sizing: border-box;
  padding-left: .44em;
  color: currentColor;
  font-family: var(--sans);
  font-size: 7.1px;
  font-weight: 500;
  letter-spacing: .44em;
  line-height: 1;
  text-align: center;
  text-indent: 0;
  transform: none;
}

.copyright-detail-note {
  gap: 2px;
  width: 60px !important;
  height: auto !important;
  font-size: 0 !important;
}

.copyright-detail-note::before {
  width: 60px;
  height: 39px;
}

.copyright-detail-note::after {
  width: 60px;
  padding-left: .52em;
  font-size: 8.4px;
  letter-spacing: .52em;
  text-indent: 0;
  transform: none;
}

.detail-drawer .detail-visual .copyright-detail-note {
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

.toast {
  bottom: calc(124px + env(safe-area-inset-bottom)) !important;
  z-index: 10050 !important;
  max-width: calc(100vw - 40px);
  text-align: center;
  border-radius: 2px;
  white-space: pre-line;
}

.social-action.locked {
  opacity: .42;
}

.paging-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 70px;
  color: var(--kb-gray);
  font-size: 13px;
}

.paging-loader[hidden] {
  display: none !important;
}

.paging-loader span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #efe8db;
  border-top-color: var(--kb-yellow);
  animation: kap-spin .7s linear infinite;
}

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

nav.bottom-tabbar,
.bottom-tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  width: min(560px, calc(100vw - 28px));
  height: auto !important;
  min-height: 66px;
  max-height: 86px;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(231, 226, 216, .92);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 48px rgba(48, 44, 36, .18);
  backdrop-filter: blur(18px);
}

nav.bottom-tabbar .bottom-tab,
.bottom-tab {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  height: auto;
  margin: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #6f695f;
  text-decoration: none;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.bottom-tab svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-tab.active,
.bottom-tab:hover {
  color: #211d17;
}

.bottom-tab.active svg {
  stroke: #211d17;
}

.tabbar-badge {
  position: absolute;
  right: 18%;
  top: 1px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e13225;
  color: #fff;
  font-size: 9px;
}

.drawer-close,
.dialog-close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #211d17;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  opacity: .96;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.drawer-close:hover,
.dialog-close:hover {
  background: var(--kb-yellow);
  color: #211d17;
}

.detail-drawer {
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

.detail-visual {
  background: #fff;
  border: 1px solid #eee9df;
}

.detail-drawer h2,
.detail-price,
.similar-title,
.comment-panel h3 {
  font-family: var(--sans);
  font-weight: 850;
  letter-spacing: -.04em;
}

.comment-panel {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.comment-panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
}

.comment-form button {
  border: 0;
  border-radius: 12px;
  background: var(--kb-yellow);
  color: #211d17;
  font-weight: 850;
}

.comment-list article {
  padding: 10px 0;
  border-bottom: 1px solid #f0ece4;
}

.comment-list strong {
  font-size: 12px;
}

.comment-list p {
  margin: 3px 0;
  font-size: 13px;
  line-height: 1.55;
}

.comment-list time,
.empty-comments {
  color: var(--muted);
  font-size: 11px;
}

.similar-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 138px;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 2px 0 14px;
}

.similar-card {
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  padding: 0;
}

.similar-card span {
  display: grid;
  place-items: center;
  height: 132px;
  border: 1px solid #eee9df;
  background: #fff;
  overflow: hidden;
}

.similar-card svg,
.similar-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.similar-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.similar-card em {
  display: block;
  margin-top: 4px;
  color: #e13225;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.create-page .simple-view > p:not(.section-kicker) {
  display: none;
}

.image-uploader {
  min-height: 460px;
  place-items: center;
}

.image-uploader-copy span,
.upload-status {
  display: none !important;
}

.upload-preview,
.preview-frame {
  min-height: 360px;
  width: min(100%, 520px);
  justify-self: center;
  background: #fff;
}

.preview-frame img {
  object-fit: contain;
  background: #fff;
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: 86px;
    padding: 22px 22px 10px;
  }

  .brand {
    font-size: 29px;
  }

  .brand-mark {
    display: none;
  }

  .hero {
    padding: 24px 18px 22px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .workspace {
    padding: 24px 18px 70px;
  }

  .results-head {
    align-items: center;
  }

  .card-grid {
    gap: 42px;
  }

  .lot-main {
    grid-template-columns: 41% minmax(0, 1fr);
    gap: 18px;
  }

  .lot-card .art-image {
    height: 168px;
  }

  .card-meta h3 {
    font-size: 22px;
  }

  .lot-source {
    font-size: 15px;
  }

  .lot-facts {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .lot-facts dt,
  .lot-facts dd {
    font-size: 12px;
  }

  .price-row strong {
    font-size: 19px;
  }

  .detail-drawer {
    padding: 58px 22px calc(112px + env(safe-area-inset-bottom));
  }

  .drawer-close {
    right: 16px;
    top: 12px;
  }

  .bottom-tabbar {
    min-height: 70px;
  }

  .image-uploader {
    min-height: 430px;
  }

  .upload-preview,
  .preview-frame {
    min-height: 315px;
  }
}

/* 2026-06-29 compact mobile auction polish */
body,
button,
input,
select,
textarea {
  font-size: 17px;
}

.brand {
  gap: 13px;
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -.055em;
}

.brand-mark {
  display: grid !important;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(255, 188, 0, .28);
}

.nav-link,
.filter-head,
.chip,
.tag-cloud button,
.result-tools button,
.result-tools select,
.active-filters button,
.price-filter input,
.popular,
.popular button {
  font-size: calc(1em + 1px);
}

.results-head {
  gap: 16px;
}

.result-tools {
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
}

.lot-topline {
  font-size: 14px;
}

.archive-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.lot-topline em,
.record-type {
  white-space: nowrap;
  word-break: keep-all;
  min-width: max-content;
}

.lot-card .art-image {
  aspect-ratio: 1 / 1;
  height: auto;
}

.lot-card .art-image img.record-photo {
  padding: 0;
  background: #fff;
  object-fit: contain;
}

.record-type {
  top: 9px;
  left: 9px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 8px 20px rgba(30, 28, 24, .2);
  font-size: 12px;
  font-weight: 850;
}

.record-type.private {
  background: #211d17;
  color: var(--kb-yellow);
}

.record-type.auction {
  background: var(--kb-yellow);
  color: #211d17;
}

.card-meta h3 {
  line-height: 1.08;
  margin-bottom: 6px;
}

.lot-source {
  display: none !important;
}

.lot-facts {
  gap: 4px 13px;
  margin-bottom: 12px;
}

.lot-facts dt,
.lot-facts dd {
  line-height: 1.02;
}

.lot-facts dt {
  font-size: 13px;
}

.lot-facts dd {
  font-size: 15px;
}

.price-row span {
  font-size: 13px;
}

nav.bottom-tabbar,
.bottom-tabbar {
  bottom: calc(4px + env(safe-area-inset-bottom));
  min-height: 58px;
  max-height: 74px;
  padding: 8px 13px;
}

nav.bottom-tabbar .bottom-tab > span:not(.tabbar-badge),
.bottom-tab > span:not(.tabbar-badge) {
  display: none !important;
}

.bottom-tab svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.25;
}

.tabbar-badge {
  right: 18%;
  top: 4px;
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: 92px;
  }

  .brand {
    font-size: 31px;
    max-width: calc(100vw - 44px);
  }

  .brand span:last-child {
    font-size: 31px;
  }

  .brand-mark {
    display: grid !important;
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 27px;
  }

  .results-head {
    flex-wrap: wrap;
  }

  .result-tools {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .lot-main {
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .lot-card .art-image {
    height: auto;
  }

  .card-meta h3 {
    font-size: 23px;
  }

  .lot-facts {
    gap: 2px;
  }

  .lot-facts dt,
  .lot-facts dd {
    font-size: 13px;
    line-height: 1;
  }

  .record-type {
    font-size: 11px;
    padding: 5px 7px;
  }

  nav.bottom-tabbar,
  .bottom-tabbar {
    bottom: calc(3px + env(safe-area-inset-bottom));
    width: min(520px, calc(100vw - 22px));
  }
}

@media (max-width: 440px) {
  .brand {
    gap: 10px;
  }

  .brand span:last-child {
    font-size: 27px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 25px;
  }

  .lot-topline {
    gap: 8px;
    font-size: 12px;
  }

  .lot-topline div {
    gap: 5px;
  }

  .lot-topline time,
  .lot-topline em {
    padding: 5px 7px;
  }

  .bottom-tab svg {
    width: 30px;
    height: 30px;
  }
}

/* 2026-06-29 readability correction */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.brand {
  gap: 10px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.095em;
}

.brand span:last-child {
  font-size: inherit !important;
  line-height: 1.05;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 14px;
  font-size: 29px;
}

.search-wrap,
.search-wrap:focus,
.search-wrap:focus-within,
.search-wrap input,
.search-wrap input:focus {
  transform: none !important;
  zoom: 1 !important;
}

.search-wrap input,
input[type="search"] {
  min-height: 44px;
  font-size: 17px !important;
  line-height: 1.25;
}

.popular,
.popular button {
  font-size: 10px !important;
  line-height: 1.5;
}

.archive-number {
  color: #37332d;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .01em;
}

.lot-main {
  grid-template-columns: minmax(118px, 28%) minmax(0, 1fr);
  gap: 20px;
}

.lot-card .art-image {
  width: 100%;
  max-width: 176px;
  background: #fff;
  border-color: #eee8df;
}

.lot-card .art-image svg,
.lot-card .art-image img,
.lot-card .art-image img.record-photo {
  padding: 6px;
  background: #fff;
  object-fit: contain;
}

.price-row strong,
.detail-price,
.similar-card em {
  color: #3f3a32 !important;
}

nav.bottom-tabbar,
.bottom-tabbar {
  bottom: calc(1px + env(safe-area-inset-bottom));
  min-height: 72px;
  max-height: 88px;
  padding: 8px 12px 7px;
}

nav.bottom-tabbar .bottom-tab,
.bottom-tab {
  gap: 2px;
}

nav.bottom-tabbar .bottom-tab > span:not(.tabbar-badge),
.bottom-tab > span:not(.tabbar-badge) {
  display: block !important;
  color: inherit;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.bottom-tab svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(102px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: 94px;
    padding-inline: 14px;
  }

  .site-header .header-actions {
    display: none !important;
  }

  .brand {
    gap: 8px;
    flex: 1 1 auto;
    max-width: 100%;
    font-size: 33px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 27px;
  }

  .result-tools button,
  .result-tools select {
    min-height: 38px;
  }

  .lot-main {
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
    gap: 12px;
  }

  .lot-card .art-image {
    max-width: 138px;
  }

  .archive-number {
    font-size: 15px;
  }

  .price-row strong {
    font-size: 18px;
  }
}

@media (max-width: 440px) {
  .brand {
    font-size: 31px;
    letter-spacing: -.105em;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    font-size: 25px;
  }

  .lot-main {
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .lot-card .art-image {
    max-width: 126px;
  }

  .popular,
  .popular button {
    font-size: 9.5px !important;
  }

  nav.bottom-tabbar .bottom-tab > span:not(.tabbar-badge),
  .bottom-tab > span:not(.tabbar-badge) {
    font-size: 7.5px;
    letter-spacing: .025em;
  }
}

/* 2026-06-29 balanced mobile tuning */
.brand {
  gap: 9px;
  font-size: 27px;
  letter-spacing: -.08em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  font-size: 27px;
}

.search-wrap button {
  font-size: 14px !important;
  font-weight: 850;
}

.popular,
.popular button {
  font-size: 11px !important;
}

.results-head {
  justify-content: space-between;
}

.result-tools {
  margin-left: auto !important;
  justify-content: flex-end !important;
  align-self: flex-end;
}

.archive-number {
  font-size: 18px;
  letter-spacing: 0;
}

.lot-main {
  grid-template-columns: minmax(148px, 32%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.lot-card .art-image {
  max-width: 196px;
  aspect-ratio: 1 / 1;
}

.card-meta h3 {
  line-height: 1.01;
  margin-bottom: 4px;
}

.lot-facts {
  gap: 0 10px;
  margin-bottom: 9px;
}

.lot-facts dt,
.lot-facts dd {
  line-height: .94;
}

nav.bottom-tabbar,
.bottom-tabbar {
  bottom: calc(7px + env(safe-area-inset-bottom));
  min-height: 76px;
  max-height: 92px;
  padding: 8px 12px 8px;
}

nav.bottom-tabbar .bottom-tab,
.bottom-tab {
  gap: 1px;
}

.bottom-tab svg {
  width: 32px;
  height: 32px;
}

nav.bottom-tabbar .bottom-tab > span:not(.tabbar-badge),
.bottom-tab > span:not(.tabbar-badge) {
  font-size: 9.5px;
}

@media (max-width: 720px) {
  .brand {
    font-size: 24px;
    letter-spacing: -.085em;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 24px;
  }

  .result-tools {
    width: 100%;
    margin-left: auto !important;
    justify-content: flex-end !important;
  }

  .lot-main {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 11px;
  }

  .lot-card .art-image {
    max-width: 148px;
  }

  .lot-facts {
    gap: 0;
  }

  .lot-facts dt,
  .lot-facts dd {
    line-height: .9;
  }
}

@media (max-width: 440px) {
  .brand {
    font-size: 22px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 23px;
  }

  .search-wrap button {
    font-size: 14px !important;
  }

  .popular,
  .popular button {
    font-size: 10.5px !important;
  }

  .lot-main {
    grid-template-columns: 146px minmax(0, 1fr);
    gap: 10px;
  }

  .lot-card .art-image {
    max-width: 146px;
  }

  .bottom-tab svg {
    width: 31px;
    height: 31px;
  }

  nav.bottom-tabbar .bottom-tab > span:not(.tabbar-badge),
  .bottom-tab > span:not(.tabbar-badge) {
    font-size: 8.4px;
  }
}

/* 2026-06-29 hard fixes for header and image sizing */
.site-header .brand,
.site-header .brand span:last-child {
  font-size: 20px !important;
  letter-spacing: -.065em !important;
}

.site-header .brand-mark {
  width: 32px !important;
  height: 32px !important;
  flex-basis: 32px !important;
  border-radius: 10px !important;
  font-size: 20px !important;
}

.lot-card .art-image {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
}

.lot-card .art-image img.record-photo {
  width: 100%;
  height: 100%;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center;
  background: #fff;
}

.detail-drawer .detail-visual {
  width: min(100%, 360px);
  height: auto !important;
  max-height: 38vh;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
}

.detail-drawer .detail-visual svg,
.detail-drawer .detail-visual img,
.detail-drawer .detail-visual .record-photo {
  width: 100%;
  height: 100%;
  padding: 8px !important;
  object-fit: contain !important;
  background: #fff;
}

@media (max-width: 720px) {
  .site-header {
    height: 76px;
  }

  .site-header .brand,
  .site-header .brand span:last-child {
    font-size: 18px !important;
  }

  .site-header .brand-mark {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    font-size: 18px !important;
  }

  .detail-drawer .detail-visual {
    width: min(100%, 280px);
    max-height: 32vh;
  }
}

@media (max-width: 440px) {
  .site-header .brand,
  .site-header .brand span:last-child {
    font-size: 16px !important;
  }

  .site-header .brand-mark {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
    font-size: 17px !important;
  }
}

/* 2026-06-29 role badge, square crops, and calmer radii */
.site-header .header-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.site-header .role-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px !important;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-header .manage-button {
  border-radius: 6px !important;
}

.lot-card .art-image {
  width: 196px !important;
  height: 196px !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  border-radius: 2px !important;
}

.lot-card .art-image img.record-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
}

.record-type {
  border-radius: 4px !important;
}

.search-wrap,
.chip,
.tag-cloud button,
.active-filters button,
.lot-topline time,
.lot-topline em,
.save-card,
.comment-form input,
.comment-form button,
.image-uploader,
.preview-frame,
.upload-preview,
.generated-title,
.management-card,
.table-card,
.primary-link,
.admin-button,
.login-button,
.dialog-close,
.drawer-close {
  border-radius: 8px !important;
}

.brand-mark {
  border-radius: 8px !important;
}

nav.bottom-tabbar,
.bottom-tabbar {
  border-radius: 16px !important;
}

.tabbar-badge {
  border-radius: 5px !important;
}

.detail-drawer .detail-visual {
  width: min(100%, 300px) !important;
  max-height: 30vh !important;
  border-radius: 4px !important;
}

@media (max-width: 720px) {
  .site-header .header-actions {
    display: flex !important;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-header .manage-button {
    display: none !important;
  }

  .site-header .role-badge {
    height: 24px;
    min-width: 42px;
    padding: 0 7px;
    font-size: 10px;
  }

  .site-header .brand {
    padding-right: 58px;
  }

  .lot-card .art-image {
    width: 148px !important;
    height: 148px !important;
  }

  .detail-drawer .detail-visual {
    width: min(100%, 240px) !important;
    max-height: 26vh !important;
  }
}

@media (max-width: 440px) {
  .lot-card .art-image {
    width: 146px !important;
    height: 146px !important;
  }

  .site-header .brand {
    padding-right: 54px;
  }
}

/* 2026-06-29 final list control tune */
.site-header .manage-button,
.site-header .admin-button {
  height: 23px !important;
  padding: 0 6px !important;
  font-size: 9px !important;
}

.site-header .role-badge {
  font-size: 10px !important;
}

.search-wrap input,
.search-wrap input::placeholder,
input[type="search"]::placeholder {
  font-size: 16px !important;
}

.result-tools button,
.result-tools select {
  font-size: 10px !important;
}

.result-tools svg {
  width: 13px !important;
  height: 13px !important;
}

.lot-main {
  grid-template-columns: minmax(208px, 34%) minmax(0, 1fr);
}

.lot-card .art-image {
  width: 208px !important;
  height: 208px !important;
}

.lot-card .art-image img.record-photo {
  object-fit: cover !important;
  object-position: center center !important;
}

.save-card {
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.save-card svg {
  width: 21px !important;
  height: 21px !important;
  fill: rgba(255, 255, 255, .72);
  stroke: #2f2a23 !important;
  stroke-width: 2 !important;
  filter: drop-shadow(0 1px 2px rgba(255,255,255,.65));
}

.save-card.saved svg {
  fill: var(--kb-yellow) !important;
  stroke: #2f2a23 !important;
}

@media (max-width: 720px) {
  .lot-main {
    grid-template-columns: 156px minmax(0, 1fr);
  }

  .lot-card .art-image {
    width: 156px !important;
    height: 156px !important;
  }
}

@media (max-width: 440px) {
  .lot-main {
    grid-template-columns: 154px minmax(0, 1fr);
  }

  .lot-card .art-image {
    width: 154px !important;
    height: 154px !important;
  }

  .result-tools button,
  .result-tools select {
    font-size: 10px !important;
  }
}

/* 2026-06-29 filter/comment final tune */
.filters,
.filters button,
.filters label,
.filters small,
.filters input,
.filters select,
.filter-title h2,
.filter-title button,
.filter-head,
.filter-help,
.chip,
.tag-cloud button,
.checks label,
.checks small,
.price-filter input,
.price-filter small,
.apply-filter,
.mobile-filter-toggle {
  font-size: calc(1em - 1px) !important;
}

.archive-number {
  font-size: 17px !important;
}

.result-tools {
  margin-left: auto !important;
  justify-content: flex-end !important;
  text-align: right;
}

.result-tools button,
.result-tools select {
  font-size: 11px !important;
}

.site-header .role-badge,
.site-header .manage-button,
.site-header .admin-button {
  height: 21px !important;
  min-height: 21px !important;
  padding: 0 5px !important;
  font-size: 8px !important;
}

.lot-main {
  grid-template-columns: minmax(216px, 36%) minmax(0, 1fr) !important;
}

.lot-card .art-image {
  width: 216px !important;
  height: 216px !important;
}

.lot-card .art-image img.record-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.save-card {
  width: 34px !important;
  height: 34px !important;
  right: 8px !important;
  top: 8px !important;
}

.save-card svg {
  width: 27px !important;
  height: 27px !important;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comment-actions {
  display: inline-flex;
  gap: 4px;
}

.comment-actions button {
  border: 1px solid #e1ddd4;
  background: #fff;
  color: #60584c;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.comment-actions button:hover {
  border-color: var(--kb-yellow);
  color: #211d17;
}

@media (max-width: 720px) {
  .lot-main {
    grid-template-columns: 162px minmax(0, 1fr) !important;
  }

  .lot-card .art-image {
    width: 162px !important;
    height: 162px !important;
  }
}

@media (max-width: 440px) {
  .lot-main {
    grid-template-columns: 160px minmax(0, 1fr) !important;
  }

  .lot-card .art-image {
    width: 160px !important;
    height: 160px !important;
  }
}

/* 2026-06-29 detail table readability */
.detail-table div,
.detail-table span,
.detail-table strong {
  font-size: 14px !important;
  line-height: 1.35;
}

.detail-table span {
  font-weight: 650;
}

.detail-table strong {
  font-weight: 800;
}

/* 2026-06-29 detail/list gallery final tune */
.detail-drawer {
  font-size: calc(1rem + 1px) !important;
}

.detail-drawer h2 {
  font-size: calc(1.5rem + 1px) !important;
  line-height: 1.18 !important;
}

.detail-drawer p,
.detail-drawer span,
.detail-drawer strong,
.detail-drawer em,
.detail-drawer input,
.detail-drawer textarea,
.detail-drawer .comment-card,
.detail-drawer .comment-card p,
.detail-drawer .comment-card time,
.detail-actions button,
.comment-form button,
.comment-actions button {
  font-size: calc(1em + 1px) !important;
}

.detail-price {
  font-size: calc(1.55rem + 1px) !important;
}

.detail-table div,
.detail-table span,
.detail-table strong {
  font-size: 15px !important;
  line-height: 1.28 !important;
}

.detail-gallery {
  width: 100%;
  margin: 0 auto;
}

.detail-visual-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.detail-visual-track::-webkit-scrollbar {
  display: none;
}

.detail-visual-slide {
  display: grid;
  place-items: center;
  scroll-snap-align: center;
}

.detail-drawer .detail-visual {
  width: min(100%, 320px) !important;
  height: min(68vw, 320px) !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.detail-drawer .detail-visual img.record-photo,
.detail-drawer .detail-visual img.detail-photo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.detail-drawer .detail-visual svg {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

.detail-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
}

.detail-gallery-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9d2c5;
  cursor: pointer;
}

.detail-gallery-dots button.active {
  width: 18px;
  background: var(--kb-gray);
}

.lot-facts {
  gap: 0 !important;
}

.lot-facts div {
  margin: 0 !important;
}

.lot-facts dt,
.lot-facts dd {
  line-height: .78 !important;
}

.card-meta h3 {
  line-height: .9 !important;
  margin-bottom: 4px !important;
}

.save-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.save-card svg {
  fill: rgba(255, 255, 255, .78) !important;
  filter:
    drop-shadow(0 1px 1px rgba(255, 255, 255, .95))
    drop-shadow(0 2px 4px rgba(0, 0, 0, .46)) !important;
}

.save-card.saved svg {
  fill: var(--kb-yellow) !important;
}

.lot-card .art-image img.record-photo {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* 2026-06-29 detail comments and header micro tune */
.site-header .brand {
  align-items: center !important;
  gap: 7px !important;
}

.site-header .brand .brand-title {
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
}

.site-header .brand .brand-short {
  display: inline-block !important;
  margin-left: 1px;
  color: #766c5d;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  white-space: nowrap;
  transform: translateY(1px);
}

.result-tools {
  margin-left: auto !important;
  justify-content: flex-end !important;
  justify-self: end !important;
}

.result-tools button,
.result-tools select {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.detail-back-button {
  width: 100%;
  min-height: 46px;
  margin: 16px 0 18px;
  border: 1px solid #211d17;
  border-radius: 8px;
  background: #211d17;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(33, 29, 23, .12);
}

.detail-back-button:hover {
  border-color: var(--kb-yellow);
  background: var(--kb-yellow);
  color: #211d17;
}

.comment-panel h3 {
  font-size: 17px !important;
}

.comment-form input {
  font-size: 12px !important;
}

.comment-form button {
  font-size: 12px !important;
}

.empty-comments {
  font-size: 10px !important;
}

.comment-list strong {
  font-size: 11px !important;
}

.comment-list p {
  font-size: 12px !important;
}

.comment-list time {
  font-size: 10px !important;
}

.similar-card strong {
  font-size: 11px !important;
  line-height: 1.26 !important;
}

.similar-card em {
  font-size: 10px !important;
  line-height: 1.08 !important;
}

@media (max-width: 440px) {
  .site-header .brand {
    gap: 5px !important;
  }

  .site-header .brand span.brand-short,
  .site-header .brand .brand-short {
    font-size: 8px !important;
  }

  .result-tools {
    width: 100%;
    justify-content: flex-end !important;
  }

  .result-tools button,
  .result-tools select {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
}

/* 2026-06-29 upload and alignment final tune */
.site-header .brand .brand-short {
  color: #80786d !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  transform: translateY(1px);
}

.results-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: end !important;
  column-gap: 12px !important;
}

.results-head > div:first-child {
  min-width: 0;
}

.result-tools {
  grid-column: 2 !important;
  justify-self: end !important;
  align-self: end !important;
  width: auto !important;
  margin-left: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.result-tools button,
.result-tools select {
  padding-left: 7px !important;
  padding-right: 7px !important;
  border-radius: 4px !important;
}

#sortSelect {
  border-radius: 4px !important;
}

.lot-card .art-image,
.detail-drawer .detail-visual {
  aspect-ratio: 1 / 1 !important;
}

.detail-drawer .detail-visual {
  width: min(100%, 320px) !important;
  height: auto !important;
  max-height: none !important;
}

.detail-drawer .detail-visual img.record-photo,
.detail-drawer .detail-visual img.detail-photo {
  padding: 0 !important;
  object-fit: cover !important;
}

.similar-card {
  text-align: center !important;
}

.similar-card strong,
.similar-card em {
  text-align: center !important;
}

.search-wrap input::placeholder,
input[type="search"]::placeholder {
  font-size: 15px !important;
}

.image-uploader {
  place-items: center !important;
}

.preview-frame,
.upload-preview {
  display: grid !important;
  place-items: center !important;
  justify-items: center !important;
  align-items: center !important;
  text-align: center;
}

.preview-frame > span {
  justify-self: center !important;
  align-self: center !important;
}

.preview-grid {
  width: 100%;
  min-height: inherit;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 112px));
  justify-content: center;
  align-content: center;
  place-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 18px;
}

.preview-grid.single {
  grid-template-columns: minmax(0, min(260px, 100%));
}

.preview-grid img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  border: 1px solid #eee9df;
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 720px) {
  .results-head {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }

  .result-tools {
    grid-column: 1 !important;
    justify-self: end !important;
  }
}

@media (max-width: 440px) {
  .site-header .brand span.brand-short,
  .site-header .brand .brand-short {
    font-size: 7px !important;
    font-weight: 500 !important;
  }

  .result-tools {
    width: auto !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
  }

  .result-tools button,
  .result-tools select {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(72px, 96px));
    gap: 8px;
    padding: 14px;
  }
}

/* 2026-06-29 comments numbering final tune */
.comment-panel .comment-form {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

.comment-actions {
  gap: 3px !important;
}

.comment-actions button {
  min-height: 22px !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
}

.comment-form button {
  font-size: 13px !important;
  font-weight: 900 !important;
}

.similar-card em {
  font-size: 11px !important;
}

/* 2026-06-29 light comment feed UI */
.comment-feed {
  margin-top: 30px !important;
  padding: 22px 0 0 !important;
  border-top: 1px solid #eee9df !important;
  background: #fff !important;
  color: #211d17 !important;
}

.comment-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.comment-feed-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  letter-spacing: -.05em !important;
}

.comment-feed-head h3::after {
  content: "›";
  color: #7d766b;
  font-size: 26px;
  line-height: .8;
  transform: translateY(-1px);
}

.comment-feed-head h3 span {
  font-size: inherit !important;
  font-weight: inherit !important;
}

.comment-sort {
  display: inline-flex;
  gap: 7px;
}

.comment-sort button {
  min-height: 31px;
  border: 1px solid #e4ded3;
  border-radius: 999px;
  background: #fff;
  color: #5f584d;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
  cursor: default;
}

.comment-sort button.active {
  border-color: #eee8dc;
  background: #f4f1eb;
  color: #211d17;
}

.comment-feed .comment-list {
  display: grid;
  gap: 0;
}

.comment-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 11px;
  padding: 16px 0 !important;
  border-bottom: 1px solid #f0ece4 !important;
}

.comment-avatar,
.compose-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eee9df;
  color: #776f63;
  font-size: 17px;
  font-weight: 900;
  flex: 0 0 auto;
}

.comment-body {
  min-width: 0;
}

.comment-item .comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 23px;
}

.comment-author {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.comment-author strong {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #211d17;
  font-size: 14px !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  letter-spacing: -.03em;
}

.comment-author em {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  background: #ee5b5d;
  color: #fff;
  font-size: 10px !important;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.comment-body p {
  margin: 5px 0 7px !important;
  color: #312d27;
  font-size: 15px !important;
  line-height: 1.38 !important;
  font-weight: 720;
  letter-spacing: -.035em;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #969086;
}

.comment-meta time {
  color: inherit !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 760;
}

.comment-meta button {
  border: 0;
  background: transparent;
  color: #8b857b;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}

.comment-like {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  padding-top: 20px;
  color: #918b82;
}

.comment-like button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #726c63;
  padding: 0;
  font-size: 25px;
  line-height: 1;
}

.comment-like span {
  min-height: 14px;
  color: #918b82;
  font-size: 11px !important;
  font-weight: 800;
}

.comment-feed .comment-actions {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 3px !important;
}

.comment-feed .comment-actions button {
  min-height: 18px !important;
  padding: 0 4px !important;
  border: 1px solid #e6e0d6;
  border-radius: 4px !important;
  background: #fff;
  color: #7d766b;
  font-size: 8px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.comment-compose {
  min-height: 58px;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 50px !important;
  align-items: center;
  gap: 9px !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid #ece6dc;
  border-radius: 999px !important;
  background: #f7f4ee;
}

.comment-compose .compose-avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
  background: #e8dfd2;
}

.comment-compose input {
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  color: #211d17;
  font-size: 14px !important;
  font-weight: 750;
  outline: 0;
}

.comment-compose input::placeholder {
  color: #928b80;
  font-size: 14px !important;
}

.comment-compose button[type="submit"] {
  min-height: 34px;
  border: 0;
  border-radius: 999px !important;
  background: var(--kb-yellow);
  color: #211d17;
  padding: 0 10px;
  font-size: 13px !important;
  font-weight: 950 !important;
}

.comment-feed .empty-comments {
  min-height: 64px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px dashed #e6e0d6;
  border-radius: 10px;
  color: #918b82;
  background: #fbfaf7;
  font-size: 12px !important;
  font-weight: 760;
}

@media (max-width: 440px) {
  .comment-feed-head {
    align-items: flex-start;
  }

  .comment-sort button {
    min-height: 29px;
    padding: 0 10px;
    font-size: 11px;
  }

  .comment-item {
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    gap: 9px;
  }

  .comment-avatar {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .comment-author strong {
    max-width: 122px;
  }
}

/* 2026-06-29 comment actions and result count tune */
.comment-feed .comment-actions {
  margin-left: auto !important;
  justify-content: flex-end !important;
}

.comment-feed .comment-actions button {
  font-size: 9px !important;
  min-height: 20px !important;
  padding: 1px 5px !important;
}

.comment-like button {
  cursor: pointer;
}

.comment-like button.active {
  color: #e64242 !important;
}

.comment-like button.active + span {
  color: #e64242 !important;
}

.comment-compose {
  border-radius: 12px !important;
}

.comment-compose input {
  border-radius: 8px !important;
}

.comment-compose button[type="submit"] {
  border-radius: 8px !important;
}

.detail-back-button {
  margin-top: 24px !important;
  font-size: 15px !important;
}

.similar-card em {
  font-size: 12px !important;
}

#resultCount {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: var(--kb-gray) !important;
  letter-spacing: -.03em;
}

.results-head .section-kicker {
  margin-bottom: 2px !important;
  line-height: 1 !important;
}

.results-head h2 {
  line-height: 1.08 !important;
}

/* 2026-06-29 active detail edit/delete */
.detail-actions {
  justify-content: flex-end !important;
  margin: -2px 0 14px !important;
}

.detail-actions button {
  min-height: 34px !important;
  border-radius: 7px !important;
  padding: 0 13px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.detail-actions button[data-detail-delete] {
  border-color: #ead8d4 !important;
  background: #fff7f5 !important;
  color: #b34332 !important;
}

.detail-edit-panel[hidden] {
  display: none !important;
}

.detail-edit-form {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid #ece6dc;
  border-radius: 9px;
  background: #fbfaf7;
}

.detail-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-edit-head strong {
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: -.035em;
}

.detail-edit-head button {
  border: 0;
  background: transparent;
  color: #81796d;
  font-size: 12px;
  font-weight: 800;
}

.detail-edit-form label {
  display: grid;
  gap: 6px;
  margin: 0 0 11px;
  color: #6f675c;
  font-size: 11px;
  font-weight: 800;
}

.detail-edit-form input {
  width: 100%;
  min-height: 39px;
  border: 1px solid #e3ddd2;
  border-radius: 7px;
  background: #fff;
  padding: 0 11px;
  color: #211d17;
  font-size: 14px;
  font-weight: 720;
}

.detail-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}

.detail-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 4px;
}

.detail-edit-actions button {
  min-height: 36px;
  border: 1px solid #e1dbd0;
  border-radius: 7px;
  background: #fff;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 850;
}

.detail-edit-actions button[type="submit"] {
  border-color: var(--kb-yellow);
  background: var(--kb-yellow);
  color: #211d17;
}

@media (max-width: 440px) {
  .detail-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-06-29 prevent iOS zoom on comment input */
.comment-compose input,
.comment-compose input::placeholder {
  font-size: 16px !important;
}

/* 2026-06-29 prevent iOS zoom on detail edit fields */
.detail-edit-form input,
.detail-edit-form input::placeholder {
  font-size: 16px !important;
}

/* 2026-06-29 detail edit template controls */
.detail-title-builder {
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid #eee7dc;
  border-radius: 8px;
  background: #fffdf8;
}

.detail-edit-form select,
.detail-edit-form input {
  font-size: 16px !important;
}

.detail-edit-form select {
  width: 100%;
  min-height: 39px;
  border: 1px solid #e3ddd2;
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  color: #211d17;
  font-weight: 720;
}

.detail-title-builder .detail-title-attribute-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.detail-title-builder .detail-title-attribute-grid label {
  min-width: 0 !important;
  margin: 0 !important;
  color: #555 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: -.025em !important;
}

.detail-title-builder .detail-title-attribute-grid select {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  min-width: 0 !important;
  padding-left: 7px !important;
  padding-right: 7px !important;
  font-size: 13px !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 4px !important;
  background-color: #fff !important;
  box-shadow: none !important;
}

.detail-generated-title {
  margin-top: 4px;
  padding: 11px;
  border-radius: 7px;
  background: #f5f1e8;
}

.detail-generated-title span {
  display: block;
  color: #81796d;
  font-size: 10px !important;
  font-weight: 800;
}

.detail-generated-title strong {
  display: block;
  margin-top: 3px;
  color: #211d17;
  font-size: 16px !important;
  font-weight: 950 !important;
  letter-spacing: -.04em;
}

.comment-item .comment-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: center !important;
}

.comment-feed .comment-actions {
  justify-self: end !important;
  margin-left: 8px !important;
}

/* 2026-06-29 hard fix upload preview center and comment action column */
.image-uploader {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  place-items: center !important;
  text-align: center !important;
}

.image-uploader-copy,
.upload-status {
  justify-self: center !important;
  align-self: center !important;
  text-align: center !important;
}

.upload-preview,
.preview-frame {
  width: min(100%, 520px) !important;
  margin-inline: auto !important;
  justify-self: center !important;
  align-self: center !important;
  display: grid !important;
  place-items: center !important;
  justify-items: center !important;
  align-items: center !important;
  text-align: center !important;
}

.preview-frame > span {
  width: 100% !important;
  min-height: inherit !important;
  display: grid !important;
  place-items: center !important;
  justify-self: center !important;
  align-self: center !important;
  padding: 0 !important;
  text-align: center !important;
}

.preview-grid {
  width: 100% !important;
  height: 100% !important;
  margin-inline: auto !important;
  justify-self: center !important;
  align-self: center !important;
  justify-content: center !important;
  align-content: center !important;
  justify-items: center !important;
  align-items: center !important;
  place-items: center !important;
}

.preview-grid.single {
  grid-template-columns: minmax(0, min(300px, 100%)) !important;
}

.preview-grid img {
  display: block !important;
  margin-inline: auto !important;
}

.comment-item .comment-head {
  grid-template-columns: minmax(0, 1fr) !important;
}

.comment-like {
  justify-items: end !important;
  align-content: start !important;
  padding-top: 0 !important;
  gap: 3px !important;
}

.comment-like .comment-actions,
.comment-feed .comment-like .comment-actions {
  width: max-content !important;
  min-height: 0 !important;
  display: inline-flex !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  align-self: start !important;
  gap: 3px !important;
  margin: 0 0 4px !important;
  color: inherit !important;
}

.comment-like .comment-actions button,
.comment-feed .comment-like .comment-actions button {
  min-height: 20px !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  line-height: 1 !important;
}

.comment-like > button,
.comment-like > span:not(.comment-actions) {
  justify-self: end !important;
}

/* 2026-06-29 keep comment edit/delete inside the like column */
.comment-item {
  grid-template-columns: 42px minmax(0, 1fr) 32px !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.comment-like {
  width: 32px !important;
  max-width: 32px !important;
  overflow: visible !important;
}

.comment-like .comment-actions,
.comment-feed .comment-like .comment-actions {
  width: 32px !important;
  max-width: 32px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: end !important;
  gap: 2px !important;
  margin: 0 0 3px !important;
}

.comment-like .comment-actions button,
.comment-feed .comment-like .comment-actions button {
  width: 30px !important;
  min-width: 0 !important;
  min-height: 19px !important;
  padding: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* 2026-06-29 create image manual centering controls */
.image-adjust-controls {
  margin: -8px 0 20px;
  padding: 12px;
  border: 1px solid #eee7dc;
  border-radius: 8px;
  background: #fffdf8;
}

.image-adjust-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.image-adjust-head strong {
  color: #211d17;
  font-size: 13px;
  font-weight: 900;
}

.image-adjust-head span {
  color: #81796d;
  font-size: 11px;
  font-weight: 800;
}

.image-adjust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.image-adjust-row button {
  min-height: 36px;
  border: 1px solid #e1dbd0;
  border-radius: 7px;
  background: #fff;
  color: #211d17;
  font-size: 12px;
  font-weight: 850;
}

.image-adjust-help {
  margin: 9px 0 0;
  color: #81796d;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.preview-grid img.selected {
  outline: 3px solid var(--kb-yellow);
  outline-offset: 2px;
}

/* 2026-06-30 representative photo upload */
.preview-item,
.detail-preview-item {
  position: relative;
  width: 100%;
  touch-action: none;
  user-select: none;
  transition: transform .16s ease, opacity .16s ease;
}

.preview-item img,
.detail-preview-item img {
  display: block;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  border: 1px solid #eee9df;
  border-radius: 6px;
  background: #fff;
  -webkit-user-drag: none;
}

.preview-item > span,
.detail-preview-item > span {
  position: absolute;
  left: 7px;
  top: 7px;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: rgba(37, 34, 28, .78);
  color: #fff;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.preview-item.representative > span,
.detail-preview-item.representative > span {
  background: var(--kb-yellow);
  color: #211d17;
}

.preview-item.selected img,
.detail-preview-item.representative img {
  outline: 3px solid var(--kb-yellow);
  outline-offset: 2px;
}

.preview-item.dragging,
.detail-preview-item.dragging {
  z-index: 5;
}

.preview-item.is-reordering,
.detail-preview-item.is-reordering {
  opacity: .88;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.2));
}

.detail-image-preview:empty {
  display: none;
}

.detail-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 86px));
  gap: 8px;
  justify-content: start;
  align-items: start;
  margin: 2px 0 7px;
}

.detail-image-preview em {
  display: block;
  margin: 3px 0 9px;
  color: #81796d;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.45;
}

/* 2026-06-30 list/detail/social/storage polish */
.popular,
.popular button {
  font-size: 13px !important;
}

.active-filters {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding-bottom: 4px !important;
  -webkit-overflow-scrolling: touch;
}

.active-filters button {
  flex: 0 0 auto !important;
  max-width: none !important;
  min-height: 28px !important;
  padding: 5px 9px !important;
  border-color: #5f584d !important;
  background: #3f3a32 !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.lot-topline {
  align-items: flex-start !important;
  margin-bottom: 7px !important;
}

.archive-number {
  display: inline-block !important;
  color: #37332d !important;
  font-size: 15px !important;
  line-height: 1 !important;
  letter-spacing: -.015em !important;
  transform: translateY(5px);
}

.lot-update-cluster {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: 0;
}

.lot-update-cluster time {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 26px !important;
  padding: 5px 8px !important;
  border-radius: 5px !important;
  background: #f4f1eb !important;
  color: #6a6257 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

.lot-update-cluster .record-type,
.detail-source-badge {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 26px !important;
  padding: 5px 9px !important;
  border-radius: 5px !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.art-image > .record-type,
.art-image > .save-card {
  display: none !important;
}

.lot-main {
  align-items: start !important;
}

.lot-media {
  width: 216px;
  max-width: 100%;
  display: grid;
  gap: 7px;
}

.lot-media .art-image {
  width: 100% !important;
}

.card-meta h3 {
  padding-top: 6px !important;
  margin-top: 0 !important;
  line-height: 1.18 !important;
  overflow: visible !important;
}

.lot-facts {
  gap: 5px 13px !important;
  margin-top: 4px !important;
}

.card-social {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  min-height: 43px;
  padding: 6px 0 1px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.card-social button,
.card-social span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #2f2c27;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.card-social .social-action svg {
  width: 27px;
  height: 27px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-social .social-action span {
  color: inherit;
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}

.card-social button.active {
  color: #2f2c27;
}

.card-social button:first-child.active,
.card-social button:first-child.active span {
  color: #e13225;
}

.card-social button:first-child.active svg {
  fill: currentColor;
}

.card-social button[data-save].active svg {
  fill: currentColor;
}

.card-social button[data-save].active,
.card-social button[data-save].active span {
  color: #ffbc00;
}

/* 2026-06-30 prevent list media from invading description */
.lot-card {
  overflow: hidden !important;
}

.lot-main {
  grid-template-columns: minmax(0, 216px) minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: start !important;
  overflow: hidden !important;
}

.lot-media {
  width: 216px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.lot-media .art-image,
.lot-card .art-image {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  min-width: 0 !important;
}

.card-meta {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .lot-main {
    grid-template-columns: minmax(0, 152px) minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .lot-media {
    width: 152px !important;
  }

  .card-social {
    justify-content: flex-start !important;
    gap: 10px !important;
    min-height: 38px !important;
  }

  .card-social .social-action svg {
    width: 24px !important;
    height: 24px !important;
  }

  .card-social .social-action span {
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  .lot-main {
    grid-template-columns: minmax(0, 138px) minmax(0, 1fr) !important;
    gap: 11px !important;
  }

  .lot-media {
    width: 138px !important;
  }

  .card-social .social-action svg {
    width: 22px !important;
    height: 22px !important;
  }

  .card-social .social-action span {
    font-size: 14px !important;
  }
}

.comment-item {
  grid-template-columns: 42px minmax(0, 1fr) 66px !important;
}

.comment-like {
  width: 66px !important;
  max-width: 66px !important;
  justify-items: end !important;
}

.comment-like .comment-actions,
.comment-feed .comment-like .comment-actions {
  width: max-content !important;
  max-width: none !important;
  display: inline-flex !important;
  grid-template-columns: none !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  gap: 3px !important;
  margin: 0 0 5px !important;
}

.comment-like .comment-actions button,
.comment-feed .comment-like .comment-actions button {
  width: auto !important;
  min-width: 28px !important;
  padding: 1px 5px !important;
}

.detail-source-row {
  display: flex;
  justify-content: flex-start;
  margin: 22px 0 9px;
}

.detail-source-badge {
  min-height: 30px !important;
  padding: 7px 11px !important;
  font-size: 13px !important;
}

.detail-image-edit {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #eee8df;
  border-radius: 7px;
  background: #fffdf8;
}

.detail-image-edit label {
  display: grid;
  gap: 7px;
  color: #2d2821;
  font-size: 13px;
  font-weight: 850;
}

.detail-image-edit input {
  width: 100%;
  font-size: 16px;
}

.detail-image-edit small {
  color: #81796d;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

/* 2026-06-30 force visible image breathing room */
.lot-card .art-image img.record-photo {
  width: 90% !important;
  height: 90% !important;
  object-fit: contain !important;
  object-position: center 57% !important;
  transform: translateY(7%) !important;
  margin: auto !important;
}

.detail-drawer .detail-visual img.record-photo,
.detail-drawer .detail-visual img.detail-photo {
  width: 90% !important;
  height: 90% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}

.preview-item img,
.detail-preview-item img {
  object-fit: contain !important;
}

/* 2026-07-01 list/detail interaction polish */
.mobile-filter-toggle {
  border-color: #20201d !important;
  background: #20201d !important;
  color: #ffbc00 !important;
  box-shadow: 0 8px 20px rgba(32, 32, 29, .12);
}

.mobile-filter-toggle::after {
  color: #ffbc00 !important;
}

.lot-facts {
  gap: 7.3px 13px !important;
  margin-top: 5.3px !important;
  line-height: 1.23 !important;
}

.lot-facts div,
.lot-facts dt,
.lot-facts dd {
  line-height: 1.23 !important;
}

.card-meta h3 {
  margin-bottom: 6.1px !important;
}

.card-social {
  justify-content: center !important;
  gap: 12.35px !important;
  width: 100% !important;
  min-height: 34px !important;
  padding: 2px 0 1px !important;
  margin-top: 0 !important;
}

.card-social .social-action {
  gap: 4.75px !important;
}

.card-social .social-action span {
  color: #5f5a52 !important;
}

.lot-media {
  gap: 6.9px !important;
  margin-top: clamp(26px, 3.6vw, 42px) !important;
}

@media (max-width: 720px) {
  .lot-media {
    margin-top: 28px !important;
    gap: 6.8px !important;
  }

  .card-social {
    justify-content: center !important;
    gap: 9.5px !important;
    min-height: 32px !important;
    padding: 2px 0 1px !important;
    margin-top: 0 !important;
  }
}

/* 2026-07-02 profile, cutout toggle, and list/detail polish */
.lot-card .art-image,
.detail-drawer .detail-visual {
  background: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

.lot-card .card-meta h3,
.lot-card:hover .card-meta h3,
.lot-card:focus-within .card-meta h3 {
  color: #20201d !important;
}

.lot-update-cluster time {
  background: transparent !important;
  border: 1px solid rgba(32, 32, 29, .16) !important;
  color: #5f5a52 !important;
  font-weight: 500 !important;
  letter-spacing: -.055em !important;
  font-variant-numeric: tabular-nums !important;
  border-radius: 6px !important;
  padding: 6px 9px !important;
}

.lot-media {
  margin-top: clamp(22px, 3.1vw, 38px) !important;
  gap: 6px !important;
}

.card-social {
  transform: translateY(-2px);
}

.card-social .social-action.active,
.card-social .social-action.active span {
  color: #20201d !important;
}

.card-social .social-action.active[data-record-like] svg {
  color: #ef3b2d !important;
}

.card-social .social-action.active[data-save] svg {
  color: #ffbc00 !important;
}

.cutout-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee8df;
  font-size: 13px;
  font-weight: 800;
  color: #4c463d;
}

.cutout-toggle button {
  border: 1px solid #d9d2c6;
  background: #fff;
  border-radius: 999px;
  min-width: 72px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 3px 8px 3px 4px;
  font-size: 10px;
  font-weight: 900;
  color: #8b8276;
  cursor: pointer;
}

.cutout-toggle button i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d9d2c6;
  display: block;
}

.cutout-toggle button.on {
  background: #201c17;
  border-color: #201c17;
  color: #ffbc00;
}

.cutout-toggle button.on i {
  background: #ffbc00;
}

.cutout-toggle button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.detail-actions[hidden] {
  display: none !important;
}

.detail-edit-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.detail-edit-actions-top {
  margin: 0 !important;
  justify-content: flex-end !important;
}

.detail-edit-actions-top button {
  min-width: 72px !important;
  height: 36px !important;
}

.detail-edit-form select {
  min-height: 45px;
}

.profile-view {
  padding-bottom: 160px !important;
}

.profile-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid #eee8df;
  background: #fffdf8;
  padding: 24px;
  margin-top: 24px;
}

.profile-avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  background: #201c17;
  color: #ffbc00;
  font-family: var(--serif);
  font-size: 34px;
}

.profile-avatar.has-image {
  overflow: hidden;
  background: #f4f4f4;
  color: transparent;
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h2 {
  margin: 0 0 8px !important;
}

.profile-card p {
  margin: 0;
  color: #7b7469;
  font-weight: 700;
}

.profile-card .profile-submeta {
  margin-top: 6px;
  color: #111;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}

.profile-card .profile-submeta strong {
  font-weight: 700;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #eee8df;
  border-top: 0;
}

.profile-stats div {
  padding: 22px;
  border-right: 1px solid #eee8df;
}

.profile-stats div:last-child {
  border-right: 0;
}

.profile-stats strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.04em;
}

.profile-stats span {
  color: #8b8276;
  font-size: 12px;
  font-weight: 700;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.profile-settings {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #e8e8e8;
  background: #fff;
}

.profile-settings h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: 18px;
  letter-spacing: -.04em;
}

.profile-settings p {
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.65;
}

.profile-settings form {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.profile-settings label {
  margin: 0;
  color: #777;
  font-size: 11px;
  font-weight: 650;
}

.profile-settings select,
.profile-settings input {
  min-height: 42px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  font-size: 14px;
}

.profile-settings button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #111;
  background: #3b3936;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.profile-settings small {
  color: #999;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .lot-media {
    margin-top: 24px !important;
    gap: 5px !important;
  }

  .profile-card {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 20px;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-stats div {
    border-right: 1px solid #eee8df;
    border-bottom: 1px solid #eee8df;
  }

  .profile-stats div:nth-child(2n) {
    border-right: 0;
  }

  .profile-stats div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .profile-stats div:last-child {
    border-bottom: 0;
  }

  .profile-settings {
    padding: 20px;
  }

  .profile-settings form {
    grid-template-columns: 1fr;
  }
}

/* 2026-07-02 social row micro adjustment */
.card-social {
  transform: translateY(-4px) !important;
}

.card-social .social-action span {
  font-weight: 500 !important;
}

/* 2026-07-02 black-and-white minimal tone */
:root {
  --kb-yellow: #111111;
  --kb-yellow-soft: #f5f5f5;
  --kb-gray: #111111;
  --kb-dark-gray: #111111;
  --kb-line: #e8e8e8;
  --accent: #111111;
  --gold: #111111;
  --ink: #111111;
  --muted: #707070;
  --line: #e6e6e6;
  --paper: #ffffff;
}

body {
  color: #111 !important;
  background: #fff !important;
}

.site-header {
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, .96) !important;
}

.site-header .brand {
  gap: 10px !important;
  color: #111 !important;
  letter-spacing: -.045em !important;
}

.site-header .brand-mark,
.brand-mark {
  width: auto !important;
  height: auto !important;
  flex-basis: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111 !important;
  box-shadow: none !important;
  font-family: var(--serif) !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: .86 !important;
  transform: translateY(-1px);
}

.site-header .brand-title {
  font-weight: 650 !important;
}

.site-header .brand .brand-short {
  color: #111 !important;
  font-weight: 300 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase;
}

.nav-link,
.admin-button,
.manage-button,
.role-badge,
.login-button {
  color: #111 !important;
  background: transparent !important;
  border-color: #3b3936 !important;
  box-shadow: none !important;
}

.role-badge[data-role="admin"],
.role-badge[data-role="dealer"] {
  color: #fff !important;
  background: #3b3936 !important;
  border-color: #3b3936 !important;
}

.hero {
  background: #fff !important;
  border-bottom: 1px solid #eee !important;
  padding-top: clamp(54px, 7vw, 96px) !important;
  padding-bottom: clamp(42px, 5.8vw, 78px) !important;
}

.eyebrow,
.section-kicker {
  color: #111 !important;
  letter-spacing: .42em !important;
  font-weight: 800 !important;
}

.eyebrow span {
  background: #3b3936 !important;
}

.hero h1 {
  color: #111 !important;
  font-weight: 400 !important;
  letter-spacing: -.075em !important;
  line-height: 1.45 !important;
}

.hero h1 em {
  color: #111 !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

.hero > p {
  color: #666 !important;
  font-weight: 400 !important;
}

.search-wrap {
  border-color: #161616 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  background: #fff !important;
}

.search-wrap svg {
  stroke: #111 !important;
}

.search-wrap input,
.search-wrap input::placeholder {
  color: #111 !important;
}

.search-wrap input::placeholder {
  color: #999 !important;
}

.search-wrap button,
.apply-filter,
.primary-link,
.form-actions button[type="submit"],
.detail-edit-actions button[type="submit"],
.comment-compose button[type="submit"],
.comment-form button {
  background: #3b3936 !important;
  border-color: #3b3936 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.search-wrap button::after {
  content: " →";
  font-weight: 400;
}

.shortcut {
  color: #777 !important;
  border-color: #d8d8d8 !important;
  background: #fff !important;
}

.popular {
  color: #707070 !important;
}

.popular button {
  color: #111 !important;
  font-weight: 500 !important;
}

.mobile-filter-toggle {
  border-color: #3b3936 !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.mobile-filter-toggle::after {
  content: "+";
  color: #111 !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  line-height: 1;
}

.mobile-filter-toggle[aria-expanded="true"]::after {
  content: "−";
}

.filters,
 .management-card,
 .profile-card,
 .profile-settings,
 .profile-stats,
.detail-edit-form,
.title-builder,
.generated-title,
.image-uploader,
.upload-preview,
.preview-frame,
.detail-image-edit,
.comment-compose,
.comment-feed .empty-comments {
  background: #fff !important;
  border-color: #e8e8e8 !important;
  box-shadow: none !important;
}

.filter-group,
.comment-feed,
.comment-item,
.detail-table,
.detail-table div,
.profile-stats div,
.lot-card {
  border-color: #e8e8e8 !important;
}

.chip,
.tag-cloud button,
.result-tools button,
.result-tools select,
.active-filters button,
.social-login-grid button,
.role-options button,
.guest-link,
.detail-actions button,
.row-actions button,
.form-actions button,
.comment-sort button,
.image-adjust-row button,
.detail-edit-actions button {
  background: #fff !important;
  border-color: #d9d9d9 !important;
  color: #111 !important;
  box-shadow: none !important;
}

.chip.active,
.tag-cloud button.active,
.role-options button.active,
.comment-sort button.active,
.active-filters button {
  background: #3b3936 !important;
  border-color: #3b3936 !important;
  color: #fff !important;
}

.result-tools button,
.result-tools select {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}

.result-tools button:first-child {
  border-left-color: #d9d9d9 !important;
}

.results-head h2,
.simple-view h2,
.card-meta h3,
.detail-drawer h2,
.comment-feed-head h3,
.profile-card h2 {
  color: #111 !important;
  font-weight: 650 !important;
  letter-spacing: -.065em !important;
}

#resultCount {
  color: #777 !important;
  font-weight: 400 !important;
}

.archive-number,
.lot-facts dd,
.price-row strong,
.detail-price,
.profile-stats strong,
.similar-card em {
  color: #111 !important;
}

.lot-facts dt,
.price-row span,
.lot-update-cluster time,
.detail-table span,
.profile-stats span,
.comment-meta,
.comment-meta time {
  color: #777 !important;
}

.lot-update-cluster time {
  border-color: #d9d9d9 !important;
  background: #fff !important;
}

.lot-update-cluster .record-type,
.detail-source-badge,
.record-type,
.record-type.private,
.record-type.auction {
  background: #3b3936 !important;
  color: #fff !important;
  border-color: #3b3936 !important;
}

.lot-card:hover h3,
.lot-card:focus-within h3 {
  color: #111 !important;
}

.lot-card .art-image,
.detail-drawer .detail-visual,
.similar-card span,
.preview-grid img,
.preview-item img,
.detail-preview-item img {
  border-color: #fff !important;
  background: #fff !important;
  box-shadow: none !important;
}

.card-social .social-action,
.card-social .social-action span,
.card-social .social-action.active,
.card-social .social-action.active span {
  color: #1b1b1b !important;
  font-weight: 400 !important;
}

.card-social .social-action svg {
  stroke-width: 1.75 !important;
}

.card-social .social-action.active svg,
.card-social button:first-child.active svg,
.card-social button[data-save].active svg {
  color: #111 !important;
  fill: currentColor !important;
}

nav.bottom-tabbar,
.bottom-tabbar {
  left: 0 !important;
  right: 0 !important;
  bottom: env(safe-area-inset-bottom) !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 78px !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-color: #ededed !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: none !important;
}

nav.bottom-tabbar .bottom-tab,
.bottom-tab {
  color: #111 !important;
  font-weight: 400 !important;
}

.bottom-tab svg {
  stroke-width: 1.7 !important;
}

nav.bottom-tabbar .bottom-tab > span:not(.tabbar-badge),
.bottom-tab > span:not(.tabbar-badge) {
  font-weight: 500 !important;
  letter-spacing: .08em !important;
}

.bottom-tab.active::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 0;
  background: #3b3936;
  display: block;
  margin-top: 2px;
}

.tabbar-badge {
  background: #3b3936 !important;
  color: #fff !important;
}

.drawer-close,
.dialog-close,
.detail-back-button {
  background: #3b3936 !important;
  color: #fff !important;
  border-color: #3b3936 !important;
  box-shadow: none !important;
}

.drawer-close:hover,
.dialog-close:hover,
.detail-back-button:hover {
  background: #fff !important;
  color: #111 !important;
  border-color: #3b3936 !important;
}

.comment-like button.active,
.comment-like button.active + span {
  color: #111 !important;
}

.comment-author em,
.saved-count {
  background: #3b3936 !important;
  color: #fff !important;
}

.preview-item.representative > span,
.detail-preview-item.representative > span,
.upload-status,
.scope-pill.allowed {
  background: #3b3936 !important;
  color: #fff !important;
}

.preview-item.selected img,
.detail-preview-item.representative img {
  outline-color: #4b4945 !important;
}

.profile-avatar {
  background: #3b3936 !important;
  color: #fff !important;
}

.cutout-toggle button.on {
  background: #3b3936 !important;
  border-color: #3b3936 !important;
  color: #fff !important;
}

.cutout-toggle button.on i,
.cutout-toggle button i {
  background: #fff !important;
  border: 1px solid #111;
}

.price-chart stop:first-child {
  stop-color: #111 !important;
}

.price-chart stop:last-child {
  stop-color: #111 !important;
}

.price-chart polyline {
  stroke: #111 !important;
}

.price-chart circle {
  stroke: #111 !important;
}

.paging-loader {
  color: #111 !important;
}

.paging-loader span {
  border-color: #e5e5e5 !important;
  border-top-color: #111 !important;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 48px !important;
  }

  .site-header .brand-mark,
  .brand-mark {
    font-size: 30px !important;
  }

  nav.bottom-tabbar,
  .bottom-tabbar {
    min-height: 76px !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 440px) {
  .site-header .brand-mark,
  .brand-mark {
    font-size: 27px !important;
  }

  .hero h1 {
    font-size: 31px !important;
  }
}

/* 2026-07-02 closer reference mobile composition */
@media (max-width: 720px) {
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .site-header {
    height: 178px !important;
    align-items: flex-start !important;
    padding: 54px 28px 0 !important;
    border-bottom: 0 !important;
    background: #fff !important;
  }

  .site-header nav,
  .site-header .header-actions {
    display: none !important;
  }

  .site-header::after {
    content: "☰";
    position: absolute;
    right: 30px;
    top: 92px;
    color: #111;
    font-size: 31px;
    font-weight: 200;
    line-height: 1;
    letter-spacing: -.08em;
  }

  .site-header .brand {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    align-items: start !important;
    padding: 0 !important;
    max-width: 160px !important;
    text-decoration: none !important;
  }

  .site-header .brand-title {
    display: none !important;
  }

  .site-header .brand-mark,
  .brand-mark {
    display: inline-flex !important;
    align-items: flex-start !important;
    width: max-content !important;
    color: #111 !important;
    font-size: 56px !important;
    font-weight: 900 !important;
    line-height: .72 !important;
    letter-spacing: -.08em !important;
  }

  .site-header .brand-mark::after,
  .brand-mark::after {
    content: ".";
    margin-left: 5px;
    font-size: .72em;
    line-height: .86;
  }

  .site-header .brand .brand-short {
    display: block !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: .46em !important;
    text-transform: uppercase !important;
    transform: none !important;
  }

  .hero {
    padding: 54px 27px 32px !important;
    border-bottom: 1px solid #ededed !important;
  }

  .eyebrow {
    gap: 0 !important;
    margin: 0 0 28px !important;
    font-size: 10px !important;
    letter-spacing: .46em !important;
    line-height: 1.5 !important;
  }

  .eyebrow span {
    display: none !important;
  }

  .hero h1 {
    margin: 0 !important;
    font-size: 35px !important;
    line-height: 1.55 !important;
    font-weight: 360 !important;
    letter-spacing: -.082em !important;
  }

  .hero > p {
    max-width: 330px;
    margin: 22px 0 34px !important;
    color: #666 !important;
    font-size: 17px !important;
    line-height: 1.78 !important;
    font-weight: 400 !important;
    word-break: keep-all;
  }

  .search-wrap {
    height: 72px !important;
    max-width: none !important;
    padding-left: 24px !important;
    border: 1px solid #191919 !important;
    border-radius: 8px !important;
  }

  .search-wrap svg {
    width: 29px !important;
    height: 29px !important;
    stroke-width: 1.6 !important;
  }

  .search-wrap input,
  .search-wrap input::placeholder {
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  .shortcut {
    display: none !important;
  }

  .search-wrap button {
    align-self: stretch !important;
    width: 94px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 6px 6px 0 !important;
    font-size: 17px !important;
    font-weight: 550 !important;
  }

  .popular {
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    margin-top: 28px !important;
    overflow-x: auto !important;
    color: #555 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    scrollbar-width: none;
  }

  .popular::-webkit-scrollbar {
    display: none;
  }

  .popular button {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 550 !important;
    white-space: nowrap !important;
  }

  .workspace {
    padding: 28px 27px 96px !important;
  }

  .mobile-filter-toggle {
    min-height: 64px !important;
    margin: 0 0 32px !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-bottom: 2px solid #111 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 19px !important;
    font-weight: 550 !important;
    letter-spacing: -.04em !important;
  }

  .mobile-filter-toggle::after {
    font-size: 30px !important;
    font-weight: 200 !important;
  }

  .filters {
    border-radius: 0 !important;
  }

  .results-head {
    grid-template-columns: 1fr !important;
    row-gap: 8px !important;
    align-items: end !important;
  }

  .results-head .section-kicker {
    margin: 0 0 16px !important;
    font-size: 11px !important;
    letter-spacing: .44em !important;
  }

  .results-head h2 {
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 650 !important;
    letter-spacing: -.075em !important;
  }

  #resultCount {
    margin-left: 4px !important;
    font-size: 25px !important;
    font-weight: 300 !important;
    color: #777 !important;
  }

  .result-tools {
    width: 100% !important;
    justify-content: flex-end !important;
    transform: translateY(-2px) !important;
  }

  .result-tools button,
  .result-tools select {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    border-color: #d8d8d8 !important;
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }

  .active-filters {
    margin-top: 24px !important;
  }

  .card-grid {
    margin-top: 34px !important;
  }

  .lot-topline {
    margin-bottom: 10px !important;
  }

  .lot-main {
    grid-template-columns: minmax(0, 152px) minmax(0, 1fr) !important;
    gap: 15px !important;
  }

  .lot-media {
    margin-top: 12px !important;
    gap: 3px !important;
  }

  .card-social {
    transform: translateY(-7px) !important;
    min-height: 29px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  nav.bottom-tabbar,
  .bottom-tabbar {
    min-height: 76px !important;
    padding: 8px 14px calc(9px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #e8e8e8 !important;
  }
}

@media (max-width: 440px) {
  .site-header {
    height: 170px !important;
    padding: 50px 27px 0 !important;
  }

  .site-header::after {
    right: 28px;
    top: 88px;
    font-size: 30px;
  }

  .site-header .brand-mark,
  .brand-mark {
    font-size: 52px !important;
  }

  .hero {
    padding-top: 50px !important;
  }

  .hero h1 {
    font-size: 33px !important;
  }

  .lot-main {
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr) !important;
    gap: 13px !important;
  }

  .lot-media {
    margin-top: 10px !important;
  }
}

/* 2026-07-02 refined minimal mobile scale */
@media (max-width: 720px) {
  .site-header {
    height: 132px !important;
    padding: 34px 28px 0 !important;
  }

  .site-header::after {
    right: 30px !important;
    top: 68px !important;
    font-size: 25px !important;
    font-weight: 200 !important;
    letter-spacing: 0 !important;
  }

  .site-header .brand {
    max-width: 118px !important;
    gap: 4px !important;
  }

  .site-header .brand-mark,
  .brand-mark {
    font-size: 38px !important;
    line-height: .72 !important;
    font-weight: 800 !important;
    letter-spacing: -.12em !important;
  }

  .site-header .brand-mark::after,
  .brand-mark::after {
    margin-left: 4px !important;
    font-size: .62em !important;
    line-height: .92 !important;
  }

  .site-header .brand .brand-short {
    font-size: 8.5px !important;
    font-weight: 400 !important;
    letter-spacing: .42em !important;
  }

  .hero {
    padding: 38px 27px 28px !important;
  }

  .eyebrow {
    margin-bottom: 28px !important;
    font-size: 8.5px !important;
    letter-spacing: .42em !important;
    font-weight: 800 !important;
  }

  .hero h1 {
    font-size: 28px !important;
    line-height: 1.58 !important;
    font-weight: 350 !important;
    letter-spacing: -.085em !important;
  }

  .hero h1 em {
    font-weight: 350 !important;
  }

  .hero > p {
    max-width: 340px !important;
    margin: 22px 0 32px !important;
    font-size: 14.5px !important;
    line-height: 1.9 !important;
    color: #666 !important;
    font-weight: 400 !important;
  }

  .search-wrap {
    height: 58px !important;
    padding-left: 20px !important;
    border-radius: 7px !important;
  }

  .search-wrap svg {
    width: 24px !important;
    height: 24px !important;
  }

  .search-wrap input {
    background: transparent !important;
    border: 0 !important;
    padding-left: 16px !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    -webkit-appearance: none;
    appearance: none;
  }

  .search-wrap input::placeholder {
    color: #8f8f8f !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
  }

  .search-wrap button {
    width: 78px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
  }

  .popular {
    gap: 19px !important;
    margin-top: 24px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
  }

  .popular button {
    font-size: 13px !important;
    font-weight: 550 !important;
  }

  .workspace {
    padding-top: 30px !important;
  }

  .mobile-filter-toggle {
    min-height: 56px !important;
    margin-bottom: 28px !important;
    font-size: 17px !important;
    font-weight: 500 !important;
  }

  .mobile-filter-toggle::after {
    font-size: 25px !important;
    font-weight: 200 !important;
  }

  .results-head .section-kicker {
    margin-bottom: 12px !important;
    font-size: 9px !important;
    letter-spacing: .42em !important;
  }

  .results-head h2 {
    font-size: 23px !important;
    line-height: 1.22 !important;
    font-weight: 600 !important;
  }

  #resultCount {
    font-size: 22px !important;
    font-weight: 300 !important;
  }

  .result-tools button,
  .result-tools select {
    min-height: 34px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
  }

  .card-grid {
    margin-top: 28px !important;
  }

  .lot-media {
    margin-top: 6px !important;
    gap: 1px !important;
  }

  .card-social {
    transform: translateY(-9px) !important;
  }

  nav.bottom-tabbar,
  .bottom-tabbar {
    min-height: 70px !important;
    padding: 7px 14px calc(7px + env(safe-area-inset-bottom)) !important;
  }

  .bottom-tab svg {
    width: 25px !important;
    height: 25px !important;
    stroke-width: 1.55 !important;
  }

  nav.bottom-tabbar .bottom-tab > span:not(.tabbar-badge),
  .bottom-tab > span:not(.tabbar-badge) {
    font-size: 8px !important;
    font-weight: 450 !important;
    letter-spacing: .12em !important;
  }

  .bottom-tab.active::after {
    width: 25px !important;
    height: 2px !important;
    margin-top: 1px !important;
  }

  .tabbar-badge {
    min-width: 14px !important;
    height: 14px !important;
    font-size: 8px !important;
  }
}

@media (max-width: 440px) {
  .site-header {
    height: 126px !important;
    padding-top: 32px !important;
  }

  .site-header::after {
    top: 65px !important;
  }

  .site-header .brand-mark,
  .brand-mark {
    font-size: 36px !important;
  }

  .hero {
    padding-top: 34px !important;
  }

  .hero h1 {
    font-size: 27px !important;
  }

  .hero > p {
    font-size: 14px !important;
  }
}

/* 2026-07-02 final logo override after legacy brand rules */
@media (max-width: 720px) {
  .site-header a.brand span.brand-short {
    display: block !important;
    color: #111 !important;
    font-size: 8.5px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: .42em !important;
    text-transform: uppercase !important;
    transform: none !important;
  }
}

/* 2026-07-02 ultra-minimal mobile refinement */
@media (max-width: 720px) {
  body,
  button,
  input,
  select,
  textarea {
    font-family: var(--sans) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }

  .site-header {
    height: 138px !important;
    padding: 38px 27px 0 !important;
  }

  .site-header::after {
    right: 31px !important;
    top: 72px !important;
    font-size: 22px !important;
    font-weight: 200 !important;
    transform: scaleX(1.18);
  }

  .site-header .brand {
    max-width: 112px !important;
    gap: 5px !important;
  }

  .site-header .brand-mark,
  .brand-mark {
    width: 76px !important;
    height: 51px !important;
    flex-basis: 76px !important;
    overflow: hidden !important;
    color: transparent !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: left top !important;
    background-size: 76px 51px !important;
    background-image: url("data:image/svg+xml,%3Csvg width='88' height='60' viewBox='0 0 88 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 17.5C34 17.1 51.8 16.3 67.8 16.2' stroke='%23111' stroke-width='4.6' stroke-linecap='round'/%3E%3Cpath d='M43.2 5.4C42.8 17.5 42.8 27.4 42.8 42.8' stroke='%23111' stroke-width='5.4' stroke-linecap='round'/%3E%3Cpath d='M23.3 29.6C37.5 29.3 53.2 29.5 65 29.1' stroke='%23111' stroke-width='4.2' stroke-linecap='round'/%3E%3Cpath d='M24.3 29.8C24.5 39 24.4 46.4 24.7 52.6' stroke='%23111' stroke-width='4.4' stroke-linecap='round'/%3E%3Cpath d='M63.3 29.2C63.2 37.5 63.2 45.6 63.2 52.8' stroke='%23111' stroke-width='4.4' stroke-linecap='round'/%3E%3Cpath d='M25.8 51.7C37.7 51.2 50.8 51.2 62.5 51.4' stroke='%23111' stroke-width='4.5' stroke-linecap='round'/%3E%3Ccircle cx='76.5' cy='30.8' r='3.1' fill='%23111'/%3E%3C/svg%3E") !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transform: none !important;
  }

  .site-header .brand-mark::after,
  .brand-mark::after {
    content: none !important;
  }

  .site-header a.brand span.brand-short {
    font-size: 8px !important;
    font-weight: 300 !important;
    letter-spacing: .48em !important;
  }

  .hero {
    padding: 50px 27px 34px !important;
  }

  .eyebrow {
    margin-bottom: 34px !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: .44em !important;
  }

  .hero h1,
  .hero h1 em {
    color: #111 !important;
    font-family: var(--sans) !important;
    font-size: 30px !important;
    font-weight: 300 !important;
    line-height: 1.52 !important;
    letter-spacing: -.075em !important;
  }

  .hero > p {
    max-width: 335px !important;
    margin: 26px 0 38px !important;
    color: #6b6b6b !important;
    font-size: 14.5px !important;
    font-weight: 300 !important;
    line-height: 1.95 !important;
    letter-spacing: -.035em !important;
  }

  .search-wrap {
    height: 56px !important;
    border-width: 1px !important;
    border-radius: 7px !important;
    padding-left: 20px !important;
    overflow: hidden !important;
  }

  .search-wrap svg {
    width: 23px !important;
    height: 23px !important;
    stroke-width: 1.45 !important;
  }

  .search-wrap input,
  .search-wrap input[type="search"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #fff !important;
    background-color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    min-height: 54px !important;
    outline: none !important;
  }

  .search-wrap input::placeholder {
    color: #9a9a9a !important;
    font-size: 14px !important;
    font-weight: 300 !important;
  }

  .search-wrap button {
    width: 76px !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
  }

  .popular {
    margin-top: 24px !important;
    gap: 20px !important;
    color: #666 !important;
    font-size: 13px !important;
    font-weight: 300 !important;
  }

  .popular button {
    font-size: 13px !important;
    font-weight: 400 !important;
  }

  .workspace {
    padding-top: 31px !important;
  }

  .mobile-filter-toggle {
    min-height: 55px !important;
    border-bottom-width: 1px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  .mobile-filter-toggle::after {
    font-size: 24px !important;
    font-weight: 200 !important;
  }

  .results-head .section-kicker {
    font-size: 8px !important;
    font-weight: 700 !important;
  }

  .results-head h2 {
    font-size: 22px !important;
    font-weight: 400 !important;
    letter-spacing: -.07em !important;
  }

  #resultCount {
    font-size: 21px !important;
    font-weight: 250 !important;
  }

  .lot-media {
    margin-top: 0 !important;
    transform: translateY(-4px) !important;
  }

  .card-social {
    transform: translateY(-13px) !important;
  }

  nav.bottom-tabbar,
  .bottom-tabbar {
    min-height: 66px !important;
    padding: 6px 14px calc(6px + env(safe-area-inset-bottom)) !important;
  }

  .bottom-tab svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 1.35 !important;
  }

  nav.bottom-tabbar .bottom-tab > span:not(.tabbar-badge),
  .bottom-tab > span:not(.tabbar-badge) {
    font-size: 7px !important;
    font-weight: 350 !important;
    letter-spacing: .14em !important;
  }

  .bottom-tab.active::after {
    width: 22px !important;
    height: 1.5px !important;
  }
}

@media (max-width: 440px) {
  .site-header {
    height: 132px !important;
  }

  .hero h1,
  .hero h1 em {
    font-size: 29px !important;
  }
}

/* 2026-07-02 logo and vertical rhythm correction */
@media (max-width: 720px) {
  .site-header {
    height: 118px !important;
    padding-top: 34px !important;
  }

  .site-header::after {
    top: 66px !important;
  }

  .site-header .brand {
    max-width: 114px !important;
    gap: 3px !important;
  }

  .site-header .brand-mark,
  .brand-mark {
    width: 84px !important;
    height: 60px !important;
    flex-basis: 84px !important;
    background-size: 84px 60px !important;
    background-image: url("data:image/svg+xml,%3Csvg width='96' height='68' viewBox='0 0 96 68' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 20.5C27.5 16.9 45.4 18.7 62.8 17.3C70.4 16.7 78.2 16.7 85 18.5C82.1 21.9 78.1 23.5 72.3 23.3C56.1 22.7 39.5 23.6 23.4 25.2C17.8 25.8 13.8 24.3 15 20.5Z' fill='%23111'/%3E%3Cpath d='M45.9 5.3C51.9 4.4 55.3 6.2 54.8 9.6C53.1 21.4 53.7 34.8 53.1 49.8C52.9 54.9 43.1 56.3 42.8 51.1C42.2 37.4 43.4 22.9 45.9 5.3Z' fill='%23111'/%3E%3Cpath d='M22.8 33.5C38.1 30.4 59.4 30.3 74.4 32.5C72.5 36.6 68.5 38.3 62.8 38.1C51.1 37.8 39.1 38.2 27.3 39.6C22.6 40.2 19.8 37.1 22.8 33.5Z' fill='%23111'/%3E%3Cpath d='M24.6 35.4C31.2 36.4 32.7 38.5 32.3 43.4C32 48 32.1 53.4 32.4 58.8C28.2 59.2 24.3 58.5 22.4 56.6C22.6 49.3 22.8 42.6 24.6 35.4Z' fill='%23111'/%3E%3Cpath d='M69.1 34.7C74.5 35.2 76.9 37.2 76.5 41.3C76.1 46.5 75.9 52.1 76.3 58.1C72.4 59.1 68.5 58.6 66.4 56.8C66.7 49.7 67.1 42.7 69.1 34.7Z' fill='%23111'/%3E%3Cpath d='M26.4 56.1C39.4 53.8 58.6 54.1 74.5 55.1C73.3 59.3 69.9 61.5 64.8 61.3C53.4 60.7 42.8 61.3 30.1 62.2C25.8 62.5 23.1 59.2 26.4 56.1Z' fill='%23111'/%3E%3Cpath d='M83.5 33.5C87.2 32.2 90.1 34.1 90.1 37.1C90.1 40.7 85.4 43.1 82.1 40.9C79.4 39 80.2 34.8 83.5 33.5Z' fill='%23111'/%3E%3C/svg%3E") !important;
  }

  .site-header a.brand span.brand-short {
    font-size: 8.2px !important;
    letter-spacing: .46em !important;
  }

  .hero {
    padding-top: 30px !important;
  }

  .search-wrap {
    height: 52px !important;
  }

  .search-wrap input,
  .search-wrap input[type="search"] {
    min-height: 50px !important;
  }

  .search-wrap button {
    width: 74px !important;
  }

  .card-grid {
    margin-top: 18px !important;
  }

  .lot-media {
    transform: translateY(-2px) !important;
  }

  .card-social {
    transform: translateY(-4px) !important;
    margin-top: 2px !important;
  }
}

@media (max-width: 440px) {
  .site-header {
    height: 116px !important;
    padding-top: 32px !important;
  }

  .site-header::after {
    top: 64px !important;
  }

  .hero {
    padding-top: 28px !important;
  }
}

/* 2026-07-02 requested logo, focus, social, and rhythm tweaks */
@media (max-width: 720px) {
  .site-header .brand-mark,
  .brand-mark {
    width: 88px !important;
    height: 72px !important;
    flex-basis: 88px !important;
    background-size: 88px 72px !important;
    filter: blur(.18px) contrast(1.1);
    background-image: url("data:image/svg+xml,%3Csvg width='104' height='82' viewBox='0 0 104 82' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='.45'/%3E%3C/filter%3E%3Cg filter='url(%23b)' fill='%23111'%3E%3Cpath d='M24 23.5c10.2-5.9 29.6-4.2 45.1-5.6 6.5-.6 13.5-1.2 20.5.2-3.9 4.9-8.8 7.1-16.3 6.7-14.2-.8-28.6.1-43.6 2.5-5.9.9-9.2-.4-5.7-3.8Z'/%3E%3Cpath d='M47.3 6.4c7.6-1.9 12.7-.1 12.2 4.5-1.5 13.3-1.2 27.5-1.9 43.2-.2 5.5-10.9 8.4-12.8 3.4-2-5.3-.5-23.7 2.5-51.1Z'/%3E%3Cpath d='M28.3 37.3c13.2-4.7 35.2-5.3 51.2-2.4-3.1 5.5-8.3 7.8-16.4 7.2-11.4-.8-23.6.1-34.8 3.1-7 1.8-9.1-3.9 0-7.9Z'/%3E%3Cpath d='M28 40.7c7.6 1 10.4 3.9 9.7 9.4-.6 4.8-.7 10.4-.2 16.4-4.4 2.1-9.5 1.4-12.5-1.7.1-8 .8-15.9 3-24.1Z'/%3E%3Cpath d='M74.8 38.9c6.2 1.2 9.1 4 8.4 8.6-.8 5.3-.9 11.1-.1 17.6-4.1 2.2-9.6 1.7-12.5-1.1.2-8.6 1.5-16.9 4.2-25.1Z'/%3E%3Cpath d='M28.6 63.2c15.3-5 33.3-3.9 51.2-2.5-2.2 5.6-6.9 8.6-14.7 8.3-10.6-.5-21.7.2-34.8 2.5-6.9 1.2-8.2-4.9-1.7-8.3Z'/%3E%3Cpath d='M88.6 40.8c5.5-1.3 9 1.5 8.8 6.3-.2 5.2-7 8.7-11.4 5.8-4.2-2.7-2.8-10.8 2.6-12.1Z'/%3E%3C/g%3E%3C/svg%3E") !important;
  }

  .site-header a.brand span.brand-short {
    font-family: var(--serif) !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    letter-spacing: .55em !important;
  }

  .hero {
    padding-top: 22px !important;
  }

  .hero h1,
  .hero h1 em {
    line-height: 1.44 !important;
  }

  .hero > p {
    line-height: 1.85 !important;
  }

  .search-wrap,
  .search-wrap:focus,
  .search-wrap:focus-within {
    height: 49px !important;
    min-height: 49px !important;
    transform: none !important;
    zoom: 1 !important;
  }

  .search-wrap input,
  .search-wrap input[type="search"],
  .search-wrap input:focus,
  .search-wrap input[type="search"]:focus {
    min-height: 47px !important;
    font-size: 16px !important;
    transform: none !important;
    zoom: 1 !important;
    -webkit-text-size-adjust: 100% !important;
  }

  .search-wrap input::placeholder {
    font-size: 16px !important;
  }

  .card-grid {
    margin-top: 12px !important;
  }

  .card-social {
    transform: translateY(2px) !important;
    margin-top: 5px !important;
  }

  .card-social .social-action,
  .card-social .social-action span,
  .card-social .social-action.active,
  .card-social .social-action.active span {
    color: #747474 !important;
    font-weight: 300 !important;
  }

  .card-social .social-action svg {
    color: #555 !important;
    stroke-width: 1.45 !important;
  }
}

@media (max-width: 440px) {
  .hero {
    padding-top: 20px !important;
  }
}

/* 2026-07-02 exact uploaded logo asset and spacing tighten */
.site-header .brand-mark,
.brand-mark {
  overflow: hidden !important;
  width: 62px !important;
  height: 56px !important;
  flex: 0 0 62px !important;
  flex-basis: 62px !important;
  background-image: none !important;
  background-color: transparent !important;
}

.site-header .brand-mark img,
.brand-mark img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: left top !important;
}

@media (max-width: 720px) {
  .site-header .brand-mark,
  .brand-mark {
    width: 62px !important;
    height: 56px !important;
    flex: 0 0 62px !important;
    flex-basis: 62px !important;
    background-image: none !important;
    background-size: contain !important;
    background-position: left top !important;
    filter: none !important;
  }

  .popular {
    margin-top: 18px !important;
  }

  .card-grid {
    margin-top: 6px !important;
  }
}

/* 2026-07-02 hero typography and compact rhythm */
.eyebrow {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-stretch: condensed;
  letter-spacing: .28em !important;
  font-weight: 700 !important;
  margin-bottom: 13px !important;
}

.hero h1 {
  margin-bottom: 0 !important;
}

.hero > p {
  margin-top: 12px !important;
  margin-bottom: 22px !important;
}

.search-wrap {
  margin-top: 0 !important;
}

.popular {
  margin-top: 11px !important;
}

.active-filters {
  min-height: 8px !important;
  margin: 7px 0 4px !important;
}

.active-filters:empty {
  min-height: 0 !important;
  margin: 3px 0 2px !important;
}

.card-grid {
  margin-top: 12px !important;
}

@media (max-width: 720px) {
  .eyebrow {
    font-family: var(--sans) !important;
    font-size: 10px !important;
    letter-spacing: .24em !important;
    line-height: 1.2 !important;
    margin-bottom: 22px !important;
  }

  .hero h1,
  .hero h1 em {
    line-height: 1.38 !important;
  }

  .hero > p {
    margin-top: 21px !important;
    margin-bottom: 30px !important;
    line-height: 1.72 !important;
  }

  .popular {
    margin-top: 14px !important;
  }

  .active-filters {
    min-height: 6px !important;
    margin: 6px 0 3px !important;
  }

  .active-filters:empty {
    min-height: 0 !important;
    margin: 2px 0 2px !important;
  }

  .card-grid {
    margin-top: 13px !important;
  }
}

/* 2026-07-02 logo sublabel micro alignment */
.site-header .brand .brand-short,
.brand .brand-short {
  transform: translateX(1px) !important;
}

/* 2026-07-03 neutral social active states */
.card-social .social-action.active,
.card-social .social-action.active span,
.card-social .social-action.has-comments,
.card-social .social-action.has-comments span {
  color: #4f4f4f !important;
}

.card-social .social-action.active svg,
.card-social .social-action.has-comments svg,
.card-social button:first-child.active svg,
.card-social button[data-save].active svg {
  color: #222 !important;
  fill: currentColor !important;
}

/* 2026-07-03 force monochrome reactions, overriding older red/yellow states */
html body .card-social button.social-action[data-record-like].active,
html body .card-social button.social-action[data-record-like].active span,
html body .card-social button.social-action[data-open-comments].has-comments,
html body .card-social button.social-action[data-open-comments].has-comments span,
html body .card-social button.social-action[data-save].active,
html body .card-social button.social-action[data-save].active span {
  color: #626262 !important;
}

html body .card-social button.social-action[data-record-like].active svg,
html body .card-social button.social-action[data-open-comments].has-comments svg,
html body .card-social button.social-action[data-save].active svg {
  color: #555555 !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* 2026-07-10 align transaction badges with active social icon tone */
html body .lot-update-cluster .record-type,
html body .detail-source-badge,
html body .record-type,
html body .record-type.private,
html body .record-type.auction {
  background: #555555 !important;
  border-color: #555555 !important;
  color: #fff !important;
}

.site-header .brand-mark::after,
.brand-mark::after {
  content: none !important;
  display: none !important;
}

.site-header .brand-mark img,
.brand-mark img {
  filter: none !important;
  image-rendering: auto !important;
}

/* 2026-07-03 social row micro lift */
@media (max-width: 720px) {
  .card-social {
    transform: translateY(-3px) !important;
  }
}

/* 2026-07-03 final micro alignment */
@media (max-width: 720px) {
  .site-header::after {
    top: 55px !important;
  }

  .popular {
    transform: translateX(3px) !important;
    gap: 17px !important;
  }

  .popular button {
    margin-left: 0 !important;
  }

  .archive-number {
    transform: translateY(2px) !important;
  }
}

@media (max-width: 440px) {
  .site-header::after {
    top: 49px !important;
  }
}

/* 2026-07-06 real hamburger menu */
.hamburger-menu {
  position: relative;
  z-index: 45;
  margin-left: 10px;
}

.hamburger-menu summary {
  display: grid;
  width: 42px;
  height: 42px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 0;
  list-style: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger-menu summary::-webkit-details-marker {
  display: none;
}

.hamburger-menu summary span {
  display: block;
  width: 24px;
  height: 2px;
  background: #3b3936;
}

.hamburger-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 156px;
  padding: 8px 0;
  border: 1px solid #111;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .08);
}

.hamburger-panel a,
.hamburger-panel button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.hamburger-panel a:hover,
.hamburger-panel button:hover {
  background: #f5f5f5;
}

.hamburger-panel .hamburger-auth-action,
.hamburger-panel [data-menu-action="login"] {
  margin-top: 8px;
  border-top: 1px solid #e4e4e4;
  font-weight: 720;
}

.site-header.has-menu::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 720px) {
  .site-header.has-menu .hamburger-menu {
    position: absolute;
    top: 55px;
    right: 28px;
    margin-left: 0;
  }

  .site-header.has-menu .hamburger-menu summary {
    width: 38px;
    height: 38px;
  }

  .site-header.has-menu .hamburger-menu summary span {
    width: 27px;
    height: 2px;
  }

  .site-header.has-menu .hamburger-panel {
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
  }
}

@media (max-width: 440px) {
  .site-header.has-menu .hamburger-menu {
    top: 49px;
    right: 27px;
  }
}

/* 2026-07-07 mobile admin/profile navigation */
.profile-admin-tools {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #e8e8e8;
  background: #fff;
}

.profile-admin-tools[hidden] {
  display: none !important;
}

.profile-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 24px 0 28px;
}

.profile-actions .profile-home-return {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  background: #3b3936;
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -.03em;
  text-decoration: none;
}

.profile-actions .profile-home-return:hover {
  background: #2b2b2b;
}

.profile-actions .profile-logout-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.03em;
  cursor: pointer;
}

.profile-actions .profile-logout-button:hover {
  border-color: #3b3936;
}

.profile-admin-tools h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: 18px;
  letter-spacing: -.04em;
}

.profile-admin-tools p {
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.56;
}

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

.profile-admin-grid a {
  display: flex;
  aspect-ratio: 1 / 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid #111;
  color: #111;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
}

.profile-admin-grid a:first-child {
  background: #3b3936;
  color: #fff;
}

.site-header.has-menu .hamburger-menu {
  display: block;
}

@media (orientation: portrait) and (max-width: 900px) {
  .site-header nav {
    display: none !important;
  }

  .site-header.has-menu::after {
    content: none !important;
    display: none !important;
  }

  .site-header.has-menu .hamburger-menu {
    position: absolute !important;
    top: 49px !important;
    right: 27px !important;
    z-index: 80 !important;
  }

  .site-header.has-menu .hamburger-panel {
    right: 0 !important;
    min-width: 166px !important;
  }

  .admin-page,
  .admin-page .admin-view {
    display: block !important;
    visibility: visible !important;
  }

  .admin-page .simple-view,
  .admin-view {
    padding: 18px 20px 150px !important;
  }

  .admin-page .page-title-row {
    display: grid !important;
    gap: 16px !important;
  }

  .admin-page .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-page .management-card {
    margin-top: 18px !important;
  }

  .admin-page .management-table {
    min-width: 760px !important;
  }

  .profile-admin-tools {
    padding: 20px;
  }

  .profile-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-07-07 admin split + unified header auth */
.site-header nav {
  display: none !important;
}

.site-header.has-menu {
  align-items: center;
  gap: 10px;
}

.site-header.has-menu::after {
  content: none !important;
  display: none !important;
}

.site-header.has-menu .brand {
  order: 1;
}

.site-header.has-menu .header-actions {
  order: 2;
  display: inline-flex !important;
  align-items: center;
  align-self: center;
  gap: 7px;
  margin-left: auto;
}

.header-auth-button {
  order: 2;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #111;
  border-radius: 3px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.03em;
  cursor: pointer;
  white-space: nowrap;
}

.header-auth-button:hover {
  background: #3b3936;
  color: #fff;
}

.header-user-role {
  order: 1;
  height: 34px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: -.02em;
}

.header-user-role[hidden],
.header-auth-button[hidden],
.login-button[hidden],
.legacy-role-badge[hidden],
.site-header .role-badge[hidden],
.hamburger-panel [hidden],
[data-auth-menu-admin][hidden],
[data-auth-menu-profile][hidden],
[data-profile-admin-link][hidden],
[data-admin-only][hidden] {
  display: none !important;
}

.site-header.has-menu .hamburger-menu {
  order: 3;
  position: relative !important;
  align-self: center;
  top: auto !important;
  right: auto !important;
  margin-left: 2px !important;
}

.site-header.has-menu .hamburger-menu summary {
  width: 38px;
  height: 38px;
}

.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.admin-hub-card {
  display: grid;
  aspect-ratio: 1 / 1;
  min-height: 0;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.admin-hub-card.admin-hub-button {
  width: 100%;
  appearance: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-hub-card.admin-hub-button:disabled {
  cursor: progress;
  opacity: .58;
  transform: none;
  box-shadow: none;
}

.admin-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .08);
}

.admin-hub-card span {
  color: #777;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .28em;
}

.admin-hub-card strong {
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.06em;
  line-height: 1.18;
  word-break: keep-all;
}

.admin-hub-card em {
  color: #111;
  font-size: 30px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.05em;
}

.admin-hub-card small {
  color: #777;
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.banner-scrape-meta {
  margin: 14px 0 0;
  color: #777;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.banner-scrape-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e6e3de;
}

.banner-scrape-log-head strong {
  color: #111;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -.04em;
}

.banner-scrape-log-head button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid #3b3936;
  background: transparent;
  color: #3b3936;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.03em;
  cursor: pointer;
}

.banner-scrape-log-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.banner-scrape-log-card {
  border: 1px solid #e6e3de;
  background: #fff;
  padding: 16px;
}

.banner-scrape-log-card > summary,
.banner-scrape-source > summary {
  cursor: pointer;
  list-style: none;
}

.banner-scrape-log-card > summary::-webkit-details-marker,
.banner-scrape-source > summary::-webkit-details-marker {
  display: none;
}

.banner-scrape-log-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #111;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -.04em;
}

.banner-scrape-log-title span {
  color: #777;
  font-size: 12px;
  font-weight: 520;
}

.banner-scrape-source {
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid #f0eee9;
}

.banner-scrape-source-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #222;
  font-size: 13px;
  font-weight: 680;
}

.banner-scrape-source-title small {
  color: #777;
  font-size: 11px;
  font-weight: 520;
}

.banner-scrape-page {
  margin-top: 10px;
  padding: 10px 12px;
  background: #faf9f6;
  color: #555;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.banner-scrape-page code {
  display: block;
  margin-bottom: 6px;
  color: #111;
  font-family: inherit;
  font-size: 11px;
  font-weight: 620;
}

.banner-scrape-samples {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #555;
}

.banner-scrape-samples li + li {
  margin-top: 4px;
}

.scraping-menu-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 22px;
}

.scraping-summary-grid strong {
  font-feature-settings: "tnum";
}

.scraping-log-head {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#manualScrapeSection,
#scrapeLogSection {
  scroll-margin-top: 88px;
}

.member-admin-grid {
  align-items: start;
}

.member-admin-grid .table-card {
  min-width: 0;
}

@media (max-width: 900px) {
  .site-header.has-menu {
    display: flex !important;
  }

  .site-header.has-menu .header-actions {
    margin-left: auto !important;
  }

  .site-header.has-menu .hamburger-menu {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    z-index: 80 !important;
  }

  .site-header.has-menu .hamburger-panel {
    right: 0 !important;
    min-width: 166px !important;
  }

  .header-auth-button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
  }

  .header-user-role {
    height: 32px;
    padding: 0 9px;
    font-size: 10px;
  }

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

  .admin-hub-card {
    min-height: 0;
    gap: 7px;
    padding: 16px;
  }

  .admin-hub-card span {
    font-size: 9px;
    letter-spacing: .24em;
  }

  .admin-hub-card strong {
    font-size: 18px;
  }

  .admin-hub-card em {
    font-size: 28px;
  }

  .admin-hub-card small {
    font-size: 10px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .profile-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .scraping-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-admin-grid a {
    min-height: 0 !important;
    padding: 16px !important;
    font-size: 12px !important;
  }
}

/* 2026-07-07 portrait header + admin table hardening
   Keep the hamburger on the right edge in portrait, and keep management
   tables from squeezing the whole page on narrow mobile screens. */
@media (orientation: portrait) and (max-width: 900px) {
  .site-header.has-menu {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  .site-header.has-menu .brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .site-header.has-menu .header-actions {
    position: static !important;
    top: auto !important;
    right: auto !important;
    height: 38px !important;
    align-items: center !important;
    align-self: center !important;
    margin-left: auto !important;
    transform: none !important;
    z-index: 82 !important;
  }

  .site-header.has-menu .hamburger-menu {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    margin-left: 4px !important;
    order: 3 !important;
    z-index: 83 !important;
  }

  .site-header.has-menu .hamburger-panel {
    right: 0 !important;
    left: auto !important;
    top: calc(100% + 10px) !important;
  }

  .admin-page,
  .admin-page .admin-view {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .admin-page .admin-view {
    padding-inline: 16px !important;
  }

  .admin-page .page-title-row,
  .admin-page .management-card-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .admin-page .admin-system-grid,
  .admin-page .member-admin-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .admin-page .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .admin-page .admin-summary-card {
    min-height: 116px !important;
    padding: 18px !important;
  }

  .admin-page .management-card,
  .admin-page .table-card,
  .admin-page .member-detail-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-page .table-scroll {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .admin-page .management-table {
    width: max-content !important;
    min-width: 620px !important;
  }

  .admin-page .log-table {
    min-width: 540px !important;
  }

  .admin-page .user-table {
    min-width: 640px !important;
  }

  .admin-page .admin-record-table {
    min-width: 720px !important;
  }
}

@media (orientation: portrait) and (max-width: 440px) {
  .site-header.has-menu .header-actions {
    gap: 5px !important;
  }

  .site-header.has-menu .hamburger-menu {
    margin-left: 3px !important;
  }
}

/* 2026-07-08 admin pages must stay admin-only. If auth is pending or denied,
   show an admin notice instead of leaking home/profile/filter surfaces. */
body[data-requires-admin="true"] .mobile-filter-toggle,
body[data-requires-admin="true"] .filters,
body[data-requires-admin="true"] .profile-view,
body[data-requires-admin="true"] #archiveView,
body[data-requires-admin="true"] .hero,
body[data-requires-admin="true"] .hero-section {
  display: none !important;
}

.admin-access-notice {
  display: grid;
  min-height: calc(100vh - 180px);
  align-items: center;
  padding: 44px 7vw 140px;
  background: #fff;
  color: #111;
}

.admin-access-notice section {
  width: min(520px, 100%);
  border: 1px solid #111;
  padding: 32px;
  background: #fff;
}

.admin-access-notice h2 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 7vw, 42px);
  font-weight: 760;
  letter-spacing: -.07em;
}

.admin-access-notice p:not(.section-kicker) {
  margin: 0 0 22px;
  color: #777;
  font-size: 14px;
  line-height: 1.65;
}

.admin-access-notice button,
.admin-access-notice a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  padding: 0 18px;
  border: 1px solid #111;
  background: #3b3936;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.admin-access-notice a {
  background: #fff;
  color: #111;
}

@media (max-width: 520px) {
  .admin-access-notice {
    padding-inline: 20px;
  }

  .admin-access-notice section {
    padding: 24px;
  }
}

/* 2026-07-08 admin return stability
   Prevent iOS/Safari restored admin pages from starting underneath the status
   area or using older absolute hamburger positioning from prior mobile rules. */
body[data-requires-admin="true"] {
  overflow-x: hidden;
}

body[data-requires-admin="true"] .site-header.has-menu {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
  display: flex !important;
  min-height: calc(68px + env(safe-area-inset-top)) !important;
  padding-top: env(safe-area-inset-top) !important;
  background: rgba(255, 255, 255, .98) !important;
}

body[data-requires-admin="true"] .site-header.has-menu .header-actions {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin-left: auto !important;
  transform: none !important;
}

body[data-requires-admin="true"] .site-header.has-menu .hamburger-menu {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  margin-left: 4px !important;
  order: 3 !important;
  z-index: 121 !important;
}

body[data-requires-admin="true"] .site-header.has-menu .hamburger-panel {
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
}

body[data-requires-admin="true"] .admin-page {
  padding-top: 0 !important;
}

body[data-requires-admin="true"] .admin-page .admin-view {
  scroll-margin-top: calc(76px + env(safe-area-inset-top));
}

@media (orientation: portrait) and (max-width: 900px) {
  body[data-requires-admin="true"] .site-header.has-menu {
    min-height: calc(72px + env(safe-area-inset-top)) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body[data-requires-admin="true"] .site-header.has-menu .brand {
    min-width: 0 !important;
  }

  body[data-requires-admin="true"] .site-header.has-menu .header-actions {
    display: flex !important;
    flex: 0 0 auto !important;
  }

  body[data-requires-admin="true"] .site-header.has-menu .hamburger-menu summary {
    width: 36px !important;
    height: 36px !important;
  }

  body[data-requires-admin="true"] .admin-page .simple-view,
  body[data-requires-admin="true"] .admin-view {
    padding-top: 28px !important;
  }
}

/* 2026-07-08 admin console cleanup */
.admin-return-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #111;
  border-radius: 0;
  background: #3b3936;
  color: #fff !important;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
}

.admin-return-button:hover {
  background: #fff;
  color: #111 !important;
}

body[data-admin-page="overview"] .admin-view > .admin-summary-grid,
body[data-admin-page="quick"] .admin-view > .admin-summary-grid,
body[data-admin-page="quick"] .admin-view > .admin-hub-grid {
  display: none !important;
}

body[data-admin-page="overview"] .admin-hub-grid {
  margin-top: 14px !important;
}

body[data-requires-admin="true"] .admin-page .page-title-row {
  align-items: start !important;
}

body[data-requires-admin="true"] .admin-summary-grid {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 720px) {
  .admin-return-button {
    width: 100%;
    min-height: 48px;
  }

  body[data-requires-admin="true"] .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-requires-admin="true"] .admin-summary-card {
    min-height: 108px !important;
    padding: 16px !important;
  }
}

/* 2026-07-08 profile-owned admin console */
.profile-admin-tools .profile-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-admin-tools .admin-hub-card,
.profile-admin-tools .admin-hub-card:first-child {
  display: grid !important;
  aspect-ratio: 1 / 1;
  min-height: 0;
  align-content: start;
  justify-content: stretch;
  gap: 10px;
  padding: 24px;
  border: 1px solid #111;
  background: #fff !important;
  color: #111 !important;
  text-align: left;
}

.profile-admin-tools .admin-hub-card span,
.profile-admin-tools .admin-hub-card small {
  color: #777 !important;
}

.profile-admin-tools .admin-hub-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.48;
}

.profile-admin-tools .admin-hub-card small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .28em;
  line-height: 1.1;
}

/* 2026-07-16 phase 2 dealer auction hub */
body[data-dealer-page="hub"] {
  min-height: 100vh;
  background: #fff;
  overflow-x: hidden;
}

body[data-dealer-page="hub"] .hero,
body[data-dealer-page="hub"] .hero-section,
body[data-dealer-page="hub"] .workspace,
body[data-dealer-page="hub"] #archiveView,
body[data-dealer-page="hub"] #trendView,
body[data-dealer-page="hub"] #aboutView,
body[data-dealer-page="hub"] .filters,
body[data-dealer-page="hub"] .mobile-filter-toggle {
  display: none !important;
}

body[data-dealer-page="hub"] .simple-view.dealer-view {
  display: block !important;
  width: min(920px, calc(100% - 40px));
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 0 150px !important;
  background: #fff;
}

body[data-dealer-page="hub"] .dealer-hero,
body[data-dealer-page="hub"] .dealer-access-card,
body[data-dealer-page="hub"] .dealer-console {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid #e7e7e7;
  background: #fff;
}

body[data-dealer-page="hub"] .dealer-hero h1,
body[data-dealer-page="hub"] .dealer-access-card h2,
body[data-dealer-page="hub"] .dealer-console h2 {
  margin: 0;
  color: #111;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -.06em;
  line-height: 1.18;
}

body[data-dealer-page="hub"] .dealer-hero p:not(.section-kicker),
body[data-dealer-page="hub"] .dealer-access-card p:not(.section-kicker),
body[data-dealer-page="hub"] .dealer-console p:not(.section-kicker) {
  margin: 0;
  color: #747474;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -.04em;
  line-height: 1.58;
}

body[data-dealer-page="hub"] .dealer-hero.is-locked {
  opacity: .58;
}

body[data-dealer-page="hub"] .dealer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 4px;
}

body[data-dealer-page="hub"] .dealer-primary-action,
body[data-dealer-page="hub"] .dealer-secondary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -.04em;
  text-decoration: none;
}

body[data-dealer-page="hub"] .dealer-primary-action {
  background: #3b3936;
  color: #fff;
}

body[data-dealer-page="hub"] .dealer-secondary-action {
  background: #fff;
  color: #111;
}

body[data-dealer-page="hub"] .dealer-dashboard {
  display: grid;
  gap: 18px;
}

body[data-dealer-page="hub"] .dealer-dashboard[hidden],
body[data-dealer-page="hub"] .dealer-access-card[hidden] {
  display: none !important;
}

body[data-dealer-page="hub"] .dealer-summary-grid,
body[data-dealer-page="hub"] .dealer-console-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-dealer-page="hub"] .dealer-summary-card,
body[data-dealer-page="hub"] .dealer-hub-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 138px;
  padding: 22px;
  border: 1px solid #e2e2e2;
  background: #fff;
  color: #111;
  text-decoration: none;
}

body[data-dealer-page="hub"] .dealer-summary-card strong,
body[data-dealer-page="hub"] .dealer-hub-card em {
  display: block;
  color: #111;
  font-family: var(--serif);
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: 1;
}

body[data-dealer-page="hub"] .dealer-summary-card span,
body[data-dealer-page="hub"] .dealer-hub-card span,
body[data-dealer-page="hub"] .dealer-hub-card small {
  color: #777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.45;
}

body[data-dealer-page="hub"] .dealer-hub-card {
  aspect-ratio: 1 / 1;
  border-color: #3b3936;
}

body[data-dealer-page="hub"] .dealer-hub-card strong {
  color: #111;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.07em;
  line-height: 1.18;
}

body[data-dealer-page="hub"] .dealer-hub-card span {
  letter-spacing: .36em;
}

@media (max-width: 720px) {
  body[data-dealer-page="hub"] .simple-view.dealer-view {
    width: calc(100% - 40px);
    padding: 48px 0 142px !important;
  }

  body[data-dealer-page="hub"] .dealer-hero,
  body[data-dealer-page="hub"] .dealer-access-card,
  body[data-dealer-page="hub"] .dealer-console {
    gap: 14px;
    padding: 22px 18px;
  }

  body[data-dealer-page="hub"] .dealer-hero h1,
  body[data-dealer-page="hub"] .dealer-access-card h2,
  body[data-dealer-page="hub"] .dealer-console h2 {
    font-size: 24px;
  }

  body[data-dealer-page="hub"] .dealer-actions,
  body[data-dealer-page="hub"] .dealer-summary-grid,
  body[data-dealer-page="hub"] .dealer-console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-dealer-page="hub"] .dealer-primary-action,
  body[data-dealer-page="hub"] .dealer-secondary-action {
    min-height: 48px;
    font-size: 13px;
  }

  body[data-dealer-page="hub"] .dealer-summary-card,
  body[data-dealer-page="hub"] .dealer-hub-card {
    min-height: 122px;
    padding: 16px;
  }

  body[data-dealer-page="hub"] .dealer-summary-card strong,
  body[data-dealer-page="hub"] .dealer-hub-card em {
    font-size: 30px;
  }

  body[data-dealer-page="hub"] .dealer-hub-card strong {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  .profile-admin-tools {
    padding: 20px;
  }

  .profile-admin-tools .admin-hub-card,
.profile-admin-tools .admin-hub-card:first-child {
    gap: 7px;
    padding: 16px;
  }
}

/* 2026-07-13 estate-style market chart + edit photo layout */
.trend-panel {
  display: none;
}

.trend-panel.open {
  display: block;
  margin: 16px 0 22px;
  padding: 0 !important;
  border: 0;
  background: transparent;
}

.trend-chart {
  width: 100%;
}

.trend-chart svg.price-chart {
  height: auto !important;
}

.estate-trend-panel {
  overflow: hidden;
  border: 1px solid #ececf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 17, 17, .045);
}

.estate-trend-summary {
  padding: 24px 26px 14px;
}

.estate-trend-summary span {
  display: block;
  color: #5b4df5;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.estate-trend-summary strong {
  display: block;
  margin-top: 6px;
  color: #5b4df5;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1.05;
}

.estate-trend-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #ececf2;
}

.estate-trend-tabs button {
  position: relative;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #9b99a4;
  font-size: 14px;
  font-weight: 740;
  letter-spacing: -.025em;
}

.estate-trend-tabs button.active {
  color: #111;
}

.estate-trend-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #3b3936;
}

.estate-trend-graph {
  padding: 15px 18px 7px;
}

.estate-trend-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 7px 7px;
  color: #858392;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: -.025em;
}

.trend-table {
  padding: 8px 24px 22px;
}

.trend-table-head,
.trend-table-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 98px;
  align-items: center;
  gap: 10px;
}

.trend-table-head {
  padding: 0 0 10px;
  color: #3b3a3d;
  font-size: 13px;
  font-weight: 720;
  border-bottom: 1px solid #f0f0f2;
}

.trend-table-row {
  min-height: 58px;
  border-bottom: 1px solid #f1f1f2;
  color: #37363a;
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}

.trend-table-row:hover,
.trend-table-row:focus-visible {
  background: #f7f7f7;
  outline: none;
}

.trend-table-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #55535a;
}

.trend-table-row strong {
  text-align: right;
  color: #333237;
  font-size: 15px;
  font-weight: 860;
  letter-spacing: -.045em;
}

.trend-empty-table {
  margin: 0;
  padding: 18px 24px 24px;
  color: #8a8890;
  font-size: 13px;
  font-weight: 650;
}

.estate-chart .chart-grid line {
  stroke: #ececf1;
  stroke-width: 1;
}

.estate-chart .chart-grid text,
.estate-chart .chart-axis text {
  fill: #8f8d9d;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.estate-chart .chart-axis line {
  stroke: #ececf1;
  stroke-width: 1;
}

.estate-chart .chart-area {
  opacity: .3;
}

.estate-chart polyline {
  stroke: #5b4df5 !important;
}

.estate-chart .chart-line-dot {
  fill: #5b4df5 !important;
  stroke: #5b4df5 !important;
}

.estate-chart .chart-points circle {
  fill: #cfcfd4 !important;
  stroke: none !important;
  opacity: .78;
}

.estate-chart .chart-points circle:nth-child(3n) {
  fill: #a9caf5 !important;
  opacity: .88;
}

.estate-chart .chart-marker line {
  stroke: currentColor !important;
  stroke-width: 2;
}

.estate-chart .chart-marker-pill {
  fill: #111 !important;
  stroke: none !important;
}

.estate-chart .chart-marker circle {
  fill: currentColor !important;
  stroke: currentColor !important;
}

.estate-chart .chart-marker text {
  fill: #fff !important;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.03em;
}

.estate-chart .chart-marker.max {
  color: #ff5a36;
}

.estate-chart .chart-marker.min {
  color: #1d72f3;
}

.estate-chart .chart-now-line {
  stroke: #dedee5;
  stroke-width: 3;
  stroke-dasharray: 9 7;
}

.estate-chart .chart-volume rect {
  fill: #c8c8cb;
}

.estate-chart .chart-volume text {
  fill: #77747d;
  font-size: 12px;
  font-weight: 660;
}

.estate-chart .chart-empty {
  fill: #8a8890;
  font-size: 13px;
  font-weight: 650;
}

.detail-image-edit {
  margin: 0 0 16px !important;
  align-content: start;
  overflow: hidden;
}

.detail-image-edit label {
  margin: 0 !important;
}

.detail-image-edit input[type="file"] {
  width: 100% !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 8px 10px !important;
  overflow: hidden;
  border-radius: 9px !important;
  color: #211d17 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-image-edit input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 9px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: #efefef;
  color: #1f1d1a;
  font-size: 12px;
  font-weight: 720;
}

.detail-image-edit input[type="file"]::-webkit-file-upload-button {
  min-height: 28px;
  margin-right: 9px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: #efefef;
  color: #1f1d1a;
  font-size: 12px;
  font-weight: 720;
}

.detail-image-preview {
  display: block;
  margin-top: 12px;
  min-height: 0;
}

.detail-image-preview:empty {
  display: none;
  margin-top: 0;
}

.detail-preview-grid {
  min-height: 0 !important;
  margin: 8px 0 8px !important;
  padding: 8px 0 !important;
  align-content: start !important;
  justify-content: center !important;
}

.detail-image-preview em {
  clear: both;
  display: block !important;
  margin: 8px 0 0 !important;
  color: #8a8780 !important;
  font-size: 10px !important;
  font-weight: 560 !important;
  line-height: 1.45 !important;
}

.detail-image-edit small {
  display: block;
  margin: 10px 0 0 !important;
  color: #8a8780 !important;
  font-size: 10px !important;
  font-weight: 560 !important;
  line-height: 1.45 !important;
}

.detail-image-edit + .detail-title-builder {
  margin-top: 16px !important;
}

@media (max-width: 720px) {
  .trend-panel.open {
    margin: 13px 0 17px !important;
  }

  .estate-trend-panel {
    border-radius: 15px;
  }

  .estate-trend-summary {
    padding: 20px 18px 12px;
  }

  .estate-trend-summary span {
    font-size: 13px;
  }

  .estate-trend-summary strong {
    font-size: 31px;
  }

  .estate-trend-tabs button {
    height: 46px;
    font-size: 13px;
  }

  .estate-trend-graph {
    padding: 12px 10px 6px;
  }

  .trend-table {
    padding: 6px 18px 18px;
  }

  .trend-table-head,
  .trend-table-row {
    grid-template-columns: 76px minmax(0, 1fr) 88px;
    gap: 8px;
  }

  .trend-table-row {
    min-height: 54px;
    font-size: 13px;
  }

  .trend-table-row strong {
    font-size: 14px;
  }

  .detail-image-edit {
    padding: 10px !important;
  }
}

/* 2026-07-13 chart polish + edit photo overlap hardening */
#chartToggle.active,
.result-tools #chartToggle.active {
  background: #3b3936 !important;
  border-color: #3b3936 !important;
  color: #fff !important;
}

#chartToggle.active svg,
.result-tools #chartToggle.active svg {
  stroke: #fff !important;
}

.estate-trend-summary span,
.estate-trend-summary strong {
  color: #333 !important;
}

.estate-trend-panel {
  border-color: #e6e6e6 !important;
  box-shadow: none !important;
}

.estate-trend-summary span {
  color: #6f6f6f !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.estate-trend-summary strong {
  color: #303030 !important;
  font-size: 36px !important;
  font-weight: 720 !important;
}

.estate-trend-tabs button {
  color: #8a8a8a !important;
  font-size: 15px !important;
  font-weight: 650 !important;
}

.estate-trend-tabs button.active {
  color: #111 !important;
}

.estate-chart .chart-grid text,
.estate-chart .chart-axis text {
  fill: #555 !important;
  font-size: 22px !important;
  font-weight: 560 !important;
}

.estate-chart .chart-grid line {
  stroke: #e7e7e7 !important;
}

.estate-chart .chart-area {
  opacity: .18 !important;
}

.estate-chart polyline,
.estate-chart .chart-line {
  stroke: #111 !important;
  stroke-width: 4px !important;
}

.estate-chart .chart-line-dot {
  fill: #111 !important;
  stroke: #111 !important;
}

.estate-chart .chart-points circle,
.estate-chart .chart-points circle:nth-child(3n) {
  fill: #777 !important;
  stroke: #fff !important;
  stroke-width: 1.4px !important;
  opacity: .72 !important;
}

.estate-chart .chart-marker {
  color: #111 !important;
}

.estate-chart .chart-marker text {
  fill: #fff !important;
  font-size: 22px !important;
  font-weight: 650 !important;
}

.estate-chart .chart-now-line {
  stroke: #cfcfcf !important;
}

.estate-chart .chart-volume rect {
  fill: #c9c9c9 !important;
}

.estate-chart .chart-volume text {
  fill: #5d5d5d !important;
  font-size: 20px !important;
  font-weight: 560 !important;
}

.estate-trend-foot {
  color: #666 !important;
  font-size: 13px !important;
  font-weight: 560 !important;
}

.trend-table-head {
  font-size: 13px !important;
  font-weight: 650 !important;
}

.trend-table-row {
  min-height: 50px !important;
  font-size: 13px !important;
}

.trend-table-row strong {
  font-size: 14px !important;
  font-weight: 720 !important;
}

.detail-image-edit {
  display: block !important;
  overflow: visible !important;
  margin-bottom: 18px !important;
}

.detail-image-edit label {
  display: grid !important;
  gap: 9px !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.detail-image-edit input[type="file"] {
  min-height: 46px !important;
  font-size: 14px !important;
}

.detail-image-preview {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 14px !important;
  overflow: visible !important;
}

.detail-image-edit .detail-preview-grid,
.detail-image-edit .preview-grid.detail-preview-grid {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 8px auto 10px !important;
  padding: 8px 0 !important;
  grid-template-columns: repeat(auto-fit, minmax(76px, 96px)) !important;
  justify-content: center !important;
  align-content: start !important;
  place-items: center !important;
}

.detail-image-edit .detail-preview-grid.single {
  grid-template-columns: minmax(0, min(180px, 100%)) !important;
}

.detail-image-note,
.detail-image-empty,
.detail-image-preview em {
  display: block !important;
  position: static !important;
  clear: both !important;
  margin: 10px 0 0 !important;
  color: #5f5f5f !important;
  font-size: 12px !important;
  font-weight: 580 !important;
  line-height: 1.5 !important;
  letter-spacing: -.02em !important;
}

.detail-image-empty {
  padding: 14px !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 8px !important;
  text-align: center !important;
}

@media (max-width: 720px) {
  .estate-trend-summary {
    padding: 19px 17px 11px !important;
  }

  .estate-trend-summary strong {
    font-size: 33px !important;
  }

  .estate-chart .chart-grid text,
  .estate-chart .chart-axis text {
    font-size: 25px !important;
  }

  .estate-chart .chart-volume text {
    font-size: 22px !important;
  }

  .estate-chart .chart-marker text {
    font-size: 23px !important;
  }

  .trend-table-head {
    font-size: 12px !important;
  }

  .trend-table-row {
    min-height: 48px !important;
    font-size: 12px !important;
  }

  .trend-table-row strong {
    font-size: 13px !important;
  }

  .detail-image-note,
  .detail-image-empty,
  .detail-image-preview em {
    font-size: 13px !important;
  }
}

/* 2026-07-13 trend range slider + annotated high/low markers */
.estate-trend-tabs {
  display: none !important;
}

.estate-trend-range {
  padding: 0 26px 18px;
  border-bottom: 1px solid #ececec;
}

.trend-range-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: #777;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: -.025em;
}

.trend-range-head strong {
  margin-left: 6px;
  color: #111;
  font-weight: 680;
  letter-spacing: -.035em;
}

.trend-range-slider {
  position: relative;
  height: 34px;
  --start: 0%;
  --end: 100%;
  touch-action: none;
  user-select: none;
  cursor: pointer;
}

.trend-range-rail,
.trend-range-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 3px;
  border-radius: 999px;
}

.trend-range-rail {
  background: #e7e7e7;
}

.trend-range-fill {
  left: var(--start);
  right: calc(100% - var(--end));
  background: #3b3936;
}

.trend-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
}

.trend-range-input::-webkit-slider-runnable-track {
  height: 34px;
  background: transparent;
}

.trend-range-input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: 8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #3b3936;
  box-shadow: 0 0 0 1px #4b4945;
  cursor: grab;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.trend-range-input::-moz-range-track {
  height: 34px;
  background: transparent;
}

.trend-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #3b3936;
  box-shadow: 0 0 0 1px #4b4945;
  cursor: grab;
  pointer-events: auto;
}

.trend-range-handle {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 21px;
  height: 21px;
  margin: 0;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #3b3936;
  box-shadow: 0 0 0 1px #4b4945;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  appearance: none;
  -webkit-appearance: none;
}

.trend-range-handle.start {
  left: var(--start);
}

.trend-range-handle.end {
  left: var(--end);
}

.trend-range-slider.dragging .trend-range-handle {
  cursor: grabbing;
}

.trend-range-handle:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

.estate-chart .chart-marker .chart-marker-guide {
  stroke: #c8c8c8 !important;
  stroke-width: 1.5 !important;
  stroke-dasharray: 7 7;
  opacity: .76;
}

.estate-chart .chart-marker .chart-marker-stem {
  stroke: #111 !important;
  stroke-width: 1.9 !important;
}

.estate-chart .chart-marker .chart-marker-label {
  fill: #fff !important;
  font-size: 18px !important;
  font-weight: 650 !important;
  letter-spacing: -.04em !important;
}

.estate-chart .chart-marker .chart-marker-price {
  fill: #111 !important;
  font-size: 18px !important;
  font-weight: 680 !important;
  letter-spacing: -.045em !important;
}

.estate-chart .chart-empty {
  fill: #555 !important;
  font-size: 22px !important;
  font-weight: 650 !important;
  letter-spacing: -.035em !important;
}

@media (max-width: 720px) {
  .estate-trend-range {
    padding: 0 17px 16px;
  }

  .trend-range-head {
    font-size: 12px;
  }

  .estate-chart .chart-marker .chart-marker-label,
  .estate-chart .chart-marker .chart-marker-price {
    font-size: 20px !important;
  }

  .estate-chart .chart-empty {
    font-size: 25px !important;
  }
}

/* 2026-07-14 filter, chart, locked, and monochrome detail polish */
.filters:not(.detail-mode) [data-advanced-filter] {
  display: none !important;
}

.filter-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.detail-filter-toggle {
  min-height: 46px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111;
  padding: 0 2px !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.03em;
  text-align: right;
  box-shadow: none !important;
}

.detail-filter-toggle::after {
  content: " +";
  font-weight: 520;
}

.filters.detail-mode .detail-filter-toggle::after {
  content: " −";
}

.price-slider-filter {
  display: grid;
  gap: 9px;
}

.price-slider-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.filter-price-slider {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  --start: 0%;
  --end: 100%;
}

.filter-price-slider .trend-range-rail,
.filter-price-slider .trend-range-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  border-radius: 999px;
}

.filter-price-slider .trend-range-rail {
  background: #e5e5e5;
}

.filter-price-slider .trend-range-fill {
  left: var(--start);
  right: calc(100% - var(--end));
  background: #3b3936;
}

.filter-price-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.filter-price-slider input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #3b3936;
  box-shadow: 0 0 0 1px #4b4945;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.filter-price-slider input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #3b3936;
  box-shadow: 0 0 0 1px #4b4945;
  pointer-events: auto;
}

#sortSelect {
  border-width: 1px !important;
}

#sortSelect:focus,
#sortSelect:focus-visible {
  border-color: #333 !important;
  outline: 1px solid #333 !important;
  outline-offset: 0;
  box-shadow: none !important;
}

.permission-note {
  border: 1px solid #111 !important;
  background: #fff !important;
  color: #111 !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  font-weight: 520 !important;
  letter-spacing: -.025em !important;
}

.comment-feed {
  border-top: 1px solid #111 !important;
  background: #fff !important;
  color: #111 !important;
}

.comment-sort button {
  border-radius: 0 !important;
}

.comment-sort button.active,
.comment-form button {
  border-color: #3b3936 !important;
  background: #3b3936 !important;
  color: #fff !important;
}

.comment-form input {
  border-color: #3b3936 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #111 !important;
}

.comment-feed .empty-comments,
.comment-feed .permission-note {
  margin: 0 !important;
  padding: 18px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #777 !important;
  font-size: 13px !important;
  font-weight: 520 !important;
  letter-spacing: -.025em !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

.copyright-note,
.copyright-detail-note {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 50px !important;
  line-height: 1 !important;
  text-align: center !important;
}

.copyright-note::before,
.copyright-detail-note::before {
  margin: 0 auto !important;
  width: 50px !important;
  height: 30px !important;
}

.copyright-note::after,
.copyright-detail-note::after {
  display: block !important;
  width: 50px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  text-align: center !important;
  justify-content: center !important;
  align-self: center !important;
  color: currentColor !important;
  font-size: 7.4px !important;
  letter-spacing: .34em !important;
}

.similar-card .copyright-blur,
.similar-card .copyright-note {
  background: transparent !important;
  box-shadow: none !important;
}

.estate-trend-summary span {
  color: #555 !important;
  font-weight: 540 !important;
}

.estate-trend-summary strong {
  color: #111 !important;
  font-family: var(--sans) !important;
  font-size: clamp(28px, 6.1vw, 45px) !important;
  font-weight: 500 !important;
  letter-spacing: -.08em !important;
  line-height: 1.15 !important;
}

.estate-chart .chart-line {
  stroke: #111 !important;
}

.estate-chart .chart-line-dot {
  fill: #111 !important;
  stroke: #111 !important;
}

.estate-chart .chart-points circle {
  fill: #c9c9c9 !important;
  opacity: .72 !important;
}

.estate-chart .chart-points circle:nth-child(3n) {
  fill: #9d9d9d !important;
  opacity: .72 !important;
}

.estate-trend-foot,
.estate-chart .chart-now-line,
.estate-chart .chart-marker .chart-marker-guide {
  display: none !important;
}

.estate-chart .chart-marker-axis-guide {
  stroke: #bdbdbd !important;
  stroke-width: 1.3 !important;
  stroke-dasharray: 5 7;
  opacity: .68;
}

.estate-chart .chart-marker-axis-date {
  fill: #777 !important;
  font-size: 14px !important;
  font-weight: 540 !important;
  letter-spacing: -.035em !important;
}

.estate-chart .chart-marker.max,
.estate-chart .chart-marker.min {
  color: #111 !important;
}

.title-builder .title-attribute-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.title-builder .title-attribute-grid label {
  min-width: 0 !important;
  margin: 0 !important;
  color: #555 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: -.025em !important;
}

.title-builder .title-attribute-grid select {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  min-width: 0 !important;
  padding-left: 7px !important;
  padding-right: 7px !important;
  font-size: 13px !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 4px !important;
  background-color: #fff !important;
  box-shadow: none !important;
}

.title-builder .title-attribute-grid .field-label {
  display: inline !important;
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
}

/* 2026-07-14 create era row + quieter advanced filter action */
.filter-actions {
  align-items: center !important;
}

.detail-filter-toggle {
  display: inline-flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  align-self: center !important;
  min-height: 42px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 0 5px !important;
  border: 0 !important;
  background: none !important;
  color: #999 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: -.025em !important;
  line-height: 1.2 !important;
  text-align: right !important;
  position: relative !important;
  top: 2px !important;
  transform: none !important;
}

/* 2026-07-14 admin-only image debug labels */
.image-debug-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 18px);
  padding: 3px 8px 4px;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #444;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: -.02em;
  line-height: 1.1;
  pointer-events: none;
  white-space: nowrap;
  z-index: 12;
}

.art-image > .image-debug-badge {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
}

.detail-visual-slide > .image-debug-badge {
  margin: 8px auto 0;
}

.similar-card .image-debug-badge {
  display: none !important;
}

/* 2026-07-15 image add/delete controls */
.preview-remove {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  z-index: 8 !important;
  display: grid !important;
  place-items: center !important;
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  min-height: 25px !important;
  padding: 0 !important;
  border: 1px solid rgba(28, 28, 26, .14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #20201d !important;
  font-size: 17px !important;
  font-weight: 420 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08) !important;
  -webkit-tap-highlight-color: transparent;
}

.preview-remove:active {
  transform: scale(.95);
}

.preview-item.representative .preview-remove,
.detail-preview-item.representative .preview-remove {
  background: rgba(255, 255, 255, .98) !important;
}

.detail-image-edit .preview-remove {
  top: 4px !important;
  right: 4px !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
}

/* 2026-07-15 inline image add tile */
.image-uploader > input[type="file"],
.detail-image-input-label input[type="file"] {
  position: absolute !important;
  inset: auto !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  pointer-events: none !important;
}

.detail-image-input-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

.preview-add-tile {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 4px !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 82px !important;
  padding: 0 !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #20201d !important;
  cursor: pointer !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.preview-add-tile:active {
  background: #f7f7f7 !important;
}

.preview-add-symbol {
  display: block !important;
  margin: 0 !important;
  color: #20201d !important;
  font-size: 30px !important;
  font-weight: 260 !important;
  line-height: .82 !important;
  letter-spacing: 0 !important;
}

.preview-add-tile small {
  display: block !important;
  margin: 0 !important;
  color: #777 !important;
  font-size: 10px !important;
  font-weight: 520 !important;
  line-height: 1.1 !important;
  letter-spacing: -.02em !important;
}

.preview-grid.empty {
  grid-template-columns: minmax(92px, 118px) !important;
  min-height: 150px !important;
}

.detail-image-edit .preview-add-tile {
  min-height: 76px !important;
}

/* 2026-07-15 keep create image add tile tappable before images exist */
.image-uploader .upload-preview,
.image-uploader .preview-frame {
  pointer-events: auto !important;
}

/* 2026-07-15 iPhone image grid density */
@media (max-width: 720px) {
  .image-uploader {
    padding: 12px !important;
  }

  .upload-preview,
  .preview-frame,
  .detail-image-preview {
    width: 100% !important;
  }

  .image-uploader .preview-grid,
  .detail-image-edit .detail-preview-grid,
  .detail-image-edit .preview-grid.detail-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px !important;
    margin: 0 auto !important;
    justify-content: stretch !important;
    align-content: start !important;
    place-items: stretch !important;
  }

  .image-uploader .preview-grid.empty,
  .detail-image-edit .preview-grid.empty {
    grid-template-columns: minmax(92px, 112px) !important;
    justify-content: center !important;
    place-items: center !important;
    min-height: 142px !important;
  }

  .image-uploader .preview-item,
  .detail-image-edit .detail-preview-item,
  .image-uploader .preview-add-tile,
  .detail-image-edit .preview-add-tile {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  .image-uploader .preview-item img,
  .detail-image-edit .detail-preview-item img,
  .image-uploader .preview-add-tile,
  .detail-image-edit .preview-add-tile {
    aspect-ratio: 1 / 1 !important;
  }
}

/* 2026-07-15 soften price trend blacks without leaving monochrome tone */
#chartToggle.active,
.result-tools #chartToggle.active {
  background: #3b3936 !important;
  border-color: #3b3936 !important;
}

.estate-trend-summary strong,
.trend-range-head strong,
.estate-trend-tabs button.active {
  color: #4b4945 !important;
}

.estate-chart stop:first-child {
  stop-color: #4b4945 !important;
  stop-opacity: .05 !important;
}

.estate-chart stop:last-child {
  stop-color: #4b4945 !important;
}

.estate-chart polyline,
.estate-chart .chart-line {
  stroke: #4b4945 !important;
  stroke-width: 3.05px !important;
}

.estate-chart .chart-line-dot {
  fill: #4b4945 !important;
  stroke: #4b4945 !important;
}

.estate-chart .chart-marker.max,
.estate-chart .chart-marker.min,
.estate-chart .chart-marker {
  color: #4b4945 !important;
}

.estate-chart .chart-marker .chart-marker-stem {
  stroke: #4b4945 !important;
}

.estate-chart .chart-marker .chart-marker-price {
  fill: #4b4945 !important;
}

.estate-chart .chart-marker-pill {
  fill: #3b3936 !important;
}

.trend-range-fill,
.trend-range-handle,
.trend-range-input::-webkit-slider-thumb,
.trend-range-input::-moz-range-thumb {
  background: #4b4945 !important;
}

.trend-range-handle,
.trend-range-input::-webkit-slider-thumb,
.trend-range-input::-moz-range-thumb {
  box-shadow: 0 0 0 1px rgba(75, 73, 69, .56) !important;
}

.trend-range-handle:focus-visible {
  outline-color: #6a665f !important;
}

/* 2026-07-15 make price trend range slider visibly gentler than chart line */
.estate-trend-range .trend-range-rail {
  background: #eeece8 !important;
}

.estate-trend-range .trend-range-fill {
  background: #6f6a63 !important;
}

.estate-trend-range .trend-range-handle,
.estate-trend-range .trend-range-input::-webkit-slider-thumb,
.estate-trend-range .trend-range-input::-moz-range-thumb {
  background: #6f6a63 !important;
  box-shadow: 0 0 0 1px rgba(111, 106, 99, .42) !important;
}

.estate-trend-range .trend-range-handle:focus-visible {
  outline-color: #817b72 !important;
}

/* 2026-07-16 white porcelain spectrum + text-only locked/loading overlay */
.white-tone-field {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(17, 17, 17, .08);
}

.white-tone-field[hidden] {
  display: none !important;
}

.white-tone-field label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #555;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.white-tone-field select {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.white-tone-spectrum,
.white-tone-scale {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 24px;
}

.white-tone-spectrum span,
.white-tone-scale i {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  height: 9px;
  min-width: 0;
  border: 0;
  border-radius: 1px;
  background: var(--tone);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .06);
  transition: flex .22s ease, height .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.white-tone-spectrum span.active,
.white-tone-scale i.active {
  z-index: 2;
  flex: .86 0 32px;
  height: 19px;
  border: 1px solid rgba(17, 17, 17, .16);
  border-radius: 2px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .05), inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.white-tone-spectrum span b,
.white-tone-scale i b {
  display: block;
  overflow: hidden;
  max-width: 100%;
  padding: 0 7px;
  color: rgba(17, 17, 17, .78);
  font-size: 9.5px;
  font-weight: 660;
  letter-spacing: -.04em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.white-tone-readout {
  display: grid;
  width: min(340px, 100%);
  justify-items: stretch;
}

.detail-table .white-tone-detail-row strong {
  align-self: center;
}

.placeholder-pottery {
  filter: saturate(.78) contrast(.9);
}

.mock-visual-loading {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.mock-visual-loading .placeholder-pottery {
  width: 100%;
  height: 100%;
  max-width: 82%;
  max-height: 82%;
}

.mock-loading-note {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  color: #343434;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .18em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.copyright-note,
.copyright-detail-note {
  display: grid !important;
  place-items: center !important;
  width: auto !important;
  min-width: 74px !important;
  height: auto !important;
  min-height: 26px !important;
  gap: 0 !important;
  padding: 0 !important;
  color: #343434 !important;
  line-height: 1 !important;
  text-align: center !important;
  background: transparent !important;
  box-shadow: none !important;
}

.copyright-note::before,
.copyright-detail-note::before {
  display: none !important;
}

.copyright-note::after,
.copyright-detail-note::after {
  content: "LOCKED" !important;
  display: block !important;
  width: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: currentColor !important;
  font-family: var(--sans) !important;
  font-size: 10px !important;
  font-weight: 680 !important;
  letter-spacing: .18em !important;
  line-height: 1 !important;
  text-align: center !important;
}

.copyright-detail-note::after {
  font-size: 13px !important;
}

.detail-drawer .detail-visual .copyright-detail-note {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
}

.toast {
  bottom: calc(108px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 560px) {
  .white-tone-field select {
    height: 40px;
    font-size: 12px;
  }

  .white-tone-spectrum,
  .white-tone-scale {
    gap: 2px;
    min-height: 23px;
  }

  .white-tone-spectrum span,
  .white-tone-scale i {
    height: 8px;
  }

  .white-tone-spectrum span.active,
  .white-tone-scale i.active {
    flex-basis: 29px;
    height: 18px;
  }

  .white-tone-spectrum span b,
  .white-tone-scale i b {
    font-size: 8.5px;
    padding: 0 5px;
  }
}

/* 2026-07-20 sitewide soft-black backgrounds aligned with price chart tone */
:root {
  --kap-soft-black: #3b3936;
  --kap-soft-black-line: #4b4945;
}

.search-wrap button,
.apply-filter,
.primary-link,
.form-actions button[type="submit"],
.detail-edit-actions button[type="submit"],
.comment-compose button[type="submit"],
.comment-form button,
.chip.active,
.tag-cloud button.active,
.role-options button.active,
.comment-sort button.active,
.active-filters button,
.drawer-close,
.dialog-close,
.detail-back-button,
.preview-item.representative > span,
.detail-preview-item.representative > span,
.upload-status,
.scope-pill.allowed,
.profile-avatar,
.cutout-toggle button.on,
.profile-actions .profile-home-return,
.profile-admin-grid a:first-child,
body[data-dealer-page="hub"] .dealer-primary-action {
  background: var(--kap-soft-black) !important;
  border-color: var(--kap-soft-black) !important;
}

.bottom-tab.active::after,
.tabbar-badge,
.comment-author em,
.saved-count {
  background: var(--kap-soft-black) !important;
}

.detail-back-button:hover,
.drawer-close:hover,
.dialog-close:hover {
  color: var(--kap-soft-black) !important;
  border-color: var(--kap-soft-black) !important;
}

.preview-item.selected img,
.detail-preview-item.representative img,
.cutout-toggle button.on,
.trend-range-handle:focus-visible,
.filter-price-slider .trend-range-handle:focus-visible {
  outline-color: var(--kap-soft-black-line) !important;
}

/* 2026-07-20 admin banner priority/edit manager */
.banner-summary-grid {
  margin-bottom: 18px;
}

.banner-admin-panel {
  display: grid;
  gap: 18px;
}

.banner-manual-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.banner-manual-form {
  display: grid;
  gap: 14px;
}

.banner-manual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.banner-manual-grid label {
  display: grid;
  gap: 7px;
  color: #77716a;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.banner-manual-grid label.is-wide {
  grid-column: span 2;
}

.banner-manual-grid input,
.banner-manual-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ddd8cf;
  border-radius: 0;
  background: #fff;
  color: #111;
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.04em;
}

.banner-manual-actions {
  display: flex;
  justify-content: flex-end;
}

.banner-manual-actions button {
  min-height: 42px;
  border: 1px solid var(--kap-soft-black);
  border-radius: 0;
  background: var(--kap-soft-black);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: -.02em;
  cursor: pointer;
}

.banner-background-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

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

.banner-background-card {
  position: relative;
  min-height: 94px;
  overflow: hidden;
  border: 1px solid #e2ded6;
  border-radius: 0;
  background: #f7f5f0;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, filter .18s ease;
}

.banner-background-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--banner-bg);
  background-size: var(--banner-bg-size, cover);
  background-position: var(--banner-bg-position, center);
  filter: var(--banner-bg-filter, none);
  opacity: var(--banner-bg-opacity, 1);
  transform: scale(var(--banner-bg-scale, 1)) rotate(var(--banner-bg-rotate, 0deg));
  pointer-events: none;
}

.banner-background-select {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.banner-background-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .18));
  pointer-events: none;
}

.banner-background-card span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  color: #25231f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
}

.banner-background-delete {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 0;
  background: rgba(47, 45, 42, .82);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: -.02em;
  cursor: pointer;
}

.banner-background-delete:hover {
  background: #2f2d2a;
}

.banner-background-card:hover,
.banner-background-card.is-selected {
  border-color: #2f2d2a;
  filter: contrast(1.03);
  transform: translateY(-1px);
}

.banner-admin-panel .management-card-head {
  align-items: end;
}

.banner-admin-actions,
.banner-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.banner-admin-actions button,
.banner-edit-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d8d5cf;
  border-radius: 0;
  background: #fff;
  color: #2f2d2a;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.banner-admin-actions button:last-child,
.banner-edit-actions button[type="submit"] {
  background: var(--kap-soft-black);
  border-color: var(--kap-soft-black);
  color: #fff;
}

.banner-edit-actions button:disabled {
  opacity: .35;
}

.banner-admin-list {
  display: grid;
  gap: 14px;
}

.banner-admin-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e5e1da;
  background: #fff;
}

.banner-admin-card.is-hidden {
  background: #faf9f7;
}

.banner-admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.banner-admin-card-head div {
  display: grid;
  gap: 5px;
}

.banner-admin-card-head span {
  color: #77716a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
}

.banner-admin-card-head strong {
  color: #111;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -.05em;
}

.banner-visible-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d8d5cf;
  color: #3b3936;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.banner-visible-toggle input {
  width: 15px;
  height: 15px;
  accent-color: #3b3936;
}

.banner-admin-preview {
  position: relative;
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 7px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #ece8df;
}

.banner-admin-preview > * {
  position: relative;
  z-index: 1;
}

.banner-admin-preview.is-archive {
  background: #fbfaf8;
}

.banner-admin-preview.is-auction {
  background: #3b3936;
  color: #fff;
}

.banner-admin-preview.is-auction::before,
.banner-admin-preview.is-auction::after {
  content: "";
  position: absolute;
  inset: 0;
}

.banner-admin-preview.is-auction::before {
  background-image: var(--banner-bg);
  background-size: var(--banner-bg-size, cover);
  background-position: var(--banner-bg-position, center);
  filter: var(--banner-bg-filter, none);
  opacity: var(--banner-bg-opacity, .88);
  transform: scale(var(--banner-bg-scale, 1)) rotate(var(--banner-bg-rotate, 0deg));
}

.banner-admin-preview.is-auction::after {
  background: linear-gradient(90deg, rgba(42, 41, 39, .84), rgba(42, 41, 39, .3));
}

.banner-admin-preview em {
  justify-self: start;
  padding: 3px 8px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .86);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .14em;
  white-space: nowrap;
}

.banner-admin-preview strong {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -.07em;
  line-height: 1.16;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.banner-admin-preview span,
.banner-admin-preview small {
  color: inherit;
  opacity: .72;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.banner-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.banner-edit-form label {
  display: grid;
  gap: 7px;
  color: #77716a;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.banner-edit-form input,
.banner-edit-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #ddd8cf;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.04em;
}

.banner-edit-actions {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .banner-manual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .banner-manual-grid label.is-wide {
    grid-column: 1 / -1;
  }

  .banner-manual-actions button {
    width: 100%;
  }

  .banner-admin-panel .management-card-head {
    align-items: stretch;
  }

  .banner-admin-actions,
  .banner-edit-actions {
    justify-content: stretch;
  }

  .banner-admin-actions button,
  .banner-edit-actions button {
    flex: 1 1 0;
    min-width: 0;
  }

  .banner-admin-card {
    padding: 14px;
  }

  .banner-background-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .banner-background-card {
    min-height: 86px;
  }

  .banner-admin-preview {
    min-height: 96px;
    padding: 15px;
  }

  .banner-admin-preview strong {
    font-size: 19px;
  }

  .banner-edit-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
