/*!
 * OS.js - JavaScript Cloud/Web Desktop Platform
 *
 * Copyright (c) 2011-2020, Anders Evenrud <andersevenrud@gmail.com>
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice, this
 *    list of conditions and the following disclaimer
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * @author  Anders Evenrud <andersevenrud@gmail.com>
 * @licence Simplified BSD License
 */
:root {
  --bg-primary: #f2efe9;
  --bg-primary-rgb: 242, 239, 233;
  --bg-secondary: #faf8f5;
  --bg-tertiary: #ffffff;
  --bg-panel: #2d2d2d;
  --text-primary: #2d2d2d;
  --text-primary-rgb: 45, 45, 45;
  --text-secondary: #666666;
  --text-panel: rgba(255, 255, 255, 0.9);
  --text-panel-muted: rgba(255, 255, 255, 0.6);
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

[data-theme=dark] {
  --bg-primary: #2f2f2f;
  --bg-primary-rgb: 47, 47, 47;
  --bg-secondary: #3a3a3a;
  --bg-tertiary: #454545;
  --bg-panel: #1a1a1a;
  --text-primary: #f0f0f0;
  --text-primary-rgb: 240, 240, 240;
  --text-secondary: #a0a0a0;
  --text-panel: rgba(255, 255, 255, 0.9);
  --text-panel-muted: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
}

* {
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body, html {
  width: 100%;
  height: 100%;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 0.3s ease;
}

.osjs-root {
  background: var(--bg-primary) !important;
  transition: background-color 0.3s ease, background-image 0.3s ease;
}
.osjs-root > .osjs-desktop > img,
.osjs-root > img {
  display: none !important;
}

[data-theme=light] .osjs-root {
  background: url(411ce33c9dbdf418252739610ff89a09.png) no-repeat center center !important;
  background-size: cover !important;
}

[data-theme=dark] .osjs-root {
  background: url(490f50188f032b006d3ed24b78507f9b.png) no-repeat center center !important;
  background-size: cover !important;
}

.osjs-desktop > img {
  display: none !important;
}

.osjs-panel {
  background: var(--bg-panel) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: none !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  padding: 6px 12px !important;
  min-height: 48px !important;
  transition: background-color 0.3s ease;
}
.osjs-panel[data-position=top] {
  border-radius: 0 0 12px 12px;
}
.osjs-panel[data-position=bottom] {
  border-radius: 12px 12px 0 0;
}

.osjs-panel > .osjs-panel-item {
  color: var(--text-panel) !important;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.osjs-panel-item[data-name=menu] > div {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  background: transparent !important;
  color: var(--text-panel) !important;
  border-radius: 24px !important;
  padding: 8px 16px !important;
  font-weight: 500;
  transition: all 0.2s ease;
  margin: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.osjs-panel-item[data-name=menu] > div::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid #e07a5f;
  margin-right: 4px;
}
.osjs-panel-item[data-name=menu] > div > img {
  display: none !important;
}
.osjs-panel-item[data-name=menu] > div:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.osjs-panel-item[data-name=clock] {
  color: var(--text-panel-muted) !important;
  font-weight: 300;
  font-size: 13px;
  padding-right: 16px !important;
}

.osjs-panel-item[data-name=tray] > div {
  opacity: 0.7;
  transition: opacity 0.2s ease;
  padding: 8px !important;
}
.osjs-panel-item[data-name=tray] > div:hover {
  opacity: 1;
}

.osjs-panel-item[data-name=windows] > div {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  margin: 4px 3px;
  padding: 6px 16px !important;
  transition: all 0.2s ease;
  color: var(--text-panel) !important;
  font-size: 12px;
}
.osjs-panel-item[data-name=windows] > div:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}
.osjs-panel-item[data-name=windows] > div[data-focused=true] {
  background: #e07a5f !important;
  color: white !important;
}

.osjs-theme-toggle {
  display: flex;
  align-items: center;
  padding: 0 8px !important;
}
.osjs-theme-toggle button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-panel);
  transition: all 0.2s ease;
}
.osjs-theme-toggle button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}
.osjs-theme-toggle button .sun-icon {
  display: block;
}
.osjs-theme-toggle button .moon-icon {
  display: none;
}

[data-theme=dark] .osjs-theme-toggle button .sun-icon {
  display: none;
}
[data-theme=dark] .osjs-theme-toggle button .moon-icon {
  display: block;
}

