/* EE / NOTES MOTION SYSTEM v20261015-r4 */
:root{--ee-motion-ease:cubic-bezier(.2,.75,.26,1);--ee-motion-green:#1e795a;--ee-motion-gold:#d2a750}
html.ee-motion-enabled{scroll-behavior:smooth}
.ee-motion-line{position:fixed;top:0;left:0;width:100%;height:3px;z-index:1100;pointer-events:none;background:linear-gradient(90deg,#206e55 0%,#61aa89 66%,#d2a750 100%);transform-origin:left center;transform:scaleX(0);transition:transform .14s linear}
html.ee-motion-enabled .ee-motion-reveal{opacity:0;transform:translate3d(0,18px,0);transition:opacity .62s var(--ee-motion-ease),transform .62s var(--ee-motion-ease);transition-delay:var(--ee-motion-delay,0ms)}
html.ee-motion-enabled .ee-motion-reveal.ee-motion-visible{opacity:1;transform:none}
html.ee-motion-enabled .ee-motion-reveal.ee-motion-visible.ee-motion-card:hover{transform:translate3d(0,-3px,0)}
html.ee-motion-enabled .ee-motion-card{transition:transform .28s var(--ee-motion-ease),box-shadow .28s var(--ee-motion-ease),border-color .28s ease}
html.ee-motion-enabled .ee-motion-card:hover{box-shadow:0 15px 32px rgba(25,55,38,.095)}
html.ee-motion-enabled :is(.header-nav,.nav,.top-links,.mast nav,.tabbar,.topbar-nav) :is(a,button){transition:background-color .22s ease,color .22s ease,border-color .22s ease,box-shadow .22s ease}
html.ee-motion-enabled :is(.header-nav,.nav,.top-links,.mast nav) a[aria-current="page"]{box-shadow:inset 0 -2px 0 currentColor}
html.ee-motion-enabled :is(button,.btn,.primary-link,.chapter-move):focus-visible{outline:3px solid #2e9973;outline-offset:3px}
html.ee-motion-enabled :is(.filters,.panel,.plan-surface,.side-card,.metric,.card,.hero-note,.hero-plate,.experiment,.stat,.metadata-block){transition:box-shadow .28s ease,border-color .28s ease}
html.ee-motion-enabled details[open] > :not(summary){animation:ee-motion-detail-in .24s var(--ee-motion-ease) both}
@keyframes ee-motion-detail-in{from{opacity:.45;transform:translateY(-5px)}to{opacity:1;transform:none}}
@keyframes ee-motion-tab-in{from{opacity:.5;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
html.ee-motion-enabled[data-ee-motion-page="lab"] .lab-panel.active .experiment{animation:ee-motion-tab-in .38s var(--ee-motion-ease) both}
html.ee-motion-enabled[data-ee-motion-page="lab"] .tabbar .tab{transition:background-color .26s ease,border-color .26s ease,box-shadow .26s ease,transform .26s ease}
html.ee-motion-enabled[data-ee-motion-page="lab"] .tabbar .tab:hover{transform:translateY(-2px)}
html.ee-motion-enabled[data-ee-motion-page="lab"] .tabbar .tab.active{box-shadow:inset 0 -3px 0 var(--ee-motion-green)}
html.ee-motion-enabled[data-ee-motion-page="buzz"] #app .onboarding-card{animation:ee-motion-tab-in .4s var(--ee-motion-ease) both}
html.ee-motion-enabled[data-ee-motion-page="buzz"] #app .screen{animation:ee-motion-buzz-in .28s var(--ee-motion-ease)}
@keyframes ee-motion-buzz-in{from{opacity:.7}to{opacity:1}}
html.ee-motion-enabled[data-ee-motion-page="buzz"] #app .nav-button{transition:background-color .2s,color .2s,transform .2s}
html.ee-motion-enabled[data-ee-motion-page="buzz"] #app .nav-button:active{transform:scale(.96)}
.ee-motion-rail{position:fixed;right:12px;top:50%;transform:translateY(-50%);z-index:90;display:flex;align-items:center;flex-direction:column;gap:8px;padding:10px 5px;background:rgba(255,254,250,.85);border:1px solid rgba(81,110,87,.19);border-radius:22px;box-shadow:0 8px 24px rgba(24,55,40,.08);backdrop-filter:blur(12px)}
.ee-motion-rail button{position:relative;display:flex;align-items:center;justify-content:center;width:29px;height:29px;border:0;border-radius:50%;padding:0;background:transparent;color:#68786a;cursor:pointer;transition:background .2s,color .2s,transform .2s;font:850 10px/1 ui-monospace,Consolas,monospace}
.ee-motion-rail button:hover,.ee-motion-rail button:focus-visible{background:#e5efe6;transform:scale(1.08)}
.ee-motion-rail button[aria-current="location"]{background:#1e694f;color:white}
.ee-motion-rail .ee-motion-rail-label{position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%) translateX(5px);opacity:0;pointer-events:none;white-space:nowrap;max-width:230px;overflow:hidden;text-overflow:ellipsis;padding:8px 12px;border-radius:7px;background:#1d3b30;color:white;font:800 12px/1.3 Inter,"Noto Sans TC",system-ui,sans-serif;box-shadow:0 5px 20px rgba(20,52,33,.2);transition:opacity .2s,transform .2s}
.ee-motion-rail button:hover .ee-motion-rail-label,.ee-motion-rail button:focus-visible .ee-motion-rail-label{opacity:1;transform:translateY(-50%) translateX(0)}
.ee-motion-repaint{animation:ee-motion-highlight .36s ease-out both}
@keyframes ee-motion-highlight{0%{filter:brightness(1.14);transform:scale(1.035)}100%{filter:none;transform:none}}
html.ee-motion-enabled[data-ee-motion-page="buzz"] .ee-motion-rail{display:none}
@media(max-width:1020px){.ee-motion-rail{right:6px;padding:7px 3px}.ee-motion-rail button{width:24px;height:24px;font-size:9px}}
@media(max-width:760px){.ee-motion-rail{display:none!important}.ee-motion-line{height:2px}html.ee-motion-enabled .ee-motion-reveal{transform:translateY(11px);transition-duration:.38s}html.ee-motion-enabled .ee-motion-card:hover{box-shadow:none!important}}
@media(prefers-reduced-motion:reduce){html.ee-motion-enabled,html.ee-motion-enabled *{scroll-behavior:auto!important}html.ee-motion-enabled .ee-motion-reveal{opacity:1!important;transform:none!important;transition:none!important}html.ee-motion-enabled .ee-motion-line{transition:none!important}html.ee-motion-enabled .ee-motion-card:hover{transform:none!important}html.ee-motion-enabled[data-ee-motion-page="lab"] .lab-panel.active .experiment,html.ee-motion-enabled[data-ee-motion-page="buzz"] #app .screen,html.ee-motion-enabled[data-ee-motion-page="buzz"] #app .onboarding-card,html.ee-motion-enabled details[open]>:not(summary){animation:none!important}}
@media print{.ee-motion-line,.ee-motion-rail{display:none!important}html.ee-motion-enabled .ee-motion-reveal{opacity:1!important;transform:none!important;transition:none!important}}

html.ee-motion-enabled[data-ee-motion-page="exercises"] .exercise-card{transition:border-color .24s ease,box-shadow .24s ease,background-color .24s ease}
html.ee-motion-enabled[data-ee-motion-page="exercises"] .exercise-card:hover,html.ee-motion-enabled[data-ee-motion-page="exercises"] .exercise-card:focus-within{border-color:#659a78;box-shadow:0 8px 24px rgba(26,76,48,.09)}
html.ee-motion-enabled[data-ee-motion-page="planner"] .task,html.ee-motion-enabled[data-ee-motion-page="planner"] .day{transition:background-color .24s ease,border-color .24s ease}
html.ee-motion-enabled :is(.coverage-meter>span,.track>span,.progress-bar>span){transition:width .45s cubic-bezier(.2,.75,.26,1)}
@media(prefers-reduced-motion:reduce){html.ee-motion-enabled .exercise-card,html.ee-motion-enabled .task,html.ee-motion-enabled .day,html.ee-motion-enabled :is(.coverage-meter>span,.track>span,.progress-bar>span){transition:none!important}}

/* R4 rendering performance override */
html.ee-motion-enabled .ee-motion-card{box-shadow:none!important;transform:none!important;transition:border-color .16s ease!important}
html.ee-motion-enabled .ee-motion-card:hover{box-shadow:none!important;transform:none!important}
html.ee-motion-enabled :is(.masthead,.scroll-chapter-bar,.ee-motion-rail){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.ee-motion-enabled .scroll-chapter-bar{background:#fbfcf6!important;box-shadow:0 2px 9px rgba(20,45,28,.055)!important}
html.ee-motion-enabled .ee-motion-reveal{transition-duration:.22s!important;transform:translateY(7px)}
html.ee-motion-enabled .ee-motion-reveal.ee-motion-visible{transform:none}
.ee-motion-rail{background:#fffefa!important;box-shadow:none!important}
@media(max-width:760px){html.ee-motion-enabled .ee-motion-reveal{transition-duration:.16s!important}}

/* Avoid full-screen/tab compositing and cascading detail animations */
html.ee-motion-enabled[data-ee-motion-page="buzz"] #app .screen,html.ee-motion-enabled[data-ee-motion-page="buzz"] #app .onboarding-card,html.ee-motion-enabled[data-ee-motion-page="lab"] .lab-panel.active .experiment,html.ee-motion-enabled details[open]>:not(summary){animation:none!important}
html.ee-motion-enabled[data-ee-motion-page="lab"] .lab-panel.active .exp-head{animation:ee-motion-detail-in .18s ease-out both}
html.ee-motion-enabled .ee-motion-line{transition:transform .11s linear}

/* R5 – motion design and rendering budget: composited transforms only */
:root{--ee-motion-ease:cubic-bezier(.22,.72,.25,1)}
html.ee-motion-enabled .ee-motion-line{transition:none!important}
html.ee-motion-enabled[data-ee-motion-page="index"] .scroll-track>span{width:100%!important;transform:scaleX(0);transform-origin:left center;transition:none!important}
html.ee-motion-enabled :is(.hero-heading,.hero-board,.hero-note,.hero-plate,.detail-main,.page-main>.section-title){transition-timing-function:var(--ee-motion-ease)}
html.ee-motion-enabled .ee-motion-reveal{transition-duration:.26s!important;transform:translate3d(0,8px,0)}
html.ee-motion-enabled .ee-motion-reveal.ee-motion-visible{transform:none}
html.ee-motion-enabled :is(.top-links,.nav,.header-nav,.tabbar,.topbar-nav,.mast nav) :is(a,button){transition:color .17s ease,background-color .17s ease,border-color .17s ease}
html.ee-motion-enabled :is(.exercise-card,.task,.day,.tab,.school-switch button){transition:border-color .2s ease,background-color .2s ease,color .2s ease}
@media(hover:hover) and (pointer:fine){
html.ee-motion-enabled[data-ee-motion-page="exercises"] .exercise-card:hover{border-color:#68a081}
html.ee-motion-enabled[data-ee-motion-page="planner"] :is(.task,.day):hover{border-color:#7ca891}
}
@media(max-width:760px){html.ee-motion-enabled .ee-motion-reveal{transition-duration:.18s!important}}
@media(prefers-reduced-motion:reduce){html.ee-motion-enabled .ee-motion-reveal,html.ee-motion-enabled :is(.exercise-card,.task,.day,.tab){animation:none!important;transition:none!important;transform:none!important;opacity:1!important}}


/* EE / NOTES navigation R6 – three priorities + progressive disclosure */
html.ee-compact-ready .masthead .top-links,
html.ee-compact-ready .mast-inner>.nav-more,
html.ee-compact-ready .site-header .header-nav,
html.ee-compact-ready .mast-in>.nav,
html.ee-compact-ready .mast-inner>.nav,
html.ee-compact-ready .mast .bar>nav:not(.ee-compact-nav),
html.ee-compact-ready .mast>.shell>nav:not(.ee-compact-nav){display:none!important}
html.ee-compact-ready .ee-compact-nav{
  display:flex!important;align-items:center!important;justify-content:flex-end;flex:1 1 auto;
  gap:clamp(9px,1.8vw,25px)!important;min-width:0;max-width:none;
  border:0!important;padding:0!important;margin:0!important;
  overflow:visible!important;white-space:nowrap!important;scrollbar-width:auto!important;
  background:none!important;position:relative;z-index:60;
}
html.ee-compact-ready .ee-compact-nav>a,
html.ee-compact-ready .ee-compact-more>summary{
  display:inline-flex!important;align-items:center!important;justify-content:center;
  flex:0 0 auto;min-height:38px;padding:7px 3px!important;margin:0!important;
  font:800 clamp(12px,1vw,14px)/1.35 Inter,"Noto Sans TC",system-ui,sans-serif!important;
  letter-spacing:0!important;text-decoration:none!important;text-transform:none!important;
  color:var(--ink,#171b1b)!important;background:transparent!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  opacity:.76;transition:opacity .16s ease,color .16s ease!important;
  cursor:pointer;
}
html.ee-compact-ready .ee-compact-nav>a:hover,
html.ee-compact-ready .ee-compact-more>summary:hover,
html.ee-compact-ready .ee-compact-nav>a[aria-current="page"]{
  opacity:1;color:var(--ink,#171b1b)!important;
}
html.ee-compact-ready .ee-compact-nav>a[aria-current="page"]{
  box-shadow:inset 0 -2px 0 currentColor!important
}
html.ee-compact-ready .ee-compact-more{display:block!important;position:relative;flex:0 0 auto}
html.ee-compact-ready .ee-compact-more>summary{list-style:none;gap:5px;user-select:none}
html.ee-compact-ready .ee-compact-more>summary::-webkit-details-marker{display:none}
html.ee-compact-ready .ee-compact-more>summary:after{
  content:"";display:inline-block;width:6px;height:6px;border-right:1.7px solid currentColor;
  border-bottom:1.7px solid currentColor;transform:translateY(-2px) rotate(45deg);
  margin-left:7px;transition:transform .15s ease;
}
html.ee-compact-ready .ee-compact-more[open]>summary:after{transform:translateY(2px) rotate(225deg)}
html.ee-compact-ready .ee-compact-more>summary.ee-compact-section-active{opacity:1}
html.ee-compact-ready .ee-compact-menu{
  display:block!important;position:absolute!important;top:calc(100% + 9px);right:0;
  width:min(290px,calc(100vw - 24px));max-height:min(73vh,520px);overflow-y:auto;
  padding:12px!important;border:1px solid #d2dcd1!important;border-radius:12px!important;
  background:#fffefa!important;color:#171b1b!important;
  box-shadow:0 12px 32px rgba(19,44,32,.12)!important;z-index:1000;
  white-space:normal!important;overscroll-behavior:contain;
}
html.ee-compact-ready .ee-compact-group+.ee-compact-group{border-top:1px solid #e3e8df;margin-top:8px;padding-top:8px}
html.ee-compact-ready .ee-compact-group-label{
  font:800 11px/1.3 Inter,"Noto Sans TC",system-ui,sans-serif;
  color:#63746a;letter-spacing:.06em;margin:4px 7px 5px;
}
html.ee-compact-ready .ee-compact-menu .ee-compact-option{
  display:block!important;width:100%!important;box-sizing:border-box;float:none!important;
  text-align:left!important;margin:0!important;padding:9px 11px!important;
  font:750 13px/1.45 Inter,"Noto Sans TC",system-ui,sans-serif!important;
  color:#1a2b21!important;text-decoration:none!important;
  background:transparent!important;border:0!important;border-radius:7px!important;
  box-shadow:none!important;letter-spacing:0!important;transform:none!important;
  white-space:normal!important;cursor:pointer;
}
html.ee-compact-ready .ee-compact-menu .ee-compact-option:hover,
html.ee-compact-ready .ee-compact-menu .ee-compact-option:focus-visible,
html.ee-compact-ready .ee-compact-menu .ee-compact-option[aria-current="page"]{
  color:#105c43!important;background:#e7f0e7!important;
}
html.ee-compact-ready .ee-compact-nav :is(a,summary,button):focus-visible{
  outline:2px solid #2a8061!important;outline-offset:3px!important;
}
html.ee-compact-ready :is(.mast-inner,.mast-in,.header-row,.mast .bar,.mast>.shell){min-width:0}
@media(max-width:720px){
  html.ee-compact-ready .ee-compact-nav{gap:9px!important}
  html.ee-compact-ready .ee-compact-nav>a,
  html.ee-compact-ready .ee-compact-more>summary{font-size:12px!important;padding:7px 0!important}
  html.ee-compact-ready .mast-inner>.wordmark small,
  html.ee-compact-ready .header-row>.logo small{display:none!important}
  html.ee-compact-ready .mast-inner>.wordmark{font-size:19px!important;white-space:nowrap}
}
@media(max-width:390px){
  html.ee-compact-ready .ee-compact-nav{gap:6px!important}
  html.ee-compact-ready .ee-compact-nav>a,
  html.ee-compact-ready .ee-compact-more>summary{font-size:11.5px!important}
  html.ee-compact-ready .ee-compact-more>summary:after{margin-left:4px}
  html.ee-compact-ready .mast-inner>.wordmark{font-size:17px!important}
  html.ee-compact-ready .mast .brand,
  html.ee-compact-ready .mast .logo,
  html.ee-compact-ready .site-header .logo{font-size:16px!important;white-space:nowrap}
}
@media print{.ee-compact-more{display:none!important}}


/* R6 responsive polish: keep the header one-row, keep menu above progress rail */
html.ee-compact-ready .masthead,
html.ee-compact-ready .site-header,
html.ee-compact-ready .mast{z-index:125!important}
@media(max-width:800px){
 html.ee-compact-ready .mast .mast-in,
 html.ee-compact-ready .mast .mast-inner,
 html.ee-compact-ready .mast .bar,
 html.ee-compact-ready .mast>.shell,
 html.ee-compact-ready .site-header .header-row{
   display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
   justify-content:space-between!important;gap:8px!important;
 }
 html.ee-compact-ready .mast .mast-in{padding:8px 0!important}
 html.ee-compact-ready .mast .mast-inner{padding:8px 0!important}
 html.ee-compact-ready .mast>.shell{padding-top:8px!important;padding-bottom:8px!important}
 html.ee-compact-ready .ee-compact-nav{width:auto!important;max-width:none!important;flex-wrap:nowrap!important}
}
@media(max-width:470px){
 html.ee-compact-ready .mast .logo small,
 html.ee-compact-ready .site-header .logo small,
 html.ee-compact-ready .mast .brand small{display:none!important}
 html.ee-compact-ready .ee-compact-nav{gap:7px!important}
 html.ee-compact-ready .ee-compact-nav>a,
 html.ee-compact-ready .ee-compact-more>summary{min-height:34px}
}


/* R6 reduce competing CTAs without removing actions */
html.ee-compact-ready .site-header,html.ee-compact-ready .mast{
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important
}
html.ee-compact-ready[data-ee-motion-page="index"] .reader-actions .chapter-move{
  border:0!important;background:transparent!important;box-shadow:none!important;
  color:#2d6750!important;padding:9px 8px!important;border-radius:4px!important;
}
html.ee-compact-ready[data-ee-motion-page="index"] .reader-actions .chapter-move:hover{
  background:#e7f0e8!important
}
html.ee-compact-ready[data-ee-motion-page="exercises"] .hero-links a:not(:first-of-type){
  background:transparent!important;color:#245a45!important;
  box-shadow:none!important;border-color:#9fbbae!important;
}

@media(max-width:840px){html.ee-motion-enabled .ee-motion-reveal{opacity:1!important;transform:none!important;transition:none!important}html.ee-motion-enabled .ee-motion-card{transform:none!important;transition:none!important;box-shadow:none!important}html.ee-motion-enabled .ee-motion-line,html.ee-motion-enabled .ee-motion-rail{display:none!important}}