/* TSC mobile-first blogger hub — Android Chrome & iOS Safari.
   Presentation only; leaves business forms, API permissions and route IDs unchanged. */
#tsc-blogger-mobile-hub,
#tsc-blogger-mobile-more{display:none}
@media(max-width:730px){
 html[data-tsc-mobile-role="blogger"]{
   --tsc-hub-height:66px;
   --tsc-hub-bottom:env(safe-area-inset-bottom,0px);
 }
 html[data-tsc-mobile-role="blogger"] .shell{
   display:block!important;
   grid-template-columns:none!important;
   width:100%!important;
   padding-bottom:calc(var(--tsc-hub-height) + var(--tsc-hub-bottom) + 15px)!important;
 }
 html[data-tsc-mobile-role="blogger"] .shell>.sidebar{
   display:none!important;
 }
 html[data-tsc-mobile-role="blogger"] .main{
   width:100%!important;
   max-width:100%!important;
   margin:0!important;
   padding:14px 12px calc(94px + var(--tsc-hub-bottom))!important;
   min-width:0!important;
 }
 html[data-tsc-mobile-role="blogger"] .top h1{
   font-size:clamp(21px,5.7vw,27px)!important;
   line-height:1.3!important;
 }
 html[data-tsc-mobile-role="blogger"] .top-right{
   gap:7px!important;
 }
 html[data-tsc-mobile-role="blogger"] .top-right :is(button,.identity,.v54-lang-selector){
   min-height:42px;
 }
 html[data-tsc-mobile-role="blogger"] #content .card{
   max-width:100%;
   border-radius:15px;
 }
 html[data-tsc-mobile-role="blogger"] #content :is(.v45-range-holder,.v45-range-trigger,select,textarea,input:not([type=checkbox]):not([type=radio])){
   max-width:100%;
   box-sizing:border-box;
 }
 html[data-tsc-mobile-role="blogger"] #content :is(input,select,textarea){
   font-size:16px!important; /* Prevent iOS automatic input zoom */
   line-height:1.35;
 }
 html[data-tsc-mobile-role="blogger"] #content :is(button,.btn,a[role="button"]){
   touch-action:manipulation;
 }
 html[data-tsc-mobile-role="blogger"] #content :is(button[type="submit"],.btn.green,.btn.outline){
   min-height:44px;
 }
 html[data-tsc-mobile-role="blogger"] #content :is(.tablebox,.tsc-fixed-log,.bio-scroll){
   overflow-x:auto;
   -webkit-overflow-scrolling:touch;
   max-width:100%;
 }
 html[data-tsc-mobile-role="blogger"] #content :is(.v49-ratings,.v50-admin-kpis,.v47-kpis){
   max-width:100%;
 }
 html[data-tsc-mobile-role="blogger"] #content .v49-score-hero .big,
 html[data-tsc-mobile-role="blogger"] #content .hero .big{
   font-size:clamp(41px,12vw,60px)!important;
   overflow-wrap:anywhere;
 }
 html[data-tsc-mobile-role="blogger"] .selection-row .tagcount{
   font-size:11px;
   line-height:1.5;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-inbox-popup{
   position:fixed!important;
   top:auto!important;
   bottom:calc(var(--tsc-hub-height) + var(--tsc-hub-bottom) + 8px)!important;
   left:8px!important;right:8px!important;
   width:auto!important;
   max-width:none!important;
   max-height:calc(100dvh - var(--tsc-hub-height) - var(--tsc-hub-bottom) - 24px)!important;
   border-radius:17px!important;
   padding:12px!important;
   -webkit-overflow-scrolling:touch;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-inbox-popup .mail-actions .btn{
   min-height:38px;
   font-size:12px;
   padding:7px 9px;
 }
 html[data-tsc-mobile-role="blogger"] :is(.v45-pop,.tsc-range-pop){
   max-width:calc(100vw - 16px)!important;
   max-height:min(78dvh,740px)!important;
   overflow-y:auto;
   overscroll-behavior:contain;
 }
 html[data-tsc-mobile-role="blogger"] :is(.modal,.tsc-manager-real-modal,.tsc-bio-dialog){
   max-width:calc(100vw - 16px)!important;
   max-height:calc(100dvh - 22px)!important;
   overscroll-behavior:contain;
 }
 html[data-tsc-mobile-role="blogger"] .tsc-fixed-live-days{
   grid-template-columns:minmax(0,1fr)!important;
 }
 html[data-tsc-mobile-role="blogger"] .tsc-fixed-live-days :is(input,select){
   min-width:0!important;
 }
 html[data-tsc-mobile-role="blogger"] #content [data-tsc-live-appeals-card] form[data-live-appeal]{
   padding:12px!important;
 }
 html[data-tsc-mobile-role="blogger"] #content :is(.tsc-sync-row,.tsc-real-payout-entry){
   overflow-wrap:anywhere;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-hub{
   display:grid!important;
   position:fixed!important;
   inset:auto 0 0!important;
   z-index:320!important;
   grid-template-columns:repeat(4,minmax(0,1fr))!important;
   gap:3px;
   width:100%;
   height:calc(var(--tsc-hub-height) + var(--tsc-hub-bottom));
   padding:5px 8px calc(5px + var(--tsc-hub-bottom));
   box-sizing:border-box;
   background:var(--paper,#fff);
   color:var(--ink,#173028);
   border-top:1px solid var(--line,#dbe9e2);
   box-shadow:0 -8px 25px #0002;
   -webkit-tap-highlight-color:transparent;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-hub .tsc-hub-tab{
   appearance:none;
   border:0!important;
   background:transparent;
   color:var(--muted,#638072);
   border-radius:12px;
   min-width:0;
   min-height:53px;
   display:flex;
   flex-direction:column;
   align-items:center;
   justify-content:center;
   gap:3px;
   font-size:11px;
   line-height:1.1;
   font-weight:700;
   white-space:nowrap;
   touch-action:manipulation;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-hub .tsc-hub-tab svg{
   display:block;
   width:21px;
   height:21px;
   stroke:currentColor;
   stroke-width:1.9;
   stroke-linecap:round;
   stroke-linejoin:round;
   fill:none;
   flex-shrink:0;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-hub .tsc-hub-tab[aria-current="page"],
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-hub .tsc-hub-tab[aria-expanded="true"]{
   color:var(--green,#087f5e);
   background:var(--purple-l,#e7f6ee);
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-hub .tsc-hub-tab:focus-visible,
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more button:focus-visible{
   outline:2px solid var(--green,#087f5e);
   outline-offset:1px;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more:not([hidden]){
   display:flex!important;
   position:fixed!important;
   inset:0!important;
   z-index:330!important;
   flex-direction:column;
   justify-content:flex-end;
   pointer-events:none;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more:not([hidden]) .tsc-more-scrim{
   position:absolute;
   inset:0;
   width:100%;height:100%;
   background:#091c16a9;
   border:0;
   pointer-events:auto;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-sheet{
   position:relative;
   pointer-events:auto;
   background:var(--paper,#fff);
   color:var(--ink,#16372a);
   border:1px solid var(--line,#dbe9e2);
   border-radius:20px 20px 0 0;
   box-shadow:0 -14px 50px #0004;
   max-height:85vh;
   max-height:calc(88dvh - env(safe-area-inset-bottom,0px));
   min-width:0;
   display:flex;
   flex-direction:column;
   overflow:hidden;
   padding:15px 14px calc(14px + env(safe-area-inset-bottom,0px));
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-handle{
   width:38px;height:4px;border-radius:5px;
   background:var(--line,#c7d6c9);
   align-self:center;margin:-5px 0 13px;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-heading{
   display:flex;justify-content:space-between;align-items:center;
   gap:9px;margin-bottom:13px;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more h2{
   font-size:18px;line-height:1.3;margin:0;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-close{
   border:1px solid var(--line,#cbd9cc);
   border-radius:50%;width:43px;height:43px;
   background:transparent;color:inherit;
   font-size:23px;
   flex:0 0 auto;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-items{
   overflow-y:auto;
   overscroll-behavior:contain;
   -webkit-overflow-scrolling:touch;
   display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
   gap:9px;
   padding:2px 0 6px;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-item{
   min-height:78px;
   display:flex;flex-direction:column;align-items:flex-start;
   justify-content:center;
   text-align:left;
   gap:5px;
   padding:12px;
   border:1px solid var(--line,#d9e9dc);
   border-radius:13px;
   background:color-mix(in srgb,var(--paper,#fff) 92%,var(--green,#087f5e) 8%);
   color:var(--ink,#16372a);
   font-size:13px;line-height:1.4;
   font-weight:700;
   overflow-wrap:anywhere;
   touch-action:manipulation;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-item .tsc-more-symbol{
   font-size:21px;line-height:1;
   color:var(--green,#087f5e);
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-item[aria-current="page"]{
   border-color:var(--green,#087f5e);
   background:var(--purple-l,#e7f6ee);
 }
 html[data-tsc-mobile-role="blogger"].tsc-mobile-keyboard #tsc-blogger-mobile-hub{
   visibility:hidden!important;
   pointer-events:none!important;
 }
 html[data-tsc-mobile-role="blogger"].tsc-mobile-keyboard .main{
   padding-bottom:18px!important;
 }
 html[data-tsc-mobile-role="blogger"].tsc-mobile-keyboard #tsc-inbox-popup{
   bottom:12px!important;
 }
}
@media(max-width:370px){
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-hub .tsc-hub-tab{
   font-size:10px;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-sheet{
   padding-left:10px;padding-right:10px;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-items{
   gap:7px;
 }
 html[data-tsc-mobile-role="blogger"] #tsc-blogger-mobile-more .tsc-more-item{
   padding:9px;font-size:12px;min-height:75px;
 }
}
@media(min-width:731px){
 #tsc-blogger-mobile-hub,#tsc-blogger-mobile-more{display:none!important}
}

/* Hide mobile controls when logged out or otherwise inactive. */
#tsc-blogger-mobile-hub[hidden],#tsc-blogger-mobile-more[hidden],body:not(.tsc-logged-in) #tsc-blogger-mobile-hub{display:none!important}
