:root {
  --bg: #fff5f8;
  --bg-deep: #ffe8f0;
  --panel: #fff;
  --panel-soft: rgba(255, 255, 255, 0.78);
  --sidebar: #ffe1ec;
  --sidebar-strong: #ffd3e3;
  --pink: #f56f9d;
  --pink-strong: #ef5d91;
  --pink-soft: #fff0f5;
  --mint: #19b97c;
  --mint-soft: #eafff5;
  --purple: #9b7bea;
  --orange: #f49b58;
  --ink: #40323a;
  --muted: #9b858f;
  --line: #f6d7e1;
  --shadow: 0 18px 40px rgba(198, 94, 132, 0.16);
  --soft-shadow: 0 10px 26px rgba(154, 87, 112, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.9), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(255, 197, 219, 0.48), transparent 28%),
    linear-gradient(135deg, #fff8fa 0%, #fff0f5 52%, #fff8f1 100%);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.app-root {
  width: min(100vw, 430px);
  height: min(100vh, 932px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  background: var(--bg);
  border: 1px solid rgba(244, 183, 205, 0.9);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

.app-root.active-stats,
.app-root.active-suite,
.app-root.active-module,
.app-root.active-profile {
  grid-template-columns: 1fr;
}

.app-root.active-stats .sidebar,
.app-root.active-suite .sidebar,
.app-root.active-module .sidebar,
.app-root.active-profile .sidebar {
  display: none;
}

.app-root::before,
.app-root::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 152, 188, 0.18);
  pointer-events: none;
  z-index: 0;
}

.app-root::before {
  width: 180px;
  height: 180px;
  right: -86px;
  top: 58px;
}

.app-root::after {
  width: 126px;
  height: 126px;
  right: -42px;
  bottom: 122px;
}

.sidebar,
.phone-shell {
  position: relative;
  z-index: 1;
}

.sidebar {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 14px 8px 82px;
  background: linear-gradient(180deg, var(--sidebar), var(--bg-deep));
  border-right: 1px solid rgba(255, 196, 216, 0.75);
  scrollbar-width: none;
}

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

.brand-block {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 2px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--pink-strong);
  font-size: 13px;
  font-weight: 900;
}

.rabbit-logo,
.tiny-bunny,
.mini-mascot {
  position: relative;
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  user-select: none;
  pointer-events: none;
}

.rabbit-logo {
  width: 68px;
  height: 68px;
}

.rabbit-logo::before,
.rabbit-logo::after,
.tiny-bunny::before,
.tiny-bunny::after,
.mini-mascot::before,
.mini-mascot::after {
  content: none;
}

.rabbit-logo::before {
  content: none;
}

.rabbit-logo::after {
  content: none;
}

.brand-block::after {
  content: none;
}

.menu-group {
  margin-top: 15px;
}

.menu-group h2 {
  margin: 0 0 8px;
  padding-left: 2px;
  color: #c6a9b6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.menu-items {
  display: grid;
  gap: 7px;
}

.menu-item {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 8px;
  border-radius: 14px;
  color: #5f4a55;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  box-shadow: 0 5px 12px rgba(178, 92, 124, 0.06);
}

.menu-item .icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.menu-item span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item.active {
  color: #fff;
  background: linear-gradient(135deg, #ff6fa2, #ff8ab6);
  border-color: transparent;
  box-shadow: 0 12px 23px rgba(239, 93, 145, 0.28);
}

.drag-tip {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 17px 0 0 4px;
  color: #a38c96;
  font-size: 9px;
  font-weight: 700;
}

.phone-shell {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr) 72px;
  padding: 8px 11px 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 1%, rgba(255, 197, 218, 0.35), transparent 28%),
    linear-gradient(180deg, #fff8fb 0%, #fff4f8 100%);
}

.statusbar {
  grid-row: 1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: #111;
  font-size: 11px;
  font-weight: 900;
}

.statusbar span:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
}

