:root {
  color-scheme: light;
  font-family: Tahoma, "Microsoft Sans Serif", "MS Sans Serif", SimSun, 宋体, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #1b62ae url("./win98-pixel-wallpaper.webp") center bottom / cover no-repeat;
  color: #111;
  font-family: Tahoma, "Microsoft Sans Serif", "MS Sans Serif", SimSun, 宋体, sans-serif;
  font-size: 12px;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -3px;
}

[hidden] {
  display: none !important;
}

.desktop-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.desktop-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1229px;
  height: 620px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--desktop-scale, 1));
  transform-origin: center;
  background: #1b62ae url("./win98-pixel-wallpaper.webp") center bottom / cover no-repeat;
  image-rendering: pixelated;
}

.desktop-shortcuts {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.desktop-icon {
  position: absolute;
  left: 10px;
  top: var(--icon-y);
  width: 82px;
  height: 61px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  cursor: default;
  pointer-events: auto;
}

.desktop-icon img {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 2px;
  object-fit: contain;
  image-rendering: pixelated;
}

.desktop-icon span {
  display: inline-block;
  padding: 1px 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  text-shadow: 1px 1px 0 #001f40, -1px -1px 0 #001f40, 1px -1px 0 #001f40, -1px 1px 0 #001f40;
}

.desktop-icon:hover span,
.desktop-icon:focus span {
  background: #000080;
}

.desktop-icon:active img {
  filter: brightness(0.75) saturate(1.2);
}

.win-window {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z);
  width: var(--w);
  height: var(--h);
  padding: 2px;
  overflow: hidden;
  border: 1px solid #000;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080,
    1px 1px 0 #404040;
}

.win-window.is-hidden {
  display: none;
}

.win-window.is-maximized {
  left: 4px !important;
  top: 4px !important;
  width: 1221px !important;
  height: 580px !important;
}

.win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 22px;
  margin: 0 0 2px;
  padding: 2px 2px 2px 4px;
  background: linear-gradient(90deg, #000080 0%, #0c66b7 68%, #1084d0 100%);
  color: #fff;
  cursor: move;
  user-select: none;
}

.titlebar-caption {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 1px 1px 0 #000;
}

.titlebar-caption img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  image-rendering: pixelated;
}

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

.window-controls button {
  position: relative;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0 0 2px;
  border: 1px solid;
  border-color: #fff #404040 #404040 #fff;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  color: #000;
  font-family: "Arial Black", Tahoma, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 12px;
  text-align: center;
  cursor: default;
}

.window-controls button:active,
.win-button:active,
.start-button:active,
.quick-launch button:active,
.project-pager button:active,
.start-menu button:active,
.start-menu a:active {
  border-color: #404040 #fff #fff #404040;
  box-shadow: inset 1px 1px 0 #808080;
  padding-top: 1px;
  padding-left: 1px;
}

.window-body {
  width: 100%;
  height: calc(100% - 24px);
  overflow: hidden;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  border-radius: 0;
  background: #f5f3eb;
}

.about-body {
  display: flex;
  gap: 9px;
  padding: 8px;
}

.profile-portrait {
  display: flex;
  flex: 0 0 142px;
  height: 218px;
  margin: 0;
  padding: 3px;
  flex-direction: column;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  background: #d7eaf3;
}

.profile-portrait img {
  display: block;
  width: 134px;
  height: 192px;
  object-fit: cover;
  object-position: center top;
  image-rendering: pixelated;
}

.profile-portrait model-viewer {
  display: block;
  width: 134px;
  height: 192px;
  background: #d7eaf3;
  cursor: grab;
  touch-action: none;
  --poster-color: transparent;
  --progress-bar-color: transparent;
}

.profile-portrait model-viewer:active {
  cursor: grabbing;
}

.profile-portrait model-viewer:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -2px;
}

.model-progress {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 8px;
  height: 8px;
  padding: 1px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  background: #c0c0c0;
}

.model-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #000080;
}

.model-progress.is-complete {
  display: none;
}

.profile-portrait figcaption {
  height: 20px;
  padding-top: 3px;
  color: #405265;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
}

.profile-copy {
  min-width: 0;
  padding-top: 6px;
}

.profile-copy h1 {
  margin: 0 0 4px;
  font-family: SimSun, 宋体, Tahoma, sans-serif;
  font-size: 27px;
  line-height: 32px;
  white-space: nowrap;
}

