/* Chapter 10 · Digital (content tab). Templates are drawn at their true aspect ratio and sized with
   container query units (cqw), so one template reads the same in a plate, a phone or a laptop.
   Every class here starts with dg-. */

/* ─── safe-area toggle bar ─────────────────────────────────────────────── */
.dg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 20px; }
.dg-bar p { margin: 0; max-width: 620px; font-size: 14px; line-height: 1.55; color: var(--bp-grey); }
.dg-gbtn { gap: 10px; }
.dg-gbtn i { position: relative; width: 26px; height: 15px; border-radius: 99px; background: rgb(255 255 255 / .16); transition: background .2s; }
.dg-gbtn i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--bp-white); transition: transform .2s var(--bb-ease); }
.dg-gbtn[aria-pressed="true"] i { background: var(--bp-blue); }
.dg-gbtn[aria-pressed="true"] i::after { transform: translateX(11px); }

/* ─── template frame ───────────────────────────────────────────────────── */
.dg-fit { position: relative; width: var(--fw, 84%); }
.dg-fit.is-h { width: auto; height: var(--fh, 86%); aspect-ratio: var(--r); }
.dg-t { position: relative; width: 100%; aspect-ratio: var(--r, 1); overflow: hidden; container-type: inline-size; background: #000; color: var(--bp-white);
  font-family: var(--sans); text-align: left; isolation: isolate; }
