/* =====================================================================
   SKYRO OBEDY — WEB
   Ported from the mobile app's design system, relaid out for desktop.
   Committed light theme, matching the product at skyro.ai.
   Glass is a WEB APPROXIMATION of the liquid-glass material
   (backdrop-filter + layered borders + inner highlight). Not an Apple API.
   It is spent only on surfaces that float over content: topbar, sticky
   action bars, composer, icon discs, login field.
   ===================================================================== */

:root {
  --violet: #6c29f2;
  --violet-700: #5a1ed6;
  --violet-300: #a37bf8;
  --violet-50: #f2edfd;

  --white: #ffffff;
  --paper: #faf9fe;
  --ink: #17123a;
  --ink-2: #6e6a87;
  --ink-3: #9a97ad;
  --hair: #ece9f6;

  /* category tints, lifted from the product's Overview cards */
  --t-blue: #edf2fd;
  --c-blue: #2563eb;
  --t-peach: #fef0e8;
  --c-peach: #e2661b;
  --t-green: #ecf6ee;
  --c-green: #1b9a4b;
  --t-lilac: #f2edfd;
  --c-lilac: #7c3aed;
  --t-cream: #f7f5e6;
  --c-cream: #8e8117;
  --t-rose: #fdecef;
  --c-rose: #e03a5a;

  --r-card: 22px;
  --r-tile: 16px;
  --r-btn: 14px;

  --rail: 88px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* Material Symbols, thin stroke — same weight as the mobile app */
.ms {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  display: inline-block;
  direction: ltr;
  user-select: none;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
}

/* ---------- liquid-glass approximation (web, not Apple's material) ---------- */
.glass {
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.58)
  );
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),
    0 10px 34px rgba(56, 26, 118, 0.1);
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .afield {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* soft pastel ground: this is what the glass refracts */
.mesh {
  position: fixed;
  inset: 0 0 0 var(--rail);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      900px 640px at 88% -8%,
      rgba(140, 92, 246, 0.16),
      transparent 62%
    ),
    radial-gradient(
      760px 600px at -4% 16%,
      rgba(255, 150, 90, 0.1),
      transparent 60%
    ),
    radial-gradient(
      820px 660px at 102% 78%,
      rgba(60, 200, 130, 0.09),
      transparent 62%
    ),
    radial-gradient(
      760px 620px at 10% 106%,
      rgba(108, 41, 242, 0.11),
      transparent 60%
    );
}

/* ================= page shell: mirrors the Skyro web app ================= */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  background: var(--violet);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 20px;
  z-index: 40;
}

.logo {
  width: 56px;
  height: 40px;
  display: block;
  color: #fff;
  margin-bottom: 38px;
  flex: none;
}

.railnav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.rbtn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: var(--r-tile);
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  transition:
    background 0.16s ease,
    color 0.16s ease;
  position: relative;
}

.rbtn .ms {
  font-size: 24px;
}

.rbtn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.rbtn[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.railfoot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.railbadge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: var(--violet);
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.main {
  margin-left: var(--rail);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ---------- topbar: floats over the scrolling body, so it gets glass ------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.beta {
  background: var(--violet-50);
  color: var(--violet);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 700;
}

.who {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 16px;
  margin-left: auto;
}

.who .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ddd9e8;
  display: grid;
  place-items: center;
  color: #8d889f;
}

.who .av .ms {
  font-size: 24px;
}

.who .ms.cv {
  font-size: 20px;
  color: var(--ink);
}

.page {
  padding: 30px 40px 72px;
  max-width: 1520px;
}

@media (max-width: 860px) {
  :root {
    --rail: 64px;
  }
  .page,
  .topbar {
    padding-left: 20px;
    padding-right: 20px;
  }
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.08;
  margin: 0 0 14px;
  max-width: 20ch;
  text-wrap: balance;
}

.lede {
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.7;
}

.sechead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 46px 0 22px;
}

.sechead h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.pillcount {
  background: var(--violet-50);
  color: var(--violet);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 700;
}

.sechead p {
  margin: 0 0 0 auto;
  color: var(--ink-3);
  font-size: 13.5px;
  max-width: 44ch;
  text-align: right;
  line-height: 1.55;
}

.gl {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-3);
  padding: 4px 4px 10px;
}

