/* Shared quote presentation in the composer, feed and post detail. */
.quoted-card{display:block;min-width:0;margin:12px 0 4px;border:1px solid #cfd9de;border-radius:16px;overflow:hidden;color:#0f1419;text-decoration:none;background:#fff;font-size:15px;line-height:1.55;text-align:left;font-weight:400}
a.quoted-card:hover{background:#f7f9f9}.quoted-author{display:flex;align-items:center;gap:6px;padding:12px 12px 0;min-width:0;font-size:13px}.quoted-author img{width:22px;height:22px;border-radius:50%;object-fit:cover}.quoted-author strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quoted-author time{color:#536471;font-size:12px;white-space:nowrap}.quoted-title{padding:8px 12px 0;font-weight:500}.quoted-copy{white-space:pre-wrap;overflow-wrap:anywhere;padding:7px 12px 12px}.quoted-hint,.quoted-unavailable{padding:12px;color:#536471;font-size:13px}.quoted-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;margin-top:8px;background:#eff3f4}.quoted-media[data-count="1"]{grid-template-columns:1fr}.quoted-media img{display:block;width:100%;height:180px;object-fit:cover}.quoted-media[data-count="1"] img{height:auto;max-height:330px;object-fit:contain;background:#f7f9f9}.quoted-author:last-child{padding-bottom:12px}
.quote-dialog{box-sizing:border-box;width:min(600px,calc(100% - 32px));max-height:90dvh;padding:0;border:0;border-radius:16px;margin:5dvh auto auto;overflow:auto;color:#0f1419;background:#fff}.quote-dialog>header{position:sticky;top:0;background:#fff;z-index:1;padding:10px 16px;min-height:42px;box-sizing:border-box}.quote-dialog>header button{font:inherit;font-size:25px;color:#0f1419;border:0;border-radius:50%;width:34px;height:34px;padding:0}.quote-dialog>header .quote-draft{width:auto;border-radius:20px;font-size:14px;color:#1d9bf0;font-weight:500;padding:0 12px}.quote-dialog form{margin:0}.quote-compose{display:flex;align-items:flex-start;gap:12px;padding:14px 18px 20px}.quote-avatar{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:#eff3f4;color:#536471;font-size:17px;overflow:hidden}.quote-avatar img{width:100%;height:100%;object-fit:cover}.quote-main{flex:1;min-width:0}.quote-dialog .quote-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}.quote-dialog textarea{display:block;width:100%;min-height:64px;padding:6px 0 10px;border:0;border-radius:0;outline:0;resize:vertical;font:inherit;font-size:20px;line-height:1.5;box-shadow:none;background:transparent;color:#0f1419}.quote-dialog textarea:focus-visible{outline:none}.quote-dialog .quote-original{padding:0;margin:0;background:transparent;border-radius:0;color:inherit;font-size:14px}.quote-original .quoted-card{margin:0}.quote-dialog [role=status]{margin:0;padding:0 18px;font-size:13px;color:#536471}.quote-dialog [role=status]:empty{display:none}.quote-dialog footer{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;border-top:1px solid #eff3f4;background:#fff}.quote-dialog footer span{font-size:12px;color:#536471}.quote-dialog footer button{font-size:14px;font-weight:600;min-width:70px;padding:9px 18px}.quote-dialog button:focus-visible,a.quoted-card:focus-visible{outline:2px solid #1d9bf0;outline-offset:2px}
@media(max-width:530px){.quote-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:none;margin:0;border-radius:0}.quote-dialog form{min-height:calc(100dvh - 54px);display:flex;flex-direction:column}.quote-compose{padding:12px;gap:10px;flex:1}.quote-main{align-self:flex-start}.quote-dialog textarea{font-size:18px}.quote-dialog footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}.quoted-card{font-size:14px}.quoted-author{flex-wrap:wrap}.quoted-media img{height:140px}}
