/* mac-styles.css — Shared Mac OS 8 styles for clararehmann.github.io
   Layout/design file: edit this to change the site's visual design.
   Image assets are in: ../../../clararehmann.github.io/assets/img/
   For deployment, copy assets/ to the same level as these HTML files. */

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

/* EspySans — Regular for body, Bold for headers */
@font-face {
  font-family: "EspySans";
  src: url("EspySansRevivedTen-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "EspySans";
  src: url("EspySansRevivedTen-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --mac-gray: #C0C0C0;
  --mac-light: #FFFFFF;
  --mac-dark: #808080;
  --mac-darker: #404040;
  --mac-black: #000000;
  --mac-desktop: #007B77;
  --mac-select: #000080;
  --mac-select-text: #FFFFFF;
  --mac-menubar: #C0C0C0;
  --bevel-light: #FFFFFF;
  --bevel-dark: #808080;
  --bevel-darker: #404040;
  --titlebar-stripe: linear-gradient(90deg,
    #C0C0C0 0px, #C0C0C0 2px,
    #000 2px, #000 3px,
    #FFF 3px, #FFF 4px,
    #000 4px, #000 5px,
    #C0C0C0 5px, #C0C0C0 7px,
    #000 7px, #000 8px,
    #FFF 8px, #FFF 9px,
    #000 9px, #000 10px,
    #C0C0C0 10px, #C0C0C0 12px,
    #000 12px, #000 13px,
    #FFF 13px, #FFF 14px,
    #000 14px, #000 15px,
    #C0C0C0 15px
  );
}

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

html { overflow: hidden; }

body {
  font-family: "EspySans", "VT323", "Courier New", monospace;
  font-weight: 400;
  font-size: 12px;
  background: var(--mac-desktop) url("assets/img/wallpaper.jpg") repeat;
  color: var(--mac-black);
  width: 50vw;
  height: 50vh;
  overflow: hidden;
  cursor: default;
  user-select: none;
  transform: scale(2);
  transform-origin: top left;
}

/* ===== MENU BAR ===== */
#menubar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 20px;
  background: var(--mac-menubar);
  border-bottom: 1px solid var(--mac-black);
  display: flex;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}

.menu-item {
  padding: 2px 8px;
  font-size: 12px;
  font-family: "EspySans", "VT323", "Courier New", monospace;
  cursor: default;
  white-space: nowrap;
  height: 20px;
  display: flex;
  align-items: center;
}
.menu-item:hover { background: var(--mac-select); color: var(--mac-select-text); }
.menu-apple { font-size: 14px; padding: 2px 8px; }
.menu-clock { margin-left: auto; padding: 2px 8px; font-size: 11px; }

/* ===== DESKTOP ===== */
#desktop {
  position: fixed;
  top: 20px; left: 0; right: 0; bottom: 0;
  background: var(--mac-desktop) url("assets/img/wallpaper.jpg") repeat;
  overflow: hidden;
}

#desktop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}

/* ===== DESKTOP ICONS ===== */
.desktop-icon {
  position: absolute;
  width: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 2px;
}
.desktop-icon:hover .icon-label,
.desktop-icon.selected .icon-label {
  background: var(--mac-select);
  color: var(--mac-select-text);
  outline: 1px dotted var(--mac-select-text);
}
.desktop-icon:hover .icon-img { opacity: 0.7; }

.icon-img {
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.icon-img img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  display: block;
}
.icon-label {
  font-size: 8px;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  padding: 1px 3px;
  word-break: break-word;
  max-width: 72px;
}

/* ===== WINDOW CHROME ===== */
.window {
  position: absolute;
  background: var(--mac-gray);
  border: 1px solid var(--mac-black);
  box-shadow: 2px 2px 0 var(--mac-black);
  min-width: 200px;
  font-family: "EspySans", "VT323", "Courier New", monospace;
  z-index: 5;
}

.window-titlebar {
  height: 20px;
  background: var(--titlebar-stripe);
  border-bottom: 1px solid var(--mac-black);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  cursor: move;
  position: relative;
}
.window-titlebar.inactive { background: var(--mac-gray); }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mac-gray);
  padding: 0 6px;
  font-size: 12px;
  font-weight: bold;
  font-family: "EspySans", "VT323", "Courier New", monospace;
  white-space: nowrap;
  pointer-events: none;
}