/* ---------- buttons ---------- */
.btn {
  border: 0;
  border-radius: var(--r-btn);
  padding: 14px 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 20px rgba(108, 41, 242, 0.3);
  transition:
    background 0.16s ease,
    transform 0.12s ease;
}

.btn .ms {
  font-size: 18px;
}

.btn:hover {
  background: var(--violet-700);
}

.btn:active {
  transform: scale(0.987);
}

.btn[disabled] {
  background: #e4e0f0;
  color: var(--ink-3);
  box-shadow: none;
  cursor: not-allowed;
}

.btn .qty {
  font-weight: 600;
  opacity: 0.82;
  font-size: 12px;
}

.btn.soft {
  background: #fff;
  color: var(--violet);
  box-shadow:
    inset 0 0 0 1px var(--hair),
    0 4px 12px rgba(56, 26, 118, 0.07);
}

.btn.soft:hover {
  background: var(--violet-50);
}

.btn.block {
  width: 100%;
}

.iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff;
  transition: background 0.16s ease;
}

.iconbtn .ms {
  font-size: 20px;
}

.iconbtn:hover {
  background: #fff;
}

/* ---------- category card, the product's Overview anatomy ---------- */
.mcard {
  width: 100%;
  text-align: left;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-card);
  padding: 22px 24px 20px;
  position: relative;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
  transition:
    box-shadow 0.18s ease,
    transform 0.14s ease;
  display: flex;
  flex-direction: column;
}

.mcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(56, 26, 118, 0.12);
}

.mcard .cat {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.mcard .disc {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.72)
  );
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 5px 13px rgba(56, 26, 118, 0.13);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.mcard .disc .ms {
  font-size: 24px;
}

.mcard .mn {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 32px 0 6px;
  padding-right: 44px;
}

.mcard .md {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  flex: 1;
}

.mcard .rule {
  display: block;
  height: 1px;
  background: rgba(23, 18, 58, 0.09);
  margin: 18px 0 14px;
}

.mcard .mf {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mcard .no {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  flex: none;
}

.mcard[aria-pressed="true"] {
  box-shadow:
    inset 0 0 0 2px var(--violet),
    0 12px 30px rgba(108, 41, 242, 0.22);
}

.mcard[aria-pressed="true"] .disc {
  background: var(--violet);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.mcard[aria-pressed="true"] .no {
  color: var(--violet);
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(23, 18, 58, 0.06);
}

.tag.veg {
  background: rgba(27, 154, 75, 0.12);
  color: var(--c-green);
  box-shadow: none;
}

/* tint sets */
.t-blue {
  background: var(--t-blue);
}
.t-blue .cat {
  color: var(--c-blue);
}
.t-peach {
  background: var(--t-peach);
}
.t-peach .cat {
  color: var(--c-peach);
}
.t-green {
  background: var(--t-green);
}
.t-green .cat {
  color: var(--c-green);
}
.t-lilac {
  background: var(--t-lilac);
}
.t-lilac .cat {
  color: var(--c-lilac);
}
.t-cream {
  background: var(--t-cream);
}
.t-cream .cat {
  color: var(--c-cream);
}
.t-rose {
  background: var(--t-rose);
}
.t-rose .cat {
  color: var(--c-rose);
}

/* ---------- countdown ---------- */
.cdcard {
  border-radius: var(--r-card);
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
}

.cdtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cdlab {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
}

.cdval {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}

.cdsub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 600;
}

.track {
  height: 7px;
  border-radius: 999px;
  background: var(--hair);
  margin-top: 14px;
  overflow: hidden;
}

.track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--violet);
}

/* ---------- plain white panel ---------- */
.plain {
  border-radius: var(--r-card);
  background: #fff;
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
}

.plain.dash {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1.5px var(--hair);
}

.ph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.ph .pd {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
}

/* ---------- status chips, the Beta pill pattern ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.45;
}

.chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: block;
  background: currentColor;
}

.chip.ok {
  background: rgba(27, 154, 75, 0.12);
  color: var(--c-green);
}
.chip.warn {
  background: var(--t-peach);
  color: var(--c-peach);
}
.chip.bad {
  background: var(--t-rose);
  color: var(--c-rose);
}
.chip.open {
  background: #f1eff8;
  color: var(--ink-3);
}
.chip.imp {
  background: var(--violet-50);
  color: var(--violet);
}

/* ---------- week day tiles ---------- */
.days {
  display: flex;
  gap: 10px;
}

