/* Windows XP Luna theme - Sebastian Aldous personal site */

:root {
  /* Luna / XP palette - reference values from real Luna */
  --xp-titlebar: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 2%, #0054e3 3%, #2179e6 8%, #1a6ed9 50%, #0042a5 100%);
  --xp-titlebar-bottom: #0042a5;
  --xp-taskbar: linear-gradient(180deg, #2a6ec5 0%, #3a7dd8 6%, #2365b1 50%, #1854a0 100%);
  --xp-taskbar-border: #0e3d7a;
  --xp-start: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, #5cb531 4%, #3a9421 12%, #2d7a1a 50%, #1e5c0f 100%);
  --xp-start-border: #2d6a1a;
  --xp-start-hover: linear-gradient(180deg, #6ed63a 0%, #4aaa28 50%, #3a8a1e 100%);
  --xp-window-bg: #ece9d8;
  --xp-content-bg: #ffffff;
  --xp-toolbar-blue: linear-gradient(180deg, #f0f6fc 0%, #d8e8f8 30%, #b8d4f0 70%, #9cc4e8 100%);
  --xp-pane-blue: #eaf4fc;
  --xp-pane-blue-dark: #d8e8f4;
  --xp-btn: linear-gradient(180deg, #f6f6f4 0%, #e8e4d8 6%, #d4d0c8 100%);
  --xp-btn-border: #8b8b83;
  --xp-btn-hover: linear-gradient(180deg, #fff 0%, #f0eee0 40%, #e4e0d0 100%);
  --xp-btn-active: linear-gradient(180deg, #d4d0c8 0%, #e0dcc8 60%, #e8e4d8 100%);
  --xp-highlight: #ffffff;
  --xp-shadow: #8b8b83;
  --xp-border-dark: #404040;
  --xp-selection: #0054e3;
  --xp-close: #e65c4a;
  --xp-close-hover: #ff7060;
  --face: #ece9d8;
  --highlight: #fff;
  --shadow: #8b8b83;
  --border-dark: #404040;
  --selection-blue: #0054e3;
  --content-bg: #fff;
  --folder-yellow: #ffcc00;
  --folder-yellow-dark: #c09820;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 11px;
  overflow: hidden;
  height: 100vh;
  user-select: none;
  -webkit-user-select: none;
}

.intro-content.hidden,
.doc-wrap.hidden {
  display: none !important;
}

/* ========== Document-style content (toolbar + white page) ========== */
.doc-wrap {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.doc-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px 6px;
  background: var(--xp-window-bg);
  border: 1px solid var(--xp-btn-border);
  border-left: none;
  border-right: none;
  border-top: none;
}

.doc-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.doc-tb-btn {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--xp-btn-border);
  border-radius: 3px;
  background: var(--xp-btn);
  font-size: 11px;
  font-weight: bold;
  font-family: inherit;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.doc-tb-btn:hover {
  background: var(--xp-btn-hover);
}

.doc-tb-btn:active {
  background: var(--xp-btn-active);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

.doc-tb-btn:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -1px;
}

.doc-tb-btn em { font-style: italic; font-weight: bold; }
.doc-tb-btn u { text-decoration: underline; font-weight: bold; }

.doc-tb-sep {
  width: 1px;
  height: 20px;
  background: var(--shadow);
  margin: 0 4px;
}

.doc-tb-font,
.doc-tb-size {
  height: 20px;
  padding: 0 4px;
  border: 1px solid var(--shadow);
  background: #fff;
  font-size: 11px;
  font-family: inherit;
  cursor: default;
  min-width: 90px;
}

.doc-tb-size { min-width: 44px; }

/* Notepad-style window: menu bar + content + status bar (no toolbar) */
.notepad-wrap {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.notepad-menubar {
  display: flex;
  align-items: center;
  height: 23px;
  padding: 0 6px;
  background: var(--xp-window-bg);
  border-bottom: 1px solid var(--xp-btn-border);
  gap: 2px;
}

.notepad-menu-item {
  padding: 2px 8px;
  font-size: 11px;
  cursor: default;
  border: 1px solid transparent;
  border-radius: 2px;
}

.notepad-menu-item:hover {
  background: var(--xp-selection);
  color: #fff;
  border-color: var(--xp-selection);
}

.notepad-statusbar {
  height: 22px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  background: var(--xp-btn);
  border: 1px solid var(--xp-btn-border);
  border-left: none;
  border-right: none;
  border-bottom: none;
  margin: 0 8px 0 8px;
  font-size: 11px;
  color: #000;
}

.notepad-status-text {
  margin-left: 4px;
}

.welcome-window .win98-title-icon.notepad-title-icon {
  background: url("assets/notepad.png") center/contain no-repeat;
}

.blog-reader-window .win98-title-icon,
.project-reader-window .win98-title-icon {
  background: url("assets/notepad.png") center/contain no-repeat;
}

.doc-page {
  flex: 1;
  min-height: 0;
  background: var(--xp-content-bg);
  border: 1px solid var(--xp-btn-border);
  border-top: none;
  margin: 0 8px 0 8px;
  padding: 16px 20px;
  overflow-y: auto;
  user-select: text;
}

.notepad-wrap .doc-page {
  border-bottom: none;
}

/* Desktop - custom background image */
.desktop {
  position: fixed;
  inset: 0;
  bottom: 30px;
  overflow: visible; /* allow windows to be dragged to bottom without clipping */
  background: #2a5a3a url("assets/r6g38aXSaQWtd1KxwJbQ-Fs5jtSVDxX3wtLHJEdqixw.webp") center/cover no-repeat;
  contain: layout;
}

.desktop::before {
  content: "";
  position: absolute;
  bottom: 10%;
  right: 0;
  width: 50%;
  height: 50%;
  background: url("assets/Sebastian%20Aldous%20Logo%20Small.png") no-repeat;
  background-position: right center;
  background-size: min(40vmin, 320px);
  opacity: 1;
  pointer-events: none;
}

/* Selection box (click-drag on desktop) */
.desktop-selection-box {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  background: rgba(0, 120, 215, 0.25);
  border: 1px solid rgba(0, 120, 215, 0.8);
  box-sizing: border-box;
  display: none;
}

.desktop-selection-box.visible {
  display: block;
}

/* Desktop icons - sit behind windows */
.desktop-icon {
  position: absolute;
  width: 80px;
  min-height: 44px; /* minimum tap target for mobile */
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: default;
  border: 1px solid transparent;
  border-radius: 0;
  z-index: 1;
  /* allow immediate tap response on mobile (no 300ms delay) */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.desktop-icon:hover {
  background: rgba(0, 84, 227, 0.35);
  color: #fff;
  border-radius: 3px;
}

.desktop-icon.selected {
  background: rgba(0, 84, 227, 0.5);
  color: #fff;
  border-radius: 3px;
}

.desktop-icon.selected:hover {
  background: rgba(0, 120, 215, 0.5);
  color: #fff;
}

.desktop-icon.dragging {
  opacity: 0.9;
  z-index: 1000;
  cursor: grabbing;
}

.desktop-icon .icon-image {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  position: relative;
}

.desktop-icon .icon-image img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: none;
  position: relative;
  z-index: 1;
}

.desktop-icon .icon-image img.loaded {
  display: block;
}

.desktop-icon .icon-image:has(img.loaded)::before,
.desktop-icon .icon-image:has(img.loaded)::after {
  display: none !important;
}

/* When desktop icon uses an image, hide the CSS-drawn background so only the image shows */
.desktop-icon .icon-image:has(img.loaded) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  clip-path: none !important;
}

/* Classic Windows 98 icon styles - 3D beveled look (fallback when no image) */
.icon-my-computer {
  background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 50%, #808080 100%);
  border: 1px solid #404040;
  box-shadow: 
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #606060,
    1px 1px 0 #404040;
  border-radius: 2px;
  position: relative;
}

.icon-my-computer::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 14px;
  height: 10px;
  background: linear-gradient(180deg, #1084d0 0%, #004078 100%);
  border: 1px solid #004078;
  box-shadow: 0 0 0 1px #6ea3e0;
}

.icon-my-computer::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 4px;
  width: 18px;
  height: 12px;
  background: linear-gradient(180deg, #c0c0c0 0%, #808080 100%);
  border: 1px solid #404040;
  box-shadow: inset 1px 1px 0 #fff;
}

.icon-my-documents {
  background: linear-gradient(135deg, #fff4c4 0%, #e8c858 50%, #c09820 100%);
  border: 1px solid #806000;
  box-shadow: 
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #a08020,
    1px 1px 0 #604800;
  border-radius: 0 2px 2px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 92%);
  position: relative;
}

.icon-my-documents::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 10px;
  background: linear-gradient(180deg, #fff8d0 0%, #e0b840 100%);
  border: 1px solid #a08020;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 4px 100%, 0 85%);
}

.icon-about {
  background: linear-gradient(135deg, #e8e8e8 0%, #a8a8a8 100%);
  border: 1px solid #606060;
  box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #404040;
  border-radius: 50%;
  position: relative;
}

.icon-about::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: var(--selection-blue);
}

.icon-projects {
  background: linear-gradient(135deg, #fff4c4 0%, #e8c858 50%, #c09820 100%);
  border: 1px solid #806000;
  box-shadow: 
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #a08020,
    1px 1px 0 #604800;
  border-radius: 0 2px 2px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 92%);
  position: relative;
}

.icon-projects::after {
  content: "</>";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  color: #604800;
  letter-spacing: -1px;
}

/* When using folder image (My Documents), hide drawn icon so img shows */
.icon-projects:has(img),
.icon-stuff:has(img) {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  clip-path: none !important;
}
.icon-projects:has(img)::after {
  display: none;
}

.icon-contact {
  background: linear-gradient(180deg, #fff 0%, #e0e0e0 50%, #c0c0c0 100%);
  border: 1px solid #808080;
  box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #404040;
  border-radius: 2px;
  position: relative;
}

.icon-contact::after {
  content: "✉";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.icon-recycle {
  background: linear-gradient(180deg, #c0c0c0 0%, #808080 50%, #606060 100%);
  border: 1px solid #404040;
  box-shadow: 
    inset 1px 1px 0 #e0e0e0,
    inset -1px -1px 0 #404040,
    1px 1px 0 #202020;
  border-radius: 2px;
  position: relative;
}

.icon-recycle::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  width: 12px;
  height: 14px;
  border: 2px solid #404040;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #a0a0a0 0%, #606060 100%);
  box-shadow: inset 1px 0 0 #c0c0c0;
}

/* Icon label - Windows 98 style text with shadow */
.icon-label {
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  word-break: break-word;
  max-width: 76px;
}

.desktop-icon:hover .icon-label {
  color: #fff;
}

/* Desktop right-click context menu - retro Win98/2000 style */
.desktop-context-menu {
  position: fixed;
  min-width: 180px;
  padding: 2px;
  background: #c0c0c0;
  border: 1px solid #ffffff;
  box-shadow: 1px 1px 0 0 #808080, inset 1px 1px 0 0 #dfdfdf;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 11px;
  color: #000;
  list-style: none;
  z-index: 10002;
  display: none;
  flex-direction: column;
  user-select: none;
}

.desktop-context-menu.visible {
  display: flex;
}

.desktop-context-menu .context-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 20px 3px 18px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  gap: 16px;
}

.desktop-context-menu .context-menu-item:hover {
  background: #0a246a;
  color: #fff;
}

.desktop-context-menu .context-menu-item.context-menu-disabled {
  color: #808080;
  cursor: default;
}

.desktop-context-menu .context-menu-item.context-menu-disabled:hover {
  background: transparent;
  color: #808080;
}

.desktop-context-menu .context-menu-arrow {
  font-size: 8px;
  margin-left: auto;
}

.desktop-context-menu .context-menu-sep {
  height: 2px;
  margin: 2px 4px;
  background: #808080;
  box-shadow: 0 1px 0 #fff;
}

.desktop-context-menu .context-menu-wrap {
  position: relative;
}

.desktop-context-menu .context-menu-sub {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 160px;
  padding: 2px;
  background: #c0c0c0;
  border: 1px solid #ffffff;
  box-shadow: 1px 1px 0 0 #808080, inset 1px 1px 0 0 #dfdfdf;
  display: none;
  flex-direction: column;
  margin-left: -2px;
}

.desktop-context-menu .context-menu-wrap:hover .context-menu-sub {
  display: flex;
}

.desktop-context-menu .context-menu-sub:hover {
  display: flex;
}

.desktop-context-menu .context-menu-sub .context-menu-item {
  padding: 3px 20px 3px 18px;
}

/* Taskbar - XP Luna blue */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: var(--xp-taskbar);
  border-top: 1px solid var(--xp-taskbar-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  display: flex;
  align-items: stretch;
  font-size: 11px;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
}

/* Start button - XP green pill (rounded left edge) with 4-pane Windows logo */
.start-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 10px;
  height: 100%;
  background: var(--xp-start);
  border: 1px solid var(--xp-start-border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 1px 0 0 rgba(255,255,255,0.12);
  color: #fff;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  min-width: 62px;
}

.start-button:hover {
  background: var(--xp-start-hover);
}

.start-button:active {
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.3);
}

/* Touch-friendly: no tap delay, adequate hit area on mobile */
.start-button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.start-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 2px;
  background: url("assets/windows%20logo.png") center/contain no-repeat;
}

/* Quick launch - XP */
.quick-launch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
  border-left: 1px solid rgba(0,0,0,0.2);
  background: transparent;
}

.quick-launch-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 11px;
  color: #fff;
  cursor: pointer;
}

.quick-launch-icon:hover {
  background: rgba(255,255,255,0.15);
}

/* Taskbar tasks - blue when active, grey when inactive */
.taskbar-tasks {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 3px 4px;
  min-width: 0;
}

.taskbar-task-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 6px;
  max-width: 160px;
  min-width: 0;
  height: 100%;
  border: 1px solid transparent;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  color: #fff;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.taskbar-task-btn .taskbar-task-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.taskbar-task-btn .taskbar-task-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.taskbar-task-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
}

.taskbar-task-btn.active {
  background: linear-gradient(180deg, #4a8ed4 0%, #2a6ec5 50%, #1a5aa8 100%);
  border-color: #0e3d7a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.taskbar-task-btn.taskbar-dragging {
  opacity: 0.7;
}

/* System tray - XP */
.system-tray {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  border-left: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  color: #fff;
}

.tray-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: default;
}

.tray-time {
  padding: 0 4px;
  font-size: 11px;
  cursor: default;
}

/* Start menu - XP two-column */
.start-menu {
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 346px;
  max-height: 85vh;
  display: none;
  flex-direction: column;
  background: var(--xp-window-bg);
  border: 1px solid var(--xp-btn-border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  box-shadow: 2px -2px 8px rgba(0,0,0,0.2);
  z-index: 10001;
  overflow: hidden;
  min-height: 380px;
}

.start-menu.open {
  display: flex;
}

.start-menu-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--xp-titlebar);
  color: #000;
  font-weight: bold;
  font-size: 12px;
  border-bottom: 2px solid #e87d2c;
}

.start-menu-user-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #e0e0e0;
}

