/* ==========================================================================
   Life Link — User Webview Common Styles
   Design tokens extracted from Figma reference screens.
   Mobile-first; scales up for tablet/desktop via media queries.
   ========================================================================== */

:root {
  /* ---- Brand colors ---- */
  --ll-primary: rgba(185, 97, 1, 1);          /* burnt orange - primary actions, active states */
  --ll-primary-dark: #96530C;
  --ll-primary-light: #E8A34D;
  --ll-primary-soft: rgba(185, 97, 1, 0.1);     /* light tint for badges/backgrounds */

  --ll-gradient-header: linear-gradient(180deg, #FCE8C9 0%, #FFFFFF 100%);

  --ll-success: #2E9E5B;
  --ll-success-soft: #E7F7EE;
  --ll-danger: rgba(252, 0, 5, 1);
  --ll-danger-soft: #FDEDED;
  --ll-warning: #E4A93D;
  --ll-warning-soft: #FDF4E3;

  --ll-text-primary: #1A1A1A;
  --ll-text-secondary: #6B6B6B;
  --ll-text-muted: #9B9B9B;

  --ll-border: rgba(229, 225, 216, 1);
  --ll-bg: #FFFFFF;
  --ll-bg-subtle: rgba(245, 241, 232, 1);
  --ll-card-bg: #FFFFFF;

  /* ---- Radii ---- */
  --ll-radius-sm: 10px;
  --ll-radius-md: 16px;
  --ll-radius-lg: 22px;
  --ll-radius-pill: 999px;

  /* ---- Shadows ---- */
  --ll-shadow-sm: 0 1px 3px rgba(20, 20, 20, 0.06);
  --ll-shadow-md: 0 4px 16px rgba(20, 20, 20, 0.08);
  --ll-shadow-card: 0 2px 10px rgba(184, 101, 14, 0.06);

  /* ---- Layout ---- */
  --ll-mobile-max: 680px;
  --ll-bottom-nav-height: 78px;
  --ll-header-height: auto;

  /* ---- Font ---- */
  --ll-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ll-font2: 'Poppins',  sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--ll-font);
  color: var(--ll-text-primary);
  background-color: var(--ll-bg-subtle);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--ll-font);
}

/* ==========================================================================
   App Shell — mobile-first "phone frame" feel inside a webview,
   flexes to full-width layouts on larger screens.
   ========================================================================== */

.ll-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ll-bg);
  max-width: var(--ll-mobile-max);
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.ll-app-body {
  flex: 1 1 auto;
  padding-bottom: calc(var(--ll-bottom-nav-height) + 16px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.ll-header {
  /* background: var(--ll-gradient-header); */
  padding: 18px 20px 20px;
}

.ll-header--plain {
  background: var(--ll-bg);
  border-bottom: 1px solid var(--ll-border);
}

.ll-statusbar-spacer {
  height: env(safe-area-inset-top, 0px);
}

.ll-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ll-greeting h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.ll-form-common-error{
  color: red;
    padding: 8px;
}
.ll-greeting p {
  margin: 0;
  color: var(--ll-text-secondary);
  font-size: 13.5px;
}

.ll-header-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.ll-icon-btn {
  position: relative;
  /* width: 38px; */
  height: 38px;
  /* border-radius: var(--ll-radius-pill); */
  /* background: var(--ll-bg); */
  /* border: 1px solid var(--ll-border); */
  border: none;
    background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 181, 85, 1);
}

.ll-icon-btn .ll-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--ll-radius-pill);
  background: var(--ll-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ll-bg);
}

.ll-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--ll-radius-pill);
  object-fit: cover;
  border: 1px solid var(--ll-border);
}

.ll-back-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--ll-radius-pill);
  background: var(--ll-bg);
  border: 1px solid var(--ll-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.ll-page-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ll-page-title h1 {
  font-size: 20px;font-family: var(--ll-font2);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.ll-card {
  background: var(--ll-card-bg);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  padding: 16px;
  box-shadow: var(--ll-shadow-card);
}

.ll-section {
  padding: 18px 20px 0;
}

.ll-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ll-section-head h2 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0;
}

.ll-link-accent {
  color: var(--ll-primary);
  font-size: 13.5px;
  font-weight: 600;
}

/* ==========================================================================
   Bottom Navigation
   ========================================================================== */

.ll-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--ll-mobile-max);
  margin: 0 auto;
  height: var(--ll-bottom-nav-height);
  background: var(--ll-bg);
  border-top: 1px solid var(--ll-border);
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: env(safe-area-inset-bottom, 10px);
  z-index: 1000;
}

.ll-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ll-text-muted);
  font-size: 11px;
  font-weight: 500;
}

.ll-nav-item i {
  font-size: 20px;
}

.ll-nav-item.active {
  color: var(--ll-primary);
}

