/* ========== VARIABLES ========== */
:root {
  --color-desktop-bg: #64a9b6;
  --color-menubar-bg: #D8D8D8;
  --color-dock-bg: #B8B8B8;
  --color-border: #000000;
  --color-text: #000000;
  --color-bezel: #D4C5A9;
  --color-screen-border: #1a1a1a;
  
  --color-window-bg: #F0F0F0;
  --color-titlebar: #C0C0C0;
  --color-title-text: #000000;
  --color-button-face: #C0C0C0;

  --font-chicago: 'Chicago', 'Monaco', monospace;
  --font-geneva: 'Geneva', sans-serif;
}

/* ========== RESET & FONTS ========== */
@font-face {
  font-family: 'Chicago';
  src: url('./fonts/ChicagoFLF.ttf') format('truetype');
}

@font-face {
  font-family: 'Geneva';
  src: url('./fonts/Geneva Regular.ttf') format('truetype');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: none;
}

body {
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-geneva);
  font-size: 12px;
  color: var(--color-text);
  user-select: none;
}

/* ========== MONITOR BEZEL ========== */
/* Layer 1: Outermost beige shell */
.bezel-beige {
  background: #D4C5A9;
  border: none;
  border-radius: 20px;
  padding: 60px 108px;
  width: 100vw;
  height: 100vh;
  display: flex;
  box-shadow:
    inset -8px -8px 4px 0px #ad9470,
    inset 8px 8px 4px 0px rgba(255,255,255,0.6);
}

/* Layer 2: Gradient depth frame (exported PNG) */
.bezel-gradient {
  background-image: url('./assets/background-gradient.png');
  background-size: 100% 100%;
  border-radius: 14px;
  padding: 24px;
  flex: 1;
  display: flex;
  position: relative;
}