.start-menu-user-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.start-menu-column {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  min-height: 0;
}

.start-menu-left {
  background: linear-gradient(180deg, #2a6ec5 0%, #1a5aa8 100%);
  padding: 8px 0 10px 0;
}

.start-menu-right {
  background: var(--xp-pane-blue);
  border-left: 1px solid #b0c4dc;
}

.start-menu-columns-wrap {
  display: flex;
  flex: 1;
  min-height: 0;
}

.start-menu-columns-wrap .start-menu-left {
  width: 48%;
}

.start-menu-columns-wrap .start-menu-right {
  width: 52%;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.start-menu-right .start-menu-item {
  color: #0054e3;
  font-weight: bold;
}

.start-menu-item:hover {
  background: var(--xp-selection);
  color: #fff;
}

.start-menu-right .start-menu-item:hover {
  background: var(--xp-pane-blue-dark);
  color: #0054e3;
}

.start-menu-right-placeholder {
  display: block;
  padding: 12px 14px;
  font-size: 11px;
  color: #606060;
  font-style: italic;
}

.start-menu-all {
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 6px;
  padding-top: 10px;
}

.start-menu-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  position: relative;
}

.start-menu-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: none;
}

.start-menu-icon img.loaded {
  display: block;
}

.start-menu-icon img.load-failed {
  display: none;
}

