/* Web-only additions the design file does not spell out: menus, dialogs, skeleton sizes, helpers, and
   the narrow-width fallbacks for content the design puts in the right column. Tokens come from TalkCss. */

.t-flush{margin:0}
.t-block{display:block}
.t-grow{flex:1;min-width:0}
.t-spacer{flex:1}
.t-empty{display:flex;flex-direction:column;align-items:center;gap:var(--space-md)}
.t-avatar-sm{width:32px;height:32px;font-size:12px}
.x-avatar{overflow:hidden}
.t-avatar-img{width:100%;height:100%;object-fit:cover;display:block}
.t-input-compact{font-size:15px;padding:var(--space-sm) var(--space-md)}
.t-search-icon{position:absolute;left:var(--space-lg);top:50%;transform:translateY(-50%);width:18px;height:18px}
.t-end-sentinel{height:1px}

/* Skeleton card (Feed, loading) */
.t-skel-avatar{width:40px;height:40px;flex-shrink:0}
.t-skel-lines{flex:1;display:flex;flex-direction:column;gap:10px}
.t-skel-40{width:40%;height:12px}
.t-skel-title{width:85%;height:20px}
.t-skel-100{width:100%;height:12px}
.t-skel-92{width:92%;height:12px}

/* More actions: the design's .t-menu-host / .t-menu-anchor / .x-menu; a click outside closes it. */
.t-menu-backdrop{position:fixed;inset:0;z-index:5}
.t-menu-item{all:unset;display:block;box-sizing:border-box;width:100%;padding:var(--space-md) var(--space-lg);font-weight:700;cursor:pointer}
.t-menu-item:hover,.t-menu-item:focus-visible{background:var(--elevated)}

/* The canvas positions dialogs and toasts inside an artboard (absolute); a page needs them fixed. */
.t-layer{position:fixed;z-index:500;padding:var(--space-lg)}
.t-toast-wrap{position:fixed;bottom:var(--space-3xl);z-index:600}
.t-phone-page .t-toast-wrap{bottom:calc(var(--capsule-height) + var(--capsule-offset) + var(--space-lg))}
.t-btn-44{height:44px}
.t-edit-note{margin:0;padding:var(--space-sm) var(--space-lg);border-bottom:1px solid var(--border)}
.t-edited{min-height:0;color:var(--text-secondary);font-size:inherit}

/* Reader: author row, quoted post, reply composer */
.t-author{display:flex;align-items:center;gap:var(--space-md);padding:0 var(--space-lg) var(--space-lg)}
.t-reply-to{padding:0 var(--space-lg) var(--space-sm);font-size:13px;color:var(--text-secondary)}
.t-reply-to a{color:var(--x-blue)}
.t-quote{margin:0 var(--space-lg) var(--space-lg);cursor:pointer}
.t-reply-box{display:flex;align-items:center;gap:var(--space-md);padding:var(--space-md) var(--space-lg);border-bottom:1px solid var(--border)}
.t-reply-input{border:0;padding:var(--space-sm) 0;font-size:15px}
.t-reply-body{font-size:15px;line-height:20px}
.t-reply-body p{margin:0 0 var(--space-sm)}
.t-reply-actions{max-width:200px}
.t-article-footer{padding:0 var(--space-lg) var(--space-lg);display:flex;flex-direction:column;gap:var(--space-md)}

/* Editor extras: target above the editor, images, counter */
.t-target{padding:var(--space-sm) var(--space-lg);border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:var(--space-sm)}
.t-images{display:flex;gap:var(--space-sm);padding:var(--space-sm) var(--space-lg);flex-wrap:wrap}
.t-image{position:relative;width:96px;height:96px;border-radius:var(--radius-card);overflow:hidden;background:var(--surface)}
.t-image img{width:100%;height:100%;object-fit:cover}
.t-image .t-icon-btn{position:absolute;top:2px;right:2px;width:32px;height:32px;min-width:32px;background:var(--media-scrim);color:#FFFFFF}
.t-file{display:none}
.t-counter{font-size:13px;color:var(--text-secondary)}

/* Settings extras */
.t-key{display:flex;flex-direction:column;gap:var(--space-sm);padding:var(--space-md) var(--space-lg);border-bottom:1px solid var(--border)}
.t-mono-box{word-break:break-all}
.t-row-actions{display:flex;gap:var(--space-sm)}

/* Sign in page */
.t-auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center}