.profile-role {
  display: inline-block;
  margin-bottom: 9px;
  padding: 2px 5px;
  border: 1px solid #808080;
  background: #efefef;
  font-size: 10px;
  line-height: 15px;
  white-space: nowrap;
}

.profile-copy p {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 20px;
}

.profile-details {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-details li {
  overflow: hidden;
  font-size: 9px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-details li img {
  width: 12px;
  height: 12px;
  margin-right: 2px;
  object-fit: contain;
  vertical-align: -2px;
  image-rendering: pixelated;
}

.tab-strip {
  display: flex;
  position: relative;
  align-items: center;
  height: 29px;
  padding: 3px 7px 2px;
  border-bottom: 1px solid #c7c7c7;
  background: #e9e7df;
}

.filter-tab,
.side-tab {
  margin: 0 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  line-height: 19px;
  cursor: default;
}

.filter-tab {
  min-width: 46px;
  height: 21px;
  padding: 0 8px;
  border: 1px solid transparent;
}

.daily-tab-strip .filter-tab {
  min-width: 40px;
  padding-inline: 6px;
}

.filter-tab:hover,
.side-tab:hover {
  text-decoration: underline;
}

.filter-tab.is-active,
.side-tab.is-active {
  border: 1px solid #0d3e86;
  background: #0756ad;
  color: #fff;
  text-decoration: none;
}

.view-all {
  margin-left: auto;
  padding: 0 2px;
  font-size: 10px;
  line-height: 20px;
}

.music-publish-shortcut {
  display: inline-flex;
  height: 20px;
  margin-left: auto;
  padding: 0 7px;
  align-items: center;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  color: #001d76;
  background: #d8d8d2;
  font-size: 9px;
  line-height: 18px;
}

.music-publish-shortcut[hidden] {
  display: none;
}

.daily-tab-strip .view-all {
  margin-left: 7px;
}

.daily-tab-strip .music-publish-shortcut[hidden] + .view-all {
  margin-left: auto;
}

.music-publish-shortcut:hover {
  color: #fff;
  background: #0756ad;
  text-decoration: none;
}

.view-all:hover,
.project-open:hover,
.note-row:hover strong {
  text-decoration: underline;
}

.updates-list {
  height: calc(100% - 29px);
  min-height: 0;
  padding: 0 8px;
  overflow-x: hidden;
  overflow-y: auto;
}

.updates-list,
.photo-grid,
.notes-list {
  overscroll-behavior: contain;
  scrollbar-color: #808080 #dfdfdf;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.updates-list:focus-visible,
.photo-grid:focus-visible,
.notes-list:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -2px;
}

.updates-list::-webkit-scrollbar,
.photo-grid::-webkit-scrollbar,
.notes-list::-webkit-scrollbar {
  width: 16px;
}

.updates-list::-webkit-scrollbar-track,
.photo-grid::-webkit-scrollbar-track,
.notes-list::-webkit-scrollbar-track {
  background: #dfdfdf;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}

.updates-list::-webkit-scrollbar-thumb,
.photo-grid::-webkit-scrollbar-thumb,
.notes-list::-webkit-scrollbar-thumb {
  min-height: 24px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
}

.win-empty-state {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #4f4f4f;
  text-align: center;
}

.win-empty-state > img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  object-fit: contain;
  image-rendering: pixelated;
}

.win-empty-state strong {
  margin-bottom: 4px;
  color: #222;
  font-size: 12px;
  line-height: 17px;
}

.win-empty-state > span {
  margin-bottom: 10px;
  font-size: 9px;
  line-height: 14px;
}

.win-empty-state .win-button {
  min-width: 80px;
}

.update-row {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) 36px;
  align-items: center;
  height: 61px;
  border-bottom: 1px solid #d0d0d0;
  color: #111;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-row > img {
  width: 41px;
  height: 41px;
  padding: 3px;
  object-fit: contain;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  background: #e2e2df;
  image-rendering: pixelated;
}

.update-copy {
  display: block;
  min-width: 0;
  padding: 2px 6px 0;
}

.update-tag {
  display: block;
  width: max-content;
  margin-bottom: 1px;
  padding: 0 3px;
  font-size: 9px;
  line-height: 14px;
}

.tag-daily {
  background: #d4f0d6;
  color: #087735;
}

.tag-musing {
  background: #eee4ff;
  color: #62439b;
}

.tag-inspiration {
  background: #fff2b9;
  color: #865f00;
}

.tag-music {
  background: #dfe4ff;
  color: #233d8f;
}

.tag-software {
  background: #fff0aa;
  color: #775900;
}

.tag-photo {
  background: #f3dfdf;
  color: #82424d;
}

.tag-note {
  background: #dee5fa;
  color: #315c9e;
}

.update-copy strong,
.update-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-copy strong {
  margin-bottom: 2px;
  font-size: 12px;
  line-height: 16px;
}

.update-copy small {
  color: #595959;
  font-size: 9px;
  line-height: 14px;
}

.update-row time {
  align-self: start;
  padding-top: 9px;
  color: #6b6b6b;
  font-size: 9px;
  text-align: right;
}

.music-update-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 78px;
  min-height: 76px;
  align-items: center;
  border-bottom: 1px solid #c4c4c4;
  color: #111;
  background:
    linear-gradient(90deg, rgba(23, 57, 129, .06), transparent 42%),
    #f4f3ee;
}

