:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-2: #11151d;
  --panel: rgba(11, 14, 20, .74);
  --panel-strong: rgba(18, 22, 31, .9);
  --card: rgba(255, 255, 255, .072);
  --card-strong: rgba(255, 255, 255, .13);
  --line: rgba(255, 255, 255, .12);
  --text: #f8f4ea;
  --muted: #aeb4c0;
  --soft: #737b8a;
  --ember: #ff6a24;
  --lime: #b9ff66;
  --cyan: #6ee7ff;
  --pink: #ff74a6;
  --good: #31d67b;
  --warn: #ffd166;
  --bad: #ff5c5c;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, .24);
  --focus: 0 0 0 4px rgba(185, 255, 102, .18);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: linear-gradient(155deg, #090b10 0%, #10131b 52%, #15110d 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(120deg, rgba(255, 106, 36, .16), transparent 48%, rgba(110, 231, 255, .08));
  background-size: 34px 34px, 34px 34px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .2));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .2));
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.app-shell {
  width: min(100%, 470px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 14px calc(132px + env(safe-area-inset-bottom));
  position: relative;
  isolation: isolate;
}

.topbar,
.brand-lockup,
.hero-meta,
.section-head,
.notice-card,
.inline-head {
  display: flex;
  align-items: center;
}

.topbar {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 20;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 16px;
  padding: 9px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(13, 16, 22, .82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: block;
  box-shadow: 0 14px 32px rgba(255, 106, 36, .34);
}

.brand-lockup strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.brand-lockup span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
}

.avatar-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  font-weight: 900;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.avatar-btn:active {
  transform: scale(.96);
}

.avatar-btn:hover {
  border-color: rgba(185, 255, 102, .36);
  background: rgba(255, 255, 255, .12);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 184px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .045)),
    linear-gradient(135deg, #171b25 0%, #211e29 52%, #351808 100%);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, .18), transparent 42%),
    linear-gradient(220deg, rgba(185, 255, 102, .12), transparent 54%);
  pointer-events: none;
}

.hero-card > * {
  position: relative;
}

.profile-card,
.notice-card,
.image-card,
.class-card,
.meal-card {
  border: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.section-head span,
.mini-label {
  display: block;
  color: var(--soft);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.nav-btn {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.section-head {
  justify-content: space-between;
  gap: 12px;
  margin: 28px 2px 12px;
}

.panel > .section-head:first-child {
  margin-top: 12px;
}

.section-head > div {
  position: relative;
  padding-left: 13px;
}

.section-head > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--ember), var(--lime));
}

.section-head > div > span {
  color: var(--ember);
  opacity: .95;
}

.section-head h2 {
  margin: 3px 0 0;
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: -.045em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-align: right;
}

.stack {
  display: grid;
  gap: 10px;
}

.panel {
  animation: panelIn .22s ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-list {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.meal-card {
  padding: 15px;
  border-radius: var(--radius-lg);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.meal-card:active {
  transform: scale(.992);
}

.card-list .meal-card {
  border-radius: 0;
  border-bottom: 0;
}

.card-list .meal-card:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-list .meal-card:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-bottom: 1px solid var(--line);
}

.meal-top,
.class-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.meal-card h3,
.class-card h3,
.notice-card strong,
.profile-card strong,
.image-card strong {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, .08);
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.pill.hot {
  color: #140901;
  background: var(--ember);
}

.pill.good {
  color: #04180d;
  background: var(--good);
}

.items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.items li {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(248, 244, 234, .9);
  background: rgba(255, 255, 255, .07);
  font-size: .82rem;
  font-weight: 720;
}

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

.macro-grid span {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 15px;
  padding: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, .055);
  font-size: .72rem;
  font-weight: 780;
}

.macro-grid b {
  display: block;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.05;
}

.micro-copy {
  margin: 10px 0 0;
  color: var(--soft);
  font-size: .78rem;
  font-weight: 750;
}

.meal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.meal-actions > button {
  flex: 1 1 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, .07);
  font-weight: 950;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}

.meal-actions > button:active {
  transform: scale(.96);
}

.meal-actions > button.is-on {
  color: #071013;
  background: var(--lime);
  border-color: transparent;
}

.rating-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  gap: 4px;
}

.rating-row button {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, .32);
  background: transparent;
  font-size: 1rem;
  transition: transform .12s ease, color .12s ease, background .12s ease;
}

.rating-row button.active {
  color: var(--warn);
}

.rating-row button:active {
  transform: scale(.9);
  background: rgba(255, 209, 102, .1);
}

.class-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-lg);
  transition: transform .16s ease, border-color .16s ease, opacity .16s ease;
}

.class-card:active {
  transform: scale(.992);
}

.time-pill {
  min-height: 70px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #071013;
  background: linear-gradient(160deg, var(--cyan), var(--lime));
  font-weight: 950;
  text-align: center;
  letter-spacing: -.045em;
}

.time-pill span {
  display: block;
  margin-top: 3px;
  color: rgba(7, 16, 19, .62);
  font-size: .62rem;
  letter-spacing: 0;
}

