:root {
  --xp-blue-dark: #0831a3;
  --xp-blue: #245edb;
  --xp-blue-light: #4ca0ff;
  --xp-sky: #0b61c9;
  --xp-start: #3b9b32;
  --xp-start-dark: #1d6d18;
  --xp-panel: #ece9d8;
  --xp-panel-2: #f7f5ec;
  --xp-border: #7f9db9;
  --xp-text: #111;
  --taskbar-h: 38px;
  --shadow: 0 7px 22px rgba(0, 0, 0, 0.35);
  --desktop-bg: linear-gradient(180deg, #0d68d5 0%, #3ea0f3 58%, #86c867 58.2%, #4ca43d 100%);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family:
    Tahoma,
    Verdana,
    Segoe UI,
    sans-serif;
  font-size: 13px;
  color: var(--xp-text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.desktop {
  position: fixed;
  inset: 0 0 var(--taskbar-h);
  background: var(--desktop-bg);
  overflow: hidden;
  user-select: none;
}
.desktop::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.23), transparent 22%),
    linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, 0.09) 49%, transparent 52%);
}
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #050505;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s;
}
.boot-screen.hide {
  opacity: 0;
  pointer-events: none;
}
.boot-logo {
  font-size: 42px;
  font-style: italic;
}
.boot-logo span {
  font-weight: 300;
}
.boot-logo strong {
  font-weight: 700;
}
.boot-logo em {
  font-size: 18px;
  color: #ff8a00;
  margin-left: 8px;
}
.boot-bar {
  width: 220px;
  height: 18px;
  border: 2px solid #777;
  border-radius: 4px;
  padding: 2px;
  overflow: hidden;
}
.boot-bar i {
  display: block;
  height: 100%;
  width: 45%;
  background: repeating-linear-gradient(90deg, #2c6fff 0 16px, #0e2d86 16px 22px);
  animation: boot 1.1s linear infinite;
}
@keyframes boot {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(340%);
  }
}
.desktop-shortcuts {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  --grid-x: 82px;
  --grid-y: 74px;
}
.desktop-shortcuts::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1.5px, transparent 1.7px),
    linear-gradient(to right, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size:
    var(--grid-x) var(--grid-y),
    var(--grid-x) var(--grid-y),
    var(--grid-x) var(--grid-y);
  background-position:
    8px 8px,
    8px 8px,
    8px 8px;
  transition: opacity 0.12s;
}
.desktop-shortcuts.arranging::before {
  opacity: 0.72;
}
.shortcut {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 68px;
  height: 62px;
  min-height: 62px;
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 3px;
  overflow: visible;
  pointer-events: auto;
  touch-action: none;
  transition:
    left 0.13s ease-out,
    top 0.13s ease-out,
    background-color 0.08s,
    border-color 0.08s,
    transform 0.08s;
  cursor: default;
}
.shortcut:hover,
.shortcut:focus-visible {
  outline: 0;
  background: rgba(24, 81, 170, 0.38);
  border-color: rgba(255, 255, 255, 0.62);
}
.shortcut.dragging {
  z-index: 80;
  cursor: grabbing;
  background: rgba(24, 81, 170, 0.58);
  border-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.42);
  transform: scale(1.05);
  transition: none;
}
.shortcut .icon {
  font-size: 38px;
  line-height: 44px;
  filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.desktop-icon-dragging,
.desktop-icon-dragging * {
  cursor: grabbing !important;
}
.window-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.xp-window {
  position: absolute;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  min-width: 290px;
  min-height: 180px;
  background: var(--xp-panel);
  border: 3px solid var(--xp-blue);
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  user-select: text;
}
.xp-window.inactive {
  border-color: #7b94c5;
}
.xp-window.maximized {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}
.xp-window.minimized {
  display: none;
}
.window-titlebar {
  height: 31px;
  flex: 0 0 31px;
  background: linear-gradient(#3f8df5, #1762d6 55%, #0c3ea8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px 3px 7px;
  color: #fff;
  text-shadow: 1px 1px #153b82;
  cursor: move;
}
.inactive .window-titlebar {
  background: linear-gradient(#b7c9e9, #7f9bc9);
}
.window-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.window-title strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-icon {
  font-size: 17px;
}
.window-controls {
  display: flex;
  gap: 3px;
}
.window-controls button {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #fff;
  font-weight: bold;
  background: linear-gradient(#70a6ef, #245ecf);
  box-shadow: inset -1px -1px #173a83;
}
.window-controls button:last-child {
  background: linear-gradient(#f49a7d, #c43d21);
}
.window-menubar {
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  background: var(--xp-panel);
  border-bottom: 1px solid #aca899;
}
.window-menubar button {
  border: 1px solid transparent;
  background: transparent;
  padding: 3px 7px;
}
.window-menubar button:hover {
  border-color: #316ac5;
  background: #c1d2ee;
}
.window-content {
  flex: 1;
  overflow: auto;
  background: var(--xp-panel-2);
  padding: 10px;
}
.window-statusbar {
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
  border-top: 1px solid #aca899;
  background: var(--xp-panel);
  color: #444;
}
.window-resizer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  background: linear-gradient(
    135deg,
    transparent 0 45%,
    #888 46% 52%,
    transparent 53% 62%,
    #888 63% 69%,
    transparent 70%
  );
}
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--taskbar-h);
  z-index: 5000;
  background: linear-gradient(#2f77ee, #1250c8 55%, #0d3ca1);
  display: flex;
  align-items: center;
  color: #fff;
  box-shadow: 0 -2px 4px rgba(255, 255, 255, 0.4);
}
.start-button {
  height: 100%;
  min-width: 105px;
  border: 0;
  border-radius: 0 14px 14px 0;
  color: #fff;
  font-size: 16px;
  font-style: italic;
  text-shadow: 1px 1px #174c14;
  background: linear-gradient(#62bd50, #3a9a32 52%, #257a21);
  box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 9px;
}
.start-button:hover {
  filter: brightness(1.12);
}
.start-orb {
  font-size: 20px;
  color: #fff;
}
.quick-launch {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}
.quick-launch button,
.system-tray button {
  background: transparent;
  border: 0;
  color: #fff;
  padding: 4px 6px;
}
.task-buttons {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 2px 5px;
  overflow: hidden;
}
.task-button {
  height: 30px;
  max-width: 180px;
  min-width: 110px;
  color: #fff;
  border: 1px solid #15398b;
  border-radius: 3px;
  background: linear-gradient(#3d83e8, #1f5fc4);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 8px;
}
.task-button.active {
  background: linear-gradient(#184caa, #0e3d91);
  box-shadow: inset 1px 1px 4px #072860;
}
.system-tray {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(#38a1e9, #147fc7);
  padding: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}
#connection-indicator {
  color: #4dff54;
  text-shadow: 0 0 4px #000;
}
.tray-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  min-width: 58px;
}
.tray-clock small {
  font-size: 9px;
}
.task-group {
  display: none;
  position: relative;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.task-group[hidden],
.task-group-menu[hidden] {
  display: none !important;
}
.task-group-button {
  width: 100%;
  height: 32px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #15398b;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(#3d83e8, #1f5fc4);
  padding: 3px 7px;
  text-align: left;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.35);
}
.task-group-button.active,
.task-group.open .task-group-button {
  background: linear-gradient(#184caa, #0e3d91);
  box-shadow: inset 1px 1px 4px #072860;
}
.task-group-icon {
  flex: 0 0 auto;
  font-size: 16px;
}
.task-group-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: bold;
}
.task-group-count {
  flex: 0 0 auto;
  min-width: 21px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: bold;
}
.task-group-chevron {
  flex: 0 0 auto;
  font-size: 9px;
}
.task-group-menu {
  position: fixed;
  left: 6px;
  right: 6px;
  bottom: calc(var(--taskbar-h) + 6px);
  z-index: 6500;
  max-height: min(62vh, 430px);
  overflow: auto;
  padding: 5px;
  border: 2px solid #174a9c;
  border-radius: 6px;
  background: #f4f7fd;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.48);
}
.task-group-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  padding: 5px 7px;
  text-align: left;
  color: #111;
}
.task-group-item + .task-group-item {
  margin-top: 2px;
}
.task-group-item:hover,
.task-group-item:focus-visible {
  border-color: #7da2ce;
  background: #dceaff;
  outline: 0;
}
.task-group-item.active {
  border-color: #316ac5;
  background: #316ac5;
  color: #fff;
}
.task-group-item.minimized {
  opacity: 0.78;
}
.task-group-item-icon {
  font-size: 21px;
  text-align: center;
}
.task-group-item-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.task-group-item-text strong,
.task-group-item-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-group-item-text small {
  font-size: 10px;
  opacity: 0.78;
}
.task-group-item-marker {
  text-align: center;
  font-size: 15px;
  font-weight: bold;
}
.start-menu {
  position: fixed;
  left: 0;
  bottom: var(--taskbar-h);
  width: 420px;
  z-index: 6000;
  border: 3px solid #1b56bd;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.start-menu header {
  height: 70px;
  background: linear-gradient(#4a96f1, #1359c7);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}
.avatar {
  width: 49px;
  height: 49px;
  border: 2px solid #fff;
  border-radius: 5px;
  background: linear-gradient(#f1cf9d, #a96d44);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #173d74;
}
.start-menu header div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.start-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 360px;
}
.start-programs,
.start-system {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.start-system {
  background: #d9e8fb;
  border-left: 1px solid #9db7df;
}
.start-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px;
  border-radius: 3px;
}
.start-menu button:hover {
  background: #316ac5;
  color: #fff;
}
.start-programs button {
  font-weight: bold;
}
.start-menu footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  background: linear-gradient(#3f8ced, #1259c4);
}
.start-menu footer button {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}
.notification-layer {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(360px, calc(100vw - 24px));
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #fff9d7;
  border: 2px solid #1c59b8;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: toastin 0.25s ease;
}
.toast header {
  display: flex;
  justify-content: space-between;
  background: linear-gradient(#4d95ee, #1c5bc6);
  color: #fff;
  padding: 6px 8px;
}
.toast .body {
  padding: 10px;
}
.toast .actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 8px 8px;
}
.toast button {
  padding: 4px 8px;
}
@keyframes toastin {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
}
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.38);
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-layer[hidden] {
  display: none;
}
.xp-dialog {
  width: min(520px, 96vw);
  max-height: 88vh;
  background: var(--xp-panel);
  border: 3px solid var(--xp-blue);
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow);
  overflow: auto;
}
.xp-dialog > header {
  background: linear-gradient(#4b96f1, #1558c7);
  color: #fff;
  padding: 7px 10px;
  font-weight: bold;
}
.xp-dialog .dialog-body {
  padding: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #aaa;
}
.xp-button {
  min-height: 27px;
  padding: 4px 12px;
  border: 1px solid #003c74;
  border-radius: 3px;
  background: linear-gradient(#fff, #ddd);
  box-shadow: inset 0 0 0 1px #fff;
}
.xp-button.primary {
  background: linear-gradient(#edf6ff, #b7d5ff);
  font-weight: bold;
}
.xp-button.danger {
  color: #8c1d10;
}
.xp-button:active {
  background: linear-gradient(#ccc, #f8f8f8);
}
.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px;
  margin: -3px -3px 9px;
  border: 1px solid #aca899;
  background: linear-gradient(#fff, #e7e4d5);
}
.app-toolbar .spacer {
  flex: 1;
}
.app-toolbar input[type='search'] {
  min-width: 170px;
}
.grid {
  display: grid;
  gap: 10px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  background: #fff;
  border: 1px solid #9eb5cf;
  box-shadow: inset 1px 1px #fff;
  padding: 10px;
}
.card h3 {
  margin: 0 0 8px;
  color: #174995;
}
.stat {
  font-size: 26px;
  font-weight: bold;
  color: #1a4c9b;
}
.muted {
  color: #666;
}
.empty {
  padding: 24px;
  text-align: center;
  color: #666;
  border: 1px dashed #aaa;
  background: #fff;
}
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  background: #dbe8ff;
  border: 1px solid #93b1df;
}
.badge.high {
  background: #ffd5ce;
  border-color: #d57a6e;
}
.badge.done {
  background: #d8f2d2;
  border-color: #83b977;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.list-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid #bdc7d5;
  background: #fff;
}
.list-row:hover {
  background: #e8f1ff;
}
.list-row.done .main {
  text-decoration: line-through;
  color: #777;
}
.row-actions {
  display: flex;
  gap: 4px;
}
.icon-button {
  width: 28px;
  height: 26px;
  padding: 0;
  border: 1px solid #7f9db9;
  background: linear-gradient(#fff, #ddd);
  border-radius: 2px;
}
.main strong {
  display: block;
}
.main small {
  color: #666;
}
.form-grid {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 8px;
  align-items: center;
}
.form-grid label {
  font-weight: bold;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 6px;
  border: 1px solid #7f9db9;
  background: #fff;
}
.form-grid textarea {
  min-height: 80px;
  resize: vertical;
}
.form-grid .full {
  grid-column: 1/-1;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 7px;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #9eb5cf;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 7px 8px;
  border-bottom: 1px solid #d2d7dd;
  text-align: left;
}
th {
  position: sticky;
  top: 0;
  background: linear-gradient(#fff, #dcdcdc);
  z-index: 1;
}
tr:hover td {
  background: #eef5ff;
}
.calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 10px;
  height: 100%;
}
.calendar {
  background: #fff;
  border: 1px solid #9eb5cf;
}
.calendar-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #dce8f8;
  border-bottom: 1px solid #9eb5cf;
}
.calendar-head div {
  text-align: center;
  font-weight: bold;
  padding: 6px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(70px, 1fr);
}
.calendar-day {
  position: relative;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 5px;
  overflow: hidden;
}
.calendar-day.other {
  background: #f1f1f1;
  color: #999;
}
.calendar-day.today {
  background: #fff8c7;
}
.calendar-day.selected {
  outline: 2px solid #316ac5;
  outline-offset: -2px;
}
.calendar-day button {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: bold;
}
.event-pill {
  display: block;
  margin-top: 3px;
  padding: 2px 4px;
  background: #d8e8ff;
  border-left: 4px solid #2b63bd;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.date-title {
  font-weight: bold;
  color: #174995;
  font-size: 15px;
}
.calculator {
  width: 285px;
  margin: auto;
  background: #d4d0c8;
  border: 2px outset #fff;
  padding: 10px;
}
.calc-display {
  height: 52px;
  width: 100%;
  font:
    26px Consolas,
    monospace;
  text-align: right;
  background: #d7e7c7;
  border: 2px inset #fff;
  padding: 8px;
  margin-bottom: 8px;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.calc-grid button {
  height: 42px;
  border: 2px outset #fff;
  background: #ece9d8;
  font-weight: bold;
}
.calc-grid button:active {
  border-style: inset;
}
.world-clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.clock-card {
  background: #101010;
  color: #8fff7a;
  border: 4px ridge #bcbcbc;
  padding: 12px;
  text-align: center;
  font-family: Consolas, monospace;
}
.clock-card .time {
  font-size: 27px;
}
.clock-card .city {
  color: #fff;
  font-family: Tahoma, sans-serif;
}
.alarm-active {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(4, 22, 71, 0.92);
  display: grid;
  place-items: center;
  color: #fff;
}
.alarm-box {
  text-align: center;
  background: linear-gradient(#3f89ec, #0f46a6);
  border: 4px solid #fff;
  border-radius: 12px;
  padding: 30px;
  min-width: min(440px, 90vw);
  box-shadow: 0 0 35px #000;
}
.alarm-box .alarm-time {
  font-size: 72px;
  font-weight: bold;
}
.alarm-box .alarm-label {
  font-size: 24px;
  margin: 8px 0 22px;
}
.alarm-box button {
  padding: 12px 20px;
  margin: 5px;
  font-weight: bold;
}
.search-results h4 {
  margin: 12px 0 5px;
  color: #174995;
}
.settings-preview {
  height: 140px;
  border: 2px inset #fff;
  background: var(--desktop-bg);
  position: relative;
}
.settings-preview::after {
  content: 'Start';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  background: #1756c9;
  color: #fff;
  padding-left: 6px;
}
@media (max-width: 780px) {
  :root {
    --taskbar-h: 46px;
  }
  .desktop-shortcuts {
    inset: 0;
  }
  .shortcut {
    height: 62px;
    min-height: 62px;
  }
  .quick-launch {
    display: none;
  }
  .system-tray {
    padding: 0 4px;
  }
  .task-buttons {
    overflow: visible;
    padding: 2px 4px;
  }
  .task-buttons > .task-button {
    display: none;
  }
  .task-group {
    display: flex;
    flex: 1;
  }
  .start-menu {
    width: 100%;
    max-height: calc(100vh - var(--taskbar-h));
    overflow: auto;
  }
  .start-columns {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .start-system {
    border-left: 0;
    border-top: 1px solid #9db7df;
  }
  .xp-window {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    min-width: 0;
  }
  .window-titlebar {
    cursor: default;
  }
  .window-resizer {
    display: none;
  }
  .window-content {
    padding: 7px;
  }
  .calendar-shell {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    grid-auto-rows: 64px;
  }
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid label {
    margin-bottom: -4px;
  }
  .start-button {
    min-width: 92px;
  }
  .window-controls button[data-window-action='maximize'],
  .window-controls button[data-window-action='minimize'] {
    display: none;
  }
}
body.theme-silver {
  --xp-blue: #7088aa;
  --xp-blue-dark: #42556f;
  --xp-blue-light: #b7c7dd;
  --xp-start: #789267;
  --desktop-bg: linear-gradient(160deg, #64778b, #b9c4cc 58%, #6e8f66 58.3%, #4c7046);
}
body.theme-olive {
  --xp-blue: #68794d;
  --xp-blue-dark: #3d492c;
  --xp-blue-light: #98a776;
  --xp-start: #7d8f45;
  --desktop-bg: linear-gradient(160deg, #71866c, #b7c8ac 58%, #8da25c 58.2%, #596d37);
}
body.theme-classic {
  --xp-blue: #777;
  --xp-blue-dark: #444;
  --xp-blue-light: #aaa;
  --xp-start: #777;
  --desktop-bg: #008080;
}

/* XP-style desktop shortcut information */
.desktop-tooltip {
  position: fixed;
  z-index: 19000;
  max-width: 260px;
  padding: 3px 6px;
  background: #ffffe1;
  border: 1px solid #000;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
  color: #000;
  font:
    12px/1.25 Tahoma,
    Verdana,
    sans-serif;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.08s ease;
}
.desktop-tooltip.visible {
  opacity: 1;
}
.desktop-tooltip[hidden] {
  display: none;
}

/* MD-CyberFun system-wide context menus */
.context-menu {
  position: fixed;
  z-index: 20000;
  min-width: 218px;
  max-width: min(330px, calc(100vw - 12px));
  padding: 3px;
  background: #fff;
  border: 1px solid #1f3f7d;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.48);
  color: #111;
  user-select: none;
}
.context-menu[hidden] {
  display: none;
}
.context-menu button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 25px;
  padding: 3px 8px 3px 5px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  white-space: nowrap;
}
.context-menu button:hover,
.context-menu button:focus {
  outline: 0;
  background: #316ac5;
  color: #fff;
}
.context-menu button:disabled {
  color: #888;
  background: transparent;
}
.context-menu button:disabled:hover {
  color: #888;
  background: transparent;
}
.context-menu .context-icon {
  width: 20px;
  text-align: center;
}
.context-menu .context-shortcut {
  padding-left: 15px;
  color: #666;
  font-size: 11px;
}
.context-menu button:hover .context-shortcut,
.context-menu button:focus .context-shortcut {
  color: #fff;
}
.context-menu .context-separator {
  height: 1px;
  margin: 3px 2px;
  background: #aca899;
  border-bottom: 1px solid #fff;
}
.context-menu .context-heading {
  padding: 4px 8px;
  color: #666;
  font-weight: bold;
  font-size: 11px;
}
.context-menu-open .shortcut.context-target,
.shortcut.context-target {
  background: rgba(24, 81, 170, 0.55);
  border-color: #fff;
}
.context-target.list-row,
.context-target.card,
.context-target td {
  background: #d8e8ff !important;
}
@media (max-width: 780px) {
  .context-menu {
    min-width: 230px;
  }
  .context-menu button {
    min-height: 34px;
    font-size: 14px;
  }
}

/* MD-CyberFun XP – Boot, Login und Mehrnutzerbetrieb */
[hidden] {
  display: none !important;
}
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 90000;
  display: flex;
  flex-direction: column;
  background: #003399;
  color: #fff;
  user-select: none;
  font-family: Tahoma, Verdana, sans-serif;
}
.login-topbar {
  height: 92px;
  flex: 0 0 92px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 44px 18px;
  background: linear-gradient(180deg, #0b3a9d, #245edb);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 3px 0 rgba(0, 36, 120, 0.8);
}
.login-logo {
  font-size: 34px;
  font-style: italic;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.45);
}
.login-logo span {
  font-weight: 300;
}
.login-logo strong {
  font-weight: 700;
}
.login-logo em {
  font-size: 15px;
  color: #ffb000;
  margin-left: 7px;
}
.login-topbar small {
  opacity: 0.88;
}
.login-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 1fr);
  align-items: center;
  background: linear-gradient(90deg, #5a8fe4 0 49.8%, #4b82da 50.2% 100%);
}
.login-welcome {
  height: 68%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 30px 60px 30px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.75);
}
.login-welcome h1 {
  font-size: 42px;
  margin: 0 0 6px;
  text-shadow: 2px 2px #174a9e;
}
.login-welcome p {
  max-width: 480px;
  font-size: 17px;
  margin: 6px 0;
}
.login-welcome .login-hint {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}
.login-divider {
  width: 210px;
  height: 2px;
  margin: 14px 0;
  background: linear-gradient(90deg, transparent, #fff);
}
.login-panel {
  padding: 28px 34px;
  display: flex;
  align-items: center;
  min-height: 360px;
}
.login-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: min(520px, 100%);
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(18, 65, 151, 0.75), rgba(39, 104, 204, 0.4));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15);
}
.login-card:focus-within {
  border-color: #fff;
  background: linear-gradient(90deg, rgba(12, 52, 135, 0.92), rgba(54, 119, 221, 0.62));
}
.login-avatar,
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border: 3px solid #fff;
  border-radius: 7px;
  background: linear-gradient(145deg, #ffe1b5, #b76a3c 60%, #744328);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
  font-size: 27px;
  font-weight: bold;
  color: #153c78;
  text-shadow: 1px 1px rgba(255, 255, 255, 0.6);
}
.login-fields {
  flex: 1;
  min-width: 0;
}
.login-fields h2 {
  font-size: 23px;
  margin: 0 0 3px;
  text-shadow: 1px 1px #173e8e;
}
.login-fields > small {
  display: block;
  margin-bottom: 10px;
  color: #e8f1ff;
}
.login-fields label,
.lock-dialog label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-weight: bold;
}
.login-fields input,
.lock-dialog input {
  width: 100%;
  min-height: 32px;
  padding: 5px 7px;
  border: 2px inset #fff;
  background: #fff;
  color: #000;
  user-select: text;
}
.login-submit {
  margin-top: 10px;
  min-height: 34px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: linear-gradient(#55b858, #257b29);
  color: #fff;
  font-weight: bold;
  padding: 4px 9px;
  box-shadow: inset -1px -1px #174f1a;
}
.login-submit span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-left: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
}
.login-submit:disabled {
  filter: grayscale(1);
  opacity: 0.65;
}
.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.login-back {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: underline;
}
.login-error {
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px solid #7d190d;
  background: #fff0df;
  color: #8f190d;
  font-weight: bold;
}
.login-explanation {
  margin: 8px 0;
  padding: 7px;
  background: rgba(0, 34, 111, 0.35);
  font-size: 12px;
  line-height: 1.4;
}
.setup-card {
  width: min(570px, 100%);
}
.login-footer {
  height: 94px;
  flex: 0 0 94px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 44px;
  background: linear-gradient(#245edb, #0d3b9d);
  border-top: 2px solid rgba(255, 255, 255, 0.5);
}
.login-footer > div {
  display: flex;
  flex-direction: column;
}
.login-footer > span {
  margin-left: auto;
  opacity: 0.75;
}
.login-power {
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: linear-gradient(#f4a37e, #bf3b25);
  color: #fff;
  font-size: 23px;
  box-shadow: inset -1px -1px #762414;
}
.login-footer small {
  opacity: 0.8;
  margin-top: 2px;
}
.powered-off {
  height: 100vh;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font:
    20px Tahoma,
    Verdana,
    sans-serif;
}
.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #9eb5cf;
  background: #fff;
}
.account-card .account-avatar {
  width: 58px;
  height: 58px;
  font-size: 20px;
}
.account-card > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-card small,
.block-muted {
  display: block;
  color: #666;
  font-size: 11px;
}
.user-admin-note {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #7f9db9;
  background: #e7f1ff;
}
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.status-dot.online {
  background: #35a936;
}
.status-dot.offline {
  background: #a7a7a7;
}
.lock-dialog {
  width: min(440px, calc(100vw - 30px));
}
.lock-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.lock-user .account-avatar {
  width: 64px;
  height: 64px;
  font-size: 23px;
}
.lock-user h2 {
  margin: 0 0 3px;
}
.lock-user small {
  color: #555;
}
@media (max-width: 780px) {
  .login-topbar {
    height: 70px;
    flex-basis: 70px;
    padding: 0 18px 12px;
  }
  .login-logo {
    font-size: 25px;
  }
  .login-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .login-welcome {
    height: auto;
    align-items: center;
    text-align: center;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    padding: 18px;
  }
  .login-welcome h1 {
    font-size: 30px;
  }
  .login-welcome p {
    font-size: 14px;
  }
  .login-welcome .login-hint {
    display: none;
  }
  .login-divider {
    display: none;
  }
  .login-panel {
    width: 100%;
    min-height: 0;
    padding: 18px;
    justify-content: center;
  }
  .login-card {
    padding: 11px;
  }
  .login-avatar {
    width: 61px;
    height: 61px;
    font-size: 21px;
  }
  .login-fields h2 {
    font-size: 19px;
  }
  .login-footer {
    height: 72px;
    flex-basis: 72px;
    padding: 10px 16px;
  }
  .login-footer small,
  .login-footer > span {
    display: none;
  }
}

/* MD-CyberFun XP – Offline-Anmeldung und Service-Worker-Status */
.offline-login-note {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(122, 72, 0, 0.42) !important;
  color: #fff;
}
body.offline-mode .system-tray #connection-indicator {
  color: #ffb000;
}

/* MD-CyberFun XP 1.4.4 – reduzierte Anwendungsmenüs und interne Nachrichten */
.window-menubar {
  overflow: visible;
  position: relative;
  z-index: 5;
}
.window-menu-group {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.window-menu-button {
  min-width: 34px;
}
.window-menu-popup {
  position: absolute;
  top: 23px;
  left: 0;
  z-index: 500;
  min-width: 150px;
  padding: 3px;
  background: #fff;
  border: 1px solid #1f3f7d;
  box-shadow: 2px 3px 7px rgba(0, 0, 0, 0.4);
}
.window-menu-popup[hidden] {
  display: none;
}
.window-menu-popup button {
  display: block;
  width: 100%;
  min-height: 25px;
  padding: 4px 22px;
  text-align: left;
  border: 0;
  background: transparent;
  white-space: nowrap;
}
.window-menu-popup button:hover,
.window-menu-popup button:focus {
  background: #316ac5;
  color: #fff;
  outline: 0;
}
.help-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.help-icon {
  font-size: 42px;
}
.help-box h3 {
  margin: 0 0 8px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 6px;
  color: #174995;
}
.message-thread-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.message-thread {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid #bdc7d5;
  background: #fff;
  text-align: left;
  color: inherit;
}
.message-thread:hover,
.message-thread:focus {
  background: #e8f1ff;
  outline: 1px solid #316ac5;
}
.message-thread.unread {
  font-weight: bold;
  border-left: 4px solid #245edb;
}
.message-thread .main {
  min-width: 0;
}
.message-thread .main strong,
.message-thread .main small,
.message-thread .main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-thread .main small {
  font-weight: normal;
  color: #666;
}
.message-thread .main span {
  font-weight: normal;
  margin-top: 3px;
}
.message-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(#edf5ff, #9dc1ef);
  border: 1px solid #477ebd;
  font-weight: bold;
  color: #174995;
}
.unread-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: #245edb;
  color: #fff;
}
.chat-dialog {
  width: min(720px, 96vw);
}
.chat-transcript {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
  padding: 8px;
  background: #f3f3f3;
  border: 1px solid #9eb5cf;
}
.chat-bubble {
  max-width: 82%;
  padding: 8px 10px;
  border: 1px solid #9eb5cf;
  background: #fff;
}
.chat-bubble.own {
  align-self: flex-end;
  background: #dcecff;
  border-color: #6b9ed8;
}
.chat-bubble.other {
  align-self: flex-start;
}
.chat-bubble p {
  margin: 5px 0;
  white-space: pre-wrap;
}
.chat-bubble small {
  color: #666;
}
.chat-dialog form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
.chat-dialog textarea {
  width: 100%;
  margin-top: 5px;
  padding: 7px;
  border: 1px solid #7f9db9;
  resize: vertical;
}
.block-muted {
  display: block;
  color: #666;
  font-weight: normal;
}
@media (max-width: 780px) {
  .message-thread {
    grid-template-columns: 38px 1fr auto;
  }
  .chat-bubble {
    max-width: 94%;
  }
  .window-menu-popup {
    top: 28px;
  }
  .window-menu-popup button {
    min-height: 36px;
  }
}

/* MD-CyberFun XP 1.5.0 CHM-style help center */
.help-chm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: 8px;
  min-height: 100%;
  height: 100%;
  font-size: 13px;
}
.help-chm-content {
  min-width: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid #7f9db9;
  box-shadow: inset 1px 1px #d7e5f7;
  padding: 18px;
}
.help-chm-nav {
  grid-column: 2;
  grid-row: 1;
  min-width: 230px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ece9d8;
  border: 1px solid #7f9db9;
  box-shadow: inset 1px 1px #fff;
}
.help-chm-nav > header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: linear-gradient(#f9fbff, #d6e5f7);
  border-bottom: 1px solid #7f9db9;
  color: #123f78;
}
.help-chm-nav > header strong {
  font-size: 14px;
}
.help-chm-nav > header small {
  color: #555;
}
.help-nav-list {
  overflow: auto;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.help-nav-list button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  width: 100%;
  padding: 4px 6px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  color: #111;
}
.help-nav-list button:hover,
.help-nav-list button:focus {
  outline: 0;
  border-color: #7da2ce;
  background: #dcecff;
}
.help-nav-list button.active {
  border-color: #316ac5;
  background: #316ac5;
  color: #fff;
}
.help-nav-list button small {
  font-size: 10px;
  color: #7a4300;
}
.help-nav-list button.active small {
  color: #fff1b8;
}
.help-nav-separator {
  height: 2px;
  margin: 7px 3px 5px;
  border-top: 1px solid #aca899;
  border-bottom: 1px solid #fff;
}
.help-page {
  max-width: 920px;
  margin: 0 auto;
}
.help-page h2 {
  margin: 0;
  color: #174a84;
}
.help-page h3 {
  margin: 18px 0 7px;
  color: #174a84;
  border-bottom: 1px solid #b8c8da;
  padding-bottom: 3px;
}
.help-page-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #b8c8da;
}
.help-page-header > span {
  font-size: 46px;
  line-height: 1;
}
.help-page-header p {
  margin: 6px 0 0;
  color: #4c4c4c;
}
.help-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}
.help-overview-grid button {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 8px;
  min-height: 72px;
  padding: 9px;
  border: 1px solid #9db7d2;
  background: linear-gradient(#fff, #edf4fb);
  text-align: left;
  color: #111;
}
.help-overview-grid button:hover,
.help-overview-grid button:focus {
  outline: 1px solid #316ac5;
  background: #dcecff;
}
.help-overview-grid button > span {
  grid-row: 1/3;
  font-size: 28px;
}
.help-overview-grid strong {
  color: #174a84;
}
.help-overview-grid small {
  line-height: 1.3;
  color: #555;
}
.help-overview-grid em {
  grid-column: 2;
  font-size: 10px;
  color: #8a3e00;
}
.help-feature-list {
  padding-left: 24px;
}
.help-feature-list li {
  margin: 7px 0;
}
.help-admin-note {
  padding: 8px 10px;
  border: 1px solid #c28b28;
  background: #fff4c8;
  color: #5d3c00;
}
.help-system-info {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  margin: 0;
  border: 1px solid #9db7d2;
  background: #f8fbff;
}
.help-system-info dt,
.help-system-info dd {
  margin: 0;
  padding: 7px 9px;
  border-bottom: 1px solid #d7e1ec;
}
.help-system-info dt {
  font-weight: bold;
  background: #e8f1fb;
}
.help-system-info a {
  color: #0645ad;
}
.help-scrollbox {
  height: 155px;
  overflow: auto;
  padding: 9px 12px;
  border: 2px inset #fff;
  background: #fff;
  color: #111;
  line-height: 1.45;
  scrollbar-color: #7f9db9 #ece9d8;
}
.help-scrollbox ol {
  margin: 0;
  padding-left: 22px;
}
.help-scrollbox li {
  margin: 0 0 9px;
}
.help-license {
  height: 190px;
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 780px) {
  .help-chm {
    grid-template-columns: 1fr;
    height: auto;
  }
  .help-chm-nav {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-height: 205px;
  }
  .help-chm-content {
    grid-column: 1;
    grid-row: 2;
    min-height: calc(100vh - 300px);
    padding: 12px;
  }
  .help-overview-grid {
    grid-template-columns: 1fr;
  }
  .help-system-info {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .help-page-header > span {
    font-size: 36px;
  }
}

/* MD-CyberFun XP 1.5.1 Arbeitsplatz-Nachrichtenstatus */
.dashboard-message-card {
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  color: inherit;
}
.dashboard-message-card:hover,
.dashboard-message-card:focus-visible {
  background: #e8f1ff;
  outline: 1px dotted #174995;
  outline-offset: -4px;
}
.dashboard-message-card.has-unread {
  background: linear-gradient(#fff7d6, #ffe8a8);
  border-color: #d39b28;
}
.dashboard-message-card.has-unread .stat {
  color: #b03520;
}
.dashboard-message-preview {
  display: block;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid #d4d4d4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #555;
}
.dashboard-stats .card {
  min-height: 118px;
}

/* MD-CyberFun XP 1.5.3 – Profilbilder und Zuschnitt */
.avatar,
.login-avatar,
.account-avatar {
  overflow: hidden;
}
.avatar img,
.login-avatar img,
.account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar img {
  border-radius: 2px;
}
.login-avatar img,
.account-avatar img {
  border-radius: 3px;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0 4px;
}
.profile-crop-dialog {
  width: min(760px, calc(100vw - 24px));
}
.profile-crop-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(220px, 1fr);
  gap: 18px;
  align-items: start;
}
.profile-crop-stage {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 1;
  margin: auto;
  background: #202020;
  border: 2px inset #fff;
  overflow: hidden;
  touch-action: none;
  cursor: move;
}
.profile-crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.profile-crop-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.88),
    inset 0 0 28px rgba(0, 0, 0, 0.28);
}
.profile-crop-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-crop-tools p {
  margin: 0;
}
.profile-crop-tools label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: bold;
}
.profile-crop-tools input[type='range'] {
  width: 100%;
}
.profile-crop-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid #9eb5cf;
  background: #fff;
}
.profile-crop-preview canvas {
  width: 72px;
  height: 72px;
  border: 2px solid #fff;
  border-radius: 5px;
  box-shadow: 0 0 0 1px #7f9db9;
  object-fit: cover;
}
.profile-crop-preview span {
  font-weight: bold;
  color: #174995;
}
@media (max-width: 680px) {
  .profile-crop-layout {
    grid-template-columns: 1fr;
  }
  .profile-crop-tools {
    gap: 7px;
  }
  .profile-crop-preview {
    justify-content: center;
  }
  .profile-crop-dialog .dialog-body {
    max-height: calc(100vh - 150px);
    overflow: auto;
  }
}

