.mm-page {
  --mm-accent: oklch(.525 .223 3.958);
  --mm-tint: oklch(.971 .014 343.198);
  --mm-tint-border: oklch(.899 .061 343.231);
  --mm-ink: #101828;
  --mm-gray: #6a7282;
  --mm-line: #e5e7eb;
  --mm-pale: #f3f4f6;
}
.mm-page .mk-module-bar { background: #fff; border: 1px solid var(--mm-line); box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.mm-page .mk-module-description { font-size: 12px; font-weight: 500; color: var(--mm-gray); }
.mm-page .mk-tabs button { font-size: 14px; line-height: 20px; font-weight: 700; padding: 10px 24px; border-radius: 8px; }
.mm-page .mk-tabs .mk-tab-active { color: oklch(.592 .249 .584); }
.mm-page.mk-shopee .mk-tabs .mk-tab-active { color: oklch(.646 .222 41.116); }

.mm-header, .mm-heading-actions, .mm-views, .mm-views > button, .mm-account, .mm-count,
.mm-toolbar, .mm-search, .mm-dates, .mm-sorts, .mm-sort-chip, .mm-add, .mm-filter,
.mm-filterbar, .mm-chip, .mm-footer, .mm-footer > div, .mm-footer label { display: flex; align-items: center; }
.mm-header { justify-content: space-between; gap: 16px; margin: 0 0 16px; flex-wrap: wrap; }
.mm-heading h2 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--mm-ink); letter-spacing: -.6px; }
.mm-heading p { margin: 0; font-size: 14px; line-height: 20px; color: var(--mm-gray); }
.mm-heading-actions { gap: 16px; flex-wrap: wrap; }
.mm-picker-wrap { position: relative; }
.mm-page .mm-count, .mm-page .mm-account { border: 1px solid var(--mm-line); border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; padding: 4px 10px; gap: 6px; white-space: nowrap; }
.mm-page .mm-account { background: var(--mm-pale); color: #364153; }
.mm-page .mm-account:hover { background: #e5e7eb; }
.mm-page .mm-count { padding: 4px 12px; background: var(--mm-tint); border-color: oklch(.948 .028 342.258); color: var(--mm-accent); font-weight: 700; }
.mm-views { gap: 2px; padding: 3px; border: 1px solid var(--mm-line); border-radius: 8px; background: white; }
.mm-page .mm-views button { gap: 5px; border: 0; border-radius: 5px; background: transparent; padding: 5px 8px; color: var(--mm-gray); font-size: 11px; font-weight: 600; line-height: 16px; }
.mm-page .mm-views button[aria-pressed=true] { background: var(--mm-pale); color: #1e2939; }

.mm-controls { margin-bottom: 16px; }
.mm-toolbar { gap: 8px; min-height: 42px; flex-wrap: wrap; width: 100%; padding: 8px 12px; border: 1px solid var(--mm-line); border-radius: 8px; background: white; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.mm-search { flex: 1 1 160px; min-width: 120px; gap: 8px; color: #99a1af; }
.mm-page .mm-search input { width: 100%; min-width: 0; background: transparent; border: 0; color: var(--mm-ink); font-size: 14px; padding: 3px 0; }
.mm-page .mm-search input:focus-visible { outline-offset: 0; }
.mm-page .mm-search input::placeholder { color: #99a1af; }
.mm-divider, .mm-break { width: 1px; height: 20px; flex: none; background: var(--mm-line); }
.mm-dates { gap: 6px; color: #4a5565; }
.mm-dates > strong { min-width: 102px; text-align: center; text-transform: uppercase; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mm-page .mm-dates button:not(.mm-custom), .mm-page .mm-sort-chip button, .mm-page .mm-chip button { border: 0; box-shadow: none; background: transparent; color: inherit; display: inline-grid; place-items: center; }
.mm-page .mm-dates button:not(.mm-custom) { padding: 4px; border-radius: 4px; }
.mm-page .mm-dates button:hover:enabled, .mm-page .mm-footer button:hover:enabled { background-color: var(--mm-pale); }
.mm-dates .mm-divider { height: 16px; }
.mm-page .mm-custom, .mm-page .mm-add, .mm-page .mm-filter, .mm-chip { padding: 4px 8px; color: #4a5565; font-size: 11px; line-height: 16px; border-radius: 6px; }
.mm-page .mm-custom { padding: 4px 10px; background: transparent; border: 0; font-size: 10px; line-height: 14px; color: #99a1af; text-transform: uppercase; font-weight: 700; }
.mm-page .mm-custom[aria-pressed=true], .mm-page .mm-filter[aria-expanded=true] { color: var(--mm-accent); background: var(--mm-tint); border-color: var(--mm-tint-border); }
.mm-page .mm-dates input { max-width: 125px; padding: 3px 5px; color: #364153; border: 1px solid var(--mm-line); border-radius: 4px; font-size: 11px; }
.mm-sorts { flex-wrap: wrap; gap: 6px; }
.mm-sorts > small, .mm-footer label { font-size: 10px; color: #99a1af; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.mm-sort-chip { gap: 4px; padding: 2px 8px; background: var(--mm-tint); border: 1px solid var(--mm-tint-border); border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--mm-accent); line-height: 16px; }
.mm-page .mm-sort-chip button, .mm-page .mm-chip button { width: 15px; height: 16px; border-radius: 3px; padding: 0; }
.mm-page .mm-sort-chip button:hover { background: var(--mm-tint-border); }
.mm-page .mm-add { background: white; border: 1px dashed #d1d5dc; color: var(--mm-gray); gap: 4px; white-space: nowrap; }
.mm-page .mm-filter { padding: 6px 12px; border: 0; background: transparent; gap: 6px; font-size: 12px; font-weight: 600; }
.mm-filter b { border-radius: 999px; padding: 0px 5px; color: white; background: var(--mm-accent); font-size: 10px; }
.mm-filterbar { margin-top: 8px; flex-wrap: wrap; gap: 8px; }
.mm-chip { background: white; border: 1px solid var(--mm-line); display: inline-flex; gap: 4px; }
.mm-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 4px);
  left: 0;
  min-width: 165px;
  width: max-content;
  max-width: min(310px,85vw);
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--mm-line);
  border-radius: 8px;
  background: white;
  padding: 4px;
  box-shadow: 0 4px 12px rgb(0 0 0 / .1);
}
.mm-heading-actions .mm-menu, .mm-sorts .mm-menu { left: auto; right: 0; }
.mm-page .mm-menu button { display: block; width: 100%; background: transparent; color: #364153; font-size: 12px; padding: 7px 9px; border: 0; border-radius: 4px; text-align: left; }
.mm-page .mm-menu button:hover, .mm-page .mm-menu button:focus-visible { background: var(--mm-pale); }
.mm-page .mm-menu button[aria-pressed=true] { color: #1447e6; background: #eff6ff; font-weight: 600; }
.mm-heading-actions .mm-menu button:hover, .mm-heading-actions .mm-menu button:focus-visible { color: #1447e6; background: #eff6ff; }
.mm-menu > small { display: block; padding: 6px 9px; font-size: 10px; font-weight: 700; color: #99a1af; text-transform: uppercase; }

.mm-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 8px 16px; margin-bottom: 16px; background: rgb(239 246 255 / .5); border: 1px solid #dbeafe; border-radius: 8px; color: #1447e6; font-size: 10px; line-height: 16px; }
.mm-legend strong, .mm-legend > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mm-legend strong { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.mm-break { height: 16px; background: #bedbff; }
.mm-push { margin-left: auto; }
.mm-marker { width: 12px; height: 12px; border-radius: 2px; display: inline-block; flex: none; }
.mk-shopee .mm-marker { border-radius: 50%; }
.mm-marker.good { background: #00c950; }
.mm-marker.medium { background: #fdc700; }
.mm-marker.review { background: #ad46ff; }
.mm-marker.low { background: #fb2c36; }
.mm-marker.none { background: #f3f4f6; border: 1px solid #e5e7eb; }
.mm-marker.paused { background: #ff6900; }
.mm-marker.hatch { border: 1px solid #99a1af; background-image: repeating-linear-gradient(45deg, transparent 0 2px, rgb(0 0 0 / .1) 2px 4px); }
.mm-letter { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 10px; font-weight: 700; line-height: 1; border-radius: 4px; background: #f3f4f6; color: #4a5565; }
.mm-letter.premium { color: #8200db; background: #f3e8ff; }
.mm-flash-icon, .mm-ads-icon { display: inline-flex; align-items: center; }
.mm-ads-icon { color: #2563eb; }
.mm-flash-icon { color: #eab308; }
.mm-board { border: 1px solid var(--mm-line); border-radius: 12px; background: white; }
.mm-board .mm-grid-scroller { border: 0; border-radius: 11px 11px 0 0; }
.mm-footer { flex-wrap: wrap; gap: 10px; justify-content: space-between; background: #f9fafb; border-top: 1px solid var(--mm-line); border-radius: 0 0 15px 15px; padding: 16px 24px; color: var(--mm-gray); font-size: 12px; line-height: 16px; }
.mm-footer > div { gap: 8px; }
.mm-footer > div:first-child { gap: 16px; }
.mm-footer label { gap: 8px; }
.mm-page .mm-footer select { background: white; color: #364153; border: 1px solid #d1d5dc; padding: 5px 10px; border-radius: 6px; font-size: 12px; text-transform: none; }
.mm-footer b { color: #364153; }
.mm-page .mm-footer button { width: 30px; height: 30px; display: inline-grid; place-items: center; background: white; color: var(--mm-gray); border: 1px solid var(--mm-line); border-radius: 6px; }
@media (max-width: 1023px) {
  .mm-toolbar { gap: 8px; }
  .mm-search { flex-basis: 125px; }
  .mm-legend { column-gap: 14px; }
}
@media (max-width: 720px) {
  .mm-page .mk-tabs button { padding-inline: 12px; }
  .mm-heading-actions { gap: 5px; }
  .mm-toolbar { flex-wrap: wrap; padding: 8px; }
  .mm-search { flex-basis: 100%; }
  .mm-toolbar > .mm-divider { display: none; }
  .mm-page .mm-dates { flex-wrap: wrap; }
  .mm-header { gap: 8px; }
  .mm-heading h2 { font-size: 21px; }
  .mm-legend { gap: 6px 12px; padding: 8px 10px; }
  .mm-legend .mm-push { margin-left: 0; }
  .mm-break { display: none; }
  .mm-footer { padding: 12px; }
  .mm-sorts .mm-menu { left: 0; right: auto; }
}
