/* ========================================
   COLOR PALETTE VARIABLES
   ======================================== */
:root {
  /* Base Colors */
  --white: #f9fafb;
  --black: #1a1a1a;

  /* Gray Scale */
  --gray-primary: #26282b;
  --gray-light: #e4e7eb;
  --gray-medium: #9aa0a6;
  --gray-dark: #4f555c;

  /* Slate Scale (cool-tone grays, hsl 213° family) */
  --slate-light: #c5cdd6;
  --slate-mid: #a8b3bd;
  --slate-medium: #8a96a3;
  --slate-dark: #62707e;
  --slate-accent: #3a4a58;

  /* Mespace Brand Colors */
  --mespace-blue: #214da4;
  --mespace-blue-alt: #86a3c2;
  --mespace-purple: #6a5acd;
  --mespace-purple-dark: #483d8b;
  --mespace-orange: #fb923c;

  /* Accent Colors */
  --pink: #ff89cc;
}

@font-face {
  font-family: PixeloidSans;
  src: url("stuffs/PixeloidSans.ttf");
}

@font-face {
  font-family: PixeloidSans;
  src: url("stuffs/PixeloidSans-Bold.ttf");
  font-weight: bold;
}

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

body {
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  background: var(--gray-primary);
  height: 100vh;
  overflow: hidden;
}

/* The whole game is laid out for a 1440x860 screen. applyUiScale in
   script.js sizes #screen in pixels and scales it so it exactly covers the
   window, re-measuring on every resize. Because #screen is transformed,
   position: fixed inside it is relative to #screen, so full-screen layers
   fill it too. */
#screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform-origin: 0 0;
  overflow: hidden;
}

body.jenn-theme {
  /* swap back to the photo background any time: */
  /* background: #5193e2 url("jenn/background.png") center center / cover no-repeat; */
  /* background: radial-gradient(ellipse at 50% -10%, #8ff0e3 0%, #14b8a6 35%, #0f6b64 70%, #073430 100%); */
  background: #008080;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

body.tiffany-theme {
  /* swap back to the photo background any time: */
  /* background: #5193e2 url("tiffany/background.png") center center / cover no-repeat; */
  /* background: linear-gradient(160deg, #081b3d 0%, #14418f 35%, #2f6fce 65%, #6db2ff 100%); */
  background: #2a4a8c; /* toned-down link blue (was #2f6fce) */
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.desktop {
  width: 100%;
  height: calc(100% - 40px);
  position: relative;
}

.desktop-icon {
  position: absolute;
  width: 90px;
  height: 100px;
  min-width: 70px;
  max-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 1), -1px -1px 0 rgba(0, 0, 0, 1), 1px -1px 0 rgba(0, 0, 0, 1), -1px 1px 0 rgba(0, 0, 0, 1);
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
  user-select: none;
}

.desktop-icon span {
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  max-width: 80px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Subtle pulse on the note holding each desktop's to-do list, until opened */
.desktop-icon.hint-glow {
  animation: hint-pulse 2.8s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(255, 255, 255, 0.18); }
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.desktop-icon.selected {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px dotted rgba(255, 255, 255, 0.8);
}

.icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* App Icons (pixel art) */

.photoshop-icon {
  background-image: url("stuffs/desktop icons/photoshop.svg");
}

.internet-icon {
  background-image: url("stuffs/desktop icons/internet explorer.svg");
}

.media-player-icon {
  background-image: url("stuffs/desktop icons/media player.svg");
}

.msn-icon {
  background-image: url("stuffs/desktop icons/nsm messenger.svg");
}

.aim-icon {
  background-image: url("stuffs/desktop icons/iam messenger.svg");
}

.maplestory-icon {
  background-image: url("stuffs/desktop icons/applestory.svg");
}

.keygen-icon {
  background-image: url("stuffs/desktop icons/keygen.svg");
}

.videoeditor-icon {
  background-image: url("stuffs/desktop icons/video editor.svg");
}

.trash-icon {
  background-image: url("stuffs/desktop icons/recycle.svg");
}

.notepad-icon {
  background-image: url("stuffs/desktop icons/note file.svg");
}

.jenn-photo-3-icon {
  background-image: url("stuffs/desktop icons/image file.svg");
}

.jenn-photo-twinss-icon {
  background-image: url("stuffs/desktop icons/image file.svg");
}

.jenn-photo-isketch-icon {
  background-image: url("stuffs/desktop icons/image file.svg");
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--slate-light);
  border-top: 2px solid var(--black);
  display: flex;
  align-items: center;
}

.start-button {
  height: 40px;
  background: var(--slate-mid);
  border-right: 2px solid var(--black);
  padding: 0 20px;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.15s;
  position: relative;
}

.start-button:hover {
  background: var(--slate-medium);
}

.start-button:active {
  background: var(--slate-dark);
  transform: translateY(1px);
}

.taskbar-items {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

/* Buttons share the bar and shrink as more windows open, like Windows */
.taskbar-button {
  height: 28px;
  flex: 0 1 160px;
  min-width: 48px;
  background: var(--slate-light);
  border: 1px solid var(--black);
  border-radius: 2px;
  margin-right: 4px;
  padding: 0 6px 0 8px;
  color: var(--black);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.15s;
  overflow: hidden;
  white-space: nowrap;
}

.taskbar-button:hover {
  background: var(--slate-mid);
}

.taskbar-button.active {
  background: var(--slate-light);
}

.taskbar-button-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taskbar-button-close {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  border: 1px solid var(--black);
  background: var(--slate-light);
  color: var(--black);
  border-radius: 1px;
  opacity: 0.6;
  cursor: pointer;
}

.taskbar-button-close:hover {
  background: var(--slate-mid);
  opacity: 1;
}

.system-tray {
  flex-shrink: 0;
  height: 100%;
  background: var(--slate-light);
  border-left: 2px solid var(--black);
  padding: 0 8px;
  display: flex;
  align-items: center;
  min-width: 160px;
  justify-content: flex-end;
  gap: 6px;
}

.clock {
  color: var(--black);
  font-size: 11px;
  font-weight: normal;
  text-align: right;
  line-height: 1.2;
}

.tray-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.tray-icon {
  width: 16px;
  height: 16px;
  background: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.75;
  filter: brightness(0);
}

.tray-icon:hover {
  opacity: 1;
}

.tray-icon:nth-child(1) {
  background-image: url("stuffs/icons/speaker.svg");
}

.tray-icon:nth-child(2) {
  background-image: url("stuffs/icons/link.svg");
}

.tray-icon:nth-child(3) {
  background-image: url("stuffs/icons/disc.svg");
}

.start-menu {
  position: fixed;
  bottom: 40px;
  left: 4px;
  width: 320px;
  height: 300px;
  background: var(--slate-light);
  border: 2px solid var(--black);
  border-radius: 0;
  display: none;
  overflow: hidden;
  z-index: 1001;
}

.start-menu.visible {
  display: block;
}

.start-menu-header {
  height: 60px;
  background: var(--slate-mid);
  color: var(--black);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  border-bottom: 2px solid var(--black);
}

.start-menu-items {
  padding: 8px 0;
}

.start-menu-item {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--black);
  cursor: pointer;
  transition: background-color 0.2s;
}

.start-menu-item:hover {
  background-color: var(--slate-mid);
}

.window {
  position: absolute !important;
  min-width: 400px;
  min-height: 300px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 0;
  z-index: 100;
  display: none;
  transform: none !important;
  pointer-events: auto !important;
  overflow: hidden;
}

#jenn-app-messenger-window,
#tiff-app-nsmmessenger-window {
  min-width: 200px;
  min-height: 200px;
}

.window.visible {
  display: block;
}

.window-title-bar {
  height: 26px;
  background: var(--slate-mid);
  color: var(--black);
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: move;
  border-radius: 0;
  border-bottom: 2px solid var(--black);
}

.window-title {
  flex: 1;
  font-size: 11px;
  color: var(--black);
}

.window-controls {
  display: flex;
  gap: 2px;
}

.window-control {
  width: 16px;
  height: 16px;
  background: #e4e7eb center;
  border: 1px solid #1a1a1a;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

.window-control.min {
  background-image: url("stuffs/icons/minimize.svg");
}

.window-control.max {
  background-image: url("stuffs/icons/maximize.svg");
}

.window-control.close {
  background-image: url("stuffs/icons/close-window.svg");
}

/* ========================================
     BOOT SCREEN
     ======================================== */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Shown over everything on screens too small for the desktop layout, until
   the player chooses "play anyway". */
#small-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #5a7edc;
  border-top: 80px solid #00309c;
  border-bottom: 80px solid #00309c;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: var(--white);
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  text-align: center;
}