.titlebar-btn {
  width: 13px;
  height: 13px;
  border: 1px solid var(--mac-black);
  background: var(--mac-gray);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border-top-color: var(--bevel-light);
  border-left-color: var(--bevel-light);
  border-bottom-color: var(--bevel-dark);
  border-right-color: var(--bevel-dark);
}
.titlebar-btn:active {
  border-top-color: var(--bevel-dark);
  border-left-color: var(--bevel-dark);
  border-bottom-color: var(--bevel-light);
  border-right-color: var(--bevel-light);
}

/* ===== TOOLBAR ===== */
.window-toolbar {
  height: 28px;
  background: var(--mac-gray);
  border-bottom: 1px solid var(--mac-black);
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 4px;
}
.toolbar-btn {
  background: var(--mac-gray);
  border: 1px solid var(--mac-black);
  border-top-color: var(--bevel-light);
  border-left-color: var(--bevel-light);
  border-bottom-color: var(--bevel-dark);
  border-right-color: var(--bevel-dark);
  padding: 2px 10px;
  font-family: "EspySans", "VT323", "Courier New", monospace;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.toolbar-btn:active {
  border-top-color: var(--bevel-dark);
  border-left-color: var(--bevel-dark);
  border-bottom-color: var(--bevel-light);
  border-right-color: var(--bevel-light);
}
.toolbar-separator {
  width: 1px;
  height: 18px;
  background: var(--bevel-dark);
  box-shadow: 1px 0 0 var(--bevel-light);
  margin: 0 4px;
}
.toolbar-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.toolbar-search input {
  background: white;
  border: 1px solid var(--mac-black);
  border-top-color: var(--bevel-dark);
  border-left-color: var(--bevel-dark);
  border-bottom-color: var(--bevel-light);
  border-right-color: var(--bevel-light);
  padding: 2px 4px;
  font-family: "EspySans", "VT323", "Courier New", monospace;
  font-size: 11px;
  width: 120px;
  outline: none;
}

/* ===== WINDOW CONTENT ===== */
.window-content {
  display: flex;
  background: white;
  border-top: 1px solid var(--bevel-dark);
  border-left: 1px solid var(--bevel-dark);
  border-bottom: 1px solid var(--bevel-light);
  border-right: 1px solid var(--bevel-light);
  overflow: hidden;
}

.window-statusbar {
  height: 18px;
  background: var(--mac-gray);
  border-top: 1px solid var(--bevel-dark);
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 10px;
  gap: 8px;
}
.statusbar-divider {
  width: 1px;
  height: 12px;
  background: var(--bevel-dark);
  box-shadow: 1px 0 0 var(--bevel-light);
}
.resize-handle {
  position: absolute;
  bottom: 0; right: 0;
  width: 14px; height: 14px;
  cursor: se-resize;
  background: linear-gradient(135deg,
    transparent 30%, var(--bevel-dark) 30%, var(--bevel-dark) 40%,
    transparent 40%, transparent 50%,
    var(--bevel-dark) 50%, var(--bevel-dark) 60%,
    transparent 60%, transparent 70%,
    var(--bevel-dark) 70%, var(--bevel-dark) 80%,
    transparent 80%
  );
}

/* ===== SIDEBAR ===== */
.finder-sidebar {
  width: 120px;
  background: var(--mac-gray);
  border-right: 1px solid var(--bevel-dark);
  padding: 6px 0;
  flex-shrink: 0;
  overflow-y: auto;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-item:hover,
.sidebar-item.active {
  background: var(--mac-select);
  color: var(--mac-select-text);
}
.sidebar-item img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.sidebar-divider {
  height: 1px;
  background: var(--bevel-dark);
  box-shadow: 0 1px 0 var(--bevel-light);
  margin: 4px 0;
}

/* ===== FINDER MAIN ===== */
.finder-main {
  flex: 1;
  overflow-y: auto;
  background: white;
  padding: 12px;
}

/* ===== ABOUT / PROFILE (index.html) ===== */
.profile-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ccc;
}
.profile-photo-frame {
  width: 72px;
  height: 72px;
  border: 2px solid var(--mac-black);
  border-top-color: var(--bevel-dark);
  border-left-color: var(--bevel-dark);
  border-bottom-color: var(--bevel-light);
  border-right-color: var(--bevel-light);
  background: var(--mac-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.profile-info h1 { font-size: 16px; font-weight: bold; margin-bottom: 4px; font-family: "EspySans", "Chicago", "VT323", "Courier New", monospace; }
.profile-info p { font-size: 11px; line-height: 1.6; }
.about-text { font-size: 11px; line-height: 1.8; margin-bottom: 10px; }

.info-box {
  background: var(--mac-gray);
  border: 1px solid var(--mac-black);
  border-top-color: var(--bevel-dark);
  border-left-color: var(--bevel-dark);
  border-bottom-color: var(--bevel-light);
  border-right-color: var(--bevel-light);
  padding: 8px 10px;
  margin-top: 10px;
  font-size: 11px;
}
.info-box-title {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 11px;
  border-bottom: 1px solid var(--bevel-dark);
  padding-bottom: 3px;
}
.info-row { display: flex; gap: 8px; margin-top: 3px; line-height: 1.5; }
.info-label { font-weight: bold; min-width: 80px; flex-shrink: 0; }

/* ===== RESEARCH (icon grid + detail panel) ===== */
.icon-grid-panel {
  width: 160px;
  min-width: 160px;
  border-right: 1px solid var(--bevel-dark);
  padding: 8px;
  overflow-y: auto;
  background: #EEEEEE;
}
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}
.file-icon {
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  cursor: pointer;
  border: 1px solid transparent;
}
.file-icon:hover { background: rgba(0,0,128,0.1); border-color: rgba(0,0,128,0.3); }
.file-icon.selected { background: var(--mac-select); border-color: var(--mac-select); }
.file-icon.selected .file-icon-label { color: var(--mac-select-text); }
.file-icon-img { font-size: 32px; line-height: 1; }
.file-icon-img img { width: 36px; height: 36px; image-rendering: pixelated; display: block; }
.file-icon-label {
  font-size: 10px;
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  word-break: break-word;
  color: var(--mac-black);
  line-height: 1.2;
}

.detail-panel { flex: 1; overflow-y: auto; padding: 12px; background: white; }
.detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--bevel-dark);
  font-size: 11px;
  gap: 8px;
  text-align: center;
}
.detail-empty-icon { font-size: 36px; opacity: 0.3; }
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}
.detail-icon { font-size: 36px; flex-shrink: 0; }
.detail-title { font-size: 13px; font-weight: bold; margin-bottom: 4px; font-family: "EspySans","Chicago", "VT323", "Courier New", monospace; }
.detail-desc { font-size: 11px; line-height: 1.8; margin-bottom: 10px; }
.detail-tag {
  display: inline-block;
  background: var(--mac-gray);
  border: 1px solid var(--mac-black);
  padding: 1px 6px;
  font-size: 10px;
  margin: 2px;
}