.start-menu-icon-fb {
  display: flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}

.start-menu-icon img.loaded + .start-menu-icon-fb {
  display: none;
}

.start-menu-icon img.load-failed + .start-menu-icon-fb {
  display: flex;
}

.start-menu-arrow .start-menu-icon-fb {
  font-size: 14px;
  font-weight: bold;
}

.start-menu-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  gap: 32px;
  background: var(--xp-titlebar);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.start-menu-logoff,
.start-menu-shutdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #000;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}

.start-menu-logoff:hover,
.start-menu-shutdown:hover {
  background: rgba(255, 255, 255, 0.2);
}

.start-menu-logoff:active,
.start-menu-shutdown:active {
  background: rgba(0, 0, 0, 0.15);
}

.start-menu-logoff:focus-visible,
.start-menu-shutdown:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 2px;
}

.start-menu-bottom-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.start-menu-bottom-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: none;
}

.start-menu-bottom-icon img.loaded {
  display: block;
}

.start-menu-bottom-icon:has(img.loaded) {
  background-image: none;
}

/* Log off & Turn off: always show PNG, no SVG fallback */
.start-menu-icon-logoff,
.start-menu-icon-shutdown {
  background-image: none;
}
.start-menu-icon-logoff img,
.start-menu-icon-shutdown img {
  display: block;
}

/* Fix: two columns side by side */
.start-menu .start-menu-columns-wrap {
  display: flex;
}

.start-menu > .start-menu-user {
  flex-shrink: 0;
}

.start-menu > .start-menu-column.start-menu-left,
.start-menu > .start-menu-column.start-menu-right {
  flex: 1;
}

.start-menu > .start-menu-left {
  position: absolute;
  left: 0;
  top: 70px;
  bottom: 52px;
  width: 172px;
}

.start-menu > .start-menu-right {
  position: absolute;
  left: 172px;
  top: 70px;
  bottom: 52px;
  right: 0;
  overflow-y: auto;
}

.start-menu > .start-menu-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ========== XP-style window ========== */
.win98-window {
  position: absolute;
  border: 1px solid #7a9ed1;
  border-radius: 8px 8px 0 0;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
  min-width: 320px;
  min-height: 240px;
  max-width: 90vw;
  display: none;
  overflow: hidden;
}

.win98-window.visible {
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

/* Swoop open: grow from icon / taskbar */
.win98-window.win98-opening {
  transform: scale(0.2);
  opacity: 0;
}

/* Swoop close: shrink down into taskbar */
.win98-window.win98-closing {
  transform: scale(0.2);
  opacity: 0;
  transform-origin: 50% 100%;
}

.win98-window.maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 0;
}

.win98-window.maximized .win98-resize-handle,
.win98-window.maximized .win98-resize-edge {
  display: none;
}

/* Bottom edge: drag to resize height */
.win98-resize-edge-bottom {
  position: absolute;
  left: 0;
  right: 16px;
  bottom: 0;
  height: 8px;
  cursor: ns-resize;
  z-index: 0;
}

/* Right edge: drag to resize width */
.win98-resize-edge-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 16px;
  width: 8px;
  cursor: ew-resize;
  z-index: 0;
}

.win98-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 1;
}

.win98-titlebar {
  display: flex;
  align-items: center;
  height: 25px;
  padding: 0 4px 0 8px;
  background: var(--xp-titlebar);
  color: #fff;
  font-weight: bold;
  cursor: move;
  user-select: none;
  border-radius: 8px 8px 0 0;
}

.win98-title-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M0 2h6v4H0V2zm8 0h8v4H8V2zM0 8h6v4H0V8zm8 0h8v4H8V8z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.win98-title-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.win98-title-buttons {
  display: flex;
  gap: 1px;
}

.win98-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: transparent;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.win98-btn:hover {
  background-color: rgba(255,255,255,0.2);
}

.win98-minimize {
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, #1a6ed9 30%, #0042a5 100%);
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 14px;
  color: #fff;
  font-weight: bold;
  line-height: 1;
}

.win98-minimize:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, #2179e6 30%, #0054e3 100%);
}

.win98-maximize {
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, #1a6ed9 30%, #0042a5 100%);
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 12px;
  color: #fff;
  line-height: 1;
}

.win98-maximize:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, #2179e6 30%, #0054e3 100%);
}