.music-update-row:last-child {
  border-bottom: 0;
}

.music-update-row.is-playing {
  background:
    repeating-linear-gradient(135deg, rgba(38, 76, 157, .07) 0 3px, transparent 3px 7px),
    #eef1fb;
}

.music-cover {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid;
  border-color: #fff #666 #666 #fff;
  background: #d7d7d2;
}

.music-cover img {
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: cover;
}

.music-update-copy {
  min-width: 0;
  padding: 3px 5px 0;
}

.music-update-copy strong,
.music-update-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-update-copy strong {
  margin: 2px 0;
  color: #152757;
  font-size: 11px;
  line-height: 15px;
}

.music-update-copy small {
  color: #60677a;
  font-size: 9px;
  line-height: 13px;
}

.music-mini-deck {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding: 5px;
  border: 2px solid;
  border-color: #fff #656565 #656565 #fff;
  background: #c9c9c5;
}

.music-mini-play {
  width: 25px;
  height: 25px;
  min-height: 0;
  padding: 0;
  border: 1px solid;
  border-color: #fff #555 #555 #fff;
  border-radius: 0;
  color: #fff;
  background: #143b91;
  box-shadow: none;
  font: 700 10px/1 Arial, sans-serif;
}

.music-mini-play:active {
  border-color: #555 #fff #fff #555;
}

.music-mini-play:disabled {
  color: #777;
  background: #aaa;
  cursor: not-allowed;
}

.music-mini-progress {
  height: 7px;
  overflow: hidden;
  border: 1px solid #686868;
  background: #0d1d35;
}

.music-mini-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, #6cf7d2 0 2px, #2da98a 2px 4px);
}

.music-mini-detail {
  grid-column: 1 / -1;
  color: #123b8e;
  font-size: 9px;
  line-height: 12px;
  text-align: center;
  text-decoration: underline;
}

.music-mini-deck audio {
  display: none;
}

.qq-music-update-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 27px;
  gap: 5px;
  min-height: 76px;
  padding: 5px 0;
  border-bottom: 1px solid #c4c4c4;
  background:
    repeating-linear-gradient(135deg, rgba(38, 76, 157, .05) 0 3px, transparent 3px 7px),
    #efefe9;
}

.qq-music-frame-shell {
  min-width: 0;
  height: 65px;
  overflow: hidden;
  border: 2px solid;
  border-color: #fff #666 #666 #fff;
  background: #d1d1cc;
}

.qq-music-frame {
  display: block;
  width: 100%;
  height: 65px;
  border: 0;
}

.qq-music-detail {
  display: grid;
  place-items: center;
  border: 1px solid;
  border-color: #fff #666 #666 #fff;
  color: #153d8f;
  background: #d2d2ce;
  font-size: 8px;
  line-height: 10px;
  text-align: center;
  writing-mode: vertical-rl;
}

.qq-music-detail:active {
  border-color: #666 #fff #fff #666;
}

.software-tabs {
  justify-content: space-between;
  padding-right: 5px;
  padding-left: 5px;
}

.software-tabs .filter-tab {
  min-width: 0;
  padding: 0 8px;
}

.project-list {
  height: 193px;
}

.project-card {
  position: relative;
  height: 185px;
  margin: 8px 9px 0;
  overflow: hidden;
  border: 2px solid;
  border-color: #fff #585858 #585858 #fff;
  background: #092b52;
  color: #fff;
}

.project-card[data-project-status="completed"] .project-ribbon {
  background: #285eb0;
}

.project-card[data-project-status="experimental"] .project-ribbon {
  background: #7a3e98;
}

