:root {
  --lich-brand: #1e40af;
  --lich-brand-light: #2563eb;
  --lich-bg: #f1f5f9;
}

body.lich-body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--lich-bg);
  min-height: 100dvh;
}

.lich-login-bg {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  min-height: 100dvh;
  background: linear-gradient(135deg, #1e3a8a, #2563eb 50%, #3b82f6);
}

.lich-header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  padding: 1rem 1rem 1.25rem;
  padding-top: max(1rem, env(safe-area-inset-top));
}

.lich-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: linear-gradient(180deg, #1e3a8a, #1e40af);
  z-index: 100;
}

.lich-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.lich-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
}

.lich-nav-link:hover, .lich-nav-link.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.lich-main {
  min-height: 100dvh;
  padding-bottom: 1rem;
}

.lich-main.with-nav {
  padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

@media (min-width: 992px) {
  .lich-main.with-nav {
    margin-left: 260px;
    padding-bottom: 2rem;
  }
}

.lich-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  padding: .35rem .5rem;
  padding-bottom: max(.35rem, env(safe-area-inset-bottom));
  z-index: 200;
}

.lich-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: .35rem .5rem;
  font-size: .65rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  min-width: 4rem;
}

.lich-tab i {
  font-size: 1.35rem;
}

.lich-tab.active, .lich-tab:hover {
  color: var(--lich-brand);
}

.lich-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 24px -4px rgba(30, 58, 138, .1);
  transition: transform .15s, box-shadow .15s;
}

.lich-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(30, 58, 138, .15);
}

.lich-card-accent {
  border-left: 4px solid var(--lich-brand-light);
}

.badge-workflow {
  font-size: .7rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .25rem .6rem;
}

.fab-add {
  position: fixed;
  right: 1rem;
  bottom: calc(4.5rem + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lich-brand-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .4);
  z-index: 150;
  text-decoration: none;
}

@media (min-width: 992px) {
  .fab-add {
    bottom: 2rem;
    right: 2rem;
  }
}
