/* Mac OS 9 theme — Platinum UI */
/* No CSS framework — all custom styling */

/* ── Desktop ──────────────────────────────────────────────── */
.os-desktop[data-theme="mac"] {
  background: #6E6E9E url("/mac/mac9-pattern.png") repeat;
  flex-direction: column;
}

[data-theme="mac"] .os-desktop-area {
  background: transparent;
}

/* ── Desktop Icons ────────────────────────────────────────── */
[data-theme="mac"] .os-icon-grid {
  align-content: flex-end;
  justify-content: flex-end;
  padding: 24px 8px 8px;
}

[data-theme="mac"] .os-desktop-icon:focus,
[data-theme="mac"] .os-desktop-icon.selected {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.4);
  border-radius: 0;
}

[data-theme="mac"] .os-desktop-icon-label {
  font-family: "Geneva", "Lucida Grande", Tahoma, sans-serif;
  font-size: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ── Taskbar (Menu Bar at top) ────────────────────────────── */
[data-theme="mac"] .os-taskbar {
  height: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E8E8E8 20%, #D8D8D8 50%, #CCCCCC 80%, #C0C0C0 100%);
  border-top: none;
  border-bottom: 1px solid #999;
  order: -1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

[data-theme="mac"] .os-start-btn {
  height: 20px;
  padding: 0 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #000;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 12px;
  font-weight: normal;
  font-style: normal;
  text-shadow: none;
  letter-spacing: 0;
  box-shadow: none;
  gap: 2px;
}

[data-theme="mac"] .os-start-btn:hover {
  background: #000;
  color: #fff;
}

[data-theme="mac"] .os-start-btn:hover svg {
  fill: #fff;
}

[data-theme="mac"] .os-start-btn:active {
  background: #000;
  color: #fff;
  box-shadow: none;
  padding: 0 8px;
}

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

/* Mac menu items in menu bar */
[data-theme="mac"] .os-mac-menu-items {
  display: flex;
  align-items: center;
  gap: 0;
  height: 20px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 12px;
}

[data-theme="mac"] .os-mac-menu-app-name {
  font-weight: bold;
  padding: 0 10px;
}

[data-theme="mac"] .os-mac-menu-label {
  padding: 0 8px;
  cursor: default;
}

[data-theme="mac"] .os-mac-menu-label:hover {
  background: #000;
  color: #fff;
}

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

/* Running apps area — hidden on Mac (no dock in OS 9) */
[data-theme="mac"] .os-taskbar-apps {
  flex: 1;
}

/* System tray (right side of menu bar) */
[data-theme="mac"] .os-system-tray {
  height: 20px;
  background: transparent;
  border-left: none;
  padding: 0 8px;
  gap: 6px;
}

[data-theme="mac"] .os-tray-icon {
  fill: #000;
  width: 12px;
  height: 12px;
}

[data-theme="mac"] .os-clock,
[data-theme="mac"] .os-clock-btn {
  color: #000;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 11px;
  text-shadow: none;
}

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

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

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

[data-theme="mac"] .os-calendar-popup {
  background: #ECECEC;
  border: 1px solid #888;
  border-radius: 6px;
  padding: 8px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="mac"] .os-calendar-header {
  font-weight: bold;
  color: #333;
  padding-bottom: 4px;
  border-bottom: 1px solid #CCC;
  margin-bottom: 4px;
}

[data-theme="mac"] .os-calendar-nav {
  color: #333;
}

[data-theme="mac"] .os-calendar-day--today {
  background: #3366CC;
  color: #fff;
  font-weight: bold;
  border-radius: 3px;
}

/* ── Notification Balloon ────────────────────────────────── */
[data-theme="mac"] .os-balloon {
  background: #FFFFF0;
  border: 1px solid #000;
  border-radius: 8px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
  top: 100%;
  bottom: auto;
  margin-top: 8px;
  margin-bottom: 0;
}

[data-theme="mac"] .os-balloon-arrow {
  top: -8px;
  bottom: auto;
  border-top: none;
  border-bottom: 8px solid #FFFFF0;
  filter: drop-shadow(0 -1px 0 #000);
}

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

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

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

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

/* ── Window overrides ─────────────────────────────────────── */
/* Mac OS 9 Platinum window chrome */
[data-theme="mac"] .window {
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
  animation: none;
  background: #DDDDDD;
  overflow: hidden;
}

[data-theme="mac"] .window.inactive {
  border-color: #666;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

[data-theme="mac"] .window .title-bar {
  background: linear-gradient(180deg, #FFFFFF 0%, #E8E8E8 20%, #D8D8D8 50%, #CCCCCC 80%, #C0C0C0 100%);
  padding: 0 4px;
  min-height: 20px;
  border-bottom: 1px solid #999;
  flex-direction: row;
}

[data-theme="mac"] .window.inactive .title-bar {
  background: #E8E8E8;
}

[data-theme="mac"] .window .title-bar-text {
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #000;
  text-shadow: none;
  text-align: center;
}

[data-theme="mac"] .window.inactive .title-bar-text {
  color: #888;
  text-shadow: none;
}

/* Mac: controls on the left */
[data-theme="mac"] .window .title-bar-controls {
  order: -1;
  margin-right: 8px;
}

[data-theme="mac"] .window .title-bar-controls button {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border-radius: 50%;
  border: 1px solid #666;
  background: #DDDDDD;
  margin: 0 2px;
  padding: 0;
  background-image: none !important;
}

[data-theme="mac"] .window .title-bar-controls button[aria-label="Close"] {
  background: #FF5F57;
  border-color: #E0443E;
}

[data-theme="mac"] .window .title-bar-controls button[aria-label="Minimize"] {
  background: #FEBC2E;
  border-color: #DFA123;
}

[data-theme="mac"] .window .title-bar-controls button[aria-label="Maximize"],
[data-theme="mac"] .window .title-bar-controls button[aria-label="Restore"] {
  background: #28C840;
  border-color: #1AAB29;
}

[data-theme="mac"] .window-body {
  background: #EEEEEE;
  margin: 0;
  padding: 8px;
}

/* ── Start Menu (Apple Menu) ──────────────────────────────── */
[data-theme="mac"] .os-start-menu--apple {
  position: absolute;
  top: 20px;
  left: 0;
  bottom: auto;
  background: #FFFFFF;
  border: 1px solid #000;
  border-radius: 0;
  z-index: 10000;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  padding: 2px 0;
}

[data-theme="mac"] .os-start-menu--apple .os-start-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 16px 2px 8px;
  cursor: default;
  font-size: 12px;
  color: #000;
  height: 22px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

[data-theme="mac"] .os-start-menu--apple .os-start-menu-item:hover {
  background: #3366CC;
  color: #fff;
}

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

[data-theme="mac"] .os-start-menu--apple .os-start-menu-separator {
  height: 1px;
  background: #CCC;
  margin: 2px 0;
  border: none;
}

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

[data-theme="mac"] .os-shutdown-dialog {
  background: #DDDDDD;
  border: 1px solid #000;
  border-radius: 8px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  color: #000;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  padding: 20px 24px;
}

[data-theme="mac"] .os-shutdown-title {
  color: #000;
  text-shadow: none;
  font-size: 12px;
}

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

[data-theme="mac"] .os-shutdown-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #999;
}

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

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

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

[data-theme="mac"] .os-shutdown-cancel {
  background: #DDDDDD;
  border: 1px solid #999;
  border-radius: 4px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  color: #000;
  box-shadow: none;
}

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

/* ── Desktop Selection Rectangle ─────────────────────────── */
[data-theme="mac"] .os-selection-rect {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.4);
}

/* ── Context Menu ─────────────────────────────────────────── */
[data-theme="mac"] .os-context-menu {
  background: #FFFFFF;
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 12px;
}

[data-theme="mac"] .os-context-menu-item {
  font-size: 12px;
  padding: 2px 24px 2px 20px;
}

[data-theme="mac"] .os-context-menu-item:hover {
  background: #3366CC;
  color: #fff;
}

[data-theme="mac"] .os-context-menu-separator {
  background: #CCC;
}

/* ── Boot Screen ─────────────────────────────────────────── */
[data-theme="mac"] .os-boot-overlay {
  background: #C0C0C0;
}

[data-theme="mac"] .os-boot-loading--mac {
  background: #C0C0C0;
}

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

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

[data-theme="mac"] .os-boot-mac-text {
  color: #000;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 14px;
  font-weight: bold;
}

[data-theme="mac"] .os-boot-progress-track {
  border-color: #999;
  background: #DDDDDD;
}

[data-theme="mac"] .os-boot-progress-bar {
  background: linear-gradient(180deg, #3366CC 0%, #2255AA 50%, #1144AA 100%);
}

[data-theme="mac"] .os-boot-copyright {
  color: #666;
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

/* ── Theme Picker ────────────────────────────────────────── */
[data-theme="mac"] .theme-picker {
  background: #EEEEEE;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

[data-theme="mac"] .theme-picker-tab {
  border-radius: 4px 4px 0 0;
  border-color: #999;
  font-size: 10px;
}

[data-theme="mac"] .theme-picker-tab-year {
  font-size: 11px;
}

[data-theme="mac"] .theme-picker-tab-name {
  font-size: 9px;
}

[data-theme="mac"] .theme-picker-body {
  border-color: #999;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

[data-theme="mac"] .theme-picker-details {
  background: #EEEEEE;
  border-top: 1px solid #CCC;
}

[data-theme="mac"] .theme-picker-desc {
  font-size: 10px;
}

[data-theme="mac"] .theme-picker-apply-btn {
  background: #DDDDDD;
  border: 1px solid #999;
  border-radius: 4px;
  color: #000;
  text-shadow: none;
  font-weight: normal;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
  box-shadow: none;
}

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

[data-theme="mac"] .theme-picker-current-badge {
  background: #DDDDDD;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 10px;
}

/* ── Oli Chat ────────────────────────────────────────────── */
[data-theme="mac"] .oli-chat {
  background: #EEEEEE;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

[data-theme="mac"] .oli-chat-header {
  background: #EEEEEE;
  border-bottom: 1px solid #999;
}

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

[data-theme="mac"] .oli-chat-messages {
  background: #FFFFFF;
  border: 1px solid #999;
}

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

[data-theme="mac"] .oli-chat-msg--user .oli-chat-msg-text {
  background: #D8E8F0;
  border: 1px solid #999;
  color: #000;
}

[data-theme="mac"] .oli-chat-input {
  background: #EEEEEE;
  border-top: 1px solid #999;
}

[data-theme="mac"] .oli-chat-input input {
  border: 1px solid #999;
  border-radius: 0;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

[data-theme="mac"] .oli-chat-input button {
  background: #DDDDDD;
  border: 1px solid #999;
  border-radius: 4px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

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

[data-theme="mac"] .oli-chat-quota {
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 9px;
  color: #999;
  background: #EEEEEE;
  border-top: 1px solid #999;
}

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

[data-theme="mac"] .oli-chat-age {
  font-size: 9px;
  color: #888;
}

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

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

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

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

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

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

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

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

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

[data-theme="mac"] .oli-chat-mode-toggle {
  font-size: 9px;
  padding: 1px 6px;
  border: 1px solid #999;
  background: #DDDDDD;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  color: #333;
}

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

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

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

[data-theme="mac"] .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="mac"] .oli-tray-avatar-small {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Terminal ────────────────────────────────────────────── */
[data-theme="mac"] .terminal {
  background: #1E1E1E;
  color: #F5F5F5;
  font-family: 'Monaco', 'Geneva', 'Courier New', monospace;
  font-size: 12px;
}

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

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

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

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

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

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

/* ── App Menubar ─────────────────────────────────────────── */
[data-theme="mac"] .os-app-menubar {
  background: #EEEEEE;
  border-bottom: 1px solid #999;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

[data-theme="mac"] .os-app-menubar span {
  font-size: 10px;
}

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

[data-theme="mac"] .os-app-menu-label {
  padding: 2px 6px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

[data-theme="mac"] .os-app-menu-dropdown {
  background: #EEEEEE;
  border: 1px solid #999;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
  padding: 2px 0;
}

[data-theme="mac"] .os-app-menu-item {
  padding: 3px 20px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
  color: #000;
}

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

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

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

[data-theme="mac"] .os-app-textarea {
  border: 1px solid #999;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 12px;
}

[data-theme="mac"] .os-app-statusbar {
  background: #EEEEEE;
  border-top: 1px solid #999;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

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

[data-theme="mac"] .os-app-toolbar-btn {
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
  border-radius: 3px;
}

[data-theme="mac"] .os-app-toolbar-btn:hover {
  background: #D8D8D8;
  border-color: #999;
}

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

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

[data-theme="mac"] .os-app-addressbar {
  background: #EEEEEE;
  border-bottom: 1px solid #999;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

[data-theme="mac"] .os-app-addressbar input {
  border: 1px solid #999;
  border-radius: 0;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

[data-theme="mac"] .os-app-go-btn {
  background: #DDDDDD;
  border: 1px solid #999;
  border-radius: 4px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

/* ── My Computer ─────────────────────────────────────────── */
[data-theme="mac"] .os-app-sidebar {
  background: #EEEEEE;
  border-right: 1px solid #999;
}

[data-theme="mac"] .os-app-sidebar-section {
  border-radius: 0;
  border: 1px solid #999;
}

[data-theme="mac"] .os-app-sidebar-title {
  background: linear-gradient(180deg, #FFFFFF 0%, #DDDDDD 100%);
  color: #000;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  border-bottom: 1px solid #999;
}

[data-theme="mac"] .os-app-sidebar-item {
  color: #000;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

[data-theme="mac"] .os-app-section-label {
  color: #000;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
}

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

[data-theme="mac"] .os-app-grid-item {
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
  border-radius: 0;
}

[data-theme="mac"] .os-app-grid-item:hover {
  background: rgba(51, 102, 204, 0.1);
  border-color: #3366CC;
}

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

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

[data-theme="mac"] .os-app-addressbar-dropdown-btn {
  font-size: 8px;
  padding: 0 4px;
  color: #000;
  height: 20px;
  background: #DDDDDD;
  border: 1px solid #999;
  border-left: none;
}

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

[data-theme="mac"] .os-app-addressbar-dropdown-item {
  padding: 2px 4px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
  color: #000;
}

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

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

[data-theme="mac"] .ie-throbber-icon {
  width: 18px;
  height: 18px;
  border: 2px solid #3366CC;
  border-top-color: transparent;
  opacity: 0.3;
}

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

[data-theme="mac"] .ie-context-menu {
  background: #EEEEEE;
  border: 1px solid #999;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
  padding: 2px 0;
}

[data-theme="mac"] .ie-context-menu-item {
  padding: 3px 20px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
  color: #000;
}

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

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

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

[data-theme="mac"] .ie-loading-text {
  font-family: "Geneva", "Lucida Grande", sans-serif;
  color: #333;
}

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

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

/* ── Browser Error Page ──────────────────────────────────── */
[data-theme="mac"] .ie-error {
  padding: 24px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 11px;
  color: #333;
}

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

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

[data-theme="mac"] .ie-error a {
  color: #3366CC;
}

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

/* ── Browser pages (Mac style) ────────────────────────────── */
[data-theme="mac"] .ie-home {
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

[data-theme="mac"] .ie-home-banner {
  background: linear-gradient(135deg, #3366CC 0%, #5588DD 100%);
}

[data-theme="mac"] .ie-home-section h3 {
  color: #3366CC;
}

[data-theme="mac"] .ie-home-links a {
  color: #3366CC;
}

[data-theme="mac"] .ie-home-card {
  background: #EEEEEE;
  border: 1px solid #CCC;
  border-radius: 0;
}

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

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

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

[data-theme="mac"] .ie-about {
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

[data-theme="mac"] .ie-about-header {
  border-bottom-color: #3366CC;
}

[data-theme="mac"] .ie-about-header h1 {
  color: #3366CC;
}

[data-theme="mac"] .ie-about-section h2 {
  color: #3366CC;
}

[data-theme="mac"] .ie-about-card {
  background: #EEEEEE;
  border: 1px solid #CCC;
  border-radius: 0;
}

[data-theme="mac"] .ie-about-card a {
  color: #3366CC;
}

/* ── Browser Search Page ─────────────────────────────────── */
[data-theme="mac"] .ie-search-page {
  font-family: "Geneva", "Lucida Grande", sans-serif;
  background: #fff;
}

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

[data-theme="mac"] .ie-search-title {
  font-size: 24px;
  color: #3366CC;
  margin: 0;
}

[data-theme="mac"] .ie-search-tagline {
  color: #999;
  font-size: 10px;
  margin: 4px 0 0;
}

[data-theme="mac"] .ie-search-input {
  border: 1px solid #999;
  border-radius: 3px;
  padding: 4px 6px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 11px;
}

[data-theme="mac"] .ie-search-input:focus {
  border-color: #3366CC;
  outline: none;
}

[data-theme="mac"] .ie-search-btn {
  background: #DDDDDD;
  border: 1px solid #999;
  border-radius: 4px;
  padding: 4px 12px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 10px;
  cursor: pointer;
}

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

[data-theme="mac"] .ie-search-links {
  font-size: 10px;
  color: #999;
}

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

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

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

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

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

[data-theme="mac"] .ie-portfolio-nav-title {
  font-weight: bold;
  font-size: 11px;
  margin: 4px 0;
  color: #3366CC;
}

[data-theme="mac"] .ie-portfolio-nav a {
  color: #3366CC;
  font-size: 10px;
}

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

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

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

[data-theme="mac"] .ie-portfolio-main a {
  color: #3366CC;
}

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

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

/* ── Browser Help Page ───────────────────────────────────── */
[data-theme="mac"] .ie-help {
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 11px;
  color: #333;
  background: #fff;
  line-height: 1.5;
}

[data-theme="mac"] .ie-help h1 {
  font-size: 16px;
  color: #333;
  margin: 0 0 8px;
  border-bottom: 1px solid #999;
  padding-bottom: 6px;
}

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

[data-theme="mac"] .ie-help a {
  color: #3366CC;
}

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

/* ── Icon Selection ──────────────────────────────────────── */
[data-theme="mac"] .os-desktop-icon--selected {
  background: #3366CC;
  border: 1px solid #2255AA;
  border-radius: 4px;
}

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

/* ── Alt+Tab Switcher ────────────────────────────────────── */
[data-theme="mac"] .os-alt-tab-container {
  background: #ECECEC;
  border: 1px solid #888;
  border-radius: 8px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

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

[data-theme="mac"] .os-alt-tab-item--active {
  border-color: #3366CC;
  background: rgba(51, 102, 204, 0.15);
}

[data-theme="mac"] .os-alt-tab-label {
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

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

[data-theme="mac"] .os-snap-preview {
  background: rgba(51, 102, 204, 0.15);
  border: 1px solid rgba(51, 102, 204, 0.5);
  border-radius: 4px;
}

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

[data-theme="mac"] .os-display-props {
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 11px;
}

[data-theme="mac"] .os-display-props-tab {
  background: #ddd;
  border: 1px solid #999;
  border-radius: 4px 4px 0 0;
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

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

[data-theme="mac"] .os-display-props-body {
  background: #eee;
  border-color: #999;
}

[data-theme="mac"] .os-display-props-monitor {
  border-color: #555;
  border-radius: 6px 6px 2px 2px;
}

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

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

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

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

[data-theme="mac"] .os-display-props-btn {
  background: #ddd;
  border: 1px solid #999;
  border-radius: 4px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

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

[data-theme="mac"] .os-display-props-footer {
  background: #ddd;
  border-top-color: #aaa;
}

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

[data-theme="mac"] .notepad-find-bar {
  background: #ddd;
  border-bottom: 1px solid #aaa;
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

[data-theme="mac"] .notepad-find-input {
  border: 1px solid #999;
  border-radius: 3px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 11px;
  padding: 2px 4px;
}

[data-theme="mac"] .notepad-find-input:focus {
  border-color: #3366CC;
  outline: none;
}

[data-theme="mac"] .notepad-find-btn {
  background: #ddd;
  border: 1px solid #999;
  border-radius: 4px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
}

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

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

[data-theme="mac"] .paint-toolbox {
  background: #DDD;
  border-right: 1px solid #999;
}

[data-theme="mac"] .paint-tool-btn {
  background: #DDD;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  color: #333;
}

[data-theme="mac"] .paint-tool-btn:hover {
  background: #CCC;
  border-color: #999;
}

[data-theme="mac"] .paint-tool-btn.active {
  background: #BBB;
  border-color: #666;
}

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

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

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

[data-theme="mac"] .paint-palette {
  background: #DDD;
  border-top: 1px solid #999;
}

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

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

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

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

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

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

[data-theme="mac"] .calc-display {
  background: #fff;
  border: 1px solid #999;
  border-radius: 3px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  color: #333;
}

[data-theme="mac"] .calc-btn {
  background: #EFEFEF;
  border: 1px solid #999;
  border-radius: 4px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  color: #333;
}

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

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

[data-theme="mac"] .calc-btn-eq {
  background: #007AFF;
  color: #fff;
  border-color: #0055CC;
}

[data-theme="mac"] .calc-btn-eq:hover {
  background: #0066DD;
}

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

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

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

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

[data-theme="mac"] .ms-header {
  background: #D0D0D0;
  border: 1px solid #999;
  border-radius: 3px;
}

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

[data-theme="mac"] .ms-face {
  background: #EFEFEF;
  border: 1px solid #999;
  border-radius: 4px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

[data-theme="mac"] .ms-face:hover {
  background: #E0E0E0;
}

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

[data-theme="mac"] .ms-cell {
  background: #CCC;
  border: 1px solid #999;
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

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

[data-theme="mac"] .ms-cell.revealed {
  border: 1px solid #AAA;
  background: #DDD;
}

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

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

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

[data-theme="mac"] .os-app-error {
  color: #333;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  font-size: 11px;
}

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

[data-theme="mac"] .os-app-admin {
  background: #ececec;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  color: #000;
}

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

[data-theme="mac"] .os-app-admin-avatar {
  background: linear-gradient(180deg, #6699cc 0%, #336699 100%);
  color: #fff;
  border-radius: 6px;
  border: 1px solid #336699;
}

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

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

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

[data-theme="mac"] .os-app-admin-input {
  border: 1px solid #999;
  border-radius: 3px;
  background: #fff;
  font-family: "Geneva", "Lucida Grande", sans-serif;
}

[data-theme="mac"] .os-app-admin-submit,
[data-theme="mac"] .os-app-admin-logout {
  background: linear-gradient(180deg, #fff 0%, #ddd 100%);
  border: 1px solid #999;
  border-radius: 5px;
  font-family: "Geneva", "Lucida Grande", sans-serif;
  color: #000;
}

[data-theme="mac"] .os-app-admin-submit:hover:not(:disabled),
[data-theme="mac"] .os-app-admin-logout:hover {
  background: linear-gradient(180deg, #e8e8ff 0%, #c8c8e8 100%);
}
