/* ShizukuIchi/winXP inspired Start menu, Internet Explorer and My Computer. */
html[data-theme="xp"] #window-my-computer,
html[data-theme="win7"] #window-my-computer,
html[data-theme="xp"] #window-documents,
html[data-theme="win7"] #window-documents {
  width: 706px;
  height: 561px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 82px);
  min-height: min(400px, calc(100vh - 82px));
}

#window-internet {
  width: 1000px;
  height: 850px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 82px);
}

.xp-app-shell {
  display: flex;
  flex-direction: column;
  height: calc(100% - 31px);
  overflow: hidden;
  background: linear-gradient(90deg, #edede5, #ede8cd);
  color: #111;
  font: 11px Tahoma, "Segoe UI", sans-serif;
}

.xp-menubar {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 24px;
  gap: 0;
  padding-left: 7px;
  border-bottom: 1px solid rgba(0, 0, 0, .16);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
  overflow: visible;
}

.xp-menubar > button {
  position: relative;
  align-self: stretch;
  min-height: 0;
  padding: 0 7px;
  color: #111;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: 11px/22px Tahoma, "Segoe UI", sans-serif;
}
.xp-menubar > button::first-letter { text-decoration: underline; }
.xp-menubar > button:hover,
.xp-menubar > button.menu-active {
  color: #fff;
  background: #1660e8;
}
.xp-menubar > img {
  align-self: stretch;
  width: 39px;
  height: 24px;
  margin-left: auto;
  object-fit: cover;
  border-left: 1px solid #fff;
}

.xp-window-dropdown {
  position: absolute;
  top: 22px;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 2px;
  color: #111;
  border: 1px solid #777;
  background: #fff;
  box-shadow: 2px 2px 1px rgba(65, 65, 65, .75);
  font: 11px/18px Tahoma, "Segoe UI", sans-serif;
  text-align: left;
}

.xp-dropdown-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(max-content, 1fr) max-content 14px;
  align-items: center;
  min-width: 176px;
  min-height: 18px;
  padding: 0;
  color: #111;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font: inherit;
  text-align: left;
  white-space: nowrap;
}

.xp-dropdown-row:hover:not(:disabled) {
  color: #fff;
  background: #1660e8;
}

.xp-dropdown-row:disabled {
  color: #aaa;
  background: #fff;
}

.xp-dropdown-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.xp-dropdown-mark img { max-width: 13px; max-height: 13px; }
.xp-dropdown-mark.circle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.xp-dropdown-text { padding-right: 12px; }
.xp-dropdown-hotkey { padding-left: 18px; }
.xp-dropdown-arrow { padding-left: 4px; font-size: 8px; }
.xp-dropdown-separator {
  height: 7px;
  margin: 0 2px;
  border: solid transparent;
  border-width: 3px 0;
  background: #ccc content-box;
}
.xp-dropdown-row > .xp-window-dropdown {
  top: -3px;
  left: calc(100% - 4px);
  display: none;
}
.xp-dropdown-row.has-submenu:hover > .xp-window-dropdown { display: flex; }

.xp-toolstrip {
  display: flex;
  align-items: center;
  flex: 0 0 38px;
  padding: 1px 3px;
  border-bottom: 1px solid rgba(0, 0, 0, .13);
  overflow: hidden;
}

.xp-toolstrip .tool {
  display: flex;
  align-items: center;
  height: 35px;
  padding: 0 3px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  white-space: nowrap;
}

.xp-toolstrip .tool:hover:not(.disabled) {
  border-color: rgba(0, 0, 0, .14);
  box-shadow: inset 0 -1px rgba(0, 0, 0, .08);
}

.xp-toolstrip .tool:active:not(.disabled) { transform: translate(1px, 1px); }
.xp-toolstrip .tool.disabled { filter: grayscale(1); opacity: .6; }
.xp-toolstrip .tool img { width: 30px; height: 30px; object-fit: contain; }
.xp-toolstrip .tool img.small { width: 22px; height: 22px; margin: 0 3px; }
.xp-toolstrip .tool i {
  width: 0;
  height: 0;
  margin: 0 4px;
  border: 3px solid transparent;
  border-top-color: #111;
  transform: translateY(2px);
}
.xp-toolstrip .icon-only { padding: 0 1px; }
.tool-separator {
  width: 1px;
  height: 31px;
  margin: 0 3px;
  background: rgba(0, 0, 0, .18);
  box-shadow: 1px 0 rgba(255, 255, 255, .8);
}