/* ===== PUBLICATIONS (list view) ===== */
.list-header {
  display: flex;
  background: var(--mac-gray);
  border-bottom: 1px solid var(--mac-black);
  position: sticky;
  top: 0;
  z-index: 10;
}
.col-header {
  padding: 3px 6px;
  font-size: 11px;
  font-weight: bold;
  font-family: "EspySans", "VT323", "Courier New", monospace;
  border-right: 1px solid var(--bevel-dark);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.col-header:last-child { border-right: none; }
.col-header:hover { background: rgba(0,0,0,0.05); }
.col-header.sorted-asc::after { content: ' ▲'; font-size: 8px; }
.col-header.sorted-desc::after { content: ' ▼'; font-size: 8px; }
.pub-row {
  display: flex;
  border-bottom: 1px solid #ddd;
  align-items: stretch;
  cursor: pointer;
}
.pub-row:hover { background: rgba(0,0,128,0.05); }
.pub-row.selected { background: var(--mac-select); color: var(--mac-select-text); }
.pub-row.selected .pub-authors { color: var(--mac-select-text); }
.pub-cell {
  padding: 4px 6px;
  font-size: 11px;
  border-right: 1px solid #ddd;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  line-height: 1.4;
}
.pub-cell:last-child { border-right: none; }
.pub-cell.title-cell {
  white-space: normal;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.3;
}
.pub-authors { font-size: 10px; color: #555; }
.pub-type-badge {
  display: inline-block;
  padding: 1px 5px;
  font-size: 9px;
  border: 1px solid var(--mac-black);
  background: var(--mac-gray);
  white-space: nowrap;
}
.col-icon   { width: 28px; min-width: 28px; }
.col-title  { flex: 1; min-width: 160px; }
.col-year   { width: 46px; min-width: 46px; }
.col-journal{ width: 110px; min-width: 80px; }
.col-type   { width: 80px; min-width: 70px; }
.col-link   { width: 50px; min-width: 50px; }

.detail-popup {
  display: none;
  position: absolute;
  background: var(--mac-gray);
  border: 1px solid var(--mac-black);
  box-shadow: 3px 3px 0 var(--mac-black);
  width: 320px;
  z-index: 500;
  font-family: "EspySans", "VT323", "Courier New", monospace;
}
.detail-popup.visible { display: block; }
.detail-popup-titlebar {
  height: 18px;
  background: var(--titlebar-stripe);
  border-bottom: 1px solid var(--mac-black);
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 4px;
  position: relative;
  cursor: move;
}
.detail-popup-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mac-gray);
  padding: 0 4px;
  font-size: 11px;
  pointer-events: none;
}
.detail-popup-content {
  padding: 10px;
  font-size: 11px;
  line-height: 1.7;
  max-height: 200px;
  overflow-y: auto;
}
.detail-popup-content h3 { font-size: 12px; margin-bottom: 6px; font-family: "EspySans","Chicago", "VT323", "Courier New", monospace; }
.detail-popup-content p { font-size: 11px; margin-bottom: 4px; }

