/*
  Circuit Princess OS — shared foundations and desktop shell

  Ownership: global.css is the canonical home for reusable OS-level roles:
  window chrome, shared surfaces, borders, text, focus, and spacing. Keep
  program-specific content in programs.css and desktop widgets in widgets.css.

  Theme-specific skins remain in their theme bundles. These base declarations
  define the shared desktop model; keep program interiors in programs.css and
  viewport-specific overrides in mobile.css / mini.css.
*/

/* Global desktop effects and personalization affordances. */
.desktop[data-wallpaper=stars] {
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle, #ff76bf 0 1px, transparent 1.5px);
  background-position: 0 0, 17px 23px;
  background-size: 43px 43px, 61px 61px;
}
.desktop[data-wallpaper=circuit] {
  background-image:
    linear-gradient(90deg, #ffffff12 1px, transparent 1px),
    linear-gradient(#ffffff12 1px, transparent 1px),
    radial-gradient(circle, var(--user-accent) 0 2px, transparent 3px);
  background-size: 32px 32px, 32px 32px, 64px 64px;
}
.desktop[data-wallpaper=tartan] {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 18px, #ffffff13 18px 22px),
    repeating-linear-gradient(90deg, transparent 0 24px, var(--user-accent) 24px 27px);
}
.desktop[data-wallpaper=custom] { background-color: var(--user-desktop); }

body[data-cursor=pink],
body[data-cursor=pink] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M2 2v17l5-5 4 8 4-2-4-8h7z' fill='%23ff4fa7' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 2 2, auto;
}
body[data-cursor=torch],
body[data-cursor=torch] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='m12 1 5 7-3 4-2-3-2 3-3-4z' fill='%23ff9d2e' stroke='%23000'/%3E%3Cpath d='M10 10h4l-1 12h-2z' fill='%23855b35' stroke='%23000'/%3E%3C/svg%3E") 12 2, auto;
}
body[data-cursor=crosshair],
body[data-cursor=crosshair] * { cursor: crosshair; }
body[data-cursor=my-melody],
body[data-cursor=my-melody] * { cursor: url('/cursors/my-melody/pointer.cur'), auto; }
body[data-cursor=my-melody] a,
body[data-cursor=my-melody] button,
body[data-cursor=my-melody] select,
body[data-cursor=my-melody] [role=button] { cursor: url('/cursors/my-melody/link.cur'), pointer; }
body[data-cursor=my-melody] input,
body[data-cursor=my-melody] textarea { cursor: url('/cursors/my-melody/text.cur'), text; }
body[data-cursor=my-melody] [aria-busy=true] { cursor: url('/cursors/my-melody/busy.cur'), wait; }
html[data-cursor=my-melody],
body[data-cursor=my-melody],
body[data-cursor=my-melody] .taskbar,
body[data-cursor=my-melody] .taskbar * { cursor: url('/cursors/my-melody/pointer.cur'), auto !important; }
body[data-cursor=my-melody] .taskbar button { cursor: url('/cursors/my-melody/link.cur'), pointer !important; }
body[data-cursor=custom],
body[data-cursor=custom] * { cursor: var(--custom-cursor, auto); }
.cursor-credit { border: 2px inset #eee; background: #fff8cf; padding: 7px; font-size: 11px; }

.custom-image-sticker-layer {
  position: absolute;
  inset: 0;
  /* Sit above the full-viewport shortcut grid so transparent gaps don't block dragging. */
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.custom-desktop-sticker {
  position: absolute;
  width: clamp(48px, 9vw, 112px);
  height: clamp(48px, 9vw, 112px);
  object-fit: contain;
  filter: drop-shadow(1px 2px 2px #0006);
  transform: rotate(var(--sticker-rotation, 0deg)) scale(var(--sticker-scale, 1));
  transform-origin: center;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}
.custom-desktop-sticker:active { cursor: grabbing; }
.custom-desktop-sticker:focus-visible { outline: 2px dotted white; outline-offset: 3px; }
.experimental-scanlines .desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8999;
  background: repeating-linear-gradient(180deg, transparent 0 3px, #0002 3px 4px);
  mix-blend-mode: multiply;
}

@media print {
  body { background: #fff !important; color: #000; }
  .desktop, .window-layer, .app-window {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .shortcuts, .titlebar, .taskbar, .toolbar, .statusbar { display: none !important; }
  .window-content { border: 0 !important; background: #fff !important; color: #000 !important; }
  .article-view { max-width: none; }
  .article-view a { color: #000; text-decoration: underline; }
}

/* Shared menu, icon, quick-launch, and recovery refinements (formerly os-extras.css). */
.start-menu{max-height:calc(100vh - var(--taskbar-h) - 8px);overflow-y:auto;overflow-x:visible}
.start-menu{min-height:min(390px,calc(100vh - var(--taskbar-h) - 8px))}
.start-items{display:flex;flex-direction:column;min-height:0}
.start-items>#auth-menu-item{margin-top:auto}
.submenu{position:fixed;left:0;top:0;bottom:auto;width:min(250px,calc(100vw - 8px));max-height:calc(100vh - var(--taskbar-h) - 8px);overflow:auto;overscroll-behavior:contain}
.context-menu{min-width:min(190px,calc(100vw - 8px));max-width:calc(100vw - 8px);max-height:calc(100vh - var(--taskbar-h) - 8px);overflow:auto;overscroll-behavior:contain}
body[data-theme-style=y2k] .start-menu{overflow-y:auto;overflow-x:visible;backdrop-filter:none}

/* Circuit Princess sprite icons: the same original pack works with every OS skin. */
.os-icon-image{display:inline-block;width:1.4em;height:1.4em;object-fit:contain;image-rendering:pixelated;vertical-align:middle;flex:0 0 auto}
body[data-theme-style=y2k] .desktop-icon .glyph .os-icon-image{filter:drop-shadow(1px 2px 1px #7652c799)}
body[data-theme-style=pink98] .desktop-icon .glyph .os-icon-image{filter:drop-shadow(1px 2px 1px #85264f99)}
body[data-theme-style=pinkxp] .desktop-icon .glyph .os-icon-image{filter:drop-shadow(1px 2px 1px #8b657588)}

.quick-launch{display:flex;align-items:center;gap:2px;flex:0 0 auto}
.tray-divider{padding:0 3px;font-weight:700;opacity:.8;user-select:none}
.page-bookmark{position:absolute;top:0;right:23px;z-index:2;display:grid;width:18px;height:30px;place-items:start center;padding-top:3px;border-radius:0 0 2px 2px;background:#d79bad;color:#fffaf5;font-size:10px;pointer-events:none}
.page-corner{display:none}
body[data-theme-style=y2k] .quick-settings{background:#ffd9efee;border:1px solid #fff;border-radius:15px;box-shadow:0 8px 22px #7652c766;backdrop-filter:blur(12px);color:#573762}
body[data-theme-style=y2k] .quick-settings>button,body[data-theme-style=y2k] .quick-settings>a{border-radius:8px;border-bottom-color:#d49abd}
body[data-theme-style=pink98] .quick-settings{background:#f7e9ee;border:3px outset #fff0f5;color:#351521;box-shadow:5px 5px #16071166}
body[data-theme-style=pinkxp] .quick-settings{background:#fff1f7;border-color:#f8b7cf;border-radius:11px;color:#54243a}
body[data-theme-style=pink98] .statusbar{color:#471c30}

.local-recovery{border:2px solid #a04c78;background:#fff0f8;color:#421b32;padding:10px;margin-bottom:10px}
.local-recovery p{margin:6px 0 9px}
.local-recovery button{margin:3px 6px 2px 0}
.recovery-badge{display:block;margin-top:4px;color:#7a2452;font-weight:700}

:root {
  --silver: #c0c0c0;
  --light: #fff;
  --mid: #808080;
  --shadow: #404040;
  --dark: #111;
  --pink: #ff4fa7;
  --wine: #52113b;
  --acid: #b8ff3d;
  --user-accent: #b40063;
  --user-accent2: #480038;
  --user-desktop: #170d1d;
  --taskbar-h: 42px;

  --os-window-chrome: var(--silver, #c0c0c0);
  --os-window-surface: #dedede;
  --os-panel-surface: #eee;
  --os-main-text: #111;
  --os-muted-text: #666;
  --os-border: #808080;
  --os-accent: var(--user-accent, #b40063);
  --os-focus: var(--user-accent, #b40063);
  --os-space-1: 4px;
  --os-space-2: 8px;
  --os-space-3: 12px;
  --os-space-4: 16px;
}

/* Shared palette tokens for Pink 98 application interiors. */
body[data-theme-style=pink98] {
  --pink98-ink: #351521;
  --pink98-muted: #71394f;
  --pink98-paper: #fff7fa;
  --pink98-surface: #f2dfe6;
  --pink98-edge: #bd7890;
  --pink98-deep: #351521;
  --pink98-accent: #ec5c98;
  --pink98-highlight: #ffd3e1;
}

/* Document defaults and shared interactive controls. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
  font-size: 13px;
}
body { background: var(--user-desktop); color: #111; }
button,
input,
textarea,
select { font: inherit; }
button,
.button {
  padding: 5px 9px;
  border: 2px outset #eee;
  border-radius: 0;
  background: var(--silver);
  color: #111;
  cursor: pointer;
}
button:active,
.button:active { border-style: inset; background: #aaa; }
button:disabled { color: #666; cursor: not-allowed; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px dotted #fff;
  outline-offset: 2px;
}
.skip-link {
  position: fixed;
  z-index: 10000;
  top: -40px;
  left: 5px;
  padding: 8px;
  background: #fff;
}
.skip-link:focus { top: 5px; }

/* Desktop wallpaper and shortcut grid. */
.desktop {
  position: fixed;
  inset: 0 0 var(--taskbar-h);
  overflow: hidden;
  background-color: var(--user-desktop);
  background-image: radial-gradient(circle at 20% 20%, #5c204b55 0 2px, transparent 3px),
    linear-gradient(135deg, #0c0812 25%, #160d1c 25% 50%, #0c0812 50% 75%, #160d1c 75%);
  background-size: 31px 31px, 28px 28px;
}
.shortcuts {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, 88px);
  grid-auto-columns: 100px;
  gap: 4px;
  width: max-content;
  height: 100%;
  padding: 12px;
}
.desktop-icon {
  appearance: none;
  width: 94px;
  height: 84px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #fff;
  text-shadow: 1px 1px #000;
  white-space: normal;
}
.desktop-icon:active { border: 0; background: #00008066; }
.desktop-icon.selected .icon-label { background: #000080; outline: 1px dotted #fff; }
.glyph { display: block; font-size: 36px; line-height: 42px; filter: drop-shadow(2px 2px #000); }
.icon-label { padding: 1px 3px; }
.demo-badge { display: block; color: #ffd2e9; font-size: 9px; }

/* Shared resizable application-window frame. */
.window-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.app-window {
  position: absolute;
  display: flex;
  min-width: 300px;
  min-height: 190px;
  flex-direction: column;
  overflow: hidden;
  resize: both;
  border: 3px outset #ddd;
  background: var(--silver);
  box-shadow: 8px 8px 0 #0008;
  pointer-events: auto;
  container-name: app-window;
  container-type: inline-size;
}
.app-window.active { z-index: 2; }
.app-window.maximized { inset: 0 !important; width: 100% !important; height: 100% !important; resize: none; }
.app-window.minimized { display: none; }
.titlebar {
  display: flex;
  min-height: 27px;
  align-items: center;
  padding: 3px 3px 3px 6px;
  background: linear-gradient(90deg, #777, #aaa);
  color: #ddd;
  font-weight: bold;
  user-select: none;
  touch-action: none;
}
.active > .titlebar { background: linear-gradient(90deg, var(--user-accent2), var(--user-accent)); color: #fff; }
.window-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-controls { display: flex; gap: 2px; }
.winbtn { width: 22px; height: 20px; padding: 0; font-weight: bold; line-height: 16px; }
.window-content { flex: 1; overflow: auto; padding: 13px; border: 2px inset #ddd; background: #dedede; }
.statusbar { padding: 4px; border: 2px inset #eee; background: #eee; font-size: 11px; }

/* Taskbar, launchers, menus, dialogs and system feedback. */
.taskbar {
  position: fixed;
  z-index: 9000;
  inset: auto 0 0;
  display: flex;
  height: var(--taskbar-h);
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-top: 2px outset #eee;
  background: var(--silver);
}
.start-button { height: 32px; flex: 0 0 auto; font-weight: bold; }
.task-items { display: flex; min-width: 0; flex: 1; gap: 4px; overflow-x: auto; }
.task-entry { display: flex; min-width: 100px; max-width: 210px; border: 2px outset #eee; }
.task-entry.active { border-style: inset; background: #aaa; }
.task-main { flex: 1; overflow: hidden; padding: 3px 5px; border: 0; text-align: left; text-overflow: ellipsis; }
.task-close { padding: 1px 5px; border: 0; border-left: 1px solid #777; }
.task-entry.active .task-main { font-weight: bold; }
.task-entry:not(.active) .task-main { background: linear-gradient(#ddd, #bbb); }
.tray { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 5px 8px; border: 2px inset #eee; }
.start-menu {
  position: fixed;
  z-index: 9500;
  bottom: var(--taskbar-h);
  left: 4px;
  display: flex;
  width: min(390px, calc(100vw - 8px));
  border: 3px outset #eee;
  background: var(--silver);
  box-shadow: 5px 5px #0008;
}
.start-brand {
  width: 38px;
  padding: 8px;
  transform: rotate(180deg);
  background: linear-gradient(#26001f, #7d0054);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  writing-mode: vertical-rl;
}
.start-brand span { color: #ff81c3; }
.start-items { position: relative; flex: 1; padding: 3px; }
.start-items > button,
.start-items > a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: #111;
  text-align: left;
  text-decoration: none;
}
.start-items > button:hover,
.start-items > a:hover,
.start-items > [aria-expanded=true] { background: #000080; color: #fff; }
.start-items button span:not(.start-menu-icon) { margin-left: auto; }
.start-menu-icon { display: inline-flex; width: 24px; height: 24px; flex: 0 0 24px; align-items: center; justify-content: center; margin: 0 !important; font-size: 18px; line-height: 1; }
.start-menu-icon .os-icon-image { width: 22px; height: 22px; }
.submenu { position: absolute; top: 0; bottom: auto; left: calc(100% - 3px); width: 250px; padding: 3px; border: 3px outset #eee; background: var(--silver); }
.submenu button { display: flex; width: 100%; align-items: center; gap: 7px; padding: 8px; text-align: left; }
.menu-section { margin: 3px; padding: 5px; border: 2px inset #eee; }
.menu-section > span { color: #555; font-size: 11px; }
.menu-section a { display: block; padding: 3px; color: #111; }
.system-dialog { max-width: 400px; padding: 0; border: 3px outset #eee; background: var(--silver); }
.system-dialog::backdrop { background: #0007; }
.system-dialog form { margin: 0; padding: 0 12px 12px; }
.dialog-title { margin: 0 -12px 12px; padding: 5px; background: #5c0043; color: #fff; font-weight: bold; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: 6px; }
.toast { position: fixed; right: 12px; bottom: 54px; z-index: 9999; display: none; max-width: 330px; padding: 10px; border: 3px outset #eee; background: #fff8cf; }
.toast.show { display: block; }
.context-menu { position: fixed; z-index: 9800; min-width: 190px; padding: 3px; border: 3px outset #eee; background: var(--silver); box-shadow: 4px 4px #0008; }
.context-menu button { display: block; width: 100%; padding: 7px; border: 0; text-align: left; }
.context-menu button:hover,
.context-menu button:focus { background: #000080; color: #fff; }
.recovery-status { position: fixed; right: 12px; bottom: calc(var(--taskbar-h) + 12px); z-index: 9998; max-width: min(360px, calc(100vw - 24px)); padding: 12px; border: 3px outset #eee; background: #fff8cf; color: #111; box-shadow: 4px 4px #0006; }
.recovery-status p { margin: 0 0 8px; }

/* Optional boot interstitial shared by desktop entry points. */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 15px;
  background: radial-gradient(circle at 50% 45%, #2d0a25 0, #080309 58%, #000 100%);
  color: #ff84c6;
  font: 14px/1.35 "Courier New", monospace;
}
.boot-terminal { position: relative; width: min(680px, 94vw); min-height: 470px; padding: 26px; border: 3px double #ff4fa7; background: linear-gradient(#070309ee, #120713ee); box-shadow: 0 0 18px #b40063, 0 0 80px #6d003755, inset 0 0 45px #000; }
.boot-terminal:after { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, #ff4fa708 3px 4px); content: ""; pointer-events: none; }
.boot-logo { position: absolute; top: 18px; right: 25px; color: #ff4fa7; font-size: 58px; line-height: 1; filter: drop-shadow(0 0 10px #ff4fa7); }
.boot-version { margin: 0; color: #a0ff9b; font-size: 11px; letter-spacing: 1px; }
.boot-terminal h1 { margin: 8px 0 18px; color: #ffb3db; font: 26px Georgia, serif; text-shadow: 0 0 9px #ff4fa7; }
.boot-memory { display: flex; justify-content: space-between; margin-bottom: 10px; padding: 6px 0; border-block: 1px solid #7a2859; color: #e8d6ff; }
.boot-memory output,
.boot-log b { color: #a0ff9b; }
.boot-log { min-height: 178px; margin: 0; padding: 0; list-style: none; }
.boot-log li { display: flex; justify-content: space-between; gap: 15px; padding: 3px 0; }
.boot-progress { height: 17px; padding: 2px; border: 2px inset #76355d; background: #030103; }
.boot-progress span { display: block; width: 0; height: 100%; background: repeating-linear-gradient(90deg, #ff4fa7 0 10px, #9f145e 10px 13px); transition: width .18s steps(4); }
.boot-prompt { min-height: 20px; color: #fff0f8; text-align: center; }
.boot-screen.ready .boot-prompt { animation: boot-blink .75s steps(1) infinite; }
.boot-actions { display: flex; justify-content: center; gap: 8px; }
.boot-actions button { min-width: 120px; }
@keyframes boot-blink { 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .boot-screen.ready .boot-prompt,
  .boot-progress span { animation: none; transition: none; }
}

/* Shared accessible-text utility used by profiles, chat, and widgets. */
.widget-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared shortcuts, switcher, quick access and reusable window content hooks. */
#shortcuts{position:absolute;inset:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(94px,1fr));grid-template-rows:none;grid-auto-columns:auto;grid-auto-rows:88px;grid-auto-flow:row;align-content:start;gap:4px;width:auto;height:auto;padding:12px;overflow:auto;overscroll-behavior:contain}
#shortcuts .desktop-icon{width:100%;max-width:94px;min-width:0;justify-self:center}
body.compact-icons #shortcuts{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));grid-template-rows:none;grid-auto-columns:auto;grid-auto-rows:70px;gap:3px;padding:8px}
body.compact-icons #shortcuts .desktop-icon{width:100%;max-width:78px;height:67px}
#shortcuts.icons-column-arranged{grid-template-columns:none;grid-template-rows:repeat(auto-fill,88px);grid-auto-flow:column;grid-auto-columns:100px;align-content:start;width:max-content;height:100%;overflow-x:auto;overflow-y:hidden}
body.compact-icons #shortcuts.icons-column-arranged{grid-template-rows:repeat(auto-fill,70px);grid-auto-columns:82px}
.app-switcher-button,.app-switcher{display:none}
.task-main{display:flex;align-items:center;gap:6px;white-space:nowrap;line-height:1.15}
.task-main .task-icon{flex:0 0 auto}
.task-main .task-label{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-items.compact{gap:3px}
.task-items.compact .task-entry{flex:0 0 62px;min-width:62px;max-width:62px;height:32px;align-self:center;overflow:hidden}
.task-items.compact .task-main{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;padding:2px 3px;white-space:nowrap}
.task-items.compact .task-main .task-label{display:none}
.task-items.compact .task-main .task-icon{font-size:16px;line-height:1}
.desktop-icon{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.desktop-icon .glyph{display:grid;place-items:center;flex:0 0 54px;line-height:54px;width:100%}
.desktop-icon .glyph .os-icon-image{width:52px;height:52px}
.task-icon .os-icon-image{width:20px;height:20px}
.window-app-icon .os-icon-image{width:18px;height:18px}
.start-items .os-icon-image{width:22px;height:22px;margin-right:5px}
.app-switcher-icon .os-icon-image{width:28px;height:28px}
.window-title{display:flex;align-items:center;gap:5px;min-width:0}
.window-title-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.window-app-icon{display:inline-flex;align-items:center;flex:0 0 auto}
.task-items .task-icon{display:inline-flex;align-items:center;justify-content:center}
.app-switcher-icon{display:flex;align-items:center;justify-content:center}
body.compact-icons .desktop-icon .glyph{flex-basis:41px;line-height:41px}
body.compact-icons .desktop-icon .glyph .os-icon-image{width:39px;height:39px}
.tray-launch{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:2px;border:1px solid transparent;background:transparent;color:inherit;font-size:18px;line-height:1;cursor:pointer}
.tray-launch:hover,.tray-launch:focus-visible{border-color:currentColor;filter:brightness(1.12);outline-offset:1px}
.tray-launch:disabled{opacity:.68;cursor:default}
.tray-launch-icon{display:grid;place-items:center;width:100%;height:100%}
.tray-launch-icon .os-icon-image{width:22px;height:22px;image-rendering:pixelated}
body[data-cursor=pixel],body[data-cursor=pixel] *{cursor:var(--pixel-cursor,auto)!important}
body[data-cursor=pixel] input,body[data-cursor=pixel] textarea{cursor:text!important}
.quick-settings{position:fixed;z-index:9700;right:8px;bottom:calc(var(--taskbar-h) + 8px);width:min(288px,calc(100vw - 16px));max-height:calc(100dvh - var(--taskbar-h) - 16px);overflow:auto;overscroll-behavior:contain;padding:7px;background:var(--silver);color:#111;border:3px outset #eee;box-shadow:5px 5px #0008}
.quick-settings>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 4px 7px;border-bottom:1px solid #888;margin-bottom:5px}
.quick-settings>header button{width:30px;height:30px;padding:0;font-size:18px;font-weight:bold}
.quick-settings>button{display:block;width:100%;min-height:42px;padding:7px 9px;text-align:left;border:0;border-bottom:1px solid #888;background:transparent;color:inherit;white-space:normal}
.quick-settings>a{display:block;width:100%;min-height:42px;padding:11px 9px 7px;text-align:left;border-bottom:1px solid #888;background:transparent;color:inherit;text-decoration:none;white-space:normal}
.quick-settings>button:last-child,.quick-settings>a:last-child{border-bottom:0}
.quick-settings>button:hover,.quick-settings>button:focus-visible{background:#0001;outline:2px dotted currentColor;outline-offset:-3px}
.quick-settings>a:hover,.quick-settings>a:focus-visible{background:#0001;outline:2px dotted currentColor;outline-offset:-3px}
.quick-settings [aria-pressed=true]{font-weight:bold}
body.has-theme-colors #windows .app-window .window-content button:not(.desktop-icon):not(.winbtn){background:linear-gradient(#fff,var(--forge-surface));border-color:var(--forge-border);color:var(--forge-text)}
body.has-theme-colors #windows .app-window .window-content input,
body.has-theme-colors #windows .app-window .window-content textarea,
body.has-theme-colors #windows .app-window .window-content select{background-color:var(--forge-surface);color:var(--forge-text)}
