@keyframes leo-case-enter{0%{opacity:0;transform:translateY(12px)scale(.98)}to{opacity:1;transform:none}}.leo-case-gallery{animation:.4s ease-out leo-case-enter}.leo-case-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.leo-case-grid.is-admin{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.leo-case-card{background:linear-gradient(145deg,#fff,#e7f5f1);border:1px solid #c9e4df;border-radius:22px;min-width:0;transition:transform .2s,box-shadow .2s;animation:.4s ease-out leo-case-enter;overflow:hidden;box-shadow:0 7px 20px #0a635315}.leo-case-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #0a635325}.leo-case-thumb{aspect-ratio:1;background:#d8ece6;border:0;width:100%;padding:0;display:block;position:relative;overflow:hidden}.leo-case-thumb>img{object-fit:cover;width:100%;height:100%}.leo-case-thumb>span{color:#fff;background:linear-gradient(#0000,#001d1bb0);padding:24px 9px 10px;font-size:14px;font-weight:800;position:absolute;inset:auto 0 0}.leo-case-video-mark{color:#fff;background:#0005;border-radius:50%;width:22px;height:22px;padding:3px;position:absolute;top:10px;left:10px}.leo-case-actions{justify-content:center;align-items:center;gap:16px;padding:9px;display:flex}.leo-case-icon{color:#086d67;background:0 0;border-radius:50%;place-items:center;width:34px;height:34px;padding:6px;display:inline-grid;border:0!important;min-height:34px!important}.leo-case-icon svg{width:21px;height:21px}.leo-case-icon:hover,.leo-case-icon.is-liked{color:#00776b;background:#d2ece4}.leo-case-drag{touch-action:none;cursor:grab}.leo-case-grid.is-admin .leo-case-actions{gap:3px}.leo-case-grid.is-admin .leo-case-thumb>span{font-size:12px}.leo-case-overlay{z-index:180;background:#001310e8;place-items:center;padding:8px;display:grid;position:fixed;inset:0}.leo-case-viewer{background:#071c1a;border-radius:18px;width:min(430px,56.25dvh - 38.25px);max-width:100%;animation:.2s ease-out leo-case-enter;position:relative;box-shadow:0 12px 60px #0007}.leo-case-viewer>.leo-case-actions{background:#fff;border-radius:0 0 18px 18px;gap:25px;padding:7px}.leo-story-player{aspect-ratio:9/16;background:#061b19;border-radius:18px 18px 0 0;width:100%;position:relative;overflow:hidden}.leo-story-touch{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;position:absolute;inset:0}.leo-story-touch>video,.leo-story-touch>img:not(.leo-story-frame){object-fit:contain;width:100%;height:100%}.leo-story-touch>.leo-story-frame{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.leo-story-tools{gap:5px;display:flex;position:absolute;top:8px;right:8px}.leo-story-tools button,.leo-case-close,.leo-case-nav{color:#fff;z-index:5;background:#001c1850;border:0;border-radius:50%;place-items:center;width:28px;height:28px;padding:6px;display:grid;min-height:28px!important}.leo-story-tools svg,.leo-case-close svg,.leo-case-nav svg{width:16px;height:16px}.leo-case-close{position:absolute;top:7px;left:7px}.leo-case-nav{opacity:.65;width:25px;height:25px;position:absolute;top:47%}.leo-case-nav.is-next{left:5px}.leo-case-nav.is-prev{right:5px}.leo-case-nav:disabled{visibility:hidden}:is(.leo-story-player:fullscreen,.leo-story-player.is-full){aspect-ratio:auto;z-index:250;border-radius:0;width:100%;height:100dvh;position:fixed;inset:0}:is(.leo-story-player:fullscreen .leo-story-touch,.leo-story-player.is-full .leo-story-touch){max-width:none;margin:0}.leo-case-gallery button:disabled{opacity:.4}@media (width<=640px){.leo-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.leo-case-grid.is-admin{grid-template-columns:repeat(2,minmax(0,1fr))}.leo-case-card{border-radius:18px}}@media (prefers-reduced-motion:reduce){.leo-case-gallery,.leo-case-card,.leo-case-viewer{transition:none;animation:none}}:is(.leo-story-player:fullscreen .leo-story-touch>video,.leo-story-player.is-full .leo-story-touch>video){object-fit:cover}.leo-story-paused{pointer-events:none;color:#ffffff65;place-items:center;display:grid;position:absolute;inset:0}.leo-story-paused svg{fill:#ffffff24;stroke-width:1px;width:32px;height:32px}.leo-story-progress{z-index:4;opacity:.65;accent-color:#fff;cursor:pointer;touch-action:none;background:0 0;width:84%;height:14px;margin:0;position:absolute;bottom:clamp(48px,7%,100px);left:8%;border:0!important;min-height:0!important;padding:0!important}.leo-case-details{z-index:8;bottom:50px;white-space:pre-wrap;background:#ffffffed;border-radius:14px;max-height:40%;padding:14px;position:absolute;inset-inline:12px;overflow:auto}.leo-case-details h3{margin:0 0 8px;font-weight:800}.leo-story-progress{appearance:none}.leo-story-progress::-webkit-slider-runnable-track{background:#fff8;border-radius:4px;height:2px}.leo-story-progress::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;border-radius:50%;width:8px;height:8px;margin-top:-3px}.leo-story-progress::-moz-range-track{background:#fff8;height:2px}.leo-story-progress::-moz-range-thumb{background:#fff;border:0;width:8px;height:8px}.leo-story-player.has-watermark .leo-story-touch>video{object-fit:contain}.leo-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;display:grid}.leo-tool-button{color:#075f59;cursor:pointer;text-align:center;white-space:normal;background:#fff;justify-content:center;align-items:center;gap:8px;width:100%;font-weight:750;line-height:1.5;border:1px solid #a6d3cc!important;border-radius:14px!important;min-height:46px!important;padding:10px 12px!important;font-size:14px!important;display:flex!important}.leo-tool-button svg{flex:none;width:19px;height:19px}.leo-tool-button:hover{background:#edf9f5}.leo-tool-button.is-active{background:#d7f1e9;box-shadow:inset 0 0 0 1px #087e72;border-color:#087e72!important}.leo-tool-button.is-primary{color:#fff;background:#08796e;border-color:#08796e!important}.leo-tool-button:disabled{opacity:.45;cursor:wait}.leo-file-control{min-width:0}.leo-file-name{text-overflow:ellipsis;white-space:nowrap;color:#55716b;padding-top:5px;font-size:12px;display:block;overflow:hidden}.leo-video-editor{background:#f3fbf8;border:1px solid #b8ded5;border-radius:20px;gap:13px;padding:14px;display:grid}.leo-video-editor h3,.leo-video-editor h4{color:#0b4e49;margin:0;font-weight:800}.leo-video-preview{background:#071b19;border-radius:16px;width:min(100%,260px);margin:auto;overflow:hidden}.leo-video-preview canvas{width:100%;height:auto;display:block}.leo-editor-toolbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.leo-editor-toolbar .leo-tool-button{flex-direction:column;gap:5px;min-height:70px!important;padding:9px 5px!important}.leo-tool-panel{background:#fff;border:1px solid #d2e8e1;border-radius:16px;gap:13px;padding:13px;display:grid}.leo-tool-field{gap:7px;font-size:14px;font-weight:600;display:grid}.leo-tool-field input:not([type=range]){background:#fff;border:1px solid #b8d7d0;border-radius:10px;width:100%;min-width:0;padding:9px;font-size:16px}.leo-tool-field input[type=range],.leo-preview-seek{accent-color:#087e72;width:100%;min-height:22px;padding:0}.leo-tool-time{text-align:center;color:#55716b;direction:ltr;align-self:center;font-size:13px}.leo-tool-hint{color:#4a6d65;margin:0;font-size:13px;line-height:1.8}.leo-editor-status{color:#135c4f;background:#e1f2eb;border-radius:10px;margin:0;padding:9px;font-size:14px;line-height:1.7}.leo-clip-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:280px;display:grid;overflow:auto}.leo-clip-library button{background:#f4faf8;border:1px solid #b8d7d0;border-radius:12px;gap:6px;padding:7px;font-size:13px;display:grid}.leo-clip-library img{aspect-ratio:1;object-fit:cover;border-radius:8px;width:100%}.leo-video-editor details{color:#52726a;font-size:13px}.leo-video-editor details[open] summary{margin-bottom:10px}@media (width>=640px){.leo-editor-toolbar{grid-template-columns:repeat(5,minmax(0,1fr))}.leo-tool-button{font-size:15px!important}}.leo-segment-list{gap:6px;max-height:235px;margin-bottom:12px;display:grid;overflow-y:auto}.leo-segment{background:#fff;border:1px solid #cfe3dd;border-radius:12px;align-items:center;gap:6px;padding:5px 8px;display:flex}.leo-segment.is-active{background:#e5f3ef;border-color:#0b766f}.leo-segment>button{text-align:right;flex:1;align-items:center;gap:8px;min-width:0;padding:5px;font-size:14px;display:flex}.leo-segment>button span{flex:1;min-width:0}.leo-segment small{text-overflow:ellipsis;white-space:nowrap;color:#607c73;max-width:220px;font-size:12px;display:block;overflow:hidden}.leo-segment>div{gap:2px;display:flex}.leo-segment>div button{color:#0b766f;border-radius:8px;min-width:32px;min-height:36px;padding:7px}.leo-segment button:disabled{opacity:.5}
