/* pages/messages.css — Reminders & offers: this page's own product screens (prefix ms-; the prototype's p-messages.css). Shared sections: site.css. Scoped by scripts/scope-css.js. */

/* ---------- 1 · hero: the Inbox ---------- */
:where(.site).pg-messages .ms-hero h1 { max-width: 1120px; }
:where(.site).pg-messages .ms-hero .fh-stage { z-index: 4; } /* the window slides over the fading copy, not under it */
:where(.site).pg-messages .ms-ib { display: grid; grid-template-columns: 310px 1fr; height: 610px; border-top: 1px solid var(--u-line-2); }
:where(.site).pg-messages .ms-list { border-right: 1px solid var(--u-line-2); background: rgba(255,255,255,.5); padding: 14px 12px 0; overflow: hidden; }
:where(.site).pg-messages .ms-lh { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
:where(.site).pg-messages .ms-lh h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
:where(.site).pg-messages .ms-seg { margin: 12px 0 10px 4px; }
:where(.site).pg-messages .ms-cvs { position: relative; }
:where(.site).pg-messages .ms-cv { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 12px; position: relative; background: transparent;
  transition: transform .55s cubic-bezier(.2,.9,.3,1), background-color .3s ease; }
:where(.site).pg-messages .ms-cv.sel { background: #fff; box-shadow: 0 0 0 1px var(--u-line-2), 0 2px 6px -2px rgba(0,0,0,.08); z-index: 2; }
:where(.site).pg-messages .ms-cv .av { width: 36px; height: 36px; font-size: 12px; }
:where(.site).pg-messages .ms-cvt { flex: 1; min-width: 0; }
:where(.site).pg-messages .ms-cvt b { display: block; font-size: 13.5px; font-weight: 600; }
:where(.site).pg-messages .ms-pv { display: block; position: relative; height: 17px; font-size: 12.5px; color: var(--u-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where(.site).pg-messages .ms-cvm { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; align-self: flex-start; padding-top: 13px; }
:where(.site).pg-messages .ms-tm { position: relative; display: block; font-size: 11.5px; color: var(--u-ink-3); font-variant-numeric: tabular-nums; min-width: 38px; height: 15px; text-align: right; }
:where(.site).pg-messages .ms-pv i, :where(.site).pg-messages .ms-tm i { font-style: normal; position: absolute; left: 0; right: 0; top: 0; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .25s ease; }
:where(.site).pg-messages .ms-bd { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--u-blue); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .35s cubic-bezier(.2,1.4,.4,1); }
/* states: the window gets s1…s4 as you scroll */
:where(.site).pg-messages .ms-win .v0 { opacity: 1; }
:where(.site).pg-messages .ms-win.s1 .v0 { opacity: 0; } :where(.site).pg-messages .ms-win.s1 .v1 { opacity: 1; }
:where(.site).pg-messages .ms-win.s3 .v1 { opacity: 0; } :where(.site).pg-messages .ms-win.s3 .v3 { opacity: 1; }
:where(.site).pg-messages .ms-win.s1 .ms-cv.lw { transform: translateY(-128px); }
:where(.site).pg-messages .ms-win.s1 .ms-cv.a, :where(.site).pg-messages .ms-win.s1 .ms-cv.b { transform: translateY(64px); }
:where(.site).pg-messages .ms-win.s3 .ms-cv.lw .ms-pv { color: var(--u-ink); font-weight: 600; }
:where(.site).pg-messages .ms-win.s3 .ms-bd { opacity: 1; transform: none; }
:where(.site).pg-messages .ms-win.s4 .ms-bd { opacity: 0; transform: scale(.4); }
:where(.site).pg-messages .ms-bds { position: relative; width: 22px; height: 18px; }
:where(.site).pg-messages .ms-bds > span { position: absolute; right: 0; top: 0; }
:where(.site).pg-messages .ms-flg { width: 22px; height: 18px; border-radius: 9px; display: grid; place-items: center; background: var(--u-ok-soft); color: var(--u-ok);
  opacity: 0; transform: scale(.4); transition: opacity .25s ease .1s, transform .35s cubic-bezier(.2,1.4,.4,1) .1s; }
:where(.site).pg-messages .ms-flg svg { width: 11px; height: 11px; }
:where(.site).pg-messages .ms-win.s4 .ms-flg { opacity: 1; transform: none; }
/* the payoff in the header: a follow-up chip joins the contract chip */
:where(.site).pg-messages .ms-fuc { background: var(--u-ok-soft); color: var(--u-ok); max-width: 0; padding: 0; overflow: hidden; white-space: nowrap; opacity: 0; margin-right: -6px;
  transition: max-width .45s cubic-bezier(.2,.9,.3,1), padding .45s, opacity .3s ease .1s, margin .45s; }
:where(.site).pg-messages .ms-fuc svg { width: 11px; height: 11px; flex: none; }
:where(.site).pg-messages .ms-win.s4 .ms-fuc { max-width: 180px; padding: 0 8px; opacity: 1; margin-right: 0; }
:where(.site).pg-messages .ms-win.s4 .ms-cv.lw .ms-pv { color: var(--u-ink-3); font-weight: 400; }

:where(.site).pg-messages .ms-th { display: flex; flex-direction: column; min-width: 0; background: var(--u-bg); }
:where(.site).pg-messages .ms-thh { display: flex; align-items: center; gap: 12px; height: 66px; padding: 0 20px; border-bottom: 1px solid var(--u-line-2); background: rgba(255,255,255,.7); }
:where(.site).pg-messages .ms-thh .av { width: 38px; height: 38px; font-size: 13px; }
:where(.site).pg-messages .ms-thh b { display: block; font-size: 15px; font-weight: 700; }
:where(.site).pg-messages .ms-thh small { font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-thc { margin-left: auto; display: flex; gap: 6px; }
:where(.site).pg-messages .ms-thc .chip { white-space: nowrap; flex: none; }
:where(.site).pg-messages .ms-msgs { flex: 1; padding: 12px 22px 6px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
:where(.site).pg-messages .ms-day { align-self: center; font-size: 11px; font-weight: 600; color: var(--u-ink-3); padding: 2px 0; }
:where(.site).pg-messages .ms-m { max-width: 430px; display: flex; flex-direction: column; }
:where(.site).pg-messages .ms-m p { padding: 9px 13px; font-size: 13px; line-height: 1.42; border-radius: 16px; }
:where(.site).pg-messages .ms-m.out { align-self: flex-end; align-items: flex-end; }
:where(.site).pg-messages .ms-m.out p { background: var(--u-blue); color: #fff; border-bottom-right-radius: 5px; }
:where(.site).pg-messages .ms-m.in { align-self: flex-start; }
:where(.site).pg-messages .ms-m.in p { background: #fff; box-shadow: 0 0 0 1px var(--u-line-2); border-bottom-left-radius: 5px; }
:where(.site).pg-messages .ms-lab { font-size: 11px; font-weight: 600; color: var(--u-ink-3); margin-bottom: 4px; }
:where(.site).pg-messages .ms-st { position: relative; height: 16px; margin-top: 4px; font-size: 11px; color: var(--u-ink-3); min-width: 110px; }
:where(.site).pg-messages .ms-m.in .ms-st { min-width: 0; }
:where(.site).pg-messages .ms-st i { position: absolute; right: 0; top: 0; display: flex; align-items: center; gap: 4px; font-style: normal; white-space: nowrap; opacity: 0; transition: opacity .25s ease; }
:where(.site).pg-messages .ms-st .st2 { color: var(--u-ok); font-weight: 600; }
:where(.site).pg-messages .ms-new, :where(.site).pg-messages .ms-rep, :where(.site).pg-messages .ms-fu { opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,1.1,.3,1); }
:where(.site).pg-messages .ms-win.s1 .ms-new { opacity: 1; transform: none; }
:where(.site).pg-messages .ms-win.s1 .st1 { opacity: 1; }
:where(.site).pg-messages .ms-win.s2 .st1 { opacity: 0; } :where(.site).pg-messages .ms-win.s2 .st2 { opacity: 1; }
:where(.site).pg-messages .ms-win.s3 .ms-rep { opacity: 1; transform: none; }
:where(.site).pg-messages .ms-win.s4 .ms-fu { opacity: 1; transform: none; }
:where(.site).pg-messages .ms-fu { align-self: center; display: flex; align-items: center; gap: 9px; margin-top: 4px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--u-ok), 0 10px 22px -12px rgba(0,0,0,.3); font-size: 13px; }
:where(.site).pg-messages .ms-fu b { font-weight: 600; }
:where(.site).pg-messages .ms-fu > span:last-child { color: var(--u-ink-3); }
:where(.site).pg-messages .ms-fui { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--u-ok-soft); color: var(--u-ok); flex: none; }
:where(.site).pg-messages .ms-q { margin: 0 22px 8px; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--u-line-2); font-size: 12px; font-weight: 600;
  transition: opacity .3s ease, transform .4s ease; }
:where(.site).pg-messages .ms-q small { margin-left: auto; font-weight: 500; color: var(--u-ink-3); font-size: 11.5px; }
:where(.site).pg-messages .ms-qd { width: 8px; height: 8px; border-radius: 50%; background: var(--u-blue); box-shadow: 0 0 0 4px rgba(61,107,201,.15); }
:where(.site).pg-messages .ms-win.s1 .ms-q { opacity: 0; transform: translateY(6px); }
:where(.site).pg-messages .ms-cmp { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--u-line-2); background: rgba(255,255,255,.7); }
:where(.site).pg-messages .ms-in { flex: 1; height: 34px; border-radius: 10px; background: rgba(0,0,0,.045); display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; color: var(--u-ink-3); }

/* the notice on Kevin's phone: hangs below the window's bottom-left corner (only over the empty foot of the list),
   solid white, and appears/disappears without fading — it is a side note, the payoff happens inside the window */
:where(.site).pg-messages .ms-ping { position: absolute; left: -54px; top: calc(100% - 28px); z-index: 3; visibility: hidden; transform: translateY(22px) scale(.96); }
:where(.site).pg-messages .ms-ping.on { visibility: visible; transform: none; transition: transform .5s cubic-bezier(.2,1.2,.3,1); }
:where(.site).pg-messages .ms-ping .toast { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 22px 44px -16px rgba(28,28,30,.4); }

/* ---------- 3 · how it works: the campaign ---------- */
:where(.site).pg-messages .ms-camp { padding-top: 6px; }
:where(.site).pg-messages .ms-stp { display: flex; gap: 6px; }
:where(.site).pg-messages .ms-stp span { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--u-ink-3); background: rgba(0,0,0,.035); transition: background-color .3s, color .3s, box-shadow .3s; }
:where(.site).pg-messages .ms-stp i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: #fff; box-shadow: 0 0 0 1px var(--u-line); }
:where(.site).pg-messages .hf.s0 .ms-stp .ms-t0, :where(.site).pg-messages .hf.s1 .ms-stp .ms-t1, :where(.site).pg-messages .hf.s2 .ms-stp .ms-t2, :where(.site).pg-messages .hf.s3 .ms-stp .ms-t3, :where(.site).pg-messages .hf.s4 .ms-stp .ms-t3 { background: #fff; color: var(--u-ink); box-shadow: 0 0 0 1px var(--u-line), 0 2px 6px -2px rgba(0,0,0,.1); }
:where(.site).pg-messages .hf.s0 .ms-stp .ms-t0 i, :where(.site).pg-messages .hf.s1 .ms-stp .ms-t1 i, :where(.site).pg-messages .hf.s2 .ms-stp .ms-t2 i, :where(.site).pg-messages .hf.s3 .ms-stp .ms-t3 i, :where(.site).pg-messages .hf.s4 .ms-stp .ms-t3 i { background: var(--u-ink); color: #fff; box-shadow: none; }
:where(.site).pg-messages .ms-ps { position: relative; height: 500px; }
:where(.site).pg-messages .ms-p { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,1,.3,1); }
:where(.site).pg-messages .hf.s0 .ms-p.p0, :where(.site).pg-messages .hf.s1 .ms-p.p1, :where(.site).pg-messages .hf.s2 .ms-p.p2, :where(.site).pg-messages .hf.s3 .ms-p.p3, :where(.site).pg-messages .hf.s4 .ms-p.p3 { opacity: 1; transform: none; }
/* step 5 swaps the whole window for the rule builder */
:where(.site).pg-messages .hf-base .sc.ms-csc { transition: opacity .4s ease; }
:where(.site).pg-messages .hf-base .sc.ms-rsc { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .4s ease; }
:where(.site).pg-messages .ms-rsc .win { transform: translateY(26px); transition: transform .55s cubic-bezier(.2,1,.3,1); }
:where(.site).pg-messages .hf.s4 .sc.ms-csc { opacity: 0; }
:where(.site).pg-messages .hf.s4 .sc.ms-rsc { opacity: 1; }
:where(.site).pg-messages .hf.s4 .ms-rsc .win { transform: none; }
:where(.site).pg-messages .ms-ch { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
:where(.site).pg-messages .ms-ch small { font-size: 12px; font-weight: 500; color: var(--u-ink-3); }
/* p0 audience */
:where(.site).pg-messages .ms-p.p0 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
:where(.site).pg-messages .ms-rules { padding: 16px 18px; }
:where(.site).pg-messages .ms-rule { display: grid; grid-template-columns: 130px 70px 1fr; align-items: center; padding: 9px 0; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-messages .ms-rule:first-of-type { margin-top: 10px; }
:where(.site).pg-messages .ms-rule .ms-f { font-weight: 600; }
:where(.site).pg-messages .ms-rule .ms-op { color: var(--u-ink-3); }
:where(.site).pg-messages .ms-rule .chip { justify-self: start; background: #fff; box-shadow: 0 0 0 1px var(--u-line); height: 26px; padding: 0 11px; font-size: 12.5px; }
:where(.site).pg-messages .ms-add { padding: 9px 0 12px; border-top: 1px solid var(--u-line-2); font-size: 12.5px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-ppl { border-radius: 12px; background: var(--u-bg); padding: 4px 12px; }
:where(.site).pg-messages .ms-pr { display: grid; grid-template-columns: 26px 130px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 12.5px; }
:where(.site).pg-messages .ms-pr + .ms-pr { border-top: 1px solid var(--u-line-2); }
:where(.site).pg-messages .ms-pr .av { width: 26px; height: 26px; font-size: 10px; }
:where(.site).pg-messages .ms-pr b { font-weight: 600; }
:where(.site).pg-messages .ms-pr > span:nth-child(3) { color: var(--u-ink-3); }
:where(.site).pg-messages .ms-cnt { padding: 18px 20px; }
:where(.site).pg-messages .ms-cnt > small { font-size: 12.5px; font-weight: 600; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-cnt .big-n { font-size: 44px; margin-top: 2px; }
:where(.site).pg-messages .ms-cnt .big-n span { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-cb { margin-top: 14px; }
:where(.site).pg-messages .ms-cb > div { display: flex; justify-content: space-between; font-size: 13px; }
:where(.site).pg-messages .ms-cb b { font-weight: 700; font-variant-numeric: tabular-nums; }
:where(.site).pg-messages .ms-cb i { display: block; margin-top: 6px; height: 8px; border-radius: 4px; background: #ECECF0; overflow: hidden; }
:where(.site).pg-messages .ms-cb s { display: block; height: 100%; border-radius: 4px; background: var(--u-ok); }
:where(.site).pg-messages .ms-cnt p { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--u-bg); font-size: 12.5px; line-height: 1.4; color: var(--u-ink-2); }
:where(.site).pg-messages .ms-chn { margin-top: 14px; display: flex; gap: 6px; }
:where(.site).pg-messages .ms-chn .chip { background: var(--u-ink); color: #fff; }
/* p1 email builder */
:where(.site).pg-messages .ms-p.p1 { display: grid; grid-template-columns: 140px 1fr 220px; gap: 14px; }
:where(.site).pg-messages .ms-pal { display: flex; flex-direction: column; gap: 6px; }
:where(.site).pg-messages .ms-blk { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--u-line-2); font-size: 13px; font-weight: 600; }
:where(.site).pg-messages .ms-blk span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--u-bg); color: var(--u-ink-2); }
:where(.site).pg-messages .ms-cv2 { position: relative; border-radius: 14px; background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(0,0,0,.025) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(0,0,0,.025) 19px 20px), #EDEDF1; padding: 18px 0; overflow: hidden; }
:where(.site).pg-messages .ms-mail { width: 380px; margin: 0 auto; background: #fff; border-radius: 6px; padding: 18px 22px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
:where(.site).pg-messages .ms-mh { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--u-ink); text-align: center; }
:where(.site).pg-messages .ms-img { margin-top: 12px; height: 104px; border-radius: 6px; background: radial-gradient(60% 90% at 20% 30%, rgba(255,142,122,.7), transparent 70%), radial-gradient(60% 90% at 85% 70%, rgba(199,182,255,.85), transparent 70%), #FFE9E1;
  display: flex; align-items: flex-end; padding: 10px 12px; }
:where(.site).pg-messages .ms-img span { font-size: 13px; font-weight: 700; color: var(--u-ink); }
:where(.site).pg-messages .ms-mail h4 { margin-top: 14px; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
:where(.site).pg-messages .ms-tok { display: inline-block; padding: 0 6px; border-radius: 5px; background: #E8EEFA; color: #2F5E9E; font-size: 14px; line-height: 1.5; }
:where(.site).pg-messages .ms-mail p { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--u-ink-2); }
:where(.site).pg-messages .ms-drop { margin-top: 10px; height: 34px; border-radius: 6px; border: 1.5px dashed var(--u-blue); background: rgba(61,107,201,.06); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: var(--u-blue); }
:where(.site).pg-messages .ms-btn { display: inline-block; margin-top: 10px; padding: 9px 16px; border-radius: 8px; background: var(--u-ink); color: #fff; font-size: 12.5px; font-weight: 600; }
:where(.site).pg-messages .ms-mail > small { display: block; margin-top: 14px; font-size: 10.5px; color: var(--u-ink-3); text-align: center; }
:where(.site).pg-messages .ms-drop { position: relative; }
:where(.site).pg-messages .ms-drag { position: absolute; right: -44px; top: 8px; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; background: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 0 0 1.5px var(--u-blue), 0 14px 26px -10px rgba(0,0,0,.35); transform: rotate(-3deg); }
:where(.site).pg-messages .ms-side2 { padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--u-line-2); align-self: start; }
:where(.site).pg-messages .ms-side2 > b { display: block; margin-top: 8px; font-size: 15px; font-weight: 700; }
:where(.site).pg-messages .ms-side2 > small { display: block; font-size: 12px; color: var(--u-ink-3); margin-bottom: 6px; }
:where(.site).pg-messages .ms-side2 .kv { flex-direction: column; gap: 2px; }
:where(.site).pg-messages .ms-side2 .kv b { text-align: left; }
/* p2 schedule */
:where(.site).pg-messages .ms-p.p2 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; align-items: start; }
:where(.site).pg-messages .ms-when, :where(.site).pg-messages .ms-bat { padding: 16px 18px; }
:where(.site).pg-messages .ms-note { margin-top: 8px; font-size: 12.5px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-okt { display: inline-flex; align-items: center; gap: 4px; color: var(--u-ok) !important; }
:where(.site).pg-messages .ms-wu { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--u-bg); }
:where(.site).pg-messages .ms-wu > div:first-child { display: flex; justify-content: space-between; font-size: 12.5px; }
:where(.site).pg-messages .ms-wu > div:first-child span { color: var(--u-ink-3); }
:where(.site).pg-messages .ms-seg14 { margin-top: 8px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
:where(.site).pg-messages .ms-seg14 i { height: 10px; border-radius: 3px; background: #E2E2E8; }
:where(.site).pg-messages .ms-seg14 i.on { background: var(--u-ok); }
:where(.site).pg-messages .ms-hrs { margin-top: 16px; display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; height: 300px; }
:where(.site).pg-messages .ms-hrs > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
:where(.site).pg-messages .ms-hrs i { width: 100%; border-radius: 5px 5px 2px 2px; background: #E4E4EA; }
:where(.site).pg-messages .ms-hrs i.on { background: var(--u-blue); }
:where(.site).pg-messages .ms-hrs .off i { background: repeating-linear-gradient(-45deg, #D9D9DF 0 1.5px, #F1F1F4 1.5px 5px); border-radius: 5px; }
:where(.site).pg-messages .ms-hrs span { font-size: 11px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-hrs .off span { color: #A1A1A8; }
:where(.site).pg-messages .ms-leg { margin-top: 12px; display: flex; gap: 18px; font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-leg .lg.on { background: var(--u-blue); }
:where(.site).pg-messages .ms-leg .lg.q { background: repeating-linear-gradient(-45deg, #C9C9D0 0 1.5px, #F1F1F4 1.5px 4px); }
/* p3 results */
:where(.site).pg-messages .ms-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
:where(.site).pg-messages .ms-tile { padding: 14px 16px; }
:where(.site).pg-messages .ms-tile small { display: block; font-size: 12.5px; font-weight: 600; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-tile b { display: block; margin-top: 4px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
:where(.site).pg-messages .ms-tile span { font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-r2 { margin-top: 12px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
:where(.site).pg-messages .ms-opn { padding: 16px 18px; }
:where(.site).pg-messages .ms-opn .bars { height: 150px; margin-top: 14px; }
:where(.site).pg-messages .ms-opn .bars i.on { background: var(--u-blue); }
:where(.site).pg-messages .ms-clk { padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
:where(.site).pg-messages .ms-clk .ms-fui { width: 32px; height: 32px; }
:where(.site).pg-messages .ms-clk b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
:where(.site).pg-messages .ms-clk small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-reps { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
:where(.site).pg-messages .ms-reps span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
/* p5 the rule builder */
:where(.site).pg-messages .ms-n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--u-ink); color: #fff; font-size: 11px; font-weight: 700; flex: none; }
:where(.site).pg-messages .ms-auto { padding-top: 6px; }
:where(.site).pg-messages .ms-auto .pg-h .chip { margin-right: 4px; }
:where(.site).pg-messages .ms-ab { margin-top: 16px; display: grid; grid-template-columns: 1fr 330px; gap: 14px; align-items: start; }
:where(.site).pg-messages .ms-flow { padding: 8px 18px 16px; position: relative; }
:where(.site).pg-messages .ms-stg { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; padding: 14px 0; border-top: 1px solid var(--u-line-2); position: relative; }
:where(.site).pg-messages .ms-stg:first-child { border-top: 0; }
:where(.site).pg-messages .ms-stg em { align-self: start; justify-self: start; margin-top: 4px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--u-ink-2); background: #fff; box-shadow: 0 0 0 1px var(--u-line); border-radius: 6px; padding: 3px 7px; }
:where(.site).pg-messages .ms-stg small { display: block; margin-top: 6px; font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-sel { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--u-line); font-size: 13.5px; font-weight: 600; }
:where(.site).pg-messages .ms-sel b { min-width: 34px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--u-bg); box-shadow: inset 0 0 0 1.5px var(--u-blue); font-weight: 700; }
:where(.site).pg-messages .ms-sel i { font-style: normal; color: var(--u-ink-3); margin-left: 4px; }
:where(.site).pg-messages .ms-cnd { display: grid; grid-template-columns: 90px 40px 1fr; align-items: center; height: 36px; font-size: 13px; }
:where(.site).pg-messages .ms-cnd + .ms-cnd { border-top: 1px dashed var(--u-line-2); }
:where(.site).pg-messages .ms-cnd b { font-weight: 600; }
:where(.site).pg-messages .ms-cnd span:nth-child(2) { color: var(--u-ink-3); }
:where(.site).pg-messages .ms-cnd .chip { justify-self: start; background: #fff; box-shadow: 0 0 0 1px var(--u-line); height: 26px; padding: 0 11px; font-size: 12.5px; }
:where(.site).pg-messages .ms-add2 { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--u-blue); }
:where(.site).pg-messages .ms-acl { display: flex; flex-direction: column; gap: 8px; }
:where(.site).pg-messages .ms-ac { display: grid; grid-template-columns: 16px 20px 150px 1fr; column-gap: 10px; align-items: center; padding: 10px 12px 10px 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--u-line); font-size: 13px; }
:where(.site).pg-messages .ms-ac b { font-weight: 600; }
:where(.site).pg-messages .ms-ac .ms-v { font-weight: 500; color: var(--u-ink-2); }
:where(.site).pg-messages .ms-ac small { grid-column: 4; margin-top: 2px !important; }
:where(.site).pg-messages .ms-hd { color: #B4B4BB; display: grid; place-items: center; }
:where(.site).pg-messages .ms-pal2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 2px 0; }
:where(.site).pg-messages .ms-pal2 > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--u-blue); margin-right: 4px; }
:where(.site).pg-messages .ms-pal2 .chip { background: #fff; box-shadow: 0 0 0 1px var(--u-line); height: 26px; padding: 0 10px; font-size: 12px; }
:where(.site).pg-messages .ms-dry2 { padding: 16px 18px; }
:where(.site).pg-messages .ms-dry2 .ms-ch small { color: var(--u-ok); font-weight: 600; }
:where(.site).pg-messages .ms-dry2 .big-n { margin-top: 8px; font-size: 40px; }
:where(.site).pg-messages .ms-dry2 .big-n span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-dl { margin-top: 10px; }
:where(.site).pg-messages .ms-dr { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--u-line-2); }
:where(.site).pg-messages .ms-dr .av { width: 28px; height: 28px; font-size: 10.5px; flex: none; }
:where(.site).pg-messages .ms-dr b { display: block; font-size: 13px; font-weight: 600; }
:where(.site).pg-messages .ms-dr small { font-size: 11.5px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-dc { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
:where(.site).pg-messages .ms-dsum { margin-top: 4px; padding: 8px 12px; border-radius: 10px; background: var(--u-bg); }
:where(.site).pg-messages .ms-dsum .kv { margin: 0; padding: 4px 0; border-top: 0; }

/* ---------- 4 · detail pictures ---------- */
:where(.site).pg-messages .ms-nt { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 6px; align-items: center; padding: 8px 0; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-messages .ms-nt:first-of-type { margin-top: 8px; }
:where(.site).pg-messages .ms-nt b { font-weight: 600; }
:where(.site).pg-messages .ms-nt b small { display: block; font-weight: 500; font-size: 11.5px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-sw { width: 28px; height: 17px; border-radius: 9px; background: #D9D9DE; position: relative; flex: none; }
:where(.site).pg-messages .ms-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
:where(.site).pg-messages .ms-sw.on { background: var(--u-ok); }
:where(.site).pg-messages .ms-sw.on::after { left: 13px; }
:where(.site).pg-messages .ms-cc { height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; color: #A1A1A8; box-shadow: inset 0 0 0 1px var(--u-line); }
:where(.site).pg-messages .ms-cc.on { color: var(--u-ink); background: var(--u-bg); box-shadow: none; }
:where(.site).pg-messages .ms-foot { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--u-bg); font-size: 12px; color: var(--u-ink-2); display: flex; align-items: center; gap: 6px; }
:where(.site).pg-messages .ms-cs { display: grid; grid-template-columns: 52px 1fr; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-messages .ms-cs:first-of-type { margin-top: 8px; }
:where(.site).pg-messages .ms-cs b { font-weight: 600; }
:where(.site).pg-messages .ms-cs small { grid-column: 2; font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-cs .seg2u { font-size: 12px; }
:where(.site).pg-messages .ms-cs .seg2u span { padding: 4px 10px; }
:where(.site).pg-messages .ms-cs .seg2u span.on { color: var(--u-ok); }
:where(.site).pg-messages .ms-lg { margin-top: 4px; border-top: 1px solid var(--u-line-2); padding-top: 8px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--u-ink-2); }
:where(.site).pg-messages .ms-lg > div { display: flex; align-items: center; gap: 7px; }
:where(.site).pg-messages .ms-lg b { font-weight: 700; color: var(--u-ink); }
:where(.site).pg-messages .ms-to { margin-left: auto; font-weight: 600; color: var(--u-ink); white-space: nowrap; }
:where(.site).pg-messages .ms-cr { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-messages .ms-cr:first-of-type { margin-top: 8px; }
:where(.site).pg-messages .ms-cr > div { flex: 1; }
:where(.site).pg-messages .ms-cr b { display: block; font-weight: 600; }
:where(.site).pg-messages .ms-cr small { font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-mx { margin-top: 8px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 10px 6px; border-radius: 12px; background: var(--u-bg); text-align: center; }
:where(.site).pg-messages .ms-mx b { display: block; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
:where(.site).pg-messages .ms-mx small { font-size: 10.5px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-rl { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--u-line-2); font-size: 13px; }
:where(.site).pg-messages .ms-rl:first-of-type { margin-top: 8px; }
:where(.site).pg-messages .ms-rl > div { flex: 1; }
:where(.site).pg-messages .ms-rl b { display: block; font-weight: 600; }
:where(.site).pg-messages .ms-rl small { font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-rl + .ms-foot { color: var(--u-ok); font-weight: 600; }
:where(.site).pg-messages .ms-sc { margin-top: 10px; display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
:where(.site).pg-messages .ms-sc span { height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--u-bg); color: var(--u-ink-2); }
:where(.site).pg-messages .ms-sc span.pick { background: var(--u-ink); color: #fff; }
:where(.site).pg-messages .ms-sr { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; box-shadow: 0 0 0 1px var(--u-line); font-size: 13px; }
:where(.site).pg-messages .ms-sr > div { flex: 1; min-width: 0; }
:where(.site).pg-messages .ms-sr b { display: block; font-weight: 600; }
:where(.site).pg-messages .ms-sr small { font-size: 12px; color: var(--u-ink-3); }
:where(.site).pg-messages .ms-sr + .kv { margin-top: 12px; }

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  :where(.site).pg-messages .ms-hero .fh-stage { height: 356px; }
  :where(.site).pg-messages .ms-ping { display: none; }
  :where(.site).pg-messages .det-stick .dg-pic > *, :where(.site).pg-messages .dg-pic > .mini { width: 100% !important; }
  :where(.site).pg-messages .ms-nt { grid-template-columns: 30px 1fr auto auto; }
  :where(.site).pg-messages .ms-lg > div { flex-wrap: wrap; }
  :where(.site).pg-messages .ms-mx { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  :where(.site).pg-messages .ms-sc span { height: 26px; font-size: 11.5px; }
}
