/* ELVORA UI fixes (loaded after the main stylesheet).
   My Tasks > "You have more than one internship": on phones the internship cards were a side-scrolling strip whose second card ran off the screen.
   Now the cards stack and always fit the screen width (on wide screens they sit side by side as before). */
.isw{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:var(--s-3);overflow:visible;scroll-snap-type:none;margin-inline:0;padding:0}
.isw__tab{flex:initial;width:100%;min-width:0;scroll-snap-align:none}

/* ---------- Motion & polish layer (v2) ---------- */
:root{--ease-out:cubic-bezier(.22,1,.36,1);--ease-spring:cubic-bezier(.34,1.56,.64,1)}
@keyframes ev-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes ev-fill{from{width:0}}
@keyframes ev-sheet{from{opacity:0;transform:translateY(40px) scale(.98)}to{opacity:1;transform:none}}
@keyframes ev-veil{from{opacity:0}to{opacity:1}}
@keyframes ev-glow{0%,100%{box-shadow:0 0 0 0 rgba(37,99,235,.35)}50%{box-shadow:0 0 0 8px rgba(37,99,235,0)}}
@keyframes ev-shine{from{background-position:-200% 0}to{background-position:200% 0}}

/* Pages ease in, and lists reveal one item after another */
.track,.intern,.page,main>section{animation:ev-rise .5s var(--ease-out) both}
.tl-list>li,.adm-bars>li,.isw__tab,.notif-list>li{animation:ev-rise .5s var(--ease-out) both}
.tl-list>li:nth-child(1){animation-delay:.04s}.tl-list>li:nth-child(2){animation-delay:.08s}.tl-list>li:nth-child(3){animation-delay:.12s}
.tl-list>li:nth-child(4){animation-delay:.16s}.tl-list>li:nth-child(5){animation-delay:.2s}.tl-list>li:nth-child(n+6){animation-delay:.24s}
.tk-hero,.tk-next{animation:ev-rise .55s var(--ease-out) both}.tk-next{animation-delay:.08s}

/* Progress bars fill smoothly, with a soft moving shine while unfinished */
.td__meter>span,.intern__progress>div>div,.intern__progress>div,.adm-bars span span{transition:width .8s var(--ease-out)}
.td__meter>span,.intern__progress>div>div{animation:ev-fill 1s var(--ease-out) both;background-image:linear-gradient(90deg,var(--blue),var(--teal),var(--blue));background-size:200% 100%;animation:ev-fill 1s var(--ease-out) both,ev-shine 3s linear infinite}

/* Cards and buttons feel touchable */
.card--interactive,.tk-task{transition:transform .25s var(--ease-out),box-shadow .25s var(--ease-out),border-color .2s}
.card--interactive:hover,.tk-task:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.card--interactive:active,.tk-task:active{transform:translateY(0) scale(.985)}
.btn{transition:transform .18s var(--ease-out),box-shadow .2s,background-color .2s,border-color .2s}
.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:active:not(:disabled){transform:scale(.97)}
.btn--primary:not(:disabled){box-shadow:0 8px 20px -10px rgba(37,99,235,.7)}
.tk-task__n{transition:transform .3s var(--ease-spring)}.tk-task:hover .tk-task__n{transform:scale(1.12) rotate(-4deg)}
.tk-task--approved .tk-task__n{animation:ev-glow 2.4s ease-in-out 1}

/* Dialogs and bottom sheets slide up over a fading backdrop */
.modal,[class*="adm-modal"],[class*="adm-overlay"],[class*="adm-sheet"]{animation:ev-veil .22s ease both}
.modal__box,[class*="adm-modal__"],[class*="adm-sheet__"]{animation:ev-sheet .38s var(--ease-out) both}
.field__control:focus,.field__control:focus-within,input:focus,textarea:focus,select:focus{transition:box-shadow .2s,border-color .2s}
.adm-autonote{margin:0 0 var(--s-3);padding:var(--s-3);border-radius:var(--r-md);background:#eff6ff;color:#1e3a8a;font-size:var(--fs-sm);line-height:1.5}

/* Empty states */
.empty{animation:ev-rise .6s var(--ease-out) both}
.empty__icon{display:inline-grid;animation:floaty 4s ease-in-out infinite}

@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
