/* Windows 7 theme — Aero glass UI overrides */
/* 7.css framework handles .window, .title-bar, .window-body base styling */

/* ── Desktop ──────────────────────────────────────────────── */
.os-desktop[data-theme="win7"] {
  background: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23161D48'/%3E%3Cstop offset='.3' stop-color='%231B3E6D'/%3E%3Cstop offset='.5' stop-color='%23345B8A'/%3E%3Cstop offset='.7' stop-color='%231B3E6D'/%3E%3Cstop offset='1' stop-color='%23161D48'/%3E%3C/linearGradient%3E%3CradialGradient id='b' cx='.5' cy='.4' r='.6'%3E%3Cstop offset='0' stop-color='%234080C0' stop-opacity='.3'/%3E%3Cstop offset='1' stop-color='transparent'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect fill='url(%23a)' width='1920' height='1080'/%3E%3Crect fill='url(%23b)' width='1920' height='1080'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ── Desktop Icons ────────────────────────────────────────── */
[data-theme="win7"] .os-desktop-icon:focus,
[data-theme="win7"] .os-desktop-icon.selected {
  background: rgba(100, 160, 230, 0.3);
  border-color: rgba(100, 160, 230, 0.6);
  border-radius: 3px;
}

[data-theme="win7"] .os-desktop-icon-label {
  font-family: "Segoe UI", Tahoma, sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.5);
}

