/* X10 motion layer: restrained terminal feedback inspired by Motion/AutoAnimate. */
:root{--motion-fast:140ms;--motion-base:220ms;--motion-slow:360ms;--ease-terminal:cubic-bezier(.22,1,.36,1);--ease-press:cubic-bezier(.2,.8,.2,1)}
body{background-image:radial-gradient(circle at 78% 0%,rgba(8,119,110,.035),transparent 28rem)}
.index-tile,.contract-card,.mobile-stock-card,.alert-rule-card,.mover-row{transition:transform var(--motion-base) var(--ease-terminal),box-shadow var(--motion-base) var(--ease-terminal),border-color var(--motion-base) ease,background-color var(--motion-base) ease}
.index-tile:hover,.contract-card:not(:disabled):hover,.mobile-stock-card:hover,.mover-row:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,35,50,.08)}
.index-tile[aria-pressed=true]{border-color:rgba(8,119,110,.42);box-shadow:inset 0 -3px 0 var(--accent),0 6px 16px rgba(8,119,110,.09)}
button,.button,.primary-button,.subtle,[role=button]{position:relative;isolation:isolate;overflow:hidden;transition:transform var(--motion-fast) var(--ease-press),box-shadow var(--motion-base) ease,background-color var(--motion-fast) ease,border-color var(--motion-fast) ease,color var(--motion-fast) ease}
button:not(:disabled):not(.segment button):hover,.button:not(:disabled):hover,[role=button]:not([aria-disabled=true]):hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(15,35,50,.1)}
button:not(:disabled):active,.button:not(:disabled):active,[role=button]:not([aria-disabled=true]):active{transform:translateY(0) scale(.985);box-shadow:0 2px 6px rgba(15,35,50,.08)}
button:focus-visible,.button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid rgba(8,119,110,.22)!important;outline-offset:2px}
.x10-ripple{position:absolute;z-index:-1;border-radius:50%;pointer-events:none;background:currentColor;opacity:.12;transform:translate(-50%,-50%) scale(0);animation:x10-ripple 520ms var(--ease-terminal) forwards}
@keyframes x10-ripple{to{opacity:0;transform:translate(-50%,-50%) scale(1)}}
#navigation a{transition:transform var(--motion-fast) var(--ease-terminal),background-color var(--motion-base) ease,color var(--motion-base) ease,box-shadow var(--motion-base) ease}
#navigation a:hover{transform:translateX(3px)}#navigation a.active{box-shadow:inset 3px 0 0 rgba(255,255,255,.72),0 7px 18px rgba(0,0,0,.09)}
.segment button.selected,.stock-sections button[aria-selected=true]{box-shadow:0 3px 10px rgba(8,119,110,.12)}
.metric strong,.hero-quote strong,.stock-price,.breadth-numbers b{transform-origin:left center}.x10-value-pulse{animation:x10-value-pulse 500ms var(--ease-terminal)}
@keyframes x10-value-pulse{0%{background:rgba(8,119,110,.13);transform:scale(.98)}55%{background:rgba(8,119,110,.07);transform:scale(1.025)}100%{background:transparent;transform:scale(1)}}
.notice:not([hidden]),#market-status:not([hidden]){animation:x10-notice-in var(--motion-slow) var(--ease-terminal)}
@keyframes x10-notice-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}
.skeleton{position:relative;overflow:hidden}.skeleton:after{content:'';position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.58),transparent);animation:x10-shimmer 1.25s infinite}
@keyframes x10-shimmer{to{transform:translateX(100%)}}
details>summary{transition:color var(--motion-fast) ease,background-color var(--motion-fast) ease}details>summary:hover{color:var(--accent)}details[open]>:not(summary){animation:x10-disclosure var(--motion-base) var(--ease-terminal)}
@keyframes x10-disclosure{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
tbody tr{transition:background-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease}tbody tr:hover{background:rgba(8,119,110,.035);box-shadow:inset 3px 0 0 rgba(8,119,110,.35)}
.market-hero{align-items:stretch!important}.market-hero>.hero-panel{display:flex;flex-direction:column;height:100%;min-height:0}.market-hero>.hero-panel .market-hero-chart{height:340px!important;min-height:340px;flex:1 1 340px;overflow:hidden}.market-hero>.hero-panel .chart-bottom{margin-top:auto}.market-hero>.hero-aside{display:block}.market-hero>.hero-aside>.panel:last-child{margin-bottom:0}.hero-panel,.market-hero>.hero-aside>.panel{overflow:clip}.hero-panel{position:relative}.hero-panel:before{content:'';position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,var(--accent),transparent 65%);opacity:.55}
.market-discovery-shortcut{transition:border-color var(--motion-base) ease,box-shadow var(--motion-base) ease,transform var(--motion-base) var(--ease-terminal)}.market-discovery-shortcut:hover{transform:translateY(-1px);box-shadow:0 10px 25px rgba(8,119,110,.07)}
@media(max-width:850px){.market-hero>.hero-panel .market-hero-chart{height:340px!important;min-height:340px;flex-basis:340px}.market-hero>.hero-aside{display:grid}}
@media(max-width:760px){.market-hero>.hero-panel .market-hero-chart{height:300px!important;min-height:300px;flex-basis:300px}#navigation a:hover{transform:none}}
body.x10-motion-off *,body.x10-motion-off *:before,body.x10-motion-off *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}body.x10-motion-off .x10-ripple{display:none!important}