@media (max-width: 900px), (max-height: 560px) {
  body:not(.small-screen-dismissed) #small-screen {
    display: flex;
  }
}

.small-screen-box {
  max-width: 320px;
}

.small-screen-title {
  font-size: 32px;
  margin-bottom: 16px;
}

.small-screen-box p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

#small-screen-continue {
  font-family: inherit;
  font-size: 12px;
  padding: 6px 16px;
  background: #f0f0f0;
  border: 1px solid #000;
  cursor: pointer;
}

#power-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #000;
  align-items: center;
  justify-content: center;
}

/* Webcam heads-up, quietly under the power button */
.power-note {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  padding: 0 24px;
  text-align: center;
  font-size: 11px;
  color: #b2b2b2;
  opacity: 0.8;
}

.power-btn {
  padding: 12px;
  border: none;
  background: transparent;
  color: #b2b2b2;
  cursor: pointer;
  animation: power-pulse 2.4s ease-in-out infinite;
}

.power-btn:hover {
  color: var(--white);
}

.power-btn:focus-visible {
  outline: 1px dotted #b2b2b2;
}

/* power.svg is inlined in the HTML and filled with the button's color
   (gray, white on hover). 48px = 2x its pixel grid, so edges stay crisp. */
.power-icon {
  display: block;
}

@keyframes power-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

#boot-screen.boot-done {
  opacity: 0;
  pointer-events: none;
}

.boot-logo {
  color: var(--white);
  font-size: 40px;
  letter-spacing: 2px;
}

/* Progress bar fills block by block in flat gray (matches the power button).
   The fill starts when the boot actually runs (#boot-screen.loading), and
   its duration is set from BOOT_DURATION_MS in script.js. */
.boot-bar {
  width: 180px;
  height: 16px;
  padding: 2px;
  border: 1px solid #b2b2b2;
  border-radius: 4px;
  overflow: hidden;
}

.boot-bar-blocks {
  display: flex;
  gap: 2px;
  height: 100%;
  width: 0;
  overflow: hidden;
}

#boot-screen.loading .boot-bar-blocks {
  animation: boot-fill var(--boot-duration, 2.4s) steps(8, end) forwards;
}

.boot-bar-blocks span {
  flex: 0 0 20px;
  height: 100%;
  border-radius: 1px;
  background: #b2b2b2;
}

@keyframes boot-fill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ========================================
     LOGIN SCREEN (user selection)
     ======================================== */
#user-selection {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  flex-direction: column;
  background: #5a7edc;
  color: var(--white);
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.login-band {
  height: 80px;
  flex-shrink: 0;
  background: #00309c;
}

.login-band-top {
  border-bottom: 2px solid #9cb8f2;
}

.login-band-bottom {
  border-top: 2px solid #f0a95a;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 16px;
}

.login-left {
  flex: 1;
  max-width: 360px;
  text-align: right;
}

.login-title {
  font-size: 36px;
  margin-bottom: 12px;
}

.login-hint {
  font-size: 14px;
}

.login-divider {
  width: 1px;
  align-self: stretch;
  margin: 60px 0;
  background: rgba(255, 255, 255, 0.8);
}

.login-users {
  flex: 1;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 2px solid var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.login-user-text h3 {
  font-size: 18px;
}

.login-user-label {
  margin-top: 4px;
  color: #dbe5fb;
}

.user-option.profile-inactive {
  opacity: 0.4;
  filter: grayscale(100%);
  cursor: not-allowed;
}

.user-option.profile-inactive:hover {
  background-color: transparent;
}

.user-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-option.profile-deleted {
  opacity: 0.3;
  filter: grayscale(100%);
  cursor: not-allowed;
}

.user-option.profile-deleted:hover {
  background-color: transparent;
}

.user-option.profile-deleted .mespace-delete-account-link {
  pointer-events: none;
  visibility: hidden;
}

.window-content {
  height: calc(100% - 26px);
  /* Subtract title bar height */
  background: var(--white);
  padding: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  /* Include padding in height calculation */
}

/* Only notepad windows should have scrolling */
.window-content:has(> textarea) {
  padding: 0;
}

.window-content textarea {
  overflow: auto;
  padding: 15px;
  box-sizing: border-box;
}

#jenn-note-donthackme-window .window-content {
  overflow-y: auto;
}

/* Scrollbar styling — visible only on notepads and Tiffany's mespace profile */
.window-content textarea::-webkit-scrollbar,
#jenn-note-donthackme-window .window-content::-webkit-scrollbar,
#tiff-note-donthackme-window .window-content::-webkit-scrollbar,
.tiff-profile-scroll::-webkit-scrollbar,
#tiff-app-mediaplayer-window .media-content::-webkit-scrollbar {
  width: 14px;
}

.window-content textarea::-webkit-scrollbar-track,
#jenn-note-donthackme-window .window-content::-webkit-scrollbar-track,
#tiff-note-donthackme-window .window-content::-webkit-scrollbar-track,
.tiff-profile-scroll::-webkit-scrollbar-track,
#tiff-app-mediaplayer-window .media-content::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-left: 1px solid var(--gray-medium);
}

.window-content textarea::-webkit-scrollbar-thumb,
#jenn-note-donthackme-window .window-content::-webkit-scrollbar-thumb,
#tiff-note-donthackme-window .window-content::-webkit-scrollbar-thumb,
.tiff-profile-scroll::-webkit-scrollbar-thumb,
#tiff-app-mediaplayer-window .media-content::-webkit-scrollbar-thumb {
  background: var(--gray-medium);
  border: 1px solid var(--gray-dark);
}

.tiff-profile-scroll::-webkit-scrollbar-corner {
  background: var(--gray-light);
}

/* Ensure all images within windows stay contained */
.window-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Jenn → Mespace mock */
.browser-window {
  position: static;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}


.go-btn {
  background: none;
  cursor: pointer;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  border: none;
  align-items: center;
  justify-content: center;
  display: flex;
}

.mespace-header {
  background: var(--mespace-blue);
  color: var(--white);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--mespace-blue-alt);
}


/* Context menu styles */
.context-menu {
  position: fixed;
  background: #f0f0f0;
  border: 1px solid #000;
  border-radius: 4px;
  z-index: 2000;
  display: none;
  min-width: 120px;
}

.context-menu-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 11px;
  transition: background-color 0.2s;
}

.context-menu-item:hover {
  background-color: var(--slate-accent);
  color: var(--white);
}

/* Drag and drop styles */
.desktop-icon.dragging {
  opacity: 0.5;
  transform: scale(0.8);
}


/* ========================================
     DESKTOP EMPTIED MESSAGE
     ======================================== */
.desktop-emptied-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 32px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 1), -2px -2px 0 rgba(0, 0, 0, 1),
    2px -2px 0 rgba(0, 0, 0, 1), -2px 2px 0 rgba(0, 0, 0, 1),
    2px 0 0 rgba(0, 0, 0, 1), -2px 0 0 rgba(0, 0, 0, 1),
    0 2px 0 rgba(0, 0, 0, 1), 0 -2px 0 rgba(0, 0, 0, 1);
  opacity: 0;
  transition: opacity 2s ease;
  pointer-events: none;
  text-align: center;
  width: 80%;
}

.desktop-emptied-message.visible {
  opacity: 1;
}

/* ========================================
     ENDING SEQUENCE
     ======================================== */
#ending-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 2s ease;
}

#ending-overlay.active {
  display: flex;
}

#ending-overlay.visible {
  opacity: 1;
}

/* The quiet input line the messages are typed into, low in the screen */
.ending-chat {
  width: 440px;
  max-width: 90%;
  height: 60%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
}

/* Sent messages drift around the whole screen (positioned by script.js) */
.ending-messages {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ending-message {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-size: 14px;
  color: var(--white);
  animation: ending-fade-in 1.4s ease-out backwards;
  transition: opacity 2.5s ease;
}

.ending-message.faded {
  opacity: 0.4;
}

/* jenn's reply: still, centered, in a light hyperlink blue */
.ending-message.from-jenn {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #7aa7ff;
}

@keyframes ending-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ending-input {
  min-height: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
  color: #b2b2b2;
}

@media (prefers-reduced-motion: reduce) {
  .ending-message { animation: none; }
}

.ending-cursor {
  animation: ending-blink 1s step-end infinite;
}

@keyframes ending-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

body.ending-active .taskbar,
body.ending-active .start-menu,
body.ending-active .desktop-icons,
body.ending-active .window,
body.ending-active #phishing-overlay,
body.ending-active .phishing-popup {
  display: none !important;
}

/* ========================================
     SHARED: MEDIA PLAYER STYLES
     ======================================== */

.media-player {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--slate-light);
  font-family: "PixeloidSans", sans-serif;
}

