.swr-hidden-sibling { display: none !important; }

/* 核心基座样式 */
    #swr-container *, #swr-container { box-sizing: border-box !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: normal !important; }
    #swr-container.swr-is-fullscreen { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; max-width: none !important; margin: 0 !important; padding: 0 !important; z-index: 2147483647 !important; border-radius: 0 !important; border: none !important; box-shadow: none !important; background: #f2f2f2 !important; transform: none !important; overscroll-behavior-x: none !important; }
    
    .swr-btn-primary { background: #000; color: #fff; border: none; cursor: pointer; width: 70%; padding: 12px; border-radius: 30px; font-size: 15px; transition: background 0.2s; }
    .swr-btn-primary:active { background: #333; }
    .swr-panel { position: absolute; top:0; left:0; width:100%; height:100%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #fff; padding: 20px;}
    #swr-login input { padding: 12px 15px; width: 70%; margin-bottom: 15px; border: 1px solid rgba(0,0,0,0.05); border-radius: 30px; font-size: 14px; text-align: center; outline: none; background: #f2f2f2; }
    .swr-auth-link { flex:1; text-align:center; text-decoration:none; border:1px solid; padding:10px; border-radius:30px; font-size:13px; }

    #swr-main-app { width: 100%; height: 100%; position: absolute; top:0; left:0; background: #f2f2f2;}
    .swr-tab-content { display: none; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
    .swr-tab-content.active { display: block; }
    
    .swr-msg-header { position: absolute; top: 0; left: 0; width: 100%; height: 55px; background: rgba(242,242,242,0.9); backdrop-filter: blur(10px); z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .swr-msg-tabs { display: flex; gap: 20px; height: 100%; align-items: center; }
    .swr-msg-tab { font-size: 15px; color: #888; cursor: pointer; position: relative; height: 100%; display: flex; align-items: center; transition: color 0.2s;}
    .swr-msg-tab.active { color: #000; font-size: 16px; }
    .swr-msg-tab.active::after { content: ''; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 16px; height: 3px; background: #20c997; border-radius: 2px; }
    
    .swr-msg-actions { display: flex; gap: 15px; align-items: center; }
    .swr-msg-actions svg { width: 22px; height: 22px; stroke: #000; stroke-width: 1.5; fill: none; cursor: pointer; }

    .swr-top-bar { position: absolute; top: 0; left: 0; width: 100%; height: 55px; padding: 0 18px; line-height: 55px; font-size: 16px; color: #000; background: rgba(242,242,242,0.9); backdrop-filter: blur(10px); z-index: 10; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .swr-scroll-area { position: absolute; top: 55px; left: 0; right: 0; bottom: calc(55px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
    .swr-scroll-area::-webkit-scrollbar { width: 0px; }

    .swr-bottom-nav{ position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: auto; background: linear-gradient(135deg, rgba(255,255,255,var(--swr-glass-a1,.18)), rgba(255,255,255,var(--swr-glass-a2,.07))); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); border: 1px solid rgba(255,255,255,.22); display:flex; justify-content: space-around; align-items:center; z-index: 999; height: 60px; border-radius: 22px; box-shadow: 0 18px 60px rgba(0,0,0,.16); padding: 0 6px; }
    .swr-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; color: #999; cursor: pointer; flex: 1; height: 100%; position: relative;}
    .swr-nav-item svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-top: 9px; margin-bottom: 3px; }
    .swr-nav-item span { font-size: 11px; font-weight: normal !important;}
    .swr-nav-item.active { color: #000; }
    .swr-nav-badge { position: absolute; top: 6px; right: 25px; width: 8px; height: 8px; background: #e53935; border-radius: 50%; border: 2px solid #f2f2f2; }

    .swr-app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 10px; margin-bottom: 10px; }
    .swr-app-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform 0.1s;}
    .swr-app-item:active { transform: scale(0.95); }
    .swr-app-icon { width: 48px !important; height: 48px !important; border-radius: 12px; background-color: #fff; background-size: 50%; background-repeat: no-repeat; background-position: center; margin-bottom: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.05); }
    .swr-app-name { font-size: 12px; color: #555; white-space: nowrap;}

    /* 绝对防透色实心边框 */
    .swr-item-list { list-style: none; padding: 0; margin: 0; overflow-x: hidden; }
    .swr-chat-entry-wrap {  position: relative; border-bottom: none; background: transparent; overflow: hidden; border-radius: var(--swr-radius, 18px); margin-bottom: var(--swr-gap, 18px); box-shadow: 0 18px 55px rgba(0,0,0,0.12); border: 1px solid rgba(255,255,255,0.18); }
    .swr-chat-entry-inner { padding: 12px 18px; background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); backdrop-filter: blur(24px) saturate(175%); -webkit-backdrop-filter: blur(24px) saturate(175%); display: flex; align-items: center; width: 100%; position: relative; z-index: 2; transition: transform 420ms cubic-bezier(.16,1,.3,1), filter 240ms cubic-bezier(.16,1,.3,1); box-sizing: border-box; cursor: pointer; border-radius: inherit; }
    .swr-chat-entry-inner:active { background: #f5f5f5; }
    .swr-chat-entry-delete { position: absolute; right: 0; top: 0; height: 100%; width: 78px; display: flex; align-items: center; justify-content: center; z-index: 1; cursor: pointer; background: transparent; color:#fff; font-size:14px; }
    .swr-chat-entry-delete::before{ content:""; position:absolute; width:54px; height:54px; border-radius: 18px; background: linear-gradient(135deg, rgba(255,80,90,.92), rgba(220,40,60,.78)); box-shadow: 0 18px 50px rgba(220,40,60,.30); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
    .swr-chat-entry-delete span{ position:relative; z-index:2; color:#fff; font-size:14px; letter-spacing:.5px; }
    .swr-chat-entry-delete:active::before{ transform: scale(.96); }
    .swr-swipe-open .swr-chat-entry-inner { transform: translateX(-78px); }
    
    .swr-avatar { width: 40px; height: 40px; border-radius: 50%; background-color: #f8f8f8; background-size: 50%; background-repeat: no-repeat; background-position: center; border: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: center; align-items: center; flex-shrink: 0; margin-right: 11px; cursor: pointer; }
    .swr-group-avatar { border-radius: 12px; cursor: default;} 
    
    .swr-list-content { flex: 1; overflow: hidden; pointer-events:none;}
    .swr-list-name { font-size: 15px; color: #000; display: flex; justify-content: space-between; align-items: center; margin-bottom:2px;}
    .swr-list-desc { font-size: 13px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .swr-badge { background: #e53935; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 10px; }
    .swr-tag-group { border: 1px solid rgba(0,0,0,0.1); color: #666; font-size: 10px; padding: 1px 4px; border-radius: 4px;}

    .swr-right-drawer { position:fixed; top:0; right:0; width:80%; max-width:320px; height:100%; background: var(--swr-glass-panel-bg, rgba(255,255,255,0.10)); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); box-shadow:-10px 0 60px rgba(0,0,0,0.18); display:none; flex-direction:column; z-index:190; transform:translateX(120%); opacity:0; pointer-events:none; transition:transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease; }
    .swr-right-drawer.swr-open { display:flex; transform:translateX(0); opacity:1; pointer-events:auto; }
    .swr-drawer-header { padding: 40px 20px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); font-size:18px; color:#000; display:flex; justify-content:space-between; align-items:center; }
    .swr-close-drawer { font-size:24px; cursor:pointer; line-height:1; color:#888;}

    .swr-circle-arrow-btn { width: 32px !important; height: 32px !important; min-width: 32px !important; flex-shrink: 0 !important; border-radius: 50% !important; background: #000 !important; border: none !important; display: flex !important; justify-content: center !important; align-items: center !important; cursor: pointer; transition: transform 0.1s; padding: 0 !important; box-shadow: none !important; }
    .swr-circle-arrow-btn svg { display: block !important; stroke: #fff !important; width: 16px !important; height: 16px !important;}
    .swr-circle-arrow-btn:active { background: #333 !important; transform: scale(0.9); }

    .swr-swipeable-view { display:none; position:absolute; top:0; left:0; width:100%; height:100%; background:#f2f2f2; z-index:150; transform:translateX(100%); transition:transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
    .swr-swipeable-view.swr-show { transform: translateX(0) !important; }
    
    .swr-header { position: absolute; top: 0; left: 0; width: 100%; height: 55px; background: rgba(242,242,242,0.9); backdrop-filter: blur(10px); padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05); z-index: 2; }
    .swr-messages { position: absolute; top: 55px; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); padding: 20px 18px; overflow-y: auto; z-index: 1; -webkit-overflow-scrolling: touch; }
    .swr-messages::-webkit-scrollbar { width: 0px; }

    .swr-input-area { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)) 18px; background: #f2f2f2; z-index: 2; border-top: 1px solid rgba(0,0,0,0.05);}
    .swr-input-wrapper { position: relative; display: flex; align-items: flex-end; background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 20px; padding: 6px 42px 6px 16px; min-height: 40px; height: auto;}
    .swr-input-flex-box { display: flex; align-items: center; width: 100%; margin-bottom: 0px; }
    #swr-burn-btn { font-size: 16px; cursor: pointer; opacity: 0.4; margin-right: 8px; filter: grayscale(100%); transition: all 0.2s; }
    #swr-burn-btn.active { opacity: 1; filter: grayscale(0%) drop-shadow(0 0 5px rgba(255,152,0,0.6)); }
    .swr-input-wrapper textarea { flex: 1; background: transparent; border: none; outline: none; font-size: 15px; color: #000; padding: 6px 0; resize: none; line-height: 1.4; display: block; max-height:100px; height:22px; margin-bottom:0;}
    
    #swr-send-btn { position: absolute; right: 3px; bottom: 3px; }
    
    .swr-msg-row { display: flex; flex-direction: column; margin-bottom: 18px; width: 100%; }
    .swr-msg-time { font-size: 10px; color: #c0c0c0; text-align: center; margin-bottom: 8px; }
    .swr-msg-flex-wrap { display: flex; align-items: flex-start; width: 100%; }
    .swr-msg-right .swr-msg-flex-wrap { justify-content: flex-end; }
    .swr-chat-avatar { width: 36px; height: 36px; border-radius: 50%; background-color: #f8f8f8; background-size: 50%; background-repeat: no-repeat; background-position: center; border: 1px solid rgba(0,0,0,0.05); flex-shrink: 0; }
    .swr-msg-left .swr-chat-avatar { margin-right: 10px; }
    .swr-msg-right .swr-chat-avatar { margin-left: 10px; }
    .swr-msg-content { display: flex; max-width: 75%; flex-direction: column; }
    .swr-msg-left .swr-msg-content { align-items: flex-start; }
    .swr-msg-right .swr-msg-content { align-items: flex-end; }
    .swr-msg-name { font-size: 12px; color: #999; margin-bottom: 4px; padding: 0 4px;}
    .swr-msg-bubble { padding: 9px 12px; border-radius: 12px; font-size: 15px; word-break: break-all; color: #000; line-height: 1.5; position: relative;}
    
    .swr-msg-left .swr-msg-bubble { background: #fff; border: 1px solid rgba(0,0,0,0.05); border-top-left-radius: 4px; }
    .swr-msg-right .swr-msg-bubble { background: #ebebeb; border: none; border-top-right-radius: 4px; }
    
    .swr-msg-del { font-size: 11px; color: #ccc; cursor: pointer; margin-top: 4px; transition: color 0.2s; display: inline-block; }
    .swr-msg-del:hover, .swr-msg-del:active { color: #e53935; }
    .swr-msg-left .swr-msg-del { margin-left: 4px; text-align: left; }
    .swr-msg-right .swr-msg-del { margin-right: 4px; text-align: right; width: 100%;}
    
    .swr-msg-burn { min-width: 145px; display: inline-block; text-align: center;} 
    .swr-msg-burn span.swr-burn-content { filter: blur(5px); opacity: 0.5; transition: all 0.3s ease; }
    .swr-msg-burn.revealed span.swr-burn-content { filter: blur(0px) !important; opacity: 1 !important; }
    .swr-burn-overlay { position: absolute; top:0; left:0; width:100%; height:100%; display:flex; justify-content:center; align-items:center; color:#ff9800; font-size:13px; z-index:2; background: #fff; border-radius:12px; pointer-events:none;}
    .swr-msg-right .swr-msg-burn-sent { border: 1px dashed #ff9800; background: #fffaf0; }
    .swr-sys-msg { text-align: center; font-size: 11px; color: #bbb; margin-bottom: 20px; width: 100%; }

    #swr-sidebar-overlay, .sf-modal-overlay { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 105; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
    #swr-sidebar-overlay.swr-open { opacity: 1; visibility: visible; cursor: pointer; }
    #swr-sidebar { position: absolute; top: 0; right: 0; width: 70%; height: 100%; background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,0.06); display: flex; flex-direction: column; z-index: 110; transform: translateX(105%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    #swr-sidebar.swr-open { transform: translateX(0); }
    .swr-sidebar-header { padding: 15px 20px; background: #fff; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
    .swr-sidebar-content { padding: 20px; overflow-y: auto; -webkit-overflow-scrolling: touch;}
    .swr-section-title { margin: 0 0 12px 0; font-size: 15px; color:#000; }
    .swr-sidebar-btn { width: 100%; padding: 12px 10px; border: none; cursor: pointer; color: #000; font-size: 14px; border-radius: 8px; background: #eaeaea; margin-bottom: 8px;}

    .swr-me-item { padding: 14px 18px; background: #fff; font-size: 15px; color: #333; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-radius: 8px; margin-bottom: 2px;}
    .swr-me-item:active { background: #eaeaea; }

    @keyframes bubbleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
    
    .scribe-publish-box { background: #fff; padding: 14px 18px; border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 9px;}
    .scribe-publish-box textarea { width: 100%; height: 70px; border: none; outline: none; resize: none; font-size: 15px; color: #000; padding: 0; margin-bottom:5px;}
    .scribe-publish-tools { display: flex; justify-content: space-between; align-items: flex-end; }
    
    #scribe-counter { font-size: 12px !important; color: #aaa !important; margin-bottom: 5px; }
    
    .scribe-post { background: #fff; padding: 14px 18px; border-bottom: 1px solid rgba(0,0,0,0.03); margin-bottom: 12px; }
    .scribe-author-wrap { display:flex; align-items:center; margin-bottom:10px; }
    .scribe-author { font-size: 15px; color: #576b95; cursor: pointer; }
    
    .scribe-post-content-wrap { position: relative; margin: 8px 0; }
    .scribe-post-text { font-size: 15px; color: #000; line-height: 1.5; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
    .scribe-post-text.expanded { -webkit-line-clamp: unset; }
    .scribe-expand-btn { color: #576b95; font-size: 15px; margin-top: 4px; cursor: pointer; display: none; }
    
    .scribe-post-footer { display: flex; justify-content: space-between; align-items: center; position: relative; margin-bottom: 8px;}
    .scribe-time { font-size: 12px; color: #aaa; }
    .scribe-del-btn { color: #576b95; cursor: pointer; margin-left: 12px; font-size: 13px; }

    .scribe-action-wrap { position: relative; }
    .scribe-action-toggle { background: #f4f4f4; border-radius: 4px; padding: 4px 10px; font-size: 14px; color: #555; cursor: pointer; user-select: none; }
    
    .scribe-action-menu { position: absolute; right: 40px; top: -6px; background: #333; color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; width: 0; opacity: 0; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); white-space: nowrap; height: 36px; z-index: 5; padding: 0;}
    .scribe-action-menu.open { width: 175px; opacity: 1; }
    .scribe-menu-item { flex: 1; text-align: center; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; height: 100%; white-space: nowrap;}
    .scribe-menu-divider { width: 1px; height: 14px; background: #555; flex-shrink: 0;}
    .fav-active { color: #f5a623 !important; }

    .scribe-likes-area { background: #f9f9f9; padding: 6px 10px; margin-top: 0px; font-size: 13px; border-bottom: 1px solid rgba(0,0,0,0.03); display: flex; align-items: center;}
    .scribe-likes-icon { color: #000; margin-right: 6px; opacity: 0.5; }
    .scribe-comments-area { background: #f9f9f9; padding: 8px 10px; }
    .scribe-comment-item { font-size: 14px; line-height: 1.5; margin-bottom: 4px; cursor:pointer;}
    .scribe-comment-name { color: #576b95;}
    
    .scribe-load-more, .scribe-no-more { width:100% !important; text-align: center !important; padding: 15px; font-size: 13px !important; color: #888 !important; cursor: pointer; display:flex !important; justify-content:center !important; align-items:center !important;}
    
    .swr-modal-overlay { display:none; position:absolute; top:0; left:0; width:100%; height:100%; z-index:200; background:rgba(0,0,0,0.1);}

    #scribe-comment-modal { position: absolute; top:0; left:0; width:100%; height:100%; z-index: 120; }
    .scribe-comment-mask { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4); }
    .scribe-comment-input-wrap { position: absolute; bottom: 0; left: 0; width: 100%; background: #f2f2f2; padding: 12px 18px; display: flex; align-items: flex-end; gap: 10px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(0,0,0,0.05);}
    .scribe-comment-input-wrap textarea { flex: 1; background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 20px; padding: 9px 14px; font-size: 15px; outline: none; resize: none; max-height: 100px; height: 40px; line-height: 1.4; color: #000;}
    #scribe-send-comment { margin-bottom: 4px !important; }


/* ===== My subpages (glass-ready) ===== */
.swr-seg-btn{
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 2px 8px rgba(0,0,0,0.02);
  user-select:none;
}
.swr-seg-btn.is-active{
  border-color: rgba(0,0,0,0.18);
}
#myfeed-feed-list .scribe-post, #myfavs-feed-list .scribe-post{
  margin-top: 12px;
}


/* Keep content above floating bottom nav */
#swr-main-app{ padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important; }
