/* Inbox sections (November 18, 2026): Messages, Comments and Follow requests, switched by KokonutUI's Morphic Navbar
   (morphic-navbar.js) beside the Inbox heading. */
.inbox-heading{align-items:flex-start;gap:12px}
.inbox-title{display:flex;flex-wrap:wrap;align-items:center;column-gap:18px;row-gap:10px;min-width:0}
.inbox-title h2{margin:0}
.inbox-title .inbox-sub{flex-basis:100%;margin:0}
.inbox-tabs.morphic-navbar{padding:0;justify-content:flex-start;max-width:100%}
.inbox-tabs.morphic-navbar .mn-link{height:34px;padding:0 14px;font-size:13px}
.inbox-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-weight:700;line-height:1}
.inbox-section h3 .inbox-badge{margin-left:8px}
.inbox-panel{margin-top:14px}
/* Inbox cards: Magic UI's Tweet Card (magicui.design, MIT), ported. A card is rounded 12 px with a 1 px border and
   20 px padding, its parts 16 px apart: a 48 px round avatar with a faint border, the name (semibold) over the @handle
   (muted, smaller), a 20 px mark at the top right that brightens and grows 5 % on hover, then 15 px text at a relaxed
   line height. Cards sit in a grid, one column on phones and as many 19 rem columns as fit on wider screens. */
.tweet-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,19rem),1fr));align-items:start;gap:12px}
.tweet-card{position:relative;display:flex;flex-direction:column;gap:16px;width:100%;max-width:32rem;height:fit-content;overflow:hidden;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text)}
.tweet-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tweet-card-user{display:flex;align-items:center;gap:12px;min-width:0}
.tweet-card .avatar.tweet{width:48px;height:48px;border:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:15px}
.tweet-card .member-avatar-link{flex:none;padding:0;border:0;border-radius:50%;background:none}
.tweet-card-names{display:flex;flex-direction:column;gap:2px;min-width:0}
.tweet-card-name{padding:0;border:0;background:none;color:var(--text);font:inherit;font-size:15px;font-weight:600;line-height:1.3;white-space:nowrap;text-align:left;cursor:pointer;transition:opacity .15s ease}
.tweet-card-name:hover{opacity:.8}
.tweet-card-handle{overflow:hidden;font-size:13px;line-height:1.3;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}
.tweet-card-mark{display:grid;flex:none;place-items:center;width:28px;height:28px;margin:-4px -4px 0 0;padding:0;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer;transition:color .15s ease,transform .15s ease}
.tweet-card-mark:hover{color:var(--text);transform:scale(1.05)}
.tweet-card-mark .icon{width:20px;height:20px}
.tweet-card-body{font-size:15px;line-height:1.625;overflow-wrap:anywhere}
.tweet-card-text{margin:0;white-space:pre-wrap}
.tweet-card-quote{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);color:var(--text);font:inherit;text-align:left;cursor:pointer;box-shadow:0 1px 2px rgb(0 0 0 / .08)}
.tweet-card-quote:hover{border-color:var(--muted)}
.tweet-card-quote-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.tweet-card-quote-label{font-size:12px;color:var(--muted)}
.tweet-card-quote-text{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.tweet-card-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tweet-card-time{margin-right:auto;font-size:12px;color:var(--dim)}
.tweet-card-foot .primary-btn,.tweet-card-foot .secondary-btn,.tweet-card-foot .danger-btn{height:34px;padding:0 12px;font-size:12px}
.tweet-card button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Loading: the original's skeleton, an avatar circle beside a bar over a block, in a faint accent tint. */
.tweet-skeleton{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--line);border-radius:12px}
.tweet-skeleton-row{display:flex;gap:8px}
.tweet-skeleton span{display:block;border-radius:6px;background:color-mix(in srgb,var(--accent) 10%,transparent)}
.tweet-skeleton .tweet-skeleton-avatar{flex:none;width:40px;height:40px;border-radius:50%}
.tweet-skeleton .tweet-skeleton-line{flex:1;height:40px}
.tweet-skeleton .tweet-skeleton-block{height:80px}
.inbox-thumb{position:relative;display:grid;flex:none;place-items:center;width:56px;height:56px;overflow:hidden;border-radius:10px;background:var(--panel3);color:var(--muted)}
.inbox-thumb img,.inbox-thumb .protected-media-slot>img{width:100%;height:100%;object-fit:cover}
.inbox-thumb .protected-media-slot{position:absolute;inset:0;min-height:0}
.inbox-section+.inbox-section{margin-top:26px}
.inbox-section h3{display:flex;align-items:center;margin:0 0 10px;font-size:15px}
.inbox-note{margin:0 0 10px;font-size:13px;line-height:1.5;color:var(--muted)}
.inbox-more{display:flex;margin:14px auto 0}
.inbox-empty{padding:40px 16px}
@media (max-width:560px){
  .tweet-card{padding:16px}
  .inbox-tabs.morphic-navbar .mn-link{padding:0 11px;font-size:12px}
}
/* The inbox slideout (November 23, 2026): Untitled UI's Slideout menu, ported. A panel up to 400px wide attaches to
   the right edge, full height, over a 70% dark overlay; it slides in with the overlay fading in (300 ms) and out
   (500 ms). Its close button sits 12px from the top right; its content has 16px sides (24px from 768px wide) and 24px
   gaps. A strip of overlay stays on the left (24px, 40px from 768px) to tap to close. Inside, the inbox always uses
   its one-column phone layout: the conversation list, or the open chat. */
