:root {
  --global-accent: #e6764f;
  --global-accent-2: #e9aa45;
  --global-surface: #ffffff;
  --global-bg: #f6f7f8;
  --global-tint: #fbf1ec;
}

[hidden] {
  display: none !important;
}

body[data-global-theme="candy"] {
  --global-accent: #c96f91;
  --global-accent-2: #d49aaa;
  --global-bg: #f8f6f7;
  --global-tint: #f5ecef;
  --orange: #c96f91;
  --orange-dark: #a85273;
  --yellow: #d9ad70;
  --mint: #75aa9d;
  --purple: #8b7eb0;
}
body[data-global-theme="forest"] {
  --global-accent: #56866d;
  --global-accent-2: #93a76d;
  --global-bg: #f5f7f5;
  --global-tint: #eaf0eb;
  --orange: #56866d;
  --orange-dark: #3e6c55;
  --yellow: #b39b61;
  --mint: #6d9c82;
  --purple: #73899c;
}
body[data-global-theme="ocean"] {
  --global-accent: #527f9e;
  --global-accent-2: #78a5a3;
  --global-bg: #f4f7f8;
  --global-tint: #e8f0f3;
  --orange: #527f9e;
  --orange-dark: #396987;
  --yellow: #b7a46b;
  --mint: #6e9993;
  --purple: #7183a3;
}

body[data-global-theme] { background-image: none !important; background-color: var(--global-bg) !important; }

.study-tools {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.study-tools.is-dragging { user-select: none; }
.fox-button {
  position: relative;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  perspective: 620px;
  touch-action: none;
  user-select: none;
}
.fox-button:active { cursor: grabbing; }
.fox-button:focus-visible { outline: 3px solid rgba(68, 126, 194, .38); outline-offset: 4px; border-radius: 50%; }
.fox-avatar-shell {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: rotateX(1deg) translateZ(0) scale(1);
  transform-style: preserve-3d;
  transition: transform .24s ease;
}
.fox-motion {
  position: absolute;
  z-index: 2;
  inset: -8px -7px 1px;
  overflow: visible;
  transform-origin: 50% 88%;
  transform: translateZ(24px);
  filter: drop-shadow(0 6px 5px rgba(82, 52, 28, .22)) drop-shadow(0 16px 14px rgba(38, 46, 59, .12));
  animation: pet-idle 3.8s ease-in-out infinite;
  will-change: transform;
}
.fox-motion img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: scale(1.4);
  transform-origin: 50% 58%;
}
.fox-avatar-base {
  position: absolute;
  z-index: 1;
  left: 18%;
  right: 18%;
  bottom: 1px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(61, 42, 28, .3), rgba(61, 42, 28, 0) 70%);
  filter: blur(2px);
  transform: translateZ(5px) rotateX(62deg);
  transition: transform .24s ease, opacity .24s ease;
}
.study-tools.is-dragging .fox-avatar-shell { transform: scale(.94) rotateX(7deg) rotateY(-5deg); }
.study-tools.is-dragging .fox-avatar-base { opacity: .55; transform: translateZ(5px) rotateX(62deg) scale(.78); }
.study-tools[data-pet-state="running"] .fox-motion { animation: pet-working 1.8s ease-in-out infinite; }
.study-tools[data-pet-state="needs-input"] .fox-motion { animation: pet-listening 2.1s ease-in-out infinite; }
.study-tools[data-pet-state="ready"] .fox-motion { animation: pet-ready .75s ease-in-out 2; }
.study-tools[data-pet-state="blocked"] .fox-motion { animation: pet-blocked 1.9s ease-in-out infinite; }
.study-tools.is-playing .fox-motion { animation: pet-play .95s cubic-bezier(.2, .86, .3, 1) both; }
.study-tools.is-playing .fox-avatar-base { animation: pet-shadow-play .95s cubic-bezier(.2, .86, .3, 1) both; }
@media (hover: hover) {
  .fox-button:hover .fox-avatar-shell {
    transform: translateY(-5px) rotateX(6deg) rotateY(-6deg) scale(1.035);
  }
}

@keyframes pet-idle {
  0%, 100% { transform: translateZ(24px) translateY(0) rotate(0) scale(1); }
  48% { transform: translateZ(27px) translateY(-3px) rotate(-.7deg) scale(1.012); }
  54% { transform: translateZ(27px) translateY(-3px) rotate(.5deg) scale(1.012); }
}
@keyframes pet-working { 0%,100% { transform: translateZ(24px) translateY(0) rotate(0); } 50% { transform: translateZ(28px) translateY(-4px) rotate(-1deg); } }
@keyframes pet-listening { 0%,100% { transform: translateZ(24px) rotate(0); } 45% { transform: translateZ(27px) translateY(-2px) rotate(1.8deg); } 70% { transform: translateZ(27px) translateY(-2px) rotate(-1deg); } }
@keyframes pet-ready { 0%,100% { transform: translateZ(24px) translateY(0) scale(1); } 48% { transform: translateZ(30px) translateY(-7px) scale(1.035); } }
@keyframes pet-blocked { 0%,100% { transform: translateZ(24px) translateX(0) rotate(0); } 35% { transform: translateZ(25px) translateX(-2px) rotate(-1.2deg); } 70% { transform: translateZ(25px) translateX(2px) rotate(1.2deg); } }
@keyframes pet-play {
  0% { transform: translateZ(24px) translateY(0) rotate(0) scale(1); }
  28% { transform: translateZ(34px) translateY(-11px) rotate(-4deg) scale(1.045); }
  52% { transform: translateZ(31px) translateY(-6px) rotate(4deg) scale(1.03); }
  74% { transform: translateZ(27px) translateY(-3px) rotate(-2deg) scale(1.015); }
  100% { transform: translateZ(24px) translateY(0) rotate(0) scale(1); }
}
@keyframes pet-shadow-play {
  0%, 100% { opacity: 1; transform: translateZ(5px) rotateX(62deg) scale(1); }
  32% { opacity: .52; transform: translateZ(5px) rotateX(62deg) scale(.68); }
}

