/* T25 · M3 lists / collector's room. Colors and type exclusively from C tokens.
   All layout changes require the live mobile shell and <=767. No desktop overrides. */
.ml-only { display: none; }
@media (max-width: 767px) {
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"],[data-ml-page="search"],[data-ml-page="collection"]) main .shell { width: auto; max-width: none; margin: 0 var(--m-gutter); padding: 16px 0 32px !important; min-width: 0; }
  html.m-shell body[data-ml-page] { --c-h-md: 44px; }
  html.m-shell body[data-ml-page] main { min-width: 0; }
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"],[data-ml-page="search"],[data-ml-page="collection"]) main .page-lead { margin-bottom: 18px; min-width: 0; }
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"],[data-ml-page="search"],[data-ml-page="collection"]) main .page-lead h1 { font: 900 32px/1.25 var(--f-jp); letter-spacing: -.025em; overflow-wrap: anywhere; }
  html.m-shell body[data-ml-page] main :is(p,li,dd,dt,.faint,.hint,.sub,.price-sub,small,.foot) { font-size: max(13px, 1em); }
  html.m-shell body[data-ml-page] main .foot { font-size: 13px; line-height: 1.7; margin-top: 32px !important; }
  html.m-shell body[data-ml-page] main :is(a,button,summary,label.btn) { -webkit-tap-highlight-color: transparent; }
  html.m-shell body[data-ml-page] main :is(button,.btn,input:not([type=file]),select,summary) { min-height: 44px; }
  html.m-shell body[data-ml-page] main :is(button,.btn) { min-width: 44px; }
  html.m-shell body[data-ml-page] main :is(input,select,textarea) { max-width: 100%; box-sizing: border-box; font: 700 16px/1.4 var(--f-jp); }
  html.m-shell body[data-ml-page] main .foot a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  html.m-shell body[data-ml-page="about"] .prose a,
  html.m-shell body[data-ml-page="shops"] :is(.prose > p,.page-lead) a { display: inline; position: relative; overflow-wrap: anywhere; }
  html.m-shell body[data-ml-page="about"] .prose a::after,
  html.m-shell body[data-ml-page="shops"] :is(.prose > p,.page-lead) a::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 100%; min-width: 44px; height: 44px; }
  html.m-shell body[data-ml-page="about"] .prose a:active,
  html.m-shell body[data-ml-page="shops"] :is(.prose > p,.page-lead) a:active { color: var(--sky-text); background: var(--sky-wash); }
  html.m-shell .ml-only { display: block; }
  html.m-shell .ml-only[hidden] { display: none !important; }
  html.m-shell body[data-ml-page] :is(.ml-icon,.ml-info) { display: inline-grid; }
  html.m-shell body[data-ml-page] .ml-icon { place-items: center; position: relative; flex: none; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--tray); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--ring); cursor: pointer; }
  html.m-shell body[data-ml-page] .ml-icon .ic { width: 22px; height: 22px; }
  html.m-shell body[data-ml-page] .ml-info { margin-left: auto; }
  html.m-shell body[data-ml-page] main :is(.ml-heading-tools,.ml-info) { align-self: start; }
  html.m-shell body[data-ml-page] .ml-heading-tools { display: flex; gap: 6px; }
  html.m-shell body[data-ml-page] .ml-badge { position: absolute; right: -2px; top: -4px; min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--lemon); color: var(--sticker-ink); font: 900 13px/1 var(--f-num); }
  html.m-shell body[data-ml-page] .ml-badge[hidden] { display: none; }
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"],[data-ml-page="search"],[data-ml-page="collection"]) .page-lead { display: flex; flex-wrap: wrap; gap: 10px 6px; align-items: center; }
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"],[data-ml-page="search"],[data-ml-page="collection"]) .page-lead h1 { flex: 1; min-width: 0; margin: 0; }
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"],[data-ml-page="search"],[data-ml-page="collection"]) .page-lead .pl-kicker { display: none; }
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"],[data-ml-page="search"],[data-ml-page="collection"]) .page-lead > p:not(.pl-kicker) { display: none; width: 100%; font-size: 13px; }
  html.m-shell body[data-view="pro"]:is([data-ml-page="cards"],[data-ml-page="boxes"],[data-ml-page="search"],[data-ml-page="collection"]) .page-lead > p:not(.pl-kicker) { display: block; order: 3; }
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"]) main .toolbar { display: block; margin-top: 0; }
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"]) #sort-chips { display: none; }
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"]) .search-field { width: 100%; min-height: 48px; margin: 0; border-radius: 999px !important; font-size: 16px; }
  html.m-shell body[data-ml-page="cards"] .catalog-entries { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
  html.m-shell body[data-ml-page="cards"] .entry-card { min-width: 0; width: 100%; padding: 10px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 6px; border-radius: 18px; min-height: 60px; text-align: left; background: var(--panel); }
  html.m-shell body[data-ml-page="cards"] .entry-card.is-on { background: var(--plate) !important; color: var(--plate-ink) !important; }
  html.m-shell body[data-ml-page="cards"] .entry-card :is(.ec-title,.ec-count) { color: inherit !important; margin: 0; }
  html.m-shell body[data-ml-page="cards"] .entry-card .ec-title { font: 900 16px/1.3 var(--f-jp); }
  html.m-shell body[data-ml-page="cards"] .entry-card .ec-count { font: 700 13px/1.3 var(--f-num); }
  html.m-shell body[data-ml-page="cards"] .entry-card :is(.ec-kicker,.ec-cta) { display: none; }
  html.m-shell body[data-ml-page="cards"] .entry-card .ec-desc { display: none; grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: inherit; }
  html.m-shell body[data-ml-page="cards"][data-view="pro"] .entry-card .ec-desc { display: block; }
  html.m-shell body[data-ml-page="cards"] .ml-catalog-status { margin: 10px 0 0; }
  html.m-shell body[data-ml-page="cards"] .ml-catalog-status p { margin: 4px 0; font: 700 13px/1.5 var(--f-jp); color: var(--text-2); }
  html.m-shell body[data-ml-page="cards"] #ml-conditions { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.m-shell body[data-ml-page="cards"] #cards-count { display: none; }
  html.m-shell body:is([data-ml-page="cards"],[data-ml-page="boxes"],[data-ml-page="search"]) :is(#cards-sort-line,#boxes-sort-line,[id$="-sort-line"],#boxes-count) { font: 700 13px/1.5 var(--f-jp) !important; margin: 6px 0 !important; color: var(--text-2); }
  html.m-shell body[data-ml-page] .card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 10px; }
  html.m-shell body[data-ml-page] .ml-card.v3-tile { display: flex; flex-direction: column; justify-content: flex-start; padding: 10px; margin: 0; border: 1px solid var(--line); border-radius: 24px; gap: 0; color: var(--text-1); background: var(--panel); box-shadow: var(--shadow-1); min-width: 0; text-decoration: none; overflow: visible; }
  html.m-shell body[data-ml-page] .ml-card-art { position: relative; display: grid; place-items: center; min-height: 168px; border-radius: 16px; background: var(--tray); margin-bottom: 10px; }
  html.m-shell body[data-ml-page] .ml-card-img { display: block; width: 100%; height: 168px; object-fit: contain; border-radius: 10px; }
  html.m-shell body[data-ml-page] .ml-card-art .stk { font-size: 13px !important; position: absolute; top: -4px; left: -4px; max-width: 100%; font: 900 13px/1.2 var(--f-jp); }
  html.m-shell body[data-ml-page] .ml-card-art .ml-delta { position: absolute; right: -4px; bottom: -4px; }
  html.m-shell body[data-ml-page] .ml-approx { position: absolute; bottom: 28px; right: 0; padding: 3px 6px; border-radius: 8px; background: var(--overlay); color: var(--text-2); font: 700 13px/1.2 var(--f-jp); }
  html.m-shell body[data-ml-page] .ml-card-name { font: 900 16px/1.45 var(--f-jp); overflow-wrap: anywhere; min-height: 46px; margin-bottom: 4px; text-wrap: balance; }
  html.m-shell body[data-ml-page] .ml-card-price { display: flex; flex-direction: column; margin-top: auto; }
  html.m-shell body[data-ml-page] .ml-card-price small { font: 700 13px/1.3 var(--f-jp); color: var(--text-2); }
  html.m-shell body[data-ml-page] .ml-card-price b { font: 900 clamp(19px,5.6vw,24px)/1.3 var(--f-num); letter-spacing: -.04em; white-space: nowrap; }
  html.m-shell body[data-ml-page] .ml-alt-price { display: block; font: 700 13px/1.5 var(--f-jp); color: var(--text-2); overflow-wrap: anywhere; margin-top: 4px; }
  html.m-shell body[data-ml-page] .ml-card > .ml-alt-price { min-height: 20px; }
  html.m-shell body[data-ml-page] .ml-card-meta { display: block; font: 500 13px/1.6 var(--f-jp); color: var(--text-2); margin-top: 6px; overflow-wrap: anywhere; }
  html.m-shell body[data-view="simple"][data-ml-page] .pro-only { display: none !important; }
  html.m-shell body[data-ml-page] .ml-delta { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; font: 900 13px/1.2 var(--f-num); white-space: nowrap; }
  html.m-shell body[data-ml-page] .ml-delta.up { color: var(--up-text); background: var(--up-wash); }
  html.m-shell body[data-ml-page] .ml-delta.down { color: var(--down-text); background: var(--down-wash); }
  html.m-shell body[data-ml-page] .ml-delta small { font: inherit; margin-left: 3px; }
  html.m-shell body[data-ml-page] .ml-missing { display: grid; place-items: center; color: var(--text-2); background: var(--tray); font: 700 13px/1.5 var(--f-jp); text-align: center; }
  html.m-shell body[data-ml-page] .pager { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; padding-top: 18px; }
  html.m-shell body[data-ml-page] .pg-btn { min-width: 44px; height: 44px; padding: 0 8px; font-size: 14px; }
  html.m-shell body[data-ml-page] .pg-btn.is-on { color: var(--plate-ink) !important; background: var(--plate) !important; box-shadow: var(--shadow-plate) !important; }
  html.m-shell body[data-ml-page] .pg-ellipsis { align-self: center; width: 10px; }
  html.m-shell body[data-ml-page] .box-grid { display: block; border-radius: 24px; padding: 0 14px; border: 1px solid var(--line); background: var(--panel); }
  html.m-shell body[data-ml-page] .box-grid:empty { display: none; }
  html.m-shell body[data-ml-page] .ml-box-row.v3-tile { display: grid; grid-template-columns: 56px minmax(0,1fr) 16px; align-items: center; gap: 8px; min-height: 102px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; overflow: visible; color: var(--text-1); text-decoration: none; }
  html.m-shell body[data-ml-page] .ml-box-row:last-child { border-bottom: 0; }
  html.m-shell body[data-ml-page] .ml-row-img { display: block; width: 56px; height: 78px; object-fit: contain; border-radius: 8px; }
  html.m-shell body[data-ml-page] .ml-row-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 900 15px/1.35 var(--f-jp); overflow-wrap: anywhere; text-wrap: balance; }
  html.m-shell body[data-ml-page] .ml-row-pricing { display: flex; flex-wrap: wrap; align-items: end; gap: 5px 8px; margin-top: 4px; }
  html.m-shell body[data-ml-page] .ml-row-pricing small { display: block; font: 700 13px/1.4 var(--f-jp); color: var(--text-2); }
  html.m-shell body[data-ml-page] .ml-row-pricing b { font: 900 21px/1.2 var(--f-num); white-space: nowrap; }
  html.m-shell body[data-ml-page] .ml-box-row > .ic { width: 16px; height: 20px; color: var(--text-2); justify-self: end; align-self: center; }
  html.m-shell body[data-ml-page] .ml-pack-note { display: inline-block; padding: 3px 7px; margin-top: 3px; border-radius: 8px; background: var(--tray); font: 700 13px/1.3 var(--f-jp); color: var(--text-2); }
  html.m-shell body[data-ml-page] #ml-showcase { margin: 18px 0 22px; }
  html.m-shell body[data-ml-page] #ml-showcase[hidden] { display: none; }
  html.m-shell body[data-ml-page] .ml-vitrine { position: relative; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); background: linear-gradient(150deg,var(--sky-wash),var(--panel)); box-shadow: inset 0 1px 0 var(--hi),var(--shadow-2); border-radius: 32px; padding: 18px 18px 24px; text-decoration: none; color: var(--text-1); }
  html.m-shell body[data-ml-page] .ml-vitrine-art { position: relative; display: grid; place-items: center; width: 100%; height: 198px; }
  html.m-shell body[data-ml-page] .ml-vitrine-art::after { content: ''; position: absolute; bottom: 5px; width: 78%; height: 14px; border-radius: 50%; background: var(--tray); box-shadow: var(--shadow-2); }
  html.m-shell body[data-ml-page] .ml-vitrine-img { position: relative; z-index: 1; width: 180px; height: 180px; object-fit: contain; filter: drop-shadow(0 10px 8px var(--line-strong)); }
  html.m-shell body[data-ml-page] .ml-vitrine-art .stk { font-size: 13px !important; position: absolute; left: 6px; top: 0; font-size: 13px; }
  html.m-shell body[data-ml-page] .ml-vitrine-name { font: 900 22px/1.4 var(--f-jp); text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
  html.m-shell body[data-ml-page] .ml-vitrine-basis { font: 700 13px/1.5 var(--f-jp); color: var(--text-2); margin-top: 10px; }
  html.m-shell body[data-ml-page] .ml-vitrine-price { font: 900 clamp(34px,12vw,52px)/1.15 var(--f-num); letter-spacing: -.04em; margin: 5px 0 8px; white-space: nowrap; }
  html.m-shell body[data-ml-page] .ml-vitrine-go { display: grid; place-items: center; position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--lemon); color: var(--sticker-ink); }
  html.m-shell body[data-ml-page] .ml-vitrine > :is(.ml-alt-price,.ml-card-meta) { align-self: start; padding-right: 42px; }
  html.m-shell body[data-ml-page="search"] main .page-lead h1 { font-size: 28px; text-wrap: balance; }
  html.m-shell body[data-ml-page="search"] #type-filter { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0; }
  html.m-shell body[data-ml-page="search"] #type-filter button { flex: 1; padding: 0 8px; font-size: 14px; }
  html.m-shell body[data-ml-page="search"] [id^="sort-chips-"] { display: none !important; }
  html.m-shell body[data-ml-page="search"] .block-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 24px !important; }
  html.m-shell body[data-ml-page="search"] .block-label h2 { font-size: 21px; margin: 0; }
  html.m-shell body[data-ml-page="search"] .block-label .hint { font: 700 13px/1.4 var(--f-num); margin-left: auto; }
  html.m-shell body[data-ml-page="search"] .ruvo-more { width: 100%; margin-top: 20px; }
  html.m-shell body[data-ml-page="search"] .ml-search-form .ml-icon { box-shadow: none; }
  html.m-shell body[data-ml-page="search"] .ml-search-form .ms-field { height: 52px; }
  html.m-shell body[data-ml-page="search"] .ml-recent-head { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font: 700 13px/1.4 var(--f-jp); color: var(--text-2); }
  html.m-shell body[data-ml-page="search"] .ml-recent-head button { border: 0; background: transparent; color: var(--sky-text); font: 700 13px/1.4 var(--f-jp); }
  html.m-shell body[data-ml-page="search"] .ms-chip { font-size: 13px; }
  html.m-shell body[data-ml-page="collection"] .page-lead h1 { font-size: 28px; }
  html.m-shell body[data-ml-page="collection"] .ml-storage-note { font: 700 13px/1.5 var(--f-jp); color: var(--text-2); margin: -4px 0 16px; }
  html.m-shell body[data-ml-page="collection"] #summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 20px; margin: 0 0 16px; border-radius: 28px; background: var(--sky-wash); border: 1px solid var(--line); }
  html.m-shell body[data-ml-page="collection"] #summary .stat { background: transparent !important; box-shadow: none !important; border: 0 !important; min-width: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
  html.m-shell body[data-ml-page="collection"] #summary .stat:first-child { grid-column: 1 / -1; }
  html.m-shell body[data-ml-page="collection"] #summary .stat:first-child .v { font: 900 clamp(30px,11vw,44px)/1.2 var(--f-num); }
  html.m-shell body[data-ml-page="collection"] #summary .v { font: 900 21px/1.3 var(--f-num); white-space: normal; overflow-wrap: anywhere; }
  html.m-shell body[data-ml-page="collection"] #summary :is(.k,.h) { font: 700 13px/1.5 var(--f-jp); color: var(--text-2); }
  html.m-shell body[data-ml-page="collection"] #summary .h { font-weight: 500; margin-top: 4px; }
  html.m-shell body[data-ml-page="collection"] main .panel:has(#add-form),
  html.m-shell body[data-ml-page="collection"] main .table-wrap { display: none; }
  html.m-shell body[data-ml-page="collection"] .ml-add { display: flex; margin: 14px 0; width: 100%; }
  html.m-shell body[data-ml-page="collection"] .toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
  html.m-shell body[data-ml-page="collection"] .toolbar > :is(button,label) { max-width: 100%; height: auto; min-height: 44px; white-space: normal; font-size: 13px; flex: 1 1 145px; padding: 8px 12px; text-align: center; }
  html.m-shell body[data-ml-page="collection"] #btn-recovery { flex-basis: 100%; }
  html.m-shell body[data-ml-page="collection"] #empty { font-size: 14px; line-height: 1.8; padding: 24px 18px; }
  html.m-shell body[data-ml-page="collection"] #empty strong { display: block; font-size: 18px; margin-bottom: 8px; }
  html.m-shell body[data-ml-page="collection"] .ml-folder { margin: 18px 0; }
  html.m-shell body[data-ml-page="collection"] .ml-folder > summary { display: flex; align-items: center; gap: 8px; min-height: 54px; border-bottom: 1px solid var(--line); font: 900 19px/1.4 var(--f-jp); cursor: pointer; list-style: none; }
  html.m-shell body[data-ml-page="collection"] .ml-folder > summary small { margin-left: auto; font: 700 13px/1.4 var(--f-jp); color: var(--text-2); }
  html.m-shell body[data-ml-page="collection"] .ml-folder > summary::after { content: '＋'; width: 20px; text-align: center; }
  html.m-shell body[data-ml-page="collection"] .ml-folder[open] > summary::after { content: '−'; }
  html.m-shell body[data-ml-page="collection"] .ml-holding { padding: 16px 0; border-bottom: 1px solid var(--line); }
  html.m-shell body[data-ml-page="collection"] .ml-holding-main { display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: start; gap: 12px; }
  html.m-shell body[data-ml-page="collection"] .ml-holding-art { display: grid; place-items: center; min-width: 44px; min-height: 78px; font-size: 13px; }
  html.m-shell body[data-ml-page="collection"] .ml-holding-name { display: flex; align-items: center; min-height: 44px; font: 900 17px/1.45 var(--f-jp); color: var(--text-1); text-decoration: none; overflow-wrap: anywhere; }
  html.m-shell body[data-ml-page="collection"] .ml-holding-meta { display: block; font: 700 13px/1.4 var(--f-jp); color: var(--text-2); }
  html.m-shell body[data-ml-page="collection"] .ml-holding-value { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font: 700 13px/1.5 var(--f-jp); margin-top: 6px; }
  html.m-shell body[data-ml-page="collection"] .ml-holding-value b { font: 900 24px/1.3 var(--f-num); }
  html.m-shell body[data-ml-page="collection"] .ml-holding-pnl { display: block; font: 900 14px/1.5 var(--f-num); margin-top: 4px; }
  html.m-shell body[data-ml-page="collection"] .ml-holding-pnl.up { color: var(--up-text); }
  html.m-shell body[data-ml-page="collection"] .ml-holding-pnl.down { color: var(--down-text); }
  html.m-shell body[data-ml-page="collection"] .ml-holding-cost { display: grid; gap: 5px; margin-top: 10px; font: 700 13px/1.5 var(--f-jp); color: var(--text-2); }
  html.m-shell body[data-ml-page="collection"] .ml-holding-cost b { color: var(--text-1); }
  html.m-shell body[data-ml-page="collection"] .ml-quotes { margin-top: 8px; font: 700 13px/1.5 var(--f-jp); }
  html.m-shell body[data-ml-page="collection"] .ml-quotes summary { display: flex; align-items: center; min-height: 44px; color: var(--sky-text); cursor: pointer; }
  html.m-shell body[data-ml-page="collection"] .ml-quotes summary::before { content: '＋'; margin-right: 8px; }
  html.m-shell body[data-ml-page="collection"] .ml-quotes[open] summary::before { content: '−'; }
  html.m-shell body[data-ml-page="collection"] .ml-quotes dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; background: var(--tray); border-radius: 16px; }
  html.m-shell body[data-ml-page="collection"] .ml-quotes dd { margin: 0; text-align: right; }
  html.m-shell body[data-ml-page="collection"] .ml-quotes dd small { display: block; font-weight: 500; color: var(--text-2); }
  html.m-shell body[data-ml-page="collection"] .ml-holding-actions { display: flex; gap: 8px; margin-top: 6px; }
  html.m-shell body[data-ml-page="collection"] .ml-holding-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 80px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--tray); color: var(--text-1); font: 700 14px/1.4 var(--f-jp); cursor: pointer; }
  html.m-shell body[data-ml-page="collection"] .ml-holding-actions .ic { width: 18px; height: 18px; }
  html.m-shell body[data-ml-page="collection"] .ml-backup { margin-top: 24px; border-top: 1px solid var(--line); }
  html.m-shell body[data-ml-page="collection"] .ml-backup summary { display: flex; align-items: center; min-height: 52px; font: 700 14px/1.5 var(--f-jp); color: var(--sky-text); cursor: pointer; }
  html.m-shell body[data-ml-page="collection"] .ml-backup summary::before { content: "＋"; margin-right: 8px; }
  html.m-shell body[data-ml-page="collection"] .ml-backup[open] summary::before { content: "−"; }
  html.m-shell body[data-ml-page="collection"] #collection-feedback { display: none; }
  html.m-shell body[data-ml-page="collection"] #collection-feedback[data-ml-notice]:not([hidden]) { display: block; position: fixed; z-index: 75; left: var(--m-gutter); right: var(--m-gutter); bottom: calc(var(--m-dock-space) + 8px); margin: 0; padding: 12px 16px; border-radius: 16px; color: var(--plate-ink); background: var(--plate); box-shadow: var(--shadow-plate); font: 700 14px/1.6 var(--f-jp); overflow-wrap: anywhere; pointer-events: none; }
  html.m-shell body[data-ml-page="collection"] .ml-group-empty { font: 500 13px/1.6 var(--f-jp); color: var(--text-2); }
  /* Sweep only: keep prices, shops and about in their existing layouts. */
  html.m-shell body[data-ml-page] main .table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
  html.m-shell body[data-ml-page] main [data-ml-scroll]:not(.ml-at-end) { -webkit-mask-image: linear-gradient(90deg,var(--text-1) calc(100% - 24px),transparent); mask-image: linear-gradient(90deg,var(--text-1) calc(100% - 24px),transparent); }
  html.m-shell body[data-ml-page] .ml-scroll-hint { display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 6px 0 0; color: var(--text-2); font: 700 13px/1.4 var(--f-jp); }
  html.m-shell body[data-ml-page] .ml-scroll-hint .ic { width: 18px; height: 18px; }
  html.m-shell body[data-ml-page="prices"] .toolbar { flex-wrap: wrap; gap: 10px; }
  html.m-shell body[data-ml-page="prices"] #fp-q { flex: 1 1 100%; width: 100%; min-width: 0; }
  html.m-shell body[data-ml-page="prices"] .fp-table :is(th,td) { font-size: 13px; }
  /* Give names the full pinned column: the image sits above, not beside the text. */
  html.m-shell body[data-ml-page="prices"] [data-ml-scroll] { scroll-padding-left: 160px; scroll-snap-type: x mandatory; }
  html.m-shell body[data-ml-page="prices"] .fp-table { table-layout: fixed; margin-right: max(0px, calc(100vw - 32px - 160px - 134px)); }
  html.m-shell body[data-ml-page="prices"] .fp-table th:not(:first-child) { scroll-snap-align: start; }
  html.m-shell body[data-ml-page="prices"] .fp-table :is(th,td) { padding-inline: 10px; width: 134px; }
  html.m-shell body[data-ml-page="prices"] .fp-table :is(th,td):first-child { position: sticky; left: 0; width: 160px; min-width: 160px; max-width: 160px; z-index: 2; background: var(--panel) !important; box-shadow: 5px 0 8px var(--line); }
  html.m-shell body[data-ml-page="prices"] .fp-table :is(th,td):nth-child(2) { width: 86px; }
  html.m-shell body[data-ml-page="prices"] .fp-pair { gap: 6px; flex-direction: column; align-items: flex-start; }
  html.m-shell body[data-ml-page="prices"] .fp-pair > :last-child { min-width: 0; width: 100%; }
  html.m-shell body[data-ml-page="prices"] .fp-thumb { width: 44px; height: 44px; padding: 6px; }
  html.m-shell body[data-ml-page="prices"] .fp-nm { display: block !important; white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 22px; min-height: 44px; max-height: none; overflow: visible; max-width: 100%; }
  html.m-shell body[data-ml-page="prices"] .fp-sub { white-space: normal; overflow: visible; overflow-wrap: anywhere; max-width: 100%; }

  html.m-shell body[data-ml-page="prices"] .fp-table button { min-height: 44px; min-width: 44px; }
  html.m-shell body[data-ml-page="prices"] :is(.fp-cell-sub,.fp-name-sub,.fp-note,.fp-sub,.fp-cmp,.fp-thin,.ar) { font-size: 13px !important; }
  html.m-shell body[data-ml-page="prices"] .fp-table th,
  html.m-shell body[data-ml-page="prices"] .fp-table td { display: table-cell; }
  html.m-shell body[data-ml-page="shops"] .shop-item { min-width: 0; overflow-wrap: anywhere; }
  html.m-shell body[data-ml-page="shops"] .shop-item a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  html.m-shell body[data-ml-page="shops"] .shop-item dl { min-width: 0; }
  html.m-shell body[data-ml-page="shops"] .shop-item dd { min-width: 0; font-size: 13px; }
  html.m-shell body[data-ml-page="about"] .prose { max-width: 100%; overflow-wrap: anywhere; }
  html.m-shell body[data-ml-page="about"] .prose :is(p,li) { font-size: 14px; line-height: 1.8; }
  html.m-shell body[data-ml-page] main :is(a,button,summary,input,select,textarea):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
}
/* Only sheet callers create these DOM. Shared sheet motion/press remains T22's. */
@media (max-width: 767px) {
  html.m-shell .ml-sheet .rs-body { font: 700 14px/1.7 var(--f-jp); }
  html.m-shell .ml-sheet :is(button,a,input,select,textarea) { box-sizing: border-box; }
  html.m-shell .ml-sheet :is(button,a) { min-width: 44px; min-height: 44px; }
  html.m-shell :is(.ml-primary,.ml-secondary) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 20px; border: 0; border-radius: 999px; font: 900 16px/1.4 var(--f-jp); text-decoration: none; cursor: pointer; }
  html.m-shell .ml-primary { color: var(--sticker-ink); background: var(--lemon); box-shadow: inset 0 0 0 1px var(--lemon-deep); }
  html.m-shell .ml-secondary { color: var(--text-1); background: var(--tray); }
  html.m-shell :is(.ml-primary,.ml-secondary) .ic { width: 22px; height: 22px; }
  html.m-shell .ml-sheet-actions { display: flex; gap: 10px; align-items: center; }
  html.m-shell .ml-sheet-actions .ml-primary { flex: 1; }
  html.m-shell .ml-reset { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--tray); color: var(--text-1); }
  html.m-shell .ml-reset .ic { width: 22px; height: 22px; }
  html.m-shell .ml-kind-objects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 12px 0 24px; }
  html.m-shell .ml-kind-objects button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; min-height: 102px; padding: 14px 4px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--panel); color: var(--text-1); font: 900 14px/1.4 var(--f-jp); }
  html.m-shell .ml-kind-objects .ic { width: 36px; height: 36px; --ic-fill: var(--sky-wash); }
  html.m-shell .ml-kind-objects [aria-pressed="true"] { box-shadow: 0 0 0 3px var(--lemon); background: var(--tray); }
  html.m-shell .ml-filter-block { margin: 18px 0; }
  html.m-shell .ml-filter-block h3 { font: 900 17px/1.4 var(--f-jp); margin: 0 0 10px; }
  html.m-shell #ml-price-readout { display: block; font: 900 24px/1.4 var(--f-num); margin-bottom: 12px; }
  html.m-shell .ml-filter-block label { display: block; font: 700 13px/1.4 var(--f-jp); color: var(--text-2); }
  html.m-shell .ml-filter-block input[type="range"] { display: block; width: 100%; min-height: 44px; padding: 0; accent-color: var(--sky-text); background: transparent; box-shadow: none; }
  html.m-shell .ml-filter-sorts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  html.m-shell .ml-filter-sorts button { padding: 10px 8px; min-height: 52px; border: 1px solid var(--line); border-radius: 16px; background: var(--tray); color: var(--text-1); font: 700 13px/1.4 var(--f-jp); }
  html.m-shell .ml-filter-sorts [aria-pressed="true"] { background: var(--plate); color: var(--plate-ink); }
  html.m-shell #ml-draft-count { display: block; font: 900 28px/1.3 var(--f-num); }
  html.m-shell #ml-draft-summary { font: 700 13px/1.4 var(--f-jp); color: var(--text-2); }
  html.m-shell .ml-sort-list { display: grid; gap: 8px; }
  html.m-shell .ml-sort-list button { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--tray); color: var(--text-1); font: 700 15px/1.4 var(--f-jp); }
  html.m-shell .ml-sort-list [aria-pressed="true"] { color: var(--plate-ink); background: var(--plate); }
  html.m-shell .ml-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  html.m-shell .ml-preview-img { display: block; width: 155px; height: 216px; object-fit: contain; }
  html.m-shell .ml-preview h3 { font: 900 19px/1.5 var(--f-jp); text-wrap: balance; margin: 4px 0; }
  html.m-shell .ml-preview > b { font: 900 32px/1.2 var(--f-num); }
  html.m-shell .ml-preview p { margin: 4px 0; font: 500 13px/1.6 var(--f-jp); }
  html.m-shell .ml-preview .ml-primary { width: 100%; margin-top: 12px; }
  html.m-shell .ml-form-in-sheet { padding: 0; border: 0 !important; border-radius: 0 !important; overflow: visible; margin: 0 !important; box-shadow: none !important; background: transparent; }
  html.m-shell .ml-form-in-sheet .ph { display: none; }
  html.m-shell .ml-form-in-sheet .form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
  html.m-shell .ml-sheet :is(label,small) { font: 700 13px/1.5 var(--f-jp); }
  html.m-shell .ml-sheet :is(input:not([type="range"]),select,textarea) { display: block; width: 100%; min-height: 48px; max-width: 100%; font: 700 16px/1.4 var(--f-jp); border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px 12px; background: var(--tray); color: var(--text-1); }
  html.m-shell .ml-sheet .input-yen input { padding-left: 30px; }
  html.m-shell .ml-form-in-sheet button[type="submit"] { margin-top: 14px; min-height: 52px; width: 100%; }
  html.m-shell .ml-edit-form { display: grid; gap: 14px; }
  html.m-shell .ml-edit-name { font: 900 18px/1.5 var(--f-jp); margin: 0; }
  html.m-shell .ml-edit-preview { padding: 12px; background: var(--sky-wash); border-radius: 16px; font: 700 13px/1.7 var(--f-jp); }
  html.m-shell .ml-sheet :is(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
}

