.mobile-bottom.with-reels{grid-template-columns:repeat(4,minmax(0,1fr))}
#reelsDialog{padding:0;width:min(100% - 24px,520px);max-width:520px;height:min(850px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden;background:#fff;color:#15355c;border:1px solid #adc4df;border-radius:22px}
#reelsDialog::backdrop{background:#102d48cc}
.reels-heading{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#fff;border-bottom:1px solid #dce7f4}
.reels-heading h2{margin:0;font:700 25px Arial}.reels-heading button{font-size:32px;width:44px;height:44px;border-radius:50%;background:#edf4ff;color:#1764c0}
.reels-feed{height:calc(100% - 64px);overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;background:#f2f7fd}
.reel{height:100%;scroll-snap-align:start;scroll-snap-stop:always;display:flex;flex-direction:column;background:#071b30;color:#fff;position:relative}
.reel video{width:100%;flex:1;min-height:0;object-fit:contain;background:#071b30}.reel-info{padding:12px 16px 16px;background:#fff;color:#15355c;flex-shrink:0}.reel-info h3{font-size:18px;margin:0 0 6px}.reel-info p{font-size:14px;margin:0 0 10px;max-height:60px;overflow:auto}.reel-actions{display:flex;gap:8px;flex-wrap:wrap}.reel-actions a,.reel-actions button,.reels-retry{padding:11px 14px;border-radius:10px;background:#1764c0;color:#fff;font-size:14px;font-weight:600}.reels-empty{padding:45px 24px;text-align:center;font-size:18px;color:#526b89}.reel-error{padding:12px;color:#fff}.reels-retry{display:block;margin:20px auto}
@media(max-width:760px){#reelsDialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}.mobile-bottom.with-reels button{font-size:10px}.reels-heading{height:60px}.reels-feed{height:calc(100% - 60px)}}

.reels-empty{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px}.reels-empty-icon{display:grid;place-items:center;width:88px;height:88px;background:#e0edff;color:#1764c0;border:1px solid #b7cfee;border-radius:26px;margin-bottom:20px}.reels-empty-icon svg{width:44px;height:44px}.reels-empty h3{font-size:24px;line-height:1.2;color:#15355c;margin:0 0 12px}.reels-empty p{font-size:16px;line-height:1.6;margin:0;max-width:320px}

.reels-heading h2{margin-right:auto}.reels-heading .reels-filter-button{font-size:15px;font-weight:600;width:auto;height:40px;padding:0 13px;margin-right:8px;border:1px solid #bdd1e9;border-radius:10px}
#reelsFilterDialog{width:min(620px,calc(100% - 24px));padding:0;max-height:90dvh;overflow:auto;background:#fff;border:1px solid #adc4df;border-radius:20px;color:#15355c}
#reelsFilterDialog::backdrop{background:#102d48aa}#reelsFilterDialog .af-header{top:0}#reelsFilterDialog .af-header h2{font-size:21px}#reelsFilterDialog .af-body{padding:0}#reelsFilterDialog .reels-filter-content{padding:20px}#reelsFilterDialog .af-select select{height:auto;min-height:44px}#reelsFilterDialog .af-footer .primary{width:100%}.reels-filter-hint{font-size:13px;color:#6b7f98}.reels-filter-error{color:#b32525;margin:0 0 8px;font-size:14px}.reels-filter-error:empty{display:none}
@media(max-width:760px){#reelsFilterDialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0;padding-top:env(safe-area-inset-top,0px)}#reelsFilterDialog .af-header{padding:12px}.reels-heading{padding:0 12px}.reels-heading .reels-filter-button{font-size:14px}}

#reelsAdmin{width:min(720px,calc(100% - 24px));max-height:90dvh;overflow:auto;background:white;color:#15355c;border:1px solid #adc4df;border-radius:20px;padding:24px}#reelsAdmin::backdrop{background:#102d48bb}.reels-admin-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.reels-admin-head h2{font-size:24px;margin:0}.reels-admin-head button{font-size:30px;background:#edf4ff;border:1px solid #adc4df;border-radius:50%;width:44px;height:44px}.reels-upload{display:grid;gap:14px}.reels-upload label{display:flex;flex-direction:column;gap:7px;font-size:16px}.reels-upload input,.reels-upload select,.reels-upload textarea{width:100%;padding:12px;border:1px solid #adc4df;border-radius:10px;font:inherit;background:white;color:#15355c;box-sizing:border-box}.reels-admin-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.reels-admin-fields .wide{grid-column:1/-1}.reels-upload-preview{width:100%;max-height:350px;background:#102d48;border-radius:12px}.reels-upload progress{width:100%}.reels-upload [role=status]{font-size:16px;font-weight:600}.reels-admin-list article{padding:16px 0;border-top:1px solid #adc4df}.reels-admin-list button{padding:10px 16px;border:1px solid #d3a4a4;color:#a12c2c;border-radius:10px;background:white}.reels-admin-list p{margin:7px 0}.reels-upload .primary{padding:15px}.reels-upload [hidden]{display:none}#reelsAdmin button:disabled{opacity:.5}@media(max-width:560px){#reelsAdmin{padding:18px}.reels-admin-fields{grid-template-columns:1fr}}
.reel-object-dialog{width:min(560px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid #adc4df;border-radius:18px;padding:24px;color:#15355c}.reel-object-dialog button{padding:10px 16px;background:#edf4ff;border-radius:10px}.reel-object-dialog::backdrop{background:#102d48bb}
