:root {
  --bg: #f4efe4;
  --paper: #fffdf8;
  --ink: #20261f;
  --muted: #81796d;
  --line: #e5dccd;
  --green: #23543d;
  --green-2: #2f6b4f;
  --green-soft: #e7efe7;
  --orange: #e8743b;
  --orange-soft: #fbe8da;
  --red: #b84a3a;
  --red-soft: #f8e2dd;
  --gold: #c7973b;
  --shadow: 0 12px 32px rgba(70, 56, 34, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

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

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(31, 66, 49, 0.98);
  color: #f0f5ed;
  box-shadow: 0 5px 20px rgba(19, 37, 27, 0.13);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1160px, 100%);
  min-height: 66px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #f6ead4;
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: rgba(240, 245, 237, 0.42);
  font-size: 8px;
  letter-spacing: 1.8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 8px;
  color: rgba(240, 245, 237, 0.66);
  font-size: 12px;
  transition: 0.15s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.main-nav a.active {
  background: #f3ecdd;
  color: var(--green);
  font-weight: 700;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.points-pill {
  padding: 6px 10px;
  border: 1px solid rgba(250, 238, 211, 0.18);
  border-radius: 999px;
  color: #f7edda;
  font-size: 11px;
}

.points-pill strong {
  color: #ffd9a7;
  font-size: 14px;
}

.admin-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #d8e5d9;
  font-size: 10px;
  letter-spacing: 1px;
}

.header-logout {
  color: rgba(240, 245, 237, 0.55);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* flash */
.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.flash {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 12px;
  box-shadow: 0 5px 12px rgba(70, 56, 34, 0.04);
}

.flash-success {
  border-color: #cfe0d2;
  background: #edf5ee;
  color: #315d43;
}

.flash-error {
  border-color: #efd0c7;
  background: #fff5f2;
  color: #8b3f33;
}

.flash-info {
  border-color: #e3d6bf;
  background: #fff9ed;
  color: #735a36;
}

/* common */
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 20px;
}

.page-title h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.page-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.kicker {
  color: #a1947e;
  font-size: 9px;
  letter-spacing: 2px;
}

.card {
  border: 1px solid rgba(210, 197, 175, 0.7);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: 22px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 760;
}

.section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 10px;
}

.strong {
  font-weight: 700;
}

.empty {
  padding: 56px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border: 1px dashed #d3c4ad;
  border-radius: 14px;
  background: #faf4e8;
  color: #9c8564;
  font-size: 18px;
}

.empty-title {
  font-size: 14px;
  font-weight: 650;
}

.empty-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.tag.green {
  background: var(--green-soft);
  color: var(--green);
}

.tag.orange {
  background: var(--orange-soft);
  color: #a04d22;
}

.tag.red {
  background: var(--red-soft);
  color: var(--red);
}

.tag.gray {
  background: #f0ece4;
  color: #756d60;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  transition: 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(35, 84, 61, 0.15);
}

.btn-primary:hover {
  background: #1d4733;
}

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

.btn-ghost {
  border-color: var(--line);
  background: var(--paper);
  color: #514a3f;
}

.btn-ghost:hover {
  background: #faf5ea;
}

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

.btn-danger-soft {
  border-color: #efd0c7;
  background: var(--red-soft);
  color: var(--red);
}

.btn-sm {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* forms */
.form-card {
  padding: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  color: #5f574c;
  font-size: 11px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fffefa;
  color: var(--ink);
  font-size: 13px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #8fa88f;
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.08);
}

.field .hint {
  color: #9b8f7e;
  font-size: 10px;
  line-height: 1.55;
}

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

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.notice {
  display: flex;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.65;
}

.notice-warning {
  border: 1px solid #efd8bd;
  background: #fff8ec;
  color: #77562f;
}

.notice-info {
  border: 1px solid #d5e4d7;
  background: #edf5ee;
  color: #335c44;
}

.notice strong {
  flex: 0 0 auto;
}

