/* ==========================================================================
   Stayly – interactive prototype
   Showcase stage + full app design system
   ========================================================================== */



@font-face {
  font-family: "StaylyInter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF
}

@font-face {
  font-family: "StaylyInter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  height: 100%;
  background: transparent;
  overflow: hidden
}

body {
  color: #1D1B24;
  font-family: "StaylyInter", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent
}

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

img {
  display: block;
  max-width: 100%
}

svg {
  display: block
}

/* ------------------------------------------------------------------ section: phone only, scales to fit its frame */
#stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  padding: 0 0 10px
}

.device-wrap {
  position: relative;
  display: grid;
  place-items: center
}

.device {
  position: relative;
  width: 458px;
  height: 960px;
  transform-origin: center center;
  transform: scale(var(--s, 1));
  margin: calc((var(--s, 1) - 1) * 480px) calc((var(--s, 1) - 1) * 229px)
}

.device-bezel {
  position: absolute;
  inset: 0;
  border-radius: 72px;
  padding: 13px;
  background: linear-gradient(145deg, #5B5662, #2A272F 18%, #1A181D 50%, #2B2830 82%, #57525D);
  box-shadow: 0 0 0 1.5px #0A090C, 0 16px 30px -14px rgba(20, 10, 45, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .08)
}

.device-bezel::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 67px;
  background: #050406
}

.device-screen {
  position: relative;
  width: 432px;
  height: 934px;
  border-radius: 60px;
  overflow: hidden;
  background: #000;
  isolation: isolate
}

.device-screen #app {
  position: absolute;
  inset: 1px;
  border-radius: 59px;
  overflow: hidden
}

.island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 124px;
  height: 36px;
  margin-left: -62px;
  border-radius: 20px;
  background: #000;
  z-index: 100;
  pointer-events: none
}

.island::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3550, #0a0c14 60%)
}

.device-btn {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2E2B33, #55505C)
}

.device-btn.b1 {
  left: -3px;
  top: 178px;
  height: 34px
}

.device-btn.b2 {
  left: -3px;
  top: 240px;
  height: 64px
}

.device-btn.b3 {
  left: -3px;
  top: 318px;
  height: 64px
}

.device-btn.b4 {
  right: -3px;
  top: 270px;
  height: 104px;
  background: linear-gradient(270deg, #2E2B33, #55505C)
}

/* control bar under the phone */
.ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #17131F;
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(20, 10, 45, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
  flex: none;
  max-width: calc(100vw - 24px)
}

.seg2 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 999px
}

.seg2 button {
  position: relative;
  z-index: 1;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: rgba(255, 255, 255, .62);
  transition: color .3s
}

.seg2 button:hover {
  color: #fff
}

.seg2 button.on {
  color: #fff
}

.seg2-pill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7C4DF3, #5A2CCF);
  box-shadow: 0 6px 14px -6px rgba(124, 77, 243, .8);
  opacity: 0;
  transform: scale(.9);
  transition: transform .5s cubic-bezier(.34, 1.36, .5, 1), opacity .25s
}

.seg2[data-on="resident"] .seg2-pill {
  opacity: 1;
  transform: translateX(0)
}

.seg2[data-on="manager"] .seg2-pill {
  opacity: 1;
  transform: translateX(100%)
}

.ctrl-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .8);
  transition: background .2s, color .2s, transform .2s
}

.ctrl-ic:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff
}

.ctrl-ic:active {
  transform: scale(.9)
}

.ctrl-ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round
}

.ctrl-ic.spin svg {
  animation: spin .6s ease
}

.seg2 button:focus-visible,
.ctrl-ic:focus-visible {
  outline: 2px solid #B48CFF;
  outline-offset: 2px
}

.ctrl .sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, .12);
  margin: 0 2px
}

body.mobile .ctrl {
  display: none
}

/* screen only, no phone frame (?device=0) */
body.bare .device {
  width: 432px;
  height: 934px;
  margin: calc((var(--s, 1) - 1) * 467px) calc((var(--s, 1) - 1) * 216px)
}

body.bare .device-bezel {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 46px
}

body.bare .device-bezel::before,
body.bare .device-btn,
body.bare .island {
  display: none
}

body.bare .device-screen {
  border-radius: 46px;
  background: none;
  box-shadow: 0 16px 30px -14px rgba(30, 15, 70, .4), 0 0 0 1px rgba(30, 15, 70, .07)
}

body.bare .device-screen #app {
  inset: 0;
  border-radius: 46px
}

/* full-screen app (?mobile=1) */
body.mobile #stage {
  display: block
}

body.mobile .island,
body.mobile .device-btn {
  display: none
}

body.mobile .device-wrap {
  position: fixed;
  inset: 0;
  display: block
}

body.mobile .device {
  width: 100%;
  height: 100%;
  transform: none;
  margin: 0
}

body.mobile .device-bezel {
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none
}

body.mobile .device-bezel::before {
  display: none
}

body.mobile .device-screen {
  width: 100%;
  height: 100%;
  border-radius: 0
}

body.mobile .device-screen #app {
  inset: 0;
  border-radius: 0
}

/* ==========================================================================
   APP
   ========================================================================== */
.app {
  --bg: #F6F4FB;
  --surface: #fff;
  --surface-2: #F1EEF8;
  --surface-3: #E9E5F2;
  --line: #EEEBF4;
  --line-2: #E3DEED;
  --text: #1D1B24;
  --text-2: #6F6B7C;
  --text-3: #A29EAE;
  --brand: #6A35D6;
  --brand-2: #7B4AE2;
  --brand-ink: #5B2DC9;
  --brand-soft: #EFE8FF;
  --brand-soft-2: #E2D6FF;
  --grad: linear-gradient(90deg, #7C4DF3 0%, #5A2CCF 100%);
  --ok: #1E9E62;
  --ok-soft: #E5F6EC;
  --warn: #EE7A2C;
  --warn-soft: #FFF0E4;
  --info: #16A2B8;
  --info-soft: #E2F6F9;
  --danger: #E5484D;
  --danger-soft: #FDEBEC;
  --pend: #EA8A1A;
  --pend-soft: #FFF3E2;
  --shadow: 0 1px 2px rgba(35, 20, 70, .04), 0 3px 14px rgba(35, 20, 70, .035);
  --shadow-lg: 0 20px 50px -18px rgba(40, 20, 90, .35);
  --scrim: rgba(240, 236, 248, .38);
  --sheet: #F6F4FB;
  --nav: rgba(247, 245, 252, .82);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: "StaylyInter", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -.006em;
  user-select: none;
  -webkit-user-select: none;
  transition: background .4s
}

.app.dark {
  --bg: #0F0D15;
  --surface: #1A1722;
  --surface-2: #221E2C;
  --surface-3: #2A2536;
  --line: #26222F;
  --line-2: #332D3F;
  --text: #F3F0FA;
  --text-2: #ABA5BC;
  --text-3: #726C83;
  --brand-soft: #2A2142;
  --brand-soft-2: #3A2C5E;
  --brand-ink: #C3A8FF;
  --ok-soft: #163026;
  --warn-soft: #3A2516;
  --info-soft: #13303A;
  --danger-soft: #3A1B1F;
  --pend-soft: #3A2A14;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --scrim: rgba(10, 8, 16, .45);
  --sheet: #13111A;
  --nav: rgba(26, 23, 34, .82)
}

.app input,
.app textarea {
  user-select: text;
  -webkit-user-select: text
}

.app ::selection {
  background: #D9C8FF
}

.screen {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
  contain: layout paint
}

.screen.pushed {
  z-index: 45
}

.screen.dim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 20, .08);
  pointer-events: none
}

.scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 58px 16px 130px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch
}

.scroll::-webkit-scrollbar {
  display: none
}

.screen.no-tab .scroll {
  padding-bottom: 40px
}

.screen.has-nav .scroll {
  padding-top: 112px
}

/* status bar & home indicator */
.statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 34px 0 46px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  pointer-events: none;
  color: #000;
  transition: color .3s
}

.app.dark .statusbar,
.app.sb-light .statusbar {
  color: #fff
}

.statusbar .sb-r {
  display: flex;
  align-items: center;
  gap: 6px
}

.statusbar svg {
  fill: currentColor
}

.home-ind {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 142px;
  height: 5px;
  margin-left: -71px;
  border-radius: 3px;
  background: #111;
  z-index: 95;
  pointer-events: none;
  transition: background .3s
}

.app.dark .home-ind,
.app.sb-light .home-ind {
  background: #fff
}

body.mobile .statusbar,
body.mobile .home-ind {
  display: none
}

body.mobile .scroll {
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px)
}

body.mobile .screen.has-nav .scroll {
  padding-top: calc(env(safe-area-inset-top, 0px) + 74px)
}

body.mobile .navbar {
  height: calc(env(safe-area-inset-top, 0px) + 62px);
  padding-top: env(safe-area-inset-top, 0px) !important
}

/* navbar on pushed screens */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 106px;
  padding-top: 44px !important;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  transition: background .25s, box-shadow .25s
}

.navbar.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line)
}

.navbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.015em
}

.nb-back {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: background .2s
}

.nb-back:active {
  background: var(--surface-2)
}

.nb-right {
  position: absolute;
  right: 16px;
  bottom: 31px;
  transform: translateY(50%)
}

/* icons */
.i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none
}

.i.sm {
  width: 16px;
  height: 16px
}

.i.xs {
  width: 13px;
  height: 13px;
  stroke-width: 2
}

.i.lg {
  width: 24px;
  height: 24px
}

/* typography */
.h-greet {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 0
}

.h-greet b {
  font-weight: 600
}

.sub {
  font-size: 13px;
  color: var(--text-2)
}

.muted {
  color: var(--text-3)
}

.sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 10px
}

.sec h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.01em
}

.sec .link {
  font-size: 14px;
  color: var(--text-3)
}

.sec .link:active {
  color: var(--brand)
}

/* cards & rows */
.card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden
}

.card+.card {
  margin-top: 10px
}

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  min-height: 56px;
  width: 100%;
  text-align: left;
  transition: background .15s
}

button.row:active,
.row.tap:active {
  background: var(--surface-2)
}

.card>.row+.row::before,
.card>.rowsep+.rowsep::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: var(--line)
}

.row .grow {
  flex: 1;
  min-width: 0
}

.row .t {
  font-size: 15px;
  font-weight: 450;
  color: var(--text);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.row .s {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.row .s .dotsep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-2);
  margin: 0 7px;
  vertical-align: middle
}

.chev {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-2);
  flex: none
}

.chev .i {
  width: 15px;
  height: 15px
}

.dotsep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #D3CEDD;
  margin: 0 8px;
  vertical-align: middle
}

/* pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 0 10px 0 11px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 450;
  white-space: nowrap;
  flex: none
}

.pill .i {
  width: 13px;
  height: 13px;
  stroke-width: 2
}

.pill.sm {
  height: 22px;
  font-size: 12px;
  padding: 0 8px
}

.pill.warn {
  background: var(--warn-soft);
  color: var(--warn)
}

.pill.ok {
  background: var(--ok-soft);
  color: var(--ok)
}

.pill.brand {
  background: var(--brand-soft);
  color: var(--brand)
}

.pill.info {
  background: var(--info-soft);
  color: var(--info)
}

.pill.danger {
  background: var(--danger-soft);
  color: var(--danger)
}

.pill.pend {
  background: var(--pend-soft);
  color: var(--pend)
}

.pill.grey {
  background: var(--surface-3);
  color: var(--text-2)
}

.pill.dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 3px
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500
}

.tag.food {
  background: #FFF3DD;
  color: #E6961C
}

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

.tag.events {
  background: var(--brand-soft);
  color: #8A55F0
}

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

.tag.maint {
  background: #FFE9E6;
  color: #F06A4A
}

.tag.pay {
  background: #FFE6F2;
  color: #E14C98
}

.app.dark .tag.food {
  background: #3A2E14
}

.app.dark .tag.maint {
  background: #3A1E1A
}

.app.dark .tag.pay {
  background: #3A1A2C
}

/* chips / segmented */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 2px 16px
}

.chips::-webkit-scrollbar {
  display: none
}

.chip {
  position: relative;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-3);
  font-size: 13.5px;
  white-space: nowrap;
  flex: none;
  transition: color .25s, background .25s, border-color .25s, transform .2s
}

.chip.on {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(106, 53, 214, .6)
}

.chip:active {
  transform: scale(.95)
}

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px
}

.seg .chip {
  width: 100%
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  width: 100%;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: transform .18s var(--ease), filter .2s, opacity .2s, box-shadow .2s;
  overflow: hidden;
  white-space: nowrap
}

.btn:active {
  transform: scale(.975)
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(98, 48, 210, .75), inset 0 1px 0 rgba(255, 255, 255, .18)
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand)
}

.app.dark .btn-soft {
  color: #CDB6FF
}

.btn-danger {
  background: linear-gradient(90deg, #F3585C, #D83A40);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(216, 58, 64, .7)
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow)
}

.btn[disabled] {
  opacity: .45;
  pointer-events: none
}

.btn.loading {
  pointer-events: none
}

.btn.loading .lbl {
  opacity: 0
}

.btn .lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.btn .spin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: spin .8s linear infinite
}

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

.btn-row .btn {
  flex: 1
}

.btn-sm {
  height: 36px;
  border-radius: 18px;
  font-size: 14px;
  padding: 0 14px;
  width: auto
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  animation: ripple .6s var(--ease) forwards;
  pointer-events: none
}

@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--text-2);
  position: relative;
  transition: transform .2s
}

.icon-btn:active {
  transform: scale(.92)
}

.badge-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F0455A;
  box-shadow: 0 0 0 2px var(--surface)
}

/* avatars */
.av {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--surface-3)
}

.av-28 {
  width: 28px;
  height: 28px
}

.av-34 {
  width: 34px;
  height: 34px
}

.av-38 {
  width: 38px;
  height: 38px
}

.av-40 {
  width: 40px;
  height: 40px
}

.av-44 {
  width: 44px;
  height: 44px
}

/* icon tiles */
.tile {
  display: grid;
  place-items: center;
  border-radius: 13px;
  flex: none;
  color: #fff;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 4px rgba(0, 0, 0, .08)
}

.tile .i {
  stroke-width: 2.2
}

.tile-50 {
  width: 50px;
  height: 50px;
  border-radius: 14px
}