/* Right-column content (replies, revision list) moves under the main column when the right column hides. */
.t-narrow-only{display:none}
@media (max-width:1017px){.t-narrow-only{display:block}.t-right .t-wide-only{display:none}}

/* Phone width: the main column is the page; leave room above the bottom bar. */
@media (max-width:687px){.t-main,.t-wide{padding-bottom:var(--space-lg)}}

/* Screen details */
.t-popular-caption{margin:0;padding:var(--space-md) var(--space-lg);border-bottom:1px solid var(--border)}
.t-search-bar{padding:0 var(--space-lg)}
.t-search-bar .x-search-wrap{flex:1}
.t-search-hint{margin:0;padding:var(--space-lg)}
.t-profile-name{margin:0;font-size:23px;line-height:28px;font-weight:700}
.t-profile-info{display:flex;flex-direction:column;gap:var(--space-sm)}
.t-stats{display:flex;gap:var(--space-lg);flex-wrap:wrap}
.t-follow{margin-top:var(--space-md)}
.t-about{white-space:pre-wrap}
.t-article-title{padding:var(--space-lg) var(--space-lg) var(--space-md)}
.t-article-body{padding:var(--space-xl) var(--space-lg) var(--space-sm)}
.t-copy-id{align-self:flex-start}
.t-revision-group{margin:0;padding:var(--space-lg) var(--space-lg) var(--space-sm);font-weight:700}
.t-revisions-caption{margin:0;padding:var(--space-md) var(--space-lg)}
.t-composer-page{min-height:100vh}
.t-split{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0}
.t-split-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.t-split .t-body-input{min-height:calc(100vh - var(--bar-height));resize:none}
@media (max-width:687px){.t-split-two{grid-template-columns:minmax(0,1fr)}.t-split-two>.t-split-col+.t-split-col{border-left:0;border-top:1px solid var(--border)}}
.t-auth-head{display:flex;flex-direction:column;gap:var(--space-xs)}
.t-auth-title{margin:0;font-size:23px;line-height:28px;font-weight:700}
.t-add-relay .x-input{flex:1}
.t-strong{font-weight:700}

/* Images inside rendered markdown (article, editor preview, replies): as the design's media (x-media),
   at most the column's width and 510 px high, rounded, never larger than the image itself. */
.t-markdown img{display:block;max-width:100%;height:auto;max-height:var(--media-max);object-fit:contain;
  border-radius:var(--radius-card);margin:var(--space-sm) 0;background:var(--surface)}
.t-markdown pre{max-width:100%;overflow-x:auto}
.t-markdown table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.t-markdown td,.t-markdown th{border:1px solid var(--border);padding:var(--space-xs) var(--space-sm)}
.t-card-title,.t-excerpt,.x-post-head{overflow-wrap:anywhere}
.t-reply-body{overflow-wrap:anywhere}

