/* BTB Social iPhone app shell — overlays rather than stacking page chrome.
   Video stays original/uncropped. Private messaging and store routes unchanged. */
.creator-compose-toolbar{display:none}
.creator-compose-backdrop[hidden]{display:none!important}
.creator-inbox-new-button{
 border:1px solid #3b628e;border-radius:11px;background:#1b3f6b;
 color:#fff;font-weight:750;padding:9px 13px;min-height:43px;
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 flex-shrink:0
}
.creator-inbox-new-button:focus-visible,
.creator-compose-toolbar button:focus-visible{outline:3px solid #9fcfff;outline-offset:2px}
#view-inbox .creator-messages-header{align-items:center}
#view-inbox .creator-messages-header>div:first-child{min-width:0;flex:1}
#view-inbox .creator-inbox-view-switch button{min-height:45px}
#view-inbox #creator-message-compose-start[hidden]{display:none!important}
#view-inbox .creator-requests-empty{min-height:110px}
#view-inbox #inbox-conversations .creator-conversation{width:100%;text-align:left}
#view-inbox #inbox-conversations .creator-conversation:focus-visible{outline:3px solid #91caff;outline-offset:1px}
@media(max-width:780px){
 /* Social lives in one app shell. Footer and redundant mobile tab bar must
    not push messages/posts under the bottom dock. */
 body:has(.bottom-dock) .foot{display:none!important}
 body .mobile-tabs{display:none!important}
 .layout{padding:9px 11px 100px}
 .bottom-dock{
  padding:7px 7px calc(7px + env(safe-area-inset-bottom,0px))!important;
  background:#0c1426f5!important;z-index:45
 }
 .bottom-dock button{min-width:0;min-height:54px!important;font-size:11px!important}
 .bottom-dock button.is-active{color:#f0f7ff!important}
 .bottom-dock button .btb-dock-line-icon,
 .bottom-dock button .btb-post-glyph,
 .bottom-dock button .btb-pulse-glyph,
 .bottom-dock button .btb-messages-glyph{min-width:33px}
 /* Dock is never drawn over the iPhone keyboard or the focused composer. */
 body.creator-editing-focus .bottom-dock,
 body.creator-compose-open .bottom-dock{display:none!important}
 body.creator-editing-focus:not(.creator-compose-open) .layout{padding-bottom:22px}
 #view-inbox .creator-messages-header{margin:5px 3px 12px}
 #view-inbox .creator-messages-header h2{font-size:27px;line-height:1.2}
 #view-inbox .creator-messages-header p{display:none}
 #view-inbox .creator-inbox-new-button{min-height:41px;padding:8px 12px}
 #view-inbox .creator-inbox-view-switch{border:0;background:#13223a;margin:7px 0 12px;padding:4px;border-radius:12px}
 #view-inbox .creator-inbox-view-switch button{font-size:13px;min-height:44px;gap:4px;padding:5px 4px}
 #view-inbox .creator-message-compose-start{padding:13px!important}
 #view-inbox .creator-message-compose-start .search-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
 #view-inbox .creator-message-compose-start .search-row input{font-size:16px;min-width:0;flex:1 1 155px}
 #view-inbox .creator-message-compose-start .search-row button{min-height:45px;min-width:125px;flex:0 0 auto}
 #view-inbox #inbox-conversations{background:transparent;border:0;padding:0!important;margin:0 0 16px}
 #view-inbox #inbox-conversations .creator-inbox-heading{padding:4px 5px 8px}
 #view-inbox #inbox-conversations .creator-inbox-heading h3{font-size:17px;margin:0}
 #view-inbox #inbox-conversations .creator-inbox-heading .btn{font-size:11px;padding:8px 10px;min-height:39px}
 #view-inbox #inbox-conversations .creator-conversation{
  display:flex;gap:11px;align-items:center;min-height:75px;
  margin:0;background:transparent;border:0;border-bottom:1px solid #273b56;border-radius:0;
  padding:11px 7px!important
 }
 #view-inbox #inbox-conversations .creator-conversation .avatar{min-width:49px;width:49px;height:49px}
 #view-inbox #inbox-conversations>.muted,
 #view-inbox #inbox-conversations>p.muted{
  padding:24px 14px;line-height:1.6;color:#aebed5;
  background:#101e31;border-radius:13px;margin:7px 0 0
 }
 #view-inbox #creator-group-chat{margin:8px 0 14px;padding:14px}
 #view-inbox #creator-group-chat>summary{font-size:15px}
 #view-inbox #creator-message-requests{margin-top:5px}
 #view-inbox .creator-request-entry>.avatar{min-width:48px;width:48px;height:48px}
 #view-inbox .creator-request-actions .btn{flex:1;min-width:105px}
 body.creator-chat-open #view-inbox #inbox-thread-panel{
  top:calc(62px + var(--creator-visible-top,0px))!important;
  bottom:auto!important;
  height:max(210px,calc(var(--creator-visible-height,100dvh) - 136px))!important;
  max-height:none!important;padding:11px 12px!important;
  border-radius:0!important
 }
 body.creator-chat-open.creator-editing-focus #view-inbox #inbox-thread-panel{
  height:max(185px,calc(var(--creator-visible-height,100dvh) - 68px))!important
 }
 body.creator-chat-open #view-inbox .creator-chat-head{
  flex:0 0 auto;display:flex;flex-direction:row-reverse;
  justify-content:flex-end;gap:10px;padding:3px 0 8px
 }
 body.creator-chat-open #view-inbox .creator-chat-head h3{
  font-size:17px!important;font-weight:750;line-height:1.3;margin:0
 }
 body.creator-chat-open #view-inbox #inbox-close-thread{
  flex:0 0 auto;min-width:42px;min-height:42px;padding:6px 8px!important;
  font-size:0!important;background:#1d314a;border:0;border-radius:50%
 }
 body.creator-chat-open #view-inbox #inbox-close-thread::before{content:"‹";font-size:28px;line-height:24px}
 body.creator-chat-open #view-inbox #inbox-thread-messages{
  flex:1 1 auto;min-height:0!important;max-height:none!important;
  border:0!important;border-radius:10px!important;background:#0b1424
 }
 body.creator-chat-open #view-inbox .creator-dm-media-tools{min-height:42px;max-height:53px;flex-wrap:nowrap;overflow-x:auto;margin:3px 0;gap:6px}
 body.creator-chat-open #view-inbox .creator-dm-media-tools .btn,
 body.creator-chat-open #view-inbox .creator-dm-media-tools label{
  flex-shrink:0;min-height:40px!important;padding:6px 11px!important;border-radius:19px
 }
 body.creator-chat-open #inbox-message-text{font-size:16px!important}
 body.creator-chat-open #inbox-send-form button{min-height:44px}
 body.creator-chat-open #creator-call-actions[hidden]{display:none!important}
 /* A focused creation sheet is a real app surface, not a form behind Safari's
    floating keyboard. Text, uploads and Post stay in one scrollable viewport. */
 .creator-compose-toolbar{display:none}
 body.creator-compose-open{overflow:hidden}
 body.creator-compose-open #creator-compose-backdrop{
  display:block!important;position:fixed;inset:0;z-index:65;
  background:#020816d9;backdrop-filter:blur(5px)
 }
 body.creator-compose-open #composer{
  position:fixed!important;display:flex!important;flex-direction:column;
  inset:auto!important;left:0!important;right:0!important;
  top:var(--creator-compose-top,0px)!important;
  width:100%!important;max-width:100%!important;
  height:var(--creator-compose-height,100dvh)!important;
  max-height:var(--creator-compose-height,100dvh)!important;
  margin:0!important;padding:10px 15px calc(13px + env(safe-area-inset-bottom,0px))!important;
  z-index:70!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;background:#0c1425!important;
  overflow-y:auto!important;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch
 }
 body.creator-compose-open #composer .creator-compose-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:48px;flex:0 0 auto;padding:0 0 11px;
  border-bottom:1px solid #314359;margin-bottom:11px
 }
 #composer .creator-compose-toolbar button{
  min-height:43px;border:0;background:transparent;color:#9cc7ff;
  font-size:14px;font-weight:720;padding:8px 10px
 }
 #composer .creator-compose-toolbar strong{font-size:18px;letter-spacing:-.02em}
 #composer .creator-compose-toolbar span{font-size:11px;color:#9eafc9}
 body.creator-compose-open #composer .composer-title{flex:0 0 auto;margin-bottom:11px}
 body.creator-compose-open #composer .composer-title small{display:none}
 body.creator-compose-open #composer #post-form{
  display:flex;flex-direction:column;flex:1 0 auto;gap:10px;
  min-height:260px;width:100%;overflow:visible
 }
 body.creator-compose-open #post-body{
  min-height:130px!important;height:auto;max-height:none!important;
  flex:1 1 150px;resize:vertical;background:#122238!important;
  border:1px solid #324966!important;color:#fff;
  font-size:16px!important;line-height:1.55;padding:14px!important
 }
 body.creator-compose-open #composer .compose-actions{
  display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;
  gap:9px;min-height:54px;margin:4px 0 0;padding:9px 0 1px
 }
 body.creator-compose-open #composer .compose-actions .file-choice{
  min-height:42px;border-radius:11px;background:#1c344f;padding:9px 11px;display:inline-flex
 }
 body.creator-compose-open #composer .compose-hint{display:none}
 body.creator-compose-open #composer #post-submit{
  min-width:100px;min-height:44px;margin-left:auto;
  border-radius:13px;font-size:14px
 }
 body.creator-compose-open #composer .creator-post-destination{flex:0 0 auto;gap:7px}
 body.creator-compose-open #composer .media-preview{flex:0 0 auto}
 /* A Pulse screen, not a page-within-a-page. Keep a separate actions lane so
    the original, uncropped footage and burned-in captions stay visible. */
 body.creator-pulse-open .topbar{display:none!important}
 body.creator-pulse-open .layout{padding:0!important;max-width:100%}
 body.creator-pulse-open #view-reels>.social-head{display:none!important}
 body.creator-pulse-open #view-reels{min-width:0;margin:0;background:#060a12}
 body.creator-pulse-open #view-reels .creator-reels-category{
  margin:0!important;padding:5px 12px!important;min-height:48px!important;
  background:#0b1425;display:flex;align-items:center
 }
 body.creator-pulse-open #view-reels .creator-reels-list{
  width:100%!important;max-width:100%!important;
  height:calc(100dvh - 121px - env(safe-area-inset-bottom,0px))!important;
  min-height:290px!important;margin:0!important;overflow-y:auto!important;
  border-radius:0!important;scroll-snap-type:y mandatory!important
 }
 body.creator-pulse-open #view-reels .creator-reel,
 body.creator-pulse-open #view-reels .creator-reel>.post{
  border:0!important;border-radius:0!important;margin:0!important;
  background:#060a12!important
 }
 body.creator-pulse-open #view-reels .creator-reel .post-media.creator-reel-video{
  width:calc(100% - 53px)!important;height:calc(100% - 115px)!important;
  object-fit:contain!important;object-position:center!important
 }
 body.creator-pulse-open #view-reels .creator-reel .post-author{
  bottom:64px!important;left:9px!important;right:9px!important
 }
 body.creator-pulse-open #view-reels .creator-reel .post-text{
  bottom:9px!important;left:9px!important;right:9px!important
 }
 body.creator-pulse-open #view-reels .creator-reel .post-actions,
 body.creator-pulse-open #view-reels .creator-reel .creator-licensed-actions{
  right:3px!important;top:66px!important;max-width:50px!important
 }
 body.creator-pulse-open #view-reels .creator-reel .creator-licensed-about{
  bottom:10px!important;left:9px!important;right:9px!important
 }
 body.creator-pulse-open #view-reels .creator-reel-controls{
  top:6px!important;right:5px!important
 }
}
@media(max-width:350px){
 body.creator-compose-open #composer{padding-left:10px!important;padding-right:10px!important}
 #view-inbox .creator-inbox-view-switch button{font-size:12px;min-width:0}
}
@media(prefers-reduced-motion:reduce){
 .creator-compose-backdrop,.creator-inbox-new-button{transition:none!important}
}
/* People search uses the existing public discovery endpoint. No private
   contacts are stored or inferred, and recipients still accept DMs. */
