/* ============================================================
   twitter.css — Twitter/X 板块样式（从 style.css 拆分，第 8 刀 · 最后一刀）
   core(style.css) 先加载、本文件后加载
   twitter 在 style.css 里被 LINE 板块夹成两大段、段内又被多处
   别板块/共享"插花"切碎，本文件收拢全部 7 个 tw 真身子段
   （含 .tw-pixiv-* 日本同人圈生态整合、tw-shimmer/twSkeletonPulse 等动画）。

   ★留在 core 的 twitter 相关项（不在本文件）：
   - [data-theme="night-sky"/"zelda"] .tw-screen / .tw-search-* /
     .tw-profile-avatar-wrap 深色主题 override —— 主题系统留 core
   - @media (aspect-ratio:1/1) 内的 .tw-* 响应式 —— 全局壳响应式留 core
   - @keyframes tw-spin + .spinning svg —— .spinning 是 fortune/twitter
     共享裸类（grep 实证），留 core
   - .glass-btn.danger-text —— niconico/twitter 共享，留 core

   ★被插花夹在 tw 区中间、但属别板块/共享的（均留 core）：
   - .reading-map-*（settings TTS 当て字读音表）
   - .chips-container/.chip*（forum NPC 多选标签）
   - .lh-friend-tag-twitter / .leak-permit-*（LINE 板块，名字带 twitter 但归 LINE）
   - .wb-toggle / .wb-toolbar / .wb-modal-*（worldbook）
   - .skeleton-*（多板块共享骨架屏）
   - .info-group-*（forum 放送局情报）
   - #pixiv-* 固定色系块（pixiv 主题，第 7 刀已留 core）
   ============================================================ */

/* ===========================
   X 样式
   =========================== */

.tw-header-title {
    display: flex;
    align-items: center;
    font-size: 17px;
}

/* 时间线卡片 */
.tw-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
}
.tw-card:active { background: var(--bg-secondary); }

.tw-card-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
/* 上传头像图片版本：保持尺寸 + 圆形裁剪 */
.tw-avatar-img {
    object-fit: cover;
    object-position: center;
}
img.tw-card-avatar { display: block; }
img.tw-profile-avatar { display: block; }
.tw-avatar-large {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 18px;
}

.tw-card-body { flex: 1; min-width: 0; }