.bezel-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* Layer 3: Dark inner bezel */
.bezel-black {
  background: #161616;
  border-radius: 8px;
  padding: 24px;
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Layer 4: Teal desktop screen */
.screen {
  background-color: var(--color-desktop-bg);
  background-image: url('assets/background.png');
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  width: 100%;
  max-width: 1200px;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ========== MENU BAR ========== */
.menubar {
  background-color: #b3b3b2;
  border: 1px solid #000;
  box-shadow: 
    inset 3px 3px 0px 0px #ffffff,
    2px 3px 0px 0px rgba(0,0,0,0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  margin: 4px; /* Allows the border and shadow to be fully visible */
  font-family: var(--font-chicago);
  font-size: 12px;
  z-index: 1000;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menubar-icons {
  display: flex;
  align-items: center;
  gap: 11px;
}

.menubar-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menubar-item {
  cursor: pointer;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 500;
  padding: 2px 4px;
  letter-spacing: -0.28px;
}

.menubar-item:hover {
  background-color: #000;
  color: #fff;
}

.menubar-item.menubar-item-app {
  cursor: default;
}

.menubar-item.menubar-item-app:hover {
  background-color: transparent;
  color: rgba(0, 0, 0, 0.8);
}

.menubar-item.menubar-item-app:first-of-type {
  font-weight: bold;
}

.icon-placeholder {
  background-color: #AAAAAA;
  display: inline-block;
}

.menubar-icon {
  width: 24px;
  height: 24px;
}

/* ---- Menu Bar Dropdowns ---- */
.menubar-icon-btn {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.menubar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  width: 200px;
  background-color: #dbdbdb;
  border: 1px solid #000;
  box-shadow:
    inset 3px 3px 0px 0px #ffffff,
    2px 2px 0px 0px rgba(0,0,0,0.8);
  padding: 8px 0;
  z-index: 2000;
  font-family: var(--font-chicago);
  font-size: 11px;
  letter-spacing: -0.22px;
}

.menubar-dropdown.dropdown-wide {
  width: 240px;
}

.menubar-dropdown.open {
  display: block;
}

.dropdown-title {
  padding: 4px 12px 6px 12px;
  font-family: var(--font-chicago);
  font-size: 12px;
  color: rgba(0,0,0,0.8);
  letter-spacing: -0.22px;
}

.dropdown-separator {
  height: 1px;
  background-color: rgba(0,0,0,0.25);
  margin: 4px 8px;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.5);
}

.dropdown-row {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  gap: 6px;
  font-family: var(--font-geneva);
  font-size: 11px;
  color: rgba(0,0,0,0.8);
  letter-spacing: -0.2px;
}

.dropdown-row:hover {
  background-color: #171916;
  color: rgba(255,255,255,0.9);
}

.dropdown-dim {
  color: rgba(0,0,0,0.5);
}

.dropdown-dim:hover {
  color: rgba(255,255,255,0.9);
}

.dropdown-check {
  width: 14px;
  text-align: center;
  font-size: 12px;
}

.dropdown-label {
  flex: 1;
}

.dropdown-value {
  color: rgba(0,0,0,0.5);
  font-size: 10px;
}

.dropdown-row:hover .dropdown-value {
  color: rgba(255,255,255,0.5);
}

.dropdown-grid {
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-tile-icon {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
}

.dropdown-tile-label {
  font-family: var(--font-chicago);
  font-size: 10px;
  color: rgba(0,0,0,0.6);
  letter-spacing: -0.2px;
}

.dropdown-slider {
  height: 6px;
  background-color: #a0a0a0;
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px 0px 0px rgba(0,0,0,0.3);
  position: relative;
}

.dropdown-slider-fill {
  height: 100%;
  background-color: #171916;
}

.dropdown-toggles {
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  font-family: var(--font-geneva);
  font-size: 11px;
  color: rgba(0,0,0,0.5);
  letter-spacing: -0.2px;
  cursor: pointer;
}

.dropdown-toggle:hover {
  background-color: #171916;
  color: rgba(255,255,255,0.9);
}

.dropdown-toggle.active {
  color: rgba(0,0,0,0.8);
}

.dropdown-toggle.active:hover {
  color: rgba(255,255,255,0.9);
}

.dropdown-toggle-icon {
  font-size: 12px;
}

/* ========== DESKTOP ========== */
.desktop {
  flex: 1;
  position: relative;
}

/* ========== DOCK ========== */
.dock-wrapper {
  display: none;
}

.duck {
  position: absolute;
  bottom: 0px;
  left: 0px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.duck-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.duck-stand {
  width: 64px;
  height: auto;
  margin-top: -4px;
  position: relative;
  z-index: 0;
}

.dock {
  background-color: #dbdbdb;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 6px;
  box-shadow:
    inset 3px 3px 0px 0px #ffffff,
    2px 2px 0px 0px rgba(0,0,0,0.8);
}

.dock-inner {
  background-color: #b3b3b2;
  border: 1px solid #000;
  border-radius: 2px;
  padding: 8px 40px 3px 40px;
  display: flex;
  align-items: flex-end;
  gap: 40px;
  box-shadow:
    inset 3px 3px 0px 0px rgba(0,0,0,0.4);
}

.dock-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dock-icon {
  width: 48px;
  height: 48px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  border-radius: 4px;
  background-color: #cecece;
  object-fit: cover;
  box-shadow:
    3px 3px 6px 0px rgba(0,0,0,0.2),
    inset 1px 1px 0px 0px rgba(255,255,255,0.6),
    inset -3px -3px 0px 0px rgba(0,0,0,0.4),
    inset 3px 3px 0px 0px rgba(255,255,255,0.4);
}

.dock-label {
  font-family: var(--font-chicago);
  font-size: 11px;
  color: rgba(0, 0, 0, 0.8);
  letter-spacing: -0.22px;
  white-space: nowrap;
}

.dock-divider {
  width: 1px;
  height: 79px;
  background-color: var(--color-border);
  align-self: center;
}

/* ========== DESKTOP ICONS ========== */
.desktop-icons {
  position: absolute;
  top: 52px;
  left: 16px;
  display: grid;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 20px 16px;
  justify-items: center;
}

.desktop-icon-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 56px;
}

.desktop-icon-wrap {
  width: 48px;
  height: 48px;
  position: relative;
  border-radius: 4px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.2);
  overflow: hidden;
}

.desktop-icon-wrap.trash-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background-color: transparent;
  filter:
    drop-shadow(1px 1px 2px rgba(0,0,0,0.25))
    drop-shadow(3px 1px 4px rgba(0,0,0,0.25));
}

.desktop-icon-bg {
  position: absolute;
  inset: 0;
  background-color: #cecece;
  border-radius: 4px;
}

.desktop-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  position: relative;
  display: block;
}

.desktop-icon-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.6),
    inset -3px -3px 0px 0px rgba(0,0,0,0.4),
    inset 3px 3px 0px 0px rgba(255,255,255,0.4);
  pointer-events: none;
}

.desktop-label {
  font-family: var(--font-chicago);
  font-size: 11px;
  color: rgba(0, 0, 0, 0.8);
  text-align: center;
  letter-spacing: -0.22px;
  white-space: nowrap;
}

/* Trash icon — no rounded corners, transparent */
.icon-trash {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========== WINDOW CHROME ========== */
.window {
  position: absolute;
  background-color: #dbdbdb;
  border: 1px solid #000;
  box-shadow:
    inset 3px 3px 0px 0px #ffffff,
    2px 2px 0px 0px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  padding: 3px 4px 4px 4px;
}

.window-titlebar {
  background-color: #171916;
  height: 27px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 2px;
}

.window-title {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Chicago', 'Monaco', monospace;
  font-size: 15px;
  font-weight: normal;
  text-align: center;
  flex: 1;
}

.window-controls-left, .window-controls-right {
  display: flex;
  gap: 4px;
}

.window-btn-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset -1px -1px 0px 0px rgba(255,255,255,0.20),
    inset 1px 1px 0px 0px rgba(0,0,0,0.40);
  padding: 2px;
  display: inline-flex;
}

.window-btn {
  background-color: #c5c5c5;
  border: 1px solid #000;
  box-shadow:
    inset -3px -3px 0px 0px rgba(0,0,0,0.20),
    inset -2px -2px 0px 0px rgba(0,0,0,0.40),
    inset 3px 3px 0px 0px rgba(255,255,255,0.30),
    inset 2px 2px 0px 0px rgba(255,255,255,0.80),
    inset 1px 8px 8px 0px rgba(0,0,0,0.25);
  width: 20px;
  height: 20px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.window-btn.close {
  background-color: #F4A429;
  padding: 6px;
  overflow: hidden;
}

.window-btn.close::before, .window-btn.close::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 1px;
  background-color: #171717;
}
.window-btn.close::before { transform: rotate(45deg); }
.window-btn.close::after { transform: rotate(-45deg); }

