/* src/styles/fonts.css */
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(./assets/fonts/Ubuntu-normal-400-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(./assets/fonts/Ubuntu-normal-400-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url(./assets/fonts/Ubuntu-normal-500-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url(./assets/fonts/Ubuntu-normal-500-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(./assets/fonts/Ubuntu-normal-700-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(./assets/fonts/Ubuntu-normal-700-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Ubuntu Mono";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(./assets/fonts/UbuntuMono-normal-400-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Ubuntu Mono";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(./assets/fonts/UbuntuMono-normal-400-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Ubuntu Mono";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(./assets/fonts/UbuntuMono-normal-700-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Ubuntu Mono";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(./assets/fonts/UbuntuMono-normal-700-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Ubuntu Sans";
  font-style: italic;
  font-weight: 100 800;
  font-display: block;
  src: url(./assets/fonts/UbuntuSans-italic-100_800-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Ubuntu Sans";
  font-style: italic;
  font-weight: 100 800;
  font-display: block;
  src: url(./assets/fonts/UbuntuSans-italic-100_800-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 100 800;
  font-display: block;
  src: url(./assets/fonts/UbuntuSans-normal-100_800-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 100 800;
  font-display: block;
  src: url(./assets/fonts/UbuntuSans-normal-100_800-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

/* src/styles/theme.css */
:root {
  --font-ui:
    "Ubuntu Sans",
    "Ubuntu",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  --font-display:
    "Ubuntu",
    "Ubuntu Sans",
    system-ui,
    sans-serif;
  --font-mono:
    "Ubuntu Mono",
    ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
  --orange: #e95420;
  --orange-deep: #c34109;
  --aubergine: #300a24;
  --purple: #77216f;
  --magenta: #b3459b;
  --warm-grey: #aea79f;
  --cool-grey: #333333;
  --red: #c7162b;
  --green: #0e8420;
  --yellow: #f99b11;
  --blue: #0073e5;
  --win-radius: 12px;
  --headerbar-h: 47px;
  --topbar-h: 30px;
  --dock-w: 68px;
  --dock-icon: 46px;
  --dock-radius: 14px;
  --ease-out: cubic-bezier(0.2, 0.9, 0.25, 1);
  --ease-in-out: cubic-bezier(0.45, 0.05, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.5, 1);
  --t-fast: 130ms;
  --t-med: 220ms;
  --t-slow: 320ms;
  --z-desktop: 1;
  --z-windows: 100;
  --z-dock: 500;
  --z-topbar: 600;
  --z-popover: 700;
  --z-overview: 800;
  --z-notifications: 850;
  --z-dialog: 880;
  --z-lock: 890;
  --z-session: 920;
  --z-boot: 930;
}
html[data-accent=orange] {
  --accent: #e95420;
}
html[data-accent=bark] {
  --accent: #787859;
}
html[data-accent=sage] {
  --accent: #657b69;
}
html[data-accent=olive] {
  --accent: #4b6e4b;
}
html[data-accent=viridian] {
  --accent: #2c7d71;
}
html[data-accent=prussian] {
  --accent: #308280;
}
html[data-accent=blue] {
  --accent: #0073e5;
}
html[data-accent=purple] {
  --accent: #7764d8;
}
html[data-accent=magenta] {
  --accent: #b34cb3;
}
html[data-accent=red] {
  --accent: #c7162b;
}
:root,
[data-theme=light] {
  color-scheme: light;
  --bg-window: #ffffff;
  --bg-headerbar: #f6f5f4;
  --bg-headerbar-backdrop: #f6f5f4;
  --bg-secondary: #f6f5f4;
  --bg-tertiary: #ebebeb;
  --bg-view: #ffffff;
  --bg-sidebar: #f2f1f0;
  --bg-card: #ffffff;
  --bg-inset: #f0efee;
  --bg-osd: rgba(255, 255, 255, 0.97);
  --fg: #262626;
  --fg-dim: rgba(0, 0, 0, 0.62);
  --fg-faint: rgba(0, 0, 0, 0.42);
  --fg-on-accent: #ffffff;
  --border: rgba(0, 0, 0, 0.14);
  --border-soft: rgba(0, 0, 0, 0.08);
  --border-hard: rgba(0, 0, 0, 0.22);
  --divider: rgba(0, 0, 0, 0.09);
  --hover: rgba(0, 0, 0, 0.055);
  --active: rgba(0, 0, 0, 0.11);
  --selected: color-mix(in srgb, var(--accent) 88%, #000 12%);
  --selected-bg: color-mix(in srgb, var(--accent) 16%, transparent);
  --selected-fg: #ffffff;
  --shadow-window:
    0 0 0 1px rgba(0, 0, 0, 0.09),
    0 3px 9px rgba(0, 0, 0, 0.13),
    0 16px 40px rgba(0, 0, 0, 0.19);
  --shadow-window-backdrop:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 3px 12px rgba(0, 0, 0, 0.1),
    0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-popover:
    0 0 0 1px rgba(0, 0, 0, 0.09),
    0 4px 10px rgba(0, 0, 0, 0.1),
    0 14px 34px rgba(0, 0, 0, 0.18);
  --shadow-osd: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-button: 0 1px 2px rgba(0, 0, 0, 0.1);
  --headerbar-highlight: inset 0 1px rgba(255, 255, 255, 0.95);
  --headerbar-shade: inset 0 -1px rgba(0, 0, 0, 0.07);
  --tile-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  --thumb-border: rgba(0, 0, 0, 0.16);
}
[data-theme=dark] {
  color-scheme: dark;
  --bg-window: #242424;
  --bg-headerbar: #303030;
  --bg-headerbar-backdrop: #2b2b2b;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #3a3a3a;
  --bg-view: #1e1e1e;
  --bg-sidebar: #2d2d2d;
  --bg-card: #333333;
  --bg-inset: #1a1a1a;
  --bg-osd: rgba(40, 40, 40, 0.97);
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.62);
  --fg-faint: rgba(255, 255, 255, 0.4);
  --fg-on-accent: #ffffff;
  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.09);
  --border-hard: rgba(255, 255, 255, 0.24);
  --divider: rgba(255, 255, 255, 0.1);
  --hover: rgba(255, 255, 255, 0.07);
  --active: rgba(255, 255, 255, 0.13);
  --selected: color-mix(in srgb, var(--accent) 82%, #fff 4%);
  --selected-bg: color-mix(in srgb, var(--accent) 26%, transparent);
  --selected-fg: #ffffff;
  --shadow-window:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 3px 9px rgba(0, 0, 0, 0.4),
    0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-window-backdrop:
    0 0 0 1px rgba(0, 0, 0, 0.42),
    0 3px 12px rgba(0, 0, 0, 0.34),
    0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-popover:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 14px 34px rgba(0, 0, 0, 0.5);
  --shadow-osd: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-button: 0 1px 2px rgba(0, 0, 0, 0.4);
  --headerbar-highlight: inset 0 1px rgba(255, 255, 255, 0.09);
  --headerbar-shade: inset 0 -1px rgba(0, 0, 0, 0.3);
  --tile-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
  --thumb-border: rgba(255, 255, 255, 0.18);
}
:root {
  --accent: #e95420;
  --accent-rgb:
    233,
    84,
    32;
  --accent-hover: color-mix(in srgb, var(--accent) 90%, #000 10%);
  --accent-active: color-mix(in srgb, var(--accent) 78%, #000 22%);
  --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-softer: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-text: color-mix(in srgb, var(--accent) 82%, var(--fg) 18%);
  --accent-ring: color-mix(in srgb, var(--accent) 55%, transparent);
}
:root {
  --topbar-bg: rgba(20, 18, 20, 0.86);
  --topbar-fg: #ffffff;
  --topbar-hover: rgba(255, 255, 255, 0.14);
  --dock-bg: rgba(28, 26, 28, 0.78);
  --dock-border: rgba(255, 255, 255, 0.1);
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 1ms;
    --t-med: 1ms;
    --t-slow: 1ms;
  }
}

/* src/styles/base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.35;
  color: var(--fg);
  background: #16110f;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-user-select: none;
  user-select: none;
}
#os {
  position: fixed;
  inset: 0;
  isolation: isolate;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--accent-soft);
  color: inherit;
}
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 1px;
}
.row:focus-visible,
.menu-item:focus-visible {
  outline-offset: -2px;
}
.scroll,
.term-output,
.app-scroll {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--fg) 32%, transparent) transparent;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--fg) 26%, transparent);
  border: 3px solid transparent;
  border-radius: 9px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--fg) 42%, transparent);
  background-clip: padding-box;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--bg-window) 92%, #fff 8%),
      var(--bg-window));
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
}
[data-theme=dark] .btn {
  background:
    linear-gradient(
      to bottom,
      #3d3d3d,
      #383838);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn:hover {
  background: color-mix(in srgb, var(--bg-window) 88%, var(--fg) 5%);
}
.btn:active {
  background: var(--active);
  box-shadow: none;
  transform: translateY(1px);
}
.btn.suggested {
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--accent) 92%, #fff 8%),
      var(--accent));
  border-color: color-mix(in srgb, var(--accent) 70%, #000 30%);
  color: var(--fg-on-accent);
}
.btn.suggested:hover {
  background: var(--accent-hover);
}
.btn.destructive {
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--red) 94%, #fff 6%),
      var(--red));
  border-color: color-mix(in srgb, var(--red) 70%, #000 30%);
  color: #fff;
}
.btn.flat {
  background: none;
  border-color: transparent;
  box-shadow: none;
}
.btn.flat:hover {
  background: var(--hover);
}
.btn.pill {
  border-radius: 999px;
}
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-dim);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}
.icon-btn:hover {
  background: var(--hover);
  color: var(--fg);
}
.icon-btn:active,
.icon-btn.active {
  background: var(--active);
  color: var(--fg);
}
.icon-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.entry {
  width: 100%;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-view);
  color: var(--fg);
  font-size: 14.5px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-user-select: text;
  user-select: text;
}
.entry::placeholder {
  color: var(--fg-faint);
}
.entry:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-softer), inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.entry.search {
  border-radius: 999px;
  padding-inline: 14px;
}
.switch {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: color-mix(in srgb, var(--fg) 22%, transparent);
  cursor: pointer;
  transition: background var(--t-med) var(--ease-out);
  vertical-align: middle;
}
[data-theme=dark] .switch {
  background: color-mix(in srgb, #fff 22%, transparent);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform var(--t-med) var(--ease-spring), width 120ms;
}
.switch:active::after {
  width: 27px;
}
.switch[aria-checked=true] {
  background: var(--accent);
}
.switch[aria-checked=true]::after {
  transform: translateX(22px);
}
.switch[aria-checked=true]:active::after {
  transform: translateX(19px);
}
.switch:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      var(--accent) 0%,
      var(--accent) var(--fill, 50%),
      color-mix(in srgb, var(--fg) 20%, transparent) var(--fill, 50%),
      color-mix(in srgb, var(--fg) 20%, transparent) 100%);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.28);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform var(--t-fast);
}
.slider:hover::-webkit-slider-thumb {
  transform: scale(1.08);
}
.slider:active::-webkit-slider-thumb {
  transform: scale(1.14);
}
.slider::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 20%, transparent);
}
.slider::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}
.slider::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.28);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.slider:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: default;
  transition: background var(--t-fast);
}
.row.action {
  cursor: pointer;
}
.row.action:hover {
  background: var(--hover);
}
.row.action:active {
  background: var(--active);
}
.row.selected {
  background: var(--selected);
  color: var(--selected-fg);
}
.row.selected .row-sub,
.row.selected .row-title .dim {
  color: color-mix(in srgb, var(--selected-fg) 82%, transparent);
}
.row-icon {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--fg-dim);
}
.row-icon img,
.row-icon svg {
  width: 24px;
  height: 24px;
}
.row-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.row-title {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-sub {
  font-size: 13px;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-suffix {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-dim);
  font-size: 13.5px;
}
.row-group {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}
[data-theme=dark] .row-group {
  background: rgba(255, 255, 255, 0.045);
}
.row-group .row + .row {
  border-top: 1px solid var(--divider);
}
.row-group .row {
  border-radius: 0;
}
.row-group .row:first-child {
  border-radius: 12px 12px 0 0;
}
.row-group .row:last-child {
  border-radius: 0 0 12px 12px;
}
.row-group .row:only-child {
  border-radius: 12px;
}
.popover {
  position: fixed;
  min-width: 200px;
  padding: 6px;
  border-radius: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-popover);
  color: var(--fg);
  z-index: var(--z-popover);
}
[data-theme=dark] .popover {
  background: rgba(56, 56, 56, 0.98);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.popover .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--fg);
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast);
}
.popover .menu-item:hover {
  background: var(--hover);
}
.popover .menu-item:active {
  background: var(--active);
}
.popover .menu-item .accel {
  margin-left: auto;
  color: var(--fg-faint);
  font-size: 12.5px;
  padding-left: 24px;
}
.popover .menu-item .mi-icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--fg-dim);
}
.popover .menu-item.danger {
  color: var(--red);
}
.popover .menu-item.danger .mi-icon {
  color: var(--red);
}
.popover .menu-sep {
  height: 1px;
  margin: 5px 8px;
  background: var(--divider);
}
.popover .menu-label {
  padding: 6px 10px 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.popover .menu-item[aria-checked=true] .mi-icon.check {
  opacity: 1;
  color: var(--accent-text);
}
.popover .menu-item .mi-icon.check {
  opacity: 0;
}
.tooltip {
  position: fixed;
  z-index: 950;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(20, 18, 20, 0.95);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 120ms ease, transform 120ms ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  max-width: 340px;
}
.tooltip.show {
  opacity: 1;
  transform: translateY(0);
}
.tooltip .tip-accel {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.6);
}
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--fg) 24%, transparent);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
  flex: none;
}
.spinner.big {
  width: 34px;
  height: 34px;
  border-width: 3.5px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner.gnome {
  border: none;
  position: relative;
}
.spinner.gnome::before,
.spinner.gnome::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.spinner.gnome::after {
  inset: 4px;
  border-top-color: color-mix(in srgb, var(--accent) 45%, transparent);
  animation-duration: 0.6s;
  animation-direction: reverse;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 24px;
  color: var(--fg-dim);
  text-align: center;
}
.empty-state .es-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
}
.empty-state .es-sub {
  font-size: 13.5px;
  max-width: 320px;
}
.empty-state .es-art {
  width: 96px;
  height: 96px;
  opacity: 0.9;
}
.dim {
  color: var(--fg-dim);
}
.faint {
  color: var(--fg-faint);
}
.mono {
  font-family: var(--font-mono);
}
.link {
  color: var(--accent-text);
  cursor: pointer;
}
.link:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hover);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-dim);
}
.divider {
  height: 1px;
  background: var(--divider);
}
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grow {
  flex: 1;
  min-width: 0;
}
.user-select-text {
  -webkit-user-select: text;
  user-select: text;
}
.osd-window {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: var(--z-dialog);
  background: rgba(0, 0, 0, 0.28);
  animation: fade-in 160ms ease;
}
.osd-window .osd-card {
  width: min(420px, calc(100vw - 48px));
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-osd);
  padding: 22px 24px 18px;
  animation: osd-in 220ms var(--ease-out);
}
[data-theme=dark] .osd-window .osd-card {
  background: #383838;
}
@keyframes osd-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(6px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.row-icon svg,
.row-icon img,
.sw-card-icon svg,
.ov-result-icon svg,
.ov-dash-icon svg,
.ov-win-icon svg,
.qs-tile-icon svg,
.sm-proc-icon svg,
.fp-icon svg,
.dock-icon svg,
.ag-icon svg,
.at-icon svg,
.iv-sidebar svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

/* src/styles/wm.css */
.windows-layer,
.ws-layer {
  position: absolute;
  inset: 0;
}
.desktop.overview-open .windows-layer {
  z-index: 200;
}
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: var(--win-radius);
  background: var(--bg-window);
  box-shadow: var(--shadow-window);
  color: var(--fg);
  overflow: hidden;
  will-change: transform, opacity;
  contain: layout style;
}
.win.backdrop {
  box-shadow: var(--shadow-window-backdrop);
}
.win.entering {
  opacity: 0;
}
.win.dragging,
.win.resizing {
  transition: none !important;
  will-change:
    left,
    top,
    width,
    height;
}
.win.dragging {
  cursor: grabbing;
}
.win.is-minimized {
  pointer-events: none;
}
.win-header {
  position: relative;
  flex: none;
  height: var(--headerbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--bg-headerbar) 92%, #fff 8%),
      var(--bg-headerbar));
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--headerbar-highlight), var(--headerbar-shade);
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  z-index: 3;
}
[data-theme=dark] .win-header {
  background:
    linear-gradient(
      to bottom,
      #353535,
      var(--bg-headerbar));
}
.win.backdrop .win-header {
  background: var(--bg-headerbar-backdrop);
  color: var(--fg-dim);
}
.win-header:active {
  cursor: grabbing;
}
.hb-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.hb-start {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hb-end {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hb-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  pointer-events: none;
}
.win-header.has-tabs .hb-title {
  display: none;
}
.hb-title-text {
  font-size: 14.5px;
  font-weight: 700;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win.backdrop .hb-title-text {
  color: var(--fg-dim);
  font-weight: 500;
}
.hb-subtitle {
  font-size: 12px;
  color: var(--fg-faint);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-custom-title {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hb-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-inline: 4px;
}
.hb-tabs::-webkit-scrollbar {
  display: none;
}
.hb-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  max-width: 220px;
  height: 32px;
  padding: 0 8px 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--fg-dim);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.hb-tab:hover {
  background: var(--hover);
  color: var(--fg);
}
.hb-tab.active {
  background: var(--bg-window);
  border-color: var(--border-soft);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.hb-tab.dirty .hb-tab-label::after {
  content: "•";
  margin-left: 6px;
  color: var(--accent);
  font-weight: 700;
}
.hb-tab-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}
.hb-tab-icon svg {
  width: 16px;
  height: 16px;
}
.hb-tab-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.hb-tab-close {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--t-fast), background var(--t-fast);
}
.hb-tab:hover .hb-tab-close,
.hb-tab.active .hb-tab-close {
  opacity: 0.7;
}
.hb-tab-close:hover {
  background: var(--active);
  opacity: 1;
}
.hb-tab-new {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--fg-dim);
  cursor: pointer;
}
.hb-tab-new:hover {
  background: var(--hover);
  color: var(--fg);
}
.win-buttons {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 8px;
}
.wbtn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  padding: 0;
  background: color-mix(in srgb, var(--fg) 13%, transparent);
  color: color-mix(in srgb, var(--fg) 72%, transparent);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
[data-theme=dark] .wbtn {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
}
.wbtn:hover {
  background: color-mix(in srgb, var(--fg) 24%, transparent);
  color: var(--fg);
}
[data-theme=dark] .wbtn:hover {
  background: rgba(255, 255, 255, 0.28);
}
.wbtn.close:hover {
  background: #e01b24;
  color: #ffffff;
}
.wbtn:active {
  filter: brightness(0.9);
}
.win.backdrop .wbtn {
  opacity: 0.75;
}
.win-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-window);
  overflow: hidden;
}
.rz {
  position: absolute;
  z-index: 5;
}
.rz-n {
  top: -3px;
  left: 10px;
  right: 10px;
  height: 7px;
  cursor: ns-resize;
}
.rz-s {
  bottom: -3px;
  left: 10px;
  right: 10px;
  height: 7px;
  cursor: ns-resize;
}
.rz-w {
  left: -3px;
  top: 10px;
  bottom: 10px;
  width: 7px;
  cursor: ew-resize;
}
.rz-e {
  right: -3px;
  top: 10px;
  bottom: 10px;
  width: 7px;
  cursor: ew-resize;
}
.rz-nw {
  left: -3px;
  top: -3px;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
}
.rz-ne {
  right: -3px;
  top: -3px;
  width: 14px;
  height: 14px;
  cursor: nesw-resize;
}
.rz-sw {
  left: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  cursor: nesw-resize;
}
.rz-se {
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
}
.win.maximized .rz,
.win.snapped .rz {
  display: none;
}
.snap-preview {
  position: absolute;
  border-radius: var(--win-radius);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 2px solid color-mix(in srgb, var(--accent) 75%, transparent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 120ms ease;
}
.snap-preview.show {
  opacity: 1;
}
.alt-tab-layer {
  position: fixed;
  inset: 0;
  z-index: 940;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 130ms ease;
}
.alt-tab-layer.show {
  opacity: 1;
}
.alt-tab-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: min(920px, 84vw);
  padding: 20px;
  border-radius: 18px;
  background: var(--bg-osd);
  box-shadow: var(--shadow-osd);
}
.alt-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 128px;
  padding: 12px 8px;
  border-radius: 14px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.alt-tab-item.active {
  background: var(--selected-bg);
  outline: 2px solid var(--accent);
}
.at-icon {
  width: 56px;
  height: 56px;
  display: block;
}
.at-icon svg {
  width: 56px;
  height: 56px;
}
.at-title {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.at-sub {
  font-size: 11.5px;
  color: var(--fg-faint);
}
.crash-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 30px;
  text-align: center;
  color: var(--fg-dim);
}
.crash-pane svg {
  color: var(--red);
  width: 44px;
  height: 44px;
}

/* src/styles/shell.css */
#os {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.desktop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.wallpaper {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 400ms ease, filter 300ms ease;
  z-index: 0;
}
.desktop.overview-open .wallpaper {
  filter: blur(14px) brightness(0.72);
  transform: scale(1.02);
  transition: filter 260ms ease, transform 260ms ease;
}
.night-light-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgb(255, 147, 41);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 8;
}
.night-light-overlay.active {
  opacity: 0.14;
}
.screenshot-flash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0.85;
  pointer-events: none;
  z-index: 960;
  animation: flash-out 400ms ease forwards;
}
@keyframes flash-out {
  to {
    opacity: 0;
  }
}
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  background: var(--topbar-bg);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  color: var(--topbar-fg);
  font-size: 13.5px;
  font-weight: 500;
  z-index: var(--z-topbar);
  -webkit-user-select: none;
  user-select: none;
}
.topbar button {
  height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--t-fast);
}
.topbar button:hover,
.topbar button.active {
  background: var(--topbar-hover);
}
.topbar button:active {
  background: rgba(255, 255, 255, 0.22);
}
.tb-left,
.tb-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.tb-right {
  justify-content: flex-end;
}
.tb-activities {
  font-weight: 700 !important;
}
.tb-appname {
  max-width: 240px;
}
.tb-appname span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-center {
  flex: none;
  display: flex;
  justify-content: center;
  min-width: 180px;
}
.tb-clock.has-notifications::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: 2px;
}
.tb-status svg {
  display: block;
}
.tb-status {
  gap: 7px !important;
}
.tb-battery-pct {
  font-variant-numeric: tabular-nums;
}
.qs-popover {
  width: 348px;
  padding: 10px;
}
.cal-popover {
  width: 400px;
  padding: 0;
  overflow: hidden;
}
.qs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--fg);
}
.qs-panes {
  display: flex;
  flex-direction: column;
}
.qs-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qs-user {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.qs-user:hover {
  background: var(--hover);
}
.qs-avatar,
.qs-avatar svg {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.qs-username {
  font-weight: 600;
  font-size: 14px;
}
.qs-battery {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: var(--hover);
  font-size: 13px;
  font-weight: 600;
}
.qs-battery svg {
  display: block;
}
.qs-power {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  color: inherit;
  cursor: pointer;
}
.qs-power:hover {
  background: var(--active);
}
.qs-sliders {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 2px;
}
.qs-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px;
}
.qs-slider-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg-dim);
  cursor: pointer;
}
.qs-slider-icon:hover {
  background: var(--hover);
  color: var(--fg);
}
.qs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.qs-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 9px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.qs-tile:hover {
  background: var(--hover);
}
.qs-tile.active {
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 70%, #000 30%);
  color: var(--fg-on-accent);
}
.qs-tile.active .qs-tile-sub,
.qs-tile.active .qs-tile-icon {
  color: rgba(255, 255, 255, 0.85);
}
.qs-tile-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  color: var(--fg-dim);
}
.qs-tile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.qs-tile-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qs-tile-sub {
  font-size: 11.5px;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qs-tile-arrow {
  color: var(--fg-faint);
}
.qs-actions {
  display: flex;
  gap: 8px;
}
.qs-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.qs-action:hover {
  background: var(--hover);
}
.qs-pane-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
}
.qs-back {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.qs-back:hover {
  background: var(--hover);
}
.qs-pane-title {
  font-weight: 700;
  font-size: 14.5px;
}
.qs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 340px;
  overflow-y: auto;
}
.qs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
}
.qs-row-label {
  font-weight: 600;
}
.qs-section-label {
  padding: 8px 10px 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.qs-network,
.qs-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.qs-network:hover,
.qs-mode:hover {
  background: var(--hover);
}
.qs-network.connected {
  background: var(--selected-bg);
}
.qs-net-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qs-mode-text {
  display: flex;
  flex-direction: column;
}
.qs-empty {
  padding: 16px;
  text-align: center;
  font-size: 13.5px;
}
.small {
  font-size: 12px;
}
.cal {
  display: flex;
  flex-direction: column;
  color: var(--fg);
  max-height: 620px;
}
.cal-notifs {
  border-bottom: 1px solid var(--divider);
  max-height: 260px;
  overflow-y: auto;
}
.cal-empty {
  padding: 20px 16px;
  text-align: center;
}
.cal-empty-title {
  font-weight: 700;
  margin-bottom: 4px;
}
.cal-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  font-weight: 700;
  font-size: 13.5px;
}
.ntf-row {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 10px 14px;
}
.ntf-row:hover {
  background: var(--hover);
}
.ntf-icon {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
}
.ntf-icon svg {
  width: 34px;
  height: 34px;
}
.ntf-row-text {
  min-width: 0;
  flex: 1;
}
.ntf-row-title {
  font-weight: 600;
  font-size: 13.5px;
}
.ntf-row-body {
  font-size: 13px;
  color: var(--fg-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ntf-row-time {
  font-size: 11.5px;
  margin-top: 2px;
}
.ntf-close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg-dim);
  opacity: 0;
  cursor: pointer;
}
.ntf-row:hover .ntf-close {
  opacity: 1;
}
.ntf-close:hover {
  background: var(--active);
}
.cal-month {
  padding: 12px 14px 14px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cal-title {
  font-weight: 700;
}
.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-faint);
  padding: 4px 0;
}
.cal-day {
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.cal-day:hover {
  background: var(--hover);
}
.cal-day.other {
  color: var(--fg-faint);
}
.cal-day.today {
  background: var(--accent);
  color: var(--fg-on-accent);
  font-weight: 700;
}
.cal-day.selected:not(.today) {
  background: var(--selected-bg);
}
.cal-world {
  margin-top: 12px;
  border-top: 1px solid var(--divider);
  padding-top: 8px;
}
.cal-world-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 4px;
  font-size: 13.5px;
}
.dock {
  position: fixed;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 7px;
  max-height: calc(100vh - 60px);
  border-radius: var(--dock-radius);
  background: var(--dock-bg);
  border: 1px solid var(--dock-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  z-index: var(--z-dock);
  transition: transform 240ms var(--ease-out), opacity 240ms ease;
}
.dock.autohide {
  transform: translate(-110%, -50%);
  opacity: 0;
}
.dock.autohide.revealed {
  transform: translateY(-50%);
  opacity: 1;
}
.desktop.overview-open ~ .dock {
  opacity: 0;
  pointer-events: none;
  transform: translate(-110%, -50%);
}
.dock-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  overflow-y: auto;
  scrollbar-width: none;
  max-height: calc(100vh - 190px);
}
.dock-items::-webkit-scrollbar {
  display: none;
}
.dock-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.dock-item {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--dock-icon) + 12px);
  height: calc(var(--dock-icon) + 12px);
  border: 0;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.dock-item:hover {
  background: rgba(255, 255, 255, 0.14);
}
.dock-item:active {
  background: rgba(255, 255, 255, 0.2);
}
.dock-item.focused {
  background: rgba(255, 255, 255, 0.18);
}
.dock-item.dragging {
  opacity: 0.5;
}
.dock-item.drop-target {
  background: rgba(255, 255, 255, 0.24);
  outline: 2px solid var(--accent);
}
.dock-icon,
.dock-icon svg {
  display: block;
  width: var(--dock-icon);
  height: var(--dock-icon);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  transition: transform var(--t-fast);
}
.dock-item:hover .dock-icon {
  transform: scale(1.08);
}
.dock-dot {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform var(--t-fast);
}
.dock-item.running .dock-dot {
  transform: translateX(-50%) scale(1);
}
.dock-item.urgent .dock-icon {
  animation: dock-bounce 0.55s ease 3;
}
@keyframes dock-bounce {
  0%, 100% {
    transform: translateY(0) scale(1.05);
  }
  40% {
    transform: translateY(-9px) scale(1.05);
  }
}
.dock-show-apps .dock-icon {
  color: #ffffff;
  opacity: 0.9;
}
.dock-trash .dock-dot {
  background: #ffb86b;
}
.overview {
  position: fixed;
  inset: 0;
  z-index: var(--z-overview);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  display: flex;
  flex-direction: column;
}
.overview.show {
  opacity: 1;
  pointer-events: none;
}
.ov-backdrop {
  position: absolute;
  inset: 0;
  z-index: 95;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.52) saturate(1.1);
  transform: scale(1.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}
