/* ==========================================================================
   ChromeOS Simulator & Recovery Experience CSS
   ========================================================================== */

:root {
  --os-blue: #1a73e8;
  --os-blue-hover: #1557b0;
  --os-surface: #202124;
  --os-surface-variant: #282a2d;
  --os-shelf-bg: rgba(32, 33, 36, 0.85);
  --os-shelf-border: rgba(255, 255, 255, 0.08);
  --os-text-primary: #e8eaed;
  --os-text-secondary: #9aa0a6;
  --os-border: rgba(255, 255, 255, 0.12);
  --os-panel-bg: rgba(40, 42, 45, 0.94);
  --os-accent-yellow: #fbbc04;
  --os-accent-red: #ea4335;
  --os-accent-green: #34a853;
  --os-font-sans: 'Roboto', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --os-font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--os-font-sans);
  background: #000;
  color: var(--os-text-primary);
  user-select: none;
  -webkit-user-select: none;
}

/* Quick Exit / Fullscreen Banner at Top */
.quick-exit-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(15, 17, 23, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--os-text-secondary);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

.quick-exit-bar:hover {
  background: rgba(20, 23, 32, 0.98);
}

.exit-link {
  color: #8ab4f8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.exit-link:hover {
  color: #d2e3fc;
  text-decoration: underline;
}

.exit-sep {
  opacity: 0.4;
}

.exit-hint {
  color: #bdc1c6;
}

.exit-fullscreen-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #fff;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s;
}

.exit-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Main Container */
.chromebook-screen {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: #0d1117;
}

body.fullscreen-mode .quick-exit-bar {
  transform: translateY(-100%);
}

body.fullscreen-mode .chromebook-screen {
  top: 0;
}

/* Desktop */
.desktop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* Material You Modern Wallpaper */
.wallpaper-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #10192a 0%, #1e293b 40%, #0f172a 100%);
  overflow: hidden;
  z-index: 1;
}

.wallpaper-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orbDrift 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
  top: -100px;
  right: -50px;
}

.orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
  bottom: -150px;
  left: 10%;
  animation-duration: 25s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #0ea5e9 0%, rgba(14, 165, 233, 0) 70%);
  top: 40%;
  left: 45%;
  opacity: 0.35;
  animation-duration: 18s;
}

