    /* --- RESET & BASE STYLES --- */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      user-select: none;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Lucida Grande", "Segoe UI", Roboto, sans-serif;
      background: radial-gradient(lightblue,darkblue);
      height: 100vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* --- OS X MENU BAR --- */
    #menubar {
      height: 22px;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 10px;
      font-size: 13px;
      color: #fff;
      z-index: 1000;
      box-shadow: 0 1px 3px rgba(255,255,255,0.1);
    }

    .menu-left, .menu-right {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .menu-item {
      position: relative;
      cursor: pointer;
      padding: 2px 6px;
      border-radius: 3px;
    }

    .menu-item:hover {
      background: #2b73e3;
      color: white;
    }

    .apple-logo {
      font-weight: bold;
      font-size: 15px;
    }

    /* Dropdown Menu Styles */
    .dropdown {
      display: none;
      position: absolute;
      top: 20px;
      left: 0;
      background: rgba(0, 0, 0, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 0 0 5px 5px;
      box-shadow: 0 5px 15px rgba(255,255,255,0.25);
      min-width: 140px;
      padding: 4px 0;
      z-index: 1001;
      color: #fff;
    }

    .dropdown div {
      padding: 4px 15px;
      font-size: 12px;
    }

    .dropdown div:hover {
      background: #2b73e3;
      color: #fff;
    }

    .dropdown hr {
      border: 0;
      border-top: 1px solid #ddd;
      margin: 4px 0;
    }

    .menu-item.active .dropdown {
      display: block;
    }

    /* --- DESKTOP AREA --- */
    #desktop {
      flex: 1;
      position: relative;
      padding: 20px;
    }

    /* --- OS X WINDOWS --- */
    .window {
      position: absolute;
      width: 450px;
      min-width: 280px;
      min-height: 180px;
      max-width: calc(100vw - 20px);
      max-height: calc(100vh - 42px);
      resize: both;
      background: black;
      border-radius: 8px 8px 5px 5px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
      display: flex;
      flex-direction: column;
      visibility: hidden;
      overflow: hidden;
      border: 1px solid rgba(0, 0, 0, 0.3);
      z-index: 1;
    }

    .window.active {
      visibility: visible;
      z-index: 10;
    }

    .title-bar {
      height: 28px;
      background: linear-gradient(to bottom, #6e6e6e, #2d2d2d);
      border-bottom: 1px solid #3b3b3b;
      display: flex;
      align-items: center;
      padding: 0 10px;
      position: relative;
      cursor: move;
    }

    /* Aqua Traffic Lights */
    .window-controls {
      display: flex;
      gap: 7px;
      z-index: 2;
    }

    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(200,200,200,0.5);
    }

    .close { background: #ff5f56; border: 1px solid #e0443e; }
    .minimize { background: #ffbd2e; border: 1px solid #dea123; }
    .zoom { background: #27c93f; border: 1px solid #1aab29; }

    .close:hover { background: #505050; border: 3px solid #e0443e; }
    .minimize:hover { background: #505050; border: 3px solid #dea123; }
    .zoom:hover { background: #505050; border: 3px solid #1aab29; }

    .window-title {
      position: absolute;
      width: 100%;
      text-align: center;
      font-size: 13px;
      font-weight: bold;
      color: lightblue;
      left: 0;
      pointer-events: none;
    }

    .window-body {
      padding: 18px;
      background: darkslategray;
      flex: 1;
      min-height: 0;
      min-width: 0;
      overflow-y: auto;
      font-size: 14px;
      color: white;
      user-select: text;
    }

    /* --- TERMINAL SPECIFIC STYLES --- */
    .terminal-body {
      background-color: #1a1a1a !important;
      color: #33ff33 !important;
      font-family: "Courier New", Courier, monospace;
      font-size: 13px;
      min-height: 250px;
      padding: 12px;
      display: flex;
      flex-direction: column;
    }

    #terminal-output p {
      margin-bottom: 6px;
      line-height: 1.4;
      white-space: pre-wrap;
    }

    .terminal-input-line {
      display: flex;
      align-items: center;
      margin-top: 5px;
    }

    .prompt-label {
      color: #33ff33;
      margin-right: 8px;
    }

    #term-input {
      background: transparent;
      border: none;
      outline: none;
      color: #33ff33;
      font-family: inherit;
      font-size: inherit;
      flex: 1;
    }

    /* --- BOTTOM OS X DOCK --- */
    #dock-container {
      position: absolute;
      bottom: 10px;
      width: 100%;
      display: flex;
      justify-content: center;
      pointer-events: none;
    }

    #dock {
      background: radial-gradient( #505050,#2d2d2d);
      backdrop-filter: blur(15px);
      border: 2px solid rgba(55, 55, 55, 0.75);
      border-radius: 16px;
      padding: 6px 12px;
      display: flex;
      gap: 15px;
      pointer-events: auto;
      box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .dock-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      transition: transform 0.15s ease;
    }

    .dock-item:hover {
      transform: scale(1.2) translateY(-8px);
    }

    .dock-icon {
      font-size: 32px;
    }

    .dock-label {
      font-size: 10px;
      color: white;
      text-shadow: 1px 1px 2px black;
      margin-top: 2px;
    }

    /* --- GALLERY APP --- */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
      gap: 20px;
      padding: 10px;
      justify-content: center;
    }
    .folder-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      transition: transform 0.15s ease;
    }
    .folder-item:hover {
      transform: scale(1.1);
    }
    .folder-icon {
      font-size: 60px;
      text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    }
    .folder-label {
      font-size: 12px;
      color: white;
      text-align: center;
      margin-top: 5px;
      background: rgba(0,0,0,0.5);
      padding: 2px 5px;
      border-radius: 4px;
    }
    
    .gallery-back-btn {
      background: linear-gradient(#f9f9f9, #e3e3e3);
      border: 1px solid #999;
      border-radius: 4px;
      padding: 4px 10px;
      cursor: pointer;
      font-size: 12px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.1);
      color: #333;
    }
    .gallery-back-btn:active {
      background: #ddd;
    }

    .gallery-feed-container {
      display: flex;
      flex-direction: column;
      gap: 20px;
      padding-bottom: 20px;
    }
    .feed-item {
      background: #2a2a2a;
      border: 1px solid #444;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .feed-item img {
      width: 100%;
      display: block;
    }
    .feed-details {
      padding: 15px;
    }
    .feed-title {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 5px;
      color: #fff;
    }
    .feed-desc {
      font-size: 13px;
      color: #ccc;
      line-height: 1.4;
    }

    [hidden] {
      display: none !important;
    }

    .markdown-content {
      line-height: 1.5;
      user-select: text;
    }

    .markdown-content > :first-child {
      margin-top: 0;
    }

    .markdown-content h1,
    .markdown-content h2,
    .markdown-content h3,
    .markdown-content h4 {
      color: lightblue;
      margin: 0 0 10px;
    }

    .markdown-content h2,
    .markdown-content h3,
    .markdown-content h4 {
      margin-top: 16px;
    }

    .markdown-content p,
    .markdown-content ul,
    .markdown-content ol,
    .markdown-content blockquote {
      margin-bottom: 12px;
    }

    .markdown-content ul,
    .markdown-content ol {
      padding-left: 24px;
    }

    .markdown-content a {
      color: #9bd9ff;
    }

    .markdown-content hr {
      border: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.35);
      margin: 15px 0;
    }

    .markdown-content code {
      font-family: "Courier New", Courier, monospace;
    }

    .markdown-load-error {
      color: #ff9b9b;
    }

    .gallery-feed-view {
      display: block;
    }

    .gallery-feed-header {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
    }

    .gallery-feed-header h3 {
      margin: 0 0 0 15px;
      color: lightblue;
    }

    .feed-item .feed-image {
      margin: 0;
    }

    .feed-item .feed-desc {
      padding: 0 15px 15px;
    }

    .feed-item .feed-image img {
      width: 100%;
      display: block;
    }

    .terminal-markdown {
      display: contents;
    }

    #term-input:disabled {
      opacity: 0.65;
    }
  