/* MD-CyberFun XP 1.6.0 – Explorer und Texteditor */
.choice-dialog {
  width: min(520px, calc(100vw - 24px));
}
.choice-message p {
  margin: 7px 0 0;
}
.explorer-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.explorer-address {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: #ece9d8;
  border-bottom: 1px solid #9da9b8;
}
.explorer-address label {
  font-weight: bold;
}
.explorer-address input {
  min-width: 0;
  background: #fff;
}
.explorer-main {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.explorer-tree {
  overflow: auto;
  padding: 8px 5px;
  background: linear-gradient(180deg, #7ba2dc, #4d7fc4);
  border-right: 2px groove #fff;
  color: #fff;
}
.tree-node {
  display: block;
  width: 100%;
  min-height: 27px;
  padding: 5px 7px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
}
.tree-node.level-1 {
  padding-left: 18px;
}
.tree-node.level-2 {
  padding-left: 31px;
}
.tree-node.level-3 {
  padding-left: 44px;
}
.tree-node.level-4 {
  padding-left: 57px;
}
.tree-node small {
  display: block;
  margin-left: 22px;
  color: #e8f2ff;
}
.tree-node.selected {
  border-color: #fff;
  background: rgba(0, 49, 138, 0.68);
  box-shadow: inset 0 0 0 1px #174995;
}
.explorer-files {
  min-width: 0;
  overflow: auto;
  background: #fff;
}
.explorer-files > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: linear-gradient(#fff, #e7eff9);
  border-bottom: 1px solid #9db7d2;
  color: #174995;
}
.explorer-files > header small {
  color: #555;
}
.explorer-table {
  width: 100%;
  border-collapse: collapse;
}
.explorer-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ece9d8;
}
.explorer-table td,
.explorer-table th {
  padding: 5px 7px;
  border-right: 1px solid #d5d5d5;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  white-space: nowrap;
}
.explorer-file-row {
  cursor: default;
}
.explorer-file-row:hover,
.explorer-file-row.selected {
  background: #316ac5;
  color: #fff;
}
.explorer-file-row:focus {
  outline: 1px dotted #fff;
  outline-offset: -3px;
}
.explorer-name {
  display: flex;
  align-items: center;
  gap: 7px;
}
.explorer-actions {
  display: flex;
  gap: 4px;
}
.explorer-empty {
  padding: 40px 15px;
  line-height: 2;
}
.text-editor-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.editor-filename-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
}
.editor-filename-label input {
  width: min(260px, 35vw);
}
.editor-pathbar {
  padding: 4px 8px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #9d9d9d;
  background: #ece9d8;
  color: #333;
}
.text-editor-area {
  flex: 1;
  min-height: 0;
  width: 100%;
  resize: none;
  border: 2px inset #fff;
  border-radius: 0;
  padding: 10px;
  background: #fff;
  color: #111;
  font:
    15px/1.45 'Lucida Console',
    'Courier New',
    monospace;
  tab-size: 4;
  white-space: pre;
  overflow: auto;
}
@media (max-width: 780px) {
  .explorer-main {
    grid-template-columns: 1fr;
  }
  .explorer-tree {
    max-height: 170px;
    border-right: 0;
    border-bottom: 2px groove #fff;
  }
  .explorer-address {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .explorer-address button {
    display: none;
  }
  .explorer-files > header {
    flex-direction: column;
  }
  .explorer-actions {
    display: flex;
  }
  .editor-filename-label {
    width: 100%;
    order: 5;
  }
  .editor-filename-label input {
    width: 100%;
  }
  .text-editor-area {
    font-size: 14px;
  }
}

/* MD-CyberFun XP 1.6.1 – PWA-Installation */
.login-install-button {
  margin-left: auto;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: linear-gradient(#69c45e, #188b21);
  color: #fff;
  font-weight: bold;
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.6),
    inset -1px -1px rgba(0, 0, 0, 0.35);
}
.login-install-button:hover {
  filter: brightness(1.08);
}
.login-footer > .login-install-button + span {
  margin-left: 0;
}
@media (max-width: 760px) {
  .login-footer {
    height: auto;
    min-height: 94px;
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .login-install-button {
    order: 3;
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
  .login-footer > span {
    margin-left: auto;
  }
}

/* MD-CyberFun XP 1.6.2 – Touch-Menüs und PWA-Diagnose */
#start-button,
.start-menu,
.start-menu button,
.window-menu-button,
.window-menu-popup,
.window-menu-popup button,
[data-pwa-install] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.window-menu-popup {
  overscroll-behavior: contain;
}
.pwa-diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 1fr);
  gap: 5px 12px;
  padding: 8px;
  border: 1px solid #9eb5cf;
  background: #fff;
}
.pwa-diagnostic-grid span {
  color: #444;
}
.pwa-diagnostic-grid strong {
  overflow-wrap: anywhere;
}
@media (hover: none) and (pointer: coarse) {
  .window-menu-popup {
    top: 28px;
    min-width: 190px;
  }
  .window-menu-popup button {
    min-height: 44px;
    font-size: 15px;
  }
  .start-menu button {
    min-height: 44px;
  }
  .window-menubar button:hover,
  .start-menu button:hover {
    background: transparent;
    color: inherit;
  }
  .window-menu-popup button:active,
  .start-menu button:active {
    background: #316ac5;
    color: #fff;
  }
}
@media (max-width: 520px) {
  .pwa-diagnostic-grid {
    grid-template-columns: 1fr;
  }
  .choice-dialog {
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
}

/* MD-CyberFun XP 1.8.0 – Pausenspiele */
.break-games-hub,
.game-shell {
  min-height: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #f8fbff, #dce9f8);
  color: #111;
}
.break-games-hub {
  padding: 18px;
  overflow: auto;
}
.break-games-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid #8aa7c7;
  background: linear-gradient(#fff, #e7f0fa);
  box-shadow: inset 1px 1px #fff;
}
.break-games-header h2,
.game-topbar h2 {
  margin: 0;
  color: #174995;
}
.break-games-header p,
.game-topbar p {
  margin: 5px 0 0;
  color: #444;
}
.break-games-logo {
  font-size: 52px;
  line-height: 1;
}
.break-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.break-game-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 178px;
  padding: 13px;
  border: 1px solid #7f9db9;
  border-radius: 4px;
  background: linear-gradient(#fff, #e7eff9);
  color: #111;
  text-align: left;
  box-shadow:
    inset 1px 1px #fff,
    2px 2px 5px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  overflow: hidden;
}
.break-game-card:hover,
.break-game-card:focus-visible {
  outline: 2px solid #316ac5;
  outline-offset: -3px;
  background: linear-gradient(#fff, #d8eaff);
}
.break-game-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  overflow-wrap: anywhere;
}
.break-game-card strong {
  font-size: 19px;
  line-height: 1.15;
  color: #174995;
}
.break-game-card small {
  line-height: 1.4;
  color: #444;
}
.break-game-card em {
  padding: 5px 10px;
  border: 1px solid #2f70b7;
  border-radius: 3px;
  background: linear-gradient(#5ca6ef, #2369b2);
  color: #fff;
  font-style: normal;
  font-weight: bold;
}
.break-game-preview {
  display: grid;
  width: 96px;
  height: 96px;
  min-width: 0;
  min-height: 0;
  margin: auto;
  border: 3px solid #174995;
  background: #fff;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
  overflow: hidden;
}
.ttt-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.ttt-preview i {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border: 1px solid #7795b7;
  font: 700 21px/1 Arial;
  color: #1e5db5;
  font-style: normal;
}
.ttt-preview i:nth-child(even) {
  color: #c43c28;
}
.connect-four-preview {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 4px;
  background: #1766bf;
}
.connect-four-preview i {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.45);
}
.connect-four-preview i.red {
  background: #e23a2e;
}
.connect-four-preview i.yellow {
  background: #ffd83d;
}
.rps-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: linear-gradient(135deg, #fff, #dce9f8);
}
.rps-preview i {
  display: grid;
  place-items: center;
  min-width: 0;
  font-size: 25px;
  font-style: normal;
}
.break-games-note {
  margin-top: 15px;
}
.break-games-note p {
  margin-bottom: 0;
}
.game-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px;
  overflow: auto;
}
.game-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(100%, 900px);
  box-sizing: border-box;
  padding: 10px 13px;
  border: 1px solid #9eb5cf;
  background: rgba(255, 255, 255, 0.9);
}
.game-score {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  border: 1px solid #7f9db9;
  background: #fff;
}
.game-score span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  border-right: 1px solid #c8d4e1;
}
.game-score span:last-child {
  border-right: 0;
}
.game-score strong {
  font-size: 21px;
  color: #174995;
}
.game-score small {
  font-size: 10px;
  color: #555;
}
.game-status {
  width: min(100%, 900px);
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #8fa7bf;
  background: #fff8c9;
  text-align: center;
  font-weight: bold;
  color: #4d3900;
}
.game-status.finished {
  background: #dff2d6;
  color: #205719;
}
.game-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  width: min(100%, 900px);
}
.piece-x {
  color: #1459b5;
}
.piece-o {
  color: #c43c28;
}