body[data-global-theme] .hero { background: var(--global-tint); }
body[data-global-theme] .hero::before, body[data-global-theme] .sticker { display: none; }
body[data-page="math"][data-global-theme] { background: var(--global-bg) !important; }
body[data-page="reading"][data-global-theme="candy"], body[data-page="explore"][data-global-theme="candy"] { --accent:#d95e98;--accent-dark:#a83d70; }
body[data-page="reading"][data-global-theme="forest"], body[data-page="explore"][data-global-theme="forest"] { --accent:#3d956b;--accent-dark:#28724f; }
body[data-page="reading"][data-global-theme="ocean"], body[data-page="explore"][data-global-theme="ocean"] { --accent:#3d8cc6;--accent-dark:#286b9e; }
body[data-global-theme="candy"] .topbar, body[data-global-theme="candy"] .mobile-nav,
body[data-global-theme="forest"] .topbar, body[data-global-theme="forest"] .mobile-nav,
body[data-global-theme="ocean"] .topbar, body[data-global-theme="ocean"] .mobile-nav { border-color: color-mix(in srgb, var(--global-accent) 20%, #eee); }

body[data-page="math"],
body[data-page="words"],
body[data-page="reading"],
body[data-page="explore"] {
  --ink: #20304a;
  --muted: #718097;
  --paper: #fffdf8;
  --line: #eee9de;
  --shadow: 0 14px 34px rgba(58, 55, 45, .08);
}

body[data-page="math"][data-global-theme],
body[data-page="words"][data-global-theme],
body[data-page="reading"][data-global-theme],
body[data-page="explore"][data-global-theme] {
  background: var(--global-bg) !important;
}

body[data-page="words"][data-global-theme] .hub-topbar,
body[data-page="math"][data-global-theme] .hub-topbar,
body[data-page="reading"][data-global-theme] .hub-topbar,
body[data-page="explore"][data-global-theme] .hub-topbar {
  color: #20304a;
  border-color: var(--line, #eee9de);
  background: rgba(255, 253, 248, .94);
}

body[data-page="words"][data-global-theme] .hub-shell .word-hero,
body[data-page="math"][data-global-theme] .hub-shell .math-hero,
body[data-page="reading"][data-global-theme] .hub-shell .learn-hero,
body[data-page="explore"][data-global-theme] .hub-shell .learn-hero {
  border-color: #f2dfbe;
  background: linear-gradient(110deg, #fff8e3 0%, #fffaf1 52%, #e9f7fb 100%);
  box-shadow: 0 14px 34px rgba(58, 55, 45, .08);
}

body[data-page="words"][data-global-theme] .hub-shell .word-tabs,
body[data-page="math"][data-global-theme] .hub-shell .grade-grid button,
body[data-page="reading"][data-global-theme] .hub-shell .mode-tabs,
body[data-page="explore"][data-global-theme] .hub-shell .mode-tabs {
  background: #fff;
  border-color: var(--line, #eee9de);
}

@media (max-width: 800px) {
  .study-tools { right: 15px; bottom: 84px; }
  .fox-button { width: 76px; height: 76px; }
  .fox-avatar-shell { inset: 0; }
}
@media (max-width: 460px) {
  body[data-page="words"][data-global-theme] .theme-options { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .fox-avatar-shell, .fox-avatar-base { transition: none; }
  .fox-motion, .fox-avatar-base { animation: none !important; }
  .fox-button:hover .fox-avatar-shell { transform: none; }
}

.hub-shell {
  width: min(1280px, calc(100% - 56px));
  margin: 28px auto 70px;
}

.hub-topbar {
  height: 78px;
  padding: 0 max(28px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  gap: 38px;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--line, #eee9de);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.hub-topbar .back-link {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 13px;
  color: #667389;
  font-size: calc(14.5px * var(--fs, 1));
  font-weight: 800;
}

.hub-topbar .back-link:hover {
  color: var(--orange-dark, #e85c2d);
  background: #f4f1ea;
}

.hub-topbar .word-brand,
.hub-topbar .math-brand,
.hub-topbar .learn-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  margin: 0 auto;
}

.hub-topbar .word-brand > span:last-child,
.hub-topbar .math-brand > span:last-child,
.hub-topbar .learn-brand > span:last-child,
.hub-topbar .learn-brand > div:last-child {
  display: flex;
  flex-direction: column;
}

.hub-topbar .word-brand > span:first-child,
.hub-topbar .word-brand-mark,
.hub-topbar .math-brand .brand-mark,
.hub-topbar .learn-brand > span:first-child,
.hub-topbar .learn-brand > div:first-child {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 45% 55% 48% 52%;
  color: #fff;
  background: var(--orange, #ff7a45);
  box-shadow: inset -4px -5px 0 rgba(194, 64, 27, .14), 0 5px 0 #ffe0c7;
  transform: rotate(-7deg);
}

.hub-topbar .word-brand b,
.hub-topbar .math-brand b,
.hub-topbar .learn-brand b {
  font-size: calc(18px * var(--fs, 1));
  letter-spacing: .03em;
}

.hub-topbar .word-brand small,
.hub-topbar .math-brand small,
.hub-topbar .learn-brand small {
  color: var(--muted, #718097);
  font-size: calc(13.5px * var(--fs, 1));
  margin-top: 2px;
}

.hub-topbar .top-score,
.hub-topbar .top-energy,
.hub-topbar .top-streak,
.hub-topbar .learner,
.hub-topbar .theme-trigger {
  margin-left: auto;
  justify-self: end;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line, #e8ebed);
  border-radius: 13px;
  color: #657388;
  background: #fff;
  font-size: calc(14px * var(--fs, 1));
}

.hub-topbar .learner > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #27725f;
  background: #d8f2e8;
  font-weight: 900;
}

.hub-topbar .theme-trigger {
  cursor: pointer;
  border-color: #d9dde1;
  background: #f5f6f7;
  color: #536277;
}

.hub-shell .math-hero,
.hub-shell .word-hero,
.hub-shell .learn-hero {
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 44px 48px;
  border: 1px solid #f2dfbe;
  border-radius: 30px;
  background: linear-gradient(110deg, #fff8e3 0%, #fffaf1 52%, #e9f7fb 100%);
  box-shadow: 0 14px 34px rgba(58, 55, 45, .08);
}

.hub-shell .math-hero:before,
.hub-shell .word-hero:before,
.hub-shell .learn-hero:before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: -140px;
  border: 46px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
}

.hub-shell .math-hero h1,
.hub-shell .word-hero h1,
.hub-shell .learn-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.hub-shell .math-hero p,
.hub-shell .word-hero p,
.hub-shell .learn-hero p {
  margin: 0;
  color: #59677a;
  font-size: calc(17px * var(--fs, 1));
}

.hub-shell .hero-kicker,
.hub-shell .eyebrow,
.hub-shell .section-kicker {
  color: var(--orange-dark, #e85c2d);
  font-size: calc(14.5px * var(--fs, 1));
  font-weight: 900;
  letter-spacing: .1em;
}

.hub-shell .hero-kicker,
.hub-shell .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 99px;
  color: #a45621;
  background: #fff0b6;
  letter-spacing: .04em;
}

.hub-shell .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 4px 16px;
}

.hub-shell .section-heading h2,
.hub-shell .section-heading h2,
.hub-shell .panel-heading h2,
.hub-shell .focus-copy h2 {
  margin: 5px 0 0;
  font-size: calc(23px * var(--fs, 1));
  line-height: 1.25;
}

.hub-shell .hub-toast,
.hub-toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 30px;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  color: #fff;
  border-radius: 13px;
  background: #283a53;
  box-shadow: 0 10px 30px rgba(30, 44, 64, .2);
  font-size: calc(14.5px * var(--fs, 1));
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: .25s ease;
}

.hub-shell .hub-toast.show,
.hub-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 800px) {
  .hub-shell {
    width: min(100% - 28px, 680px);
    margin-top: 14px;
  }

  .hub-topbar {
    height: 66px;
    padding: 0 20px;
    position: relative;
  }

  .hub-shell .math-hero,
  .hub-shell .word-hero,
  .hub-shell .learn-hero {
    min-height: 470px;
    align-items: flex-start;
    padding: 28px 24px;
  }
}

@media (max-width: 560px) {
  .hub-topbar {
    gap: 16px;
  }

  .hub-topbar .back-link span,
  .hub-topbar .math-brand small,
  .hub-topbar .word-brand small,
  .hub-topbar .learn-brand small,
  .hub-topbar .math-brand b,
  .hub-topbar .word-brand b,
  .hub-topbar .learner b {
    display: none;
  }

  .hub-topbar .learn-brand {
    margin: 0;
  }
}

/* 全部功能页统一到主页浅色系主色 */
body[data-page="math"],
body[data-page="words"],
body[data-page="reading"],
body[data-page="explore"] {
  --ink: #20304a;
  --muted: #718097;
  --paper: #fffdf8;
  --line: #ece7dc;
  --shadow: 0 14px 34px rgba(58, 55, 45, .08);
  --orange: #ff7a45;
  --orange-dark: #e85c2d;
  --yellow: #ffc94d;
  --blue: #50a9e8;
  --mint: #52c6a4;
  --purple: #8d82e9;
  --red: #ef8a83;
  --green: #52c6a4;
  --navy: #07172f;
  --global-accent: #e6764f;
  --global-accent-2: #e9aa45;
  --global-bg: #f6f7f8;
  --global-tint: #fbf1ec;
  color: #20304a;
  background: var(--global-bg) !important;
}

body[data-page="words"][data-mode],
body[data-page="words"][data-theme] {
  color: #20304a;
  background: var(--global-bg) !important;
}

body[data-page="math"] .hub-topbar,
body[data-page="words"] .hub-topbar,
body[data-page="reading"] .hub-topbar,
body[data-page="explore"] .hub-topbar {
  background: rgba(255, 253, 248, .94) !important;
  border-bottom-color: var(--line) !important;
  color: #20304a !important;
}

body[data-page="math"] .math-brand > span:first-child,
body[data-page="math"] .math-brand .brand-mark,
body[data-page="words"] .word-brand-mark,
body[data-page="reading"] .learn-brand > span:first-child,
body[data-page="explore"] .learn-brand > span:first-child {
  width: 43px;
  height: 43px;
  border-radius: 45% 55% 48% 52%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange) !important;
  box-shadow: inset -4px -5px 0 rgba(194, 64, 27, .14), 0 5px 0 #ffe0c7;
  transform: rotate(-7deg);
}

body[data-page="math"] .back-link,
body[data-page="words"] .back-link,
body[data-page="reading"] .back-link,
body[data-page="explore"] .back-link,
body[data-page="reading"] .learn-topbar .back-link {
  color: #667389 !important;
}

body[data-page="math"] .back-link:hover,
body[data-page="words"] .back-link:hover,
body[data-page="reading"] .back-link:hover,
body[data-page="explore"] .back-link:hover,
body[data-page="reading"] .learn-topbar .back-link:hover {
  color: var(--orange-dark) !important;
  background: #f4f1ea !important;
}

body[data-page="reading"] .learn-hero,
body[data-page="math"] .math-hero,
body[data-page="words"] .word-hero {
  border-color: #f2dfbe !important;
  background: linear-gradient(110deg, #fff8e3 0%, #fffaf1 52%, #e9f7fb 100%) !important;
  box-shadow: var(--shadow) !important;
  color: #20304a !important;
}

body[data-page="words"] .word-hero:before,
body[data-page="words"] .word-hero:after {
  content: none !important;
  border-color: transparent !important;
  background-image: none !important;
}

body[data-page="reading"] .hero-kicker,
body[data-page="reading"] .section-heading span,
body[data-page="math"] .hero-kicker,
body[data-page="math"] .section-heading span,
body[data-page="words"] .eyebrow,
body[data-page="words"] .section-kicker {
  color: var(--orange-dark) !important;
  border-color: transparent !important;
  background: #fff0b6 !important;
}

body[data-page="reading"] .learn-hero h1,
body[data-page="reading"] .learn-hero p,
body[data-page="math"] .math-hero h1,
body[data-page="math"] .math-hero p,
body[data-page="words"] .word-hero h1,
body[data-page="words"] .word-hero p,
body[data-page="words"] .word-hero .goal-bar,
body[data-page="math"] .hero-orbit,
body[data-page="words"] .hero-scene {
  color: #20304a;
}

body[data-page="reading"] .mode-tabs,
body[data-page="words"] .word-tabs,
body[data-page="math"] .grade-grid {
  background: #fff !important;
  border-color: var(--line) !important;
}

body[data-page="reading"] .mode-tabs button,
body[data-page="words"] .word-tabs button,
body[data-page="math"] .grade-grid button {
  color: var(--muted) !important;
  background: transparent !important;
}

body[data-page="reading"] .mode-tabs button.active,
body[data-page="words"] .word-tabs button.active,
body[data-page="math"] .grade-grid button.active,
body[data-page="words"] .word-tabs button[aria-pressed="true"] {
  color: #fff !important;
  background: var(--orange) !important;
  box-shadow: 0 5px 0 var(--orange-dark) !important;
}

body[data-page="math"] .top-score,
body[data-page="words"] .top-energy,
body[data-page="words"] .theme-trigger {
  border-color: #dbdfed !important;
  background: #fff !important;
  color: #3c5370 !important;
}

body[data-page="math"] .hero-progress span,
body[data-page="math"] .hero-progress strong {
  color: #20304a !important;
}

body[data-page="math"] .section-heading > span,
body[data-page="words"] .section-heading > span,
body[data-page="reading"] .section-heading > span {
  color: var(--orange-dark) !important;
}

body[data-page="math"] .mission-panel,
body[data-page="math"] .daily-card,
body[data-page="math"] .math-stats article,
body[data-page="math"] .quiz-stage,
body[data-page="math"] .result-card,
body[data-page="reading"] .lesson-card,
body[data-page="reading"] .quiz-card,
body[data-page="reading"] .result-card,
body[data-page="reading"] .content-card,
body[data-page="words"] .mission-card,
body[data-page="words"] .review-card,
body[data-page="words"] .skill-row,
body[data-page="words"] .word-list,
body[data-page="words"] .history-summary,
body[data-page="words"] .history-list,
body[data-page="words"] .study-card,
body[data-page="words"] .quiz-card,
body[data-page="words"] .result-card {
  border-color: var(--line) !important;
  background: var(--paper) !important;
  box-shadow: 0 8px 24px rgba(56, 64, 79, .055) !important;
}

body[data-page="words"][data-theme="candy"],
body[data-page="words"][data-theme="forest"],
body[data-page="words"][data-theme="ocean"] {
  --orange: #ff7a45;
  --orange-dark: #e85c2d;
  --yellow: #ffc94d;
  --blue: #50a9e8;
  --mint: #52c6a4;
  --purple: #8d82e9;
  --global-accent: #e6764f;
  --global-accent-2: #e9aa45;
  --global-tint: #fbf1ec;
}

body[data-page="words"] .word-topbar,
body[data-page="words"] .word-tabs,
body[data-page="words"] .hero-scene,
body[data-page="words"] .comic-burst,
body[data-page="words"] .comic-zap,
body[data-page="math"] .grade-grid button,
body[data-page="math"] .daily-card,
body[data-page="math"] .quiz-header,
body[data-page="math"] .question-skill {
  color: inherit !important;
}

body[data-page="math"] .math-toast,
body[data-page="math"] .hub-toast,
body[data-page="words"] .toast,
body[data-page="words"] .hub-toast,
body[data-page="reading"] .learn-toast,
body[data-page="reading"] .hub-toast,
body[data-page="explore"] .learn-toast,
body[data-page="explore"] .hub-toast {
  color: #fff !important;
  background: #263a55 !important;
}

body[data-page="math"] .hero-copy,
body[data-page="words"] .hero-copy,
body[data-page="reading"] .learn-hero > div:first-child {
  position: relative;
  z-index: 3;
}

/* 公共个人档案与徽章弹窗 */
.hub-topbar .learner {
  font: inherit;
  cursor: pointer;
}
.hub-topbar .top-score + .learner { margin-left: 0; }
.hub-topbar .top-actions .learner { margin-left: 0; }
.study-dialog {
  width: min(500px, calc(100% - 30px));
  max-height: min(760px, calc(100vh - 30px));
  overflow: auto;
  padding: 34px;
  border: 0;
  border-radius: 28px;
  color: #20304a;
  background: #fffdf8;
  box-shadow: 0 30px 80px rgba(32, 48, 74, .26);
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  text-align: center;
}
.study-dialog::backdrop { background: rgba(32, 48, 74, .38); backdrop-filter: blur(4px); }
.study-dialog[open] { animation: study-dialog-in .22s ease-out; }
.study-dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 13px;
  color: #718097;
  background: #f1f1ed;
  cursor: pointer;
  font-size: calc(21px * var(--fs, 1));
}
.study-dialog-kicker { color: var(--global-accent); font-size: calc(13.5px * var(--fs, 1)); font-weight: 950; letter-spacing: .1em; }
.study-dialog h2 { margin: 8px 0; font-size: calc(27px * var(--fs, 1)); }
.study-dialog > p { max-width: 390px; margin: 0 auto 20px; color: #718097; font-size: calc(14px * var(--fs, 1)); line-height: 1.7; }
.profile-field { display: grid; gap: 7px; margin-top: 14px; text-align: left; }
.profile-field > span, .avatar-picker legend { color: #536277; font-size: calc(13.5px * var(--fs, 1)); font-weight: 900; }
.profile-field input, .profile-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #dbe1e8;
  border-radius: 13px;
  color: #20304a;
  background: #fff;
  font: inherit;
}
.profile-switcher { margin-top: 16px; text-align: left; }
.profile-switcher-label { color: #536277; font-size: calc(13.5px * var(--fs, 1)); font-weight: 900; }
.profile-switcher-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.profile-switcher-chip, .profile-switcher-add {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #dbe1e8;
  border-radius: 20px;
  color: #20304a;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: calc(13.5px * var(--fs, 1));
}
.profile-switcher-chip span { font-size: calc(17px * var(--fs, 1)); }
.profile-switcher-chip[aria-pressed="true"] { border-color: var(--global-accent); background: var(--global-tint); box-shadow: 0 0 0 2px color-mix(in srgb, var(--global-accent) 18%, transparent); }
.profile-switcher-add { color: var(--global-accent); border-style: dashed; }
.profile-remove-link {
  display: block;
  margin: 14px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  color: #b3453b;
  cursor: pointer;
  font-size: calc(14px * var(--fs, 1));
  font-weight: 800;
  text-decoration: underline;
}
.avatar-picker { margin: 16px 0 0; padding: 0; border: 0; text-align: left; }
.avatar-picker legend { margin-bottom: 8px; }
.avatar-picker > div { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.avatar-picker button {
  aspect-ratio: 1;
  border: 1px solid #dbe1e8;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  font-size: calc(23px * var(--fs, 1));
}
.avatar-picker button[aria-pressed="true"] { border-color: var(--global-accent); background: var(--global-tint); box-shadow: 0 0 0 2px color-mix(in srgb, var(--global-accent) 18%, transparent); }
.study-dialog-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; margin-top: 22px; }
.study-dialog-actions button, .study-dialog-confirm {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
}
.study-dialog-actions .soft { color: #536277; background: #eef1f3; }
.study-dialog-actions .primary, .study-dialog-confirm { color: #fff; background: var(--global-accent); }
.badge-wall-dialog { width: min(680px, calc(100% - 30px)); }
.badge-wall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.badge-wall-grid article { display: grid; grid-template-columns: 47px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 78px; padding: 12px; border: 1px solid #e1e5e8; border-radius: 16px; background: #fff; }
.badge-wall-grid article > span { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 15px; background: #fff2ce; font-size: calc(25px * var(--fs, 1)); }
.badge-wall-grid article div { display: flex; flex-direction: column; min-width: 0; }
.badge-wall-grid article b { font-size: calc(14.5px * var(--fs, 1)); }
.badge-wall-grid article small { margin-top: 4px; color: #718097; font-size: calc(13px * var(--fs, 1)); line-height: 1.5; }
.badge-wall-grid article.locked { filter: grayscale(1); opacity: .48; }
.badge-wall-grid article.earned { border-color: #efce77; background: #fffbeb; }
.badge-wall-grid article.word-reward { border-color: #a8d9ca; background: #effaf6; }
.badge-unlocked-dialog { width: min(410px, calc(100% - 30px)); }
.badge-unlocked-icon { width: 88px; height: 88px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 30px; background: #fff0c5; font-size: calc(49px * var(--fs, 1)); transform: rotate(-4deg); }
.badge-unlocked-dialog .study-dialog-confirm { width: 100%; margin-top: 4px; }
.fox-chat-dialog { width: min(560px, calc(100% - 24px)); padding-bottom: 24px; }
.fox-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: min(390px, 42vh);
  overflow-y: auto;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #e1e5e8;
  border-radius: 18px;
  background: #f7f8f6;
  text-align: left;
}
.fox-chat-message { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fox-chat-message.user { align-items: flex-end; }
.fox-chat-message > span { padding: 0 5px; color: #718097; font-size: calc(13px * var(--fs, 1)); font-weight: 900; }
.fox-chat-message > p { max-width: 84%; margin: 0; padding: 10px 12px; border-radius: 14px 14px 14px 4px; color: #33465d; background: #fff; box-shadow: 0 2px 8px rgba(32,48,74,.06); font-size: calc(14px * var(--fs, 1)); line-height: 1.65; }
.fox-chat-message.user > p { border-radius: 14px 14px 4px 14px; color: #fff; background: var(--global-accent); }
.fox-chat-message.loading > p { color: #718097; animation: fox-chat-pulse 1s ease-in-out infinite alternate; }
.fox-chat-form { text-align: left; }
.fox-chat-form > label { display: block; margin-bottom: 6px; color: #536277; font-size: calc(13.5px * var(--fs, 1)); font-weight: 900; }
.fox-chat-form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.fox-chat-form textarea { min-height: 58px; max-height: 130px; resize: vertical; padding: 10px 12px; border: 1px solid #dbe1e8; border-radius: 14px; color: #20304a; background: #fff; font: inherit; font-size: calc(14px * var(--fs, 1)); line-height: 1.5; }
.fox-chat-form button { min-width: 74px; border: 0; border-radius: 14px; color: #fff; background: var(--global-accent); cursor: pointer; font-weight: 900; }
.fox-chat-form button:disabled { cursor: wait; opacity: .55; }
.fox-chat-form > small { display: block; margin-top: 7px; color: #718097; font-size: calc(13px * var(--fs, 1)); }
@keyframes fox-chat-pulse { to { opacity: .48; } }
@keyframes study-dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* 古诗编号、地图和跟读高亮 */
.poem-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 15px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}
.poem-view-toolbar > div:first-child { display: flex; flex-direction: column; }
.poem-view-toolbar b { font-size: calc(14.5px * var(--fs, 1)); }
.poem-view-toolbar span { margin-top: 3px; color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.poem-view-toolbar > div:last-child { display: flex; gap: 5px; padding: 4px; border-radius: 12px; background: #f1f2f3; }
.poem-view-toolbar button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: calc(13.5px * var(--fs, 1)); font-weight: 900; }
.poem-view-toolbar button.active { color: #fff; background: var(--orange); }
.card-badges { position: absolute; z-index: 2; top: 9px; left: 9px; right: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; pointer-events: none; }
.card-badges i { position: static !important; display: inline-flex; padding: 5px 8px; border-radius: 9px; font-size: calc(13px * var(--fs, 1)); font-style: normal; font-weight: 950; }
.card-badges .number-tag { color: #5c6471; background: rgba(255,255,255,.92); }
.card-badges .recommend-tag { margin-left: auto; color: #9a5519; background: #ffe49a; }
.card-badges .done-tag { margin-left: auto; color: #23775f; background: #dff6ed; }
.card-badges .recommend-tag + .done-tag { margin-left: 0; }
.content-card.is-recommended { border-color: #e7b548 !important; box-shadow: 0 0 0 3px rgba(255, 201, 77, .18), 0 10px 28px rgba(74, 57, 26, .1) !important; }
.content-card.is-recommended .recommend-tag { animation: recommend-breathe 1.8s ease-in-out infinite; }
@keyframes recommend-breathe { 50% { transform: scale(1.06); box-shadow: 0 0 0 5px rgba(255, 210, 89, .18); } }
.poem-map { margin-bottom: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, #fffcf4, #f4f9fb); box-shadow: 0 8px 24px rgba(56, 64, 79, .055); }
.poem-map-progress { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 14px; border-radius: 16px; background: #fff; }
.poem-map-progress > span { display: flex; flex-direction: column; min-width: 125px; }
.poem-map-progress b { color: var(--orange-dark); font-size: calc(15px * var(--fs, 1)); }
.poem-map-progress small { margin-top: 4px; color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.poem-map-progress > i { height: 9px; flex: 1; overflow: hidden; border-radius: 10px; background: #e8ecec; }
.poem-map-progress em { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #f0b847); transition: width .3s ease; }
.volume-tabs { display: none; }
.map-stations { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 36px; }
.map-stations::before { content: ""; position: absolute; z-index: 0; top: 40px; bottom: 40px; left: 50%; border-left: 3px dashed #e7d5ad; transform: translateX(-50%); }
.volume-station { position: relative; z-index: 1; padding: 16px; border: 1px solid #e6dfd0; border-radius: 20px; background: rgba(255,255,255,.96); }
.volume-station:nth-child(4n + 3), .volume-station:nth-child(4n + 4) { transform: translateY(7px); }
.volume-station header { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.volume-station header > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: #fff; background: var(--orange); font-size: calc(13.5px * var(--fs, 1)); font-weight: 950; transform: rotate(-4deg); }
.volume-station header div { display: flex; flex-direction: column; min-width: 0; }
.volume-station header b { overflow: hidden; font-size: calc(14.5px * var(--fs, 1)); white-space: nowrap; text-overflow: ellipsis; }
.volume-station header small { margin-top: 3px; color: var(--muted); font-size: calc(12.5px * var(--fs, 1)); }
.poem-nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.poem-nodes button { min-width: 0; min-height: 82px; padding: 7px 4px 6px; border: 0; border-radius: 13px; background: transparent; cursor: pointer; transition: background .18s, transform .18s; }
.poem-nodes button:hover { background: #f6f3eb; transform: translateY(-2px); }
.poem-nodes button > span { width: 40px; height: 40px; display: grid; place-items: center; margin: auto; border: 2px solid #d9dee2; border-radius: 50%; color: #6d7988; background: #fff; font-size: calc(13.5px * var(--fs, 1)); font-weight: 950; }
.poem-nodes button small { display: -webkit-box; overflow: hidden; margin-top: 7px; color: #3e4d61; font-size: calc(14px * var(--fs, 1)); font-weight: 900; line-height: 1.35; white-space: normal; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.poem-nodes button.done > span { color: #fff; border-color: #52b694; background: #52b694; }
.poem-nodes button.recommended > span { color: #84570d; border-color: #e4ae33; outline: 4px solid rgba(255, 201, 77, .25); background: #ffe38b; animation: recommend-breathe 1.8s ease-in-out infinite; }
body[data-page="reading"] .article-body p { padding: 4px 10px; border-radius: 10px; transition: color .2s ease, background .2s ease, transform .2s ease; }
body[data-page="reading"] .article-body p.is-reading { color: #a75027; background: #fff0bf; font-weight: 900; transform: scale(1.025); }

@media (max-width: 760px) {
  .study-dialog { padding: 30px 20px 22px; }
  .avatar-picker > div { grid-template-columns: repeat(4, 1fr); }
  .study-dialog-actions, .badge-wall-grid { grid-template-columns: 1fr; }
  .fox-chat-form > div { grid-template-columns: 1fr; }
  .fox-chat-form button { min-height: 44px; }
  .hub-topbar .learner { padding: 0 6px; }
  .hub-topbar .learner > span { width: 32px; height: 32px; }
  .poem-view-toolbar { align-items: flex-start; }
  .poem-view-toolbar > div:first-child { max-width: 58%; }
  .poem-map { padding: 13px; }
  .poem-map-progress { align-items: flex-start; flex-direction: column; gap: 10px; }
  .poem-map-progress > i { width: 100%; flex: 0 0 9px; }
  .volume-tabs { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 13px; padding: 3px 2px 8px; scrollbar-width: thin; }
  .volume-tabs button { min-width: 57px; min-height: 35px; border: 1px solid #d9dee2; border-radius: 11px; color: var(--muted); background: #fff; cursor: pointer; font-size: calc(13px * var(--fs, 1)); font-weight: 900; }
  .volume-tabs button.active { color: #fff; border-color: var(--orange); background: var(--orange); }
  .map-stations { display: block; }
  .map-stations::before { display: none; }
  .volume-station { display: none; transform: none !important; }
  .volume-station.active { display: block; }
  .poem-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 7px; }
  .poem-nodes button { min-height: 86px; padding-inline: 3px; }
  .poem-nodes button > span { width: 40px; height: 40px; }
  .poem-nodes button small { font-size: calc(14.5px * var(--fs, 1)); }
}

@media (prefers-reduced-motion: reduce) {
  .content-card.is-recommended .recommend-tag, .poem-nodes button.recommended > span { animation: none; }
}

/* 学习者字号选择（Round 1：儿童可读性） */
.font-scale-picker { margin: 16px 0 0; padding: 0; border: 0; text-align: left; }
.font-scale-picker legend { margin-bottom: 8px; color: #536277; font-size: calc(13.5px * var(--fs, 1)); font-weight: 900; }
.font-scale-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.font-scale-options button {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 56px;
  padding: 8px 6px;
  border: 1px solid #dbe1e8;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.font-scale-options button b { color: #20304a; font-size: calc(15px * var(--fs, 1)); font-weight: 900; }
.font-scale-options button small { color: #7d8b9d; font-size: calc(13px * var(--fs, 1)); font-weight: 700; }
.font-scale-options button[data-font-scale="large"] b { font-size: calc(17px * var(--fs, 1)); }
.font-scale-options button[data-font-scale="xlarge"] b { font-size: calc(19px * var(--fs, 1)); }
.font-scale-options button[aria-pressed="true"] {
  border-color: var(--global-accent);
  background: var(--global-tint);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--global-accent) 18%, transparent);
}
.font-scale-options button:focus-visible { outline: 3px solid rgba(68, 126, 194, .38); outline-offset: 2px; }

/* ── Round 2：儿童手指可点区域 ──────────────────────────────
   小学生（尤其低年级）的手指落点比成人分散，指尖接触面约 12–15mm。
   这里把全站主要交互元素统一抬到 48px 的最小可点高度/宽度，
   只改尺寸和内边距，不改颜色、层级或排版结构。 */

/* 顶部栏：返回、学习者、皮肤、能量 —— 每个页面的固定出口 */
.hub-topbar .back-link,
.learn-topbar .back-link,
.word-topbar .back-link,
body[data-page="reading"] .learn-topbar .back-link,
.back-link {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hub-topbar .learner,
.learn-topbar .learner,
.learner { min-height: 48px; padding-inline: 10px; }
.hub-topbar .theme-trigger,
.theme-trigger,
.top-energy { min-height: 48px; }

/* 今日任务：直接进入学习的按钮 */
.task-go { min-height: 48px; padding: 0 14px; border-radius: 12px; }

/* 成长记录的周切换箭头：原来只有 31×28，孩子很难点中 */
.growth-week-toolbar { grid-template-columns: 48px 1fr 48px; }
.growth-week-toolbar button { width: 48px; height: 48px; border-radius: 12px; }

/* 文字型次级按钮（“查看全部”等） */
.text-button { min-height: 48px; padding: 8px 10px; }

/* 诗词与发现岛：模式切换、视图切换、主题筛选 */
.mode-tabs button,
body[data-page="reading"] .mode-tabs button { min-height: 48px; }
.poem-view-toolbar [role="group"] button { min-height: 48px; padding-inline: 12px; }
.explore-topic-filters button { min-height: 48px; }
.explore-search input,
.explore-grade select { min-height: 48px; }

/* 单词舱：主标签栏 */
.word-tabs button, .mode-switch button { min-height: 48px; }

/* 编程实验室：课程卡片的主行动按钮 */
.lesson-card button { min-height: 48px; }

/* 数学：错题复盘入口等整行按钮 */
.mistake-entry, .review-entry { min-height: 48px; }

/* 手机窄屏下也不要缩回去 */
@media (max-width: 720px) {
  .hub-topbar .back-link,
  .learn-topbar .back-link,
  .word-topbar .back-link,
  .back-link { min-width: 48px; min-height: 48px; padding-inline: 8px; }
  .hub-topbar .learner, .learner { min-height: 48px; }
  .top-energy, .theme-trigger { min-height: 48px; }
}

/* 小狐狸不要压住工作台底部的移动端导航栏（导航栏高 64px + 10px 边距） */
@media (max-width: 720px) {
  body[data-page="index"] .study-tools { bottom: 88px; }
}

/* 剩余的整行按钮与品牌返回链接也补足到 48px */
.brand, .learn-brand, .math-brand, .word-brand, .code-brand { min-height: 48px; }
.badge-wall-button { min-height: 48px; }
.theme-trigger { min-width: 48px; justify-content: center; }
.word-topbar .top-streak, .word-topbar .top-actions button { min-height: 48px; }
.mistake-review-entry, .math-shell > button, .review-shortcut { min-height: 48px; }
#reviewMistakes, #openChest, #startChallenge, #retryMath, #backMath, #reviewWrongMath { min-height: 48px; }

/* ── Round 4：断网提示条 ── */
.offline-banner {
  position: fixed;
  z-index: 95;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  max-width: 520px;
  margin-inline: auto;
  padding: 12px 16px;
  border: 1px solid #f0d5a6;
  border-radius: 18px;
  background: #fff6e2;
  box-shadow: 0 12px 34px rgba(60, 45, 20, .16);
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.offline-banner[hidden] { display: none; }
.offline-banner span { grid-row: 1 / 3; align-self: center; font-size: calc(24px * var(--fs, 1)); }
.offline-banner b { color: #8a5f16; font-size: calc(15px * var(--fs, 1)); }
.offline-banner small { color: #91744a; font-size: calc(13px * var(--fs, 1)); line-height: 1.5; }
@media (max-width: 720px) {
  body[data-page="index"] .offline-banner { bottom: 82px; }
}
#toggleComic, .comic-toggle, [aria-expanded][id*="Comic"] { min-height: 48px; }

/* 小狐狸悬浮在内容之上，屏幕越窄它挡住的可点卡片越多。
   平板与手机上适当缩小（仍远大于 48px 的可点下限），减少孩子误点。 */
@media (max-width: 1024px) {
  .fox-button { width: 72px; height: 72px; }
}
@media (max-width: 460px) {
  .fox-button { width: 62px; height: 62px; }
}

/* 全站护眼提醒：只在页面内计时，不抢焦点、不遮住主要学习区域。 */
.eye-rest-banner {
  position: fixed;
  z-index: 94;
  left: 14px;
  bottom: 14px;
  width: min(430px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px 11px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #bcdacb;
  border-radius: 19px;
  background: linear-gradient(120deg, #effaf4, #fff9e9);
  box-shadow: 0 14px 36px rgba(42, 73, 62, .18);
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.eye-rest-banner[hidden] { display: none; }
.eye-rest-banner.resting { border-color: #b8d4ce; background: linear-gradient(120deg, #edf8f5, #f1f7ff); }
.eye-rest-banner.complete { border-color: #d9ca91; background: linear-gradient(120deg, #fff8dc, #eff9ed); }
.eye-rest-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: #dcefe6; font-size: calc(26px * var(--fs, 1)); }
.eye-rest-banner.resting .eye-rest-icon { background: #d8ece8; }
.eye-rest-banner.complete .eye-rest-icon { background: #fff0b8; }
.eye-rest-copy { min-width: 0; display: flex; flex-direction: column; }
.eye-rest-copy small { color: #568273; font-size: calc(11px * var(--fs, 1)); font-weight: 950; }
.eye-rest-copy b { margin-top: 1px; color: #36594d; font-size: calc(14.5px * var(--fs, 1)); line-height: 1.35; }
.eye-rest-copy p { margin: 3px 0 0; color: #62766e; font-size: calc(12.5px * var(--fs, 1)); line-height: 1.45; }
.eye-rest-copy em { margin-top: 3px; color: #7e8984; font-size: calc(11px * var(--fs, 1)); font-style: normal; line-height: 1.4; }
.eye-rest-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.eye-rest-actions button { min-height: 44px; padding: 0 10px; border: 1px solid #bfd5ca; border-radius: 11px; color: #527065; background: #fff; cursor: pointer; font-size: calc(12.5px * var(--fs, 1)); font-weight: 950; }
.eye-rest-actions button.primary { color: #fff; border-color: #4d9279; background: #52977e; }
.eye-rest-actions button.primary:hover { background: #43856e; }
.eye-rest-actions button:disabled { color: #527267; border-color: #c8dcd3; background: #e0eee8; cursor: default; }
.eye-rest-actions button[hidden] { display: none; }
.eye-rest-actions button.primary:only-child { grid-column: 1 / -1; }
.eye-rest-banner.resting .eye-rest-actions button.primary, .eye-rest-banner.complete .eye-rest-actions button.primary { grid-column: 1 / -1; }
html[data-network="offline"] .eye-rest-banner { bottom: 104px; }
@media (max-width: 720px) {
  .eye-rest-banner { right: 10px; left: 10px; bottom: 14px; width: auto; }
  body[data-page="index"] .eye-rest-banner { bottom: 86px; }
  html[data-network="offline"] .eye-rest-banner { bottom: 104px; }
  html[data-network="offline"] body[data-page="index"] .eye-rest-banner { bottom: 174px; }
}
@media (prefers-reduced-motion: reduce) {
  .eye-rest-banner, .eye-rest-banner * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
