/* The trainer's messenger (plan 2026-11-12), shared by the Mini App and the Tone app (2026-11-23); moved from miniapp/styles.css. */
.msgr,.msgr-home{--stage:#F6F3FA;--ink:#2E2A36;--mine:#EADDFF;--theirs:#FFFFFF;--cue:#6C4FA3;--tray:#FFF4E0;--tray-line:#F0D9AE}
html[data-theme=dark] .msgr,html[data-theme=dark] .msgr-home{--stage:#1F1C24;--ink:#EDE8F5;--mine:#4A3D66;--theirs:#2B2731;--cue:#C9B2FF;--tray:#2C261D;--tray-line:#4A3E2A}
.sheet.chat.msgr{position:fixed;inset:0;z-index:5;height:auto;min-height:0;display:flex;flex-direction:column;gap:0;background:var(--stage);color:var(--ink);margin:0;padding:var(--safe-top,0px) var(--safe-right,0px) 0 var(--safe-left,0px)}
.msgr-head{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid var(--line)}
.msgr-head .link-btn{margin-left:auto}
.msgr-back{margin-left:-6px}
.msgr-name{margin:0;display:flex;flex-direction:column;line-height:1.1}
.msgr-name strong{font-family:Garamond,'EB Garamond',serif;font-weight:500;font-size:22px}
.msgr-name small{color:var(--n600);font-size:13px}
.msgr-ava{--h:270;flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-family:Garamond,'EB Garamond',serif;font-size:21px;color:hsl(var(--h) 45% 28%);background:hsl(var(--h) 70% 88%)}
.msgr-ava.big{width:48px;height:48px;font-size:27px}
html[data-theme=dark] .msgr-ava{color:hsl(var(--h) 70% 88%);background:hsl(var(--h) 30% 30%)}
.msgr-ava{position:relative;overflow:hidden;isolation:isolate}
.msgr-ava.pic{background:#E6DEF2}
.msgr-ava .msgr-pic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 38%;transform:scale(1.8);transform-origin:50% 38%;border-radius:50%;user-select:none;-webkit-user-drag:none}
.msgr-ava.pic .msgr-letter{visibility:hidden}
.msgr-ava.face{width:52px;height:52px;font-size:28px;box-shadow:0 0 0 2px var(--stage),0 0 0 3.5px var(--cue)}
.msgr-ava.mini{width:28px;height:28px;font-size:16px;margin-top:2px}
.msgr-ava .msgr-pic.fade{animation:msgrFace .42s ease-out both}
@keyframes msgrFace{from{opacity:0;transform:scale(1.68)}to{opacity:1;transform:scale(1.8)}}
@media (prefers-reduced-motion:reduce){.msgr-ava .msgr-pic.fade{animation:none}.msgr-ava .msgr-pic.was{display:none}}
.msgr-from{display:flex;align-items:flex-start;gap:6px;align-self:flex-start;max-width:90%;min-width:0}
.msgr .msgr-from .dlg-line{max-width:none;min-width:0}
.msgr .dlg-line.cont{margin-left:34px;max-width:calc(90% - 34px)}
.msgr-log{flex:1;min-height:0;overflow-y:auto;padding:14px 12px 10px}
.msgr .dlg{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.msgr .dlg-line{white-space:pre-wrap;overflow:visible;overflow-wrap:anywhere;font-size:16px;line-height:1.4;max-width:82%;padding:9px 12px;margin:0;border-radius:16px 16px 16px 5px;background:var(--theirs);color:var(--ink);align-self:flex-start;box-shadow:0 1px 0 #312d370d}
.msgr .dlg-line.me{align-self:flex-end;background:var(--mine);border-radius:16px 16px 5px 16px}
.msgr-typing{margin:10px 2px 0;font-family:Garamond,'EB Garamond',serif;font-style:italic;font-size:17px;color:var(--n600)}
.msgr-tray{flex:none;background:var(--tray);border-top:1.5px dashed var(--tray-line);padding:12px 12px calc(12px + var(--safe-bottom));display:flex;flex-direction:column;gap:8px}
.msgr-tray.waiting .msgr-wish{opacity:.5}
.msgr-cues{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.msgr-cue{width:100%;min-height:48px;text-align:left;font:inherit;font-size:16px;line-height:1.35;color:var(--ink);background:var(--theirs);border:1.5px solid var(--cue);border-radius:14px;padding:10px 13px;cursor:pointer}
.msgr-cue:active{background:var(--mine)}
.msgr-cue:disabled{opacity:.5}
.msgr-cues.rise li{animation:msgrRise .32s ease-out both}
.msgr-cues.rise li:nth-child(2){animation-delay:.05s}
.msgr-cues.rise li:nth-child(3){animation-delay:.1s}
@keyframes msgrRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.msgr-cues.rise li{animation:none}}
.msgr-more{align-self:flex-start;margin:0 2px;min-height:44px}
.msgr-note{margin:0;color:var(--n600)}
.msgr-wish{display:flex;align-items:center;gap:4px}
.msgr-wish input{flex:1;min-width:0;min-height:44px;border:1.5px dashed var(--tray-line);border-radius:22px;padding:0 14px;font-size:15px;background:var(--theirs);color:var(--ink)}
.msgr-wish input:focus{border-style:solid;border-color:var(--cue);outline:0}
.sheet.msgr-home{position:fixed;inset:0;z-index:5;overflow-y:auto;overflow-x:hidden;background:var(--stage);color:var(--ink);margin:0;padding:calc(14px + var(--safe-top,0px)) calc(16px + var(--safe-right,0px)) calc(24px + var(--safe-bottom,0px)) calc(16px + var(--safe-left,0px));gap:6px;font-size:15px}
.msgr-home-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.msgr-title{margin:0;font-family:Garamond,'EB Garamond',serif;font-weight:500;font-size:34px}
.msgr-list{display:flex;flex-direction:column;margin-top:12px;border-top:1px solid var(--line)}
.msgr-row{display:flex;gap:12px;align-items:center;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:12px 2px;color:inherit;font:inherit;position:relative}
.msgr-row .content{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.msgr-row-top{display:flex;justify-content:space-between;gap:8px}
.msgr-row-top strong{font-size:17px}
.msgr-row-top small{color:var(--n600);flex:none}
.msgr-row-last{color:var(--n600);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msgr-row.unread .msgr-row-last{color:var(--ink);font-weight:600}
.msgr-row.unread::after{content:'';position:absolute;right:4px;bottom:16px;width:9px;height:9px;border-radius:50%;background:var(--cue)}
.msgr-picker{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.msgr-people{display:flex;flex-direction:column}
.msgr-person{display:flex;gap:12px;align-items:center;width:100%;min-height:56px;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:10px 2px;color:inherit;font:inherit;box-sizing:border-box;overflow:hidden}
.msgr-person .content{flex:1;min-width:0;display:flex;flex-direction:column}
.msgr-person .content span{color:var(--n600);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msgr-person small{color:var(--n600);font-weight:400}
.msgr-empty{margin-top:24px}
.msgr-empty p{font-size:17px;max-width:30ch}
.msgr-tray-label{margin:0 2px;font-size:12px;font-weight:600;color:var(--n600)}
.msgr-cue.ghost{display:block;min-height:48px;box-sizing:border-box;background:transparent;border-style:dashed;border-color:var(--tray-line);cursor:default}
.msgr-done{margin:0;font-size:16px;line-height:1.4}
.msgr-tray.quiz,.msgr-tray.scored{max-height:min(74%,560px);min-height:0}
.msgr-tray.quiz .msgr-quiz{flex:1 1 auto;min-height:0}
.msgr-tray.quiz .msgr-chips,.msgr-tray.scored .msgr-review{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.msgr-tray.quiz .msgr-chips{padding:1px}
.msgr-quiz{display:flex;flex-direction:column;gap:8px}
.msgr-quiz-q{margin:0 2px;font-size:17px;font-weight:700;line-height:1.3}
.msgr-quiz-sub{margin:-6px 2px 0;font-size:13px;color:var(--n600)}
.msgr-chips{display:flex;flex-wrap:wrap;gap:6px}
.msgr-chip{display:inline-flex;align-items:center;gap:5px;min-height:44px;max-width:100%;box-sizing:border-box;padding:8px 13px;font:inherit;font-size:14.5px;line-height:1.25;text-align:left;color:var(--ink);background:var(--theirs);border:1.5px solid var(--tray-line);border-radius:22px;cursor:pointer}
.msgr-chip.on{background:var(--mine);border-color:var(--cue);font-weight:600}
.msgr-chip.none{border-style:dashed;background:transparent}
.msgr-chip.none.on{border-style:solid;background:var(--mine)}
.msgr-chip .ti{flex:none;color:var(--cue)}
.msgr-chip:focus-visible,.msgr-quiz-act .btn:focus-visible{outline:2px solid var(--cue);outline-offset:2px}
.msgr-quiz-act{display:flex;gap:8px;margin-top:2px}
.msgr-quiz-act .btn{flex:1 1 0;min-height:46px}
.msgr-quiz-act .btn.primary{flex:1.6 1 0}
.msgr-review{display:flex;flex-direction:column;gap:8px}
.msgr-stamp{margin:2px 0 0;align-self:flex-start;transform:rotate(-2deg);border:2px solid var(--cue);border-radius:8px;padding:3px 12px;color:var(--cue);font-size:21px;line-height:1.2;letter-spacing:.01em;animation:msgrStamp .34s cubic-bezier(.2,1.4,.4,1) both}
.msgr-stamp strong{font-weight:800}
@keyframes msgrStamp{from{opacity:0;transform:rotate(-2deg) scale(1.25)}to{opacity:1;transform:rotate(-2deg) scale(1)}}
@media (prefers-reduced-motion:reduce){.msgr-stamp{animation:none}}
.msgr-verdict{margin:0;font-size:16px;font-weight:600;line-height:1.35}
.msgr-signs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.msgr-signs li{display:flex;align-items:flex-start;gap:7px;font-size:14.5px;line-height:1.35;padding:6px 10px;border-radius:10px}
.msgr-signs li .ti{flex:none;margin-top:2px}
.msgr-signs li.hit{background:var(--mine)}
.msgr-signs li.hit .ti{color:var(--cue)}
.msgr-signs li.miss{border:1.5px dashed var(--tray-line);color:var(--n600)}
.msgr-tip{display:flex;gap:7px;align-items:flex-start;margin:0;font-size:14.5px;line-height:1.4}
.msgr-tip .ti{flex:none;margin-top:2px;color:var(--cue)}
.msgr-picker .chips.msgr-sets .chip{font-size:13.5px}
#screen .filter-chips,.msgr-picker .chips,.msgr-rating .chips{display:flex;flex-wrap:nowrap;gap:2px;padding:2px;margin:0 0 12px;background:var(--r-seg);border-radius:12px;overflow:visible}
#screen .filter-chips .chip,.msgr-picker .chips .chip,.msgr-rating .chips .chip{flex:1 1 auto;min-width:0;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;border:0;border-radius:10px;background:transparent;color:var(--r-ink);font-size:14px;font-weight:500;white-space:nowrap;box-shadow:none}
#screen .filter-chips .chip.selected,.msgr-picker .chips .chip.selected,.msgr-rating .chips .chip.selected{background:var(--r-seg-on);color:var(--r-ink);font-weight:600;border:0;padding:0 8px;box-shadow:0 1px 2px #1d1b2024}
.msgr-title{font-size:30px}
.msgr-home-head{margin-bottom:6px}
.sheet.msgr-home>.btn{width:100%;min-height:44px;font-size:15px;margin:0}
.msgr-list{margin-top:8px}
.msgr-row{min-height:64px;padding:10px 2px}
.msgr-row-top strong{font-size:16px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msgr-row-top small{font-size:13px}
.msgr-picker{margin:10px 0 4px;gap:8px}
.msgr-picker .chips{margin:0}
.msgr-person{min-height:60px;padding:8px 2px}
.msgr-person strong{font-weight:600;font-size:16px}
.msgr-head{min-height:56px;padding:6px 8px 6px 12px}
.msgr-name{flex:1;min-width:0}
.msgr-name strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msgr-head .link-btn{flex:none;min-height:44px;padding:0 8px}
.msgr-cue{font-size:15px;min-height:44px;padding:9px 12px}
.msgr-cues{gap:6px}
.msgr-tray{gap:6px;padding-top:10px}
.msgr .dlg-line{font-size:15px}
.msgr-row.unread .msgr-row-last{padding-right:18px}
@media(max-height:600px){.msgr-tray .msgr-more{min-height:44px}.msgr-cue{padding:8px 12px}}
.msgr-picker .chips.msgr-goals{flex-wrap:wrap}
.msgr-picker .chips.msgr-goals .chip{flex:1 1 45%;font-size:13.5px;white-space:normal;text-align:center;line-height:1.2}
.sheet.msgr-insights{position:fixed;inset:0;z-index:5;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:12px;background:var(--stage);color:var(--ink);margin:0;padding:var(--safe-top,0px) calc(16px + var(--safe-right,0px)) calc(24px + var(--safe-bottom,0px)) calc(16px + var(--safe-left,0px));font-size:15px}
.msgr-insights .msgr-head{margin:0 -16px}
.sheet.msgr-insights>.btn{width:100%;min-height:44px;margin:0}
.msgr-insights h3{margin:8px 0 0;font-size:16px}
.msgr-sent{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.msgr-sent li{line-height:1.4;overflow-wrap:anywhere}
.msgr-tools{margin-left:auto;display:flex;align-items:center;gap:2px;flex:none}
.msgr-tools .icon-btn{width:44px;height:44px}
.msgr-likes{font-size:14px;line-height:1;padding:0 6px;color:var(--ink);white-space:nowrap}
.msgr .msgr-xp{align-self:flex-start;margin:-2px 0 2px 34px;font-size:12.5px;line-height:1.3;color:var(--n400);animation:msgrRise .32s ease-out both}
.msgr-trail{margin:0;font-size:15px;letter-spacing:1px;color:var(--n400);overflow-wrap:anywhere}
.msgr-rule{margin:0;font-size:13px}
.msgr-sent.flat li{color:var(--n400)}
@media (prefers-reduced-motion:reduce){.msgr .msgr-xp{animation:none}}
.msgr-connect { margin: 2px 0 8px; font-size: 13px; }
.msgr-connect .link-btn { color: inherit; opacity: .75; text-decoration: underline; }
/* «Новое сообщение»: карточки «Кого уломаем?», досье, ставки (flat, thin rules, the app's tokens) */
.msgr-card{display:flex;gap:12px;align-items:center;width:100%;min-height:72px;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:10px 2px;color:inherit;font:inherit;box-sizing:border-box;overflow:hidden;cursor:pointer}
.msgr-card .content{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.msgr-card strong{font-size:17px;font-weight:600}
.msgr-hook{color:var(--n600);font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.msgr-rate{color:var(--cue);font-size:13px;font-weight:600}
.msgr-hot{font-size:13px;letter-spacing:1px;white-space:nowrap}
.msgr-card:focus-visible,.msgr-stake:focus-visible,.msgr-dossier .icon-btn:focus-visible{outline:2px solid var(--cue);outline-offset:2px}
.sheet.msgr-dossier{display:flex;flex-direction:column;gap:10px}
.msgr-dossier-top{display:flex;gap:12px;align-items:center}
.msgr-dossier-top h2{margin:0;font-family:Garamond,'EB Garamond',serif;font-weight:500;font-size:26px}
.msgr-dossier-top h2 small{font-size:14px;color:var(--n600);font-family:inherit}
.msgr-dossier-top p{margin:2px 0 0;color:var(--n600);line-height:1.35;overflow-wrap:anywhere}
.msgr-dossier h3{margin:8px 0 0;font-family:Garamond,'EB Garamond',serif;font-weight:500;font-size:20px}
.msgr-stakes{display:flex;flex-direction:column;gap:6px}
.msgr-stake{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;width:100%;min-height:48px;box-sizing:border-box;padding:8px 12px;font:inherit;color:#302C37;background:transparent;border:1.5px solid var(--line);border-radius:14px;text-align:left;cursor:pointer}
.msgr-stake.on{background:#EADDFF;border-color:var(--cue);font-weight:600}
.msgr-stake.locked{border-style:dashed;cursor:not-allowed;color:var(--n600)}
.msgr-stake small{flex:1 1 100%;font-size:13px;color:var(--n600)}
.msgr-stake-ic{font-size:20px}
.msgr-stake .msgr-hot{margin-left:auto}
.msgr-dos{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.msgr-dos li{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline;min-height:44px;box-sizing:border-box;padding:8px 2px;border-bottom:1px solid var(--line)}
.msgr-dos small{margin-left:auto;color:var(--n600)}
.msgr-dos-line,.msgr-best{margin:0;line-height:1.4}
.sheet.msgr-dossier>.btn.primary{width:100%;min-height:48px;margin-top:6px;background:#EADDFF;color:#302C37}
/* «Новое сообщение»: mission strip (Искра, flags, cringe, give up) */
.msgr-mission{flex:none;padding:8px 12px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px;font-size:14px}
.msgr-mission p{margin:0}
.msgr-spark-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-weight:600}
.msgr-turn{color:var(--n600);font-weight:400}
.msgr-bar{position:relative;height:10px;border-radius:5px;background:var(--mine)}
.msgr-bar b{position:absolute;left:0;top:0;bottom:0;border-radius:5px;background:var(--cue);transition:width .3s ease}
.msgr-mark{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:var(--n600);opacity:.5}
.msgr-mark.need{width:3px;margin-left:-1.5px;opacity:1;background:var(--ink)}
.msgr-spark.refused .msgr-bar b{background:var(--n600);opacity:.5}
.msgr-delta{font-weight:700}.msgr-delta.up{color:#1E7A46}.msgr-delta.down{color:#B3261E}
html[data-theme=dark] .msgr-delta.up{color:#7FD6A0}html[data-theme=dark] .msgr-delta.down{color:#FF9A92}
.msgr-chip-no{display:inline-block;padding:3px 10px;border-radius:12px;background:var(--n600);color:var(--stage);font-weight:600}
.msgr-flag.green{color:#1E7A46}.msgr-flag.red{color:#B3261E}
html[data-theme=dark] .msgr-flag.green{color:#7FD6A0}html[data-theme=dark] .msgr-flag.red{color:#FF9A92}
.msgr-cringe{display:flex;align-items:center;gap:5px;color:var(--n600)}
.msgr-cringe i{width:12px;height:12px;border-radius:50%;border:1.5px solid var(--n600)}
.msgr-cringe i.on{background:#B3261E;border-color:#B3261E}
.msgr-event{color:var(--n600);font-style:italic}
.msgr-giveup,.msgr-confirm{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.msgr-giveup .btn,.msgr-confirm .btn{min-height:44px;min-width:44px}
.msgr-confirm span{flex:1 1 100%}
.msgr-cue-tag{display:block;font-size:12px;font-weight:600;color:var(--n600);margin-bottom:2px}
.msgr-cue.st-insist{border-color:#B3261E;color:#B3261E}
.msgr-cue.st-insist .msgr-cue-tag{color:#B3261E}
html[data-theme=dark] .msgr-cue.st-insist,html[data-theme=dark] .msgr-cue.st-insist .msgr-cue-tag{color:#FF9A92;border-color:#FF9A92}
@keyframes msgr-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.msgr-spark.shake{animation:msgr-shake .35s ease 1}
@media (prefers-reduced-motion:reduce){.msgr-spark.shake{animation:none}.msgr-bar b{transition:none}}

.msgr-ending{flex:none;display:flex;flex-direction:column;gap:8px;padding:14px 12px calc(14px + var(--safe-bottom));border-top:1.5px dashed var(--tray-line);background:var(--tray)}
.msgr-ending p,.msgr-ending-title{margin:0}
.msgr-ending-title{font-size:20px;line-height:1.25}
.msgr .msgr-ending .msgr-xp{margin:0;font-size:16px;font-weight:700;color:var(--ink);animation:none}
.msgr-found{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:14px}
.msgr-counts,.msgr-rarity,.msgr-rank{font-size:14px}
.msgr-ending-act{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.msgr-ending-act .btn{min-height:44px;flex:1 1 auto}
.msgr-click{position:absolute;left:50%;top:40%;transform:translateX(-50%);margin:0;padding:8px 16px;border-radius:999px;background:#000;color:#fff;font-weight:700;z-index:5;animation:msgr-click .7s ease-out both}
@keyframes msgr-click{0%{opacity:0;transform:translateX(-50%) scale(.8)}30%{opacity:1;transform:translateX(-50%) scale(1.05)}100%{opacity:1;transform:translateX(-50%) scale(1)}}
.msgr-fade{position:absolute;inset:0;z-index:50;background:#000;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:24px;text-align:center;animation:msgr-fade 1.2s ease-in both}
.msgr-fade.card{animation:none}
.msgr-fade p{margin:0;font-size:20px;line-height:1.4;max-width:28em}
.msgr-fade-skip{color:#bbb}
@keyframes msgr-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.msgr-fade,.msgr-click{animation:none}}

/* «Рейтинг» and the quest card (T8.2) */
.msgr-rating .chips.msgr-boards{flex-wrap:wrap}
.msgr-rating .chips.msgr-boards .chip{flex:1 1 40%;font-size:13.5px;white-space:normal;line-height:1.2}
.msgr-quest{display:flex;flex-direction:column;gap:6px;margin:0 0 12px;padding:14px;border:1.5px solid var(--cue);border-radius:16px;background:var(--theirs)}
.msgr-quest p{margin:0}
.msgr-quest-kind{font-size:13.5px;font-weight:600;color:var(--cue)}
.msgr-quest-kind span{font-weight:500}
.msgr-quest-name{margin:0;font-family:Garamond,'EB Garamond',serif;font-weight:500;font-size:26px}
.msgr-quest-name small{font-family:inherit;font-size:15px;font-weight:500}
.msgr-quest-mod{font-style:italic}
.msgr-quest-stat:empty{display:none}
.msgr-quest-status{font-weight:600}
.msgr-quest .btn{width:100%;min-height:44px;margin-top:4px}
.msgr-nick{margin:0 0 8px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--theirs)}
.msgr-nick label{display:block;font-size:13px;margin-bottom:4px}
.msgr-nick-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.msgr-nick-name{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;overflow-wrap:anywhere}
.msgr-nick-row input{flex:1 1 100%;min-width:0;min-height:44px;box-sizing:border-box;border:1.5px solid var(--tray-line);border-radius:12px;padding:0 12px;font-size:16px;background:var(--stage);color:var(--ink)}
.msgr-nick-row input:focus-visible{border-color:var(--cue);outline:2px solid var(--cue);outline-offset:2px}
.msgr-nick-row .btn{flex:1 1 auto;min-height:44px}
.msgr-nick-name+.btn{flex:none}
.msgr-nick-err{margin:6px 0 0;color:#B3261E;font-size:14px}
html[data-theme=dark] .msgr-nick-err{color:#FFB4AB}
.msgr-nick-hint{margin:6px 0 0;font-size:13px}
.msgr-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;box-sizing:border-box;margin:0 0 12px;padding:6px 12px;font:inherit;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:14px;text-align:left;cursor:pointer}
.msgr-switch:disabled{opacity:.5}
.msgr-knob{flex:none;position:relative;width:44px;height:26px;border-radius:13px;background:var(--n500,#7f7b81);transition:background .15s}
.msgr-knob::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s}
.msgr-switch[aria-checked=true] .msgr-knob{background:var(--cue)}
.msgr-switch[aria-checked=true] .msgr-knob::after{transform:translateX(18px)}
.msgr-switch:focus-visible,.msgr-quest .btn:focus-visible,.msgr-rating .chip:focus-visible,.msgr-rating .btn:focus-visible,.msgr-rating .icon-btn:focus-visible{outline:2px solid var(--cue);outline-offset:2px}
.msgr-rlist{list-style:none;margin:0;padding:0}
.msgr-rrow,.msgr-you{display:flex;align-items:center;gap:10px;min-height:44px;box-sizing:border-box;padding:6px 8px;border-bottom:1px solid var(--line)}
.msgr-rrow.me{background:var(--mine);border-radius:10px}
.msgr-rrank{flex:none;width:34px;font-variant-numeric:tabular-nums;font-weight:600;color:var(--cue)}
.msgr-rnick{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.msgr-rscore{flex:none;font-variant-numeric:tabular-nums;font-weight:600;text-align:right}
.msgr-you{position:sticky;bottom:0;margin-top:10px;border:1.5px solid var(--cue);border-radius:14px;background:var(--stage);box-shadow:0 -6px 8px -6px #1d1b2033}
.msgr-rtag{flex:none;padding:2px 10px;border-radius:10px;background:var(--cue);color:var(--stage);font-weight:700;font-size:13px}
.msgr-empty-board{margin:24px 0;text-align:center;font-weight:500}
.msgr-roast{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1.5px solid var(--tray-line);border-radius:14px;background:var(--surface,transparent)}
.msgr-roast p{margin:0;font-size:15px;line-height:1.35}
.msgr-roast-badge{align-self:flex-start;padding:2px 10px;border-radius:999px;font-size:13px;font-weight:700;background:var(--ink);color:var(--tray)}
.msgr-roast .btn{min-height:44px;align-self:stretch}
/* T10.3: the look ladder portrait (crossfade between looks; instant under reduced motion) */
.msgr-portrait{flex:none;border-bottom:1px solid var(--line);padding:4px 12px 8px}
.msgr-portrait-t{min-height:44px;padding:0 4px}
.msgr-portrait-body{position:relative;overflow:hidden;border-radius:14px;height:min(34vh,260px);background:var(--n100,#EEE)}
.msgr-portrait-body .msgr-pic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 25%;user-select:none;-webkit-user-drag:none}
.msgr-portrait-body .msgr-pic.look-in{animation:msgrLook .4s ease-out both}
@keyframes msgrLook{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.msgr-portrait-body .msgr-pic.look-in{animation:none}.msgr-portrait-body .msgr-pic.was{display:none}}
/* free actions: hint and clean slate reuse .msgr-confirm / .msgr-tonik */

.msgr-notify-hint{margin:4px 0 0;font-size:13px}
.msgr-notify .msgr-switch:focus-visible{outline:2px solid var(--cue);outline-offset:2px}
