/* SheepCloud V3.1.6.5 — One visually unified discovery card. */
.sc3163-dialog{background:#fff;border-radius:24px!important;overflow-y:auto!important;overflow-x:hidden!important;box-shadow:0 24px 70px rgba(11,30,40,.32);border:1px solid #d5e2e1;}
.sc3163-dialog #sc3163Card .v3160-featured-card{border:0;border-radius:24px;box-shadow:none;overflow:hidden;}
.sc3163-dialog #sc3163Card .v3160-featured-copy{padding:20px 24px 17px;}
.sc3163-dialog #sc3163Card .v3160-featured-hero{height:190px;}
.sc3163-dialog .v3160-featured-no{font-size:9px;letter-spacing:.07em;}
.sc3163-dialog .v3160-featured-go{min-height:44px;}
.sc3163-dialog .sc3165-shake-footer{background:#f3f8f7;border-top:1px solid #e4ecea;padding:13px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.sc3165-shake-footer-copy{display:grid;gap:4px;min-width:0;}
.sc3165-shake-footer-copy strong{color:#386d70;font-size:12px;font-weight:850;}
.sc3165-shake-footer-copy small{color:#81959b;font-size:10px;line-height:1.4;}
.sc3163-dialog .sc3163-again{flex:none;min-height:44px;background:white;white-space:nowrap;}
.sc3163-dialog .v3160-featured-hero.has-photo .v3160-featured-art{opacity:.15;}
.sc3163-dialog .sc3165-shake-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.sc3163-dialog .sc3163-loading{border-radius:24px;}
@media(max-width:480px){.sc3163-dialog .sc3165-shake-footer{padding:12px 16px;gap:8px}.sc3163-dialog .sc3165-shake-footer-copy small{font-size:9px}.sc3163-dialog #sc3163Card .v3160-featured-copy{padding:17px}.sc3163-dialog #sc3163Card .v3160-featured-hero{height:165px}.sc3163-dialog .v3160-featured-no{display:none}}
@media(prefers-reduced-motion:reduce){.sc3163-dialog .sc3165-unified-card{animation:none!important}}
/* Student thumbnail editing */
.sc3165-thumb-editor{grid-column:1/-1;border:1px solid #dce7e9;border-radius:14px;background:#f7fafb;padding:13px;display:grid;grid-template-columns:minmax(110px,175px) minmax(0,1fr);gap:14px;align-items:center;}
.sc3165-thumb-preview{aspect-ratio:16/9;background:linear-gradient(120deg,#d3e6e0,#f3ded0);border-radius:11px;overflow:hidden;display:grid;place-items:center;color:#496b72;font-size:12px;font-weight:800;}
.sc3165-thumb-preview img{width:100%;height:100%;object-fit:cover;}
.sc3165-thumb-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px;}
.sc3165-thumb-actions button{min-height:38px;border:1px solid #c8d8dc;background:white;border-radius:10px;padding:7px 12px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;}
.sc3165-thumb-actions button.sc3165-primary{background:#e9f4ef;color:#236c59;border-color:#b8dcd0;}
.sc3165-thumb-info{font-size:11px;color:#71858b;line-height:1.6;display:block;margin-top:6px;}
.sc3165-thumb-editor input[type=file]{position:absolute;width:1px;height:1px;opacity:0;}
.sc3165-world-thumb{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(145deg,#f7f9fa,#eef2f4);overflow:hidden;}
.sc3165-world-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.sc3165-world-thumb.is-ready{background:#e8f0ef;}
@media(max-width:530px){.sc3165-thumb-editor{grid-template-columns:1fr}.sc3165-thumb-preview{width:min(100%,320px)}.sc3165-thumb-actions button{min-height:44px}}

.student-project-work-card .sc3165-student-preview{aspect-ratio:16/9;max-height:135px;margin:-3px 0 10px;border-radius:10px;background:linear-gradient(125deg,#d9ebe9,#f6e9df);display:grid;place-items:center;color:#57807d;font-size:28px;overflow:hidden;}
.student-project-work-card .sc3165-student-preview img{height:100%;width:100%;object-fit:cover;}
.sc3165-thumb-info.error{color:#b64d42;}

/* World hall: every student-owned cover is the same light 16:9 asset. */
.world-work-card .sc3165-world-card-image{display:block;aspect-ratio:16/9;max-height:142px;width:100%;border-radius:12px 12px 0 0;overflow:hidden;position:relative;background:linear-gradient(125deg,#dcece7,#f5e8dd);}
.world-work-card .sc3165-world-card-image span{position:absolute;inset:0;display:grid;place-items:center;font-size:28px;color:#658682;}
.world-work-card .sc3165-world-card-image img{width:100%;height:100%;object-fit:cover;display:block;}
.world-work-card.project-compact-v2637 .sc3165-world-card-image{max-height:105px;}

/* V31654: consistent cover geometry for every work, no row height inflation. */
.world-work-card .sc3165-world-card-image,.world-work-card.project-compact-v2637 .sc3165-world-card-image{flex:0 0 auto;aspect-ratio:16/9;max-height:none;height:auto;width:100%;border-radius:0;background:linear-gradient(125deg,#dcece7,#f5e8dd);}
.world-work-card .sc3165-world-card-image span{font-size:30px;color:#658682;}
#worldWorksBody .world-work-content,#studentWorldWorksBody .world-work-content{height:auto!important;}
#sc31654TeacherThumbModal .sc3165-thumb-editor{margin:12px 0;}
