/* Pure Visual Presentation Layer for lusu575.com
   Batch 1: Desktop Pond CRT Home + CRT Knowledge List Skin
   Zero business-logic changes: all real DOM, routing, API data, filtering, sorting,
   pinning, search, pagination, and account sessions stay 100% in existing site code. */

#pond-visual-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: none;
  background: #000000;
}

#pond-desktop-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

html[data-pond-mode="home"] #pond-visual-backdrop {
  display: block;
  z-index: 40;
}

html[data-pond-mode="knowledge"] #pond-visual-backdrop,
html[data-pond-mode="article"] #pond-visual-backdrop {
  display: block;
  z-index: 1;
}

/* Home mode: Pond CRT canvas is the interactive desktop; hide old XP chrome & wallpaper
   while allowing the real account popover to float cleanly above the pond when opened */
html[data-pond-mode="home"] .wallpaper-layer,
html[data-pond-mode="home"] .xp-taskbar,
html[data-pond-mode="home"] .desktop-area,
html[data-pond-mode="home"] .site-shell > main {
  pointer-events: none;
  opacity: 0;
}

html[data-pond-mode="home"] .site-shell > header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  pointer-events: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-pond-mode="home"] .xp-topbar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  visibility: hidden;
  pointer-events: none;
}

html[data-pond-mode="home"] #account-popover:not([hidden]) {
  visibility: visible;
  pointer-events: auto;
  position: fixed;
  left: 48px;
  bottom: 72px;
  top: auto !important;
  right: auto !important;
  z-index: 60;
}

/* Knowledge & Article modes: live Pond CRT behind + real #knowledge .xp-window skinned as CRT glass */
html[data-pond-mode="knowledge"] body,
html[data-pond-mode="knowledge"] .site-shell,
html[data-pond-mode="knowledge"] .site-shell::before,
html[data-pond-mode="knowledge"] .site-shell::after,
html[data-pond-mode="article"] body,
html[data-pond-mode="article"] .site-shell,
html[data-pond-mode="article"] .site-shell::before,
html[data-pond-mode="article"] .site-shell::after {
  background: transparent !important;
}

html[data-pond-mode="knowledge"] .wallpaper-layer,
html[data-pond-mode="article"] .wallpaper-layer {
  display: none !important;
}

html[data-pond-mode="knowledge"] .xp-taskbar,
html[data-pond-mode="knowledge"] .site-shell > header,
html[data-pond-mode="article"] .xp-taskbar,
html[data-pond-mode="article"] .site-shell > header {
  opacity: 0;
  pointer-events: none;
}

html[data-pond-mode="knowledge"] .site-shell,
html[data-pond-mode="article"] .site-shell {
  position: relative;
  z-index: 20;
}

html[data-pond-mode="knowledge"] .site-shell > main,
html[data-pond-mode="article"] .site-shell > main {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 24px 44px;
  background: transparent !important;
  pointer-events: none;
}

html[data-pond-mode="knowledge"] #knowledge,
html[data-pond-mode="article"] #knowledge {
  width: min(880px, 60vw);
  min-width: min(640px, 92vw);
  max-height: min(740px, 76vh);
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: auto;
}

html[data-pond-mode="article"] #knowledge {
  width: min(960px, 66vw);
  max-height: min(760px, 78vh);
}

html[data-pond-mode="knowledge"] #knowledge .xp-window.folder-window,
html[data-pond-mode="article"] #knowledge .xp-window.folder-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(760px, 78vh);
  margin: 0 !important;
  padding: 22px 28px 18px !important;
  border-radius: 18px !important;
  color: rgba(232, 248, 246, 0.94);
  background: linear-gradient(
    180deg,
    rgba(6, 22, 24, 0.80) 0%,
    rgba(4, 16, 19, 0.84) 55%,
    rgba(5, 18, 22, 0.86) 100%
  ) !important;
  backdrop-filter: blur(10px) saturate(1.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
  border: 1.5px solid rgba(182, 244, 234, 0.56) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 26px rgba(108, 232, 220, 0.22),
    0 0 46px rgba(182, 124, 238, 0.12),
    inset 0 0 38px rgba(3, 14, 16, 0.72) !important;
  overflow: hidden;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Unified CRT phosphor-dot + scanline layer over the skinned window */
html[data-pond-mode="knowledge"] #knowledge .xp-window.folder-window::after,
html[data-pond-mode="article"] #knowledge .xp-window.folder-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  background-image:
    radial-gradient(rgba(210, 255, 248, 0.11) 0.75px, transparent 0.75px),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.14) 0px,
      rgba(0, 0, 0, 0.14) 1px,
      transparent 1px,
      transparent 3px
    );
  background-size: 4px 4px, 100% 3px;
  opacity: 0.52;
}

/* Titlebar */
html[data-pond-mode="knowledge"] #knowledge .window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 14px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #effdf9 !important;
  flex-shrink: 0;
}

html[data-pond-mode="knowledge"] #knowledge .window-titlebar > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #effdf9;
  text-shadow: 0 0 10px rgba(176, 246, 234, 0.42);
}

html[data-pond-mode="knowledge"] #knowledge .window-titlebar .title-icon-knowledge {
  width: 34px !important;
  height: 28px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Cpath d='M6 8 C12 6,19 6,24 10 L24 33 C19 29,12 29,6 31 Z M42 8 C36 6,29 6,24 10 L24 33 C29 29,36 29,42 31 Z' fill='none' stroke='%23e8fcf7' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='0.5 3.6'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 0 6px rgba(180, 248, 236, 0.55));
}

html[data-pond-mode="knowledge"] #knowledge .window-titlebar .close-button {
  width: 30px;
  height: 30px;
  border-radius: 999px !important;
  border: 1px dashed rgba(185, 235, 230, 0.38) !important;
  background: rgba(6, 20, 22, 0.50) !important;
  color: rgba(210, 244, 240, 0.84) !important;
  box-shadow: none !important;
  font-size: 16px;
  line-height: 1;
}

html[data-pond-mode="knowledge"] #knowledge .window-titlebar .close-button:hover {
  border-color: rgba(180, 250, 240, 0.85) !important;
  box-shadow: 0 0 10px rgba(120, 236, 225, 0.35) !important;
}

/* Hide reading progress bar while in list view (shown only when reading an article) */
html[data-pond-mode="knowledge"] #knowledge .article-read-progress {
  display: none !important;
}

/* Search bar */
html[data-pond-mode="knowledge"] #knowledge-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  flex-shrink: 0;
}

html[data-pond-mode="knowledge"] #knowledge-searchbar label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

html[data-pond-mode="knowledge"] #knowledge-search-input {
  flex: 1;
  height: 38px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1.4px dashed rgba(188, 238, 232, 0.48) !important;
  background: rgba(3, 14, 16, 0.54) !important;
  color: #eefcf9 !important;
  font-family: inherit;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  box-shadow: none !important;
}

html[data-pond-mode="knowledge"] #knowledge-search-input::placeholder {
  color: rgba(186, 224, 220, 0.62);
}

html[data-pond-mode="knowledge"] #knowledge-search-input:focus {
  border-color: rgba(140, 244, 232, 0.84) !important;
  box-shadow: 0 0 14px rgba(96, 232, 220, 0.24) !important;
  outline: none;
}

html[data-pond-mode="knowledge"] #knowledge-searchbar [data-article-search-clear] {
  height: 32px;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px dashed rgba(186, 234, 228, 0.42) !important;
  background: rgba(6, 20, 22, 0.56) !important;
  color: rgba(214, 244, 240, 0.86) !important;
  box-shadow: none !important;
  font-size: 12px;
}

html[data-pond-mode="knowledge"] #knowledge-search-status {
  font-size: 11.5px;
  color: rgba(176, 224, 220, 0.78);
}

/* Folder layout -> single vertical column: horizontal category chips + scrollable article list */
html[data-pond-mode="knowledge"] #knowledge .folder-layout {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 0 !important;
  background: transparent !important;
}

/* Category filter chips row */
html[data-pond-mode="knowledge"] #knowledge-categories {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  overflow-x: auto;
  padding: 2px 2px 10px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(176, 230, 224, 0.24) !important;
  flex-shrink: 0;
  scrollbar-width: none;
}

html[data-pond-mode="knowledge"] #knowledge-categories::-webkit-scrollbar {
  display: none;
}

html[data-pond-mode="knowledge"] #knowledge-categories .category-button {
  flex: 0 0 auto;
  width: auto !important;
  height: 31px;
  padding: 0 13px !important;
  border-radius: 999px !important;
  border: 1.4px dashed rgba(190, 238, 232, 0.48) !important;
  background: rgba(5, 18, 20, 0.52) !important;
  color: rgba(220, 246, 242, 0.88) !important;
  box-shadow: none !important;
  font-size: 12px;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

html[data-pond-mode="knowledge"] #knowledge-categories .category-button:hover {
  border-color: rgba(162, 246, 236, 0.84) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(102, 234, 224, 0.24) !important;
}

html[data-pond-mode="knowledge"] #knowledge-categories .category-button.active {
  border-style: solid !important;
  border-color: #88fce2 !important;
  background: rgba(18, 86, 90, 0.94) !important;
  background-image: none !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(136, 252, 226, 0.36);
  box-shadow: 0 0 12px rgba(72, 228, 224, 0.32) !important;
}

html[data-pond-mode="knowledge"] #knowledge-categories .filter-count {
  opacity: 1 !important;
  color: #d8fdf8 !important;
  font-size: 11px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  color: inherit !important;
  padding: 0 !important;
}

html[data-pond-mode="knowledge"] #knowledge-categories .filter-count::before {
  content: "(";
}

html[data-pond-mode="knowledge"] #knowledge-categories .filter-count::after {
  content: ")";
}

/* Scrollable article list */
html[data-pond-mode="knowledge"] #knowledge-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 4px 4px 0 !important;
  background: transparent !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 226, 216, 0.22) transparent;
}

html[data-pond-mode="knowledge"] #knowledge-list::-webkit-scrollbar {
  width: 3px;
}

html[data-pond-mode="knowledge"] #knowledge-list::-webkit-scrollbar-thumb {
  background: rgba(142, 226, 216, 0.24);
  border-radius: 999px;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card {
  display: block;
  padding: 13px 8px !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 1px dotted rgba(176, 230, 224, 0.26) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(232, 248, 246, 0.94) !important;
  text-decoration: none !important;
  transition: background 140ms ease;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card:hover {
  background: rgba(112, 236, 224, 0.07) !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card h2 {
  font-size: 15.5px !important;
  font-weight: 500 !important;
  color: #eefdf9 !important;
  margin: 0 0 6px !important;
  text-shadow: 0 0 8px rgba(170, 242, 232, 0.22);
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card p {
  font-size: 12.5px !important;
  color: rgba(188, 226, 222, 0.74) !important;
  margin: 0 0 8px !important;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-pond-mode="knowledge"] #knowledge-list .meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(192, 228, 224, 0.76) !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .meta-row .tag,
html[data-pond-mode="knowledge"] #knowledge-list .meta-row .article-tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(138, 224, 210, 0.44) !important;
  background: rgba(8, 28, 30, 0.56) !important;
  color: rgba(200, 240, 234, 0.90) !important;
  font-size: 11px !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .meta-row .pinned-badge,
html[data-pond-mode="knowledge"] #knowledge-list .meta-row .article-pinned-badge {
  border-color: rgba(255, 130, 214, 0.65) !important;
  background: rgba(82, 20, 62, 0.52) !important;
  color: #ffb8e8 !important;
  border-radius: 999px !important;
  padding: 1px 9px !important;
}

/* Pagination ("加载更多") */
html[data-pond-mode="knowledge"] #knowledge-list .knowledge-list-more {
  grid-column: 1 / -1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 8px 6px !important;
  background: transparent !important;
  border: none !important;
  color: rgba(192, 228, 224, 0.74) !important;
  font-size: 12px;
}

html[data-pond-mode="knowledge"] #knowledge-list [data-article-load-more] {
  border-radius: 999px !important;
  border: 1.3px dashed rgba(186, 236, 230, 0.52) !important;
  background: rgba(6, 20, 22, 0.58) !important;
  color: #eefcf9 !important;
  padding: 5px 18px !important;
  box-shadow: none !important;
  font-size: 12.5px;
}

html[data-pond-mode="knowledge"] #knowledge-list [data-article-load-more]:hover:not(:disabled) {
  border-color: rgba(154, 246, 236, 0.9) !important;
  box-shadow: 0 0 12px rgba(102, 234, 224, 0.30) !important;
}

/* Loading / Empty / Retry states inside CRT Knowledge & Article Windows */
html[data-pond-mode="knowledge"] #knowledge .content-state,
html[data-pond-mode="article"] #knowledge .content-state {
  margin: 18px 0 !important;
  padding: 20px 18px !important;
  border-radius: 12px !important;
  border: 1px dashed rgba(182, 236, 230, 0.38) !important;
  background: rgba(5, 18, 22, 0.56) !important;
  box-shadow: none !important;
  color: rgba(214, 244, 240, 0.88) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

html[data-pond-mode="knowledge"] #knowledge .content-state-copy,
html[data-pond-mode="article"] #knowledge .content-state-copy {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: rgba(214, 244, 240, 0.88) !important;
  font-size: 13px !important;
}

html[data-pond-mode="knowledge"] #knowledge .content-state .xp-button,
html[data-pond-mode="article"] #knowledge .content-state .xp-button {
  border-radius: 999px !important;
  border: 1.3px dashed rgba(176, 240, 234, 0.56) !important;
  background: rgba(8, 26, 30, 0.68) !important;
  color: #eefcf9 !important;
  box-shadow: none !important;
  padding: 6px 16px !important;
  font-size: 12.5px !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card-skeleton {
  background: rgba(120, 220, 214, 0.06) !important;
  border-bottom: 1px dotted rgba(176, 230, 224, 0.18) !important;
}

/* ============================================================
   Batch 2: Article Reader (html[data-pond-mode="article"])
   Matches design-assets/windows/article.png over untouched #article-detail DOM
   ============================================================ */

html[data-pond-mode="article"] #knowledge .window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 10px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #effdf9 !important;
  flex-shrink: 0;
}

html[data-pond-mode="article"] #knowledge .window-titlebar > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(220, 246, 242, 0.92);
}

html[data-pond-mode="article"] #knowledge .window-titlebar .title-icon-knowledge {
  width: 24px !important;
  height: 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Cpath d='M6 8 C12 6,19 6,24 10 L24 33 C19 29,12 29,6 31 Z M42 8 C36 6,29 6,24 10 L24 33 C29 29,36 29,42 31 Z' fill='none' stroke='%23e8fcf7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='0.5 3.6'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

html[data-pond-mode="article"] #knowledge .window-titlebar .close-button {
  width: 28px;
  height: 28px;
  border-radius: 999px !important;
  border: 1px dashed rgba(185, 235, 230, 0.38) !important;
  background: rgba(6, 20, 22, 0.50) !important;
  color: rgba(210, 244, 240, 0.84) !important;
  box-shadow: none !important;
  font-size: 15px;
  line-height: 1;
}

/* Top reading progress bar matching article.png (cyan -> lavender -> pink) */
html[data-pond-mode="article"] #knowledge .article-read-progress {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 0 0 12px !important;
  margin: 0 0 12px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(176, 230, 224, 0.28) !important;
  flex-shrink: 0;
}

html[data-pond-mode="article"] #knowledge .article-read-progress-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(206, 240, 236, 0.88);
  order: 2;
  white-space: nowrap;
}

html[data-pond-mode="article"] #knowledge .article-read-progress-label strong {
  color: #f4fffe;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(154, 246, 236, 0.55);
  font-variant-numeric: tabular-nums;
}

html[data-pond-mode="article"] #knowledge .article-read-progress-track {
  flex: 1;
  order: 1;
  height: 13px !important;
  border-radius: 999px !important;
  border: 1.4px dotted rgba(196, 244, 238, 0.68) !important;
  background: rgba(3, 14, 16, 0.72) !important;
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(102, 234, 224, 0.16) !important;
}

html[data-pond-mode="article"] #knowledge #article-read-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #5ef4d8 !important;
  background-image: none !important;
  box-shadow: 0 0 10px rgba(94, 244, 216, 0.55);
}

/* Hide list-mode category sidebar when reading an article */
html[data-pond-mode="article"] #knowledge #knowledge-categories,
html[data-pond-mode="article"] #knowledge #knowledge-searchbar {
  display: none !important;
}

html[data-pond-mode="article"] #knowledge .folder-layout {
  display: flex !important;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 !important;
  background: transparent !important;
}

html[data-pond-mode="article"] #knowledge .xp-window.folder-window {
  height: min(740px, 76vh) !important;
  max-height: min(740px, 76vh) !important;
}

html[data-pond-mode="article"] #article-detail {
  position: relative;
  display: grid !important;
  grid-template-columns: 205px minmax(0, 1fr) !important;
  gap: 22px !important;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  flex: 1;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  color: rgba(226, 246, 242, 0.92);
}

html[data-pond-mode="article"] #article-detail-summary:empty {
  display: none !important;
}

/* Left TOC sidebar */
html[data-pond-mode="article"] .article-reader-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 14px 12px 2px !important;
  border-right: 1px dotted rgba(176, 230, 224, 0.28) !important;
  background: transparent !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 226, 216, 0.22) transparent;
}

html[data-pond-mode="article"] .article-back-button {
  width: 100%;
  justify-content: flex-start;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  border: 1.3px dashed rgba(186, 236, 230, 0.48) !important;
  background: rgba(6, 20, 24, 0.58) !important;
  color: #eefcf9 !important;
  box-shadow: none !important;
  font-size: 12.5px !important;
  cursor: pointer;
}

html[data-pond-mode="article"] .article-back-button:hover {
  border-color: rgba(154, 246, 236, 0.9) !important;
  box-shadow: 0 0 12px rgba(102, 234, 224, 0.28) !important;
}

html[data-pond-mode="article"] .article-toc {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

html[data-pond-mode="article"] .article-toc > p {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(188, 230, 226, 0.78);
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

html[data-pond-mode="article"] #article-detail-toc-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-left: 1px dotted rgba(176, 230, 224, 0.34);
  padding-left: 10px;
}

html[data-pond-mode="article"] #article-detail-toc-list a,
html[data-pond-mode="article"] #article-detail-toc-list button {
  display: block;
  text-align: left;
  background: transparent !important;
  border: none !important;
  padding: 4px 6px !important;
  color: rgba(196, 232, 228, 0.76) !important;
  font-size: 12px !important;
  line-height: 1.45;
  text-decoration: none !important;
  border-radius: 6px;
  transition: color 130ms ease, background 130ms ease;
}

html[data-pond-mode="article"] #article-detail-toc-list a:hover,
html[data-pond-mode="article"] #article-detail-toc-list button:hover,
html[data-pond-mode="article"] #article-detail-toc-list .is-active,
html[data-pond-mode="article"] #article-detail-toc-list [aria-current="true"] {
  color: #84ffdd !important;
  background: rgba(92, 236, 210, 0.10) !important;
  text-shadow: 0 0 8px rgba(102, 248, 216, 0.55);
}

html[data-pond-mode="article"] .article-toc-tip {
  margin-top: auto;
  padding: 10px 11px !important;
  border-radius: 10px !important;
  border: 1px dotted rgba(176, 230, 224, 0.28) !important;
  background: rgba(5, 18, 22, 0.45) !important;
  color: rgba(180, 220, 216, 0.72) !important;
  font-size: 11px !important;
  line-height: 1.5;
}

html[data-pond-mode="article"] .article-toc-tip strong {
  color: rgba(214, 244, 240, 0.88) !important;
}

/* Right scrollable article content card */
html[data-pond-mode="article"] .article-detail-card {
  min-height: 0;
  overflow-y: auto;
  padding: 4px 12px 24px 2px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 226, 216, 0.24) transparent;
}

html[data-pond-mode="article"] .article-detail-card::-webkit-scrollbar {
  width: 4px;
}

html[data-pond-mode="article"] .article-detail-card::-webkit-scrollbar-thumb {
  background: rgba(142, 226, 216, 0.26);
  border-radius: 999px;
}

html[data-pond-mode="article"] .article-detail-head {
  padding: 0 0 14px !important;
  margin: 0 0 16px !important;
  border: none !important;
  border-bottom: 1px dotted rgba(176, 230, 224, 0.24) !important;
  background: transparent !important;
}

html[data-pond-mode="article"] #article-detail-title {
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.35;
  color: #f0fefa !important;
  text-shadow: 0 0 12px rgba(170, 244, 234, 0.32);
  margin: 6px 0 10px !important;
}

html[data-pond-mode="article"] #article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(188, 226, 222, 0.78) !important;
}

html[data-pond-mode="article"] #article-detail-meta .tag,
html[data-pond-mode="article"] #article-detail-meta .article-tag {
  border-radius: 999px !important;
  border: 1px solid rgba(138, 224, 210, 0.42) !important;
  background: rgba(8, 28, 30, 0.56) !important;
  color: #c8f0ea !important;
  padding: 1px 9px !important;
}

/* Dotted yellow summary callout box with localized prefix matching article.png */
html[data-pond-mode="article"] #article-detail-summary {
  margin: 12px 0 10px !important;
  padding: 13px 16px !important;
  border-radius: 10px !important;
  border: 1.6px dotted rgba(246, 232, 146, 0.78) !important;
  background: rgba(24, 34, 22, 0.52) !important;
  box-shadow: 0 0 14px rgba(240, 224, 130, 0.14);
  color: rgba(244, 248, 220, 0.94) !important;
  font-size: 13.5px !important;
  line-height: 1.68;
}

html[data-pond-mode="article"] #article-detail-summary::before {
  content: "摘要：";
  color: #f8e88c;
  font-weight: 600;
}

html[lang="en"][data-pond-mode="article"] #article-detail-summary::before {
  content: "Summary: ";
}

html[lang="ja"][data-pond-mode="article"] #article-detail-summary::before {
  content: "要約：";
}

html[data-pond-mode="article"] .article-summary-toggle,
html[data-pond-mode="article"] .article-copy-link,
html[data-pond-mode="article"] .article-top-link {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(176, 236, 230, 0.46) !important;
  background: rgba(6, 22, 24, 0.62) !important;
  color: #e6faf6 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
}

html[data-pond-mode="article"] .article-copy-status {
  font-size: 11.5px;
  color: #8cf2d8;
}

/* Markdown body typography in CRT theme */
html[data-pond-mode="article"] .markdown-body {
  color: rgba(224, 244, 240, 0.90) !important;
  font-size: 14.5px !important;
  line-height: 1.78 !important;
}

html[data-pond-mode="article"] .markdown-body h1,
html[data-pond-mode="article"] .markdown-body h2,
html[data-pond-mode="article"] .markdown-body h3,
html[data-pond-mode="article"] .markdown-body h4 {
  color: #8ff8e2 !important;
  text-shadow: 0 0 10px rgba(112, 244, 222, 0.34);
  border-bottom-color: rgba(176, 230, 224, 0.22) !important;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

html[data-pond-mode="article"] .markdown-body a {
  color: #7ee8ff !important;
  text-decoration: underline dotted rgba(126, 232, 255, 0.65);
}

html[data-pond-mode="article"] .markdown-body code {
  background: rgba(10, 34, 38, 0.78) !important;
  color: #b4f8ec !important;
  border: 1px solid rgba(138, 224, 214, 0.25);
  border-radius: 5px;
  padding: 1px 5px;
}

html[data-pond-mode="article"] .markdown-body pre {
  background: rgba(3, 14, 18, 0.86) !important;
  border: 1px dotted rgba(160, 228, 222, 0.36) !important;
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
}

html[data-pond-mode="article"] .markdown-body blockquote {
  border-left: 3px solid rgba(118, 236, 220, 0.65) !important;
  background: rgba(8, 26, 28, 0.52) !important;
  color: rgba(208, 238, 234, 0.86) !important;
  padding: 8px 14px;
  border-radius: 0 8px 8px 0;
}

html[data-pond-mode="article"] .markdown-body img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(176, 230, 224, 0.30);
}

/* ============================================================
   Batch 3: Videos Window (html[data-pond-mode="videos"])
   Matches design-assets/windows/videos.png over untouched #videos & #video-modal DOM
   ============================================================ */

html[data-pond-mode="videos"] #pond-visual-backdrop {
  display: block;
  z-index: 1;
}

html[data-pond-mode="videos"] body,
html[data-pond-mode="videos"] .site-shell,
html[data-pond-mode="videos"] .site-shell::before,
html[data-pond-mode="videos"] .site-shell::after {
  background: transparent !important;
}

html[data-pond-mode="videos"] .wallpaper-layer {
  display: none !important;
}

html[data-pond-mode="videos"] .xp-taskbar,
html[data-pond-mode="videos"] .site-shell > header {
  opacity: 0;
  pointer-events: none;
}

html[data-pond-mode="videos"] .site-shell {
  position: relative;
  z-index: 20;
}

html[data-pond-mode="videos"] .site-shell > main {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 24px 44px;
  background: transparent !important;
  pointer-events: none;
}

html[data-pond-mode="videos"] #videos {
  width: min(940px, 64vw);
  min-width: min(640px, 92vw);
  max-height: min(680px, 73vh);
  margin: 16px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: auto;
}

html[data-pond-mode="videos"] #videos .xp-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(680px, 73vh);
  margin: 0 !important;
  padding: 22px 28px 20px !important;
  border-radius: 18px !important;
  color: rgba(232, 248, 246, 0.94);
  background: linear-gradient(
    180deg,
    rgba(6, 22, 24, 0.80) 0%,
    rgba(4, 16, 19, 0.84) 55%,
    rgba(5, 18, 22, 0.86) 100%
  ) !important;
  backdrop-filter: blur(10px) saturate(1.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
  border: 1.5px solid rgba(182, 244, 234, 0.56) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 26px rgba(108, 232, 220, 0.22),
    0 0 46px rgba(182, 124, 238, 0.12),
    inset 0 0 38px rgba(3, 14, 16, 0.72) !important;
  overflow: hidden;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-pond-mode="videos"] #videos .xp-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  background-image:
    radial-gradient(rgba(210, 255, 248, 0.11) 0.75px, transparent 0.75px),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.14) 0px,
      rgba(0, 0, 0, 0.14) 1px,
      transparent 1px,
      transparent 3px
    );
  background-size: 4px 4px, 100% 3px;
  opacity: 0.50;
}

html[data-pond-mode="videos"] #videos .window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 14px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #effdf9 !important;
  flex-shrink: 0;
}

html[data-pond-mode="videos"] #videos .window-titlebar > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #effdf9;
  text-shadow: 0 0 10px rgba(176, 246, 234, 0.42);
}

html[data-pond-mode="videos"] #videos .window-titlebar .title-icon-videos {
  width: 34px !important;
  height: 28px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 38'%3E%3Crect x='4' y='5' width='40' height='28' rx='6' fill='none' stroke='%23e8fcf7' stroke-width='2.3' stroke-dasharray='0.5 3.6' stroke-linecap='round'/%3E%3Cpolygon points='20,13 32,19 20,25' fill='none' stroke='%23e8fcf7' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 0 6px rgba(180, 248, 236, 0.55));
}

html[data-pond-mode="videos"] #videos .window-titlebar .close-button {
  width: 30px;
  height: 30px;
  border-radius: 999px !important;
  border: 1px dashed rgba(185, 235, 230, 0.38) !important;
  background: rgba(6, 20, 22, 0.50) !important;
  color: rgba(210, 244, 240, 0.84) !important;
  box-shadow: none !important;
  font-size: 16px;
}

/* Video category filter row */
html[data-pond-mode="videos"] #video-categories {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 12px !important;
  margin: 0 0 14px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(176, 230, 224, 0.28) !important;
  flex-shrink: 0;
  scrollbar-width: none;
}

html[data-pond-mode="videos"] #video-categories button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 15px !important;
  border-radius: 999px !important;
  border: 1.3px dashed rgba(190, 238, 232, 0.42) !important;
  background: rgba(5, 18, 20, 0.45) !important;
  color: rgba(218, 244, 240, 0.86) !important;
  box-shadow: none !important;
  font-size: 12.5px;
  cursor: pointer;
}

html[data-pond-mode="videos"] #video-categories button.active,
html[data-pond-mode="videos"] #video-categories button[aria-pressed="true"] {
  border-style: solid !important;
  border-color: rgba(164, 246, 238, 0.88) !important;
  background: rgba(34, 152, 156, 0.42) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(96, 234, 224, 0.36) !important;
}

html[data-pond-mode="videos"] #video-categories .filter-count {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin-left: 3px;
  color: inherit !important;
  opacity: 0.82;
  font-size: 11px;
}

html[data-pond-mode="videos"] #video-categories .filter-count::before {
  content: "(";
}

html[data-pond-mode="videos"] #video-categories .filter-count::after {
  content: ")";
}

/* 3-column video grid matching design-assets/windows/videos.png */
html[data-pond-mode="videos"] #video-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  padding: 2px 4px 8px 2px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 226, 216, 0.24) transparent;
}

html[data-pond-mode="videos"] #video-list .video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(230, 248, 245, 0.94) !important;
}

html[data-pond-mode="videos"] #video-list .video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px !important;
  border: 1.4px solid rgba(176, 236, 230, 0.46) !important;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 62, 68, 0.9), rgba(24, 38, 66, 0.92), rgba(56, 30, 56, 0.88)) !important;
  box-shadow: 0 0 14px rgba(84, 216, 210, 0.16) !important;
  cursor: pointer;
  padding: 0 !important;
}

html[data-pond-mode="videos"] #video-list .video-card:nth-child(3n+2) .video-thumb.is-fallback {
  background: linear-gradient(135deg, rgba(78, 34, 62, 0.90), rgba(148, 64, 78, 0.82), rgba(44, 24, 48, 0.92)) !important;
}

html[data-pond-mode="videos"] #video-list .video-card:nth-child(3n+3) .video-thumb.is-fallback {
  background: linear-gradient(135deg, rgba(14, 58, 56, 0.92), rgba(38, 92, 82, 0.84), rgba(18, 42, 48, 0.92)) !important;
}

/* Thumbnail play overlay removed so thumbnail cover text is never obscured */

html[data-pond-mode="videos"] #video-list .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-pond-mode="videos"] #video-list .video-body {
  padding: 10px 2px 4px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[data-pond-mode="videos"] #video-list .video-body .platform {
  align-self: flex-start;
  font-size: 10.5px !important;
  padding: 1px 8px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(152, 232, 224, 0.42) !important;
  background: rgba(6, 24, 28, 0.62) !important;
  color: #c8f6ee !important;
}

html[data-pond-mode="videos"] #video-list .video-body h2 {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #eefdf9 !important;
  margin: 2px 0 0 !important;
  line-height: 1.4;
}

html[data-pond-mode="videos"] #video-list .video-body p {
  font-size: 11.5px !important;
  color: rgba(186, 224, 220, 0.72) !important;
  margin: 0 !important;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-pond-mode="videos"] #video-list .video-meta {
  font-size: 11px;
  color: rgba(172, 214, 210, 0.66) !important;
}

html[data-pond-mode="videos"] #video-list .xp-button,
html[data-pond-mode="videos"] #video-list .video-card button:not(.video-thumb),
html[data-pond-mode="videos"] #video-list .video-card a.xp-button {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(176, 236, 230, 0.50) !important;
  background: rgba(6, 22, 26, 0.62) !important;
  color: #eefcf9 !important;
  box-shadow: none !important;
  font-size: 11.5px !important;
  padding: 4px 14px !important;
  min-height: 28px !important;
}

html[data-pond-mode="videos"] #video-list .xp-button:hover,
html[data-pond-mode="videos"] #video-list .video-card button:not(.video-thumb):hover {
  border-color: rgba(154, 246, 236, 0.92) !important;
  box-shadow: 0 0 10px rgba(102, 234, 224, 0.30) !important;
}

html[data-pond-mode="videos"] #video-list .content-state {
  grid-column: 1 / -1;
  padding: 22px 18px !important;
  border-radius: 12px !important;
  border: 1px dashed rgba(182, 236, 230, 0.38) !important;
  background: rgba(5, 18, 22, 0.56) !important;
  color: rgba(214, 244, 240, 0.88) !important;
}

/* Video Player modal in CRT mode */
html[data-pond-mode="videos"] #video-modal .modal-window {
  border-radius: 16px !important;
  border: 1.5px solid rgba(182, 244, 234, 0.56) !important;
  background: rgba(5, 18, 22, 0.92) !important;
  color: #eefcf9 !important;
  box-shadow: 0 0 32px rgba(96, 228, 216, 0.28) !important;
}

/* ============================================================
   Global Brightened Luminous CRT Glass Tokens (lifted per review)
   Applies immediately to all CRT windows for brighter translucency + stronger border glow
   ============================================================ */

html[data-pond-mode="knowledge"] #knowledge .xp-window.folder-window,
html[data-pond-mode="article"] #knowledge .xp-window.folder-window,
html[data-pond-mode="videos"] #videos .xp-window,
html[data-pond-mode="resources"] #resources .xp-window,
html[data-pond-mode="games"] #games .xp-window,
html[data-pond-mode="chatroom"] #chatroom .xp-window,
html[data-pond-mode="about"] #about .xp-window {
  background: linear-gradient(
    180deg,
    rgba(10, 34, 38, 0.72) 0%,
    rgba(6, 24, 28, 0.76) 55%,
    rgba(8, 26, 32, 0.78) 100%
  ) !important;
  border: 1.6px solid rgba(202, 252, 244, 0.78) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 0 34px rgba(114, 244, 232, 0.34),
    0 0 60px rgba(206, 138, 248, 0.18),
    inset 0 0 32px rgba(12, 46, 48, 0.45) !important;
}

/* ============================================================
   Batch 4: Tools Window (html[data-pond-mode="resources"]) + Quick Transfer Modal
   Matches design-assets/windows/tools.png over untouched #resources DOM + GPT SVGs
   ============================================================ */

html[data-pond-mode="resources"] #pond-visual-backdrop {
  display: block;
  z-index: 1;
}

html[data-pond-mode="resources"] body,
html[data-pond-mode="resources"] .site-shell,
html[data-pond-mode="resources"] .site-shell::before,
html[data-pond-mode="resources"] .site-shell::after {
  background: transparent !important;
}

html[data-pond-mode="resources"] .wallpaper-layer {
  display: none !important;
}

html[data-pond-mode="resources"] .xp-taskbar,
html[data-pond-mode="resources"] .site-shell > header {
  opacity: 0;
  pointer-events: none;
}

html[data-pond-mode="resources"] .site-shell {
  position: relative;
  z-index: 20;
}

html[data-pond-mode="resources"] .site-shell > main {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 24px 44px;
  background: transparent !important;
  pointer-events: none;
}

html[data-pond-mode="resources"] #resources {
  width: min(940px, 64vw);
  min-width: min(640px, 92vw);
  max-height: min(690px, 74vh);
  margin: 12px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: auto;
}

html[data-pond-mode="resources"] #resources .xp-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(690px, 74vh);
  margin: 0 !important;
  padding: 22px 28px 20px !important;
  border-radius: 18px !important;
  color: rgba(236, 250, 248, 0.96);
  backdrop-filter: blur(10px) saturate(1.16);
  -webkit-backdrop-filter: blur(10px) saturate(1.16);
  overflow: hidden;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-pond-mode="resources"] #resources .xp-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  background-image:
    radial-gradient(rgba(210, 255, 248, 0.10) 0.75px, transparent 0.75px),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.12) 0px,
      rgba(0, 0, 0, 0.12) 1px,
      transparent 1px,
      transparent 3px
    );
  background-size: 4px 4px, 100% 3px;
  opacity: 0.48;
}

html[data-pond-mode="resources"] #resources .window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 14px !important;
  margin: 0 0 12px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(188, 240, 234, 0.34) !important;
  box-shadow: none !important;
  color: #f0fefa !important;
  flex-shrink: 0;
}

html[data-pond-mode="resources"] #resources .window-titlebar > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #f0fefa;
  text-shadow: 0 0 12px rgba(176, 248, 236, 0.50);
}

html[data-pond-mode="resources"] #resources .window-titlebar .title-icon-resources {
  width: 30px !important;
  height: 30px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M25 6a7 7 0 0 0-8.6 9.2L7.5 24.1a2.6 2.6 0 1 0 3.7 3.7l8.9-8.9A7 7 0 0 0 29.5 10l-4 4-3.5-3.5 3-4.5z' fill='none' stroke='%23eefcf9' stroke-width='2' stroke-dasharray='0.5 3.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 0 6px rgba(180, 248, 236, 0.55));
}

html[data-pond-mode="resources"] #resources .window-titlebar .close-button {
  width: 30px;
  height: 30px;
  border-radius: 999px !important;
  border: 1px dashed rgba(185, 235, 230, 0.44) !important;
  background: rgba(6, 22, 26, 0.52) !important;
  color: rgba(214, 248, 244, 0.88) !important;
  box-shadow: none !important;
  font-size: 16px;
}

/* Filter row */
html[data-pond-mode="resources"] #resource-categories {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 12px !important;
  margin: 0 0 12px !important;
  background: transparent !important;
  border: none !important;
  flex-shrink: 0;
}

