/* Using Google Fonts instead of local files */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800;900&display=swap');
  
  /* color tokens */
  :root{
    --color-zinc-50:#FAFAFA;
    --color-zinc-100:#F4F4F5;
    --color-zinc-200:#E4E4E7;
    --color-zinc-300:#D4D4D8;
    --color-zinc-400:#A1A1AA;
    --color-zinc-500:#71717A;
    --color-zinc-600:#52525B;
    --color-zinc-700:#3F3F46;
    --color-zinc-720:#2D2D2F;
    --color-zinc-800:#27272A;
    --color-zinc-810:#1F1F23;
    --color-zinc-900:#18181B;
    --color-zinc-905: #131316;
    --color-zinc-910: #131315;
    --color-zinc-920: #0C0C0E;
    --color-zinc-950:#09090B;

    --font-sans:'Figtree', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;

    /* shadow tokens */
    --shadow-med: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* focus color */
    --color-focus: #93c5fd;
  }

  /* Global focus styles for all clickable elements */
  button:focus-visible,
  a:focus-visible,
  .nav-tab:focus-visible,
  .sidebar-toggle:focus-visible,
  .modal-close:focus-visible,
  .btn-cancel:focus-visible,
  .btn-continue:focus-visible,
  [role="button"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-focus);
  }
  
.heading-1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-family: var(--font-sans);
}
.heading-2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
}
.subheading-1 {
  font-size: 1rem;
  font-weight: 300;
  font-family: var(--font-sans);
}
.subheading-2{
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-family: var(--font-sans);
}
.body-1 {
  font-size:0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-family: var(--font-sans);
  line-height: 1.5;
}
.body-2 {
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-sans);
  line-height: 1.5;
}
.body-3{
  font-size: 0.75rem;
  font-weight: 400;
  font-family: var(--font-sans);
  line-height: 1.5;
}
.caption-1 {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--font-sans);
  font-style: italic;
}
.overline-1 {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  font-family: var(--font-sans);
  text-transform: uppercase;
}
.button-1 {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
  text-transform: uppercase;
}
.button-2 {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
}

.link {
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--color-zinc-400);
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 9%;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.link:hover {
  color: var(--color-zinc-500);
}