.win98-close {
  background: linear-gradient(180deg, #ff8a7a 0%, #e65c4a 50%, #cc3d2e 100%);
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 14px;
  color: #fff;
  font-weight: bold;
  line-height: 1;
}

.win98-close:hover {
  background: linear-gradient(180deg, #ff9a8a 0%, var(--xp-close) 50%, #e64a3a 100%);
}

.win98-body {
  background: var(--xp-window-bg);
  border: 1px solid var(--xp-btn-border);
  border-top: none;
  padding: 0;
  flex: 1;
  min-height: 0; /* fill window height and allow inner scroll */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: text;
}

.win98-window.maximized .win98-body {
  max-height: none;
  flex: 1;
}

.explorer-title-icon {
  background: url("assets/explore.png") center/contain no-repeat !important;
}

/* Menu bar - XP */
.explorer-menubar {
  display: flex;
  align-items: center;
  height: 23px;
  padding: 0 6px;
  background: var(--xp-window-bg);
  border-bottom: 1px solid var(--xp-btn-border);
  gap: 2px;
}

.explorer-menu-item {
  padding: 2px 8px;
  font-size: 11px;
  cursor: default;
  border: 1px solid transparent;
  border-radius: 2px;
}

.explorer-menu-item:hover {
  background: var(--xp-selection);
  color: #fff;
  border-color: var(--xp-selection);
}

/* Toolbar */
.explorer-toolbar {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 2px 6px;
  background: var(--xp-toolbar-blue);
  border-bottom: 1px solid var(--xp-btn-border);
  gap: 2px;
}

.explorer-tb-btn {
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border: 1px solid var(--xp-btn-border);
  border-radius: 3px;
  background: var(--xp-btn);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  color: #000;
}

.explorer-tb-btn:hover:not(:disabled) {
  background: var(--xp-btn-hover);
}

.explorer-tb-btn:active:not(:disabled) {
  background: var(--xp-btn-active);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

.explorer-tb-btn:focus-visible,
.win98-btn:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -1px;
}

.explorer-tb-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.explorer-tb-btn.active {
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.15);
  background: #d0d0c0;
}

.explorer-tb-sep {
  width: 1px;
  height: 20px;
  background: #8b8b83;
  margin: 0 5px;
}

/* Toolbar icon buttons - SVG icons, no text */
.explorer-tb-btn.explorer-tb-icon {
  font-size: 0;
  overflow: hidden;
  padding: 0;
  min-width: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.explorer-tb-btn.explorer-tb-icon span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Search / Folders buttons with icon + label (XP style) */
.explorer-tb-search,
.explorer-tb-folders {
  min-width: auto;
  padding: 0 6px;
  gap: 4px;
}

.explorer-tb-search img,
.explorer-tb-folders img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.explorer-tb-search span,
.explorer-tb-folders span {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  font-size: 11px;
}

.explorer-tb-icon.explorer-tb-back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M10 13L5 8l5-5v3h4v4h-4z'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-forward {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6 3l5 5-5 5V10H2V6h4z'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-up {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 4l-6 6h3v4h6v-4h3z'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-cut {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M4 2h2v2h6v2H6v6h2v2H4v-2H2V4h2zm8 4l2 2-2 2v2h-2v-2H8v2H6v-2l2-2-2-2v-2h2v2h2V6z'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-copy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6 2H2v10h2V4h8V2H6zm6 4H6v8h6V6z'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-paste {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M4 2v2h8V2h2v4h2V4H14V2h-2V0H4v2zm2 4v8h6V6H6z'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-undo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 2C4.5 2 2 4.5 2 8h2c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4V6L6 12l4 4v-2c3.3 0 6-2.7 6-6s-2.7-6-6-6z'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-delete {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M4 2v2H2v2h12V4h-2V2H4zm2 2h4V4H6v2zm-2 4v6h8V8H4z'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-props {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath fill='%23000' d='M8 6v4M6 8h4'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-largeicons {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='2' width='5' height='5' fill='%23000'/%3E%3Crect x='9' y='2' width='5' height='5' fill='%23000'/%3E%3Crect x='2' y='9' width='5' height='5' fill='%23000'/%3E%3Crect x='9' y='9' width='5' height='5' fill='%23000'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-list {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='2' width='12' height='2' fill='%23000'/%3E%3Crect x='2' y='7' width='12' height='2' fill='%23000'/%3E%3Crect x='2' y='12' width='12' height='2' fill='%23000'/%3E%3C/svg%3E");
}

.explorer-tb-icon.explorer-tb-details {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='1' width='2' height='2' fill='%23000'/%3E%3Crect x='6' y='1' width='8' height='2' fill='%23000'/%3E%3Crect x='2' y='5' width='2' height='2' fill='%23000'/%3E%3Crect x='6' y='5' width='8' height='2' fill='%23000'/%3E%3Crect x='2' y='9' width='2' height='2' fill='%23000'/%3E%3Crect x='6' y='9' width='8' height='2' fill='%23000'/%3E%3C/svg%3E");
}

/* Address bar - XP */
.explorer-address-bar {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  background: var(--xp-window-bg);
  border-bottom: 1px solid var(--xp-btn-border);
  gap: 6px;
}

.explorer-address-label {
  font-size: 11px;
  white-space: nowrap;
}

.explorer-address-input-wrap {
  flex: 1;
  min-width: 0;
  height: 22px;
  border: 1px solid var(--xp-btn-border);
  border-radius: 3px;
  background: var(--xp-content-bg);
  display: flex;
  align-items: center;
  padding: 0 6px;
}

.explorer-address-text {
  font-size: 11px;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Panes: sidebar + main */
.explorer-panes {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.explorer-sidebar {
  width: 140px;
  min-width: 120px;
  flex-shrink: 0;
  background: var(--xp-pane-blue);
  border-right: 1px solid var(--xp-btn-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.explorer-sidebar-title {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: bold;
  background: var(--xp-pane-blue-dark);
  border-bottom: 1px solid #b0c4dc;
}

.explorer-tree {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.explorer-tree-item {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: default;
  min-height: 20px;
}

.explorer-tree-item:hover {
  background: var(--xp-selection);
  color: #fff;
}

.explorer-tree-item-selected {
  background: var(--xp-selection);
  color: #fff;
}

.explorer-tree-line {
  width: 12px;
  flex-shrink: 0;
}

.explorer-tree-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.explorer-tree-icon:has(img) {
  background-image: none;
  background: transparent;
}

.explorer-tree-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.explorer-tree-folder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffcc00' stroke='%23c09820' stroke-width='.5' d='M1 4h5l2 2h7v7H1z'/%3E%3C/svg%3E");
}

.explorer-tree-item-selected .explorer-tree-folder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' stroke='%23ccc' stroke-width='.5' d='M1 4h5l2 2h7v7H1z'/%3E%3C/svg%3E");
}

.explorer-tree-pc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='1' width='12' height='8' fill='%230a246a' stroke='%23000' stroke-width='.5'/%3E%3Crect x='4' y='9' width='8' height='4' fill='%23d4d0c8' stroke='%23000' stroke-width='.5'/%3E%3Crect x='6' y='11' width='4' height='2' fill='%23808080'/%3E%3C/svg%3E");
}

.explorer-tree-item-selected .explorer-tree-pc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='1' width='12' height='8' fill='%23fff' stroke='%23fff' stroke-width='.5'/%3E%3Crect x='4' y='9' width='8' height='4' fill='%23fff' stroke='%23fff' stroke-width='.5'/%3E%3Crect x='6' y='11' width='4' height='2' fill='%23ccc'/%3E%3C/svg%3E");
}

.explorer-tree-recycle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23808080' stroke='%23404040' stroke-width='.5' d='M3 2h10v2H3zm1 2l1 10h6l1-10H4zm2 2v6h1V6H6zm2 0v6h1V6H8zm2 0v6h1V6h-1z'/%3E%3C/svg%3E");
}

.explorer-tree-item-selected .explorer-tree-recycle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' stroke='%23ccc' stroke-width='.5' d='M3 2h10v2H3zm1 2l1 10h6l1-10H4zm2 2v6h1V6H6zm2 0v6h1V6H8zm2 0v6h1V6h-1z'/%3E%3C/svg%3E");
}

.explorer-tree-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--xp-window-bg);
}

.explorer-content-area {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Explorer status bar - XP grey */
.explorer-status-bar {
  height: 22px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  background: var(--xp-window-bg);
  border-top: 1px solid var(--xp-btn-border);
  font-size: 11px;
}

.explorer-status-text {
  color: #000;
}

/* ----- Stuff window (Explorer, default list view) ----- */
.stuff-window .win98-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stuff-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stuff-content-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--xp-content-bg);
  border: 1px solid var(--xp-btn-border);
  margin: 4px;
}

.stuff-list-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.stuff-list-header {
  display: flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  background: var(--xp-pane-blue-dark);
  border-bottom: 1px solid var(--xp-btn-border);
  flex-shrink: 0;
}

.stuff-list-col-name {
  flex: 1;
  min-width: 0;
}

.stuff-list-col-date {
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}

.stuff-list-rows {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.stuff-list-row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 2px 6px;
  font-size: 11px;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
  min-height: 22px;
}

.stuff-list-row:hover {
  background: var(--xp-selection);
  color: #fff;
}

.stuff-list-row.selected {
  background: var(--xp-selection);
  color: #fff;
}

.stuff-list-row .stuff-list-col-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stuff-list-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("assets/notepad.png") center/contain no-repeat;
}

.stuff-list-row .stuff-list-col-date {
  text-align: right;
}

.stuff-content-area.view-list .stuff-list-view {
  display: flex;
}

.stuff-content-area.view-largeicons .stuff-list-view {
  display: flex;
}

.stuff-content-area.view-details .stuff-list-view {
  display: flex;
}