.statusbar .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.screen {
  grid-row: 2;
  display: none;
  min-height: 0;
  height: auto;
  max-height: 100%;
  overflow-y: auto;
  padding: 3px 0 8px;
  scrollbar-width: none;
}

.screen.active {
  display: block;
}

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

.screen-dashboard {
  padding-top: 3px;
}

.screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.eyebrow {
  display: none;
}

.dashboard-header h1 {
  margin: 8px 0 0;
  color: var(--pink);
  font-size: 23px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.ghost-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-top: 4px;
  border-radius: 50%;
  color: #8a596b;
  background: rgba(255, 255, 255, 0.62);
}

.ghost-button .icon {
  width: 18px;
  height: 18px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  background: #fff;
}

.status .icon {
  width: 14px;
  height: 14px;
}

.status.connected {
  color: var(--mint);
  background: var(--mint-soft);
}

.status.saving {
  color: #8e7c86;
}

.content-grid {
  display: grid;
  gap: 12px;
}

.card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(248, 216, 226, 0.96);
  box-shadow: var(--soft-shadow);
}

.plan-card,
.countdown-card,
.overview-card,
.latest-card {
  padding: 15px;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title h2 {
  margin: 0;
  color: #362b31;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 950;
}

.card-title p {
  margin: 3px 0 0;
  color: #a48994;
  font-size: 11px;
  font-weight: 800;
}

.tiny-bunny {
  width: 58px;
  height: 58px;
  margin: -12px -8px -8px 0;
  flex: 0 0 auto;
}

.tiny-bunny::before {
  content: none;
}

.tiny-bunny::after {
  content: none;
}

.plan-items {
  display: grid;
  gap: 8px;
}

.plan-item {
  width: 100%;
  min-height: 32px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #4b4046;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.plan-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-item > span:last-child {
  color: #8e7d85;
  font-size: 10px;
  font-weight: 800;
}

.check {
  width: 17px;
  height: 17px;
  border: 1.8px solid #ffd1df;
  border-radius: 50%;
  background: #fff;
  position: relative;
}

.check.done {
  border-color: #ff80aa;
  background: #ff80aa;
}

.check.done::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 6px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.primary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #ff6fa2, #ff8ab6);
  box-shadow: 0 10px 18px rgba(240, 94, 144, 0.24);
  font-size: 12px;
  font-weight: 900;
}

