/* Phenocheck – injected styles for X.com */ /* Button outer wrapper: no background, no border-radius – just a column flex */ #phenocheck-btn { display: flex; flex-direction: column; padding: 4px 0; cursor: pointer; width: 100%; box-sizing: border-box; user-select: none; background: none; border: none; color: inherit; } /* Inner pill – receives hover/active background */ #phenocheck-btn .phenocheck-inner { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 12px; border-radius: 9999px; transition: background 0.15s ease; font-size: 20px; font-weight: 400; white-space: nowrap; font-family: inherit; } /* Badge: positioned in the left column div (sibling to the avatar), below the avatar. top is set dynamically by JS. */ .phenocheck-badge { position: absolute; top: 44px; /* default; overridden by JS to avatar.offsetHeight + 4 */ left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; align-items: center; width: 40px; cursor: default; pointer-events: auto; background: #0f1318; border: 1.5px solid #7856FF; border-radius: 6px; padding: 3px 2px 2px; box-shadow: 0 2px 8px rgba(0,0,0,0.7); } /* Fallback corner placement */ .phenocheck-badge.pc-corner { top: 42px; right: 8px; left: auto; transform: none; } /* Detail/focused tweet: small overlay badge on bottom-right of avatar */ .phenocheck-badge.pc-detail { top: auto; bottom: -4px; right: -10px; left: auto; transform: none; width: 26px; padding: 2px 1px 1px; border-width: 1px; } .phenocheck-badge.pc-detail img.pc-thumb { width: 22px; height: 28px; } .phenocheck-badge.pc-detail .pc-name { font-size: 7px; max-width: 26px; } .phenocheck-badge.pc-detail .pc-tooltip { /* keep normal tooltip size */ } .phenocheck-badge img.pc-thumb { width: 34px; height: 44px; object-fit: cover; border-radius: 3px; display: block; } .phenocheck-badge .pc-name { font-size: 8px; text-align: center; margin-top: 2px; line-height: 1.15; opacity: 0.65; max-width: 44px; word-break: break-word; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } /* Unavailable: darkened thumbnail with a "?" overlay */ .phenocheck-badge.pc-unavailable .pc-thumb-wrap { position: relative; width: 34px; height: 44px; } .phenocheck-badge.pc-unavailable img.pc-thumb { filter: brightness(0.3) grayscale(0.8); } .phenocheck-badge.pc-unavailable .pc-q { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: rgba(255,255,255,0.85); text-shadow: 0 1px 3px rgba(0,0,0,0.8); } .phenocheck-badge.pc-unavailable .pc-name { opacity: 0.5; } /* "Reside en: " – inline text right after the tweet date */ .pc-residence { display: inline-flex; align-items: center; margin-left: 6px; font-size: 13px; font-weight: 600; color: #7856FF; white-space: nowrap; vertical-align: middle; line-height: 1; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } /* Tooltip – shown on hover, positioned via JS */ .phenocheck-badge .pc-tooltip { display: none; position: fixed; z-index: 99999; background: #1a1a2e; border: 1px solid rgba(120,86,255,0.5); border-radius: 8px; padding: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); flex-direction: column; align-items: center; gap: 6px; pointer-events: none; min-width: 140px; } .phenocheck-badge:hover .pc-tooltip { display: flex; } .phenocheck-badge .pc-tooltip img { width: 120px; height: 160px; object-fit: cover; border-radius: 4px; } .phenocheck-badge .pc-tooltip b { font-size: 12px; color: #e7e9ea; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } .phenocheck-badge .pc-tooltip span { font-size: 10px; color: rgba(231,233,234,0.6); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }