/* INSELLERS social: one visual language for every existing Mini App screen.
   This layer changes presentation only; permissions, prices and API flows live elsewhere. */
:root {
  --bg: #ffffff;
  --bg-page: #ffffff;
  --card: #f4f4f6;
  --fg: #17181a;
  --fg-dim: #707579;
  --border: rgba(0, 0, 0, .10);
  --accent: #2e7cf6;
  --accent-fg: #fff;
  --link: #2e7cf6;
  --pine: #0E6B5B;
  --pine-soft: #E4F0EC;
  --danger: #ff6b6b;
  --ok: #57c785;
  --active-soft: #e8f1ff;
  --card-shadow: 0 6px 24px rgba(16, 24, 40, .06);
}

html { background: var(--bg); }
body, .chat-view { background: var(--bg); background-image: none; animation: none; }
.ins-grain, .ins-sheen { display: none; }
#app { min-height: 100vh; }
.topbar { background: var(--bg); border-color: var(--border); }
.topbar-divider, .projects-divider, .camp-sep { background: var(--border); border-color: var(--border); }
.home-balance-bar { max-width: 1120px; width: 100%; margin: 0 auto; }
.home-stats-bar { max-width: 1120px; width: 100%; margin: 0 auto; }

main { width: 100%; max-width: 1160px; padding: 16px 16px 32px; margin: 0 auto; }
.home-view, .feed-view, .news-view, .projects-view, .balance-view {
  width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto;
}
.home-view { padding-bottom: 32px; }
#homeView, #feedView, #catalogView, #messagesView, #profileView {
  padding-bottom: calc(68px + var(--safe-b));
}
#form, #respondView, #catalogFormView, #linkFormView, #campaignFormView,
#supplierView, #descView, #adPitchView, #adChatView, #adminMailingView {
  max-width: 760px;
}
#productView, #profileView, #balanceView, #messagesView, #dlgView { max-width: 880px; }

