body.is-desktop {
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: #0c3f5f;
}

.desktop-shell {
  display: none;
}

body.is-desktop.auth-desktop .desktop-shell {
  position: fixed;
  inset: 0;
  display: block;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px) 62% 34% / 280px 190px no-repeat,
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 42% 44%, transparent 44% 100%),
    linear-gradient(135deg, #0b5a80 0%, #0a4569 48%, #07324f 100%);
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: #07324f;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: -5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px) 62% 34% / 280px 190px no-repeat,
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 42% 44%, transparent 44% 100%),
    linear-gradient(135deg, #0b5a80 0%, #0a4569 48%, #07324f 100%);
  filter: blur(3px);
  transform: scale(1.01);
}

.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 16, 27, 0.42);
}

.auth-desktop .login-screen {
  display: none;
}

.login-panel {
  position: relative;
  z-index: 1;
  width: min(286px, calc(100vw - 40px));
  text-align: center;
}

.login-avatar {
  display: block;
  width: 108px;
  height: 108px;
  margin: 0 auto 12px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.42));
}

.login-panel h1 {
  margin: 0 0 20px;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field {
  display: block;
  text-align: left;
}

.login-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.login-field input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  font: 14px "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.login-field input:focus {
  border-color: #0078d7;
  background: #ffffff;
}

.login-field input::placeholder {
  color: #5a5a5a;
  opacity: 1;
}

.login-field input:disabled {
  opacity: 0.72;
}

.login-message {
  min-height: 18px;
  margin: 0 0 1px;
  color: #ffb7b7;
  font-size: 12px;
  line-height: 18px;
  text-align: left;
}

.login-message.is-status {
  color: rgba(255, 255, 255, 0.84);
}

.login-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.login-password-field {
  min-width: 0;
}

.login-password-field input {
  border-right-width: 0;
}

.login-password-field input:focus {
  position: relative;
  z-index: 1;
  border-right-width: 2px;
}

.login-submit {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  background: rgba(32, 32, 32, 0.76);
  color: #ffffff;
  font: 22px/1 "Segoe UI Symbol", "Segoe UI", Arial, sans-serif;
  cursor: default;
}

.login-submit:hover:not(:disabled) {
  background: #0067b8;
  border-color: #4aa9e9;
}

.login-submit:active:not(:disabled) {
  background: #005a9e;
}

.login-submit:disabled {
  color: rgba(255, 255, 255, 0.64);
}

.login-submit.is-loading {
  font-size: 0;
}

.login-submit.is-loading::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 11px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: loginSpinner 0.7s linear infinite;
}

@keyframes loginSpinner {
  to { transform: rotate(360deg); }
}

.login-guest {
  align-self: center;
  padding: 5px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: 13px "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  cursor: default;
}

.login-guest:hover:not(:disabled),
.login-guest:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.login-system-icons {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
}

.login-system-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font: 19px/1 "Segoe UI Symbol", "Segoe UI", sans-serif;
}

.login-system-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.network-icon {
  align-items: flex-end;
  gap: 2px;
  padding-bottom: 10px;
}

.network-icon i {
  display: block;
  width: 3px;
  background: currentColor;
}

.network-icon i:nth-child(1) { height: 5px; }
.network-icon i:nth-child(2) { height: 9px; }
.network-icon i:nth-child(3) { height: 13px; }

.accessibility-icon {
  font-size: 18px;
}

.power-icon {
  font-size: 21px;
}

body.is-desktop .desktop-shell.is-light-theme {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px) 62% 34% / 280px 190px no-repeat,
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.22) 42% 44%, transparent 44% 100%),
    linear-gradient(135deg, #5ba3c7 0%, #347eaa 48%, #1f5f88 100%);
}

.desktop-surface {
  position: absolute;
  inset: 0 0 40px;
  overflow: hidden;
}

.desktop-icon {
  position: absolute;
  top: 22px;
  left: 18px;
  width: 76px;
  min-height: 88px;
  padding: 7px 4px 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #ffffff;
  font: inherit;
  text-align: center;
  touch-action: none;
  cursor: default;
}

.desktop-icon:hover,
.desktop-icon.is-selected {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(0, 120, 215, 0.28);
}

.desktop-icon.is-selected {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: -2px;
}

.desktop-icon.is-dragging {
  z-index: 20;
  opacity: 0.86;
}

.ai-access-hidden {
  display: none !important;
}

