/* 世通家谱 2.6 — compact user-first layout and announcement strip */
.site-announcement-bar{
 display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 13px;margin:14px 0 12px;
 border:1px solid #e7dac7;border-radius:12px;background:rgba(255,250,240,.92);
 color:#625343;text-decoration:none;font-size:13px;line-height:1.5;box-shadow:0 2px 8px rgba(63,45,26,.035)
}
.announcement-label{font-weight:800;color:#7b332d;white-space:nowrap}
.announcement-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.announcement-unread{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto}
.announcement-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#d83b35;box-shadow:0 0 0 2px rgba(216,59,53,.1)}
.announcement-more{font-size:11px;color:#d83b35}
.announcement-all{font-size:12px;color:#92704a;white-space:nowrap}
.announcement-empty{flex:1;color:#8a7c6c}
.announcement-page .section-head h1{margin-bottom:8px}
.announcement-list{display:grid;gap:12px}
.announcement-card{border:1px solid #e6d9c6;border-radius:16px;background:#fffaf0;padding:20px 22px;box-shadow:0 3px 12px rgba(60,42,23,.035)}
.announcement-card h2{font-size:20px;margin:12px 0 8px;color:#382d25}
.announcement-card p{color:#6d5e4e;line-height:1.8;margin:8px 0 14px}
.announcement-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.announcement-card-head time{font-size:12px;color:#8c7b68}
.announcement-article-link{font-weight:700;color:#7b332d!important}
.announcement-footer-note{margin-top:18px;color:#8c7b68;font-size:13px;text-align:center}
.text-button{border:0;background:transparent;color:#7b332d;font:inherit;cursor:pointer;padding:4px 7px}
.danger-text{color:#a33b36}
.text-button:hover{text-decoration:underline}
@media(max-width:700px){
 .site-announcement-bar{min-height:38px;padding:7px 10px;margin:10px 0 12px;gap:7px;border-radius:10px;font-size:12px}
 .announcement-label{font-size:12px}
 .announcement-all{font-size:11px}
 .announcement-dot{width:6px;height:6px}
 .announcement-card{padding:16px;border-radius:14px}
 .announcement-card h2{font-size:19px}
 .announcement-card p{font-size:15px}
 .announcement-page .section-head h1{font-size:28px}
 .announcement-card .btn{min-height:42px;padding:9px 13px}
 /* Keep the family dashboard's most-used actions visible without oversized hero/backup blocks. */
 .family-home-hero{padding:20px 20px!important;gap:16px!important;min-height:0!important;border-radius:20px!important}
 .family-home-hero h1{font-size:30px!important;line-height:1.28!important;margin:4px 0 8px!important}
 .family-home-hero p{font-size:15px!important;line-height:1.65!important;margin:6px 0 12px!important}
 .family-home-hero .family-seal{width:76px!important;height:76px!important;min-width:76px!important;border-radius:18px!important}
 .family-home-hero .family-seal b{font-size:34px!important}
 .family-home-hero .family-seal span{font-size:10px!important}
 .family-home-hero .hero-actions{gap:8px!important;flex-wrap:wrap}
 .family-home-hero .hero-actions .btn{min-height:42px!important;padding:9px 13px!important;font-size:14px!important}
 .backup-reminder{padding:11px 13px!important;margin:12px 0!important;gap:10px!important;border-radius:14px!important}
 .backup-reminder b{font-size:15px!important}
 .backup-reminder span{font-size:12px!important;line-height:1.5!important}
 .backup-reminder .btn{min-height:36px!important;padding:7px 10px!important;font-size:12px!important;white-space:nowrap}
 .home-kpis{gap:8px!important;margin:12px 0!important}
 .home-kpis>a{padding:12px!important;min-height:74px!important}
 .home-kpis>a span{font-size:12px!important}
 .home-kpis>a b{font-size:23px!important}
 .family-actions-panel{margin-top:14px!important}
 .platform-founder-card{padding:16px!important}
 .platform-founder-card h2{font-size:19px!important}
 .platform-founder-card p{font-size:14px!important;line-height:1.7!important}
 .family-home-hero .family-seal{align-self:center}
 .vip-luxury-hero{padding:16px!important;gap:12px!important;margin:12px 0!important}
 .vip-luxury-hero h2{font-size:20px!important;line-height:1.45!important}
 .vip-luxury-hero p{font-size:13px!important;line-height:1.6!important}
 .vip-luxury-stamp{width:44px!important;height:44px!important;font-size:18px!important}
 .vip-luxury-hero .btn{min-height:40px!important;padding:8px 12px!important}
}
.home-priority-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0 16px}
.home-priority-actions a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:9px 14px;border-radius:12px;border:1px solid #e0cfb6;background:#fffaf0;color:#7b332d;text-decoration:none;font-weight:800;font-size:14px}
.home-priority-actions a.primary{background:#7b332d;color:#fffaf0;border-color:#7b332d}
.home-priority-actions a.tutorial{background:#edf2e8;color:#4f654f;border-color:#d7e0d0}
.backup-reminder.compact{padding:12px 15px;min-height:0;align-items:center}
.backup-reminder.compact .btn{border-radius:999px;padding:7px 13px;min-height:36px;font-size:13px}
.share-join-inline{margin:18px 0 8px;padding:18px 20px;border-radius:16px;background:#fff8e9;border:1px solid #e5d4b8;display:flex;align-items:center;justify-content:space-between;gap:16px}
.share-join-inline h2{font-size:19px;margin:0 0 5px;color:#49372c}
.share-join-inline p{margin:0;color:#7a6a58;font-size:14px;line-height:1.7}
.share-join-actions{display:flex;gap:8px;flex-wrap:wrap;flex:0 0 auto}
.share-join-actions a,.share-join-actions button{font:inherit;font-weight:800;text-decoration:none;border-radius:10px;padding:10px 13px;border:1px solid #d9c4a3;background:#fffdf7;color:#7b332d;cursor:pointer}
.share-join-actions .share-primary{background:#7b332d;color:#fffaf0;border-color:#7b332d}
@media(max-width:700px){
 .home-priority-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 14px}
 .home-priority-actions a{font-size:13px;min-height:40px;padding:8px 9px}
 .share-join-inline{display:block;padding:15px;margin:14px 0}
 .share-join-inline h2{font-size:18px}
 .share-join-actions{margin-top:12px}
 .share-join-actions a,.share-join-actions button{font-size:13px;padding:9px 11px}
}

.tutorial-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;color:#4e604d!important;border:1px solid #d6e0d0!important;background:#f3f7ef!important}
.tutorial-entry b{font-size:17px;color:#496247}
.tutorial-entry span{font-size:13px;color:#71816b}
@media(max-width:700px){.tutorial-entry{display:block;padding:15px!important}.tutorial-entry b{display:block;font-size:17px;margin-bottom:5px}.tutorial-entry span{display:block;font-size:13px;line-height:1.6}}


/* 2026-10-28 follow-up: halve the family dashboard hero, show announcements immediately below it,
   and show whole image previews rather than a cropped strip. */
.family-home-hero{
 padding:18px 22px!important;
 gap:16px!important;
 min-height:0!important;
 border-radius:20px!important;
}
.family-home-hero h1{font-size:30px!important;line-height:1.25!important;margin:4px 0 7px!important}
.family-home-hero p{font-size:15px!important;line-height:1.55!important;margin:5px 0 12px!important}
.family-home-hero .family-seal{
 width:70px!important;height:70px!important;min-width:70px!important;flex:0 0 70px!important;
 border-radius:16px!important
}
.family-home-hero .family-seal b{font-size:32px!important}
.family-home-hero .family-seal span{font-size:10px!important}
.family-home-hero .hero-actions{gap:8px!important;flex-wrap:wrap}
.family-home-hero .hero-actions .btn{min-height:40px!important;padding:8px 12px!important;font-size:14px!important}
.dashboard-announcement{margin:10px 0 12px!important}
#previewArea .preview-item{padding:10px!important}
#previewArea .preview-item img{
 display:block;width:100%;height:clamp(160px,34vw,260px)!important;max-height:260px!important;
 object-fit:contain!important;object-position:center!important;background:#f5efe5!important;border-radius:10px!important
}
.upload-preview .preview-item img{
 display:block;width:100%;height:180px!important;max-height:180px!important;
 object-fit:contain!important;object-position:center!important;background:#f5efe5!important;border-radius:10px!important
}
@media(max-width:700px){
 .family-home-hero{padding:14px 16px!important;gap:10px!important;border-radius:18px!important}
 .family-home-hero h1{font-size:25px!important;line-height:1.25!important;margin:3px 0 5px!important}
 .family-home-hero p{font-size:13px!important;line-height:1.5!important;margin:4px 0 9px!important}
 .family-home-hero .family-seal{width:54px!important;height:54px!important;min-width:54px!important;flex:0 0 54px!important;border-radius:13px!important}
 .family-home-hero .family-seal b{font-size:25px!important}
 .family-home-hero .family-seal span{font-size:9px!important}
 .family-home-hero .hero-actions{gap:6px!important}
 .family-home-hero .hero-actions .btn{min-height:36px!important;padding:7px 10px!important;font-size:12px!important}
 .dashboard-announcement{margin:8px 0 10px!important}
 #previewArea .preview-item img{height:190px!important;max-height:190px!important;object-fit:contain!important}
 .upload-preview{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .upload-preview .preview-item{padding:8px!important}
 .upload-preview .preview-item img{height:140px!important;max-height:140px!important;object-fit:contain!important}
}


/* Share-page CTA comes after the family tree, never before the relatives are shown. */
.share-join-inline{margin-top:20px!important}
.share-join-inline h2{font-size:20px!important;line-height:1.55!important}
.share-join-inline .share-thanks{font-size:13px!important;color:#8a7157!important;margin-top:8px!important}
.tree-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tree-share-button{font-weight:800!important;white-space:nowrap}
@media(max-width:700px){
 .genealogy-heading{display:block!important}
 .genealogy-heading .tree-heading-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;margin-top:12px!important}
 .genealogy-heading .tree-heading-actions .tree-share-button{grid-column:span 2;min-height:44px!important;font-size:15px!important}
 .genealogy-heading .tree-heading-actions .btn{justify-content:center!important}
 .share-join-inline{margin-top:16px!important;padding:15px!important}
 .share-join-inline h2{font-size:18px!important;line-height:1.5!important}
 .share-join-inline p{font-size:14px!important;line-height:1.7!important}
 .share-join-actions{display:grid!important;grid-template-columns:1fr!important}
 .share-join-actions a,.share-join-actions button{width:100%;min-height:42px}
}


/* Family stories: prioritize reading saved stories; put the editor after the content. */
.story-page-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.story-list-panel{order:1}
.story-editor-panel{order:2;scroll-margin-top:90px}
.story-list-panel .article-list{display:grid;gap:12px}
.story-list-panel .article-row{padding:16px 18px;border:1px solid #e6d9c6;border-radius:14px;background:#fffdf8}
.story-editor-panel textarea{min-height:210px}
.story-editor-heading{margin-top:22px;scroll-margin-top:100px}
.m-form-card#new-story{margin-top:10px}
@media(max-width:700px){
 .story-page-stack{gap:14px}
 .story-list-panel .article-row{padding:14px}
 .story-editor-panel textarea{min-height:180px}
 .story-editor-heading{margin-top:20px}
}

/* Mobile tree share action — visible directly below the family name. */
.mobile-tree-heading{display:block!important}
.mobile-tree-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.mobile-tree-actions .m-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border-radius:12px;font-size:14px;font-weight:800;text-decoration:none}
@media(max-width:700px){
 .mobile-tree-heading h1{font-size:27px!important;line-height:1.35!important}
 .mobile-tree-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
 .mobile-tree-actions .m-link,.mobile-tree-actions .m-btn{min-height:44px;display:flex;align-items:center;justify-content:center}
}


/* Compact account identity: avatar, display name and username on one horizontal row. */
.m-account.m-account-compact{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 gap:12px!important;padding:16px 18px!important;margin:10px 0 14px!important;
 min-width:0!important
}
.m-account-compact .m-avatar{
 width:54px!important;height:54px!important;min-width:54px!important;flex:0 0 54px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 margin:0!important;border-radius:16px!important;font-size:27px!important
}
.m-account-compact .m-account-identity{
 display:flex!important;align-items:baseline!important;gap:9px!important;flex:1 1 auto!important;
 min-width:0!important;flex-wrap:wrap!important
}
.m-account-compact .m-account-identity h2{
 margin:0!important;padding:0!important;font-size:22px!important;line-height:1.25!important;
 white-space:nowrap!important
}
.m-account-compact .m-account-identity p{
 display:flex!important;align-items:baseline!important;gap:4px!important;margin:0!important;
 min-width:0!important;font-size:12px!important;line-height:1.4!important;color:#7c7165!important;
 white-space:nowrap!important
}
.m-account-compact .m-account-role{white-space:nowrap!important}
@media(max-width:390px){
 .m-account.m-account-compact{gap:9px!important;padding:13px 12px!important}
 .m-account-compact .m-avatar{width:46px!important;height:46px!important;min-width:46px!important;flex-basis:46px!important;font-size:23px!important}
 .m-account-compact .m-account-identity{gap:6px!important}
 .m-account-compact .m-account-identity h2{font-size:19px!important}
 .m-account-compact .m-account-identity p{font-size:11px!important;gap:3px!important}
}

.brand-mark,.m-brand-mark{width:44px;height:44px;flex:0 0 44px;object-fit:contain;border-radius:12px}.m-brand-mark{width:38px;height:38px;flex-basis:38px}.m-brand{gap:9px!important}.brand{gap:12px!important}

.m-brand-mark,.brand-mark{object-fit:contain}.video-upload-panel video{background:#171717}.vip-feature-compare .article-card{min-width:0}.share-brand{box-sizing:border-box}
