    /* Geist Mono Font - loaded via HTML preload for better performance */
    /* Fallback in case font isn't loaded */
    @font-face {
      font-family: 'Geist Mono Fallback';
      src: local('monospace');
    }
    
    :root {
      --avatar-size: 98px;
      --post-gap: 0px;
      --content-padding: 20px;
      --avatar-gap: 20px;
      --sidebar-offset: -3px;
      
      /* Detail page variables - use same values as feed for consistency */
      --detail-avatar-size: var(--avatar-size);
      --detail-reply-gap: 10px;
      --detail-padding: var(--content-padding);
      --detail-avatar-gap: var(--avatar-gap);
    }

    /* Mobile: Tighter spacing */
    @media (max-width: 480px) {
      :root {
        --avatar-size: 42px;
        --content-padding: 11px;
        --avatar-gap: 11px;
        --detail-reply-gap: 6px;
      }
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* Prevent layout shift from scrollbar appearing/disappearing */
    html {
      width: 100%;
    }
    
    body {
      width: 100%;
      overflow-x: hidden;
    }
    
    /* Dark scrollbar styling */
    * {
      scrollbar-width: thin;
      scrollbar-color: #333 transparent;
    }
    
    *::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    
    *::-webkit-scrollbar-track {
      background: transparent;
    }
    
    *::-webkit-scrollbar-thumb {
      background: #333;
      border-radius: 4px;
    }
    
    *::-webkit-scrollbar-thumb:hover {
      background: #444;
    }

    /* Ensure text selection works in all input elements */
    input, textarea, [contenteditable] {
      -webkit-user-select: text;
      -moz-user-select: text;
      -ms-user-select: text;
      user-select: text;
    }

    body {
      background-color: #0d0d0d;
      color: #d0d0d0;
      font-family: 'Geist Mono', monospace;
      font-size: 14px;
      line-height: 1.6;
      min-height: 100vh;
    }

    /* Layout */
    .layout {
      display: block;
      min-height: 100vh;
      min-width: 320px;
    }

    .layout-inner {
      display: flex;
      width: 100%;
      max-width: 990px;
      margin: 0 auto;
      position: relative;
    }

    @media (min-width: 1300px) {
      .layout-inner {
        max-width: 1200px;
      }
    }

    @media (min-width: 1500px) {
      .layout-inner {
        max-width: 1300px;
      }
    }

    /* Sticky Sidebar */
    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      width: 80px;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: flex-start;
      padding: 20px 12px;
      padding-top: var(--content-padding);
      gap: 4px;
      flex-shrink: 0;
      z-index: 1000;
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      margin-top: var(--sidebar-offset);
    }

    .sidebar-bottom {
      margin-top: auto;
      padding-bottom: 12px;
    }

    .sidebar-item {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 12px;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
      color: #aaa;
      position: relative;
    }

    .sidebar-item:hover {
      background: #1a1a1a;
      color: #fff;
    }

    .sidebar-item.active {
      color: #fff;
      background: #1a1a1a;
    }

    .sidebar-item.active svg {
      stroke-width: 2.5;
    }

    .sidebar-item svg {
      width: 24px;
      height: 24px;
      flex-shrink: 0;
    }

    .sidebar-label {
      font-size: 15px;
      font-weight: 400;
      white-space: nowrap;
      display: none;
    }

    .sidebar-item.active .sidebar-label {
      font-weight: 600;
    }

    .sidebar-item-admin {
      color: #aaa;
    }

    .sidebar-item-admin .sidebar-label {
      display: none;
    }

    .sidebar-item-admin:hover {
      background: rgba(239, 68, 68, 0.1);
      color: #ef4444;
    }

    .sidebar-item-admin.active {
      background: rgba(239, 68, 68, 0.15);
      color: #ef4444;
    }

    /* Tooltip for icon-only mode */
    .sidebar-tooltip {
      position: absolute;
      left: calc(100% + 12px);
      top: 50%;
      transform: translateY(-50%);
      background: #333;
      color: #fff;
      padding: 6px 10px;
      border-radius: 6px;
      font-size: 13px;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.15s, visibility 0.15s;
      pointer-events: none;
      z-index: 9999;
    }

    .sidebar-tooltip::before {
      content: '';
      position: absolute;
      right: 100%;
      top: 50%;
      transform: translateY(-50%);
      border: 6px solid transparent;
      border-right-color: #333;
    }

    .sidebar-item:hover .sidebar-tooltip {
      opacity: 1;
      visibility: visible;
    }

    /* Hide tooltip when labels are visible */
    @media (min-width: 1300px) {
      .sidebar-tooltip {
        display: none;
      }
    }

    /* Hide tooltip on mobile bottom bar */
    @media (max-width: 540px) {
      .sidebar-tooltip {
        display: none;
      }
    }

    /* Only show labels on very wide screens */
    @media (min-width: 1300px) {
      .sidebar {
        width: 260px;
        padding: 20px 16px 20px 20px;
        padding-top: var(--content-padding);
      }

      .sidebar-item {
        padding: 12px 16px;
      }

      .sidebar-label {
        display: block;
      }
    }

    @media (max-width: 768px) {
      .sidebar {
        width: 60px;
        padding: 15px 8px;
        padding-top: var(--content-padding);
      }

      .sidebar-item {
        padding: 10px;
      }

      .sidebar-item svg {
        width: 22px;
        height: 22px;
      }
    }

    @media (max-width: 540px) {
      .layout-inner {
        flex-direction: column;
      }

      .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 8px 16px;
        border-top: 1px solid #1a1a1a;
        border-right: none;
        gap: 0;
        background: #0d0d0d;
        z-index: 1000;
      }

      .sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
      }

      .sidebar-item {
        padding: 10px 12px;
        border-radius: 12px;
      }

      .sidebar-item svg {
        width: 24px;
        height: 24px;
      }
    }

    /* Main Content */
    .main {
      flex: 1;
      max-width: 860px;
      min-width: 0;
      border-left: 1px solid #1a1a1a;
      min-height: 100vh;
    }

    @media (max-width: 540px) {
      .main {
        padding-bottom: 70px;
        border-left: none;
      }
    }
    
    @media (max-width: 480px) {
      .main {
        padding-bottom: 60px;
      }
    }

    /* Feed View */
    .feed-view {
      padding: var(--content-padding);
    }
    
    @media (max-width: 480px) {
      .feed-view {
        padding: var(--content-padding);
        padding-top: 8px;
      }
    }

    /* Prompt Section */
    .prompt-section {
      display: flex;
      align-items: flex-start;
      gap: var(--avatar-gap);
      margin-bottom: 24px;
    }

    .prompt-avatar {
      width: var(--avatar-size);
      height: var(--avatar-size);
      border-radius: 50%;
      overflow: hidden;
      flex-shrink: 0;
      background: #1a1a1a;
    }

    .prompt-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    @media (max-width: 768px) {
      .prompt-avatar {
        width: 56px;
        height: 56px;
      }
    }

    @media (max-width: 480px) {
      .prompt-avatar {
        width: var(--avatar-size);
        height: var(--avatar-size);
      }
      
      .prompt-section {
        gap: var(--avatar-gap);
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #1a1a1a;
      }
    }

    .prompt-content {
      flex-grow: 1;
      position: relative;
    }

    .prompt-bubble {
      background-color: #151515;
      border-radius: 12px;
      padding: 14px 14px 10px 14px;
      position: relative;
      min-height: 90px;
    }

    .prompt-bubble::before {
      content: '';
      position: absolute;
      left: -10px;
      top: 24px;
      width: 0;
      height: 0;
      border-top: 10px solid transparent;
      border-bottom: 10px solid transparent;
      border-right: 10px solid #151515;
    }

    @media (max-width: 480px) {
      .prompt-bubble {
        padding: 10px;
        padding-bottom: 8px;
        padding-top: 36px;
        border-radius: 8px;
        min-height: 80px;
      }

      .prompt-bubble::before {
        display: none;
      }
      
      .prompt-textarea {
        font-size: 14px;
        min-height: 40px;
      }
      
      .prompt-footer {
        margin-top: 6px;
        gap: 8px;
      }
    }

    .prompt-textarea {
      width: 100%;
      background: transparent;
      border: none;
      color: #ccc;
      font-size: 14px;
      font-family: inherit;
      line-height: 1.6;
      resize: none;
      min-height: 60px;
      max-height: none;
      overflow: hidden;
    }

    .prompt-textarea:focus {
      outline: none;
    }

    .prompt-textarea::placeholder {
      color: #555;
    }

    /* Contenteditable editor for rich posts */
    .prompt-editor {
      width: 100%;
      background: transparent;
      border: none;
      color: #ccc;
      font-size: 14px;
      font-family: inherit;
      line-height: 1.6;
      min-height: 40px;
      outline: none;
      word-wrap: break-word;
      overflow-wrap: break-word;
      position: relative; /* Required for placeholder positioning */
    }

    .prompt-editor:empty:before {
      content: attr(data-placeholder);
      color: #555;
      pointer-events: none;
      position: absolute;
    }

    .prompt-editor:focus {
      outline: none;
    }

    .prompt-editor img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      margin: 12px 0;
      display: block;
    }

    .prompt-editor .inline-image-wrapper {
      position: relative;
      display: block;
      margin: 12px 0;
      border-radius: 8px;
      overflow: hidden;
    }

    .prompt-editor .inline-image-wrapper img {
      width: 100%;
      height: auto;
      margin: 0;
      display: block;
    }

    .prompt-editor .inline-image-wrapper .remove-image {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 28px;
      height: 28px;
      background: rgba(0, 0, 0, 0.7);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0.8;
      transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .prompt-editor .inline-image-wrapper .remove-image:hover {
      opacity: 1;
      transform: scale(1.1);
    }

    .prompt-editor .inline-image-wrapper .upload-progress {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: rgba(0, 0, 0, 0.5);
      transition: opacity 0.2s ease;
    }

    .prompt-editor .inline-image-wrapper .upload-bar {
      height: 100%;
      background: #4a9eff;
      border-radius: 0 0 8px 8px;
      transition: width 0.15s ease;
    }

    .prompt-editor .text-after-image {
      min-height: 1.4em;
    }

    .prompt-editor .text-after-image:empty::before {
      content: '';
    }

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

    .prompt-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 6px;
    }

    .post-btn {
      padding: 6px 14px;
      background: #2a2a2a;
      border: none;
      border-radius: 6px;
      color: #888;
      font-size: 12px;
      font-family: inherit;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
    }

    .post-btn:hover {
      background: #333;
      color: #aaa;
    }

    .post-btn.active {
      background: #fff;
      color: #0d0d0d;
    }

    .post-btn.active:hover {
      background: #e0e0e0;
    }

    /* Project Dropdown */
    .project-selector {
      position: absolute;
      top: 8px;
      right: 8px;
      z-index: 50;
    }

    .project-dropdown-trigger {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      background: rgba(21, 21, 21, 0.3);
      border: 1px solid rgba(42, 42, 42, 0.3);
      border-radius: 6px;
      color: rgba(102, 102, 102, 0.5);
      font-size: 11px;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
      backdrop-filter: blur(2px);
    }

    .project-dropdown-trigger:hover,
    .project-selector.open .project-dropdown-trigger {
      background: rgba(31, 31, 31, 0.95);
      border-color: #444;
      color: #888;
    }

    .project-dropdown-trigger .project-name {
      color: rgba(170, 170, 170, 0.5);
      font-weight: 500;
      transition: color 0.2s;
    }

    .project-dropdown-trigger:hover .project-name,
    .project-selector.open .project-dropdown-trigger .project-name {
      color: #ccc;
    }

    .project-dropdown-trigger .chevron {
      width: 12px;
      height: 12px;
      transition: transform 0.2s;
      opacity: 0.4;
    }

    .project-dropdown-trigger:hover .chevron,
    .project-selector.open .project-dropdown-trigger .chevron {
      opacity: 1;
    }

    .project-selector.open .chevron {
      transform: rotate(180deg);
    }

    .project-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      min-width: 180px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      padding: 6px;
      z-index: 100;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: all 0.2s ease;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }

    @media (max-width: 480px) {
      .project-selector {
        top: 8px;
        right: 8px;
      }

      .project-dropdown-trigger {
        padding: 5px 8px;
        font-size: 10px;
      }

      .project-dropdown {
        min-width: 160px;
        right: -8px;
      }
    }

    .project-selector.open .project-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown-label {
      padding: 8px 10px 6px;
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #555;
    }

    .dropdown-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.15s;
    }

    .dropdown-item:hover {
      background: #222;
    }

    .dropdown-item-name {
      flex: 1;
      font-size: 13px;
      color: #ccc;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .project-icon-mini {
      width: 20px;
      height: 20px;
      min-width: 20px;
      min-height: 20px;
      max-width: 20px;
      max-height: 20px;
      border-radius: 4px;
      flex-shrink: 0;
      object-fit: cover;
    }

    img.project-icon-mini {
      display: block;
    }

    .project-icon-mini.user-icon {
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .project-icon-mini.user-icon svg {
      width: 16px;
      height: 16px;
      color: #666;
    }

    .project-icon-mini.project-color {
      background: linear-gradient(135deg, #444 0%, #333 100%);
    }

    .project-icon-mini.new-icon {
      background: transparent;
      border: 1px dashed #444;
      color: #666;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 500;
    }

    .dropdown-item.selected {
      background: #1f1f1f;
    }

    .dropdown-item.new-project .dropdown-item-name {
      color: #888;
    }

    .dropdown-divider {
      height: 1px;
      background: #2a2a2a;
      margin: 6px 0;
    }

    .dropdown-item .checkmark {
      width: 16px;
      height: 16px;
      color: #666;
      opacity: 0;
    }

    .dropdown-item.selected .checkmark {
      opacity: 1;
    }

    .shortcut-hint {
      font-size: 10px;
      color: #444;
      background: #1a1a1a;
      padding: 2px 6px;
      border-radius: 4px;
      margin-left: auto;
      margin-right: 8px;
    }

    .dropdown-item:hover .shortcut-hint {
      color: #666;
      background: #252525;
    }

    /* Post Section */
    .post {
      display: flex;
      align-items: flex-start;
      gap: var(--avatar-gap);
      margin-bottom: var(--post-gap);
      padding: var(--content-padding);
      margin-left: calc(-1 * var(--content-padding));
      margin-right: calc(-1 * var(--content-padding));
      border-radius: 12px;
      cursor: pointer;
      transition: background 0.15s;
    }

    .post:hover {
      background: rgba(255, 255, 255, 0.008);
    }

    .post-avatar {
      width: var(--avatar-size);
      height: var(--avatar-size);
      border-radius: 50%;
      overflow: hidden;
      flex-shrink: 0;
      background: #1a1a1a;
    }

    .post-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    @media (max-width: 768px) {
      .post-avatar {
        width: 56px;
        height: 56px;
      }
      
      .post {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
      }
    }

    @media (max-width: 480px) {
      .post-avatar {
        width: var(--avatar-size);
        height: var(--avatar-size);
      }
      
      .post {
        gap: var(--avatar-gap);
        padding: 10px 0;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
      }
      
      .post-header {
        margin-bottom: 6px;
        font-size: 13px;
      }
      
      .post-body {
        font-size: 14px;
        line-height: 1.5;
      }
      
      .post-actions {
        margin-top: 8px;
        gap: 16px;
      }
      
      .post-action {
        font-size: 12px;
      }
      
      .post-action svg {
        width: 16px;
        height: 16px;
      }
    }

    .post-content {
      flex-grow: 1;
      padding-top: 4px;
      min-width: 0;
    }

    .post-header {
      margin-bottom: 12px;
      font-size: 14px;
    }

    .post-author {
      font-weight: 600;
      color: #fff;
      cursor: pointer;
    }

    .post-author:hover {
      text-decoration: underline;
    }

    .post-handle {
      color: #555;
      margin-left: 6px;
    }

    .post-for {
      color: #555;
      margin-left: 4px;
    }

    .post-project {
      color: #fff;
      font-weight: 600;
      margin-left: 4px;
    }
    
    .post-prompt-label {
      color: #666;
      font-weight: 400;
      margin-left: 4px;
      cursor: pointer;
    }

    .post-prompt {
      color: #60a5fa;
      font-size: 12px;
      margin-left: 8px;
      padding: 2px 8px;
      background: rgba(59, 130, 246, 0.1);
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .post-prompt:hover {
      background: rgba(59, 130, 246, 0.2);
    }

    @media (max-width: 480px) {
      .post-header {
        font-size: 13px;
      }

      .post-handle {
        margin-left: 4px;
      }
    }

    .post-body {
      color: #bbb;
      line-height: 1.7;
    }

    .post-body p {
      margin-bottom: 16px;
    }

    .post-body a {
      color: #fff;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .post-body a:hover {
      color: #888;
    }

    /* Avatar Grid */
    .avatar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 3px;
      margin-top: 20px;
      max-width: 100%;
    }

    .avatar-cell {
      aspect-ratio: 1;
      background: #1a1a1a;
      position: relative;
      overflow: hidden;
    }

    .avatar-cell img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .avatar-cell .placeholder {
      width: 100%;
      height: 100%;
      background: linear-gradient(145deg, #252525 0%, #1a1a1a 100%);
    }

    @media (max-width: 768px) {
      .avatar-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
      }
    }

    @media (max-width: 480px) {
      .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
      }
    }

    .avatar-cell .timestamp {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.9);
      padding: 5px 6px;
      font-size: 7.5px;
      line-height: 1.3;
    }

    .timestamp-date {
      display: block;
      color: #777;
    }

    .timestamp-file {
      display: block;
      color: #444;
      font-size: 6.5px;
      word-break: break-all;
    }

    @media (max-width: 768px) {
      .avatar-cell .timestamp {
        padding: 3px 4px;
        font-size: 6px;
      }

      .timestamp-file {
        display: none;
      }
    }

    @media (max-width: 480px) {
      .avatar-cell .timestamp {
        display: none;
      }
    }

    /* Placeholder avatar styling */
    .avatar-placeholder {
      width: 100%;
      height: 100%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    /* Post Actions */
    .post-actions {
      display: flex;
      gap: 20px;
      margin-top: 16px;
      align-items: center;
    }

    .post-action {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #555;
      font-size: 13px;
      cursor: pointer;
      transition: color 0.2s;
    }

    .post-action:hover {
      color: #888;
    }

    .post-action svg {
      width: 18px;
      height: 18px;
    }

    .post-action.liked {
      color: #e25555;
    }

    .post-action.liked svg {
      fill: #e25555;
    }

    /* View toggling */
    .feed-view {
      display: block;
    }

    .feed-view.hidden {
      display: none;
    }

    .detail-view {
      display: none;
    }

    .detail-view.active {
      display: block;
    }

    .project-view {
      display: none;
    }

    .project-view.active {
      display: block;
    }

    /* Profile View */
    .profile-view {
      display: none;
    }

    .profile-view.active {
      display: block;
    }

    .profile-header {
      padding: 32px var(--content-padding);
      border-bottom: 1px solid #1a1a1a;
      display: flex;
      gap: var(--avatar-gap);
    }

    .profile-avatar-large {
      width: var(--avatar-size);
      height: var(--avatar-size);
      border-radius: 50%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
    }

    .profile-header-content {
      flex: 1;
      min-width: 0;
    }

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

    .profile-name-group {
      flex: 1;
      min-width: 0;
    }

    .profile-name {
      font-size: 24px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 2px;
    }

    .profile-handle {
      font-size: 14px;
      color: #555;
    }

    .profile-bio {
      font-size: 14px;
      color: #aaa;
      line-height: 1.6;
      margin-bottom: 14px;
    }

    .profile-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 13px;
      color: #555;
      margin-bottom: 14px;
    }

    .profile-meta svg {
      width: 14px;
      height: 14px;
      margin-right: 4px;
      vertical-align: -2px;
    }

    .profile-meta a {
      color: #888;
      text-decoration: none;
    }

    .profile-meta a:hover {
      text-decoration: underline;
    }

    .profile-stats {
      display: flex;
      gap: 16px;
    }

    .profile-stat {
      font-size: 14px;
      color: #555;
    }

    .profile-stat strong {
      color: #fff;
      font-weight: 600;
      margin-right: 3px;
    }

    .profile-stat:hover {
      cursor: pointer;
    }

    .profile-stat:hover strong {
      text-decoration: underline;
    }

    .profile-actions {
      display: flex;
      gap: 12px;
    }

    .profile-follow-btn {
      padding: 8px 20px;
      background: #fff;
      border: none;
      border-radius: 24px;
      color: #0d0d0d;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .profile-follow-btn:hover {
      background: #e0e0e0;
    }

    .profile-follow-btn.following {
      background: transparent;
      border: 1px solid #333;
      color: #ccc;
    }

    .profile-follow-btn.following:hover {
      border-color: #e25555;
      color: #e25555;
    }

    a.profile-edit-btn,
    .profile-edit-btn {
      display: inline-block !important;
      padding: 10px 24px !important;
      background: transparent !important;
      border: 1px solid #444 !important;
      border-radius: 24px !important;
      color: #ccc !important;
      font-size: 14px !important;
      font-weight: 500 !important;
      font-family: inherit !important;
      cursor: pointer !important;
      transition: all 0.15s !important;
      text-decoration: none !important;
    }

    a.profile-edit-btn:hover,
    .profile-edit-btn:hover {
      border-color: #666 !important;
      color: #fff !important;
      background: rgba(255, 255, 255, 0.08) !important;
      text-decoration: none !important;
    }

    a.profile-edit-btn:visited,
    .profile-edit-btn:visited {
      color: #ccc !important;
      text-decoration: none !important;
    }

    a.profile-edit-btn:active,
    .profile-edit-btn:active {
      color: #ccc !important;
      text-decoration: none !important;
    }

    /* Profile Avatar (animated) */
    .profile-avatar-stage {
      width: 100%;
      height: 100%;
      cursor: pointer;
    }

    .profile-avatar-face {
      width: 100%;
      height: 100%;
      background-repeat: no-repeat;
      background-size: 900% 900%;
      border-radius: 50%;
    }

    /* Profile Projects Section */
    .profile-projects {
      padding: var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
    }

    .profile-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .profile-section-title {
      font-size: 13px;
      font-weight: 600;
      color: #555;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding-left: var(--content-padding);
      padding-right: var(--content-padding);
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 12px;
    }

    .profile-project-card {
      position: relative;
      background: #151515;
      border: 1px solid #1a1a1a;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.15s;
      min-height: 120px;
    }

    .profile-project-card:hover {
      background: #1a1a1a;
      border-color: #2a2a2a;
    }

    .profile-project-card-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .profile-project-card-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
    }

    .profile-project-card-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    }

    .profile-project-card-content {
      position: relative;
      z-index: 1;
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      height: 100%;
      min-height: 88px;
      box-sizing: border-box;
    }

    .profile-project-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      margin-bottom: 6px;
    }

    .profile-project-logo {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      object-fit: cover;
      margin-bottom: 6px;
    }

    .profile-project-name {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 2px;
    }

    .profile-project-meta {
      font-size: 11px;
      color: #555;
    }

    .profile-section {
      padding-top: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid #1a1a1a;
    }

    .profile-projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 12px;
      padding-left: var(--content-padding);
      padding-right: var(--content-padding);
    }

    .profile-updates {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .profile-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 16px;
      margin-bottom: 12px;
      color: #666;
      font-size: 14px;
    }

    .profile-meta-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #666;
      text-decoration: none;
    }

    .profile-meta-item svg {
      width: 16px;
      height: 16px;
    }

    .profile-meta-link {
      color: #888;
    }

    .profile-meta-link:hover {
      color: #fff;
    }

    .profile-stats {
      display: flex;
      gap: 14px;
      font-size: 14px;
      color: #888;
    }

    .profile-stat strong {
      color: #fff;
      font-weight: 600;
      margin-right: 2px;
    }

    @media (max-width: 540px) {
      .profile-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 24px 16px !important;
      }

      .profile-avatar-large {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 16px !important;
      }

      .profile-header-content {
        width: 100% !important;
      }

      .profile-header-top {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
      }

      .profile-name-group {
        text-align: center !important;
      }

      .profile-name {
        font-size: 24px !important;
        margin-bottom: 4px !important;
      }

      .profile-handle {
        font-size: 15px !important;
        color: #888 !important;
      }

      .profile-bio {
        font-size: 14px !important;
        margin-top: 12px !important;
        line-height: 1.5 !important;
      }

      .profile-meta {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        margin-top: 12px !important;
      }

      .profile-meta-item {
        font-size: 13px !important;
      }

      .profile-stats {
        justify-content: center !important;
        margin-top: 12px !important;
      }

      a.profile-edit-btn,
      .profile-edit-btn {
        padding: 10px 28px !important;
        font-size: 14px !important;
        margin-top: 4px !important;
      }

      .profile-follow-btn {
        padding: 10px 28px !important;
        font-size: 14px !important;
      }

      .profile-section-title {
        font-size: 12px !important;
        padding: 0 16px !important;
      }

      .profile-projects-grid {
        grid-template-columns: 1fr !important;
        padding: 0 16px !important;
      }
    }

    /* Profile Updates Section */
    .profile-updates {
      /* No extra padding - posts have their own */
      padding: 0;
    }

    .profile-updates .post {
      /* Use same layout as feed posts */
      padding-left: var(--content-padding);
      padding-right: var(--content-padding);
      margin-left: 0;
      margin-right: 0;
    }

    /* Projects Page */
    .projects-page {
      display: block;
    }

    .projects-page-header {
      padding: 24px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .projects-page-title {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      margin: 0;
    }

    .projects-section {
      margin-bottom: 0;
    }

    .projects-section.community-section {
      margin-top: 0;
    }

    .projects-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, #2a2a2a 20%, #2a2a2a 80%, transparent 100%);
      margin: 32px var(--detail-padding) 0;
    }

    .projects-section-header {
      padding: 32px var(--detail-padding) 0;
    }

    .projects-section-title {
      font-size: 16px;
      font-weight: 600;
      color: #888;
      margin: 0;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .projects-section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .projects-section-link {
      font-size: 13px;
      color: #666;
      text-decoration: none;
    }

    .projects-section-link:hover {
      color: #fff;
    }

    /* Prompts section styles */
    .prompts-section {
      margin-top: 40px;
      padding-bottom: 60px;
    }

    .prompts-intro {
      font-size: 14px;
      color: #666;
      margin: 8px var(--detail-padding) 20px;
    }

    .prompts-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      padding: 0 var(--detail-padding);
    }

    @media (max-width: 600px) {
      .prompts-grid {
        grid-template-columns: 1fr;
      }
    }

    .prompt-card-link {
      text-decoration: none;
    }

    .prompt-card-home {
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 12px;
      padding: 20px;
      transition: border-color 0.2s, transform 0.2s;
    }

    .prompt-card-home:hover {
      border-color: #3a3a3a;
      transform: translateY(-2px);
    }

    .prompt-card-badge {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
    }

    .prompt-badge {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      padding: 3px 8px;
      border-radius: 4px;
      letter-spacing: 0.5px;
    }

    .prompt-badge.sponsored {
      background: rgba(251, 191, 36, 0.15);
      color: #fbbf24;
    }

    .prompt-badge.timed {
      background: rgba(59, 130, 246, 0.15);
      color: #60a5fa;
    }

    .prompt-card-title {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin: 0 0 8px 0;
    }

    .prompt-card-desc {
      font-size: 13px;
      color: #888;
      margin: 0 0 12px 0;
      line-height: 1.4;
    }

    .prompt-card-meta {
      font-size: 12px;
      color: #555;
    }

    .project-card-creator {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      color: rgba(255, 255, 255, 0.5);
      margin-bottom: 4px;
    }

    .project-card-creator-avatar {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      object-fit: cover;
    }

    .projects-page-subtitle {
      font-size: 13px;
      color: #555;
    }

    .projects-new-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      background: #fff;
      border: none;
      border-radius: 8px;
      color: #0d0d0d;
      font-size: 14px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: background 0.15s;
    }

    .projects-new-btn:hover {
      background: #e0e0e0;
    }

    .projects-new-btn svg {
      width: 16px;
      height: 16px;
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
      padding: 20px var(--detail-padding);
    }

    .projects-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 80px 20px;
      text-align: center;
    }

    .projects-empty-icon {
      width: 120px;
      height: 120px;
      margin-bottom: 24px;
      color: #333;
    }

    .projects-empty-icon svg {
      width: 100%;
      height: 100%;
    }

    .projects-empty-title {
      font-size: 20px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 8px;
    }

    .projects-empty-text {
      font-size: 14px;
      color: #666;
      margin-bottom: 24px;
    }

    .projects-empty-btn {
      padding: 12px 24px;
      background: #fff;
      border: none;
      border-radius: 8px;
      color: #0d0d0d;
      font-size: 14px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: background 0.15s;
    }

    .projects-empty-btn:hover {
      background: #e0e0e0;
    }

    .projects-list {
      padding: var(--detail-padding);
    }

    .project-card {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      height: 200px; /* Fixed height for consistent grid display */
    }

    .project-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }

    .project-card-bg {
      position: absolute;
      inset: 0;
      background-size: 400% 400%;
      animation: gradientShift 8s ease infinite;
      opacity: 0.8;
    }

    .project-card-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.9) 100%);
      z-index: 1;
    }

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

    @keyframes subtlePulse {
      0%, 100% { box-shadow: 0 4px 15px rgba(99,102,241,0.3); }
      50% { box-shadow: 0 4px 25px rgba(99,102,241,0.5); }
    }

    @keyframes borderGlow {
      0%, 100% { opacity: 0.5; }
      50% { opacity: 1; }
    }

    .project-card-bg.gradient-1,
    .project-info-bg.gradient-1,
    .project-banner-bg.gradient-1 {
      background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    }

    .project-card-bg.gradient-2,
    .project-info-bg.gradient-2,
    .project-banner-bg.gradient-2 {
      background: linear-gradient(-45deg, #2d132c, #801336, #c72c41, #2d132c);
    }

    .project-card-bg.gradient-3,
    .project-info-bg.gradient-3,
    .project-banner-bg.gradient-3 {
      background: linear-gradient(-45deg, #0d7377, #14a085, #32e0c4, #0d7377);
    }

    .project-card-bg.gradient-4,
    .project-info-bg.gradient-4,
    .project-banner-bg.gradient-4 {
      background: linear-gradient(-45deg, #1b1b2f, #1f4068, #162447, #1b1b2f);
    }

    .project-card-bg.gradient-5,
    .project-info-bg.gradient-5,
    .project-banner-bg.gradient-5 {
      background: linear-gradient(-45deg, #2c3e50, #4ca1af, #2c3e50, #4ca1af);
    }

    .project-card-bg.gradient-6,
    .project-info-bg.gradient-6,
    .project-banner-bg.gradient-6 {
      background: linear-gradient(-45deg, #232526, #414345, #232526, #414345);
    }

    .project-card-content {
      position: relative;
      z-index: 2;
      padding: 16px 20px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      height: 100%;
      box-sizing: border-box;
    }

    .project-card-top {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 4px;
    }

    .project-card-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }

    .project-card-logo {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      object-fit: cover;
      flex-shrink: 0;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
    }

    .project-card-info {
      flex: 1;
      min-width: 0;
    }

    .project-card-name {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 2px;
    }

    .project-card-creator {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.6);
    }

    .project-card-creator strong {
      color: rgba(255, 255, 255, 0.9);
      font-weight: 500;
      cursor: pointer;
    }

    .project-card-creator strong:hover {
      text-decoration: underline;
    }

    .project-card-desc {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.7);
      line-height: 1.4;
      margin-bottom: 6px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .project-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 4px;
    }

    .project-hidden-badge {
      font-size: 10px;
      color: #888;
      background: rgba(255, 255, 255, 0.1);
      padding: 2px 6px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .project-card-stats {
      display: flex;
      gap: 12px;
      font-size: 11px;
      color: rgba(255, 255, 255, 0.5);
    }

    .project-card-stats span {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .project-card-stats svg {
      width: 14px;
      height: 14px;
    }

    .project-card-updated {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.4);
    }

    /* Project Detail Page */
    .project-view {
      display: none;
    }

    .project-view.active {
      display: block;
    }

    .project-banner {
      width: 100%;
      height: 0;
      padding-bottom: 25%; /* Default, overridden by inline style */
      position: relative;
      overflow: hidden;
      /* Extend into iOS safe area */
      margin-top: calc(-1 * env(safe-area-inset-top, 0px));
    }

    .project-banner-bg {
      position: absolute;
      inset: 0;
      top: calc(-1 * env(safe-area-inset-top, 0px));
      background-size: 400% 400%;
      animation: gradientShift 8s ease infinite;
    }

    .project-banner-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(13,13,13,1) 0%, rgba(13,13,13,0.4) 50%, transparent 100%);
    }

    .project-banner-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }

    .project-banner-image {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .project-card-media {
      background-size: cover !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
      animation: none !important;
    }

    .project-card-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }

    .project-card-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.9) 100%);
      z-index: 1;
    }

    .project-header {
      display: block;
      padding: 0 var(--content-padding);
      margin-top: -50px;
      position: relative;
      z-index: 10;
      margin-bottom: 24px;
    }

    .project-icon-large {
      width: 80px;
      height: 80px;
      border-radius: 16px;
      background: rgba(30, 30, 30, 0.9);
      backdrop-filter: blur(10px);
      border: 3px solid #0d0d0d;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 40px;
      flex-shrink: 0;
    }

    .project-logo-large {
      width: 64px;
      height: 64px;
      border-radius: 12px;
      object-fit: cover;
      border: none;
      margin-bottom: 16px;
      display: block;
    }

    .project-header-content {
      min-width: 0;
    }

    .project-header-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 8px;
    }

    .project-header-info {
      flex: 1;
      min-width: 0;
    }

    .project-title {
      font-size: 24px;
      font-weight: 700;
      color: #fff;
      margin: 0 0 4px 0;
      letter-spacing: -0.02em;
    }

    .project-creator {
      font-size: 14px;
      color: #666;
    }

    .project-creator a {
      color: #888;
      text-decoration: none;
    }

    .project-creator a:hover {
      color: #fff;
      text-decoration: underline;
    }

    .project-prompt-link {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 8px 14px;
      background: rgba(59, 130, 246, 0.1);
      border: 1px solid rgba(59, 130, 246, 0.2);
      border-radius: 8px;
      text-decoration: none;
      margin-bottom: 12px;
      transition: all 0.2s;
    }

    .project-prompt-link:hover {
      background: rgba(59, 130, 246, 0.15);
      border-color: rgba(59, 130, 246, 0.3);
    }

    .project-prompt-badge {
      font-size: 13px;
      font-weight: 500;
      color: #60a5fa;
    }

    .project-prompt-count {
      font-size: 12px;
      color: #666;
    }

    .project-edit-btn,
    .project-follow-btn {
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      flex-shrink: 0;
    }

    .project-edit-btn {
      background: transparent;
      border: 1px solid #333;
      color: #ccc;
    }

    .project-edit-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      border-color: #555;
    }

    .project-follow-btn {
      background: #fff;
      border: none;
      color: #0d0d0d;
    }

    .project-follow-btn:hover {
      background: #e0e0e0;
    }

    .project-follow-btn.following {
      background: transparent;
      border: 1px solid #333;
      color: #ccc;
    }

    .project-follow-btn.following:hover {
      background: rgba(255, 255, 255, 0.05);
      border-color: #555;
    }

    .project-desc {
      font-size: 15px;
      color: #aaa;
      line-height: 1.6;
      margin-bottom: 12px;
    }

    .project-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 16px;
      font-size: 13px;
      color: #666;
    }

    .project-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #6366f1;
      text-decoration: none;
      max-width: 100%;
      overflow: hidden;
    }

    .project-link:hover {
      text-decoration: underline;
    }

    .project-link svg {
      width: 14px;
      height: 14px;
      min-width: 14px;
      min-height: 14px;
      flex-shrink: 0;
    }

    .project-link span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .project-stat strong {
      color: #fff;
      font-weight: 600;
    }

    .project-compose {
      padding: var(--content-padding);
      border-top: 1px solid #1a1a1a;
      border-bottom: 1px solid #1a1a1a;
    }

    .project-compose-input {
      width: 100%;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      padding: 14px 16px;
      color: #ccc;
      font-size: 14px;
      font-family: inherit;
      line-height: 1.6;
      resize: none;
      min-height: 80px;
    }

    .project-compose-input:focus {
      outline: none;
      border-color: #444;
    }

    .project-compose-input::placeholder {
      color: #555;
    }

    .project-compose-footer {
      display: flex;
      justify-content: flex-end;
      margin-top: 12px;
    }

    .project-compose-btn {
      padding: 10px 20px;
      background: #fff;
      border: none;
      border-radius: 8px;
      color: #0d0d0d;
      font-size: 14px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .project-compose-btn:hover:not(:disabled) {
      background: #e0e0e0;
    }

    .project-compose-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .project-updates {
      padding: 0 var(--content-padding);
    }

    .project-updates .post {
      border-bottom: 1px solid #1a1a1a;
      padding-left: 0;
      padding-right: 0;
      margin-left: 0;
      margin-right: 0;
      margin-bottom: 0;
      border-radius: 0;
    }

    .project-updates .post:last-child {
      border-bottom: none;
    }

    /* Project page prompt section - match post alignment */
    .project-view .prompt-section {
      padding: var(--content-padding);
      margin-bottom: 0;
      border-bottom: 1px solid #1a1a1a;
    }

    /* Keyboard hint styling */
    .keyboard-hint {
      font-size: 10px;
      color: #3a3a3a;
      margin-right: 6px;
    }
    
    .keyboard-hint kbd {
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 3px;
      padding: 1px 4px;
      font-family: inherit;
      font-size: 10px;
    }
    
    /* Hide keyboard hints on mobile - not relevant for touch */
    @media (max-width: 768px) {
      .keyboard-hint {
        display: none !important;
      }
      
      /* Allow touch manipulation but images can be tapped for fullscreen */
      .post-media img,
      .reply-media img,
      .main-post-media img,
      .update-media img {
        cursor: zoom-in;
      }
    }
    
    /* Fullscreen image overlay for mobile zoom */
    .image-fullscreen-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.95);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s, visibility 0.2s;
      touch-action: pinch-zoom pan-x pan-y;
    }
    
    .image-fullscreen-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    
    .image-fullscreen-overlay img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      touch-action: pinch-zoom pan-x pan-y;
    }
    
    .image-fullscreen-close {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.1);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-top: env(safe-area-inset-top, 0);
    }

    @media (max-width: 600px) {
      .project-banner {
        /* On mobile, cap the height to avoid it taking too much space */
        padding-bottom: 0 !important;
        height: 160px !important;
      }

      .project-header {
        flex-direction: column !important;
        gap: 16px !important;
        margin-top: -20px !important;
        align-items: flex-start !important;
        padding: 0 16px !important;
        margin-bottom: 16px !important;
      }

      /* Project page input form mobile fixes */
      .project-view .prompt-section {
        padding: 12px !important;
        gap: 10px !important;
      }

      .project-view .prompt-avatar {
        width: 40px !important;
        height: 40px !important;
      }

      .project-view .prompt-bubble {
        padding: 10px !important;
        min-height: 60px !important;
      }

      .project-view .prompt-editor {
        font-size: 14px !important;
        min-height: 30px !important;
      }

      .project-view .prompt-footer {
        margin-top: 6px !important;
      }

      .project-view .keyboard-hint {
        display: none !important;
      }

      .project-view .post-btn {
        padding: 6px 14px !important;
        font-size: 13px !important;
      }

      .project-icon-large {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
        border-radius: 10px !important;
      }

      .project-logo-large {
        width: 48px !important;
        height: 48px !important;
        border-radius: 10px !important;
      }

      .project-header-content {
        padding-top: 0 !important;
        width: 100% !important;
      }

      .project-header-top {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
        width: 100% !important;
      }

      .project-header-info {
        width: 100% !important;
      }

      .project-title {
        font-size: 22px !important;
        margin-bottom: 4px !important;
      }

      .project-creator {
        font-size: 13px !important;
      }

      .project-desc {
        font-size: 14px !important;
        margin-top: 12px !important;
        line-height: 1.5 !important;
      }

      .project-meta {
        gap: 12px !important;
        flex-wrap: wrap !important;
        margin-top: 12px !important;
        font-size: 13px !important;
      }

      .project-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        max-width: 100% !important;
        overflow: hidden !important;
        font-size: 13px !important;
      }

      .project-link svg {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
        flex-shrink: 0 !important;
      }

      .project-stat {
        font-size: 13px !important;
      }

      .project-edit-btn,
      button.project-edit-btn {
        display: inline-block !important;
        width: auto !important;
        padding: 8px 16px !important;
        background: transparent !important;
        border: 1px solid #444 !important;
        border-radius: 20px !important;
        color: #ccc !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        margin-top: 8px !important;
      }

      .project-follow-btn,
      button.project-follow-btn {
        display: inline-block !important;
        width: auto !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-size: 13px !important;
        margin-top: 8px !important;
      }
    }

    /* Search Page */
    .search-page {
      display: none;
    }

    .search-page.active {
      display: block;
    }

    .search-hero {
      padding: 48px var(--detail-padding) 32px;
      border-bottom: 1px solid #1a1a1a;
    }
    
    /* Hide search page header on mobile - "Find people & projects" is enough */
    @media (max-width: 768px) {
      .search-page .page-header {
        display: none;
      }
      
      .search-hero {
        padding-top: 24px;
      }
      
      .search-page {
        overflow: visible;
      }
    }

    .search-title {
      font-size: 28px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 24px;
    }

    .search-input-wrapper {
      position: relative;
      margin-bottom: 24px;
    }

    .search-input {
      width: 100%;
      padding: 16px 20px 16px 52px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 12px;
      color: #fff;
      font-size: 16px;
      font-family: inherit;
      transition: all 0.2s;
    }

    .search-input:focus {
      outline: none;
      border-color: #444;
      background: #1a1a1a;
    }

    .search-input::placeholder {
      color: #555;
    }

    .search-input-icon {
      position: absolute;
      left: 18px;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      color: #555;
      pointer-events: none;
    }

    .search-input:focus + .search-input-icon {
      color: #888;
    }

    .search-tabs {
      display: flex;
      gap: 8px;
    }

    .search-tab {
      padding: 10px 20px;
      background: transparent;
      border: 1px solid #2a2a2a;
      border-radius: 24px;
      color: #666;
      font-size: 14px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .search-tab:hover {
      border-color: #444;
      color: #888;
    }

    .search-tab.active {
      background: #fff;
      border-color: #fff;
      color: #0d0d0d;
    }

    .search-results {
      padding: var(--detail-padding);
    }

    .search-results-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .search-results-count {
      font-size: 13px;
      color: #555;
    }

    .search-empty {
      text-align: center;
      padding: 60px 20px;
      color: #444;
    }

    .search-empty-icon {
      width: 48px;
      height: 48px;
      margin: 0 auto 16px;
      color: #333;
    }

    .search-empty-title {
      font-size: 16px;
      color: #666;
      margin-bottom: 8px;
    }

    .search-empty-subtitle {
      font-size: 14px;
      color: #444;
    }

    /* People Results */
    .people-results {
      display: none;
    }

    .people-results.active {
      display: block;
    }

    .person-result {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px;
      margin: 0 -16px;
      border-radius: 12px;
      cursor: pointer;
      transition: background 0.15s;
    }

    .person-result:hover {
      background: rgba(255, 255, 255, 0.03);
    }

    .person-avatar {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
      overflow: hidden;
    }

    .person-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .person-info {
      flex: 1;
      min-width: 0;
    }

    .person-name {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 2px;
    }

    .person-handle {
      font-size: 13px;
      color: #555;
      margin-bottom: 6px;
    }

    .person-bio {
      font-size: 13px;
      color: #888;
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .person-follow-btn {
      padding: 8px 18px;
      background: transparent;
      border: 1px solid #333;
      border-radius: 20px;
      color: #ccc;
      font-size: 13px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      flex-shrink: 0;
    }

    .person-follow-btn:hover {
      background: #1a1a1a;
      border-color: #444;
      color: #fff;
    }

    .person-follow-btn.following {
      background: transparent;
      border-color: #333;
      color: #888;
    }

    .person-follow-btn.following:hover {
      border-color: #e25555;
      color: #e25555;
    }

    /* Project Results */
    .project-results {
      display: none;
    }

    .project-results.active {
      display: block;
    }

    .project-result {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 16px;
      margin: 0 -16px;
      border-radius: 12px;
      cursor: pointer;
      transition: background 0.15s;
    }

    .project-result:hover {
      background: rgba(255, 255, 255, 0.03);
    }

    .project-result-icon {
      width: 56px;
      height: 56px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      flex-shrink: 0;
      position: relative;
      overflow: hidden;
    }

    .project-result-icon-bg {
      position: absolute;
      inset: 0;
      background-size: 400% 400%;
      animation: gradientShift 8s ease infinite;
    }

    .project-result-icon span {
      position: relative;
      z-index: 1;
    }

    .project-result-info {
      flex: 1;
      min-width: 0;
    }

    .project-result-name {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 2px;
    }

    .project-result-creator {
      font-size: 13px;
      color: #555;
      margin-bottom: 6px;
    }

    .project-result-desc {
      font-size: 13px;
      color: #888;
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .project-result-stats {
      display: flex;
      gap: 12px;
      margin-top: 8px;
      font-size: 12px;
      color: #555;
    }

    /* Notification Badge */
    .sidebar-icon-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .notification-badge {
      position: absolute;
      top: -6px;
      right: -8px;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      background: #e25555;
      border-radius: 8px;
      font-size: 10px;
      font-weight: 600;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    /* Notifications Page */
    .notifications-page {
      display: none;
    }

    .notifications-page.active {
      display: block;
    }

    .notifications-header {
      padding: 24px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
    }

    .notifications-title {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 4px;
    }

    .notifications-subtitle {
      font-size: 13px;
      color: #555;
    }

    .notifications-list {
      padding: 0;
    }

    .notification-item {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 16px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
      cursor: pointer;
      transition: background 0.15s;
    }

    .notification-item:hover {
      background: rgba(255, 255, 255, 0.02);
    }

    .notification-item.unread {
      background: rgba(226, 85, 85, 0.03);
    }

    .notification-item.unread:hover {
      background: rgba(226, 85, 85, 0.06);
    }

    .notification-icon-wrapper {
      position: relative;
      flex-shrink: 0;
    }

    .notification-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .notification-type-icon {
      position: absolute;
      bottom: -2px;
      right: -2px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid #0d0d0d;
    }

    .notification-type-icon svg {
      width: 12px;
      height: 12px;
    }

    .notification-type-icon.reply {
      background: #3b82f6;
      color: #fff;
    }

    .notification-type-icon.follow {
      background: #8b5cf6;
      color: #fff;
    }

    .notification-type-icon.project {
      background: #10b981;
      color: #fff;
    }

    .notification-content {
      flex: 1;
      min-width: 0;
    }

    .notification-text {
      font-size: 14px;
      color: #ccc;
      line-height: 1.5;
      margin-bottom: 4px;
    }

    .notification-text strong {
      color: #fff;
      font-weight: 600;
      cursor: pointer;
    }

    .notification-text strong:hover {
      text-decoration: underline;
    }

    .notification-preview {
      font-size: 13px;
      color: #666;
      line-height: 1.4;
      margin-bottom: 6px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .notification-time {
      font-size: 12px;
      color: #555;
    }

    .notification-unread-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #e25555;
      flex-shrink: 0;
      margin-top: 6px;
    }

    .notifications-empty {
      text-align: center;
      padding: 60px 20px;
      color: #444;
    }

    .notifications-empty-icon {
      width: 48px;
      height: 48px;
      margin: 0 auto 16px;
      color: #333;
    }

    .notifications-empty-title {
      font-size: 16px;
      color: #666;
      margin-bottom: 8px;
    }

    .notifications-empty-subtitle {
      font-size: 14px;
      color: #444;
    }

    /* Settings Page */
    .settings-page {
      display: none;
    }

    .settings-page.active {
      display: block;
    }

    .settings-header {
      padding: 24px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
    }

    .settings-title {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 4px;
    }

    .settings-subtitle {
      font-size: 13px;
      color: #555;
    }

    .settings-content {
      padding: var(--detail-padding);
    }

    .settings-section {
      margin-bottom: 32px;
    }

    .settings-section:last-child {
      margin-bottom: 0;
    }

    .settings-section-title {
      font-size: 13px;
      font-weight: 600;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 16px;
      padding-bottom: 8px;
      border-bottom: 1px solid #1a1a1a;
    }

    .settings-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px 0;
      border-bottom: 1px solid #151515;
    }

    .settings-row:last-child {
      border-bottom: none;
    }

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

    .settings-row-label {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
      margin-bottom: 2px;
    }

    .settings-row-value {
      font-size: 13px;
      color: #555;
    }

    .settings-row-desc {
      font-size: 12px;
      color: #444;
      margin-top: 4px;
      line-height: 1.4;
    }

    .settings-btn {
      padding: 8px 16px;
      background: transparent;
      border: 1px solid #333;
      border-radius: 8px;
      color: #ccc;
      font-size: 13px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      flex-shrink: 0;
    }

    .settings-btn:hover {
      background: #1a1a1a;
      border-color: #444;
      color: #fff;
    }

    .settings-input {
      padding: 10px 14px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      color: #fff;
      font-size: 14px;
      font-family: inherit;
      width: 240px;
      transition: all 0.15s;
    }

    .settings-input:focus {
      outline: none;
      border-color: #444;
      background: #1a1a1a;
    }

    .settings-input::placeholder {
      color: #444;
    }

    /* Toggle styles are defined inline in settings.ejs */

    .settings-select {
      padding: 10px 14px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      color: #fff;
      font-size: 14px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      min-width: 160px;
    }

    .settings-select:focus {
      outline: none;
      border-color: #444;
    }

    /* Invite Manage Page */
    .invite-manage-page {
      display: none;
    }

    .invite-manage-page.active {
      display: block;
    }

    .invite-hero {
      padding: 32px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
    }

    .invite-hero-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 24px;
    }

    .invite-hero-content {
      flex: 1;
    }

    .invite-title {
      font-size: 24px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 8px;
    }

    .invite-subtitle {
      font-size: 14px;
      color: #888;
      line-height: 1.6;
    }

    .invite-count-box {
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      border: 1px solid #2a2a4a;
      border-radius: 16px;
      padding: 20px 28px;
      text-align: center;
      flex-shrink: 0;
    }

    .invite-count-number {
      font-size: 36px;
      font-weight: 700;
      color: #fff;
      line-height: 1;
      margin-bottom: 4px;
    }

    .invite-count-label {
      font-size: 12px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .invite-rules {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
    }

    .invite-rule {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 16px;
      background: #151515;
      border-radius: 12px;
    }

    .invite-rule-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 16px;
    }

    .invite-rule-icon.follow {
      background: rgba(139, 92, 246, 0.15);
      color: #8b5cf6;
    }

    .invite-rule-icon.link {
      background: rgba(59, 130, 246, 0.15);
      color: #3b82f6;
    }

    .invite-rule-icon.weight {
      background: rgba(245, 158, 11, 0.15);
      color: #f59e0b;
    }

    .invite-rule-text {
      font-size: 13px;
      color: #aaa;
      line-height: 1.5;
    }

    .invite-rule-text strong {
      color: #fff;
      font-weight: 600;
    }

    .invite-criteria {
      margin-top: 24px;
      padding: 20px;
      background: #111;
      border-radius: 12px;
      border: 1px solid #1a1a1a;
    }

    .invite-criteria-title {
      font-size: 13px;
      font-weight: 600;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 12px;
    }

    .invite-criteria-text {
      font-size: 15px;
      color: #ccc;
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .invite-criteria-examples {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .invite-criteria-tag {
      padding: 6px 12px;
      background: #1a1a1a;
      border-radius: 16px;
      font-size: 13px;
      color: #888;
    }

    .invite-form-section {
      padding: var(--detail-padding);
    }

    .invite-form-header {
      margin-bottom: 24px;
    }

    .invite-form-title {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 4px;
    }

    .invite-form-subtitle {
      font-size: 13px;
      color: #555;
    }

    .invite-form {
      max-width: 480px;
    }

    .invite-field {
      margin-bottom: 20px;
    }

    .invite-field:last-child {
      margin-bottom: 0;
    }

    .invite-label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: #888;
      margin-bottom: 8px;
    }

    .invite-input {
      width: 100%;
      padding: 14px 16px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      color: #fff;
      font-size: 15px;
      font-family: inherit;
      transition: all 0.15s;
    }

    .invite-input:focus {
      outline: none;
      border-color: #444;
      background: #1a1a1a;
    }

    .invite-input::placeholder {
      color: #444;
    }

    .invite-textarea {
      width: 100%;
      padding: 14px 16px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      color: #fff;
      font-size: 15px;
      font-family: inherit;
      resize: vertical;
      min-height: 100px;
      transition: all 0.15s;
    }

    .invite-textarea:focus {
      outline: none;
      border-color: #444;
      background: #1a1a1a;
    }

    .invite-textarea::placeholder {
      color: #444;
    }

    .invite-submit-section {
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid #1a1a1a;
    }

    .invite-submit-btn {
      padding: 16px 32px;
      background: #fff;
      border: none;
      border-radius: 12px;
      color: #0d0d0d;
      font-size: 15px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .invite-submit-btn:hover {
      background: #e0e0e0;
      transform: translateY(-1px);
    }

    .invite-submit-btn:disabled {
      background: #333;
      color: #666;
      cursor: not-allowed;
      transform: none;
    }

    .invite-submit-btn svg {
      width: 18px;
      height: 18px;
    }

    .invite-warning {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-top: 20px;
      padding: 16px;
      background: rgba(245, 158, 11, 0.05);
      border: 1px solid rgba(245, 158, 11, 0.2);
      border-radius: 10px;
    }

    .invite-warning-icon {
      color: #f59e0b;
      flex-shrink: 0;
    }

    .invite-warning-icon svg {
      width: 18px;
      height: 18px;
    }

    .invite-warning-text {
      font-size: 13px;
      color: #888;
      line-height: 1.5;
    }

    .invite-badge {
      position: absolute;
      top: -6px;
      right: -8px;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      background: #8b5cf6;
      border-radius: 8px;
      font-size: 10px;
      font-weight: 600;
    }

    /* Sidebar admin notification dot - sits on top of the terminal icon */
    .sidebar-admin-dot {
      position: absolute;
      top: -5px;
      right: -6px;
      min-width: 15px;
      height: 15px;
      padding: 0 4px;
      background: #fbbf24;
      border-radius: 50%;
      font-size: 9px;
      font-weight: 700;
      color: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 0 2px #0d0d0d;
      line-height: 1;
      z-index: 10;
    }

    .no-invites .invite-count-box {
      background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
      border-color: #222;
    }

    .no-invites .invite-count-number {
      color: #444;
    }

    /* Invite Empty State */
    .invite-empty-state {
      text-align: center;
      padding: 48px 24px;
    }

    .invite-empty-icon {
      width: 64px;
      height: 64px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
    }

    .invite-empty-icon svg {
      width: 32px;
      height: 32px;
      color: #444;
    }

    .invite-empty-title {
      font-size: 18px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 8px;
    }

    .invite-empty-text {
      font-size: 14px;
      color: #666;
      line-height: 1.6;
      max-width: 400px;
      margin: 0 auto;
    }

    /* Invite History */
    .invite-history-section {
      padding: var(--detail-padding);
      border-top: 1px solid #1a1a1a;
    }

    .invite-history-header {
      margin-bottom: 16px;
    }

    .invite-history-title {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
    }

    .invite-history-list {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .invite-history-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 0;
      border-bottom: 1px solid #1a1a1a;
    }

    .invite-history-item:last-child {
      border-bottom: none;
    }

    .invite-history-name {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
      margin-bottom: 2px;
    }

    .invite-history-email {
      font-size: 13px;
      color: #666;
    }

    .status-badge {
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 500;
    }

    .status-badge.pending {
      background: rgba(251, 191, 36, 0.1);
      color: #fbbf24;
    }

    .status-badge.claimed {
      background: rgba(16, 185, 129, 0.1);
      color: #10b981;
    }

    .status-badge.expired {
      background: rgba(107, 114, 128, 0.1);
      color: #6b7280;
    }

    /* Invite Success Modal */
    .invite-success-modal {
      max-width: 420px;
      text-align: center;
    }

    .invite-success-modal .modal-body {
      padding: 40px;
    }

    .invite-success-modal .success-icon {
      width: 64px;
      height: 64px;
      background: rgba(16, 185, 129, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
    }

    .invite-success-modal .success-icon svg {
      width: 32px;
      height: 32px;
    }

    .invite-success-modal .success-title {
      font-size: 20px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 12px;
    }

    .invite-success-modal .success-text {
      font-size: 14px;
      color: #888;
      margin-bottom: 20px;
    }

    .invite-link-box {
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 20px;
    }

    .invite-link-label {
      font-size: 12px;
      color: #666;
      margin-bottom: 8px;
    }

    .invite-link-input {
      width: 100%;
      background: transparent;
      border: none;
      color: #fff;
      font-size: 12px;
      text-align: center;
      font-family: monospace;
      margin-bottom: 8px;
    }

    .invite-link-copy {
      padding: 8px 16px;
      background: #2a2a2a;
      border: none;
      border-radius: 6px;
      color: #fff;
      font-size: 12px;
      font-family: inherit;
      cursor: pointer;
      transition: background 0.15s;
    }

    .invite-link-copy:hover {
      background: #333;
    }

    .success-done-btn {
      padding: 14px 28px;
      background: #fff;
      border: none;
      border-radius: 10px;
      color: #0d0d0d;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: background 0.15s;
    }

    .success-done-btn:hover {
      background: #e0e0e0;
    }

    .invite-rule-icon svg {
      width: 18px;
      height: 18px;
    }

    /* Admin Page */
    .admin-page {
      display: none;
    }

    .admin-page.active {
      display: block;
    }

    .admin-header {
      padding: 24px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
    }

    .admin-header-top {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 4px;
    }

    .admin-badge {
      padding: 4px 10px;
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid rgba(239, 68, 68, 0.3);
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
      color: #ef4444;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .admin-title {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
    }

    .admin-subtitle {
      font-size: 13px;
      color: #555;
    }

    .admin-content {
      padding: var(--detail-padding);
    }

    .admin-section {
      margin-bottom: 32px;
    }

    .admin-section-title {
      font-size: 13px;
      font-weight: 600;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 16px;
    }

    .admin-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
    }

    .admin-stat-card {
      background: #151515;
      border: 1px solid #1a1a1a;
      border-radius: 12px;
      padding: 20px;
    }

    .admin-stat-value {
      font-size: 32px;
      font-weight: 700;
      color: #fff;
      line-height: 1;
      margin-bottom: 6px;
    }

    .admin-stat-label {
      font-size: 13px;
      color: #666;
      margin-bottom: 8px;
    }

    .admin-stat-comparison {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
    }

    .admin-stat-comparison.up {
      color: #10b981;
    }

    .admin-stat-comparison.down {
      color: #ef4444;
    }

    .admin-stat-comparison.neutral {
      color: #666;
    }

    .admin-stat-comparison svg {
      width: 14px;
      height: 14px;
    }

    .admin-stat-card.highlight {
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      border-color: #2a2a4a;
    }

    /* Admin User Search */
    .admin-search-box {
      display: flex;
      gap: 12px;
      margin-bottom: 20px;
    }

    .admin-search-input {
      flex: 1;
      padding: 12px 16px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      color: #fff;
      font-size: 14px;
      font-family: inherit;
    }

    .admin-search-input:focus {
      outline: none;
      border-color: #444;
      background: #1a1a1a;
    }

    .admin-search-input::placeholder {
      color: #555;
    }

    .admin-search-btn {
      padding: 12px 20px;
      background: #222;
      border: 1px solid #333;
      border-radius: 10px;
      color: #ccc;
      font-size: 14px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .admin-search-btn:hover {
      background: #2a2a2a;
      border-color: #444;
      color: #fff;
    }

    .admin-user-results {
      display: none;
    }

    .admin-user-results.active {
      display: block;
    }

    .admin-user-card {
      background: #151515;
      border: 1px solid #1a1a1a;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 12px;
    }

    .admin-user-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 12px;
    }

    .admin-user-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
    }

    .admin-user-info {
      flex: 1;
      min-width: 0;
    }

    .admin-user-name {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 2px;
    }

    .admin-user-handle {
      font-size: 13px;
      color: #555;
    }

    .admin-user-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 12px;
      color: #666;
      margin-bottom: 14px;
      padding-bottom: 14px;
      border-bottom: 1px solid #1a1a1a;
    }

    .admin-user-meta span {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .admin-user-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .admin-action-btn {
      padding: 8px 14px;
      background: transparent;
      border: 1px solid #333;
      border-radius: 6px;
      color: #888;
      font-size: 12px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .admin-action-btn:hover {
      background: #1a1a1a;
      border-color: #444;
      color: #ccc;
    }

    .admin-action-btn.danger {
      border-color: #3a2020;
      color: #888;
    }

    .admin-action-btn.danger:hover {
      background: #2a1515;
      border-color: #4a2020;
      color: #e25555;
    }

    /* Admin Invite Generator */
    .admin-invite-box {
      background: #151515;
      border: 1px solid #1a1a1a;
      border-radius: 12px;
      padding: 20px;
    }

    .admin-invite-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .admin-invite-title {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
    }

    .admin-invite-form {
      margin-top: 12px;
    }

    .admin-invite-row {
      display: flex;
      gap: 12px;
    }

    .admin-invite-input {
      flex: 1;
      padding: 10px 14px;
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      color: #fff;
      font-size: 14px;
      font-family: inherit;
    }

    .admin-invite-input:focus {
      outline: none;
      border-color: #444;
    }

    .admin-invite-input::placeholder {
      color: #555;
    }

    .admin-generate-btn {
      padding: 10px 20px;
      background: #fff;
      border: none;
      border-radius: 8px;
      color: #0d0d0d;
      font-size: 13px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
    }

    .admin-generate-btn:hover {
      background: #e0e0e0;
    }

    .admin-generate-btn:disabled {
      background: #333;
      color: #666;
      cursor: not-allowed;
    }

    .admin-invite-list {
      max-height: 240px;
      overflow-y: auto;
    }

    .admin-invite-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px;
      background: #1a1a1a;
      border-radius: 8px;
      margin-bottom: 8px;
    }

    .admin-invite-item:last-child {
      margin-bottom: 0;
    }

    .admin-invite-person {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .admin-invite-name {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
    }

    .admin-invite-email {
      font-size: 12px;
      color: #555;
    }

    .admin-invite-status {
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .admin-invite-status.pending {
      background: rgba(245, 158, 11, 0.15);
      color: #f59e0b;
    }

    .admin-invite-status.claimed {
      background: rgba(16, 185, 129, 0.15);
      color: #10b981;
    }

    .admin-invite-status.expired {
      background: rgba(107, 114, 128, 0.15);
      color: #6b7280;
    }

    .admin-invite-empty {
      text-align: center;
      padding: 20px;
      color: #555;
      font-size: 13px;
    }

    @media (max-width: 600px) {
      .admin-invite-row {
        flex-direction: column;
      }
    }

    /* Admin Applications */
    .admin-applications-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .admin-applications-count {
      font-size: 13px;
      color: #666;
    }

    .admin-applications-count strong {
      color: #f59e0b;
    }

    .admin-application-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .admin-application-card {
      background: #151515;
      border: 1px solid #1a1a1a;
      border-radius: 12px;
      padding: 20px;
      cursor: pointer;
      transition: all 0.15s;
    }

    .admin-application-card:hover {
      border-color: #2a2a2a;
      background: #1a1a1a;
    }

    .admin-application-top {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 12px;
    }

    .admin-application-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 100%);
      flex-shrink: 0;
    }

    .admin-application-info {
      flex: 1;
      min-width: 0;
    }

    .admin-application-name {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 2px;
    }

    .admin-application-email {
      font-size: 13px;
      color: #666;
    }

    .admin-application-date {
      font-size: 12px;
      color: #555;
      flex-shrink: 0;
    }

    .admin-application-project {
      margin-bottom: 12px;
    }

    .admin-application-project-label {
      font-size: 11px;
      font-weight: 600;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 4px;
    }

    .admin-application-project-name {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
    }

    .admin-application-preview {
      font-size: 13px;
      color: #888;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* Application Detail View */
    .application-detail-page {
      display: none;
    }

    .application-detail-page.active {
      display: block;
    }

    .application-detail-header {
      padding: 32px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
    }

    .application-detail-top {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 16px;
    }

    .application-detail-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 100%);
      flex-shrink: 0;
    }

    .application-detail-info {
      flex: 1;
    }

    .application-detail-name {
      font-size: 24px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 4px;
    }

    .application-detail-email {
      font-size: 14px;
      color: #888;
    }

    .application-detail-meta {
      display: flex;
      gap: 24px;
      font-size: 13px;
      color: #666;
    }

    .application-detail-content {
      padding: var(--detail-padding);
    }

    .application-detail-section {
      margin-bottom: 32px;
    }

    .application-detail-section-title {
      font-size: 11px;
      font-weight: 600;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 12px;
    }

    .application-detail-text {
      font-size: 15px;
      color: #ccc;
      line-height: 1.7;
    }

    .application-detail-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: #6366f1;
      text-decoration: none;
    }

    .application-detail-link:hover {
      text-decoration: underline;
    }

    .application-detail-link svg {
      width: 14px;
      height: 14px;
    }

    .application-detail-actions {
      display: flex;
      gap: 12px;
      padding: var(--detail-padding);
      border-top: 1px solid #1a1a1a;
      position: sticky;
      bottom: 0;
      background: #0d0d0d;
    }

    .application-approve-btn {
      flex: 1;
      padding: 14px 24px;
      background: #10b981;
      border: none;
      border-radius: 10px;
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .application-approve-btn:hover {
      background: #0d9668;
    }

    .application-deny-btn {
      flex: 1;
      padding: 14px 24px;
      background: transparent;
      border: 1px solid #333;
      border-radius: 10px;
      color: #888;
      font-size: 15px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .application-deny-btn:hover {
      border-color: #e25555;
      color: #e25555;
    }

    /* Avatar Pipeline Page */
    .pipeline-page {
      display: none;
    }

    .pipeline-page.active {
      display: block;
    }

    .pipeline-content {
      padding: 0 var(--detail-padding);
    }

    .pipeline-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 12px;
      padding: 20px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
    }

    .pipeline-stat {
      background: #151515;
      border-radius: 10px;
      padding: 16px;
    }

    .pipeline-stat-value {
      font-size: 24px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 4px;
    }

    .pipeline-stat-label {
      font-size: 12px;
      color: #666;
    }

    .pipeline-toolbar {
      padding: 16px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .pipeline-toolbar-left {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .pipeline-toolbar-right {
      display: flex;
      gap: 8px;
      align-items: center;
      margin-left: auto;
    }

    .pipeline-btn {
      padding: 8px 14px;
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 6px;
      color: #aaa;
      font-size: 12px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .pipeline-btn:hover {
      background: #222;
      border-color: #333;
      color: #fff;
    }

    .pipeline-btn.primary {
      background: #fff;
      border-color: #fff;
      color: #0d0d0d;
    }

    .pipeline-btn.primary:hover {
      background: #e0e0e0;
      border-color: #e0e0e0;
    }

    .pipeline-btn svg {
      width: 14px;
      height: 14px;
    }

    .pipeline-search {
      width: 240px;
      padding: 8px 12px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 6px;
      color: #fff;
      font-size: 13px;
      font-family: inherit;
    }

    .pipeline-search:focus {
      outline: none;
      border-color: #444;
    }

    .pipeline-search::placeholder {
      color: #555;
    }

    .pipeline-filters {
      display: flex;
      gap: 6px;
      padding: 12px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
      overflow-x: auto;
    }

    .pipeline-filter {
      padding: 6px 12px;
      background: transparent;
      border: 1px solid #2a2a2a;
      border-radius: 20px;
      color: #666;
      font-size: 11px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
    }

    .pipeline-filter:hover {
      border-color: #444;
      color: #888;
    }

    .pipeline-filter.active {
      background: #fff;
      border-color: #fff;
      color: #0d0d0d;
    }

    .pipeline-filter .count {
      margin-left: 4px;
      opacity: 0.7;
    }

    /* Pipeline Table */
    .pipeline-table {
      width: 100%;
    }

    .pipeline-table-header {
      display: grid;
      grid-template-columns: 110px 2fr 2fr 180px 100px 100px;
      gap: 16px;
      padding: 14px var(--detail-padding);
      background: #0a0a0a;
      border-bottom: 1px solid #1a1a1a;
      font-size: 11px;
      font-weight: 600;
      color: #555;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .pipeline-row {
      display: grid;
      grid-template-columns: 110px 2fr 2fr 180px 100px 100px;
      gap: 16px;
      padding: 16px var(--detail-padding);
      border-bottom: 1px solid #1a1a1a;
      cursor: pointer;
      transition: background 0.15s;
      align-items: center;
    }

    .pipeline-row:hover {
      background: #151515;
    }

    .pipeline-row.selected {
      background: #1a1a2a;
    }

    .pipeline-status {
      padding: 5px 10px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      text-align: center;
    }

    .pipeline-status.draft { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }
    .pipeline-status.generating { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
    .pipeline-status.needs-picks { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
    .pipeline-status.ready { background: rgba(16, 185, 129, 0.2); color: #10b981; }
    .pipeline-status.invited { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
    .pipeline-status.error { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

    .pipeline-person {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .pipeline-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
    }

    .pipeline-name {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .pipeline-email {
      font-size: 13px;
      color: #666;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .pipeline-progress {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .pipeline-progress-bar {
      height: 6px;
      background: #2a2a2a;
      border-radius: 3px;
      overflow: hidden;
    }

    .pipeline-progress-fill {
      height: 100%;
      border-radius: 3px;
      transition: width 0.3s;
    }

    .pipeline-progress-fill.blue { background: #3b82f6; }
    .pipeline-progress-fill.yellow { background: #f59e0b; }
    .pipeline-progress-fill.green { background: #10b981; }

    .pipeline-progress-text {
      font-size: 11px;
      color: #666;
    }

    .pipeline-time {
      font-size: 12px;
      color: #555;
    }

    .pipeline-actions {
      display: flex;
      gap: 6px;
    }

    .pipeline-action-btn {
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 6px;
      color: #555;
      cursor: pointer;
      transition: all 0.15s;
    }

    .pipeline-action-btn:hover {
      background: #1a1a1a;
      border-color: #2a2a2a;
      color: #888;
    }

    .pipeline-action-btn svg {
      width: 16px;
      height: 16px;
    }

    /* Slide-out Drawer */
    .pipeline-drawer-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
    }

    .pipeline-drawer-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .pipeline-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 520px;
      max-width: 100vw;
      background: #0d0d0d;
      border-left: 1px solid #1a1a1a;
      z-index: 1001;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      display: flex;
      flex-direction: column;
    }

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

    .pipeline-drawer-header {
      padding: 20px 24px;
      border-bottom: 1px solid #1a1a1a;
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .pipeline-drawer-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
    }

    .pipeline-drawer-info {
      flex: 1;
      min-width: 0;
    }

    .pipeline-drawer-name {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 2px;
    }

    .pipeline-drawer-email {
      font-size: 13px;
      color: #555;
    }

    .pipeline-drawer-close {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #1a1a1a;
      border: none;
      border-radius: 8px;
      color: #888;
      cursor: pointer;
      transition: all 0.15s;
    }

    .pipeline-drawer-close:hover {
      background: #222;
      color: #fff;
    }

    .pipeline-drawer-close svg {
      width: 18px;
      height: 18px;
    }

    .pipeline-drawer-body {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
    }

    /* Workflow Steps */
    .pipeline-step {
      position: relative;
      padding-left: 36px;
      padding-bottom: 28px;
    }

    .pipeline-step:last-child {
      padding-bottom: 0;
    }

    .pipeline-step::before {
      content: '';
      position: absolute;
      left: 13px;
      top: 28px;
      bottom: 0;
      width: 2px;
      background: #2a2a2a;
    }

    .pipeline-step:last-child::before {
      display: none;
    }

    .pipeline-step-marker {
      position: absolute;
      left: 0;
      top: 0;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #1a1a1a;
      border: 2px solid #2a2a2a;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
      color: #555;
    }

    .pipeline-step.complete .pipeline-step-marker {
      background: #10b981;
      border-color: #10b981;
      color: #fff;
    }

    .pipeline-step.active .pipeline-step-marker {
      background: #3b82f6;
      border-color: #3b82f6;
      color: #fff;
    }

    .pipeline-step.error .pipeline-step-marker {
      background: #ef4444;
      border-color: #ef4444;
      color: #fff;
    }

    .pipeline-step-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
      min-height: 28px;
    }

    .pipeline-step-title {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
    }

    .pipeline-step:not(.active):not(.complete):not(.error) .pipeline-step-title {
      color: #666;
    }

    .pipeline-step-badge {
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .pipeline-step-badge.complete { background: rgba(16, 185, 129, 0.15); color: #10b981; }
    .pipeline-step-badge.running { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
    .pipeline-step-badge.waiting { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
    .pipeline-step-badge.error { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

    .pipeline-step-content {
      background: #151515;
      border: 1px solid #1a1a1a;
      border-radius: 10px;
      padding: 16px;
      margin-top: 8px;
    }

    .pipeline-step:not(.active) .pipeline-step-content {
      display: none;
    }

    .pipeline-step-desc {
      font-size: 12px;
      color: #888;
      margin-bottom: 14px;
      line-height: 1.5;
    }

    .pipeline-field {
      margin-bottom: 14px;
    }

    .pipeline-field:last-child {
      margin-bottom: 0;
    }

    .pipeline-field-label {
      font-size: 11px;
      color: #666;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .pipeline-field-input {
      width: 100%;
      padding: 10px 12px;
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 6px;
      color: #fff;
      font-size: 13px;
      font-family: inherit;
    }

    .pipeline-field-input:focus {
      outline: none;
      border-color: #444;
    }

    .pipeline-upload-zone {
      border: 2px dashed #2a2a2a;
      border-radius: 8px;
      padding: 28px;
      text-align: center;
      cursor: pointer;
      transition: all 0.15s;
    }

    .pipeline-upload-zone:hover {
      border-color: #444;
      background: #1a1a1a;
    }

    .pipeline-upload-zone svg {
      width: 28px;
      height: 28px;
      color: #444;
      margin-bottom: 8px;
    }

    .pipeline-upload-text {
      font-size: 12px;
      color: #666;
    }

    .pipeline-emotions {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
    }

    .pipeline-emotion {
      background: #1a1a1a;
      border-radius: 8px;
      padding: 10px 8px;
      text-align: center;
      cursor: pointer;
      transition: all 0.15s;
      border: 2px solid transparent;
    }

    .pipeline-emotion:hover {
      background: #222;
    }

    .pipeline-emotion.picked {
      border-color: #10b981;
    }

    .pipeline-emotion.needs-pick {
      border-color: #f59e0b;
      border-style: dashed;
    }

    .pipeline-emotion-icon {
      font-size: 22px;
      margin-bottom: 4px;
    }

    .pipeline-emotion-name {
      font-size: 10px;
      color: #888;
      margin-bottom: 2px;
    }

    .pipeline-emotion-status {
      font-size: 9px;
      color: #555;
    }

    .pipeline-emotion-status.done {
      color: #10b981;
    }

    /* Frame Picker (for Select Frames step) */
    .frame-picker {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .frame-row {
      background: #151515;
      border-radius: 10px;
      padding: 14px;
    }

    .frame-row-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }

    .frame-row-emoji {
      font-size: 20px;
    }

    .frame-row-title {
      font-size: 13px;
      font-weight: 600;
      color: #fff;
    }

    .frame-row-status {
      margin-left: auto;
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 600;
    }

    .frame-row-status.picked {
      background: rgba(16, 185, 129, 0.15);
      color: #10b981;
    }

    .frame-row-status.needs-pick {
      background: rgba(245, 158, 11, 0.15);
      color: #f59e0b;
    }

    .frame-row-frames {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding-bottom: 8px;
    }

    .frame-thumb {
      width: 100px;
      height: 100px;
      flex-shrink: 0;
      background: #2a2a2a;
      border-radius: 10px;
      cursor: pointer;
      border: 3px solid transparent;
      transition: all 0.15s;
      position: relative;
      overflow: hidden;
    }

    .frame-thumb:hover {
      border-color: #444;
      transform: scale(1.03);
    }

    .frame-thumb.selected {
      border-color: #10b981;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    }

    .frame-thumb-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .frame-thumb-number {
      position: absolute;
      bottom: 6px;
      right: 6px;
      background: rgba(0,0,0,0.75);
      padding: 3px 7px;
      border-radius: 4px;
      font-size: 11px;
      color: #999;
    }

    .frame-thumb.selected .frame-thumb-number {
      background: #10b981;
      color: #fff;
    }

    .pipeline-step-actions {
      display: flex;
      gap: 8px;
      margin-top: 16px;
    }

    .pipeline-step-btn {
      flex: 1;
      padding: 10px 14px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .pipeline-step-btn.secondary {
      background: transparent;
      border: 1px solid #333;
      color: #888;
    }

    .pipeline-step-btn.secondary:hover {
      background: #1a1a1a;
      border-color: #444;
      color: #aaa;
    }

    .pipeline-step-btn.primary {
      background: #fff;
      border: none;
      color: #0d0d0d;
    }

    .pipeline-step-btn.primary:hover {
      background: #e0e0e0;
    }

    .pipeline-step-btn.primary:disabled {
      background: #333;
      color: #666;
      cursor: not-allowed;
    }

    /* Public Homepage (Logged Out) */
    .public-home {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      background: #0d0d0d;
    }

    .public-layout {
      flex: 1;
      align-self: center;
    }

    .public-header {
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid #1a1a1a;
      position: sticky;
      top: 0;
      background: #0d0d0d;
      z-index: 100;
    }

    .public-header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .apply-page-logo,
    .public-logo {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      text-decoration: none;
      letter-spacing: 0;
    }

    .public-header-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .public-login-btn {
      padding: 8px 16px;
      background: transparent;
      border: 1px solid #333;
      border-radius: 20px;
      color: #888;
      white-space: nowrap;
      flex-shrink: 0;
      font-size: 13px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .public-login-btn:hover {
      border-color: #555;
      color: #fff;
    }

    .public-apply-btn {
      padding: 8px 20px;
      background: #fff;
      border: none;
      border-radius: 20px;
      color: #0d0d0d;
      font-size: 13px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .public-apply-btn:hover {
      background: #e0e0e0;
    }

    .public-header-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    /* Application Page */
    .apply-page {
      position: fixed;
      inset: 0;
      background: #0d0d0d;
      z-index: 1000;
      overflow-y: auto;
      display: none;
    }

    .apply-page.active {
      display: block;
    }

    .apply-page-header {
      position: sticky;
      top: 0;
      background: rgba(13,13,13,0.9);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid #1a1a1a;
      padding: 0 var(--detail-padding);
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 10;
    }

    .apply-page-close {
      display: flex;
      align-items: center;
      gap: 8px;
      background: none;
      border: none;
      color: #666;
      font-size: 14px;
      font-family: inherit;
      cursor: pointer;
      padding: 8px 12px;
      margin: -8px -12px;
      transition: color 0.15s;
    }

    .apply-page-close:hover {
      color: #fff;
    }

    .apply-page-close svg {
      width: 18px;
      height: 18px;
    }

    .apply-page-content {
      max-width: 640px;
      margin: 0 auto;
      padding: 60px 24px 100px 24px;
    }

    .apply-page-hero {
      margin-bottom: 48px;
    }

    .apply-page-title {
      font-size: 36px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 16px;
      letter-spacing: -0.02em;
    }

    .apply-page-subtitle {
      font-size: 18px;
      color: #888;
      line-height: 1.6;
      margin-bottom: 32px;
    }

    .apply-page-stats {
      display: flex;
      gap: 32px;
      padding: 24px 0;
      border-top: 1px solid #1a1a1a;
      border-bottom: 1px solid #1a1a1a;
    }

    .apply-page-stat {
      text-align: center;
    }

    .apply-page-stat-value {
      font-size: 28px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 4px;
    }

    .apply-page-stat-label {
      font-size: 13px;
      color: #666;
    }

    .apply-page-philosophy {
      background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.04) 100%);
      border: 1px solid rgba(99,102,241,0.15);
      border-radius: 16px;
      padding: 28px;
      margin-bottom: 48px;
    }

    .apply-page-philosophy-title {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 12px;
    }

    .apply-page-philosophy-text {
      font-size: 15px;
      color: #999;
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .apply-page-philosophy-text:last-child {
      margin-bottom: 0;
    }

    .apply-page-philosophy-highlight {
      color: #c4b5fd;
    }

    .apply-page-benefits {
      margin-bottom: 48px;
    }

    .apply-page-benefits-title {
      font-size: 13px;
      font-weight: 600;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 16px;
    }

    .apply-page-benefit {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 20px 0;
      border-bottom: 1px solid #1a1a1a;
    }

    .apply-page-benefit:last-child {
      border-bottom: none;
    }

    .apply-page-benefit-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: #1a1a1a;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .apply-page-benefit-icon svg {
      width: 20px;
      height: 20px;
      color: #888;
    }

    .apply-page-benefit-content {
      flex: 1;
    }

    .apply-page-benefit-title {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 4px;
    }

    .apply-page-benefit-desc {
      font-size: 14px;
      color: #666;
      line-height: 1.5;
    }

    .apply-form-section {
      margin-bottom: 40px;
    }

    .apply-form-section-title {
      font-size: 13px;
      font-weight: 600;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 20px;
    }

    .apply-form-group {
      margin-bottom: 24px;
    }

    .apply-form-label {
      display: block;
      font-size: 15px;
      font-weight: 500;
      color: #fff;
      margin-bottom: 8px;
    }

    .apply-form-hint {
      font-size: 13px;
      color: #555;
      margin-top: 8px;
    }

    .apply-form-input {
      width: 100%;
      padding: 16px 18px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      color: #fff;
      font-size: 15px;
      font-family: inherit;
      transition: all 0.15s;
    }

    .apply-form-input:focus {
      outline: none;
      border-color: #444;
      background: #1a1a1a;
    }

    .apply-form-input::placeholder {
      color: #444;
    }

    .apply-form-textarea {
      width: 100%;
      padding: 16px 18px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      color: #fff;
      font-size: 15px;
      font-family: inherit;
      line-height: 1.6;
      resize: vertical;
      min-height: 120px;
      transition: all 0.15s;
    }

    .apply-form-textarea:focus {
      outline: none;
      border-color: #444;
      background: #1a1a1a;
    }

    .apply-form-textarea::placeholder {
      color: #444;
    }

    .apply-avatar-section {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .apply-avatar-preview {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: #151515;
      border: 2px dashed #333;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      flex-shrink: 0;
      transition: all 0.15s;
    }

    .apply-avatar-preview:hover {
      border-color: #444;
    }

    .apply-avatar-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .apply-avatar-preview svg {
      width: 40px;
      height: 40px;
      color: #333;
    }

    .apply-avatar-info {
      flex: 1;
    }

    .apply-avatar-btn {
      padding: 12px 20px;
      background: #1a1a1a;
      border: 1px solid #333;
      border-radius: 8px;
      color: #fff;
      font-size: 14px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      margin-bottom: 8px;
    }

    .apply-avatar-btn:hover {
      background: #222;
      border-color: #444;
    }

    .apply-avatar-hint {
      font-size: 13px;
      color: #555;
    }

    .apply-form-submit {
      width: 100%;
      padding: 18px;
      background: #fff;
      border: none;
      border-radius: 10px;
      color: #0d0d0d;
      font-size: 16px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      margin-top: 16px;
    }

    .apply-form-submit:hover {
      background: #e0e0e0;
      transform: translateY(-1px);
    }

    .apply-form-note {
      text-align: center;
      font-size: 13px;
      color: #555;
      margin-top: 16px;
    }

    /* Invite Flow */
    .invite-page {
      position: fixed;
      inset: 0;
      background: #0a0a0a;
      z-index: 1000;
      overflow-y: auto;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
    }

    .invite-page.active {
      opacity: 1;
      visibility: visible;
    }

    .invite-page-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      background: linear-gradient(to bottom, #0a0a0a 0%, transparent 100%);
    }

    .invite-page-logo {
      font-size: 18px;
      font-weight: 600;
      color: #fff;
      text-decoration: none;
      letter-spacing: -0.02em;
    }

    .invite-page-content {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 80px 24px 60px;
    }

    .invite-steps {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 48px;
    }

    .invite-step {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #222;
      color: #666;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 600;
      transition: all 0.3s;
    }

    .invite-step.active {
      background: #fff;
      color: #000;
    }

    .invite-step.completed {
      background: #22c55e;
      color: #fff;
    }

    .invite-step-line {
      width: 40px;
      height: 2px;
      background: #222;
    }

    .invite-step-content {
      max-width: 480px;
      width: 100%;
      text-align: center;
      display: none;
    }

    .invite-step-content.active {
      display: block;
    }

    /* Welcome Step */
    .invite-welcome {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .invite-welcome-from {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 24px;
    }

    .invite-welcome-avatar {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 100%);
      margin-bottom: 16px;
      overflow: hidden;
      box-shadow: 0 0 0 3px #0a0a0a, 0 0 0 5px rgba(99,102,241,0.4);
    }

    .invite-avatar-stage {
      width: 100%;
      height: 100%;
      position: relative;
    }

    .invite-avatar-face {
      width: 100%;
      height: 100%;
      background-size: 900% 900%;
      background-position: 50% 50%;
    }

    .invite-welcome-inviter {
      text-align: center;
    }

    .invite-welcome-inviter-name {
      font-size: 18px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 2px;
    }

    .invite-welcome-inviter-handle {
      font-size: 14px;
      color: #666;
    }

    .invite-welcome-text {
      font-size: 15px;
      color: #888;
      margin-bottom: 8px;
    }

    .invite-welcome-title {
      font-size: 48px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 16px;
      letter-spacing: -0.03em;
    }

    .invite-welcome-desc {
      font-size: 16px;
      color: #888;
      line-height: 1.6;
      margin-bottom: 32px;
      max-width: 400px;
    }

    .invite-welcome-message {
      background: #111;
      border: 1px solid #222;
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 32px;
      text-align: left;
      width: 100%;
    }

    .invite-welcome-message-label {
      font-size: 12px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 8px;
    }

    .invite-welcome-message-text {
      font-size: 15px;
      color: #ccc;
      line-height: 1.6;
      font-style: italic;
    }

    .invite-welcome-stats {
      display: flex;
      gap: 48px;
      margin-bottom: 40px;
    }

    .invite-welcome-stat {
      text-align: center;
    }

    .invite-welcome-stat-value {
      font-size: 28px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 4px;
    }

    .invite-welcome-stat-label {
      font-size: 13px;
      color: #666;
    }

    /* Section Titles */
    .invite-section-title {
      font-size: 28px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 8px;
      letter-spacing: -0.02em;
    }

    .invite-section-desc {
      font-size: 15px;
      color: #888;
      margin-bottom: 32px;
    }

    /* Form Styles */
    .invite-form-hint {
      font-size: 13px;
      color: #555;
      margin-top: 8px;
    }

    .invite-form-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-top: 32px;
    }

    /* Button Variants */
    .invite-btn.primary {
      background: #fff;
      color: #000;
    }

    .invite-btn.secondary {
      background: transparent;
      color: #888;
      border: 1px solid #333;
    }

    .invite-btn.secondary:hover {
      border-color: #555;
      color: #fff;
      box-shadow: none;
      transform: none;
    }

    /* Complete Step */
    .invite-complete {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .invite-complete-icon {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 24px;
    }

    .invite-complete-icon svg {
      width: 40px;
      height: 40px;
      color: #fff;
    }

    .invite-complete-title {
      font-size: 32px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 12px;
      letter-spacing: -0.02em;
    }

    .invite-complete-text {
      font-size: 16px;
      color: #888;
      line-height: 1.6;
      max-width: 360px;
    }

    /* Legacy step styles for reference compatibility */
    .invite-step-legacy {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 24px;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.5s ease;
      display: none;
    }

    .invite-step-legacy.active {
      display: flex;
      opacity: 1;
      transform: translateY(0);
    }

    /* Step 1: The Invitation */
    .invite-eyebrow {
      font-size: 13px;
      font-weight: 500;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 32px;
    }

    .invite-inviter-avatar {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 100%);
      margin: 0 auto 24px auto;
      box-shadow: 0 0 0 4px rgba(99,102,241,0.2), 0 20px 50px rgba(0,0,0,0.5);
    }

    .invite-title {
      font-size: 42px;
      font-weight: 600;
      color: #fff;
      line-height: 1.2;
      margin-bottom: 16px;
      letter-spacing: -0.02em;
    }

    .invite-title-name {
      color: #a5b4fc;
    }

    .invite-subtitle {
      font-size: 18px;
      color: #888;
      line-height: 1.6;
      margin-bottom: 32px;
    }

    .invite-inviter-card {
      background: #111;
      border: 1px solid #222;
      border-radius: 16px;
      padding: 24px;
      margin-bottom: 40px;
      text-align: left;
    }

    .invite-inviter-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 16px;
    }

    .invite-inviter-small-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 100%);
      flex-shrink: 0;
    }

    .invite-inviter-info {
      flex: 1;
    }

    .invite-inviter-name {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 2px;
    }

    .invite-inviter-stats {
      font-size: 13px;
      color: #666;
    }

    .invite-inviter-message {
      font-size: 15px;
      color: #ccc;
      line-height: 1.6;
      font-style: italic;
      padding-left: 20px;
      border-left: 2px solid #333;
    }

    .invite-note {
      font-size: 14px;
      color: #555;
      margin-bottom: 32px;
    }

    .invite-note-highlight {
      color: #a5b4fc;
    }

    .invite-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 18px 48px;
      background: #fff;
      color: #000;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.2s;
    }

    .invite-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(255,255,255,0.1);
    }

    .invite-btn-secondary {
      background: transparent;
      color: #666;
      border: 1px solid #333;
    }

    .invite-btn-secondary:hover {
      border-color: #555;
      color: #fff;
      box-shadow: none;
    }

    /* Step 2: What You're Joining */
    .invite-stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-bottom: 40px;
    }

    .invite-stat-card {
      background: #111;
      border: 1px solid #222;
      border-radius: 12px;
      padding: 24px 16px;
    }

    .invite-stat-value {
      font-size: 32px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 4px;
    }

    .invite-stat-label {
      font-size: 13px;
      color: #666;
    }

    .invite-manifesto {
      text-align: left;
      margin-bottom: 40px;
    }

    .invite-manifesto-item {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 20px 0;
      border-bottom: 1px solid #1a1a1a;
    }

    .invite-manifesto-item:last-child {
      border-bottom: none;
    }

    .invite-manifesto-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(139,92,246,0.1) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .invite-manifesto-icon svg {
      width: 20px;
      height: 20px;
      color: #a5b4fc;
    }

    .invite-manifesto-text {
      flex: 1;
    }

    .invite-manifesto-title {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 4px;
    }

    .invite-manifesto-desc {
      font-size: 14px;
      color: #666;
      line-height: 1.5;
    }

    /* Step 3: Introduce Yourself */
    .invite-form {
      text-align: left;
    }

    .invite-form-group {
      margin-bottom: 28px;
    }

    .invite-form-label {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 10px;
    }

    .invite-form-input {
      width: 100%;
      padding: 16px 18px;
      background: #111;
      border: 1px solid #222;
      border-radius: 10px;
      color: #fff;
      font-size: 16px;
      font-family: inherit;
      transition: all 0.15s;
    }

    .invite-form-input:focus {
      outline: none;
      border-color: #444;
      background: #151515;
    }

    .invite-form-input::placeholder {
      color: #444;
    }

    .invite-form-textarea {
      width: 100%;
      padding: 16px 18px;
      background: #111;
      border: 1px solid #222;
      border-radius: 10px;
      color: #fff;
      font-size: 16px;
      font-family: inherit;
      line-height: 1.6;
      resize: vertical;
      min-height: 100px;
      transition: all 0.15s;
    }

    .invite-form-textarea:focus {
      outline: none;
      border-color: #444;
      background: #151515;
    }

    .invite-form-textarea::placeholder {
      color: #444;
    }

    .invite-avatar-upload {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .invite-avatar-preview {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: #111;
      border: 2px dashed #333;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      flex-shrink: 0;
      cursor: pointer;
      transition: all 0.15s;
    }

    .invite-avatar-preview:hover {
      border-color: #555;
    }

    .invite-avatar-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .invite-avatar-preview svg {
      width: 36px;
      height: 36px;
      color: #333;
    }

    .invite-avatar-text {
      flex: 1;
    }

    .invite-avatar-title {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
      margin-bottom: 4px;
    }

    .invite-avatar-hint {
      font-size: 13px;
      color: #555;
    }

    .invite-preview-note {
      background: rgba(99,102,241,0.1);
      border: 1px solid rgba(99,102,241,0.2);
      border-radius: 10px;
      padding: 16px 20px;
      margin-top: 32px;
      margin-bottom: 32px;
      font-size: 14px;
      color: #a5b4fc;
      text-align: center;
    }

    /* Step 4: Ready */
    .invite-ready-number {
      font-size: 120px;
      font-weight: 700;
      color: #fff;
      line-height: 1;
      margin-bottom: 16px;
      background: linear-gradient(135deg, #fff 0%, #666 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .invite-ready-label {
      font-size: 18px;
      color: #666;
      margin-bottom: 48px;
    }

    .invite-ready-summary {
      background: #111;
      border: 1px solid #222;
      border-radius: 16px;
      padding: 32px;
      margin-bottom: 40px;
      text-align: left;
    }

    .invite-ready-row {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid #1a1a1a;
    }

    .invite-ready-row:last-child {
      border-bottom: none;
    }

    .invite-ready-label-small {
      font-size: 14px;
      color: #666;
    }

    .invite-ready-value {
      font-size: 14px;
      color: #fff;
      font-weight: 500;
    }

    /* Step 5: Welcome */
    .invite-welcome-burst {
      position: relative;
      margin-bottom: 40px;
    }

    .invite-welcome-avatar {
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 100%);
      margin: 0 auto;
      box-shadow: 0 0 0 4px #0a0a0a, 0 0 0 6px rgba(99,102,241,0.5), 0 30px 60px rgba(99,102,241,0.2);
    }

    .invite-welcome-confetti {
      position: absolute;
      inset: -50px;
      pointer-events: none;
      overflow: hidden;
    }

    .invite-welcome-title {
      font-size: 48px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 16px;
      letter-spacing: -0.02em;
    }

    .invite-welcome-subtitle {
      font-size: 20px;
      color: #888;
      margin-bottom: 48px;
    }

    .invite-welcome-followers {
      margin-bottom: 48px;
    }

    .invite-welcome-followers-label {
      font-size: 14px;
      color: #666;
      margin-bottom: 16px;
    }

    .invite-welcome-followers-avatars {
      display: flex;
      justify-content: center;
      margin-bottom: 12px;
    }

    .invite-welcome-follower {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 100%);
      border: 3px solid #0a0a0a;
      margin-left: -12px;
    }

    .invite-welcome-follower:first-child {
      margin-left: 0;
    }

    .invite-welcome-follower.more {
      background: #222;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
      color: #888;
    }

    .invite-welcome-followers-text {
      font-size: 15px;
      color: #888;
    }

    .invite-welcome-cta {
      background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
      color: #fff;
      padding: 20px 48px;
      border-radius: 12px;
      font-size: 17px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.2s;
      box-shadow: 0 10px 30px rgba(99,102,241,0.3);
    }

    .invite-welcome-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 15px 40px rgba(99,102,241,0.4);
    }

    .public-header-inner,
    .public-layout,
    .public-footer-inner {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      box-sizing: border-box;
    }

    .public-hero {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 60px;
      padding: 48px 0 40px 0;
      border-bottom: 1px solid #1a1a1a;
    }

    .public-hero-left {
      flex: 1;
      min-width: 0;
    }

    .public-hero-right {
      flex-shrink: 0;
      width: 360px;
    }

    .public-intro-headline {
      font-size: 28px;
      font-weight: 600;
      color: #fff;
      line-height: 1.3;
      margin-bottom: 12px;
    }

    .public-intro-sub {
      font-size: 16px;
      color: #888;
      line-height: 1.6;
      max-width: 560px;
    }

    .public-intro-actions {
      display: flex;
      gap: 16px;
      margin-top: 24px;
      align-items: center;
    }

    .public-intro-browse {
      font-size: 14px;
      color: #666;
    }

    .public-intro-apply {
      font-size: 14px;
      color: #888;
      text-decoration: none;
      transition: color 0.15s;
    }

    .public-intro-apply:hover {
      color: #fff;
    }

    .public-tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid #1a1a1a;
      overflow-x: auto;
    }

    .public-tab {
      padding: 16px 20px;
      background: none;
      border: none;
      border-bottom: 2px solid transparent;
      color: #666;
      font-size: 14px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
    }

    .public-tab:hover {
      color: #888;
    }

    .public-tab.active {
      color: #fff;
      border-bottom-color: #fff;
    }

    .public-projects {
      padding: 20px 0;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .public-prompts {
      padding: 20px 0;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .public-prompt {
      background: #1a1a1a;
      border-radius: 12px;
      padding: 24px;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
      display: flex;
      gap: 16px;
      align-items: flex-start;
    }

    .public-prompt:hover {
      transform: scale(1.01);
      box-shadow: 0 8px 32px rgba(0,0,0,0.3);
      background: #222;
    }

    .public-prompt-icon {
      font-size: 32px;
      flex-shrink: 0;
    }

    .public-prompt-content {
      flex: 1;
      min-width: 0;
    }

    .public-prompt-title {
      font-size: 18px;
      font-weight: 600;
      color: #fff;
      margin: 0 0 8px 0;
    }

    .public-prompt-desc {
      font-size: 14px;
      color: #999;
      margin: 0 0 12px 0;
      line-height: 1.5;
    }

    .public-prompt-meta {
      display: flex;
      gap: 12px;
      align-items: center;
      font-size: 13px;
      color: #666;
    }

    .public-prompt-stat {
      color: #888;
    }

    .public-prompt-sponsored {
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      color: #fff;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 500;
      text-transform: uppercase;
    }

    .public-empty-state {
      grid-column: 1 / -1;
      padding: 60px 20px;
      text-align: center;
      color: #666;
      font-size: 16px;
    }

    .public-empty-state a {
      color: #6366f1;
      text-decoration: none;
    }

    .public-empty-state a:hover {
      text-decoration: underline;
    }

    .public-empty-filter {
      grid-column: 1 / -1;
      padding: 60px 20px;
      text-align: center;
      color: #666;
      font-size: 16px;
    }

    .public-project {
      position: relative;
      border-radius: 12px;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
      overflow: hidden;
      height: 280px;
      width: 100%;
    }

    .public-project:hover {
      transform: scale(1.01);
      box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }

    .public-project-banner {
      position: absolute;
      inset: 0;
    }

    .public-project-banner-video {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
    }

    .public-project-banner-media {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .public-project-content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 12px 16px;
      background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    }

    .public-project-logo {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      object-fit: cover;
      margin-bottom: 6px;
    }

    .public-project-header {
      display: flex;
      flex-direction: column;
      gap: 2px;
      margin-bottom: 2px;
    }

    .public-project-name {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
    }

    .public-project-creator {
      font-size: 11px;
      color: rgba(255,255,255,0.5);
    }

    .public-project-desc {
      font-size: 12px;
      color: rgba(255,255,255,0.6);
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 4px;
    }

    .public-project-stats {
      display: flex;
      gap: 10px;
      font-size: 11px;
      color: rgba(255,255,255,0.4);
      margin-top: 6px;
    }

    .public-project-meta {
      display: none;
    }

    /* Placeholder animated backgrounds for demo - would be actual videos */
    .public-project-banner-video.thumb-1 {
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 50%, #1a2a45 100%);
      background-size: 200% 200%;
      animation: gradientShift 8s ease infinite;
    }
    .public-project-banner-video.thumb-2 {
      background: linear-gradient(135deg, #2d1f2e 0%, #4a2f4a 50%, #3d2535 100%);
      background-size: 200% 200%;
      animation: gradientShift 10s ease infinite;
    }
    .public-project-banner-video.thumb-3 {
      background: linear-gradient(135deg, #1a3535 0%, #2a4a4a 50%, #1f3a3a 100%);
      background-size: 200% 200%;
      animation: gradientShift 9s ease infinite;
    }
    .public-project-banner-video.thumb-4 {
      background: linear-gradient(135deg, #252535 0%, #353545 50%, #2a2a3a 100%);
      background-size: 200% 200%;
      animation: gradientShift 11s ease infinite;
    }
    .public-project-banner-video.thumb-5 {
      background: linear-gradient(135deg, #1f2a2a 0%, #2a3a3f 50%, #253035 100%);
      background-size: 200% 200%;
      animation: gradientShift 9.5s ease infinite;
    }
    .public-project-banner-video.thumb-6 {
      background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #2f2f2f 100%);
      background-size: 200% 200%;
      animation: gradientShift 12s ease infinite;
    }

    .public-project-stat {
      display: flex;
      align-items: center;
      gap: 16px;
      font-size: 13px;
      color: #555;
    }

    .public-project-stat {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .public-project-stat svg {
      width: 14px;
      height: 14px;
    }

    .public-digest {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
    }

    .public-digest-label {
      font-size: 13px;
      color: #888;
      line-height: 1.4;
      text-wrap: balance;
    }

    .public-digest-form {
      display: flex;
      width: 100%;
    }

    .public-digest-input {
      flex: 1;
      padding: 14px 16px;
      background: #111;
      border: 1px solid #2a2a2a;
      border-right: none;
      border-radius: 6px 0 0 6px;
      color: #fff;
      font-size: 15px;
      font-family: inherit;
    }

    .public-digest-input:focus {
      outline: none;
      border-color: #444;
    }

    .public-digest-input::placeholder {
      color: #555;
    }

    .public-digest-btn {
      padding: 14px 24px;
      background: #fff;
      border: none;
      border-radius: 0 6px 6px 0;
      color: #000;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s;
      white-space: nowrap;
    }

    .public-digest-btn:hover {
      background: #e5e5e5;
    }

    .public-digest-btn .btn-spinner {
      display: none;
      width: 14px;
      height: 14px;
      border: 2px solid transparent;
      border-top-color: #000;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .public-digest-btn.loading .btn-text {
      display: none;
    }

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

    .public-digest-success {
      display: none;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      background: rgba(34, 197, 94, 0.08);
      border: 1px solid rgba(34, 197, 94, 0.2);
      border-radius: 6px;
    }

    .public-digest-success-check {
      width: 28px;
      height: 28px;
      background: #22c55e;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .public-digest-success-check svg {
      width: 14px;
      height: 14px;
      color: #fff;
    }

    .public-digest-success-title {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
    }

    .public-digest-success-subtitle {
      font-size: 13px;
      color: #888;
      margin-top: 2px;
    }


    /* Public Footer */
    .public-footer {
      margin-top: auto;
      padding: 48px var(--detail-padding);
      border-top: 1px solid #1a1a1a;
      background: linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
    }

    .public-footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 24px;
    }

    .public-footer-brand {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .public-footer-logo {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
      text-decoration: none;
    }

    .public-footer-copy {
      font-size: 13px;
      color: #555;
      margin: 0;
    }

    .public-footer-links {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .public-footer-link {
      font-size: 13px;
      color: #666;
      text-decoration: none;
      transition: color 0.15s;
    }

    .public-footer-link:hover {
      color: #fff;
    }

    .public-footer-social {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .public-footer-social a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: #151515;
      border: 1px solid #2a2a2a;
      color: #666;
      transition: all 0.15s;
    }

    .public-footer-social a:hover {
      background: #1a1a1a;
      border-color: #333;
      color: #fff;
    }

    .public-footer-social svg {
      width: 18px;
      height: 18px;
    }

    @media (max-width: 768px) {
      .public-footer {
        padding: 32px var(--detail-padding);
      }
      
      .public-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
      }
      
      .public-footer-links {
        flex-wrap: wrap;
        gap: 16px;
      }
    }

    /* Public Homepage Mobile Optimization */
    @media (max-width: 768px) {
      .public-home {
        overflow-x: hidden;
        width: 100%;
      }

      .public-header-inner,
      .public-layout,
      .public-footer-inner {
        padding: 0 20px;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
      }

      .public-hero {
        flex-direction: column;
        gap: 24px;
        padding: 32px 0;
      }

      .public-hero-right {
        width: 100%;
      }

      .public-intro-headline {
        font-size: 24px;
        line-height: 1.3;
        word-wrap: break-word;
      }

      .public-intro-sub {
        font-size: 15px;
        word-wrap: break-word;
      }

      .public-intro-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }

      .public-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 16px 0;
        gap: 8px;
      }

      .public-tabs::-webkit-scrollbar {
        display: none;
      }

      .public-tab {
        flex-shrink: 0;
        padding: 8px 14px;
      font-size: 13px;
      }

      .public-digest-input {
        font-size: 16px;
      }

      .public-projects {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 0;
      }

      .public-prompts {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 0;
      }

      .public-prompt {
        padding: 16px;
      }

      .public-prompt-icon {
        font-size: 24px;
      }

      .public-prompt-title {
        font-size: 16px;
      }

      .public-project {
        height: 310px;
      }

      .public-project-content {
        padding: 12px 16px;
      }

      .public-project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
      }

      .public-project-name {
        font-size: 15px;
      }

      .public-project-desc {
      font-size: 13px;
        white-space: normal;
      }

      .public-empty-state {
        padding: 40px 20px;
        text-align: center;
      }

      .public-empty-state p {
        word-wrap: break-word;
      }

      .public-footer {
        padding: 32px 20px;
      }
    }

    @media (max-width: 480px) {
      .public-header-inner,
      .public-layout,
      .public-footer-inner {
        padding: 0 16px;
      }

      .public-header-actions {
        gap: 8px;
      }

      .public-login-btn {
        padding: 6px 10px;
        font-size: 12px;
      white-space: nowrap;
    }

      .public-apply-btn {
        padding: 6px 10px;
        font-size: 12px;
      }

      .public-intro-headline {
        font-size: 22px;
      }

      .public-intro-sub {
        font-size: 14px;
      }

      .public-project {
        height: 280px;
      }

      .public-footer {
        padding: 24px 16px;
      }
    }

    /* Public Project Page */
    .public-project-page {
      display: none;
      background: #0d0d0d;
      min-height: 100vh;
    }

    .public-project-page.active {
      display: block;
    }

    .public-project-page-header {
      height: 60px;
      border-bottom: 1px solid #1a1a1a;
      display: flex;
      align-items: center;
      justify-content: center;
      position: sticky;
      top: 0;
      background: #0d0d0d;
      z-index: 100;
    }

    .public-project-back {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #888;
      text-decoration: none;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: calc(100vw - 180px);
      flex-shrink: 1;
      font-size: 14px;
      transition: color 0.15s;
    }

    .public-project-back:hover {
      color: #fff;
    }

    .public-project-back svg {
      width: 18px;
      height: 18px;
    }

    .public-project-page-banner {
      width: 100%;
      height: 0;
      padding-bottom: 25%; /* Default, overridden by inline style */
      position: relative;
      overflow: hidden;
    }

    .public-project-page-banner-bg {
      position: absolute;
      inset: 0;
      background-size: 200% 200%;
      animation: gradientShift 8s ease infinite;
    }

    .public-project-page-banner-bg.thumb-1 {
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 50%, #1a2a45 100%);
    }

    .public-project-page-banner-bg.thumb-2 {
      background: linear-gradient(135deg, #2d1f2e 0%, #4a2f4a 50%, #3d2535 100%);
    }

    .public-project-page-banner-bg.thumb-3 {
      background: linear-gradient(135deg, #1a3535 0%, #2a4a4a 50%, #1f3a3a 100%);
    }

    .public-project-page-banner-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(13,13,13,1) 0%, rgba(13,13,13,0.3) 50%, transparent 100%);
    }

    .public-project-page-content {
      max-width: 1000px;
      margin: 0 auto;
      padding: 0 var(--detail-padding);
    }

    .public-project-page-hero {
      margin-top: -60px;
      position: relative;
      z-index: 10;
      margin-bottom: 32px;
    }

    .public-project-page-info {
      display: flex;
      gap: 32px;
      align-items: flex-start;
    }

    .public-project-page-main {
      flex: 1;
      min-width: 0;
    }

    .public-project-logo {
      width: 64px;
      height: 64px;
      border-radius: 12px;
      object-fit: cover;
      display: block;
      margin-bottom: 16px;
    }

    .public-project-page-title {
      font-size: 32px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 8px;
      letter-spacing: -0.02em;
    }

    .public-project-page-creator {
      font-size: 15px;
      color: #666;
      margin-bottom: 16px;
    }

    .public-project-page-creator a {
      color: #888;
      text-decoration: none;
    }

    .public-project-page-creator a:hover {
      color: #fff;
      text-decoration: underline;
    }

    .public-project-page-desc {
      font-size: 16px;
      color: #aaa;
      line-height: 1.6;
      margin-bottom: 16px;
    }

    .public-project-page-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: #6366f1;
      text-decoration: none;
      margin-bottom: 8px;
    }

    .public-project-page-link:hover {
      text-decoration: underline;
    }

    .public-project-page-link svg {
      width: 16px;
      height: 16px;
    }

    .public-project-page-stats {
      display: flex;
      gap: 20px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid #1a1a1a;
    }

    .public-project-page-stat {
      font-size: 14px;
      color: #666;
    }

    .public-project-page-stat strong {
      color: #fff;
      font-weight: 600;
    }

    .public-project-page-tabs {
      display: flex;
      gap: 24px;
      border-bottom: 1px solid #1a1a1a;
      padding: 0 0 16px 0;
      margin-bottom: 24px;
    }

    .public-project-page-tab {
      background: none;
      border: none;
      color: #555;
      font-size: 14px;
      font-family: inherit;
      cursor: pointer;
      padding: 8px 0;
      border-bottom: 2px solid transparent;
      margin-bottom: -17px;
      transition: all 0.15s;
    }

    .public-project-page-tab:hover {
      color: #888;
    }

    .public-project-page-tab.active {
      color: #fff;
      border-bottom-color: #fff;
    }

    .public-project-page-updates {
      padding: 0;
    }

    .public-project-update {
      display: flex;
      gap: 19px;
      padding: 24px 0;
      border-bottom: 1px solid #1a1a1a;
    }

    .public-project-update:first-child {
      padding-top: 24px;
    }

    .public-project-update-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 100%);
      flex-shrink: 0;
      overflow: hidden;
    }

    .public-project-update-avatar .avatar-stage {
      width: 100%;
      height: 100%;
    }

    .public-project-update-avatar .avatar-stage .avatar-face {
      width: 100%;
      height: 100%;
    }

    .public-project-update-main {
      flex: 1;
      min-width: 0;
    }

    .public-project-update-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .public-project-update-author {
      font-size: 15px;
      font-weight: 600;
      color: #fff;
    }

    .public-project-update-time {
      font-size: 14px;
      color: #555;
    }

    .public-project-update-content {
      font-size: 15px;
      color: #ccc;
      line-height: 1.6;
    }

    .public-project-update-content p {
      margin-bottom: 12px;
    }

    .public-project-update-content p:last-child {
      margin-bottom: 0;
    }

    .public-project-update-content a {
      color: #4a9eff;
      text-decoration: none;
      transition: color 0.15s;
    }

    .public-project-update-content a:hover {
      color: #6eb3ff;
      text-decoration: underline;
    }

    .public-project-update-content a.mention {
      color: #888;
      font-weight: 500;
    }

    .public-project-update-content a.mention:hover {
      color: #aaa;
    }

    .public-project-update-actions {
      display: flex;
      gap: 20px;
      margin-top: 12px;
    }

    .public-project-update-actions .post-action {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #666;
      font-size: 13px;
    }

    .public-project-update-actions .post-action svg {
      width: 16px;
      height: 16px;
    }

    /* PUBLIC DETAIL VIEW */
    .public-detail-post {
      display: flex;
      gap: 12px;
      padding: 20px 0;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .public-detail-avatar {
      width: 48px;
      height: 48px;
      flex-shrink: 0;
      border-radius: 50%;
      overflow: hidden;
      background: #1a1a1a;
    }

    .public-detail-avatar .avatar-stage {
      width: 100%;
      height: 100%;
    }

    .public-detail-avatar .avatar-stage .avatar-face {
      width: 100%;
      height: 100%;
    }

    .public-detail-avatar .avatar-placeholder {
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
      border-radius: 50%;
    }

    .public-detail-content {
      flex: 1;
      min-width: 0;
    }

    .public-detail-header {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 6px;
      margin-bottom: 8px;
    }

    .public-detail-author {
      font-weight: 600;
      color: #fff;
      text-decoration: none;
    }

    .public-detail-author:hover {
      text-decoration: underline;
    }

    .public-detail-handle {
      color: #666;
      font-size: 14px;
    }

    .public-detail-time {
      color: #555;
      font-size: 14px;
    }

    .public-detail-body {
      font-size: 15px;
      line-height: 1.6;
      color: #ccc;
    }

    .public-detail-body p {
      margin-bottom: 12px;
    }

    .public-detail-body p:last-child {
      margin-bottom: 0;
    }

    .public-detail-body img {
      max-width: 100%;
      border-radius: 8px;
      margin: 8px 0;
    }

    .public-detail-body a {
      color: #6eb3ff;
      text-decoration: none;
    }

    .public-detail-body a:hover {
      text-decoration: underline;
    }

    .public-detail-body a.mention {
      color: #888;
      font-weight: 500;
    }

    .public-detail-body a.mention:hover {
      color: #aaa;
      text-decoration: none;
    }

    .public-detail-actions {
      display: flex;
      gap: 24px;
      margin-top: 16px;
    }

    .public-detail-actions .post-action {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #666;
      font-size: 14px;
    }

    .public-detail-actions .post-action svg {
      width: 18px;
      height: 18px;
    }

    .public-detail-comments {
      padding: 20px 0;
    }

    .public-detail-comments-title {
      font-size: 14px;
      font-weight: 600;
      color: #888;
      margin-bottom: 16px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .public-detail-comment {
      display: flex;
      gap: 12px;
      padding: 16px 0;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      transition: background 0.15s;
    }

    .public-detail-comment:hover {
      background: rgba(255,255,255,0.02);
    }

    .public-detail-comment-avatar {
      width: 40px;
      height: 40px;
      flex-shrink: 0;
      border-radius: 50%;
      overflow: hidden;
      background: #1a1a1a;
    }

    .public-detail-comment-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .public-detail-comment-avatar .avatar-stage {
      width: 100%;
      height: 100%;
    }

    .public-detail-comment-avatar .avatar-stage .avatar-face {
      width: 100%;
      height: 100%;
    }

    .public-detail-comment-avatar .avatar-placeholder {
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
      border-radius: 50%;
    }

    .public-detail-comment-content {
      flex: 1;
      min-width: 0;
    }

    .public-detail-comment-header {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 6px;
      margin-bottom: 4px;
    }

    .public-detail-comment-author {
      font-weight: 600;
      color: #fff;
      font-size: 14px;
    }

    .public-detail-comment-handle {
      color: #666;
      font-size: 13px;
    }

    .public-detail-comment-time {
      color: #555;
      font-size: 13px;
    }

    .public-detail-comment-body {
      font-size: 14px;
      line-height: 1.5;
      color: #bbb;
    }

    .public-detail-comment-body img {
      max-width: 100%;
      border-radius: 8px;
      margin: 8px 0;
    }

    .public-detail-comment-body a {
      color: #6eb3ff;
      text-decoration: none;
    }

    .public-detail-comment-body a:hover {
      text-decoration: underline;
    }

    .public-detail-comment-body a.mention {
      color: #888;
      font-weight: 500;
    }

    .public-detail-comment-body a.mention:hover {
      color: #aaa;
      text-decoration: none;
    }

    .public-detail-comment-media {
      margin-top: 12px;
    }

    .public-detail-comment-media img {
      max-width: 100%;
      border-radius: 8px;
      margin-bottom: 8px;
    }

    .public-detail-comment-actions {
      display: flex;
      gap: 16px;
      margin-top: 8px;
    }

    .public-detail-comment-actions .post-action {
      display: flex;
      align-items: center;
      gap: 4px;
      color: #555;
      font-size: 12px;
    }

    .public-detail-comment-actions .post-action svg {
      width: 14px;
      height: 14px;
    }

    .public-detail-login-prompt {
      padding: 24px;
      text-align: center;
      background: rgba(255,255,255,0.03);
      border-radius: 8px;
      margin-top: 24px;
    }

    .public-detail-login-prompt p {
      color: #888;
      font-size: 14px;
      margin: 0;
    }

    .public-detail-login-prompt a {
      color: #4a9eff;
      text-decoration: none;
    }

    .public-detail-login-prompt a:hover {
      text-decoration: underline;
    }

    .public-detail-context {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 0;
      position: relative;
    }

    .public-detail-context-line {
      position: absolute;
      left: 19px;
      top: 44px;
      bottom: -20px;
      width: 2px;
      background: rgba(255,255,255,0.1);
    }

    .public-detail-context-avatar {
      width: 40px;
      height: 40px;
      flex-shrink: 0;
      border-radius: 50%;
      overflow: hidden;
    }

    .public-detail-context-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .public-detail-context-content {
      flex: 1;
      min-width: 0;
    }

    .public-detail-context-link {
      text-decoration: none;
      display: block;
    }

    .public-detail-context-author {
      font-weight: 600;
      color: #888;
      font-size: 14px;
    }

    .public-detail-context-preview {
      color: #555;
      font-size: 13px;
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .public-detail-context-link:hover .public-detail-context-author {
      color: #aaa;
    }

    /* EMAIL SIGNUP */
    .project-email-signup {
      padding: 24px 0;
      margin-bottom: 0;
      border-bottom: 1px solid #1a1a1a;
    }

    .project-email-signup-wrapper {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .project-email-signup-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .project-email-signup-avatars {
      display: flex;
      align-items: center;
    }

    .project-email-signup-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2px solid #0d0d0d;
      margin-left: -10px;
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 100%);
    }

    .project-email-signup-avatar:first-child {
      margin-left: 0;
    }

    .project-email-signup-avatar:nth-child(2) {
      background: linear-gradient(135deg, #2d1f35 0%, #4a2f5f 100%);
    }

    .project-email-signup-avatar:nth-child(3) {
      background: linear-gradient(135deg, #1f352d 0%, #2f5f4a 100%);
    }

    .project-email-signup-text {
      font-size: 14px;
      color: #888;
    }

    .project-email-signup-text strong {
      color: #fff;
      font-weight: 500;
    }

    .project-email-signup-form {
      display: flex;
      align-items: center;
      gap: 0;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      padding: 4px;
      transition: all 0.15s;
    }

    .project-email-signup-form:focus-within {
      border-color: #3a3a3a;
    }

    .project-email-signup-input {
      width: 200px;
      padding: 8px 12px;
      background: transparent;
      border: none;
      color: #fff;
      font-size: 13px;
      font-family: inherit;
    }

    .project-email-signup-input:focus {
      outline: none;
    }

    .project-email-signup-input::placeholder {
      color: #555;
    }

    .project-email-signup-btn {
      padding: 8px 16px;
      background: #fff;
      border: none;
      border-radius: 6px;
      color: #0d0d0d;
      font-size: 13px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
    }

    .project-email-signup-btn:hover {
      background: #e8e8e8;
    }

    .project-email-signup-btn .btn-text {
      display: inline;
    }

    .project-email-signup-btn .btn-spinner {
      display: none;
      width: 14px;
      height: 14px;
      border: 2px solid transparent;
      border-top-color: #000;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .project-email-signup-btn.loading .btn-text {
      display: none;
    }

    .project-email-signup-btn.loading .btn-spinner {
      display: inline-block;
    }

    .project-email-signup-btn.loading {
      opacity: 0.7;
      cursor: not-allowed;
    }

    /* Mobile responsive for project email signup */
    @media (max-width: 768px) {
      .project-email-signup {
        padding: 20px 0;
      }

      .project-email-signup-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
      }

      .project-email-signup-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
      }

      .project-email-signup-text {
        font-size: 13px;
      }

      .project-email-signup-form {
        width: 100%;
      }

      .project-email-signup-input {
        flex: 1;
        width: auto;
        min-width: 0;
        font-size: 16px;
      }

      .signup-state-default {
        flex-direction: column;
        gap: 16px;
      }

      /* Fix avatar size on mobile for public project updates */
      .public-project-update-avatar {
        width: 48px;
        height: 48px;
      }

      .public-project-update {
        gap: 12px;
        padding: 16px 0;
      }
    }

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

    /* Signup states */
    .signup-state {
      display: none;
      width: 100%;
    }

    .signup-state-default {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .signup-state-success {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 16px;
      padding: 8px 0;
    }

    .signup-success-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .signup-success-icon svg {
      width: 20px;
      height: 20px;
      stroke: #fff;
    }

    .signup-state-success.animate-in .signup-success-icon {
      animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .signup-state-success.animate-in .signup-success-icon svg {
      animation: drawCheck 0.3s ease-out 0.2s both;
    }

    @keyframes popIn {
      0% { transform: scale(0); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }

    @keyframes drawCheck {
      0% { stroke-dasharray: 20; stroke-dashoffset: 20; }
      100% { stroke-dasharray: 20; stroke-dashoffset: 0; }
    }

    .signup-success-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .signup-success-text strong {
      color: #fff;
      font-size: 15px;
      font-weight: 600;
    }

    .signup-success-text span {
      color: #888;
      font-size: 13px;
    }

    .signup-state-success.animate-in .signup-success-text {
      animation: fadeSlideIn 0.3s ease-out 0.15s both;
    }

    @keyframes fadeSlideIn {
      0% { opacity: 0; transform: translateX(-10px); }
      100% { opacity: 1; transform: translateX(0); }
    }

    /* Public Profile Page */
    .public-profile-page {
      display: none;
      background: #0d0d0d;
      min-height: 100vh;
    }

    .public-profile-page.active {
      display: block;
    }

    .public-profile-content {
      max-width: 1000px;
      margin: 0 auto;
      padding: 40px 24px;
    }

    .public-profile-hero {
      display: flex;
      align-items: center;
      gap: 24px;
      margin-bottom: 40px;
      padding-bottom: 32px;
      border-bottom: 1px solid #1a1a1a;
    }

    .public-profile-avatar {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1a1f35 0%, #2a3f5f 100%);
      flex-shrink: 0;
    }

    .public-profile-info {
      flex: 1;
    }

    .public-profile-name {
      font-size: 28px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 4px;
    }

    .public-profile-handle {
      font-size: 16px;
      color: #666;
      margin-bottom: 12px;
    }

    .public-profile-bio {
      font-size: 15px;
      color: #999;
      line-height: 1.6;
    }

    .public-profile-section {
      margin-bottom: 40px;
    }

    .public-profile-section-title {
      font-size: 14px;
      font-weight: 600;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 20px;
    }

    .public-profile-projects {
      display: grid;
      gap: 16px;
    }

    .public-profile-updates {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .public-project-update-project {
      font-size: 14px;
      color: #666;
    }

    .public-project-update-project a {
      color: #888;
      text-decoration: none;
    }

    .public-project-update-project a:hover {
      color: #fff;
    }

    /* Logged-in card version */
    .project-email-signup-card {
      margin: 0 var(--detail-padding) 0 var(--detail-padding);
    }

    /* Danger Zone */
    .settings-section.danger {
      margin-top: 48px;
      padding-top: 24px;
      border-top: 1px solid #2a1a1a;
    }

    .settings-section.danger .settings-section-title {
      color: #e25555;
      border-bottom-color: #2a1a1a;
    }

    .danger-zone {
      background: rgba(226, 85, 85, 0.05);
      border: 1px solid #2a1a1a;
      border-radius: 12px;
      padding: 20px;
    }

    .danger-zone-header {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 16px;
    }

    .danger-zone-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: rgba(226, 85, 85, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #e25555;
      flex-shrink: 0;
    }

    .danger-zone-icon svg {
      width: 20px;
      height: 20px;
    }

    .danger-zone-info {
      flex: 1;
    }

    .danger-zone-title {
      font-size: 15px;
      font-weight: 600;
      color: #e25555;
      margin-bottom: 4px;
    }

    .danger-zone-desc {
      font-size: 13px;
      color: #666;
      line-height: 1.5;
    }

    .danger-zone-actions {
      display: flex;
      gap: 12px;
    }

    .delete-btn {
      padding: 10px 20px;
      background: transparent;
      border: 1px solid #3a2020;
      border-radius: 8px;
      color: #888;
      font-size: 13px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .delete-btn:hover {
      background: #2a1515;
      border-color: #4a2020;
      color: #e25555;
    }

    .delete-btn.confirm {
      background: #e25555;
      border-color: #e25555;
      color: #fff;
    }

    .delete-btn.confirm:hover {
      background: #c94444;
    }

    .delete-confirm-input {
      padding: 10px 14px;
      background: #151515;
      border: 1px solid #3a2020;
      border-radius: 8px;
      color: #fff;
      font-size: 14px;
      font-family: inherit;
      width: 100%;
      margin-bottom: 12px;
      transition: all 0.15s;
    }

    .delete-confirm-input:focus {
      outline: none;
      border-color: #e25555;
    }

    .delete-confirm-input::placeholder {
      color: #444;
    }

    .delete-confirmation {
      display: none;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid #2a1a1a;
    }

    .delete-confirmation.active {
      display: block;
    }

    .delete-confirmation-text {
      font-size: 13px;
      color: #888;
      margin-bottom: 12px;
      line-height: 1.5;
    }

    .delete-confirmation-text code {
      background: #1a1a1a;
      padding: 2px 6px;
      border-radius: 4px;
      color: #e25555;
      font-family: monospace;
    }

    /* Project Info Section */
    .project-info {
      position: relative;
      border-bottom: 1px solid #1a1a1a;
      overflow: hidden;
    }

    .project-info-hero {
      position: relative;
      padding: 60px var(--detail-padding) 24px;
    }

    .project-info-bg {
      position: absolute;
      inset: 0;
      background-size: 400% 400%;
      animation: gradientShift 8s ease infinite;
      opacity: 0.8;
    }

    .project-info-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 0%, rgba(13,13,13,0.5) 50%, rgba(13,13,13,1) 100%);
    }

    .project-info-content {
      position: relative;
      z-index: 1;
    }

    .project-info-header {
      margin-bottom: 12px;
    }

    .project-info-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .project-info-icon {
      width: 64px;
      height: 64px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      margin-bottom: 16px;
    }

    .project-info .project-name {
      font-size: 28px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 8px;
    }

    .project-info-details {
      padding: 0 var(--detail-padding) 24px;
    }

    .follow-btn {
      padding: 6px 16px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 20px;
      color: #fff;
      font-size: 13px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      flex-shrink: 0;
      backdrop-filter: blur(4px);
    }

    .follow-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .follow-btn.following {
      background: #fff;
      border-color: #fff;
      color: #0d0d0d;
    }

    .follow-btn.following:hover {
      background: #e25555;
      border-color: #e25555;
      color: #fff;
    }

    .follow-btn.follow-btn-header {
      background: transparent;
      border: 1px solid #333;
      color: #ccc;
      backdrop-filter: none;
    }

    .follow-btn.follow-btn-header:hover {
      background: #1a1a1a;
      border-color: #444;
      color: #fff;
    }

    .follow-btn.follow-btn-header.following {
      background: #fff;
      border-color: #fff;
      color: #0d0d0d;
    }

    .follow-btn.follow-btn-header.following:hover {
      background: #e25555;
      border-color: #e25555;
      color: #fff;
    }

    .project-stats-row {
      display: flex;
      gap: 16px;
    }

    .project-stat {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.6);
    }

    .project-description {
      color: #aaa;
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 16px;
    }

    .project-contributors {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .contributors-label {
      font-size: 12px;
      color: #666;
    }

    .contributors-avatars {
      display: flex;
      gap: -8px;
    }

    .contributor-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
      border: 2px solid #0d0d0d;
      margin-left: -8px;
    }

    .contributor-avatar:first-child {
      margin-left: 0;
    }

    .contributor-avatar.more {
      background: #1a1a1a;
      color: #888;
      font-size: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .project-updates {
      padding: var(--detail-padding);
    }

    .updates-header {
      font-size: 14px;
      font-weight: 600;
      color: #888;
      margin-bottom: 16px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* Page Header */
    .page-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px var(--content-padding);
      border-bottom: 1px solid #1a1a1a;
      position: sticky;
      top: 0;
      background: rgba(13, 13, 13, 0.9);
      backdrop-filter: blur(10px);
      z-index: 50;
    }

    .back-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: transparent;
      border: none;
      color: #aaa;
      cursor: pointer;
      transition: all 0.2s;
    }

    .back-btn:hover {
      background: #1a1a1a;
      color: #fff;
    }

    .back-btn svg {
      width: 20px;
      height: 20px;
    }

    .page-title {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
    }

    .project-header-bar {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      padding: 8px 12px;
      margin: -8px 0;
      border-radius: 8px;
      transition: background 0.15s;
    }

    .project-header-bar:hover {
      background: rgba(255, 255, 255, 0.03);
    }

    .project-header-meta {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .project-header-stat {
      color: #555;
      font-size: 13px;
    }

    @media (max-width: 500px) {
      .project-header-meta {
        display: none;
      }
    }

    /* Main Post Detail */
    .main-post {
      display: flex;
      align-items: flex-start;
      gap: var(--detail-avatar-gap);
      padding: var(--detail-padding);
    }

    .main-post-avatar {
      width: var(--detail-avatar-size);
      height: var(--detail-avatar-size);
      border-radius: 50%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
    }

    .main-post-content {
      flex: 1;
      min-width: 0;
      padding-top: 4px;
    }

    .main-post-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
      font-size: 14px;
    }

    .main-post-author-info {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px;
    }

    .main-post-author {
      font-weight: 600;
      color: #fff;
      cursor: pointer;
    }

    .main-post-author:hover {
      text-decoration: underline;
    }

    .main-post-handle {
      color: #555;
      margin-left: 8px;
    }

    .main-post-for {
      color: #555;
      margin-left: 8px;
    }

    .main-post-project {
      color: #888;
      margin-left: 4px;
    }

    @media (max-width: 768px) {
      .main-post-avatar {
        width: 80px;
        height: 80px;
      }
    }

    @media (max-width: 480px) {
      .main-post-avatar {
        width: 48px;
        height: 48px;
      }
    }

    .main-post-body {
      color: #ccc;
      font-size: 14px;
      line-height: 1.6;
    }

    .main-post-body p {
      margin-bottom: 12px;
    }

    .main-post-body p:last-child {
      margin-bottom: 0;
    }

    .main-post-body a {
      color: #fff;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .main-post-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 12px;
    }

    .main-post-stats {
      display: flex;
      gap: 20px;
      align-items: center;
    }

    .main-post-stat {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #555;
      font-size: 13px;
      cursor: pointer;
      transition: color 0.2s;
    }

    .main-post-stat:hover {
      color: #888;
    }

    .main-post-stat svg {
      width: 18px;
      height: 18px;
    }

    .main-post-stat.liked {
      color: #e25555;
    }

    .main-post-stat.liked svg {
      fill: #e25555;
    }

    .main-post-time {
      color: #555;
      font-size: 13px;
    }

    .main-post-timestamp {
      color: #555;
      font-size: 13px;
    }

    .main-post-replying-to {
      color: #555;
      font-size: 13px;
      margin-left: 8px;
    }

    .main-post-replying-to a {
      color: #7dd3fc;
      text-decoration: none;
    }

    .main-post-replying-to a:hover {
      text-decoration: underline;
    }

    .no-replies {
      padding: 40px 20px;
      text-align: center;
      color: #666;
      font-size: 14px;
    }

    .main-post-actions {
      display: flex;
      gap: 4px;
    }

    .action-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: transparent;
      border: none;
      color: #555;
      cursor: pointer;
      transition: all 0.2s;
    }

    .action-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #888;
    }

    .action-btn.liked {
      color: #e25555;
    }

    .action-btn svg {
      width: 18px;
      height: 18px;
    }

    /* Reply Composer - styled like prompt section */
    .reply-composer {
      display: flex;
      align-items: flex-start;
      gap: var(--detail-avatar-gap);
      padding: var(--detail-padding);
      border-top: 1px solid #1a1a1a;
      background: #0d0d0d;
      position: sticky;
      bottom: 0;
      z-index: 40;
    }

    .reply-composer-avatar {
      width: var(--detail-avatar-size);
      height: var(--detail-avatar-size);
      border-radius: 50%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
    }

    .reply-bubble {
      flex: 1;
      background-color: #151515;
      border-radius: 12px;
      padding: 14px 14px 10px 14px;
      position: relative;
      min-height: 70px;
      box-sizing: border-box;
    }

    .reply-bubble::before {
      content: '';
      position: absolute;
      left: -10px;
      top: 24px;
      width: 0;
      height: 0;
      border-top: 10px solid transparent;
      border-bottom: 10px solid transparent;
      border-right: 10px solid #151515;
    }

    .reply-textarea {
      width: 100%;
      background: transparent;
      border: none;
      color: #ccc;
      font-size: 14px;
      font-family: inherit;
      line-height: 1.6;
      resize: none;
      min-height: 40px;
      max-height: none;
      overflow: hidden;
    }

    .reply-textarea:focus {
      outline: none;
    }

    .reply-textarea::placeholder {
      color: #555;
    }

    .reply-bubble-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 6px;
    }

    .reply-btn {
      padding: 8px 16px;
      background: #2a2a2a;
      border: none;
      border-radius: 6px;
      color: #888;
      font-size: 12px;
      font-family: inherit;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
    }

    .reply-btn:hover {
      background: #333;
      color: #aaa;
    }

    .reply-btn.active {
      background: #fff;
      color: #0d0d0d;
    }

    .reply-btn.active:hover {
      background: #e0e0e0;
    }

    @media (max-width: 768px) {
      .reply-composer-avatar {
        width: 80px;
        height: 80px;
      }

      .reply-bubble {
        min-height: 80px;
      }
    }

    @media (max-width: 480px) {
      .reply-composer-avatar {
        width: 48px;
        height: 48px;
      }

      .reply-bubble {
        min-height: 48px;
        padding: 12px;
        padding-bottom: 50px;
      }

      .reply-bubble::before {
        display: none;
      }
    }

    /* Replies Section */
    .reply {
      display: flex;
      gap: var(--detail-avatar-gap);
      padding: var(--detail-padding);
      margin-bottom: var(--detail-reply-gap);
    }

    .reply-author-avatar {
      width: var(--detail-avatar-size);
      height: var(--detail-avatar-size);
      border-radius: 50%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
    }

    @media (max-width: 768px) {
      .reply-author-avatar {
        width: 80px;
        height: 80px;
      }
    }

    @media (max-width: 480px) {
      .reply-author-avatar {
        width: 48px;
        height: 48px;
      }
    }

    .reply-content {
      flex: 1;
      min-width: 0;
    }

    .reply-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 4px;
      flex-wrap: wrap;
    }

    .reply-menu-wrapper {
      position: relative;
      margin-left: auto;
    }

    .reply-menu-btn {
      background: none;
      border: none;
      color: #555;
      cursor: pointer;
      padding: 4px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
    }

    .reply-menu-btn:hover {
      color: #888;
      background: rgba(255, 255, 255, 0.1);
    }

    .reply-menu-btn svg {
      width: 16px;
      height: 16px;
    }

    .reply-menu-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      padding: 4px;
      min-width: 120px;
      z-index: 100;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: all 0.15s;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .reply-menu-dropdown.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .reply-menu-item {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      padding: 8px 12px;
      background: none;
      border: none;
      color: #ccc;
      font-size: 13px;
      cursor: pointer;
      border-radius: 4px;
      transition: all 0.15s;
    }

    .reply-menu-item:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .reply-menu-item.delete {
      color: #ff6b6b;
    }

    .reply-menu-item.delete:hover {
      background: rgba(255, 107, 107, 0.1);
    }

    .reply-menu-item svg {
      width: 14px;
      height: 14px;
    }

    .reply-author-name {
      font-weight: 600;
      color: #fff;
      font-size: 14px;
      cursor: pointer;
    }

    .reply-author-name:hover {
      text-decoration: underline;
    }

    .reply-author-handle {
      color: #555;
      font-size: 14px;
    }

    .reply-time {
      color: #555;
      font-size: 14px;
    }

    .reply-time::before {
      content: '·';
      margin-right: 8px;
    }

    .reply-body {
      color: #ccc;
      line-height: 1.6;
      margin-bottom: 12px;
    }

    .reply-body a {
      color: #fff;
      text-decoration: underline;
    }

    .reply-footer {
      display: flex;
      gap: 32px;
    }

    .reply-action {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #555;
      font-size: 13px;
      cursor: pointer;
      transition: color 0.2s;
    }

    .reply-action:hover {
      color: #888;
    }

    .reply-action svg {
      width: 16px;
      height: 16px;
    }

    .reply-action.liked {
      color: #e25555;
    }

    @media (max-width: 540px) {
      .page-header {
        padding: 12px var(--content-padding);
      }
    }

    /* New Project Modal */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s;
    }

    .modal-overlay.open,
    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .modal {
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 14px;
      width: 100%;
      max-width: 400px;
      max-height: calc(100vh - 32px);
      overflow-y: auto;
      padding: 24px;
      transform: scale(0.95);
      transition: transform 0.2s;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      margin: 16px;
    }

    @media (max-width: 480px) {
      .modal {
        padding: 20px;
        border-radius: 12px;
        max-height: calc(100vh - 24px);
      }
    }

    .modal-overlay.open .modal,
    .modal-overlay.active .modal,
    .modal-overlay.open .modal-content,
    .modal-overlay.active .modal-content {
      transform: scale(1);
    }

    .modal-content {
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 14px;
      width: 100%;
      max-width: 400px;
      max-height: calc(100vh - 32px);
      overflow-y: auto;
      transform: scale(0.95);
      transition: transform 0.2s;
    }

    .modal-content .modal-header {
      padding: 20px 24px;
      border-bottom: 1px solid #1a1a1a;
    }

    .modal-content .modal-body {
      padding: 24px;
    }

    .modal-content .modal-footer {
      padding: 16px 24px;
      border-top: 1px solid #1a1a1a;
    }

    .modal-close {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      border-radius: 50%;
      color: #888;
      cursor: pointer;
      transition: all 0.15s;
    }

    .modal-close:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
    }

    .modal-close svg {
      width: 18px;
      height: 18px;
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .modal-title {
      color: #fff;
      font-size: 16px;
      font-weight: 600;
    }

    .modal-close {
      width: 28px;
      height: 28px;
      border: none;
      background: #222;
      border-radius: 6px;
      color: #666;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
    }

    .modal-close:hover {
      background: #2a2a2a;
      color: #888;
    }

    .form-group {
      margin-bottom: 20px;
    }
    
    .form-group:last-of-type {
      margin-bottom: 0;
    }

    .form-label {
      display: block;
      font-size: 12px;
      color: #888;
      margin-bottom: 8px;
    }

    .form-input {
      width: 100%;
      padding: 12px 14px;
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      color: #fff;
      font-size: 14px;
      font-family: inherit;
      transition: border-color 0.2s;
    }

    .form-input:focus {
      outline: none;
      border-color: #444;
    }

    .form-input::placeholder {
      color: #444;
    }

    .form-input-prefix {
      position: relative;
    }

    .form-input-prefix .input-prefix {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: #666;
      font-size: 14px;
      pointer-events: none;
      white-space: nowrap;
    }

    .form-input-prefix .form-input {
      padding-left: 120px;
    }

    .form-textarea {
      resize: vertical;
      min-height: 80px;
    }

    .emoji-picker {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .emoji-option {
      width: 36px;
      height: 36px;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      background: #1a1a1a;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.15s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .emoji-option:hover {
      border-color: #444;
      background: #222;
    }

    .emoji-option.selected {
      border-color: #555;
      background: #252525;
    }

    /* Logo Upload */
    .logo-upload-area {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .logo-preview {
      position: relative;
      width: 64px;
      height: 64px;
      border-radius: 12px;
      overflow: hidden;
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
    }

    .logo-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .logo-remove-btn {
      position: absolute;
      top: -6px;
      right: -6px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #ff4444;
      border: none;
      color: white;
      font-size: 14px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .logo-remove-btn:hover {
      background: #ff2222;
    }

    .logo-upload-trigger {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 16px;
      background: #1a1a1a;
      border: 1px dashed #333;
      border-radius: 8px;
      color: #888;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.15s;
    }

    .logo-upload-trigger:hover {
      border-color: #555;
      color: #aaa;
      background: #1f1f1f;
    }

    .logo-upload-trigger svg {
      width: 20px;
      height: 20px;
      opacity: 0.6;
    }

    .gradient-picker {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .gradient-option {
      aspect-ratio: 16/9;
      border: 2px solid #2a2a2a;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.15s;
      overflow: hidden;
      position: relative;
    }

    .gradient-option:hover {
      border-color: #444;
      transform: scale(1.02);
    }

    .gradient-option.selected {
      border-color: #fff;
    }

    .gradient-option-bg {
      position: absolute;
      inset: 0;
      background-size: 400% 400%;
      animation: gradientShift 8s ease infinite;
    }

    .gradient-option-bg.gradient-1 {
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #16213e 100%);
    }

    .gradient-option-bg.gradient-2 {
      background: linear-gradient(135deg, #2d1f1f 0%, #4a2c2c 25%, #3d1f1f 50%, #2d1f1f 75%, #4a2c2c 100%);
    }

    .gradient-option-bg.gradient-3 {
      background: linear-gradient(135deg, #1a2e2a 0%, #163e36 25%, #0f6050 50%, #1a2e2a 75%, #163e36 100%);
    }

    .gradient-option-bg.gradient-4 {
      background: linear-gradient(135deg, #1a1a3e 0%, #2a2a5e 25%, #1a1a4e 50%, #1a1a3e 75%, #2a2a5e 100%);
    }

    .gradient-option-bg.gradient-5 {
      background: linear-gradient(135deg, #1a2a3e 0%, #2a3a4e 25%, #1a3a5e 50%, #1a2a3e 75%, #2a3a4e 100%);
    }

    .gradient-option-bg.gradient-6 {
      background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 25%, #1f1f1f 50%, #1a1a1a 75%, #2a2a2a 100%);
    }

    .gradient-option-label {
      position: absolute;
      bottom: 6px;
      left: 8px;
      font-size: 10px;
      color: rgba(255,255,255,0.7);
      text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }

    /* Header Media Upload Styles */
    .header-media-dropzone {
      position: relative;
      margin-bottom: 12px;
    }

    .header-media-preview {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 140px;
      background: #0d0d0d;
      border: 2px dashed #333;
      border-radius: 8px;
      transition: border-color 0.15s, background 0.15s;
      box-sizing: border-box;
      padding: 20px;
    }

    .header-media-dropzone.dragover .header-media-preview {
      border-color: #666;
      background: #151515;
    }

    .header-media-dropzone.has-media .header-media-preview {
      display: none;
    }

    .header-media-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #555;
      gap: 4px;
      text-align: center;
    }

    .header-media-empty svg {
      color: #555;
      margin-bottom: 4px;
      opacity: 0.8;
      width: 28px;
      height: 28px;
    }

    .header-media-empty > span {
      font-size: 12px;
    }

    .header-media-or {
      font-size: 10px;
      color: #444;
      margin: 2px 0;
    }

    .header-media-browse-btn {
      display: inline-block;
      font-size: 12px;
      color: #888;
      cursor: pointer;
      padding: 6px 14px;
      border: 1px solid #333;
      border-radius: 5px;
      transition: all 0.15s;
      margin-top: 4px;
      background: transparent;
    }

    .header-media-browse-btn:hover {
      color: #fff;
      border-color: #555;
      background: #1a1a1a;
    }

    .header-media-browse-btn input[type="file"] {
      display: none;
    }

    .header-media-dragover {
      display: none;
      position: absolute;
      inset: 0;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: rgba(0, 200, 100, 0.1);
      border-radius: 6px;
      color: #0c6;
    }

    .header-media-dropzone.dragover .header-media-empty {
      display: none;
    }

    .header-media-dropzone.dragover .header-media-dragover {
      display: flex;
    }

    .header-media-processing {
      display: none;
      padding: 16px;
      background: #111;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
      text-align: center;
    }

    .header-media-dropzone.processing .header-media-preview {
      display: none;
    }

    .header-media-dropzone.processing .header-media-processing {
      display: block;
    }

    .header-media-progress-bar {
      height: 4px;
      background: #2a2a2a;
      border-radius: 2px;
      overflow: hidden;
      margin-bottom: 8px;
    }

    .header-media-progress-fill {
      height: 100%;
      background: #0c6;
      width: 0%;
      transition: width 0.2s ease;
    }

    .header-media-progress-text {
      font-size: 11px;
      color: #666;
    }

    .header-media-current {
      display: none;
      flex-direction: column;
      gap: 8px;
    }

    .header-media-dropzone.has-media .header-media-current {
      display: flex;
    }

    .header-media-positioner {
      position: relative;
      width: 100%;
      height: 0;
      padding-bottom: 25%; /* Default aspect ratio, controlled by JS */
      background: #111;
      border: 1px solid #2a2a2a;
      border-radius: 8px 8px 0 0;
      overflow: hidden;
      cursor: grab;
    }

    .header-media-positioner:active {
      cursor: grabbing;
    }

    .header-media-positioner-preview {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .header-media-positioner-preview img,
    .header-media-positioner-preview video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 50% 50%;
    }

    .header-media-positioner-frame {
      position: absolute;
      inset: 0;
      border: 2px dashed rgba(255,255,255,0.3);
      border-radius: 6px;
      pointer-events: none;
    }

    .header-media-positioner-wrapper {
      display: flex;
      flex-direction: column;
    }

    .header-media-resize-handle {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 20px;
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-top: none;
      border-radius: 0 0 8px 8px;
      cursor: ns-resize;
      color: #555;
      transition: color 0.15s, background 0.15s;
    }

    .header-media-resize-handle:hover {
      background: #222;
      color: #888;
    }

    .header-media-height-display {
      font-size: 11px;
      color: #666;
      margin-left: auto;
      margin-right: 12px;
    }

    .header-media-playback-toggle {
      display: flex;
      gap: 2px;
      background: #1a1a1a;
      border-radius: 4px;
      padding: 2px;
      margin-left: 8px;
    }

    .playback-option {
      padding: 3px 8px;
      font-size: 10px;
      border: none;
      background: transparent;
      color: #666;
      cursor: pointer;
      border-radius: 3px;
      transition: all 0.15s;
    }

    .playback-option:hover {
      color: #999;
    }

    .playback-option.active {
      background: #333;
      color: #fff;
    }

    .header-media-positioner-hint {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 11px;
      color: rgba(255,255,255,0.5);
      background: rgba(0,0,0,0.6);
      padding: 3px 8px;
      border-radius: 4px;
      pointer-events: none;
    }

    .header-media-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 4px;
    }

    .header-media-thumb {
      width: 80px;
      height: 45px;
      background: #1a1a1a;
      background-size: cover;
      background-position: center;
      border-radius: 4px;
      flex-shrink: 0;
    }

    .header-media-thumb video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 4px;
    }

    .header-media-info {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .header-media-type {
      font-size: 12px;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .header-media-type-label {
      font-size: 11px;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .header-media-remove {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 10px;
      font-size: 12px;
      color: #ff6666;
      background: transparent;
      border: 1px solid #ff4444;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.15s;
    }

    .header-media-remove:hover {
      background: rgba(255, 68, 68, 0.1);
    }

    .form-label-note {
      font-weight: 400;
      color: #666;
      font-size: 11px;
    }

    .upload-option {
      aspect-ratio: 16/9;
      border: 2px dashed #2a2a2a;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.15s;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: #111;
    }

    .upload-option:hover {
      border-color: #444;
      background: #151515;
    }

    .upload-option svg {
      width: 20px;
      height: 20px;
      color: #555;
    }

    .upload-option span {
      font-size: 10px;
      color: #555;
    }

    .form-hint {
      font-size: 11px;
      color: #555;
      margin-top: 8px;
      line-height: 1.4;
    }

    .modal-actions {
      display: flex;
      gap: 12px;
      margin-top: 28px;
      padding-top: 20px;
      border-top: 1px solid #222;
    }

    .btn {
      flex: 1;
      padding: 12px 16px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
      font-family: inherit;
      border: none;
    }

    .btn-secondary {
      background: #222;
      color: #aaa;
    }

    .btn-secondary:hover {
      background: #2a2a2a;
      color: #ccc;
    }

    .btn-primary {
      background: #fff;
      color: #0d0d0d;
    }

    .btn-primary:hover {
      background: #e0e0e0;
    }

    .btn-danger {
      background: #dc2626;
      color: #fff;
      border: none;
    }

    .btn-danger:hover {
      background: #b91c1c;
    }

    .btn-danger-outline {
      background: transparent;
      color: #dc2626;
      border: 1px solid #dc2626;
      font-size: 12px;
      padding: 6px 12px;
    }

    .btn-danger-outline:hover {
      background: rgba(220, 38, 38, 0.1);
    }

    /* Danger Zone - Collapsible */
    .danger-zone-details {
      margin-top: 32px;
      border-top: 1px solid #2a2a2a;
      padding-top: 16px;
    }

    .danger-zone-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      color: #666;
      font-size: 12px;
      padding: 8px 0;
      list-style: none;
      user-select: none;
    }

    .danger-zone-summary::-webkit-details-marker {
      display: none;
    }

    .danger-zone-summary span {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .danger-zone-summary:hover {
      color: #888;
    }

    .danger-zone-summary svg {
      transition: transform 0.2s;
    }

    .danger-zone-details[open] .danger-zone-summary svg {
      transform: rotate(180deg);
    }

    .danger-zone-expanded {
      padding: 16px 0 8px 0;
    }

    .danger-zone-warning {
      font-size: 12px;
      color: #666;
      margin: 0 0 12px 0;
      line-height: 1.5;
    }

    /* ============================================
       DETAIL VIEW (Post Detail / Thread)
       ============================================ */
    
    /* Detail view inherits avatar size from main :root for consistency */

    .page-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px var(--content-padding);
      border-bottom: 1px solid #1a1a1a;
      background: rgba(13, 13, 13, 0.95);
      backdrop-filter: blur(10px);
      position: sticky;
      top: 0;
      z-index: 50;
    }

    .back-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: transparent;
      border: none;
      color: #888;
      cursor: pointer;
      transition: all 0.2s;
    }

    .back-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
    }

    .back-btn svg {
      width: 20px;
      height: 20px;
    }

    .project-header-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      padding: 6px 10px;
      margin: -6px -10px;
      border-radius: 8px;
      transition: background 0.15s;
    }

    .project-header-bar:hover {
      background: rgba(255, 255, 255, 0.05);
    }

    .page-title {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin: 0;
    }

    .header-chevron {
      width: 16px;
      height: 16px;
      color: #555;
    }

    /* Main Post Detail */
    .main-post {
      display: flex;
      align-items: flex-start;
      gap: var(--detail-avatar-gap);
      padding: var(--detail-padding);
    }

    .main-post-avatar {
      width: var(--detail-avatar-size);
      height: var(--detail-avatar-size);
      border-radius: 50%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
      overflow: hidden;
    }

    .main-post-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    @media (max-width: 768px) {
      .main-post-avatar {
        width: 80px;
        height: 80px;
      }
    }

    @media (max-width: 480px) {
      .main-post-avatar {
        width: 48px;
        height: 48px;
      }
    }

    .main-post-content {
      flex: 1;
      min-width: 0;
      padding-top: 4px;
    }

    .main-post-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
      font-size: 14px;
    }

    .main-post-author-info {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px;
    }

    .main-post-author {
      font-weight: 600;
      color: #fff;
      cursor: pointer;
    }

    .main-post-author:hover {
      text-decoration: underline;
    }

    .main-post-handle {
      color: #555;
      margin-left: 8px;
    }

    .main-post-for {
      color: #555;
      margin-left: 8px;
    }

    .main-post-project {
      color: #888;
      margin-left: 4px;
      cursor: pointer;
    }

    .main-post-project:hover {
      text-decoration: underline;
      color: #aaa;
    }

    /* Detail view avatar sizes are inherited from main :root media queries */

    .main-post-body {
      color: #ccc;
      font-size: 14px;
      line-height: 1.6;
    }

    .main-post-body p {
      margin-bottom: 12px;
    }

    .main-post-body p:last-child {
      margin-bottom: 0;
    }

    .main-post-body a {
      color: #fff;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .main-post-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 12px;
    }

    .main-post-stats {
      display: flex;
      gap: 20px;
      align-items: center;
    }

    .main-post-stat {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #555;
      font-size: 13px;
      cursor: pointer;
      transition: color 0.2s;
    }

    .main-post-stat:hover {
      color: #888;
    }

    .main-post-stat svg {
      width: 18px;
      height: 18px;
    }

    .main-post-stat.liked {
      color: #e25555;
    }

    .main-post-stat.liked svg {
      fill: #e25555;
    }

    .main-post-time {
      color: #555;
      font-size: 13px;
    }

    .main-post-timestamp {
      color: #555;
      font-size: 13px;
    }

    .main-post-replying-to {
      color: #555;
      font-size: 13px;
      margin-left: 8px;
    }

    .main-post-replying-to a {
      color: #7dd3fc;
      text-decoration: none;
    }

    .main-post-replying-to a:hover {
      text-decoration: underline;
    }

    .no-replies {
      padding: 40px 20px;
      text-align: center;
      color: #666;
      font-size: 14px;
    }

    .main-post-actions {
      display: flex;
      gap: 4px;
    }

    .action-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: transparent;
      border: none;
      color: #555;
      cursor: pointer;
      transition: all 0.2s;
    }

    .action-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #888;
    }

    .action-btn.liked {
      color: #e25555;
    }

    .action-btn svg {
      width: 18px;
      height: 18px;
    }

    /* Reply Composer - styled like prompt section */
    .reply-composer {
      display: flex;
      align-items: flex-start;
      gap: var(--detail-avatar-gap);
      padding: var(--detail-padding);
      border-top: 1px solid #1a1a1a;
      background: #0d0d0d;
      position: sticky;
      bottom: 0;
      z-index: 40;
    }

    .reply-composer-avatar {
      width: var(--detail-avatar-size);
      height: var(--detail-avatar-size);
      border-radius: 50%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
      overflow: hidden;
    }

    .reply-composer-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .reply-bubble {
      flex: 1;
      background-color: #151515;
      border-radius: 12px;
      padding: 14px 14px 10px 14px;
      position: relative;
      min-height: 70px;
      box-sizing: border-box;
    }

    .reply-bubble::before {
      content: '';
      position: absolute;
      left: -10px;
      top: 24px;
      width: 0;
      height: 0;
      border-top: 10px solid transparent;
      border-bottom: 10px solid transparent;
      border-right: 10px solid #151515;
    }

    .reply-textarea {
      width: 100%;
      background: transparent;
      border: none;
      color: #ccc;
      font-size: 14px;
      font-family: inherit;
      line-height: 1.6;
      resize: none;
      min-height: 40px;
      max-height: none;
      overflow: hidden;
    }

    .reply-textarea:focus {
      outline: none;
    }

    .reply-textarea::placeholder {
      color: #555;
    }

    .reply-bubble-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 6px;
    }

    .reply-btn {
      padding: 8px 16px;
      background: #2a2a2a;
      border: none;
      border-radius: 6px;
      color: #888;
      font-size: 12px;
      font-family: inherit;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s;
    }

    .reply-btn:hover {
      background: #333;
      color: #aaa;
    }

    .reply-btn.active {
      background: #fff;
      color: #0d0d0d;
    }

    .reply-btn.active:hover {
      background: #e0e0e0;
    }

    @media (max-width: 768px) {
      .reply-composer-avatar {
        width: 80px;
        height: 80px;
      }

      .reply-bubble {
        min-height: 80px;
      }
    }

    @media (max-width: 480px) {
      .reply-composer-avatar {
        width: 36px;
        height: 36px;
      }

      .reply-bubble {
        min-height: 36px;
        padding: 8px 12px;
        padding-bottom: 8px;
      }

      .reply-bubble::before {
        display: none;
      }
      
      /* Hide footer buttons by default */
      .reply-bubble-footer {
        display: none;
      }
      
      /* Compact textarea */
      .reply-textarea {
        font-size: 14px;
        min-height: 20px;
        padding: 0;
      }
      
      /* Detail view: Hide navbar, lock composer to bottom */
      .detail-view ~ .sidebar,
      body:has(.detail-view) .sidebar {
        display: none !important;
      }
      
      /* Reply composer fixed to bottom */
      .reply-composer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 8px 12px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        z-index: 100;
        background: #0d0d0d;
        border-top: 1px solid #1a1a1a;
        gap: 10px;
      }
      
      /* Expanded state when focused */
      .reply-composer.expanded .reply-bubble {
        padding-bottom: 44px;
      }
      
      .reply-composer.expanded .reply-bubble-footer {
        display: flex;
        position: absolute;
        right: 12px;
        bottom: 8px;
      }
      
      /* Add padding to content so it's not hidden behind fixed composer */
      .detail-view .replies-section {
        padding-bottom: 70px;
      }
      
      /* No bottom padding needed on main since no navbar */
      .detail-view {
        padding-bottom: 0;
      }
    }

    /* Replies Section */
    .replies-section {
      /* No border */
    }

    .no-replies {
      padding: 40px 20px;
      text-align: center;
      color: #666;
      font-size: 14px;
    }

    /* Reply Context (shows parent post/comment) */
    .reply-context {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 20px;
      background: rgba(255, 255, 255, 0.02);
      border-bottom: 1px solid #1a1a1a;
      cursor: pointer;
      transition: background 0.15s;
    }

    .reply-context:hover {
      background: rgba(255, 255, 255, 0.04);
    }

    .reply-context-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      overflow: hidden;
      flex-shrink: 0;
    }

    .reply-context-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .reply-context-content {
      flex: 1;
      min-width: 0;
    }

    .reply-context-header {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .reply-context-author {
      font-weight: 600;
      color: #aaa;
      font-size: 12px;
    }

    .reply-context-handle {
      color: #666;
      font-size: 12px;
    }

    .reply-context-text {
      color: #777;
      font-size: 12px;
      margin-top: 2px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .reply-context-media-hint {
      color: #666;
      font-style: italic;
    }

    .reply-context-chevron {
      width: 16px;
      height: 16px;
      color: #555;
      flex-shrink: 0;
    }

    .reply {
      display: flex;
      gap: var(--detail-avatar-gap);
      padding: var(--detail-padding);
      margin-bottom: var(--detail-reply-gap);
    }

    .reply-author-avatar {
      width: var(--detail-avatar-size);
      height: var(--detail-avatar-size);
      border-radius: 50%;
      background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
      flex-shrink: 0;
      overflow: hidden;
    }

    .reply-author-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    @media (max-width: 768px) {
      .reply-author-avatar {
        width: 80px;
        height: 80px;
      }
    }

    @media (max-width: 480px) {
      .reply-author-avatar {
        width: 48px;
        height: 48px;
      }
    }

    .reply-content {
      flex: 1;
      min-width: 0;
      padding-top: 4px;
    }

    .reply-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
      font-size: 14px;
      flex-wrap: wrap;
    }

    .reply-author-name {
      font-weight: 600;
      color: #fff;
      cursor: pointer;
    }

    .reply-author-name:hover {
      text-decoration: underline;
    }

    .reply-author-handle {
      color: #555;
    }

    .reply-time {
      color: #555;
    }

    .reply-body {
      color: #ccc;
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 8px;
    }

    .reply-footer {
      display: flex;
      gap: 16px;
    }

    .reply-action {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #555;
      font-size: 13px;
      cursor: pointer;
      transition: color 0.15s;
    }

    .reply-action:hover {
      color: #888;
    }

    .reply-action.liked {
      color: #e25555;
    }

    .reply-action svg {
      width: 16px;
      height: 16px;
    }

    .replies-empty {
      padding: 40px 20px;
      text-align: center;
      color: #555;
      font-size: 14px;
    }

    .new-reply {
      animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ============================================
       POST MEDIA (Images in posts)
       ============================================ */

    .post-media {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
      border-radius: 12px;
      overflow: hidden;
    }

    .post-media-item {
      width: 100%;
      border-radius: 12px;
      overflow: hidden;
      background: #1a1a1a;
      cursor: pointer;
    }

    .post-media-item img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
      max-height: 500px;
      transition: transform 0.2s ease;
    }

    .post-media-item:hover img {
      transform: scale(1.02);
    }

    /* Multiple images grid */
    .post-media.multi-image {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 4px;
    }

    .post-media.multi-image .post-media-item:first-child:nth-last-child(3),
    .post-media.multi-image .post-media-item:first-child:nth-last-child(3) ~ .post-media-item:nth-child(2) {
      grid-column: span 1;
    }

    .post-media.multi-image .post-media-item:first-child:nth-last-child(3) ~ .post-media-item:nth-child(3) {
      grid-column: span 2;
    }

    /* Inline post images (when images are embedded in text) */
    .post-text {
      line-height: 1.6;
    }

    .post-text p {
      margin: 0;
    }

    .inline-post-image {
      margin: 12px 0;
      border-radius: 12px;
      overflow: hidden;
      background: #1a1a1a;
    }

    .inline-post-image img {
      width: 100%;
      height: auto;
      display: block;
      max-height: 500px;
      object-fit: contain;
    }

    /* Detail view media */
    .main-post-media {
      margin: 16px 0;
      border-radius: 12px;
      overflow: hidden;
    }

    .main-post-media img {
      width: 100%;
      height: auto;
      display: block;
      max-height: 600px;
      object-fit: contain;
      background: #1a1a1a;
      border-radius: 12px;
    }

    /* Reply media */
    .reply-media {
      margin-top: 12px;
      border-radius: 12px;
      overflow: hidden;
    }

    .reply-media img {
      width: 100%;
      height: auto;
      display: block;
      max-height: 600px;
      object-fit: contain;
      background: #1a1a1a;
      border-radius: 12px;
    }

    /* ============================================
       COMPOSER WITH DRAG & DROP
       ============================================ */

    .composer-area {
      position: relative;
    }

    .composer-area.drag-over {
      background: rgba(0, 255, 136, 0.05);
      border-color: #00ff88 !important;
    }

    .composer-area.drag-over::before {
      content: '';
      position: absolute;
      inset: 0;
      border: 2px dashed #00ff88;
      border-radius: 12px;
      pointer-events: none;
      z-index: 10;
    }

    .composer-drop-overlay {
      display: none;
      position: absolute;
      inset: 0;
      background: rgba(0, 255, 136, 0.1);
      border-radius: 12px;
      z-index: 10;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 8px;
      color: #00ff88;
      font-size: 14px;
      font-weight: 500;
      pointer-events: none;
    }

    .composer-area.drag-over .composer-drop-overlay {
      display: flex;
    }

    .composer-drop-overlay svg {
      width: 32px;
      height: 32px;
      opacity: 0.8;
    }

    /* Inline media preview in composer - full width like final post */
    .composer-media-inline {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
    }

    .composer-media-inline:empty {
      display: none;
    }

    .composer-media-inline-item {
      position: relative;
      width: 100%;
      border-radius: 12px;
      overflow: hidden;
      background: #1a1a1a;
      animation: fadeIn 0.2s ease-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.98); }
      to { opacity: 1; transform: scale(1); }
    }

    .composer-media-inline-item img {
      width: 100%;
      height: auto;
      display: block;
      max-height: 400px;
      object-fit: cover;
    }

    .composer-media-inline-item.uploading img {
      opacity: 0.5;
    }

    .composer-media-uploading {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.3);
    }

    .upload-spinner {
      width: 32px;
      height: 32px;
      border: 3px solid rgba(255, 255, 255, 0.2);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .composer-media-inline-remove {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 28px;
      height: 28px;
      background: rgba(0, 0, 0, 0.7);
      border: none;
      border-radius: 50%;
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.15s ease;
    }

    .composer-media-inline-item:hover .composer-media-inline-remove {
      opacity: 1;
    }

    .composer-media-inline-remove:hover {
      background: #e25555;
    }

    .composer-media-inline-remove svg {
      width: 14px;
      height: 14px;
    }

    /* Add image button - small icon */
    .composer-add-media-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      background: transparent;
      border: none;
      border-radius: 4px;
      color: #444;
      cursor: pointer;
      transition: all 0.15s ease;
      margin-right: auto;
      margin-left: -2px;
    }

    .composer-add-media-icon:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #777;
    }

    .composer-add-media-icon svg {
      width: 15px;
      height: 15px;
    }

    .composer-add-media-icon input {
      display: none;
    }

    /* Webcam capture button - visible on desktop, hidden on mobile */
    .webcam-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.15s ease;
      background: transparent;
      border: none;
      color: #444;
      margin-left: 4px;
    }
    .webcam-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #777;
    }
    .webcam-btn svg {
      width: 15px;
      height: 15px;
    }
    @media (max-width: 768px) {
      .webcam-btn {
        display: none !important;
      }
    }

    /* Reply composer media */
    .reply-media-preview {
      margin-top: 8px;
    }

    .reply-media-preview .composer-media-inline-item img {
      max-height: 200px;
    }

    /* Image modal/lightbox */
    .image-lightbox {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.95);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 40px;
    }

    .image-lightbox.active {
      display: flex;
    }

    .image-lightbox img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 4px;
    }

    .image-lightbox-close {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.1);
      border: none;
      border-radius: 50%;
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s ease;
    }

    .image-lightbox-close:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .image-lightbox-close svg {
      width: 24px;
      height: 24px;
    }

    /* Detail view footer refinements */
    .main-post-actions .action-btn {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .main-post-actions .action-btn span {
      font-size: 13px;
      color: #777;
    }

    .main-post-actions .action-btn.liked span {
      color: #e25555;
    }

    .main-post-meta {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .share-btn {
      opacity: 0.5;
      transition: opacity 0.15s ease;
      position: relative;
    }

    .share-btn:hover {
      opacity: 1;
    }

    .share-btn.copied::after {
      content: 'Copied!';
      position: absolute;
      top: -28px;
      left: 50%;
      transform: translateX(-50%);
      background: #333;
      color: #fff;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 11px;
      white-space: nowrap;
      animation: fadeIn 0.2s ease-out;
    }

    /* Post Menu (ellipsis dropdown) */
    .post-menu-wrapper {
      position: relative;
    }

    .post-menu-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      background: transparent;
      border: none;
      border-radius: 50%;
      color: #555;
      cursor: pointer;
      transition: all 0.15s;
    }

    .post-menu-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #888;
    }

    .post-menu-btn svg {
      width: 18px;
      height: 18px;
    }

    .post-menu-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      margin-top: 4px;
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 12px;
      min-width: 160px;
      padding: 8px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: all 0.15s ease;
      z-index: 100;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .post-menu-dropdown.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .post-menu-item {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 10px 12px;
      background: transparent;
      border: none;
      border-radius: 8px;
      color: #ccc;
      font-size: 14px;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      text-align: left;
    }

    .post-menu-item:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
    }

    .post-menu-item svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .post-menu-item.delete {
      color: #e25555;
    }

    .post-menu-item.delete:hover {
      background: rgba(226, 85, 85, 0.1);
    }

    /* Edit Post Modal */
    .edit-post-modal {
      width: 100%;
      max-width: 520px;
    }

    .edit-field {
      margin-bottom: 20px;
    }

    .edit-label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: #888;
      margin-bottom: 8px;
    }

    .edit-select {
      width: 100%;
      padding: 12px 14px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      color: #fff;
      font-size: 14px;
      font-family: inherit;
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 16px;
    }

    .edit-select:focus {
      outline: none;
      border-color: #444;
    }

    .edit-textarea {
      width: 100%;
      min-height: 150px;
      padding: 14px 16px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 10px;
      color: #fff;
      font-size: 15px;
      font-family: inherit;
      line-height: 1.5;
      resize: vertical;
    }

    .edit-textarea:focus {
      outline: none;
      border-color: #444;
    }

    /* Delete Post Modal */
    .delete-post-modal {
      width: 100%;
      max-width: 400px;
      text-align: center;
    }

    .delete-warning {
      font-size: 14px;
      color: #888;
      line-height: 1.6;
    }

    /* Modal Footer Buttons */
    .modal-footer {
      display: flex;
      gap: 12px;
      justify-content: flex-end;
    }

    .modal-btn {
      padding: 12px 20px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .modal-btn.secondary {
      background: transparent;
      border: 1px solid #333;
      color: #888;
    }

    .modal-btn.secondary:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #ccc;
    }

    .modal-btn.primary {
      background: #fff;
      border: none;
      color: #0d0d0d;
    }

    .modal-btn.primary:hover {
      background: #e0e0e0;
    }

    .modal-btn.primary:disabled {
      background: #333;
      color: #666;
      cursor: not-allowed;
    }

    .modal-btn.danger {
      background: #e25555;
      border: none;
      color: #fff;
    }

    .modal-btn.danger:hover {
      background: #d04545;
    }

    .modal-btn.danger:disabled {
      background: #6b3030;
      color: #999;
      cursor: not-allowed;
    }

    /* Detail view action buttons - match feed */
    .main-post-footer .post-actions {
      display: flex;
      gap: 20px;
      align-items: center;
      margin-top: 0; /* Reset inherited margin */
    }

    .main-post-footer .post-action {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #555;
      font-size: 13px;
      cursor: pointer;
      transition: color 0.2s;
    }

    .main-post-footer .post-action:hover {
      color: #888;
    }

    .main-post-footer .post-action svg {
      width: 18px;
      height: 18px;
    }

    .main-post-footer .post-action.liked {
      color: #e25555;
    }

    .main-post-footer .post-action.liked svg {
      fill: #e25555;
    }

    .main-post-footer .share-action {
      opacity: 0.6;
    }

    .main-post-footer .share-action:hover {
      opacity: 1;
    }

    /* Mobile detail view footer - clean single-line alignment */
    @media (max-width: 768px) {
      .main-post-footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #1a1a1a;
        gap: 12px;
        flex-wrap: nowrap;
      }

      .main-post-footer .post-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        flex-shrink: 0;
        margin-top: 0; /* Critical: reset inherited margin */
      }

      .main-post-footer .main-post-meta {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-shrink: 1;
        min-width: 0;
      }

      .main-post-footer .post-action {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        height: 20px;
      }

      .main-post-footer .post-action svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
      }

      .main-post-footer .post-action span {
        font-size: 13px;
      }

      .main-post-timestamp {
        font-size: 12px;
        color: #555;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .main-post-footer .share-action {
        display: none;
      }
    }

    /* Inline Edit Mode */
    .post-view-mode {
      display: block;
    }

    .post-edit-mode {
      display: none;
    }

    .main-post.editing .post-view-mode {
      display: none;
    }

    .main-post.editing .post-edit-mode {
      display: block !important;
    }

    .main-post.editing {
      background: transparent;
    }

    .main-post.editing .main-post-content {
      flex: 1;
    }

    /* Edit Composer - matches the feed composer style */
    .edit-composer {
      background: #151515;
      border-radius: 12px;
      padding: 14px;
    }
    
    .edit-avatar-hint {
      font-size: 11px;
      color: #666;
      margin-right: auto;
    }
    
    
    /* Reply composer avatar - make avatar-stage fit the container */
    .reply-composer-avatar .avatar-stage {
      width: 100%;
      height: 100%;
    }
    
    .reply-composer-avatar .avatar-face {
      width: 100%;
      height: 100%;
      background-size: 900% 900%; /* 9x9 grid */
    }
    
    /* Main post avatar - make avatar-stage fit the container */
    .main-post-avatar .avatar-stage {
      width: 100%;
      height: 100%;
    }
    
    .main-post-avatar .avatar-face {
      width: 100%;
      height: 100%;
      background-size: 900% 900%; /* 9x9 grid */
    }

    .edit-composer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .edit-composer-label {
      font-size: 13px;
      font-weight: 500;
      color: #666;
    }

    .edit-project-selector {
      display: flex;
      align-items: center;
    }

    .edit-project-select {
      padding: 6px 26px 6px 10px;
      background: rgba(21, 21, 21, 0.3);
      border: 1px solid rgba(42, 42, 42, 0.3);
      border-radius: 6px;
      color: rgba(170, 170, 170, 0.8);
      font-size: 11px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 8px center;
      background-size: 10px;
      backdrop-filter: blur(2px);
      transition: all 0.2s;
    }

    .edit-project-select:hover {
      background: rgba(31, 31, 31, 0.95);
      border-color: #444;
      color: #ccc;
    }

    .edit-project-select:focus {
      outline: none;
      background: rgba(31, 31, 31, 0.95);
      border-color: #444;
      color: #ccc;
    }

    .edit-project-select option {
      background: #151515;
      color: #ccc;
      padding: 8px;
    }

    .edit-content-area {
      width: 100%;
      min-height: 80px;
      background: transparent;
      border: none;
      color: #e8e8e8;
      font-size: 16px;
      font-family: inherit;
      line-height: 1.6;
      outline: none;
    }

    .edit-content-area:empty::before {
      content: attr(data-placeholder);
      color: #555;
      pointer-events: none;
    }

    .edit-content-area img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      margin: 12px 0;
      display: block;
    }

    .edit-composer-footer {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 10px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid #1a1a1a;
    }

    .edit-cancel-btn {
      padding: 8px 16px;
      background: transparent;
      border: 1px solid #333;
      border-radius: 20px;
      color: #888;
      font-size: 13px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .edit-cancel-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      border-color: #444;
      color: #ccc;
    }

    .edit-save-btn {
      padding: 8px 20px;
      background: #fff;
      border: none;
      border-radius: 20px;
      color: #0d0d0d;
      font-size: 13px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
    }

    .edit-save-btn:hover {
      background: #e8e8e8;
    }

    .edit-save-btn:disabled {
      background: #333;
      color: #666;
      cursor: not-allowed;
    }

    /* iOS Input Zoom Prevention */
    /* iOS Safari zooms in when input font-size < 16px */
    @media screen and (max-width: 768px) {
      input[type="text"],
      input[type="email"],
      input[type="password"],
      input[type="search"],
      input[type="url"],
      input[type="tel"],
      input[type="number"],
      textarea,
      select,
      .prompt-textarea,
      .reply-textarea,
      [contenteditable="true"] {
        font-size: 16px !important;
      }
    }

    /* PWA Standalone Mode - Native App Feel */
    @media all and (display-mode: standalone) {
      body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
      }

      /* Hide page headers on main navigation pages, but keep them on detail pages for back nav */
      .feed-view .page-header,
      .projects-view .page-header,
      .notifications-view .page-header,
      .profile-view .page-header,
      .search-view .page-header,
      .settings-view .page-header {
        display: none !important;
      }
      
      /* Keep detail page header visible for back navigation */
      .detail-view .page-header {
        display: flex !important;
        padding-top: env(safe-area-inset-top, 12px);
        background: #0d0d0d;
        position: sticky;
        top: 0;
        z-index: 100;
      }

      .share-action,
      .share-btn {
        display: none !important;
      }

      .main {
        padding-top: 0;
      }

      .detail-view {
        padding-top: 16px;
      }

      .layout {
        min-height: 100vh;
        min-height: -webkit-fill-available;
      }
    }

    /* Also support iOS standalone via navigator check (applied via JS class) */
    body.pwa-standalone .page-header {
      display: none !important;
    }

    body.pwa-standalone .share-action,
    body.pwa-standalone .share-btn {
      display: none !important;
    }

    /* ==================== */
    /* Pull to Refresh - styles injected by JS */

    /* ==================== */
    /* Settings Mobile Fix  */
    /* ==================== */
    @media (max-width: 480px) {
      /* Toggle styles handled inline in settings.ejs */
      
      /* Stack avatar action buttons on mobile */
      .avatar-actions {
        flex-direction: column;
        gap: 10px;
      }
      
      .settings-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
      }
      
      /* Fix settings content padding */
      .settings-content {
        padding: 16px;
      }
      
      .settings-header {
        padding: 16px;
      }
      
      /* Fix save button */
      .settings-save-btn {
        width: 100%;
        padding: 14px 20px;
      }
      
      /* Fix inputs on mobile */
      .settings-input, .settings-textarea {
        max-width: 100%;
      }
      
      /* Fix avatar upload area on mobile */
      .avatar-upload-area {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      
      .avatar-upload-controls {
        align-items: center;
      }
      
      /* Fix info groups on mobile */
      .settings-info-group {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
      }
      
      .settings-info-value {
        word-break: break-all;
      }
    }

    /* ==================== */
    /* Mobile Bottom Nav Fix */
    /* ==================== */
    @media (max-width: 540px) {
      .sidebar {
        /* Add safe area padding for iPhone - extra padding for corner radius */
        padding-bottom: calc(env(safe-area-inset-bottom, 8px) + 4px);
        padding-left: max(env(safe-area-inset-left, 0px), 20px);
        padding-right: max(env(safe-area-inset-right, 0px), 20px);
        padding-top: 6px;
      }
      
      .sidebar-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 0;
      }
      
      /* Make icons smaller to fit all 8 */
      .sidebar-item {
        padding: 8px;
        border-radius: 10px;
        flex-shrink: 0;
      }
      
      .sidebar-item svg {
        width: 22px;
        height: 22px;
      }
      
      /* Hide sidebar-bottom wrapper on mobile - show admin inline */
      .sidebar-bottom {
        display: contents;
      }
      
      .sidebar-item-admin {
        padding: 8px;
      }
      
      .sidebar-item-admin svg {
        width: 22px;
        height: 22px;
      }
      
      /* Notification badge position fix */
      .sidebar-icon-wrapper {
        position: relative;
        display: inline-flex;
      }
      
      .notification-badge,
      .invite-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        padding: 0 4px;
      }
      
      .sidebar-admin-dot {
        min-width: 14px !important;
        height: 14px !important;
        font-size: 8px !important;
        top: -4px !important;
        right: -4px !important;
      }
      
      /* Hide tooltips on mobile */
      .sidebar-tooltip {
        display: none !important;
      }
    }
    
    /* Extra small screens - even more compact */
    @media (max-width: 380px) {
      .sidebar {
        /* Still maintain corner clearance on small screens */
        padding-left: max(env(safe-area-inset-left, 0px), 16px);
        padding-right: max(env(safe-area-inset-right, 0px), 16px);
      }
      
      .sidebar-item {
        padding: 6px;
      }
      
      .sidebar-item svg {
        width: 18px;
        height: 18px;
      }
      
      .sidebar-item-admin svg {
        width: 18px;
        height: 18px;
      }
    }

    /* Admin badge styling */
    .sidebar-admin-dot {
      position: absolute;
      top: -5px;
      right: -6px;
      min-width: 15px;
      height: 15px;
      padding: 0 4px;
      background: #fbbf24;
      border-radius: 50%;
      font-size: 9px;
      font-weight: 700;
      color: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 0 2px #0d0d0d;
      line-height: 1;
      z-index: 10;
    }

    /* Instant tap feedback for nav */
    .sidebar-item {
      transition: transform 0.1s ease, opacity 0.1s ease, background 0.15s ease, color 0.15s ease;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }
    
    .sidebar-item:active {
      transform: scale(0.95);
      opacity: 0.7;
    }

    /* Sticky composer on mobile - stays at top during pull-to-refresh */
    @media (max-width: 540px) {
      .feed-view {
        overscroll-behavior-y: contain;
      }
      
      /* Composer scrolls with content - not sticky */
      .prompt-section {
        position: relative;
        background: #0d0d0d;
      }
      
      /* Prevent dark gap above content */
      .main {
        background: #0d0d0d;
      }
      
      html, body {
        overscroll-behavior-y: none;
      }
    }

    /* Hide admin icon on mobile bottom nav - access via Settings instead */
    @media (max-width: 540px) {
      .sidebar-admin-desktop {
        display: none !important;
      }
      
      /* Fixed nav - no collapsing, always visible */
      .sidebar {
        position: fixed !important;
        bottom: 0 !important;
        transform: none !important;
        transition: none !important;
      }
    }

    /* Admin link in settings header - mobile only */
    .settings-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .settings-admin-link {
      display: none;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.3);
      border-radius: 8px;
      color: #ef4444;
      font-size: 13px;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.15s;
    }
    
    .settings-admin-link:hover {
      background: rgba(239, 68, 68, 0.2);
    }
    
    .settings-admin-link svg {
      width: 16px;
      height: 16px;
    }
    
    /* Only show on mobile */
    @media (max-width: 540px) {
      .settings-admin-link {
        display: inline-flex;
      }
    }

    /* Safari iOS viewport stabilization */
    @supports (-webkit-touch-callout: none) {
      html {
        height: 100%;
      }
      body {
        height: 100%;
        -webkit-overflow-scrolling: touch;
      }
      .layout {
        min-height: 100%;
      }
    }
    
    /* On mobile, scrollbar is invisible overlay so no need for scroll forcing */
    @media (max-width: 768px) {
      html {
        overflow-y: auto;
      }
    }

    /* =============================================
       PUBLIC PROMPT ENTRY FORM
       ============================================= */
    
    .prompt-entry-section {
      border-top: 1px solid #1a1a1a;
      padding: 20px 0;
      margin: 0;
    }
    
    .prompt-entry-step {
      animation: fadeIn 0.2s ease;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    /* Step 1: Horizontal row layout */
    .prompt-entry-row {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    
    .prompt-entry-label {
      flex-shrink: 0;
    }
    
    .prompt-entry-label-main {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: #fff;
    }
    
    .prompt-entry-label-sub {
      display: block;
      font-size: 12px;
      color: #555;
      margin-top: 2px;
    }
    
    .prompt-entry-label-sub a {
      color: #666;
      text-decoration: none;
    }
    
    .prompt-entry-label-sub a:hover {
      text-decoration: underline;
    }
    
    .prompt-entry-fields {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
      justify-content: flex-end;
    }
    
    .prompt-entry-input {
      padding: 8px 12px;
      background: transparent;
      border: 1px solid #2a2a2a;
      border-radius: 6px;
      color: #fff;
      font-size: 13px;
      font-family: inherit;
      transition: border-color 0.15s;
      width: 140px;
    }
    
    .prompt-entry-input:focus {
      outline: none;
      border-color: #444;
    }
    
    .prompt-entry-input::placeholder {
      color: #555;
    }
    
    /* Step 2: Uses existing prompt-section styles from feed */
    .public-entry-composer {
      /* Same as prompt-section but for public context */
    }
    
    .public-entry-composer .prompt-avatar {
      position: relative;
    }
    
    .prompt-entry-note {
      font-size: 12px;
      color: #555;
      margin-top: 12px;
      margin-left: 60px; /* Align with content, not avatar */
    }
    
    /* Success state - inline minimal design */
    .prompt-entry-success {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      background: #151515;
      border: 1px solid #2a2a2a;
      border-radius: 8px;
    }
    
    .prompt-entry-success-check {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(16, 185, 129, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    
    .prompt-entry-success-check svg {
      width: 16px;
      height: 16px;
      color: #10b981;
    }
    
    .prompt-entry-success-content {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
    }
    
    .prompt-entry-success-title {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
    }
    
    .prompt-entry-success-text {
      font-size: 12px;
      color: #666;
    }
    
    .prompt-entry-success-btn {
      padding: 6px 12px;
      background: transparent;
      border: 1px solid #333;
      border-radius: 6px;
      color: #888;
      font-size: 12px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      flex-shrink: 0;
    }
    
    .prompt-entry-success-btn:hover {
      border-color: #444;
      color: #fff;
    }
    
    @media (max-width: 640px) {
      .prompt-entry-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
      }
      
      .prompt-entry-fields {
        flex-direction: column;
        align-items: stretch;
      }
      
      .prompt-entry-input {
        width: 100%;
      }
      
      .prompt-entry-note {
        margin-left: 0;
      }
    }