/* Top Navigation Bar */
.media-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-primary);
}

.media-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-nav-right {
  display: flex;
  gap: 6px;
}

.media-nav-btn {
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: var(--gray-light);
}

.media-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--black);
}

.breadcrumb-arrow {
  font-size: 9px;
}

.breadcrumb {
  font-size: 11px;
}

.media-action-btn {
  background: var(--slate-light);
  border: 1px solid var(--black);
  padding: 6px 16px;
  margin-bottom: -18px;
  border-radius: 5px 5px 0px 0px;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  cursor: pointer;
}

/* Menu Bar */
.media-menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  background: var(--gray-light);
  border-bottom: 1px solid var(--black);
}

.media-menu-items {
  display: flex;
  align-items: stretch;
}

.media-menu-item {
  font-size: 11px;
  color: var(--black);
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
}

.media-menu-item:hover {
  background: var(--slate-light);
}

.media-search {
  display: flex;
  align-items: center;
  gap: 4px;
}

.media-search-container {
  position: relative;
  display: inline-block;
}

.media-search-input {
  padding: 4px 30px 4px 8px;
  border: 1px solid var(--black);
  background: var(--white);
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  width: 160px;
}

.media-search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0.6;
}


/* Main Content Area */
.media-main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.media-sidebar {
  width: 180px;
  background: var(--gray-light);
  border-right: 1px solid var(--black);
  padding: 8px 0;
  overflow-y: auto;
}

