/* Equipment-market emphasis. Existing content, controls and layout remain authoritative. */
body.market-presence .site-header {
  border-bottom-color: #d8dde5;
  box-shadow: 0 3px 12px #2226300a;
}
.market-presence .header-search form:focus-within {
  border-color: var(--brand-deep);
  box-shadow: 0 3px 10px #b7430a12;
}
.market-presence .main-nav.kadao-nav .nav-tabs {
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: #cbd1da transparent;
  scroll-padding-inline: 10px;
}
.market-presence .nav-tabs::-webkit-scrollbar { height: 5px; }
.market-presence .nav-tabs::-webkit-scrollbar-thumb { background: #cbd1da; border-radius: 4px; }
.market-presence .nav-tabs::-webkit-scrollbar-track { background: transparent; }
.market-presence .nav-tabs > button,
.market-presence .nav-tabs > a {
  padding-inline: 12px;
  border-radius: 6px 6px 0 0;
}
.market-presence .nav-tabs > button.active {
  background: var(--brand-wash);
  color: var(--brand-deep);
}
.market-presence .nav-tabs > button.active::after {
  left: 10px;
  right: 10px;
  height: 3px;
}
.market-presence .nav-tabs > :is(button, a):hover,
.market-presence .nav-tabs > :is(button, a):focus-visible {
  background: var(--brand-wash);
  color: var(--brand-deep);
}
.market-presence .nav-tabs > :is(button, a):focus-visible {
  outline: 2px solid var(--focus, #a84316);
  outline-offset: -3px;
}
.market-presence #marketTitle {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.6px;
}
.market-presence .market-heading { padding-block: 17px 11px; }
.market-presence .market-heading p { max-inline-size: 64em; margin-top: 6px; line-height: 1.75; }
.market-presence .mini-flow { margin-top: 11px; }
.market-presence .mini-flow > span:first-child { color: var(--brand-deep); font-weight: 600; }
.market-presence .mini-flow svg { color: var(--brand-deep); }
.market-presence .market-shortcuts { margin-bottom: 16px; }
.market-presence .market-shortcuts .button { padding-inline: 24px; }
.market-presence :is(.sell-header, .market-shortcuts .primary, #buyPublish) {
  border-color: #ed6d24;
  box-shadow: 0 4px 11px #b7430a24;
  font-weight: 700;
}
.market-presence :is(.sell-header, .market-shortcuts .primary, #buyPublish):not(:disabled):hover,
.market-presence :is(.sell-header, .market-shortcuts .primary, #buyPublish):focus-visible {
  background: #ff8b43;
  border-color: var(--brand-deep);
  box-shadow: 0 6px 15px #b7430a30;
}
.market-presence .directory {
  border-color: #dce0e7;
  box-shadow: none;
}
.market-presence .profession-row { border-bottom-color: #e8eaee; }
.market-presence .row-label { color: var(--ink); font-weight: 600; }
.market-presence .profession-tab.is-active {
  background: var(--brand-wash);
  border-color: #e9a375;
  box-shadow: 0 3px 8px #b7430a12;
}
.market-presence .profession-tab:not(.is-active):hover,
.market-presence .profession-tab:focus-visible {
  border-color: #e9a375;
  background: #fff8f3;
}
.market-presence .type-tab { border: 1px solid transparent; }
.market-presence .type-tab.is-active {
  border-color: #e9a375;
  background: var(--brand-wash);
  color: var(--brand-deep);
}
.market-presence .type-tab:not(.is-active):hover,
.market-presence .type-tab:focus-visible { border-color: #e9a375; background: #fff8f3; }
.market-presence .view-switch { overflow: visible; }
.market-presence .view-switch > button { min-width: 36px; min-height: 36px; }
.market-presence .view-switch > button:first-child { border-radius: 4px 0 0 4px; }
.market-presence .view-switch > button:last-child { border-radius: 0 4px 4px 0; }
.market-presence .view-switch > button.active { background: var(--brand-wash); color: var(--brand-deep); }
.market-presence #market .view-switch > button:focus-visible {
  position: relative;
  z-index: 1;
  outline-offset: 3px;
}
.market-presence .catalog-heading h2 { font-size: 19px; font-weight: 700; }
.market-presence .catalog-label { flex-wrap: wrap; row-gap: 4px; }
.market-presence .catalog-label #resultCount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.market-presence #grid .product-card {
  border-color: #dce0e7;
  box-shadow: none;
}
.market-presence #grid .product-card:hover,
.market-presence #grid .product-card:focus-within {
  border-color: #df9b71;
  box-shadow: 0 9px 24px #2226301a;
}
.market-presence #grid .product-name {
  font-weight: 700;
  min-height: 44px;
  text-wrap: pretty;
}
.market-presence #grid:not(.is-list) .product-image { height: 145px; }
.market-presence #grid .product-image > img { transform-origin: 50% 20%; }
.market-presence #grid .product-bottom { border-top-color: #e8eaee; }
.market-presence #grid .product-record { line-height: 1.5; }
.market-presence #grid .product-number { color: var(--secondary); }
.market-presence #grid .product-price .num { font-weight: 800; }
.market-presence #grid .product-status {
  border: 1px solid #f0d1b7;
  background: #fff8ef;
  color: #7b411d;
}
.market-presence #grid .is-sold .product-status {
  border-color: #dce0e7;
  background: #eceef1;
  color: #5b606a;
}
.market-presence #grid .is-sold { box-shadow: none; }
.market-presence #market :is(button, a, select, input):focus-visible {
  outline: 2px solid var(--focus, #a84316);
  outline-offset: 3px;
}
.market-presence #market #grid .image-open:focus-visible {
  outline-width: 3px;
  outline-offset: -5px;
}
.market-presence #grid .product-trade:not(:disabled):hover,
.market-presence #grid .product-trade:focus-visible {
  color: #331d0d;
  background: #ffdbbf;
  border-color: #df9b71;
}
.market-presence #market input { caret-color: var(--brand-deep); }
.market-presence #market ::selection { background: #ffdbbf; color: #331d0d; }

