:root {
  --ink: #101828;
  --muted: #667085;
  --soft: #f4f7fb;
  --line: #e6edf6;
  --surface: rgba(255, 255, 255, 0.94);
  --blue: #1664e8;
  --teal: #007d80;
  --green: #18a976;
  --orange: #ff6a1a;
  --violet: #7458e7;
  --shadow: 0 14px 35px rgba(28, 45, 80, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(120deg, rgba(230, 248, 246, 0.72) 0%, rgba(246, 249, 252, 0.88) 34%, rgba(238, 243, 255, 0.74) 66%, #ffffff 100%),
    linear-gradient(180deg, #f7fafc 0%, #edf3f8 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 430px));
  align-items: start;
  justify-content: center;
  gap: 34px;
  padding: 28px 18px;
}

.demo-device {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.demo-label {
  min-width: 118px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(31, 58, 95, 0.08);
}

.student-label {
  color: #00696b;
  background: #dff5f2;
}

.parent-label {
  color: #145ee8;
  background: #e6efff;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  height: min(920px, calc(100vh - 56px));
  min-height: 740px;
  overflow: hidden;
  border: 10px solid #111318;
  border-radius: 48px;
  background: linear-gradient(155deg, rgba(225, 247, 246, 0.88) 0%, #f7f9fc 28%, #f2f6fb 100%);
  box-shadow: 0 24px 65px rgba(16, 24, 40, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.parent-phone {
  background: linear-gradient(155deg, rgba(235, 242, 255, 0.92) 0%, #f8faff 30%, #f3f7fb 100%);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 40;
  top: 8px;
  left: 50%;
  width: 132px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #111318;
}

.status-bar {
  position: absolute;
  z-index: 45;
  top: 18px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0d1726;
  font-size: 14px;
  font-weight: 760;
}

.signal {
  font-size: 12px;
  letter-spacing: 0;
}

.app-view {
  position: absolute;
  inset: 0;
  padding: 58px 18px 92px;
}

.page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 2px 0 18px;
  scrollbar-width: none;
}

.scroll::-webkit-scrollbar {
  display: none;
}

.topbar,
.home-header,
.chat-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-title {
  flex: 1;
  text-align: center;
}

.home-header > div {
  min-width: 0;
  flex: 1;
}

.parent-home-header h1 {
  font-size: 24px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  font-size: 15px;
  line-height: 1.35;
}

p,
.subtle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.home-header p,
.topbar p,
.chat-header p {
  margin-top: 6px;
}

.icon-button,
.more-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #111827;
  background: transparent;
  font-size: 23px;
}

.mode-pill {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #dce7f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.mode-pill button {
  height: 30px;
  min-width: 52px;
  padding: 0 10px;
  border-radius: 999px;
  color: #40516c;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.mode-pill button.active {
  color: #fff;
  background: var(--teal);
}

.panel,
.hero-card,
.detail-hero,
.message-card {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid rgba(230, 237, 247, 0.9);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
}

.section-title,
.split-row,
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin-bottom: 12px;
}

.link-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 32px;
  color: var(--blue);
  background: transparent;
  font-size: 13px;
  font-weight: 780;
}

.primary-btn,
.secondary-btn,
.orange-btn,
.soft-btn,
.danger-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 820;
}

.primary-btn {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #008e90, #006b6e);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.secondary-btn {
  color: #145ee8;
  background: #eaf2ff;
}

.orange-btn {
  color: #fff;
  background: var(--orange);
}

.soft-btn {
  min-height: 34px;
  color: #145ee8;
  background: #eaf2ff;
}

.danger-btn {
  color: var(--orange);
  background: #fff0e6;
}

.row-button,
.info-row {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #1d2939;
  background: transparent;
  text-align: left;
  font-weight: 720;
}

.info-row {
  grid-template-columns: 30px 1fr auto;
  padding: 10px 0;
  border-bottom: 1px solid #eef3f8;
}

.info-row:last-child {
  border-bottom: 0;
}

.mini-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
}

.blue {
  background: var(--blue);
}

.teal {
  background: #14a697;
}

.violet {
  background: var(--violet);
}

.orange {
  background: var(--orange);
}

.green {
  background: var(--green);
}

.dark {
  background: #111827;
}

.chevron {
  color: #344054;
  font-size: 17px;
}

.deadline-card {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, #fff7e8, #fffdf8);
}

.deadline-card h2 {
  color: var(--orange);
}

.clock-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-size: 14px;
}

.calendar-badge {
  position: relative;
  height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 2px solid #ffd9c6;
  border-top: 18px solid #ff9b86;
  border-radius: 10px;
  color: var(--orange);
  background: #fffdf9;
}

.calendar-badge::before,
.calendar-badge::after {
  content: "";
  position: absolute;
  top: -25px;
  width: 7px;
  height: 20px;
  border-radius: 6px;
  background: #ff9b86;
}

.calendar-badge::before {
  left: 17px;
}

.calendar-badge::after {
  right: 17px;
}

.calendar-badge strong {
  font-size: 42px;
  line-height: 0.95;
}

.choice-grid,
.change-grid,
.question-grid,
.card-grid,
.option-grid {
  display: grid;
  gap: 10px;
}

.choice-grid {
  grid-template-columns: repeat(4, 1fr);
}

.choice-grid button,
.mini-card {
  min-height: 74px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  padding: 8px 5px;
  color: #20304a;
  background: #f8fbff;
  border: 1px solid #e9f0f7;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 760;
}

.choice-grid svg {
  color: var(--teal);
  font-size: 27px;
}

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

.change-grid article,
.metric-card {
  position: relative;
  min-height: 68px;
  padding: 12px 10px;
  border: 1px solid #dff0ee;
  border-radius: 8px;
  background: #f8fefe;
}

.change-grid strong,
.change-grid span {
  display: block;
}

.change-grid span,
.metric-card span {
  margin-top: 3px;
  color: #344054;
  font-size: 12px;
  line-height: 1.35;
}

.trend {
  position: absolute;
  top: 13px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #20b879;
}

.trend::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(45deg);
}

.trend.warn {
  background: #ffad35;
}

.alert-strip {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px 1fr 18px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #ffe2c6;
  border-radius: 11px;
  color: var(--orange);
  background: #fff5ea;
  text-align: left;
}