.media-sidebar-item {
  padding: 6px 12px;
  font-size: 11px;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.media-sidebar-item:hover {
  background: var(--slate-light);
}

.media-sidebar-subitem {
  padding-left: 28px;
}

/* Content Area */
.media-content {
  flex: 1;
  background: var(--white);
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
}

.media-table-header {
  display: flex;
  padding: 0px 12px;
  border-bottom: 1px solid var(--black);
  font-size: 10px;
  color: var(--gray-dark);
}

.media-header-cell {
  padding: 6px 8px;
  border-right: 1px solid var(--black);
}

.media-header-cell:last-child {
  border-right: none;
}

/* Album Grid (Jenn) */
.media-album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

/* Album Sections (Tiffany) */
.media-sections {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.media-section-label {
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  color: var(--black);
  text-align: left;
  margin-bottom: 8px;
}

.media-section-row {
  display: flex;
  gap: 60px;
  padding: 0px 24px;
}

.media-section-divider {
  height: 1px;
  background: var(--gray-dark);
  width: 100%;
}

.media-album-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.media-album-item:hover .media-album-title {
  text-decoration: underline;
}

.media-album-cover {
  width: 120px;
  height: 120px;
  border: 1px solid var(--black);
  background: var(--gray-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder-cover {
  background: var(--gray-light);
}


.media-album-title {
  font-size: 11px;
  color: var(--black);
  font-weight: bold;
  text-align: center;
  margin-bottom: 2px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-album-artist {
  font-size: 10px;
  color: var(--gray-dark);
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Playback Controls */
.media-controls {
  background: var(--slate-light);
  border-top: 1px solid var(--black);
  padding: 12px;
  display: flex;
  justify-content: center;
}

.media-controls-inner {
  background: var(--gray-light);
  border: 1px solid var(--black);
  border-radius: 24px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-control-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.media-control-divider {
  color: var(--black);
  font-size: 14px;
  margin: 0 4px;
}

.media-volume-slider {
  width: 80px;
  height: 4px;
  background: var(--slate-light);
  border-radius: 2px;
  position: relative;
  margin-left: 8px;
}

.media-slider-track {
  width: 60%;
  height: 100%;
  background: var(--slate-dark);
  border-radius: 2px;
}

.media-slider-thumb {
  position: absolute;
  left: 60%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--white);
  border: 1px solid var(--slate-dark);
  border-radius: 50%;
  cursor: pointer;
}

/* ========================================
     SHARED: PHOTO EDITOR STYLES
     ======================================== */

.photo-editor {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--gray-light);
  font-family: "PixeloidSans", sans-serif;
}

/* Menu Bar */
.photo-menu-bar {
  background: var(--gray-light);
  padding: 0;
  border-bottom: 1px solid var(--black);
  display: flex;
  align-items: stretch;
  font-size: 11px;
}

.photo-menu-item {
  cursor: pointer;
  color: var(--black);
  padding: 4px 8px;
  display: flex;
  align-items: center;
}

.photo-menu-item:hover {
  background: var(--slate-light);
}

/* Top Toolbar */
.photo-toolbar {
  background: var(--gray-light);
  padding: 6px 8px;
  border-bottom: 1px solid var(--black);
}

.photo-toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.photo-tool-btn {
  background: var(--gray-light);
  border: none;
  padding: 4px 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-dropdown {
  background: var(--white);
  border: 1px solid var(--black);
  padding: 4px 8px;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  cursor: pointer;
}

.photo-dropdown:disabled {
  cursor: pointer;
  opacity: 1;
  color: inherit;
}

.photo-toolbar-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--black);
  margin: 0 4px;
  vertical-align: middle;
  font-size: 0;
}

.photo-sidebar-divider {
  width: 70%;
  height: 1px;
  background: var(--black);
  margin: 2px auto;
}

.photo-color-box {
  width: 60px;
  height: 28px;
  background: linear-gradient(to bottom,
      #9aaabb 0%,
      #9aaabb 50%,
      #ffffff 50%,
      #ffffff 100%);
  border: 1px solid var(--black);
}

/* Main Content Area */
.photo-main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Tools Sidebar */
.photo-tools-sidebar {
  width: 48px;
  background: var(--gray-light);
  border-right: 1px solid var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-sidebar-tool {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-sidebar-tool:hover {
  background: var(--slate-light);
}

.photo-sidebar-tool.active {
  background: var(--slate-light);
}

/* Canvas Area */
.photo-canvas-area {
  flex: 1;
  background: #505c6a;
  position: relative;
  overflow: hidden;
}

/* Document Windows */
.photo-document {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--black);
}

.photo-document-title {
  background: var(--slate-light);
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  border-bottom: 1px solid var(--black);
}

.photo-document-controls {
  display: flex;
  gap: 4px;
}

.photo-document-controls button {
  background: none;
  border: 1px solid var(--black);
  width: 12px;
  height: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.photo-document-canvas {
  background: var(--gray-light);
  height: calc(100% - 28px - 16px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-document-canvas img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.photo-document-statusbar {
  background: var(--slate-light);
  display: flex;
  height: 22px;
  border-top: 1px solid var(--black);
  overflow: hidden;
  flex-shrink: 0;
}

.photo-status-zoom {
  background: var(--gray-medium);
  font-size: 9px;
  padding: 0 6px;
  white-space: nowrap;
  border-right: 1px solid var(--black);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.photo-status-dims {
  background: var(--gray-light);
  color: var(--black);
  font-size: 9px;
  padding: 0 6px;
  white-space: nowrap;
  border-right: 1px solid var(--black);
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

/* Right Sidebar */
.photo-right-sidebar {
  width: 320px;
  background: var(--gray-light);
  border-left: 1px solid var(--black);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Panels */
.photo-panel {
  border-bottom: 1px solid var(--black);
}

.photo-panel-header {
  background: var(--gray-light);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
  border-bottom: 1px solid var(--black);

}

.photo-panel-content {
  padding: 12px;
  background: var(--white);
  justify-content: space-between;

}

/* Navigator */
.photo-navigator {
  width: 100%;
  height: 130px;
  background: #e8e8e8;
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.photo-navigator img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-zoom-slider {
  display: flex;
  align-items: center;
  gap: 6px;
}

.photo-zoom-btn {
  background: var(--white);
  border: 1px solid var(--black);
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.photo-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: linear-gradient(to right, var(--slate-dark) 50%, var(--slate-light) 50%);
  border-radius: 2px;
  cursor: pointer;
  outline: none;
}

.photo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: var(--white);
  border: 1px solid var(--slate-dark);
  border-radius: 50%;
  cursor: pointer;
}

.photo-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--white);
  border: 1px solid var(--slate-dark);
  border-radius: 50%;
  cursor: pointer;
  box-sizing: border-box;
}

.photo-slider::-moz-range-track {
  height: 4px;
  background: var(--slate-dark);
  border-radius: 2px;
}

/* Swatches */
.photo-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.photo-swatch {
  width: 16px;
  height: 16px;
  border: 1px solid var(--black);
  cursor: pointer;
}

/* Blend Controls */
.photo-blend-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.photo-blend-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.photo-lock-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-lock-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.photo-lock-btn {
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Layers */
.photo-layer {
  display: flex;
  align-items: center;
  padding: 8px 4px;
  gap: 8px;
  border-bottom: 1px solid var(--black);
}

.photo-layer.active {
  background: var(--slate-light);
}

.photo-layer-visibility {
  background: transparent;
  border: 1px solid var(--gray-medium);
  width: 20px;
  height: 20px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-layer-thumb {
  width: 36px;
  height: 24px;
  border: 1px solid var(--black);
}

.photo-layer-name {
  flex: 1;
  font-size: 11px;
  padding: 5px;
}

.photo-layer-lock {
  background: transparent;
  border: none;
  width: 16px;
  height: 16px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.photo-layer-controls {
  display: flex;
  justify-content: flex-end;
  padding: 8px;
  gap: 8px;
  border-top: 1px solid var(--gray-light);
}

.photo-layer-control-btn {
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Mespace Styles */
.menu-bar {
  background-color: var(--gray-light);
  padding: 0;
  border-bottom: 1px solid var(--gray-dark);
}

.menu-items {
  display: flex;
  align-items: stretch;
  font-size: 11px;
}

.menu-items span {
  padding: 4px 8px;
  display: flex;
  align-items: center;
}

.menu-items span:hover {
  background-color: var(--slate-light);
  cursor: pointer;
}

.toolbar {
  background-color: var(--gray-light);
  padding: 4px 4px 4px 0;
  border-bottom: 1px solid var(--gray-dark);
}

.toolbar-items {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  border-right: 1px solid #4f555c;
}

.toolbar-group:last-child {
  border-right: none;
}

.toolbar-btn {
  padding: 4px 6px;
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn:hover {
  background-color: #e5e7eb;
}

.address-bar {
  background-color: var(--gray-light);
  padding: 4px 8px;
  border-bottom: 1px solid #d1d5db;
}

.address-items {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-label {
  font-size: 11px;
}

.address-input {
  flex: 1;
  padding: 4px 8px;
  font-size: 11px;
  border: 1px solid #1a1a1a;
  font-family: "PixeloidSans", sans-serif;
}

.main-content {
  background-color: var(--white);
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ========================================
     SHARED: MESPACE INTERFACE STYLES
     ======================================== */

.header-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.mespace-right-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex: 1;
}

.mespace-nav-tabs {
  display: flex;
  width: 100%;
}

.mespace-tab {
  padding: 4px 12px;
  font-size: 11px;
  border-right: 1px solid #d1d5db;
  text-wrap: nowrap;
  background: transparent;
  cursor: pointer;
  font-family: "PixeloidSans", sans-serif;
  flex: 1;
}

.mespace-tab.active {
  background-color: var(--white);
  color: var(--mespace-blue);
}

.mespace-tab:last-child {
  border-right: none;
}

.mespace-search-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 8px;
}

.mespace-search-input {
  padding: 4px 8px;
  font-size: 11px;
  border: 1px solid #d1d5db;
  flex: 1;
  background-color: var(--white);
  font-family: "PixeloidSans", sans-serif;
}

.mespace-search-btn {
  background-color: var(--white);
  color: var(--mespace-blue);
  padding: 4px 12px;
  font-size: 11px;
  border: 1px solid var(--black);
  cursor: pointer;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-sub-nav {
  background-color: var(--mespace-blue-alt);
  padding: 8px 16px;
}

.mespace-sub-nav-items {
  display: flex;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  justify-content: space-between;
}

.mespace-sub-nav-item {
  padding: 4px 8px;
  color: var(--white);
  cursor: pointer;
  border-right: 1px solid #1a1a1a;
}

.mespace-sub-nav-item:last-child {
  border-right: none;
}

.mespace-content-area {
  display: flex;
  padding: 16px;
  gap: 16px;
  flex: 1;
  overflow: hidden;
}

.mespace-left-column {
  flex: 1;
  overflow: hidden;
}

.mespace-section {
  margin-bottom: 16px;
}

.mespace-section-header-videos {
  background: linear-gradient(to bottom, var(--slate-light), #f9fafb);
  padding: 8px 12px;
  font-size: 12px;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-section-header-music {
  background-color: var(--slate-light);
  padding: 8px 12px;
  font-size: 12px;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-section-content {
  background-color: var(--white);
  border-top: none;
  padding: 12px;
}

.mespace-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex: 1;
}

.mespace-video-item {
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.mespace-video-thumb {
  width: 100%;
  height: 64px;
  margin: 0 auto 8px;
}

.mespace-video-thumb.green {
  background-image: url("jenn/myspace components/real ninjas thumbnail.png");
  background-size: cover;
}

.mespace-video-thumb.orange {
  background-image: url("jenn/myspace components/circle circle dot dot.png");
  background-size: cover;
}

.mespace-video-thumb.pink {
  background-image: url("jenn/myspace components/tsukurimashou.png");
  background-size: cover;
}

.mespace-video-title {
  font-size: 11px;
  font-weight: bold;
  color: var(--black);
  font-family: "PixeloidSans", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.mespace-video-user {
  font-size: 9px;
  color: #6b7280;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-categories-content {
  background-color: var(--gray-light);
  border: 1px solid #c2c8d1;
  padding: 12px;
  margin-top: -20px;
}

.mespace-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 32px;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-category-link {
  color: var(--mespace-blue);
  font-size: 11px;
  margin: -3px;
  cursor: pointer;
}

.mespace-music-item {
  display: flex;
  align-items: top;
  gap: 12px;
}

.mespace-music-thumb {
  width: 175px;
  height: 175px;
  background-image: url("jenn/myspace components/the medic droid.jpg");
  background-size: contain;
}

.mespace-music-title {
  font-size: 11px;
  color: #1a1a1a;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-music-genre {
  font-size: 9px;
  color: var(--gray-dark);
  font-family: "PixeloidSans", sans-serif;
}

.mespace-login-header {
  background-color: var(--mespace-blue);
  color: var(--white);
  padding: 8px 12px;
  font-size: 12px;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-login-content {
  background-color: var(--white);
  border: 1px solid var(--mespace-blue);
  border-top: none;
  padding: 16px;
}

.mespace-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mespace-login-error {
  color: #dc2626;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  text-align: center;
  padding: 8px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
}

.mespace-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mespace-form-row label {
  font-size: 11px;
  width: 100px;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-form-input {
  flex: 1;
  padding: 4px 8px;
  font-size: 11px;
  border: 1px solid var(--black);
  background-color: var(--white);
  font-family: "PixeloidSans", sans-serif;
}

.mespace-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mespace-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mespace-checkbox {
  width: 12px;
  height: 12px;
}

.mespace-form-buttons {
  display: flex;
  gap: 8px;
  justify-content: right;
}

.mespace-login-btn {
  background-color: #e5e7eb;
  border: 1px solid var(--black);
  padding: 4px 16px;
  font-size: 11px;
  cursor: pointer;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-signup-btn {
  background-color: var(--mespace-orange);
  border: 1px solid var(--black);
  padding: 4px 16px;
  font-size: 11px;
  cursor: pointer;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-forgot-password {
  text-align: right;
}

.mespace-forgot-password a {
  color: var(--mespace-blue);
  font-size: 11px;
  text-decoration: none;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-people-header {
  background-color: #f0d4b6;
  padding: 8px 12px;
  font-size: 12px;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-people-content {
  background-color: var(--white);
  border: 1px solid #f0d4b6;
  border-top: none;
  padding: 12px;
}

.mespace-people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
}

.mespace-person-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mespace-person-name {
  margin-bottom: 4px;
  color: var(--black);
}

.mespace-person-thumb {
  width: 100%;
  height: 64px;
}

.mespace-person-thumb.red {
  background-image: url("jenn/myspace components/domo.jpg");
  background-size: cover;
}

.mespace-person-thumb.brown {
  background-image: url("jenn/myspace components/pedobear.jpg");
  background-size: cover;
}

.mespace-person-thumb.pink-light {
  background-image: url("jenn/myspace components/giggles.jpeg");
  background-size: cover;
}

.mespace-footer {
  background-color: var(--gray-light);
  padding: 4px 8px;
  border-top: 1px solid #4f555c;
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.mespace-footer-text {
  font-size: 11px;
  color: #6b7280;
  font-family: "PixeloidSans", sans-serif;
}

/* Log out is a mespace (website) feature, so it's themed per profile and
   floats in the profile's bottom-right corner, just above the status bar
   (anchored to the window, same as the status bar). */
.profile-logout-btn {
  position: absolute;
  right: 12px;
  bottom: 32px;
  z-index: 11;
  padding: 4px 14px;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  cursor: pointer;
}

/* jenn: black boxes, purple borders, pink text */
.jenn-logout-btn {
  background: var(--black);
  border: 1px solid var(--mespace-purple);
  color: var(--pink);
}

.jenn-logout-btn:hover {
  background: var(--mespace-purple-dark);
  color: var(--white);
}

/* tiffany: dark checkered page, deep red accents */
.tiff-logout-btn {
  right: 26px;
  background: #1a1a1a;
  border: 1px solid #930000;
  color: #f9fafb;
}

.tiff-logout-btn:hover {
  background: #930000;
}

/* ========================================
     SHARED: MESPACE PROFILE STYLES
     ======================================== */

.mespace-profile-page {
  height: 100%;
  background: var(--gray-primary);
  display: flex;
  flex-direction: column;
}

.mespace-profile-container {
  display: flex;
  gap: 10px;
  padding: 20px;
  background: var(--gray-primary);
  flex: 1;
  overflow: hidden;
}

.mespace-profile-left {
  flex: 0.75;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.mespace-profile-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.mespace-profile-section {
  background: var(--black);
  border: 1px solid var(--mespace-purple);
  padding: 15px;
  flex-shrink: 0;
  height: fit-content;
}

.mespace-profile-section h3 {
  color: var(--pink);
  font-family: "PixeloidSans", sans-serif;
  font-size: 12px;
  margin-bottom: 10px;
}

.mespace-profile-section h4 {
  color: var(--pink);
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.mespace-profile-section p {
  color: var(--white);
  font-family: "PixeloidSans", sans-serif;
  font-size: 9px;
  margin: 5px 0;
  line-height: 1.4;
}

.mespace-profile-section a {
  color: var(--mespace-blue);
  text-decoration: none;
}

.mespace-profile-section a:hover {
  text-decoration: underline;
}

.mespace-profile-content {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.mespace-profile-pic img {
  width: 120px;
  height: auto;
}

.mespace-profile-info {
  flex: 1;
  padding: 10px;
}

.mespace-profile-bottom {
  margin-top: 10px;
  padding-left: 0;
}

.mespace-banner {
  height: 250px;
  background-image: url("jenn/myspace components/myspace banner.png");
  background-size: 100%;
  padding: 0;
  margin: -15px;
}

.mespace-actions {
  text-align: center;
  overflow: hidden;
  height: 130px;
  background-image: url("jenn/myspace components/contact2.png");
  background-size: cover;
  background-repeat: no-repeat;
  padding: 0;
  margin: -15px;
}

/* default is Jenn's — Tiffany overrides this with #tiff-app-internet-window .mespace-music-player */
.mespace-music-player {
  background-image: url("jenn/myspace components/mediaplayer.svg");
  height: 85px;
  background-size: 100% 100%;
  background-repeat: repeat;
  margin-top: 0;
  padding: 0;
}

/* ============================================================================
   JENN-ONLY: KEYGEN APP STYLES
   ============================================================================ */

.keygen-content {
  background-color: var(--black);
  color: #ffffff;
  font-family: "PixeloidSans", sans-serif;
  padding: 20px;
  height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.keygen-ascii-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.keygen-ascii-text {
  font-family: "Courier New", monospace;
  font-size: 3px;
  text-align: center;
  white-space: pre;
  line-height: 1;
  padding: 0;
  overflow: hidden;
}

.keygen-selection-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.keygen-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.keygen-label {
  font-size: 12px;
  color: #ffffff;
  text-transform: lowercase;
}

.keygen-dropdown {
  background-color: var(--gray-light);
  color: var(--black);
  border: none;
  padding: 10px 12px;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  min-width: 200px;
  cursor: pointer;
}

.keygen-dropdown:focus {
  outline: none;
  border-color: #ff69b4;
}

.keygen-dropdown option {
  background-color: #2a2a2a;
  color: #ffffff;
}


.keygen-generate-btn {
  background-color: var(--pink);
  border: none;
  padding: 12px 24px;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.keygen-generate-btn:hover {
  background-color: rgb(192, 58, 129);
}

.keygen-output-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.keygen-output-box {
  background-color: #2a2a2a;
  color: var(--pink);
  border: 1px solid #555555;
  padding: 12px;
  font-size: 11px;
  border-radius: 4px;
  min-width: 300px;
  text-align: center;
  user-select: all;
  cursor: text;
  word-break: break-all;
}

.keygen-output-box:focus {
  outline: none;
  border-color: #ff69b4;
}

/* ========================================
     SOFTWARE ACTIVATION MODAL
     ======================================== */

#activation-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}

#activation-modal.visible {
  display: flex;
}

.activation-dialog {
  background: var(--gray-light);
  border: 2px solid var(--black);
  width: 420px;
}

.activation-body {
  padding: 20px;
  border-bottom: 1px solid var(--gray-medium);
}

.activation-content {
  flex: 1;
}

.activation-content p {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--black);
}

.activation-content label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
  color: var(--black);
}

#activation-key-input {
  width: 100%;
  border: 1px solid var(--black);
  padding: 5px 8px;
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 2px;
  background: var(--white);
  box-sizing: border-box;
  outline: none;
}

#activation-key-input:focus {
  border-color: var(--slate-accent);
  box-shadow: 0 0 0 1px var(--slate-accent);
}

.activation-error {
  display: none;
  margin-top: 16px;
}

.activation-content p.activation-error {
  color: #dc2626;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  text-align: center;
  padding: 8px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  margin-top: 16px;
}

.activation-error.visible {
  display: block;
}

#applestory-login-error {
  color: #dc2626;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  text-align: center;
  padding: 8px;
}

.activation-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 16px;
}

.activation-buttons button {
  padding: 4px 18px;
  border: 1px solid var(--black);
  background: var(--slate-light);
  cursor: pointer;
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  color: var(--black);
}

.activation-buttons button:hover {
  background: var(--slate-mid);
}

.activation-buttons button:active {
  background: var(--slate-medium);
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.shake {
  animation: shake 0.35s ease;
}

/* ========================================
     TEXTAREAS
     ======================================== */
textarea {
  max-width: 100%;
  resize: vertical;
}

/* ========================================
   SHARED: NSM MESSENGER STYLES
   ======================================== */

.nsm-messenger {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "PixeloidSans", sans-serif;
}

.nsm-header {
  background: var(--slate-dark);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--black);
}

.nsm-user-avatar {
  width: 80px;
  height: 80px;
  border: 1px solid var(--black);
  background: var(--white);
}

.nsm-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsm-user-info {
  flex: 1;
  color: var(--black);
}

.nsm-user-name {
  font-size: 14px;
  margin-bottom: 4px;
}

.nsm-user-status {
  font-size: 11px;
  margin-bottom: 8px;
}

.nsm-search-section {
  background: var(--white);
  padding: 8px 12px;
  border-bottom: 1px solid var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.nsm-search-input {
  flex: 1;
  padding: 4px 28px 4px 8px;
  border: 1px solid #9aa0a6;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
}

.nsm-search-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  position: absolute;
  right: 94px;
  pointer-events: none;
}

.nsm-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.nsm-icon-btn img {
  width: 20px;
  height: 20px;
}

.nsm-contacts-section {
  flex: 1;
  background: var(--white);
  overflow: hidden;
  padding: 8px 0;
}

.nsm-contacts-header {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--black);
}

.nsm-buddy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nsm-buddy-item {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nsm-buddy-item:hover {
  background-color: var(--gray-light);
}

.nsm-buddy-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nsm-buddy-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsm-buddy-details {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nsm-buddy-name {
  font-size: 11px;
  color: var(--black);
  flex-shrink: 0;
}

.nsm-buddy-name.online {
  color: #059669;
}

.nsm-buddy-name.offline {
  color: var(--gray-medium);
}

.nsm-buddy-message {
  font-size: 10px;
  color: var(--gray-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* ========================================
   NSM CHAT WINDOW STYLES
   ======================================== */

.nsm-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  font-family: "PixeloidSans", sans-serif;
  background: var(--white);
}

.nsm-chat-menubar {
  background: var(--slate-dark);
  padding: 0;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--black);
}

.nsm-chat-menu-item {
  font-size: 11px;
  color: var(--white);
  cursor: pointer;
  padding: 8px 10px;
  display: flex;
  align-items: center;
}

.nsm-chat-menu-item:hover {
  background: var(--slate-light);
}

.nsm-chat-main {
  display: flex;
  flex-direction: row;
  padding: 20px;
  gap: 26px;
}

.nsm-chat-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.nsm-chat-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nsm-chat-top {
  display: flex;
  flex-direction: column;
}

.nsm-chat-bottom {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.nsm-chat-avatar {
  width: 100px;
  height: 100px;
  border: 1px solid var(--black);
  flex-shrink: 0;
}

.nsm-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsm-chat-user-info {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.nsm-chat-username {
  font-size: 16px;
  color: var(--black);
  margin-bottom: 4px;
}

.nsm-chat-username span {
  font-size: 12px;
  color: var(--gray-dark);
  font-weight: normal;
}

.nsm-chat-status-msg {
  font-size: 11px;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.nsm-chat-divider {
  height: 1px;
  background: var(--slate-light);
  margin-bottom: 4px;
}

.nsm-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}

.nsm-chat-message {
  display: flex;
  flex-direction: column;
}

.nsm-chat-message-header {
  font-size: 11px;
  color: var(--black);
  margin-bottom: 2px;
}

.nsm-chat-message-text {
  font-size: 11px;
  color: var(--black);
  padding-left: 12px;
}

.nsm-chat-message-text::before {
  content: "•";
  margin-right: 4px;
}

.nsm-chat-timestamp {
  font-size: 8px;
  color: var(--gray-medium);
  margin-top: 12px;
}

.nsm-chat-input {
  flex: 1;
  border: 1px solid var(--black);
  padding: 8px;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  resize: none;
  background: var(--white);
  min-height: 85px;
}

.nsm-chat-toolbar-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.nsm-chat-toolbar-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.nsm-chat-toolbar-btn img {
  width: 18px;
  height: 18px;
}

.nsm-chat-toolbar-divider {
  width: 1px;
  height: 18px;
  background: var(--black);
  margin: 0 4px;
}


.nsm-chat-my-avatar {
  width: 100px;
  height: 100px;
  border: 1px solid var(--black);
  flex-shrink: 0;
}

.nsm-chat-my-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsm-chat-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--black);
  border-top: none;
  background: var(--white);
}

/* ============================================================================
   JENN-ONLY: SONY VEGAS VIDEO EDITOR STYLES
   ============================================================================ */

.vegas-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "PixeloidSans", sans-serif;
  background: var(--gray-light);
  font-size: 11px;
}

.vegas-menubar {
  background: var(--gray-light);
  padding: 0;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--black);
}

.vegas-menu-item {
  font-size: 11px;
  color: var(--black);
  cursor: pointer;
  padding: 4px 10px;
  display: flex;
  align-items: center;
}

.vegas-menu-item:hover {
  background: var(--slate-light);
}

.vegas-toolbar {
  background: var(--gray-light);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--black);
}

.vegas-toolbar img {
  width: 20px;
  height: 20px;
  padding: 2px;
  cursor: pointer;
}

.vegas-toolbar img:hover {
  background: var(--slate-light);
}

.vegas-toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--gray-medium);
  margin: 0 6px;
}

.vegas-main {
  display: flex;
  min-height: 0;
  height: 300px;
  flex-shrink: 0;
}

.vegas-left-panel {
  flex: 1;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vegas-fx-content {
  display: flex;
  flex: 1;
  min-height: 0;
}

.vegas-fx-left {
  width: 160px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--black);
  flex-shrink: 0;
}

.vegas-search-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-light);
  border-bottom: 1px solid var(--black);
  padding: 6px 8px;
  font-size: 11px;
  color: var(--gray-medium);
}

.vegas-search-box img {
  width: 12px;
  height: 12px;
  opacity: 0.3;
}

.vegas-effects-list {
  flex: 1;
  overflow: hidden;
  background: var(--white);
  padding: 5px 0px;
}

.vegas-effect-item {
  padding: 2px 10px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vegas-effect-item:hover {
  background: var(--slate-light);
}

.vegas-effect-item.selected {
  background: var(--slate-medium);
  color: var(--white);
}

.vegas-preset-panel {
  flex: 1;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.vegas-preset-label {
  background: var(--gray-light);
  font-size: 11px;
  color: var(--black);
  padding: 6px 8px;
  border-bottom: 1px solid var(--black);
}

.vegas-preset-grid {
  padding: 0px 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.vegas-preset-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  cursor: pointer;
  padding: 4px;
  width: 100px;
}

.vegas-preset-item img {
  width: 100%;
  height: 60px;
  border: 1px solid var(--black);
  object-fit: cover;
}

.vegas-preset-item span {
  color: var(--black);
  text-align: center;
}

.vegas-right-panel {
  width: 380px;
  display: flex;
  flex-direction: column;
  background: var(--black);
  border: 1px solid var(--black);
  border-bottom: none;
  border-right: none;
  flex-shrink: 0;
}

.vegas-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  min-height: 0;
  overflow: hidden;
}

.vegas-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.vegas-preview-controls {
  background: var(--gray-light);
  padding: 12px 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.vegas-preview-controls img {
  width: 21px;
  height: 21px;
  cursor: pointer;

}

.vegas-tabs {
  display: flex;
  background: var(--gray-light);
  padding-left: 0;
  border-top: 1px solid var(--black);
}

.vegas-tab {
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid var(--black);
  border-top: none;
  border-bottom: none;
  background: var(--gray-light);
  margin-right: -1px;
}

.vegas-tab:first-child {
  border-left: none;
}

.vegas-tab.active {
  background: var(--slate-dark);
  color: var(--white);
  position: relative;
  z-index: 1;
}

.vegas-tab:hover:not(.active) {
  background: var(--slate-light);
}

.vegas-timeline {
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.vegas-timeline-header {
  display: flex;
  background: var(--gray-light);
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  align-items: center;
  padding: 0;
}

.vegas-time-display {
  padding: 4px 7.5px;
  font-family: "PixeloidSans", sans-serif;
  font-size: 14px;
  border-right: 1px solid var(--black);
}

.vegas-timeline-controls {
  display: flex;
  gap: 4px;
  padding: 5px 8px;
  border-right: 1px solid var(--black);
}

.vegas-timeline-controls img {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.vegas-timeline-controls img:hover {
  opacity: 1;
}

.vegas-timeline-ruler {
  flex: 1;
  display: flex;
  padding: 0px 4px;
  color: var(--black);
  font-size: 10px;
  font-family: "PixeloidSans", sans-serif;
  background: var(--gray-light);
}

.vegas-timeline-ruler span {
  flex: 1;
  padding: 5px 5px;
  border-right: 1px solid var(--black);
}

.vegas-timeline-ruler span:last-child {
  border-right: none;
}

.vegas-tracks {
  flex: 1;
  padding: 0 0 8px 0;
  display: flex;
  position: relative;
  flex-direction: column;
  overflow: hidden;
}

.vegas-track {
  display: flex;
  border-bottom: 1px solid var(--black);
  height: 80px;
  flex-shrink: 0;
}

.vegas-track.video .vegas-track-content {
  background-color: var(--slate-light);
  background-image: repeating-linear-gradient(90deg,
      transparent,
      transparent calc(50% - 1px),
      rgba(0, 0, 0, 0.15) calc(50% - 1px),
      rgba(0, 0, 0, 0.15) 50%);
}

.vegas-track-header {
  width: 100px;
  background: var(--gray-light);
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid var(--black);
  flex-shrink: 0;
  gap: 4px;
}

.vegas-track-name {
  color: var(--black);
  font-size: 11px;
  font-weight: bold;
}

.vegas-track-controls {
  display: flex;
  gap: 4px;
}

.vegas-track-btn {
  background: var(--gray-medium);
  color: var(--black);
  font-size: 9px;
  padding: 1px 5px;
  border: 1px solid var(--gray-dark);
  cursor: pointer;
}

.vegas-track-btn:hover {
  background: var(--gray-dark);
  color: var(--white);
}

.vegas-track-slider {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vegas-track-slider span {
  font-size: 9px;
  color: var(--gray-dark);
  width: 24px;
}

.vegas-slider {
  width: 50px;
  height: 6px;
  background: var(--slate-light);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.vegas-slider-track {
  width: 100%;
  height: 100%;
  background: var(--slate-dark);
  border-radius: 3px;
}

.vegas-slider-thumb {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--white);
  border: 1px solid var(--slate-dark);
  border-radius: 50%;
  cursor: pointer;
}

.vegas-track-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.vegas-clip {
  position: absolute;
  top: 2px;
  left: 0px;
  bottom: 2px;
  right: 0px;
  overflow: hidden;
  display: flex;
  background-color: var(--slate-light);
}

.vegas-clip.video-clip img {
  height: 100%;
  width: auto;
  object-fit: cover;
  border-right: 1px solid var(--white);
}

.vegas-clip.audio-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.vegas-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100px + (100% - 100px) * 0.1);
  width: 2px;
  background: var(--slate-dark);
  z-index: 10;
  pointer-events: none;
}

.vegas-playhead::before {
  content: '';
  position: absolute;
  left: -4px;
  width: 12px;
  height: 12px;
  background: var(--slate-dark);
  border-radius: 100%;
}

/* ============================================================================
   TIFFANY'S MESPACE - VIDEO THUMBNAIL CLASSES
   ============================================================================ */

.mespace-video-thumb.chinese-bsb {
  background-image: url("tiffany/myspace components/chinese backstreet boys thumbnail.png");
  background-size: cover;
  background-position: center;
}

.mespace-video-thumb.theballs {
  background-image: url("tiffany/myspace components/the\ balls\ are\ inert.png");
  background-size: cover;
  background-position: center;
}

.mespace-video-thumb.meganddia {
  background-image: url("tiffany/myspace components/monster thumbnail.png");
  background-size: cover;
  background-position: center;
}

/* ============================================================================
   TIFFANY'S MESPACE - PERSON THUMBNAIL CLASSES
   ============================================================================ */

.mespace-person-thumb.ponzi-tiff {
  background-image: url("tiffany/myspace components/pon\ zi.jpg");
  background-size: cover;
  background-position: center;
}

.mespace-person-thumb.gloomy {
  background-image: url("tiffany/myspace components/gloomy bear.jpg");
  background-size: cover;
  background-position: center;
}

.mespace-person-thumb.danbo {
  background-image: url("tiffany/myspace components/danbo.jpg");
  background-size: cover;
  background-position: center;
}

/* ============================================================================
   TIFFANY - SCOPED OVERRIDES
   ============================================================================ */

/* Media Player */
#tiff-app-mediaplayer-window .media-album-item {
  width: 100px;
}

#tiff-app-mediaplayer-window .media-album-cover {
  border-color: var(--gray-dark);
}

/* Mespace */
#tiff-app-internet-window .mespace-music-thumb {
  background-image: url("tiffany/myspace components/nevershoutnever.png");
  background-size: cover;
  background-position: center;
}

#tiff-app-internet-window .mespace-banner {
  background-image: url("tiffany/myspace components/tiff\ myspace\ banner.png");
  background-size: cover;
  background-position: center;
}

#tiff-app-internet-window .mespace-music-player {
  background-image: url("tiffany/myspace components/mediaplayertiff.svg");
  margin-top: -15px;
}

/* ============================================================================
   TIFFANY'S MESPACE PROFILE PAGE
   ============================================================================ */

/* Profile page container — flex sibling of main-content inside browser-window */
#tiff-mespace-profile-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Scrollable content area */
.tiff-profile-scroll {
  flex: 1;
  overflow-y: scroll;
  min-height: 0;
}

/* Dark checkered background */
.tiff-profile-bg {
  background-color: #1a1a1a;
  position: relative;
  padding: 25px 0;
  display: flex;
  justify-content: center;
  gap: 0;
  min-height: 100%;
}

.tiff-profile-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("tiffany/myspace components/check background.jpg");
  background-size: 259px 259px;
  opacity: 0.2;
  pointer-events: none;
}

/* ---- Left column ---- */
.tiff-profile-left-col .mespace-music-player {
  margin: 0;
  width: 100%;
}

.tiff-profile-left-col {
  flex: 0 0 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.tiff-profile-info-block {
  background: #000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  flex-shrink: 0;
}

.tiff-profile-content-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}


.tiff-profile-name-bar {
  background: #930000;
  height: 8px;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.tiff-profile-name-bar p {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #f9fafb;
  font-family: "PixeloidSans", sans-serif;
  font-size: 13px;
  white-space: nowrap;
  line-height: normal;
}

.tiff-profile-pic-wrap {
  width: 120px;
  height: 130px;
  overflow: hidden;
  flex-shrink: 0;
}

.tiff-profile-pic-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
}

.tiff-profile-mood {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: "PixeloidSans", sans-serif;
  font-size: 9px;
  color: #f9fafb;
  line-height: normal;
}

.tiff-profile-sub-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.tiff-profile-quote {
  font-family: "PixeloidSans", sans-serif;
  font-size: 9px;
  color: #f9fafb;
  text-align: left;
  width: 100%;
  line-height: 1.4;
}

.tiff-profile-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
  width: 100%;
}

.tiff-profile-details p {
  font-family: "PixeloidSans", sans-serif;
  font-size: 9px;
  color: #f9fafb;
  line-height: normal;
}

.tiff-online-badge {
  width: 75px;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.tiff-profile-contact {
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}

.tiff-profile-contact img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
}

.tiff-profile-url-block {
  background: #000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  flex-shrink: 0;
}

.tiff-url-text {
  font-family: "PixeloidSans", sans-serif;
  font-size: 9px;
  color: #f9fafb;
  line-height: normal;
}

/* Red section header (5px bar with overflowing label) */
.tiff-section-header {
  background: #930000;
  height: 5px;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.tiff-section-header p {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 5px;
  color: #f9fafb;
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  white-space: nowrap;
  line-height: normal;
}

/* ---- Right column ---- */
.tiff-profile-right-col {
  flex: 0 0 520px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.tiff-profile-banner {
  width: 100%;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

.tiff-profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
}

.tiff-profile-section-block {
  background: #000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 15px 15px;
  flex-shrink: 0;
}

.tiff-section-body {
  padding: 0 5px;
}

.tiff-profile-body-text {
  font-family: "PixeloidSans", sans-serif;
  font-size: 9px;
  color: #f9fafb;
  line-height: normal;
  word-break: break-word;
}

/* Comments */
.tiff-comment-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tiff-comment-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  width: 80px;
}

.tiff-comment-username {
  font-family: "PixeloidSans", sans-serif;
  font-size: 9px;
  color: #f9fafb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: normal;
}

.tiff-comment-avatar {
  width: 80px;
  height: 80px;
  overflow: hidden;
  position: relative;
}

.tiff-comment-avatar img {
  width: 100%;
  height: 133%;
  position: absolute;
  top: -29%;
  left: 0;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.tiff-comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

/* ============================================================================
   TIFFANY-ONLY: IAM MESSENGER STYLES
   ============================================================================ */

#tiff-app-iammessenger-window,
#tiff-iam-chat-simisim-window {
  min-width: 200px;
  min-height: 100px;
}

.iam-messenger,
.iam-chat {
  display: flex;
  flex-direction: column;
  font-family: "PixeloidSans", sans-serif;
}

.iam-menu-bar {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-dark);
  padding: 0;
  display: flex;
  align-items: stretch;
  font-size: 11px;
  color: var(--black);
}

.iam-menu-bar span {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
}

.iam-menu-bar span:hover {
  background: var(--slate-light);
}

.iam-banner {
  height: 80px;
  border-bottom: 1px solid var(--black);
  overflow: hidden;
}

.iam-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iam-status-bar {
  display: flex;
  height: 28px;
  border-bottom: 1px solid var(--black);
}

.iam-status-eye {
  width: 28px;
  background: var(--white);
  border-right: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iam-status-title {
  flex: 1;
  background: var(--white);
  padding: 0 10px;
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  color: var(--black);
  display: flex;
  align-items: center;
}

.iam-buddy-section {
  background: var(--white);
  border-top: 1px solid var(--black);
  padding: 10px;
}

.iam-group-header {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  color: var(--black);
  margin-bottom: 4px;
}

.iam-buddy-list {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 0;
}

.iam-buddy-item {
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  color: var(--black);
  padding: 2px 4px;
}

.iam-offline .iam-buddy-item {
  color: var(--gray-dark);
}

.iam-buddy-hoverable {
  cursor: pointer;
}

.iam-buddy-hoverable:hover {
  background: var(--gray-light);
}

.iam-toolbar {
  background: var(--gray-light);
  border-top: 1px solid var(--black);
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.iam-tool-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px;
}

.iam-tool-btn img {
  width: 18px;
  height: 18px;
}

.iam-tool-btn span {
  font-family: "PixeloidSans", sans-serif;
  font-size: 9px;
  color: var(--black);
}

/* Chat window */
.iam-chat-main {
  background: var(--gray-light);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.iam-convo-pane {
  display: flex;
  height: 120px;
  border: 1px solid var(--black);
}

.iam-convo-left {
  width: 50px;
  background: var(--slate-light);
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6px 5px;
}

.iam-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  image-rendering: pixelated;
}

.iam-convo-right {
  flex: 1;
  background: var(--white);
  border-left: 1px solid var(--black);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.iam-message {
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  color: var(--black);
  line-height: 1.3;
}

.iam-name-toxic {
  color: #bc2020;
  font-weight: bold;
}

.iam-name-simi {
  color: var(--mespace-blue);
  font-weight: bold;
}

.iam-compose-pane {
  display: flex;
  height: 80px;
  border: 1px solid var(--black);
}

.iam-compose-left {
  width: 50px;
  background: var(--gray-light);
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 5px;
}

.iam-compose-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--black);
}

.iam-compose-toolbar {
  background: var(--gray-light);
  height: 28px;
  border-bottom: 1px solid var(--black);
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 4px;
  flex-shrink: 0;
}

.iam-divider {
  width: 1px;
  height: 14px;
  background: var(--gray-dark);
  margin: 0 2px;
}

.iam-compose-input {
  flex: 1;
  background: var(--white);
}

.iam-feature-bar {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--black);
  padding: 5px;
}

.iam-feature-section {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}

.iam-feature-section+.iam-feature-section {
  border-left: 1px solid var(--black);
}

.iam-feat-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px;
}

.iam-feat-btn span {
  font-family: "PixeloidSans", sans-serif;
  font-size: 7px;
  color: var(--black);
}

#tiff-app-photoeditor-window .photo-color-box {
  background: linear-gradient(to bottom,
      #7b2fff 0%,
      #7b2fff 50%,
      #607585 50%,
      #607585 100%);
}

/* ============================================================
   PHISHING POPUPS
   ============================================================ */

#phishing-overlay {
  display: none;
  position: fixed;
  inset: 0;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.35);
  z-index: 8000;
}

.phishing-popup {
  display: none;
  position: fixed;
  z-index: 9000;
  background: var(--white);
  border: 1.5px solid var(--black);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  flex-direction: column;
}

.phishing-popup.active {
  display: flex;
}

#phishing-overlay.active {
  display: block;
}

.phishing-terminal {
  background: #000 !important;
  color: #00ff00 !important;
  font-family: "Courier New", Courier, monospace !important;
  font-size: 11px !important;
  font-weight: bold !important;
  padding: 12px !important;
  line-height: 1.6;
  overflow: hidden;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.phishing-blink {
  animation: blink 0.8s step-start infinite;
}

.tiff-video-devaney-icon {
  background-image: url("stuffs/desktop icons/video file.svg");
}

.tiff-photo-diary1-icon,
.tiff-photo-diary2-icon,
.tiff-photo-diary3-icon {
  background-image: url("stuffs/desktop icons/image file.svg");
}

/* ============================================================
   DELETE DIALOGUE
   ============================================================ */

.delete-dialogue-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.delete-dialogue-overlay.visible {
  display: flex;
}

.delete-dialog-box {
  width: 380px;
  background: #f0f0f0;
  border: 1px solid var(--black);
  font-family: "PixeloidSans", sans-serif;
}

.delete-dialog-body {
  padding: 20px 16px 0;
}

.delete-dialog-body p {
  font-size: 11px;
  line-height: 1.7;
  color: #1a1a1a;
  margin: 0 0 20px;
}

.delete-dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
}

.delete-dialog-buttons button {
  padding: 4px 18px;
  border: 1px solid var(--black);
  background: var(--slate-light);
  cursor: pointer;
  font-family: "PixeloidSans", sans-serif;
  font-size: 11px;
  color: var(--black);
}

.delete-dialog-buttons button:hover {
  background: var(--slate-mid);
}

.delete-dialog-buttons button:active {
  background: var(--slate-medium);
}

/* ============================================================
   MESPACE DELETED SCREEN
   ============================================================ */

.mespace-deleted-text {
  font-family: "PixeloidSans", sans-serif;
  font-size: 32px;
  color: #ffffff;
  text-align: center;
  letter-spacing: 2px;
  margin: 0;
}

/* ============================================================
   DELETE ACCOUNT LINK
   ============================================================ */

.mespace-delete-account-link {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-family: "PixeloidSans", sans-serif;
  color: #dc2626;
  text-decoration: none;
}

.mespace-delete-account-link:hover {
  text-decoration: underline;
}

/* ============================================================
   TRASH ICON GRID
   ============================================================ */

#trash-items {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
}

.trash-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  width: 64px;
}

.trash-item .icon {
  opacity: 0.55;
  filter: grayscale(40%);
}

.trash-item span {
  font-size: 9px;
  font-family: "PixeloidSans", sans-serif;
  text-align: center;
  color: #555;
  word-break: break-word;
  max-width: 60px;
  line-height: 1.3;
}

/* ========================================
     CORRUPTED (RESTORED) FILES
     ======================================== */
.desktop-icon.corrupted .icon {
  position: relative;
  opacity: 0.8;
  filter: grayscale(70%) contrast(1.6) brightness(0.85);
  clip-path: polygon(0 0, 70% 0, 78% 12%, 100% 10%, 100% 62%, 88% 70%, 100% 78%,
    100% 100%, 35% 100%, 28% 88%, 0 92%);
}

.desktop-icon.corrupted .icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, transparent 55%, rgba(255, 0, 80, 0.35) 55% 60%, transparent 60%);
}

.desktop-icon.corrupted span {
  opacity: 0.7;
}

/* Deleted a second time: badly decayed, and no way back */
.trash-item.corrupted .icon {
  position: relative;
  opacity: 0.6;
  filter: grayscale(100%) contrast(2.6) brightness(0.7) invert(0.15);
  transform: translateX(3px) skewX(-8deg);
  clip-path: polygon(0 8%, 45% 0, 52% 18%, 100% 14%, 92% 40%, 100% 46%, 100% 58%,
    60% 55%, 100% 72%, 84% 100%, 40% 88%, 22% 100%, 0 76%, 12% 50%, 0 38%);
}

.trash-item.corrupted .icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0 2px, transparent 2px 4px),
    linear-gradient(90deg, transparent 20%, rgba(255, 0, 80, 0.55) 20% 30%, transparent 30% 62%,
      rgba(0, 255, 230, 0.45) 62% 68%, transparent 68%);
}

.trash-item.corrupted span {
  color: #888;
  letter-spacing: 1px;
}

.trash-restore-btn {
  margin-top: 2px;
  padding: 1px 6px;
  font-size: 9px;
  font-family: "PixeloidSans", sans-serif;
  background: var(--gray-light);
  border: 1px solid var(--black);
  cursor: pointer;
}

.trash-restore-btn:hover {
  background: var(--slate-light);
}

/* ========================================
     ENDING GLITCH + RESTART
     ======================================== */
body.glitching #ending-overlay {
  animation: glitch-shake 0.16s steps(2) infinite;
}

body.glitching::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, transparent 20%, rgba(255, 0, 80, 0.45) 20% 23%, transparent 23% 61%,
      rgba(0, 255, 230, 0.4) 61% 63%, transparent 63%);
  animation: glitch-bars 0.3s steps(3) infinite;
}