.ov-backdrop.show {
  opacity: 1;
}
.desktop.apps-mode .ov-backdrop {
  filter: blur(34px) brightness(0.34) saturate(1.05);
}
.ov-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  padding-top: var(--topbar-h);
}
.overview .ov-content > * {
  pointer-events: auto;
}
.ov-click-catcher {
  position: absolute;
  inset: 0;
  z-index: 90;
}
.ov-workspaces {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px 6px;
}
.ov-workspaces.hidden-mode {
  display: none;
}
.ov-ws {
  position: relative;
  width: 172px;
  height: 104px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.ov-ws:hover {
  transform: translateY(-2px);
}
.ov-ws.active {
  border-color: var(--accent);
}
.ov-ws.drop-target {
  border-color: #ffffff;
}
.ov-ws-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}
.ov-ws-win {
  position: absolute;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.ov-ws-index {
  position: absolute;
  bottom: 3px;
  right: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.ov-ws-add {
  width: 42px;
  height: 104px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  cursor: pointer;
}
.ov-ws-add:hover {
  background: rgba(255, 255, 255, 0.18);
}
.ov-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ov-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 78vw);
  margin: 10px auto 0;
  padding: 0 16px;
  height: 44px;
  border-radius: 999px;
  background: rgba(20, 18, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ov-search svg {
  color: rgba(255, 255, 255, 0.7);
}
.ov-search-input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff;
  font-size: 15px;
  height: auto;
  min-height: 0;
  padding: 0;
}
.ov-search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.ov-search-input:focus {
  box-shadow: none !important;
}
.ov-hint {
  opacity: 0;
  transition: opacity 200ms ease;
}
.ov-search:focus-within .ov-hint {
  opacity: 1;
}
.ov-results {
  width: min(880px, 92vw);
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(28, 26, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.ov-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
}
.ov-result {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ov-result.selected {
  background: var(--accent);
}
.ov-result-icon,
.ov-result-icon svg {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
}
.ov-result-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ov-result-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-result-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-result.selected .ov-result-sub {
  color: rgba(255, 255, 255, 0.85);
}
.ov-no-results {
  padding: 26px;
  text-align: center;
  color: #ffffff;
}
.ov-windows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ov-windows.hidden-mode {
  display: none;
}
.ov-window-chrome {
  position: absolute;
  pointer-events: none;
}
.ov-win-chrome {
  position: absolute;
  border-radius: 10px;
  transition: box-shadow 160ms ease, background 160ms ease;
}
.ov-win-chrome:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.ov-win-close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 18, 20, 0.82);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 150ms ease, background 150ms ease;
}
.ov-win-chrome:hover .ov-win-close {
  opacity: 1;
}
.ov-win-close:hover {
  background: #e01b24;
}
.ov-win-label {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 18, 20, 0.7);
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 150ms ease;
}
.ov-win-chrome:hover .ov-win-label {
  opacity: 1;
}
.ov-dash {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  margin-bottom: 4px;
  max-width: 94vw;
  margin-inline: auto;
}
.ov-dash.hidden-mode {
  display: none;
}
.ov-dash-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 14px;
  background: rgba(28, 26, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast);
}
.ov-dash-item:hover {
  transform: translateY(-4px);
  background: rgba(60, 58, 60, 0.9);
}
.ov-dash-icon,
.ov-dash-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}
.ov-show-apps .ov-dash-icon {
  color: #ffffff;
}
.ov-dash-dot {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  transform: scale(0);
}
.ov-dash-item.running .ov-dash-dot {
  transform: scale(1);
}
.ov-dash-sep {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
}
.app-grid {
  position: absolute;
  inset: 96px 0 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  transform: translateY(14px);
  overflow: hidden;
}
.app-grid.show {
  opacity: 1;
  transform: translateY(0);
}
.ag-pages {
  display: flex;
  flex: 1;
  min-height: 0;
  transition: transform 280ms var(--ease-out);
}
.ag-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(var(--ag-cols, 6), 1fr);
  align-content: start;
  justify-items: center;
  gap: 6px 4px;
  padding: 12px max(16px, calc((100% - 1060px) / 2));
  overflow-y: auto;
}
.ag-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 132px;
  padding: 12px 6px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.ag-tile:hover {
  background: rgba(255, 255, 255, 0.12);
}
.ag-tile:active {
  background: rgba(255, 255, 255, 0.2);
}
.ag-tile.drop-target {
  background: rgba(255, 255, 255, 0.2);
  outline: 2px solid var(--accent);
}
.ag-tile.dragging {
  opacity: 0.45;
}
.ag-icon,
.ag-icon svg {
  width: 64px;
  height: 64px;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}