.profile-line {
  margin-top: 5px;
  color: #3b465c;
  font-weight: 720;
}

.fit-layout {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: end;
  gap: 4px;
  margin-top: 8px;
}

.parent-fit-card .fit-layout {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  margin-top: 10px;
}

.parent-fit-card .radar {
  width: 100%;
  max-width: 300px;
}

.parent-fit-card .soft-btn {
  min-width: 116px;
  justify-content: center;
}

.radar {
  position: relative;
  height: 150px;
  color: #344054;
  font-size: 11px;
}

.radar-label {
  position: absolute;
  white-space: nowrap;
  color: #344054;
  font-size: 11px;
  font-weight: 650;
}

.radar-label.top {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.radar-label.right {
  right: 0;
  top: 48px;
}

.radar-label.bottom-right {
  right: 7px;
  bottom: 2px;
}

.radar-label.bottom-left {
  left: 26px;
  bottom: 2px;
}

.radar-label.left {
  left: 0;
  top: 48px;
}

.radar-svg {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 180px;
  height: 150px;
  transform: translateX(-50%);
}

.radar-grid polygon {
  fill: rgba(28, 109, 242, 0.055);
  stroke: rgba(28, 109, 242, 0.18);
  stroke-width: 1.4;
}

.radar-grid line {
  stroke: rgba(28, 109, 242, 0.18);
  stroke-width: 1.2;
}

.radar-area {
  fill: rgba(28, 109, 242, 0.22);
}

.radar-line {
  fill: none;
  stroke: #1c6df2;
  stroke-width: 3;
  stroke-linejoin: round;
}

.radar-score {
  position: absolute;
  left: 50%;
  top: 66px;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
  color: var(--blue);
}

.radar-score strong {
  font-size: 23px;
  line-height: 1;
}

.radar-score small {
  font-size: 10px;
  font-weight: 820;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list .info-row {
  grid-template-columns: 28px 1fr auto;
}

.tag {
  justify-self: end;
  min-width: 68px;
  padding: 6px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 820;
}

.tag-warn {
  color: var(--orange);
  background: #fff0e5;
}

.tag-blue {
  color: var(--blue);
  background: #eaf2ff;
}

.tag-green {
  color: #07945f;
  background: #e8fbf2;
}

.bubble-art {
  position: relative;
  width: 92px;
  height: 64px;
  flex: 0 0 auto;
}

.bubble-art i,
.bubble-art b {
  position: absolute;
  display: block;
  border-radius: 12px;
}

.bubble-art i {
  width: 70px;
  height: 46px;
  top: 0;
  left: 4px;
  background: #6fa7ff;
}

.bubble-art i::before,
.bubble-art i::after {
  content: "";
  position: absolute;
  left: 19px;
  width: 34px;
  height: 4px;
  border-radius: 99px;
  background: #eaf2ff;
  box-shadow: 0 12px 0 #eaf2ff;
}

.bubble-art i::before {
  top: 15px;
}

.bubble-art b {
  width: 54px;
  height: 38px;
  right: 4px;
  bottom: 0;
  background: #0b64ec;
}

.bubble-art b::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -8px;
  border: 10px solid transparent;
  border-top-color: #0b64ec;
}

.expert-avatar {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border: 3px solid #eef4fb;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f9ff;
  box-shadow: 0 12px 24px rgba(30, 46, 70, 0.14);
}

.mine-profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 16px;
  border: 1px solid rgba(210, 232, 229, 0.92);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #eefaf8);
  box-shadow: var(--shadow);
}

.parent-profile-card {
  border-color: rgba(216, 229, 255, 0.96);
  background: linear-gradient(135deg, #ffffff, #eff5ff);
}

.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 125, 128, 0.16);
}

.mine-profile-card h2 {
  font-size: 20px;
}

.mine-profile-card p {
  margin-top: 4px;
  color: #526178;
  font-weight: 720;
}

.mine-profile-card span {
  display: block;
  margin-top: 4px;
  color: #7a8798;
  font-size: 12px;
  line-height: 1.35;
}

.edit-profile-btn {
  min-width: 52px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf2ff;
  font-size: 13px;
  font-weight: 850;
}

.detail-hero {
  color: #fff;
  background: linear-gradient(135deg, #008e90, #155de8);
}

.detail-hero p {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 8px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef6;
}

.progress-track i {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e8eef6;
  border-radius: 10px;
  background: #fbfdff;
}

.flow-step {
  align-items: center;
}

.flow-active {
  border-color: rgba(15, 156, 150, 0.35);
  background: linear-gradient(135deg, rgba(238, 253, 250, 0.96), rgba(248, 251, 255, 0.96));
  box-shadow: 0 8px 18px rgba(15, 124, 129, 0.08);
}

.step-action-btn {
  min-width: 78px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0eaaa4, #087e83);
  box-shadow: 0 8px 16px rgba(8, 126, 131, 0.16);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.step-index,
.check-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 820;
}

.check-mark {
  background: var(--green);
}

.option-grid {
  grid-template-columns: repeat(2, 1fr);
}

.option-button {
  min-height: 78px;
  padding: 12px;
  border: 1px solid #e5edf6;
  border-radius: 10px;
  color: #26364f;
  background: #fbfdff;
  text-align: left;
  font-weight: 820;
}

.option-button small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.option-button.selected {
  border-color: var(--teal);
  background: #eefaf9;
  color: var(--teal);
}

.result-box {
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fbf8, #eef5ff);
}

.result-box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 18px;
}

.report-page .scroll {
  padding-bottom: 24px;
}

