/* ===== Motion (docs/01-design-system.md §5) ===== */
:root{--ease:cubic-bezier(.2,.8,.2,1); --t-fast:120ms; --t:200ms; --t-slow:300ms}
.app{transition:grid-template-columns var(--t-slow) var(--ease)}
.btn,.icon-btn,.chip,.tab,.nav-item,.fp-row,.pcol,.fchip,.outcomes button,.stepper button,.add-btn,.cour,.seg button,.seg2 button,.line .x,.link,.call,.eye{
  transition:background-color var(--t-fast) ease,color var(--t-fast) ease,border-color var(--t-fast) ease,box-shadow var(--t-fast) ease,transform var(--t-fast) var(--ease),opacity var(--t-fast) ease}
.btn:active:not(:disabled),.icon-btn:active:not(:disabled),.add-btn:active,.outcomes button:active,.tab:active,.fchip:active,.chip:active{transform:scale(.96)}
.fp-check,.fp-radio{transition:background-color var(--t-fast) ease,border var(--t-fast) var(--ease)}
.tbl tbody tr{transition:background-color var(--t-fast) ease}

@keyframes popIn{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes slideFwd{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@keyframes slideBack{from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:none}}
@keyframes rowIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes lineIn{0%{opacity:0;transform:translateX(12px);background:color-mix(in srgb,var(--brand-peach) 45%,transparent)}60%{opacity:1;transform:none}100%{background:transparent}}
@keyframes bump{0%{transform:scale(1)}35%{transform:scale(1.1);color:var(--brand-orange-ui)}100%{transform:scale(1)}}
@keyframes modalIn{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}

.fpop.show,.menu{animation:popIn var(--t) var(--ease);transform-origin:top left}
.viewpop.show{animation:popIn var(--t) var(--ease);transform-origin:top right}
.fp-body.fp-fwd{animation:slideFwd var(--t) var(--ease)}
.fp-body.fp-back{animation:slideBack var(--t) var(--ease)}
.tbl tbody.rows-in tr{animation:rowIn var(--t-slow) var(--ease) both;animation-delay:calc(var(--i,0) * 16ms)}
.page-in{animation:fadeIn var(--t-slow) ease}
.page-in .page-head,.page-in .tabs,.page-in .toolbar{animation:rise var(--t-slow) var(--ease) both}
.page-in .tabs{animation-delay:40ms}.page-in .toolbar{animation-delay:80ms}
.opanel.enter .op-head{animation:fadeIn var(--t) ease both}
.opanel.enter .op-body>*{animation:rise var(--t-slow) var(--ease) both}
.opanel.enter .op-body>*:nth-child(2){animation-delay:40ms}
.opanel.enter .op-body>*:nth-child(3){animation-delay:80ms}
.opanel.enter .op-body>*:nth-child(4){animation-delay:120ms}
.opanel.enter .op-body>*:nth-child(5){animation-delay:160ms}
.opanel.enter .op-body>*:nth-child(n+6){animation-delay:200ms}
.line.line-in{animation:lineIn 700ms var(--ease);border-radius:12px}
.bump{display:inline-block;animation:bump 420ms var(--ease)}
.modal-wrap.show .modal{animation:modalIn var(--t-slow) var(--ease)}
.switch .sw,.switch .sw::after{transition-timing-function:var(--ease)}
html.theming,html.theming *{transition:background-color 300ms ease,color 300ms ease,border-color 300ms ease,fill 300ms ease !important}