/* Finder: single window with Projects, Stuff, Trash */
/* Finder toolbar: XP-style light grey bar with custom Back/Forward/Search icons */
.finder-window .finder-toolbar {
  background: linear-gradient(180deg, #f0f0f0 0%, #e5e5e5 50%, #d8d8d8 100%);
  border-bottom: 1px solid #b0b0b0;
  padding: 3px 6px;
}

.finder-window .finder-tb-back,
.finder-window .finder-tb-forward {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: none;
}

.finder-window .finder-tb-back {
  background-image: url("assets/finder-back.png");
}

.finder-window .finder-tb-back:hover:not(:disabled) {
  filter: brightness(1.08);
}

.finder-window .finder-tb-forward {
  background-image: url("assets/finder-forward.png");
}

.finder-window .finder-tb-forward:disabled {
  opacity: 1;
  cursor: default;
}

/* Search icon via CSS so it shows on live (avoids img path/cache issues) */
.finder-window .explorer-tb-search {
  position: relative;
  padding: 0 8px;
  padding-left: 28px;
  background-image: url("assets/finder-search.png");
  background-repeat: no-repeat;
  background-position: 6px center;
  background-size: 18px 18px;
}

.finder-window .explorer-tb-search img {
  width: 18px;
  height: 18px;
  /* Hide img so CSS background is the single source; icon still shows if img fails on live */
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.finder-trash-empty {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--xp-text-muted);
  font-size: 11px;
}
.finder-content-area.finder-folder-trash .finder-list-view {
  display: none;
}
.finder-content-area.finder-folder-trash .finder-trash-empty {
  display: flex;
}

/* Finder: list/details views – constrain photo thumbnails (avoid full-size images) */
.finder-content-area.view-list .stuff-list-icon-photo,
.finder-content-area.view-details .stuff-list-icon-photo {
  width: 16px;
  height: 16px;
  background: none;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}
.finder-content-area.view-list .stuff-list-icon-photo img,
.finder-content-area.view-details .stuff-list-icon-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Finder: large icons (grid) view – used for Photos folder */
.finder-content-area.view-largeicons .finder-list-view {
  display: flex;
  flex-direction: column;
}
.finder-content-area.view-largeicons .finder-list-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  padding: 8px;
  align-content: start;
}
.finder-content-area.view-largeicons .stuff-list-row {
  flex-direction: column;
  width: auto;
  min-height: auto;
  padding: 6px;
  align-items: center;
  text-align: center;
  border-radius: 2px;
}
.finder-content-area.view-largeicons .stuff-list-row .stuff-list-col-name {
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.finder-content-area.view-largeicons .stuff-list-row .stuff-list-col-date {
  display: none;
}
.finder-content-area.view-largeicons .finder-list-header {
  display: none;
}
.finder-content-area.view-largeicons .stuff-list-icon-photo {
  width: 64px;
  height: 64px;
  background: none;
  border: 1px solid rgba(0,0,0,0.1);
}
.finder-content-area.view-largeicons .stuff-list-icon-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.finder-content-area.view-largeicons .stuff-list-row .stuff-list-col-name {
  font-size: 11px;
  line-height: 1.2;
  word-break: break-word;
  max-width: 80px;
}

/* Photo window: gallery of personal + project photos */
.photo-window .win98-body {
  padding: 8px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--xp-content-bg);
}
.photo-window-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.photo-window-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 4px;
}
.photo-window-gallery .photo-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  cursor: default;
}
.photo-window-gallery .photo-gallery-item:hover {
  background: var(--xp-selection);
  color: #fff;
}
.photo-window-gallery .photo-gallery-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
  margin-bottom: 6px;
}
.photo-window-gallery .photo-gallery-item span {
  font-size: 11px;
  line-height: 1.2;
  word-break: break-word;
}

.blog-reader-window .win98-body {
  padding: 0;
  flex: 1;
  min-height: 0;
}

.blog-reader-window.win98-window {
  max-height: none;
}

.blog-reader-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Blog reader: two-pane layout like Projects (sidebar + content) */
.blog-reader-panes {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--xp-content-bg);
  border: 1px solid var(--xp-btn-border);
  border-top: none;
  margin: 0 8px;
}

.blog-reader-sidebar {
  width: 140px;
  min-width: 120px;
  flex-shrink: 0;
  background: var(--xp-pane-blue);
  border-right: 1px solid var(--xp-btn-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-reader-sidebar-title {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: bold;
  background: var(--xp-pane-blue-dark);
  border-bottom: 1px solid #b0c4dc;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
}

.blog-reader-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.blog-reader-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  font-size: 11px;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #000;
}

.blog-reader-list-item:hover {
  background: rgba(0, 84, 227, 0.35);
}

.blog-reader-list-item.selected {
  background: var(--xp-selection);
  color: #fff;
}

.blog-reader-list-item .blog-reader-list-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.blog-reader-panes .doc-page {
  margin: 0;
  border: none;
  border-radius: 0;
}

.blog-reader-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 24px 32px 32px;
  -webkit-overflow-scrolling: touch;
}

.blog-reader-title-block {
  margin-bottom: 4px;
}

.blog-reader-name {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 26px;
  font-weight: bold;
  color: #000;
  margin: 0;
  line-height: 1.3;
}

.blog-reader-meta {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 18px;
  color: #606060;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

/* Override .doc-page .intro-content (11px) - blog article needs higher specificity */
.blog-reader-content .blog-reader-article {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #000;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
}

.blog-reader-content .blog-reader-article p {
  margin: 0 0 32px 0;
}

.blog-reader-content .blog-reader-article h2 {
  font-size: 20px !important;
  font-weight: bold;
  color: #000;
  margin: 20px 0 10px 0;
}

.blog-reader-content .blog-reader-article h2:first-of-type {
  margin-top: 0;
}

.blog-reader-content .blog-reader-article em {
  font-style: italic;
}

.blog-reader-content .blog-reader-article strong {
  font-weight: bold;
}

.blog-reader-content .blog-reader-article a {
  color: #0000ff;
  text-decoration: underline;
}

.blog-reader-content .blog-reader-article a:hover {
  color: #ff0000;
}

/* ========== Project reader window (screenshot, Website + green dot, sections) ========== */
.project-reader-window .win98-body {
  padding: 0;
  flex: 1;
  min-height: 0;
}

.project-reader-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.project-reader-panes {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--xp-content-bg);
  border: 1px solid var(--xp-btn-border);
  border-top: none;
  margin: 0 8px;
}

.project-reader-sidebar {
  width: 140px;
  min-width: 120px;
  flex-shrink: 0;
  background: var(--xp-pane-blue);
  border-right: 1px solid var(--xp-btn-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-reader-sidebar-title {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: bold;
  background: var(--xp-pane-blue-dark);
  border-bottom: 1px solid #b0c4dc;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
}

.project-reader-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.project-reader-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  font-size: 11px;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #000;
}

.project-reader-list-item:hover {
  background: rgba(0, 84, 227, 0.35);
}

.project-reader-list-item.selected {
  background: var(--xp-selection);
  color: #fff;
}

.project-reader-list-item .project-reader-list-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.project-reader-panes .doc-page {
  margin: 0;
  border: none;
  border-radius: 0;
}

.project-reader-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 24px 32px 32px;
  -webkit-overflow-scrolling: touch;
}

/* Screenshot: browser-style frame with subtle shadow and label */
.project-reader-screenshot-wrap {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 24px;
  background: #e8e8e8;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
}

.project-reader-screenshot-frame {
  background: #fff;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  border: 1px solid #d0d0d0;
  border-bottom: none;
}

.project-reader-screenshot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
  border-bottom: 1px solid #d0d0d0;
  font-size: 11px;
  color: #606060;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
}

.project-reader-screenshot-dots {
  display: flex;
  gap: 4px;
}