.ag-label {
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
}
.ag-folder {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ag-folder-icon,
.ag-folder-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.ag-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 8px 0 4px;
}
.ag-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.ag-dot.active {
  background: #ffffff;
}
.folder-popup {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(560px, 84vw);
  padding: 16px;
  border-radius: 18px;
  background: rgba(28, 26, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}
.folder-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.folder-header {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.folder-name {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}
.folder-popup .ag-page {
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
}
.notification-banners {
  position: fixed;
  top: calc(var(--topbar-h) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 92vw);
  z-index: var(--z-notifications);
  pointer-events: none;
}
.notification-banner {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-osd);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-osd);
  opacity: 0;
  transform: translateY(-14px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    top 220ms ease;
  cursor: pointer;
}
.notification-banner.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.notification-banner.urgent {
  border-color: color-mix(in srgb, var(--red) 45%, transparent);
}
.ntf-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ntf-head .ntf-icon {
  width: 30px;
  height: 30px;
}
.ntf-head .ntf-icon svg {
  width: 30px;
  height: 30px;
}
.ntf-head-text {
  flex: 1;
  min-width: 0;
}
.ntf-app {
  font-size: 12px;
  color: var(--fg-dim);
}
.ntf-title {
  font-weight: 700;
  font-size: 14px;
}
.ntf-body {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--fg-dim);
}
.ntf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}
.ntf-action {
  padding: 4px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ntf-action:hover {
  background: var(--hover);
}
.osd {
  position: fixed;
  left: 50%;
  top: 64px;
  transform: translate(-50%, -10px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bg-osd);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-osd);
  color: var(--fg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 920;
}
.osd.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.osd-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 180px;
}
.osd-label {
  font-size: 13.5px;
  font-weight: 600;
}
.osd-track {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 18%, transparent);
  overflow: hidden;
}
.osd-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 120ms ease;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 16px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-osd);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-osd);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 915;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--hover);
  color: var(--fg-dim);
}
.toast-title {
  font-weight: 600;
  font-size: 13.5px;
}
.toast-body {
  font-size: 12.5px;
  color: var(--fg-dim);
}
.toast-action {
  margin-left: 14px;
  padding: 4px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--fg-on-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.osd-window {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.3);
  z-index: var(--z-dialog);
  animation: fade-in 150ms ease;
}
.osd-window.in-window {
  position: absolute;
}
.osd-card {
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-osd);
  padding: 22px 24px 18px;
  animation: osd-in 200ms var(--ease-out);
  max-height: 86vh;
  overflow-y: auto;
  overflow-x: visible;
}
[data-theme=dark] .osd-card {
  background: #383838;
}
.osd-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.osd-body {
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 18px;
}
.osd-body p {
  margin: 0 0 10px;
}
.osd-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.osd-buttons .btn {
  flex: none;
}
.osd-window.session-dialog .osd-buttons {
  flex-direction: column;
  align-items: stretch;
}
.osd-window.session-dialog .osd-buttons .btn {
  width: 100%;
  justify-content: center;
}
.dlg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dlg-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-dim);
}
.dlg-text {
  margin: 0 0 12px;
  color: var(--fg-dim);
}
.field-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 8px;
}
.password-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.password-form label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-dim);
  margin-top: 6px;
}
.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.shortcut-list > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.shortcut-list span {
  flex: 1;
}
kbd {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-inset);
  box-shadow: 0 1px 0 var(--border-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
}
.props-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.props-row {
  display: flex;
  gap: 14px;
}
.props-key {
  width: 110px;
  flex: none;
}
.props-value {
  flex: 1;
  word-break: break-word;
}
.props-icon,
.props-icon svg {
  width: 64px;
  height: 64px;
  align-self: center;
}
.props-preview {
  max-width: 240px;
  max-height: 180px;
  align-self: center;
  border-radius: 10px;
}
.osd-window .row.action {
  cursor: pointer;
}
.file-picker {
  z-index: calc(var(--z-dialog) + 4);
}
.fp-window {
  width: min(780px, 94vw);
  height: min(520px, 84vh);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-osd);
  overflow: hidden;
  animation: osd-in 200ms var(--ease-out);
}
.fp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
}
.fp-title {
  flex: 1;
  text-align: center;
  font-weight: 700;
}
.fp-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.fp-sidebar {
  width: 190px;
  flex: none;
  padding: 10px 8px;
  border-right: 1px solid var(--divider);
  overflow-y: auto;
  background: var(--bg-sidebar);
}
.fp-place {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fp-place:hover {
  background: var(--hover);
}
.fp-place.active {
  background: var(--selected-bg);
}
.fp-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.fp-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--divider);
}
.fp-crumbs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fp-crumb {
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.fp-crumb:hover {
  background: var(--hover);
}
.fp-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px;
}
.fp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.fp-item:hover {
  background: var(--hover);
}
.fp-item[aria-selected=true] {
  background: var(--selected);
  color: var(--selected-fg);
}
.fp-icon,
.fp-icon svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.fp-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--divider);
}
.fp-name-row .entry {
  flex: 1;
}
.fp-filters {
  position: absolute;
  min-width: 200px;
}
.entry.invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 2px rgba(199, 22, 43, 0.25) !important;
}
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-lock);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 320ms ease;
}
.lock-screen.show {
  opacity: 1;
}
.lock-screen.unlocking {
  opacity: 0;
  transform: scale(1.03);
}
.lock-bg,
.lock-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.lock-blur {
  -webkit-backdrop-filter: blur(38px) brightness(0.5) saturate(1.1);
  backdrop-filter: blur(38px) brightness(0.5) saturate(1.1);
  background: rgba(0, 0, 0, 0.28);
}
.lock-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
}
.lock-time {
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.lock-date {
  font-size: 19px;
  font-weight: 500;
  opacity: 0.92;
  margin-bottom: 42px;
}
.lock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(20, 18, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.lock-card.shake {
  animation: shake 0.45s ease;
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-9px);
  }
  40% {
    transform: translateX(9px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(6px);
  }
}
.lock-avatar,
.lock-avatar svg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}
.lock-user {
  font-size: 17px;
  font-weight: 600;
}
.lock-entry {
  width: 260px;
  text-align: center;
}
.lock-hint {
  font-size: 13px;
  color: #ffb4a8;
}
.lock-btn {
  width: 260px;
  justify-content: center;
}
.lock-tip {
  font-size: 12px;
}
.session-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-session);
  display: grid;
  place-items: center;
  background: #0d0b0c;
  opacity: 0;
  transition: opacity 420ms ease;
}
.session-overlay.show {
  opacity: 1;
}
.shutdown-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  color: #ffffff;
}
.shutdown-logo svg {
  width: 84px;
  height: 84px;
}
.shutdown-dots {
  display: flex;
  gap: 9px;
}
.shutdown-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.25;
  animation: bootdot 1.4s infinite ease-in-out;
}
.shutdown-dots i:nth-child(2) {
  animation-delay: 0.16s;
}
.shutdown-dots i:nth-child(3) {
  animation-delay: 0.32s;
}
.shutdown-dots i:nth-child(4) {
  animation-delay: 0.48s;
}
.shutdown-dots i:nth-child(5) {
  animation-delay: 0.64s;
}
@keyframes bootdot {
  0%, 70%, 100% {
    opacity: 0.22;
    transform: scale(0.72);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
}
.shutdown-label {
  font-size: 15px;
  opacity: 0.8;
}
.poweroff-screen {
  background: #000000;
}
.power-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  animation: pulse-hint 3s ease-in-out infinite;
}
@keyframes pulse-hint {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.8;
  }
}
.suspend-screen {
  background: #000000;
  background-size: cover;
  background-position: center;
}
.suspend-screen.show {
  background-color: #050505;
}
.suspend-inner {
  display: grid;
  place-items: center;
}
.suspend-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.2;
  animation: suspend-pulse 2.4s ease-in-out infinite;
}
@keyframes suspend-pulse {
  0%, 100% {
    opacity: 0.12;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}
.badge.accent {
  background: var(--accent);
  color: var(--fg-on-accent);
}
.row-buttons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.level-meter {
  display: inline-block;
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 18%, transparent);
  overflow: hidden;
}
.level-meter i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.connect-spinner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-group.connect-status {
  margin: 0 0 12px;
}
.about-value {
  max-width: 320px;
  text-align: right;
}
.osd-window .props-preview {
  align-self: center;
}
@media (max-width: 760px) {
  :root {
    --dock-w: 60px;
    --dock-icon: 40px;
    --topbar-h: 30px;
  }
  .dock {
    left: 4px;
    padding: 7px 5px;
  }
  .topbar {
    padding: 0 4px;
    font-size: 12.5px;
  }
  .tb-appname {
    max-width: 110px;
  }
  .qs-popover {
    width: min(348px, calc(100vw - 16px));
  }
  .cal-popover {
    width: min(400px, calc(100vw - 16px));
  }
  .ag-page {
    padding: 10px 3vw;
    gap: 4px 2px;
  }
  .ag-icon,
  .ag-icon svg {
    width: 52px;
    height: 52px;
  }
  .ag-label {
    font-size: 11.5px;
  }
  .ov-ws {
    width: 116px;
    height: 72px;
  }
  .ov-ws-add {
    height: 72px;
    width: 36px;
  }
  .ov-dash {
    gap: 7px;
    padding: 10px 6px;
  }
  .ov-dash-item {
    width: 46px;
    height: 46px;
  }
  .ov-dash-sep {
    display: none;
  }
  .ov-dash-icon,
  .ov-dash-icon svg {
    width: 36px;
    height: 36px;
  }
  .lock-entry,
  .lock-btn {
    width: min(260px, 70vw);
  }
  .fp-sidebar {
    display: none;
  }
}
@media (max-height: 560px) {
  .ag-page {
    grid-template-columns: repeat(var(--ag-cols, 5), 1fr);
  }
  .ag-icon,
  .ag-icon svg {
    width: 44px;
    height: 44px;
  }
}