.primary-action.secondary {
  background: linear-gradient(135deg, #ff8bb2, #ff699b);
}

.primary-action .icon {
  width: 15px;
  height: 15px;
}

.countdown-card {
  position: relative;
  overflow: hidden;
}

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

.exam-tile {
  min-height: 104px;
  border-radius: 15px;
  padding: 11px 7px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(194, 101, 132, 0.10);
}

.exam-tile.pink {
  background: linear-gradient(180deg, #fff0f6, #ffe9f1);
  color: #eb5f92;
}

.exam-tile.purple {
  background: linear-gradient(180deg, #f5efff, #f0e8ff);
  color: #8267d7;
}

.exam-tile.orange {
  background: linear-gradient(180deg, #fff5ec, #ffeadc);
  color: #e6813f;
}

.exam-tile strong,
.exam-tile small,
.exam-tile b,
.exam-tile span {
  display: block;
}

.exam-tile strong {
  font-size: 13px;
  font-weight: 950;
}

.exam-tile small {
  margin-top: 8px;
  color: #9a818c;
  font-size: 9px;
  font-weight: 800;
}

.exam-tile b {
  margin-top: 11px;
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}

.exam-tile span {
  margin-top: 1px;
  font-size: 11px;
  font-weight: 900;
}

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

.overview-grid div {
  min-height: 72px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffafd, #fff4f8);
  border: 1px solid rgba(248, 218, 228, 0.88);
  text-align: center;
}

.overview-grid .icon {
  width: 23px;
  height: 23px;
  color: var(--pink);
}

.overview-grid strong {
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.overview-grid span {
  color: #9a858e;
  font-size: 9px;
  font-weight: 800;
}

.latest-card {
  display: none;
}

.hero-count {
  min-height: 120px;
  border-radius: 24px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 255, 255, 0.17) 0 45px, transparent 46px),
    linear-gradient(135deg, #ff7dae, #ff609d);
}

.hero-count span,
.hero-count strong,
.hero-count em {
  display: block;
}

.hero-count strong {
  margin: 6px 0;
  font-size: 42px;
  line-height: 1;
}

.hero-count em {
  font-style: normal;
  opacity: 0.82;
  font-size: 12px;
}

.pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #fff;
  background: var(--pink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.bottom-nav {
  grid-row: 3;
  align-self: end;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.91);
  border: 1px solid rgba(248, 218, 228, 0.95);
  box-shadow: 0 10px 24px rgba(154, 87, 112, 0.13);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  color: #9b8a91;
  background: transparent;
  border-radius: 16px;
  font-size: 9px;
  font-weight: 850;
}

.bottom-nav button.active {
  color: #fff;
  background: linear-gradient(135deg, #ff6fa2, #ff8ab6);
  box-shadow: 0 8px 16px rgba(239, 93, 145, 0.22);
}

.bottom-nav button[data-disabled] {
  cursor: default;
  opacity: 0.68;
}

.bottom-nav .icon {
  width: 19px;
  height: 19px;
}

.simple-header {
  display: grid;
  grid-template-columns: 34px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin: 1px 0 18px;
}

.simple-header h1 {
  margin: 0;
  text-align: center;
  color: #171114;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}

.mini-mascot {
  width: 48px;
  height: 48px;
  justify-self: end;
  margin-top: -8px;
}

.mini-mascot::before {
  content: none;
}

.mini-mascot::after {
  content: none;
}

.range-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 3px;
  margin: 0 0 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(154, 87, 112, 0.08);
}

.range-tabs button {
  height: 30px;
  border-radius: 8px;
  color: #5d4c54;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.range-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #ff6fa2, #ff86b3);
  box-shadow: 0 8px 16px rgba(239, 93, 145, 0.23);
}

.date-row {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin: 0 0 10px;
  color: #2d2529;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.text-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #7b5f6b;
  background: transparent;
}

.text-icon .icon {
  width: 17px;
  height: 17px;
}

.stats-list {
  display: grid;
  gap: 11px;
}

.stat-card {
  padding: 15px;
  border-radius: 16px;
  min-width: 0;
}

.metric-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.metric-title h2 {
  margin: 0;
  color: #2b2428;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 950;
}

.metric-title span {
  color: #8f7c85;
  font-size: 9px;
  font-weight: 800;
}

.metric-title strong {
  color: #1e171b;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.chart {
  width: 100%;
  height: 88px;
  display: block;
  overflow: visible;
}

.chart-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.chart-scroll.wide {
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: #ffc3d8 transparent;
}

.chart-scroll.wide .chart {
  width: var(--chart-width);
  min-width: var(--chart-width);
}

.chart-axis {
  position: relative;
  min-width: 100%;
  height: 16px;
  margin-top: -1px;
  color: #91808a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.chart-scroll.wide .chart-axis {
  width: var(--chart-width);
  min-width: var(--chart-width);
}

.chart-axis span {
  position: absolute;
  top: 1px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.chart .grid line {
  stroke: #eadde4;
  stroke-width: 0.6;
}

.chart polyline {
  fill: none;
  stroke-width: 1.8;
}

.chart circle {
  fill: #fff;
  stroke-width: 1.5;
}

.chart.pink polyline,
.chart.pink circle {
  stroke: #ff7aa8;
}

.chart.purple polyline,
.chart.purple circle {
  stroke: #9e7beb;
}

.chart.orange polyline,
.chart.orange circle {
  stroke: #ff995c;
}

.today-summary {
  padding: 14px;
  border-radius: 16px;
}

.today-summary h2 {
  margin: 0 0 10px;
  color: #2b2428;
  font-size: 13px;
  font-weight: 950;
}

.summary-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.summary-mini-grid div {
  min-height: 54px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border-radius: 12px;
  background: #fff6fa;
  border: 1px solid rgba(248, 218, 228, 0.88);
  text-align: center;
}

.summary-mini-grid strong {
  color: #7c5de5;
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.summary-mini-grid div:nth-child(2) strong {
  color: #12aa77;
}

.summary-mini-grid div:nth-child(3) strong {
  color: #5e79e6;
}

.summary-mini-grid div:nth-child(4) strong {
  color: #f05b79;
}

.summary-mini-grid span {
  color: #8f7c85;
  font-size: 8px;
  font-weight: 850;
}

.save-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 9px 0 0;
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
}

.save-line .icon {
  width: 15px;
  height: 15px;
}

.screen-scroll {
  display: grid;
  gap: 12px;
  padding-bottom: 4px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-bottom: 5px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ef5d91;
  background: #fff0f6;
  font-size: 10px;
  font-weight: 900;
}

.suite-hero,
.module-hero,
.profile-hero {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
}

.suite-hero {
  grid-template-columns: minmax(0, 1fr) 82px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #ff78a8, #ff9abc 58%, #ffa36f);
  border: 0;
}

.suite-hero .section-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

.suite-hero h2,
.module-hero h2,
.profile-hero h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: 0;
}

.suite-hero p,
.module-hero p,
.profile-hero p,
.profile-save-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.55;
  font-weight: 800;
}

.score-orb {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: #ff6298;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 -5px 0 rgba(255, 189, 211, 0.45);
}

.score-orb strong,
.score-orb span {
  display: block;
}

.score-orb strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.score-orb span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 900;
}

.suite-kpi-grid,
.module-kpi-grid,
.sync-grid,
.profile-data-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.suite-kpi-grid .card,
.module-kpi-grid .card,
.profile-data-card div {
  min-height: 70px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 12px 8px;
  text-align: center;
}

.suite-kpi-grid span,
.module-kpi-grid span,
.profile-data-card span {
  color: #9b858f;
  font-size: 9px;
  font-weight: 850;
}

.suite-kpi-grid strong,
.module-kpi-grid strong,
.profile-data-card strong {
  color: #31262c;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.suite-trend-card,
.suite-subject-card,
.suite-form,
.notes-card,
.mistake-actions,
.module-chart-card,
.module-plan-card,
.profile-save-card,
.profile-exams-card,
.profile-data-card {
  padding: 15px;
  border-radius: 16px;
}

.subject-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 9px;
  min-height: 38px;
}

.subject-row + .subject-row {
  border-top: 1px solid rgba(246, 215, 225, 0.72);
}

.subject-row.child {
  padding-left: 14px;
  color: #7d6c74;
}

.subject-row strong,
.subject-row span {
  display: block;
}

.subject-row strong {
  color: #342a30;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 950;
}

.subject-row span {
  margin-top: 3px;
  color: #9b858f;
  font-size: 9px;
  font-weight: 800;
}

.subject-row b {
  color: #ef5d91;
  font-size: 12px;
  text-align: right;
}

.progress-line {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff0f5;
}

.progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7aa8, #9e7beb);
}

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

.form-grid label,
.notes-card label {
  display: grid;
  gap: 6px;
  color: #806b74;
  font-size: 10px;
  font-weight: 900;
}

.form-grid label:nth-child(2) {
  grid-column: 1 / -1;
}

.form-grid input,
.notes-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #f4d7e1;
  border-radius: 12px;
  color: #352930;
  background: #fff8fb;
  outline: none;
  font-size: 12px;
  font-weight: 850;
}

.form-grid input {
  height: 38px;
  padding: 0 10px;
}

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

.notes-card textarea {
  min-height: 78px;
  resize: vertical;
  padding: 10px;
  line-height: 1.45;
}

.mistake-actions h2,
.profile-exams-card h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.record-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.record-actions button {
  min-height: 58px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border-radius: 14px;
  color: #ec5c91;
  background: #fff1f6;
  border: 1px solid rgba(248, 218, 228, 0.95);
  font-size: 10px;
  font-weight: 900;
}

.record-actions .icon {
  width: 20px;
  height: 20px;
}

.module-hero {
  grid-template-columns: 56px minmax(0, 1fr);
}

.module-hero p,
.profile-hero p,
.profile-save-card p {
  color: #8f7c85;
}

.module-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff78a8, #9e7beb);
  box-shadow: 0 12px 22px rgba(175, 94, 160, 0.18);
}