.body-1 .link {
  text-decoration-thickness: 7.5%;
  font-size: inherit;
}

  /* base */
  *{ box-sizing:border-box; }
  html, body {
    height: 100%;
    overflow: hidden;
  }
  body{
    margin:0;
    font-family:var(--font-sans);
    background:var(--color-zinc-920);
    color:var(--color-zinc-50);
    font-size: 16px;
  }

  /* Page scrollbars: white 24% */
  .content,
  .sidebar,
  .page-container,
  .sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
  }
  .content::-webkit-scrollbar,
  .sidebar::-webkit-scrollbar,
  .page-container::-webkit-scrollbar,
  .sidebar-nav::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  .content::-webkit-scrollbar-track,
  .sidebar::-webkit-scrollbar-track,
  .page-container::-webkit-scrollbar-track,
  .sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
  }
  .content::-webkit-scrollbar-thumb,
  .sidebar::-webkit-scrollbar-thumb,
  .page-container::-webkit-scrollbar-thumb,
  .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
    border-radius: 3px;
  }
  .content::-webkit-scrollbar-thumb:hover,
  .sidebar::-webkit-scrollbar-thumb:hover,
  .page-container::-webkit-scrollbar-thumb:hover,
  .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.24);
  }

  /* Main container - two column layout */
  .main-container {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
  }

  /* Left sidebar */
  .sidebar {
    width: 16.25rem;
    background: var(--color-zinc-920);
    /* border-right: 1px solid var(--color-zinc-810); */
    overflow-y: auto;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
  }

  /* Sidebar toggle overlay */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 25; /* Below sidebar (30) but above content */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* Active state for sidebar overlay */
  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* Active state for sidebar on mobile */
  body.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 2rem rgba(0,0,0,0.5); /* Similar to modal shadow */
  }

  /* Mobile header */
  .mobile-header {
    padding: 1rem;
    display: block; /* Keep it in the DOM */
    opacity: 0; /* Invisible by default */
    pointer-events: none; /* Not clickable when invisible */
    position: relative;
    z-index: 20;
  }

  /* On desktop: take mobile header out of flow (it's a sibling of .content now) */
  @media (min-width: 1024px) {
    .main-container {
      position: relative;
    }
    .mobile-header {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 20;
    }
  }

  /* Sidebar toggle button */
  .sidebar-toggle {
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--color-zinc-300);
    transition: background-color 0.2s ease;
  }

  .sidebar-toggle i {
    font-size: 1.5rem; /* Adjust icon size if needed */
    width: 1.5rem;
    height: 1.5rem;
  }

  .sidebar-toggle:hover {
    background-color: var(--color-zinc-810);
  }

  /* Responsive: Fixed on mobile, sticky on lg (1024px+) */
  @media (max-width: 1023px) {
    .sidebar {
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      background: var(--color-zinc-910);
      border-right: 1px solid var(--color-zinc-800);
    }
    .content {
      margin-left: 0 !important;
      width: 100% !important;
    }
    /* Mobile header floats above content; out of flow so it doesn't push content down */
    .mobile-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 24;
      opacity: 1;
      pointer-events: auto;
      background-color: var(--color-zinc-910);
    }
  }

  @media (min-width: 1024px) {
    .sidebar {
      position: sticky;
      top: 0;
      transform: translateX(0);
    }
  }

  /* Sidebar top section: Profile */
  .sidebar-top {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-start;
    flex-shrink: 0;
  }

  /* Avatar */
  .avatar {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 50%;
    background-image: url('Public/Profiles/michelle.png');
    background-size: 120%;
    background-position: 50%;
    position: relative; /* Needed for overlay positioning */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* Avatar overlay (hidden by default) */
  .avatar-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .avatar-overlay i {
    color: var(--color-zinc-50);
    font-size: 1.5rem;
  }

  /* Only show overlay on hover IF sidebar is in 'open' state (mobile drawer) */
  body.sidebar-open .avatar:hover .avatar-overlay {
    opacity: 1;
    cursor: pointer;
  }

  /* Disable avatar hover effect on larger screens (1024px+) */
  @media (min-width: 1024px) {
    body.sidebar-open .avatar:hover .avatar-overlay {
      opacity: 0;
      cursor: default;
    }
  }

  /* Profile text container */
  .profile-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
  }

  /* Profile text styles */
  .profile-text .body-2 {
    color: var(--color-zinc-50);
  }

  .profile-text .body-1 {
    color: var(--color-zinc-400);
  }

  /* Sidebar navigation section */
  .sidebar-nav {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.125rem;
    /* Performance: optimize scroll */
    -webkit-overflow-scrolling: touch;
  }

  /* Navigation tab - default/inactive state */
  .nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    width: 100%;
    min-width: 0; /* Ensure tab allows shrinking of contents */
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  /* Icon switching on hover */
  .nav-icon-wrapper {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent shrinking */
  }

  .nav-icon-wrapper .nav-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .nav-icon-wrapper .hover-icon {
    opacity: 0;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
  }

  .nav-tab:hover .nav-icon-wrapper .default-icon {
    opacity: 0;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
  }

  .nav-tab:hover .nav-icon-wrapper .hover-icon {
    opacity: 1;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
  }

  /* Utility class for tabs with right-aligned lock icon */
  .nav-tab-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
    min-width: 0; /* Allow shrinking */
  }

  .nav-lock-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--color-zinc-500);
    flex-shrink: 0;
    margin-left: auto; /* Pushes it to the right end if container is flex */
  }

  /* Arrow icon - hidden by default, shown on hover */
  .nav-arrow-icon {
    color: var(--color-zinc-400);
    opacity: 0;
  }

  .nav-tab:hover .nav-arrow-icon {
    color: var(--color-zinc-400);
    opacity: 1;
  }
  
  /* Icon styling */
  .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
    color: var(--color-zinc-400);
    flex-shrink: 0; /* Prevent shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
  }

  /* Text styling */
  .nav-text {
    color: var(--color-zinc-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  /* Inactive/default state */
  .nav-tab:not(.active) {
    background-color: transparent;
  }

  .nav-tab:not(.active) .nav-icon {
    color: var(--color-zinc-400);
  }

  .nav-tab:not(.active) .nav-text {
    color: var(--color-zinc-400);
  }

  /* Hover state - applies to both active and inactive */
  .nav-tab:hover {
    background-color: var(--color-zinc-800);
  }

  /* Active state */
  .nav-tab.active {
    background-color: var(--color-zinc-800);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08), 0 2px 40px 0 rgba(0, 0, 0, 0.06), 0 8px 24px 0 rgba(0, 0, 0, 0.10);
  }

  .nav-tab.active .nav-text {
    color: var(--color-zinc-50);
  }

  .nav-tab.active .nav-icon {
    color: var(--color-zinc-400);
  }

  /* Navigation divider */
  .nav-divider {
    width: 100%;
    height: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-divider::after {
    content: '';
    width: 100%;
    height: 1px;
    background-color: var(--color-zinc-800);
  }

  /* Navigation subheading */
  .nav-subheading {
    width: 100%;
    padding: 0.5rem;
    color: var(--color-zinc-500);
    text-align: left;
  }

  /* Right content area */
  .content {
    flex-grow: 1;
    flex: 1;
    min-width: 0;
    margin-left: 16.25rem; /* Account for fixed sidebar on mobile */
    width: calc(100% - 16.25rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border-top-left-radius: 2.5rem;
    border-left: 1px solid var(--color-zinc-800);
    background:var(--color-zinc-910);
  }

  /* On large screens, content adjusts for sticky sidebar */
  @media (min-width: 1024px) {
    .content {
      position: relative;
      margin-left: 0;
      width: 100%;
    }
  }

  /* hero layout */
  .hero{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;        /* Centers children horizontally */
    justify-content: center;    /* Centers vertically */
    overflow: hidden;           /* Prevents scrolling */
    position: relative;
  }

  .hero-title{
    margin:0;
    font-weight:400;
    font-style: italic;
    font-size: 32px;
    color:var(--color-zinc-300);
    text-align:center;
    transition: opacity 600ms ease-out 800ms, transform 2400ms ease-out 800ms;
  }

  .hero-title.exit {
    opacity: 0;
    transform: translateY(-200px);
  }
  

  /* animation transition */
  #animation {
    transition: opacity 3s ease-in-out;
  }

  /* input container: floats at bottom, doesn't push page content */
  .input-container {
    position: absolute;
    bottom: 1rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 5;
    pointer-events: auto;
  }

  /* Desktop: centered with max-width */
  @media (min-width: 768px) {
    .input-container {
      left: 50%;
      right: auto;
      transform: translateX(-50%);
      width: 100%;
      max-width: 40rem;
    }
  }

  /* input bar */
  .input-shell{
    height: auto;
    background: color-mix(in srgb, var(--color-zinc-800) 70%, transparent);
    border:1px solid rgba(255,255,255,.06);
    border-radius:1rem;
    padding:0.875rem;
    display:flex; 
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    gap: 0.5rem;
    position: relative;
    z-index: 101;
    pointer-events: auto;
    box-sizing: border-box;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08), 0 4px 8px 0 rgba(0, 0, 0, 0.24);
  }

/* .input-shell:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transition: 0.4s;
} */

  .input-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(38, 38, 42, 8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
  }

  .input-shell:hover::before {
    opacity: 1;
  }

  /* First wrapper: hugs height of text (as long as it wants) */
  .input-text-hug {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  /* Second wrapper: max 8.75rem, scrollable when content exceeds */
  .input-text-scroll {
    position: relative;
    max-height: 8.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  }
  .input-text-scroll::-webkit-scrollbar {
    width: 6px;
  }
  .input-text-scroll::-webkit-scrollbar-track {
    background: transparent;
  }
  .input-text-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 3px;
  }
  /* No hover change so scrollbar doesn’t expand or shift on hover */
  .input-text-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  /* .input-shell:focus-within {
    border-color: rgba(255, 255, 255, 0.1);
  } */
  
  /* text area */
  #chatInput{
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
    width: 100%; /* Full width */
    background: none;
    border: 0;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    resize: none; 
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow: hidden; /* Scroll is on .input-text-scroll, not textarea */
    color: var(--color-zinc-50);
    position: relative;
    z-index: 102;
    pointer-events: auto;
    cursor: text;
    height: 24px; /* Start with one line height (16px font * 1.5 line-height) */
    line-height: 1.5;
    padding: 0 0 0 0.375rem !important;
    margin: 0 !important;
    vertical-align: top;
  }

  /* When inside scroll wrapper, textarea sizes to content (scroll div handles max height) */
  .input-text-scroll #chatInput {
    flex: none;
  }
  
  /* When wrapped, ensure textarea is full width */
  .input-shell.wrapped #chatInput {
    width: 100%;
    align-self: stretch; /* Stretch to full width in column layout */
  }

  /* Shimmer placeholder overlay - JavaScript-based solution */
  .shimmer-placeholder {
    position: absolute;
    top: 50%;
    left: 0.375rem;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--font-sans);
    line-height: 1.5;
    color: transparent;
    background: linear-gradient(
      90deg,
      var(--color-zinc-400) 0%,
      var(--color-zinc-400) 30%,
      var(--color-zinc-300) 40%,
      var(--color-zinc-200) 45%,
      var(--color-zinc-100) 50%,
      var(--color-zinc-200) 55%,
      var(--color-zinc-300) 60%,
      var(--color-zinc-400) 70%,
      var(--color-zinc-400) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s linear infinite;
    z-index: 101;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  @keyframes shimmer {
    0% {
      background-position: 100% 0;
    }
    100% {
      background-position: -100% 0;
    }
  }
  
  /* send button container */
  .send-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0; /* Prevent button from shrinking */
  }
  
  /* When input-shell is in column mode (text wrapped) */
  .input-shell.wrapped .send-container {
    width: 100%; /* Full width when in column layout */
    /* margin-top: 8px; Add spacing when button is on its own row */
    align-self: flex-end; /* Align button container to right */
  }
  
  /* When input-shell is in row mode (one line) */
  .input-shell:not(.wrapped) .send-container {
    width: auto; /* Auto width when on same row */
  }

  /* send button */
  button.send{
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    border:1px solid rgba(255,255,255,.13);
    /* background: var(--color-primary); */
    background: none;
    color:var(--color-zinc-500);
    display:grid; place-items:center;
    cursor:pointer;
    transition: opacity 0.2s;
    opacity: 0;
    position: relative;
    /* height has been removed to let the button naturally hug content */
    z-index: 2;
    /* Always reserve space - don't use visibility: hidden */
    pointer-events: none; /* Disable clicks when hidden */
    flex-shrink: 0; /* Prevent button from shrinking */
  }
  
  /* Only show button when it has the 'enabled' class (when there's text) */
  button.send.enabled {
    opacity: 1 !important;
    pointer-events: auto; /* Enable clicks when visible */
  }

  .button-content {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .button-content i {
    width: 0.875rem !important;
    height: 0.875rem !important;
    font-size: 0.875rem !important;
    flex-shrink: 0;
  }

  .button-content svg {
    width: 0.875rem !important;
    height: 0.875rem !important;
  }
  button.send:hover{
    /* background: var(--color-primary-hover); */
    background: none;
    color:var(--color-zinc-400);
  }
  button.send:focus-visible{ outline:none; box-shadow:0 0 0 2px var(--color-focus); }

  
  /* icon size */
  button.send svg{ width:24px; height:24px; }

  #canvas3d {
    width: min(1000px, 90vw, 90vh);
    height: min(1000px, 90vw, 90vh);
    max-width: 100vw;
    max-height: 100vh;
    display: block;
    margin: 0 auto;              /* Centers horizontally */
    margin-top: clamp(-100px, -10vh, -150px);  /* Vertical positioning */
    position: relative;
    z-index: 1;
    transform: translateY(0);
    object-fit: contain;
    pointer-events: auto;
    cursor: default;
  }

  /* Modal */
  .modal {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--color-zinc-810);
    border-radius: 1rem;
    overflow: hidden;
    z-index: 40;
    max-width: 17.5rem;
  }

  /* Modal top section */
  .modal-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-image {
    height: 12.5rem;
    width: 100%;
    background-image: url('Public/Modal/family.jpg');
    background-size: 110%;
    background-position: 35%;
    background-repeat: no-repeat;
    filter: brightness(0.85) contrast(1.5) saturate(1.1);
    position: relative;
  }

  .modal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise" /></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.4"/></svg>');
    pointer-events: none;
  }

  /* Modal close button */
  .modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: rgba(0, 0, 0, 0.5); /* Increased opacity to compensate for removed blur */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-zinc-50);
  }

  .modal-close i {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
  }

  .modal-close:hover {
    background: rgba(0, 0, 0, 0.28);
  }

  /* Modal bottom section */
  .modal-bottom {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-bottom .body-1 {
    color: var(--color-zinc-50);
  }

  .modal-link {
    color: var(--color-zinc-50);
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 9%;
  text-underline-offset: 12%;
  text-underline-position: from-font;
    cursor: pointer;
  }

  .modal-link:hover {
    color: var(--color-zinc-300);
  }

  /* Hide modal on medium screens and below */
  @media (max-width: 1024px) {
    .modal {
      display: none;
    }
  }

  /* Locked Project Modal */
  .locked-project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .locked-project-modal.active {
    opacity: 1;
    pointer-events: auto;
  }

  .locked-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
  }

  .locked-project-content {
    background: var(--color-zinc-900);
    border: 1px solid var(--color-zinc-700);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 26.25rem;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  /* Icon and text section */
  .icon-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .lock-icon-container {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-zinc-800);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .lock-icon-container i {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    color: var(--color-zinc-50);
  }

  .lock-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .lock-text .body-2 {
    color: var(--color-zinc-50);
  }

  .lock-text-description {
    color: var(--color-zinc-400) !important;
  }

  /* Password input */
  .password-input {
    border-radius: 0.5rem;
    border: 1px solid var(--color-zinc-800);
    background: transparent;
    color: var(--color-zinc-50);
    padding: 0.5rem 0.75rem;
    outline: none;
    transition: border-color 0.3s ease;
  }

  .password-input .body-1 {
    color: inherit;
  }

  .password-input::placeholder {
    color: var(--color-zinc-600);
  }

  .password-input:focus {
    border-color: var(--color-zinc-500);
  }

  /* Password input wrapper: input + show/hide button */
  .password-input-wrapper {
    position: relative;
    width: 100%;
  }

  .password-input-wrapper .password-input {
    padding-right: 2.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Show password button + tooltip wrapper (must override .tooltip-wrapper’s position: relative) */
  .password-input-wrapper .show-password-tooltip-wrapper {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
  }

  .show-password-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    border: none;
    background: transparent;
    color: var(--color-zinc-50);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease;
  }

  .show-password-btn:hover {
    background: var(--color-zinc-800);
  }

  .show-password-btn .show-password-icon {
    font-size: 1rem;
    color: var(--color-zinc-50);
  }

  .show-password-btn[aria-label="Hide password"] .show-password-icon {
    font-size: 1rem;
    color: var(--color-zinc-50);
  }

  /* Show/hide password button: tooltip 0.5rem above, centered */
  .show-password-tooltip-wrapper .tooltip.show-password-tooltip {
    top: auto;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
  }

  /* Password field container + error state */
  .password-field-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .password-field-container.has-error .password-input {
    border-color: #FF4458;
  }

  .password-error-message {
    color: #F70019;
    display: none;
  }

  .password-field-container.has-error .password-error-message {
    display: block;
  }

  /* Action buttons */
  .action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }

  .btn-cancel {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: var(--color-zinc-800);
    cursor: pointer;
    color: var(--color-zinc-100);
  }

  .btn-cancel .button-2 {
    color: inherit;
  }

  .btn-cancel:hover {
    background: var(--color-zinc-720);
  }

  .btn-continue {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: var(--color-zinc-100);
    cursor: pointer;
  }

  .btn-continue .button-2 {
    color: var(--color-zinc-900);
  }

  .btn-continue:disabled {
    background: var(--color-zinc-700);
    color: var(--color-zinc-900);
    cursor: not-allowed;
  }

  /* Snackbar */

  .snackbar {
    display: none;
    padding: 0.75rem;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-zinc-800, #27272A);
    background: var(--color-zinc-920, #0C0C0E);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08), 0 4px 8px 0 rgba(0, 0, 0, 0.24);
  }

  .snackbar-icon {
    font-size: 1.25rem;
    color: var(--color-zinc-400);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .snackbar .body-1 {
    color: var(--color-zinc-50);
  }

  .snackbar-actions {
    display: flex;
    gap: 0.5rem;
    align-self: stretch;
    align-items: center;
  }

  .snackbar-divider {
    width: 1px;
    align-self: stretch;
    background: var(--color-zinc-800);
  }

  .snackbar-action-btn {
    display: flex;
    height: 2rem;
    padding: 0 0.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    border-radius: 0.375rem;
    background: var(--Zinc-900, #18181B);
    border: none;
    cursor: pointer;
    color: var(--color-zinc-400);
  }

  .snackbar-action-btn .button-2 {
    color: var(--color-zinc-400);
  }

  .snackbar-action-btn .snackbar-action-icon {
    color: var(--color-zinc-400);
  }

  .snackbar-action-btn:hover {
    background: var(--color-zinc-800);
  }

  .snackbar-close-btn:hover {
    color: var(--color-zinc-100);
  }

  .snackbar-close-btn {
    display: flex;
    width: 2rem;
    height: 2rem;
    justify-content: center;
    align-items: center;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-zinc-400);
    padding: 0;
    flex-shrink: 0;
  }

  .snackbar-close-btn .snackbar-close-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .snackbar-action-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .snackbar-create {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: auto;
  }

  .content.lab-view .snackbar-create {
    display: inline-flex;
  }

  /* Child tab styling */
  .nav-group {
    display: flex;
    flex-direction: column;
  }

  .nav-children {
    display: none;
  }

  .nav-group.expanded .nav-children {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }

  .nav-group.expanded .nav-caret {
    transform: rotate(180deg);
  }

  .nav-child-tab {
    padding-left: 0.5rem;
  }

  .nav-child-tab .nav-icon {
    opacity: 0;
    width: 0;
  }

  /* Tooltip component styles */
  .tooltip-wrapper {
    position: relative;
    display: inline-block;
  }

  .tooltip {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: var(--color-zinc-900);
    color: var(--color-zinc-50);
    border: 1px solid var(--color-zinc-720);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-med);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 50;
  }

  /* Small tooltip variant */
  .tooltip.tooltip-sm {
    padding: 0.375rem 0.5rem;
  }

  /* Show tooltip on parent hover */
  .tooltip-wrapper:hover .tooltip {
    opacity: 1;
    visibility: visible;
  }

  /* Avatar tooltip should only show when sidebar is in open state on smaller screens */
  #avatarTooltip {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  body.sidebar-open .tooltip-wrapper:hover #avatarTooltip {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Hide avatar tooltip on larger screens (1024px+) */
  @media (min-width: 1024px) {
    #avatarTooltip {
      display: none !important;
    }
  }

  /* Cursor-following tooltip for truncated nav tabs */
  .nav-text-tooltip {
    position: fixed;
    background-color: var(--color-zinc-900);
    color: var(--color-zinc-50);
    border: 1px solid var(--color-zinc-720);
    border-radius: 0.5rem;
    padding: 0.25rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    box-shadow: var(--shadow-med);
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
  }

  .nav-text-tooltip.visible {
    opacity: 1;
    visibility: visible;
  }

  /* Page Container */
  .page-container {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-container.active {
    display: flex;
  }

  .page-inner {
    width: calc(100% - 2rem);
    justify-content: center;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 8rem;
    padding-top: 5rem; /* Space from top of scroll area to page content */
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Gap between page-header and content */
  }

  @media (min-width: 768px) {
    .page-inner {
      max-width: 40rem;
      margin-left: auto;
      margin-right: auto;
    }
  }

  @media (min-width: 1024px) {
    .page-inner {
      max-width: 48rem;
    }
  }

  .page-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2rem;
    /* Performance: isolate from repaints */
    contain: layout style;
  }

  /* Hide hero and input when page is active */
  .content.page-open .hero,
  .content.page-open .input-container {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
  }

  /* Hide hero and input on home (blank home page) */
  .content.home-blank .hero,
  .content.home-blank .input-container {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
  }

  /* Lab (create) view: explicitly show hero and input so they are visible and interactive */
  .content.lab-view .hero {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: relative;
  }
  .content.lab-view .input-container {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: absolute;
  }

