/* Interior interaction layer. Existing layouts and measured values stay unchanged. */
body.tn-theme .tn-page-motion {position:relative;display:block;flex:0 0 168px;width:168px;height:48px;margin-left:auto;pointer-events:none;overflow:hidden}
body.tn-theme .tn-page-motion__fallback,body.tn-theme [data-tn-page-motion-player] {position:absolute;inset:0;width:100%;height:100%}
body.tn-theme .tn-page-motion svg {display:block;width:100%!important;height:100%!important}
body.tn-theme .tn-page-motion[data-renderer="ready"] .tn-page-motion__fallback {visibility:hidden}
body.tn-theme main[data-tn-interior-motion] .tn-analysis__key-metrics>div {animation:none}
html[data-tn-motion="on"] body.tn-theme .tn-page-frame :is(.tn-tool-card,.tn-discovery-result,.tn-post-card) {transition:transform .22s cubic-bezier(.16,1,.3,1),border-color .2s ease,box-shadow .22s ease,background-color .18s ease}
html[data-tn-motion="on"] body.tn-theme .tn-page-frame :is(.tn-tool-card__action b,.tn-post-card-link b,.tn-discovery-journey strong) {display:inline-block;transition:transform .22s cubic-bezier(.16,1,.3,1)}
html[data-tn-motion="on"] body.tn-theme .tn-page-frame .tn-post-card-media img {transition:transform .65s cubic-bezier(.16,1,.3,1);transform-origin:center}
body.tn-theme .tn-page-frame .tn-post-card-media {overflow:hidden}
html[data-tn-motion="on"] body.tn-theme .tn-page-frame :is(.tn-history-periods button,.tn-analysis-source-tab,.tn-autocomplete-tab,.tn-keyword-chip) {transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
html[data-tn-motion="on"] body.tn-theme .tn-page-frame :is(.tn-analysis__submit,.tn-tool-inline-action,.tn-analysis__related-row-action,.tn-analysis__content-analysis-button) {transition:background-color .18s ease,box-shadow .18s ease,transform .16s ease}
body.tn-theme .tn-page-frame .tn-analysis__submit {display:inline-flex;align-items:center;justify-content:center;gap:9px}
body.tn-theme .tn-page-frame .tn-analysis[aria-busy="true"] .tn-analysis__submit::before {content:"";display:block;flex:0 0 15px;width:15px;height:15px;box-sizing:border-box;border:2px solid #ffffff60;border-top-color:#fff;border-radius:50%}
html[data-tn-motion="on"] body.tn-theme .tn-page-frame .tn-analysis[aria-busy="true"] .tn-analysis__submit::before {animation:tn-interior-working .8s linear infinite}
body.tn-theme .tn-page-frame :is(.tn-analysis__context,.tn-analysis__related-filter,.tn-analysis__advanced-results)>summary {display:flex;align-items:center;gap:10px;list-style:none}
body.tn-theme .tn-page-frame :is(.tn-analysis__context,.tn-analysis__related-filter,.tn-analysis__advanced-results)>summary::-webkit-details-marker {display:none}
body.tn-theme .tn-page-frame :is(.tn-analysis__context,.tn-analysis__related-filter,.tn-analysis__advanced-results)>summary::after {content:"";width:7px;height:7px;flex:0 0 7px;margin-left:auto;margin-right:4px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
html[data-tn-motion="on"] body.tn-theme .tn-page-frame :is(.tn-analysis__context,.tn-analysis__related-filter,.tn-analysis__advanced-results)>summary::after {transition:transform .2s ease}
body.tn-theme .tn-page-frame :is(.tn-analysis__context,.tn-analysis__related-filter,.tn-analysis__advanced-results)[open]>summary::after {transform:rotate(225deg)}
@media(hover:hover) and (pointer:fine) {
 html[data-tn-motion="on"] body.tn-theme .tn-page-frame :is(.tn-tool-card,.tn-discovery-result):hover {transform:translateY(-3px);border-color:#a7ba9e;box-shadow:0 6px 0 #17251f08}
 html[data-tn-motion="on"] body.tn-theme .tn-page-frame .tn-tool-card:hover .tn-tool-card__action b,
 html[data-tn-motion="on"] body.tn-theme .tn-page-frame .tn-post-card:hover .tn-post-card-link b {transform:translateX(6px)}
 html[data-tn-motion="on"] body.tn-theme .tn-page-frame .tn-post-card:hover .tn-post-card-media img {transform:scale(1.025)}
 html[data-tn-motion="on"] body.tn-theme .tn-page-frame .tn-discovery-journey a:hover strong {transform:translateX(4px)}
 html[data-tn-motion="on"] body.tn-theme .tn-page-frame .tn-history-cloud__term {transition:background-color .16s ease,transform .18s ease}
 html[data-tn-motion="on"] body.tn-theme .tn-page-frame .tn-history-cloud__term:hover {transform:translateY(-2px)}
}
html[data-tn-motion="on"] body.tn-theme .tn-page-frame .tn-post-card:focus-within .tn-post-card-link b,
html[data-tn-motion="on"] body.tn-theme .tn-page-frame .tn-tool-card:focus-visible .tn-tool-card__action b {transform:translateX(6px)}
html[data-tn-motion="on"] body.tn-theme .tn-page-frame :is(.tn-analysis__submit,.tn-history-periods button,.tn-analysis-source-tab,.tn-tool-inline-action):not(:disabled):active {transform:scale(.975)}
@keyframes tn-interior-working {to {transform:rotate(360deg)}}
@media(max-width:600px) {
 body.tn-theme .tn-page-motion {flex-basis:96px;width:96px;height:36px}
 body.tn-theme .tn-page-header__title-row:has(.tn-page-motion) {column-gap:8px}
 body.tn-theme .tn-page-frame :is(.tn-analysis__context,.tn-analysis__related-filter,.tn-analysis__advanced-results)>summary {flex-wrap:wrap}
}
@media(max-width:380px) {body.tn-theme .tn-page-motion {flex-basis:72px;width:72px;height:30px}}
html[data-tn-motion="off"] body.tn-theme .tn-page-frame :is(.tn-tool-card,.tn-discovery-result,.tn-post-card,.tn-tool-card__action b,.tn-post-card-link b,.tn-post-card-media img,.tn-history-cloud__term,.tn-discovery-journey strong,.tn-history-periods button,.tn-analysis-source-tab,.tn-autocomplete-tab,.tn-keyword-chip,.tn-analysis__submit,.tn-tool-inline-action) {transition:none;animation:none;transform:none}
html[data-tn-motion="off"] body.tn-theme .tn-page-frame .tn-analysis__submit::before,
html[data-tn-motion="off"] body.tn-theme .tn-page-frame summary::after {transition:none;animation:none}
@media(prefers-reduced-motion:reduce) {
 body.tn-theme .tn-page-frame :is(.tn-tool-card,.tn-discovery-result,.tn-post-card,.tn-tool-card__action b,.tn-post-card-link b,.tn-post-card-media img,.tn-history-cloud__term,.tn-discovery-journey strong,.tn-history-periods button,.tn-analysis-source-tab,.tn-autocomplete-tab,.tn-keyword-chip,.tn-analysis__submit,.tn-tool-inline-action) {transition:none!important;animation:none!important;transform:none!important}
 body.tn-theme .tn-page-frame .tn-analysis__submit::before,body.tn-theme .tn-page-frame summary::after {transition:none!important;animation:none!important}
}
@media(forced-colors:active) {body.tn-theme .tn-page-motion {display:none}}
@media print {
 body.tn-theme .tn-page-motion {display:none}
 body.tn-theme .tn-page-frame *,body.tn-theme .tn-page-frame *::before,body.tn-theme .tn-page-frame *::after {animation:none!important;transition:none!important}
}