/* src/styles/apps/files.css */
.app-files {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.files-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.files-sidebar {
  width: 196px;
  flex: none;
  padding: 8px 6px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--divider);
  overflow-y: auto;
}
.files-place {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast);
}
.files-place:hover {
  background: var(--hover);
}
.files-place.active {
  background: var(--selected-bg);
  font-weight: 600;
}
.files-place.drop-target {
  background: var(--selected);
  color: var(--selected-fg);
}
.place-icon,
.place-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: none;
}
.files-sidebar-sep {
  height: 1px;
  margin: 8px 10px;
  background: var(--divider);
}
.files-main {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-view);
}
.files-pathbar {
  display: flex;
  align-items: center;
  gap: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.files-pathbar::-webkit-scrollbar {
  display: none;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 190px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.crumb:hover {
  background: var(--hover);
}
.crumb.static {
  cursor: default;
}
.files-path-entry {
  max-width: 520px;
}
.files-nav .icon-btn:disabled {
  opacity: 0.3;
}
.files-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--divider);
  background: var(--bg-secondary);
}
.files-search-input {
  flex: 1;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  outline: none;
}
.files-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
}
.files-list.loading {
  opacity: 0.5;
}
.files-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.files-list-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 100px 160px 130px;
  gap: 10px;
  padding: 7px 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--divider);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-dim);
}
.files-list-header button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.files-list-header button:hover {
  background: var(--hover);
}
.flh-size,
.flh-type,
.flh-modified {
  text-align: right;
}
.files-list-header .flh-size,
.files-list-header .flh-type,
.files-list-header .flh-modified {
  justify-content: flex-end;
}
.files-row {
  display: grid;
  grid-template-columns: 1fr 100px 160px 130px;
  gap: 10px;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: default;
  font-size: 13.5px;
}
.files-row:hover {
  background: var(--hover);
}
.files-row.selected {
  background: var(--selected);
  color: var(--selected-fg);
}
.files-row.selected .dim,
.files-row.selected .fr-orig {
  color: rgba(255, 255, 255, 0.78);
}
.files-row.drop-target {
  background: var(--selected-bg);
  outline: 2px dashed var(--accent);
}
.files-row.dragging {
  opacity: 0.45;
}
.files-row .fr-icon,
.files-row .fr-icon svg {
  width: 22px;
  height: 22px;
  grid-column: 1;
  margin-right: -22px;
  position: relative;
  z-index: 1;
}
.files-row .fr-name {
  grid-column: 1;
  padding-left: 30px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.fr-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-orig {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-size,
.fr-type,
.fr-modified {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.files-row .dim {
  color: var(--fg-dim);
}
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 6px;
  padding: 12px;
}
.files-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 6px;
  border-radius: 10px;
  cursor: default;
  text-align: center;
}
.files-tile:hover {
  background: var(--hover);
}
.files-tile.selected {
  background: var(--selected);
  color: var(--selected-fg);
}
.ft-thumb,
.ft-thumb svg {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}
.ft-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--thumb-border);
}
.ft-label {
  font-size: 12.5px;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.files-marquee {
  position: absolute;
  border: 1px solid var(--accent);
  background: var(--accent-softer);
  border-radius: 3px;
  pointer-events: none;
  z-index: 5;
}
.files-empty-state,
.files-list .empty-state {
  padding: 60px 20px;
}
.files-empty-state {
  flex: 1;
  display: grid;
  place-items: center;
}
[data-zoom=small] .files-tile .ft-thumb,
[data-zoom=small] .files-tile .ft-thumb svg {
  width: 44px;
  height: 44px;
}
[data-zoom=large] .files-tile .ft-thumb,
[data-zoom=large] .files-tile .ft-thumb svg {
  width: 88px;
  height: 88px;
}
.files-empty-trash {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .files-sidebar {
    display: none;
  }
  .files-list-header {
    grid-template-columns: 1fr 74px;
  }
  .files-row {
    grid-template-columns: 1fr 74px;
  }
  .files-list-header .flh-type,
  .files-list-header .flh-modified,
  .files-row .fr-type,
  .files-row .fr-modified {
    display: none;
  }
}

/* src/styles/apps/terminal.css */
.app-terminal {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #241320;
}
.term-stack {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.term-session {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 12px 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.42;
  color: #e8e0e6;
  cursor: text;
  overflow: hidden;
}
.term-session[hidden] {
  display: none;
}
.term-output {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-user-select: text;
  user-select: text;
  scrollbar-width: thin;
}
.term-line {
  min-height: 1.42em;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-echo {
  opacity: 0.95;
}
.term-inputline {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  flex: none;
  padding-top: 1px;
}
.term-prompt {
  white-space: pre;
  flex: none;
}
.term-buffer {
  white-space: pre-wrap;
  word-break: break-all;
}
.term-caret {
  display: inline-block;
  width: 0.62em;
  height: 1.05em;
  margin-bottom: -0.16em;
  background: #e8e0e6;
  animation: term-blink 1.15s step-end infinite;
  vertical-align: text-bottom;
}
.term-session:not(.focused) .term-caret {
  animation: none;
  opacity: 0.35;
}
@keyframes term-blink {
  0%, 60% {
    opacity: 1;
  }
  61%, 100% {
    opacity: 0;
  }
}
.term-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: transparent;
  caret-color: transparent;
  outline: none;
}
.term-output .t-dir {
  color: #7fb3ff;
  font-weight: 700;
}
.term-output .t-exec {
  color: #8ce99a;
  font-weight: 700;
}
.term-output .t-img {
  color: #e599f7;
}
.term-output .t-arc {
  color: #ffa8a8;
}
.term-output .t-link {
  color: #74c0fc;
  text-decoration: underline;
}
.term-output .t-bold {
  font-weight: 700;
}
.term-output .t-dim {
  color: #a89aa6;
}
.term-output .t-red {
  color: #ff8787;
}
.term-output .t-green {
  color: #8ce99a;
}
.term-output .t-yellow {
  color: #ffd43b;
}
.term-output .t-blue {
  color: #74c0fc;
}
.term-output .t-magenta {
  color: #e599f7;
}
.term-output .t-cyan {
  color: #66d9e8;
}
.term-output .t-orange {
  color: #ffa94d;
}

/* src/styles/apps/texteditor.css */
.app-texteditor {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-view);
}
.te-stack {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.te-session {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.te-session[hidden] {
  display: none;
}
.te-editor {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background: var(--bg-view);
}
.te-gutter {
  flex: none;
  width: 52px;
  padding: 8px 8px 8px 0;
  overflow: hidden;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-faint);
  background: var(--bg-inset);
  border-right: 1px solid var(--divider);
  -webkit-user-select: none;
  user-select: none;
}
.te-lineno {
  height: 20px;
}
.te-textarea {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border: 0;
  resize: none;
  outline: none;
  background: var(--bg-view);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  tab-size: 4;
  white-space: pre;
  overflow: auto;
  caret-color: var(--accent);
}
.te-textarea[wrap=soft] {
  white-space: pre-wrap;
  word-break: break-word;
}
.te-status {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 12px;
  border-top: 1px solid var(--divider);
  background: var(--bg-secondary);
  font-size: 12px;
  color: var(--fg-dim);
}
.te-findbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--divider);
}
.te-find-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.te-find-row .entry {
  flex: 1;
  max-width: 320px;
  min-height: 30px;
  font-size: 13.5px;
}
.te-find-count {
  min-width: 64px;
  font-size: 12.5px;
}
.te-start {
  display: grid;
  place-items: center;
  padding: 30px;
}
.te-start-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 420px;
}
.te-start-logo {
  color: var(--fg-faint);
}
.te-start-title {
  font-size: 20px;
  font-weight: 700;
}
.te-start-recent {
  width: 100%;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.te-start-recent-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.te-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
}
.te-recent-item:hover {
  background: var(--hover);
}

