/* node_modules/highlight.js/styles/github-dark.css */
pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em;
}

code.hljs {
  padding: 3px 5px;
}

.hljs {
  color: #c9d1d9;
  background: #0d1117;
}

.hljs-doctag, .hljs-keyword, .hljs-meta .hljs-keyword, .hljs-template-tag, .hljs-template-variable, .hljs-type, .hljs-variable.language_ {
  color: #ff7b72;
}

.hljs-title, .hljs-title.class_, .hljs-title.class_.inherited__, .hljs-title.function_ {
  color: #d2a8ff;
}

.hljs-attr, .hljs-attribute, .hljs-literal, .hljs-meta, .hljs-number, .hljs-operator, .hljs-variable, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-id {
  color: #79c0ff;
}

.hljs-regexp, .hljs-string, .hljs-meta .hljs-string {
  color: #a5d6ff;
}

.hljs-built_in, .hljs-symbol {
  color: #ffa657;
}

.hljs-comment, .hljs-code, .hljs-formula {
  color: #8b949e;
}

.hljs-name, .hljs-quote, .hljs-selector-tag, .hljs-selector-pseudo {
  color: #7ee787;
}

.hljs-subst {
  color: #c9d1d9;
}

.hljs-section {
  color: #1f6feb;
  font-weight: bold;
}

.hljs-bullet {
  color: #f2cc60;
}

.hljs-emphasis {
  color: #c9d1d9;
  font-style: italic;
}

.hljs-strong {
  color: #c9d1d9;
  font-weight: bold;
}

.hljs-addition {
  color: #aff5b4;
  background-color: #033a16;
}

.hljs-deletion {
  color: #ffdcd7;
  background-color: #67060c;
}

/* node_modules/@xterm/xterm/css/xterm.css */
.xterm {
  cursor: text;
  position: relative;
  user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
}

.xterm.focus, .xterm:focus {
  outline: none;
}

.xterm .xterm-helpers {
  position: absolute;
  z-index: 5;
  top: 0;
}

.xterm .xterm-helper-textarea {
  position: absolute;
  opacity: 0;
  z-index: -5;
  white-space: nowrap;
  overflow: hidden;
  resize: none;
  border: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  top: 0;
  left: -9999em;
}

.xterm .composition-view {
  color: #fff;
  display: none;
  position: absolute;
  white-space: nowrap;
  z-index: 1;
  background: #000;
}

.xterm .composition-view.active {
  display: block;
}

.xterm .xterm-viewport {
  overflow-y: scroll;
  cursor: default;
  position: absolute;
  background-color: #000;
  inset: 0;
}

.xterm .xterm-screen {
  position: relative;
}

.xterm .xterm-screen canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.xterm .xterm-scroll-area {
  visibility: hidden;
}

.xterm-char-measure-element {
  display: inline-block;
  visibility: hidden;
  position: absolute;
  line-height: normal;
  top: 0;
  left: -9999em;
}

.xterm.enable-mouse-events {
  cursor: default;
}

.xterm.xterm-cursor-pointer, .xterm .xterm-cursor-pointer {
  cursor: pointer;
}

.xterm.column-select.focus {
  cursor: crosshair;
}

.xterm .xterm-accessibility:not(.debug), .xterm .xterm-message {
  position: absolute;
  z-index: 10;
  color: #0000;
  pointer-events: none;
  inset: 0;
}

.xterm .xterm-accessibility-tree:not(.debug) *::selection {
  color: #0000;
}

.xterm .xterm-accessibility-tree {
  user-select: text;
  white-space: pre;
}

.xterm .live-region {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  left: -9999px;
}

.xterm-dim {
  opacity: 1 !important;
}

.xterm-underline-1 {
  text-decoration: underline;
}

.xterm-underline-2 {
  text-decoration: double underline;
}

.xterm-underline-3 {
  text-decoration: wavy underline;
}

.xterm-underline-4 {
  text-decoration: dotted underline;
}

.xterm-underline-5 {
  text-decoration: dashed underline;
}

.xterm-overline {
  text-decoration: overline;
}

.xterm-overline.xterm-underline-1 {
  text-decoration: overline underline;
}

