/* Resource Exchange UI v2 - production visual layer */
:root {
  --rex-ink: #10211e;
  --rex-muted: #66736f;
  --rex-subtle: #8b9692;
  --rex-line: #dbe3df;
  --rex-line-strong: #c8d3ce;
  --rex-paper: #f4f7f5;
  --rex-panel: #ffffff;
  --rex-green: #0b5c4d;
  --rex-green-2: #123f38;
  --rex-green-soft: #e8f2ee;
  --rex-gold: #d3942d;
  --rex-gold-soft: #fbf2df;
  --rex-coral: #c86045;
  --rex-blue: #376985;
  --rex-shadow-sm: 0 4px 14px rgb(16 33 30 / 0.06);
  --rex-shadow-md: 0 16px 40px rgb(16 33 30 / 0.12);
}

html,
body {
  min-height: 100%;
  background: #e7ece9;
}

body {
  color: var(--rex-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(55 105 133 / 0.22);
  outline-offset: 2px;
}

.rex-phone-shell {
  width: min(100vw, 460px);
  height: min(100dvh, 920px);
  min-height: 680px;
  background: var(--rex-paper);
  box-shadow: 0 24px 90px rgb(16 33 30 / 0.18);
}

.rex-topbar {
  height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid rgb(219 227 223 / 0.8);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(16px);
}

.rex-topbar > strong {
  font-size: 16px;
  font-weight: 750;
}

.rex-icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rex-line);
  border-radius: 50%;
  background: #fff;
  color: var(--rex-ink);
}

.rex-icon-btn svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.rex-screen {
  height: calc(100% - 134px);
  padding: 0 18px 38px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.rex-screen::-webkit-scrollbar,
.rex-filter-row::-webkit-scrollbar {
  display: none;
}

.rex-hero {
  min-height: 228px;
  height: 228px;
  margin: 0 -18px 0;
  background: var(--rex-green-2);
}

.rex-hero img {
  min-height: 228px;
  height: 228px;
  object-position: center 44%;
  filter: saturate(0.82) contrast(1.04);
}

.rex-hero-shade {
  background: linear-gradient(180deg, rgb(7 29 25 / 0.1), rgb(7 29 25 / 0.84));
}

.rex-hero-copy {
  left: 22px;
  right: 22px;
  bottom: 38px;
}

.rex-hero-copy p,
.rex-page-title p,
.rex-shop-hero p,
.rex-profile-card p,
.rex-member-card p,
.rex-section-head p,
.rex-dialog-body > p,
.rex-profile-block p,
.rex-flow-card > p,
.rex-funnel-card > p {
  margin: 0 0 6px;
  color: var(--rex-gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.rex-hero-copy h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 760;
}

.rex-hero-copy span {
  max-width: 330px;
  display: block;
  color: rgb(255 255 255 / 0.84);
  font-size: 14px;
  line-height: 1.55;
}

.rex-quick-actions {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: -22px;
}

.rex-primary-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 15px;
  border: 1px solid var(--rex-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--rex-shadow-md);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.rex-primary-card:first-child {
  border-color: var(--rex-green);
  color: #fff;
  background: var(--rex-green);
}

.rex-primary-card:active {
  transform: translateY(1px);
  box-shadow: var(--rex-shadow-sm);
}

.rex-primary-card strong {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.2;
}

.rex-primary-card small {
  display: block;
  margin-top: 5px;
  color: var(--rex-muted);
  font-size: 11px;
  line-height: 1.45;
}

.rex-primary-card:first-child small {
  color: rgb(255 255 255 / 0.72);
}

.rex-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--rex-green);
  background: var(--rex-green-soft);
}

.rex-primary-card:first-child .rex-action-icon {
  color: var(--rex-green-2);
  background: #fff;
}

.rex-action-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.rex-section-head {
  align-items: flex-end;
  margin: 26px 0 12px;
}

