/* Khdmli Identity v2 — shared presentation contract.
   Explicit component selectors preserve routing, filter state and commerce.
   !important is limited to this compatibility boundary with legacy page CSS. */
html:root, html:root body,
html:root body :is(.ks-wrap,.kd-page,.market-wrap,.search-shell,.app) {
  --kh-brand:#155eef!important; --kh-brand-dark:#124bbf!important;
  --kh-primary:#155eef!important; --kh-primary-2:#155eef!important;
  --kh-primary-dark:#124bbf!important; --kh-accent:#f79009!important;
  --kh-accent-soft:#fff4e5!important; --kh-background:#f7f9fc!important;
  --kh-bg:#f7f9fc!important; --kh-surface:#fff!important; --kh-card:#fff!important;
  --kh-ink:#182230!important; --kh-text:#182230!important; --kh-muted:#526174!important;
  --kh-line:#dfe6ef!important; --kh-border:#dfe6ef!important;
  --kh-radius:14px!important; --kh-elevation:0 3px 14px #18223008!important;
  --blue:#155eef!important; --blue-dark:#124bbf!important; --blue-soft:#edf3ff!important;
  --fb:#155eef!important; --fb2:#edf3ff!important; --orange:#f79009!important;
  --gold:#f79009!important; --bg:#f7f9fc!important; --text:#182230!important;
  --muted:#526174!important; --border:#dfe6ef!important; --line:#dfe6ef!important;
  --brand:#155eef!important; --brand2:#124bbf!important; --ink:#182230!important;
  --product-blue:#155eef!important; --product-ink:#182230!important;
  --product-border:#dfe6ef!important;
  --ui-width:1180px; --ui-gutter:28px; --ui-gap:12px;
  --ui-control:48px; --ui-control-radius:10px; --ui-photo:140px;
  --ui-card-radius:14px; --ui-hero-radius:20px;
}
html:root body {font-family:Tahoma,Arial,sans-serif!important;background:var(--kh-background)!important;color:var(--kh-ink);}
html:root body :is(input,button,select,textarea,.ks-wrap,.kd-page) {font-family:inherit!important;}
/* Page rails are relative to the parent, never to the viewport of a nested column. */
html:root body :is(.app,.kh-container,main.container,.page-shell,.page-wrap,.page-container,.faq-wrap,.market-wrap,.ks-wrap,.kd-wrap,.search-shell) {
  box-sizing:border-box!important;width:calc(100% - var(--ui-gutter))!important;
  max-width:var(--ui-width)!important;min-width:0!important;margin-inline:auto!important;
}
html:root body :is(.app,.kh-container,.page-shell,.page-wrap,.page-container,.market-wrap,.ks-wrap,.search-shell) :is(.main-content,.content-wrapper,.market-main,.ks-product-content,.search-shell) {
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:0!important;
}
html:root body .market-wrap {padding-inline:0!important;gap:20px!important;grid-template-columns:240px minmax(0,1fr)!important;}
html:root body .market-sidebar {box-sizing:border-box!important;width:100%!important;min-width:0!important;border:1px solid var(--kh-line)!important;border-radius:14px!important;background:#fff!important;padding:16px!important;box-shadow:none!important;}
html:root body :is(.kh-top,.kh-header-inner,.kh-nav-wrap) {max-width:1180px;margin-inline:auto;}
/* Every hero uses one surface, spacing and type scale. Content may expand it. */
html:root body :is(.hero,.hero-section,.kh-hero,.khd-hero,.khd-search-hero,.khd-social-hero,.brikolat-app-hero,.market-app-hero,.ks-hero,.ks-discover-hero,.ks-market-hero,.faq-hero,.cities-hero,.crafts-hero,.contact-hero,.page-hero,.app-hero,.khd-simple-hero,.khd-stores-hero,.store-hero,.kd-hero) {
  box-sizing:border-box!important;width:min(var(--ui-width),calc(100% - var(--ui-gutter)))!important;
  max-width:var(--ui-width)!important;min-width:0!important;min-height:180px!important;
  height:auto!important;margin:20px auto!important;padding:28px!important;
  background:linear-gradient(120deg,#124bbf 0%,#155eef 100%)!important;
  color:#fff!important;border:1px solid #ffffff24!important;border-radius:var(--ui-hero-radius)!important;
  box-shadow:0 8px 24px #124bbf12!important;overflow:visible!important;
}
html:root body :is(.app,.kh-container,main.container,.page-shell,.page-wrap,.page-container,.faq-wrap,.market-wrap,.ks-wrap) :is(.hero,.hero-section,.kh-hero,.khd-hero,.khd-search-hero,.khd-social-hero,.market-app-hero,.ks-hero,.ks-discover-hero,.faq-hero,.page-hero,.cities-hero) {
  width:100%!important;max-width:100%!important;margin-inline:0!important;
}
html:root body :is(.hero,.hero-section,.kh-hero,.khd-hero,.khd-search-hero,.khd-social-hero,.market-app-hero,.ks-hero,.ks-discover-hero,.faq-hero,.cities-hero,.crafts-hero,.contact-hero,.page-hero,.kd-hero) :is(h1,h2) {
  font-size:clamp(24px,2.6vw,34px)!important;line-height:1.45!important;font-weight:800!important;
  color:#fff!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important;margin:0 0 10px!important;
}
html:root body :is(.hero,.hero-section,.kh-hero,.khd-hero,.market-app-hero,.ks-hero,.ks-discover-hero,.faq-hero,.cities-hero,.page-hero,.kd-hero) > p,
html:root body :is(.hero-center,.ks-discover-heading) > p {color:#edf3ff!important;font-size:14px!important;line-height:1.8!important;margin:0!important;}
/* Surfaces and action hierarchy. */
html:root body :is(.pro-card,.craftsman-card,.artisan-card,.service-card,.real-service-card,.request-card,.request-mini-card,.city-card,.trade-card,.product-card,.faq-card,.fb-friend-card,.market-card,.ks-card,.community-post-card,.kd-project,.kd-service,.kd-plan) {
  box-sizing:border-box!important;min-width:0;border:1px solid var(--kh-line)!important;
  border-radius:var(--ui-card-radius)!important;background:#fff!important;box-shadow:var(--kh-elevation)!important;
}
html:root body :is(.btn-primary,.primary-btn,.kh-btn-primary,.search-submit,.search-btn-lux,.big-search-submit,.fb-primary,.filter-btn,.ks-discover-submit,.btn-main,.mobile-filter-apply,.kh-register-submit) {
  background:var(--kh-brand)!important;color:#fff!important;border-color:var(--kh-brand)!important;
  text-shadow:none!important;box-shadow:none!important;
}
html:root body :is(.fb-secondary,.ks-secondary,.reset-btn,.reset-btn-lux,.mobile-filter-reset,.ks-button-light,.ks-button-white) {
  background:#edf3ff!important;color:var(--kh-brand)!important;border-color:#d8e4ff!important;
}
html:root body :is(.ks-button,.fb-btn,.fb-follow) {-webkit-text-fill-color:currentColor!important;}
html:root body :is(.btn-primary,.primary-btn,.fb-primary,.filter-btn,.ks-discover-submit,.big-search-submit):hover {background:var(--kh-brand-dark)!important;}
html:root body :is(a,button,input,select,textarea,summary):focus-visible {outline:3px solid var(--kh-brand)!important;outline-offset:3px;}
html:root body :is(button,input,select):disabled {opacity:.55;cursor:not-allowed;}
/* Catalogs use available content width: this also works beside a sidebar. */
html:root body :is(.fb-grid,.market-grid,.ks-market-home .ks-grid,.ks-market-detail .ks-related .ks-grid) {
  display:grid!important;width:100%!important;min-width:0!important;padding:0!important;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,168px),1fr))!important;
  gap:var(--ui-gap)!important;align-items:stretch!important;
}
html:root body :is(.fb-friend-card,.market-card,.ks-market-home .ks-card,.ks-market-detail .ks-related .ks-card) {
  position:relative!important;display:flex!important;flex-direction:column!important;
  width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;
  padding:0!important;overflow:hidden;transform:none!important;
  transition:border-color .16s ease,box-shadow .16s ease!important;
}
html:root body :is(.fb-friend-card,.market-card,.ks-market-home .ks-card,.ks-market-detail .ks-related .ks-card):hover {border-color:#aabfe5!important;box-shadow:0 6px 18px #1822300d!important;}
html:root body :is(.fb-friend-img,.market-card .item-img,.ks-market-home .ks-card-photo,.ks-market-detail .ks-related .ks-card-photo) {
  display:block!important;position:relative;box-sizing:border-box!important;width:100%!important;
  height:var(--ui-photo)!important;min-height:var(--ui-photo)!important;max-height:var(--ui-photo)!important;
  flex:0 0 var(--ui-photo)!important;aspect-ratio:auto!important;margin:0!important;
  overflow:hidden!important;border-radius:0!important;background:#f3f6fb!important;
}
html:root body .fb-friend-img img {width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important;}
html:root body :is(.market-card .item-img,.ks-market-home .ks-card-photo,.ks-market-detail .ks-related .ks-card-photo) img {
  box-sizing:border-box!important;width:100%!important;height:100%!important;object-fit:contain!important;
  border-radius:0!important;padding:8px!important;background:#f3f6fb!important;
}
html:root body :is(.fb-friend-body,.market-card .item-body,.ks-market-home .ks-card-copy,.ks-market-detail .ks-related .ks-card-copy) {
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;flex:1;
  padding:10px!important;gap:4px!important;min-width:0!important;
}
html:root body :is(.fb-friend-body h3,.market-card .title,.ks-market-home .ks-card h2,.ks-market-detail .ks-related .ks-card h2) {
  display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  min-height:3em!important;height:auto!important;max-height:3em!important;
  font-size:13px!important;line-height:1.5!important;font-weight:700!important;margin:0!important;
  white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere;color:var(--kh-ink)!important;
}
html:root body :is(.ks-market-home .ks-card-copy,.ks-market-detail .ks-related .ks-card-copy) > small {font-size:10px!important;line-height:1.4!important;color:var(--kh-muted)!important;margin:0!important;}
html:root body :is(.market-card .price-line,.ks-market-home .ks-price,.ks-market-detail .ks-related .ks-price) {font-size:16px!important;font-weight:800!important;line-height:1.5!important;color:var(--kh-brand)!important;margin:0!important;overflow-wrap:anywhere;}
html:root body :is(.market-card .place,.market-card .ago,.ks-market-home .ks-seller,.ks-market-detail .ks-related .ks-seller) {font-size:11px!important;line-height:1.5!important;color:var(--kh-muted)!important;margin:0!important;min-height:0!important;height:auto!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html:root body :is(.fb-actions,.ks-market-home .ks-card-copy > .ks-button,.ks-market-detail .ks-related .ks-card-copy > .ks-button) {margin-top:auto!important;}
html:root body :is(.ks-market-home .ks-card-copy > .ks-button,.ks-market-detail .ks-related .ks-card-copy > .ks-button) {
  min-height:36px!important;height:auto!important;box-sizing:border-box!important;padding:7px 6px!important;
  font-size:11px!important;line-height:1.5!important;border-radius:8px!important;white-space:normal!important;
  background:var(--kh-brand)!important;border-color:var(--kh-brand)!important;color:#fff!important;
}
html:root body :is(.fb-btn,.fb-follow) {min-height:36px!important;height:auto!important;font-size:11px!important;}
html:root body .fb-follow {background:#f1f5f9!important;color:var(--kh-muted)!important;}
html:root body :is(.ks-market-home .ks-card-modes,.ks-market-detail .ks-related .ks-card-modes) {
  position:absolute!important;top:calc(var(--ui-photo) - 28px);inset-inline-start:8px;
  display:flex;flex-wrap:nowrap;gap:4px;max-width:calc(100% - 16px);margin:0!important;z-index:2;
}
html:root body .ks-card-modes:empty {display:none!important;}
html:root body .ks-card-modes span {padding:3px 6px!important;border-radius:5px!important;background:#fff4e5!important;color:#7a4100!important;font-size:10px!important;line-height:1.5!important;white-space:nowrap;}
html:root body .ks-card-photo :is(.ks-discount,.ks-sold) {top:8px!important;bottom:auto!important;left:auto!important;right:auto!important;max-width:calc(100% - 16px);border-radius:6px!important;padding:4px 6px!important;font-size:10px!important;}
html:root body .ks-card-photo .ks-discount {inset-inline-start:8px!important;}
html:root body .ks-card-photo .ks-sold {inset-inline-end:8px!important;background:#182230!important;color:#fff!important;}
html:root body :is(.fb-grid,.market-grid,.ks-grid) > :is(.empty,.ks-empty,.empty-state,.kh-global-banner,.mobile-feed-ad) {grid-column:1/-1!important;}
/* Search and filter controls: shared shape, 48px height and focus state.
   Visibility is owned by existing application scripts, not this stylesheet. */
html:root body :is(.big-search-filter,.ks-discover-form,.search-box,.khd-filter,.mobile-filter-sheet,.ks-filter,.ks-filter-panel) {
  box-sizing:border-box!important;min-width:0!important;border:1px solid var(--kh-line)!important;
  border-radius:14px!important;background:#fff!important;color:var(--kh-ink)!important;
  box-shadow:0 3px 14px #18223008!important;padding:16px!important;
}
html:root body :is(.big-search-filter,.ks-discover-form,.search-box) {max-width:100%!important;}
html:root body :is(.big-search-form,.ks-discover-primary,.smart-search-main) {gap:12px!important;align-items:end!important;min-width:0!important;}
html:root body .big-search-form {grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) auto!important;}
html:root body .ks-discover-primary {grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) auto!important;}
html:root body :is(.ks-discover-filters,.filter-form,.price-row,.search-action-row) {gap:12px!important;min-width:0!important;}
html:root body :is(.ks-discover-form,.big-search-form,.search-form-luxury,.filter-form,#searchBox,.mobile-filter-sheet) label {font-size:12px!important;font-weight:700!important;color:var(--kh-ink)!important;}
html:root body :is(.ks-discover-form,.big-search-form,.search-form-luxury,.filter-form,#searchBox,.mobile-filter-sheet,.search-box,.kh-search-integrated) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]),select) {
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:var(--ui-control)!important;min-height:var(--ui-control)!important;
  padding:0 12px!important;border:1px solid #cbd5e1!important;border-radius:var(--ui-control-radius)!important;
  background:#fff!important;color:var(--kh-ink)!important;font-size:14px!important;font-weight:400!important;
  box-shadow:none!important;text-shadow:none!important;
}
html:root body :is(.ks-discover-form,.big-search-form,.search-form-luxury,.filter-form,#searchBox,.mobile-filter-sheet,.search-box) input::placeholder {color:#66758a!important;opacity:1!important;}
html:root body :is(.ks-discover-form,.big-search-form,.search-form-luxury,.filter-form,#searchBox,.mobile-filter-sheet,.search-box) :is(input,select):focus-visible {outline:2px solid var(--kh-brand)!important;outline-offset:2px!important;}
html:root body :is(.smart-input-shell,.search-box > .search-input,#searchBox > .field,.premium-filter-search) {
  box-sizing:border-box!important;height:var(--ui-control)!important;min-height:var(--ui-control)!important;
  border:1px solid #cbd5e1!important;border-radius:var(--ui-control-radius)!important;background:#fff!important;
  color:var(--kh-ink)!important;box-shadow:none!important;padding:0 10px!important;gap:8px!important;min-width:0!important;
}
html:root body :is(.smart-input-shell,.search-box > .search-input,#searchBox > .field,.premium-filter-search) :is(input,select) {
  border:0!important;border-radius:0!important;background:transparent!important;height:44px!important;min-height:44px!important;padding:0 4px!important;
}
html:root body :is(.smart-input-shell,.search-box > .search-input,#searchBox > .field,.premium-filter-search):focus-within {outline:2px solid var(--kh-brand);outline-offset:2px;}
html:root body :is(.big-search-field,.filter-form .control) {position:relative;min-width:0!important;}
html:root body :is(.big-search-field,.filter-form .control) > i {position:absolute;left:auto!important;right:auto!important;inset-inline-start:14px!important;top:50%;transform:translateY(-50%);color:var(--kh-brand)!important;pointer-events:none;}
html:root body :is(.big-search-field,.filter-form .control) :is(input:not([type=hidden]),select) {padding-inline-start:40px!important;}
html:root body :is(.smart-select,.ks-combobox) > input {padding-inline-end:40px!important;}
html:root body :is(.smart-toggle,.ks-combo-toggle) {left:auto!important;right:auto!important;inset-inline-end:6px!important;min-height:32px!important;height:32px!important;width:32px!important;top:50%!important;transform:translateY(-50%)!important;border:0!important;background:transparent!important;color:var(--kh-muted)!important;}
html:root body :is(.search-btn-lux,.big-search-submit,.filter-btn,.ks-discover-submit,.btn-main,.reset-btn-lux,.filter-form .reset-btn,.mobile-filter-apply,.search-action-row > a,.search-action-row > button) {
  box-sizing:border-box!important;min-height:var(--ui-control)!important;height:auto!important;
  padding:11px 16px!important;border-radius:var(--ui-control-radius)!important;
  font-size:14px!important;line-height:1.5!important;font-weight:700!important;white-space:normal!important;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
}
html:root body #advancedSearchForm {gap:8px!important;align-items:center!important;padding:12px!important;}
html:root body #advancedSearchForm :is(.search-btn,.search-filter-btn) {width:48px!important;min-width:48px!important;height:48px!important;border-radius:10px!important;padding:12px!important;}
html:root body #advancedSearchForm .search-btn {background:var(--kh-brand)!important;color:#fff!important;}
html:root body #advancedSearchForm .search-filter-btn {background:#edf3ff!important;color:var(--kh-brand)!important;border:1px solid #d8e4ff!important;}
html:root body :is(.ks-discover-advanced > summary,.mobile-filter-label) {color:var(--kh-ink)!important;font-size:13px!important;}
html:root body .ks-discover-advanced > summary {min-height:44px;padding:12px 0!important;}
html:root body :is(.ks-discover-actions,.filters-row,.quick-chips) {gap:8px!important;}
html:root body :is(.chip,.quick-chip,.mobile-filter-pill,.chip-select) {border:1px solid var(--kh-line)!important;border-radius:999px!important;background:#fff!important;color:var(--kh-muted)!important;box-shadow:none!important;font-size:12px!important;min-height:36px;}
html:root body :is(.chip.active,.chip:has(input:checked),.quick-chip.active,.premium-choice-card.is-selected) {border-color:var(--kh-brand)!important;background:#edf3ff!important;color:var(--kh-brand)!important;}
html:root body :is(.ks-discover-form,.filter-form,#searchBox) input[type=checkbox] {accent-color:var(--kh-brand);width:18px!important;height:18px!important;min-height:0!important;flex-shrink:0;}
html:root body :is(.smart-menu,.smart-suggestions,.ks-combo-options,.ks-product-suggestions) {border-color:var(--kh-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:0 10px 30px #1822301a!important;color:var(--kh-ink)!important;z-index:100;}
html:root body :is(.smart-option,.ks-combo-options [role=option]) {min-height:40px;padding:10px 12px!important;font-size:13px!important;}
html:root body :is(.smart-option.is-active,.smart-option:hover,.ks-combo-options [aria-selected=true]) {background:#edf3ff!important;color:var(--kh-brand)!important;}
html:root body :is(.ks-combo-options,.ks-product-suggestions)[hidden] {display:none!important;}
/* Detail pages share the palette, while keeping their gallery and purchase controls. */
html:root body .ks-market-detail .ks-product-content .ks-detail {grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:"gallery copy" "seller seller"!important;gap:24px!important;padding:24px!important;border:1px solid var(--kh-line)!important;border-radius:16px!important;background:#fff!important;}
html:root body .ks-market-detail .ks-product-content .ks-gallery {grid-area:gallery!important;min-width:0;}
html:root body .ks-market-detail .ks-product-content .ks-product-copy {grid-area:copy!important;min-width:0;}
html:root body .ks-market-detail .ks-product-content .ks-detail > .ks-seller-panel {grid-area:seller!important;position:static!important;width:100%!important;box-sizing:border-box!important;border:1px solid var(--kh-line)!important;border-radius:12px!important;background:#f7f9fc!important;}
html:root body .ks-market-detail .ks-product-content .ks-product-copy h1 {width:auto!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:clamp(22px,2.2vw,30px)!important;line-height:1.5!important;color:var(--kh-ink)!important;background:none!important;-webkit-text-fill-color:currentColor!important;}
html:root body .ks-market-detail .ks-product-content :is(.ks-detail-price,.ks-purchase-option strong) {color:var(--kh-brand)!important;}
html:root body .ks-market-detail .ks-product-content .ks-main-photo {background:#f3f6fb!important;border-radius:14px!important;overflow:hidden;}
html:root body .ks-market-detail .ks-product-content .ks-main-photo img {object-fit:contain!important;}
html:root body .ks-market-detail .ks-product-content .ks-buy-panel {background:#f7f9fc!important;border-color:var(--kh-line)!important;border-radius:12px!important;}
html:root body .ks-market-detail .ks-product-content :is(.ks-purchase-option[aria-current=true],.ks-saving,.ks-product-kicker .ks-eyebrow) {background:#edf3ff!important;border-color:var(--kh-brand)!important;color:var(--kh-brand)!important;}
html:root body .ks-market-detail .ks-product-content .ks-purchase-option {min-width:0;overflow-wrap:anywhere;}
html:root body .ks-market-detail .ks-product-content .ks-purchase-option strong {white-space:normal!important;overflow-wrap:anywhere;}
html:root body .ks-market-detail .ks-product-content .ks-buy-panel .ks-whatsapp {background:#087b59!important;color:#fff!important;min-height:48px!important;}
@media(max-width:900px) {
  html:root body :is(.big-search-form,.ks-discover-primary,.smart-search-main) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html:root body .ks-discover-filters {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:820px) {html:root body .market-wrap {display:block!important;}html:root body .market-sidebar {display:none!important;}}
@media(max-width:760px) {
  html:root body .ks-market-detail .ks-product-content .ks-detail {grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"gallery" "copy" "seller"!important;padding:16px!important;gap:20px!important;}
}
@media(max-width:600px) {
  html:root,html:root body,html:root body :is(.ks-wrap,.kd-page,.market-wrap,.search-shell,.app) {--ui-gutter:20px;--ui-gap:10px;--ui-hero-radius:16px;}
  html:root body :is(.fb-grid,.market-grid,.ks-market-home .ks-grid,.ks-market-detail .ks-related .ks-grid) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html:root body :is(.hero,.hero-section,.kh-hero,.khd-hero,.khd-search-hero,.khd-social-hero,.market-app-hero,.ks-hero,.ks-discover-hero,.faq-hero,.cities-hero,.page-hero) {padding:20px!important;margin-block:14px!important;min-height:160px!important;}
  html:root body :is(.big-search-form,.ks-discover-primary,.smart-search-main,.ks-discover-filters) {grid-template-columns:minmax(0,1fr)!important;}
  html:root body :is(.big-search-filter,.ks-discover-form,.search-box) {padding:12px!important;}
  html:root body :is(.big-search-submit,.ks-discover-submit,.filter-btn) {width:100%!important;}
  html:root body :is(.ks-discover-query,.big-search-form > *,.ks-discover-primary > *,.smart-search-main > *) {grid-column:auto!important;min-width:0!important;}
  html:root body :is(.ks-discover-actions,.search-action-row) {flex-wrap:wrap!important;}
  html:root body :is(.ks-discover-form,.big-search-form,.search-form-luxury,.filter-form,#searchBox,.mobile-filter-sheet,.search-box,.kh-search-integrated) :is(input:not([type=checkbox]):not([type=radio]),select) {font-size:16px!important;}
  html:root body :is(.fb-friend-body,.market-card .item-body,.ks-market-home .ks-card-copy,.ks-market-detail .ks-related .ks-card-copy) {padding:8px!important;}
  html:root body :is(.ks-market-home .ks-card-copy > .ks-button,.ks-market-detail .ks-related .ks-card-copy > .ks-button,.fb-btn,.fb-follow) {min-height:44px!important;font-size:11px!important;}
  html:root body #advancedSearchForm .search-input {flex:1;min-width:0!important;}
}
@media(max-width:340px) {html:root body :is(.fb-grid,.market-grid,.ks-market-home .ks-grid,.ks-market-detail .ks-related .ks-grid) {grid-template-columns:minmax(0,1fr)!important;}}
@media(prefers-reduced-motion:reduce) {html:root body :is(.fb-friend-card,.market-card,.ks-card,.ks-button) {transition:none!important;transform:none!important;}}
html:root body .ks-discover-heading {background:transparent!important;padding:0!important;border:0!important;box-shadow:none!important;}
html:root body .ks-discover-heading > span {color:#edf3ff!important;}
html:root body .khd-hero > p {display:block!important;}

/* Keep search icons in a reserved slot so they never cover Arabic input text. */
html:root body .big-search-field > i {inset-inline-start:14px!important;}
html:root body .big-search-field > input.big-search-input,
html:root body .big-search-field > input[data-smart-input] {padding-inline-start:56px!important;}
html:root body #advancedSearchForm .search-input {box-sizing:border-box!important;display:flex!important;flex:1 1 0%!important;min-width:0!important;gap:10px!important;direction:rtl!important;}
html:root body #advancedSearchForm .search-input > .svg-icon {flex:0 0 20px!important;}
html:root body #advancedSearchForm .search-input > input {box-sizing:border-box!important;flex:1 1 auto!important;width:0!important;min-width:0!important;padding-inline:8px!important;text-align:start!important;}
