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

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
      overflow: hidden;
      width: 100vw;
      height: 100vh;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      position: relative;
    }

    /* Menu Bar */
    .menu-bar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 24px;
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 12px;
      font-size: 13px;
      z-index: 10000;
    }

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

    .menu-item {
      cursor: pointer;
      padding: 0 8px;
      color: #333;
      font-weight: 500;
      transition: opacity 0.2s;
    }

    .menu-item:hover {
      opacity: 0.7;
    }

    .menu-item.active {
      font-weight: 600;
    }

    .apple-logo {
      font-size: 16px;
    }

    .menu-icon {
      cursor: pointer;
      font-size: 14px;
    }

    .menu-time {
      font-weight: 500;
      font-size: 12px;
      color: #333;
    }

    /* Desktop */
    .desktop {
      position: fixed;
      top: 24px;
      left: 0;
      right: 0;
      bottom: 80px;
      padding: 20px;
      display: grid;
      grid-template-columns: repeat(auto-fill, 100px);
      grid-auto-rows: 100px;
      gap: 20px;
      align-content: start;
    }

    .desktop-icon {
      width: 80px;
      height: 90px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      padding: 8px;
      border-radius: 8px;
      transition: background 0.2s;
    }

    .desktop-icon:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    .desktop-icon.selected {
      background: rgba(255, 255, 255, 0.25);
    }

    .icon-image {
      font-size: 48px;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

    .icon-label {
      font-size: 12px;
      color: white;
      text-align: center;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
      font-weight: 500;
      word-break: break-word;
      max-width: 100%;
    }

    /* Dock */
    .dock {
      position: fixed;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255, 255, 255, 0.3);
      backdrop-filter: blur(30px);
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 16px;
      padding: 6px 12px;
      display: flex;
      gap: 8px;
      align-items: center;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
      z-index: 9999;
    }

    .dock-item {
      width: 56px;
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border-radius: 12px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

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

    .dock-item.active::before {
      content: '';
      position: absolute;
      bottom: -4px;
      width: 4px;
      height: 4px;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 50%;
    }

    .dock-icon {
      font-size: 36px;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    }

    .dock-separator {
      width: 1px;
      height: 48px;
      background: rgba(255, 255, 255, 0.3);
      margin: 0 4px;
    }

    /* Window */
    .window {
      position: fixed;
      background: white;
      border-radius: 10px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      overflow: hidden;
      min-width: 600px;
      min-height: 400px;
      z-index: 100;
    }

    .window.maximized {
      top: 24px !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 80px !important;
      width: 100% !important;
      height: calc(100% - 104px) !important;
      border-radius: 0;
    }

    .finder-window {
      width: 900px;
      height: 600px;
      top: 80px;
      left: 50%;
      transform: translateX(-50%);
    }

    .terminal-window {
      width: 700px;
      height: 500px;
      top: 100px;
      left: 50%;
      transform: translateX(-50%);
      background: #1e1e1e;
    }

    .textedit-window {
      width: 800px;
      height: 550px;
      top: 90px;
      left: 50%;
      transform: translateX(-50%);
    }

    .window-titlebar {
      height: 36px;
      background: #f6f6f6;
      border-bottom: 1px solid #d4d4d4;
      display: flex;
      align-items: center;
      padding: 0 12px;
      cursor: move;
      user-select: none;
    }

    .terminal-window .window-titlebar {
      background: #2d2d2d;
      border-bottom: 1px solid #1e1e1e;
    }

    .window-controls {
      display: flex;
      gap: 8px;
    }

    .window-control {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      cursor: pointer;
      transition: filter 0.2s;
    }

    .window-control:hover {
      filter: brightness(0.85);
    }

    .window-control.close {
      background: #ff5f57;
    }

    .window-control.minimize {
      background: #ffbd2e;
    }

    .window-control.maximize {
      background: #28ca42;
    }

    .window-title {
      flex: 1;
      text-align: center;
      font-size: 13px;
      font-weight: 500;
      color: #333;
      margin-right: 68px;
    }

    .terminal-window .window-title {
      color: #ccc;
    }

    .window-toolbar {
      height: 44px;
      background: #fafafa;
      border-bottom: 1px solid #e0e0e0;
      display: flex;
      align-items: center;
      padding: 0 12px;
      gap: 8px;
    }

    .toolbar-btn {
      padding: 6px 12px;
      background: white;
      border: 1px solid #d4d4d4;
      border-radius: 6px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
    }

    .toolbar-btn:hover {
      background: #f0f0f0;
      border-color: #b4b4b4;
    }

    .toolbar-btn:active {
      transform: scale(0.95);
    }

    .path-display {
      flex: 1;
      padding: 6px 12px;
      background: white;
      border: 1px solid #d4d4d4;
      border-radius: 6px;
      font-size: 12px;
      color: #666;
    }

    .window-content {
      height: calc(100% - 36px);
      overflow: hidden;
      display: flex;
    }

    /* Finder */
    .finder-sidebar {
      width: 200px;
      background: #f6f6f6;
      border-right: 1px solid #e0e0e0;
      overflow-y: auto;
      padding: 12px 0;
    }

    .sidebar-section {
      margin-bottom: 16px;
    }

    .sidebar-title {
      font-size: 11px;
      color: #888;
      font-weight: 600;
      text-transform: uppercase;
      padding: 4px 16px;
      margin-bottom: 4px;
      letter-spacing: 0.5px;
    }

    .sidebar-item {
      padding: 6px 16px;
      font-size: 13px;
      color: #333;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: background 0.2s;
    }

    .sidebar-item:hover {
      background: rgba(0, 0, 0, 0.05);
    }

    .sidebar-item.active {
      background: #007aff;
      color: white;
    }

    .sidebar-icon {
      font-size: 16px;
    }

    .finder-content {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
      background: white;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      grid-auto-rows: 110px;
      gap: 16px;
      align-content: start;
    }

    .file-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      padding: 12px 8px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .file-item:hover {
      background: #f0f0f0;
    }

    .file-item.selected {
      background: #007aff;
      color: white;
    }

    .file-icon {
      font-size: 48px;
    }

    .file-name {
      font-size: 12px;
      text-align: center;
      word-break: break-word;
      max-width: 100%;
    }

    /* Terminal */
    .terminal-content {
      background: #1e1e1e;
      color: #d4d4d4;
      font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
      font-size: 13px;
      padding: 16px;
      overflow-y: auto;
      flex-direction: column;
    }

    .terminal-output {
      flex: 1;
      overflow-y: auto;
      margin-bottom: 8px;
    }

    .terminal-line {
      margin-bottom: 4px;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .terminal-input-line {
      display: flex;
      align-items: center;
    }

    .terminal-prompt {
      color: #4ec9b0;
      margin-right: 8px;
      white-space: nowrap;
    }

    .terminal-input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      color: #d4d4d4;
      font-family: inherit;
      font-size: inherit;
    }

    /* TextEdit */
    .text-editor {
      width: 100%;
      height: 100%;
      border: none;
      outline: none;
      padding: 20px;
      font-family: inherit;
      font-size: 14px;
      line-height: 1.6;
      resize: none;
    }

    /* Context Menu */
    .context-menu {
      position: fixed;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
      padding: 6px;
      min-width: 180px;
      z-index: 10001;
    }

    .context-menu-item {
      padding: 8px 12px;
      font-size: 13px;
      cursor: pointer;
      border-radius: 4px;
      transition: background 0.2s;
    }

    .context-menu-item:hover {
      background: #007aff;
      color: white;
    }

    .context-menu-separator {
      height: 1px;
      background: #e0e0e0;
      margin: 4px 0;
    }

    /* Modal */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10002;
    }

    .modal {
      background: white;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      width: 400px;
      overflow: hidden;
    }

    .modal-header {
      padding: 20px;
      border-bottom: 1px solid #e0e0e0;
    }

    .modal-header h3 {
      font-size: 16px;
      font-weight: 600;
      color: #333;
    }

    .modal-body {
      padding: 20px;
    }

    .modal-input {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid #d4d4d4;
      border-radius: 6px;
      font-size: 14px;
      font-family: inherit;
      outline: none;
      transition: border-color 0.2s;
    }

    .modal-input:focus {
      border-color: #007aff;
    }

    .modal-footer {
      padding: 16px 20px;
      background: #f6f6f6;
      display: flex;
      justify-content: flex-end;
      gap: 12px;
    }

    .modal-btn {
      padding: 8px 20px;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
    }

    .modal-btn.cancel {
      background: #f0f0f0;
      color: #333;
    }

    .modal-btn.cancel:hover {
      background: #e0e0e0;
    }

    .modal-btn.confirm {
      background: #007aff;
      color: white;
    }

    .modal-btn.confirm:hover {
      background: #0051d5;
    }

    .modal-btn:active {
      transform: scale(0.95);
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.2);
      border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: rgba(0, 0, 0, 0.3);
    }

    .terminal-content::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
    }

    .terminal-content::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.3);
    }
