.desktop-shortcut {
  position: absolute;
  top: 22px;
  left: 20px;
  z-index: 2;
  display: grid;
  width: 82px;
  justify-items: center;
  gap: 4px;
  border: 1px solid transparent;
  padding: 4px 3px;
  color: #fff;
  background: transparent;
  font-family: var(--font-xp-system);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 1px 1px 2px #000;
  cursor: default;
}

.desktop-shortcut img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.desktop-shortcut:hover,
.desktop-shortcut.is-selected,
.desktop-shortcut:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(36, 95, 175, 0.56);
  outline: none;
}

.xp-app-window {
  position: absolute;
  top: 9%;
  left: 13%;
  z-index: 10;
  display: flex;
  width: min(76vw, 1040px);
  min-width: 540px;
  height: min(72vh, 720px);
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  border: 3px solid #0a54c9;
  border-radius: 7px 7px 2px 2px;
  background: #ece9d8;
  box-shadow: 4px 7px 17px rgba(0, 0, 0, 0.45);
}

.xp-app-window[hidden] { display: none; }

.xp-app-window.is-maximized {
  inset: 0 0 var(--xp-taskbar-height) 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none;
  border-radius: 0;
}

.ie-titlebar {
  display: flex;
  height: 31px;
  flex: 0 0 31px;
  align-items: center;
  gap: 6px;
  padding: 3px 3px 3px 5px;
  color: #fff;
  background: linear-gradient(to bottom, #3e9bff 0%, #0f70e9 12%, #0759d3 58%, #063ab1 100%);
  font-family: var(--font-xp-title);
  font-size: 13px;
  font-weight: 700;
  text-shadow: 1px 1px 1px #083480;
  user-select: none;
  cursor: default;
}

.ie-title-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ie-title-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ie-window-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
}

.ie-window-control {
  width: 23px;
  height: 23px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

.ie-window-control img {
  display: block;
  width: 21px;
  height: 21px;
}

.ie-window-control:hover img,
.ie-window-control:focus-visible img {
  filter: brightness(1.14);
}

.ie-window-control:focus-visible {
  outline: 1px dotted #fff;
  outline-offset: -3px;
}

.ie-chrome {
  flex: 0 0 auto;
  border-bottom: 1px solid #aca899;
  background: #ece9d8;
}

.ie-menu-bar,
.ie-toolbar,
.ie-address-row,
.ie-links-bar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #d4d0c8;
  box-shadow: inset 0 1px 0 #fff;
}

.ie-menu-bar {
  height: 25px;
  gap: 2px;
  padding: 2px 5px;
}

.ie-menu-button {
  border: 1px solid transparent;
  padding: 2px 7px;
  background: transparent;
  color: #111;
  font-size: 11px;
  cursor: default;
}

.ie-menu-button:hover,
.ie-menu-button:focus-visible {
  border-color: #316ac5;
  background: #c1d2ee;
  outline: none;
}

.ie-toolbar {
  min-height: 43px;
  gap: 3px;
  padding: 3px 5px;
}

.ie-tool-button {
  display: inline-flex;
  min-width: 42px;
  height: 36px;
  align-items: center;
  gap: 3px;
  border: 1px solid transparent;
  padding: 2px 5px;
  color: #222;
  background: transparent;
  font-size: 10px;
  cursor: default;
}

.ie-tool-button img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.ie-tool-button:hover:not(:disabled),
.ie-tool-button:focus-visible:not(:disabled) {
  border-color: #316ac5;
  background: #d8e7fa;
  outline: none;
}

.ie-tool-button:disabled { opacity: 0.48; }

.ie-address-row {
  min-height: 29px;
  gap: 5px;
  padding: 3px 5px;
}