.window-btn.collapse::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid #000;
}

.window-btn.zoom {
  flex-direction: column;
  gap: 2px;
}
.window-btn.zoom::before, .window-btn.zoom::after {
  content: '';
  width: 12px;
  height: 1px;
  background-color: #000;
}

.window-body {
  flex: 1;
  background-color: #ffffff;
  box-shadow: 
    inset 1px 1px 0px 0px rgba(0,0,0,0.50),
    inset -1px -1px 0px 0px rgba(255,255,255,0.50);
  padding: 2px;
  display: flex;
  flex-direction: column;
}

.window-content {
  background-color: #ececec;
  border: 1px solid #000;
  box-shadow:
    inset 2px 2px 0px 0px rgba(255,255,255,1.00),
    inset -2px -2px 0px 0px rgba(0,0,0,0.20);
  padding: 10px 16px;
  flex: 1;
}

.window-content.gray-bg {
  background-color: #dbdbdb;
}

.about-row {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
}

.about-label {
  font-family: 'Chicago', 'Monaco', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #000;
  width: 60px;
  letter-spacing: -0.22px;
}

.about-value {
  font-family: 'Geneva', sans-serif;
  font-size: 11px;
  color: #000;
  letter-spacing: -0.22px;
}

.window-bottom-bar {
  display: flex;
  height: 22px;
  margin-top: 2px;
  gap: 2px;
}

.scrollbar-track {
  background-color: #d2d1d2;
  box-shadow:
    inset 1px 1px 0px 0px rgba(0,0,0,0.42),
    inset -1px -1px 0px 0px rgba(255,255,255,0.78);
}

.scrollbar-track.main {
  flex: 1;
}

.scrollbar-track.thumb {
  width: 74px;
}

.scrollbar-track.small {
  width: 33px;
}

.scrollbar-btn {
  width: 22px;
  height: 22px;
  background-color: #d2d1d2;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.78),
    inset -1px -1px 0px 0px rgba(0,0,0,0.42);
  display: flex;
  justify-content: center;
  align-items: center;
}

.scrollbar-btn-inner {
  width: 10px;
  height: 10px;
  background-image: repeating-linear-gradient(
    -45deg,
    #fff 0px,
    #fff 1px,
    #71717a 1px,
    #71717a 2px,
    transparent 2px,
    transparent 4px
  );
}

/* ========== NOTES APP ========== */
.notes-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background-color: #dbdbdb;
  border-bottom: 1px solid #000;
  box-shadow:
    inset 0px 1px 0px 0px rgba(255,255,255,0.6);
}

.notes-toolbar-btn {
  width: 22px;
  height: 22px;
  background-color: #d2d1d2;
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.78),
    inset -1px -1px 0px 0px rgba(0,0,0,0.42);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-chicago);
  font-size: 12px;
  color: #000;
}

.notes-toolbar-btn:active {
  box-shadow:
    inset -1px -1px 0px 0px rgba(255,255,255,0.78),
    inset 1px 1px 0px 0px rgba(0,0,0,0.42);
}

.notes-toolbar-separator {
  width: 1px;
  height: 18px;
  background-color: rgba(0,0,0,0.3);
  margin: 0 2px;
}

.notes-search-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.notes-search {
  width: 140px;
  height: 20px;
  background-color: #fff;
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px 0px 0px rgba(0,0,0,0.3);
  padding: 0 6px;
  font-family: var(--font-geneva);
  font-size: 11px;
  color: #000;
  outline: none;
}

.notes-search::placeholder {
  color: rgba(0,0,0,0.4);
}

.notes-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background-color: #fff;
  box-shadow:
    inset 1px 1px 0px 0px rgba(0,0,0,0.50),
    inset -1px -1px 0px 0px rgba(255,255,255,0.50);
  margin: 0 2px;
}

.notes-sidebar {
  width: 180px;
  background-color: #ececec;
  border-right: 1px solid #000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notes-sidebar::-webkit-scrollbar {
  display: none;
}

.notes-sidebar-scrollbar {
  width: 16px;
  background-color: #d2d1d2;
  border-right: 1px solid #000;
  display: flex;
  flex-direction: column;
}

.notes-sidebar-scrollbar .scrollbar-btn {
  width: 16px;
  height: 16px;
}

.notes-sidebar-scrollbar .scrollbar-btn-inner {
  width: 8px;
  height: 8px;
}

