.app-shell {
  min-height: 100dvh;
  padding-bottom: 4.75rem;
  background: var(--color-background);
}

.is-auth-screen .app-shell {
  padding-bottom: 0;
}

.is-drawer-open {
  overflow: hidden;
}

.is-auth-screen .app-header,
.is-auth-screen .bottom-nav {
  display: none;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-background);
  border-bottom: 0.0625rem solid var(--color-border);
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4rem;
}

.user-heading {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: var(--space-2);
}

.user-avatar {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  color: #f9fbf8;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-strong));
  border-radius: var(--radius-md);
}

.user-heading__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: var(--line-height-tight);
}

.user-heading__eyebrow {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
}

.user-heading strong {
  overflow: hidden;
  color: var(--color-text);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.icon-button {
  display: inline-grid;
  width: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  place-items: center;
  color: var(--color-text);
  border-radius: var(--radius-md);
}

.kebab-button {
  flex: 0 0 auto;
}

.home-screen {
  display: flex;
  min-height: calc(100dvh - 10.25rem);
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-4);
  padding-bottom: var(--space-6);
}

.app-screen[hidden] {
  display: none;
}

/* ══════════════════════════════════════════════════════
   AUTH SCREEN — Premium Full-Screen Experience
   ══════════════════════════════════════════════════════ */

.login-screen {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  padding: 0;
  background: var(--color-background);
  overflow: hidden;
}

/* ── Hero Header ── */
.login-hero {
  margin: 1rem 0.5rem 0 0.5rem;
  border-radius: 2rem 2rem 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 30dvh;
  padding: var(--space-8) var(--space-6);
  color: #f9fbf8;
  background-image: url('../../public/login.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Decorative orbs */
.login-hero::before,
.login-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}

.login-hero::before {
  width: 18rem;
  height: 18rem;
  top: -6rem;
  right: -5rem;
  background: radial-gradient(circle, rgb(255 255 255 / 40%) 0%, transparent 70%);
}

.login-hero::after {
  width: 12rem;
  height: 12rem;
  bottom: -3rem;
  left: -4rem;
  background: radial-gradient(circle, rgb(255 255 255 / 30%) 0%, transparent 70%);
}

/* ── Brand Identity inside Panel ── */
.login-panel__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  text-align: center;
  animation: auth-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-brand__mark {
  display: inline-grid;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  place-items: center;
  color: #f9fbf8;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-strong));
  border-radius: 0.875rem;
  animation: auth-mark-pulse 3s ease-in-out infinite;
}

.login-brand__mark svg {
  width: 1.625rem;
  height: 1.625rem;
}

.login-panel__brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.login-panel__brand-text h1 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.login-panel__brand-text p {
  margin: var(--space-1) 0 0;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-tight);
  max-width: 18rem;
}

/* ── Bottom Sheet Panel ── */
.login-panel {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: -1.5rem;
  padding: var(--space-8) var(--space-5) var(--space-6);
  background: var(--color-background);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -0.5rem 2rem rgb(23 23 23 / 6%);
  animation: auth-sheet-up 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  border: 0.0625rem solid var(--color-border);
}

/* Pill handle */
.login-panel::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 0.25rem;
  background: #e9e9e9;
  border-radius: 999rem;
}

/* ── Step Title ── */
.login-panel__heading {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.5rem;
}

.login-panel__heading p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-panel__heading h2 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