.tile-50 .i {
  width: 26px;
  height: 26px
}

.tile-44 {
  width: 44px;
  height: 44px
}

.tile-44 .i {
  width: 23px;
  height: 23px
}

.tile-36 {
  width: 36px;
  height: 36px;
  border-radius: 10px
}

.tile-36 .i {
  width: 19px;
  height: 19px
}

.tile-32 {
  width: 32px;
  height: 32px;
  border-radius: 9px
}

.tile-32 .i {
  width: 17px;
  height: 17px
}

.tile-28 {
  width: 28px;
  height: 28px;
  border-radius: 8px
}

.tile-28 .i {
  width: 15px;
  height: 15px
}

.t-orange {
  background: linear-gradient(150deg, #FF9A72, #F25A3F)
}

.t-blue {
  background: linear-gradient(150deg, #8DB0FF, #5373F0)
}

.t-magenta {
  background: linear-gradient(150deg, #EE7BFF, #B83FE6)
}

.t-indigo {
  background: linear-gradient(150deg, #8F9DFF, #5966EE)
}

.t-pink {
  background: linear-gradient(150deg, #F28CF7, #C755E8)
}

.t-green {
  background: linear-gradient(150deg, #5FE08F, #20B25A)
}

.t-purple {
  background: linear-gradient(150deg, #B392FF, #7F57F3)
}

.t-yellow {
  background: linear-gradient(150deg, #FFD866, #F6A821)
}

.t-cyan {
  background: linear-gradient(150deg, #6FD5F7, #2C9EE6)
}

.t-rose {
  background: linear-gradient(150deg, #FF8BB8, #F04B84)
}

.t-red {
  background: linear-gradient(150deg, #FF7B7B, #E5484D)
}

.t-grey {
  background: var(--surface-3);
  color: var(--text-2);
  box-shadow: none
}

.t-soft {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: none
}

.t-soft .i {
  stroke-width: 1.9
}

/* quick access grid */
.qgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.qcard {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--text);
  text-align: center;
  padding: 0 4px;
  transition: transform .2s var(--ease)
}

.qcard:active {
  transform: scale(.95)
}

.qgrid.small .qcard {
  height: 84px;
  gap: 8px;
  font-size: 13px
}

/* meal & occupancy hero card */
.hero-card {
  position: relative;
  height: 174px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  padding: 18px 20px;
  background: linear-gradient(120deg, #4A1C9E 0%, #5B28C0 45%, #6A35D6 100%);
  box-shadow: 0 20px 40px -22px rgba(76, 30, 170, .9)
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0))
}

.hero-card .hc-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08)
}

.hero-card .k {
  font-size: 13px;
  color: #D9CCFF
}

.hero-card .big {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.02em;
  margin-top: 4px
}

.hero-card .mid {
  font-size: 20px;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: -.01em
}

.hero-card .pillbtn {
  position: absolute;
  left: 20px;
  bottom: 20px;
  height: 36px;
  padding: 0 14px 0 16px;
  border-radius: 18px;
  background: #fff;
  color: #5B2DC9;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4);
  transition: transform .2s
}

.hero-card .pillbtn:active {
  transform: scale(.95)
}

.hero-card .illus {
  position: absolute;
  right: 6px;
  bottom: 0;
  pointer-events: none
}

.cloche-float {
  animation: float 5s ease-in-out infinite
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-5px)
  }
}

/* vote bar */
.vbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  height: 60px;
  margin-top: 10px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 100%;
  text-align: left;
  transition: transform .2s
}

.vbar:active {
  transform: scale(.985)
}

/* bottom tab bar */
.tabbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  height: 64px;
  border-radius: 32px;
  background: var(--nav);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: 0 14px 34px -14px rgba(40, 20, 90, .32), 0 0 0 1px rgba(30, 20, 60, .04);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  z-index: 40;
  transition: transform .45s var(--ease), opacity .3s
}

body.mobile .tabbar {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px)
}

.tabbar.hide {
  transform: translateY(130%);
  opacity: 0
}

.tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12.5px;
  color: #8E8A9B;
  transition: color .3s
}

.tab .i {
  width: 21px;
  height: 21px
}

.tab.on {
  color: #fff
}

.tab-ind {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px)/4);
  border-radius: 26px;
  background: var(--grad);
  box-shadow: 0 8px 18px -8px rgba(106, 53, 214, .8);
  transition: transform .5s var(--spring)
}

.tab .tb-badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #F0455A;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center
}

/* forms */
.field {
  margin-top: 16px
}

.field:first-child {
  margin-top: 0
}

.field>label,
.flabel {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px 1px
}

.flabel .optl,
.field>label .optl {
  font-weight: 400;
  color: var(--text-3);
  font-size: 13px
}

.input {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 11px;
  background: var(--surface);
  border: 1.5px solid transparent;
  padding: 0 13px;
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  text-align: left;
  outline: none;
  box-shadow: var(--shadow)
}

.input:focus,
.input:focus-within,
.input.focus {
  border-color: #B79CF7;
  box-shadow: 0 0 0 4px rgba(124, 77, 243, .12)
}

.input::placeholder,
.input input::placeholder,
textarea::placeholder {
  color: var(--text-3)
}

.input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  font-size: 15px
}

.input .ph {
  color: var(--text-3)
}

.input .pre {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 10px;
  margin-right: 2px;
  border-right: 1px solid var(--line-2);
  height: 24px;
  color: var(--text)
}

.input.err {
  border-color: #F28B8E;
  animation: shake .4s
}

@keyframes shake {

  20%,
  60% {
    transform: translateX(-5px)
  }

  40%,
  80% {
    transform: translateX(5px)
  }
}

.err-msg {
  font-size: 12.5px;
  color: var(--danger);
  margin: 6px 2px 0
}

.ta {
  position: relative;
  background: var(--surface);
  border-radius: 11px;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s
}

.ta:focus-within {
  border-color: #B79CF7;
  box-shadow: 0 0 0 4px rgba(124, 77, 243, .12)
}

.ta textarea {
  display: block;
  width: 100%;
  height: 96px;
  resize: none;
  border: 0;
  outline: 0;
  background: none;
  padding: 12px 13px 26px;
  font-size: 15px;
  line-height: 1.4
}

.ta .count {
  position: absolute;
  right: 11px;
  bottom: 8px;
  font-size: 11.5px;
  color: var(--text-3)
}

.select-btn {
  justify-content: space-between
}

.select-btn .i {
  color: var(--text-2);
  transition: transform .25s
}

.select-btn.open .i {
  transform: rotate(180deg)
}

.date-input {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  height: 56px
}

.date-input small {
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: .04em;
  text-transform: uppercase
}

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

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

/* photo slots */
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.pslot {
  position: relative;
  aspect-ratio: 1/0.82;
  border-radius: 12px;
  border: 1.5px dashed #C9B6F5;
  background: color-mix(in srgb, var(--brand-soft) 45%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  overflow: hidden
}

.pslot.empty {
  color: #B8AFCB;
  background: transparent;
  border-color: #D7CFE6
}

.pslot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pop .4s var(--spring)
}

.pslot .rm {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2
}

.pslot .rm .i {
  width: 12px;
  height: 12px;
  stroke-width: 2.4
}

/* toggle */
.toggle {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #D7D2E2;
  transition: background .25s;
  flex: none
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  transition: transform .35s var(--spring)
}