/* src/styles/apps/settings.css */
.app-settings {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.settings-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.settings-sidebar {
  width: 218px;
  flex: none;
  padding: 10px 8px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--divider);
  overflow-y: auto;
}
.settings-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 2px;
}
.settings-nav:hover {
  background: var(--hover);
}
.settings-nav.active {
  background: var(--selected);
  color: var(--selected-fg);
  font-weight: 600;
}
.settings-search {
  margin-bottom: 8px;
}
.settings-panel {
  flex: 1;
  min-width: 0;
  padding: 18px 24px 40px;
  overflow-y: auto;
  background: var(--bg-view);
}
.settings-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.settings-title:hover {
  background: var(--hover);
}
.settings-h1 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}
.settings-group {
  margin-bottom: 22px;
}
.settings-group-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--fg-dim);
  margin: 0 4px 8px;
}
.settings-group .row-group {
  background: var(--bg-card);
}
.settings-group .row-title {
  font-size: 14.5px;
}
.settings-select {
  gap: 8px;
}
.settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.accent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 8px 14px 14px;
}
.accent-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.2);
  background: var(--accent);
  transition: transform var(--t-fast);
}
.accent-swatch[data-accent=orange] {
  background: #e95420;
}
.accent-swatch[data-accent=bark] {
  background: #787859;
}
.accent-swatch[data-accent=sage] {
  background: #657b69;
}
.accent-swatch[data-accent=olive] {
  background: #4b6e4b;
}
.accent-swatch[data-accent=viridian] {
  background: #2c7d71;
}
.accent-swatch[data-accent=prussian] {
  background: #308280;
}
.accent-swatch[data-accent=blue] {
  background: #0073e5;
}
.accent-swatch[data-accent=purple] {
  background: #7764d8;
}
.accent-swatch[data-accent=magenta] {
  background: #b34cb3;
}
.accent-swatch[data-accent=red] {
  background: #c7162b;
}
.accent-swatch:hover {
  transform: scale(1.1);
}
.accent-swatch.active {
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--accent);
}
.style-toggle {
  display: flex;
  gap: 10px;
}
.style-option {
  width: 78px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.style-option.active {
  border-color: var(--accent);
}
.style-preview {
  display: block;
  width: 100%;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.style-preview.light {
  background: #ffffff;
}
.style-preview.dark {
  background: #242424;
}
.sp-title {
  display: block;
  height: 12px;
  margin: 5px 5px 3px;
  border-radius: 3px;
}
.style-preview.light .sp-title {
  background: #f6f5f4;
  border: 1px solid #e2e0de;
}
.style-preview.dark .sp-title {
  background: #303030;
}
.sp-body {
  display: block;
  height: 22px;
  margin: 0 5px 5px;
  border-radius: 3px;
}
.style-preview.light .sp-body {
  background: #fbfbfb;
  border: 1px solid #eee;
}
.style-preview.dark .sp-body {
  background: #2a2a2a;
}
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 4px 14px;
}
.wallpaper-thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  aspect-ratio: 16 / 10;
}
.wallpaper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wallpaper-thumb.active {
  border-color: var(--accent);
}
.wp-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.62),
      transparent);
}
.battery-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}
.battery-pct {
  font-size: 30px;
  font-weight: 700;
}
.display-preview {
  display: grid;
  place-items: center;
  padding: 24px 0 30px;
}
.display-monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.display-screen {
  width: 320px;
  height: 190px;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      #2c0a21,
      #6a2a52 60%,
      #e95420);
  border: 8px solid #23201f;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.display-label {
  font-size: 13px;
}
.display-stand {
  width: 96px;
  height: 36px;
  background:
    linear-gradient(
      to bottom,
      #3a3634,
      transparent);
  clip-path: polygon(30% 0, 70% 0, 84% 100%, 16% 100%);
}
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 26px;
}
.about-logo svg {
  width: 88px;
  height: 88px;
}
.about-title {
  font-size: 21px;
  font-weight: 700;
}
.user-avatar.big,
.user-avatar.big svg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.sound-slider {
  width: 200px;
}
.spinner.small {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

/* src/styles/apps/calculator.css */
.app-calculator {
  display: flex;
  flex-direction: row;
  height: 100%;
  min-height: 0;
  background: var(--bg-window);
}
.calc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.calc-sub {
  flex: none;
  min-height: 22px;
  padding: 6px 16px 0;
  text-align: right;
  font-size: 12.5px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}
.calc-display {
  flex: none;
  padding: 4px 16px 12px;
  text-align: right;
}
.calc-value {
  font-size: 34px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  line-height: 1.15;
}
.calc-value.error {
  color: var(--red);
}
.calc-pad {
  flex: 1;
  min-height: 0;
  padding: 8px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-grid {
  display: grid;
  gap: 7px;
  flex: 1;
}
.calc-grid.basic {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
}
.calc-grid.adv {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  flex: 1.1;
}
.calc-grid.prog {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
}
.calc-btn {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  color: inherit;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  min-height: 40px;
}
.calc-btn:hover {
  background: var(--hover);
}
.calc-btn:active {
  background: var(--active);
  transform: scale(0.97);
}
.calc-btn.fn {
  background: color-mix(in srgb, var(--fg) 3%, transparent);
  color: var(--fg-dim);
}
.calc-btn.fn.small {
  font-size: 14px;
}
.calc-btn.op {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-text);
  font-weight: 700;
}
.calc-btn.eq {
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 70%, #000 30%);
  color: var(--fg-on-accent);
  font-weight: 700;
}
.calc-base {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: right;
}
.calc-base:hover {
  background: var(--hover);
}
.calc-base.active {
  background: var(--selected-bg);
  border-color: var(--accent);
}
.base-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-faint);
}
.base-value {
  font-family: var(--font-mono);
  font-size: 15px;
  word-break: break-all;
}
.calc-bases {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-history {
  width: 260px;
  flex: none;
  border-left: 1px solid var(--divider);
  background: var(--bg-secondary);
  padding: 12px;
  overflow-y: auto;
}
.app-calculator.with-history .calc-history {
  display: block;
}
.calc-history:empty::after {
  content: "No history yet";
  color: var(--fg-faint);
  font-size: 13px;
}
.calc-history-entry {
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  text-align: right;
}
.calc-history-entry:hover {
  background: var(--hover);
}
.calc-history-expr {
  font-size: 12px;
  color: var(--fg-dim);
}
.calc-history-result {
  font-size: 16px;
  font-weight: 600;
}

/* src/styles/apps/browser.css */
.app-browser {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-view);
}
.br-stack {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.br-session {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.br-session[hidden] {
  display: none;
}
.br-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--divider);
}
.br-urlwrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.br-url {
  border-radius: 999px;
  padding-inline: 14px;
  font-size: 13.5px;
  min-height: 32px;
}
.br-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  overflow: hidden;
}
.br-progress.animate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: br-load 0.8s var(--ease-out) infinite;
}
@keyframes br-load {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  60% {
    transform: scaleX(0.85);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
.br-star.active {
  color: #f5b301;
}
.br-page {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #ffffff;
  color: #1c1c1c;
}
[data-theme=dark] .br-page {
  background: #1b1b1b;
  color: #e8e8e8;
}
.br-page a {
  color: #0b57d0;
  cursor: pointer;
  text-decoration: none;
}
[data-theme=dark] .br-page a {
  color: #8ab4f8;
}
.br-page a:hover {
  text-decoration: underline;
}
.br-home {
  min-height: 100%;
  display: grid;
  place-items: start center;
  padding: 60px 24px;
  background:
    linear-gradient(
      180deg,
      #f8f6f5,
      #ffffff 60%);
}
[data-theme=dark] .br-home {
  background:
    linear-gradient(
      180deg,
      #241f22,
      #1b1b1b 60%);
}
.br-home-inner {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.br-home-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.br-home-logo svg {
  width: 44px;
  height: 44px;
}
.br-home-logo h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
}
.br-home-searchwrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.br-home-search {
  border: 0;
  background: none;
  box-shadow: none;
  flex: 1;
}
.br-home-search:focus {
  box-shadow: none;
}
.br-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 18px;
}
.br-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg-card);
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.br-shortcut:hover {
  background: var(--hover);
}
.br-sq {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.br-home-section {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.br-home-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.br-home-link {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
}
.br-home-link:hover {
  background: var(--hover);
}
.br-site {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.br-site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 28px;
  background: #2c001e;
  color: #fff;
  font-size: 14px;
}
.br-site-brand {
  font-weight: 700;
  font-size: 16px;
}
.br-site-nav a {
  color: rgba(255, 255, 255, 0.85) !important;
}
.br-site-body {
  flex: 1;
  padding: 30px 28px 40px;
}
.br-site-footer {
  padding: 16px 28px;
  font-size: 12.5px;
  color: #777;
  border-top: 1px solid #e5e5e5;
}
[data-theme=dark] .br-site-footer {
  border-color: #333;
  color: #999;
}
.ubuntu-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      #300a24,
      #77216f 60%,
      #e95420);
  color: #fff;
  margin-bottom: 30px;
}
.ubuntu-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  opacity: 0.85;
}
.ubuntu-hero h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.ubuntu-hero p {
  opacity: 0.9;
}
.ubuntu-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.ubuntu-hero-art {
  display: grid;
  place-items: center;
}
.ubuntu-orbit svg {
  width: 180px;
  height: 180px;
  opacity: 0.95;
}
.br-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.br-btn.primary {
  background: #fff;
  color: #2c001e;
  border-color: #fff;
}
.ubuntu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 14px 0 26px;
}
.ubuntu-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e0dd;
  background: #fff;
}
[data-theme=dark] .ubuntu-card {
  background: #242424;
  border-color: #3a3a3a;
}
.ubuntu-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
}
.ubuntu-links {
  padding-left: 20px;
}
.wiki-header h1 {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 30px;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.wiki-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  margin-top: 16px;
}
.wiki-content p {
  line-height: 1.6;
}
.wiki-infobox {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  align-self: start;
}
[data-theme=dark] .wiki-infobox {
  background: #262626;
  border-color: #444;
}
.wiki-infobox-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}
.wiki-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid #eaecf0;
}
[data-theme=dark] .wiki-row {
  border-color: #333;
}
.wiki-key {
  font-weight: 700;
  width: 108px;
  flex: none;
}
.wiki-table {
  border-collapse: collapse;
  margin: 12px 0;
}
.wiki-table th,
.wiki-table td {
  border: 1px solid #a2a9b1;
  padding: 5px 12px;
  font-size: 13.5px;
}
.docs {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}
.docs-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.docs-side-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.docs-side a {
  padding: 6px 10px;
  border-radius: 7px;
}
.docs-side a.active {
  background: var(--accent-softer);
  font-weight: 600;
}
.br-pre {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-x: auto;
}
[data-theme=dark] .br-pre {
  background: #262626;
  border-color: #3a3a3a;
}
.pkg-search {
  display: flex;
  gap: 10px;
  margin: 14px 0 24px;
}
.pkg-search .entry {
  max-width: 320px;
}
.hn-list {
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hn-title {
  font-size: 15px;
  font-weight: 500;
}
.hn-url {
  font-size: 12px;
}
.hn-header {
  display: flex;
  gap: 14px;
  align-items: baseline;
  background: #ff6600;
  color: #000;
  padding: 8px 14px;
  margin: -30px -28px 20px;
}
.google-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e5e5;
}
.google-logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4285f4;
}
.google-input {
  max-width: 460px;
  border-radius: 999px;
}
.google-meta {
  padding: 10px 0;
}
.google-results {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
}
.google-title {
  font-size: 18px;
}
.google-url {
  font-size: 13px;
  margin: 2px 0 4px;
}
.google-desc {
  line-height: 1.5;
}
.br-file {
  padding: 24px;
}
.br-error {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 50px 24px;
  text-align: center;
}
.br-error-art {
  color: var(--fg-faint);
}
.br-error h1 {
  font-size: 21px;
  margin: 0;
}
.br-error-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.br-findbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--divider);
}
.br-findbar .entry {
  max-width: 300px;
  min-height: 30px;
}