/* ── Form ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field span {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
}

.field input {
  width: 100%;
  min-height: 3.25rem;
  padding-inline: var(--space-4);
  color: var(--color-text);
  font: inherit;
  font-size: var(--font-size-md);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-surface-muted);
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.field input:focus {
  border-color: rgba(91, 107, 255, 0.3);
}

.field input.is-valid {
  border-color: var(--color-success);
}

.field input.is-valid:focus {
  border-color: var(--color-success);
  box-shadow:
    0 0 0 0.1875rem rgba(15, 118, 110, 0.15),
    0 0.125rem 0.5rem rgba(15, 118, 110, 0.08);
}

.field input.is-invalid {
  border-color: var(--color-danger);
}

.field input.is-invalid:focus {
  border-color: var(--color-danger);
  box-shadow:
    0 0 0 0.1875rem rgba(180, 35, 24, 0.15),
    0 0.125rem 0.5rem rgba(180, 35, 24, 0.08);
}

.shake-animation {
  animation: auth-shake 0.4s ease;
}

@keyframes auth-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-0.375rem);
  }

  40%,
  80% {
    transform: translateX(0.375rem);
  }
}

/* ── Buttons ── */
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3.25rem;
  padding-inline: var(--space-5);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  border-radius: 0.75rem;
  transition:
    transform 0.12s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.login-button:active {
  transform: scale(0.97);
}

.login-button--primary {
  color: #f9fbf8;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-strong));
}

@media (hover: hover) {
  .login-button--primary:hover {
    box-shadow:
      0 0.25rem 0.75rem rgb(91 108 255 / 18%),
      0 0.0625rem 0.1875rem rgb(91 108 255 / 10%);
  }
}

.login-button--secondary {
  color: var(--color-primary);
  background: transparent;
  border: 0.0625rem solid var(--color-primary);
}

@media (hover: hover) {
  .login-button--secondary:hover {
    background: rgb(91 108 255 / 4%);
  }
}

.login-button--primary.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.login-button--primary.is-loading .icon {
  animation: auth-spinner 0.8s linear infinite;
}

.login-button--google {
  color: var(--color-text);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
}

@media (hover: hover) {
  .login-button--google:hover {
    background: #fbfbff;
    border-color: rgb(91 108 255 / 24%);
  }
}

/* ── Message ── */
.login-message {
  min-height: 1.125rem;
  margin: 0;
  color: var(--color-success);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  transition: color 0.2s ease;
  text-align: center;
}

.login-message--error {
  color: var(--color-danger);
}

/* ── Divider ── */
.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.login-divider span {
  height: 0.0625rem;
  background: var(--color-border);
}

.login-divider small {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
}

/* ── OTP Code Input ── */
.otp-group {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  border-color: var(--color-surface-muted);
}

.otp-group input {
  width: 3rem;
  height: 3.5rem;
  padding: 0;
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  text-align: center;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: 0.75rem;
  outline: none;
  caret-color: var(--color-primary);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.otp-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.1875rem rgb(91 108 255 / 12%);
  transform: translateY(-0.125rem);
}

.otp-group input.is-filled {
  border-color: var(--color-primary);
  background: #eef0ff;
}

/* ── Step Indicator ── */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
}

.auth-step {
  width: 2rem;
  height: 0.1875rem;
  background: var(--color-border);
  border-radius: 999rem;
  transition: background 0.28s ease, width 0.28s ease;
}

.auth-step--active {
  width: 2.5rem;
  background: var(--color-primary);
}

.auth-step--done {
  background: var(--color-success);
}

/* ── Resend link ── */
.login-resend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.login-resend button {
  min-height: auto;
  padding: 0;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  background: none;
  border: none;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 0.125rem;
}

.login-resend button:disabled {
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: default;
}

/* ── Auth Footer ── */
.login-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
}

.login-footer p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
  text-align: center;
}

.login-footer a {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
  text-underline-offset: 0.125rem;
}

/* ── Step Transitions ── */
.login-step {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
}