.toggle.on {
  background: #6A35D6
}

.toggle.on::after {
  transform: translateX(18px)
}

.app.dark .toggle {
  background: #3A3446
}

/* radio / check */
.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.6px solid #7C4DF3;
  display: grid;
  place-items: center;
  flex: none;
  transition: all .2s
}

.radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6A35D6;
  transform: scale(0);
  transition: transform .3s var(--spring)
}

.radio.on::after {
  transform: scale(1)
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.6px solid #B9A5EE;
  display: grid;
  place-items: center;
  flex: none;
  transition: all .2s;
  color: #fff
}

.check .i {
  width: 13px;
  height: 13px;
  stroke-width: 3;
  opacity: 0;
  transform: scale(.4);
  transition: all .25s var(--spring)
}

.check.on {
  background: #6A35D6;
  border-color: #6A35D6
}

.check.on .i {
  opacity: 1;
  transform: scale(1)
}

/* stepper (number) */
.numstep {
  display: flex;
  align-items: center;
  gap: 14px
}

.numstep button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .15s
}

.numstep button:active {
  transform: scale(.85)
}

.numstep .minus {
  background: var(--surface-3);
  color: var(--text-2)
}

.numstep .plus {
  background: #6A35D6;
  color: #fff
}

.numstep b {
  font-size: 17px;
  font-weight: 500;
  min-width: 12px;
  text-align: center
}

/* timeline */
.tl {
  position: relative;
  padding: 4px 0
}

.tl-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 22px
}

.tl-item:last-child {
  padding-bottom: 0
}

.tl-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border: 1.5px solid #CFC8DC;
  background: var(--surface);
  z-index: 1
}

.tl-item.done .tl-dot {
  background: #6A35D6;
  border-color: #6A35D6
}

.tl-item.done .tl-dot::after {
  content: "";
  width: 6px;
  height: 3px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px)
}

.tl-item.cur .tl-dot {
  border-color: #6A35D6;
  border-width: 1.6px
}

.tl-item.cur .tl-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6A35D6;
  animation: pulse 1.6s infinite
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(106, 53, 214, .5)
  }

  70% {
    box-shadow: 0 0 0 7px rgba(106, 53, 214, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(106, 53, 214, 0)
  }
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 18px;
  bottom: 2px;
  width: 1.5px;
  background: repeating-linear-gradient(to bottom, #CFC8DC 0 3px, transparent 3px 6px)
}

.tl-item.done::before {
  background: #6A35D6
}

.tl-item:last-child::before {
  display: none
}

.tl-item .tl-t {
  font-size: 14.5px;
  color: var(--text)
}

.tl-item .tl-s {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px
}

.tl-item.todo .tl-t {
  color: var(--text-2)
}

.tl-item.anim {
  animation: fadeUp .5s var(--ease) both
}

/* key-value list */
.kv {
  padding: 6px 14px
}

.kv .kvr {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 14.5px
}

.kv .kvr span:first-child {
  color: var(--text-2);
  flex: none
}

.kv .kvr span:last-child {
  text-align: right;
  color: var(--text)
}

.kv a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px
}

/* note */
.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand-soft) 70%, transparent);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2)
}

.note .i {
  color: var(--brand);
  margin-top: 1px;
  width: 18px;
  height: 18px
}

.note.warn {
  background: var(--warn-soft)
}

.note.warn .i {
  color: var(--warn)
}

/* ==================== SHEETS ==================== */
.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none
}

.sheet-layer.open {
  pointer-events: auto
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(7px) saturate(.9);
  -webkit-backdrop-filter: blur(7px) saturate(.9);
  opacity: 0;
  transition: opacity .4s var(--ease)
}

.sheet-layer.open .sheet-scrim {
  opacity: 1
}

.sheet-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(105%);
  transition: transform .5s var(--ease)
}

.sheet-layer.open .sheet-wrap {
  transform: translateY(0)
}

.sheet-layer.dragging .sheet-wrap {
  transition: none
}

.sheet-x {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px -6px rgba(30, 20, 60, .3);
  transform: scale(.4);
  opacity: 0;
  transition: transform .45s var(--spring) .12s, opacity .25s .12s
}

.sheet-layer.open .sheet-x {
  transform: scale(1);
  opacity: 1
}

.sheet-x .i {
  width: 16px;
  height: 16px;
  stroke-width: 2
}

.sheet {
  position: relative;
  width: 100%;
  background: var(--sheet);
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  box-shadow: 0 -10px 40px -10px rgba(30, 20, 60, .18);
  transition: height .45s var(--ease)
}

.sheet-step {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(var(--appH, 932px) - 120px)
}

.sheet-step.abs {
  position: absolute;
  left: 0;
  right: 0;
  top: 0
}

.sh-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 4px;
  flex: none
}

.sh-head .back {
  width: 30px;
  height: 30px;
  margin-left: -4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2)
}

.sh-head .back:active {
  background: var(--surface-2)
}

.sh-head .tt {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em
}

.sh-head .ts {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px
}

.sh-head .grow {
  flex: 1;
  min-width: 0
}

.sh-body {
  padding: 14px 16px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  flex: 1 1 auto
}

.sh-body::-webkit-scrollbar {
  display: none
}

.sh-foot {
  padding: 12px 16px 36px;
  flex: none
}

body.mobile .sh-foot {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px)
}

.sh-center {
  text-align: center;
  padding: 30px 24px 38px
}

.sh-center .tt {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-top: 14px
}

.sh-center .ts {
  font-size: 13.5px;
  color: var(--text-2);
  margin: 8px auto 0;
  line-height: 1.45;
  max-width: 300px
}

.sh-center .btn-row {
  margin-top: 26px
}

.summary {
  display: inline-block;
  margin-top: 22px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1.5px solid #9B78F0;
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.4;
  text-align: left;
  animation: pop .5s var(--spring) .35s both
}

.summary.center {
  text-align: center
}

.summary .lbl {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 3px;
  text-align: center
}

.strike {
  text-decoration: line-through;
  color: var(--text-2)
}

/* step progress chips */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px
}

.stepper .st {
  height: 28px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 13px;
  border: 1px solid var(--line-2);
  color: var(--text-3);
  background: var(--surface);
  transition: all .35s;
  flex: none
}

.stepper .st.on {
  background: var(--grad);
  color: #fff;
  border-color: transparent
}

.stepper .ln {
  flex: 1;
  height: 1.5px;
  background: var(--line-2);
  position: relative;
  overflow: hidden
}

.stepper .ln::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #6A35D6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease)
}

.stepper .ln.on::after {
  transform: scaleX(1)
}

/* success badge */
.sbadge {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto
}

.sbadge .core {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: linear-gradient(150deg, #8C5CF7, #5B2DCF);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 7px rgba(124, 77, 243, .16);
  animation: popIn .55s var(--spring) both
}

.sbadge.err .core {
  background: linear-gradient(150deg, #FF6B70, #E0373D);
  box-shadow: 0 0 0 7px rgba(229, 72, 77, .15)
}

.sbadge .core svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round
}

.sbadge .core path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw .45s .3s var(--ease) forwards
}