.class-card p,
.notice-card p,
.profile-card p,
.image-card p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: .86rem;
}

.class-meta,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.notice-card {
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border-radius: var(--radius-lg);
}

.notice-card > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  color: #140901;
  background: var(--warn);
  font-size: .68rem;
  font-weight: 900;
}

.image-card {
  margin-top: 12px;
  padding: 15px;
  border-radius: var(--radius-lg);
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

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

.tool-card,
.billing-card,
.analytics-card,
.day-tile {
  border: 1px solid var(--line);
  background: var(--card);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.tool-card {
  min-height: 156px;
  border-radius: var(--radius-lg);
  padding: 15px;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.tool-card:active {
  transform: scale(.985);
}

.tool-card:hover {
  border-color: rgba(185, 255, 102, .28);
  background: var(--card-strong);
}

.week-meals {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.week-meals li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: baseline;
}

.week-meals span {
  color: var(--soft);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.week-meals p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.35;
}

.tool-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: .4;
}

.tool-card span,
.billing-card span,
.analytics-top span {
  display: block;
  color: var(--soft);
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tool-card strong,
.billing-card strong,
.analytics-top strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.03;
  letter-spacing: -.05em;
}

.tool-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

.accent-lime {
  color: var(--lime);
}

.accent-cyan {
  color: var(--cyan);
}

.accent-pink {
  color: var(--pink);
}

.accent-ember {
  color: var(--ember);
}

.calendar-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.calendar-strip::-webkit-scrollbar {
  display: none;
}

.day-tile {
  border-radius: 20px;
  padding: 12px 10px;
  text-align: center;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.day-tile.active {
  color: #071013;
  background: var(--lime);
  border-color: transparent;
}

.day-tile span,
.day-tile p {
  display: block;
  color: inherit;
  opacity: .72;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.day-tile strong {
  display: block;
  margin: 6px 0;
  font-size: 1.35rem;
  letter-spacing: -.05em;
}

.day-tile p {
  margin: 0;
  opacity: .58;
}

.day-tile {
  display: grid;
  gap: 1px;
  align-content: start;
  color: var(--text);
  cursor: pointer;
}

.day-tile:active {
  transform: scale(.97);
}

.day-tile:hover:not(.active) {
  border-color: rgba(110, 231, 255, .28);
  background: var(--card-strong);
}

.day-tile.is-today strong {
  color: var(--ember);
}

.day-tile.active.is-today strong {
  color: #071013;
}

.cal-dot {
  display: grid;
  place-items: center;
  height: 17px;
  margin: 3px auto 0;
  font-style: normal;
  font-size: .64rem;
  font-weight: 900;
}

.cal-dot.has {
  min-width: 17px;
  padding: 0 4px;
  border-radius: 999px;
  color: #071013;
  background: var(--cyan);
}

.day-tile.active .cal-dot.has {
  background: rgba(7, 16, 19, .8);
  color: var(--lime);
}

.cal-dot.hol {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bad);
}

.cal-dot.none {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.cal-agenda-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 2px 11px;
}

.cal-agenda-head strong {
  font-size: .98rem;
}

.cal-agenda-head span {
  color: var(--soft);
  font-size: .74rem;
  font-weight: 800;
}

#calendarAgenda .class-card {
  margin-bottom: 10px;
}

.cal-note {
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(202, 61, 50, .4);
  border-radius: var(--radius-md);
  background: rgba(202, 61, 50, .12);
  color: var(--text);
  font-weight: 700;
  font-size: .88rem;
}

.billing-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-lg);
  padding: 16px;
}

.billing-card p {
  max-width: 20ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
}

.billing-card button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 15px;
  padding: 0 14px;
  color: #071013;
  background: var(--cyan);
  font-weight: 950;
  transition: transform .14s ease, filter .14s ease;
}

.billing-card button:active,
.coffee-btn:active,
.sign-out-btn:active,
.profile-card button:active,
.chip button:active,
.next-cta-btn:active,
.att-btn:active {
  transform: translateY(1px);
}

.billing-card button:hover,
.coffee-btn:hover,
.profile-card button:hover,
.next-cta-btn:hover {
  filter: brightness(1.05);
}

.analytics-card {
  border-radius: var(--radius-lg);
  padding: 16px;
}

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

.analytics-top p {
  margin: 0;
  color: var(--lime);
  font-size: .8rem;
  font-weight: 900;
}

.bar-chart {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.bar-row div {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .09);
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ember), var(--lime));
}

.bar-row strong {
  color: var(--text);
  text-align: right;
}

.profile-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border-radius: var(--radius-lg);
}

.profile-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}

.profile-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 13px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.profile-card input:focus {
  border-color: rgba(185, 255, 102, .7);
  box-shadow: 0 0 0 4px rgba(185, 255, 102, .12);
  background: rgba(255, 255, 255, .11);
}

.profile-card button,
.chip button {
  border: 0;
  border-radius: 16px;
  min-height: 44px;
  color: #071013;
  background: var(--lime);
  font-weight: 950;
  transition: transform .14s ease, filter .14s ease, background .14s ease;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 5px 5px 12px;
  background: var(--card);
  color: var(--text);
  font-size: .8rem;
  font-weight: 850;
}

