/* V34: channel lobby and compact community stream. */
.chat365-lobby-intro{text-align:center;padding:24px 12px 8px}.chat365-lobby-intro h2{font-size:clamp(22px,3vw,30px);color:#124d58;margin:8px 0}.chat365-lobby-intro p{color:#526c77;font-size:14px;line-height:1.8;max-width:620px;margin:0 auto}.chat365-room-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:26px 0}.chat365-room-card{--room:#08796c;--room-soft:#e7f7f0;display:flex;flex-direction:column;align-items:flex-start;padding:24px;border:1px solid #d5e7e3;border-radius:20px;background:linear-gradient(145deg,#fff,var(--room-soft));color:#153c43;text-decoration:none;min-width:0;box-shadow:0 8px 22px #123b4510;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.chat365-room-card.room-color-1{--room:#285daf;--room-soft:#edf3ff}.chat365-room-card.room-color-2{--room:#8457a8;--room-soft:#f6effb}.chat365-room-card:hover{transform:translateY(-3px);border-color:var(--room);box-shadow:0 12px 28px #123b451a}.chat365-room-card:focus-visible{outline:3px solid var(--room);outline-offset:3px}.chat365-room-symbol{display:grid;place-items:center;width:48px;height:48px;color:var(--room);background:#fff;border:1px solid var(--room-soft);border-radius:14px;font-size:26px;margin-bottom:18px}.chat365-room-card>span:nth-child(2){flex:1;min-width:0}.chat365-room-card small{color:var(--room);font-size:10px;font-weight:800;letter-spacing:1.8px}.chat365-room-card h3{font-size:19px;color:#183f48;margin:8px 0;line-height:1.4;overflow-wrap:anywhere}.chat365-room-card p{font-size:13px;color:#4d6873;line-height:1.8;margin:0 0 20px;overflow-wrap:anywhere}.chat365-room-card>strong{font-size:12px;color:var(--room);background:#fff;padding:10px 15px;border-radius:10px}.chat365-lobby-note{font-size:12px;text-align:center;color:#5a6f7c;line-height:1.8;margin:0 0 26px}
.chat365-room-switch{display:flex;align-items:center;gap:10px;margin:0 0 9px;flex:0 0 auto;min-width:0}.chat365-room-switch>a{font-size:12px;color:#087466;font-weight:700;white-space:nowrap;text-decoration:none;padding:7px 10px;border:1px solid #c5e2da;background:#fff;border-radius:9px}.chat365-room-switch>label{font-size:11px;color:#536a78;margin-left:auto;white-space:nowrap}.chat365-room-switch select{width:auto;max-width:min(400px,55%);min-width:0;font-size:12px;height:36px;border:1px solid #b4d6cf;border-radius:9px;background:#fff;color:#14434b;margin:0;padding:5px 28px 5px 10px}
.chat365-stream .chat365-layout{border-color:#bcd8d1;box-shadow:0 5px 24px #14433709}.chat365-stream .chat365-room-top{background:linear-gradient(100deg,#eaf7f0,#edf5fb);border-color:#d4e9e2}.chat365-stream .chat365-room-top strong{color:#115b51;min-width:0;overflow-wrap:anywhere}.chat365-stream .chat365-messages{background:linear-gradient(#fff,#fcfefd)}.chat365-stream .chat365-message{border-bottom:0;padding:6px 0}.chat365-stream .chat365-message.is-own{background:#f0faf5;border-radius:7px;padding-left:4px;padding-right:4px}.chat365-stream .chat365-message-line,.chat365-stream .chat365-message-body{font-size:14px;line-height:1.7}.chat365-stream .chat365-name{font-size:13px;font-weight:750}.chat365-stream .chat365-side{background:#f6faf9}.chat365-stream .chat365-online-panel h2{font-size:13px;color:#16624f}.chat365-stream button.chat365-person{border-bottom:1px solid #e3eee8;padding:7px 3px;border-radius:7px;transition:background .15s ease}.chat365-stream button.chat365-person:hover{background:#e6f3ed}.chat365-stream .chat365-person-name{white-space:normal;text-overflow:clip;overflow-wrap:anywhere;font-size:12px}.chat365-stream .chat365-compose{background:#ecf5f1;border-top:1px solid #d1e5dc}.chat365-stream .chat365-compose textarea{border-color:#b6d6ca;box-shadow:none}.chat365-stream .chat365-compose textarea:focus{border-color:#128268;box-shadow:0 0 0 3px #12826818}.chat365-stream .chat365-compose button{background:#08775f;box-shadow:0 4px 10px #08775f22}.chat365-stream .chat365-compose button:hover{background:#05614d}.chat365-stream .chat365-compose button:disabled{opacity:.55}.chat365-room-manager{margin-bottom:20px}.chat365-room-manager-heading h2{margin:0 0 5px;font-size:20px}.chat365-room-manager-heading p{font-size:12px;color:#58707a;line-height:1.8}.chat365-room-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) auto;align-items:end;gap:10px;margin:14px 0}.chat365-room-form label{font-size:12px;color:#334f59;min-width:0}.chat365-room-form input{width:100%;min-width:0;margin:5px 0 0}.chat365-room-management-list{display:grid;gap:9px}.chat365-room-management-list>details{border:1px solid #d7e8e0;border-radius:12px;padding:12px;background:#fbfdfc}.chat365-room-management-list summary{font-size:13px;font-weight:700;cursor:pointer;overflow-wrap:anywhere;color:#23594c}.chat365-room-management-list summary small{margin-left:8px;font-size:10px;font-weight:400;color:#62777f}.chat365-room-management-actions{display:flex;flex-wrap:wrap;gap:8px}.chat365-room-management-actions form{margin:0}.public365-chat-menu .public365-dropdown-panel{max-height:360px;overflow-y:auto}
@media(max-width:800px){.chat365-room-cards{grid-template-columns:1fr;gap:12px;margin:18px 0}.chat365-room-card{padding:19px;display:grid;grid-template-columns:44px minmax(0,1fr);gap:0 14px;border-radius:15px}.chat365-room-symbol{grid-row:1/3;margin:0;width:44px;height:44px}.chat365-room-card>strong{grid-column:2;justify-self:start}.chat365-room-card p{margin-bottom:12px}.chat365-room-card h3{font-size:17px}.chat365-room-form{grid-template-columns:1fr}.chat365-room-form button{justify-self:start}.chat365-lobby-intro{padding-top:14px}}
@media(max-width:700px){.chat365-room-switch{gap:6px;margin-bottom:6px}.chat365-room-switch>a{font-size:10px;padding:7px}.chat365-room-switch>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.chat365-room-switch select{margin-left:auto;max-width:65%;height:32px;font-size:11px}.chat365-stream .chat365-room-top{flex-direction:row;align-items:center;gap:5px}.chat365-stream .chat365-room-top>span{display:none}.chat365-stream .chat365-layout{grid-template-columns:minmax(0,1fr) 112px}.chat365-stream .chat365-message-line,.chat365-stream .chat365-message-body{font-size:12px}.chat365-stream .chat365-name{font-size:12px}.chat365-stream .chat365-person-name{font-size:11px}.chat365-stream .chat365-online-panel h2{font-size:11px}}
@media(prefers-reduced-motion:reduce){.chat365-room-card,.chat365-stream button.chat365-person{transition:none}.chat365-room-card:hover{transform:none}}
.chat365-admin-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 18px;padding:5px;background:#eef5f2;border-radius:12px}.chat365-admin-tabs a{font-size:12px;text-decoration:none;color:#3d6356;padding:10px 13px;border-radius:9px;font-weight:650;min-height:40px}.chat365-admin-tabs a.is-active{background:#08775f;color:#fff;box-shadow:0 3px 8px #08775f18}.chat365-app[data-view="members"]>.chat365-layout,.chat365-app[data-view="members"]>.chat365-room-switch{display:none}.chat365-settings>p{font-size:13px;line-height:1.8;color:#56717b}.chat365-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.chat365-settings-grid>div{border:1px solid #d4e7de;border-radius:12px;padding:16px;background:#f8fcfa}.chat365-settings-grid h3{font-size:14px;color:#205e4d;margin:0 0 8px}.chat365-settings-grid p{font-size:12px;line-height:1.8;color:#526e78;margin:0 0 10px}.chat365-settings-grid a{font-size:12px;color:#08775f;font-weight:650}@media(max-width:600px){.chat365-admin-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.chat365-admin-tabs a{text-align:center;font-size:11px;padding:9px 6px}.chat365-settings-grid{grid-template-columns:1fr}}
.chat365-stream .chat365-person .chat365-avatar .chat365-rank{margin:0;width:18px;height:18px}.chat365-stream .chat365-person .chat365-avatar .chat365-rank svg{width:17px;height:17px}@media(max-width:700px){.chat365-stream .chat365-layout{grid-template-columns:minmax(0,1fr) clamp(106px,32vw,140px)}.chat365-stream .chat365-person .chat365-avatar{width:22px;height:22px;flex-basis:22px}.chat365-stream .chat365-person .chat365-avatar .chat365-rank svg{width:16px;height:16px}}
.chat365-room-note{flex:0 0 auto;font-size:12px;line-height:1.65;color:#45685d;background:#f7fcf9;padding:8px 14px;margin:0;border-bottom:1px solid #e6f0eb;overflow-wrap:anywhere}.chat365-room-note:empty{display:none}@media(max-width:700px){.chat365-room-note{font-size:10px;padding:6px 8px}}@media(max-height:450px){.chat365-room-note{display:none}}
/* V35: use the whole visible height even if an older base stylesheet is cached. */
body.chat365-live{position:fixed;inset:0;width:100%;height:var(--chat-viewport-height,100dvh);min-height:0;display:flex;flex-direction:column;overflow:hidden!important}
body.chat365-live>.header{flex:0 0 auto;position:relative;min-height:0}
body.chat365-live>main.container{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden;max-width:1600px;width:100%;margin:0 auto;padding:8px 16px!important}
body.chat365-live>footer{display:none}
body.chat365-live .chat365{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%}
body.chat365-live .chat365-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex:none;margin:0 0 6px;padding:0;gap:8px}
body.chat365-live .chat365-heading h1{font-size:18px;margin:0;line-height:1.4}
body.chat365-live .chat365-heading .eyebrow,body.chat365-live .chat365-heading p{display:none}
body.chat365-live .chat365-heading>a{padding:5px 9px;min-height:30px;font-size:10px}
body.chat365-live .chat365-app{display:flex;flex-direction:column;flex:1;min-height:0}
body.chat365-live .chat365-room-switch{flex:none;margin-bottom:6px}
body.chat365-live .chat365-layout{flex:1;min-height:0;grid-template-rows:minmax(0,1fr)}
body.chat365-live .chat365-room{display:flex;flex-direction:column;min-height:0;overflow:hidden}
body.chat365-live .chat365-room-top,body.chat365-live .chat365-room-note,body.chat365-live .chat365-older,body.chat365-live .chat365-compose,body.chat365-live .chat365-reply-preview,body.chat365-live .chat365-error{flex:0 0 auto}
body.chat365-live .chat365-messages{height:auto!important;flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;justify-content:flex-start}
body.chat365-live .chat365-side{display:flex;flex-direction:column;min-height:0;overflow:hidden}
body.chat365-live .chat365-online-panel{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
body.chat365-live [data-chat-online]{flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden}
body.chat365-live .chat365-online-panel>small,body.chat365-live .chat365-online-panel h2{flex:none}
body.chat365-live .chat365-guidelines,body.chat365-live .chat365-admin-tools{flex:none;max-height:25%;overflow:auto}
body.chat365-live .chat365-room-top{padding:8px 12px}
body.chat365-live .chat365-room-note{padding:5px 12px;font-size:11px}
body.chat365-live .chat365-older{padding:5px;font-size:10px}
body.chat365-live .chat365-message{flex:none}
body.chat365-live .chat365-messages .chat365-message:first-of-type{margin-top:0}
body.chat365-live .chat365-messages{justify-content:flex-start!important}
@media(max-width:700px){body.chat365-live>main.container{padding:6px!important}body.chat365-live .chat365-heading h1{font-size:15px}body.chat365-live .chat365-room-top{padding:7px}body.chat365-live .chat365-room-note{padding:4px 7px;font-size:10px}}
@media(max-height:450px){body.chat365-live .chat365-heading,body.chat365-live .chat365-room-note{display:none}}
.chat365-app[data-manage="1"][data-view="room"] .chat365-messages{height:clamp(420px,65dvh,850px)}

.chat365-room-switch button{min-height:32px;font-size:11px;padding:6px 10px;white-space:nowrap}.chat365-build{display:inline-block;color:#48665b;font-size:9px;margin-left:8px}.chat365-room-switch{margin-top:0}@media(max-width:700px){.chat365-room-switch select{max-width:48%}.chat365-room-switch button{font-size:10px;padding:6px}}
.chat365-moderation{margin-top:20px;padding:16px;border:1px solid #d5e5e3;border-radius:14px;background:#f4faf9}.chat365-moderation h4{margin:0 0 10px}.chat365-moderation small{display:block;color:#475569}.chat365-ip{font-family:monospace;overflow-wrap:anywhere}.chat365-moderation-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.chat365-moderation-actions label{width:100%;font-size:13px}.chat365-moderation-actions input{display:block;width:100%;margin-top:5px;padding:9px;border:1px solid #94b8b1;border-radius:8px}.chat365-moderation-actions button{white-space:normal}.chat365-moderation .chat365-error{display:block}
.chat365-message.rank-admin .chat365-name,.chat365-person.rank-admin .chat365-person-name,.chat365-profile-hero.rank-admin h3{font-weight:800;color:#8a4905;border:1px solid #d8a44c;border-radius:6px;background:#fff6df;padding:1px 6px;line-height:1.5;box-decoration-break:clone;-webkit-box-decoration-break:clone}.chat365-person.rank-admin .chat365-person-name{display:inline-block;max-width:100%;overflow-wrap:anywhere}.chat365-profile-hero.rank-admin h3{display:inline-block}

/* Compact profile for candidates, employers and admin moderation. */
.chat365-profile-dialog{width:min(560px,calc(100vw - 24px));max-width:560px;max-height:calc(100dvh - 24px);padding:0;border:1px solid #d2e4e0;border-radius:16px;overflow:hidden;color:#244658;background:#fff;box-sizing:border-box}.chat365-profile-dialog::backdrop{background:#16354177;backdrop-filter:blur(3px)}.chat365-profile-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #dceae6;background:#f4faf8;margin:0}.chat365-profile-top h2{font-size:15px;margin:0}.chat365-profile-top button{width:30px;height:30px;padding:0;border-radius:8px;font-size:20px}.chat365-profile-dialog [data-chat-profile-content]{padding:14px 16px;max-height:calc(100dvh - 90px);overflow:auto;box-sizing:border-box;overscroll-behavior:contain}.chat365-profile-hero{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid #e3eeeb}.chat365-profile-avatar{width:48px;height:48px;min-width:48px;border-radius:12px;font-size:21px}.chat365-profile-hero>div{min-width:0}.chat365-profile-hero h3{font-size:16px;line-height:1.4;margin:0 0 4px;overflow-wrap:anywhere}.chat365-profile-rank,.chat365-profile-state{font-size:11px;display:inline-block;margin:0 7px 0 0}.chat365-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}.chat365-profile-field{padding:8px 10px;border:1px solid #e0ece8;border-radius:9px;background:#f8fbfa;min-width:0}.chat365-profile-field small{font-size:10px;color:#647c84}.chat365-profile-field strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.chat365-profile-section-title{font-size:12px;margin:12px 0 5px}.chat365-profile-intro{font-size:12px;line-height:1.65;margin:5px 0 10px;max-height:130px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.chat365-profile-dialog .btn{min-height:32px;padding:6px 9px;font-size:11px;border-radius:8px}.chat365-moderation{margin-top:12px;padding:10px 12px;border-radius:10px;background:#f5faf8}.chat365-moderation h4{font-size:12px;margin:0 0 6px}.chat365-moderation-status{font-size:11px;line-height:1.5;margin:0 0 8px;color:#2b6955}.chat365-connections{border:1px solid #dae8e3;border-radius:8px;background:#fff;margin:8px 0;padding:6px 8px}.chat365-connections summary{font-size:11px;font-weight:650;cursor:pointer;color:#476875}.chat365-connection-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px solid #edf3f0}.chat365-connection-row .chat365-ip{font-size:11px}.chat365-connection-row small{font-size:10px}.chat365-moderation-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}.chat365-moderation-actions label{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;width:auto}.chat365-moderation-actions input{width:84px;min-height:30px;margin:0;padding:5px 8px;font-size:12px;border-radius:7px}.chat365-moderation-actions button{width:100%;margin:0;line-height:1.4;white-space:normal}.chat365-moderation-actions button:last-child{grid-column:1/-1;border-color:#e2b8b8;color:#9b3434;background:#fff8f8}@media(max-width:420px){.chat365-profile-dialog [data-chat-profile-content]{padding:12px}.chat365-profile-top{padding:10px 12px}.chat365-profile-hero h3{font-size:14px}.chat365-connection-row{flex-wrap:wrap}}

.chat365-message.rank-admin .chat365-name,.chat365-person.rank-admin .chat365-person-name,.chat365-profile-hero.rank-admin h3{border:0;background:none;padding:0;border-radius:0;box-shadow:none;font-weight:850;color:#8b4307;-webkit-text-stroke:.35px #b87a20;paint-order:stroke fill;text-shadow:0 -1px 0 #fff5ce,0 1px 0 #d5a043,0 2px 0 #bc822c,0 3px 3px #75420635}.chat365-person.rank-admin{background:#fffbf1}

/* House-shaped room entrances. */
.chat365-room-cards{gap:24px;margin:70px 0 24px;padding:0 8px}.chat365-room-card{position:relative;isolation:isolate;align-items:center;text-align:center;min-height:245px;padding:26px 22px 22px;border:1px solid #d7e8e3;border-top:0;border-radius:0 0 18px 18px;background:linear-gradient(160deg,#fff,var(--room-soft));box-shadow:0 10px 24px #16493a0c;overflow:visible}.chat365-room-card::before{content:"";position:absolute;z-index:-1;left:-1px;right:-1px;top:-55px;height:56px;clip-path:polygon(50% 0,100% 100%,0 100%);background:var(--room);opacity:.9}.chat365-room-card::after{content:"";position:absolute;left:50%;top:-33px;transform:translateX(-50%);width:12px;height:12px;border:2px solid #ffffffc9;border-radius:50%;background:#ffffff30}.chat365-room-symbol{width:46px;height:46px;margin:0 0 12px;border-radius:12px;box-shadow:0 4px 10px #16493a0a}.chat365-room-symbol svg{width:26px;height:26px}.chat365-room-card>span:nth-child(2){width:100%}.chat365-room-card small{font-size:10px;letter-spacing:1.5px}.chat365-room-card h3{font-size:18px;line-height:1.45;margin:8px 0 10px}.chat365-room-card p{font-size:12px;line-height:1.7;margin-bottom:16px}.chat365-room-card>strong{background:var(--room);color:#fff;padding:9px 16px;font-size:12px;border-radius:9px;box-shadow:0 3px 8px #163c4512}.chat365-room-card:hover{transform:translateY(-4px);box-shadow:0 12px 25px #16493a16}.chat365-room-card:focus-visible{outline:3px solid var(--room);outline-offset:5px}.chat365-room-card:hover>strong{filter:brightness(1.08)}@media(max-width:800px){.chat365-room-cards{gap:20px}.chat365-room-card{padding:22px 14px 18px}.chat365-room-card h3{font-size:16px}}@media(max-width:600px){.chat365-room-cards{grid-template-columns:1fr;gap:76px;max-width:380px;margin:70px auto 24px;padding:0 10px}.chat365-room-card{min-height:220px}}@media(prefers-reduced-motion:reduce){.chat365-room-card{transition:none}.chat365-room-card:hover{transform:none}}

/* White admin lettering with a compact red outline. */
.chat365-message.rank-admin .chat365-name,.chat365-person.rank-admin .chat365-person-name,.chat365-profile-hero.rank-admin h3{color:#fff;font-weight:850;-webkit-text-stroke:.7px #bc2534;paint-order:stroke fill;text-shadow:1px 0 #bc2534,-1px 0 #bc2534,0 1px #bc2534,0 -1px #bc2534,0 2px 1px #81132645;border:0;background:none;padding:0;letter-spacing:.15px}.chat365-person.rank-admin{background:#fff8f7}.chat365-room-switch{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;min-width:0}.chat365-room-switch select{flex:0 1 260px;width:260px;max-width:none;height:32px;min-width:60px;padding:4px 22px 4px 8px;font-size:11px}.chat365-room-switch>label{margin-left:auto;font-size:10px}.chat365-room-switch>a,.chat365-room-switch button{flex:0 0 auto;min-height:30px;height:30px;padding:5px 9px;font-size:10px;line-height:18px;white-space:nowrap}.chat365-room-switch .chat365-find-job{margin-left:0}.chat365-room-switch button.btn{font-size:10px;min-height:30px;padding:5px 9px}@media(max-width:700px){.chat365-room-switch{gap:4px}.chat365-room-switch select{flex:1 1 90px;width:90px;max-width:none;margin-left:0;font-size:10px;padding-left:6px}.chat365-room-switch>a,.chat365-room-switch button.btn{font-size:9px;padding:5px 6px}.chat365-room-switch>a:first-child{font-size:0}.chat365-room-switch>a:first-child::after{content:"← Phòng";font-size:9px}.chat365-room-switch .chat365-find-job{font-size:9px}}
.chat365-app .chat365-room-switch select{height:30px!important;min-height:30px!important;max-height:30px;line-height:18px;margin-top:0;margin-bottom:0}.chat365-app .chat365-room-switch>a,.chat365-app .chat365-room-switch button{height:30px!important;min-height:30px!important;margin-top:0;margin-bottom:0;box-sizing:border-box}