/* ============================================== */
/* page components */
/* ============================================== */

.page-header {
  display: flex;
  padding-top: 1rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.page-header .heading-1 {
  color: var(--color-zinc-200);
}

.page-header .subheading-1 {
  color: var(--color-zinc-300);
}

.page-break {
  display: flex;
  padding: 1.5rem;
  flex-direction: column;
  justify-content: flex-start;
  gap:0.5rem;
  
  background: var(--color-zinc-810);
  border-left: 2px solid var(--color-zinc-600);

  color: var(--color-zinc-200);
}

.page-break .heading-2 {
  color: var(--color-zinc-200);
}

.callout {
  display:flex;
  flex-direction: row;
  padding: 0.5rem 1.5rem;
  align-items: flex-start;
  gap: 1rem;

  border-left: 2px solid var(--color-zinc-600);
}

.callout-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.callout-text .body-2 {
  color: var(--color-zinc-200);
}

.callout-icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
}

.callout-1 {
  display: flex;
  flex-direction: row;
  padding: 1.5rem;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-zinc-810);
  border-left: 2px solid #78350F;
}

.callout-1 .callout-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.callout-1 .callout-text .body-2 {
  color: var(--color-zinc-200);
}

.callout-1 .callout-icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
  color: #F59E0B;
}

