/* Girls Power V3 shell + components */

.cn-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff4cc;
  border-bottom: 2px solid #ffc800;
  color: #5b3a00;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}
.cn-banner a { color: #1cb0f6; text-decoration: underline; }
body:has(.cn-banner:not([hidden])) .app-shell {
  margin-top: 48px;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
}

.app-shell {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  background:
    linear-gradient(180deg, #9ec9ea 0%, #c9e4f7 18%, var(--cream-50) 32%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.status-bar {
  height: 44px;
  padding: 12px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
  z-index: 5;
}
.status-bar .pill {
  background: var(--light-green);
  color: var(--green-deep);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
}

#view-root {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px calc(var(--nav-h) + var(--safe-bottom) + 16px);
  -webkit-overflow-scrolling: touch;
}
#view-root.no-pad { padding-left: 0; padding-right: 0; }

/* Bottom nav — Duolingo 5 tabs, AI center FAB */
.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg);
  border-top: 2px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
  align-items: flex-start;
  z-index: 20;
}
.bottom-nav.hidden { display: none; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.nav-item img, .nav-item .nav-ico {
  width: 28px; height: 28px;
  object-fit: contain;
}
.nav-item.active { color: var(--green-deep); }
.nav-item.active .nav-ico-wrap {
  background: var(--light-green);
  border-radius: 12px;
}
.nav-ico-wrap {
  width: 40px; height: 36px;
  display: grid; place-items: center;
}

.nav-fab {
  margin-top: -18px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 6px 0 var(--purple-deep), 0 10px 24px rgba(206,130,255,.35);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  border: 4px solid #fff;
}
.nav-fab.active {
  background: var(--green);
  box-shadow: 0 6px 0 var(--green-deep);
}

/* Typography */
.page-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 4px 0 4px;
}
.page-sub { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.section-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 18px 0 8px;
}

/* Cards */
.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px;
  margin-bottom: 12px;
  transition: transform .15s ease;
}
.card:active { transform: scale(0.98); }
.card.dopa-green { background: var(--light-green); border-color: #b6e388; }
.card.dopa-blue { background: var(--light-blue); border-color: #a6e0ff; }
.card.dopa-yellow { background: var(--light-yellow); border-color: #ffe08a; }
.card.dopa-pink { background: var(--light-pink); border-color: #ffb8d9; }
.card.dopa-purple { background: var(--light-purple); border-color: #e0b8ff; }
.card.dopa-orange { background: var(--light-orange); border-color: #ffc980; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.card-head h3 {
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head .doodle {
  width: 36px; height: 36px;
  object-fit: contain;
}
.chip {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
}
.chip.green { color: var(--green-deep); border-color: var(--green); background: #fff; }
.chip.yellow { color: var(--yellow-deep); border-color: var(--yellow); }
.chip.red { color: var(--red-deep); border-color: var(--red); }

.card-body { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.card-body .muted { color: var(--muted); font-weight: 600; }
.card-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--blue-deep);
}

/* Today grid — 4 modules fit one viewport */
.today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.today-grid .card {
  margin: 0;
  min-height: 148px;
  display: flex;
  flex-direction: column;
}
.today-grid .card-body { flex: 1; font-size: 12px; }
.avatar-mini {
  width: 100%;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--line);
}
.avatar-mini gp-character-3d,
.avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 15px;
  border: 2px solid transparent;
}
.btn-block { width: 100%; }
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-btn-green);
  border-bottom: 0;
}
.btn-green:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-deep); }
.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-btn-blue);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
}
.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 0 var(--purple-deep);
}