.osjs-gui-menu,
.osjs-gui-menu-container {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12) !important;
  padding: 16px !important;
  backdrop-filter: blur(20px);
  min-width: 220px;
  max-width: 280px;
  transition: background-color 0.3s ease;
  overflow: hidden;
}
.osjs-gui-menu ul,
.osjs-gui-menu-container ul {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.osjs-gui-menu li,
.osjs-gui-menu-container li {
  border-radius: 12px !important;
  margin: 4px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  list-style: none !important;
}
.osjs-gui-menu li > div,
.osjs-gui-menu li > label,
.osjs-gui-menu li > span,
.osjs-gui-menu-container li > div,
.osjs-gui-menu-container li > label,
.osjs-gui-menu-container li > span {
  padding: 14px 18px !important;
  color: var(--text-primary) !important;
  font-size: 14px;
  font-weight: 450;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  border-radius: 12px;
  background: transparent !important;
}
.osjs-gui-menu li:hover,
.osjs-gui-menu-container li:hover {
  background: rgba(224, 122, 95, 0.1) !important;
}
.osjs-gui-menu li:hover > div,
.osjs-gui-menu li:hover > label,
.osjs-gui-menu li:hover > span,
.osjs-gui-menu-container li:hover > div,
.osjs-gui-menu-container li:hover > label,
.osjs-gui-menu-container li:hover > span {
  color: #e07a5f !important;
  background: transparent !important;
}
.osjs-gui-menu li img,
.osjs-gui-menu-container li img {
  width: 22px !important;
  height: 22px !important;
  opacity: 0.7;
  filter: grayscale(30%);
}
.osjs-gui-menu .osjs-gui-menu-separator,
.osjs-gui-menu-container .osjs-gui-menu-separator {
  border-color: var(--border) !important;
  margin: 8px 0 !important;
}

.osjs-window {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: windowOpen 0.25s ease-out;
}
.osjs-window:hover, .osjs-window[data-focused=true] {
  box-shadow: var(--shadow-hover) !important;
}

@keyframes windowOpen {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.osjs-window-header {
  background: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 16px !important;
  min-height: auto !important;
  transition: background-color 0.3s ease;
}

.osjs-window-title {
  color: var(--text-primary) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px;
}

.osjs-window-button {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  margin-left: 8px !important;
  border: none !important;
  transition: all 0.2s ease;
  position: relative;
}
.osjs-window-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.osjs-window-button:hover::after {
  opacity: 1;
}
.osjs-window-button[data-action=minimize] {
  background: #f4c145 !important;
}
.osjs-window-button[data-action=minimize]::after {
  background: #eead0e;
}
.osjs-window-button[data-action=maximize] {
  background: #5ac05a !important;
}
.osjs-window-button[data-action=maximize]::after {
  background: #3da03d;
}
.osjs-window-button[data-action=close] {
  background: url(e160234ef0834342aadd179b3c9d662a.png) center/contain no-repeat !important;
  background-size: 14px 14px !important;
}
.osjs-window-button[data-action=close]::after {
  display: none;
}

.osjs-window-content {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  transition: background-color 0.3s ease;
}

.osjs-gui-button,
.osjs-gui button,
button.osjs-gui-button {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 10px 20px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: none !important;
  outline: none !important;
}
.osjs-gui-button:hover,
.osjs-gui button:hover,
button.osjs-gui-button:hover {
  background: rgba(224, 122, 95, 0.1) !important;
  border-color: #e07a5f !important;
  transform: translateY(-1px);
}
.osjs-gui-button:active,
.osjs-gui button:active,
button.osjs-gui-button:active {
  transform: translateY(0) scale(0.98);
  background: rgba(224, 122, 95, 0.15) !important;
}
.osjs-gui-button:focus,
.osjs-gui button:focus,
button.osjs-gui-button:focus {
  border-color: #e07a5f !important;
  box-shadow: 0 0 0 2px rgba(224, 122, 95, 0.2) !important;
}

.osjs-window-content button,
.osjs-window-content .osjs-gui-button {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  color: var(--text-primary) !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease;
  box-shadow: none !important;
}
.osjs-window-content button:hover,
.osjs-window-content .osjs-gui-button:hover {
  background: rgba(224, 122, 95, 0.08) !important;
  border-color: rgba(224, 122, 95, 0.4) !important;
}
.osjs-window-content button:active,
.osjs-window-content .osjs-gui-button:active {
  transform: scale(0.97);
}

[data-application-name=Calculator] .osjs-window-content {
  padding: 8px !important;
}
[data-application-name=Calculator] .osjs-gui-button,
[data-application-name=Calculator] button {
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.osjs-gui input[type=text],
.osjs-gui input[type=password],
.osjs-gui input[type=number],
.osjs-gui textarea,
.osjs-gui select {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: var(--text-primary) !important;
  transition: all 0.2s ease;
}
.osjs-gui input[type=text]:focus,
.osjs-gui input[type=password]:focus,
.osjs-gui input[type=number]:focus,
.osjs-gui textarea:focus,
.osjs-gui select:focus {
  border-color: #e07a5f !important;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15) !important;
  outline: none !important;
}

.osjs-notification {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow) !important;
  padding: 16px 20px !important;
  color: var(--text-primary) !important;
}
.osjs-notification .osjs-notification-title {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}
.osjs-notification .osjs-notification-message {
  color: var(--text-secondary) !important;
}

.osjs-dialog .osjs-window {
  max-width: 420px;
}
.osjs-dialog .osjs-window-content {
  padding: 24px !important;
}

.osjs-gui-tabs-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0 !important;
}
.osjs-gui-tabs-header > div {
  padding: 14px 24px !important;
  color: var(--text-secondary) !important;
  border: none !important;
  background: transparent !important;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}
.osjs-gui-tabs-header > div::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}
.osjs-gui-tabs-header > div:hover {
  color: var(--text-primary) !important;
}
.osjs-gui-tabs-header > div[data-active=true] {
  color: #e07a5f !important;
}
.osjs-gui-tabs-header > div[data-active=true]::after {
  background: #e07a5f;
}