#view-inbox .creator-inbox-new-results[hidden]{display:none!important}
#view-inbox .creator-inbox-new-results{
 display:grid;gap:0;border:1px solid #375577;background:#0b1b30;
 border-radius:12px;margin:7px 0 10px;max-height:292px;overflow-y:auto
}
#view-inbox .creator-inbox-new-results>button{
 width:100%;min-height:64px;display:flex;align-items:center;gap:10px;
 padding:9px 12px;text-align:left;background:transparent;color:#f5f8ff;
 border:0;border-bottom:1px solid #263e5d
}
#view-inbox .creator-inbox-new-results>button:last-child{border-bottom:0}
#view-inbox .creator-inbox-new-results>button:hover,
#view-inbox .creator-inbox-new-results>button:focus-visible{background:#1b3958}
#view-inbox .creator-inbox-new-results>button .avatar{width:41px;height:41px;flex:0 0 41px}
#view-inbox .creator-inbox-new-results>button>span:nth-child(2){flex:1;min-width:0}
#view-inbox .creator-inbox-new-results strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#view-inbox .creator-inbox-new-results small{display:block;font-size:12px;color:#b5c9e4;margin-top:3px}
#view-inbox .creator-inbox-new-results .muted{padding:12px;font-size:12px}


/* Tiny nonblocking mobile notices; never obscure bottom navigation or Story controls. */
#notice:not([hidden]){position:fixed!important;z-index:80;left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;top:auto!important;width:max-content!important;max-width:min(360px,calc(100vw - 40px))!important;max-height:100px!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:12px!important;line-height:1.35!important;padding:9px 12px!important;border-radius:12px!important;pointer-events:none!important;box-shadow:0 6px 15px #0005!important}
.creator-story-shop-draft{display:flex;align-items:center;gap:12px;border:1px solid #5279a0;border-radius:12px;background:#14253b;padding:10px;min-height:80px}
.creator-story-shop-draft img{width:96px;height:104px;object-fit:contain;background:#f4f6fa;border-radius:10px;flex-shrink:0}
.creator-story-shop-draft strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.creator-story-shop-thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:145px;padding:5px;font-size:12px;text-align:center}
.creator-story-shop-thumb img{max-width:100%;max-height:170px;object-fit:contain;background:#f5f7fb;border-radius:9px}
.creator-story-shop-thumb strong{font-size:12px;line-height:1.3}
#story-viewer-delete{background:#332335;border-color:#9c6280;color:#fff}
@media(max-width:480px){.creator-story-shop-draft img{width:80px;height:90px}#notice:not([hidden]){bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}}

/* Compact mobile Story composer: a single photo-first composer without oversized cards. */
.creator-story-shop-draft[hidden],.creator-story-selected-media[hidden],#story-selected[hidden],#story-draft-available[hidden]{display:none!important}
#view-stories .creator-stories-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
#view-stories .creator-stories-head>div{min-width:0;flex:1}
#view-stories .creator-stories-head p{font-size:12px;line-height:1.4;margin:3px 0 0;color:#a9bed7}
#view-stories .creator-stories-head .btn{min-width:80px;min-height:40px;padding:8px 10px;flex-shrink:0;font-size:12px}
#view-stories .creator-story-compose{margin:0 0 18px;border:1px solid #314b6d;border-radius:15px;background:#142238;padding:0;overflow:hidden}
#view-stories .creator-story-compose>summary{cursor:pointer;list-style:none;padding:15px 16px;min-height:54px;font-weight:780;font-size:15px}
#view-stories .creator-story-compose>summary::-webkit-details-marker{display:none}
#view-stories .creator-story-compose[open]>summary{border-bottom:1px solid #304867}
#view-stories .creator-story-compose #story-form{display:grid;gap:11px;padding:14px}
#view-stories .creator-story-compose #story-text{width:100%;min-height:77px;max-height:160px;resize:vertical;padding:12px;border-radius:11px;background:#0f1a2b;border:1px solid #425d7b;box-shadow:none;color:#f0f6fd;font-size:14px}
#view-stories .creator-story-pickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#view-stories .creator-story-pickers .file-choice{display:flex;align-items:center;justify-content:center;min-height:44px;text-align:center;font-size:13px;border:1px solid #4b7197;border-radius:11px;background:#1a2e49}
#view-stories .creator-story-compose .creator-story-shop-draft{min-height:0;padding:10px;border-radius:11px;background:#142e4a;display:flex;gap:11px}
#view-stories .creator-story-compose .creator-story-shop-draft img{width:86px;height:94px;object-fit:contain;background:white;border-radius:9px}
#view-stories .creator-story-compose .creator-story-shop-draft strong{font-size:13px}
#view-stories #story-selected{font-size:11px;line-height:1.4;margin:0}
#view-stories .creator-story-selected-media{max-height:240px;background:#0c1829;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}
#view-stories .creator-story-selected-media :is(img,video){display:block;max-width:100%;max-height:240px;object-fit:contain}
#view-stories .creator-story-compose-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:3px}
#view-stories .creator-story-compose-actions .btn{min-height:41px;font-size:12px;padding:8px 12px}
#view-stories .creator-story-compose-actions .primary{flex:1 1 125px}
#view-stories .creator-story-saved-notice{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:9px 11px;background:#1a304c;border:1px solid #456b90;border-radius:11px;margin:0 0 12px;font-size:12px}
#view-stories .creator-story-saved-notice span{flex:1 1 125px}
#view-stories .creator-story-saved-notice .btn{min-height:34px;font-size:12px;padding:6px 9px}
#view-stories .creator-story-compose #story-draft-discard{border-color:#765b6a;background:#322436}
@media(max-width:540px){#view-stories .creator-stories-head h2{font-size:28px;line-height:1.15}#view-stories .creator-story-compose #story-form{padding:11px}#view-stories .creator-story-compose-actions .btn{padding:8px 9px}#view-stories .creator-story-compose #story-text{font-size:16px}}

#view-stories .creator-story-draft-privacy{display:block;font-size:11px;color:#abc0d8;line-height:1.4;margin:0 2px 2px}