/* src/styles/apps/software.css */
.app-software {
  display: flex;
  height: 100%;
  min-height: 0;
}
.sw-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.sw-sidebar {
  width: 208px;
  flex: none;
  padding: 10px 8px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--divider);
  overflow-y: auto;
}
.sw-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.sw-nav:hover {
  background: var(--hover);
}
.sw-nav.active {
  background: var(--selected);
  color: var(--selected-fg);
  font-weight: 600;
}
.sw-side-sep {
  height: 1px;
  margin: 10px 8px;
  background: var(--divider);
}
.sw-side-label {
  padding: 4px 11px 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
}
.sw-search {
  width: min(360px, 44vw);
  min-height: 32px;
  font-size: 13.5px;
}
.sw-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 18px 24px 40px;
  background: var(--bg-view);
}
.sw-h1 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}
.sw-h2 {
  margin: 26px 0 12px;
  font-size: 17px;
  font-weight: 700;
}
.sw-meta {
  margin: -10px 0 16px;
}
.sw-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 88%, #fff 12%),
      color-mix(in srgb, var(--accent) 55%, #300a24 45%));
  color: #fff;
  cursor: pointer;
  margin-bottom: 8px;
}
.sw-hero:hover {
  filter: brightness(1.05);
}
.sw-hero-art svg {
  width: 84px;
  height: 84px;
}
.sw-hero-text h2 {
  margin: 4px 0 6px;
  font-size: 24px;
}
.sw-hero-text p {
  margin: 0 0 14px;
  opacity: 0.92;
}
.sw-hero-eyebrow {
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.sw-hero .br-btn.primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.sw-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg-card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.sw-card:hover {
  background: var(--hover);
  border-color: var(--border);
}
.sw-card-icon,
.sw-card-icon svg {
  width: 48px;
  height: 48px;
  flex: none;
  display: block;
}
.sw-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sw-card-name {
  font-weight: 700;
  font-size: 14.5px;
}
.sw-card-sum {
  font-size: 12.5px;
  color: var(--fg-dim);
}
.sw-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.sw-stars {
  display: inline-flex;
  gap: 1px;
  color: #f5b301;
}
.sw-stars svg {
  width: 13px;
  height: 13px;
}
.sw-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  margin-bottom: 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.sw-back:hover {
  background: var(--hover);
}
.sw-apphero {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.sw-apphero-icon,
.sw-apphero-icon svg {
  width: 96px;
  height: 96px;
  flex: none;
}
.sw-apphero-text h1 {
  margin: 0 0 4px;
  font-size: 26px;
}
.sw-apphero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
}
.sw-apphero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sw-install {
  min-width: 148px;
  justify-content: center;
  gap: 8px;
}
.sw-desc {
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.sw-shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 22px;
}
.sw-shot {
  flex: none;
  width: 340px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.sw-shot-svg svg {
  display: block;
  width: 100%;
  height: auto;
}
.sw-details {
  max-width: 720px;
  margin-bottom: 22px;
}
.sw-details h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
}
.sw-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 13.5px;
}
.sw-review {
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}
.sw-review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.sw-installed-row {
  margin-bottom: 6px;
}
.sw-update-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 600;
}
.sw-update-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--fg-dim);
}
.sw-danger-zone {
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}
.btn.flat.danger {
  color: var(--red);
}