.xterm-overline.xterm-underline-2 {
  text-decoration: overline double underline;
}

.xterm-overline.xterm-underline-3 {
  text-decoration: overline wavy underline;
}

.xterm-overline.xterm-underline-4 {
  text-decoration: overline dotted underline;
}

.xterm-overline.xterm-underline-5 {
  text-decoration: overline dashed underline;
}

.xterm-strikethrough {
  text-decoration: line-through;
}

.xterm-screen .xterm-decoration-container .xterm-decoration {
  z-index: 6;
  position: absolute;
}

.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
  z-index: 7;
}

.xterm-decoration-overview-ruler {
  z-index: 8;
  position: absolute;
  pointer-events: none;
  top: 0;
  right: 0;
}

.xterm-decoration-top {
  z-index: 2;
  position: relative;
}

/* src/styles.css */
:root {
  --bg-0: #14161b;
  --bg-1: #1b1e25;
  --panel: #20232b;
  --panel-2: #262a33;
  --line: #343946;
  --text: #eef0f4;
  --text-dim: #9aa1b0;
  --accent: #f2b134;
  --accent-dim: #8a6a24;
  --accent-2: #4fd1c5;
  --danger: #ef5b5b;
  --radius: 10px;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow: hidden;
  font-family: var(--font-ui);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg-0);
}

#root {
  position: fixed;
  inset: 0;
}

#desktop-root {
  position: fixed;
  background: radial-gradient(circle at 18% 12%, #2a2f3c 0%, #0000 45%), radial-gradient(circle at 82% 78%, #232838 0%, #0000 50%), linear-gradient(160deg, #181b22 0%, #101217 100%);
  inset: 0;
}

#desktop-root:before {
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(#ffffff0d 1px, #0000 1px);
  background-size: 26px 26px;
  inset: 0;
}

