:root {
  --blossom: #ff5c8a;
  --blossom-deep: #f43d72;
  --tangerine: #ff8a4c;
  --sun: #ffc93c;
  --mint: #2dd4a7;
  --sky: #5b8def;
  --grape: #9b6bff;
  --ink: #2b2440;
  --soft: #7a7290;
  --muted: #a59fb6;
  --cream: #fff7f2;
  --paper: #ffffff;
  --line: #f1e7ef;

  --grad-warm: linear-gradient(135deg, #ff6f9d 0%, #ff8a4c 60%, #ffc93c 120%);
  --grad-blossom: linear-gradient(135deg, #ff7aa3, #f43d72);
  --grad-mint: linear-gradient(135deg, #43e5b6, #1fb98c);
  --grad-sky: linear-gradient(135deg, #76a7ff, #4f7ce8);
  --grape-grad: linear-gradient(135deg, #b18cff, #8651f0);
  --grad-sun: linear-gradient(135deg, #ffd76a, #ff9f3c);

  --shadow-card: 0 18px 36px -18px rgba(244, 61, 114, 0.32);
  --shadow-soft: 0 10px 26px -14px rgba(43, 36, 64, 0.28);
  --shadow-pop: 0 14px 28px -10px rgba(255, 138, 76, 0.45);
  --radius: 22px;
  --radius-sm: 16px;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: #f3e6ec;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f3e6ec;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 92, 138, 0.35);
  outline-offset: 2px;
}

h1,
h2,
h3,
.brand strong {
  font-family: "ZCOOL KuaiLe", "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.app-shell {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(43, 36, 64, 0.05);
}

/* decorative drifting blobs */
.blob-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.5;
}

.blob-a {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -60px;
  background: radial-gradient(circle at 30% 30%, #ffd0a8, #ff8a4c);
}

.blob-b {
  width: 180px;
  height: 180px;
  top: 280px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, #ffb3cd, #ff5c8a);
  opacity: 0.34;
}

.blob-c {
  width: 160px;
  height: 160px;
  bottom: 180px;
  right: -60px;
  background: radial-gradient(circle at 30% 30%, #c3b0ff, #9b6bff);
  opacity: 0.3;
}

.blob-d {
  width: 150px;
  height: 150px;
  bottom: -40px;
  left: 40px;
  background: radial-gradient(circle at 30% 30%, #9af0d8, #2dd4a7);
  opacity: 0.32;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  height: 70px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 247, 242, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 92, 138, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.avatar {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background-image: url("https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=240&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 3px #fff, var(--shadow-pop);
}

.avatar-ping {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--mint);
  border: 2.5px solid #fff;
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  background: var(--grad-blossom);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text span {
  display: block;
  max-width: 150px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: var(--blossom-deep);
  background: rgba(255, 92, 138, 0.1);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px 9px 13px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  background: var(--grad-warm);
  box-shadow: var(--shadow-pop);
}

.ghost-btn svg {
  width: 17px;
  height: 17px;
}

main {
  position: relative;
  z-index: 1;
  padding: 16px 18px 104px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  margin-bottom: 8px;
  padding: 26px 22px 24px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background: var(--grad-warm);
  box-shadow: 0 22px 40px -20px rgba(255, 122, 80, 0.7);
}

.hero-spark {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140px 140px at 88% 8%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(120px 120px at 10% 95%, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

.hero-eyebrow svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  margin: 0;
  font-size: 33px;
  line-height: 1.18;
  text-shadow: 0 4px 12px rgba(196, 38, 86, 0.3);
}

.hero-sub {
  margin: 10px 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero-search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 11px 8px 11px 16px;
  color: var(--soft);
  background: #fff;
  box-shadow: 0 10px 20px -10px rgba(180, 30, 70, 0.5);
}

.hero-search svg {
  width: 19px;
  height: 19px;
  color: var(--blossom);
}

.hero-search span {
  flex: 1;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-search em {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--grad-blossom);
}

.hero-stats {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats b {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.hero-stats span {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- titles ---------- */
.page-title {
  margin: 6px 0 20px;
}

.kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.kicker.blossom { background: var(--grad-blossom); }
.kicker.mint { background: var(--grad-mint); }
.kicker.grape { background: var(--grape-grad); }
.kicker.sky { background: var(--grad-sky); }
.kicker.light { background: rgba(255, 255, 255, 0.26); }

.page-title h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
}

.page-title p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 14px;
}

.section-head.inline {
  margin-top: 0;
}

.section-head h2,
.card-block h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--blossom-deep);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- categories ---------- */
.category-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.category {
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ink);
  padding: 0;
}

.category .circle {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.category svg {
  width: 25px;
  height: 25px;
}

.category strong {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cat-blue .circle { background: var(--grad-sky); }
.cat-green .circle { background: var(--grad-mint); }
.cat-gold .circle { background: var(--grad-sun); }
.cat-purple .circle { background: var(--grape-grad); }
.cat-red .circle { background: var(--grad-blossom); }

/* ---------- horizontal recommend ---------- */
.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.horizontal-list::-webkit-scrollbar {
  display: none;
}

/* ---------- cards ---------- */
.activity-card,
.tribe-card,
.match-card,
.card-block {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.activity-card {
  scroll-snap-align: start;
}

.activity-media {
  position: relative;
}

.activity-media img {
  width: 100%;
  height: 178px;
  display: block;
  object-fit: cover;
}

.compact-card .activity-media img {
  height: 168px;
}

.tag {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.tag.blue { background: rgba(91, 141, 239, 0.92); }
.tag.green { background: rgba(45, 212, 167, 0.94); }

.fav-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: var(--blossom);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.fav-btn svg {
  width: 19px;
  height: 19px;
}

.activity-body,
.card-block,
.match-body {
  padding: 16px;
}

.activity-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.activity-card h3,
.tribe-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}

.type-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blossom-deep);
  background: rgba(255, 92, 138, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.meta {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.45;
}

.meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.meta svg {
  width: 16px;
  height: 16px;
  color: var(--tangerine);
}

.meta p {
  margin: 2px 0 0;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.avatars {
  display: inline-flex;
  align-items: center;
  min-width: 78px;
}

.avatars b,
.avatars em {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background-size: cover;
  background-position: center;
  font-style: normal;
}

.avatars b:first-child {
  margin-left: 0;
  background-image: url("https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=80&q=80");
}

.avatars b:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=80&q=80");
}

.avatars b:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?auto=format&fit=crop&w=80&q=80");
}

.avatars em {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-blossom);
  font-size: 11px;
  font-weight: 800;
}

.signed {
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
  margin-right: auto;
}

.price {
  font-family: "Baloo 2", system-ui, sans-serif;
  color: var(--blossom-deep);
  font-size: 22px;
  font-weight: 800;
}

.primary-btn,
.soft-btn {
  border: 0;
  font-weight: 700;
  white-space: nowrap;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad-warm);
  box-shadow: var(--shadow-pop);
}

.primary-btn svg {
  width: 17px;
  height: 17px;
}

.primary-btn.is-done {
  background: var(--grad-mint);
  box-shadow: 0 12px 22px -12px rgba(45, 212, 167, 0.7);
}

.primary-btn.small {
  padding: 9px 14px;
  font-size: 13px;
}

.primary-btn.wide {
  width: 100%;
  margin-top: 16px;
}

/* ---------- filters ---------- */
.segmented {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -18px 18px;
  padding: 2px 18px 4px;
  scrollbar-width: none;
}

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

.segmented button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--soft);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: var(--shadow-soft);
}

.segmented button.active {
  color: #fff;
  background: var(--grad-warm);
  box-shadow: var(--shadow-pop);
}

.activity-list,
.tribe-grid,
.match-stage,
.task-list {
  display: grid;
  gap: 16px;
}

/* ---------- tribes ---------- */
.tribe-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tribe-card {
  min-height: 200px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.tribe-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  opacity: 0.12;
  transform: translate(34%, -34%);
}

.tribe-card.t-blue::after { background: var(--sky); }
.tribe-card.t-green::after { background: var(--mint); }
.tribe-card.t-gold::after { background: var(--sun); }
.tribe-card.t-purple::after { background: var(--grape); }

.tribe-head {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
}

.tribe-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.tribe-icon.blue { background: var(--grad-sky); }
.tribe-icon.green { background: var(--grad-mint); }
.tribe-icon.gold { background: var(--grad-sun); }
.tribe-icon.purple { background: var(--grape-grad); }

.tribe-icon svg {
  width: 24px;
  height: 24px;
}

.tribe-head > div {
  min-width: 0;
}

.tribe-card h3 {
  font-size: 16px;
  white-space: nowrap;
}

.tribe-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tribe-card > p {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.5;
}

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

.tribe-bottom .avatars {
  min-width: 0;
}

.soft-btn {
  border-radius: 999px;
  color: var(--blossom-deep);
  background: rgba(255, 92, 138, 0.12);
  padding: 9px 14px;
  font-size: 13px;
}

.soft-btn.is-done {
  color: #1aa982;
  background: rgba(45, 212, 167, 0.16);
}

/* ---------- match ---------- */
.match-card {
  position: relative;
}

.match-media {
  position: relative;
}

.match-media img {
  width: 100%;
  height: 430px;
  display: block;
  object-fit: cover;
}

.match-media::after {
  content: "";
  position: absolute;
  inset: 46% 0 0;
  background: linear-gradient(180deg, rgba(43, 36, 64, 0), rgba(43, 36, 64, 0.78));
}

.match-overlay,
.score {
  position: absolute;
  z-index: 1;
}

.match-overlay {
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}

.match-overlay strong {
  display: block;
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 27px;
}

.match-overlay strong span {
  font-size: 17px;
  opacity: 0.9;
}

.match-overlay p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
}

.score {
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad-blossom);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 18px -6px rgba(244, 61, 114, 0.7);
}

.score svg {
  width: 15px;
  height: 15px;
}

.match-body h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.match-body p {
  margin: 0 0 16px;
  color: var(--soft);
  line-height: 1.65;
  font-size: 14px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--grape);
  background: rgba(155, 107, 255, 0.12);
  font-size: 12.5px;
  font-weight: 700;
}

.chip.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

/* ---------- profile ---------- */
.profile-hero {
  position: relative;
  margin: 0 0 18px;
  padding: 28px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
  background: var(--grape-grad);
  box-shadow: 0 22px 40px -22px rgba(134, 81, 240, 0.75);
}

.profile-hero-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 120px at 92% 4%, rgba(255, 255, 255, 0.34), transparent),
    radial-gradient(120px 120px at 0% 100%, rgba(255, 201, 60, 0.34), transparent);
}

.profile-photo {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  border-radius: 26px;
  background-image: url("https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=240&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45);
}

.profile-hero-text {
  position: relative;
  z-index: 1;
}

.profile-hero-text h1 {
  margin: 0;
  font-size: 26px;
}

.profile-hero-text p {
  margin: 6px 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
}

.metric-row,
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 0 0 4px;
}

.metric-row div,
.admin-metrics div {
  padding: 15px 6px;
  text-align: center;
  background: var(--paper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.metric-row strong,
.admin-metrics strong {
  display: block;
  font-family: "Baloo 2", system-ui, sans-serif;
  color: var(--blossom-deep);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.metric-row span,
.admin-metrics span {
  display: block;
  margin-top: 5px;
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 600;
}

.admin-metrics svg {
  width: 22px;
  height: 22px;
  color: var(--sky);
  margin-bottom: 7px;
}

.card-block {
  margin-top: 16px;
}

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

.verify-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 8px;
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.verify-item span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.verify-item.done span {
  color: #fff;
  background: var(--grad-mint);
}

.verify-item svg {
  width: 24px;
  height: 24px;
}

.verify-item strong {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.verify-item em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.verify-item.done em {
  color: #1aa982;
}

.profile-form {
  display: grid;
  gap: 12px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-weight: 700;
  font-size: 13px;
}

.profile-form input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-form input:focus {
  border-color: var(--blossom);
  background: #fff;
}

/* ---------- admin ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 11px 6px;
}

th {
  color: var(--muted);
  font-weight: 700;
}

td .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.ok { background: var(--mint); }
.dot.warn { background: var(--sun); }

.task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  color: var(--soft);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.task svg {
  width: 18px;
  height: 18px;
  color: var(--tangerine);
  flex: 0 0 auto;
}

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(394px, calc(100vw - 36px));
  height: 66px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 34px -14px rgba(43, 36, 64, 0.4);
  z-index: 20;
}

.tab-indicator {
  position: absolute;
  top: 8px;
  left: 0;
  width: 20%;
  height: 50px;
  padding: 0 12px;
  pointer-events: none;
}

.tab-indicator::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: var(--grad-warm);
  box-shadow: var(--shadow-pop);
}

.tabbar button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
}

.tabbar svg {
  width: 23px;
  height: 23px;
}

.tabbar button.active {
  color: #fff;
}

.tabbar button.active span {
  font-weight: 800;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(16px) scale(0.96);
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 12px 20px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  background: var(--grad-warm);
  border-radius: 999px;
  box-shadow: 0 14px 26px -10px rgba(255, 122, 80, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

@media (min-width: 860px) {
  body {
    background: linear-gradient(135deg, #ffe3ec, #fff1e6 60%, #e9fbf4);
  }

  .app-shell {
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    border-radius: 30px;
  }
}