.sbadge .ray {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.5px;
  height: 8px;
  margin: -4px 0 0 -1.25px;
  border-radius: 2px;
  background: #7C4DF3;
  opacity: 0;
  animation: ray .6s .25s var(--ease) forwards
}

.sbadge.err .ray {
  background: #EE5A5F
}

@keyframes popIn {
  0% {
    transform: scale(0)
  }

  100% {
    transform: scale(1)
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0
  }
}

@keyframes ray {
  0% {
    opacity: 0;
    transform: rotate(var(--r)) translateY(-18px) scaleY(.4)
  }

  50% {
    opacity: 1
  }

  100% {
    opacity: 1;
    transform: rotate(var(--r)) translateY(-30px) scaleY(1)
  }
}

/* toast */
.toast {
  position: absolute;
  bottom: 108px;
  left: 50%;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 24px;
  background: rgba(28, 24, 40, .94);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
  transform: translate(-50%, 20px) scale(.9);
  opacity: 0;
  transition: transform .45s var(--spring), opacity .25s;
  pointer-events: none
}

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

.toast .ti {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5EE0A0;
  color: #0D3B24;
  display: grid;
  place-items: center
}

.toast .ti .i {
  width: 13px;
  height: 13px;
  stroke-width: 3
}

/* push banner */
.banner {
  position: absolute;
  top: 54px;
  left: 10px;
  right: 10px;
  z-index: 96;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 24px;
  background: rgba(248, 246, 252, .86);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 18px 40px -12px rgba(20, 10, 40, .35);
  transform: translateY(-140%);
  transition: transform .6s var(--spring);
  cursor: pointer;
  color: #1D1B24
}

.banner.show {
  transform: translateY(0)
}

.banner .bi {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #7B4AE2, #4E22B8)
}

.banner .bt {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 8px
}

.banner .bt small {
  font-weight: 400;
  color: #8C879A;
  font-size: 12px
}

.banner .bb {
  font-size: 13.5px;
  color: #4A4656;
  margin-top: 1px;
  line-height: 1.3
}

/* popover menu (select) */
.menu-layer {
  position: absolute;
  inset: 0;
  z-index: 85
}

.menu {
  position: absolute;
  min-width: 180px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 20px 50px -12px rgba(30, 20, 60, .35), 0 0 0 1px var(--line);
  padding: 6px;
  transform-origin: top center;
  animation: menuIn .32s var(--spring);
  max-height: 300px;
  overflow: auto
}

.menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 15px;
  text-align: left
}

.menu button:active,
.menu button.hl {
  background: var(--surface-2)
}

.menu button .i {
  color: var(--brand);
  width: 17px;
  height: 17px;
  stroke-width: 2.2
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: scale(.92) translateY(-6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* date strip & time grid */
.dstrip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px
}

.dcell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 0;
  border-radius: 11px;
  font-size: 12.5px;
  color: var(--text-2);
  transition: background .25s, color .25s, transform .2s
}

.dcell b {
  font-size: 17px;
  font-weight: 500;
  color: var(--text)
}

.dcell.on {
  background: var(--brand-soft-2);
  color: var(--brand)
}

.dcell.on b {
  color: var(--brand)
}

.dcell:active {
  transform: scale(.93)
}

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

.tgrid.two {
  grid-template-columns: 1fr 1fr
}

.tslot {
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14.5px;
  transition: background .25s, color .25s, transform .2s
}

.tslot.on {
  background: var(--brand-soft-2);
  color: var(--brand);
  font-weight: 500
}

.tslot:active {
  transform: scale(.95)
}

.tslot[disabled] {
  opacity: .38;
  text-decoration: line-through
}

/* food vote option card */
.opt {
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 10px 10px;
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  transition: background .3s, border-color .3s, transform .2s;
  width: 100%;
  text-align: left;
  display: block
}

.opt+.opt {
  margin-top: 10px
}

.opt:active {
  transform: scale(.985)
}

.opt.on {
  background: var(--brand-soft-2);
  border-color: transparent
}

.app.dark .opt.on {
  background: #2C2244
}

.opt-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 10px;
  font-size: 15px
}

.opt-h .votes {
  font-size: 12.5px;
  color: var(--text-3)
}

.opt.on .opt-h b {
  color: var(--brand)
}

.opt-h .radio {
  margin-left: auto
}

.opt-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px
}

.fitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text);
  text-align: center
}

.fimg {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--surface);
  padding: 5px;
  box-shadow: 0 2px 8px rgba(30, 20, 60, .08)
}

.fimg img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover
}

.vote-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  margin: 10px 4px 2px;
  overflow: hidden
}

.vote-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--grad);
  transition: width .8s var(--ease)
}

/* emoji rating */
.rate {
  display: flex;
  justify-content: space-between;
  padding: 4px 0
}

.rate button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-2);
  transition: transform .25s var(--spring)
}

.rate .face {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .35s var(--spring), box-shadow .3s
}

.rate button.on {
  color: var(--text)
}

.rate button.on .face {
  transform: scale(1.14);
  box-shadow: 0 0 0 3px #FFE9A8
}

.rate.has-sel button:not(.on) .face {
  filter: grayscale(.5);
  opacity: .6
}

/* QR */
.qr-wrap {
  background: var(--surface);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  position: relative
}

.qr-wrap svg {
  width: 100%;
  max-width: 290px;
  height: auto
}

.app.dark .qr-wrap {
  background: #fff
}

.qr-scan {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7C4DF3, transparent);
  box-shadow: 0 0 12px #7C4DF3;
  animation: scan 2.6s ease-in-out infinite;
  top: 15%
}

@keyframes scan {

  0%,
  100% {
    top: 14%
  }

  50% {
    top: 84%
  }
}

/* posts */
.post {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 13px 13px 10px
}

.post+.post {
  margin-top: 10px
}

.post-h {
  display: flex;
  gap: 10px;
  align-items: center
}

.post-h .nm {
  font-size: 15px;
  font-weight: 500
}

.post-h .tm {
  font-size: 12.5px;
  color: var(--text-3);
  margin-left: 6px;
  font-weight: 400
}

.post-body {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
  margin: 10px 0 0;
  white-space: pre-wrap
}

.post-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px
}

.post-imgs img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 10px
}

.post-imgs.one {
  grid-template-columns: 1fr
}

.post-imgs.one img {
  height: 180px
}

.post-acts {
  display: flex;
  gap: 8px;
  margin-top: 10px
}

.pact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 15px;
  background: var(--surface-2);
  font-size: 13.5px;
  color: var(--text-2);
  transition: transform .2s, background .2s, color .2s
}

.pact .i {
  width: 16px;
  height: 16px
}

.pact.on {
  background: var(--brand-soft);
  color: var(--brand)
}

.pact.on .i {
  fill: currentColor
}

.pact.pop .i {
  animation: likePop .5s var(--spring)
}

@keyframes likePop {
  0% {
    transform: scale(1)
  }

  35% {
    transform: scale(1.45) rotate(-12deg)
  }

  100% {
    transform: scale(1)
  }
}

.post.flash {
  animation: flash 1.6s var(--ease)
}

@keyframes flash {

  0%,
  40% {
    box-shadow: 0 0 0 2px #9B78F0, var(--shadow)
  }

  100% {
    box-shadow: var(--shadow)
  }
}

/* comments */
.cmt {
  display: flex;
  gap: 10px;
  padding: 12px 0
}

