/* Windows 98 theme — Classic flat gray UI overrides */
/* Fonts loaded by 98-framework.css (relative paths resolve correctly) */

/* ── Desktop ──────────────────────────────────────────────── */
.os-desktop[data-theme="win98"] {
  background: #008080;
  background-image: none;
}

[data-theme="win98"] .os-desktop-area {
  background: #008080;
}

/* ── Desktop Icons ────────────────────────────────────────── */
[data-theme="win98"] .os-desktop-icon:focus,
[data-theme="win98"] .os-desktop-icon.selected {
  background: rgba(0, 0, 128, 0.3);
  border-color: rgba(0, 0, 128, 0.6);
}

[data-theme="win98"] .os-desktop-icon-label {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}

/* ── Taskbar ──────────────────────────────────────────────── */
[data-theme="win98"] .os-taskbar {
  height: 28px;
  background: #C0C0C0;
  border-top: 1px solid #FFFFFF;
  box-shadow: inset 0 1px 0 #DFDFDF;
}

[data-theme="win98"] .os-start-btn {
  height: 22px;
  margin: 2px 0 2px 2px;
  padding: 0 6px 0 3px;
  background: #C0C0C0;
  border: none;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  border-radius: 0;
  color: #000;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  font-style: normal;
  text-shadow: none;
  letter-spacing: 0;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #DFDFDF;
}

[data-theme="win98"] .os-start-btn:hover {
  background: #C0C0C0;
}

[data-theme="win98"] .os-start-btn:active {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
  box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #DFDFDF;
  padding: 1px 5px 0 4px;
}

[data-theme="win98"] .os-start-btn img {
  width: 16px;
  height: 16px;
}

/* Taskbar separator */
[data-theme="win98"] .os-taskbar-separator {
  width: 2px;
  height: 22px;
  background: none;
  border-left: 1px solid #808080;
  border-right: 1px solid #FFFFFF;
  margin: 0 2px;
}

/* Running apps area */
[data-theme="win98"] .os-taskbar-apps {
  gap: 1px;
  padding: 0 2px;
}

[data-theme="win98"] .os-taskbar-app-btn {
  height: 22px;
  min-width: 120px;
  max-width: 160px;
  padding: 0 6px;
  background: #C0C0C0;
  border: none;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  border-radius: 0;
  color: #000;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  text-shadow: none;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #DFDFDF;
}

[data-theme="win98"] .os-taskbar-app-btn:hover {
  background: #C0C0C0;
}

[data-theme="win98"] .os-taskbar-app-btn.active {
  background: #C0C0C0;
  color: #000;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
  box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #DFDFDF;
  text-shadow: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><rect width="1" height="1" fill="%23FFFFFF"/><rect x="1" y="1" width="1" height="1" fill="%23FFFFFF"/></svg>');
  background-size: 2px 2px;
}

[data-theme="win98"] .os-taskbar-app-btn img {
  width: 16px;
  height: 16px;
}

/* Tooltip */
[data-theme="win98"] .os-tooltip {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  border-radius: 0;
}

/* System tray */
[data-theme="win98"] .os-system-tray {
  height: 28px;
  background: #C0C0C0;
  border-left: none;
  padding: 0 6px;
  gap: 6px;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #FFFFFF;
}

[data-theme="win98"] .os-tray-icon {
  fill: #000;
}

[data-theme="win98"] .os-clock,
[data-theme="win98"] .os-clock-btn {
  color: #000;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  text-shadow: none;
}

[data-theme="win98"] .os-tray-icon-btn svg {
  fill: #000;
}

[data-theme="win98"] .os-tray-icon-btn svg path,
[data-theme="win98"] .os-tray-icon-btn svg line {
  stroke: #000;
}

[data-theme="win98"] .os-tray-icon-btn svg path[fill="#fff"] {
  fill: #000;
}

[data-theme="win98"] .os-calendar-popup {
  background: #C0C0C0;
  border: 2px outset #C0C0C0;
  border-radius: 0;
  padding: 6px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="win98"] .os-calendar-header {
  font-weight: bold;
  color: #000080;
  background: #000080;
  color: #fff;
  padding: 2px 4px;
  margin: -6px -6px 4px;
}

[data-theme="win98"] .os-calendar-nav {
  color: #fff;
  font-size: 12px;
}