.tw-card-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.tw-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}
.tw-handle {
    font-size: 13px;
    color: var(--text-secondary);
}
.tw-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
}
.tw-content {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.55;
    word-break: break-word;
    white-space: pre-wrap;
}
.tw-content .tw-link-url,
.tw-content .tw-link-tag,
.tw-content .tw-link-mention,
.tw-thread-content .tw-link-url,
.tw-thread-content .tw-link-tag,
.tw-thread-content .tw-link-mention {
    color: #1d9bf0;
    text-decoration: none;
    cursor: pointer;
}
.tw-content .tw-link-url:hover,
.tw-thread-content .tw-link-url:hover {
    text-decoration: underline;
}
/* ツイート画像カード */
.tw-image-card {
    margin-top: 10px;
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    gap: 8px;
}
.tw-image-emoji { font-size: 42px; }
.tw-image-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 80%;
}
/* 汎用画像プレースホルダー（webp×5 ローテーション） */
.tw-image-placeholder {
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 0;
}
.tw-placeholder-img {
    width: 100%;
    object-fit: cover;
    min-height: 140px;
    max-height: 280px;
    display: block;
    border-radius: 12px;
}
.tw-image-desc-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    max-width: 100%;
    margin: 0;
    padding: 22px 14px 11px;
    text-align: left;
    background: linear-gradient(transparent, rgba(0,0,0,0.62));
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-sizing: border-box;
}
/* 生成済み画像 */
.tw-image-generated {
    padding: 0;
    overflow: hidden;
    background: var(--bg-secondary) !important;
}
.tw-generated-img {
    width: 100%;
    object-fit: cover;
    min-height: 140px;
    max-height: 280px;
    display: block;
    border-radius: 12px;
}
.tw-image-generating {
    position: relative;
}
.tw-image-generating::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: tw-shimmer 2s infinite;
    pointer-events: none;
}
@keyframes tw-shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}
/* 生成画像フルスクリーン */
.tw-fullimg-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.tw-fullimg {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
/* 投票ツイート */
.tw-poll { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.tw-poll-option {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}
.tw-poll-clickable {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}
.tw-poll-clickable:active { background: var(--bg-secondary); }
.tw-poll-voted {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tw-poll-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--accent-color);
    opacity: 0.12;
    border-radius: 8px;
    transition: width 0.4s ease;
}
.tw-poll-winner .tw-poll-bar { opacity: 0.2; }
.tw-poll-winner .tw-poll-text { font-weight: 700; }
.tw-poll-text { position: relative; z-index: 1; }
.tw-poll-pct { position: relative; z-index: 1; font-weight: 600; font-size: 13px; color: var(--text-secondary); }
.tw-poll-total { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* スレッド（連投）表示 */
.tw-thread-group { position: relative; }
.tw-thread-connected { border-bottom: none; }
.tw-thread-connected .tw-card-avatar { position: relative; }
.tw-thread-connected .tw-card-avatar::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 2px;
    height: 24px;
    background: var(--border-medium);
}
/* インライン引用ツイート */
.tw-inline-quote {
    margin-top: 10px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    cursor: pointer;
}
.tw-inline-quote:active { background: var(--bg-base); }
.tw-iq-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.tw-iq-avatar {
    width: 20px; height: 20px; min-width: 20px;
    border-radius: 50%;
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 10px;
}
.tw-iq-content {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tw-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    max-width: 425px;
    /* 真推按钮区不撑满全宽，左对齐占约 70%，分享按钮自然靠右 */
}
.tw-card-footer .tw-action-btn:last-child {
    margin-left: auto;
}
.tw-action-btn {
    background: none; border: none; cursor: pointer; padding: 4px 2px;
    color: var(--text-secondary); font-size: 13px; display: inline-flex; align-items: center; gap: 4px;
    transition: color 0.15s; line-height: 1; border-radius: 50px;
}
.tw-action-btn span { font-size: 12px; }
.tw-action-btn:hover { color: var(--accent-color); }
.tw-action-reply:hover { color: #1d9bf0; }
.tw-action-rt:hover { color: #17bf63; }
.tw-action-like:hover { color: #e0245e; }
.tw-action-like.tw-liked { color: #e0245e; }
.tw-action-bm:hover { color: #1d9bf0; }
.tw-action-bm.tw-bookmarked { color: var(--accent-color); }
.tw-action-share:hover { color: #1d9bf0; }
/* 时间分隔符 */
.tw-time-sep { color: var(--text-secondary); font-size: 13px; margin: 0 1px; }
.tw-saved-badge {
    font-size: 11px;
    color: var(--accent-color);
}

/* 翻訳ブロック */
.tw-translation {
    font-size: 13px;
    color: var(--text-secondary);
    border-left: 2px solid var(--accent-color);
    padding: 5px 10px;
    margin: 6px 0 4px;
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
    background: var(--bg-secondary);
    word-break: break-word;
}

/* 线程视图 */
.tw-thread-scroll {
    padding-bottom: 68px;
}
.tw-thread-op {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}
.tw-thread-op-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.tw-thread-content {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    word-break: break-word;
    white-space: pre-wrap;
    margin-bottom: 12px;
}
.tw-thread-time {
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}
.tw-thread-stats {
    display: flex; gap: 16px; padding: 12px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    font-size: 13px; color: var(--text-secondary);
}
.tw-thread-stats strong { color: var(--text-primary); }
.tw-thread-stat-clickable { cursor: pointer; }
.tw-thread-stat-clickable:hover { text-decoration: underline; }
.tw-thread-actions {
    display: flex; justify-content: space-around; padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}
.tw-thread-actions .tw-action-btn { font-size: 18px; padding: 8px 12px; }
/* 引用页返回按钮 */
.tw-back-inline {
    background: none; border: none; color: var(--accent-color); cursor: pointer;
    font-size: 14px; padding: 0;
}
/* 身份编辑 tab */
.tw-identity-tab {
    flex: 1; padding: 8px 0; text-align: center; font-size: 13px; font-weight: 600;
    background: none; border: none; border-bottom: 2px solid transparent;
    color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
}
.tw-identity-tab.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }

/* 身份 modal v2：账号下拉 + 添加 + 删除 + 实名 toggle */
.tw-identity-add {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1.5px dashed var(--border-medium);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.tw-identity-add:hover,
.tw-identity-add:active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--bg-elevated);
}
.tw-identity-delete {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(208, 74, 94, 0.4);
    background: rgba(208, 74, 94, 0.08);
    color: #d04a5e;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.tw-identity-delete:hover,
.tw-identity-delete:active {
    background: rgba(208, 74, 94, 0.16);
}
.tw-identity-toggle input[type="checkbox"] {
    accent-color: var(--accent-color);
    width: 18px;
    height: 18px;
}

.tw-profile-realness {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: inline-block;
}
.tw-replies-divider {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
}

.tw-reply {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}
.tw-reply-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.tw-reply-body { flex: 1; min-width: 0; }

/* 底部操作栏 — flex子元素，不用position:fixed防止逃逸 */
.tw-thread-bar {
    background: var(--glass-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 16px;
    flex-shrink: 0;
}

/* ===== Twitter リニューアル UI ===== */

/* 全屏容器 */
/* display 不设置，由 .screen { display:none } / .screen.active { display:flex } 统一管控
   否则后置的 display:flex 会覆盖 .screen 的 display:none，导致所有 tw-screen 永远可见 */
.tw-screen {
    background: #ffffff;
    flex-direction: column;
    overflow: hidden;
}
body.dark-mode .tw-screen {
    background: var(--bg-base);
}

/* 颜色色板 */
.tw-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tw-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    outline: none;
}
.tw-color-swatch:active { transform: scale(0.9); }
.tw-color-swatch.tw-swatch-active {
    border-color: var(--text-primary);
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--bg-base);
}

/* 顶部栏 — flex子元素，不需要sticky（tw-timeline自身滚动）*/
.tw-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    background: var(--glass-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    z-index: 5;
}
.tw-top-bar-back {
    justify-content: space-between;
}
/* profile 子页面的顶部栏浮在 banner 上 — 透明背景；profile screen 整体已用 top:-inset 上推让 banner 触顶，所以 padding-top 必须保留 inset 让按钮避开灵动岛 */
#twitter-user-profile .tw-top-bar-back,
#twitter-npc-profile .tw-top-bar-back {
    border-bottom: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* 用户头像按钮（左上角）*/
.tw-user-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tw-avatar-xl {
    width: 52px;
    height: 52px;
    font-size: 20px;
}

/* X 图标 */
.tw-logo {
    color: var(--text-primary);
}

/* 透明图标按钮 */
.tw-icon-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.tw-icon-btn:active { background: var(--bg-secondary); }

/* 后退按钮 */
.tw-back-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0 8px 0 0;
    line-height: 1;
}

/* 标签栏 — flex子元素 */
.tw-tabs-bar {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    background: var(--glass-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
}
.tw-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.tw-tab-btn.active {
    color: var(--text-primary);
    font-weight: 700;
    border-bottom-color: #1d9bf0;
}

/* 时间线滚动区 */
.tw-timeline {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* 主页时间线给 fixed 底栏留出空间（子页无底栏、保持 .tw-timeline 默认） */
#twitterTimeline {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

/* NPC 角标 */
.tw-npc-badge {
    font-size: 10px;
    background: #794bc4;
    color: white;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
}

/* 蓝色 FAB（发推按钮）— position:absolute 在 screen 内，不逃逸 */
.tw-fab {
    position: absolute;
    right: 18px;
    bottom: calc(62px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #1d9bf0;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(29,155,240,0.45);
    z-index: 10;
    transition: transform 0.15s, box-shadow 0.15s;
}
.tw-fab:active {
    transform: scale(0.94);
    box-shadow: 0 2px 8px rgba(29,155,240,0.35);
}

/* 底部导航栏 — fixed 贴视口底（统一 lofter/mercari 模式，让 home indicator 那条被底栏盖住） */
.tw-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--glass-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    padding: 10px 0 env(safe-area-inset-bottom, 0px);
}
.tw-nav-btn {
    background: none;
    border: none;
    padding: 6px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.tw-nav-btn.active { color: var(--text-primary); }
.tw-nav-btn:active { opacity: 0.7; }

/* 发推按钮（蓝色 pill）*/
.tw-post-btn {
    background: #1d9bf0;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}
.tw-post-btn:hover { opacity: 0.88; }
.tw-post-btn:disabled { opacity: 0.5; cursor: default; }
/* ===== DM 界面 ===== */
.tw-dm-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tw-dm-messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tw-dm-msg {
    display: flex;
    flex-direction: column;
    max-width: 78%;
}
.tw-dm-msg-user {
    align-self: flex-end;
    align-items: flex-end;
}
.tw-dm-msg-npc {
    align-self: flex-start;
    align-items: flex-start;
}

.tw-dm-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}
.tw-dm-msg-user .tw-dm-bubble {
    background: #1d9bf0;
    color: white;
    border-bottom-right-radius: 4px;
}
.tw-dm-msg-npc .tw-dm-bubble {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.tw-dm-time {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 3px;
    padding: 0 4px;
}

.tw-dm-input-bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px env(safe-area-inset-bottom, 0px);
    background: var(--glass-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}
.tw-dm-textarea {
    flex: 1;
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    resize: none;
    overflow: hidden;
    min-height: 38px;
    max-height: 120px;
    line-height: 1.4;
}
.tw-dm-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1d9bf0;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.tw-dm-send-btn:disabled { opacity: 0.5; cursor: default; }

/* 推文折叠翻译块 */
.tw-tl-block { margin: 4px 0 0 0; }
.tw-tl-btn { font-size: 12px; color: var(--accent-color); cursor: pointer; list-style: none; display: inline-block; }
.tw-tl-btn::-webkit-details-marker { display: none; }
.tw-tl-content { font-size: 12px; color: var(--text-secondary); padding: 4px 0; line-height: 1.5; }

/* --- プロフィール内サービスリンク --- */
.tw-profile-services {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.tw-service-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s;
}
.tw-service-btn:hover { background: var(--bg-card); }
.tw-service-badge {
    background: #e0245e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* --- マシュマロ --- */
.tw-marshmallow-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
}
.tw-marshmallow-card:hover { background: var(--bg-secondary); }
.tw-marshmallow-unread { background: rgba(224, 36, 94, 0.04); }
.tw-marshmallow-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.tw-marshmallow-body { flex: 1; min-width: 0; }
.tw-marshmallow-q {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}
.tw-marshmallow-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.tw-marshmallow-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
}
.tw-marshmallow-detail-q {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
}
.tw-marshmallow-answer {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

/* --- Poipiku --- */
.tw-poipiku-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
}
.tw-poipiku-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: transform 0.15s;
}
.tw-poipiku-card:active { transform: scale(0.97); }
.tw-poipiku-thumb {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tw-poipiku-info { padding: 10px; }
.tw-poipiku-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tw-poipiku-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.tw-poipiku-detail-cover {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tw-poipiku-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    white-space: pre-wrap;
}
.tw-poipiku-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tw-poipiku-tag {
    font-size: 12px;
    color: var(--accent-color);
    background: rgba(29, 155, 240, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

/* 未読角标 */
.tw-badge { position: absolute; top: 0; right: 0; background: #e0245e; color: #fff; border-radius: 10px; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; padding: 0 3px; }

/* 通知页 */
.tw-notif-item { padding: 14px 16px; border-bottom: 1px solid var(--border-light); display: flex; gap: 14px; cursor: pointer; align-items: flex-start; }
.tw-notif-item.tw-notif-unread { background: color-mix(in srgb, #1d9bf0 4%, transparent); }
.tw-notif-icon { min-width: 28px; padding-top: 2px; }
.tw-notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tw-notif-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-color); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.tw-notif-text { font-size: 14px; line-height: 1.4; }
.tw-notif-line { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-bottom: 2px; }
.tw-notif-name { font-weight: 700; color: var(--text-primary); }
.tw-notif-handle { color: var(--text-secondary); font-size: 13px; }
.tw-notif-time { margin-left: auto; color: var(--text-secondary); font-size: 12px; }
.tw-notif-action { color: var(--text-primary); font-size: 14px; margin-bottom: 4px; }
.tw-notif-content { color: var(--text-secondary); font-size: 13px; line-height: 1.4; word-break: break-word; }
.tw-notif-tabs { border-bottom: 1px solid var(--border-light); }

/* 私信列表页 */
.tw-dm-list-item { padding: 12px 16px; display: flex; gap: 12px; border-bottom: 1px solid var(--border-light); cursor: pointer; align-items: center; }
.tw-dm-list-body { flex: 1; min-width: 0; }
.tw-dm-list-name { font-weight: 600; font-size: 14px; }
.tw-dm-list-preview { color: var(--text-secondary); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-dm-inbox-btn { margin: 12px 16px; padding: 14px 16px; background: var(--bg-secondary); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.tw-dm-inbox-count { background: #1d9bf0; color: #fff; border-radius: 10px; font-size: 11px; padding: 2px 7px; }
.tw-dm-unread-dot { width: 8px; height: 8px; background: #1d9bf0; border-radius: 50%; flex-shrink: 0; }

/* NPC互@ ヘッダー */
.tw-mention-header { font-size: 12px; color: var(--text-secondary); margin-bottom: 2px; }

/* いいね/RT 互動数字 */
/* legacy - kept for search tweet cards */
.tw-engage-count { font-size: 12px; color: var(--text-secondary); margin-left: 10px; display: inline-flex; align-items: center; gap: 4px; }
button.tw-engage-count { background: none; border: none; padding: 2px 6px; cursor: pointer; font: inherit; color: var(--text-secondary); border-radius: 999px; transition: background 0.15s, color 0.15s; }
button.tw-engage-count:hover { background: rgba(249, 24, 128, 0.1); color: #f91880; }
button.tw-engage-count.tw-liked { color: #e0245e; }

/* トレンドカード */
.tw-trends-block { border-bottom: 1px solid var(--border-light); }
.tw-trends-block[open] { border-bottom: 6px solid var(--border-light); }
.tw-trends-header { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-weight: 700; font-size: 15px; cursor: pointer; user-select: none; }
.tw-trends-header::-webkit-details-marker { display: none; }
.tw-trends-refresh { font-size: 12px; font-weight: 400; color: #1d9bf0; background: none; border: 1px solid #1d9bf0; border-radius: 14px; padding: 2px 10px; cursor: pointer; margin-left: 8px; }
.tw-trends-refresh:disabled { opacity: 0.5; cursor: default; }
.tw-trends-empty { padding: 12px 16px; font-size: 13px; color: var(--text-secondary); }
.tw-trends-empty-rich {
    padding: 60px 32px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.tw-trends-empty-icon { margin-bottom: 4px; }
.tw-trends-empty-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.tw-trends-empty-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; max-width: 280px; }
.tw-trends-empty-btn {
    margin-top: 8px;
    padding: 9px 22px;
    border-radius: 20px;
    background: #1d9bf0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.tw-trends-empty-btn:active { opacity: 0.85; }
.tw-trend-item { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--border-light); }
.tw-trend-rank { font-size: 14px; font-weight: 700; color: var(--text-secondary); min-width: 16px; text-align: center; }
.tw-trend-info { flex: 1; min-width: 0; }
.tw-trend-tag { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.tw-trend-count { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

/* 検索ページ */
.tw-search-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    background: #ffffff;
    position: relative;
    z-index: 10;
}
body.dark-mode .tw-search-bar-wrap { background: var(--bg-base); }
.tw-search-bar-icon {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}
.tw-search-input {
    flex: 1;
    padding: 9px 36px 9px 38px;
    border-radius: 20px;
    border: 1.5px solid var(--border-medium);
    background: #f1f5f9;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}
body.dark-mode .tw-search-input { background: var(--bg-secondary); }
.tw-search-input:focus { border-color: #1d9bf0; background: #ffffff; }
.tw-search-clear {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text-secondary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.tw-search-tabs { display: flex; border-bottom: 1px solid var(--border-light); }
.tw-search-tab { flex: 1; padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--text-secondary); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: color 0.15s; }
.tw-search-tab.active { color: var(--text-primary); border-bottom-color: #1d9bf0; }
.tw-search-section-title { padding: 10px 16px 6px; font-size: 18px; font-weight: 700; }
.tw-search-results-label { padding: 10px 16px 6px; font-size: 13px; color: var(--text-secondary); }
.tw-trend-clickable { cursor: pointer; }
.tw-trend-clickable:active { background: var(--bg-secondary); }

/* ブックマークボタン */
.tw-bookmark-btn { background: none; border: none; font-size: 15px; cursor: pointer; padding: 2px 4px; opacity: 0.4; transition: opacity 0.15s, color 0.15s; color: var(--text-secondary); line-height: 1; }
.tw-bookmark-btn:hover { opacity: 0.8; color: var(--accent-color); }
.tw-bookmark-btn.tw-bookmarked { opacity: 1; color: var(--accent-color); }
.tw-bookmark-btn.tw-bookmarked svg path { fill: currentColor; }

/* ===== スペース（Twitter Spaces）スタイル ===== */
.tw-spaces-section { border-bottom: 1px solid var(--border-light); padding-bottom: 4px; }
.tw-spaces-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.tw-spaces-manage-link { font-size: 12px; font-weight: 400; color: var(--accent-color); cursor: pointer; }
.tw-spaces-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
.tw-spaces-row::-webkit-scrollbar { display: none; }

.tw-space-pill { flex: 0 0 160px; border-radius: 16px; border: 1px solid var(--border-light); padding: 12px; cursor: pointer; background: var(--bg-card); transition: opacity 0.15s; }
.tw-space-pill:active { opacity: 0.7; }
.tw-space-pill-live { border-color: #e0245e; background: color-mix(in srgb, #e0245e 6%, var(--bg-card)); }
.tw-space-live-badge { font-size: 11px; color: #e0245e; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.tw-space-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #e0245e; flex-shrink: 0; animation: twLivePulse 1.4s ease-in-out infinite; }
@keyframes twLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.tw-space-archived-badge { font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; }
.tw-space-pill-title { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tw-space-pill-hosts { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-space-pill-stats { font-size: 11px; color: var(--text-secondary); }

.tw-space-create-pill { flex: 0 0 76px; border-radius: 16px; border: 2px dashed var(--border-light); padding: 12px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-secondary); font-size: 11px; background: transparent; transition: border-color 0.15s, color 0.15s; }
.tw-space-create-pill:hover { border-color: var(--accent-color); color: var(--accent-color); }
.tw-space-more-pill { flex: 0 0 72px; border-radius: 16px; border: 1px solid var(--border-light); padding: 12px 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent-color); background: var(--bg-card); text-align: center; }

/* スペース詳細画面 */
.tw-space-status-bar { padding: 10px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-light); background: color-mix(in srgb, #e0245e 4%, var(--bg-card)); }
.tw-space-status-live { color: #e0245e; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.tw-space-status-archived { color: var(--text-secondary); font-size: 13px; }
.tw-space-listeners { font-size: 13px; color: var(--text-secondary); margin-left: auto; }
.tw-space-speakers-bar { padding: 10px 16px; border-bottom: 1px solid var(--border-light); }
.tw-space-speakers-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.tw-space-speakers-row { display: flex; gap: 14px; flex-wrap: wrap; }
.tw-space-speaker-chip { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.tw-space-speaker-host { font-size: 10px; color: #e0245e; font-weight: 600; }

.tw-space-messages { padding: 0; }
.tw-space-msg { padding: 12px 16px; border-bottom: 1px solid var(--border-light); display: flex; gap: 10px; }
.tw-space-msg-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.tw-space-msg-body { flex: 1; min-width: 0; }
.tw-space-msg-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.tw-space-msg-name { font-weight: 600; font-size: 13px; }
.tw-space-msg-elapsed { font-size: 11px; color: var(--text-secondary); }
.tw-space-msg-content { font-size: 14px; line-height: 1.55; color: var(--text-primary); }

.tw-space-actions { padding: 14px 16px; display: flex; gap: 10px; border-top: 1px solid var(--border-light); }

/* ===== プロフィール（X スタイル）===== */
#twitter-npc-profile, #twitter-user-profile {
    overflow-y: auto;
    top: calc(-1 * env(safe-area-inset-top, 0px));
}
.tw-profile-banner { height: calc(130px + env(safe-area-inset-top, 0px)); width: 100%; flex-shrink: 0; position: relative; padding-top: env(safe-area-inset-top, 0px); }
.tw-profile-banner-role { position: absolute; bottom: 8px; right: 12px; font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 600; letter-spacing: 0.5px; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.tw-profile-dm-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--text-primary); background: transparent; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tw-profile-dm-btn:hover { background: var(--bg-secondary); }
.tw-npc-reply-card { border-bottom: 1px solid var(--border-light); padding: 8px 12px 4px; }
.tw-profile-info { padding: 0 16px 4px; }
.tw-profile-avatar-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -34px; margin-bottom: 10px; }
.tw-profile-avatar-wrap {
    padding: 4px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    z-index: 2; /* 浮在 banner 上方 */
}
body.dark-mode .tw-profile-avatar-wrap { background: var(--bg-base); }
.tw-profile-avatar { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #fff; }
.tw-profile-follow-btn { padding: 7px 18px; border-radius: 20px; font-size: 14px; font-weight: 700; border: 1.5px solid var(--text-primary); background: transparent; color: var(--text-primary); cursor: pointer; white-space: nowrap; }
.tw-profile-followed { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.tw-profile-name { font-size: 19px; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 5px; line-height: 1.25; }
.tw-profile-verified { color: #1d9bf0; font-size: 15px; font-weight: 700; }
.tw-profile-verified-pill {
    display: inline-block;
    margin: 4px 0 6px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 600;
    color: #1d9bf0;
    background: rgba(29, 155, 240, 0.1);
    border: 1px solid rgba(29, 155, 240, 0.3);
    border-radius: 6px;
}
.tw-profile-handle { font-size: 14px; color: var(--text-secondary); margin: 1px 0 10px; }
.tw-profile-meta a:hover { text-decoration: underline !important; }
.tw-profile-bio { font-size: 14px; color: var(--text-primary); line-height: 1.6; margin-bottom: 10px; }
.tw-profile-bio-gen { margin-bottom: 10px; }
.tw-profile-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.tw-profile-counts { display: flex; gap: 18px; font-size: 14px; color: var(--text-secondary); margin-bottom: 2px; }
.tw-profile-counts strong { color: var(--text-primary); font-weight: 700; }
.tw-profile-tabs { display: flex; border-bottom: 1px solid var(--border-light); margin-top: 12px; }
.tw-profile-tab { flex: 1; text-align: center; padding: 13px 0; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; position: relative; }
.tw-profile-tab-active { color: var(--text-primary); font-weight: 700; }
.tw-profile-tab-active::after { content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 3px; background: var(--accent-color); border-radius: 2px; }

/* Fan type badge on profile */
.tw-fan-type-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 12px; border: 1px solid; margin-top: 4px; }

/* LINE invite button */
.tw-profile-line-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 20px; background: #06c755; color: #fff; font-size: 14px; font-weight: 600; border: none; cursor: pointer; }
.tw-profile-line-btn:hover { filter: brightness(1.08); }
.tw-profile-line-btn:disabled { opacity: 0.5; cursor: default; filter: none; }
/* NPC名/アバター クリッカブル */
.tw-avatar-link { cursor: pointer; }
.tw-avatar-link:hover { opacity: 0.82; }
.tw-name-link { cursor: pointer; }
.tw-name-link:hover { text-decoration: underline; }

/* フォロー中NPC行（フォロー中タブ先頭）*/
.tw-following-npc-section { border-bottom: 1px solid var(--border-light); padding: 8px 0 4px; }
.tw-following-npc-section .tw-spaces-row { display: flex; flex-direction: row; gap: 0; }
.tw-following-npc-chip { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 10px 8px; cursor: pointer; min-width: 68px; flex-shrink: 0; }
.tw-following-npc-chip:active { opacity: 0.7; }
.tw-following-npc-name { font-size: 10px; color: var(--text-secondary); max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }

/* ===== 引用ツイート（QT）===== */
.tw-qt-card { margin: 0 12px 10px; border: 1px solid var(--border-light); border-radius: 12px; padding: 12px; background: var(--bg-secondary); }
.tw-qt-author { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.tw-qt-original { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--bg-base); }
.tw-qt-preview { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
/* === Fan Tweet Subtype Labels === */
.tw-fan-subtype {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 4px;
    opacity: 0.8;
    font-weight: 500;
}
.tw-fan-subtype.event_promo { background: rgba(52,199,89,0.15); color: #34c759; }
.tw-fan-subtype.event_haul { background: rgba(255,149,0,0.15); color: #ff9500; }
.tw-fan-subtype.event_repo { background: rgba(88,86,214,0.15); color: #5856d6; }
.tw-fan-subtype.cosplay_share { background: rgba(236,72,153,0.15); color: #ec4899; }
.tw-fan-subtype.fanart_share { background: rgba(29,155,240,0.15); color: #1d9bf0; }
.tw-fan-subtype.radio_drama { background: rgba(139,92,246,0.15); color: #8b5cf6; }
/* ─────────────────────────────────────────────────────────
   v2.48 推特详情页五按钮重构 + Action Sheet + Composer
   ───────────────────────────────────────────────────────── */

/* 五按钮行（合并 stats + actions）— 数字内联在图标右边 */
.tw-thread-actions-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-top: 12px;
}
.tw-thread-actions-v2 .tw-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}
.tw-thread-actions-v2 .tw-action-btn:hover {
    background: rgba(29, 155, 240, 0.08);
    color: var(--accent-color);
}
.tw-thread-actions-v2 .tw-action-btn span {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.tw-thread-actions-v2 .tw-action-like:hover { color: #e0245e; background: rgba(224, 36, 94, 0.08); }
.tw-thread-actions-v2 .tw-action-rt:hover { color: #00ba7c; background: rgba(0, 186, 124, 0.08); }
.tw-thread-actions-v2 .tw-action-bookmark:hover { color: #f7b955; background: rgba(247, 185, 85, 0.08); }
.tw-thread-actions-v2 .tw-action-btn.tw-liked { color: #e0245e; }
.tw-thread-actions-v2 .tw-action-btn.tw-retweeted { color: #00ba7c; }

/* リポスト ヘッダー（时间线上的转推标识）*/
.tw-rt-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 2px;
}
.tw-rt-header svg { font-size: 14px; }

/* 加载更多回复 容器 */
.tw-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0 24px;
}

/* 骨架占位（加载中视觉反馈）*/
.tw-reply-skeleton {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}
.tw-rs-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border-light);
    animation: twSkeletonPulse 1.4s ease-in-out infinite;
}
.tw-rs-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.tw-rs-line {
    height: 10px;
    background: var(--border-light);
    border-radius: 4px;
    animation: twSkeletonPulse 1.4s ease-in-out infinite;
}
.tw-rs-line-1 { width: 35%; }
.tw-rs-line-2 { width: 90%; }
.tw-rs-line-3 { width: 70%; }
@keyframes twSkeletonPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.85; }
}

/* 详情页底部 reply composer */
.tw-thread-composer {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid var(--border-light);
    background: var(--bg-primary);
}
.tw-thread-composer-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    background-size: cover;
    background-position: center;
}
.tw-thread-composer textarea {
    flex: 1;
    min-height: 36px;
    max-height: 120px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    resize: none;
    outline: none;
    line-height: 1.4;
}
.tw-thread-composer textarea:focus {
    background: var(--bg-elevated);
}
.tw-thread-composer-submit {
    flex-shrink: 0;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}
.tw-thread-composer-submit:disabled {
    background: var(--border-medium);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* 通用底部 Action Sheet */
.tw-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    animation: twSheetFadeIn 0.18s ease-out;
}
.tw-sheet-overlay.active { display: flex; }
.tw-sheet {
    width: 100%;
    max-width: 480px;
    background: var(--bg-primary);
    border-radius: 16px 16px 0 0;
    padding: 8px 0 calc(16px + env(safe-area-inset-bottom, 0));
    animation: twSheetSlideUp 0.22s ease-out;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}
.tw-sheet-handle {
    width: 36px;
    height: 4px;
    margin: 6px auto 12px;
    background: var(--border-medium);
    border-radius: 2px;
}
.tw-sheet-title {
    padding: 4px 20px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
}
.tw-sheet-items { display: flex; flex-direction: column; }
.tw-sheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 22px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}
.tw-sheet-item:hover:not(:disabled) {
    background: var(--bg-secondary);
}
.tw-sheet-item.is-danger { color: #e0245e; }
.tw-sheet-item.is-disabled,
.tw-sheet-item:disabled {
    opacity: 0.5;
    cursor: default;
}
.tw-sheet-icon {
    flex-shrink: 0;
    width: 22px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@keyframes twSheetFadeIn {
    from { background: rgba(0, 0, 0, 0); }
    to { background: rgba(0, 0, 0, 0.45); }
}
@keyframes twSheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────
   v2.49 主页 banner 头图编辑按钮
   ───────────────────────────────────────────────────────── */
.tw-profile-banner {
    position: relative;
}
.tw-profile-banner-edit {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 1;
}
.tw-profile-banner-edit:hover { background: rgba(0, 0, 0, 0.6); }
.tw-profile-banner-edit svg { display: block; }

/* ─────────────────────────────────────────────────────────
   v2.50 发推图片 / 音频附件 + 自定义音频播放器
   ───────────────────────────────────────────────────────── */
.tw-post-media-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 50%;
    color: var(--accent-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.tw-post-media-btn:hover {
    background: rgba(29, 155, 240, 0.1);
}

.tw-post-media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}
.tw-post-media-item img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}
.tw-post-media-broken {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 13px;
}
.tw-post-media-audio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: visible;
}
.tw-post-audio-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tw-post-audio-dur {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.tw-post-media-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tw-post-media-audio .tw-post-media-remove {
    position: static;
    background: transparent;
    color: var(--text-secondary);
    width: 22px;
    height: 22px;
    font-size: 16px;
    flex-shrink: 0;
}
.tw-post-media-audio .tw-post-media-remove:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

/* 时间线 / 详情页：用户上传的图片 */
.tw-user-image {
    border-radius: 14px;
    overflow: hidden;
    margin: 8px 0 6px;
    cursor: pointer;
    border: 1px solid var(--border-light);
}
.tw-user-image img {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}
.tw-image-fullview {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: zoom-out;
}
.tw-image-fullview img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

/* 时间线 / 详情页：用户上传的音频（自定义播放器）*/
.tw-user-audio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 14px;
    margin: 8px 0 6px;
    border: 1px solid var(--border-light);
}
.tw-audio-play {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}
.tw-audio-play:hover { opacity: 0.85; }
.tw-audio-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tw-audio-name {
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.tw-audio-progress {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.tw-audio-progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.12s linear;
}
.tw-audio-time {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────────────────────
   v2.51 评论嵌套 + 5 按钮 + 串线 + inline composer
   ───────────────────────────────────────────────────────── */
.tw-reply {
    position: relative;
}
.tw-reply-avatar-col {
    position: relative;
    width: 36px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tw-reply-avatar-col .tw-reply-avatar {
    position: relative;
    z-index: 2;
}
/* 串线（顶 / 底）— 走 avatar 中心 */
.tw-reply.tw-reply-conn-top .tw-reply-avatar-col::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: var(--border-medium);
    z-index: 1;
}
.tw-reply.tw-reply-conn-bot .tw-reply-avatar-col::after {
    content: '';
    position: absolute;
    top: 38px;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--border-medium);
    z-index: 1;
}
/* 没下连线但 avatar 36，间距 12 → connector 视觉是 connect 到下一条 avatar 顶 */

/* Reply 4 按钮行 */
.tw-reply-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    margin-left: -6px;
    max-width: 360px;
    justify-content: space-between;
}
.tw-reply-action {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-variant-numeric: tabular-nums;
}
.tw-reply-action:hover {
    background: rgba(29, 155, 240, 0.08);
    color: var(--accent-color);
}
.tw-reply-action svg { font-size: 14px; }
.tw-reply-action-like:hover { color: #e0245e; background: rgba(224, 36, 94, 0.08); }
.tw-reply-action-like.tw-liked { color: #e0245e; }
.tw-reply-action-rt:hover { color: #00ba7c; background: rgba(0, 186, 124, 0.08); }
.tw-reply-action span:empty { display: none; }

/* Inline composer（点评论按钮展开）*/
.tw-reply-inline-composer {
    margin-top: 8px;
    padding: 8px 0;
    border-top: 1px dashed var(--border-light);
}
.tw-reply-inline-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.tw-reply-inline-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
    background-size: cover;
    background-position: center;
}
.tw-reply-inline-input {
    flex: 1;
    min-height: 32px;
    max-height: 100px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    resize: none;
    outline: none;
    line-height: 1.4;
}
.tw-reply-inline-input:focus { background: var(--bg-elevated); }
.tw-reply-inline-submit {
    flex-shrink: 0;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}
.tw-reply-inline-submit:disabled {
    background: var(--border-medium);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────────
   v2.53 Space 入口（搜索页 Live 发现 + 顶栏 📻）
   ───────────────────────────────────────────────────────── */
.tw-discover-section {
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0 14px;
}
.tw-discover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.tw-discover-more {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-color);
    cursor: pointer;
}
.tw-discover-more:hover { text-decoration: underline; }
.tw-discover-spaces-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 16px;
    scrollbar-width: none;
}
.tw-discover-spaces-row::-webkit-scrollbar { display: none; }
.tw-discover-space {
    flex-shrink: 0;
    width: 220px;
    padding: 12px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.tw-discover-space:hover {
    background: var(--bg-elevated);
    transform: translateY(-1px);
}
.tw-discover-space-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #e0245e;
    margin-bottom: 6px;
}
.tw-discover-space-live .tw-space-live-dot {
    background: #e0245e;
}
.tw-discover-space-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tw-discover-space-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 发推工具栏 LIVE 按钮（红字徽章）*/
.tw-post-media-live { color: #e0245e; }
.tw-live-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1.5px solid currentColor;
    line-height: 1;
}

/* Space 创建 modal — 演讲者列表（修复名字看不到）*/
.tw-space-speaker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.tw-space-speaker-row input[type="checkbox"] {
    flex-shrink: 0;
    margin: 0;
}
.tw-space-speaker-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────
   v2.54 Space 录音 + 用户语音 bubble + Typing 占位
   ───────────────────────────────────────────────────────── */
.tw-space-mic-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.1s, background 0.15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.tw-space-mic-btn:hover { opacity: 0.9; }
.tw-space-mic-btn:active { transform: scale(0.98); }
.tw-space-mic-btn.tw-recording {
    background: #e0245e;
    animation: twMicPulse 1.1s ease-in-out infinite;
}
.tw-space-mic-label { white-space: nowrap; }
@keyframes twMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 36, 94, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(224, 36, 94, 0); }
}

/* 用户的语音消息泡泡 */
.tw-space-voice-bubble {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    margin-top: 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.tw-space-voice-bubble:hover { background: var(--bg-elevated); }
.tw-space-voice-icon {
    flex-shrink: 0;
    color: var(--accent-color);
    display: inline-flex;
}
.tw-space-voice-bubble.tw-voice-playing .tw-space-voice-icon::after {
    content: '⏸';
    margin-left: 4px;
    font-size: 11px;
}
.tw-space-voice-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}
.tw-space-voice-wave span {
    width: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    height: 35%;
}
.tw-space-voice-bubble.tw-voice-playing .tw-space-voice-wave span {
    animation: twVoiceWave 0.9s ease-in-out infinite alternate;
    background: var(--accent-color);
}
@keyframes twVoiceWave {
    from { height: 25%; }
    to { height: 90%; }
}
.tw-space-voice-dur {
    font-size: 12px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.tw-space-voice-text {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Typing 占位（AI 反応生成中）*/
.tw-space-typing-dots {
    display: inline-flex;
    gap: 4px;
    padding: 8px 0 4px;
}
.tw-space-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: twTypingBounce 1.2s ease-in-out infinite;
}
.tw-space-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.tw-space-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes twTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* NPC TTS bubble — 跟用户语音泡同款样式，颜色稍微低调一点 */
.tw-space-tts-bubble {
    margin-top: 6px;
    cursor: pointer;
}
.tw-space-tts-pending {
    margin-top: 6px;
    opacity: 0.7;
    cursor: default;
}
.tw-space-tts-pending .tw-space-voice-icon {
    color: var(--text-secondary);
}
/* === v2.70.0 日本同人圈生态整合 === */

/* PIXIV_LINK 自宣推卡片 */
.tw-pixiv-link-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    transition: background 0.15s;
}
.tw-pixiv-link-card:hover {
    background: rgba(255,255,255,0.08);
}
.tw-pixiv-link-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.tw-pixiv-link-text {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

/* doujin_writer fanFriend profile 信息卡 */
.tw-writer-info-card {
    margin: 12px 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.tw-writer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    font-size: 13px;
    flex-wrap: wrap;
}
.tw-writer-label {
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(244,144,12,0.15);
    color: #f4900c;
    font-size: 11px;
    font-weight: 600;
}
.tw-writer-pixiv {
    color: var(--text-secondary);
    font-size: 12px;
}
.tw-writer-meta-label {
    color: var(--text-secondary);
    font-size: 12px;
}
.tw-tag-chip {
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    font-size: 11px;
    margin-right: 4px;
}
.tw-promote-chip {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}
.tw-promote-active { background: rgba(255,127,80,0.18); color: #ff7f50; }
.tw-promote-occasional { background: rgba(155,89,182,0.18); color: #9b59b6; }
.tw-promote-shy { background: rgba(39,174,96,0.18); color: #27ae60; }

/* pixiv 作品 section */
.tw-pixiv-works-section {
    margin: 12px 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}
.tw-pixiv-works-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.tw-pixiv-works-empty {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    padding: 12px 0;
}
.tw-pixiv-work-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
}
.tw-pixiv-work-item:last-child { border-bottom: none; }
.tw-pixiv-work-title { font-size: 14px; color: var(--text-primary); }
.tw-pixiv-work-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* 「她的偏好」折叠区 */
.tw-preferences-collapsible {
    margin: 12px 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}
.tw-preferences-summary {
    padding: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
}
.tw-preferences-body {
    padding: 0 12px 12px;
}
.tw-pref-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}
.tw-pref-row label {
    font-size: 12px;
    color: var(--text-secondary);
}
.tw-pref-row input, .tw-pref-row select, .tw-pref-row textarea {
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
}
.tw-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.tw-radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 13px;
}