.page-content-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-content-text-title{
  padding-bottom: 1rem;
}

.page-content-text-title .heading-2 {
  color: var(--color-zinc-200);
}

.page-content-text-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.page-content-text-body .body-2 {
  color: var(--color-150);
}

.page-content-text-body .heading-2 + .body-2 {
  margin-top: 0.75rem; /* 0.75rem + 0.25rem gap = 1rem total */
}

.page-content-text-body .body-2 + .heading-2 {
  margin-top: 0.75rem; /* Add space before a heading that follows body text */
}

/* Bullet list */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.25rem;
}

.bullet-list .body-2 {
  position: relative;
}

.bullet-list .body-2::before {
  content: "•";
  position: absolute;
  left: -1rem;
  color: var(--color-zinc-50);
}

/* Numbered list */
.numbered-item {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: flex-start;
}

.numbered-item-number {
  flex-shrink: 0;
}

.numbered-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.25rem 0.5rem;
  gap: 0.25rem;

  border-radius: .75rem;
  background: var(--color-zinc-700);
}

.badge .body-1 {
  color: var(--color-zinc-100);
}

.badge .badge-icon {
  width: 1rem;
  height: 1rem;
  font-size: 1rem;
}

/* ============================================== */
/* table components */
/* ============================================== */

.table-header {
  min-height: 2.75rem;
  display: flex;
  flex-direction: row;
  padding: 0.75rem 1.5rem 0.75rem 0.5rem;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 10rem;
  /* max-width: 13.75rem; */

  border-bottom: 2px solid var(--color-zinc-600);
}

