﻿:root {
  color-scheme: light;
  --ink: #1c2a3a;
  --muted: #748295;
  --mint: #34d399;
  --cyan: #37d5f1;
  --blue: #4c80ff;
  --violet: #7c63ff;
  --card: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.76);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 8%, rgba(138, 234, 218, 0.42), transparent 26rem),
    radial-gradient(circle at 90% 20%, rgba(90, 169, 255, 0.18), transparent 30rem),
    linear-gradient(135deg, #eaf8f4 0%, #f6fbff 45%, #edf7f3 100%);
  color: var(--ink);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.phone-shell {
  width: min(100vw, 430px);
  min-height: 100vh;
  background: #eef9f8;
  overflow: hidden;
}

.app-screen {
  position: relative;
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 38% 51%, rgba(164, 223, 255, 0.46), transparent 16rem),
    radial-gradient(circle at 14% 62%, rgba(163, 250, 225, 0.42), transparent 17rem),
    linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(224, 246, 247, 0.74));
}

.ambient-leaf {
  position: absolute;
  pointer-events: none;
  opacity: 0.34;
  filter: blur(0.2px);
}

.ambient-leaf::before,
.ambient-leaf::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(87, 199, 179, 0.32);
  border-radius: 70% 0 70% 0;
  background: linear-gradient(135deg, rgba(111, 222, 198, 0.24), rgba(255, 255, 255, 0));
}

.leaf-top {
  right: -8px;
  top: -8px;
  width: 150px;
  height: 130px;
}

.leaf-top::before {
  width: 104px;
  height: 52px;
  transform: rotate(-26deg);
}

.leaf-top::after {
  right: 8px;
  top: 54px;
  width: 112px;
  height: 58px;
  transform: rotate(-17deg);
}

.leaf-left {
  left: -26px;
  top: 178px;
  width: 118px;
  height: 150px;
}

.leaf-left::before {
  width: 110px;
  height: 58px;
  transform: rotate(28deg);
}

.leaf-left::after {
  left: 40px;
  top: 62px;
  width: 94px;
  height: 46px;
  transform: rotate(22deg);
}

.status-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 20px;
  font-size: 15px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.signal i {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: #111;
}

.signal i:nth-child(1) { height: 4px; }
.signal i:nth-child(2) { height: 7px; }
.signal i:nth-child(3) { height: 10px; }
.signal i:nth-child(4) { height: 12px; }

.wifi {
  width: 16px;
  height: 12px;
  border: 3px solid #111;
  border-color: #111 transparent transparent transparent;
  border-radius: 50%;
  position: relative;
}

.wifi::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 4px;
  height: 4px;
  background: #111;
  border-radius: 50%;
}

.battery {
  width: 24px;
  height: 13px;
  border: 2px solid #111;
  border-radius: 4px;
  position: relative;
}

.battery::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 16px;
  height: 5px;
  border-radius: 2px;
  background: #111;
}

.battery::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 3px;
  width: 3px;
  height: 5px;
  border-radius: 1px;
  background: #111;
}

.profile-section {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 96px 1fr 22px;
  gap: 14px;
  align-items: center;
}

.avatar-orbit {
  width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 49%, transparent 51%),
    conic-gradient(from 90deg, #bff9ec, #4ee2d7, #dffdfa, #bff9ec);
  box-shadow: 0 12px 30px rgba(45, 202, 190, 0.25), inset 0 0 0 8px rgba(255, 255, 255, 0.48);
}

.avatar-orbit img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

.profile-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.profile-copy h1 {
  margin: 0 0 4px;
  font-size: clamp(22px, 7vw, 27px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.profile-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.ghost-icon {
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 10px 28px rgba(64, 151, 188, 0.14);
}

.notice-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.notice-dot {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff5f58;
  color: #fff;
  font-size: 11px;
  line-height: 17px;
  font-weight: 800;
}

.icon-bell {
  width: 18px;
  height: 19px;
  border: 2px solid #708197;
  border-bottom: 0;
  border-radius: 11px 11px 6px 6px;
  position: relative;
}

.icon-bell::before {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: #708197;
}

.icon-bell::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #708197;
}

.profile-next {
  width: 20px;
  height: 34px;
  background: transparent;
  box-shadow: none;
}

.chevron,
.section-head a::after {
  width: 9px;
  height: 9px;
  border-top: 2px solid #8a9aac;
  border-right: 2px solid #8a9aac;
  transform: rotate(45deg);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.badge {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 8px 22px rgba(61, 149, 170, 0.1);
}

.badge::before {
  content: "鉁?;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
}

.badge.safe {
  color: #009c80;
}

.badge.safe::before {
  background: linear-gradient(135deg, #08c7a4, #39d68b);
}

.badge.vip {
  color: #6a54f3;
}

.badge.vip::before {
  content: "鈼?;
  background: linear-gradient(135deg, #7567ff, #9a78ff);
}

.stats-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 28px 4px 22px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 12px;
  width: 1px;
  height: 28px;
  background: rgba(113, 137, 156, 0.18);
}

.stat-icon,
.mini-icon,
.message-icon-round,
.task-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 16px;
  color: #fff;
  font-weight: 900;
}

.stat-icon.calendar {
  background: linear-gradient(135deg, #2ccfae, #4bd994);
  box-shadow: 0 8px 18px rgba(45, 204, 157, 0.28);
}

.stat-icon.medal {
  color: #19b69d;
  background: #fff;
  border: 3px solid #15b59e;
  box-shadow: 0 4px 0 #e6a44b;
}

.stat-icon.bolt {
  color: #376dff;
  background: #dff4ff;
  border: 2px solid #3978ff;
}

.stat-item strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.stat-item small {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 700;
}

.stat-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 10px;
  padding-bottom: 74px;
}

.glass-card {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(230, 248, 253, 0.48)),
    var(--card);
  box-shadow: 0 16px 34px rgba(82, 147, 175, 0.16), inset 0 0 20px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
}

.assistant-card {
  min-height: 496px;
  overflow: hidden;
  padding: 22px 20px;
}

.assistant-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(91, 217, 236, 0.18), transparent 22%, transparent 80%, rgba(130, 244, 225, 0.24)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 2px, transparent 2px 42px),
    linear-gradient(180deg, transparent 0 62%, rgba(90, 185, 244, 0.18));
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
  pointer-events: none;
}

.card-title,
.section-title,
.section-head {
  display: flex;
  align-items: center;
}

.card-title {
  gap: 12px;
}

.card-title h2,
.section-title h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0;
}

.card-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.spark-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-block;
}

.spark-icon::before,
.spark-icon::after {
  content: "";
  position: absolute;
  inset: 3px 10px;
  border-radius: 99px;
  background: linear-gradient(180deg, #66dfff, #24ced4);
  box-shadow: 0 0 18px rgba(47, 215, 227, 0.62);
}

.spark-icon::after {
  transform: rotate(90deg);
}

.model-stage {
  position: absolute;
  left: 50%;
  top: 39%;
  z-index: 2;
  width: 126px;
  height: 126px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.86), rgba(134, 235, 225, 0.22) 58%, transparent 70%);
  filter: drop-shadow(0 20px 24px rgba(42, 186, 214, 0.16));
}

button.model-stage {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.model-stage::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(93, 224, 220, 0.42);
  border-radius: 50%;
  animation: modelPulse 2.4s ease-in-out infinite;
}