/* Feste Reihen verhindern, dass X oder O die Zellengröße verändert. */
.tic-tac-toe-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  width: min(480px, 72vh, 88vw);
  height: min(480px, 72vh, 88vw);
  flex: 0 0 auto;
  border: 4px ridge #d9d9d9;
  background: #174995;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.tic-tac-toe-cell {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #174995;
  background: linear-gradient(#fff, #e8f0fa);
  font: 700 clamp(48px, 12vh, 94px)/1 Arial;
  cursor: pointer;
  touch-action: manipulation;
  box-sizing: border-box;
}
.tic-tac-toe-cell > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}
.tic-tac-toe-cell:not(:disabled):hover {
  background: #d8eaff;
}
.tic-tac-toe-cell:disabled {
  opacity: 1;
  color: inherit;
}
.tic-tac-toe-cell.winning {
  background: #fff3a6;
  animation: game-win-pulse 0.75s ease-in-out infinite alternate;
}

.connect-four-wrap {
  width: min(670px, 94vw);
}
.connect-four-controls {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 4px;
}
.connect-four-controls button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid #174995;
  background: linear-gradient(#fff, #cfe2f8);
  color: #174995;
  font-weight: bold;
  cursor: pointer;
  touch-action: manipulation;
}
.connect-four-controls button:not(:disabled):hover {
  background: #fff2a6;
}
.connect-four-controls button:disabled {
  opacity: 0.45;
}
.connect-four-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 5px;
  padding: 8px;
  border: 4px ridge #d6e6ff;
  border-radius: 7px;
  background: linear-gradient(#2c7ed4, #0754a9);
  box-shadow: 3px 4px 9px rgba(0, 0, 0, 0.3);
}
.connect-four-cell {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  padding: 7%;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.connect-four-cell span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #eef3f7;
  box-shadow:
    inset 3px 3px 7px rgba(0, 0, 0, 0.48),
    1px 1px rgba(255, 255, 255, 0.65);
}
.connect-four-cell.human span {
  background: radial-gradient(circle at 35% 30%, #ff8b80, #e02c22 52%, #9f120c);
}
.connect-four-cell.computer span {
  background: radial-gradient(circle at 35% 30%, #fff8a3, #ffd229 52%, #c99300);
}
.connect-four-cell.last-move span {
  outline: 3px solid #fff;
  outline-offset: -5px;
}
.connect-four-cell.winning span {
  outline: 4px solid #7dff6d;
  outline-offset: -5px;
  animation: game-win-pulse 0.75s ease-in-out infinite alternate;
}
.connect-four-cell:disabled {
  opacity: 1;
}
.disc-label {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 9px;
  color: #fff;
}
.disc-label.human {
  background: #d72c23;
}
.disc-label.computer {
  background: #d7a800;
  color: #111;
}

.rps-shell {
  justify-content: flex-start;
}
.rps-arena {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 70px minmax(180px, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 760px);
  margin: 12px auto;
}
.rps-player-panel {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px;
  border: 1px solid #7f9db9;
  background: linear-gradient(#fff, #e5eef9);
  box-shadow:
    inset 1px 1px #fff,
    2px 2px 5px rgba(0, 0, 0, 0.15);
}
.rps-player-panel h3 {
  margin: 0;
  color: #174995;
}
.rps-result-symbol {
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border: 3px solid #174995;
  border-radius: 50%;
  background: #fff;
  font-size: 70px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.14);
}
.rps-result-symbol.thinking {
  animation: rps-thinking 0.8s ease-in-out infinite alternate;
}
.rps-versus {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: #174995;
  text-shadow: 1px 1px #fff;
}
.rps-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 720px);
}
.rps-choices button {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid #2a63a3;
  border-radius: 6px;
  background: linear-gradient(#fff, #dbe9f8);
  color: #174995;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}
.rps-choices button span {
  font-size: 55px;
}
.rps-choices button strong {
  font-size: 18px;
}
.rps-choices button:not(:disabled):hover,
.rps-choices button:not(:disabled):focus-visible {
  background: #fff4b3;
  transform: translateY(-2px);
}
.rps-choices button:disabled {
  opacity: 0.55;
  cursor: default;
}
@keyframes rps-thinking {
  from {
    transform: rotate(-8deg) scale(0.96);
  }
  to {
    transform: rotate(8deg) scale(1.04);
  }
}
@keyframes game-win-pulse {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.28);
  }
}