.cmt+.cmt {
  border-top: 1px solid var(--line)
}

.cmt .nm {
  font-size: 14.5px;
  font-weight: 500
}

.cmt .tm {
  font-size: 12px;
  color: var(--text-3);
  margin-left: 6px;
  font-weight: 400
}

.cmt .tx {
  font-size: 13.5px;
  line-height: 1.4;
  margin-top: 2px
}

.cmt .rp {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 6px
}

.cmt .lk {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-3);
  flex: none;
  transition: color .2s
}

.cmt .lk.on {
  color: var(--brand)
}

.cmt .lk.on .i {
  fill: currentColor
}

.cmt.new {
  animation: fadeUp .45s var(--ease)
}

.cbar {
  display: flex;
  gap: 10px;
  align-items: center
}

.cbar .input {
  border-radius: 24px;
  height: 48px
}

.send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #C9B6F5;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  transition: background .25s, transform .2s
}

.send.on {
  background: var(--grad);
  box-shadow: 0 8px 16px -8px rgba(106, 53, 214, .8)
}

.send:active {
  transform: scale(.9)
}

/* notifications list */
.ngroup {
  font-size: 15px;
  font-weight: 500;
  margin: 20px 2px 10px
}

.nitem {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 30px 12px 12px;
  box-shadow: var(--shadow);
  transition: transform .2s
}

.nitem+.nitem {
  margin-top: 10px
}

.nitem:active {
  transform: scale(.985)
}

.nitem .t {
  font-size: 15px;
  font-weight: 450
}

.nitem .s {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.35
}

.nitem .tm {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 11.5px;
  color: var(--text-3)
}

.nitem .ud {
  position: absolute;
  right: 13px;
  bottom: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6A35D6;
  transition: transform .3s
}

.nitem.read .ud {
  transform: scale(0)
}

/* profile */
.prof {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 4px
}

.prof .pav {
  position: relative;
  width: 92px;
  height: 92px
}

.prof .pav img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover
}

.prof .cam {
  position: absolute;
  right: -2px;
  bottom: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--bg)
}

.prof .cam .i {
  width: 14px;
  height: 14px
}

.prof h2 {
  margin: 12px 0 2px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em
}

/* calling overlay */
.call {
  position: absolute;
  inset: 0;
  z-index: 97;
  background: radial-gradient(120% 70% at 50% 0%, #5B2DC9 0%, #2A1460 45%, #0D0820 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 30px 70px;
  transform: translateY(100%);
  transition: transform .55s var(--ease)
}

.call.show {
  transform: none
}

.call .cav {
  position: relative;
  width: 118px;
  height: 118px;
  margin-top: 24px
}

.call .cav img,
.call .cav .tile {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1
}

.call .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(201, 178, 255, .5);
  animation: ring 2.2s var(--ease) infinite
}

.call .ring:nth-child(2) {
  animation-delay: .7s
}

@keyframes ring {
  from {
    transform: scale(1);
    opacity: 1
  }

  to {
    transform: scale(1.8);
    opacity: 0
  }
}

.call h2 {
  margin: 30px 0 6px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em
}

.call .cs {
  font-size: 16px;
  color: rgba(235, 228, 255, .7)
}

.call .cbtns {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 34px
}

.call .cb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(235, 228, 255, .8)
}

.call .cb span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  transition: background .2s
}

.call .cb.on span {
  background: #fff;
  color: #2A1460
}

.call .cb .i {
  width: 26px;
  height: 26px
}

.call .end span {
  background: #F0444A
}

.call .end {
  grid-column: 2
}

/* empty */
.empty {
  text-align: center;
  padding: 50px 24px;
  color: var(--text-2);
  font-size: 14px
}

.empty .tile {
  margin: 0 auto 14px
}

/* animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes pop {
  0% {
    transform: scale(.6);
    opacity: 0
  }

  100% {
    transform: scale(1);
    opacity: 1
  }
}

.enter .st-in {
  animation: fadeUp .55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms)
}

.collapse-out {
  animation: collapseOut .45s var(--ease) forwards
}

@keyframes collapseOut {
  0% {
    opacity: 1;
    transform: none
  }

  40% {
    opacity: 0;
    transform: translateX(30px)
  }

  100% {
    opacity: 0;
    transform: translateX(30px);
    height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0
  }
}

.skel {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: 8px
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0 50%
  }
}

.count-roll {
  display: inline-block;
  animation: roll .4s var(--spring)
}

@keyframes roll {
  from {
    transform: translateY(60%);
    opacity: 0
  }

  to {
    transform: none;
    opacity: 1
  }
}

.confetti {
  position: absolute;
  inset: 0;
  z-index: 94;
  pointer-events: none
}

/* ==================== ONBOARDING ==================== */
.splash {
  background: radial-gradient(120% 80% at 50% 20%, #6A35D6 0%, #3E1897 50%, #1A0B45 100%)
}

.splash .logo-wrap {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center
}

.splash .lg {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  animation: lgIn 1s var(--spring) both
}

.splash .lg svg {
  width: 58px;
  height: 58px
}

.splash .wm {
  margin-top: 22px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: #fff;
  animation: fadeUp .7s .35s var(--ease) both
}

.splash .tg {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(235, 228, 255, .7);
  animation: fadeUp .7s .5s var(--ease) both
}

.splash .ld {
  position: absolute;
  left: 50%;
  bottom: 90px;
  width: 120px;
  height: 3px;
  margin-left: -60px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden
}

.splash .ld i {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 2px;
  transform-origin: left;
  animation: load 1.6s .4s var(--ease) both
}

@keyframes lgIn {
  from {
    transform: scale(.3) rotate(-20deg);
    opacity: 0
  }

  to {
    transform: none;
    opacity: 1
  }
}

@keyframes load {
  from {
    transform: scaleX(0)
  }

  to {
    transform: scaleX(1)
  }
}

.onb {
  background: #0D0820;
  color: #fff
}

.onb .slides {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform .6s var(--ease)
}

.onb .slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden
}

.onb .slide img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 68%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease)
}

.onb .slide.on img.bg {
  transform: scale(1)
}

.onb .slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  height: 40%;
  background: linear-gradient(180deg, rgba(13, 8, 32, 0), #0D0820 92%)
}

.onb .copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 200px;
  z-index: 2
}

.onb .copy .k {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #B48CFF
}

.onb .copy h2 {
  margin: 12px 0 10px;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 700
}

.onb .copy p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(235, 228, 255, .7)
}

.onb .slide .copy>* {
  opacity: 0;
  transform: translateY(16px);
  transition: all .6s var(--ease)
}

.onb .slide.on .copy>* {
  opacity: 1;
  transform: none
}

.onb .slide.on .copy h2 {
  transition-delay: .08s
}

.onb .slide.on .copy p {
  transition-delay: .16s
}

.onb .dots {
  position: absolute;
  left: 28px;
  bottom: 150px;
  display: flex;
  gap: 6px;
  z-index: 3
}

.onb .dots i {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .3);
  transition: all .4s var(--ease)
}

.onb .dots i.on {
  width: 24px;
  background: #fff
}

.onb .ctas {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 56px;
  z-index: 3;
  display: flex;
  gap: 10px
}

.onb .skip {
  position: absolute;
  top: 62px;
  right: 20px;
  z-index: 3;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  color: #fff
}