/* Training modules */
.train-block {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.train-block-h {
  padding: 12px 14px;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.train-block.warmup .train-block-h { background: var(--light-yellow); }
.train-block.main .train-block-h { background: var(--light-green); }
.train-block.cooldown .train-block-h { background: var(--light-blue); }

.ex-row {
  display: grid;
  grid-template-columns: 64px 1fr 36px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 2px solid var(--line);
}
.ex-row img, .ex-row .ex-ph {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-soft);
  border: 2px solid var(--line);
}
.ex-row .ex-ph {
  display: grid; place-items: center;
  font-size: 22px;
}
.ex-row h4 { font-size: 14px; font-weight: 900; }
.ex-row p { font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.check {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 3px solid var(--line);
  display: grid; place-items: center;
  font-weight: 900;
  color: transparent;
}
.check.on {
  background: var(--green);
  border-color: var(--green-deep);
  color: #fff;
}

/* Reward popup */
.reward-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}
.reward-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 24px;
  border: 3px solid var(--yellow);
  box-shadow: 0 8px 0 var(--yellow-deep);
  padding: 24px 20px;
  text-align: center;
  animation: pop .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.reward-card .big { font-size: 56px; line-height: 1; }
.reward-card h2 { font-size: 22px; font-weight: 900; margin: 8px 0; }
.reward-card p { color: var(--muted); font-weight: 700; margin-bottom: 16px; }

/* AI ask */
.ai-refs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 10px;
}
.ai-ref {
  flex: 0 0 auto;
  max-width: 200px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--light-purple);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.suggest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.suggest {
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 0 var(--line);
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  min-height: 180px;
}
.bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  border: 2px solid var(--line);
}
.bubble.bot { align-self: flex-start; background: var(--light-blue); }
.bubble.me { align-self: flex-end; background: var(--light-green); }
.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding-top: 8px;
}
.chat-input-row input {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
}

/* Forum */
.forum-post {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.forum-post img.cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-soft);
}
.forum-post .body { padding: 12px 14px; }
.forum-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.forum-meta .ava {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}
.forum-meta strong { font-size: 13px; font-weight: 900; }
.forum-meta span { font-size: 11px; color: var(--muted); font-weight: 700; }

/* Me */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.stat {
  text-align: center;
  padding: 12px 8px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--light-yellow);
}
.stat b { display: block; font-size: 20px; font-weight: 900; }
.stat span { font-size: 11px; font-weight: 800; color: var(--muted); }

.attr-bars { display: flex; flex-direction: column; gap: 8px; }
.attr-row { display: grid; grid-template-columns: 56px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; font-weight: 800; }
.bar {
  height: 12px;
  background: var(--bg-soft);
  border-radius: 999px;
  border: 2px solid var(--line);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 999px;
}

.unlock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.unlock-item {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  background: #fff;
  position: relative;
}
.unlock-item.locked { opacity: .55; filter: grayscale(.4); }
.unlock-item img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 6px;
}
.unlock-item .lvl {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 10px;
  font-weight: 900;
  background: var(--yellow);
  padding: 2px 6px;
  border-radius: 999px;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--nav-h) + 24px);
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  z-index: 60;
  display: none;
  white-space: nowrap;
}