.chip button {
  width: 26px;
  min-height: 26px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, .12);
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
  line-height: 1.45;
  font-size: .9rem;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(calc(100% - 18px), 452px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: max(8px, env(safe-area-inset-bottom));
  padding: 6px;
  border-top: 1px solid var(--line);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: rgba(12, 15, 21, .96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 -2px 0 rgba(255, 255, 255, .04), 0 18px 48px rgba(0, 0, 0, .6);
}

.nav-btn {
  min-height: 44px;
  border-radius: 16px;
  font-size: .72rem;
  transition: transform .16s ease, color .16s ease, background .16s ease;
}

.nav-btn.active {
  color: var(--lime);
  background: rgba(185, 255, 102, .1);
}

.nav-btn:active {
  transform: scale(.96);
}

@media (min-width: 760px) {
  body:not(.locked) {
    display: grid;
    place-items: start center;
  }

  .app-shell {
    padding-top: 26px;
  }
}

/* ---------- Login ---------- */
body.locked {
  overflow: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  padding: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(155deg, #07090d 0%, #11151d 52%, #16100c 100%);
}

.login-aurora {
  position: fixed;
  inset: -30%;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 106, 36, .34), transparent 38%),
    linear-gradient(245deg, rgba(185, 255, 102, .24), transparent 48%),
    linear-gradient(0deg, rgba(110, 231, 255, .14), transparent 62%);
  filter: blur(30px);
  opacity: .78;
  animation: aurora 16s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translate3d(-4%, -3%, 0) scale(1); }
  100% { transform: translate3d(5%, 4%, 0) scale(1.12); }
}

.login-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 392px;
  margin: auto;
  padding: 26px 22px 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20, 22, 30, .9), rgba(12, 14, 19, .96));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: -.01em;
}

.login-brand .login-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.login-title {
  margin: 18px 0 0;
  font-size: 1.92rem;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.login-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ember), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-sub {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.login-points {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 16px 0 4px;
  padding: 0;
}

.login-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 650;
  color: var(--text);
}

.login-points .lp-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  color: var(--lime);
  background: rgba(185, 255, 102, .1);
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .04em;
}

.login-form {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-form input:focus {
  border-color: rgba(255, 106, 36, .7);
  box-shadow: 0 0 0 4px rgba(255, 106, 36, .14);
  background: rgba(255, 255, 255, .1);
}

.login-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  min-height: 50px;
  margin-top: 4px;
  color: #071013;
  background: linear-gradient(100deg, var(--ember), #ff8a3d);
  font-weight: 950;
  font-size: 1rem;
  box-shadow: 0 12px 30px rgba(255, 106, 36, .3);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

.login-form button:hover {
  filter: brightness(1.05);
  box-shadow: 0 15px 34px rgba(255, 106, 36, .34);
}

.login-form button:active {
  transform: translateY(1px);
}

.login-error {
  margin: 0;
  color: var(--bad);
  font-size: .82rem;
  font-weight: 800;
}

.login-foot {
  margin-top: 14px;
  color: var(--soft);
  font-size: .76rem;
  text-align: center;
}

.login-foot strong {
  color: var(--muted);
}

/* ---------- Today dashboard ---------- */
.dash-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dash-greeting {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -.01em;
}

.dash-date {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.dash-sync {
  flex-shrink: 0;
  color: var(--lime);
  font-size: .7rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(185, 255, 102, .12);
}

.dash-next {
  margin-top: 14px;
}

.next-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.next-card.live {
  border-color: rgba(255, 106, 36, .5);
  background: linear-gradient(160deg, rgba(255, 106, 36, .2), rgba(255, 255, 255, .03));
}

.next-tag {
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-tag.now {
  color: var(--ember);
}

.next-card strong {
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.next-card p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.38;
}

.next-progress {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}

.next-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--lime));
  transition: width .4s ease;
}

.next-card.cta {
  gap: 8px;
}

.next-cta-btn {
  justify-self: start;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 18px;
  color: #071013;
  background: var(--lime);
  font-weight: 900;
  transition: transform .14s ease, filter .14s ease;
}

.dash-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.chip-stat {
  display: grid;
  gap: 2px;
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  text-align: center;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.chip-stat:hover {
  border-color: rgba(185, 255, 102, .24);
  background: rgba(255, 255, 255, .075);
}

.chip-stat b {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.chip-stat span {
  color: var(--soft);
  font-size: .62rem;
  font-weight: 750;
  line-height: 1.1;
}

/* ---------- Insights ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.insight-ring-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(var(--ring, var(--good)) calc(var(--pct, 0) * 1%), rgba(255, 255, 255, .08) 0);
}

.ring::before {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #11141c;
}

.ring span {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
  color: var(--soft);
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ring span b {
  font-size: 1.55rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-transform: none;
}

.ring-legend {
  display: grid;
  gap: 4px;
  font-size: .76rem;
  color: var(--muted);
}

.ring-legend p {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.good { background: var(--good); }
.dot.bad { background: var(--bad); }
.dot.warn { background: var(--warn); }

.insight-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.tile {
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}

.tile b {
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.tile span {
  color: var(--soft);
  font-size: .68rem;
  font-weight: 750;
}

.insight-block {
  display: grid;
  gap: 11px;
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.ib-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ib-head strong {
  font-size: .95rem;
}

.ib-head span {
  color: var(--soft);
  font-size: .74rem;
  font-weight: 800;
}

.ib-rows {
  display: grid;
  gap: 9px;
}

.ib-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
}

.ib-rows span {
  color: var(--muted);
}

.ib-rows strong {
  font-weight: 850;
}

/* ---------- Profile identity + picker ---------- */
.identity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.identity-card strong {
  display: block;
  font-size: .98rem;
}

.identity-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .8rem;
  word-break: break-all;
}

.identity-card .sync-state {
  margin-top: 2px;
  color: var(--good);
  font-size: .72rem;
  font-weight: 800;
}

.identity-card .pill {
  margin-left: auto;
  flex-shrink: 0;
}

.identity-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  color: #071013;
  background: var(--lime);
  font-weight: 950;
}

.picker-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}