/* Phone (below 688 px): the phone artboards, not the design's narrow-web fallback. */
.t-phone-page{min-height:100vh;display:flex;flex-direction:column}
.t-phone-main{flex:1;min-width:0;padding-bottom:calc(var(--capsule-height) + var(--capsule-offset) + var(--space-lg))}
.t-phone-page .x-mobile-header{position:sticky;top:0;z-index:2}
.t-header-end{margin-right:-10px}
.t-mobile-dock{z-index:var(--z-nav)}
.t-mobile-dock .x-bottom-nav{max-width:100%}
.t-fab{position:fixed;right:var(--space-lg);bottom:calc(var(--capsule-height) + var(--capsule-offset) + var(--space-lg));z-index:3}
.t-fab .x-fab{color:var(--on-accent)}
.t-phone-page .t-composer-page{min-height:100vh}
.t-phone-page .t-composer-bar{gap:var(--space-xs)}
.t-phone-page .t-split .t-body-input{min-height:calc(100vh - var(--bar-height) - 2 * var(--space-lg))}
.t-phone-page .t-article-actions{padding-inline:var(--space-xs)}
.t-phone-page .x-actions{max-width:none}
.t-phone-page .t-narrow-only{display:block}
/* Profile editor and header images (links from GIPHY or Unsplash, see ProfileImageHosts) */
.t-edit-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.t-edit-icon{position:relative;display:flex;padding:var(--space-sm);border-radius:var(--radius-pill);background:var(--media-scrim);color:var(--on-accent)}
.t-edit-avatar{overflow:hidden}
.t-edit-caption{padding:var(--space-md) var(--space-lg) 0}
.t-edit-fields{display:flex;flex-direction:column;gap:var(--space-lg);padding:var(--space-lg)}
.t-edit-fields textarea{resize:vertical}
.t-over{color:var(--error-red)}
.t-banner-img > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.t-edit-modal{width:600px;max-width:100%;max-height:90vh;padding:0}
.t-banner-img + .x-profile-top{position:relative;z-index:1}
/* GitHub cards and link rows in posts (RepoCard, LinkRow) */
.t-repo{color:var(--text-primary)}
.t-repo:hover,.t-linkrow:hover{background:var(--hover-overlay)}
.t-repo-text{display:flex;flex-direction:column;gap:var(--space-xs);min-width:0}
.t-block{display:block}
.t-repo .x-avatar{flex-shrink:0;overflow:hidden}
.t-profile-links{display:flex;flex-wrap:wrap;gap:var(--space-md);align-items:center}
.t-gh-link{display:flex;flex-direction:column;gap:var(--space-sm);padding:0 var(--space-lg) var(--space-lg)}
.t-start{align-self:flex-start}
.t-normal{font-weight:400}
/* Post card content (PostCard, MediaGrid, ImageViewer, VideoCard) */
.t-pre-line{white-space:pre-line}
.t-clamp3{-webkit-line-clamp:3}
.t-tile-img,.t-thumb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.t-thumb-btn{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;width:100%;cursor:pointer;background:var(--surface)}
.t-thumb-btn .t-play{position:relative}
iframe.t-player{border:0;display:block}
.t-viewer{position:fixed;z-index:600;padding:0}
.t-viewer-full{max-width:calc(100% - 128px);max-height:calc(100% - 128px);object-fit:contain;border-radius:var(--radius-card)}
.t-viewer-close{top:16px;left:16px}
.t-viewer-prev{left:16px;top:50%;margin-top:-22px}
.t-viewer-next{right:16px;top:50%;margin-top:-22px}
.t-viewer-count{position:absolute;bottom:16px;left:0;right:0;text-align:center}
@media (max-width:600px){.t-viewer-full{max-width:100%;max-height:calc(100% - 128px)}}
.t-grid-1,.t-grid-2{grid-template-rows:minmax(0,1fr)}
/* Videos (VideoHome, VideoCard, VideoPage, VideoInfo) */
.t-video-grid-web{grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr))}
.t-video-grid-phone{grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr))}
.t-video-card{display:flex;flex-direction:column;gap:var(--space-sm);color:var(--text-primary);min-width:0}
.t-video-card:hover .x-name{text-decoration:underline}
.t-video-note{margin:0;padding:var(--space-sm) var(--space-lg) var(--space-xl)}
.t-filter-row{display:flex;flex-wrap:wrap;gap:var(--space-sm);padding:0 var(--space-lg) var(--space-sm)}
.t-filter{position:relative}
.t-filter-menu{position:absolute;top:48px;left:0;z-index:6;max-height:280px;overflow-y:auto;min-width:200px}
.t-player-start{border-radius:0}
.t-video-info{display:flex;flex-direction:column;gap:var(--space-md);padding:var(--space-md) var(--space-lg) var(--space-lg)}
.t-video-title{margin:0;font-size:20px;line-height:24px;font-weight:700}
.t-video-actions{max-width:none;margin:0;justify-content:flex-start;gap:var(--space-lg)}
.t-video-comments{border-top:1px solid var(--border)}
.t-right .t-video-card{margin-bottom:var(--space-xl)}
.t-why h2{font-size:15px;line-height:20px}
/* Videos fixes: the wide column scrolls on its own (as in Videos-Web); chip rows show no scrollbar */
.t-web .t-wide{height:100%;overflow-y:auto;overflow-x:hidden}
.t-chips{scrollbar-width:none}
.t-chips::-webkit-scrollbar{display:none}
.t-chips-wrap{flex-wrap:wrap;overflow-x:visible}
.t-chip-more{border-style:dashed}
.t-video-row{display:flex;gap:var(--space-md);overflow-x:auto;padding:var(--space-sm) var(--space-lg) var(--space-lg);scrollbar-width:none;scroll-snap-type:x mandatory;scroll-padding-inline:var(--space-lg)}
.t-video-row::-webkit-scrollbar{display:none}
.t-video-row .t-video-card{flex:0 0 72%;scroll-snap-align:start}
/* Moderation (decision 18): blurred images outside the network, Show, the report note */
.t-banner-img > img.t-blur,.x-avatar img.t-blur{filter:blur(8px);transform:scale(1.1)}
.t-banner-show{z-index:1;background:var(--bg)}
.t-menu-note{margin:0;padding:var(--space-md) var(--space-lg);max-width:280px}
.t-profile-more{position:relative;margin-left:auto;margin-right:var(--space-sm)}
.x-profile-top .t-profile-more + .t-follow{margin-left:0}
/* Glass app bars (design pass 4, decisions in ui-review section 10): every top bar is glass over the content that
   scrolls under it; no line, a soft scroll-edge shadow once content is under it (t-scrolled, set by trackScroll). */
