/* A focused Messages layout. The existing desktop split view remains usable. */
:root{--bg:#0c1020;--panel:#151a2c;--line:#30364e;--muted:#929ab2;--text:#edf0fa;--accent:#a89aff;--mint:#a89aff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{background:#0c1020;-webkit-font-smoothing:antialiased}.glow,.intro,.site-footer,.card-symbol,.pair-card>.eyebrow,.card-footer{display:none}
.topbar{padding:24px;max-width:1100px}.brand{font-size:20px;letter-spacing:-.5px}.brand-light{color:#929ab2}.status{color:#929ab2}
main{max-width:1100px}.pair-screen{display:flex;justify-content:center;min-height:calc(100dvh - 120px);padding:24px 0;gap:0}.pair-card{width:100%;max-width:400px;background:#151a2c;border:0;border-radius:24px;box-shadow:none;padding:30px}.pair-card h2{font-size:28px;letter-spacing:-.7px;line-height:1.2}.pair-card h2 br{display:none}.pair-card p{font-size:15px;line-height:1.5}.pair-card strong{color:#edf0fa}.pair-card .fine{font-size:13px}.pair-card label{font-size:12px!important;letter-spacing:0!important}#code,#recipient{background:#20263c;border:0;min-height:52px;font-size:20px}#code::placeholder{font-size:18px}.primary{background:#a89aff;color:#edf0fa;font-size:16px;min-height:50px;border-radius:14px;padding:15px 18px}.primary:hover{background:#b9adff}
body.linked{height:var(--app-height,100dvh);min-height:0;display:flex;flex-direction:column;overflow:hidden}body.linked>.topbar{display:none}body.linked>main{flex:1;min-height:0;width:100%;max-width:1440px;padding:0}.workspace{height:100%;max-height:none;min-height:0;border:0;border-radius:0;grid-template-columns:360px 1fr;background:#0c1020}.sidebar{background:#0c1020;border-right:1px solid #282e45}.inbox-heading{order:0;padding:calc(26px + env(safe-area-inset-top)) 22px 15px;align-items:flex-end}.inbox-heading .eyebrow,#chat-count{display:none}.inbox-heading h1{font-size:34px;font-weight:750;letter-spacing:-1px;margin:0}.new-button{border:0;background:none;color:#a89aff;border-radius:12px;width:44px;height:44px;display:grid;place-items:center;padding:9px}.new-button svg{width:27px;height:27px}.search{order:1;margin:0 20px 16px;border:0;border-radius:11px;background:#151a2c;padding:9px 12px;min-height:42px;gap:9px}.search>span{font-size:24px;line-height:1;color:#929ab2}.search input{font-size:16px;color:#edf0fa}.search input::placeholder{color:#929ab2}.conversations{order:2;padding:0;min-height:0;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.conversation{position:relative;border-radius:0;margin:0;gap:13px;min-height:88px;padding:15px 22px}.conversation:after{content:"";position:absolute;bottom:0;right:0;left:87px;height:1px;background:#30364e}.conversation:hover{background:#1b2137}.conversation.selected{background:#151a2c}.conversation .avatar{width:50px;height:50px;border-radius:50%;background:#393252;border:0;color:#edf0fa;font-size:19px;font-weight:500}.conversation.selected .avatar{background:#393252;color:#edf0fa}.conversation strong{font-size:16px;font-weight:650;letter-spacing:-.2px}.conversation time{font-size:12px;color:#929ab2}.conversation time:after{content:' ›';font-size:20px;margin-left:3px}.conversation p{font-size:14px;color:#929ab2;line-height:1.4;margin-top:5px}.identity{order:3;padding:12px 20px calc(12px + env(safe-area-inset-bottom));gap:10px;border:0;border-top:1px solid #20263c;margin-top:auto;flex-shrink:0}.identity .avatar{width:32px;height:32px;border:0;border-radius:50%;font-size:12px;color:#edf0fa;background:#343b56}.identity>div{min-width:0;flex:1}.identity h2{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.identity p{font-size:11px;color:#929ab2}.identity>.icon-button{font-size:12px;font-weight:500;color:#a89aff;min-width:56px;min-height:44px;padding:10px 0}.sidebar-footer{display:none}.chat{background:#0c1020}.empty-chat .empty-icon{color:#393252}.empty-chat .eyebrow{display:none}.empty-chat h2{font-size:25px;letter-spacing:-.6px}.empty-chat p{font-size:15px}.secondary{font-size:15px;color:#a89aff;min-height:44px;border-color:#30364e}.chat-header{position:relative;background:#151a2c;border-color:#282e45;gap:12px;padding:calc(15px + env(safe-area-inset-top)) 24px 15px;flex-shrink:0}.chat-header .avatar{border:0;background:#393252;color:#edf0fa;border-radius:50%;width:43px;height:43px;font-size:16px}.chat-header>div{min-width:0}.chat-header h2{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0}.chat-header p{font-size:12px;color:#929ab2}.chat-tag{display:none}.messages{min-height:0;padding:20px 24px;gap:9px;-webkit-overflow-scrolling:touch;overflow-anchor:none}.day-label{font-size:11px;font-weight:500;color:#929ab2;letter-spacing:0;margin:10px 0 15px}.bubble{max-width:min(78%,560px)}.bubble>p{background:#242b43;color:#edf0fa;font-size:16px;line-height:1.35;padding:11px 15px;border-radius:19px 19px 19px 5px;letter-spacing:-.15px}.bubble.outgoing>p{background:#a89aff;color:#edf0fa;border-radius:19px 19px 5px 19px}.bubble>small{font-size:10px;color:#929ab2;margin:5px 4px}.bubble.failed>small{color:#ff6961}.send-notice{font-size:12px;color:#e7bd73;margin:0 20px 8px;min-height:0;line-height:1.4}.send-notice:empty{display:none}.composer{flex-shrink:0;align-items:flex-end;gap:8px;background:#151a2c;border:1px solid #343b56;border-radius:25px;padding:5px 6px 5px 15px;margin:8px 18px 0}.composer textarea{min-width:0;min-height:34px;max-height:130px;padding:6px 0;font-size:16px;line-height:22px;overflow-y:auto}.composer button{flex-shrink:0;width:36px;height:36px;min-height:36px;border-radius:50%;background:#a89aff;color:#edf0fa;font-size:25px;font-weight:600;display:grid;place-items:center;touch-action:manipulation}.composer button:disabled{opacity:.35;cursor:default}.composer-note{font-size:10px;color:#929ab2;line-height:1.4;margin:8px 16px calc(12px + env(safe-area-inset-bottom))}.toast{font-size:14px;line-height:1.4;background:#20263c;border:1px solid #343b56;border-radius:16px;bottom:calc(24px + env(safe-area-inset-bottom));padding:13px 17px;max-width:calc(100vw - 32px)}body.linked .toast{top:calc(14px + env(safe-area-inset-top));bottom:auto}.icon-button{touch-action:manipulation}.back-button{color:#a89aff}.no-conversations{font-size:15px;padding:40px 25px;color:#929ab2}dialog{background:#151a2c;border:1px solid #30364e;padding:28px;border-radius:22px}dialog h2{font-size:26px}dialog p{font-size:15px}dialog label{font-size:12px!important;letter-spacing:0!important}dialog .eyebrow{display:none}.dialog-close{min-width:44px;min-height:44px;font-size:28px;color:#929ab2;right:8px;top:5px}
@media(max-width:760px){
  .topbar{padding:20px 18px;gap:12px}.brand{font-size:18px;gap:9px}.brand img{width:32px;height:32px}.status{font-size:10px;max-width:92px;line-height:1.4;text-align:right}.status:before{flex-shrink:0}main{padding:0 16px}.pair-screen{min-height:calc(100dvh - 100px);align-items:flex-start;padding:22px 0}.pair-card{padding:25px 22px}.pair-card h2{font-size:29px;margin:0 0 15px}.pair-card p{font-size:15px}.pair-card .fine{margin-bottom:0}#code{font-size:22px;letter-spacing:3px}.workspace{display:block;height:100%;min-height:0;border-radius:0}.sidebar{height:100%;border:0}.chat{display:none;height:100%}.workspace.chat-open .sidebar{display:none}.workspace.chat-open .chat{display:block}.inbox-heading{padding:calc(20px + env(safe-area-inset-top)) 20px 13px}.inbox-heading h1{font-size:34px}.new-button{width:48px;height:48px}.conversation{padding:16px 20px;min-height:88px}.conversation strong{font-size:17px}.conversation p{font-size:15px}.conversation time{font-size:12px}.chat-header{padding:calc(10px + env(safe-area-inset-top)) 15px 10px;min-height:76px;justify-content:center}.back-button{position:absolute;left:max(8px,env(safe-area-inset-left));bottom:15px;display:grid;place-items:center;width:48px;height:46px;padding:0;font-size:43px;font-weight:300;line-height:1}.chat-header .avatar{width:34px;height:34px;font-size:13px}.chat-header>div{max-width:calc(100% - 140px)}.chat-header h2{font-size:15px}.chat-header p{font-size:11px}.messages{padding:16px 12px}.bubble{max-width:84%}.bubble>p{font-size:17px;padding:10px 14px}.composer{margin:5px 10px 0;min-height:48px}.composer button{width:38px;height:38px}.composer textarea{min-height:36px;font-size:17px;padding:6px 0}.composer-note{margin:7px 12px calc(9px + env(safe-area-inset-bottom));font-size:10px}.send-notice{margin:0 14px 7px;font-size:12px}.search{min-height:44px}.search input{font-size:17px}.identity{padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.identity .icon-button{min-height:44px}dialog{max-width:none;width:100%;max-height:calc(var(--app-height,100dvh) - 20px);margin:auto 0 0;border-radius:24px 24px 0 0;border-bottom:0;padding:30px 24px calc(24px + env(safe-area-inset-bottom));overflow:auto}dialog h2{font-size:27px;margin-top:8px}#recipient{font-size:18px;letter-spacing:1px}
}
@media(max-width:350px){.topbar{padding:18px 14px}.brand{font-size:16px}.brand img{width:28px;height:28px}.status{max-width:75px;font-size:9px}.pair-card{padding:23px 18px}.pair-card h2{font-size:26px}.conversation{gap:10px;padding-left:14px;padding-right:14px}.conversation .avatar{width:43px;height:43px}.conversation:after{left:67px}.conversation strong{font-size:16px}.conversation time{font-size:11px}.inbox-heading h1{font-size:32px}}
@media(max-height:500px) and (max-width:760px){.chat-header{min-height:55px;padding-top:5px;padding-bottom:5px}.back-button{bottom:4px}.composer-note{display:none}.composer{margin-bottom:calc(6px + env(safe-area-inset-bottom))}.messages{padding-top:8px;padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Keep Eternium's purple and off-white palette in the Messages layout. */
.primary,.bubble.outgoing>p,.composer button{color:#171329}.brand-light,.conversation .avatar,.conversation.selected .avatar,.identity .avatar,.chat-header .avatar{color:#cfc5ff}.conversation.selected{background:#a89aff12}.conversation.selected .avatar{background:#493b70}.search input,.composer textarea{color:#edf0fa}
.conversation.unread:before{content:"";position:absolute;left:6px;top:37px;width:7px;height:7px;border-radius:50%;background:#a89aff}.conversation.unread strong{color:#f8f5ff}.notification-settings{min-width:44px;min-height:44px;padding:10px;color:#a89aff;flex-shrink:0;display:grid;place-items:center}.notification-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:16px;letter-spacing:0!important;text-transform:none;font-size:15px!important;padding:17px 0;margin:0!important;border-bottom:1px solid #30364e;color:#edf0fa!important;font-weight:400!important}.notification-toggle small{display:block;color:#929ab2;font-size:12px;line-height:1.5;max-width:230px;margin-top:5px}.notification-toggle input{width:22px;height:22px;accent-color:#a89aff;flex-shrink:0}.notifications-dialog .secondary{width:100%}.notification-note,#install-hint{font-size:12px;line-height:1.6}.notifications-dialog h2{padding-right:25px}
