/* 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}}

.avatar-sources{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}.avatar-camera{display:block;width:100%;max-height:480px;border-radius:18px;background:#172945;margin:20px 0;transform:scaleX(-1)}#account-page>div>button{margin:12px 8px 12px 0}#account-page h1{margin:14px 0}
.operation-page{height:100%;overflow:auto;padding:28px;background:#f4f7fc}.operation-page>header,.operation-body{max-width:720px;margin:auto}.operation-page h1{margin:18px 0 24px}.operation-body>.detail{padding:18px;background:white;border:1px solid #e5edf8;border-radius:14px;margin-bottom:12px}.operation-body>button{margin:8px 10px 8px 0}.page-form{display:flex;flex-direction:column;gap:12px;max-width:540px}.page-form input,.page-form textarea{width:100%;padding:14px;border:1px solid #dce5f2;border-radius:12px;font:inherit;background:white}.page-form label{font-weight:600;color:#48617e}.unavailable-setting{display:flex;justify-content:space-between;color:#8191a8}.unavailable-setting span{background:#edf1f7;padding:3px 9px;border-radius:8px;font-size:12px}.friend-picker{max-height:400px;overflow:auto}.friend-choice{display:flex;align-items:center;gap:12px;padding:10px;background:white;border-radius:10px;margin:6px 0}.friend-choice input{width:auto}#message-actions{position:absolute;right:30px;bottom:100px;z-index:30;display:flex;flex-direction:column;gap:3px;min-width:190px;max-height:70%;overflow:auto;background:white;border:1px solid #e2eaf5;border-radius:16px;box-shadow:0 12px 40px #14375c22;padding:10px}#message-actions button{text-align:left;padding:11px 16px}.conversation{position:relative}.message.emoji-only .bubble{font-size:36px;line-height:1.35}.message.emoji-only blockquote{font-size:14px}.message.image .bubble{padding:5px}.message.image img{display:block;max-width:100%;max-height:420px;border-radius:12px;object-fit:contain}.original-stage{overflow:auto;background:#101927;border-radius:14px;max-height:75vh}.original-stage img{display:block;width:100%;object-fit:contain;cursor:zoom-in}.original-stage:fullscreen{max-height:none;border-radius:0;display:grid;place-items:center;width:100%;height:100%}.original-stage:fullscreen img{width:auto!important;max-width:100%!important;max-height:100vh}.photo-toolbar{display:flex;gap:8px;margin:14px 0}

.operation-page>header{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:0;background:transparent;border:0;height:auto;gap:0}

.unread-badge,.row .unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:12px;background:#ed4358;color:#fff;font-size:12px;line-height:22px;font-weight:700;box-sizing:border-box;flex-shrink:0}.rail button{position:relative}.rail button .unread-badge{position:absolute;top:5px;right:4px;font-size:11px;min-width:20px;height:20px;line-height:20px;padding:0 5px;border:2px solid #fff}
#emoji-panel{position:absolute;left:28px;bottom:86px;z-index:35;width:360px;max-width:calc(100% - 56px);background:white;border:1px solid #dfe8f5;border-radius:18px;box-shadow:0 14px 42px #233f6820;overflow:hidden}.emoji-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;color:#677e9e;font-size:13px}.emoji-heading button{padding:4px 10px}#emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));align-content:start;max-height:264px;min-height:220px;overflow:auto;padding:5px 8px;gap:2px}#emoji-grid .emoji-cell{padding:5px 0;font-size:27px;line-height:34px;background:transparent;border:0;border-radius:9px}#emoji-grid .emoji-cell:hover{background:#edf3ff}#emoji-grid p{grid-column:1/-1;padding:20px;font-size:13px}#emoji-tabs{display:flex;padding:8px;gap:2px;border-top:1px solid #edf1f7}#emoji-tabs button{flex:1;min-width:0;padding:7px 0;background:transparent;font-size:18px;border-radius:8px}#emoji-tabs button.active{background:#e6efff;color:#246bfd}#emoji-toggle{font-size:28px;color:#246bfd}.notification-status{margin-top:20px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}

#composer textarea{overflow-y:hidden;overflow-x:hidden;min-width:0;height:48px;scrollbar-width:thin}
#composer #packet{width:38px;padding:6px;border-radius:12px}
#composer #packet:hover{background:#fce6e8}
#packet .packet-art{width:28px;height:34px}
.message.packet .bubble{display:flex;align-items:center;gap:14px;min-width:218px;padding:18px 20px;background:linear-gradient(135deg,#ee6466,#d94555);color:#fff5de;border:1px solid #dc4958;box-shadow:0 3px 10px #cc435418}
.message.packet .packet-art{width:40px;height:46px;flex-shrink:0}
.packet-copy{display:flex;flex-direction:column;gap:5px;white-space:normal}.packet-copy strong{font-size:16px;font-weight:600}.packet-copy>span{font-size:12px;color:#ffe1cf}