[data-theme="win98"] .os-calendar-day--today {
  background: #000080;
  color: #fff;
  font-weight: bold;
}

/* ── Notification Balloon ────────────────────────────────── */
[data-theme="win98"] .os-balloon {
  border-radius: 0;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .os-balloon-arrow {
  border-top-color: #FFFFCC;
  filter: none;
}

[data-theme="win98"] .os-balloon-header strong {
  color: #000;
}

[data-theme="win98"] .os-balloon-close {
  color: #000;
}

[data-theme="win98"] .os-balloon-close:hover {
  color: #C00;
}

[data-theme="win98"] .os-balloon-body {
  color: #000;
}

/* ── Window overrides ─────────────────────────────────────── */
/* 98.css framework handles .window, .title-bar, .title-bar-controls, */
/* .window-body out of the box — no overrides needed for basic chrome. */
/* Only override XP-specific styles from xp-theme.css that leak through. */
[data-theme="win98"] .window {
  border: none;
  border-radius: 0;
  animation: none;
}

/* ── Start Menu (Classic) ────────────────────────────────── */
[data-theme="win98"] .os-start-menu--classic {
  position: absolute;
  bottom: 28px;
  left: 0;
  background: #C0C0C0;
  border: none;
  border-radius: 0;
  z-index: 10000;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  box-shadow: inset 1px 1px 0 #DFDFDF, inset -1px -1px 0 #404040,
              inset 2px 2px 0 #FFFFFF, inset -2px -2px 0 #808080,
              2px 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  min-width: 200px;
}

[data-theme="win98"] .os-start-menu-sidebar {
  width: 24px;
  background: linear-gradient(0deg, #000080 0%, #1084D0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  flex-shrink: 0;
}

[data-theme="win98"] .os-start-menu-sidebar-text {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  color: #C0C0C0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
}

[data-theme="win98"] .os-start-menu-sidebar-text b {
  color: #FFFFFF;
}

[data-theme="win98"] .os-start-menu-classic-body {
  flex: 1;
  padding: 2px 0;
}

[data-theme="win98"] .os-start-menu--classic .os-start-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 24px 4px 8px;
  cursor: pointer;
  font-size: 11px;
  color: #000;
  height: 24px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .os-start-menu--classic .os-start-menu-item:hover {
  background: #000080;
  color: #FFFFFF;
}

[data-theme="win98"] .os-start-menu--classic .os-start-menu-item img {
  width: 16px;
  height: 16px;
}

[data-theme="win98"] .os-start-menu--classic .os-start-menu-separator {
  height: 1px;
  background: #808080;
  margin: 2px 4px;
  border-bottom: 1px solid #FFFFFF;
}

/* ── Shutdown Dialog ──────────────────────────────────────── */
[data-theme="win98"] .os-shutdown-overlay {
  background: rgba(0, 0, 0, 0.5);
}

[data-theme="win98"] .os-shutdown-dialog {
  background: #C0C0C0;
  border: none;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 #DFDFDF, inset -1px -1px 0 #404040,
              inset 2px 2px 0 #FFFFFF, inset -2px -2px 0 #808080,
              4px 4px 10px rgba(0, 0, 0, 0.4);
  color: #000;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  padding: 16px 24px;
}

[data-theme="win98"] .os-shutdown-title {
  color: #000;
  text-shadow: none;
}

[data-theme="win98"] .os-shutdown-btn {
  color: #000;
  text-shadow: none;
  border: 2px solid transparent;
}

[data-theme="win98"] .os-shutdown-btn:hover {
  background: rgba(0, 0, 128, 0.1);
  border-color: #000080;
}

[data-theme="win98"] .os-shutdown-btn-icon.standby {
  background: radial-gradient(circle at 40% 35%, #FFD862, #C89000 60%, #A07000);
}

[data-theme="win98"] .os-shutdown-btn-icon.turnoff {
  background: radial-gradient(circle at 40% 35%, #FF6B6B, #C03030 60%, #902020);
}

[data-theme="win98"] .os-shutdown-btn-icon.restart {
  background: radial-gradient(circle at 40% 35%, #6BDD6B, #209020 60%, #107010);
}

[data-theme="win98"] .os-shutdown-cancel {
  background: #C0C0C0;
  border: none;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #DFDFDF;
  border-radius: 0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #000;
}

[data-theme="win98"] .os-shutdown-cancel:hover {
  background: #D0D0D0;
}

[data-theme="win98"] .os-shutdown-cancel:active {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
  box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #DFDFDF;
}

/* ── Desktop Selection Rectangle ─────────────────────────── */
[data-theme="win98"] .os-selection-rect {
  background: rgba(0, 0, 128, 0.15);
  border: 1px dotted #000080;
}

/* ── Context Menu ─────────────────────────────────────────── */
[data-theme="win98"] .os-context-menu {
  background: #C0C0C0;
  border: none;
  box-shadow: inset 1px 1px 0 #DFDFDF, inset -1px -1px 0 #404040,
              inset 2px 2px 0 #FFFFFF, inset -2px -2px 0 #808080,
              2px 2px 4px rgba(0, 0, 0, 0.2);
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .os-context-menu-item:hover {
  background: #000080;
  color: #FFFFFF;
}

[data-theme="win98"] .os-context-menu-separator {
  background: #808080;
  border-bottom: 1px solid #FFFFFF;
}

/* ── Boot Screen ─────────────────────────────────────────── */
[data-theme="win98"] .os-boot-loading--98 {
  background: #000;
}

[data-theme="win98"] .os-boot-content {
  gap: 24px;
}

[data-theme="win98"] .os-boot-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-theme="win98"] .os-boot-logo img {
  width: 48px;
  height: 48px;
}

[data-theme="win98"] .os-boot-logo-text {
  display: flex;
  flex-direction: column;
}

[data-theme="win98"] .os-boot-microsoft {
  color: #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.8;
}

[data-theme="win98"] .os-boot-windows {
  color: #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 24px;
  font-weight: bold;
}

[data-theme="win98"] .os-boot-98 {
  color: #FFFFFF;
  font-size: 20px;
  font-style: italic;
  font-weight: bold;
  margin-left: 2px;
  vertical-align: super;
}

[data-theme="win98"] .os-boot-progress-track {
  width: 200px;
  height: 12px;
  border: 1px solid #808080;
  border-radius: 0;
  padding: 1px;
  overflow: hidden;
}

[data-theme="win98"] .os-boot-progress-bar {
  background: linear-gradient(180deg, #C0C0C0 0%, #808080 50%, #C0C0C0 100%);
  animation: os-boot-slide-98 1.5s ease-in-out infinite;
}

@keyframes os-boot-slide-98 {
  0% { transform: translateX(-100%); width: 30%; }
  50% { transform: translateX(100%); width: 30%; }
  100% { transform: translateX(350%); width: 30%; }
}

[data-theme="win98"] .os-boot-copyright {
  color: #666;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 10px;
}

/* ── Theme Picker ────────────────────────────────────────── */
[data-theme="win98"] .theme-picker {
  background: #C0C0C0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .theme-picker-tab {
  border-radius: 0;
  border-color: #808080;
  box-shadow: inset 1px 1px 0 #DFDFDF;
}

[data-theme="win98"] .theme-picker-tab--active {
  box-shadow: inset 1px 1px 0 #DFDFDF, inset -1px 0 0 #404040;
}

[data-theme="win98"] .theme-picker-body {
  border-color: #808080;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #DFDFDF;
}

[data-theme="win98"] .theme-picker-details {
  background: #C0C0C0;
  border-top: 1px solid #808080;
}

[data-theme="win98"] .theme-picker-apply-btn {
  background: #C0C0C0;
  border: none;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #DFDFDF;
  border-radius: 0;
  color: #000;
  text-shadow: none;
  font-weight: normal;
}

[data-theme="win98"] .theme-picker-apply-btn:hover {
  background: #D0D0D0;
}

[data-theme="win98"] .theme-picker-apply-btn:active {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
  box-shadow: inset 1px 1px 0 #404040;
}

[data-theme="win98"] .theme-picker-current-badge {
  background: #C0C0C0;
  border: 1px solid #808080;
  border-radius: 0;
}

/* ── Oli Chat ────────────────────────────────────────────── */
[data-theme="win98"] .oli-chat {
  background: #C0C0C0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .oli-chat-header {
  background: #C0C0C0;
  border-bottom: 1px solid #808080;
}

[data-theme="win98"] .oli-chat-title {
  color: #000080;
}

[data-theme="win98"] .oli-chat-messages {
  background: #FFFFFF;
  border: 2px inset #808080;
  margin: 4px;
}

[data-theme="win98"] .oli-chat-msg-text {
  background: #FFFFFF;
  border: 1px solid #C0C0C0;
  border-radius: 0;
}

[data-theme="win98"] .oli-chat-msg--user .oli-chat-msg-text {
  background: #E0E8F0;
  border: 1px solid #808080;
  color: #000080;
}

[data-theme="win98"] .oli-chat-input {
  background: #C0C0C0;
  border-top: 1px solid #808080;
}

[data-theme="win98"] .oli-chat-input input {
  border: 2px inset #808080;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .oli-chat-input button {
  background: #C0C0C0;
  border: none;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #DFDFDF;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  border-radius: 0;
}

[data-theme="win98"] .oli-chat-input button:hover {
  background: #D0D0D0;
}

[data-theme="win98"] .oli-chat-quota {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 10px;
  color: #808080;
  background: #C0C0C0;
  border-top: 1px solid #808080;
}

[data-theme="win98"] .oli-chat-colony-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="win98"] .oli-chat-age {
  font-size: 10px;
  color: #808080;
}

[data-theme="win98"] .oli-chat-ants {
  display: flex;
  gap: 4px;
}

[data-theme="win98"] .oli-chat-ant-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #808080;
}

[data-theme="win98"] .oli-chat-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #808080;
  font-size: 12px;
}

[data-theme="win98"] .oli-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="win98"] .oli-chat-msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="win98"] .oli-chat-avatar {
  width: 20px;
  height: 20px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

[data-theme="win98"] .oli-chat-msg-name {
  font-weight: bold;
  font-size: 10px;
  color: #000;
}

[data-theme="win98"] .oli-chat-delegation {
  font-size: 9px;
  color: #808080;
  font-style: italic;
}

[data-theme="win98"] .oli-chat-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="win98"] .oli-chat-mode-toggle {
  font-size: 10px;
  padding: 1px 6px;
  border: none;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #DFDFDF;
  background: #C0C0C0;
  border-radius: 0;
  cursor: pointer;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #000;
}

[data-theme="win98"] .oli-chat-mode-toggle:hover {
  background: #D0D0D0;
}

[data-theme="win98"] .oli-chat-msg--streaming .oli-chat-msg-text {
  opacity: 0.85;
}

[data-theme="win98"] .oli-chat-typing {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 2px 0;
}

[data-theme="win98"] .oli-chat-typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #000;
  animation: oli-typing-bounce 1.2s infinite ease-in-out;
}