.desktop-icon-image {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 6px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.document-app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-icon-label {
  display: block;
  color: #ffffff;
  font-size: 12px;
  line-height: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.chat-desktop-icon {
  top: 116px;
}

.ai-desktop-icon {
  top: 210px;
}

.city-desktop-icon {
  top: 22px;
  left: 100px;
}

.ai-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #0078d7;
  color: #ffffff;
  font: 600 13px/1 "Segoe UI", Arial, sans-serif;
}

.desktop-icon-image.ai-app-icon {
  font-size: 18px;
}

.city-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(174, 211, 255, 0.88);
  background: #164c78;
  color: #ffffff;
  font: 600 14px/1 "Segoe UI", Arial, sans-serif;
  box-shadow: inset 0 -9px 0 rgba(2, 17, 31, 0.38);
}

.chat-app-icon {
  display: block;
  background: transparent;
  border: 0;
}

.chat-app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blog-window {
  position: absolute;
  left: 128px;
  top: 56px;
  width: min(1040px, calc(100vw - 180px));
  height: min(680px, calc(100vh - 120px));
  min-width: 320px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #005a9e;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.chat-window {
  position: absolute;
  z-index: 25;
  left: clamp(90px, 16vw, 230px);
  top: clamp(42px, 10vh, 90px);
  width: min(860px, calc(100vw - 150px));
  height: min(580px, calc(100vh - 100px));
  min-width: 540px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #005a9e;
  background: #17191d;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.ai-window {
  position: absolute;
  z-index: 26;
  left: clamp(110px, 20vw, 280px);
  top: clamp(52px, 12vh, 100px);
  width: min(720px, calc(100vw - 170px));
  height: min(520px, calc(100vh - 110px));
  min-width: 420px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #005a9e;
  background: #181a1e;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.ai-window.is-hidden,
.ai-window.is-minimized {
  display: none;
}

.ai-window.is-maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 40px) !important;
  border-width: 0;
}

.ai-window.is-dragging,
.ai-window.is-resizing {
  user-select: none;
}

.ai-chat-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  color: #f3f3f3;
  font-family: "Segoe UI", Arial, sans-serif;
}

.ai-reply-area {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #181a1e;
}

.ai-reply-message {
  color: #eeeeee;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ai-reply-message > :first-child {
  margin-top: 0;
}

.ai-reply-message > :last-child {
  margin-bottom: 0;
}

.ai-reply-message p,
.ai-reply-message ul,
.ai-reply-message ol,
.ai-reply-message blockquote {
  margin: 0 0 14px;
}

.ai-reply-message h1,
.ai-reply-message h2,
.ai-reply-message h3,
.ai-reply-message h4 {
  margin: 20px 0 10px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0;
}

.ai-reply-message h1 { font-size: 22px; }
.ai-reply-message h2 { font-size: 19px; }
.ai-reply-message h3 { font-size: 16px; }
.ai-reply-message h4 { font-size: 14px; }

.ai-reply-message ul,
.ai-reply-message ol {
  padding-left: 25px;
}

.ai-reply-message li {
  margin: 4px 0;
}

.ai-reply-message code {
  padding: 1px 4px;
  background: #292c31;
  color: #d7eaff;
  font: 13px/1.5 Consolas, "Courier New", monospace;
}

.ai-reply-message pre {
  margin: 0 0 16px;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid #343a42;
  background: #0f1114;
}

.ai-reply-message pre code {
  padding: 0;
  background: transparent;
  color: #e6edf3;
  white-space: pre;
}

.ai-reply-message blockquote {
  padding-left: 12px;
  border-left: 3px solid #0078d7;
  color: #b9c0c9;
}

.ai-input-area {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #34373d;
  background: #202225;
}

.ai-input {
  min-width: 0;
  min-height: 52px;
  max-height: 130px;
  flex: 1;
  padding: 8px 10px;
  resize: vertical;
  border: 1px solid #555b63;
  border-radius: 0;
  outline: none;
  background: #111316;
  color: #f3f3f3;
  font: 13px/1.55 "Segoe UI", Arial, sans-serif;
}

.ai-input:focus {
  border-color: #0078d7;
}

.ai-send-button {
  width: 72px;
  border: 1px solid #0078d7;
  border-radius: 0;
  background: #0078d7;
  color: #ffffff;
  font: 13px "Segoe UI", Arial, sans-serif;
  cursor: default;
}

.ai-send-button:hover,
.ai-send-button:focus-visible {
  background: #1683d8;
  outline: none;
}

.ai-send-button:disabled {
  opacity: 0.58;
}