.report-cover,
.report-score-card,
.report-section,
.report-summary,
.report-footer {
  margin: 12px 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.report-cover {
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 125, 128, 0.96), rgba(22, 100, 232, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.report-cover::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 128px;
  height: 128px;
  border: 18px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.report-kicker,
.report-label {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.report-kicker {
  color: #dffdf8;
  background: rgba(255, 255, 255, 0.16);
}

.report-cover h2 {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 26px;
}

.report-cover p {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.report-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.report-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 760;
}

.report-score-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5eef8;
  background: linear-gradient(135deg, #ffffff, #f4fbff);
}

.score-ring {
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--teal) calc(var(--score) * 1%), #e6eef6 0);
  box-shadow: inset 0 0 0 1px #dfeaf5;
}

.score-ring strong {
  color: var(--teal);
  font-size: 32px;
  line-height: 1;
}

.score-ring span {
  margin-top: 4px;
  color: #50617a;
  font-size: 11px;
  font-weight: 800;
}

.score-copy h2 {
  margin-top: 8px;
  font-size: 19px;
}

.score-copy p {
  margin-top: 8px;
}

.report-label {
  color: var(--blue);
  background: #eaf2ff;
}

.report-section {
  padding: 16px;
  border: 1px solid #e7eef7;
  background: rgba(255, 255, 255, 0.96);
}

.report-section-head {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}

.report-section-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 12px;
  font-weight: 900;
}

.report-section-head p {
  margin-top: 3px;
  font-size: 13px;
}

.conclusion-grid {
  display: grid;
  gap: 10px;
}

.conclusion-grid article,
.dimension-item,
.risk-grid article {
  padding: 13px;
  border: 1px solid #e8f0f7;
  border-radius: 12px;
  background: #fbfdff;
}

.conclusion-grid b,
.risk-grid strong {
  display: block;
  color: #172033;
  font-size: 15px;
}

.conclusion-grid p,
.dimension-item p,
.risk-grid p {
  margin-top: 6px;
  color: #5f6f86;
  font-size: 13px;
  line-height: 1.55;
}

.dimension-list {
  display: grid;
  gap: 12px;
}

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

.dimension-top strong {
  font-size: 15px;
}

.dimension-top span {
  color: var(--teal);
  font-size: 18px;
  font-weight: 900;
}

.dimension-top small {
  margin-left: 6px;
  color: var(--green);
  font-size: 11px;
}

.trend-board {
  height: 158px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px 8px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #eef5fb);
}

.trend-bar {
  height: 126px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  align-items: end;
  gap: 5px;
}

.trend-bar i {
  width: 26px;
  height: var(--bar);
  min-height: 28px;
  display: block;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #5da2ff, var(--teal));
  box-shadow: 0 8px 18px rgba(0, 125, 128, 0.18);
}

.trend-bar span {
  color: #667085;
  font-size: 11px;
  font-weight: 750;
}

.trend-bar b {
  color: #1d2939;
  font-size: 13px;
}

.report-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #44546b;
  background: #f6f9fc;
  font-size: 13px;
  line-height: 1.5;
}

.risk-grid {
  display: grid;
  gap: 10px;
}

.risk-grid .opportunity {
  border-color: #ccefe6;
  background: #f2fbf8;
}

.risk-grid .opportunity strong {
  color: var(--teal);
}

.risk-grid .risk {
  border-color: #ffe0cc;
  background: #fff8f3;
}

.risk-grid .risk strong {
  color: var(--orange);
}

.action-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #e7eef7;
  border-radius: 12px;
}

.report-action-row {
  display: grid;
  grid-template-columns: 48px 1fr 58px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eef3f8;
  background: #fff;
}

.report-action-row:last-child {
  border-bottom: 0;
}

.report-action-row > span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 8px;
  color: var(--blue);
  background: #edf4ff;
  font-size: 12px;
  font-weight: 900;
}

.report-action-row strong {
  display: block;
  font-size: 14px;
}

.report-action-row p {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.report-action-row em {
  justify-self: end;
  color: var(--teal);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.report-summary {
  padding: 18px;
  border: 1px solid #d7ece9;
  background:
    linear-gradient(135deg, #f0fbf8, #eef5ff),
    #fff;
}

.report-summary h2 {
  margin-top: 10px;
  font-size: 20px;
}

.report-summary p {
  margin-top: 8px;
}

.report-next-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.report-visibility {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #d8e7f7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.report-visibility strong {
  display: block;
  color: var(--blue);
  font-size: 14px;
}

.report-visibility p {
  margin-top: 5px;
  color: #53647b;
  font-size: 13px;
  line-height: 1.55;
}

.report-footer {
  display: grid;
  gap: 4px;
  padding: 13px;
  color: #7a8798;
  background: rgba(255, 255, 255, 0.76);
  border: 1px dashed #d8e2ee;
  font-size: 11px;
  text-align: center;
}

.chat-page {
  padding-bottom: 0;
}

.chat-scroll {
  padding: 14px 0 72px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 14px;
}

.message p {
  max-width: 280px;
  padding: 14px 16px;
  border-radius: 10px;
  line-height: 1.65;
  font-size: 14px;
  font-weight: 680;
}

.message.user {
  justify-content: flex-end;
}

.message.user p {
  background: #dceaff;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #f5fafc;
  box-shadow: 0 10px 20px rgba(30, 46, 70, 0.12);
}

.chat-avatar.ai-avatar {
  background: #e9fbf8;
}

.chat-avatar.user-avatar,
.chat-avatar.student-avatar,
.chat-avatar.parent-avatar {
  background: #eef5ff;
}

.message.assistant p,
.message-card {
  background: #fff;
  box-shadow: var(--shadow);
}

.question-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 12px;
}

.question-grid button,
.quick-row button {
  min-height: 40px;
  border-radius: 9px;
  color: #1c2a42;
  background: #edf4fb;
  font-weight: 760;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.chat-input {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 86px;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr 38px 42px;
  align-items: center;
  gap: 7px;
  height: 56px;
  padding: 8px 9px 8px 18px;
  border: 1px solid #edf1f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.parent-chat-input {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 84px;
  width: auto;
  margin: 0;
}

.chat-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #1d2939;
  background: transparent;
  font-size: 14px;
}

.input-icon,
.send-btn {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.input-icon {
  width: 38px;
  height: 38px;
  color: #2d3d56;
  background: #f5f8fc;
  font-size: 22px;
}

.send-btn {
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--teal);
  font-size: 20px;
}

.bottom-nav {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 8px 8px 12px;
  border-top: 1px solid rgba(229, 236, 247, 0.96);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #344054;
  background: transparent;
  font-size: 11px;
  font-weight: 820;
}

.bottom-nav svg {
  font-size: 23px;
}

.bottom-nav button.active {
  color: var(--blue);
}

.bottom-nav .chat-tab {
  position: relative;
  top: -18px;
  width: 70px;
  height: 70px;
  justify-self: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #19a9a1, #006f73 70%);
  box-shadow: 0 10px 25px rgba(0, 124, 128, 0.28);
}

.bottom-nav .chat-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #4388ff, #0a54de 72%);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 40px));
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 24, 40, 0.9);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.18);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  font-size: 14px;
}

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