/* user home */
.hero {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #234e38, #3b7657);
  color: #f8f4e8;
  box-shadow: 0 16px 34px rgba(35, 84, 61, 0.18);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero .kicker {
  color: rgba(255, 255, 255, 0.46);
}

.hero h1 {
  margin: 5px 0 6px;
  font-size: 26px;
  letter-spacing: 1px;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.hero-points {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.hero-points strong {
  display: block;
  color: #ffdaa8;
  font-size: 28px;
  line-height: 1.1;
}

.hero-points span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.hero-cta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.hero-cta .btn {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 253, 248, 0.95);
  color: var(--green);
}

.announcement {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #eadcc4;
  border-radius: 10px;
  background: #fff8ea;
  color: #725832;
  font-size: 11px;
  line-height: 1.6;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 2px 12px;
}

.toolbar .label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 10px;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--muted);
  font-size: 11px;
}

.chip.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 650;
}

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

.task-card {
  display: block;
  padding: 18px;
  border: 1px solid rgba(210, 197, 175, 0.7);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(70, 56, 34, 0.05);
  transition: 0.15s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(70, 56, 34, 0.09);
}

.task-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.meal-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  font-weight: 750;
}

.meal-badge.breakfast {
  background: #fbf0dc;
  color: #9a641e;
}

.meal-badge.dinner {
  background: #eaeaf1;
  color: #5a6481;
}

.task-card h3 {
  margin: 2px 0 2px;
  font-size: 14px;
  font-weight: 700;
}

.task-card .meta {
  color: var(--muted);
  font-size: 10px;
}

.task-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(229, 220, 203, 0.65);
}

.publisher {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6e6557;
  font-size: 10px;
}

.avatar-sm {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #eee5d5;
  color: #7a6342;
  font-size: 10px;
  font-weight: 700;
}

.reward {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

/* task detail */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-head {
  padding: 22px;
}

.detail-head h1 {
  margin: 10px 0 4px;
  font-size: 24px;
  letter-spacing: 0.4px;
}

.detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

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

.info-box {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf7ee;
}

.info-box .k {
  color: var(--muted);
  font-size: 9px;
}

.info-box .v {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 650;
  word-break: break-all;
}

.qr-box {
  text-align: center;
}

.qr-image {
  width: min(100%, 360px);
  margin: 12px auto 4px;
  padding: 10px;
  border: 1px solid #d7c9b4;
  border-radius: 14px;
  background: #fff;
}

.qr-hint {
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
}

.proof-image {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  border-radius: 10px;
  background: #f3eee3;
}

.timeline {
  margin-top: 4px;
}

.timeline-row {
  display: flex;
  gap: 10px;
}

.timeline-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 13px;
}

.timeline-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border: 2px solid #c7d7ca;
  border-radius: 50%;
  background: var(--paper);
}

.timeline-dot.done {
  border-color: var(--green-2);
  background: var(--green-2);
}

.timeline-line {
  flex: 1;
  width: 1px;
  min-height: 22px;
  background: #e3d9c8;
}

.timeline-copy {
  padding-bottom: 12px;
  font-size: 11px;
}

.timeline-copy strong {
  display: block;
  color: #5e564b;
}

.timeline-copy span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

/* auth */
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px 18px;
  background: radial-gradient(circle at 90% 0%, #efe2c9 0, transparent 38%),
    radial-gradient(circle at 0% 80%, #e6eee2 0, transparent 34%), var(--bg);
}

.auth-page .flash-stack {
  width: min(440px, 100%);
}

.auth-card {
  width: min(440px, 100%);
  padding: 30px 28px 24px;
  border: 1px solid rgba(210, 197, 175, 0.8);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 60px rgba(70, 56, 34, 0.13);
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 17px;
  background: var(--green);
  color: #f7ecd9;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(35, 84, 61, 0.2);
}

.auth-brand h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--green);
}

.auth-brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.auth-tabs {
  display: flex;
  padding: 4px;
  border-radius: 10px;
  background: #eee7da;
}

