/* Classic raised and sunken controls, following the 98.css visual reference. */
body[data-native-site="99"] {
  background-color: #008080;
  font-family: Consolas, "Courier New", Courier, monospace;
}

#taskbar {
  background: #c0c0c0;
  border: 0;
  box-shadow: inset 0 1px #dfdfdf, inset 0 2px #fff;
  padding: 4px 3px 2px;
}

#start {
  justify-content: center;
  height: 24px;
  background: #c0c0c0;
  border: 0;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
    inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}

#start[aria-expanded="true"] {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff,
    inset 2px 2px #808080, inset -2px -2px #dfdfdf;
}

#start-menu {
  left: 2px;
  width: 224px;
  border: 0;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
    inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}

#start-menu .start-brand {
  background: linear-gradient(#1084d0, #000080);
  color: #fff;
}

#start-items button {
  min-height: 36px;
  gap: 8px;
  padding: 4px 8px;
}

#start-items img {
  width: 24px;
  height: 24px;
}

#taskbar .tray-clock {
  flex: 0 0 auto;
  height: 24px;
  min-width: 58px;
  border: 0;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
  padding: 0 6px;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
}

.start-content {
  min-width: 0;
  flex: 1;
}

.start-footer-group {
  padding: 2px 0;
  border-bottom: 1px solid #808080;
  box-shadow: 0 1px #fff;
}

.start-footer-group a {
  display: block;
  padding: 5px 8px;
  color: #000;
  text-decoration: none;
}

.start-footer-group a:hover,
.start-footer-group a:focus-visible {
  background: #000080;
  color: #fff;
}

#start img {
  width: 16px;
  height: 16px;
}

.notepad-actions {
  flex: 0 0 auto;
  padding: 3px 7px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
}
.notepad-actions:empty {
  display: none;
}
.notepad-actions a {
  color: #000;
}
.notepad-page {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 8px;
  border: 2px inset #ddd;
  background: #fff;
  color: #000;
  font: 14px/1.45 "Lucida Console", "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notepad-actions {
  display: flex;
  gap: 2px;
}
.notepad-actions details {
  position: relative;
}
.notepad-actions summary {
  cursor: default;
  list-style: none;
  padding: 2px 5px;
}
.notepad-actions summary::-webkit-details-marker {
  display: none;
}
.notepad-actions details[open] summary {
  background: #000080;
  color: #fff;
}
.notepad-menu-items {
  position: absolute;
  z-index: 2;
  min-width: max-content;
  padding: 3px;
  background: #c0c0c0;
  border: 2px outset #eee;
}
.notepad-menu-items > * {
  display: block;
  margin: 2px;
}
.notepad-menu-items input {
  width: 145px;
}
textarea.notepad-page {
  box-sizing: border-box;
  width: 100%;
  resize: none;
}

.notepad-menu-items button {
  display: block;
  width: calc(100% - 4px);
  min-height: 22px;
  padding: 3px 18px 3px 6px;
  border: 0;
  box-shadow: none;
  background: transparent;
  text-align: left;
  white-space: nowrap;
}
.notepad-menu-items button:not(:disabled):hover,
.notepad-menu-items button:focus-visible {
  background: #000080;
  color: #fff;
}
.notepad-menu-items button:disabled {
  color: #808080;
  text-shadow: 1px 1px #fff;
}
.notepad-menu-items hr {
  border: 0;
  height: 2px;
  margin: 4px 2px;
  box-shadow: inset 0 1px #808080, inset 0 -1px #fff;
}
.notepad-help {
  padding: 12px;
  line-height: 1.5;
}