.t-bar,.x-mobile-header,.t-composer-bar{position:relative;z-index:4;background:var(--glass-bar);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter);border-bottom:0}
.t-bar.t-bar-sticky,.x-mobile-header.t-bar-sticky{position:sticky;top:0}
.t-bar::after,.x-mobile-header::after,.t-composer-bar::after{content:"";position:absolute;left:0;right:0;top:100%;height:24px;background:var(--glass-edge);opacity:0;pointer-events:none;transition:opacity .2s ease-out}
.t-bar.t-scrolled::after,.x-mobile-header.t-scrolled::after{opacity:1}
.t-bar .t-icon-btn,.x-mobile-header .t-icon-btn,.t-composer-bar .t-icon-btn,.t-glass-btn{background:var(--glass-btn);box-shadow:var(--shadow-glass-sm)}
.x-mobile-header .x-avatar{box-shadow:var(--shadow-glass-sm)}
/* Profile: clear over the banner, glass with the name once the banner has scrolled away */
.t-bar-clear{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;margin-bottom:calc(-1 * var(--bar-height));transition:background-color .2s ease-out}
.t-bar-clear .t-bar-title{opacity:0;transition:opacity .2s ease-out}
.t-bar-clear.t-scrolled::after{opacity:0}
.t-bar-clear.t-scrolled-far{background:var(--glass-bar);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter)}
.t-bar-clear.t-scrolled-far .t-bar-title,.t-bar-clear.t-scrolled-far::after{opacity:1}
/* Home: Following · Popular · Latest as a floating glass capsule under the bar */
.t-main,.t-phone-page{--tabs-top:61px}
.t-seg-capsule{position:sticky;top:var(--tabs-top,8px);z-index:3;display:flex;width:fit-content;margin:8px auto;padding:4px;gap:2px;border-radius:var(--radius-pill);background:var(--glass-bg);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter);box-shadow:var(--shadow-glass)}
.t-seg-item{all:unset;box-sizing:border-box;min-height:var(--touch-min);padding:0 var(--space-lg);display:inline-flex;align-items:center;border-radius:var(--radius-pill);font-weight:500;color:var(--glass-icon);cursor:pointer;transition:background-color .2s}
.t-seg-item.is-active{background:var(--glass-pill);color:var(--text-primary);font-weight:700}
.t-seg-item:focus-visible{box-shadow:var(--focus-ring)}
/* Reduced transparency: solid bars, no blur (the system setting, or t-solid on <html>) */
@media (prefers-reduced-transparency: reduce){
.t-bar:not(.t-bar-clear),.x-mobile-header,.t-composer-bar,.t-seg-capsule,.t-bar .t-icon-btn,.x-mobile-header .t-icon-btn,.t-glass-btn,.t-bar-clear.t-scrolled-far{background:var(--glass-solid)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
.t-solid .t-bar:not(.t-bar-clear),.t-solid .x-mobile-header,.t-solid .t-composer-bar,.t-solid .t-seg-capsule,.t-solid .x-bottom-nav,.t-solid .t-bar .t-icon-btn,.t-solid .x-mobile-header .t-icon-btn,.t-solid .t-glass-btn,.t-solid .t-bar-clear.t-scrolled-far{background:var(--glass-solid)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.t-under-bar{margin-top:calc(-1 * var(--bar-height))}
/* Chats (design pass 4, decision 19): the list and the conversation side by side wider than a phone. */
.x-nav-item,.x-bottom-nav-item{position:relative}
.t-nav-badge{position:absolute;top:4px;left:30px;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:var(--radius-pill);background:var(--nav-badge);color:#FFFFFF;font-size:13px;font-weight:500;line-height:20px;text-align:center}
.x-bottom-nav-item .t-nav-badge{top:6px;left:auto;right:14px}
.t-av-stack{position:relative;width:40px;height:40px;flex-shrink:0}
.t-av-stack .x-avatar{position:absolute;width:28px;height:28px;font-size:11px;border:2px solid var(--bg)}
.t-av-stack .x-avatar:first-child{top:0;left:0}
.t-av-stack .x-avatar:last-child{right:0;bottom:0}
.t-unread{width:10px;height:10px;border-radius:var(--radius-pill);background:var(--x-blue);flex-shrink:0}
.t-preview-unread{color:var(--text-primary);font-weight:700}
.t-chat-row-end{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}
.t-row-button{box-sizing:border-box;width:100%;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
.t-row-button:disabled{cursor:default;opacity:var(--opacity-disabled)}
.t-chat-col{width:380px;flex-shrink:0;height:100%;overflow-y:auto;border-left:1px solid var(--border);border-right:1px solid var(--border)}
.t-chat-main{flex:1;min-width:0;max-width:720px;height:100%;border-right:1px solid var(--border);position:relative;overflow:hidden}
.t-chat-main .t-part{height:100%}
.t-chat-main>.t-part:not(.t-convo){overflow-y:auto}
.t-chat-pick{display:flex;height:100%;align-items:center;justify-content:center;margin:0;padding:var(--space-lg);text-align:center}
@media (max-width:1017px){.t-chat-col{width:320px}}
.t-convo{position:relative;display:flex;flex-direction:column;overflow:hidden;background:var(--bg);height:100%}
.t-phone-main>.t-convo{position:fixed;inset:0;height:auto;z-index:5}
.t-convo>.t-bar{position:absolute;top:0;left:0;right:0;padding:0 var(--space-sm)}
.t-convo-who{flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-sm);padding-left:var(--space-xs);color:inherit;text-decoration:none}
.t-convo-who-text{min-width:0}
.t-convo-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:calc(var(--bar-height) + 8px) 0 104px}
.t-convo-scroll>.t-notice{margin-bottom:var(--space-sm)}
.t-msgs{display:flex;flex-direction:column;gap:2px;padding:0 var(--space-lg)}
.t-msg{display:flex;flex-direction:column;align-items:flex-start;max-width:78%;align-self:flex-start;gap:4px;position:relative}
.t-msg-gap{margin-top:var(--space-md)}
.t-msg-mine{align-self:flex-end;align-items:flex-end}
.t-bubble{padding:10px 14px;border-radius:20px;background:var(--bubble-theirs);color:var(--text-primary);overflow-wrap:anywhere;white-space:pre-wrap}
/* Decision 22: bubble-out, not x-blue, so white text reaches 5.4:1. */
.t-msg-mine .t-bubble{background:var(--bubble-out);color:var(--on-accent)}
.t-msg-tail .t-bubble{border-bottom-left-radius:4px}
.t-msg-mine.t-msg-tail .t-bubble{border-bottom-left-radius:20px;border-bottom-right-radius:4px}
.t-msg-meta{font-size:13px;line-height:16px;color:var(--text-secondary);padding:0 4px;display:flex;align-items:center;gap:var(--space-sm)}
.t-divider{align-self:center;font-size:13px;line-height:16px;color:var(--text-secondary);padding:var(--space-md) 0 var(--space-xs);text-align:center}
.t-sender{font-size:13px;line-height:16px;color:var(--text-secondary);padding:0 14px}
.t-chat-bar{position:absolute;left:0;right:0;bottom:0;z-index:4;display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-sm);padding:var(--space-sm) var(--space-md) var(--space-lg);background:var(--glass-bar);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter)}
.t-chat-bar .t-icon-btn{background:var(--glass-btn);box-shadow:var(--shadow-glass-sm)}
.t-chat-bar .t-icon-btn:disabled{opacity:var(--opacity-disabled);cursor:default}
.t-chat-input{all:unset;box-sizing:border-box;flex:1;min-width:0;min-height:var(--touch-min);padding:10px var(--space-lg);border-radius:22px;background:var(--search-bg);color:var(--text-primary)}
.t-chat-input::placeholder{color:var(--text-secondary)}
.t-chat-input:focus-visible{box-shadow:var(--focus-input)}
.t-chat-input:disabled{opacity:var(--opacity-disabled)}
.t-request-bar{flex-direction:column;align-items:stretch;gap:var(--space-md)}
.t-request-note{text-align:center}
.t-request-actions{display:flex;gap:var(--space-sm)}
.t-request-actions .x-btn{flex:1;height:var(--touch-min)}
.t-new-chat-search{padding:var(--space-sm) var(--space-lg)}
@media (prefers-reduced-transparency: reduce){.t-chat-bar,.t-chat-bar .t-icon-btn{background:var(--glass-solid)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}
.t-solid .t-chat-bar,.t-solid .t-chat-bar .t-icon-btn{background:var(--glass-solid)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* Chats in full (step 3): reply quotes, reactions, images, the message menu, chat info, New chat picks. */
.t-av-stack-sm{width:32px;height:32px}
.t-av-stack-sm .x-avatar{width:22px;height:22px;font-size:9px}
.t-chat-row-name{display:flex;align-items:center;gap:var(--space-xs);min-width:0}
.t-inline-icon{vertical-align:-2px;margin-right:4px}
.t-msg-row{display:flex;align-items:center;gap:var(--space-xs);max-width:100%}
.t-msg-mine .t-msg-row{flex-direction:row-reverse}
.t-msg-row>.t-bubble{min-width:0}
.t-msg-more{width:32px;height:32px;opacity:0;flex-shrink:0;transition:opacity .15s}
.t-msg:hover .t-msg-more,.t-msg-more:focus-visible,.t-msg-more[aria-expanded="true"]{opacity:1}
@media (hover:none){.t-msg-more{opacity:1}}
.t-bubble.t-expired{background:transparent;border:1px solid var(--border);color:var(--text-secondary);font-style:italic}
.t-quote-in{display:block;margin-bottom:6px;padding:6px 10px;border-radius:12px;background:rgba(0,0,0,.2);font-size:13px;line-height:16px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.t-quote-who{display:block;font-weight:700}
.t-msg-img{all:unset;box-sizing:border-box;cursor:pointer;width:240px;max-width:100%;aspect-ratio:4/3;border-radius:20px;background:var(--surface);display:flex;align-items:center;justify-content:center;color:var(--text-secondary);overflow:hidden}
.t-msg-img img{width:100%;height:100%;object-fit:cover;display:block}
.t-msg-img:focus-visible{box-shadow:var(--focus-ring)}
.t-reacts{display:flex;gap:4px;margin-top:-10px;padding:0 8px;position:relative}
.t-react{font-size:13px;line-height:16px;padding:2px 8px;border-radius:var(--radius-pill);background:var(--bg);border:1px solid var(--border)}
.t-react-mine{border-color:var(--x-blue)}
.t-msg-menu{position:absolute;top:100%;left:0;z-index:6;margin-top:4px;min-width:240px}
.t-msg-mine .t-msg-menu{left:auto;right:0}
.t-react-row{display:flex;gap:4px;padding:var(--space-sm) var(--space-md)}
.t-react-btn{all:unset;cursor:pointer;width:var(--touch-min);height:var(--touch-min);border-radius:var(--radius-pill);display:flex;align-items:center;justify-content:center;font-size:20px}
.t-react-btn:hover{background:var(--elevated)}
.t-react-btn:focus-visible{box-shadow:var(--focus-ring)}
.t-menu-sub{display:block;font-size:13px;line-height:16px;font-weight:400;color:var(--text-secondary)}
.t-bs .t-react-row{justify-content:center}
.t-bs-cancel{margin:var(--space-sm) var(--space-lg) 0;width:calc(100% - 2 * var(--space-lg))}
.t-reply-bar{flex-basis:100%;display:flex;align-items:center;gap:var(--space-sm);padding:0 var(--space-xs) var(--space-xs);color:var(--text-secondary)}
.t-reply-text{flex:1;min-width:0;color:var(--text-primary)}
.t-chat-attach{flex-basis:100%;display:flex;align-items:center;gap:var(--space-md)}
.t-chat-attach .t-strip-item{width:56px;height:56px;border-radius:var(--radius-menu);display:flex;align-items:center;justify-content:center}
.t-disabled{opacity:var(--opacity-disabled);pointer-events:none}
.t-chats-note{margin:0;padding:var(--space-md) var(--space-lg)}
.t-info-head{display:flex;flex-direction:column;align-items:center;gap:var(--space-md);padding:var(--space-2xl) var(--space-lg) var(--space-lg);text-align:center}
.t-info-head .x-avatar{width:80px;height:80px;font-size:23px}
.t-info-head .t-av-stack{width:80px;height:80px}
.t-info-head .t-av-stack .x-avatar{width:56px;height:56px;font-size:18px}
.t-info-seg{gap:var(--space-xs);padding:0 var(--space-lg);flex-wrap:wrap}
.t-info-seg .t-seg-item{border:1px solid var(--border)}
.t-info-note{margin:0;padding:var(--space-sm) var(--space-lg) var(--space-md)}
.t-info-row .t-switch{margin-left:auto}
.t-switch{all:unset;box-sizing:border-box;width:51px;height:31px;border-radius:var(--radius-pill);background:var(--control-border);position:relative;cursor:pointer;flex-shrink:0;transition:background-color .2s}
.t-switch::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:var(--radius-pill);background:#FFFFFF;transition:transform .2s}
.t-switch[aria-checked="true"]{background:var(--x-blue)}
.t-switch[aria-checked="true"]::after{transform:translateX(20px)}
.t-switch:focus-visible{box-shadow:var(--focus-ring)}
.t-row-button.t-danger{color:var(--error-red)}
.t-chips{display:flex;flex-wrap:wrap;gap:var(--space-sm);padding:var(--space-sm) var(--space-lg) 0}
.t-chip{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:2px 10px 2px 2px;border-radius:var(--radius-pill);border:1px solid var(--border);font-weight:500}
.t-chip:focus-visible{box-shadow:var(--focus-ring)}
.t-header-action{margin-left:auto}
/* Trust and security (step 4): Verify, the lock screen, Security in Settings. */
.t-verify{display:flex;flex-direction:column;gap:var(--space-lg);padding:var(--space-lg)}
.t-words{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-sm);font-family:var(--mono);font-size:15px;line-height:20px}
.t-words span{background:var(--surface);border-radius:var(--radius-control);padding:var(--space-sm);text-align:center}
.t-code{grid-template-columns:repeat(2,minmax(0,1fr));font-size:20px;line-height:28px;letter-spacing:.08em}
.t-verify-qr{display:flex;flex-direction:column;align-items:center;gap:var(--space-sm)}
.t-qr-svg{width:200px;height:200px;border-radius:var(--radius-menu);display:block}
.t-scan-video{width:240px;max-width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--radius-card);background:var(--surface)}
.t-verified-box{border:0;border-radius:var(--radius-card)}
.t-verify-alert{border-radius:var(--radius-card)}
.t-info-title{display:inline-flex;align-items:center;gap:var(--space-xs)}
.t-lock{align-items:center;text-align:center;gap:var(--space-lg)}
.t-lock .t-field{width:100%;text-align:left}
.t-lock .x-btn{width:100%}
.t-row-flat{border-bottom:0;padding-bottom:0}
.t-security-row{padding:var(--space-md) var(--space-lg);border-bottom:1px solid var(--border)}
.t-convo-scroll>.t-notice+.t-notice{margin-top:calc(-1 * var(--space-sm))}
.t-chip-on{background:var(--text-primary);color:var(--bg);border-color:var(--text-primary)}
.t-grow{flex:1;min-width:0}
/* Network status: the offline bar and relay states */
.t-network-bar{display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-sm) var(--space-lg);background:var(--surface);color:var(--text-secondary);font-size:13px;line-height:16px;border-bottom:1px solid var(--border)}
.t-network-offline{color:var(--text-primary)}
.t-relay-dot{display:inline-block;width:8px;height:8px;border-radius:var(--radius-pill);margin-right:6px;background:var(--text-secondary);vertical-align:1px}
.t-relay-connected{background:var(--repost-green)}
.t-relay-connecting{background:var(--warning-yellow)}
.t-relay-unreachable{background:var(--error-red)}
/* The sliding selection of the rail and the phone's capsule (NavPill.kt), as the Android capsule: the pill springs
   from item to item and stretches along its path; held and dragged on the capsule it becomes a lens. */
.t-nav-pilled{position:relative}
.t-nav-pill{position:absolute;left:0;top:0;width:0;height:0;border-radius:var(--radius-pill);background:var(--glass-pill);transform:translate(var(--x,0),var(--y,0));opacity:0;pointer-events:none;z-index:0;
  transition:transform .42s cubic-bezier(.34,1.42,.5,1),width .3s cubic-bezier(.34,1.3,.5,1),height .3s cubic-bezier(.34,1.3,.5,1),opacity .2s,scale .2s}
.t-nav-pill.is-shown{opacity:1}
.t-nav-pill.is-instant{transition:opacity .2s}
.t-nav-pill.is-stretch-x{animation:t-pill-stretch-x .42s cubic-bezier(.3,.7,.4,1)}
.t-nav-pill.is-stretch-y{animation:t-pill-stretch-y .42s cubic-bezier(.3,.7,.4,1)}
@keyframes t-pill-stretch-x{35%{scale:1.22 .9}}
@keyframes t-pill-stretch-y{35%{scale:.94 1.18}}
.t-nav-pilled>a{z-index:1}
/* The pill marks the selection now, so the items keep no background of their own. */
.t-nav-pilled .x-bottom-nav-item[aria-current="page"]{background:transparent}
.t-nav-pilled .x-nav-item:hover{background:var(--hover-overlay)}
.t-nav-pilled .x-nav-item[aria-current="page"]:hover{background:transparent}
/* The rail's selected icon: a heavier stroke, as on the capsule (on its own, a bold label is invisible once the
   rail collapses to icons). */
.x-nav-item[aria-current="page"] svg{stroke-width:2.5}
.x-bottom-nav.is-dragging{touch-action:none;user-select:none}
.x-bottom-nav.is-dragging .t-nav-pill{transition:width .2s,height .2s,scale .25s cubic-bezier(.34,1.56,.64,1);scale:1.18;background:rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(2px) saturate(1.8);backdrop-filter:blur(2px) saturate(1.8);box-shadow:inset 0 0 0 1px rgba(255,255,255,.45),0 6px 18px rgba(0,0,0,.14)}
.x-bottom-nav.is-dragging .x-bottom-nav-item{color:var(--glass-icon)}
.x-bottom-nav.is-dragging .x-bottom-nav-item.is-lit{color:var(--text-primary)}
.x-bottom-nav.is-dragging .x-bottom-nav-item.is-lit svg{transform:scale(1.12);transition:transform .2s}
.x-bottom-nav{touch-action:pan-y}
@media (prefers-reduced-motion:reduce){.t-nav-pill{transition:opacity .15s}.t-nav-pill.is-stretch-x,.t-nav-pill.is-stretch-y{animation:none}}