html[data-pond-mode="resources"] #resource-categories button {
  flex: 0 0 auto;
  height: 29px;
  padding: 0 13px !important;
  border-radius: 999px !important;
  border: 1.3px dashed rgba(190, 238, 232, 0.44) !important;
  background: rgba(6, 22, 26, 0.46) !important;
  color: rgba(220, 246, 242, 0.88) !important;
  box-shadow: none !important;
  font-size: 12px;
}

html[data-pond-mode="resources"] #resource-categories button.active,
html[data-pond-mode="resources"] #resource-categories button[aria-pressed="true"] {
  border-style: solid !important;
  border-color: #88fce2 !important;
  background: rgba(18, 86, 90, 0.94) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(96, 234, 224, 0.32) !important;
}

html[data-pond-mode="resources"] #resource-categories .filter-count {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  padding: 0 !important;
  margin-left: 3px;
  opacity: 0.84;
}

/* 3-column tools & downloads grid matching design-assets/windows/tools.png */
html[data-pond-mode="resources"] #resource-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  padding: 2px 4px 8px 2px !important;
  background: transparent !important;
  border: none !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 226, 216, 0.24) transparent;
}

html[data-pond-mode="resources"] #resource-list .resource-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 14px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  border: 1.3px solid rgba(182, 242, 234, 0.48) !important;
  background: rgba(8, 28, 32, 0.56) !important;
  box-shadow: 0 0 16px rgba(92, 228, 218, 0.14), inset 0 0 18px rgba(4, 16, 20, 0.50) !important;
  color: rgba(232, 248, 246, 0.94) !important;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

html[data-pond-mode="resources"] #resource-list .resource-card:hover {
  border-color: rgba(180, 250, 242, 0.88) !important;
  box-shadow: 0 0 22px rgba(108, 238, 228, 0.28) !important;
}

html[data-pond-mode="resources"] #resource-list .resource-card .resource-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html[data-pond-mode="resources"] #resource-list .resource-card.pond-tool-download {
  padding: 12px 14px !important;
  border-radius: 12px !important;
}

html[data-pond-mode="resources"] #resource-list .resource-card.pond-tool-download h2 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #eefdf9 !important;
  margin: 0 !important;
  overflow: visible !important;
}

html[data-pond-mode="resources"] #resource-list .resource-card.pond-tool-download .resource-icon-image {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  filter: drop-shadow(0 0 6px rgba(176, 248, 236, 0.55));
}

html[data-pond-mode="resources"] #resource-list .resource-desc,
html[data-pond-mode="resources"] #resource-list .resource-card p {
  font-size: 12px !important;
  line-height: 1.55;
  color: rgba(196, 232, 228, 0.78) !important;
  margin: 0 !important;
}

html[data-pond-mode="resources"] #resource-list .resource-meta,
html[data-pond-mode="resources"] #resource-list .resource-tags,
html[data-pond-mode="resources"] #resource-list .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: rgba(176, 224, 218, 0.78) !important;
}

html[data-pond-mode="resources"] #resource-list .tag,
html[data-pond-mode="resources"] #resource-list .resource-tag {
  border-radius: 999px !important;
  border: 1px solid rgba(142, 228, 216, 0.42) !important;
  background: rgba(6, 24, 28, 0.62) !important;
  color: #c8f4ec !important;
  padding: 1px 8px !important;
}

html[data-pond-mode="resources"] #resource-list .xp-button,
html[data-pond-mode="resources"] #resource-list .resource-card a,
html[data-pond-mode="resources"] #resource-list .resource-card button {
  border-radius: 999px !important;
  border: 1.3px dashed rgba(182, 242, 236, 0.58) !important;
  background: rgba(8, 28, 34, 0.68) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow: none !important;
  font-size: 12.5px !important;
  padding: 6px 16px !important;
  text-decoration: none !important;
}

html[data-pond-mode="resources"] #resource-list .xp-button:hover,
html[data-pond-mode="resources"] #resource-list .resource-card a:hover,
html[data-pond-mode="resources"] #resource-list .resource-card button:hover {
  border-color: rgba(164, 248, 240, 0.94) !important;
  box-shadow: 0 0 14px rgba(102, 238, 226, 0.38) !important;
}

html[data-pond-mode="resources"] #resource-list details summary {
  color: rgba(166, 236, 228, 0.84) !important;
  font-size: 11.5px;
  cursor: pointer;
}

/* Quick Transfer modal (#quick-transfer-modal) CRT glass skin */
html[data-pond-mode="resources"] #quick-transfer-modal .modal-window,
html[data-pond-mode="resources"] #quick-transfer-modal .transfer-window {
  border-radius: 18px !important;
  border: 1.6px solid rgba(196, 250, 242, 0.72) !important;
  background: rgba(6, 24, 28, 0.92) !important;
  color: #eefcf9 !important;
  box-shadow: 0 0 36px rgba(104, 238, 226, 0.32) !important;
}

html[data-pond-mode="resources"] #quick-transfer-modal .window-titlebar {
  background: transparent !important;
  border-bottom: 1px dotted rgba(180, 236, 230, 0.32) !important;
  color: #f0fefa !important;
}

html[data-pond-mode="resources"] #quick-transfer-modal input,
html[data-pond-mode="resources"] #quick-transfer-modal textarea {
  background: rgba(4, 16, 20, 0.78) !important;
  color: #eefcf9 !important;
  border: 1.2px dashed rgba(176, 236, 230, 0.48) !important;
  border-radius: 10px !important;
}

html[data-pond-mode="resources"] #quick-transfer-modal .xp-button {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(180, 240, 234, 0.56) !important;
  background: rgba(8, 28, 32, 0.72) !important;
  color: #f0fefa !important;
  box-shadow: none !important;
}

/* ============================================================
   Batch 5: Games Shelf Window (html[data-pond-mode="games"])
   Matches design-assets/windows/games.png over untouched #games DOM + GPT covers
   ============================================================ */

html[data-pond-mode="games"] #pond-visual-backdrop {
  display: block;
  z-index: 1;
}

html[data-pond-mode="games"] body,
html[data-pond-mode="games"] .site-shell,
html[data-pond-mode="games"] .site-shell::before,
html[data-pond-mode="games"] .site-shell::after {
  background: transparent !important;
}

html[data-pond-mode="games"] .wallpaper-layer {
  display: none !important;
}

html[data-pond-mode="games"] .xp-taskbar,
html[data-pond-mode="games"] .site-shell > header {
  opacity: 0;
  pointer-events: none;
}

html[data-pond-mode="games"] .site-shell {
  position: relative;
  z-index: 20;
}

html[data-pond-mode="games"] .site-shell > main {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 24px 44px;
  background: transparent !important;
  pointer-events: none;
}

html[data-pond-mode="games"] #games {
  width: min(980px, 68vw);
  min-width: min(680px, 92vw);
  max-height: min(700px, 75vh);
  margin: 12px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: auto;
}

html[data-pond-mode="games"] #games .xp-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(700px, 75vh);
  margin: 0 !important;
  padding: 20px 26px 20px !important;
  border-radius: 18px !important;
  color: rgba(236, 250, 248, 0.96);
  backdrop-filter: blur(10px) saturate(1.16);
  -webkit-backdrop-filter: blur(10px) saturate(1.16);
  overflow: hidden;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-pond-mode="games"] #games .xp-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  background-image:
    radial-gradient(rgba(210, 255, 248, 0.10) 0.75px, transparent 0.75px),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.12) 0px,
      rgba(0, 0, 0, 0.12) 1px,
      transparent 1px,
      transparent 3px
    );
  background-size: 4px 4px, 100% 3px;
  opacity: 0.46;
}

html[data-pond-mode="games"] #games .window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 14px !important;
  margin: 0 0 14px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(188, 240, 234, 0.34) !important;
  box-shadow: none !important;
  color: #f0fefa !important;
  flex-shrink: 0;
}

html[data-pond-mode="games"] #games .window-titlebar > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #f0fefa;
  text-shadow: 0 0 12px rgba(176, 248, 236, 0.50);
}

html[data-pond-mode="games"] #games .window-titlebar .title-icon-games {
  width: 34px !important;
  height: 26px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 32'%3E%3Cpath d='M10 8h24a8 8 0 0 1 7.6 10.4l-2 6A5 5 0 0 1 31 25l-4-4H17l-4 4a5 5 0 0 1-8.6-.6l-2-6A8 8 0 0 1 10 8z' fill='none' stroke='%23eefcf9' stroke-width='2.1' stroke-dasharray='0.5 3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 0 6px rgba(180, 248, 236, 0.55));
}

html[data-pond-mode="games"] #games .window-titlebar .close-button {
  width: 30px;
  height: 30px;
  border-radius: 999px !important;
  border: 1px dashed rgba(185, 235, 230, 0.44) !important;
  background: rgba(6, 22, 26, 0.52) !important;
  color: rgba(214, 248, 244, 0.88) !important;
  box-shadow: none !important;
  font-size: 16px;
}

/* 6-column shelf matching games.png: top 3 cards span 2 cols each, bottom 2 cards span 3 cols each */
html[data-pond-mode="games"] #game-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 14px !important;
  padding: 2px 4px 8px 2px !important;
  background: transparent !important;
  border: none !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 226, 216, 0.24) transparent;
}

html[data-pond-mode="games"] #game-list .game-card {
  grid-column: span 2;
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  align-items: start;
  gap: 10px !important;
  padding: 14px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  border: 1.3px solid rgba(182, 242, 234, 0.48) !important;
  background: rgba(8, 28, 32, 0.56) !important;
  box-shadow: 0 0 16px rgba(92, 228, 218, 0.14), inset 0 0 18px rgba(4, 16, 20, 0.50) !important;
  color: rgba(232, 248, 246, 0.94) !important;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

html[data-pond-mode="games"] #game-list .game-card:nth-child(4),
html[data-pond-mode="games"] #game-list .game-card:nth-child(5) {
  grid-column: span 3;
  grid-template-columns: 136px minmax(0, 1fr) !important;
}

html[data-pond-mode="games"] #game-list .game-card:hover {
  border-color: rgba(200, 252, 246, 0.92) !important;
  box-shadow: 0 0 24px rgba(108, 238, 228, 0.34), 0 0 20px rgba(244, 118, 192, 0.22) !important;
}

html[data-pond-mode="games"] #game-list .game-cover {
  width: 100% !important;
  height: 88px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  border: 1px solid rgba(182, 242, 234, 0.42) !important;
  background: rgba(4, 16, 20, 0.72) !important;
  padding: 0 !important;
  overflow: hidden;
}

html[data-pond-mode="games"] #game-list .game-card[data-pond-cover-kind="art"] .game-cover {
  object-position: center;
  filter: contrast(1.06) brightness(1.05);
}

html[data-pond-mode="games"] #game-list .game-card[data-pond-cover-kind="svg"] .game-cover {
  object-fit: contain !important;
  padding: 6px !important;
}

html[data-pond-mode="games"] #game-list .game-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

html[data-pond-mode="games"] #game-list .game-main h2 {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #f0fefa !important;
  margin: 0 !important;
}

html[data-pond-mode="games"] #game-list .game-main p {
  font-size: 12px !important;
  line-height: 1.5;
  color: rgba(196, 232, 228, 0.78) !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-pond-mode="games"] #game-list .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
  color: rgba(182, 226, 220, 0.76) !important;
}

html[data-pond-mode="games"] #game-list .tag {
  border-radius: 999px !important;
  border: 1px solid rgba(142, 228, 216, 0.42) !important;
  background: rgba(6, 24, 28, 0.62) !important;
  color: #c8f4ec !important;
  padding: 1px 7px !important;
  font-size: 10.5px !important;
}

html[data-pond-mode="games"] #game-list .game-secondary-details summary {
  color: rgba(166, 236, 228, 0.80) !important;
  font-size: 11px;
  cursor: pointer;
}

html[data-pond-mode="games"] #game-list .xp-button,
html[data-pond-mode="games"] #game-list .game-card a,
html[data-pond-mode="games"] #game-list .game-card button {
  border-radius: 999px !important;
  border: 1.3px dashed rgba(182, 242, 236, 0.58) !important;
  background: rgba(8, 28, 34, 0.68) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow: none !important;
  font-size: 12px !important;
  padding: 5px 14px !important;
  text-decoration: none !important;
}

html[data-pond-mode="games"] #game-list .xp-button:hover,
html[data-pond-mode="games"] #game-list .game-card a:hover,
html[data-pond-mode="games"] #game-list .game-card button:hover {
  border-color: rgba(164, 248, 240, 0.94) !important;
  box-shadow: 0 0 12px rgba(102, 238, 226, 0.36) !important;
}

/* ============================================================
   Batch 6: Chatroom Window (html[data-pond-mode="chatroom"])
   Matches design-assets/windows/chat.png over untouched #chatroom DOM + GPT SVG avatars
   ============================================================ */

html[data-pond-mode="chatroom"] #pond-visual-backdrop {
  display: block;
  z-index: 1;
}

html[data-pond-mode="chatroom"] body,
html[data-pond-mode="chatroom"] .site-shell,
html[data-pond-mode="chatroom"] .site-shell::before,
html[data-pond-mode="chatroom"] .site-shell::after {
  background: transparent !important;
}

html[data-pond-mode="chatroom"] .wallpaper-layer {
  display: none !important;
}

html[data-pond-mode="chatroom"] .xp-taskbar,
html[data-pond-mode="chatroom"] .site-shell > header {
  opacity: 0;
  pointer-events: none;
}

html[data-pond-mode="chatroom"] .site-shell {
  position: relative;
  z-index: 20;
}

html[data-pond-mode="chatroom"] .site-shell > main {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 24px 44px;
  background: transparent !important;
  pointer-events: none;
}

html[data-pond-mode="chatroom"] #chatroom {
  width: min(920px, 64vw);
  min-width: min(640px, 92vw);
  max-height: min(700px, 75vh);
  margin: 12px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: auto;
}

html[data-pond-mode="chatroom"] #chatroom .xp-window.chatroom-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: min(690px, 74vh);
  max-height: min(690px, 74vh);
  margin: 0 !important;
  padding: 18px 26px 16px !important;
  border-radius: 18px !important;
  color: rgba(236, 250, 248, 0.96);
  backdrop-filter: blur(10px) saturate(1.16);
  -webkit-backdrop-filter: blur(10px) saturate(1.16);
  overflow: hidden;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-pond-mode="chatroom"] #chatroom .xp-window.chatroom-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  background-image:
    radial-gradient(rgba(210, 255, 248, 0.10) 0.75px, transparent 0.75px),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.12) 0px,
      rgba(0, 0, 0, 0.12) 1px,
      transparent 1px,
      transparent 3px
    );
  background-size: 4px 4px, 100% 3px;
  opacity: 0.45;
}

html[data-pond-mode="chatroom"] #chatroom .window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(188, 240, 234, 0.34) !important;
  box-shadow: none !important;
  color: #f0fefa !important;
  flex-shrink: 0;
}

html[data-pond-mode="chatroom"] #chatroom .window-titlebar > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #f0fefa;
  text-shadow: 0 0 12px rgba(176, 248, 236, 0.50);
}

html[data-pond-mode="chatroom"] #chatroom .window-titlebar .title-icon-chatroom {
  width: 34px !important;
  height: 28px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 34'%3E%3Cpath d='M18 5C9.5 5 3 10 3 16c0 3.3 2 6.3 5.2 8.2L6 30l6.6-2.4c1.7.4 3.5.7 5.4.7 8.5 0 15-5 15-11S26.5 5 18 5z' fill='none' stroke='%23eefcf9' stroke-width='2.1' stroke-dasharray='0.5 3.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 0 6px rgba(180, 248, 236, 0.55));
}

html[data-pond-mode="chatroom"] #chatroom .window-titlebar .close-button {
  width: 30px;
  height: 30px;
  border-radius: 999px !important;
  border: 1px dashed rgba(185, 235, 230, 0.44) !important;
  background: rgba(6, 22, 26, 0.52) !important;
  color: rgba(214, 248, 244, 0.88) !important;
  box-shadow: none !important;
  font-size: 16px;
}

/* Header bar: nickname + room controls */
html[data-pond-mode="chatroom"] .chatroom-header {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(182, 236, 230, 0.28) !important;
  flex-shrink: 0;
}

html[data-pond-mode="chatroom"] .chatroom-avatar {
  display: none !important;
}

html[data-pond-mode="chatroom"] .chatroom-nickname-row,
html[data-pond-mode="chatroom"] .chatroom-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(216, 246, 242, 0.90) !important;
}

html[data-pond-mode="chatroom"] #chat-nickname-display {
  padding: 3px 12px;
  border-radius: 999px;
  border: 1.2px dashed rgba(184, 240, 234, 0.46);
  background: rgba(4, 18, 22, 0.56);
  color: #f0fefa;
  font-weight: 500;
}

html[data-pond-mode="chatroom"] #chat-room-label {
  padding: 3px 12px;
  border-radius: 999px;
  border: 1.2px dashed #88fce2;
  background: rgba(16, 68, 74, 0.92);
  background-image: none;
  color: #eefcf9;
  font-size: 12px;
}

html[data-pond-mode="chatroom"] .chatroom-header .xp-button,
html[data-pond-mode="chatroom"] .chat-room-help-trigger,
html[data-pond-mode="chatroom"] .chatroom-footer .xp-button,
html[data-pond-mode="chatroom"] .chat-private-room-panel .xp-button {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 240, 234, 0.52) !important;
  background: rgba(8, 26, 30, 0.62) !important;
  background-image: none !important;
  color: #eefcf9 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
}

html[data-pond-mode="chatroom"] .chat-room-help-popover {
  background: rgba(5, 20, 24, 0.95) !important;
  color: #e8faf6 !important;
  border: 1px solid rgba(182, 242, 236, 0.56) !important;
  border-radius: 10px !important;
}

html[data-pond-mode="chatroom"] .chat-private-room-panel {
  background: rgba(6, 22, 26, 0.72) !important;
  border: 1px dashed rgba(182, 238, 232, 0.40) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  margin-top: 8px !important;
  color: #e8faf6 !important;
}

html[data-pond-mode="chatroom"] .chat-private-room-panel input {
  background: rgba(3, 14, 18, 0.76) !important;
  color: #f0fefa !important;
  border: 1px dashed rgba(182, 238, 232, 0.52) !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
}

/* Message log stream */
html[data-pond-mode="chatroom"] .chatroom-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 6px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 226, 216, 0.24) transparent;
}

html[data-pond-mode="chatroom"] .chatroom-log .chat-message,
html[data-pond-mode="chatroom"] .chatroom-log article:not(.content-state) {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 2px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #eefcf9 !important;
}

html[data-pond-mode="chatroom"] .pond-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.3px solid rgba(194, 248, 242, 0.62);
  background: rgba(6, 22, 28, 0.80);
  padding: 4px;
  flex-shrink: 0;
  filter: brightness(1.38) drop-shadow(0 0 8px rgba(186, 250, 242, 0.72));
}

html[data-pond-mode="chatroom"] .chatroom-log .chat-avatar,
html[data-pond-mode="chatroom"] .chatroom-log .chat-message-avatar,
html[data-pond-mode="chatroom"] .chatroom-log .chat-item-avatar,
html[data-pond-mode="chatroom"] .chatroom-log img:not(.pond-chat-avatar) {
  display: none !important;
}

html[data-pond-mode="chatroom"] .chatroom-log .chat-bubble,
html[data-pond-mode="chatroom"] .chatroom-log .chat-message-bubble,
html[data-pond-mode="chatroom"] .chatroom-log .chat-message-text,
html[data-pond-mode="chatroom"] .chatroom-log .chat-text {
  display: inline-block !important;
  width: fit-content !important;
  max-width: min(560px, 78%) !important;
  padding: 8px 14px !important;
  margin-top: 4px !important;
  background: rgba(8, 30, 36, 0.76) !important;
  color: #f0fefa !important;
  border: 1.2px dashed rgba(186, 242, 236, 0.52) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 12px rgba(96, 228, 218, 0.14) !important;
  line-height: 1.5;
}

html[data-pond-mode="chatroom"] .chatroom-log .chat-message-body {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  min-width: 0;
}

html[data-pond-mode="chatroom"] .chatroom-log .chat-author,
html[data-pond-mode="chatroom"] .chatroom-log .chat-nickname {
  color: #88fce2 !important;
}

html[data-pond-mode="chatroom"] .chatroom-log .chat-time,
html[data-pond-mode="chatroom"] .chatroom-log time {
  color: rgba(186, 226, 222, 0.72) !important;
}

html[data-pond-mode="chatroom"] .chatroom-log .content-state {
  padding: 18px 16px !important;
  border-radius: 12px !important;
  border: 1px dashed rgba(182, 236, 230, 0.42) !important;
  background: rgba(6, 22, 26, 0.64) !important;
  color: rgba(220, 248, 244, 0.90) !important;
  box-shadow: none !important;
}

html[data-pond-mode="chatroom"] .chatroom-log .content-state-copy,
html[data-pond-mode="chatroom"] .chatroom-log .content-state p {
  background: transparent !important;
  border: none !important;
  color: rgba(220, 248, 244, 0.90) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Compose input bar matching design-assets/windows/chat.png */
html[data-pond-mode="chatroom"] .chatroom-compose {
  padding: 10px 0 6px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-top: 1px dotted rgba(182, 236, 230, 0.28) !important;
  flex-shrink: 0;
}

html[data-pond-mode="chatroom"] .chatroom-input-shell {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 1.4px solid rgba(190, 246, 240, 0.58) !important;
  background: rgba(4, 18, 22, 0.68) !important;
  box-shadow: 0 0 14px rgba(102, 234, 224, 0.16) !important;
}

html[data-pond-mode="chatroom"] #chat-message-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #f0fefa !important;
  font-family: inherit;
  font-size: 13.5px !important;
  resize: none !important;
  min-height: 28px !important;
  max-height: 64px !important;
  outline: none !important;
  box-shadow: none !important;
}

html[data-pond-mode="chatroom"] .chatroom-counter {
  font-size: 11.5px;
  color: rgba(186, 226, 222, 0.72) !important;
  white-space: nowrap;
}

html[data-pond-mode="chatroom"] .chat-send-button {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 244, 236, 0.62) !important;
  background: rgba(12, 36, 40, 0.74) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow: none !important;
  padding: 5px 14px !important;
}

html[data-pond-mode="chatroom"] .chatroom-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0 !important;
  background: transparent !important;
  border: none !important;
  color: rgba(182, 224, 220, 0.74) !important;
  font-size: 11.5px !important;
  flex-shrink: 0;
}

/* ============================================================
   Batch 7: About (#about) + Login (#account-popover) + Welcome (#welcome-modal)
   Matches design-assets/windows/{about,login,welcome}.png over untouched DOM
   ============================================================ */

html[data-pond-mode="about"] #pond-visual-backdrop,
html[data-pond-mode="welcome"] #pond-visual-backdrop {
  display: block;
  z-index: 1;
}

html[data-pond-mode="about"] body,
html[data-pond-mode="about"] .site-shell,
html[data-pond-mode="about"] .site-shell::before,
html[data-pond-mode="about"] .site-shell::after,
html[data-pond-mode="welcome"] body,
html[data-pond-mode="welcome"] .site-shell,
html[data-pond-mode="welcome"] .site-shell::before,
html[data-pond-mode="welcome"] .site-shell::after {
  background: transparent !important;
}

html[data-pond-mode="about"] .wallpaper-layer,
html[data-pond-mode="welcome"] .wallpaper-layer {
  display: none !important;
}

html[data-pond-mode="about"] .xp-taskbar,
html[data-pond-mode="about"] .site-shell > header,
html[data-pond-mode="welcome"] .xp-taskbar,
html[data-pond-mode="welcome"] .site-shell > header,
html[data-pond-mode="welcome"] .site-shell > main {
  opacity: 0;
  pointer-events: none;
}

html[data-pond-mode="about"] .site-shell {
  position: relative;
  z-index: 20;
}

html[data-pond-mode="about"] .site-shell > main {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 24px 44px;
  background: transparent !important;
  pointer-events: none;
}

html[data-pond-mode="about"] #about {
  width: min(860px, 60vw);
  min-width: min(600px, 92vw);
  max-height: min(640px, 72vh);
  margin: 12px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: auto;
}

html[data-pond-mode="about"] #about .xp-window.about-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 !important;
  padding: 20px 28px 24px !important;
  border-radius: 18px !important;
  color: rgba(236, 250, 248, 0.96);
  backdrop-filter: blur(10px) saturate(1.16);
  -webkit-backdrop-filter: blur(10px) saturate(1.16);
  overflow: hidden;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-pond-mode="about"] #about .window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px !important;
  margin: 0 0 18px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(188, 240, 234, 0.34) !important;
  box-shadow: none !important;
  color: #f0fefa !important;
}

html[data-pond-mode="about"] #about .window-titlebar > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #f0fefa;
  text-shadow: 0 0 10px rgba(176, 248, 236, 0.50);
}

html[data-pond-mode="about"] #about .window-titlebar .close-button {
  width: 30px;
  height: 30px;
  border-radius: 999px !important;
  border: 1px dashed rgba(185, 235, 230, 0.44) !important;
  background: rgba(6, 22, 26, 0.52) !important;
  color: rgba(214, 248, 244, 0.88) !important;
  box-shadow: none !important;
  font-size: 16px;
}

html[data-pond-mode="about"] .profile-card {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-pond-mode="about"] .profile-avatar {
  display: flex;
  justify-content: center;
  padding: 8px 0 !important;
  background: transparent !important;
  border: none !important;
}

html[data-pond-mode="about"] .profile-avatar-image {
  width: 158px !important;
  height: 158px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(196, 250, 242, 0.72) !important;
  box-shadow: 0 0 26px rgba(114, 244, 232, 0.34), 0 0 18px rgba(244, 128, 198, 0.22) !important;
  object-fit: cover;
}

html[data-pond-mode="about"] .profile-info dl {
  display: grid;
  gap: 8px;
  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px dotted rgba(182, 236, 230, 0.28);
}

html[data-pond-mode="about"] .profile-info dl > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0 !important;
  border: none !important;
  background: transparent !important;
}

html[data-pond-mode="about"] .profile-info dt {
  min-width: 72px;
  color: rgba(176, 224, 218, 0.76) !important;
  font-size: 12.5px;
}

html[data-pond-mode="about"] .profile-info dd {
  color: #f0fefa !important;
  font-size: 13.5px;
  margin: 0;
}

html[data-pond-mode="about"] .about-copy {
  color: rgba(226, 246, 242, 0.90) !important;
  font-size: 13.5px !important;
  line-height: 1.7;
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

html[data-pond-mode="about"] .about-rss-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  border: 1.4px solid rgba(190, 246, 238, 0.56) !important;
  background: rgba(8, 28, 34, 0.62) !important;
  box-shadow: 0 0 16px rgba(102, 236, 224, 0.16) !important;
}

html[data-pond-mode="about"] .about-rss-copy strong {
  color: #f0fefa !important;
  font-size: 13.5px;
}

html[data-pond-mode="about"] .about-rss-copy small {
  color: rgba(184, 224, 220, 0.76) !important;
  font-size: 11.5px;
}

html[data-pond-mode="about"] .about-rss-button {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 244, 236, 0.62) !important;
  background: rgba(10, 34, 38, 0.72) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow: none !important;
  padding: 5px 14px !important;
  text-decoration: none !important;
}

html[data-pond-mode="about"] .about-social-link {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(186, 242, 236, 0.56) !important;
  background: rgba(10, 32, 38, 0.72) !important;
  color: #eefcf9 !important;
  box-shadow: 0 0 10px rgba(96, 228, 218, 0.16) !important;
}

html[data-pond-mode="about"] .social-icon-x,
html[data-pond-mode="about"] .social-icon-github {
  filter: invert(1) brightness(1.18) drop-shadow(0 0 4px rgba(186, 248, 240, 0.45));
}

html[data-pond-mode="about"] .profile-contact-links .content-state,
html[data-pond-mode="about"] .about-contact-row .content-state,
html[data-pond-mode="about"] .about-social-status {
  background: rgba(6, 24, 28, 0.68) !important;
  border: 1px dashed rgba(182, 238, 232, 0.44) !important;
  color: rgba(214, 246, 242, 0.88) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

html[data-pond-mode="about"] .profile-contact-links .xp-button,
html[data-pond-mode="about"] .about-contact-row .xp-button {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 244, 236, 0.58) !important;
  background: rgba(10, 34, 38, 0.74) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow: none !important;
}

/* Login / Account Popover (#account-popover) CRT glass skin matching design-assets/windows/login.png */
html[data-pond-mode] #account-popover:not([hidden]) {
  visibility: visible !important;
  pointer-events: auto !important;
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(400px, 90vw) !important;
  z-index: 80 !important;
  border-radius: 18px !important;
  padding: 22px 26px !important;
  background: linear-gradient(180deg, rgba(10, 34, 38, 0.88), rgba(6, 22, 26, 0.92)) !important;
  backdrop-filter: blur(12px) saturate(1.16);
  border: 1.6px solid rgba(202, 252, 244, 0.76) !important;
  box-shadow: 0 0 36px rgba(114, 244, 232, 0.34), 0 0 56px rgba(212, 138, 248, 0.22) !important;
  color: #f0fefa !important;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-pond-mode] #account-popover input {
  width: 100%;
  height: 38px;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1.3px dashed rgba(186, 240, 234, 0.52) !important;
  background: rgba(4, 16, 20, 0.72) !important;
  color: #f0fefa !important;
  box-shadow: none !important;
}

html[data-pond-mode] #account-popover button[type="submit"],
html[data-pond-mode] #account-popover .xp-button {
  border-radius: 999px !important;
  border: 1.3px solid #88fce2 !important;
  background: rgba(18, 86, 90, 0.94) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(102, 236, 226, 0.26) !important;
}

html[data-pond-mode] #account-popover label,
html[data-pond-mode] #account-popover p,
html[data-pond-mode] #account-popover small {
  color: rgba(212, 244, 240, 0.86) !important;
}

/* Welcome / Latest Updates Modal (#welcome-modal) CRT glass skin matching design-assets/windows/welcome.png */
html[data-pond-mode="welcome"] #welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

html[data-pond-mode="welcome"] #welcome-modal .modal-backdrop {
  background: rgba(2, 10, 12, 0.22) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .xp-window.welcome-window {
  position: relative;
  width: min(760px, 60vw) !important;
  max-height: min(680px, 76vh) !important;
  border-radius: 18px !important;
  padding: 20px 26px 20px !important;
  background: linear-gradient(180deg, rgba(10, 34, 38, 0.80), rgba(6, 24, 28, 0.86)) !important;
  backdrop-filter: blur(12px) saturate(1.16);
  border: 1.6px solid rgba(202, 252, 244, 0.78) !important;
  box-shadow: 0 0 34px rgba(114, 244, 232, 0.34), 0 0 56px rgba(212, 138, 248, 0.22) !important;
  color: #f0fefa !important;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
}

html[data-pond-mode="welcome"] #welcome-modal .window-titlebar {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(188, 240, 234, 0.34) !important;
  padding: 0 0 12px !important;
  margin: 0 0 14px !important;
  color: #f0fefa !important;
}

html[data-pond-mode="welcome"] #welcome-modal .window-titlebar .close-button {
  width: 30px;
  height: 30px;
  border-radius: 999px !important;
  border: 1px dashed rgba(185, 235, 230, 0.44) !important;
  background: rgba(6, 22, 26, 0.52) !important;
  color: #eefcf9 !important;
  box-shadow: none !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-content,
html[data-pond-mode="welcome"] #welcome-modal .welcome-main,
html[data-pond-mode="welcome"] #welcome-modal .recent-panel,
html[data-pond-mode="welcome"] #welcome-modal .welcome-note {
  background: transparent !important;
  border-color: rgba(182, 236, 230, 0.34) !important;
  color: rgba(232, 250, 246, 0.94) !important;
  box-shadow: none !important;
}

html[data-pond-mode="welcome"] #welcome-modal h2,
html[data-pond-mode="welcome"] #welcome-modal h3,
html[data-pond-mode="welcome"] #welcome-modal strong {
  color: #f0fefa !important;
  text-shadow: 0 0 10px rgba(154, 244, 234, 0.32);
}

html[data-pond-mode="welcome"] #welcome-modal p,
html[data-pond-mode="welcome"] #welcome-modal small,
html[data-pond-mode="welcome"] #welcome-modal .welcome-status-copy {
  color: rgba(218, 244, 240, 0.88) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-status-copy strong {
  color: #88fce2 !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li {
  border-bottom: 1px dotted rgba(182, 236, 230, 0.28) !important;
  background: transparent !important;
  color: #eefcf9 !important;
  padding: 6px 0 !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates a {
  border: none !important;
  background: transparent !important;
  color: #eefcf9 !important;
  text-decoration: none !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates a:hover {
  background: rgba(102, 236, 224, 0.12) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link,
html[data-pond-mode="welcome"] #welcome-modal .xp-button {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 240, 234, 0.56) !important;
  background: rgba(8, 28, 34, 0.68) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow: none !important;
}

html[data-pond-mode="welcome"] #welcome-modal .xp-window.welcome-window::before {
  content: "••••••••   Esc 关闭此窗口   ••••••••";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(196, 238, 234, 0.72);
  pointer-events: none;
}

html[lang="en"][data-pond-mode="welcome"] #welcome-modal .xp-window.welcome-window::before {
  content: "••••••••   Press Esc to close   ••••••••";
}

html[lang="ja"][data-pond-mode="welcome"] #welcome-modal .xp-window.welcome-window::before {
  content: "••••••••   Esc で閉じる   ••••••••";
}

html[data-pond-mode="welcome"] #welcome-modal .xp-window.welcome-window {
  padding-bottom: 38px !important;
}

/* ============================================================
   Batch 8: Mobile Shell Midnight Pond CRT Visual Unification
   Pure color/glass/border presentation layer; preserves 44px touch targets,
   6-route Dock, collapse handle, and all mobile QA layout geometry intact.
   ============================================================ */

html[data-ui-shell="mobile"] body,
html[data-shell="mobile"] body {
  background:
    radial-gradient(ellipse 80% 55% at 50% 35%, rgba(18, 76, 72, 0.36), transparent 72%),
    #030e10 !important;
  color: #eafbf8 !important;
}