.xp-addressbar {
  display: flex;
  align-items: center;
  flex: 0 0 23px;
  gap: 4px;
  padding: 1px 3px 2px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .8), inset 0 -2px 3px -2px #777;
}
.xp-addressbar > span { padding: 0 3px; color: #777; }
.address-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 80px;
  height: 20px;
  overflow: hidden;
  border: 1px solid #7f9db9;
  background: #fff;
}
.address-field span {
  flex: 1;
  padding: 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.address-field input {
  flex: 1;
  min-width: 0;
  height: 18px;
  padding: 0 3px;
  border: 0;
  outline: 0;
  background: #fff;
  color: #111;
  font: 11px Tahoma, "Segoe UI", sans-serif;
}
.address-field img { width: 16px; height: 16px; object-fit: contain; }
.xp-addressbar > button {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 21px;
  border: 0;
  background: transparent;
}
.xp-addressbar > button img { width: 18px; height: 18px; }
.xp-addressbar em { padding: 0 18px 0 5px; color: #777; font-style: normal; }

#window-my-computer .window-body.shizuku-explorer,
#window-documents .window-body.shizuku-explorer,
#window-internet .window-body.shizuku-ie-content {
  height: auto;
  min-height: 0;
  flex: 1;
  padding: 0;
  overflow: auto;
}

.shizuku-explorer {
  display: flex;
  gap: 0;
  border: 1px solid #777;
  border-top: 0;
  background: #fff;
}

.explorer-tasks {
  flex: 0 0 200px;
  padding: 10px;
  overflow: auto;
  background: linear-gradient(#748aff, #4057d3);
}
.task-card {
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
}
.task-card h2 {
  display: flex;
  align-items: center;
  height: 23px;
  margin: 0;
  padding: 0 3px 0 11px;
  color: #0c327d;
  background: linear-gradient(90deg, #f0f0ff 30%, #a8bcff);
  font-size: 12px;
}
.task-card h2 img { width: 18px; height: 18px; margin-left: auto; }
.task-card > div {
  padding: 5px 10px;
  background: linear-gradient(90deg, #b4c8fb, #a4b9fb 50%, #b4c8fb);
}
.task-card button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 19px;
  padding: 1px 0;
  color: #0c327d;
  border: 0;
  background: transparent;
  font-size: 11px;
  text-align: left;
}
.task-card button:hover { color: #2b72ff; text-decoration: underline; }
.task-card button img { width: 14px; height: 14px; margin-right: 5px; object-fit: contain; }
.task-card .details-copy { color: #0c327d; font-size: 11px; line-height: 17px; }

.computer-content {
  flex: 1;
  min-width: 0;
  overflow: auto;
  background: #fff;
}
.computer-group h2 {
  position: relative;
  width: min(300px, 88%);
  margin: 0;
  padding: 4px 0 4px 12px;
  font-size: 11px;
}
.computer-group h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, #70bfff, #fff);
}
.computer-items {
  display: flex;
  flex-wrap: wrap;
  padding: 14px 15px 3px;
}
.computer-items button {
  display: flex;
  align-items: center;
  width: 210px;
  min-height: 55px;
  margin-bottom: 10px;
  padding: 2px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 11px;
  text-align: left;
}
.computer-items button:hover { border-color: #a7c8f1; background: #e8f2ff; }
.computer-items img { width: 48px; height: 48px; margin-right: 6px; object-fit: contain; }

.documents-content { padding: 12px; }
.document-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  align-content: start;
  gap: 12px 8px;
}
.document-items button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 82px;
  padding: 5px 3px;
  border: 1px solid transparent;
  background: transparent;
  font: 11px Tahoma, "Segoe UI", sans-serif;
}
.document-items button:hover { border-color: #a7c8f1; background: #e8f2ff; }
.document-items .file-icon { flex: 0 0 auto; margin: 0 0 5px; }

.shizuku-ie-content { position: relative; background: #fff; }
.ie-page-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.google-home { position: relative; min-height: 100%; background: #fff; font: 13px Arial, sans-serif; }
.google-links { position: absolute; top: 18px; right: 18px; color: #555; }
.google-links span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #77a7dc; color: #fff; }
.google-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: min(24vh, 170px);
}
.google-logo { margin-bottom: 24px; font: 76px/1 Arial, sans-serif; letter-spacing: -9px; }
.google-logo b { font-weight: 500; }
.google-logo b:nth-child(1), .google-logo b:nth-child(4) { color: #4285f4; }
.google-logo b:nth-child(2), .google-logo b:nth-child(6) { color: #ea4335; }
.google-logo b:nth-child(3) { color: #fbbc05; }
.google-logo b:nth-child(5) { color: #34a853; }
.google-search label {
  display: flex;
  align-items: center;
  width: min(586px, 86%);
  height: 46px;
  padding: 0 10px 0 16px;
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, .2);
}
.google-search label:hover { box-shadow: 0 2px 8px -1px rgba(0, 0, 0, .3); }
.google-search input { flex: 1; min-width: 0; height: 34px; border: 0; outline: 0; font-size: 16px; }
.google-search form > span { font-size: 18px; }
.google-search > div:last-child { display: flex; gap: 12px; margin-top: 28px; }
.google-search button {
  height: 36px;
  padding: 0 16px;
  color: #777;
  border: 1px solid transparent;
  background: #f2f2f2;
  font-weight: 700;
}
.google-search button:hover { color: #222; border-color: #c6c6c6; background: #f8f8f8; }
.google-home footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: #5f6368;
  background: #f2f2f2;
}
.google-home footer div { padding: 12px 27px; border-top: 1px solid #ddd; }
.google-home footer span { float: right; }
.google-results { min-height: 100%; background: #fff; font: 13px Arial, sans-serif; }
.google-results header { display: flex; align-items: center; gap: 25px; padding: 24px 30px 10px; }
.google-wordmark { color: #4285f4; font-size: 30px; }
.google-results input { width: min(586px, 70%); height: 42px; padding: 0 18px; border: 1px solid #dfe1e5; border-radius: 22px; font-size: 16px; }
.google-results nav { padding: 12px 0 14px 155px; color: #777; border-bottom: 1px solid #ebebeb; }
.google-results main { padding: 35px 40px 50px 170px; line-height: 1.55; }

.ie-statusbar {
  display: grid;
  grid-template-columns: 1fr 45px 45px 45px 150px;
  flex: 0 0 20px;
  align-items: center;
  border-top: 1px solid #aaa;
  background: #ece9d8;
}
.ie-statusbar > * { height: 18px; padding: 2px 5px; border-right: 1px solid #aaa; }
.ie-statusbar span { display: flex; align-items: center; gap: 4px; }
.ie-statusbar img { width: 14px; height: 14px; object-fit: contain; }

.start-menu {
  width: 384px;
  border: 0;
  border-radius: 5px 5px 0 0;
  overflow: visible;
  background: #4282d6;
  font: 11px/14px Tahoma, "Segoe UI", sans-serif;
}
.start-menu header {
  position: relative;
  height: 54px;
  padding: 6px 5px 5px;
  background: linear-gradient(#1868ce, #0e60cb 20%, #1b6cd3 47%, #4791eb);
}
.start-menu header::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5) 3%, rgba(255,255,255,.5) 95%, transparent);
}
.start-menu .avatar {
  display: block;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 3px;
  background: #fff;
}
.start-menu header strong { font-size: 14px; }
.start-content {
  grid-template-columns: 190px 190px;
  min-height: 390px;
  margin: 0 2px;
  border-top: 1px solid #385de7;
  box-shadow: 0 1px #385de7;
}
.start-content::before {
  content: "";
  position: absolute;
  right: 2px;
  left: 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #da884a, transparent);
  z-index: 1;
}
.start-left, .start-right { display: flex; flex-direction: column; gap: 0; padding: 6px 5px 5px; }
.start-left { background: #fff; }
.start-right { background: #cbe3ff; border-left: 1px solid rgba(58,58,255,.37); color: #00136b; }
.start-menu button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  min-height: 34px;
  margin-bottom: 4px;
  padding: 1px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}
.start-menu button:hover { color: #fff; border: 0; background: #2f71cd; }
.start-menu button img { width: 30px; height: 30px; object-fit: contain; }
.start-menu button small { display: block; color: rgba(0,0,0,.45); }
.start-menu button:hover small { color: #fff; }
.start-menu button span { text-align: left; }
.start-right button { min-height: 26px; }
.start-right button img { width: 22px; height: 22px; }
.start-right button:nth-child(-n+5) { font-weight: 700; }
.start-menu button b:last-child { margin-left: auto; padding-right: 4px; font-size: 8px; }
.start-menu hr { width: 100%; height: 7px; margin: 0; border: 3px solid transparent; background: linear-gradient(90deg, transparent, rgba(0,0,0,.14), transparent) content-box; }
.start-right hr { background-image: linear-gradient(90deg, transparent, #87b3e2, transparent); }
.start-spacer { flex: 1; }
.start-menu .all-programs {
  width: 125px;
  min-height: 24px;
  justify-content: flex-start;
}
.start-menu .all-programs span { width: 30px; }
.start-menu .all-programs { position: relative; overflow: visible; }
.start-menu .all-programs.programs-open { color: #fff; background: #2f71cd; }

.xp-program-menu {
  position: absolute;
  left: 125px;
  bottom: -1px;
  z-index: 2147483010;
  display: flex;
  flex-direction: column;
  width: 218px;
  padding: 1px 0 1px 1px;
  color: #000;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px #72ade9, 2px 3px 3px rgba(0, 0, 0, .5);
  text-align: left;
}

.start-menu .xp-program-row {
  position: relative;
  display: flex;
  flex: 0 0 25px;
  align-items: center;
  height: 25px;
  width: 100%;
  min-height: 25px;
  margin: 0;
  padding: 0 22px 0 10px;
  color: #000;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 3px 0 #4081ff;
  font: 11px/25px Tahoma, "Segoe UI", sans-serif;
  text-align: left;
  white-space: nowrap;
}
.start-menu .xp-program-row img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  object-fit: contain;
}
.start-menu .xp-program-row > span { width: auto; flex: 1; }
.start-menu .xp-program-row > b { position: absolute; right: 7px; font-size: 8px; }
.start-menu .xp-program-row:hover,
.start-menu .xp-program-row.has-submenu:hover {
  color: #fff;
  background: #1b65cc;
}
.xp-program-separator {
  flex: 0 0 2px;
  height: 2px;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.15), transparent);
  box-shadow: inset 3px 0 #4081ff;
}
.start-menu .xp-program-row > .xp-program-menu {
  top: -1px;
  left: 100%;
  bottom: auto;
  display: none;
}
.start-menu .xp-program-row > .xp-program-menu.align-bottom {
  top: auto;
  bottom: -1px;
}
.start-menu .xp-program-row.has-submenu:hover > .xp-program-menu { display: flex; }
.start-menu footer {
  height: 36px;
  padding: 0;
  background: linear-gradient(#4282d6, #418ae3 17%, #2374df 49%, #0f61cb);
}
.start-menu footer button { min-height: 28px; margin: 0 10px 0 0; padding: 3px; }
.start-menu footer button img { width: 22px; height: 22px; }

@media (max-width: 720px) {
  #window-my-computer, #window-documents, #window-internet { width: calc(100vw - 16px); height: calc(100vh - 112px); }
  html[data-theme="xp"] #window-my-computer,
  html[data-theme="win7"] #window-my-computer,
  html[data-theme="xp"] #window-documents,
  html[data-theme="win7"] #window-documents {
    width: calc(100vw - 16px);
    height: calc(100vh - 112px);
    max-width: none;
    max-height: none;
  }
  .xp-menubar { gap: 12px; }
  .xp-toolstrip .tool span, .xp-toolstrip .tool-separator:nth-of-type(n+2), .xp-addressbar em { display: none; }
  .explorer-tasks { flex-basis: 150px; padding: 7px; }
  .computer-items button { width: 150px; }
  .google-logo { font-size: 54px; }
  .google-search { padding-top: 100px; }
  .google-home footer span { display: none; }
  .google-results nav { padding-left: 25px; }
  .google-results main { padding: 25px; }
  .start-menu { width: min(384px, calc(100vw - 8px)); }
  .start-content { grid-template-columns: 1fr 1fr; min-height: 0; }
  .start-menu .xp-program-row {
    height: 25px;
    min-height: 25px;
    touch-action: auto;
  }
}
