#lofit-schedule{--panel:#1a1a1f;--line:#2a2a30;--accent:#ff6a00;--muted:#a2a2ab;background:transparent;color:#fff;font-family:'Manrope',Arial,sans-serif;overflow:hidden;padding-bottom:60px}
#lofit-schedule *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.lf6-wrap{max-width:1160px;margin:0 auto;padding:0 20px}
.lf6-content{opacity:0;transform:translateY(14px);pointer-events:none;transition:.7s}
#lofit-schedule.is-ready .lf6-content,#lofit-schedule.is-error .lf6-content{opacity:1;transform:none;pointer-events:auto}
.lf6-preloader{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:.5s}
#lofit-schedule.is-ready .lf6-preloader,#lofit-schedule.is-error .lf6-preloader{opacity:0;visibility:hidden;height:0;min-height:0;overflow:hidden}
.lf6-clock{position:relative;width:84px;height:84px;border:3px solid var(--line);border-radius:50%}
.lf6-clock::before{content:"";position:absolute;left:50%;top:50%;width:9px;height:9px;border-radius:50%;background:var(--accent);transform:translate(-50%,-50%);z-index:2}
.lf6-clock-mark{position:absolute;left:50%;top:8px;width:4px;height:10px;margin-left:-2px;border-radius:9px;background:var(--line);transform-origin:2px 34px}
.lf6-clock-mark:nth-child(2){transform:rotate(90deg)}.lf6-clock-mark:nth-child(3){transform:rotate(180deg)}.lf6-clock-mark:nth-child(4){transform:rotate(270deg)}
.lf6-clock-hand{position:absolute;left:50%;bottom:50%;border-radius:9px;transform-origin:50% 100%;background:#fff}
.lf6-clock-hour{width:5px;height:22px;margin-left:-2.5px;animation:lf6spin 8s linear infinite}
.lf6-clock-minute{width:3px;height:31px;margin-left:-1.5px;background:var(--accent);animation:lf6spin 1.4s linear infinite}
@keyframes lf6spin{to{transform:rotate(360deg)}}
.lf6-preloader-title{margin-top:20px;font-weight:700}
.lf6-preloader-subtitle{margin-top:6px;color:var(--muted);font-size:12px}
.lf6-controls{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap;margin-bottom:24px}
.lf6-label{margin-bottom:10px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.lf6-buttons,.lf6-filters{display:flex;gap:8px;flex-wrap:wrap}
#lofit-schedule button,#lofit-schedule select{height:40px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:#fff;font-family:inherit;font-size:13px;font-weight:600;outline:none;transition:.2s;cursor:pointer}
#lofit-schedule button{padding:0 18px;white-space:nowrap}
#lofit-schedule button:hover,#lofit-schedule select:hover{border-color:var(--accent)}
#lofit-schedule button.is-active{background:var(--accent);border-color:var(--accent)}
#lofit-schedule select{padding:0 14px}
.lf6-status{display:none;margin:16px 0;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--muted);font-weight:600}
#lofit-schedule.is-error .lf6-status{display:block}
.lf6-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.lf6-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;table-layout:fixed;color:#fff}
.lf6-table th,.lf6-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:middle}
.lf6-table th:last-child,.lf6-table td:last-child{border-right:0}
.lf6-table tbody tr:last-child td{border-bottom:0}
.lf6-table thead th{height:84px;padding:12px 8px;text-align:center;background:#1f1f24}
.lf6-table thead th:first-child{width:120px;background:transparent}
.lf6-date{font-family:'Unbounded';font-size:28px;font-weight:800;line-height:1}
.lf6-day{margin-top:6px;font-size:13px;color:var(--muted)}
.lf6-time-cell{width:120px;height:96px;padding:0 16px;color:var(--accent);font-family:'Unbounded';font-size:19px;font-weight:700;text-align:left;white-space:nowrap}
.lf6-event-cell{height:96px;padding:8px}
.lf6-cell-inner{display:flex;flex-direction:column;gap:6px;height:100%;justify-content:center;overflow:hidden}
.lf6-event{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:60px;padding:8px 10px 8px 14px;background:#222228;border-radius:10px;cursor:pointer;overflow:hidden;transition:.2s}
.lf6-event:hover{background:#2a2a31}
.lf6-event::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;border-radius:3px;background:var(--event-color,#4CC1FC)}
.lf6-event-icon{width:20px;height:20px;margin-bottom:4px}
.lf6-event-icon img,.lf6-mobile-icon img{width:100%;height:100%;object-fit:contain}
.lf6-event-title{display:block;font-size:12px;font-weight:700;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lf6-event-trainer,.lf6-event-time{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lf6-empty{padding:24px;text-align:center;color:var(--muted);font-weight:600}
.lf6-legend{display:flex;gap:22px;flex-wrap:wrap;margin-top:18px;padding:0 4px}
.lf6-legend div{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.lf6-legend span{display:inline-block;width:10px;height:10px;border-radius:3px}
.lf6-mobile-list{display:none}
#lf6-hidden-widget{position:fixed!important;left:-20000px!important;top:0;width:1366px;min-width:1366px;height:1400px;opacity:0;pointer-events:none;overflow:hidden;z-index:-2147483647}
#lf6-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.8);font-family:'Manrope',Arial,sans-serif}
#lf6-modal.is-open{display:flex}
#lf6-modal .lf6-modal-box{width:min(560px,100%);max-height:88vh;overflow-y:auto;background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:30px;text-align:center}
#lf6-modal .lf6-modal-icon{width:70px;height:70px;margin:0 auto 14px}
#lf6-modal .lf6-modal-icon img{width:100%;height:100%;object-fit:contain}
#lf6-modal .lf6-modal-title{font-family:'Unbounded';font-size:22px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
#lf6-modal .lf6-modal-meta{margin-bottom:8px;color:var(--accent);font-size:14px;font-weight:600;text-align:left}
#lf6-modal .lf6-modal-text{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-size:14px;line-height:1.6;text-align:left;color:#d6d6da}
#lf6-modal .lf6-modal-close{margin-top:20px;height:42px;padding:0 26px;border:0;border-radius:12px;background:var(--accent);color:#fff;font-weight:700;cursor:pointer}

@media(max-width:900px){
 .lf6-table-wrap{display:none}
 .lf6-mobile-list{display:block}
 .lf6-controls{flex-direction:column;gap:16px}
 .lf6-control{width:100%}
 .lf6-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
 .lf6-buttons button{width:100%;padding:0 10px}
 .lf6-filters{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
 .lf6-filters select{width:100%}
 #lf6-filter-class{grid-column:1/3}
 .lf6-mobile-day{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-bottom:14px}
 .lf6-mobile-day-head{display:flex;align-items:baseline;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line);background:#1f1f24}
 .lf6-mobile-date{font-family:'Unbounded';font-size:22px}
 .lf6-mobile-name{color:var(--muted);font-size:14px}
 .lf6-mobile-row{display:grid;grid-template-columns:70px 1fr;border-bottom:1px solid var(--line)}
 .lf6-mobile-row:last-child{border-bottom:0}
 .lf6-mobile-time{display:flex;align-items:center;justify-content:center;color:var(--accent);font-weight:700;font-size:15px;border-right:1px solid var(--line)}
 .lf6-mobile-card{position:relative;padding:12px 14px 12px 20px;cursor:pointer}
 .lf6-mobile-card::before{content:"";position:absolute;left:8px;top:12px;bottom:12px;width:3px;border-radius:3px;background:var(--event-color,#4CC1FC)}
 .lf6-mobile-title-line{display:flex;align-items:center;gap:10px;margin-bottom:4px}
 .lf6-mobile-icon{flex:0 0 22px;width:22px;height:22px}
 .lf6-mobile-title{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .lf6-mobile-meta{display:block;font-size:12px;color:var(--muted)}
}

/* ============================================================
   ГЛАВНЫЙ ФИКС: на мобильных НЕ используем display:none для спойлера!
   При display:none скрытый виджет 1С получает ширину 0 и отдаёт
   ОДИН день. Теперь закрытое расписание уезжает за экран, но
   остаётся в раскладке — виджет видит 1366px и грузит ВСЮ неделю.
   ============================================================ */
@media(max-width:900px){
 #lofit-schedule{display:block!important;position:absolute!important;left:-20000px!important;top:0!important;height:0;overflow:hidden;visibility:hidden}
 #lofit-schedule.opened{position:static!important;left:0!important;top:auto!important;height:auto;overflow:visible;visibility:visible}
}