:root{--blue:#63c7a5;--blue-dark:#43a987;--text:#0f1419;--muted:#536471;--line:#e3e3e3;--bg:#f0f0f0;--soft:#f7f7f7;--danger:#e0245e}
*{box-sizing:border-box}html{font-size:15px}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}
.app-shell{display:grid;grid-template-columns:250px minmax(480px,620px) 320px;gap:28px;max-width:1280px;margin:0 auto;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;padding:18px 12px 20px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:9px;padding:10px 14px;margin-bottom:22px;color:var(--blue);font-weight:700;font-size:21px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--blue);color:#f0f0f0;font-family:Georgia,serif;font-size:26px;font-weight:700}.brand-name{letter-spacing:-.5px}
.main-nav{display:flex;flex-direction:column;gap:3px}.nav-link{display:flex;align-items:center;gap:18px;padding:12px 16px;border-radius:28px;font-size:16px;font-weight:600;transition:.15s}.nav-link:hover{background:#e8f5fd;color:var(--blue)}.nav-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 24px}.search-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 16px}
.sidebar-profile{display:flex;align-items:center;gap:2px;margin-top:auto;padding:6px 8px;border-radius:30px}.sidebar-profile-link{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:4px 6px;border-radius:30px;color:inherit;text-decoration:none}.sidebar-profile-link:hover{background:var(--soft)}.sidebar-profile-dots{list-style:none;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;border-radius:50%;color:var(--muted);cursor:pointer;font-size:15px;line-height:1;letter-spacing:1px}.sidebar-profile-dots::-webkit-details-marker{display:none}.sidebar-profile-dots:hover{background:var(--soft);color:var(--text)}.sidebar-profile-menu .options-menu-panel{top:auto;bottom:calc(100% + 8px);right:0}.sidebar-profile-text{display:flex;flex-direction:column;min-width:0;flex:1}.sidebar-profile-text strong,.sidebar-profile-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-profile-text small,.muted,.tweet-meta span,.footer-note{color:var(--muted)}
.main-column{border-left:1px solid var(--line);border-right:1px solid var(--line);min-height:100vh}.topbar{height:62px;padding:0 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#f0f0f0;backdrop-filter:blur(10px);z-index:2}.search-form{display:flex;align-items:center;gap:8px;background:var(--soft);border-radius:24px;padding:8px 14px;color:var(--muted);width:205px}.search-form input{border:0;outline:0;background:transparent;width:100%;font-size:13px}.topbar-heading{display:flex;align-items:center;gap:8px;min-width:0}.topbar-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-actions{display:flex;align-items:center;gap:12px;min-width:0}.topbar-controls{display:flex;align-items:center;gap:10px}.topbar-back{display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text);cursor:pointer}.topbar-back:hover{background:var(--soft)}.topbar-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.topbar-search{display:none}.rail-search{width:100%;box-sizing:border-box;margin-bottom:12px}
.composer-card{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line)}.composer-form{flex:1}.composer-form textarea{display:block;width:100%;min-height:74px;border:0;resize:vertical;outline:0;font-size:19px;padding:10px 0;background:transparent;color:var(--text)}.composer-form textarea::placeholder{color:#687781}.composer-actions{border-top:1px solid var(--line);display:flex;align-items:center;padding-top:11px;gap:12px}.media-button{color:var(--blue);font-weight:600;cursor:pointer}.media-button span{font-size:13px}.composer-actions input[type=file]{display:none}.character-limit{font-size:12px;color:var(--muted);margin-left:auto}.primary-button{border:0;background:var(--blue);color:#f0f0f0;border-radius:20px;padding:8px 18px;font-weight:700;cursor:pointer}.primary-button:hover{background:var(--blue-dark)}
.avatar{flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#8ed5fa,#63c7a5);display:grid;place-items:center;color:#f0f0f0;font-weight:700;font-size:18px}.avatar-image{object-fit:cover}.avatar-sm{flex-basis:38px;width:38px;height:38px;font-size:14px}
.tweet-card{display:flex;align-items:flex-start;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line);transition:background .15s}.tweet-card:hover{background:#f7fbfd}.tweet-body{min-width:0;flex:1}.tweet-meta{display:flex;align-items:center;gap:6px;line-height:1.3}.tweet-meta strong{font-size:14px}.tweet-meta span,.tweet-meta time{font-size:13px}.tweet-content{display:block;font-size:15px;line-height:1.5;margin:5px 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}.tweet-content:hover{color:var(--text)}.tweet-image{display:block;max-width:100%;max-height:420px;object-fit:cover;border:1px solid var(--line);border-radius:16px;margin:10px 0}.tweet-actions{display:flex;align-items:center;justify-content:space-between;max-width:440px;margin-top:8px}.inline-form{display:inline}.tweet-action{border:0;background:transparent;color:var(--muted);padding:6px 8px;border-radius:18px;cursor:pointer;font-size:13px}.tweet-action:hover{color:var(--blue);background:#e8f5fd}.tweet-action.is-liked{color:var(--danger)}.tweet-action.is-retweeted{color:var(--blue-dark)}.tweet-action.danger:hover{color:var(--danger);background:#fde8ef}.options-menu{position:relative;display:inline-flex}.options-menu-panel{position:absolute;right:0;top:34px;z-index:4;min-width:130px;padding:5px;background:#f0f0f0;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 20px rgba(15,35,45,.14)}.options-menu-panel button,.options-menu-panel a{display:block;width:100%;border:0;background:transparent;color:var(--text);padding:8px 10px;text-align:left;border-radius:7px;cursor:pointer;text-decoration:none;font-size:14px}.options-menu-panel button:hover,.options-menu-panel a:hover{background:var(--soft);color:var(--blue-dark)}
.action-icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-4px;margin-right:4px}.tweet-action[aria-label="Curtir"] .action-icon{fill:none;stroke:currentColor}.tweet-action[aria-label="Curtir"].is-liked .action-icon{fill:currentColor}
.button-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px;margin-right:5px}.reply-form{background:var(--soft);display:flex;align-items:flex-end;gap:12px}.reply-field{flex:1}.reply-form input[type=text]{width:100%;min-height:48px;border:1px solid #cfd9de!important;border-radius:12px!important;background:#f0f0f0!important;padding:12px 14px!important;box-shadow:none!important}.reply-form input[type=text]:focus{border-color:var(--blue)!important;box-shadow:0 0 0 3px #c9f0e2!important;outline:0}.reply-form input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.upload-button{display:inline-flex;align-items:center;height:42px;border:1px solid #b7dfd0;border-radius:21px;background:#f0f0f0;color:var(--blue);padding:0 14px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}.upload-button:hover{background:#e9f8f2}.reply-submit{white-space:nowrap;height:42px;padding:0 17px}.report-form input{min-height:40px;background:#f0f0f0}.outline-button{border:1px solid var(--blue);background:#f0f0f0;color:var(--blue);border-radius:20px;padding:8px 15px;font-weight:700;cursor:pointer}.outline-button:hover{background:#e9f8f2}.text-button{border:0;background:transparent;color:var(--muted);font-weight:700;cursor:pointer;padding:8px}.text-button:hover{color:var(--text)}.danger-button{border:1px solid var(--danger);background:var(--danger);color:#f0f0f0;border-radius:20px;padding:8px 15px;font-weight:700;cursor:pointer}.danger-button:hover{filter:brightness(.95)}.report-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(15,20,25,.45)}.report-modal[hidden]{display:none}.modal-open{overflow:hidden}.report-modal-card{display:flex;flex-direction:column;gap:14px;width:min(100%,440px);padding:24px;background:#f0f0f0;border-radius:18px;box-shadow:0 12px 40px rgba(15,20,25,.2)}.report-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.report-modal-header h2{margin:0;font-size:20px}.report-modal-card>p{margin:0}.report-modal-card>input[name=reason]{width:100%;min-height:48px;border:1px solid #cfd9de;border-radius:12px;padding:12px 14px;outline:0}.report-modal-card>input[name=reason]:focus{border-color:var(--blue);box-shadow:0 0 0 3px #c9f0e2}.report-modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}.modal-close{border:0;background:transparent;color:var(--muted);font-size:28px;line-height:1;cursor:pointer;padding:2px 6px}.modal-close:hover{color:var(--text)}
.right-rail{padding-top:16px}.rail-card{background:var(--soft);border-radius:16px;overflow:hidden}.rail-card h2{font-size:19px;line-height:1.25;margin:0;padding:18px 16px}.rail-item{padding:13px 16px;display:flex;flex-direction:column;gap:5px}.rail-item:hover{background:#eef1f2}.rail-item small{color:var(--muted);font-size:11px;line-height:1.25}.rail-item strong{display:block;font-size:14px;line-height:1.3}.footer-note{font-size:11px;padding:12px 16px;line-height:1.7}.flash-stack{padding:12px 20px}.flash{padding:11px 14px;border-radius:10px;font-size:13px}.flash-error,.flash-danger{background:#fde8ef;color:#a41343}.flash-success{background:#e5f8ed;color:#167342}.empty-state{text-align:center;padding:96px 28px;color:var(--muted)}.empty-state h2{color:var(--text);font-size:24px;line-height:1.2;margin:16px 0 8px}.empty-state p{max-width:360px;margin:0 auto;line-height:1.5}.empty-icon{margin:auto;width:52px;height:52px;border-radius:50%;background:var(--blue);color:#f0f0f0;display:grid;place-items:center;font:700 28px Georgia}
.card,.list-group{border-color:var(--line)!important;border-radius:16px!important}.form-controlss{color:var(--text)!important;background:#f0f0f0!important;border:1px solid #cfd9de!important;border-radius:8px!important}.form-controlss:focus{border-color:var(--blue)!important;box-shadow:0 0 0 2px #bde5fb!important}
.page-section,.search-results,.chat-page{padding:18px 20px}.notification-list{display:flex;flex-direction:column}.notification-item{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--line);line-height:1.4}.notification-item:hover,.search-person:hover{background:var(--soft)}.section-label{color:var(--muted);padding:0 4px 12px;border-bottom:1px solid var(--line)}.search-person{display:flex;gap:12px;padding:14px 4px;border-bottom:1px solid var(--line)}.search-person>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}.search-person small{color:var(--muted)}.search-person>span:last-child>span{color:var(--muted);overflow:hidden;text-overflow:ellipsis}.search-reply-card{background:#fbfdfc;border-left:3px solid #c9e8dc}.search-reply-label{color:var(--blue-dark);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.search-reply-context{margin:7px 0 10px;padding:8px 10px;border-left:2px solid #c9e8dc;background:#f1faf6;font-size:12px;color:var(--muted)}.search-reply-context a{margin-left:4px;color:var(--blue-dark);font-weight:700;text-decoration:none}.search-reply-context p{margin:4px 0 0;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-context-image{display:block;max-width:180px;max-height:100px;object-fit:cover;border:1px solid var(--line);border-radius:10px;margin-top:7px}.chat-page{display:flex;flex-direction:column;height:calc(100vh - 62px)}.chat-messages{flex:1;overflow-y:auto;padding:10px 0}.chat-bubble{display:flex;flex-wrap:wrap;align-items:flex-end;gap:4px 10px;width:fit-content;max-width:80%;margin:8px 0;padding:8px 12px 6px;border-radius:16px 16px 16px 4px;background:var(--soft)}.chat-bubble.mine{margin-left:auto;background:#dff2fd;border-radius:16px 16px 4px 16px}.chat-bubble-text{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.chat-bubble-time{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap;line-height:1;user-select:none}.chat-form{display:flex;gap:10px;border-top:1px solid var(--line);padding-top:14px}.chat-form input{flex:1;border:1px solid #cfd9de;border-radius:22px;padding:10px 15px;outline:0}.chat-form input:focus{border-color:var(--blue);box-shadow:0 0 0 2px #bde5fb}
.profile-header{border-bottom:1px solid var(--line)}.profile-banner{height:145px;background-position:center;background-size:cover;background-repeat:no-repeat}.profile-summary{position:relative;padding:0 20px 20px}.profile-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.profile-avatar{flex:0 0 auto;width:96px;height:96px;border:4px solid #f0f0f0;margin-top:-48px;font-size:32px;object-fit:cover}.profile-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding-top:12px}.profile-actions form{margin:0}.profile-button{display:inline-block;padding:8px 16px;border-radius:20px;font-weight:700;background:#f0f0f0}.profile-summary h1{margin:12px 0 0;font-size:22px}.profile-handle,.profile-joined{color:var(--muted);margin:2px 0}.profile-bio{margin:14px 0 6px;white-space:pre-wrap}.profile-stats{display:flex;gap:20px;margin-top:18px;color:var(--muted)}.profile-stats strong{color:var(--text)}.profile-stats details{position:relative}.profile-stats summary{cursor:pointer;list-style:none}.profile-stats summary::-webkit-details-marker{display:none}.profile-list{position:absolute;z-index:3;top:28px;left:0;min-width:180px;padding:10px;background:#f0f0f0;border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 18px #0f14191a}.profile-list a,.profile-list span{display:block;padding:5px;color:var(--muted)}.profile-composer{border-top:0}
.settings-page{padding:28px 20px}.settings-page h1{font-size:24px;margin:0 0 8px}.settings-help{color:var(--muted);margin:0 0 24px}.settings-form{display:grid;gap:14px;max-width:520px}.settings-form input,.settings-form textarea,.settings-form select{width:100%;padding:11px 13px;border:1px solid #cfd9de;border-radius:8px}.settings-form input:focus,.settings-form textarea:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 2px #bde5fb}.settings-links{max-width:520px;margin-top:28px;border-top:1px solid var(--line)}.settings-links a{display:flex;justify-content:space-between;padding:16px 4px;border-bottom:1px solid var(--line);font-weight:600}.settings-links a span{color:var(--muted);font-size:22px}
.settings-field{display:grid;gap:6px}.settings-form .mb-3{margin:0!important}.settings-form label{display:block;margin-bottom:6px;font-size:13px;font-weight:700}.settings-form input[type=file]{padding:10px 12px;background:var(--soft);font-size:13px;border-style:dashed}.settings-form .form-text,.settings-form .invalid-feedback{color:var(--muted);font-size:12px}.settings-form .form-check{display:flex;align-items:center;gap:7px}.settings-form .form-check input{width:auto}
.image-picker{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:16px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.profile-image-preview,.banner-image-preview{display:block;justify-self:start;object-fit:cover;background:#f0f0f0;border:1px solid var(--line)}.profile-image-preview{width:76px;height:76px;border-radius:50%}.banner-image-preview{width:150px;height:76px;border-radius:10px}.image-picker-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.file-button{display:inline-flex;align-items:center;justify-content:center;min-width:132px;cursor:pointer}.visually-hidden-file{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.clear-choice{display:inline-flex!important;align-items:center;gap:7px;margin:0!important;font-weight:500!important;color:var(--muted)}.clear-choice input{width:16px!important;height:16px;margin:0}
.settings-form input:not([type=checkbox]):not([type=radio]),.settings-form textarea,.settings-form select,.settings-form .form-control{width:100%;box-sizing:border-box;padding:11px 13px;border:1px solid #cfd9de;border-radius:10px;background:#f0f0f0;color:var(--text);font:inherit}.settings-form input:focus,.settings-form textarea:focus,.settings-form select:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px rgba(99,199,165,.18)}.settings-form .form-group,.settings-form .mb-3{display:grid;gap:6px}.settings-form .form-check{display:flex;align-items:center;gap:8px}.settings-form .form-check input{width:auto}
.topbar-title{color:inherit;text-decoration:none}.topbar-title:hover{text-decoration:underline}.detail-page{padding:0}.tweet-detail{padding-top:18px;padding-bottom:18px}.thread-parent-link{display:flex;color:inherit;text-decoration:none}.thread-parent-link:hover .thread-parent{background:#f1faf6}.thread-parent{margin-left:24px;border-left:3px solid #c9e8dc;background:#fbfdfc;padding-top:14px;padding-bottom:14px}.thread-parent .tweet-detail-content{font-size:16px;line-height:1.4}.thread-current{padding-top:28px;padding-bottom:28px;background:#f0f0f0;box-shadow:0 5px 18px rgba(67,169,135,.12);margin:14px 10px}.thread-current .tweet-detail-content{font-size:22px;line-height:1.5}.thread-content-link{display:block;color:inherit;text-decoration:none}.thread-content-link:hover{text-decoration:none}.report-form{display:flex;gap:8px;margin-top:12px}.report-form input{flex:1;border:1px solid #cfd9de;border-radius:20px;padding:9px 13px}.reply-form{padding:18px 20px;border-bottom:1px solid var(--line)}.reply-form textarea{width:100%;min-height:60px;border:1px solid #cfd9de;border-radius:10px;padding:12px;resize:vertical}.replies{padding:18px 20px}.replies h2{font-size:18px;margin:0 0 10px}.reply-card{display:flex;flex-direction:column;gap:8px;padding:14px 0;border-bottom:1px solid var(--line)}.reply-card-main{display:flex;gap:10px;color:inherit;text-decoration:none}.reply-card-main>span:last-child{display:flex;flex-direction:column;gap:3px;line-height:1.4}.reply-card small{color:var(--muted)}.reply-card-main>span:last-child>span{margin-top:4px}.thread-more{align-self:flex-start;margin-left:42px;color:var(--blue);font-size:13px;font-weight:700;text-decoration:none}.thread-more:hover{text-decoration:underline}.empty-button{display:inline-block;margin-top:18px}.conversation-list{display:flex;flex-direction:column}.conversation-item{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}.conversation-item:hover{background:var(--soft)}.conversation-item>span:last-child{display:flex;flex-direction:column;gap:3px}.conversation-item small{color:var(--muted)}
@media(max-width:1050px){.app-shell{grid-template-columns:78px minmax(0,620px);justify-content:center}.brand-name,.nav-link span:not(.nav-icon):not(.messages-nav-icon),.sidebar-profile-text,.sidebar-profile-menu,.right-rail{display:none}.brand{justify-content:center}.nav-link{justify-content:center;padding:13px}.sidebar-profile{justify-content:center}.sidebar-profile-link{flex:0 0 auto;padding:4px}.main-column{border-left:1px solid var(--line)}.topbar-search{display:flex;flex:1;min-width:120px;width:auto}}
@media(max-width:650px){.app-shell{display:block}.sidebar{position:fixed;bottom:0;top:auto;z-index:5;width:100%;height:58px;background:#f0f0f0;border-top:1px solid var(--line);padding:4px 12px}.brand,.sidebar-profile{display:none}.main-nav{height:100%;flex-direction:row;justify-content:space-around}.nav-link{padding:10px 14px}.nav-link:nth-child(n+5){display:none}.main-column{border:0;padding-bottom:58px}.topbar{padding:0 14px}.search-form{width:150px}.composer-card,.tweet-card{padding-left:14px;padding-right:14px}.tweet-meta{flex-wrap:wrap}.primary-button{padding:8px 14px}}
.landing-page{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.landing-art{background:linear-gradient(135deg,#63c7a5,#63c7a5);display:grid;place-items:center}.landing-mark{font:800 340px Georgia,serif;color:#f0f0f0;opacity:.95}.landing-content{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:8vw;max-width:680px}.landing-brand{margin-bottom:32px}.landing-content h1{font-size:clamp(38px,5vw,64px);line-height:1.05;margin:0 0 18px;letter-spacing:-2px}.landing-content h2{font-size:28px;margin:0 0 32px}.landing-content p{font-weight:600;margin:30px 0 4px}.landing-button{display:block;text-align:center;width:320px;max-width:100%;padding:12px 22px;border-radius:24px;font-weight:700}.outline-button{border:1px solid var(--blue);color:var(--blue)}.outline-button:hover{background:#e8f5fd}.landing-brand .brand-name{font-size:24px}@media(max-width:700px){.landing-page{grid-template-columns:1fr}.landing-art{min-height:180px}.landing-mark{font-size:160px}.landing-content{padding:36px 28px}.landing-content h1{font-size:42px}}
.retweet-label{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:.78rem;font-weight:600;margin-bottom:6px}
.retweet-label svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.retweet-label a:hover{text-decoration:underline}
.tweet-meta time{color:var(--muted)}

.reply-tweet-card{align-items:flex-start}.reply-tweet-card>.tweet-body{min-width:0}.reply-tweet-card .thread-more{display:inline-block;margin:10px 0 0}.tweet-meta{flex-wrap:wrap;overflow-wrap:anywhere}.tweet-actions{flex-wrap:wrap;gap:4px}

[data-card-url]{cursor:pointer}[data-card-url]:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}.profile-handle-link{font-size:13px;color:var(--muted)}.tweet-meta a:hover{text-decoration:underline}.post-report-dialog{border:1px solid var(--line);border-radius:16px;padding:24px;width:min(440px,90vw)}.post-report-dialog::backdrop{background:rgba(0,0,0,.4)}.post-report-dialog textarea{display:block;width:100%;min-height:100px;margin:12px 0;padding:10px}.post-report-dialog h2{margin-top:0}

.post-options>summary{list-style:none;display:flex;align-items:center;justify-content:center}.post-options>summary::-webkit-details-marker{display:none}.post-options:not([open])>.options-menu-panel,.sidebar-profile-menu:not([open])>.options-menu-panel{display:none}

.tweet-actions{flex-wrap:nowrap;gap:0}.tweet-actions>.inline-form{flex-shrink:0}.tweet-actions>.post-options{flex-shrink:0}.bookmark-action.is-saved{color:var(--blue)}.bookmark-action.is-saved .action-icon{fill:currentColor}.options-menu-panel button.danger{color:var(--danger)}

.chat-page{height:calc(100dvh - 62px);min-height:0}.chat-page>.tweet-meta,.chat-form{flex-shrink:0}.chat-messages{min-height:0}.chat-form{background:var(--bg)}.chat-form input{min-width:0;width:100%;color:var(--text);background:var(--bg)}
@media(max-width:650px){.chat-page{height:calc(100dvh - 62px - 58px)}.chat-form input{font-size:16px}}

.main-nav .messages-nav-icon{position:relative;display:inline-flex;flex:0 0 24px;width:24px;height:24px}.unread-dot{position:absolute;top:-3px;right:-4px;width:10px;height:10px;border-radius:50%;background:var(--blue);border:2px solid var(--bg)}.unread-dot[hidden]{display:none}
.composer-preview{position:relative;display:inline-block;max-width:100%;margin:10px 0}.composer-preview[hidden]{display:none}.composer-preview img{display:block;max-width:100%;max-height:420px;border:1px solid var(--line);border-radius:16px;object-fit:cover}.composer-preview-remove{position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;border-radius:50%;background:rgba(15,20,25,.75);color:#f0f0f0;cursor:pointer;font-size:13px;line-height:1;display:grid;place-items:center}.composer-preview-remove:hover{background:rgba(15,20,25,.92)}
.input-media{position:relative;display:block}.input-media input[type=text]{padding-right:46px!important}.input-media-button{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:50%;line-height:0}.input-media-button:hover{background:var(--soft)}.input-media-button .button-icon{width:18px;height:18px;margin:0;vertical-align:0}
.chat-form{flex-direction:column;align-items:stretch;gap:0}.chat-form-row{display:flex;align-items:center;gap:10px}.chat-form-row .input-media{flex:1;min-width:0}.chat-form input[type=file]{display:none}.chat-form .composer-preview{align-self:flex-start;margin:0 0 10px}.chat-form .composer-preview img{max-height:180px;border-radius:12px}.chat-bubble-image{flex-basis:100%;display:block;max-width:100%;max-height:280px;border-radius:12px;object-fit:cover}.chat-bubble-image[src$=".enc"]{visibility:hidden}
.composer-image-error{color:#d93025;font-size:13px;margin:8px 0 0}.composer-image-error[hidden]{display:none}
.chat-e2e-badge{font-size:11px;color:var(--blue-dark);font-weight:700;margin-left:6px;white-space:nowrap}
.chat-crypto-notice{margin:8px 0 0;padding:9px 12px;border-radius:10px;background:#fff6e5;color:#8a5a00;font-size:12px;line-height:1.4}
.chat-crypto-notice[hidden]{display:none}
.image-lightbox{border:0;background:transparent;padding:0;max-width:none;max-height:none;overflow:visible}
.image-lightbox::backdrop{background:rgba(0,0,0,.82)}
.image-lightbox img{display:block;max-width:92vw;max-height:92vh;border-radius:12px;box-shadow:0 12px 48px rgba(0,0,0,.55);background:#111}
.image-lightbox-close{position:fixed;top:16px;right:20px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(240,240,240,.18);color:#f0f0f0;font-size:18px;cursor:pointer;display:grid;place-items:center}
.image-lightbox-close:hover{background:rgba(240,240,240,.32)}
[data-lightbox-bg]{cursor:zoom-in}
img.avatar-image,img.tweet-image,img.chat-bubble-image{cursor:zoom-in}
.notification-item{align-items:flex-start}
.notification-icon{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--soft)}
.notification-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.notification-icon-like{color:#e0245e}
.notification-icon-like svg{fill:currentColor}
.notification-icon-retweet{color:#00ba7c}
.notification-icon-mention{color:var(--blue-dark)}
.notification-icon-general{color:var(--muted)}
.notification-body{flex:1;min-width:0}
.notification-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.notification-heading .tweet-meta{min-width:0}
.notification-heading .post-options{flex:0 0 auto;margin-left:auto}
.notification-text{margin:2px 0 0;font-size:14px}
.notification-post-text{margin:8px 0 0;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.notification-target-image{display:block;max-width:200px;max-height:130px;object-fit:cover;border-radius:10px;margin-top:8px}
.notification-actions{max-width:440px;margin-top:10px}
.notification-activity{display:block}
.notification-activity-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.notification-activity .notification-icon{flex:0 0 24px;width:24px;height:24px;background:transparent}
.notification-activity .notification-icon svg{width:22px;height:22px}
.notification-activity-avatar-link,.notification-activity-avatar{display:block;width:24px;height:24px;flex:0 0 24px;border-radius:50%}
.notification-activity-avatar{object-fit:cover}
.notification-activity-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-left:32px}
.notification-activity-copy{flex:1;min-width:0}
.notification-activity-summary{margin:0;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.notification-activity-summary strong{color:var(--text)}
.notification-activity-summary time,.notification-activity-separator{color:var(--muted)}
.notification-activity-separator{margin:0 3px}
.notification-activity .notification-post-text,.notification-reply-context{color:var(--muted)}
.notification-reply-context{margin:4px 0 0;font-size:13px}
.notification-reply-context a:hover{text-decoration:underline}
.notification-date-separator{margin:0 5px;color:var(--muted)}
.notification-item-time{color:var(--muted)}
.notification-activity-thumbnail{display:block;width:48px;height:48px;flex:0 0 48px;border-radius:7px;object-fit:cover;cursor:zoom-in}
.conversation-item{align-items:center}
.conversation-body{flex:1;min-width:0}
.conversation-head{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.conversation-head .conversation-time{margin-left:auto;color:var(--muted);font-size:12px}
.conversation-preview{margin:2px 0 0;color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-preview-empty{opacity:.7}
.profile-preview{position:fixed;z-index:20;width:min(320px,calc(100vw - 16px));box-sizing:border-box;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#f0f0f0);color:var(--text);box-shadow:0 8px 32px rgba(15,35,45,.2);font-size:14px}
.profile-preview[hidden]{display:none}
.profile-preview-heading{display:flex;align-items:flex-start;gap:10px}
.profile-preview-avatar{width:52px;height:52px;flex:0 0 52px;object-fit:cover}
.profile-preview-avatar-link{flex:0 0 52px}
.profile-preview-identity{display:flex;flex:1;flex-direction:column;min-width:0;padding-top:3px}
.profile-preview-name{font-weight:700;overflow-wrap:anywhere}
.profile-preview-handle{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.profile-preview-follow{flex:0 0 auto;padding:7px 12px;font-size:12px;text-align:center}
.profile-preview-bio{margin:12px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-preview-stats{display:flex;gap:16px;margin-top:14px;color:var(--muted);font-size:13px}
.profile-preview-stats strong{color:var(--text)}
.profile-follows-you{display:inline-block;margin-top:8px;padding:3px 7px;border-radius:5px;background:var(--soft);color:var(--muted);font-size:12px}
/* ---- Tema escuro ---- */
[data-theme="dark"]{
--blue:#63c7a5;--blue-dark:#7fd9ba;--text:#e7eceb;--muted:#8b9a97;--line:#26383a;--bg:#0f1716;--soft:#16211f;--danger:#ff5c8a;--surface:#15201e;--input-border:#33443f;--hover-soft:rgba(99,199,165,.16)}
[data-theme="dark"] .sidebar{background:var(--bg)}
[data-theme="dark"] .nav-link:hover{background:var(--hover-soft)}
[data-theme="dark"] .tweet-card:hover{background:#15211f}
[data-theme="dark"] .tweet-action:hover{background:var(--hover-soft)}
[data-theme="dark"] .rail-item:hover{background:#1a2623}
[data-theme="dark"] .options-menu-panel{background:var(--surface)}
[data-theme="dark"] .options-menu-panel button:hover,[data-theme="dark"] .options-menu-panel a:hover{background:var(--soft)}
[data-theme="dark"] .reply-form input[type=text]{background:var(--surface)!important;border-color:var(--input-border)!important;color:var(--text)}
[data-theme="dark"] .reply-form input[type=text]:focus{border-color:var(--blue)!important;box-shadow:0 0 0 3px var(--hover-soft)!important}
[data-theme="dark"] .upload-button{background:var(--surface);border-color:var(--blue-dark)}
[data-theme="dark"] .upload-button:hover{background:var(--soft)}
[data-theme="dark"] .outline-button{background:transparent;border-color:var(--blue-dark);color:var(--blue)}
[data-theme="dark"] .outline-button:hover{background:var(--hover-soft)}
[data-theme="dark"] .report-form input{background:var(--surface);border-color:var(--input-border);color:var(--text)}
[data-theme="dark"] .report-modal-card{background:var(--surface)}
[data-theme="dark"] .report-modal-card>input[name=reason]{background:var(--bg);border-color:var(--input-border);color:var(--text)}
[data-theme="dark"] .form-controlss{background:var(--bg)!important;border-color:var(--input-border)!important}
[data-theme="dark"] .settings-form input:not([type=checkbox]):not([type=radio]),[data-theme="dark"] .settings-form textarea,[data-theme="dark"] .settings-form select,[data-theme="dark"] .settings-form .form-control{background:var(--bg);border-color:var(--input-border);color:var(--text)}
[data-theme="dark"] .profile-button{background:transparent}
[data-theme="dark"] .profile-list{background:var(--surface)}
[data-theme="dark"] .profile-avatar{border-color:var(--bg)}
[data-theme="dark"] .profile-image-preview,[data-theme="dark"] .banner-image-preview{background:var(--soft)}
[data-theme="dark"] .thread-current{background:var(--soft);box-shadow:none}
[data-theme="dark"] .thread-parent,[data-theme="dark"] .thread-parent-link:hover .thread-parent{background:var(--soft);border-left-color:var(--blue-dark)}
[data-theme="dark"] .search-reply-card{background:var(--soft);border-left-color:var(--blue-dark)}
[data-theme="dark"] .search-reply-context{background:var(--soft);border-left-color:var(--blue-dark)}
[data-theme="dark"] .chat-bubble.mine{background:#1d3a4d}
[data-theme="dark"] .chat-bubble{color:var(--text)}
[data-theme="dark"] .chat-form input{background:var(--bg);border-color:var(--input-border);color:var(--text)}
[data-theme="dark"] .flash-error,[data-theme="dark"] .flash-danger{background:#3a1c28;color:#ff9db8}
[data-theme="dark"] .flash-success{background:#12301f;color:#7fe0a8}
[data-theme="dark"] .chat-crypto-notice{background:#3a2f14;color:#e8c579}
[data-theme="dark"] .composer-form textarea::placeholder,[data-theme="dark"] .chat-form input::placeholder{color:var(--muted)}
[data-theme="dark"] .landing-page{background:var(--bg)}
/* ---- Controles de tema e idioma ---- */
/* (agora ficam no topo, ao lado do título) */
.theme-toggle{background:none;border:0;padding:0;cursor:pointer;display:inline-flex;border-radius:999px}
.theme-track{position:relative;display:flex;align-items:center;justify-content:space-between;width:58px;height:28px;padding:0 7px;border-radius:999px;background:var(--soft);border:1px solid var(--line)}
.theme-icon{width:14px;height:14px;color:var(--muted);z-index:1}
.theme-icon-sun{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.theme-icon-moon{fill:currentColor}
.theme-thumb{position:absolute;top:2px;left:2px;width:22px;height:22px;border-radius:50%;background:var(--blue);box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .18s ease}
[data-theme="dark"] .theme-thumb{transform:translateX(28px)}
[data-theme="dark"] .theme-track{background:#1f2d2a;border-color:#3f554f}
html:not([data-theme="dark"]) .theme-icon-sun{color:#f0f0f0}
[data-theme="dark"] .theme-icon-moon{color:#f0f0f0}
.lang-switch{display:flex;gap:4px;margin:0}
.lang-flag{border:1px solid transparent;background:transparent;border-radius:6px;padding:2px 3px;line-height:0;cursor:pointer;opacity:.5;display:inline-flex;align-items:center}
.lang-flag:hover{opacity:1}
.lang-flag.is-active{opacity:1;border-color:var(--line);background:var(--soft)}
.lang-flag-icon{display:block;width:22px;height:16px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.2)}
@media(max-width:650px){.topbar{padding:0 12px}.topbar-actions{gap:8px}.topbar-controls{gap:6px}.topbar-search{display:flex;flex:1;min-width:0;width:auto}.landing-controls{display:flex;gap:12px;align-items:center;margin-top:24px}}
.landing-controls{display:flex;gap:12px;align-items:center;margin-top:24px}
/* ---- Tema escuro: telas de autenticação ---- */
html[data-theme="dark"] .auth-screen{background:linear-gradient(135deg,#0e1b1a,#0f1716 45%)}
html[data-theme="dark"] .auth-card{background:var(--bg)}
html[data-theme="dark"] .auth-card h1,html[data-theme="dark"] .auth-card label{color:var(--text)}
html[data-theme="dark"] .auth-card input,html[data-theme="dark"] .auth-input,html[data-theme="dark"] .auth-card textarea{background:var(--surface);border-color:var(--input-border);color:var(--text)}
html[data-theme="dark"] .auth-disclaimer,html[data-theme="dark"] .auth-help,html[data-theme="dark"] .auth-links{color:var(--muted)}
html[data-theme="dark"] .alert{background:#3a1c28;color:#ff9db8}
/* O formulário do seletor de idioma não deve herdar o grid do formulário de auth. */
.auth-card .lang-switch{display:flex;gap:4px;margin:0}
[data-theme="dark"] .chat-form input[type=text]{background:var(--surface)}
[data-theme="dark"] .topbar{background:rgba(15,23,22,.9)}

.mention-link{color:var(--blue);text-decoration:none}.mention-link:hover{text-decoration:underline}
.mention-suggestions-anchor{position:relative}
.mention-suggestions{position:absolute;z-index:12;top:100%;left:0;width:min(340px,100%);max-height:320px;overflow-y:auto;background:var(--surface,#f0f0f0);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 28px rgba(15,35,45,.18);padding:4px}
.mention-suggestions[hidden]{display:none}
.mention-suggestion{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:6px 9px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;cursor:pointer}
.mention-suggestion:hover,.mention-suggestion.is-selected{background:var(--soft)}
.mention-suggestion img{width:36px;height:36px;flex:0 0 36px;border-radius:50%;object-fit:cover}
.mention-suggestion span{display:flex;min-width:0;flex-direction:column;line-height:1.25}
.mention-suggestion strong,.mention-suggestion small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mention-suggestion small{color:var(--muted)}
.search-form.mention-suggestions-anchor{overflow:visible}
.search-form .mention-suggestions{width:max(205px,100%)}

/* Compact spacing for notification and tweet text. */
.notification-post-text{margin-top:3px}
.notification-reply-context{margin-top:2px;line-height:1.25}
.notification-reply-context+.notification-post-text{margin-top:3px}
.tweet-detail .tweet-content{margin-top:2px;margin-bottom:7px}
.thread-current{background:#fbfdfc;box-shadow:none}
.replies{border-top:1px solid var(--line)}
.reply-form{align-items:center;gap:10px;padding:12px 20px;background:transparent}
.reply-current-avatar{flex:0 0 40px;line-height:0}
.reply-current-avatar .avatar{width:40px;height:40px;flex-basis:40px}
.reply-field{min-width:0}
.reply-form .input-media input[type=text]{min-height:42px;padding:9px 44px 9px 14px!important;border:1px solid var(--line)!important;border-radius:22px!important;background:var(--soft)!important;color:var(--text);box-shadow:none!important}
.reply-form .input-media input[type=text]:focus{border-color:var(--blue)!important;box-shadow:0 0 0 2px var(--hover-soft,#c9f0e2)!important}
.reply-form .input-media-button{right:4px}
.reply-submit{height:36px;padding:0 14px;font-size:13px;flex:0 0 auto}
[data-theme="dark"] .thread-current{background:var(--soft)}
.tweet-content{margin:2px 0 8px}
.reply-tweet-card .tweet-content,.thread-parent .tweet-content{margin:5px 0 10px}
.notification-activity-top{margin-bottom:3px}
.reply-form{border-bottom:0}
.reply-section-divider{height:1px;background:var(--line)}
.reply-form{margin:12px 20px;padding:8px 12px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
.reply-form .input-media input[type=text]{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding-left:4px!important;padding-right:44px!important}
.reply-form .input-media input[type=text]:focus{border:0!important;box-shadow:none!important}
.replies{border-top:0}
.replies h2{padding-bottom:10px;border-bottom:1px solid var(--line)}
.detail-page .thread-current{margin-bottom:0;border-bottom:0}
.reply-form{width:100%;min-height:64px;margin:0;padding:10px 20px;border:0;border-radius:0;background:transparent}
.reply-field{display:flex;align-self:stretch;align-items:center;flex:1;cursor:text}
.reply-form .input-media{width:100%}
.reply-form .input-media input[type=text]{width:100%;height:44px;min-height:44px;padding:9px 44px 9px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.reply-form .input-media input[type=text]:focus{border:0!important;box-shadow:none!important}
.reply-form .reply-submit{align-self:center}
@media(max-width:650px){.reply-form{padding-right:14px;padding-left:14px}}
.thread-current,.thread-current:hover{background:var(--bg)}
[data-theme="dark"] .thread-current,[data-theme="dark"] .thread-current:hover{background:var(--bg)}
.thread-parent,.thread-parent:hover,.thread-parent-link:hover .thread-parent{background:var(--bg)}
[data-theme="dark"] .thread-parent.thread-parent:hover{background:var(--bg)}
.thread-more{display:inline-flex;align-items:center;margin:8px 0 0;padding:4px 0;border:0;background:transparent;color:var(--blue);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.thread-more:hover{text-decoration:underline}
.thread-more:disabled{opacity:.65;cursor:wait}
.expanded-replies{margin-left:24px;border-left:2px solid var(--line)}
.search-form input{color:var(--text);caret-color:var(--blue)}
.search-form input::selection{background:var(--text);color:var(--bg)}
.search-form:focus-within{box-shadow:0 0 0 2px var(--blue)}
.search-form:focus-within .search-icon{color:var(--blue)}
