/*
 * My Shop (/myshop/): the panel for makers and partners. Same forma language as the shop pages (glass, cream pills,
 * thin big headlines), tinted by the shop's own photos, laid out as a calm workspace: a glass sidebar and the work.
 */

/* ---------- Page ---------- */
/* The panel is a dark room inside the radio's dark page (room.css), like the Club and the shop pages. */
.mk-panel { max-width: 1320px; display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 20px; align-items: start; }
.mk-panel h1 { font-family: 'Inter Display', Inter, sans-serif; font-weight: 300; letter-spacing: -.03em; line-height: 1.02; }

.mk-panel-loading { grid-column: 1 / -1; min-height: 62vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; }
.mk-panel-loading h1 { font-size: clamp(24px, 2.6vw, 32px); }
.mk-panel-loading p { color: var(--mk-ink-2); }
.mk-orb { width: 68px; height: 68px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, color-mix(in srgb, var(--tint) 60%, #fff) 38%, var(--tint-deep) 100%); box-shadow: 0 20px 50px -14px color-mix(in srgb, var(--tint-deep) 70%, transparent), inset 0 -6px 14px rgb(0 0 0 / .12); animation: mk-orb 2.4s ease-in-out infinite; }
@keyframes mk-orb { 50% { transform: translateY(-8px) scale(1.04); } }

.mk-welcome { grid-column: 1 / -1; width: min(760px, 100%); margin: 30px auto 0; border-radius: 42px; padding: clamp(28px, 5vw, 56px); }
.re-room .mk-welcome h1, .mk-welcome h1 { font-size: clamp(28px, 3vw, 40px); margin-top: 10px; }
.mk-welcome > p { margin-top: 14px; font-size: 16.5px; line-height: 1.55; color: var(--mk-ink-2); max-width: 54ch; }
.mk-list { display: grid; gap: 8px; }
.mk-list h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.mk-list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 14px 14px 18px; border-radius: 22px; background: rgb(255 255 255 / .07); }
.mk-list-row b { display: block; font-size: 15px; }
.mk-list-row small { display: block; font-size: 12.5px; color: var(--mk-ink-2); margin-top: 2px; }

/* ---------- Sidebar ---------- */
.mk-side { position: sticky; top: 96px; border-radius: 32px; padding: 16px; display: grid; gap: 12px; }
.mk-side-shop { display: flex; align-items: center; gap: 12px; padding: 4px 4px 6px; }
.mk-side-shop img, .mk-side-logo { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; background: var(--mk-card-2); box-shadow: 0 6px 16px -8px rgb(0 0 0 / .72); }
.mk-side-logo { display: grid; place-items: center; background: var(--tint-deep); color: var(--mk-cream); font-weight: 600; font-size: 19px; }
.mk-side-shop b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.2; }
.mk-side-shop small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 11.5px; color: var(--mk-ink-2); }
.mk-switch { width: 100%; min-height: 42px; padding: 0 36px 0 14px; border: 0; border-radius: 14px; background: rgb(255 255 255 / .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4eee5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); font: inherit; font-size: 14px; color: var(--mk-ink); -webkit-appearance: none; appearance: none; }
.mk-panel .mk-nav { display: grid; gap: 2px; }
.mk-panel .mk-nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 16px; background: none; text-align: left; font-size: 14.5px; font-weight: 500; color: var(--mk-ink-2); transition: background .25s, color .25s, transform .35s var(--mk-spring); }
.mk-panel .mk-nav button:hover { background: rgb(255 255 255 / .05); color: var(--mk-ink); }
.mk-panel .mk-nav button:active { transform: scale(.97); }
.mk-panel .mk-nav button[aria-current="page"] { background: var(--mk-card-2); color: var(--mk-ink); box-shadow: 0 8px 22px -12px rgb(0 0 0 / .72); }
.mk-panel .mk-nav svg { width: 20px; height: 20px; flex: none; }
.mk-panel .mk-nav button[aria-current="page"] svg { color: var(--tint-deep); }
.mk-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--tint-deep); color: var(--mk-cream); font-size: 11.5px; font-weight: 700; font-style: normal; font-variant-numeric: tabular-nums; animation: mk-pop .5s var(--mk-spring); }
.mk-view-shop { width: 100%; }
.mk-side-link { font-size: 12.5px; color: var(--mk-ink-2) !important; text-decoration: none; text-align: center; padding: 2px; }
.mk-side-link:hover { color: var(--mk-ink) !important; }