/* Modern app visual refresh */
:root {
  --ink: #101828;
  --muted: #667085;
  --soft: #f5f7fb;
  --line: rgba(214, 224, 238, 0.82);
  --surface: rgba(255, 255, 255, 0.92);
  --blue: #2563eb;
  --teal: #059196;
  --green: #17a673;
  --orange: #ff7a1a;
  --violet: #7c5ce6;
  --shadow: 0 10px 28px rgba(31, 45, 72, 0.1);
  --soft-shadow: 0 6px 18px rgba(31, 45, 72, 0.07);
  --hairline: 1px solid rgba(218, 227, 239, 0.76);
}

body {
  background:
    linear-gradient(120deg, rgba(230, 248, 246, 0.72) 0%, rgba(246, 249, 252, 0.88) 34%, rgba(238, 243, 255, 0.74) 66%, #ffffff 100%),
    linear-gradient(180deg, #f7fafc 0%, #edf3f8 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.app-shell {
  gap: 44px;
  padding: 24px 18px 34px;
}

.demo-label {
  height: 34px;
  min-width: 104px;
  border: var(--hairline);
  border-radius: 999px;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(31, 45, 72, 0.06);
  backdrop-filter: blur(14px);
}

.student-label {
  color: #06777a;
  background: rgba(222, 247, 244, 0.86);
}

.parent-label {
  color: #1c5edb;
  background: rgba(232, 239, 255, 0.9);
}

.phone {
  border-width: 8px;
  border-color: #12151c;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(245, 252, 251, 0.92) 0%, rgba(247, 249, 252, 0.98) 34%, #eef4f8 100%),
    linear-gradient(120deg, rgba(226, 249, 247, 0.86), rgba(240, 245, 255, 0.84));
  box-shadow:
    0 28px 72px rgba(15, 23, 42, 0.25),
    0 6px 18px rgba(15, 23, 42, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.parent-phone {
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.96) 0%, rgba(247, 249, 252, 0.98) 34%, #eef4fb 100%),
    linear-gradient(120deg, rgba(232, 240, 255, 0.88), rgba(235, 250, 248, 0.78));
}

.phone::before {
  top: 7px;
  width: 126px;
  height: 24px;
  border-radius: 0 0 17px 17px;
}

.status-bar {
  top: 17px;
  color: #111827;
  font-size: 13px;
}

.app-view {
  padding: 58px 16px 90px;
}

.scroll {
  padding: 4px 1px 20px;
}

.topbar,
.home-header,
.chat-header {
  min-height: 64px;
}

h1 {
  color: #101828;
  font-size: 25px;
  font-weight: 900;
}

h2 {
  color: #111827;
  font-size: 17px;
  font-weight: 860;
}

h3 {
  font-weight: 820;
}

p,
.subtle {
  color: #687386;
}

.icon-button,
.more-button {
  width: 40px;
  height: 40px;
  color: #182232;
  border: 1px solid transparent;
}

.icon-button:not(:empty):hover,
.more-button:hover {
  border-color: rgba(220, 229, 242, 0.82);
  background: rgba(255, 255, 255, 0.72);
}

.panel,
.hero-card,
.detail-hero,
.message-card,
.report-score-card,
.report-section,
.report-summary,
.report-footer,
.mine-profile-card {
  border: var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.panel,
.hero-card,
.detail-hero,
.message-card {
  margin: 10px 0;
  padding: 15px;
}

.hero-card,
.result-box,
.report-summary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 248, 0.88)),
    #fff;
}

.section-title {
  margin-bottom: 10px;
}

.primary-btn,
.secondary-btn,
.orange-btn,
.soft-btn,
.danger-btn,
.edit-profile-btn,
.question-grid button,
.quick-row button,
.option-button {
  border-radius: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-btn,
.orange-btn {
  min-height: 44px;
  box-shadow: 0 10px 20px rgba(5, 145, 150, 0.18);
}

.primary-btn {
  background: linear-gradient(135deg, #07a2a4, #057378);
}

.orange-btn {
  background: linear-gradient(135deg, #ff8a2a, #ff6415);
  box-shadow: 0 10px 20px rgba(255, 122, 26, 0.18);
}

.secondary-btn,
.soft-btn,
.edit-profile-btn,
.question-grid button,
.quick-row button {
  color: #215fdb;
  background: rgba(232, 241, 255, 0.88);
}

.primary-btn:active,
.secondary-btn:active,
.orange-btn:active,
.soft-btn:active,
.option-button:active,
.question-grid button:active,
.quick-row button:active {
  transform: scale(0.98);
}

.row-button,
.info-row {
  border-radius: 8px;
}

.row-button {
  min-height: 46px;
  padding: 8px;
}

.today-task-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.today-task-text strong {
  color: #172033;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 850;
}

.today-task-text small {
  display: block;
  color: #69758a;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 760;
}

.row-button:hover,
.info-row:hover {
  background: rgba(246, 249, 252, 0.88);
}

.info-row {
  padding: 11px 6px;
  border-bottom-color: rgba(226, 234, 244, 0.82);
}

.mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.deadline-card {
  grid-template-columns: 1fr 70px;
  background:
    linear-gradient(135deg, rgba(255, 248, 238, 0.96), rgba(255, 255, 255, 0.94)),
    #fff;
}

.clock-dot {
  width: 20px;
  height: 20px;
  font-size: 13px;
}

.calendar-badge {
  height: 82px;
  border: 1px solid rgba(255, 198, 165, 0.9);
  border-top: 16px solid #ff9b80;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(255, 122, 26, 0.11);
}

.choice-grid button,
.mini-card,
.change-grid article,
.metric-card,
.step-item,
.option-button,
.conclusion-grid article,
.dimension-item,
.risk-grid article {
  border: var(--hairline);
  border-radius: 8px;
  background: rgba(250, 252, 255, 0.92);
  box-shadow: 0 3px 10px rgba(31, 45, 72, 0.04);
}

.step-item.flow-active {
  border-color: rgba(15, 156, 150, 0.35);
  background: linear-gradient(135deg, rgba(238, 253, 250, 0.96), rgba(248, 251, 255, 0.96));
  box-shadow: 0 8px 18px rgba(15, 124, 129, 0.08);
}

.choice-grid button {
  min-height: 76px;
}

.choice-grid svg {
  color: #057f83;
}

.change-grid article,
.metric-card {
  min-height: 72px;
}

.trend {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #19c68d, #0f9f75);
}

.trend.warn {
  background: linear-gradient(135deg, #ffba4a, #ff8a1c);
}

.alert-strip {
  border: 1px solid rgba(255, 213, 179, 0.9);
  border-radius: 8px;
  background: rgba(255, 247, 237, 0.9);
  box-shadow: var(--soft-shadow);
}

.radar {
  height: 156px;
  border-radius: 8px;
}

.radar-grid polygon {
  fill: rgba(37, 99, 235, 0.05);
  stroke: rgba(37, 99, 235, 0.16);
}

.radar-area {
  fill: rgba(5, 145, 150, 0.2);
}

.radar-line {
  stroke: #2563eb;
}

.radar-score {
  top: 68px;
}

.tag {
  border-radius: 999px;
}

.bubble-art i,
.bubble-art b {
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.14);
}

.bubble-art i {
  background: linear-gradient(135deg, #8eb9ff, #4d84ef);
}

.bubble-art b {
  background: linear-gradient(135deg, #2667e8, #0644b7);
}

.expert-avatar,
.profile-avatar,
.chat-avatar {
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(31, 45, 72, 0.13);
}

.mine-profile-card {
  grid-template-columns: 64px 1fr auto;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 250, 248, 0.88)),
    #fff;
}

.parent-profile-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 255, 0.9)),
    #fff;
}

.profile-avatar {
  width: 64px;
  height: 64px;
}

.detail-hero {
  color: #fff;
  background:
    linear-gradient(135deg, #078f94 0%, #2868df 100%),
    #0f766e;
  box-shadow: 0 12px 26px rgba(20, 91, 160, 0.16);
}

.progress-track {
  height: 9px;
  background: rgba(229, 236, 246, 0.94);
}

.progress-track i {
  background: linear-gradient(90deg, #08a7a8, #2563eb);
}

.step-item {
  min-height: 66px;
  padding: 12px;
}

.step-index,
.check-mark {
  box-shadow: 0 8px 14px rgba(37, 99, 235, 0.16);
}

.check-mark {
  box-shadow: 0 8px 14px rgba(23, 166, 115, 0.15);
}

.option-button.selected {
  border-color: rgba(5, 145, 150, 0.54);
  background: rgba(232, 250, 248, 0.96);
  box-shadow: 0 8px 18px rgba(5, 145, 150, 0.09);
}

.report-cover {
  border-radius: 8px;
  background:
    linear-gradient(135deg, #067b80 0%, #2465dc 72%, #7259df 100%),
    #2465dc;
  box-shadow: 0 14px 30px rgba(28, 91, 172, 0.18);
}

.report-cover::after {
  width: 160px;
  height: 160px;
  right: -62px;
  bottom: -74px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  border-radius: 8px;
  transform: rotate(18deg);
}

.report-meta span,
.report-kicker {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.report-score-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.score-ring {
  box-shadow: inset 0 0 0 1px rgba(221, 232, 244, 0.92), 0 8px 18px rgba(5, 145, 150, 0.09);
}

.report-section-head > span {
  border-radius: 8px;
  background: linear-gradient(135deg, #059196, #2563eb);
}

.trend-board {
  border: var(--hairline);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(239, 245, 251, 0.96));
}

.trend-bar i {
  background: linear-gradient(180deg, #5fa4ff, #059196);
}

.report-note,
.report-visibility {
  border-radius: 8px;
}

.message p {
  max-width: 274px;
  border-radius: 8px;
  font-weight: 650;
  box-shadow: 0 6px 18px rgba(31, 45, 72, 0.06);
}

.message.assistant p {
  border: var(--hairline);
}

.message.user p {
  color: #12305e;
  background: linear-gradient(135deg, #dcecff, #cfe2ff);
}

.message-card {
  background: rgba(255, 255, 255, 0.93);
}

.chat-input {
  left: 16px;
  right: 16px;
  bottom: 84px;
  height: 58px;
  border: var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(31, 45, 72, 0.13);
  backdrop-filter: blur(18px);
}

.input-icon {
  color: #38475e;
  background: #f1f5f9;
}

.send-btn {
  background: linear-gradient(135deg, #08a5a7, #05777c);
  box-shadow: 0 8px 16px rgba(5, 145, 150, 0.2);
}

.bottom-nav {
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 76px;
  padding: 7px 8px 10px;
  border: var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(31, 45, 72, 0.13);
}

.bottom-nav button {
  height: 54px;
  border-radius: 8px;
  color: #5e6b7f;
  font-weight: 800;
}

.bottom-nav button.active:not(.chat-tab) {
  color: #2563eb;
  background: rgba(232, 241, 255, 0.78);
}

.bottom-nav svg {
  font-size: 22px;
}

.bottom-nav .chat-tab {
  top: -17px;
  width: 68px;
  height: 68px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, #0fb7b2, #057378);
  box-shadow: 0 16px 30px rgba(5, 145, 150, 0.26);
}

.bottom-nav .chat-tab.active {
  background: linear-gradient(135deg, #4f8cff, #155be7);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.26);
}

.toast {
  border-radius: 8px;
}

/* Refinement pass: precise CTAs, readable dark panels, real illustrations */
.detail-hero h2,
.report-cover h2 {
  color: #fff;
}

.detail-hero p,
.report-cover p {
  color: rgba(255, 255, 255, 0.84);
}

.primary-btn,
.secondary-btn,
.orange-btn,
.soft-btn,
.danger-btn,
.edit-profile-btn {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
  box-shadow: none;
}

.primary-btn,
.orange-btn {
  color: #fff;
}

.primary-btn {
  background: linear-gradient(135deg, #07989a, #067174);
  box-shadow: 0 8px 16px rgba(5, 145, 150, 0.16);
}

.orange-btn {
  background: linear-gradient(135deg, #ff8c2b, #f26113);
  box-shadow: 0 8px 16px rgba(255, 122, 26, 0.14);
}

.secondary-btn,
.soft-btn,
.edit-profile-btn,
.danger-btn {
  border-color: rgba(214, 225, 240, 0.92);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 10px rgba(31, 45, 72, 0.05);
}

.secondary-btn,
.soft-btn,
.edit-profile-btn {
  color: #245ed6;
}

.danger-btn {
  color: #d85a12;
}

.panel > .primary-btn,
.panel > .secondary-btn,
.panel > .orange-btn,
.panel > .soft-btn,
.hero-card > .primary-btn,
.detail-hero > .primary-btn,
.result-box + .primary-btn,
.result-box + .primary-btn + .secondary-btn {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  margin-left: auto;
}

.result-box + .primary-btn + .secondary-btn {
  margin-top: 8px;
}

.report-next-actions {
  grid-template-columns: 1fr 1fr;
}

.report-next-actions .primary-btn,
.report-next-actions .secondary-btn {
  width: 100%;
  justify-content: center;
  margin: 0;
}

.question-grid button,
.quick-row button {
  min-height: 38px;
  border: 1px solid rgba(219, 229, 242, 0.86);
  border-radius: 8px;
  color: #21314b;
  background: rgba(246, 249, 253, 0.92);
  box-shadow: 0 3px 8px rgba(31, 45, 72, 0.04);
}

.quick-row button {
  padding: 0 8px;
  font-size: 12px;
}

.card-illustration {
  width: 96px;
  height: 76px;
  flex: 0 0 auto;
  border: 1px solid rgba(226, 235, 246, 0.9);
  border-radius: 8px;
  object-fit: cover;
  background: #f6f9fd;
  box-shadow: 0 10px 20px rgba(31, 45, 72, 0.1);
}

.talk-hero {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(6, 126, 130, 0.94), rgba(36, 101, 220, 0.92)),
    #1760c9;
}

.talk-hero-image {
  width: 112px;
  height: 96px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
}

.split-row:has(.card-illustration) {
  grid-template-columns: 1fr 102px;
  align-items: center;
}

.split-row:has(.card-illustration) p {
  max-width: 210px;
}

/* Targeted polish for home choices and decision pages */
.deadline-card {
  padding: 18px 16px;
  align-items: center;
}

.deadline-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.deadline-card p {
  max-width: 225px;
  margin-top: 8px;
  line-height: 1.55;
}

.deadline-card .orange-btn {
  margin: 14px 0 0;
  min-height: 34px;
  padding: 0 16px;
  font-size: 13px;
}

.calendar-badge {
  justify-self: end;
}

.change-grid article {
  padding: 12px;
  border-color: rgba(216, 227, 241, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.96));
}

.trend {
  top: 16px;
  right: 12px;
  width: 26px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a8ead3, #1eb77d);
  box-shadow: none;
}

.trend::before {
  display: none;
}

.trend.warn {
  background: linear-gradient(90deg, #ffe0a3, #ffab35);
}

.choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.choice-grid button {
  min-width: 0;
  min-height: 86px;
  padding: 11px 6px;
  border-color: rgba(216, 227, 241, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.96));
}

.choice-grid button span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.choice-grid button strong {
  color: #182338;
  font-size: 15px;
  line-height: 1.15;
  white-space: nowrap;
}

.choice-grid button small {
  color: #6b778b;
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
}

.choice-grid svg {
  font-size: 25px;
}

.choice-hero {
  display: grid;
  grid-template-columns: 1fr 118px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 250, 248, 0.92)),
    #fff;
}

.choice-hero h2 {
  font-size: 20px;
}

.choice-hero p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.choice-hero .primary-btn {
  margin: 14px 0 0;
}

.choice-hero-image {
  width: 118px;
  height: 112px;
  border: 1px solid rgba(218, 228, 241, 0.92);
  border-radius: 8px;
  object-fit: cover;
  background: #f6f9fd;
  box-shadow: 0 12px 22px rgba(31, 45, 72, 0.1);
}

.parent-choice-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 255, 0.92)),
    #fff;
}

.decision-panel {
  padding: 10px 12px;
}

.decision-list,
.decision-panel .card-grid {
  gap: 8px;
}

.decision-panel .info-row {
  min-height: 68px;
  grid-template-columns: 36px 1fr 18px;
  gap: 12px;
  padding: 12px 4px;
  border-bottom-color: rgba(225, 234, 245, 0.92);
}

.decision-panel .info-row strong {
  color: #172033;
  font-size: 15px;
  line-height: 1.28;
}

.decision-panel .info-row small {
  margin-top: 3px;
  color: #6a7588;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

/* Fix calendar badge and detail CTA layout */
.deadline-card {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 18px;
}

.calendar-badge {
  width: 76px;
  height: 92px;
  justify-self: center;
  border: 2px solid #ffcdb6;
  border-top: 18px solid #ff9a80;
  border-radius: 10px;
  background: #fffdfb;
}

.calendar-badge::before,
.calendar-badge::after {
  top: -27px;
  width: 8px;
  height: 22px;
  background: #ff9a80;
}

.calendar-badge::before {
  left: 16px;
}

.calendar-badge::after {
  right: 16px;
}

.calendar-badge strong {
  display: block;
  font-size: 40px;
  line-height: 0.95;
}

.calendar-badge span {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.detail-actions .primary-btn,
.detail-actions .secondary-btn {
  width: 100%;
  justify-content: center;
  margin: 0;
}

.result-box + .primary-btn,
.result-box + .primary-btn + .secondary-btn {
  margin-left: 0;
}

.goal-panel {
  display: grid;
  gap: 10px;
}

.goal-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(221, 231, 243, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.96));
}

.goal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.goal-top strong {
  display: block;
  color: #172033;
  font-size: 15px;
}

.goal-top p {
  margin-top: 3px;
  font-size: 12px;
}

.goal-top span {
  color: var(--teal);
  font-size: 18px;
  font-weight: 900;
}

.goal-item small {
  color: #6a7588;
  font-size: 12px;
  font-weight: 700;
}

.assessment-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.assessment-entry p {
  margin-top: 5px;
  font-size: 13px;
}

.assessment-hero {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 14px;
  align-items: center;
  margin: 10px 0;
  padding: 16px;
  border: var(--hairline);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 250, 248, 0.98), rgba(238, 244, 255, 0.94)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.assessment-hero h2 {
  font-size: 20px;
}

.assessment-hero p {
  margin-top: 7px;
  font-size: 13px;
}

.assessment-score {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: var(--teal);
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--teal) var(--assessment-progress, 0%), #e6eef6 0);
  box-shadow: inset 0 0 0 1px rgba(221, 232, 244, 0.92);
}

.assessment-score strong {
  font-size: 22px;
  line-height: 1;
}

.assessment-score span {
  margin-top: 3px;
  color: #607087;
  font-size: 10px;
  font-weight: 800;
}

.assessment-card {
  display: grid;
  gap: 12px;
}

.assessment-card-head {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
}

.assessment-card-head p {
  margin-top: 3px;
  font-size: 12px;
}

.assessment-entry-list,
.assessment-history-list {
  display: grid;
  gap: 10px;
}

.assessment-entry-card {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(221, 231, 243, 0.92);
  border-radius: 8px;
  color: #172033;
  background: rgba(248, 251, 254, 0.96);
  text-align: left;
}

.assessment-entry-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.assessment-entry-card small {
  display: block;
  margin-top: 4px;
  color: #687386;
  font-size: 12px;
  line-height: 1.4;
}

.assessment-entry-card i {
  display: block;
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef7;
}

.assessment-entry-card i b {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #08a7a8, #2563eb);
}

.assessment-entry-card em {
  color: #057378;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.assessment-history-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226, 234, 244, 0.86);
}

.assessment-history-row:last-child {
  border-bottom: 0;
}

.assessment-history-row > span {
  color: #718096;
  font-size: 11px;
  font-weight: 800;
}

.assessment-history-row strong {
  display: block;
  color: #172033;
  font-size: 14px;
  line-height: 1.25;
}

.assessment-history-row p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}

.assessment-history-row b {
  padding: 5px 8px;
  border-radius: 999px;
  color: #057378;
  background: rgba(232, 250, 248, 0.96);
  font-size: 12px;
  line-height: 1;
}

.assessment-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.assessment-summary article {
  padding: 12px;
  border: 1px solid rgba(221, 231, 243, 0.92);
  border-radius: 8px;
  background: rgba(248, 251, 254, 0.96);
}

.assessment-summary span {
  color: #6a7588;
  font-size: 11px;
  font-weight: 850;
}

.assessment-summary strong {
  display: block;
  margin-top: 4px;
  color: #057378;
  font-size: 24px;
  line-height: 1;
}

.assessment-summary p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.assessment-question {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 234, 244, 0.86);
}

.assessment-question:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.assessment-question h3 {
  color: #182338;
  font-size: 14px;
}

.assessment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.assessment-options button {
  min-height: 38px;
  border: 1px solid rgba(219, 229, 242, 0.9);
  border-radius: 8px;
  color: #26364f;
  background: rgba(248, 251, 254, 0.96);
  font-size: 13px;
  font-weight: 780;
  text-align: left;
  padding: 9px 10px;
}

.assessment-options button.selected {
  color: #057378;
  border-color: rgba(5, 145, 150, 0.5);
  background: rgba(232, 250, 248, 0.96);
  box-shadow: 0 6px 14px rgba(5, 145, 150, 0.08);
}

.assessment-options button small {
  display: block;
  margin-top: 4px;
  color: #7a8798;
  font-size: 10px;
  font-weight: 800;
}

.assessment-options button.selected small {
  color: #057378;
}

.plan-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px;
  margin: 10px 0;
  padding: 18px;
  border: var(--hairline);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 126, 130, 0.96), rgba(37, 99, 235, 0.92)),
    #1760c9;
  box-shadow: 0 14px 30px rgba(28, 91, 172, 0.18);
}