.project-ribbon {
  position: absolute;
  right: -27px;
  top: 10px;
  z-index: 2;
  width: 98px;
  padding: 2px 0;
  transform: rotate(35deg);
  background: #4b9b49;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

.project-empty-state {
  height: 185px;
  margin: 8px 9px 0;
}

.project-empty-state > span {
  margin-bottom: 0;
}

.project-preview-link {
  display: block;
  height: 96px;
  overflow: hidden;
  border-bottom: 1px solid #376482;
}

.project-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.project-meta {
  position: relative;
  height: 85px;
  padding: 7px 7px 4px;
}

.project-meta strong {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 18px;
}

.project-meta p {
  margin: 0 0 6px;
  color: #e6edf3;
  font-size: 9px;
  line-height: 13px;
  white-space: nowrap;
}

.project-tags {
  display: flex;
  gap: 4px;
}

.project-tags span {
  padding: 1px 4px;
  border: 1px solid #8ea8c0;
  background: #274d6e;
  color: #fff;
  font-size: 8px;
  line-height: 13px;
}

.project-open {
  position: absolute;
  right: 7px;
  bottom: 6px;
  padding: 2px 5px;
  border: 1px solid;
  border-color: #fff #485a6c #485a6c #fff;
  background: #284a68;
  font-size: 9px;
  line-height: 14px;
}

.project-pager {
  display: flex;
  height: 31px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.project-pager-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-pager button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid;
  border-color: #fff #555 #555 #fff;
  border-radius: 0;
  background: #c0c0c0;
  font-size: 15px;
  line-height: 13px;
}

.pager-dot {
  width: 6px;
  height: 6px;
  border: 1px solid #333;
  border-radius: 50%;
  background: #e4e4e4;
}

.pager-dot.is-current {
  background: #003e89;
}

.split-body {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.photos-body {
  grid-template-columns: 76px minmax(0, 1fr);
}

.notes-body {
  grid-template-columns: 93px minmax(0, 1fr);
}

.side-list {
  display: flex;
  height: 100%;
  padding: 8px 6px;
  flex-direction: column;
  border-right: 1px solid #c5c5c5;
  background: #e7e5dd;
}

.side-tab {
  height: 25px;
  padding: 0 7px;
  text-align: left;
}

.side-heading,
.notes-heading,
.photo-heading {
  display: block;
  height: 22px;
  color: #505050;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
}

.photo-area {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 7px 8px 5px;
  flex-direction: column;
  overflow: hidden;
}

.photo-grid {
  display: grid;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 8px;
  align-content: start;
}

.photo-grid.is-album-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.photo-grid a {
  display: block;
  height: 67px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid;
  border-color: #fff #777 #777 #fff;
  background: #c0c0c0;
}

.photo-grid a.photo-album-card {
  display: grid;
  height: 92px;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 2px;
  color: #111;
  text-decoration: none;
}

.photo-grid a > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid a.photo-album-card > img {
  min-height: 0;
}

.photo-album-card__copy {
  display: grid;
  gap: 1px;
  padding: 2px 3px 1px;
  overflow: hidden;
  border-top: 1px solid #777;
  background: #efefef;
  line-height: 1.1;
}

.photo-album-card__copy strong,
.photo-album-card__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-album-card__copy strong { font-size: 9px; }
.photo-album-card__copy small { color: #555; font-size: 8px; }

.photo-grid a:hover > img {
  filter: contrast(1.08);
}

.photo-grid a.photo-album-card:hover .photo-album-card__copy {
  background: #000080;
  color: #fff;
}

.photo-grid a.photo-album-card:hover .photo-album-card__copy small { color: #fff; }

.photo-empty-state {
  grid-column: 1 / -1;
  min-height: 0;
}

.window-footer {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  color: #555;
  font-size: 9px;
}

.photo-footer {
  gap: 4px;
}

.photo-footer > [data-photo-summary] {
  font-size: 8px;
  white-space: nowrap;
}

.photo-footer-actions {
  display: flex;
  gap: 4px;
}

.photo-footer-actions .win-button {
  min-height: 21px;
  padding-right: 6px;
  padding-left: 6px;
  white-space: nowrap;
}

.win-button {
  display: inline-flex;
  min-height: 22px;
  padding: 2px 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-color: #fff #4e4e4e #4e4e4e #fff;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 #dfdfdf;
  color: #111;
  font-size: 10px;
  line-height: 16px;
  cursor: default;
}

.notes-area {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 7px 8px 5px;
  flex-direction: column;
  overflow: hidden;
}

.notes-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.notes-list .note-row:last-child {
  border-bottom: 0;
}

.notes-empty-state {
  min-height: 120px;
}

.notes-empty-state > img {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

.notes-empty-state > span {
  margin-bottom: 0;
}

.note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: start;
  min-height: 34px;
  padding: 2px 0;
  border-bottom: 1px solid #d0d0d0;
}

.note-row span,
.note-row strong,
.note-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-row strong {
  font-size: 10px;
  line-height: 15px;
}

.note-row small {
  color: #606060;
  font-size: 8px;
  line-height: 13px;
}

.note-row time {
  padding-top: 2px;
  color: #686868;
  font-size: 8px;
  text-align: right;
}

.notes-footer {
  padding-top: 5px;
}

.notes-footer .win-button {
  min-height: 21px;
}

.contact-body {
  display: flex;
  align-items: center;
  padding: 5px 12px 7px;
  flex-direction: column;
  text-align: center;
}

.mailbox-art {
  display: block;
  width: 128px;
  height: 103px;
  margin-top: -1px;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}

.mailbox-entry {
  display: block;
  width: 128px;
  height: 103px;
  margin-top: -1px;
  border: 1px solid transparent;
  text-decoration: none;
}

.mailbox-entry:hover {
  filter: brightness(1.04);
}

.mailbox-entry:focus-visible {
  outline: 1px dotted #00145f;
  outline-offset: 2px;
}

.mailbox-entry .mailbox-art {
  margin-top: 0;
}

.contact-body > strong {
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 18px;
}

.mail-button {
  width: 151px;
  min-height: 28px;
  margin-bottom: 7px;
  border-color: #b8c8e8 #00145f #00145f #b8c8e8;
  background: #143dad;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.mail-picker {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10000;
  width: 390px;
  padding: 3px;
  transform: translate(-50%, -50%);
  border: 1px solid;
  border-color: #fff #202020 #202020 #fff;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #dfdfdf,
    inset -1px -1px 0 #808080,
    2px 2px 0 #000;
}

.mail-picker-body {
  padding: 12px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  background: #f5f3eb;
}

.mail-picker-body p {
  margin: 0 0 9px;
  font-weight: 700;
}

.mail-recipient {
  display: flex;
  width: 100%;
  min-height: 51px;
  margin-bottom: 8px;
  padding: 6px 9px;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}

.mail-recipient > img {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  image-rendering: pixelated;
}

.mail-recipient > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mail-recipient strong {
  font-size: 12px;
  line-height: 17px;
}

.mail-recipient small {
  color: #444;
  font-size: 11px;
  line-height: 16px;
}

.mail-picker-actions {
  display: flex;
  padding-top: 2px;
  justify-content: flex-end;
}

.mail-picker-actions .win-button {
  min-width: 72px;
}

.mail-button img {
  width: 16px;
  height: 16px;
  margin-left: 7px;
  image-rendering: pixelated;
}

.social-links {
  display: flex;
  width: 171px;
  padding-top: 4px;
  justify-content: space-around;
  border-top: 1px solid #c4c4c4;
}

.social-links a {
  display: grid;
  position: relative;
  width: 28px;
  height: 25px;
  place-items: center;
}

.social-links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-links .social-tip {
  position: absolute;
  left: 50%;
  top: 25px;
  z-index: 2;
  display: none;
  transform: translateX(-50%);
  padding: 2px 4px;
  border: 1px solid #000;
  background: #ffffdc;
  font-size: 9px;
  white-space: nowrap;
}

.social-links a:hover .social-tip,
.social-links a:focus .social-tip {
  display: block;
}

.taskbar {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  height: 35px;
  padding: 3px;
  align-items: center;
  border-top: 2px solid #fff;
  background: #c0c0c0;
  box-shadow: inset 0 1px 0 #dfdfdf;
}

.start-button {
  display: inline-flex;
  width: 76px;
  height: 27px;
  padding: 2px 7px 2px 4px;
  align-items: center;
  gap: 5px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 #dfdfdf;
  font-size: 13px;
  line-height: 20px;
}

.start-button[aria-expanded="true"] {
  border-color: #404040 #fff #fff #404040;
  box-shadow: inset 1px 1px 0 #808080;
}

.start-button img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}

.taskbar-divider {
  width: 2px;
  height: 25px;
  margin: 0 6px 0 5px;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
}

.quick-launch {
  display: flex;
  align-items: center;
  gap: 2px;
}

.quick-launch button {
  width: 29px;
  height: 27px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
}

.quick-launch button:hover {
  border-color: #fff #555 #555 #fff;
  background: #c0c0c0;
}

.quick-launch img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  image-rendering: pixelated;
}

.system-tray {
  display: flex;
  height: 27px;
  margin-left: auto;
  padding: 2px 7px;
  align-items: center;
  gap: 7px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  background: #c0c0c0;
}

.system-tray > img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  image-rendering: pixelated;
}

.tray-clock {
  display: grid;
  min-width: 76px;
  grid-template-columns: 1fr;
  font-size: 10px;
  line-height: 11px;
  text-align: right;
}

.start-menu {
  display: grid;
  position: absolute;
  left: 3px;
  bottom: 35px;
  z-index: 9999;
  width: 210px;
  height: 339px;
  grid-template-columns: 25px 1fr;
  padding: 2px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #c0c0c0;
  box-shadow: 1px 1px 0 #000;
}

.start-menu-side {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 7px;
  transform: rotate(180deg);
  background: #808080;
  color: #c0c0c0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
}

.start-menu-items {
  display: flex;
  padding: 3px 2px;
  flex-direction: column;
}

.start-menu button,
.start-menu a {
  display: flex;
  width: 100%;
  height: 41px;
  padding: 4px 8px;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.start-menu button:hover,
.start-menu a:hover {
  background: #000080;
  color: #fff;
}

.start-menu img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}

.start-divider {
  height: 2px;
  margin: 4px 3px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
}

@media (max-width: 700px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    background-attachment: fixed;
    background-position: center bottom;
  }

  .desktop-viewport {
    position: relative;
    inset: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .desktop-canvas {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 100svh;
    padding: 148px 0 calc(58px + env(safe-area-inset-bottom));
    overflow: visible;
    transform: none !important;
    background: transparent;
  }

  .desktop-shortcuts {
    position: absolute;
    left: 6px;
    right: auto;
    top: 7px;
    bottom: auto;
    width: calc(100vw - 12px);
    display: grid;
    height: 132px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 64px;
    pointer-events: auto;
  }

  .desktop-icon {
    position: relative;
    left: auto;
    top: auto !important;
    width: 100%;
    height: 64px;
    flex: none;
  }

  .desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 1px;
  }

  .desktop-icon span {
    font-size: 11px;
    line-height: 15px;
  }

  .win-window {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: calc(100% - 20px) !important;
    margin: 0 10px 12px;
  }

  .about-window {
    height: 284px !important;
  }

  .daily-window {
    height: 280px !important;
  }

  .software-window {
    height: 304px !important;
  }

  .photos-window {
    height: 250px !important;
  }

  .notes-window {
    height: 260px !important;
  }

  .contact-window {
    height: 250px !important;
  }

  .mail-picker {
    position: fixed;
    width: calc(100vw - 24px);
    max-width: 390px;
  }

  .win-window.is-maximized {
    position: fixed !important;
    left: 4px !important;
    top: 4px !important;
    z-index: 10001 !important;
    width: calc(100vw - 8px) !important;
    height: calc(100svh - 52px - env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
  }

  .win-titlebar {
    cursor: default;
  }

  .photo-area {
    padding-right: 6px;
    padding-left: 6px;
  }

  .photo-grid {
    gap: 6px;
  }

  .photo-grid a {
    height: 72px;
  }

  .start-menu {
    position: fixed;
    left: 3px;
    bottom: calc(43px + env(safe-area-inset-bottom));
  }

  .taskbar {
    position: fixed;
    height: calc(43px + env(safe-area-inset-bottom));
    padding: 4px 3px calc(4px + env(safe-area-inset-bottom));
  }

  .start-button {
    width: 70px;
    height: 33px;
  }

  .taskbar-divider {
    height: 30px;
    margin-right: 3px;
    margin-left: 3px;
  }

  .quick-launch {
    gap: 0;
  }

  .quick-launch button {
    width: 27px;
    height: 33px;
  }

  .quick-launch img {
    width: 21px;
    height: 21px;
  }

  .system-tray {
    height: 33px;
    padding: 2px 5px;
    gap: 4px;
  }

  .system-tray > img:nth-child(2) {
    display: none;
  }

  .tray-clock {
    min-width: 39px;
    font-size: 10px;
    line-height: 13px;
  }

  .tray-clock time:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-canvas {
    transition: none;
  }
}