.summon-copy {
  position: absolute;
  left: 50%;
  top: 57%;
  z-index: 2;
  width: min(160px, 74%);
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  color: #77889c;
  font-size: 14px;
  line-height: 1.65;
}

.change-character-button {
  position: absolute;
  left: 50%;
  top: 68%;
  z-index: 4;
  transform: translateX(-50%);
  min-width: 92px;
  min-height: 32px;
  border: 1px solid rgba(60, 212, 181, 0.52);
  border-radius: 8px;
  background: rgba(235, 255, 250, 0.78);
  color: #10a687;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(42, 190, 167, 0.14);
}

.ai-chat-button {
  position: absolute;
  left: 50%;
  top: calc(68% + 40px);
  z-index: 4;
  min-width: 92px;
  min-height: 32px;
  transform: translateX(-50%);
  border: 1px solid rgba(76, 128, 255, 0.36);
  border-radius: 8px;
  background: rgba(239, 245, 255, 0.8);
  color: #3f6dff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(76, 128, 255, 0.12);
}

.change-character-button[hidden] {
  display: none;
}

.bot-model,
.lamb-model,
.forest-model,
.scholar-model,
.tutor-model,
.guide-model,
.remote-model {
  position: relative;
  width: 96px;
  height: 96px;
}

.remote-model {
  display: block;
}

.bot-model {
  animation: modelFloat 3s ease-in-out infinite;
}

.lamb-model,
.forest-model,
.scholar-model {
  position: relative;
  animation: modelFloat 3.1s ease-in-out infinite;
}

.bot-antenna {
  position: absolute;
  left: 46px;
  top: 3px;
  width: 3px;
  height: 16px;
  border-radius: 9px;
  background: #21bfa5;
}

.bot-antenna::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #69f0d2;
  box-shadow: 0 0 18px rgba(105, 240, 210, 0.86);
}

.bot-head {
  position: absolute;
  left: 17px;
  top: 18px;
  width: 62px;
  height: 47px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #bdf8ed);
  border: 2px solid rgba(46, 211, 190, 0.74);
}

.bot-head i {
  position: absolute;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #18b9a1;
  animation: botBlink 3s steps(1) infinite;
}

.bot-head i:first-child {
  left: 18px;
}

.bot-head i:last-child {
  right: 18px;
}

