/* Fans254 V1279 — three UI-only features for Spaces.
 * 1) Mobile-only Spaces chrome; 2) mobile create flow / fixed submit;
 * 3) responsive studio + listener cards and existing controls.
 * Do not modify Space transport, audio, polling, or button event handlers.
 */
.f1279-space-mobile-header{display:none}

@media (max-width:767px){
  /* Feature 1 — the usual website chrome is replaced only while a Space screen exists.
     :has() follows AJAX/fragment navigation; no persistent global class can leak into Home. */
  .social-shell:has(.fsp-page,.fsp-room-page) > .social-topbar,
  .social-shell:has(.fsp-page,.fsp-room-page) .social-bottom-nav,
  .social-shell:has(.fsp-page,.fsp-room-page) .f855-create-menu,
  .social-shell:has(.fsp-page,.fsp-room-page) .f855-create-backdrop,
  .social-shell:has(.fsp-page,.fsp-room-page) .social-sidebar,
  .social-shell:has(.fsp-page,.fsp-room-page) .social-rail {display:none!important}
  .social-shell:has(.fsp-page,.fsp-room-page) .social-layout{
    display:block!important;grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;max-width:none!important;min-width:0!important;
    margin:0!important;padding:0!important;gap:0!important
  }
  .social-shell:has(.fsp-page,.fsp-room-page) .social-column{
    display:block!important;width:100%!important;max-width:100%!important;
    margin:0!important;padding:0!important;min-width:0!important;
    overflow:visible!important
  }
  .social-shell:has(.fsp-page,.fsp-room-page) :is(.fsp-page,.fsp-room-page){
    width:100%;max-width:100%;min-width:0;
    padding:0 12px calc(144px + env(safe-area-inset-bottom))!important;
    overflow:visible
  }
  .f1279-space-mobile-header{
    display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:35;
    min-height:58px;margin:0 -12px 14px;padding:8px 12px;
    background:var(--social-surface,#fff);color:var(--social-text,#172234);
    border-bottom:1px solid var(--social-border,#e6eaf0);
    box-shadow:0 2px 9px #0d17300a;
    box-sizing:border-box
  }
  .f1279-space-mobile-back{
    display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;
    border:1px solid var(--social-border,#dfe4ed);border-radius:13px;
    color:inherit;background:var(--social-surface,#fff);text-decoration:none
  }
  .f1279-space-mobile-back svg{width:19px!important;height:19px!important}
  .f1279-space-mobile-identity{display:flex;align-items:center;gap:9px;flex:1;min-width:0}
  .f1279-space-mobile-mark{
    display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;
    border-radius:11px;background:#f3e6ff;color:#a127d6
  }
  .f1279-space-mobile-mark svg{width:20px!important;height:20px!important}
  .f1279-space-mobile-title{display:grid;gap:1px;min-width:0;line-height:1.12}
  .f1279-space-mobile-title strong{
    font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    letter-spacing:-.025em
  }
  .f1279-space-mobile-title small{font-size:10px;color:var(--social-muted,#69758b)}
  .f1279-space-mobile-badge{
    display:inline-flex;align-items:center;gap:5px;flex:none;padding:7px 9px;
    background:#f3e6ff;border-radius:99px;font-size:11px;font-weight:750;color:#9332cc
  }
  .f1279-space-mobile-badge svg{width:15px!important;height:15px!important}
  html[data-theme=dark] .f1279-space-mobile-mark,
  html[data-theme=dark] .f1279-space-mobile-badge{background:#3e2a50;color:#e0a9ff}
  .f1279-space-mobile-back:focus-visible{outline:3px solid #b861f4;outline-offset:2px}
  .fsp-create-page .fsp-create-header .fsp-back,
  .fsp-room-page .fsr-page-heading .fsr-back,
  .fsp-room-page .fsx-header .fsx-back{display:none!important}

  /* Feature 2 — create flow uses genuine fields/radios; the same submit button stays in its form. */
  .fsp-index .fsp-hero{min-height:168px;padding:18px 15px;border-radius:17px}
  .fsp-index .fsp-hero h1{font-size:clamp(25px,7vw,32px)}
  .fsp-index .fsp-hero p{font-size:12px;line-height:1.45}
  .fsp-index .fsp-toolbar{margin:14px 0}
  .fsp-index .fsp-tabs{gap:5px}
  .fsp-index .fsp-cards{gap:10px}
  .fsp-create-page .fsp-create-header{gap:9px;padding:1px 2px 12px;align-items:center}
  .fsp-create-page .fsp-create-header h1{font-size:25px!important;line-height:1.15;letter-spacing:-.04em}
  .fsp-create-page .fsp-create-header p{font-size:12px;line-height:1.4}
  .fsp-create-page .fsp-create-head-icon{width:43px;height:43px;border-radius:13px}
  .fsp-create-page .fsp-create-head-icon svg{width:24px!important;height:24px!important}
  .fsp-create-page .fsp-panel{border-radius:17px;padding:15px 13px;margin-bottom:12px}
  .fsp-create-page .fsp-panel-head{gap:10px}
  .fsp-create-page .fsp-panel-head h2{font-size:16px!important}
  .fsp-create-page .fsp-panel-head p{font-size:11px!important;line-height:1.4}
  .fsp-create-page .fsp-field{gap:7px;margin-top:12px}
  .fsp-create-page .fsp-field :is(input:not([type=checkbox]),select){min-height:45px;font-size:13px;border-radius:12px}
  .fsp-create-page .fsp-field textarea{font-size:13px;border-radius:12px;min-height:87px}
  .fsp-create-page .fsp-audience-grid{gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}
  .fsp-create-page .fsp-audience-body{min-height:102px;padding:10px 5px;border-radius:13px}
  .fsp-create-page .fsp-audience-body strong{font-size:12px}
  .fsp-create-page .fsp-audience-body small{font-size:10px;line-height:1.24}
  .fsp-create-page .fsp-form-footer{margin:3px 0 10px;gap:8px}
  .fsp-create-page .fsp-form-footer>p:last-child{max-width:36rem;font-size:11px}
  .fsp-create-page .fsp-form-footer .fsp-submit,
  .fsp-index .fsp-hero .fsp-create-btn{
    position:fixed!important;left:12px!important;right:12px!important;
    bottom:calc(12px + env(safe-area-inset-bottom))!important;
    display:inline-flex!important;width:calc(100% - 24px)!important;max-width:none!important;
    height:52px!important;min-height:52px!important;margin:0!important;
    justify-content:center;border-radius:15px!important;font-size:14px!important;
    z-index:30;box-shadow:0 9px 25px #943fd84a
  }
  .fsp-create-page .fsp-form-footer .fsp-submit[hidden],
  .fsp-index .fsp-hero .fsp-create-btn[hidden]{display:none!important}
  .fsp-create-page .fsp-form-footer .fsp-submit:disabled{opacity:.65}
  .fsp-create-page .fsp-form-footer .form-notice{font-size:12px;overflow-wrap:anywhere}
  .fsp-create-page .fsp-form-footer{padding-bottom:12px}
  .fsp-create-page .fsp-preview-panel{display:none!important}

  /* Feature 3 — existing live/host controls, not recreated as mock interactions. */
  .fsp-room-page .fsr-page-heading,.fsp-room-page .fsx-header{
    gap:9px;min-height:0;margin:0 0 12px;padding:0 2px
  }
  .fsp-room-page .fsr-page-heading h1,
  .fsp-room-page .fsx-header h1{font-size:23px!important;line-height:1.2;letter-spacing:-.035em}
  .fsp-room-page .fsr-page-heading .fsr-overline,
  .fsp-room-page .fsx-header .fsr-overline{font-size:10px}
  .fsp-room-page .fsr-studio-label{font-size:10px;padding:7px 9px}
  .fsp-room-page :is(.fsr-room-layout,.fsr-studio-grid){
    display:grid;grid-template-columns:minmax(0,1fr)!important;gap:11px!important
  }
  .fsp-room-page :is(.fsr-room-main,.fsr-studio-main,.fsr-room-side,.fsr-studio-side){min-width:0;max-width:100%}
  .fsp-room-page :is(.fsr-stage,.fsr-studio-hero){
    padding:17px 14px!important;border-radius:19px!important;
    box-shadow:0 10px 26px #35234b25
  }
  .fsp-room-page .fsr-stage{min-height:265px}
  .fsp-room-page .fsr-stage-title h2{font-size:clamp(21px,6.2vw,27px)}
  .fsp-room-page .fsr-studio-hero h2{font-size:clamp(22px,6vw,28px);line-height:1.18}
  .fsp-room-page .fsr-studio-hero p{font-size:12px;line-height:1.45}
  .fsp-room-page .fsr-studio-stats{gap:7px;margin:12px 0}
  .fsp-room-page .fsr-studio-stats>div{min-width:0;padding:9px 4px}
  .fsp-room-page .fsr-studio-stats strong{font-size:19px}
  .fsp-room-page .fsr-studio-stats small{font-size:10px;line-height:1.25}
  .fsp-room-page .fsr-broadcast-actions{display:flex;flex-wrap:nowrap;gap:8px;margin-top:14px}
  .fsp-room-page .fsr-broadcast-actions>button{
    flex:1 1 0;min-width:0!important;min-height:47px;font-size:12px!important;
    border-radius:13px!important;padding:8px 6px!important;white-space:normal;line-height:1.2
  }
  .fsp-room-page .fsr-people-panel,
  .fsp-room-page .fsr-listeners-panel,
  .fsp-room-page .fsr-side-card{border-radius:16px;padding:14px;margin-bottom:0}
  .fsp-room-page .fsr-room-side{grid-row:auto!important}
  .fsp-room-page .fsr-people-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 6px}
  .fsp-room-page .fsr-section-title{gap:8px;margin-bottom:11px}
  .fsp-room-page .fsr-section-title h3{font-size:15px}
  .fsp-room-page .fsr-section-title p{font-size:11px}
  .fsp-room-page .fsr-person-placeholder{min-height:96px;padding:10px 12px}
  .fsp-room-page .f6-space-nav{
    display:flex;align-items:stretch;gap:3px;margin:0 0 12px!important;
    padding:4px;border-radius:14px;background:var(--fsr-surface,var(--social-surface,#fff));
    border:1px solid var(--fsr-border,#e3e5ed);box-shadow:none!important;overflow-x:auto
  }
  .fsp-room-page .f6-space-nav>button{
    flex:1 0 0;min-width:0;min-height:39px;padding:8px 4px;
    font-size:11px;font-weight:750;border-radius:11px
  }
  .fsp-room-page .f6-space-nav>button.is-active{
    background:#176df0!important;color:#fff!important;box-shadow:none!important
  }
  .fsp-room-page [data-f6-space-section]{scroll-margin-top:74px}
  .fsp-room-page .fsr-room-actions{
    z-index:30;bottom:calc(12px + env(safe-area-inset-bottom))!important;
    left:50%;width:calc(100% - 24px)!important;max-width:580px;
    padding:7px;gap:5px;justify-content:flex-start;
    flex-wrap:wrap;overflow:visible;border-radius:15px;
    touch-action:manipulation
  }
  .fsp-room-page .fsr-room-actions>.fsr-action{flex:1 1 65px;min-width:60px;min-height:42px;padding:7px 8px}
  .fsp-room-page .fsr-room-actions>.fsr-action span{font-size:10px;white-space:nowrap}
  .fsp-room-page .fsr-room-notice{bottom:calc(95px + env(safe-area-inset-bottom));max-width:calc(100% - 24px)}
  .fsp-room-page .fsr-side-card :is(button,a){touch-action:manipulation}
  .fsp-room-page .fsx-panel{min-width:0}
  .fsp-room-page .fsx-tools{min-width:0}
}
@media (min-width:768px) and (max-width:1199px){
  /* Tablet keeps the site header and sidebar, never receives phone-fixed actions. */
  .social-shell:has(.fsp-page,.fsp-room-page) .social-rail{display:none!important}
  .social-shell:has(.fsp-page,.fsp-room-page) .social-layout{
    grid-template-columns:190px minmax(0,1fr)!important;gap:10px!important;max-width:100%!important
  }
  .social-shell:has(.fsp-page,.fsp-room-page) .social-column{max-width:none!important;min-width:0}
  .social-shell:has(.fsp-page,.fsp-room-page) .fsp-page,
  .social-shell:has(.fsp-page,.fsp-room-page) .fsp-room-page{max-width:100%;min-width:0;padding:16px 16px 36px}
  .fsp-create-page .fsp-create-header h1{font-size:30px}
  .fsp-create-page .fsp-panel{border-radius:17px}
  .fsp-room-page :is(.fsr-stage,.fsr-studio-hero){border-radius:20px}
  .fsp-room-page .f6-space-nav>button{min-width:0;flex:1}
  .fsp-room-page .fsr-studio-grid,.fsp-room-page .fsr-room-layout{gap:13px}
  .fsp-room-page .fsr-room-actions{bottom:15px}
}
@media (min-width:980px) and (max-width:1199px){
  /* The tablet has room for a split creation form; the phone does not. */
  .fsp-create-page .fsp-form{
    display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
    gap:12px;align-items:start
  }
  .fsp-create-page .fsp-form > .fsp-panel{margin-bottom:0}
  .fsp-create-page .fsp-form > .fsp-panel:nth-of-type(1){grid-column:1;grid-row:1/span 2}
  .fsp-create-page .fsp-form > .fsp-panel:nth-of-type(2){grid-column:2;grid-row:1}
  .fsp-create-page .fsp-form > .fsp-panel:nth-of-type(3){grid-column:2;grid-row:2}
  .fsp-create-page .fsp-form > .fsp-form-footer{grid-column:1/-1}
  .fsp-room-page .fsr-studio-grid,.fsp-room-page .fsr-room-layout{
    grid-template-columns:minmax(0,1fr) minmax(235px,.58fr)!important
  }
}
@media (max-width:359px){
  .f1279-space-mobile-badge span{display:none}
  .f1279-space-mobile-badge{padding:7px}
  .fsp-create-page .fsp-audience-body small{font-size:9px}
  .fsp-room-page .fsr-broadcast-actions>button{font-size:11px!important}
}
@media (prefers-reduced-motion:reduce){
  .f1279-space-mobile-header *{transition:none!important;animation:none!important}
}