/* Compact Notepad chrome follows the supplied 98.js reference proportions. */
.notepad-actions {
  min-height: 20px;
  gap: 0;
  padding: 1px 2px;
  border: 0;
}
.notepad-actions summary {
  height: 18px;
  line-height: 18px;
  padding: 0 6px;
}
.notepad-actions details[open] summary {
  background: #c0c0c0;
  color: #000;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
}
.notepad-menu-items {
  top: 100%;
  left: 0;
  min-width: 190px;
  max-width: calc(100vw - 16px);
  padding: 2px;
  border: 0;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #000,
    inset 2px 2px #dfdfdf, inset -2px -2px #808080;
}
.notepad-menu-items button,
.notepad-menu-items > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 17px;
  height: 17px;
  margin: 0;
  padding: 0 14px 0 18px;
  line-height: 17px;
  font-size: 12px;
  text-decoration: none;
}
.notepad-shortcut {
  margin-left: auto;
  text-align: right;
}
.notepad-menu-items hr {
  height: 2px;
  margin: 4px 1px;
}
.notepad-menu-items input[hidden] {
  display: none;
}
.notepad-menu-items [role="status"]:empty {
  display: none;
}
textarea.notepad-page {
  padding: 3px;
  line-height: 1.25;
}

/* A recessed document field with classic Windows scrollbar controls. */
.notepad-scroll-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  grid-template-rows: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  border: 2px inset #ddd;
  background: #fff;
  overflow: hidden;
}
.notepad-scroll-frame.has-horizontal {
  grid-template-rows: minmax(0, 1fr) 16px;
}
.notepad-scroll-frame textarea.notepad-page {
  grid-column: 1;
  grid-row: 1;
  display: block;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  scrollbar-width: none;
}
.notepad-scroll-frame textarea.notepad-page:focus,
.notepad-scroll-frame textarea.notepad-page:focus-visible {
  outline: none;
  box-shadow: none;
}
.notepad-scroll-frame textarea.notepad-page::-webkit-scrollbar {
  display: none;
}
.notepad-scrollbar {
  display: flex;
  flex-shrink: 0;
  background: #c0c0c0;
}
.notepad-scrollbar.vertical {
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
}
.notepad-scrollbar.horizontal {
  grid-column: 1;
  grid-row: 2;
}
.notepad-scrollbar[hidden],
.notepad-scroll-corner[hidden] {
  display: none;
}
.notepad-scrollbar .scroll-arrow,
.notepad-scrollbar .scroll-thumb {
  border: 0;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #000,
    inset 2px 2px #fff, inset -2px -2px #808080;
  touch-action: none;
}
.notepad-scrollbar .scroll-arrow {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}
.notepad-scrollbar .scroll-arrow:active:not(:disabled) {
  box-shadow: inset 1px 1px #808080;
}
.notepad-scrollbar .scroll-arrow::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  inset: auto;
  left: 5px;
  top: 6px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 4px solid #000;
  outline: 0;
}
.notepad-scrollbar.vertical .next::before {
  transform: rotate(180deg);
}
.notepad-scrollbar.horizontal .previous::before {
  transform: rotate(-90deg);
}
.notepad-scrollbar.horizontal .next::before {
  transform: rotate(90deg);
}
.notepad-scrollbar .scroll-arrow:disabled::before {
  border-bottom-color: #808080;
}
.notepad-scrollbar .scroll-track {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background-color: #fff;
  background-image: conic-gradient(#c0c0c0 25%, #fff 0 50%, #c0c0c0 0 75%, #fff 0);
  background-size: 2px 2px;
}
.notepad-scrollbar .scroll-thumb {
  position: absolute;
  cursor: default;
}
.notepad-scrollbar.vertical .scroll-thumb {
  left: 0;
  width: 16px;
}
.notepad-scrollbar.horizontal .scroll-thumb {
  top: 0;
  height: 16px;
}
.notepad-scroll-corner {
  grid-column: 2;
  grid-row: 2;
  background: #c0c0c0;
}

#start {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#start-menu {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.solitaire-viewport {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.solitaire-viewport iframe {
  display: block;
  transform-origin: 0 0;
  max-width: none;
}
@supports (height: 100dvh) {
  #start-menu {
    max-height: calc(100dvh - 38px - env(safe-area-inset-bottom, 0px));
  }
}
#taskbar {
  bottom: env(safe-area-inset-bottom, 0px);
}
#start-menu {
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