html[data-ui-shell="mobile"] .xp-window,
html[data-shell="mobile"] .xp-window {
  background: linear-gradient(180deg, rgba(10, 32, 36, 0.84), rgba(5, 20, 24, 0.90)) !important;
  border-color: rgba(186, 244, 236, 0.56) !important;
  color: #eafbf8 !important;
  box-shadow: 0 0 22px rgba(96, 232, 220, 0.20) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"],
html[data-shell="mobile"],
html[data-ui-shell="mobile"] body,
html[data-shell="mobile"] body,
html[data-ui-shell="mobile"] .site-shell,
html[data-shell="mobile"] .site-shell,
html[data-ui-shell="mobile"] .site-shell > main,
html[data-shell="mobile"] .site-shell > main {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"] .page,
html[data-shell="mobile"] .page {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"] .article-card,
html[data-shell="mobile"] .article-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

html[data-ui-shell="mobile"] .article-card .tag,
html[data-ui-shell="mobile"] .article-card .article-tag,
html[data-shell="mobile"] .article-card .tag,
html[data-shell="mobile"] .article-card .article-tag {
  background: rgba(8, 32, 36, 0.78) !important;
  color: #c8f6ee !important;
  border: 1px solid rgba(154, 236, 224, 0.44) !important;
  border-radius: 999px !important;
}

html[data-ui-shell="mobile"] .article-card .xp-button,
html[data-ui-shell="mobile"] .article-card button,
html[data-shell="mobile"] .article-card .xp-button,
html[data-shell="mobile"] .article-card button {
  background: rgba(10, 34, 40, 0.78) !important;
  background-image: none !important;
  color: #f0fefa !important;
  border: 1.2px dashed rgba(182, 242, 236, 0.56) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

html[data-ui-shell="mobile"] #knowledge-categories,
html[data-shell="mobile"] #knowledge-categories {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

html[data-ui-shell="mobile"] #knowledge-categories::-webkit-scrollbar,
html[data-shell="mobile"] #knowledge-categories::-webkit-scrollbar {
  display: none !important;
}

html[data-ui-shell="mobile"] .window-titlebar,
html[data-shell="mobile"] .window-titlebar {
  background: rgba(8, 28, 32, 0.88) !important;
  border-bottom: 1px dotted rgba(182, 238, 232, 0.34) !important;
  color: #f0fefa !important;
}

html[data-ui-shell="mobile"] .article-card,
html[data-ui-shell="mobile"] .video-card,
html[data-ui-shell="mobile"] .resource-card,
html[data-ui-shell="mobile"] .game-card,
html[data-ui-shell="mobile"] .profile-card,
html[data-shell="mobile"] .article-card,
html[data-shell="mobile"] .video-card,
html[data-shell="mobile"] .resource-card,
html[data-shell="mobile"] .game-card,
html[data-shell="mobile"] .profile-card {
  background: rgba(8, 28, 32, 0.72) !important;
  border-color: rgba(176, 236, 230, 0.38) !important;
  color: #eafbf8 !important;
}

html[data-ui-shell="mobile"] .xp-taskbar,
html[data-shell="mobile"] .xp-taskbar {
  background: rgba(6, 22, 26, 0.82) !important;
  border-top: 1px solid rgba(182, 242, 234, 0.44) !important;
  box-shadow: 0 -4px 20px rgba(96, 232, 220, 0.16) !important;
}

html[data-ui-shell="mobile"] .xp-taskbar button,
html[data-shell="mobile"] .xp-taskbar button {
  color: #e4faf6 !important;
}

html[data-ui-shell="mobile"] .mobile-appbar,
html[data-shell="mobile"] .mobile-appbar {
  background: rgba(6, 22, 26, 0.86) !important;
  border-bottom: 1px dotted rgba(182, 238, 232, 0.34) !important;
  color: #f0fefa !important;
}

/* Complete inner-surface CRT dark glass skin for mobile App windows (prevents white panels & overflow) */
html[data-ui-shell="mobile"] .folder-layout,
html[data-ui-shell="mobile"] #knowledge-searchbar,
html[data-ui-shell="mobile"] #knowledge-categories,
html[data-ui-shell="mobile"] #knowledge-list,
html[data-ui-shell="mobile"] #article-detail,
html[data-ui-shell="mobile"] .article-detail-card,
html[data-ui-shell="mobile"] #video-categories,
html[data-ui-shell="mobile"] #video-list,
html[data-ui-shell="mobile"] #resource-categories,
html[data-ui-shell="mobile"] #resource-list,
html[data-ui-shell="mobile"] #game-list,
html[data-ui-shell="mobile"] .chatroom-header,
html[data-ui-shell="mobile"] .chatroom-log,
html[data-ui-shell="mobile"] .chatroom-compose,
html[data-ui-shell="mobile"] .chatroom-footer,
html[data-shell="mobile"] .folder-layout,
html[data-shell="mobile"] #knowledge-searchbar,
html[data-shell="mobile"] #knowledge-categories,
html[data-shell="mobile"] #knowledge-list,
html[data-shell="mobile"] #article-detail,
html[data-shell="mobile"] .article-detail-card,
html[data-shell="mobile"] #video-categories,
html[data-shell="mobile"] #video-list,
html[data-shell="mobile"] #resource-categories,
html[data-shell="mobile"] #resource-list,
html[data-shell="mobile"] #game-list,
html[data-shell="mobile"] .chatroom-header,
html[data-shell="mobile"] .chatroom-log,
html[data-shell="mobile"] .chatroom-compose,
html[data-shell="mobile"] .chatroom-footer {
  background: transparent !important;
  background-color: transparent !important;
  border-color: rgba(176, 236, 230, 0.28) !important;
  color: #eafbf8 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"] #knowledge-search-input,
html[data-ui-shell="mobile"] #chat-message-input,
html[data-shell="mobile"] #knowledge-search-input,
html[data-shell="mobile"] #chat-message-input {
  background: rgba(4, 18, 22, 0.78) !important;
  color: #f0fefa !important;
  border: 1.2px dashed rgba(182, 238, 232, 0.52) !important;
  border-radius: 999px !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html[data-ui-shell="mobile"] .category-button,
html[data-ui-shell="mobile"] .filter-row button,
html[data-shell="mobile"] .category-button,
html[data-shell="mobile"] .filter-row button {
  background: rgba(6, 24, 28, 0.72) !important;
  color: #dff8f4 !important;
  border: 1.2px dashed rgba(182, 238, 232, 0.46) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

html[data-ui-shell="mobile"] .category-button.active,
html[data-ui-shell="mobile"] .filter-row button.active,
html[data-shell="mobile"] .category-button.active,
html[data-shell="mobile"] .filter-row button.active {
  border-style: solid !important;
  border-color: #88fce2 !important;
  background: rgba(18, 86, 90, 0.94) !important;
  background-image: none !important;
  color: #ffffff !important;
}

html[data-ui-shell="mobile"] .content-state,
html[data-shell="mobile"] .content-state {
  background: rgba(6, 24, 28, 0.72) !important;
  border: 1.2px dashed rgba(182, 238, 232, 0.44) !important;
  color: #eafbf8 !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

html[data-ui-shell="mobile"] .content-state-copy,
html[data-shell="mobile"] .content-state-copy {
  background: transparent !important;
  border: none !important;
  color: #eafbf8 !important;
  min-width: 0 !important;
  flex: 1 1 180px !important;
}

html[data-ui-shell="mobile"] .xp-button,
html[data-shell="mobile"] .xp-button {
  background: rgba(10, 34, 38, 0.78) !important;
  background-image: none !important;
  color: #f0fefa !important;
  border: 1.2px dashed rgba(182, 242, 236, 0.56) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  max-width: 100% !important;
}

html[data-ui-shell="mobile"] .article-card h2,
html[data-ui-shell="mobile"] .video-card h2,
html[data-ui-shell="mobile"] .resource-card h2,
html[data-ui-shell="mobile"] .game-card h2,
html[data-shell="mobile"] .article-card h2,
html[data-shell="mobile"] .video-card h2,
html[data-shell="mobile"] .resource-card h2,
html[data-shell="mobile"] .game-card h2 {
  color: #f0fefa !important;
}

html[data-ui-shell="mobile"] .article-card p,
html[data-ui-shell="mobile"] .meta-row,
html[data-shell="mobile"] .article-card p,
html[data-shell="mobile"] .meta-row {
  color: rgba(196, 232, 228, 0.82) !important;
}


/* ============================================================
   Site-Wide CRT Visual Unification & P0 Fixes (2026-11-22)
   1. Account Popover visibility fix (header uses visibility:hidden, never opacity:0)
   2. Unified centered window geometry across ALL desktop windows (matching Article Reader baseline)
   3. Article TOC flex-shrink & line-height fix (zero text overlap)
   4. Compact dotted CRT ghost CTA buttons (.article-card-cta & .card-action)
   5. Video card vertical alignment, uniform bottom Play button & no 2nd-row clipping
   6. Site-wide CRT dark loading/skeleton/empty/error states + dotted SVG icons (no white slabs / dark-blue text / emoji)
   7. Mobile Knowledge horizontal-overflow fix (grid-template-columns: minmax(0, 1fr))
   ============================================================ */

/* --- 1. Login / Account Popover (P0 Fix) --- */
html[data-pond-mode] .site-shell > header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 90 !important;
  opacity: 1 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: visible !important;
}

html[data-pond-mode] .xp-topbar {
  overflow: visible !important;
}

/* Keep the real welcome trigger keyboard-focusable & hit-testable over the Pond top-center clock
   while keeping the legacy XP header visually hidden (and #account-popover independently visible). */
html[data-pond-mode] .site-shell > header [data-open-welcome] {
  visibility: visible !important;
  opacity: 0 !important;
  pointer-events: auto !important;
  position: fixed !important;
  top: 6px !important;
  left: calc(50% - 70px) !important;
  right: auto !important;
  width: 140px !important;
  min-width: 140px !important;
  max-width: calc(100vw - 24px) !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  z-index: 92 !important;
}

/* Keep the real account toggle keyboard-focusable so closing #account-popover via Escape/outside click
   restores focus cleanly without exposing the legacy XP header visually. */
html[data-pond-mode] .site-shell > header [data-account-toggle] {
  visibility: visible !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Enforce 44px primary touch-target floor on all mobile shells (including 844x390 landscape). */
html[data-ui-shell="mobile"] :is(.close-button, .mobile-home-button, .card-action, .xp-button, .chat-send-button, .about-social-link, [data-account-toggle], .resource-details > summary) {
  min-width: 44px !important;
  min-height: 44px !important;
}

html[data-pond-mode] #account-popover:not([hidden]) {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(410px, 90vw) !important;
  z-index: 95 !important;
  border-radius: 18px !important;
  padding: 22px 26px !important;
  background: linear-gradient(180deg, rgba(10, 34, 38, 0.92), rgba(6, 22, 26, 0.96)) !important;
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  border: 1.6px solid rgba(202, 252, 244, 0.78) !important;
  box-shadow: 0 0 38px rgba(114, 244, 232, 0.36), 0 0 60px rgba(212, 138, 248, 0.22) !important;
  color: #f0fefa !important;
}

html[data-pond-mode] #account-popover .account-popover-header,
html[data-pond-mode] #account-popover .account-popover-title,
html[data-pond-mode] #account-popover h2,
html[data-pond-mode] #account-popover h3,
html[data-pond-mode] #account-popover strong {
  color: #f0fefa !important;
  background: transparent !important;
  border-color: rgba(182, 238, 232, 0.30) !important;
}

html[data-pond-mode] #account-popover .account-button {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(188, 244, 238, 0.58) !important;
  background: rgba(10, 34, 38, 0.76) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow: none !important;
}

html[data-pond-mode] #account-popover .account-primary-action {
  border-style: solid !important;
  border-color: #88fce2 !important;
  background: rgba(18, 86, 90, 0.94) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(102, 236, 226, 0.28) !important;
}

/* --- 2. Unified Centered Desktop Window Geometry (Baseline: Article Reader Window) --- */
html[data-pond-mode="knowledge"] .site-shell > main,
html[data-pond-mode="article"] .site-shell > main,
html[data-pond-mode="videos"] .site-shell > main,
html[data-pond-mode="resources"] .site-shell > main,
html[data-pond-mode="games"] .site-shell > main,
html[data-pond-mode="chatroom"] .site-shell > main,
html[data-pond-mode="about"] .site-shell > main {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 58px 24px 36px !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}

html[data-pond-mode="knowledge"] #knowledge,
html[data-pond-mode="article"] #knowledge,
html[data-pond-mode="videos"] #videos,
html[data-pond-mode="resources"] #resources,
html[data-pond-mode="games"] #games,
html[data-pond-mode="chatroom"] #chatroom,
html[data-pond-mode="about"] #about {
  width: min(1040px, 78vw) !important;
  min-width: min(720px, 92vw) !important;
  height: min(740px, 78vh) !important;
  max-height: min(740px, 78vh) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  pointer-events: auto !important;
}

html[data-pond-mode="knowledge"] #knowledge .xp-window,
html[data-pond-mode="article"] #knowledge .xp-window,
html[data-pond-mode="videos"] #videos .xp-window,
html[data-pond-mode="resources"] #resources .xp-window,
html[data-pond-mode="games"] #games .xp-window,
html[data-pond-mode="chatroom"] #chatroom .xp-window,
html[data-pond-mode="about"] #about .xp-window {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

html[data-pond-mode="about"] #about .profile-card {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  align-content: center !important;
}

/* --- 3. Article Reader Left TOC Fix (Zero Overlap / Crisp Line Wrapping) --- */
html[data-pond-mode="article"] .article-reader-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

html[data-pond-mode="article"] .article-toc {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

html[data-pond-mode="article"] .article-toc > p {
  flex: 0 0 auto !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.06em !important;
  color: rgba(214, 246, 242, 0.92) !important;
  margin: 0 0 8px !important;
  padding: 0 0 6px !important;
  border-bottom: 1px dotted rgba(176, 230, 224, 0.28) !important;
  background: transparent !important;
}

html[data-pond-mode="article"] #article-detail-toc-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-left: 1px dotted rgba(176, 230, 224, 0.34) !important;
  padding: 4px 6px 16px 10px !important;
  margin: 0 !important;
}

html[data-pond-mode="article"] #article-detail-toc-list .article-toc-link,
html[data-pond-mode="article"] #article-detail-toc-list a,
html[data-pond-mode="article"] #article-detail-toc-list button {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  text-align: left !important;
  padding: 5px 8px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: rgba(210, 240, 236, 0.84) !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.01em !important;
  box-shadow: none !important;
}

html[data-pond-mode="article"] #article-detail-toc-list .article-toc-link.level-3 {
  padding-left: 16px !important;
  font-size: 12px !important;
  color: rgba(186, 226, 222, 0.74) !important;
}

html[data-pond-mode="article"] #article-detail-toc-list .article-toc-link:hover,
html[data-pond-mode="article"] #article-detail-toc-list .article-toc-link.is-active,
html[data-pond-mode="article"] #article-detail-toc-list [aria-current="true"] {
  color: #8affdf !important;
  background: rgba(92, 236, 210, 0.12) !important;
  border-color: rgba(132, 244, 224, 0.34) !important;
  text-shadow: 0 0 8px rgba(102, 248, 216, 0.45) !important;
}

html[data-pond-mode="article"] .article-toc-tip {
  flex: 0 0 auto !important;
  margin-top: 6px !important;
}

/* --- 4. Compact Dotted CRT Ghost Buttons (.article-card-cta & .card-action across ALL windows) --- */
html[data-pond-mode="knowledge"] #knowledge-list .article-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  column-gap: 14px !important;
  row-gap: 5px !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  height: auto !important;
  padding: 13px 12px !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card h2 {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card p {
  grid-column: 1 / -1 !important;
  margin: 0 0 3px !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card .meta-row {
  grid-column: 1 !important;
  min-width: 0 !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card .article-card-cta {
  grid-column: 2 !important;
  justify-self: end !important;
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 58px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 242, 236, 0.52) !important;
  background: rgba(8, 28, 34, 0.48) !important;
  background-image: none !important;
  color: #dcfaf4 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  box-shadow: none !important;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card:hover .article-card-cta {
  border-style: solid !important;
  border-color: rgba(164, 248, 240, 0.88) !important;
  background: rgba(24, 72, 78, 0.52) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(102, 238, 226, 0.30) !important;
}

html[data-pond-mode] .card-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 28px !important;
  padding: 4px 14px !important;
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 242, 236, 0.54) !important;
  background: rgba(8, 28, 34, 0.56) !important;
  background-image: none !important;
  color: #eefcf9 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

html[data-pond-mode] .card-action:hover:not(:disabled) {
  border-style: solid !important;
  border-color: rgba(164, 248, 240, 0.90) !important;
  background: rgba(24, 72, 78, 0.54) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(102, 238, 226, 0.32) !important;
}

/* --- 5. Videos Card Internal Alignment, Fixed Bottom Play Button & No 2nd-Row Clipping --- */
html[data-pond-mode="videos"] #video-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(256px, auto) !important;
  align-content: start !important;
  gap: 14px !important;
  padding: 2px 6px 14px 2px !important;
}

html[data-pond-mode="videos"] #video-list .video-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 256px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html[data-pond-mode="videos"] #video-list .video-thumb-wrap,
html[data-pond-mode="videos"] #video-list .video-thumb {
  height: 126px !important;
  flex-shrink: 0 !important;
}

html[data-pond-mode="videos"] #video-list .video-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 7px !important;
  padding: 12px 14px 13px !important;
  min-height: 0 !important;
}

html[data-pond-mode="videos"] #video-list .video-body h2 {
  font-size: 14.5px !important;
  line-height: 1.38 !important;
  margin: 0 !important;
  color: #f0fefa !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

html[data-pond-mode="videos"] #video-list .video-body > p {
  font-size: 12px !important;
  line-height: 1.46 !important;
  margin: 0 !important;
  color: rgba(196, 232, 228, 0.80) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

html[data-pond-mode="videos"] #video-list .video-body .meta-row {
  margin-top: auto !important;
  padding-top: 4px !important;
  font-size: 11px !important;
  color: rgba(176, 224, 218, 0.78) !important;
}

html[data-pond-mode="videos"] #video-list .video-body .card-action {
  align-self: flex-start !important;
  margin-top: 6px !important;
  flex-shrink: 0 !important;
}

/* --- 6. Site-Wide CRT Dark Loading, Skeleton, Empty & Error States + Dotted SVG Icons --- */
html[data-pond-mode] .content-state,
html[data-pond-mode] .content-state.is-loading,
html[data-pond-mode] .content-state[data-state="loading"],
html[data-pond-mode] .content-state.is-empty,
html[data-pond-mode] .content-state[data-state="empty"],
html[data-pond-mode] .content-state.is-error,
html[data-pond-mode] .content-state[data-state="error"],
html[data-ui-shell="mobile"] .content-state,
html[data-ui-shell="mobile"] .content-state.is-loading,
html[data-ui-shell="mobile"] .content-state[data-state="loading"] {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 18px !important;
  margin: 8px 0 !important;
  border-radius: 14px !important;
  border: 1.2px dashed rgba(176, 238, 232, 0.42) !important;
  background: rgba(6, 24, 28, 0.62) !important;
  background-image: radial-gradient(rgba(190, 250, 244, 0.08) 0.8px, transparent 0.8px) !important;
  background-size: 5px 5px !important;
  box-shadow: inset 0 0 18px rgba(4, 16, 20, 0.45) !important;
  color: #e4faf6 !important;
}

html[data-pond-mode] .content-state-copy,
html[data-pond-mode] .content-state-copy h2,
html[data-pond-mode] .content-state-copy h3,
html[data-pond-mode] .content-state-copy p,
html[data-pond-mode] .content-state-copy .loading-text,
html[data-pond-mode] .loading-text,
html[data-ui-shell="mobile"] .content-state-copy,
html[data-ui-shell="mobile"] .content-state-copy h2,
html[data-ui-shell="mobile"] .content-state-copy h3,
html[data-ui-shell="mobile"] .content-state-copy p,
html[data-ui-shell="mobile"] .loading-text {
  color: #e6fbf7 !important;
  background: transparent !important;
  text-shadow: 0 0 8px rgba(132, 242, 230, 0.24) !important;
}

html[data-pond-mode] .content-state-copy p,
html[data-ui-shell="mobile"] .content-state-copy p {
  color: rgba(206, 242, 238, 0.86) !important;
  font-size: 13px !important;
}

/* Replace legacy emoji/XP folder/TV state icons with crisp dotted CRT phosphor emblem */
html[data-pond-mode] .content-state-icon,
html[data-ui-shell="mobile"] .content-state-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  flex-shrink: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
  border-radius: 50% !important;
  border: 1.2px dashed rgba(176, 244, 236, 0.56) !important;
  background-color: rgba(8, 30, 36, 0.72) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='10' fill='none' stroke='%239ef8ec' stroke-width='2' stroke-dasharray='1 3.5' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='16' r='3.5' fill='%2388fce8'/%3E%3C/svg%3E") !important;
  background-size: 20px 20px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  box-shadow: 0 0 10px rgba(102, 238, 226, 0.24) !important;
}

/* Dark CRT dot-matrix skeletons (eliminates harsh white skeleton bars everywhere!) */
html[data-pond-mode] .article-card-skeleton,
html[data-pond-mode] .video-card-skeleton,
html[data-pond-mode] .game-card-skeleton,
html[data-pond-mode] [class*="skeleton-card"],
html[data-ui-shell="mobile"] .article-card-skeleton,
html[data-ui-shell="mobile"] .video-card-skeleton,
html[data-ui-shell="mobile"] [class*="skeleton-card"] {
  background: rgba(8, 28, 34, 0.42) !important;
  border: 1px dotted rgba(164, 234, 226, 0.24) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

html[data-pond-mode] .skeleton-line,
html[data-pond-mode] .skeleton-lines > span,
html[data-pond-mode] .skeleton-lines > div,
html[data-pond-mode] [class*="skeleton"]::before,
html[data-pond-mode] [class*="skeleton"]::after,
html[data-ui-shell="mobile"] .skeleton-line,
html[data-ui-shell="mobile"] .skeleton-lines > span,
html[data-ui-shell="mobile"] .skeleton-lines > div {
  background: linear-gradient(
    90deg,
    rgba(116, 214, 208, 0.08) 0%,
    rgba(154, 240, 232, 0.20) 50%,
    rgba(116, 214, 208, 0.08) 100%
  ) !important;
  background-size: 200% 100% !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* Ensure inner scrollable lists across ALL windows never fall back to white XP panels */
html[data-pond-mode] .folder-layout,
html[data-pond-mode] .content-list,
html[data-pond-mode] .card-grid,
html[data-pond-mode] .download-list,
html[data-pond-mode] .game-list,
html[data-pond-mode] .chatroom-log {
  background: transparent !important;
  background-color: transparent !important;
  border-color: rgba(176, 236, 230, 0.24) !important;
}

/* --- 7. Mobile Knowledge Overflow Root Fix & Dark CRT CTA --- */
html[data-ui-shell="mobile"] .folder-layout,
html[data-shell="mobile"] .folder-layout {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html[data-ui-shell="mobile"] #knowledge-categories,
html[data-ui-shell="mobile"] #knowledge-list,
html[data-ui-shell="mobile"] #knowledge-searchbar,
html[data-shell="mobile"] #knowledge-categories,
html[data-shell="mobile"] #knowledge-list,
html[data-shell="mobile"] #knowledge-searchbar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"] .article-card .article-card-cta,
html[data-ui-shell="mobile"] .card-action,
html[data-shell="mobile"] .article-card .article-card-cta,
html[data-shell="mobile"] .card-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 242, 236, 0.56) !important;
  background: rgba(10, 34, 40, 0.72) !important;
  background-image: none !important;
  color: #f0fefa !important;
  font-size: 13px !important;
  box-shadow: none !important;
}


/* --- Exact Pixel-Identical Window Geometry (rArticle Baseline: 1040x702, below top clock) & High-Specificity Loading State --- */
html[data-pond-mode="knowledge"] .site-shell > main,
html[data-pond-mode="article"] .site-shell > main,
html[data-pond-mode="videos"] .site-shell > main,
html[data-pond-mode="resources"] .site-shell > main,
html[data-pond-mode="games"] .site-shell > main,
html[data-pond-mode="chatroom"] .site-shell > main,
html[data-pond-mode="about"] .site-shell > main {
  padding: 78px 24px 36px !important;
}

html[data-pond-mode="knowledge"] #knowledge.page,
html[data-pond-mode="article"] #knowledge.page,
html[data-pond-mode="videos"] #videos.page,
html[data-pond-mode="resources"] #resources.page,
html[data-pond-mode="games"] #games.page,
html[data-pond-mode="chatroom"] #chatroom.page,
html[data-pond-mode="about"] #about.page {
  width: min(1040px, 78vw) !important;
  min-width: min(720px, 92vw) !important;
  height: min(702px, 76vh) !important;
  min-height: 0 !important;
  max-height: min(702px, 76vh) !important;
  margin: 0 !important;
  padding: 0 !important;
}

html[data-pond-mode="knowledge"] #knowledge .xp-window.folder-window,
html[data-pond-mode="article"] #knowledge .xp-window.folder-window,
html[data-pond-mode="videos"] #videos .xp-window,
html[data-pond-mode="resources"] #resources .xp-window,
html[data-pond-mode="games"] #games .xp-window,
html[data-pond-mode="chatroom"] #chatroom .xp-window.chatroom-window,
html[data-pond-mode="about"] #about .xp-window {
  width: 100% !important;
  height: min(702px, 76vh) !important;
  min-height: 0 !important;
  max-height: min(702px, 76vh) !important;
  margin: 0 !important;
}

/* Override all legacy dark-blue text & emoji/sprite icons inside loading/empty/error states */
html[data-pond-mode] .content-state,
html[data-pond-mode] .content-state *,
html[data-pond-mode] #video-list .content-state,
html[data-pond-mode] #video-list .content-state *,
html[data-pond-mode] #knowledge-list .content-state,
html[data-pond-mode] #knowledge-list .content-state *,
html[data-pond-mode] #game-list .content-state,
html[data-pond-mode] #game-list .content-state *,
html[data-pond-mode] #resource-list .content-state,
html[data-pond-mode] #resource-list .content-state *,
html[data-pond-mode] #chat-message-list .content-state,
html[data-pond-mode] #chat-message-list .content-state * {
  color: #e6fbf7 !important;
}

html[data-pond-mode] .content-state-icon,
html[data-pond-mode] .content-state .content-state-icon,
html[data-ui-shell="mobile"] .content-state-icon {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background-color: rgba(8, 30, 36, 0.72) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='10' fill='none' stroke='%239ef8ec' stroke-width='2' stroke-dasharray='1 3.5' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='16' r='3.5' fill='%2388fce8'/%3E%3C/svg%3E") !important;
  background-size: 20px 20px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

html[data-pond-mode] .content-state-icon::before,
html[data-pond-mode] .content-state-icon::after,
html[data-ui-shell="mobile"] .content-state-icon::before,
html[data-ui-shell="mobile"] .content-state-icon::after {
  content: none !important;
  display: none !important;
}

html[data-pond-mode] .content-state-icon > *,
html[data-ui-shell="mobile"] .content-state-icon > * {
  display: none !important;
}


/* --- Final Live-QA Micro-Fixes (r3): Centered Login Popover, Video Card Text Height, Dark Skeleton Bars --- */
/* 1. Prevent any header/topbar ancestor from trapping position:fixed #account-popover */
html[data-pond-mode] .site-shell > header,
html[data-pond-mode] .xp-topbar,
html[data-pond-mode] .topbar-actions,
html[data-pond-mode] .account-widget {
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  contain: none !important;
  perspective: none !important;
  will-change: auto !important;
}

html[data-pond-mode] #account-popover:not([hidden]) {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

/* 2. Video cards: natural height so titles & descriptions never collapse, Play buttons aligned per row */
html[data-pond-mode="videos"] #video-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
}

html[data-pond-mode="videos"] #video-list .video-card {
  height: auto !important;
  min-height: 286px !important;
}

html[data-pond-mode="videos"] #video-list .video-thumb-wrap,
html[data-pond-mode="videos"] #video-list .video-thumb {
  height: 122px !important;
}

html[data-pond-mode="videos"] #video-list .video-body {
  justify-content: flex-start !important;
  gap: 6px !important;
}

html[data-pond-mode="videos"] #video-list .video-body h2,
html[data-pond-mode="videos"] #video-list .video-body > p,
html[data-pond-mode="videos"] #video-list .video-platform {
  flex: 0 0 auto !important;
}

/* 3. Knowledge dark CRT skeleton bars (overrides knowledge.css multi-layer white linear-gradient) */
html[data-pond-mode] .article-card-skeleton > .skeleton-lines,
html[data-ui-shell="mobile"] .article-card-skeleton > .skeleton-lines {
  background:
    linear-gradient(180deg, rgba(132, 224, 218, 0.18), rgba(92, 188, 182, 0.11)) left top / min(420px, 68%) 22px no-repeat,
    linear-gradient(180deg, rgba(132, 224, 218, 0.12), rgba(92, 188, 182, 0.07)) left 38px / 92% 44px no-repeat,
    linear-gradient(180deg, rgba(132, 224, 218, 0.14), rgba(92, 188, 182, 0.08)) left 96px / min(360px, 58%) 13px no-repeat !important;
}

html[data-pond-mode] .article-card-skeleton::after,
html[data-ui-shell="mobile"] .article-card-skeleton::after {
  background: #5ef4d8 !important;
  box-shadow: -11px 0 0 rgba(190, 142, 255, 0.72), -22px 0 0 rgba(255, 126, 204, 0.65) !important;
}


/* ============================================================
   Comprehensive Desktop QA Polish (r4):
   - Videos: high-contrast bright titles/descriptions, hide center thumbnail play overlay
   - Tools: remove 400px mid-card void, natural card height & clean bottom padding
   - Games: remove 200px license/button void, prevent crowded language tags
   - Knowledge: equal-height row cards & aligned bottom CTA buttons
   - Article: larger progress label with right margin, unclipped TOC tip, strip emoji ::before
   - Chatroom: single-row header (no wrapped password button), unclipped first message
   - About: dotted CRT person icon (no yellow badge emoji), balanced vertical fill
   - Quick Transfer (#transfer-app): full Midnight Pond CRT dark glass skin
   ============================================================ */

/* --- Videos: Crisp Bright Text + No Center Thumbnail Play Overlay --- */
html[data-pond-mode="videos"] #video-list .video-card h2,
html[data-pond-mode="videos"] #video-list .video-card h2 *,
html[data-pond-mode="videos"] #video-list .video-body h2 {
  color: #f4fffe !important;
  text-shadow: 0 0 8px rgba(142, 244, 234, 0.20) !important;
}

html[data-pond-mode="videos"] #video-list .video-card p,
html[data-pond-mode="videos"] #video-list .video-body > p {
  color: rgba(214, 244, 240, 0.88) !important;
}

html[data-pond-mode="videos"] #video-list .video-thumb-play,
html[data-pond-mode="videos"] #video-list .video-play-badge,
html[data-pond-mode="videos"] #video-list .video-play-icon,
html[data-pond-mode="videos"] #video-list .video-thumb::after {
  display: none !important;
  opacity: 0 !important;
}

/* --- Tools: Natural Card Height (No 400px Mid-Card Void) & Clean Bottom Margin --- */
html[data-pond-mode="resources"] #resource-list {
  align-content: start !important;
  align-items: stretch !important;
  padding: 6px 6px 18px 2px !important;
}

html[data-pond-mode="resources"] #resource-list .resource-card {
  height: auto !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 18px 18px 18px !important;
}

html[data-pond-mode="resources"] #resource-list .resource-card .resource-main {
  flex: 1 1 auto !important;
}

html[data-pond-mode="resources"] #resource-list .resource-card .card-action,
html[data-pond-mode="resources"] #resource-list .resource-card .xp-button {
  margin-top: auto !important;
  align-self: flex-start !important;
}

/* --- Games: Compact Natural Height (No 200px Void) & Uncrowded Tags --- */
html[data-pond-mode="games"] #game-list {
  align-content: start !important;
  align-items: stretch !important;
  padding: 6px 6px 18px 2px !important;
}

html[data-pond-mode="games"] #game-list .game-card {
  height: auto !important;
  align-items: start !important;
  padding: 16px !important;
}

html[data-pond-mode="games"] #game-list .game-main {
  gap: 8px !important;
}

html[data-pond-mode="games"] #game-list .tag {
  white-space: nowrap !important;
  padding: 2px 9px !important;
  line-height: 1.45 !important;
  letter-spacing: 0.02em !important;
}

/* --- Knowledge: Equal-Height Row Cards & Pixel-Aligned Bottom CTA (Desktop + Mobile + Tablet universal) --- */
#knowledge-list,
html[data-pond-mode="knowledge"] #knowledge-list,
html[data-ui-shell="mobile"] #knowledge-list,
html[data-shell="mobile"] #knowledge-list {
  align-items: stretch !important;
  align-content: start !important;
  grid-auto-rows: max-content !important;
}

#knowledge-list .article-card,
html[data-ui-shell="mobile"] #knowledge-list .article-card,
html[data-shell="mobile"] #knowledge-list .article-card {
  height: auto !important;
  min-height: max-content !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card {
  height: 100% !important;
  min-height: max-content !important;
  flex: 0 0 auto !important;
  grid-template-rows: auto 1fr auto !important;
  align-items: start !important;
  box-sizing: border-box !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card h2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.7em !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card .meta-row,
html[data-pond-mode="knowledge"] #knowledge-list .article-card .article-card-cta {
  align-self: end !important;
}

/* --- Article Reader: Progress Label, Unclipped TOC Tip & Zero Emoji ::before --- */
html[data-pond-mode="article"] #knowledge .article-read-progress {
  padding: 0 6px 12px 2px !important;
}

html[data-pond-mode="article"] #knowledge .article-read-progress-label {
  font-size: 13.5px !important;
  padding-right: 4px !important;
}

html[data-pond-mode="article"] #knowledge .article-read-progress-label strong {
  font-size: 17px !important;
}

html[data-pond-mode="article"] .article-reader-sidebar {
  padding-bottom: 10px !important;
}

html[data-pond-mode="article"] .article-toc-tip {
  flex: 0 0 auto !important;
  height: auto !important;
  overflow: visible !important;
  padding: 9px 11px 12px !important;
  line-height: 1.52 !important;
}

html[data-pond-mode="article"] .article-toc > p::before,
html[data-pond-mode="article"] .article-detail-meta::before,
html[data-pond-mode="article"] .article-read-progress-label span::before {
  content: none !important;
  display: none !important;
}

/* --- Chatroom: Single-Row Header & Unclipped First Message --- */
html[data-pond-mode="chatroom"] .chatroom-header {
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
}

html[data-pond-mode="chatroom"] .chatroom-nickname-row,
html[data-pond-mode="chatroom"] .chatroom-status {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

html[data-pond-mode="chatroom"] .chatroom-log {
  justify-content: flex-start !important;
  padding: 16px 8px 14px !important;
}

/* --- About: Dotted CRT Person Title Icon (No Yellow Badge) & Balanced Vertical Spacing --- */
html[data-pond-mode="about"] #about .window-titlebar .title-icon-about {
  width: 28px !important;
  height: 28px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='14' fill='none' stroke='%23eefcf9' stroke-width='2' stroke-dasharray='0.6 3.2'/%3E%3Ccircle cx='18' cy='13' r='4.2' fill='none' stroke='%23eefcf9' stroke-width='2' stroke-dasharray='0.6 2.8'/%3E%3Cpath d='M10 27c1.6-4.5 4.8-6.5 8-6.5s6.4 2 8 6.5' fill='none' stroke='%23eefcf9' stroke-width='2' stroke-dasharray='0.6 3' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 0 6px rgba(180, 248, 236, 0.55)) !important;
}

html[data-pond-mode="about"] #about .profile-card {
  padding: 28px 32px !important;
  gap: 28px !important;
  align-content: center !important;
}

/* --- Quick Transfer Sub-Panel (#transfer-app) Full Midnight Pond CRT Skin --- */
html[data-pond-mode="resources"] #transfer-app,
html[data-pond-mode="resources"] .transfer-shell,
html[data-pond-mode="resources"] .transfer-panel,
html[data-pond-mode="resources"] .transfer-card,
html[data-pond-mode="resources"] .transfer-stage,
html[data-pond-mode="resources"] .transfer-loading,
html[data-pond-mode="resources"] [id^="transfer-"] {
  color: #eafbf8 !important;
  border-color: rgba(176, 238, 232, 0.34) !important;
}

html[data-pond-mode="resources"] #transfer-app {
  background: linear-gradient(180deg, rgba(8, 28, 34, 0.88), rgba(4, 18, 22, 0.92)) !important;
  border: 1.2px solid rgba(186, 244, 236, 0.48) !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  height: auto !important;
  min-height: 0 !important;
  box-shadow: inset 0 0 22px rgba(4, 16, 20, 0.55) !important;
}

html[data-pond-mode="resources"] #transfer-app header,
html[data-pond-mode="resources"] #transfer-app .transfer-header,
html[data-pond-mode="resources"] #transfer-app .transfer-topbar,
html[data-pond-mode="resources"] #transfer-app .transfer-banner,
html[data-pond-mode="resources"] #transfer-app .transfer-hero {
  background: rgba(6, 24, 28, 0.72) !important;
  background-image: none !important;
  border-bottom: 1px dotted rgba(182, 238, 232, 0.32) !important;
  text-align: center !important;
  justify-content: center !important;
}

html[data-pond-mode="resources"] #transfer-app .transfer-card,
html[data-pond-mode="resources"] #transfer-app .transfer-box,
html[data-pond-mode="resources"] #transfer-app .transfer-section,
html[data-pond-mode="resources"] #transfer-app #transfer-login-gate,
html[data-pond-mode="resources"] #transfer-app #transfer-room-entry,
html[data-pond-mode="resources"] #transfer-app #transfer-room,
html[data-pond-mode="resources"] #transfer-app #transfer-quota-card,
html[data-pond-mode="resources"] #transfer-app #transfer-feed {
  background: rgba(6, 22, 26, 0.72) !important;
  background-image: none !important;
  border: 1.2px dashed rgba(176, 238, 232, 0.38) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

html[data-pond-mode="resources"] #transfer-app input,
html[data-pond-mode="resources"] #transfer-app textarea {
  background: rgba(3, 14, 18, 0.84) !important;
  color: #f0fefa !important;
  border: 1.2px dashed rgba(176, 238, 232, 0.50) !important;
  border-radius: 10px !important;
}

html[data-pond-mode="resources"] #transfer-app button,
html[data-pond-mode="resources"] #transfer-app .xp-button {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 242, 236, 0.56) !important;
  background: rgba(10, 34, 40, 0.74) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow: none !important;
}

html[data-pond-mode="resources"] #transfer-app .transfer-progress,
html[data-pond-mode="resources"] #transfer-app progress {
  background: rgba(4, 18, 22, 0.80) !important;
  accent-color: #5ef4d8 !important;
}


/* --- Home Login Popover Z-Index Fix & Dark CRT Inner Controls (r5) --- */
html[data-pond-mode="home"] #pond-visual-backdrop {
  z-index: 10 !important;
  pointer-events: auto !important;
}

html[data-pond-mode="home"] .site-shell {
  position: relative !important;
  z-index: 60 !important;
  pointer-events: none !important;
}

html[data-pond-mode] #account-popover .account-tabs,
html[data-pond-mode] #account-popover .account-mode-switch {
  background: rgba(4, 18, 22, 0.72) !important;
  border: 1px dashed rgba(176, 238, 232, 0.40) !important;
  border-radius: 999px !important;
  padding: 3px !important;
}

html[data-pond-mode] #account-popover .account-tabs button,
html[data-pond-mode] #account-popover .account-mode-switch button,
html[data-pond-mode] #account-popover .account-tab {
  background: transparent !important;
  background-image: none !important;
  color: rgba(210, 242, 238, 0.84) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

html[data-pond-mode] #account-popover .account-tabs button[aria-selected="true"],
html[data-pond-mode] #account-popover .account-tabs button.active,
html[data-pond-mode] #account-popover .account-tab.active {
  background: rgba(18, 86, 90, 0.94) !important;
  background-image: none !important;
  border-color: #88fce2 !important;
  color: #ffffff !important;
}