.note-item {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.note-item:hover {
  background-color: #e0e0e0;
}

.note-item.active {
  background-color: #171916;
  color: rgba(255,255,255,0.9);
}

.note-item-title {
  font-family: var(--font-chicago);
  font-size: 11px;
  letter-spacing: -0.22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item-date {
  font-family: var(--font-geneva);
  font-size: 10px;
  color: rgba(0,0,0,0.5);
  letter-spacing: -0.2px;
}

.note-item.active .note-item-date {
  color: rgba(255,255,255,0.5);
}

.note-item-preview {
  font-family: var(--font-geneva);
  font-size: 10px;
  color: rgba(0,0,0,0.5);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item.active .note-item-preview {
  color: rgba(255,255,255,0.4);
}

.notes-editor-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.notes-editor {
  flex: 1;
  width: 100%;
  background-color: #fff;
  border: none;
  padding: 12px 16px;
  font-family: var(--font-geneva);
  font-size: 12px;
  color: #000;
  outline: none;
  resize: none;
  line-height: 1.6;
  letter-spacing: -0.2px;
}

.notes-editor::placeholder {
  color: rgba(0,0,0,0.3);
}

/* ========== FINDER APP ========== */
.finder-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background-color: #dbdbdb;
  border-bottom: 1px solid #000;
  box-shadow:
    inset 0px 1px 0px 0px rgba(255,255,255,0.6);
}

.finder-toolbar-btn {
  width: 22px;
  height: 22px;
  background-color: #d2d1d2;
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.78),
    inset -1px -1px 0px 0px rgba(0,0,0,0.42);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-chicago);
  font-size: 10px;
  color: #000;
}

.finder-toolbar-btn:active {
  box-shadow:
    inset -1px -1px 0px 0px rgba(255,255,255,0.78),
    inset 1px 1px 0px 0px rgba(0,0,0,0.42);
}

.finder-toolbar-btn.disabled {
  color: rgba(0,0,0,0.3);
  cursor: default;
}

.finder-toolbar-separator {
  width: 1px;
  height: 18px;
  background-color: rgba(0,0,0,0.3);
  margin: 0 2px;
}

.finder-toolbar-spacer {
  flex: 1;
}

.finder-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-chicago);
  font-size: 11px;
  color: rgba(0,0,0,0.8);
  letter-spacing: -0.22px;
}

.finder-breadcrumb-sep {
  color: rgba(0,0,0,0.35);
  font-size: 10px;
}

.finder-breadcrumb-link {
  cursor: pointer;
  color: rgba(0,0,0,0.5);
}

.finder-breadcrumb-link:hover {
  text-decoration: underline;
}

.finder-breadcrumb-current {
  color: rgba(0,0,0,0.8);
}

.finder-view-toggle {
  display: flex;
  gap: 2px;
}

.finder-view-btn.active {
  background-color: #a0a0a0;
  box-shadow:
    inset -1px -1px 0px 0px rgba(255,255,255,0.78),
    inset 1px 1px 0px 0px rgba(0,0,0,0.42);
}

.finder-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background-color: #fff;
  box-shadow:
    inset 1px 1px 0px 0px rgba(0,0,0,0.50),
    inset -1px -1px 0px 0px rgba(255,255,255,0.50);
  margin: 0 2px;
}

.finder-sidebar {
  width: 150px;
  background-color: #ececec;
  border-right: 1px solid #000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.finder-sidebar::-webkit-scrollbar {
  display: none;
}

.finder-sidebar-scrollbar {
  width: 16px;
  background-color: #d2d1d2;
  border-right: 1px solid #000;
  display: flex;
  flex-direction: column;
}

.finder-sidebar-scrollbar .scrollbar-btn {
  width: 16px;
  height: 16px;
}

.finder-sidebar-scrollbar .scrollbar-btn-inner {
  width: 8px;
  height: 8px;
}

.finder-sidebar-section {
  font-family: var(--font-chicago);
  font-size: 10px;
  color: rgba(0,0,0,0.45);
  letter-spacing: -0.2px;
  padding: 6px 10px 4px 10px;
  text-transform: uppercase;
}

.finder-sidebar-item {
  font-family: var(--font-chicago);
  font-size: 11px;
  color: rgba(0,0,0,0.8);
  letter-spacing: -0.22px;
  padding: 5px 10px;
  cursor: pointer;
}

.finder-sidebar-item:hover {
  background-color: #e0e0e0;
}

.finder-sidebar-item.active {
  background-color: #171916;
  color: rgba(255,255,255,0.9);
}

.finder-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.finder-content::-webkit-scrollbar {
  display: none;
}

.finder-statusbar {
  background-color: #dbdbdb;
  border-top: 1px solid #000;
  padding: 3px 10px;
  font-family: var(--font-geneva);
  font-size: 10px;
  color: rgba(0,0,0,0.6);
  letter-spacing: -0.2px;
  box-shadow:
    inset 0px 1px 0px 0px rgba(255,255,255,0.6);
}

/* ---- Finder: Gallery View ---- */
.finder-gallery {
  display: flex;
  flex: 1;
  min-height: 0;
}

.finder-gallery-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.finder-gallery-preview {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1a1a1a;
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.finder-gallery-preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: none;
  box-shadow: none;
}

.finder-gallery-preview-placeholder {
  width: 140px;
  height: 100px;
  background-color: #c0c0c0;
}

.finder-gallery-preview-folder {
  width: 120px;
  height: 120px;
}

.finder-gallery-preview-empty {
  font-family: var(--font-chicago);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: -0.22px;
}

.finder-gallery-info {
  width: 180px;
  background-color: #ececec;
  border-left: 1px solid rgba(0,0,0,0.2);
  padding: 12px;
  overflow-y: auto;
  flex-shrink: 0;
}

.finder-gallery-info-thumb {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  object-fit: cover;
  margin-bottom: 6px;
  border: 1px solid rgba(0,0,0,0.15);
}