/* src/styles/apps/sysmonitor.css */
.app-sysmonitor {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-view);
}
.sm-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sm-processes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}
.sm-search {
  max-width: 320px;
  min-height: 32px;
}
.sm-table,
.sm-fs {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.sm-thead {
  display: flex;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--divider);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-dim);
}
.sm-th {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.sm-th:hover {
  background: var(--hover);
}
.sm-th.active {
  color: var(--fg);
}
.sm-tbody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.sm-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--divider);
}
.sm-row:hover {
  background: var(--hover);
}
.sm-row.selected {
  background: var(--selected);
  color: var(--selected-fg);
}
.sm-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.col-name {
  flex: 1;
}
.col-user {
  width: 110px;
  flex: none;
}
.col-num {
  width: 130px;
  flex: none;
  justify-content: flex-end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sm-proc-icon,
.sm-proc-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: none;
}
.sm-proc-icon.generic {
  color: var(--fg-faint);
}
.sm-mem-bar,
.sm-fs-bar {
  display: inline-block;
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 15%, transparent);
  overflow: hidden;
  margin-left: 6px;
}
.sm-mem-bar i,
.sm-fs-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.sm-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
}
.sm-card {
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: var(--bg-card);
}
.sm-card h3 {
  margin: 0;
  font-size: 14.5px;
}
.sm-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sm-card-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sm-graph {
  width: 100%;
  height: 120px;
  display: block;
}
.sm-card-rows {
  margin-top: 10px;
}
.sm-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 13px;
}
.sm-summary-grid {
  display: flex;
  gap: 26px;
  margin-top: 12px;
}
.sm-summary-num {
  font-size: 22px;
  font-weight: 700;
}
.sm-fs {
  overflow-y: auto;
  padding-bottom: 20px;
}
.sm-fs .sm-thead .sm-th {
  flex: 1;
}
.fs-row .sm-cell {
  flex: 1;
}
.sm-fs-usage {
  gap: 8px;
}

/* src/styles/apps/clocks.css */
.app-clocks {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-view);
}
.clk-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 30px;
}
.clk-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.clk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}
.clk-row-main {
  flex: 1;
  min-width: 0;
}
.clk-city {
  font-size: 16px;
  font-weight: 600;
}
.clk-time {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.clk-remove {
  opacity: 0;
}
.clk-row:hover .clk-remove {
  opacity: 1;
}
.clk-alarm-time {
  font-size: 26px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.clk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.clk-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-dim);
}
.clk-days {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.clk-day {
  padding: 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.clk-day.active {
  background: var(--accent);
  color: var(--fg-on-accent);
  border-color: var(--accent);
}
.clk-city-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
}
.clk-city-list {
  max-height: 260px;
  overflow-y: auto;
}
.clk-big-time {
  font-size: 56px;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 20px 0 10px;
}
.clk-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.clk-laps {
  max-height: 240px;
  overflow-y: auto;
}
.clk-lap-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--divider);
  font-variant-numeric: tabular-nums;
}
.clk-stopwatch,
.clk-timer {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.clk-timer-display {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px 0;
}
.clk-ring {
  width: 220px;
  height: 220px;
}
.clk-timer-time {
  position: absolute;
  font-size: 40px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.clk-presets {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.clk-preset {
  padding: 7px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.clk-preset:hover {
  background: var(--hover);
}
.clk-preset.active {
  background: var(--accent);
  color: var(--fg-on-accent);
  border-color: var(--accent);
}
.alarm-ringing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;
}
.alarm-ring-icon {
  color: var(--accent);
  animation: alarm-shake 0.6s ease infinite;
}
.alarm-ring-time {
  font-size: 34px;
  font-weight: 300;
}
@keyframes alarm-shake {
  0%, 100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-12deg);
  }
  75% {
    transform: rotate(12deg);
  }
}

/* src/styles/apps/weather.css */
.app-weather {
  display: flex;
  height: 100%;
  min-height: 0;
  background: var(--bg-view);
}
.wx-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.wx-side {
  width: 200px;
  flex: none;
  padding: 12px 8px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--divider);
  overflow-y: auto;
}
.wx-side-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  padding: 4px 10px 8px;
}
.wx-place {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.wx-place:hover {
  background: var(--hover);
}
.wx-place.active {
  background: var(--selected);
  color: var(--selected-fg);
  font-weight: 600;
}
.wx-place-temp {
  font-variant-numeric: tabular-nums;
}
.wx-add {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 8px;
}
.wx-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 18px 22px 30px;
}
.wx-now {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      #3f8fd8,
      #1b4f8a);
  color: #fff;
}
.wx-now-icon svg {
  width: 96px;
  height: 96px;
}
.wx-now-temp {
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
}
.wx-now-cond {
  font-size: 17px;
  font-weight: 600;
  margin: 4px 0 6px;
}
.wx-now-meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
.wx-h3 {
  margin: 24px 0 10px;
  font-size: 15.5px;
  font-weight: 700;
}
.wx-hours {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.wx-hour {
  flex: none;
  width: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.wx-hour-icon svg {
  width: 34px;
  height: 34px;
}
.wx-hour-temp {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wx-days {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wx-day {
  display: grid;
  grid-template-columns: 74px 40px 40px 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
}
.wx-day:hover {
  background: var(--hover);
}
.wx-day-name {
  font-weight: 600;
  font-size: 13.5px;
}
.wx-day-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.wx-day-bar {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 14%, transparent);
}
.wx-day-bar i {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      #4a9ad4,
      #f5b301,
      #e95420);
}
.wx-day-high {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wx-day-low {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* src/styles/apps/help.css */
.app-help {
  display: flex;
  height: 100%;
  min-height: 0;
  background: var(--bg-view);
}
.help-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.help-side {
  width: 220px;
  flex: none;
  padding: 10px 8px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--divider);
  overflow-y: auto;
}
.help-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.help-nav:hover {
  background: var(--hover);
}
.help-nav.active {
  background: var(--selected);
  color: var(--selected-fg);
  font-weight: 600;
}
.help-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 24px 34px 40px;
}
.help-search {
  width: min(320px, 40vw);
  min-height: 32px;
  font-size: 13.5px;
}
.help-article {
  max-width: 720px;
}
.help-breadcrumb {
  margin-bottom: 12px;
}
.help-article h2 {
  font-size: 22px;
  margin: 0 0 12px;
}
.help-article h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}
.help-article p,
.help-article li {
  line-height: 1.6;
}
.help-article code {
  background: var(--bg-inset);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.help-keys {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.help-keys td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--divider);
}
.help-keys td:last-child {
  text-align: right;
  white-space: nowrap;
}
.help-footer {
  display: flex;
  gap: 8px;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}

/* src/styles/apps/imageviewer.css */
.app-imageviewer {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #1a1a1a;
}
.iv-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.iv-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  background: #111111;
}
.iv-stage.panning {
  cursor: grabbing;
}
.iv-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.iv-image {
  max-width: none;
  max-height: none;
  flex: none;
  transform-origin: center center;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  -webkit-user-select: none;
  user-select: none;
  transition: width 120ms var(--ease-out), height 120ms var(--ease-out);
}
.iv-gallery {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: #232323;
  border-top: 1px solid #333;
}
.iv-thumb {
  flex: none;
  width: 76px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #2c2c2c;
  cursor: pointer;
}
.iv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.iv-thumb.active {
  border-color: var(--accent);
}
.iv-sidebar {
  width: 230px;
  flex: none;
  padding: 14px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--divider);
  overflow-y: auto;
}
.iv-sidebar-title {
  font-weight: 700;
  margin-bottom: 10px;
}
.iv-wallpaper-btn {
  width: 100%;
  margin-top: 14px;
}
.iv-sidebar .props-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 0;
  border-bottom: 1px solid var(--divider);
}
.iv-sidebar .props-key {
  width: auto;
  font-size: 12px;
}