/* Motion describes selection and inspecting an equipment screenshot, not a page-load show. */
html[data-motion="full"] .market-presence .nav-tabs > :is(button, a),
html[data-motion="full"] .market-presence :is(.sell-header, .market-shortcuts .button, #buyPublish),
html[data-motion="full"] .market-presence :is(.profession-tab, .type-tab) {
  transition: background-color 160ms ease-out, border-color 160ms ease-out, box-shadow 180ms ease-out, transform 150ms ease-out !important;
}
html[data-motion="full"] .market-presence #grid .product-card {
  transition: border-color 180ms ease-out, box-shadow 220ms ease-out !important;
}
html[data-motion="full"] .market-presence #grid .product-image > img {
  transition: transform 320ms cubic-bezier(.16, 1, .3, 1) !important;
}
html[data-motion="full"] .market-presence :is(.profession-tab.is-active, .type-tab.is-active) {
  animation: market-selection-confirm 220ms cubic-bezier(.16, 1, .3, 1) both !important;
}
html[data-motion="full"] .market-presence :is(.sell-header, .market-shortcuts .button, #buyPublish):not(:disabled):active {
  transform: translateY(1px) scale(.98);
}
@media (hover: hover) and (pointer: fine) {
  html[data-motion="full"] .market-presence #grid .product-card:not(.is-sold):hover .product-image > img { transform: scale(1.065); }
}
html[data-motion="full"] .market-presence #grid .product-card:not(.is-sold):focus-within .product-image > img { transform: scale(1.04); }
@keyframes market-selection-confirm {
  from { transform: scale(.94); }
  to { transform: scale(1); }
}
@media (max-width: 1000px) {
  .market-presence .main-nav.kadao-nav .nav-tabs { gap: 12px; }
}
@media (max-width: 700px) {
  .market-presence #marketTitle { font-size: 22px; letter-spacing: -.35px; }
  .market-presence .market-heading { padding-block: 14px 9px; }
  .market-presence .market-heading p { margin-top: 5px; }
  .market-presence .market-shortcuts { margin-bottom: 13px; }
  .market-presence .market-shortcuts .button { padding-inline: 14px; }
  .market-presence .main-nav.kadao-nav .nav-tabs { gap: 10px; }
  .market-presence .main-nav { min-height: 49px; height: 49px; }
  .market-presence .nav-tabs > :is(button, a) { padding-inline: 9px; min-height: 44px; }
  .market-presence :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 16px; min-height: 44px; }
  .market-presence #searchInput { font-size: 16px; }
  .market-presence #searchForm { height: 48px; min-height: 48px; }
  .market-presence .search-submit { min-height: 44px; }
  .market-presence .header-search #searchClear { min-height: 44px; min-width: 44px; }
  .market-presence .service-button { min-width: 44px; min-height: 44px; }
  .market-presence .hot-word { min-height: 44px; min-width: 44px; }
  .market-presence .hot-search { margin-top: 0; align-items: center; }
  .market-presence :is(.type-tab, .filter-chip, .reset-button, .check-label, .filter-open) { min-height: 44px; }
  .market-presence :is(.filter-open, .reset-button, .favorite-btn) { min-width: 44px; }
  .market-presence .favorite-btn { min-height: 44px; justify-content: center; flex-shrink: 0; }
  .market-presence .product-trade.button,
  .market-presence #buyPublish,
  .market-presence .filter-dialog .button,
  .market-presence .empty-state .button,
  .market-presence .list-end .button,
  .market-presence .seller-invite .button { min-height: 44px; }
  .market-presence dialog .icon-button { min-width: 44px; min-height: 44px; }
  .market-presence .catalog-heading { flex-wrap: wrap; row-gap: 6px; padding-block: 9px; }
  .market-presence .catalog-controls { margin-left: auto; gap: 8px; }
  .market-presence .catalog-controls select { width: 144px; max-width: 144px; min-height: 44px; padding-inline: 7px; }
  .market-presence .catalog-heading h2 { font-size: 17px; }
  .market-presence #grid .product-name { font-size: 14px; line-height: 1.55; height: 44px; }
  .market-presence #grid .product-bottom { gap: 6px; }
  .market-presence #grid:not(.is-list) .product-image { height: 122px; }
}
@media (max-width: 370px) {
  .market-presence #grid:not(.is-list) .product-image { height: 108px; }
}