.rex-section-head h2,
.rex-member-card h2,
.rex-saved-rec-head h2,
.rex-earnings-header-row h2 {
  margin: 0;
  color: var(--rex-ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 730;
}

.rex-text-btn {
  min-height: 34px;
  padding: 0 2px;
  color: var(--rex-green);
  font-size: 13px;
  font-weight: 750;
}

.rex-project-list,
.rex-resource-list,
.rex-match-list,
.rex-deal-list,
.rex-saved-rec-list {
  gap: 10px;
}

.rex-project-card,
.rex-resource-card,
.rex-match-card,
.rex-deal-card,
.rex-saved-rec-card {
  position: relative;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--rex-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--rex-shadow-sm);
}

.rex-project-card::before,
.rex-resource-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: var(--rex-green);
}

.rex-project-card h3,
.rex-resource-card h3,
.rex-match-card h3,
.rex-deal-card h3,
.rex-saved-rec-card h3 {
  margin: 10px 0 7px;
  color: var(--rex-ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 720;
}

.rex-project-card > p,
.rex-resource-card > p,
.rex-match-card > p,
.rex-deal-card > p,
.rex-saved-rec-card > p {
  margin: 0;
  color: var(--rex-muted);
  font-size: 13px;
  line-height: 1.62;
}

.rex-card-top,
.rex-resource-meta,
.rex-match-meta {
  color: var(--rex-muted);
  font-size: 12px;
}

.rex-tag {
  padding: 5px 8px;
  border-radius: 999px;
  color: #825518;
  background: var(--rex-gold-soft);
  font-size: 11px;
}

.rex-needs {
  gap: 6px;
  margin-top: 12px;
}

.rex-needs span,
.rex-timeline span {
  padding: 5px 8px;
  color: #315a52;
  background: #edf3f0;
  font-size: 11px;
}

.rex-card-actions,
.rex-card-actions-multi {
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #edf1ef;
}

.rex-card-actions button,
.rex-card-actions-multi button,
.rex-shop-actions button {
  min-height: 40px;
  border: 1px solid var(--rex-line);
  border-radius: 8px;
  color: var(--rex-green);
  background: #fff;
  font-size: 13px;
  font-weight: 730;
}

.rex-card-actions button:first-child,
.rex-card-actions-multi button:first-child {
  border-color: var(--rex-green);
  color: #fff;
  background: var(--rex-green);
}

.rex-page-title {
  margin: 0 -18px 14px;
  padding: 26px 18px 22px;
  border-bottom: 1px solid var(--rex-line);
  background: #fff;
}

.rex-page-title h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 760;
}

.rex-page-title span {
  color: var(--rex-muted);
  font-size: 13px;
  line-height: 1.5;
}

.rex-filter-row {
  position: sticky;
  z-index: 2;
  top: 0;
  gap: 7px;
  margin: 0 -18px 12px;
  padding: 10px 18px;
  background: rgb(244 247 245 / 0.94);
  backdrop-filter: blur(12px);
}

.rex-chip {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--rex-muted);
  background: #fff;
  font-size: 12px;
}

.rex-chip.rex-active {
  border-color: var(--rex-green-2);
  background: var(--rex-green-2);
}

.rex-screen[data-screen="shop"].rex-active {
  display: flex;
  flex-direction: column;
}

.rex-screen[data-screen="shop"] .rex-shop-stats {
  grid-template-columns: repeat(3, 1fr) !important;
}

.rex-screen[data-screen="shop"] .rex-shop-hero { order: 1; }
.rex-screen[data-screen="shop"] > .rex-section-head { order: 2; }
.rex-screen[data-screen="shop"] > .rex-resource-list { order: 3; }
.rex-screen[data-screen="shop"] > #rex-shopRecommendations { order: 4; }
.rex-screen[data-screen="shop"] > .rex-shop-data-overview { order: 5; }
.rex-screen[data-screen="shop"] > .rex-funnel-card { order: 6; }
.rex-screen[data-screen="shop"] > .rex-flow-card { order: 7; }

.rex-shop-hero,
.rex-profile-card {
  margin: 0 -18px 18px;
  padding: 26px 18px 24px;
  border-radius: 0;
  color: #fff;
  background: var(--rex-green-2);
  box-shadow: none;
}

