/* Levers 1 to 4 (builder B): every selector starts with .ob (scene class on the layer) or an ob- class.
 * Compact = (max-width: 959px), (max-height: 599px); phone = (max-width: 759px) and (orientation: portrait). */

/* ---------- shared: beat copy in one cell, labels over 3D ---------- */
.ob .ob-cell { display: grid; }
.ob .ob-cell > * { grid-area: 1 / 1; align-self: end; display: grid; gap: 10px; align-content: end; }
.ob .ob-beat .rm-note + .rm-src--line { margin-top: -4px; }
.ob.rm-full .rm-side { max-width: min(24em, 38vw); }
.ob .rm-stat--sm .rm-stat__v { font-size: clamp(32px, 3.2vw, 52px); }
.ob .ob-lab { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 6px 9px; border-radius: 6px; background: rgb(6 6 8 / .78); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
  text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: rgb(255 255 255 / .92); transition: opacity .6s cubic-bezier(.2,.7,.2,1); }
.ob .ob-lab[data-show], .ob .ob-lab[data-hide] { transform: none; }
.ob .ob-lab__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.ob .ob-lab--orange { color: #FFC096; box-shadow: inset 0 0 0 1px rgb(255 127 50 / .45); }
.ob .ob-lab--rose { color: #F5CFC4; box-shadow: inset 0 0 0 1px rgb(225 181 168 / .4); }
.ob .ob-lab--plain { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; text-shadow: 0 1px 2px rgb(0 0 0 / .7), 0 0 14px rgb(0 0 0 / .6); }

@media (max-width: 959px), (max-height: 599px) {
  .ob.rm-full .rm-side { max-width: min(22em, 44vw); }
  .ob .ob-cell > * { gap: 8px; }
  .ob .rm-stat--sm .rm-stat__v { font-size: clamp(26px, 3.6vw, 36px); }
  .ob .ob-lab { padding: 4px 8px 5px 8px; gap: 7px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ob.rm-full .rm-side { max-width: 100%; }
  .ob .ob-lab { white-space: normal; max-width: calc(100vw - 24px); align-items: flex-start; }
  .ob .ob-lab__dot { margin-top: 5px; }
}

/* ---------- mocks: shared ---------- */
.ob .ob-mock { position: relative; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.ob .ob-mock > .rd-page { flex: 1; }
.ob .ob-ex { position: absolute; z-index: 4; top: 12px; right: 12px; }
.ob .ob-ex--static { position: static; justify-self: end; }
.ob .ob-ex--side { display: none; position: static; justify-self: start; }
.ob .ob-tbar { display: inline-block; height: 9px; vertical-align: middle; background: #E2E7EA; }

/* ---------- l1-how ---------- */
.ob-l1h .rd-page__body { grid-template-columns: minmax(0, 1fr) minmax(0, min(300px, 40%)); }
.ob-l1h .rd-page__side { display: grid; }
.ob-l1h .ob-ex, .ob-l2p .ob-ex, .ob-l3h .ob-ex { top: auto; bottom: 12px; }
.ob-l1h .rd-prof__bio { min-height: 3em; }
.ob-l1h .ob-l1h__tab { display: grid; }
.ob-l1h .ob-l1h__tab > * { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; }
.ob-l1h .ob-l1h__post { padding: 12px 0 0; box-shadow: inset 0 1px 0 var(--rd-line); }
.ob-l1h .ob-l1h__cm { padding-top: 12px; box-shadow: inset 0 1px 0 #DFE4E7; }
.ob-l1h .ob-pin { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #DFE4E7; }
.ob-l1h .ob-pin__ic { color: #576F76; display: grid; }
.ob-l1h .ob-pin__b { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.ob-l1h .ob-ba { justify-self: start; transition: opacity .6s, transform .7s, box-shadow .6s; }
.ob-l1h.ob-glow .ob-ba { box-shadow: 0 0 0 4px rgb(0 69 172 / .12), 0 0 22px rgb(0 69 172 / .35); }
@container (max-width: 380px) {
  .ob-l1h .rd-page__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .ob-l1h .rd-page__side { grid-row: 1; }
  .ob-l1h .rd-pcard { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .ob-l1h .rd-pcard > .rd-bars { display: none; }
  .ob-l1h .ob-pin { padding: 8px 10px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ob-l1h .ob-pin__ic { display: none; }
}

/* ---------- l2-proof ---------- */
.ob-l2p .ob-l2p__stage { position: relative; height: 100%; min-height: 0; }
.ob-l2p .ob-l2p__serp { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity 1s; }
.ob-l2p .ob-l2p__serp > .g-serp { position: absolute; inset: 0; transition: opacity .8s; }
.ob-l2p .ob-ghost { opacity: 0; }
.ob-l2p.ob-b2 .ob-l2p__serp { transform: translate(-3%, -2%) scale(.86); }
.ob-l2p.ob-b2 .ob-l2p__serp > .g-serp:not(.ob-ghost) { opacity: 0; }
.ob-l2p.ob-b2 .ob-ghost { opacity: .55; }
.ob-l2p .g-r { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.2,1); }
.ob-l2p .g-r.is-in { opacity: 1; transform: none; }
.ob-l2p .g-r__sub { background: linear-gradient(transparent 52%, rgb(255 127 50 / .42) 52%) no-repeat 0 0 / 0% 100%; transition: background-size .45s cubic-bezier(.2,.7,.2,1); }
.ob-l2p .g-r__sub.is-hi { background-size: 100% 100%; }
.ob-l2p .ob-chart { position: absolute; right: 0; bottom: 0; width: min(88%, 620px); height: min(78%, 440px); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 18px 22px 18px; border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px rgb(32 33 36 / .08), 0 40px 80px -36px rgb(32 33 36 / .45), inset 0 0 0 1px #DFE1E5; transform-origin: 100% 100%; }
.ob-l2p .ob-chart:not(.is-on) { transform: translateY(24px) scale(.97); }
.ob-l2p .ob-chart__tag { justify-self: start; }
.ob-l2p .ob-chart__plot { position: relative; min-height: 0; }
.ob-l2p .ob-chart__cols { position: absolute; inset: 0 0 0 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(5px, 1.1vw, 14px); align-items: end; }
.ob-l2p .ob-col { position: relative; height: 100%; display: flex; align-items: flex-end; }
.ob-l2p .ob-col i { display: block; width: 100%; height: calc(var(--h) * 100%); border-radius: 4px 4px 2px 2px; transform-origin: 50% 100%; transform: scaleY(0);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 70ms + 200ms);
  background: radial-gradient(circle, var(--dot) 2.1px, transparent 2.6px) 0 0 / 7px 7px; --dot: #FF7F32; }
.ob-l2p .ob-col.is-low i { --dot: #B9BCC2; }
.ob-l2p .ob-col.is-up i { box-shadow: 0 -10px 18px -10px rgb(255 127 50 / .7); }
.ob-l2p.ob-b2 .ob-col i { transform: none; }
.ob-l2p .ob-chart__line { position: absolute; left: 0; right: 0; bottom: calc(var(--line) * 100%); height: 0; border-top: 2px dashed #202124; z-index: 2; }
.ob-l2p .ob-chart__line span { position: absolute; left: 0; bottom: 6px; padding: 2px 8px; border-radius: 4px; background: #202124; color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- l2-how ---------- */
.ob-l2h .ob-l2h__stage { position: relative; height: 100%; min-height: 0; container-type: inline-size; }

.ob-l2h .ob-ads, .ob-l2h .ob-drafts { position: absolute; inset: 0; }
.ob-l2h .ob-ads { container-type: inline-size; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; color: #0F1A1C;
  box-shadow: 0 1px 2px rgb(15 26 28 / .06), 0 30px 60px -34px rgb(15 26 28 / .35), inset 0 0 0 1px #DFE4E7; }
.ob-l2h .ob-ads.is-on, .ob-l2h .ob-ads:not([data-hide]) { transform: none; }
.ob-l2h .ob-ads:not(.is-on) { transform: translateX(-40px); }
.ob-l2h .ob-drafts:not(.is-on) { transform: translateX(40px); }
.ob-l2h .ob-ads__top { flex: none; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px; box-shadow: inset 0 -1px 0 #DFE4E7; }
.ob-l2h .ob-ads__brand { width: 92px; } .ob-l2h .ob-ads__brand .rd-bar { height: 10px; background: #0F1A1C; opacity: .75; }
.ob-l2h .ob-ads__steps { margin-left: auto; display: flex; gap: 8px; }
.ob-l2h .ob-ads__steps i { width: 34px; height: 5px; border-radius: 3px; background: #E2E7EA; }
.ob-l2h .ob-ads__steps i.is-done, .ob-l2h .ob-ads__steps i.is-on { background: #0045AC; } .ob-l2h .ob-ads__steps i.is-on { opacity: .45; }
.ob-l2h .ob-ads__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }
.ob-l2h .ob-ads__rail { display: grid; align-content: start; gap: 6px; padding: 18px 14px; box-shadow: inset -1px 0 0 #DFE4E7; background: #F6F8F9; }
.ob-l2h .ob-ads__ri { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: center; height: 36px; padding: 0 10px; border-radius: 8px; }
.ob-l2h .ob-ads__ri i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C9D2D6; }
.ob-l2h .ob-ads__ri.is-on { background: #fff; box-shadow: inset 0 0 0 1px #DFE4E7; } .ob-l2h .ob-ads__ri.is-on i { background: #0045AC; box-shadow: none; }
.ob-l2h .ob-ads__main { min-width: 0; min-height: 0; display: grid; align-content: start; gap: 14px; padding: 22px clamp(16px, 3cqw, 32px); overflow: hidden; }
.ob-l2h .ob-ads__h { margin: 0; font-size: clamp(20px, 1.7vw, 26px); font-weight: 700; letter-spacing: -.01em; }
.ob-l2h .ob-ads__field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px #0045AC, 0 0 0 4px rgb(0 69 172 / .1); }
.ob-l2h .ob-ads__ic { color: #576F76; display: grid; }
.ob-l2h .ob-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 6px; border-radius: 999px; background: #E5EBEE; font-size: 15px; font-weight: 600; white-space: nowrap; min-width: 0; }
.ob-l2h .ob-chip__x { display: grid; color: #576F76; }
.ob-l2h .ob-ads__lbl { font-size: 14px; font-weight: 700; color: #576F76; padding-top: 4px; }
.ob-l2h .ob-ads__list { display: grid; gap: 8px; min-height: 0; overflow: hidden; }
.ob-l2h .ob-sug { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) 34px; gap: 12px; align-items: center; min-height: 50px; padding: 6px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px #DFE4E7; font-size: 16px; font-weight: 600; }
.ob-l2h .ob-sug--bar { grid-template-columns: 26px minmax(0, 1fr) 34px; }
.ob-l2h .ob-sug__dot { width: 26px; height: 26px; border-radius: 50%; background: #E2E7EA; }
.ob-l2h .ob-sug__n { white-space: nowrap; }
.ob-l2h .ob-sug__add { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0045AC; color: #fff; }
.ob-l2h .ob-sug--bar .ob-sug__add { background: #E5EBEE; color: #576F76; }
.ob-l2h.ob-sugs .ob-sug { opacity: 0; transform: translateY(12px); }
.ob-l2h.ob-sugs.ob-sugs-on .ob-sug { animation: ob-in .55s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(700ms + var(--i) * 420ms); }
@keyframes ob-in { to { opacity: 1; transform: none; } }
.ob-l2h .ob-drafts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.ob-l2h .ob-draft__top .rm-example { position: static; }
.ob-l2h .ob-draft { container-type: inline-size; display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; align-content: start; gap: 14px; min-height: 0; max-height: 100%; overflow: hidden; padding: 16px 18px; border-radius: 16px; background: #fff; color: #0F1A1C;
  box-shadow: 0 1px 2px rgb(15 26 28 / .06), 0 30px 60px -34px rgb(15 26 28 / .35), inset 0 0 0 1px #DFE4E7; }
.ob-l2h .ob-draft__top { display: flex; align-items: center; justify-content: space-between; color: #576F76; } .ob-l2h .ob-draft__top .rd-bar { height: 11px; background: #CFD7DB; }
.ob-l2h .ob-draft__x { display: grid; }
.ob-l2h .ob-draft__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ob-l2h .ob-draft__row .rm-example { position: static; flex: none; }
.ob-l2h .ob-draft__pick { min-width: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; border-radius: 999px; background: #E5EBEE; font-size: 15px; font-weight: 700; max-width: 100%; }
.ob-l2h .ob-draft__pick > span:nth-child(2) { white-space: nowrap; }
.ob-l2h .ob-draft__chev { display: grid; color: #576F76; }
.ob-l2h .ob-draft__tabs { display: flex; gap: 16px; padding-bottom: 8px; box-shadow: inset 0 -1px 0 #DFE4E7; } .ob-l2h .ob-draft__tabs .rd-bar { flex: none; width: 52px !important; }
.ob-l2h .ob-draft__tabs .rd-bar:first-child { background: #0F1A1C; opacity: .5; }
.ob-l2h .ob-draft__title { padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px #0F1A1C; font-size: clamp(17px, 1.45vw, 21px); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.ob-l2h .ob-draft__body { padding: 8px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px #DFE4E7; }
.ob-l2h .ob-draft__foot { display: flex; align-items: center; justify-content: space-between; color: #576F76; }
.ob-l2h .ob-draft__ic { display: grid; }
.ob-l2h .ob-draft__btn { display: grid; place-items: center; width: 64px; height: 36px; border-radius: 999px; background: #0045AC; color: #fff; }
.ob-l2h .ob-draft__btn span { display: grid; }
@container (max-width: 520px) { .ob-l2h .ob-ads__body { grid-template-columns: minmax(0, 1fr); } .ob-l2h .ob-ads__rail { display: none; } }

@media (max-width: 959px), (max-height: 599px) {
  .ob .ob-ex { top: 8px; right: 8px; }
  .ob-l1h .ob-ex, .ob-l2p .ob-ex, .ob-l3h .ob-ex { top: auto; bottom: 8px; }
  .ob-l2p .ob-chart { padding: 12px 14px; gap: 10px; }
  .ob-l2h .ob-ads__top { height: 44px; }
  .ob-l2h .ob-ads__main { gap: 10px; padding: 14px 16px; }
  .ob-l2h .ob-sug { min-height: 42px; font-size: 15px; }
  .ob-l2h .ob-draft { gap: 8px; padding: 10px 12px; }
  .ob-l2h .ob-draft__title { font-size: 16px; padding: 7px 10px; }
  .ob-l2h .ob-draft__pick { height: 32px; font-size: 14px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ob-l2h .ob-drafts { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ob-l2p .ob-chart { width: 100%; height: 72%; }
}

/* ---------- l3-how ---------- */
.ob-l3h .rd-page__body { grid-template-columns: minmax(0, 1fr) minmax(0, min(300px, 44%)); }
.ob-l3h .rd-page__side { display: grid; }
.ob-l3h .ob-mail { display: flex; gap: 10px; align-items: flex-start; color: var(--s-fg); }
.ob-l3h .ob-mail__i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #576F76; box-shadow: inset 0 0 0 1px #DFE4E7; margin-top: -2px; }
.ob-l3h .ob-l3h__head { display: flex; align-items: center; gap: 12px; }
.ob-l3h .ob-l3h__names { flex: 1; } .ob-l3h .ob-l3h__names .rd-bar:first-child { height: 12px; background: #CFD7DB; }
.ob-l3h .ob-l3h__tabs { align-items: center; }
.ob-l3h .ob-l3h__tab { flex: none; display: grid; place-items: center; width: 76px; height: 30px; border-radius: 999px; background: var(--rd-pill); color: var(--rd-fg); }
.ob-l3h .ob-l3h__tabs .rd-tab.is-on { background: transparent; box-shadow: inset 0 0 0 1px var(--rd-line); }
.ob-l3h .ob-strip { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #F6F8F9; }
.ob-l3h .ob-strip__days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.ob-l3h .ob-day { height: 18px; border-radius: 4px; background: #E2E7EA; position: relative; overflow: hidden; }
.ob-l3h .ob-day::after { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleY(1); transform-origin: 50% 100%; }
.ob-l3h .ob-day.is-a { --c: #66CDBF; } .ob-l3h .ob-day.is-b { --c: #FF7F32; }
.ob-l3h.ob-run .ob-day::after { transform: scaleY(0); animation: ob-day .35s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(600ms + var(--d) * 250ms); }
@keyframes ob-day { to { transform: scaleY(1); } }
.ob-l3h .ob-strip__cap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 16px; }
.ob-l3h .ob-cap { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.35; color: #0F1A1C; font-weight: 500; }
.ob-l3h .ob-cap::before { content: ""; position: absolute; left: 0; top: .35em; width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.ob-l3h .ob-cap--a { --c: #66CDBF; } .ob-l3h .ob-cap--b { --c: #FF7F32; }
.ob-l3h .ob-cap__src { grid-column: 1 / -1; padding-left: 16px; }
.ob-l3h .ob-l3h__rows { display: grid; gap: 4px; }
.ob-l3h.ob-run .ob-l3h__row { opacity: 0; animation: ob-in .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(900ms + var(--k) * 650ms); transform: translateY(10px); }
.ob-l3h .ob-l3h__card { gap: 8px; }
.ob-l3h .ob-l3h__k { font-size: clamp(28px, 2.4vw, 38px); }
.ob-l3h .ob-meter { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; min-height: 220px; height: clamp(220px, 36vh, 340px); padding: 14px 14px 14px 16px; border-radius: 16px; background: #F6F8F9; }
.ob-l3h .ob-meter__bar { position: relative; border-radius: 6px; box-shadow: inset 0 0 0 1px #DFE4E7; background: #fff; overflow: hidden; }
.ob-l3h .ob-meter__fill { position: absolute; left: 3px; right: 3px; bottom: 3px; height: calc((100% - 6px) * var(--v, 0)); background: radial-gradient(circle, #FF7F32 1.8px, transparent 2.3px) 0 100% / 6px 6px; transition: height .2s linear; }
.ob-l3h.ob-done .ob-meter__fill { transition: height 1s cubic-bezier(.2,.8,.2,1); }
.ob-l3h .ob-meter__band { position: absolute; left: 0; right: 0; bottom: calc(var(--a) * 100%); height: calc((var(--b) - var(--a)) * 100%); background: rgb(102 205 191 / .35); }
.ob-l3h .ob-meter__marks { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.ob-l3h .ob-mark { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 8px; align-items: start; }
.ob-l3h .ob-mark__dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 2px; background: #0F1A1C; }
.ob-l3h .ob-mark--a .ob-mark__dot { background: #66CDBF; }
.ob-l3h .ob-meter__tick { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 100%); height: 2px; background: #0F1A1C; }
.ob-l3h .ob-mark__t { display: grid; gap: 1px; font-size: 14px; line-height: 1.32; font-weight: 600; color: #0F1A1C; }
.ob-l3h .ob-mark__t .rm-src { font-weight: 500; }
@container (max-width: 600px) {
  .ob-l3h .rd-page__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; gap: 10px; }
  .ob-l3h .rd-page__side { grid-row: 1; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; gap: 10px; }
  .ob-l3h .ob-l3h__card { padding: 10px 14px; align-content: center; }
  .ob-l3h .ob-meter { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); padding: 10px 12px; }
  .ob-l3h .ob-meter__bar { display: none; }
  .ob-l3h .ob-meter__marks { justify-content: start; gap: 6px; }
  .ob-l3h .ob-strip__cap { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ob-l3h .ob-meter:not(:has(.ob-mark.is-on)) { display: none; }
  .ob-l3h .rd-page__side { grid-template-columns: auto; justify-content: start; }
  .ob-l3h .rd-page__side:has(.ob-mark.is-on) { grid-template-columns: auto minmax(0, 1fr); justify-content: stretch; }
}

/* ---------- l3-check ---------- */
.ob-l3c .rm--stage .rm-side, .ob-l4h .rm--stage .rm-side { grid-auto-flow: row; grid-auto-columns: minmax(0, 1fr); }
.ob-l3c .rm-side .rm-note, .ob-l4h .rm-side .rm-note, .ob-l3c .rm-side .rm-pit { max-width: 46em; }
.ob-l3c .ob-l3c__stage { position: relative; height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); }
.ob-l3c .ob-win { min-height: 0; height: 100%; }
.ob-l3c .ob-win .rd-page { border-radius: 0; box-shadow: none; }
.ob-l3c .ob-win--b .rd-page { background: #fff; }
.ob-l3c .ob-ex { top: auto; bottom: 10px; right: 10px; }
.ob-l3c .ob-login { width: 64px; height: 30px; border-radius: 999px; background: #D93900; opacity: .85; flex: none; }
.ob-l3c .ob-gap { position: relative; display: grid; place-items: center; min-height: 104px; margin: 2px 0 6px; border-radius: 12px; border: 2px dashed #C79586; background: rgb(225 181 168 / .14); animation: ob-pulse 2.2s ease-in-out infinite; }
.ob-l3c .ob-gap__l { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #E1B5A8; color: #6B3A2C; font-size: 15px; font-weight: 600; }
.ob-l3c .ob-gap__i { display: grid; }
@keyframes ob-pulse { 50% { background: rgb(225 181 168 / .32); border-color: #B77866; } }
@media (prefers-reduced-motion: reduce) { .ob-l3c .ob-gap { animation: none; } }
.ob-l3c .ob-win { transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .7s; }

/* ---------- l4-how ---------- */
.ob-l4h .ob-mock { overflow: hidden; border-radius: 12px; }
.ob-l4h .ob-ex { top: auto; bottom: 12px; right: 12px; }
.ob-l4h .ob-l4h__post .rd-post__t { font-size: clamp(19px, 1.6vw, 24px); }
.ob-l4h .ob-comp { border-radius: 20px; box-shadow: inset 0 0 0 1px #C9D2D6; transition: box-shadow .3s; }
.ob-l4h .ob-comp__closed { display: flex; align-items: center; height: 44px; padding: 0 18px; }
.ob-l4h .ob-comp__open { display: none; gap: 10px; padding: 12px 16px 10px; }
.ob-l4h .ob-comp.is-open { box-shadow: inset 0 0 0 1.5px #0F1A1C; }
.ob-l4h .ob-comp.is-open .ob-comp__closed { display: none; }
.ob-l4h .ob-comp.is-open .ob-comp__open { display: grid; }
.ob-l4h .ob-comp__who { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.ob-l4h .ob-comp__foot { display: flex; align-items: center; justify-content: space-between; color: #576F76; }
.ob-l4h .ob-comp__tools { display: flex; align-items: center; gap: 12px; width: 160px; } .ob-l4h .ob-comp__tools span { display: grid; }
.ob-l4h .ob-comp__btn { display: grid; place-items: center; width: 72px; height: 34px; border-radius: 999px; background: #0045AC; color: #fff; }
.ob-l4h .ob-comp__btn span { display: grid; }
.ob-l4h .ob-cmp { display: grid; gap: 6px; font-size: 16px; line-height: 1.45; color: #0F1A1C; }
.ob-l4h .ob-cmp__first { margin: 0; min-height: 1.45em; }
.ob-l4h .ob-cmp__rows { display: grid; gap: 4px; }
.ob-l4h .ob-cmp__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: 26px; opacity: 0; transition: opacity .3s; }
.ob-l4h .ob-cmp__row.is-in { opacity: 1; }
.ob-l4h .ob-cmp__row > span:first-child { font-weight: 700; }
.ob-l4h .ob-cmp__row--bar .rd-bar { height: 9px; flex: none; }
.ob-l4h .ob-cmp__row--bar .rd-bar:first-child { background: #CFD7DB; }
.ob-l4h .ob-pm { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; flex: none; }
.ob-l4h .ob-pm svg { width: 14px; height: 14px; }
.ob-l4h .ob-pm--p { background: #DDF7E5; color: #1E7A3E; }
.ob-l4h .ob-pm--m { background: #F6E3DD; color: #A0543F; }
.ob-l4h .ob-l4h__mine .ob-cmp__row { opacity: 1; }
.ob-l4h .ob-l4h__mine { display: none; }
.ob-l4h .ob-l4h__mine.is-posted { display: grid; animation: ob-in .6s cubic-bezier(.2,.7,.2,1) both; }
.ob-l4h.ob-short .ob-l4h__mine .ob-cmp__rows { display: none; }
.ob-l4h .ob-l4h__reply { opacity: 0; transform: translateY(8px); transition: opacity .5s .9s, transform .6s .9s; }
.ob-l4h .ob-l4h__mine.is-posted .ob-l4h__reply { opacity: 1; transform: none; }
.ob-l4h .ob-l4h__tree { display: grid; gap: 6px; }
.ob-l4h .ob-rule-dot { display: block; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #C9D2D6; }
.ob-l4h .ob-last { position: absolute; z-index: 3; top: 64px; right: 14px; width: min(300px, 32%); display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgb(15 26 28 / .1), 0 30px 60px -24px rgb(15 26 28 / .45), inset 0 0 0 1px #DFE4E7; }
.ob-l4h .ob-last:not(.is-on) { transform: translateX(40px); }
.ob-l4h .ob-last__h { display: flex; align-items: center; gap: 10px; font-size: 16px; padding-bottom: 4px; }
.ob-l4h .ob-last__row { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; background: #F6F8F9; }
.ob-l4h .ob-last__dot { width: 10px; height: 10px; border-radius: 50%; background: #C9D2D6; }
.ob-l4h .ob-last__row.is-me { grid-template-columns: 12px auto minmax(0, 1fr); background: rgb(255 127 50 / .12); box-shadow: inset 0 0 0 1.5px rgb(255 127 50 / .6); }
.ob-l4h .ob-last__row.is-me .ob-last__dot { background: #FF7F32; box-shadow: 0 0 8px #FF7F32; }
.ob-l4h .ob-last__name { font-size: 15px; font-weight: 700; color: #C2410C; }
.ob-l4h .ob-last__row .rd-bar { height: 8px; }

@media (max-width: 959px), (max-height: 599px) {
  .ob-l3h .ob-meter { height: auto; min-height: 0; }
  .ob-l3h .ob-strip { padding: 8px 10px; gap: 6px; }
  .ob-l3c .ob-gap { min-height: 70px; }
  .ob-l4h .ob-cmp { font-size: 14px; }
  .ob-l4h .ob-last { top: 52px; padding: 10px; gap: 6px; }
  .ob-l4h .ob-last__row { min-height: 30px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ob-l3c .ob-l3c__stage { gap: 8px; }
  .ob-l3c .br__bar { gap: 6px; padding: 0 8px; }
  .ob-l3c .br__dots { display: none; }
  .ob-l3c .rd-page__body { padding: 10px 10px 0; }
  .ob-l3c .ob-gap__l { white-space: normal; text-align: center; font-size: 14px; border-radius: 10px; flex-direction: column; gap: 2px; }
  .ob-l3c .ob-gap { min-height: 96px; padding: 8px; }
}

/* ---------- l2-why: the night market ---------- */
.ob-mkt .ob-ex3 { justify-self: start; }
.ob-mkt .ob-lab--sell { transition: opacity .8s, filter .8s; }
.ob-mkt.ob-b2 .ob-lab--sell { opacity: .5; filter: grayscale(1); }
.ob-mkt .ob-lab--spark { background: rgb(6 6 8 / .62); }

/* ---------- l3-why: the frosted pane ---------- */
.ob-pane .ob-ex3 { justify-self: start; }
.ob-pane .ob-knum { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- l4-why: the mill wheel ---------- */
.ob-mill .ob-mnum { display: inline-block; min-width: .7em; font-variant-numeric: tabular-nums; }

/* narrow pages: the last-comments panel joins the page flow instead of covering the sidebar */
@container (max-width: 720px) {
  .ob-l4h .ob-last { position: relative; top: auto; right: auto; width: auto; padding: 10px 12px; gap: 6px; box-shadow: inset 0 0 0 1px #DFE4E7; }
  .ob-l4h .ob-last:not(.is-on) { display: none; }
  .ob-l4h .ob-last__row { min-height: 30px; }
}
/* compact and phone: mocks drop Reddit's top bar to keep their rows whole */
@media (max-width: 959px), (max-height: 599px) {
  .ob-l1h .rd-top, .ob-l3h .rd-top, .ob-l3c .rd-top, .ob-l4h .rd-top { display: none; }
  .ob .rd-prof__banner[style*="none"] + .rd-prof__row { margin-top: 0; }
  .ob-l4h .ob-l4h__post .rd-post__t { font-size: 17px; }
  .ob-l2p .g-q { height: auto; min-height: 40px; padding: 6px 14px; }
  .ob-l2p .g-q__t { white-space: normal; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ob-l2p .g-top { gap: 10px; }
  .ob-l4h .ob-ex { top: 10px; bottom: auto; }
}

@container (max-width: 560px) { .ob-l2h .ob-drafts { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 959px), (max-height: 599px) {
  .ob-l1h .rd-prof__av { width: 44px !important; height: 44px !important; }
  .ob-l1h .rd-prof__row { padding-left: 4px; }
  .ob-l1h .rd-prof__name { font-size: 19px; }
  .ob-l1h .rd-prof__bio { min-height: 0; }
  .ob-l1h .rd-pcard { gap: 8px; padding: 10px 12px; }
  .ob-l3h .ob-l3h__k { font-size: 26px; }
  .ob-l3h .ob-l3h__card { padding: 8px 12px; gap: 4px; }
}
@media (max-width: 959px), (max-height: 599px) {
  .ob-l1h .ob-ex--side, .ob-l4h .ob-ex--side, .ob-l3c .ob-ex--side { display: inline-flex; }
  .ob-l1h .ob-ex--static, .ob-l4h .ob-mock > .ob-ex, .ob-l3c .ob-l3c__stage > .ob-ex { display: none; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ob-l1h .rd-prof { gap: 6px; }
  .ob-l1h .ob-l1h__cm { padding-top: 6px; }
  .ob-l1h .rd-page__body { gap: 10px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .ob-l1h .ob-pin { padding: 0; background: none; box-shadow: none; }
  .ob-l1h .rd-pcard { padding: 8px 10px; }
}
/* compact: l4-how puts its copy beside the thread so the thread keeps its height */
@media (max-width: 959px) and (min-width: 640px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) {
  .ob-l4h .rm--stage, .ob-l3c .rm--stage { grid-template-columns: minmax(0, .3fr) minmax(0, .7fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 20px; }
  .ob-l4h .rm--stage .rm-vis, .ob-l3c .rm--stage .rm-vis { grid-column: 2; grid-row: 2; }
  .ob-l4h .rm--stage .rm-side, .ob-l3c .rm--stage .rm-side { grid-column: 1; grid-row: 2; align-self: start; }
  .ob-l3c .ob-l3c__stage { gap: 12px; }
}
.ob-mkt .ob-legend { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 500; color: rgb(255 255 255 / .9); }
.ob-mkt .ob-legend__ask { flex: none; display: grid; place-items: center; width: 28px; height: 24px; border-radius: 9px; background: #fff; color: #111; font-weight: 700; font-size: 16px; box-shadow: 0 0 14px rgb(255 255 255 / .5); position: relative; }
.ob-mkt .ob-legend__ask::after { content: ""; position: absolute; left: 6px; bottom: -5px; border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; }

/* ---------- round 2: shared mock pieces ---------- */
.ob .ob-thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 7; background: linear-gradient(135deg, #CDBDEB, #8DD8F3 60%, #9CE7DD); }
.ob .ob-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgb(15 26 28 / .55) 1.6px, transparent 2.1px) 0 0 / 7px 7px;
  -webkit-mask: radial-gradient(ellipse 40% 60% at 32% 62%, #000 40%, transparent 72%), radial-gradient(ellipse 30% 45% at 72% 40%, #000 35%, transparent 70%);
  mask: radial-gradient(ellipse 40% 60% at 32% 62%, #000 40%, transparent 72%), radial-gradient(ellipse 30% 45% at 72% 40%, #000 35%, transparent 70%); }
.ob .ob-thumb--b { background: linear-gradient(135deg, #FFD3B5, #E1B5A8 55%, #CDBDEB); }
.ob .ob-thumb--c { background: linear-gradient(135deg, #A4F0B8, #9CE7DD 55%, #8DD8F3); }
.ob .ob-subbar { width: 90px !important; height: 9px; background: #CFD7DB; }

/* ---------- round 2: l1-how ---------- */
.ob-l1h .rd-prof__row { align-items: flex-end; margin-top: -32px; }
.ob-l1h .rd-prof__names { margin-top: 34px; padding-bottom: 0; }
.ob-l1h .rd-prof__bio { min-height: 0; }
.ob-l1h .ob-ptabs { display: flex; gap: 8px; padding: 2px 0; }
.ob-l1h .ob-ptab { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px #DFE4E7; color: #576F76; }
.ob-l1h .ob-ptab .rd-bar { width: 34px !important; height: 7px; }
.ob-l1h .ob-ptab__i { display: grid; }
.ob-l1h .ob-ptab.is-on { background: #E5EBEE; box-shadow: none; color: #0F1A1C; } .ob-l1h .ob-ptab.is-on .rd-bar { background: #9AA7AD; }
.ob-l1h .ob-l1h__post { padding: 12px 0 2px; box-shadow: inset 0 1px 0 #DFE4E7; }
.ob-l1h .ob-l1h__media { max-height: 120px; aspect-ratio: auto; height: 22cqh; min-height: 60px; }
.ob-l1h .ob-l1h__cm { gap: 6px; }
.ob-l1h .ob-crow { display: grid; gap: 6px; padding-top: 10px; box-shadow: inset 0 1px 0 #DFE4E7; }
.ob-l1h .ob-ctx { display: flex; align-items: center; gap: 8px; } .ob-l1h .ob-ctx .rd-bar { width: 90px !important; height: 8px; } .ob-l1h .ob-ctx .rd-bar + .rd-bar { width: 140px !important; background: #EDF0F2; }
.ob-l1h .ob-pin { gap: 8px; }
.ob-l1h .ob-pin__h { display: flex; align-items: center; gap: 8px; color: #576F76; }
.ob-l1h .ob-pin__h .ob-pin__ic { display: grid; }
.ob-l1h .ob-pin__b { display: grid; grid-template-columns: minmax(0, 72px) minmax(0, 1fr); gap: 10px; align-items: center; }
.ob-l1h .ob-pin__th { aspect-ratio: 1; border-radius: 8px; }
.ob-l1h .ob-l1h__extra { padding: 14px 16px; }
@media (max-width: 959px), (max-height: 599px) {
  .ob-l1h .rd-prof__av { width: 52px !important; height: 52px !important; }
  .ob-l1h .rd-prof__row { margin-top: -22px; }
  .ob-l1h .rd-prof__names { margin-top: 24px; }
  .ob-l1h .ob-ptab { height: 28px; padding: 0 9px; } .ob-l1h .ob-ptab .rd-bar { width: 22px !important; }
}
.ob-l1h .rd-prof__banner[style*="none"] + .rd-prof__row { margin-top: 0; }
.ob-l1h .rd-prof__banner[style*="none"] + .rd-prof__row .rd-prof__names { margin-top: 0; align-self: center; }

/* ---------- round 2: l2-how ---------- */
.ob-l2h .ob-l2h__stage { container-type: size; }
.ob-l2h .ob-ads__hrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ob-l2h .ob-ads__main { gap: 12px; }
.ob-l2h .ob-ads__list { gap: 8px; }
.ob-l2h .ob-sug { grid-template-columns: 26px auto minmax(40px, 1fr) 32px; min-height: 46px; }
.ob-l2h .ob-sug--bar { grid-template-columns: 26px minmax(0, .7fr) minmax(40px, 1fr) 32px; }
.ob-l2h .ob-sug__add { width: 32px; height: 32px; }
.ob-l2h .ob-aud { position: relative; display: block; height: 10px; border-radius: 5px; background: #E8EDF0; overflow: hidden; }
.ob-l2h .ob-aud i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 5px; background: linear-gradient(90deg, #8DD8F3, #0045AC); transform-origin: 0 50%; }
.ob-l2h.ob-sugs.ob-sugs-on .ob-aud i { animation: ob-grow .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(250ms + var(--i) * 260ms + 150ms); }
@keyframes ob-grow { from { transform: scaleX(0); } }
.ob-l2h.ob-sugs.ob-sugs-on .ob-sug { animation-delay: calc(250ms + var(--i) * 260ms); }
.ob-l2h .ob-drafts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.ob-l2h .ob-prev { min-height: 0; overflow: hidden; padding: 14px 16px 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(15 26 28 / .06), 0 30px 60px -34px rgb(15 26 28 / .35), inset 0 0 0 1px #DFE4E7; align-self: start; max-height: 100%; }
.ob-l2h .ob-prev .rd-post { gap: 8px; }
.ob-l2h .ob-prev .rd-post__t { font-size: clamp(17px, 1.45vw, 21px); }
.ob-l2h .ob-prev__media { aspect-ratio: 16 / 9; }
.ob-l2h .ob-prev__ex { margin-left: auto; }
@container (max-height: 390px) {
  .ob-l2h .ob-ads__top { display: none; }
  .ob-l2h .ob-ads__main { gap: 8px; padding: 12px 16px; }
  .ob-l2h .ob-ads__h { font-size: 18px; }
  .ob-l2h .ob-ads__field { min-height: 40px; padding: 3px 10px; }
  .ob-l2h .ob-chip { height: 30px; }
  .ob-l2h .ob-sug { min-height: 38px; padding: 3px 8px; }
  .ob-l2h .ob-sug__add { width: 28px; height: 28px; }
  .ob-l2h .ob-ads__rail { display: none; } .ob-l2h .ob-ads__body { grid-template-columns: minmax(0, 1fr); }
  .ob-l2h .ob-prev { padding: 10px 12px; }
  .ob-l2h .ob-prev .rd-post__t { font-size: 16px; }
}
@container (max-height: 230px) {
  .ob-l2h .ob-ads__lbl { padding-top: 0; }
  .ob-l2h .ob-ads__main { gap: 6px; padding: 8px 12px; }
  .ob-l2h .ob-ads__field { min-height: 36px; }
  .ob-l2h .ob-sug { min-height: 34px; font-size: 14px; }
  .ob-l2h .ob-sug__add { width: 24px; height: 24px; }
}
@container (max-width: 520px) {
  .ob-l2h .ob-drafts { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, auto)); align-content: start; gap: 8px; }
  .ob-l2h .ob-prev { padding: 8px 12px; }
}
@container (max-height: 270px) and (min-width: 340px) {
  .ob-l2h .ob-ads__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto 1fr; column-gap: 12px; row-gap: 6px; align-content: start; }
  .ob-l2h .ob-ads__hrow { grid-column: 1; grid-row: 1; flex-wrap: wrap; }
  .ob-l2h .ob-ads__field { grid-column: 1; grid-row: 2; }
  .ob-l2h .ob-ads__lbl { grid-column: 2; grid-row: 1; align-self: end; }
  .ob-l2h .ob-ads__list { grid-column: 2; grid-row: 2 / 4; gap: 5px; }
  .ob-l2h .ob-sug { grid-template-columns: 22px minmax(0, 1fr) 24px; gap: 8px; }
  .ob-l2h .ob-sug .ob-aud { display: none; }
  .ob-l2h .ob-sug .rd-mark { width: 22px !important; height: 22px !important; }
  .ob-l2h .ob-chip { font-size: 14px; padding: 0 8px 0 4px; gap: 6px; }
  .ob-l2h .ob-chip__x { display: none; }
  .ob-l2h .ob-ads__ic { display: none; }
}
@container (max-height: 300px) and (max-width: 339px) {
  .ob-l2h .ob-ads__main { gap: 6px; padding: 8px 10px; }
  .ob-l2h .ob-ads__h { font-size: 16px; }
  .ob-l2h .ob-ads__field { min-height: 36px; }
  .ob-l2h .ob-sug { min-height: 34px; font-size: 14px; }
}
@container (max-height: 270px) and (min-width: 340px) {
  .ob-l2h .ob-chip span:nth-child(2) { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .ob-l2h .ob-chip { height: auto; min-height: 30px; padding-top: 3px; padding-bottom: 3px; border-radius: 12px; }
}
@container (max-height: 200px) {
  .ob-l2h .ob-sug { min-height: 30px; padding: 2px 6px; }
  .ob-l2h .ob-ads__list { gap: 4px; }
  .ob-l2h .ob-ads__main { padding: 6px 10px; row-gap: 4px; }
  .ob-l2h .ob-ads__h { font-size: 16px; }
}
@media (max-height: 420px) and (orientation: landscape) {
  .ob-l2h .ob-ex--side { display: inline-flex; }
  .ob-l2h .ob-ads__ex { display: none; }
}
@container (max-height: 200px) and (min-width: 340px) {
  .ob-l2h .ob-ads__h { font-size: 15px; line-height: 1.25; white-space: nowrap; }
  .ob-l2h .ob-ads__lbl { line-height: 1.25; }
  .ob-l2h .ob-sug { min-height: 28px; }
  .ob-l2h .ob-sug .rd-mark { width: 20px !important; height: 20px !important; }
  .ob-l2h .ob-sug__add { width: 22px; height: 22px; }
}
/* very short landscape frames: the l3-check copy gets a wider column and starts at the top of its row */
@media (max-height: 420px) and (orientation: landscape) {
  .ob-l3c .rm--stage { grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); }
  .ob-l3c .rm--stage .rm-side { align-self: start; }
  .ob-l3c .rm-side .rm-pit { font-size: 14px; line-height: 1.35; }
  .ob-l3c .rm-side .rm-pit__i { width: 22px; height: 22px; }
}
@media (max-height: 420px) and (orientation: landscape) {
  .ob-l3c .br__dots { display: none; }
  .ob-l3c .br__bar { gap: 6px; padding: 0 8px; }
  .ob-l3c .br__tab { padding: 0 8px; gap: 6px; }
  .ob-l3c .ob-gap { min-height: 0; padding: 8px; }
  .ob-l3c .ob-gap__l { white-space: normal; text-align: center; font-size: 14px; border-radius: 10px; padding: 6px 8px; }
  .ob-l3c .rd-cm__text .rd-bars .rd-bar:nth-child(n+2) { display: none; }
  .ob-l3c .rd-page__body { padding: 10px 10px 0; }
}

/* ---------- round 2: l2-proof ---------- */
.ob-l2p .ob-l2p__stage { container-type: size; }
.ob-l2p .ob-ghost .g-r__name, .ob-l2p .ob-ghost .g-r__sub, .ob-l2p .ob-ghost .g-r__t, .ob-l2p .ob-ghost .g-q__t { display: block; width: 100%; }
.ob-l2p .ob-ghost .ob-tbar { display: block; height: 9px; background: #D5D9DE; }
.ob-l2p .ob-ghost .g-r__t .ob-tbar { height: 13px; background: #B9C3F0; }
.ob-l2p .ob-ghost .g-r__crumb { gap: 6px; padding: 3px 0; min-width: 120px; }
.ob-l2p.ob-b2 .ob-ghost { opacity: .7; }
@container (max-height: 330px) {
  .ob-l2p .g-serp { gap: 8px; padding: 10px 14px 8px; }
  .ob-l2p .g-top { gap: 10px; }
  .ob-l2p .g-logo i { width: 9px; height: 9px; }
  .ob-l2p .g-q { min-height: 36px; height: auto; padding: 4px 12px; font-size: 15px; }
  .ob-l2p .g-tabs { display: none; }
  .ob-l2p .g-res { gap: 10px; }
  .ob-l2p .g-r { gap: 3px; }
  .ob-l2p .g-r__site { gap: 8px; }
  .ob-l2p .g-r__site .rd-mark { width: 22px !important; height: 22px !important; }
  .ob-l2p .g-r__crumb { display: flex; flex-wrap: wrap; gap: 0 6px; }
  .ob-l2p .g-r__t { font-size: 16px; }
}
.ob-l2p .ob-ghost .g-r { opacity: 1; transform: none; }
@media (max-height: 420px) and (orientation: landscape), (max-width: 759px) and (orientation: portrait) {
  .ob-l2p .ob-ex--side { display: inline-flex; }
  .ob-l2p .ob-l2p__ex { display: none; }
}

/* ---------- round 2: l4-how last comments ---------- */
.ob-l4h .ob-last { gap: 6px; padding: 12px; }
.ob-l4h .ob-last__row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; min-height: 0; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #E6EBEE; }
.ob-l4h .ob-last__row.is-me { grid-template-columns: 22px minmax(0, 1fr); background: rgb(255 127 50 / .1); box-shadow: inset 0 0 0 1.5px rgb(255 127 50 / .6); }
.ob-l4h .ob-last__c { display: grid; gap: 5px; min-width: 0; }
.ob-l4h .ob-last__h2 { display: flex; align-items: center; gap: 6px; } .ob-l4h .ob-last__h2 .rd-bar { height: 7px; flex: none; } .ob-l4h .ob-last__h2 .rd-bar + .rd-bar { background: #EDF0F2; }
.ob-l4h .ob-last__t { display: flex; align-items: center; gap: 8px; min-height: 9px; } .ob-l4h .ob-last__t .rd-bar { height: 8px; flex: none; }
.ob-l4h .ob-last__v { display: flex; align-items: center; gap: 4px; color: #576F76; } .ob-l4h .ob-last__v span { display: grid; } .ob-l4h .ob-last__v svg { width: 14px; height: 14px; } .ob-l4h .ob-last__v .rd-bar { height: 7px; }
.ob-l4h .ob-last__name { font-size: 15px; font-weight: 700; color: #C2410C; line-height: 1.2; }

/* ---------- round 2: l3-how (comment history and the karma bar) ---------- */
.ob-l3h2 .rd-page__body { grid-template-columns: minmax(0, 1fr) minmax(170px, 36%); }
.ob-l3h2 .rd-page__side { display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; min-height: 0; padding-bottom: 14px; }
.ob-l3h2 .ob-l3h__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ob-l3h2 .ob-l3h__head .ob-ptabs { margin-left: auto; }
.ob-l3h2 .ob-ptabs { display: flex; gap: 6px; }
.ob-l3h2 .ob-ptab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px #DFE4E7; color: #576F76; }
.ob-l3h2 .ob-ptab .rd-bar { width: 22px !important; height: 7px; } .ob-l3h2 .ob-ptab__i { display: grid; }
.ob-l3h2 .ob-ptab.is-on { background: #E5EBEE; box-shadow: none; color: #0F1A1C; }
.ob-l3h2 .ob-hist { display: grid; gap: 6px; align-content: start; }
.ob-l3h2 .ob-cap { position: relative; padding: 4px 0 2px 18px; font-size: 14px; line-height: 1.35; font-weight: 600; color: #0F1A1C; }
.ob-l3h2 .ob-cap::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.ob-l3h2 .ob-cap--a { --c: #66CDBF; } .ob-l3h2 .ob-cap--b { --c: #FF7F32; }
.ob-l3h2 .ob-cap__src { display: block; font-weight: 500; }
.ob-l3h2 .ob-hrow { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; background: #F6F8F9; transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1); }
.ob-l3h2 .ob-hrow:not(.is-in) { opacity: 0; transform: translateY(8px); }
.ob-l3h2 .ob-hrow__day { align-self: stretch; border-radius: 3px; background: var(--c); } .ob-l3h2 .ob-hrow--a { --c: #66CDBF; } .ob-l3h2 .ob-hrow--b { --c: #FF7F32; }
.ob-l3h2 .ob-hrow__c { display: grid; gap: 4px; min-width: 0; } .ob-l3h2 .ob-hrow__c .rd-bars { gap: 6px; padding: 2px 0 0; }
.ob-l3h2 .ob-hrow__h { display: flex; align-items: center; gap: 6px; } .ob-l3h2 .ob-hrow__h .rd-bar { height: 7px; flex: none; background: #CFD7DB; } .ob-l3h2 .ob-hrow__h .rd-bar + .rd-bar { background: #E2E7EA; }
.ob-l3h2 .ob-hrow__v { display: inline-flex; align-items: center; gap: 4px; color: #D93900; width: 44px; } .ob-l3h2 .ob-hrow__v span { display: grid; } .ob-l3h2 .ob-hrow__v svg { width: 16px; height: 16px; } .ob-l3h2 .ob-hrow__v .rd-bar { height: 7px; }
.ob-l3h2 .ob-kbar { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 12px 12px 12px 14px; border-radius: 16px; background: #111; }
.ob-l3h2 .ob-kbar__tube { position: relative; min-height: 0; border-radius: 15px; background: #1d1f24; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); overflow: hidden; }
.ob-l3h2 .ob-kbar__fill { position: absolute; left: 3px; right: 3px; bottom: 3px; height: calc((100% - 6px) * var(--v, 0)); border-radius: 12px;
  background: radial-gradient(circle, #FFB07A 1.7px, transparent 2.2px) 0 100% / 6px 6px, linear-gradient(0deg, #FF7F32, rgb(255 127 50 / .35)); box-shadow: 0 0 22px rgb(255 127 50 / .7); }
.ob-l3h2 .ob-kbar__tick { position: absolute; left: 0; right: 0; z-index: 2; transition: background .3s, box-shadow .3s; }
.ob-l3h2 .ob-kbar__tick--a { bottom: calc(var(--a) * 100%); height: calc((var(--b) - var(--a)) * 100%); background: rgb(156 231 221 / .18); box-shadow: inset 0 1px 0 rgb(156 231 221 / .5), inset 0 -1px 0 rgb(156 231 221 / .5); }
.ob-l3h2 .ob-kbar__tick--b { bottom: calc(var(--v) * 100%); height: 2px; background: rgb(255 255 255 / .35); }
.ob-l3h2 .ob-kbar__tick--a.is-lit { background: rgb(156 231 221 / .55); box-shadow: 0 0 14px #9CE7DD; }
.ob-l3h2 .ob-kbar__tick--b.is-lit { background: #fff; box-shadow: 0 0 12px #fff; }
.ob-l3h2 .ob-kbar__marks { position: relative; min-height: 0; }
.ob-l3h2 .ob-mark2 { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 100%); display: grid; gap: 1px; font-size: 14px; line-height: 1.3; font-weight: 600; color: #fff; }
.ob-l3h2 .ob-mark2.is-on, .ob-l3h2 .ob-mark2:not(.is-on) { transform: translateY(50%); }
.ob-l3h2 .ob-mark2 .rm-src { color: rgb(255 255 255 / .62); font-weight: 500; }
.ob-l3h2 .ob-mark2--a span:first-child { color: #9CE7DD; }
.ob-l3h2 .ob-kbar.ob-flow .ob-kbar__marks { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.ob-l3h2 .ob-kbar.ob-flow .ob-mark2 { position: static; transform: none; }
.ob-l3h2 .ob-fly { position: absolute; left: 0; top: 0; z-index: 6; width: 18px; height: 18px; color: #FF7F32; filter: drop-shadow(0 0 6px rgb(255 127 50 / .9)); pointer-events: none; }
.ob-l3h2 .ob-fly svg { width: 18px; height: 18px; display: block; }
@container (max-width: 560px) {
  .ob-l3h2 .rd-page__body { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); gap: 10px; padding: 10px 10px 0; }
  .ob-l3h2 .ob-l3h__head .ob-ptabs, .ob-l3h2 .ob-l3h__names { display: none; }
  .ob-l3h2 .ob-hrow { padding: 6px 8px; gap: 8px; } .ob-l3h2 .ob-hrow__v { width: 22px; } .ob-l3h2 .ob-hrow__v .rd-bar { display: none; }
  .ob-l3h2 .ob-kbar { grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .ob-l3h2 .ob-l3h__card { padding: 8px 10px; }
}
@media (max-width: 959px), (max-height: 599px) {
  .ob-l3h2 .rd-page__side { padding-bottom: 8px; }
}

.ob-l3h2 .ob-mail { display: flex; gap: 10px; align-items: flex-start; color: var(--s-fg); }
.ob-l3h2 .ob-mail__i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #576F76; box-shadow: inset 0 0 0 1px #DFE4E7; margin-top: -2px; }
.ob-l3h2 .rd-page__side { overflow: hidden; }
.ob-l3h2 .ob-marksalt { display: grid; gap: 6px; padding: 8px 10px; border-radius: 12px; background: #111; }
.ob-l3h2 .ob-alt { position: relative; display: grid; gap: 1px; padding-left: 18px; font-size: 14px; line-height: 1.3; font-weight: 600; color: #fff; }
.ob-l3h2 .ob-alt::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 3px; background: #fff; box-shadow: 0 0 8px #fff; }
.ob-l3h2 .ob-alt--a::before { background: #9CE7DD; box-shadow: 0 0 8px #9CE7DD; } .ob-l3h2 .ob-alt--a .ob-alt__t { color: #9CE7DD; }
.ob-l3h2 .ob-alt .rm-src { color: rgb(255 255 255 / .62); font-weight: 500; }
.ob-l3h2.ob-small .ob-kbar { grid-template-columns: minmax(0, 1fr); padding: 8px; }
.ob-l3h2.ob-small .ob-kbar__marks { display: none; }
.ob-l3h2.ob-small .rd-page__side { grid-template-columns: minmax(0, 1fr); }
.ob-l3h2.ob-small .rd-page__body { grid-template-columns: minmax(0, 1fr) minmax(120px, 30%); }
.ob-l3h2.ob-small .ob-kbar { justify-items: center; background: #111; }
.ob-l3h2.ob-small .ob-kbar__tube { width: 34px; height: 100%; }
@media (max-width: 959px), (max-height: 599px) {
  .ob-l3h2 .rd-top { display: none; }
}
@media (max-height: 420px) and (orientation: landscape) {
  .ob-l2p .rm--split .rm-side { align-self: start; }
  .ob-l2p .rm-stat--sm .rm-stat__v { font-size: 26px; }
}
/* the sidebar never decides which thread rows hide */
.ob-l4h .rd-page__side, .ob-l1h .rd-page__side { overflow: hidden; min-height: 0; }
/* round 3: the chip keeps "r/socialmediamanagers" on one line; the two-column mode gives the field its room */
@container (max-height: 270px) and (min-width: 340px) {
  .ob-l2h .ob-ads__main { grid-template-columns: auto minmax(0, 1fr); }
  .ob-l2h .ob-chip span:nth-child(2) { white-space: nowrap; overflow-wrap: normal; }
  .ob-l2h .ob-chip { height: 30px; min-height: 0; padding: 0 10px 0 4px; border-radius: 999px; font-size: 14px; }
  .ob-l2h .ob-chip .rd-mark { width: 16px !important; height: 16px !important; }
  .ob-l2h .ob-ads__field { padding: 3px 6px; }
  .ob-l2h .ob-sug { grid-template-columns: 20px minmax(0, 1fr); padding: 2px 8px; }
  .ob-l2h .ob-sug__add { display: none; }
}
@media (max-width: 959px) and (min-height: 421px) and (orientation: landscape), (max-height: 599px) and (min-height: 421px) and (orientation: landscape) {
  .ob-mkt.rm-full .rm-side { max-width: min(17em, 36vw); }
}
@media (max-height: 420px) and (orientation: landscape) {
  .ob-mkt.rm-full .rm-side { max-width: min(20em, 40vw); }
}
@container (max-height: 200px) and (min-width: 340px) {
  .ob-l2h .ob-chip .rd-mark { display: none; }
  .ob-l2h .ob-chip { padding: 0 10px; }
}
/* round 3: l1-how on compact and phone: no banner, no tabs, no sidebar; karma and the tag in one row under the name */
.ob-l1h .ob-l1h__meta { display: none; }
@media (max-width: 959px), (max-height: 599px) {
  .ob-l1h .rd-page__side { display: none !important; }
  .ob-l1h .rd-page__body { grid-template-columns: minmax(0, 1fr) !important; }
  .ob-l1h .rd-prof__banner, .ob-l1h .ob-ptabs { display: none !important; }
  .ob-l1h .rd-prof__row { margin-top: 0 !important; align-items: center; }
  .ob-l1h .rd-prof__names { margin-top: 0 !important; }
  .ob-l1h .ob-l1h__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .ob-l1h .ob-meta__k { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; color: #576F76; }
  .ob-l1h .ob-meta__k b { font-size: 18px; color: #0F1A1C; font-variant-numeric: tabular-nums; }
  .ob-l1h .rd-prof { gap: 6px; }
  .ob-l1h .rd-page__main { gap: 8px; }
  .ob-l1h .ob-crow { padding-top: 6px; }
}
@media (max-height: 420px) and (orientation: landscape) {
  .ob-l1h .rd-prof__av { width: 40px !important; height: 40px !important; }
  .ob-l1h .rd-prof__name { font-size: 17px; }
  .ob-l1h .rd-page__body { padding-top: 8px; }
  .ob-l1h .rd-page__main { gap: 6px; }
}
@media (max-height: 420px) and (orientation: landscape) {
  .ob-l1h .rd-prof__bio { line-height: 1.35; }
  .ob-l1h .ob-crow { padding-top: 4px; gap: 2px; }
  .ob-l1h .rd-cm__main { padding-bottom: 0; gap: 2px; }
  .ob-l1h .rd-cm__h { min-height: 0; }
  .ob-l1h .rd-prof { gap: 4px; }
}
/* round 3: short frames and phones show the five last comments as compact one-line rows, so the 4-to-1 ratio stays visible */
@media (max-height: 420px) and (orientation: landscape), (max-width: 759px) and (orientation: portrait) {
  .ob-l4h .ob-last { gap: 4px; padding: 8px 10px; }
  .ob-l4h .ob-last__h { font-size: 15px; padding-bottom: 0; }
  .ob-l4h .ob-last__h .rd-av { width: 20px !important; height: 20px !important; }
  .ob-l4h .ob-last__row { grid-template-columns: 18px minmax(0, 1fr); padding: 3px 8px; gap: 6px; align-items: center; }
  .ob-l4h .ob-last__row .rd-av { width: 18px !important; height: 18px !important; }
  .ob-l4h .ob-last__c { display: flex; align-items: center; gap: 8px; }
  .ob-l4h .ob-last__h2 .rd-bar + .rd-bar, .ob-l4h .ob-last__t + .ob-last__t, .ob-l4h .ob-last__v { display: none; }
  .ob-l4h .ob-last__t { flex: 1; min-width: 0; } .ob-l4h .ob-last__t .rd-bar { width: 70% !important; }
  .ob-l4h .ob-last__row.is-me .ob-last__t .rd-bar { width: 40% !important; }
  .ob-l4h .ob-last__name { font-size: 14px; }
}
@media (max-height: 380px) and (orientation: landscape) {
  .ob-l4h .ob-last { gap: 3px; padding: 6px 8px; }
  .ob-l4h .ob-last__h .rd-av { display: none; }
  .ob-l4h .ob-last__h { font-size: 14px; line-height: 1.2; }
  .ob-l4h .ob-last__row { padding: 2px 8px; }
  .ob-l4h .rd-page__body { padding-top: 6px; }
}
@media (max-height: 380px) and (orientation: landscape) {
  .ob-l4h .ob-last__row { padding: 1px 8px; border-radius: 8px; }
  .ob-l4h .ob-last__row .rd-av { width: 16px !important; height: 16px !important; }
  .ob-l4h .ob-last__row .rd-mark { width: 14px !important; height: 14px !important; }
  .ob-l4h .ob-last__name { line-height: 1.25; }
  .ob-l4h .ob-mock .rd-page__main { gap: 6px; }
}
/* audit round: density classes so all five last comments always show */
.ob-l4h .ob-last--mid .ob-last__t + .ob-last__t, .ob-l4h .ob-last--mid .ob-last__v { display: none; }
.ob-l4h .ob-last--mid { gap: 5px; padding: 10px 12px; }
.ob-l4h .ob-last--mid .ob-last__row { padding: 6px 10px; }
.ob-l4h .ob-last--mid .ob-last__c { gap: 4px; }
.ob-l4h .ob-last--tiny { gap: 3px; padding: 8px 10px; }
.ob-l4h .ob-last--tiny .ob-last__h { padding-bottom: 0; font-size: 15px; }
.ob-l4h .ob-last--tiny .ob-last__row { grid-template-columns: 18px minmax(0, 1fr); padding: 2px 8px; gap: 6px; align-items: center; }
.ob-l4h .ob-last--tiny .ob-last__row .rd-av { width: 18px !important; height: 18px !important; }
.ob-l4h .ob-last--tiny .ob-last__c { display: flex; align-items: center; gap: 8px; }
.ob-l4h .ob-last--tiny .ob-last__h2 .rd-bar + .rd-bar, .ob-l4h .ob-last--tiny .ob-last__t + .ob-last__t, .ob-l4h .ob-last--tiny .ob-last__v { display: none; }
.ob-l4h .ob-last--tiny .ob-last__t { flex: 1; min-width: 0; } .ob-l4h .ob-last--tiny .ob-last__t .rd-bar { width: 70% !important; }
.ob-l4h .ob-last--tiny .ob-last__row.is-me .ob-last__t .rd-bar { width: 40% !important; }
.ob-l4h .ob-last--tiny .ob-last__name { font-size: 14px; line-height: 1.25; }
/* audit round: density classes so all five last comments always show */
.ob-l4h .ob-last--mid .ob-last__t + .ob-last__t, .ob-l4h .ob-last--mid .ob-last__v { display: none; }
.ob-l4h .ob-last--mid { gap: 5px; padding: 10px 12px; }
.ob-l4h .ob-last--mid .ob-last__row { padding: 6px 10px; }
.ob-l4h .ob-last--mid .ob-last__c { gap: 4px; }
.ob-l4h .ob-last--tiny { gap: 3px; padding: 8px 10px; }
.ob-l4h .ob-last--tiny .ob-last__h { padding-bottom: 0; font-size: 15px; }
.ob-l4h .ob-last--tiny .ob-last__row { grid-template-columns: 18px minmax(0, 1fr); padding: 2px 8px; gap: 6px; align-items: center; }
.ob-l4h .ob-last--tiny .ob-last__row .rd-av { width: 18px !important; height: 18px !important; }
.ob-l4h .ob-last--tiny .ob-last__c { display: flex; align-items: center; gap: 8px; }
.ob-l4h .ob-last--tiny .ob-last__h2 .rd-bar + .rd-bar, .ob-l4h .ob-last--tiny .ob-last__t + .ob-last__t, .ob-l4h .ob-last--tiny .ob-last__v { display: none; }
.ob-l4h .ob-last--tiny .ob-last__t { flex: 1; min-width: 0; } .ob-l4h .ob-last--tiny .ob-last__t .rd-bar { width: 70% !important; }
.ob-l4h .ob-last--tiny .ob-last__row.is-me .ob-last__t .rd-bar { width: 40% !important; }
.ob-l4h .ob-last--tiny .ob-last__name { font-size: 14px; line-height: 1.25; }
