/*
 * 7.css compatibility layer for Millennium XP Desktop
 * Visual values and control artwork are adapted from khang-nd/7.css (MIT).
 * https://github.com/khang-nd/7.css
 */

html[data-theme="win7"] {
  --w7-font: 9pt "Segoe UI", "Microsoft YaHei UI", "Noto Sans", sans-serif;
  --w7-surface: #f0f0f0;
  --w7-w-bg: #4580c4;
  --w7-w-glass:
    linear-gradient(135deg, rgba(255, 255, 255, .33) 70px, transparent 100px),
    linear-gradient(225deg, rgba(255, 255, 255, .33) 70px, transparent 100px),
    linear-gradient(
      54deg,
      rgba(0, 0, 0, .13) 0 4%,
      rgba(102, 102, 102, .07) 6%,
      rgba(0, 0, 0, .13) 8% 10%,
      rgba(0, 0, 0, .13) 15% 16%,
      rgba(170, 170, 170, .07) 17% 18%,
      rgba(0, 0, 0, .13) 23% 24%,
      rgba(187, 187, 187, .13) 25% 26%,
      rgba(0, 0, 0, .13) 31% 34.5%,
      rgba(187, 187, 187, .13) 36% 40%,
      rgba(0, 0, 0, .13) 41% 41.5%,
      rgba(187, 187, 187, .13) 44% 47%,
      rgba(0, 0, 0, .13) 48% 50.5%,
      rgba(0, 0, 0, .13) 56% 56.5%,
      rgba(187, 187, 187, .13) 57% 63%,
      rgba(0, 0, 0, .13) 67% 69%,
      rgba(187, 187, 187, .13) 69.5% 70%,
      rgba(0, 0, 0, .13) 73.5% 74%,
      rgba(187, 187, 187, .13) 74.5% 79%,
      rgba(0, 0, 0, .13) 80% 84%,
      rgba(170, 170, 170, .13) 85% 86%,
      rgba(0, 0, 0, .13) 87%,
      rgba(187, 187, 187, .07) 90%
    )
    left center / 100vw 100vh no-repeat fixed;
  --w7-border: rgba(0, 0, 0, .7);
  --w7-element-border: #8e8f8f;
  --w7-element-border-hover: #3c7fb1;
  --w7-element-border-active: #6d91ab;
  --w7-element-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
  --w7-element-gradient: linear-gradient(#f2f2f2 45%, #ebebeb 45%, #cfcfcf);
  --w7-element-gradient-hover: linear-gradient(#eaf6fd 45%, #bee6fd 45%, #a7d9f5);
  --w7-element-gradient-active: linear-gradient(#e5f4fc, #c4e5f6 30% 50%, #98d1ef 50%, #68b3db);
  --w7-control-gradient: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .3) 45%, rgba(0, 0, 0, .1) 50% 75%, rgba(255, 255, 255, .5));
}

html[data-theme="win7"] body {
  color: #222;
  font: var(--w7-font);
}

/* 7.css Aero glass window frame. */
html[data-theme="win7"] .window {
  isolation: isolate;
  padding: 0 6px 6px;
  border: 1px solid var(--w7-border);
  border-radius: 6px;
  background: transparent;
  box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

html[data-theme="win7"] .window::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 6px;
  background:
    linear-gradient(transparent 20%, rgba(255, 255, 255, .7) 40%, transparent 41%),
    linear-gradient(to right, rgba(255, 255, 255, .4), rgba(0, 0, 0, .1), rgba(255, 255, 255, .2)),
    var(--w7-w-bg);
  background-color: var(--w7-w-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .87);
  opacity: .6;
}

html[data-theme="win7"] .window.open,
html[data-theme="win7"] .window.active {
  display: flex;
  flex-direction: column;
}

html[data-theme="win7"] .window > .titlebar,
html[data-theme="win7"] .window > .menu-row,
html[data-theme="win7"] .window > .browser-toolbar,
html[data-theme="win7"] .window > .viewer-toolbar {
  flex: 0 0 auto;
}

html[data-theme="win7"] .window > .window-body {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  border: 1px solid var(--w7-border);
  background: var(--w7-surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
}

html[data-theme="win7"] .titlebar {
  height: 30px;
  margin: 0 -6px;
  padding: 0 6px 0 8px;
  border: 0;
  border-radius: 6px 6px 0 0;
  color: #000;
  background: var(--w7-w-glass);
  background-attachment: fixed;
  box-shadow: inset 0 1px rgba(255, 255, 255, .86), inset 1px 0 rgba(255, 255, 255, .86), inset -1px 0 rgba(255, 255, 255, .86);
  font: var(--w7-font);
  text-shadow:
    0 0 10px #fff,
    0 0 10px #fff,
    0 0 10px #fff,
    0 0 10px #fff;
}

html[data-theme="win7"] .titlebar > .icon-img {
  width: 16px;
  height: 16px;
  margin-right: 2px;
}

html[data-theme="win7"] .titlebar strong {
  min-width: 0;
  padding-top: 1px;
  overflow: hidden;
  font-weight: 400;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Top-edge title bar control group from 7.css. */
html[data-theme="win7"] .window-controls {
  align-self: flex-start;
  gap: 0;
  margin: -1px 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .45);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 1px rgba(255, 255, 255, .65), 1px 0 rgba(255, 255, 255, .65), -1px 0 rgba(255, 255, 255, .65);
}

html[data-theme="win7"] .window-controls button {
  position: relative;
  display: block;
  width: 29px;
  min-width: 29px;
  height: 19px;
  min-height: 19px;
  margin: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, .45);
  border-radius: 0;
  color: transparent;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .64);
  font-size: 0;
  text-shadow: none;
  image-rendering: pixelated;
}

