*{box-sizing:border-box}body{margin:0;background:#e9e9e9;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#222}.phone{max-width:430px;min-height:100vh;margin:auto;background:#fff}.hero{padding:48px 22px 22px;background:linear-gradient(#777c,#777c),url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?w=1200') center/cover;color:#fff}.nav{display:flex;justify-content:space-between;font-size:25px;align-items:center}.nav button,.edit{background:transparent;border:0;color:#fff;font-size:16px}.profile{display:flex;gap:18px;align-items:center;margin-top:25px}.profile img{width:92px;height:92px;border-radius:50%;object-fit:cover;border:2px solid #fff}.profile h1{font-size:25px;margin:0 0 10px}.profile p{margin:5px 0;color:#ddd}.stats{display:flex;gap:34px;margin:25px 0 15px}.stats b{font-size:25px}.stats small{display:block;font-size:13px;font-weight:400;margin-top:4px}.hero>p{line-height:1.8;color:#eee}.edit{border:1px solid #fff;border-radius:18px;padding:6px 18px}.tabs{height:70px;display:flex;align-items:center;gap:38px;padding:0 24px;border-bottom:1px solid #eee;color:#888;font-size:18px}.tabs b{color:#222;border-bottom:3px solid #f22;height:70px;display:flex;align-items:center}.notes{padding:18px 14px}.subtabs{color:#666;border-bottom:1px solid #eee;padding:8px 10px 18px}.subtabs i{color:#111;font-style:normal}.notes article{margin-top:18px}.notes article img{width:100%;height:230px;object-fit:cover;border-radius:7px}.notes h2{font-size:20px;margin:10px 0}.notes p{color:#888}.add{width:100%;padding:13px;border:1px dashed #f04;border-radius:8px;background:#fff;color:#e33;font-size:16px}.sheet{display:none;position:fixed;inset:0;background:#0007;align-items:flex-end;z-index:3}.sheet.show{display:flex}.sheet-card{background:#fff;width:100%;max-width:430px;margin:auto;border-radius:20px 20px 0 0;padding:24px 22px 32px;position:relative}.close{position:absolute;right:20px;top:14px;border:0;background:none;font-size:28px;color:#888}.sheet-card h2{margin:0 0 18px}.form-row{display:flex;flex-direction:column;gap:6px;margin:12px 0}.form-row label{font-size:13px;color:#777}.form-row input,.form-row textarea{font:inherit;padding:10px;border:1px solid #ddd;border-radius:8px}.save{width:100%;padding:12px;border:0;border-radius:22px;background:#f33;color:#fff;font-size:16px;margin-top:8px}
.status{display:flex;justify-content:space-between;align-items:center;height:38px;font-size:14px}.nav button{margin-left:6px}.nav{display:flex;gap:5px;align-items:center}.profile{margin-top:22px}.stats button,.cards button{background:transparent;border:0;color:#fff;text-align:left}.stats button{padding:0;color:#fff}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.cards button{background:#ffffff18;border-radius:9px;padding:12px 8px;font-size:13px}.cards small{display:block;color:#ffffff99;font-size:10px;margin-top:7px}.note-actions{display:flex;gap:8px;margin-top:10px}.note-actions button{border:1px solid #eee;background:#fff;border-radius:16px;padding:7px 12px;color:#666}.bottom{position:sticky;bottom:0;display:flex;justify-content:space-around;align-items:center;height:68px;background:#fff;border-top:1px solid #eee;z-index:2}.bottom button{border:0;background:none;font-size:14px}.bottom .plus{background:#f32c4b;color:#fff;border-radius:12px;font-size:28px;width:55px;height:43px;line-height:35px}.bottom .selected{font-weight:700}.bottom em{font-style:normal;background:#f22;color:#fff;border-radius:9px;font-size:9px;padding:2px 5px}.sheet.show{display:flex}.sheet{z-index:5}.sheet-card{max-height:90vh;overflow:auto}.form-row{display:flex;flex-direction:column;gap:6px;margin:12px 0}.form-row label{font-size:12px;color:#777}.form-row input,.form-row textarea{padding:10px;border:1px solid #ddd;border-radius:8px;font:inherit}.save{width:100%;padding:12px;border:0;border-radius:22px;background:#f33;color:#fff;font-size:15px;margin-top:8px}#toast.visible{opacity:1;transform:translate(-50%,0)}
/* Screenshot-aligned visual baseline */
body{background:#f1f1f1;padding:0;display:block}.phone{width:100%;max-width:430px;min-height:100vh;margin:0 auto;border-radius:0;box-shadow:none;background:#fff;overflow-x:hidden}.hero{min-height:430px;padding:0 20px 22px;background-color:#515151;background-position:center top;background-size:cover}.status{height:54px;padding:0 8px;font-size:15px;font-weight:600}.nav{height:60px;margin:0 -2px;display:grid;grid-template-columns:42px 1fr 42px 42px;gap:4px}.nav button{font-size:25px;padding:0;background:none;border:0;color:#fff}.nav button:nth-child(2){justify-self:end;background:#ffffff22;border-radius:22px;padding:0 18px;font-size:16px}.profile{margin-top:12px;gap:16px}.profile img{width:92px;height:92px}.identity h1{font-size:25px}.identity p{font-size:14px;color:#e4e4e4}.stats{gap:30px;margin:27px 0 17px}.stats button{font-size:14px}.stats b{font-size:23px}.stats small{font-size:13px;display:inline;margin-left:5px}.hero>p{font-size:15px;line-height:1.9;margin:0 0 19px}.cards{grid-template-columns:repeat(2,1fr);gap:12px;margin:0}.cards button{min-height:76px;padding:13px 15px;background:#ffffff20;border-radius:12px;font-size:16px}.cards button small{font-size:12px;margin-top:8px}.cards button:nth-child(3){display:none}.tabs{height:70px;gap:0;justify-content:space-between;padding:0 27px;font-size:19px}.tabs button{font-size:19px}.tabs button:last-child{font-size:29px}.tabs .active:after{bottom:10px;width:32px;height:3px}.notes{padding:0}.subtabs{height:67px;padding:22px 28px 15px;font-size:17px;border-bottom:1px solid #eee}.notes article{margin:0;padding:18px 12px 10px}.notes article img{height:290px;border-radius:0;object-fit:cover}.notes h2{font-size:22px;margin:10px 13px 5px}.notes article p{margin:0 13px;font-size:14px}.add{margin:8px 12px;width:calc(100% - 24px)}.bottom{height:73px;display:flex;position:sticky;bottom:0;background:#fff;border-top:1px solid #eee;z-index:4}.bottom button{font-size:16px}.bottom .plus{height:48px;width:65px;border-radius:12px;font-size:32px}.bottom em{font-size:10px}.sheet{z-index:8}
.editor-tabs{display:flex;gap:24px;border-bottom:1px solid #eee;padding:0 0 12px;margin-bottom:16px;color:#999;font-size:13px}.editor-tabs b{color:#222;border-bottom:2px solid #ed3450;padding-bottom:11px}.hint{color:#999;font-size:12px;line-height:1.7}.actions{display:flex;gap:8px}.actions>*{flex:1}.danger{border:0;border-radius:20px;background:#fff0f0;color:#d33;padding:10px}
.note-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 10px}.note-card{min-width:0}.note-card .cover{aspect-ratio:3/4;overflow:hidden;border-radius:7px;background:#eee}.note-card .cover img{width:100%;height:100%;object-fit:cover}.note-card h2{font-size:14px;margin:8px 4px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-card p{font-size:11px;color:#999;margin:0 4px}.note-card .note-actions{display:flex;gap:5px}.note-card .note-actions button{font-size:11px;padding:5px 8px}.manager-list{margin-top:16px}.manager-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid #eee;padding:10px 0}.manager-row img{width:46px;height:58px;object-fit:cover;border-radius:5px}.manager-row div{flex:1;min-width:0}.manager-row b{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manager-row small{font-size:10px;color:#999}.manager-row button{border:0;background:#f5f5f5;border-radius:7px;padding:6px;font-size:11px;color:#666}
/* Full-page mode: no device frame */
body{display:block;padding:0;background:#fff}.workspace-note{display:none}.phone{width:100%;max-width:none;min-height:100vh;margin:0;border-radius:0;box-shadow:none;overflow-x:hidden}.hero{border-radius:0}.home-indicator{display:none}
/* FINAL OVERRIDE: content only, no phone mockup */
html,body{width:100%!important;min-width:0!important;margin:0!important;padding:0!important;background:#fff!important;display:block!important}.workspace-note{display:none!important}.phone{display:block!important;width:100%!important;max-width:none!important;min-height:100vh!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow-x:hidden!important}.home-indicator{display:none!important}
/* Remove simulated OS status-bar area; start directly at profile navigation */
.status{display:none!important}.hero{padding-top:10px!important}.tabs button{border:0!important;background:transparent!important;outline:0;font-family:inherit}.tabs button:focus{outline:0}.nav button{border:0!important;outline:0}.stats button{border:0!important;background:transparent!important}.cards button{border:0!important}
/* Step 2: profile identity alignment */
.profile{display:flex!important;align-items:center!important;gap:18px!important;margin-top:22px!important;padding:0 2px!important}.profile img{width:104px!important;height:104px!important;border-radius:50%!important;border:2px solid #ffffffd9!important;object-fit:cover!important}.identity{padding-top:2px!important;min-width:0!important}.identity h1{font-size:27px!important;line-height:1.25!important;font-weight:600!important;letter-spacing:.2px!important;margin:0 0 11px!important}.identity p{font-size:15px!important;line-height:1.55!important;color:#eeeeeed9!important;margin:3px 0!important;white-space:nowrap!important}.identity p:first-of-type{letter-spacing:.1px!important}.identity p:last-of-type{color:#eeeeeed0!important}
/* Step 3: statistics row alignment */
.stats{display:flex!important;align-items:baseline!important;gap:28px!important;margin:30px 2px 20px!important;white-space:nowrap!important}.stats button{display:flex!important;align-items:baseline!important;gap:6px!important;padding:0!important;color:#fff!important}.stats b{font-size:25px!important;line-height:1!important;font-weight:600!important;letter-spacing:.2px!important}.stats small{display:block!important;margin:0!important;font-size:14px!important;line-height:1!important;color:#ffffffeb!important;font-weight:400!important}.stats button:active{opacity:.75!important}
/* Step 4: bio and feature cards */
.hero>p#bio{font-size:16px!important;line-height:1.85!important;color:#f4f4f4!important;margin:0 3px 22px!important;white-space:pre-wrap!important;max-width:850px!important}.cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0 0 2px!important}.cards button{min-height:82px!important;padding:15px 18px!important;text-align:left!important;background:#ffffff25!important;border:1px solid #ffffff12!important;border-radius:13px!important;color:#fff!important;font-size:17px!important;line-height:1.25!important}.cards button small{display:block!important;margin-top:9px!important;color:#ffffffa8!important;font-size:13px!important;line-height:1.2!important}.cards button:nth-child(3){display:block!important}.cards button:active{background:#ffffff3d!important;transform:scale(.99)}
/* Mobile profile cards: three cards in one row */
.cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.cards button{min-width:0!important;min-height:78px!important;padding:12px 10px!important;font-size:14px!important;white-space:normal!important}.cards button small{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.cards button:nth-child(3){display:block!important}
/* Step 6: visibility sub-tabs */
.subtabs{height:66px!important;display:flex!important;align-items:center!important;gap:34px!important;padding:0 25px!important;background:#fff!important;border-top:1px solid #f0f0f0!important;border-bottom:1px solid #ededed!important;color:#888!important;font-size:16px!important;white-space:nowrap!important}.subtab{display:inline-flex!important;align-items:center!important;gap:5px!important;height:100%!important}.subtab.active{color:#242424!important}.subtab i{font-style:normal!important;color:inherit!important}.mini-lock{width:17px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.subtab:first-child i{font-size:17px}.subtab:not(:first-child) i{color:#999}
/* Step 7: note feed */
.activity-banner{display:flex;align-items:center;gap:12px;margin:12px 12px 2px;padding:14px 13px;border:1px solid #f3f3f3;border-radius:8px;background:#fff}.activity-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:10px;background:#ff4757;color:#fff;font-size:18px;box-shadow:0 5px 10px #ff475744}.activity-banner div{flex:1;min-width:0}.activity-banner b,.activity-banner small{display:block}.activity-banner b{font-size:15px;font-weight:600}.activity-banner small{font-size:11px;color:#aaa;margin-top:4px}.activity-banner button{border:1px solid #ed3c57;background:#fff;border-radius:18px;color:#e53652;padding:6px 12px;font-size:13px;white-space:nowrap}.activity-close{font-size:23px;color:#aaa}.note-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 7px!important;padding:11px 9px!important;background:#fafafa}.note-card{background:#fff!important;padding-bottom:10px!important;margin-bottom:8px!important;border-radius:5px!important;overflow:hidden!important;box-shadow:0 1px 4px #00000008!important}.note-card .cover{aspect-ratio:1/1.18!important;border-radius:0!important}.note-card .cover img{object-fit:cover!important}.note-card h2{font-size:15px!important;font-weight:500!important;line-height:1.45!important;margin:9px 10px 6px!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}.note-card p{font-size:11px!important;color:#999!important;margin:0 10px!important;line-height:1.7!important;min-height:18px!important}.note-card p:before{content:"";display:inline-block;width:17px;height:17px;border-radius:50%;vertical-align:middle;margin-right:5px;background:var(--avatar-url,url(https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=40)) center/cover}.note-card .note-actions{padding:0 10px!important}.note-card .note-actions button{border:0!important;background:transparent!important;color:#999!important;padding:3px 5px!important}.note-card .views{font-size:11px!important}.activity-banner+ .note-grid{border-top:0}
.detail-sheet{display:flex!important;align-items:stretch!important}.detail-sheet .sheet-card{width:100%!important;max-width:430px!important;height:100dvh!important;max-height:none!important;margin:0 auto!important;border-radius:0!important;background:#050505!important;color:#fff!important;padding:0!important;overflow:auto!important}.detail-sheet .close,.detail-sheet #sheetTitle{display:none!important}.detail-sheet #sheetBody{padding:0!important}.detail-top{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;font-size:24px}.detail-top button{border:0;background:none;color:#fff;font-size:30px}.detail-cover{display:block;width:100%;max-height:58dvh;object-fit:contain;background:#050505}.detail-info{padding:18px 20px 30px}.detail-author{display:flex;align-items:center;gap:10px;margin-bottom:15px}.detail-author img{width:38px;height:38px;border-radius:50%;object-fit:cover}.detail-info h2{font-size:20px;line-height:1.5;margin:6px 0}.detail-info p{font-size:15px;line-height:1.8;white-space:pre-wrap}.detail-info small{color:#aaa}.detail-actions{display:flex;justify-content:space-between;margin-top:22px;border-top:1px solid #333;padding-top:15px}.detail-actions button{border:0;background:none;color:#fff;font-size:15px}.detail-actions button.selected{color:#ff3653}
/* publish composer */
.note-card .cover video{width:100%;height:100%;object-fit:cover;display:block}.composer-media video{width:100%;height:100%;object-fit:contain}
.publish-options{margin:0 -22px -32px;background:#fff}.publish-option,.publish-cancel{display:block;width:100%;border:0;border-top:1px solid #eee;background:#fff;padding:18px;text-align:center;font:inherit}.publish-option b,.publish-option small{display:block}.publish-option b{font-size:18px;font-weight:500}.publish-option small{font-size:13px;color:#999;margin-top:4px}.publish-cancel{margin-top:8px;padding:18px;color:#555}.composer-media{height:150px;border:1px dashed #ddd;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:10px;background:#fafafa;color:#bbb;font-size:42px}.composer-media img{width:100%;height:100%;object-fit:contain}.composer .secondary{width:100%;border:1px solid #eee;background:#fff;border-radius:18px;padding:8px;margin-bottom:8px}.composer select{font:inherit;padding:10px;border:1px solid #ddd;border-radius:8px;background:#fff}
.publish-options{border-radius:20px 20px 0 0;overflow:hidden;margin-top:8px}.publish-option{min-height:72px;padding:16px 12px}.publish-option b{font-size:19px}.publish-cancel{margin-top:8px;border-top:8px solid #f5f5f5;font-size:18px}.composer{padding-bottom:4px}.composer-media{height:190px;background:#f7f7f7;border-radius:14px}.composer .form-row{margin:14px 0}.composer input,.composer textarea{font-size:17px;border:0;border-bottom:1px solid #eee;border-radius:0;padding:12px 2px}.composer textarea{resize:vertical}.composer .save{height:48px;font-weight:600}
.picker-card{padding:0!important;background:transparent!important}.xhs-picker{background:#f5f5f5;border-radius:20px 20px 0 0;overflow:hidden}.xhs-picker-row,.xhs-picker-cancel{width:100%;border:0;background:#fff;padding:20px;text-align:center;font-size:19px;border-bottom:1px solid #eee}.xhs-picker-row small{display:block;color:#999;font-size:14px;margin-top:5px}.xhs-picker-cancel{margin-top:8px;border:0;color:#333}.composer-card{padding:0!important;border-radius:0!important;max-height:100vh!important;height:100vh!important}.xhs-composer{height:100%;display:flex;flex-direction:column;background:#fff}.xhs-compose-top{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #f1f1f1}.xhs-compose-top button{border:0;background:none;font-size:30px;color:#777}.xhs-compose-top b{font-size:18px}.xhs-compose-top .top-done{font-size:15px;color:#fff;background:#ff2442;border-radius:18px;padding:7px 16px}.xhs-media-grid{display:flex;gap:12px;padding:18px 18px 8px}.xhs-media-item,.xhs-media-add{width:104px;height:130px;border-radius:12px;background:#f7f7f7;border:1px solid #eee;display:flex;align-items:center;justify-content:center;overflow:hidden}.xhs-media-item img,.xhs-media-item video{width:100%;height:100%;object-fit:cover}.media-plus{font-size:42px;color:#bbb}.xhs-media-add{font-size:36px;color:#bbb}.xhs-title-input,.xhs-body-input{border:0;outline:0;padding:12px 18px;font-size:21px}.xhs-body-input{font-size:17px;min-height:150px;resize:none}.xhs-topic-row{display:flex;gap:10px;padding:10px 18px}.xhs-topic-row button{border:0;border-radius:18px;background:#f5f5f5;padding:9px 14px;font-size:14px}.xhs-setting-row{padding:15px 18px;border-top:1px solid #f0f0f0;font-size:16px;color:#555}.xhs-setting-row span{float:right;color:#aaa;font-size:24px}.xhs-bottom-actions{margin-top:auto;display:flex;gap:12px;padding:16px 18px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #eee}.xhs-bottom-actions button{flex:1;height:48px;border-radius:26px;border:1px solid #ddd;background:#fff;font-size:17px}.xhs-bottom-actions .xhs-publish{background:#ff2442;border-color:#ff2442;color:#fff;font-weight:600}
.sheet{align-items:flex-end!important}.picker-card{margin:0!important;width:100vw!important;max-width:none!important;align-self:flex-end!important;border-radius:20px 20px 0 0!important}.picker-card .close{display:none}.picker-card .xhs-picker{width:100vw}
 .xhs-setting-row:first-of-type{font-size:18px}.xhs-setting-row:first-of-type::first-letter{font-size:26px}
 .detail-card{padding:0!important;background:#000!important;color:#fff!important;border-radius:0!important;max-height:100vh!important;height:100vh!important}.xhs-detail{height:100%;display:flex;flex-direction:column;background:#000}.detail-top{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;font-size:30px}.detail-top button{border:0;background:none;color:#fff;font-size:32px}.detail-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:42vh}.detail-media{max-width:100%;max-height:58vh;width:100%;object-fit:contain}.fullscreen-btn{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);border:1px solid #555;background:#222d;color:#fff;border-radius:22px;padding:9px 18px;font-size:16px}.detail-info{margin-top:auto;padding:18px 20px calc(18px + env(safe-area-inset-bottom));border-top:1px solid #333}.detail-author{display:flex;align-items:center;gap:10px;font-size:18px}.detail-author img{width:42px;height:42px;border-radius:50%;object-fit:cover}.detail-caption{font-size:17px;margin:16px 0 10px;line-height:1.5}.detail-meta{color:#eee;font-size:15px}.detail-meta span{float:right;color:#aaa}.detail-location{display:inline-block;background:#333;border-radius:16px;padding:8px 14px;margin:12px 0;color:#eee}.detail-privacy{border-top:1px solid #333;padding-top:12px;font-size:16px}.detail-privacy small{display:block;color:#888;margin-top:6px}.detail-actions{display:flex;justify-content:space-around;margin-top:16px}.detail-actions button{border:0;background:none;color:#fff;font-size:17px}
 .row-edit{float:right;border:0;background:#f3f3f3;color:#777;border-radius:14px;padding:4px 10px;font-size:12px}
 .inline-edit{border:0;border-bottom:1px solid #ff2442;outline:0;font:inherit;width:55%;padding:4px}.xhs-setting-row .row-edit{margin-right:8px}
 .xhs-setting-row{display:flex!important;align-items:center!important;min-height:64px}.xhs-line-icon{width:23px;height:23px;flex:0 0 23px;margin-right:14px;fill:none;stroke:#555;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.setting-label{flex:1}.setting-arrow{font-size:26px;color:#aaa}.inline-edit{flex:1;width:auto!important;background:#fff}.inline-ok{border:0;background:#ff2442;color:#fff;border-radius:15px;padding:6px 12px}
.detail-sheet{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:999!important}.detail-sheet .sheet-card{width:100vw!important;max-width:none!important;height:100vh!important;max-height:none!important;margin:0!important;border-radius:0!important}.detail-tools{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:12px}.detail-tools button{border:1px solid #444;background:#222d;color:#fff;border-radius:22px;padding:9px 18px;font-size:16px}.detail-stage{position:relative}
.detail-sheet #sheetBody{height:100%!important}.xhs-work-detail{position:relative;width:100%;height:100%;overflow:hidden;background:#000;color:#fff}.xhs-work-detail .detail-top{position:absolute;z-index:3;top:0;left:0;width:100%;height:72px;padding:0 28px;display:flex;align-items:center;justify-content:space-between}.detail-top-left{display:flex;align-items:center;gap:18px}.xhs-work-detail .detail-top button{width:42px;height:42px;padding:0;border:0;background:none;color:#fff;font-size:36px;line-height:1}.xhs-work-detail .detail-stage{position:absolute;top:16vh;left:0;width:100%;height:42vh;display:flex;align-items:center;justify-content:center}.xhs-work-detail .detail-cover{width:100%;height:100%;max-height:none;object-fit:contain;background:#000}.xhs-work-detail .detail-tools{bottom:10px;white-space:nowrap}.detail-bottom{position:absolute;left:0;right:0;bottom:0;padding:20px 34px calc(18px + env(safe-area-inset-bottom));background:#000}.detail-bottom .detail-author{margin:0 0 15px}.detail-copy{display:flex;align-items:flex-end;gap:20px}.detail-copy p{flex:1;margin:0;color:#fff;font-size:17px;line-height:1.55;white-space:pre-wrap}.detail-copy>span{flex:0 0 auto;color:#aaa;font-size:15px}.detail-topic{margin-top:6px;color:#ddd;font-size:16px}.detail-bottom .detail-location{display:inline-flex;margin:12px 0 10px;padding:7px 13px;background:#2b2b2b;border-radius:7px}.detail-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;border-top:1px solid #333;padding-top:12px}.detail-footer .detail-privacy{border:0;background:none;color:#fff;text-align:left;padding:0;white-space:nowrap}.detail-footer .detail-privacy b{display:block;font-size:16px}.detail-footer .detail-privacy small{display:block;margin-top:6px;color:#888;font-size:13px}.detail-footer .detail-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:28px;margin:0;padding:0;border:0}.detail-footer .detail-actions button{display:flex;align-items:center;gap:6px;padding:0;border:0;background:none;color:#fff;font-size:31px;white-space:nowrap}.detail-footer .detail-actions span,.detail-footer .detail-actions b{font-size:15px;font-weight:400}.detail-footer .detail-actions button.selected{color:#ff2442}@media(max-width:600px){.xhs-work-detail .detail-stage{top:25vh;height:30vh}.detail-bottom{padding:16px 20px calc(15px + env(safe-area-inset-bottom))}.detail-footer{gap:8px}.detail-footer .detail-actions{gap:14px}.detail-footer .detail-actions button{font-size:29px}.detail-footer .detail-actions span{font-size:14px}.detail-footer .detail-actions b{font-size:13px}}
 .sheet>.sheet-card{margin:0!important;align-self:flex-end!important;width:100vw!important;max-width:none!important}.sheet>.sheet-card:not(.composer-card){border-radius:20px 20px 0 0!important}
/* Detail media matches Xiaohongshu landscape player: full width 16:9 frame. */
.xhs-work-detail .detail-stage{height:42vh!important;}
.xhs-work-detail video.detail-cover{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:16/9!important;object-fit:cover!important;background:#000!important;}
.xhs-work-detail img.detail-cover{max-width:100%!important;max-height:100%!important;object-fit:contain!important;}
@media(max-width:600px){.xhs-work-detail .detail-stage{height:30vh!important}.xhs-work-detail video.detail-cover{aspect-ratio:16/9!important;object-fit:cover!important}}
/* Mobile full-screen work detail, matching the reference composition. */
html.detail-open,html.detail-open body{overflow:hidden!important;background:#000!important}
.detail-sheet .sheet-card{padding:0!important;background:#000!important;color:#fff!important;border-radius:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;overflow:hidden!important}
.detail-sheet #sheetBody{height:100%!important;padding:0!important}
.xhs-work-detail{position:relative;width:100%;height:100%;background:#000;color:#fff;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.xhs-work-detail .detail-top{position:absolute;z-index:4;top:env(safe-area-inset-top,0px);left:0;right:0;height:78px;padding:0 26px;display:flex;align-items:center;justify-content:space-between}
.detail-top-left{display:flex;align-items:center;gap:25px}
.xhs-work-detail .detail-top button{width:40px;height:40px;padding:7px;border:0;background:transparent;color:#fff}
.xhs-work-detail .detail-top svg,.detail-tools svg,.detail-bottom svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.xhs-work-detail .detail-stage{position:absolute;z-index:1;top:26.2dvh;left:0;width:100%;height:26dvh;display:flex;align-items:center;justify-content:center;background:#000}
.xhs-work-detail .detail-cover{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;background:#000}
.xhs-work-detail video.detail-cover{object-fit:contain}
.xhs-work-detail .detail-tools{position:absolute;z-index:4;top:calc(52.2dvh + 14px);left:50%;transform:translateX(-50%);display:flex;gap:14px;white-space:nowrap}
.xhs-work-detail .detail-tools button{height:52px;border:1px solid #454545;background:#252525dd;color:#fff;border-radius:28px;padding:0 22px;font-size:18px;display:flex;align-items:center;gap:9px}
.xhs-work-detail .detail-tools button:first-child{min-width:74px;justify-content:center}
.xhs-work-detail .detail-tools button:nth-child(2) svg{width:21px;height:21px}
.xhs-work-detail .detail-bottom{position:absolute;z-index:3;left:0;right:0;bottom:calc(24px + env(safe-area-inset-bottom,0px));padding:0 28px;color:#fff}
.xhs-work-detail .detail-author{display:flex;align-items:center;gap:13px;margin-bottom:20px;font-size:21px}
.xhs-work-detail .detail-author img{width:50px;height:50px;border-radius:50%;object-fit:cover}
.xhs-work-detail .detail-copy{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;min-height:28px}
.xhs-work-detail .detail-copy p{margin:0;flex:1;font-size:19px;line-height:1.55;white-space:pre-wrap}
.xhs-work-detail .detail-copy>span{display:flex;align-items:center;gap:5px;flex:0 0 auto;color:#aaa;font-size:16px;white-space:nowrap}
.xhs-work-detail .detail-copy>span svg{width:22px;height:22px}
.xhs-work-detail .detail-topic{margin-top:7px;color:#eee;font-size:17px;line-height:1.45}
.xhs-work-detail .detail-location{display:inline-flex;align-items:center;gap:8px;margin-top:13px;padding:8px 14px;background:#2d2d2d;border-radius:8px;color:#fff;font-size:17px}
.xhs-work-detail .detail-location svg{width:21px;height:21px}
.xhs-work-detail .detail-progress{height:2px;background:#444;margin-top:17px;overflow:hidden}.xhs-work-detail .detail-progress i{display:block;width:13%;height:100%;background:#fff}
.xhs-work-detail .detail-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-top:1px solid #333;margin-top:12px;padding-top:14px}
.xhs-work-detail .detail-privacy{display:flex;align-items:flex-start;gap:9px;padding:0;border:0;background:none;color:#fff;text-align:left;white-space:nowrap}
.xhs-work-detail .detail-privacy>svg{width:25px;height:25px;margin-top:1px}.xhs-work-detail .detail-privacy b,.xhs-work-detail .detail-privacy small{display:block}.xhs-work-detail .detail-privacy b{font-size:18px;font-weight:500}.xhs-work-detail .detail-privacy small{margin-top:7px;color:#999;font-size:14px}
.xhs-work-detail .detail-actions{display:flex;align-items:flex-end;gap:28px;margin:0;padding:0;border:0}
.xhs-work-detail .detail-actions button{display:flex;align-items:center;gap:5px;padding:0;border:0;background:none;color:#fff;white-space:nowrap;font-size:16px}
.xhs-work-detail .detail-actions button>svg{width:32px;height:32px}.xhs-work-detail .detail-actions button span,.xhs-work-detail .detail-actions button b{font-size:16px;font-weight:400}.xhs-work-detail .detail-actions button.selected{color:#ff2442}
.detail-home-indicator{display:block;position:absolute;z-index:5;bottom:8px;left:50%;width:135px;height:5px;transform:translateX(-50%);border-radius:5px;background:#fff}
.card-play{position:absolute;left:10px;bottom:8px;color:#fff;text-shadow:0 1px 3px #000;font-size:15px}
@media(max-width:600px){.xhs-work-detail .detail-top{height:72px;padding:0 22px}.detail-top-left{gap:22px}.xhs-work-detail .detail-stage{top:26.2dvh;height:26dvh}.xhs-work-detail .detail-tools{top:calc(52.2dvh + 12px)}.xhs-work-detail .detail-tools button{height:48px;font-size:17px;padding:0 18px}.xhs-work-detail .detail-bottom{bottom:calc(24px + env(safe-area-inset-bottom,0px));padding:0 20px}.xhs-work-detail .detail-author{font-size:20px;margin-bottom:17px}.xhs-work-detail .detail-author img{width:46px;height:46px}.xhs-work-detail .detail-copy p{font-size:18px}.xhs-work-detail .detail-copy>span{font-size:15px}.xhs-work-detail .detail-location{font-size:16px}.xhs-work-detail .detail-footer{gap:10px}.xhs-work-detail .detail-actions{gap:14px}.xhs-work-detail .detail-actions button>svg{width:29px;height:29px}.xhs-work-detail .detail-actions button span,.xhs-work-detail .detail-actions button b{font-size:14px}.xhs-work-detail .detail-privacy b{font-size:17px}.xhs-work-detail .detail-privacy small{font-size:13px}.detail-home-indicator{width:120px}}
#discoverPage{background:#fff;min-height:calc(100vh - 73px);padding-bottom:8px}.discover-top{height:72px;display:flex;align-items:center;justify-content:space-around;border-bottom:1px solid #eee;font-size:18px}.discover-top button{border:0;background:none;font-size:27px}.discover-top b{position:relative;font-size:20px}.discover-top b:after{content:"";position:absolute;height:3px;background:#f33;border-radius:3px;left:14px;right:14px;bottom:-15px}.discover-cats{height:52px;display:flex;align-items:center;justify-content:space-around;gap:14px;padding:0 12px;border-bottom:1px solid #eee;color:#888;font-size:15px;white-space:nowrap;overflow:hidden}.discover-cats b{color:#222}.discover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px 8px;background:#fafafa}.discover-grid article{background:#fff;border-radius:7px;overflow:hidden}.discover-cover{position:relative;aspect-ratio:0.82;overflow:hidden;background:#eee}.discover-cover img,.discover-cover video{width:100%;height:100%;object-fit:cover}.discover-cover i{position:absolute;right:10px;top:10px;color:#fff;font-style:normal;text-shadow:0 1px 3px #000}.discover-grid h3{font-size:15px;font-weight:500;line-height:1.4;margin:8px 9px 4px}.discover-grid p{font-size:12px;color:#999;margin:0 9px 10px}.discover-grid p span{float:right;font-size:13px}@media(min-width:700px){#discoverPage{min-height:calc(100vh - 80px)}.discover-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.discover-status{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;font-size:14px;font-weight:600;color:#111;background:#fff}.discover-top{height:68px}.discover-grid{align-items:start}.discover-grid article{min-width:0}.discover-grid h3{word-break:break-all}
.discover-top span:nth-of-type(2){display:none}.discover-top{justify-content:space-between;padding:0 26px}.discover-top span,.discover-top b{min-width:66px;text-align:center}.discover-top b{min-width:78px}.discover-grid p{display:flex;align-items:center;gap:6px}.discover-avatar{width:24px!important;height:24px!important;border-radius:50%;object-fit:cover}.discover-author{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.discover-likes{margin-left:auto;white-space:nowrap}
.discover-status{display:none!important}.discover-top{height:74px!important;padding:0 38px!important;border-bottom:1px solid #eee}.discover-top button{position:relative;width:30px;height:30px;padding:0!important;font-size:0!important}.discover-msg:before{content:"";position:absolute;inset:3px 1px 1px;border:2px solid #111;border-radius:50% 50% 45% 8px;transform:rotate(-8deg)}.discover-search:before{content:"";position:absolute;width:19px;height:19px;border:2px solid #111;border-radius:50%;left:1px;top:1px}.discover-search:after{content:"";position:absolute;width:10px;height:2px;background:#111;transform:rotate(48deg);right:-3px;bottom:3px}.discover-top span{font-size:18px;color:#999}.discover-top b{font-size:20px}.discover-grid{gap:6px;padding:8px 8px 0}.discover-grid article{border-radius:6px}.discover-cover{aspect-ratio:0.78}.discover-grid h3{font-size:15px;margin:8px 10px 3px}.discover-grid p{margin:0 10px 10px}
/* Videos occupy the full feed width; image notes remain in two columns. */
.discover-grid article.discover-video{grid-column:1/-1;border-radius:0}.discover-grid article.discover-video .discover-cover{aspect-ratio:16/10}.discover-grid article.discover-video .discover-cover video{object-fit:cover}.discover-grid article.discover-video h3{font-size:17px}.discover-grid article.discover-video p{font-size:13px}
/* Video feed uses compact multi-card layout: several videos visible per viewport. */
.discover-grid article.discover-video{grid-column:auto;border-radius:6px}.discover-grid article.discover-video .discover-cover{aspect-ratio:.72}.discover-grid article.discover-video .discover-cover video{object-fit:cover}.discover-grid article.discover-video h3{font-size:15px}.discover-grid article.discover-video p{font-size:12px}
/* Discovery cards occupy the highlighted area evenly: two equal columns. */
.discover-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px 8px!important}.discover-grid article{width:100%;min-height:0}.discover-grid .discover-cover{width:100%;aspect-ratio:0.86!important;min-height:320px;background:#eee}.discover-grid article.discover-video .discover-cover{aspect-ratio:0.86!important}.discover-grid .discover-cover img,.discover-grid .discover-cover video{width:100%;height:100%;object-fit:cover}.discover-grid h3{font-size:17px!important;margin:10px 12px 5px!important}.discover-grid p{margin:0 12px 12px!important;min-height:26px}.discover-grid .discover-avatar{width:28px!important;height:28px!important}@media(max-width:600px){.discover-grid{gap:6px!important;padding:8px 6px!important}.discover-grid .discover-cover{min-height:0;aspect-ratio:.78!important}.discover-grid h3{font-size:15px!important;margin:8px 9px 4px!important}.discover-grid p{margin:0 9px 9px!important}}
/* Header icons aligned to the reference screenshot. */
.discover-msg:before{inset:2px 2px 3px 1px!important;width:25px;height:22px;border:2.4px solid #111!important;border-radius:48% 48% 48% 12px!important;transform:none!important;background:#fff}.discover-msg:after{content:"";position:absolute;left:3px;bottom:1px;width:7px;height:7px;border-left:2.4px solid #111;border-bottom:2.4px solid #111;transform:skewY(-28deg);background:#fff}.discover-search:before{width:22px!important;height:22px!important;border:2.4px solid #111!important;left:0!important;top:0!important}.discover-search:after{width:11px!important;height:2.4px!important;right:-6px!important;bottom:0!important;background:#111!important;transform:rotate(48deg)!important}
.discover-msg:before{width:21px;height:19px;inset:4px 4px 4px 2px!important;border-width:2px!important}.discover-msg:after{width:6px;height:6px;left:4px;bottom:3px;border-width:2px!important}.discover-search:before{width:19px!important;height:19px!important;border-width:2px!important}.discover-search:after{width:9px!important;height:2px!important;right:-4px!important}
.discover-msg:before{width:18px;height:17px;inset:5px 5px 5px 3px!important}.discover-search:before{width:17px!important;height:17px!important}.discover-search:after{width:8px!important;right:-3px!important}
/* Homepage cards do not show an extra play button; controls belong to detail view. */
.note-grid .card-play,.discover-grid .card-play{display:none!important}.discover-cover>i{display:none!important}
/* Final compact header icon geometry. */
.discover-top button{width:26px!important;height:26px!important}.discover-msg:before{width:17px!important;height:16px!important;inset:4px 4px 4px 2px!important;border-width:1.8px!important}.discover-msg:after{width:5px!important;height:5px!important;left:3px!important;bottom:2px!important;border-width:1.8px!important}.discover-search:before{width:16px!important;height:16px!important;left:1px!important;top:1px!important;border-width:1.8px!important}.discover-search:after{width:8px!important;height:1.8px!important;right:-1px!important;bottom:1px!important;transform:rotate(45deg)!important;transform-origin:left center!important}
/* Join search handle to the ring with no visible gap. */
.discover-search:after{width:10px!important;right:-1px!important;bottom:0!important;transform:translateX(-2px) rotate(45deg)!important;transform-origin:left center!important}
/* Reference magnifier: larger ring with a continuous lower-right handle. */
.discover-search:before{width:21px!important;height:21px!important;left:0!important;top:0!important;border:2px solid #222!important}.discover-search:after{width:11px!important;height:2px!important;right:-3px!important;bottom:-1px!important;background:#222!important;transform:rotate(45deg)!important;transform-origin:left center!important}
/* Fine tune magnifier against the supplied reference. */
.discover-search:before{width:18px!important;height:18px!important;left:1px!important;top:1px!important;border:1.8px solid #333!important}.discover-search:after{width:10px!important;height:1.8px!important;right:-2px!important;bottom:-1px!important;transform:translate(-4px,-1px) rotate(45deg)!important;transform-origin:left center!important}
/* Rebuild magnifier as one visibly connected icon. */
.discover-search{position:relative!important;width:32px!important;height:32px!important}.discover-search:before{content:""!important;position:absolute!important;width:19px!important;height:19px!important;left:1px!important;top:1px!important;border:2px solid #222!important;border-radius:50%!important;background:#fff!important}.discover-search:after{content:""!important;position:absolute!important;width:11px!important;height:2px!important;left:17px!important;top:20px!important;right:auto!important;bottom:auto!important;border:0!important;background:#222!important;border-radius:2px!important;transform:rotate(45deg)!important;transform-origin:left center!important}