.bot-body {
  position: absolute;
  left: 28px;
  bottom: 9px;
  width: 40px;
  height: 34px;
  border-radius: 17px 17px 12px 12px;
  background: linear-gradient(180deg, #47dfbd, #2ccf90);
  box-shadow: 0 10px 20px rgba(45, 207, 144, 0.28);
}

.lamb-head {
  position: absolute;
  left: 22px;
  top: 20px;
  width: 52px;
  height: 48px;
  border: 2px solid rgba(72, 211, 186, 0.58);
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(180deg, #ffffff, #e9fff8);
  box-shadow: 0 10px 20px rgba(52, 211, 153, 0.16);
}

.lamb-head i {
  position: absolute;
  top: 24px;
  width: 6px;
  height: 7px;
  border-radius: 50%;
  background: #2b3947;
  animation: botBlink 3.2s steps(1) infinite;
}

.lamb-head i:first-child {
  left: 16px;
}

.lamb-head i:last-child {
  right: 16px;
}

.lamb-ear {
  position: absolute;
  top: 31px;
  width: 18px;
  height: 27px;
  border: 2px solid rgba(72, 211, 186, 0.52);
  border-radius: 50%;
  background: #f0fff9;
}

.lamb-ear.left {
  left: 12px;
  transform: rotate(-24deg);
}

.lamb-ear.right {
  right: 12px;
  transform: rotate(24deg);
}

.lamb-curl {
  position: absolute;
  top: 12px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(72, 211, 186, 0.35);
  border-radius: 50%;
  background: #fff;
}

.lamb-curl.one {
  left: 34px;
}

.lamb-curl.two {
  right: 34px;
}

.lamb-body {
  position: absolute;
  left: 27px;
  bottom: 9px;
  width: 42px;
  height: 35px;
  border-radius: 22px 22px 14px 14px;
  background: linear-gradient(180deg, #dffdf4, #79e1c2);
}

.forest-ear {
  position: absolute;
  top: 13px;
  width: 22px;
  height: 22px;
  border-radius: 8px 8px 50% 50%;
  background: #5c6d4b;
}

.forest-ear.left {
  left: 20px;
  transform: rotate(-28deg);
}

.forest-ear.right {
  right: 20px;
  transform: rotate(28deg);
}

.forest-head {
  position: absolute;
  left: 20px;
  top: 21px;
  width: 56px;
  height: 50px;
  border-radius: 24px;
  background: linear-gradient(180deg, #9bd783, #58be88);
  box-shadow: inset 0 -6px 0 rgba(34, 112, 86, 0.12), 0 12px 20px rgba(76, 180, 137, 0.22);
}

.forest-head i {
  position: absolute;
  top: 23px;
  width: 6px;
  height: 7px;
  border-radius: 50%;
  background: #244438;
  animation: botBlink 3.4s steps(1) infinite;
}

.forest-head i:first-child {
  left: 17px;
}

.forest-head i:last-child {
  right: 17px;
}

.forest-body {
  position: absolute;
  left: 28px;
  bottom: 8px;
  width: 40px;
  height: 32px;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, #69d7ac, #36a985);
}

.forest-leaf {
  position: absolute;
  right: 14px;
  top: 9px;
  width: 18px;
  height: 10px;
  border-radius: 100% 0 100% 0;
  background: #e8ffb1;
  transform: rotate(-24deg);
  animation: starTwinkle 2.2s ease-in-out infinite;
}

.scholar-ear {
  position: absolute;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #8b653f;
}

.scholar-ear.left {
  left: 18px;
}

.scholar-ear.right {
  right: 18px;
}

.scholar-head {
  position: absolute;
  left: 20px;
  top: 24px;
  width: 56px;
  height: 48px;
  border-radius: 22px;
  background: linear-gradient(180deg, #b9824d, #8a5d3f);
  box-shadow: inset 0 -5px 0 rgba(74, 45, 29, 0.14), 0 12px 22px rgba(166, 107, 63, 0.2);
}

.scholar-head::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 25px;
  width: 24px;
  height: 13px;
  border-radius: 50%;
  background: #f1d0a8;
}

.scholar-head i {
  position: absolute;
  top: 21px;
  z-index: 1;
  width: 5px;
  height: 6px;
  border-radius: 50%;
  background: #38291d;
  animation: botBlink 3.6s steps(1) infinite;
}

.scholar-head i:first-child {
  left: 18px;
}

.scholar-head i:last-child {
  right: 18px;
}

.scholar-book {
  position: absolute;
  left: 21px;
  bottom: 7px;
  width: 54px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(90deg, #54b8ff 0 48%, #76e2c1 52% 100%);
  box-shadow: 0 9px 18px rgba(74, 161, 196, 0.2);
}

.tutor-model {
  animation: modelFloat 3.4s ease-in-out infinite;
}

.tutor-head {
  position: absolute;
  left: 28px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff0dc, #ffc4bd);
  box-shadow: inset 0 -4px 0 rgba(227, 125, 143, 0.18);
}

.tutor-head::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -6px;
  width: 46px;
  height: 22px;
  border-radius: 20px 20px 8px 8px;
  background: #333846;
}

.tutor-body {
  position: absolute;
  left: 22px;
  bottom: 10px;
  width: 52px;
  height: 45px;
  border-radius: 26px 26px 13px 13px;
  background: linear-gradient(135deg, #8d78ff, #36cfee);
  box-shadow: 0 12px 24px rgba(97, 109, 238, 0.24);
}

.tutor-star {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
  animation: starTwinkle 1.8s ease-in-out infinite;
}

.tutor-star.one {
  right: 7px;
  top: 15px;
}

.tutor-star.two {
  left: 6px;
  top: 42px;
  width: 11px;
  height: 11px;
  animation-delay: 0.7s;
}

.guide-model {
  animation: modelFloat 3.2s ease-in-out infinite;
}

.guide-head {
  position: absolute;
  left: 29px;
  top: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe2cb, #ffc0b5);
  box-shadow: 0 8px 16px rgba(54, 158, 224, 0.16);
}

.guide-head::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -5px;
  width: 46px;
  height: 21px;
  border-radius: 20px 20px 8px 8px;
  background: #3d4150;
}

.guide-head i {
  position: absolute;
  top: 20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #303746;
}

.guide-head i:first-child {
  left: 12px;
}

.guide-head i:last-child {
  right: 12px;
}

.guide-book {
  position: absolute;
  left: 19px;
  bottom: 13px;
  width: 58px;
  height: 40px;
  border-radius: 7px;
  background: linear-gradient(90deg, #6cc9ff 0 48%, #8ce6c6 52% 100%);
  box-shadow: 0 12px 22px rgba(72, 177, 225, 0.24);
}

.guide-book::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.78);
}

.guide-spark {
  position: absolute;
  right: 9px;
  top: 25px;
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.88);
  animation: starTwinkle 1.9s ease-in-out infinite;
}

.holo-platform {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 190px;
  height: 118px;
  transform: translateX(-50%);
  border-radius: 50% 50% 12px 12px;
  background:
    radial-gradient(ellipse at center, #fff 0 24%, rgba(123, 229, 255, 0.45) 25% 42%, transparent 43%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(74, 160, 229, 0.2));
}

@keyframes modelFloat {
  0%, 100% {
    transform: translateY(4px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes modelPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.88;
  }
}

@keyframes botBlink {
  0%, 92%, 100% {
    transform: scaleY(1);
  }
  94% {
    transform: scaleY(0.12);
  }
}

@keyframes starTwinkle {
  0%, 100% {
    transform: rotate(45deg) scale(0.82);
    opacity: 0.55;
  }
  50% {
    transform: rotate(45deg) scale(1.08);
    opacity: 1;
  }
}

.character-screen {
  padding-bottom: 24px;
}

.character-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.character-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.character-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.back-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 10px 22px rgba(71, 148, 178, 0.13);
  cursor: pointer;
}

.back-button .chevron {
  transform: rotate(-135deg);
}

.character-preview {
  position: relative;
  z-index: 1;
  min-height: 178px;
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 10px;
  align-items: center;
  padding: 18px;
  margin-bottom: 14px;
}

.character-mode-note {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.character-mode-note strong {
  color: #132339;
  font-size: 14px;
}

.character-mode-note p {
  margin: 0;
  color: #65758b;
  font-size: 12px;
  line-height: 1.55;
}

.character-preview .model-stage {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

.character-preview h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.character-mode-pill {
  width: max-content;
  min-height: 24px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 8px;
  padding: 0 8px;
  color: #0fa98f;
  background: rgba(24, 200, 184, 0.12);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.character-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.character-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-bottom: 74px;
}

.character-card {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.character-card.active {
  border-color: rgba(53, 210, 172, 0.82);
  box-shadow: 0 18px 34px rgba(44, 190, 161, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.character-card .model-stage {
  position: relative;
  left: auto;
  top: auto;
  width: 96px;
  height: 96px;
  transform: none;
}

.character-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.character-card span:not([class]) {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.confirm-character-button {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(calc(100vw - 32px), 398px);
  min-height: 52px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #16c98b, #2dd7d4);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(25, 199, 163, 0.3);
  cursor: pointer;
}

.dialogue-screen {
  min-height: 100vh;
  padding-bottom: 20px;
}

.dialogue-hero {
  position: relative;
  z-index: 1;
  min-height: 170px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px;
  margin-bottom: 12px;
}

.dialogue-hero .model-stage {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 116px;
  height: 116px;
}

.dialogue-hero h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.dialogue-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.chat-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 560px;
  padding: 14px;
}

.chat-log {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  overflow-y: auto;
  padding: 4px 2px;
}

.chat-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.76);
  color: #2c3c50;
  box-shadow: 0 8px 18px rgba(71, 148, 178, 0.12);
}

.chat-bubble.assistant p {
  margin: 0;
}

.chat-bubble.assistant p + p,
.chat-bubble.assistant p + ol,
.chat-bubble.assistant p + ul,
.chat-bubble.assistant ol + p,
.chat-bubble.assistant ul + p {
  margin-top: 8px;
}

.chat-bubble.assistant ol,
.chat-bubble.assistant ul {
  margin: 8px 0 0;
  padding-left: 1.25em;
}

.chat-bubble.assistant li {
  margin: 5px 0;
  padding-left: 2px;
}

.chat-bubble.assistant strong {
  color: #132338;
  font-weight: 800;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #28c98e, #2ed5d4);
  color: #fff;
}

.chat-bubble.user p {
  margin: 0;
}

.chat-image-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.chat-image-list img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.4);
}

.chat-reference-card {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(35, 201, 185, 0.2);
  border-radius: 8px;
  background: rgba(238, 252, 250, 0.82);
}

.chat-reference-card > strong {
  color: #119b8d;
  font-size: 12px;
  line-height: 1.2;
}

.chat-reference-card p {
  margin: 0;
  color: #52677f;
  font-size: 12px;
  line-height: 1.5;
}

.chat-reference-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.chat-reference-card li {
  margin: 0;
  color: #52677f;
  font-size: 12px;
  line-height: 1.5;
}

.chat-reference-card li + li {
  margin-top: 7px;
}

.chat-reference-card li span {
  display: block;
  color: #17243a;
  font-weight: 900;
}

.voice-row {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.voice-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.image-attach-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.image-attach-button {
  min-height: 34px;
  border: 1px solid rgba(31, 205, 185, 0.3);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: #12a996;
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.image-attach-button.warning {
  border-color: rgba(255, 164, 74, 0.42);
  color: #c97816;
  background: rgba(255, 248, 237, 0.86);
}

.image-attach-icon {
  position: relative;
  width: 16px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
  flex: 0 0 auto;
}

.image-attach-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 2px;
  width: 7px;
  height: 5px;
  clip-path: polygon(0 100%, 42% 35%, 65% 68%, 80% 45%, 100% 100%);
  background: currentColor;
}

.image-attach-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.image-attach-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.image-preview-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.image-preview-list[hidden] {
  display: none;
}

.image-preview-item {
  position: relative;
  width: 78px;
  flex: 0 0 78px;
  display: grid;
  gap: 4px;
}

.image-preview-item img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(71, 148, 178, 0.14);
}

.image-preview-item span {
  overflow: hidden;
  color: #52677f;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview-item button {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #19bca7;
  box-shadow: 0 6px 12px rgba(25, 188, 167, 0.24);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.audio-toggle-button {
  min-height: 32px;
  border: 1px solid rgba(49, 214, 224, 0.28);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: #179f9b;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(71, 148, 178, 0.1);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.audio-toggle-button[hidden] {
  display: none;
}

.audio-toggle-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-block;
}

.audio-toggle-icon::before,
.audio-toggle-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 4px;
  height: 10px;
  border-radius: 4px;
  background: currentColor;
}

.audio-toggle-icon::before {
  left: 2px;
}

.audio-toggle-icon::after {
  right: 2px;
}

.audio-toggle-button.paused .audio-toggle-icon::before {
  left: 4px;
  top: 2px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.audio-toggle-button.paused .audio-toggle-icon::after {
  display: none;
}

.voice-button {
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #fff 0 28%, #31d6e0 29% 100%);
  box-shadow: 0 12px 30px rgba(45, 205, 218, 0.38), 0 0 0 10px rgba(49, 214, 224, 0.12);
  cursor: pointer;
}

.voice-button span {
  width: 22px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 14px;
  position: relative;
}

.voice-button span::before {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -12px;
  width: 3px;
  height: 10px;
  border-radius: 3px;
  background: #fff;
}

.voice-button span::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  bottom: -6px;
  height: 12px;
  border: 3px solid #fff;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.voice-button.listening {
  animation: voicePulse 1.1s ease-in-out infinite;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 8px;
}

.chat-form input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(113, 159, 176, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
}

.chat-form button {
  border: 0;
  border-radius: 8px;
  background: #1bc892;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

@keyframes voicePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(45, 205, 218, 0.38), 0 0 0 10px rgba(49, 214, 224, 0.12);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 34px rgba(45, 205, 218, 0.48), 0 0 0 16px rgba(49, 214, 224, 0.1);
  }
}

.holo-platform::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 25px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(105, 238, 230, 0.86);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.34), 0 20px 36px rgba(48, 132, 216, 0.26);
}