.auth-tabs a {
  flex: 1;
  padding: 7px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.auth-tabs a.active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 3px 9px rgba(70, 56, 34, 0.08);
}

.auth-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.auth-footer {
  margin-top: 18px;
  color: #a79c8b;
  font-size: 9px;
  text-align: center;
  line-height: 1.7;
}

/* lists */
.list {
  display: flex;
  flex-direction: column;
}

.list-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(229, 220, 203, 0.7);
}

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

.list-row:first-child {
  padding-top: 0;
}

.list-main {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 12px;
  font-weight: 650;
}

.list-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.points {
  color: var(--green);
  font-weight: 750;
  white-space: nowrap;
}

.points.negative {
  color: var(--red);
}

/* tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(210, 197, 175, 0.7);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: #faf6ed;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(229, 220, 203, 0.7);
  font-size: 11px;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fdf9f0;
}

.table-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* admin */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 17px;
  border: 1px solid rgba(210, 197, 175, 0.7);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 7px 18px rgba(70, 56, 34, 0.04);
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
}

.stat-value {
  margin-top: 3px;
  color: var(--green);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-card.alert .stat-value {
  color: var(--red);
}

.stat-note {
  margin-top: 2px;
  color: #a29683;
  font-size: 9px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.admin-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 210px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.search-box input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.search-box .search-icon {
  margin-right: 6px;
  color: #a89d8c;
  font-size: 16px;
}

.invite-code {
  padding: 18px;
  border: 1px dashed #cdbfa8;
  border-radius: 11px;
  background: #f7f1e4;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
  text-align: center;
  word-break: break-all;
}

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

.meal-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf6ec;
}

.meal-box label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 4px;
}

.meal-box input {
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffefa;
  font-size: 11px;
}

.meal-times {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.meal-times span {
  color: var(--muted);
  font-size: 9px;
}

.log-list {
  display: flex;
  flex-direction: column;
}

.log-row {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(229, 220, 203, 0.7);
}

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

.log-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #8fa993;
}

.log-title {
  font-size: 11px;
  font-weight: 650;
}

.log-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

/* bottom nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-around;
  height: calc(58px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(229, 220, 203, 0.95);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 -8px 24px rgba(70, 56, 34, 0.06);
  backdrop-filter: blur(10px);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
  color: var(--muted);
  font-size: 9px;
}

.bottom-nav a.active {
  color: var(--green);
  font-weight: 700;
}

.bottom-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #f0eadf;
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav a.active .bottom-icon {
  background: var(--green-soft);
  color: var(--green);
}

.bottom-publish {
  display: grid !important;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff !important;
  font-size: 26px !important;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(35, 84, 61, 0.25);
}

/* responsive */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 10px 16px;
  }
  .brand-text small {
    display: none;
  }
  .main-nav {
    order: 3;
    flex: 1 1 100%;
    padding-top: 2px;
  }
  .main-nav a {
    padding: 6px 9px;
    font-size: 11px;
  }
  .header-user {
    margin-left: auto;
  }
  .page {
    padding: 20px 16px 86px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .detail-layout,
  .split {
    grid-template-columns: 1fr;
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bottom-nav {
    display: flex;
  }
  .user-body .site-header .main-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .page-title h1 {
    font-size: 23px;
  }
  .hero {
    padding: 21px 18px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero-top {
    flex-direction: column;
  }
  .hero-points {
    width: 100%;
    text-align: left;
  }
  .info-grid,
  .form-row,
  .meal-settings {
    grid-template-columns: 1fr;
  }
  .header-user .admin-pill {
    display: none;
  }
  .auth-card {
    padding: 24px 20px;
  }
  .form-actions {
    flex-direction: column-reverse;
  }
  .form-actions .btn {
    width: 100%;
  }
  .admin-body .header-inner {
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .admin-body .main-nav {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
  }
  .admin-body .header-user {
    margin-left: auto;
  }
}