/* ── Taskbar ──────────────────────────────────────────────── */
[data-theme="win7"] .os-taskbar {
  height: 40px;
  background: linear-gradient(180deg,
    rgba(40, 50, 70, 0.85) 0%,
    rgba(20, 30, 50, 0.92) 40%,
    rgba(15, 25, 45, 0.95) 100%
  );
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="win7"] .os-start-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  background: radial-gradient(circle at 50% 40%,
    rgba(120, 180, 255, 0.5) 0%,
    rgba(40, 80, 160, 0.8) 50%,
    rgba(20, 40, 100, 0.9) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 8px rgba(60, 130, 220, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  font-style: normal;
  text-shadow: none;
  letter-spacing: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

[data-theme="win7"] .os-start-btn:hover {
  background: radial-gradient(circle at 50% 40%,
    rgba(140, 200, 255, 0.6) 0%,
    rgba(60, 100, 180, 0.85) 50%,
    rgba(30, 60, 120, 0.9) 100%
  );
  box-shadow:
    0 0 12px rgba(80, 150, 240, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="win7"] .os-start-btn:active {
  background: radial-gradient(circle at 50% 40%,
    rgba(80, 140, 220, 0.4) 0%,
    rgba(30, 60, 130, 0.85) 50%,
    rgba(15, 30, 80, 0.95) 100%
  );
  box-shadow:
    0 0 6px rgba(40, 100, 200, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="win7"] .os-start-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(1.2) drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

/* Taskbar separator */
[data-theme="win7"] .os-taskbar-separator {
  display: none;
}

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

[data-theme="win7"] .os-taskbar-app-btn {
  height: 34px;
  min-width: 42px;
  max-width: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: #fff;
  font-size: 0;
  text-shadow: none;
  justify-content: center;
  overflow: hidden;
}

[data-theme="win7"] .os-taskbar-app-btn > span:first-of-type {
  display: none;
}

[data-theme="win7"] .os-taskbar-app-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.06);
}

[data-theme="win7"] .os-taskbar-app-btn.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-shadow: none;
  box-shadow:
    inset 0 -2px 0 rgba(100, 180, 255, 0.6),
    inset 0 0 16px rgba(255, 255, 255, 0.08);
}

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

/* Tooltip */
[data-theme="win7"] .os-tooltip {
  background: rgba(20, 30, 50, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* System tray */
[data-theme="win7"] .os-system-tray {
  height: 40px;
  background: transparent;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 12px;
  gap: 8px;
}

[data-theme="win7"] .os-tray-icon {
  fill: rgba(255, 255, 255, 0.8);
}

[data-theme="win7"] .os-clock,
[data-theme="win7"] .os-clock-btn {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 11px;
  text-shadow: none;
}

[data-theme="win7"] .os-calendar-popup {
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 10px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

[data-theme="win7"] .os-calendar-header {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

[data-theme="win7"] .os-calendar-nav {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="win7"] .os-calendar-nav:hover {
  color: #fff;
}

[data-theme="win7"] .os-calendar-day-label {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="win7"] .os-calendar-day {
  color: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}

[data-theme="win7"] .os-calendar-day:hover:not(.os-calendar-day--empty) {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="win7"] .os-calendar-day--today {
  background: #3399FF;
  color: #fff;
}

/* ── Notification Balloon ────────────────────────────────── */
[data-theme="win7"] .os-balloon {
  background: rgba(20, 30, 50, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="win7"] .os-balloon-arrow {
  border-top-color: rgba(20, 30, 50, 0.92);
  filter: none;
}

[data-theme="win7"] .os-balloon-header strong {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="win7"] .os-balloon-close {
  color: rgba(255, 255, 255, 0.6);
}

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

[data-theme="win7"] .os-balloon-body {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Window overrides ─────────────────────────────────────── */
/* 7.css handles most window chrome. Override for Aero glass feel. */
[data-theme="win7"] .window {
  border: none;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: none;
  overflow: hidden;
}

[data-theme="win7"] .window.inactive {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ── Start Menu ───────────────────────────────────────────── */
[data-theme="win7"] .os-start-menu {
  background: rgba(30, 40, 60, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px 8px 0 0;
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  font-family: "Segoe UI", Tahoma, sans-serif;
  bottom: 40px;
  color: #fff;
}

[data-theme="win7"] .os-start-menu-header {
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="win7"] .os-start-menu-avatar {
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="win7"] .os-start-menu-username {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

[data-theme="win7"] .os-start-menu-left {
  background: rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="win7"] .os-start-menu-right {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="win7"] .os-start-menu-item {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .os-start-menu-item:hover {
  background: rgba(100, 160, 240, 0.3);
  color: #fff;
}

[data-theme="win7"] .os-start-menu-right .os-start-menu-item {
  font-weight: normal;
}

[data-theme="win7"] .os-start-menu-separator {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="win7"] .os-start-menu-right .os-start-menu-separator {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="win7"] .os-start-menu-footer {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: space-between;
}

[data-theme="win7"] .os-start-menu-search {
  flex: 1;
}

[data-theme="win7"] .os-start-menu-search input {
  width: 100%;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 11px;
  outline: none;
}

[data-theme="win7"] .os-start-menu-footer button {
  background: rgba(50, 80, 140, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 11px;
  padding: 4px 16px;
  border-radius: 3px;
  cursor: pointer;
}

[data-theme="win7"] .os-start-menu-footer button:hover {
  background: rgba(60, 100, 170, 0.7);
}

/* ── Shutdown Dialog ──────────────────────────────────────── */
[data-theme="win7"] .os-shutdown-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

[data-theme="win7"] .os-shutdown-dialog {
  background: rgba(30, 40, 60, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #fff;
}

[data-theme="win7"] .os-shutdown-title {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: none;
}

[data-theme="win7"] .os-shutdown-btn {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: none;
}

[data-theme="win7"] .os-shutdown-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="win7"] .os-shutdown-cancel {
  background: rgba(50, 70, 110, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  border-radius: 3px;
}

[data-theme="win7"] .os-shutdown-cancel:hover {
  background: rgba(60, 90, 140, 0.7);
}

/* ── Desktop Selection Rectangle ─────────────────────────── */
[data-theme="win7"] .os-selection-rect {
  background: rgba(100, 160, 230, 0.2);
  border: 1px solid rgba(100, 160, 230, 0.5);
  border-radius: 1px;
}

/* ── Context Menu ─────────────────────────────────────────── */
[data-theme="win7"] .os-context-menu {
  background: rgba(40, 50, 70, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

[data-theme="win7"] .os-context-menu-item {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="win7"] .os-context-menu-item:hover {
  background: rgba(100, 160, 240, 0.3);
  color: #fff;
}

[data-theme="win7"] .os-context-menu-item.disabled {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="win7"] .os-context-menu-separator {
  background: rgba(255, 255, 255, 0.1);
}

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

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

[data-theme="win7"] .os-boot-7-flag {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="win7"] .os-boot-7-orb {
  width: 64px;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  transform: rotate(-12deg);
}

[data-theme="win7"] .os-boot-7-orb-red {
  background: radial-gradient(circle at 40% 40%, #FF6B6B, #E03030 60%, #B01818);
  border-radius: 2px 6px 2px 2px;
}

[data-theme="win7"] .os-boot-7-orb-green {
  background: radial-gradient(circle at 60% 40%, #6BDD6B, #30A830 60%, #188818);
  border-radius: 6px 2px 2px 2px;
}

[data-theme="win7"] .os-boot-7-orb-blue {
  background: radial-gradient(circle at 40% 60%, #6B8FFF, #3060E0 60%, #1840B0);
  border-radius: 2px 2px 2px 6px;
}

[data-theme="win7"] .os-boot-7-orb-yellow {
  background: radial-gradient(circle at 60% 60%, #FFD862, #E8A020 60%, #C88000);
  border-radius: 2px 2px 6px 2px;
}

[data-theme="win7"] .os-boot-7-text {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Segoe UI Light", "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
}

[data-theme="win7"] .os-boot-progress-track {
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="win7"] .os-boot-progress-bar {
  background: linear-gradient(180deg, #4E8EDB 0%, #2070C0 50%, #1860A0 100%);
}

[data-theme="win7"] .os-boot-copyright {
  color: rgba(255, 255, 255, 0.3);
  font-family: "Segoe UI", sans-serif;
}

/* ── Theme Picker ────────────────────────────────────────── */
[data-theme="win7"] .theme-picker {
  background: #F0F0F0;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .theme-picker-tab {
  border-radius: 4px 4px 0 0;
  border-color: #D0D0D0;
}

[data-theme="win7"] .theme-picker-body {
  border-color: #D0D0D0;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="win7"] .theme-picker-details {
  background: linear-gradient(180deg, #FAFAFA 0%, #F0F0F0 100%);
  border-top: 1px solid #E0E0E0;
}

[data-theme="win7"] .theme-picker-apply-btn {
  background: linear-gradient(180deg, #4E8EDB 0%, #3070C0 100%);
  border: 1px solid #2060A0;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

[data-theme="win7"] .theme-picker-apply-btn:hover {
  background: linear-gradient(180deg, #5A9AE6 0%, #3A7ACA 100%);
}

[data-theme="win7"] .theme-picker-current-badge {
  background: #F0F0F0;
  border: 1px solid #D0D0D0;
  border-radius: 3px;
}

/* ── Oli Chat ────────────────────────────────────────────── */
[data-theme="win7"] .oli-chat {
  background: #F0F0F0;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .oli-chat-header {
  background: linear-gradient(180deg, #FAFAFA 0%, #F0F0F0 100%);
  border-bottom: 1px solid #D0D0D0;
}

[data-theme="win7"] .oli-chat-title {
  color: #1E4D8C;
}

[data-theme="win7"] .oli-chat-messages {
  background: #FFFFFF;
}

[data-theme="win7"] .oli-chat-msg-text {
  background: #F5F5F5;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
}

[data-theme="win7"] .oli-chat-msg--user .oli-chat-msg-text {
  background: #DCE8F5;
  border: 1px solid #B8CCE4;
  border-radius: 6px;
}

[data-theme="win7"] .oli-chat-input {
  background: #F0F0F0;
  border-top: 1px solid #D0D0D0;
}

[data-theme="win7"] .oli-chat-input input {
  border: 1px solid #ABABAB;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .oli-chat-input button {
  background: linear-gradient(180deg, #F5F5F5 0%, #E5E5E5 100%);
  border: 1px solid #ABABAB;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .oli-chat-input button:hover {
  background: linear-gradient(180deg, #E8F0FB 0%, #D0E0F5 100%);
  border-color: #7EB4EA;
}

[data-theme="win7"] .oli-chat-quota {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 10px;
  color: #999;
  background: #F0F0F0;
  border-top: 1px solid #D0D0D0;
}

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

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

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

[data-theme="win7"] .oli-chat-ant-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

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

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

[data-theme="win7"] .oli-chat-mode-toggle {
  font-size: 10px;
  padding: 1px 6px;
  border: 1px solid #ABABAB;
  background: linear-gradient(180deg, #F5F5F5 0%, #E5E5E5 100%);
  border-radius: 3px;
  cursor: pointer;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #333;
}

[data-theme="win7"] .oli-chat-mode-toggle:hover {
  background: linear-gradient(180deg, #E8F0FB 0%, #D0E0F5 100%);
  border-color: #7EB4EA;
}

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

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

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

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

/* ── Terminal ────────────────────────────────────────────── */
[data-theme="win7"] .terminal {
  background: #0C0C0C;
  color: #CCCCCC;
  font-family: 'Consolas', 'Lucida Console', monospace;
  font-size: 14px;
}

[data-theme="win7"] .terminal-output {
  padding: 8px 12px;
}

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

[data-theme="win7"] .terminal-prompt {
  color: #CCCCCC;
}

[data-theme="win7"] .terminal-input {
  color: #CCCCCC;
  font: inherit;
  caret-color: #CCCCCC;
}

/* ── Oli Tray ────────────────────────────────────────────── */
[data-theme="win7"] .oli-tray-btn svg {
  fill: rgba(255, 255, 255, 0.8);
}

[data-theme="win7"] .oli-tray-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* ── App Menubar ─────────────────────────────────────────── */
[data-theme="win7"] .os-app-menubar {
  background: #F0F0F0;
  border-bottom: 1px solid #D0D0D0;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

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

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

[data-theme="win7"] .os-app-menu-dropdown {
  background: #F0F0F0;
  border: 1px solid #D0D0D0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  padding: 2px 0;
}

[data-theme="win7"] .os-app-menu-item {
  padding: 4px 20px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}

[data-theme="win7"] .os-app-menu-item:hover:not(:disabled) {
  background: #E5F1FB;
}

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

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

[data-theme="win7"] .os-app-textarea {
  border: 1px solid #ABABAB;
  font-family: 'Consolas', 'Lucida Console', monospace;
}

[data-theme="win7"] .os-app-statusbar {
  background: #F0F0F0;
  border-top: 1px solid #D0D0D0;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

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

[data-theme="win7"] .os-app-toolbar-btn {
  font-family: "Segoe UI", Tahoma, sans-serif;
  border-radius: 3px;
}

[data-theme="win7"] .os-app-toolbar-btn:hover {
  border-color: #7EB4EA;
  background: #E5F1FB;
}

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

[data-theme="win7"] .os-app-toolbar-separator {
  width: 1px;
  height: 20px;
  background: #D0D0D0;
  margin: 0 2px;
}

[data-theme="win7"] .os-app-addressbar {
  background: #F0F0F0;
  border-bottom: 1px solid #D0D0D0;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .os-app-addressbar input {
  border: 1px solid #ABABAB;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .os-app-go-btn {
  background: linear-gradient(180deg, #F5F5F5 0%, #E5E5E5 100%);
  border: 1px solid #ABABAB;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .os-app-go-btn:hover {
  background: #E5F1FB;
  border-color: #7EB4EA;
}

/* ── My Computer ─────────────────────────────────────────── */
[data-theme="win7"] .os-app-sidebar {
  background: linear-gradient(180deg, #E8F0F8 0%, #D8E8F5 100%);
  border-right: 1px solid #D0D0D0;
}

[data-theme="win7"] .os-app-sidebar-section {
  border-radius: 3px;
}

[data-theme="win7"] .os-app-sidebar-title {
  background: linear-gradient(180deg, #F5F5F5 0%, #E5E5E5 100%);
  color: #1E4D8C;
  border-bottom: 1px solid #D0D0D0;
}

[data-theme="win7"] .os-app-sidebar-item {
  color: #1E4D8C;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .os-app-section-label {
  color: #1E4D8C;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

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

[data-theme="win7"] .os-app-grid-item {
  font-family: "Segoe UI", Tahoma, sans-serif;
  border-radius: 3px;
}

[data-theme="win7"] .os-app-grid-item:hover {
  background: rgba(100, 160, 230, 0.15);
  border-color: rgba(100, 160, 230, 0.4);
}

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

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

[data-theme="win7"] .os-app-addressbar-dropdown-btn {
  font-size: 8px;
  padding: 0 4px;
  color: #000;
  height: 22px;
  background: linear-gradient(180deg, #F5F5F5 0%, #E5E5E5 100%);
  border: 1px solid #ABABAB;
  border-left: none;
  border-radius: 0 3px 3px 0;
}

[data-theme="win7"] .os-app-addressbar-dropdown {
  background: #fff;
  border: 1px solid #ABABAB;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="win7"] .os-app-addressbar-dropdown-item {
  padding: 3px 6px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}

[data-theme="win7"] .os-app-addressbar-dropdown-item:hover {
  background: #E5F1FB;
}

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

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

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

[data-theme="win7"] .ie-context-menu {
  background: #F0F0F0;
  border: 1px solid #D0D0D0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  padding: 2px 0;
}

[data-theme="win7"] .ie-context-menu-item {
  padding: 4px 20px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}

[data-theme="win7"] .ie-context-menu-item:hover:not(:disabled) {
  background: #E5F1FB;
}

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

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

[data-theme="win7"] .ie-loading-text {
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #333;
}

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

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

/* ── Browser Error Page ──────────────────────────────────── */
[data-theme="win7"] .ie-error {
  padding: 24px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
  color: #333;
}

[data-theme="win7"] .ie-error h2 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #1E4D8C;
}

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

[data-theme="win7"] .ie-error a {
  color: #1E4D8C;
}

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

/* ── Browser pages (Aero style) ──────────────────────────── */
[data-theme="win7"] .ie-home {
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .ie-home-banner {
  background: linear-gradient(135deg, #1E4D8C 0%, #3070C0 60%, #4E8EDB 100%);
}

[data-theme="win7"] .ie-home-section h3 {
  color: #1E4D8C;
}

[data-theme="win7"] .ie-home-links a {
  color: #1E4D8C;
}

[data-theme="win7"] .ie-home-card {
  background: #F5F5F5;
  border: 1px solid #E0E0E0;
  border-radius: 3px;
}

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

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

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

[data-theme="win7"] .ie-about {
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .ie-about-header {
  border-bottom-color: #1E4D8C;
}

[data-theme="win7"] .ie-about-header h1 {
  color: #1E4D8C;
}

[data-theme="win7"] .ie-about-section h2 {
  color: #1E4D8C;
}

[data-theme="win7"] .ie-about-card {
  background: #F5F5F5;
  border: 1px solid #E0E0E0;
  border-radius: 3px;
}

[data-theme="win7"] .ie-about-card a {
  color: #1E4D8C;
}

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

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

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

[data-theme="win7"] .ie-search-tagline {
  color: #888;
  font-size: 12px;
  margin: 4px 0 0;
}

[data-theme="win7"] .ie-search-input {
  border: 1px solid #ABABAB;
  border-radius: 3px;
  padding: 4px 6px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
}

[data-theme="win7"] .ie-search-input:focus {
  border-color: #3399FF;
  outline: none;
}

[data-theme="win7"] .ie-search-btn {
  background: linear-gradient(180deg, #F5F5F5 0%, #E5E5E5 100%);
  border: 1px solid #ABABAB;
  border-radius: 3px;
  padding: 4px 12px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
  cursor: pointer;
}

[data-theme="win7"] .ie-search-btn:hover {
  background: linear-gradient(180deg, #E8F0FB 0%, #D0E0F5 100%);
  border-color: #7EB4EA;
}

[data-theme="win7"] .ie-search-links {
  font-size: 12px;
  color: #888;
}

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

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

/* ── Browser Portfolio Page (Retro) ──────────────────────── */
[data-theme="win7"] .ie-portfolio-header {
  background: linear-gradient(135deg, #1E4D8C 0%, #3070C0 100%);
  color: #FFD700;
  padding: 12px 16px;
  text-align: center;
}

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

[data-theme="win7"] .ie-portfolio-sidebar {
  background: #F0F0F0;
  border-right: 1px solid #D0D0D0;
  padding: 8px;
}

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

[data-theme="win7"] .ie-portfolio-nav a {
  color: #1E4D8C;
  font-size: 12px;
}

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

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

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

[data-theme="win7"] .ie-portfolio-main a {
  color: #1E4D8C;
}

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

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

/* ── Browser Help Page ───────────────────────────────────── */
[data-theme="win7"] .ie-help {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
  color: #333;
  background: #fff;
  line-height: 1.5;
}

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

[data-theme="win7"] .ie-help h2 {
  font-size: 14px;
  color: #1E4D8C;
  margin: 16px 0 4px;
}

[data-theme="win7"] .ie-help a {
  color: #1E4D8C;
}

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

/* ── Icon Selection ──────────────────────────────────────── */
[data-theme="win7"] .os-desktop-icon--selected {
  background: rgba(51, 153, 255, 0.25);
  border: 1px solid rgba(51, 153, 255, 0.6);
  border-radius: 3px;
}

[data-theme="win7"] .os-desktop-icon--selected .os-desktop-icon-label {
  background: rgba(51, 153, 255, 0.5);
  color: #fff;
  border-radius: 2px;
}

/* ── Alt+Tab Switcher ────────────────────────────────────── */
[data-theme="win7"] .os-alt-tab-container {
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="win7"] .os-alt-tab-item {
  color: #fff;
  border: 2px solid transparent;
  border-radius: 4px;
}

[data-theme="win7"] .os-alt-tab-item--active {
  border-color: rgba(51, 153, 255, 0.8);
  background: rgba(51, 153, 255, 0.2);
}

[data-theme="win7"] .os-alt-tab-label {
  font-family: "Segoe UI", Tahoma, sans-serif;
}

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

[data-theme="win7"] .os-snap-preview {
  background: rgba(100, 149, 237, 0.2);
  border: 2px solid rgba(100, 149, 237, 0.6);
  border-radius: 6px;
  backdrop-filter: blur(2px);
}

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

[data-theme="win7"] .os-display-props {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
}

[data-theme="win7"] .os-display-props-tab {
  background: #e8e8e8;
  border-color: #b0b0b0;
  border-radius: 3px 3px 0 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

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

[data-theme="win7"] .os-display-props-body {
  background: #f5f5f5;
  border-color: #b0b0b0;
}

[data-theme="win7"] .os-display-props-monitor {
  border-color: #444;
  border-radius: 8px 8px 2px 2px;
}

[data-theme="win7"] .os-display-props-list {
  border: 1px solid #b0b0b0;
  border-radius: 3px;
}

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

[data-theme="win7"] .os-display-props-color-swatch {
  border-radius: 3px;
  border-color: #b0b0b0;
}

[data-theme="win7"] .os-display-props-color-swatch.selected {
  border-color: #3399ff;
  box-shadow: 0 0 0 1px #3399ff;
}

[data-theme="win7"] .os-display-props-btn {
  background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
  border: 1px solid #b0b0b0;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .os-display-props-btn:hover {
  background: linear-gradient(to bottom, #e8f0fe, #d0e0f0);
  border-color: #3399ff;
}

[data-theme="win7"] .os-display-props-footer {
  background: #f0f0f0;
  border-top-color: #d0d0d0;
}

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

[data-theme="win7"] .notepad-find-bar {
  background: #f0f0f0;
  border-bottom: 1px solid #d0d0d0;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .notepad-find-input {
  border: 1px solid #abadb3;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
  padding: 2px 4px;
}

[data-theme="win7"] .notepad-find-input:focus {
  border-color: #3399ff;
  outline: none;
}

[data-theme="win7"] .notepad-find-btn {
  background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
  border: 1px solid #b0b0b0;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
  padding: 2px 10px;
  cursor: pointer;
}

[data-theme="win7"] .notepad-find-btn:hover {
  background: linear-gradient(to bottom, #e8f0fe, #d0e0f0);
  border-color: #3399ff;
}

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

[data-theme="win7"] .paint-toolbox {
  background: #f0f0f0;
  border-right: 1px solid #c0c0c0;
}

[data-theme="win7"] .paint-tool-btn {
  background: #f0f0f0;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #1e1e1e;
}

[data-theme="win7"] .paint-tool-btn:hover {
  border-color: #3399FF;
  background: linear-gradient(to bottom, #e8f0fe, #d0e0f0);
}

[data-theme="win7"] .paint-tool-btn.active {
  border-color: #3399FF;
  background: #cce4ff;
}

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

[data-theme="win7"] .paint-canvas-wrap {
  background: #a0a0a0;
  border: 1px solid #abadb3;
}

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

[data-theme="win7"] .paint-palette {
  background: #f0f0f0;
  border-top: 1px solid #c0c0c0;
}

[data-theme="win7"] .paint-color-preview {
  border: 1px solid #abadb3;
  border-radius: 2px;
}

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

[data-theme="win7"] .paint-color-swatch:hover {
  border-color: #3399FF;
}

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

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

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

[data-theme="win7"] .calc-display {
  background: #fff;
  border: 1px solid #abadb3;
  border-radius: 2px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #1e1e1e;
}

[data-theme="win7"] .calc-btn {
  background: #e8e8e8;
  border: 1px solid #abadb3;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #1e1e1e;
}

[data-theme="win7"] .calc-btn:hover {
  background: linear-gradient(to bottom, #e8f0fe, #d0e0f0);
  border-color: #3399FF;
}

[data-theme="win7"] .calc-btn:active {
  background: #cce4ff;
}

[data-theme="win7"] .calc-btn-eq {
  background: #3399FF;
  color: #fff;
  border-color: #2277CC;
}

[data-theme="win7"] .calc-btn-eq:hover {
  background: #2277CC;
}

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

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

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

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

[data-theme="win7"] .ms-header {
  background: #e8e8e8;
  border: 1px solid #abadb3;
  border-radius: 3px;
}

[data-theme="win7"] .ms-counter {
  background: #1a1a1a;
  color: #FF0000;
  border: 1px solid #abadb3;
  border-radius: 2px;
  font-family: "Consolas", monospace;
}

[data-theme="win7"] .ms-face {
  background: #e8e8e8;
  border: 1px solid #abadb3;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .ms-face:hover {
  background: linear-gradient(to bottom, #e8f0fe, #d0e0f0);
  border-color: #3399FF;
}

[data-theme="win7"] .ms-board {
  border: 1px solid #abadb3;
  border-radius: 2px;
}

[data-theme="win7"] .ms-cell {
  background: #d4d4d4;
  border: 1px solid #abadb3;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .ms-cell:hover:not(.revealed) {
  background: #cce4ff;
  border-color: #3399FF;
}

[data-theme="win7"] .ms-cell.revealed {
  border: 1px solid #c0c0c0;
  background: #e8e8e8;
}

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

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

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

[data-theme="win7"] .os-app-error {
  color: #1e1e1e;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12px;
}

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

[data-theme="win7"] .os-app-admin {
  background: #f0f0f0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #1e1e1e;
}

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

[data-theme="win7"] .os-app-admin-avatar {
  background: linear-gradient(180deg, #6ba5e7 0%, #3a7bd5 100%);
  color: #fff;
  border-radius: 4px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

[data-theme="win7"] .os-app-admin-stat {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 2px;
}

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

[data-theme="win7"] .os-app-admin-input {
  border: 1px solid #abadb3;
  border-radius: 1px;
  background: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

[data-theme="win7"] .os-app-admin-submit,
[data-theme="win7"] .os-app-admin-logout {
  background: linear-gradient(180deg, #f0f0f0 0%, #e5e5e5 100%);
  border: 1px solid #acacac;
  border-radius: 3px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #1e1e1e;
}

[data-theme="win7"] .os-app-admin-submit:hover:not(:disabled),
[data-theme="win7"] .os-app-admin-logout:hover {
  background: linear-gradient(180deg, #ecf4fd 0%, #dcecfc 100%);
  border-color: #7eb4ea;
}
