/* Approved HeyHello UI: brand blue, white lists and pale-blue conversation bubbles. */
:root{--blue:#246bfd;--ink:#142543;--muted:#7e8ba4;--line:#eaf0f7;--bg:#f4f7fc}
button:focus-visible,a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
svg{width:24px;height:24px;flex-shrink:0;vertical-align:middle}
#app{padding:20px;grid-template-columns:88px 340px minmax(0,1fr);max-width:1800px}
.rail{background:#fff;border:1px solid var(--line);border-right:0;border-radius:20px 0 0 20px;gap:20px;padding:20px 8px}
.rail img{width:54px;height:54px;border-radius:16px;margin-bottom:5px}
.rail button{width:68px;min-height:68px;border-radius:13px;color:#73829c}
.rail button span{font-size:12px;margin-top:7px;font-weight:500}
.rail button svg{width:27px;height:27px}
.rail button.active{color:var(--blue);background:#eef4ff;position:relative}
.rail button.active:before{content:'';position:absolute;left:-8px;top:14px;bottom:14px;width:3px;background:var(--blue);border-radius:3px}
.rail-bottom{background:#e8efff;color:#4775cb}
aside{border:1px solid var(--line);border-radius:0;background:white}
aside header{padding:24px 22px 18px;min-height:90px}
aside header .eyebrow{display:none}
aside header h2{font-size:25px;letter-spacing:-.6px;margin:0}
#new-group{color:var(--blue);padding:8px}
#side-tools{padding:0 18px 12px}
.search-field{display:flex;align-items:center;gap:10px;background:#f0f4f9;border-radius:14px;padding:0 12px;color:#8996ac}
.search-field svg{width:20px;height:20px}
#side-tools .search-field input{min-width:0;padding:13px 0;background:transparent;border:0;border-radius:0;box-shadow:none;font-size:14px}
#sidebar{padding:0 8px 14px;scrollbar-width:thin}
.row{width:100%;background:transparent;border-radius:12px;margin:0;padding:16px 12px;gap:13px;text-align:left;color:var(--ink);font-weight:400;position:relative;min-height:86px}
.row:after{content:'';height:1px;background:var(--line);position:absolute;bottom:0;left:78px;right:12px}
.row.selected{background:#eaf1ff}
.row:hover{background:#f2f6fc;filter:none}
.row.selected:hover{background:#e4eeff}
.avatar{width:49px;height:49px;border-radius:50%;font-weight:600;font-size:20px;color:#5576ba;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar.official{background:var(--blue)}
.row strong{font-size:15px;font-weight:650;letter-spacing:.1px}
.row small{font-size:13px;font-weight:400;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-meta{align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:9px}
.row-meta time{font-size:11px;color:#8c99af;white-space:nowrap}
.row .badge{font-size:12px;line-height:20px;min-width:20px;height:20px;padding:0 5px;text-align:center;font-weight:500}
.unread-dot{display:block;width:9px;height:9px;background:var(--blue);border-radius:50%}
footer{font-size:11px;padding:12px 20px;color:#8897ad}
.conversation{border:1px solid var(--line);border-left:0;border-radius:0 20px 20px 0}
#empty{background:#f3f7fc}
#empty img{width:76px;border-radius:22px;margin-bottom:24px}
#empty h2{font-size:22px}
#chat-view{background:#edf3fb}
#chat-view header{padding:15px 24px;min-height:82px;background:#fff;gap:14px}
#chat-view header .avatar{width:45px;height:45px}
.chat-heading h3{font-size:17px;font-weight:650}
.chat-heading small{font-size:12px;margin-top:3px;display:block}
#chat-menu{font-size:22px;color:#55637b}
#older{background:#edf3fb;font-size:11px;color:#7c8da9;padding:9px}
#messages{background:#edf3fb;padding:20px 30px;gap:16px;scrollbar-width:thin}
.message{max-width:min(76%,520px)}
.message .bubble{background:#fff;border-radius:16px 16px 16px 5px;padding:12px 15px;color:var(--ink);box-shadow:0 1px 1px #293c5b05;font-size:15px;line-height:1.6}
.message.own .bubble{background:#d7e8ff;color:var(--ink);border-radius:16px 16px 5px 16px}
.message .sender{font-size:12px;color:#4673b9}
.message small{font-size:10px;color:#8a9bb3;margin-top:4px}
.bubble blockquote{border-left-color:var(--blue);background:#246bfd08;border-radius:4px}
.message.packet .bubble{background:#fff0cd;color:#865713;border:1px solid #f6dda5}
.bubble button{font-size:12px;background:#edf4ff;padding:8px 10px}
.bubble img{margin-bottom:8px;border-radius:10px;max-height:280px}
#composer{margin:0;padding:14px 20px 20px;border:0;background:#edf3fb;align-items:flex-end;gap:8px}
#composer textarea{background:#fff;border:1px solid #e2eaf6;min-height:46px;max-height:144px;padding:12px 15px;border-radius:16px;font-size:15px;line-height:22px}
#composer .icon{color:#7384a2;height:46px;min-width:38px;padding:8px 5px}
#composer .primary{height:46px;padding:0 23px;border-radius:14px}
#reply-bar{background:#e2edfc;margin:0 20px;padding:10px 15px;border-radius:12px 12px 0 0;color:#53709a}
.search-actions{display:flex;gap:8px;padding-top:9px}.search-actions select{min-width:0;flex:1;font-size:12px;padding:8px}
.search-actions button{font-size:12px;padding:8px 14px}
.profile-card{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:white;color:var(--ink);padding:22px 14px;border-radius:0}
.profile-card .avatar{width:58px;height:58px;font-size:24px}
.profile-card>div:nth-child(2){flex:1;min-width:0}
.profile-card strong{display:block;font-size:19px;overflow-wrap:anywhere}
.profile-card small{display:block;font-size:12px;font-weight:400;margin-top:4px}
.profile-card>svg{width:17px;color:#93a1b9}
.setting-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:#fff;color:var(--ink);border-radius:0;padding:16px 13px;font-size:14px;font-weight:400;border-bottom:1px solid var(--line)}
.setting-row>svg:first-child{color:var(--blue);width:22px;height:22px}
.setting-row>span{flex:1;min-width:0}
.setting-row>small{font-size:12px;font-weight:400}
.setting-row>svg:last-child{width:15px;height:15px;color:#97a4b9}
.setting-row.danger,.setting-row.danger>svg:first-child{color:#d76870}
.settings-group{border-radius:14px;overflow:hidden;border:1px solid var(--line);margin:14px 4px}
.settings-group .setting-row:last-child{border:0}
.points-card{background:#fff7e4;border:1px solid #f8e8bc;border-radius:14px;margin:5px 4px 16px;overflow:hidden}
.points-card .setting-row{background:transparent;border-color:#f7ebd0}
.points-card .setting-row:first-child>svg{color:#e8a900}
.points-card .setting-row:first-child>small{font-size:21px;font-weight:700;color:#213550}
.points-card .setting-row:last-child{border:0}
.language-row{display:flex;align-items:center;gap:12px;padding:10px 14px}.language-row svg{color:var(--blue)}
.language-row select{width:100%;font-size:13px;border:0;background:#f4f7fc}
.invitation-note{font-size:12px;color:var(--muted);padding:14px;margin:0;overflow-wrap:anywhere}
.notice-message{display:flex;gap:12px;max-width:min(92%,590px);align-self:flex-start}
.notice-message>.avatar{width:36px;height:36px}
.notice-card{padding:16px 18px;background:#fff;border-radius:4px 16px 16px 16px;min-width:0;box-shadow:0 1px 2px #294a7e08}
.notice-card strong{display:block;color:#2864c7;font-size:13px;margin-bottom:9px}
.notice-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:14px}
.notice-card time{display:block;text-align:right;font-size:11px;color:#91a0b6;margin-top:10px}
.date-label{align-self:center;background:#dfe8f4;color:#7b8ba4;border-radius:20px;font-size:11px;padding:4px 12px;margin:6px 0}
#notice-footer{text-align:center;font-size:12px;color:#8797af;padding:20px;background:#f9fbfe;border-top:1px solid var(--line)}
@media(max-width:1100px){#app{grid-template-columns:76px 290px minmax(0,1fr);padding:10px}.rail button{width:58px}#messages{padding:18px}.row{padding:14px 8px}.row strong{font-size:14px}.row .avatar{width:42px;height:42px}.row small{font-size:12px}.row-meta time{font-size:10px}}
@media(max-width:800px){#app{grid-template-columns:65px 260px minmax(350px,1fr);padding:0;overflow:auto}.rail,aside,.conversation{border-radius:0}.rail{padding:14px 3px}.rail img{width:43px;height:43px}.rail button{width:56px}.notice-message{max-width:96%}#messages{padding:15px}#composer{padding:12px}}