.ll-nav-sos-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.ll-nav-sos {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 78px;
  border-radius: var(--ll-radius-pill);
  background: rgba(255, 17, 0, 1);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  box-shadow: 0px 4.24px 4.24px 0px rgba(0, 0, 0, 0.25);

  /* border: 4px solid var(--ll-bg); */
  text-align: center;
}

.ll-nav-sos i {
  font-size: 15px;
  margin-bottom: 2px;
}

/* New structural elements — hidden on mobile (bottom bar keeps the exact
   Figma layout), shown only in the desktop/tablet sidebar (see the
   >= 768px override below). */

.ll-nav-brand,
.ll-nav-user {
  display: none;
}

.ll-nav-items {
  display: contents; /* mobile: items participate directly in the flex row */
}
/* ==========================================================================
   Buttons
   ========================================================================== */

.ll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--ll-radius-pill);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 20px;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.ll-btn:active {
  transform: scale(0.98);
}

.ll-btn-primary {
  background: var(--ll-primary);
  color: #fff;
}

.ll-btn-primary:hover {
  background: var(--ll-primary-dark);
  color: #fff;
}

.ll-btn-outline {
  background: var(--ll-bg);
  color: var(--ll-text-primary);
  border: 1.5px solid var(--ll-border);
}

.ll-btn-outline.active,
.ll-btn-outline[aria-pressed="true"] {
  background: var(--ll-primary);
  border-color: var(--ll-primary);
  color: #fff;
}

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

.ll-btn .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

/* pill chip / toggle buttons (used in check-in triggers) */
.ll-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--ll-radius-pill);
  border: 1.5px solid var(--ll-border);
  background: var(--ll-bg);
  color: var(--ll-text-primary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ll-chip.active {
  background: var(--ll-primary);
  border-color: var(--ll-primary);
  color: #fff;
}

/* ==========================================================================
   Form elements
   ========================================================================== */

.ll-form-group {
  margin-bottom: 18px;
}

.ll-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ll-text-primary);
}

.ll-form-control {
  width: 100%;
  border: 1.5px solid var(--ll-border);
  border-radius: var(--ll-radius-sm);
  padding: 13px 15px;
  font-size: 14.5px;
  font-family: var(--ll-font);
  background: var(--ll-bg-subtle);
  color: var(--ll-text-primary);
  transition: border-color 0.15s ease;
}

.ll-form-control:focus {
  outline: none;
  border-color: var(--ll-primary);
  background: var(--ll-bg);
}

.ll-form-control.is-invalid {
  border-color: var(--ll-danger);
}

.ll-field-error {
  color: var(--ll-danger);
  font-size: 12.5px;
  margin-top: 6px;
  display: none;
}

.ll-field-error.show {
  display: block;
}

textarea.ll-form-control {
  resize: vertical;
  min-height: 90px;
}

/* ==========================================================================
   Loading spinner overlay (bootstrap icon-based)
   ========================================================================== */

.ll-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.ll-loading-overlay.show {
  display: flex;
}

.ll-loading-overlay .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--ll-primary);
}

.ll-btn-spinner {
  display: none;
}

.ll-btn.loading .ll-btn-spinner {
  display: inline-block;
}

.ll-btn.loading .ll-btn-label {
  opacity: 0.85;
}

/* ==========================================================================
   Toast (custom, app-style)
   ========================================================================== */

.ll-toast-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.ll-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #262626;
  color: #fff;
  padding: 13px 15px;
  border-radius: var(--ll-radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--ll-shadow-md);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ll-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ll-toast i {
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.ll-toast-success { background: #1F7A44; }
.ll-toast-error   { background: #C13333; }
.ll-toast-info    { background: #2B2B2B; }
.ll-toast-warning { background: #A66A0E; }

/* ==========================================================================
   Custom confirm modal
   ========================================================================== */

.ll-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  z-index: 4000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.ll-confirm-backdrop.show {
  display: flex;
}

.ll-confirm-box {
  background: var(--ll-bg);
  width: 100%;
  max-width: var(--ll-mobile-max);
  border-radius: 22px 22px 0 0;
  padding: 24px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.ll-confirm-backdrop.show .ll-confirm-box {
  transform: translateY(0);
}

.ll-confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--ll-radius-pill);
  background: var(--ll-danger-soft);
  color: var(--ll-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
}

.ll-confirm-title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.ll-confirm-message {
  font-size: 13.5px;
  color: var(--ll-text-secondary);
  text-align: center;
  margin-bottom: 22px;
}

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

.ll-confirm-actions .ll-btn {
  flex: 1;
}

/* ==========================================================================
   Shared small components
   Used across multiple pages (Connected lists, Beacon, Manage, etc.) —
   defined once here rather than duplicated per-page CSS file.
   ========================================================================== */

.ll-icon-action {
  width: 36px;
  height: 36px;
  border-radius: var(--ll-radius-pill);
  background: var(--ll-bg-subtle);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ll-text-primary);
}

.ll-icon-action:hover {
  background: var(--ll-primary-soft);
  color: var(--ll-primary);
}

.ll-empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--ll-text-muted);
}

.ll-empty-state i {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
  color: var(--ll-border);
}

.ll-empty-state p {
  font-size: 13.5px;
  margin: 0;
}

/* Generic small round close/dismiss button — used in sheets/modals
   across multiple pages (Beacon picker, Progress day sheet, etc.) */
.ll-picker-close {
  width: 30px;
  height: 30px;
  border-radius: var(--ll-radius-pill);
  background: var(--ll-bg-subtle);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ll-text-primary);
  flex-shrink: 0;
}

/* Generic pagination control — used on any list page with server-side
   pagination (Meetings list, and any future paginated list). */
.ll-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px 4px;
  flex-wrap: wrap;
}