html[data-pond-mode] #account-popover input[type="password"],
html[data-pond-mode] #account-popover input[type="email"],
html[data-pond-mode] #account-popover input[type="text"] {
  background: rgba(3, 14, 18, 0.84) !important;
  background-image: none !important;
  color: #f0fefa !important;
  border: 1.2px dashed rgba(182, 240, 234, 0.52) !important;
  border-radius: 10px !important;
}

html[data-pond-mode] #account-popover .account-note,
html[data-pond-mode] #account-popover .account-status {
  background: rgba(4, 18, 22, 0.68) !important;
  border: 1px dashed rgba(176, 238, 232, 0.34) !important;
  border-radius: 10px !important;
  color: rgba(206, 240, 236, 0.86) !important;
  padding: 8px 10px !important;
}

html[data-pond-mode] #account-popover .account-close,
html[data-pond-mode] #account-popover .close-button {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  border: 1px dashed rgba(186, 240, 234, 0.52) !important;
  background: rgba(8, 28, 34, 0.72) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow: none !important;
}


/* --- Home .site-shell transparent pass-through so WebGL2 Pond stays 100% visible under z-index:60 .site-shell (r6) --- */
html[data-pond-mode="home"] .site-shell,
html[data-pond-mode="home"] .site-shell::before,
html[data-pond-mode="home"] .site-shell::after,
html[data-pond-mode="home"] .site-shell > main,
html[data-pond-mode="home"] .page-home {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

html[data-pond-mode] #account-popover .account-password-toggle {
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 240, 234, 0.52) !important;
  background: rgba(8, 28, 34, 0.76) !important;
  background-image: none !important;
  color: #eefcf9 !important;
  box-shadow: none !important;
}


/* --- Final QA Fixes (r7): Login Close Button, Crisp Open-Book Title Icon, Chatroom Top Fade --- */
/* 1. Login popover close button (.account-close-button) unified with circular dashed x button */
html[data-pond-mode] #account-popover .account-close-button {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1.2px dashed rgba(186, 240, 234, 0.52) !important;
  background: rgba(8, 28, 34, 0.72) !important;
  background-image: none !important;
  color: #eefcf9 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-pond-mode] #account-popover .account-close-button:hover {
  border-style: solid !important;
  border-color: rgba(164, 248, 240, 0.90) !important;
  background: rgba(22, 68, 74, 0.62) !important;
  box-shadow: 0 0 10px rgba(102, 238, 226, 0.30) !important;
}

/* 2. Crisp unmistakable open-book icon for Knowledge & Article titlebars (replaces tiny box-like dots) */
html[data-pond-mode="knowledge"] #knowledge .window-titlebar .title-icon-knowledge,
html[data-pond-mode="article"] #knowledge .window-titlebar .title-icon-knowledge {
  width: 30px !important;
  height: 24px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 28' fill='none'%3E%3Cpath d='M3 6.5C8 4.5 14 5 18 8.5C22 5 28 4.5 33 6.5V23.5C28 21.5 22 22 18 25C14 22 8 21.5 3 23.5V6.5Z' stroke='%23eefcf9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M18 8.5V25' stroke='%239ef8ec' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M7 11.5H14M7 15.5H14M22 11.5H29M22 15.5H29' stroke='%239ef8ec' stroke-width='1.4' stroke-linecap='round' stroke-dasharray='1 2.6'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 0 6px rgba(176, 248, 236, 0.55)) !important;
}

/* 3. Chatroom log soft top-edge fade so scrolled-past top messages dissolve smoothly instead of hard-chopping */
html[data-pond-mode="chatroom"] .chatroom-log {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22px, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22px, #000 100%);
  padding-top: 22px !important;
}


/* ============================================================
   Final Visual Finish (r10):
   1. Videos: restore 16:9 natural thumbnail aspect ratio (zero cover cropping!)
   2. Chatroom: fix #chat-room-label overlap with #chat-sync-status + cleaner top fade
   3. Games: brighten cat cover, keep language tags neatly inline without awkward wrapping
   4. Knowledge: tighter card padding + subtle bottom scroll fade so 3 rows fit cleanly
   5. Mobile Knowledge: bottom padding for Dock clearance
   ============================================================ */

/* 1. Videos: 16:9 full thumbnail display (zero vertical/horizontal cropping!) */
html[data-pond-mode="videos"] #video-list .video-thumb-wrap,
html[data-pond-mode="videos"] #video-list .video-thumb {
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
}

html[data-pond-mode="videos"] #video-list .video-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #041014 !important;
}

/* 2. Chatroom: eliminate #chat-room-label / #chat-sync-status overlap & smooth top fade */
html[data-pond-mode="chatroom"] .chatroom-status {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

html[data-pond-mode="chatroom"] #chat-room-label {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
}

html[data-pond-mode="chatroom"] #chat-sync-status {
  position: static !important;
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

html[data-pond-mode="chatroom"] .chatroom-log {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 10px, #000 38px, #000 100%) !important;
  mask-image: linear-gradient(180deg, transparent 0%, transparent 10px, #000 38px, #000 100%) !important;
}

/* 3. Games: brighten dark art covers (Kittens Game) & keep tags tidy on one line */
html[data-pond-mode="games"] #game-list .game-card[data-pond-cover-kind="art"] .game-cover {
  filter: brightness(1.36) contrast(1.08) saturate(1.12) !important;
}

html[data-pond-mode="games"] #game-list .meta-row {
  gap: 5px 6px !important;
  align-items: center !important;
}

html[data-pond-mode="games"] #game-list .tag {
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  padding: 2px 7px !important;
  font-size: 10.5px !important;
}

/* 4. Knowledge: comfortable 3-row fit + soft bottom fade */
html[data-pond-mode="knowledge"] #knowledge-list {
  padding-bottom: 22px !important;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 20px), transparent 100%);
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card {
  padding: 10px 12px !important;
  row-gap: 4px !important;
}

/* 5. Mobile Knowledge: Dock clearance at bottom of scroll list */
html[data-ui-shell="mobile"] #knowledge-list,
html[data-shell="mobile"] #knowledge-list {
  padding-bottom: 96px !important;
}


/* --- Videos 3-Column True 16:9 Grid Fix (r11): Zero Cropping & Full Unclipped Body --- */
html[data-pond-mode="videos"] #video-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  gap: 16px !important;
}

html[data-pond-mode="videos"] #video-list .video-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 320px !important;
  overflow: hidden !important;
}

html[data-pond-mode="videos"] #video-list .video-thumb-wrap,
html[data-pond-mode="videos"] #video-list .video-thumb {
  width: 100% !important;
  height: 174px !important;
  min-height: 174px !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  flex: 0 0 174px !important;
}

html[data-pond-mode="videos"] #video-list .video-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html[data-pond-mode="videos"] #video-list .video-body {
  flex: 1 1 auto !important;
  overflow: visible !important;
  min-height: auto !important;
}


/* --- Final Polish (r14): Clean Open-Zero Digits on Filter Counts & Brighter Larger Tool Icons --- */
html[data-pond-mode] .filter-count {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif !important;
  font-variant-numeric: tabular-nums !important;
}

html[data-pond-mode="chatroom"] .pond-chat-avatar {
  filter: brightness(1.30) drop-shadow(0 0 8px rgba(154, 246, 236, 0.65)) !important;
}

/* ============================================================
   Welcome Modal v2 Narrow Single-Column Layout (r20)
   Matches design-assets/windows/welcome.png: narrow centered CRT glass card,
   single-column greeting + status + 4 quick-entry pills + 5 direct recent updates,
   no "查看更多更新" button, all interactive features preserved.
   ============================================================ */
html[data-pond-mode="welcome"] #welcome-modal .modal-backdrop {
  background: rgba(2, 10, 12, 0.16) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .xp-window.welcome-window {
  width: min(670px, 92vw) !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: min(830px, 90vh) !important;
  margin: 0 !important;
  padding: 15px 24px 34px !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(10, 34, 38, 0.82), rgba(6, 22, 26, 0.90)) !important;
  border: 1.6px solid rgba(202, 252, 244, 0.80) !important;
  box-shadow: 0 0 34px rgba(114, 244, 232, 0.34), 0 0 58px rgba(212, 138, 248, 0.24) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .window-titlebar {
  padding: 0 0 10px !important;
  margin: 0 0 12px !important;
  flex: 0 0 auto !important;
}

html[data-pond-mode="welcome"] #welcome-modal .window-titlebar .welcome-title-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 L14.2 9.8 L21.5 12 L14.2 14.2 L12 21.5 L9.8 14.2 L2.5 12 L9.8 9.8 Z' fill='none' stroke='%239ef8ec' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size: 18px 18px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 0 !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-content {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-main > h2 {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.48 !important;
  font-weight: 700 !important;
  color: #f0fefa !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-note {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px dotted rgba(182, 236, 230, 0.34) !important;
  border-radius: 10px !important;
  background: rgba(6, 22, 26, 0.44) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-note .monitor-icon {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Crect x='4' y='5' width='28' height='20' rx='3.5' fill='none' stroke='%23e4fffc' stroke-width='2' stroke-dasharray='1.8 2.1'/%3E%3Crect x='8' y='9' width='20' height='12' rx='1.5' fill='rgba(154,248,238,0.08)' stroke='%239af8ec' stroke-width='1.3'/%3E%3Ccircle cx='14.5' cy='13.8' r='1.2' fill='%23e4fffc'/%3E%3Ccircle cx='21.5' cy='13.8' r='1.2' fill='%23e4fffc'/%3E%3Cpath d='M14.5 17.5c1.2 1.3 5.8 1.3 7 0' fill='none' stroke='%23e4fffc' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M14 25v4M22 25v4M11 29.5h14' fill='none' stroke='%23e4fffc' stroke-width='2' stroke-linecap='round' stroke-dasharray='1.8 2'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 34px 34px !important;
  filter: drop-shadow(0 0 7px rgba(154, 252, 242, 0.85)) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-status-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  font-size: 12.2px !important;
  line-height: 1.45 !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-status-copy strong {
  font-size: 13px !important;
  color: #88fce2 !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-status-copy p {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.42 !important;
}

html[data-pond-mode="welcome"] #welcome-modal .dashed-line {
  display: none !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-main > h3 {
  margin: 2px 0 0 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.05em !important;
  color: #9cf8ee !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-links {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 32px !important;
  padding: 5px 8px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 240, 234, 0.56) !important;
  background: rgba(8, 28, 34, 0.62) !important;
  color: #f0fefa !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link:hover {
  border-style: solid !important;
  border-color: rgba(154, 248, 238, 0.92) !important;
  background: rgba(16, 54, 60, 0.78) !important;
  box-shadow: 0 0 12px rgba(102, 236, 224, 0.28) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link .quick-link-asset {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  filter: drop-shadow(0 0 5px rgba(154, 252, 242, 0.82)) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link-chat .quick-link-asset {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 6h12a2.5 2.5 0 0 1 2.5 2.5v5.5A2.5 2.5 0 0 1 17 16.5h-6L7.2 19.5v-3H5A2.5 2.5 0 0 1 2.5 14V8.5A2.5 2.5 0 0 1 5 6z' fill='none' stroke='%23e4fffc' stroke-width='2' stroke-dasharray='1.7 1.8' stroke-linejoin='round'/%3E%3Ccircle cx='8.5' cy='11.2' r='1.1' fill='%23e4fffc'/%3E%3Ccircle cx='11.5' cy='11.2' r='1.1' fill='%23e4fffc'/%3E%3Ccircle cx='14.5' cy='11.2' r='1.1' fill='%23e4fffc'/%3E%3C/svg%3E") !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link-games .quick-link-asset {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 8.5h11a3.5 3.5 0 0 1 3.4 4.2l-.7 3.2a2.3 2.3 0 0 1-4 1l-1.6-1.6H9.4l-1.6 1.6a2.3 2.3 0 0 1-4-1l-.7-3.2A3.5 3.5 0 0 1 6.5 8.5z' fill='none' stroke='%23e4fffc' stroke-width='2' stroke-dasharray='1.7 1.8' stroke-linejoin='round'/%3E%3Cpath d='M8.5 11.2v3M7 12.7h3M15.8 12h.1M17.4 13.4h.1' stroke='%23e4fffc' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link-knowledge .quick-link-asset {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5.5c3-.8 6-.3 9 1.3 3-1.6 6-2.1 9-1.3v12.2c-3-.8-6-.3-9 1.3-3-1.6-6-2.1-9-1.3V5.5zM12 6.8v12.2' fill='none' stroke='%23e4fffc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='1.7 1.8'/%3E%3C/svg%3E") !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link-updates .quick-link-asset {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 L14.4 9.6 L21 12 L14.4 14.4 L12 21 L9.6 14.4 L3 12 L9.6 9.6 Z' fill='none' stroke='%23e4fffc' stroke-width='2' stroke-dasharray='1.7 1.8' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

html[data-pond-mode="welcome"] #welcome-modal .recent-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin: 2px 0 0 !important;
  padding: 10px 0 0 !important;
  border: none !important;
  border-top: 1px dotted rgba(188, 240, 234, 0.34) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html[data-pond-mode="welcome"] #welcome-modal .recent-panel > h3 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 2px !important;
  font-size: 13px !important;
  color: #f0fefa !important;
}

html[data-pond-mode="welcome"] #welcome-modal .recent-panel > h3 em {
  font-style: normal !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  padding: 1px 8px !important;
  border-radius: 999px !important;
  background: rgba(120, 244, 232, 0.16) !important;
  border: 1px solid rgba(154, 248, 238, 0.56) !important;
  color: #9cf8ee !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px dotted rgba(182, 236, 230, 0.28) !important;
  background: transparent !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li:last-child {
  border-bottom: none !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li a.recent-update-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 6px 6px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
}

/* --- Desktop Pond Perf Step 1: Completely suppress hidden legacy wallpaper & star animations --- */
html[data-pond-mode] .wallpaper-root,
html[data-pond-mode] #wallpaper-root,
html[data-pond-mode] #wallpaper-stage,
html[data-pond-mode] .wallpaper-base,
html[data-pond-mode] .wallpaper-stars,
html[data-pond-mode] #wallpaper-time-switch {
  display: none !important;
  animation: none !important;
  background-image: none !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li a.recent-update-link .update-icon {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 25px 25px !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(154, 252, 242, 0.55)) !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates .update-icon-knowledge {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.8 5.2c3.1-.8 6.1-.3 9.2 1.4 3.1-1.7 6.1-2.2 9.2-1.4v12.6c-3.1-.8-6.1-.3-9.2 1.4-3.1-1.7-6.1-2.2-9.2-1.4V5.2z' fill='rgba(126,247,230,0.22)' stroke='%237ef7e6' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 6.6v12.6M5.8 9.2h3.4M5.8 12.6h3.4M14.8 9.2h3.4M14.8 12.6h3.4' stroke='%23d9fff9' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  filter: drop-shadow(0 0 6px rgba(126, 247, 230, 0.55)) !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates .update-icon-videos {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.6' y='4.8' width='18.8' height='14.4' rx='3.2' fill='rgba(255,158,187,0.20)' stroke='%23ff9ebb' stroke-width='1.9'/%3E%3Cpolygon points='9.8,8.5 16.6,12 9.8,15.5' fill='%23ffd9e5' stroke='%23ffd9e5' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  filter: drop-shadow(0 0 6px rgba(255, 158, 187, 0.52)) !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates .update-icon-games {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 8.4h11a3.6 3.6 0 0 1 3.5 4.3l-.8 3.2a2.4 2.4 0 0 1-4.1 1l-1.6-1.6H9.5l-1.6 1.6a2.4 2.4 0 0 1-4.1-1L3 12.7A3.6 3.6 0 0 1 6.5 8.4z' fill='rgba(255,211,122,0.22)' stroke='%23ffd37a' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M8.4 11v3.4M6.7 12.7h3.4' stroke='%23fff1cc' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='15.6' cy='11.8' r='1.15' fill='%23fff1cc'/%3E%3Ccircle cx='17.5' cy='13.6' r='1.15' fill='%23fff1cc'/%3E%3C/svg%3E") !important;
  filter: drop-shadow(0 0 6px rgba(255, 211, 122, 0.52)) !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates .update-icon-tools {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.1 5.1L4.5 16.5a1.8 1.8 0 0 0 2.5 2.5l5.1-5.1a4 4 0 0 0 5.1-5.1l-2.3 2.3-2.5-2.5 2.3-2.3z' fill='rgba(132,212,255,0.24)' stroke='%2384d4ff' stroke-width='1.9' stroke-linejoin='round'/%3E%3Ccircle cx='6.2' cy='17.4' r='0.9' fill='%23dcf4ff'/%3E%3C/svg%3E") !important;
  filter: drop-shadow(0 0 6px rgba(132, 212, 255, 0.52)) !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates .update-icon-chat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5.8h12.2a2.5 2.5 0 0 1 2.5 2.5v5.6a2.5 2.5 0 0 1-2.5 2.5h-6.1l-3.9 3.1v-3.1H5a2.5 2.5 0 0 1-2.5-2.5V8.3A2.5 2.5 0 0 1 5 5.8z' fill='rgba(146,245,180,0.22)' stroke='%2392f5b4' stroke-width='1.9' stroke-linejoin='round'/%3E%3Ccircle cx='8.3' cy='11.1' r='1.2' fill='%23e2ffec'/%3E%3Ccircle cx='11.4' cy='11.1' r='1.2' fill='%23e2ffec'/%3E%3Ccircle cx='14.5' cy='11.1' r='1.2' fill='%23e2ffec'/%3E%3C/svg%3E") !important;
  filter: drop-shadow(0 0 6px rgba(146, 245, 180, 0.52)) !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates .update-icon-system {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6 L14.6 9.4 L21.4 12 L14.6 14.6 L12 21.4 L9.4 14.6 L2.6 12 L9.4 9.4 Z' fill='rgba(232,255,252,0.26)' stroke='%23e8fffc' stroke-width='1.9' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='2.1' fill='%23ffffff'/%3E%3C/svg%3E") !important;
  filter: drop-shadow(0 0 7px rgba(212, 255, 250, 0.68)) !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li a.recent-update-link > span:not(.update-icon) {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border-left: 1px dotted rgba(182, 236, 230, 0.36) !important;
  padding-left: 10px !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li a.recent-update-link .recent-update-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li a.recent-update-link strong {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.38 !important;
  font-weight: 600 !important;
  color: #f4fffe !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li a.recent-update-link .recent-update-summary {
  display: block !important;
  font-size: 11.4px !important;
  line-height: 1.42 !important;
  color: rgba(214, 246, 242, 0.88) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li a.recent-update-link small {
  font-size: 11.2px !important;
  line-height: 1.4 !important;
  color: rgba(192, 238, 232, 0.82) !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  font-variant-numeric: tabular-nums !important;
  padding-top: 1px !important;
}

html[data-pond-mode="welcome"] #welcome-modal .recent-actions {
  display: none !important;
}

@media (max-width: 600px) {
  html[data-pond-mode="welcome"] #welcome-modal .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ============================================================
   r23: Content-Sized Windows + Full-Site Dot-Matrix Icon Unification
   1. Content-sized windows: #about, #resources, #games shrink cleanly to content;
      #knowledge, #article, #videos, #chatroom keep large scrollable geometry.
   2. Legacy icons replaced with unified Midnight Pond dotted SVGs:
      - Video loading/empty TV icon (.video-empty-icon) & #video-modal icons
      - Tools/Games <details><summary> native triangle -> dotted chevron
      - Chatroom ? button, send arrow, native blue auto-scroll checkbox
      - Global window/modal close button (× character -> dotted × SVG)
      - Article Reader meta/TOC/tip/copy colorful pixel icons -> dotted SVGs
      - Mobile Dock colorful XP icons -> dotted SVGs
      - Welcome modal 6 category icons -> crisp unmistakable silhouettes
   ============================================================ */

/* --- 1. Content-Sized Windows (#about, #resources, #games) Centered on Viewport --- */
html[data-pond-mode="about"] .site-shell > main {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  width: min(680px, 88vw) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(600px, 84vh) !important;
}

html[data-pond-mode="about"] #about.page.active,
html[data-pond-mode="about"] #about .xp-window,
html[data-pond-mode="about"] #about .about-window {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(600px, 84vh) !important;
  padding-bottom: 16px !important;
}

html[data-pond-mode="about"] #about .profile-card {
  flex: 0 1 auto !important;
  padding: 12px 22px 10px !important;
  align-items: center !important;
  align-content: center !important;
  gap: 24px !important;
}

html[data-pond-mode="about"] #about .profile-avatar {
  width: 210px !important;
  height: 210px !important;
  min-width: 210px !important;
  min-height: 210px !important;
  margin: 0 !important;
  align-self: center !important;
}

html[data-pond-mode="about"] #about .profile-avatar-image {
  width: 100% !important;
  height: 100% !important;
}

html[data-pond-mode="about"] #about .profile-info dl {
  gap: 5px !important;
  margin: 0 !important;
}

html[data-pond-mode="about"] #about .about-copy {
  margin: 8px 0 !important;
  padding-top: 8px !important;
}

html[data-pond-mode="about"] #about .about-rss-row {
  margin: 0 !important;
  padding: 7px 14px !important;
}

html[data-pond-mode="chatroom"] .chat-unread-button,
html[data-ui-shell="mobile"] .chat-unread-button {
  background: rgba(10, 40, 46, 0.92) !important;
  border: 1.2px dashed rgba(154, 248, 238, 0.78) !important;
  color: #eefcf9 !important;
  border-radius: 999px !important;
  box-shadow: 0 0 14px rgba(102, 236, 224, 0.34) !important;
}

html[data-pond-mode="resources"] .site-shell > main {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  width: min(1040px, 84vw) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(760px, 84vh) !important;
}

html[data-pond-mode="resources"] #resources.page.active,
html[data-pond-mode="resources"] #resources .xp-window {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(760px, 84vh) !important;
}

html[data-pond-mode="resources"] #resource-list {
  flex: 0 1 auto !important;
  padding: 18px 22px 22px !important;
}

html[data-pond-mode="games"] .site-shell > main {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  width: min(1040px, 84vw) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(760px, 84vh) !important;
}

html[data-pond-mode="games"] #games.page.active,
html[data-pond-mode="games"] #games .xp-window {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(760px, 84vh) !important;
}

html[data-pond-mode="games"] #game-list {
  flex: 0 1 auto !important;
  padding: 18px 22px 22px !important;
}

/* --- 2. Video Loading/Empty State TV Emoji & Video Modal Icons --- */
html[data-pond-mode] .video-empty-icon,
html[data-ui-shell="mobile"] .video-empty-icon,
#video-modal .video-placeholder-asset,
#video-modal .title-icon-videos {
  font-size: 0 !important;
  color: transparent !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect x='3' y='5.5' width='22' height='17' rx='3.5' fill='rgba(154,248,238,0.08)' stroke='%23e8fffc' stroke-width='2' stroke-dasharray='2.4 1.6'/%3E%3Cpolygon points='11.5,10 19.5,14 11.5,18' fill='%23e8fffc'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  filter: drop-shadow(0 0 7px rgba(154, 252, 242, 0.78)) !important;
}

html[data-pond-mode] .video-empty-icon::before,
html[data-pond-mode] .video-empty-icon::after {
  content: none !important;
  display: none !important;
}

#video-modal .maximize-button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='3.5' y='3.5' width='13' height='13' rx='2' fill='none' stroke='%23e8fffc' stroke-width='1.8' stroke-dasharray='2.2 1.5'/%3E%3C/svg%3E") !important;
  background-size: 16px 16px !important;
  background-position: center !important;
  width: 16px !important;
  height: 16px !important;
}

/* --- 3. Tools & Games Collapsible <summary> Dotted Chevron (Replace Native ▶) --- */
html[data-pond-mode] .resource-details > summary,
html[data-pond-mode] .game-secondary-details > summary,
html[data-ui-shell="mobile"] .resource-details > summary,
html[data-ui-shell="mobile"] .game-secondary-details > summary {
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer;
}

html[data-pond-mode] .resource-details > summary::-webkit-details-marker,
html[data-pond-mode] .game-secondary-details > summary::-webkit-details-marker,
html[data-ui-shell="mobile"] .resource-details > summary::-webkit-details-marker,
html[data-ui-shell="mobile"] .game-secondary-details > summary::-webkit-details-marker {
  display: none !important;
}

html[data-pond-mode] .resource-details > summary::before,
html[data-pond-mode] .game-secondary-details > summary::before,
html[data-ui-shell="mobile"] .resource-details > summary::before,
html[data-ui-shell="mobile"] .game-secondary-details > summary::before {
  content: "" !important;
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  flex: 0 0 12px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4.5 2.5 L9.5 7 L4.5 11.5' fill='none' stroke='%23aafaf0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='2 1.4'/%3E%3C/svg%3E") center / 12px 12px no-repeat !important;
  transition: transform 0.16s ease;
}

html[data-pond-mode] .resource-details[open] > summary::before,
html[data-pond-mode] .game-secondary-details[open] > summary::before,
html[data-ui-shell="mobile"] .resource-details[open] > summary::before,
html[data-ui-shell="mobile"] .game-secondary-details[open] > summary::before {
  transform: rotate(90deg);
}

/* --- 4. Chatroom Dotted ? Help, Send Arrow & Auto-Scroll Checkbox --- */
html[data-pond-mode="chatroom"] .chat-room-help-trigger,
html[data-ui-shell="mobile"] .chat-room-help-trigger {
  font-size: 0 !important;
  color: transparent !important;
  background: rgba(8, 28, 34, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.4 7.4a2.7 2.7 0 0 1 5.2.9c0 1.6-2.4 2-2.4 3.5' fill='none' stroke='%23e8fffc' stroke-width='1.8' stroke-linecap='round' stroke-dasharray='2 1.2'/%3E%3Ccircle cx='10.2' cy='15' r='1.15' fill='%23e8fffc'/%3E%3C/svg%3E") center / 16px 16px no-repeat !important;
  border: 1px dashed rgba(182, 240, 234, 0.56) !important;
}

html[data-pond-mode="chatroom"] .chat-send-button .send-bubble-icon,
html[data-ui-shell="mobile"] .chat-send-button .send-bubble-icon {
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11.5 L20 4.5 L15.5 20 L11 13.5 Z' fill='none' stroke='%23e8fffc' stroke-width='1.9' stroke-linejoin='round' stroke-dasharray='2.4 1.4'/%3E%3Cpath d='M11 13.5 L19.2 5.2' stroke='%23e8fffc' stroke-width='1.6' stroke-dasharray='2 1.4'/%3E%3C/svg%3E") center / 18px 18px no-repeat !important;
  filter: drop-shadow(0 0 6px rgba(154, 252, 242, 0.78)) !important;
}

html[data-pond-mode="chatroom"] .chat-send-button .send-bubble-icon::before,
html[data-pond-mode="chatroom"] .chat-send-button .send-bubble-icon::after {
  content: none !important;
  display: none !important;
}

html[data-pond-mode="chatroom"] #chat-autoscroll,
html[data-ui-shell="mobile"] #chat-autoscroll {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 2px 0 0 !important;
  border-radius: 4px !important;
  border: 1.3px dashed rgba(182, 240, 234, 0.62) !important;
  background: rgba(6, 22, 26, 0.76) !important;
  cursor: pointer;
  vertical-align: middle;
  flex: 0 0 16px;
}

html[data-pond-mode="chatroom"] #chat-autoscroll:checked,
html[data-ui-shell="mobile"] #chat-autoscroll:checked {
  border-style: solid !important;
  border-color: #9af8ec !important;
  background: rgba(16, 62, 68, 0.86) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.2 L6.6 11.4 L12.8 4.6' fill='none' stroke='%23e8fffc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='2.2 1.2'/%3E%3C/svg%3E") center / 13px 13px no-repeat !important;
  box-shadow: 0 0 8px rgba(136, 252, 226, 0.42) !important;
}

/* --- 5. Global Window & Modal Close Button (Dotted × SVG Replacing Character ×) --- */
html[data-pond-mode] .window-titlebar .close-button,
html[data-pond-mode] .close-button,
html[data-pond-mode] .account-popover-close,
html[data-pond-mode="welcome"] #welcome-modal .window-titlebar .close-button,
#video-modal .window-titlebar .close-button,
#video-modal .close-button,
#welcome-modal .close-button {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background-color: rgba(6, 22, 26, 0.56) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 5.5 L14.5 14.5 M14.5 5.5 L5.5 14.5' fill='none' stroke='%23ecfffd' stroke-width='2' stroke-linecap='round' stroke-dasharray='2.5 1.4'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  border: 1.2px dashed rgba(185, 235, 230, 0.56) !important;
  border-radius: 999px !important;
}

html[data-pond-mode] .window-titlebar .close-button:hover,
html[data-pond-mode] .close-button:hover,
html[data-pond-mode] .account-popover-close:hover,
html[data-pond-mode="welcome"] #welcome-modal .window-titlebar .close-button:hover,
#video-modal .window-titlebar .close-button:hover,
#video-modal .close-button:hover,
#welcome-modal .close-button:hover {
  border-style: solid !important;
  border-color: rgba(154, 248, 238, 0.92) !important;
  background-color: rgba(18, 56, 62, 0.78) !important;
  box-shadow: 0 0 12px rgba(102, 236, 224, 0.34) !important;
}

/* Loading state folder icon on mobile/desktop knowledge -> dotted book SVG */
html[data-pond-mode] .content-state .asset-icon-knowledge,
html[data-ui-shell="mobile"] .content-state .asset-icon-knowledge,
html[data-ui-shell="mobile"] .content-state .content-state-icon {
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.8 5.2c3.1-.8 6.1-.3 9.2 1.4 3.1-1.7 6.1-2.2 9.2-1.4v12.6c-3.1-.8-6.1-.3-9.2 1.4-3.1-1.7-6.1-2.2-9.2-1.4V5.2zM12 6.6v12.6' fill='none' stroke='%23e8fffc' stroke-width='2' stroke-dasharray='2.4 1.4' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 24px 24px !important;
}

/* --- 6. Article Reader Inline Colorful Pixel Icons -> Dotted SVGs --- */
html[data-pond-mode="article"] .asset-icon-knowledge,
html[data-ui-shell="mobile"] .asset-icon-knowledge {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2.5 4.5c2.5-.6 5-.2 7.5 1.1 2.5-1.3 5-1.7 7.5-1.1v10.5c-2.5-.6-5-.2-7.5 1.1-2.5-1.3-5-1.7-7.5-1.1V4.5zM10 5.6v10.5' fill='none' stroke='%23c8fff8' stroke-width='1.6' stroke-dasharray='2 1.3' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size: 16px 16px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

html[data-pond-mode="article"] .asset-icon-note,
html[data-ui-shell="mobile"] .asset-icon-note {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7.2' fill='none' stroke='%23c8fff8' stroke-width='1.6' stroke-dasharray='2 1.3'/%3E%3Cpath d='M10 6.2v4l2.8 1.6' fill='none' stroke='%23c8fff8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-size: 16px 16px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

html[data-pond-mode="article"] .asset-icon-link,
html[data-ui-shell="mobile"] .asset-icon-link {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.5 11.5l3-3M6.8 9.2l-1.5 1.5a2.8 2.8 0 0 0 4 4l1.5-1.5M13.2 10.8l1.5-1.5a2.8 2.8 0 0 0-4-4L9.2 6.8' fill='none' stroke='%23c8fff8' stroke-width='1.7' stroke-linecap='round' stroke-dasharray='2 1.2'/%3E%3C/svg%3E") !important;
  background-size: 16px 16px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* --- 7. Mobile Dock Colorful XP Icons -> Unified Dotted SVGs --- */
html[data-ui-shell="mobile"] .xp-taskbar .taskbar-icon-knowledge {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.8 5.2c3.1-.8 6.1-.3 9.2 1.4 3.1-1.7 6.1-2.2 9.2-1.4v12.6c-3.1-.8-6.1-.3-9.2 1.4-3.1-1.7-6.1-2.2-9.2-1.4V5.2zM12 6.6v12.6' fill='none' stroke='%23e8fffc' stroke-width='2' stroke-dasharray='2.4 1.4' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
html[data-ui-shell="mobile"] .xp-taskbar .taskbar-icon-videos {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='3' fill='none' stroke='%23e8fffc' stroke-width='2' stroke-dasharray='2.4 1.4'/%3E%3Cpolygon points='10,8.5 16.5,12 10,15.5' fill='%23e8fffc'/%3E%3C/svg%3E") !important;
}
html[data-ui-shell="mobile"] .xp-taskbar .taskbar-icon-resources {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.2 5.4a4.4 4.4 0 0 0-5.6 5.6L4.2 16.4a2 2 0 1 0 2.8 2.8l5.4-5.4a4.4 4.4 0 0 0 5.6-5.6l-2.6 2.6-2.8-2.8 2.6-2.6z' fill='none' stroke='%23e8fffc' stroke-width='2' stroke-dasharray='2.4 1.4' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
html[data-ui-shell="mobile"] .xp-taskbar .taskbar-icon-games {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 8h11a4 4 0 0 1 3.9 4.8l-.8 3.4a2.6 2.6 0 0 1-4.4 1.1L14.5 15.5h-5L7.8 17.3a2.6 2.6 0 0 1-4.4-1.1l-.8-3.4A4 4 0 0 1 6.5 8z' fill='none' stroke='%23e8fffc' stroke-width='2' stroke-dasharray='2.4 1.4' stroke-linejoin='round'/%3E%3Cpath d='M8.5 10.6v3.6M6.7 12.4h3.6' stroke='%23e8fffc' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='15.6' cy='11.6' r='1.1' fill='%23e8fffc'/%3E%3Ccircle cx='17.6' cy='13.4' r='1.1' fill='%23e8fffc'/%3E%3C/svg%3E") !important;
}
html[data-ui-shell="mobile"] .xp-taskbar .chat-mini-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 5.5h13a2.5 2.5 0 0 1 2.5 2.5v6a2.5 2.5 0 0 1-2.5 2.5h-6.5l-4 3.2v-3.2H4.5A2.5 2.5 0 0 1 2 14V8a2.5 2.5 0 0 1 2.5-2.5z' fill='none' stroke='%23e8fffc' stroke-width='2' stroke-dasharray='2.4 1.4' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='11' r='1.2' fill='%23e8fffc'/%3E%3Ccircle cx='11.5' cy='11' r='1.2' fill='%23e8fffc'/%3E%3Ccircle cx='15' cy='11' r='1.2' fill='%23e8fffc'/%3E%3C/svg%3E") !important;
}

/* Welcome Modal 6 Category Icons are defined above in solid+micro-fill CRT phosphor style (r81). */

/* ============================================================
   r25: Signed-In Account Popover Redesign + Low-Frequency Status Surfaces
   Eliminates all remaining legacy white/light strips across:
   - #account-popover signed-in state (.account-signed-email, .account-status, .account-actions, .account-danger-action)
   - .content-state (.is-loading, .is-empty, .is-error)
   - .content-recovery-notice (.is-error)
   - .chat-room-help-popover & password room dialog
   - .article-copy-status & .about-social-network-status
   ============================================================ */

/* --- 1. Account Popover Signed-In & Signed-Out Complete CRT Layout --- */
html[data-pond-mode] #account-popover:not([hidden]),
html[data-ui-shell="mobile"] #account-popover:not([hidden]) {
  height: auto !important;
  min-height: 0 !important;
  max-height: min(520px, 84vh) !important;
  width: min(392px, 90vw) !important;
  padding: 20px 24px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow-y: auto !important;
}

html[data-pond-mode] #account-popover .account-popover-header,
html[data-ui-shell="mobile"] #account-popover .account-popover-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
  border-bottom: 1px dotted rgba(182, 238, 232, 0.34) !important;
}

html[data-pond-mode] #account-popover .account-popover-header strong,
html[data-ui-shell="mobile"] #account-popover .account-popover-header strong {
  color: #f2fffe !important;
  font-size: 15px !important;
  letter-spacing: 0.04em !important;
}

html[data-pond-mode] #account-popover .account-signed-email,
html[data-ui-shell="mobile"] #account-popover .account-signed-email {
  margin: 0 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  border: 1px dashed rgba(164, 238, 232, 0.48) !important;
  background: rgba(4, 18, 22, 0.78) !important;
  color: #e8fffc !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html[data-pond-mode] #account-popover .account-note,
html[data-ui-shell="mobile"] #account-popover .account-note {
  margin: 0 !important;
  color: rgba(206, 242, 236, 0.86) !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}

html[data-pond-mode] #account-popover .account-status,
html[data-ui-shell="mobile"] #account-popover .account-status,
html[data-pond-mode] #account-popover[data-account-busy]:not([data-account-busy="idle"]) .account-status {
  margin: 2px 0 0 !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  border: 1px dotted rgba(154, 244, 234, 0.42) !important;
  background: rgba(6, 26, 30, 0.66) !important;
  color: #aaf8ee !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
}

html[data-pond-mode] #account-popover .account-status:empty,
html[data-ui-shell="mobile"] #account-popover .account-status:empty {
  display: none !important;
}

html[data-pond-mode] #account-popover .account-status.is-error,
html[data-pond-mode] #account-popover .account-note.is-error,
html[data-ui-shell="mobile"] #account-popover .account-status.is-error {
  border-color: rgba(255, 134, 158, 0.62) !important;
  background: rgba(58, 14, 26, 0.74) !important;
  color: #ffd8e2 !important;
}