/* ---------- Main ---------- */
.mk-main { min-width: 0; }
.mk-main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 20px; }
.re-room .mk-main-head h1, .mk-main-head h1 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 6px; }
.mk-banner { margin-bottom: 16px; padding: 14px 18px; border-radius: 20px; background: rgb(255 255 255 / .07); box-shadow: inset 3px 0 0 var(--tint-deep); font-size: 14px; line-height: 1.5; }
.mk-banner.is-fix { box-shadow: inset 3px 0 0 #c4472a; background: color-mix(in srgb, #d24b2a 8%, #121212); }
.mk .mk-link, .mk-link { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--tint-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.mk-link:hover { color: var(--mk-ink); }
.mk-link.is-danger { color: #ff9a80; }
.mk-state { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 999px; background: rgb(255 255 255 / .07); font-size: 11.5px; font-weight: 600; color: var(--mk-ink); white-space: nowrap; }
.mk-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mk-ink-3); }
.mk-state.is-live::before { background: #2e9a52; box-shadow: 0 0 0 3px rgb(46 154 82 / .2); }
.mk-state.is-review::before { background: #F4EEE5; }
.mk-state.is-fix { color: #ffa58e; }
.mk-state.is-fix::before { background: #d24b2a; }
.mk-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--mk-ink-2); cursor: pointer; }
.mk-main-head .mk-pill svg { width: 18px; height: 18px; }

/* Report tiles */
.mk-report { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.mk-stat { padding: 14px 16px; border-radius: 22px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.mk-stat b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-stat span { display: block; margin-top: 2px; font-size: 12px; color: var(--mk-ink-2); }
.mk-main > .mk-tabs { margin: 0; }

/* ---------- Orders ---------- */
.mk-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.mk-orders > .mk-empty { grid-column: 1 / -1; }
.mk-order-card { border-radius: 28px; padding: 18px; display: grid; gap: 12px; align-content: start; }
.mk-order-card.is-placed { animation: mk-ring 2.2s ease-in-out infinite; }
@keyframes mk-ring { 50% { box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 0 0 4px color-mix(in srgb, var(--tint-vivid) 35%, transparent), 0 18px 50px -18px rgb(0 0 0 / .56); } }
.mk-oc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mk-oc-head b { display: block; font-size: 17px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.mk-oc-head small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mk-ink-2); }
.mk-oc-way { font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.mk-oc-way small { color: var(--mk-ink-2); font-weight: 400; }
.mk-oc-lines { list-style: none; margin: 0; padding: 12px 14px; border-radius: 18px; background: rgb(255 255 255 / .07); display: grid; gap: 7px; font-size: 14px; }
.mk-oc-lines b { font-variant-numeric: tabular-nums; margin-right: 4px; }
.mk-oc-lines em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--tint-deep); margin-left: 4px; }
.mk-oc-lines small { display: block; margin-left: 22px; font-size: 12px; color: var(--mk-ink-2); }
.mk-oc-note { font-size: 13.5px; font-style: italic; color: var(--mk-ink-2); }
.mk-oc-money { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--mk-ink-2); font-variant-numeric: tabular-nums; }
.mk-oc-money b { color: var(--mk-ink); font-weight: 600; }
.mk-oc-actions { gap: 8px; }
.mk-oc-actions .mk-link { margin-left: auto; }

/* Scanner */
.mk-scan { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: #111; }
.mk-scan video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-scan-frame { position: absolute; inset: 16%; border-radius: 24px; box-shadow: 0 0 0 999px rgb(0 0 0 / .32); }
.mk-scan-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px; background: var(--mk-rim); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.mk-scan-frame::after { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; border-radius: 1px; background: rgb(255 255 255 / .8); box-shadow: 0 0 14px rgb(255 255 255 / .9); animation: mk-scanline 2s ease-in-out infinite; }
@keyframes mk-scanline { 0%, 100% { transform: translateY(-80px); } 50% { transform: translateY(80px); } }
.mk-celebrate { display: grid; justify-items: center; gap: 14px; padding: 16px 0 6px; text-align: center; color: var(--mk-ink-2); }
.mk-done-mark { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: var(--mk-cream); background: linear-gradient(140deg, var(--tint-vivid), var(--tint-deep)); box-shadow: 0 18px 40px -14px var(--tint-deep); animation: mk-pop .6s var(--mk-spring); }

/* ---------- Modal ---------- */
.mk-modal { position: relative; width: min(580px, 100%); max-height: calc(100svh - 48px); overflow: auto; overscroll-behavior: contain; border-radius: 36px; background: color-mix(in srgb, var(--tint-soft) 70%, #121212); box-shadow: 0 40px 100px -30px rgb(20 10 0 / .6); animation: mk-rise .45s var(--mk-spring); }
.mk-modal.is-wide { width: min(1000px, 100%); }
.mk-modal-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 12px 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--tint-soft) 70%, #121212) 70%, transparent); }
.mk-modal-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-modal-body { padding: 4px 26px 26px; }
.mk-modal-body > .mk-chat { padding: 0; min-height: 440px; border-radius: 0; background: none; box-shadow: none; }

/* ---------- Items ---------- */
.mk-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; }
.mk-item-tile { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; padding: 8px; border: 0; border-radius: 28px; text-align: left; transition: transform .4s var(--mk-spring); }
.mk-item-tile:hover { transform: translateY(-3px); }
.mk-item-tile:active { transform: scale(.98); }
.mk-tile-ph { position: relative; width: 100%; aspect-ratio: 1; border-radius: 22px; background: color-mix(in srgb, var(--tint) 25%, #121212) center / cover no-repeat; display: block; }
.mk-tile-ph > .mk-state { position: absolute; top: 10px; left: 10px; }
.mk-tile-ph > .mk-tile-pending { top: auto; bottom: 10px; }
.mk-tile-info { display: grid; gap: 3px; padding: 8px 8px 6px; }
.mk-tile-info b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tile-info small { font-size: 12px; color: var(--mk-ink-2); }
.mk-fix-note { color: #ffa58e !important; }

/* Editor */
.mk-editor { display: grid; gap: 14px; }
.mk-photos, .mk-cover-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-photo { position: relative; width: 104px; height: 104px; flex: none; border-radius: 20px; background: color-mix(in srgb, var(--tint) 22%, #121212) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); overflow: hidden; }
.mk-photo.is-add { display: grid; place-content: center; justify-items: center; gap: 2px; padding: 8px; text-align: center; cursor: pointer; background: rgb(255 255 255 / .07); box-shadow: none; outline: 1.5px dashed rgb(255 255 255 / .22); outline-offset: -1.5px; transition: background .2s, outline-color .2s; }
.mk-photo.is-add:hover { background: rgb(255 255 255 / .12); outline-color: var(--tint-deep); }
.mk-photo.is-add span { font-size: 26px; font-weight: 300; line-height: 1; color: var(--tint-deep); }
.mk-photo.is-add small { font-size: 11px; line-height: 1.25; color: var(--mk-ink-2); }
.mk-photo.is-loading { background-image: linear-gradient(90deg, rgb(255 255 255 / .05), rgb(255 255 255 / .07), rgb(255 255 255 / .05)) !important; background-size: 200% 100% !important; animation: mk-shimmer 1.2s linear infinite; }
.mk-photo.is-video { background-color: #1b1714; }
.mk-photo.is-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; text-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.mk-cover-tag { position: absolute; left: 6px; bottom: 6px; z-index: 1; padding: 3px 7px; border-radius: 999px; background: rgb(255 255 255 / .12); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.mk-tint-dot { position: absolute; right: 7px; bottom: 7px; z-index: 1; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px rgb(255 255 255 / .25), 0 2px 6px rgb(0 0 0 / .25); }
.mk-photo-tools { position: absolute; top: 5px; right: 5px; z-index: 2; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.mk-photo:hover .mk-photo-tools, .mk-photo:focus-within .mk-photo-tools { opacity: 1; }
@media (hover: none) { .mk-photo-tools { opacity: 1; } }
.mk-photo-tools button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .12); font-size: 12px; box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.mk-offer-line { font-size: 13px; line-height: 1.5; color: var(--mk-ink-2); margin-top: -4px; }
.mk-offer-line .mk-off { margin-right: 6px; }
.mk-offer-line s { color: var(--mk-ink-3); }
.mk-warn { color: #ffa58e; font-weight: 600; }
.mk-options { display: grid; gap: 10px; }
.mk-options .mk-opt-label { margin-bottom: 0; align-items: center; }
.mk-group-edit > .mk-link { justify-self: start; }
.mk-group-edit { display: grid; gap: 8px; padding: 12px; border-radius: 20px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.mk-group-edit input:not([type="checkbox"]) { flex: 1 1 140px; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid rgb(255 255 255 / .12); border-radius: 12px; background: var(--mk-card-2); font: inherit; font-size: 14px; color: var(--mk-ink); outline: none; }
.mk-group-edit input:not([type="checkbox"]):focus { border-color: var(--tint-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 28%, transparent); }
.mk-group-edit > .mk-row:first-child input:not([type="checkbox"]) { font-weight: 600; }
.mk-choice-edit { padding-left: 14px; gap: 8px; }
.mk-choice-edit input[data-cdelta] { flex: 0 0 90px; }
/* The footer's fade uses the modal's own dark base, so no pale band shows where it meets the content (CodeRabbit MAKERS-52 #21). */
.mk-editor-foot { position: sticky; bottom: -26px; z-index: 2; margin: 4px -26px -26px; padding: 14px 26px 22px; background: color-mix(in srgb, var(--tint-soft) 70%, #121212); box-shadow: 0 -18px 22px -6px color-mix(in srgb, var(--tint-soft) 70%, #121212); }
.mk-file { cursor: pointer; }

/* ---------- Shop page ---------- */
.mk-shop-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.mk-shop-form { display: grid; gap: 14px; }
.mk-shop-form .mk-card-plain { display: grid; gap: 12px; }
.mk-shop-form .mk-card-plain h2 { margin-bottom: 0; }
.mk-shop-preview { position: sticky; top: 96px; display: grid; gap: 10px; }
.mk-logo.is-loading { background-image: linear-gradient(90deg, rgb(255 255 255 / .05), rgb(255 255 255 / .12), rgb(255 255 255 / .05)) !important; background-size: 200% 100% !important; animation: mk-shimmer 1.2s linear infinite; }
.mk-logo { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 30%, #121212) center / cover no-repeat; box-shadow: 0 0 0 3px rgb(255 255 255 / .25), 0 8px 20px -10px rgb(0 0 0 / .80); }
.mk-mini-hero { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: color-mix(in srgb, var(--tint) 30%, #121212); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .85); }
.mk-mh-photo { position: absolute; inset: 0; background: center / cover no-repeat; transition: background-image .4s; }
.mk-mh-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--tint-soft) 70%, transparent), transparent 46%, transparent 62%, color-mix(in srgb, var(--tint-soft) 40%, transparent)); }
.mk-mh-copy { position: absolute; left: 22px; right: 22px; top: 24px; display: grid; gap: 8px; justify-items: start; }
.mk-mh-copy h3 { font-family: 'Inter Display', Inter, sans-serif; font-weight: 300; font-size: calc(30px * var(--mk-title-k, 1)); line-height: 1.02; letter-spacing: -.03em; overflow-wrap: anywhere; }
.mk-mh-copy .mk-pill { margin-top: 6px; pointer-events: none; }
.mk-mh-tray { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 24px; }
.mk-mh-tray span { aspect-ratio: 1; border-radius: 16px; background: rgb(255 255 255 / .07) center / cover no-repeat; }
.mk-switches { display: grid; gap: 6px; }
.mk-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 18px; background: rgb(255 255 255 / .07); cursor: pointer; }
.mk-switch-row b { display: block; font-size: 14px; font-weight: 600; }
.mk-switch-row small { display: block; font-size: 12px; color: var(--mk-ink-2); }
.mk-switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mk-switch-row i { position: relative; width: 48px; height: 29px; flex: none; border-radius: 15px; background: rgb(255 255 255 / .16); transition: background .3s; }
.mk-switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .22); transition: transform .4s var(--mk-spring); }
.mk-switch-row input:checked + i { background: var(--tint-deep); }
.mk-switch-row input:checked + i::after { transform: translateX(19px); }
.mk-switch-row input:focus-visible + i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 35%, transparent); }
.mk-switch-note { padding: 4px 6px; }

/* ---------- Deals ---------- */
.mk-deal-list { display: grid; gap: 10px; }
.mk-deal-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 26px; flex-wrap: wrap; }
.mk-deal-row > div:nth-child(2) { flex: 1 1 220px; min-width: 0; }
.mk-deal-row b { display: block; font-size: 15px; font-weight: 600; }
.mk-deal-row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mk-ink-2); }

/* ---------- Messages ---------- */
.mk-inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items: start; }
.mk-threads { border-radius: 28px; padding: 8px; max-height: 640px; overflow-y: auto; display: grid; gap: 2px; }
.mk-thread-row { display: grid; gap: 2px; width: 100%; padding: 12px 14px; border: 0; border-radius: 20px; background: none; text-align: left; transition: background .2s; }
.mk-thread-row:hover { background: rgb(255 255 255 / .05); }
.mk-thread-row.is-on { background: var(--mk-card-2); box-shadow: 0 8px 22px -12px rgb(0 0 0 / .72); }
.mk-thread-row b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.mk-thread-row small { font-size: 11.5px; color: var(--tint-deep); font-weight: 600; }
.mk-thread-row span { font-size: 13px; color: var(--mk-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-thread-pane .mk-chat { height: 640px; }
.mk-thread-pane > .mk-empty { border-radius: 28px; background: rgb(255 255 255 / .05); }
.mk-chat-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tint-deep); color: var(--mk-cream); font-weight: 600; font-size: 14px; }

/* ---------- Promote ---------- */
.mk-ad-card { border-radius: 28px; padding: 18px 20px; display: grid; gap: 10px; margin-bottom: 12px; }
.mk-ad-card .mk-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 4px; }
.mk-ad-card .mk-oc-head b { font-size: 18px; letter-spacing: -.01em; }
.mk-ad-copy { font-size: 14px; line-height: 1.5; color: var(--mk-ink-2); }
.mk-ad-copy b { color: var(--mk-ink); }
.mk-ad-card .mk-report { margin: 4px 0 0; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.mk-wizard { display: grid; gap: 16px; }
.mk-wiz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mk-wiz-steps li { display: grid; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--mk-ink-3); }
.mk-wiz-steps li::before { content: ""; height: 5px; border-radius: 3px; background: rgb(255 255 255 / .1); transition: background .4s; }
.mk-wiz-steps li.is-done { color: var(--mk-ink-2); }
.mk-wiz-steps li.is-done::before { background: var(--tint-deep); }
.mk-wiz-steps li.is-now { color: var(--mk-ink); }
.mk-wiz-steps li.is-now::before { background: linear-gradient(90deg, var(--tint-vivid), var(--tint-deep)); }
.mk-wiz-q { font-family: 'Inter Display', Inter, sans-serif; font-weight: 300; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; margin-bottom: 12px !important; }
.mk-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mk-big-choice { min-height: 68px; padding: 14px 18px; border: 0; border-radius: 22px; text-align: left; font-size: 15px; font-weight: 500; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); transition: background .2s, color .2s, transform .35s var(--mk-spring); }
.mk-big-choice:active { transform: scale(.97); }
.mk-big-choice[aria-pressed="true"] { background: var(--mk-ink); color: var(--mk-cream); box-shadow: none; }
.mk-format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk-format { display: grid; gap: 8px; align-content: start; padding: 18px; border: 0; border-radius: 26px; text-align: left; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); transition: box-shadow .2s, background .2s, transform .35s var(--mk-spring); }
.mk-format:hover { background: rgb(255 255 255 / .12); }
.mk-format:active { transform: scale(.98); }
.mk-format[aria-pressed="true"] { background: var(--mk-card-2); box-shadow: inset 0 0 0 2px var(--mk-ink), 0 14px 30px -18px rgb(0 0 0 / .80); }
.mk-format b { font-size: 16px; font-weight: 600; }
.mk-format-price { font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--tint-deep); font-variant-numeric: tabular-nums; }
.mk-format-price small { font-size: 13px; font-weight: 500; color: var(--mk-ink-2); margin-left: 2px; }
.mk-format p { font-size: 13px; line-height: 1.45; color: var(--mk-ink-2); }
.mk-format ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12.5px; }
.mk-format li::before { content: "✓"; color: var(--tint-deep); font-weight: 700; margin-right: 7px; }
.mk-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.mk-week { display: grid; gap: 2px; padding: 12px 14px; border: 0; border-radius: 18px; text-align: left; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); transition: background .2s, color .2s, transform .35s var(--mk-spring); }
.mk-week:active { transform: scale(.96); }
.mk-week b { font-size: 14px; font-weight: 600; }
.mk-week small { font-size: 11.5px; color: var(--mk-ink-2); }
.mk-week[aria-pressed="true"] { background: var(--mk-ink); color: var(--mk-cream); box-shadow: none; }
.mk-week[aria-pressed="true"] small { color: rgb(244 238 229 / .7); }
.mk-week:disabled { opacity: .42; cursor: not-allowed; text-decoration: line-through; }
.mk-wiz-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.mk-wiz-split > div:first-child { display: grid; gap: 12px; align-content: start; }
.mk-wiz-split > div:last-child { position: sticky; top: 70px; display: grid; gap: 8px; }
.mk-wpreview .mk-shop-card { border-radius: 28px; }
.mk-radio-preview { display: grid; gap: 14px; padding: 22px; min-height: 300px; align-content: center; border-radius: 28px; background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--tint) 55%, #222), #141110); color: #fff; }
.mk-radio-preview .mk-label { color: rgb(255 255 255 / .7); }
.mk-radio-preview p { font-family: 'Inter Display', Inter, sans-serif; font-weight: 300; font-size: 21px; line-height: 1.25; }
.mk-radio-preview small { font-size: 12px; color: rgb(255 255 255 / .6); }
.mk-wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.mk-wave i { flex: 1; height: 30%; border-radius: 2px; background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--tint) 60%, #fff)); animation: mk-wave 1.2s ease-in-out infinite; }
.mk-wave i:nth-child(3n) { animation-delay: -.3s; } .mk-wave i:nth-child(3n+1) { animation-delay: -.7s; } .mk-wave i:nth-child(4n) { animation-delay: -.5s; } .mk-wave i:nth-child(5n) { animation-delay: -.9s; }
@keyframes mk-wave { 50% { height: 100%; } }
.mk-wiz-foot { position: sticky; bottom: -26px; z-index: 2; justify-content: space-between; margin: 0 -26px -26px; padding: 14px 26px 22px; background: color-mix(in srgb, var(--tint-soft) 70%, #121212); box-shadow: 0 -18px 22px -6px color-mix(in srgb, var(--tint-soft) 70%, #121212); }
.mk-wiz-price { font-size: 14px; color: var(--mk-ink-2); font-variant-numeric: tabular-nums; }
.mk-wiz-price b { font-size: 18px; color: var(--mk-ink); font-weight: 600; }

/* ---------- Payouts & plan ---------- */
.mk-pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.mk-pay-grid .mk-card-plain { display: grid; gap: 10px; }
.mk-pay-grid .mk-card-plain > p { line-height: 1.5; }
.mk-stripe-status { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 999px; background: rgb(255 255 255 / .06); font-size: 13px; font-weight: 600; }
.mk-stripe-status.is-ok { background: rgb(46 154 82 / .12); color: #7ee2a0; }
.mk-video-price { display: flex; align-items: baseline; gap: 4px; }
.mk-video-price b { font-size: 38px; font-weight: 400; letter-spacing: -.03em; }
.mk-video-price span { color: var(--mk-ink-2); }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 960px) {
	.mk-panel { grid-template-columns: 1fr; gap: 14px; }
	.mk-side { position: relative; top: 0; border-radius: 26px; padding: 12px; gap: 10px; }
	.mk-side-shop { padding: 0; }
	.mk-panel .mk-nav { display: flex; gap: 4px; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
	.mk-panel .mk-nav::-webkit-scrollbar { display: none; }
	.mk-panel .mk-nav button { width: auto; flex: none; min-height: 40px; padding: 0 14px; gap: 8px; font-size: 13.5px; scroll-snap-align: start; }
	.mk-panel .mk-nav svg { width: 17px; height: 17px; }
	.mk-count { margin-left: 2px; }
	.mk-view-shop, .mk-side-link { display: none; }
	.mk-shop-edit, .mk-inbox, .mk-wiz-split, .mk-pay-grid { grid-template-columns: 1fr; }
	.mk-shop-preview { position: relative; top: 0; order: -1; }
	.mk-mini-hero { aspect-ratio: 16 / 11; }
	.mk-wiz-split > div:last-child { position: relative; top: 0; }
	.mk-thread-pane .mk-chat { height: 70svh; }
}
@media (max-width: 640px) {
	.mk-main-head { align-items: flex-start; margin-bottom: 16px; }
	.mk-main-head > .mk-row, .mk-main-head > .mk-pill { width: 100%; }
	.mk-main-head > .mk-pill { justify-content: space-between; }
	.mk-main > .mk-report { display: flex; overflow-x: auto; margin-inline: calc(-1 * clamp(14px, 3vw, 32px)); padding: 2px clamp(14px, 3vw, 32px) 6px; scrollbar-width: none; }
	.mk-main > .mk-report::-webkit-scrollbar { display: none; }
	.mk-main > .mk-report .mk-stat { flex: 0 0 auto; min-width: 128px; padding: 11px 14px; border-radius: 18px; }
	.mk-main > .mk-report .mk-stat b { font-size: 19px; }
	.mk-ad-card .mk-report { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mk-orders { grid-template-columns: 1fr; }
	.mk-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.mk-item-tile { border-radius: 22px; padding: 6px; }
	.mk-tile-ph { border-radius: 17px; }
	.mk-tile-ph > .mk-state { top: 7px; left: 7px; font-size: 10.5px; padding: 0 8px; }
	.mk-choice-grid, .mk-format-grid { grid-template-columns: 1fr; }
	.mk-modal { width: 100%; max-height: 94svh; border-radius: 34px 34px 0 0; animation: mk-up-panel .5s var(--mk-spring); }
	.mk-modal.is-wide { width: 100%; }
	.mk-modal-head { padding: 16px 14px 10px 20px; }
	.mk-modal-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgb(255 255 255 / .2); }
	.mk-modal-body { padding: 2px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
	.mk-editor-foot, .mk-wiz-foot { margin: 4px -20px -22px; padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px)); bottom: -22px; }
	.mk-photo { width: 86px; height: 86px; border-radius: 17px; }
	.mk-wiz-steps li { font-size: 0; gap: 0; }
	.mk-oc-actions .mk-pill { flex: 1 1 auto; }
	.mk-oc-actions .mk-link { margin-left: 0; }
	.mk-editor-foot > .mk-pill { flex: 1 1 100%; order: 2; margin-left: 0 !important; }
	.mk-editor-foot { gap: 6px 16px; }
}
@keyframes mk-up-panel { from { transform: translateY(60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.mk-orb, .mk-order-card.is-placed, .mk-wave i, .mk-scan-frame::after, .mk-count, .mk-done-mark { animation: none !important; }
}

/* ---------- Item options, explained (owner's note: "what is this for?") ----------
   A short explanation, one card per option with labelled columns, plain-English switches, a live preview of what
   buyers see, and room under it so it never sits glued to the save bar. */
.mk-options { gap: 10px; margin-bottom: 14px; }
.mk-options .mk-opt-label small { font-weight: 500; color: var(--mk-ink-3); }
.mk-opt-help { margin: -4px 0 2px; font-size: 13px; line-height: 1.45; color: var(--mk-ink-2); }
.mk-opt-add { justify-self: start; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--tint-deep) 55%, rgb(255 255 255 / .2)); background: rgb(255 255 255 / .04); color: var(--mk-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.mk-opt-add:hover { background: color-mix(in srgb, var(--tint) 14%, rgb(255 255 255 / .04)); border-style: solid; }
.mk-opt-add:focus-visible { outline: 2px solid var(--tint-vivid); outline-offset: 2px; }
.mk-group-edit { gap: 10px; padding: 14px; border-radius: 20px; background: linear-gradient(180deg, rgb(255 255 255 / .075), rgb(255 255 255 / .035)); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .14); }
.mk-group-top { display: flex; align-items: end; gap: 10px; }
.mk-group-name { flex: 1; display: grid; gap: 5px; }
.mk-group-name small, .mk-choice-head { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--mk-ink-3); }
.mk-choice-head { display: grid; grid-template-columns: minmax(0, 1fr) 104px 148px; gap: 8px; padding: 2px 2px 0; }
.mk-choice-edit { display: grid; grid-template-columns: minmax(0, 1fr) 104px auto 32px; align-items: center; gap: 8px; padding-left: 0; }
.mk-delta { position: relative; display: block; }
.mk-delta span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--mk-ink-3); pointer-events: none; }
.mk-group-edit .mk-delta input { width: 100%; padding-left: 30px; }
.mk-choice-edit input[data-cdelta] { flex: none; }
.mk-sold { white-space: nowrap; }
.mk-icon-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(255 255 255 / .06); color: var(--mk-ink-2); font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
/* Icon buttons: a neutral hover; red only on the buttons that remove something (review T3-03: send and close turned
   red, which read as an error). The circle stays 32 px, with a 44 px tap area around it (T3-04). */