.login-screen {
  position: fixed;
  z-index: 5000;
  display: flex;
  background: radial-gradient(circle at 18% 12%, #2a2f3c 0%, #0000 45%), radial-gradient(circle at 82% 78%, #232838 0%, #0000 50%), linear-gradient(160deg, #181b22 0%, #101217 100%);
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.login-card {
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  text-align: center;
  border-radius: 14px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 320px;
  padding: 28px 26px;
  box-shadow: 0 30px 70px #00000080;
}

.login-logo {
  margin-bottom: 2px;
  font-size: 34px;
}

.login-title {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.login-sub {
  color: var(--text-dim);
  min-height: 16px;
  margin-bottom: 10px;
  font-size: 12px;
}

.login-error {
  color: #ffb4b4;
  text-align: left;
  background: #ef5b5b1f;
  border: 1px solid #ef5b5b59;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
}

.login-btn {
  display: flex;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-ui);
  cursor: pointer;
  border-radius: 9px;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
}

.login-btn:hover {
  background: #2f3340;
}

.login-btn:disabled {
  opacity: .5;
  cursor: default;
}

.login-btn-primary {
  background: var(--accent);
  color: #1a1408;
  border-color: var(--accent);
  font-weight: 600;
}

.login-btn-primary:hover {
  filter: brightness(1.06);
}

.login-link {
  color: var(--accent-2);
  font-family: var(--font-ui);
  cursor: pointer;
  background: none;
  border: none;
  margin-top: 2px;
  padding: 4px;
  font-size: 11.5px;
}

.login-config {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.login-config label {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
  font-size: 10.5px;
}

.login-config input {
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--text);
  font-family: var(--font-mono);
  outline: none;
  border-radius: 6px;
  width: 100%;
  padding: 7px 9px;
  font-size: 11.5px;
}

.login-config input:focus {
  border-color: var(--accent);
}

.login-config-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.login-config-actions button {
  font-family: var(--font-ui);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  flex: 1;
  padding: 7px 10px;
  font-size: 11.5px;
}

.login-config-actions button:hover {
  background: #2f3340;
}

.login-hint {
  color: var(--text-dim);
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.5;
}

.os-window {
  position: absolute;
  display: flex;
  background: var(--bg-1, #1b1e25);
  border: 1px solid var(--line, #343946);
  font-family: var(--font-ui, sans-serif);
  overflow: hidden;
  pointer-events: auto;
  transform-origin: center center;
  border-radius: 12px;
  flex-direction: column;
  min-width: 220px;
  min-height: 150px;
  box-shadow: 0 20px 45px #00000073;
}

.os-window[data-minimized="true"] {
  display: none;
}

.os-window[data-active="true"] {
  border-color: var(--accent, #f2b134);
  box-shadow: 0 24px 55px #0000008c;
}

.os-window .titlebar {
  display: flex;
  background: var(--panel, #20232b);
  border-bottom: 1px solid var(--line, #343946);
  cursor: grab;
  user-select: none;
  touch-action: none;
  flex: none;
  align-items:  center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 12px;
}

.os-window .titlebar:active {
  cursor: grabbing;
}

.os-window .ico {
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 14px;
  line-height: 1;
}

.os-window .ico:hover {
  background: #ffffff24;
}

.os-window .ttl {
  color: var(--text, #eef0f4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
}

.os-window .ctl {
  display: flex;
  gap: 6px;
}

.os-window button.dot {
  cursor: pointer;
  position: relative;
  border: none;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  padding: 0;
}

.os-window .min {
  background: #f2b134;
}

.os-window .max {
  background: #4fd1c5;
}

.os-window .close {
  background: #ef5b5b;
}

.os-window button.dot:hover {
  filter: brightness(1.15);
}

.os-window .body {
  overflow: hidden;
  position: relative;
  background: var(--bg-1, #1b1e25);
  color: var(--text, #eef0f4);
  flex: 1;
}

.os-window .body > * {
  font-family: var(--font-ui, sans-serif);
}

.os-window .handle {
  position: absolute;
}

.os-window .h-r {
  cursor: ew-resize;
  width: 6px;
  height: 100%;
  top: 0;
  right: -3px;
}

.os-window .h-b {
  cursor: ns-resize;
  width: 100%;
  height: 6px;
  bottom: -3px;
  left: 0;
}

.os-window .h-br {
  cursor: nwse-resize;
  width: 14px;
  height: 14px;
  bottom: -4px;
  right: -4px;
}

.os-icon {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  pointer-events: auto;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 6px;
  padding: 8px 4px;
}

.os-icon:hover {
  background: #ffffff0f;
}

.os-icon[data-selected="true"] {
  outline: 1px solid var(--accent, #f2b134);
  background: #f2b13429;
}

.os-icon[data-dragging="true"] {
  opacity: .8;
  background: #ffffff14;
}

.os-icon .glyph {
  filter: drop-shadow(0 2px 4px #00000080);
  transition: font-size .1s;
  font-size: 30px;
}

.os-icon .label {
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  text-align: center;
  text-shadow: 0 1px 3px #0009;
  overflow-wrap: break-word;
  max-width: 100%;
  font-size: 11.5px;
  line-height: 1.25;
}

.os-icon[data-size="small"] .glyph {
  font-size: 19px;
}

.os-icon[data-size="small"] .label {
  font-size: 10px;
}

.os-icon[data-size="medium"] .glyph {
  font-size: 30px;
}

.os-icon[data-size="medium"] .label {
  font-size: 11.5px;
}

.os-icon[data-size="large"] .glyph {
  font-size: 44px;
}

.os-icon[data-size="large"] .label {
  font-size: 12.5px;
}

.os-start-menu {
  position: absolute;
  z-index: 950;
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s, transform .16s;
  bottom: 66px;
  left: 10px;
  transform: translateY(14px);
}

.os-start-menu[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.os-start-menu .menu {
  display: flex;
  background: var(--panel, #20232b);
  border: 1px solid var(--line, #343946);
  overflow: hidden;
  backdrop-filter: blur(14px);
  border-radius: 12px;
  width: 480px;
  height: 360px;
  box-shadow: 0 20px 50px #00000080;
}

.os-start-menu .col-left {
  display: flex;
  border-right: 1px solid var(--line, #343946);
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.os-start-menu .col-right {
  display: flex;
  background: #ffffff05;
  flex-direction: column;
  flex: 1.2;
  min-width: 220px;
  min-height: 0;
}

.os-start-menu .col-title {
  font-family: var(--font-mono, monospace);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim, #9aa1b0);
  padding: 14px 16px 8px;
  font-size: 10.5px;
}

.os-start-menu .recent-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 2px 8px;
}

.os-start-menu .item {
  display: flex;
  cursor: default;
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  border-radius: 8px;
  align-items:  center;
  gap: 10px;
  padding: 8px;
  font-size: 12.5px;
}

.os-start-menu .item:hover {
  background: var(--panel-2, #262a33);
}

.os-start-menu .item .g {
  text-align: center;
  flex: none;
  width: 20px;
  font-size: 16px;
}

.os-start-menu .item .lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-start-menu .empty {
  color: var(--text-dim, #9aa1b0);
  padding: 10px 14px;
  font-size: 12px;
}

.os-start-menu .all-programs {
  border-top: 1px solid var(--line, #343946);
  display: flex;
  cursor: default;
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  border-radius: 8px;
  align-items:  center;
  gap: 8px;
  margin: 6px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.os-start-menu .all-programs:hover {
  background: var(--panel-2, #262a33);
}

.os-start-menu .all-programs .arrow {
  color: var(--text-dim, #9aa1b0);
  margin-left: auto;
}

.os-start-menu .sys-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.os-start-menu[data-flyout="true"] .sys-view {
  display: none;
}

.os-start-menu .sys-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 6px;
}

.os-start-menu .sys-item {
  display: flex;
  cursor: default;
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  border-radius: 8px;
  align-items:  center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
}

.os-start-menu .sys-item:hover {
  background: var(--panel-2, #262a33);
}

.os-start-menu .sys-item .g {
  text-align: center;
  flex: none;
  width: 18px;
  font-size: 15px;
}

.os-start-menu .sys-divider {
  background: var(--line, #343946);
  height: 1px;
  margin: 6px 4px;
}

.os-start-menu .programs-view {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.os-start-menu[data-flyout="true"] .programs-view {
  display: flex;
}

.os-start-menu .flyout-head {
  border-bottom: 1px solid var(--line, #343946);
  display: flex;
  align-items:  center;
  gap: 6px;
  padding: 10px;
}

.os-start-menu .flyout-head input {
  box-sizing: border-box;
  border: 1px solid var(--line, #343946);
  background: var(--bg-1, #1b1e25);
  color: var(--text, #eef0f4);
  font-family: var(--font-ui, sans-serif);
  outline: none;
  border-radius: 8px;
  flex: 1;
  padding: 8px 10px;
  font-size: 12.5px;
}

.os-start-menu .flyout-head input:focus {
  border-color: var(--accent, #f2b134);
}

.os-start-menu .flyout-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 6px;
}

.os-start-menu .back-row {
  border-top: 1px solid var(--line, #343946);
  display: flex;
  cursor: default;
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  border-radius: 8px;
  align-items:  center;
  gap: 8px;
  margin: 6px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.os-start-menu .back-row:hover {
  background: var(--panel-2, #262a33);
}

.os-start-menu .back-row .g {
  font-size: 15px;
}

.os-desktop {
  position: absolute;
  display: block;
  overflow: hidden;
  background: var(--bg-0, #12141a);
  inset: 0;
}

.desktop-bg {
  position: absolute;
  z-index: 0;
  inset: 0 0 56px;
}

.icon-layer {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 14px 14px 66px;
}

.window-layer {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  inset: 0 0 56px;
}

.window-layer .os-window {
  pointer-events: auto;
}

.marquee {
  position: fixed;
  z-index: 2;
  border: 1px solid var(--accent, #f2b134);
  pointer-events: none;
  background: #f2b13426;
}

.os-taskbar {
  position: absolute;
  z-index: 1000;
  display: flex;
  background: var(--panel, #20232b);
  border-top: 1px solid var(--line, #343946);
  user-select: none;
  -webkit-user-select: none;
  align-items:  center;
  gap: 4px;
  height: 56px;
  padding: 0 8px;
  bottom: 0;
  left: 0;
  right: 0;
}

.os-taskbar .start-btn {
  color: var(--text, #eef0f4);
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  border-radius: 9px;
  flex: none;
  justify-content: center;
  align-items:  center;
  width: 40px;
  height: 40px;
}

.os-taskbar .start-btn:hover {
  background: var(--panel-2, #262a33);
}

.os-taskbar .start-logo {
  color: var(--accent, #f2b134);
  font-size: 17px;
  line-height: 1;
}

.os-taskbar .tasks {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  align-items:  center;
  gap: 5px;
  min-width: 0;
  height: 100%;
}

.os-taskbar .tasks::-webkit-scrollbar {
  height: 0;
}

.os-taskbar .task {
  position: relative;
  display: flex;
  cursor: pointer;
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  background: var(--panel-2, #262a33);
  border-radius: 8px;
  flex: none;
  align-items:  center;
  gap: 7px;
  max-width: 200px;
  height: 40px;
  padding: 0 10px;
  transition: background .12s;
  font-size: 12px;
}

.os-taskbar .task:hover {
  background: #303542;
}

.os-taskbar .task.active {
  box-shadow: inset 0 -2px 0 var(--accent, #f2b134);
  background: #f2b13429;
}

.os-taskbar .task.minimized {
  opacity: .6;
}

.os-taskbar .task-icon {
  flex: none;
  font-size: 14px;
  line-height: 1;
}

.os-taskbar .task-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-taskbar .task-badge {
  background: var(--accent, #f2b134);
  color: #1a1408;
  border-radius: 9px;
  flex: none;
  padding: 0 5px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 15px;
}

.os-taskbar .systray {
  display: flex;
  flex: none;
  align-items:  center;
  gap: 3px;
}

.os-taskbar .systray-item {
  position: relative;
  display: flex;
  cursor: pointer;
  color: var(--text, #eef0f4);
  border-radius: 6px;
  flex: none;
  justify-content: center;
  align-items:  center;
  width: 30px;
  height: 34px;
  font-size: 15px;
}

.os-taskbar .systray-item:hover {
  background: var(--panel-2, #262a33);
}

.os-taskbar .systray-icon {
  font-size: 15px;
  line-height: 1;
}

.os-taskbar .systray-pulse {
  position: absolute;
  animation: 2s ease-in-out infinite tray-pulse;
  background: #69d16b;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  bottom: 3px;
  right: 3px;
  box-shadow: 0 0 6px #69d16b;
}

@keyframes tray-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

.os-taskbar .clock {
  font-family: var(--font-mono, monospace);
  color: var(--text, #eef0f4);
  text-align: right;
  white-space: nowrap;
  flex: none;
  padding: 0 12px;
  font-size: 12.5px;
  line-height: 1.3;
}

.os-taskbar .clock-date {
  display: block;
  color: var(--text-dim, #9aa1b0);
  font-size: 10.5px;
}

.os-taskbar .clock-time {
  display: block;
}

.ctx-menu {
  position: fixed;
  z-index: 100000;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--panel, #20232b);
  border: 1px solid var(--line, #343946);
  backdrop-filter: blur(14px);
  border-radius: 10px;
  min-width: 190px;
  max-height: calc(100vh - 12px);
  padding: 5px;
  box-shadow: 0 18px 40px #00000080;
}

.ctx-menu::-webkit-scrollbar {
  width: 8px;
}

.ctx-menu::-webkit-scrollbar-thumb {
  background: var(--line, #343946);
  border-radius: 4px;
}

.ctx-menu[data-open="true"] {
  display: block;
}

.ctx-item {
  display: flex;
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  cursor: default;
  border-radius: 7px;
  align-items:  center;
  gap: 9px;
  padding: 7px 10px;
  font-size: 12.5px;
}

.ctx-item:hover {
  background: var(--panel-2, #262a33);
}

.ctx-item.disabled {
  opacity: .4;
  cursor: default;
}

.ctx-item.disabled:hover {
  background: none;
}

.ctx-item .g {
  text-align: center;
  flex: none;
  width: 16px;
  font-size: 13px;
}

.ctx-divider {
  background: var(--line, #343946);
  height: 1px;
  margin: 5px 6px;
}

.os-modal-backdrop {
  position: absolute;
  z-index: 1200;
  display: none;
  background: #06070a8c;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.os-modal-backdrop[data-open="true"] {
  display: flex;
}

.os-modal {
  background: var(--panel, #20232b);
  border: 1px solid var(--line, #343946);
  border-radius: 12px;
  min-width: 260px;
  max-width: 420px;
  padding: 18px;
  box-shadow: 0 25px 60px #0000008c;
}

.os-modal-head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  margin-bottom: 12px;
}

.os-modal-title {
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  font-size: 13px;
  font-weight: 600;
}

.os-modal-close {
  border: 1px solid var(--line, #343946);
  background: var(--panel-2, #262a33);
  color: var(--text, #eef0f4);
  font-family: var(--font-ui, sans-serif);
  cursor: pointer;
  border-radius: 7px;
  flex: none;
  width: 24px;
  height: 24px;
  font-size: 12px;
  line-height: 1;
}

.os-modal-close:hover {
  background: var(--bg-1, #1b1e25);
}

.os-modal-body {
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  font-size: 12.5px;
}

.overlay {
  position: absolute;
  z-index: 2000;
  display: flex;
  opacity: 0;
  pointer-events: none;
  background: #06070af7;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 14px;
  transition: opacity .35s;
  inset: 0;
}

.overlay[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
}

.overlay-icon {
  font-size: 44px;
}

.overlay-msg {
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  font-size: 14px;
}

.overlay-hint {
  font-family: var(--font-mono, monospace);
  color: var(--text-dim, #9aa1b0);
  font-size: 11px;
}

.window-layer, .window-layer * {
  user-select: none;
  -webkit-user-select: none;
}

.window-layer textarea, .window-layer input, .window-layer [contenteditable="true"], .window-layer .xterm, .window-layer .xterm * {
  user-select: text;
  -webkit-user-select: text;
}

.app-btn {
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  background: var(--panel-2, #262a33);
  border: 1px solid var(--line, #343946);
  cursor: pointer;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
}

.app-btn:hover {
  background: #303542;
}

.app-btn:disabled {
  opacity: .45;
  cursor: default;
}

.app-btn:disabled:hover {
  background: var(--panel-2, #262a33);
}

.shortcut-input {
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  background: var(--bg-1, #1b1e25);
  border: 1px solid var(--line, #343946);
  border-radius: 6px;
  font-size: 12px;
}

.shortcut-input:focus {
  border-color: var(--accent, #f2b134);
  outline: none;
}

.calc-key {
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  background: var(--panel-2, #262a33);
  border: 1px solid var(--line, #343946);
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
  font-size: 15px;
}

.calc-key:hover {
  background: #303542;
}

.calc-key:active {
  transform: scale(.96);
}

.ribbon {
  display: flex;
  border-bottom: 1px solid var(--line, #343946);
  background: var(--panel, #20232b);
  user-select: none;
  flex-direction: column;
}

.ribbon-tabs {
  display: flex;
  gap: 2px;
  padding: 5px 8px 0;
}

.ribbon-tab {
  font-family: var(--font-ui, sans-serif);
  color: var(--text-dim, #9aa1b0);
  cursor: default;
  border-radius: 6px 6px 0 0;
  padding: 4px 10px;
  font-size: 11.5px;
}

.ribbon-tab.active {
  color: var(--text, #eef0f4);
  background: var(--bg-1, #1b1e25);
  font-weight: 600;
}

.ribbon-tab:hover:not(.active) {
  color: var(--text, #eef0f4);
}

.ribbon-content {
  display: flex;
  background: var(--bg-1, #1b1e25);
  align-items:  center;
  gap: 6px;
  padding: 7px 8px;
}

.ribbon-group {
  display: flex;
  align-items:  center;
  gap: 4px;
}

.ribbon-sep {
  background: var(--line, #343946);
  flex: none;
  width: 1px;
  height: 26px;
}

.ribbon-btn {
  display: flex;
  cursor: default;
  font-family: var(--font-ui, sans-serif);
  color: var(--text-dim, #9aa1b0);
  background: none;
  border: none;
  border-radius: 7px;
  flex-direction: column;
  align-items:  center;
  gap: 2px;
  min-width: 44px;
  padding: 4px 6px;
  font-size: 9.5px;
}

.ribbon-btn:hover {
  background: var(--panel-2, #262a33);
  color: var(--text, #eef0f4);
}

.ribbon-btn .g {
  font-size: 16px;
  line-height: 1;
}

.file-list {
  position: relative;
  overflow: auto;
  flex: 1;
  padding: 8px;
}

.file-list.view-large {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
}

.file-list.view-medium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 4px;
}

.file-list.view-list, .file-list.view-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.file-cell {
  position: relative;
  display: flex;
  cursor: default;
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  border-radius: 8px;
  flex-direction: column;
  justify-content: flex-start;
  align-items:  center;
  gap: 4px;
  padding: 8px 4px;
}

.file-list.view-large .file-cell, .file-list.view-medium .file-cell {
  min-height: 0;
}

.file-cell:hover {
  background: var(--panel-2, #262a33);
}

.file-cell.selected {
  background: #f2b13429;
}

.file-cell.drop-target {
  outline: 1px dashed var(--accent, #f2b134);
  outline-offset: -1px;
}

.file-cell .cell-icon {
  display: flex;
  justify-content: center;
  align-items:  center;
  font-size: 36px;
  line-height: 1;
}

.file-list.view-medium .file-cell .cell-icon {
  font-size: 28px;
}

.file-list.view-list .file-cell .cell-icon, .file-list.view-details .file-cell .cell-icon {
  font-size: 17px;
}

.file-cell .cell-thumb {
  object-fit: cover;
  border-radius: 5px;
  max-width: 72px;
  max-height: 54px;
  box-shadow: 0 2px 8px #0006;
}

.file-cell .cell-label {
  text-align: center;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.25;
}

.file-list.view-list .file-cell, .file-list.view-details .file-cell {
  flex-direction: row;
  align-items:  center;
  gap: 10px;
  padding: 5px 8px;
}

.file-list.view-list .file-cell .cell-label, .file-list.view-details .file-cell .cell-label {
  text-align: left;
  -webkit-line-clamp: 1;
  flex: 1;
}

.file-cell .cell-name-wrap {
  display: flex;
  flex: 1;
  align-items:  center;
  gap: 10px;
  min-width: 0;
}

.file-cell .cell-rename-input {
  box-sizing: border-box;
  text-align: center;
  color: var(--text, #eef0f4);
  background: var(--bg-1, #1b1e25);
  border: 1px solid var(--accent, #f2b134);
  border-radius: 4px;
  width: 90%;
  padding: 2px 5px;
  font-family: inherit;
  font-size: 11px;
}

.details-header {
  display: flex;
  border-bottom: 1px solid var(--line, #343946);
  font-family: var(--font-ui, sans-serif);
  color: var(--text-dim, #9aa1b0);
  background: var(--panel, #20232b);
  position: sticky;
  z-index: 2;
  user-select: none;
  align-items:  center;
  gap: 10px;
  padding: 4px 8px;
  font-size: 11px;
  top: 0;
}

.details-header .dh-col {
  display: flex;
  cursor: default;
  box-sizing: border-box;
  flex: none;
  align-items:  center;
  gap: 4px;
  padding: 0 8px 0 6px;
}

.details-header .dh-col.col-name {
  min-width: var(--col-name, 90px);
  flex: auto;
}

.details-header .dh-col.col-date {
  width: var(--col-date, 130px);
}

.details-header .dh-col.col-type {
  width: var(--col-type, 110px);
}

.details-header .dh-col.col-size {
  width: var(--col-size, 70px);
}

.details-header .dh-col.sorted {
  color: var(--text, #eef0f4);
}

.dh-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-resize {
  cursor: col-resize;
  border-radius: 2px;
  flex: none;
  width: 5px;
  height: 100%;
  min-height: 18px;
  margin: 0 -4px 0 2px;
  transition: background-color .1s;
}

.dh-resize:hover, .dh-resize.active {
  background: var(--accent, #f2b134);
}

.dh-arrow {
  display: inline-flex;
  color: var(--accent, #f2b134);
  flex: none;
  align-items:  center;
}

.dh-arrow svg {
  display: block;
  transition: transform .12s;
}

.dh-arrow.desc svg {
  transform: rotate(180deg);
}

.file-cell .cell-date, .file-cell .cell-type, .file-cell .cell-size {
  font-family: var(--font-mono, monospace);
  color: var(--text-dim, #9aa1b0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  flex: none;
  padding-right: 8px;
  font-size: 10.5px;
}

.file-list.view-details .file-cell .cell-date {
  width: var(--col-date, 130px);
}

.file-list.view-details .file-cell .cell-type {
  width: var(--col-type, 110px);
}

.file-list.view-details .file-cell .cell-size {
  width: var(--col-size, 70px);
}

.qa-item {
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  display: flex;
  cursor: default;
  border-radius: 7px;
  align-items:  center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
}

.qa-item:hover {
  background: var(--panel-2, #262a33);
}

.qa-item .g {
  text-align: center;
  flex: none;
  width: 16px;
  font-size: 14px;
}

.md-body {
  font-family: var(--font-ui, sans-serif);
  color: var(--text, #eef0f4);
  min-height: 0;
  font-size: 13px;
  line-height: 1.6;
}

.md-body h1, .md-body h2, .md-body h3, .md-body h4 {
  margin: .8em 0 .4em;
  line-height: 1.25;
}

.md-body h1 {
  font-size: 20px;
}

.md-body h2 {
  font-size: 16px;
}

.md-body h3 {
  font-size: 14px;
}

.md-body p {
  margin: .5em 0;
}

.md-body code {
  font-family: var(--font-mono, monospace);
  background: var(--panel-2, #262a33);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
}

.md-body pre {
  background: var(--bg-1, #1b1e25);
  border: 1px solid var(--line, #343946);
  overflow: auto;
  border-radius: 8px;
  padding: 10px 12px;
}

.md-body pre code, .md-body pre code.hljs {
  background: none;
  padding: 0;
}

.md-body a {
  color: var(--accent, #f2b134);
}

.md-body blockquote {
  border-left: 3px solid var(--accent, #f2b134);
  color: var(--text-dim, #9aa1b0);
  margin: .6em 0;
  padding-left: 12px;
}

.md-body ul, .md-body ol {
  padding-left: 22px;
}

.md-body img {
  border-radius: 6px;
  max-width: 100%;
}

.md-body hr {
  border: none;
  border-top: 1px solid var(--line, #343946);
  margin: 14px 0;
}

.md-source {
  font-family: var(--font-mono, monospace);
  color: var(--text, #eef0f4);
  background: var(--bg-1, #1b1e25);
  border: 1px solid var(--line, #343946);
  overflow: auto;
  border-radius: 8px;
  flex: 1;
  margin: 12px;
  padding: 12px;
  font-size: 12px;
}

.dos-window-container {
  display: flex;
  overflow: hidden;
  background: #000;
  justify-content: center;
  align-items:  center;
  width: 100%;
  height: 100%;
}

.dos-window-canvas {
  image-rendering: pixelated;
}

.tv-app {
  background: var(--panel, #20232b);
}

.tv-toolbar {
  display: flex;
  border-bottom: 1px solid var(--line, #343946);
  align-items:  center;
  gap: 12px;
  padding: 8px 12px;
}

.tv-toolbar-title {
  color: var(--text, #eef0f4);
  font-size: 13px;
  font-weight: 600;
}

.tv-selected {
  color: var(--text-dim, #9aa1b0);
  margin-left: auto;
  font-size: 11.5px;
}

.tv-root {
  user-select: none;
  font-size: 12.5px;
}

.tv-row {
  display: flex;
  cursor: pointer;
  color: var(--text, #eef0f4);
  white-space: nowrap;
  border-radius: 6px;
  align-items:  center;
  gap: 6px;
  padding: 4px 8px;
}

.tv-row:hover {
  background: var(--panel-2, #262a33);
}

.tv-row.selected {
  background: var(--panel-2, #262a33);
  outline: 1px solid var(--accent, #f2b134);
}

.tv-twisty {
  text-align: center;
  color: var(--text-dim, #9aa1b0);
  cursor: pointer;
  flex: none;
  width: 14px;
  transition: transform .12s;
  font-size: 10px;
}

.tv-twisty.leaf {
  visibility: hidden;
}

.tv-twisty.open {
  transform: rotate(90deg);
}

.tv-icon {
  text-align: center;
  flex: none;
  width: 18px;
  font-size: 13px;
}

.tv-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