.btn-white {
  background: #fff;
  color: #2E0F6E;
  font-weight: 600
}

.floatcard {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7);
  color: #1D1B24;
  box-shadow: 0 24px 44px -16px rgba(10, 4, 30, .55);
  font-size: 13px;
  line-height: 1.3;
  max-width: calc(100% - 40px);
  opacity: 0;
  transform: translateY(18px) scale(.95);
  transition: opacity .6s ease .3s, transform .8s var(--spring) .3s
}

.floatcard.fc-right {
  right: 20px
}

.floatcard.fc-left {
  left: 20px
}

.slide.on .floatcard {
  opacity: 1;
  transform: none;
  animation: fcFloat 5s ease-in-out 1.2s infinite
}

@keyframes fcFloat {

  0%,
  100% {
    translate: 0 0
  }

  50% {
    translate: 0 -6px
  }
}

.floatcard b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em
}

.floatcard small {
  display: block;
  color: #6F6B7C;
  font-size: 12px;
  margin-top: 1px
}

.fc-bar {
  flex-basis: 100%;
  height: 6px;
  border-radius: 3px;
  background: #EEE9F8;
  overflow: hidden;
  margin-top: 2px
}

.fc-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #FFC94A, #F5A524);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease) .9s
}

.slide.on .fc-bar i {
  transform: scaleX(1)
}

.fc-meta {
  flex-basis: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #6F6B7C;
  margin-top: -2px
}

.avs {
  display: flex
}

.avs img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12)
}

.avs img:first-child {
  margin-left: 0
}

.role-scr .scroll,
.auth-scr .scroll {
  padding: 96px 22px 40px
}

.role-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  text-align: left;
  transition: border-color .25s, transform .2s, background .25s
}

.role-card+.role-card {
  margin-top: 12px
}

.role-card.on {
  border-color: #8C62F5;
  background: color-mix(in srgb, var(--brand-soft) 50%, var(--surface))
}

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

.role-card .rc-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex: none
}

.role-card b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em
}

.role-card p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.4
}

.big-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 0
}

.lead {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 10px 0 0
}

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

.otp .ob {
  height: 62px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 600;
  transition: border-color .2s, transform .3s var(--spring)
}

.otp .ob.cur {
  border-color: #9B78F0
}

.otp .ob.fill {
  animation: pop .35s var(--spring)
}

.otp.ok .ob {
  border-color: #3CC584;
  background: var(--ok-soft)
}

.kbd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 6px 34px;
  background: color-mix(in srgb, var(--surface-3) 85%, transparent);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  transform: translateY(100%);
  transition: transform .45s var(--ease);
  z-index: 30
}

.kbd.show {
  transform: none
}

.kbd button {
  height: 50px;
  border-radius: 9px;
  background: var(--surface);
  font-size: 24px;
  font-weight: 400;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .15)
}

.kbd button:active {
  background: var(--surface-3)
}

.kbd button.fn {
  background: transparent;
  box-shadow: none;
  font-size: 15px
}

.resend {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 18px
}

.resend b {
  color: var(--brand);
  font-weight: 500
}

/* ==================== MISC SPECIFIC ==================== */
.amount {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em
}

.receipt-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 14px 10px;
  border-bottom: 1px dashed var(--line-2)
}

.brandline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 600
}

.fac-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex: none
}

.wifi-sig {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px
}

.wifi-sig i {
  width: 3px;
  border-radius: 1px;
  background: var(--ok);
  animation: sig 1.6s ease-in-out infinite
}

.wifi-sig i:nth-child(1) {
  height: 5px
}

.wifi-sig i:nth-child(2) {
  height: 8px;
  animation-delay: .1s
}

.wifi-sig i:nth-child(3) {
  height: 11px;
  animation-delay: .2s
}

.wifi-sig i:nth-child(4) {
  height: 14px;
  animation-delay: .3s
}

@keyframes sig {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .35
  }
}

.datebox {
  width: 38px;
  text-align: center;
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.15;
  flex: none
}

.datebox b {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500
}

.support-card {
  position: relative;
  margin-top: 20px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(120deg, #E7DDFF, #D6C4FF);
  overflow: hidden;
  color: #3A1C86
}

.app.dark .support-card {
  background: linear-gradient(120deg, #2B2147, #35295A);
  color: #E2D6FF
}

.support-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: #5B2DC9
}

.app.dark .support-card h4 {
  color: #E2D6FF
}

.support-card p {
  margin: 5px 0 14px;
  font-size: 14px;
  color: #7A55D8
}

.app.dark .support-card p {
  color: #B9A5EE
}

.support-card .btn-sm {
  background: #fff;
  color: #5B2DC9;
  font-weight: 500;
  gap: 4px;
  box-shadow: 0 4px 10px -4px rgba(91, 45, 201, .3)
}

.support-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25)
}

.thumbs {
  display: flex;
  gap: 6px
}

.thumbs button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: all .2s
}

.thumbs button.on {
  color: var(--brand);
  background: var(--brand-soft)
}

.thumbs button.on .i {
  fill: currentColor
}

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

.meal-tab {
  background: var(--surface);
  border-radius: 13px;
  padding: 12px 4px 11px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1.5px solid transparent;
  transition: all .25s
}

.meal-tab .mi {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin: 0 auto 6px
}

.meal-tab .mi .i {
  width: 15px;
  height: 15px;
  stroke-width: 2
}

.meal-tab b {
  display: block;
  font-size: 14px;
  font-weight: 500
}

.meal-tab small {
  display: block;
  font-size: 11px;
  color: var(--text-2);
  margin-top: 3px
}

.meal-tab.on {
  border-color: #A88AF5;
  background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface))
}

.menu-list {
  padding: 6px 12px
}

.menu-list .ml {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14.5px
}

.veg {
  width: 12px;
  height: 12px;
  border: 1.3px solid #2DA160;
  border-radius: 2px;
  display: grid;
  place-items: center;
  flex: none
}

.veg::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2DA160
}

.occ-num {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.02em;
  margin-top: 4px
}

.occ-num span {
  font-weight: 400;
  opacity: .85
}

.tiny-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: var(--shadow)
}

.tiny-stat b {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.02em
}

.tiny-stat small {
  font-size: 12.5px;
  color: var(--text-2)
}

.tiny-stat em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  padding: 0 12px;
  box-shadow: var(--shadow);
  color: var(--text-3)
}

.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14.5px;
  min-width: 0;
  color: var(--text)
}

.req-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 13px 14px;
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform .2s
}

.req-card+.req-card {
  margin-top: 10px
}

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

.req-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent, #F06A4A)
}

.vr-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px 0 14px;
  overflow: hidden
}

.vr-card+.vr-card {
  margin-top: 12px
}

.lvl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 9px
}

.lvl::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor
}

.lvl.h {
  background: var(--danger-soft);
  color: var(--danger)
}

.lvl.m {
  background: var(--pend-soft);
  color: var(--pend)
}

.lvl.l {
  background: var(--ok-soft);
  color: var(--ok)
}

.doc {
  background: #fff;
  color: #2A2733;
  border-radius: 12px;
  padding: 20px 18px;
  font-size: 12.5px;
  line-height: 1.55;
  box-shadow: var(--shadow)
}