.table-header .overline-1 {
  color: var(--color-zinc-200);
}

.table-header-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-zinc-500);
}

.table-cell {
  min-height: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  align-items: center;
  gap: 0.5rem;

  border-bottom: 1px solid var(--color-zinc-700);
}

.table-cell-profile {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.table-cell-profile img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.table-cell .body-2 {
  color: var(--color-zinc-200);
}

/* Profile Tag Component */
.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.profile-tag-img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.profile-tag-name {
  color: var(--color-zinc-200);
}

.table {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-auto-flow: row dense;
  width: 100%;
}

.table-headers,
.table-cells {
  display: contents;
}

.table-header {
  grid-column: 1;
}

.table-cell {
  grid-column: 2;
}

/* ============================================== */
/* media container (wrapper for media + caption) */
/* ============================================== */

.media-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.media-container .caption {
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
}

.media-container .caption .caption-1 {
  color: var(--color-zinc-500);
}

/* ============================================== */
/* media (image or video) */
/* ============================================== */

.media {
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}

.media img,
.media video {
  width: 100%;
  display: block;
}

/* ============================================== */
/* video specific */
/* ============================================== */

.media-video {
  cursor: pointer;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4); /* Simpler solid background - much faster than blur */
  color: var(--color-zinc-50);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.play-button i {
  width: 2rem;
  height: 2rem;
  font-size: 2rem;
}

.btm-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* video hover state */
.media-video:hover .play-button {
  opacity: 0;
}

.media-video:hover .btm-scrim {
  opacity: 1;
}

/* video playing state */
.media-video.playing {
  cursor: default;
}

.media-video.playing .play-button,
.media-video.playing .btm-scrim {
  opacity: 0;
  pointer-events: none;
}

/* Block preview cards: fixed 32rem on desktop, aspect-ratio on mobile so proportions hold */
.block-preview {
  height: 32rem;
  width: 100%;
}
@media (max-width: 767px) {
  .block-preview {
    height: auto;
    aspect-ratio: 40 / 26;
  }
}

/* Block preview images: scale down on smaller screens */
@media (max-width: 767px) {
  .block-preview-img--topleft {
    transform: scale(0.22) !important;
    left: 1rem !important;
    top: 4rem !important;
    border-width: 0.625rem !important;
    border-radius: 1.75rem !important;
  }
  .block-preview-img--center {
    transform: translate(-50%, -50%) scale(0.18) !important;
    border-width: 0.625rem !important;
    border-radius: 5rem !important;
  }
}

/* TikTok block: on hover hide overlay (gradient + images) and play video */
.tiktok-block-preview .tiktok-block-overlay {
  pointer-events: none;
  background: var(--color-zinc-920);
}
.tiktok-block-preview:hover .tiktok-block-overlay {
  opacity: 0;
}
.tiktok-block-preview .tiktok-block-video {
  pointer-events: none;
}

/* Opto block: on hover hide gradient and lockup logo */
.opto-block-preview .opto-block-gradient,
.opto-block-preview .opto-block-lockup {
  transition: opacity 0.25s ease;
}
.opto-block-preview:hover .opto-block-gradient,
.opto-block-preview:hover .opto-block-lockup {
  opacity: 0;
}

/* ============================================== */
/* Comment Component */
/* ============================================== */

.comment {
  background-color: var(--color-zinc-900);
  border-radius: 1rem;
  border: 1px solid var(--color-zinc-720);
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  gap: 0;
  overflow: hidden;
}

/* Hide scrim and button when content doesn't overflow */
.comment:not(.has-overflow) .comment-btm-scrim,
.comment:not(.has-overflow) .comment-full-button {
  display: none;
}

.comment-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  max-height: 40rem;
  align-self: stretch;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.comment-profile {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-profile img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.comment-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 0 0;
  width: 100%;
  padding: 0.5rem 3.5rem 0.5rem 0;
}

.text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.comment-image-container {
  position: relative;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
}

.comment-image {
  width: 100%;
  object-fit: cover;
  display: block;
  cursor: default;
}

.comment-image-container .btm-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.comment-image-container:hover .btm-scrim {
  opacity: 1;
}

.comment-image-button-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.comment-image-container:hover .comment-image-button-wrapper {
  opacity: 1;
  pointer-events: auto;
}

.comment-image-button {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-zinc-50);
}