/* ===== CV ===== */
.cv-section { margin-bottom: 14px; }
.cv-section-title {
  font-size: 12px;
  font-weight: bold;
  background: var(--mac-gray);
  padding: 3px 6px;
  border-top: 1px solid var(--bevel-light);
  border-left: 1px solid var(--bevel-light);
  border-bottom: 1px solid var(--bevel-dark);
  border-right: 1px solid var(--bevel-dark);
  margin-bottom: 8px;
}
.cv-entry { margin-bottom: 10px; padding-left: 8px; font-size: 11px; }
.cv-entry-title { font-weight: bold; margin-bottom: 1px; }
.cv-entry-meta { color: #555; font-size: 10px; margin-bottom: 3px; font-style: italic; }
.cv-entry-desc { line-height: 1.6; }

/* ===== GALLERY (aeg / art pages) ===== */
.gallery-section { margin-bottom: 16px; }
.gallery-section-title {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--bevel-dark);
}
.gallery-img {
  max-width: 100%;
  max-height: calc(50vh - 155px);
  object-fit: contain;
  border: 1px solid var(--mac-black);
  border-top-color: var(--bevel-dark);
  border-left-color: var(--bevel-dark);
  border-bottom-color: var(--bevel-light);
  border-right-color: var(--bevel-light);
  display: block;
  margin-bottom: 8px;
}
.gallery-row { display: flex; gap: 8px; margin-bottom: 8px; }
.gallery-row .gallery-img { flex: 1; min-width: 0; width: 0; margin-bottom: 0; }

/* ===== GALLERY VIEWER (carousel mode) ===== */
.gallery-viewer {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.gallery-slide-title {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 6px;
  text-align: center;
  color: #333;
}
.gallery-viewer .gallery-img {
  max-height: calc(50vh - 165px);
  margin: 0 auto 0;
}
.gallery-viewer .gallery-row {
  justify-content: center;
  margin-bottom: 0;
}

/* ===== FUN HUB PAGE ===== */
.fun-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
}
.fun-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
}
.fun-icon:hover .fun-icon-label {
  background: var(--mac-select);
  color: var(--mac-select-text);
  outline: 1px dotted var(--mac-select-text);
}
.fun-icon-img { font-size: 36px; line-height: 1; }
.fun-icon-img img { width: 40px; height: 40px; image-rendering: pixelated; display: block; }
.fun-icon-label { font-size: 11px; text-align: center; padding: 2px 6px; word-break: break-word; }

