:root {
  --taskbar-h: 42px;
  --font-ui: "Segoe UI", Tahoma, Arial, sans-serif;
  --glass: rgba(242, 244, 247, 0.9);
  --ink: #15171b;
  --blue: #1269d3;
  --line: #717982;
  --shadow: 0 22px 55px rgba(11, 20, 35, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  user-select: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.03)),
    url("atm.png") center center / cover no-repeat,
    #1674dd;
}

.desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 65% 28%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(180deg, transparent 0 62%, rgba(0, 0, 0, 0.08) 100%);
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #0d1320;
  color: white;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.boot.hide {
  opacity: 0;
  visibility: hidden;
}

.boot-card {
  width: min(360px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.boot-logo {
  width: 72px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 2px solid white;
  border-radius: 4px;
  background: #115ee8;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.boot-lines {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  text-transform: uppercase;
}

.boot-bar {
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.boot-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1f84ff, #9ad2ff);
  transform-origin: left;
  animation: boot 1400ms ease-in-out forwards;
}

@keyframes boot {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.desktop-icons {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.desktop-icon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 86px;
  min-height: 82px;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 8px 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  color: white;
  cursor: default;
}

.desktop-icon:hover,
.desktop-icon:focus-visible,
.desktop-icon.selected {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(11, 98, 187, 0.34);
  outline: none;
}

.desktop-icon span:last-child {
  max-width: 76px;
  overflow-wrap: anywhere;
  line-height: 1.16;
}

.icon-art {
  position: relative;
  width: 48px;
  height: 42px;
  display: block;
}

.folder-art {
  width: 50px;
  height: 38px;
  margin-top: 3px;
  border: 2px solid #a66c03;
  border-radius: 4px;
  background: linear-gradient(#ffd568, #e79b19);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.22);
}

.folder-art::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -8px;
  width: 24px;
  height: 12px;
  border: 2px solid #a66c03;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #ffd568;
}

.folder-art.photo::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 18px;
  height: 14px;
  border: 2px solid white;
  background: linear-gradient(135deg, #8bd6ff 50%, #55a842 50%);
}

.note-art {
  border: 2px solid #8c8c8c;
  border-radius: 3px;
  background: repeating-linear-gradient(#fffbe5 0 8px, #e5debc 9px 10px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.note-art::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 3px;
  height: 100%;
  background: rgba(198, 57, 57, 0.55);
}

.player-art {
  width: 48px;
  height: 48px;
  border: 2px solid #121820;
  border-radius: 8px;
  background: linear-gradient(#2f3542, #111820);
}

.player-art::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #10151c 0 24%, #f0f2f6 25% 31%, #0f63d8 32% 100%);
}

.player-art::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #49d367;
}

.system-art {
  width: 50px;
  height: 37px;
  margin-top: 4px;
  border: 2px solid #272b30;
  border-radius: 4px;
  background: linear-gradient(#dce5ee, #87929f);
}

.system-art::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -8px;
  height: 7px;
  border-radius: 2px;
  background: #3b424c;
}

.trash-art {
  width: 38px;
  height: 42px;
  border: 2px solid #777;
  border-top: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(210, 216, 224, 0.86));
  clip-path: polygon(8% 8%, 92% 8%, 82% 100%, 18% 100%);
}

.trash-art::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -6px;
  height: 6px;
  border-radius: 2px;
  background: #8a8f96;
}

.calc-art {
  width: 46px;
  height: 48px;
  border: 2px solid #222a33;
  border-radius: 8px;
  background: linear-gradient(#e8edf3, #8f9baa);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.65), 0 2px 5px rgba(0, 0, 0, 0.25);
}

.calc-art::before {
  content: "808";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 15px;
  border-radius: 3px;
  background: #153323;
  color: #72ff9f;
  font-size: 10px;
  line-height: 15px;
  font-family: Consolas, monospace;
  text-align: center;
}

.calc-art::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 14px;
  background:
    radial-gradient(circle, #27313d 0 45%, transparent 48%) 0 0 / 10px 7px,
    radial-gradient(circle, #0b6ef0 0 45%, transparent 48%) 5px 7px / 10px 7px;
}

.receipt-art {
  width: 42px;
  height: 48px;
  border: 2px solid #676c73;
  border-radius: 3px;
  background: repeating-linear-gradient(#fff 0 8px, #e9edf2 9px 10px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}

.receipt-art::before,
.receipt-art::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #20262f;
}

.receipt-art::before { top: 12px; }
.receipt-art::after { top: 24px; }

.signal-art {
  width: 48px;
  height: 48px;
  border: 2px solid #172131;
  border-radius: 50%;
  background: radial-gradient(circle, #5af284 0 16%, #16386b 17% 32%, #111820 33% 100%);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.12), 0 2px 5px rgba(0, 0, 0, 0.25);
}

.signal-art::before,
.signal-art::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(90, 242, 132, 0.9);
  border-radius: 50%;
}

.signal-art::after {
  inset: 15px;
  border-color: rgba(74, 162, 255, 0.9);
}

.window-layer {
  position: absolute;
  inset: 0 0 var(--taskbar-h) 0;
  z-index: 4;
  pointer-events: none;
}

.window {
  position: absolute;
  min-width: 300px;
  min-height: 210px;
  border: 1px solid #223045;
  border-radius: 7px;
  background: #f4f6f9;
  box-shadow: var(--shadow);
  overflow: hidden;
  pointer-events: auto;
}

.window.maximized {
  left: 8px !important;
  top: 8px !important;
  width: calc(100vw - 16px) !important;
  height: calc(100vh - var(--taskbar-h) - 16px) !important;
}

.window.minimized {
  display: none;
}

.titlebar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #59616d;
  background: linear-gradient(#2b7adb, #1454a4);
  color: white;
  cursor: move;
}

.title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  font-size: 13px;
  font-weight: 600;
}

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

.title-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: #ffd152;
  box-shadow: inset 0 -4px rgba(0, 0, 0, 0.14);
}

.window-actions {
  display: flex;
  height: 100%;
}

.window-actions button {
  width: 37px;
  height: 100%;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  line-height: 1;
  cursor: default;
}

.window-actions button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.window-actions .close:hover {
  background: #c73b32;
}

.window-body {
  height: calc(100% - 34px);
  overflow: auto;
  background: #f5f6f8;
}

.resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
}

.explorer {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: #eef1f5;
}

.toolbar {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 6px;
  border-bottom: 1px solid #c5ccd6;
  background: linear-gradient(#ffffff, #dde4ee);
}

.toolbar button,
.player-button,
.tiny-button {
  height: 28px;
  min-width: 32px;
  border: 1px solid #9aa4b1;
  border-radius: 5px;
  background: linear-gradient(#ffffff, #d8dee8);
  color: #1b2430;
  cursor: default;
}

.toolbar button:hover,
.player-button:hover,
.tiny-button:hover {
  border-color: #517fb8;
  background: linear-gradient(#ffffff, #c9dcef);
}

.address {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-bottom: 1px solid #d0d6df;
  background: #f8fafc;
  font-size: 12px;
}

.address span {
  color: #69717c;
}

.path-pill {
  flex: 1;
  min-width: 0;
  padding: 5px 9px;
  border: 1px solid #aeb7c3;
  border-radius: 4px;
  background: white;
  color: #20252d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-view {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
  padding: 16px;
  background: white;
}

.file-view.details {
  display: block;
  padding: 8px;
}

.file-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 96px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #18202b;
  text-align: center;
  cursor: default;
}

.file-item:hover,
.file-item.selected {
  border-color: #9fc8f6;
  background: #e8f2ff;
}

.file-item img {
  width: 74px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #8793a3;
  background: #e9edf3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.file-item .name {
  width: 100%;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.file-item .meta {
  color: #69717b;
  font-size: 11px;
}

.details .file-item {
  grid-template-columns: 34px 1fr 82px 88px;
  justify-items: start;
  align-items: center;
  min-height: 38px;
  text-align: left;
}

.details .file-item img,
.details .file-item .mini-icon {
  width: 28px;
  height: 28px;
}

.mini-icon {
  width: 58px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid #9aa4b1;
  background: linear-gradient(#f7fbff, #cbd6e4);
  color: #0f4b8e;
  font-weight: 800;
}

.statusbar {
  height: 27px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px;
  border-top: 1px solid #c8ced8;
  background: #eff2f6;
  color: #5d6672;
  font-size: 12px;
}

.player {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(135deg, rgba(15, 18, 25, 0.94), rgba(35, 42, 53, 0.94)),
    #171b21;
  color: #f6f8fb;
}

.player-top {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.album {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18)),
    url("atm.png") center / cover no-repeat;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.album span {
  padding: 5px 8px;
  background: rgba(14, 31, 55, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-weight: 800;
}

.now-playing {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.now-playing h2 {
  margin: 0;
  font-size: clamp(18px, 3.4vw, 31px);
  line-height: 1.05;
  letter-spacing: 0;
}

.now-playing p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.meter {
  height: 11px;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 3px;
  align-items: end;
  margin-top: 5px;
}

.meter i {
  height: var(--h);
  min-height: 3px;
  border-radius: 2px 2px 0 0;
  background: #5bff8b;
  opacity: 0.82;
  animation: pulse 850ms ease-in-out infinite alternate;
  animation-delay: var(--d);
}

.player.playing .meter i {
  animation-play-state: running;
}

.player:not(.playing) .meter i {
  animation-play-state: paused;
  opacity: 0.35;
}

@keyframes pulse {
  to { transform: scaleY(0.35); opacity: 0.45; }
}

.playlist {
  margin: 0;
  padding: 10px;
  list-style: none;
  overflow: auto;
}

.playlist li {
  display: grid;
  grid-template-columns: 32px 1fr 54px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
}

.playlist li:hover,
.playlist li.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
}

.track-index {
  color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
}

.track-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-time {
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.controls {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
}

.transport {
  display: flex;
  align-items: center;
  gap: 7px;
}

.transport .grow {
  flex: 1;
}

.range-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  accent-color: #4aa2ff;
}

.viewer {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #11161d;
}

.viewer-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 14px;
}

.viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: white;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.viewer-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: #dce5ee;
  background: rgba(255, 255, 255, 0.08);
}

.notes {
  min-height: 100%;
  padding: 16px;
  background: #fff6bd;
  color: #221d10;
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(68, 77, 114, 0.18) 28px);
  line-height: 28px;
}

.notes h2 {
  margin: 0 0 13px;
  font-size: 23px;
  line-height: 28px;
}

.notes p,
.notes ul {
  margin-top: 0;
}

.notes li {
  margin-bottom: 4px;
}

.system-panel {
  min-height: 100%;
  display: grid;
  grid-template-columns: 170px 1fr;
  background: #fff;
}

.system-sidebar {
  padding: 14px;
  border-right: 1px solid #d4d9e1;
  background: #eef2f7;
}

.system-sidebar strong {
  display: block;
  margin-bottom: 4px;
}

.system-main {
  padding: 16px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.spec {
  min-height: 76px;
  padding: 11px;
  border: 1px solid #d2d8e2;
  border-radius: 7px;
  background: #f8fafc;
}

.spec span {
  display: block;
  color: #67717d;
  font-size: 12px;
}

.calc-app,
.receipt-app,
.signal-app,
.settings-app {
  min-height: 100%;
  color: #17202c;
  background: #f5f7fb;
}

.calc-app {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 220px;
}

.calc-pad {
  padding: 14px;
  border-right: 1px solid #d4dbe5;
}

.calc-display {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.calc-display input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #aeb9c6;
  border-radius: 8px;
  background: #fff;
  font-family: Consolas, monospace;
  font-size: 22px;
}

.calc-output {
  min-height: 74px;
  padding: 10px;
  border: 1px solid #1a2738;
  border-radius: 8px;
  background: #101820;
  color: #9cffb9;
  font-family: Consolas, monospace;
  overflow-wrap: anywhere;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.calc-buttons button,
.odd-button {
  min-height: 40px;
  border: 1px solid #a8b2c0;
  border-radius: 7px;
  background: linear-gradient(#fff, #dce3ed);
  cursor: default;
}

.calc-buttons button:hover,
.odd-button:hover {
  border-color: #4079bd;
  background: linear-gradient(#fff, #cde1f6);
}

.calc-side {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  background: #eef2f7;
}

.calc-stat {
  padding: 10px;
  border: 1px solid #d2d9e4;
  border-radius: 8px;
  background: white;
}

.calc-stat span {
  display: block;
  color: #667180;
  font-size: 12px;
}

.calc-stat strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.tone-bars {
  height: 70px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  align-items: end;
  padding: 7px;
  border-radius: 8px;
  background: #111820;
}

.tone-bars i {
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: #59ee86;
  transition: height 220ms ease;
}

.receipt-app {
  display: grid;
  grid-template-columns: 230px 1fr;
}

.receipt-controls {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border-right: 1px solid #d4dbe5;
  background: #eef2f7;
}

.receipt-controls label {
  display: grid;
  gap: 5px;
  color: #4f5c6c;
  font-size: 12px;
}

.receipt-controls input,
.receipt-controls select {
  height: 32px;
  border: 1px solid #aeb9c6;
  border-radius: 6px;
  background: white;
  color: #1b2430;
}

.receipt-roll {
  padding: 16px;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px) 0 0 / 26px 26px,
    #dce4ee;
}

.receipt-paper {
  width: min(330px, 100%);
  min-height: 320px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #d7d7d7;
  background: repeating-linear-gradient(#fff 0 23px, #f2f2f2 24px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  font-family: Consolas, monospace;
  white-space: pre-wrap;
}

.signal-app {
  display: grid;
  grid-template-columns: 1fr 240px;
  background: #111820;
  color: #e9f1fb;
}

.signal-radar {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(rgba(90, 242, 132, 0.08) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(90, 242, 132, 0.08) 1px, transparent 1px) 0 0 / 36px 36px,
    radial-gradient(circle at 50% 50%, rgba(45, 113, 205, 0.32), transparent 58%),
    #101820;
}

.signal-radar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70vmin;
  height: 70vmin;
  border: 1px solid rgba(90, 242, 132, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.signal-sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 38%;
  background: linear-gradient(#65ff93, transparent);
  transform-origin: bottom center;
  animation: sweep 3.5s linear infinite;
}

@keyframes sweep {
  to { transform: translate(-50%, -100%) rotate(360deg); }
}

.signal-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #65ff93;
  box-shadow: 0 0 16px #65ff93;
}

.signal-dot::after {
  content: attr(data-label);
  position: absolute;
  left: 15px;
  top: -4px;
  min-width: 88px;
  color: #dceeff;
  font-size: 12px;
}

.signal-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.signal-panel label,
.settings-app label {
  display: grid;
  gap: 6px;
  color: inherit;
}

.signal-readout {
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-family: Consolas, monospace;
}

.settings-app {
  display: grid;
  grid-template-columns: 210px 1fr;
}

.settings-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border-right: 1px solid #d4dbe5;
  background: #eef2f7;
}

.settings-main {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
}

.settings-card {
  padding: 14px;
  border: 1px solid #d1d8e3;
  border-radius: 8px;
  background: white;
}

.desktop.dimmed::after {
  background:
    radial-gradient(circle at 65% 28%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32));
}

.desktop.high-contrast .window {
  border-color: #000;
  box-shadow: 0 0 0 2px #fff, 0 18px 55px rgba(0, 0, 0, 0.45);
}

.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  height: var(--taskbar-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
  padding: 5px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(rgba(40, 103, 181, 0.96), rgba(16, 65, 137, 0.96));
  box-shadow: 0 -1px 9px rgba(0, 0, 0, 0.26);
}

.start-button,
.task-button,
.tray-button {
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.15));
  color: white;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.start-button {
  min-width: 92px;
  padding: 0 13px;
  font-weight: 700;
}

.start-button:hover,
.task-button:hover,
.tray-button:hover,
.task-button.active {
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.1));
}

.task-buttons {
  min-width: 0;
  display: flex;
  gap: 5px;
  overflow: hidden;
}

.task-button {
  max-width: 170px;
  min-width: 92px;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.tray {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
}

.tray-button {
  min-width: 40px;
  padding: 0 8px;
  font-size: 11px;
}

.clock {
  min-width: 74px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.42);
}

.start-menu {
  position: absolute;
  left: 8px;
  bottom: calc(var(--taskbar-h) + 6px);
  z-index: 20;
  width: 260px;
  padding: 8px;
  border: 1px solid #263549;
  border-radius: 8px;
  background: rgba(245, 248, 252, 0.96);
  box-shadow: var(--shadow);
}

.modern-start {
  width: min(520px, calc(100vw - 16px));
  padding: 12px;
  border-color: rgba(30, 43, 62, 0.7);
  background: rgba(245, 247, 251, 0.94);
  backdrop-filter: blur(16px);
}

.start-user {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 9px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 6px;
  background: linear-gradient(#2577d5, #1552a1);
  color: white;
}

.start-user span:not(.user-avatar) {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 7px;
  background: #0d1930;
  font-weight: 900;
}

.start-search {
  display: grid;
  gap: 4px;
  margin: 9px 0 11px;
  color: #647080;
  font-size: 12px;
}

.start-search input {
  height: 34px;
  width: 100%;
  padding: 0 11px;
  border: 1px solid #b8c2cf;
  border-radius: 7px;
  background: white;
  color: #1b2430;
}

.start-section-label {
  margin: 10px 3px 7px;
  color: #4c5664;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.start-grid button {
  min-height: 86px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d4dbe4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  cursor: default;
}

.start-tile-icon {
  position: relative;
  display: block;
  transform: scale(0.72);
  transform-origin: center;
}

.start-row,
.start-menu button {
  width: 100%;
  height: 34px;
  display: block;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  text-align: left;
  cursor: default;
}

.start-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 9px;
}

.start-row span {
  color: #6a7380;
  font-size: 12px;
}

.start-menu button:hover,
.start-grid button:hover,
.start-row:hover {
  border-color: #a8c9ef;
  background: #e4f0ff;
}

.modern-start .start-grid button {
  width: auto;
  height: auto;
  min-height: 86px;
  display: grid;
  text-align: center;
}

.context-menu {
  position: fixed;
  z-index: 10000;
  width: 186px;
  padding: 5px;
  border: 1px solid #606873;
  border-radius: 6px;
  background: #fbfcfe;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.context-menu button {
  width: 100%;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
}

.context-menu button:hover {
  background: #e7f1ff;
}

@media (max-width: 720px) {
  .desktop-icon {
    width: 76px;
  }

  .window {
    min-width: 260px;
  }

  .player-top {
    grid-template-columns: 86px 1fr;
    padding: 13px;
  }

  .system-panel {
    grid-template-columns: 1fr;
  }

  .system-sidebar {
    border-right: 0;
    border-bottom: 1px solid #d4d9e1;
  }

  .task-button {
    min-width: 72px;
  }

  .tray-button {
    display: none;
  }
}
