/* Keep the original horizontal event list. */
.event-share-dialog{max-width:480px}.event-share-dialog .sh-head .sp{min-width:0}.event-share-dialog .sh-head h2{font-size:20px;line-height:1.6}.event-share-dialog .sh-head p{font-size:12px;line-height:1.8;color:var(--mute)}.event-share-body{justify-items:stretch;text-align:center;gap:14px}.event-share-body>strong{font-size:16px;line-height:1.8;overflow-wrap:anywhere}.event-qr-image{width:min(100%,260px);aspect-ratio:1;margin-inline:auto;background:#fff;border:1px solid #e3e8ef;border-radius:16px;overflow:hidden}.event-qr-image svg{display:block;width:100%;height:100%}.event-share-body>label{text-align:start;font-size:13px;color:var(--mute)}.event-share-body>input{width:100%;min-width:0;min-height:46px;padding:10px 12px;background:#f6f8fb;color:#0e2a4e;border:1px solid #dce5ec;border-radius:12px;font:13px/1.5 var(--latin)}.event-share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.event-share-actions>.btn{min-height:46px;padding:10px;font-size:13px}
body[data-app=events] .ev .thumb img{object-fit:contain;background:#0e2a4e}.ev h3{overflow-wrap:anywhere}
.upcoming-empty{border:1px solid #e2e9ef!important;background:#fff;padding:40px!important;gap:14px!important}.empty-calendar{display:grid;place-items:center;width:60px;height:60px;border-radius:20px;background:#e7f5f3;color:#008b83;margin-bottom:3px}.empty-calendar .i{width:28px;height:28px}.upcoming-empty>h3{font-size:23px!important;line-height:1.6}.upcoming-empty>p{font-size:15px;line-height:1.9;color:#667d93}
.follow-accounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%;max-width:900px;margin-top:18px}.follow-account{display:flex;align-items:center;gap:12px;min-width:0;padding:18px 14px;border:1px solid #e1e8ef;border-radius:17px;background:#fafcfe;color:#0e2a4e;text-decoration:none;text-align:start}.follow-account:hover{background:#f0f6f7;border-color:#b5d7d4}.follow-account>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}.follow-account b{font-size:15px}.follow-account small{font-size:11px;color:#718499;line-height:1.6}.follow-account>.i{width:15px;height:15px;flex:none}.follow-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;background:#e8eff8;color:#2267a1}.follow-icon .i{width:21px;height:21px}.follow-whatsapp .follow-icon{background:#e2f5ea;color:#12844c}.follow-youtube .follow-icon{background:#fff0ee;color:#c24135}
.event-app-nav{display:none}.app-settings-link{border:0;background:transparent;cursor:pointer;text-align:start}.login-app-access{display:none}
body[data-app=portal]:has(.login) .login-app-access{display:block;position:fixed;inset-inline-end:16px;bottom:16px;z-index:20;min-height:44px;padding:10px 18px;border:1px solid #cfdce7;border-radius:99px;background:#fff;color:#0e2a4e;font:600 13px var(--body);box-shadow:0 3px 15px #0e2a4e0d}
body[data-app=portal] .evcard>img{object-fit:contain;object-position:center;background:#e8eef4;aspect-ratio:16/10;max-height:280px;padding:10px}.event-editor-preview{display:flex;align-items:center;gap:16px;background:#f3f7fa;border:1px solid #e1e9ef;border-radius:16px;padding:14px}.event-editor-preview img{width:84px;height:105px;object-fit:contain;flex:none;border-radius:8px;background:#0e2a4e}.event-editor-preview div{display:grid;gap:7px;min-width:0}.event-editor-preview b{font-size:16px;line-height:1.7;overflow-wrap:anywhere}.event-editor-preview small{font-size:12px;line-height:1.7;color:#698096}
@media(max-width:980px){
 html{scroll-padding-top:86px;scrollbar-gutter:auto}body{overflow-wrap:break-word}
 body[data-app=events]{--header-progress:0!important;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 body[data-app=events] .top{position:sticky;top:0!important;background:#fff!important;backdrop-filter:none!important;border-bottom:1px solid #e6ecf2;border-radius:0!important;transform:none!important;box-shadow:none!important;padding-top:env(safe-area-inset-top,0px)}
 body[data-app=events] .top>.wrap{width:calc(100% - 32px);min-height:68px;gap:10px;flex-wrap:nowrap}
 body[data-app=events] .top .brand{min-width:0;flex:1}body[data-app=events] .top .brand svg{height:36px!important;width:auto!important;max-width:174px}
 body[data-app=events] .top #nav,body[data-app=events] #hsoc{display:none!important}body[data-app=events] .top .lang{height:42px;min-width:64px;font-size:12px;padding-inline:10px}
 body[data-app=events] .hero{min-height:490px;overflow:hidden;isolation:isolate}body[data-app=events] .hero>.wrap{padding-block:56px 58px!important;min-height:490px;display:flex;align-items:center}
 body[data-app=events] .hero .copy{max-width:620px;width:100%;gap:20px}body[data-app=events] .hero h1{font-size:clamp(34px,6.5vw,52px);line-height:1.5;text-wrap:balance}
 body[data-app=events] .hero .lead{font-size:16px;line-height:1.95;max-width:460px;color:#e2eaf4}body[data-app=events] .hero .cta{display:flex;flex-wrap:wrap;gap:12px}
 body[data-app=events] .hero .cta>.btn{min-height:50px;padding:12px 20px;font-size:14px}.hstats{margin-top:8px!important}.hstats>div{min-width:68px}.hstats b{font-size:27px!important}
 .event-app-nav{position:fixed;inset-inline:0;bottom:0;z-index:65;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px max(10px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));background:#ffffffed;backdrop-filter:blur(18px);border-top:1px solid #e3eaf1;box-shadow:0 -4px 24px #0e2a4e05}
 .event-app-nav>a,.event-app-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:49px;padding:4px 2px;border:0;border-radius:12px;color:#718399;background:transparent;text-decoration:none;font:500 11px var(--body);cursor:pointer}.event-app-nav .i{width:23px;height:23px}.event-app-nav [aria-current=page]{background:#e8f5f3;color:#007d78}
 .follow-accounts{grid-template-columns:repeat(2,minmax(0,1fr));max-width:560px}.upcoming-empty{padding:28px 22px!important}
 body[data-app=events] .evhead{padding:18px;gap:24px}body[data-app=events] .evhead .poster{max-width:340px;max-height:430px;border-radius:18px;box-shadow:none;border:1px solid #e0e7ed}body[data-app=events] .evhead .poster img{max-height:430px;object-fit:contain}
 body[data-app=events] .evinfo h1{font-size:27px;line-height:1.65;overflow-wrap:anywhere}body[data-app=events] .evinfo .box.reg{background:#eff8f5;border-color:#cee8df}.evinfo .box.reg h2{font-size:19px;line-height:1.7}.evbody .box h3{font-size:16px}.evbody .box{gap:14px}.evbody .about-txt{font-size:15px;line-height:2}
 body[data-app=events] .mytk a{grid-template-columns:52px minmax(0,1fr);gap:12px;padding:16px}.mytk a>span:last-child{grid-column:2;justify-self:start}.mytk img{width:52px}.mytk b{font-size:15px;line-height:1.7}.mytk .small{font-size:12px;line-height:1.9}
 body[data-app=portal] .mtop{top:0;min-height:66px;padding:10px 16px;padding-top:calc(10px + env(safe-area-inset-top,0px));border-bottom:1px solid #e3eaf1;background:#fff;backdrop-filter:none}
 body[data-app=portal] .side{width:min(320px,86vw);padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));height:100dvh;max-height:100dvh}.side a.nl{min-height:48px!important}.side .grp{padding-top:20px!important}.side .me{padding-bottom:15px}
 body[data-app=portal] .main{padding-inline:20px;padding-top:20px;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}.main>.inner{gap:20px}
 body[data-app=portal] .ph{gap:16px;align-items:start}.ph>div{min-width:0}.ph p{line-height:1.9}.ph>.qa{flex-wrap:wrap;gap:8px}.ph>.qa .btn{min-height:46px}
 body[data-app=portal] .tabs,body[data-app=portal] .seg.tabs3{display:flex;flex-wrap:nowrap;overflow-x:auto;width:100%;max-width:100%;min-width:0;gap:5px;padding:5px;border-radius:15px;scrollbar-width:none;justify-content:start;justify-self:stretch}.tabs::-webkit-scrollbar,.seg.tabs3::-webkit-scrollbar{display:none}.tabs>button,.seg.tabs3>button{flex:none;white-space:nowrap;min-height:44px!important;height:auto!important;padding:10px 16px!important;line-height:1.5!important}
 body[data-app=portal] .mg-head{display:flex;flex-wrap:wrap;gap:12px;min-width:0}.mg-head>.t{min-width:0;flex:1 1 180px}.mg-head h1{font-size:21px;line-height:1.7}.mg-head .when{font-size:12px;line-height:1.9}.mg-head .qa{width:100%}.mg-head .qa>.btn{flex:1}.mg-head .thumb{width:54px;flex:none}
 body[data-app=portal] .mg,body[data-app=portal] .mg-body,body[data-app=portal] .mg-body>.rail{min-width:0;max-width:100%}
 body[data-app=portal] .trow{gap:12px}.trow .tx{min-width:0}.trow .tx b{font-size:15px;line-height:1.7}.trow .tx small{line-height:1.9}.trow>.st{max-width:160px;min-height:44px}.trow>.btn{min-height:44px}
 body[data-app=portal] .card:has(table){overflow-x:auto;overscroll-behavior-x:contain}.card table{min-width:520px}.card .qa{gap:8px}.card .qa>.btn{min-height:44px}
 body[data-app=portal] .chat-open{height:calc(var(--visual-height,100dvh) - 166px);min-height:340px}body[data-app=portal] .chat-open .mentor-conversation{height:100%;min-height:0!important;gap:0!important}body[data-app=portal] .chat-thread{overscroll-behavior:contain}body[data-app=portal].keyboard-open .chat-open{height:calc(var(--visual-height,100dvh) - 95px);min-height:0}body[data-app=portal].keyboard-open .mentor-conversation{height:100%;min-height:0!important}
 body[data-app=portal] .tabbar{padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));min-height:68px;box-shadow:0 -4px 22px #0e2a4e05;background:#ffffffed;backdrop-filter:blur(18px)}.tabbar a{border-radius:12px;gap:4px}.tabbar a[aria-current=page]{background:#e8f5f3;color:#007d78}
 dialog.sheet{width:calc(100% - 32px);max-width:700px;max-height:calc(var(--visual-height,100dvh) - 30px);margin:auto;border-radius:24px}dialog.sheet .sh{max-height:calc(var(--visual-height,100dvh) - 30px)}.sheet .sh-head{padding:18px 20px;flex:none;background:#fff}.sheet .sh-head h2{font-size:20px;line-height:1.6}.sheet .sh-body{padding:20px;overflow:auto;overscroll-behavior:contain}.sheet .form-row,.sheet .grid2{gap:16px}.sheet label{line-height:1.7}.sheet .err,.sheet .hint{font-size:12px;line-height:1.8}.sheet input,.sheet select{min-height:48px;border-radius:12px}.sheet textarea{min-height:100px;border-radius:12px;line-height:1.8}.sheet .sh-body>button[type=submit]{min-height:50px;position:sticky;bottom:-1px;z-index:1;box-shadow:0 -8px 12px #ffffffdd}
 .toast{bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100% - 32px);font-size:13px!important}
}
@media(max-width:600px){
 body[data-app=events] .wrap{width:calc(100% - 36px)}body[data-app=events] .hero>.wrap{min-height:520px;padding-block:48px!important}.hero .hstats{gap:25px!important}.hero .hstats span{font-size:11px!important}
 body[data-app=events] .hero h1{font-size:clamp(32px,8.5vw,43px);line-height:1.55}.hero .cta{display:grid!important;grid-template-columns:1fr 1fr!important}.hero .cta>.btn{padding-inline:8px!important;font-size:13px!important}
 body[data-app=events] section.s{padding-block:38px}.s-head{gap:16px!important;align-items:start!important;flex-wrap:wrap}.s-head h2{font-size:25px!important;line-height:1.6!important}.s-head p{font-size:14px;line-height:1.9}.filters{gap:7px}.filters>button{min-height:42px;padding:8px 13px;font-size:12px}
 .upcoming-empty{padding:26px 18px!important;border-radius:22px}.upcoming-empty>h3{font-size:21px!important}.upcoming-empty>p{font-size:14px}.follow-accounts{grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.follow-account{padding:14px 10px;gap:9px;flex-wrap:wrap}.follow-account>.i{display:none}.follow-account small{font-size:10px}.follow-account b{font-size:13px}.follow-icon{width:34px;height:34px;border-radius:10px}.follow-icon .i{width:19px;height:19px}
 body[data-app=events] .evhead{padding:16px;border-radius:20px}.evhead .rows{grid-template-columns:1fr}.evinfo .acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.evinfo .acts>*{height:auto;min-height:44px;padding:10px;font-size:12px;justify-content:center}.evhead .box{padding:18px 16px}.evhead .reg .btn{min-height:50px}
 body[data-app=events] .past{gap:12px}.past .pc{border-radius:18px;gap:14px}.pc h3{font-size:16px!important;line-height:1.7}.pc .pm{line-height:1.8;flex-wrap:wrap}
 body[data-app=portal] .main{padding-inline:16px}.ph{flex-direction:column}.ph>.btn{width:100%}.ph h1{font-size:25px!important}.hello{padding:22px 18px!important}.hello h1{font-size:25px!important;line-height:1.5}.hello .qa>.btn{flex:1 1 130px;min-height:46px}.hello .rib{opacity:.18!important}.hstat a{min-width:0;padding:12px 6px!important}.hstat span{font-size:10px!important;line-height:1.6!important}
 body[data-app=portal] .reqgrid,body[data-app=portal] .tgrid,body[data-app=portal] .orggrid,body[data-app=portal] .g3x,body[data-app=portal] .evlist{grid-template-columns:minmax(0,1fr)!important}.reqgrid>*,.tgrid>*,.orggrid>*{min-width:0}.req{padding:20px!important}.req h3{font-size:18px;line-height:1.8}.req .small{font-size:13px;line-height:1.9}.tcard h3{font-size:19px;line-height:1.6}.tcard .small{line-height:1.8}.thero{padding:22px 18px!important}.thero h1{font-size:26px;line-height:1.6}.tmem{min-width:0}.tm{max-width:100%;min-width:0}.tm>span{min-width:0;overflow-wrap:anywhere}
 .event-editor-preview{padding:12px;gap:12px}.event-editor-preview img{width:68px;height:85px}.event-editor-preview b{font-size:14px}.event-editor-preview small{font-size:11px}
 dialog.sheet{width:100%;max-width:100%;max-height:calc(var(--visual-height,100dvh) - env(safe-area-inset-top,0px) - 10px);margin:auto 0 0;border-radius:24px 24px 0 0}.sheet .sh{border-radius:24px 24px 0 0;max-height:calc(var(--visual-height,100dvh) - env(safe-area-inset-top,0px) - 10px)}.sheet .sh-body{padding:18px 18px calc(24px + env(safe-area-inset-bottom,0px))}.sheet .sh-head{padding:18px}.sheet .sh-head h2{font-size:19px}.sheet .form-row,.sheet .grid2{grid-template-columns:minmax(0,1fr)!important}.sheet .f,.sheet .form-row>*,.sheet .grid2>*{min-width:0}.sheet .pick .pk{flex-wrap:wrap;gap:10px}.sheet .pick .role{max-width:100%;flex:1 1 160px}
 body[data-app=portal]:has(.login){padding-bottom:70px}.login-app-access{bottom:12px!important}.login .art{min-height:170px!important}.login .pane2{padding:26px 22px!important}
 .chat-attachment-hint{display:none!important}body[data-app=portal] .chat-open{height:calc(var(--visual-height,100dvh) - 153px);min-height:0}body[data-app=portal] .chat-header h1{font-size:15px!important}
}
@media(max-width:359px){.follow-accounts{grid-template-columns:1fr}.follow-account{flex-wrap:nowrap;padding:14px}.follow-account small{font-size:11px}.follow-account>.i{display:block}body[data-app=events] .top .brand svg{max-width:140px}body[data-app=events] .top>.wrap{gap:7px;width:calc(100% - 24px)}.top .lang{min-width:54px!important}.hero .cta{grid-template-columns:1fr!important}.hero .cta>.btn{width:100%}}
@media(prefers-reduced-motion:reduce){.ev{transition:none}.ev:hover{transform:none}}

/* Keep forms inside the visible area, including Safari's keyboard pan. */
@media(max-width:980px){
 html{scroll-behavior:auto}
 dialog.sheet[open]{--sheet-gap:max(8px,env(safe-area-inset-top,0px));position:fixed;inset:calc(var(--visual-top,0px) + var(--sheet-gap)) 0 auto;margin:0 auto;width:calc(100% - 16px);max-width:700px;max-height:calc(var(--visual-height,100dvh) - var(--sheet-gap) - 8px);padding:0;overflow:hidden;border-radius:20px}
 dialog.sheet .sh{max-height:calc(var(--visual-height,100dvh) - var(--sheet-gap) - 8px);min-height:0;border-radius:inherit}
 .sheet .sh-head{padding:14px 16px;flex:none}
 .sheet .sh-head .iconbtn{min-width:44px;min-height:44px}
 .sheet .sh-body{min-height:0;scroll-padding-block:16px;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch}
 .sheet .sh-body input,.sheet .sh-body textarea,.sheet .sh-body select{scroll-margin-block:16px}
 .sheet .sh-body>button[type=submit]{position:static;box-shadow:none}
 body.keyboard-open .sheet .sh-head p{display:none}
 body[data-app=events].keyboard-open .event-app-nav{display:none}
 body[data-app=events] .evinfo h1{font-size:clamp(23px,6vw,28px);line-height:1.55}
 body[data-app=events] .evhead .reg{gap:16px}
}