.osjs-gui-list-view,
.osjs-gui-icon-view {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
}
.osjs-gui-list-view .osjs-gui-list-view-row,
.osjs-gui-list-view .osjs-gui-icon-view-entry,
.osjs-gui-icon-view .osjs-gui-list-view-row,
.osjs-gui-icon-view .osjs-gui-icon-view-entry {
  transition: all 0.15s ease;
  border-radius: 6px;
  margin: 2px;
  color: var(--text-primary) !important;
}
.osjs-gui-list-view .osjs-gui-list-view-row:hover,
.osjs-gui-list-view .osjs-gui-icon-view-entry:hover,
.osjs-gui-icon-view .osjs-gui-list-view-row:hover,
.osjs-gui-icon-view .osjs-gui-icon-view-entry:hover {
  background: rgba(224, 122, 95, 0.1) !important;
}
.osjs-gui-list-view .osjs-gui-list-view-row[data-active=true], .osjs-gui-list-view .osjs-gui-list-view-row.osjs-gui-list-view-row-selected,
.osjs-gui-list-view .osjs-gui-icon-view-entry[data-active=true],
.osjs-gui-list-view .osjs-gui-icon-view-entry.osjs-gui-list-view-row-selected,
.osjs-gui-icon-view .osjs-gui-list-view-row[data-active=true],
.osjs-gui-icon-view .osjs-gui-list-view-row.osjs-gui-list-view-row-selected,
.osjs-gui-icon-view .osjs-gui-icon-view-entry[data-active=true],
.osjs-gui-icon-view .osjs-gui-icon-view-entry.osjs-gui-list-view-row-selected {
  background: rgba(224, 122, 95, 0.2) !important;
  color: #e07a5f !important;
}

.osjs-desktop-iconview .osjs-gui-icon-view-entry {
  color: var(--text-primary) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: grab;
  user-select: none;
}
.osjs-desktop-iconview .osjs-gui-icon-view-entry:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}
.osjs-desktop-iconview .osjs-gui-icon-view-entry[data-active=true] {
  background: rgba(224, 122, 95, 0.4) !important;
}
.osjs-desktop-iconview .osjs-gui-icon-view-entry:active {
  cursor: grabbing;
}
.osjs-desktop-iconview .osjs-free-position-icons {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}
.osjs-desktop-iconview .osjs-free-position-icons .osjs-gui-icon-view-entry {
  transition: none !important;
}

[data-theme=dark] .osjs-desktop-iconview .osjs-gui-icon-view-entry {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.5);
}