html.is-inbox-slideout,html.is-inbox-slideout body{overflow:hidden}
.inbox-slideout{position:fixed;inset:0;z-index:1900;display:flex;justify-content:flex-end;padding-left:24px}
.inbox-slideout-overlay{position:absolute;inset:0;background:rgba(12,14,18,.7);animation:inbox-slideout-fade .3s linear both}
.inbox-slideout-panel{position:relative;display:flex;flex-direction:column;width:100%;max-width:400px;height:100%;height:100dvh;overflow:hidden;background:var(--bg);color:var(--text);box-shadow:inset 0 0 0 1px var(--line),0 20px 24px -4px rgba(10,13,18,.08),0 8px 8px -4px rgba(10,13,18,.03),0 3px 3px -1.5px rgba(10,13,18,.04);animation:inbox-slideout-in .3s ease both}
.inbox-slideout.is-closing{pointer-events:none}
.inbox-slideout.is-closing .inbox-slideout-overlay{animation:inbox-slideout-fade .5s linear reverse both}
.inbox-slideout.is-closing .inbox-slideout-panel{animation:inbox-slideout-in .5s ease reverse both}
@keyframes inbox-slideout-fade{from{opacity:0}to{opacity:1}}
@keyframes inbox-slideout-in{from{transform:translateX(100%)}to{transform:none}}
.inbox-slideout-close{position:absolute;top:12px;right:12px;z-index:1;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer}
.inbox-slideout-close:hover{background:var(--panel2);color:var(--text)}
.inbox-slideout-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.inbox-slideout-close svg{width:20px;height:20px}
.inbox-slideout-content{display:flex;flex:1;flex-direction:column;gap:24px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 16px 16px}
@media(min-width:768px){.inbox-slideout{padding-left:40px}.inbox-slideout-content{padding:24px 24px 20px}}
@media(prefers-reduced-motion:reduce){.inbox-slideout-overlay,.inbox-slideout-panel,.inbox-slideout.is-closing .inbox-slideout-overlay,.inbox-slideout.is-closing .inbox-slideout-panel{animation:none}}
/* The inbox page's parts, fitted to the panel: the heading clears the close button (whose job the Exit button had). */
.inbox-slideout .full-section{display:flex;flex:1;flex-direction:column;width:100%;min-height:0;margin:0}
.inbox-slideout .section-heading{margin-bottom:0;padding-right:40px}
.inbox-slideout .inbox-exit{display:none}
.inbox-slideout .inbox-panel{display:flex;flex:1;flex-direction:column;min-height:0}
.inbox-slideout .chat-layout{flex:1;grid-template-columns:minmax(0,1fr);height:auto;min-height:320px}
.inbox-slideout .dm-layout.is-inbox>.chat-main,.inbox-slideout .dm-layout.is-thread>.chat-list{display:none}
.inbox-slideout .chat-list{border-right:0}
.inbox-slideout .chat-list-header,.inbox-slideout .dm-layout .chat-list-header{padding:16px;text-align:left}
.inbox-slideout .chat-list-header strong{font-size:14px}
.inbox-slideout .chat-list-header p{display:block}
.inbox-slideout .chat-contact,.inbox-slideout .dm-layout .chat-contact{justify-content:flex-start;padding:12px 14px}
.inbox-slideout .chat-contact .contact-text,.inbox-slideout .chat-contact .time{display:block}