.comment-image-button:hover {
  color: var(--color-zinc-600);
}

.comment-image-button i {
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

.comment-text-container ol {
  padding-left: 1.25rem;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.comment-text-container ol li {
  margin-bottom: 1rem;
}

.comment-text-container ol li:last-child {
  margin-bottom: 0;
}

.comment-text-container ol li > .comment-image-container,
.comment-text-container ol li > .media-container {
  margin-top: 1rem;
}

.comment-profile-name {
  color: var(--color-zinc-50);
}

.comment-btm-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 7.5rem;
  background: linear-gradient(to bottom, rgba(12, 12, 14, 0) 0%, var(--color-zinc-900) 100%);
  pointer-events: none;
}

.comment-full-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-zinc-900);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.comment-full-button:hover {
  background-color: var(--color-zinc-810);
}

.comment-full-button-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-full-button-icon i {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
  color: var(--color-zinc-700);
  transition: color 0.2s ease;
}

.comment-full-button:hover .comment-full-button-icon i {
  color: var(--color-zinc-600);
}

.comment-content.expanded {
  max-height: none;
}

.comment-content.expanded .comment-btm-scrim {
  display: none;
}

/* ============================================== */
/* Reply Component */
/* ============================================== */

.reply {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-zinc-500);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.reply::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background-color: var(--color-zinc-700);
  margin-right: 0.5rem;
}

