/* PULSE Marketplace. The user requested a compact working catalogue on Oct 1:
   no promotional banner before results, readable server names, denser details. */
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) {
  --mk-pulse-surface: #111523;
  --mk-pulse-raised: #191e30;
  --mk-pulse-line: #272d42;
  --mk-pulse-text: #f3f5ff;
  --mk-pulse-muted: #a3aac5;
  --mk-pulse-accent: #9975ff;
}

body.miki-pulse .mk-app:not(.is-embedded).is-detail-view .mk-pulse-filter-jump,
body.miki-pulse .mk-app:not(.is-embedded).is-detail-view .mk-pulse-search-options {
  display: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-intro {
  gap: 4px;
  padding: 0 0 10px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-intro h1 {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.035em;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-intro p {
  font-size: 12px;
  line-height: 1.7;
}

/* PULSE pulse.css: catalog-spotlight. Keep the real catalogue data below,
   but do not inherit the earlier recovery banner's oversized 46px/900 type. */
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-hero {
  grid-template-columns: minmax(0, 51%) minmax(0, 49%);
  border-color: #3d3c59;
  border-radius: 19px;
  background: linear-gradient(125deg, #211e33, #121b2c);
  box-shadow: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-hero h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-hero p {
  max-width: 280px;
  font-size: 11px;
  line-height: 1.5;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-hero__visual {
  opacity: .7;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-hero__visual::before {
  display: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-project-bar {
  margin: 0;
  border-bottom: 1px solid var(--mk-pulse-line);
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-project-bar__row {
  min-height: 42px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-market-project-choice {
  min-height: 33px;
  padding: 6px 14px;
  border-radius: 9px 9px 0 0;
  font-size: 11px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-view-note-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(230px, 290px) 76px auto;
  align-items: end;
  column-gap: 10px;
  row-gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search > .mk-field:first-child,
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search > .mk-server-field {
  grid-column: auto;
  width: 100%;
  min-width: 0;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search > .mk-field > span,
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search > .mk-server-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search [data-q],
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-server-trigger {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--mk-pulse-line) !important;
  border-radius: 9px !important;
  background: #101524 !important;
  color: var(--mk-pulse-text) !important;
  box-shadow: none !important;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-server-trigger {
  justify-content: flex-start;
  padding: 5px 12px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-server-trigger > span {
  display: grid;
  align-items: start;
  gap: 1px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-server-trigger small {
  font-size: 11px;
  color: var(--mk-pulse-muted);
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-filter-jump,
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search > button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 43px;
  padding: 8px 13px;
  border: 1px solid #353c53;
  border-radius: 9px;
  background: #191e30;
  color: var(--mk-pulse-text);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

/* The sidebar already exposes filters; a second top-row button is noise. */
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-filter-jump {
  display: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search > button[type="submit"] {
  border-color: var(--mk-pulse-accent);
  background: var(--mk-pulse-accent);
  color: #140d29;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options {
  position: relative;
  justify-self: end;
  min-width: 0;
  z-index: 4;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options > summary {
  display: flex;
  align-items: center;
  min-height: 43px;
  color: var(--mk-pulse-muted);
  font-size: 11px;
  cursor: pointer;
  list-style: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options > summary::-webkit-details-marker {
  display: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options > div {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  width: min(370px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid var(--mk-pulse-line);
  border-radius: 12px;
  background: var(--mk-pulse-surface);
  box-shadow: 0 18px 40px #0008;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options .mk-ghost {
  grid-column: 1 / -1;
  min-height: 36px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-layout {
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filters {
  display: block !important;
  position: relative;
  min-width: 0;
  min-height: 0;
  scroll-margin-top: 18px;
  padding: 11px;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--mk-pulse-surface) !important;
  box-shadow: none !important;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-head {
  display: block !important;
  box-sizing: border-box;
  height: 21px !important;
  min-height: 21px !important;
  max-height: 21px;
  margin: 0 0 11px !important;
  padding: 0 !important;
  cursor: pointer;
  list-style: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-head::-webkit-details-marker {
  display: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-head:focus-visible {
  outline: 2px solid var(--mk-pulse-accent);
  outline-offset: 4px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-head h2 {
  margin: 0 !important;
  color: var(--mk-pulse-text);
  font-size: 16px;
  line-height: 21px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-title-mobile,
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-head :is(small, .mk-filter-toggle-label),
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet h3 {
  display: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet {
  min-width: 0;
  padding-bottom: 7px;
  border-bottom: 0;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet h3,
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-filter-subhead {
  margin: 0 0 12px;
  color: var(--mk-pulse-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet .mk-sections {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 0;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet .mk-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 29px;
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--mk-pulse-muted);
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-actions :is(button, .mk-back) {
  flex: 0 0 auto;
  width: auto;
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet .mk-tab.is-active {
  background: #251c42;
  color: var(--mk-pulse-accent);
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet:not(.is-expanded) .mk-tab:nth-child(n+4):not(.is-active) {
  display: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-more {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin-top: 7px;
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: var(--mk-pulse-accent);
  font-size: 11px;
  cursor: pointer;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-more[hidden] {
  display: none;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet .mk-tab small {
  margin-left: 6px;
  font-size: 10px;
  color: #78819d;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding-top: 7px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-filter-subhead {
  margin: 0 0 2px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-grid .mk-filter-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  color: #acb6ce;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-grid .mk-filter {
  gap: 4px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-grid .mk-filter :is(input, select) {
  min-height: 34px;
  border-color: transparent !important;
  border-radius: 8px;
  background: #1c2131 !important;
  box-shadow: none !important;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-grid .mk-filter :is(input, select):focus-visible {
  outline: 2px solid var(--mk-pulse-accent);
  outline-offset: 1px;
}

/* Category and price stay in view; the specialist controls open on demand. */
body.miki-pulse .mk-app .mk-filter-advanced {
  display: block;
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 2px;
  border: 0;
  background: transparent;
}

body.miki-pulse .mk-app .mk-filter-advanced > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 36px;
  padding: 5px 0;
  color: var(--mk-pulse-accent);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

body.miki-pulse .mk-app .mk-filter-advanced > summary::-webkit-details-marker {
  display: none;
}

body.miki-pulse .mk-app .mk-filter-advanced > summary::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 15px;
  font-weight: 400;
}

body.miki-pulse .mk-app .mk-filter-advanced > summary b:not([hidden]) {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #302747;
  color: var(--mk-pulse-accent);
  font-size: 10px;
  font-weight: 700;
}

body.miki-pulse .mk-app .mk-filter-advanced[open] {
  display: block;
}

body.miki-pulse .mk-app .mk-filter-advanced__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 7px;
  min-width: 0;
  padding-top: 2px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-advanced__grid {
  position: fixed;
  z-index: 30;
  top: var(--mk-advanced-top, 76px);
  left: var(--mk-advanced-left, 244px);
  width: var(--mk-advanced-width, min(690px, calc(100vw - 260px)));
  max-height: var(--mk-advanced-max-height, calc(100dvh - 88px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 9px 11px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
  border: 1px solid #393850;
  border-radius: 14px;
  background: #141827;
  box-shadow: 0 22px 52px #0009, 0 0 0 1px #ffffff08 inset;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-advanced__header {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--mk-pulse-line);
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-advanced__header strong {
  color: var(--mk-pulse-text);
  font-size: 13px;
  line-height: 1.3;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-advanced__header button {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid var(--mk-pulse-line);
  border-radius: 7px;
  background: #20263a;
  color: var(--mk-pulse-text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-advanced__header button:focus-visible {
  outline: 2px solid var(--mk-pulse-accent);
  outline-offset: 2px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-advanced__grid .mk-filter {
  align-self: start;
}

body.miki-pulse .mk-app .mk-filter-advanced[open] > summary::after {
  content: "−";
}

body.miki-pulse .mk-app .mk-filter-advanced > summary:focus-visible {
  outline: 2px solid var(--mk-pulse-accent);
  outline-offset: 2px;
}

body.miki-pulse .mk-app .mk-filter-advanced .mk-filter {
  min-width: 0;
}

body.miki-pulse .mk-app .mk-filter-clothing-codes {
  grid-column: 1 / -1;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-filter-clothing-codes > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 2px 0;
  color: #b9a8ed;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

body.miki-pulse .mk-app .mk-filter-clothing-codes > summary::-webkit-details-marker {
  display: none;
}

body.miki-pulse .mk-app .mk-filter-clothing-codes > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 15px;
  font-weight: 400;
}

body.miki-pulse .mk-app .mk-filter-clothing-codes[open] > summary::after {
  content: "−";
}

body.miki-pulse .mk-app .mk-filter-clothing-codes > summary b:not([hidden]) {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #302747;
  color: var(--mk-pulse-accent);
  font-size: 10px;
}

body.miki-pulse .mk-app .mk-filter-clothing-codes > summary:focus-visible {
  outline: 2px solid var(--mk-pulse-accent);
  outline-offset: 2px;
}

body.miki-pulse .mk-app .mk-filter-clothing-codes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 11px;
  padding: 6px 0 2px;
}

/* The whole label is the hit target; a checkbox is not a full-width field. */
body.miki-pulse .mk-app .mk-filter-grid .mk-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-grid .mk-toggle input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  accent-color: var(--accent);
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-results > .mk-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid,
body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid:has(> .mk-ft-card) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-ft-card {
  position: relative;
  min-width: 0;
  min-height: 280px;
  grid-template-rows: 140px auto minmax(0, 1fr) auto;
  border: 1px solid var(--mk-pulse-line);
  border-radius: 14px;
  background: var(--mk-pulse-raised);
  overflow: hidden;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-ft-card__media {
  height: 140px;
  min-height: 140px;
  background: #101422;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-ft-card__toolbar {
  position: static;
  padding: 10px 12px 2px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-ft-card__eyebrow {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  max-width: calc(100% - 22px);
  padding: 4px 7px;
  border: 1px solid #55556b;
  border-radius: 6px;
  background: #10121dcc;
  color: var(--mk-pulse-text);
  font-size: 10px;
  line-height: 1.2;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-ft-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-ft-card__body {
  padding: 3px 16px 8px;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-ft-card__footer {
  padding: 4px 16px 14px;
  border: 0;
  background: transparent;
}

body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-ft-card__price b {
  color: var(--mk-pulse-text);
  font-size: 22px;
}

/* Item calculators use sibling controls around the level segments. */
body.miki-pulse .mk-app .mk-ft-tuning__grid {
  display: grid;
  gap: 12px;
}

body.miki-pulse .mk-app .mk-ft-tuning__group {
  gap: 12px;
  padding: 14px;
}

body.miki-pulse .mk-app .mk-ft-tuning__group > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

body.miki-pulse .mk-app .mk-ft-tuning__group > header > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-ft-tuning__group > header b,
body.miki-pulse .mk-app .mk-ft-tuning__group > header strong {
  color: var(--v9-text);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

body.miki-pulse .mk-app .mk-ft-tuning__group > header strong {
  align-self: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

body.miki-pulse .mk-app .mk-ft-tuning__group small,
body.miki-pulse .mk-app .mk-ft-tuning__group > p {
  margin: 0;
  color: var(--v9-muted);
  font-size: 11px;
  line-height: 1.5;
}

body.miki-pulse .mk-app .mk-ft-tuning__row {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 44px;
  gap: 12px;
}

body.miki-pulse .mk-app .mk-ft-tuning__row > button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--v9-line-strong);
  border-radius: 9px;
  background: var(--v9-surface-raised);
  color: var(--v9-text);
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}

body.miki-pulse .mk-app .mk-ft-tuning__row > button:hover:not(:disabled) {
  border-color: var(--v9-accent);
  color: var(--v9-accent);
}

body.miki-pulse .mk-app .mk-ft-tuning__row > button:focus-visible {
  outline: 2px solid var(--v9-accent);
  outline-offset: 3px;
}

body.miki-pulse .mk-app .mk-ft-tuning__row > button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

body.miki-pulse .mk-app .mk-ft-tuning__row > .mk-ft-tuning__stepper {
  display: flex;
  gap: 4px;
}

body.miki-pulse .mk-app .mk-ft-tuning__stepper > i {
  display: block;
  flex: 1 1 0;
  height: 6px;
  border-radius: 3px;
  background: var(--v9-line-strong);
}

body.miki-pulse .mk-app .mk-ft-tuning__stepper > i.is-active {
  background: var(--v9-accent);
}

@media (max-width: 1180px) {
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search {
    grid-template-columns: minmax(180px, 1fr) minmax(210px, 270px) 76px;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-filter-jump {
    display: none;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options {
    grid-column: 1 / -1;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid:has(> .mk-ft-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A three-card row below 1381px squeezes the market facts below 280px/card. */
@media (min-width: 1181px) and (max-width: 1380px) {
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid:has(> .mk-ft-card),
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid:has(> .mk-unified-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep results beside the filters until the full-width mobile layout begins.
   The earlier recovery stylesheet assigns both panels to column 1 at 820px,
   while the 1180px rule above still gives this layout two columns. */
@media (min-width: 761px) and (max-width: 820px) {
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filters {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-active-filters,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-results {
    grid-column: 2;
    grid-row: auto;
  }
}

/* The sidebar leaves less than 580px for results through this range; two
   cards would fall below a readable 280px each. */
@media (min-width: 761px) and (max-width: 940px) {
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid:has(> .mk-ft-card),
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid:has(> .mk-unified-card) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-advanced__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.miki-pulse .mk-app .mk-filter-clothing-codes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-advanced__header {
    display: none;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-advanced__grid {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 8px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-filter-jump {
    display: none;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 14px;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filters,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-active-filters,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-results {
    grid-column: 1;
    grid-row: auto;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filters {
    min-height: 0;
    padding: 12px;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-head {
    display: grid !important;
    height: auto !important;
    min-height: 44px !important;
    max-height: none;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-title { display: grid; gap: 2px; min-width: 0; }
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-title h2 { margin: 0; font-size: 16px; line-height: 1.3; }
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filters:not([open]) [data-filter-context] { display: none; }
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-head .mk-filter-toggle-label { white-space: nowrap; font-size: 12px; }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-title-desktop {
    display: none;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-title-mobile,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-head :is(small, .mk-filter-toggle-label),
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet h3 {
    display: initial;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet {
    padding-top: 16px;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-category-facet .mk-sections,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-filter-grid > :is(.mk-pulse-filter-subhead, .mk-toggle, .mk-filter-advanced, .mk-filter-actions) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options > summary {
    gap: 8px;
    min-height: 33px;
    padding: 6px 10px;
    border: 1px solid var(--mk-pulse-line);
    border-radius: 8px;
    background: #171c2d;
    color: var(--mk-pulse-text);
    font-weight: 650;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options > summary::after {
    content: "⌄";
    display: inline-block;
    margin-left: auto;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-2px);
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options[open] > summary::after {
    transform: rotate(180deg) translateY(2px);
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options > summary:focus-visible {
    outline: 2px solid var(--mk-pulse-accent);
    outline-offset: 2px;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-hero h2 {
    font-size: 34px;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-hero p {
    max-width: 210px;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-hero__visual {
    opacity: .36;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-market-intro h1 {
    font-size: 25px;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-project-bar {
    margin-top: 0;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search {
    grid-template-columns: 1fr 86px;
    margin-top: 12px;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search > .mk-field:first-child,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-search > .mk-server-field,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options {
    grid-column: 1 / -1;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options {
    justify-self: start;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-pulse-search-options > div {
    right: auto;
    left: 0;
  }

  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid,
  body.miki-pulse .mk-app:not(.is-embedded):not(.is-detail-view) .mk-grid:has(> .mk-ft-card) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The server dialog sits inside .mk-search. Explicit grid ownership prevents
   generic form-button flex rules from reducing its name column to zero. */
body.miki-pulse .mk-app .mk-server-dialog {
  width: min(860px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  overflow-y: auto;
}

body.miki-pulse .mk-app .mk-server-dialog-head {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  background: transparent;
}

body.miki-pulse .mk-app .mk-server-dialog-head h2 {
  margin: 2px 0 0;
  font-size: 21px;
  font-weight: 650;
}

body.miki-pulse .mk-app .mk-server-dialog-head span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

body.miki-pulse .mk-app .mk-server-dialog-head button {
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
  font-size: 13px;
}

body.miki-pulse .mk-app .mk-server-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 14px;
  padding: 12px 18px;
}

body.miki-pulse .mk-app .mk-server-search {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

body.miki-pulse .mk-app .mk-server-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
}

body.miki-pulse .mk-app .mk-server-queue-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

body.miki-pulse .mk-app .mk-server-queue-filter input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

body.miki-pulse .mk-app [data-server-results] {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

body.miki-pulse .mk-app .mk-server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 18px 18px;
}

body.miki-pulse .mk-app .mk-search .mk-server-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: start;
  align-items: center;
  gap: 2px 10px;
  min-width: 0;
  width: 100%;
  min-height: 60px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  text-align: left;
}

body.miki-pulse .mk-app .mk-search .mk-server-choice.is-active {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: inset 3px 0 var(--accent);
}

body.miki-pulse .mk-app .mk-server-choice .mk-server-choice-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
  width: 100%;
}

body.miki-pulse .mk-app .mk-server-choice-name b {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

body.miki-pulse .mk-app .mk-server-choice-name small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

body.miki-pulse .mk-app .mk-server-choice em {
  grid-column: 2;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}

body.miki-pulse .mk-app .mk-server-choice img {
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  object-fit: contain;
}

body.miki-pulse .mk-app .mk-search .mk-server-choice[hidden],
body.miki-pulse .mk-app .mk-server-empty[hidden] {
  display: none !important;
}

body.miki-pulse .mk-app .mk-server-empty {
  padding: 0 18px 18px;
  font-size: 14px;
}

/* Detail pages: keep data adjacent, avoid stretching short sections to the
   height of the neighbouring calculator, and never clip table identities. */
body.miki-pulse .mk-app .mk-ft-detail { gap: 12px; }
body.miki-pulse .mk-app .mk-ft-detail__head {
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
}
body.miki-pulse .mk-app .mk-ft-detail__head > .mk-back {
  justify-self: start;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
}
body.miki-pulse .mk-app .mk-ft-detail__overview {
  padding: 12px 14px;
  gap: 5px;
}
body.miki-pulse .mk-app .mk-ft-detail__overview > header h1 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.2;
  margin: 0;
}
body.miki-pulse .mk-app .mk-ft-detail__overview > header > div > small { display: none; }
body.miki-pulse .mk-app .mk-ft-detail__overview > p { margin: 0; font-size: 13px; }
body.miki-pulse .mk-app .mk-ft-detail__description { font-size: 12px; }
body.miki-pulse .mk-app .mk-ft-detail__description > summary { cursor: pointer; color: var(--muted); }
body.miki-pulse .mk-app .mk-ft-detail__description p { margin-top: 6px; font-size: 13px; }
body.miki-pulse .mk-app .mk-ft-detail__category { margin-top: 3px; font-size: 12px; }
body.miki-pulse .mk-app .mk-ft-detail__price strong { font-size: 23px; font-weight: 650; }
body.miki-pulse .mk-app .mk-ft-detail__layout {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 12px;
}
body.miki-pulse .mk-app .mk-ft-detail__gallery .mk-ft-detail__visual {
  min-height: 0;
  height: clamp(220px, 26vh, 300px);
  aspect-ratio: auto;
}
body.miki-pulse .mk-app .mk-ft-detail__gallery .mk-ft-detail__visual > img {
  position:absolute;
  inset:0;
  box-sizing:border-box;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:100% !important;
  padding:10px;
  object-fit:contain !important;
  object-position:center;
}
body.miki-pulse .mk-app .mk-ft-detail__section {
  align-content: start;
  gap: 8px;
  padding: 12px;
}
body.miki-pulse .mk-app .mk-ft-detail__section > header h3 { margin: 0; font-size: 18px; font-weight: 650; }
body.miki-pulse .mk-app .mk-ft-detail__section:not(.mk-ft-detail__overview) > header { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
body.miki-pulse .mk-app .mk-ft-detail__section > header > div > small { display: none; }
body.miki-pulse .mk-app .mk-ft-detail__section > header > span { font-size: 12px; color: var(--muted); }
body.miki-pulse .mk-app .mk-ft-facts__item { min-height: 42px; padding: 6px 9px; gap: 6px; }
body.miki-pulse .mk-app .mk-ft-facts__item:has(> button) { grid-template-columns: minmax(0, 1fr) auto 30px; padding-right: 6px; }
body.miki-pulse .mk-app .mk-ft-facts__item > button { grid-column: 3; grid-row: 1; min-height: 30px; width: 30px; padding: 0; }
body.miki-pulse .mk-app .mk-ft-facts__item small { font-size: 11px; font-weight: 450; }
body.miki-pulse .mk-app .mk-ft-facts__item b { font-size: 13px; font-weight: 550; }
body.miki-pulse .mk-app .mk-ft-detail__extras { align-items: start; gap: 12px; }
body.miki-pulse .mk-app .mk-ft-tuning__grid { display: grid; gap: 6px; }
body.miki-pulse .mk-app .mk-ft-tuning__group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 3px 12px;
  padding: 9px 10px;
}
body.miki-pulse .mk-app .mk-ft-tuning__group > header { grid-column: 1; gap: 8px; }
body.miki-pulse .mk-app .mk-ft-tuning__group > header small { display: none; }
body.miki-pulse .mk-app .mk-ft-tuning__group > header b,
body.miki-pulse .mk-app .mk-ft-tuning__group > header strong { font-size: 13px; font-weight: 600; }
body.miki-pulse .mk-app .mk-ft-tuning__group > p { grid-column: 1; margin: 0; font-size: 11px; line-height: 1.4; }
body.miki-pulse .mk-app .mk-ft-tuning__row {
  grid-column: 2;
  grid-row: 1 / 3;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 5px;
  padding: 0;
  min-height: 36px;
}
body.miki-pulse .mk-app .mk-ft-tuning__row > button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; }
body.miki-pulse .mk-app .mk-ft-tuning__group > small { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: center; pointer-events: none; margin: 0; text-align: center; font-size: 12px; }
body.miki-pulse .mk-app .mk-ft-tuning__row > .mk-ft-tuning__stepper { visibility: hidden; }
body.miki-pulse .mk-app .mk-ft-tuning__total { padding: 7px 10px; }
body.miki-pulse .mk-app .mk-ft-tuning__total b { font-size: 18px; font-weight: 650; }
body.miki-pulse .mk-app .mk-ft-paint { align-self: start; align-content: start; }
body.miki-pulse .mk-app .mk-ft-paint > details { margin: 0; }
body.miki-pulse .mk-app .mk-ft-paint__grid { grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); padding: 6px 0; gap: 6px; }
body.miki-pulse .mk-app .mk-ft-paint__swatch { aspect-ratio: auto; min-height: 54px; padding: 8px; gap: 4px; }
body.miki-pulse .mk-app .mk-ft-paint__swatch b { font-size: 13px; font-weight: 600; }
body.miki-pulse .mk-app .mk-ft-market__chips { flex-wrap: wrap; overflow: visible; }
body.miki-pulse .mk-app .mk-ft-market__chip { flex: 0 0 auto; min-height: 36px; padding: 5px 8px; }
body.miki-pulse .mk-app .mk-ft-market__chip img { width: 18px; height: 18px; }
body.miki-pulse .mk-app .mk-ft-market__chip small { display: none; }
body.miki-pulse .mk-app .mk-ft-market__table { min-width: 620px; font-size: 13px; }
body.miki-pulse .mk-app .mk-ft-market__table th,
body.miki-pulse .mk-app .mk-ft-market__table td { height: 36px; padding: 5px 10px; }
body.miki-pulse .mk-app .mk-ft-market__table thead th { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.miki-pulse .mk-app .mk-ft-market__table tbody th { font-weight: 500; text-transform: none; letter-spacing: 0; }
body.miki-pulse .mk-app .mk-ft-market__server { display: grid; grid-template-columns: 22px 38px minmax(0, 1fr); gap: 8px; width: 100%; font-size: 12px; }
body.miki-pulse .mk-app .mk-ft-market__server img { width: 22px; height: 22px; object-fit: contain; }
body.miki-pulse .mk-app .mk-ft-market__server small { font-size: 12px; white-space: normal; }
body.miki-pulse .mk-app:not(.is-embedded).is-detail-view .mk-search { padding: 0; border: 0 !important; background: transparent !important; gap: 10px; }
body.miki-pulse .mk-app:not(.is-embedded).is-detail-view .mk-search > .mk-field > span { display: none; }

@media (max-width: 900px) {
  body.miki-pulse .mk-app .mk-server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.miki-pulse .mk-app .mk-ft-detail__layout { grid-template-columns: minmax(0, 1fr); }
  body.miki-pulse .mk-app .mk-ft-detail__extras { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  body.miki-pulse .mk-app .mk-server-tools { grid-template-columns: minmax(0, 1fr); }
  body.miki-pulse .mk-app .mk-server-grid { grid-template-columns: minmax(0, 1fr); }
  body.miki-pulse .mk-app .mk-server-search input { font-size: 16px; }
  body.miki-pulse .mk-app .mk-ft-detail__overview > header { align-items: start; flex-wrap: wrap; gap: 8px; }
  body.miki-pulse .mk-app .mk-ft-detail__price { text-align: left; }
  body.miki-pulse .mk-app .mk-ft-tuning__group { grid-template-columns: minmax(0, 1fr); }
  body.miki-pulse .mk-app .mk-ft-tuning__row { grid-column: 1; grid-row: 3; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  body.miki-pulse .mk-app .mk-ft-tuning__row > button { min-width: 44px; width: 44px; min-height: 44px; height: 44px; }
  body.miki-pulse .mk-app .mk-ft-tuning__group > small { grid-column: 1; grid-row: 3; }
  body.miki-pulse .mk-app .mk-ft-facts { grid-template-columns: minmax(0, 1fr); }
  body.miki-pulse .mk-app .mk-ft-facts__item { grid-template-columns: minmax(0, 1fr) auto; }
  body.miki-pulse .mk-app .mk-ft-facts__item b { text-align: right; }
  body.miki-pulse .mk-app .mk-ft-paint__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Generic Marketplace surface shared by Majestic and Russia Online. Keep the
   specialised FT transport and clothing components outside this scope. */
body.miki-pulse .mk-app {
  --mk-unified-surface: #191e30;
  --mk-unified-media: #101422;
  --mk-unified-line: #30364b;
  --mk-unified-text: #f3f5ff;
  --mk-unified-muted: #a3aac5;
  --mk-unified-accent: #ab91ff;
}

/* One embedded project switch lives outside the search form, so it remains
   reachable when the detail view hides search without duplicating listeners. */
body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin: 0 0 10px;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--mk-unified-surface);
  color: var(--mk-unified-muted);
}

body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar > span {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
}

body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar .mk-market-project-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  min-height: 0;
}

body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar .mk-market-project-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--mk-unified-muted);
  box-shadow: none;
  font-size: 11px;
  font-weight: 650;
}

body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar .mk-market-project-choice:is(:hover, .is-active) {
  border: 0;
  background: #302747;
  color: var(--mk-unified-text);
  box-shadow: none;
}

body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar .mk-market-project-choice:focus-visible {
  outline: 2px solid var(--mk-unified-accent);
  outline-offset: 2px;
}

body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar .mk-market-project-choice img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar .mk-market-project-choice span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.miki-pulse .mk-app.is-embedded .mk-search {
  grid-template-columns: minmax(180px, 1.25fr) minmax(210px, 1fr) minmax(150px, .75fr) 92px auto auto;
}

body.miki-pulse .mk-app .mk-grid:has(> .mk-unified-card) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.miki-pulse .mk-app .mk-card.mk-unified-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 144px minmax(0, 1fr) auto;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: var(--mk-unified-surface);
  color: var(--mk-unified-text);
  box-shadow: none;
  transition: border-color .16s ease, background-color .16s ease;
}

body.miki-pulse .mk-app .mk-card.mk-unified-card:hover {
  background: #1d2337;
  box-shadow: none;
  transform: none;
}

body.miki-pulse .mk-app .mk-unified-card__media {
  position: relative;
  isolation: auto;
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 144px;
  min-height: 144px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--mk-unified-media);
  color: var(--mk-unified-muted);
}

body.miki-pulse .mk-app .mk-unified-card__media > img {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 9px;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
}

body.miki-pulse .mk-app .mk-unified-card__media > img:is(.is-active, :only-of-type) {
  opacity: 1;
}

body.miki-pulse .mk-app .mk-unified-card__media.is-empty > span {
  max-width: 22ch;
  padding: 10px;
  color: var(--mk-unified-muted);
  font-size: 12px;
  text-align: center;
}

body.miki-pulse .mk-app .mk-unified-card__media .mk-card-gallery-nav {
  position: absolute;
  z-index: 3;
  inset: 50% 8px auto;
  display: flex;
  justify-content: space-between;
  width: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

body.miki-pulse .mk-app .mk-unified-card__media .mk-card-gallery-nav button {
  pointer-events: auto;
}

body.miki-pulse .mk-app .mk-unified-card__media .mk-card-gallery-dots {
  position: absolute;
  z-index: 3;
  right: auto;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

body.miki-pulse .mk-app .mk-unified-card .mk-unified-card__photo-count {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  top: 8px;
  right: 8px;
  bottom: auto;
  left: auto;
  min-height: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: #101422dc;
  color: var(--mk-unified-text);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

body.miki-pulse .mk-app .mk-unified-card__body {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 11px 13px 8px;
}

body.miki-pulse .mk-app .mk-unified-card__eyebrow {
  min-width: 0;
  color: var(--mk-unified-muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .03em;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-unified-card__title {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--mk-unified-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.miki-pulse .mk-app .mk-unified-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 11px;
  min-width: 0;
  margin-top: 2px;
}

body.miki-pulse .mk-app .mk-unified-card__metric {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-unified-card__metric small {
  color: var(--mk-unified-muted);
  font-size: 10px;
  line-height: 1.2;
}

body.miki-pulse .mk-app .mk-unified-card__metric b {
  color: var(--mk-unified-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-unified-card__status {
  color: var(--mk-unified-muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-unified-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 7px 13px 11px;
  border: 0;
  background: transparent;
}

body.miki-pulse .mk-app .mk-unified-card__price {
  display: grid;
  flex: 0 0 auto;
  gap: 1px;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-unified-card__price small {
  color: var(--mk-unified-muted);
  font-size: 10px;
  line-height: 1.25;
}

body.miki-pulse .mk-app .mk-unified-card__price b {
  color: var(--mk-unified-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
}

body.miki-pulse .mk-app .mk-unified-card__actions {
  position: relative;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: end;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 2px;
  margin-left: auto;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-unified-card__actions :is(.mk-watch, .mk-compare-button) {
  pointer-events: auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  min-height: 32px !important;
  padding: 3px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--mk-unified-muted) !important;
  box-shadow: none !important;
}

body.miki-pulse .mk-app .mk-unified-card__actions :is(.mk-watch, .mk-compare-button) :is(em, small) {
  display: none;
}

body.miki-pulse .mk-app .mk-unified-card__actions :is(.mk-watch, .mk-compare-button) > span {
  font-size: 18px;
  line-height: 1;
}

body.miki-pulse .mk-app .mk-unified-card__actions :is(.mk-watch, .mk-compare-button):is(:hover, .is-active) {
  background: #302747 !important;
  color: var(--mk-unified-accent) !important;
}

body.miki-pulse .mk-app .mk-unified-card__actions :is(.mk-watch, .mk-compare-button):focus-visible,
body.miki-pulse .mk-app .mk-unified-card__actions .mk-unified-card__action:focus-visible {
  outline: 2px solid var(--mk-unified-accent);
  outline-offset: 2px;
}

body.miki-pulse .mk-app .mk-unified-card__action {
  pointer-events: none;
  color: var(--mk-unified-accent);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

/* Vehicle facts use the same rows and price/action footer in both projects. */
body.miki-pulse .mk-app .mk-card.mk-unified-card[data-market-kind="vehicles"] {
  grid-template-rows: 132px minmax(0, 1fr) auto;
}

body.miki-pulse .mk-app .mk-unified-card[data-market-kind="vehicles"] .mk-unified-card__media {
  height: 132px;
  min-height: 132px;
}

body.miki-pulse .mk-app .mk-unified-card[data-market-kind="vehicles"] .mk-unified-card__body {
  gap: 5px;
  padding: 9px 11px 5px;
}

body.miki-pulse .mk-app .mk-unified-card[data-market-kind="vehicles"] .mk-unified-card__title {
  font-size: 15px;
}

body.miki-pulse .mk-app .mk-unified-card[data-market-kind="vehicles"] .mk-unified-card__metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 7px;
  margin-top: 0;
}

body.miki-pulse .mk-app .mk-unified-card[data-market-kind="vehicles"] .mk-unified-card__metric {
  gap: 1px;
}

body.miki-pulse .mk-app .mk-unified-card[data-market-kind="vehicles"] .mk-unified-card__metric :is(small, b) {
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-unified-card[data-market-kind="vehicles"] .mk-unified-card__metric small {
  font-size: 9px;
}

body.miki-pulse .mk-app .mk-unified-card[data-market-kind="vehicles"] .mk-unified-card__metric b {
  font-size: 11px;
}

body.miki-pulse .mk-app .mk-unified-card[data-market-kind="vehicles"] .mk-unified-card__footer {
  padding: 5px 11px 9px;
}

/* FT transport keeps its own facts, but uses the same image-led PULSE card
   rhythm. Explicit grid areas matter: the toolbar precedes media in the DOM. */
body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card {
  grid-template-areas: "media" "toolbar" "body" "footer";
  grid-template-rows: 144px auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: var(--mk-unified-surface);
  color: var(--mk-unified-text);
  box-shadow: none;
  transform: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card:is(:hover, :focus-within) {
  border: 0;
  background: #1d2337;
  box-shadow: none;
  transform: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__media {
  grid-area: media;
  isolation: auto;
  height: 144px;
  min-height: 144px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: var(--mk-unified-media);
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__media img {
  box-sizing: border-box;
  padding: 9px;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__media .mk-ft-card__nav {
  position: absolute;
  z-index: 3;
  inset: 50% 8px auto;
  width: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__nav button {
  pointer-events: auto;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__media .mk-ft-card__dots {
  position: absolute;
  z-index: 3;
  right: auto;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__photo-count {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  bottom: auto;
  left: auto;
  min-height: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: #101422dc;
  color: var(--mk-unified-text);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-media-pill {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: #101422dc;
  color: var(--mk-unified-text);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__toolbar {
  grid-area: toolbar;
  min-height: 0;
  align-items: start;
  gap: 7px;
  padding: 10px 13px 4px;
  border: 0;
  background: transparent;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__eyebrow {
  position: static;
  z-index: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mk-unified-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .03em;
  line-height: 1.3;
  text-transform: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__title {
  margin: 2px 0 0;
  color: var(--mk-unified-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__actions {
  flex-wrap: nowrap;
  justify-content: end;
  gap: 2px;
  pointer-events: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__actions :is(.mk-watch, .mk-compare-button) {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px !important;
  padding: 3px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--mk-unified-muted) !important;
  box-shadow: none !important;
  pointer-events: auto;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__actions :is(.mk-watch, .mk-compare-button):is(:hover, .is-active) {
  background: #302747 !important;
  color: var(--mk-unified-accent) !important;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__actions :is(.mk-watch, .mk-compare-button) em {
  display: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__body {
  grid-area: body;
  gap: 7px;
  padding: 2px 13px 7px;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__body > .mk-ft-card__eyebrow {
  display: block;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__real-name {
  margin: -5px 0 0;
  color: var(--mk-unified-muted);
  font-size: 11px;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card :is(.mk-ft-card__stats, .mk-ft-card__compact, .mk-ft-card__market) {
  display: grid;
  gap: 7px;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__stats,
body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__market {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__stat {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0;
  border-radius: 0;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__compact > * {
  padding: 0;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__compact > * + * {
  border: 0;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__market {
  padding-top: 0;
  border: 0;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card :is(.mk-ft-card__stat, .mk-ft-card__compact, .mk-ft-card__market) small {
  color: var(--mk-unified-muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card :is(.mk-ft-card__stat, .mk-ft-card__compact, .mk-ft-card__market) b {
  color: var(--mk-unified-text);
  font-size: 12px;
  font-weight: 600;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__footer {
  grid-area: footer;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 5px 13px 11px;
  border: 0;
  background: transparent;
  color: var(--mk-unified-text);
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__price small {
  color: var(--mk-unified-muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__price b {
  color: var(--mk-unified-text);
  font-size: 18px;
  font-weight: 700;
}

body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__details {
  display: inline;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mk-unified-accent);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 620px) {
  body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card {
    grid-template-rows: 126px auto minmax(0, 1fr) auto;
  }

  body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__media {
    height: 126px;
    min-height: 126px;
  }

  body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__toolbar {
    padding: 10px 11px 4px;
  }

  body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__body {
    padding: 2px 11px 7px;
  }

  body.miki-pulse .mk-app:not(.is-detail-view) .mk-card.mk-ft-card .mk-ft-card__footer {
    padding: 5px 11px 10px;
  }
}

/* The generic detail is a clean frame, independent of embedded/public modes. */
body.miki-pulse .mk-app .mk-detail:not([hidden]):not(.is-ft-detail):not(.is-yacht-detail):not(.is-clothing-detail):is(.mk-unified-detail, :has(> .mk-unified-detail)) {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.miki-pulse .mk-app .mk-unified-detail {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: var(--mk-unified-text);
}

body.miki-pulse .mk-app .mk-unified-detail__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--mk-unified-surface);
}

body.miki-pulse .mk-app .mk-unified-detail__back {
  display: inline-flex;
  align-items: center;
  align-self: start;
  width: fit-content;
  min-height: 34px !important;
  padding: 5px 8px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--mk-unified-muted) !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

body.miki-pulse .mk-app .mk-unified-detail__back:hover {
  background: #302747 !important;
  color: var(--mk-unified-accent) !important;
}

body.miki-pulse .mk-app .mk-unified-detail__back:focus-visible {
  outline: 2px solid var(--mk-unified-accent);
  outline-offset: 2px;
}

body.miki-pulse .mk-app .mk-unified-detail__identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-unified-detail__identity > :is(small, span) {
  color: var(--mk-unified-muted);
  font-size: 11px;
  line-height: 1.3;
}

body.miki-pulse .mk-app .mk-unified-detail__identity > p {
  max-width: 70ch;
  margin: 0;
  color: var(--mk-unified-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.miki-pulse .mk-app .mk-unified-detail__title {
  margin: 0;
  color: var(--mk-unified-text);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-unified-detail__price {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 0;
  text-align: right;
}

body.miki-pulse .mk-app .mk-unified-detail__price small {
  color: var(--mk-unified-muted);
  font-size: 11px;
}

body.miki-pulse .mk-app .mk-unified-detail__price :is(b, strong) {
  color: var(--mk-unified-text);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-unified-detail__price .mk-detail-save-actions {
  display: flex;
  justify-content: end;
  gap: 5px;
  margin-top: 3px;
}

body.miki-pulse .mk-app .mk-unified-detail__price .mk-detail-save-actions :is(.mk-watch, .mk-compare-button) {
  min-height: 32px !important;
  padding: 4px 7px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #252039 !important;
  color: var(--mk-unified-accent) !important;
  box-shadow: none !important;
  font-size: 11px;
}

body.miki-pulse .mk-app .mk-unified-detail__price .mk-detail-save-actions :is(.mk-watch, .mk-compare-button):hover {
  background: #302747 !important;
}

body.miki-pulse .mk-app .mk-unified-detail__price .mk-detail-save-actions [data-ft-share] {
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: #252039;
  color: var(--mk-unified-accent);
  font-size: 11px;
}

body.miki-pulse .mk-app .mk-unified-detail__price .mk-detail-save-actions [data-ft-share]:hover {
  background: #302747;
}

body.miki-pulse .mk-app .mk-unified-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-unified-detail__media {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 7px;
  min-width: 0;
  margin: 0;
  color: var(--mk-unified-muted);
}

body.miki-pulse .mk-app .mk-unified-detail__visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(220px, 26vh, 300px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--mk-unified-media);
}

body.miki-pulse .mk-app .mk-unified-detail__visual img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 12px;
  object-fit: contain;
  object-position: center;
}

body.miki-pulse .mk-app .mk-unified-detail__visual .mk-media-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--mk-unified-muted);
  font-size: 12px;
  text-align: center;
}

body.miki-pulse .mk-app .mk-unified-detail__thumbs {
  display: flex;
  gap: 6px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px;
}

body.miki-pulse .mk-app .mk-unified-detail__thumbs button {
  flex: 0 0 64px;
  width: 64px;
  height: 50px;
  padding: 2px;
  border: 1px solid var(--mk-unified-line);
  border-radius: 7px;
  background: var(--mk-unified-media);
}

body.miki-pulse .mk-app .mk-unified-detail__thumbs button.is-active {
  border-color: var(--mk-unified-accent);
  box-shadow: none;
}

body.miki-pulse .mk-app .mk-unified-detail__thumbs img {
  object-fit: contain;
}

body.miki-pulse .mk-app .mk-unified-detail__media.is-empty > :is(span, p) {
  max-width: 28ch;
  padding: 14px;
  color: var(--mk-unified-muted);
  font-size: 13px;
  text-align: center;
}

body.miki-pulse .mk-app .mk-unified-detail__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--mk-unified-surface);
}

body.miki-pulse .mk-app .mk-unified-detail__facts .mk-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
  min-width: 0;
  margin: 0;
}

body.miki-pulse .mk-app .mk-unified-detail__facts .mk-panel-head h2 {
  margin: 0;
  color: var(--mk-unified-text);
  font-size: 16px;
  font-weight: 700;
}

body.miki-pulse .mk-app .mk-unified-detail__facts .mk-panel-head small {
  color: var(--mk-unified-muted);
  font-size: 10px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-unified-detail__facts :is(.mk-live-grid, .mk-specs) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0;
}

body.miki-pulse .mk-app .mk-unified-detail__facts :is(.mk-live-grid > span, .mk-specs > .mk-spec) {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 43px;
  padding: 6px 2px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body.miki-pulse .mk-app .mk-unified-detail__facts :is(.mk-live-grid, .mk-specs) small {
  color: var(--mk-unified-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}

body.miki-pulse .mk-app .mk-unified-detail__facts :is(.mk-live-grid, .mk-specs) b {
  color: var(--mk-unified-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-unified-detail__fact {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #151a29;
}

body.miki-pulse .mk-app .mk-unified-detail__fact small {
  color: var(--mk-unified-muted);
  font-size: 10px;
  line-height: 1.25;
}

body.miki-pulse .mk-app .mk-unified-detail__fact b {
  color: var(--mk-unified-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-unified-detail__extras {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mk-unified-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.miki-pulse .mk-app .mk-unified-detail__extras details {
  overflow: hidden;
  border: 1px solid var(--mk-unified-line);
  border-radius: 10px;
  background: var(--mk-unified-surface);
}

body.miki-pulse .mk-app .mk-unified-detail__extras summary {
  padding: 10px 12px;
  background: var(--mk-unified-surface);
  color: var(--mk-unified-text);
  font-size: 13px;
  font-weight: 650;
}

body.miki-pulse .mk-app .mk-unified-detail__extras :is(p, h2, h3) {
  margin: 0;
}

body.miki-pulse .mk-app .mk-unified-detail__extras :is(h2, h3) {
  color: var(--mk-unified-text);
  font-size: 14px;
}

body.miki-pulse .mk-app .mk-unified-detail__vehicle-extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-unified-detail__vehicle-extras .mk-ft-detail__section {
  min-width: 0;
  border: 0;
  background: var(--mk-unified-surface);
}

body.miki-pulse .mk-app .mk-unified-detail__vehicle-extras .mk-ft-market {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  body.miki-pulse .mk-app .mk-unified-detail__vehicle-extras {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A project change remains available while any Marketplace item is open. */
body.miki-pulse .mk-app:not(.is-embedded).is-detail-view .mk-project-bar {
  display: block;
  margin: 0;
  border-bottom: 1px solid var(--mk-unified-line);
}

body.miki-pulse .mk-app:not(.is-embedded).is-detail-view .mk-project-bar__row {
  min-height: 42px;
}

body.miki-pulse .mk-app:not(.is-embedded).is-detail-view .mk-market-project-choice {
  min-height: 33px;
  padding: 6px 14px;
  border-radius: 9px 9px 0 0;
  font-size: 11px;
}

@media (max-width: 1180px) {
  body.miki-pulse .mk-app .mk-grid:has(> .mk-unified-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1380px) {
  body.miki-pulse .mk-app.is-embedded .mk-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.miki-pulse .mk-app.is-embedded .mk-search {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  body.miki-pulse .mk-app .mk-unified-detail__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar {
    padding: 6px;
  }

  body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar > span {
    display: none;
  }

  body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar .mk-market-project-switch {
    width: 100%;
    justify-content: stretch;
  }

  body.miki-pulse .mk-app.is-embedded .mk-embedded-project-bar .mk-market-project-choice {
    flex: 1 1 0;
  }

  body.miki-pulse .mk-app .mk-grid:has(> .mk-unified-card) {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.miki-pulse .mk-app .mk-card.mk-unified-card {
    grid-template-rows: 126px minmax(0, 1fr) auto;
  }

  body.miki-pulse .mk-app .mk-unified-card__media {
    height: 126px;
    min-height: 126px;
  }

  body.miki-pulse .mk-app .mk-card.mk-unified-card[data-market-kind="vehicles"] {
    grid-template-rows: 116px minmax(0, 1fr) auto;
  }

  body.miki-pulse .mk-app .mk-unified-card[data-market-kind="vehicles"] .mk-unified-card__media {
    height: 116px;
    min-height: 116px;
  }

  body.miki-pulse .mk-app .mk-unified-card__body {
    padding: 10px 11px 7px;
  }

  body.miki-pulse .mk-app .mk-unified-card__footer {
    padding: 6px 11px 10px;
  }

  body.miki-pulse .mk-app .mk-unified-detail__head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 10px 11px;
  }

  body.miki-pulse .mk-app .mk-unified-detail__back {
    grid-column: 1 / -1;
    min-height: 32px !important;
  }

  body.miki-pulse .mk-app .mk-unified-detail__price {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  body.miki-pulse .mk-app .mk-unified-detail__price .mk-detail-save-actions {
    justify-content: start;
  }

  body.miki-pulse .mk-app .mk-unified-detail__visual {
    height: 210px;
  }

  body.miki-pulse .mk-app .mk-unified-detail__facts {
    padding: 10px;
  }
}

/* One item-page frame for transport, clothing, and other market records. */
body.miki-pulse .mk-app .mk-detail-top {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-detail-top__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-detail-top__back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--mk-unified-surface);
  color: var(--mk-unified-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

body.miki-pulse .mk-app .mk-detail-top__back:hover,
body.miki-pulse .mk-app .mk-detail-top__actions > :is(button, .mk-watch, .mk-compare-button):hover {
  background: #302747;
  color: var(--mk-unified-accent);
}

body.miki-pulse .mk-app .mk-detail-top__back:focus-visible,
body.miki-pulse .mk-app .mk-detail-top__actions :is(button, .mk-watch, .mk-compare-button):focus-visible {
  outline: 2px solid var(--mk-unified-accent);
  outline-offset: 2px;
}

body.miki-pulse .mk-app .mk-detail-top__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-detail-top__actions :is(button, .mk-watch, .mk-compare-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  background: #252039;
  color: var(--mk-unified-accent);
  box-shadow: none;
  font-size: 11px;
}

body.miki-pulse .mk-app .mk-detail-top__actions [data-clothing-save]:empty {
  display: none;
}

body.miki-pulse .mk-app .mk-detail-top__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--mk-unified-surface);
}

body.miki-pulse .mk-app .mk-detail-top__identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.miki-pulse .mk-app .mk-detail-top__identity > small,
body.miki-pulse .mk-app .mk-detail-top__subtitle {
  color: var(--mk-unified-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-detail-top__title {
  margin: 0;
  color: var(--mk-unified-text);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-detail-top__identity > p {
  max-width: 70ch;
  margin: 0;
  color: var(--mk-unified-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.miki-pulse .mk-app .mk-detail-top__identity > details {
  color: var(--mk-unified-muted);
  font-size: 12px;
}

body.miki-pulse .mk-app .mk-detail-top__identity > details p {
  margin: 5px 0 0;
}

body.miki-pulse .mk-app .mk-detail-top__price {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 0;
  text-align: right;
}

body.miki-pulse .mk-app .mk-detail-top__price small {
  color: var(--mk-unified-muted);
  font-size: 11px;
}

body.miki-pulse .mk-app .mk-detail-top__price :is(b, strong) {
  color: var(--mk-unified-text);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

body.miki-pulse .mk-app .mk-unified-detail__media,
body.miki-pulse .mk-app .mk-clothing__media {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--mk-unified-surface);
}

body.miki-pulse .mk-app .mk-detail.is-clothing-detail {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.miki-pulse .mk-app .mk-clothing__layout {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 12px;
}

body.miki-pulse .mk-app .mk-clothing__media {
  order: 0;
}

body.miki-pulse .mk-app .mk-clothing__visual {
  height: clamp(220px, 26vh, 300px);
  border-radius: 10px;
  background: var(--mk-unified-media);
}

body.miki-pulse .mk-app .mk-clothing__visual img {
  max-height: 100%;
  object-fit: contain;
}

body.miki-pulse .mk-app .mk-clothing__data {
  align-content: start;
  gap: 9px;
  padding: 12px;
  border-radius: 12px;
  background: var(--mk-unified-surface);
}

body.miki-pulse .mk-app .mk-clothing__metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
}

@media (max-width: 900px) {
  body.miki-pulse .mk-app .mk-clothing__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  body.miki-pulse .mk-app .mk-detail-top__hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 11px;
  }

  body.miki-pulse .mk-app .mk-detail-top__price {
    justify-items: start;
    text-align: left;
  }

  body.miki-pulse .mk-app .mk-detail-top__toolbar {
    align-items: flex-start;
  }

  body.miki-pulse .mk-app .mk-unified-detail__media,
  body.miki-pulse .mk-app .mk-clothing__media,
  body.miki-pulse .mk-app .mk-clothing__data {
    padding: 10px;
  }
}

/* Keep renderer fallbacks visible instead of legacy broken-image overlays. */
body.miki-pulse .mk-app .mk-unified-card__media.is-broken::after,
body.miki-pulse .mk-app .mk-unified-detail__visual.is-broken::after {
  content: none;
  display: none;
}

/* A missing RO clothing photo remains an honest, consistent media state. */
body.miki-pulse .mk-app .mk-unified-card__media.is-empty > span {
  min-width: 120px;
  padding: 13px 15px;
  border: 1px dashed var(--mk-unified-line);
  border-radius: 8px;
  background: #171b2a;
}

body.miki-pulse .mk-app .mk-unified-detail__visual .mk-media-fallback,
body.miki-pulse .mk-app .mk-clothing__visual [data-clothing-image-missing]:not([hidden]) {
  display: grid;
  place-items: center;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  margin: 12px;
  border: 1px dashed var(--mk-unified-line);
  border-radius: 8px;
  background: #171b2a;
  color: var(--mk-unified-muted);
  font-size: 12px;
  text-align: center;
}

/* G35: H1 receives programmatic focus after unified Marketplace detail navigation.
   Keep that focus for screen readers and subsequent Tab navigation without the white box. */
body.miki-pulse .mk-app .mk-unified-detail h1[data-detail-title][tabindex="-1"]:focus {
  outline: none;
}