.chat-window.is-hidden,
.chat-window.is-minimized {
  display: none;
}

.chat-window.is-maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 40px) !important;
  border-width: 0;
}

.chat-window.is-dragging,
.chat-window.is-resizing {
  user-select: none;
}

.chat-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
  color: #f3f3f3;
  font-family: "Segoe UI", Arial, sans-serif;
}

.chat-sidebar {
  padding: 18px 14px;
  border-right: 1px solid #34373d;
  background: #202225;
}

.chat-sidebar h2,
.chat-sidebar h3 {
  margin: 0;
  font-weight: 600;
}

.chat-sidebar h2 {
  padding: 0 4px 15px;
  border-bottom: 1px solid #3a3d42;
  font-size: 16px;
}

.chat-sidebar h3 {
  margin: 22px 4px 8px;
  color: #b9bdc4;
  font-size: 12px;
  text-transform: uppercase;
}

.chat-online-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 8px 4px;
  color: #d8d8d8;
  font-size: 13px;
}

.chat-online-summary strong {
  color: #6fcf75;
}

.chat-online-placeholder {
  margin: 0 4px;
  color: #8d929a;
  font-size: 12px;
}

.chat-online-users {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-online-user {
  position: relative;
  margin: 0;
  padding: 6px 4px 6px 18px;
  color: #d8d8d8;
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.chat-online-user::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fcf75;
}

.chat-online-user.is-admin {
  color: #f0c674;
}

.chat-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #181a1e;
}

.chat-messages {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.chat-status {
  margin: 20px 0;
  color: #9da2aa;
  font-size: 13px;
  text-align: center;
}

.chat-status.is-error {
  color: #ff9b82;
}

.chat-message {
  padding: 10px 0 12px;
  border-bottom: 1px solid #292c31;
}

.chat-message-header {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 5px;
}

.chat-message-author {
  color: #63ade5;
  font-size: 13px;
  font-weight: 600;
}

.chat-message-author.is-admin {
  color: #f0b55a;
}

.chat-message-time {
  color: #777d86;
  font-size: 11px;
}

.chat-message-content {
  margin: 0;
  color: #ededed;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-compose {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-top: 1px solid #34373d;
  background: #202225;
}

.chat-guest-notice {
  margin: 0;
  color: #aeb3bb;
  font-size: 13px;
  text-align: center;
}

.chat-compose-row {
  display: flex;
  gap: 8px;
}

.chat-input {
  min-width: 0;
  min-height: 36px;
  flex: 1;
  padding: 7px 9px;
  resize: none;
  border: 1px solid #555b63;
  border-radius: 0;
  outline: none;
  background: #111316;
  color: #f3f3f3;
  font: 13px/1.5 "Segoe UI", Arial, sans-serif;
}

.chat-input:focus {
  border-color: #0078d7;
}

.chat-send-button {
  width: 72px;
  border: 1px solid #0078d7;
  border-radius: 0;
  background: #0078d7;
  color: #ffffff;
  font: 13px "Segoe UI", Arial, sans-serif;
}

.chat-send-button:disabled {
  opacity: 0.55;
}

@media (max-width: 700px) {
  .chat-window {
    min-width: 320px;
  }

  .chat-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

.blog-window.is-hidden,
.blog-window.is-minimized {
  display: none;
}

.blog-window.is-maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 40px) !important;
  border-width: 0;
}

.blog-window.is-dragging {
  user-select: none;
}

.blog-window.is-resizing {
  user-select: none;
}

.window-titlebar {
  height: 32px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  background: #ffffff;
  color: #111111;
  border-bottom: 1px solid #d5d5d5;
  cursor: move;
}

.window-app-icon {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 10px;
  flex: 0 0 auto;
}

.window-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-controls {
  height: 32px;
  display: flex;
  margin-left: auto;
}

.window-control {
  width: 46px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111111;
  font: 16px/1 "Segoe UI", Arial, sans-serif;
  cursor: default;
}

.window-control:hover {
  background: #e5e5e5;
}

.window-control.close:hover {
  background: #e81123;
  color: #ffffff;
}

.blog-frame {
  width: 100%;
  min-width: 0;
  flex: 1;
  border: 0;
  background: #111316;
}

.blog-window.is-dragging .blog-frame {
  pointer-events: none;
}

.blog-window.is-resizing .blog-frame {
  pointer-events: none;
}

.window-resize-handle {
  position: absolute;
  z-index: 5;
  background: transparent;
  touch-action: none;
}