.title, .projects-heading, .pitch-topbar-title {
  color: var(--fg); font-weight: 800; letter-spacing: -.025em;
}
.projects-heading { font-size: clamp(20px, 2.5vw, 27px); line-height: 1.2; margin: 6px 0 18px; }
.screen-topbar, .feed-bar, .product-topbar { gap: 12px; margin-bottom: 18px; }
.back-btn, .chat-back {
  color: var(--fg); background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 2px 8px rgba(16, 24, 40, .035);
}
.topbar-action, .submit-btn, .earn-cta, .balance-action-btn.primary,
.home-balance-action.primary, .chat-send, .link-btn-main {
  background: var(--accent); border-color: var(--accent); color: #fff;
  border-radius: 13px; box-shadow: 0 4px 12px rgba(46, 124, 246, .13);
}
.topbar-action, .submit-btn { min-height: 43px; font-weight: 700; }
.market-home-place { box-shadow: 0 6px 18px rgba(46, 124, 246, .2); }
.home-balance-action, .quick-btn, .topup-partner-btn {
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
}
.home-balance-action.primary { color: #fff; }

input[type="text"], input[type="search"], input[type="number"], input[type="tel"],
input[type="url"], input[type="email"], select, textarea, .link-input, .sup-in, .addr-in {
  border-color: var(--border); background: #fff; color: var(--fg);
  border-radius: 12px; font-family: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, .tile:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.field-label, .sup-field-cap, .link-label { color: var(--fg-dim); font-weight: 650; }
.filter-bar { gap: 10px; }
.filter-bar select { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.search-row, .search-input { border-color: var(--border); }
.search-input { background: #fff; color: var(--fg); }
.market-chip, .style-chip, .chart-range-btn, .link-mode, .camp-mode {
  border-color: var(--border); background: #fff; color: var(--fg);
}
.market-chip.selected, .style-chip.is-on, .chart-range-btn.is-on,
.link-mode.is-on, .camp-mode.is-on {
  border-color: var(--pine); background: var(--pine-soft); color: var(--pine);
}

.tile, .earn-card, .news-card, .project-link, .balance-card, .home-tile,
.profile-head, .offer-card, .modal-card, .detail-card, .sheet,
.admin-card, .product-card, .comment-card {
  background: var(--card); border-color: var(--border); box-shadow: var(--card-shadow);
}
.tile, .earn-card, .news-card, .project-link, .balance-card, .home-tile,
.profile-head { border-radius: 17px; }
.market-home-grid .tile { background: var(--card); }
.tile-photo-wrap { background: var(--card); }
.feed-view .tile-photo-wrap { aspect-ratio: 1.25; }
.tile-title, .news-card-title, .project-link-title, .home-tile-title { color: var(--fg); }
.tile-line, .tile-market, .news-card-summary, .project-link-desc,
.earn-card-desc, .state-msg, .hint, .earn-note { color: var(--fg-dim); }
.tile-price-line { color: var(--fg); }
.tile-price { color: var(--pine); }
.earn-card-amount { color: var(--accent); }
.feed-grid { gap: 12px; }
.home-grid { gap: 12px; }
.home-tile { border: 1px solid var(--border); }
.home-tile-icon { color: var(--accent); }
.profile-grid .home-tile { min-height: 116px; }
.admin-grid .earn-card { border: 1px solid var(--border); }
.admin-approve-btn { background: var(--ok); }
.admin-reject-btn, .profile-delete-btn, .sheet-danger { color: var(--danger); }

.modal-overlay, .sheet-overlay, .detail-overlay {
  background: rgba(16, 24, 40, .48);
}
.modal-card, .detail-card { border: 1px solid var(--border); border-radius: 22px; }
.sheet { border: 1px solid var(--border); border-bottom: 0; border-radius: 22px 22px 0 0; }
.sheet-btn { border: 1px solid var(--border); background: #fff; border-radius: 12px; }
.sheet-cancel { background: var(--card); }
.detail-page { background: var(--bg); }
.center-notice .cn-card { background: #fff; border: 1px solid var(--border); }
.chat-view { max-width: 880px; }
.chat-view::before { display: none; }
.chat-tab.is-on { border-color: var(--pine); background: var(--pine-soft); color: var(--pine); }
.chat-send { box-shadow: 0 4px 12px rgba(46, 124, 246, .15); }
.chat-input { border: 1px solid var(--border); background: #fff; }
.chat-bubble { box-shadow: 0 2px 8px rgba(16, 24, 40, .07); }
.link-input:focus { border-color: var(--accent); }
.link-btn-main, .bar-fill { background: var(--accent); }
.link-btn-main { border-color: var(--accent); }
.stat-money, .camp-price-n, .camp-cpl { color: var(--accent); }

.market-discovery-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  width: min(100%, 420px); margin: 0 auto 18px; padding: 4px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
}
.market-discovery-tabs button {
  min-height: 40px; border: 0; border-radius: 10px; background: transparent;
  color: var(--fg-dim); font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.market-discovery-tabs button.is-on {
  background: #fff; color: var(--accent); box-shadow: 0 2px 7px rgba(16, 24, 40, .09);
}

.market-dock {
  position: fixed; left: 50%; bottom: 0; z-index: 20;
  transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 620px); padding: 8px 8px calc(8px + var(--safe-b));
  border: 1px solid var(--border); border-bottom: 0; border-radius: 19px 19px 0 0;
  background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 28px rgba(16, 24, 40, .1);
}
.market-dock button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 0; min-height: 52px; padding: 3px 2px; border: 0; border-radius: 11px;
  background: transparent; color: var(--fg-dim); font-size: 11px; font-weight: 650; font-family: inherit; cursor: pointer;
}
.market-dock button.is-on { background: var(--active-soft); color: var(--accent); }
.market-dock .market-dock-icon { display: inline-flex; margin: 0; line-height: 1; }
.market-dock .market-dock-icon .line-ico { width: 23px; height: 23px; stroke-width: 2; }

@media (min-width: 700px) {
  .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-grid, .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet { max-width: 620px; margin: 0 auto; }
}
@media (min-width: 1060px) {
  .feed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market-home-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-grid, .profile-grid, .admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  main { padding: 10px 12px 24px; }
  .home-view { padding-left: 12px; padding-right: 12px; }
  .feed-view, .news-view, .projects-view, .balance-view { padding-left: 2px; padding-right: 2px; }
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .market-home-grid .tile-body { padding: 7px 7px 8px; }
  .market-home-grid .tile-title { font-size: 12px; line-height: 1.25; }
  .market-home-grid .tile-line, .market-home-grid .tile-price-line { font-size: 11px; line-height: 1.3; }
  .market-home-grid .tile-badge { max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; padding: 2px 4px; }
  .home-grid, .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-dock { border-radius: 16px 16px 0 0; }
}
@media (max-width: 360px) {
  .market-dock button { font-size: 10px; }
  .market-discovery-tabs button { font-size: 13px; }
  .screen-topbar { gap: 5px; }
  .screen-topbar .topbar-action { font-size: 12px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .market-dock button, .market-discovery-tabs button { transition: none; }
}

/* Размещение — действие, а не отдельный экран поиска. Все кнопки одного размера. */
.market-dock button[data-market-nav="place"],
.market-dock button[data-market-nav="place"].is-on { color: var(--pine); background: var(--pine-soft); }
.market-dock button[data-market-nav="place"] .market-dock-icon { align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--pine); color: #fff; }
.market-dock button[data-market-nav="place"] .line-ico { width: 20px; height: 20px; }
.market-dock button { animation: none; transform: none; }
.market-dock button:not(:disabled):hover, .market-dock button:not(:disabled):active { transform: none; }
.market-dock button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.market-dock button:active { opacity: .8; }

/* The home search keeps one quiet outer border; focus is the native caret. */
.market-home-search-field:focus-within { outline: none; box-shadow: none; }
#homeSearchInput,
#homeSearchInput:focus,
#homeSearchInput:focus-visible {
  appearance: none; -webkit-appearance: none;
  outline: none; box-shadow: none; border: 0; border-radius: 0;
  background: transparent; caret-color: var(--fg);
}

/* Leave room for the bottom navigation while keeping the live market chat composer clear. */
body.chat-open .chat-view { bottom: calc(90px + var(--safe-b)); padding-bottom: 8px; }

#messagesView { max-width: 620px; padding-top: 8px; }
@media (max-width: 699px) { #messagesView { padding-left: 12px; padding-right: 12px; } }

/* Keep the animated #ХочуТусить project card legible without replacing its gradient. */
.project-link.project-link-rainbow,
.project-link.project-link-rainbow:hover,
.project-link.project-link-rainbow:active,
.project-link.project-link-rainbow:focus-visible {
  background-image: linear-gradient(100deg, #3F6B78, #4A5A7C, #63577A, #47756B, #3F6B78);
  background-size: 300% 100%; border: 0; color: #fff;
  animation: rainbow-slide 9s linear infinite; text-shadow: none;
}
.project-link.project-link-rainbow .project-link-title { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.project-link.project-link-rainbow .project-link-desc { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }


/* Equal navigation cells; animate icons without moving the button hit areas. */
.market-dock { box-sizing: border-box; gap: 4px; }
.market-dock button {
  position: relative; width: 100%; height: 64px; margin: 0; align-self: center;
  justify-content: center; box-sizing: border-box; box-shadow: none; line-height: 1.2;
  transition: background-color .2s ease, color .2s ease;
}
.market-dock button.is-on { height: 64px; }
.market-dock button .market-dock-icon {
  width: 26px; height: 26px; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease;
}
.market-dock .dlg-unread-badge { position: absolute; top: 2px; right: 6px; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .market-dock button:not(:disabled):hover { background: var(--active-soft); color: var(--accent); }
  .market-dock button[data-market-nav="place"]:not(:disabled):hover { background: #d7e9e3; color: var(--pine); }
  .market-dock button:not(:disabled):hover .market-dock-icon { transform: translateY(-2px) scale(1.1); }
  .market-dock button[data-market-nav="place"]:not(:disabled):hover .market-dock-icon { box-shadow: 0 4px 10px rgba(14, 107, 91, .2); }
}
.market-dock button:not(:disabled):active .market-dock-icon { transform: scale(.9); }
#profileView .profile-head-fields { justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .market-dock button, .market-dock button .market-dock-icon { transition: none; }
  .market-dock button:not(:disabled):hover .market-dock-icon,
  .market-dock button:not(:disabled):active .market-dock-icon { transform: none; }
}

/* Search stays inline in the discovery header; it never expands into a second row. */
.screen-topbar .screen-search-row {
  flex: 1 1 0; width: auto; min-width: 0; max-width: none;
  height: 44px; max-height: 44px; margin: 0; padding: 0 10px;
  overflow: hidden; opacity: 1; transform: none;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  transition: none;
}
.screen-topbar .screen-search-row .search-input { height: 42px; font-size: 14px; }
.screen-topbar .screen-search-row .search-ghost { left: 12px; line-height: 42px; font-size: 14px; }
.screen-topbar .screen-search-row .search-clear { width: 24px; height: 24px; }

/* Feedback starts the footer below its divider. */
.home-feedback-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: min(100%, 280px); min-height: 44px; margin: 0 auto 10px; padding: 8px 12px;
  border: 1px solid rgba(14, 107, 91, .2); border-radius: 14px;
  background: var(--pine-soft); color: var(--pine); font: inherit; font-size: 13px;
  font-weight: 650; cursor: pointer; box-sizing: border-box;
  transition: background-color .2s ease;
}
.home-feedback-btn .ico-slot { display: inline-flex; margin: 0; }
.home-feedback-btn .line-ico { width: 20px; height: 20px; }
@media (hover: hover) { .home-feedback-btn:hover { background: #d7e9e3; } }
#feedbackOverlay .modal-card { max-height: 85dvh; overflow-y: auto; }
#feedbackOverlay .feedback-lead { color: var(--fg-dim); font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
#feedbackOverlay .feedback-textarea { box-sizing: border-box; width: 100%; font-size: 16px; }

/* Ten newest members in two compact rows, five per row. */
.home-new-users { margin: 10px 0 0; min-width: 0; }
.home-new-users h2 { margin: 0 0 6px; font-size: 13px; font-weight: 650; }
#homeNewUsersRow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 6px; list-style: none; padding: 0; margin: 0; }
#homeNewUsersRow li { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.home-new-user-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; overflow: hidden; border-radius: 50%; background: var(--pine-soft); color: var(--pine); font-size: 13px; font-weight: 650; }
.home-new-user-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-new-user-name { width: 48px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 10px; line-height: 1.3; color: var(--fg-dim); }
#homeNewUsersStatus { font-size: 11px; color: var(--fg-dim); }

/* Compact inbox rows retain a comfortable tap target. */
#messagesView { max-width: 520px; }
#messagesView .messages-title { font-size: 22px; margin: 8px 0 16px; }
.messages-list { gap: 6px; }
.messages-list .dlg-row { box-sizing: border-box; min-height: 54px; padding: 8px 10px; gap: 10px; border-radius: 12px; box-shadow: none; }
.messages-list .dlg-swipe { border-radius: 12px; }
.messages-list .dlg-ava { width: 34px; height: 34px; flex: 0 0 34px; font-size: 16px; }
.messages-list .dlg-row-name { font-size: 14px; }
.messages-list .dlg-row-at { font-size: 11px; }
.messages-list .dlg-row-last { margin-top: 2px; font-size: 12px; }
.messages-list .dlg-row-last:empty { display: none; }

.home-new-user-button { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 48px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; box-shadow: none; }
.home-new-user-button:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
.public-user-profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0; }
.public-user-profile .home-new-user-avatar { width: 72px; height: 72px; font-size: 28px; }
.public-user-profile h2 { margin: 14px 0 6px; font-size: 22px; overflow-wrap: anywhere; }
.public-user-profile p { margin: 4px 0; font-size: 14px; color: var(--fg-dim); }

/* Compact footer with comfortable 44px download targets. */
.app-downloads { margin-top: 10px; padding: 10px 0 4px; }
.app-downloads-title { margin: 0 0 8px; font-size: 13px; line-height: 1.35; }
.app-downloads-platforms { gap: 10px; }
.app-download-link { box-sizing: border-box; width: 44px; height: 44px; border-radius: 12px; }
.app-download-link svg { width: 21px; height: 21px; }
.app-download-chip { right: 3px; bottom: 1px; font-size: 7px; }
.app-downloads-copyright { margin-top: 8px; font-size: 9px; }

/* Keep the entire menu reachable above the dock, including in short viewports. */
.market-home-menu-content { position: fixed; box-sizing: border-box; max-width: calc(100vw - 24px); overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 6px; }
.market-home-menu-content .home-menu-link { min-height: 44px; padding: 9px 10px; font-size: 13px; }
.market-home-menu-content .home-menu-divider { margin: 5px 6px; }

.sp-ava { position: relative; overflow: hidden; }
.sp-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Product editing uses full-width, equally sized fields on every screen. */
#productEditOverlay .modal-card { width: min(100%, 560px); box-sizing: border-box; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; }
#productEditOverlay .field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-bottom: 16px; }
#productEditOverlay input:not([type="file"]), #productEditOverlay select, #productEditOverlay textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  min-height: 46px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-size: 16px; background: #fff;
}
#productEditPrice { appearance: textfield; -moz-appearance: textfield; }
#productEditPrice::-webkit-inner-spin-button, #productEditPrice::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#productEditPhotoPreview { width: 100%; height: 140px; object-fit: contain; border-radius: 12px; background: #fff; }
#productEditPhoto { width: 100%; min-width: 0; font-size: 13px; }
.product-edit-photo-label { color: var(--pine); font-size: 14px; font-weight: 600; }
#productEditStatus { margin: 0 0 12px; overflow-wrap: anywhere; }
#productEditStatus:empty { display: none; }
#productEditOverlay .earn-note { margin: 8px 0 18px; font-size: 13px; }


/* One sliding selection surface; transforms do not move the tab hit targets. */
.market-discovery-tabs { position: relative; isolation: isolate; }
.market-discovery-tabs .discovery-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 12px) / 2); border-radius: 10px; background: #fff;
  box-shadow: 0 2px 7px rgba(16, 24, 40, .09); pointer-events: none;
  transform: translateX(0);
}
#catalogView .discovery-thumb { transform: translateX(calc(100% + 4px)); }
.market-discovery-tabs button { position: relative; z-index: 1; transition: color .2s ease; }
.market-discovery-tabs button.is-on { background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .market-discovery-tabs button { transition: none; } }
.market-discovery-tabs button:not(:disabled):hover,
.market-discovery-tabs button:not(:disabled):active { transform: none; background: transparent; box-shadow: none; }

/* Public supplier profile: direct message and compact publication tabs. */
#supplierProfileBody .sp-head { gap: 14px; margin-bottom: 12px; padding-bottom: 0; align-items: flex-start; }
#supplierProfileBody .sp-ava { width: 64px; height: 64px; flex: 0 0 64px; }
#supplierProfileBody .sp-head-text { flex: 1; }
#supplierProfileBody .sp-name { font-size: 23px; overflow-wrap: anywhere; }
#supplierProfileBody .sp-card { margin: 12px 0; padding-top: 12px; }
#supplierProfileBody .sp-message-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: auto; margin: 10px 0 0; padding: 9px 13px; min-height: 40px;
  border: 0; border-radius: 12px; background: #e3f1ed; color: #236d60;
  font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
#supplierProfileBody .sp-message-btn .ico-slot { width: 19px; height: 19px; }
.sp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #e9eaed; padding: 4px; border-radius: 14px; margin: 16px 0 12px; }
.sp-tabs button { border: 0; background: transparent; border-radius: 10px; padding: 10px 5px; color: #75777c; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.sp-tabs button[aria-selected="true"] { color: #327bf0; background: white; box-shadow: 0 2px 8px #00000008; }
.sp-products-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.sp-products-grid .tile { min-width: 0; margin: 0; }
.sp-products-grid .tile-photo { height: 120px; width: 100%; object-fit: cover; }
.sp-publications-status { color: #797c81; text-align: center; font-size: 13px; margin: 10px 0; }
.sp-publications-status:empty { display: none; }
@media (hover: hover) { #supplierProfileBody .sp-message-btn:hover { background: #d1e9e1; transform: translateY(-1px); } }
@media (min-width: 700px) { .sp-products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { #supplierProfileBody .sp-message-btn { transition: none; transform: none; } }

.supplier-reviews { border-top: 1px solid #ddd; margin-top: 18px; padding-top: 14px; }
.review-heading,.review-card-top,.review-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.review-heading h3,.review-heading h2 { margin:0; font-size:19px; }
.review-summary,.review-stars { color:#986400; font-size:14px; white-space:nowrap; }
.review-note { color:#75777c; font-size:13px; line-height:1.45; }
.review-note:empty { display:none; }
.review-button { font:inherit; font-size:14px; padding:10px 14px; border:0; border-radius:12px; background:#e3f1ed; color:#236d60; cursor:pointer; }
.review-button:disabled { opacity:.55; cursor:wait; }
.review-card { background:#fff; border:1px solid #e4e4e7; border-radius:14px; padding:12px; margin-top:10px; }
.review-text { white-space:pre-wrap; overflow-wrap:anywhere; margin:8px 0; font-size:14px; line-height:1.45; }
.review-card small { color:#75777c; }
.review-card h3 { font-size:16px; margin:0 0 10px; }
.review-card-top strong { min-width:0; overflow-wrap:anywhere; }
.review-form textarea { box-sizing:border-box; width:100%; margin:10px 0; font:inherit; font-size:16px; padding:12px; border:1px solid #ddd; border-radius:12px; resize:vertical; }
.review-star-picker { border:0; padding:10px 0 0; margin:0; display:flex; gap:8px; }
.review-star-picker legend { font-size:14px; }
.review-star-picker label { position:relative; display:flex; align-items:center; justify-content:center; min-width:36px; min-height:44px; color:#a8a8ac; cursor:pointer; }
.review-star-picker input { position:absolute; width:1px; height:1px; margin:0; padding:0; opacity:0; clip-path:inset(50%); overflow:hidden; }
.review-star-picker input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
.review-star-picker span { font-size:30px; }
.review-star-picker label:has(input:checked),.review-star-picker label:has(~ label input:checked) { color:#d59413; }
.review-form[hidden],.supplier-reviews [hidden],.reviews-modal [hidden] { display:none!important; }
.reviews-modal { box-sizing:border-box; width:min(640px,calc(100% - 24px)); max-height:calc(100dvh - 32px); border:0; border-radius:20px; padding:20px; color:#191a1c; background:#f5f5f7; overflow:auto; }
.reviews-modal::backdrop { background:#18223080; }
.reviews-modal select { box-sizing:border-box; width:100%; margin:16px 0; padding:10px; font:inherit; }
.review-actions { justify-content:flex-start; margin-top:12px; }

.my-request-wrap .my-request-photo-delete {
  position:absolute; top:8px; right:8px; z-index:3; display:grid; place-items:center;
  width:40px; height:40px; margin:0; padding:10px; border:0; border-radius:50%;
  background:rgba(29,34,42,.72); color:#fff; box-shadow:0 2px 8px #00000012;
}
.my-request-photo-delete svg { width:20px; height:20px; pointer-events:none; }
.my-request-wrap .tile-photo-wrap > .tile-badge:not(.tile-badge-views):not(.tile-badge-offers) {
  max-width:calc(100% - 64px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.my-request-photo-delete:focus-visible { outline:3px solid #327bf0; outline-offset:2px; }

.platform-delete-btn {
  display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px;
  margin-left:6px; padding:8px; border:0; border-radius:50%; cursor:pointer;
  color:#d45151; background:#fcebed;
}
.platform-delete-btn svg { width:20px; height:20px; pointer-events:none; }
.platform-delete-btn:focus-visible { outline:3px solid #327bf0; outline-offset:2px; }

.dlg-swipe button.dlg-row { padding-right:64px; }
.dlg-quick-folder {
  position:absolute; right:10px; top:50%; transform:translateY(-50%); z-index:2;
  display:flex; align-items:center; justify-content:center; gap:5px;
  width:40px; height:40px; padding:8px; border:0; border-radius:12px;
  background:#e3eeeb; color:#326e62; cursor:pointer; font:inherit; font-size:12px;
}
.dlg-quick-folder svg { width:19px; height:19px; flex-shrink:0; }
.dlg-quick-folder span { display:none; }
.dlg-quick-folder:disabled { opacity:.5; cursor:wait; }
.dlg-quick-folder:focus-visible { outline:3px solid #327bf0; outline-offset:2px; }
.dlg-swipe.is-open .dlg-quick-folder { display:none; }
@media (min-width:600px) {
  .dlg-swipe button.dlg-row { padding-right:108px; }
  .dlg-quick-folder { width:88px; }
  .dlg-quick-folder span { display:inline; }
}

/* One moving selection surface keeps the navigation aligned during tab changes. */
.market-dock-thumb {
  position: absolute; left: 0; border-radius: 13px;
  background: var(--active-soft); pointer-events: none;
}
.market-dock button { position: relative; z-index: 1; }
.market-dock button.is-on { background: transparent; }
.market-dock button[data-market-nav="place"] { background: var(--pine-soft); }
body { overflow-x: clip; }

.mailing-archive-btn { display:flex; align-items:center; justify-content:center; flex:0 0 44px; min-height:44px; padding:10px; border:1px solid var(--border); border-radius:12px; background:var(--surface,#f5f5f7); color:var(--fg); cursor:pointer; }
.mailing-actions .submit-btn { min-width:0; }
#adminMailingSend.is-sending { animation:mailing-status-pulse 1.4s ease-in-out infinite; }
@keyframes mailing-status-pulse { 0%,100% { color:rgba(255,255,255,1); } 50% { color:rgba(255,255,255,.4); } }
@media(prefers-reduced-motion:reduce) { #adminMailingSend.is-sending { animation:none; } }
