/* Compact view: everything closer together and a little smaller. On while <html> carries data-dense="1" (app.js sets it
   from Settings, or by itself in a narrow window with a mouse or a short one). Loaded last of all the stylesheets.
   Rules for the wl-, pf-, ix- and sx- parts live with those parts. A touch screen keeps 40px press areas throughout. */

/* ---- page rhythm and the top bar ---- */
[data-dense="1"] .page{gap:12px;padding-top:8px}
[data-dense="1"] .top{padding-top:6px;padding-bottom:6px;margin-top:-8px}
[data-dense="1"] .top .nav a{padding:6px 10px;font-size:13.5px}
[data-dense="1"] .ticker div{padding:4px 0}
[data-dense="1"] .ticker span,[data-dense="1"] .ticker .tk{font-size:12px}
@media(pointer:fine){
  [data-dense="1"] .top .search{height:34px}
  [data-dense="1"] .top .bell,[data-dense="1"] .top .sq-btn,[data-dense="1"] .top .sbtn{width:34px;height:34px;border-radius:10px}
  [data-dense="1"] .top .bell i{top:6px;right:6px}
  [data-dense="1"] .ch-wal{height:34px;padding:0 12px 0 10px;border-radius:10px;font-size:13px}
  [data-dense="1"] .top #connect.acct.ch-me,[data-dense="1"] .top #connect.acct.ch-me .ch-av{width:34px;min-width:34px;height:34px}
  [data-dense="1"] .top #connect.acct.out,[data-dense="1"] .top #connect.acct.out .acct-f{height:34px}
}

/* ---- panels ---- */
[data-dense="1"] .mod{padding:14px 16px;border-radius:18px}
[data-dense="1"] .mod>.mh{margin-bottom:10px}
[data-dense="1"] .mh h2{font-size:14.5px;gap:8px}
[data-dense="1"] .mh h2::before{width:6px;height:6px;box-shadow:none}
[data-dense="1"] .mod::before{opacity:.45}

/* ---- rows: the shared .mr row, the home tables and lists, the collections list ---- */
[data-dense="1"] .mr{min-height:40px;padding:4px 12px;gap:10px}
[data-dense="1"] .mr-pic{width:30px;height:30px;border-radius:8px;font-size:13px}
[data-dense="1"] .mr-t,[data-dense="1"] .mr-v{gap:1px}
[data-dense="1"] .mr-t b{font-size:13.5px}
[data-dense="1"] .mr-t small,[data-dense="1"] .mr-v small{font-size:12px}
[data-dense="1"] .mr-v b{font-size:13.5px}
[data-dense="1"] .row{padding-top:5px;padding-bottom:5px;gap:10px}
[data-dense="1"] .row .av,[data-dense="1"] .row.c2 .who .av{width:28px;height:28px}
[data-dense="1"] .li{padding:4px 0;gap:8px;grid-template-columns:28px minmax(0,1fr) auto}
[data-dense="1"] .li .av{width:28px;height:28px}
[data-dense="1"] .pulse{gap:8px}
[data-dense="1"] .tile{padding:8px 12px}
[data-dense="1"] .tile b{font-size:17px}
[data-dense="1"] .tile svg{height:28px}
[data-dense="1"] .xrow{height:44px;font-size:13.5px}
[data-dense="1"] .xrow .xlogo{width:30px;height:30px}
[data-dense="1"] .xhead,[data-dense="1"] .xrow{gap:10px}
[data-dense="1"] .xmodes{margin-bottom:8px}
[data-dense="1"] .xmodes .seg button{min-height:30px;padding:5px 11px}
[data-dense="1"] #xKinds{margin-bottom:6px}
[data-dense="1"] .xcur{height:34px}
@media(max-width:560px){[data-dense="1"] .xrow{height:56px}[data-dense="1"] .xrow .xlogo{width:34px;height:34px}}

/* ---- chain rows and the chain list ---- */
@media(pointer:fine) and (min-width:721px){[data-dense="1"] .ovc-b{height:28px;font-size:12.5px;padding:0 9px 0 5px}[data-dense="1"] .ovc-b.plain{padding-left:9px}[data-dense="1"] .ovc-b .xci{width:16px;height:16px}}
[data-dense="1"] .xch{padding:5px 9px}
[data-dense="1"] .xpanel>div{grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:2px}

/* ---- cards and the featured frame ---- */
[data-dense="1"] .grid{gap:8px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
[data-dense="1"] .card div{padding:6px 9px}
[data-dense="1"] .card small{font-size:11.5px}
[data-dense="1"] .hero{max-height:340px}
@media(max-width:720px){[data-dense="1"] .grid{grid-template-columns:repeat(2,minmax(0,1fr))}[data-dense="1"] .hero{max-height:none}}

/* ---- launchpad ---- */
[data-dense="1"] .lp-list{gap:10px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
[data-dense="1"] .ld{gap:10px}
[data-dense="1"] .ld-stage{padding:18px;gap:18px;border-radius:20px}
[data-dense="1"] .ld-art{width:112px;height:112px;border-radius:22px}
[data-dense="1"] .ld-track{padding:12px 14px;border-radius:16px}
[data-dense="1"] .ld-p{padding:10px 12px;border-radius:14px}
[data-dense="1"] .ld-console{padding:14px;gap:10px;border-radius:18px}

/* ---- the price bar at the foot ---- */
@media(pointer:fine) and (min-width:1001px){[data-dense="1"] .ch-bar{height:30px}[data-dense="1"] .ch-bar .ccy button{height:24px}}

/* ---- a touch screen keeps its 40px press areas whatever is above ---- */
@media(pointer:coarse){
  [data-dense="1"] .xmodes .seg button,[data-dense="1"] .xcur,[data-dense="1"] .ovc-b{min-height:40px}
  [data-dense="1"] .mr{min-height:44px}
}
