/* /polls: the Polls & Feedback page's animated sections (web-polls.php) on the Oppys demo engine */
/* 1. A poll in an email: tap Evenings, the vote counts, the results */
.pe-demo { background: #f4f3f8; overflow: hidden; }
.pe-mail { padding: 12px 14px; }
.pe-from { display: flex; justify-content: space-between; font-size: 12px; color: #888; margin-bottom: 6px; }
.pe-from b { color: #333; }
.pe-subj { font-size: 15px; font-weight: 800; color: #1d1b2b; margin-bottom: 8px; }
.pe-text { font-size: 12.5px; color: #555; line-height: 1.45; margin-bottom: 12px; }
.pe-q { font-size: 15px; font-weight: 800; text-align: center; color: #222; margin-bottom: 10px; }
.pe-opt { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; margin-bottom: 7px; border: 2px solid var(--brand, #6d4ec9); border-radius: 10px; background: #fff; color: var(--brand, #6d4ec9); font-weight: 800; font-size: 14px; transition: background .2s, color .2s; }
.pe-opt span { font-size: 17px; }
.pe-demo[data-phase="tap"] .pe-pick { background: var(--brand, #6d4ec9); color: #fff; }
.pe-page { position: absolute; left: 0; right: 0; bottom: 0; top: 34px; background: #fff; padding: 22px 14px; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.12); transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.pe-page.on { transform: none; }
.pe-page-q { font-size: 16px; font-weight: 800; text-align: center; margin-bottom: 14px; }
.pe-res { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin-bottom: 8px; border: 2px solid #e5e2ef; border-radius: 10px; overflow: hidden; font-size: 13.5px; font-weight: 700; color: #333; }
.pe-res.mine { border-color: var(--brand, #6d4ec9); }
.pe-res > span, .pe-res > b { position: relative; z-index: 1; }
.pe-res > b { color: #666; font-size: 12.5px; }
.pe-res i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(109,78,201,.14); transition: width 1s ease; }
.pe-demo[data-phase="results"] .pe-res i { width: var(--w); }
.pe-thanks { text-align: center; color: #1f9d5c; font-weight: 800; font-size: 13px; margin-top: 14px; }

/* 2. Messages: the poll card and the reaction bar everyone shares; a heart, then a rating */
.pmx-demo { background: #f4f3f8; overflow: hidden; }
.pmx-card { margin: 12px; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.pmx-date { font-size: 11px; color: #999; }
.pmx-title { font-size: 14px; font-weight: 700; color: #333; margin: 2px 0 10px; }
.pmx-poll { background: #faf9fd; border: 1px solid #e6e2f3; border-radius: 10px; padding: 9px; }
.pmx-q { font-size: 13px; font-weight: 800; margin-bottom: 7px; }
.pmx-opt { display: flex; justify-content: space-between; padding: 7px 9px; margin-bottom: 5px; border: 2px solid #e5e2ef; border-radius: 8px; background: #fff; font-size: 12.5px; font-weight: 600; }
.pmx-opt.mine { border-color: var(--brand, #6d4ec9); }
.pmx-opt b { color: #666; font-size: 11.5px; }
.pmx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: -4px 14px 10px; flex: 0 0 auto; }
.pmx-add { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.pmx-add svg { width: 17px; height: 17px; fill: #9a96a8; }
.pmx-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border: 1px solid #e2e0ea; border-radius: 14px; background: #fff; font-size: 13px; transition: border-color .2s, background .2s, transform .2s; }
.pmx-chip b { font-size: 11px; color: #555; }
.pmx-chip.mine, .pmx-heart.on { border-color: var(--brand, #6d4ec9); background: #f1edfb; }
.pmx-heart.on { transform: scale(1.08); }
.pmx-chip .pmx-n1 { display: none; }
.pmx-up.on .pmx-n0 { display: none; }
.pmx-up.on .pmx-n1 { display: inline; }
.pmx-fb { margin: 0 12px; padding: 12px; background: #fff; border-radius: 14px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.06); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s; }
.pmx-fb.on { opacity: 1; transform: none; }
.pmx-fb-h { font-size: 13px; font-weight: 800; }
.pmx-stars { color: #f5b301; font-size: 20px; letter-spacing: 2px; }
.pmx-fb-c { font-size: 12px; color: #555; margin-top: 4px; }

/* 3. Analytics > Feedback: the averages, rows arriving, then a poll's results */
.pf-demo { position: relative; width: 100%; max-width: 440px; margin: 0 auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.18); overflow: hidden; text-align: left; }
.pf-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f3f2f8; border-bottom: 1px solid #ebe9f2; }
.pf-top i { width: 9px; height: 9px; border-radius: 50%; background: #d6d3e0; }
.pf-top b { margin-left: 8px; font-size: 13px; color: #444; letter-spacing: .04em; text-transform: uppercase; }
.pf-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px 6px; }
.pf-kpis div { background: #f7f6fb; border-radius: 10px; padding: 9px 6px; text-align: center; }
.pf-kpis b { display: block; font-size: 19px; color: #222; }
.pf-kpis span { font-size: 10.5px; color: #777; text-transform: uppercase; letter-spacing: .03em; }
.pf-tabs { display: flex; gap: 6px; padding: 6px 14px; }
.pf-tabs span { padding: 3px 11px; border-radius: 14px; border: 1px solid #ddd; font-size: 11.5px; font-weight: 700; color: #555; transition: background .2s, color .2s; }
.pf-demo:not([data-phase="polls"]) .pf-tab-all, .pf-demo[data-phase="polls"] .pf-tab-polls { background: var(--brand, #6d4ec9); border-color: var(--brand, #6d4ec9); color: #fff; }
.pf-list { padding: 4px 14px 12px; min-height: 190px; }
.pf-row { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f0eef4; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.pf-row.on { opacity: 1; transform: none; }
.pf-av { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; background: hsl(var(--h), 55%, 52%); }
.pf-name { font-size: 12.5px; font-weight: 700; color: #333; }
.pf-name em { font-style: normal; font-size: 9.5px; font-weight: 800; text-transform: uppercase; padding: 1px 6px; border-radius: 7px; margin-left: 4px; }
.pf-name em.poll { background: #ede9fe; color: #5b3fb8; }
.pf-name em.fb { background: #e6f6ee; color: #1f7a4c; }
.pf-stars { color: #f5b301; font-size: 13px; }
.pf-stars span { color: #ddd9e6; }
.pf-c { font-size: 12px; color: #444; }
.pf-pick { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 10px; background: #f1edfb; font-size: 11.5px; font-weight: 600; }
.pf-poll { position: absolute; left: 14px; right: 14px; bottom: 12px; padding: 12px; background: #fff; border: 1px solid #e6e2f3; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.15); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s; }
.pf-poll.on { opacity: 1; transform: none; }
.pf-poll-q { font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.pf-res { position: relative; display: flex; justify-content: space-between; padding: 6px 9px; margin-bottom: 5px; background: #f7f6fb; border-radius: 7px; overflow: hidden; font-size: 12px; }
.pf-res > span, .pf-res > b { position: relative; z-index: 1; }
.pf-res i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(109,78,201,.18); transition: width 1s ease .2s; }
.pf-poll.on .pf-res i { width: var(--w); }
/* The app phone is a flex column: the card and the rating keep their full height */
.pmx-card, .pmx-fb, .op-appbar { flex: 0 0 auto; }
.pf-demo { width: 420px; max-width: 100%; }