.reply:hover {
  color: var(--color-zinc-700);
}

.reply-icon {
  width: 1rem;
  height: 1rem;
  font-size: 1rem;
}



/* Reply Comment (hidden by default) */
.reply-comment {
  display: none;
  flex-direction: row;
  width: 100%;
  max-width: 46.375rem;
  padding: 0 1.5rem;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0;
}

.reply-comment + .reply-comment {
  margin-top: 1rem;
}

.reply-comment.visible {
  display: flex;
}

.reply-comment-profile {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.reply-comment-profile img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.reply-comment-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 3.5rem 0 0;
  gap: 0.25rem;
  flex: 1;
}

.reply-comment-name {
  /* Uses body-1 class */
  color: var(--color-zinc-50);
}

.reply-comment-text {
  color: var(--color-zinc-200);
}

.reply-comment-text ul {
  padding-left: 1.2em;
  margin: 0;
}

.reply-comment-text li {
  color: var(--color-zinc-200);
}

/* Reply container to hold both reply button and reply comment */
.reply-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* When expanded, move button to bottom */
.reply-container.expanded {
  flex-direction: column;
}

.reply-container.expanded .reply {
  order: 2;
  margin-top: 1rem;
}

.reply-container.expanded .reply-comment {
  order: 1;
  margin-top: 0;
}

.reply-container.expanded .reply-comment + .reply-comment {
  margin-top: 1rem;
}

/* Image Fullscreen Overlay */
.image-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-fullscreen-overlay.active {
  opacity: 1;
  visibility: visible;
}

.image-fullscreen-container {
  position: relative;
  display: inline-block;
  max-width: 90vw;
  max-height: 90vh;
}

.image-fullscreen-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  display: block;
}

/* Icon Component */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--color-zinc-720);
  border-radius: 0.25rem;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img,
.icon video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Home Bullets */
.home-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-bullets li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.home-bullets li::before {
  content: '•';
  color: var(--Zinc-500);
  flex-shrink: 0;
}

/* Error Toast */
.error-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--Zinc-800);
  border: 1px solid var(--Zinc-700);
  border-radius: 0.5rem;
  color: var(--Zinc-200);
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.error-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.error-toast i {
  color: #F59E0B;
  font-size: 1.25rem;
}

/* Home Currently Grid */
.currently-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 2rem;
  row-gap: 0.5rem;
  align-self: stretch;
  width: 100%;
}

@media (max-width: 767px) {
  .currently-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.currently-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.currently-grid .body-2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
