:root {
  --bg: #1a1a1a; --stage: #121212; --tile: #262626; --bar: #1c1c1c; --fg: #f1f1f1; --muted: #a3a3a3;
  --yellow: #f6cb3c; --green: #1fb45a; --red: #e0393e; --label: rgba(0, 0, 0, .62); --gap: 6px;
  --top: 40px; --ctl: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--stage); color: var(--fg); overflow: hidden; overscroll-behavior: none; }
body {
  font: 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex; flex-direction: column; height: 100vh; height: 100dvh; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { display: block; }
[data-ico] { display: inline-grid; place-items: center; }

/* loading: joining the meeting */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity .45s; }
#loader.done { opacity: 0; pointer-events: none; }
.ld-box { display: grid; justify-items: center; gap: 14px; padding: 24px; text-align: center; max-width: 360px; }
.ld-box p { margin: 0; color: #dcdcdc; font-size: 15px; }
.ld-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #3a3a3a; border-top-color: #e8e8e8; animation: spin .9s linear infinite; }
.ld-bar { width: 220px; height: 4px; border-radius: 2px; background: #333; overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: #e8e8e8; transition: width .2s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* top bar */
#top { flex: 0 0 var(--top); height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; background: var(--bar); position: relative; z-index: 6; }
.top-l, .top-r { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-width: 70px; }
.top-r { justify-content: flex-end; }
.top-c { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.ico-lock { color: #8fd18a; opacity: .9; }
.tb-btn { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 13px; color: #e8e8e8; }
.tb-btn:hover, .tb-btn[aria-expanded="true"] { background: #2e2e2e; }
.leave-txt { display: none; border: 0; background: var(--red); color: #fff; font-weight: 600; font-size: 13px; height: 28px; padding: 0 12px; border-radius: 6px; cursor: pointer; }

/* waiting room notice */
.wait { display: flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0; padding: 4px 6px 4px 4px; border-radius: 8px; background: #2a2a2a; box-shadow: 0 2px 10px rgba(0,0,0,.4); animation: drop .35s ease-out; }
.wait img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
.wait .w-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #e9e9e9; }
.wait .w-t b { font-weight: 600; color: #fff; }
.wait button { flex: 0 0 auto; height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid #555; background: #333; color: #fff; font-size: 12.5px; cursor: pointer; }
.wait button.admit { background: #0e72ed; border-color: #0e72ed; font-weight: 600; }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }
#wait-band { display: none; }

/* meeting area */
#meet { flex: 1 1 auto; min-height: 0; display: flex; position: relative; }
#stage { flex: 1 1 auto; min-width: 0; position: relative; overflow: hidden; background: var(--stage); }
#gallery { position: absolute; inset: 0; overflow: hidden; }
#track { display: flex; width: 100%; height: 100%; transition: transform .38s cubic-bezier(.3,.7,.2,1); }
.page { flex: 0 0 100%; width: 100%; height: 100%; display: grid; justify-content: center; align-content: center; gap: var(--gap);
  grid-template-columns: repeat(var(--cols, 5), var(--tw, 200px)); grid-auto-rows: var(--th, 112px); padding: 8px 0; }

/* a participant */
.tile { position: relative; width: 100%; height: 100%; min-width: 0; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--tile); cursor: pointer; display: block; text-align: left; }
.tile:focus-visible { outline: 2px solid #4aa3ff; outline-offset: 2px; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow .18s; pointer-events: none; z-index: 3; }
.tile.speaking::after { box-shadow: inset 0 0 0 3px var(--yellow); }
.tile.pinned-src::after { box-shadow: inset 0 0 0 2px #4aa3ff; }
.cam { position: absolute; inset: 0; overflow: hidden; background: #000; }
.cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%);
  transform: scale(1.05); will-change: transform; animation: breathe var(--d, 9s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes breathe {
  0% { transform: scale(1.045) translate(calc(var(--x, .5%) * -1), calc(var(--y, .4%) * -1)); }
  55% { transform: scale(1.055) translate(calc(var(--x, .5%) * .4), var(--y, .4%)); }
  100% { transform: scale(1.062) translate(var(--x, .5%), calc(var(--y, .4%) * .3)); }
}
.tile.frozen .cam img { animation-play-state: paused; }
.freeze { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; transition: opacity .12s steps(2); pointer-events: none; }
.tile.blocky .freeze { opacity: 1; }
.label { position: absolute; left: 6px; bottom: 6px; z-index: 4; max-width: calc(100% - 12px); display: flex; align-items: center; gap: 4px; padding: 2px 7px 2px 4px; border-radius: 4px;
  background: var(--label); color: #fff; font-size: 12px; line-height: 18px; white-space: nowrap; pointer-events: none; }
.label .nm { overflow: hidden; text-overflow: ellipsis; }
.mic { flex: 0 0 auto; width: 14px; height: 14px; color: var(--red); display: grid; place-items: center; }
.mic.on { color: #fff; }
.lvl { display: none; gap: 1.5px; align-items: flex-end; height: 10px; margin-left: -2px; }
.speaking .lvl { display: flex; }
.speaking .mic { color: #fff; }
.lvl i { width: 2px; background: #3ee07a; border-radius: 1px; animation: lv .5s ease-in-out infinite alternate; }
.lvl i:nth-child(1) { height: 5px; animation-delay: -.2s; } .lvl i:nth-child(2) { height: 9px; } .lvl i:nth-child(3) { height: 6px; animation-delay: -.35s; }
@keyframes lv { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.badge { position: absolute; top: 6px; left: 6px; z-index: 4; font-size: 20px; line-height: 1; pointer-events: none; transform-origin: 30% 80%; }
.badge.rx { animation: pop .3s cubic-bezier(.3,1.6,.5,1), fade .5s ease-in 3.5s forwards; }
.badge.hand { background: rgba(0,0,0,.45); border-radius: 6px; padding: 3px 4px; font-size: 18px; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }
@keyframes fade { to { opacity: 0; transform: translateY(-4px); } }

/* the host, camera off */
.tile.host { background: #2a2a2a; cursor: pointer; }
.camoff { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; color: #fff; font-weight: 500; font-size: clamp(18px, calc(var(--th, 200px) * .13), 54px); letter-spacing: .01em; }

/* pages */
.pager { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 30px; height: 60px; border: 0; border-radius: 6px; background: rgba(40,40,40,.85); color: #eee; cursor: pointer; display: grid; place-items: center; }
.pager:hover { background: #3a3a3a; }
.pager[disabled] { opacity: 0; pointer-events: none; }
.pager.prev { left: 8px; } .pager.next { right: 8px; }
.pg-num { position: absolute; right: 8px; width: 30px; top: calc(50% + 36px); text-align: center; font-size: 11px; color: var(--muted); pointer-events: none; z-index: 5; }
.pg-num.left { left: 8px; right: auto; }
#dots { display: none; }

/* pinned / speaker */
#spot { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--stage); z-index: 6; }
.strip { display: flex; gap: var(--gap); padding: 6px 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.strip .tile { flex: 0 0 auto; width: 140px; height: 79px; }
.strip .label { font-size: 10.5px; line-height: 15px; left: 4px; bottom: 4px; max-width: calc(100% - 8px); }
.strip .mic { width: 12px; height: 12px; }
.strip .camoff { font-size: 13px; }
.strip .badge { font-size: 14px; top: 4px; left: 4px; }
.spot-main { position: relative; display: grid; place-items: center; min-height: 0; padding: 4px 10px; }
.spot-box { position: relative; background: #000; border-radius: 8px; overflow: hidden; }
.spot-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spot-box .whole { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b0b0b; cursor: zoom-in; }
.spot-box.speakerv { cursor: pointer; }
.spot-box.speakerv::after { content: ""; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 3px var(--yellow); pointer-events: none; }
.spot-box .camoff { font-size: clamp(22px, 5vw, 60px); }
.spot-cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 12px 8px; min-height: 40px; }
.cap-l { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; }
.cap-l .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-l .sub { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-r { display: flex; gap: 8px; flex: 0 0 auto; }
.chip { height: 28px; padding: 0 11px; border-radius: 6px; border: 1px solid #444; background: #262626; color: #eee; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { background: #333; }
.chip.go { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.pin-ico { color: #cfcfcf; display: grid; }

/* overlays that never take a tap */
#banner { position: absolute; top: 10px; left: 50%; transform: translate(-50%, -6px); z-index: 7; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px;
  background: rgba(20,20,20,.88); color: #eee; font-size: 13px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .5s, transform .5s; }
#banner.on { opacity: 1; transform: translate(-50%, 0); }
#stage.spotting #banner { top: 104px; }
body.compact #stage.spotting #banner { top: 88px; }
#banner [data-ico] { color: #f0b429; }
#floaters { position: absolute; left: 14px; bottom: 6px; width: 60px; height: 70%; pointer-events: none; z-index: 7; }
.fl { position: absolute; bottom: 0; left: 8px; font-size: 30px; animation: rise 3.2s cubic-bezier(.3,.6,.4,1) forwards; }
@keyframes rise { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 12% { transform: translate(0, -20px) scale(1); opacity: 1; }
  70% { opacity: 1; } 100% { transform: translate(var(--sx, 10px), -340px) scale(.95); opacity: 0; } }
#toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 8px); z-index: 8; max-width: calc(100% - 32px); padding: 9px 14px; border-radius: 8px;
  background: rgba(30,30,30,.95); color: #fff; font-size: 13.5px; text-align: center; pointer-events: none; opacity: 0; transition: opacity .25s, transform .25s; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* side panel */
#panel { flex: 0 0 320px; width: 320px; display: flex; flex-direction: column; background: #1f1f1f; border-left: 1px solid #2c2c2c; min-height: 0; z-index: 6; }
.pn-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #2c2c2c; }
.pn-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.pn-x { width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #ddd; cursor: pointer; display: grid; place-items: center; }
.pn-x:hover { background: #2e2e2e; }
.pn-body { flex: 1 1 auto; overflow-y: auto; padding: 6px 0 16px; -webkit-overflow-scrolling: touch; }
.pn-sec { padding: 10px 14px 4px; font-size: 11.5px; color: var(--muted); text-transform: none; }
.pp { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 14px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.pp:hover { background: #2a2a2a; }
.pp img, .pp .av { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; background: #3a3a3a; }
.pp .av { display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; background: #4a5568; }
.pp .who { flex: 1 1 auto; min-width: 0; }
.pp .who b { display: block; font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp .who small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp .st { display: flex; gap: 6px; color: var(--red); align-items: center; }
.pp .st .h { font-size: 15px; }
.pp .admit { height: 26px; padding: 0 10px; border-radius: 6px; border: 0; background: #0e72ed; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.about { padding: 14px 16px 24px; }
.about .ab-tile { aspect-ratio: 16 / 9; border-radius: 8px; background: #2a2a2a; display: grid; place-items: center; font-size: 22px; font-weight: 500; margin-bottom: 14px; }
.about h3 { margin: 0 0 2px; font-size: 18px; }
.about .role { margin: 0 0 10px; color: #d5d5d5; }
.about p { margin: 0 0 10px; color: #cfcfcf; }
.about .meta { display: grid; gap: 4px; margin: 0 0 16px; font-size: 13px; }
.about a { color: #6cb4ff; }
.about h4 { margin: 18px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.about ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about li b { display: block; font-weight: 600; font-size: 13px; }
.about li span { display: block; color: var(--muted); font-size: 12px; }
.about li em { display: block; font-style: normal; color: #c9c9c9; font-size: 12.5px; margin-top: 2px; }

/* control bar */
#controls { flex: 0 0 var(--ctl); height: var(--ctl); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background: var(--bar); position: relative; z-index: 9;
  padding-bottom: env(safe-area-inset-bottom); }
.c-l, .c-c, .c-r { display: flex; align-items: center; gap: 2px; }
.c-l, .c-r { flex: 1 1 0; }
.c-r { justify-content: flex-end; }
.cb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 74px; height: 54px; padding: 0 6px; border: 0; border-radius: 8px;
  background: transparent; color: #e6e6e6; cursor: pointer; font-size: 11.5px; }
.cb:hover { background: #2c2c2c; }
.cb-i { width: 26px; height: 24px; }
.cb.muted .cb-i, .cb.off .cb-i { color: var(--red); }
.cb.share .cb-i { color: #fff; background: var(--green); border-radius: 6px; width: 34px; height: 26px; }
.cb.share { color: #fff; }
.cb-dot { position: absolute; top: 6px; right: 22px; width: 9px; height: 9px; border-radius: 50%; background: #f0912c; box-shadow: 0 0 0 2px var(--bar); }
.cb.leave { min-width: 0; height: 32px; padding: 0 16px; border-radius: 7px; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; flex-direction: row; }
.cb.leave:hover { background: #c92f34; }
.cb.attn .cb-i { animation: nudge 1.6s ease-in-out 2; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,180,90,0); } 50% { box-shadow: 0 0 0 6px rgba(31,180,90,.35); } }

/* popovers */
.pop { position: fixed; z-index: 30; background: #262626; border: 1px solid #383838; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); padding: 8px; }
.rx-row { display: flex; gap: 2px; }
.rx-row button { width: 42px; height: 42px; border: 0; border-radius: 8px; background: transparent; font-size: 24px; cursor: pointer; line-height: 1; }
.rx-row button:hover { background: #333; }
.rx-hand { width: 100%; margin-top: 6px; height: 34px; border: 0; border-radius: 7px; background: #333; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; }
.rx-hand:hover { background: #3b3b3b; }
#view-pop button { display: flex; align-items: center; gap: 8px; width: 150px; height: 32px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; padding: 0 8px; font-size: 13px; }
#view-pop button:hover { background: #333; }
#view-pop .chk { width: 14px; }
#view-pop button[aria-checked="true"] .chk::before { content: "✓"; }
#leave-pop { display: grid; gap: 6px; width: 190px; }
.leave-go { height: 34px; border: 0; border-radius: 7px; background: var(--red); color: #fff; font-weight: 600; cursor: pointer; }
.leave-no { height: 32px; border: 0; border-radius: 7px; background: #333; color: #fff; cursor: pointer; }
#hand-pill { position: fixed; left: 12px; bottom: calc(var(--ctl) + 10px + env(safe-area-inset-bottom)); z-index: 20; }
#hand-pill button { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid #4a4a4a; background: #262626; color: #fff; cursor: pointer; font-size: 13px; }

/* share picker */
#picker { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 20px; }
.pk-win { width: min(980px, 100%); max-height: min(720px, 100%); display: flex; flex-direction: column; background: #232323; border: 1px solid #3a3a3a; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.pk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #333; }
.pk-head h2 { margin: 0; font-size: 14px; font-weight: 500; color: #e6e6e6; }
.pk-grid { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; padding: 16px; }
.pk { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; gap: 6px; text-align: center; }
.pk:hover, .pk:focus-visible { background: #2f2f2f; outline: 2px solid #0e72ed; }
.pk .pk-shot { aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: #111; border: 1px solid #3c3c3c; }
.pk .pk-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk span { font-size: 12px; color: #ddd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the screen share: the case study */
#share { position: fixed; inset: 0; z-index: 50; background: #0d0d0d; display: flex; flex-direction: column; }
#share::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--green); pointer-events: none; z-index: 2; }
.sh-bar { flex: 0 0 auto; align-self: center; margin: 10px 0 8px; display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 12px; border-radius: 10px; background: #1d3b27; border: 1px solid #2d6b41; position: relative; z-index: 3; }
.sh-dot { width: 9px; height: 9px; border-radius: 50%; background: #39d36f; box-shadow: 0 0 0 3px rgba(57,211,111,.25); }
.sh-t { font-size: 13px; color: #dff5e6; white-space: nowrap; }
.sh-stop { height: 30px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--red); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.sh-desk { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; padding: 0 16px 16px; }
.sh-win { width: min(1080px, 100%); display: flex; flex-direction: column; min-height: 0; background: #fbfbfa; color: #1b1b1b; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 50px rgba(0,0,0,.6); }
.sh-title { flex: 0 0 auto; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0 40px; font-size: 12.5px; color: #555; background: #ececea; border-bottom: 1px solid #dcdcda; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sh-doc { max-width: 920px; margin: 0 auto; padding: 28px 28px 56px; }
.sh-doc h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
.sh-client { margin: 4px 0 18px; color: #6a6a6a; font-size: 14px; }
#sh-work { --ab-fg: #1b1b1b; --ab-muted: #6a6a6a; --ab-accent: #0e72ed; --ab-chrome: 150px; font-size: 15.5px; line-height: 1.5; }
#sh-work .ab-heading { font-size: 18px; margin-top: 10px; }
#sh-work .ab-lede { font-size: 17px; color: #2a2a2a; }
#sh-work .ab-frame { border-radius: 6px; overflow: hidden; }

/* phones and narrow windows: the scrolling grid of a phone call */
body.compact { --top: 44px; --ctl: 60px; }
body.compact .leave-txt { display: inline-block; }
body.compact .c-r { display: none; }
body.compact .c-l, body.compact .c-c { flex: 0 0 auto; gap: 0; }
body.compact #controls { justify-content: space-around; padding: 0 2px; padding-bottom: env(safe-area-inset-bottom); height: calc(var(--ctl) + env(safe-area-inset-bottom)); flex-basis: calc(var(--ctl) + env(safe-area-inset-bottom)); }
body.compact .cb { min-width: 62px; height: 52px; font-size: 10.5px; padding: 0 2px; }
body.compact .cb-dot { right: 14px; }
body.compact .top-c { display: none; }
body.compact #wait-band { display: block; padding: 0 8px; background: var(--stage); }
body.compact #wait-band .wait { margin: 6px 0 2px; }
body.compact .wait .w-t { white-space: normal; font-size: 12.5px; line-height: 1.25; }
body.compact .page { padding: 6px 6px; }
body.compact .page.p1 { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); grid-auto-rows: var(--th, 140px); align-content: start; justify-content: stretch; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
body.compact .page.p2 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); align-content: stretch; justify-content: stretch; }
body.compact .pager, body.compact .pg-num { display: none; }
body.compact #dots { display: flex; justify-content: center; gap: 10px; flex: 0 0 22px; align-items: center; background: var(--stage); }
#dots button { width: 22px; height: 22px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; cursor: pointer; }
#dots button i { width: 7px; height: 7px; border-radius: 50%; background: #5a5a5a; }
#dots button[aria-current="true"] i { background: #fff; }
body.compact #panel { position: fixed; inset: 0; width: auto; z-index: 35; border: 0; }
body.compact .strip .tile { width: 104px; height: 66px; }
body.compact .spot-cap { flex-wrap: wrap; }
body.compact .sh-desk { padding: 0 6px 6px; }
body.compact .sh-doc { padding: 20px 14px 48px; }
body.compact .sh-doc h1 { font-size: 24px; }
body.compact #sh-work { --ab-chrome: 140px; font-size: 15px; }
body.compact .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
body.compact #picker { padding: 0; }
body.compact .pk-win { max-height: 100%; height: 100%; border-radius: 0; }
body.compact #floaters { bottom: 0; }
body.compact .tile .label { font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .cam img { animation: none; }
  #track { transition: none; }
}