.plan-hero span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 850;
}

.plan-hero h2 {
  margin-top: 12px;
  color: #fff;
  font-size: 21px;
  line-height: 1.25;
}

.plan-hero p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.plan-hero .soft-btn {
  color: #0f5ed7;
  background: rgba(255, 255, 255, 0.92);
}

.plan-overview {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 247, 0.92)),
    #fff;
}

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

.plan-stat-grid article {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(221, 231, 243, 0.92);
  border-radius: 8px;
  background: rgba(248, 251, 254, 0.92);
}

.plan-stat-grid strong {
  color: #057378;
  font-size: 22px;
  line-height: 1;
}

.plan-stat-grid span {
  color: #6a7588;
  font-size: 11px;
  font-weight: 780;
}

.plan-calendar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.calendar-day-card {
  min-height: 128px;
  display: grid;
  grid-template-columns: 86px 1fr;
  grid-template-rows: auto 1fr;
  gap: 10px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(218, 228, 241, 0.94);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.96)),
    #fff;
  box-shadow: 0 5px 14px rgba(31, 45, 72, 0.06);
}

.calendar-day-card.is-next {
  border-color: rgba(5, 145, 150, 0.38);
  background:
    linear-gradient(180deg, rgba(235, 250, 248, 0.98), rgba(255, 255, 255, 0.96)),
    #fff;
}

