:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#101114;background:#fff;--ink:#101114;--muted:#73777e;--line:#e5e6e9;--soft:#f1f2f5;--purple:#4d5df8;--blue:#0095f6}
*{box-sizing:border-box}
body{margin:0;overflow-x:hidden}
button,input,textarea,select{font:inherit}
button{cursor:pointer;border:0;background:none;color:inherit;padding:0}
button:disabled{cursor:not-allowed;opacity:.55}
svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
img,video{display:block}
.hidden{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.app{width:100%;max-width:480px;margin:0 auto;min-height:100dvh;padding-bottom:calc(58px + env(safe-area-inset-bottom));background:#fff;position:relative}
.view{min-height:calc(100dvh - 60px)}
.topbar{position:sticky;top:0;z-index:15;height:54px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid transparent}
.topbar h1{font-size:19px;line-height:1.1;margin:0;font-weight:700;flex:1;text-align:left;padding-left:12px}
.header-action{display:grid;place-items:center;flex:0 0 38px;height:42px}
.header-action svg{width:27px;height:27px;stroke-width:2.25}
.header-action.spacer{pointer-events:none}
.profile-topbar{justify-content:space-between;padding:0 12px 0 10px}
.profile-handle{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;max-width:calc(100% - 95px)}
.profile-handle strong{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.profile-handle svg:first-child{width:17px;height:17px;flex:none}
.profile-handle svg:last-child{width:16px;height:16px;flex:none}
.profile-info{padding:17px 15px 15px}
.profile-summary{display:flex;align-items:center;gap:17px}
.profile-avatar-outer{position:relative;width:89px;height:89px;flex:0 0 89px;padding:3px;border-radius:50%;background:linear-gradient(55deg,#ffcc33 8%,#ff5934 30%,#cf0687 60%,#7b42d8 95%)}
.avatar{border-radius:50%;background:#f2f3f5;overflow:hidden;display:grid;place-items:center;background-position:center;background-size:cover}
.profile-avatar{width:100%;height:100%;border:3px solid #fff}
.avatar span{display:block;color:#9399a1}
.avatar-noimage:before,.avatar-noimage:after{content:'';position:absolute;background:#828c99;border-radius:50%}
.avatar-noimage{position:relative;background:#f3f3f4}
.avatar-noimage:before{width:34%;height:34%;top:20%;left:33%}
.avatar-noimage:after{width:67%;height:43%;bottom:-10%;left:16%}
.avatar-plus{position:absolute;right:-1px;bottom:0;width:25px;height:25px;border-radius:50%;background:#101114;border:2px solid #fff;color:#fff;font-size:21px;line-height:20px;display:grid;place-items:center}
.profile-main{flex:1;min-width:0}
.profile-name{font-size:14px;font-weight:600;margin:0 0 9px}
.profile-stats{display:grid;grid-template-columns:.8fr 1.3fr 1fr;gap:7px}
.profile-stats div{min-width:0}
.profile-stats strong{display:block;font-size:18px;font-weight:700;letter-spacing:-.03em}
.profile-stats span{display:block;font-size:13px;line-height:1.2;margin-top:2px}
.profile-bio{font-size:14px;line-height:1.4;margin:15px 0 14px;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-tools{display:flex;gap:7px}
.profile-tool{background:var(--soft);height:35px;border-radius:9px;flex:1;font-size:13px;font-weight:600}
.profile-tool.icon-tool{max-width:43px;display:grid;place-items:center}
.profile-tool svg{width:19px;height:19px}
.profile-tabs{height:51px;display:flex;border-bottom:1px solid var(--line)}
.profile-tab{display:grid;place-items:center;position:relative;flex:1;color:#73777e}
.profile-tab svg{width:26px;height:26px;stroke-width:2.2}
.profile-tab.active{color:#101114}
.profile-tab.active::after{position:absolute;content:'';height:2px;background:#101114;bottom:-1px;width:76%;max-width:105px}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
.photo-tile{position:relative;aspect-ratio:1;overflow:hidden;background:#eff0f2}
.photo-tile img,.photo-tile video{width:100%;height:100%;object-fit:cover}
.photo-tile .tile-overlay{position:absolute;inset:0;background:rgba(0,0,0,.24);display:grid;place-items:center;opacity:0;color:#fff;font-size:13px}
.photo-tile:active .tile-overlay{opacity:1}
.photo-tile .carousel-mark{position:absolute;right:7px;top:7px;color:#fff;filter:drop-shadow(0 1px 3px #333)}
.carousel-mark svg{width:19px;height:19px;fill:#fff;stroke:#fff}
.photo-tile .status-dot{position:absolute;bottom:7px;left:7px;background:rgba(0,0,0,.7);color:#fff;font-size:10px;line-height:1.2;padding:5px 7px;border-radius:5px}
.tagged-empty{display:flex;min-height:355px;padding:60px 20px;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:13px}
.empty-ring{width:88px;height:88px;border:2px solid #111;border-radius:50%;display:grid;place-items:center}
.empty-ring svg{width:47px;height:47px;stroke-width:1.6}
.tagged-empty h2{font-size:23px;line-height:1.1;margin:8px 0 0;font-weight:750;letter-spacing:-.03em}
.tagged-empty p{font-size:14px;line-height:1.45;max-width:310px;margin:0}
.scheduled-grid{margin-top:12px}
.notice{margin:10px 13px;background:#fff4e2;border:1px solid #f7dcb1;padding:9px;border-radius:8px;font-size:12px;color:#765016}
.bottom-nav{position:fixed;bottom:0;z-index:20;left:50%;transform:translateX(-50%);max-width:480px;width:100%;height:calc(55px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);display:flex;align-items:center;justify-content:space-around;border-top:1px solid #f0f0f0;background:#fff}
.bottom-nav button{display:grid;place-items:center;width:52px;height:50px}
.bottom-nav svg{width:27px;height:27px;stroke-width:2.3}
.bottom-nav .nav-plus svg{width:28px;height:28px}
.small-avatar{width:29px;height:29px;border:2px solid #111}
.bottom-nav button.active svg{stroke-width:3}
.posts-stream{padding:0}
.post{border-bottom:1px solid #f6f6f6;margin-bottom:10px;background:#fff}
.post-header{display:flex;align-items:center;gap:9px;min-height:58px;padding:8px 12px}
.post-avatar{width:35px;height:35px;flex:0 0 35px;padding:2px;border-radius:50%;background:linear-gradient(55deg,#fbb72a,#f54835 30%,#c50094 75%);display:grid;place-items:center}
.post-avatar .avatar{width:100%;height:100%;border:2px solid white}
.post-header-info{min-width:0;flex:1}
.post-header-info strong{display:block;font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post-header-info small{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post-header-more{padding:8px}
.post-header-more svg{width:25px;height:25px}
.post-carousel{width:100%;aspect-ratio:1;max-height:76svh;background:#f2f2f2;overflow:hidden;position:relative;touch-action:pan-y}
.post-carousel-track{width:100%;height:100%;display:flex;transition:transform .24s ease}
.post-slide{position:relative;flex:0 0 100%;min-width:0;height:100%;display:grid;place-items:center;background:#eee}
.post-slide img,.post-slide video{height:100%;width:100%;object-fit:contain}
.post-counter{position:absolute;right:13px;top:12px;background:#16181bc7;border-radius:19px;padding:7px 10px;font-size:12px;color:#fff}
.post-carousel-arrow{display:none;position:absolute;top:50%;transform:translateY(-50%);width:31px;height:31px;border-radius:50%;background:#fff9;place-items:center}
.post-carousel-arrow svg{width:19px;height:19px}
.post-carousel-arrow.prev{left:9px}.post-carousel-arrow.next{right:9px}
.post-dots{height:20px;display:flex;align-items:center;justify-content:center;gap:5px}
.post-dots i{display:block;width:5px;height:5px;border-radius:50%;background:#d4d6da}
.post-dots i.current{background:#5d6afb;transform:scale(1.12)}
.post-actions{height:42px;display:flex;align-items:center;gap:12px;padding:0 12px}
.post-actions button{display:grid;place-items:center;width:27px;height:35px}
.post-actions svg{width:26px;height:26px}
.post-actions .bookmark-button{margin-left:auto}
.post-actions .liked{color:#ff3040}
.post-actions .liked svg{fill:#ff3040;stroke:#ff3040}
.post-actions .saved svg{fill:#111}
.post-copy{font-size:13px;padding:5px 13px 14px;line-height:1.4}
.post-likes{font-weight:600;margin:0 0 7px}
.post-copy p{margin:0 0 5px;white-space:pre-wrap;overflow-wrap:anywhere}
.post-copy p strong{font-weight:700}
.post-time{color:#8e8e8e;font-size:11px}
.post-comments-link{color:#73777e;margin:5px 0;font-size:13px;text-align:left}
.post-caption{max-height:7em;overflow:hidden}
.post-scheduled{font-size:12px;color:#656970;margin:8px 0;padding:9px;background:#f4f4f5;border-radius:7px}
.post-scheduled strong{color:#121212}
.gate-screen{display:grid;min-height:100dvh;place-items:center;padding:25px}
.gate-form{width:min(100%,350px);display:flex;flex-direction:column;gap:13px;text-align:center}
.ig-script{font-family:"Brush Script MT",cursive;font-style:italic;letter-spacing:-.05em;font-size:47px;color:#121212;margin-bottom:10px}
.gate-form p{font-size:13px;color:#73777e;margin:0 0 15px}
.gate-form input{height:45px;border:1px solid #d9d9d9;border-radius:5px;background:#fafafa;padding:0 13px;font-size:14px;outline:none}
.gate-form input:focus{border-color:#a5a5a5}
.blue-button{background:var(--blue);color:#fff;border-radius:9px;height:44px;font-weight:700}
.gate-form small{color:#8e8e8e;margin-top:15px}
.gate-form .error{color:#ed3044;margin:0}
.toast{position:fixed;top:20px;left:50%;transform:translateX(-50%) translateY(-15px);padding:13px 17px;border-radius:10px;max-width:85vw;width:max-content;background:#26292f;color:#fff;font-size:13px;z-index:150;pointer-events:none;opacity:0;transition:opacity .2s,transform .2s;text-align:center;box-shadow:0 5px 20px #0002}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast.error{background:#b43649}
.sheet-backdrop{position:fixed;z-index:60;inset:0;background:rgba(0,0,0,.56)}
.bottom-sheet{position:fixed;z-index:61;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);border-radius:28px 28px 0 0;background:#fff;overflow:hidden;max-height:95dvh;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -7px 30px #0002}
.grabber{height:4px;width:37px;border-radius:99px;background:#777b83;margin:12px auto 14px}
.bottom-sheet h2{font-size:17px;font-weight:700;margin:0;padding:8px 16px 17px;text-align:center;border-bottom:1px solid #eee}
.sheet-option{display:flex;align-items:center;gap:16px;width:100%;padding:18px 20px;text-align:left;font-size:16px;min-height:63px}
.sheet-option svg{width:25px;height:25px}
.sheet-option svg:last-child{margin-left:auto;width:18px;color:#83858b}
.sheet-option.danger{color:#dc4053}
.comments-sheet{height:min(77dvh,725px);display:flex;flex-direction:column}
.comments-sheet h2{padding:8px 0 16px;font-size:16px;font-weight:600}
.comments-body{flex:1;overflow-y:auto;padding:16px 18px;min-height:0}
.comments-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}
.comments-empty h3{font-size:20px;letter-spacing:-.025em;margin:0}
.comments-empty p{font-size:13px;color:#8e8e8e;margin:0}
.comment-entry{display:flex;gap:11px;margin-bottom:18px;font-size:13px;line-height:1.4}
.comment-entry .avatar{width:32px;height:32px;flex:0 0 32px}
.comment-entry p{margin:0}
.comment-entry strong{margin-right:5px}
.comment-entry small{display:block;color:#8e8e8e;margin-top:7px}
.comment-compose{border-top:1px solid #ededed;padding:8px 12px 12px;background:#fff}
.quick-reactions{display:flex;justify-content:space-between;margin-bottom:9px;gap:8px}
.quick-reactions button{font-size:24px;line-height:1.1}
.comment-form{display:flex;align-items:center;gap:10px}
.comment-form .avatar{width:31px;height:31px;flex:0 0 31px}
.comment-form input{border:1px solid #dedfe2;border-radius:30px;padding:10px 13px;min-width:0;flex:1;outline:0;font-size:13px}
.comment-form button{color:#3e61f6;padding:8px}
.comment-form button svg{width:21px;height:21px}
.fullscreen{position:fixed;inset:0;left:50%;transform:translateX(-50%);width:min(100%,480px);z-index:40;background:#fff;display:flex;flex-direction:column;overflow:hidden}
.fullscreen .topbar{flex:0 0 55px;z-index:2;border-bottom:1px solid #f0f0f0}
.fullscreen .topbar h1{text-align:left}
.fullscreen .dark-topbar{background:#0e1117;color:#fff;border-bottom:none}
.text-next{font-size:15px;color:#5266ff;font-weight:700;padding:8px 3px}
.picker-preview{height:min(100vw,50dvh,480px);width:100%;max-height:none;min-height:0;flex:0 0 auto;background:#12151a;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#fff}
.picker-preview img,.picker-preview video{display:block;min-width:0;min-height:0;width:100%;height:100%;max-width:100%;max-height:100%;flex:0 0 100%;object-fit:contain;object-position:center;background:#12151a}
.picker-placeholder{display:grid;place-items:center;gap:10px;color:#b3b9c4;text-align:center;padding:28px}
.picker-placeholder svg{width:44px;height:44px}
.picker-placeholder p{font-size:13px}
.picker-controls{height:52px;background:#11141a;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 14px}
.picker-controls strong{display:flex;align-items:center;gap:7px;font-size:16px}
.picker-controls strong svg{width:15px}
.picker-controls button{display:flex;align-items:center;gap:7px;background:#30333a;border-radius:22px;padding:8px 12px;font-size:13px}
.picker-controls button svg{width:16px;height:16px}
.picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;background:#11141a;overflow-y:auto;flex:1;align-content:start}
.picker-grid .pick-tile,.picker-add{aspect-ratio:1;background:#262b33;position:relative;overflow:hidden;color:#fff}
.picker-grid img,.picker-grid video{width:100%;height:100%;object-fit:cover}
.pick-tile.active{outline:3px solid #5966ff;outline-offset:-3px}
.pick-tile .pick-index{position:absolute;right:5px;top:5px;background:#5564fd;border-radius:50%;width:22px;height:22px;display:grid;place-items:center;font-size:12px;font-weight:700}
.picker-add{display:grid;place-items:center;align-content:center;text-align:center;padding:10px;gap:5px}
.picker-add svg{height:30px;width:30px}
.picker-add span{font-size:10px}
.picker-hint{margin:0;background:#11141a;color:#9ba0a9;padding:8px 14px;font-size:10px}
.composer-body{flex:1;overflow-y:auto}
.composer-media{width:calc(100% - 32px);aspect-ratio:1 / 1;height:auto;min-height:0;display:flex;align-items:center;justify-content:center;margin:18px 16px 0;background:#f4f4f5;border-radius:2px;overflow:hidden}
.composer-media img,.composer-media video{display:block;min-width:0;min-height:0;flex:0 0 100%;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;background:#f4f4f5}
.composer textarea{width:calc(100% - 32px);border:0;outline:0;resize:vertical;min-height:108px;padding:18px 0 4px;margin:0 16px;font-size:16px;color:#151515}
.composer textarea::placeholder{color:#8a8c90}
.caption-counter{text-align:right;color:#9b9da4;font-size:11px;margin:0 16px 14px}
.option-list{border-top:1px solid #f0f0f0}
.option-list.separated{margin-top:10px;border-top:6px solid #f0f1f4}
.option-row{display:flex;align-items:center;gap:16px;width:100%;min-height:62px;padding:14px 16px;text-align:left;font-size:15px;border-bottom:1px solid #f0f0f0}
.option-row>svg:first-child{height:25px;width:25px;flex:0 0 25px}
.option-row>svg:last-child{width:19px;color:#84878f;margin-left:auto}
.option-row>span:not(.switch){flex:1}
.option-row small{display:block;font-size:12px;line-height:1.3;color:#73777e;margin-top:5px}
.composer-footer{background:#fff;padding:12px 15px calc(13px + env(safe-area-inset-bottom));border-top:1px solid #f0f0f0}
.purple-button{display:block;background:#4b5cf5;color:#fff;width:100%;border-radius:12px;height:48px;font-size:15px;font-weight:700}
.purple-button:disabled{background:#aab0ff}
.options-body{overflow-y:auto;flex:1;padding-top:30px}
.options-heading{font-size:13px;font-weight:600;color:#73777e;padding:0 16px 15px;margin:0}
.toggle-row{min-height:80px;cursor:pointer;gap:14px}
.toggle-row input,.option-row input{position:absolute;width:1px;height:1px;opacity:0}
.switch{width:51px;height:29px;background:#dadde3;border:2px solid #777d88;border-radius:99px;flex:0 0 51px;position:relative;transition:background .18s}
.switch::before{content:'';position:absolute;width:19px;height:19px;left:3px;top:3px;background:#777d88;border-radius:50%;transition:transform .18s,background .18s}
input:checked+.switch{background:#4b5cf5;border-color:#4b5cf5}
input:checked+.switch::before{background:#fff;transform:translateX(21px)}
input:focus-visible+.switch{outline:2px solid #4b5cf5;outline-offset:3px}
.disabled-switch{opacity:.4}
.options-note{font-size:12px;line-height:1.6;color:#8a8c91;padding:14px 16px}
.schedule-sheet,.edit-sheet,.manage-sheet{padding-left:18px;padding-right:18px;padding-bottom:calc(21px + env(safe-area-inset-bottom))}
.schedule-sheet h2,.edit-sheet h2,.manage-sheet h2{border-bottom:0}
.schedule-sheet>p{font-size:13px;color:#73777e;margin:0 0 18px;text-align:center}
.schedule-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.schedule-fields label,.tz-field,.edit-sheet>label{font-size:12px;font-weight:600;display:block}
.schedule-fields input,.tz-field select,.edit-sheet textarea{display:block;width:100%;min-width:0;border:1px solid #dddfe5;background:#f9f9fa;border-radius:9px;padding:12px;margin-top:8px;outline:none;font-size:14px;color:#17191d}
.tz-field{margin:14px 0 22px}
.edit-sheet textarea{height:78px;resize:vertical}
.edit-sheet .purple-button{margin-top:20px}
.manage-sheet .sheet-option{padding-left:3px}
.manage-sheet #manageSummary{font-size:13px;background:#f4f5f7;padding:12px;border-radius:8px;margin:6px 0}
.menu-sheet{padding-bottom:calc(15px + env(safe-area-inset-bottom))}
@media (min-width:700px){body{background:#f4f5f7}.app,.fullscreen{box-shadow:0 0 35px #0000000a}.bottom-nav{box-shadow:0 0 10px #00000008}.post-carousel-arrow{display:grid}.photo-tile:hover .tile-overlay{opacity:1}}
@media (max-width:359px){.profile-info{padding-left:10px;padding-right:10px}.profile-summary{gap:12px}.profile-avatar-outer{width:76px;height:76px;flex-basis:76px}.profile-handle strong{font-size:17px}.profile-stats strong{font-size:16px}.profile-stats span{font-size:11px}.post-header{padding:8px}.quick-reactions button{font-size:20px}}
\n.upload-error{color:#c02b3c;font-size:12px;line-height:1.5;margin:2px 0 12px;padding:10px 12px;border-radius:9px;background:#fff1f3;white-space:pre-wrap}\n
/* Uploaded media library */
.picker-grid{grid-auto-rows:max-content}
.picker-controls button{background:#4c5df5;font-weight:700}
.picker-grid .pick-tile{border:0;text-align:center}
.picker-grid .pick-tile .pick-index{background:#4d5df5}
.picker-grid .pick-tile.active{outline:3px solid #6572ff;outline-offset:-3px}
.picker-grid .pick-tile.active .pick-index{outline:2px solid #fff}
.picker-add{background:#2e3442}
.picker-add span{font-size:12px;font-weight:600}
.picker-hint{padding:11px 15px 14px;line-height:1.35}
.library-progress{flex:0 0 auto;padding:10px 14px;background:#1d273c;color:#fff;font-size:12px;line-height:1.3}
.library-progress[data-error="true"]{background:#54252c;color:#fff}
.library-progress .library-track{height:5px;border-radius:8px;overflow:hidden;background:#ffffff30;margin-top:8px}
.library-progress .library-track i{height:100%;display:block;border-radius:8px;background:#7485ff;transition:width .1s}
.picker-preview{position:relative}
.picker-preview .library-delete{position:absolute;right:12px;bottom:12px;background:#252a33bb;border:1px solid #ffffff66;border-radius:18px;padding:7px 13px;color:#fff;font-size:12px;font-weight:600}
.picker-preview .library-caption{position:absolute;left:8px;top:8px;background:#181a21aa;border-radius:8px;color:white;font-size:11px;padding:4px 8px}

/* Music search, track preview and playback */
.music-view{background:#fff}
.music-search-bar{margin:10px 14px;display:flex;align-items:center;gap:8px;height:42px;background:#f1f2f5;border-radius:10px;padding:0 11px}
.music-search-bar svg{color:#82858a;width:21px;height:21px}
.music-search-bar input{background:transparent;border:none;outline:none;min-width:0;flex:1;font-size:15px;color:#17191c}
.music-status{font-size:12px;color:#858991;padding:9px 17px 12px;line-height:1.4}
.music-results{overflow-y:auto;min-height:80px;flex:1;padding:0 10px 8px}
.music-result{display:flex;align-items:center;gap:5px;padding:5px 0;border-bottom:1px solid #f1f2f4}
.music-result.chosen{background:#f1f2ff}
.music-track-select{display:flex;align-items:center;min-width:0;gap:12px;flex:1;text-align:left;padding:5px}
.music-track-select img,.music-no-cover{width:48px;height:48px;border-radius:7px;object-fit:cover;background:#e2e4ea;flex:0 0 48px}
.music-no-cover{display:grid;place-items:center;color:#8b8e9a}
.music-no-cover svg{width:22px;height:22px}
.music-track-select span:not(.music-no-cover){display:flex;flex-direction:column;overflow:hidden;min-width:0;gap:4px}
.music-track-select strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.music-track-select small{font-size:12px;color:#777b84;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.music-preview-button{width:44px;height:48px;flex:0 0 44px;display:grid;place-items:center;color:#151515}
.music-preview-button svg{width:23px;height:23px}
.music-trim{padding:12px 16px calc(20px + env(safe-area-inset-bottom));border-top:1px solid #e9ebef;display:flex;flex-direction:column;gap:6px;background:#fff}
.music-trim strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.music-trim>span{font-size:12px;color:#888a90}
.music-trim label{font-size:13px;margin-top:7px}
.music-trim input{width:100%;accent-color:#4b5cf5}
.music-duration{display:flex;align-items:center;gap:8px;margin-top:10px}
.music-duration span{font-size:12px;color:#737680;margin-right:auto}
.music-duration button{border-radius:20px;background:#f1f2f5;padding:8px 12px;font-size:12px}
.music-duration button.active{background:#4d5cf5;color:white}
.music-remove{font-size:13px;color:#de3347;text-align:center;padding:12px;margin-top:5px}
.post-audio{font-size:11px;color:#1c1d20;max-width:100%;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}
.post-audio:active{opacity:.5}


/* Authenticated, non-flashing initial loading state. */
.boot-screen{position:fixed;inset:0;background:#fff;z-index:250;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100dvh;max-width:100vw;padding:22px 18px calc(26px + env(safe-area-inset-bottom))}
.boot-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;transform:translateY(-4vh);width:min(100%,340px);text-align:center}
.boot-brand{font-family:"Brush Script MT",cursive;font-size:49px;font-style:italic;font-weight:500;letter-spacing:-.07em;color:#19191c;line-height:1.1;margin-bottom:3px}
.boot-loader{display:grid;place-items:center;height:48px;width:48px;margin-top:13px}
.boot-spinner{width:29px;height:29px;border-radius:50%;border:3px solid #e7e8ef;border-top-color:#4c5df5;animation:boot-spin .85s linear infinite}
.boot-content>p{margin:0;color:#7e818a;font-size:13px;line-height:1.45;max-width:300px}
.boot-content>.boot-error{color:#a02a3b;margin-top:3px}
.boot-retry{background:#4c5df5;color:white;font-weight:650;font-size:13px;border-radius:11px;padding:12px 24px;margin-top:3px}
.boot-footer{position:absolute;bottom:calc(24px + env(safe-area-inset-bottom));color:#a0a2ab;font-size:11px;letter-spacing:.02em}
@keyframes boot-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.boot-spinner{animation-duration:2.2s}}

/* Instagram-style music discovery */
.music-search-bar{flex:0 0 42px}
.music-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:0 0 47px;width:100%;border-bottom:1px solid #e8e8e9;padding:0 9px;gap:3px}
.music-tab{position:relative;display:grid;place-items:center;white-space:nowrap;font-size:13px;font-weight:650;color:#888a90;padding:0 3px;min-width:0}
.music-tab.active{color:#16171b}
.music-tab.active::after{content:"";height:2px;position:absolute;bottom:0;left:11px;right:11px;border-radius:2px;background:#171719}
.music-group-name{font-size:13px;font-weight:700;margin:17px 7px 7px;color:#202127}
.music-result{gap:3px;padding:6px 0}
.music-track-select{gap:9px;padding:4px;cursor:pointer}
.music-track-select img,.music-no-cover{width:44px;height:44px;flex-basis:44px}
.music-preview-button{height:42px;flex:0 0 34px;width:34px;color:#272a31}
.music-preview-button svg{height:20px;width:20px}
.music-select-button{background:#f0f1f4;padding:8px 11px;font-size:11px;font-weight:700;border-radius:9px;white-space:nowrap;margin-right:5px;flex:0 0 auto;min-width:77px}
.music-select-button.selected{background:#4e5df6;color:white}
.music-trim{box-shadow:0 -6px 16px #00000008;z-index:2}
.music-list-loading{display:flex;align-items:center;justify-content:center;gap:15px;min-height:125px;color:#898c94;font-size:13px}
.music-list-loading .boot-spinner{width:23px;height:23px}
.music-list-error{display:flex;align-items:center;flex-direction:column;gap:14px;padding:24px 18px;text-align:center;font-size:13px;color:#6e717b}
.music-list-error p{margin:0;line-height:1.45}
.music-list-error button{padding:10px 18px;background:#4e5df6;color:#fff;border-radius:9px;font-weight:700}
@media(max-width:350px){.music-tab{font-size:12px}.music-select-button{padding:7px 8px;min-width:70px}.music-track-select img,.music-no-cover{width:40px;height:40px;flex-basis:40px}}

/* Fixed 4-column media library; images absolutely positioned to keep implicit grid rows square. */
.picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;grid-auto-flow:row;align-content:start;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;gap:2px}
.picker-grid .pick-tile,.picker-grid .picker-add{width:100%;height:auto;min-width:0;min-height:0;aspect-ratio:1/1;position:relative;overflow:hidden;align-self:start}
.picker-grid .pick-tile>img,.picker-grid .pick-tile>video{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;object-position:center}
.picker-grid .picker-add{display:grid;align-content:center;justify-items:center}
.picker-grid .picker-add>svg{position:static}
.picker-controls{justify-content:flex-start}
.library-progress.hidden{display:none !important}
/* Feed crop editor with bounded source previews */
.crop-editor{padding:0 16px 12px;background:#fff}
.crop-tabs{display:flex;gap:7px;padding:12px 0 8px}
.crop-tabs button{border-radius:9px;background:#f2f3f5;color:#33373d;font-size:12px;padding:8px 13px;white-space:nowrap}
.crop-tabs button.active{background:#22252b;color:#fff}
.crop-window{position:relative;overflow:hidden;touch-action:none;overscroll-behavior:contain;width:100%;aspect-ratio:1/1;background:#111;color:#fff}
.crop-window img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;max-width:none;max-height:none;touch-action:none;user-select:none;-webkit-user-drag:none;transform-origin:50% 50%}
.crop-window::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent 33.2%,#ffffff33 33.25%,#ffffff33 33.45%,transparent 33.5%,transparent 66.5%,#ffffff33 66.55%,#ffffff33 66.75%,transparent 66.8%),linear-gradient(to bottom,transparent 33.2%,#ffffff33 33.25%,#ffffff33 33.45%,transparent 33.5%,transparent 66.5%,#ffffff33 66.55%,#ffffff33 66.75%,transparent 66.8%)}
.crop-zoom{display:flex;align-items:center;gap:9px;padding:9px 0 0;font-size:12px;color:#5e6067}
.crop-zoom input{width:100%;accent-color:#5564f7}
.crop-help{font-size:11px;color:#787c84;margin-top:5px}
.crop-frame-list{display:flex;gap:6px;overflow-x:auto;padding:10px 0 4px}
.crop-frame-list button{position:relative;flex:0 0 45px;width:45px;height:45px;border:2px solid transparent;border-radius:5px;overflow:hidden;background:#f1f1f1}
.crop-frame-list button.active{border-color:#4d60fd}
.crop-frame-list button img{width:100%;height:100%;object-fit:cover}
.crop-video-placeholder{width:100%;height:100%;display:grid;place-items:center}

/* Exact feed preview: natural Instagram formats, no overflow clipping. */
.composer-media{flex-shrink:0}
.composer-media .crop-window{width:100%;height:100%;min-width:0;min-height:0;flex:0 0 100%;display:block;position:relative;overflow:hidden}
.composer-media .crop-window img{position:absolute;inset:0;display:block;flex:none;width:100%;height:100%;max-height:none;max-width:none;object-fit:cover;object-position:center;touch-action:none;user-select:none;-webkit-user-drag:none}
.crop-editor .crop-help{margin:5px 0;font-size:11px;color:#73767d}
.crop-editor .crop-frame-list img{width:100%;height:100%;object-fit:cover}
.post-sound{position:absolute;bottom:12px;right:12px;z-index:3;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#16191caa;color:white;cursor:pointer;touch-action:manipulation}
.post-sound svg{width:18px;height:18px;stroke-width:2}
.post-sound:not(.unmuted):after{content:"";position:absolute;width:20px;height:2px;background:#fff;transform:rotate(-45deg);border-radius:2px;box-shadow:0 0 0 1px #16191caa}
.post-sound.hidden{display:none}
/* Fixed-height implicit rows: compute each cell from the site's viewport-limited width. */
.picker-grid{grid-auto-rows:calc((min(100vw, 480px) - 6px) / 4)}
.picker-grid .pick-tile,.picker-grid .picker-add{height:100%;max-height:100%;aspect-ratio:auto;overflow:hidden}