.wallpaper-mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Light Theme Wallpaper variant */
body.theme-light .wallpaper-background {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #e1f5fe 100%);
}
body.theme-light .orb-1 { background: radial-gradient(circle, #90caf9 0%, rgba(144, 202, 249, 0) 70%); }
body.theme-light .orb-2 { background: radial-gradient(circle, #b39ddb 0%, rgba(179, 157, 219, 0) 70%); }
body.theme-light .orb-3 { background: radial-gradient(circle, #80deea 0%, rgba(128, 222, 234, 0) 70%); }
body.theme-light .wallpaper-mesh { opacity: 0.2; }

/* Desktop Shortcuts */
.desktop-shortcuts {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 82px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: transform 0.15s, background 0.15s;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chrome-icon-bg { background: #ffffff; }
.files-icon-bg { background: #1a73e8; }
.verity-icon-bg { background: linear-gradient(135deg, #ffd166 0%, #b8860b 100%); }
.terminal-icon-bg { background: #202124; border: 1px solid rgba(255, 255, 255, 0.1); }
.notes-icon-bg { background: #fbbc04; }

.verity-crest {
  font-size: 26px;
  color: #1a1a24;
  font-weight: 900;
}

.icon-label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  word-break: break-word;
}

body.theme-light .icon-label {
  color: #202124;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.app-svg {
  width: 32px;
  height: 32px;
}

/* WINDOW CONTAINER & WINDOWS */
.window-container {
  position: absolute;
  inset: 0;
  bottom: 56px;
  z-index: 50;
  pointer-events: none;
}

.os-window {
  position: absolute;
  pointer-events: auto;
  background: var(--os-surface);
  border-radius: 10px;
  border: 1px solid var(--os-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.15s, transform 0.15s;
  min-width: 360px;
  min-height: 240px;
}

.os-window.hidden {
  display: none !important;
}

.os-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}

/* Window Header */
.win-header {
  height: 42px;
  background: #1e1f22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  user-select: none;
  cursor: grab;
}

.win-header:active {
  cursor: grabbing;
}

.win-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--os-text-primary);
}

.title-svg {
  width: 18px;
  height: 18px;
}

/* Chrome Browser Tabs */
.win-tabs {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 4px;
}

.win-tab {
  height: 34px;
  background: #2b2d30;
  border-radius: 8px 8px 0 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  max-width: 260px;
}

.win-tab.active {
  background: #323639;
}

.tab-favicon {
  color: #ffd166;
  font-weight: bold;
}

.tab-close-btn {
  background: transparent;
  border: none;
  color: #9aa0a6;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.win-tab-new {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 3px;
}

.win-tab-new:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Window Control Buttons */
.win-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.win-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #bdc1c6;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.win-btn.win-close:hover {
  background: #ea4335;
  color: #fff;
}

/* Chrome Omnibox Bar */
.win-omnibox-bar {
  height: 44px;
  background: #323639;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}

.nav-arrows {
  display: flex;
  gap: 4px;
}

.nav-arrow-btn {
  background: transparent;
  border: none;
  color: #9aa0a6;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.omnibox {
  flex: 1;
  height: 30px;
  background: #202124;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  font-size: 12px;
}

.omni-lock {
  font-size: 11px;
}

.omni-url {
  color: #e8eaed;
  font-family: var(--os-font-sans);
}

.omni-star {
  margin-left: auto;
  color: #9aa0a6;
  cursor: pointer;
}

.omni-actions {
  display: flex;
  align-items: center;
}

.omni-profile {
  width: 26px;
  height: 26px;
  background: #ffd166;
  color: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

/* Chrome Content Window */
.chrome-content {
  flex: 1;
  background: #11141c;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chrome-hero-mock {
  padding: 40px 32px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.mock-crest {
  font-size: 42px;
  color: #ffd166;
  margin-bottom: 8px;
}

.chrome-hero-mock h2 {
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #ffd166;
}

.chrome-hero-mock p {
  color: #9aa0a6;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.mock-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.mock-card-item {
  background: #1c2130;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.mock-card-emoji {
  font-size: 28px;
}

.mock-card-item strong {
  color: #fff;
  font-size: 13px;
}

.mock-card-item span {
  font-size: 11px;
  color: #8ab4f8;
}

.mock-warning-banner {
  background: rgba(234, 67, 53, 0.15);
  border: 1px solid rgba(234, 67, 53, 0.35);
  border-radius: 8px;
  padding: 14px;
  color: #ff8a80;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

/* Files Content */
.files-content {
  flex: 1;
  display: flex;
  background: #202124;
  overflow: hidden;
}

.files-sidebar {
  width: 180px;
  background: #17181a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item, .sidebar-sub-item {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #bdc1c6;
  cursor: pointer;
}

.sidebar-sub-item {
  padding-left: 24px;
}

.sidebar-item.active, .sidebar-sub-item.active {
  background: #2d3748;
  color: #8ab4f8;
  font-weight: 500;
}

.files-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
}

.files-breadcrumb {
  font-size: 12px;
  color: #9aa0a6;
  margin-bottom: 16px;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 6px;
  background: #282a2d;
  cursor: pointer;
  transition: background 0.15s;
}

.file-item:hover {
  background: #35383d;
}

.file-item.corrupted {
  border-left: 3px solid #ea4335;
}

.file-icon {
  font-size: 18px;
  margin-right: 12px;
}

.file-name {
  flex: 1;
  font-size: 13px;
  color: #e8eaed;
}

.file-size {
  font-size: 12px;
  color: #9aa0a6;
}

/* Terminal Content */
.dark-header {
  background: #141619;
}

.terminal-prompt-icon {
  color: #34a853;
  font-family: var(--os-font-mono);
  font-weight: bold;
}

.terminal-content {
  flex: 1;
  background: #101214;
  color: #a8b3cf;
  font-family: var(--os-font-mono);
  font-size: 13px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.term-hl {
  color: #8ab4f8;
}

.term-warn {
  color: #fbbc04;
}

.terminal-input-row {
  display: flex;
  align-items: center;
}

.term-prompt {
  color: #34a853;
  white-space: nowrap;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--os-font-mono);
  font-size: 13px;
  padding-left: 4px;
}

/* Notes App */
.note-header {
  background: #b08d00;
}

.note-content {
  flex: 1;
  background: #fff8e1;
  color: #3e2723;
  padding: 24px;
  position: relative;
  overflow-y: auto;
}

.note-pin {
  font-size: 24px;
  margin-bottom: 8px;
}

.note-paper h3 {
  color: #c62828;
  margin-bottom: 12px;
  font-size: 16px;
}

.note-paper p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.note-sub {
  font-size: 12px;
  color: #616161;
  font-style: italic;
  margin-top: 16px;
}

/* Settings App */
.settings-content {
  flex: 1;
  display: flex;
  background: #202124;
}

.settings-sidebar {
  width: 200px;
  background: #191a1c;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-nav-item {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #9aa0a6;
  cursor: pointer;
}

.settings-nav-item.active {
  background: #2d3748;
  color: #8ab4f8;
  font-weight: 500;
}

.settings-main {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
}

.settings-about-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.chromeos-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  position: relative;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.c-blue {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #1a73e8;
  z-index: 2;
}

.c-red {
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: #ea4335;
}

.c-yellow {
  position: absolute;
  bottom: 0; right: 0; width: 50%; height: 50%;
  background: #fbbc04;
}

.c-green {
  position: absolute;
  bottom: 0; left: 0; width: 50%; height: 50%;
  background: #34a853;
}

.settings-card {
  background: #282a2d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-status-bad {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ea4335;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.status-dot-bad {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea4335;
  box-shadow: 0 0 8px #ea4335;
}

.status-desc {
  font-size: 12px;
  color: #9aa0a6;
  margin-bottom: 16px;
}

.btn-os-danger {
  background: #ea4335;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-os-danger:hover {
  background: #d93025;
}

/* APP LAUNCHER DRAWER */
.launcher-drawer {
  position: absolute;
  bottom: 64px;
  left: 12px;
  width: 380px;
  background: var(--os-panel-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--os-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: launcherPop 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.launcher-drawer.hidden {
  display: none !important;
}

@keyframes launcherPop {
  0% { transform: translateY(16px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.launcher-search {
  display: flex;
  align-items: center;
  background: #202124;
  border-radius: 24px;
  padding: 8px 14px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-svg {
  width: 18px;
  height: 18px;
}

.launcher-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
}

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

.launcher-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.launcher-app:hover {
  background: rgba(255, 255, 255, 0.1);
}

.launcher-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.launcher-app span {
  font-size: 11px;
  color: var(--os-text-primary);
}

/* QUICK SETTINGS POPUP */
.quick-settings-panel {
  position: absolute;
  bottom: 64px;
  right: 12px;
  width: 360px;
  background: var(--os-panel-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--os-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: qsPop 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.quick-settings-panel.hidden {
  display: none !important;
}

@keyframes qsPop {
  0% { transform: translateY(16px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.qs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qs-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qs-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffd166;
  color: #111;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qs-user-info {
  display: flex;
  flex-direction: column;
}

.qs-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.qs-battery-label {
  font-size: 11px;
  color: #9aa0a6;
}

.qs-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qs-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e8eaed;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.qs-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

/* SHUT DOWN BUTTON IN QUICK SETTINGS */
.qs-shutdown-btn {
  background: rgba(234, 67, 53, 0.2);
  color: #ea4335;
  border-color: rgba(234, 67, 53, 0.3);
}

.qs-shutdown-btn:hover {
  background: #ea4335 !important;
  color: #fff !important;
}

.power-svg {
  width: 18px;
  height: 18px;
}

.power-svg-small {
  width: 16px;
  height: 16px;
}

/* Quick Settings Tiles Grid */
.qs-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.qs-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e8eaed;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.qs-tile:hover {
  background: rgba(255, 255, 255, 0.14);
}

.qs-tile.active {
  background: #8ab4f8;
  color: #1a1a24;
}

.tile-icon {
  font-size: 16px;
}

/* Sliders */
.qs-slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 12px;
}

.qs-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-icon {
  font-size: 14px;
  width: 20px;
}

.qs-slider {
  flex: 1;
  height: 4px;
  accent-color: #8ab4f8;
  cursor: pointer;
}

/* Prominent Shut Down in QS Footer */
.qs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-shutdown-prominent {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ea4335;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-shutdown-prominent:hover {
  background: #d93025;
  transform: translateY(-1px);
}

.btn-signout {
  background: rgba(255, 255, 255, 0.1);
  color: #e8eaed;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-signout:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* CHROMEOS SHELF (BOTTOM TASKBAR) */
.shelf {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--os-shelf-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--os-shelf-border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 80;
}

/* Launcher Button */
.launcher-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.launcher-circle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.launcher-circle-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
}

/* Shelf Apps Center */
.shelf-apps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.shelf-app-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.shelf-app-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.shelf-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.running-dot {
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8ab4f8;
}

/* Status Tray (Bottom Right Pill) */
.status-tray {
  margin-left: auto;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.status-tray:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

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

.tray-svg {
  width: 16px;
  height: 16px;
}

.tray-battery-pct {
  font-size: 11px;
  font-weight: 500;
}

.tray-time {
  font-size: 12px;
  font-weight: 500;
  margin-left: 2px;
}

/* ==========================================================================
   SHUT DOWN TRANSITION SCREEN
   ========================================================================== */
.shutdown-transition {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.shutdown-transition.hidden {
  display: none !important;
}

.shutdown-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #8ab4f8;
  border-radius: 50%;
  animation: osSpin 0.8s linear infinite;
}

@keyframes osSpin {
  100% { transform: rotate(360deg); }
}

.shutdown-text {
  font-size: 15px;
  color: #bdc1c6;
  letter-spacing: 0.5px;
}

/* PITCH BLACK POWERED-OFF STATE */
.powered-off-blackout {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.powered-off-blackout.hidden {
  display: none !important;
}

.power-off-hint {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #444;
  font-size: 13px;
}

.btn-power-on {
  background: #202124;
  border: 1px solid #333;
  color: #9aa0a6;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-power-on:hover {
  background: #333;
  color: #fff;
}

/* ==========================================================================
   AUTHENTIC CHROMEOS RECOVERY SCREEN ("ChromeOS is missing or damaged")
   ========================================================================== */
.recovery-screen {
  position: absolute;
  inset: 0;
  background: #f8f9fa;
  color: #202124;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 48px;
  font-family: 'Roboto', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
  animation: recoveryPowerOn 0.4s ease-out;
}

.recovery-screen.hidden {
  display: none !important;
}

@keyframes recoveryPowerOn {
  0% { opacity: 0; filter: brightness(2); }
  60% { opacity: 0.9; filter: brightness(1.2); }
  100% { opacity: 1; filter: brightness(1); }
}

/* Top bar: Language & TAB shortcut */
.recovery-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.recovery-lang-selector {
  font-size: 13px;
  color: #5f6368;
}

.recovery-lang-selector select {
  background: #fff;
  border: 1px solid #dadce0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #202124;
  outline: none;
  cursor: pointer;
}

.btn-tab-toggle {
  background: #fff;
  border: 1px solid #dadce0;
  color: #5f6368;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--os-font-mono);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-tab-toggle:hover {
  background: #f1f3f4;
  color: #202124;
}

/* Center Recovery Content */
.recovery-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.recovery-warning-icon {
  width: 90px;
  height: 80px;
  margin-bottom: 24px;
}

.triangle-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.recovery-headline {
  font-size: 28px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.recovery-subtext {
  font-size: 17px;
  color: #3c4043;
  margin-bottom: 16px;
  line-height: 1.5;
}

.recovery-help-link {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 36px;
}

.recovery-help-link a {
  color: #1a73e8;
  text-decoration: underline;
}

/* Interactive USB Simulation Box */
.recovery-action-box {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 520px;
}

.usb-sim-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn-insert-usb {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-insert-usb:hover {
  background: #1557b0;
  transform: translateY(-1px);
}

.usb-svg {
  width: 18px;
  height: 18px;
}

.action-or {
  color: #80868b;
  font-size: 13px;
}

.btn-try-reboot {
  background: #f1f3f4;
  border: 1px solid #dadce0;
  color: #3c4043;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-try-reboot:hover {
  background: #e8eaed;
}

/* USB Restore Progress */
.usb-sim-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.usb-sim-progress.hidden {
  display: none !important;
}

.usb-progress-status {
  font-size: 14px;
  font-weight: 500;
  color: #1a73e8;
}

.usb-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e8eaed;
  border-radius: 4px;
  overflow: hidden;
}

.usb-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #1a73e8;
  border-radius: 4px;
  transition: width 0.15s ease-out;
}

.usb-progress-pct {
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
}

.usb-progress-note {
  font-size: 11.5px;
  color: #5f6368;
  line-height: 1.4;
}

/* Bottom Hardware Info */
.recovery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 12.5px;
  color: #5f6368;
}

.recovery-model-id {
  font-family: var(--os-font-mono);
  font-weight: 500;
  color: #3c4043;
}

.recovery-keys-hint {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-dot {
  opacity: 0.5;
}

.recovery-exit-link {
  color: #1a73e8;
  text-decoration: none;
}

.recovery-exit-link:hover {
  text-decoration: underline;
}

/* Hidden TAB Diagnostic Screen Overlay */
.recovery-tab-diagnostics {
  position: absolute;
  top: 60px;
  left: 48px;
  background: rgba(32, 33, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px 20px;
  color: #e8eaed;
  font-family: var(--os-font-mono);
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  z-index: 10005;
  max-width: 580px;
}

.recovery-tab-diagnostics.hidden {
  display: none !important;
}

.diag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8ab4f8;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.diag-close {
  background: transparent;
  border: none;
  color: #9aa0a6;
  font-size: 18px;
  cursor: pointer;
}

.diag-close:hover {
  color: #fff;
}

.diag-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  color: #d1d5db;
}

/* Mobile / Tablet responsiveness */
@media (max-width: 768px) {
  .os-window {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    height: 70% !important;
  }
  .recovery-screen {
    padding: 20px;
  }
  .recovery-headline {
    font-size: 22px;
  }
  .recovery-subtext {
    font-size: 15px;
  }
  .recovery-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