.login-step--active {
  display: flex;
  animation: auth-step-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Auth Keyframes ── */
@keyframes auth-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-sheet-up {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-mark-pulse {

  0%,
  100% {
    box-shadow:
      0 0.5rem 2rem rgb(0 0 0 / 16%),
      0 0 0 0.25rem rgb(255 255 255 / 10%);
  }

  50% {
    box-shadow:
      0 0.5rem 2.5rem rgb(0 0 0 / 20%),
      0 0 0 0.5rem rgb(255 255 255 / 16%);
  }
}

@keyframes auth-spinner {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes auth-step-in {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-status {
  position: relative;
  margin-bottom: var(--space-4);
  /* The padding and background move to individual cards */
}

/* ── Hero Card Stack ── */
.hero-carousel {
  position: relative;
  min-height: 11.25rem;
}

.hero-card {
  position: absolute;
  inset: 0;
  bottom: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 11.25rem;
  padding: var(--space-4);
  color: #f9fbf8;
  background: var(--color-primary);
  border: 0.0625rem solid rgb(91 108 255 / 24%);
  border-radius: var(--radius-md);
  will-change: transform, opacity;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.36s ease;
  transform-origin: center bottom;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  pointer-events: none;
  box-shadow: 0 0.5rem 1rem rgb(91 108 255 / 10%);
}

/* Only the top card is interactive */
.hero-card[data-stack="0"] {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.hero-card[data-stack="1"] {
  z-index: 2;
}

.hero-card[data-stack="2"] {
  z-index: 1;
}

/* Disable transition during active drag */
.hero-card.is-dragging {
  transition: none;
  cursor: grabbing;
}

/* Dismissed card flies off */
.hero-card.is-dismissed {
  transition:
    transform 0.32s ease-in,
    opacity 0.26s ease-in;
  pointer-events: none;
}

/* Dots */
.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-top: var(--space-3);
}

.hero-dot {
  width: 0.375rem;
  height: 0.375rem;
  min-height: 0;
  padding: 0;
  background: rgb(249 251 248 / 36%);
  border: none;
  border-radius: 999rem;
  transition: width 0.22s ease, background 0.22s ease;
  cursor: pointer;
}

.hero-dot--active {
  width: 1.25rem;
  background: #f9fbf8;
}

.tips-banner {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.tips-banner::-webkit-scrollbar {
  display: none;
}

.native-card {
  display: grid;
  grid-template-rows: 70% 30%;
  flex: 0 0 95%;
  overflow: hidden;
  height: 11.25rem;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-md);
  scroll-snap-align: start;
}

.native-card__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-md);
}

.native-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
}

.native-card__content h2 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
}

.native-card__content p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
}

.hero-status__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 9.25rem;
}

.hero-status__left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-status .eyebrow {
  color: rgb(249 251 248 / 72%);
}

.hero-status h1,
.drawer__header h2 {
  margin: 0;
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
}

.hero-status h1 {
  color: #f9fbf8;
}

.home-section h2 {
  margin: 0;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
}

.status-row {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-1);
  font-size: var(--font-size-md);
  color: rgb(249 251 248 / 88%);
}

/* .status-chip removed */

/* ── Setup Timeline ── */
.setup-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 0 0 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: center;
}

.setup-timeline__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
}

.setup-timeline__step:last-child {
  padding-bottom: 0;
}

/* Connector line between dots */
.setup-timeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.5625rem;
  top: 1.375rem;
  width: 0.0625rem;
  bottom: 0;
  background: rgb(249 251 248 / 30%);
}

.setup-timeline__dot {
  display: inline-grid;
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999rem;
  border: 0.0625rem solid rgb(249 251 248 / 32%);
  background: rgb(249 251 248 / 10%);
  color: rgb(249 251 248 / 50%);
}

.setup-timeline__dot svg {
  width: 0.625rem;
  height: 0.625rem;
}

.setup-timeline__step--done .setup-timeline__dot {
  background: rgb(249 251 248 / 20%);
  border-color: rgb(249 251 248 / 60%);
  color: #f9fbf8;
}

.setup-timeline__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: rgb(249 251 248 / 80%);
  line-height: var(--line-height-tight);
  white-space: nowrap;
}

.setup-timeline__step--done .setup-timeline__label {
  color: #f9fbf8;
}

.quick-actions {
  row-gap: var(--space-3);
}

.quick-action {
  display: flex;
  min-height: 5rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-3);
  color: var(--color-text);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 0.5rem 1.5rem rgb(23 23 23 / 4%);
}