.mk-icon-btn { position: relative; }
.mk-icon-btn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.mk-icon-btn:hover { background: rgb(255 255 255 / .12); color: var(--mk-ink); }
.mk-icon-btn:is([data-cdel], [data-gdel]):hover { background: rgb(255 110 110 / .16); color: #ffb3b3; }
.mk-icon-btn:focus-visible { outline: 2px solid var(--tint-vivid); outline-offset: 2px; }
.mk-group-top .mk-icon-btn { margin-bottom: 4px; }
.mk-group-rules { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; border-top: .5px solid rgb(255 255 255 / .1); }
.mk-group-preview { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgb(0 0 0 / .22); }
.mk-group-preview small { font-size: 12px; color: var(--mk-ink-3); }
.mk-group-preview small b { color: var(--mk-ink-2); font-weight: 600; }
.mk-group-preview > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-chip-preview { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--mk-ink); background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .16); }
.mk-chip-preview.is-sold { opacity: .45; text-decoration: line-through; }
@media (max-width: 560px) {
	.mk-choice-head { display: none; }
	.mk-choice-edit { grid-template-columns: minmax(0, 1fr) 88px 32px; }
	.mk-choice-edit .mk-sold { grid-column: 1 / -1; grid-row: 2; }
}

/* A Club business of yours that has no online ordering yet, under the side panel (October 24, 2026). */
.mk-side-partners { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--mk-line); }
.mk-side-partners > b { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mk-ink-2); }
.mk-side-partner { display: grid; gap: 8px; }
.mk-side-partner span { font-size: 14px; font-weight: 600; color: var(--mk-ink); overflow-wrap: anywhere; }
.mk-side-partner .mk-pill { justify-content: center; }
@media (max-width: 960px) { .mk-side-partner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* ---------- Payouts & plan: a real photo on each card (owner, October 24, 2026: "more exciting") ----------
   The photo fills the top of the card and dissolves into it (a mask, so it works on any shop tint), the text below
   stays on the plain card. Both cards are the same height. Slow drift only when motion is allowed.
   Owner direction (same day): calmer, Apple.com-like sizing, with titles about 22px, body text 15-16px, and generous padding and gaps. */
.mk-pay-grid { gap: 20px; align-items: stretch; }
.mk-pay-grid .mk-pay-card { --pay-pad: 28px; position: relative; overflow: hidden; isolation: isolate; align-content: start; gap: 14px; padding: var(--pay-pad); }
.mk-pay-grid .mk-pay-card > h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.012em; line-height: 1.2; }
.mk-pay-grid .mk-pay-card > p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.mk-pay-grid .mk-pay-card > .mk-note { font-size: 13.5px; line-height: 1.5; color: var(--mk-ink-2); }
.mk-pay-grid .mk-pay-card > .mk-row { margin-top: 6px !important; gap: 18px; }
.mk-pay-grid .mk-pay-card > .mk-note[style] { margin-top: 6px !important; }
.mk-pay-grid .mk-pay-card .mk-video-price b { font-size: 34px; }
.mk-pay-photo { position: relative; z-index: -1; height: 176px; margin: calc(-1 * var(--pay-pad)) calc(-1 * var(--pay-pad)) 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, transparent 100%); }
.mk-pay-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; filter: saturate(1.05) brightness(.9); }
.mk-pay-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .28), transparent 38%); pointer-events: none; }
.mk-pay-badge { position: absolute; z-index: 1; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 11px; border-radius: 999px; background: rgb(8 24 15 / .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(126 226 160 / .35); color: #9ff0bd; font-size: 12px; font-weight: 600; }
.mk-pay-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3fe07f; box-shadow: 0 0 0 3px rgb(63 224 127 / .22); }
@media (prefers-reduced-motion: no-preference) {
	.mk-pay-photo img { animation: mk-pay-drift 26s ease-in-out infinite alternate; }
	.mk-pay-card + .mk-pay-card .mk-pay-photo img { animation-delay: -13s; }
}
body.quiet-motion .mk-pay-photo img { animation: none; }
@keyframes mk-pay-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -2%, 0); } }
@media (max-width: 960px) { .mk-pay-photo { height: 140px; } }
@media (max-width: 560px) { .mk-pay-grid { gap: 16px; } .mk-pay-grid .mk-pay-card { --pay-pad: 22px; } .mk-pay-grid .mk-pay-card > h2 { font-size: 21px; } .mk-pay-grid .mk-pay-card > p { font-size: 15px; } .mk-pay-photo { height: 120px; } }