.osjs-panel .osjs-gui-menu,
.osjs-panel .osjs-gui-menu-container,
.osjs-root .osjs-gui-menu,
.osjs-root .osjs-gui-menu-container,
div.osjs-gui-menu {
  background: rgba(250, 248, 245, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04) !important;
  padding: 12px !important;
  min-width: 200px;
  max-width: 260px;
}
.osjs-panel .osjs-gui-menu, .osjs-panel .osjs-gui-menu *, .osjs-panel .osjs-gui-menu ul, .osjs-panel .osjs-gui-menu li,
.osjs-panel .osjs-gui-menu .osjs-gui,
.osjs-panel .osjs-gui-menu .osjs-gui-menu-inner,
.osjs-panel .osjs-gui-menu .osjs-gui-menu-entry,
.osjs-panel .osjs-gui-menu .osjs-gui-menu-entry > *,
.osjs-panel .osjs-gui-menu .osjs-gui-menu-label,
.osjs-panel .osjs-gui-menu-container,
.osjs-panel .osjs-gui-menu-container *,
.osjs-panel .osjs-gui-menu-container ul,
.osjs-panel .osjs-gui-menu-container li,
.osjs-panel .osjs-gui-menu-container .osjs-gui,
.osjs-panel .osjs-gui-menu-container .osjs-gui-menu-inner,
.osjs-panel .osjs-gui-menu-container .osjs-gui-menu-entry,
.osjs-panel .osjs-gui-menu-container .osjs-gui-menu-entry > *,
.osjs-panel .osjs-gui-menu-container .osjs-gui-menu-label,
.osjs-root .osjs-gui-menu,
.osjs-root .osjs-gui-menu *,
.osjs-root .osjs-gui-menu ul,
.osjs-root .osjs-gui-menu li,
.osjs-root .osjs-gui-menu .osjs-gui,
.osjs-root .osjs-gui-menu .osjs-gui-menu-inner,
.osjs-root .osjs-gui-menu .osjs-gui-menu-entry,
.osjs-root .osjs-gui-menu .osjs-gui-menu-entry > *,
.osjs-root .osjs-gui-menu .osjs-gui-menu-label,
.osjs-root .osjs-gui-menu-container,
.osjs-root .osjs-gui-menu-container *,
.osjs-root .osjs-gui-menu-container ul,
.osjs-root .osjs-gui-menu-container li,
.osjs-root .osjs-gui-menu-container .osjs-gui,
.osjs-root .osjs-gui-menu-container .osjs-gui-menu-inner,
.osjs-root .osjs-gui-menu-container .osjs-gui-menu-entry,
.osjs-root .osjs-gui-menu-container .osjs-gui-menu-entry > *,
.osjs-root .osjs-gui-menu-container .osjs-gui-menu-label,
div.osjs-gui-menu,
div.osjs-gui-menu *,
div.osjs-gui-menu ul,
div.osjs-gui-menu li,
div.osjs-gui-menu .osjs-gui,
div.osjs-gui-menu .osjs-gui-menu-inner,
div.osjs-gui-menu .osjs-gui-menu-entry,
div.osjs-gui-menu .osjs-gui-menu-entry > *,
div.osjs-gui-menu .osjs-gui-menu-label {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
.osjs-panel .osjs-gui-menu ul,
.osjs-panel .osjs-gui-menu-container ul,
.osjs-root .osjs-gui-menu ul,
.osjs-root .osjs-gui-menu-container ul,
div.osjs-gui-menu ul {
  background: transparent !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.osjs-panel .osjs-gui-menu li,
.osjs-panel .osjs-gui-menu-container li,
.osjs-root .osjs-gui-menu li,
.osjs-root .osjs-gui-menu-container li,
div.osjs-gui-menu li {
  background: transparent !important;
  border-radius: 16px !important;
  margin: 3px 0 !important;
  overflow: hidden;
}
.osjs-panel .osjs-gui-menu li > div,
.osjs-panel .osjs-gui-menu li > span,
.osjs-panel .osjs-gui-menu-container li > div,
.osjs-panel .osjs-gui-menu-container li > span,
.osjs-root .osjs-gui-menu li > div,
.osjs-root .osjs-gui-menu li > span,
.osjs-root .osjs-gui-menu-container li > div,
.osjs-root .osjs-gui-menu-container li > span,
div.osjs-gui-menu li > div,
div.osjs-gui-menu li > span {
  background: transparent !important;
  color: var(--text-primary) !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2px;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-radius: 16px !important;
}
.osjs-panel .osjs-gui-menu li:hover,
.osjs-panel .osjs-gui-menu-container li:hover,
.osjs-root .osjs-gui-menu li:hover,
.osjs-root .osjs-gui-menu-container li:hover,
div.osjs-gui-menu li:hover {
  background: rgba(224, 122, 95, 0.12) !important;
}
.osjs-panel .osjs-gui-menu li:hover > div,
.osjs-panel .osjs-gui-menu li:hover > span,
.osjs-panel .osjs-gui-menu-container li:hover > div,
.osjs-panel .osjs-gui-menu-container li:hover > span,
.osjs-root .osjs-gui-menu li:hover > div,
.osjs-root .osjs-gui-menu li:hover > span,
.osjs-root .osjs-gui-menu-container li:hover > div,
.osjs-root .osjs-gui-menu-container li:hover > span,
div.osjs-gui-menu li:hover > div,
div.osjs-gui-menu li:hover > span {
  color: var(--text-primary) !important;
  background: transparent !important;
}
.osjs-panel .osjs-gui-menu li:empty, .osjs-panel .osjs-gui-menu li:not(:has(div)):not(:has(span)):not(.osjs-gui-menu-separator), .osjs-panel .osjs-gui-menu li:has(> div:empty), .osjs-panel .osjs-gui-menu li:has(> span:empty),
.osjs-panel .osjs-gui-menu-container li:empty,
.osjs-panel .osjs-gui-menu-container li:not(:has(div)):not(:has(span)):not(.osjs-gui-menu-separator),
.osjs-panel .osjs-gui-menu-container li:has(> div:empty),
.osjs-panel .osjs-gui-menu-container li:has(> span:empty),
.osjs-root .osjs-gui-menu li:empty,
.osjs-root .osjs-gui-menu li:not(:has(div)):not(:has(span)):not(.osjs-gui-menu-separator),
.osjs-root .osjs-gui-menu li:has(> div:empty),
.osjs-root .osjs-gui-menu li:has(> span:empty),
.osjs-root .osjs-gui-menu-container li:empty,
.osjs-root .osjs-gui-menu-container li:not(:has(div)):not(:has(span)):not(.osjs-gui-menu-separator),
.osjs-root .osjs-gui-menu-container li:has(> div:empty),
.osjs-root .osjs-gui-menu-container li:has(> span:empty),
div.osjs-gui-menu li:empty,
div.osjs-gui-menu li:not(:has(div)):not(:has(span)):not(.osjs-gui-menu-separator),
div.osjs-gui-menu li:has(> div:empty),
div.osjs-gui-menu li:has(> span:empty) {
  display: none !important;
}
.osjs-panel .osjs-gui-menu li > div:empty,
.osjs-panel .osjs-gui-menu li > span:empty,
.osjs-panel .osjs-gui-menu-container li > div:empty,
.osjs-panel .osjs-gui-menu-container li > span:empty,
.osjs-root .osjs-gui-menu li > div:empty,
.osjs-root .osjs-gui-menu li > span:empty,
.osjs-root .osjs-gui-menu-container li > div:empty,
.osjs-root .osjs-gui-menu-container li > span:empty,
div.osjs-gui-menu li > div:empty,
div.osjs-gui-menu li > span:empty {
  display: none !important;
}
.osjs-panel .osjs-gui-menu li img,
.osjs-panel .osjs-gui-menu-container li img,
.osjs-root .osjs-gui-menu li img,
.osjs-root .osjs-gui-menu-container li img,
div.osjs-gui-menu li img {
  width: 20px !important;
  height: 20px !important;
  opacity: 0.5 !important;
  filter: grayscale(60%) sepia(20%) hue-rotate(330deg) !important;
}
.osjs-panel .osjs-gui-menu li img[src*=osjs],
.osjs-panel .osjs-gui-menu li img[src*=cube],
.osjs-panel .osjs-gui-menu li img[src*=package],
.osjs-panel .osjs-gui-menu li img[src*=application-x],
.osjs-panel .osjs-gui-menu li img[src$=".png"][src*="apps/"],
.osjs-panel .osjs-gui-menu-container li img[src*=osjs],
.osjs-panel .osjs-gui-menu-container li img[src*=cube],
.osjs-panel .osjs-gui-menu-container li img[src*=package],
.osjs-panel .osjs-gui-menu-container li img[src*=application-x],
.osjs-panel .osjs-gui-menu-container li img[src$=".png"][src*="apps/"],
.osjs-root .osjs-gui-menu li img[src*=osjs],
.osjs-root .osjs-gui-menu li img[src*=cube],
.osjs-root .osjs-gui-menu li img[src*=package],
.osjs-root .osjs-gui-menu li img[src*=application-x],
.osjs-root .osjs-gui-menu li img[src$=".png"][src*="apps/"],
.osjs-root .osjs-gui-menu-container li img[src*=osjs],
.osjs-root .osjs-gui-menu-container li img[src*=cube],
.osjs-root .osjs-gui-menu-container li img[src*=package],
.osjs-root .osjs-gui-menu-container li img[src*=application-x],
.osjs-root .osjs-gui-menu-container li img[src$=".png"][src*="apps/"],
div.osjs-gui-menu li img[src*=osjs],
div.osjs-gui-menu li img[src*=cube],
div.osjs-gui-menu li img[src*=package],
div.osjs-gui-menu li img[src*=application-x],
div.osjs-gui-menu li img[src$=".png"][src*="apps/"] {
  opacity: 0.5 !important;
  filter: grayscale(80%) sepia(30%) hue-rotate(330deg) brightness(0.9) !important;
}
.osjs-panel .osjs-gui-menu li img[src*="misc/osjs"],
.osjs-panel .osjs-gui-menu-container li img[src*="misc/osjs"],
.osjs-root .osjs-gui-menu li img[src*="misc/osjs"],
.osjs-root .osjs-gui-menu-container li img[src*="misc/osjs"],
div.osjs-gui-menu li img[src*="misc/osjs"] {
  display: none !important;
}
.osjs-panel .osjs-gui-menu .osjs-gui-menu-separator,
.osjs-panel .osjs-gui-menu hr,
.osjs-panel .osjs-gui-menu-container .osjs-gui-menu-separator,
.osjs-panel .osjs-gui-menu-container hr,
.osjs-root .osjs-gui-menu .osjs-gui-menu-separator,
.osjs-root .osjs-gui-menu hr,
.osjs-root .osjs-gui-menu-container .osjs-gui-menu-separator,
.osjs-root .osjs-gui-menu-container hr,
div.osjs-gui-menu .osjs-gui-menu-separator,
div.osjs-gui-menu hr {
  border: none !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  margin: 10px 8px !important;
  background: transparent !important;
}

.osjs-gui-menu-container .osjs-gui-menu-inner,
.osjs-gui-menu-container .osjs-gui-menu-entry,
.osjs-gui-menu-container .osjs-gui-menu-entry > *,
.osjs-gui-menu-container .osjs-gui,
.osjs-gui-menu .osjs-gui-menu-inner,
.osjs-gui-menu .osjs-gui-menu-entry,
.osjs-gui-menu .osjs-gui {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

[data-theme=dark] .osjs-panel .osjs-gui-menu,
[data-theme=dark] .osjs-panel .osjs-gui-menu-container,
[data-theme=dark] .osjs-root .osjs-gui-menu,
[data-theme=dark] div.osjs-gui-menu {
  background: rgba(58, 58, 58, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.3), 0 4px 24px rgba(0, 0, 0, 0.2) !important;
}
[data-theme=dark] .osjs-panel .osjs-gui-menu .osjs-gui-menu-separator,
[data-theme=dark] .osjs-panel .osjs-gui-menu hr,
[data-theme=dark] .osjs-panel .osjs-gui-menu-container .osjs-gui-menu-separator,
[data-theme=dark] .osjs-panel .osjs-gui-menu-container hr,
[data-theme=dark] .osjs-root .osjs-gui-menu .osjs-gui-menu-separator,
[data-theme=dark] .osjs-root .osjs-gui-menu hr,
[data-theme=dark] div.osjs-gui-menu .osjs-gui-menu-separator,
[data-theme=dark] div.osjs-gui-menu hr {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.osjs-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  animation: dockSlideIn 0.4s ease-out;
}

@keyframes dockSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.osjs-dock-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.osjs-dock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  color: var(--text-primary);
}
.osjs-dock-item:hover {
  background: rgba(224, 122, 95, 0.12);
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 24px rgba(224, 122, 95, 0.25);
}
.osjs-dock-item:active {
  transform: translateY(-2px) scale(1.02);
  transition-duration: 0.1s;
}

.osjs-dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}
.osjs-dock-icon svg {
  width: 100%;
  height: 100%;
}

.osjs-dock-separator {
  width: 1px;
  height: 32px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 6px;
}

.osjs-trash-btn.has-items .osjs-dock-icon {
  color: #e07a5f;
}

.osjs-trash-menu {
  position: fixed;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 10001;
}
.osjs-trash-menu .osjs-trash-header {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.osjs-trash-menu .osjs-trash-items {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.osjs-trash-menu .osjs-trash-item {
  padding: 6px 8px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.osjs-trash-menu .osjs-trash-item:hover {
  background: rgba(0, 0, 0, 0.04);
}
.osjs-trash-menu .osjs-trash-empty {
  padding: 12px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}
.osjs-trash-menu .osjs-trash-more {
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
}
.osjs-trash-menu .osjs-trash-clear {
  width: 100%;
  padding: 10px;
  background: #e07a5f;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.osjs-trash-menu .osjs-trash-clear:hover:not(.disabled) {
  background: #d95e3d;
}
.osjs-trash-menu .osjs-trash-clear.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

[data-theme=dark] .osjs-trash-menu {
  background: rgba(45, 45, 48, 0.95);
}
[data-theme=dark] .osjs-trash-menu .osjs-trash-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .osjs-trash-menu .osjs-trash-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.osjs-theme-toggle-dock .sun-icon {
  display: block;
}
.osjs-theme-toggle-dock .moon-icon {
  display: none;
}

[data-theme=dark] .osjs-dock-container {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
[data-theme=dark] .osjs-dock-item {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
[data-theme=dark] .osjs-dock-item:hover {
  background: rgba(224, 122, 95, 0.25);
}
[data-theme=dark] .osjs-dock-separator {
  background: rgba(255, 255, 255, 0.12);
}
[data-theme=dark] .osjs-theme-toggle-dock .sun-icon {
  display: none;
}
[data-theme=dark] .osjs-theme-toggle-dock .moon-icon {
  display: block;
}

.osjs-panel {
  display: none !important;
}

.osjs-swipe-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.osjs-swipe-arrow {
  width: 40px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.osjs-swipe-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}
.osjs-swipe-arrow:hover {
  opacity: 0.8;
  transform: translateY(2px);
}

.osjs-brightness-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.1s ease;
}

.osjs-quick-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  pointer-events: none;
}

.osjs-quick-settings-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.osjs-quick-settings.open .osjs-quick-settings-overlay {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.osjs-quick-settings-panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: 360px;
  max-width: 92vw;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  overflow: hidden;
}

.osjs-quick-settings.open .osjs-quick-settings-panel {
  transform: translateX(-50%) translateY(0);
}

.osjs-quick-settings-handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 12px auto 8px;
}

.osjs-quick-settings-time {
  font-size: 72px;
  font-weight: 300;
  text-align: center;
  color: var(--text-primary);
  line-height: 1;
  margin: 8px 0 4px;
  letter-spacing: -2px;
}

.osjs-quick-settings-date {
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.osjs-quick-settings-content {
  padding: 0 20px 24px;
}

.osjs-quick-settings-slider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 16px;
}

.osjs-slider-icon {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.osjs-slider-icon svg {
  width: 100%;
  height: 100%;
}

.osjs-slider-track {
  flex: 1;
  position: relative;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.osjs-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #e07a5f, #f4a98a);
  border-radius: 4px;
  pointer-events: none;
  transition: width 0.1s ease;
}

.osjs-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 1;
  touch-action: none;
  -webkit-appearance: none;
  appearance: none;
}

.osjs-slider-label {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: right;
}

.osjs-quick-settings-toggles {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.osjs-quick-settings-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 4px;
}

.osjs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
.osjs-dot.active {
  background: var(--text-primary);
}

[data-theme=dark] .osjs-dot {
  background: rgba(255, 255, 255, 0.2);
}
[data-theme=dark] .osjs-dot.active {
  background: var(--text-primary);
}

.osjs-quick-toggle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}
.osjs-quick-toggle svg {
  width: 22px;
  height: 22px;
}
.osjs-quick-toggle span {
  font-size: 11px;
  font-weight: 500;
}
.osjs-quick-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}
.osjs-quick-toggle.active {
  background: rgba(224, 122, 95, 0.15);
  color: #e07a5f;
}

[data-theme=dark] .osjs-quick-settings-panel {
  background: rgba(45, 45, 45, 0.95);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
[data-theme=dark] .osjs-quick-settings-handle {
  background: rgba(255, 255, 255, 0.2);
}
[data-theme=dark] .osjs-quick-settings-slider {
  background: rgba(255, 255, 255, 0.06);
}
[data-theme=dark] .osjs-slider-track {
  background: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .osjs-quick-toggle {
  background: rgba(255, 255, 255, 0.06);
}
[data-theme=dark] .osjs-quick-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .osjs-quick-toggle.active {
  background: rgba(224, 122, 95, 0.25);
}

.osjs-auth-screen,
.osjs-lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.osjs-auth-screen.fade-out,
.osjs-lock-screen.fade-out {
  opacity: 0;
  transform: scale(1.02);
}

.osjs-auth-container,
.osjs-lock-container {
  width: 100%;
  max-width: 360px;
  padding: 40px 24px;
  text-align: center;
}

.osjs-auth-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: #e07a5f;
}
.osjs-auth-logo svg {
  width: 100%;
  height: 100%;
}

.osjs-auth-title {
  font-size: 32px;
  font-weight: 300;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.osjs-auth-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.osjs-auth-step.hidden {
  display: none;
}

.osjs-auth-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.osjs-auth-input-group {
  margin-bottom: 16px;
}
.osjs-auth-input-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.osjs-auth-input-group input:focus {
  outline: none;
  border-color: #e07a5f;
  background: rgba(224, 122, 95, 0.05);
}
.osjs-auth-input-group input.error {
  border-color: #e74c3c;
}
.osjs-auth-input-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.osjs-auth-error {
  display: block;
  font-size: 13px;
  color: #e74c3c;
  margin-top: 6px;
  min-height: 18px;
}

.osjs-auth-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background: #e07a5f;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}
.osjs-auth-btn:hover {
  background: #dc684a;
  transform: translateY(-1px);
}
.osjs-auth-btn:active {
  transform: translateY(0);
}

.osjs-pin-display,
.osjs-lock-pin-display {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

.osjs-pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid #c4624a;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.1);
}
.osjs-pin-dot.filled {
  background: #c4624a;
  border-color: #c4624a;
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme=dark] .osjs-pin-dot {
  border-color: #ff9f89;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .osjs-pin-dot.filled {
  background: #ff9f89;
  border-color: #ff9f89;
  box-shadow: 0 0 15px rgba(255, 159, 137, 0.6), 0 0 0 3px rgba(255, 159, 137, 0.3);
}

.osjs-pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}

.osjs-pin-key {
  width: 72px;
  height: 72px;
  font-size: 28px;
  font-weight: 300;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.osjs-pin-key svg {
  width: 24px;
  height: 24px;
}
.osjs-pin-key .close-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.osjs-pin-key:hover:not(.empty) {
  background: rgba(0, 0, 0, 0.08);
}
.osjs-pin-key:active:not(.empty) {
  transform: scale(0.95);
  background: rgba(224, 122, 95, 0.2);
}
.osjs-pin-key.empty {
  background: transparent;
  cursor: default;
}
.osjs-pin-key.back {
  color: var(--text-secondary);
}

.osjs-lock-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.osjs-mode-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.osjs-mode-btn svg {
  width: 24px;
  height: 24px;
}
.osjs-mode-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.15);
}
.osjs-mode-btn.active {
  background: #e07a5f;
  border-color: #e07a5f;
  color: white;
}

[data-theme=dark] .osjs-mode-btn {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .osjs-mode-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}
[data-theme=dark] .osjs-mode-btn.active {
  background: #ff9f89;
  border-color: #ff9f89;
  color: #1a1a1a;
}

.osjs-lock-password-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.osjs-lock-password-section .osjs-auth-input-group {
  width: 100%;
}
.osjs-lock-password-section input[type=password] {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}
.osjs-lock-password-section input[type=password]:focus {
  outline: none;
  border-color: #e07a5f;
  background: rgba(255, 255, 255, 0.9);
}
.osjs-lock-password-section input[type=password]::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
.osjs-lock-password-section input[type=password].shake {
  animation: shake 0.5s ease;
}
.osjs-lock-password-section .osjs-lock-error {
  font-size: 13px;
  color: #e74c3c;
  margin-top: 4px;
  min-height: 18px;
  text-align: center;
}
.osjs-lock-password-section .osjs-auth-btn {
  width: 100%;
  max-width: 200px;
}

[data-theme=dark] .osjs-lock-password-section input[type=password] {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .osjs-lock-password-section input[type=password]:focus {
  border-color: #ff9f89;
  background: rgba(0, 0, 0, 0.4);
}

.osjs-lock-time {
  font-size: 72px;
  font-weight: 200;
  color: var(--text-primary);
  letter-spacing: -2px;
  line-height: 1;
}

.osjs-lock-date {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  margin: 8px 0 24px;
}

.osjs-lock-user {
  font-size: 14px;
  color: #e07a5f;
  margin-bottom: 8px;
  font-weight: 500;
}

.osjs-lock-error {
  display: block;
  font-size: 14px;
  color: #e74c3c;
  margin-top: 16px;
  min-height: 20px;
}

.osjs-lock-pin-section.hidden,
.osjs-reset-pin-section.hidden,
.osjs-new-pin-section.hidden,
.osjs-confirm-new-pin-section.hidden {
  display: none;
}

.osjs-forgot-pin,
.osjs-back-to-pin {
  background: transparent;
  border: none;
  color: #e07a5f;
  font-size: 14px;
  cursor: pointer;
  margin-top: 20px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}
.osjs-forgot-pin:hover,
.osjs-back-to-pin:hover {
  text-decoration: underline;
}

.osjs-back-to-pin {
  display: block;
  margin: 16px auto 0;
  color: var(--text-secondary);
}

.osjs-reset-info {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  20%, 60% {
    transform: translateX(-8px);
  }
  40%, 80% {
    transform: translateX(8px);
  }
}
[data-theme=dark] .osjs-auth-input-group input {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}
[data-theme=dark] .osjs-auth-input-group input:focus {
  border-color: #e07a5f;
  background: rgba(224, 122, 95, 0.1);
}
[data-theme=dark] .osjs-pin-dot {
  background: rgba(255, 255, 255, 0.15);
}
[data-theme=dark] .osjs-pin-key {
  background: rgba(255, 255, 255, 0.06);
}
[data-theme=dark] .osjs-pin-key:hover:not(.empty) {
  background: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .osjs-pin-key:active:not(.empty) {
  background: rgba(224, 122, 95, 0.3);
}

.osjs-desktop-trash {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 100;
}
.osjs-desktop-trash:hover .osjs-desktop-trash-icon {
  transform: scale(1.1);
}
.osjs-desktop-trash.has-items .osjs-desktop-trash-icon {
  color: #e07a5f;
}

.osjs-desktop-trash-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.osjs-desktop-trash-icon svg {
  width: 28px;
  height: 28px;
}

.osjs-desktop-trash-label {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.osjs-trash-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 10002;
  overflow: hidden;
}

.osjs-trash-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
}
.osjs-trash-window-header button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
}
.osjs-trash-window-header button:hover {
  color: #e07a5f;
}

.osjs-trash-window-content {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
}

.osjs-trash-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
}
.osjs-trash-file:hover {
  background: rgba(0, 0, 0, 0.04);
}
.osjs-trash-file svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}
.osjs-trash-file span {
  font-size: 13px;
  color: var(--text-primary);
}

