
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

    /* Light Mode Variables (Default Root) */
    :root {
      --background: #f8fafc;
      --foreground: #09090b;
      --card: #ffffff;
      --card-foreground: #09090b;
      --popover: #ffffff;
      --popover-foreground: #09090b;
      --primary: #6366f1;
      --primary-foreground: #ffffff;
      --secondary: #f1f5f9;
      --secondary-foreground: #09090b;
      --muted: #f1f5f9;
      --muted-foreground: #64748b;
      --accent: #f1f5f9;
      --accent-foreground: #09090b;
      --destructive: #ef4444;
      --border: #e2e8f0;
      --input: #cbd5e1;
      --ring: #6366f1;
      --radius: 0.75rem;
      --radius-sm: 0.375rem;
      --radius-md: 0.5rem;
      --radius-lg: 0.75rem;
      --radius-full: 9999px;

      /* Sidebar Tokens (Light Mode) */
      --sidebar-width: 16rem;
      --sidebar-collapsed-width: 4.5rem;
      --sidebar: #ffffff;
      --sidebar-foreground: #09090b;
      --sidebar-primary: #6366f1;
      --sidebar-primary-foreground: #ffffff;
      --sidebar-accent: #f1f5f9;
      --sidebar-accent-foreground: #09090b;
      --sidebar-border: #e2e8f0;
      --sidebar-ring: #6366f1;

      --header-height: 4rem;

      --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
      --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
      --shadow-md: 0 6px 14px rgba(0, 0, 0, 0.08);
      --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
      --shadow-xl: 0 20px 32px rgba(0, 0, 0, 0.12);
    }

    /* Dark Mode Tokens */
    html.dark, html[data-theme="dark"] {
      --background: #09090b;
      --foreground: #fafafa;
      --card: #141417;
      --card-foreground: #fafafa;
      --popover: #141417;
      --popover-foreground: #fafafa;
      --primary: #6366f1;
      --primary-foreground: #ffffff;
      --secondary: #1c1c22;
      --secondary-foreground: #fafafa;
      --muted: #18181b;
      --muted-foreground: #94a3b8;
      --accent: #1e1e24;
      --accent-foreground: #fafafa;
      --destructive: #ff6568;
      --border: rgba(255, 255, 255, 0.1);
      --input: rgba(255, 255, 255, 0.15);
      --ring: #818cf8;

      /* Sidebar Tokens (Dark Mode) */
      --sidebar: #111114;
      --sidebar-foreground: #fafafa;
      --sidebar-primary: #6366f1;
      --sidebar-primary-foreground: #ffffff;
      --sidebar-accent: #1c1c22;
      --sidebar-accent-foreground: #fafafa;
      --sidebar-border: rgba(255, 255, 255, 0.08);
      --sidebar-ring: #818cf8;

      --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
      --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
      --shadow-md: 0 6px 14px rgba(0, 0, 0, 0.6);
      --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.7);
      --shadow-xl: 0 20px 32px rgba(0, 0, 0, 0.8);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: 'Inter', sans-serif; background: var(--background); color: var(--foreground); line-height: 1.6; }
    a { color: inherit; text-decoration: none; }

    /* Layout Structure */
    .app-container { display: flex; min-height: 100vh; width: 100%; }
    .sidebar { width: var(--sidebar-width); background: var(--sidebar); border-right: 1px solid var(--sidebar-border); display: flex; flex-direction: column; flex-shrink: 0; transition: width 0.2s ease; }
    
    /* Collapsed Sidebar Clean Styling */
    .sidebar.collapsed { width: 72px; }
    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .nav-item span,
    .sidebar.collapsed .sidebar-content > div:last-child {
      display: none !important;
    }
    .sidebar.collapsed .sidebar-header {
      justify-content: center;
      padding: 0;
    }
    .sidebar.collapsed .nav-item {
      justify-content: center;
      padding: 0.65rem 0;
    }

    .sidebar-header { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; border-bottom: 1px solid var(--sidebar-border); }
    .logo-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--foreground); }
    
    .sidebar-content { flex: 1; padding: 1.25rem 0.75rem; overflow-y: auto; display: flex; flex-direction: column; }
    .nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
    .nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.85rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem; color: var(--muted-foreground); transition: background 0.15s, color 0.15s; }
    .nav-item:hover { background: var(--secondary); color: var(--foreground); }
    .nav-item.active { background: rgba(99, 102, 241, 0.12); color: #6366f1; }

    .main-wrapper { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 100vh; background: var(--background); }
    
    /* Top Header Bar - Scrolls up with page naturally */
    .top-header {
      position: relative;
      z-index: 40;
      background: var(--card);
      border-bottom: 1px solid var(--border);
      width: 100%;
      transition: background-color 0.2s ease, border-color 0.2s ease;
    }
    
    /* Desktop Header */
    .desktop-only-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: var(--header-height);
      padding: 0 1.5rem;
      width: 100%;
    }
    .header-left {
      display: flex;
      align-items: center;
    }
    .header-right {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .search-trigger {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      background: var(--secondary);
      border: 1px solid var(--border);
      padding: 0.5rem 1rem;
      border-radius: 9999px;
      color: var(--muted-foreground);
      cursor: pointer;
      font-size: 0.8125rem;
      width: 320px;
      transition: border-color 0.15s ease, background 0.15s ease;
    }
    .search-trigger:hover {
      border-color: var(--primary);
      color: var(--foreground);
    }
    .search-shortcut {
      margin-left: auto;
      background: var(--card);
      border: 1px solid var(--border);
      padding: 0.15rem 0.4rem;
      border-radius: 4px;
      font-size: 0.6875rem;
    }

    /* Sort Box & Select */
    .faymas-sort-box {
      position: relative;
      display: inline-flex;
      align-items: center;
    }
    .feed-sort-select {
      background: var(--secondary);
      border: 1px solid var(--border);
      color: var(--foreground);
      padding: 0.45rem 0.85rem;
      border-radius: 8px;
      font-size: 0.8125rem;
      font-weight: 600;
      cursor: pointer;
      outline: none;
      transition: border-color 0.15s ease;
    }
    .feed-sort-select:hover {
      border-color: var(--primary);
    }
    .feed-sort-select option {
      background: var(--card);
      color: var(--foreground);
    }

    /* Action Buttons (36x36px) */
    .mobile-act-btn {
      width: 36px;
      height: 36px;
      border-radius: 9px;
      background: var(--secondary);
      border: 1px solid var(--border);
      color: var(--foreground);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
      flex-shrink: 0;
    }
    .mobile-act-btn:hover {
      background: var(--card);
      border-color: var(--primary);
      transform: scale(1.04);
    }

    /* Mobile Header Layout */
    .mobile-header-bar {
      display: none;
      flex-direction: column;
      width: 100%;
    }
    .mobile-header-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1rem;
      height: 3.5rem;
      border-bottom: 1px solid var(--border);
      width: 100%;
    }
    .mobile-brand-title {
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--foreground);
      text-decoration: none;
    }
    .mobile-header-actions {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* Mobile Horizontal Quick Nav Pills */
    .mobile-nav-pills {
      display: flex;
      gap: 0.45rem;
      overflow-x: auto;
      padding: 0.55rem 1rem;
      background: var(--card);
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      white-space: nowrap;
    }
    .mobile-nav-pills::-webkit-scrollbar {
      display: none;
    }
    .header-nav-pill {
      padding: 0.35rem 0.85rem;
      border-radius: 9999px;
      font-size: 0.8125rem;
      font-weight: 600;
      background: var(--secondary);
      border: 1px solid var(--border);
      color: var(--muted-foreground);
      white-space: nowrap;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }
    .header-nav-pill:hover {
      color: var(--foreground);
      border-color: var(--primary);
    }
    .header-nav-pill.active {
      background: #6366f1;
      color: #fff;
      border-color: #6366f1;
      box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    }

    /* Responsive Headings Typography */
    h1, .page-main-title {
      font-size: 1.65rem;
      font-weight: 800;
      letter-spacing: -0.025em;
      line-height: 1.25;
      color: var(--foreground);
    }
    .detail-showcase h1 {
      font-size: 1.35rem;
      line-height: 1.35;
    }

    @media (max-width: 868px) {
      .sidebar { display: none !important; }
      .desktop-only-header { display: none !important; }
      .mobile-header-bar { display: flex !important; }
      .top-header { height: auto !important; padding: 0 !important; display: block !important; position: relative !important; }
    }

    /* Content Area */
    .content-area { padding: 2rem 1.5rem; max-width: 1720px; margin: 0 auto; width: 100%; flex: 1; }

    /* DigiWebKit 5-Column Masonry Grid */
    .masonry-grid { column-count: 5; column-gap: 14px; width: 100%; }
    @media (max-width: 1400px) {
      .masonry-grid { column-count: 4; column-gap: 12px; }
    }
    @media (max-width: 1080px) {
      .masonry-grid { column-count: 3; column-gap: 10px; }
    }
    @media (max-width: 640px) {
      .masonry-grid { column-count: 2 !important; column-gap: 8px !important; }
      .content-area { padding: 1.25rem 0.75rem; }
      h1, .page-main-title {
        font-size: 1.25rem !important;
        letter-spacing: -0.02em !important;
        line-height: 1.3 !important;
      }
      .detail-showcase h1 {
        font-size: 1.125rem !important;
        line-height: 1.35 !important;
      }
    }

    .card { position: relative; break-inside: avoid; margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: var(--card); transform: translateZ(0); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease; }
    .card:hover { transform: translateY(-5px); border-color: #6366f1; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16); }
    .card-img { width: 100%; height: auto; display: block; object-fit: cover; }
    .card-link { position: absolute; inset: 0; z-index: 1; }
    .card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.78) 100%); opacity: 0; transition: opacity 0.22s ease; pointer-events: none; }
    .card .badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 8px; background: rgba(20, 20, 25, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; transition: opacity 0.22s ease; pointer-events: none; }
    .card-stats { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 12px; color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity 0.22s ease; pointer-events: none; }
    .card-stats span { display: inline-flex; align-items: center; gap: 4px; }
    .card-save { position: absolute; right: 10px; bottom: 8px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(20, 20, 25, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; opacity: 0; cursor: pointer; transition: opacity 0.2s, background 0.15s, transform 0.15s; }
    .card-save:hover { background: #6366f1; border-color: #6366f1; color: #fff; transform: scale(1.08); }
    .card:hover .card-shade, .card:hover .badge, .card:hover .card-stats, .card:hover .card-save, .card:focus-within .card-shade, .card:focus-within .badge, .card:focus-within .card-stats, .card:focus-within .card-save { opacity: 1; }

    @media (max-width: 640px) {
      .card { margin-bottom: 10px; border-radius: 12px; }
      .card-shade { opacity: 0.85; background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.72) 100%); }
      .card .badge { opacity: 1; top: 8px; left: 8px; padding: 3px 8px; font-size: 10px; }
      .card-stats { opacity: 1; left: 8px; bottom: 8px; gap: 8px; font-size: 11px; }
      .card-save { opacity: 1; right: 8px; bottom: 6px; width: 28px; height: 28px; }
    }

    /* Single Post Detail Showcase */
    .detail-showcase { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.25rem; align-items: start; margin-bottom: 3.5rem; }
    @media (max-width: 900px) { .detail-showcase { grid-template-columns: 1fr; gap: 1.5rem; } }
    .showcase-visual { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); }
    .showcase-specs { display: flex; flex-direction: column; gap: 1.25rem; }
    .prompt-copy-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; box-shadow: var(--shadow-xs); }
    .prompt-box-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
    .prompt-box-title { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
    .btn-copy-main { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 1rem; background: #6366f1; color: #fff; font-size: 0.8125rem; font-weight: 700; border-radius: 8px; cursor: pointer; border: none; transition: background 0.15s, transform 0.15s; }
    .btn-copy-main:hover { background: #4f46e5; transform: translateY(-1px); }
    .prompt-text-display { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875rem; line-height: 1.6; color: var(--foreground); background: var(--secondary); padding: 1rem; border-radius: 10px; border: 1px solid var(--border); word-break: break-word; white-space: pre-wrap; max-height: 300px; overflow-y: auto; }
    .specs-table-container { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); }
    .specs-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
    .specs-table th { padding: 0.65rem 1rem; width: 35%; color: var(--muted-foreground); font-weight: 600; border-bottom: 1px solid var(--border); background: var(--secondary); text-align: left; }
    .specs-table td { padding: 0.65rem 1rem; color: var(--foreground); font-weight: 500; border-bottom: 1px solid var(--border); }

    /* Breadcrumb hover */
    .breadcrumb-nav a:hover { color: var(--foreground); text-decoration: underline; }

    /* Sun & Moon Theme Toggle Icon Visibility */
    html.dark .ico-sun,
    html[data-theme="dark"] .ico-sun {
      display: inline-block !important;
    }
    html.dark .ico-moon,
    html[data-theme="dark"] .ico-moon {
      display: none !important;
    }

    html:not(.dark) .ico-sun,
    html[data-theme="light"] .ico-sun {
      display: none !important;
    }
    html:not(.dark) .ico-moon,
    html[data-theme="light"] .ico-moon {
      display: inline-block !important;
    }

    /* Modal & Toast */
    .search-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); z-index: 1000; align-items: flex-start; justify-content: center; padding-top: 10vh; }
    .search-modal { width: 100%; max-width: 600px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); margin: 0 1rem; }
    .search-modal-header { display: flex; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); gap: 0.75rem; }
    .search-modal-input { flex: 1; background: transparent; border: none; font-size: 1rem; color: var(--foreground); outline: none; }
    .search-modal-close { background: transparent; border: none; font-size: 1.5rem; color: var(--muted-foreground); cursor: pointer; }
    .search-modal-results { max-height: 420px; overflow-y: auto; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
    .search-result-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.65rem 0.85rem; border-radius: 10px; transition: background 0.15s; }
    .search-result-item:hover { background: var(--secondary); }

    /* Mobile Drawer */
    .mobile-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 999; }
    .mobile-drawer-overlay.open { display: block; }
    .mobile-drawer { width: 280px; height: 100%; background: var(--card); border-right: 1px solid var(--border); padding: 1.5rem 1rem; display: flex; flex-direction: column; overflow-y: auto; }

    .toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
    .toast { background: #10b981; color: #fff; padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem; box-shadow: 0 8px 20px rgba(0,0,0,0.3); pointer-events: auto; animation: toastIn 0.2s ease-out; }
    @keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  