html[data-pond-mode] #account-popover .account-actions,
html[data-ui-shell="mobile"] #account-popover .account-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

html[data-pond-mode] #account-popover .account-actions .xp-button,
html[data-ui-shell="mobile"] #account-popover .account-actions .xp-button {
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1.3px dashed rgba(176, 240, 234, 0.56) !important;
  background: rgba(8, 30, 36, 0.78) !important;
  background-image: none !important;
  color: #eefcf9 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  justify-content: center !important;
}

html[data-pond-mode] #account-popover .account-actions .xp-button:hover,
html[data-ui-shell="mobile"] #account-popover .account-actions .xp-button:hover {
  border-style: solid !important;
  border-color: rgba(154, 248, 238, 0.92) !important;
  background: rgba(18, 56, 62, 0.86) !important;
  box-shadow: 0 0 12px rgba(102, 236, 224, 0.28) !important;
}

html[data-pond-mode] #account-popover .account-actions .account-danger-action,
html[data-ui-shell="mobile"] #account-popover .account-actions .account-danger-action {
  border-color: rgba(255, 134, 166, 0.62) !important;
  background: rgba(58, 16, 30, 0.72) !important;
  color: #ffd8e4 !important;
}

html[data-pond-mode] #account-popover .account-actions .account-danger-action:hover,
html[data-ui-shell="mobile"] #account-popover .account-actions .account-danger-action:hover {
  border-style: solid !important;
  border-color: rgba(255, 152, 180, 0.95) !important;
  background: rgba(82, 22, 42, 0.84) !important;
  box-shadow: 0 0 12px rgba(255, 120, 160, 0.28) !important;
}

/* --- 2. Site-Wide Low-Frequency Status Surfaces (Empty / Error / Loading / Recovery / Popovers) --- */
html[data-pond-mode] .content-state,
html[data-ui-shell="mobile"] .content-state {
  --content-state-edge: rgba(164, 236, 228, 0.44);
  --content-state-ink: #e8fbf7;
  --content-state-bg: rgba(6, 22, 26, 0.72);
  background: var(--content-state-bg) !important;
  border: 1px dashed var(--content-state-edge) !important;
  color: var(--content-state-ink) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

html[data-pond-mode] .content-state.is-empty,
html[data-pond-mode] .content-state[data-state="empty"],
html[data-ui-shell="mobile"] .content-state.is-empty {
  --content-state-edge: rgba(176, 236, 230, 0.42);
  --content-state-ink: #dcf6f2;
  --content-state-bg: rgba(6, 24, 28, 0.72);
}

html[data-pond-mode] .content-state.is-error,
html[data-pond-mode] .content-state[data-state="error"],
html[data-ui-shell="mobile"] .content-state.is-error {
  --content-state-edge: rgba(255, 134, 158, 0.62);
  --content-state-ink: #ffd8e2;
  --content-state-bg: rgba(56, 14, 24, 0.74);
}

html[data-pond-mode] .content-recovery-notice,
html[data-ui-shell="mobile"] .content-recovery-notice {
  background: rgba(8, 30, 36, 0.84) !important;
  border: 1px dashed rgba(164, 236, 228, 0.48) !important;
  color: #e6fbf7 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

html[data-pond-mode] .content-recovery-notice.is-error,
html[data-ui-shell="mobile"] .content-recovery-notice.is-error {
  background: rgba(58, 14, 26, 0.78) !important;
  border-color: rgba(255, 134, 158, 0.62) !important;
  color: #ffd8e2 !important;
}

html[data-pond-mode] .chat-room-help-popover,
html[data-ui-shell="mobile"] .chat-room-help-popover {
  background: rgba(6, 24, 28, 0.96) !important;
  border: 1.2px solid rgba(176, 240, 234, 0.56) !important;
  color: #eefcf9 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

html[data-pond-mode] .article-copy-status,
html[data-ui-shell="mobile"] .article-copy-status {
  color: #88fce2 !important;
}

/* --- 3. Unified 30x30 Dotted Close Button (ID-Specific Across ALL 9 Windows & Modals) & Zero-Shift Hover/Active --- */
html[data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal, #video-modal) .window-titlebar .close-button,
html[data-pond-mode] #account-popover .account-close-button,
#video-modal .window-titlebar .close-button,
#welcome-modal .window-titlebar .close-button,
#account-popover .account-close-button {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  flex: 0 0 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  border-radius: 999px !important;
  border: 1.2px dashed rgba(185, 235, 230, 0.58) !important;
  background: rgba(6, 22, 26, 0.56) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 5.5 L14.5 14.5 M14.5 5.5 L5.5 14.5' fill='none' stroke='%23ecfffd' stroke-width='2.1' stroke-linecap='round' stroke-dasharray='2.5 1.4'/%3E%3C/svg%3E") center / 15px 15px no-repeat !important;
  transform: none !important;
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease !important;
}

html[data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal, #video-modal) .window-titlebar .close-button:hover,
html[data-pond-mode] #account-popover .account-close-button:hover,
#video-modal .window-titlebar .close-button:hover,
#welcome-modal .window-titlebar .close-button:hover,
#account-popover .account-close-button:hover {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  padding: 0 !important;
  border-style: solid !important;
  border-color: rgba(154, 248, 238, 0.94) !important;
  background-color: rgba(18, 56, 62, 0.82) !important;
  background-position: center !important;
  background-size: 16px 16px !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 0 12px rgba(102, 236, 224, 0.36) !important;
  transform: none !important;
}

html[data-pond-mode] :where(.close-button, .account-close-button, .titlebar-button, .xp-button, .card-action, .quick-link, .category-button, .filter-row button, .chat-room-help-trigger, .chat-send-button, .account-mode-switch button):where(:hover, :active, :focus-visible),
html[data-ui-shell="mobile"] :where(.close-button, .account-close-button, .titlebar-button, .xp-button, .card-action, .quick-link, .category-button, .filter-row button):where(:hover, :active, :focus-visible) {
  transform: none !important;
  translate: none !important;
  scale: none !important;
}

/* ============================================================
   r26: Expanded Detail Cards (.resource-details / .game-secondary-details)
        + Video Playback Modal (#video-modal) Dark CRT Theme
   ============================================================ */

/* --- 1. Tools & Games Expanded Details Dark CRT Adaptation --- */
html[data-pond-mode] .resource-details .resource-facts,
html[data-ui-shell="mobile"] .resource-details .resource-facts {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 8px 0 6px !important;
}

html[data-pond-mode] .resource-details .resource-fact,
html[data-ui-shell="mobile"] .resource-details .resource-fact,
html[data-pond-mode] .game-secondary-details .game-secondary-meta .tag,
html[data-ui-shell="mobile"] .game-secondary-details .game-secondary-meta .tag {
  background: rgba(6, 24, 28, 0.80) !important;
  border: 1px dashed rgba(164, 236, 228, 0.46) !important;
  color: #dcf8f4 !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

html[data-pond-mode] .resource-details .resource-details-copy,
html[data-ui-shell="mobile"] .resource-details .resource-details-copy {
  color: rgba(206, 242, 236, 0.88) !important;
  background: transparent !important;
}

html[data-pond-mode] .game-secondary-details .game-source-link,
html[data-ui-shell="mobile"] .game-secondary-details .game-source-link {
  color: #88fce2 !important;
  text-decoration: none !important;
}

html[data-pond-mode] .game-secondary-details .game-source-link:hover,
html[data-ui-shell="mobile"] .game-secondary-details .game-source-link:hover {
  border-style: solid !important;
  border-color: rgba(154, 248, 238, 0.90) !important;
  background: rgba(16, 54, 60, 0.86) !important;
}

/* --- 2. Video Playback Modal (#video-modal) Midnight Pond CRT Theme --- */
#video-modal .modal-backdrop {
  background: rgba(2, 10, 12, 0.54) !important;
  backdrop-filter: blur(6px);
}

#video-modal .xp-window.modal-window {
  background: linear-gradient(180deg, rgba(10, 34, 38, 0.92), rgba(6, 22, 26, 0.96)) !important;
  border: 1.6px solid rgba(202, 252, 244, 0.80) !important;
  border-radius: 18px !important;
  box-shadow: 0 0 36px rgba(114, 244, 232, 0.32), 0 0 60px rgba(212, 138, 248, 0.22) !important;
  color: #f0fefa !important;
  padding: 16px 20px 18px !important;
  overflow: hidden !important;
}

#video-modal .window-titlebar {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-bottom: 1px dotted rgba(188, 240, 234, 0.36) !important;
  padding: 0 0 12px !important;
  margin: 0 0 14px !important;
  color: #f0fefa !important;
  text-shadow: 0 0 10px rgba(154, 244, 234, 0.30) !important;
}

#video-modal .window-controls {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#video-modal .window-controls .maximize-button {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1.2px dashed rgba(185, 235, 230, 0.58) !important;
  background: rgba(6, 22, 26, 0.56) !important;
  background-image: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#video-modal .window-controls .maximize-button:hover {
  border-style: solid !important;
  border-color: rgba(154, 248, 238, 0.94) !important;
  background: rgba(18, 56, 62, 0.80) !important;
  box-shadow: 0 0 12px rgba(102, 236, 224, 0.34) !important;
}

#video-modal .video-frame {
  margin: 0 0 14px !important;
  border: 1px solid rgba(164, 236, 228, 0.34) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

#video-modal .video-placeholder {
  background: rgba(4, 16, 20, 0.92) !important;
  color: #dcf6f2 !important;
}

#video-modal .video-modal-actions {
  margin: 0 !important;
  padding-top: 12px !important;
  border-top: 1px dotted rgba(188, 240, 234, 0.30) !important;
  background: transparent !important;
}

#video-modal .video-modal-actions .xp-button,
#video-modal #video-link {
  border-radius: 999px !important;
  border: 1.3px dashed rgba(182, 240, 234, 0.58) !important;
  background: rgba(8, 30, 36, 0.78) !important;
  background-image: none !important;
  color: #f0fefa !important;
  padding: 7px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

#video-modal .video-modal-actions .xp-button:hover,
#video-modal #video-link:hover {
  border-style: solid !important;
  border-color: rgba(154, 248, 238, 0.92) !important;
  background: rgba(18, 56, 62, 0.86) !important;
  box-shadow: 0 0 12px rgba(102, 236, 224, 0.30) !important;
}

/* --- r31: Chatroom Footer Contrast/Padding & Sync Status Indicator Dot --- */
html[data-pond-mode="chatroom"] #chatroom .chatroom-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 8px 6px !important;
  margin-top: 2px !important;
  background: transparent !important;
  border: none !important;
  color: #e4fffc !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

html[data-pond-mode="chatroom"] #chat-feedback,
html[data-pond-mode="chatroom"] .chatroom-autoscroll {
  color: #e4fffc !important;
}

html[data-pond-mode="chatroom"] #chat-sync-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #d6fcf6 !important;
}

html[data-pond-mode="chatroom"] #chat-sync-status::before {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #6cfcc8 !important;
  box-shadow: 0 0 8px rgba(108, 252, 200, 0.85) !important;
  flex: 0 0 7px !important;
}

html[data-pond-mode="chatroom"] #chat-sync-status[data-connection-state="offline"]::before {
  background: #ff8aa8 !important;
  box-shadow: 0 0 8px rgba(255, 138, 168, 0.85) !important;
}

html[data-pond-mode="chatroom"] #chat-sync-status[data-connection-state="reconnecting"]::before {
  background: #ffe07a !important;
  box-shadow: 0 0 8px rgba(255, 224, 122, 0.85) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .xp-window.welcome-window {
  max-height: min(860px, 92vh) !important;
}
/* TEMP_REBUILD_NOTICE:END */

/* ============================================================
   r35: Site-Wide Button Sizing, Optical Centering, Close-Button
        Clearance & Cohesive Spacing System (Desktop + Mobile)
   ============================================================ */

/* --- 1. Kill motion-system.css inset horizontal line on ALL titlebars + unified titlebar breathing room --- */
html[data-pond-mode] .page.active .window-titlebar,
html[data-pond-mode] .modal:not([hidden]) .window-titlebar,
html[data-pond-mode] .window-titlebar,
#welcome-modal .window-titlebar,
#video-modal .window-titlebar,
html[data-ui-shell="mobile"] .window-titlebar {
  box-shadow: none !important;
}

html[data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about) .window-titlebar {
  min-height: 58px !important;
  padding: 10px 20px 12px !important;
  align-items: center !important;
  gap: 14px !important;
}

html[data-pond-mode="welcome"] #welcome-modal .window-titlebar,
#video-modal .window-titlebar {
  min-height: 54px !important;
  padding: 8px 2px 14px !important;
  margin: 0 0 14px !important;
  align-items: center !important;
  gap: 14px !important;
}

/* --- 2. Unified 36x36 Desktop / 44x44 Mobile Dotted Close & Maximize Buttons (Clear of All Lines/Borders) --- */
html[data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal, #video-modal) .window-titlebar .close-button,
html[data-pond-mode] #account-popover .account-close-button,
#video-modal .window-titlebar .close-button,
#video-modal .window-controls .maximize-button,
#welcome-modal .window-titlebar .close-button,
#account-popover .account-close-button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  background-size: 16px 16px !important;
}

#video-modal .window-controls {
  gap: 10px !important;
}

html[data-ui-shell="mobile"] #welcome-modal .window-titlebar .close-button,
html[data-ui-shell="mobile"] #video-modal .window-titlebar .close-button,
html[data-ui-shell="mobile"] #video-modal .window-controls .maximize-button,
html[data-ui-shell="mobile"] #account-popover .account-close-button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  background-size: 18px 18px !important;
}

/* --- 3. Welcome Modal (#welcome-modal) Benchmark: 4 Quick-Entry Buttons + Recent Rows --- */
html[data-pond-mode="welcome"] #welcome-modal .quick-links {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 4px 0 2px !important;
  align-items: stretch !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  gap: 7px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link > span:last-child {
  display: inline-block !important;
  flex: 0 0 auto !important;
  line-height: 1.15 !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li {
  padding: 6px 0 !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates a {
  display: grid !important;
  padding: 8px 10px !important;
  margin: 0 !important;
}

/* --- 4. Account Popover (#account-popover): Header Clearance, Unified Buttons & Dark Autofill --- */
html[data-pond-mode] #account-popover .account-popover-header,
#account-popover .account-popover-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 4px 2px 14px !important;
  margin-bottom: 14px !important;
}

html[data-pond-mode] #account-popover .account-mode-switch {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 5px !important;
}

html[data-pond-mode] #account-popover .account-mode-switch button,
html[data-pond-mode] #account-popover .xp-button,
html[data-pond-mode] #account-popover button[type="submit"],
html[data-pond-mode] #account-popover .account-toggle-password {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  min-width: 84px !important;
  padding: 8px 16px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

html[data-pond-mode] #account-popover input:-webkit-autofill,
html[data-pond-mode] #account-popover input:-webkit-autofill:hover,
html[data-pond-mode] #account-popover input:-webkit-autofill:focus {
  -webkit-text-fill-color: #eefcf9 !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(8, 28, 34, 0.96) inset !important;
  caret-color: #eefcf9 !important;
}

/* --- 5. Knowledge Base (#knowledge) & Article Reader (#article-detail) --- */
html[data-pond-mode="knowledge"] #knowledge-searchbar {
  gap: 10px !important;
  padding: 12px 22px 10px !important;
}

html[data-pond-mode="knowledge"] #knowledge-searchbar [data-article-search-clear] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 76px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  line-height: 1.15 !important;
}

html[data-pond-mode="knowledge"] #knowledge-categories {
  padding: 8px 22px 10px !important;
  gap: 10px !important;
}

html[data-pond-mode="knowledge"] #knowledge-categories .category-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  gap: 8px !important;
  line-height: 1.15 !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card .card-action,
html[data-pond-mode="knowledge"] #knowledge-list .article-card .article-card-cta,
html[data-pond-mode="knowledge"] #knowledge-list .article-card a.xp-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 84px !important;
  min-height: 36px !important;
  padding: 0 18px !important;
  line-height: 1.15 !important;
}

html[data-pond-mode="knowledge"] #knowledge-list [data-article-load-more] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 128px !important;
  min-height: 38px !important;
  padding: 8px 22px !important;
  line-height: 1.15 !important;
}

html[data-pond-mode="article"] #article-detail :is(.article-back-button, .article-top-link, .article-copy-button, .xp-button):not([hidden]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  min-width: 96px !important;
  padding: 8px 16px !important;
  gap: 8px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

/* --- 6. Videos (#videos) & Video Modal (#video-modal) --- */
html[data-pond-mode="videos"] #video-categories {
  padding: 8px 22px 10px !important;
  gap: 10px !important;
}

html[data-pond-mode="videos"] #video-list {
  grid-auto-rows: max-content !important;
  align-items: stretch !important;
  row-gap: 18px !important;
}

html[data-pond-mode="videos"] #video-list .video-card {
  height: auto !important;
  min-height: max-content !important;
  padding-bottom: 4px !important;
}

html[data-pond-mode="videos"] #video-list .video-body {
  padding: 12px 14px 14px !important;
  gap: 8px !important;
}

html[data-pond-mode="videos"] #video-categories button,
html[data-pond-mode="videos"] #video-list .card-action,
html[data-pond-mode="videos"] #video-list .video-card button:not(.video-thumb),
html[data-pond-mode="videos"] #video-list .video-card a.xp-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  min-width: 84px !important;
  padding: 6px 18px !important;
  line-height: 1.15 !important;
  margin-top: 6px !important;
}

#video-modal .video-modal-actions {
  padding: 14px 4px 2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#video-modal .video-modal-actions .xp-button,
#video-modal #video-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  min-width: 116px !important;
  padding: 8px 20px !important;
  line-height: 1.15 !important;
}

/* --- 7. Tools (#resources): Uniform Action Buttons & Clean Expanded Spacing --- */
html[data-pond-mode="resources"] #resources .card-action,
html[data-pond-mode="resources"] #resources .xp-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  min-height: 38px !important;
  padding: 8px 20px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

html[data-pond-mode="resources"] #resources .resource-details > summary {
  min-height: 34px !important;
  padding: 6px 2px !important;
}

html[data-pond-mode="resources"] #resources .resource-card {
  gap: 12px !important;
}

/* --- 8. Games (#games): Fix Expanded License Overflow, Bottom-Border Clip & Button Sizing --- */
html[data-pond-mode="games"] #game-list {
  grid-auto-rows: max-content !important;
  align-items: stretch !important;
  align-content: start !important;
  gap: 16px !important;
}

html[data-pond-mode="games"] #game-list .game-card {
  height: auto !important;
  min-height: max-content !important;
  padding: 14px 14px 16px !important;
  gap: 10px !important;
  overflow: visible !important;
}

html[data-pond-mode="games"] #game-list .game-main {
  min-width: 0 !important;
  gap: 10px !important;
}

html[data-pond-mode="games"] #game-list .game-secondary-details {
  min-width: 0 !important;
  max-width: 100% !important;
}

html[data-pond-mode="games"] #game-list .game-secondary-details > summary {
  min-height: 34px !important;
  padding: 6px 2px !important;
}

html[data-pond-mode="games"] #game-list .game-secondary-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
  max-width: 100% !important;
}

html[data-pond-mode="games"] #game-list .game-secondary-meta .tag {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
  line-height: 1.4 !important;
  padding: 6px 12px !important;
}

html[data-pond-mode="games"] #game-list .game-secondary-meta .game-source-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 78px !important;
  min-height: 36px !important;
  padding: 6px 16px !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
}

html[data-pond-mode="games"] #game-list .game-card .card-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 112px !important;
  min-height: 38px !important;
  padding: 8px 20px !important;
  margin-top: 6px !important;
  line-height: 1.15 !important;
  align-self: end !important;
}

/* --- 9. Chatroom (#chatroom): Uniform Header Buttons & Comfortable Send Button --- */
html[data-pond-mode="chatroom"] #chatroom .chat-nickname-button,
html[data-pond-mode="chatroom"] #chatroom .chat-room-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  min-width: 92px !important;
  padding: 6px 16px !important;
  line-height: 1.15 !important;
}

html[data-pond-mode="chatroom"] #chatroom .chat-room-help-trigger {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  flex: 0 0 36px !important;
}

html[data-pond-mode="chatroom"] #chatroom .chat-send-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 72px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  margin: 0 6px 0 10px !important;
}

html[data-pond-mode="chatroom"] #chatroom .chatroom-counter {
  margin-right: 12px !important;
  right: 96px !important;
}

/* --- 10. About (#about): Symmetric RSS Button --- */
html[data-pond-mode="about"] #about .rss-link,
html[data-pond-mode="about"] #about .xp-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 108px !important;
  min-height: 38px !important;
  padding: 8px 18px !important;
  line-height: 1.15 !important;
}

/* --- 11. Mobile Shell (390x844 / 375x667 / 359x500 / 844x390): >=44px, Centered, Symmetric, Zero-Touch --- */
html[data-ui-shell="mobile"] .mobile-home-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  gap: 8px !important;
  margin: 4px 0 !important;
}

html[data-ui-shell="mobile"] .brand-button {
  padding: 0 12px !important;
  gap: 8px !important;
}

html[data-ui-shell="mobile"] .account-button {
  min-width: 64px !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html[data-ui-shell="mobile"] #knowledge-searchbar [data-article-search-clear] {
  min-width: 68px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html[data-ui-shell="mobile"] #knowledge-categories,
html[data-ui-shell="mobile"] #video-categories {
  padding: 8px 12px !important;
  gap: 10px !important;
}

html[data-ui-shell="mobile"] #welcome-modal .xp-window.welcome-window {
  background: linear-gradient(180deg, rgba(10, 34, 38, 0.96), rgba(6, 22, 26, 0.98)) !important;
  color: #f0fefa !important;
}

html[data-ui-shell="mobile"] #welcome-modal .welcome-content,
html[data-ui-shell="mobile"] #welcome-modal .welcome-main,
html[data-ui-shell="mobile"] #welcome-modal .welcome-note,
html[data-ui-shell="mobile"] #welcome-modal .recent-panel,
html[data-ui-shell="mobile"] #welcome-modal #recent-updates li,
html[data-ui-shell="mobile"] #welcome-modal #recent-updates a {
  background: transparent !important;
  background-image: none !important;
  color: #f0fefa !important;
  border-color: rgba(182, 236, 230, 0.34) !important;
  box-shadow: none !important;
}

html[data-ui-shell="mobile"] #welcome-modal .welcome-main h2,
html[data-ui-shell="mobile"] #welcome-modal .welcome-main h3,
html[data-ui-shell="mobile"] #welcome-modal .welcome-status-copy strong,
html[data-ui-shell="mobile"] #welcome-modal .recent-panel h3,
html[data-ui-shell="mobile"] #welcome-modal #recent-updates a,
html[data-ui-shell="mobile"] #welcome-modal .recent-update-title {
  color: #f0fefa !important;
}

html[data-ui-shell="mobile"] #welcome-modal .welcome-status-copy p,
html[data-ui-shell="mobile"] #welcome-modal .recent-update-summary,
html[data-ui-shell="mobile"] #welcome-modal .recent-update-date {
  color: rgba(214, 244, 240, 0.86) !important;
}

html[data-ui-shell="mobile"] #welcome-modal .quick-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html[data-ui-shell="mobile"] #welcome-modal .quick-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 8px 12px !important;
  gap: 8px !important;
  text-align: center !important;
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 240, 234, 0.56) !important;
  background: rgba(8, 28, 34, 0.72) !important;
  background-image: none !important;
  color: #f0fefa !important;
}

html[data-ui-shell="mobile"] #resources .resource-card .card-action {
  margin-top: 6px !important;
  margin-bottom: 12px !important;
}

html[data-ui-shell="mobile"] #games .game-secondary-details {
  margin-bottom: 12px !important;
}

html[data-ui-shell="mobile"] #games .game-secondary-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

html[data-ui-shell="mobile"] #games .game-secondary-meta .game-source-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 78px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
}

html[data-ui-shell="mobile"] #chatroom .chat-header,
html[data-ui-shell="mobile"] #chatroom .chat-toolbar,
html[data-ui-shell="mobile"] #chatroom .chat-meta-row,
html[data-ui-shell="mobile"] #chatroom .chat-controls {
  row-gap: 10px !important;
  column-gap: 10px !important;
}

html[data-ui-shell="mobile"] #chatroom .chat-nickname-button,
html[data-ui-shell="mobile"] #chatroom .chat-room-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  min-width: 96px !important;
  padding: 0 16px !important;
  margin: 4px 0 !important;
}

html[data-ui-shell="mobile"] #chatroom .chat-room-badge {
  background: rgba(16, 48, 56, 0.84) !important;
  color: #dffcf8 !important;
  border: 1px solid rgba(154, 248, 238, 0.56) !important;
}

html[data-ui-shell="mobile"] #about .about-copy,
html[data-ui-shell="mobile"] #about .about-bio,
html[data-ui-shell="mobile"] #about .about-intro,
html[data-ui-shell="mobile"] #about .about-rss-card {
  background: rgba(8, 28, 34, 0.84) !important;
  background-image: none !important;
  border-color: rgba(164, 236, 228, 0.42) !important;
  color: #e8fcf9 !important;
}

html[data-ui-shell="mobile"] #about .about-rss-card .rss-link,
html[data-ui-shell="mobile"] #about .rss-link,
html[data-ui-shell="mobile"] #about a.xp-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  min-width: 104px !important;
  padding: 0 18px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

/* ============================================================
   r37: Tools Quick-Transfer Overflow + Games Shelf Contrast + Account Polish
        (Desktop .xp-taskbar styles cleanly removed in r44)
   ============================================================ */

/* --- 2. Tools (#resources): Prevent Quick-Transfer Expanded Tags From Overflowing Card Bottom --- */
html[data-pond-mode="resources"] #resource-list {
  grid-auto-rows: max-content !important;
  align-items: stretch !important;
  overflow-y: auto !important;
}

html[data-pond-mode="resources"] #resource-list .resource-card {
  height: auto !important;
  min-height: max-content !important;
  padding-bottom: 18px !important;
  overflow: visible !important;
}

html[data-pond-mode="resources"] #resources .xp-window {
  max-height: min(640px, calc(100vh - 140px)) !important;
}

/* --- 3. Games Shelf (#games): Brighten Language Label Contrast & Align Start Button --- */
html[data-pond-mode="games"] #game-list .meta-label,
html[data-pond-mode="games"] #game-list .game-lang-label,
html[data-pond-mode="games"] #game-list .meta-row > span:first-child {
  color: rgba(214, 246, 242, 0.90) !important;
  font-weight: 600 !important;
}

html[data-pond-mode="games"] #game-list .game-card .card-action {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 132px !important;
  justify-self: stretch !important;
  margin-top: 8px !important;
}

/* --- 4. Account Popover (#account-popover): Full-Width Centered Buttons & Uniform Input Borders --- */
html[data-pond-mode] #account-popover input,
html[data-pond-mode] #account-popover .account-field input,
#account-popover .account-field input {
  border: 1.2px solid rgba(164, 236, 228, 0.56) !important;
  border-radius: 10px !important;
  background: rgba(6, 22, 26, 0.92) !important;
  background-color: rgba(6, 22, 26, 0.92) !important;
  color: #f0fefa !important;
  padding: 9px 12px !important;
  min-height: 40px !important;
  box-shadow: 0 0 0 1000px rgba(6, 22, 26, 0.92) inset !important;
  -webkit-text-fill-color: #f0fefa !important;
}

html[data-pond-mode] #account-popover .account-submit,
html[data-pond-mode] #account-popover .account-retry-button,
html[data-pond-mode] #account-popover button[type="submit"],
html[data-pond-mode] #account-popover .account-footer button,
html[data-pond-mode] #account-popover [data-account-recheck] {
  width: 100% !important;
  max-width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
}

/* ============================================================
   r40: Video Platform Pill Optical Vertical Centering + Uniform Card
        Row Baseline + Site-Wide Icon-Only & Icon+Text Button Proportions
   ============================================================ */

/* --- 1. Site-Wide Pill / Badge Optical Vertical & Horizontal Centering --- */
html[data-pond-mode] :is(.video-platform, .platform, .tag, .article-pinned-badge, .chat-room-badge, .welcome-announcement-badge),
html[data-ui-shell="mobile"] :is(.video-platform, .platform, .tag, .article-pinned-badge, .chat-room-badge, .welcome-announcement-badge) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-height: 24px !important;
  padding: 4px 11px !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

html[data-pond-mode="videos"] #video-list .video-platform,
html[data-pond-mode="videos"] #video-list .platform,
html[data-ui-shell="mobile"] #video-list .video-platform,
html[data-ui-shell="mobile"] #video-list .platform {
  min-height: 26px !important;
  padding: 5px 12px !important;
  line-height: 1 !important;
  font-size: 12px !important;
}

/* --- 2. Video Cards: Uniform Clamped Title/Summary Height & Equal-Baseline Play Buttons --- */
html[data-pond-mode="videos"] #video-list {
  align-items: stretch !important;
}

html[data-pond-mode="videos"] #video-list .video-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

html[data-pond-mode="videos"] #video-list .video-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 12px 14px 16px !important;
}

html[data-pond-mode="videos"] #video-list .video-body h2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.4 !important;
  min-height: 2.8em !important;
  margin: 0 !important;
}

html[data-pond-mode="videos"] #video-list .video-body > p:not(.video-meta):not(.meta-row) {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.45 !important;
  min-height: 2.9em !important;
  margin: 0 !important;
}

html[data-pond-mode="videos"] #video-list .video-card button:not(.video-thumb),
html[data-pond-mode="videos"] #video-list .video-card .card-action {
  margin-top: auto !important;
  align-self: flex-start !important;
}

/* --- 3. Chatroom Send Button & Site-Wide Icon-Only Button Proportions --- */
html[data-pond-mode="chatroom"] #chatroom .chat-send-button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  padding: 0 !important;
  margin: 0 6px 0 10px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html[data-pond-mode="chatroom"] #chatroom .chat-send-button .send-bubble-icon {
  width: 22px !important;
  height: 22px !important;
  background-size: 20px 20px !important;
  margin: 0 !important;
}

html[data-pond-mode="chatroom"] #chatroom .chatroom-counter {
  margin-right: 8px !important;
  right: 68px !important;
}

html[data-ui-shell="mobile"] #chatroom .chat-send-button {
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html[data-pond-mode="chatroom"] #chatroom .chat-room-help-trigger {
  background-size: 18px 18px !important;
}

html[data-ui-shell="mobile"] #chatroom .chat-room-help-trigger {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  background-size: 20px 20px !important;
}

html[data-pond-mode="about"] #about .social-links a {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link {
  gap: 8px !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link .quick-link-asset {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  background-size: 17px 17px !important;
}

/* ============================================================
   r44: Remove Redundant Bottom Taskbar (Desktop + Mobile),
        Low-Key Corner Status & Welcome Entry,
        Article Back-to-Top Non-Overlap + Dotted Meta Icons,
        About Circular Avatar Only (No Square Outer Frame)
   ============================================================ */

/* --- 1. Global [hidden] Safety Guard (No Floating Button Leaks When Hidden) --- */
html[data-pond-mode] [hidden],
html[data-ui-shell="mobile"] [hidden] {
  display: none !important;
}

/* --- 2. Remove Bottom Taskbar Completely on Both Desktop & Mobile --- */
html[data-pond-mode] .xp-taskbar,
html[data-ui-shell="mobile"] .xp-taskbar,
html[data-shell="mobile"] .xp-taskbar {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html[data-ui-shell="mobile"] .site-shell > main,
html[data-shell="mobile"] .site-shell > main {
  padding-bottom: max(14px, env(safe-area-inset-bottom)) !important;
}

/* --- 4. Article Reader: Back-to-Top Fixed Bottom-Right Outside Text + Dotted Meta Icons --- */
html[data-pond-mode="article"] #article-detail .article-detail-card {
  padding: 4px 126px 76px 2px !important;
}

html[data-pond-mode="article"] #article-detail .article-top-link:not([hidden]) {
  position: fixed !important;
  left: auto !important;
  top: auto !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 48 !important;
  margin: 0 !important;
  background: rgba(8, 32, 38, 0.92) !important;
  border: 1.2px dashed rgba(154, 248, 238, 0.78) !important;
  box-shadow: 0 4px 18px rgba(4, 16, 20, 0.56), 0 0 12px rgba(102, 236, 224, 0.24) !important;
}

html[data-ui-shell="mobile"] #article-detail .article-top-link:not([hidden]) {
  position: fixed !important;
  left: auto !important;
  top: auto !important;
  right: 16px !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  z-index: 48 !important;
}

html[data-pond-mode="article"] .article-meta-category::before,
html[data-ui-shell="mobile"] .article-meta-category::before {
  content: "" !important;
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  margin-right: 6px !important;
  vertical-align: -2px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2.5 4.5c2.5-.6 5-.2 7.5 1.1 2.5-1.3 5-1.7 7.5-1.1v10.5c-2.5-.6-5-.2-7.5 1.1-2.5-1.3-5-1.7-7.5-1.1V4.5zM10 5.6v10.5' fill='none' stroke='%239af8ec' stroke-width='1.7' stroke-dasharray='2 1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat !important;
}

html[data-pond-mode="article"] .article-meta-published::before,
html[data-ui-shell="mobile"] .article-meta-published::before {
  content: "" !important;
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  margin-right: 6px !important;
  vertical-align: -2px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7.2' fill='none' stroke='%239af8ec' stroke-width='1.7' stroke-dasharray='2 1.2'/%3E%3Cpath d='M10 6.2v4l2.8 1.6' fill='none' stroke='%239af8ec' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat !important;
}

/* --- 5. About Page (#about): Clean Circular Avatar Only (Remove Outer Square Backdrop/Frame) --- */
html[data-pond-mode="about"] #about .profile-avatar,
html[data-ui-shell="mobile"] #about .profile-avatar {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

html[data-pond-mode="about"] #about .profile-avatar-image,
html[data-ui-shell="mobile"] #about .profile-avatar-image {
  border-radius: 999px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  object-fit: cover !important;
}

html[data-ui-shell="mobile"] #about .profile-avatar {
  width: 156px !important;
  height: 156px !important;
  margin: 4px auto 12px !important;
}

/* ============================================================
   r49: Comprehensive Full-Site Visual Polish (S1 Gradients Removed,
        S2 Contrast Boost, Welcome 5-Item Fit, Login, Knowledge, Article,
        Video Modal, Tools/Quick-Transfer, Games Shelf, Chatroom)
   ============================================================ */

/* --- S1: Eliminate ALL 4 Remaining Gradient Accent Pills/Bars -> Crisp Midnight Pond Teal --- */
html[data-pond-mode] :is(#knowledge-categories, #video-categories) button.active,
html[data-ui-shell="mobile"] :is(#knowledge-categories, #video-categories) button.active {
  background: rgba(18, 76, 82, 0.92) !important;
  background-image: none !important;
  border: 1.4px solid #88fce2 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(102, 240, 224, 0.30) !important;
}

html[data-pond-mode="article"] #article-read-progress-fill,
html[data-ui-shell="mobile"] #article-read-progress-fill {
  background: #78fae2 !important;
  background-image: none !important;
  box-shadow: 0 0 10px rgba(120, 250, 226, 0.55) !important;
}

html[data-pond-mode="chatroom"] #chatroom .chat-room-badge,
html[data-ui-shell="mobile"] #chatroom .chat-room-badge {
  background: rgba(16, 62, 68, 0.90) !important;
  background-image: none !important;
  border: 1.2px dashed #88fce2 !important;
  color: #eefcf9 !important;
  box-shadow: none !important;
}

html[data-pond-mode] #account-popover button[type="submit"],
html[data-pond-mode] #account-popover .account-submit,
html[data-ui-shell="mobile"] #account-popover button[type="submit"] {
  background: rgba(18, 86, 90, 0.94) !important;
  background-image: none !important;
  border: 1.4px solid #88fce2 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(102, 240, 224, 0.26) !important;
  width: 100% !important;
}

html[data-pond-mode] #account-popover button[type="submit"]:hover {
  background: rgba(24, 108, 112, 0.96) !important;
}

/* --- S2: Systemic Secondary Text Contrast Boost (>= 4.5:1 Readable) --- */
html[data-pond-mode="about"] #about dt,
html[data-ui-shell="mobile"] #about dt {
  color: #9af8ec !important;
  font-weight: 600 !important;
}

html[data-pond-mode="welcome"] #welcome-modal .recent-update-summary,
html[data-pond-mode="welcome"] #welcome-modal .recent-update-date,
html[data-pond-mode="welcome"] #welcome-modal p,
html[data-pond-mode="welcome"] #welcome-modal small {
  color: rgba(218, 248, 244, 0.90) !important;
}

html[data-pond-mode] #account-popover label,
html[data-pond-mode] #account-popover p,
html[data-pond-mode] #account-popover small {
  color: rgba(214, 246, 242, 0.92) !important;
}

html[data-pond-mode] #account-popover input::placeholder {
  color: rgba(190, 232, 226, 0.72) !important;
}

html[data-pond-mode="chatroom"] #chatroom .chat-timestamp,
html[data-pond-mode="chatroom"] #chatroom time,
html[data-pond-mode="chatroom"] #chatroom .chat-welcome-line,
html[data-pond-mode="chatroom"] #chatroom .chat-system-note {
  color: rgba(208, 244, 238, 0.88) !important;
}

