/* Conversation-first layout: quiet chrome, continuous rows, grouped settings. */
:root{--green:#07a56b;--text:#181818;--line:#ededed;--bg:#ededed}
body{color:#191919;background:#ededed}.app-view{background:#ededed}.page-header{height:56px;min-height:56px;padding:10px 20px;background:#ededed;border:0}.page-header h1{font-size:19px;letter-spacing:0}.page-header small{display:none}.round-add{background:transparent;color:#222;border:0;font-size:29px}
#inboxView .inbox-body{padding:0;max-width:none;margin:0}.inbox-search{height:36px;min-height:36px;margin:0 12px 10px;padding:6px 12px;border:0;border-radius:7px;background:#fff}.inbox-search input{font-size:15px;text-align:center}
.inbox-filters,.inbox-shortcuts,#inboxSync{display:none!important}
#inboxList{background:#fff}.conversation-line{display:flex;align-items:center;gap:12px;position:relative;height:74px;padding:10px 16px;background:#fff;box-sizing:border-box}.conversation-line.is-pinned{background:#f5f5f5}.conversation-line:after{content:"";position:absolute;bottom:0;left:78px;right:0;height:1px;background:#ededed}.conversation-line>.avatar{position:relative;width:48px;height:48px;border:0;border-radius:6px;font-size:21px;overflow:visible;padding:0}.conversation-line .avatar img{border-radius:6px}.conversation-line .unread-badge{position:absolute;right:-5px;top:-5px;min-width:16px;text-align:center;font-size:10px!important}
.conversation-copy{display:flex;flex-direction:column;justify-content:center;gap:3px;flex:1;min-width:0;color:#181818;text-decoration:none;align-self:stretch}.conversation-copy b{font-weight:500;font-size:16px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.conversation-copy small{font-size:13px;color:#999;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.conversation-meta{height:44px;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;flex:none;color:#aaa;font-size:10px}.quiet-label{font-size:10px;color:#aaa}.bottom-nav .nav-item.active{background:none;color:#07a56b}.bottom-nav{background:#f7f7f7!important;border-top:1px solid #ddd}.nav-item{border-radius:0;font-size:11px}
.profile-card{margin:0 0 10px;border:0;border-radius:0;padding:25px 22px 30px;background:#fff;gap:18px}.profile-avatar{width:62px;height:62px;border-radius:8px}.profile-card b{font-size:22px;color:#171717}.profile-card small{color:#999;font-size:13px;overflow-wrap:anywhere}.profile-card:after{content:"›";margin-left:auto;color:#b7b7b7;font-size:25px}.settings-panel{margin:10px 0;border:0;border-radius:0}.settings-panel button{padding:15px 20px;min-height:55px;font-size:16px;color:#171717}.settings-panel .settings-icon{background:transparent!important;color:#07a56b!important;border-radius:0}.profile-note{display:none}
.profile-menu{display:grid;background:#fff;margin:10px 0}.profile-menu>a,.profile-menu>button{min-height:53px;display:flex;align-items:center;padding:12px 22px;color:#181818;background:#fff;border:0;border-bottom:1px solid #eee;text-decoration:none;text-align:left;font:inherit;border-radius:0;box-sizing:border-box}.profile-menu>a:after,.profile-menu>button:after{content:"›";margin-left:auto;color:#bbb}.profile-menu [hidden]{display:none!important}
.quick-actions,.list-panel{margin:0;border:0;border-radius:0;background:#fff}.quick-actions{padding:0 18px;margin-bottom:10px}.page-search{margin:0 12px 10px}.section-label{padding:10px 16px;font-size:12px}.contact-row,.real-friend{padding:12px 16px}.avatar{border-radius:6px}
dialog.person-card,dialog#realGroupInfo{background:#ededed;padding:20px!important;color:#181818;border-radius:12px;max-height:90dvh}.person-card .person-avatar{border-radius:8px;background:#07a56b}.person-card h2{font-size:21px}.person-card .person-actions{gap:0;background:#fff;margin:16px -20px 0;padding:0 20px}.person-card .person-actions>button,.person-card .person-actions>label,.person-call-row{min-height:52px;border:0!important;border-bottom:1px solid #ededed!important;border-radius:0!important;background:#fff!important;margin:0;padding:12px 0!important;text-align:left;color:#191919!important;font-size:15px}.person-call-row button{flex:1;border:0!important;background:#fff!important;font-size:15px!important;padding:0!important;color:#576b95!important}.person-actions>small{padding:6px 0;font-size:11px}.person-card .person-actions>label{display:flex;flex-direction:row-reverse;justify-content:space-between}
.person-actions input[type=checkbox],.switch{appearance:none!important;-webkit-appearance:none!important;position:relative;width:42px!important;height:25px!important;min-height:25px!important;border:1px solid #ddd!important;border-radius:20px!important;background:#fff!important;flex:none;margin:0!important;padding:0!important;cursor:pointer}.person-actions input[type=checkbox]:before,.switch:before{content:"";display:block;position:absolute;left:1px;top:1px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}.person-actions input[type=checkbox]:checked,.switch:checked{background:#07c160!important;border-color:#07c160!important}.person-actions input[type=checkbox]:checked:before,.switch:checked:before{transform:translateX(17px)}.person-card .person-note{font-size:11px}.person-card .person-id{background:transparent;border:0;padding:0;min-height:24px;margin:0;font:13px system-ui;color:#888}.person-card .person-copy{background:transparent!important;border:0!important;color:#576b95!important;padding:3px 0!important;width:auto;text-align:left}
dialog.person-card .person-actions button.danger{background:#fff!important;color:#d64a48!important}.person-close{z-index:2}
#realGroupInfo .setting-row{background:#fff;padding:13px 0;min-height:53px}#realGroupInfo .setting-row b{font-weight:400;font-size:15px}#realGroupInfo .setting-row small{font-size:11px;margin-top:2px;color:#999}#managedSettings>h3{font-size:12px;color:#888;font-weight:400;margin:18px 0 8px}#managedMembersSection{background:#fff;border:0!important;border-radius:0!important;padding:14px!important;margin:12px -20px!important}#realGroupInfo summary{cursor:pointer;font-size:15px;font-weight:400!important}#managedSettings>details{background:#fff;padding:14px;margin:10px -20px}#managedSettings>details>*:not(summary){margin-top:12px}#managedSettings .setting-row{padding-left:0;padding-right:0}#managedRole{font-size:12px}#managedIntroduction{width:100%;box-sizing:border-box}
.compact-menu{width:260px;background:#fff}.compact-menu button,.compact-menu a{display:block;width:100%;padding:14px!important;border:0!important;background:#fff!important;text-align:left;text-decoration:none;color:#222!important;box-sizing:border-box}.password-form label{display:block;margin:16px 0}.password-form input{display:block;width:100%;box-sizing:border-box}.password-form small{color:#888}.password-form [role=status]{color:#b33}.password-form button{width:100%}
@media(max-width:650px){.page-header{height:52px!important;min-height:52px!important;padding:8px 16px!important}.page-header h1{font-size:18px!important}#inboxView .inbox-body{padding:0!important}.inbox-search{margin:0 10px 8px!important}.conversation-line{height:72px;padding:10px 14px}.profile-card{margin:0 0 10px!important;padding:24px 20px!important}.settings-panel{margin:10px 0!important}.quick-actions,.list-panel{margin-left:0!important;margin-right:0!important}
dialog.person-card,dialog#realGroupInfo{width:100vw!important;max-width:100vw!important;height:100dvh;max-height:100dvh!important;max-height:var(--mchat-viewport-height,100dvh)!important;margin:0!important;top:0;left:0;border:0;border-radius:0;box-sizing:border-box;box-shadow:none}.person-card .person-close,#closeRealGroupInfo{position:sticky!important;top:0;float:right;min-width:40px;background:#ededed!important;border:0!important}.person-card .person-avatar{margin-top:32px}#realGroupInfo h2{font-size:18px;margin:14px 0 20px}
}
dialog.person-card .person-heading{display:grid;grid-template-columns:58px 1fr;column-gap:15px;align-items:center;padding:34px 0 16px}dialog.person-card .person-heading .person-avatar{grid-row:1/4;width:58px;height:58px;margin:0}dialog.person-card .person-heading h2{margin:0;font-size:20px;padding:0}dialog.person-card .person-heading .person-relation{margin:3px 0;font-size:11px}dialog.person-card .person-heading label{grid-column:2;margin:0;font-size:0}dialog.person-card .person-heading input.person-id{min-height:20px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;font:12px system-ui!important;color:#888!important;width:100%}dialog.person-card .person-heading .person-copy{grid-column:2;font-size:12px!important;min-height:24px!important}.person-card .person-actions{margin-top:0!important}#managedSettings>p{font-size:12px;color:#999!important}#managedClear{background:#fff!important;border:0!important;border-radius:0!important;width:100%;text-align:left;padding:14px 0!important;color:#d64a48!important}
.password-form button.close{position:absolute;right:12px;top:12px;width:40px;min-width:40px;padding:0!important}
