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

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

    ::selection {
      background: #ff8800;
      color: #000;
    }
    body {
      background: #0a0a0a;
      color: #ffffff;
      font-family: 'Silkscreen', 'Courier New', monospace;
      font-size: 14px;
      line-height: 1.4;
      min-height: 100vh;
      padding: 0;
      overflow: hidden;
      cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M0 0L0 14L4 10L7 15L9 14L6 9L11 9Z' fill='%23ff8800' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 0 0, auto;
    }

    /* Workbench container - slides down to reveal terminal */
    #wb-container {
      position: relative;
      z-index: 5;
      min-height: 100vh;
      background: #0055aa;
      padding: 4px;
    }
    #wb-container.slid-down {
      /* position managed by GSAP */
    }

    /* Hidden terminal screen */
    #hterm-screen {
      position: fixed;
      inset: 0;
      z-index: 0;
      background: #0a0a0a;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    #hterm-screen.visible {
      opacity: 1;
      pointer-events: auto;
      z-index: 10;
    }
    #hterm-screen.behind {
      z-index: 0;
    }
    .hterm-bar {
      background: linear-gradient(to bottom, #222 0%, #111 100%);
      color: #33ff33;
      padding: 2px 8px;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 2px solid #33ff33;
      flex-shrink: 0;
    }
    .hterm-bar .gadgets {
      display: flex;
      gap: 2px;
    }
    .hterm-bar .gadget {
      width: 18px;
      height: 14px;
      border: 2px solid #33ff33;
      background: #1a1a1a;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      cursor: pointer;
    }
    .hterm-bar .gadget:hover { background: #0a3a0a; }
    .hterm-bar .gadget:active { background: #33ff33; color: #000; }
    #hterm-output {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      padding: 8px 12px;
      font-family: 'Silkscreen', 'Courier New', monospace;
      font-size: 13px;
      color: #33ff33;
      line-height: 1.5;
      scrollbar-color: #33ff33 #111;
      scrollbar-width: thin;
      background:
        repeating-linear-gradient(
          0deg,
          rgba(0, 255, 0, 0.03) 0px,
          rgba(0, 255, 0, 0.03) 1px,
          transparent 1px,
          transparent 3px
        );
    }
    #hterm-output .hterm-line {
      white-space: pre-wrap;
      word-break: break-word;
    }
    #hterm-output .hterm-cmd {
      color: #fff;
    }
    #hterm-output .hterm-prompt-echo {
      color: #ffaa00;
    }
    #hterm-output .hterm-error {
      color: #ff4444;
    }
    #hterm-output .hterm-info {
      color: #33ff33;
    }
    #hterm-output .hterm-accent {
      color: #00ccff;
    }
    #hterm-input-line {
      display: flex;
      align-items: center;
      padding: 4px 12px 8px;
      background: #0a0a0a;
      border-top: 1px solid #1a3a1a;
      flex-shrink: 0;
    }
    .hterm-prompt {
      color: #ffaa00;
      font-weight: 700;
      white-space: nowrap;
      font-size: 13px;
    }
    #hterm-input {
      min-width: 1ch;
      field-sizing: content;
      background: transparent;
      border: none;
      outline: none;
      color: #33ff33;
      font-family: 'Silkscreen', 'Courier New', monospace;
      font-size: 13px;
      caret-color: transparent;
    }

    /* Workbench title bar at top of screen */
    .wb-screen-bar {
      background: linear-gradient(to bottom, #ffffff 0%, #aaaaee 100%);
      color: #0033aa;
      padding: 2px 8px;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 2px solid #000;
      margin-bottom: 8px;
    }
    .wb-screen-bar .gadgets {
      display: flex;
      gap: 2px;
    }
    .wb-screen-bar .gadget {
      width: 18px;
      height: 14px;
      border: 2px solid #000;
      background: #aaaacc;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      cursor: pointer;
    }
    .wb-screen-bar .gadget:hover { background: #ccccee; }
    .wb-screen-bar .gadget:active { background: #6666aa; }

    /* VistiOS-style window */
    .window {
      background: #0055aa;
      border: 2px solid #ffffff;
      margin-bottom: 8px;
      box-shadow: 2px 2px 0 #000;
      position: relative;
      z-index: 10;
      resize: both;
      overflow: hidden;
      min-width: 220px;
      min-height: 80px;
      max-width: 100%;
    }

    .window-title {
      background: linear-gradient(to bottom, #6688cc 0%, #4466aa 100%);
      color: #ffffff;
      padding: 2px 6px;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      border-bottom: 2px solid #fff;
      user-select: none;
    }
    .window-title .close-gadget {
      width: 16px;
      height: 12px;
      border: 2px solid #fff;
      background: #0055aa;
      margin-right: 6px;
      flex-shrink: 0;
      cursor: pointer;
    }
    .window-title .close-gadget:hover { background: #3377cc; }
    .window-title .close-gadget:active { background: #001a44; }
    .window-title .title-text {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
    }

    .window-body {
      padding: 8px 10px;
    }

    /* Content styling */
    .prompt-text {
      color: #ffaa00;
      font-weight: 700;
    }
    .cmd-text {
      color: #ffffff;
    }
    .output-text {
      color: #aaccff;
    }
    .dim-text {
      color: #6699cc;
    }
    .highlight {
      color: #ffaa00;
    }
    .adv-room {
      color: #ffdd77;
    }
    .adv-dir {
      color: #7fd7ff;
      font-weight: 700;
    }
    .adv-item {
      color: #8bff9a;
      font-weight: 700;
    }
    .adv-look {
      color: #ffb36b;
      font-weight: 700;
    }
    .adv-look-output {
      color: #ff8f8f;
    }

    a {
      color: #ffaa00;
      text-decoration: none;
    }
    a:hover {
      color: #ffdd44;
      text-decoration: underline;
    }

    .cursor {
      display: inline-block;
      width: 8px;
      height: 14px;
      background: #ffaa00;
      animation: blink 1s step-end infinite;
      vertical-align: text-bottom;
    }
    @keyframes blink {
      0%, 100% { opacity: 1; }
      50%      { opacity: 0; }
    }
    .block-cursor {
      display: none;
      width: 8px;
      height: 13px;
      flex-shrink: 0;
      align-self: center;
      animation: blink 1s step-end infinite;
    }
    #hterm-input:focus + .block-cursor {
      display: block;
      background: #33ff33;
    }
    #basic-input:focus + .block-cursor {
      display: block;
      background: #ffaa00;
    }
    /* Boot sequence overlay */
    .boot-screen {
      position: fixed;
      inset: 0;
      background: #000;
      z-index: 9999;
      display: none;
      overflow: hidden;
    }
    .boot-screen.active {
      display: block;
    }
    #boot-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
    }
    #boot-post {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #aaccff;
      font-family: 'Silkscreen', 'Courier New', monospace;
      font-size: 14px;
      display: none;
      white-space: nowrap;
    }
    #boot-post .boot-line {
      margin-bottom: 6px;
    }
    #boot-prompt {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ff8800;
      font-family: 'Silkscreen', 'Courier New', monospace;
      font-size: 18px;
      cursor: pointer;
      animation: blink 1s step-end infinite;
      z-index: 1;
    }

    #main-window .window-body {
      padding-right: 10px;
      overflow: auto;
      scrollbar-color: #6688cc #4466aa;
      scrollbar-width: auto;
    }
    #main-window .window-body::-webkit-scrollbar {
      width: 16px;
    }
    #main-window .window-body::-webkit-scrollbar-track {
      background: #4466aa;
      border-left: 2px solid #fff;
    }
    #main-window .window-body::-webkit-scrollbar-thumb {
      background: #6688cc;
      border: 2px solid #fff;
      box-shadow: inset 0 0 0 2px #4466aa;
    }
    #main-window .window-body::-webkit-scrollbar-button:single-button {
      display: block;
      height: 16px;
      background: #6688cc;
      border: 2px solid #fff;
    }
    /* Icon row at bottom */
    .icon-row {
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
      padding: 12px 8px;
      position: relative;
      z-index: 1;
    }
    .wb-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      cursor: inherit;
      text-decoration: none;
      color: #fff;
      width: 90px;
    }
    .wb-icon:hover {
      color: #ffaa00;
    }
    .icon-box {
      width: 48px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .icon-box svg {
      width: 100%;
      height: 100%;
      filter: drop-shadow(2px 2px 0 #000);
      transition: filter 0.12s ease;
    }
    .wb-icon:hover .icon-box svg {
      filter: drop-shadow(2px 2px 0 #000) brightness(1.25);
    }
    .icon-box img {
      width: 100%;
      height: 100%;
      filter: invert(1) drop-shadow(2px 2px 0 #000);
      transition: filter 0.12s ease;
    }
    .wb-icon:hover .icon-box img {
      /* orange highlight on hover: invert→gray→sepia→saturate ≈ #FFAA00 */
      filter: invert(1) brightness(0.5) sepia(1) saturate(8) drop-shadow(2px 2px 0 #000);
    }
    .icon-label {
      font-size: 11px;
      text-align: center;
      white-space: pre-line;
    }

    /* ── CV: main attraction — bright yellow, distinct from the orange hover ── */
    #cv-icon {
      color: #ffff80;
    }
    #cv-icon:hover {
      color: #ffffcc;
    }
    #cv-icon .icon-box img {
      filter: invert(1) brightness(0.5) sepia(1) saturate(8) hue-rotate(20deg) brightness(1.5) drop-shadow(2px 2px 0 #000);
    }
    #cv-icon:hover .icon-box img {
      filter: invert(1) brightness(0.5) sepia(1) saturate(8) hue-rotate(20deg) brightness(1.8) drop-shadow(2px 2px 0 #000);
    }

    /* ── Notes: smaller footprint — scale managed by GSAP to avoid hover conflict ── */

    .line {
      opacity: 0;
      transition: opacity 0.04s;
    }
    .line.visible {
      opacity: 1;
    }
    #demo-body {
      padding: 6px;
      position: relative;
      overflow: hidden;
    }
    #demo-canvas {
      display: block;
      width: 100%;
      height: 100%;
      border: 2px solid #fff;
      background: #001a44;
      image-rendering: pixelated;
    }
    /* Disk pie window */
    #disk-window {
      min-width: 360px;
      min-height: 260px;
    }
    #disk-body {
      padding: 6px;
      background: #001a44;
    }
    #disk-canvas {
      display: block;
      width: 100%;
      height: 100%;
      border: 2px solid #fff;
      background: #001244;
      image-rendering: pixelated;
    }
    /* File manager */
    #filemgr-window {
      min-width: 520px;
      min-height: 280px;
    }
    #filemgr-body {
      display: flex;
      gap: 8px;
      padding: 6px;
      background: #002266;
      height: 100%;
    }
    .fm-pane {
      background: #001a44;
      border: 2px solid #fff;
      box-shadow: 2px 2px 0 #000;
      padding: 6px;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    .fm-left {
      width: 200px;
      flex: 0 0 200px;
    }
    .fm-right {
      flex: 1;
      min-width: 0;
    }
    .fm-path {
      font-size: 10px;
      color: #ffdd44;
      text-transform: uppercase;
      margin-bottom: 6px;
      letter-spacing: 0.5px;
    }
    .fm-list {
      display: flex;
      flex-direction: column;
      gap: 4px;
      overflow: auto;
    }
    .fm-item {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #aaccff;
      text-decoration: none;
      padding: 2px 4px;
      border: 1px solid transparent;
      cursor: inherit;
    }
    .fm-item.active {
      border-color: #ffdd44;
      color: #ffdd44;
    }
    .fm-folder {
      width: 14px;
      height: 10px;
      background: #ffaa00;
      border: 1px solid #ffdd44;
      box-shadow: 1px 1px 0 #000;
    }
    .fm-title {
      font-size: 11px;
      color: #ffdd44;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    #filemgr-canvas {
      display: block;
      width: 100%;
      height: 100%;
      border: 2px solid #fff;
      background: #001244;
      image-rendering: pixelated;
    }
    #scroller {
      position: absolute;
      left: 0;
      top: 0;
      right: auto;
      bottom: auto;
      pointer-events: none;
      overflow: hidden;
      clip-path: inset(2px);
      white-space: nowrap;
      font-size: 160px;
      letter-spacing: 3px;
      color: #ffdd44;
      text-transform: uppercase;
      text-shadow: 0 2px 0 #ff6600, 0 0 8px rgba(255, 136, 0, 0.8);
      font-weight: 700;
    }
    #scroller span {
      display: inline-block;
      min-width: 10px;
    }

    /* === Deluxe Paint window === */
    #dpaint-window {
      min-width: 420px;
      min-height: 340px;
    }
    #dpaint-body {
      padding: 0;
      display: flex;
      flex-direction: column;
      height: calc(100% - 22px);
      overflow: hidden;
    }
    #dpaint-layout {
      display: flex;
      flex: 1;
      min-height: 0;
    }
    #dpaint-canvas-wrap {
      flex: 1;
      position: relative;
      background: #555;
      padding: 2px;
      min-width: 0;
      overflow: hidden;
    }
    #dpaint-canvas {
      display: block;
      width: 100%;
      height: 100%;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      background: #a0a0a0;
      cursor: crosshair;
    }
    #dpaint-overlay {
      position: absolute;
      top: 2px;
      left: 2px;
      width: calc(100% - 4px);
      height: calc(100% - 4px);
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      pointer-events: none;
    }
    #dpaint-toolbar {
      width: 38px;
      background: #888;
      border-left: 2px solid #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 3px 2px;
      gap: 2px;
      overflow-y: auto;
      flex-shrink: 0;
    }
    .dp-tool {
      width: 30px;
      height: 26px;
      border: 2px outset #ccc;
      background: #a0a0a0;
      cursor: inherit;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      font-family: 'Silkscreen', monospace;
      font-size: 9px;
      color: #000;
      flex-shrink: 0;
    }
    .dp-tool:hover { background: #c0c0c0; }
    .dp-tool.active {
      border-style: inset;
      background: #6688cc;
      color: #fff;
    }
    .dp-tool svg { width: 18px; height: 18px; }
    .dp-divider {
      width: 26px;
      border: none;
      border-top: 1px solid #555;
      border-bottom: 1px solid #ccc;
      margin: 2px 0;
    }
    #dpaint-palette-bar {
      display: flex;
      align-items: center;
      background: #888;
      border-top: 2px solid #fff;
      padding: 3px 4px;
      gap: 4px;
      flex-shrink: 0;
      height: 34px;
    }
    #dp-color-indicator {
      width: 28px;
      height: 28px;
      position: relative;
      flex-shrink: 0;
      border: 1px solid #000;
    }
    #dp-bg-swatch {
      position: absolute;
      inset: 0;
      background: #a0a0a0;
    }
    #dp-fg-swatch {
      position: absolute;
      top: 4px;
      left: 4px;
      width: 14px;
      height: 14px;
      background: #000;
      border: 1px solid #fff;
    }
    #dp-palette {
      display: flex;
      flex-wrap: wrap;
      gap: 1px;
      flex: 1;
    }
    .dp-color {
      width: 14px;
      height: 12px;
      border: 1px solid #000;
      cursor: inherit;
      flex-shrink: 0;
    }
    .dp-color:hover { border-color: #fff; }
    .dp-color.fg-selected { border: 2px solid #fff; }
    .dp-color.bg-selected { border: 2px dashed #fff; }
    #dp-stamp-picker {
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      width: 100%;
    }
    #dp-stamp-picker.visible { display: flex; }
    .dp-stamp { font-size: 7px; }
    .dp-stamp.active { border-style: inset; background: #446; color: #fff; }

    /* Collapsible recommendation windows */
    .rec-window .rec-body {
      display: none;
    }
    .rec-window.open .rec-body {
      display: block;
    }
    .rec-hint {
      margin-left: 8px;
      font-size: 10px;
      color: #ffdd44;
      text-transform: uppercase;
      opacity: 0.85;
      white-space: nowrap;
      display: none;
    }
    .rec-window:not(.open) .rec-hint {
      display: inline;
    }
    .rec-toggle {
      cursor: inherit;
    }
    .rec-toggle:hover {
      background: linear-gradient(to bottom, #7799dd 0%, #5577bb 100%);
    }
    .rec-window .window-title {
      border-bottom: none;
    }
    .rec-window.open .window-title {
      border-bottom: 2px solid #fff;
    }
    /* Markdown output from marked.js inside note windows */
    .rec-body p { margin: 4px 0; }
    .rec-body h1, .rec-body h2, .rec-body h3 { color: #ffaa00; margin: 10px 0 4px; }
    .rec-body strong { color: #ffaa00; }
    .rec-body em { color: #aaccff; font-style: normal; }
    .rec-body blockquote { border-left: 3px solid #444; margin: 4px 0; padding-left: 8px; color: #aaa; }
    .rec-body ul, .rec-body ol { padding-left: 18px; margin: 4px 0; }
    .rec-body li { margin: 2px 0; }
    .rec-body code { background: #111; padding: 1px 4px; font-family: 'Silkscreen', monospace; }
    .rec-body pre { background: #111; padding: 8px; overflow-x: auto; margin: 4px 0; }
    .rec-body hr { border: none; border-top: 1px solid #444; margin: 8px 0; }

    /* Draggable windows */
    .window.is-dragging {
      opacity: 0.9;
    }
    .window.is-absolute {
      position: absolute;
    }

    /* Trashcan */
    #trash-icon {
      position: absolute;
      bottom: 12px;
      right: 12px;
      z-index: 2;
    }

    /* Guru Meditation */
    .guru-screen {
      position: fixed;
      inset: 0;
      background: #000;
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: inherit;
    }
    .guru-box {
      border: 4px solid #f00;
      padding: 12px 32px;
      text-align: center;
      animation: guru-flash 1s step-end infinite;
    }
    .guru-box div {
      font-family: 'Silkscreen', 'Courier New', monospace;
      font-size: 16px;
      color: #f00;
      line-height: 1.8;
    }
    @keyframes guru-flash {
      0%, 100% { border-color: #f00; }
      50% { border-color: #000; }
    }

    /* CRT overlay */
    #crt {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 99990;
      background:
        repeating-linear-gradient(
          to bottom,
          transparent 0px,
          transparent 1px,
          rgba(0,0,0,0.07) 1px,
          rgba(0,0,0,0.07) 2px
        ),
        radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.45) 100%);
    }

    /* Save button */
    .dp-save {
      background: #4a4;
      color: #fff;
      border: 2px outset #6c6;
    }
    .dp-save:hover { background: #5b5; }
    .dp-save.saving {
      background: #aa8;
      border-style: inset;
      pointer-events: none;
    }
    .dp-save.saved {
      background: #4a4;
      border-style: inset;
    }
    .dp-save.error {
      background: #a44;
      border-style: inset;
    }

    /* Pictures window */
    #pictures-body,
    #videos-body,
    #pico8-body {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 8px 10px;
      min-height: 60px;
      align-content: flex-start;
    }
    .pic-thumb {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      text-decoration: none;
      color: #aaccff;
      font-size: 9px;
    }
    .pic-thumb img {
      width: 80px;
      height: 64px;
      object-fit: contain;
      image-rendering: pixelated;
      border: 2px solid #fff;
      background: #001a44;
    }
    .pic-thumb:hover img {
      border-color: #ffaa00;
    }
    .pic-empty {
      color: #6699cc;
      font-size: 12px;
      padding: 16px;
    }
    .pic-thumb[draggable="true"] {
      cursor: grab;
    }
    .pic-thumb.dragging {
      opacity: 0.4;
    }
    .pico-thumb-fallback {
      width: 80px;
      height: 64px;
      border: 2px solid #fff;
      background:
        linear-gradient(180deg, #1e1e54 0%, #12123a 100%);
      color: #ff77a8;
      font-size: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-shadow: 1px 1px 0 #000;
    }
    .pico8-viewer {
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: #001a44;
      padding: 6px;
      min-width: 420px;
    }
    .pico8-frame-wrap {
      width: 100%;
      aspect-ratio: 621 / 513;
      border: 2px solid #fff;
      background: #000;
      overflow: hidden;
    }
    .pico8-frame {
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
    }
    .pico8-meta {
      border: 2px solid #fff;
      background: #002266;
      padding: 6px;
      color: #aaccff;
    }
    .pico8-meta-title {
      color: #ffdd44;
      font-size: 12px;
      margin-bottom: 4px;
    }
    .pico8-meta-desc {
      font-size: 11px;
      line-height: 1.4;
      white-space: pre-wrap;
    }

    /* Trashcan drop target */
    #trash-icon.drag-over .icon-box img {
      filter: invert(1) brightness(0.5) sepia(1) saturate(8) hue-rotate(-38deg) brightness(1.1) drop-shadow(2px 2px 0 #000);
    }
    #trash-icon.drag-over .icon-label {
      color: #ff6644;
    }

    /* Painting viewer window */
    .painting-viewer {
      padding: 4px;
      background: #555;
    }
    .painting-viewer img {
      display: block;
      width: 100%;
      height: auto;
      image-rendering: pixelated;
      border: 2px solid #fff;
    }
    .video-viewer {
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: #001a44;
      padding: 6px;
    }
    .video-player {
      width: 100%;
      border: 2px solid #fff;
      background: #000;
    }
    .video-meta {
      border: 2px solid #fff;
      background: #002266;
      padding: 6px;
      color: #aaccff;
    }
    .video-meta-title {
      color: #ffdd44;
      font-size: 12px;
      margin-bottom: 4px;
    }
    .video-meta-desc {
      font-size: 11px;
      line-height: 1.4;
      white-space: pre-wrap;
    }

    /* Timeline window */
    #timeline-window {
      min-width: 460px;
      min-height: 260px;
    }
    .timeline-body {
      padding: 8px 10px;
      background: #002266;
      color: #aaccff;
      font-size: 12px;
      overflow: auto;
    }
    .timeline-legend {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-bottom: 8px;
      color: #ffdd44;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .timeline-legend span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .timeline-swatch {
      width: 10px;
      height: 10px;
      border: 1px solid #fff;
      box-shadow: 1px 1px 0 #000;
    }
    .timeline-grid {
      display: grid;
      gap: 2px;
      background: #001244;
      padding: 6px;
      border: 2px solid #fff;
      box-shadow: 2px 2px 0 #000;
      overflow-x: auto;
    }
    .timeline-label {
      font-size: 10px;
      color: #ffdd44;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      white-space: nowrap;
    }
    .timeline-year {
      font-size: 9px;
      color: #6699cc;
      text-align: center;
      white-space: nowrap;
    }
    .timeline-cell {
      width: 14px;
      height: 14px;
      background: #003366;
      border: 1px solid #001a44;
    }
    .timeline-cell.active-exp {
      background: #ffaa00;
      border-color: #ffdd44;
    }
    .timeline-cell.active-edu {
      background: #66ccff;
      border-color: #aaccff;
    }
    .timeline-cell.multi::after {
      content: '';
      display: block;
      width: 4px;
      height: 4px;
      margin: 4px auto 0;
      background: #ffffff;
    }
    .timeline-detail {
      margin-top: 8px;
      padding: 6px 8px;
      background: #001a44;
      border: 2px solid #fff;
      color: #aaccff;
      min-height: 44px;
      font-size: 11px;
    }

    /* AmigaBASIC window */
    #basic-body {
      background: #0022aa;
      color: #fff;
      font-family: 'Silkscreen', monospace;
      font-size: 13px;
      padding: 0;
      overflow-y: auto;
      cursor: text;
      display: flex;
      flex-direction: column;
      scrollbar-color: #6688cc #4466aa;
    }
    #basic-output {
      white-space: pre-wrap;
      word-break: normal;
      overflow-wrap: normal;
      padding: 6px 8px 0;
      flex: 1;
    }
    #basic-input-line {
      display: flex;
      padding: 0 8px 6px;
    }
    #basic-prompt {
      white-space: pre;
    }
    #basic-input {
      min-width: 1ch;
      field-sizing: content;
      background: transparent;
      border: none;
      color: #fff;
      font-family: 'Silkscreen', monospace;
      font-size: 13px;
      outline: none;
      padding: 0;
      caret-color: transparent;
    }

    /* Mail window */
    #mail-body {
      padding: 8px 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .mail-field { display: flex; align-items: center; gap: 6px; }
    .mail-field label { width: 60px; flex-shrink: 0; font-size: 12px; color: #aaccff; }
    .mail-field input, .mail-field textarea {
      flex: 1;
      background: #0022aa;
      color: #fff;
      font-family: 'Silkscreen', monospace;
      font-size: 12px;
      border: 2px solid;
      border-color: #000 #aaccff #aaccff #000;
      padding: 3px 6px;
      outline: none;
      caret-color: #ffaa00;
    }
    .mail-field input:read-only { color: #6699cc; }
    .mail-field textarea {
      height: 120px;
      resize: vertical;
    }
    .mail-send {
      align-self: flex-end;
      background: #6688cc;
      color: #ffaa00;
      font-family: 'Silkscreen', monospace;
      font-size: 13px;
      font-weight: 700;
      border: 2px solid;
      border-color: #aaccff #000 #000 #aaccff;
      padding: 4px 16px;
      cursor: inherit;
      margin-top: 4px;
    }
    .mail-send:hover { background: #7799dd; }

    /* Responsive */
    @media (max-width: 600px) {
      body { padding: 2px; font-size: 12px; }
      .window-body { padding: 6px 8px; }
      .icon-row { gap: 16px; }
      #hterm-input, #basic-input, .mail-field input, .mail-field textarea { font-size: 16px; }
    }

    /* Touch device enhancements */
    @media (pointer: coarse) {
      .window-title { min-height: 36px; touch-action: none; }
      .window-title .close-gadget { width: 28px; height: 24px; }
      .wb-icon { min-width: 60px; min-height: 60px; }
      .dp-tool { min-width: 36px; min-height: 36px; }
      .dp-color { min-width: 22px; min-height: 22px; }
      #dpaint-canvas, #dpaint-overlay { touch-action: none; }
      #dp-touch-color-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 36px; min-height: 36px;
        font-size: 11px; font-weight: bold; letter-spacing: 0.5px;
      }
    }

    @media (pointer: fine) {
      #dp-touch-color-toggle { display: none !important; }
    }
  