@media (max-width: 760px) {
  .break-games-hub {
    padding: 10px;
  }
  .break-games-grid {
    grid-template-columns: 1fr;
  }
  .break-game-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 140px;
    padding: 10px;
  }
  .break-game-preview {
    width: 84px;
    height: 84px;
  }
  .break-game-card strong {
    font-size: 18px;
  }
  .game-shell {
    padding: 9px;
    gap: 9px;
  }
  .game-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .game-score {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }
  .tic-tac-toe-board {
    width: min(430px, 86vw);
    height: min(430px, 86vw);
  }
  .connect-four-board {
    gap: 3px;
    padding: 5px;
  }
  .connect-four-cell {
    padding: 5%;
  }
  .connect-four-controls button {
    min-height: 40px;
  }
  .rps-arena {
    grid-template-columns: 1fr 42px 1fr;
    gap: 7px;
  }
  .rps-player-panel {
    min-height: 170px;
    padding: 8px;
  }
  .rps-result-symbol {
    width: 90px;
    height: 90px;
    font-size: 50px;
  }
  .rps-versus {
    font-size: 20px;
  }
  .rps-choices button {
    min-height: 104px;
  }
  .rps-choices button span {
    font-size: 43px;
  }
}
@media (max-width: 430px) {
  .break-games-header {
    padding: 9px;
  }
  .break-games-logo {
    font-size: 40px;
  }
  .break-game-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .break-game-preview {
    width: 68px;
    height: 68px;
  }
  .break-game-card small {
    font-size: 11px;
  }
  .game-actions .xp-button {
    flex: 1 1 130px;
    min-height: 40px;
  }
  .connect-four-board {
    gap: 2px;
    padding: 4px;
  }
  .connect-four-cell.last-move span {
    outline-width: 2px;
  }
  .rps-arena {
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 4px auto;
  }
  .rps-versus {
    padding: 0;
  }
  .rps-player-panel {
    min-height: 116px;
  }
  .rps-result-symbol {
    width: 68px;
    height: 68px;
    font-size: 38px;
  }
  .rps-choices {
    gap: 5px;
  }
  .rps-choices button {
    min-height: 90px;
  }
  .rps-choices button span {
    font-size: 36px;
  }
  .rps-choices button strong {
    font-size: 13px;
  }
}