.ll-pg-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--ll-radius-sm);
  border: 1.5px solid var(--ll-border);
  background: var(--ll-bg);
  color: var(--ll-text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-pg-btn.active {
  background: var(--ll-primary);
  border-color: var(--ll-primary);
  color: #fff;
}

.ll-pg-btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.ll-pg-ellipsis {
  color: var(--ll-text-muted);
  font-size: 12.5px;
  padding: 0 2px;
}

/* Generic loading skeleton block — used while page data is being fetched.
   Page CSS files can override height/border-radius via inline style or a
   more specific selector; this just provides the shimmer animation. */
.ll-plan-skeleton {
  height: 58px;
  border-radius: var(--ll-radius-md);
  background: linear-gradient(90deg, var(--ll-border) 25%, #f5f2ee 37%, var(--ll-border) 63%);
  background-size: 400% 100%;
  animation: llSkeletonShimmer 1.4s ease infinite;
}

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


/* Generic bottom-sheet shell (backdrop + slide-up sheet + header) — used
   wherever a page needs a modal sheet with custom content inside
   (Beacon's person picker, Places to Avoid's add-place form, etc.).
   Page-specific content that goes INSIDE the sheet (e.g. Beacon's
   .ll-picker-row/.ll-picker-list) stays in that page's own CSS file —
   only the reusable shell lives here. */
.ll-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  z-index: 4200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.ll-picker-backdrop.show {
  display: flex;
}

.ll-picker-sheet {
  background: var(--ll-bg);
  width: 100%;
  max-width: var(--ll-mobile-max);
  border-radius: 22px 22px 0 0;
  max-height: 80vh;
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.ll-picker-backdrop.show .ll-picker-sheet {
  transform: translateY(0);
}

.ll-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--ll-border);
}

.ll-picker-header h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0;
}

@media (min-width: 768px) {
  .ll-picker-backdrop {
    align-items: center;
  }

  .ll-picker-sheet {
    max-width: 440px;
    border-radius: var(--ll-radius-lg);
    max-height: 70vh;
  }
}
/* Generic toggle switch (checkbox styled as an iOS-style switch) — used
   wherever a page has an on/off setting (Family notification toggles,
   Places to Avoid's Risk Detection toggle, etc.). */
.ll-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.ll-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ll-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--ll-border);
  border-radius: var(--ll-radius-pill);
  transition: background-color 0.2s ease;
}

.ll-switch-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ll-switch input:checked + .ll-switch-slider {
  background-color: var(--ll-primary);
}

.ll-switch input:checked + .ll-switch-slider::before {
  transform: translateX(20px);
}
/* ==========================================================================
   Utility
   ========================================================================== */

.ll-text-muted    { color: var(--ll-text-muted); }
.ll-text-secondary{ color: var(--ll-text-secondary); }
.ll-text-primary-accent { color: var(--ll-primary); }
.ll-fw-600 { font-weight: 600; }
.ll-fw-700 { font-weight: 700; }

/* ==========================================================================
   RESPONSIVE — Tablet & Desktop
   Mobile: exact Figma phone layout (default styles above).
   >= 768px: transitions to a website-style layout.
   ========================================================================== */