.osjs-trash-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary);
}

.osjs-trash-window-footer {
  padding: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.osjs-trash-empty-btn {
  width: 100%;
  padding: 12px;
  background: #e07a5f;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.osjs-trash-empty-btn:hover:not(:disabled) {
  background: #d95e3d;
}
.osjs-trash-empty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

[data-theme=dark] .osjs-trash-window {
  background: rgba(45, 45, 48, 0.98);
}
[data-theme=dark] .osjs-trash-window .osjs-trash-window-header,
[data-theme=dark] .osjs-trash-window .osjs-trash-window-footer {
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .osjs-trash-window .osjs-trash-file:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme=dark] .osjs-desktop-trash-icon {
  background: rgba(0, 0, 0, 0.3);
}

.osjs-cream-ai-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 520px;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.osjs-cream-ai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
  font-size: 16px;
  cursor: move;
}
.osjs-cream-ai-header button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
}
.osjs-cream-ai-header button:hover {
  color: #e07a5f;
}

.osjs-cream-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.osjs-cream-ai-message {
  display: flex;
  gap: 10px;
}
.osjs-cream-ai-message.user {
  flex-direction: row-reverse;
}
.osjs-cream-ai-message.user .osjs-cream-ai-text {
  background: #e07a5f;
  color: white;
}
.osjs-cream-ai-message.user .osjs-cream-ai-avatar {
  background: rgba(0, 0, 0, 0.1);
}
.osjs-cream-ai-message.loading .osjs-cream-ai-text {
  opacity: 0.6;
}