.day-head {
  grid-row: 1 / 3;
  display: grid;
  align-content: start;
  gap: 8px;
}

.day-head span {
  width: 58px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #057378;
  background: rgba(232, 250, 248, 0.96);
  font-size: 13px;
  font-weight: 900;
}

.day-head strong {
  color: #172033;
  font-size: 17px;
}

.day-progress {
  align-self: center;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(229, 236, 246, 0.94);
}

.day-progress i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #08a7a8, #2563eb);
}

.plan-task-list {
  display: grid;
  gap: 7px;
}

.plan-task {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(246, 249, 253, 0.92);
  text-align: left;
}

.plan-task:hover,
.month-task-row:hover {
  background: rgba(238, 246, 255, 0.96);
}

.plan-task b {
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.plan-task b.done {
  background: #17a673;
}

.plan-task b.partial {
  background: #f6b73c;
}

.plan-task b.pending {
  background: #ef4444;
}

.plan-task b.ready {
  background: #111827;
}

.plan-task span {
  color: #24324a;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.25;
}

.plan-task em {
  grid-column: auto;
  color: #7a8798;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.month-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  margin: 10px 0;
  padding: 16px;
  border: var(--hairline);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 250, 248, 0.94)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.month-hero span {
  color: #057378;
  font-size: 12px;
  font-weight: 880;
}

.month-hero h2 {
  margin-top: 5px;
  font-size: 21px;
}

.month-hero p {
  margin-top: 6px;
  font-size: 12px;
}

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

.month-stat {
  display: grid;
  gap: 3px;
  min-height: 58px;
  align-content: center;
  padding: 9px;
  border: 1px solid rgba(221, 231, 243, 0.92);
  border-radius: 8px;
  background: rgba(248, 251, 254, 0.94);
}

.month-stat strong {
  color: #057378;
  font-size: 22px;
  line-height: 1;
}

.month-stat span {
  color: #6a7588;
  font-size: 11px;
  font-weight: 800;
}

.month-panel {
  padding: 12px;
}

.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.month-weekdays {
  gap: 5px;
  margin-bottom: 7px;
}

.month-weekdays span {
  color: #738096;
  font-size: 11px;
  font-weight: 880;
  text-align: center;
}

.month-grid {
  gap: 5px;
}

.month-day {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 6px 4px;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 241, 0.9);
  border-radius: 8px;
  background: rgba(250, 252, 255, 0.94);
  text-align: left;
}