/* MD-CyberFun XP 1.9.0 – JSON Office */
.office-save-question {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.office-save-question > div:first-child {
  font-size: 34px;
}
.office-save-question p {
  margin-bottom: 0;
}
.office-hub {
  min-height: 100%;
  box-sizing: border-box;
  padding: 18px;
  overflow: auto;
  background: linear-gradient(135deg, #f7fbff, #dce9f8);
}
.office-hub-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 17px;
  border: 1px solid #7898bc;
  background: linear-gradient(#fff, #e7f0fa);
  box-shadow: inset 1px 1px #fff;
}
.office-hub-header > span {
  font-size: 52px;
}
.office-hub-header h2 {
  margin: 0;
  color: #174995;
}
.office-hub-header p {
  margin: 5px 0 0;
}
.office-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.office-hub-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 180px;
  padding: 16px;
  border: 1px solid #7f9db9;
  border-radius: 5px;
  background: linear-gradient(#fff, #e8f0fa);
  text-align: left;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.16);
}
.office-hub-card:hover,
.office-hub-card:focus-visible {
  outline: 2px solid #316ac5;
  outline-offset: -3px;
  background: linear-gradient(#fff, #d8eaff);
}
.office-hub-card > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}
.office-hub-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 108px;
  border: 2px solid #25599a;
  border-radius: 4px;
  background: #fff;
  font-size: 55px;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.12);
}
.office-hub-card strong {
  font-size: 23px;
  color: #174995;
}
.office-hub-card small {
  line-height: 1.45;
}
.office-hub-card em {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 10px;
  background: #d8eaff;
  color: #174995;
  font-style: normal;
  font-weight: bold;
}
.office-hub-storage {
  margin-top: 15px;
}
.office-filebar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-bottom: 1px solid #8aa3bd;
  background: linear-gradient(#f8f8f8, #dedede);
  flex-wrap: wrap;
}
.office-filebar .spacer {
  flex: 1;
}
.office-filebar label {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.office-filebar label input {
  width: min(260px, 42vw);
}
.office-toolbar-separator {
  align-self: stretch;
  width: 1px;
  margin: 1px 2px;
  background: #9ea8b4;
  border-right: 1px solid #fff;
}
.office-color-control {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 25px;
  padding: 1px 4px;
  border: 1px solid #8b8b8b;
  background: #f4f4f4;
  font-weight: bold;
}
.office-color-control.highlight {
  background: #fff8cf;
}
.office-color-control input {
  width: 25px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* MD Writer */
.writer-shell {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  background: #c7ccd3;
}
.writer-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border-bottom: 1px solid #8b98a7;
  background: linear-gradient(#f4f4f4, #d8d8d8);
  flex-wrap: wrap;
}
.writer-toolbar button,
.sheet-toolbar button {
  min-width: 28px;
  min-height: 27px;
  padding: 3px 6px;
  border: 1px solid #898989;
  background: linear-gradient(#fff, #dedede);
  color: #111;
  cursor: pointer;
}
.writer-toolbar button:hover,
.sheet-toolbar button:hover {
  background: #fff3ad;
}
.writer-toolbar select,
.sheet-toolbar select {
  min-height: 27px;
}
.writer-workspace {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  background: #9ca3ac;
}
.writer-page {
  box-sizing: border-box;
  width: min(210mm, calc(100% - 20px));
  min-height: 297mm;
  margin: 0 auto;
  padding: 22mm 20mm;
  background: #fff;
  color: #111;
  box-shadow: 0 3px 13px rgba(0, 0, 0, 0.45);
  outline: none;
  overflow-wrap: anywhere;
}
.writer-page:focus {
  box-shadow:
    0 3px 13px rgba(0, 0, 0, 0.45),
    0 0 0 2px #316ac5;
}
.writer-page p {
  margin: 0.45em 0;
}
.writer-page h1,
.writer-page h2,
.writer-page h3 {
  color: inherit;
}
.writer-page blockquote {
  margin: 1em 2em;
  padding-left: 1em;
  border-left: 4px solid #9fb4cc;
  color: #444;
}

/* MD Sheet */
.sheet-shell {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  background: #d7e1ee;
}
.sheet-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border-bottom: 1px solid #8b98a7;
  background: linear-gradient(#f4f4f4, #d8d8d8);
  flex-wrap: wrap;
}
.sheet-formula-bar {
  display: grid;
  grid-template-columns: 80px 34px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #7f9db9;
  background: #f5f5f5;
}
.sheet-formula-bar input {
  min-width: 0;
  height: 29px;
  border: 0;
  border-right: 1px solid #aaa;
  padding: 3px 7px;
}
.sheet-formula-bar span {
  text-align: center;
  font-style: italic;
  font-weight: bold;
  color: #28548a;
}
.sheet-grid-viewport {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
  outline: none;
}
.sheet-grid {
  display: grid;
  grid-template-columns: 48px repeat(var(--sheet-columns), 96px);
  grid-auto-rows: 27px;
  width: max-content;
  min-width: 100%;
  font:
    12px Arial,
    sans-serif;
}
.sheet-corner,
.sheet-column-header,
.sheet-row-header {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border-right: 1px solid #8e9bab;
  border-bottom: 1px solid #8e9bab;
  background: linear-gradient(#f5f5f5, #d8e0e9);
  font-weight: bold;
  color: #253a52;
  z-index: 2;
}
.sheet-corner {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 5;
}
.sheet-column-header {
  position: sticky;
  top: 0;
  z-index: 4;
}
.sheet-row-header {
  position: sticky;
  left: 0;
  z-index: 3;
}
.sheet-cell {
  min-width: 0;
  overflow: hidden;
  padding: 3px 5px;
  border: 0;
  border-right: 1px solid #d6dde5;
  border-bottom: 1px solid #d6dde5;
  background: #fff;
  color: #111;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: cell;
}
.sheet-cell:hover {
  background: #eef6ff;
}
.sheet-cell.active {
  position: relative;
  z-index: 1;
  outline: 2px solid #177245;
  outline-offset: -2px;
  background: #f7fff9;
}
.sheet-cell.formula-error {
  color: #b00020;
  font-weight: bold;
}
.sheet-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 7px;
  border-top: 1px solid #8799aa;
  background: #e5e9ee;
}
.sheet-tabs button {
  padding: 4px 16px;
  border: 1px solid #8192a4;
  background: #fff;
}
.sheet-tabs button.active {
  border-bottom: 2px solid #177245;
  font-weight: bold;
}
.sheet-tabs small {
  color: #555;
}
.explorer-new-toolbar {
  row-gap: 5px;
}
.explorer-empty-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .office-hub {
    padding: 10px;
  }
  .office-hub-grid {
    grid-template-columns: 1fr;
  }
  .office-hub-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 135px;
    padding: 10px;
  }
  .office-hub-icon {
    width: 70px;
    height: 84px;
    font-size: 42px;
  }
  .office-hub-card strong {
    font-size: 19px;
  }
  .office-filebar label {
    width: 100%;
  }
  .office-filebar label input {
    flex: 1;
    width: auto;
  }
  .writer-workspace {
    padding: 8px;
  }
  .writer-page {
    width: 100%;
    min-height: calc(100vh - 190px);
    padding: 18px 14px;
  }
  .writer-toolbar {
    max-height: 92px;
    overflow: auto;
  }
  .sheet-toolbar {
    max-height: 76px;
    overflow: auto;
  }
  .sheet-grid {
    grid-template-columns: 42px repeat(var(--sheet-columns), 88px);
  }
  .sheet-tabs small {
    display: none;
  }
}
@media (max-width: 480px) {
  .office-hub-header > span {
    font-size: 40px;
  }
  .office-hub-card {
    grid-template-columns: 65px minmax(0, 1fr);
  }
  .office-hub-icon {
    width: 56px;
    height: 68px;
    font-size: 34px;
  }
  .writer-page {
    font-size: 14px;
  }
  .sheet-grid {
    grid-template-columns: 38px repeat(var(--sheet-columns), 78px);
  }
}

/* MD-CyberFun XP 1.9.1 – freundlicher Kindermodus */
.game-top-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.game-difficulty {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 138px;
  padding: 5px 7px;
  border: 1px solid #9eb5cf;
  background: #f5f9ff;
}
.game-difficulty span {
  font-size: 10px;
  color: #555;
}
.game-difficulty select {
  min-height: 28px;
  border: 1px solid #7f9db9;
  background: #fff;
  color: #111;
  font: inherit;
}
.break-games-note strong {
  color: #174995;
}
@media (max-width: 760px) {
  .game-top-tools {
    width: 100%;
    justify-content: stretch;
  }
  .game-difficulty {
    flex: 1 1 140px;
  }
  .game-score {
    flex: 2 1 250px;
  }
}

/* MD-CyberFun XP 1.10.0 – eigene Desktop-Hintergründe */
.desktop.custom-wallpaper::after {
  display: none;
}
.settings-columns {
  align-items: start;
}
.wallpaper-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.wallpaper-status {
  margin: 6px 0 14px;
  padding: 6px 8px;
  border: 1px solid #9eb5cf;
  background: #fff;
}
.settings-preview.custom-wallpaper {
  image-rendering: auto;
}
.settings-preview {
  background-color: #000;
  background-position: center;
  background-repeat: no-repeat;
}
.wallpaper-upload-info {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 10px;
}
.wallpaper-upload-info dt {
  font-weight: bold;
}
.wallpaper-upload-info dd {
  margin: 0;
}
@media (max-width: 780px) {
  .settings-columns {
    grid-template-columns: 1fr;
  }
  .wallpaper-actions .xp-button,
  .profile-actions .xp-button {
    flex: 1 1 170px;
    min-height: 38px;
  }
}

/* MD-CyberFun XP 1.11.0 – Legacy-Export */
.office-filebar [data-editor-export],
.office-filebar [data-writer-doc],
.office-filebar [data-sheet-xls],
.app-toolbar [data-editor-export] {
  white-space: nowrap;
}
.explorer-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
@media (max-width: 780px) {
  .office-filebar {
    align-items: stretch;
  }
  .office-filebar > .xp-button {
    min-height: 38px;
  }
  .explorer-actions .xp-button {
    min-height: 34px;
    flex: 1 1 62px;
  }
}

/* MD-CyberFun XP 1.14.0 – Markdown und Farbpipette */
.markdown-editor-shell,
.markdown-viewer-shell,
.color-picker-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.markdown-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border-bottom: 1px solid #8b98a7;
  background: linear-gradient(#f4f4f4, #d8d8d8);
  flex-wrap: wrap;
}
.markdown-toolbar button {
  min-height: 27px;
  padding: 3px 7px;
  border: 1px solid #898989;
  background: linear-gradient(#fff, #dedede);
  color: #111;
}
.markdown-toolbar button:hover,
.markdown-toolbar button.active {
  background: #fff3ad;
  border-color: #316ac5;
}
.markdown-toolbar .spacer {
  flex: 1;
}
.markdown-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  background: #a9b1bc;
  gap: 1px;
}
.markdown-source {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  resize: none;
  border: 0;
  padding: 14px;
  background: #fff;
  color: #111;
  font:
    14px/1.5 Consolas,
    'Lucida Console',
    'Courier New',
    monospace;
  tab-size: 4;
  outline: none;
}
.markdown-source:focus {
  box-shadow: inset 0 0 0 2px #316ac5;
}
.markdown-preview {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  background: #fff;
  color: #171717;
  font:
    15px/1.58 Arial,
    sans-serif;
  overflow-wrap: anywhere;
}
.markdown-workspace[data-mode='editor'] {
  grid-template-columns: 1fr;
}
.markdown-workspace[data-mode='editor'] .markdown-preview {
  display: none;
}
.markdown-workspace[data-mode='preview'] {
  grid-template-columns: 1fr;
}
.markdown-workspace[data-mode='preview'] .markdown-source {
  display: none;
}
.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  margin: 1.1em 0 0.45em;
  color: #173f73;
  line-height: 1.2;
}
.markdown-preview h1 {
  padding-bottom: 0.25em;
  border-bottom: 2px solid #a9bed7;
}
.markdown-preview h2 {
  padding-bottom: 0.2em;
  border-bottom: 1px solid #c7d4e2;
}
.markdown-preview p {
  margin: 0.65em 0;
}
.markdown-preview pre {
  overflow: auto;
  padding: 12px;
  border: 1px solid #c6c6c6;
  background: #f3f3f3;
  white-space: pre;
}
.markdown-preview code {
  padding: 0.08em 0.25em;
  border-radius: 2px;
  background: #f0f0f0;
  font-family: Consolas, 'Courier New', monospace;
}
.markdown-preview pre code {
  padding: 0;
  background: transparent;
}
.markdown-preview blockquote {
  margin: 0.8em 0;
  padding: 0.2em 0.9em;
  border-left: 4px solid #7f9db9;
  background: #f5f8fb;
  color: #444;
}
.markdown-preview ul,
.markdown-preview ol {
  padding-left: 1.8em;
}
.markdown-preview li {
  margin: 0.25em 0;
}
.markdown-preview a {
  color: #0645ad;
}
.markdown-preview hr {
  border: 0;
  border-top: 1px solid #9caec0;
  margin: 1.3em 0;
}
.markdown-table-wrap {
  max-width: 100%;
  overflow: auto;
}
.markdown-preview table {
  width: 100%;
  border-collapse: collapse;
}
.markdown-preview th,
.markdown-preview td {
  padding: 6px 8px;
  border: 1px solid #9caec0;
}
.markdown-preview th {
  background: #e9f1fa;
}
.markdown-task-list {
  padding-left: 0.4em !important;
  list-style: none;
}
.markdown-task-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.markdown-task-item input {
  margin-top: 0.35em;
}
.markdown-empty {
  color: #666;
  font-style: italic;
}
.markdown-viewer-document {
  flex: 1;
  padding: 28px max(24px, calc((100% - 900px) / 2));
  background: #fff;
}
.color-picker-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  flex: 1;
  min-height: 0;
  gap: 10px;
  padding: 10px;
  background: #c3cad3;
}
.color-image-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border: 1px solid #7f8b9b;
  background: #929aa4;
}
.color-canvas-stage {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 260px;
  overflow: auto;
  padding: 12px;
  background: repeating-conic-gradient(#d8d8d8 0 25%, #f4f4f4 0 50%) 0/20px 20px;
}
.color-canvas-stage canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  cursor: crosshair;
  touch-action: none;
  image-rendering: auto;
}
.color-picker-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 220px;
  padding: 25px;
  text-align: center;
  color: #333;
}
.color-picker-empty > span {
  font-size: 50px;
}
.color-picker-empty small {
  color: #555;
}
.color-crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px #000,
    0 0 5px #000;
}
.color-crosshair::before,
.color-crosshair::after {
  content: '';
  position: absolute;
  background: #fff;
  box-shadow: 0 0 0 1px #000;
}
.color-crosshair::before {
  left: 8px;
  top: -7px;
  width: 2px;
  height: 30px;
}
.color-crosshair::after {
  left: -7px;
  top: 8px;
  width: 30px;
  height: 2px;
}
.color-image-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  background: #ece9d8;
  border-top: 1px solid #fff;
}
.color-image-caption span {
  color: #555;
  text-align: right;
}
.color-details-panel {
  overflow: auto;
  padding: 10px;
  border: 1px solid #7f8b9b;
  background: #ece9d8;
}
.color-details-panel > label {
  display: block;
  margin: 9px 0;
  font-weight: bold;
}
.color-details-panel input {
  min-height: 28px;
}
.color-swatch {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 2px inset #fff;
  font:
    bold 24px Consolas,
    monospace;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}