.video-box {
  border: 2px dashed var(--blue);
  border-radius: 16px;
  padding: 14px;
  background: var(--light-blue);
  text-align: center;
  margin-top: 10px;
}
.video-box input[type=file] { margin: 8px auto; display: block; max-width: 100%; }
.analysis-sample {
  margin-top: 10px;
  text-align: left;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.disclaimer {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 8px;
}

/* —— V3.1 polish: mockup-style stacked cards —— */
.greet h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.greet p { color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 4px; margin-bottom: 14px; }

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 2px solid var(--line);
  box-shadow: 0 6px 0 var(--line);
  padding: 16px;
  margin-bottom: 14px;
  background: var(--light-green);
}
.hero-card.pink { background: linear-gradient(135deg, #ffe0f0, #fff0f7); border-color: #ffb8d9; box-shadow: 0 6px 0 #ffb8d9; }
.hero-card.yellow { background: linear-gradient(135deg, #fff4cc, #fffaf0); border-color: #ffe08a; box-shadow: 0 6px 0 #ffe08a; }
.hero-card.blue { background: linear-gradient(135deg, #ddf4ff, #f0faff); border-color: #a6e0ff; box-shadow: 0 6px 0 #a6e0ff; }
.hero-card.green { background: linear-gradient(160deg, #d7ffb8 0%, #eaffd4 55%, #f5ffe8 100%); border-color: #b6e388; box-shadow: 0 6px 0 #b6e388; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 2px solid rgba(0,0,0,.06);
  color: var(--green-deep);
  margin-bottom: 8px;
}
.hero-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
  align-items: end;
}
.hero-row .meta .name {
  font-size: 20px;
  font-weight: 900;
}
.hero-row .meta .sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}
.hero-visual {
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
}
.hero-visual gp-character-3d { width: 100%; height: 100%; }

.card-link {
  font-size: 12px;
  font-weight: 900;
  color: var(--blue-deep);
  white-space: nowrap;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.macro-cell {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  border: 2px solid var(--line);
  padding: 10px 6px;
}
.macro-cell .ico {
  width: 40px; height: 40px;
  margin: 0 auto 6px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px;
  font-weight: 900;
}
.macro-cell .ico.p { background: var(--light-green); }
.macro-cell .ico.c { background: var(--light-blue); }
.macro-cell .ico.f { background: var(--light-orange); }
.macro-cell .label { font-size: 11px; font-weight: 800; color: var(--muted); }
.macro-cell .val { font-size: 13px; font-weight: 900; margin: 4px 0 6px; }
.macro-bar {
  height: 8px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}
.macro-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
}
.macro-bar.c > i { background: var(--blue); }
.macro-bar.f > i { background: var(--orange); }

.train-hero-body {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.train-hero-body h4 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}
.train-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.btn-coral {
  background: #ff6b6b;
  color: #fff;
  box-shadow: 0 4px 0 #e04545;
  border-radius: 14px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 900;
  font-size: 14px;
}
.btn-coral:active { transform: translateY(3px); box-shadow: 0 1px 0 #e04545; }

.cycle-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.cycle-fact {
  background: #fff;
  border-radius: 14px;
  border: 2px solid var(--line);
  padding: 10px;
}
.cycle-fact em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.cycle-fact strong { font-size: 15px; font-weight: 900; }

.field {
  margin: 10px 0;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  background: #fff;
}

.meal-slots { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.meal-slot {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--line);
  overflow: hidden;
}
.meal-slot-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-weight: 900;
  font-size: 14px;
  background: var(--bg-soft);
}
.meal-slot.breakfast .meal-slot-h { background: var(--light-yellow); }
.meal-slot.lunch .meal-slot-h { background: var(--light-green); }
.meal-slot.dinner .meal-slot-h { background: var(--light-blue); }
.meal-slot.snack .meal-slot-h { background: var(--light-pink); }
.meal-item {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-top: 2px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.meal-item .dot {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 18px;
}
.meal-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.food-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.food-card {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  text-align: left;
  background: #fff;
  box-shadow: 0 3px 0 var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.food-card strong { font-size: 14px; font-weight: 900; }
.food-card .muted { font-size: 11px; color: var(--muted); font-weight: 700; }
.food-card .kcal-tag { font-size: 12px; font-weight: 900; color: var(--green-deep); }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip.duo-chip, .chips .chip {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 0 var(--line);
}
.chips .chip.active {
  background: var(--light-green);
  border-color: var(--green);
  color: var(--green-deep);
}

.kcal-summary {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
}
.kcal-ring-wrap { position: relative; width: 110px; height: 110px; }
.kcal-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.kcal-center strong { font-size: 22px; font-weight: 900; line-height: 1; }
.kcal-center span { font-size: 11px; font-weight: 800; color: var(--muted); }
.kcal-meta { display: grid; gap: 8px; }
.kcal-meta div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  background: #fff;
  border-radius: 12px;
  border: 2px solid var(--line);
  padding: 8px 10px;
}
.kcal-meta em { font-style: normal; color: var(--muted); }

.sym-row {
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 800;
}
.sym-row input[type=range] { width: 100%; }

/* —— 捡到猫风格：今日四卡一屏 —— */
.display, .page-title, .today-top h1 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}
.name-edit {
  font: inherit;
  font-weight: 800;
  color: var(--sky-deep);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  padding: 0 2px;
}
.edit-hint {
  font-size: 12px;
  color: var(--ink-muted);
  margin-left: 2px;
}

.today-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 44px - var(--nav-h) - var(--safe-bottom) - 24px);
}
.today-top {
  flex-shrink: 0;
  margin-bottom: 8px;
}
.today-greet h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
}
.today-greet p {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 2px;
}

.today-quad {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 0;
}

.mini-card {
  background: var(--cloud);
  border: var(--frame);
  border-radius: var(--radius-block);
  box-shadow: var(--shadow-card);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.mini-card:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 rgba(36, 52, 71, 0.12);
}
.mini-card .mini-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.mini-card .card-link {
  font-size: 11px;
  font-weight: 800;
  color: var(--sky-deep);
}
.mini-card.partner { background: linear-gradient(160deg, #d8f0de, #ffffff); }
.mini-card.cycle { background: linear-gradient(160deg, #fce8f0, #ffffff); }
.mini-card.diet { background: linear-gradient(160deg, #f7f0d4, #ffffff); }
.mini-card.train { background: linear-gradient(160deg, #ddeef8, #ffffff); }

.partner-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 6px;
  align-items: end;
  flex: 1;
  min-height: 0;
}
.partner-meta .name-line {
  display: block;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 4px;
}
.partner-avatar {
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.7);
  border: 2px solid rgba(36,52,71,.1);
}
.partner-avatar gp-character-3d { width: 100%; height: 100%; }
.mini-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.3;
}

.cycle-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 6px;
}
.cycle-status strong {
  font-size: 13px;
  font-weight: 900;
}
.cycle-bars { flex: 1; }
.cycle-bar-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  margin: 4px 0 2px;
}
.cycle-bar-row em {
  font-style: normal;
  color: var(--ink-muted);
}
.cycle-progress {
  height: 7px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
  margin-bottom: 4px;
}
.cycle-progress > i {
  display: block;
  height: 100%;
  background: var(--pink);
  border-radius: inherit;
}

.mini-macros {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  flex: 1;
}
.mini-macros .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.mini-macros .dot.p { background: var(--green); }
.mini-macros .dot.c { background: var(--sky-deep); }
.mini-macros .dot.f { background: var(--orange); }
.mini-macros .macro-bar { margin-top: 3px; height: 6px; }

.train-title {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 2px;
}
.btn-start {
  margin-top: auto;
  background: var(--sign-red);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--sign-red-deep);
  min-height: 44px;
}
.btn-start:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0 var(--sign-red-deep);
}

.food-ico, .food-ico-wrap .food-ico {
  width: 40px;
  height: 40px;
  display: block;
}
.food-ico-lg .food-ico {
  width: 100%;
  height: 52px;
  margin-bottom: 4px;
}
.macro-cell .ico {
  background: transparent !important;
  width: auto;
  height: auto;
}
.macro-cell .ico .food-ico { margin: 0 auto; }
.chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chips .chip .food-ico {
  width: 22px;
  height: 22px;
}
.meal-item .food-ico-wrap {
  flex-shrink: 0;
}

.hero-card {
  border-radius: var(--radius-block);
  border: var(--frame);
  box-shadow: var(--shadow-card);
}
.card {
  border: var(--frame);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-block);
}

@media (max-height: 720px) {
  .today-greet h1 { font-size: 1.2rem; }
  .partner-avatar { height: 52px; }
  .mini-card { padding: 8px 9px; }
  .btn-start { padding: 8px 10px; min-height: 40px; font-size: 12px; }
}