.doc h4 {
  margin: 0 0 4px;
  font-size: 15px
}

.doc hr {
  border: 0;
  border-top: 1px solid #EEE;
  margin: 12px 0
}

.sign {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 22px;
  color: #3A2A80
}

.big-amt {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -.03em
}

.mini-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 64px
}

.mini-bars i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: var(--brand-soft-2);
  transform-origin: bottom;
  animation: grow .8s var(--ease) both
}

.mini-bars i.hl {
  background: var(--grad)
}

@keyframes grow {
  from {
    transform: scaleY(0)
  }

  to {
    transform: scaleY(1)
  }
}

.lang-row .radio {
  margin-left: auto
}

.kbd-hint {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px
}

/* ---- additions ---- */
.collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s var(--ease)
}

.collapse.open {
  grid-template-rows: 1fr
}

.collapse>div {
  overflow: hidden;
  min-height: 0
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  animation: typ 1s infinite
}

.typing i:nth-child(2) {
  animation-delay: .15s
}

.typing i:nth-child(3) {
  animation-delay: .3s
}

@keyframes typ {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: .45
  }

  30% {
    transform: translateY(-4px);
    opacity: 1
  }
}

.link {
  font-size: 14px;
  color: var(--text-3)
}

a.chev,
a.qcard {
  text-decoration: none;
  color: inherit
}

button.tiny-stat {
  width: 100%;
  transition: transform .2s
}

button.tiny-stat:active {
  transform: scale(.97)
}

.req-card {
  align-items: flex-start
}

.qr-wrap {
  cursor: pointer
}

.vbar .grow {
  flex: 1;
  min-width: 0
}

.hero-card .illus {
  right: 4px;
  bottom: 2px
}

.app.dark .hero-card {
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .9)
}

.app.dark .card,
.app.dark .qcard,
.app.dark .post,
.app.dark .nitem,
.app.dark .opt,
.app.dark .tslot,
.app.dark .input,
.app.dark .ta,
.app.dark .req-card,
.app.dark .vr-card,
.app.dark .tiny-stat,
.app.dark .search,
.app.dark .vbar,
.app.dark .meal-tab {
  box-shadow: 0 0 0 1px var(--line)
}

.app.dark .fimg {
  background: var(--surface-2)
}

.app.dark .banner {
  background: rgba(40, 36, 50, .86);
  color: #F3F0FA
}

.app.dark .banner .bb {
  color: #C9C3D6
}

.app.dark .sheet-x {
  box-shadow: 0 0 0 1px var(--line)
}

.app.dark .doc {
  background: #1F1B28;
  color: #E9E5F2
}

.app.dark .doc hr {
  border-color: #332D3F
}

.app.dark .sign {
  color: #C9B2FF
}

.app.dark .pslot.empty {
  border-color: #3A3446
}

.app.dark .dotsep {
  background: #4A4458
}

.tl-item .tl-s {
  line-height: 1.35
}

.screen .scroll>.card:first-child {
  margin-top: 0
}

.sh-body .card+.card {
  margin-top: 10px
}

.sh-head .pill {
  flex: none
}

.row .chev+.chev {
  margin-left: -4px
}

.nb-right .link {
  color: var(--brand)
}

@media (hover:hover) {
  .row:hover {
    background: color-mix(in srgb, var(--surface-2) 55%, transparent)
  }

  .qcard:hover,
  .opt:hover {
    filter: brightness(.985)
  }
}

.screen:not(.has-nav)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 62px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(var(--bg) 62%, color-mix(in srgb, var(--bg) 0%, transparent))
}

.screen.splash::before,
.screen.onb::before {
  display: none
}

body.mobile .screen:not(.has-nav)::before {
  height: calc(env(safe-area-inset-top, 0px) + 8px)
}

body.mobile .banner {
  top: calc(env(safe-area-inset-top, 0px) + 8px)
}

.app.dark .pill.brand,
.app.dark .tag.general,
.app.dark .tag.events {
  color: #C9B2FF
}

.app.dark .t-soft {
  color: #C9B2FF
}

.app.dark .opt.on .opt-h b,
.app.dark .dcell.on,
.app.dark .dcell.on b,
.app.dark .tslot.on {
  color: #D9C8FF
}

.app.dark .note .i {
  color: #C9B2FF
}

.toast.top {
  bottom: auto;
  top: 58px;
  transform: translate(-50%, -20px) scale(.9)
}

.toast.top.show {
  transform: translate(-50%, 0) scale(1)
}

body.mobile .toast.top {
  top: calc(env(safe-area-inset-top, 0px) + 10px)
}

.toast.low {
  bottom: 44px
}

.onb .slide .shade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 130px;
  z-index: 1;
  background: linear-gradient(rgba(13, 8, 32, .55), rgba(13, 8, 32, 0))
}

.docview {
  position: absolute;
  inset: 0;
  z-index: 98;
  background: rgba(8, 5, 16, .9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 22px 40px
}

.docview img {
  max-height: 72%;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
  user-select: auto;
  -webkit-user-select: auto;
  -webkit-touch-callout: default
}

.docview .dv-bar {
  display: flex;
  gap: 10px
}

.docview .dv-close {
  background: rgba(255, 255, 255, .14);
  color: #fff
}

.docview .dv-hint {
  font-size: 12px;
  color: rgba(235, 228, 255, .6)
}

/* ---- alignment & typography pass ---- */
/* single-line controls: centre the label box exactly, independent of line-height */
.pill,
.tag,
.lvl,
.chip,
.stepper .st,
.tslot,
.btn,
.btn .lbl,
.pact,
.onb .skip,
.seg2 button,
.hero-card .pillbtn,
.support-card .btn-sm,
.summary .lbl,
.tb-badge,
.nb-right .pill {
  line-height: 1
}

.chip,
.tslot,
.onb .skip,
.seg2 button {
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.stepper .st {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap
}

.lvl {
  height: 20px;
  padding: 0 8px
}

.tag {
  height: 20px;
  padding: 0 8px;
  letter-spacing: .01em
}

.pill.sm {
  height: 24px
}

/* consistent type scale for list rows & sheets */
.row .t {
  line-height: 1.3
}

.row .s {
  line-height: 1.3
}

.sh-head .tt {
  line-height: 1.25
}

.sh-head .ts {
  line-height: 1.35
}

.kv .kvr {
  line-height: 1.35;
  align-items: baseline
}

.nitem .t {
  padding-right: 56px
}

.navbar h1 {
  line-height: 1.2
}

.h-greet {
  line-height: 1.2
}

/* numbers that line up */
.amount,
.big-amt,
.occ-num,
.kv .kvr span:last-child,
.datebox b,
.tiny-stat b,
.otp .ob,
.dcell b,
.numstep b {
  font-variant-numeric: tabular-nums
}

.lvl {
  white-space: nowrap
}

.lvl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px
}

.lvl {
  font-size: 11px;
  padding: 0 6px;
  gap: 3px;
  height: 19px
}

.lvl-row {
  gap: 4px;
  flex-wrap: nowrap
}

.nitem .tm {
  top: 14px
}

.chip {
  gap: 6px
}

.chip .cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  font-variant-numeric: tabular-nums
}

.chip.on .cnt {
  background: rgba(255, 255, 255, .24);
  color: #fff
}