/* ── Oli Tray Avatar ────────────────────────────────────── */
[data-theme="win98"] .oli-tray-avatar-small {
  width: 14px;
  height: 14px;
  border-radius: 0;
  flex-shrink: 0;
}

/* ── Terminal ────────────────────────────────────────────── */
[data-theme="win98"] .terminal {
  background: #000;
  color: #00FF00;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 13px;
}

[data-theme="win98"] .terminal-output {
  padding: 4px;
}

[data-theme="win98"] .terminal-line {
  margin: 0;
  padding: 0;
  font: inherit;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.4;
}

[data-theme="win98"] .terminal-prompt {
  color: #00FF00;
}

[data-theme="win98"] .terminal-input {
  color: #00FF00;
  font: inherit;
  caret-color: #00FF00;
}

/* ── Oli Tray ────────────────────────────────────────────── */
[data-theme="win98"] .oli-tray-btn svg {
  fill: #000;
}

[data-theme="win98"] .oli-tray-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ── App Menubar ─────────────────────────────────────────── */
[data-theme="win98"] .os-app-menubar {
  background: #C0C0C0;
  border-bottom: 1px solid #808080;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .os-app-menubar span:hover,
[data-theme="win98"] .os-app-menu-label:hover,
[data-theme="win98"] .os-app-menu-label.active {
  background: #000080;
  color: #fff;
}

[data-theme="win98"] .os-app-menu-label {
  padding: 2px 6px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
}

[data-theme="win98"] .os-app-menu-dropdown {
  background: #C0C0C0;
  border: 2px outset #C0C0C0;
  padding: 2px 0;
}

[data-theme="win98"] .os-app-menu-item {
  padding: 3px 20px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}

[data-theme="win98"] .os-app-menu-item:hover:not(:disabled) {
  background: #000080;
  color: #fff;
}

[data-theme="win98"] .os-app-menu-item:disabled {
  color: #808080;
}

[data-theme="win98"] .os-app-menu-separator {
  height: 1px;
  background: #808080;
  margin: 2px 2px;
}

[data-theme="win98"] .os-app-textarea {
  border: 2px inset #808080;
  font-family: "Courier New", monospace;
}

[data-theme="win98"] .os-app-statusbar {
  background: #C0C0C0;
  border-top: 1px solid #808080;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

/* ── IE/Browser ──────────────────────────────────────────── */
[data-theme="win98"] .os-app-toolbar {
  background: #C0C0C0;
  border-bottom: 1px solid #808080;
}

[data-theme="win98"] .os-app-toolbar-btn {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  border-radius: 0;
}

[data-theme="win98"] .os-app-toolbar-btn:hover {
  border-color: #808080;
  background: #D0D0D0;
}

[data-theme="win98"] .os-app-toolbar-btn.disabled {
  color: #808080;
}

[data-theme="win98"] .os-app-toolbar-separator {
  width: 1px;
  height: 20px;
  background: #808080;
  margin: 0 2px;
  border-right: 1px solid #FFFFFF;
}

[data-theme="win98"] .os-app-addressbar {
  background: #C0C0C0;
  border-bottom: 1px solid #808080;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .os-app-addressbar input {
  border: 2px inset #808080;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .os-app-go-btn {
  background: #C0C0C0;
  border: none;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  border-radius: 0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

/* ── My Computer ─────────────────────────────────────────── */
[data-theme="win98"] .os-app-explorer {
  background: #C0C0C0;
}

[data-theme="win98"] .os-app-sidebar {
  background: #C0C0C0;
  border-right: 1px solid #808080;
}

[data-theme="win98"] .os-app-sidebar-section {
  background: #C0C0C0;
  border-radius: 0;
  border: 1px solid #808080;
}

[data-theme="win98"] .os-app-sidebar-title {
  background: #000080;
  color: #FFFFFF;
  border-bottom: 1px solid #000080;
}

[data-theme="win98"] .os-app-sidebar-item {
  color: #000080;
}

[data-theme="win98"] .os-app-content {
  background: #FFFFFF;
}

[data-theme="win98"] .os-app-section-label {
  color: #000;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .os-app-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 4px;
}

[data-theme="win98"] .os-app-grid-item {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  border-radius: 0;
}

[data-theme="win98"] .os-app-grid-item:hover {
  background: rgba(0, 0, 128, 0.1);
  border-color: #000080;
}

[data-theme="win98"] .os-app-grid-label {
  font-weight: normal;
}

[data-theme="win98"] .os-app-grid-label strong {
  font-weight: bold;
}

[data-theme="win98"] .os-app-addressbar-dropdown-btn {
  font-size: 8px;
  padding: 0 4px;
  color: #000;
  height: 20px;
  background: #C0C0C0;
  border: 2px inset #808080;
  border-left: none;
}

[data-theme="win98"] .os-app-addressbar-dropdown {
  background: #fff;
  border: 1px solid #808080;
}

[data-theme="win98"] .os-app-addressbar-dropdown-item {
  padding: 2px 4px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}

[data-theme="win98"] .os-app-addressbar-dropdown-item:hover {
  background: #000080;
  color: #fff;
}

[data-theme="win98"] .ie-throbber {
  width: 34px;
  height: 34px;
}

[data-theme="win98"] .ie-throbber-icon {
  width: 22px;
  height: 22px;
  border: 2px solid #000080;
  border-top-color: transparent;
  opacity: 0.3;
}

[data-theme="win98"] .ie-throbber--active .ie-throbber-icon {
  opacity: 1;
  animation: ie-spin 0.8s linear infinite;
}

[data-theme="win98"] .ie-context-menu {
  background: #C0C0C0;
  border: 2px outset #C0C0C0;
  padding: 2px 0;
}

[data-theme="win98"] .ie-context-menu-item {
  padding: 3px 20px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}

[data-theme="win98"] .ie-context-menu-item:hover:not(:disabled) {
  background: #000080;
  color: #fff;
}

[data-theme="win98"] .ie-context-menu-item:disabled {
  color: #808080;
}

[data-theme="win98"] .ie-context-menu-separator {
  height: 1px;
  background: #808080;
  margin: 2px 2px;
}

[data-theme="win98"] .ie-loading-text {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #000;
}

/* ── Browser Content ──────────────────────────────────────── */
[data-theme="win98"] .ie-browser {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

[data-theme="win98"] .ie-content {
  flex: 1;
  overflow: auto;
  background: #fff;
}

/* ── Browser Error Page ──────────────────────────────────── */
[data-theme="win98"] .ie-error {
  padding: 24px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}

[data-theme="win98"] .ie-error h2 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #000080;
}

[data-theme="win98"] .ie-error p {
  margin: 4px 0;
}

[data-theme="win98"] .ie-error a {
  color: #000080;
}

[data-theme="win98"] .ie-error hr {
  border: none;
  border-top: 1px solid #808080;
  margin: 12px 0;
}

/* ── Browser Home Page (98 style) ────────────────────────── */
[data-theme="win98"] .ie-home {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .ie-home-banner {
  background: linear-gradient(135deg, #000080 0%, #1084D0 100%);
}

[data-theme="win98"] .ie-home-section h3 {
  color: #000080;
}

[data-theme="win98"] .ie-home-links a {
  color: #000080;
}

[data-theme="win98"] .ie-home-card {
  background: #E0E0E0;
  border: 1px solid #808080;
  border-radius: 0;
}

[data-theme="win98"] .ie-home-content {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

[data-theme="win98"] .ie-home-footer {
  padding: 12px 24px;
  border-top: 1px solid #808080;
  color: #808080;
  font-size: 10px;
  text-align: center;
}

[data-theme="win98"] .ie-home-footer p {
  margin: 0;
}

/* ── Browser About Page (98 style) ───────────────────────── */
[data-theme="win98"] .ie-about {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .ie-about-header {
  border-bottom-color: #000080;
}

[data-theme="win98"] .ie-about-header h1 {
  color: #000080;
}

[data-theme="win98"] .ie-about-section h2 {
  color: #000080;
}

[data-theme="win98"] .ie-about-card {
  background: #E0E0E0;
  border: 1px solid #808080;
  border-radius: 0;
}

[data-theme="win98"] .ie-about-card a {
  color: #000080;
}

/* ── Browser Search Page ─────────────────────────────────── */
[data-theme="win98"] .ie-search-page {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  background: #fff;
}

[data-theme="win98"] .ie-search-logo {
  text-align: center;
  margin-bottom: 20px;
}

[data-theme="win98"] .ie-search-title {
  font-size: 28px;
  color: #000080;
  margin: 0;
}

[data-theme="win98"] .ie-search-tagline {
  color: #808080;
  font-size: 11px;
  margin: 4px 0 0;
}

[data-theme="win98"] .ie-search-input {
  border: 2px inset #808080;
  padding: 4px 6px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
}

[data-theme="win98"] .ie-search-btn {
  background: #C0C0C0;
  border: none;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #DFDFDF;
  padding: 4px 12px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  cursor: pointer;
}

[data-theme="win98"] .ie-search-btn:hover {
  background: #D0D0D0;
}

[data-theme="win98"] .ie-search-links {
  font-size: 11px;
  color: #808080;
}

[data-theme="win98"] .ie-search-links a {
  color: #000080;
  text-decoration: none;
}

[data-theme="win98"] .ie-search-links a:hover {
  text-decoration: underline;
}

/* ── Browser Portfolio Page (Retro) ──────────────────────── */
[data-theme="win98"] .ie-portfolio-header {
  background: #000080;
  color: #FFD700;
  padding: 12px 16px;
  text-align: center;
}

[data-theme="win98"] .ie-portfolio-marquee {
  color: #00FF00;
  font-size: 12px;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
}

[data-theme="win98"] .ie-portfolio-sidebar {
  background: #C0C0C0;
  border-right: 2px groove #808080;
  padding: 8px;
}

[data-theme="win98"] .ie-portfolio-nav-title {
  font-weight: bold;
  font-size: 12px;
  margin: 4px 0;
  color: #000080;
}

[data-theme="win98"] .ie-portfolio-nav a {
  color: #0000FF;
  font-size: 12px;
}

[data-theme="win98"] .ie-portfolio-main {
  padding: 12px 16px;
}

[data-theme="win98"] .ie-portfolio-main h2 {
  color: #800000;
  font-size: 16px;
  margin: 8px 0 6px;
}

[data-theme="win98"] .ie-portfolio-main h3 {
  margin: 4px 0 2px;
  font-size: 13px;
}

[data-theme="win98"] .ie-portfolio-main a {
  color: #0000FF;
}

[data-theme="win98"] .ie-portfolio-item {
  margin-bottom: 12px;
}

[data-theme="win98"] .ie-portfolio-footer {
  text-align: center;
  font-size: 10px;
  color: #808080;
  padding: 8px;
  border-top: 1px solid #808080;
}

/* ── Browser Help Page ───────────────────────────────────── */
[data-theme="win98"] .ie-help {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
  background: #fff;
  line-height: 1.5;
}

[data-theme="win98"] .ie-help h1 {
  font-size: 18px;
  color: #000080;
  margin: 0 0 8px;
  border-bottom: 2px solid #000080;
  padding-bottom: 6px;
}

[data-theme="win98"] .ie-help h2 {
  font-size: 13px;
  color: #000080;
  margin: 16px 0 4px;
}

[data-theme="win98"] .ie-help a {
  color: #000080;
}

[data-theme="win98"] .ie-help ul {
  padding-left: 20px;
}

/* ── Icon Selection ──────────────────────────────────────── */
[data-theme="win98"] .os-desktop-icon--selected {
  background: #000080;
  border: 1px dotted #000;
}

[data-theme="win98"] .os-desktop-icon--selected .os-desktop-icon-label {
  background: #000080;
  color: #fff;
}

/* ── Alt+Tab Switcher ────────────────────────────────────── */
[data-theme="win98"] .os-alt-tab-container {
  background: #C0C0C0;
  border: 2px outset #C0C0C0;
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="win98"] .os-alt-tab-item {
  color: #000;
  border: 2px solid transparent;
}

[data-theme="win98"] .os-alt-tab-item--active {
  border: 2px dotted #000;
  background: rgba(0, 0, 128, 0.1);
}

[data-theme="win98"] .os-alt-tab-label {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

/* ── Snap Preview ─────────────────────────────────────────── */

[data-theme="win98"] .os-snap-preview {
  background: rgba(0, 0, 128, 0.15);
  border: 2px solid rgba(0, 0, 128, 0.5);
  border-radius: 0;
}

/* ── Display Properties ───────────────────────────────────── */

[data-theme="win98"] .os-display-props {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
}

[data-theme="win98"] .os-display-props-tab {
  background: #c0c0c0;
  border: 1px outset #fff;
  border-radius: 0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .os-display-props-tab.active {
  background: #d4d0c8;
  border-bottom-color: #d4d0c8;
}

[data-theme="win98"] .os-display-props-body {
  background: #d4d0c8;
  border-color: #808080;
}

[data-theme="win98"] .os-display-props-monitor {
  border-color: #333;
}

[data-theme="win98"] .os-display-props-list {
  border: 2px inset #fff;
}

[data-theme="win98"] .os-display-props-list-item.selected {
  background: #000080;
  color: #fff;
}

[data-theme="win98"] .os-display-props-color-swatch {
  border: 2px inset #fff;
}

[data-theme="win98"] .os-display-props-color-swatch.selected {
  border: 2px solid #000080;
}

[data-theme="win98"] .os-display-props-btn {
  background: #c0c0c0;
  border: 2px outset #fff;
  border-radius: 0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .os-display-props-btn:hover {
  background: #d4d0c8;
}

[data-theme="win98"] .os-display-props-footer {
  background: #d4d0c8;
  border-top-color: #808080;
}

/* ── Notepad Find Bar ─────────────────────────────────────── */

[data-theme="win98"] .notepad-find-bar {
  background: #d4d0c8;
  border-bottom: 1px solid #808080;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .notepad-find-input {
  border: 2px inset #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  padding: 1px 3px;
}

[data-theme="win98"] .notepad-find-btn {
  background: #c0c0c0;
  border: 2px outset #fff;
  border-radius: 0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  padding: 1px 8px;
  cursor: pointer;
}

[data-theme="win98"] .notepad-find-btn:hover {
  background: #d4d0c8;
}

/* ── Paint app extras ──────────────────────────────────────── */

[data-theme="win98"] .paint-toolbox {
  background: #C0C0C0;
  border-right: 1px solid #808080;
}

[data-theme="win98"] .paint-tool-btn {
  background: #C0C0C0;
  border: 1px outset #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #000;
}

[data-theme="win98"] .paint-tool-btn:hover {
  background: #D4D0C8;
}

[data-theme="win98"] .paint-tool-btn.active {
  border-style: inset;
  background: #A0A0A0;
}

[data-theme="win98"] .paint-tool-separator {
  background: #808080;
}

[data-theme="win98"] .paint-canvas-wrap {
  background: #808080;
  border: 2px inset #fff;
}

[data-theme="win98"] .paint-canvas {
  background: #fff;
}

[data-theme="win98"] .paint-palette {
  background: #C0C0C0;
  border-top: 1px solid #808080;
}

[data-theme="win98"] .paint-color-preview {
  border: 2px inset #fff;
}

[data-theme="win98"] .paint-color-swatch {
  border: 1px solid #808080;
}

[data-theme="win98"] .paint-color-swatch:hover {
  border-color: #000;
}

[data-theme="win98"] .paint-color-swatch.active {
  border: 2px solid #000;
}

/* ── Calculator app extras ────────────────────────────────── */

[data-theme="win98"] .calc-body {
  background: #C0C0C0;
}

[data-theme="win98"] .calc-display {
  background: #8EA880;
  border: 2px inset #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #000;
}

[data-theme="win98"] .calc-btn {
  background: #C0C0C0;
  border: 2px outset #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #000;
}

[data-theme="win98"] .calc-btn:hover {
  background: #D4D0C8;
}

[data-theme="win98"] .calc-btn:active {
  border-style: inset;
}

[data-theme="win98"] .calc-btn-eq {
  background: #000080;
  color: #fff;
}

[data-theme="win98"] .calc-btn-eq:hover {
  background: #0000A0;
}

[data-theme="win98"] .calc-btn-op {
  background: #D4D0C8;
}

[data-theme="win98"] .calc-btn-fn {
  background: #C0C0C0;
  font-size: 10px;
}

/* ── Minesweeper app extras ───────────────────────────────── */

[data-theme="win98"] .ms-body {
  background: #C0C0C0;
}

[data-theme="win98"] .ms-header {
  background: #C0C0C0;
  border: 2px inset #fff;
}

[data-theme="win98"] .ms-counter {
  background: #000;
  color: #FF0000;
  border: 1px inset #808080;
  font-family: monospace;
}

[data-theme="win98"] .ms-face {
  background: #C0C0C0;
  border: 2px outset #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .ms-face:active {
  border-style: inset;
}

[data-theme="win98"] .ms-board {
  border: 3px inset #fff;
}

[data-theme="win98"] .ms-cell {
  background: #C0C0C0;
  border: 2px outset #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .ms-cell:hover:not(.revealed) {
  background: #D4D0C8;
}

[data-theme="win98"] .ms-cell.revealed {
  border: 1px solid #808080;
  background: #C0C0C0;
}

[data-theme="win98"] .ms-cell.mine {
  background: #FF0000;
}

[data-theme="win98"] .ms-cell.flagged {
  color: #FF0000;
}

/* ── App Error Boundary ──────────────────────────────────── */

[data-theme="win98"] .os-app-error {
  color: #000;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
}

/* ── Admin / User Accounts App ─────────────────────────────── */

[data-theme="win98"] .os-app-admin {
  background: #c0c0c0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #000;
}

[data-theme="win98"] .os-app-admin-header {
  border-bottom: 1px solid #808080;
}

[data-theme="win98"] .os-app-admin-avatar {
  background: #000080;
  color: #fff;
  border: 2px outset #dfdfdf;
}

[data-theme="win98"] .os-app-admin-role {
  color: #444;
}

[data-theme="win98"] .os-app-admin-stat {
  background: #fff;
  border: 1px inset #dfdfdf;
}

[data-theme="win98"] .os-app-admin-error {
  color: #c00;
}

[data-theme="win98"] .os-app-admin-input {
  border: 2px inset #dfdfdf;
  background: #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

[data-theme="win98"] .os-app-admin-submit,
[data-theme="win98"] .os-app-admin-logout {
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #000;
}

[data-theme="win98"] .os-app-admin-submit:hover:not(:disabled),
[data-theme="win98"] .os-app-admin-logout:hover {
  background: #d4d0c8;
}

[data-theme="win98"] .os-app-admin-submit:active:not(:disabled),
[data-theme="win98"] .os-app-admin-logout:active {
  border-style: inset;
}