.finder-gallery-info-name {
  font-family: var(--font-chicago);
  font-size: 11px;
  color: #000;
  word-break: break-all;
  margin-bottom: 2px;
}

.finder-gallery-info-type {
  font-family: var(--font-geneva);
  font-size: 10px;
  color: rgba(0,0,0,0.5);
  margin-bottom: 10px;
}

.finder-gallery-info-section {
  font-family: var(--font-chicago);
  font-size: 10px;
  color: #000;
  margin-bottom: 6px;
  margin-top: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 4px;
}

.finder-gallery-info-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-geneva);
  font-size: 10px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.finder-gallery-info-label {
  color: rgba(0,0,0,0.5);
  flex-shrink: 0;
  margin-right: 6px;
}

.finder-gallery-info-value {
  color: #000;
  text-align: right;
}

.finder-gallery-strip-wrapper {
  background-color: #ececec;
  border-top: 1px solid #000;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.finder-gallery-strip {
  display: flex;
  gap: 6px;
  padding: 0 12px;
  overflow-x: auto;
  max-width: 100%;
}

.finder-gallery-strip::-webkit-scrollbar {
  display: none;
}

.finder-gallery-strip-item {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  background-color: #c0c0c0;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.3),
    inset -1px -1px 0px 0px rgba(0,0,0,0.1);
}

.finder-gallery-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finder-gallery-strip-item.active {
  border-color: #171916;
  box-shadow:
    0 0 0 1px #171916,
    inset 1px 1px 0px 0px rgba(255,255,255,0.3),
    inset -1px -1px 0px 0px rgba(0,0,0,0.1);
}

.finder-gallery-strip-item:hover:not(.active) {
  border-color: rgba(0,0,0,0.3);
}

.finder-gallery-strip-item.folder-strip-item {
  background-color: transparent;
  box-shadow: none;
}

.finder-gallery-strip-item.folder-strip-item .finder-folder-icon {
  width: 32px;
  height: 32px;
}

.finder-gallery-strip-item.doc-strip-item {
  background-color: transparent;
  box-shadow: none;
}

.finder-gallery-strip-item .finder-doc-icon {
  width: 28px;
  height: 36px;
  padding: 2px;
}

.finder-gallery-strip-item .finder-doc-icon::before {
  width: 6px;
  height: 6px;
}

.finder-gallery-strip-item .finder-doc-lines {
  margin-top: 8px;
  gap: 2px;
}

.finder-gallery-label {
  font-family: var(--font-chicago);
  font-size: 11px;
  color: rgba(0,0,0,0.8);
  letter-spacing: -0.22px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.finder-folder-icon {
  width: 100%;
  height: 100%;
  position: relative;
}

.finder-folder-icon-back {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background-color: #e8c84a;
  border: 1px solid #b09520;
  border-radius: 2px;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.5),
    inset -1px -1px 0px 0px rgba(0,0,0,0.15);
}

.finder-folder-icon-tab {
  position: absolute;
  top: 10%;
  left: 0;
  width: 50%;
  height: 20%;
  background-color: #d4b030;
  border: 1px solid #b09520;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

.finder-file-name {
  font-family: var(--font-chicago);
  font-size: 11px;
  color: rgba(0,0,0,0.8);
  letter-spacing: -0.22px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ---- Finder: Icon View ---- */
.finder-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  padding: 12px;
}

.finder-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 4px;
}

.finder-icon-item:hover {
  background-color: rgba(0,0,0,0.06);
}

.finder-icon-item.selected {
  background-color: #171916;
}

.finder-icon-item.selected .finder-file-name {
  color: rgba(255,255,255,0.9);
}

.finder-icon-thumb {
  width: 72px;
  height: 72px;
  background-color: #c0c0c0;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.4),
    inset -1px -1px 0px 0px rgba(0,0,0,0.15);
}

.finder-icon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finder-icon-thumb.folder-thumb {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.finder-icon-thumb .finder-folder-icon {
  width: 48px;
  height: 48px;
}

/* ---- Finder: Document file icon ---- */
.finder-doc-icon {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border: 1px solid #999;
  border-radius: 1px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 4px;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.8),
    inset -1px -1px 0px 0px rgba(0,0,0,0.1);
}

.finder-doc-icon::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #e0e0e0 50%, #999 50%);
}

.finder-doc-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
}

.finder-doc-line {
  height: 1px;
  background-color: #ccc;
}

.finder-doc-line:nth-child(1) { width: 80%; }
.finder-doc-line:nth-child(2) { width: 65%; }
.finder-doc-line:nth-child(3) { width: 90%; }
.finder-doc-line:nth-child(4) { width: 50%; }

/* ========== PHOTO BOOTH APP ========== */
.pb-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #171916;
  overflow: hidden;
}

.pb-viewfinder {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0a0a0a;
  overflow: hidden;
  margin: 6px 6px 0 6px;
  border: 2px solid #000;
  box-shadow:
    inset 2px 2px 0px 0px rgba(255,255,255,0.08),
    inset -2px -2px 0px 0px rgba(0,0,0,0.5);
}

.pb-viewfinder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror like real Photo Booth */
  pointer-events: none;
}

.pb-viewfinder video::-webkit-media-controls {
  display: none !important;
}

.pb-viewfinder video::-webkit-media-controls-overlay-play-button {
  display: none !important;
}