.project-reader-screenshot-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.project-reader-screenshot-dots span:nth-child(1) { background: #ff5f57; }
.project-reader-screenshot-dots span:nth-child(2) { background: #febc2e; }
.project-reader-screenshot-dots span:nth-child(3) { background: #28c840; }

.project-reader-screenshot-url {
  flex: 1;
  margin: 0 12px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 10px;
  color: #888;
}

.project-reader-screenshot {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.project-reader-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin-bottom: 20px;
}

.project-reader-website-btn {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 13px;
  padding: 8px 18px;
  background: linear-gradient(180deg, #1e3a5f 0%, #152a47 100%);
  color: #fff;
  text-decoration: none;
  border: 1px solid #0f172a;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: background 0.15s, box-shadow 0.15s;
}

.project-reader-website-btn:hover {
  background: linear-gradient(180deg, #2d4a6f 0%, #1e3a5f 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.project-reader-website-btn::after {
  content: "\2192";
  font-size: 12px;
  opacity: 0.9;
}

.project-reader-related-btn {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 12px;
  padding: 4px 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #1e3a5f;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.project-reader-related-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  border-color: #64748b;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.project-reader-related-btn .project-reader-related-btn-icon {
  width: 12px;
  height: 12px;
  background: url("assets/notepad.png") center/contain no-repeat;
  opacity: 0.85;
}

.project-live-dot-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.project-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  display: inline-block;
}

.project-live-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
  padding: 10px 14px;
  min-width: 280px;
  max-width: 380px;
  font-size: 12px;
  line-height: 1.45;
  background: #ffffe1;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 10;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
}

.project-live-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.project-reader-title-block {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 6px;
  padding-bottom: 0;
}

.project-reader-tagline {
  font-family: "Cascadia Code", "Fira Code", "SF Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
  margin: 0 0 16px 0;
  padding: 0;
}

.project-reader-dates {
  font-family: "Cascadia Code", "Fira Code", "SF Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  color: #9ca3af;
  margin: 0 0 12px 0;
  padding: 0;
}

.project-reader-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-reader-name {
  font-family: "Cascadia Code", "Fira Code", "SF Mono", Consolas, monospace;
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Project sections: card-style blocks with clear hierarchy */
.project-reader-sections {
  font-family: "Cascadia Code", "Fira Code", "SF Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #374151;
  max-width: 100%;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.project-reader-sections h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: #111;
}

.project-reader-sections h1:first-of-type {
  margin-top: 0;
}

/* Section blocks: each h2 + content in a subtle card */
.project-reader-sections h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 24px 0 12px 0;
  padding: 10px 14px;
  color: #0f172a;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #0ea5e9;
  border-radius: 0 6px 6px 0;
  letter-spacing: 0.01em;
}

.project-reader-sections h2:first-of-type {
  margin-top: 0;
}

.project-reader-sections h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 8px 0;
  color: #1e293b;
}

.project-reader-sections p {
  margin: 0 0 14px 0;
  color: #374151;
}

.project-reader-sections p:last-child {
  margin-bottom: 0;
}

.project-reader-sections ul {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.project-reader-sections li {
  margin-bottom: 4px;
}

.project-reader-sections a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}

.project-reader-sections a:hover {
  text-decoration: underline;
  color: #0284c7;
}

.project-reader-sections strong {
  font-weight: 700;
  color: #1f2937;
}

.project-reader-sections em {
  font-style: italic;
}

.project-reader-sections code {
  font-size: 12px;
  padding: 2px 6px;
  background: #f1f5f9;
  border-radius: 4px;
  color: #1e293b;
}

.project-reader-photo-row {
  display: flex;
  gap: 16px;
  margin: 16px 0 24px 0;
  width: 100%;
  max-width: 100%;
}

.project-reader-photo-col {
  flex: 1;
  min-width: 0;
}

.project-reader-photo-row .project-reader-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-reader-sarah-images .project-reader-photo-row {
  margin-bottom: 24px;
}

.project-reader-sarah-images .project-reader-screenshot-wrap {
  margin-bottom: 24px;
  width: 100%;
}

.project-reader-sarah-images .project-reader-screenshot-standalone {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-reader-sarah-images .project-reader-logo-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.project-reader-sarah-images .project-reader-sarah-logo {
  max-width: 120px;
  height: auto;
  display: block;
}

/* Welcome page sections */
.welcome-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}

.welcome-section {
  border: 1px solid var(--xp-btn-border);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.welcome-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--xp-toolbar-blue);
  border-bottom: 1px solid var(--xp-btn-border);
  font-size: 11px;
}

.welcome-section-title {
  font-weight: bold;
  color: #000;
}

.welcome-section-open {
  padding: 2px 10px;
  font-size: 11px;
  font-family: inherit;
  border: 1px solid var(--xp-btn-border);
  border-radius: 3px;
  background: var(--xp-btn);
  color: #000;
  cursor: pointer;
  white-space: nowrap;
}

.welcome-section-open:hover {
  background: var(--xp-btn-hover);
}

.welcome-section-open:active {
  background: var(--xp-btn-active);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

.welcome-section-open:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -1px;
}

.welcome-section-body {
  padding: 12px 14px;
  min-height: 24px;
}

.welcome-section-body.intro-content {
  font-size: 11px;
  line-height: 1.5;
  color: #000;
}

.welcome-intro-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
  padding: 0 2px;
}

.welcome-notes-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.welcome-intro {
  flex: 1;
  min-width: 0;
}

.welcome-intro + .welcome-section {
  margin-top: 4px;
}

/* ----- Directory-style section UIs ----- */

/* Intro: contact as chips */
.welcome-intro a {
  display: inline-block;
  padding: 3px 10px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  background: var(--xp-toolbar-blue);
  color: #000;
  text-decoration: none;
  font-size: 10px;
  border: 1px solid var(--xp-btn-border);
}
.welcome-intro a:hover {
  background: var(--xp-selection);
  color: #fff;
}

/* ----- About page: Markdown document layout (editable-doc feel) ----- */
.about-md-doc {
  max-width: 100%;
  padding: 16px 20px 24px;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #1f2937;
  background: #fefefe;
}
/* Force one font for entire about section so header and paragraphs match */
#welcome-sections,
#welcome-sections * {
  font-family: Tahoma, "MS Sans Serif", sans-serif !important;
}
/* Former co-founder paragraph (first text block) – same font as rest of page */
.about-hero-block,
.about-hero-block * {
  font-family: Tahoma, "MS Sans Serif", sans-serif !important;
}
.about-md-doc hr,
.about-md-doc .intro-hr {
  display: none;
}

.about-md-placeholder {
  color: #9ca3af;
  font-size: 13px;
  margin: 0;
}

.about-md-block {
  margin-bottom: 16px;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
}
.about-md-block p {
  font-family: inherit;
}
.about-md-editable {
  cursor: text;
  outline: none;
}
.about-md-editable:focus {
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
  border-radius: 4px;
}
.about-md-block h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #111;
}
.about-md-block h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 10px 0;
  color: #111;
}
.about-md-block p {
  margin: 0 0 12px 0;
}
.about-md-block p:last-child {
  margin-bottom: 0;
}
.about-md-block a {
  color: #2563eb;
  text-decoration: none;
}
.about-md-block a:hover {
  text-decoration: underline;
}

.about-ui {
  margin: 12px 0 20px 0;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
}
.about-buttons-wrap {
  margin-bottom: 20px;
}

/* About me: single block with photo left, name/buttons/location/bio right */
.about-me-block {
  margin-bottom: 24px;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  border: 1px solid var(--xp-btn-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.about-me-block-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}
.about-me-block-photo {
  flex-shrink: 0;
}
.about-me-block-photo .about-profile-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  display: block;
}
.about-me-block-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-me-block-body .about-name {
  margin: 0 0 2px 0;
}
.about-me-block-body .about-buttons {
  margin: 0;
}
.about-me-location {
  font-size: 12px;
  color: #555;
  margin: 0;
}
.about-me-location:empty {
  display: none;
}
.about-me-bio {
  font-size: 12px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}
.about-me-bio p {
  margin: 0 0 8px 0;
}
.about-me-bio p:last-child {
  margin-bottom: 0;
}
.about-me-bio h1, .about-me-bio h2, .about-me-bio h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 4px 0;
}
.about-me-bio h1:first-child, .about-me-bio h2:first-child, .about-me-bio h3:first-child {
  margin-top: 0;
}
.about-name {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #000;
  letter-spacing: -0.02em;
}
.about-tagline {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin: 0 0 14px 0;
}
.about-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.about-btn-primary {
  background: #f97316;
  color: #fff;
  border: 1px solid #ea580c;
}
.about-btn-primary:hover {
  background: #ea580c;
}
.about-btn-secondary {
  background: #fff;
  color: #000;
  border: 1px solid #d1d5db;
}
.about-btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.about-section {
  margin-bottom: 28px;
}
.about-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #000;
}

/* What I have worked on: two-pane micro UI */
.about-worked-on-panes {
  display: flex;
  gap: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
}
.about-worked-on-list {
  width: 180px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e5e7eb;
}
.about-worked-on-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.1s;
}
.about-worked-on-item:last-child {
  border-bottom: none;
}
.about-worked-on-item:hover {
  background: #f9fafb;
}
.about-worked-on-item.active {
  background: #f3f4f6;
}
.about-worked-on-item-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}
.about-worked-on-item-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.about-worked-on-item-name {
  font-weight: 600;
  color: #111;
}
.about-worked-on-detail {
  flex: 1;
  padding: 16px 20px;
  min-height: 100px;
}
.about-worked-on-placeholder {
  color: #9ca3af;
  font-size: 13px;
  margin: 0;
}
.about-worked-on-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.about-worked-on-title-row h4 {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.about-worked-on-detail-content h4 {
  font-size: 15px;
  font-weight: 700;
}
.about-worked-on-detail-content .about-worked-on-title-row .about-worked-on-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.about-win-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 4px;
  border: 1px solid var(--xp-btn-border);
  border-radius: 3px;
  background: var(--xp-btn);
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  color: #000;
  text-decoration: none;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}