/* src/styles/apps/misc.css */
.app-mines {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-view);
  overflow: auto;
}
.mines-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
}
.mines-status {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}
.mines-counter {
  display: flex;
  align-items: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 15px;
  min-width: 74px;
}
.mines-face {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: var(--bg-secondary);
  font-size: 19px;
  cursor: pointer;
  line-height: 1;
}
.mines-face:hover {
  background: var(--hover);
}
.mines-board {
  display: grid;
  grid-template-columns: repeat(var(--cols, 9), 1fr);
  gap: 3px;
  padding: 8px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}
.mine-cell {
  width: clamp(26px, 4.4vw, 38px);
  height: clamp(26px, 4.4vw, 38px);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background:
    linear-gradient(
      to bottom,
      #d6d9de,
      #b9bfc7);
  color: #2b2f36;
  font-size: clamp(12px, 1.9vw, 16px);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast);
}
[data-theme=dark] .mine-cell {
  background:
    linear-gradient(
      to bottom,
      #5b6270,
      #454b57);
  color: #eef;
}
.mine-cell:hover {
  filter: brightness(1.08);
}
.mine-cell.revealed {
  background: var(--bg-inset);
  cursor: default;
}
[data-theme=dark] .mine-cell.revealed {
  background: #262626;
}
.mine-cell.mine {
  background: #e01b24;
  color: #fff;
}
.mine-cell.exploded {
  background: #ff6b6b;
}
.mine-cell.flagged {
  color: #d9480f;
}
.mine-cell.n1 {
  color: #1971c2;
}
.mine-cell.n2 {
  color: #2f9e44;
}
.mine-cell.n3 {
  color: #e03131;
}
.mine-cell.n4 {
  color: #6741d9;
}
.mine-cell.n5 {
  color: #c2255c;
}
.mine-cell.n6 {
  color: #0c8599;
}
.mine-cell.n7 {
  color: #495057;
}
.mine-cell.n8 {
  color: #862e9c;
}
.app-sudoku {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-view);
  overflow: auto;
}
.sdk-status {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(460px, 100%);
  font-size: 13px;
  color: var(--fg-dim);
}
.sdk-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: min(460px, 100%);
  aspect-ratio: 1;
  border: 2.5px solid var(--fg);
  border-radius: 8px;
  overflow: hidden;
  background: var(--border-soft);
  gap: 1px;
}
.sdk-cell {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--bg-card);
  color: var(--accent-text);
  font-size: clamp(16px, 3.4vw, 22px);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.sdk-cell.fixed {
  color: var(--fg);
  font-weight: 700;
  background: var(--bg-inset);
}
.sdk-cell:hover {
  background: var(--hover);
}
.sdk-cell.selected {
  background: var(--selected-bg);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 2;
}
.sdk-cell.conflict {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, transparent);
}
.sdk-cell.row-end {
  margin-bottom: 0;
}
.sdk-board {
  position: relative;
}
.sdk-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      transparent 33.1%,
      var(--fg) 33.1%,
      var(--fg) 33.6%,
      transparent 33.6%,
      transparent 66.1%,
      var(--fg) 66.1%,
      var(--fg) 66.6%,
      transparent 66.6%),
    linear-gradient(
      to bottom,
      transparent 33.1%,
      var(--fg) 33.1%,
      var(--fg) 33.6%,
      transparent 33.6%,
      transparent 66.1%,
      var(--fg) 66.1%,
      var(--fg) 66.6%,
      transparent 66.6%);
  opacity: 0.85;
}
.sdk-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 2px;
  position: absolute;
  inset: 0;
}
.sdk-notes i {
  font-size: 8px;
  font-style: normal;
  color: var(--fg-faint);
  display: grid;
  place-items: center;
}
.sdk-pad {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  width: min(460px, 100%);
}
.sdk-num,
.sdk-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px 0;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg-card);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.sdk-num:hover,
.sdk-tool:hover {
  background: var(--hover);
}
.sdk-num:disabled {
  opacity: 0.35;
}
.sdk-num-value {
  font-size: 17px;
  font-weight: 600;
}
.sdk-tool.active {
  background: var(--accent);
  color: var(--fg-on-accent);
  border-color: var(--accent);
}
.sdk-tool svg {
  width: 18px;
  height: 18px;
}
.sdk-board.paused {
  filter: blur(9px);
}
.app-chess {
  display: flex;
  height: 100%;
  min-height: 0;
  background: var(--bg-view);
}
.chess-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.chess-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
}
.chess-status {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  font-size: 13.5px;
  font-weight: 600;
}
.chess-turn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chess-turn-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 1px solid #888;
}
.chess-turn.b .chess-turn-dot {
  background: #2b2b2b;
  border-color: #000;
}
.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(520px, 100%);
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
  border: 3px solid #40342a;
}
.chess-square {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: clamp(22px, 5.2vw, 38px);
  line-height: 1;
}
.chess-square.light {
  background: #f0d9b5;
}
.chess-square.dark {
  background: #b58863;
}
.chess-square.selected {
  box-shadow: inset 0 0 0 3px rgba(233, 84, 32, 0.9);
}
.chess-square.last-move {
  background: #f7e39b;
}
[data-theme=dark] .chess-square.light {
  background: #cbb393;
}
[data-theme=dark] .chess-square.dark {
  background: #96795c;
}
.chess-piece {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
  -webkit-user-select: none;
  user-select: none;
}
.chess-piece.w {
  color: #ffffff;
  text-shadow: 0 0 1px #444, 0 1px 2px rgba(0, 0, 0, 0.4);
}
.chess-piece.b {
  color: #1b1b1b;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
}
.chess-dot {
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: rgba(35, 35, 35, 0.35);
}
.chess-rank,
.chess-file {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
}
.chess-rank {
  top: 2px;
  left: 3px;
}
.chess-file {
  bottom: 1px;
  right: 3px;
}
.chess-captured {
  display: flex;
  gap: 20px;
  width: min(520px, 100%);
  font-size: 13px;
  min-height: 22px;
}
.chess-piece.small {
  font-size: 17px;
  margin-right: -4px;
}
.chess-moves {
  width: 220px;
  flex: none;
  border-left: 1px solid var(--divider);
  background: var(--bg-secondary);
  padding: 12px;
  overflow-y: auto;
}
.chess-moves-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.chess-move-row {
  display: flex;
  gap: 12px;
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.chess-move-row:nth-child(odd) {
  background: var(--hover);
}
.stub-app {
  display: flex;
  height: 100%;
  min-height: 0;
  background: var(--bg-view);
  color: var(--fg);
}
.stub-side {
  width: 210px;
  flex: none;
  padding: 12px 10px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--divider);
}
.stub-side-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13.5px;
}
.stub-side-item.active {
  background: var(--selected-bg);
  font-weight: 600;
}
.stub-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.stub-banner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--divider);
}
.stub-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
}
.stub-toolbar {
  display: flex;
  gap: 18px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--divider);
  background: var(--bg-secondary);
  font-size: 13.5px;
}
.stub-page {
  margin: 24px auto;
  width: min(620px, 90%);
  padding: 46px 54px;
  background: #ffffff;
  color: #222;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.22);
  line-height: 1.65;
}
.stub-page h1 {
  margin-top: 0;
  font-size: 26px;
}
.stub-app.media {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.stub-media-art {
  width: min(420px, 70%);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      #5b2a86,
      #c05b9c);
}
.stub-media-art.music {
  background:
    linear-gradient(
      135deg,
      #ff9a3c,
      #c34109);
}
.stub-media-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stub-transport {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.icon-btn.big {
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: var(--fg-on-accent);
}
.stub-app.disks {
  gap: 0;
}
.stub-disks-list {
  width: 260px;
  flex: none;
  border-right: 1px solid var(--divider);
  padding: 10px;
  background: var(--bg-sidebar);
}
.stub-disk {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
}
.stub-disk.active {
  background: var(--selected-bg);
}
.stub-disks-main {
  flex: 1;
  padding: 24px;
}
.disk-usage-bar {
  height: 22px;
  border-radius: 999px;
  background: var(--bg-inset);
  overflow: hidden;
  margin: 14px 0 8px;
  border: 1px solid var(--border-soft);
}
.disk-usage-bar i {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      to right,
      var(--accent),
      color-mix(in srgb, var(--accent) 60%, #000 40%));
}

/* src/styles/app.css */