.quick-action span {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
}

.quick-action--primary {
  color: var(--color-primary-strong);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
}

.home-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 0.75rem 2rem rgb(23 23 23 / 5%);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.checkin-panel,
.network-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  background: #fbfbff;
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-md);
}

.checkin-panel div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-1);
}

.checkin-panel strong {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
}

.checkin-panel span,
.network-row p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
}

.checkin-panel button {
  flex: 0 0 auto;

  padding-inline: var(--space-3);
  color: #f9fbf8;
  background: var(--color-primary);
}

.avatar-stack {
  display: flex;
  min-width: 5.5rem;
}

.avatar-stack span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-right: -0.5rem;
  place-items: center;
  color: var(--color-primary-strong);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  background: #eef0ff;
  border: 0.125rem solid var(--color-surface);
  border-radius: var(--radius-md);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  height: 3.5rem;
  background: var(--color-background);
  border-top: 0.0625rem solid var(--color-border);
}

.bottom-nav__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 3.5rem repeat(2, minmax(0, 1fr));
  gap: var(--space-1);
  height: 100%;
}

.bottom-nav__item {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}

.bottom-nav__item span {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
}

.bottom-nav__fab {
  position: relative;
  top: -1.25rem;
  display: inline-grid;
  width: 3.5rem;
  min-width: 3.5rem;
  min-height: 3.5rem;
  place-items: center;
  justify-self: center;
  color: #f9fbf8;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-strong));
  border: none;
  border-radius: var(--radius-md);
  box-shadow:
    0 0.25rem 0.75rem rgb(91 108 255 / 36%),
    0 0.0625rem 0.1875rem rgb(91 108 255 / 20%);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.bottom-nav__fab .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.bottom-nav__fab:active {
  transform: scale(0.93);
  box-shadow:
    0 0.125rem 0.375rem rgb(91 108 255 / 28%),
    0 0.0625rem 0.125rem rgb(91 108 255 / 16%);
}

@media (hover: hover) {
  .bottom-nav__fab:hover {
    box-shadow:
      0 0.5rem 1.25rem rgb(91 108 255 / 44%),
      0 0.125rem 0.25rem rgb(91 108 255 / 24%);
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  visibility: hidden;
}

.drawer--open {
  pointer-events: auto;
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  min-height: 0;
  background: rgb(23 23 23 / 36%);
  border-radius: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.drawer--open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  width: min(22rem, 88vw);
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-background);
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.drawer--open .drawer__panel {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.drawer__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: var(--space-2) var(--space-3);
  color: var(--color-primary-strong);
  font-weight: var(--font-weight-medium);
  background: #eef0ff;
  border-radius: 999rem;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-2);
}

.drawer__footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 0.0625rem solid var(--color-border);
}

.drawer__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-3);
  min-height: 3.25rem;
  padding-inline: var(--space-4);
  color: var(--color-text);
  text-align: left;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 0.5rem 1.5rem rgb(23 23 23 / 4%);
}

.drawer__item .icon {
  color: var(--color-primary);
}

.drawer__item span {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
}

.drawer__item--quiet {
  display: flex;
  min-height: 4rem;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
  padding-inline: var(--space-2);
  background: transparent;
  box-shadow: none;
}

.drawer__item--danger {
  display: flex;
  min-height: 4rem;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
  padding-inline: var(--space-2);
  color: var(--color-danger);
  background: #fff7f7;
}

.drawer__footer .drawer__item span {
  max-width: 100%;
  font-size: var(--font-size-sm);
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
}

.drawer__item--danger .icon {
  color: var(--color-danger);
}

/* Bottom Sheet / Action Sheet Panel */
.drawer__panel--sheet {
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 1.5rem 1.5rem 0 0;
  transform: translateY(100%);
  max-height: 85dvh;
  box-shadow: 0 -0.5rem 2rem rgb(23 23 23 / 10%);
}

.drawer--open .drawer__panel--sheet {
  transform: translateY(0);
}