.holo-platform span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 48px;
  height: 28px;
  border: 1px solid rgba(119, 232, 228, 0.58);
  border-radius: 50%;
}

.holo-platform span:nth-child(2) {
  bottom: 62px;
  opacity: 0.7;
}

.holo-platform span:nth-child(3) {
  bottom: 76px;
  opacity: 0.45;
}

.side-stack {
  display: grid;
  gap: 10px;
}

.overview-card,
.message-card,
.task-card {
  padding: 16px 14px;
}

.section-head {
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.section-title {
  gap: 9px;
  min-width: 0;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8290a4;
  font-size: 12px;
  text-decoration: none;
}

.section-head a::after {
  content: "";
  width: 6px;
  height: 6px;
}

.mini-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.progress-icon {
  background: linear-gradient(135deg, #39b4ff, #527bff);
}

.progress-icon::before {
  content: "鈼?;
}

.message-icon {
  background: linear-gradient(135deg, #8b6cff, #6d5df7);
}

.message-icon::before {
  content: "鈻?;
}

.task-icon {
  background: linear-gradient(135deg, #1aaaff, #32c7ff);
}

.task-icon::before {
  content: "鈻?;
}

.info-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid #9baabe;
  border-radius: 50%;
  color: #8190a3;
  font-size: 11px;
  font-weight: 800;
}

.overview-layout {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  align-items: center;
}

.ring-chart {
  --progress: 78%;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 49%, transparent 50%),
    conic-gradient(#45dc94 var(--progress), #8678ff var(--progress) 92%, #9babff 92% 100%);
  box-shadow: 0 12px 26px rgba(42, 199, 155, 0.18);
}

.ring-chart strong {
  display: block;
  font-size: 21px;
  line-height: 1;
}

.ring-chart span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.legend li {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 7px;
  color: #5f6d7f;
  font-size: 12px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot);
}

.legend strong {
  color: var(--ink);
}

.trend-chart {
  width: 100%;
  height: 66px;
  margin-top: 10px;
  overflow: visible;
}

.trend-area {
  fill: url(#trendFill);
}

.trend-line {
  fill: none;
  stroke: #3bd796;
  stroke-width: 3;
  stroke-linecap: round;
}

.trend-chart circle {
  fill: #49e6a7;
  stroke: #fff;
  stroke-width: 4;
}

.message-list,
.task-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.message-list {
  display: grid;
  gap: 13px;
}

.message-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  position: relative;
}

.message-icon-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.message-row.bell .message-icon-round {
  color: #25c780;
  background: rgba(71, 229, 156, 0.15);
}

.message-row.chat .message-icon-round {
  color: #8066ed;
  background: rgba(127, 103, 240, 0.16);
}

.message-row.event .message-icon-round {
  color: #27aeea;
  background: rgba(68, 204, 239, 0.17);
}

.message-copy {
  min-width: 0;
}

.message-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
}

.message-copy p {
  margin: 5px 0 0;
  color: #728196;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-row time {
  align-self: start;
  color: #8d9aab;
  font-size: 12px;
}

.unread-dot {
  position: absolute;
  right: 1px;
  bottom: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff655f;
}

.task-progress {
  padding: 12px 12px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
}

.task-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
}

.task-progress-top strong {
  color: #22bf81;
}

.progress-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(147, 166, 181, 0.15);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16c98b, #3bd88d);
}

.task-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.task-list li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
}

.task-check {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(45, 211, 153, 0.16);
  color: #2cca91;
  font-size: 12px;
  font-weight: 900;
}

.task-list p {
  margin: 0;
  min-width: 0;
  color: #405066;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-list strong {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(56, 213, 145, 0.14);
  color: #12b879;
  font-size: 11px;
}