html[data-pond-mode="videos"] #video-categories .category-count,
html[data-pond-mode="videos"] #video-categories span,
html[data-pond-mode="knowledge"] #knowledge-categories span {
  color: rgba(224, 250, 246, 0.94) !important;
}

/* --- Welcome Modal: All 5 Recent Updates Fully Visible Without Clipping --- */
html[data-pond-mode="welcome"] #welcome-modal .xp-window.welcome-window {
  max-height: min(920px, 95vh) !important;
  padding: 12px 24px 30px !important;
}

html[data-pond-mode="welcome"] #welcome-modal .welcome-content {
  gap: 7px !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates {
  gap: 2px !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates li {
  padding: 3px 0 !important;
}

html[data-pond-mode="welcome"] #welcome-modal #recent-updates a {
  padding: 5px 8px !important;
}

html[data-pond-mode="welcome"] #welcome-modal .recent-update-summary {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.42 !important;
}

/* --- Games Shelf: Distinct Dimmed Style for Unsupported Language Pills --- */
html[data-pond-mode="games"] #games .tag.language-tag.unsupported,
html[data-ui-shell="mobile"] #games .tag.language-tag.unsupported {
  background: rgba(12, 22, 26, 0.52) !important;
  border: 1px dashed rgba(148, 182, 178, 0.36) !important;
  color: rgba(164, 198, 194, 0.62) !important;
  opacity: 0.72 !important;
  box-shadow: none !important;
}

/* --- Login Popover: Full-Width Buttons, Deduplicate Note & Zero Register Scrollbar --- */
html[data-pond-mode] #account-popover,
html[data-pond-mode] #account-popover:not([hidden]),
html[data-pond-mode] #account-popover form {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

html[data-pond-mode] #account-popover .account-form-actions,
html[data-pond-mode] #account-popover .account-actions {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

html[data-pond-mode] #account-popover button[type="submit"],
html[data-pond-mode] #account-popover .account-primary-action,
html[data-pond-mode] #account-popover .account-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html[data-pond-mode] #account-popover .account-form-hint,
html[data-pond-mode] #account-popover .account-helper-copy,
html[data-pond-mode] #account-popover .account-note {
  display: none !important;
}

/* --- Knowledge Base: Brighter Status/Counts, Bottom Showing Summary, Clean Bottom Row & Top Scroll Buffer --- */
html[data-pond-mode="knowledge"] #knowledge-search-status,
html[data-pond-mode="knowledge"] #knowledge-list > p {
  color: #d8fdf8 !important;
  font-size: 12.5px !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

html[data-pond-mode="knowledge"] #knowledge-searchbar [data-article-search-clear]:disabled {
  opacity: 0.72 !important;
  color: #bcece6 !important;
  border-color: rgba(164, 236, 228, 0.44) !important;
}

html[data-pond-mode="knowledge"] #knowledge-list {
  padding-top: 14px !important;
  scroll-padding-top: 16px !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card .meta-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 10px !important;
}

/* --- Article Reader: Wrapped Meta (#article-detail-meta), Brighter 17px Icons, Compact TOC Tip & Wider Scrollbar --- */
html[data-pond-mode="article"] #article-detail #article-detail-meta,
html[data-pond-mode="article"] #article-detail .article-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  row-gap: 8px !important;
  column-gap: 14px !important;
  line-height: 1.55 !important;
}

html[data-pond-mode="article"] #article-detail-meta .article-meta-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #cef8f2 !important;
}

html[data-pond-mode="article"] .article-meta-category::before,
html[data-pond-mode="article"] .article-meta-published::before {
  width: 17px !important;
  height: 17px !important;
  background-size: 17px 17px !important;
  opacity: 1 !important;
  filter: brightness(1.38) drop-shadow(0 0 6px rgba(136, 252, 226, 0.85)) !important;
}

html[data-pond-mode="article"] .article-reader-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html[data-pond-mode="article"] .article-toc {
  flex: 1 1 auto !important;
  min-height: 180px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

html[data-pond-mode="article"] #article-detail-toc-list {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding-right: 6px !important;
  padding-bottom: 12px !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(136, 252, 226, 0.48) rgba(6, 22, 26, 0.5) !important;
}

html[data-pond-mode="article"] #article-detail-toc-list::-webkit-scrollbar {
  width: 6px !important;
}

html[data-pond-mode="article"] #article-detail-toc-list::-webkit-scrollbar-thumb {
  background: rgba(136, 252, 226, 0.48) !important;
  border-radius: 999px !important;
}

html[data-pond-mode="article"] .article-toc-tip {
  flex: 0 0 auto !important;
  padding: 8px 10px !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  text-wrap: balance !important;
}

/* --- Video Playback Modal: Bright 18px Maximize Icon + Dark Error Fallback Buttons --- */
#video-modal .maximize-button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='3' y='3' width='14' height='14' rx='2.2' fill='none' stroke='%23ecfffd' stroke-width='2.1' stroke-dasharray='2.6 1.5'/%3E%3C/svg%3E") !important;
  background-size: 18px 18px !important;
  width: 18px !important;
  height: 18px !important;
}

#video-modal .video-fallback,
#video-modal .video-error,
#video-modal .video-placeholder {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  padding: 28px 24px !important;
  text-align: center !important;
  text-wrap: balance !important;
}

html[data-pond-mode] #video-modal [data-video-player-retry],
html[data-pond-mode] #video-modal .video-player-fallback .xp-button,
html[data-pond-mode] #video-modal .video-player-fallback-actions .xp-button,
html[data-pond-mode] #video-modal #video-frame .xp-button,
html[data-pond-mode] #video-modal .video-fallback .xp-button,
html[data-pond-mode] #video-modal .video-frame button,
html[data-pond-mode] #video-modal .video-frame a.xp-button,
#video-modal .video-player-fallback .xp-button,
#video-modal .video-frame button,
#video-modal .video-frame a.xp-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  min-width: 112px !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  border: 1.3px dashed #88fce2 !important;
  background: rgba(10, 38, 44, 0.92) !important;
  background-color: rgba(10, 38, 44, 0.92) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow: none !important;
}

html[data-pond-mode] #video-modal [data-video-player-retry]:hover,
html[data-pond-mode] #video-modal .video-player-fallback .xp-button:hover,
html[data-pond-mode] #video-modal .video-frame button:hover,
html[data-pond-mode] #video-modal .video-frame a.xp-button:hover {
  border-style: solid !important;
  border-color: #b4fff0 !important;
  background: rgba(18, 62, 70, 0.94) !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* --- Tools (#resources) & Quick Transfer Sub-Panel (#transfer-app) --- */
html[data-pond-mode="resources"] #resources .xp-window {
  max-height: min(880px, 92vh) !important;
}

html[data-pond-mode="resources"] #resource-list {
  overflow-y: auto !important;
  padding-bottom: 18px !important;
}

html[data-pond-mode="resources"] #resource-list .resource-card > p {
  min-height: 4.5em !important;
  font-size: 12.1px !important;
  letter-spacing: -0.02em !important;
  line-height: 1.52 !important;
  text-wrap: pretty !important;
}

html[data-pond-mode="resources"] #resource-list .resource-card details[open] {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 4px !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
}

html[data-pond-mode="resources"] #resources:has(#transfer-app:not([hidden])) #resource-list,
html[data-pond-mode="resources"] #resources:has(#transfer-app:not([hidden])) #resource-categories {
  display: none !important;
}

html[data-pond-mode="resources"] #transfer-app,
html[data-pond-mode="resources"] #transfer-app * {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(136, 252, 226, 0.44) rgba(6, 22, 26, 0.90) !important;
}

html[data-pond-mode="resources"] #transfer-app::-webkit-scrollbar,
html[data-pond-mode="resources"] #transfer-app *::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

html[data-pond-mode="resources"] #transfer-app::-webkit-scrollbar-track,
html[data-pond-mode="resources"] #transfer-app *::-webkit-scrollbar-track {
  background: rgba(6, 22, 26, 0.90) !important;
}

html[data-pond-mode="resources"] #transfer-app::-webkit-scrollbar-thumb,
html[data-pond-mode="resources"] #transfer-app *::-webkit-scrollbar-thumb {
  background: rgba(136, 252, 226, 0.44) !important;
  border-radius: 999px !important;
}

html[data-pond-mode="resources"] #transfer-app .transfer-project-version,
html[data-ui-shell="mobile"] #transfer-app .transfer-project-version {
  background: rgba(16, 56, 62, 0.68) !important;
  background-image: none !important;
  border: 1px dashed rgba(164, 236, 228, 0.58) !important;
  color: #88fce2 !important;
  border-radius: 999px !important;
  padding: 2px 10px !important;
  box-shadow: none !important;
}

html[data-pond-mode="resources"] #transfer-app #transfer-network-status,
html[data-pond-mode="resources"] #transfer-app .transfer-network-status,
html[data-ui-shell="mobile"] #transfer-app .transfer-network-status {
  background: rgba(10, 62, 52, 0.92) !important;
  background-image: none !important;
  border: 1px solid rgba(108, 252, 200, 0.72) !important;
  color: #dcfff4 !important;
  border-radius: 999px !important;
  padding: 3px 12px !important;
}

/* --- Games Shelf (#games): Cloud Banner, No Orphan Summary, Dimmed Unsupported Tag & Bottom Padding --- */
html[data-pond-mode="games"] #pond-games-cloud-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 22px 10px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  border: 1px dashed rgba(164, 236, 228, 0.44) !important;
  background: rgba(8, 30, 36, 0.72) !important;
  color: #c8f6f0 !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

html[data-pond-mode="games"] #pond-games-cloud-banner[data-signed-in="1"] {
  border-color: rgba(108, 252, 200, 0.68) !important;
  color: #9afce6 !important;
}

html[data-pond-mode="games"] #game-list {
  padding: 6px 22px 26px !important;
}

html[data-pond-mode="games"] #game-list .game-secondary-details {
  grid-column: 1 / -1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html[data-pond-mode="games"] #game-list .game-secondary-details > summary {
  white-space: nowrap !important;
  font-size: 11.5px !important;
  letter-spacing: 0 !important;
  padding-right: 4px !important;
  max-width: 100% !important;
  overflow: visible !important;
}

html[data-pond-mode="games"] #game-list .tag.is-unsupported,
html[data-pond-mode="games"] #game-list .tag[data-supported="false"] {
  opacity: 0.56 !important;
  border-style: dotted !important;
  color: rgba(188, 212, 210, 0.72) !important;
  text-decoration: line-through !important;
}

/* --- Chatroom: Explicit Sync Status Prefix & Cleaner Dark Message List --- */
html[data-pond-mode="chatroom"] #chat-sync-status::after {
  content: "" !important;
}

html[data-pond-mode="chatroom"] #chat-sync-status[data-sync-prefix]::before {
  content: attr(data-sync-prefix) !important;
  position: static !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #7efce0 !important;
  font-weight: 600 !important;
  margin-right: 4px !important;
}

html[data-pond-mode="chatroom"] #chat-message-list {
  background: rgba(5, 20, 25, 0.84) !important;
  backdrop-filter: blur(4px) !important;
}

/* ============================================================
   r55 / r85: Native System Cursor + Scoped UI Non-Selectable Rules
              + Zero-Drift Close Button Hover Optical Centering
   ============================================================ */
html[data-pond-mode],
html[data-pond-mode] body,
html[data-pond-mode] body :where(*:not(#pond-desktop-canvas)) {
  cursor: default !important;
}

html[data-pond-mode] #pond-desktop-canvas {
  cursor: default;
}

/* r85: UI chrome & card surfaces are non-selectable (app-like feel) */
html[data-pond-mode] #pond-visual-backdrop,
html[data-pond-mode] #pond-desktop-canvas,
.xp-topbar,
.xp-topbar *,
.xp-taskbar,
.xp-taskbar *,
.desktop-icons,
.desktop-icons *,
.window-titlebar,
.window-titlebar *,
.window-controls,
.window-controls *,
.knowledge-window-controls,
.knowledge-window-controls *,
.article-read-progress,
.article-read-progress *,
.article-reader-sidebar,
.article-reader-sidebar *,
.article-detail-actions,
.article-detail-actions *,
#article-detail-meta,
#article-detail-meta *,
#article-summary-toggle,
.article-top-link,
.filter-row,
.filter-row *,
.category-panel,
.category-panel *,
#knowledge-searchbar > label,
#knowledge-search-status,
#knowledge-list,
#knowledge-list *,
#welcome-modal,
#welcome-modal *,
#video-list,
#video-list *,
#video-modal .video-modal-actions,
#video-modal .video-modal-actions *,
#video-modal .video-placeholder,
#video-modal .video-placeholder *,
#resource-categories,
#resource-categories *,
#resource-list,
#resource-list *,
.transfer-app-header,
.transfer-app-header *,
.transfer-login-gate,
.transfer-login-gate *,
.transfer-room-entry :not(input):not(textarea):not([contenteditable]),
.transfer-toolbar-actions,
.transfer-toolbar-actions *,
.transfer-item-actions,
.transfer-item-actions *,
.transfer-expiry,
.transfer-quota-card,
.transfer-quota-card *,
.transfer-upload-zone,
.transfer-upload-zone *,
.transfer-tasks,
.transfer-tasks *,
#games .xp-window,
#games .xp-window *,
#chatroom .chatroom-header,
#chatroom .chatroom-header *,
#chatroom .chatroom-footer,
#chatroom .chatroom-footer *,
#chatroom .chat-unread-button,
#chatroom .chatroom-counter,
#chatroom .chat-private-room-panel :not(input):not(textarea):not([contenteditable]),
#chat-message-list .chat-message-meta,
#chat-message-list .chat-message-meta *,
#chat-message-list .chat-system-message,
#chat-message-list .chat-empty,
#about .profile-info dt,
#about .profile-info dl > div:nth-child(2) dd,
#about .about-social-links,
#about .about-social-links *,
#about .about-rss-button,
#account-popover :not(input):not(textarea):not([contenteditable]),
button,
.xp-button,
.quick-link,
.category-button,
.close-button,
.account-close-button,
.maximize-button,
.tag,
.pagination,
.pagination * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* r85: Content reading & copyable regions MUST stay selectable with natural text cursor */
html[data-pond-mode] #article-detail-title,
html[data-pond-mode] #article-detail-summary,
html[data-pond-mode] #article-detail-body,
html[data-pond-mode] #article-detail-body *,
html[data-pond-mode] #chat-message-list .chat-bubble,
html[data-pond-mode] #about .about-copy,
html[data-pond-mode] #about .about-contact-row dd:not(.profile-contact-links),
html[data-pond-mode] #about .profile-info dl > div:nth-child(1) dd,
html[data-pond-mode] #about .profile-info dl > div:nth-child(4) dd,
html[data-pond-mode] #about .about-rss-copy,
html[data-pond-mode] #about .about-rss-copy *,
html[data-pond-mode] .transfer-item-body,
html[data-pond-mode] .transfer-item-body *,
html[data-pond-mode] .transfer-filename,
html[data-pond-mode] #transfer-room-mode,
html[data-pond-mode] #transfer-room-mode *,
html[data-pond-mode] .transfer-room-toolbar > div:first-child,
html[data-pond-mode] .transfer-room-toolbar > div:first-child *,
#article-detail-title,
#article-detail-summary,
#article-detail-body,
#article-detail-body *,
#chat-message-list .chat-bubble,
#about .about-copy,
#about .about-rss-copy,
#about .about-rss-copy *,
.transfer-item-body,
.transfer-item-body *,
.transfer-filename,
#transfer-room-mode,
#transfer-room-mode *,
.transfer-room-toolbar > div:first-child,
.transfer-room-toolbar > div:first-child * {
  -webkit-user-select: text !important;
  user-select: text !important;
  cursor: auto !important;
}

/* Interactive controls always show pointer cursor */
html[data-pond-mode] :is(a, button, summary, label[for], [role="button"], [tabindex]:not([tabindex="-1"]), select, input[type="checkbox"], input[type="radio"], .article-toc-link, .category-button, .xp-button, .close-button, .account-close-button, .maximize-button, .desktop-icon, .quick-link, .video-thumb, .card-action, .article-card-cta, .transfer-file-picker, .about-social-link):not(:disabled) {
  cursor: pointer !important;
}

/* Keep prose links clickable inside selectable content regions */
html[data-pond-mode] #article-detail-body a,
html[data-pond-mode] #article-detail-body a * {
  cursor: pointer !important;
}

/* Native text inputs, textareas, and contenteditable stay 100% native */
html[data-pond-mode] :is(input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), textarea, [contenteditable]:not([contenteditable="false"])),
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
textarea,
[contenteditable]:not([contenteditable="false"]) {
  -webkit-user-select: text !important;
  user-select: text !important;
  cursor: text !important;
}

html[data-pond-mode] :is(button:disabled, input:disabled, select:disabled, [aria-disabled="true"]) {
  cursor: not-allowed !important;
}

/* r86: Disable native browser ghost-image dragging on all images, icons, covers & avatars */
img:not([data-allow-drag]),
picture:not([data-allow-drag]),
svg:not([data-allow-drag]),
.pixel-icon,
.title-icon,
.asset-icon,
.social-icon,
.quick-link-asset,
.game-cover,
.profile-avatar,
.profile-avatar-image,
.chatroom-avatar,
.chat-message-avatar,
.video-thumb,
.video-thumb img,
.article-card img,
.desktop-icon,
.desktop-icon *,
.about-social-link,
.card-action,
.game-source-link,
.brand-orb,
.start-windows-icon {
  -webkit-user-drag: none !important;
  user-drag: none;
}

html[data-pond-mode] :is(.close-button, .account-close-button):where(:hover, :focus-visible, :active) {
  width: 36px !important;
  height: 36px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  padding: 0 !important;
  background-color: rgba(18, 56, 62, 0.82) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 5.5 L14.5 14.5 M14.5 5.5 L5.5 14.5' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-dasharray='2.5 1.4'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-size: 16px 16px !important;
  background-repeat: no-repeat !important;
  border-style: solid !important;
  border-color: rgba(154, 248, 238, 0.94) !important;
  box-shadow: 0 0 12px rgba(102, 236, 224, 0.36) !important;
  transform: none !important;
}

html[data-ui-shell="mobile"] :is(.close-button, .account-close-button):where(:hover, :focus-visible, :active) {
  width: 44px !important;
  height: 44px !important;
  background-size: 18px 18px !important;
}

/* ============================================================
   r59: CRT Refractive Glass Unified Tokens & Step 3 Button Pilot
   (#welcome-modal .quick-link · Astra Spec V1.0)
   ============================================================ */
:root {
  --crt-glass-base: #101A20;
  --crt-glass-base-rgba: rgba(16, 26, 32, 0.94);
  --crt-glass-rim: #72C9C3;
  --crt-glass-cold-white: #D2E5E7;
  --crt-glass-irid-a: #B08AD8;
  --crt-glass-irid-b: #69C6D4;
  --crt-glass-rim-opacity: 0.16;
  --crt-glass-rim-hover-boost: 0.08;
  --crt-glass-shoulder: 8px;
  --crt-glass-rim-width: 1.25px;
  --crt-glass-dispersion-px: 0.35px;
}

html[data-pond-mode] .crt-glass-btn,
html[data-pond-mode] :is(#welcome-modal, #knowledge, #videos, #resources, #games, #chatroom, #about, #account-popover) .crt-glass-btn,
html[data-pond-mode="knowledge"] #knowledge-list .article-card .article-card-cta.crt-glass-btn,
html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-btn,
html[data-ui-shell="mobile"] .crt-glass-btn {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  /* Kill legacy motion-system.css / 140ms hover transitions so 120 FPS JS spring drives press/release directly */
  transition: none !important;
  transform: translate3d(0, var(--cg-press-y, 0px), 0) scale(var(--cg-press-scale, 1)) !important;
  box-shadow:
    inset 0 1px 0 rgba(210, 242, 244, 0.30),
    inset 0 -1px 0 rgba(4, 14, 18, 0.70) !important;
  will-change: transform;
}

/* Keep button text & icons rock-steady (0px independent text jitter, above optical glass layers) */
html[data-pond-mode] .crt-glass-btn > :not(.crt-glass-wave-layer):not(.crt-glass-sheen-layer),
html[data-ui-shell="mobile"] .crt-glass-btn > :not(.crt-glass-wave-layer):not(.crt-glass-sheen-layer) {
  position: relative;
  z-index: 2;
}

html[data-pond-mode] .crt-glass-btn .crt-glass-sheen-layer,
html[data-pond-mode] .crt-glass-btn .crt-glass-wave-layer,
html[data-ui-shell="mobile"] .crt-glass-btn .crt-glass-sheen-layer,
html[data-ui-shell="mobile"] .crt-glass-btn .crt-glass-wave-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
}