.month-day.done {
  background: rgba(246, 252, 250, 0.96);
}

.month-day.today {
  border-color: rgba(5, 145, 150, 0.72);
  background: linear-gradient(180deg, rgba(226, 250, 247, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 7px 16px rgba(5, 145, 150, 0.11);
}

.month-day.selected {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.month-day.is-empty {
  min-height: 52px;
  border-style: dashed;
  background: rgba(246, 249, 253, 0.5);
}

.month-day-top {
  display: block;
  text-align: center;
}

.month-day-top strong {
  color: #172033;
  font-size: 15px;
  line-height: 1;
}

.month-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-height: 8px;
}

.month-dots i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: #111827;
}

.month-dots i.done {
  background: #17a673;
}

.month-dots i.partial {
  background: #f6b73c;
}

.month-dots i.pending {
  background: #ef4444;
}

.month-dots i.ready {
  background: #111827;
}

.month-task-detail {
  display: grid;
  gap: 9px;
}

.month-task-row {
  width: 100%;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(221, 231, 243, 0.92);
  border-radius: 8px;
  background: rgba(248, 251, 254, 0.94);
  text-align: left;
}

.month-task-row.done {
  background: rgba(235, 251, 244, 0.94);
}

.month-task-row > i {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #111827;
}

.month-task-row.done > i {
  background: #17a673;
}

.month-task-row.partial > i {
  background: #f6b73c;
}

.month-task-row.pending > i {
  background: #ef4444;
}

.month-task-row.ready > i {
  background: #111827;
}

.month-task-row strong {
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
}

.month-task-row span {
  display: block;
  margin-top: 3px;
  color: #758196;
  font-size: 11px;
  font-weight: 760;
}

.message-stack {
  display: grid;
  gap: 6px;
  max-width: 292px;
}

.message.user .message-stack {
  justify-items: end;
}

.message-stack > p {
  max-width: 280px;
}

.agent-card-stack {
  display: grid;
  gap: 6px;
}

.agent-result-card {
  width: 268px;
  max-width: 100%;
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid rgba(218, 228, 241, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 248, 0.92)),
    #fff;
  box-shadow: 0 5px 14px rgba(31, 45, 72, 0.06);
}