html[data-theme="win7"] .window-controls button:last-child {
  border-right: 0;
}

html[data-theme="win7"] .window-controls [data-minimize] {
  border-bottom-left-radius: 5px;
  background: url("7-css/icon/minimize.png") no-repeat center 9px, var(--w7-control-gradient);
}

html[data-theme="win7"] .window-controls [data-maximize] {
  background: url("7-css/icon/maximize.png") no-repeat center, var(--w7-control-gradient);
}

html[data-theme="win7"] .window.maximized .window-controls [data-maximize] {
  background: url("7-css/icon/restore.png") no-repeat center, var(--w7-control-gradient);
}

html[data-theme="win7"] .window-controls [data-close] {
  width: 48px;
  min-width: 48px;
  border-bottom-right-radius: 5px;
  background:
    url("7-css/icon/close.png") no-repeat center,
    var(--w7-control-gradient),
    radial-gradient(circle at -60% 50%, rgba(0, 0, 0, .45) 5% 10%, transparent 50%),
    radial-gradient(circle at 160% 50%, rgba(0, 0, 0, .45) 5% 10%, transparent 50%),
    linear-gradient(rgba(224, 161, 151, .9), #cf796a 25% 50%, #d54f36 50%);
}

html[data-theme="win7"] .window.active .window-controls button:hover,
html[data-theme="win7"] .window.active .window-controls button:focus-visible {
  border-color: rgba(0, 0, 0, .55);
  box-shadow: 0 0 7px 3px #5dc4f0, inset 0 0 0 1px rgba(255, 255, 255, .75);
  outline: 0;
}

html[data-theme="win7"] .window.active .window-controls [data-close]:hover,
html[data-theme="win7"] .window.active .window-controls [data-close]:focus-visible {
  background:
    url("7-css/icon/close.png") no-repeat center,
    var(--w7-control-gradient),
    radial-gradient(circle at 50% 170%, #f4e676 10% 20%, transparent 60%),
    linear-gradient(#fb9d8b, #ee6d56 25% 50%, #d42809 50%);
  box-shadow: 0 0 7px 3px #e68e75, inset 0 0 0 1px rgba(255, 255, 255, .75);
}

html[data-theme="win7"] .window-controls button:active {
  filter: brightness(.82);
}

html[data-theme="win7"] .menu-row,
html[data-theme="win7"] .browser-toolbar,
html[data-theme="win7"] .viewer-toolbar {
  border: 1px solid var(--w7-border);
  border-bottom: 0;
  background: linear-gradient(#fff 20%, #f1f4fa 25% 43%, #d4dbee 48%, #e6eaf6);
  color: #222;
}

html[data-theme="win7"] .menu-row {
  min-height: 25px;
  padding: 5px 8px 4px;
}

html[data-theme="win7"] .window .menu-row + .window-body,
html[data-theme="win7"] .window .browser-toolbar + .window-body,
html[data-theme="win7"] .window .viewer-toolbar + .window-body {
  border-top-color: rgba(0, 0, 0, .35);
}

/* 7.css command buttons, scoped away from desktop and file tiles. */
html[data-theme="win7"] .xp-button,
html[data-theme="win7"] .guestbook-form > button,
html[data-theme="win7"] #conn-ok,
html[data-theme="win7"] .pinball-btn {
  position: relative;
  box-sizing: border-box;
  min-width: 75px;
  min-height: 23px;
  padding: 0 12px;
  border: 1px solid var(--w7-element-border);
  border-radius: 3px;
  color: #222;
  background: var(--w7-element-gradient);
  box-shadow: var(--w7-element-shadow);
  font: var(--w7-font);
  text-align: center;
}

html[data-theme="win7"] .xp-button:not(:disabled):hover,
html[data-theme="win7"] .guestbook-form > button:not(:disabled):hover,
html[data-theme="win7"] #conn-ok:not(:disabled):hover,
html[data-theme="win7"] .pinball-btn:not(:disabled):hover {
  border-color: var(--w7-element-border-hover);
  background: var(--w7-element-gradient-hover);
}

html[data-theme="win7"] .xp-button:not(:disabled):active,
html[data-theme="win7"] .xp-button.active,
html[data-theme="win7"] .guestbook-form > button:not(:disabled):active,
html[data-theme="win7"] #conn-ok:not(:disabled):active,
html[data-theme="win7"] .pinball-btn:not(:disabled):active {
  border-color: var(--w7-element-border-active);
  background: var(--w7-element-gradient-active);
  box-shadow: inset 1px 1px rgba(0, 0, 0, .2), inset -1px 1px rgba(0, 0, 0, .06);
}

html[data-theme="win7"] .xp-button:focus-visible,
html[data-theme="win7"] .guestbook-form > button:focus-visible,
html[data-theme="win7"] #conn-ok:focus-visible,
html[data-theme="win7"] .pinball-btn:focus-visible {
  border-color: #5586a3;
  outline: 1px dotted #000;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 2px #98d1ef;
}

html[data-theme="win7"] .window label,
html[data-theme="win7"] .window input,
html[data-theme="win7"] .window textarea,
html[data-theme="win7"] .window select,
html[data-theme="win7"] .window option {
  font: var(--w7-font);
}

html[data-theme="win7"] .window input[type="text"],
html[data-theme="win7"] .window input[type="password"],
html[data-theme="win7"] .window input[type="email"],
html[data-theme="win7"] .window textarea {
  padding: 3px 4px 5px;
  border: 1px solid;
  border-color: #abadb3 #dbdfe6 #e3e9ef #e2e3ea;
  border-radius: 2px;
  outline: 0;
  background: #fff;
  color: #222;
  box-shadow: none;
  appearance: none;
}

html[data-theme="win7"] .window input[type="text"],
html[data-theme="win7"] .window input[type="password"],
html[data-theme="win7"] .window input[type="email"] {
  height: 23px;
}

html[data-theme="win7"] .window input[type="text"]:hover,
html[data-theme="win7"] .window input[type="password"]:hover,
html[data-theme="win7"] .window input[type="email"]:hover,
html[data-theme="win7"] .window textarea:hover {
  border-color: #5794bf #b7d5ea #c7e2f1 #c5daed;
}

html[data-theme="win7"] .window input[type="text"]:focus,
html[data-theme="win7"] .window input[type="password"]:focus,
html[data-theme="win7"] .window input[type="email"]:focus,
html[data-theme="win7"] .window textarea:focus {
  border-color: #3d7bad #a4c9e3 #b7d9ed #b5cfe7;
}

html[data-theme="win7"] .window select {
  height: 23px;
  padding: 2px 30px 2px 3px;
  border: 1px solid var(--w7-element-border);
  border-radius: 3px;
  color: #222;
  background:
    url("7-css/icon/dropdown-arrow.svg") no-repeat center right,
    var(--w7-element-gradient);
  box-shadow: var(--w7-element-shadow);
  appearance: none;
}

html[data-theme="win7"] .window select:not(:disabled):hover {
  border-color: var(--w7-element-border-hover);
  background-image: url("7-css/icon/dropdown-arrow.svg"), var(--w7-element-gradient-hover);
}

html[data-theme="win7"] .window select:not(:disabled):active {
  border-color: var(--w7-element-border-active);
  background-image: url("7-css/icon/dropdown-arrow.svg"), var(--w7-element-gradient-active);
}

html[data-theme="win7"] .window select:disabled {
  color: #838383;
  border-color: #adb2b5;
  background:
    url("7-css/icon/dropdown-arrow-disabled.svg") no-repeat center right,
    #f4f4f4;
}

html[data-theme="win7"] .window input[type="radio"] {
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid var(--w7-element-border);
  border-radius: 50%;
  background: #f6f6f6;
  box-shadow:
    inset 0 0 0 1.5px #f4f4f4,
    inset 1px 1px 0 1.5px #aeaeae,
    inset -1px 0 0 1.5px #ddd,
    inset 3px 3px 6px #ccc;
  appearance: none;
}

html[data-theme="win7"] .window input[type="radio"]:hover {
  border-color: var(--w7-element-border-hover);
  box-shadow:
    inset 0 0 0 1.5px #def9fa,
    inset 1px 1px 0 1.5px #79c6f9,
    inset -1px -1px 0 1.5px #c6e9fc,
    inset 3px 3px 6px #b1dffd;
}

html[data-theme="win7"] .window input[type="radio"]:checked {
  background:
    radial-gradient(circle, #7cd3eb 0 2px, #27506d 2.5px 3.5px, #f6f6f6 4px);
  box-shadow:
    inset 0 0 0 1.5px #f4f4f4,
    inset 1px 1px 0 1.5px #aeaeae,
    inset -1px 0 0 1.5px #ddd;
}

html[data-theme="win7"] .window input[type="radio"]:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 2px;
}

html[data-theme="win7"] .window input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid var(--w7-element-border);
  border-radius: 0;
  background: #f6f6f6;
  box-shadow:
    inset 0 0 0 1px #f4f4f4,
    inset 1px 1px 0 1px #aeaeae,
    inset -1px -1px 0 1px #ddd,
    inset 3px 3px 6px #ccc;
  appearance: none;
}

html[data-theme="win7"] .window input[type="checkbox"]:hover {
  border-color: var(--w7-element-border-hover);
  background: #e9f7fe;
  box-shadow:
    inset 0 0 0 1px #def9fa,
    inset 1px 1px 0 1px #79c6f9,
    inset -1px -1px 0 1px #c6e9fc,
    inset 3px 3px 6px #b1dffd;
}

html[data-theme="win7"] .window input[type="checkbox"]:checked {
  background:
    linear-gradient(135deg, transparent 42%, #4a5f97 43% 56%, transparent 57%) 1px 6px / 6px 5px no-repeat,
    linear-gradient(45deg, transparent 39%, #4a5f97 40% 56%, transparent 57%) 5px 2px / 8px 9px no-repeat,
    #f6f6f6;
}

html[data-theme="win7"] .window input[type="range"] {
  height: 22px;
  padding: 10px 1px;
  border: 0;
  outline: 0;
  background: transparent;
  appearance: none;
}

html[data-theme="win7"] .window input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 3px;
  background: var(--w7-surface);
  box-shadow: inset 1px 1px 1px #999, inset -1px 0 #999, 0 1px #fff;
}

html[data-theme="win7"] .window input[type="range"]::-webkit-slider-thumb {
  width: 10px;
  height: 18px;
  margin-top: -7px;
  border: 0;
  border-radius: 0;
  background: url("7-css/icon/slider-indicator.png") center / contain no-repeat;
  filter: drop-shadow(1px 1px rgba(0, 0, 0, .14));
  appearance: none;
}

html[data-theme="win7"] .window input[type="range"]::-moz-range-track {
  width: 100%;
  height: 3px;
  background: var(--w7-surface);
  box-shadow: inset 1px 1px 1px #999, inset -1px 0 #999, 0 1px #fff;
}

html[data-theme="win7"] .window input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: url("7-css/icon/slider-indicator.png") center / contain no-repeat;
}

html[data-theme="win7"] .conn-theme-progress {
  height: 15px;
  border: 1px solid var(--w7-element-border);
  border-radius: 3px;
  background:
    radial-gradient(circle at 0 50%, rgba(0, 0, 0, .12) 10px, transparent 30px),
    radial-gradient(circle at 100% 50%, rgba(0, 0, 0, .12) 10px, transparent 30px),
    linear-gradient(to bottom, rgba(243, 243, 243, .69), rgba(252, 252, 252, .69) 3px, rgba(219, 219, 219, .69) 6px, rgba(202, 202, 202, .69) 6px, rgba(213, 213, 213, .69)),
    #ddd;
  box-shadow: inset 0 0 0 1px rgba(243, 243, 243, .53), 0 0 0 1px rgba(234, 234, 234, .53);
}

html[data-theme="win7"] .conn-theme-progress > div {
  position: relative;
  overflow: hidden;
  background-color: #0bd82c;
  background-image:
    linear-gradient(to bottom, rgba(243, 243, 243, .69), rgba(252, 252, 252, .69) 3px, rgba(219, 219, 219, .69) 6px, transparent 6px),
    radial-gradient(circle at 0 50%, rgba(0, 0, 0, .18) 10px, transparent 30px),
    radial-gradient(circle at 100% 50%, rgba(0, 0, 0, .18) 10px, transparent 30px),
    linear-gradient(to bottom, transparent 65%, rgba(255, 255, 255, .33)),
    linear-gradient(to bottom, transparent 6px, rgba(202, 202, 202, .2) 6px, rgba(213, 213, 213, .2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

html[data-theme="win7"] .conn-theme-progress > div::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, .5), transparent 40%);
  animation: w7-connection-progress 3s linear infinite;
}

@keyframes w7-connection-progress {
  0% { transform: translateX(-40%); }
  60%, 100% { transform: translateX(100%); }
}

/* System Properties tabs use fixed rows and 7.css tab visuals. */
html[data-theme="win7"] .sysinfo-body {
  grid-template-rows: 24px minmax(0, 1fr);
  align-content: stretch;
}

html[data-theme="win7"] .sysinfo-tabs {
  align-self: start;
  align-items: flex-end;
  height: 24px;
  min-height: 24px;
  gap: 0;
  padding-left: 3px;
  border-bottom: 1px solid var(--w7-element-border);
}

html[data-theme="win7"] .sysinfo-tab {
  align-self: flex-end;
  flex: 0 0 auto;
  height: 23px;
  min-height: 23px;
  margin: 0 0 -1px -1px;
  padding: 2px 8px;
  border: 1px solid var(--w7-element-border);
  border-radius: 3px 3px 0 0;
  background: var(--w7-element-gradient);
  box-shadow: var(--w7-element-shadow);
}

html[data-theme="win7"] .sysinfo-tab.active {
  z-index: 2;
  height: 25px;
  padding-bottom: 4px;
  border-bottom-color: #fff;
  background: #fff;
  box-shadow: none;
}

html[data-theme="win7"] .sysinfo-panel {
  min-height: 0;
  align-content: start;
  overflow: auto;
  border-color: var(--w7-element-border);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .65);
}

/* 7.css-like scrollbars. */
html[data-theme="win7"] ::-webkit-scrollbar {
  width: 16px;
  height: 17px;
}

html[data-theme="win7"] ::-webkit-scrollbar-corner {
  background: #f2f2f2;
}

html[data-theme="win7"] ::-webkit-scrollbar-track:vertical {
  background: linear-gradient(to right, #e5e5e5, var(--w7-surface) 20%);
}

html[data-theme="win7"] ::-webkit-scrollbar-track:horizontal {
  background: linear-gradient(to bottom, #e5e5e5, var(--w7-surface) 20%);
}

html[data-theme="win7"] ::-webkit-scrollbar-thumb {
  border: 1px solid var(--w7-element-border);
  border-radius: 3px;
  background: var(--w7-element-gradient);
  box-shadow: var(--w7-element-shadow);
}

html[data-theme="win7"] ::-webkit-scrollbar-thumb:hover {
  border-color: var(--w7-element-border-hover);
  background: var(--w7-element-gradient-hover);
}

html[data-theme="win7"] ::-webkit-scrollbar-thumb:active {
  border-color: var(--w7-element-border-active);
  background: var(--w7-element-gradient-active);
}

/* Windows 7 desktop shell: glass taskbar and Start orb. */
html[data-theme="win7"] .taskbar {
  height: 42px;
  border-top: 1px solid rgba(255, 255, 255, .58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(14, 35, 62, .7) 46%, rgba(8, 24, 45, .82)),
    rgba(33, 83, 130, .58);
  box-shadow: inset 0 1px rgba(255, 255, 255, .36), 0 -1px 8px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

html[data-theme="win7"] .start-button {
  justify-content: center;
  width: 58px;
  min-width: 58px;
  height: 42px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

html[data-theme="win7"] .start-button:hover {
  background: radial-gradient(circle, rgba(92, 213, 255, .48), transparent 65%);
  box-shadow: none;
}

html[data-theme="win7"] .start-button .windows-mark-img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 4px rgba(116, 224, 255, .8)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5));
}

html[data-theme="win7"] .task-buttons {
  gap: 5px;
  padding: 0 6px;
}

html[data-theme="win7"] .task-buttons button {
  height: 34px;
  border: 1px solid rgba(0, 0, 0, .55);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(rgba(255, 255, 255, .34), rgba(255, 255, 255, .1) 48%, rgba(0, 0, 0, .22) 52%), rgba(81, 137, 188, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  text-shadow: 0 1px 2px #000;
}

html[data-theme="win7"] .task-buttons button:hover {
  background: linear-gradient(rgba(255, 255, 255, .5), rgba(103, 190, 234, .3) 48%, rgba(0, 72, 125, .35) 52%), rgba(81, 159, 210, .65);
}

html[data-theme="win7"] .task-buttons button.active {
  background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, .18) 48%, rgba(255, 255, 255, .12) 52%), rgba(39, 89, 135, .72);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .24);
}

html[data-theme="win7"] .tray {
  border-left: 1px solid rgba(255, 255, 255, .26);
  color: #fff;
  background: rgba(24, 65, 102, .38);
  text-shadow: 0 1px 2px #000;
}

html[data-theme="win7"] .start-menu {
  bottom: 42px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, .72);
  border-radius: 7px 7px 0 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .42), transparent 32%),
    rgba(78, 129, 176, .78);
  box-shadow: 3px 3px 15px rgba(0, 0, 0, .58), inset 0 0 0 1px rgba(255, 255, 255, .7);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

html[data-theme="win7"] .start-menu header {
  margin: -6px -6px 0;
  padding: 8px 12px;
  border-radius: 6px 6px 0 0;
  color: #fff;
  background: transparent;
  text-shadow: 0 1px 2px #000;
}

html[data-theme="win7"] .start-content {
  width: 100%;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, .55);
  border-radius: 4px 4px 0 0;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
}

html[data-theme="win7"] .start-right {
  min-width: 0;
  background: linear-gradient(rgba(235, 245, 255, .94), rgba(205, 226, 244, .94));
}

html[data-theme="win7"] .start-menu footer {
  margin: 0;
  background: rgba(31, 74, 112, .66);
}

html[data-theme="win7"] .floating-player {
  border: 1px solid rgba(0, 0, 0, .58);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .38), transparent 45%),
    rgba(60, 126, 186, .78);
  box-shadow: 2px 3px 12px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 720px) {
  html[data-theme="win7"] .window {
    padding: 0 4px 4px;
  }

  html[data-theme="win7"] .titlebar {
    margin: 0 -4px;
  }

  html[data-theme="win7"] .taskbar,
  html[data-theme="win7"] .start-button {
    height: 46px;
  }

  html[data-theme="win7"] .start-menu {
    bottom: 46px;
  }
}
