.fx-practice {
  margin: 2rem 0 1.5rem;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid #d9efe9;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4fbf9 0%, #fff 42%);
}
.fx-practice--hub {
  margin: 0.85rem 0 0;
  padding: 0.85rem;
  background: #fff;
}
.fx-practice__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}
.fx-practice__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.fx-practice__lead {
  margin: 0 0 0.9rem;
  color: #475569;
  line-height: 1.5;
  font-size: 0.92rem;
}
.fx-practice__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.fx-practice__mode {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: #334155;
}
.fx-practice__mode.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.fx-practice__stage {
  min-height: 7rem;
}
.fx-practice__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1rem;
  text-align: center;
}
.fx-practice__meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.55rem;
}
.fx-practice__front {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 0.65rem;
  word-break: break-word;
}
.fx-practice__back {
  margin: 0 0 0.85rem;
  color: #0f766e;
  font-weight: 600;
  min-height: 1.4em;
}
.fx-practice__back.is-hidden {
  filter: blur(6px);
  user-select: none;
  color: #94a3b8;
}
.fx-practice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.fx-practice__actions button,
.fx-practice__done {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: #0f766e;
  color: #fff;
}
.fx-practice__actions button[data-act="again"] { background: #b45309; }
.fx-practice__actions button[data-act="easy"] { background: #0369a1; }
.fx-practice__actions button.fx-ghost {
  background: #fff;
  color: #0f766e;
  border: 1px solid #99f6e4;
}
.fx-practice__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.fx-practice__done-msg {
  color: #0f766e;
  font-weight: 700;
  font-size: 0.9rem;
}
.fx-practice__opt {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 0.45rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 0.92rem;
}
.fx-practice__opt:hover { border-color: #0f766e; }
.fx-practice__opt.is-right { border-color: #059669; background: #ecfdf5; }
.fx-practice__opt.is-wrong { border-color: #dc2626; background: #fef2f2; }
.fx-practice__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.fx-practice__empty {
  margin: 0;
  color: #64748b;
  text-align: center;
  padding: 1rem 0.5rem;
}
.fx-practice__lead-sm {
  margin: 0 0 0.5rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}
.fx-practice__chat {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.fx-practice__chat-head,
.fx-talk__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.fx-practice__chat-head .fx-practice__meta,
.fx-talk__head .fx-practice__meta {
  margin: 0 0 0.25rem;
}
.fx-practice__chat-head .fx-practice__lead-sm,
.fx-talk__head .fx-practice__lead-sm {
  margin: 0;
}
.fx-bear-avatar {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #ecfdf5;
  flex-shrink: 0;
}
.fx-bear-avatar--lg {
  width: 40px;
  height: 40px;
}
.fx-practice__chat-quota {
  margin: 0;
  font-size: 0.85rem;
  color: #0f766e;
  font-weight: 600;
}
.fx-practice__chat-log {
  max-height: 22rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0;
}
.fx-practice__msg-who {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  margin-bottom: 0.2rem;
}
.fx-practice__msg-who--bear {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.fx-practice__msg-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}
.fx-practice__msg--user .fx-practice__msg-body {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.fx-practice__msg--assistant .fx-practice__msg-body {
  background: #ecfdf5;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.fx-practice__tips {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: #334155;
  font-size: 0.88rem;
}
.fx-practice__tips-label {
  list-style: none;
  margin-left: -1.1rem;
  font-weight: 700;
  color: #0f766e;
  font-size: 0.8rem;
}
.fx-practice__chat-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  resize: vertical;
  min-height: 3.2rem;
}
.fx-practice__chat-input:disabled {
  opacity: 0.65;
}
.fx-practice__chat-err {
  margin: 0;
  color: #b91c1c;
  font-size: 0.9rem;
}
.fx-practice__actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.fx-practice__score {
  font-size: 2rem;
  font-weight: 800;
  color: #0f766e;
  margin: 0.4rem 0;
}
.fx-li-tools {
  display: inline-flex;
  gap: 0.25rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.fx-li-tools button {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 999px;
  width: 1.7rem;
  height: 1.7rem;
  line-height: 1;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
}

.fx-mem-dash {
  margin: 0 0 1.4rem;
  padding: 1rem;
  border: 1px solid #d9efe9;
  border-radius: 14px;
  background: #f8fffd;
}
.fx-mem-dash__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.fx-mem-dash__stats div {
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
}
.fx-mem-dash__stats span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
}
.fx-mem-dash__stats strong {
  font-size: 1.05rem;
}
.fx-mem-dash__bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}
.fx-mem-dash__bar i {
  display: block;
  height: 100%;
  background: #0f766e;
}
.fx-mem-dash__week {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
}
.fx-mem-dash__week li {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  border-bottom: 3px solid #e2e8f0;
  padding-bottom: 0.25rem;
}
.fx-mem-dash__week li.is-done {
  color: #0f766e;
  border-bottom-color: #0f766e;
}
.fx-mem-dash__week li.is-today abbr {
  background: #ccfbf1;
  border-radius: 6px;
  padding: 0.1rem 0.25rem;
}
.fx-mem-dash__week abbr {
  text-decoration: none;
}
.fx-mem-dash__review-n {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #0f766e;
  font-weight: 700;
}
.fx-mem-hub__h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.fx-mem-hub__track-meta {
  float: none;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}
.fx-study__goal {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
}
.fx-study__goal-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.3rem;
}
.fx-study__goal-bar i {
  display: block;
  height: 100%;
  background: #0f766e;
}
.fx-study__review {
  display: block;
  margin-top: 0.55rem;
  font-weight: 700;
  color: #0f766e !important;
  text-decoration: none !important;
}
@media (max-width: 640px) {
  .fx-mem-dash__stats {
    grid-template-columns: 1fr;
  }
}