.day {
  flex: 1;
  border: 0;
  border-radius: var(--r-tile);
  background: #fff;
  cursor: pointer;
  padding: 16px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.06);
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.day .dw {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.day .dd {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.day .dt {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--hair);
  margin-top: 4px;
}

.day .dt.done {
  background: var(--c-green);
}

.day:hover {
  box-shadow: 0 6px 16px rgba(56, 26, 118, 0.1);
}

.day[aria-pressed="true"] {
  background: var(--violet);
  box-shadow: 0 10px 24px rgba(108, 41, 242, 0.3);
}

.day[aria-pressed="true"] .dw {
  color: rgba(255, 255, 255, 0.8);
}
.day[aria-pressed="true"] .dd {
  color: #fff;
}
.day[aria-pressed="true"] .dt {
  background: rgba(255, 255, 255, 0.55);
}
.day[aria-pressed="true"] .dt.done {
  background: #fff;
}

.dmeal {
  display: flex;
  gap: 14px;
  align-items: center;
}

.dmeal .disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff;
}

.dmeal .disc .ms {
  font-size: 24px;
}

.dmeal .dn {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.dmeal .dsub {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 3px;
}

.pempty {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.pempty b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- orders ---------- */
.orow {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--r-card);
  background: #fff;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
  transition: box-shadow 0.16s ease;
}

.orow:hover {
  box-shadow: 0 8px 20px rgba(56, 26, 118, 0.09);
}

/* These live inside non-flex parents and are rendered as spans (they sit
   inside <button>), so they need explicit blockifying. */
.ow,
.on,
.om,
.os,
.dxa,
.dxb {
  display: block;
}

.od {
  width: 50px;
  flex: none;
  text-align: center;
  border-radius: 12px;
  background: var(--paper);
  padding: 7px 0;
}

.od .ow {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-3);
}

.od .on {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.oi {
  flex: 1;
  min-width: 0;
}

.om {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}

.os {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 3px;
}

/* ---------- announcements ---------- */
.post {
  border-radius: var(--r-card);
  background: #fff;
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
  position: relative;
}

.post.imp {
  background: var(--t-lilac);
  box-shadow: none;
  padding-left: 30px;
}

.post.imp::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 999px;
  background: var(--violet);
}

.pt {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 12px 0 8px;
}

.post:not(.imp) .pt {
  margin-top: 0;
}

.pb {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 12px;
  max-width: 68ch;
}

.pm {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}

/* ---------- chat ---------- */
.thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm {
  align-self: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-3);
  padding: 8px 0;
}

.msg {
  max-width: 62%;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 500;
}

.msg.them {
  align-self: flex-start;
  background: #fff;
  border-radius: 18px 18px 18px 6px;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.06);
}

.msg.me {
  align-self: flex-end;
  background: var(--violet);
  color: #fff;
  border-radius: 18px 18px 6px 18px;
  box-shadow: 0 6px 16px rgba(108, 41, 242, 0.26);
}

.mt {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 5px;
  font-weight: 600;
}

.chatinput {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 13px 20px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #fff;
}

.chatinput::placeholder {
  color: var(--ink-3);
}

.chatinput:focus {
  outline: none;
  border-color: var(--violet-300);
}

.send {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(108, 41, 242, 0.32);
  transition: background 0.16s ease;
}

.send .ms {
  font-size: 20px;
}

.send:hover {
  background: var(--violet-700);
}

/* ---------- dashboard ---------- */
.hero {
  border-radius: var(--r-card);
  background: var(--violet);
  color: #fff;
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(108, 41, 242, 0.28);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px 260px at 88% -10%,
    rgba(255, 255, 255, 0.3),
    transparent 64%
  );
}

.hero .hl {
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.84);
  position: relative;
}

.hero .hn {
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  margin-top: 6px;
  position: relative;
  font-variant-numeric: tabular-nums;
}

.hero .hd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero .hd .ms {
  font-size: 15px;
}

.prog {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
}

.pn {
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.pk {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: var(--hair);
  overflow: hidden;
}

.pf {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--violet);
}