/* Keep equipment actions reachable while the image and description scroll. */
.market-presence #detailDialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(820px, calc(100dvh - 40px));
}
.market-presence #detailDialog > .dialog-head { flex: 0 0 auto; }
.market-presence #detailBody { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.market-presence #detailBody > .detail-layout { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.market-presence #detailBody > .detail-action-bar {
  flex: 0 0 auto;
  padding: 14px 25px;
  background: #fff;
  border-top: 1px solid var(--line, #e2e5ec);
}
.market-presence #detailBody .detail-actions {
  position: static;
  margin: 0;
  padding: 0;
  align-items: stretch;
}
.market-presence #detailBody .detail-actions > button { min-height: 44px; }
.market-presence #detailBody .copy-status:empty { display: none; }
.market-presence #detailBody .copy-status:not(:empty) { margin: 8px 0 0; }
@media (max-width: 700px) {
  .market-presence #market .market-heading { padding: 12px 0 10px; }
  .market-presence #market .market-heading p { margin-top: 4px; line-height: 1.6; }
  .market-presence #market .mini-flow,
  .market-presence #market .market-shortcuts { display: none; }
  .market-presence #detailDialog[open] {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
  }
  .market-presence #detailBody > .detail-layout { padding: 16px; }
  .market-presence #detailBody > .detail-action-bar {
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  }
  .market-presence #detailBody .detail-actions { flex-wrap: nowrap; gap: 8px; }
  .market-presence #detailBody .detail-actions > button { min-width: 0; padding-inline: 10px; }
  .market-presence #detailBody .detail-actions > .favorite-btn { width: 44px; flex: 0 0 44px; }
}