.rex-shop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rex-shop-hero h1,
.rex-profile-card h1 {
  margin: 0 0 7px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 750;
}

.rex-shop-hero > span,
.rex-profile-card span {
  color: rgb(255 255 255 / 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.rex-qrcode-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.rex-shop-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 20px 0 0;
  padding: 14px 0;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}

.rex-shop-stats b {
  padding: 5px 10px;
  border-radius: 0;
  background: transparent;
}

.rex-shop-stats b:not(:nth-child(3n + 1)) {
  border-left: 1px solid rgb(255 255 255 / 0.12);
}

.rex-shop-stats span {
  color: #fff;
  font-size: 20px;
}

.rex-shop-stats small {
  color: rgb(255 255 255 / 0.62);
  font-size: 10px;
}

.rex-shop-actions button {
  border-color: #fff;
}

.rex-shop-actions button:first-child {
  color: var(--rex-green-2);
  background: #fff;
}

.rex-shop-actions button + button {
  border-color: rgb(255 255 255 / 0.3);
  color: #fff;
  background: transparent;
}

.rex-shop-data-overview,
.rex-funnel-card,
.rex-flow-card,
.rex-profile-block,
.rex-deal-timeline-card,
.rex-earnings-card,
.rex-saved-rec-block {
  margin: 18px 0 0;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--rex-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rex-data-grid,
.rex-overview-grid {
  gap: 8px;
}

.rex-data-item,
.rex-overview-item,
.rex-summary-card {
  padding: 12px 10px;
  border: 1px solid var(--rex-line);
  border-radius: 8px;
  background: #fff;
}

.rex-status-meanings {
  display: none;
}

.rex-status-flow {
  padding: 2px 0 6px;
}

.rex-status-flow span {
  border: 1px solid var(--rex-line);
  color: var(--rex-muted);
  background: #fff;
}

.rex-funnel-bar-container {
  background: #e7eeeb;
}

.rex-funnel-bar {
  background: var(--rex-blue);
}

.rex-profile-card {
  padding-top: 24px;
}

.rex-identity-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.rex-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 50%;
  color: var(--rex-green-2);
  background: #fff;
  font-size: 20px;
  font-weight: 780;
}

.rex-identity-head h1 {
  font-size: 24px;
}

.rex-identity-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.rex-identity-metrics b {
  display: grid;
  gap: 3px;
  color: #fff;
  font-size: 20px;
}

.rex-identity-metrics b + b {
  padding-left: 14px;
  border-left: 1px solid rgb(255 255 255 / 0.14);
}

.rex-identity-metrics small {
  color: rgb(255 255 255 / 0.62);
  font-size: 10px;
  font-weight: 500;
}

.rex-member-card {
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid #ecd7ad;
  border-radius: 8px;
  background: var(--rex-gold-soft);
}

.rex-member-card span {
  color: #725f43;
  line-height: 1.5;
}

.rex-member-card button,
.rex-submit-btn,
.rex-apply-btn,
.rex-vip-btn,
.rex-confirm-btn {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--rex-green);
  font-size: 14px;
  font-weight: 750;
}

.rex-member-card button,
.rex-gold-btn {
  background: var(--rex-gold);
}

.rex-profile-info-head,
.rex-saved-rec-head,
.rex-earnings-header-row {
  align-items: center;
}

.rex-info-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rex-line);
  border-radius: 8px;
  background: var(--rex-line);
}

.rex-info-grid span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 0;
  color: var(--rex-muted);
  background: #fff;
  font-size: 12px;
}

.rex-deal-card .rex-service-progress {
  display: block;
  padding: 12px;
  background: #f5f8f6;
}

.rex-service-progress > p {
  margin: 0 0 9px;
  color: var(--rex-muted);
  font-size: 11px;
}

.rex-progress-steps {
  gap: 4px;
}

.rex-progress-steps span {
  min-width: 0;
  font-size: 10px;
}

.rex-earnings-summary,
.rex-earning-grid {
  gap: 8px;
}