.task-list .done strong {
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid #36cb90;
  border-radius: 50%;
  background: transparent;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 10;
  width: min(calc(100vw - 32px), 398px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 9px 12px 8px;
  border-radius: 8px;
  background: rgba(248, 252, 255, 0.76);
  box-shadow: 0 10px 34px rgba(61, 143, 176, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.tabbar button {
  height: 45px;
  border: 0;
  display: grid;
  place-items: center;
  gap: 3px;
  color: #79879a;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tabbar button.active {
  color: #13b985;
}

.tab-icon {
  width: 23px;
  height: 23px;
  display: block;
  position: relative;
}

.home-tab {
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(135deg, #0fc487, #45db96);
}

.home-tab::before {
  content: "";
  position: absolute;
  inset: -8px 3px auto;
  height: 18px;
  transform: rotate(45deg);
  border-radius: 4px;
  background: linear-gradient(135deg, #0fc487, #45db96);
}

.book-tab,
.user-tab,
.compass-tab {
  border: 3px solid currentColor;
}

.book-tab {
  border-radius: 4px;
}

.book-tab::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 2px;
  background: currentColor;
}

.compass-tab {
  border-radius: 50%;
}

.compass-tab::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border-radius: 6px 6px 2px 2px;
  background: currentColor;
  transform: rotate(35deg);
}

.user-tab {
  border-radius: 50% 50% 8px 8px;
  border-top-width: 2px;
}

.user-tab::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -13px;
  width: 10px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: rgba(248, 252, 255, 0.76);
}

.ai-tab {
  width: 62px;
  height: 62px !important;
  justify-self: center;
  margin-top: -28px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 34%, transparent 35%),
    linear-gradient(135deg, #77c9ff, #24d6df 72%, #29e0ba);
  box-shadow: 0 8px 28px rgba(40, 205, 225, 0.56), 0 0 0 8px rgba(69, 170, 255, 0.12);
}

.ai-tab .spark-icon::before,
.ai-tab .spark-icon::after {
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.75);
}

@media (max-width: 386px) {
  .app-screen {
    padding-inline: 12px;
  }

  .profile-section {
    grid-template-columns: 82px 1fr 16px;
    gap: 10px;
  }

  .avatar-orbit {
    width: 82px;
  }

  .avatar-orbit img {
    width: 64px;
    height: 64px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .assistant-card {
    min-height: 470px;
  }

  .tabbar {
    width: calc(100vw - 20px);
  }
}

.learning-screen {
  padding-bottom: 96px;
}

.learning-header {
  margin-bottom: 14px;
}

.learning-hero {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 20px;
  margin-bottom: 18px;
}

.learning-bookmark {
  width: 64px;
  height: 82px;
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(150deg, #1ed6c6, #4f8fff);
  box-shadow: 0 18px 34px rgba(31, 205, 194, 0.28);
  position: relative;
}

.learning-bookmark span {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 0 rgba(255, 255, 255, 0.54), 0 36px 0 rgba(255, 255, 255, 0.34);
}

.learning-hero-copy h2,
.learning-section h2 {
  margin: 3px 0 6px;
  color: #18243a;
  letter-spacing: 0;
}

.learning-hero-copy p {
  margin: 0;
  color: #6c7890;
  font-size: 13px;
  line-height: 1.55;
}

.learning-hero strong {
  color: #17bfad;
  font-size: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: #24c7b9;
  font-size: 12px;
  font-weight: 700;
}

.learning-meter {
  width: 100%;
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(31, 205, 194, 0.14);
  overflow: hidden;
}

.learning-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1ed6c6, #4f8fff);
  transition: width 220ms ease;
}

.learning-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid rgba(77, 215, 205, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.learning-filters button {
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #718096;
  font-weight: 700;
  cursor: pointer;
}

.learning-filters button.active {
  color: #123047;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(42, 203, 193, 0.16);
}

.learning-section {
  margin-top: 18px;
}

.section-head.compact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head.compact h2 {
  font-size: 18px;
}

.link-button,
.icon-text-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(33, 204, 191, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #16b8a9;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.resource-list,
.platform-list,
.video-list {
  display: grid;
  gap: 10px;
}

.resource-card,
.video-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 36px rgba(46, 125, 145, 0.1);
}

.resource-cover {
  width: 72px;
  height: 88px;
  border-radius: 8px;
  padding: 12px 10px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 -16px 28px rgba(0, 0, 0, 0.08);
}

.resource-cover span {
  font-size: 13px;
  font-weight: 800;
}

.resource-cover strong {
  font-size: 12px;
}

.resource-cover.mint {
  background: linear-gradient(150deg, #21d5bd, #3ba7ff);
}

.resource-cover.sky {
  background: linear-gradient(150deg, #57b8ff, #6bd7d0);
}

.resource-cover.violet {
  background: linear-gradient(150deg, #7a8cff, #21d5bd);
}

.resource-cover.amber {
  background: linear-gradient(150deg, #ffb35c, #27cfc0);
}

.resource-body h3,
.platform-card h3,
.video-body h3 {
  margin: 4px 0 6px;
  color: #1c2940;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

.resource-body p,
.platform-card p,
.video-body p {
  margin: 0;
  color: #6b7890;
  font-size: 13px;
  line-height: 1.55;
}

.resource-meta {
  color: #8a96aa;
  font-size: 12px;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.resource-actions a,
.resource-actions button,
.video-body button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #18c8b8;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.resource-actions .disabled,
.resource-actions button:disabled {
  background: #e7eef2;
  color: #8d9aa8;
  cursor: not-allowed;
}

.platform-card {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(46, 125, 145, 0.08);
}

.platform-card span {
  color: #17bfb0;
  font-size: 12px;
  font-weight: 800;
}

.video-thumb {
  width: 72px;
  min-height: 84px;
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(31, 213, 194, 0.9), rgba(79, 143, 255, 0.9));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.play-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  position: relative;
}

.play-dot::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #1ecabc;
}

.video-thumb small {
  font-size: 12px;
  font-weight: 800;
}

.video-body button {
  margin-top: 12px;
  background: #ffffff;
  color: #16b8a9;
  border: 1px solid rgba(33, 204, 191, 0.28);
}

[hidden] {
  display: none !important;
}

@media (max-width: 430px) {
  .learning-hero {
    grid-template-columns: 58px 1fr;
  }

  .learning-hero strong {
    grid-column: 2;
    justify-self: start;
  }

  .learning-bookmark {
    width: 56px;
    height: 74px;
  }
}


.learning-context-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(33, 204, 191, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(46, 125, 145, 0.08);
}

.learning-context-card span {
  min-width: 64px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18c8b8;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.learning-context-card strong {
  display: block;
  color: #18243a;
  font-size: 15px;
  line-height: 1.35;
}

.learning-context-card p {
  margin: 3px 0 0;
  color: #6b7890;
  font-size: 12px;
  line-height: 1.45;
}

.mental-status-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(33, 204, 191, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(46, 125, 145, 0.08);
}

.mental-status-card[hidden] {
  display: none;
}

.mental-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mental-status-head span {
  color: #13a995;
  font-size: 12px;
  font-weight: 900;
}

.mental-status-head strong {
  color: #6b7890;
  font-size: 12px;
  font-weight: 800;
}

.mental-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mental-status-grid div {
  min-width: 0;
  min-height: 58px;
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px;
  background: rgba(38, 205, 184, 0.09);
}

.mental-status-grid strong {
  overflow: hidden;
  color: #17243a;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mental-status-grid small {
  color: #708096;
  font-size: 11px;
  font-weight: 800;
}

.mental-status-card p {
  margin: 0;
  color: #52677f;
  font-size: 12px;
  line-height: 1.5;
}

.discover-screen {
  padding-bottom: 96px;
}

.discover-header {
  margin-bottom: 14px;
}

.discover-hero {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 176px;
  padding: 18px;
  margin-bottom: 14px;
  overflow: hidden;
}

.discover-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(48, 213, 199, 0.22);
  background: radial-gradient(circle, rgba(69, 215, 204, 0.14), transparent 66%);
  pointer-events: none;
}

.discover-orbit {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #ffffff 0 39%, rgba(126, 237, 222, 0.22) 40% 100%);
  box-shadow: 0 14px 28px rgba(36, 190, 179, 0.18), inset 0 0 0 1px rgba(72, 220, 205, 0.26);
}

.discover-orbit span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #26d4b3, #4f8fff);
  box-shadow: 0 0 24px rgba(44, 208, 191, 0.45);
}

.discover-orbit i {
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(44, 204, 189, 0.34);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-28deg);
}

.discover-hero-copy {
  min-width: 0;
}

.discover-hero-copy h2,
.discover-topic-body h3,
.challenge-card h3 {
  margin: 4px 0 7px;
  color: #17243a;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: 0;
}

.discover-hero-copy p,
.discover-topic-body p,
.challenge-card p {
  margin: 0;
  color: #69778d;
  font-size: 13px;
  line-height: 1.55;
}

.discover-primary-button {
  grid-column: 2;
  justify-self: start;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #19c992, #31d4d4);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(35, 201, 178, 0.24);
  cursor: pointer;
}

.discover-filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid rgba(77, 215, 205, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.discover-filters button {
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #718096;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.discover-filters button.active {
  color: #123047;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(42, 203, 193, 0.16);
}

.discover-topic-list,
.challenge-list {
  display: grid;
  gap: 10px;
}

.discover-empty-state {
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(24, 200, 184, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #66758a;
  font-size: 13px;
  line-height: 1.55;
}

.discover-topic-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 36px rgba(46, 125, 145, 0.1);
}

.discover-topic-marker {
  min-height: 90px;
  border-radius: 8px;
  padding: 11px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background: linear-gradient(150deg, #20d3bb, #4f8fff);
  box-shadow: inset 0 -16px 28px rgba(0, 0, 0, 0.08);
}

.discover-topic-marker span,
.discover-topic-marker strong {
  font-size: 12px;
  line-height: 1.35;
}

.discover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.discover-tags.compact-tags {
  margin-top: 9px;
}

.discover-tag {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(38, 205, 184, 0.12);
  color: #13a995;
  font-size: 11px;
  font-weight: 800;
}

.challenge-card {
  padding: 14px;
}

.challenge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.challenge-top small {
  color: #8290a4;
  font-size: 12px;
  font-weight: 800;
}

.challenge-badge {
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(79, 143, 255, 0.12);
  color: #3f73ef;
  font-size: 12px;
  font-weight: 900;
}

.challenge-card .icon-text-button {
  margin-top: 12px;
  background: #ffffff;
}

.discover-platform-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

@media (max-width: 386px) {
  .discover-hero {
    grid-template-columns: 62px 1fr;
    padding: 15px;
  }

  .discover-orbit {
    width: 58px;
    height: 58px;
  }

  .discover-filters {
    grid-template-columns: repeat(3, 1fr);
  }

  .discover-topic-card {
    grid-template-columns: 66px 1fr;
  }
}

.mine-screen {
  padding-bottom: 96px;
}

.mine-header {
  margin-bottom: 14px;
}

.mine-profile-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 14px;
}

.mine-project-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.mine-project-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 42%, transparent 43%),
    conic-gradient(from 120deg, #30d4c4, #4f8fff, #a7f4e6, #30d4c4);
  box-shadow: 0 14px 28px rgba(46, 193, 188, 0.18);
}

.mine-project-icon span {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #18c8b8, #4f8fff);
  box-shadow: 0 0 24px rgba(39, 202, 191, 0.34);
}

.mine-project-copy h2 {
  margin: 4px 0 6px;
  color: #17243a;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0;
}

.mine-project-copy p {
  margin: 0;
  color: #69778d;
  font-size: 13px;
  line-height: 1.55;
}

.mine-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mine-project-tags span {
  min-height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #12a996;
  background: rgba(38, 205, 184, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.mine-avatar-ring {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 49%, transparent 51%),
    conic-gradient(from 90deg, #bff9ec, #4ee2d7, #dffdfa, #bff9ec);
  box-shadow: 0 12px 28px rgba(45, 202, 190, 0.22), inset 0 0 0 8px rgba(255, 255, 255, 0.48);
}

.mine-avatar-ring.reward-aura {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 47%, transparent 49%),
    conic-gradient(from 90deg, #ffe68a, #47ddcb, #7da5ff, #fff3b6, #ffe68a);
  box-shadow:
    0 14px 30px rgba(45, 202, 190, 0.22),
    0 0 0 3px rgba(255, 220, 102, 0.42),
    0 0 28px rgba(255, 213, 82, 0.28),
    inset 0 0 0 8px rgba(255, 255, 255, 0.52);
}

.mine-avatar-ring.reward-aura::before,
.mine-avatar-ring.reward-aura::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffe16a;
  box-shadow:
    0 0 0 4px rgba(255, 225, 106, 0.16),
    0 0 16px rgba(255, 213, 82, 0.58);
}

.mine-avatar-ring.reward-aura::before {
  top: 5px;
  right: 11px;
}

.mine-avatar-ring.reward-aura::after {
  left: 8px;
  bottom: 13px;
  width: 6px;
  height: 6px;
}

.mine-avatar-ring img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.mine-profile-copy h2 {
  margin: 4px 0 4px;
  color: #17243a;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.mine-profile-copy p {
  margin: 0;
  color: #69778d;
  font-size: 13px;
}

.mine-academic-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.mine-academic-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.mine-academic-head h2,
.mine-plan-card h3 {
  margin: 4px 0 6px;
  color: #17243a;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.mine-academic-head p,
.mine-plan-card p {
  margin: 0;
  color: #69778d;
  font-size: 13px;
  line-height: 1.55;
}

.mine-plan-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: #fff;
  background: linear-gradient(135deg, #19c7a8, #2bd2c9);
  box-shadow: 0 12px 24px rgba(34, 196, 177, 0.2);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.mine-plan-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.mine-academic-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mine-academic-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #65758b;
  font-size: 12px;
  font-weight: 800;
}

.mine-academic-form label.wide {
  grid-column: 1 / -1;
}

.mine-academic-form select,
.mine-academic-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(113, 159, 176, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #17243a;
  font: inherit;
  font-size: 13px;
}

.mine-academic-form select {
  min-height: 40px;
  padding: 0 10px;
}

.mine-academic-form textarea {
  resize: vertical;
  min-height: 74px;
  padding: 10px;
  line-height: 1.5;
}

.mine-academic-form select:focus,
.mine-academic-form textarea:focus {
  outline: 2px solid rgba(31, 205, 185, 0.24);
  border-color: rgba(31, 205, 185, 0.58);
}

.mine-subject-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mine-subject-chip {
  cursor: pointer;
}

.mine-subject-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mine-subject-chip span {
  min-height: 30px;
  border: 1px solid rgba(36, 196, 177, 0.2);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  color: #13a995;
  background: rgba(38, 205, 184, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.mine-subject-chip input:checked + span {
  color: #fff;
  background: linear-gradient(135deg, #1fcdb9, #35b7ff);
  box-shadow: 0 8px 16px rgba(41, 189, 193, 0.2);
}

.mine-plan-card {
  border: 1px solid rgba(42, 205, 184, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 13px;
  background: rgba(247, 254, 253, 0.78);
}

.mine-plan-card ol {
  margin: 0;
  padding-left: 1.3em;
  color: #253752;
  font-size: 13px;
  line-height: 1.55;
}

.mine-plan-card li + li {
  margin-top: 6px;
}

.mine-plan-time {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  color: #119b8d !important;
  background: rgba(38, 205, 184, 0.1);
  font-size: 12px !important;
  font-weight: 900;
}

.mine-plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mine-plan-secondary-button {
  min-height: 34px;
  border: 1px solid rgba(31, 205, 185, 0.34);
  border-radius: 8px;
  padding: 0 12px;
  color: #12a996;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mine-plan-actions span {
  color: #6b7890;
  font-size: 12px;
  font-weight: 800;
}

.mine-plan-ask {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mine-plan-ask input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(113, 159, 176, 0.2);
  border-radius: 8px;
  padding: 0 10px;
  color: #17243a;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 12px;
}

.mine-plan-ask button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, #1fcdb9, #35b7ff);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mine-badges,
.mine-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.mine-badges span,
.mine-chip {
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(38, 205, 184, 0.12);
  color: #13a995;
  font-size: 12px;
  font-weight: 900;
}

.mine-badges span:nth-child(2) {
  background: rgba(90, 128, 255, 0.12);
  color: #4d73f2;
}

.mine-badges span.mine-reward-badge {
  color: #9a6600;
  background: rgba(255, 215, 94, 0.2);
  border: 1px solid rgba(237, 183, 42, 0.26);
}

.mine-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.mine-stat-card {
  min-width: 0;
  min-height: 82px;
  padding: 12px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(46, 125, 145, 0.1);
}

.mine-stat-dot,
.mine-action-icon,
.mine-setting-icon {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #20d3bb, #4f8fff);
}

.mine-stat-card.blue .mine-stat-dot,
.mine-action-card.blue .mine-action-icon {
  background: linear-gradient(135deg, #36b5ff, #4f7dff);
}

.mine-stat-card.violet .mine-stat-dot,
.mine-action-card.violet .mine-action-icon {
  background: linear-gradient(135deg, #8b6cff, #5f86ff);
}

.mine-action-card.cyan .mine-action-icon {
  background: linear-gradient(135deg, #27cfc0, #2bb7ff);
}

.mine-stat-card strong {
  display: block;
  margin-top: 10px;
  color: #17243a;
  font-size: 22px;
  line-height: 1;
}

.mine-stat-card small {
  margin-left: 2px;
  font-size: 11px;
}

.mine-stat-card p {
  margin: 5px 0 0;
  color: #758398;
  font-size: 12px;
}

.mine-reward-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.mine-reward-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.mine-reward-head h2 {
  margin: 4px 0 6px;
  color: #17243a;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0;
}

.mine-reward-head p {
  margin: 0;
  color: #69778d;
  font-size: 13px;
  line-height: 1.5;
}

.mine-reward-head > strong {
  min-height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #13a995;
  background: rgba(38, 205, 184, 0.12);
  font-size: 13px;
  white-space: nowrap;
}

.mine-shop-grid {
  display: grid;
  gap: 9px;
}

.mine-shop-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(42, 205, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.mine-shop-marker {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #20d3bb, #4f8fff);
}

.mine-shop-item.blue .mine-shop-marker {
  background: linear-gradient(135deg, #36b5ff, #4f7dff);
}

.mine-shop-item.violet .mine-shop-marker {
  background: linear-gradient(135deg, #8b6cff, #5f86ff);
}

.mine-shop-copy {
  min-width: 0;
}

.mine-shop-copy strong {
  display: block;
  color: #17243a;
  font-size: 13px;
  line-height: 1.25;
}

.mine-shop-copy p,
.mine-shop-status {
  margin: 3px 0 0;
  color: #69778d;
  font-size: 12px;
  line-height: 1.45;
}

.mine-shop-item button {
  min-height: 32px;
  border: 1px solid rgba(31, 205, 185, 0.28);
  border-radius: 8px;
  padding: 0 10px;
  color: #12a996;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mine-shop-item button:disabled {
  color: #8a99aa;
  cursor: default;
  background: rgba(235, 242, 246, 0.8);
}

.mine-learning-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 18px;
}

.mine-ring {
  --progress: 78%;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 49%, transparent 50%),
    conic-gradient(#45dc94 var(--progress), #7d82ff var(--progress) 100%);
  box-shadow: 0 12px 26px rgba(42, 199, 155, 0.18);
}

.mine-ring strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.mine-ring span {
  display: block;
  margin-top: 4px;
  color: #758398;
  font-size: 11px;
}

.mine-learning-copy h2,
.mine-section h2 {
  margin: 4px 0 6px;
  color: #17243a;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.mine-learning-copy p {
  margin: 0;
  color: #69778d;
  font-size: 13px;
  line-height: 1.55;
}

.mine-section {
  margin-top: 18px;
}

.mine-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mine-action-card {
  min-height: 108px;
  border: 0;
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  text-align: left;
  color: inherit;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 32px rgba(46, 125, 145, 0.08);
  cursor: pointer;
}

.mine-action-card strong,
.mine-setting-row strong {
  display: block;
  color: #1c2940;
  font-size: 15px;
  line-height: 1.2;
}

.mine-action-card p,
.mine-setting-row p {
  margin: 5px 0 0;
  color: #6b7890;
  font-size: 12px;
  line-height: 1.45;
}

.mine-setting-list {
  display: grid;
  gap: 9px;
}

.mine-setting-row {
  min-height: 70px;
  border: 0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(46, 125, 145, 0.08);
  cursor: pointer;
}

.mine-setting-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(43, 206, 184, 0.18);
  position: relative;
}

.mine-setting-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 2px solid #19bfa8;
}

.mine-setting-row .chevron {
  width: 8px;
  height: 8px;
}

@media (max-width: 386px) {
  .mine-profile-card,
  .mine-learning-card {
    grid-template-columns: 1fr;
  }

  .mine-academic-head,
  .mine-academic-form {
    grid-template-columns: 1fr;
  }

  .mine-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Taste-skill UI refinement: preserve the mint learning brand, tighten rhythm, and keep one soft card system. */
:root {
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --accent: #18c8b8;
  --accent-strong: #0fa98f;
  --accent-soft: rgba(24, 200, 184, 0.12);
  --blue-soft: rgba(79, 143, 255, 0.12);
  --shadow-soft: 0 16px 36px rgba(52, 129, 154, 0.12);
  --shadow-lift: 0 20px 44px rgba(37, 139, 166, 0.16);
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 22% 4%, rgba(111, 230, 210, 0.42), transparent 25rem),
    radial-gradient(circle at 86% 18%, rgba(99, 169, 255, 0.16), transparent 28rem),
    linear-gradient(135deg, #eefaf7 0%, #f7fbff 52%, #edf8f5 100%);
}

button,
a {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

button:active,
a:active {
  transform: translateY(1px) scale(0.99);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(24, 200, 184, 0.24);
  outline-offset: 3px;
}

.phone-shell {
  width: min(100vw, 430px);
  min-height: 100dvh;
  background: #effaf8;
}

.app-screen {
  min-height: 100dvh;
  padding-inline: 18px;
  background:
    radial-gradient(circle at 78% 0%, rgba(255, 255, 255, 0.88), transparent 14rem),
    radial-gradient(circle at 16% 64%, rgba(133, 240, 224, 0.38), transparent 18rem),
    linear-gradient(168deg, rgba(255, 255, 255, 0.78), rgba(225, 246, 247, 0.78));
}

.ambient-leaf {
  opacity: 0.24;
}

.glass-card,
.resource-card,
.video-card,
.platform-card,
.discover-topic-card,
.mine-stat-card,
.mine-action-card,
.mine-setting-row,
.learning-context-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.glass-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(235, 250, 250, 0.66)),
    var(--surface);
}

.resource-card,
.video-card,
.discover-topic-card,
.mine-action-card,
.mine-setting-row,
.platform-card {
  position: relative;
}

.resource-card:hover,
.video-card:hover,
.discover-topic-card:hover,
.mine-action-card:hover,
.mine-setting-row:hover,
.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.section-head.compact {
  margin-bottom: 12px;
}

.section-head.compact .eyebrow {
  display: inline-flex;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--accent-soft);
}

.section-head.compact h2,
.learning-section h2,
.mine-section h2 {
  font-size: 19px;
  line-height: 1.18;
}

.section-title h2,
.section-head a {
  white-space: nowrap;
}

.overview-card .section-title,
.message-card .section-title,
.task-card .section-title {
  gap: 6px;
}

.overview-card .section-title h2,
.message-card .section-title h2,
.task-card .section-title h2 {
  font-size: 17px;
}

.overview-card .info-icon {
  flex: 0 0 auto;
}

.overview-card .section-head a,
.message-card .section-head a,
.task-card .section-head a {
  flex: 0 0 auto;
}

.overview-card .overview-layout {
  grid-template-columns: 80px 1fr;
  gap: 8px;
}

.overview-card .ring-chart {
  width: 78px;
  height: 78px;
}

.overview-card .ring-chart strong {
  font-size: 19px;
}

.overview-card .ring-chart span {
  font-size: 10px;
}

.overview-card .legend {
  gap: 8px;
}

.overview-card .legend li {
  grid-template-columns: 7px 1fr auto;
  gap: 5px;
  font-size: 11px;
}

.overview-card .legend li span:nth-child(2) {
  white-space: nowrap;
}

.link-button,
.icon-text-button,
.resource-actions a,
.resource-actions button,
.video-body button,
.discover-primary-button {
  min-height: 34px;
  border-radius: 8px;
  white-space: nowrap;
}

.link-button:hover,
.icon-text-button:hover,
.video-body button:hover {
  border-color: rgba(24, 200, 184, 0.45);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(35, 181, 168, 0.12);
}

.resource-actions a:not(.disabled) {
  border: 1px solid rgba(24, 200, 184, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
}

.resource-actions button {
  background: linear-gradient(135deg, #13bea4, #22d1ca);
  box-shadow: 0 10px 22px rgba(24, 200, 184, 0.22);
}

.resource-actions .disabled {
  border-color: transparent;
  box-shadow: none;
}

.learning-hero,
.discover-hero,
.mine-profile-card {
  box-shadow: 0 18px 42px rgba(46, 135, 156, 0.13);
}

.learning-hero {
  grid-template-columns: 66px 1fr auto;
  gap: 14px;
  min-height: 118px;
}

.learning-bookmark,
.resource-cover,
.discover-topic-marker,
.video-thumb {
  box-shadow:
    inset 0 -18px 26px rgba(10, 75, 96, 0.12),
    0 12px 26px rgba(31, 173, 193, 0.18);
}

.learning-filters,
.discover-filters {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 6;
  border-color: rgba(24, 200, 184, 0.2);
  background: rgba(248, 254, 253, 0.82);
  box-shadow: 0 12px 30px rgba(54, 139, 161, 0.1);
  backdrop-filter: blur(18px);
}

.learning-filters button,
.discover-filters button {
  color: #66758a;
}

.learning-filters button.active,
.discover-filters button.active {
  color: #11283b;
  background: var(--surface-strong);
}

.resource-card,
.video-card,
.discover-topic-card {
  grid-template-columns: 76px 1fr;
  padding: 13px;
}

.resource-body h3,
.platform-card h3,
.video-body h3,
.discover-topic-body h3,
.challenge-card h3 {
  color: #132339;
  font-size: 16px;
}

.resource-body p,
.platform-card p,
.video-body p,
.discover-topic-body p,
.challenge-card p {
  color: #65758b;
}

.resource-meta {
  color: #7f8da3;
}

.platform-card {
  overflow: hidden;
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), #4f8fff);
}

.platform-card span,
.discover-tag,
.mine-chip,
.mine-badges span {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.discover-hero {
  grid-template-columns: 68px 1fr;
  min-height: 164px;
}

.discover-orbit {
  width: 64px;
  height: 64px;
}

.discover-primary-button {
  background: linear-gradient(135deg, #13bea4, #2bd1c7);
}

.discover-tags {
  gap: 5px;
}

.discover-tag {
  border-radius: 8px;
}

.challenge-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.84);
}

.challenge-badge {
  background: var(--blue-soft);
}

.mine-profile-card {
  grid-template-columns: 78px 1fr;
  padding: 16px;
}

.mine-avatar-ring {
  width: 76px;
  height: 76px;
}

.mine-avatar-ring img {
  width: 60px;
  height: 60px;
}

.mine-stat-grid {
  gap: 8px;
}

.mine-stat-card {
  min-height: 88px;
  padding: 12px 9px;
}

.mine-stat-card strong {
  font-size: 21px;
}

.mine-learning-card {
  grid-template-columns: 88px 1fr;
}

.mine-ring {
  width: 82px;
  height: 82px;
}

.mine-action-card {
  min-height: 104px;
}

.mine-setting-list {
  gap: 8px;
}

.tabbar {
  width: min(calc(100vw - 28px), 398px);
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(250, 254, 255, 0.84);
  box-shadow: 0 16px 40px rgba(45, 124, 151, 0.18);
}

.tabbar button {
  border-radius: 8px;
}

.tabbar button:not(.ai-tab):hover {
  background: rgba(24, 200, 184, 0.08);
}

.tabbar button.active {
  color: var(--accent-strong);
}

.home-tab,
.home-tab::before {
  background: currentColor;
}

.book-tab,
.user-tab,
.compass-tab,
.discover-tab {
  border-color: currentColor;
}

.discover-tab {
  border-radius: 50%;
}

.discover-tab::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border-radius: 6px 6px 2px 2px;
  background: currentColor;
  transform: rotate(35deg);
}

.tabbar button.ai-tab {
  border-radius: 50%;
}

.ai-tab {
  box-shadow: 0 10px 30px rgba(40, 205, 225, 0.42), 0 0 0 8px rgba(61, 197, 214, 0.12);
}

.tabbar .ai-tab > span:not(.spark-icon) {
  position: relative;
  width: 28px;
  height: 28px;
  display: block;
}

.tabbar .ai-tab > span:not(.spark-icon)::before,
.tabbar .ai-tab > span:not(.spark-icon)::after {
  content: "";
  position: absolute;
  inset: 5px 12px;
  border-radius: 99px;
  background: linear-gradient(180deg, #16c7b0, #4f8fff);
}

.tabbar .ai-tab > span:not(.spark-icon)::after {
  transform: rotate(90deg);
}

.tabbar .ai-tab .spark-icon::before,
.tabbar .ai-tab .spark-icon::after {
  background: linear-gradient(180deg, #16c7b0, #4f8fff);
  box-shadow: none;
}

.back-button > span:not(.chevron) {
  width: 9px;
  height: 9px;
  border-top: 2px solid #8a9aac;
  border-right: 2px solid #8a9aac;
  transform: rotate(-135deg);
}

.mini-icon::before,
.badge::before {
  font-family: "Microsoft YaHei", system-ui, sans-serif;
}

.badge::before {
  content: "+";
}

.badge.vip::before {
  content: "*";
}

.progress-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #fff;
}

.message-icon::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.task-icon::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 2px solid #fff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 386px) {
  .app-screen {
    padding-inline: 14px;
  }

  .resource-card,
  .video-card,
  .discover-topic-card {
    grid-template-columns: 66px 1fr;
    gap: 12px;
  }

  .resource-cover,
  .video-thumb,
  .discover-topic-marker {
    width: 64px;
  }

  .mine-profile-card,
  .mine-learning-card {
    grid-template-columns: 1fr;
  }
}