.pb-viewfinder video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.pb-no-camera {
  position: absolute;
  font-family: var(--font-chicago);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: -0.22px;
  display: none;
}

.pb-flash {
  position: absolute;
  inset: 0;
  background-color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.pb-flash.active {
  animation: pb-flash-anim 0.4s ease-out;
}

@keyframes pb-flash-anim {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}

.pb-countdown {
  position: absolute;
  font-family: var(--font-chicago);
  font-size: 26px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  z-index: 5;
  display: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.pb-countdown.visible {
  display: block;
}

.pb-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  background-color: #171916;
  position: relative;
}

.pb-shutter-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #d2d1d2;
  border: 2px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.78),
    inset -1px -1px 0px 0px rgba(0,0,0,0.42),
    0 2px 4px rgba(0,0,0,0.5);
}

.pb-shutter-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #c5c5c5;
  border: 2px solid #000;
  cursor: pointer;
  box-shadow:
    inset 2px 2px 0px 0px rgba(255,255,255,0.6),
    inset -2px -2px 0px 0px rgba(0,0,0,0.3),
    inset 0 4px 6px 0px rgba(0,0,0,0.15);
  transition: transform 0.1s;
}

.pb-shutter-btn:active {
  transform: scale(0.92);
  box-shadow:
    inset -2px -2px 0px 0px rgba(255,255,255,0.6),
    inset 2px 2px 0px 0px rgba(0,0,0,0.3);
}

.pb-shutter-btn.disabled {
  opacity: 0.4;
  cursor: default;
}

.pb-strip-wrapper {
  background-color: #dbdbdb;
  border-top: 1px solid #000;
  padding: 8px 12px;
  min-height: 72px;
  box-shadow:
    inset 3px 3px 0px 0px rgba(255,255,255,0.6);
}

.pb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  align-items: center;
  min-height: 56px;
}

.pb-strip::-webkit-scrollbar {
  display: none;
}

.pb-strip-empty {
  font-family: var(--font-chicago);
  font-size: 11px;
  color: rgba(0,0,0,0.35);
  letter-spacing: -0.22px;
  white-space: nowrap;
  padding: 0 8px;
}

.pb-strip-item {
  flex-shrink: 0;
  width: 75px;
  height: 56px;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  background-color: #c0c0c0;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.3),
    inset -1px -1px 0px 0px rgba(0,0,0,0.1);
  position: relative;
}

.pb-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-strip-item:hover {
  border-color: rgba(0,0,0,0.4);
}

.pb-strip-item.selected {
  border-color: #171916;
  box-shadow:
    0 0 0 1px #171916;
}

.pb-strip-item-delete {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  background-color: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.pb-strip-item:hover .pb-strip-item-delete {
  display: flex;
}

/* Photo Booth preview overlay */
.pb-preview-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.pb-preview-overlay img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border: 2px solid #333;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.pb-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background-color: #d2d1d2;
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.78),
    inset -1px -1px 0px 0px rgba(0,0,0,0.42);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-chicago);
  font-size: 12px;
  color: #000;
}

/* ---- Photo Booth: Willy in viewfinder ---- */
.pb-willy-overlay {
  position: absolute;
  width: 44px;
  height: 44px;
  object-fit: contain;
  z-index: 12;
  pointer-events: none;
  transform: translate(-50%, -100%);
  transition: width 0.2s ease, height 0.2s ease;
}

/* ---- Photo Booth: Retake label ---- */
.pb-retake-label {
  position: absolute;
  left: calc(50% + 40px);
  font-family: var(--font-chicago);
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  letter-spacing: -0.22px;
  white-space: nowrap;
}

/* ---- Photo Booth: Result screen ---- */
.pb-result {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ececec;
  margin: 6px 6px 0 6px;
  border: 1px solid #000;
  box-shadow:
    inset 2px 2px 0px 0px #fff,
    inset -2px -2px 0px 0px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
  padding: 14px 24px;
}

.pb-result-heading {
  font-family: var(--font-chicago);
  font-size: 14px;
  color: #000;
  letter-spacing: -0.22px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.pb-polaroid-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 6px;
}

.pb-polaroid-slot {
  width: 200px;
  height: 10px;
  background-color: #171916;
  border-radius: 2px;
  z-index: 2;
  flex-shrink: 0;
}

.pb-polaroid-frame {
  position: relative;
  background-color: #fff;
  padding: 6px;
  padding-bottom: 22px;
  margin-top: -4px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.25);
  z-index: 1;
  animation: pb-polaroid-slide 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes pb-polaroid-slide {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
  }
}

.pb-polaroid-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 2px 0 0 rgba(0,0,0,0.4);
  pointer-events: none;
}

.pb-polaroid-photo {
  width: 160px;
  height: 120px;
  object-fit: cover;
  display: block;
}

.pb-polaroid-blur {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 22px;
  background-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pb-result-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 28px;
  width: 200px;
  gap: 8px;
  flex-shrink: 0;
}

.pb-result-form-title {
  font-family: var(--font-chicago);
  font-size: 12px;
  color: #000;
  letter-spacing: -0.2px;
  text-align: center;
  line-height: 1.4;
}

