/* ============================================================
   SCHEDULE I MIXING CALCULATOR (/tools/schedule-i/mixing-calculator/).
   Scoped body.pubv2 .s1m (the tool) and body.pubv2 .s1g-* (the guide's
   tables). Sections: tokens, tabs, chips, group picker, controls,
   unlock list, results, calculator, guide tables, phone.
   Every control is drawn here: the pick-one buttons, the unlock list,
   the stepper, the scrollbar. No native control ever shows.
   Colour comes from the game: --c is an effect's own label colour,
   --g a special customer group's own colour. Icons are the game's.
   ============================================================ */

/* ---------- tokens + frame ---------- */
body.pubv2 .s1m { --s1-radius: 6px; color: var(--pv2-text-soft); font-size: 14px; position: relative; scroll-margin-top: 120px; }
body.pubv2 .s1m button { font: inherit; }
/* the site kills every outline (*:focus { outline: none !important }): the ring is a shadow */
body.pubv2 .s1m :is(button, a, summary):focus-visible { box-shadow: 0 0 0 2px var(--pv2-gold); }
/* layout.css pads every <section> 60px top and bottom; the panes are sections for the tab semantics only */
body.pubv2 .s1m section.s1m-pane { padding: 0; margin: 0; background: none; border: 0; }
body.pubv2 .s1m .s1m-empty { margin: 0; padding: 26px 18px; text-align: center; color: var(--pv2-text-muted); border: 1px dashed var(--pv2-border); border-radius: var(--s1-radius); }
body.pubv2 .s1m .s1m-foot { margin: 18px 0 0; font-size: 12px; color: var(--pv2-text-muted); }
body.pubv2 .s1m .s1m-foot a { color: var(--pv2-text-soft); }
body.pubv2 .s1m-noscript { margin: 12px 0 0; color: var(--pv2-text-muted); }
body.pubv2 .s1m .s1m-label { display: block; margin: 0 0 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pv2-text-muted); }
body.pubv2 .s1m .s1m-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--pv2-text-muted); text-wrap: balance; }
body.pubv2 .s1m .s1m-plain { color: var(--pv2-text-muted); }
body.pubv2 .s1m .s1m-ico { flex: none; object-fit: contain; }
body.pubv2 .s1m .s1m-btn { min-height: 36px; padding: 6px 12px; border: 1px solid var(--pv2-border-strong); border-radius: var(--pv2-radius); background: var(--pv2-field); color: var(--pv2-text-soft); cursor: pointer; font-size: 13px; font-weight: 600; }
body.pubv2 .s1m .s1m-btn:hover { background: var(--pv2-hover); color: #fff; border-color: var(--pv2-gold); }
body.pubv2 .s1m .s1m-copied { color: var(--pv2-ok); font-size: 12.5px; align-self: center; margin-left: 10px; }

/* ---------- tabs ---------- */
body.pubv2 .s1m .s1m-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0 0 12px; border-bottom: 1px solid var(--pv2-line); }
body.pubv2 .s1m .s1m-tabs button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--pv2-border); border-radius: var(--pv2-radius); background: var(--pv2-field); color: var(--pv2-text-soft); cursor: pointer; font-weight: 600; font-size: 13.5px; line-height: 1.2; }
body.pubv2 .s1m .s1m-tabs button:hover { background: var(--pv2-hover); color: #fff; }
body.pubv2 .s1m .s1m-tabs button[aria-selected="true"] { background: #493919; color: #ffe2a7; border-color: #a97d26; }

/* ---------- effect + ingredient chips ---------- */
body.pubv2 .s1m .s1m-fxrow { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
body.pubv2 .s1m .s1m-fx, body.pubv2 .s1g-chip {
	--c: #ccc; display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
	color: var(--c); color: color-mix(in srgb, var(--c) 62%, #fff); background: #232324; background: color-mix(in srgb, var(--c) 13%, #1c1c1d); border: 1px solid #444; border-color: color-mix(in srgb, var(--c) 42%, #2c2c2d);
}
body.pubv2 .s1g-chip { --c: var(--s1c, #ccc); }
/* a favourite of the chosen group: the same colour, filled */
body.pubv2 .s1m .s1m-fx.is-fav { color: #fff; background: #333; background: color-mix(in srgb, var(--c) 46%, #151516); border-color: var(--c); }
body.pubv2 .s1m .s1m-match { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; color: #111; background: var(--g, var(--pv2-gold)); }
body.pubv2 .s1m .s1m-ing { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--pv2-border); border-radius: 999px; background: var(--pv2-field); color: #fff; font-size: 13px; line-height: 1.3; white-space: nowrap; }
body.pubv2 .s1m .s1m-ing b { font-weight: 600; }
body.pubv2 .s1m .s1m-ing i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--pv2-text-muted); min-width: 14px; text-align: center; margin-left: 4px; }
body.pubv2 .s1m .s1m-then { color: var(--pv2-text-dim); font-size: 16px; line-height: 1; }
body.pubv2 .s1m .s1m-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }

/* ---------- pick-one rows: group, product, quality ---------- */
body.pubv2 .s1m [role="radio"] { cursor: pointer; }
body.pubv2 .s1m .s1m-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
body.pubv2 .s1m .s1m-groups button { --g: var(--pv2-gold); display: flex; flex-direction: column; gap: 2px; min-height: 58px; padding: 9px 12px 9px 14px; text-align: left; background: var(--pv2-field); border: 1px solid var(--pv2-border-strong); border-left: 4px solid var(--g); border-radius: var(--s1-radius); color: var(--pv2-text-soft); }
body.pubv2 .s1m .s1m-groups button b { color: #fff; font-weight: 600; font-size: 15.5px; line-height: 1.25; }
body.pubv2 .s1m .s1m-groups button small { color: var(--pv2-text-muted); font-size: 12px; line-height: 1.3; }
body.pubv2 .s1m .s1m-groups button:hover { background: var(--pv2-hover); }
body.pubv2 .s1m .s1m-groups button[aria-checked="true"] { border-color: var(--g); background: #2d2d2e; background: color-mix(in srgb, var(--g) 16%, #212122); }
body.pubv2 .s1m .s1m-groups button[aria-checked="true"] small { color: var(--pv2-text-soft); }
body.pubv2 .s1m .s1m-groupcard { --g: var(--pv2-gold); margin: 8px 0 18px; padding: 12px 14px; background: var(--pv2-surface); border: 1px solid var(--pv2-border); border-radius: var(--s1-radius); }
body.pubv2 .s1m .s1m-groupcard p { margin: 0 0 8px; color: var(--pv2-text-soft); text-wrap: balance; }
body.pubv2 .s1m .s1m-groupcard p b { color: #fff; font-weight: 600; }
body.pubv2 .s1m .s1m-prods { display: flex; flex-wrap: wrap; gap: 8px; }
body.pubv2 .s1m .s1m-prods button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 5px 14px 5px 8px; background: var(--pv2-field); border: 1px solid var(--pv2-border-strong); border-radius: var(--s1-radius); color: var(--pv2-text-soft); font-weight: 600; font-size: 13.5px; }
body.pubv2 .s1m .s1m-prods button:hover { background: var(--pv2-hover); color: #fff; }
body.pubv2 .s1m .s1m-prods button[aria-checked="true"] { background: #493919; color: #ffe2a7; border-color: #a97d26; }
body.pubv2 .s1m .s1m-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--pv2-border-strong); border-radius: var(--pv2-radius); background: var(--pv2-field); overflow: hidden; }
body.pubv2 .s1m .s1m-seg button { min-height: 40px; padding: 6px 12px; border: 0; border-right: 1px solid var(--pv2-border); background: transparent; color: var(--pv2-text-soft); font-size: 13px; font-weight: 600; }
body.pubv2 .s1m .s1m-seg button:last-child { border-right: 0; }
body.pubv2 .s1m .s1m-seg button:hover { background: var(--pv2-hover); color: #fff; }
body.pubv2 .s1m .s1m-seg button[aria-checked="true"] { background: #493919; color: #ffe2a7; }

/* ---------- the finder's controls ---------- */
body.pubv2 .s1m .s1m-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px 20px; align-items: start; margin: 0 0 22px; }
body.pubv2 .s1m .s1m-field { min-width: 0; margin: 0 0 16px; }
body.pubv2 .s1m .s1m-controls .s1m-field { margin: 0; }
body.pubv2 .s1m .s1m-field-prod { grid-column: 1 / -1; }
body.pubv2 .s1m .s1m-stepper { display: inline-flex; align-items: center; border: 1px solid var(--pv2-border-strong); border-radius: var(--pv2-radius); background: var(--pv2-field); height: 48px; overflow: hidden; }
body.pubv2 .s1m .s1m-stepper button { width: 44px; height: 48px; border: 0; background: transparent; color: var(--pv2-text-soft); cursor: pointer; font-size: 18px; }
body.pubv2 .s1m .s1m-stepper button:hover { background: var(--pv2-hover); color: #fff; }
body.pubv2 .s1m .s1m-stepper button:disabled { color: var(--pv2-text-dim); cursor: default; background: transparent; }
body.pubv2 .s1m .s1m-stepper output { min-width: 40px; padding: 0; text-align: center; color: #fff; font-weight: 600; font-size: 17px; }
body.pubv2 .s1m .s1m-field-quality .s1m-seg button { min-height: 46px; }

/* ---------- the unlock list: a button and a drawn list ---------- */
body.pubv2 .s1m .s1m-drop { position: relative; max-width: 420px; }
body.pubv2 .s1m .s1m-drop-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 5px 12px; text-align: left; background: var(--pv2-field); border: 1px solid var(--pv2-border-strong); border-radius: var(--s1-radius); color: #fff; cursor: pointer; }
body.pubv2 .s1m .s1m-drop-btn:hover, body.pubv2 .s1m .s1m-drop-btn[aria-expanded="true"] { border-color: var(--pv2-gold); }
body.pubv2 .s1m .s1m-drop-btn > span:first-child { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
body.pubv2 .s1m .s1m-drop-btn b { font-weight: 600; font-size: 15px; white-space: nowrap; }
body.pubv2 .s1m .s1m-drop-btn small { color: var(--pv2-text-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pubv2 .s1m .s1m-caret { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--pv2-text-muted); border-bottom: 2px solid var(--pv2-text-muted); transform: rotate(45deg); margin: -4px 4px 0 0; }
body.pubv2 .s1m .s1m-drop-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 6px; padding: 6px; max-height: 340px; overflow-y: auto; background: var(--pv2-panel); border: 1px solid var(--pv2-border-strong); border-radius: var(--s1-radius); box-shadow: var(--pv2p-shadow); scrollbar-width: thin; scrollbar-color: var(--pv2-border-strong) var(--pv2-surface); }
body.pubv2 .s1m .s1m-drop-list::-webkit-scrollbar { width: 10px; }
body.pubv2 .s1m .s1m-drop-list::-webkit-scrollbar-track { background: var(--pv2-surface); }
body.pubv2 .s1m .s1m-drop-list::-webkit-scrollbar-thumb { background: var(--pv2-border-strong); border-radius: 5px; border: 2px solid var(--pv2-surface); }
body.pubv2 .s1m .s1m-drop-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: center; width: 100%; min-height: 44px; padding: 5px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--pv2-text-soft); cursor: pointer; text-align: left; }
body.pubv2 .s1m .s1m-drop-list button b { grid-column: 1; color: #fff; font-weight: 600; font-size: 13.5px; }
body.pubv2 .s1m .s1m-drop-list button small { grid-column: 1; color: var(--pv2-text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pubv2 .s1m .s1m-drop-list button span { grid-column: 2; grid-row: 1 / span 2; min-width: 24px; text-align: right; color: var(--pv2-text-muted); font-size: 12.5px; font-weight: 600; }
body.pubv2 .s1m .s1m-drop-list button:hover, body.pubv2 .s1m .s1m-drop-list button:focus-visible { background: var(--pv2-hover); color: #fff; }
body.pubv2 .s1m .s1m-drop-list button[aria-selected="true"] { background: #493919; }
body.pubv2 .s1m .s1m-have { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
body.pubv2 .s1m .s1m-have span { display: inline-flex; }
body.pubv2 .s1m .s1m-have span.is-off { opacity: .18; filter: grayscale(1); }

/* ---------- the list of mixes ---------- */
body.pubv2 .s1m .s1m-res-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 12px; }
body.pubv2 .s1m .s1m-res-head h3 { margin: 0; font-size: 18px; font-weight: 400; color: #fff; }
body.pubv2 .s1m .s1m-res-head p { margin: 0; color: var(--pv2-text-muted); font-size: 13px; text-wrap: balance; }
body.pubv2 .s1m .s1m-res-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.pubv2 .s1m .s1m-res { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "n body nums" "n body act"; gap: 8px 16px; align-items: start; padding: 12px 14px; background: var(--pv2-panel); border: 1px solid var(--pv2-border); border-radius: var(--s1-radius); }
body.pubv2 .s1m .s1m-res.is-top { border-color: rgba(234, 168, 36, .55); box-shadow: var(--pv2p-shadow); }
body.pubv2 .s1m .s1m-res-n { grid-area: n; font-size: 20px; font-weight: 400; color: var(--pv2-text-muted); line-height: 34px; text-align: center; }
body.pubv2 .s1m .s1m-res.is-top .s1m-res-n { color: var(--pv2-gold); }
body.pubv2 .s1m .s1m-res-body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
body.pubv2 .s1m .s1m-nums { grid-area: nums; display: grid; grid-template-columns: repeat(4, auto); gap: 0 18px; margin: 0; justify-content: end; }
body.pubv2 .s1m .s1m-nums > div { display: flex; flex-direction: column-reverse; text-align: right; }
body.pubv2 .s1m .s1m-nums dt { font-size: 10.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--pv2-text-muted); white-space: nowrap; }
body.pubv2 .s1m .s1m-nums dd { margin: 0; font-size: 16px; font-weight: 600; color: #fff; line-height: 1.3; white-space: nowrap; }
body.pubv2 .s1m .s1m-nums .s1m-profit dd { font-size: 24px; font-weight: 400; color: var(--pv2-gold); line-height: 1.1; }
body.pubv2 .s1m .s1m-res-act { grid-area: act; justify-self: end; }
body.pubv2 .s1m .s1m-res-foot { margin-top: 12px; display: flex; align-items: center; }

/* ---------- the calculator ---------- */
body.pubv2 .s1m .s1m-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 6px; }
body.pubv2 .s1m .s1m-palette button { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 5px 10px 5px 8px; text-align: left; background: var(--pv2-field); border: 1px solid var(--pv2-border); border-radius: var(--s1-radius); color: var(--pv2-text-soft); cursor: pointer; }
body.pubv2 .s1m .s1m-palette button:hover:not(:disabled) { border-color: var(--pv2-gold); background: var(--pv2-hover); }
body.pubv2 .s1m .s1m-palette button:disabled { opacity: .45; cursor: default; }
body.pubv2 .s1m .s1m-palette button > span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
body.pubv2 .s1m .s1m-palette .s1m-pal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
body.pubv2 .s1m .s1m-palette button b { color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pubv2 .s1m .s1m-palette button small { --c: #ccc; font-size: 11.5px; color: var(--c); color: color-mix(in srgb, var(--c) 62%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pubv2 .s1m .s1m-palette button em { flex: none; font-style: normal; font-size: 12.5px; color: var(--pv2-text-muted); }
body.pubv2 .s1m .s1m-recipe { margin: 0 0 14px; }
body.pubv2 .s1m .s1m-recipe-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 10px 12px; background: var(--pv2-surface); border: 1px solid var(--pv2-border); border-radius: var(--s1-radius); }
body.pubv2 .s1m .s1m-ing-base { border-color: #a97d26; background: #493919; color: #ffe2a7; }
body.pubv2 .s1m .s1m-ing button { width: 24px; height: 24px; margin: 0 -6px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pv2-text-muted); cursor: pointer; font-size: 16px; line-height: 1; }
body.pubv2 .s1m .s1m-ing button:hover { background: var(--pv2-hover); color: #fff; }
body.pubv2 .s1m .s1m-recipe-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
body.pubv2 .s1m .s1m-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; padding: 16px 18px; background: var(--pv2-panel); border: 1px solid var(--pv2-border); border-radius: var(--s1-radius); box-shadow: var(--pv2p-shadow); }
body.pubv2 .s1m .s1m-card + .s1m-card, body.pubv2 .s1m .s1m-card + .s1m-trace { margin-top: 12px; }
body.pubv2 .s1m .s1m-card-main { min-width: 0; }
body.pubv2 .s1m .s1m-fxrow-big .s1m-fx { font-size: 13.5px; padding: 3px 11px; }
body.pubv2 .s1m .s1m-nums-calc { grid-area: auto; }
body.pubv2 .s1m .s1m-buyers { display: block; box-shadow: none; }
body.pubv2 .s1m .s1m-buyers-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
body.pubv2 .s1m .s1m-buyers-head .s1m-label { margin: 0; }
body.pubv2 .s1m .s1m-buyers-head .s1m-seg button { min-height: 34px; padding: 4px 10px; font-size: 12.5px; }
body.pubv2 .s1m .s1m-buyer { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 9px 0 9px 12px; border-top: 1px solid var(--pv2-line); border-left: 3px solid var(--g, var(--pv2-gold)); }
body.pubv2 .s1m .s1m-buyer b { color: #fff; font-weight: 600; }
body.pubv2 .s1m .s1m-buyer strong { color: var(--pv2-gold); font-size: 20px; font-weight: 400; white-space: nowrap; }
body.pubv2 .s1m .s1m-trace { border: 1px solid var(--pv2-border); border-radius: var(--s1-radius); background: var(--pv2-surface); }
body.pubv2 .s1m .s1m-trace summary { padding: 12px 16px; cursor: pointer; color: #fff; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; border-radius: var(--s1-radius); }
body.pubv2 .s1m .s1m-trace summary::-webkit-details-marker { display: none; }
body.pubv2 .s1m .s1m-trace summary:before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--pv2-text-muted); border-bottom: 2px solid var(--pv2-text-muted); transform: rotate(-45deg); transition: transform .15s; }
body.pubv2 .s1m .s1m-trace[open] summary:before { transform: rotate(45deg); }
body.pubv2 .s1m .s1m-trace ol { margin: 0; padding: 0 16px 14px 38px; color: var(--pv2-text-muted); }
body.pubv2 .s1m .s1m-trace li { padding: 3px 0; }
body.pubv2 .s1m .s1m-trace li b { color: #fff; font-weight: 600; margin-right: 8px; }
body.pubv2 .s1m .s1m-trace li span { color: var(--pv2-text-soft); }

/* ---------- the guide's tables (written by the page from the data file) ---------- */
body.pubv2.sstool-schedule-i .sstool-guide .pv2p-aside .pv2p-well + .pv2p-well { margin-top: 14px; }
body.pubv2.sstool-page .sstool-guide .s1g-h2 { margin-top: 34px; }
body.pubv2 .s1g-table { margin: 0 0 16px; border: 1px solid var(--pv2-border); border-radius: 6px; overflow: hidden; background: var(--pv2-panel); }
body.pubv2 .s1g-row { display: grid; grid-template-columns: 130px 150px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--pv2-line); color: var(--pv2-text-soft); font-size: 13.5px; }
body.pubv2 .s1g-row:first-child { border-top: 0; }
body.pubv2 .s1g-head { background: var(--pv2-surface); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pv2-text-muted); }
body.pubv2 .s1g-name { color: #fff; font-weight: 600; }
body.pubv2 .s1g-row .s1g-name[style] { padding-left: 10px; border-left: 3px solid var(--s1g, var(--pv2-gold)); }
body.pubv2 .s1g-fx { display: flex; flex-wrap: wrap; gap: 5px; }
body.pubv2 .s1g-ing .s1g-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 60px minmax(0, 1fr); }
body.pubv2 .s1g-limits, body.pubv2 .s1g-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
body.pubv2 .s1g-limits span, body.pubv2 .s1g-list > span { display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 11px; border: 1px solid var(--pv2-border); border-radius: 6px; background: var(--pv2-panel); color: var(--pv2-text-soft); font-size: 13px; white-space: nowrap; }
body.pubv2 .s1g-limits b, body.pubv2 .s1g-list b { color: #fff; font-weight: 600; }
body.pubv2 .s1g-limits b { font-size: 15px; }
body.pubv2 .s1g-effects > span { align-items: center; padding: 4px 10px 4px 4px; }

/* ---------- phone + narrow ---------- */
@media (max-width: 991px) {
	body.pubv2 .s1m .s1m-controls { grid-template-columns: auto minmax(0, 1fr); }
	body.pubv2 .s1m .s1m-field-unlock { grid-column: 1 / -1; }
	body.pubv2 .s1m .s1m-res { grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "n body" "nums nums" "act act"; }
	body.pubv2 .s1m .s1m-nums { justify-content: start; grid-template-columns: repeat(4, minmax(0, auto)); }
	body.pubv2 .s1m .s1m-nums > div { text-align: left; }
	body.pubv2 .s1m .s1m-res-act { justify-self: start; }
	body.pubv2 .s1m .s1m-card { grid-template-columns: minmax(0, 1fr); }
	body.pubv2 .s1m .s1m-nums-calc { justify-content: start; }
}
@media (max-width: 767px) {
	body.pubv2 .s1m .s1m-tabs button { flex: 1 1 auto; min-height: 44px; padding: 8px 10px; }
	body.pubv2 .s1m .s1m-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.pubv2 .s1m .s1m-controls { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	body.pubv2 .s1m .s1m-drop { max-width: none; }
	/* each button as wide as its own name, the row filled: a two-word name never breaks into two lines */
	body.pubv2 .s1m .s1m-prods button { flex: 1 1 auto; white-space: nowrap; padding-right: 12px; }
	body.pubv2 .s1m .s1m-groups button { padding: 9px 8px 9px 11px; }
	body.pubv2 .s1m .s1m-seg { display: flex; }
	body.pubv2 .s1m .s1m-seg button { flex: 1 1 auto; min-height: 44px; padding: 6px 4px; font-size: 12.5px; }
	body.pubv2 .s1m .s1m-btn, body.pubv2 .s1m .s1m-drop-list button { min-height: 44px; }
	body.pubv2 .s1m .s1m-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; width: 100%; }
	body.pubv2 .s1m .s1m-res { padding: 12px; gap: 10px 10px; }
	body.pubv2 .s1m .s1m-res-act, body.pubv2 .s1m .s1m-res-act .s1m-btn { width: 100%; }
	body.pubv2 .s1m .s1m-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.pubv2 .s1m .s1m-buyer { grid-template-columns: minmax(0, 1fr) auto; }
	body.pubv2 .s1m .s1m-buyer .s1m-fxrow { grid-column: 1 / -1; grid-row: 2; }
	body.pubv2 .s1m .s1m-buyer strong { grid-column: 2; grid-row: 1; }
	body.pubv2 .s1m .s1m-card { padding: 14px 12px; }
	body.pubv2 .s1m .s1m-buyers-head .s1m-seg { width: 100%; flex-wrap: nowrap; }
	body.pubv2 .s1m .s1m-buyers-head .s1m-seg button { flex: 1 1 auto; min-height: 44px; padding: 4px 2px; font-size: 12px; }
	body.pubv2 .s1m .s1m-field-quality .s1m-seg { flex-wrap: nowrap; }
	body.pubv2 .s1m .s1m-palette button { gap: 7px; padding: 5px 8px 5px 6px; }
	body.pubv2 .s1m .s1m-palette button .s1m-ico { width: 26px; height: 26px; }
	body.pubv2 .s1m .s1m-palette button b { font-size: 13px; }
	body.pubv2 .s1m .s1m-palette button small { font-size: 11px; }
	body.pubv2 .s1g-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	body.pubv2 .s1g-row > :nth-child(3) { grid-column: 1 / -1; }
	body.pubv2 .s1g-head > :nth-child(3) { display: none; }
	body.pubv2 .s1g-ing .s1g-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 44px; }
	body.pubv2 .s1g-ing .s1g-row > :nth-child(3) { grid-column: auto; }
	body.pubv2 .s1g-ing .s1g-row > :nth-child(4) { grid-column: 1 / -1; color: var(--pv2-text-muted); font-size: 12px; }
	body.pubv2 .s1g-ing .s1g-head > :nth-child(3) { display: block; }
	body.pubv2 .s1g-ing .s1g-head > :nth-child(4) { display: none; }
}