.color-copy-row,
.color-value-line {
  display: flex;
  align-items: center;
  gap: 5px;
}
.color-copy-row input {
  flex: 1;
  min-width: 0;
  font-family: Consolas, monospace;
}
.color-value-line code {
  flex: 1;
  overflow: auto;
  padding: 7px;
  border: 1px inset #fff;
  background: #fff;
  white-space: nowrap;
}
.color-details-panel fieldset {
  margin: 10px 0;
  padding: 8px;
  border: 1px solid #9b9b9b;
}
.color-rgb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.color-rgb-grid label {
  display: flex;
  align-items: center;
  gap: 3px;
}
.color-rgb-grid input {
  min-width: 0;
  width: 100%;
}
.color-history-block {
  margin-top: 12px;
}
.color-history {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 7px;
}
.color-history button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 3px;
  border: 1px solid #7f9db9;
  background: #fff;
}
.color-history button span {
  height: 28px;
  background: var(--history-color);
}
.color-history button small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.color-native-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.color-native-label input {
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}
@media (max-width: 850px) {
  .markdown-workspace {
    grid-template-columns: 1fr;
  }
  .markdown-workspace[data-mode='split'] .markdown-source,
  .markdown-workspace[data-mode='split'] .markdown-preview {
    min-height: 45vh;
  }
  .color-picker-main {
    grid-template-columns: 1fr;
  }
  .color-details-panel {
    max-height: none;
  }
  .color-image-caption {
    flex-direction: column;
  }
  .color-image-caption span {
    text-align: left;
  }
  .markdown-toolbar {
    max-height: 88px;
    overflow: auto;
  }
}
@media (max-width: 520px) {
  .markdown-viewer-document,
  .markdown-preview {
    padding: 15px;
  }
  .color-history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .color-copy-row,
  .color-value-line {
    align-items: stretch;
    flex-direction: column;
  }
  .color-copy-row input,
  .color-value-line code,
  .color-copy-row button,
  .color-value-line button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* MD-CyberFun XP 1.15.0 – Screenshots, Bildanzeige und Miniaturen */
.capture-hidden {
  visibility: hidden !important;
}
.screenshot-shell,
.image-viewer-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.screenshot-toolbar label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.screenshot-toolbar select {
  min-height: 28px;
}
.screenshot-quality {
  min-width: 220px;
}
.screenshot-quality input {
  width: 110px;
}
.screenshot-quality small {
  min-width: 38px;
}
.screenshot-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  flex: 1;
  min-height: 0;
  gap: 10px;
  padding: 10px;
  background: #c3cad3;
}
.screenshot-preview-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border: 1px solid #7f8b9b;
  background: #929aa4;
}
.screenshot-preview-stage {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 280px;
  overflow: auto;
  padding: 12px;
  background: repeating-conic-gradient(#d8d8d8 0 25%, #f4f4f4 0 50%) 0/20px 20px;
}
.screenshot-preview-stage canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.screenshot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 430px;
  padding: 24px;
  text-align: center;
}
.screenshot-empty span {
  font-size: 54px;
}
.screenshot-empty small {
  color: #555;
}
.screenshot-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 9px;
  background: #ece9d8;
  border-top: 1px solid #fff;
}
.screenshot-caption span {
  color: #555;
}
.screenshot-save-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #7f8b9b;
  background: #ece9d8;
}
.screenshot-save-panel h3 {
  margin: 0 0 3px;
}
.screenshot-save-panel > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: bold;
}
.screenshot-save-panel input {
  min-height: 30px;
}
.screenshot-note {
  margin-top: 8px;
}
.screenshot-note p {
  margin: 0.45em 0 0;
}
.image-viewer-stage {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  background: repeating-conic-gradient(#cfcfcf 0 25%, #ededed 0 50%) 0/20px 20px;
}
.image-viewer-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.image-viewer-info {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 7px;
  border-top: 1px solid #9ca6b0;
  background: #ece9d8;
  color: #444;
}
.explorer-new-toolbar .active {
  background: #fff3ad;
  border-color: #316ac5;
}
.explorer-list-image {
  width: 34px;
  height: 28px;
  object-fit: cover;
  border: 1px solid #8492a2;
  background: #fff;
}
.explorer-list-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  font-size: 22px;
}
.explorer-name {
  gap: 7px;
}
.explorer-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  padding: 10px;
  overflow: auto;
}
.explorer-thumbnail-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #9aa8b7;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.explorer-thumbnail-card:hover,
.explorer-thumbnail-card:focus,
.explorer-thumbnail-card.selected {
  outline: 0;
  border-color: #316ac5;
  background: #e8f1ff;
}
.explorer-thumbnail-preview {
  display: grid;
  place-items: center;
  height: 145px;
  overflow: hidden;
  padding: 7px;
  background: repeating-conic-gradient(#ddd 0 25%, #f5f5f5 0 50%) 0/16px 16px;
}
.explorer-thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.explorer-thumbnail-icon {
  font-size: 58px;
}
.explorer-thumbnail-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 7px;
}
.explorer-thumbnail-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.explorer-thumbnail-copy small {
  color: #555;
}
.explorer-thumbnail-card .explorer-actions {
  padding: 0 7px 7px;
}
.explorer-thumbnail-card .explorer-actions .xp-button {
  flex: 1 1 60px;
}
@media (max-width: 850px) {
  .screenshot-main {
    grid-template-columns: 1fr;
  }
  .screenshot-save-panel {
    max-height: none;
  }
  .screenshot-quality {
    width: 100%;
  }
  .screenshot-toolbar label {
    flex: 1 1 180px;
  }
  .explorer-thumbnail-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
  .explorer-thumbnail-preview {
    height: 115px;
  }
}