.resize-n {
  top: -3px;
  left: 8px;
  right: 8px;
  height: 6px;
  cursor: ns-resize;
}

.resize-e {
  top: 8px;
  right: -3px;
  bottom: 8px;
  width: 6px;
  cursor: ew-resize;
}

.resize-s {
  left: 8px;
  right: 8px;
  bottom: -3px;
  height: 6px;
  cursor: ns-resize;
}

.resize-w {
  top: 8px;
  left: -3px;
  bottom: 8px;
  width: 6px;
  cursor: ew-resize;
}

.resize-ne,
.resize-se,
.resize-sw,
.resize-nw {
  width: 12px;
  height: 12px;
}

.resize-ne {
  top: -4px;
  right: -4px;
  cursor: nesw-resize;
}

.resize-se {
  right: -4px;
  bottom: -4px;
  cursor: nwse-resize;
}

.resize-sw {
  left: -4px;
  bottom: -4px;
  cursor: nesw-resize;
}

.resize-nw {
  top: -4px;
  left: -4px;
  cursor: nwse-resize;
}

.start-menu {
  position: absolute;
  left: 6px;
  bottom: 46px;
  width: clamp(340px, 28vw, 370px);
  height: clamp(400px, 55vh, 430px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  background: rgba(28, 28, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24), 0 -10px 28px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
  z-index: 70;
}

.start-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.start-menu-user {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82px;
  padding: 17px 22px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.start-menu-user strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

.start-menu-user span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.start-menu-apps {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.start-menu-apps::-webkit-scrollbar {
  width: 10px;
}

.start-menu-apps::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

.start-menu-apps::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border: 2px solid rgba(28, 28, 28, 0.94);
}

.start-menu-apps::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.36);
}

.start-menu-apps h2 {
  margin: 0 8px 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
}

.start-menu-app {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  color: #ffffff;
  font: 14px "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  text-align: left;
  cursor: default;
}

.start-menu-app:hover,
.start-menu-app:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.start-menu-app:active {
  background: rgba(255, 255, 255, 0.07);
}

.start-menu-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.start-menu-app-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.start-menu-app-copy strong {
  font-size: 14px;
  font-weight: 600;
}

.start-menu-app-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-menu-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.start-menu-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: 13px "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  text-decoration: none;
  cursor: default;
}

.start-menu-action:last-child {
  border-right: 0;
}

.start-menu-action:hover,
.start-menu-action:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.desktop-shell.is-light-theme .taskbar {
  background: rgba(238, 238, 238, 0.94);
  border-top-color: rgba(0, 0, 0, 0.16);
}

.desktop-shell.is-light-theme .start-button,
.desktop-shell.is-light-theme .taskbar-app,
.desktop-shell.is-light-theme .taskbar-clock {
  color: #151515;
}

.desktop-shell.is-light-theme .windows-mark span {
  background: #151515;
}

@media (max-height: 560px) {
  .start-menu {
    height: min(320px, calc(100vh - 52px));
  }
}

@media (max-width: 390px) {
  .start-menu {
    left: 0;
    width: 100vw;
  }
}

.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  display: flex;
  align-items: stretch;
  background: rgba(24, 24, 24, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  z-index: 60;
}

.start-button,
.taskbar-app {
  width: 48px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  cursor: default;
}

.start-button:hover,
.start-button[aria-expanded="true"],
.taskbar-app:hover,
.taskbar-app.is-active {
  background: rgba(255, 255, 255, 0.14);
}

.taskbar-app {
  position: relative;
}

.taskbar-app.is-running::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  background: #76b9ed;
}

.taskbar-app-icon {
  width: 24px;
  height: 24px;
}