/* Stop legacy CSS active transforms as well as the new JS press when motion is off. */
@media (max-width: 767px) {
  html.m-shell.c-still body[data-ml-page] :is(main, .ml-sheet) :is(a,button,summary,label.btn):active { transform: none !important; }
  html.m-shell.c-still body[data-ml-page="prices"] [data-ml-scroll] { scroll-snap-type: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  html.m-shell body[data-ml-page] :is(main, .ml-sheet) :is(a,button,summary,label.btn):active { transform: none !important; }
  html.m-shell body[data-ml-page="prices"] [data-ml-scroll] { scroll-snap-type: none; }
}

@media (max-width: 767px) {
  html.m-shell [data-ml-preview] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  html.m-shell body[data-ml-page] .ml-nowrap { white-space: nowrap; }
  html.m-shell body[data-ml-page] .ml-card-number { display: block; font: 700 13px/1.4 var(--f-jp); color: var(--text-2); margin-bottom: 6px; overflow-wrap: anywhere; }
  html.m-shell body[data-ml-page] .ruvo-pack-badge { font-size: 13px !important; font-family: var(--f-jp) !important; line-height: 1.3 !important; }
  html.m-shell body[data-ml-page] .ml-box-row .ml-alt-price { margin-top: 2px; white-space: nowrap; font-size: 13px; }
  html.m-shell body[data-ml-page] .ml-row-pricing { align-items: center; flex-wrap: nowrap; }
  html.m-shell body[data-ml-page] .ml-row-pricing .ml-delta { margin-left: auto; padding: 3px 5px; }
  html.m-shell body[data-ml-page="boxes"] #ml-conditions { font: 700 13px/1.5 var(--f-jp); }
  html.m-shell body[data-ml-page] #ml-clear { min-width: 44px; min-height: 44px; font: 700 13px/1.3 var(--f-jp); color: var(--sky-text); border: 0; background: transparent; }
  html.m-shell body[data-ml-page] #ml-conditions:not([hidden]) { display: flex; align-items: center; gap: 8px; white-space: normal; overflow: visible; }
  html.m-shell body[data-ml-page] #ml-conditions > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.m-shell body[data-ml-page] #ml-clear { flex: none; }
  html.m-shell body[data-ml-page] #ml-conditions[hidden] { display: none; }
  html.m-shell body[data-ml-page="cards"] #cards-sort-line { display: none; }
  html.m-shell body[data-ml-page="collection"] .ml-holding-art:not(a) { white-space: nowrap; }
  html.m-shell body[data-ml-page="shops"] .shop-list { padding-inline-start: 0; }
  html.m-shell .ml-sheet :is(input:not([type=file]),select,textarea) { min-height: 44px !important; height: auto; }
  html.m-shell .ml-sheet input[type=range] { height: 44px !important; }
}