.about-win-btn:hover {
  background: var(--xp-btn-hover);
}
.about-win-btn:active {
  background: var(--xp-btn-active);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.about-win-btn-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.about-worked-on-detail-content p {
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 8px 0;
}
.about-worked-on-detail-content a:not(.about-win-btn) {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}
.about-worked-on-detail-content a:not(.about-win-btn):hover {
  text-decoration: underline;
}

/* My interests: table layout */
.about-interests-wrap {
  margin: 12px 0 20px 0;
}
.about-interests-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.about-interests-main-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #111;
}
.about-interests-title-row .about-win-btn {
  margin: 0;
}
.about-interests-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
}
.about-interests-col {
  padding: 16px 20px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
}
.about-interests-col:last-child {
  border-right: none;
}
.about-interests-col-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #111;
}
.about-interests-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}
.about-interests-list li {
  padding: 4px 0;
}

/* 2026 Goals */
.about-goals-wrap {
  margin: 12px 0 20px 0;
}
.about-goals-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px 0;
}
.about-goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-goal-item {
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}
.about-goal-item:last-child {
  border-bottom: none;
}
.about-goal-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
}
.about-goal-checkbox {
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  width: 16px;
  height: 16px;
}
.about-goal-text {
  flex: 1;
}
.about-goal-item.checked .about-goal-text {
  text-decoration: line-through;
  color: #6b7280;
}
.about-goals-sublist {
  list-style: disc;
  margin: 6px 0 0 28px;
  padding: 0;
  font-size: 13px;
  color: #4b5563;
}
.about-goal-subitem {
  padding: 2px 0;
}

/* Things I have written about */
.about-blogs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-blog-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.about-blog-item:last-child {
  border-bottom: none;
}
.about-blog-item:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

@media (max-width: 500px) {
  .about-me-block-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-me-block-body .about-buttons {
    justify-content: center;
  }
  .about-interests-table {
    grid-template-columns: 1fr;
  }
  .about-interests-col {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .about-interests-col:last-child {
    border-bottom: none;
  }
  .about-worked-on-panes {
    flex-direction: column;
  }
  .about-worked-on-list {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .about-worked-on-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .about-worked-on-detail-content .about-worked-on-title-row .about-worked-on-actions {
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }
  .about-worked-on-detail-content .about-worked-on-title-row .about-worked-on-actions .about-win-btn {
    width: 100%;
    justify-content: center;
  }
  .about-win-btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Project reader: Website button row on mobile */
@media (max-width: 500px) {
  .project-reader-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .project-reader-website-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
  }
}

/* About Me: merged photo (left) + text (right) - legacy, kept for compatibility */
.welcome-section-about-merged {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
}
.welcome-section-about-merged img {
  flex-shrink: 0;
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--xp-btn-border);
}
.welcome-section-about-merged > *:not(img) {
  flex: 1;
  min-width: 0;
}
.welcome-section-about-merged p {
  margin: 0 0 8px 0;
}
.welcome-section-about-merged p:last-child {
  margin-bottom: 0;
}

/* My interests button with paint icon */
.welcome-section-open-paint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.welcome-section-btn-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Projects: file-list rows (icon + name + description & dates) */
.welcome-project-files {
  border: 1px solid var(--xp-btn-border);
  border-radius: 4px;
  background: #fff;
  margin-bottom: 8px;
  overflow: hidden;
}

.welcome-project-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #e8e8e6;
  font-size: 11px;
}
.welcome-project-file:last-child {
  border-bottom: none;
}

.welcome-project-file-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #f0f0ee;
  border-radius: 2px;
  border: 1px solid var(--xp-btn-border);
}

.welcome-project-file-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.welcome-project-file-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.welcome-project-file-name {
  font-weight: bold;
  color: #0054e3;
  text-decoration: none;
}
.welcome-project-file-name:hover {
  text-decoration: underline;
}
.welcome-project-file span.welcome-project-file-name {
  color: #000;
  font-weight: bold;
}

.welcome-project-file-meta {
  font-size: 10px;
  color: #606060;
  line-height: 1.3;
}

.welcome-section-projects .welcome-section-body .intro-content {
  margin-top: 0;
}
.welcome-section-projects .welcome-section-body p {
  margin: 0;
  font-size: 10px;
  color: #505050;
}

/* Stuff: muted, folder-teaser */
.welcome-section-stuff .welcome-section-body {
  background: #f8f8f6;
  border-radius: 4px;
  padding: 10px 14px;
}
.welcome-section-stuff .welcome-section-body p {
  margin: 0;
  font-size: 11px;
  color: #606060;
}

/* Trash: quote only, muted */
.welcome-section-trash .welcome-section-body {
  background: #ecece8;
  border-radius: 4px;
  padding: 12px 14px;
  border: 1px dashed #c0c0c0;
}
.welcome-section-trash .welcome-section-body p {
  margin: 0 0 4px 0;
  font-size: 11px;
  font-style: italic;
  color: #606060;
}
.welcome-section-trash .welcome-section-body p:last-child {
  font-style: normal;
  font-size: 10px;
  color: #808080;
}

/* Intro content (rendered from markdown, inside white doc page) */
.doc-page .intro-content {
  font-size: 11px;
  line-height: 1.5;
  color: #000;
}

.doc-page .intro-content h1 {
  font-size: 14px;
  margin: 0 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #c0c0c0;
}

.doc-page .intro-content h2 {
  font-size: 12px;
  margin: 12px 0 6px 0;
}

.doc-page .intro-content h3 {
  font-size: 11px;
  margin: 10px 0 4px 0;
  font-weight: bold;
}

.doc-page .intro-content .intro-hr {
  border: none;
  border-top: 1px solid var(--xp-btn-border);
  margin: 12px 0;
}

.doc-page .intro-content p {
  margin: 0 0 8px 0;
}

.doc-page .intro-content ul {
  margin: 0 0 8px 0;
  padding-left: 20px;
}

.doc-page .intro-content a {
  color: #0000ff;
  text-decoration: underline;
}

.doc-page .intro-content a:hover {
  color: #ff0000;
}

.doc-page .intro-content strong {
  font-weight: bold;
}

/* Profile / intro images - Win98 frame */
.doc-page .intro-content img,
.doc-page .intro-content .intro-photo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px auto;
  border: 2px solid;
  border-color: var(--highlight) var(--border-dark) var(--border-dark) var(--highlight);
  box-shadow: 1px 1px 0 var(--shadow);
  background: #fff;
}

.doc-page .intro-content .intro-photo {
  max-width: 80px;
  max-height: 80px;
  object-fit: cover;
}

.doc-page .intro-content .intro-photo-wrap {
  text-align: center;
  margin-bottom: 12px;
}

/* ========== Screensaver (Log off / Turn off) ========== */
.screensaver-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.screensaver-overlay.active {
  display: flex;
}

.screensaver-logo {
  position: absolute;
  max-width: min(320px, 50vw);
  height: auto;
  pointer-events: none;
  /* position set by JS for bouncing */
}

/* Paint + Me-Sweeper styles loaded lazily via styles-paint-landmine.css when windows open */

/* ========== Clippy assistant popup ========== */
.clippy-popup {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: none;
  align-items: flex-end;
  gap: 0;
  z-index: 99999;
  pointer-events: auto;
}

.clippy-popup.visible {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.clippy-character {
  flex-shrink: 0;
  line-height: 0;
  margin-top: 10px;
}

.clippy-character img.clippy-gif {
  display: block;
  width: 120px;
  height: auto;
}

.clippy-bubble {
  position: relative;
  max-width: 280px;
  margin-bottom: 0;
  padding: 12px 14px;
  background: #fffbcc;
  border: 1px solid #000;
  border-radius: 8px;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.15);
}