@media (min-width: 768px) {
  body {
    background: var(--ll-bg-subtle);
  }

  .ll-app {
    max-width: 100%;
  }

  .ll-app-body {
    padding-bottom: 32px;
  }

  /* ---- Sidebar shell ---- */
  .ll-bottom-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    max-width: 256px;
    width: 256px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    border-top: none;
    border-right: 1px solid var(--ll-border);
    gap: 0;
    background: var(--ll-bg);
  }

  /* ---- Brand header ---- */
  .ll-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 22px 20px;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ll-text-primary);
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--ll-border);
    margin-bottom: 18px;
  }

  .ll-nav-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: var(--ll-radius-sm);
    background: linear-gradient(135deg, var(--ll-primary) 0%, var(--ll-primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
  }

  /* ---- Nav items ---- */
  .ll-nav-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 14px;
  }

  /* DOM order (for correct mobile SOS centering) is:
     brand, items-top, sos-wrap, items-bottom, user.
     On desktop we want: brand, items-top, items-bottom, sos-wrap, user —
     reordered visually with `order` rather than moved in the DOM, so the
     mobile flex-row centering logic doesn't need a second markup variant. */
  .ll-nav-items-top   { order: 1; margin-bottom: 3px; }
  .ll-nav-items-bottom{ order: 2; }
  .ll-nav-sos-wrap     { order: 3; }
  .ll-nav-user         { order: 4; }

  .ll-nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 13px;
    padding: 11px 14px;
    border-radius: var(--ll-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--ll-text-secondary);
    transition: background 0.15s ease, color 0.15s ease;
  }

  .ll-nav-item:hover {
    background: var(--ll-bg-subtle);
    color: var(--ll-text-primary);
  }

  .ll-nav-item.active {
    background: var(--ll-primary-soft);
    color: var(--ll-primary-dark);
    font-weight: 700;
  }

  .ll-nav-item i {
    font-size: 17px;
    width: 20px;
    text-align: center;
  }

  /* ---- SOS button ---- */
  .ll-nav-sos-wrap {
    flex: 0 0 auto;
    justify-content: flex-start;
    margin-top: auto;
    padding: 18px 14px 14px;
  }

  .ll-nav-sos {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    border-radius: var(--ll-radius-sm);
    padding: 12px;
    border: none;
    gap: 8px;
    font-size: 13px;
    box-shadow: none;margin-left: 70px;
  }

  .ll-nav-sos i {
    font-size: 14px;
    margin-bottom: 0;
  }

  .ll-nav-sos-label br {
    display: none; /* "Need Help Now" on one line at this width */
  }

  /* ---- User account footer ---- */
  .ll-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--ll-border);
    color: var(--ll-text-primary);
  }

  .ll-nav-user:hover {
    background: var(--ll-bg-subtle);
  }

  .ll-nav-user img {
    width: 36px;
    height: 36px;
    border-radius: var(--ll-radius-pill);
    object-fit: cover;
    flex-shrink: 0;
  }

  .ll-nav-user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }

  .ll-nav-user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ll-nav-user-link {
    font-size: 11.5px;
    color: var(--ll-text-muted);
  }

  .ll-nav-user > i {
    font-size: 13px;
    color: var(--ll-text-muted);
    flex-shrink: 0;
  }

  .ll-main-with-sidebar {
    margin-left: 256px;
    max-width: 1100px;
    padding: 32px 40px 60px;
  }
}

@media (min-width: 1200px) {
  .ll-main-with-sidebar {
    padding: 40px 56px 60px;
  }
}

.ll-risk-alert-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--ll-danger-soft);
  border: 1px solid #F3C9C9;
  border-radius: var(--ll-radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.ll-risk-alert-card:last-child {
  margin-bottom: 0;
}

.ll-risk-alert-card i {
  color: var(--ll-danger);
  font-size: 17px;
  margin-top: 1px;
  flex-shrink: 0;
}

.ll-risk-alert-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ll-danger);
  margin: 0 0 4px;
}

.ll-risk-alert-card p {
  font-size: 12px;
  color: #8A3A3A;
  margin: 0;
  line-height: 1.5;
}

/* "+" quick-add menu */
.ll-quickadd-backdrop { position: fixed; inset: 0; background: rgba(20,20,20,0.45); z-index: 4300; display: none; align-items: flex-end; justify-content: center; }
.ll-quickadd-backdrop.show { display: flex; }
.ll-quickadd-sheet { background: var(--ll-bg); width: 100%; max-width: var(--ll-mobile-max); border-radius: 22px 22px 0 0; padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px)); max-height: 80vh; overflow-y: auto; transform: translateY(100%); transition: transform 0.25s ease; }
.ll-quickadd-backdrop.show .ll-quickadd-sheet { transform: translateY(0); }
.ll-quickadd-item { display: flex; align-items: center; gap: 14px; padding: 15px 22px; color: var(--ll-text-primary); text-decoration: none; }
.ll-quickadd-item i { font-size: 19px; color: var(--ll-primary); width: 24px; text-align: center; }
.ll-quickadd-item span { font-size: 14.5px; font-weight: 600; }
.ll-quickadd-fab { position: fixed; right: 20px; bottom: calc(var(--ll-bottom-nav-height) + 14px); width: 54px; height: 54px; border-radius: 50%; background: var(--ll-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; border: none; box-shadow: var(--ll-shadow-md); z-index: 900; }

@media (min-width: 768px) {
  .ll-quickadd-fab { right: 40px; bottom: 40px; }
}