.pb-result-inputs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.pb-result-input {
  width: 100%;
  height: 28px;
  padding: 0 10px;
  font-family: var(--font-geneva);
  font-size: 11px;
  color: #000;
  background-color: #e2e2e2;
  border: none;
  box-shadow:
    inset -1px -1px 0px 0px rgba(255,255,255,0.78),
    inset 1px 1px 0px 0px rgba(0,0,0,0.42);
  outline: none;
  letter-spacing: -0.18px;
}

.pb-result-input::placeholder {
  color: #939393;
}

.pb-result-send-btn {
  width: 64px;
  padding: 8px;
  font-family: var(--font-chicago);
  font-size: 12px;
  color: #fff;
  background-color: #171916;
  border: none;
  box-shadow:
    inset -2px -2px 0px 0px rgba(0,0,0,0.2),
    inset -1px -1px 0px 0px rgba(0,0,0,0.61),
    inset 2px 2px 0px 0px rgba(255,255,255,0.2),
    inset 1px 1px 0px 0px rgba(255,255,255,0.56);
  cursor: pointer;
  letter-spacing: -0.2px;
  text-align: center;
}

.pb-result-send-btn:active {
  box-shadow:
    inset 2px 2px 0px 0px rgba(0,0,0,0.2),
    inset 1px 1px 0px 0px rgba(0,0,0,0.61),
    inset -2px -2px 0px 0px rgba(255,255,255,0.2),
    inset -1px -1px 0px 0px rgba(255,255,255,0.56);
}

/* ---- Photo Booth: Effects button (unused) ---- */
.pb-effects-btn {
  position: absolute;
  right: 24px;
  height: 26px;
  padding: 0 12px;
  background-color: #d2d1d2;
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.78),
    inset -1px -1px 0px 0px rgba(0,0,0,0.42);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-chicago);
  font-size: 11px;
  color: #000;
  letter-spacing: -0.22px;
}

.pb-effects-btn:active {
  box-shadow:
    inset -1px -1px 0px 0px rgba(255,255,255,0.78),
    inset 1px 1px 0px 0px rgba(0,0,0,0.42);
}

.pb-effects-btn.active {
  background-color: #171916;
  color: rgba(255,255,255,0.9);
  box-shadow:
    inset 1px 1px 0px 0px rgba(0,0,0,0.4),
    inset -1px -1px 0px 0px rgba(255,255,255,0.1);
}

/* ---- Photo Booth: Filter grid ---- */
.pb-filter-grid {
  position: absolute;
  inset: 0;
  z-index: 15;
  background-color: #0a0a0a;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
}

.pb-filter-thumb {
  position: relative;
  background-color: #1a1a1a;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pb-filter-thumb:hover {
  border-color: rgba(255,255,255,0.3);
}

.pb-filter-thumb.selected {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

.pb-filter-thumb .pb-filter-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  pointer-events: none;
}

.pb-filter-label {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-chicago);
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  letter-spacing: -0.22px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* Scanline overlay for retro filter thumbnail */
.pb-filter-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
}

/* Retro filter preview in thumbnail */
.pb-filter-thumb[data-filter="retro"] .pb-filter-preview {
  filter: contrast(0.85) sepia(0.15) hue-rotate(-20deg) blur(0.5px) brightness(0.95);
}

/* ---- Photo Booth: Retro filter on main video ---- */
.pb-viewfinder.filter-retro > video {
  filter: contrast(0.85) sepia(0.15) hue-rotate(-20deg) blur(0.5px) brightness(0.95);
}

.pb-viewfinder.filter-retro::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(0,0,0,0.12) 2px,
      rgba(0,0,0,0.12) 4px
    ),
    radial-gradient(
      ellipse at center,
      transparent 55%,
      rgba(0,0,0,0.35) 100%
    );
  pointer-events: none;
  z-index: 2;
}

/* ========== MAIL APP ========== */
.mail-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background-color: #dbdbdb;
  border-bottom: 1px solid #000;
  box-shadow:
    inset 0px 1px 0px 0px rgba(255,255,255,0.6);
}

.mail-toolbar-btn {
  height: 22px;
  padding: 0 8px;
  background-color: #d2d1d2;
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.78),
    inset -1px -1px 0px 0px rgba(0,0,0,0.42);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-chicago);
  font-size: 11px;
  color: #000;
  letter-spacing: -0.22px;
  white-space: nowrap;
}

.mail-toolbar-btn:active {
  box-shadow:
    inset -1px -1px 0px 0px rgba(255,255,255,0.78),
    inset 1px 1px 0px 0px rgba(0,0,0,0.42);
}

.mail-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background-color: #fff;
  box-shadow:
    inset 1px 1px 0px 0px rgba(0,0,0,0.50),
    inset -1px -1px 0px 0px rgba(255,255,255,0.50);
  margin: 0 2px;
}

.mail-sidebar {
  width: 140px;
  background-color: #ececec;
  border-right: 1px solid #000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.mail-sidebar::-webkit-scrollbar {
  display: none;
}

.mail-sidebar-section {
  font-family: var(--font-chicago);
  font-size: 10px;
  color: rgba(0,0,0,0.45);
  letter-spacing: -0.2px;
  padding: 6px 10px 4px 10px;
  text-transform: uppercase;
}