.windows-mark {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.windows-mark span {
  display: block;
  background: #ffffff;
}

.taskbar-spacer {
  flex: 1;
}

.taskbar-clock {
  min-width: 92px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #ffffff;
  font: 12px/16px "Segoe UI", Arial, sans-serif;
  text-align: center;
}

.taskbar-clock:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.city-world-active .desktop-shell {
  visibility: hidden;
}

.city-world-app {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #07111d;
}

.city-world-app.is-hidden {
  display: none;
}

.city-world-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.city-world-performance {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: min(286px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 10px 12px;
  color: #d9e7f5;
  background: rgba(4, 12, 22, 0.82);
  border: 1px solid rgba(129, 169, 207, 0.42);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  font-family: Consolas, "Segoe UI", monospace;
  pointer-events: auto;
  opacity: 0;
}

.city-world-app.is-ready .city-world-performance {
  opacity: 1;
}

.city-world-performance strong {
  display: block;
  margin-bottom: 6px;
  color: #8fc9ff;
  font-size: 11px;
  font-weight: 600;
}

.city-world-performance pre {
  margin: 0;
  font: 11px/1.48 Consolas, "Segoe UI", monospace;
  white-space: pre;
}

.city-world-night-panel {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(129, 169, 207, 0.28);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.city-world-night-panel summary {
  color: #b8d7f5;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.city-world-night-controls {
  display: grid;
  gap: 8px;
  padding-top: 9px;
}

.city-world-night-controls label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  color: #d9e7f5;
  font-size: 11px;
}

.city-world-night-controls output {
  color: #8fc9ff;
  font-family: Consolas, monospace;
}

.city-world-night-controls input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #1686d9;
}

.city-world-night-controls input[type="color"] {
  width: 34px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(143, 201, 255, 0.48);
  border-radius: 0;
}

.city-world-night-controls .city-world-night-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
}

.city-world-night-controls button {
  min-height: 28px;
  color: #eaf4ff;
  background: #142536;
  border: 1px solid rgba(143, 201, 255, 0.45);
  border-radius: 0;
  font: 11px "Segoe UI", "Microsoft YaHei", sans-serif;
}

.city-world-night-controls button:hover,
.city-world-night-controls button:focus-visible {
  background: #1d3850;
}

.city-world-rain-summary {
  color: #9ecbff;
  font: 10px/1.45 Consolas, "Segoe UI", monospace;
  white-space: pre-line;
}

.city-world-wet-inspector {
  display: grid;
  gap: 8px;
  padding-top: 9px;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.city-world-wet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.city-world-wet-actions button,
.city-world-wet-candidate-actions button {
  min-height: 27px;
  color: #eaf4ff;
  background: #142536;
  border: 1px solid rgba(143, 201, 255, 0.4);
  border-radius: 0;
  font: 10px "Segoe UI", "Microsoft YaHei", sans-serif;
}

.city-world-wet-actions button:hover,
.city-world-wet-actions button:focus-visible,
.city-world-wet-candidate-actions button:hover,
.city-world-wet-candidate-actions button:focus-visible {
  background: #1d3850;
}

.city-world-wet-candidates {
  display: grid;
  gap: 5px;
  max-height: 280px;
  overflow: auto;
  scrollbar-color: #55738d #091522;
}

.city-world-wet-empty {
  margin: 0;
  color: #a9bfd3;
  font-size: 11px;
}

.city-world-wet-candidate {
  padding: 6px;
  background: rgba(10, 25, 39, 0.75);
  border: 1px solid rgba(129, 169, 207, 0.25);
}

.city-world-wet-candidate.is-selected {
  border-left: 3px solid #1686d9;
}

.city-world-wet-candidate-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #ecf6ff;
  font-size: 11px;
}

.city-world-wet-candidate-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-world-wet-candidate-title output {
  color: #8fc9ff;
  font: 10px Consolas, monospace;
}

.city-world-wet-candidate-info {
  margin: 5px 0;
  color: #a9bfd3;
  font: 9px/1.45 Consolas, "Microsoft YaHei", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.city-world-wet-candidate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.city-world-panel-exit {
  width: 100%;
  min-height: 30px;
  margin-top: 10px;
  color: #ffffff;
  background: #0d65a8;
  border: 1px solid #1686d9;
  border-radius: 0;
  font: 12px "Segoe UI", "Microsoft YaHei", sans-serif;
}

.city-world-panel-exit:hover,
.city-world-panel-exit:focus-visible {
  background: #1176bf;
}

.city-world-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #f0f6fc;
  background: #07111d;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.city-world-loading strong {
  font-size: 22px;
  font-weight: 400;
}

.city-world-loading span {
  color: #9ecbff;
  font-size: 14px;
}

.city-world-app.is-ready .city-world-loading {
  display: none;
}

.city-world-return {
  min-width: 112px;
  min-height: 34px;
  margin-top: 8px;
  color: #ffffff;
  background: #0d65a8;
  border: 1px solid #1686d9;
  border-radius: 0;
  font: 14px "Segoe UI", "Microsoft YaHei", sans-serif;
}

.city-world-return:hover,
.city-world-return:focus-visible {
  background: #1176bf;
}

.city-world-return.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .blog-window {
    left: 96px;
    width: calc(100vw - 124px);
  }
}