.ie-address-label { color: #333; font-size: 11px; }

.ie-address-form {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
}

.ie-address-icon {
  width: 19px;
  height: 19px;
  margin-right: -20px;
  z-index: 1;
  object-fit: contain;
  pointer-events: none;
}

.ie-address-input {
  width: 100%;
  height: 22px;
  border: 1px solid #7f9db9;
  padding: 2px 25px 2px 23px;
  background: #fff;
  color: #111;
  font-size: 11px;
  box-shadow: inset 1px 1px 1px #d4d0c8;
}

.ie-go-button {
  width: 28px;
  height: 22px;
  margin-left: -28px;
  border: 1px solid transparent;
  color: #086308;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: default;
}

.ie-go-button:hover,
.ie-go-button:focus-visible {
  border-color: #7f9db9;
  background: #e5efff;
  outline: none;
}

.ie-links-bar {
  min-height: 24px;
  gap: 12px;
  padding: 2px 8px;
  font-size: 10px;
}

.ie-links-bar a { color: #144db5; text-decoration: none; }
.ie-links-bar a:hover { text-decoration: underline; }

.ie-page {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  place-items: center;
  overflow: auto;
  background: #fff;
}

.google-home {
  display: grid;
  width: min(620px, 88%);
  justify-items: center;
  gap: 18px;
  padding: 45px 20px 70px;
  color: #333;
  font-family: Arial, sans-serif;
  text-align: center;
}

.google-logo {
  width: 272px;
  max-width: 68%;
  height: auto;
}

.google-search-form {
  display: grid;
  width: min(520px, 100%);
  justify-items: center;
  gap: 13px;
}

.google-search-input {
  width: 100%;
  height: 34px;
  border: 1px solid #aaa;
  padding: 5px 8px;
  background: #fff;
  font: 16px Arial, sans-serif;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.google-actions { display: flex; gap: 8px; }

.google-button {
  border: 1px solid #aaa;
  padding: 5px 13px;
  color: #222;
  background: linear-gradient(#fff, #e7e7df);
  font: 12px Arial, sans-serif;
  cursor: pointer;
}

.google-button:hover,
.google-button:focus-visible { border-color: #555; outline: none; }

.google-meta,
.google-footer { color: #666; font-size: 11px; }
.google-footer a { margin: 0 6px; color: #304fbb; }

.ie-status-bar {
  display: flex;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #aca899;
  padding: 2px 7px;
  background: #ece9d8;
  color: #333;
  font-size: 10px;
}

.xp-task-button {
  display: none;
  min-width: 190px;
  max-width: 260px;
  height: 30px;
  align-items: center;
  gap: 6px;
  border: 1px solid #0b3b9f;
  border-radius: 2px;
  padding: 2px 8px;
  color: #fff;
  background: linear-gradient(#398cf2, #1d65ce);
  font-size: 11px;
  text-shadow: 1px 1px #12418b;
  cursor: default;
}

.xp-task-button.is-visible { display: inline-flex; }
.xp-task-button.is-minimized { background: linear-gradient(#1a5cb9, #174b9c); }
.xp-task-button img { width: 19px; height: 19px; object-fit: contain; }

@media (max-width: 760px) {
  .xp-app-window {
    top: 5%;
    left: 3%;
    width: 94vw;
    min-width: 0;
    height: 78vh;
  }
  .ie-tool-button span { display: none; }
  .ie-tool-button { min-width: 31px; padding: 2px 3px; }
}

/* Authentic IE6 toolbar assets and in-window results */
.ie-toolbar { min-height: 42px; gap: 1px; overflow: hidden; }
.ie-tool-button { min-width: 31px; height: 36px; gap: 2px; padding: 2px 4px; }
.ie-tool-button img { width: 28px; height: 28px; object-fit: contain; }
.ie-tool-button:disabled img { filter: grayscale(.75); }
.ie-toolbar-separator { width: 2px; height: 31px; margin: 0 3px; border-left: 1px solid #aca899; border-right: 1px solid #fff; }
.ie-go-button { display: inline-flex; width: 48px; height: 22px; margin-left: 3px; align-items: center; gap: 2px; padding: 0 3px; color: #111; font-weight: 400; }
.ie-go-button img { width: 18px; height: 18px; object-fit: contain; }
.ie-address-form { gap: 2px; }
.ie-address-input { padding-right: 4px; }
.google-results[hidden], .google-home[hidden] { display: none; }
.google-results { align-self: stretch; width: 100%; min-height: 100%; padding-bottom: 35px; background: #fff; color: #111; font-family: Arial, sans-serif; }
.google-results-header { display: flex; align-items: center; gap: 20px; padding: 18px 28px 12px; }
.google-results-header > img { width: 132px; height: auto; }
.google-results-header form { display: flex; width: min(560px, calc(100% - 155px)); gap: 5px; }
.google-results-header input { min-width: 0; height: 28px; flex: 1 1 auto; border: 1px solid #7f9db9; padding: 3px 6px; font: 14px Arial, sans-serif; }
.google-results-header button { min-width: 64px; border: 1px solid #8b8b8b; background: linear-gradient(#fff, #e3e3dc); font: 11px Arial, sans-serif; }
.google-results-tabs { display: flex; gap: 18px; border-bottom: 1px solid #c9d7f1; padding: 0 28px 6px 180px; font-size: 12px; }
.google-results-tabs a { color: #174ea6; text-decoration: none; }
.google-results-tabs a.is-active { color: #111; font-weight: 700; }
.google-results-summary { margin: 9px 28px 15px 180px; color: #676767; font-size: 11px; }
.google-results-list { width: min(680px, calc(100% - 210px)); margin-left: 180px; }
.google-result { margin-bottom: 18px; }
.google-result > a { color: #0000cc; font-size: 17px; text-decoration: underline; }
.google-result-url { margin-top: 2px; color: #008000; font-size: 12px; }
.google-result p { margin: 3px 0 0; color: #333; font-size: 12px; line-height: 1.35; }
@media (max-width: 760px) {
  .ie-toolbar .ie-tool-button:nth-last-child(-n+4), .ie-toolbar .ie-toolbar-separator:nth-last-child(-n+5) { display: none; }
  .google-results-header { padding-inline: 14px; }
  .google-results-header > img { width: 92px; }
  .google-results-header form { width: calc(100% - 105px); }
  .google-results-tabs, .google-results-summary { margin-left: 0; padding-left: 14px; }
  .google-results-list { width: auto; margin: 0 14px; }
}

/* Accessible form-field contrast */
.ie-address-input, .google-search-input, .google-results-header input { color: #000 !important; background-color: #fff !important; caret-color: #000 !important; -webkit-text-fill-color: #000 !important; }
.ie-address-input::placeholder, .google-search-input::placeholder, .google-results-header input::placeholder { color: #595959 !important; opacity: 1; }


/* Period-style sponsored search result */
.google-sponsored-result {
  position: relative;
  width: min(680px, calc(100% - 210px));
  margin: 8px 0 10px 180px;
  border: 1px solid #fff4c2;
  padding: 5px 145px 6px 9px;
  background: #fffbe8;
  color: #111;
  font: 11px Arial, sans-serif;
}
.google-sponsored-label {
  position: absolute;
  top: 5px;
  right: 9px;
  color: #666;
  font-size: 10px;
}
.google-sponsored-title {
  display: inline-block;
  color: #0000cc;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}
.google-sponsored-result p { margin: 2px 0 3px; line-height: 1.25; }
.google-sponsored-links { display: flex; gap: 26px; }
.google-sponsored-links a { color: #0000cc; text-decoration: underline; }
@media (max-width: 760px) {
  .google-sponsored-result { width: auto; margin: 8px 14px 10px; padding-right: 105px; }
  .google-sponsored-links { flex-direction: column; gap: 2px; }
}

/* Responsive internal Google layout and 2006 form controls */
.google-results {
  container-type: inline-size;
  overflow-x: hidden;
}
.google-results-header,
.google-results-tabs,
.google-sponsored-result,
.google-results-summary,
.google-results-list {
  box-sizing: border-box;
}
.google-results-header { padding: 16px clamp(14px, 3vw, 32px) 10px; }
.google-results-header > img { flex: 0 0 auto; width: clamp(96px, 16vw, 132px); }
.google-results-header form { width: min(680px, calc(100% - clamp(112px, 19vw, 155px))); }
.google-results-header button,
.google-button {
  min-width: 78px;
  height: 24px;
  border-width: 2px;
  border-style: solid;
  border-color: #fff #6f6f6f #6f6f6f #fff;
  border-radius: 0;
  padding: 1px 8px;
  background: #e7e7e7;
  color: #000 !important;
  font: 11px Arial, sans-serif;
  -webkit-text-fill-color: #000 !important;
  box-shadow: none;
}
.google-results-header button:active,
.google-button:active { border-color: #6f6f6f #fff #fff #6f6f6f; padding: 2px 7px 0 9px; }
.google-results-tabs,
.google-results-summary,
.google-sponsored-result,
.google-results-list {
  width: min(760px, calc(100% - clamp(28px, 12vw, 200px)));
  margin-left: clamp(14px, 9vw, 180px);
  margin-right: 14px;
}
.google-results-tabs { padding-left: 0; }
.google-results-summary { padding-left: 0; }
.google-sponsored-result { padding-right: clamp(108px, 20%, 145px); }
.google-results-list { max-width: 760px; }
@container (max-width: 660px) {
  .google-results-header { align-items: flex-start; gap: 10px; }
  .google-results-header > img { width: 92px; }
  .google-results-header form { width: calc(100% - 102px); }
  .google-results-tabs,
  .google-results-summary,
  .google-sponsored-result,
  .google-results-list { width: auto; margin-left: 14px; margin-right: 14px; }
}
@container (max-width: 430px) {
  .google-results-header { flex-direction: column; }
  .google-results-header form { width: 100%; }
  .google-results-header button { min-width: 64px; }
  .google-sponsored-result { padding-right: 9px; }
  .google-sponsored-label { position: static; display: block; margin-bottom: 2px; text-align: right; }
  .google-sponsored-links { flex-direction: column; gap: 2px; }
}

/* XP Internet Explorer content scrollbar and clickable Google logo */
.google-results-home {
  display: block;
  flex: 0 0 auto;
  width: clamp(96px, 16vw, 132px);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.google-results-home img { display: block; width: 100%; height: auto; }
.google-results-home:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
.ie-page {
  scrollbar-width: auto;
  scrollbar-color: #9bbce8 #f0f0e8;
  scrollbar-gutter: stable;
}
.ie-page::-webkit-scrollbar { width: 17px; height: 17px; }
.ie-page::-webkit-scrollbar-track {
  background: #f0f0e8 url('./Assets/icons/xp-scrollbar/scroll-background.svg') repeat;
}
.ie-page::-webkit-scrollbar-thumb {
  min-height: 28px;
  border: 0;
  background: #9bbce8 url('./Assets/icons/xp-scrollbar/scroll-thumb.svg') center / 100% 100% no-repeat;
}
.ie-page::-webkit-scrollbar-button:single-button { display: block; width: 17px; height: 17px; background-color: #d6e6fb; background-position: center; background-size: 17px 17px; background-repeat: no-repeat; }
.ie-page::-webkit-scrollbar-button:single-button:vertical:decrement { background-image: url('./Assets/icons/xp-scrollbar/scroll-arrow-up.svg'); }
.ie-page::-webkit-scrollbar-button:single-button:vertical:increment { background-image: url('./Assets/icons/xp-scrollbar/scroll-arrow-down.svg'); }
.ie-page::-webkit-scrollbar-corner { background: #ece9d8; }
.google-results-header > img { display: none; }
.google-results-header > .google-results-home { width: clamp(96px, 16vw, 132px); }
@container (max-width: 660px) {
  .google-results-header > .google-results-home { width: 92px; }
}
@container (max-width: 430px) {
  .google-results-header > .google-results-home { width: 112px; }
}

/* Correct logo control, scrollbar spacing, and wide results layout */
.google-results-header .google-results-home,
.google-results-header .google-results-home:hover,
.google-results-header .google-results-home:active,
.google-results-header .google-results-home:focus {
  display: block;
  min-width: 0;
  width: clamp(96px, 16vw, 132px);
  height: auto;
  border: 0 !important;
  border-radius: 0;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent;
  -webkit-appearance: none;
  appearance: none;
  -webkit-text-fill-color: transparent !important;
}
.google-results-header .google-results-home img { display: block; width: 100%; height: auto; border: 0; background: transparent; }
.google-results-header .google-results-home:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
.ie-page { scrollbar-gutter: auto; }
.ie-page::-webkit-scrollbar { width: 16px; height: 16px; }
.ie-page::-webkit-scrollbar-track { margin: 0; border: 0; }
.ie-page::-webkit-scrollbar-thumb { min-height: 32px; background-size: 16px 100%; }
.ie-page::-webkit-scrollbar-button:single-button { width: 16px; height: 16px; background-size: 16px 16px; }
.google-results-tabs,
.google-results-summary,
.google-sponsored-result,
.google-results-list {
  width: min(980px, calc(100% - clamp(28px, 10vw, 170px)));
  max-width: 980px;
  margin-left: clamp(14px, 7.5vw, 145px);
}
@container (max-width: 660px) {
  .google-results-header .google-results-home { width: 92px; }
  .google-results-tabs,
  .google-results-summary,
  .google-sponsored-result,
  .google-results-list { width: auto; max-width: none; margin-left: 14px; margin-right: 14px; }
}
@container (max-width: 430px) {
  .google-results-header .google-results-home { width: 112px; }
}

@media (min-width: 1600px) and (min-height: 800px) {
  .xp-task-button {
    min-width: 228px;
    max-width: 312px;
    height: 36px;
    gap: 7px;
    padding: 3px 10px;
    font-size: 13px;
  }

  .xp-task-button img {
    width: 23px;
    height: 23px;
  }
}

/* Portfolio status bar: connection state only. */
.ie-status-bar #ie-status-text { display: none; }