/* ===== ABOUT DIALOG ===== */
.dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 2000;
  pointer-events: none;
}
.dialog-overlay.visible { display: block; pointer-events: all; }
.dialog {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--mac-gray);
  border: 1px solid var(--mac-black);
  box-shadow: 2px 2px 0 var(--mac-black);
  width: 300px;
  font-family: "EspySans", "VT323", "Courier New", monospace;
}
.dialog-content { padding: 16px; font-size: 11px; }
.dialog-logo { text-align: center; font-size: 40px; margin-bottom: 6px; }
.dialog-name { text-align: center; font-size: 16px; font-weight: bold; margin-bottom: 4px; font-family: "EspySans","Chicago", "VT323", "Courier New", monospace; }
.dialog-version { text-align: center; font-size: 11px; margin-bottom: 10px; }
.dialog-bar { height: 2px; background: var(--mac-black); margin-bottom: 10px; }
.dialog-info {
  background: white;
  border: 1px solid var(--bevel-dark);
  padding: 8px;
  margin-bottom: 10px;
  font-size: 10px;
  line-height: 1.6;
}
.dialog-btn {
  display: block;
  margin: 0 auto;
  background: var(--mac-gray);
  border: 1px solid var(--mac-black);
  border-top-color: var(--bevel-light);
  border-left-color: var(--bevel-light);
  border-bottom-color: var(--bevel-dark);
  border-right-color: var(--bevel-dark);
  padding: 4px 20px;
  font-family: "EspySans", "VT323", "Courier New", monospace;
  font-size: 12px;
  cursor: pointer;
}
.dialog-btn:active {
  border-top-color: var(--bevel-dark);
  border-left-color: var(--bevel-dark);
  border-bottom-color: var(--bevel-light);
  border-right-color: var(--bevel-light);
}

/* ===== DROPDOWN MENUS ===== */
.dropdown {
  position: absolute;
  top: 20px;
  background: var(--mac-menubar);
  border: 1px solid var(--mac-black);
  border-top: none;
  box-shadow: 2px 2px 0 var(--mac-black);
  z-index: 999;
  min-width: 160px;
  display: none;
}
.dropdown.visible { display: block; }
.dropdown-item {
  padding: 3px 24px 3px 16px;
  font-size: 12px;
  cursor: default;
  white-space: nowrap;
  font-family: "EspySans", "VT323", "Courier New", monospace;
}
.dropdown-item:hover { background: var(--mac-select); color: var(--mac-select-text); }
.dropdown-item.disabled { color: var(--mac-dark); pointer-events: none; }
.dropdown-separator { height: 1px; background: var(--mac-black); margin: 2px 0; }
.menu-parent { position: relative; }
.menu-parent.open > .menu-item { background: var(--mac-select); color: var(--mac-select-text); }

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar { width: 15px; height: 15px; }
::-webkit-scrollbar-track { background: var(--mac-gray); border-left: 1px solid var(--bevel-dark); }
::-webkit-scrollbar-thumb {
  background: var(--mac-gray);
  border: 1px solid var(--mac-black);
  border-top-color: var(--bevel-light);
  border-left-color: var(--bevel-light);
  border-bottom-color: var(--bevel-dark);
  border-right-color: var(--bevel-dark);
}
::-webkit-scrollbar-button {
  background: var(--mac-gray);
  border: 1px solid var(--mac-black);
  border-top-color: var(--bevel-light);
  border-left-color: var(--bevel-light);
  border-bottom-color: var(--bevel-dark);
  border-right-color: var(--bevel-dark);
  height: 15px;
  width: 15px;
}

/* ===== LINKS ===== */
a { color: var(--mac-select); text-decoration: underline; }
a:hover { color: #0000CC; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
  html { overflow: auto; }

  body {
    width: 100vw;
    height: auto;
    min-height: 100vh;
    transform: none;
    transform-origin: unset;
    overflow: auto;
  }

  #desktop {
    position: relative;
    top: 0;
    height: auto;
    min-height: calc(100vh - 20px);
    overflow: visible;
  }

  .desktop-icon { display: none; }

  .window {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .window-titlebar { cursor: default; }
  .resize-handle { display: none; }

  .window-content {
    height: auto !important;
    min-height: calc(100vh - 60px);
    flex-direction: column;
  }

  .finder-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--bevel-dark);
    display: flex;
    flex-wrap: wrap;
    padding: 2px;
    height: auto;
    overflow-y: visible;
    overflow-x: auto;
  }
  .sidebar-item { padding: 4px 8px; font-size: 11px; }
  .sidebar-divider { display: none; }

  .icon-grid-panel {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--bevel-dark);
    max-height: 130px;
  }
  .icon-grid { flex-wrap: nowrap; overflow-x: auto; }

  .window-toolbar {
    flex-wrap: wrap;
    height: auto;
    padding: 4px 6px;
    gap: 4px;
  }
  .toolbar-search { margin-left: 0; width: 100%; }
  .toolbar-search input { width: 100%; }

  .col-journal,
  .col-type,
  .col-link { display: none; }
  .col-year { width: 40px; }

  .fun-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; }

  .detail-popup { width: 90%; left: 5% !important; }
  .dialog { width: 85%; }

  .menu-item { padding: 2px 5px; font-size: 11px; }
}
