body.mp { margin: 0; background: var(--sw-bg); color: var(--sw-ink); font-family: var(--font-ui); font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; }
.mp-main a { text-decoration: none; }
.mp-main a:not(.button) { color: inherit; }
.mp button { font-family: inherit; }
.mp [hidden] { display: none !important; }
.mp .foot { margin-top: 96px; }

.mp-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 0; }
.mp-title { margin: 0 0 28px; font-size: clamp(38px, 5vw, 58px); font-weight: 650; line-height: 1.05; letter-spacing: -0.04em; }
.mp-title span { font-weight: 350; color: var(--sw-muted); }

.mp-full { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 22px; padding: 16px 20px; border-radius: 18px; background: #FDF1EF; color: #7A271A; animation: mp-in .35s cubic-bezier(.3, .7, .3, 1); }
.mp-full__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #B42318; }
.mp-full__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-full__text { display: grid; gap: 2px; padding-top: 1px; font-size: 14px; line-height: 1.45; }
.mp-full__text b { font-size: 15px; font-weight: 650; color: #B42318; }

.mp-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 20px; }
.mp-filter { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #F2EFEC; }
.mp-filter button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--sw-muted); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.mp-filter button:hover { color: var(--sw-ink); }
.mp-filter button.is-active { background: #fff; color: var(--sw-ink); box-shadow: 0 1px 2px rgba(42, 35, 32, .12); }
.mp-filter button[hidden] { display: none; }

.mp-card[hidden] { display: none; }
.mp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.mp-list > .mp-loading, .mp-list > .mp-empty { grid-column: 1 / -1; }
.mp-sort { height: 40px; margin-left: auto; padding: 0 36px 0 16px; border: 1px solid #E8E2DD; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C524C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 14px; color: var(--sw-ink); font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; -webkit-appearance: none; appearance: none; cursor: pointer; }
.mp-sort:hover { border-color: #CFC6BF; }

.mp-card { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 14px 14px 16px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 35, 32, .06), 0 18px 40px -32px rgba(42, 35, 32, .35); transition: height .4s cubic-bezier(.3, .7, .3, 1), opacity .3s ease, transform .3s ease, padding .4s ease; }
.mp-card[hidden] { display: none; }
.mp-card.is-leaving { overflow: hidden; opacity: 0; transform: scale(.98); padding-top: 0; padding-bottom: 0; }
.mp-card.is-menu { position: relative; z-index: 5; }
.mp-card__art { position: relative; display: grid; overflow: hidden; border-radius: 16px; }
.mp-card__art::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(42, 35, 32, .06); pointer-events: none; }
.mp-card__gradient { height: 117px; background: var(--pt-soft, #FAFAFA); }
.mp-card__colors { display: flex; height: 176px; }
.mp-card__gradient + .mp-card__colors { height: 59px; }
.mp-swatch { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; text-align: left; cursor: pointer; transition: flex-grow .25s cubic-bezier(.3, .7, .3, 1); }
.mp-swatch__text { position: absolute; left: 10px; right: 6px; bottom: 10px; display: grid; gap: 2px; }
.mp-card__gradient + .mp-card__colors .mp-swatch__text { bottom: 8px; }
.mp-swatch__name { font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-swatch__hex { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; opacity: .85; }
@media (hover: hover) and (min-width: 641px) { .mp-swatch:hover { flex-grow: 2.2; } }
.mp-card__text { display: grid; gap: 5px; min-width: 0; padding: 0 6px; }
.mp-card__title { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; color: var(--sw-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-card__meta { margin: 0; font-size: 12.5px; color: var(--sw-muted); }
.mp-card.is-renaming .mp-card__title { display: none; }
.mp-card__input { box-sizing: border-box; width: 100%; height: 34px; margin: -6px 0 -7px; padding: 0 10px; border: 1px solid #D9D2CC; border-radius: 10px; background: #fff; color: var(--sw-ink); font-family: inherit; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; outline: none; box-shadow: 0 0 0 4px rgba(42, 35, 32, .05); }
.mp-card__share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mp-more { position: relative; display: inline-flex; margin-left: auto; }
.mp-more__btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #e8e8e8; border-radius: 50%; background: #fff; color: var(--sw-ink); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.mp-more__btn:hover, .mp-more__btn[aria-expanded="true"] { background: #F7F5F2; border-color: #E3DDD8; }
.mp-more__btn svg { width: 18px; height: 18px; fill: currentColor; }
.mp-more__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: grid; gap: 2px; width: 220px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 35, 32, .07), 0 28px 60px -24px rgba(42, 35, 32, .45); }
.mp-more__menu[hidden] { display: none; }
.mp-more__item { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 11px; background: none; color: var(--sw-ink); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; text-align: left; cursor: pointer; }
.mp-more__item:hover { background: #F7F5F2; }
.mp-more__item svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-delete { display: grid; }
.mp-delete__btn:hover { background: #FDF1EF; color: #B42318; }
.mp-delete__confirm { display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 4px 4px; }
.mp-delete__text { grid-column: 1 / -1; padding: 0 4px 4px; font-size: 14px; font-weight: 600; color: #B42318; }
.mp-delete__cancel, .mp-delete__yes { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; }
.mp-delete__cancel { background: #fff; color: var(--sw-ink); box-shadow: inset 0 0 0 1px rgba(42, 35, 32, .12); }
.mp-delete__yes { background: #B42318; color: #fff; }
.mp-delete__yes:hover { background: #9A1D14; }
.mp-delete.is-asking .mp-delete__btn { display: none; }
.mp-delete.is-asking .mp-delete__confirm { display: grid; }
.mp-more__menu:has(.is-asking) [data-rename] { display: none; }
.mp-card__edit { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 14px; border: 1px solid #e8e8e8; border-radius: 999px; background: #fff; color: var(--sw-ink) !important; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; transition: background .2s ease; }
.mp-card__edit:hover { background: #fafafa; }
.mp-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 2px; }
.mp-card__actions .mp-card__share { margin-left: 0; }
.mp-use { position: relative; display: inline-flex; }
.mp-use__btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 16px; border: 1px solid #e8e8e8; border-radius: 999px; background: #fff; color: var(--sw-ink); font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
.mp-use__btn:hover, .mp-use__btn[aria-expanded="true"] { background: #F7F5F2; border-color: #E3DDD8; }
.mp-use__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.mp-use__menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; display: grid; gap: 2px; width: 230px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 35, 32, .07), 0 28px 60px -24px rgba(42, 35, 32, .45); }
.mp-use__menu[hidden] { display: none; }
.mp-use__title { margin: 2px 10px 6px; font-size: 12px; font-weight: 600; color: var(--sw-muted); }
.mp-use__item { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 11px; color: var(--sw-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.mp-use__item:hover { background: #F7F5F2; }
.mp-use__item i { flex: none; width: 26px; height: 18px; border-radius: 5px; }
.mp-use__item i svg { display: block; width: 26px; height: 18px; }
.mp-card__share { display: inline-flex; align-items: center; gap: 8px; height: 38px; margin-left: -8px; padding: 0 16px 0 14px; border: 1px solid #e8e8e8; border-radius: 999px; background: #fff; color: var(--sw-ink); font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.mp-card__share:hover { background: #F7F5F2; border-color: #E3DDD8; }
.mp-card__edit svg, .mp-export__btn svg:not(.mp-use__chev) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }




.mp-card.is-exporting { position: relative; z-index: 5; overflow: visible; }
.mp-export { position: relative; display: inline-flex; }
.mp-export__btn { gap: 8px; padding: 0 12px 0 14px; }
.mp-export__btn .mp-use__chev { transition: transform .2s ease; }
.mp-export__btn[aria-expanded="true"] { background: #F7F5F2; border-color: #E3DDD8; }
.mp-export__btn[aria-expanded="true"] .mp-use__chev { transform: rotate(180deg); }
.mp-export__pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; box-sizing: border-box; width: min(440px, calc(100vw - 24px)); overflow-y: auto; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 35, 32, .07), 0 28px 60px -24px rgba(42, 35, 32, .45); }
.mp-export__pop[hidden] { display: none; }
.mp-export__title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--sw-muted); }
.mp-export__title ~ .mp-export__title { margin-top: 20px; padding-top: 16px; border-top: 1px solid #ECE7E3; }
.mp .pt-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp .pt-format { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 14px 13px; border: 1px solid #ECE7E3; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.mp .pt-format b { padding-right: 20px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--sw-ink); }
.mp .pt-format small { font-size: 12px; color: var(--sw-muted); line-height: 1.3; }
.mp .pt-format::after { content: ''; position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; background: url('/icons/icon-download.svg') center / contain no-repeat; opacity: .22; transition: opacity .2s ease, transform .2s ease; }
.mp .pt-format:hover { background: #FAFAFA; border-color: #E3DDD8; transform: translateY(-1px); }
.mp .pt-format:hover::after { opacity: .8; transform: translateY(1px); }
.mp .mp-format--copy::after { background-image: url('/icons/icon-link.svg'); }

.mp-size { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.mp-size__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 13px; border: 1px solid #EEEEEF; border-radius: 12px; background: #fff; color: var(--sw-ink); font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.mp-size__btn:hover { background: #fafafa; border-color: #E4E4E6; }
.mp-size__btn[aria-expanded="true"] { border-color: #D6CEC7; box-shadow: 0 0 0 .5px #D6CEC7; }
.mp-size__btn[aria-expanded="true"] .mp-use__chev { transform: rotate(180deg); }
.mp-size__shape { flex: none; box-sizing: border-box; width: 18px; height: 12px; border: 1.6px solid currentColor; border-radius: 3px; opacity: .5; }
.mp-size__dims { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--sw-muted); }
.mp-size__custom { display: inline-flex; align-items: center; gap: 8px; color: var(--sw-muted); font-weight: 700; }
.mp-size__custom[hidden] { display: none; }
.mp-size__input { box-sizing: border-box; width: 92px; height: 40px; padding: 0 12px; border: 1px solid #EEEEEF; border-radius: 12px; background: #fff; color: var(--sw-ink); font-family: var(--font-mono); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mp-size__menu { position: fixed; z-index: 100; box-sizing: border-box; min-width: 272px; overflow: auto; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 35, 32, .07), 0 28px 60px -24px rgba(42, 35, 32, .45); }
.mp-size__group { padding: 10px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a0a0a0; }
.mp-size__item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--sw-ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; text-align: left; cursor: pointer; }
.mp-size__item:hover { background: #FAFAFA; }
.mp-size__item.is-active { background: #F7F5F2; font-weight: 700; }
.mp-size__item.is-active .mp-size__shape { border-color: currentColor; }
.mp-size__item-dims { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--sw-muted); }


@keyframes mp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mp-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 64px 24px; color: var(--sw-muted); font-size: 15px; font-weight: 600; }
.mp-loading__spin { box-sizing: border-box; flex: none; width: 18px; height: 18px; border: 2px solid rgba(42, 35, 32, .16); border-top-color: var(--sw-ink); border-radius: 50%; animation: swSpin .9s linear infinite; }

.mp-empty { display: grid; justify-items: center; gap: 10px; padding: 64px 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 35, 32, .06); text-align: center; }
.mp-empty__title { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.mp-empty__text { margin: 0 0 8px; font-size: 16px; color: var(--sw-ink-2); }

.mp-toast { position: fixed; left: 50%; bottom: 28px; z-index: 10000; padding: 12px 18px; border-radius: 999px; background: var(--sw-ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); transform: translate(-50%, 8px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.mp-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .mp-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mp-main { width: calc(100% - 32px); padding-top: 40px; }
  .mp-card { padding: 12px 12px 14px; border-radius: 18px; }
  .mp-card__art { border-radius: 12px; }
  .mp-card__colors, .mp-card__gradient + .mp-card__colors { flex-wrap: wrap; height: auto; }
  .mp-swatch { flex: 1 1 calc(100% / var(--mp-row) - 1px); height: 76px; }
  .mp-card__gradient + .mp-card__colors .mp-swatch { height: 60px; }
  .mp-card__title { white-space: normal; }
  .mp-card__edit, .mp-card__share, .mp-use__btn, .mp-more__btn { height: 36px; }
  .mp-more__btn { width: 36px; }
  .mp-card__actions .mp-export, .mp-card__actions .mp-card__edit, .mp-card__actions .mp-use { flex: 1 1 auto; }
  .mp-card__actions .mp-use__btn { width: 100%; justify-content: center; }
  .mp-card__actions .mp-card__edit { justify-content: center; }
  .mp-tools { gap: 10px; }
  .mp-filter { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .mp-filter button { height: 32px; padding: 0 12px; flex: none; }
  .mp-sort { height: 38px; }
  .mp-full { padding: 14px 16px; }
  .mp-size__custom { flex: 1 1 100%; }
  .mp-size__input { flex: 1 1 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mp-card, .mp-swatch, .mp-toast { transition: none; }
  .mp-full { animation: none; }
}
