:root{font-family:Inter,Arial,sans-serif;color:#202d54;background:#e9effb;--green:#3659b5;--line:#dae2f4}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer;touch-action:manipulation;border:0;color:inherit}button:disabled{opacity:.35;cursor:default}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #c67d28;outline-offset:3px}.topline{max-width:1440px;margin:auto;height:76px;padding:0 30px;display:flex;align-items:center;gap:28px}.wordmark{font-size:27px;font-weight:850;letter-spacing:-1.1px;display:flex;align-items:center;gap:8px}.wordmark i{font-style:normal;color:#f6e3ab;background:#224e3c;width:36px;height:36px;display:grid;place-items:center;border-radius:12px 12px 12px 3px}.wordmark>span{color:#bd8158;margin-left:-8px}.top-caption{font-size:9px;letter-spacing:1.5px;color:#7e9084}.sound-toggle{margin-left:auto;background:#dbe7dd;border:1px solid #c6d7c9;border-radius:25px;padding:11px 17px;min-height:44px;font-size:12px}.shell{height:calc(100dvh - 120px);min-height:560px;max-width:1380px;margin:auto;display:grid;grid-template-columns:285px minmax(0,1fr);background:#fff;border-radius:18px;border:1px solid #d1ded3;box-shadow:0 12px 40px #2149300e;overflow:hidden}.sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #dce5de;background:#fff}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 23px 8px}.sidebar h1{font-size:26px;margin:0;letter-spacing:-.8px}.sidebar h1 i{display:inline-block;background:#239a68;width:7px;height:7px;border-radius:50%;vertical-align:middle;margin-left:3px}.self-avatar{display:grid;place-items:center;width:36px;height:36px;background:#dce9dc;border-radius:50%;color:#4a6e51;font-size:17px}.identity{padding:0 23px 25px;font-size:11px;color:#52725b;line-height:1.6}.identity span{display:block;color:#8a9a8e;font-size:10px}.list-label{padding:12px 23px;background:#f6f8f3;font-size:9px;letter-spacing:1px;color:#8b9a8e}.contacts{overflow:auto;flex:1}.contact{display:flex;align-items:center;gap:12px;padding:18px;width:100%;min-height:84px;background:white;text-align:left;border-bottom:1px solid #f0f4ee}.contact.selected{background:#e9f3e9;border-left:3px solid var(--green);padding-left:15px}.contact>span:not(.avatar){min-width:0;flex:1}.contact b{font-size:13px;display:block;margin-bottom:7px}.contact small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#839180}.contact em{font-style:normal;font-size:11px;color:#36875b}.avatar{width:45px;height:45px;display:grid;place-items:center;background:var(--avatar-bg);border-radius:50%;flex-shrink:0;color:#476555;overflow:hidden}.avatar svg{width:32px;height:32px}.progress{border-top:1px solid var(--line);background:#fbfcf8;padding:20px 23px}.progress>div{display:flex;justify-content:space-between;font-size:11px}.progress b{color:var(--green)}progress{display:block;width:100%;height:5px;accent-color:var(--green);margin-top:12px}.progress small{display:block;font-size:9px;color:#94a08d;margin:10px 0 0}.text-button{background:none;color:#6a816c;font-size:11px;min-height:42px;padding:5px 0}.chat{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}.chat-head{display:flex;gap:12px;align-items:center;background:#f8faf6;border-bottom:1px solid #dce5d9;padding:14px 24px;min-height:82px;position:relative;z-index:3}.chat-name{min-width:0}.chat-name h2{font-size:16px;margin:0;overflow-wrap:anywhere}.chat-name>span{display:block;font-size:10px;color:#8b9c86;margin-top:6px}.chat-name>span:empty{display:none}.score{margin-left:auto;background:#dfe9ff;border:1px solid #c5dec9;display:flex;gap:13px;align-items:center;padding:8px 15px;border-radius:12px;flex-shrink:0}.score>span{font-size:9px;font-weight:bold;letter-spacing:1px;color:#6b846a}.score strong{font-size:30px;line-height:1.1;color:#116348;font-variant-numeric:tabular-nums}.icon{background:none;min-width:44px;height:44px;font-size:28px;border-radius:50%}.icon:hover:not(:disabled){background:#e8eee2}.back{display:none}.settings{position:absolute;right:20px;top:70px;background:white;border:1px solid #d8e1d3;border-radius:12px;padding:7px;box-shadow:0 10px 30px #1f3d3226;min-width:240px;z-index:5}.settings button{background:#fff;padding:15px;text-align:left;min-height:50px;width:100%;font-size:13px;border-radius:7px;color:#a4513c}.settings button:hover{background:#f8eee7}.chat-body{flex:1;min-height:180px;overflow:auto;display:flex;flex-direction:column;align-items:flex-start;gap:15px;background-color:#edf0e5;background-image:radial-gradient(#b5c4a740 .8px,transparent .8px);background-size:20px 20px;padding:24px 35px;scroll-behavior:smooth}.simulation-note{align-self:center;text-align:center;max-width:95%;background:#f8efcd;color:#897c54;border-radius:7px;padding:8px 13px;font-size:10px;line-height:1.5}.day-label{align-self:center;font-size:9px;letter-spacing:1px;color:#82907a;background:#fffef6b3;padding:7px 13px;border-radius:5px;margin:5px 0 10px}.message{background:#fff;border-radius:0 12px 12px;box-shadow:0 1px 3px #203d2b12;max-width:78%;min-width:100px;padding:14px 17px 9px;animation:message-in .28s ease-out}.sender{display:block;font-size:12px;font-weight:bold;color:#a76d39;margin-bottom:8px}.message p{font-size:16px;line-height:1.55;margin:0;overflow-wrap:anywhere}.message time{display:block;text-align:right;font-size:9px;color:#95a28f;margin-top:9px}.message time span{color:#4598ac}.message.own{align-self:flex-end;background:#d8efcb;border-radius:12px 0 12px 12px}.typing>div{display:flex;gap:5px;padding:6px 0}.typing i{width:6px;height:6px;border-radius:50%;background:#97ac8b;animation:dot 1s infinite}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}.system-event{align-self:center;max-width:90%;text-align:center;border-radius:8px;background:#fffdf5cc;padding:10px 17px;font-size:12px;line-height:1.5;color:#738566}.composer{padding:21px 25px;background:#f8faf5;border-top:1px solid #d8e1d4;flex-shrink:0}.reply-caption{font-size:12px;font-weight:bold;margin-bottom:14px;display:flex;justify-content:space-between;gap:10px}.reply-caption>span{font-size:10px;font-weight:normal;color:#8e9d86}.replies{display:flex;flex-direction:column;gap:9px}.replies button{display:flex;gap:12px;align-items:center;text-align:left;background:white;border:1px solid #d4e0cd;border-radius:10px;min-height:56px;padding:12px 14px;transition:background .15s,border-color .15s}.replies button:hover{background:#edf6e7;border-color:#5c9474}.replies p{margin:0;font-size:14px;line-height:1.4;flex:1}.replies button>span{font-size:10px;background:#edf3e6;padding:6px 8px;border-radius:5px;color:#719064}.replies button>b{color:#5f9470;font-size:14px}.waiting{min-height:65px;display:flex;align-items:center;gap:10px;font-size:12px;color:#879b7a}.waiting>span{width:7px;height:7px;border-radius:50%;background:#74a86c;animation:dot 1s infinite}.decision{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:60px}.decision>span{font-size:12px;color:#5d8162}.points-toast{position:absolute;z-index:6;left:50%;top:43%;transform:translate(-50%,-50%);display:grid;grid-template-columns:35px auto;align-items:center;column-gap:14px;min-width:205px;padding:20px 25px;border-radius:18px;box-shadow:0 12px 35px #1d3f3128;pointer-events:none;border:2px solid;animation:points-pop 2.3s both}.points-toast>span{grid-row:1/3;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;background:#ffffff99;font-size:23px;font-weight:bold}.points-toast strong{font-size:46px;line-height:1.1}.points-toast>b{font-size:12px}.points-toast small{grid-column:1/3;text-align:center;margin-top:13px;font-size:11px}.positive{background:#d8f3dc;border-color:#42a469;color:#146a3c}.negative{background:#ffe3dc;border-color:#d27a66;color:#a13429}.neutral{background:#e7edf4;border-color:#8b9baa;color:#485e73}.bottomline{max-width:1380px;display:flex;justify-content:space-between;align-items:center;margin:auto;height:44px;font-size:9px;color:#8a9a83}.bottomline .text-button{font-size:10px}.finish{max-width:1000px;min-height:calc(100dvh - 120px);margin:auto;background:#fffdf6;border:1px solid #d6dfd1;border-radius:22px;text-align:center;padding:42px 25px 32px}.finish-label{font-size:10px;letter-spacing:2px;font-weight:bold;color:#7c9471}.finish-art{width:85px;height:85px;display:grid;place-items:center;background:#e3eed8;border-radius:24px;color:#388261;font-size:63px;margin:24px auto 20px;transform:rotate(-8deg)}.finish h1{font-size:39px;line-height:1.13;letter-spacing:-1.4px;margin:0 0 16px}.finish>p{color:#809075;font-size:13px;line-height:1.6}.final-score strong{display:block;color:var(--green);font-size:72px;line-height:1.1;margin-top:20px}.final-score>span{display:block;color:#819575;font-size:13px;margin-top:5px}.result-counts{display:flex;justify-content:center;gap:35px;margin:24px 0}.result-counts b{display:block;font-size:23px;color:#466c52}.result-counts span{font-size:11px;color:#87987c}.primary{background:var(--green);color:white;padding:15px 23px;border-radius:10px;min-height:49px;font-weight:bold;font-size:14px}.secondary{background:#edf2ff;padding:15px;border-radius:10px;margin:10px 0 0 8px;min-height:49px;font-size:13px}.finish>small{display:block;margin-top:18px;font-size:10px;color:#92a086}dialog{max-width:450px;width:calc(100% - 28px);padding:35px;background:#fffdf7;color:#253b74;border:1px solid #cbd9c4;border-radius:20px;max-height:90dvh;overflow:auto}dialog::backdrop{background:#163f3299;backdrop-filter:blur(5px)}.eyebrow{font-size:9px;letter-spacing:1.5px;color:#7f9572;font-weight:bold}dialog h2{font-size:31px;line-height:1.15;letter-spacing:-1px;margin:20px 0}dialog p{font-size:14px;line-height:1.6;color:#7c8d73}dialog label{display:block;font-size:12px;font-weight:bold;margin:20px 0 8px}dialog select{width:100%;height:48px;background:white;border:1px solid #c9d7c2;border-radius:8px;padding:10px;color:#3f644d}.check{display:flex;gap:10px;align-items:center;min-height:40px;font-weight:normal}.check input{width:19px;height:19px;accent-color:var(--green)}dialog small{display:block;font-size:10px;color:#8c9d82;margin-top:18px}@keyframes dot{50%{opacity:.3;transform:translateY(-2px)}}@keyframes message-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes points-pop{0%{opacity:0;transform:translate(-50%,-35%) scale(.75)}12%,85%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-65%) scale(.95)}}@media(max-width:1430px){.shell{margin:0 22px}.bottomline{margin:0 25px}}@media(max-width:1050px){.topline{height:66px;padding:0 21px}.shell{grid-template-columns:220px 1fr;height:calc(100dvh - 106px);margin:0 14px}.sidebar-heading{padding:20px 15px 8px}.identity{padding:0 15px 22px}.contact{padding:16px 12px;gap:9px}.contact.selected{padding-left:9px}.contact .avatar{width:37px;height:37px}.contact .avatar svg{width:28px;height:28px}.contact b{font-size:12px}.progress{padding:18px}.chat-head{padding:12px 16px;min-height:76px}.chat-name h2{font-size:14px}.chat-body{padding:20px 23px}.message{max-width:89%}.message p{font-size:15px}.composer{padding:17px}.reply-caption>span{font-size:9px}.replies button{min-height:54px;padding:10px}.replies p{font-size:13px}.top-caption{font-size:8px}.bottomline{height:40px}.finish{min-height:calc(100dvh - 106px);margin:0 18px}}@media(max-width:700px){.topline{height:57px;padding:0 14px}.wordmark{font-size:23px}.wordmark i{width:30px;height:30px;font-size:23px}.top-caption{display:none}.sound-toggle{min-height:40px;padding:9px 13px;font-size:11px}.shell{display:block;height:calc(100dvh - 57px);min-height:560px;margin:0;border-radius:0;border-left:0;border-right:0}.sidebar{display:none}.chat{height:100%}.list-open .sidebar{display:flex;height:100%}.list-open .chat{display:none}.back{display:block;min-width:28px;width:28px}.chat-head{gap:8px;padding:10px;min-height:72px}.chat-head .avatar{width:36px;height:36px}.chat-head .avatar svg{width:27px;height:27px}.score{gap:6px;padding:7px 9px}.score strong{font-size:26px}.score>span{font-size:8px}.menu-toggle{min-width:32px}.chat-body{padding:17px}.message{max-width:92%}.message p{font-size:14px}.simulation-note{font-size:9px}.composer{padding:13px}.replies p{font-size:12px}.reply-caption{font-size:11px}.reply-caption>span{font-size:8px}.bottomline{display:none}.settings{right:10px;top:65px}.finish{margin:0;border-radius:0;border:0;min-height:calc(100dvh - 57px);padding:32px 20px}.finish h1{font-size:33px}.finish-art{width:70px;height:70px;font-size:53px}.final-score strong{font-size:62px}.decision{flex-wrap:wrap}.points-toast{top:40%}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}.points-toast{opacity:1}}

/* Player identity and clearly marked groups */
.player-avatar{--avatar-bg:#d8e8eb;border:2px solid #fff;box-shadow:0 0 0 1px #b0c9c9;width:44px;height:44px}.player-avatar svg{width:100%;height:100%}.player-preview{display:flex;gap:14px;align-items:center;margin-top:20px;font-size:12px;color:#60786b}.player-preview .avatar{width:62px;height:62px}.own-row{display:flex;align-self:flex-end;align-items:flex-end;flex-direction:row-reverse;gap:10px;max-width:90%}.own-row .message.own{max-width:100%;min-width:0}.own-row .avatar{width:34px;height:34px}.own-row .sender{color:#397560;font-size:10px}.group-tag{display:inline-block!important;width:max-content;border-radius:5px;padding:3px 6px;background:#dce5fa;color:#485c91;font-size:9px;margin-bottom:5px}.group-chat .chat-head{background:#edf1fc;border-bottom-color:#d1daf0}.group-chat .chat-name>span{color:#526895;font-weight:bold}.group-chat .chat-head>.avatar{outline:3px solid #bacbe8;outline-offset:2px}.group-banner{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:10px 24px;background:#dee7f8;color:#415b89;font-size:11px}.group-banner span{font-size:10px}.group-chat .chat-body{background-color:#edf0f7}.contact:has(.group-tag){border-right:4px solid #b4c7e8}.decision>span{line-height:1.5}@media(max-width:700px){.group-banner{padding:9px 17px;gap:4px}.group-banner span{display:block;width:100%}.own-row{max-width:98%}.own-row .avatar{width:28px;height:28px;flex-shrink:0}}

#nickname{display:block;width:100%;min-height:50px;padding:12px 14px;border:1px solid #b7cdbd;border-radius:9px;background:white;color:#253b74;font:inherit;font-size:16px}#nickname:focus-visible{outline:3px solid #c67d28;outline-offset:3px}#nickname-help{margin-top:8px;font-size:11px}.player-preview .player-avatar{width:88px;height:88px}.player-avatar{--avatar-bg:#c5e5dd}.identity{overflow-wrap:anywhere}.own-row .sender{overflow-wrap:anywhere}

/* Chatcheck branding and feedback in the conversation. */
.wordmark { color: #253b74; }
.wordmark i, .finish-art { background: #3659b5; color: #fff; }
.wordmark span { color: #3659b5; }
.reply-feedback {
  align-self: flex-end;
  width: min(100%, 30rem);
  padding: .8rem 1rem;
  border: 1px solid #c7d6f5;
  border-radius: 14px;
  background: #f1f5ff;
  color: #202d54;
}
.reply-feedback p { margin: .4rem 0 0; font-size: .93rem; line-height: 1.45; }
.feedback-points { display: inline-block; border-radius: 1rem; padding: .2rem .6rem; font-size: .83rem; }
.feedback-points.positive { color: #135c41; background: #def3e8; }
.feedback-points.neutral { color: #35436b; background: #e1e8fa; }
.feedback-points.negative { color: #8b2c23; background: #ffe7e1; }

.feedback-overlay{position:fixed;inset:0;z-index:30;background:#18284477;display:grid;place-items:center;padding:20px}.feedback-overlay .points-toast{position:relative;left:auto;top:auto;transform:none;animation:none;pointer-events:auto;width:min(440px,100%);max-height:90dvh;overflow:auto;text-align:left}.feedback-overlay .points-toast small{font-size:17px;line-height:1.5;text-align:left}.points-toast em{grid-column:1/3;text-align:right;margin-top:18px;font-style:normal;font-weight:bold}

.feedback-card{width:min(440px,100%);max-height:90dvh;overflow:auto}
.feedback-overlay .points-toast{width:100%;max-height:none}
.feedback-audio-controls{display:flex;gap:10px;justify-content:space-between;margin-top:12px}
.feedback-audio-controls button{background:#fff;color:#253b74;border:1px solid #c7d6f5;border-radius:12px;padding:10px 14px;font-size:14px}
.feedback-audio-controls button:disabled{opacity:.6;cursor:default}

.feedback-guide{display:flex;align-items:center;justify-content:center;gap:12px;padding:6px 16px 12px;color:#243d71;background:#f2f6ff;border-radius:24px 24px 0 0}
.feedback-guide svg{width:138px;height:124px;flex-shrink:0}
.guide-caption{display:flex;flex-direction:column;gap:4px}
.guide-caption strong{font-size:24px;letter-spacing:-.5px}
.guide-caption span{font-size:13px}
.feedback-card{background:#f2f6ff;border-radius:24px;padding:12px;box-shadow:0 20px 70px #10234c44}
.feedback-card .points-toast{box-shadow:none;border-radius:18px}
.contact.unread{background:#e4edff;border-color:#90aae4}
.contact.unread em{color:#315ccc}
.unread-dot{position:absolute;width:9px;height:9px;background:#315ccc;border:2px solid white;border-radius:50%;right:1px;top:1px}
.back{position:relative}
@media(max-height:650px){.feedback-guide svg{width:90px;height:81px}.feedback-guide{padding:0 12px 8px}.feedback-card .points-toast{padding:14px 18px}.feedback-card .points-toast strong{font-size:34px}}

#modal .feedback-guide{margin-top:14px;border-radius:20px;padding:4px 12px}
#modal .feedback-guide svg{width:110px;height:99px}
#modal .guide-caption strong{font-size:22px}
#modal .guide-caption span{max-width:145px}
.welcome-audio{border:1px solid #b7c9ee;border-radius:12px;background:#e8efff;color:#243d71;font:inherit;font-weight:600;padding:11px 15px;margin:0 0 4px;cursor:pointer}

.player-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.avatar-picker{margin:22px 0;padding:0;border:0;min-width:0}.avatar-picker legend{font-size:17px;font-weight:700;color:#243d71;margin-bottom:4px}.avatar-category{font-size:13px;font-weight:700;color:#596780;margin:14px 0 7px}.avatar-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.avatar-options button{padding:4px;border:2px solid transparent;border-radius:14px;background:#f2f5fb;cursor:pointer;min-width:0;position:relative;color:#243d71}.avatar-options img{width:100%;display:block;border-radius:10px}.avatar-options span{display:block;font-size:11px;line-height:1.25;padding:5px 0;overflow-wrap:anywhere}.avatar-options button[aria-pressed="true"]{border-color:#315ccc;background:#dde8ff;box-shadow:0 0 0 2px #fff inset}.avatar-options button[aria-pressed="true"]::after{content:'✓';position:absolute;top:3px;right:3px;background:#315ccc;color:white;border-radius:50%;width:21px;height:21px;line-height:21px}.avatar-options button:focus-visible{outline:3px solid #bd7938;outline-offset:2px}
@media(max-width:480px){.avatar-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.avatar-options span{font-size:12px}.avatar-options button{padding:6px}}

.avatar img{display:block;width:100%;height:100%;object-fit:cover}

/* Keep the reading surface still, including when an unread chat arrives. */
.chat-body{scroll-behavior:auto}.message,.own-row,.system-event{animation:none!important}