.dg-fit.is-h .dg-t { height: 100%; }
.dg-shadow { box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 30px 60px -28px rgb(0 0 0 / .95), 0 10px 20px -12px rgb(0 0 0 / .8); }
.dg-t.is-light { background: var(--bp-white); color: var(--bp-light-ink); }
.dg-t img.dg-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-scrim { position: absolute; inset: 0; pointer-events: none; }
.dg-grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* type inside templates (all cqw so it scales with the template) */
.dg-abs { position: absolute; }
.dg-wm { display: block; width: auto; height: 4cqw; color: inherit; overflow: visible; }
.dg-mk { display: block; width: 6cqw; height: 6cqw; color: inherit; overflow: visible; }
.dg-h { margin: 0; font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.dg-h .q { color: var(--bp-grey); }
.dg-t.is-light .dg-h .q { color: #6e6e73; }
.dg-lab { margin: 0; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--bp-grey); }
.dg-t.is-light .dg-lab { color: #6e6e73; }
.dg-txt { margin: 0; color: var(--bp-grey); line-height: 1.45; }
.dg-url { font-family: var(--mono); color: var(--bp-grey-quiet); letter-spacing: .02em; }
.dg-pill { display: inline-flex; align-items: center; gap: .5em; border-radius: 999px; background: var(--bp-white); color: #000; font-weight: 600; white-space: nowrap; }
.dg-pill .dg-mk { width: 1.1em; height: 1.1em; }
.dg-chip { display: inline-flex; align-items: center; gap: .45em; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); background: rgb(0 0 0 / .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--bp-white); white-space: nowrap; }
.dg-chip i { width: .55em; height: .55em; border-radius: 50%; background: #30d158; box-shadow: 0 0 .6em rgb(48 209 88 / .8); }
.dg-chip i.is-warn { background: #ffd60a; box-shadow: 0 0 .6em rgb(255 214 10 / .7); }
.dg-hair { height: 1px; background: rgb(255 255 255 / .14); }

/* ─── supergraphic slot: BB.super fills it, full-bleed, with clear zones over the type ───
   Without BB.super the slot stays empty (black). Light never comes from the slot as a blob: the
   horizon (.dg-hz) rises from one edge, violet-led, the same recipe as --bp-glow. */
.dg-sg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dg-sg > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dg-t > .dg-abs, .dg-t > .dg-h, .dg-t > .dg-lab { z-index: 2; }
.dg-hz { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(0deg, rgb(139 123 255 / .3) 0%, rgb(118 140 255 / .12) 24%, rgb(0 0 0 / 0) 52%); }
.dg-hz.is-soft { background: linear-gradient(0deg, rgb(139 123 255 / .18) 0%, rgb(118 140 255 / .06) 26%, rgb(0 0 0 / 0) 50%); }
.dg-hz.is-top { background: linear-gradient(180deg, rgb(139 123 255 / .22) 0%, rgb(118 140 255 / .08) 24%, rgb(0 0 0 / 0) 50%); }
.dg-hz::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bp-edge); opacity: .7; }
.dg-hz.is-top::after { top: 0; bottom: auto; }
.dg-hz.no-line::after { display: none; }
.dg-fade-x { -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 17%, transparent 83%, #000 100%); mask-image: linear-gradient(90deg, #000 0, transparent 17%, transparent 83%, #000 100%); }

/* ─── guides (safe areas), shown by the toggle ─────────────────────────── */
.dg-g { position: absolute; z-index: 6; display: none; pointer-events: none; border: 1px dashed rgb(79 179 255 / .9); background: rgb(79 179 255 / .07); }
.dg-g.is-ui { border-color: rgb(255 122 198 / .85); background: repeating-linear-gradient(135deg, rgb(255 122 198 / .14) 0 6px, transparent 6px 12px); }
.dg-g span { position: absolute; top: 0; left: 0; padding: .25em .55em; background: var(--bp-blue); color: #000; font: 600 max(8px, 1.6cqw) / 1.2 var(--mono); letter-spacing: .04em; white-space: nowrap; }
.dg-g.is-ui span { background: var(--bp-pink); }
.dg-g.is-br span { top: auto; left: auto; bottom: 0; right: 0; }
.dg-g.is-circle { border-radius: 50%; }
body.dg-guides .dg-g { display: block; }

/* ─── phones ───────────────────────────────────────────────────────────── */
.dg-desk { display: flex; justify-content: center; align-items: center; gap: 6%; width: 100%; height: 100%; padding: 4% 3%; box-sizing: border-box; perspective: 1600px; }
.dg-phone { position: relative; flex: 0 0 auto; height: 92%; aspect-ratio: 9 / 19.5; padding: 1.1%; border-radius: 14% / 6.5%; background: linear-gradient(145deg, #2c2c30, #0c0c0e 40%, #1a1a1d);
  box-shadow: inset 0 0 0 1px #45454a, inset 0 0 0 3px #0a0a0b, 0 50px 80px -40px #000, 0 20px 30px -18px rgb(0 0 0 / .9); }
.dg-phone::before { content: ""; position: absolute; left: -1.4%; top: 22%; width: 1.4%; height: 8%; border-radius: 2px 0 0 2px; background: #2a2a2e; box-shadow: 0 140% 0 #2a2a2e; }
.dg-screen { position: relative; height: 100%; overflow: hidden; border-radius: 12.6% / 5.9%; background: #000; color: var(--bp-white); font-family: var(--sans); }
.dg-island { position: absolute; z-index: 9; left: 50%; top: 1.6%; width: 31%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.dg-tilt-l { transform: rotateY(14deg) rotateZ(-1.5deg); }
.dg-tilt-r { transform: rotateY(-14deg) rotateZ(1.5deg); }
.dg-scroll { position: absolute; inset: 0; overflow: hidden; }
.dg-status { display: flex; justify-content: space-between; padding: 9% 9% 2%; font-size: 10px; font-weight: 600; }
.dg-feedtop { display: flex; justify-content: space-between; align-items: center; padding: 2% 5% 3%; border-bottom: .5px solid var(--bp-line); font-size: 12.5px; font-weight: 650; }
.dg-ph-head { display: flex; align-items: center; gap: 7px; padding: 7px 9px; }
.dg-av { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); color: var(--bp-white); }
.dg-av svg { width: 58%; height: 58%; }
.dg-ph-head b { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.2; }
.dg-ph-head small { display: block; font-size: 9px; color: var(--bp-grey-quiet); line-height: 1.2; }
.dg-icons { display: flex; gap: 11px; padding: 7px 9px 3px; color: var(--bp-white); }
.dg-icons svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dg-icons svg:last-child { margin-left: auto; }
.dg-cap-txt { margin: 2px 9px 10px; font-size: 9.5px; line-height: 1.45; color: var(--bp-grey); }
.dg-cap-txt b { color: var(--bp-white); font-weight: 600; }
.dg-story-ui { position: absolute; left: 4%; right: 4%; top: 7.5%; z-index: 3; display: flex; gap: 3px; }
.dg-story-ui span { flex: 1; height: 2px; border-radius: 2px; background: rgb(255 255 255 / .4); }
.dg-story-ui span:first-child { background: #fff; }
.dg-story-who { position: absolute; z-index: 3; left: 4%; top: 9.6%; display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; }
.dg-story-who small { font-weight: 400; color: rgb(255 255 255 / .7); }
.dg-story-reply { position: absolute; z-index: 3; left: 4%; right: 4%; bottom: 3.5%; height: 5%; display: flex; align-items: center; padding: 0 5%; border-radius: 99px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55); font-size: 10px; color: rgb(255 255 255 / .85); }

/* ─── statement / release / game posts ─────────────────────────────────── */
.dg-bul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.9cqw; }
.dg-bul li { position: relative; padding-left: 4.2cqw; font-size: 3.7cqw; line-height: 1.3; color: var(--bp-white); }
.dg-bul li::before { content: ""; position: absolute; left: 0; top: .48em; width: 1.7cqw; height: 1.7cqw; border-radius: 50%; box-shadow: inset 0 0 0 .35cqw var(--bp-grey); }
.dg-bul li span { color: var(--bp-grey); }
.dg-rows { display: grid; grid-template-columns: auto 1fr; gap: 1.4cqw 4cqw; margin: 0; font-size: 3cqw; }
.dg-rows dt { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--bp-grey-quiet); }
.dg-rows dd { margin: 0; color: var(--bp-white); font-weight: 500; }

/* carousel */
.dg-car { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; width: 92%; }
.dg-car .dg-t + .dg-t { box-shadow: -1px 0 0 rgb(255 255 255 / .06); }
.dg-dots { display: flex; gap: 1.4cqw; }
.dg-dots i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: rgb(255 255 255 / .25); }
.dg-dots i.on { background: var(--bp-white); }
.dg-flow { display: grid; gap: 2.4cqw; }
.dg-flow > div { display: flex; align-items: center; justify-content: space-between; padding: 3.2cqw 4cqw; border-radius: 3cqw; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); font-size: 3.6cqw; }
.dg-flow > div span { font-family: var(--mono); font-size: 2.6cqw; text-transform: uppercase; letter-spacing: .06em; color: var(--bp-grey-quiet); }
.dg-flow > div.is-lit { box-shadow: inset 0 0 0 1px rgb(139 123 255 / .55), 0 0 6cqw -1cqw rgb(139 123 255 / .45); background: rgb(139 123 255 / .08); }
.dg-flow > b { justify-self: center; width: 1px; height: 4cqw; background: linear-gradient(var(--bp-grey-quiet), transparent); }

/* ─── X / YouTube / profile mocks ──────────────────────────────────────── */
.dg-card { width: 94%; max-width: 760px; overflow: hidden; border-radius: 16px; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 40px 70px -40px #000; font-family: var(--sans); color: var(--bp-white); text-align: left; }
.dg-xprof { position: relative; padding: 0 4% 4%; }
.dg-xav { width: 19%; aspect-ratio: 1; margin-top: -9.5%; border-radius: 50%; display: grid; place-items: center; background: #000; box-shadow: 0 0 0 4px #000, 0 0 0 5px rgb(255 255 255 / .14); position: relative; }
.dg-xav svg { width: 54%; height: 54%; color: var(--bp-white); }
.dg-xbtn { position: absolute; right: 4%; top: 3%; height: 30px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--bp-white); color: #000; font-size: 12.5px; font-weight: 650; }
.dg-xname { margin: 10px 0 0; font-size: clamp(15px, 2.2vw, 19px); font-weight: 750; letter-spacing: -0.02em; }
.dg-xhandle { margin: 0; font-size: 13px; color: #71767b; }
.dg-xbio { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; }
.dg-xbio a { color: #1d9bf0; text-decoration: none; }
.dg-xmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: 12.5px; color: #71767b; }
.dg-post { display: flex; gap: 10px; padding: 14px 16px; }
.dg-post .dg-av { width: 38px; height: 38px; }
.dg-post-b { flex: 1; min-width: 0; }
.dg-post-h { font-size: 13.5px; } .dg-post-h b { font-weight: 700; } .dg-post-h span { color: #71767b; }
.dg-post-t { margin: 3px 0 10px; font-size: 13.5px; line-height: 1.45; }
.dg-xcard { position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 1px #2f3336; }
.dg-xcard img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.dg-xcard em { position: absolute; left: 10px; bottom: 10px; padding: 1px 6px; border-radius: 4px; background: rgb(0 0 0 / .7); font-style: normal; font-size: 11.5px; }
.dg-post-a { display: flex; justify-content: space-between; max-width: 340px; margin-top: 10px; color: #71767b; }
.dg-post-a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dg-from { margin-top: 4px; font-size: 11.5px; color: #71767b; }

.dg-avs { display: flex; align-items: center; justify-content: center; gap: 7%; width: 100%; }
.dg-av-sq { position: relative; width: 38%; aspect-ratio: 1; display: grid; place-items: center; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .14); }
.dg-av-sq svg { width: 52%; height: 52%; color: var(--bp-white); }
.dg-av-sq::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1px rgb(79 179 255 / .9); background: radial-gradient(circle, transparent 70.5%, rgb(0 0 0 / .55) 71%); }
.dg-av-sizes { display: grid; gap: 14px; justify-items: center; }
.dg-av-sizes div { display: flex; align-items: end; gap: 12px; }
.dg-av-c { display: grid; place-items: center; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .16); }
.dg-av-c svg { width: 54%; height: 54%; color: var(--bp-white); }
.dg-av-sizes span { font: 10.5px var(--mono); color: var(--bp-grey-quiet); }

/* YouTube */
.dg-yt-thumb { position: relative; }
.dg-yt-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dg-yt-meta { display: flex; gap: 10px; margin-top: 10px; }
.dg-yt-meta .dg-av { width: 30px; height: 30px; }
.dg-yt-meta b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--bp-white); }
.dg-yt-meta small { display: block; font-size: 12px; color: var(--bp-grey-quiet); margin-top: 2px; }
.dg-end-slot { position: absolute; border-radius: 1cqw; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); display: grid; place-items: center; font: 500 1.5cqw var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--bp-grey-quiet); }
.dg-end-slot.is-sub { border-radius: 50%; }

/* ─── GitHub ───────────────────────────────────────────────────────────── */
.dg-gh { width: 94%; max-width: 820px; overflow: hidden; border-radius: 12px; background: #0d1117; color: #e6edf3; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; text-align: left;
  box-shadow: 0 0 0 1px #30363d, 0 40px 70px -40px #000; }
.dg-gh-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #010409; border-bottom: 1px solid #30363d; font-size: 13px; }
.dg-gh-top svg.dg-gh-oct { width: 24px; height: 24px; fill: #e6edf3; }
.dg-gh-top b { font-weight: 600; }
.dg-gh-top span { color: #9198a1; }
.dg-gh-pill { margin-left: auto; display: inline-flex; gap: 6px; }
.dg-gh-pill i { font-style: normal; padding: 3px 9px; border-radius: 6px; box-shadow: inset 0 0 0 1px #3d444d; background: #212830; font-size: 11.5px; color: #e6edf3; white-space: nowrap; }
.dg-gh-file { margin: 16px; border-radius: 6px; box-shadow: inset 0 0 0 1px #30363d; overflow: hidden; }
.dg-gh-file header { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid #30363d; font-size: 12.5px; font-weight: 600; }
.dg-gh-file header svg { width: 14px; height: 14px; fill: #9198a1; }
.dg-gh-body { padding: 20px clamp(14px, 3vw, 28px) 24px; text-align: center; }
.dg-gh-body > p { margin: 14px auto 0; max-width: 560px; font-size: clamp(12px, 1.6vw, 14px); line-height: 1.55; }
.dg-gh-body > p b { font-weight: 600; }
.dg-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 14px; }
.dg-badge { display: inline-flex; height: 22px; font: 700 9px/22px Verdana, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.dg-badge span { padding: 0 7px; background: #1c1c1e; color: #fff; }
.dg-badge span + span { background: #000; }
.dg-gh-quote { margin: 16px 0 0; padding: 0 12px; border-left: 3px solid #3d444d; text-align: left; font-size: 12.5px; line-height: 1.55; color: #9198a1; }
.dg-gh-quote a { color: #4493f8; text-decoration: none; }

/* ─── Discord ──────────────────────────────────────────────────────────── */
.dg-dc { display: flex; width: 94%; max-width: 780px; overflow: hidden; border-radius: 12px; background: #313338; color: #dbdee1; font-family: "gg sans", var(--sans); text-align: left; box-shadow: 0 0 0 1px rgb(0 0 0 / .6), 0 40px 70px -40px #000; font-size: 13px; }
.dg-dc-rail { flex: 0 0 auto; width: 56px; padding: 10px 0; display: grid; align-content: start; justify-items: center; gap: 8px; background: #1e1f22; }
.dg-dc-rail span { width: 40px; height: 40px; border-radius: 50%; background: #313338; }
.dg-dc-rail span.on { position: relative; display: grid; place-items: center; border-radius: 30%; background: #000; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.dg-dc-rail span.on::before { content: ""; position: absolute; left: -8px; top: 8px; width: 4px; height: 24px; border-radius: 0 4px 4px 0; background: #fff; }
.dg-dc-rail span.on svg { width: 56%; height: 56%; color: #f5f5f7; }
.dg-dc-side { flex: 0 0 auto; width: 31%; min-width: 0; background: #2b2d31; }
.dg-dc-banner { position: relative; }
.dg-dc-side h5 { position: absolute; left: 10px; top: 8px; z-index: 2; margin: 0; font-size: 13px; font-weight: 650; color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / .8); }
.dg-dc-side ul { margin: 0; padding: 8px 6px; list-style: none; }
.dg-dc-side li { padding: 5px 8px; border-radius: 4px; color: #949ba4; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-dc-side li.on { background: #404249; color: #fff; }
.dg-dc-side li.cat { padding-top: 12px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.dg-dc-main { flex: 1; min-width: 0; }
.dg-dc-head { padding: 11px 14px; border-bottom: 1px solid #26272b; font-weight: 650; color: #f2f3f5; }
.dg-dc-head span { color: #80848e; font-weight: 400; }
.dg-dc-msg { display: flex; gap: 10px; padding: 14px; }
.dg-dc-msg .dg-av { width: 36px; height: 36px; }
.dg-dc-msg b { color: #f2f3f5; font-weight: 600; }
.dg-dc-tag { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 9.5px; font-weight: 700; vertical-align: 1px; }
.dg-dc-msg small { margin-left: 6px; color: #949ba4; font-size: 11px; }
.dg-dc-emb { margin-top: 6px; max-width: 420px; padding: 10px 14px 14px; border-radius: 4px; background: #2b2d31; border-left: 4px solid var(--bp-violet); }
.dg-dc-emb .site { font-size: 11.5px; color: #b5bac1; }
.dg-dc-emb .ti { display: block; margin-top: 4px; font-weight: 650; color: #00a8fc; text-decoration: none; }
.dg-dc-emb p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: #dbdee1; }
.dg-dc-emb img { display: block; width: 100%; margin-top: 10px; border-radius: 4px; }
.dg-dc-emb ul { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; line-height: 1.5; }
.dg-dc-react { display: flex; gap: 4px; margin-top: 6px; }
.dg-dc-react span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 6px; border-radius: 6px; background: #2b2d31; box-shadow: inset 0 0 0 1px #3f4147; }
.dg-dc-react svg { width: 16px; height: 16px; }
.dg-emo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 88%; }
.dg-emo figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.dg-emo svg { width: 100%; max-width: 92px; aspect-ratio: 1; }
.dg-emo figcaption { font: 10.5px var(--mono); color: var(--bp-grey-quiet); }
.dg-ico-row { display: flex; align-items: center; justify-content: center; gap: 8%; width: 100%; }
.dg-ico-big { width: 40%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden; position: relative; background: linear-gradient(0deg, rgb(139 123 255 / .34) 0%, rgb(118 140 255 / .1) 30%, rgb(0 0 0 / 0) 56%), #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 30px 50px -24px #000; }
.dg-ico-big svg { width: 54%; height: 54%; color: var(--bp-white); }

/* ─── email ────────────────────────────────────────────────────────────── */
.dg-sigwrap { width: 90%; max-width: 520px; padding: clamp(14px, 3.5vw, 24px); border-radius: 12px; background: #fff; color: #1d1d1f; text-align: left; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5), 0 0 0 1px rgb(0 0 0 / .06); box-sizing: border-box; overflow: hidden; }
.dg-sigwrap.is-wide { max-width: 640px; }
.dg-sigwrap > p.dg-sigoff { margin: 0 0 16px; font: 13.5px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; color: #424245; }
.dg-sigwrap img { max-width: 100%; }
.dg-sigtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.dg-sigtools span { font: 11px var(--mono); color: var(--bp-grey-quiet); }
.dg-mail { width: 96%; max-width: 760px; overflow: hidden; border-radius: 12px; background: #1c1c1f; text-align: left; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 50px 80px -40px #000; font-family: var(--sans); }
.dg-mail-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #262629; border-bottom: 1px solid rgb(255 255 255 / .08); }
.dg-mail-bar i { width: 11px; height: 11px; border-radius: 50%; background: #48484c; }
.dg-mail-bar i:nth-child(1) { background: #ff5f57; } .dg-mail-bar i:nth-child(2) { background: #febc2e; } .dg-mail-bar i:nth-child(3) { background: #28c840; }
.dg-mail-hd { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgb(255 255 255 / .08); font-size: 12.5px; color: var(--bp-grey); }
.dg-mail-hd .dg-av { grid-row: span 2; width: 34px; height: 34px; }
.dg-mail-hd b { color: var(--bp-white); font-weight: 600; font-size: 13.5px; }
.dg-mail-hd time { grid-row: span 2; font-size: 11.5px; color: var(--bp-grey-quiet); }
.dg-mail-sub { padding: 12px 18px 0; font-size: 16px; font-weight: 650; letter-spacing: -0.015em; color: var(--bp-white); }
.dg-mail-body { padding: clamp(10px, 3vw, 26px) 0; background: #101012; }
.dg-nl { max-width: 600px; margin: 0 auto; background: #000; color: var(--bp-white); box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }
.dg-nl-in { padding: clamp(18px, 4.5vw, 36px); }
.dg-nl h3 { margin: 0; font-size: clamp(21px, 3.6vw, 30px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.dg-nl h3 .q { color: var(--bp-grey); }
.dg-nl p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--bp-grey); }
.dg-nl ul { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / .1); }
.dg-nl li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / .1); font-size: 14px; line-height: 1.5; color: var(--bp-white); }
.dg-nl li span { font: 11px/1.9 var(--mono); color: var(--bp-grey-quiet); }
.dg-nl li small { display: block; color: var(--bp-grey); font-size: 13px; }
.dg-nl a.dg-nl-btn, .dg-nl-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin-top: 22px; padding: 0 20px; border-radius: 999px; background: var(--bp-white); color: #000; font-size: 14px; font-weight: 600; text-decoration: none; }
.dg-nl-foot { padding: 18px clamp(18px, 4.5vw, 36px) 26px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 11.5px; line-height: 1.6; color: var(--bp-grey-quiet); }
.dg-nl-foot a { color: var(--bp-grey); }

/* ─── link previews ────────────────────────────────────────────────────── */
.dg-chat { width: 92%; max-width: 380px; overflow: hidden; border-radius: 18px; text-align: left; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 40px 70px -40px #000; font-size: 12.5px; }
.dg-chat-in { display: grid; gap: 8px; padding: 14px; }
.dg-chat-hd { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 600; }
.dg-chat-hd span.dg-av { width: 26px; height: 26px; background: #3a3a3c; font-size: 10px; font-weight: 600; color: #fff; box-shadow: none; }
.dg-chat-in > .msg { justify-self: start; max-width: 78%; padding: 7px 11px; border-radius: 16px; line-height: 1.4; }
/* iMessage */
.dg-im { background: #000; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
.dg-im .dg-chat-hd { justify-content: center; flex-direction: column; gap: 3px; font-size: 10.5px; font-weight: 400; color: #8e8e93; border-bottom: .5px solid #2c2c2e; }
.dg-im .dg-chat-hd .dg-av { width: 34px; height: 34px; font-size: 12px; }
.dg-im .msg { background: #26252a; }
.dg-im-link { justify-self: end; width: 80%; overflow: hidden; border-radius: 18px; background: #26252a; }
.dg-im-link img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.dg-im-link div { padding: 8px 12px 10px; }
.dg-im-link b { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; }
.dg-im-link span { font-size: 11px; color: #8e8e93; }
.dg-im .deliv { justify-self: end; font-size: 10px; color: #8e8e93; margin-top: -4px; }
/* WhatsApp */
.dg-wa { background: #0b141a; color: #e9edef; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
.dg-wa .dg-chat-hd { background: #202c33; }
.dg-wa .dg-chat-in { background: #0b141a radial-gradient(rgb(255 255 255 / .03) 1px, transparent 1px) 0 0 / 14px 14px; }
.dg-wa .msg { background: #202c33; border-radius: 8px; }
.dg-wa-out { justify-self: end; width: 84%; padding: 3px 3px 6px; border-radius: 8px; background: #005c4b; }
.dg-wa-prev { overflow: hidden; border-radius: 6px; background: rgb(0 0 0 / .22); }
.dg-wa-prev img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.dg-wa-prev div { padding: 6px 9px 8px; }
.dg-wa-prev b { display: block; font-size: 12px; font-weight: 600; }
.dg-wa-prev p { margin: 2px 0 0; font-size: 11px; line-height: 1.35; color: rgb(233 237 239 / .7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dg-wa-prev span { display: block; margin-top: 3px; font-size: 10.5px; color: rgb(233 237 239 / .55); }
.dg-wa-out a { display: block; padding: 6px 6px 0; color: #53bdeb; font-size: 12px; text-decoration: none; }
.dg-wa-out small { display: block; padding-right: 6px; text-align: right; font-size: 9.5px; color: rgb(233 237 239 / .6); }
/* Slack */
.dg-sl { background: #1a1d21; color: #d1d2d3; font-family: Lato, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; border-radius: 10px; }
.dg-sl .dg-chat-hd { border-bottom: 1px solid #35373b; color: #fff; }
.dg-sl-msg { display: flex; gap: 8px; }
.dg-sl-msg .sq { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 6px; background: #4a4d52; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.dg-sl-msg b { color: #fff; } .dg-sl-msg small { color: #ababad; margin-left: 4px; font-size: 10.5px; }
.dg-sl-msg a { color: #1d9bd1; text-decoration: none; }
.dg-sl-un { margin-top: 6px; padding-left: 10px; border-left: 4px solid #35373b; }
.dg-sl-un .site { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; font-size: 12px; }
.dg-sl-un .site img { width: 16px; height: 16px; border-radius: 3px; }
.dg-sl-un .ti { display: block; margin-top: 3px; font-weight: 700; color: #1d9bd1; }
.dg-sl-un p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; }
.dg-sl-un img.big { display: block; width: 100%; max-width: 300px; margin-top: 8px; border-radius: 6px; aspect-ratio: 1200 / 630; object-fit: cover; }
/* Discord (link preview reuses .dg-dc-emb) and X (reuses .dg-xcard) */
.dg-dcl { background: #313338; color: #dbdee1; font-family: "gg sans", var(--sans); border-radius: 10px; }
.dg-dcl .dg-dc-msg { padding: 14px; }
.dg-dcl a.lnk { color: #00a8fc; text-decoration: none; }
.dg-xl { background: #000; color: #e7e9ea; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.dg-xl .dg-post { padding: 14px; }
.dg-og-meter { display: grid; gap: 8px; margin: 0 0 16px; }
.dg-og-meter div { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; font-size: 13px; color: var(--bp-grey); }
.dg-og-meter b { color: var(--bp-white); font-weight: 500; }
.dg-og-meter meter { width: 100%; height: 8px; }
.dg-og-meter span { font: 11.5px var(--mono); color: var(--bp-grey-quiet); white-space: nowrap; }

/* ─── laptop + video ───────────────────────────────────────────────────── */
.dg-laptop { width: 88%; display: grid; justify-items: center; }
.dg-lid { width: 84%; padding: 1.4% 1.4% 2.2%; border-radius: 14px 14px 4px 4px; background: linear-gradient(180deg, #2b2b2f, #121214); box-shadow: inset 0 0 0 1px #4a4a4f, 0 30px 60px -30px #000; }
.dg-display { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #000; }
.dg-base { width: 100%; height: 0; padding-bottom: 2.6%; border-radius: 0 0 14px 14px / 0 0 100% 100%; background: linear-gradient(180deg, #d4d4d8 0%, #8e8e93 30%, #3a3a3e 100%); position: relative; }
.dg-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 35%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #6e6e73; }
.dg-call { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 22%; gap: 1.6%; padding: 2.2% 2.2% 8%; background: #111; box-sizing: border-box; }
.dg-call-main { position: relative; overflow: hidden; border-radius: 6px; container-type: inline-size; }
.dg-call-side { display: grid; align-content: center; gap: 6px; }
.dg-call-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 90% at 50% 35%, #26262a, #121214); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); font: 600 clamp(7px, 1.1vw, 11px) var(--sans); color: var(--bp-grey); }
.dg-call-tile span, .dg-call-name { position: absolute; left: 5px; bottom: 4px; padding: 1px 5px; border-radius: 3px; background: rgb(0 0 0 / .55); font: 400 clamp(6px, .9vw, 9.5px) var(--sans); color: #fff; white-space: nowrap; }
.dg-call-ctl { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: flex; gap: 6px; }
.dg-call-ctl i { display: grid; place-items: center; width: clamp(14px, 2.4vw, 26px); aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / .14); color: #f5f5f7; }
.dg-call-ctl i svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dg-call-ctl i.is-end { background: #ff453a; }
.dg-call-ctl i.is-end svg { fill: currentColor; stroke: none; }
.dg-you { position: absolute; left: 50%; bottom: 0; width: 34%; height: 80%; transform: translateX(-50%); display: grid; justify-items: center; align-content: end; z-index: 3; }
.dg-you b { width: 44%; aspect-ratio: 1; margin-bottom: 4%; display: grid; place-items: center; border-radius: 50%; border: 1px dashed rgb(255 255 255 / .3); background: radial-gradient(closest-side, rgb(255 255 255 / .07), transparent); font: 500 1.5cqw var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--bp-grey); }
.dg-you i { width: 100%; height: 30%; border-radius: 999px 999px 0 0; border: 1px dashed rgb(255 255 255 / .2); border-bottom: 0; background: linear-gradient(180deg, rgb(255 255 255 / .05), transparent); }

/* stream overlay */
.dg-cam { position: absolute; border-radius: 1.4cqw; overflow: hidden; background: radial-gradient(80% 80% at 50% 30%, #2a2a2e, #0b0b0d); box-shadow: 0 0 0 .25cqw rgb(255 255 255 / .9), 0 1cqw 3cqw rgb(0 0 0 / .6); }
.dg-cam::after { content: "Webcam 16:9"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 1.3cqw var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--bp-grey-quiet); }
.dg-l3 { position: absolute; display: flex; align-items: stretch; overflow: hidden; border-radius: 1cqw; background: rgb(0 0 0 / .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.dg-l3 > i { flex: 0 0 auto; width: .4cqw; background: linear-gradient(180deg, var(--bp-violet), var(--bp-blue)); }
.dg-l3 > div { padding: 1.1cqw 2cqw 1.2cqw 1.6cqw; }
.dg-l3 b { display: block; font-size: 2.1cqw; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.dg-l3 span { display: block; margin-top: .3cqw; font: 500 1.15cqw var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--bp-grey); }
.dg-badge-live { position: absolute; display: inline-flex; align-items: center; gap: .8cqw; padding: .7cqw 1.4cqw .7cqw 1cqw; border-radius: 99px; background: rgb(0 0 0 / .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); font-size: 1.35cqw; font-weight: 600; white-space: nowrap; }
.dg-badge-live .dg-mk { width: 2cqw; height: 2cqw; }
.dg-badge-live em { font-style: normal; color: var(--bp-grey); font-weight: 500; }

/* lower-third spec */
.dg-dim { position: absolute; z-index: 5; font: 600 max(8px, 1.25cqw) var(--mono); color: var(--bp-blue); white-space: nowrap; }
.dg-dim.h { height: 0; border-top: 1px solid var(--bp-blue); }
.dg-dim.v { width: 0; border-left: 1px solid var(--bp-blue); }
.dg-dim.h::before, .dg-dim.h::after { content: ""; position: absolute; top: -4px; width: 1px; height: 7px; background: var(--bp-blue); }
.dg-dim.h::before { left: 0; } .dg-dim.h::after { right: 0; }
.dg-dim.v::before, .dg-dim.v::after { content: ""; position: absolute; left: -4px; width: 7px; height: 1px; background: var(--bp-blue); }
.dg-dim.v::before { top: 0; } .dg-dim.v::after { bottom: 0; }
.dg-dim span { position: absolute; padding: 0 .4em; background: #000; }
.dg-dim.h span { left: 50%; top: 0; transform: translate(-50%, -50%); }
.dg-dim.v span { top: 50%; left: 0; transform: translate(-50%, -50%); }

@media (max-width: 600px) {
  .dg-yt-row { grid-template-columns: minmax(0, 1fr); }
  .dg-dc-side { display: none; }
  .dg-desk { gap: 3%; }
  .dg-og-meter div { grid-template-columns: 90px 1fr; }
  .dg-og-meter span { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .dg-car { width: 96%; }
}
.dg-gh-top b { color: #e6edf3; }
.dg-t.is-fill { height: 100%; aspect-ratio: auto; }

/* ─── refinements (fix pass) ───────────────────────────────────────────── */
/* phone tab bar: closes the feed so no half post peeks out under the first one */
.dg-tabbar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; height: 9%; padding-bottom: 2.4%;
  box-sizing: border-box; background: rgb(0 0 0 / .94); border-top: .5px solid var(--bp-line); color: var(--bp-white); }
.dg-tabbar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* reels cover: Setup Assistant window cropped from the press image, as a card above the title */
.dg-reel-shot { aspect-ratio: 545 / 300; overflow: hidden; border-radius: 2.2cqw; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 4cqw 8cqw -3cqw #000; background: #161618; }
.dg-reel-shot img { display: block; width: 293.6%; max-width: none; margin: -2.4% 0 0 -149.5%; }
/* OG clones inside chat and post mockups */
.dg-ogc .dg-g { display: none !important; }
.dg-xcard .dg-ogc, .dg-im-link .dg-ogc, .dg-wa-prev .dg-ogc { display: block; }
.dg-dc-img { margin-top: 10px; border-radius: 4px; overflow: hidden; }
.dg-sl-un .big { max-width: 300px; margin-top: 8px; border-radius: 6px; overflow: hidden; }
.dg-wa-prev span { margin-top: 5px; }
/* stream placeholder scene */
.dg-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* lower-third spec */
.dg-l3wrap { display: flex; align-items: stretch; gap: 1.6cqw; }
.dg-dim.dg-dim-in { position: relative; height: auto; }
.dg-dim.dg-dim-in > span { left: 1.2cqw; transform: translateY(-50%); padding: 0; background: none; }
.dg-specs { display: grid; gap: .9cqw; padding-left: 1.6cqw; border-left: 1px solid rgb(79 179 255 / .5); }
.dg-specs .dg-lab { font-size: 1.3cqw; color: var(--bp-blue); }

@media (max-width: 600px) {
  .dg-feed-stage { --ar: 1 / 1 !important; }
  .dg-feed-stage .dg-desk { gap: 4%; padding: 4% 2%; perspective: none; }
  .dg-feed-stage .dg-tilt-l, .dg-feed-stage .dg-tilt-r { transform: none; }
  .dg-emo-stage { --ar: auto !important; padding: 24px 0; }
  .dg-emo { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
  .dg-emo figcaption { font-size: 9px; letter-spacing: -.02em; }
  .dg-gh-pill i:not(:first-child) { display: none; }
  .dg-gh-top { flex-wrap: wrap; }
  .dg-dc-emb .dg-lab { display: none; }
}
/* chat mockups style their own spans, paragraphs and divs; keep those rules off the OG clone */
.dg-ogc .dg-t div { padding: 0; }
.dg-ogc .dg-t p { margin: 0; }
.dg-ogc .dg-t .dg-h .q { display: inline; margin: 0; font-size: inherit; color: var(--bp-grey); }
.dg-ogc .dg-t p { display: block; overflow: visible; -webkit-line-clamp: unset; color: var(--bp-white); }
.dg-ogc .dg-t p.dg-url { color: var(--bp-grey-quiet); }