.profile-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  font: inherit;
  font-weight: 700;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.profile-card select:focus {
  border-color: rgba(185, 255, 102, .7);
  box-shadow: 0 0 0 4px rgba(185, 255, 102, .12);
  background: rgba(255, 255, 255, .11);
}

.profile-card option {
  color: #0b0d12;
}

.sign-out-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--bad);
  background: rgba(255, 92, 92, .1);
  font-weight: 900;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.sign-out-btn:hover {
  border-color: rgba(255, 92, 92, .32);
  background: rgba(255, 92, 92, .15);
}

/* ---------- Class feed groups ---------- */
.feed-day {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.feed-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 4px;
}

.feed-day-head strong {
  font-size: .95rem;
}

.feed-day-head span {
  color: var(--soft);
  font-size: .76rem;
  font-weight: 800;
}

.class-card.is-done {
  opacity: .5;
}

.feed-divider {
  margin: 6px 2px 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, .14);
  color: var(--soft);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---------- Attendance ---------- */
.att-row {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.att-btn {
  flex: 1;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  font-size: .76rem;
  font-weight: 850;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, color .14s ease;
}

.att-btn.att-present.on {
  color: #07120b;
  background: var(--good);
  border-color: transparent;
}

.att-btn.att-absent.on {
  color: #fff;
  background: var(--bad);
  border-color: transparent;
}

.att-btn.att-cancelled.on {
  color: #1a1405;
  background: var(--warn);
  border-color: transparent;
}

.attendance-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

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

.attendance-top span {
  display: block;
  color: var(--soft);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.attendance-top strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.02em;
}

.attendance-top p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: right;
}

.att-lines {
  display: grid;
  gap: 7px;
}

.att-line {
  display: grid;
  grid-template-columns: 82px 1fr 38px 46px;
  align-items: center;
  gap: 8px;
}

.att-line-name {
  font-weight: 850;
  font-size: .8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.att-line-sub {
  color: var(--soft);
  font-size: .7rem;
  text-align: right;
  white-space: nowrap;
}

.att-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.att-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.att-line strong {
  font-size: .82rem;
  text-align: right;
}

.att-good { color: var(--good); background: var(--good); }
.att-warn { color: var(--warn); background: var(--warn); }
.att-bad { color: var(--bad); background: var(--bad); }
strong.att-good, strong.att-warn, strong.att-bad { background: none; }

/* ---------- Settings / About ---------- */
.setting-block {
  margin-top: 6px;
}

.setting-block .ghost-btn {
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 44px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  font-weight: 850;
}

.about-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 106, 36, .12), transparent 52%),
    var(--card);
}

.about-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-head img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.about-head strong {
  display: block;
  font-size: 1rem;
}

.about-head span {
  color: var(--soft);
  font-size: .76rem;
  font-weight: 700;
}

.about-purpose {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.coffee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
  color: #1a1405;
  background: linear-gradient(120deg, var(--warn), var(--ember));
  transition: transform .14s ease, filter .14s ease;
}