.rex-earnings-summary-item,
.rex-earning-grid b,
.rex-earning-grid span {
  border: 1px solid var(--rex-line);
  background: #fff;
}

.rex-tabbar {
  height: 72px;
  padding: 6px 8px max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid rgb(219 227 223 / 0.9);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(18px);
}

.rex-tab {
  position: relative;
  gap: 3px;
  color: #75817d;
  font-size: 10px;
  font-weight: 600;
}

.rex-tab span {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.rex-tab svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

.rex-tab.rex-active {
  color: var(--rex-green);
}

.rex-tab.rex-active span {
  background: var(--rex-green-soft);
}

dialog {
  width: min(94vw, 430px);
  max-height: 90dvh;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgb(5 24 20 / 0.3);
}

dialog::backdrop {
  background: rgb(9 24 21 / 0.58);
  backdrop-filter: blur(3px);
}

.rex-dialog-body,
.rex-dialog-body.large,
.rex-dialog-body.rex-large {
  max-height: 90dvh;
  gap: 13px;
  padding: 24px 20px 22px;
  overflow-y: auto;
  background: #fff;
}

.rex-dialog-body h2 {
  margin: 0 38px 4px 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 760;
}

.rex-close-btn {
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rex-line);
  color: var(--rex-muted);
  background: #fff;
}

.rex-form-block {
  padding: 16px;
  border: 1px solid var(--rex-line);
  border-radius: 8px;
  background: #fafcfb;
}

.rex-dialog-body label {
  gap: 7px;
  color: #52605c;
  font-size: 12px;
  font-weight: 700;
}

.rex-dialog-body input,
.rex-dialog-body select,
.rex-dialog-body textarea {
  min-height: 44px;
  border: 1px solid var(--rex-line-strong);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--rex-ink);
  background: #fff;
  font-size: 14px;
}

.rex-dialog-body textarea {
  min-height: 104px;
  line-height: 1.55;
}

.rex-dialog-body input:focus,
.rex-dialog-body select:focus,
.rex-dialog-body textarea:focus {
  border-color: var(--rex-green);
  box-shadow: 0 0 0 3px rgb(11 92 77 / 0.1);
  outline: 0;
}

#rex-auditDialog .rex-stepper {
  margin: 5px 0 10px;
  padding: 0;
}

#rex-auditDialog .rex-step-number {
  width: 30px;
  height: 30px;
  border: 1px solid var(--rex-line-strong);
  color: var(--rex-muted);
  background: #fff;
}

#rex-auditDialog .rex-step.rex-step-active .rex-step-number,
#rex-auditDialog .rex-step.rex-step-done .rex-step-number {
  border-color: var(--rex-green);
  color: #fff;
  background: var(--rex-green);
}

#rex-auditDialog .rex-step-line {
  height: 1px;
  background: var(--rex-line-strong);
}

#rex-auditDialog .rex-step-label {
  color: var(--rex-muted);
  font-size: 10px;
}

#rex-auditDialog .rex-step.rex-step-active .rex-step-label {
  color: var(--rex-green);
}

#rex-auditDialog .rex-step-actions .rex-step-next,
#rex-auditDialog .rex-step-actions .rex-submit-btn {
  border-color: var(--rex-green);
  color: #fff;
  background: var(--rex-green);
}

.rex-step-actions {
  position: sticky;
  bottom: -22px;
  z-index: 2;
  gap: 8px;
  margin: 10px -20px -22px;
  padding: 12px 20px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rex-line);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(12px);
}

.rex-step-btn {
  min-height: 44px;
  border-radius: 8px;
}

.rex-step-btn.rex-step-prev {
  border: 1px solid var(--rex-line-strong);
  color: var(--rex-ink);
  background: #fff;
}

.rex-step-btn.rex-step-next {
  border-color: var(--rex-green);
  color: #fff;
  background: var(--rex-green);
}

.rex-field-hint {
  padding: 9px 10px;
  border-left: 3px solid var(--rex-blue);
  border-radius: 0 6px 6px 0;
  color: #486477;
  background: #edf4f7;
  font-size: 11px;
  line-height: 1.5;
}