.prow.q .pf {
  background: var(--violet-300);
}

.qbtn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  border: 0;
  border-radius: var(--r-card);
  background: #fff;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
  transition: box-shadow 0.16s ease;
}

.qbtn .disc {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--violet-50);
  color: var(--violet);
}

.qbtn .disc .ms {
  font-size: 20px;
}

.qbtn .ar {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 20px;
}

.qbtn:hover {
  box-shadow: 0 8px 20px rgba(56, 26, 118, 0.1);
}

/* ---------- manage menu ---------- */
.datecard {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--r-card);
  background: #fff;
  padding: 14px 16px 14px 20px;
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
}

.datecard .dx {
  flex: 1;
}

.datecard .dxa {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.datecard .dxb {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 2px;
}

.sq {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.sq .ms {
  font-size: 19px;
}

.sq:hover {
  background: var(--violet-50);
  color: var(--violet);
}

.erow {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: var(--r-card);
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
}

.erow .en {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
}

.erow .ei {
  flex: 1;
  min-width: 0;
}

.erow .et {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.erow .ed {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: 3px;
  font-weight: 500;
}

.erow .eg {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.erow .ea {
  display: flex;
  gap: 4px;
  flex: none;
}

.mini {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-3);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.mini .ms {
  font-size: 16px;
}

.mini:hover {
  background: var(--violet-50);
  color: var(--violet);
}

.mini.del:hover {
  background: var(--t-rose);
  color: var(--c-rose);
}

.addrow {
  width: 100%;
  border: 0;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1.5px var(--hair);
  cursor: pointer;
  padding: 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.addrow .ms {
  font-size: 18px;
}

.addrow:hover {
  color: var(--violet);
  box-shadow: inset 0 0 0 1.5px var(--violet-300);
}

/* ---------- form fields ---------- */
.finput {
  width: 100%;
  border: 0;
  border-radius: var(--r-btn);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hair);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.finput:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--violet);
}

textarea.finput {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
  font-weight: 500;
}

.flabel {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 8px;
  display: block;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  border: 0;
  border-radius: var(--r-card);
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
  color: var(--ink);
}

.toggle[aria-pressed="true"] {
  background: var(--t-lilac);
  box-shadow: none;
}

.toggle .tl {
  flex: 1;
}

.toggle .tt {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.toggle .ts {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 3px;
}

.sw {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #e2deef;
  flex: none;
  position: relative;
  transition: background 0.18s ease;
}

.sw::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(56, 26, 118, 0.25);
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.toggle[aria-pressed="true"] .sw {
  background: var(--violet);
}

.toggle[aria-pressed="true"] .sw::after {
  transform: translateX(20px);
}

/* ---------- inbox ---------- */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 0 0 1px var(--hair),
    inset 0 1px 0 #fff;
}

.search .ms {
  font-size: 20px;
  color: var(--ink-3);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.search input::placeholder {
  color: var(--ink-3);
}

.search input:focus {
  outline: none;
}

.conv {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--r-card);
  background: #fff;
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
  transition: box-shadow 0.16s ease;
  width: 100%;
  text-align: left;
  border: 0;
  font-family: inherit;
  color: var(--ink);
}

.conv:hover {
  box-shadow: 0 8px 20px rgba(56, 26, 118, 0.1);
}

.conv .av {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: var(--violet-50);
  color: var(--violet);
}

.conv.un .av {
  background: var(--violet);
  color: #fff;
}

.conv.sel {
  box-shadow: inset 0 0 0 2px var(--violet);
}

.ci {
  flex: 1;
  min-width: 0;
}

.cn {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.conv.un .cn {
  font-weight: 800;
}

.cn .ct {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 700;
  flex: none;
}

.cp {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.conv.un .cp {
  color: var(--ink-2);
}

.ub {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  flex: none;
}

.empty {
  padding: 46px 16px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}

.empty .ms {
  font-size: 34px;
  display: block;
  margin-bottom: 12px;
  color: #d9d4e8;
}

/* ---------- login, Apple sign-in restraint ----------
   Centred column, light-weight display type, one field carrying its own
   submit. No card, no panel: the field floats directly on the ground. */
.alogin {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 0;
}

.alogin::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      760px 640px at 86% 2%,
      rgba(108, 41, 242, 0.17),
      transparent 66%
    ),
    radial-gradient(
      700px 640px at 6% 98%,
      rgba(255, 148, 88, 0.13),
      transparent 66%
    );
}

.awrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 26px;
  text-align: center;
}

.acol {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.amark {
  width: 84px;
  height: 60px;
  display: block;
  color: var(--violet);
}

.atitle {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 40px 0 34px;
  color: var(--ink);
}

.afield {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 16px;
  padding: 11px 11px 11px 18px;
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.88),
    rgba(255, 255, 255, 0.64)
  );
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(23, 18, 58, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 6px 20px rgba(56, 26, 118, 0.07);
  transition: box-shadow 0.16s ease;
}

.afield:focus-within {
  box-shadow:
    inset 0 0 0 1.5px var(--violet),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 22px rgba(108, 41, 242, 0.16);
}

.afield .fl {
  flex: 1;
  min-width: 0;
}

.afield .fk {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  line-height: 1.4;
}

.afield input {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  margin-top: 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.afield input:focus {
  outline: none;
}

.ago {
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(108, 41, 242, 0.34);
  transition: background 0.16s ease;
}

.ago .ms {
  font-size: 20px;
}

.ago:hover {
  background: var(--violet-700);
}

.acheck {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.acheck .bx {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  flex: none;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(23, 18, 58, 0.2);
  color: transparent;
  background: transparent;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.acheck .bx .ms {
  font-size: 15px;
  font-variation-settings: "wght" 500;
}

.acheck[aria-pressed="true"] .bx {
  background: var(--violet);
  box-shadow: none;
  color: #fff;
}

.ahr {
  width: 100%;
  height: 1px;
  background: rgba(23, 18, 58, 0.09);
  margin: 32px 0 20px;
}

.alink {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
}

.alink:hover {
  color: var(--violet-700);
}

.afine {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.65;
  margin: 12px 0 0;
  font-weight: 500;
  max-width: 34ch;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- credit: balances, top-ups, ledger ----------
   Money is always tabular so columns of it line up. The balance chip
   carries state the same way order status does: green covers lunches,
   peach is nearly out, rose is empty. */
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.balbig {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.balsub {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 8px;
}

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

.qamt {
  border: 0;
  border-radius: var(--r-btn);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hair);
  padding: 12px 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.qamt:hover {
  background: var(--violet-50);
  color: var(--violet);
  box-shadow: inset 0 0 0 1.5px var(--violet-300);
}

.qamt[aria-pressed="true"] {
  background: var(--violet);
  color: #fff;
  box-shadow: none;
}

/* a student row in the admin list */
.urow {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--r-card);
  background: #fff;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(56, 26, 118, 0.05);
  transition: box-shadow 0.16s ease;
  width: 100%;
  text-align: left;
  border: 0;
  font-family: inherit;
  color: var(--ink);
}

.urow:hover {
  box-shadow: 0 8px 20px rgba(56, 26, 118, 0.1);
}

.urow.sel {
  box-shadow: inset 0 0 0 2px var(--violet);
}

.urow.off {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1.5px var(--hair);
}

.urow .av {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: var(--violet-50);
  color: var(--violet);
}

.urow.off .av {
  background: var(--paper);
  color: var(--ink-3);
}

.ui {
  flex: 1;
  min-width: 0;
}

.un2 {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.ue {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utr {
  flex: none;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 800;
}

.ubal {
  flex: none;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 84px;
  text-align: right;
}

/* a ledger line: label left, signed amount right */
.led {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
}

.led:last-child {
  border-bottom: 0;
}

.led .ldisc {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.led .ldisc .ms {
  font-size: 17px;
}

.led.up .ldisc {
  background: rgba(27, 154, 75, 0.12);
  color: var(--c-green);
}

.led.down .ldisc {
  background: var(--paper);
  color: var(--ink-3);
}

.led .li {
  flex: 1;
  min-width: 0;
}

.led .ll {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.led .lt {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 2px;
}

.led .la {
  flex: none;
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.led.up .la {
  color: var(--c-green);
}

.led.down .la {
  color: var(--ink-2);
}

.rule-line {
  height: 1px;
  background: rgba(23, 18, 58, 0.09);
  margin: 16px 0 12px;
}