.module-mark .icon {
  width: 26px;
  height: 26px;
}

.module-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-plan-card h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 950;
}

.module-plan-card p {
  margin: 4px 0 0;
  color: #9b858f;
  font-size: 11px;
  font-weight: 850;
}

.note-line {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #fff8fb;
  border: 1px solid rgba(248, 218, 228, 0.88);
}

.note-line strong {
  color: #342a30;
  font-size: 12px;
  font-weight: 950;
}

.note-line span {
  color: #89747e;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 800;
}

.profile-hero {
  grid-template-columns: 68px minmax(0, 1fr);
}

.profile-hero .rabbit-logo {
  width: 64px;
  height: 64px;
}

.sync-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 13px;
  border-radius: 16px;
}

.sync-card .icon {
  width: 25px;
  height: 25px;
}

.sync-card strong,
.sync-card span {
  display: block;
}

.sync-card strong {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 950;
}

.sync-card span {
  margin-top: 4px;
  color: #917d86;
  font-size: 9px;
  line-height: 1.35;
  font-weight: 800;
}

.connected-state {
  color: #13996d;
  background: #eafff5;
}

.offline-state {
  color: #c56c8d;
  background: #fff1f6;
  opacity: 0.82;
}

.profile-save-card p {
  margin-top: 0;
  font-weight: 800;
}