/* MD-CyberFun XP 1.16.0 – kategorisiertes Startmenü */
.start-menu {
  width: min(500px, calc(100vw - 12px));
  max-height: calc(100vh - var(--taskbar-h) - 8px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.start-menu[hidden] {
  display: none !important;
}
.start-menu > header,
.start-menu > footer {
  flex: 0 0 auto;
}
.start-columns {
  grid-template-columns: minmax(0, 1.45fr) minmax(160px, 0.85fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.start-programs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.start-system {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.start-category {
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #b7c6db;
  border-radius: 4px;
  background: #f4f7fb;
  box-shadow: inset 0 1px #fff;
}
.start-category.is-open {
  border-color: #6f94ca;
  background: #fff;
}
.start-menu .start-category-toggle {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 7px 8px;
  border-radius: 0;
  font-weight: bold;
  color: #163f78;
  background: linear-gradient(#fff, #e8eef7);
}
.start-menu .start-category-toggle:hover,
.start-menu .start-category-toggle:focus-visible {
  color: #fff;
  background: linear-gradient(#4b8de1, #2363bd);
}
.start-category-icon {
  display: grid;
  place-items: center;
  width: 24px;
  font-size: 18px;
}
.start-category-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.start-category-count {
  min-width: 22px;
  padding: 1px 5px;
  border: 1px solid #b2bfd0;
  border-radius: 10px;
  background: #fff;
  color: #34506f;
  text-align: center;
  font-size: 10px;
}
.start-category-toggle:hover .start-category-count,
.start-category-toggle:focus-visible .start-category-count {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.9);
  color: #183b6d;
}
.start-category-arrow {
  text-align: center;
  font-size: 15px;
}
.start-category-panel {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 3px;
  border-top: 1px solid #ccd7e6;
  background: #fff;
}
.start-category-panel[hidden] {
  display: none !important;
}
.start-menu .start-category-panel .start-app-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 6px 9px 6px 28px;
  border-radius: 3px;
  font-weight: 400;
}
.start-app-icon {
  display: grid;
  place-items: center;
  width: 22px;
  flex: 0 0 22px;
  font-size: 17px;
}
.start-system button {
  min-height: 40px;
}

@media (min-width: 781px) and (max-width: 1100px) {
  .start-menu {
    width: min(520px, 72vw);
  }
  .start-columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.8fr);
  }
  .start-menu .start-category-panel .start-app-button {
    min-height: 41px;
  }
}

@media (max-width: 780px) {
  .start-menu {
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - var(--taskbar-h));
    max-height: calc(100vh - var(--taskbar-h));
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .start-columns {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .start-programs,
  .start-system {
    min-height: auto;
    overflow: visible;
  }
  .start-programs {
    padding: 7px;
  }
  .start-system {
    padding: 7px;
    border-top: 1px solid #9db7df;
  }
  .start-menu .start-category-toggle {
    min-height: 48px;
  }
  .start-menu .start-category-panel .start-app-button {
    min-height: 46px;
    padding-left: 34px;
  }
}

/* MD-CyberFun XP 1.17.0 – Extension-Plattform */
.extension-manager-shell {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  background: #f2f4f7;
}
.extension-manager-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 10px;
  padding: 10px 10px 0;
}
.extension-manager-intro h2 {
  margin: 0 0 5px;
  color: #174995;
}
.extension-manager-intro p {
  margin: 0.35em 0;
}
.extension-security-warning {
  padding: 10px;
  border: 1px solid #d29430;
  background: #fff3c6;
  box-shadow: inset 0 1px #fff;
}
.extension-security-warning strong {
  color: #8a4d00;
}
.extension-install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px;
}
.extension-install-grid .card {
  margin: 0;
}
.extension-install-grid ol {
  margin: 0.5em 0;
  padding-left: 22px;
}
.extension-package-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 10px;
  padding: 0 10px;
}
.extension-package-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #a8b2be;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}
.extension-package-card.is-enabled {
  border-color: #4b8a45;
}
.extension-package-card.is-invalid {
  border-color: #b74444;
  background: #fff5f5;
}
.extension-package-card > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-bottom: 1px solid #d5dbe2;
  background: linear-gradient(#fff, #edf2f7);
}
.extension-package-card h3 {
  margin: 0;
  color: #174995;
}
.extension-package-card header small {
  color: #5c6570;
}
.extension-package-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #b2bfd0;
  border-radius: 7px;
  background: #fff;
  font-size: 27px;
}
.extension-package-card > p {
  flex: 1;
  margin: 0;
  padding: 10px;
  line-height: 1.4;
}
.extension-package-card dl {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0 10px 10px;
}
.extension-package-card dl > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 6px;
}
.extension-package-card dt {
  font-weight: bold;
  color: #465365;
}
.extension-package-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.extension-package-card > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid #d5dbe2;
  background: #f3f5f8;
}
.extension-package-card > footer .xp-button {
  flex: 1 1 90px;
}
.extension-enabled {
  background: #d9f5d6 !important;
  color: #205d1a !important;
}
.extension-runtime-error {
  margin: 18px;
  padding: 16px;
  border: 1px solid #b74444;
  background: #fff0f0;
}
.extension-runtime-error h2 {
  margin-top: 0;
  color: #a02020;
}
.start-category[data-start-category-section='extensions'] .start-category-toggle {
  color: #5b277c;
}
.start-category[data-start-category-section='extensions'].is-open {
  border-color: #8d66aa;
}
@media (max-width: 780px) {
  .extension-manager-intro,
  .extension-install-grid {
    grid-template-columns: 1fr;
  }
  .extension-package-list {
    grid-template-columns: 1fr;
  }
}

/* MD-CyberFun XP 1.20.0 – Worker-Sandbox und geschlossener Shadow DOM */
.window-content.extension-window-content {
  padding: 0 !important;
  overflow: hidden !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: #fff !important;
}
.extension-worker-guard {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  contain: layout paint style;
  isolation: isolate;
}
.extension-worker-shadow-host {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  contain: layout paint style;
}
.extension-security-warning.sandbox {
  border-color: #4f9a5a;
  background: #e9f7e9;
}
.extension-security-warning.sandbox strong {
  color: #23672d;
}
.extension-package-card dl code {
  word-break: break-word;
}

/* MD-CyberFun XP 1.21.0 – Closed-Beta-Zentrale */
.beta-feedback-app,
.beta-center {
  height: 100%;
  min-height: 0;
}
.beta-feedback-app {
  overflow: auto;
  padding: 10px;
}
.beta-consent-card {
  margin-bottom: 10px;
  border-left: 5px solid #316ac5;
}
.beta-feedback-columns {
  align-items: start;
}
.beta-feedback-form textarea,
.beta-feedback-form input,
.beta-feedback-form select,
.beta-tester-table input,
.beta-tester-table select,
.beta-feedback-admin-controls input,
.beta-feedback-admin-controls select {
  width: 100%;
  box-sizing: border-box;
}
.beta-feedback-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
}
.beta-feedback-item {
  padding: 9px;
  border: 1px solid #b7c1ce;
  background: #fff;
}
.beta-feedback-item > div,
.beta-admin-feedback > header,
.beta-pane-toolbar,
.beta-backup-row,
.beta-update-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.beta-feedback-item small,
.beta-admin-feedback small,
.beta-backup-row small,
.beta-update-row small,
.beta-tester-table small {
  display: block;
  color: #5f6f83;
}
.beta-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid #8191a5;
  border-radius: 10px;
  background: #eef2f7;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}