.clippy-bubble::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -12px;
  left: auto;
  border: 12px solid transparent;
  border-top-color: #fffbcc;
  border-bottom: none;
  margin-left: 0;
  margin-right: -12px;
  filter: drop-shadow(0 1px 0 #000);
}

.clippy-bubble-text {
  margin: 0 0 10px 0;
  font-size: 12px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  line-height: 1.35;
  color: #000;
}

.clippy-bubble-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clippy-bubble-options li {
  margin: 4px 0;
  padding-left: 0;
}

.clippy-option {
  display: block;
  width: 100%;
  padding: 2px 0 2px 18px;
  border: none;
  background: transparent;
  font-size: 11px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #0000a0;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.clippy-option::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #0000a0;
  font-size: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.clippy-option:hover {
  text-decoration: underline;
}

.clippy-option.clippy-dismiss {
  color: #333;
  font-weight: bold;
}

.clippy-option.clippy-dismiss::before {
  content: none;
}

/* ========== Retro Win98-style message box (replaces alert/prompt) ========== */
.retro-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

.retro-modal-overlay.visible {
  display: flex;
}

.retro-modal-win {
  min-width: 280px;
  max-width: 400px;
  background: var(--xp-window-bg);
  border: 1px solid #003c74;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.7),
    2px 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.retro-modal-titlebar {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 4px 0 6px;
  background: var(--xp-titlebar);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}

.retro-modal-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M16 4c-6.6 0-12 5.4-12 12s5.4 12 12 12 12-5.4 12-12S22.6 4 16 4zm0 2c5.5 0 10 4.5 10 10s-4.5 10-10 10S6 21.5 6 16 10.5 6 16 6zm-1 4v6h2v-6h-2zm0 8v2h2v-2h-2z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.retro-modal-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.retro-modal-close {
  width: 21px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.retro-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.retro-modal-body {
  padding: 14px 16px 16px;
  background: var(--xp-window-bg);
  border: 1px solid var(--xp-btn-border);
  border-top: none;
}

.retro-modal-message {
  margin: 0 0 14px 0;
  font-size: 11px;
  line-height: 1.4;
  color: #000;
}

.retro-modal-prompt-wrap {
  margin-bottom: 14px;
}

.retro-modal-prompt-wrap label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: #000;
}

.retro-modal-input {
  width: 100%;
  padding: 4px 6px;
  font-size: 11px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  border: 1px solid #595959;
  background: #fff;
  box-sizing: border-box;
}

.retro-modal-input:focus {
  outline: 1px dotted #000;
  outline-offset: 0;
}

.retro-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.retro-modal-btn {
  min-width: 75px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: bold;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  border: 1px solid var(--xp-btn-border);
  border-radius: 3px;
  background: var(--xp-btn);
  color: #000;
  cursor: pointer;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.retro-modal-btn:hover {
  background: var(--xp-btn-hover);
}

.retro-modal-btn:active {
  background: var(--xp-btn-active);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.retro-modal-ok {
  border-color: #003c74;
  background: linear-gradient(180deg, #fff 0%, #e8f2fc 50%, #d0e4f8 100%);
}

.retro-modal-ok:hover {
  background: linear-gradient(180deg, #fff 0%, #e0eef8 100%);
}

/* Me-Sweeper send-score modal */
.score-modal-win {
  min-width: 320px;
  max-width: 420px;
}

.score-modal-form {
  margin-bottom: 14px;
}

.score-modal-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: #000;
}

.score-modal-form label:not(:first-child) {
  margin-top: 10px;
}

.score-modal-email {
  margin-bottom: 0;
}

.score-modal-note {
  width: 100%;
  padding: 4px 6px;
  font-size: 11px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  border: 1px solid #595959;
  background: #fff;
  box-sizing: border-box;
  resize: vertical;
  min-height: 48px;
}

.score-modal-note:focus {
  outline: 1px dotted #000;
  outline-offset: 0;
}

.score-modal-email-direct {
  margin: 12px 0 0 0;
  font-size: 11px;
  color: #000;
}

.score-modal-email-link {
  color: #0000ff;
  text-decoration: underline;
  cursor: pointer;
}

.score-modal-email-link:hover {
  color: #00f;
}

/* ========== Mobile / touch responsiveness ========== */
@media (max-width: 768px), (pointer: coarse) {
  .taskbar {
    height: 44px;
    min-height: 44px;
    padding: 0;
  }
  .start-button {
    min-height: 44px;
    padding: 0 14px 0 10px;
  }
  .desktop-icon {
    min-height: 48px;
    padding: 6px;
  }
  /* Ensure start menu and taskbar icons render correctly on mobile */
  .start-menu-icon img {
    min-width: 24px;
    min-height: 24px;
  }
  .taskbar-task-btn .taskbar-task-icon {
    min-width: 16px;
    min-height: 16px;
  }
}

/* Sidebar toggle buttons: hidden on desktop */
.blog-reader-sidebar-toggle,
.project-reader-sidebar-toggle {
  display: none;
}
.blog-reader-sidebar-overlay,
.project-reader-sidebar-overlay {
  display: none;
}

/* Explorer: narrow sidebar on small screens (no drawer) */
@media (max-width: 640px) {
  .explorer-sidebar {
    width: 88px;
    min-width: 88px;
  }
  .explorer-sidebar-title {
    padding: 4px 6px;
    font-size: 10px;
  }
  .explorer-tree-item {
    padding: 2px 6px;
  }
  .explorer-tree-label {
    font-size: 10px;
  }
  .explorer-main {
    min-width: 0;
  }
}

/* Blog reader & Project reader: drawer on mobile so content gets full width */
@media (max-width: 768px) {
  .blog-reader-sidebar-toggle,
  .project-reader-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 5;
    padding: 6px 12px;
    font-size: 12px;
    font-family: Tahoma, "MS Sans Serif", sans-serif;
    background: var(--xp-btn);
    border: 1px solid var(--xp-btn-border);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 1px 1px 0 rgba(255,255,255,0.5);
  }
  .blog-reader-sidebar-toggle:hover,
  .project-reader-sidebar-toggle:hover {
    background: var(--xp-btn-hover);
  }
  .blog-reader-panes,
  .project-reader-panes {
    position: relative;
  }
  .blog-reader-sidebar,
  .project-reader-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    max-width: 85vw;
    min-width: 0;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.2s ease-out;
    box-shadow: 4px 0 12px rgba(0,0,0,0.15);
  }
  .blog-reader-panes.sidebar-open .blog-reader-sidebar,
  .project-reader-panes.sidebar-open .project-reader-sidebar {
    transform: translateX(0);
  }
  .blog-reader-sidebar-toggle {
    position: absolute;
  }
  .project-reader-sidebar-toggle {
    position: absolute;
  }
  .blog-reader-panes.sidebar-open .blog-reader-sidebar-toggle,
  .project-reader-panes.sidebar-open .project-reader-sidebar-toggle {
    display: none;
  }
  .blog-reader-sidebar-overlay,
  .project-reader-sidebar-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99;
  }
  .blog-reader-panes.sidebar-open .blog-reader-sidebar-overlay,
  .project-reader-panes.sidebar-open .project-reader-sidebar-overlay {
    display: block;
  }
  .blog-reader-content,
  .project-reader-content {
    min-width: 0;
    width: 100%;
    padding-top: 44px;
  }
}

@media (max-width: 640px) {
  .explorer-sidebar-title {
    padding: 4px 6px;
    font-size: 10px;
  }
  .blog-reader-content,
  .project-reader-content {
    padding-top: 44px;
  }
}

@media (max-width: 480px) {
  .explorer-sidebar {
    width: 72px;
    min-width: 72px;
  }
  .explorer-sidebar-title,
  .blog-reader-sidebar-title,
  .project-reader-sidebar-title {
    padding: 2px 4px;
    font-size: 9px;
  }
  .explorer-tree-line {
    width: 6px;
  }
  .blog-reader-content,
  .project-reader-content {
    padding: 16px 12px 24px;
    padding-top: 44px;
  }
}