/* Shared structural rule: never hard-clip drop-shadow / text-shadow / glowing icons or titles inside heading/titlebar boxes (r93 + r98) */
html[data-pond-mode] :is(.xp-window, #welcome-modal, #video-modal, #account-popover) .window-titlebar,
html[data-pond-mode] :is(.xp-window, #welcome-modal, #video-modal, #account-popover) .window-titlebar > span,
html[data-pond-mode] :is(.xp-window, #welcome-modal, #video-modal, #account-popover) .window-titlebar > span > span,
html[data-pond-mode] :is(.xp-window, #welcome-modal, #video-modal, #account-popover) .window-titlebar .title-icon,
html[data-pond-mode] :is(.xp-window, #welcome-modal, #video-modal, #account-popover) .window-titlebar .welcome-title-icon,
html[data-pond-mode] :is(.resource-card, .game-card, .article-card) :is(h2, h3, .card-title, .resource-main, .game-card-head) {
  overflow: visible !important;
}

html[data-pond-mode="resources"] #resource-list .resource-card {
  overflow: visible !important;
}

/* r93 Structural Unclipped Top-Level Halo Overlay Layer:
   Renders EXACT pre-r92 full-strength outer glow (14px hover / 20px hold / 22px rim-catch) on document.body
   outside every card/scroll container overflow:hidden box, aligned pixel-for-pixel to the active button! */
#crt-glass-halo-layer {
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 2147483630 !important;
  overflow: visible !important;
}

#crt-glass-halo-layer .crt-glass-halo-proxy {
  position: fixed !important;
  pointer-events: none !important;
  background: transparent !important;
  border: none !important;
  box-sizing: border-box !important;
  will-change: left, top, width, height;
  box-shadow: 0 0 var(--cg-halo-blur, 14px) rgba(114, 232, 224, var(--cg-halo-alpha, 0.32)) !important;
}

/* Hover: Live pointer-tracking liquid glass specular lens & angled rim sheen (all V1.0 tiers, full ID specificity parity)
   Pre-r92 border & inset restored; outer 14px halo rendered unclipped by #crt-glass-halo-layer! */
html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-btn.is-glass-hovered,
html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-btn.is-glass-hovered:hover,
html[data-pond-mode] :is(#welcome-modal, #knowledge, #videos, #resources, #games, #chatroom, #about, #account-popover) .crt-glass-btn.is-glass-hovered,
html[data-pond-mode] :is(#welcome-modal, #knowledge, #videos, #resources, #games, #chatroom, #about, #account-popover) .crt-glass-btn.is-glass-hovered:hover,
html[data-pond-mode="knowledge"] #knowledge-list .article-card:hover .article-card-cta.crt-glass-btn.is-glass-hovered,
html[data-pond-mode] .crt-glass-btn.is-glass-hovered,
html[data-pond-mode] .crt-glass-btn.is-glass-hovered:hover {
  border-style: solid !important;
  border-color: rgba(168, 250, 242, 0.88) !important;
  box-shadow:
    inset 0 1px 6px rgba(210, 248, 248, 0.28) !important;
}

/* glass-close tier: subtle rim catch without displacing the × glyph */
html[data-pond-mode] .crt-glass-btn.glass-close,
html[data-ui-shell="mobile"] .crt-glass-btn.glass-close {
  transform: none !important;
}

/* ============================================================
   Step 5 (V1.0): CRT Thin-Shell Glass Window Rim & Focus Iridescence
   Pure box-shadow specular shoulder + subtle purple-cyan phosphor rim
   (ZERO backdrop-filter, ZERO extra DOM layers, ZERO idle RAF cost)
   ============================================================ */
html[data-pond-mode] .xp-window,
html[data-pond-mode] #account-popover {
  box-shadow:
    inset 0 1.25px 0 rgba(210, 229, 231, 0.34),
    inset 0 -1px 0 rgba(4, 14, 18, 0.78),
    inset 1px 0 0 rgba(114, 201, 195, 0.16),
    inset -1px 0 0 rgba(176, 138, 216, 0.14),
    0 18px 46px rgba(1, 9, 13, 0.62),
    0 0 0 1px rgba(114, 201, 195, 0.22),
    0 0 22px rgba(105, 198, 212, 0.14) !important;
}

html[data-pond-mode] .xp-window:focus-within,
html[data-pond-mode] #account-popover:focus-within {
  box-shadow:
    inset 0 1.25px 0 rgba(226, 248, 248, 0.44),
    inset 0 -1px 0 rgba(4, 14, 18, 0.80),
    inset 1px 0 0 rgba(105, 198, 212, 0.24),
    inset -1px 0 0 rgba(176, 138, 216, 0.24),
    0 20px 52px rgba(1, 9, 13, 0.68),
    0 0 0 1px rgba(114, 201, 195, 0.34),
    0 0 26px rgba(176, 138, 216, 0.14),
    0 0 18px rgba(105, 198, 212, 0.18) !important;
}

/* Step 7 Low-Performance Tier: clean flat rim without multi-pass outer halo */
html[data-performance-tier="low"][data-pond-mode] .xp-window,
html[data-performance-tier="low"][data-pond-mode] #account-popover {
  box-shadow:
    inset 0 1px 0 rgba(210, 229, 231, 0.24),
    0 0 0 1px rgba(114, 201, 195, 0.24) !important;
}
html[data-performance-tier="low"] .crt-glass-btn .crt-glass-wave-layer,
html[data-performance-tier="low"] .crt-glass-btn .crt-glass-sheen-layer {
  display: none !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-btn.is-glass-hovered .crt-glass-sheen-layer,
html[data-pond-mode] .crt-glass-btn.is-glass-hovered .crt-glass-sheen-layer {
  opacity: 1;
  background:
    radial-gradient(
      circle 52px at var(--cg-hx, 50%) var(--cg-hy, 50%),
      rgba(224, 252, 250, 0.30) 0%,
      rgba(114, 226, 218, 0.16) 44%,
      transparent 78%
    ),
    linear-gradient(
      var(--cg-sheen-ang, 108deg),
      transparent 28%,
      rgba(216, 248, 248, 0.16) 48%,
      transparent 68%
    );
}

/* Hold: Perceptible CRT glass indentation + dynamic breathing refraction ring around (--cg-cx, --cg-cy)
   High-specificity ID scope explicitly overrides #welcome-modal / #knowledge-list / #game-list / #resource-list :hover rules */
html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-btn.is-glass-held,
html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-btn.is-glass-held:hover,
html[data-pond-mode] :is(#knowledge-list, #game-list, #resource-list, #video-list, #welcome-modal, #chatroom, #about, #account-popover) .crt-glass-btn.is-glass-held,
html[data-pond-mode] :is(#knowledge-list, #game-list, #resource-list, #video-list, #welcome-modal, #chatroom, #about, #account-popover) .crt-glass-btn.is-glass-held:hover,
html[data-pond-mode] #knowledge-list .article-card:hover .article-card-cta.crt-glass-btn.is-glass-held,
html[data-pond-mode] .crt-glass-btn.is-glass-held,
html[data-ui-shell="mobile"] .crt-glass-btn.is-glass-held {
  border-style: solid !important;
  border-color: rgba(204, 255, 250, 0.98) !important;
  background: rgba(10, 38, 44, 0.94) !important;
  box-shadow:
    inset 0 2px 12px rgba(220, 252, 252, 0.42),
    inset 0 -2px 8px rgba(3, 12, 16, 0.78) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-btn.is-glass-held .crt-glass-wave-layer,
html[data-pond-mode] .crt-glass-btn.is-glass-held .crt-glass-wave-layer,
html[data-ui-shell="mobile"] .crt-glass-btn.is-glass-held .crt-glass-wave-layer {
  opacity: 1;
  background:
    radial-gradient(
      circle at var(--cg-cx, 50%) var(--cg-cy, 50%),
      rgba(3, 12, 16, calc(0.68 * var(--cg-hold, 1))) 0px,
      rgba(176, 138, 216, calc(0.36 * var(--cg-hold, 1))) max(0px, calc(var(--cg-hold-r, 24px) - 7px)),
      rgba(226, 254, 252, calc(0.76 * var(--cg-hold, 1))) var(--cg-hold-r, 24px),
      rgba(105, 214, 224, calc(0.38 * var(--cg-hold, 1))) calc(var(--cg-hold-r, 24px) + 7px),
      transparent calc(var(--cg-hold-r, 24px) + 18px)
    );
}

/* Release: Unmistakable expanding CRT refractive wave crest + chromatic fringe */
html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-btn.is-glass-waving .crt-glass-wave-layer,
html[data-pond-mode] .crt-glass-btn.is-glass-waving .crt-glass-wave-layer,
html[data-ui-shell="mobile"] .crt-glass-btn.is-glass-waving .crt-glass-wave-layer {
  opacity: var(--cg-wave-alpha, 0);
  background:
    radial-gradient(
      circle at calc(var(--cg-cx, 50%) + var(--cg-disp, 0px)) var(--cg-cy, 50%),
      transparent max(0px, calc(var(--cg-wave-r, 10px) - var(--cg-wave-band, 14px) * 1.2)),
      rgba(176, 138, 216, 0.62) max(0px, calc(var(--cg-wave-r, 10px) - var(--cg-wave-band, 14px) * 0.42)),
      rgba(234, 255, 254, 0.92) var(--cg-wave-r, 10px),
      rgba(105, 214, 224, 0.64) calc(var(--cg-wave-r, 10px) + var(--cg-wave-band, 14px) * 0.42),
      transparent calc(var(--cg-wave-r, 10px) + var(--cg-wave-band, 14px) * 1.35)
    );
}

/* Rim Shimmer (r96): single continuous raised-cosine edge glide — ZERO brightness flash/jump! */
html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-btn.is-glass-rim-catch,
html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-btn.is-glass-rim-catch:hover,
html[data-pond-mode] :is(#welcome-modal, #knowledge, #videos, #resources, #games, #chatroom, #about, #account-popover) .crt-glass-btn.is-glass-rim-catch,
html[data-pond-mode] :is(#welcome-modal, #knowledge, #videos, #resources, #games, #chatroom, #about, #account-popover) .crt-glass-btn.is-glass-rim-catch:hover,
html[data-pond-mode="knowledge"] #knowledge-list .article-card:hover .article-card-cta.crt-glass-btn.is-glass-rim-catch,
html[data-pond-mode] .crt-glass-btn.is-glass-rim-catch,
html[data-ui-shell="mobile"] .crt-glass-btn.is-glass-rim-catch {
  border-style: solid !important;
  border-color: rgba(196, 252, 248, calc(0.84 + 0.12 * var(--cg-rim-catch, 0))) !important;
  box-shadow:
    inset 0 1px 6px rgba(210, 248, 248, calc(0.28 + 0.14 * var(--cg-rim-catch, 0))) !important;
}

/* Preserve visible keyboard focus ring */
html[data-pond-mode] .crt-glass-btn:focus-visible,
html[data-ui-shell="mobile"] .crt-glass-btn:focus-visible {
  outline: 2px solid var(--crt-glass-rim) !important;
  outline-offset: 2px !important;
}

/* ============================================================
   r95 FULL SITE-WIDE ROLLOUT: Approved MengTo Liquid-Glass (ALL .crt-glass-btn)
   - Flat clear center face + smooth high-curvature rounded glass lip/shoulder
   - Full-strength outer glow (14px hover / 20px hold / 22px rim) rendered unclipped by #crt-glass-halo-layer!
   - Hover: perimeter grazing-angle rim specular reflection follows pointer angle
   - Hold: smooth Gaussian concave face indent around contact (cx, cy)
   - Release: 750ms MengTo crest + trailing wake (pow(1-t, 1.7)) + edge-gated cold-cyan rim shimmer
   ============================================================ */
html[data-pond-mode="welcome"] #welcome-modal .quick-links {
  padding: 6px 4px !important;
  overflow: visible !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-liquid-pilot,
html[data-pond-mode] .crt-glass-btn.glass-primary.crt-glass-liquid-pilot,
html[data-ui-shell="mobile"] .crt-glass-btn.glass-primary.crt-glass-liquid-pilot {
  border-style: solid !important;
  border-width: 1px !important;
  border-color: rgba(164, 234, 230, 0.36) !important;
  background: rgba(14, 34, 40, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(226, 252, 250, 0.42),
    inset 0 -1px 0 rgba(78, 206, 200, 0.20),
    inset 0 0 10px rgba(114, 226, 220, 0.08) !important;
  transform: translate3d(0, var(--cg-press-y, 0px), 0) scale(var(--cg-press-scale, 1)) !important;
}

html[data-pond-mode] .crt-glass-btn.crt-glass-liquid-pilot.is-glass-hovered .crt-glass-sheen-layer,
html[data-ui-shell="mobile"] .crt-glass-btn.crt-glass-liquid-pilot.is-glass-hovered .crt-glass-sheen-layer {
  opacity: 1 !important;
  background:
    radial-gradient(
      circle 68px at var(--cg-hx, 50%) var(--cg-hy, 50%),
      rgba(224, 254, 252, 0.20) 0%,
      rgba(114, 228, 222, 0.08) 46%,
      transparent 78%
    ),
    conic-gradient(
      from var(--cg-sheen-ang, 0deg) at 50% 50%,
      rgba(226, 254, 252, 0.16) 0deg,
      transparent 55deg,
      transparent 165deg,
      rgba(114, 226, 220, 0.10) 195deg,
      transparent 250deg,
      rgba(226, 254, 252, 0.16) 360deg
    ) !important;
  -webkit-mask-image: radial-gradient(ellipse 96% 92% at 50% 50%, rgba(0,0,0,0.28) 54%, #000 100%) !important;
  mask-image: radial-gradient(ellipse 96% 92% at 50% 50%, rgba(0,0,0,0.28) 54%, #000 100%) !important;
}

html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-liquid-pilot.is-glass-held,
html[data-pond-mode="welcome"] #welcome-modal .quick-link.crt-glass-liquid-pilot.is-glass-held:hover,
html[data-pond-mode] :is(#knowledge-list, #game-list, #resource-list, #video-list, #welcome-modal, #chatroom, #about, #account-popover, #article-detail, #transfer-app) .crt-glass-btn.crt-glass-liquid-pilot.is-glass-held,
html[data-pond-mode] :is(#knowledge-list, #game-list, #resource-list, #video-list, #welcome-modal, #chatroom, #about, #account-popover, #article-detail, #transfer-app) .crt-glass-btn.crt-glass-liquid-pilot.is-glass-held:hover,
html[data-pond-mode] .crt-glass-btn.crt-glass-liquid-pilot.is-glass-held,
html[data-ui-shell="mobile"] .crt-glass-btn.crt-glass-liquid-pilot.is-glass-held {
  border-color: rgba(198, 250, 246, 0.88) !important;
  background: rgba(11, 29, 35, 0.74) !important;
  box-shadow:
    inset 0 1.5px 8px rgba(226, 252, 250, 0.34),
    inset 0 -1px 6px rgba(4, 16, 22, 0.68) !important;
}

/* Smooth Gaussian concave dimple around fingertip contact (cx, cy) — zero hard rings, zero neon bullseye! */
html[data-pond-mode] .crt-glass-btn.crt-glass-liquid-pilot.is-glass-held .crt-glass-wave-layer,
html[data-ui-shell="mobile"] .crt-glass-btn.crt-glass-liquid-pilot.is-glass-held .crt-glass-wave-layer {
  opacity: 1 !important;
  background:
    radial-gradient(
      circle at var(--cg-cx, 50%) var(--cg-cy, 50%),
      rgba(3, 14, 18, calc(0.48 * var(--cg-hold, 1))) 0px,
      rgba(12, 34, 40, calc(0.22 * var(--cg-hold, 1))) var(--cg-sigma, 14px),
      rgba(210, 252, 248, calc(0.28 * var(--cg-hold, 1))) calc(var(--cg-sigma, 14px) * 1.65),
      rgba(114, 226, 220, calc(0.10 * var(--cg-hold, 1))) calc(var(--cg-sigma, 14px) * 2.3),
      transparent calc(var(--cg-sigma, 14px) * 3.1)
    ) !important;
}

/* 750ms MengTo translucent crest + trailing wake with delicate 0.35px spectral fringe */
html[data-pond-mode] .crt-glass-btn.crt-glass-liquid-pilot.is-glass-waving .crt-glass-wave-layer,
html[data-ui-shell="mobile"] .crt-glass-btn.crt-glass-liquid-pilot.is-glass-waving .crt-glass-wave-layer {
  opacity: var(--cg-wave-alpha, 0) !important;
  background:
    radial-gradient(
      circle at calc(var(--cg-cx, 50%) + var(--cg-disp, 0px)) var(--cg-cy, 50%),
      transparent max(0px, calc(var(--cg-wave-r, 10px) - var(--cg-wave-band, 14px) * 1.9)),
      rgba(12, 32, 38, 0.24) max(0px, calc(var(--cg-wave-r, 10px) - var(--cg-wave-band, 14px) * 1.1)),
      rgba(168, 152, 220, 0.22) max(0px, calc(var(--cg-wave-r, 10px) - var(--cg-wave-band, 14px) * 0.38)),
      rgba(232, 255, 252, 0.58) var(--cg-wave-r, 10px),
      rgba(114, 232, 228, 0.26) calc(var(--cg-wave-r, 10px) + var(--cg-wave-band, 14px) * 0.42),
      transparent calc(var(--cg-wave-r, 10px) + var(--cg-wave-band, 14px) * 1.35)
    ) !important;
}

/* r97 Zero-Layout-Shift Card Hover Standard:
   All list/grid cards keep constant box-model border width across rest/hover/hold/rim-catch;
   .glass-card (article cards) draws its hover/hold/rim outline via non-box-model inset box-shadow so layout shift is strictly 0px! */
html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card,
html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-hovered,
html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-hovered:hover,
html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-held,
html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-held:hover,
html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-rim-catch,
html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-rim-catch:hover,
html[data-ui-shell="mobile"] .article-card.crt-glass-btn.glass-card {
  border-top: 0 solid transparent !important;
  border-left: 0 solid transparent !important;
  border-right: 0 solid transparent !important;
  border-bottom: 1px dotted rgba(176, 230, 224, 0.26) !important;
  border-radius: 8px !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-hovered,
html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-hovered:hover {
  box-shadow:
    inset 0 0 0 1px rgba(168, 250, 242, 0.72),
    inset 0 1px 6px rgba(210, 248, 248, 0.18) !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-held,
html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-held:hover {
  box-shadow:
    inset 0 0 0 1px rgba(198, 250, 246, 0.88),
    inset 0 1.5px 8px rgba(226, 252, 250, 0.28) !important;
}

html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-rim-catch,
html[data-pond-mode="knowledge"] #knowledge-list .article-card.crt-glass-btn.glass-card.is-glass-rim-catch:hover {
  box-shadow:
    inset 0 0 0 1px rgba(196, 252, 248, calc(0.72 + 0.18 * var(--cg-rim-catch, 0))),
    inset 0 1px 6px rgba(210, 248, 248, calc(0.20 + 0.12 * var(--cg-rim-catch, 0))) !important;
}

/* Guarantee zero border-width reflow on Welcome recent-update links & all other list cards */
html[data-pond-mode="welcome"] #welcome-modal .recent-update-link.crt-glass-btn {
  border-width: 1px !important;
  border-style: solid !important;
  border-color: transparent !important;
}

html[data-pond-mode="videos"] #video-list .video-card,
html[data-pond-mode="videos"] #video-list .video-card:hover {
  border-width: 0 !important;
}

/* Reduced-motion: static held highlight, zero wave/spring/dispersion */
@media (prefers-reduced-motion: reduce) {
  html[data-pond-mode] .crt-glass-btn,
  html[data-ui-shell="mobile"] .crt-glass-btn {
    transform: none !important;
  }
  html[data-pond-mode] .crt-glass-btn.is-glass-held,
  html[data-ui-shell="mobile"] .crt-glass-btn.is-glass-held {
    border-style: solid !important;
    border-color: var(--crt-glass-rim) !important;
    background-color: rgba(18, 56, 62, 0.88) !important;
  }
  html[data-pond-mode] .crt-glass-btn .crt-glass-wave-layer,
  html[data-ui-shell="mobile"] .crt-glass-btn .crt-glass-wave-layer {
    display: none !important;
  }
}

/* ============================================================
   r60: Chatroom Composer Flex Isolation & Unified Dark Phosphor Scrollbar
   Fixes legacy Windows white textarea scrollbar overlapping circular send button.
   ============================================================ */
html[data-pond-mode="chatroom"] #chatroom .chatroom-input-shell {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px 8px 18px !important;
  min-height: 60px !important;
  box-sizing: border-box !important;
}

html[data-pond-mode="chatroom"] #chatroom #chat-message-input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 84px !important;
  padding: 10px 8px 10px 0 !important;
  margin: 0 !important;
  line-height: 1.45 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  resize: none !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(136, 252, 226, 0.36) transparent !important;
}

html[data-pond-mode="chatroom"] #chatroom .chatroom-counter {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 auto !important;
  min-width: auto !important;
  margin: 0 2px 0 0 !important;
  padding: 0 !important;
  align-self: center !important;
}

html[data-pond-mode="chatroom"] #chatroom .chat-send-button {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  flex: 0 0 44px !important;
}

html[data-pond-mode="chatroom"] #chatroom #chat-message-input::-webkit-scrollbar,
html[data-ui-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar,
html[data-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
}

html[data-pond-mode="chatroom"] #chatroom #chat-message-input::-webkit-scrollbar-track,
html[data-ui-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar-track,
html[data-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar-track {
  background: transparent !important;
}

html[data-pond-mode="chatroom"] #chatroom #chat-message-input::-webkit-scrollbar-thumb,
html[data-ui-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar-thumb,
html[data-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar-thumb {
  background: rgba(136, 252, 226, 0.36) !important;
  border-radius: 999px !important;
}

html[data-pond-mode="chatroom"] #chatroom #chat-message-input::-webkit-scrollbar-thumb:hover,
html[data-ui-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar-thumb:hover,
html[data-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar-thumb:hover {
  background: rgba(136, 252, 226, 0.62) !important;
}

html[data-pond-mode="chatroom"] #chatroom #chat-message-input::-webkit-scrollbar-button,
html[data-ui-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar-button,
html[data-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html[data-pond-mode="chatroom"] #chatroom #chat-message-input::-webkit-scrollbar-corner,
html[data-ui-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar-corner,
html[data-shell="mobile"] #chatroom #chat-message-input::-webkit-scrollbar-corner {
  background: transparent !important;
}

html[data-ui-shell="mobile"] #chatroom #chat-message-input,
html[data-shell="mobile"] #chatroom #chat-message-input {
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(136, 252, 226, 0.36) transparent !important;
}

/* ============================================================
   r61: 120 FPS Window Spring Open / Close Scrim & Compositor Isolation
   ============================================================ */
#pond-window-scrim {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #020a0d;
  opacity: 0;
  will-change: opacity;
}

html[data-pond-mode] .xp-window.is-pond-window-animating,
html[data-ui-shell="mobile"] .xp-window.is-pond-window-animating,
html[data-shell="mobile"] .xp-window.is-pond-window-animating {
  contain: layout style !important;
}

/* ============================================================
   r65: Matched Geometry Shell Transition — Steps 3–8 Production
   - Suppresses legacy motion-system.css transition/animation on .xp-window so zero WAAPI/CSS conflict occurs
   - Independent fixed L2 shell layer (#pond-window-morph-layer) below L3 real content handoff (z-index: 15)
   ============================================================ */
html[data-pond-mode] .xp-window,
html[data-pond-mode] .page.is-ui-entering .xp-window,
html[data-pond-mode] .xp-window.is-ui-entering,
html[data-pond-mode] .xp-window.is-ui-leaving,
html[data-pond-mode] .xp-window.is-ui-minimizing,
html[data-ui-shell="mobile"] .xp-window,
html[data-shell="mobile"] .xp-window {
  transition: none !important;
  animation: none !important;
}

html[data-pond-mode] .xp-window.is-morph-measuring,
html[data-ui-shell="mobile"] .xp-window.is-morph-measuring,
html[data-shell="mobile"] .xp-window.is-morph-measuring {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* r72: Rock-Solid Static Window Surface + Zero End-of-Open Snap
   - Locks #about min-height to 440px so async social-link check never jumps height (469->403px)
   - Removes jarring 1-frame backdrop-filter toggle snap at end of open and prevents moving pond caustics
     from shimmering/vibrating through settled window text */
html[data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window,
html[data-ui-shell="mobile"] :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window,
html[data-shell="mobile"] :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: rgba(6, 20, 24, 0.93) !important;
}

html[data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window.is-morph-flying,
html[data-ui-shell="mobile"] :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal, #video-modal) .xp-window.is-morph-flying,
html[data-shell="mobile"] :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal, #video-modal) .xp-window.is-morph-flying,
html[data-ui-shell="mobile"] #account-popover.is-morph-flying,
html[data-shell="mobile"] #account-popover.is-morph-flying {
  contain: layout style !important;
}

/* Lock settled heights across dynamic sections so deltaH === 0 after open */
html[data-pond-mode="games"] #games .xp-window {
  min-height: min(760px, 78vh) !important;
  height: min(760px, 78vh) !important;
}

html[data-pond-mode="resources"] #resources .xp-window {
  min-height: min(680px, 72vh) !important;
}

html[data-pond-mode="about"] #about .xp-window {
  min-height: 460px !important;
  height: 460px !important;
}

/* ============================================================
   r73: Welcome Modal WAAPI/Surface Lock + Zero Legacy Scrollbar Flash Across All Windows
   - Removes semi-transparent gradient override on #welcome-modal / #about so settled surfaces stay 100% solid
   - Prevents #about .profile-card from flashing a 15px native vertical scrollbar during open (sh=332 > ch=318)
   - Unifies dark phosphor 5px thin scrollbar across all pond windows from Frame 0 (zero native/XP blue flash)
   ============================================================ */
html[data-pond-mode="welcome"] #welcome-modal,
html[data-pond-mode="welcome"] #welcome-modal .modal-backdrop,
html[data-pond-mode="welcome"] #welcome-modal .xp-window.welcome-window {
  transition: none !important;
  animation: none !important;
}

html[data-pond-mode="welcome"] #welcome-modal .xp-window.welcome-window,
html[data-pond-mode="about"] #about .xp-window {
  background: rgba(6, 20, 24, 0.94) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pond-mode="about"] #about .profile-card {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
}

html[data-pond-mode="about"] #about .profile-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ============================================================
   r90: Systemic Cold-Open vs Warm-Open Consistency
   1. Seamless, borderless, 260ms-delayed .route-module-status.is-loading
      (eliminates the jarring "正在打开应用模块..." box flash in Chatroom & other windows on cold open)
   2. Deterministic #about avatar & card geometry from Frame 0 (zero cold-open downward shift/snap)
   ============================================================ */
@keyframes pondRouteLoadDelay {
  0%, 72% { opacity: 0; }
  100% { opacity: 0.72; }
}

html[data-pond-mode] .route-module-status.is-loading,
html[data-ui-shell="mobile"] .route-module-status.is-loading {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 18px 12px !important;
  margin: 0 auto !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  animation: pondRouteLoadDelay 380ms ease forwards !important;
}

html[data-pond-mode] .route-module-status.is-loading .loading-text,
html[data-ui-shell="mobile"] .route-module-status.is-loading .loading-text {
  margin: 0 !important;
  color: rgba(164, 232, 226, 0.72) !important;
  font-size: 12.5px !important;
  letter-spacing: 0.06em !important;
}

/* r92 + r94 + r99: Unified rule — ZERO transient loading boxes/skeletons ever take layout space on cold open in desktop Pond mode OR mobile shell
   (covers .route-module-status.is-loading, #about-social-network-status.is-loading, .content-state.is-loading,
   .content-recovery-notice.is-loading, .knowledge-skeleton-label, .article-card-skeleton, .video-status-state.is-loading; .is-error & .is-empty stay visible!) */
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(.route-module-status.is-loading, #about-social-network-status.is-loading, .content-state.is-loading, .content-recovery-notice.is-loading, .article-card-skeleton, .video-status-state.is-loading) {
  display: none !important;
}

html[data-pond-mode="about"] #about-social-links {
  min-height: 36px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

html[data-pond-mode="games"] #games .xp-window {
  min-height: 640px !important;
}

html[data-pond-mode="resources"] #resources .xp-window {
  min-height: 460px !important;
}

html[data-pond-mode="about"] #about .xp-window {
  min-height: 460px !important;
}

html[data-pond-mode="about"] #about .profile-avatar {
  flex: 0 0 auto !important;
  aspect-ratio: 1 / 1 !important;
}

html[data-pond-mode="about"] #about .profile-avatar-image {
  display: block !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

/* Unified Midnight Pond dark phosphor 5px scrollbar for all settled scrollable surfaces (Desktop + Mobile) */
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window * {
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 252, 226, 0.34) transparent;
}

:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window::-webkit-scrollbar,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window *::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window::-webkit-scrollbar-track,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window *::-webkit-scrollbar-track {
  background: transparent;
}

:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window::-webkit-scrollbar-thumb,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window *::-webkit-scrollbar-thumb {
  background: rgba(136, 252, 226, 0.34);
  border-radius: 999px;
}

:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window::-webkit-scrollbar-button,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window *::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Hide scrollbars during active window zoom flight so zero scrollbar can ever flash mid-animation (Desktop + Mobile) */
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window.is-morph-flying,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window.is-morph-flying *,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window.is-morph-measuring,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window.is-morph-measuring *,
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#video-modal .xp-window.is-morph-flying, #video-modal .xp-window.is-morph-flying *, #account-popover.is-morph-flying, #account-popover.is-morph-flying *) {
  scrollbar-width: none !important;
}

:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window.is-morph-flying::-webkit-scrollbar,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window.is-morph-flying *::-webkit-scrollbar,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window.is-morph-measuring::-webkit-scrollbar,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal) .xp-window.is-morph-measuring *::-webkit-scrollbar,
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#video-modal .xp-window.is-morph-flying::-webkit-scrollbar, #video-modal .xp-window.is-morph-flying *::-webkit-scrollbar, #account-popover.is-morph-flying::-webkit-scrollbar, #account-popover.is-morph-flying *::-webkit-scrollbar) {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ============================================================
   r99: Mobile Midnight Pond CRT Full Overhaul & 8-Item Audit Closure
   1. Unified WebGL2 Pond CRT Desktop on Mobile Home (seasons, koi, boot warm-up, 6 pond icons, ID/lang corner)
   2. Mobile 6-Route Frosted CRT Dock Restored & Styled in Midnight Pond Glass
   3. Mobile Safe-Area Floating CRT Window Geometry + 44x44 Dotted Titlebar Close Button
   4. All 8 Desktop Audit Items Closed on Mobile (Cold=Warm, Boot Prebake, Touch Monotonic Edge Boost,
      Unclipped Glow, 0px Stroke Shift, Full Liquid-Glass Specificity Parity, Morph Scrollbar Lock, Quiet Icons)
   ============================================================ */

/* --- 1. Mobile Home: Full Pass-Through to Live WebGL2 Pond CRT Canvas + Interactive Bottom CRT Dock --- */
html[data-ui-shell="mobile"][data-pond-mode] .wallpaper-root,
html[data-ui-shell="mobile"][data-pond-mode] #wallpaper-root,
html[data-ui-shell="mobile"][data-pond-mode] .wallpaper-stage,
html[data-ui-shell="mobile"][data-pond-mode] .wallpaper-base,
html[data-ui-shell="mobile"][data-pond-mode] #wallpaper-time-switch,
html[data-ui-shell="mobile"][data-pond-mode] .mobile-statusbar {
  display: none !important;
  animation: none !important;
  background-image: none !important;
}

html[data-ui-shell="mobile"][data-pond-mode] .site-shell,
html[data-ui-shell="mobile"][data-pond-mode] .site-shell::before,
html[data-ui-shell="mobile"][data-pond-mode] .site-shell::after,
html[data-ui-shell="mobile"][data-pond-mode="home"] .site-shell > main,
html[data-ui-shell="mobile"][data-pond-mode="home"] .page-home {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  pointer-events: none !important;
}

html[data-ui-shell="mobile"][data-pond-mode="home"] .desktop-intro,
html[data-ui-shell="mobile"][data-pond-mode="home"] .desktop-icons {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile Dock Retired (r107): Remove bottom Dock completely & reclaim 100% bottom viewport space */
html[data-ui-shell="mobile"],
html[data-shell="mobile"],
html[data-ui-shell="mobile"] body,
html[data-shell="mobile"] body,
html[data-ui-shell="mobile"] body[data-mobile-dock="collapsed"],
html[data-ui-shell="mobile"][data-mobile-keyboard="open"] body {
  --mobile-dock-height: 0px !important;
  --mobile-dock-space: var(--mobile-safe-bottom, env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-shell="mobile"] .xp-taskbar,
html[data-shell="mobile"] .xp-taskbar,
html[data-ui-shell="mobile"][data-pond-mode] .xp-taskbar,
html[data-shell="mobile"][data-pond-mode] .xp-taskbar,
html[data-ui-shell="mobile"] .mobile-dock-scroll,
html[data-shell="mobile"] .mobile-dock-scroll,
html[data-ui-shell="mobile"] .mobile-dock-selection,
html[data-shell="mobile"] .mobile-dock-selection,
html[data-ui-shell="mobile"] .mobile-home-indicator,
html[data-shell="mobile"] .mobile-home-indicator {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* --- 2. Mobile Floating CRT Window Geometry & Titlebar Parity (Full Usable Viewport Height, Zero Dock Reserve) --- */
html[data-ui-shell="mobile"][data-pond-mode] .site-shell > main,
html[data-shell="mobile"][data-pond-mode] .site-shell > main {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  z-index: 20 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--mobile-viewport-height, 100dvh) !important;
  min-height: 0 !important;
  max-height: var(--mobile-viewport-height, 100dvh) !important;
  margin: 0 !important;
  padding:
    max(46px, calc(var(--mobile-safe-top, env(safe-area-inset-top, 0px)) + 40px))
    max(8px, var(--mobile-safe-right, env(safe-area-inset-right, 0px)))
    max(12px, calc(var(--mobile-safe-bottom, env(safe-area-inset-bottom, 0px)) + 10px))
    max(8px, var(--mobile-safe-left, env(safe-area-inset-left, 0px))) !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  background: transparent !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"][data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about).page,
html[data-ui-shell="mobile"][data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about).page.active {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"][data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about).page.active {
  display: flex !important;
  flex-direction: column !important;
  pointer-events: auto !important;
}

html[data-ui-shell="mobile"][data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about).page > .xp-window,
html[data-ui-shell="mobile"][data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about).page.active > .xp-window {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
  border-radius: 18px !important;
  border: 1.5px solid rgba(190, 248, 240, 0.72) !important;
  background: rgba(6, 20, 24, 0.94) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* Show unified CRT Window Titlebar + 44x44 Dotted × Close Button on Mobile Pond Windows (always ready from Frame 0!) */
html[data-ui-shell="mobile"][data-pond-mode] .page:not(#home) > .xp-window > .window-titlebar,
html[data-shell="mobile"][data-pond-mode] .page:not(#home) > .xp-window > .window-titlebar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 50px !important;
  padding: 6px 12px 6px 14px !important;
  flex: 0 0 auto !important;
  background: rgba(8, 28, 32, 0.92) !important;
  border-bottom: 1px dotted rgba(182, 238, 232, 0.36) !important;
}

/* Keep .site-shell > header visibility:hidden (never display:none) so [data-open-welcome],
   [data-account-toggle], and #account-popover remain focusable and functional on mobile Pond mode. */
html[data-ui-shell="mobile"][data-pond-mode] .site-shell > header,
html[data-shell="mobile"][data-pond-mode] .site-shell > header {
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: visible !important;
}

html[data-ui-shell="mobile"][data-pond-mode] .mobile-appbar,
html[data-shell="mobile"][data-pond-mode] .mobile-appbar {
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-ui-shell="mobile"][data-pond-mode] .window-titlebar::after {
  display: none !important;
  content: none !important;
}

html[data-ui-shell="mobile"][data-pond-mode] :is(#knowledge, #videos, #resources, #games, #chatroom, #about, #welcome-modal, #video-modal) .window-titlebar .close-button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  background-size: 17px 17px !important;
}

/* Mobile Responsive Inner Grids Inside Pond CRT Windows (359x500 / 375x667 / 390x844 / 844x390) */
@media (max-width: 620px) {
  html[data-ui-shell="mobile"][data-pond-mode] #video-list {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 8px 12px 18px !important;
    gap: 14px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #resource-list,
  html[data-ui-shell="mobile"][data-pond-mode] #game-list {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 10px 12px 18px !important;
    gap: 14px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #knowledge-searchbar {
    padding: 8px 12px 6px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #knowledge-categories,
  html[data-ui-shell="mobile"][data-pond-mode] #video-categories {
    padding: 6px 12px 8px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #knowledge-list {
    padding: 8px 10px 24px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #about .profile-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 14px 14px 18px !important;
    gap: 12px !important;
    overflow-y: auto !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #about .window-titlebar {
    margin: 0 !important;
    padding: 6px 12px 6px 14px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #about .profile-avatar {
    width: 124px !important;
    height: 124px !important;
    min-width: 124px !important;
    min-height: 124px !important;
    margin: 2px auto 4px !important;
    padding: 0 !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #about .profile-avatar-image {
    width: 124px !important;
    height: 124px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #about .profile-info {
    width: 100% !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #about .profile-info dl {
    display: grid !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px dotted rgba(182, 236, 230, 0.28) !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #about .profile-info dl > div {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 2px 0 !important;
    margin: 0 !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #about .about-copy {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.65 !important;
  }

  /* Mobile Chatroom responsive header & full-width horizontal send button */
  html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-header {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 8px 12px !important;
    gap: 6px 8px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-nickname-row,
  html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-status {
    flex-wrap: wrap !important;
    white-space: normal !important;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 6px 8px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-compose {
    width: 100% !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-input-shell {
    width: 100% !important;
    padding: 6px 8px 6px 14px !important;
    box-sizing: border-box !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chat-send-button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 64px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-footer {
    padding: 6px 12px 4px !important;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (min-width: 521px) {
  html[data-ui-shell="mobile"][data-pond-mode] .site-shell > main {
    padding:
      max(28px, calc(var(--mobile-safe-top, env(safe-area-inset-top, 0px)) + 24px))
      max(10px, var(--mobile-safe-right, env(safe-area-inset-right, 0px)))
      max(8px, calc(var(--mobile-safe-bottom, env(safe-area-inset-bottom, 0px)) + 6px))
      max(10px, var(--mobile-safe-left, env(safe-area-inset-left, 0px))) !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] body:not([data-route="home"]) .page.active > .xp-window > .window-titlebar {
    min-height: 44px !important;
    padding: 4px 10px 4px 12px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 8px 12px 16px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #about .profile-card {
    padding: 10px 16px 14px !important;
    gap: 14px !important;
    overflow-y: auto !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #about .profile-avatar {
    width: 108px !important;
    height: 108px !important;
    min-width: 108px !important;
    min-height: 108px !important;
  }
}

/* --- Item 1 & Item 5: Mobile #about deterministic layout, dark CRT social buttons & RSS card --- */
html[data-ui-shell="mobile"] #about-social-links,
html[data-shell="mobile"] #about-social-links {
  min-height: 44px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
}

html[data-ui-shell="mobile"] #about .profile-avatar,
html[data-shell="mobile"] #about .profile-avatar {
  flex: 0 0 auto !important;
  aspect-ratio: 1 / 1 !important;
}

html[data-ui-shell="mobile"] #about .profile-avatar-image,
html[data-shell="mobile"] #about .profile-avatar-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

html[data-ui-shell="mobile"] #about .about-social-link,
html[data-shell="mobile"] #about .about-social-link {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(164, 234, 230, 0.42) !important;
  background: rgba(10, 32, 38, 0.78) !important;
  background-image: none !important;
  color: #eefcf9 !important;
  box-shadow:
    inset 0 1px 0 rgba(226, 252, 250, 0.36),
    0 0 10px rgba(96, 228, 218, 0.16) !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"] #about .social-icon-x,
html[data-ui-shell="mobile"] #about .social-icon-github,
html[data-shell="mobile"] #about .social-icon-x,
html[data-shell="mobile"] #about .social-icon-github {
  filter: invert(1) brightness(1.18) drop-shadow(0 0 4px rgba(186, 248, 240, 0.45)) !important;
}

html[data-ui-shell="mobile"] #about .about-rss-row,
html[data-shell="mobile"] #about .about-rss-row {
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  border: 1.2px solid rgba(182, 242, 234, 0.48) !important;
  background: rgba(8, 28, 34, 0.74) !important;
  background-image: none !important;
  box-shadow: 0 0 16px rgba(102, 236, 224, 0.14) !important;
  color: #f0fefa !important;
}

html[data-ui-shell="mobile"] #about .about-rss-copy strong,
html[data-shell="mobile"] #about .about-rss-copy strong {
  color: #f0fefa !important;
}

html[data-ui-shell="mobile"] #about .about-rss-copy small,
html[data-shell="mobile"] #about .about-rss-copy small {
  color: rgba(196, 236, 232, 0.84) !important;
}

/* Share Tools SVG glow, Games cloud banner & Chatroom avatar presentation on Mobile */
html[data-ui-shell="mobile"] #games #pond-games-cloud-banner,
html[data-shell="mobile"] #games #pond-games-cloud-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 12px 8px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  border: 1px dashed rgba(164, 236, 228, 0.44) !important;
  background: rgba(8, 30, 36, 0.72) !important;
  color: #c8f6f0 !important;
  font-size: 12px !important;
  line-height: 1.38 !important;
}

html[data-ui-shell="mobile"] #chatroom .pond-chat-avatar,
html[data-shell="mobile"] #chatroom .pond-chat-avatar {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
  filter: brightness(1.28) drop-shadow(0 0 6px rgba(154, 246, 236, 0.58)) !important;
}

/* --- Item 4: Shared Unclipped Titlebar, Mobile Appbar, Card Headings & Tool Icons (Desktop + Mobile) --- */
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(.xp-window, #welcome-modal, #video-modal, #account-popover) :is(.window-titlebar, .window-titlebar > span, .window-titlebar > span > span, .window-titlebar .title-icon, .window-titlebar .welcome-title-icon),
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(.mobile-appbar, .mobile-route-copy, .mobile-route-copy span, .mobile-route-copy strong, #mobile-route-title),
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(.resource-card, .game-card, .article-card, .video-card) :is(h2, h3, .card-title, .resource-main, .game-card-head),
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#resource-list .resource-card, #game-list .game-card) {
  overflow: visible !important;
}

/* --- Item 4: Mobile #welcome-modal Full Dark CRT Parity (No White Bottom Fade, Centered Above Dock) --- */
html[data-ui-shell="mobile"] #welcome-modal .welcome-window::before,
html[data-ui-shell="mobile"] #welcome-modal .welcome-window::after,
html[data-shell="mobile"] #welcome-modal .welcome-window::before,
html[data-shell="mobile"] #welcome-modal .welcome-window::after {
  display: none !important;
  content: none !important;
}

html[data-ui-shell="mobile"] #welcome-modal {
  align-items: center !important;
  justify-content: center !important;
  padding:
    max(16px, var(--mobile-safe-top, env(safe-area-inset-top, 0px)))
    max(10px, var(--mobile-safe-right, env(safe-area-inset-right, 0px)))
    max(16px, calc(var(--mobile-safe-bottom, env(safe-area-inset-bottom, 0px)) + 12px))
    max(10px, var(--mobile-safe-left, env(safe-area-inset-left, 0px))) !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"] #welcome-modal .xp-window.welcome-window,
html[data-shell="mobile"] #welcome-modal .xp-window.welcome-window {
  width: min(640px, 100%) !important;
  max-height: calc(var(--mobile-viewport-height, 100dvh) - var(--mobile-safe-top, 0px) - var(--mobile-safe-bottom, 0px) - 32px) !important;
  padding: 14px 16px 22px !important;
  border-radius: 18px !important;
  background: rgba(6, 20, 24, 0.95) !important;
  border: 1.5px solid rgba(202, 252, 244, 0.78) !important;
  box-shadow: 0 0 34px rgba(114, 244, 232, 0.30), 0 0 54px rgba(212, 138, 248, 0.20) !important;
  color: #f0fefa !important;
}

/* --- Item 3 & Item 6: Full Desktop + Mobile ID-Specificity Parity & Continuous Monotonic Edge Boost --- */
html[data-ui-shell="mobile"] .topbar-actions {
  border-color: rgba(164, 234, 230, 0.28) !important;
  background: rgba(8, 26, 32, 0.48) !important;
}

html[data-ui-shell="mobile"] .xp-topbar :is(.brand-button, .mobile-home-button, .account-button, .mobile-language-cycle, .welcome-open) {
  color: #f0fefa !important;
}

:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #knowledge-list, #videos, #video-list, #resources, #resource-list, #games, #game-list, #chatroom, #about, #welcome-modal, #video-modal, #account-popover, #article-detail, #transfer-app, .xp-topbar) .crt-glass-btn.glass-primary.crt-glass-liquid-pilot,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) .crt-glass-btn.glass-primary.crt-glass-liquid-pilot {
  border-style: solid !important;
  border-width: 1px !important;
  border-color: rgba(164, 234, 230, 0.36) !important;
  background: rgba(14, 34, 40, 0.62) !important;
  background-image: none !important;
  color: #f0fefa !important;
  box-shadow:
    inset 0 1px 0 rgba(226, 252, 250, 0.42),
    inset 0 -1px 0 rgba(78, 206, 200, 0.20),
    inset 0 0 10px rgba(114, 226, 220, 0.08) !important;
  transform: translate3d(0, var(--cg-press-y, 0px), 0) scale(var(--cg-press-scale, 1)) !important;
}

:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge-categories, #video-categories) button.active.crt-glass-btn.glass-primary.crt-glass-liquid-pilot,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover :is(.account-mode-button.is-active, .account-primary-action, button[type="submit"]).crt-glass-btn.glass-primary.crt-glass-liquid-pilot {
  background: rgba(18, 76, 82, 0.88) !important;
  border-color: rgba(136, 252, 226, 0.82) !important;
}

:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #knowledge-list, #videos, #video-list, #resources, #resource-list, #games, #game-list, #chatroom, #about, #welcome-modal, #video-modal, #account-popover, #article-detail, #transfer-app, .xp-topbar) .crt-glass-btn.crt-glass-liquid-pilot:is(.is-glass-hovered, .is-glass-held, .is-glass-waving, .is-glass-rim-catch),
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#knowledge, #knowledge-list, #videos, #video-list, #resources, #resource-list, #games, #game-list, #chatroom, #about, #welcome-modal, #video-modal, #account-popover, #article-detail, #transfer-app, .xp-topbar) .crt-glass-btn.crt-glass-liquid-pilot:is(.is-glass-hovered, .is-glass-held, .is-glass-waving, .is-glass-rim-catch):hover,
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) .crt-glass-btn.crt-glass-liquid-pilot:is(.is-glass-hovered, .is-glass-held, .is-glass-waving, .is-glass-rim-catch),
:is(html[data-pond-mode], html[data-ui-shell="mobile"], html[data-shell="mobile"]) .crt-glass-btn.crt-glass-liquid-pilot:is(.is-glass-hovered, .is-glass-held, .is-glass-waving, .is-glass-rim-catch):hover {
  border-style: solid !important;
  border-width: 1px !important;
  border-color: rgba(
    calc(164 + 34 * var(--cg-edge-boost, 0.85)),
    calc(234 + 18 * var(--cg-edge-boost, 0.85)),
    calc(230 + 18 * var(--cg-edge-boost, 0.85)),
    calc(0.36 + 0.52 * var(--cg-edge-boost, 0.85))
  ) !important;
  box-shadow:
    inset 0 1px calc(1px + 7px * var(--cg-edge-boost, 0.85)) rgba(226, 252, 250, calc(0.42 - 0.06 * var(--cg-edge-boost, 0.85))),
    inset 0 -1px calc(1px + 5px * var(--cg-edge-boost, 0.85)) rgba(78, 206, 200, calc(0.20 + 0.14 * var(--cg-edge-boost, 0.85))),
    inset 0 0 10px rgba(114, 226, 220, calc(0.08 + 0.14 * var(--cg-edge-boost, 0.85))) !important;
}