body.glitch-blackout::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: #000;
}

@keyframes glitch-shake {
  0%   { transform: translate(0); clip-path: inset(0); filter: none; }
  20%  { transform: translate(-6px, 2px); clip-path: inset(10% 0 60% 0); filter: hue-rotate(90deg) saturate(3); }
  40%  { transform: translate(5px, -3px); clip-path: inset(50% 0 20% 0); filter: invert(1); }
  60%  { transform: translate(-3px, 0); clip-path: inset(30% 0 40% 0); }
  80%  { transform: translate(4px, 3px); clip-path: inset(0 0 75% 0); filter: contrast(3); }
  100% { transform: translate(0); clip-path: inset(0); filter: none; }
}

@keyframes glitch-bars {
  0%   { background-position: 0 0, 0 0; }
  33%  { background-position: 0 3px, 0 -40vh; }
  66%  { background-position: 0 -2px, 0 25vh; }
  100% { background-position: 0 0, 0 0; }
}

/* After a finished run, the machine remembers: brief, wordless glitches on
   the boot logo and login title. */
body.remembers .boot-logo,
body.remembers .login-title {
  animation: memory-glitch 4.5s infinite;
}

@keyframes memory-glitch {
  0%, 88%, 100% { transform: none; clip-path: none; filter: none; }
  90% { transform: translate(-4px, 1px); clip-path: inset(0 0 55% 0); filter: hue-rotate(120deg); }
  92% { transform: translate(3px, -1px); clip-path: inset(45% 0 0 0); filter: invert(1); }
  94% { transform: translate(-2px, 0); clip-path: inset(20% 0 30% 0); }
}
