/* Windows 98 inspired stylesheet (pixel-perfect, with local fonts) */

/* Custom pixel fonts (user provided in ./fonts/) */
@font-face{
  font-family: '04B_30__';
  src: url('../fonts/04B_30__.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Pixellari';
  src: url('../fonts/Pixellari.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Daydream';
  src: url('../fonts/Daydream.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@media (min-width: 800px){
  body{font-family: 'Pixellari','MS Sans Serif', Tahoma, Geneva, sans-serif;}
}
body{
  background: #008080 url('') repeat; /* teal desktop feel */
  margin: 0;
  padding: 40px 0;
  color: #000;
  font-size: 14px;
}

/* Make sizing predictable and avoid overflow due to borders/padding */
*, *::before, *::after { box-sizing: border-box; }

.desktop{
  width: 960px;
  margin: 0 auto;
  position: relative; /* contain absolute floating windows */
}

/* Desktop shortcut in the top-right corner */
.desktop-shortcut{ position: fixed; right: 12px; top: 12px; width:72px; text-align:center; cursor:pointer; user-select:none; z-index:50; }
.desktop-shortcut-icon{ width:48px; height:48px; display:block; margin:0 auto; }
.desktop-shortcut-label{ font-family: 'Pixellari', monospace; font-size:12px; margin-top:4px; }

/* make the desktop shortcut label white for contrast on the background */
.desktop-shortcut-label{ color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,0.8); }

/* Folder window content styles */
.folder-pane{ padding:12px; }
.folder-item{ display:inline-block; width:96px; margin:12px; text-align:center; vertical-align:top; }
.folder-item img{ width:48px; height:48px; display:block; margin:0 auto; }
.folder-item .label{ font-family:'Pixellari'; font-size:12px; margin-top:6px; }
.window{
  background: #c0c0c0;
  border: 2px solid #000;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
}

/* container for floating windows */
#windows-root{
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  pointer-events: none; /* allow windows to manage their own pointer-events */
}
#windows-root .window{ pointer-events: auto; }

/* Floating windows (created by clicking the sidebar) */
.window.floating{
  width: 520px;
  min-height: 160px;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.25);
  cursor: default;
}
.window.floating{ position: absolute; }
.window.floating{ transition: opacity 160ms ease, transform 140ms ease; }
.window.floating .titlebar{ cursor: move; }
.window.floating .title-controls .title-btn{ padding: 0 6px; font-size: 12px }
.window-body.small{ padding: 8px; }
.window.floating .content{ background: #fff; border-top: 2px solid #808080; }

/* Force Workbench floating content to be transparent (remove white overlay) */
.window[data-key="workbench"] .content,
.window[data-key="workbench"] .window-body,
.window[data-key="workbench"] .browser-body{
  background: transparent !important;
  border: 0 !important;
}
.window[data-key="workbench"] .content{ border-top: 0 !important; }
.window.floating[aria-maximized="true"]{ left: 10px !important; top: 10px !important; width: calc(100% - 40px) !important; height: calc(100% - 60px) !important; }
.window.floating[aria-maximized="true"] .window-body{ height: calc(100% - 30px); }
.window.floating{ overflow: hidden; }
/* multi resizers: edges and corners */
.resizer{ position: absolute; z-index: 9999; }
.resizer-n, .resizer-s{ height:6px; left:6px; right:6px; cursor: ns-resize; }
.resizer-n{ top:2px; }
.resizer-s{ bottom:2px; }
.resizer-e, .resizer-w{ width:6px; top:6px; bottom:6px; cursor: ew-resize; }
.resizer-e{ right:2px; }
.resizer-w{ left:2px; }
.resizer-nw, .resizer-ne, .resizer-sw{ width:12px; height:12px; /* invisible hit area for corners */ background: transparent; border: none; }
.resizer-nw{ left:2px; top:2px; cursor: nw-resize; }
.resizer-ne{ right:2px; top:2px; cursor: ne-resize; }
.resizer-se{ right:2px; bottom:2px; cursor: se-resize; }
.resizer-sw{ left:2px; bottom:2px; cursor: sw-resize; }
/* classic diagonal grip for bottom-right (visible only in se) */
.resizer-se{ background: transparent; }
.resizer-se::after{ content: ''; pointer-events:none; display:block; width:10px; height:10px; background-image: linear-gradient(135deg, rgba(0,0,0,0.25) 25%, transparent 25%), linear-gradient(45deg, rgba(0,0,0,0.25) 25%, transparent 25%); background-size:4px 4px; background-position: 0 0, 2px 2px; margin-left:1px; margin-top:1px; }
.titlebar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(#000080,#000060);
  color: #fff;
  padding: 4px 6px;
  font-weight: normal;
  font-family: 'Pixellari', '04B_30__', 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 15px;
}

/* Slightly smaller main/home titlebar and gear button to reduce overall height */
#main-window .titlebar{ padding: 2px 6px; font-size:14px; }
/* Slightly larger button box so the gear icon doesn't touch the border */
#main-window .title-controls .btn{ width:24px; height:20px; padding:0; display:flex; align-items:center; justify-content:center; box-sizing:border-box; }
#main-window .title-controls .btn img{ width:12px; height:12px; display:block; margin:0; }

/* Ensure the Home title text and its pseudo-icon are perfectly centered vertically */
#main-window .title{ display:flex; align-items:center; line-height:1; }
/* Nudge the Home icon slightly upward so it visually lines up with the title text */
/* #main-window .title::before{ content: ''; position: absolute; left: 4px; top: 48%; transform: translateY(-50%); width:20px; height:16px; background-image: url('/icons/home.png'); background-size: contain; background-repeat: no-repeat; } */

.title .title-icon{ width:20px; height:16px; margin-right:6px; vertical-align:middle; display:inline-block; }

/* Slim titlebar style (used by Tools and Settings) */
.titlebar-slim{
  /* match the main titlebar but slightly slimmer to match Tools */
  display:flex;
  align-items:center;
  justify-content:space-between;
  background: linear-gradient(#000080,#000060);
  color:#fff;
  padding: 4px 6px; /* same vertical padding as .titlebar */
  font-size: 14px; /* match .titlebar font-size for consistency */
  font-family: inherit;
}
.titlebar-slim .title-icon{ width:20px; height:16px; margin-right:6px; display:flex; align-items:center; }
.titlebar-slim .title-icon img{ width:18px; height:18px; display:block; }
.titlebar-slim .title{ flex:1; text-align:left; padding-left:0; margin-right:8px; display:flex; align-items:center; }
.titlebar-slim .title-controls{ margin-left:8px; }

/* Titlebar icons (left of the title text) */
#main-window .title,
.window[data-key="tools"] .title,
.window[data-key="downloads"] .title,
.window[data-key="contact"] .title{
  position: relative; /* contain the absolute icon */
  padding-left: 23px; /* icon width (20) + default gap (8) - 3px nudge = 25 */
}

/* Override for main window since it uses inline img instead of pseudo-element */
#main-window .title{ padding-left: 0 !important; }

/* Override for floating windows with inline title icons */
.window[data-key="tools"] .title,
.window[data-key="downloads"] .title,
.window[data-key="contact"] .title,
.window[data-key="tw-scripts"] .title{
  padding-left: 0 !important;
}

/* otherstuff uses a real <img> icon inserted into the title; keep no left padding
   so the icon sits flush and the icon's margin-right handles spacing to the text */
.window[data-key="otherstuff"] .title{
  position: relative;
  padding-left: 0;
}

/* #main-window .title::before,
.window[data-key="tools"] .title::before,
.window[data-key="downloads"] .title::before, */
/* Workbench: no marquee (removed per user request) */
.window[data-key="workbench"] .marquee{ display:none !important; }

/* Toolbar: single horizontal centered row inside a wide light-gray band */
.workbench-toolbar{ display:flex; align-items:flex-start; gap:8px; padding:2px 12px 2px 12px; background:transparent; border:0; margin-bottom:2px; }
.workbench-toolbar .tb-slot{ width:88px; height:100px; display:flex; align-items:flex-start; justify-content:flex-start; padding-top:4px; }
/* nudge the entire toolbar up ~20px to reduce titlebar -> icon gap */
.window[data-key="workbench"] .workbench-toolbar{ transform: translateY(-12px); }
.tb-slot{ display:flex; align-items:center; justify-content:center; }
.tb-btn{ background:transparent; border:0; width:72px; height:92px; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; }
.tb-btn .tb-icon{ width:56px; height:56px; border-radius:0; background:transparent; border:0; box-shadow:none; display:flex; align-items:center; justify-content:center; }
.tb-btn .tb-icon img{ width:70%; height:70%; object-fit:contain; }
.tb-label{ font-family: 'Pixellari', monospace; font-size:11px; color:#111; display:block; text-align:center; margin-top:2px; }

/* Address row: inset address box spanning full width beneath toolbar */
.workbench-address{ display:flex; align-items:center; gap:4px; padding:6px 4px 6px 8px; }
/* pull address bar up ~30px to reduce icons -> address gap */
.window[data-key="workbench"] .workbench-address{ margin-top: -12px; }
.workbench-address .addr-label{ font-size:12px; font-weight:bold; color:#000; margin-right:6px; text-align:right; width:60px; }
.addr-box{ display:flex; align-items:center; gap:8px; border:2px inset #808080; background:#fff; padding:6px 8px; flex:1; }
.addr-icon{ width:18px; height:18px; display:none !important; }
.browser-address-input{ font-family: 'Pixellari', monospace; font-size:13px; color:#000; border:0; background:transparent; width:100%; }

/* Content: make the workbench-body a bordered white content panel */
.workbench-body{ background:transparent; border:0; padding:12px 10px; margin:6px 4px; min-height:360px; box-sizing:border-box; }
.workbench-body h2{ font-family: '04B_30__', monospace; font-size:34px; margin:6px 0 12px 0; color:#000; }
.workbench-body p{ font-family: 'Pixellari', monospace; font-size:12px; line-height:1.2; color:#111; }

.workbench-status{ background:#cfcfcf; border-top:2px solid #808080; height:28px; display:flex; align-items:center; padding:0 8px; font-family: 'Pixellari', monospace; font-size:12px; }

.tb-btn:hover{ transform: translateY(-2px); }
.tb-btn:active{ transform: translateY(1px); }

/* remove residual browser-toolbar gradient for workbench specifically */
.window[data-key="workbench"] .workbench-toolbar{ background: transparent !important; border: 0 !important; }

/* force toolbar to be a single non-wrapping left-aligned row */
.workbench-toolbar{ display:flex !important; flex-wrap:nowrap !important; justify-content:flex-start; align-items:flex-start; gap:8px; padding:6px 12px !important; }
.workbench-toolbar .tb-slot{ flex: 0 0 88px; height:100px; display:flex; align-items:flex-start; justify-content:center; padding-top:4px; }
.tb-slot{ display:flex; align-items:center; justify-content:center; }
.tb-btn{ background:transparent; border:0; width:72px; height:92px; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; }
.tb-btn .tb-icon{ width:56px; height:56px; border-radius:0; background:transparent; border:0; box-shadow:none; display:flex; align-items:center; justify-content:center; }
.tb-btn .tb-icon img{ width:70%; height:70%; object-fit:contain; }

/* Layout: make the Workbench window content stretch so we can place
  a white content panel that fills from under the address bar to the bottom */
.window[data-key="workbench"]{ display:flex; flex-direction:column; z-index:1; }
.window[data-key="workbench"] .window-body{ display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
.window[data-key="workbench"] .content{ display:flex; flex-direction:column; flex:1 1 auto; min-height:0; padding:0; position:relative; z-index:1; }
.window[data-key="workbench"] .workbench-browser{ display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }

/* White panel that stretches to bottom under the address row */
.workbench-main{ background:#fff; flex:1 1 auto; min-height:0; overflow:auto; padding:18px 20px; padding-bottom:44px; }

/* Ensure status bar sits at the bottom and spans full width; style so it's visible above the white panel */
.workbench-status{ background:#cfcfcf; border-top:2px solid #808080; height:28px; display:flex; align-items:center; padding:0 8px; font-family: 'Pixellari', monospace; font-size:12px; z-index:100001; position:relative; width:100%; align-self:stretch; }

/* Make the workbench content fill the floating window and pin the status bar */
.window[data-key="workbench"] .content{
  position: absolute !important;
  top: 40px !important; /* leave room for titlebar */
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
.window[data-key="workbench"] .workbench-browser{ display:flex !important; flex-direction:column; height:100% !important; }
.window[data-key="workbench"] .workbench-toolbar{ flex: 0 0 auto !important; }
.window[data-key="workbench"] .workbench-address{ flex: 0 0 auto !important; }
.window[data-key="workbench"] .workbench-main{ position: relative !important; flex: 1 1 auto !important; padding-bottom: 44px !important; overflow:auto !important; background:#fff !important; width:100% !important; box-sizing:border-box !important; margin-top:6px !important; z-index: 1 !important; border: 2px solid #d0d0d0 !important; }
.window[data-key="workbench"] .workbench-status{ position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important; height: 28px !important; box-sizing: border-box !important; z-index: 100001 !important; }

/* Strong overrides to nudge toolbar and address up (user requested offsets) */
.window[data-key="workbench"] .workbench-toolbar{ transform: translateY(-12px) !important; }
.window[data-key="workbench"] .workbench-address{ margin-top: -12px !important; }
.window[data-key="workbench"] .workbench-main{ margin-top: 0 !important; padding-bottom: 30px !important; }
.window[data-key="workbench"] .workbench-status{ height: 22px !important; }

/* give the address row a small bottom gap so the white panel sits clearly below it */
.window[data-key="workbench"] .workbench-address{ margin-bottom:8px !important; }

/* Final, high-specificity fixes for Home title/icon and gear button
   placed after the default icon rules so they override any earlier settings */
#main-window .title{ display:flex; align-items:center; }
/* commented out: #main-window .title::before{ top:46% !important; transform: translateY(-50%) !important; } */
#main-window .title-controls .btn{ /* ensure some breathing room inside the button */ padding:2px !important; box-sizing:border-box !important; }
#main-window .title-controls .btn img{ width:12px !important; height:12px !important; display:block !important; }
.title-controls{display:flex;gap:4px}
.title-btn{
  font-weight: normal;
  font-size: 12px;
  padding: 0 6px;
  background: linear-gradient(#fff,#c0c0c0);
  border: 2px solid #000;
  box-shadow: inset 1px 1px 0 #fff;
}

/* Make the gear button visually pressed when active (match menu pressed feel) */
#main-window .title-controls .btn.pressed{
  background: linear-gradient(#b8b4b0,#9c9a96);
  box-shadow: inset 2px 2px 0 #808080;
  transform: translateY(1px);
}
.window-body{
  display: flex;
}
.content{ min-width: 0; } /* allow flex child to shrink and prevent overflow */
.sidebar{
  width: 160px;
  border-right: 2px solid #fff;
  background: #e0e0e0;
  padding: 8px;
}
.prog{
  background: linear-gradient(#fff,#d4d0c8);
  border: 2px solid #808080;
  padding: 6px;
  margin-bottom: 8px;
  box-shadow: 2px 2px 0 #808080;
}
.prog.menu{ display: block; color: #000; text-decoration: none; }
.prog.menu:focus, .prog.menu:hover{ outline: none; background: linear-gradient(#f0f0f0,#d4d0c8); }
.menu-emoji{ display:inline-block; width:22px; text-align:center; margin-right:6px; }
/* Pixel sprite icons as small SVG data-URIs (simple, crisp shapes) */
.menu-emoji{ width:20px; height:16px; display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; margin-right:-1px !important; background-repeat:no-repeat; background-size:contain; background-position:center center; overflow:hidden; }
.menu-emoji img{ max-width:100%; max-height:100%; display:block; }
/* Inline image fallback for menu emojis (mirrors .menu-emoji background size) */
.menu-emoji-img{ width:20px; height:16px; display:inline-block; vertical-align:middle; margin-right:6px; }
.prog.menu[data-key="home"] .menu-emoji{ background-image: url('/icons/home.png'); }
.prog.menu[data-key="tools"] .menu-emoji{ background-image: url('/icons/tools.png'); }
.prog.menu[data-key="downloads"] .menu-emoji{ background-image: url('/icons/downloads.png'); }
.prog.menu[data-key="contact"] .menu-emoji{ background-image: url('/icons/contact.png'); }
/* Projects menu uses folder icon */
.prog.menu[data-key="projects"] .menu-emoji{ background-image: url('/icons/folder.png'); }

/* Pressed state for menu buttons */
.prog.menu.pressed{ background: linear-gradient(#b8b4b0,#9c9a96); box-shadow: inset 2px 2px 0 #808080; transform: translateY(1px); border-left:2px inset #000; }
.content{
  flex: 1;
  padding: 14px;
}

/* New CSS marquee (pixel-perfect scroll) */
.marquee{
  position: relative;
  background: #000;
  color: #fff;
  padding: 6px 8px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 2px solid #000;
  height: 28px; /* fixed height to keep layout stable */
}
.marquee__track{
  position: absolute;
  left: 0;
  top: 50%;
  white-space: nowrap;
  font-family: 'Pixellari', monospace;
  font-size: 14px;
  letter-spacing: 1px;
  /* transform uses CSS variables set by JS: --start (px) and --end (px) */
  transform: translateX(var(--start, 100%)) translateY(-50%);
  /* animation duration is computed dynamically via JS so scroll speed
     (pixels per second) can remain constant regardless of content length */
  will-change: transform;
}
@keyframes marquee{
  0% { transform: translateX(100%) translateY(-50%); }
  100% { transform: translateX(-100%) translateY(-50%); }
}

/* Fixed marquee keyframes that use CSS variables for precise pixel motion */
@keyframes marqueeFixed{
  from { transform: translateX(var(--start)) translateY(-50%); }
  to   { transform: translateX(var(--end)) translateY(-50%); }
}

/* Static overlay used to show text immediately while the animated track is prepared */
.marquee__static{
  position: absolute;
  /* align the static text so its right edge matches the container's
     right edge — this mirrors the animated track's start position */
  left: 100%;
  top: 50%;
  transform: translateX(-100%) translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 1px;
  text-align: left;
  will-change: opacity;
}

h1{font-size:22px;margin:6px 0; font-family: '04B_30__', 'Daydream', Tahoma, sans-serif}
.lead{color:#000080; font-family:'Pixellari', 'MS Sans Serif', sans-serif; font-size:13px}
.box-row{display:flex;gap:12px;margin-top:12px}
.box{flex:1;background:#fff;padding:10px;border:2px solid #808080}
hr{border:none;border-top:2px solid #808080;margin:12px 0}
.status-row{display:flex;gap:12px;align-items:center}
.status-row--time-right{ justify-content: flex-end; }
.status{background:#e8e8e8;border:2px solid #808080;padding:6px}
.status--time{ min-width:120px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center }
#counter{font-weight:bold;font-family:monospace}
.btn{
  background: linear-gradient(#fff,#c0c0c0);
  padding:6px 10px;border:2px solid #000;
  box-shadow: 2px 2px 0 #808080;cursor:pointer;
}

/* Terminal-style list inside Tools window */
.terminal-window{ background:#fff; color:#000; font-family: '04B_30__', 'Pixellari', monospace; padding:6px 10px; border: none; box-shadow: none; margin: 0; }
.terminal-entry{ display:block; background:transparent; color:inherit; padding:6px 8px; margin:6px 0; border: none; cursor:pointer; transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease; text-decoration:none; font-family: 'Pixellari', '04B_30__', monospace; }
.terminal-entry::before{ content: ">"; margin-right:8px; color:#000; }
.terminal-entry:hover{ transform: translateY(-2px); /* remove box-shadow so no gray bar appears */ box-shadow: none; }

/* tighten space between Tools heading and the list */
.tools-content > h4{ margin: 4px 0 6px 0; font-size: 16px; }
/* Make Downloads header match Tools header spacing and font */
.tools-content > h4, .downloads-content > h4, .contact-content > h4 { margin: 4px 0 6px 0; font-size: 16px; font-family: 'Pixellari', '04B_30__', monospace; }

/* small subheading under section headers */
.section-subhead{ color: #666; font-size: 12px; margin-bottom: 8px; font-family: 'Pixellari', '04B_30__', monospace; }

/* header inside Tools content that shows current tool and return button */
.tools-content-header{ display:flex; justify-content:space-between; align-items:center; padding:6px 8px; border-bottom:2px solid #808080; margin-bottom:8px; }
.tools-content-header .tools-return{ background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit !important; font-weight: normal !important; color: #000; text-decoration: none; transition: transform 120ms ease; }
.tw-scripts-header .tools-return{ cursor: pointer; color: #000; transition: transform 120ms ease; }
.tools-content-header .tools-return:hover,
.tw-scripts-header .tools-return:hover{ transform: translateY(-2px); }
.tools-return{ color: #000 !important; }
.tools-return:hover{ cursor: pointer; }
.tw-scripts-header .tools-return{ cursor: pointer; }
.tw-scripts-header .tools-return:hover{ opacity: 0.9; }
.guestbook{margin-top:12px;border:2px dashed #808080;padding:8px;background:#fff}
.hidden{display:none}
.entry{border-top:1px solid #ccc;padding:6px 0}
.retro-note{font-style:italic;color:#333;margin-top:12px}
.footer{text-align:right;margin-top:12px}

/* WAV tool inline rows and short underlined inputs */
.wav-pane{ font-family: 'Pixellari', monospace; text-align:left; margin: 0; width:100%; }
.wav-row{ display:flex; align-items:center; gap:10px; padding:6px 0; }
.wav-row.terminal-entry{ padding-left: 6px; }
.wav-row.terminal-entry::before{ left: 4px !important; }
.wav-input{ flex:0 0 40px !important; background:transparent; border:0; border-bottom:2px solid #000 !important; padding:3px 4px !important; font-family: 'Pixellari', monospace; font-size:14px; color:#000; outline:none; line-height:1; }
.wav-input::placeholder{ color: #000; opacity:0.9; }
.wav-label{ flex:0 0 auto; font-weight:bold; margin-left:8px; display:inline-flex; align-items:center; line-height:1; }
.wav-lock{ font-weight:bold; cursor:pointer; padding:0 2px; margin-left:-9px !important; display:inline-flex !important; align-items:center !important; gap:2px !important; width:auto !important; justify-content:flex-start; white-space:nowrap; }
.wav-lock .lock-main{ display:inline-block; line-height:1; }
.wav-lock .lock-suffix{ display:inline-block; text-align:left; visibility:hidden; opacity:0; line-height:1; margin-left:2px }
.wav-lock.is-locked .lock-suffix{ visibility:visible; opacity:1; }
.wav-clear{ font-weight:bold; cursor:pointer; padding:2px 6px; margin-left:-9px !important; }

/* strong overrides in case other rules are taking precedence */
.tool-pane.tool-wav .wav-pane{ max-width:none !important; margin:0 !important; padding:0 6px !important; }
.tool-pane.tool-wav .wav-row{ padding-top:6px !important; padding-bottom:6px !important; }

/* small screens */
@media (max-width: 700px){
  .desktop{width:95%;}
  .window-body{flex-direction:column}
  .sidebar{width:100%;border-right:none;border-bottom:2px solid #fff}
  .box-row{flex-direction:column}
}

/* spawn animation for new windows */
.window.spawn{ opacity:0; transform: scale(.98) translateY(-6px); transition: opacity 220ms ease, transform 220ms ease; }
.window{ transition: opacity 160ms ease, transform 140ms ease; }

/* Workbench: stronger, screenshot-accurate chrome overrides */
.window[data-key="workbench"]{
  /* ensure full-bleed feel inside the floating window */
  background: #d9d9d9;
}
.window[data-key="workbench"] .marquee{
  background: #000 !important;
  color: #fff !important;
  height: 34px !important;
  padding: 6px 8px !important;
  margin-bottom: 8px !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.window[data-key="workbench"] .marquee__static,
.window[data-key="workbench"] .marquee__track{
  position: relative !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  top: 50% !important;
  white-space: nowrap;
  font-family: '04B_30__', 'Pixellari', monospace !important;
  font-size: 14px !important;
  letter-spacing: 1px !important;
}

/* (removed older toolbar gradient rules) */

/* Address bar: left 'Address:' label, small home icon, inset box that spans full width */
.workbench-address{ display:flex; align-items:center; gap:4px; padding:6px 8px; }
.workbench-address .addr-label{ font-size:12px; font-weight:bold; color:#000; margin-right:6px; }
.addr-box{ display:flex; align-items:center; gap:8px; border:2px inset #808080; background:#fff; padding:6px 8px; flex:1; }
.addr-icon{ width:18px; height:18px; display:block; }
.addr-icon img{ width:18px; height:18px; display:block; }
.browser-address-input{ font-family: 'Pixellari', monospace; font-size:13px; color:#000; }

/* Main body typography to match screenshot: big pixel heading and compact body copy */

/* Workbench title and body: bigger pixel heading on the left and compact body copy */
.workbench-body h2, .workbench-body .page-title{ font-family: '04B_30__', 'Daydream', monospace; font-size:34px; letter-spacing:2px; margin:6px 0 12px 0; text-transform:uppercase; }
.workbench-body p{ font-family: 'Pixellari', monospace; font-size:12px; line-height:1.2; color:#111; margin:0 0 6px 0; }

/* (removed duplicate white workbench-body block to keep transparent background) */
.workbench-body h2{ margin-top:4px; margin-bottom:12px; }
.workbench-status{ background:#cfcfcf; border-top:2px solid #808080; height:28px; display:flex; align-items:center; padding:0 8px; font-family: 'Pixellari', monospace; font-size:12px; }

/* small hover/active feel for toolbar buttons */
.tb-btn:hover{ transform: translateY(-2px); }
.tb-btn:active{ transform: translateY(1px); box-shadow: inset 1px 1px 0 rgba(0,0,0,0.2); }