/* --- Item 5: Zero-Layout-Shift Card & Recent-Update Link Stroke Parity on Mobile (0px shift!) --- */
:is(html[data-pond-mode="knowledge"], html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge-list .article-card.crt-glass-btn.glass-card,
:is(html[data-pond-mode="knowledge"], html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge-list .article-card.crt-glass-btn.glass-card:is(.is-glass-hovered, .is-glass-held, .is-glass-waving, .is-glass-rim-catch),
:is(html[data-pond-mode="knowledge"], html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge-list .article-card.crt-glass-btn.glass-card:is(.is-glass-hovered, .is-glass-held, .is-glass-waving, .is-glass-rim-catch):hover {
  border-top: 0 solid transparent !important;
  border-left: 0 solid transparent !important;
  border-right: 0 solid transparent !important;
  border-bottom: 1px dotted rgba(176, 230, 224, 0.26) !important;
  border-radius: 8px !important;
}

:is(html[data-pond-mode="knowledge"], html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge-list .article-card.crt-glass-btn.glass-card:is(.is-glass-hovered, .is-glass-held, .is-glass-waving, .is-glass-rim-catch),
:is(html[data-pond-mode="knowledge"], html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge-list .article-card.crt-glass-btn.glass-card:is(.is-glass-hovered, .is-glass-held, .is-glass-waving, .is-glass-rim-catch):hover {
  box-shadow:
    inset 0 0 0 1px rgba(188, 250, 244, calc(0.32 + 0.56 * var(--cg-edge-boost, 0.85))),
    inset 0 1px 6px rgba(210, 248, 248, calc(0.12 + 0.16 * var(--cg-edge-boost, 0.85))) !important;
}

:is(html[data-pond-mode="welcome"], html[data-ui-shell="mobile"], html[data-shell="mobile"]) #welcome-modal #recent-updates a.recent-update-link.crt-glass-btn,
:is(html[data-pond-mode="welcome"], html[data-ui-shell="mobile"], html[data-shell="mobile"]) #welcome-modal #recent-updates a.recent-update-link.crt-glass-btn:is(.is-glass-hovered, .is-glass-held, .is-glass-waving, .is-glass-rim-catch) {
  border-width: 1px !important;
  border-style: solid !important;
  border-color: transparent !important;
}

/* --- Item 8: Quiet Launch Icons on Mobile Home & Restored 6-Route Mobile Dock (Zero Tap Flash!) --- */
html[data-ui-shell="mobile"] .desktop-icons .desktop-icon,
html[data-ui-shell="mobile"] .desktop-icons .desktop-icon:where(:hover, :active, :focus, .is-hovered, .is-active, .is-ui-pressed),
html[data-shell="mobile"] .desktop-icons .desktop-icon,
html[data-shell="mobile"] .desktop-icons .desktop-icon:where(:hover, :active, :focus, .is-hovered, .is-active, .is-ui-pressed) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

html[data-ui-shell="mobile"] .desktop-icons .desktop-icon:focus-visible,
html[data-shell="mobile"] .desktop-icons .desktop-icon:focus-visible {
  outline: 2px solid var(--crt-glass-rim, #72C9C3) !important;
  outline-offset: 2px !important;
}

html[data-ui-shell="mobile"] .xp-taskbar :is(.start-button, .taskbar-tabs button),
html[data-ui-shell="mobile"] .xp-taskbar :is(.start-button, .taskbar-tabs button):where(:hover, :active, :focus, .is-hovered, .is-active, .is-ui-pressed),
html[data-shell="mobile"] .xp-taskbar :is(.start-button, .taskbar-tabs button),
html[data-shell="mobile"] .xp-taskbar :is(.start-button, .taskbar-tabs button):where(:hover, :active, :focus, .is-hovered, .is-active, .is-ui-pressed) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* --- r104: Mobile 44px Touch Target Floor & Responsive Card/Chat Containment Across All Mobile Viewports --- */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(body, #main-content#knowledge#knowledge-list) :is(.close-button, .mobile-home-button, .card-action, .xp-button, .chat-send-button, .about-social-link, [data-account-toggle], [data-open-welcome], .welcome-open, .resource-details > summary, .game-secondary-details > summary, .chat-room-help-trigger, #video-categories button, #knowledge-categories .category-button, #video-list .video-card button:not(.video-thumb), #game-list .game-card .card-action, #knowledge-list .article-card .card-action) {
  min-width: 44px !important;
  min-height: 44px !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(body, #main-content#knowledge#knowledge-list) :is(.close-button, .account-close-button),
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(body, #main-content#knowledge#knowledge-list) :is(.close-button, .account-close-button):where(:hover, :focus-visible, :active) {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(body, #main-content#knowledge#knowledge-list) :is(.about-social-link, .chat-room-help-trigger) {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  flex: 0 0 44px !important;
}

/* Mobile Games & Tools Card Containment (Portrait + 844x390 Landscape) */
html[data-ui-shell="mobile"][data-pond-mode] #game-list .game-card,
html[data-ui-shell="mobile"][data-pond-mode] #game-list .game-card:nth-child(4),
html[data-ui-shell="mobile"][data-pond-mode] #game-list .game-card:nth-child(5) {
  grid-column: auto !important;
  grid-template-columns: 84px minmax(0, 1fr) !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-card,
html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-main,
html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-details,
html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-facts {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-fact {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
}

/* Mobile Chatroom Header & Composer Geometry (Portrait + 844x390 Landscape) */
html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-header {
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 6px 12px !important;
  gap: 6px 8px !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-nickname-row,
html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-status {
  flex-wrap: wrap !important;
  white-space: normal !important;
  width: auto !important;
  justify-content: flex-start !important;
  gap: 6px 8px !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-compose {
  width: 100% !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-input-shell {
  width: 100% !important;
  padding: 6px 8px 6px 14px !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chat-send-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 64px !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-counter {
  position: static !important;
  margin: 0 4px !important;
}

@media (orientation: landscape) and (max-height: 520px) and (min-width: 521px) {
  html[data-ui-shell="mobile"][data-pond-mode] #resource-list,
  html[data-ui-shell="mobile"][data-pond-mode] #game-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 8px 12px 16px !important;
    gap: 12px !important;
  }
}

/* ============================================================
   r105: Real-Phone Full Single-Column Responsive Overhaul (360/390/430),
         Top-Bar Hit-Zone Separation (Spring Season vs Welcome vs Login),
         Mobile Home 3x2 Icon Grid, Compact Single-Screen Tools List,
         Full-Width Article Reader & Chatroom Input, and Restored Dock Animation
   ============================================================ */

/* --- 1. Top-Bar & Home Hit-Zone Separation (Spring Season Unblocked + Login ID Clickable) --- */
html[data-ui-shell="mobile"][data-pond-mode] .site-shell > header [data-open-welcome],
html[data-shell="mobile"][data-pond-mode] .site-shell > header [data-open-welcome] {
  position: fixed !important;
  top: 8px !important;
  left: 12px !important;
  right: auto !important;
  width: 148px !important;
  min-width: 148px !important;
  max-width: 42vw !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 92 !important;
}

/* Disable welcome trigger pointer capture off Home or when a modal/popover is active */
html[data-ui-shell="mobile"][data-pond-mode] body:not([data-route="home"]) .site-shell > header [data-open-welcome],
html[data-pond-mode="welcome"] .site-shell > header [data-open-welcome],
html[data-pond-mode]:has(#account-popover:not([hidden])) .site-shell > header [data-open-welcome] {
  pointer-events: none !important;
}

/* Position real [data-account-toggle] over the Pond bottom-left ID button so both canvas taps
   and direct DOM [data-account-toggle] clicks work seamlessly without being collapsed/unreachable */
html[data-pond-mode="home"] .site-shell > header [data-account-toggle] {
  position: fixed !important;
  left: max(16px, calc(6.8vw - 12px)) !important;
  bottom: max(14px, calc(6.5vh - 22px)) !important;
  top: auto !important;
  right: auto !important;
  width: 54px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 92 !important;
}

html[data-ui-shell="mobile"][data-pond-mode] body[data-route="home"] .site-shell > header [data-account-toggle],
html[data-shell="mobile"][data-pond-mode] body[data-route="home"] .site-shell > header [data-account-toggle] {
  position: fixed !important;
  left: 6.5% !important;
  top: calc(91.2% - 22px) !important;
  bottom: auto !important;
  right: auto !important;
  width: 136px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 92 !important;
}

@media (orientation: landscape) and (max-height: 520px) and (min-width: 521px) {
  html[data-ui-shell="mobile"][data-pond-mode] body[data-route="home"] .site-shell > header [data-account-toggle],
  html[data-shell="mobile"][data-pond-mode] body[data-route="home"] .site-shell > header [data-account-toggle] {
    left: 5.5% !important;
    top: calc(88.5% - 22px) !important;
    bottom: auto !important;
  }
}

html[data-ui-shell="mobile"][data-pond-mode] #account-popover:not([hidden]),
html[data-shell="mobile"][data-pond-mode] #account-popover:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  transform: none !important;
  width: min(358px, calc(100% - 24px)) !important;
  max-width: calc(100% - 24px) !important;
  height: fit-content !important;
  max-height: calc(var(--mobile-viewport-height, 100dvh) - var(--mobile-safe-top, 0px) - var(--mobile-safe-bottom, 0px) - 24px) !important;
  z-index: 160 !important;
}

/* Align Mobile Home DOM .desktop-icons to the exact 3-col x 2-row Pond icon grid
   and disable pointer-events so #pond-desktop-canvas handles all 4 seasons + 6 icons + ripples */
html[data-ui-shell="mobile"][data-pond-mode] #home .desktop-intro,
html[data-shell="mobile"][data-pond-mode] #home .desktop-intro {
  display: none !important;
  pointer-events: none !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #home .desktop-icons,
html[data-shell="mobile"][data-pond-mode] #home .desktop-icons {
  position: fixed !important;
  top: 13% !important;
  left: 5% !important;
  right: 5% !important;
  bottom: auto !important;
  height: 37% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 8px 6px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- 3. Knowledge Article Reader (#article-detail) Mobile Single-Column Full-Width Switch --- */
html[data-pond-mode="article"] #knowledge #knowledge-list,
html[data-pond-mode="article"] #knowledge #knowledge-categories,
html[data-pond-mode="article"] #knowledge #knowledge-searchbar,
html[data-ui-shell="mobile"] #knowledge .folder-layout.is-reading #knowledge-list,
html[data-ui-shell="mobile"] #knowledge .folder-layout.is-reading #knowledge-categories {
  display: none !important;
}

html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-body {
  font-size: 16px !important;
  line-height: 1.72 !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

html[data-ui-shell="mobile"][data-pond-mode="article"] [data-article-scroll-top]:not([hidden]) {
  position: fixed !important;
  right: 22px !important;
  bottom: max(22px, calc(var(--mobile-safe-bottom, env(safe-area-inset-bottom, 0px)) + 18px)) !important;
  left: auto !important;
  top: auto !important;
  min-width: 44px !important;
  min-height: 44px !important;
  z-index: 48 !important;
}

@media (orientation: portrait) {
  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 10px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 8px 10px 28px !important;
    box-sizing: border-box !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-reader-sidebar {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    border-right: none !important;
    border-bottom: 1px dotted rgba(176, 230, 224, 0.28) !important;
    padding: 0 0 8px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-reader-sidebar > .article-back-button {
    position: static !important;
    align-self: flex-start !important;
    width: auto !important;
    min-height: 44px !important;
    padding: 7px 14px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-toc > p,
  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-toc-tip {
    display: none !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-toc {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-toc-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 6px !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-left: none !important;
    padding: 2px 18px 8px 2px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-toc-list .article-toc-link {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: min(72vw, 250px) !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 7px 10px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail .article-detail-card,
  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-detail-card {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 6px 6px 20px !important;
    box-sizing: border-box !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail .article-detail-head,
  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-detail-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
    box-sizing: border-box !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail #article-detail-meta,
  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail #article-detail-title,
  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(19px, 5.4vw, 23px) !important;
    line-height: 1.28 !important;
    margin: 4px 0 !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail #article-detail-summary,
  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail #article-detail-body,
  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-summary,
  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-body {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-height: 540px) and (orientation: portrait) {
  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-reader-sidebar {
    grid-template-columns: minmax(124px, 40%) minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    gap: 6px !important;
    padding: 0 0 4px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-reader-sidebar > .article-back-button {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    padding-inline: 8px !important;
    font-size: 12px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-toc {
    grid-column: 2 !important;
    grid-row: 1 !important;
    max-height: 82px !important;
    overflow: hidden !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-toc-list {
    max-height: 80px !important;
    padding: 0 18px 8px 0 !important;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (min-width: 521px) {
  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail {
    display: grid !important;
    grid-template-columns: 172px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 8px 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 8px 8px 28px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-reader-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: sticky !important;
    top: 8px !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 8px !important;
    height: 248px !important;
    max-height: 248px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 8px 0 0 !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-toc > p,
  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-toc-tip {
    display: none !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-toc {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-toc-list {
    display: grid !important;
    gap: 4px !important;
    height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 4px 18px 28px 4px !important;
    border-left: none !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] #article-detail-toc-list .article-toc-link {
    width: 100% !important;
    max-width: none !important;
    min-height: 44px !important;
    white-space: normal !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode="article"] .article-detail-card {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: auto !important;
    overflow: visible !important;
    padding: 8px 10px 20px !important;
  }
}

/* --- 4. Chatroom Input Row Full-Width Fix (#chat-message-input) --- */
html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-compose {
  display: block !important;
  width: 100% !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-input-shell {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  gap: 8px !important;
  padding: 4px 6px 4px 14px !important;
  border-radius: 999px !important;
  border: 1.4px solid rgba(190, 246, 240, 0.58) !important;
  background: rgba(4, 18, 22, 0.78) !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #chatroom #chat-message-input {
  flex: 1 1 0% !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 68px !important;
  padding: 10px 4px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  color: #f0fefa !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chatroom-counter {
  flex: 0 0 auto !important;
  position: static !important;
  margin: 0 4px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

html[data-ui-shell="mobile"][data-pond-mode] #chatroom .chat-send-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 68px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* --- 5. Tools List (#resources) Compact Single-Screen Layout & Hidden Category Gap Fix --- */
html[data-pond-mode="resources"] #resource-categories[hidden],
html[data-pond-mode="resources"] #resource-categories:empty,
html[data-ui-shell="mobile"] #resource-categories[hidden],
html[data-ui-shell="mobile"] #resource-categories:empty {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (orientation: portrait) {
  html[data-ui-shell="mobile"][data-pond-mode] #resources #resource-list,
  html[data-ui-shell="mobile"][data-pond-mode] #resource-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    padding: 2px 10px 10px !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #resources #resource-list > .resource-card,
  html[data-ui-shell="mobile"][data-pond-mode] #resource-list > .resource-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "main main"
      "tags action" !important;
    align-items: center !important;
    gap: 4px 8px !important;
    padding: 7px 10px !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    flex: 0 0 auto !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #resources #resource-list .resource-card .resource-main,
  html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-card .resource-main {
    grid-area: main !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-height: 0 !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #resources #resource-list .resource-card > p,
  html[data-ui-shell="mobile"][data-pond-mode] #resources #resource-list .resource-card .resource-main > p,
  html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-card > p,
  html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-card .resource-main > p {
    min-height: 0 !important;
    font-size: 11.8px !important;
    line-height: 1.32 !important;
    margin: 0 !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #resources #resource-list .resource-card .resource-details,
  html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-card .resource-details {
    margin: 0 !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #resources #resource-list .resource-card .resource-details > summary,
  html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-card .resource-details > summary {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #resources #resource-list .resource-card > .card-action,
  html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-card > .card-action {
    grid-area: action !important;
    width: auto !important;
    min-width: 96px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html[data-ui-shell="mobile"][data-pond-mode] #resources #resource-list .resource-tags,
  html[data-ui-shell="mobile"][data-pond-mode] #resource-list .resource-tags {
    grid-area: tags !important;
    gap: 3px 5px !important;
    margin: 0 !important;
  }
}

/* --- 6. Account Login/Register Popover (#account-popover) & Video Modal (#video-modal) Mobile Polish (MOBILE ONLY) --- */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(#account-popover, #account-popover:not([hidden]), #account-popover form) {
  max-height: none !important;
  height: fit-content !important;
  overflow: visible !important;
}

/* Strictly hide [hidden] sections on mobile and never show login form when signed in */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover :is(#account-form[hidden], .account-signed-in[hidden], .account-field[hidden], .account-field-error[hidden], [data-account-retry-check][hidden]),
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover[data-account-state="signed-in"] #account-form,
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover:not([data-account-state="signed-in"]) .account-signed-in {
  display: none !important;
}

/* Streamline verbose explanatory copy on mobile while preserving error feedback */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover :is(#account-mode-hint, .account-mode-hint, .account-form-hint, .account-helper-copy, .account-note:not(.is-error)),
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-recovery-actions:not(:has(:not([hidden]))) {
  display: none !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover #account-form-note.is-error:not([hidden]) {
  display: block !important;
  margin: 10px 0 0 !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  border: 1px dashed rgba(255, 138, 138, 0.65) !important;
  background: rgba(44, 12, 16, 0.78) !important;
  color: #ffd8d8 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-popover-header {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(182, 238, 232, 0.34) !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover #account-popover-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  color: #f0fefa !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-close-button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  border: 1px dashed rgba(185, 235, 230, 0.48) !important;
  background: rgba(6, 22, 26, 0.62) !important;
  background-image: none !important;
  color: #eefcf9 !important;
  box-shadow: none !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-mode-switch {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 4px !important;
  border-radius: 999px !important;
  border: 1.2px dashed rgba(176, 236, 228, 0.44) !important;
  background: rgba(4, 16, 20, 0.72) !important;
  box-shadow: none !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-mode-button {
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(206, 240, 236, 0.82) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-mode-button.is-active {
  border-color: #88fce2 !important;
  background: rgba(18, 86, 90, 0.92) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(102, 236, 226, 0.24) !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-signed-in:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-signed-email {
  margin: 0 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  border: 1.2px dashed rgba(182, 238, 232, 0.44) !important;
  background: rgba(4, 18, 22, 0.78) !important;
  color: #f0fefa !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover :is(#account-form:not([hidden]), .account-field:not([hidden]), #account-form:not([hidden]) label:not([hidden])) {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover #account-form:not([hidden]) {
  gap: 10px !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-control-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-control-row > input,
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover #account-form input:not([type="checkbox"]):not([type="radio"]) {
  flex: 1 1 0% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-control-row > .account-password-toggle {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 88px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1.2px dashed rgba(176, 236, 228, 0.48) !important;
  background: rgba(8, 28, 34, 0.78) !important;
  background-image: none !important;
  color: #dffaf6 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-form-actions,
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover .account-signed-in .account-actions {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #account-popover :is(button[type="submit"], #account-submit-button, #account-form [data-account-submit], [data-account-logout], .account-primary-action, .account-danger-action, .account-actions .account-button) {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  max-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  box-sizing: border-box !important;
}

html[data-ui-shell="mobile"] #video-modal .window-titlebar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

html[data-ui-shell="mobile"] #video-modal .window-titlebar > span {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

html[data-ui-shell="mobile"] #video-modal #modal-title {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 15px !important;
}

html[data-ui-shell="mobile"] #video-modal .window-controls {
  flex: 0 0 auto !important;
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
}

/* Mobile window titlebars: ONLY keep .close-button; remove the dotted-square maximize button and any non-close titlebar button */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(
  #video-window-maximize,
  #video-modal .window-controls .maximize-button,
  .window-titlebar .maximize-button,
  .window-titlebar .minimize-button,
  .window-titlebar .titlebar-button:not(.close-button),
  .window-titlebar button:not(.close-button)
) {
  display: none !important;
}

/* --- 7. Quick Transfer Room Inner Cards Dark CRT Parity (#transfer-room) --- */
html[data-pond-mode="resources"] #transfer-app :is(.transfer-room-toolbar, .transfer-upload-zone, .transfer-tasks, .transfer-text-form, .transfer-compose, .transfer-item, .transfer-quota-card, .transfer-feedback, #transfer-feedback) {
  background: rgba(8, 28, 34, 0.84) !important;
  background-image: none !important;
  border: 1px dashed rgba(164, 236, 228, 0.42) !important;
  border-radius: 12px !important;
  color: #eefcf9 !important;
  box-shadow: none !important;
}

/* ============================================================
   r112: Mobile Chatroom Help Popover (#chat-private-room-help-popover) &
         Private Room Safety Hint Popover In-Window Containment (Mobile Scope Only)
   ============================================================ */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chatroom-header {
  position: relative !important;
  overflow: visible !important;
  z-index: 30 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chatroom-status,
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-room-help {
  position: static !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom :is(#chat-private-room-help-popover, .chat-room-help-popover) {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  top: calc(100% + 6px) !important;
  bottom: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 24px) !important;
  transform: none !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  font-size: 12.5px !important;
  line-height: 1.58 !important;
  text-align: left !important;
  z-index: 45 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-room-help:is(:hover, :focus-within, :has(.chat-room-help-trigger:focus), :has(.chat-room-help-trigger:focus-visible)) :is(#chat-private-room-help-popover, .chat-room-help-popover) {
  display: block !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel .chat-private-safety > small {
  background: rgba(6, 24, 28, 0.96) !important;
  border: 1.2px solid rgba(176, 240, 234, 0.56) !important;
  color: #eefcf9 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* ============================================================
   r113: Site-Wide Mobile Flying Windows & Floating Elements Containment
         (#chat-unread-button, #chat-sync-status, #about-social-links,
          #knowledge .folder-layout, #resources #resource-list,
          #transfer-back-to-resources — Strictly Mobile Scope Only)
   ============================================================ */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom :is(#chat-unread-button, .chat-unread-button) {
  position: absolute !important;
  left: auto !important;
  right: 14px !important;
  bottom: 132px !important;
  z-index: 20 !important;
  width: auto !important;
  min-width: 44px !important;
  max-width: min(260px, calc(100% - 28px)) !important;
  padding: 8px 14px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  text-align: center !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom #chat-sync-status {
  display: inline !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  line-height: 1.4 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #about :is(.profile-info, .profile-info dl, .about-contact-row, .profile-contact-links) {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #about #about-social-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge .folder-layout {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #resources #resource-list {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #resources #transfer-app :is(#transfer-back-to-resources, .transfer-back-button) {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  flex: 0 0 44px !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #resources #transfer-app .xp-button:not(#transfer-back-to-resources):not(.transfer-back-button) {
  min-width: 0 !important;
  padding: 6px 12px !important;
  white-space: nowrap !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge :is(#knowledge-list, #article-detail-meta) :is(.meta-row .tag, .meta-row .article-tag, .tag, .article-tag) {
  height: auto !important;
  min-height: 24px !important;
  max-height: none !important;
  line-height: 1.38 !important;
  padding: 5px 11px !important;
  white-space: normal !important;
}

/* ============================================================
   r114: Mobile Chatroom Private-Room Expanded Row & Soft-Keyboard Avoidance
         1. Clean inset margins & balanced padding on #chat-private-room-form
            so 44px controls never overflow panel bottom into #chat-message-list
         2. Circular dashed 44x44 ⓘ button (.chat-private-safety > summary)
            matching ? help trigger (no square box or edge-jamming)
         3. Unmasked .chatroom-log top edge & dedicated inner scroll ownership
            so expanding private row never masks/covers messages ("复验发送")
         4. Visual-viewport anchored .site-shell > main & compact keyboard-open
            chrome so titlebar stays visible at top and message log stays tall
         (Strictly Mobile Scope Only — PC Desktop 100% untouched)
   ============================================================ */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"])[data-pond-mode] .site-shell > main {
  top: var(--mobile-viewport-offset-top, 0px) !important;
  left: var(--mobile-viewport-offset-left, 0px) !important;
  right: 0 !important;
  bottom: auto !important;
  height: var(--mobile-viewport-height, 100dvh) !important;
  max-height: var(--mobile-viewport-height, 100dvh) !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom > .xp-window.chatroom-window {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) .page:not(#home) > .xp-window > .window-titlebar {
  position: sticky !important;
  top: 0 !important;
  z-index: 35 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-room-help {
  margin-left: auto !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom:has(#chat-private-room-form:not([hidden])) .chatroom-status {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom:has(#chat-private-room-form:not([hidden])) #chat-sync-status {
  display: none !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel:not([hidden]) {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 6px !important;
  height: auto !important;
  min-height: 54px !important;
  max-height: none !important;
  margin: 6px 12px 4px !important;
  padding: 4px 10px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  z-index: 24 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel #chat-private-password {
  min-width: 0 !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel :is(#chat-private-room-submit, #chat-private-room-cancel) {
  min-width: 52px !important;
  width: auto !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 11px !important;
  font-size: 13px !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel .chat-private-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel .chat-private-safety {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  flex: 0 0 44px !important;
  margin: 0 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel .chat-private-safety > summary {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1.2px dashed rgba(182, 240, 234, 0.56) !important;
  background: rgba(8, 26, 30, 0.62) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #eefcf9 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel .chat-private-safety > summary::before,
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel .chat-private-safety > summary::after {
  display: none !important;
  content: none !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel .chat-private-safety > summary :is(.crt-glass-sheen-layer, .crt-glass-wave-layer) {
  border-radius: 999px !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chatroom-log {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  padding: 10px 12px !important;
}

@media (max-width: 760px) and (max-height: 720px) and (orientation: portrait) {
  :is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel:not([hidden]):has(.chat-private-safety[open]) {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 4px 10px !important;
  }

  :is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel .chat-private-safety[open] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
  }

  :is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel .chat-private-safety[open] > small {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-height: 44px !important;
    margin: 0 4px 0 0 !important;
    padding: 4px 8px !important;
  }
}

@media (min-height: 721px), (orientation: landscape) {
  :is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel :is(.chat-private-actions, .chat-private-safety) {
    position: static !important;
  }

  :is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel:not([hidden]):has(.chat-private-safety[open]) {
    padding-bottom: 64px !important;
  }

  :is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chat-private-room-panel .chat-private-safety[open] > small {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    top: 54px !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    z-index: 42 !important;
  }
}

/* ============================================================
   r115: Mobile Chatroom Input Focus & Soft-Keyboard Structural Stability
         1. Lock mobile root html/body to height: 100%; overflow: hidden so
            body's 100vh (100lvh) never makes the document vertically scrollable
            or lets input focus scroll window.scrollY / push titlebar off-screen
         2. Enforce font-size: 16px on mobile text inputs/textareas so iOS Safari
            never triggers focus auto-zoom (pageScale > 1.02) or viewport pan
         3. Remove all r114 [data-mobile-keyboard="open"] padding jumps &
            .chatroom-nickname-row display:none rules so window top, titlebar,
            name row, status bar & message-list top stay 100% frozen in place
         4. Guard portrait phones (max-width: 520px) from mobile-ios-shell.css
            landscape media queries when a tall IME keyboard makes height < width
         (Strictly Mobile Scope Only — PC Desktop 100% untouched)
   ============================================================ */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) body {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(
  #chat-message-input,
  #chat-private-password,
  #chat-nickname-input,
  #knowledge-search-input,
  #account-popover input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  #transfer-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  #transfer-app textarea
) {
  font-size: 16px !important;
}

@media (max-width: 520px) {
  :is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chatroom-header {
    border-right: 0 !important;
    border-bottom: 1px dotted rgba(182, 236, 230, 0.28) !important;
    padding: 6px 12px !important;
  }

  :is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom .chatroom-nickname-row {
    display: flex !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* ==========================================================================
   Ark Pixel Font — Desktop Site-Wide Rollout v1 (r120)
   Font: Ark Pixel Font 12px Proportional (TakWolf/ark-pixel-font, SIL OFL 1.1)
   Scope: Desktop ONLY (html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"])).
   Covers ALL desktop windows & modals (Knowledge, Article, Chatroom, Videos,
   Games, Tools/Resources, Quick Transfer, About, Account, Welcome, Blog) +
   Pond Home canvas (ui-overlay.mjs). Mobile remains completely untouched.
   Scale: Large Titles 24px, Body/Prose/Cards/Chat 16px, Tags/Buttons/Meta/Time 12px.
   ========================================================================== */
@font-face {
  font-family: "Ark Pixel";
  src: url("/assets/fonts/ark-pixel/ark-pixel-12px-proportional-zh_hans.otf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ark Pixel";
  src: url("/assets/fonts/ark-pixel/ark-pixel-12px-proportional-latin.otf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base font family & crisp pixel rendering across all desktop windows & modals */
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) :is(
  body,
  .site-shell,
  .site-shell *,
  #welcome-modal,
  #welcome-modal *,
  #video-modal,
  #video-modal *,
  #account-popover,
  #account-popover *
) {
  font-family: "Ark Pixel", "JetBrains Mono", monospace !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  -webkit-font-smoothing: none !important;
  text-rendering: optimizeSpeed !important;
}

/* Default 12px small UI baseline inside all desktop windows & modals */
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) :is(
  #knowledge,
  #videos,
  #resources,
  #games,
  #chatroom,
  #about,
  #blog,
  #welcome-modal,
  #video-modal,
  #account-popover
),
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) :is(
  #knowledge,
  #videos,
  #resources,
  #games,
  #chatroom,
  #about,
  #blog,
  #welcome-modal,
  #video-modal,
  #account-popover
) * {
  font-size: 12px !important;
  line-height: 20px !important;
}

/* Tier 1 — Large Titles: 24px (window titlebars, article main title & h1/h2, hero headings) */
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) :is(
  .window-titlebar > span,
  .window-titlebar > strong,
  .window-titlebar .window-title,
  .window-titlebar span:not(.window-icon):not(.crt-glass-label):not(.window-controls),
  #knowledge #article-detail-title,
  #knowledge #article-detail-body h1,
  #knowledge #article-detail-body h2,
  #knowledge #article-detail-body :is(h1, h2) *,
  #welcome-modal h2,
  #welcome-modal .welcome-title,
  #welcome-modal .welcome-hero-title,
  #about h2,
  #about .about-title,
  #video-modal h2,
  #video-modal .video-modal-title
) {
  font-size: 24px !important;
  line-height: 34px !important;
  letter-spacing: 0.03em !important;
}

html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) :is(
  .window-titlebar .window-close,
  .window-titlebar .window-close *,
  .window-titlebar .close-button,
  .window-titlebar .close-button *,
  .window-titlebar .titlebar-button,
  .window-titlebar .titlebar-button *,
  .window-titlebar .window-controls button,
  .window-titlebar .window-controls button *
) {
  font-size: 12px !important;
  line-height: 12px !important;
}

/* Tier 2 — Body, Prose, Card Titles/Summaries, Chat Messages & Inputs: 16px */
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) :is(
  #knowledge .article-card h2,
  #knowledge .article-card h3,
  #knowledge .article-card > p,
  #knowledge .article-card .article-summary,
  #videos .video-card h2,
  #videos .video-card h3,
  #videos .video-card p,
  #video-modal p,
  #resources .resource-card h2,
  #resources .resource-card h3,
  #resources .resource-card p,
  #resources .resource-details-copy,
  #transfer-app h2,
  #transfer-app h3,
  #transfer-app p,
  #transfer-app input,
  #transfer-app textarea,
  #games .game-card h2,
  #games .game-card h3,
  #games .game-card p,
  #games .game-secondary-details p,
  #chatroom .chat-message-text,
  #chatroom .chat-message-body,
  #chatroom .chat-message p,
  #chatroom .chat-system-message,
  #chatroom #chat-message-input,
  #chatroom #chat-nickname-input,
  #chatroom #chat-private-password,
  #about h3,
  #about .about-copy,
  #about li,
  #welcome-modal p,
  #welcome-modal li,
  #welcome-modal .welcome-update-title,
  #account-popover p,
  #account-popover input,
  #account-popover .account-status
) {
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: 0.02em !important;
}

html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) :is(
  #knowledge .article-card h2,
  #knowledge .article-card h3,
  #videos .video-card h2,
  #videos .video-card h3,
  #resources .resource-card h2,
  #resources .resource-card h3,
  #games .game-card h2,
  #games .game-card h3
) {
  color: #f0fffb !important;
}

html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-summary,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-summary *,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-summary::before {
  font-size: 16px !important;
  line-height: 26px !important;
  letter-spacing: 0.02em !important;
}

html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body p,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body li,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body blockquote,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body td,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body th,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body h3,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body h4,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body :is(p, li, blockquote, td, th, h3, h4) :is(strong, em, a, span, mark, del, b, i) {
  font-size: 16px !important;
  line-height: 28px !important;
  letter-spacing: 0.02em !important;
}

html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body code,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body pre,
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge #article-detail-body pre * {
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: 0.01em !important;
}

/* Tier 3 — Small UI: Tags, Buttons, Dates, Meta, TOC, Badges, Counters: 12px */
html[data-pond-mode]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) :is(
  .xp-button,
  .crt-glass-btn,
  button,
  summary,
  .category-button,
  .filter-button,
  .card-action,
  .tag,
  .article-tag,
  .badge,
  .filter-count,
  .meta-row,
  .meta-row *,
  .article-meta,
  .article-toc-link,
  .article-toc-tip,
  .article-toc-tip *,
  .knowledge-searchbar input,
  .knowledge-searchbar button,
  .chat-message-meta,
  .chat-message-meta *,
  .chat-message-author,
  .chat-message-time,
  .chat-sync-status,
  .chatroom-footer,
  .chatroom-footer *,
  .chat-room-help-popover,
  .chat-room-help-popover *,
  .welcome-update-date,
  .about-social-link,
  time,
  small,
  label
) {
  font-size: 12px !important;
  line-height: 18px !important;
}

html[data-pond-mode="article"]:not([data-ui-shell="mobile"]):not([data-shell="mobile"]) #knowledge .article-detail-card {
  width: 100% !important;
  justify-self: stretch !important;
}

/* ==========================================================================
   Ark Pixel Font — Full-Site Mobile Rollout v1 (r121)
   Font: Ark Pixel Font 12px Proportional (TakWolf/ark-pixel-font, SIL OFL 1.1)
   Reuses the single shared @font-face ("Ark Pixel") registered above.
   Scope: Mobile (:is(html[data-ui-shell="mobile"], html[data-shell="mobile"])) ONLY.
   Covers ALL windows & modals (#knowledge, #article-detail, #videos, #video-modal,
   #resources, #transfer-app, #games, #blog, #chatroom, #about, #welcome-modal,
   #account-popover). Desktop PC rules above remain completely untouched.
   Final 3-tier scale: Titles 24px | Body & Inputs 16px | Tags/Buttons/Time 12px.
   Preserves all r111-r115 containment, close-only titlebar, and keyboard fixes.
   ========================================================================== */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]),
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) body,
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(.xp-window, .modal, #account-popover, #transfer-app),
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(.xp-window, .modal, #account-popover, #transfer-app) * {
  font-family: "Ark Pixel", monospace !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  -webkit-font-smoothing: none !important;
  text-rendering: optimizeSpeed !important;
}

/* Tier 3 default baseline (12px / 18px) for tags, buttons, timestamps, metadata & controls */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(.xp-window, .modal, #account-popover, #transfer-app),
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(.xp-window, .modal, #account-popover, #transfer-app) * {
  font-size: 12px !important;
  line-height: 18px !important;
}

/* Tier 1 — Large Titles (24px) */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(
  .window-titlebar > span,
  .window-titlebar > span > span:not(.title-icon),
  #account-popover .account-popover-header strong,
  #knowledge #knowledge-list .article-card :is(h2, h2 a, h2 button, h3, h3 a, h3 button, .article-card-title, .article-card-title *),
  #knowledge #article-detail :is(#article-detail-title, .article-detail-head h2, #article-detail-body h1, #article-detail-body h2),
  #videos .video-card :is(h2, h3),
  #resources .resource-card :is(h2, h3),
  #transfer-app #transfer-app-title,
  #transfer-app #transfer-app-title > span,
  #games .game-card :is(h2, h3),
  #blog :is(h2, h3),
  #welcome-modal .welcome-main h2
) {
  font-size: 24px !important;
  line-height: 30px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  text-shadow: none !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(
  .window-titlebar > span,
  .window-titlebar > span > span:not(.title-icon),
  #account-popover .account-popover-header strong
) {
  line-height: 28px !important;
  letter-spacing: 0.04em !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge #article-detail :is(
  #article-detail-title,
  .article-detail-head h2,
  #article-detail-body h1,
  #article-detail-body h2
) {
  line-height: 32px !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(
  .window-titlebar .close-button,
  .window-titlebar .close-button *,
  #account-popover .close-button,
  #account-popover .close-button *,
  #account-popover .account-close-button,
  #account-popover .account-close-button *
) {
  font-size: 24px !important;
  line-height: 24px !important;
}

/* Tier 2 — Body Copy, Summaries, Chat Messages & Text Inputs (16px) */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(
  #knowledge #knowledge-list .article-card p,
  #knowledge #article-detail-summary,
  #knowledge #article-detail-summary *,
  #videos .video-card p,
  #videos .video-empty-copy,
  #video-modal .video-placeholder p,
  #video-modal .video-player-fallback-copy,
  #resources .resource-card p,
  #resources .resource-card .resource-description,
  #resources .resource-description,
  #resources .resource-details-copy,
  #resources .resource-details p,
  #resources .resource-details li,
  #resources .resource-empty-copy,
  #transfer-app p,
  #transfer-app .transfer-security-note,
  #transfer-app .transfer-login-copy h3,
  #transfer-app .transfer-room-toolbar strong,
  #transfer-app .transfer-upload-copy strong,
  #transfer-app .transfer-tasks h3,
  #transfer-app .transfer-feed :is(p, pre, .transfer-item-text),
  #games .game-card p,
  #games .game-secondary-details p,
  #games .game-secondary-details li,
  #blog .notepad-paper p,
  #blog .blog-card p,
  #chatroom .chat-bubble,
  #chatroom .chat-bubble *,
  #chatroom .chat-system-message,
  #chatroom #chat-private-room-help-popover,
  #chatroom .chat-private-safety > small,
  #about .about-copy,
  #about .profile-info dd:not(.profile-contact-links),
  #about .about-rss-copy strong,
  #welcome-modal .welcome-greeting-line,
  #welcome-modal .welcome-greeting-line *,
  #welcome-modal .welcome-note strong,
  #welcome-modal .welcome-note p,
  #welcome-modal .welcome-main h3,
  #welcome-modal .recent-panel h3,
  #welcome-modal .recent-panel h3 > span,
  #welcome-modal #recent-updates li :is(a, strong, .update-title),
  #account-popover .account-status,
  #account-popover .account-summary,
  #account-popover .account-note.is-error,
  .content-state-copy
) {
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

/* Article long-form body prose gets airy 26px line-height at 16px */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge #article-detail-body :is(
  p,
  li,
  blockquote,
  td,
  th,
  code,
  pre,
  strong,
  em,
  a,
  span,
  h3,
  h4
) {
  font-size: 16px !important;
  line-height: 26px !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge #article-detail-body :not(pre) > code {
  padding: 1px 5px !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge #article-detail-body :is(h3, h4) {
  color: #a8fff0 !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge #article-detail-body strong {
  color: #b4fff2 !important;
}

/* Collapsed article summary box calibrated for 2 lines of 16px/24px (no 3rd-line peek) */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge #article-detail-summary:not(.is-expanded) {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  max-height: 62px !important;
  box-sizing: border-box !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #knowledge #article-detail-summary.is-expanded {
  max-height: none !important;
}

/* Mobile text inputs stay at 16px (matches Body tier & preserves r115 anti-iOS-zoom) */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="search"],
  textarea
) {
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
}

/* Explicit Tier 3 lock (12px / 18px) on small UI nested inside Tier 1/2 containers */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) :is(
  .xp-button,
  .card-action,
  .category-button,
  .filter-count,
  .tag,
  .article-tag,
  .platform,
  .quick-link,
  .quick-link *,
  .more-button,
  .more-button *,
  .article-card-cta,
  .article-back-button,
  .article-summary-toggle,
  .article-copy-link,
  .article-toc-link,
  #article-detail-meta,
  #article-detail-meta *,
  .article-read-progress,
  .article-read-progress *,
  .meta-row,
  .meta-row *,
  .video-meta,
  .video-meta *,
  .resource-fact,
  .resource-details > summary,
  .game-secondary-details > summary,
  .transfer-project-version,
  .transfer-network-status,
  #transfer-draft-hint,
  #chatroom .chatroom-nickname-row,
  #chatroom .chatroom-nickname-row *,
  #chatroom #chat-private-room-form .xp-button,
  #chatroom .chatroom-status,
  #chatroom .chatroom-status :is(span:not(.chat-room-help-popover), button),
  #chatroom .chat-message-meta,
  #chatroom .chat-message-meta *,
  #chatroom .chatroom-counter,
  #chatroom .chatroom-counter *,
  #chatroom .chatroom-footer,
  #chatroom .chatroom-footer *,
  #chatroom .chat-unread-button,
  #about .profile-info dt,
  #about .about-rss-copy small,
  #welcome-modal .recent-panel h3 em,
  #welcome-modal #recent-updates li :is(.recent-update-summary, small, time),
  #account-popover label,
  #account-popover .account-button,
  #account-popover .account-button.account-primary,
  #account-popover .account-actions .account-button,
  #account-popover .account-mode-button
) {
  font-size: 12px !important;
  line-height: 18px !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

/* Preserve ? and ⓘ circular trigger glyphs centered cleanly at 16px inside 44x44 circles */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"]) #chatroom :is(
  .chat-room-help-trigger,
  .chat-private-safety > summary
) {
  font-size: 16px !important;
  line-height: 16px !important;
}

/* High-specificity locks for Tools card description (16px) & Welcome recent updates (16px / 12px) */
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"])[data-pond-mode] #resources #resource-list .resource-card .resource-main > p.resource-description,
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"])[data-pond-mode] #resources #resource-list .resource-card > p.resource-description {
  font-size: 16px !important;
  line-height: 24px !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"])[data-pond-mode] #welcome-modal .recent-panel #recent-updates li a.recent-update-link :is(strong, .update-title),
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"])[data-pond-mode] #welcome-modal .recent-panel #recent-updates li :is(a, strong, .update-title) {
  font-size: 16px !important;
  line-height: 24px !important;
}

:is(html[data-ui-shell="mobile"], html[data-shell="mobile"])[data-pond-mode] #welcome-modal .recent-panel #recent-updates li a.recent-update-link .recent-update-summary,
:is(html[data-ui-shell="mobile"], html[data-shell="mobile"])[data-pond-mode] #welcome-modal .recent-panel #recent-updates li :is(.recent-update-summary, small, time) {
  font-size: 12px !important;
  line-height: 18px !important;
}