.agent-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.agent-card-top span,
.agent-card-top b {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 880;
}

.agent-card-top span {
  color: #057378;
  background: rgba(232, 250, 248, 0.96);
}

.agent-card-top b {
  color: #245ed6;
  background: rgba(232, 241, 255, 0.92);
}

.agent-result-card h3 {
  color: #172033;
  font-size: 13px;
  line-height: 1.32;
}

.message .agent-result-card p,
.message.assistant .agent-result-card p {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #657286;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.agent-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.agent-step-list span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(221, 231, 243, 0.92);
  border-radius: 999px;
  color: #44536b;
  background: rgba(248, 251, 254, 0.96);
  font-size: 9px;
  font-weight: 780;
  text-align: center;
}

.agent-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.agent-action-row button,
.agent-command-grid button {
  min-height: 32px;
  border: 1px solid rgba(214, 225, 240, 0.92);
  border-radius: 8px;
  color: #215fdb;
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 3px 8px rgba(31, 45, 72, 0.04);
}

.agent-result-card.plan,
.agent-result-card.schedule {
  background:
    linear-gradient(135deg, rgba(236, 250, 248, 0.98), rgba(255, 255, 255, 0.96)),
    #fff;
}

.agent-result-card.decision {
  background:
    linear-gradient(135deg, rgba(239, 244, 255, 0.98), rgba(255, 255, 255, 0.96)),
    #fff;
}

.agent-command-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.agent-command-grid button {
  min-height: 50px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 6px;
  padding: 8px;
  color: #24324a;
  text-align: left;
}

.agent-command-grid svg {
  color: #057378;
  font-size: 19px;
}

.agent-command-grid span {
  font-size: 11px;
  line-height: 1.25;
}

/* Keep parent chat composer docked at the bottom, matching student chat. */
.parent-phone .parent-chat-input {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 84px;
  width: auto;
  margin: 0;
}

.parent-phone .chat-scroll {
  padding-bottom: 156px;
}

@media (max-width: 520px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0;
  }

  .demo-device {
    gap: 0;
  }

  .demo-label {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    border-radius: 0;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    min-height: 680px;
    border: 0;
    border-radius: 0;
  }

  .phone::before {
    display: none;
  }

  .status-bar {
    top: max(12px, env(safe-area-inset-top));
  }

  .app-view {
    padding-top: max(52px, calc(env(safe-area-inset-top) + 42px));
  }
}

@media (max-width: 920px) and (min-width: 521px) {
  .app-shell {
    grid-template-columns: minmax(360px, 430px);
  }
}

@media (max-width: 380px) {
  .app-view {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 21px;
  }

  .panel,
  .hero-card,
  .detail-hero {
    padding: 14px;
  }

  .choice-grid,
  .quick-row {
    gap: 6px;
  }

  .choice-grid span,
  .bottom-nav span {
    font-size: 10px;
  }
}
