.sgc-media-nav{position:relative;margin:10px 0 16px}.sgc-media-nav-links{padding-right:130px}.sgc-media-upload-video{position:absolute;right:0;top:0}.sgc-media-upload-video a{display:inline-block;padding:7px 14px;text-decoration:none}.sgc-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.sgc-video-card{background:#fff;border:1px solid #b8d8ea;border-radius:10px;padding:8px;box-shadow:0 2px 8px rgba(0,70,130,.10)}.sgc-video-card video{width:100%;aspect-ratio:16/9;background:#001a36;border-radius:7px;display:block}.sgc-video-title{font-weight:700;color:#07588b;padding:7px 3px 2px}.sgc-ai-all-videos{margin-top:18px}.sgc-ai-all-videos h3{margin:0 0 10px;color:#07588b}@media(max-width:800px){.sgc-video-grid{grid-template-columns:1fr}.sgc-media-nav-links{padding-right:0}.sgc-media-upload-video{position:static;margin-top:8px;text-align:right}}

/* SGC Photo Build 11007 - Animate Photo Hub */
.sgc-animate-photo{max-width:500px;padding:4px 2px 8px}.sgc-animate-preview{text-align:center;margin:0 0 14px}.sgc-animate-preview img{max-width:100%;max-height:270px;border-radius:8px}.sgc-animate-intro{margin:0 0 14px}.sgc-animate-label{display:block;font-weight:bold;margin:10px 0 5px}.sgc-animate-photo select,.sgc-animate-photo textarea{box-sizing:border-box;width:100%;max-width:100%;padding:8px}.sgc-animate-photo textarea{min-height:80px;resize:vertical}.sgc-animate-note{font-size:12px;opacity:.75;margin:10px 0}.sgc-animate-actions{margin-top:14px}.sgc-animate-status{margin-top:12px;font-weight:bold}.sgc-animate-result{margin-top:14px}.sgc-animate-result video{display:block;width:100%;max-height:360px;background:#000;border-radius:8px}.sgc-animate-open{margin-top:10px;text-align:center}

/* Build 11007: dedicated animation area; avoids legacy Ajax floatbox white-bar failure. */
.sgc-animate-hub,.sgc-animations-library{margin-top:14px}.sgc-animate-hub-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 16px}.sgc-animate-hub-head h2{margin:0 0 4px;color:#07588b}.sgc-animate-hub-head p{margin:0}.sgc-animate-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.sgc-animate-pick{position:relative;display:block;background:#fff;border:1px solid #b8d8ea;border-radius:10px;overflow:hidden;text-decoration:none;box-shadow:0 2px 8px rgba(0,70,130,.1)}.sgc-animate-pick img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.sgc-animate-pick span{display:block;text-align:center;font-weight:700;padding:8px;color:#07588b}.sgc-animate-inline{max-width:620px;margin:0 auto;background:#fff;border:1px solid #b8d8ea;border-radius:12px;padding:18px}.sgc-animation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.sgc-animation-card{background:#fff;border:1px solid #b8d8ea;border-radius:10px;padding:8px}.sgc-animation-card img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:7px 7px 0 0;opacity:.55}.sgc-animation-card video{width:100%;aspect-ratio:16/9;background:#001a36;border-radius:0 0 7px 7px;display:block}.sgc-animation-label{font-weight:700;color:#07588b;padding:7px 3px 2px}@media(max-width:900px){.sgc-animate-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.sgc-animation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.sgc-animate-hub-head{align-items:flex-start;flex-direction:column}.sgc-animate-picker,.sgc-animation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* SGC Photo Build 11009 - route-free Animate Photo modal and render stage */
.sgc-animate-lock{overflow:hidden}.sgc-animate-overlay{display:none;position:fixed;inset:0;z-index:10050;background:rgba(0,12,32,.76);backdrop-filter:blur(2px);align-items:flex-start;justify-content:center;padding:48px 18px;overflow:auto}.sgc-animate-overlay.is-open{display:flex}.sgc-animate-modal{position:relative;width:min(900px,96vw);background:#f7fbff;border:1px solid #4da7d8;border-radius:14px;box-shadow:0 18px 60px rgba(0,0,0,.45);padding:26px;color:#17324a}.sgc-animate-close{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:34px;line-height:1;color:#33617d;cursor:pointer}.sgc-animate-modal-head{padding-right:40px;margin-bottom:18px}.sgc-animate-kicker{font-size:11px;letter-spacing:2px;color:#0a78b6;font-weight:800}.sgc-animate-modal-head h2{margin:2px 0 4px;color:#07588b}.sgc-animate-modal-head p{margin:0}.sgc-animate-modal-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sgc-animate-modal-pick{border:1px solid #b8d8ea;border-radius:10px;padding:0;background:#fff;overflow:hidden;cursor:pointer;box-shadow:0 2px 8px rgba(0,70,130,.1)}.sgc-animate-modal-pick img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.sgc-animate-modal-pick span{display:block;padding:8px;font-weight:700;color:#07588b}.sgc-animate-empty{padding:24px;text-align:center;background:#fff;border:1px solid #d4e7f2;border-radius:10px}.sgc-animate-workspace{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,1fr);gap:22px;align-items:start}.sgc-animate-work-preview{background:#071a2f;border-radius:12px;padding:10px;text-align:center}.sgc-animate-work-preview img{max-width:100%;max-height:430px;border-radius:8px}.sgc-animate-controls label{display:block;font-weight:700;margin:0 0 6px}.sgc-animate-controls select,.sgc-animate-controls textarea{box-sizing:border-box;width:100%;padding:9px;border:1px solid #aac7d8;border-radius:6px}.sgc-animate-controls textarea{min-height:90px;resize:vertical}.sgc-animate-custom-wrap{margin-top:12px}.sgc-animate-controls .sgc-animate-start{margin-top:16px}.sgc-animate-render{margin-top:20px;padding:18px;text-align:center;background:#eaf6fd;border:1px solid #b7dff4;border-radius:10px}.sgc-animate-spinner{width:34px;height:34px;margin:0 auto 8px;border:4px solid rgba(0,105,170,.18);border-top-color:#0a78b6;border-radius:50%;animation:sgc-spin .8s linear infinite}.sgc-animate-render-title{font-size:18px;font-weight:800;color:#07588b}.sgc-animate-render-sub{font-size:12px;margin-top:4px;opacity:.75}.sgc-animate-progress{height:7px;background:#cfe6f3;border-radius:8px;overflow:hidden;margin-top:12px}.sgc-animate-progress span{display:block;height:100%;width:35%;background:#0a78b6;border-radius:8px;animation:sgc-progress 1.25s ease-in-out infinite}.sgc-animate-modal .sgc-animate-status{text-align:center;margin-top:12px;font-weight:700}.sgc-animate-modal .sgc-animate-result{max-width:620px;margin:16px auto 0}.sgc-animate-modal .sgc-animate-result video{display:block;width:100%;max-height:500px;background:#000;border-radius:10px}@keyframes sgc-spin{to{transform:rotate(360deg)}}@keyframes sgc-progress{0%{transform:translateX(-120%)}50%{transform:translateX(110%)}100%{transform:translateX(290%)}}@media(max-width:760px){.sgc-animate-modal-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.sgc-animate-workspace{grid-template-columns:1fr}.sgc-animate-overlay{padding:18px 8px}.sgc-animate-modal{padding:18px}}

.sgc-animate-render.is-error{background:#fff1f1;border-color:#e4a0a0}.sgc-animate-render.is-error .sgc-animate-render-title{color:#a51f1f}.sgc-animate-status.is-error{color:#a51f1f;background:#fff4f4;border:1px solid #e6b6b6;border-radius:8px;padding:10px}.sgc-animate-diagnostic{margin:8px auto 0;max-width:760px;padding:9px 11px;background:#f4f7fa;border:1px solid #c8d4dd;border-radius:6px;font-size:12px;color:#40505e;word-break:break-word}
.sgc-cartoon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.sgc-cartoon-field{font-weight:700}.sgc-cartoon-field select,.sgc-cartoon-scene{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:8px}.sgc-cartoon-scene{min-height:85px}.sgc-cartoon-result{text-align:center;margin-top:14px}@media(max-width:640px){.sgc-cartoon-grid{grid-template-columns:1fr}}

/* SGC Photo Build 11018 - Eva rail + minimized Cartoon render dock */
.sgc-cartoon-dock{position:fixed;right:18px;bottom:230px;z-index:99925;display:none;width:190px;box-sizing:border-box;padding:11px 12px;border:1px solid rgba(83,205,255,.62);border-radius:13px;background:linear-gradient(145deg,rgba(4,25,58,.98),rgba(9,58,101,.97));box-shadow:0 10px 28px rgba(0,0,0,.34);color:#eefaff;font-family:Arial,Helvetica,sans-serif;line-height:1.35}.sgc-cartoon-dock.is-visible{display:block}.sgc-cartoon-dock.is-complete{border-color:rgba(75,226,160,.75)}.sgc-cartoon-dock.is-error{border-color:rgba(255,114,114,.78)}.sgc-cartoon-dock-head{display:flex;align-items:center;gap:7px;font-size:12px;margin-bottom:6px}.sgc-cartoon-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#65d7ff;box-shadow:0 0 10px rgba(101,215,255,.9);animation:sgcCartoonPulse 1.2s ease-in-out infinite}.sgc-cartoon-dock.is-complete .sgc-cartoon-dot{background:#58e3a3;animation:none}.sgc-cartoon-dock.is-error .sgc-cartoon-dot{background:#ff7f7f;animation:none}.sgc-cartoon-dock-status{font-size:11px;color:#d9f4ff;min-height:30px}.sgc-cartoon-dock-progress{height:6px;margin:8px 0;border-radius:999px;background:rgba(255,255,255,.14);overflow:hidden}.sgc-cartoon-dock-progress span{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#37b9f4,#78e4ff);animation:sgcCartoonProgress 1.2s ease-in-out infinite}.sgc-cartoon-dock.is-complete .sgc-cartoon-dock-progress span{width:100%;animation:none;background:linear-gradient(90deg,#35c77e,#75efb2)}.sgc-cartoon-dock.is-error .sgc-cartoon-dock-progress span{animation:none;background:#ff7f7f}.sgc-cartoon-dock-result{font-size:10px;color:#b9e7f8;text-align:center}.sgc-cartoon-dock-result img{display:block;width:74px;height:74px;object-fit:cover;border-radius:8px;margin:8px auto 5px}.sgc-cartoon-dock-result .ow_button{margin-top:8px}@keyframes sgcCartoonPulse{0%,100%{transform:scale(.82);opacity:.7}50%{transform:scale(1.12);opacity:1}}@keyframes sgcCartoonProgress{0%{transform:translateX(-120%)}50%{transform:translateX(110%)}100%{transform:translateX(290%)}}@media(max-width:760px){.sgc-cartoon-dock{right:8px;bottom:185px;width:150px}}

/* SGC Photo Build 11022 - safe membership-style Eva position + native Photo action */
.sgc-cartoon-prompt-note{font-size:12px;color:#536c80;margin:6px 0 10px}.sgc-cartoon-scene{min-height:112px}
.sgc-cartoon-dock{left:28px !important;right:auto !important;top:390px !important;bottom:auto !important;width:230px;z-index:99925}
/* Use the theme's existing ow_button/ow_ic_add classes instead of cloning live DOM. */
#sgc-create-cartoon-button{display:inline-block;margin-right:6px;vertical-align:middle;cursor:pointer}
#sgc-create-cartoon-button input{cursor:pointer}

/* SGC Photo Build 11023 - use sitewide Eva commercial; Photo no longer creates or moves its own Eva box. */
.sgc-cartoon-dock{left:28px !important;right:auto !important;top:390px !important;bottom:auto !important;width:230px;z-index:99925}
@media(max-width:760px){.sgc-cartoon-dock{left:8px !important;right:auto !important;top:330px !important;bottom:auto !important;width:180px}}

/* SGC Photo Build 11026 - Photo Studio */
#sgc-photo-studio-overlay.sgc-photo-studio-overlay{position:fixed;inset:0;background:rgba(3,12,28,.78);z-index:99990;display:none;align-items:center;justify-content:center;padding:22px;box-sizing:border-box}
#sgc-photo-studio-overlay.is-open{display:flex}
.sgc-photo-studio-modal{position:relative;width:min(1120px,96vw);max-height:92vh;overflow:auto;border-radius:20px;background:#fff;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.sgc-photo-studio-close{position:absolute;top:10px;right:12px;border:0;background:transparent;font-size:32px;line-height:1;cursor:pointer;color:#3d5570}
.sgc-photo-studio-body{padding:28px}
.sgc-photo-studio-head h2{margin:4px 0 8px;font-size:28px;color:#123a63}
.sgc-photo-studio-head p{margin:0 0 18px;color:#587088;font-size:14px;line-height:1.5}
.sgc-photo-studio-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:20px}
.sgc-photo-studio-left,.sgc-photo-studio-right{display:flex;flex-direction:column;gap:16px}
.sgc-photo-studio-panel,.sgc-photo-studio-preview{border:1px solid #dce7f1;border-radius:18px;padding:16px;background:linear-gradient(180deg,#fbfdff,#f4f9ff)}
.sgc-photo-studio-panel-title{font-size:15px;font-weight:700;color:#153c62;margin-bottom:12px}
.sgc-photo-studio-source-tabs{display:flex;gap:10px;margin-bottom:12px}
.sgc-photo-studio-source-tabs button{border:1px solid #c9d9ea;background:#fff;padding:9px 14px;border-radius:999px;cursor:pointer;font-weight:700;color:#31506e}
.sgc-photo-studio-source-tabs button.is-active{background:#1f7bdd;color:#fff;border-color:#1f7bdd}
.sgc-photo-studio-tab{display:none}.sgc-photo-studio-tab.is-active{display:block}
.sgc-photo-studio-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-height:320px;overflow:auto;padding-right:4px}
.sgc-photo-studio-pick{border:2px solid #d8e4f0;background:#fff;border-radius:16px;padding:8px;cursor:pointer;text-align:center;color:#254968;font-weight:700}
.sgc-photo-studio-pick img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px;margin-bottom:7px}
.sgc-photo-studio-pick.is-selected{border-color:#1f7bdd;box-shadow:0 0 0 3px rgba(31,123,221,.14)}
.sgc-photo-studio-upload{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:180px;border:2px dashed #b8d0e7;border-radius:16px;background:#fff;cursor:pointer;text-align:center;padding:18px;color:#244a68}
.sgc-photo-studio-upload input{display:none}
.sgc-photo-studio-upload span{font-size:18px;font-weight:700;margin-bottom:6px}
.sgc-photo-studio-upload small{font-size:12px;color:#6a839c}
.sgc-photo-studio-preview-box{display:flex;align-items:center;justify-content:center;min-height:250px;border-radius:14px;background:#fff;border:1px solid #deebf5;padding:10px}
.sgc-photo-studio-preview-box img{max-width:100%;max-height:360px;border-radius:12px;display:block}
.sgc-photo-studio-preview-empty,.sgc-photo-studio-empty{font-size:13px;color:#69829a;line-height:1.5;text-align:center}
.sgc-photo-studio-right label{display:block;margin:0 0 6px;font-weight:700;color:#264866}
.sgc-photo-studio-tier,.sgc-photo-studio-preset,.sgc-photo-studio-aspect,.sgc-photo-studio-prompt{width:100%;box-sizing:border-box;border:1px solid #cad8e6;border-radius:12px;padding:11px 12px;background:#fff;margin-bottom:12px}
.sgc-photo-studio-prompt{min-height:120px;resize:vertical}
.sgc-photo-studio-note{font-size:12px;color:#587088;line-height:1.5;margin:0 0 12px}
.sgc-photo-studio-progress{border:1px solid #dce7f1;border-radius:18px;background:#fff;padding:16px;text-align:center}
.sgc-photo-studio-progress-title{font-size:18px;font-weight:700;color:#153c62;margin:6px 0}
.sgc-photo-studio-progress-sub{font-size:13px;color:#587088;margin-bottom:10px}
.sgc-photo-studio-status{margin-top:2px;font-size:13px;color:#274865;line-height:1.5}
.sgc-photo-studio-status.is-error{color:#b23232}
.sgc-photo-studio-result{margin-top:10px;border:1px solid #dce7f1;border-radius:18px;padding:14px;background:#fff;text-align:center}
.sgc-photo-studio-result img{max-width:100%;border-radius:14px;display:block;margin:0 auto}
@media (max-width: 980px){.sgc-photo-studio-layout{grid-template-columns:1fr}.sgc-photo-studio-library{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px){#sgc-photo-studio-overlay.sgc-photo-studio-overlay{padding:10px}.sgc-photo-studio-body{padding:18px}.sgc-photo-studio-library{grid-template-columns:1fr}.sgc-photo-studio-head h2{font-size:24px}}

/* SGC Photo Build 11027 - native Photo Studio action button */
#sgc-photo-studio-button{display:inline-block;margin-right:6px;vertical-align:middle;cursor:pointer}
#sgc-photo-studio-button input{cursor:pointer}


/* SGC Photo Build 11035 - keep My Photos directly under Explore and flush left. */
.sgc_my_photos_row{clear:both;display:block;width:100%;box-sizing:border-box;text-align:left;margin:4px 0 10px 0;padding:0}
.sgc_my_photos_link{display:inline-flex;align-items:center;gap:10px;min-width:150px;box-sizing:border-box;padding:10px 14px;border-radius:0 0 8px 8px;background:rgba(255,255,255,.74);color:#0d5484 !important;font-weight:700;text-decoration:none !important;border:1px solid rgba(134,190,226,.45)}
.sgc_my_photos_link:hover,.sgc_my_photos_link.active{background:rgba(221,244,255,.96);color:#0a4e7d !important}
.sgc_my_photos_icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#2f88bc;color:#fff;font-size:12px;font-weight:700;line-height:18px}
@media(max-width:760px){.sgc_my_photos_link{min-width:132px;padding:9px 12px}}

/* Build 11040: place creation progress in the Photo content, not over Eva. */
#sgc-cartoon-dock.sgc-cartoon-dock {
    position:static !important;
    left:auto !important; right:auto !important; top:auto !important; bottom:auto !important;
    transform:none !important;
    display:none;
    width:min(100%,430px) !important; max-width:100%;
    margin:12px auto 16px !important; z-index:auto;
}
#sgc-cartoon-dock.sgc-cartoon-dock.is-visible { display:block; }
@media (max-width:760px) {
    #sgc-cartoon-dock.sgc-cartoon-dock { width:100% !important; margin:12px 0 !important; }
}