#desktop-icons button.desktop-icon.lightweight,
#desktop-icons button.desktop-icon.lightweight:hover,
#desktop-icons button.desktop-icon.lightweight:focus,
#desktop-icons button.desktop-icon.lightweight:active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  outline: none;
}
#desktop-icons button.desktop-icon.lightweight::before,
#desktop-icons button.desktop-icon.lightweight::after {
  display: none;
}
#desktop-icons .desktop-icon {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Native99 desktop shortcut placement and single selection. */
#desktop-icons.shortcuts-desktop{position:absolute;inset:8px;display:block;width:auto;max-height:none;padding:0;margin:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}
#desktop-icons.shortcuts-desktop .shortcut-spacer{width:1px;pointer-events:none}
#desktop-icons.shortcuts-desktop .desktop-icon{position:absolute;width:86px;height:80px;margin:0;touch-action:pan-y;-webkit-touch-callout:none}
#desktop-icons.shortcuts-desktop .desktop-icon:not(.selected) span{background:transparent;outline:none}
#desktop-icons.shortcuts-desktop .desktop-icon.selected span{background:#000080;color:#fff;outline:1px dotted #fff}
#desktop-icons.shortcuts-desktop .desktop-icon.is-dragging{z-index:2;opacity:.8;touch-action:none}

/* Desktop-only branding; transparent to pointer and shortcut dragging. */
.desktop-wordmark{position:absolute;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));writing-mode:vertical-rl;transform:rotate(180deg);font:bold 32px Arial,sans-serif;letter-spacing:1px;color:#c0c0c0;text-shadow:1px 1px #005858;pointer-events:none;user-select:none;line-height:1.05}
.desktop-wordmark strong{color:#fff}
#desktop-icons.shortcuts-desktop{z-index:1}
/* Original cloud photo texture; Microsoft branding and loading strip deliberately absent. */
#desktop-boot{position:fixed;inset:0;z-index:2147483640;display:grid;place-items:center;overflow:hidden;color:#000;background:#b1cfdf url('/99/assets/boot-clouds.jpg?v=2') center/cover no-repeat;font-family:Arial,sans-serif}
#desktop-boot[hidden]{display:none!important}
.boot-identity{position:absolute;top:65%;left:50%;transform:translate(-50%,-50%);text-align:center;padding:16px;width:100%;max-width:1050px}
#boot-name{font-size:clamp(38px,10vw,100px);font-style:normal;font-weight:900;line-height:1.05;letter-spacing:-3px;text-shadow:none;white-space:nowrap}
#boot-name strong{font-weight:normal;font-style:normal}
#boot-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#boot-skip{position:absolute;right:16px;bottom:16px;min-height:26px;padding:4px 12px;font:12px Consolas, "Courier New", Courier, monospace;background:#c0c0c0;color:#000;border:0;box-shadow:inset -1px -1px #000,inset 1px 1px #fff,inset -2px -2px #808080,inset 2px 2px #dfdfdf}
#boot-skip:focus-visible{outline:1px dotted #000;outline-offset:-5px}
@media(max-width:480px){.desktop-wordmark{right:9px;bottom:10px;font-size:26px}}

/* Centered main storefront link; keep task windows scrollable in the left lane. */
#taskbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.taskbar-left{display:flex;align-items:center;gap:4px;min-width:0;width:100%}
.taskbar-left #start{flex:0 0 auto}
#taskbar .taskbar-store{display:flex;align-items:center;justify-content:center;white-space:nowrap;height:24px;padding:0 12px;background:#c0c0c0;color:#000;text-decoration:none;font-weight:bold;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px #808080,inset 2px 2px #dfdfdf}
#taskbar .taskbar-store:active{box-shadow:inset 1px 1px #0a0a0a,inset -1px -1px #fff,inset 2px 2px #808080,inset -2px -2px #dfdfdf}
#taskbar .tray-clock{justify-self:end}
@media(max-width:480px){#taskbar .taskbar-store{font-size:11px;padding:0 6px}.taskbar-left{gap:2px}}