@media (max-width: 390px) {
  .app-shell {
    padding-inline: 10px;
  }

  .brand-lockup strong,
  .login-brand {
    letter-spacing: -.02em;
  }

  .hero-card {
    min-height: 196px;
    padding: 17px;
  }

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

  .chip-stat {
    min-height: 58px;
  }

  .class-card {
    grid-template-columns: 68px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .time-pill {
    min-height: 64px;
    border-radius: 16px;
  }

  .tool-card {
    min-height: 136px;
    padding: 13px;
  }

  .picker-row {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    width: min(calc(100% - 12px), 452px);
    gap: 5px;
    padding: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.coffee-btn.is-disabled {
  opacity: .6;
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
  cursor: default;
}

.upi-id {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}

.upi-id strong {
  color: var(--text);
}

.made-with-love {
  margin: 0;
  text-align: center;
  color: var(--soft);
  font-size: .82rem;
  font-weight: 700;
}

.made-with-love span {
  color: var(--ember);
}

/* ---------- Subject identity on class cards ---------- */
.class-card {
  border-left: 3px solid var(--subject, var(--cyan));
}

.class-body { min-width: 0; }

.time-pill {
  background: var(--subject, var(--cyan));
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(0, 0, 0, .16));
}

.class-card h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.subject-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 8px;
  color: #0b0e13;
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: .9rem;
}

.session-tag {
  color: var(--soft);
  font-size: .72rem;
  font-weight: 800;
}

.seat-pill {
  color: #140901;
  background: var(--warn);
}

.chip-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* ---------- Dual now/next ---------- */
.dash-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-duo .next-card {
  padding: 14px;
  border-left: 3px solid var(--subject, rgba(255, 255, 255, .14));
}

.dash-duo .next-card strong {
  font-size: 1.06rem;
}

.dash-duo .next-card p {
  font-size: .76rem;
}

.next-card.muted {
  opacity: .66;
}

.next-card strong .dot-sub {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

/* ---------- Subjects modal ---------- */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(3, 4, 7, .62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  animation: sheetUp .24s ease;
}

@keyframes sheetUp {
  from { transform: translateY(16px); opacity: .5; }
  to { transform: none; opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head strong {
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

.modal-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}

.modal-search {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  outline: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions button {
  border: 0;
  min-height: 44px;
  padding: 0 6px;
  background: none;
  color: var(--ember);
  font-weight: 850;
  font-size: .82rem;
}

.modal-list {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 0;
  margin: 0 -4px;
  padding: 0 4px;
}

.subj-row {
  display: grid;
  grid-template-columns: 22px 14px auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  cursor: pointer;
}

.subj-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--ember);
}

.subj-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.subj-name {
  font-weight: 900;
  letter-spacing: -.01em;
}

.subj-sec {
  color: var(--muted);
  font-size: .82rem;
}

.seat-input {
  width: 66px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  text-align: center;
  outline: none;
}

.modal-save {
  border: 0;
  border-radius: 14px;
  min-height: 50px;
  color: #140901;
  background: var(--ember);
  font-weight: 950;
  font-size: 1rem;
}

/* ---------- Month calendar ---------- */
.cal-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 2px 12px;
}

.cal-month-head strong {
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.cal-weekdays span {
  text-align: center;
  color: var(--soft);
  font-size: .66rem;
  font-weight: 850;
}

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

.cal-cell {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  background: none;
  color: var(--text);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: .92rem;
}

.cal-cell.empty {
  visibility: hidden;
}

.cal-cell.past {
  color: var(--soft);
}

.cal-cell.is-today {
  color: var(--ember);
  font-weight: 950;
}

.cal-cell.active {
  background: var(--lime);
  color: #071013;
  font-weight: 950;
}

.cal-grid .cal-dot {
  position: absolute;
  bottom: 6px;
  width: 5px;
  height: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: 50%;
}

.cal-grid .cal-dot.has { background: var(--warn); }
.cal-grid .cal-dot.hol { background: var(--bad); }
.cal-cell.active .cal-dot { background: #071013; }

/* ---------- Onboarding ---------- */
.onboard { margin-top: 18px; }

.ob-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ob-back, .ob-back-spacer {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.ob-back {
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}

.ob-dots {
  display: flex;
  gap: 6px;
}

.ob-dot {
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.ob-dot.on { background: var(--ember); }
.ob-dot.done { background: var(--lime); }

.ob-title {
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.ob-sub {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: .92rem;
}

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

.iim-card {
  display: grid;
  gap: 3px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  transition: border-color .15s, background .15s, transform .12s;
}

.iim-card:active { transform: scale(.98); }

.iim-card.sel {
  border-color: var(--ember);
  background: rgba(255, 106, 36, .14);
}

.iim-card.soon { opacity: .74; }

.iim-short {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--soft);
}

.iim-card strong {
  font-size: .96rem;
  letter-spacing: -.02em;
}

.iim-tag {
  font-size: .68rem;
  font-weight: 800;
}

.iim-card:not(.soon) .iim-tag { color: var(--good); }
.iim-card.soon .iim-tag { color: var(--warn); }

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

.year-card {
  display: grid;
  gap: 3px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}

.year-card.sel {
  border-color: var(--ember);
  background: rgba(255, 106, 36, .14);
}

.year-card strong { font-size: 1.1rem; letter-spacing: -.02em; }
.year-card span { color: var(--muted); font-size: .82rem; }

.gbtn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.gbtn-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-weight: 850;
  font-size: .95rem;
}

.gbtn-custom:active { background: rgba(255, 255, 255, .09); }

.gbtn-g {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 5px;
  padding: 3px;
  flex: 0 0 auto;
  box-sizing: content-box;
}

.ob-or {
  position: relative;
  text-align: center;
  margin: 14px 0 10px;
}

.ob-or::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.ob-or span {
  position: relative;
  padding: 0 10px;
  background: var(--bg-2);
  color: var(--soft);
  font-size: .74rem;
  font-weight: 800;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 22, 31, .96);
  color: var(--text);
  font-size: .85rem;
  font-weight: 650;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

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

/* ---------- Insights: mini bar charts ---------- */
.mini-bars {
  display: flex;
  gap: 8px;
}

.mini-bar {
  flex: 1;
  display: grid;
  grid-template-rows: 16px 92px 16px;
  justify-items: center;
  gap: 4px;
}

.mini-bar b {
  font-size: .7rem;
  font-weight: 850;
  color: var(--text);
}

.mini-bar i {
  align-self: end;
  width: 100%;
  max-width: 30px;
  min-height: 3px;
  border-radius: 7px 7px 2px 2px;
  background: var(--cyan);
}

.mini-bar i.att-good { background: var(--good); }
.mini-bar i.att-warn { background: var(--warn); }
.mini-bar i.att-bad { background: var(--bad); }

.mini-bar span {
  font-size: .66rem;
  font-weight: 800;
  color: var(--soft);
}

/* ---------- Meal nutrition (clear + honest) ---------- */
.nutri {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.nutri-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nutri-cal b {
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.nutri-cal span {
  color: var(--soft);
  font-size: .7rem;
  font-weight: 700;
}

.nutri-tag {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  font-size: .7rem;
  font-weight: 850;
}

.macro-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}

.macro-bar i { height: 100%; }

.mp { background: var(--good); }
.mc { background: var(--cyan); }
.mf { background: var(--warn); }

.macro-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.macro-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.macro-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.vendor-source {
  margin-top: 4px;
  color: var(--soft);
  font-size: .72rem;
  font-weight: 700;
}

/* ---------- Topbar bell + notifications ---------- */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bell-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.bell-btn:active { transform: scale(.96); }
.bell-btn:hover { border-color: rgba(185, 255, 102, .36); background: rgba(255, 255, 255, .12); }

.bell-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 2px var(--bg);
}

.see-all {
  border: 0;
  padding: 0;
  background: none;
  color: var(--ember);
  font-weight: 850;
  font-size: .8rem;
}

.notice-card.urgent {
  border-color: rgba(255, 106, 36, .5);
  background: linear-gradient(160deg, rgba(255, 106, 36, .14), var(--card));
}

/* ---------- Meal eating buttons + protein guidance ---------- */
.eat-row {
  flex: 1 1 100%;
  display: flex;
  gap: 8px;
}

.eat-btn {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  font-size: .84rem;
  font-weight: 900;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}

.eat-btn:active { transform: scale(.97); }
.eat-btn.eat.on { color: #06120b; background: var(--good); border-color: transparent; }
.eat-btn.skip.on { color: #fff; background: var(--bad); border-color: transparent; }

.nutri-protein {
  display: grid;
  gap: 2px;
}

.nutri-protein span {
  color: var(--soft);
  font-size: .66rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.nutri-protein strong {
  font-size: .9rem;
  font-weight: 800;
  color: var(--good);
  line-height: 1.35;
}

.nutri-protein strong.low { color: var(--warn); }

.nutri-note {
  color: var(--soft);
  font-size: .72rem;
  line-height: 1.4;
}

/* ---------- Campus email (Gmail) ---------- */
.gmail-box {
  display: grid;
  gap: 12px;
  padding: 15px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

#gmailBtn {
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  color: #140901;
  background: var(--ember);
  font-weight: 950;
}

.gmail-status {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.gmail-status.ok { color: var(--good); }

/* ---------- Rising Path UI pass ---------- */
:root {
  --gold: #ffb03a;
  --bg: #080d12;
  --bg-2: #111821;
  --panel: rgba(15, 19, 25, .82);
  --panel-strong: rgba(20, 24, 31, .94);
  --card: rgba(255, 255, 255, .075);
  --card-strong: rgba(255, 255, 255, .13);
  --line: rgba(255, 255, 255, .145);
  --text: #f7f1e8;
  --muted: #c0c4be;
  --soft: #878d88;
  --ember: #ff6a24;
  --lime: #d8ee86;
  --cyan: #78dce2;
  --pink: #d87a8a;
  --warn: #ffb03a;
  --radius-xl: 28px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .5);
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, .32);
}

html {
  background: #222b33;
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 176, 58, .12), transparent 34%),
    linear-gradient(150deg, #39424a 0%, #171f27 38%, #080d12 100%);
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(130deg, rgba(255, 106, 36, .08), transparent 46%, rgba(255, 176, 58, .055));
  background-size: 22px 22px, 22px 22px, 100% 100%;
  opacity: .72;
}

.app-shell {
  width: min(100%, 430px);
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(116px + env(safe-area-inset-bottom));
}

.topbar {
  margin: 0 0 18px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055)),
    rgba(15, 18, 23, .78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .36);
}

.brand-mark,
.login-brand .login-mark,
.about-head img {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 14px rgba(255, 106, 36, .28));
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-lockup strong,
.login-brand span {
  color: transparent;
  background: linear-gradient(90deg, #f8f1e8 0 58%, var(--gold) 58% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -.025em;
}

.brand-lockup span {
  color: rgba(247, 241, 232, .64);
  font-size: .7rem;
  letter-spacing: 0;
}

.bell-btn,
.avatar-btn {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
    rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.bell-dot {
  background: #ff4f7b;
  box-shadow: 0 0 0 2px rgba(15, 18, 23, .95);
}

.hero-card {
  min-height: 174px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .045)),
    linear-gradient(140deg, #1a232b 0%, #1e252f 45%, #281c15 100%);
  box-shadow: 0 26px 68px rgba(0, 0, 0, .42);
}

.hero-card::before {
  background:
    linear-gradient(110deg, rgba(255, 176, 58, .12), transparent 42%),
    linear-gradient(220deg, rgba(120, 220, 226, .14), transparent 56%);
}

.section-head {
  margin: 22px 2px 10px;
}

.section-head > div {
  padding-left: 0;
}

.section-head > div::before {
  display: none;
}

.section-head span {
  color: rgba(247, 241, 232, .7);
  letter-spacing: .02em;
}

.section-head h2 {
  margin-top: 4px;
  font-size: 1.02rem;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.profile-card,
.notice-card,
.image-card,
.meal-card,
.tool-card,
.billing-card,
.analytics-card,
.day-tile,
.attendance-card,
.insight-ring-card,
.insight-block,
.identity-card,
.gmail-box {
  border-color: rgba(255, 255, 255, .13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .048)),
    rgba(13, 17, 23, .78);
  box-shadow: var(--shadow-soft);
}

.card-list {
  display: grid;
  gap: 10px;
  overflow: visible;
  border-radius: 0;
}

.card-list .meal-card,
.card-list .meal-card:first-child,
.card-list .meal-card:last-child {
  border-radius: var(--radius-lg);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.meal-card {
  border-radius: var(--radius-lg);
}

.pill {
  min-height: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  padding: 3px 8px;
  color: rgba(247, 241, 232, .82);
  background: rgba(255, 255, 255, .105);
  font-size: .65rem;
  letter-spacing: 0;
}

.pill.hot {
  color: #1b0c05;
  background: linear-gradient(135deg, var(--ember), var(--gold));
}

.pill.good,
.seat-pill {
  color: #1b1405;
  background: linear-gradient(135deg, #9fb072, var(--gold));
}

.class-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-left: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .055)),
    linear-gradient(135deg, rgba(120, 220, 226, .24), rgba(45, 52, 64, .78));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.class-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--subject, var(--cyan)), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent);
  opacity: .23;
  pointer-events: none;
}

.class-card.state-now {
  border-color: rgba(255, 176, 58, .32);
  box-shadow: 0 18px 46px rgba(255, 106, 36, .15), 0 16px 34px rgba(0, 0, 0, .36);
}

.class-card.state-done {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .045)),
    linear-gradient(135deg, rgba(177, 177, 177, .18), rgba(43, 46, 52, .75));
}