.osjs-cream-ai-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #e07a5f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.osjs-cream-ai-text {
  background: rgba(0, 0, 0, 0.06);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}

.osjs-cream-ai-input-area {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.osjs-cream-ai-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.5);
}
.osjs-cream-ai-input-area input:focus {
  border-color: #e07a5f;
}
.osjs-cream-ai-input-area button {
  padding: 12px 20px;
  background: #e07a5f;
  color: white;
  border: none;
  border-radius: 24px;
  font-weight: 500;
  cursor: pointer;
}
.osjs-cream-ai-input-area button:hover {
  background: #d95e3d;
}

[data-theme=dark] .osjs-cream-ai-window {
  background: rgba(45, 45, 48, 0.98);
}
[data-theme=dark] .osjs-cream-ai-window .osjs-cream-ai-header,
[data-theme=dark] .osjs-cream-ai-window .osjs-cream-ai-input-area {
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .osjs-cream-ai-window .osjs-cream-ai-text {
  background: rgba(255, 255, 255, 0.08);
}
[data-theme=dark] .osjs-cream-ai-window .osjs-cream-ai-message.user .osjs-cream-ai-avatar {
  background: rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .osjs-cream-ai-window .osjs-cream-ai-input-area input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.osjs-launchpad {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10003;
}

.osjs-launchpad-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
}

.osjs-launchpad-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
}

.osjs-launchpad-search {
  margin-bottom: 30px;
}
.osjs-launchpad-search input {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  outline: none;
}
.osjs-launchpad-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.osjs-launchpad-search input:focus {
  background: rgba(255, 255, 255, 0.2);
}

.osjs-launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.osjs-launchpad-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.osjs-launchpad-app:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.osjs-launchpad-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.osjs-launchpad-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.osjs-launchpad-label {
  font-size: 12px;
  color: white;
  text-align: center;
}

/*# sourceMappingURL=osjs.css.map*/