.beta-passed,
.beta-resolved,
.beta-active,
.beta-completed,
.beta-supported {
  border-color: #4a8e57;
  background: #e8f6ea;
  color: #1d662a;
}
.beta-failed,
.beta-critical,
.beta-rejected,
.beta-withdrawn {
  border-color: #b94f4f;
  background: #ffeded;
  color: #8e2020;
}
.beta-warning,
.beta-high,
.beta-paused,
.beta-supported_with_limitations {
  border-color: #b6852e;
  background: #fff5d9;
  color: #77520b;
}
.beta-new,
.beta-confirmed,
.beta-in_progress,
.beta-invited,
.beta-experimental {
  border-color: #477dc7;
  background: #e8f2ff;
  color: #174995;
}
.beta-success {
  padding: 8px;
  border: 1px solid #4a8e57;
  background: #e8f6ea;
  color: #1d662a;
}
.beta-error {
  padding: 8px;
  border: 1px solid #b94f4f;
  background: #ffeded;
  color: #8e2020;
}
.beta-center {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  background: #f4f6f9;
}
.beta-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-right: 1px solid #9da9b7;
  background: #e7ebf1;
  overflow: auto;
}
.beta-tabs button {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  font: inherit;
  color: #263b58;
}
.beta-tabs button:hover,
.beta-tabs button.is-active {
  border-color: #7f9db9;
  background: #fff;
  color: #174995;
  font-weight: bold;
}
.beta-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}
.beta-stats {
  margin-bottom: 10px;
}
.beta-gate {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-bottom: 1px solid #d4dae2;
}
.beta-gate > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: bold;
}
.beta-gate.is-ok > span {
  background: #2e8b45;
  color: #fff;
}
.beta-gate.is-open > span {
  background: #f1c04b;
  color: #533c00;
}
.beta-gate small {
  display: block;
  color: #607086;
}
.beta-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #aeb8c5;
  background: #fff;
}
.beta-table-wrap .data-table {
  min-width: 860px;
  margin: 0;
}
.beta-tester-table progress {
  width: 90px;
}
.beta-admin-feedback {
  margin-bottom: 8px;
}
.beta-admin-feedback header > div {
  min-width: 0;
}
.beta-admin-feedback details {
  margin: 8px 0;
  padding: 7px;
  background: #f7f8fa;
}
.beta-feedback-admin-controls {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) auto;
  gap: 6px;
}
.beta-backup-row,
.beta-update-row {
  margin-bottom: 8px;
}
.beta-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.beta-policy-grid > div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid #b9c3cf;
  background: #fff;
}
.beta-log-list {
  display: grid;
  gap: 7px;
}
.beta-log {
  border: 1px solid #aeb8c5;
  background: #fff;
}
.beta-log header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: #edf1f6;
}
.beta-log pre {
  max-height: 180px;
  margin: 0;
  padding: 8px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.beta-log-error,
.beta-log-critical {
  border-left: 5px solid #ad2626;
}
.beta-log-warning {
  border-left: 5px solid #c28b1d;
}
.beta-docs {
  max-width: 860px;
}
.beta-docs li {
  margin: 8px 0;
  line-height: 1.45;
}
.beta-warning {
  padding: 10px;
  border-width: 1px;
  border-style: solid;
}
.beta-pane code {
  padding: 1px 4px;
  background: #e9edf2;
}
.beta-pane h2 {
  margin-top: 0;
}

/* MD-CyberFun XP 1.21.3 – Login Notice */
.login-private-notice {
  display: block;
  margin-top: 1rem;
  color: #6b7280;
  line-height: 1.5;
}

.login-private-notice a {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 760px) {
  .beta-center {
    display: flex;
    flex-direction: column;
  }
  .beta-tabs {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px;
    border-right: 0;
    border-bottom: 1px solid #9da9b7;
    overflow: visible;
  }
  .beta-tabs button {
    min-width: 0;
    min-height: 42px;
    padding: 5px 2px;
    text-align: center;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .beta-pane {
    flex: 1 1 auto;
    padding: 8px;
  }
  .beta-feedback-app {
    padding: 7px;
  }
  .beta-feedback-columns {
    display: block;
  }
  .beta-feedback-columns > .card {
    margin-bottom: 8px;
  }
  .beta-pane-toolbar,
  .beta-backup-row,
  .beta-update-row,
  .beta-admin-feedback > header {
    align-items: stretch;
    flex-direction: column;
  }
  .beta-feedback-admin-controls {
    grid-template-columns: 1fr;
  }
  .beta-feedback-form input,
  .beta-feedback-form textarea,
  .beta-feedback-form select,
  .beta-tester-table input,
  .beta-tester-table select {
    min-height: 42px;
    font-size: 16px;
  }
  .beta-policy-grid {
    grid-template-columns: 1fr;
  }
  .beta-stats {
    grid-template-columns: 1fr 1fr;
  }
  .beta-log header {
    flex-direction: column;
  }
  .beta-pane .xp-button {
    min-height: 40px;
  }
}
@media (max-width: 420px) {
  .beta-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .beta-stats {
    grid-template-columns: 1fr;
  }
  .beta-feedback-item > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .beta-badge {
    margin-left: 0;
  }
}

/* MD-CyberFun XP 1.21.0.7 – frei wählbare Desktop-Symbole */
.desktop-app-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-height: 260px;
  padding: 6px;
  overflow: auto;
  border: 1px solid #9eb5cf;
  background: #fff;
}
.desktop-app-choice {
  display: grid;
  grid-template-columns: auto 30px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid #d0d8e4;
  border-radius: 3px;
  background: linear-gradient(#fff, #edf2f8);
  cursor: pointer;
}
.desktop-app-choice:hover {
  border-color: #6f94ca;
  background: #e8f1ff;
}
.desktop-app-choice input {
  margin: 0;
}
.desktop-app-choice-icon {
  display: grid;
  place-items: center;
  font-size: 22px;
}
.desktop-app-choice-label {
  min-width: 0;
}
.desktop-app-choice-label strong,
.desktop-app-choice-label small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-app-choice-label small {
  margin-top: 2px;
  color: #657080;
  font-size: 10px;
}
.desktop-app-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0 14px;
}
.desktop-app-choice-actions .xp-button:last-child {
  margin-left: auto;
}
.start-system .start-help-pinned {
  padding-left: 22px;
  font-weight: bold;
  color: #244f86;
}
.start-system [data-action='help'] {
  margin-top: 4px;
  border-top: 1px solid #9db7df;
  border-radius: 0;
  padding-top: 11px;
}
.start-system [data-action='help']:hover,
.start-system .start-help-pinned:hover {
  color: #fff;
}
@media (max-width: 780px) {
  .desktop-app-choices {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .desktop-app-choice {
    min-height: 48px;
  }
  .desktop-app-choice-actions .xp-button {
    flex: 1 1 120px;
    min-height: 40px;
  }
  .desktop-app-choice-actions .xp-button:last-child {
    margin-left: 0;
  }
}

/* MD-CyberFun XP 1.21.0.8 – Fullbackup in der Closed-Beta-Zentrale */
.beta-backup-page {
  display: grid;
  gap: 10px;
}
.beta-backup-page .beta-pane-toolbar {
  margin: 0;
}
.beta-backup-warning {
  border-left: 5px solid #c28b1d;
  background: #fff8df;
  color: #5c4308;
}
.beta-section-divider {
  width: 100%;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid #aeb8c5;
}
.beta-full-backup-row {
  border-left: 5px solid #316ac5;
}
.beta-full-backup-row > div:first-child {
  min-width: 0;
}
.beta-full-backup-row strong {
  overflow-wrap: anywhere;
}
.beta-full-backup-row > div:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .beta-full-backup-row > div:last-child {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    white-space: normal;
  }
  .beta-full-backup-row > div:last-child .xp-button {
    width: 100%;
  }
}

/* 1.21.0.9 · Weckerstatus, Wecktöne und Bildschirmschoner */
.tray-alarm {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  border-radius: 4px !important;
  font-size: 17px;
}
.tray-alarm:hover,
.tray-alarm:focus-visible {
  background: rgba(255, 255, 255, 0.2) !important;
  outline: 1px solid rgba(255, 255, 255, 0.75);
}
.tray-alarm[hidden] {
  display: none !important;
}
.tray-alarm small {
  position: absolute;
  right: 0;
  top: 1px;
  min-width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #d72828;
  color: #fff;
  font:
    700 9px/1 Tahoma,
    sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.alarm-toolbar select {
  max-width: 190px;
}
.alarm-custom-tone-info {
  margin: 0 0 8px;
  padding: 7px 9px;
  border: 1px solid #7da2ce;
  border-radius: 4px;
  background: #eef6ff;
}
.alarm-tone-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.alarm-sound-name {
  margin: -10px 0 16px;
  color: #d9e9ff;
  font-size: 13px;
}
.screensaver {
  position: fixed;
  inset: 0;
  z-index: 11000;
  overflow: hidden;
  cursor: none;
  color: #fff;
  background: radial-gradient(circle at 25% 20%, #16396c 0, #071a38 34%, #01050d 78%, #000 100%);
  user-select: none;
}
.screensaver[hidden] {
  display: none !important;
}
.screensaver::before,
.screensaver::after {
  content: '';
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 360px;
  min-height: 360px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.22;
  animation: screensaver-orbit 22s ease-in-out infinite alternate;
}
.screensaver::before {
  left: -14vw;
  top: -18vw;
  background: #2787ff;
}
.screensaver::after {
  right: -17vw;
  bottom: -23vw;
  background: #5d2cff;
  animation-delay: -9s;
}
.screensaver-clock {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  min-width: min(680px, 88vw);
  padding: 34px 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: rgba(0, 8, 24, 0.28);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  text-align: center;
  transform: translate(-50%, -50%);
  animation: screensaver-float 18s ease-in-out infinite alternate;
}
.screensaver-clock time {
  display: block;
  font:
    300 clamp(64px, 14vw, 160px)/0.95 'Segoe UI',
    Tahoma,
    sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.75);
}
.screensaver-clock div {
  margin-top: 18px;
  font-size: clamp(19px, 3vw, 34px);
  text-transform: capitalize;
  text-shadow: 0 2px 8px #000;
}
.screensaver-clock small {
  display: block;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.screensaver-active .taskbar {
  pointer-events: none;
}
@keyframes screensaver-float {
  0% {
    transform: translate(-52%, -48%);
  }
  100% {
    transform: translate(-47%, -53%);
  }
}
@keyframes screensaver-orbit {
  0% {
    transform: translate(0, 0) scale(0.9);
  }
  100% {
    transform: translate(12vw, 9vh) scale(1.15);
  }
}
@media (max-width: 780px) {
  .tray-alarm {
    min-width: 30px;
    padding: 3px !important;
  }
  .alarm-toolbar {
    align-items: stretch;
  }
  .alarm-toolbar .spacer {
    display: none;
  }
  .alarm-toolbar select {
    max-width: none;
    flex: 1 1 150px;
  }
  .alarm-tone-field {
    grid-template-columns: 1fr;
  }
  .screensaver-clock {
    min-width: 88vw;
    padding: 28px 18px;
  }
  .screensaver-clock small {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .screensaver::before,
  .screensaver::after,
  .screensaver-clock {
    animation: none;
  }
}