.class-card.state-later {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .055)),
    linear-gradient(135deg, rgba(255, 176, 58, .19), rgba(56, 47, 29, .72));
}

.class-card.is-done {
  opacity: .82;
}

.class-body,
.class-top,
.class-meta,
.att-row {
  position: relative;
}

.class-top {
  align-items: flex-start;
}

.class-title-block {
  min-width: 0;
}

.class-time-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(247, 241, 232, .94);
}

.class-time-line strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.class-time-line span {
  color: rgba(247, 241, 232, .78);
  font-size: .88rem;
  font-weight: 800;
}

.class-card h3 {
  margin-top: 1px;
}

.subject-tag {
  padding: 0;
  border-radius: 0;
  color: #fff9ef;
  background: transparent !important;
  font-size: 1.08rem;
  line-height: 1.05;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .22);
}

.session-tag {
  font-size: .72rem;
  color: rgba(247, 241, 232, .72);
}

.class-meta {
  margin-top: 8px;
}

.att-row {
  gap: 6px;
  margin-top: 11px;
}

.att-btn {
  min-height: 30px;
  border-radius: 8px;
  background: rgba(6, 8, 12, .22);
  color: rgba(247, 241, 232, .82);
  font-size: .68rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.att-btn.att-present.on {
  color: #061109;
  background: linear-gradient(135deg, #57d77a, #9dda74);
}

.att-btn.att-absent.on {
  background: linear-gradient(135deg, #c45c6b, #e67686);
}

.att-btn.att-cancelled.on {
  color: #1d1605;
  background: linear-gradient(135deg, #d4a64e, var(--gold));
}

.bottom-nav {
  width: min(calc(100% - 22px), 408px);
  gap: 0;
  padding: 7px 8px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
    rgba(12, 14, 18, .9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .56), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.nav-btn {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 48px;
  border-radius: 14px;
  color: rgba(247, 241, 232, .64);
  font-size: .66rem;
  line-height: 1;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-btn span {
  display: block;
}

.nav-btn.active {
  color: var(--lime);
  background: transparent;
  text-shadow: 0 0 16px rgba(216, 238, 134, .5);
}

.nav-btn.active svg {
  filter: drop-shadow(0 0 8px rgba(216, 238, 134, .55));
}

.login-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 176, 58, .15), transparent 36%),
    linear-gradient(150deg, #333d46 0%, #151d25 40%, #080d12 100%);
}

.login-aurora {
  background:
    linear-gradient(115deg, rgba(255, 106, 36, .32), transparent 38%),
    linear-gradient(245deg, rgba(255, 176, 58, .22), transparent 52%),
    linear-gradient(0deg, rgba(120, 220, 226, .11), transparent 62%);
}

.login-inner {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
    rgba(12, 16, 22, .9);
}

@media (max-width: 390px) {
  .app-shell {
    padding-inline: 12px;
  }

  .class-card {
    padding: 12px;
  }

  .subject-tag {
    font-size: 1rem;
  }

  .att-btn {
    min-height: 31px;
    font-size: .64rem;
  }

  .bottom-nav {
    width: min(calc(100% - 14px), 408px);
  }
}

/* ---------- Feed: collapsible "Previous" ---------- */
.feed-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-weight: 850;
  font-size: .9rem;
}

.feed-toggle:active { transform: scale(.99); }

.feed-toggle-meta {
  color: var(--soft);
  font-size: .78rem;
  font-weight: 800;
}

.feed-toggle-meta i {
  font-style: normal;
  color: var(--muted);
  margin-left: 4px;
}

/* ---------- Attendance credit rules ---------- */
.att-line-name em {
  font-style: normal;
  color: var(--soft);
  font-size: .62rem;
  font-weight: 800;
}

.att-rule {
  margin-top: 2px;
  color: var(--soft);
  font-size: .68rem;
  line-height: 1.4;
}

.gmail-note {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 209, 102, .12);
  color: var(--warn);
  font-size: .74rem;
  line-height: 1.4;
}
.gmail-note strong { color: var(--text); }

/* ---------- Friends ---------- */
.friend-editor { margin-bottom: 12px; }
.friend-actions { display: flex; gap: 8px; }
.friend-actions button { flex: 1; border: 0; border-radius: 14px; min-height: 44px; font-weight: 900; color: #071013; background: var(--lime); }
.friend-actions .ghost-btn { color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }

.friend-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.friend-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  color: #071013;
  background: var(--cyan);
  font-weight: 950;
}

.friend-body { flex: 1; min-width: 0; }

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

.friend-top strong { font-size: .98rem; letter-spacing: -.02em; }
.friend-body p { color: var(--muted); font-size: .82rem; margin-top: 2px; }

.friend-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.mini-chip {
  border-left: 3px solid var(--subject, var(--cyan));
  border-radius: 6px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, .06);
  font-size: .68rem;
  font-weight: 800;
}

.friend-acts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.friend-acts button {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: .9rem;
}

/* meal timing on menu cards */
.meal-time {
  font-size: .72rem;
  font-weight: 800;
  color: var(--warn);
  margin-left: 6px;
}

.meal-card.is-served { opacity: .5; }
.meal-card.is-served .pill { background: rgba(255,255,255,.08); color: var(--soft); }

/* even spacing between insight cards (fixes touching tiles / This week) */
#insights { display: grid; gap: 12px; }
#insights .insight-grid,
#insights .insight-block { margin-bottom: 0; }

/* ---------- Calendar day agenda: classes + menu ---------- */
.cal-section-label {
  margin: 16px 2px 8px;
  color: var(--soft);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cal-menu {
  display: grid;
  gap: 8px;
}

.cal-meal {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.cal-meal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.cal-meal-top strong { font-size: .92rem; letter-spacing: -.02em; }
.cal-meal-top span { color: var(--warn); font-size: .72rem; font-weight: 800; }
.cal-meal p { margin-top: 4px; color: var(--muted); font-size: .84rem; line-height: 1.45; }

/* ---------- Study group pill + members ---------- */
.grp-pill {
  border: 1px solid rgba(185, 255, 102, .4);
  color: var(--lime);
  background: rgba(185, 255, 102, .1);
  cursor: pointer;
}

.grp-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-weight: 700;
  font-size: .9rem;
}

.grp-member em {
  font-style: normal;
  color: var(--lime);
  font-size: .72rem;
  font-weight: 850;
}

.grp-member.you { color: var(--lime); }

.grp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.grp-member.you .grp-dot { background: var(--lime); }

/* ---------- Analytics segmented toggle ---------- */
.seg-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}

.seg-btn {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  font-size: .88rem;
}

.seg-btn.active {
  color: #071013;
  background: var(--lime);
}

/* ---------- Today's menu slider ---------- */
.meal-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.meal-tabs::-webkit-scrollbar { display: none; }

.meal-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  font-weight: 850;
  font-size: .8rem;
}

.meal-tab.active {
  color: #071013;
  background: var(--lime);
  border-color: transparent;
}

.meal-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -14px;
  padding: 0 14px 4px;
}
.meal-slider::-webkit-scrollbar { display: none; }

.meal-slider > .meal-card {
  flex: 0 0 88%;
  scroll-snap-align: center;
}
