/* Module «Каталог diamdor.ru»: only what is specific to it; shared components live in styles.css. */

/* ---- tabs, page frame */
.cat-tabs { display: flex; gap: 0; border: 1px solid var(--border); background: var(--card); }
.cat-tabs a { display: inline-flex; align-items: center; min-height: var(--ctl); padding: 0 var(--s4); font-weight: 700; font-size: var(--fs-sm); color: var(--muted); border-right: 1px solid var(--border); }
.cat-tabs a:last-child { border-right: 0; }
.cat-tabs a:hover { color: var(--fg); }
.cat-tabs a.on { background: var(--fg); color: var(--bg); }
.cat-page { gap: var(--s2); }
.cat-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.cat-split.with-panel { grid-template-columns: minmax(0, 1fr) 560px; }
.cat-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: var(--s2); position: relative; }
.cat-back { font-size: var(--fs-sm); }
.lnk { display: inline-flex; align-items: center; gap: 4px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.lnk:hover { color: var(--primary); }
.lnk .ico { width: 12px; height: 12px; }
.mono { font: 12px ui-monospace, Menlo, monospace; }

/* ---- toolbar */
.cat-tb { display: grid; gap: var(--s2); }
.cat-tb .tb { gap: var(--s2); }
.cat-search { flex: 1 1 320px; max-width: 520px; min-width: 200px; }
.cat-search .input { width: 100%; }
.cat-tb select.input { max-width: 142px; }
.cat-tb .fbtn { display: none; }
.cat-tb .fil { display: contents; }
.cat-tb .tb.fil { display: flex; }
.cat-tb .rng { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.cat-tb .rng .input { width: 86px; }
.chip .cn { margin-left: 4px; font-size: 11px; opacity: .65; font-weight: 600; }
.chip[aria-pressed=true] .cn { opacity: .85; }
.cat-tb .tb.sel { align-items: center; }
.left { margin-left: auto; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.left b { color: var(--fg); font-size: var(--fs-lg); }

/* ---- table */
.cat-tbl { table-layout: auto; }
.cat-tbl td.chk, .cat-tbl th.chk { width: 30px; padding: 0 0 0 var(--s3); }
.cat-tbl td.title { max-width: 0; width: 100%; min-width: 260px; height: 46px; }
.cat-tbl td { height: 46px; }
.cat-tbl .tcell { display: grid; gap: 1px; min-width: 0; }
.cat-tbl .ttl { overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--fg); }
a.ttl:hover { color: var(--primary); text-decoration: underline; }
.cat-tbl .dpath { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.cat-tbl .dpath.rv { color: var(--warn); }
.cat-tbl .sub { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; overflow: hidden; }
.cat-tbl .sub .st { font-size: 10.5px; padding: 0 5px; }
.cat-tbl .sub .cid { font: 11px ui-monospace, Menlo, monospace; color: var(--muted); }
.cat-tbl .sub .cid:hover { color: var(--primary); }
.cat-tbl .sub .bsm { display: none; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.cat-tbl tr.off .ttl { color: var(--muted); }
.cat-tbl tr.checked td { background: var(--primary-bg); }
.cat-tbl td.pcol { width: 1%; padding: 0 var(--s2); }
.strip { display: flex; align-items: center; gap: 3px; }
.strip .more { font-size: 11px; color: var(--muted); margin-left: 2px; }
.thumbbtn { padding: 0; border: 0; background: none; display: block; line-height: 0; cursor: zoom-in; }
.thumb { display: block; width: 32px; height: 32px; object-fit: cover; background: var(--soft); }
.thumb.ph { display: grid; place-items: center; color: var(--muted); }
.thumb.ph .ico { width: 14px; height: 14px; }
.pcol .none { color: #b9bec5; display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px dashed var(--border); }
.pcol .none .ico { width: 14px; height: 14px; }
td.pcol.sm-hide + td.pcol { border-left: 0; }
.cat-tbl td.price { min-width: 96px; font-weight: 700; }
.cat-tbl td.price.dry, .rvbtn.dry { background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(183,121,31,.14) 5px 7px); }
.cat-tbl td.price .muted { font-weight: 400; font-size: 12px; }
.cat-tbl td.ed.editing input { font-weight: 700; text-align: right; }
.cat-tbl td.ed.err::after { display: none; }
.cat-tbl td.rv { width: 40px; text-align: center; }
.rvbtn { width: 26px; height: 26px; padding: 0; border: 1px solid var(--border); background: var(--card); color: #c3c7cd; display: inline-grid; place-items: center; }
.rvbtn.on { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.rvbtn:hover { border-color: var(--fg); }
.cat-tbl td.act { width: 1%; }
.cat-tbl td.act .btn { border-color: transparent; }
.cat-tbl tr:hover td.act .btn, .cat-tbl td.act .btn:focus-visible { border-color: var(--border); }
.cat-tbl th.pcol, .cat-tbl th.rv { text-align: center; }
.cat-state { padding: var(--s3); }
.cat-sentinel { height: 1px; }
.with-panel .hide-p { display: none; }

/* ---- bulk bar */
.cat-bulk { position: sticky; bottom: 0; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding: var(--s2) var(--s3); background: var(--fg); color: var(--bg); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.5); }
.cat-bulk .sp { flex: 1; }
.cat-bulk .n { margin-right: var(--s2); }
.cat-bulk .btn.light { background: transparent; color: var(--bg); border-color: rgba(255,255,255,.4); }
.cat-bulk .btn.light:hover { border-color: #fff; }
.cat-bulk .btn.danger { background: transparent; color: #ff9d90; border-color: #ff9d90; }

/* ---- hover preview and lightbox */
.cat-pop { position: fixed; z-index: 150; width: 362px; padding: 1px; background: var(--card); border: 1px solid var(--fg); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); pointer-events: none; }
.cat-pop img { display: block; width: 360px; height: 360px; object-fit: contain; background: #fff; }
.cat-pop .n { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; }
.cat-lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(12,13,15,.92); }
.cat-lb img { max-width: 94vw; max-height: 90vh; object-fit: contain; background: #fff; }
.cat-lb .nav { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: rgba(255,255,255,.14); color: #fff; }
.cat-lb .nav:hover { background: rgba(255,255,255,.28); }
.cat-lb .nav.l { left: 14px; top: 50%; } .cat-lb .nav.r { right: 14px; top: 50%; } .cat-lb .nav.x { right: 14px; top: 14px; }
.cat-lb .nav .ico { width: 22px; height: 22px; }
.cat-lb .cnt { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; font-weight: 700; }

/* ---- toast with action */
.cat-toast { position: fixed; left: 50%; top: calc(var(--bar-h) + 10px); transform: translateX(-50%); z-index: 400; display: flex; align-items: center; gap: var(--s3); max-width: min(640px, calc(100vw - 24px)); padding: 9px 10px 9px 16px; background: var(--fg); color: var(--bg); font-size: var(--fs-sm); box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.cat-toast.ok { background: var(--ok); color: #fff; }
.cat-toast.bad { background: var(--bad); color: #fff; }
.cat-toast.dry { background: #4a3a14; color: #fff; border-left: 4px solid #e0a23a; }
.cat-toast .tx { display: grid; gap: 2px; min-width: 0; }
.cat-toast .sub { opacity: .85; font-weight: 500; }
.cat-toast code { font: 11px ui-monospace, Menlo, monospace; opacity: .9; overflow-wrap: anywhere; }
.cat-toast .act { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border: 1px solid rgba(255,255,255,.55); background: transparent; color: inherit; font-weight: 700; white-space: nowrap; }
.cat-toast .act:hover { background: rgba(255,255,255,.16); }
.cat-toast .x { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: inherit; opacity: .7; display: grid; place-items: center; }
.cat-toast .x:hover { opacity: 1; }

/* ---- side panel with the card */
.cat-panel { display: flex; flex-direction: column; min-height: 0; background: var(--bg); border: 1px solid #cfd3d8; }
.cat-panel-h { flex: none; display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); background: var(--card); border-bottom: 1px solid var(--border); }
.cat-panel-h .sp, .row .sp { flex: 1; }
.cat-panel-b { flex: 1; min-height: 0; overflow: auto; padding: var(--s3); }
.row.between { justify-content: flex-start; }

/* ---- the card */
.cat-card { display: grid; gap: var(--s3); align-content: start; }
.cat-card.page { max-width: 1240px; }
.cat-card .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.cat-card .col { display: grid; gap: var(--s3); min-width: 0; align-content: start; }
.cat-ch { display: grid; gap: 4px; min-width: 0; }
.cat-ch .crumb { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cat-ch .ttl { font-size: var(--fs-lg); line-height: 1.3; overflow-wrap: anywhere; }
.cat-ch .ids { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s3); font-size: var(--fs-sm); color: var(--muted); }
.cat-ch .tools { margin-top: 4px; }
.cat-pad { padding: var(--s3); }
.cat-sec { background: var(--card); border: 1px solid var(--border); padding: var(--s3); display: grid; gap: var(--s2); min-width: 0; }
.cat-sec > h3 { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cat-sec .note { margin: 0; }
.cat-sec .msg { color: var(--bad); font-size: var(--fs-sm); min-height: 0; }
.cat-sec .msg:empty { display: none; }
.cat-sec .lg, .lines .lg { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cat-price .input { width: 190px; font-size: 20px; font-weight: 800; height: 44px; text-align: right; }
.cat-price .chg { min-height: 16px; }
.cat-pub .rev { margin-top: 2px; }
.cat-kv { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
.cat-kv th { width: 42%; padding: 4px var(--s3) 4px 0; text-align: left; font-weight: 600; color: var(--muted); vertical-align: top; border-bottom: 1px solid var(--grid-line); }
.cat-kv td { padding: 4px 0; vertical-align: top; border-bottom: 1px solid var(--grid-line); overflow-wrap: anywhere; }
.cat-kv td.dim { color: #555b63; } .cat-kv td.muted { color: var(--muted); }
.cat-kv ul.stones { margin: 0; padding-left: 16px; display: grid; gap: 2px; }
.cat-kv .hint { color: var(--muted); font-size: 11px; }
.cat-specs .lines ul, .cat-cand ul { margin: 2px 0 0; padding-left: 18px; font-size: var(--fs-sm); color: #444; display: grid; gap: 1px; }
.cat-cand .pn { display: grid; gap: 3px; }
.cat-cand .chips { margin-top: 2px; }
.cat-cand .chip { min-height: 22px; cursor: default; }
.cat-json summary { cursor: pointer; font-size: var(--fs-sm); color: var(--muted); padding: 2px 0; }
.cat-json summary:hover { color: var(--fg); }
.cat-json pre { margin: 4px 0 0; max-height: 280px; overflow: auto; padding: var(--s2); background: var(--soft); font: 11px/1.4 ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.cat-danger summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 700; color: var(--bad); }
.cat-danger[open] { border-color: var(--bad); background: var(--bad-bg); }
.cat-conf { display: grid; gap: var(--s2); font-size: var(--fs-md); }
.cat-conf p, .cat-conf ul { margin: 0; } .cat-conf ul { padding-left: 18px; display: grid; gap: 4px; }
.cat-conf .ttl { overflow-wrap: anywhere; }
.cat-conf .chk { display: flex; align-items: flex-start; gap: 6px; font-weight: 600; }

/* ---- photos of the card */
.cat-ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--s2); }
.cat-ph-grid .ph { position: relative; aspect-ratio: 1; background: var(--soft); border: 1px solid var(--border); cursor: grab; }
.cat-ph-grid .ph.first { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.cat-ph-grid .ph.drag { opacity: .35; }
.cat-ph-grid .ph.over { outline: 2px dashed var(--primary); outline-offset: -2px; }
.cat-ph-grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.cat-ph-grid .ph .n { position: absolute; left: 4px; top: 4px; display: inline-flex; align-items: center; gap: 2px; padding: 0 5px; background: rgba(255,255,255,.9); font-size: 11px; font-weight: 800; }
.cat-ph-grid .ph .n .ico { width: 11px; height: 11px; fill: var(--primary); stroke: var(--primary); }
.cat-ph-grid .ph .grip { position: absolute; right: 3px; top: 3px; color: #fff; background: rgba(0,0,0,.4); padding: 1px; opacity: 0; }
.cat-ph-grid .ph .grip .ico { width: 14px; height: 14px; }
.cat-ph-grid .ph .acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 3px; padding: 3px; background: linear-gradient(transparent, rgba(0,0,0,.45)); opacity: 0; transition: opacity .12s; }
.cat-ph-grid .ph:hover .acts, .cat-ph-grid .ph:focus-within .acts, .cat-ph-grid .ph:hover .grip { opacity: 1; }
.cat-ph-grid .ph .acts .btn { width: 24px; min-height: 24px; padding: 0; }
.cat-ph-grid.ro .ph { cursor: default; }
.cat-photos .bar { display: inline-flex; gap: var(--s2); align-items: center; }
.cat-photos .orig { display: grid; gap: 4px; margin-top: var(--s2); }
.cat-photos .orig .strip { flex-wrap: wrap; }
.cat-photos .orig img { width: 56px; height: 56px; object-fit: cover; opacity: .85; cursor: zoom-in; border: 1px solid var(--border); }

/* ---- dictionary block and pickers */
.cat-dict .picks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.cat-dict .pick { display: grid; gap: 2px; width: 100%; min-height: 50px; padding: 5px var(--s3) 6px; border: 1px solid var(--border); background: var(--card); text-align: left; position: relative; }
.cat-dict .pick::after { content: '▾'; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.cat-dict .pick:hover { border-color: var(--fg); }
.cat-dict .pick.was { border-color: var(--primary); background: var(--primary-bg); }
.cat-dict .pick.bad { border-color: var(--bad); background: var(--bad-bg); }
.cat-dict .pl { display: flex; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cat-dict .pl i { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--warn); }
.cat-dict .pv { font-size: 13.5px; font-weight: 600; line-height: 1.25; padding-right: 16px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.cat-dict .pv.none { color: var(--muted); font-weight: 400; }
.cat-dict .site { font-size: 12px; }
.cat-pop2-back { position: fixed; inset: 0; z-index: 210; background: rgba(20,22,26,.2); }
.cat-pop2 { position: fixed; z-index: 211; display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: min(420px, 60vh); background: var(--card); border: 1px solid var(--fg); }
.cat-pop2 .input { border: 0; border-bottom: 1px solid var(--border); }
.cat-pop2 .opts { list-style: none; margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; }
.cat-pop2 .opt { display: flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 3px var(--s3); border-bottom: 1px solid var(--soft); cursor: pointer; }
.cat-pop2 .opt.act { background: var(--primary-bg); }
.cat-pop2 .opt.cur .ot b::before { content: '✓ '; color: var(--ok); }
.cat-pop2 .opt.none, .cat-pop2 .opt.more { color: var(--muted); cursor: default; font-size: var(--fs-sm); }
.cat-pop2 .opt.none { cursor: pointer; }
.cat-pop2 .ot { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.cat-pop2 .ot b { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.cat-pop2 .ot .sub { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.cat-pop2.sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 75vh; }

/* ---- pricing mode */
.prices .pv { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s3); }
.pv-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); min-height: 0; min-width: 0; }
.pv-fig { margin: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--s2); min-height: 0; min-width: 0; }
.pv-fig figcaption { display: flex; align-items: baseline; gap: var(--s2); font-size: var(--fs-sm); color: var(--muted); }
.pv-fig figcaption b { font-size: var(--fs-lg); color: var(--fg); }
.pv-fig.before figcaption b { color: var(--muted); }
.pv-fig.after figcaption b { color: var(--primary); }
.pv-fig .n { margin-left: auto; font-variant-numeric: tabular-nums; }
.pv-main { display: grid; place-items: center; width: 100%; min-height: 0; padding: 0; border: 1px solid var(--border); background: #fff; overflow: hidden; cursor: zoom-in; }
.pv-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-main.none { cursor: default; background: var(--soft); color: var(--muted); font-size: var(--fs-sm); }
.pv-thumbs { display: flex; gap: 4px; overflow-x: auto; min-height: 0; }
.pv-thumbs:empty { display: none; }
.pv-thumbs .tb1 { flex: none; width: 52px; height: 52px; padding: 0; border: 2px solid transparent; background: var(--soft); opacity: .75; }
.pv-thumbs .tb1.on { border-color: var(--primary); opacity: 1; }
.pv-thumbs .tb1 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-side { min-height: 0; overflow: hidden auto; grid-template-columns: minmax(0, 1fr); display: grid; gap: var(--s3); align-content: start; padding-right: 2px; }
.pv-side > * { min-width: 0; }
.pv-head { display: grid; gap: 3px; }
.pv-head .crumb { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pv-head .ttl { font-size: var(--fs-lg); line-height: 1.3; }
.pv-head .ttl a:hover { color: var(--primary); }
.pv-head .ids { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); font-size: var(--fs-sm); }
.pv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.pv-facts .fact { display: grid; gap: 1px; padding: var(--s2) var(--s3); background: var(--card); border: 1px solid var(--border); }
.pv-facts .fact.small { grid-column: 1 / -1; display: flex; gap: var(--s2); padding: 4px var(--s3); font-size: var(--fs-sm); }
.pv-facts .lg { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pv-facts .big { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pv-price { display: grid; gap: var(--s2); padding: var(--s3); background: var(--primary-bg); border: 1px solid var(--primary); }
.pv-price label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.pv-price .in { position: relative; }
.pv-price .pv-in { height: 60px; font-size: 32px; font-weight: 800; text-align: right; padding-right: 44px; font-variant-numeric: tabular-nums; }
.pv-price .cur { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 700; color: var(--muted); }
.pv-price .acts { display: flex; gap: var(--s2); }
.pv-price .acts .btn { flex: 1; }
.pv-price .msg { color: var(--bad); font-size: var(--fs-sm); font-weight: 600; }
.pv-price .msg:empty { display: none; }
.pv-keys { margin: 0; font-size: 12px; color: var(--muted); }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid currentColor; border-radius: 3px; font: 600 11px/1 'Manrope', sans-serif; opacity: .7; }
.pv-empty { grid-column: 1 / -1; display: grid; gap: var(--s3); align-content: start; max-width: 640px; }
.pv.is-empty .pv-photos { display: none; }
.pv-specs .cat-sec { border: 0; padding: 0; background: none; }

/* ---- phone */
@media (max-width: 1100px) {
  .cat-split.with-panel { grid-template-columns: minmax(0, 1fr); }
  .cat-panel { position: fixed; z-index: 95; top: var(--bar-h); right: 0; bottom: 0; width: min(560px, 100%); box-shadow: -20px 0 50px -30px rgba(0,0,0,.45); }
  .cat-card .cols { grid-template-columns: minmax(0, 1fr); }
  .prices .pv { grid-template-columns: minmax(0, 1fr); overflow: auto; }
}
@media (max-width: 700px) {
  .cat-panel { width: 100%; top: var(--bar-h); bottom: 0; }
  .cat-page .page-head { gap: var(--s2); }
  .cat-tabs { width: 100%; } .cat-tabs a { flex: 1; justify-content: center; padding: 0 var(--s2); }
  .cat-tb select.input { max-width: none; flex: 1 1 44%; }
  .cat-tb .fbtn { display: inline-flex; }
  .cat-tb .fil, .cat-tb .tb.fil { display: none; }
  .cat-tb.open .tb.fil { display: flex; }
  .cat-tb.open .tb > .fil { display: block; }
  .cat-search { flex-basis: 100%; max-width: none; }
  .sm-hide { display: none !important; }
  .cat-tbl td { height: 56px; }
  .cat-tbl td.title { min-width: 0; }
  .cat-tbl .tcell { white-space: normal; }
  .cat-tbl .ttl { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cat-tbl .sub .bsm { display: inline; }
  .cat-tbl td.price { min-width: 70px; }
  .thumb, .pcol .none { width: 40px; height: 40px; }
  .cat-card .cols, .cat-dict .picks { grid-template-columns: minmax(0, 1fr); }
  .cat-dict .picks { grid-template-columns: 1fr 1fr; }
  .cat-ph-grid .ph .acts, .cat-ph-grid .ph .grip { opacity: 1; }
  .cat-ph-grid .ph .acts .btn { width: 28px; min-height: 28px; }
  .cat-price .input { width: 100%; }
  .cat-pop { display: none; }
  .cat-toast { left: 8px; right: 8px; transform: none; max-width: none; }
  .prices .pv { grid-template-columns: minmax(0, 1fr); }
  .pv-photos { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .pv-main { aspect-ratio: 1; }
  .pv-price .pv-in { height: 56px; font-size: 28px; }
  .pv-price { position: sticky; bottom: 0; z-index: 2; }
  .pv-price .acts .btn kbd, .pv-keys { display: none; }
}
@media (hover: none) { .cat-pop { display: none; } }