.profile-exam-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: #8b7580;
  border-top: 1px solid rgba(246, 215, 225, 0.72);
  font-size: 11px;
  font-weight: 850;
}

.profile-exam-row:first-of-type {
  border-top: 0;
}

.profile-exam-row strong {
  color: #ef5d91;
  font-size: 13px;
}

.profile-exam-row em {
  font-style: normal;
  color: #9b858f;
}

.profile-data-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-data-card div {
  border-radius: 14px;
  background: #fff8fb;
  border: 1px solid rgba(248, 218, 228, 0.88);
}

.profile-data-card .icon {
  width: 21px;
  height: 21px;
  color: #ef5d91;
}

@media (min-width: 431px) {
  body {
    display: grid;
    place-items: center;
    padding: 18px;
  }

  .app-root {
    height: min(100vh - 36px, 900px);
    border-radius: 28px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 380px) {
  .app-root {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .sidebar {
    padding-left: 6px;
    padding-right: 6px;
  }

  .menu-item {
    min-height: 35px;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 5px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 11px;
  }

  .phone-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .dashboard-header h1 {
    font-size: 21px;
  }

  .card-title h2 {
    font-size: 15px;
  }

  .plan-card,
  .countdown-card,
  .overview-card {
    padding: 12px;
  }

  .action-row,
  .exam-grid {
    grid-template-columns: 1fr;
  }

  .exam-tile {
    min-height: 76px;
  }

  .suite-hero {
    grid-template-columns: 1fr;
  }

  .score-orb {
    width: 70px;
    height: 70px;
    justify-self: start;
  }

  .subject-row {
    grid-template-columns: 82px minmax(0, 1fr) 36px;
    gap: 7px;
  }

  .form-grid,
  .suite-kpi-grid,
  .module-kpi-grid,
  .sync-grid {
    grid-template-columns: 1fr;
  }

  .form-grid label:nth-child(2) {
    grid-column: auto;
  }

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