.mail-sidebar-item {
  font-family: var(--font-chicago);
  font-size: 11px;
  color: rgba(0,0,0,0.8);
  letter-spacing: -0.22px;
  padding: 5px 10px;
  cursor: pointer;
}

.mail-sidebar-item:hover {
  background-color: #e0e0e0;
}

.mail-sidebar-item.active {
  background-color: #171916;
  color: rgba(255,255,255,0.9);
}

.mail-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mail-list {
  max-height: 160px;
  overflow-y: auto;
  border-bottom: 1px solid #000;
  background-color: #fff;
}

.mail-list::-webkit-scrollbar {
  display: none;
}

.mail-list-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
}

.mail-list-item:hover {
  background-color: #f0f0f0;
}

.mail-list-item.active {
  background-color: #171916;
  color: rgba(255,255,255,0.9);
}

.mail-list-item-from {
  font-family: var(--font-chicago);
  font-size: 11px;
  letter-spacing: -0.22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-list-item-subject {
  font-family: var(--font-geneva);
  font-size: 11px;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-list-item-date {
  font-family: var(--font-geneva);
  font-size: 10px;
  color: rgba(0,0,0,0.5);
  letter-spacing: -0.2px;
}

.mail-list-item.active .mail-list-item-date {
  color: rgba(255,255,255,0.5);
}

.mail-list-item.unread .mail-list-item-from {
  font-weight: bold;
}

.mail-preview {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  background-color: #fff;
}

.mail-preview::-webkit-scrollbar {
  display: none;
}

.mail-preview-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.mail-preview-subject {
  font-family: var(--font-chicago);
  font-size: 13px;
  letter-spacing: -0.22px;
  margin-bottom: 6px;
}

.mail-preview-meta {
  font-family: var(--font-geneva);
  font-size: 10px;
  color: rgba(0,0,0,0.5);
  letter-spacing: -0.2px;
  line-height: 1.5;
}

.mail-preview-body {
  font-family: var(--font-geneva);
  font-size: 12px;
  color: #000;
  line-height: 1.6;
  letter-spacing: -0.2px;
  white-space: pre-wrap;
}

.mail-preview-empty {
  font-family: var(--font-chicago);
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  letter-spacing: -0.22px;
  text-align: center;
  padding-top: 40px;
}

/* ========== QUICK LOOK ========== */
.quicklook-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 80%;
  max-height: 80%;
  z-index: 9999;
}

.quicklook-body {
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.quicklook-body img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

/* ========== WIFI DIALOG ========== */
.wifi-dialog-body {
  padding: 16px;
  background-color: #dbdbdb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wifi-dialog-label {
  font-family: var(--font-chicago);
  font-size: 11px;
  color: rgba(0,0,0,0.8);
  letter-spacing: -0.22px;
}

.wifi-dialog-input {
  width: 100%;
  height: 24px;
  background-color: #fff;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0px 0px rgba(0,0,0,0.3);
  padding: 0 8px;
  font-family: var(--font-geneva);
  font-size: 12px;
  color: #000;
  outline: none;
}

.wifi-dialog-error {
  font-family: var(--font-geneva);
  font-size: 11px;
  color: #cc0000;
  letter-spacing: -0.2px;
}

.wifi-dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.wifi-dialog-btn {
  height: 24px;
  padding: 0 16px;
  background-color: #d2d1d2;
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.78),
    inset -1px -1px 0px 0px rgba(0,0,0,0.42);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-chicago);
  font-size: 11px;
  color: #000;
  letter-spacing: -0.22px;
}

.wifi-dialog-btn:active {
  box-shadow:
    inset -1px -1px 0px 0px rgba(255,255,255,0.78),
    inset 1px 1px 0px 0px rgba(0,0,0,0.42);
}

.wifi-dialog-btn.primary {
  background-color: #171916;
  color: rgba(255,255,255,0.9);
  box-shadow:
    inset 1px 1px 0px 0px rgba(255,255,255,0.2),
    inset -1px -1px 0px 0px rgba(0,0,0,0.6);
}

/* ========== WINDOW DRAGGING ========== */
.window-titlebar {
  cursor: grab;
}

.window-titlebar:active {
  cursor: grabbing;
}

/* ========== MOBILE: FORCE LANDSCAPE & FIT SCREEN ========== */
@media screen and (max-width: 1024px) and (orientation: portrait) {
  html {
    transform: rotate(90deg);
    transform-origin: top left;
    width: 100vh;
    height: 100vw;
    position: absolute;
    top: 0;
    left: 100vw;
    overflow: hidden;
  }

  body {
    width: 100%;
    height: 100%;
  }

  .bezel-beige {
    width: 100% !important;
    height: 100% !important;
    padding: 16px 28px;
    border-radius: 0;
  }

  .bezel-gradient {
    padding: 10px;
    border-radius: 6px;
  }

  .bezel-black {
    padding: 10px;
    border-radius: 4px;
  }

  .screen {
    zoom: 0.55;
    flex: 1;
  }
}

@media screen and (max-width: 1024px) and (orientation: landscape) {
  .bezel-beige {
    padding: 16px 28px;
    border-radius: 0;
  }

  .bezel-gradient {
    padding: 10px;
    border-radius: 6px;
  }

  .bezel-black {
    padding: 10px;
    border-radius: 4px;
  }

  .screen {
    zoom: 0.55;
    flex: 1;
  }
}
