/* XYNOXIA — dedicated mobile software experience. Phone-only overrides; desktop is untouched. */
@media(max-width:620px){
:root{--xyn-mobile-gutter:14px;--xyn-mobile-bottom-space:18px}
html,body{width:100%;height:100%;overflow:hidden}body{overscroll-behavior:none;-webkit-text-size-adjust:100%}
.shell{height:100dvh;min-height:100dvh;grid-template-rows:54px minmax(0,1fr)!important;overflow:hidden}
.top{height:54px;min-width:0;padding:0 14px!important;gap:10px}.brand-logo{width:116px!important;max-width:42vw}.top-caption{font-size:8px;letter-spacing:.13em}
.layout{height:100%;min-height:0;display:block!important;overflow:hidden}.side{display:none!important}
.main{width:100%;height:100%;min-width:0;min-height:0;max-height:100%;padding:0!important;gap:0!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;overflow:hidden!important}
.main>.heading{min-width:0;min-height:62px;padding:12px var(--xyn-mobile-gutter) 8px;align-items:center}
.main>.heading h1{font-size:clamp(23px,6vw,29px);line-height:1.05}.main>.heading p{font-size:10px;line-height:1.4}
.main>.content{display:block!important;position:relative;width:100%;height:100%;min-width:0;min-height:0;padding:0 var(--xyn-mobile-gutter) 18px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.main>.content::-webkit-scrollbar{display:none}
.content>.screen,.content>[class$="-screen"]{width:100%;min-width:0;min-height:100%;height:auto!important;max-height:none!important;overflow:visible!important;display:flex;flex-direction:column;gap:14px;padding:2px 0 14px}
.screen-head{align-items:flex-start!important;flex-wrap:wrap;gap:9px!important;min-width:0}.screen-title{font-size:24px!important;line-height:1.08}.screen-sub{font-size:10px!important;line-height:1.5}.screen-actions{width:100%;flex-wrap:wrap;gap:7px}
.screen button,.content button,.content a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.content button{min-height:38px}
.content input,.content select,.content textarea{max-width:100%;min-width:0;font-size:16px!important}.content :focus-visible{outline:2px solid #79bfe0;outline-offset:2px}
.content:not(.workspace-active) .welcome{border-radius:16px;padding:16px;gap:12px}.content:not(.workspace-active) .welcome h2{font-size:22px}.content:not(.workspace-active) .welcome p{font-size:11px;line-height:1.55}
.content:not(.workspace-active) .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel,.area{min-width:0;border-radius:13px}.area{min-height:112px;padding:12px}.area strong{font-size:10px}.area small{font-size:9px;line-height:1.45}
/* Read bookstore + reader */
.books-screen{display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;min-height:100%;overflow:visible!important;gap:12px!important;padding:2px 0 16px!important}
.books-screen .book-top{align-items:flex-start!important;flex-direction:column!important;max-height:none!important;overflow:visible!important;gap:8px!important}.books-screen .book-top .screen-title{font-size:25px!important}.books-screen .book-actions{align-self:flex-start!important}
.books-screen .book-library-intro{min-height:42px;flex-wrap:wrap;gap:6px 9px;padding:9px 11px}
.books-screen .book-searchline{display:flex!important;flex-direction:column!important;align-items:stretch!important;overflow:visible!important;gap:9px!important}
.books-screen .book-searchbox{width:100%!important;height:44px!important}.books-screen .book-filters{max-height:none!important;overflow-x:auto!important;flex-wrap:nowrap!important;justify-content:flex-start!important;padding:2px 0 6px}
.books-screen .book-filter{flex:0 0 auto!important;min-height:36px!important}
.books-screen .book-grid{height:auto!important;max-height:none!important;overflow:visible!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:auto!important;gap:12px!important;padding:2px 1px 12px!important}
.books-screen .book-card{min-height:0!important;grid-template-rows:auto auto auto!important}.books-screen .book-cover{height:clamp(150px,24vh,205px)!important;min-height:145px!important}
.books-screen .book-card-actions button{min-height:38px!important}.books-screen .book-card:nth-child(n+5){display:grid!important}
.books-screen .read-reader:not([hidden]){position:relative;inset:auto;display:grid!important;width:100%;height:auto!important;min-height:calc(100dvh - 145px)!important;flex:1 0 auto!important;grid-template-rows:auto 4px minmax(55vh,1fr) auto!important;overflow:visible!important}
.books-screen .reader-toolbar{gap:7px;align-items:center;flex-wrap:wrap}.books-screen .reader-toolbar>div{min-width:0!important;flex:1 1 100%}.books-screen .reader-controls{justify-content:flex-start!important;flex-wrap:wrap}
.books-screen .reader-frame-wrap{min-height:55vh!important;height:55vh!important;overflow:auto!important}.books-screen .reader-frame-wrap iframe{min-height:100%}
/* Activities and interactive workspaces */
.activity-screen{height:auto!important;min-height:100%;overflow:visible!important}.activity-studio{width:100%;max-width:none;gap:13px!important}.activity-grid{grid-template-columns:1fr!important;gap:9px!important}
.activity-card{min-height:76px;padding:12px!important;gap:11px!important;border-radius:13px!important}.activity-workspace{padding:13px!important;border-radius:14px!important}
.activity-workspace-head{align-items:flex-start;flex-wrap:wrap;gap:8px}.journal-layout{grid-template-columns:1fr!important}.journal-entry-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.journal-editor [data-jbody]{min-height:210px!important}.drawing-toolbar,.drawing-bottom{flex-wrap:wrap;gap:7px!important}
/* Watch mobile streaming theater */
.main:has(.watch-screen){display:block!important;overflow:hidden!important}.main:has(.watch-screen)>.content{height:100%!important;padding:0 0 18px!important;overflow-y:auto!important;background:#10151a!important}
.watch-screen{display:flex!important;flex-direction:column;gap:14px!important;width:100%;height:auto!important;min-height:100%!important;max-height:none!important;overflow:visible!important;padding:12px!important}
.stream-shell{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column;gap:14px!important}
.stream-toolbar{min-height:42px;flex-wrap:wrap;gap:8px!important;padding-bottom:8px}.stream-wordmark{font-size:10px!important}
.stream-tabs{order:3;width:100%;overflow-x:auto}.stream-tab{flex:0 0 auto;min-height:36px}.stream-search-wrap{width:100%;max-width:none;margin:0}
.stream-hero{display:flex!important;flex-direction:column;gap:12px!important}.stream-player{width:100%;aspect-ratio:16/9;min-height:190px!important}
.stream-feature-copy{left:14px!important;bottom:14px!important;max-width:88%!important}.stream-feature-copy strong{font-size:25px!important}
.stream-rail{border-left:0!important;border-top:1px solid #ffffff18;padding:12px 0 0!important}.stream-channel-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.stream-shelf{min-height:0}.stream-cards{overflow-x:auto!important}.stream-card{flex-basis:145px!important;min-height:130px}
/* Music, Learn, Resource Center, and Statistics */
.music-screen,.resources-screen,.learn-screen,.statistics-screen{display:flex!important;flex-direction:column!important;gap:13px!important;height:auto!important;min-height:100%;overflow:visible!important}
.music-screen>*,.resources-screen>*,.learn-screen>*,.statistics-screen>*{min-width:0;max-width:100%}
.music-player,.music-player-panel,.music-feature{width:100%;max-width:100%}.music-player-controls{flex-wrap:wrap;justify-content:center;gap:8px!important}
.music-player-controls button{min-width:42px;min-height:42px}.resource-layout,.resources-layout{display:flex!important;flex-direction:column!important;gap:10px!important}
.resource-list,.resource-detail{width:100%;min-width:0}.resource-list{max-height:260px;overflow:auto}.resource{min-height:48px}
}


/* XYNOXIA mobile home refinement — one navigation location, no duplicate shortcut dock. */
@media(max-width:620px){
  .main{grid-template-rows:auto minmax(0,1fr)!important}
  .main>.content{min-height:0!important}
  .journey-screen{height:auto!important;min-height:100%!important;overflow:visible!important}
  .mobile-wellness-home{
    height:auto!important;min-height:100%!important;
    grid-template-rows:auto minmax(132px,.55fr) auto auto!important;
    gap:14px!important;padding:15px 16px 22px!important;
    overflow:visible!important;
  }
  .mobile-home-intro{padding:4px 0 2px!important}
  .mobile-home-kicker{font-size:8px!important;letter-spacing:.22em!important}
  .mobile-home-intro h1{font-size:27px!important;line-height:1.08!important;margin:7px 0 5px!important}
  .mobile-home-intro p{font-size:12px!important;line-height:1.45!important}
  .mobile-home-scenery{min-height:132px!important;border-radius:20px!important;padding:15px 17px!important}
  .mobile-home-scenery span{font-size:10px!important;letter-spacing:.07em!important}
  .mobile-app-grid,.mobile-bottom-nav{display:none!important}
  .mobile-daily-card{
    min-height:76px!important;grid-template-columns:44px minmax(0,1fr) auto!important;
    padding:13px 14px!important;border-radius:17px!important;
  }
  .mobile-daily-card b{font-size:12px!important}
  .mobile-daily-card small{font-size:9px!important;line-height:1.45!important}
  .mobile-daily-art{width:42px!important;height:42px!important}
  .mobile-ecosystem-note{padding:2px 5px 8px!important;font-size:7px!important;line-height:1.7!important}
  .mobile-ecosystem-note span{font-size:9px!important}
  .xynoxia-mobile-app-nav{position:sticky!important;top:0!important}
}

/* XYNOXIA signature mobile home — immersive editorial composition */
@media(max-width:620px){
  .content .journey-screen .mobile-wellness-home .mobile-app-grid,
  .content .journey-screen .mobile-wellness-home .mobile-bottom-nav{display:none!important}
  .content .journey-screen .mobile-wellness-home{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto minmax(210px,34vh) auto auto!important;
    align-content:start!important;gap:20px!important;
    min-height:100%!important;height:auto!important;
    padding:26px 18px 34px!important;overflow:visible!important;
    background:
      radial-gradient(ellipse at 100% 2%,rgba(181,221,240,.24),transparent 36%),
      linear-gradient(180deg,#fbfdff 0%,#f5f9fc 100%)!important;
  }
  .content .journey-screen .mobile-home-intro{
    position:relative;text-align:left!important;padding:10px 3px 3px!important;
  }
  .content .journey-screen .mobile-home-kicker{
    display:inline-flex;align-items:center;gap:9px;font-size:8px!important;
    letter-spacing:.24em!important;color:#438cad!important;font-weight:850!important;
  }
  .content .journey-screen .mobile-home-kicker:before{
    content:"";display:inline-block;width:22px;height:1px;background:#65a8c7;
  }
  .content .journey-screen .mobile-home-intro h1{
    max-width:310px;font-size:clamp(37px,10vw,48px)!important;
    line-height:.99!important;letter-spacing:-.075em!important;
    font-weight:760!important;color:#143b55!important;
    margin:13px 0 10px!important;
  }
  .content .journey-screen .mobile-home-intro p{
    max-width:270px;font-size:13px!important;line-height:1.6!important;
    color:#668397!important;
  }
  .content .journey-screen .mobile-home-ecosystem{
    display:inline-block!important;margin-top:15px!important;
    padding:7px 10px;border:1px solid #d9eaf2;border-radius:99px;
    background:rgba(255,255,255,.72);font-size:8px!important;
    letter-spacing:.17em!important;color:#397f9f!important;
  }
  .content .journey-screen .mobile-home-scenery{
    position:relative;isolation:isolate;min-height:210px!important;
    overflow:hidden;border-radius:26px!important;
    padding:18px 19px!important;align-items:flex-end!important;
    background:
      radial-gradient(circle at 73% 25%,rgba(255,255,255,.96) 0 7%,rgba(255,255,255,.25) 7.5%,transparent 19%),
      radial-gradient(ellipse at 70% 26%,#e9f7fd 0%,#c8e7f5 38%,transparent 64%),
      linear-gradient(145deg,#eaf7fc 0%,#c7e5f2 48%,#82bbd8 100%)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.85),0 20px 45px rgba(34,100,135,.13)!important;
  }
  .content .journey-screen .mobile-home-scenery:before{
    inset:auto -8% 0;height:77%;z-index:-1;opacity:.98;
    clip-path:polygon(0 100%,0 62%,14% 39%,28% 58%,47% 5%,62% 49%,76% 25%,100% 66%,100% 100%);
    background:linear-gradient(155deg,#a9d5e8 0%,#5599bd 72%,#347da5 100%)!important;
  }
  .content .journey-screen .mobile-home-scenery:after{
    inset:auto -8% 0;height:58%;z-index:-1;opacity:.96;
    clip-path:polygon(0 100%,0 57%,20% 18%,37% 64%,56% 4%,72% 59%,89% 27%,100% 56%,100% 100%);
    background:linear-gradient(145deg,#d8eff8 0%,#8dc4de 62%,#5c9fbe 100%)!important;
  }
  .content .journey-screen .mobile-home-scenery span{
    position:relative;z-index:1;max-width:245px;font-size:11px!important;
    line-height:1.4;letter-spacing:.08em!important;font-weight:800!important;
    color:#fff!important;text-shadow:0 2px 12px rgba(20,61,85,.45)!important;
  }
  .content .journey-screen .mobile-daily-card{
    position:relative;display:grid!important;min-height:92px!important;
    grid-template-columns:48px minmax(0,1fr) auto!important;
    gap:13px!important;padding:17px 15px!important;
    border:1px solid #d8e8f0!important;border-radius:19px!important;
    background:linear-gradient(115deg,#fff 0%,#f0f8fc 100%)!important;
    box-shadow:0 9px 24px rgba(34,86,113,.055)!important;
    text-align:left!important;
  }
  .content .journey-screen .mobile-daily-art{
    width:46px!important;height:46px!important;border-radius:15px!important;
    background:linear-gradient(145deg,#e2f4fb,#c5e6f3)!important;
    color:#247fa8!important;font-size:22px!important;
  }
  .content .journey-screen .mobile-daily-card b{
    color:#204a64!important;font-size:13px!important;letter-spacing:-.01em;
  }
  .content .journey-screen .mobile-daily-card small{
    max-width:230px;font-size:10px!important;line-height:1.5!important;color:#78909f!important;
  }
  .content .journey-screen .mobile-daily-card em{
    width:28px;height:28px;display:grid;place-items:center;
    border-radius:50%;background:#e1f1f8;color:#247fa8!important;font-size:21px!important;
  }
  .content .journey-screen .mobile-ecosystem-note{
    padding:0 3px 6px!important;text-align:left!important;
    color:#4c8ca9!important;font-size:7px!important;
    letter-spacing:.17em!important;line-height:1.7!important;
  }
  .content .journey-screen .mobile-ecosystem-note span{
    margin-top:4px;color:#8aa0ad!important;font-size:9px!important;letter-spacing:.01em!important;
  }
  .xynoxia-mobile-menu-trigger{
    min-height:42px!important;padding:0 15px!important;
    border:1px solid #d5e5ed!important;border-radius:999px!important;
    background:linear-gradient(135deg,#fff,#f0f8fc)!important;
    box-shadow:0 4px 12px rgba(26,78,105,.05)!important;
    color:#1c5878!important;font-size:10px!important;letter-spacing:.1em!important;
  }
  .xynoxia-mobile-menu-trigger i{font-size:15px!important}
}
@media(max-width:380px){
  .content .journey-screen .mobile-wellness-home{padding:21px 14px 28px!important;gap:16px!important}
  .content .journey-screen .mobile-home-scenery{min-height:185px!important}
}