/* ---------- Sales tax (October 25, 2026): the shop's permit and rate under Payouts & plan, and "Taxable" on each item ----------
   One calm card the width of the two cards above it; on phones everything stacks. Inputs stay 16px on phones. */
.mk-tax-card { display: grid; gap: 14px; margin-top: 20px; padding: 28px; }
.mk-tax-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.mk-tax-head h2 { margin: 0 0 6px; font-size: 22px; }
.mk-tax-head p { margin: 0; max-width: 62ch; font-size: 15.5px; line-height: 1.5; }
.mk-tax-head .mk-stripe-status { flex: none; white-space: nowrap; }
.mk-tax-form { display: grid; gap: 12px; }
.mk-tax-form .mk-grid-2 { gap: 14px; }
.mk-tax-form .mk-check { min-height: 44px; align-items: center; font-size: 14px; color: var(--mk-ink); }
.mk-tax-form .mk-check input { margin-top: 0; }
.mk-tax-form .mk-field small a { color: var(--tint-deep, #8ff0bf); text-decoration: underline; text-underline-offset: 3px; }
.mk-tax-todo { margin: 0; padding: 10px 14px; border-radius: 14px; background: rgb(255 154 128 / .1); color: #ffc8b6; }
.mk-tax-help { border-top: 1px solid rgb(255 255 255 / .08); padding-top: 10px; font-size: 14px; color: var(--mk-ink-2); }
.mk-tax-help summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--mk-ink); }
.mk-tax-help ul { margin: 4px 0 8px; padding-left: 18px; line-height: 1.6; }
.mk-tax-switch { margin-top: 2px; }
@media (max-width: 760px) {
	.mk-tax-card { padding: 22px; }
	.mk-tax-head { flex-direction: column; gap: 10px; }
	.mk-tax-form input:not([type="checkbox"]) { font-size: 16px; }
}

/* The answer to a money step over the whole screen (charged, refunded, declined, failed), Done right under it. */
.mk-result { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); background: rgba(6, 12, 9, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); animation: mk-result-in .22s ease-out both; }
.mk-result.is-leaving { animation: mk-result-out .18s ease-in both; }
.mk-result-card { width: min(420px, 100%); display: grid; justify-items: center; gap: 10px; text-align: center; color: rgb(238 252 244 / .74); }
.mk-result-card h2 { margin: 8px 0 0; font-size: clamp(28px, 7vw, 40px); color: #f6f1e8; letter-spacing: -.02em; }
.mk-result-card p { margin: 0; max-width: 34ch; line-height: 1.5; }
.mk-result-mark { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.mk-result-mark span { position: relative; z-index: 1; width: 104px; height: 104px; display: grid; place-items: center; font-size: 48px; color: #64edaa; animation: mk-result-beat .65s cubic-bezier(.2, 1.5, .4, 1) both; }
.mk-result-mark span svg { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(100, 237, 170, .55)); }
.mk-result-mark i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(100, 237, 170, .55); opacity: 0; animation: mk-result-ring .9s ease-out .1s both; }
.mk-result-mark i + i { animation-delay: .28s; }
.mk-result.is-bad .mk-result-mark span { width: 96px; height: 96px; border-radius: 50%; color: #fff; background: linear-gradient(140deg, #e35d6a, #a3303d); box-shadow: 0 18px 40px -14px #a3303d; animation: mk-result-shake .5s ease-out both; }
.mk-result.is-bad .mk-result-mark i { display: none; }
.mk-result-done { margin-top: 14px; width: min(320px, 100%); min-height: 56px; justify-content: center; font-size: 18px; }
@keyframes mk-result-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mk-result-out { to { opacity: 0; } }
@keyframes mk-result-beat { 0% { transform: scale(.3); opacity: 0; } 55% { transform: scale(1.12); opacity: 1; } 75% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes mk-result-ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes mk-result-shake { 0% { transform: scale(.5); opacity: 0; } 40% { transform: scale(1) translateX(0); opacity: 1; } 55% { transform: translateX(-8px); } 70% { transform: translateX(7px); } 85% { transform: translateX(-4px); } 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .mk-result, .mk-result.is-leaving, .mk-result-mark span, .mk-result-mark i { animation: none !important; } .mk-result-mark i { display: none; } }

/* Typing the order code and PIN when the camera can't scan. */
.mk-type-code { margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--mk-card-2); }
.mk-type-code summary { cursor: pointer; font-weight: 600; color: var(--mk-ink); min-height: 32px; display: flex; align-items: center; }
.mk-type-code[open] summary { margin-bottom: 6px; }
.mk-type-code input { text-transform: uppercase; letter-spacing: .08em; }

/* Success: Eshgh hearts rain down behind the answer. */
.mk-heart-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mk-heart-rain i { position: absolute; top: -48px; display: block; color: #64edaa; filter: drop-shadow(0 0 8px rgba(100, 237, 170, .45)); animation: mk-heart-fall linear both; will-change: transform; }
.mk-heart-rain i svg { width: 100%; height: 100%; }
.mk-heart-rain i:nth-child(3n) { color: #b9f5d4; }
.mk-heart-rain i:nth-child(5n) { color: #2fd286; }
@keyframes mk-heart-fall { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 100% { transform: translate3d(var(--drift, 0), calc(100vh + 96px), 0) rotate(var(--spin, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .mk-heart-rain { display: none; } }

/* One tap to scan a pickup QR from the Orders page, above the site player, in thumb reach. */
.mk-scan-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(var(--player-h, 76px) + 22px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 24px 0 20px; border: 0; border-radius: 999px; background: #64edaa; color: #0b1a12; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .18) inset; transition: transform .16s cubic-bezier(.23, 1, .32, 1); -webkit-tap-highlight-color: transparent; }
.mk-scan-fab svg { width: 22px; height: 22px; }
.mk-scan-fab:active { transform: scale(.96); }
.mk-scan-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .mk-scan-fab { transition: none; } .mk-scan-fab:active { transform: none; } }
.mk-orders { padding-bottom: 96px; }

/* Panel: the header box photos row and the headline size choice. */
.mk-size-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mk-size-row label { position: relative; }
.mk-size-row input { position: absolute; opacity: 0; pointer-events: none; }
.mk-size-row span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--glass-fill, rgb(255 255 255 / .06)); box-shadow: inset 0 0 0 1px var(--glass-line, rgb(255 255 255 / .14)); cursor: pointer; font-weight: 600; }
.mk-size-row input:checked + span { background: #f4eee5; color: #04140c; box-shadow: none; }
.mk-size-row input:focus-visible + span { outline: 2px solid var(--tint-vivid, #3ecf62); outline-offset: 2px; }
.mk-mh-tray.is-photos { grid-template-columns: 1fr; }
.mk-mh-tray.is-photos span { aspect-ratio: 16 / 10; }
/* Header box: the picked pieces (numbered, in order) and the list to pick from. */
.mk-pick-chosen { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mk-pick-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 6px 4px 4px; border-radius: 999px; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); font-size: 13px; }
.mk-pick-chip b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f4eee5; color: #04140c; font-size: 12px; }
.mk-pick-chip i { width: 28px; height: 28px; border-radius: 8px; background: center / cover no-repeat rgb(255 255 255 / .07); flex: none; }
.mk-pick-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.mk-pick-chip button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: inherit; cursor: pointer; }
.mk-pick-find { width: 100%; min-height: 40px; margin: 4px 0 8px; padding: 0 14px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .05); color: inherit; font: inherit; }
.mk-pick-list { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.mk-pick-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .04); color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.mk-pick-row i { width: 40px; height: 40px; border-radius: 9px; background: center / cover no-repeat rgb(255 255 255 / .07); }
.mk-pick-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-pick-row b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgb(255 255 255 / .1); }
.mk-pick-row.is-on { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.mk-pick-row.is-on b { background: #f4eee5; color: #04140c; }
.mk-pick-row:disabled { opacity: .45; cursor: default; }
.mk-card-photo-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mk-mini-hero.is-loading { opacity: .6; }
/* The card preview: the same dark veil behind the words as the real card, so the name reads on any photo. */
html body .mk-mh-photo::after { background: linear-gradient(180deg, rgb(4 4 6 / .72) 0%, rgb(4 4 6 / .5) 30%, rgb(4 4 6 / .18) 52%, transparent 66%), linear-gradient(0deg, rgb(4 4 6 / .55) 0%, transparent 34%); }
html body .mk-mh-copy { text-shadow: 0 1px 12px rgb(0 0 0 / .55); }
html body .mk-mh-copy .mk-label { color: #f4eee5; opacity: .9; }
html body .mk-mh-copy .mk-pill { text-shadow: none; }
/* The card preview matches the real card: the name on a dark glass plate at the top. */
html body .mk-mh-copy { left: 12px; right: 12px; top: 12px; gap: 4px; padding: 14px 16px 15px; border-radius: 20px; background: rgb(8 8 10 / .5); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); text-shadow: none; justify-items: stretch; }
html body .mk-mh-copy h3 { font-size: calc(22px * var(--mk-title-k, 1)); font-weight: 400; line-height: 1.1; }
html body .mk-mh-copy p { margin: 0; font-size: 13px; line-height: 1.4; color: rgb(244 238 229 / .78); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body .mk-mh-photo::after { background: linear-gradient(0deg, rgb(4 4 6 / .45) 0%, transparent 30%); }
/* The card preview's name plate matches the slimmer real one. */
html body .mk-mh-copy { right: auto; max-width: calc(100% - 24px); padding: 8px 14px 9px; border-radius: 16px; gap: 2px; }
html body .mk-mh-copy .mk-label { font-size: 10px; letter-spacing: .18em; }
html body .mk-mh-copy h3 { font-size: calc(19px * var(--mk-title-k, 1)); line-height: 1.15; }
html body .mk-mh-copy p { font-size: 12.5px; -webkit-line-clamp: 1; }
.mk-day-row label span { min-width: 54px; justify-content: center; }