.rex-segment,
.rex-report-tabs {
  padding: 3px;
  border: 1px solid var(--rex-line);
  border-radius: 8px;
  background: #f1f4f2;
}

.rex-segment button,
.rex-report-tab {
  min-height: 38px;
  border-radius: 6px;
}

.rex-segment button.rex-active,
.rex-report-tab.rex-active {
  color: var(--rex-green);
  background: #fff;
  box-shadow: 0 2px 8px rgb(16 33 30 / 0.08);
}

.rex-preview-success,
.rex-success-icon {
  color: var(--rex-green);
}

.rex-resource-preview-card,
.rex-preview-card,
.rex-detail-section,
.rex-report-card,
.rex-match-result-item,
.rex-benefit-item {
  border: 1px solid var(--rex-line);
  border-radius: 8px;
  background: #fff;
}

.rex-detail-section {
  margin: 0;
  padding: 14px;
}

.rex-detail-section + .rex-detail-section {
  margin-top: 0;
}

.rex-detail-section > strong,
.rex-detail-section > h3 {
  display: block;
  margin: 0 0 9px;
  color: var(--rex-ink);
  font-size: 13px;
  font-weight: 750;
}

.rex-detail-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.8fr) 1.2fr;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  border-bottom: 1px solid #edf1ef;
}

.rex-detail-row:last-child {
  border-bottom: 0;
}

.rex-detail-label {
  color: var(--rex-muted);
  font-size: 12px;
}

.rex-detail-value {
  color: var(--rex-ink);
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

.rex-detail-desc {
  margin: 0;
  color: var(--rex-muted);
  font-size: 13px;
  line-height: 1.65;
}

.rex-detail-needs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rex-detail-needs span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #315a52;
  background: var(--rex-green-soft);
  font-size: 11px;
}

.rex-free-section {
  border-color: #c9ddd6;
  background: #f8fbfa;
}

.rex-vip-section {
  border: 1px solid #ead6ad;
  background: #fdf9f0;
}

.rex-section-badge {
  margin-bottom: 8px;
  padding: 4px 8px;
  font-size: 10px;
}

.rex-locked-row {
  opacity: 1;
}

.rex-locked-pill {
  border: 1px solid #e4c98f;
  color: #7b581e;
  background: #fffaf0;
  font-size: 10px;
}

.rex-vip-upgrade-card {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff4dd;
}

.rex-vip-upgrade-card p {
  margin: 0;
  color: #70572e;
  font-size: 11px;
  line-height: 1.5;
}

.rex-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 3px 0 0;
  padding-top: 4px;
}

.rex-vip-btn {
  color: var(--rex-green-2);
  border: 1px solid #d8c394;
  background: var(--rex-gold-soft);
}

.rex-value-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.rex-value-list li {
  position: relative;
  padding-left: 16px;
  color: var(--rex-muted);
  font-size: 12px;
}

.rex-value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rex-green);
}

.rex-submit-btn:disabled,
button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.rex-toast {
  left: 50%;
  bottom: 88px;
  max-width: calc(100vw - 40px);
  padding: 11px 15px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  color: #fff;
  background: #122622;
  box-shadow: var(--rex-shadow-md);
  font-size: 12px;
}

@media (max-width: 520px) {
  body {
    display: block;
    background: var(--rex-paper);
  }

  .rex-phone-shell {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    box-shadow: none;
  }

  dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border: 0;
    border-radius: 8px 8px 0 0;
  }

  .rex-dialog-body,
  .rex-dialog-body.large,
  .rex-dialog-body.rex-large {
    max-height: 92dvh;
  }
}

@media (max-width: 375px) {
  .rex-screen {
    padding-left: 14px;
    padding-right: 14px;
  }

  .rex-hero,
  .rex-page-title,
  .rex-shop-hero,
  .rex-profile-card,
  .rex-filter-row {
    margin-left: -14px;
    margin-right: -14px;
  }

  .rex-primary-card {
    padding: 13px;
  }

  .rex-primary-card strong {
    font-size: 16px;
  }

  .rex-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
