
/* mobile-restore.css */
/* Mobile layout restore: loaded after all legacy overrides. */

body .main-menu > .mobile-menu-clone {
  display: none !important;
}

@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body .container,
  body .main,
  body .main-inner,
  body .content-wrap,
  body .content,
  body .post-block,
  body .games-container,
  body .books-container,
  body .movies-container,
  body .bake-container,
  body .diary-wrapper,
  body .diary-container,
  body .gallery-container,
  body .album-wrapper,
  body .tag-cloud,
  body .tag-cloud-section,
  body .category-all-page {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  body .header,
  body .main {
    padding-left: 10px !important;
    padding-right: 10px !important;
    width: 100% !important;
  }

  body .header-inner,
  body .main-inner {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body .main-inner {
    display: block !important;
    overflow: visible !important;
  }

  body .content-wrap {
    margin: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body .sidebar,
  body .sidebar-inner,
  body .site-overview-wrap,
  body .site-author-widget,
  body .sidebar-panel,
  body .sidebar-toggle,
  body #sidebar-dimmer,
  body .post-toc-wrap,
  body .back-to-top {
    display: none !important;
  }

  body .header-inner {
    align-items: stretch !important;
    border-radius: 22px !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 12px !important;
  }

  body .site-brand-container,
  body .site-meta,
  body .brand {
    display: flex !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body .site-title {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .site-nav {
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  body .main-menu {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    justify-content: flex-start !important;
    list-style: none !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 4px !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }

  body .main-menu::-webkit-scrollbar {
    display: none !important;
  }

  body .main-menu > .menu-item,
  body .main-menu .menu-child > .menu-item {
    flex: 0 0 auto !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .main-menu > .mobile-menu-clone {
    display: block !important;
  }

  body .main-menu > .menu-item-has-children {
    display: none !important;
  }

  body .main-menu > .menu-item-has-children > a {
    display: none !important;
  }

  body .main-menu > .menu-item-has-children > .menu-child {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: contents !important;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
    pointer-events: auto !important;
    position: static !important;
    transform: none !important;
    visibility: visible !important;
  }

  body .main-menu > .menu-item > a,
  body .main-menu > .menu-item > .popup-trigger,
  body .main-menu .menu-child > .menu-item > a {
    align-items: center !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: #202938 !important;
    display: inline-flex !important;
    font-size: .84rem !important;
    font-weight: 760 !important;
    gap: 6px !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 11px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    width: auto !important;
  }

  body .main-menu > .menu-item > a:hover,
  body .main-menu > .menu-item > a:focus-visible,
  body .main-menu > .menu-item-active > a,
  body .main-menu > .menu-item > .popup-trigger:hover,
  body .main-menu > .menu-item > .popup-trigger:focus-visible,
  body .main-menu .menu-child > .menu-item > a:hover,
  body .main-menu .menu-child > .menu-item > a:focus-visible,
  body .main-menu .menu-child > .menu-item-active > a {
    background: #111 !important;
    border-color: #111 !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .14) !important;
    color: #fff !important;
    transform: none !important;
  }

  body .content.index,
  body .content-wrap > .content:not(.index),
  body .content.page.posts-expand,
  body .content.archive,
  body .content.category,
  body .content.tag,
  body .content.categories-page,
  body .books-container,
  body .movies-container,
  body .bake-container,
  body .diary-wrapper,
  body .diary-container,
  body .gallery-container,
  body .album-wrapper,
  body .games-container {
    border-radius: 22px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
  }

  body .content.index .post-block.post-card-preview,
  body .content.index .post-block.post-card-preview:nth-of-type(even),
  body.index .post-card-preview,
  body.index .post-card-preview:nth-of-type(even) {
    align-items: stretch !important;
    display: grid !important;
    grid-template-columns: minmax(120px, 40%) minmax(0, 1fr) !important;
    min-height: 148px !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  body .content.index .post-block.post-card-preview .post-card-cover,
  body.index .post-card-preview .post-card-cover {
    align-self: stretch !important;
    aspect-ratio: auto !important;
    flex: initial !important;
    height: auto !important;
    min-height: 148px !important;
    width: 100% !important;
  }

  body .content.index .post-block.post-card-preview .post-card-cover img,
  body.index .post-card-preview .post-card-cover img {
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
  }

  body .content.index .post-block.post-card-preview .post-card-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 12px !important;
  }

  body .content.index .post-card-preview .post-title {
    font-size: .96rem !important;
    line-height: 1.3 !important;
    margin: 0 0 6px !important;
  }

  body .content.index .post-card-preview .post-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    font-size: .72rem !important;
    gap: 2px 7px !important;
    line-height: 1.35 !important;
    margin: 0 0 6px !important;
  }

  body .content.index .post-card-preview .post-body {
    flex: 1 1 auto !important;
    font-size: .82rem !important;
    line-height: 1.5 !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  body .content.index .post-card-preview .post-body p {
    display: -webkit-box !important;
    margin: 0 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }

  body .content.index .post-card-preview .post-button {
    margin-top: 6px !important;
  }

  body .content.index .post-card-preview .post-button .btn {
    min-height: 28px !important;
    min-width: 76px !important;
    padding: 0 10px !important;
  }

  body .books-container .books-grid,
  body .books-wrapper .books-grid,
  body .movies-container .movies-grid,
  body .movies-wrapper .movies-grid {
    display: grid !important;
    gap: 10px 7px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  body .books-container .book-card,
  body .books-wrapper .book-card,
  body .movies-container .movie-card,
  body .movies-wrapper .movie-card {
    border-radius: 13px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  body .books-container .book-cover,
  body .books-wrapper .book-cover,
  body .movies-container .movie-poster,
  body .movies-wrapper .movie-poster {
    height: 0 !important;
    overflow: hidden !important;
    padding-bottom: 135% !important;
    position: relative !important;
    width: 100% !important;
  }

  body .books-container .book-cover img,
  body .books-wrapper .book-cover img,
  body .movies-container .movie-poster img,
  body .movies-wrapper .movie-poster img {
    height: 100% !important;
    inset: 0 !important;
    object-fit: cover !important;
    position: absolute !important;
    width: 100% !important;
  }

  body .books-container .book-title-overlay,
  body .movies-container .movie-title-overlay {
    font-size: .66rem !important;
    line-height: 1.18 !important;
    padding: 5px !important;
  }

  body .books-container .book-title-overlay h3,
  body .movies-container .movie-title-overlay h3 {
    display: -webkit-box !important;
    margin: 0 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body .books-container .book-buttons,
  body .books-wrapper .book-buttons,
  body .movies-container .movie-buttons,
  body .movies-wrapper .movie-buttons {
    box-sizing: border-box !important;
    display: grid !important;
    gap: 4px !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    grid-auto-flow: column !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 6px 4px !important;
    width: 100% !important;
  }

  body .books-container .book-buttons .btn,
  body .books-wrapper .book-buttons .btn,
  body .movies-container .movie-buttons .btn,
  body .movies-wrapper .movie-buttons .btn {
    box-sizing: border-box !important;
    font-size: .56rem !important;
    height: 20px !important;
    line-height: 20px !important;
    max-width: none !important;
    min-height: 20px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
  }

  body .bake-container {
    padding-top: 28px !important;
  }

  body .bake-header {
    margin-bottom: 24px !important;
  }

  body .bake-title {
    font-size: 2rem !important;
  }

  body .bake-canvas {
    gap: 14px !important;
  }

  body .bake-card {
    border-radius: 18px !important;
    display: block !important;
    height: auto !important;
    min-height: 156px !important;
    overflow: hidden !important;
  }

  body .bake-card-link {
    display: grid !important;
    grid-template-columns: minmax(118px, 42%) minmax(0, 1fr) !important;
    min-height: 156px !important;
  }

  body .bake-card-image-wrapper {
    height: auto !important;
    min-height: 156px !important;
    width: 100% !important;
  }

  body .bake-card-content {
    min-width: 0 !important;
    padding: 18px 16px !important;
    width: 100% !important;
  }

  body .bake-card-title {
    font-size: 1.26rem !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
    writing-mode: horizontal-tb !important;
  }

  body .bake-card-excerpt {
    display: -webkit-box !important;
    font-size: .86rem !important;
    line-height: 1.55 !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }

  body .diary-wrapper,
  body .diary-container,
  body .diary-card,
  body .diary-content {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .diary-wrapper {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body .diary-grid {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  body .diary-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  body .diary-content {
    border-radius: 18px !important;
    padding: 18px !important;
  }

  body .diary-images,
  body .diary-image-grid {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .diary-content img {
    border-radius: 12px !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
  }

  body .games-container {
    padding-top: 18px !important;
  }

  body .game-platform-tabs {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  body .game-card {
    box-sizing: border-box !important;
    gap: 9px !important;
    grid-template-columns: minmax(112px, 40%) minmax(0, 1fr) !important;
    overflow: hidden !important;
    padding: 8px !important;
    width: 100% !important;
  }

  body .game-cover {
    align-self: stretch !important;
    aspect-ratio: auto !important;
    min-height: 102px !important;
  }

  body .game-title {
    font-size: .92rem !important;
    line-height: 1.25 !important;
  }

  body .game-achievements {
    gap: 4px !important;
    margin-top: 6px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .game-achievement {
    border-radius: 7px !important;
    flex: 0 0 22px !important;
    height: 22px !important;
    width: 22px !important;
  }

  body .game-achievement:nth-child(n+5):not(.game-achievement-more) {
    display: none !important;
  }

  body .game-achievement-more {
    flex: 0 0 auto !important;
    max-width: 68px !important;
    padding: 0 6px !important;
  }

  body .game-achievement-more span {
    font-size: .58rem !important;
  }

  body .tag-cloud,
  body .tag-cloud-section,
  body .tag-cloud-tags {
    overflow: visible !important;
  }

  body .tag-cloud-tags {
    gap: 9px 8px !important;
    padding: 2px 0 !important;
  }

  body .tag-cloud-link,
  body .tag-cloud-tags a {
    line-height: 1.25 !important;
    margin: 0 0 2px !important;
    max-width: 100% !important;
    min-height: 34px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
  }
}

@media (max-width: 420px) {
  body .content.index .post-block.post-card-preview,
  body .content.index .post-block.post-card-preview:nth-of-type(even),
  body.index .post-card-preview,
  body.index .post-card-preview:nth-of-type(even) {
    grid-template-columns: minmax(126px, 44%) minmax(0, 1fr) !important;
    min-height: 142px !important;
  }

  body .content.index .post-block.post-card-preview .post-card-cover,
  body.index .post-card-preview .post-card-cover {
    min-height: 142px !important;
  }

  body .content.index .post-card-preview .post-body p {
    -webkit-line-clamp: 2 !important;
  }

  body .books-container .books-grid,
  body .books-wrapper .books-grid,
  body .movies-container .movies-grid,
  body .movies-wrapper .movies-grid {
    gap: 8px 6px !important;
  }

  body .books-container .book-buttons,
  body .books-wrapper .book-buttons {
    gap: 3px !important;
    padding: 5px 3px !important;
  }

  body .books-container .book-buttons .btn,
  body .books-wrapper .book-buttons .btn {
    font-size: .52rem !important;
    height: 18px !important;
    line-height: 18px !important;
    min-height: 18px !important;
  }

  body .game-card {
    grid-template-columns: minmax(106px, 42%) minmax(0, 1fr) !important;
  }
}

/* Absolute mobile homepage/game fixes. Keep this block at EOF. */
html body .content.tag,
html body .content.page.posts-expand:has(.tag-cloud),
html body .tag-cloud,
html body .tag-cloud-section,
html body .tag-cloud-tags {
  overflow: visible !important;
}

html body .tag-cloud,
html body .tag-cloud-section {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

html body .tag-cloud-tags {
  align-items: flex-start !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 9px !important;
  line-height: 1.6 !important;
  padding: 8px 0 14px !important;
}

html body .tag-cloud-link,
html body .tag-cloud-tags a {
  box-sizing: border-box !important;
  display: inline-flex !important;
  line-height: 1.25 !important;
  margin: 0 0 2px !important;
  max-width: 100% !important;
  min-height: 34px !important;
  overflow: visible !important;
  padding: 8px 12px !important;
  white-space: normal !important;
}

@media (max-width: 767px) {
  html body .content.index.posts-expand {
    padding: 12px !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even),
  html body .content.index > article.post-block.post-card-preview,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) {
    align-items: stretch !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    height: 136px !important;
    max-height: 136px !important;
    min-height: 136px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) > .post-card-cover {
    align-self: stretch !important;
    aspect-ratio: auto !important;
    border-radius: 20px 0 0 20px !important;
    display: block !important;
    flex: 0 0 48% !important;
    height: 100% !important;
    max-width: 48% !important;
    min-height: 0 !important;
    min-width: 48% !important;
    order: 0 !important;
    overflow: hidden !important;
    width: 48% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover img,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover img {
    display: block !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-info,
  html body .content.index > article.post-block.post-card-preview > .post-card-info,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) > .post-card-info,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) > .post-card-info {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 136px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    opacity: 1 !important;
    order: 1 !important;
    overflow: hidden !important;
    padding: 9px 10px !important;
    position: relative !important;
    transform: none !important;
    visibility: visible !important;
    width: auto !important;
  }

  html body .content.index .post-card-info .post-header {
    flex: 0 0 auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  html body .content.index .post-card-info .post-title {
    display: -webkit-box !important;
    font-size: .88rem !important;
    line-height: 1.25 !important;
    margin: 0 0 4px !important;
    max-height: 2.5em !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .content.index .post-card-info .post-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    font-size: .64rem !important;
    gap: 1px 6px !important;
    line-height: 1.28 !important;
    margin: 0 0 4px !important;
    max-height: 2.6em !important;
    overflow: hidden !important;
  }

  html body .content.index .post-card-info .post-meta br,
  html body .content.index .post-card-info .post-meta .post-meta-item-text,
  html body .content.index .post-card-info .post-meta .post-meta-item:nth-last-child(-n+2) {
    display: none !important;
  }

  html body .content.index .post-card-info .post-description,
  html body .content.index .post-card-info .post-body {
    color: #4e5b70 !important;
    display: -webkit-box !important;
    flex: 1 1 auto !important;
    font-size: .74rem !important;
    line-height: 1.38 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .content.index .post-card-info .post-body p {
    display: inline !important;
    margin: 0 !important;
  }

  html body .content.index .post-card-info .post-button {
    flex: 0 0 auto !important;
    margin-top: 5px !important;
  }

  html body .content.index .post-card-info .post-button .btn {
    font-size: .68rem !important;
    height: 24px !important;
    line-height: 24px !important;
    min-height: 24px !important;
    min-width: 68px !important;
    padding: 0 9px !important;
  }

  html body .game-card {
    overflow: visible !important;
  }

  html body .game-achievements {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  html body .game-achievement {
    flex: 0 0 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    overflow: hidden !important;
    width: 22px !important;
  }

  html body .game-achievement:nth-child(n+4):not(.game-achievement-more) {
    display: none !important;
  }

  html body .game-achievement-more {
    border-radius: 999px !important;
    flex: 0 0 24px !important;
    gap: 0 !important;
    height: 24px !important;
    justify-content: center !important;
    min-width: 24px !important;
    padding: 0 !important;
    width: 24px !important;
  }

  html body .game-achievement-more i {
    font-size: .72rem !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  html body .game-achievement-more span {
    display: none !important;
  }
}

@media (max-width: 420px) {
  html body .content.index.posts-expand > article.post-block.post-card-preview,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even),
  html body .content.index > article.post-block.post-card-preview,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) {
    height: 128px !important;
    max-height: 128px !important;
    min-height: 128px !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover {
    flex-basis: 50% !important;
    max-width: 50% !important;
    min-width: 50% !important;
    width: 50% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-info,
  html body .content.index > article.post-block.post-card-preview > .post-card-info {
    max-height: 128px !important;
    padding: 8px !important;
  }

  html body .content.index .post-card-info .post-title {
    font-size: .82rem !important;
  }

  html body .content.index .post-card-info .post-description,
  html body .content.index .post-card-info .post-body {
    -webkit-line-clamp: 2 !important;
  }
}

/* Final 1/2/3/7 mobile fixes. Keep this at the real EOF. */
html body .content.tag,
html body .content.tag .post-block,
html body .content.tag .post-body,
html body .content.page.posts-expand .post-block,
html body .content.page.posts-expand .post-body,
html body .content.page.posts-expand:has(.tag-cloud),
html body .content.page.posts-expand:has(.tag-cloud) .post-block,
html body .content.page.posts-expand:has(.tag-cloud) .post-body,
html body .tag-cloud,
html body .tag-cloud-section,
html body .tag-cloud-tags {
  overflow: visible !important;
}

html body .tag-cloud {
  padding-bottom: 18px !important;
}

html body .tag-cloud-tags {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 10px !important;
  justify-content: center !important;
  line-height: 1.7 !important;
  padding: 10px 6px 20px !important;
}

html body .tag-cloud-tags a {
  border-radius: 10px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  min-height: 36px !important;
  overflow: visible !important;
  padding: 8px 13px !important;
  white-space: normal !important;
}

html body .tag-cloud-tags a::after {
  bottom: -8px !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  html body .content.index.posts-expand,
  html body .content.index {
    box-sizing: border-box !important;
    overflow: visible !important;
    padding: 10px !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even),
  html body .content.index > article.post-block.post-card-preview,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even),
  html body.index .content.index.posts-expand > article.post-block.post-card-preview,
  html body.index .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) {
    align-items: stretch !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    grid-template-columns: none !important;
    height: 132px !important;
    max-height: 132px !important;
    min-height: 132px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) > .post-card-cover {
    align-self: stretch !important;
    aspect-ratio: auto !important;
    border-radius: 18px 0 0 18px !important;
    bottom: auto !important;
    display: block !important;
    flex: 0 0 46% !important;
    height: 100% !important;
    inset: auto !important;
    left: auto !important;
    max-height: none !important;
    max-width: 46% !important;
    min-height: 0 !important;
    min-width: 46% !important;
    order: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 46% !important;
    z-index: auto !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover img,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover img {
    display: block !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-info,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) > .post-card-info,
  html body .content.index > article.post-block.post-card-preview > .post-card-info,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) > .post-card-info {
    background: transparent !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex: 1 1 54% !important;
    flex-direction: column !important;
    height: 100% !important;
    inset: auto !important;
    max-height: 132px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    opacity: 1 !important;
    order: 1 !important;
    overflow: hidden !important;
    padding: 9px 10px !important;
    position: relative !important;
    transform: none !important;
    visibility: visible !important;
    width: auto !important;
    z-index: auto !important;
  }

  html body .content.index .post-card-info .post-title {
    color: #202938 !important;
    display: -webkit-box !important;
    font-size: .84rem !important;
    line-height: 1.24 !important;
    margin: 0 0 4px !important;
    max-height: 2.5em !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .content.index .post-card-info .post-meta {
    color: #7b8596 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    flex-wrap: wrap !important;
    font-size: .6rem !important;
    gap: 1px 5px !important;
    line-height: 1.25 !important;
    margin: 0 0 4px !important;
    max-height: 2.5em !important;
    overflow: hidden !important;
  }

  html body .content.index .post-card-info .post-body,
  html body .content.index .post-card-info .post-description {
    color: #4e5b70 !important;
    display: -webkit-box !important;
    flex: 1 1 auto !important;
    font-size: .7rem !important;
    line-height: 1.36 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .content.index .post-card-info .post-body p {
    display: inline !important;
    margin: 0 !important;
  }

  html body .content.index .post-card-info .post-button {
    display: none !important;
  }

  html body .books-container .book-card,
  html body .books-wrapper .book-card {
    overflow: hidden !important;
  }

  html body .books-container .book-buttons,
  html body .books-wrapper .book-buttons {
    box-sizing: border-box !important;
    column-gap: 3px !important;
    display: grid !important;
    grid-auto-columns: unset !important;
    grid-auto-flow: column !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 4px 3px 6px !important;
    width: 100% !important;
  }

  html body .books-container .book-buttons .btn,
  html body .books-wrapper .book-buttons .btn {
    box-sizing: border-box !important;
    display: inline-flex !important;
    font-size: .5rem !important;
    height: 18px !important;
    justify-content: center !important;
    line-height: 18px !important;
    max-width: 100% !important;
    min-height: 18px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 2px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
  }

  html body .books-container .book-buttons:has(> .btn:only-child),
  html body .books-wrapper .book-buttons:has(> .btn:only-child) {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
  }

  html body .books-container .book-buttons > .btn:only-child,
  html body .books-wrapper .book-buttons > .btn:only-child {
    flex: 0 0 50px !important;
    max-width: 50px !important;
    min-width: 50px !important;
    width: 50px !important;
  }

  html body .game-card {
    box-sizing: border-box !important;
    grid-template-columns: minmax(104px, 40%) minmax(0, 1fr) !important;
    overflow: hidden !important;
    padding: 8px !important;
  }

  html body .game-info,
  html body .game-mainline {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body .game-achievements {
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    margin-top: 6px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  html body .game-achievement {
    border: 0 !important;
    box-shadow: none !important;
    flex: 0 0 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 20px !important;
  }

  html body .game-achievement:nth-child(n+3):not(.game-achievement-more) {
    display: none !important;
  }

  html body .game-achievement-more {
    align-items: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    flex: 0 0 22px !important;
    gap: 0 !important;
    height: 22px !important;
    justify-content: center !important;
    min-width: 22px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 22px !important;
  }

  html body .game-achievement-more i {
    font-size: .7rem !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  html body .game-achievement-more span {
    display: none !important;
  }
}

@media (max-width: 420px) {
  html body .content.index.posts-expand > article.post-block.post-card-preview,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even),
  html body .content.index > article.post-block.post-card-preview,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even),
  html body.index .content.index.posts-expand > article.post-block.post-card-preview,
  html body.index .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) {
    height: 124px !important;
    max-height: 124px !important;
    min-height: 124px !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover {
    flex-basis: 48% !important;
    max-width: 48% !important;
    min-width: 48% !important;
    width: 48% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-info,
  html body .content.index > article.post-block.post-card-preview > .post-card-info {
    max-height: 124px !important;
    padding: 8px !important;
  }

  html body .content.index .post-card-info .post-title {
    font-size: .78rem !important;
  }

  html body .books-container .book-buttons > .btn:only-child,
  html body .books-wrapper .book-buttons > .btn:only-child {
    flex-basis: 46px !important;
    max-width: 46px !important;
    min-width: 46px !important;
    width: 46px !important;
  }
}

/* Final mobile game achievement card polish. */
@media (max-width: 767px) {
  html body .game-card {
    overflow: hidden !important;
  }

  html body .game-achievements {
    align-items: center !important;
    align-self: flex-start !important;
    background: rgba(255, 255, 255, .84) !important;
    border: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(20, 24, 32, .08) !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin-top: 6px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 4px !important;
    width: auto !important;
  }

  html body .game-achievement {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .1) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #111 !important;
    display: inline-flex !important;
    flex: 0 0 24px !important;
    height: 24px !important;
    justify-content: center !important;
    min-width: 24px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 24px !important;
  }

  html body .game-achievement img {
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  html body .game-achievement:nth-child(n+4):not(.game-achievement-more) {
    display: none !important;
  }

  html body .game-achievement-more {
    background: #fff !important;
    border-color: rgba(0, 0, 0, .1) !important;
    flex-basis: 24px !important;
    gap: 0 !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    width: 24px !important;
  }

  html body .game-achievement-more i {
    color: #111 !important;
    font-size: .72rem !important;
  }

  html body .game-achievement-more span {
    display: none !important;
  }

  html body .game-achievement:hover {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
    transform: none !important;
  }

  html body .game-achievement:hover img {
    filter: none !important;
  }

  html body .game-achievement-more:hover i {
    color: #fff !important;
  }
}

/* Last-pass fixes for the game page and compact mobile cards. */
html body:has(.content.games-page) .main-menu > .menu-item-pages > a,
html body:has(.content.games-page) .main-menu > .menu-item-pages > .popup-trigger,
html body:has(.content.games-page) .main-menu > .mobile-from-pages.menu-item-steam > a {
  background: #111 !important;
  border-color: #111 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14) !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  html body .books-container .book-buttons,
  html body .books-wrapper .book-buttons {
    justify-items: center !important;
  }

  html body .books-container .book-buttons > .btn:only-child,
  html body .books-wrapper .book-buttons > .btn:only-child {
    justify-self: center !important;
  }

  html body .content.games-page,
  html body .games-container {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  html body .games-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  html body .games-list {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  html body .game-card {
    gap: 8px !important;
    grid-template-columns: minmax(104px, 42%) minmax(0, 1fr) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 8px !important;
    width: 100% !important;
  }

  html body .game-cover {
    border-radius: 12px !important;
    min-height: 92px !important;
  }

  html body .game-info {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body .game-achievements {
    gap: 3px !important;
    padding: 3px !important;
  }

  html body .game-achievement {
    flex-basis: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    width: 22px !important;
  }

  html body .game-achievement-more {
    flex-basis: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    width: 22px !important;
  }
}

@media (max-width: 420px) {
  html body .game-card {
    grid-template-columns: minmax(98px, 41%) minmax(0, 1fr) !important;
  }

  html body .game-achievement:nth-child(n+3):not(.game-achievement-more) {
    display: none !important;
  }

  html body .game-achievement,
  html body .game-achievement-more {
    flex-basis: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    width: 20px !important;
  }

  html body .game-achievement-more i {
    font-size: .68rem !important;
  }
}

/* Keep the achievement summary readable on mobile: trophy + earned/total. */
@media (max-width: 767px) {
  html body .game-achievements {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  html body .game-achievement-more {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    gap: 4px !important;
    height: 22px !important;
    min-width: 48px !important;
    padding: 0 6px !important;
    width: auto !important;
  }

  html body .game-achievement-more i {
    flex: 0 0 auto !important;
    font-size: .68rem !important;
    line-height: 1 !important;
  }

  html body .game-achievement-more span {
    display: inline !important;
    flex: 0 0 auto !important;
    font-size: .58rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}

html body .pagination .page-number,
html body .pagination .extend {
  align-items: center !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  height: 40px !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  width: 40px !important;
}

html body .pagination .page-number.current,
html body .pagination span.page-number.current,
html body .pagination span.current {
  background: #111 !important;
  border-color: #111 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16) !important;
  color: #fff !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* Make nested navigation usable on touch tablets. */
@media (min-width: 768px) and (max-width: 1199px) and (hover: none),
  (min-width: 768px) and (max-width: 1199px) and (pointer: coarse) {
  html body .header,
  html body .header-inner,
  html body .main-menu,
  html body .main-menu > .menu-item-has-children {
    overflow: visible !important;
  }

  html body .main-menu {
    position: relative !important;
    z-index: 1001 !important;
  }

  html body .main-menu > .menu-item-has-children.is-touch-open > .menu-child {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
    visibility: visible !important;
  }
}

/* Keep tablet game covers on one stable grid and crop all source ratios equally. */
@media (min-width: 768px) and (max-width: 1199px) {
  html.touch-menu-device body .header,
  html.touch-menu-device body .header-inner,
  html.touch-menu-device body .main-menu,
  html.touch-menu-device body .main-menu > .menu-item-has-children {
    overflow: visible !important;
  }

  html.touch-menu-device body .main-menu {
    position: relative !important;
    z-index: 1001 !important;
  }

  html.touch-menu-device body .main-menu > .menu-item-has-children.is-touch-open > .menu-child {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
    visibility: visible !important;
  }

  html body .games-container .game-card {
    grid-template-columns: clamp(170px, 34%, 250px) minmax(0, 1fr) !important;
  }

  html body .games-container .game-cover {
    align-self: center !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  html body .games-container .game-cover img {
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
  }
}

/* Keep the book category picker attached to its button on mobile. */
@media (max-width: 767px) {
  html body .books-wrapper .main-category-selector {
    display: inline-flex !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 40 !important;
  }

  html body .books-wrapper .sub-category-dropdown {
    left: 50% !important;
    margin-top: 8px !important;
    max-height: min(58vh, 380px) !important;
    max-width: calc(100vw - 28px) !important;
    min-width: min(300px, calc(100vw - 28px)) !important;
    overflow-y: auto !important;
    position: absolute !important;
    top: 100% !important;
    transform: translateX(-50%) !important;
    z-index: 80 !important;
  }

  html body .books-wrapper .sub-category-dropdown.show {
    display: block !important;
  }
}


/* dark-mode.css */
/* Dark mode only. Day mode styles are intentionally untouched. */

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) {
    --text-color: #f3f3f1;
    --text-color-secondary: #c9c8c3;
    --content-bg-color: #181818;
    --card-bg-color: #202020;
    --apple-card-bg: rgba(31, 31, 31, .96);
    --apple-card-border: rgba(255, 255, 255, .14);
    --apple-card-shadow: 0 18px 44px rgba(0, 0, 0, .34);
    --apple-ink: #f4f4f2;
    --apple-muted: #c8c7c2;
    --apple-chip-bg: rgba(255, 255, 255, .08);
    --apple-chip-border: rgba(255, 255, 255, .16);
    --apple-hover: #f4f4f2;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .055), transparent 30%),
      linear-gradient(180deg, #101010 0%, #151515 50%, #111 100%) !important;
    color: #f3f3f1 !important;
  }

  html body:not(.theme-force-light) .header-inner,
  html body:not(.theme-force-light) .main-inner,
  html body:not(.theme-force-light) .content.index,
  html body:not(.theme-force-light) .content-wrap > .content:not(.index),
  html body:not(.theme-force-light) .post-block,
  html body:not(.theme-force-light) .post-card-preview,
  html body:not(.theme-force-light) .post-card-info,
  html body:not(.theme-force-light) .album-wrapper,
  html body:not(.theme-force-light) .gallery-wrapper,
  html body:not(.theme-force-light) .movies-wrapper,
  html body:not(.theme-force-light) .books-wrapper,
  html body:not(.theme-force-light) .bake-wrapper,
  html body:not(.theme-force-light) .diary-card,
  html body:not(.theme-force-light) .category-card,
  html body:not(.theme-force-light) .tag-card,
  html body:not(.theme-force-light) .game-card,
  html body:not(.theme-force-light) .sidebar-profile-card,
  html body:not(.theme-force-light) .sidebar-card,
  html body:not(.theme-force-light) .links-of-blogroll,
  html body:not(.theme-force-light) .site-author-widget .sidebar-profile-card,
  html body:not(.theme-force-light) .site-author-widget .sidebar-card {
    background: rgba(31, 31, 31, .96) !important;
    border-color: rgba(255, 255, 255, .14) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34) !important;
    color: #f3f3f1 !important;
  }

  html body:not(.theme-force-light) .sidebar,
  html body:not(.theme-force-light) .sidebar-inner,
  html body:not(.theme-force-light) .sidebar-inner.affix,
  html body:not(.theme-force-light) .site-overview-wrap,
  html body:not(.theme-force-light) .site-author-widget,
  html body:not(.theme-force-light) .sidebar-panel,
  html body:not(.theme-force-light) .post-toc-wrap,
  html body:not(.theme-force-light) .site-author,
  html body:not(.theme-force-light) .site-state-wrap,
  html body:not(.theme-force-light) .links-of-author {
    background: transparent !important;
    color: #f3f3f1 !important;
  }

  html body:not(.theme-force-light) .header-inner::before,
  html body:not(.theme-force-light) .post-card-info::before,
  html body:not(.theme-force-light) .post-card-info::after {
    background: rgba(31, 31, 31, .96) !important;
  }

  html body:not(.theme-force-light) .site-title,
  html body:not(.theme-force-light) .site-author-name,
  html body:not(.theme-force-light) .sidebar-card-title,
  html body:not(.theme-force-light) .post-title,
  html body:not(.theme-force-light) .post-title a,
  html body:not(.theme-force-light) .page-title,
  html body:not(.theme-force-light) .album-title,
  html body:not(.theme-force-light) .movie-title,
  html body:not(.theme-force-light) .book-title,
  html body:not(.theme-force-light) h1,
  html body:not(.theme-force-light) h2,
  html body:not(.theme-force-light) h3,
  html body:not(.theme-force-light) h4 {
    color: #f6f6f4 !important;
    -webkit-text-fill-color: #f6f6f4 !important;
  }

  html body:not(.theme-force-light) .post-body,
  html body:not(.theme-force-light) .post-body p,
  html body:not(.theme-force-light) .post-meta,
  html body:not(.theme-force-light) .page-subtitle,
  html body:not(.theme-force-light) .site-description,
  html body:not(.theme-force-light) .photo-caption,
  html body:not(.theme-force-light) .album-desc,
  html body:not(.theme-force-light) .movie-desc,
  html body:not(.theme-force-light) .book-desc,
  html body:not(.theme-force-light) .diary-text,
  html body:not(.theme-force-light) .pagination-info,
  html body:not(.theme-force-light) .site-state-item-name,
  html body:not(.theme-force-light) .site-state-item-count,
  html body:not(.theme-force-light) .links-of-author-item a,
  html body:not(.theme-force-light) .links-of-blogroll-item a,
  html body:not(.theme-force-light) .sidebar-popular-item a,
  html body:not(.theme-force-light) .sidebar-tag-cloud-list a,
  html body:not(.theme-force-light) .tag-cloud-tags a {
    color: #d7d6d2 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body:not(.theme-force-light) a {
    color: #f0f0ee;
  }

  html body:not(.theme-force-light) .main-menu .menu-item a,
  html body:not(.theme-force-light) .main-menu .menu-item span.exturl,
  html body:not(.theme-force-light) .links-of-author-item a,
  html body:not(.theme-force-light) .sidebar-profile-card .links-of-author-item a,
  html body:not(.theme-force-light) .links-of-blogroll-item a,
  html body:not(.theme-force-light) .sidebar-popular-item a,
  html body:not(.theme-force-light) .sidebar-tag-cloud-list a,
  html body:not(.theme-force-light) .tag-cloud-tags a,
  html body:not(.theme-force-light) .pagination a,
  html body:not(.theme-force-light) .pagination span,
  html body:not(.theme-force-light) .post-tags a {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: #eeeeeb !important;
  }

  html body:not(.theme-force-light) .main-menu .menu-item a:hover,
  html body:not(.theme-force-light) .main-menu .menu-item-active > a,
  html body:not(.theme-force-light) .main-menu .menu-item-active > span.exturl,
  html body:not(.theme-force-light) .links-of-author-item a:hover,
  html body:not(.theme-force-light) .sidebar-profile-card .links-of-author-item a:hover,
  html body:not(.theme-force-light) .links-of-blogroll-item a:hover,
  html body:not(.theme-force-light) .sidebar-popular-item a:hover,
  html body:not(.theme-force-light) .sidebar-tag-cloud-list a:hover,
  html body:not(.theme-force-light) .tag-cloud-tags a:hover,
  html body:not(.theme-force-light) .pagination .current,
  html body:not(.theme-force-light) .pagination a:hover,
  html body:not(.theme-force-light) .post-tags a:hover {
    background: #f4f4f2 !important;
    border-color: #f4f4f2 !important;
    color: #151515 !important;
    -webkit-text-fill-color: #151515 !important;
  }

  html body:not(.theme-force-light) .menu-child,
  html body:not(.theme-force-light) .main-menu > .menu-item-has-children > .menu-child {
    background: rgba(31, 31, 31, .98) !important;
    border-color: rgba(255, 255, 255, .14) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .42) !important;
  }

  html body:not(.theme-force-light) .photo-frame,
  html body:not(.theme-force-light) .album-card,
  html body:not(.theme-force-light) .book-card,
  html body:not(.theme-force-light) .movie-card,
  html body:not(.theme-force-light) .bake-card,
  html body:not(.theme-force-light) .game-platform-card {
    background: #202020 !important;
    border-color: rgba(255, 255, 255, .14) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .34) !important;
  }

  html body:not(.theme-force-light) .book-actions,
  html body:not(.theme-force-light) .movie-actions,
  html body:not(.theme-force-light) .game-actions {
    background: #f5f5f3 !important;
    color: #181818 !important;
  }

  html body:not(.theme-force-light) .photo-image,
  html body:not(.theme-force-light) input,
  html body:not(.theme-force-light) textarea,
  html body:not(.theme-force-light) select,
  html body:not(.theme-force-light) pre,
  html body:not(.theme-force-light) code {
    background: #171717 !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: #f3f3f1 !important;
  }

  html body:not(.theme-force-light) .load-more-container,
  html body:not(.theme-force-light) .diary-footer,
  html body:not(.theme-force-light) .post-footer {
    border-color: rgba(255, 255, 255, .14) !important;
  }

  html body:not(.theme-force-light) .load-more-btn,
  html body:not(.theme-force-light) .btn,
  html body:not(.theme-force-light) .post-button .btn,
  html body:not(.theme-force-light) .pagination .page-number,
  html body:not(.theme-force-light) .pagination .extend {
    background: transparent !important;
    border-color: rgba(244, 244, 242, .86) !important;
    color: #f4f4f2 !important;
  }

  html body:not(.theme-force-light) .load-more-btn:hover:not(:disabled),
  html body:not(.theme-force-light) .btn:hover,
  html body:not(.theme-force-light) .post-button .btn:hover,
  html body:not(.theme-force-light) .pagination .page-number.current,
  html body:not(.theme-force-light) .pagination .page-number:hover,
  html body:not(.theme-force-light) .pagination .extend:hover {
    background: #f4f4f2 !important;
    border-color: #f4f4f2 !important;
    color: #151515 !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .26) !important;
  }
}

/* Dark TOC: same structure as the light style, only recolored. */
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav {
  background: rgba(31, 29, 26, .94) !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 26px 26px 0 0 !important;
  border-bottom-color: rgba(255, 248, 234, .1) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
  box-sizing: border-box !important;
  display: block !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 14px 14px 10px !important;
  width: 100% !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav li,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav li.sidebar-nav-toc {
  align-items: center !important;
  background: #fff8ea !important;
  border: 1px solid #fff8ea !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  color: #111 !important;
  cursor: default !important;
  display: flex !important;
  font-size: .88rem !important;
  font-weight: 800 !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  text-align: center !important;
  width: 100% !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  background: rgba(31, 29, 26, .94) !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 0 0 26px 26px !important;
  border-top: 0 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
  box-sizing: border-box !important;
  display: block !important;
  margin: -1px 0 0 !important;
  max-height: calc(100vh - 80px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 14px 16px 18px !important;
  width: 100% !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  max-height: calc(100vh - 116px) !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 !important;
  scrollbar-width: none !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link {
  align-items: flex-start !important;
  background: rgba(255, 248, 234, .065) !important;
  border: 1px solid rgba(255, 248, 234, .16) !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
  color: #f4efe7 !important;
  display: flex !important;
  gap: 6px !important;
  line-height: 1.45 !important;
  max-width: 100% !important;
  padding: 9px 11px !important;
  text-decoration: none !important;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease !important;
  width: 100% !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link *,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link span {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible),
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible) *,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link * {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav {
    background: rgba(31, 29, 26, .94) !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 26px 26px 0 0 !important;
    border-bottom-color: rgba(255, 248, 234, .1) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 14px 14px 10px !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav li,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav li.sidebar-nav-toc {
    align-items: center !important;
    background: #fff8ea !important;
    border: 1px solid #fff8ea !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    color: #111 !important;
    display: flex !important;
    font-size: .88rem !important;
    font-weight: 800 !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    text-align: center !important;
    width: 100% !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    background: rgba(31, 29, 26, .94) !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 0 0 26px 26px !important;
    border-top: 0 !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: -1px 0 0 !important;
    max-height: calc(100vh - 80px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 14px 16px 18px !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
    max-height: calc(100vh - 116px) !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
    scrollbar-width: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-item {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link {
    align-items: flex-start !important;
    background: rgba(255, 248, 234, .065) !important;
    border: 1px solid rgba(255, 248, 234, .16) !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    color: #f4efe7 !important;
    display: flex !important;
    gap: 6px !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
    padding: 9px 11px !important;
    text-decoration: none !important;
    transition: background-color .22s ease, border-color .22s ease, color .22s ease !important;
    width: 100% !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link *,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link span {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible),
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible) *,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link * {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }
}

/* Keep article TOC behavior intact in dark mode. */
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
  align-self: start !important;
  background: transparent !important;
  background-image: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  max-height: calc(100vh - 24px) !important;
  overflow: hidden !important;
  position: sticky !important;
  top: 18px !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) :is(
  .site-overview-wrap,
  .sidebar-profile-card,
  .sidebar-card,
  .links-of-blogroll,
  .sidebar-button,
  .cc-license,
  .back-to-top
) {
  display: none !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav {
  background: rgba(31, 29, 26, .92) !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32) !important;
  flex: 0 0 auto !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  background: rgba(31, 29, 26, .92) !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 0 0 24px 24px !important;
  border-top: 0 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32) !important;
  display: block !important;
  flex: 1 1 auto !important;
  margin: -1px 0 0 !important;
  max-height: calc(100vh - 80px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 12px 14px 14px !important;
  position: relative !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-height: calc(100vh - 112px) !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc::-webkit-scrollbar,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
    align-self: start !important;
    background: transparent !important;
    background-image: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    max-height: calc(100vh - 24px) !important;
    overflow: hidden !important;
    position: sticky !important;
    top: 18px !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) :is(
    .site-overview-wrap,
    .sidebar-profile-card,
    .sidebar-card,
    .links-of-blogroll,
    .sidebar-button,
    .cc-license,
    .back-to-top
  ) {
    display: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav {
    background: rgba(31, 29, 26, .92) !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .32) !important;
    flex: 0 0 auto !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    background: rgba(31, 29, 26, .92) !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 0 0 24px 24px !important;
    border-top: 0 !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .32) !important;
    display: block !important;
    flex: 1 1 auto !important;
    margin: -1px 0 0 !important;
    max-height: calc(100vh - 80px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 12px 14px 14px !important;
    position: relative !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    max-height: calc(100vh - 112px) !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc::-webkit-scrollbar,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }
}

/* Final dark search cleanup: remove NexT dashed lines and hard result stripes. */
html body.theme-force-dark .search-pop-overlay.search-active,
html body.theme-force-dark .local-search-pop-overlay.search-active {
  background: rgba(8, 8, 8, .58) !important;
  backdrop-filter: blur(10px) !important;
}

html body.theme-force-dark .popup.search-popup,
html body.theme-force-dark .search-popup {
  background: rgba(31, 29, 26, .98) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 26px !important;
  box-shadow: 0 28px 78px rgba(0, 0, 0, .52) !important;
  color: #f4efe7 !important;
  overflow: hidden !important;
}

html body.theme-force-dark .search-header {
  background: rgba(31, 29, 26, .98) !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 248, 234, .1) !important;
}

html body.theme-force-dark .search-input-container {
  background: rgba(255, 248, 234, .075) !important;
  border: 1px solid rgba(255, 248, 234, .15) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
}

html body.theme-force-dark input.search-input,
html body.theme-force-dark .search-popup input.search-input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark .search-icon,
html body.theme-force-dark .popup-btn-close {
  color: rgba(244, 239, 231, .76) !important;
  -webkit-text-fill-color: rgba(244, 239, 231, .76) !important;
}

html body.theme-force-dark .popup-btn-close:hover,
html body.theme-force-dark .popup-btn-close:hover .fa {
  color: #fff8ea !important;
  -webkit-text-fill-color: #fff8ea !important;
}

html body.theme-force-dark #search-result,
html body.theme-force-dark .search-result-list {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark #search-result {
  scrollbar-width: none !important;
}

html body.theme-force-dark #search-result::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

html body.theme-force-dark .search-result-list {
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.theme-force-dark .search-result-list li {
  background: rgba(255, 248, 234, .065) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .13) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
  overflow: hidden !important;
  padding: 14px 16px !important;
}

html body.theme-force-dark .search-result-list li::before,
html body.theme-force-dark .search-result-list li::after,
html body.theme-force-dark .search-result-title::before,
html body.theme-force-dark .search-result-title::after,
html body.theme-force-dark .search-result::before,
html body.theme-force-dark .search-result::after {
  display: none !important;
}

html body.theme-force-dark .search-result-title,
html body.theme-force-dark a.search-result-title,
html body.theme-force-dark .search-result-title a {
  background: transparent !important;
  border: 0 !important;
  color: #fff8ea !important;
  display: block !important;
  font-weight: 800 !important;
  margin: 0 0 8px !important;
  text-decoration: none !important;
  -webkit-text-fill-color: #fff8ea !important;
}

html body.theme-force-dark .search-result,
html body.theme-force-dark p.search-result {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(244, 239, 231, .84) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
  padding: 0 !important;
  text-decoration: none !important;
  -webkit-text-fill-color: rgba(244, 239, 231, .84) !important;
}

html body.theme-force-dark .search-keyword,
html body.theme-force-dark mark.search-keyword {
  background: rgba(255, 217, 126, .26) !important;
  border: 0 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  color: #fff3d2 !important;
  font-weight: 800 !important;
  padding: 0 3px !important;
  -webkit-text-fill-color: #fff3d2 !important;
}

/* Final dark lightbox cleanup: keep book/movie detail panels soft, without hard inner borders. */
html body.theme-force-dark :is(#bookLightbox, #movieLightbox) .lightbox-content {
  background: rgba(31, 29, 26, .98) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .12) !important;
  border-radius: 24px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .52) !important;
  overflow: hidden !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(
  .book-detail,
  .movie-detail,
  .book-detail-header,
  .movie-detail-header,
  .book-info-container,
  .movie-info-container,
  .book-meta,
  .movie-meta,
  .book-detail-footer,
  .movie-detail-footer,
  .book-actions,
  .movie-actions,
  .movie-buttons
),
html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(
  .book-detail,
  .movie-detail,
  .book-detail-header,
  .movie-detail-header,
  .book-info-container,
  .movie-info-container,
  .book-meta,
  .movie-meta,
  .book-detail-footer,
  .movie-detail-footer,
  .book-actions,
  .movie-actions,
  .movie-buttons
)::before,
html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(
  .book-detail,
  .movie-detail,
  .book-detail-header,
  .movie-detail-header,
  .book-info-container,
  .movie-info-container,
  .book-meta,
  .movie-meta,
  .book-detail-footer,
  .movie-detail-footer,
  .book-actions,
  .movie-actions,
  .movie-buttons
)::after {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-summary, .movie-summary) {
  background: rgba(255, 248, 234, .055) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: #f0e9dc !important;
  -webkit-text-fill-color: #f0e9dc !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .search-pop-overlay.search-active,
  html body:not(.theme-force-light) .local-search-pop-overlay.search-active {
    background: rgba(8, 8, 8, .58) !important;
    backdrop-filter: blur(10px) !important;
  }

  html body:not(.theme-force-light) .popup.search-popup,
  html body:not(.theme-force-light) .search-popup {
    background: rgba(31, 29, 26, .98) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 26px !important;
    box-shadow: 0 28px 78px rgba(0, 0, 0, .52) !important;
    color: #f4efe7 !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .search-header {
    background: rgba(31, 29, 26, .98) !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 248, 234, .1) !important;
  }

  html body:not(.theme-force-light) .search-input-container {
    background: rgba(255, 248, 234, .075) !important;
    border: 1px solid rgba(255, 248, 234, .15) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) input.search-input,
  html body:not(.theme-force-light) .search-popup input.search-input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) #search-result,
  html body:not(.theme-force-light) .search-result-list {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .search-result-list li {
    background: rgba(255, 248, 234, .065) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .13) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    color: #f4efe7 !important;
    overflow: hidden !important;
    padding: 14px 16px !important;
  }

  html body:not(.theme-force-light) .search-result,
  html body:not(.theme-force-light) p.search-result {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(244, 239, 231, .84) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
    padding: 0 !important;
    -webkit-text-fill-color: rgba(244, 239, 231, .84) !important;
  }

  html body:not(.theme-force-light) .search-result-title,
  html body:not(.theme-force-light) a.search-result-title,
  html body:not(.theme-force-light) .search-result-title a {
    background: transparent !important;
    border: 0 !important;
    color: #fff8ea !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #fff8ea !important;
  }

  html body:not(.theme-force-light) .search-keyword,
  html body:not(.theme-force-light) mark.search-keyword {
    background: rgba(255, 217, 126, .26) !important;
    border: 0 !important;
    border-radius: 5px !important;
    color: #fff3d2 !important;
    font-weight: 800 !important;
    padding: 0 3px !important;
    -webkit-text-fill-color: #fff3d2 !important;
  }

  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) .lightbox-content {
    background: rgba(31, 29, 26, .98) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .12) !important;
    border-radius: 24px !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .52) !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-info-container, .movie-info-container, .book-meta, .movie-meta, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons),
  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-info-container, .movie-info-container, .book-meta, .movie-meta, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons)::before,
  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-info-container, .movie-info-container, .book-meta, .movie-meta, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons)::after {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(.book-summary, .movie-summary) {
    background: rgba(255, 248, 234, .055) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    color: #f0e9dc !important;
    -webkit-text-fill-color: #f0e9dc !important;
  }
}

/* Final TOC shape: mirror light mode structure with dark colors. */
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav {
  background: rgba(31, 29, 26, .94) !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 26px 26px 0 0 !important;
  border-bottom-color: rgba(255, 248, 234, .1) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
  display: block !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 14px 14px 10px !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav li,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav li.sidebar-nav-toc {
  align-items: center !important;
  background: #fff8ea !important;
  border: 1px solid #fff8ea !important;
  border-radius: 999px !important;
  color: #111 !important;
  display: flex !important;
  font-size: .88rem !important;
  font-weight: 800 !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  width: 100% !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  background: rgba(31, 29, 26, .94) !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 0 0 26px 26px !important;
  border-top: 0 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
  margin: -1px 0 0 !important;
  max-height: calc(100vh - 80px) !important;
  overflow: hidden !important;
  padding: 14px 16px 18px !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  max-height: calc(100vh - 116px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 !important;
  scrollbar-width: none !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link {
  align-items: flex-start !important;
  background: rgba(255, 248, 234, .065) !important;
  border: 1px solid rgba(255, 248, 234, .16) !important;
  border-radius: 14px !important;
  color: #f4efe7 !important;
  display: flex !important;
  line-height: 1.45 !important;
  padding: 9px 11px !important;
  text-decoration: none !important;
  width: 100% !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link *,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link span {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible),
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible) *,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link * {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav {
    background: rgba(31, 29, 26, .94) !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 26px 26px 0 0 !important;
    border-bottom-color: rgba(255, 248, 234, .1) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
    display: block !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 14px 14px 10px !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav li,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav li.sidebar-nav-toc {
    align-items: center !important;
    background: #fff8ea !important;
    border: 1px solid #fff8ea !important;
    border-radius: 999px !important;
    color: #111 !important;
    display: flex !important;
    font-size: .88rem !important;
    font-weight: 800 !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    width: 100% !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    background: rgba(31, 29, 26, .94) !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 0 0 26px 26px !important;
    border-top: 0 !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
    margin: -1px 0 0 !important;
    max-height: calc(100vh - 80px) !important;
    overflow: hidden !important;
    padding: 14px 16px 18px !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav {
    display: grid !important;
    gap: 8px !important;
    max-height: calc(100vh - 116px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-item {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link {
    background: rgba(255, 248, 234, .065) !important;
    border: 1px solid rgba(255, 248, 234, .16) !important;
    border-radius: 14px !important;
    color: #f4efe7 !important;
    display: flex !important;
    line-height: 1.45 !important;
    padding: 9px 11px !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link *,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link span {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible),
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible) *,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link * {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }
}

/* Kylo dark cleanup: remove late-page blocks without touching light mode. */
html body.theme-force-dark :is(
  .container,
  .headband,
  .main,
  .main-inner,
  .content-wrap,
  .content,
  .content.page.posts-expand,
  .content-wrap > .content:not(.index),
  .album-page-shell,
  .album-container,
  .album-wrapper,
  .gallery-container,
  .gallery-wrapper,
  .books-container,
  .books-wrapper,
  .movies-container,
  .movies-wrapper,
  .diary-wrapper,
  .diary-container,
  .bake-container,
  .games-container
),
html body.theme-force-dark :is(
  .container,
  .headband,
  .main,
  .main-inner,
  .content-wrap,
  .content,
  .album-page-shell,
  .album-wrapper,
  .books-wrapper,
  .movies-wrapper,
  .diary-wrapper
)::before,
html body.theme-force-dark :is(
  .container,
  .headband,
  .main,
  .main-inner,
  .content-wrap,
  .content,
  .album-page-shell,
  .album-wrapper,
  .books-wrapper,
  .movies-wrapper,
  .diary-wrapper
)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html body.theme-force-dark canvas.fireworks,
html body.theme-force-dark #canvas-nest,
html body.theme-force-dark .canvas-nest {
  opacity: .82 !important;
  pointer-events: none !important;
}

html body.theme-force-dark .sidebar-profile-card .site-state-wrap,
html body.theme-force-dark .sidebar-profile-card .site-state,
html body.theme-force-dark .sidebar-profile-card .site-state-item,
html body.theme-force-dark .sidebar-profile-card .site-state-item a,
html body.theme-force-dark .sidebar-profile-card .site-state-wrap::before,
html body.theme-force-dark .sidebar-profile-card .site-state-wrap::after,
html body.theme-force-dark .sidebar-profile-card .site-state::before,
html body.theme-force-dark .sidebar-profile-card .site-state::after,
html body.theme-force-dark .sidebar-profile-card .site-state-item::before,
html body.theme-force-dark .sidebar-profile-card .site-state-item::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark .sidebar-profile-card .site-state-wrap {
  padding-top: 0 !important;
}

html body.theme-force-dark :is(.photo-wall, .photo-item, .photo-frame, .photo-caption),
html body.theme-force-dark :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::before,
html body.theme-force-dark :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark .photo-frame {
  overflow: hidden !important;
  padding: 0 !important;
}

html body.theme-force-dark .photo-image,
html body.theme-force-dark .photo-frame img {
  border: 0 !important;
  box-shadow: none !important;
  display: block !important;
}

html body.theme-force-dark .photo-caption {
  color: #f4efe7 !important;
  margin-top: 8px !important;
  padding: 0 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) .lightbox-content {
  background: rgba(31, 29, 26, .96) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .13) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48) !important;
  color: #f4efe7 !important;
  overflow: hidden !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(
  .lightbox-content,
  .book-detail,
  .movie-detail,
  .book-detail-header,
  .movie-detail-header,
  .book-info-container,
  .movie-info-container,
  .book-meta,
  .movie-meta,
  .book-detail-footer,
  .movie-detail-footer,
  .book-actions,
  .movie-actions,
  .movie-buttons
),
html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(
  .lightbox-content,
  .book-detail,
  .movie-detail,
  .book-detail-header,
  .movie-detail-header,
  .book-summary,
  .movie-summary,
  .book-detail-footer,
  .movie-detail-footer
)::before,
html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(
  .lightbox-content,
  .book-detail,
  .movie-detail,
  .book-detail-header,
  .movie-detail-header,
  .book-summary,
  .movie-summary,
  .book-detail-footer,
  .movie-detail-footer
)::after {
  background-image: none !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-detail-footer, .movie-detail-footer) {
  background: transparent !important;
  border-top: 0 !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-summary, .movie-summary) {
  background: rgba(255, 248, 234, .055) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: #f0e9dc !important;
}

html body.theme-force-dark .movies-wrapper :is(.movie-card, .movie-buttons),
html body.theme-force-dark .movies-wrapper :is(.movie-card, .movie-buttons)::before,
html body.theme-force-dark .movies-wrapper :is(.movie-card, .movie-buttons)::after {
  background-image: none !important;
  border-color: rgba(255, 248, 234, .08) !important;
}

html body.theme-force-dark .movies-wrapper .movie-buttons,
html body.theme-force-dark .books-wrapper .book-buttons {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark .diary-card,
html body.theme-force-dark .diary-card::before,
html body.theme-force-dark .diary-card::after {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark .diary-content {
  background: rgba(31, 29, 26, .9) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28) !important;
  transition: transform .34s cubic-bezier(.2, .9, .2, 1), box-shadow .34s ease, background-color .34s ease !important;
  will-change: transform !important;
}

html body.theme-force-dark .diary-card:hover .diary-content {
  box-shadow: 0 18px 46px rgba(0, 0, 0, .36) !important;
  transform: translateY(-8px) !important;
}

html body.theme-force-dark .diary-content::before {
  background: linear-gradient(135deg, var(--card-color1, #ff9a9e), var(--card-color2, #fad0c4)) !important;
  border: 0 !important;
  box-shadow: none !important;
  content: "" !important;
  height: 4px !important;
  left: 0 !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform .3s ease !important;
}

html body.theme-force-dark .diary-card:hover .diary-content::before {
  transform: scaleX(1) !important;
}

html body.theme-force-dark .header-inner .main-menu > .menu-item-has-children > .menu-child .menu-item-active > a,
html body.theme-force-dark .main-menu > .mobile-menu-clone.menu-item-active > a {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark .header-inner .main-menu > .menu-item-has-children > .menu-child .menu-item-active > a *,
html body.theme-force-dark .main-menu > .mobile-menu-clone.menu-item-active > a * {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) :is(
    .container,
    .headband,
    .main,
    .main-inner,
    .content-wrap,
    .content,
    .content.page.posts-expand,
    .content-wrap > .content:not(.index),
    .album-page-shell,
    .album-container,
    .album-wrapper,
    .gallery-container,
    .gallery-wrapper,
    .books-container,
    .books-wrapper,
    .movies-container,
    .movies-wrapper,
    .diary-wrapper,
    .diary-container,
    .bake-container,
    .games-container
  ),
  html body:not(.theme-force-light) :is(
    .container,
    .headband,
    .main,
    .main-inner,
    .content-wrap,
    .content,
    .album-page-shell,
    .album-wrapper,
    .books-wrapper,
    .movies-wrapper,
    .diary-wrapper
  )::before,
  html body:not(.theme-force-light) :is(
    .container,
    .headband,
    .main,
    .main-inner,
    .content-wrap,
    .content,
    .album-page-shell,
    .album-wrapper,
    .books-wrapper,
    .movies-wrapper,
    .diary-wrapper
  )::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) canvas.fireworks,
  html body:not(.theme-force-light) #canvas-nest,
  html body:not(.theme-force-light) .canvas-nest {
    opacity: .82 !important;
    pointer-events: none !important;
  }

  html body:not(.theme-force-light) .sidebar-profile-card .site-state-wrap,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state-item,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state-item a,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state-wrap::before,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state-wrap::after,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state::before,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state::after,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state-item::before,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state-item::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) .sidebar-profile-card .site-state-wrap {
    padding-top: 0 !important;
  }

  html body:not(.theme-force-light) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption),
  html body:not(.theme-force-light) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::before,
  html body:not(.theme-force-light) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) .photo-frame {
    overflow: hidden !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .photo-image,
  html body:not(.theme-force-light) .photo-frame img {
    border: 0 !important;
    box-shadow: none !important;
    display: block !important;
  }

  html body:not(.theme-force-light) .photo-caption {
    color: #f4efe7 !important;
    margin-top: 8px !important;
    padding: 0 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) .lightbox-content {
    background: rgba(31, 29, 26, .96) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .13) !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48) !important;
    color: #f4efe7 !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(
    .lightbox-content,
    .book-detail,
    .movie-detail,
    .book-detail-header,
    .movie-detail-header,
    .book-info-container,
    .movie-info-container,
    .book-meta,
    .movie-meta,
    .book-detail-footer,
    .movie-detail-footer,
    .book-actions,
    .movie-actions,
    .movie-buttons
  ),
  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(
    .lightbox-content,
    .book-detail,
    .movie-detail,
    .book-detail-header,
    .movie-detail-header,
    .book-summary,
    .movie-summary,
    .book-detail-footer,
    .movie-detail-footer
  )::before,
  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(
    .lightbox-content,
    .book-detail,
    .movie-detail,
    .book-detail-header,
    .movie-detail-header,
    .book-summary,
    .movie-summary,
    .book-detail-footer,
    .movie-detail-footer
  )::after {
    background-image: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(.book-detail-footer, .movie-detail-footer) {
    background: transparent !important;
    border-top: 0 !important;
  }

  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(.book-summary, .movie-summary) {
    background: rgba(255, 248, 234, .055) !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    color: #f0e9dc !important;
  }

  html body:not(.theme-force-light) .movies-wrapper :is(.movie-card, .movie-buttons),
  html body:not(.theme-force-light) .movies-wrapper :is(.movie-card, .movie-buttons)::before,
  html body:not(.theme-force-light) .movies-wrapper :is(.movie-card, .movie-buttons)::after {
    background-image: none !important;
    border-color: rgba(255, 248, 234, .08) !important;
  }

  html body:not(.theme-force-light) .movies-wrapper .movie-buttons,
  html body:not(.theme-force-light) .books-wrapper .book-buttons {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .diary-card,
  html body:not(.theme-force-light) .diary-card::before,
  html body:not(.theme-force-light) .diary-card::after {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) .diary-content {
    background: rgba(31, 29, 26, .9) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28) !important;
    transition: transform .34s cubic-bezier(.2, .9, .2, 1), box-shadow .34s ease, background-color .34s ease !important;
    will-change: transform !important;
  }

  html body:not(.theme-force-light) .diary-card:hover .diary-content {
    box-shadow: 0 18px 46px rgba(0, 0, 0, .36) !important;
    transform: translateY(-8px) !important;
  }

  html body:not(.theme-force-light) .diary-content::before {
    background: linear-gradient(135deg, var(--card-color1, #ff9a9e), var(--card-color2, #fad0c4)) !important;
    border: 0 !important;
    box-shadow: none !important;
    content: "" !important;
    height: 4px !important;
    left: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    transform: scaleX(0) !important;
    transform-origin: left center !important;
    transition: transform .3s ease !important;
  }

  html body:not(.theme-force-light) .diary-card:hover .diary-content::before {
    transform: scaleX(1) !important;
  }

  html body:not(.theme-force-light) .header-inner .main-menu > .menu-item-has-children > .menu-child .menu-item-active > a,
  html body:not(.theme-force-light) .main-menu > .mobile-menu-clone.menu-item-active > a {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) .header-inner .main-menu > .menu-item-has-children > .menu-child .menu-item-active > a *,
  html body:not(.theme-force-light) .main-menu > .mobile-menu-clone.menu-item-active > a * {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }
}

/* Category cards: make the action button match the soft glass card style. */
html body .categories-container .category-card-meta .view-button,
html body .content.categories-page .category-card-meta .view-button {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(235, 248, 255, .88)) !important;
  border: 1px solid rgba(114, 190, 238, .42) !important;
  border-radius: 14px !important;
  box-shadow:
    0 10px 24px rgba(79, 151, 207, .12),
    inset 0 1px 0 rgba(255, 255, 255, .86) !important;
  color: #2479b8 !important;
  -webkit-text-fill-color: #2479b8 !important;
  min-height: 48px !important;
  padding: 0 23px !important;
}

html body .categories-container .category-card-meta .view-button svg,
html body .content.categories-page .category-card-meta .view-button svg {
  fill: currentColor !important;
  transition: transform .24s ease !important;
}

html body .categories-container .category-card-meta .view-button:is(:hover, :focus-visible, :active),
html body .content.categories-page .category-card-meta .view-button:is(:hover, :focus-visible, :active) {
  background:
    linear-gradient(135deg, rgba(246, 252, 255, .98), rgba(211, 238, 255, .94)) !important;
  border-color: rgba(76, 169, 228, .58) !important;
  box-shadow:
    0 14px 30px rgba(79, 151, 207, .18),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  color: #0f6fae !important;
  -webkit-text-fill-color: #0f6fae !important;
  transform: translateY(-2px) !important;
}

html body .categories-container .category-card-meta .view-button:is(:hover, :focus-visible, :active) svg,
html body .content.categories-page .category-card-meta .view-button:is(:hover, :focus-visible, :active) svg {
  transform: translateX(2px) !important;
}

html body.theme-force-dark .categories-container .category-card-meta .view-button,
html body.theme-force-dark .content.categories-page .category-card-meta .view-button {
  background: rgba(255, 248, 234, .08) !important;
  border-color: rgba(255, 248, 234, .16) !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark .categories-container .category-card-meta .view-button:is(:hover, :focus-visible, :active),
html body.theme-force-dark .content.categories-page .category-card-meta .view-button:is(:hover, :focus-visible, :active) {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .28) !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .categories-container .category-card-meta .view-button,
  html body:not(.theme-force-light) .content.categories-page .category-card-meta .view-button {
    background: rgba(255, 248, 234, .08) !important;
    border-color: rgba(255, 248, 234, .16) !important;
    box-shadow: none !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) .categories-container .category-card-meta .view-button:is(:hover, :focus-visible, :active),
  html body:not(.theme-force-light) .content.categories-page .category-card-meta .view-button:is(:hover, :focus-visible, :active) {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .28) !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }
}

html body.theme-force-dark {
  --text-color: #f3f3f1;
  --text-color-secondary: #c9c8c3;
  --content-bg-color: #181818;
  --card-bg-color: #202020;
  --apple-card-bg: rgba(31, 31, 31, .96);
  --apple-card-border: rgba(255, 255, 255, .14);
  --apple-card-shadow: 0 18px 44px rgba(0, 0, 0, .34);
  --apple-ink: #f4f4f2;
  --apple-muted: #c8c7c2;
  --apple-chip-bg: rgba(255, 255, 255, .08);
  --apple-chip-border: rgba(255, 255, 255, .16);
  --apple-hover: #f4f4f2;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .055), transparent 30%),
    linear-gradient(180deg, #101010 0%, #151515 50%, #111 100%) !important;
  color: #f3f3f1 !important;
}

html body.theme-force-dark .header-inner,
html body.theme-force-dark .main-inner,
html body.theme-force-dark .content.index,
html body.theme-force-dark .content-wrap > .content:not(.index),
html body.theme-force-dark .post-block,
html body.theme-force-dark .post-card-preview,
html body.theme-force-dark .post-card-info,
html body.theme-force-dark .album-wrapper,
html body.theme-force-dark .gallery-wrapper,
html body.theme-force-dark .movies-wrapper,
html body.theme-force-dark .books-wrapper,
html body.theme-force-dark .bake-wrapper,
html body.theme-force-dark .diary-card,
html body.theme-force-dark .category-card,
html body.theme-force-dark .tag-card,
html body.theme-force-dark .game-card,
html body.theme-force-dark .sidebar-profile-card,
html body.theme-force-dark .sidebar-card,
html body.theme-force-dark .links-of-blogroll,
html body.theme-force-dark .site-author-widget .sidebar-profile-card,
html body.theme-force-dark .site-author-widget .sidebar-card {
  background: rgba(31, 31, 31, .96) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34) !important;
  color: #f3f3f1 !important;
}

html body.theme-force-dark .sidebar,
html body.theme-force-dark .sidebar-inner,
html body.theme-force-dark .sidebar-inner.affix,
html body.theme-force-dark .site-overview-wrap,
html body.theme-force-dark .site-author-widget,
html body.theme-force-dark .sidebar-panel,
html body.theme-force-dark .post-toc-wrap,
html body.theme-force-dark .site-author,
html body.theme-force-dark .site-state-wrap,
html body.theme-force-dark .links-of-author {
  background: transparent !important;
  color: #f3f3f1 !important;
}

html body.theme-force-dark .header-inner::before,
html body.theme-force-dark .post-card-info::before,
html body.theme-force-dark .post-card-info::after {
  background: rgba(31, 31, 31, .96) !important;
}

html body.theme-force-dark .site-title,
html body.theme-force-dark .site-author-name,
html body.theme-force-dark .sidebar-card-title,
html body.theme-force-dark .post-title,
html body.theme-force-dark .post-title a,
html body.theme-force-dark .page-title,
html body.theme-force-dark .album-title,
html body.theme-force-dark .movie-title,
html body.theme-force-dark .book-title,
html body.theme-force-dark h1,
html body.theme-force-dark h2,
html body.theme-force-dark h3,
html body.theme-force-dark h4 {
  color: #f6f6f4 !important;
  -webkit-text-fill-color: #f6f6f4 !important;
}

html body.theme-force-dark .post-body,
html body.theme-force-dark .post-body p,
html body.theme-force-dark .post-meta,
html body.theme-force-dark .page-subtitle,
html body.theme-force-dark .site-description,
html body.theme-force-dark .photo-caption,
html body.theme-force-dark .album-desc,
html body.theme-force-dark .movie-desc,
html body.theme-force-dark .book-desc,
html body.theme-force-dark .diary-text,
html body.theme-force-dark .pagination-info,
html body.theme-force-dark .site-state-item-name,
html body.theme-force-dark .site-state-item-count,
html body.theme-force-dark .links-of-author-item a,
html body.theme-force-dark .links-of-blogroll-item a,
html body.theme-force-dark .sidebar-popular-item a,
html body.theme-force-dark .sidebar-tag-cloud-list a,
html body.theme-force-dark .tag-cloud-tags a {
  color: #d7d6d2 !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.theme-force-dark a {
  color: #f0f0ee;
}

html body.theme-force-dark .main-menu .menu-item a,
html body.theme-force-dark .main-menu .menu-item span.exturl,
html body.theme-force-dark .links-of-author-item a,
html body.theme-force-dark .sidebar-profile-card .links-of-author-item a,
html body.theme-force-dark .links-of-blogroll-item a,
html body.theme-force-dark .sidebar-popular-item a,
html body.theme-force-dark .sidebar-tag-cloud-list a,
html body.theme-force-dark .tag-cloud-tags a,
html body.theme-force-dark .pagination a,
html body.theme-force-dark .pagination span,
html body.theme-force-dark .post-tags a {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  color: #eeeeeb !important;
}

html body.theme-force-dark .main-menu .menu-item a:hover,
html body.theme-force-dark .main-menu .menu-item-active > a,
html body.theme-force-dark .main-menu .menu-item-active > span.exturl,
html body.theme-force-dark .links-of-author-item a:hover,
html body.theme-force-dark .sidebar-profile-card .links-of-author-item a:hover,
html body.theme-force-dark .links-of-blogroll-item a:hover,
html body.theme-force-dark .sidebar-popular-item a:hover,
html body.theme-force-dark .sidebar-tag-cloud-list a:hover,
html body.theme-force-dark .tag-cloud-tags a:hover,
html body.theme-force-dark .pagination .current,
html body.theme-force-dark .pagination a:hover,
html body.theme-force-dark .post-tags a:hover {
  background: #f4f4f2 !important;
  border-color: #f4f4f2 !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

html body.theme-force-dark .menu-child,
html body.theme-force-dark .main-menu > .menu-item-has-children > .menu-child {
  background: rgba(31, 31, 31, .98) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .42) !important;
}

html body.theme-force-dark .photo-frame,
html body.theme-force-dark .album-card,
html body.theme-force-dark .book-card,
html body.theme-force-dark .movie-card,
html body.theme-force-dark .bake-card,
html body.theme-force-dark .game-platform-card {
  background: #202020 !important;
  border-color: rgba(255, 255, 255, .14) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .34) !important;
}

html body.theme-force-dark .book-actions,
html body.theme-force-dark .movie-actions,
html body.theme-force-dark .game-actions {
  background: #f5f5f3 !important;
  color: #181818 !important;
}

html body.theme-force-dark .photo-image,
html body.theme-force-dark input,
html body.theme-force-dark textarea,
html body.theme-force-dark select,
html body.theme-force-dark pre,
html body.theme-force-dark code {
  background: #171717 !important;
  border-color: rgba(255, 255, 255, .16) !important;
  color: #f3f3f1 !important;
}

html body.theme-force-dark .load-more-container,
html body.theme-force-dark .diary-footer,
html body.theme-force-dark .post-footer {
  border-color: rgba(255, 255, 255, .14) !important;
}

html body.theme-force-dark .load-more-btn,
html body.theme-force-dark .btn,
html body.theme-force-dark .post-button .btn,
html body.theme-force-dark .pagination .page-number,
html body.theme-force-dark .pagination .extend {
  background: transparent !important;
  border-color: rgba(244, 244, 242, .86) !important;
  color: #f4f4f2 !important;
}

html body.theme-force-dark .load-more-btn:hover:not(:disabled),
html body.theme-force-dark .btn:hover,
html body.theme-force-dark .post-button .btn:hover,
html body.theme-force-dark .pagination .page-number.current,
html body.theme-force-dark .pagination .page-number:hover,
html body.theme-force-dark .pagination .extend:hover {
  background: #f4f4f2 !important;
  border-color: #f4f4f2 !important;
  color: #151515 !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .26) !important;
}

/* Final neutral dark sweep: keep it late and specific enough to beat page hotfixes. */
@media (prefers-color-scheme: dark) {
  html,
  html body:not(.theme-force-light),
  html body:not(.theme-force-light) .container,
  html body:not(.theme-force-light) .main {
    background:
      radial-gradient(circle at 12% -10%, rgba(255, 250, 240, .045), transparent 28%),
      linear-gradient(180deg, #11100f 0%, #171615 52%, #11100f 100%) !important;
    background-color: #11100f !important;
    background-image:
      radial-gradient(circle at 12% -10%, rgba(255, 250, 240, .045), transparent 28%),
      linear-gradient(180deg, #11100f 0%, #171615 52%, #11100f 100%) !important;
    color: #f3efe8 !important;
  }

  html body:not(.theme-force-light) .container .header .header-inner,
  html body:not(.theme-force-light) .container .header .header-inner::before,
  html body:not(.theme-force-light) .main-inner,
  html body:not(.theme-force-light) .content-wrap,
  html body:not(.theme-force-light) .content,
  html body:not(.theme-force-light) .content.index,
  html body:not(.theme-force-light) .content-wrap > .content:not(.index),
  html body:not(.theme-force-light) .content.page.posts-expand,
  html body:not(.theme-force-light) .content.post.posts-expand,
  html body:not(.theme-force-light) .content.post.posts-expand .post-block,
  html body:not(.theme-force-light) .post-block,
  html body:not(.theme-force-light) .gallery-container,
  html body:not(.theme-force-light) .gallery-wrapper,
  html body:not(.theme-force-light) .album-wrapper,
  html body:not(.theme-force-light) .books-container,
  html body:not(.theme-force-light) .books-wrapper,
  html body:not(.theme-force-light) .movies-container,
  html body:not(.theme-force-light) .movies-wrapper,
  html body:not(.theme-force-light) .bake-container,
  html body:not(.theme-force-light) .bake-wrapper,
  html body:not(.theme-force-light) .diary-container,
  html body:not(.theme-force-light) .diary-wrapper,
  html body:not(.theme-force-light) .lab-container,
  html body:not(.theme-force-light) .category-all-page,
  html body:not(.theme-force-light) .tag-cloud,
  html body:not(.theme-force-light) .archive,
  html body:not(.theme-force-light) .comments,
  html body:not(.theme-force-light) .games-container,
  html body:not(.theme-force-light) .games-header,
  html body:not(.theme-force-light) .game-empty {
    background: #1f1e1c !important;
    background-color: #1f1e1c !important;
    background-image: none !important;
    border-color: rgba(255, 250, 240, .14) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .36) !important;
    color: #f3efe8 !important;
  }

  html body:not(.theme-force-light) .sidebar-profile-card,
  html body:not(.theme-force-light) .sidebar-card,
  html body:not(.theme-force-light) .links-of-blogroll,
  html body:not(.theme-force-light) .site-author-widget .sidebar-profile-card,
  html body:not(.theme-force-light) .site-author-widget .sidebar-card,
  html body:not(.theme-force-light) .post-card-preview,
  html body:not(.theme-force-light) .post-card-info,
  html body:not(.theme-force-light) .gallery-card,
  html body:not(.theme-force-light) .album-card,
  html body:not(.theme-force-light) .book-card,
  html body:not(.theme-force-light) .movie-card,
  html body:not(.theme-force-light) .bake-card,
  html body:not(.theme-force-light) .diary-entry,
  html body:not(.theme-force-light) .diary-card,
  html body:not(.theme-force-light) .category-card,
  html body:not(.theme-force-light) .tag-card,
  html body:not(.theme-force-light) .games-list .game-card,
  html body:not(.theme-force-light) .game-card,
  html body:not(.theme-force-light) .category-stat-card,
  html body:not(.theme-force-light) .category-count-card {
    background: #272522 !important;
    background-color: #272522 !important;
    background-image: none !important;
    border-color: rgba(255, 250, 240, .13) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .32) !important;
    color: #f3efe8 !important;
  }

  html body:not(.theme-force-light) .book-actions,
  html body:not(.theme-force-light) .movie-buttons,
  html body:not(.theme-force-light) .game-actions,
  html body:not(.theme-force-light) .game-cover-placeholder,
  html body:not(.theme-force-light) .page-selector,
  html body:not(.theme-force-light) .category-selector,
  html body:not(.theme-force-light) .category-dropdown,
  html body:not(.theme-force-light) .category-option,
  html body:not(.theme-force-light) .photo-caption,
  html body:not(.theme-force-light) .movie-detail,
  html body:not(.theme-force-light) .lightbox-content {
    background: #24221f !important;
    background-color: #24221f !important;
    border-color: rgba(255, 250, 240, .14) !important;
    color: #f3efe8 !important;
  }

  html body:not(.theme-force-light) .site-title,
  html body:not(.theme-force-light) .site-author-name,
  html body:not(.theme-force-light) .sidebar-card-title,
  html body:not(.theme-force-light) .post-title,
  html body:not(.theme-force-light) .post-title a,
  html body:not(.theme-force-light) .page-title,
  html body:not(.theme-force-light) .games-title,
  html body:not(.theme-force-light) .game-name,
  html body:not(.theme-force-light) .game-name a,
  html body:not(.theme-force-light) .movie-title-overlay h3,
  html body:not(.theme-force-light) .book-title,
  html body:not(.theme-force-light) .album-title,
  html body:not(.theme-force-light) .diary-date,
  html body:not(.theme-force-light) .category-title,
  html body:not(.theme-force-light) h1,
  html body:not(.theme-force-light) h2,
  html body:not(.theme-force-light) h3,
  html body:not(.theme-force-light) h4 {
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
    text-shadow: none !important;
  }

  html body:not(.theme-force-light) .post-body,
  html body:not(.theme-force-light) .post-body p,
  html body:not(.theme-force-light) .post-meta,
  html body:not(.theme-force-light) .site-description,
  html body:not(.theme-force-light) .page-subtitle,
  html body:not(.theme-force-light) .games-subtitle,
  html body:not(.theme-force-light) .games-kicker,
  html body:not(.theme-force-light) .game-stats,
  html body:not(.theme-force-light) .game-note,
  html body:not(.theme-force-light) .album-desc,
  html body:not(.theme-force-light) .book-desc,
  html body:not(.theme-force-light) .movie-desc,
  html body:not(.theme-force-light) .diary-text,
  html body:not(.theme-force-light) .diary-content,
  html body:not(.theme-force-light) .work-info,
  html body:not(.theme-force-light) .pagination-info,
  html body:not(.theme-force-light) .site-state-item-name,
  html body:not(.theme-force-light) .site-state-item-count {
    color: #d8d1c6 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body:not(.theme-force-light) .main-menu .menu-item a,
  html body:not(.theme-force-light) .main-menu .menu-item span.exturl,
  html body:not(.theme-force-light) .game-platform-tab,
  html body:not(.theme-force-light) .game-action,
  html body:not(.theme-force-light) .pagination-btn,
  html body:not(.theme-force-light) .page-selector,
  html body:not(.theme-force-light) .load-more-btn,
  html body:not(.theme-force-light) .btn,
  html body:not(.theme-force-light) .post-button .btn,
  html body:not(.theme-force-light) .book-buttons .btn,
  html body:not(.theme-force-light) .movie-buttons .btn,
  html body:not(.theme-force-light) .links-of-author-item a,
  html body:not(.theme-force-light) .links-of-blogroll-item a,
  html body:not(.theme-force-light) .sidebar-popular-item a,
  html body:not(.theme-force-light) .sidebar-tag-cloud-list a,
  html body:not(.theme-force-light) .tag-cloud-tags a,
  html body:not(.theme-force-light) .post-tags a,
  html body:not(.theme-force-light) .pagination a,
  html body:not(.theme-force-light) .pagination span {
    background: rgba(255, 250, 240, .08) !important;
    border-color: rgba(255, 250, 240, .18) !important;
    color: #f3efe8 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body:not(.theme-force-light) .main-menu .menu-item a:hover,
  html body:not(.theme-force-light) .main-menu .menu-item-active > a,
  html body:not(.theme-force-light) .main-menu .menu-item-active > span.exturl,
  html body:not(.theme-force-light) .game-platform-tab:hover,
  html body:not(.theme-force-light) .game-platform-tab.active,
  html body:not(.theme-force-light) .game-action:hover,
  html body:not(.theme-force-light) .pagination-btn:hover:not(:disabled),
  html body:not(.theme-force-light) .load-more-btn:hover:not(:disabled),
  html body:not(.theme-force-light) .btn:hover,
  html body:not(.theme-force-light) .book-buttons .btn:hover,
  html body:not(.theme-force-light) .movie-buttons .btn:hover,
  html body:not(.theme-force-light) .links-of-author-item a:hover,
  html body:not(.theme-force-light) .links-of-blogroll-item a:hover,
  html body:not(.theme-force-light) .sidebar-popular-item a:hover,
  html body:not(.theme-force-light) .sidebar-tag-cloud-list a:hover,
  html body:not(.theme-force-light) .tag-cloud-tags a:hover,
  html body:not(.theme-force-light) .post-tags a:hover,
  html body:not(.theme-force-light) .pagination .current,
  html body:not(.theme-force-light) .pagination a:hover {
    background: #fffaf1 !important;
    border-color: #fffaf1 !important;
    color: #151413 !important;
    -webkit-text-fill-color: #151413 !important;
  }
}

html body.theme-force-dark,
html body.theme-force-dark .container,
html body.theme-force-dark .main {
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 250, 240, .045), transparent 28%),
    linear-gradient(180deg, #11100f 0%, #171615 52%, #11100f 100%) !important;
  background-color: #11100f !important;
  background-image:
    radial-gradient(circle at 12% -10%, rgba(255, 250, 240, .045), transparent 28%),
    linear-gradient(180deg, #11100f 0%, #171615 52%, #11100f 100%) !important;
  color: #f3efe8 !important;
}

html body.theme-force-dark .container .header .header-inner,
html body.theme-force-dark .container .header .header-inner::before,
html body.theme-force-dark .main-inner,
html body.theme-force-dark .content-wrap,
html body.theme-force-dark .content,
html body.theme-force-dark .content.index,
html body.theme-force-dark .content-wrap > .content:not(.index),
html body.theme-force-dark .content.page.posts-expand,
html body.theme-force-dark .content.post.posts-expand,
html body.theme-force-dark .content.post.posts-expand .post-block,
html body.theme-force-dark .post-block,
html body.theme-force-dark .gallery-container,
html body.theme-force-dark .gallery-wrapper,
html body.theme-force-dark .album-wrapper,
html body.theme-force-dark .books-container,
html body.theme-force-dark .books-wrapper,
html body.theme-force-dark .movies-container,
html body.theme-force-dark .movies-wrapper,
html body.theme-force-dark .bake-container,
html body.theme-force-dark .bake-wrapper,
html body.theme-force-dark .diary-container,
html body.theme-force-dark .diary-wrapper,
html body.theme-force-dark .lab-container,
html body.theme-force-dark .category-all-page,
html body.theme-force-dark .tag-cloud,
html body.theme-force-dark .archive,
html body.theme-force-dark .comments,
html body.theme-force-dark .games-container,
html body.theme-force-dark .games-header,
html body.theme-force-dark .game-empty {
  background: #1f1e1c !important;
  background-color: #1f1e1c !important;
  background-image: none !important;
  border-color: rgba(255, 250, 240, .14) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .36) !important;
  color: #f3efe8 !important;
}

html body.theme-force-dark .sidebar-profile-card,
html body.theme-force-dark .sidebar-card,
html body.theme-force-dark .links-of-blogroll,
html body.theme-force-dark .site-author-widget .sidebar-profile-card,
html body.theme-force-dark .site-author-widget .sidebar-card,
html body.theme-force-dark .post-card-preview,
html body.theme-force-dark .post-card-info,
html body.theme-force-dark .gallery-card,
html body.theme-force-dark .album-card,
html body.theme-force-dark .book-card,
html body.theme-force-dark .movie-card,
html body.theme-force-dark .bake-card,
html body.theme-force-dark .diary-entry,
html body.theme-force-dark .diary-card,
html body.theme-force-dark .category-card,
html body.theme-force-dark .tag-card,
html body.theme-force-dark .games-list .game-card,
html body.theme-force-dark .game-card,
html body.theme-force-dark .category-stat-card,
html body.theme-force-dark .category-count-card {
  background: #272522 !important;
  background-color: #272522 !important;
  background-image: none !important;
  border-color: rgba(255, 250, 240, .13) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32) !important;
  color: #f3efe8 !important;
}

html body.theme-force-dark .book-actions,
html body.theme-force-dark .movie-buttons,
html body.theme-force-dark .game-actions,
html body.theme-force-dark .game-cover-placeholder,
html body.theme-force-dark .page-selector,
html body.theme-force-dark .category-selector,
html body.theme-force-dark .category-dropdown,
html body.theme-force-dark .category-option,
html body.theme-force-dark .photo-caption,
html body.theme-force-dark .movie-detail,
html body.theme-force-dark .lightbox-content {
  background: #24221f !important;
  background-color: #24221f !important;
  border-color: rgba(255, 250, 240, .14) !important;
  color: #f3efe8 !important;
}

html body.theme-force-dark .site-title,
html body.theme-force-dark .site-author-name,
html body.theme-force-dark .sidebar-card-title,
html body.theme-force-dark .post-title,
html body.theme-force-dark .post-title a,
html body.theme-force-dark .page-title,
html body.theme-force-dark .games-title,
html body.theme-force-dark .game-name,
html body.theme-force-dark .game-name a,
html body.theme-force-dark .movie-title-overlay h3,
html body.theme-force-dark .book-title,
html body.theme-force-dark .album-title,
html body.theme-force-dark .diary-date,
html body.theme-force-dark .category-title,
html body.theme-force-dark h1,
html body.theme-force-dark h2,
html body.theme-force-dark h3,
html body.theme-force-dark h4 {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
  text-shadow: none !important;
}

html body.theme-force-dark .post-body,
html body.theme-force-dark .post-body p,
html body.theme-force-dark .post-meta,
html body.theme-force-dark .site-description,
html body.theme-force-dark .page-subtitle,
html body.theme-force-dark .games-subtitle,
html body.theme-force-dark .games-kicker,
html body.theme-force-dark .game-stats,
html body.theme-force-dark .game-note,
html body.theme-force-dark .album-desc,
html body.theme-force-dark .book-desc,
html body.theme-force-dark .movie-desc,
html body.theme-force-dark .diary-text,
html body.theme-force-dark .diary-content,
html body.theme-force-dark .work-info,
html body.theme-force-dark .pagination-info,
html body.theme-force-dark .site-state-item-name,
html body.theme-force-dark .site-state-item-count {
  color: #d8d1c6 !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.theme-force-dark .main-menu .menu-item a,
html body.theme-force-dark .main-menu .menu-item span.exturl,
html body.theme-force-dark .game-platform-tab,
html body.theme-force-dark .game-action,
html body.theme-force-dark .pagination-btn,
html body.theme-force-dark .page-selector,
html body.theme-force-dark .load-more-btn,
html body.theme-force-dark .btn,
html body.theme-force-dark .post-button .btn,
html body.theme-force-dark .book-buttons .btn,
html body.theme-force-dark .movie-buttons .btn,
html body.theme-force-dark .links-of-author-item a,
html body.theme-force-dark .links-of-blogroll-item a,
html body.theme-force-dark .sidebar-popular-item a,
html body.theme-force-dark .sidebar-tag-cloud-list a,
html body.theme-force-dark .tag-cloud-tags a,
html body.theme-force-dark .post-tags a,
html body.theme-force-dark .pagination a,
html body.theme-force-dark .pagination span {
  background: rgba(255, 250, 240, .08) !important;
  border-color: rgba(255, 250, 240, .18) !important;
  color: #f3efe8 !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.theme-force-dark .main-menu .menu-item a:hover,
html body.theme-force-dark .main-menu .menu-item-active > a,
html body.theme-force-dark .main-menu .menu-item-active > span.exturl,
html body.theme-force-dark .game-platform-tab:hover,
html body.theme-force-dark .game-platform-tab.active,
html body.theme-force-dark .game-action:hover,
html body.theme-force-dark .pagination-btn:hover:not(:disabled),
html body.theme-force-dark .load-more-btn:hover:not(:disabled),
html body.theme-force-dark .btn:hover,
html body.theme-force-dark .book-buttons .btn:hover,
html body.theme-force-dark .movie-buttons .btn:hover,
html body.theme-force-dark .links-of-author-item a:hover,
html body.theme-force-dark .links-of-blogroll-item a:hover,
html body.theme-force-dark .sidebar-popular-item a:hover,
html body.theme-force-dark .sidebar-tag-cloud-list a:hover,
html body.theme-force-dark .tag-cloud-tags a:hover,
html body.theme-force-dark .post-tags a:hover,
html body.theme-force-dark .pagination .current,
html body.theme-force-dark .pagination a:hover {
  background: #fffaf1 !important;
  border-color: #fffaf1 !important;
  color: #151413 !important;
  -webkit-text-fill-color: #151413 !important;
}

/* Targeted day-mode fixes requested with the dark-mode pass. */
html body .movies-container #rabbitToggle,
html body .movies-container #rabbitToggleBack {
  display: none !important;
}

html body .categories-container .view-button,
html body .content.categories-page .view-button {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid #111 !important;
  box-shadow: none !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body .categories-container .view-button:hover,
html body .categories-container .view-button:active,
html body .content.categories-page .view-button:hover,
html body .content.categories-page .view-button:active {
  background: #111 !important;
  background-image: none !important;
  border-color: #111 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body .bake-card {
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease !important;
}

html body .bake-card:hover {
  border-color: rgba(0, 0, 0, .16) !important;
  box-shadow: 0 18px 42px rgba(20, 24, 32, .14) !important;
  transform: translateY(-6px) !important;
}

html body .bake-card:hover .bake-card-image {
  transform: scale(1.035) !important;
}

/* Dark mode correction layer: neutral, warm black, no blue/purple cast. */
@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) {
    --kylo-dark-bg: #12110f;
    --kylo-dark-panel: #1f1d1a;
    --kylo-dark-card: #292621;
    --kylo-dark-soft: #343028;
    --kylo-dark-border: rgba(255, 246, 232, .14);
    --kylo-dark-border-strong: rgba(255, 246, 232, .24);
    --kylo-dark-text: #f4efe6;
    --kylo-dark-muted: #d7cfc2;
    --kylo-dark-faint: #aaa094;
    --kylo-dark-invert: #151311;
    --kylo-dark-hot: #fff8ea;
    color-scheme: dark;
  }

  html body:not(.theme-force-light) :is(.main-inner, .content-wrap, .content, .sidebar, .sidebar-inner, .sidebar-inner.affix, .site-overview-wrap, .site-author-widget, .sidebar-panel, .site-author, .site-state-wrap, .links-of-author, .load-more-container, .diary-footer, .post-footer, .games-container, .gallery-wrapper, .album-wrapper, .books-wrapper, .movies-wrapper, .bake-wrapper, .diary-wrapper, .categories-container, .album-page-shell, .gallery-container, .books-container, .movies-container, .bake-container, .diary-container) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) :is(.main-inner, .content-wrap, .content, .sidebar, .sidebar-inner, .site-overview-wrap, .site-author-widget, .sidebar-panel, .gallery-wrapper, .album-wrapper, .books-wrapper, .movies-wrapper, .bake-wrapper, .diary-wrapper, .categories-container, .gallery-container, .books-container, .movies-container, .bake-container, .diary-container)::before,
  html body:not(.theme-force-light) :is(.main-inner, .content-wrap, .content, .sidebar, .sidebar-inner, .site-overview-wrap, .site-author-widget, .sidebar-panel, .gallery-wrapper, .album-wrapper, .books-wrapper, .movies-wrapper, .bake-wrapper, .diary-wrapper, .categories-container, .gallery-container, .books-container, .movies-container, .bake-container, .diary-container)::after {
    background: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) :is(.post-block, .post-card-preview, .sidebar-profile-card, .sidebar-card, .links-of-blogroll, .post-toc-wrap, .post-toc, .album-card, .gallery-card, .photo-frame, .photo-item, .book-card, .movie-card, .bake-card, .diary-card, .diary-entry, .categories-header-glass, .category-card-glass, .category-stat-card, .category-count-card, .stat-card, .tag-cloud-section, .category-all-page, .lab-wrapper, .project-card, .games-header, .game-card, .game-empty, .comments, .giscus, .lightbox-content, .book-detail, .movie-detail, .popup.search-popup) {
    background: var(--kylo-dark-panel) !important;
    background-color: var(--kylo-dark-panel) !important;
    background-image: none !important;
    border: 1px solid var(--kylo-dark-border) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .34) !important;
    color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) :is(.post-card-info, .book-actions, .movie-actions, .movie-buttons, .game-actions, .book-summary, .movie-summary, .book-detail-footer, .movie-detail-footer, .book-rating, .movie-rating, .category-selector, .main-category-selector, .sub-category-dropdown, .category-dropdown, .category-option, .main-category-option, .sub-category-option, .game-cover-placeholder, .photo-caption, .search-header, .search-input-container, #search-result, .search-result-list, .search-result-title, .search-result) {
    background: var(--kylo-dark-card) !important;
    background-color: var(--kylo-dark-card) !important;
    background-image: none !important;
    border-color: var(--kylo-dark-border) !important;
    color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) :is(.post-card-info, .book-detail-footer, .movie-detail-footer, .lightbox-content, .book-summary, .movie-summary, .diary-content)::before,
  html body:not(.theme-force-light) :is(.post-card-info, .book-detail-footer, .movie-detail-footer, .lightbox-content, .book-summary, .movie-summary, .diary-content)::after {
    background: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) :is(.site-title, .site-author-name, .sidebar-card-title, .links-of-blogroll-title, .post-title, .post-title a, .page-title, .album-title, .movie-title, .movie-title-overlay h3, .book-title, .diary-date, .category-title, .category-all-title, .tag-cloud-title, .games-title, .game-name, .game-name a, .lab-wrapper h1, .lab-wrapper h2, .lab-wrapper h3, h1, h2, h3, h4) {
    color: var(--kylo-dark-text) !important;
    -webkit-text-fill-color: var(--kylo-dark-text) !important;
    text-shadow: none !important;
  }

  html body:not(.theme-force-light) :is(.post-body, .post-body p, .post-meta, .post-description, .post-card-info, .post-card-info p, .site-description, .page-subtitle, .sidebar-popular-item a, .sidebar-popular-item a span, .sidebar-popular-item time, .site-state-item-name, .site-state-item-count, .album-desc, .book-desc, .book-meta, .book-meta strong, .movie-desc, .movie-meta, .movie-meta strong, .diary-text, .diary-content, .work-info, .games-subtitle, .games-kicker, .game-stats, .game-note, .pagination-info, .footer-wrapper, .footer-wrapper *, .footer-inner, .footer-inner *) {
    color: var(--kylo-dark-muted) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body:not(.theme-force-light) .content.index .post-card-info :is(.post-meta, .post-meta *, .post-description, .post-body, .post-body *, .post-meta-item, .post-meta-item *, time, i) {
    color: var(--kylo-dark-muted) !important;
    -webkit-text-fill-color: var(--kylo-dark-muted) !important;
  }

  html body:not(.theme-force-light) .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a,
  html body:not(.theme-force-light) .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a > span,
  html body:not(.theme-force-light) .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a > time {
    color: var(--kylo-dark-muted) !important;
    -webkit-text-fill-color: var(--kylo-dark-muted) !important;
  }

  html body:not(.theme-force-light) .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:hover,
  html body:not(.theme-force-light) .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:focus-visible {
    background: var(--kylo-dark-hot) !important;
    border-color: var(--kylo-dark-hot) !important;
    color: var(--kylo-dark-invert) !important;
    -webkit-text-fill-color: var(--kylo-dark-invert) !important;
  }

  html body:not(.theme-force-light) .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:hover > span,
  html body:not(.theme-force-light) .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:hover > time,
  html body:not(.theme-force-light) .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:focus-visible > span,
  html body:not(.theme-force-light) .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:focus-visible > time {
    color: var(--kylo-dark-invert) !important;
    -webkit-text-fill-color: var(--kylo-dark-invert) !important;
  }

  html body:not(.theme-force-light) :is(a, a span, .post-button .btn, .btn, .load-more-btn, .download-btn, .game-action, .game-page-button, .pagination a, .pagination span, .page-number, .extend, .main-menu .menu-item a, .main-menu .menu-item span.exturl, .links-of-author-item a, .links-of-blogroll-item a, .sidebar-popular-item a, .sidebar-tag-cloud-list a, .tag-cloud-tags a, .tag-cloud-link, .post-tags a, .category-selector, .main-category-selector, .category-option, .main-category-option, .sub-category-option, .game-platform-tab, .game-achievement-more) {
    text-decoration: none !important;
  }

  html body:not(.theme-force-light) :is(.post-button .btn, .btn, .load-more-btn, .download-btn, .game-action, .game-page-button, .pagination a, .pagination span.page-number, .pagination .extend, .page-number, .extend, .main-menu .menu-item a, .main-menu .menu-item span.exturl, .links-of-author-item a, .links-of-blogroll-item a, .sidebar-popular-item a, .sidebar-tag-cloud-list a, .tag-cloud-tags a, .tag-cloud-link, .post-tags a, .category-selector, .main-category-selector, .category-option, .main-category-option, .sub-category-option, .game-platform-tab, .game-achievement-more) {
    background: rgba(255, 248, 234, .08) !important;
    background-image: none !important;
    border: 1px solid var(--kylo-dark-border) !important;
    box-shadow: none !important;
    color: var(--kylo-dark-text) !important;
    -webkit-text-fill-color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) :is(.post-button .btn, .btn, .load-more-btn, .download-btn, .game-action, .game-page-button, .pagination a, .pagination span.page-number, .pagination .extend, .main-menu .menu-item a, .main-menu .menu-item span.exturl, .links-of-author-item a, .links-of-blogroll-item a, .sidebar-popular-item a, .sidebar-tag-cloud-list a, .tag-cloud-tags a, .tag-cloud-link, .post-tags a, .category-selector, .main-category-selector, .category-option, .main-category-option, .sub-category-option, .game-platform-tab, .game-achievement-more):hover,
  html body:not(.theme-force-light) :is(.post-button .btn, .btn, .load-more-btn, .download-btn, .game-action, .game-page-button, .pagination a, .pagination span.page-number, .pagination .extend, .main-menu .menu-item a, .main-menu .menu-item span.exturl, .links-of-author-item a, .links-of-blogroll-item a, .sidebar-popular-item a, .sidebar-tag-cloud-list a, .tag-cloud-tags a, .tag-cloud-link, .post-tags a, .category-selector, .main-category-selector, .category-option, .main-category-option, .sub-category-option, .game-platform-tab, .game-achievement-more):focus-visible,
  html body:not(.theme-force-light) :is(.main-menu .menu-item-active > a, .main-menu .menu-item-active > span.exturl, .menu-item-active > a, .menu-item-active > span.exturl, .game-platform-tab.active, .game-page-button.active, .pagination .current, .pagination .page-number.current, .pagination span.current, .category-option.active, .main-category-option.active, .sub-category-option.active) {
    background: var(--kylo-dark-hot) !important;
    background-image: none !important;
    border-color: var(--kylo-dark-hot) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28) !important;
    color: var(--kylo-dark-invert) !important;
    -webkit-text-fill-color: var(--kylo-dark-invert) !important;
  }

  html body:not(.theme-force-light) :is(.post-button .btn, .btn, .load-more-btn, .download-btn, .game-action, .game-page-button, .pagination a, .pagination span.page-number, .pagination .extend, .main-menu .menu-item a, .main-menu .menu-item span.exturl, .links-of-author-item a, .links-of-blogroll-item a, .sidebar-popular-item a, .sidebar-tag-cloud-list a, .tag-cloud-tags a, .tag-cloud-link, .post-tags a, .category-selector, .main-category-selector, .category-option, .main-category-option, .sub-category-option, .game-platform-tab, .game-achievement-more):hover *,
  html body:not(.theme-force-light) :is(.main-menu .menu-item-active > a, .main-menu .menu-item-active > span.exturl, .menu-item-active > a, .menu-item-active > span.exturl, .game-platform-tab.active, .game-page-button.active, .pagination .current, .pagination .page-number.current, .pagination span.current, .category-option.active, .main-category-option.active, .sub-category-option.active) * {
    color: var(--kylo-dark-invert) !important;
    -webkit-text-fill-color: var(--kylo-dark-invert) !important;
  }

  html body:not(.theme-force-light) :is(.pagination a, .pagination span.page-number, .pagination .extend, .game-page-button) {
    border-radius: 10px !important;
    height: 38px !important;
    min-height: 38px !important;
    min-width: 38px !important;
    padding: 0 10px !important;
  }

  html body:not(.theme-force-light) :is(.post-toc-wrap, .post-toc, .post-toc .nav) {
    background: var(--kylo-dark-panel) !important;
    border-color: var(--kylo-dark-border) !important;
    color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) :is(.post-toc .nav-link, .post-toc .nav-link span, .post-toc ol, .post-toc li) {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--kylo-dark-muted) !important;
    -webkit-text-fill-color: var(--kylo-dark-muted) !important;
  }

  html body:not(.theme-force-light) :is(.post-toc .nav-link:hover, .post-toc .nav .active > .nav-link) {
    background: rgba(255, 248, 234, .1) !important;
    border-radius: 8px !important;
    color: var(--kylo-dark-text) !important;
    -webkit-text-fill-color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) :is(input, textarea, select, .search-input) {
    background: var(--kylo-dark-soft) !important;
    border: 1px solid var(--kylo-dark-border) !important;
    color: var(--kylo-dark-text) !important;
    -webkit-text-fill-color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) input::placeholder,
  html body:not(.theme-force-light) textarea::placeholder,
  html body:not(.theme-force-light) .search-input::placeholder {
    color: var(--kylo-dark-faint) !important;
    -webkit-text-fill-color: var(--kylo-dark-faint) !important;
  }

  html body:not(.theme-force-light) :is(.search-pop-overlay, .search-pop-overlay.search-active) {
    background: rgba(18, 17, 15, .72) !important;
    backdrop-filter: blur(7px) !important;
  }

  html body:not(.theme-force-light) :is(.local-search-pop-overlay, .popup.search-popup, .search-popup) {
    background: var(--kylo-dark-panel) !important;
    border: 1px solid var(--kylo-dark-border-strong) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5) !important;
    color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) :is(.search-result-list a, .search-result-title a, .search-result, #search-result a) {
    color: var(--kylo-dark-text) !important;
    -webkit-text-fill-color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) :is(.comments, .giscus, .giscus-frame, iframe.giscus-frame) {
    background: var(--kylo-dark-panel) !important;
    border-color: var(--kylo-dark-border) !important;
    color-scheme: dark;
  }

  html body:not(.theme-force-light) :is(.book-detail, .movie-detail, .lightbox-content) {
    scrollbar-color: rgba(255, 248, 234, .24) transparent;
  }

  html body:not(.theme-force-light) :is(.book-summary, .movie-summary) {
    border-left-color: var(--kylo-dark-border-strong) !important;
  }

  html body:not(.theme-force-light) :is(.book-category-tag, .movie-category-tag, .diary-tag, .post-count, .tag-item) {
    background: rgba(255, 248, 234, .08) !important;
    background-image: none !important;
    border-color: var(--kylo-dark-border) !important;
    box-shadow: none !important;
    color: var(--kylo-dark-text) !important;
    -webkit-text-fill-color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) .book-category-tag {
    background: rgba(255, 248, 234, .08) !important;
    background-image: none !important;
    border: 1px solid var(--kylo-dark-border) !important;
    box-shadow: none !important;
    color: var(--kylo-dark-text) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) :is(.tag-item:hover, .tag-item:active) {
    background: var(--kylo-dark-hot) !important;
    border-color: var(--kylo-dark-hot) !important;
    color: var(--kylo-dark-invert) !important;
    -webkit-text-fill-color: var(--kylo-dark-invert) !important;
  }

  html body:not(.theme-force-light) .categories-container .view-button,
  html body:not(.theme-force-light) .content.categories-page .view-button {
    background: rgba(255, 248, 234, .08) !important;
    background-image: none !important;
    border: 1px solid var(--kylo-dark-border) !important;
    box-shadow: none !important;
    color: var(--kylo-dark-text) !important;
    -webkit-text-fill-color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) .categories-container .view-button:hover,
  html body:not(.theme-force-light) .categories-container .view-button:active,
  html body:not(.theme-force-light) .content.categories-page .view-button:hover,
  html body:not(.theme-force-light) .content.categories-page .view-button:active {
    background: var(--kylo-dark-hot) !important;
    background-image: none !important;
    border-color: var(--kylo-dark-hot) !important;
    color: var(--kylo-dark-invert) !important;
    -webkit-text-fill-color: var(--kylo-dark-invert) !important;
  }

  html body:not(.theme-force-light) .game-platform-tab,
  html body:not(.theme-force-light) .game-platform-pill {
    --game-platform-icon-inner: var(--kylo-dark-invert);
  }

  html body:not(.theme-force-light) .game-platform-tab:hover,
  html body:not(.theme-force-light) .game-platform-tab.active {
    --game-platform-icon-inner: var(--kylo-dark-hot);
  }

  html body:not(.theme-force-light) .game-platform-pill {
    background: #111 !important;
    border: 1px solid var(--kylo-dark-border) !important;
    color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) .platform-epic-mark path:first-child {
    fill: currentColor !important;
  }

  html body:not(.theme-force-light) .platform-epic-mark path:nth-child(2),
  html body:not(.theme-force-light) .platform-epic-text {
    fill: var(--game-platform-icon-inner, var(--kylo-dark-invert)) !important;
  }

  html body:not(.theme-force-light) :is(.game-achievement, .game-achievement-more) {
    background: var(--kylo-dark-card) !important;
    border-color: var(--kylo-dark-border) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22) !important;
    color: var(--kylo-dark-text) !important;
    -webkit-text-fill-color: var(--kylo-dark-text) !important;
  }

  html body:not(.theme-force-light) :is(.game-achievement:hover, .game-achievement-more:hover) {
    background: var(--kylo-dark-hot) !important;
    border-color: var(--kylo-dark-hot) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .28) !important;
    color: var(--kylo-dark-invert) !important;
    -webkit-text-fill-color: var(--kylo-dark-invert) !important;
  }

  html body:not(.theme-force-light) :is(.game-achievement:hover *, .game-achievement-more:hover *) {
    color: var(--kylo-dark-invert) !important;
    -webkit-text-fill-color: var(--kylo-dark-invert) !important;
  }

  html body:not(.theme-force-light) :is(.bake-card:hover, .book-card:hover, .movie-card:hover, .album-card:hover, .gallery-card:hover, .photo-frame:hover, .game-card:hover, .diary-card:hover, .project-card:hover) {
    border-color: var(--kylo-dark-border-strong) !important;
    box-shadow: 0 22px 52px rgba(0, 0, 0, .42) !important;
  }

  html body:not(.theme-force-light) .footer {
    background: transparent !important;
    color: var(--kylo-dark-muted) !important;
  }
}

html body.theme-force-dark {
  --kylo-dark-bg: #12110f;
  --kylo-dark-panel: #1f1d1a;
  --kylo-dark-card: #292621;
  --kylo-dark-soft: #343028;
  --kylo-dark-border: rgba(255, 246, 232, .14);
  --kylo-dark-border-strong: rgba(255, 246, 232, .24);
  --kylo-dark-text: #f4efe6;
  --kylo-dark-muted: #d7cfc2;
  --kylo-dark-faint: #aaa094;
  --kylo-dark-invert: #151311;
  --kylo-dark-hot: #fff8ea;
  color-scheme: dark;
}

html body.theme-force-dark :is(.main-inner, .content-wrap, .content, .sidebar, .sidebar-inner, .sidebar-inner.affix, .site-overview-wrap, .site-author-widget, .sidebar-panel, .site-author, .site-state-wrap, .links-of-author, .load-more-container, .diary-footer, .post-footer, .games-container, .gallery-wrapper, .album-wrapper, .books-wrapper, .movies-wrapper, .bake-wrapper, .diary-wrapper, .categories-container, .album-page-shell, .gallery-container, .books-container, .movies-container, .bake-container, .diary-container) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html body.theme-force-dark :is(.main-inner, .content-wrap, .content, .sidebar, .sidebar-inner, .site-overview-wrap, .site-author-widget, .sidebar-panel, .gallery-wrapper, .album-wrapper, .books-wrapper, .movies-wrapper, .bake-wrapper, .diary-wrapper, .categories-container, .gallery-container, .books-container, .movies-container, .bake-container, .diary-container)::before,
html body.theme-force-dark :is(.main-inner, .content-wrap, .content, .sidebar, .sidebar-inner, .site-overview-wrap, .site-author-widget, .sidebar-panel, .gallery-wrapper, .album-wrapper, .books-wrapper, .movies-wrapper, .bake-wrapper, .diary-wrapper, .categories-container, .gallery-container, .books-container, .movies-container, .bake-container, .diary-container)::after {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html body.theme-force-dark :is(.post-block, .post-card-preview, .sidebar-profile-card, .sidebar-card, .links-of-blogroll, .post-toc-wrap, .post-toc, .album-card, .gallery-card, .photo-frame, .photo-item, .book-card, .movie-card, .bake-card, .diary-card, .diary-entry, .categories-header-glass, .category-card-glass, .category-stat-card, .category-count-card, .stat-card, .tag-cloud-section, .category-all-page, .lab-wrapper, .project-card, .games-header, .game-card, .game-empty, .comments, .giscus, .lightbox-content, .book-detail, .movie-detail, .popup.search-popup) {
  background: var(--kylo-dark-panel) !important;
  background-color: var(--kylo-dark-panel) !important;
  background-image: none !important;
  border: 1px solid var(--kylo-dark-border) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34) !important;
  color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark :is(.post-card-info, .book-actions, .movie-actions, .movie-buttons, .game-actions, .book-summary, .movie-summary, .book-detail-footer, .movie-detail-footer, .book-rating, .movie-rating, .category-selector, .main-category-selector, .sub-category-dropdown, .category-dropdown, .category-option, .main-category-option, .sub-category-option, .game-cover-placeholder, .photo-caption, .search-header, .search-input-container, #search-result, .search-result-list, .search-result-title, .search-result) {
  background: var(--kylo-dark-card) !important;
  background-color: var(--kylo-dark-card) !important;
  background-image: none !important;
  border-color: var(--kylo-dark-border) !important;
  color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark :is(.post-card-info, .book-detail-footer, .movie-detail-footer, .lightbox-content, .book-summary, .movie-summary, .diary-content)::before,
html body.theme-force-dark :is(.post-card-info, .book-detail-footer, .movie-detail-footer, .lightbox-content, .book-summary, .movie-summary, .diary-content)::after {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html body.theme-force-dark :is(.site-title, .site-author-name, .sidebar-card-title, .links-of-blogroll-title, .post-title, .post-title a, .page-title, .album-title, .movie-title, .movie-title-overlay h3, .book-title, .diary-date, .category-title, .category-all-title, .tag-cloud-title, .games-title, .game-name, .game-name a, .lab-wrapper h1, .lab-wrapper h2, .lab-wrapper h3, h1, h2, h3, h4) {
  color: var(--kylo-dark-text) !important;
  -webkit-text-fill-color: var(--kylo-dark-text) !important;
  text-shadow: none !important;
}

html body.theme-force-dark :is(.post-body, .post-body p, .post-meta, .post-description, .post-card-info, .post-card-info p, .site-description, .page-subtitle, .sidebar-popular-item a, .sidebar-popular-item a span, .sidebar-popular-item time, .site-state-item-name, .site-state-item-count, .album-desc, .book-desc, .book-meta, .book-meta strong, .movie-desc, .movie-meta, .movie-meta strong, .diary-text, .diary-content, .work-info, .games-subtitle, .games-kicker, .game-stats, .game-note, .pagination-info, .footer-wrapper, .footer-wrapper *, .footer-inner, .footer-inner *) {
  color: var(--kylo-dark-muted) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.theme-force-dark .content.index .post-card-info :is(.post-meta, .post-meta *, .post-description, .post-body, .post-body *, .post-meta-item, .post-meta-item *, time, i) {
  color: var(--kylo-dark-muted) !important;
  -webkit-text-fill-color: var(--kylo-dark-muted) !important;
}

html body.theme-force-dark .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a,
html body.theme-force-dark .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a > span,
html body.theme-force-dark .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a > time {
  color: var(--kylo-dark-muted) !important;
  -webkit-text-fill-color: var(--kylo-dark-muted) !important;
}

html body.theme-force-dark .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:hover,
html body.theme-force-dark .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:focus-visible {
  background: var(--kylo-dark-hot) !important;
  border-color: var(--kylo-dark-hot) !important;
  color: var(--kylo-dark-invert) !important;
  -webkit-text-fill-color: var(--kylo-dark-invert) !important;
}

html body.theme-force-dark .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:hover > span,
html body.theme-force-dark .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:hover > time,
html body.theme-force-dark .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:focus-visible > span,
html body.theme-force-dark .sidebar-popular .sidebar-popular-list .sidebar-popular-item > a:focus-visible > time {
  color: var(--kylo-dark-invert) !important;
  -webkit-text-fill-color: var(--kylo-dark-invert) !important;
}

html body.theme-force-dark :is(a, a span, .post-button .btn, .btn, .load-more-btn, .download-btn, .game-action, .game-page-button, .pagination a, .pagination span, .page-number, .extend, .main-menu .menu-item a, .main-menu .menu-item span.exturl, .links-of-author-item a, .links-of-blogroll-item a, .sidebar-popular-item a, .sidebar-tag-cloud-list a, .tag-cloud-tags a, .tag-cloud-link, .post-tags a, .category-selector, .main-category-selector, .category-option, .main-category-option, .sub-category-option, .game-platform-tab, .game-achievement-more) {
  text-decoration: none !important;
}

html body.theme-force-dark :is(.post-button .btn, .btn, .load-more-btn, .download-btn, .game-action, .game-page-button, .pagination a, .pagination span.page-number, .pagination .extend, .page-number, .extend, .main-menu .menu-item a, .main-menu .menu-item span.exturl, .links-of-author-item a, .links-of-blogroll-item a, .sidebar-popular-item a, .sidebar-tag-cloud-list a, .tag-cloud-tags a, .tag-cloud-link, .post-tags a, .category-selector, .main-category-selector, .category-option, .main-category-option, .sub-category-option, .game-platform-tab, .game-achievement-more) {
  background: rgba(255, 248, 234, .08) !important;
  background-image: none !important;
  border: 1px solid var(--kylo-dark-border) !important;
  box-shadow: none !important;
  color: var(--kylo-dark-text) !important;
  -webkit-text-fill-color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark :is(.post-button .btn, .btn, .load-more-btn, .download-btn, .game-action, .game-page-button, .pagination a, .pagination span.page-number, .pagination .extend, .main-menu .menu-item a, .main-menu .menu-item span.exturl, .links-of-author-item a, .links-of-blogroll-item a, .sidebar-popular-item a, .sidebar-tag-cloud-list a, .tag-cloud-tags a, .tag-cloud-link, .post-tags a, .category-selector, .main-category-selector, .category-option, .main-category-option, .sub-category-option, .game-platform-tab, .game-achievement-more):hover,
html body.theme-force-dark :is(.post-button .btn, .btn, .load-more-btn, .download-btn, .game-action, .game-page-button, .pagination a, .pagination span.page-number, .pagination .extend, .main-menu .menu-item a, .main-menu .menu-item span.exturl, .links-of-author-item a, .links-of-blogroll-item a, .sidebar-popular-item a, .sidebar-tag-cloud-list a, .tag-cloud-tags a, .tag-cloud-link, .post-tags a, .category-selector, .main-category-selector, .category-option, .main-category-option, .sub-category-option, .game-platform-tab, .game-achievement-more):focus-visible,
html body.theme-force-dark :is(.main-menu .menu-item-active > a, .main-menu .menu-item-active > span.exturl, .menu-item-active > a, .menu-item-active > span.exturl, .game-platform-tab.active, .game-page-button.active, .pagination .current, .pagination .page-number.current, .pagination span.current, .category-option.active, .main-category-option.active, .sub-category-option.active) {
  background: var(--kylo-dark-hot) !important;
  background-image: none !important;
  border-color: var(--kylo-dark-hot) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28) !important;
  color: var(--kylo-dark-invert) !important;
  -webkit-text-fill-color: var(--kylo-dark-invert) !important;
}

html body.theme-force-dark :is(.post-button .btn, .btn, .load-more-btn, .download-btn, .game-action, .game-page-button, .pagination a, .pagination span.page-number, .pagination .extend, .main-menu .menu-item a, .main-menu .menu-item span.exturl, .links-of-author-item a, .links-of-blogroll-item a, .sidebar-popular-item a, .sidebar-tag-cloud-list a, .tag-cloud-tags a, .tag-cloud-link, .post-tags a, .category-selector, .main-category-selector, .category-option, .main-category-option, .sub-category-option, .game-platform-tab, .game-achievement-more):hover *,
html body.theme-force-dark :is(.main-menu .menu-item-active > a, .main-menu .menu-item-active > span.exturl, .menu-item-active > a, .menu-item-active > span.exturl, .game-platform-tab.active, .game-page-button.active, .pagination .current, .pagination .page-number.current, .pagination span.current, .category-option.active, .main-category-option.active, .sub-category-option.active) * {
  color: var(--kylo-dark-invert) !important;
  -webkit-text-fill-color: var(--kylo-dark-invert) !important;
}

html body.theme-force-dark :is(.pagination a, .pagination span.page-number, .pagination .extend, .game-page-button) {
  border-radius: 10px !important;
  height: 38px !important;
  min-height: 38px !important;
  min-width: 38px !important;
  padding: 0 10px !important;
}

html body.theme-force-dark :is(.post-toc-wrap, .post-toc, .post-toc .nav) {
  background: var(--kylo-dark-panel) !important;
  border-color: var(--kylo-dark-border) !important;
  color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark :is(.post-toc .nav-link, .post-toc .nav-link span, .post-toc ol, .post-toc li) {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--kylo-dark-muted) !important;
  -webkit-text-fill-color: var(--kylo-dark-muted) !important;
}

html body.theme-force-dark :is(.post-toc .nav-link:hover, .post-toc .nav .active > .nav-link) {
  background: rgba(255, 248, 234, .1) !important;
  border-radius: 8px !important;
  color: var(--kylo-dark-text) !important;
  -webkit-text-fill-color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark :is(input, textarea, select, .search-input) {
  background: var(--kylo-dark-soft) !important;
  border: 1px solid var(--kylo-dark-border) !important;
  color: var(--kylo-dark-text) !important;
  -webkit-text-fill-color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark input::placeholder,
html body.theme-force-dark textarea::placeholder,
html body.theme-force-dark .search-input::placeholder {
  color: var(--kylo-dark-faint) !important;
  -webkit-text-fill-color: var(--kylo-dark-faint) !important;
}

html body.theme-force-dark :is(.search-pop-overlay, .search-pop-overlay.search-active) {
  background: rgba(18, 17, 15, .72) !important;
  backdrop-filter: blur(7px) !important;
}

html body.theme-force-dark :is(.local-search-pop-overlay, .popup.search-popup, .search-popup) {
  background: var(--kylo-dark-panel) !important;
  border: 1px solid var(--kylo-dark-border-strong) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5) !important;
  color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark :is(.search-result-list a, .search-result-title a, .search-result, #search-result a) {
  color: var(--kylo-dark-text) !important;
  -webkit-text-fill-color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark :is(.comments, .giscus, .giscus-frame, iframe.giscus-frame) {
  background: var(--kylo-dark-panel) !important;
  border-color: var(--kylo-dark-border) !important;
  color-scheme: dark;
}

html body.theme-force-dark :is(.book-detail, .movie-detail, .lightbox-content) {
  scrollbar-color: rgba(255, 248, 234, .24) transparent;
}

html body.theme-force-dark :is(.book-summary, .movie-summary) {
  border-left-color: var(--kylo-dark-border-strong) !important;
}

html body.theme-force-dark :is(.book-category-tag, .movie-category-tag, .diary-tag, .post-count, .tag-item) {
  background: rgba(255, 248, 234, .08) !important;
  background-image: none !important;
  border-color: var(--kylo-dark-border) !important;
  box-shadow: none !important;
  color: var(--kylo-dark-text) !important;
  -webkit-text-fill-color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark .book-category-tag {
  background: rgba(255, 248, 234, .08) !important;
  background-image: none !important;
  border: 1px solid var(--kylo-dark-border) !important;
  box-shadow: none !important;
  color: var(--kylo-dark-text) !important;
  text-shadow: none !important;
  -webkit-text-fill-color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark :is(.tag-item:hover, .tag-item:active) {
  background: var(--kylo-dark-hot) !important;
  border-color: var(--kylo-dark-hot) !important;
  color: var(--kylo-dark-invert) !important;
  -webkit-text-fill-color: var(--kylo-dark-invert) !important;
}

html body.theme-force-dark .categories-container .view-button,
html body.theme-force-dark .content.categories-page .view-button {
  background: rgba(255, 248, 234, .08) !important;
  background-image: none !important;
  border: 1px solid var(--kylo-dark-border) !important;
  box-shadow: none !important;
  color: var(--kylo-dark-text) !important;
  -webkit-text-fill-color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark .categories-container .view-button:hover,
html body.theme-force-dark .categories-container .view-button:active,
html body.theme-force-dark .content.categories-page .view-button:hover,
html body.theme-force-dark .content.categories-page .view-button:active {
  background: var(--kylo-dark-hot) !important;
  background-image: none !important;
  border-color: var(--kylo-dark-hot) !important;
  color: var(--kylo-dark-invert) !important;
  -webkit-text-fill-color: var(--kylo-dark-invert) !important;
}

html body.theme-force-dark .game-platform-tab,
html body.theme-force-dark .game-platform-pill {
  --game-platform-icon-inner: var(--kylo-dark-invert);
}

html body.theme-force-dark .game-platform-tab:hover,
html body.theme-force-dark .game-platform-tab.active {
  --game-platform-icon-inner: var(--kylo-dark-hot);
}

html body.theme-force-dark .game-platform-pill {
  background: #111 !important;
  border: 1px solid var(--kylo-dark-border) !important;
  color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark .platform-epic-mark path:first-child {
  fill: currentColor !important;
}

html body.theme-force-dark .platform-epic-mark path:nth-child(2),
html body.theme-force-dark .platform-epic-text {
  fill: var(--game-platform-icon-inner, var(--kylo-dark-invert)) !important;
}

html body.theme-force-dark :is(.game-achievement, .game-achievement-more) {
  background: var(--kylo-dark-card) !important;
  border-color: var(--kylo-dark-border) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22) !important;
  color: var(--kylo-dark-text) !important;
  -webkit-text-fill-color: var(--kylo-dark-text) !important;
}

html body.theme-force-dark :is(.game-achievement:hover, .game-achievement-more:hover) {
  background: var(--kylo-dark-hot) !important;
  border-color: var(--kylo-dark-hot) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .28) !important;
  color: var(--kylo-dark-invert) !important;
  -webkit-text-fill-color: var(--kylo-dark-invert) !important;
}

html body.theme-force-dark :is(.game-achievement:hover *, .game-achievement-more:hover *) {
  color: var(--kylo-dark-invert) !important;
  -webkit-text-fill-color: var(--kylo-dark-invert) !important;
}

html body.theme-force-dark :is(.bake-card:hover, .book-card:hover, .movie-card:hover, .album-card:hover, .gallery-card:hover, .photo-frame:hover, .game-card:hover, .diary-card:hover, .project-card:hover) {
  border-color: var(--kylo-dark-border-strong) !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .42) !important;
}

html body.theme-force-dark .footer {
  background: transparent !important;
  color: var(--kylo-dark-muted) !important;
}

/* 2026-07-06 final component cleanup: keep dark mode neutral, remove leftover white caps/corners. */
html body.theme-force-light {
  background: #f6f7f9 !important;
  background-image: none !important;
  color: #111 !important;
}

html body.theme-force-light :is(.album-wrapper, .photo-frame, .photo-caption, .load-more-container, .pagination-info) {
  background-image: none !important;
}

html body.theme-force-light .album-wrapper {
  background: #fff !important;
  border: 1px solid rgba(17, 17, 17, .08) !important;
  box-shadow: 0 10px 28px rgba(17, 17, 17, .08) !important;
  color: #111 !important;
}

html body.theme-force-light .photo-frame {
  background: #f6f8fc !important;
  border: 1px solid rgba(17, 17, 17, .08) !important;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .1) !important;
}

html body.theme-force-light .photo-image {
  background: #f6f8fc !important;
}

html body.theme-force-light .photo-caption,
html body.theme-force-light .pagination-info,
html body.theme-force-light .album-wrapper .page-subtitle {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-light .load-more-container {
  border-top-color: rgba(17, 17, 17, .08) !important;
}

html body.theme-force-light .load-more-btn {
  background: #fff !important;
  border: 1px solid #111 !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-light .load-more-btn:hover:not(:disabled) {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body :is(.categories-container .view-button, .content.categories-page .view-button) {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid #111 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body :is(.categories-container .view-button, .content.categories-page .view-button) svg {
  fill: currentColor !important;
}

html body :is(.categories-container .view-button, .content.categories-page .view-button):is(:hover, :focus-visible, :active) {
  background: #111 !important;
  background-image: none !important;
  border-color: #111 !important;
  box-shadow: 0 12px 24px rgba(17, 17, 17, .16) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body .categories-container .category-card-wrapper:hover .category-card-glass,
html body .categories-container .category-card-wrapper.hover-active .category-card-glass {
  transform: translateY(-12px) !important;
  box-shadow: 0 20px 42px rgba(17, 17, 17, .16) !important;
}

html body .categories-container .category-card-wrapper:hover .category-card-image,
html body .categories-container .category-card-wrapper.hover-active .category-card-image {
  transform: scale(1.06) !important;
}

html body .categories-container .category-card-wrapper:hover .hover-overlay,
html body .categories-container .category-card-wrapper.hover-active .hover-overlay {
  opacity: 1 !important;
}

html body.theme-force-dark :is(
  .album-wrapper,
  .photo-frame,
  .photo-item,
  .book-card,
  .movie-card,
  .bake-card,
  .diary-content,
  .game-card,
  .category-card-glass,
  .tag-cloud-section,
  .post-toc-wrap,
  .post-toc,
  .sidebar-card,
  .comments,
  .giscus-comments,
  .lightbox-content,
  .book-detail,
  .movie-detail
)::before,
html body.theme-force-dark :is(
  .album-wrapper,
  .photo-frame,
  .photo-item,
  .book-card,
  .movie-card,
  .bake-card,
  .diary-content,
  .game-card,
  .category-card-glass,
  .tag-cloud-section,
  .post-toc-wrap,
  .post-toc,
  .sidebar-card,
  .comments,
  .giscus-comments,
  .lightbox-content,
  .book-detail,
  .movie-detail
)::after {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html body.theme-force-dark :is(.post-toc-wrap, .sidebar-panel.post-toc-wrap) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-top: 0 !important;
}

html body.theme-force-dark :is(.post-toc, .post-toc .nav) {
  background: #1d1b18 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .4) !important;
  color: #f4efe7 !important;
  overflow: hidden !important;
}

html body.theme-force-dark .post-toc::before,
html body.theme-force-dark .post-toc::after,
html body.theme-force-dark .post-toc-wrap::before,
html body.theme-force-dark .post-toc-wrap::after,
html body.theme-force-dark .sidebar-panel.post-toc-wrap::before,
html body.theme-force-dark .sidebar-panel.post-toc-wrap::after {
  display: none !important;
}

html body.theme-force-dark .post-toc-title {
  background: #111 !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  margin: 14px 16px 10px !important;
  padding: 10px 18px !important;
  text-align: center !important;
}

html body.theme-force-dark .post-toc :is(.nav-item, .nav-link) {
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark .post-toc .nav-link:hover,
html body.theme-force-dark .post-toc .nav .active > .nav-link {
  background: rgba(255, 248, 234, .1) !important;
  color: #fff8ea !important;
  -webkit-text-fill-color: #fff8ea !important;
}

html body.theme-force-dark :is(.comments, .giscus-comments, .giscus, iframe.giscus-frame) {
  background: #1d1b18 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color-scheme: dark !important;
}

html body.theme-force-dark :is(.album-wrapper, .photo-frame, .photo-caption, .photo-info-overlay, .load-more-container) {
  background-image: none !important;
}

html body.theme-force-dark .album-wrapper {
  background: #1d1b18 !important;
  border: 1px solid rgba(255, 248, 234, .13) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38) !important;
}

html body.theme-force-dark .photo-frame {
  background: #151412 !important;
  border: 1px solid rgba(255, 248, 234, .12) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32) !important;
}

html body.theme-force-dark .photo-image {
  background: #151412 !important;
}

html body.theme-force-dark .photo-caption {
  background: transparent !important;
  border: 0 !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
  margin-top: 9px !important;
}

html body.theme-force-dark :is(.book-detail, .movie-detail, .lightbox-content) {
  background: #1d1b18 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .52) !important;
}

html body.theme-force-dark :is(.book-summary, .movie-summary, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons) {
  background: #171614 !important;
  background-image: none !important;
  border-color: rgba(255, 248, 234, .12) !important;
  color: #e7dfd2 !important;
  -webkit-text-fill-color: #e7dfd2 !important;
}

html body.theme-force-dark :is(.diary-content, .diary-card .diary-content) {
  background: #1d1b18 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .13) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .32) !important;
  color: #f4efe7 !important;
}

html body.theme-force-dark .diary-content::before {
  background: rgba(255, 248, 234, .14) !important;
  height: 1px !important;
  transform: none !important;
}

html body.theme-force-dark .diary-card:hover .diary-content {
  box-shadow: 0 22px 54px rgba(0, 0, 0, .42) !important;
  transform: translateY(-6px) !important;
}

html body.theme-force-dark :is(.diary-body, .diary-text, .diary-text p, .diary-date, .diary-meta, .diary-weekday, .diary-mood) {
  color: #f0e9dc !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.theme-force-dark :is(.diary-weekday, .diary-mood, .diary-tag) {
  background: rgba(255, 248, 234, .08) !important;
  border-color: rgba(255, 248, 234, .16) !important;
}

html body.theme-force-dark .diary-footer {
  border-top-color: rgba(255, 248, 234, .12) !important;
}

html body.theme-force-dark :is(.pagination, .diary-pagination, .game-pagination) {
  background: transparent !important;
  background-image: none !important;
  border-color: rgba(255, 248, 234, .12) !important;
  box-shadow: none !important;
}

html body.theme-force-dark :is(.pagination .page-number, .pagination .extend, .pagination-btn, .page-selector, .pagination-info, .game-page-button) {
  background: rgba(255, 248, 234, .08) !important;
  border: 1px solid rgba(255, 248, 234, .16) !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(.pagination .page-number.current, .pagination span.page-number.current, .pagination span.current, .pagination a:hover, .pagination .extend:hover, .pagination-btn:not(:disabled):hover, .game-page-button.active, .game-page-button:hover) {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark :is(.tag-cloud-section, .tag-cloud, .tag-cloud-tags) {
  background: #1d1b18 !important;
  background-image: none !important;
  border-color: rgba(255, 248, 234, .13) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34) !important;
  color: #f4efe7 !important;
  overflow: visible !important;
}

html body.theme-force-dark .tag-cloud-title {
  background: transparent !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(.tag-cloud-tags a, .tag-cloud-link, .sidebar-tag-cloud-list a) {
  border: 1px solid rgba(255, 248, 234, .12) !important;
  box-shadow: none !important;
}

html body.theme-force-dark :is(.tag-cloud-tags a:hover, .tag-cloud-link:hover, .sidebar-tag-cloud-list a:hover) {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark .categories-container .category-card-wrapper:hover .category-card-glass,
html body.theme-force-dark .categories-container .category-card-wrapper.hover-active .category-card-glass {
  background: #211f1c !important;
  border-color: rgba(255, 248, 234, .22) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .46) !important;
}

html body.theme-force-dark :is(.categories-container .view-button, .content.categories-page .view-button) {
  background: rgba(255, 248, 234, .08) !important;
  border-color: rgba(255, 248, 234, .18) !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(.categories-container .view-button, .content.categories-page .view-button):is(:hover, :focus-visible, :active) {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark :is(.game-stats, .game-stats span, .game-stats span:first-child) {
  color: #f0e9dc !important;
  -webkit-text-fill-color: #f0e9dc !important;
}

html body.theme-force-dark :is(.game-achievement, .game-achievement-more) {
  background: #171614 !important;
  border-color: rgba(255, 248, 234, .16) !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(.game-achievement:hover, .game-achievement-more:hover) {
  background: rgba(255, 248, 234, .1) !important;
  border-color: rgba(255, 248, 234, .22) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .24) !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(.site-state, .site-state-item, .sidebar-popular-item > a) {
  background: transparent !important;
  border-color: rgba(255, 248, 234, .1) !important;
  color: #e7dfd2 !important;
}

html body.theme-force-dark .site-state-item-count {
  color: #fff8ea !important;
  -webkit-text-fill-color: #fff8ea !important;
}

html body.theme-force-dark .footer,
html body.theme-force-dark .footer-inner,
html body.theme-force-dark .footer-wrapper {
  background: transparent !important;
  color: #d8cfc2 !important;
  -webkit-text-fill-color: currentColor !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) :is(
    .album-wrapper,
    .photo-frame,
    .photo-item,
    .book-card,
    .movie-card,
    .bake-card,
    .diary-content,
    .game-card,
    .category-card-glass,
    .tag-cloud-section,
    .post-toc-wrap,
    .post-toc,
    .sidebar-card,
    .comments,
    .giscus-comments,
    .lightbox-content,
    .book-detail,
    .movie-detail
  )::before,
  html body:not(.theme-force-light) :is(
    .album-wrapper,
    .photo-frame,
    .photo-item,
    .book-card,
    .movie-card,
    .bake-card,
    .diary-content,
    .game-card,
    .category-card-glass,
    .tag-cloud-section,
    .post-toc-wrap,
    .post-toc,
    .sidebar-card,
    .comments,
    .giscus-comments,
    .lightbox-content,
    .book-detail,
    .movie-detail
  )::after {
    background: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) :is(.post-toc-wrap, .sidebar-panel.post-toc-wrap) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-top: 0 !important;
  }

  html body:not(.theme-force-light) :is(.post-toc, .post-toc .nav) {
    background: #1d1b18 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .4) !important;
    color: #f4efe7 !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .post-toc::before,
  html body:not(.theme-force-light) .post-toc::after,
  html body:not(.theme-force-light) .post-toc-wrap::before,
  html body:not(.theme-force-light) .post-toc-wrap::after,
  html body:not(.theme-force-light) .sidebar-panel.post-toc-wrap::before,
  html body:not(.theme-force-light) .sidebar-panel.post-toc-wrap::after {
    display: none !important;
  }

  html body:not(.theme-force-light) .post-toc-title {
    background: #111 !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    margin: 14px 16px 10px !important;
    padding: 10px 18px !important;
    text-align: center !important;
  }

  html body:not(.theme-force-light) .post-toc :is(.nav-item, .nav-link) {
    border: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .post-toc .nav-link:hover,
  html body:not(.theme-force-light) .post-toc .nav .active > .nav-link {
    background: rgba(255, 248, 234, .1) !important;
    color: #fff8ea !important;
    -webkit-text-fill-color: #fff8ea !important;
  }

  html body:not(.theme-force-light) :is(.comments, .giscus-comments, .giscus, iframe.giscus-frame) {
    background: #1d1b18 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    color-scheme: dark !important;
  }

  html body:not(.theme-force-light) .album-wrapper {
    background: #1d1b18 !important;
    border: 1px solid rgba(255, 248, 234, .13) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .38) !important;
  }

  html body:not(.theme-force-light) .photo-frame {
    background: #151412 !important;
    border: 1px solid rgba(255, 248, 234, .12) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .32) !important;
  }

  html body:not(.theme-force-light) .photo-image {
    background: #151412 !important;
  }

  html body:not(.theme-force-light) .photo-caption {
    background: transparent !important;
    border: 0 !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
    margin-top: 9px !important;
  }

  html body:not(.theme-force-light) :is(.book-detail, .movie-detail, .lightbox-content) {
    background: #1d1b18 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .52) !important;
  }

  html body:not(.theme-force-light) :is(.book-summary, .movie-summary, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons) {
    background: #171614 !important;
    background-image: none !important;
    border-color: rgba(255, 248, 234, .12) !important;
    color: #e7dfd2 !important;
    -webkit-text-fill-color: #e7dfd2 !important;
  }

  html body:not(.theme-force-light) :is(.diary-content, .diary-card .diary-content) {
    background: #1d1b18 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .13) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .32) !important;
    color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) .diary-content::before {
    background: rgba(255, 248, 234, .14) !important;
    height: 1px !important;
    transform: none !important;
  }

  html body:not(.theme-force-light) .diary-card:hover .diary-content {
    box-shadow: 0 22px 54px rgba(0, 0, 0, .42) !important;
    transform: translateY(-6px) !important;
  }

  html body:not(.theme-force-light) :is(.diary-body, .diary-text, .diary-text p, .diary-date, .diary-meta, .diary-weekday, .diary-mood) {
    color: #f0e9dc !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body:not(.theme-force-light) :is(.diary-weekday, .diary-mood, .diary-tag) {
    background: rgba(255, 248, 234, .08) !important;
    border-color: rgba(255, 248, 234, .16) !important;
  }

  html body:not(.theme-force-light) .diary-footer {
    border-top-color: rgba(255, 248, 234, .12) !important;
  }

  html body:not(.theme-force-light) :is(.pagination, .diary-pagination, .game-pagination) {
    background: transparent !important;
    background-image: none !important;
    border-color: rgba(255, 248, 234, .12) !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) :is(.pagination .page-number, .pagination .extend, .pagination-btn, .page-selector, .pagination-info, .game-page-button) {
    background: rgba(255, 248, 234, .08) !important;
    border: 1px solid rgba(255, 248, 234, .16) !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) :is(.pagination .page-number.current, .pagination span.page-number.current, .pagination span.current, .pagination a:hover, .pagination .extend:hover, .pagination-btn:not(:disabled):hover, .game-page-button.active, .game-page-button:hover) {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) :is(.tag-cloud-section, .tag-cloud, .tag-cloud-tags) {
    background: #1d1b18 !important;
    background-image: none !important;
    border-color: rgba(255, 248, 234, .13) !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .34) !important;
    color: #f4efe7 !important;
    overflow: visible !important;
  }

  html body:not(.theme-force-light) .tag-cloud-title {
    background: transparent !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) :is(.tag-cloud-tags a, .tag-cloud-link, .sidebar-tag-cloud-list a) {
    border: 1px solid rgba(255, 248, 234, .12) !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) :is(.tag-cloud-tags a:hover, .tag-cloud-link:hover, .sidebar-tag-cloud-list a:hover) {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) .categories-container .category-card-wrapper:hover .category-card-glass,
  html body:not(.theme-force-light) .categories-container .category-card-wrapper.hover-active .category-card-glass {
    background: #211f1c !important;
    border-color: rgba(255, 248, 234, .22) !important;
    box-shadow: 0 24px 56px rgba(0, 0, 0, .46) !important;
  }

  html body:not(.theme-force-light) :is(.categories-container .view-button, .content.categories-page .view-button) {
    background: rgba(255, 248, 234, .08) !important;
    border-color: rgba(255, 248, 234, .18) !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) :is(.categories-container .view-button, .content.categories-page .view-button):is(:hover, :focus-visible, :active) {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) :is(.game-stats, .game-stats span, .game-stats span:first-child) {
    color: #f0e9dc !important;
    -webkit-text-fill-color: #f0e9dc !important;
  }

  html body:not(.theme-force-light) :is(.game-achievement, .game-achievement-more) {
    background: #171614 !important;
    border-color: rgba(255, 248, 234, .16) !important;
    box-shadow: none !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) :is(.game-achievement:hover, .game-achievement-more:hover) {
    background: rgba(255, 248, 234, .1) !important;
    border-color: rgba(255, 248, 234, .22) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .24) !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) :is(.site-state, .site-state-item, .sidebar-popular-item > a) {
    background: transparent !important;
    border-color: rgba(255, 248, 234, .1) !important;
    color: #e7dfd2 !important;
  }

  html body:not(.theme-force-light) .site-state-item-count {
    color: #fff8ea !important;
    -webkit-text-fill-color: #fff8ea !important;
  }

  html body:not(.theme-force-light) .footer,
  html body:not(.theme-force-light) .footer-inner,
  html body:not(.theme-force-light) .footer-wrapper {
    background: transparent !important;
    color: #d8cfc2 !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

/* 2026-07-06 dark polish pass 2: remove hard blocks introduced by broad overrides. */
html body :is(.categories-container .view-button, .content.categories-page .view-button) {
  background: rgba(255, 255, 255, .78) !important;
  border-color: rgba(17, 17, 17, .24) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .08) !important;
  color: #111 !important;
  min-height: 48px !important;
  padding: 0 24px !important;
}

html body :is(.categories-container .view-button, .content.categories-page .view-button):is(:hover, :focus-visible, :active) {
  background: #111 !important;
  border-color: #111 !important;
  box-shadow: 0 14px 28px rgba(17, 17, 17, .18) !important;
  color: #fff !important;
}

html body :is(.categories-container .view-button, .content.categories-page .view-button):is(:hover, :focus-visible, :active) * {
  color: #fff !important;
  fill: currentColor !important;
}

html body.theme-force-dark :is(.container, .headband, .header, .main, .main-inner, .content-wrap),
html body.theme-force-dark :is(.container, .headband, .header, .main, .main-inner, .content-wrap)::before,
html body.theme-force-dark :is(.container, .headband, .header, .main, .main-inner, .content-wrap)::after {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body.theme-force-dark .header-inner {
  background: rgba(31, 29, 26, .66) !important;
  border-color: rgba(255, 248, 234, .14) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34) !important;
}

html body.theme-force-dark .header-inner::before,
html body.theme-force-dark .header-inner::after {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark canvas.fireworks,
html body.theme-force-dark #canvas-nest,
html body.theme-force-dark .canvas-nest {
  opacity: .9 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

html body.theme-force-dark .container {
  position: relative !important;
  z-index: 1 !important;
}

html body.theme-force-dark .sidebar-inner .sidebar-nav {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 0 10px !important;
  padding: 0 2px !important;
}

html body.theme-force-dark .sidebar-inner .sidebar-nav li {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #f4efe7 !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  padding: 0 0 10px !important;
  text-align: left !important;
  width: auto !important;
}

html body.theme-force-dark .sidebar-inner .post-toc-wrap {
  background: rgba(31, 29, 26, .9) !important;
  border: 1px solid rgba(255, 248, 234, .16) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32) !important;
  margin: 0 !important;
  overflow: hidden !important;
  padding: 14px !important;
}

html body.theme-force-dark .sidebar-inner .post-toc-wrap .post-toc,
html body.theme-force-dark .sidebar-inner .post-toc-wrap .post-toc .nav {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

html body.theme-force-dark .sidebar-inner .post-toc-wrap .nav {
  gap: 4px !important;
}

html body.theme-force-dark .sidebar-inner .post-toc-wrap .nav-link {
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #d8cfc2 !important;
  padding: 7px 8px !important;
}

html body.theme-force-dark .sidebar-inner .post-toc-wrap .nav-link * {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.theme-force-dark .sidebar-inner .post-toc-wrap .nav-link:is(:hover, :focus-visible),
html body.theme-force-dark .sidebar-inner .post-toc-wrap .nav .active > .nav-link {
  background: rgba(255, 248, 234, .08) !important;
  color: #fff8ea !important;
  -webkit-text-fill-color: #fff8ea !important;
}

html body.theme-force-dark .sidebar-inner .post-toc-wrap::before,
html body.theme-force-dark .sidebar-inner .post-toc-wrap::after,
html body.theme-force-dark .sidebar-inner .post-toc-wrap .post-toc::before,
html body.theme-force-dark .sidebar-inner .post-toc-wrap .post-toc::after {
  display: none !important;
}

html body.theme-force-dark .sidebar-profile-card .site-state-wrap,
html body.theme-force-dark .sidebar-profile-card .site-state,
html body.theme-force-dark .sidebar-profile-card .site-state-item,
html body.theme-force-dark .sidebar-profile-card .site-state-item a {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark .sidebar-profile-card .site-state {
  gap: 10px !important;
  overflow: visible !important;
}

html body.theme-force-dark .sidebar-profile-card .site-state-item,
html body.theme-force-dark .sidebar-profile-card .site-state-item a {
  min-width: 0 !important;
  padding: 0 !important;
}

html body.theme-force-dark .site-state-item-count {
  color: #f4efe7 !important;
  font-weight: 800 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark .site-state-item-name {
  color: #d8cfc2 !important;
  -webkit-text-fill-color: #d8cfc2 !important;
}

html body.theme-force-dark .sidebar-popular-item a::before {
  background: rgba(255, 248, 234, .08) !important;
  border: 1px solid rgba(255, 248, 234, .18) !important;
  color: #d8cfc2 !important;
  box-shadow: none !important;
}

html body.theme-force-dark .sidebar-popular-item a:is(:hover, :focus-visible)::before {
  background: #111 !important;
  border-color: rgba(255, 248, 234, .28) !important;
  color: #fff8ea !important;
}

html body.theme-force-dark :is(.game-actions, .game-pagination) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.theme-force-dark .game-actions:empty {
  display: none !important;
}

html body.theme-force-dark :is(.game-action, .game-page-button, .game-achievement-more) {
  background: rgba(255, 248, 234, .08) !important;
  border: 1px solid rgba(255, 248, 234, .16) !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(.game-action, .game-page-button, .game-achievement-more):is(:hover, :focus-visible),
html body.theme-force-dark .game-page-button.active {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark :is(.photo-wall, .photo-item, .photo-caption) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark .photo-frame {
  background: transparent !important;
  border: 1px solid rgba(255, 248, 234, .12) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28) !important;
  overflow: hidden !important;
}

html body.theme-force-dark .photo-image {
  background: transparent !important;
  border-radius: inherit !important;
}

html body.theme-force-dark .photo-caption {
  color: #f4efe7 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(.diary-card, .diary-content) {
  background-image: none !important;
  box-shadow: none !important;
}

html body.theme-force-dark .diary-card {
  background: transparent !important;
  border: 0 !important;
}

html body.theme-force-dark .diary-content {
  background: rgba(31, 29, 26, .9) !important;
  border: 1px solid rgba(255, 248, 234, .16) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28) !important;
  overflow: hidden !important;
}

html body.theme-force-dark .diary-content::before {
  background: linear-gradient(135deg, var(--card-color1, #ff9a9e), var(--card-color2, #fad0c4)) !important;
  content: "" !important;
  display: block !important;
  height: 4px !important;
  left: 0 !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform .3s ease !important;
}

html body.theme-force-dark .diary-card:hover .diary-content::before {
  transform: scaleX(1) !important;
}

html body.theme-force-dark :is(.book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons) {
  background: transparent !important;
  background-image: none !important;
  border-color: rgba(255, 248, 234, .12) !important;
  box-shadow: none !important;
}

html body.theme-force-dark :is(.book-summary, .movie-summary) {
  background: rgba(255, 248, 234, .06) !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #f0e9dc !important;
}

html body.theme-force-dark .download-btn {
  background: rgba(255, 248, 234, .08) !important;
  border: 1px solid rgba(255, 248, 234, .18) !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark .download-btn:is(:hover, :focus-visible) {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) :is(.container, .headband, .header, .main, .main-inner, .content-wrap),
  html body:not(.theme-force-light) :is(.container, .headband, .header, .main, .main-inner, .content-wrap)::before,
  html body:not(.theme-force-light) :is(.container, .headband, .header, .main, .main-inner, .content-wrap)::after {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .header-inner {
    background: rgba(31, 29, 26, .66) !important;
    border-color: rgba(255, 248, 234, .14) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .34) !important;
  }

  html body:not(.theme-force-light) .header-inner::before,
  html body:not(.theme-force-light) .header-inner::after {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) canvas.fireworks,
  html body:not(.theme-force-light) #canvas-nest,
  html body:not(.theme-force-light) .canvas-nest {
    opacity: .9 !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  html body:not(.theme-force-light) .container {
    position: relative !important;
    z-index: 1 !important;
  }

  html body:not(.theme-force-light) .sidebar-inner .sidebar-nav {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 0 10px !important;
    padding: 0 2px !important;
  }

  html body:not(.theme-force-light) .sidebar-inner .sidebar-nav li {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #f4efe7 !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    padding: 0 0 10px !important;
    text-align: left !important;
    width: auto !important;
  }

  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap {
    background: rgba(31, 29, 26, .9) !important;
    border: 1px solid rgba(255, 248, 234, .16) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .32) !important;
    margin: 0 !important;
    overflow: hidden !important;
    padding: 14px !important;
  }

  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap .post-toc,
  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap .post-toc .nav {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap .nav {
    gap: 4px !important;
  }

  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap .nav-link {
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #d8cfc2 !important;
    padding: 7px 8px !important;
  }

  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap .nav-link * {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap .nav-link:is(:hover, :focus-visible),
  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap .nav .active > .nav-link {
    background: rgba(255, 248, 234, .08) !important;
    color: #fff8ea !important;
    -webkit-text-fill-color: #fff8ea !important;
  }

  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap::before,
  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap::after,
  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap .post-toc::before,
  html body:not(.theme-force-light) .sidebar-inner .post-toc-wrap .post-toc::after {
    display: none !important;
  }

  html body:not(.theme-force-light) .sidebar-profile-card .site-state-wrap,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state-item,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state-item a {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .sidebar-profile-card .site-state {
    gap: 10px !important;
    overflow: visible !important;
  }

  html body:not(.theme-force-light) .sidebar-profile-card .site-state-item,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state-item a {
    min-width: 0 !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .site-state-item-count {
    color: #f4efe7 !important;
    font-weight: 800 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) .site-state-item-name {
    color: #d8cfc2 !important;
    -webkit-text-fill-color: #d8cfc2 !important;
  }

  html body:not(.theme-force-light) .sidebar-popular-item a::before {
    background: rgba(255, 248, 234, .08) !important;
    border: 1px solid rgba(255, 248, 234, .18) !important;
    color: #d8cfc2 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .sidebar-popular-item a:is(:hover, :focus-visible)::before {
    background: #111 !important;
    border-color: rgba(255, 248, 234, .28) !important;
    color: #fff8ea !important;
  }

  html body:not(.theme-force-light) :is(.game-actions, .game-pagination) {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .game-actions:empty {
    display: none !important;
  }

  html body:not(.theme-force-light) :is(.game-action, .game-page-button, .game-achievement-more) {
    background: rgba(255, 248, 234, .08) !important;
    border: 1px solid rgba(255, 248, 234, .16) !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) :is(.game-action, .game-page-button, .game-achievement-more):is(:hover, :focus-visible),
  html body:not(.theme-force-light) .game-page-button.active {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) :is(.photo-wall, .photo-item, .photo-caption) {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .photo-frame {
    background: transparent !important;
    border: 1px solid rgba(255, 248, 234, .12) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28) !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .photo-image {
    background: transparent !important;
    border-radius: inherit !important;
  }

  html body:not(.theme-force-light) .photo-caption {
    color: #f4efe7 !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) :is(.diary-card, .diary-content) {
    background-image: none !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .diary-card {
    background: transparent !important;
    border: 0 !important;
  }

  html body:not(.theme-force-light) .diary-content {
    background: rgba(31, 29, 26, .9) !important;
    border: 1px solid rgba(255, 248, 234, .16) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .28) !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .diary-content::before {
    background: linear-gradient(135deg, var(--card-color1, #ff9a9e), var(--card-color2, #fad0c4)) !important;
    content: "" !important;
    display: block !important;
    height: 4px !important;
    left: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    transform: scaleX(0) !important;
    transform-origin: left center !important;
    transition: transform .3s ease !important;
  }

  html body:not(.theme-force-light) .diary-card:hover .diary-content::before {
    transform: scaleX(1) !important;
  }

  html body:not(.theme-force-light) :is(.book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons) {
    background: transparent !important;
    background-image: none !important;
    border-color: rgba(255, 248, 234, .12) !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) :is(.book-summary, .movie-summary) {
    background: rgba(255, 248, 234, .06) !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: #f0e9dc !important;
  }

  html body:not(.theme-force-light) .download-btn {
    background: rgba(255, 248, 234, .08) !important;
    border: 1px solid rgba(255, 248, 234, .18) !important;
    box-shadow: none !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) .download-btn:is(:hover, :focus-visible) {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }
}

/* Final dark pass. Keep this block last. */
html body.theme-force-dark :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .diary-wrapper, .diary-container, .bake-container, .games-container),
html body.theme-force-dark :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .album-page-shell, .album-wrapper, .books-wrapper, .movies-wrapper, .diary-wrapper)::before,
html body.theme-force-dark :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .album-page-shell, .album-wrapper, .books-wrapper, .movies-wrapper, .diary-wrapper)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html body.theme-force-dark .sidebar-profile-card .site-state-wrap,
html body.theme-force-dark .sidebar-profile-card .site-state,
html body.theme-force-dark .sidebar-profile-card .site-state-item,
html body.theme-force-dark .sidebar-profile-card .site-state-item a,
html body.theme-force-dark .sidebar-profile-card .site-state-wrap::before,
html body.theme-force-dark .sidebar-profile-card .site-state-wrap::after,
html body.theme-force-dark .sidebar-profile-card .site-state::before,
html body.theme-force-dark .sidebar-profile-card .site-state::after,
html body.theme-force-dark .sidebar-profile-card .site-state-item::before,
html body.theme-force-dark .sidebar-profile-card .site-state-item::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark :is(.photo-wall, .photo-item, .photo-frame, .photo-caption),
html body.theme-force-dark :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::before,
html body.theme-force-dark :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark .photo-frame {
  overflow: hidden !important;
  padding: 0 !important;
}

html body.theme-force-dark .photo-caption {
  color: #f4efe7 !important;
  margin-top: 8px !important;
  padding: 0 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) .lightbox-content {
  background: rgba(31, 29, 26, .96) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .13) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48) !important;
  color: #f4efe7 !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-info-container, .movie-info-container, .book-meta, .movie-meta, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons),
html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-summary, .movie-summary, .book-detail-footer, .movie-detail-footer)::before,
html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-summary, .movie-summary, .book-detail-footer, .movie-detail-footer)::after {
  background-image: none !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-summary, .movie-summary) {
  background: rgba(255, 248, 234, .055) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: #f0e9dc !important;
}

html body.theme-force-dark :is(.movies-wrapper .movie-buttons, .books-wrapper .book-buttons) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark .diary-card,
html body.theme-force-dark .diary-card::before,
html body.theme-force-dark .diary-card::after {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark .diary-content {
  background: rgba(31, 29, 26, .9) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28) !important;
  transition: transform .34s cubic-bezier(.2, .9, .2, 1), box-shadow .34s ease, background-color .34s ease !important;
  will-change: transform !important;
}

html body.theme-force-dark .diary-card:hover .diary-content {
  box-shadow: 0 18px 46px rgba(0, 0, 0, .36) !important;
  transform: translateY(-8px) !important;
}

html body.theme-force-dark .diary-content::before {
  background: linear-gradient(135deg, var(--card-color1, #ff9a9e), var(--card-color2, #fad0c4)) !important;
  border: 0 !important;
  box-shadow: none !important;
  content: "" !important;
  height: 4px !important;
  left: 0 !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform .3s ease !important;
}

html body.theme-force-dark .diary-card:hover .diary-content::before {
  transform: scaleX(1) !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
  align-self: start !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  max-height: calc(100vh - 24px) !important;
  overflow: hidden !important;
  position: sticky !important;
  top: 18px !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) :is(.site-overview-wrap, .sidebar-profile-card, .sidebar-card, .links-of-blogroll, .sidebar-button, .cc-license, .back-to-top) {
  display: none !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  background: rgba(31, 29, 26, .92) !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 0 0 24px 24px !important;
  border-top: 0 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32) !important;
  flex: 1 1 auto !important;
  margin: -1px 0 0 !important;
  max-height: calc(100vh - 80px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 12px 14px 14px !important;
  position: relative !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-height: calc(100vh - 112px) !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc::-webkit-scrollbar,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .diary-wrapper, .diary-container, .bake-container, .games-container),
  html body:not(.theme-force-light) :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .album-page-shell, .album-wrapper, .books-wrapper, .movies-wrapper, .diary-wrapper)::before,
  html body:not(.theme-force-light) :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .album-page-shell, .album-wrapper, .books-wrapper, .movies-wrapper, .diary-wrapper)::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
    align-self: start !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    max-height: calc(100vh - 24px) !important;
    overflow: hidden !important;
    position: sticky !important;
    top: 18px !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) :is(.site-overview-wrap, .sidebar-profile-card, .sidebar-card, .links-of-blogroll, .sidebar-button, .cc-license, .back-to-top) {
    display: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav {
    max-height: calc(100vh - 112px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc::-webkit-scrollbar,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }
}


/* dark-toc-fix.css */
/* Dark TOC: mirror the light TOC structure, only recolor it. */

html body.theme-force-dark .sidebar:has(.post-toc-wrap) {
  --kylo-toc-shell: rgba(30, 27, 24, .96);
  --kylo-toc-shell-border: rgba(255, 244, 224, .18);
  --kylo-toc-title-bg: #fff3dc;
  --kylo-toc-title-text: #15120f;
  --kylo-toc-item-bg: rgba(255, 244, 224, .075);
  --kylo-toc-item-bg-sub: rgba(255, 244, 224, .055);
  --kylo-toc-item-border: rgba(255, 244, 224, .16);
  --kylo-toc-text: #f4ecdf;
  --kylo-toc-muted: rgba(244, 236, 223, .72);
  --kylo-toc-active-bg: #fff3dc;
  --kylo-toc-active-text: #15120f;
}

/* Final dark TOC behavior: inherit the fixed light-mode TOC mechanics. */
html body.theme-force-dark .sidebar:has(.post-toc-wrap) {
  align-self: flex-start !important;
  height: max-content !important;
  max-height: calc(100vh - 96px) !important;
  overflow: visible !important;
  position: sticky !important;
  top: 88px !important;
  z-index: 6 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .32)) !important;
  flex-direction: column !important;
  gap: 0 !important;
  height: auto !important;
  max-height: calc(100vh - 96px) !important;
  min-height: 0 !important;
  overflow: visible !important;
  position: static !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  background-clip: padding-box !important;
  box-shadow: none !important;
  position: relative !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav {
  border-radius: 26px 26px 0 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  border-radius: 0 0 26px 26px !important;
  margin: -1px 0 0 !important;
  max-height: calc(100vh - 158px) !important;
  overflow: hidden !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav {
  max-height: calc(100vh - 186px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) {
    align-self: flex-start !important;
    height: max-content !important;
    max-height: calc(100vh - 96px) !important;
    overflow: visible !important;
    position: sticky !important;
    top: 88px !important;
    z-index: 6 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .32)) !important;
    flex-direction: column !important;
    gap: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 96px) !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    background-clip: padding-box !important;
    box-shadow: none !important;
    position: relative !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav {
    border-radius: 26px 26px 0 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    border-radius: 0 0 26px 26px !important;
    margin: -1px 0 0 !important;
    max-height: calc(100vh - 158px) !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav {
    max-height: calc(100vh - 186px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap),
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
  background: transparent !important;
  box-shadow: none !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
  align-self: start !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  max-height: calc(100vh - 24px) !important;
  min-height: 0 !important;
  position: sticky !important;
  top: 18px !important;
  width: 100% !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) :is(
  .site-overview-wrap,
  .sidebar-profile-card,
  .sidebar-card,
  .links-of-blogroll,
  .sidebar-button,
  .cc-license,
  .back-to-top
) {
  display: none !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav {
  background: var(--kylo-toc-shell) !important;
  border: 1px solid var(--kylo-toc-shell-border) !important;
  border-bottom-color: rgba(255, 244, 224, .1) !important;
  border-radius: 26px 26px 0 0 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26) !important;
  box-sizing: border-box !important;
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 14px 14px 10px !important;
  width: 100% !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav li,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav li.sidebar-nav-toc {
  align-items: center !important;
  background: var(--kylo-toc-title-bg) !important;
  border: 1px solid var(--kylo-toc-title-bg) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  color: var(--kylo-toc-title-text) !important;
  display: flex !important;
  font-size: .88rem !important;
  font-weight: 800 !important;
  justify-content: center !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  text-align: center !important;
  text-shadow: none !important;
  width: 100% !important;
  -webkit-text-fill-color: var(--kylo-toc-title-text) !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  background: var(--kylo-toc-shell) !important;
  border: 1px solid var(--kylo-toc-shell-border) !important;
  border-radius: 0 0 26px 26px !important;
  border-top: 0 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26) !important;
  box-sizing: border-box !important;
  display: block !important;
  flex: 1 1 auto !important;
  margin: -1px 0 0 !important;
  max-height: calc(100vh - 80px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 14px 16px 18px !important;
  position: relative !important;
  width: 100% !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  max-height: calc(100vh - 112px) !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 !important;
  scrollbar-width: none !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc::-webkit-scrollbar,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc :is(ol, ul, li),
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-child {
  display: grid !important;
  gap: 6px !important;
  margin: 6px 0 0 10px !important;
  padding: 0 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link {
  align-items: flex-start !important;
  background: var(--kylo-toc-item-bg) !important;
  border: 1px solid var(--kylo-toc-item-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  color: var(--kylo-toc-text) !important;
  display: flex !important;
  gap: 6px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  min-height: 44px !important;
  padding: 9px 11px !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease !important;
  width: 100% !important;
  -webkit-text-fill-color: var(--kylo-toc-text) !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-child .nav-link {
  background: var(--kylo-toc-item-bg-sub) !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link::before,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link::after,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-item::before,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-item::after,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc::before,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc::after,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap::before,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap::after {
  display: none !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link *,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link span {
  background: transparent !important;
  border: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-number {
  color: var(--kylo-toc-muted) !important;
  flex: 0 0 auto !important;
  -webkit-text-fill-color: var(--kylo-toc-muted) !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-text {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible),
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav .active-current > .nav-link {
  background: var(--kylo-toc-active-bg) !important;
  border-color: var(--kylo-toc-active-bg) !important;
  color: var(--kylo-toc-active-text) !important;
  transform: translateY(-1px) !important;
  -webkit-text-fill-color: var(--kylo-toc-active-text) !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible) *,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link *,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav .active-current > .nav-link * {
  color: var(--kylo-toc-active-text) !important;
  -webkit-text-fill-color: var(--kylo-toc-active-text) !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) {
    --kylo-toc-shell: rgba(30, 27, 24, .96);
    --kylo-toc-shell-border: rgba(255, 244, 224, .18);
    --kylo-toc-title-bg: #fff3dc;
    --kylo-toc-title-text: #15120f;
    --kylo-toc-item-bg: rgba(255, 244, 224, .075);
    --kylo-toc-item-bg-sub: rgba(255, 244, 224, .055);
    --kylo-toc-item-border: rgba(255, 244, 224, .16);
    --kylo-toc-text: #f4ecdf;
    --kylo-toc-muted: rgba(244, 236, 223, .72);
    --kylo-toc-active-bg: #fff3dc;
    --kylo-toc-active-text: #15120f;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap),
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
    background: transparent !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
    align-self: start !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    max-height: calc(100vh - 24px) !important;
    min-height: 0 !important;
    position: sticky !important;
    top: 18px !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) :is(
    .site-overview-wrap,
    .sidebar-profile-card,
    .sidebar-card,
    .links-of-blogroll,
    .sidebar-button,
    .cc-license,
    .back-to-top
  ) {
    display: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav {
    background: var(--kylo-toc-shell) !important;
    border: 1px solid var(--kylo-toc-shell-border) !important;
    border-bottom-color: rgba(255, 244, 224, .1) !important;
    border-radius: 26px 26px 0 0 !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .26) !important;
    box-sizing: border-box !important;
    display: block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 14px 14px 10px !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav li,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav li.sidebar-nav-toc {
    align-items: center !important;
    background: var(--kylo-toc-title-bg) !important;
    border: 1px solid var(--kylo-toc-title-bg) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: var(--kylo-toc-title-text) !important;
    display: flex !important;
    font-size: .88rem !important;
    font-weight: 800 !important;
    justify-content: center !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    text-align: center !important;
    text-shadow: none !important;
    width: 100% !important;
    -webkit-text-fill-color: var(--kylo-toc-title-text) !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    background: var(--kylo-toc-shell) !important;
    border: 1px solid var(--kylo-toc-shell-border) !important;
    border-radius: 0 0 26px 26px !important;
    border-top: 0 !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .26) !important;
    box-sizing: border-box !important;
    display: block !important;
    flex: 1 1 auto !important;
    margin: -1px 0 0 !important;
    max-height: calc(100vh - 80px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 14px 16px 18px !important;
    position: relative !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
    max-height: calc(100vh - 112px) !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
    scrollbar-width: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc::-webkit-scrollbar,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc :is(ol, ul, li),
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-item {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-child {
    display: grid !important;
    gap: 6px !important;
    margin: 6px 0 0 10px !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link {
    align-items: flex-start !important;
    background: var(--kylo-toc-item-bg) !important;
    border: 1px solid var(--kylo-toc-item-border) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: var(--kylo-toc-text) !important;
    display: flex !important;
    gap: 6px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    min-height: 44px !important;
    padding: 9px 11px !important;
    text-decoration: none !important;
    text-shadow: none !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease !important;
    width: 100% !important;
    -webkit-text-fill-color: var(--kylo-toc-text) !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-child .nav-link {
    background: var(--kylo-toc-item-bg-sub) !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link::before,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link::after,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-item::before,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-item::after,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc::before,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc::after,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap::before,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap::after {
    display: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link *,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link span {
    background: transparent !important;
    border: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-number {
    color: var(--kylo-toc-muted) !important;
    flex: 0 0 auto !important;
    -webkit-text-fill-color: var(--kylo-toc-muted) !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-text {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible),
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav .active-current > .nav-link {
    background: var(--kylo-toc-active-bg) !important;
    border-color: var(--kylo-toc-active-bg) !important;
    color: var(--kylo-toc-active-text) !important;
    transform: translateY(-1px) !important;
    -webkit-text-fill-color: var(--kylo-toc-active-text) !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav-link:is(:hover, :focus-visible) *,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav .active > .nav-link *,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav .active-current > .nav-link * {
    color: var(--kylo-toc-active-text) !important;
    -webkit-text-fill-color: var(--kylo-toc-active-text) !important;
  }
}

/* Final pass: keep dark TOC behavior identical to the repaired light TOC. */
html body.theme-force-dark .sidebar:has(.post-toc-wrap) {
  align-self: flex-start !important;
  height: max-content !important;
  max-height: calc(100vh - 96px) !important;
  overflow: visible !important;
  position: sticky !important;
  top: 88px !important;
  z-index: 6 !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .32)) !important;
  flex-direction: column !important;
  gap: 0 !important;
  height: auto !important;
  max-height: calc(100vh - 96px) !important;
  min-height: 0 !important;
  overflow: visible !important;
  position: static !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  background-clip: padding-box !important;
  box-shadow: none !important;
  position: relative !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav {
  border-radius: 26px 26px 0 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  border-radius: 0 0 26px 26px !important;
  margin: -1px 0 0 !important;
  max-height: calc(100vh - 158px) !important;
  overflow: hidden !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav {
  max-height: calc(100vh - 186px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) {
    align-self: flex-start !important;
    height: max-content !important;
    max-height: calc(100vh - 96px) !important;
    overflow: visible !important;
    position: sticky !important;
    top: 88px !important;
    z-index: 6 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .32)) !important;
    flex-direction: column !important;
    gap: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 96px) !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    background-clip: padding-box !important;
    box-shadow: none !important;
    position: relative !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav {
    border-radius: 26px 26px 0 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    border-radius: 0 0 26px 26px !important;
    margin: -1px 0 0 !important;
    max-height: calc(100vh - 158px) !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav {
    max-height: calc(100vh - 186px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }
}


/* dark-final-fix.css */
/* Last dark-mode pass for TOC, search, and book/movie lightboxes. */

html body.theme-force-dark .sidebar:has(.post-toc-wrap) {
  align-self: flex-start !important;
  height: max-content !important;
  max-height: calc(100vh - 96px) !important;
  overflow: visible !important;
  position: sticky !important;
  top: 88px !important;
  z-index: 6 !important;
}

/* Books category menu: retain the light-theme hierarchy in dark mode. */
html body:is(.theme-force-dark, .dark-mode) .main-category-selector,
html.dark-mode body .main-category-selector {
  background: rgba(255, 250, 241, .10) !important;
  border: 1px solid rgba(255, 250, 241, .20) !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18) !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) .main-category-selector *,
html.dark-mode body .main-category-selector * {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) .sub-category-dropdown,
html.dark-mode body .sub-category-dropdown {
  background: #27231f !important;
  border: 1px solid rgba(255, 250, 241, .14) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28) !important;
  padding: 8px 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option),
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option) {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 250, 241, .10) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option):last-child,
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option):last-child {
  border-bottom: 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option):hover,
html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option).active,
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option):hover,
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option).active {
  background: rgba(255, 250, 241, .12) !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) .main-category-option::after,
html.dark-mode body .main-category-option::after {
  color: #fffaf1 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .main-category-selector {
    background: rgba(255, 250, 241, .10) !important;
    border: 1px solid rgba(255, 250, 241, .20) !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18) !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .main-category-selector * {
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .sub-category-dropdown {
    background: #27231f !important;
    border: 1px solid rgba(255, 250, 241, .14) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28) !important;
    padding: 8px 0 !important;
  }

  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option) {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 250, 241, .10) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option):last-child {
    border-bottom: 0 !important;
  }

  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option):hover,
  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option).active {
    background: rgba(255, 250, 241, .12) !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .main-category-option::after {
    color: #fffaf1 !important;
  }
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .32)) !important;
  flex-direction: column !important;
  gap: 0 !important;
  height: auto !important;
  max-height: calc(100vh - 96px) !important;
  min-height: 0 !important;
  overflow: visible !important;
  position: static !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  background-clip: padding-box !important;
  box-shadow: none !important;
  position: relative !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-nav {
  border-radius: 26px 26px 0 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  border-radius: 0 0 26px 26px !important;
  margin: -1px 0 0 !important;
  max-height: calc(100vh - 158px) !important;
  overflow: hidden !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav {
  max-height: calc(100vh - 186px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}

html body.theme-force-dark .search-pop-overlay.search-active,
html body.theme-force-dark .local-search-pop-overlay.search-active {
  background: rgba(8, 8, 8, .58) !important;
  backdrop-filter: blur(10px) !important;
}

html body.theme-force-dark .popup.search-popup,
html body.theme-force-dark .search-popup {
  background: rgba(31, 29, 26, .98) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 26px !important;
  box-shadow: 0 28px 78px rgba(0, 0, 0, .52) !important;
  color: #f4efe7 !important;
  overflow: hidden !important;
}

html body.theme-force-dark .search-header {
  background: rgba(31, 29, 26, .98) !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 248, 234, .1) !important;
}

html body.theme-force-dark .search-input-container {
  background: rgba(255, 248, 234, .075) !important;
  border: 1px solid rgba(255, 248, 234, .15) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

html body.theme-force-dark input.search-input,
html body.theme-force-dark .search-popup input.search-input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark .search-icon,
html body.theme-force-dark .popup-btn-close {
  color: rgba(244, 239, 231, .76) !important;
  -webkit-text-fill-color: rgba(244, 239, 231, .76) !important;
}

html body.theme-force-dark .popup-btn-close:hover,
html body.theme-force-dark .popup-btn-close:hover .fa {
  color: #fff8ea !important;
  -webkit-text-fill-color: #fff8ea !important;
}

html body.theme-force-dark #search-result,
html body.theme-force-dark .search-result-list {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark #search-result,
html body.theme-force-dark #search-result::-webkit-scrollbar {
  scrollbar-width: none !important;
}

html body.theme-force-dark #search-result::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

html body.theme-force-dark .search-result-list {
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.theme-force-dark .search-result-list li {
  background: rgba(255, 248, 234, .065) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .13) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
  overflow: hidden !important;
  padding: 14px 16px !important;
}

html body.theme-force-dark .search-result-list li::before,
html body.theme-force-dark .search-result-list li::after,
html body.theme-force-dark .search-result-title::before,
html body.theme-force-dark .search-result-title::after,
html body.theme-force-dark .search-result::before,
html body.theme-force-dark .search-result::after {
  display: none !important;
}

html body.theme-force-dark .search-result-title,
html body.theme-force-dark a.search-result-title,
html body.theme-force-dark .search-result-title a {
  background: transparent !important;
  border: 0 !important;
  color: #fff8ea !important;
  display: block !important;
  font-weight: 800 !important;
  margin: 0 0 8px !important;
  text-decoration: none !important;
  -webkit-text-fill-color: #fff8ea !important;
}

html body.theme-force-dark .search-result,
html body.theme-force-dark p.search-result {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(244, 239, 231, .84) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
  padding: 0 !important;
  -webkit-text-fill-color: rgba(244, 239, 231, .84) !important;
}

html body.theme-force-dark .search-keyword,
html body.theme-force-dark mark.search-keyword {
  background: rgba(255, 217, 126, .26) !important;
  border: 0 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  color: #fff3d2 !important;
  font-weight: 800 !important;
  padding: 0 3px !important;
  -webkit-text-fill-color: #fff3d2 !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) .lightbox-content {
  background: rgba(31, 29, 26, .98) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .12) !important;
  border-radius: 24px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .52) !important;
  overflow: hidden !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-info-container, .movie-info-container, .book-meta, .movie-meta, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons),
html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-info-container, .movie-info-container, .book-meta, .movie-meta, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons)::before,
html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-info-container, .movie-info-container, .book-meta, .movie-meta, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons)::after {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark :is(#bookLightbox, #movieLightbox) :is(.book-summary, .movie-summary) {
  background: rgba(255, 248, 234, .055) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: #f0e9dc !important;
  -webkit-text-fill-color: #f0e9dc !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) {
    align-self: flex-start !important;
    height: max-content !important;
    max-height: calc(100vh - 96px) !important;
    overflow: visible !important;
    position: sticky !important;
    top: 88px !important;
    z-index: 6 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .32)) !important;
    flex-direction: column !important;
    gap: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 96px) !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    background-clip: padding-box !important;
    box-shadow: none !important;
    position: relative !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-nav {
    border-radius: 26px 26px 0 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    border-radius: 0 0 26px 26px !important;
    margin: -1px 0 0 !important;
    max-height: calc(100vh - 158px) !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav {
    max-height: calc(100vh - 186px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }

  html body:not(.theme-force-light) .search-pop-overlay.search-active,
  html body:not(.theme-force-light) .local-search-pop-overlay.search-active {
    background: rgba(8, 8, 8, .58) !important;
    backdrop-filter: blur(10px) !important;
  }

  html body:not(.theme-force-light) .popup.search-popup,
  html body:not(.theme-force-light) .search-popup {
    background: rgba(31, 29, 26, .98) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 26px !important;
    box-shadow: 0 28px 78px rgba(0, 0, 0, .52) !important;
    color: #f4efe7 !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .search-header {
    background: rgba(31, 29, 26, .98) !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 248, 234, .1) !important;
  }

  html body:not(.theme-force-light) .search-input-container {
    background: rgba(255, 248, 234, .075) !important;
    border: 1px solid rgba(255, 248, 234, .15) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) input.search-input,
  html body:not(.theme-force-light) .search-popup input.search-input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #f4efe7 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) #search-result,
  html body:not(.theme-force-light) .search-result-list {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .search-result-list li {
    background: rgba(255, 248, 234, .065) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .13) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    color: #f4efe7 !important;
    overflow: hidden !important;
    padding: 14px 16px !important;
  }

  html body:not(.theme-force-light) .search-result,
  html body:not(.theme-force-light) p.search-result {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(244, 239, 231, .84) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
    padding: 0 !important;
    -webkit-text-fill-color: rgba(244, 239, 231, .84) !important;
  }

  html body:not(.theme-force-light) .search-result-title,
  html body:not(.theme-force-light) a.search-result-title,
  html body:not(.theme-force-light) .search-result-title a {
    background: transparent !important;
    border: 0 !important;
    color: #fff8ea !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #fff8ea !important;
  }

  html body:not(.theme-force-light) .search-keyword,
  html body:not(.theme-force-light) mark.search-keyword {
    background: rgba(255, 217, 126, .26) !important;
    border: 0 !important;
    border-radius: 5px !important;
    color: #fff3d2 !important;
    font-weight: 800 !important;
    padding: 0 3px !important;
    -webkit-text-fill-color: #fff3d2 !important;
  }

  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) .lightbox-content {
    background: rgba(31, 29, 26, .98) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .12) !important;
    border-radius: 24px !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .52) !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-info-container, .movie-info-container, .book-meta, .movie-meta, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons),
  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-info-container, .movie-info-container, .book-meta, .movie-meta, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons)::before,
  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(.book-detail, .movie-detail, .book-detail-header, .movie-detail-header, .book-info-container, .movie-info-container, .book-meta, .movie-meta, .book-detail-footer, .movie-detail-footer, .book-actions, .movie-actions, .movie-buttons)::after {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) :is(#bookLightbox, #movieLightbox) :is(.book-summary, .movie-summary) {
    background: rgba(255, 248, 234, .055) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    color: #f0e9dc !important;
    -webkit-text-fill-color: #f0e9dc !important;
  }
}

/* The profile counters are always part of the parent card, never a nested panel. */
html body .sidebar-profile-card .site-state-wrap,
html body .sidebar-profile-card .site-state-wrap > .site-state,
html body .sidebar-profile-card .site-state > .site-state-item,
html body .sidebar-profile-card .site-state > .site-state-item > a,
html body .sidebar-profile-card .site-state > .site-state-item > span,
html body .sidebar-profile-card .site-state > .site-state-item > a > span {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  isolation: auto !important;
  mask: none !important;
  opacity: 1 !important;
  outline: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body .sidebar-profile-card .site-state-wrap::before,
html body .sidebar-profile-card .site-state-wrap::after,
html body .sidebar-profile-card .site-state::before,
html body .sidebar-profile-card .site-state::after,
html body .sidebar-profile-card .site-state-item::before,
html body .sidebar-profile-card .site-state-item::after,
html body .sidebar-profile-card .site-state-item > a::before,
html body .sidebar-profile-card .site-state-item > a::after,
html body .sidebar-profile-card .site-state-item > span::before,
html body .sidebar-profile-card .site-state-item > span::after {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  content: none !important;
  display: none !important;
}

/* Absolute final HBE pass: placed after the broad component overrides. */
html body.theme-force-dark .hbe.hbe-input,
html body.dark-mode .hbe.hbe-input,
html.dark-mode body .hbe.hbe-input {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.theme-force-dark .hbe.hbe-input-field,
html body.theme-force-dark .hbe.hbe-input-field-default,
html body.dark-mode .hbe.hbe-input-field,
html body.dark-mode .hbe.hbe-input-field-default,
html.dark-mode body .hbe.hbe-input-field,
html.dark-mode body .hbe.hbe-input-field-default {
  background: #1a1815 !important;
  border: 1px solid rgba(255, 250, 241, .24) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, .05) !important;
  color: #fffaf1 !important;
  caret-color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body.theme-force-dark .hbe.hbe-input-label,
html body.theme-force-dark .hbe.hbe-input-label-default,
html body.dark-mode .hbe.hbe-input-label,
html body.dark-mode .hbe.hbe-input-label-default,
html.dark-mode body .hbe.hbe-input-label,
html.dark-mode body .hbe.hbe-input-label-default {
  background: transparent !important;
  border: 0 !important;
  color: #d7cfc2 !important;
  display: block !important;
  line-height: 1.5 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  position: static !important;
}

html body.theme-force-dark .hbe.hbe-input-label-content,
html body.theme-force-dark .hbe.hbe-input-label-content-default,
html body.dark-mode .hbe.hbe-input-label-content,
html body.dark-mode .hbe.hbe-input-label-content-default,
html.dark-mode body .hbe.hbe-input-label-content,
html.dark-mode body .hbe.hbe-input-label-content-default {
  color: #d7cfc2 !important;
  -webkit-text-fill-color: #d7cfc2 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .hbe.hbe-input {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .hbe.hbe-input-field,
  html body:not(.theme-force-light) .hbe.hbe-input-field-default {
    background: #1a1815 !important;
    border: 1px solid rgba(255, 250, 241, .24) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255, 250, 241, .05) !important;
    color: #fffaf1 !important;
    caret-color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .hbe.hbe-input-label,
  html body:not(.theme-force-light) .hbe.hbe-input-label-default {
    background: transparent !important;
    border: 0 !important;
    color: #d7cfc2 !important;
    display: block !important;
    line-height: 1.5 !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    position: static !important;
  }

  html body:not(.theme-force-light) .hbe.hbe-input-label-content,
  html body:not(.theme-force-light) .hbe.hbe-input-label-content-default {
    color: #d7cfc2 !important;
    -webkit-text-fill-color: #d7cfc2 !important;
  }
}

/* Keep the password field itself readable. The base HBE skin targets these
   exact classes, so the dark override deliberately mirrors that specificity. */
html body.theme-force-dark .hbe.hbe-input,
html body.dark-mode .hbe.hbe-input,
html.dark-mode body .hbe.hbe-input {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.theme-force-dark .hbe.hbe-input-field,
html body.theme-force-dark .hbe.hbe-input-field-default,
html body.dark-mode .hbe.hbe-input-field,
html body.dark-mode .hbe.hbe-input-field-default,
html.dark-mode body .hbe.hbe-input-field,
html.dark-mode body .hbe.hbe-input-field-default {
  background: #1a1815 !important;
  border: 1px solid rgba(255, 250, 241, .24) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, .05) !important;
  color: #fffaf1 !important;
  caret-color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body.theme-force-dark .hbe.hbe-input-field:focus,
html body.theme-force-dark .hbe.hbe-input-field-default:focus,
html body.dark-mode .hbe.hbe-input-field:focus,
html body.dark-mode .hbe.hbe-input-field-default:focus,
html.dark-mode body .hbe.hbe-input-field:focus,
html.dark-mode body .hbe.hbe-input-field-default:focus {
  background: #1a1815 !important;
  border-color: #fffaf1 !important;
  box-shadow: 0 0 0 4px rgba(255, 250, 241, .10) !important;
}

html body.theme-force-dark .hbe.hbe-input-label,
html body.theme-force-dark .hbe.hbe-input-label-default,
html body.dark-mode .hbe.hbe-input-label,
html body.dark-mode .hbe.hbe-input-label-default,
html.dark-mode body .hbe.hbe-input-label,
html.dark-mode body .hbe.hbe-input-label-default {
  background: transparent !important;
  border: 0 !important;
  color: #d7cfc2 !important;
  display: block !important;
  line-height: 1.5 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  position: static !important;
}

html body.theme-force-dark .hbe.hbe-input-label-content,
html body.theme-force-dark .hbe.hbe-input-label-content-default,
html body.dark-mode .hbe.hbe-input-label-content,
html body.dark-mode .hbe.hbe-input-label-content-default,
html.dark-mode body .hbe.hbe-input-label-content,
html.dark-mode body .hbe.hbe-input-label-content-default {
  color: #d7cfc2 !important;
  -webkit-text-fill-color: #d7cfc2 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .hbe.hbe-input {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .hbe.hbe-input-field,
  html body:not(.theme-force-light) .hbe.hbe-input-field-default {
    background: #1a1815 !important;
    border: 1px solid rgba(255, 250, 241, .24) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255, 250, 241, .05) !important;
    color: #fffaf1 !important;
    caret-color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .hbe.hbe-input-field:focus,
  html body:not(.theme-force-light) .hbe.hbe-input-field-default:focus {
    background: #1a1815 !important;
    border-color: #fffaf1 !important;
    box-shadow: 0 0 0 4px rgba(255, 250, 241, .10) !important;
  }

  html body:not(.theme-force-light) .hbe.hbe-input-label,
  html body:not(.theme-force-light) .hbe.hbe-input-label-default {
    background: transparent !important;
    border: 0 !important;
    color: #d7cfc2 !important;
    display: block !important;
    line-height: 1.5 !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    position: static !important;
  }

  html body:not(.theme-force-light) .hbe.hbe-input-label-content,
  html body:not(.theme-force-light) .hbe.hbe-input-label-content-default {
    color: #d7cfc2 !important;
    -webkit-text-fill-color: #d7cfc2 !important;
  }
}

/* Final override for the books category selector. */
html body:is(.theme-force-dark, .dark-mode) .main-category-selector,
html.dark-mode body .main-category-selector {
  background: rgba(255, 250, 241, .10) !important;
  border: 1px solid rgba(255, 250, 241, .20) !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18) !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) .main-category-selector *,
html.dark-mode body .main-category-selector * {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) .sub-category-dropdown,
html.dark-mode body .sub-category-dropdown {
  background: #27231f !important;
  border: 1px solid rgba(255, 250, 241, .14) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28) !important;
  padding: 8px 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option),
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option) {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 250, 241, .10) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option):last-child,
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option):last-child {
  border-bottom: 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option):hover,
html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option).active,
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option):hover,
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option).active {
  background: rgba(255, 250, 241, .12) !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) .main-category-option::after,
html.dark-mode body .main-category-option::after {
  color: #fffaf1 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .main-category-selector {
    background: rgba(255, 250, 241, .10) !important;
    border: 1px solid rgba(255, 250, 241, .20) !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18) !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .main-category-selector * {
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .sub-category-dropdown {
    background: #27231f !important;
    border: 1px solid rgba(255, 250, 241, .14) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28) !important;
    padding: 8px 0 !important;
  }

  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option) {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 250, 241, .10) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option):last-child {
    border-bottom: 0 !important;
  }

  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option):hover,
  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option).active {
    background: rgba(255, 250, 241, .12) !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .main-category-option::after {
    color: #fffaf1 !important;
  }
}

/* 2026-07-31: centered desktop navigation and icon-only utility controls. */
@media (min-width: 981px) {
  html body .container .header .header-inner {
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) !important;
  }

  html body .site-brand-container {
    justify-self: start !important;
    min-width: 0 !important;
  }

  html body .header-inner .site-nav {
    flex: none !important;
    justify-content: center !important;
    justify-self: center !important;
    margin: 0 !important;
    max-width: calc(100vw - 420px) !important;
    min-width: 0 !important;
    width: max-content !important;
  }

  html body .header-inner .main-menu {
    justify-content: center !important;
    margin: 0 !important;
    width: max-content !important;
  }
}

html body .site-nav-tools {
  align-items: center !important;
  display: flex !important;
  gap: 6px !important;
  justify-self: end !important;
}

html body .site-nav-tool {
  align-items: center !important;
  appearance: none !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  color: #202938 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  flex: 0 0 38px !important;
  font-size: .95rem !important;
  height: 38px !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease !important;
  width: 38px !important;
}

html body .site-nav-tool:is(:hover, :focus-visible) {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  outline: 0 !important;
  transform: translateY(-1px) !important;
}

html body .site-nav-tool i {
  color: currentColor !important;
  line-height: 1 !important;
  margin: 0 !important;
}

@media (max-width: 980px) {
  html body .header-inner {
    position: relative !important;
  }

  html body .site-brand-container {
    box-sizing: border-box !important;
    padding-right: 92px !important;
  }

  html body .site-nav-tools {
    position: absolute !important;
    right: 12px !important;
    top: 10px !important;
    z-index: 4 !important;
  }

  html body .site-nav-tool {
    flex-basis: 34px !important;
    height: 34px !important;
    width: 34px !important;
  }
}

html body.theme-force-dark .site-nav-tool,
html body.dark-mode .site-nav-tool,
html.dark-mode body .site-nav-tool {
  color: #f4efe6 !important;
}

html body.theme-force-dark .site-nav-tool:is(:hover, :focus-visible),
html body.dark-mode .site-nav-tool:is(:hover, :focus-visible),
html.dark-mode body .site-nav-tool:is(:hover, :focus-visible) {
  background: #f4efe6 !important;
  border-color: #f4efe6 !important;
  color: #111 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .site-nav-tool {
    color: #f4efe6 !important;
  }

  html body:not(.theme-force-light) .site-nav-tool:is(:hover, :focus-visible) {
    background: #f4efe6 !important;
    border-color: #f4efe6 !important;
    color: #111 !important;
  }
}

/* Keep dark code tables flush with their full-width window. */
html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight,
html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight table,
html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight tbody,
html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight tr,
html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight td,
html.dark-mode body .post-body figure.highlight,
html.dark-mode body .post-body figure.highlight table,
html.dark-mode body .post-body figure.highlight tbody,
html.dark-mode body .post-body figure.highlight tr,
html.dark-mode body .post-body figure.highlight td {
  background: #171615 !important;
  background-image: none !important;
}

html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight,
html.dark-mode body .post-body figure.highlight {
  box-sizing: border-box !important;
  overflow: hidden !important;
  width: 100% !important;
}

html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight table,
html.dark-mode body .post-body figure.highlight table {
  table-layout: auto !important;
  width: 100% !important;
}

html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight td.code,
html.dark-mode body .post-body figure.highlight td.code {
  min-width: 0 !important;
  width: 100% !important;
}

html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight td.gutter,
html.dark-mode body .post-body figure.highlight td.gutter {
  width: 1% !important;
  white-space: nowrap !important;
}

html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight pre,
html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight code,
html.dark-mode body .post-body figure.highlight pre,
html.dark-mode body .post-body figure.highlight code {
  background: #171615 !important;
  color: #f3efe9 !important;
}

html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight .gutter pre,
html.dark-mode body .post-body figure.highlight .gutter pre {
  background: #211f1c !important;
  color: #aaa196 !important;
}

html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight::before,
html.dark-mode body .post-body figure.highlight::before {
  background: #2b2926 !important;
  border-bottom-color: rgba(255, 248, 234, .1) !important;
}

html body:is(.theme-force-dark, .dark-mode) .post-body figure.highlight :is(.code_copy, .code-expand, .code_lang),
html.dark-mode body .post-body figure.highlight :is(.code_copy, .code-expand, .code_lang) {
  color: #d4cbc0 !important;
  -webkit-text-fill-color: #d4cbc0 !important;
}

/* One scroll owner prevents long dark TOCs from being clipped. */
html body:is(.theme-force-dark, .dark-mode) .sidebar:has(.post-toc-wrap) .post-toc-wrap,
html.dark-mode body .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body:is(.theme-force-dark, .dark-mode) .sidebar:has(.post-toc-wrap) .post-toc,
html.dark-mode body .sidebar:has(.post-toc-wrap) .post-toc {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: 16px !important;
  scroll-padding-block: 12px 20px !important;
  scrollbar-width: none !important;
}

html body:is(.theme-force-dark, .dark-mode) .sidebar:has(.post-toc-wrap) .post-toc > .nav,
html.dark-mode body .sidebar:has(.post-toc-wrap) .post-toc > .nav {
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 8px !important;
}

html body:is(.theme-force-dark, .dark-mode) .sidebar:has(.post-toc-wrap) .post-toc::-webkit-scrollbar,
html.dark-mode body .sidebar:has(.post-toc-wrap) .post-toc::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .post-body figure.highlight,
  html body:not(.theme-force-light) .post-body figure.highlight table,
  html body:not(.theme-force-light) .post-body figure.highlight tbody,
  html body:not(.theme-force-light) .post-body figure.highlight tr,
  html body:not(.theme-force-light) .post-body figure.highlight td {
    background: #171615 !important;
    background-image: none !important;
  }

  html body:not(.theme-force-light) .post-body figure.highlight {
    box-sizing: border-box !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .post-body figure.highlight table {
    table-layout: auto !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .post-body figure.highlight td.code {
    min-width: 0 !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) .post-body figure.highlight td.gutter {
    width: 1% !important;
    white-space: nowrap !important;
  }

  html body:not(.theme-force-light) .post-body figure.highlight pre,
  html body:not(.theme-force-light) .post-body figure.highlight code {
    background: #171615 !important;
    color: #f3efe9 !important;
  }

  html body:not(.theme-force-light) .post-body figure.highlight .gutter pre {
    background: #211f1c !important;
    color: #aaa196 !important;
  }

  html body:not(.theme-force-light) .post-body figure.highlight::before {
    background: #2b2926 !important;
    border-bottom-color: rgba(255, 248, 234, .1) !important;
  }

  html body:not(.theme-force-light) .post-body figure.highlight :is(.code_copy, .code-expand, .code_lang) {
    color: #d4cbc0 !important;
    -webkit-text-fill-color: #d4cbc0 !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding-bottom: 16px !important;
    scroll-padding-block: 12px 20px !important;
    scrollbar-width: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc > .nav {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 8px !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }
}

/* Keep article lists neutral in dark mode instead of inheriting the link blue. */
html body.theme-force-dark .post-body :is(ol, ul, li),
html body.dark-mode .post-body :is(ol, ul, li),
html.dark-mode body .post-body :is(ol, ul, li) {
  color: var(--kylo-dark-muted, #d7cfc2) !important;
  -webkit-text-fill-color: var(--kylo-dark-muted, #d7cfc2) !important;
}

html body.theme-force-dark .post-body li::marker,
html body.dark-mode .post-body li::marker,
html.dark-mode body .post-body li::marker {
  color: #a9a195 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .post-body :is(ol, ul, li) {
    color: var(--kylo-dark-muted, #d7cfc2) !important;
    -webkit-text-fill-color: var(--kylo-dark-muted, #d7cfc2) !important;
  }

  html body:not(.theme-force-light) .post-body li::marker {
    color: #a9a195 !important;
  }
}

/* Keep dark TOC top spacing identical to the repaired light TOC. */
html body.theme-force-dark .sidebar:has(.post-toc-wrap) {
  max-height: calc(100vh - 28px) !important;
  top: 14px !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
  max-height: calc(100vh - 28px) !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  max-height: calc(100vh - 90px) !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav {
  max-height: calc(100vh - 118px) !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) {
    max-height: calc(100vh - 28px) !important;
    top: 14px !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
    max-height: calc(100vh - 28px) !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    max-height: calc(100vh - 90px) !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav {
    max-height: calc(100vh - 118px) !important;
  }
}

/* Final dark cleanup: keep one background layer and remove hard inner blocks. */
html body.theme-force-dark {
  background-color: #151411 !important;
  background-image: none !important;
}

html body.theme-force-dark :is(.container, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container),
html body.theme-force-dark :is(.container, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container)::before,
html body.theme-force-dark :is(.container, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark canvas.fireworks,
html body.theme-force-dark #canvas-nest,
html body.theme-force-dark .canvas-nest {
  inset: 0 !important;
  opacity: .9 !important;
  pointer-events: none !important;
  position: fixed !important;
  z-index: 0 !important;
}

html body.theme-force-dark .container {
  position: relative !important;
  z-index: 1 !important;
}

html body.theme-force-dark .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span),
html body.theme-force-dark .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span)::before,
html body.theme-force-dark .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark .sidebar-profile-card .site-state-wrap {
  margin-top: 8px !important;
  padding-top: 8px !important;
}

html body.theme-force-dark .sidebar-profile-card .site-state {
  gap: 10px !important;
  overflow: visible !important;
}

html body.theme-force-dark :is(.movies-container, .movies-wrapper) .movie-card.card,
html body.theme-force-dark :is(.movies-container, .movies-wrapper) .movie-card {
  background: rgba(31, 29, 26, .82) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .1) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28) !important;
  overflow: hidden !important;
}

html body.theme-force-dark :is(.movies-container, .movies-wrapper) .movie-card::before,
html body.theme-force-dark :is(.movies-container, .movies-wrapper) .movie-card::after,
html body.theme-force-dark :is(.movies-container, .movies-wrapper) .movie-buttons::before,
html body.theme-force-dark :is(.movies-container, .movies-wrapper) .movie-buttons::after {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  content: none !important;
  display: none !important;
}

html body.theme-force-dark :is(.movies-container, .movies-wrapper) .movie-buttons {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  min-height: 0 !important;
  outline: 0 !important;
  padding: 10px 8px 12px !important;
  width: 100% !important;
}

html body.theme-force-dark :is(.movies-container, .movies-wrapper) .movie-buttons .btn {
  background: rgba(255, 248, 234, .08) !important;
  border: 1px solid rgba(255, 248, 234, .18) !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(.movies-container, .movies-wrapper) .movie-buttons .btn:is(:hover, :focus-visible) {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  transform: translateY(-1px) !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption),
html body.theme-force-dark :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::before,
html body.theme-force-dark :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) .photo-frame {
  border-radius: 18px !important;
  overflow: hidden !important;
  padding: 0 !important;
}

html body.theme-force-dark :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) .photo-image {
  background: transparent !important;
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
  display: block !important;
}

html body.theme-force-dark :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) .photo-caption {
  color: #f4efe7 !important;
  line-height: 1.45 !important;
  margin: 10px 0 0 !important;
  padding: 0 4px !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body.theme-force-dark :is(.diary-wrapper, .diary-container) .diary-card,
html body.theme-force-dark :is(.diary-wrapper, .diary-container) .diary-card::before,
html body.theme-force-dark :is(.diary-wrapper, .diary-container) .diary-card::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body.theme-force-dark :is(.diary-wrapper, .diary-container) .diary-content {
  background: rgba(31, 29, 26, .9) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28) !important;
  outline: 0 !important;
  overflow: hidden !important;
}

html body.theme-force-dark :is(.diary-wrapper, .diary-container) .diary-content::after {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  content: none !important;
  display: none !important;
}

html body.theme-force-dark :is(.diary-wrapper, .diary-container) .diary-card:hover .diary-content {
  box-shadow: 0 20px 48px rgba(0, 0, 0, .36) !important;
  transform: translateY(-8px) !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) {
  max-height: calc(100vh - 16px) !important;
  top: 8px !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
  max-height: calc(100vh - 16px) !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc-wrap {
  max-height: calc(100vh - 78px) !important;
}

html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc,
html body.theme-force-dark .sidebar:has(.post-toc-wrap) .post-toc .nav {
  max-height: calc(100vh - 106px) !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) {
    background-color: #151411 !important;
    background-image: none !important;
  }

  html body:not(.theme-force-light) :is(.container, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container),
  html body:not(.theme-force-light) :is(.container, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container)::before,
  html body:not(.theme-force-light) :is(.container, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container)::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) canvas.fireworks,
  html body:not(.theme-force-light) #canvas-nest,
  html body:not(.theme-force-light) .canvas-nest {
    inset: 0 !important;
    opacity: .9 !important;
    pointer-events: none !important;
    position: fixed !important;
    z-index: 0 !important;
  }

  html body:not(.theme-force-light) .container {
    position: relative !important;
    z-index: 1 !important;
  }

  html body:not(.theme-force-light) .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span),
  html body:not(.theme-force-light) .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span)::before,
  html body:not(.theme-force-light) .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span)::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) :is(.movies-container, .movies-wrapper) .movie-card.card,
  html body:not(.theme-force-light) :is(.movies-container, .movies-wrapper) .movie-card {
    background: rgba(31, 29, 26, .82) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .1) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28) !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) :is(.movies-container, .movies-wrapper) .movie-card::before,
  html body:not(.theme-force-light) :is(.movies-container, .movies-wrapper) .movie-card::after,
  html body:not(.theme-force-light) :is(.movies-container, .movies-wrapper) .movie-buttons::before,
  html body:not(.theme-force-light) :is(.movies-container, .movies-wrapper) .movie-buttons::after {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    content: none !important;
    display: none !important;
  }

  html body:not(.theme-force-light) :is(.movies-container, .movies-wrapper) .movie-buttons {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    min-height: 0 !important;
    outline: 0 !important;
    padding: 10px 8px 12px !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) :is(.movies-container, .movies-wrapper) .movie-buttons .btn {
    background: rgba(255, 248, 234, .08) !important;
    border: 1px solid rgba(255, 248, 234, .18) !important;
    box-shadow: none !important;
    color: #f4efe7 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) :is(.movies-container, .movies-wrapper) .movie-buttons .btn:is(:hover, :focus-visible) {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption),
  html body:not(.theme-force-light) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::before,
  html body:not(.theme-force-light) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) .photo-frame {
    border-radius: 18px !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) .photo-image {
    background: transparent !important;
    border: 0 !important;
    border-radius: inherit !important;
    box-shadow: none !important;
    display: block !important;
  }

  html body:not(.theme-force-light) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) .photo-caption {
    color: #f4efe7 !important;
    line-height: 1.45 !important;
    margin: 10px 0 0 !important;
    padding: 0 4px !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) :is(.diary-wrapper, .diary-container) .diary-card,
  html body:not(.theme-force-light) :is(.diary-wrapper, .diary-container) .diary-card::before,
  html body:not(.theme-force-light) :is(.diary-wrapper, .diary-container) .diary-card::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) :is(.diary-wrapper, .diary-container) .diary-content {
    background: rgba(31, 29, 26, .9) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .28) !important;
    outline: 0 !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) :is(.diary-wrapper, .diary-container) .diary-content::after {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    content: none !important;
    display: none !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) {
    max-height: calc(100vh - 16px) !important;
    top: 8px !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-top,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .sidebar-inner.affix-bottom {
    max-height: calc(100vh - 16px) !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc-wrap {
    max-height: calc(100vh - 78px) !important;
  }

  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc,
  html body:not(.theme-force-light) .sidebar:has(.post-toc-wrap) .post-toc .nav {
    max-height: calc(100vh - 106px) !important;
  }
}

/* Hard lock for the real Three.js line background and legacy dark-mode entry. */
html body > #kylo-canvas-lines,
html body > .kylo-canvas-lines,
html body > div[style*="z-index: -1"]:has(canvas),
html body > div[style*="opacity: 0.5"]:has(canvas) {
  background: transparent !important;
  display: block !important;
  height: 100vh !important;
  inset: 0 !important;
  opacity: .52 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  visibility: visible !important;
  width: 100vw !important;
  z-index: 0 !important;
}

html body > #kylo-canvas-lines canvas,
html body > .kylo-canvas-lines canvas,
html body > div[style*="z-index: -1"]:has(canvas) canvas,
html body > div[style*="opacity: 0.5"]:has(canvas) canvas {
  background: transparent !important;
  display: block !important;
  height: 100vh !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100vw !important;
}

html body:is(.theme-force-dark, .dark-mode),
html.dark-mode body {
  background-color: #151411 !important;
  background-image: none !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container),
html body:is(.theme-force-dark, .dark-mode) :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container)::before,
html body:is(.theme-force-dark, .dark-mode) :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container)::after,
html.dark-mode body :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container),
html.dark-mode body :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container)::before,
html.dark-mode body :is(.container, .headband, .main, .main-inner, .content-wrap, .content, .content.index, .album-page-shell, .album-container, .album-wrapper, .gallery-container, .gallery-wrapper, .books-container, .books-wrapper, .movies-container, .movies-wrapper, .movies-front, .movies-friends, .diary-wrapper, .diary-container, .bake-container, .games-container, .lab-container, .categories-container)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) .container,
html.dark-mode body .container {
  position: relative !important;
  z-index: 1 !important;
}

html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span, .site-state-item-count, .site-state-item-name),
html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span, .site-state-item-count, .site-state-item-name)::before,
html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span, .site-state-item-count, .site-state-item-name)::after,
html.dark-mode body .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span, .site-state-item-count, .site-state-item-name),
html.dark-mode body .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span, .site-state-item-count, .site-state-item-name)::before,
html.dark-mode body .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span, .site-state-item-count, .site-state-item-name)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card .site-state,
html.dark-mode body .sidebar-profile-card .site-state {
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  overflow: visible !important;
  width: 100% !important;
}

html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card .site-state-item a,
html.dark-mode body .sidebar-profile-card .site-state-item a {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.search-pop-overlay, .local-search-pop-overlay).search-active,
html.dark-mode body :is(.search-pop-overlay, .local-search-pop-overlay).search-active {
  background: rgba(7, 7, 6, .56) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.popup.search-popup, .search-popup),
html.dark-mode body :is(.popup.search-popup, .search-popup) {
  background: rgba(31, 29, 26, .98) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .14) !important;
  border-radius: 26px !important;
  box-shadow: 0 28px 78px rgba(0, 0, 0, .52) !important;
  color: #f4efe7 !important;
  overflow: hidden !important;
}

html body:is(.theme-force-dark, .dark-mode) .search-header,
html.dark-mode body .search-header {
  background: transparent !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(255, 248, 234, .12) !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.search-icon, .search-icon *, .popup-btn-close, .popup-btn-close *),
html.dark-mode body :is(.search-icon, .search-icon *, .popup-btn-close, .popup-btn-close *) {
  color: #d8d0c3 !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  -webkit-text-fill-color: #d8d0c3 !important;
}

html body:is(.theme-force-dark, .dark-mode) .search-input-container,
html.dark-mode body .search-input-container {
  background: rgba(255, 248, 234, .07) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .16) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(input.search-input, .search-popup input.search-input),
html.dark-mode body :is(input.search-input, .search-popup input.search-input) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
  outline: 0 !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

html body:is(.theme-force-dark, .dark-mode) #search-result,
html.dark-mode body #search-result {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow-x: hidden !important;
}

html body:is(.theme-force-dark, .dark-mode) .search-result-list,
html.dark-mode body .search-result-list {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) .search-result-list li,
html.dark-mode body .search-result-list li {
  background: rgba(255, 248, 234, .07) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .13) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: #f4efe7 !important;
  list-style: none !important;
  overflow: hidden !important;
  padding: 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) .search-result-list li::before,
html body:is(.theme-force-dark, .dark-mode) .search-result-list li::after,
html body:is(.theme-force-dark, .dark-mode) .search-result-list li > a::before,
html body:is(.theme-force-dark, .dark-mode) .search-result-list li > a::after,
html body:is(.theme-force-dark, .dark-mode) .search-result-title::before,
html body:is(.theme-force-dark, .dark-mode) .search-result-title::after,
html body:is(.theme-force-dark, .dark-mode) .search-result::before,
html body:is(.theme-force-dark, .dark-mode) .search-result::after,
html.dark-mode body .search-result-list li::before,
html.dark-mode body .search-result-list li::after,
html.dark-mode body .search-result-list li > a::before,
html.dark-mode body .search-result-list li > a::after,
html.dark-mode body .search-result-title::before,
html.dark-mode body .search-result-title::after,
html.dark-mode body .search-result::before,
html.dark-mode body .search-result::after {
  content: none !important;
  display: none !important;
}

html body:is(.theme-force-dark, .dark-mode) .search-result-list li > a,
html.dark-mode body .search-result-list li > a {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  display: block !important;
  overflow: visible !important;
  padding: 0 16px 12px !important;
  text-decoration: none !important;
}

html body:is(.theme-force-dark, .dark-mode) .search-result-list li > a.search-result-title,
html.dark-mode body .search-result-list li > a.search-result-title {
  padding: 13px 16px 7px !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.search-result-title, a.search-result-title),
html.dark-mode body :is(.search-result-title, a.search-result-title) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff8ea !important;
  display: block !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  text-decoration: none !important;
  -webkit-text-fill-color: #fff8ea !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.search-result, p.search-result),
html.dark-mode body :is(.search-result, p.search-result) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(244, 239, 231, .82) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  -webkit-text-fill-color: rgba(244, 239, 231, .82) !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption),
html body:is(.theme-force-dark, .dark-mode) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::before,
html body:is(.theme-force-dark, .dark-mode) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::after,
html.dark-mode body :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption),
html.dark-mode body :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::before,
html.dark-mode body :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) .photo-caption,
html.dark-mode body :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) .photo-caption {
  color: #f4efe7 !important;
  display: block !important;
  line-height: 1.45 !important;
  margin: 10px 0 0 !important;
  padding: 0 4px !important;
  text-align: center !important;
  -webkit-text-fill-color: #f4efe7 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) {
    background-color: #151411 !important;
    background-image: none !important;
  }

  html body:not(.theme-force-light) .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span, .site-state-item-count, .site-state-item-name),
  html body:not(.theme-force-light) .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span, .site-state-item-count, .site-state-item-name)::before,
  html body:not(.theme-force-light) .sidebar-profile-card :is(.site-state-wrap, .site-state, .site-state-item, .site-state-item a, .site-state-item span, .site-state-item-count, .site-state-item-name)::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) .sidebar-profile-card .site-state {
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: visible !important;
    width: 100% !important;
  }

  html body:not(.theme-force-light) :is(.search-pop-overlay, .local-search-pop-overlay).search-active {
    background: rgba(7, 7, 6, .56) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  html body:not(.theme-force-light) :is(.popup.search-popup, .search-popup) {
    background: rgba(31, 29, 26, .98) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .14) !important;
    border-radius: 26px !important;
    box-shadow: 0 28px 78px rgba(0, 0, 0, .52) !important;
    color: #f4efe7 !important;
    overflow: hidden !important;
  }

  html body:not(.theme-force-light) .search-header {
    background: transparent !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(255, 248, 234, .12) !important;
  }

  html body:not(.theme-force-light) :is(.search-icon, .search-icon *, .popup-btn-close, .popup-btn-close *) {
    color: #d8d0c3 !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    -webkit-text-fill-color: #d8d0c3 !important;
  }

  html body:not(.theme-force-light) .search-input-container {
    background: rgba(255, 248, 234, .07) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .16) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) :is(input.search-input, .search-popup input.search-input) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #f4efe7 !important;
    outline: 0 !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }

  html body:not(.theme-force-light) .search-result-list {
    display: grid !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .search-result-list li {
    background: rgba(255, 248, 234, .07) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .13) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    color: #f4efe7 !important;
    list-style: none !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .search-result-list li::before,
  html body:not(.theme-force-light) .search-result-list li::after,
  html body:not(.theme-force-light) .search-result-list li > a::before,
  html body:not(.theme-force-light) .search-result-list li > a::after,
  html body:not(.theme-force-light) .search-result-title::before,
  html body:not(.theme-force-light) .search-result-title::after,
  html body:not(.theme-force-light) .search-result::before,
  html body:not(.theme-force-light) .search-result::after {
    content: none !important;
    display: none !important;
  }

  html body:not(.theme-force-light) .search-result-list li > a {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    display: block !important;
    overflow: visible !important;
    padding: 0 16px 12px !important;
    text-decoration: none !important;
  }

  html body:not(.theme-force-light) .search-result-list li > a.search-result-title {
    padding: 13px 16px 7px !important;
  }

  html body:not(.theme-force-light) :is(.search-result-title, a.search-result-title) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #fff8ea !important;
    display: block !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #fff8ea !important;
  }

  html body:not(.theme-force-light) :is(.search-result, p.search-result) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(244, 239, 231, .82) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    -webkit-text-fill-color: rgba(244, 239, 231, .82) !important;
  }

  html body:not(.theme-force-light) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption),
  html body:not(.theme-force-light) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::before,
  html body:not(.theme-force-light) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) :is(.photo-wall, .photo-item, .photo-frame, .photo-caption)::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  html body:not(.theme-force-light) :is(.album-wrapper, .album-container, .gallery-wrapper, .gallery-container) .photo-caption {
    color: #f4efe7 !important;
    display: block !important;
    line-height: 1.45 !important;
    margin: 10px 0 0 !important;
    padding: 0 4px !important;
    text-align: center !important;
    -webkit-text-fill-color: #f4efe7 !important;
  }
}

/* 2026-07-12: final dark surface cleanup. Keep this block at the real EOF. */
html.dark-mode,
html:has(body.theme-force-dark),
html:has(body.dark-mode) {
  background: #151411 !important;
  background-image: none !important;
}

html body:is(.theme-force-dark, .dark-mode),
html.dark-mode body {
  background: #151411 !important;
  background-image: none !important;
  min-height: 100vh !important;
}

html body:is(.theme-force-dark, .dark-mode) > #kylo-canvas-lines,
html body:is(.theme-force-dark, .dark-mode) > .kylo-canvas-lines,
html.dark-mode body > #kylo-canvas-lines,
html.dark-mode body > .kylo-canvas-lines,
html body:is(.theme-force-dark, .dark-mode) > #kylo-canvas-lines canvas,
html body:is(.theme-force-dark, .dark-mode) > .kylo-canvas-lines canvas,
html.dark-mode body > #kylo-canvas-lines canvas,
html.dark-mode body > .kylo-canvas-lines canvas {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.container, .main, .main-inner, .content-wrap, .content, .sidebar, .sidebar-inner, .site-overview-wrap),
html.dark-mode body :is(.container, .main, .main-inner, .content-wrap, .content, .sidebar, .sidebar-inner, .site-overview-wrap) {
  background-color: transparent !important;
  background-image: none !important;
}

html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card .site-state-wrap,
html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card .site-state-wrap > .site-state,
html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card .site-state > .site-state-item,
html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card .site-state > .site-state-item > a,
html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card .site-state > .site-state-item > span,
html body:is(.theme-force-dark, .dark-mode) .sidebar-profile-card .site-state > .site-state-item > a > span,
html.dark-mode body .sidebar-profile-card .site-state-wrap,
html.dark-mode body .sidebar-profile-card .site-state-wrap > .site-state,
html.dark-mode body .sidebar-profile-card .site-state > .site-state-item,
html.dark-mode body .sidebar-profile-card .site-state > .site-state-item > a,
html.dark-mode body .sidebar-profile-card .site-state > .site-state-item > span,
html.dark-mode body .sidebar-profile-card .site-state > .site-state-item > a > span {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  outline: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body:is(.theme-force-dark, .dark-mode) .album-wrapper .photo-item > .photo-caption,
html body:is(.theme-force-dark, .dark-mode) .album-container .photo-item > .photo-caption,
html.dark-mode body .album-wrapper .photo-item > .photo-caption,
html.dark-mode body .album-container .photo-item > .photo-caption {
  align-self: center !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  display: inline-block !important;
  filter: none !important;
  margin: 10px auto 0 !important;
  max-width: 100% !important;
  outline: 0 !important;
  padding: 0 4px !important;
  width: auto !important;
}

@media (prefers-color-scheme: dark) {
  html:has(body:not(.theme-force-light)) {
    background: #151411 !important;
    background-image: none !important;
  }

  html body:not(.theme-force-light),
  html body:not(.theme-force-light) :is(.container, .main, .main-inner, .content-wrap, .content, .sidebar, .sidebar-inner, .site-overview-wrap) {
    background-image: none !important;
  }

  html body:not(.theme-force-light) .sidebar-profile-card .site-state-wrap,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state-wrap > .site-state,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state > .site-state-item,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state > .site-state-item > a,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state > .site-state-item > span,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state > .site-state-item > a > span {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html body:not(.theme-force-light) .album-wrapper .photo-item > .photo-caption,
  html body:not(.theme-force-light) .album-container .photo-item > .photo-caption {
    align-self: center !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
    margin: 10px auto 0 !important;
    padding: 0 4px !important;
    width: auto !important;
  }
}

/* Absolute EOF: profile counters belong directly to the profile card. */
/* 2026-07-14: dark pagination, diary jump, and comments refinement. */
html body.theme-force-dark .pagination span.space,
html body.dark-mode .pagination span.space,
html.dark-mode body .pagination span.space {
  align-items: center !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #d7cfc2 !important;
  display: inline-flex !important;
  height: auto !important;
  justify-content: center !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 5px !important;
  width: auto !important;
  -webkit-text-fill-color: #d7cfc2 !important;
}

html body.theme-force-dark .page-jump-container,
html body.dark-mode .page-jump-container,
html.dark-mode body .page-jump-container {
  background: #1f1d1a !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .13) !important;
  box-shadow: none !important;
}

html body.theme-force-dark .page-jump-label,
html body.dark-mode .page-jump-label,
html.dark-mode body .page-jump-label {
  color: #f4efe6 !important;
  -webkit-text-fill-color: #f4efe6 !important;
}

html body.theme-force-dark :is(.page-selector-wrapper, .selector-arrow),
html body.dark-mode :is(.page-selector-wrapper, .selector-arrow),
html.dark-mode body :is(.page-selector-wrapper, .selector-arrow) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #d7cfc2 !important;
}

html body.theme-force-dark .page-selector,
html body.dark-mode .page-selector,
html.dark-mode body .page-selector {
  background: #292621 !important;
  background-image: none !important;
  border: 1px solid rgba(255, 248, 234, .16) !important;
  box-shadow: none !important;
  color: #f4efe6 !important;
  -webkit-text-fill-color: #f4efe6 !important;
}

html body.theme-force-dark .page-selector option,
html body.dark-mode .page-selector option,
html.dark-mode body .page-selector option {
  background: #1f1d1a !important;
  color: #f4efe6 !important;
}

html body.theme-force-dark .page-selector:is(:hover, :focus-visible),
html body.dark-mode .page-selector:is(:hover, :focus-visible),
html.dark-mode body .page-selector:is(:hover, :focus-visible) {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  outline: 0 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark .comments.giscus-comments,
html body.dark-mode .comments.giscus-comments,
html.dark-mode body .comments.giscus-comments {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-top: 30px !important;
  overflow: visible !important;
  padding: 0 !important;
}

html body.theme-force-dark .comments.giscus-comments :is(.giscus, iframe.giscus-frame),
html body.dark-mode .comments.giscus-comments :is(.giscus, iframe.giscus-frame),
html.dark-mode body .comments.giscus-comments :is(.giscus, iframe.giscus-frame) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color-scheme: dark !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .pagination span.space {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #d7cfc2 !important;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 0 5px !important;
    width: auto !important;
    -webkit-text-fill-color: #d7cfc2 !important;
  }

  html body:not(.theme-force-light) .page-jump-container {
    background: #1f1d1a !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .13) !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .page-jump-label {
    color: #f4efe6 !important;
    -webkit-text-fill-color: #f4efe6 !important;
  }

  html body:not(.theme-force-light) :is(.page-selector-wrapper, .selector-arrow) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #d7cfc2 !important;
  }

  html body:not(.theme-force-light) .page-selector {
    background: #292621 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 248, 234, .16) !important;
    box-shadow: none !important;
    color: #f4efe6 !important;
    -webkit-text-fill-color: #f4efe6 !important;
  }

  html body:not(.theme-force-light) .page-selector option {
    background: #1f1d1a !important;
    color: #f4efe6 !important;
  }

  html body:not(.theme-force-light) .page-selector:is(:hover, :focus-visible) {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    outline: 0 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) .comments.giscus-comments {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 30px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  html body:not(.theme-force-light) .comments.giscus-comments :is(.giscus, iframe.giscus-frame) {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color-scheme: dark !important;
  }
}

/* 2026-07-14: remove remaining blue accents from dark categories and search states. */
html body.theme-force-dark .categories-container :is(.stat-number, .category-card-title),
html body.dark-mode .categories-container :is(.stat-number, .category-card-title),
html.dark-mode body .categories-container :is(.stat-number, .category-card-title) {
  color: #f4efe6 !important;
  -webkit-text-fill-color: #f4efe6 !important;
}

html body.theme-force-dark .categories-container :is(.stat-label, .category-card-description, .category-card-description *),
html body.dark-mode .categories-container :is(.stat-label, .category-card-description, .category-card-description *),
html.dark-mode body .categories-container :is(.stat-label, .category-card-description, .category-card-description *) {
  color: #cfc5b8 !important;
  -webkit-text-fill-color: #cfc5b8 !important;
}

html body.theme-force-dark .categories-container :is(.tag-item, .post-count),
html body.dark-mode .categories-container :is(.tag-item, .post-count),
html.dark-mode body .categories-container :is(.tag-item, .post-count) {
  background: #292621 !important;
  background-image: none !important;
  border-color: rgba(255, 248, 234, .14) !important;
  box-shadow: none !important;
  color: #e7dfd2 !important;
  -webkit-text-fill-color: #e7dfd2 !important;
}

html body.theme-force-dark .categories-container :is(.tag-item, .post-count):is(:hover, :focus-visible),
html body.dark-mode .categories-container :is(.tag-item, .post-count):is(:hover, :focus-visible),
html.dark-mode body .categories-container :is(.tag-item, .post-count):is(:hover, :focus-visible) {
  background: #fff8ea !important;
  border-color: #fff8ea !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html body.theme-force-dark #no-result,
html body.dark-mode #no-result,
html.dark-mode body #no-result,
html body.theme-force-dark #no-result :is(i, .fa, .fas, .far, .search-status),
html body.dark-mode #no-result :is(i, .fa, .fas, .far, .search-status),
html.dark-mode body #no-result :is(i, .fa, .fas, .far, .search-status) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #d8d0c3 !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #d8d0c3 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .categories-container :is(.stat-number, .category-card-title) {
    color: #f4efe6 !important;
    -webkit-text-fill-color: #f4efe6 !important;
  }

  html body:not(.theme-force-light) .categories-container :is(.stat-label, .category-card-description, .category-card-description *) {
    color: #cfc5b8 !important;
    -webkit-text-fill-color: #cfc5b8 !important;
  }

  html body:not(.theme-force-light) .categories-container :is(.tag-item, .post-count) {
    background: #292621 !important;
    background-image: none !important;
    border-color: rgba(255, 248, 234, .14) !important;
    box-shadow: none !important;
    color: #e7dfd2 !important;
    -webkit-text-fill-color: #e7dfd2 !important;
  }

  html body:not(.theme-force-light) .categories-container :is(.tag-item, .post-count):is(:hover, :focus-visible) {
    background: #fff8ea !important;
    border-color: #fff8ea !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(.theme-force-light) #no-result,
  html body:not(.theme-force-light) #no-result :is(i, .fa, .fas, .far, .search-status) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #d8d0c3 !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #d8d0c3 !important;
  }
}

/* Lock the card and counters to one rendered dark color, including forced browser dark mode. */
html body.theme-force-dark .sidebar-profile-card,
html body.dark-mode .sidebar-profile-card,
html.dark-mode body .sidebar-profile-card,
html body.theme-force-dark .sidebar-profile-card .site-state,
html body.dark-mode .sidebar-profile-card .site-state,
html.dark-mode body .sidebar-profile-card .site-state {
  background: #1f1d1a !important;
  background-color: #1f1d1a !important;
  background-image: none !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .sidebar-profile-card,
  html body:not(.theme-force-light) .sidebar-profile-card .site-state {
    background: #1f1d1a !important;
    background-color: #1f1d1a !important;
    background-image: none !important;
  }
}

/* Final books selector override, placed after all generic dark controls. */
html body:is(.theme-force-dark, .dark-mode) .main-category-selector,
html.dark-mode body .main-category-selector {
  background: rgba(255, 250, 241, .10) !important;
  border: 1px solid rgba(255, 250, 241, .20) !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18) !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) .main-category-selector *,
html.dark-mode body .main-category-selector * {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) .sub-category-dropdown,
html.dark-mode body .sub-category-dropdown {
  background: #27231f !important;
  border: 1px solid rgba(255, 250, 241, .14) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28) !important;
  padding: 8px 0 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option),
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option) {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 250, 241, .10) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option):hover,
html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option).active,
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option):hover,
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option).active {
  background: rgba(255, 250, 241, .12) !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) .main-category-option::after,
html.dark-mode body .main-category-option::after {
  color: #fffaf1 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .main-category-selector {
    background: rgba(255, 250, 241, .10) !important;
    border: 1px solid rgba(255, 250, 241, .20) !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18) !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .main-category-selector *,
  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option),
  html body:not(.theme-force-light) .main-category-option::after {
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .sub-category-dropdown {
    background: #27231f !important;
    border: 1px solid rgba(255, 250, 241, .14) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28) !important;
    padding: 8px 0 !important;
  }

  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option) {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 250, 241, .10) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option):hover,
  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option).active {
    background: rgba(255, 250, 241, .12) !important;
  }
}

/* Encrypted-post gate: use the same warm dark card language as the site. */
html body:is(.theme-force-dark, .dark-mode) :is(.hbe-container, .password-gate),
html.dark-mode body :is(.hbe-container, .password-gate) {
  background: #24211d !important;
  border: 1px solid rgba(255, 250, 241, .14) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .28) !important;
  color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.hbe-content, .hbe-form),
html.dark-mode body :is(.hbe-content, .hbe-form) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body:is(.theme-force-dark, .dark-mode) .password-gate-content,
html.dark-mode body .password-gate-content {
  background: transparent !important;
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
  color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.hbe-input, .hbe-input-default),
html.dark-mode body :is(.hbe-input, .hbe-input-default) {
  background: #1a1815 !important;
  border: 1px solid rgba(255, 250, 241, .18) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

html body:is(.theme-force-dark, .dark-mode) .hbe-input-field,
html.dark-mode body .hbe-input-field {
  background: transparent !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.hbe-input-label, .hbe-input-label-content, .hbe-error),
html.dark-mode body :is(.hbe-input-label, .hbe-input-label-content, .hbe-error) {
  color: #d7cfc2 !important;
  -webkit-text-fill-color: #d7cfc2 !important;
}

html body:is(.theme-force-dark, .dark-mode) .hbe-button,
html.dark-mode body .hbe-button {
  background: #fffaf1 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22) !important;
  color: #211e1a !important;
  -webkit-text-fill-color: #211e1a !important;
}

html body:is(.theme-force-dark, .dark-mode) .hbe-button:hover,
html.dark-mode body .hbe-button:hover {
  background: #e9dfd0 !important;
  color: #211e1a !important;
  -webkit-text-fill-color: #211e1a !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(.category-option-all, .main-category-option, .sub-category-option):is(:hover, .active) *,
html body:is(.theme-force-dark, .dark-mode) .main-category-option:is(:hover, .active)::after,
html.dark-mode body :is(.category-option-all, .main-category-option, .sub-category-option):is(:hover, .active) *,
html.dark-mode body .main-category-option:is(:hover, .active)::after {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) :is(.hbe-container, .password-gate) {
    background: #24211d !important;
    border: 1px solid rgba(255, 250, 241, .14) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .28) !important;
    color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(.hbe-content, .hbe-form) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .password-gate-content {
    background: transparent !important;
    border: 0 !important;
    border-radius: inherit !important;
    box-shadow: none !important;
    color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(.hbe-input, .hbe-input-default) {
    background: #1a1815 !important;
    border: 1px solid rgba(255, 250, 241, .18) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .hbe-input-field {
    background: transparent !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(.hbe-input-label, .hbe-input-label-content, .hbe-error) {
    color: #d7cfc2 !important;
    -webkit-text-fill-color: #d7cfc2 !important;
  }

  html body:not(.theme-force-light) .hbe-button {
    background: #fffaf1 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22) !important;
    color: #211e1a !important;
    -webkit-text-fill-color: #211e1a !important;
  }

  html body:not(.theme-force-light) .hbe-button:hover {
    background: #e9dfd0 !important;
  }

  html body:not(.theme-force-light) :is(.category-option-all, .main-category-option, .sub-category-option):is(:hover, .active) *,
  html body:not(.theme-force-light) .main-category-option:is(:hover, .active)::after {
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }
}

html body .sidebar-profile-card .site-state-wrap {
  display: contents !important;
}

html body .sidebar-profile-card .site-state {
  box-sizing: border-box !important;
  margin-top: 8px !important;
  padding-top: 8px !important;
  width: 100% !important;
}

html body .sidebar-profile-card .site-state-wrap,
html body .sidebar-profile-card .site-state-wrap > .site-state,
html body .sidebar-profile-card .site-state > .site-state-item,
html body .sidebar-profile-card .site-state > .site-state-item > a,
html body .sidebar-profile-card .site-state > .site-state-item > span,
html body .sidebar-profile-card .site-state > .site-state-item > a > span {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  outline: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body .sidebar-profile-card .site-state-wrap::before,
html body .sidebar-profile-card .site-state-wrap::after,
html body .sidebar-profile-card .site-state::before,
html body .sidebar-profile-card .site-state::after,
html body .sidebar-profile-card .site-state-item::before,
html body .sidebar-profile-card .site-state-item::after,
html body .sidebar-profile-card .site-state-item > a::before,
html body .sidebar-profile-card .site-state-item > a::after,
html body .sidebar-profile-card .site-state-item > span::before,
html body .sidebar-profile-card .site-state-item > span::after {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  content: none !important;
  display: none !important;
}


/* password-dark-final.css */
/* Loaded after the legacy dark patches: encrypted article password gate only. */
html body.theme-force-dark .password-gate.hbe-container,
html body.dark-mode .password-gate.hbe-container,
html.dark-mode body .password-gate.hbe-container {
  background: #24211d !important;
  border: 1px solid rgba(255, 250, 241, .14) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .28) !important;
  color: #fffaf1 !important;
}

html body.theme-force-dark .password-gate .hbe.hbe-content,
html body.theme-force-dark .password-gate .hbe.hbe-form,
html body.dark-mode .password-gate .hbe.hbe-content,
html body.dark-mode .password-gate .hbe.hbe-form,
html.dark-mode body .password-gate .hbe.hbe-content,
html.dark-mode body .password-gate .hbe.hbe-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark .password-gate .hbe.hbe-input,
html body.dark-mode .password-gate .hbe.hbe-input,
html.dark-mode body .password-gate .hbe.hbe-input {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.theme-force-dark .password-gate .hbe.hbe-input-field,
html body.theme-force-dark .password-gate .hbe.hbe-input-field-default,
html body.dark-mode .password-gate .hbe.hbe-input-field,
html body.dark-mode .password-gate .hbe.hbe-input-field-default,
html.dark-mode body .password-gate .hbe.hbe-input-field,
html.dark-mode body .password-gate .hbe.hbe-input-field-default {
  background: #1a1815 !important;
  border: 1px solid rgba(255, 250, 241, .24) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, .05) !important;
  color: #fffaf1 !important;
  caret-color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body.theme-force-dark .password-gate .hbe.hbe-input-field:focus,
html body.theme-force-dark .password-gate .hbe.hbe-input-field-default:focus,
html body.dark-mode .password-gate .hbe.hbe-input-field:focus,
html body.dark-mode .password-gate .hbe.hbe-input-field-default:focus,
html.dark-mode body .password-gate .hbe.hbe-input-field:focus,
html.dark-mode body .password-gate .hbe.hbe-input-field-default:focus {
  background: #1a1815 !important;
  border-color: #fffaf1 !important;
  box-shadow: 0 0 0 4px rgba(255, 250, 241, .10) !important;
}

html body.theme-force-dark .password-gate .hbe.hbe-input-label,
html body.theme-force-dark .password-gate .hbe.hbe-input-label-default,
html body.dark-mode .password-gate .hbe.hbe-input-label,
html body.dark-mode .password-gate .hbe.hbe-input-label-default,
html.dark-mode body .password-gate .hbe.hbe-input-label,
html.dark-mode body .password-gate .hbe.hbe-input-label-default {
  background: transparent !important;
  border: 0 !important;
  color: #d7cfc2 !important;
  display: block !important;
  line-height: 1.5 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  position: static !important;
}

html body.theme-force-dark .password-gate .hbe.hbe-input-label-content,
html body.theme-force-dark .password-gate .hbe.hbe-input-label-content-default,
html body.dark-mode .password-gate .hbe.hbe-input-label-content,
html body.dark-mode .password-gate .hbe.hbe-input-label-content-default,
html.dark-mode body .password-gate .hbe.hbe-input-label-content,
html.dark-mode body .password-gate .hbe.hbe-input-label-content-default {
  color: #d7cfc2 !important;
  -webkit-text-fill-color: #d7cfc2 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .password-gate.hbe-container {
    background: #24211d !important;
    border: 1px solid rgba(255, 250, 241, .14) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .28) !important;
    color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .password-gate .hbe.hbe-content,
  html body:not(.theme-force-light) .password-gate .hbe.hbe-form,
  html body:not(.theme-force-light) .password-gate .hbe.hbe-input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .password-gate .hbe.hbe-input-field,
  html body:not(.theme-force-light) .password-gate .hbe.hbe-input-field-default {
    background: #1a1815 !important;
    border: 1px solid rgba(255, 250, 241, .24) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255, 250, 241, .05) !important;
    color: #fffaf1 !important;
    caret-color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .password-gate .hbe.hbe-input-label,
  html body:not(.theme-force-light) .password-gate .hbe.hbe-input-label-default {
    background: transparent !important;
    border: 0 !important;
    color: #d7cfc2 !important;
    display: block !important;
    line-height: 1.5 !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    position: static !important;
  }

  html body:not(.theme-force-light) .password-gate .hbe.hbe-input-label-content,
  html body:not(.theme-force-light) .password-gate .hbe.hbe-input-label-content-default {
    color: #d7cfc2 !important;
    -webkit-text-fill-color: #d7cfc2 !important;
  }
}


/* books-dark-final.css */
/* Loaded last for the books category picker. It preserves the daytime shape. */
html body.theme-force-dark .main-category-selector,
html body.dark-mode .main-category-selector,
html.dark-mode body .main-category-selector {
  background: rgba(255, 250, 241, .10) !important;
  border: 0 !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15) !important;
  color: #fffaf1 !important;
  gap: 8px !important;
  min-width: 140px !important;
  padding: 8px 16px !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body.theme-force-dark .main-category-selector *,
html body.dark-mode .main-category-selector *,
html.dark-mode body .main-category-selector *,
html body.theme-force-dark .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option),
html body.dark-mode .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option),
html.dark-mode body .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option) {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body.theme-force-dark .sub-category-dropdown,
html body.dark-mode .sub-category-dropdown,
html.dark-mode body .sub-category-dropdown {
  background: #2b2722 !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15) !important;
  margin-top: 8px !important;
  max-width: 300px !important;
  min-width: 200px !important;
  overflow: hidden !important;
  padding: 8px 0 !important;
}

html body.theme-force-dark .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option),
html body.dark-mode .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option),
html.dark-mode body .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option) {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 250, 241, .05) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option):is(:hover, .active),
html body.dark-mode .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option):is(:hover, .active),
html.dark-mode body .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option):is(:hover, .active) {
  background: rgba(255, 250, 241, .12) !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body.theme-force-dark .sub-category-dropdown .main-category-option::after,
html body.dark-mode .sub-category-dropdown .main-category-option::after,
html.dark-mode body .sub-category-dropdown .main-category-option::after {
  color: #fffaf1 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .main-category-selector {
    background: rgba(255, 250, 241, .10) !important;
    border: 0 !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15) !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .main-category-selector *,
  html body:not(.theme-force-light) .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option) {
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) .sub-category-dropdown {
    background: #2b2722 !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15) !important;
    margin-top: 8px !important;
    max-width: 300px !important;
    min-width: 200px !important;
    overflow: hidden !important;
    padding: 8px 0 !important;
  }

  html body:not(.theme-force-light) .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option) {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 250, 241, .05) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.theme-force-light) .sub-category-dropdown :is(.category-option-all, .main-category-option, .sub-category-option):is(:hover, .active) {
    background: rgba(255, 250, 241, .12) !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }
}


/* media-category-dark-final.css */
/* Books and movies keep their light-theme geometry in dark mode. */
html body.theme-force-dark :is(.books-wrapper .main-category-selector, .movies-wrapper .category-selector),
html body.dark-mode :is(.books-wrapper .main-category-selector, .movies-wrapper .category-selector),
html.dark-mode body :is(.books-wrapper .main-category-selector, .movies-wrapper .category-selector) {
  background: #2b2722 !important;
  border: 0 !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .20) !important;
  color: #fffaf1 !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body.theme-force-dark :is(.books-wrapper .sub-category-dropdown, .movies-wrapper .category-dropdown),
html body.dark-mode :is(.books-wrapper .sub-category-dropdown, .movies-wrapper .category-dropdown),
html.dark-mode body :is(.books-wrapper .sub-category-dropdown, .movies-wrapper .category-dropdown) {
  background: #2b2722 !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24) !important;
  color: #fffaf1 !important;
  max-height: min(420px, calc(100dvh - 128px)) !important;
  margin-top: 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 8px 0 !important;
  scrollbar-width: none !important;
}

html body.theme-force-dark :is(.books-wrapper .sub-category-dropdown, .movies-wrapper .category-dropdown)::-webkit-scrollbar,
html body.dark-mode :is(.books-wrapper .sub-category-dropdown, .movies-wrapper .category-dropdown)::-webkit-scrollbar,
html.dark-mode body :is(.books-wrapper .sub-category-dropdown, .movies-wrapper .category-dropdown)::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

html body.theme-force-dark :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option),
html body.dark-mode :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option),
html.dark-mode body :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option) {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 250, 241, .055) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body.theme-force-dark :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option):is(:hover, .active),
html body.dark-mode :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option):is(:hover, .active),
html.dark-mode body :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option):is(:hover, .active) {
  background: rgba(255, 250, 241, .10) !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body.theme-force-dark :is(.books-wrapper .main-category-selector, .movies-wrapper .category-selector) *,
html body.dark-mode :is(.books-wrapper .main-category-selector, .movies-wrapper .category-selector) *,
html.dark-mode body :is(.books-wrapper .main-category-selector, .movies-wrapper .category-selector) * {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body.theme-force-dark :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option) *,
html body.dark-mode :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option) *,
html.dark-mode body :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option) * {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) :is(.books-wrapper .main-category-selector, .movies-wrapper .category-selector) {
    background: #2b2722 !important;
    border: 0 !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .20) !important;
    color: #fffaf1 !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(.books-wrapper .sub-category-dropdown, .movies-wrapper .category-dropdown) {
    background: #2b2722 !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24) !important;
    color: #fffaf1 !important;
    max-height: min(420px, calc(100dvh - 128px)) !important;
    margin-top: 8px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 8px 0 !important;
    scrollbar-width: none !important;
  }

  html body:not(.theme-force-light) :is(.books-wrapper .sub-category-dropdown, .movies-wrapper .category-dropdown)::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }

  html body:not(.theme-force-light) :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option) {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 250, 241, .055) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option):is(:hover, .active) {
    background: rgba(255, 250, 241, .10) !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(.books-wrapper .main-category-selector, .movies-wrapper .category-selector) * {
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(.books-wrapper .category-option-all, .books-wrapper .main-category-option, .books-wrapper .sub-category-option, .movies-wrapper .category-option) * {
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }
}

/* Dynamic movie group labels use inline colors; keep them readable while open/hovered. */
html body:is(.theme-force-dark, .dark-mode) :is(#categoryDropdown, #categoryDropdownFriends) .category-group-header,
html.dark-mode body :is(#categoryDropdown, #categoryDropdownFriends) .category-group-header,
html body:is(.theme-force-dark, .dark-mode) :is(#categorySelector, #categorySelectorFriends):is(:hover, :focus-within) .category-group-header,
html.dark-mode body :is(#categorySelector, #categorySelectorFriends):is(:hover, :focus-within) .category-group-header {
  color: #d7cfc2 !important;
  -webkit-text-fill-color: #d7cfc2 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) :is(#categoryDropdown, #categoryDropdownFriends) .category-group-header,
  html body:not(.theme-force-light) :is(#categorySelector, #categorySelectorFriends):is(:hover, :focus-within) .category-group-header {
    color: #d7cfc2 !important;
    -webkit-text-fill-color: #d7cfc2 !important;
  }
}

/* ID-scoped final pass beats the legacy global button selector. */
html body:is(.theme-force-dark, .dark-mode) :is(#mainCategorySelector, #categorySelector),
html.dark-mode body :is(#mainCategorySelector, #categorySelector) {
  background: #2b2722 !important;
  border: 0 !important;
  border-radius: 50px !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(#mainCategorySelector, #categorySelector) > span,
html.dark-mode body :is(#mainCategorySelector, #categorySelector) > span,
html body:is(.theme-force-dark, .dark-mode) :is(#subCategoryDropdown, #categoryDropdown) button,
html.dark-mode body :is(#subCategoryDropdown, #categoryDropdown) button,
html body:is(.theme-force-dark, .dark-mode) :is(#subCategoryDropdown, #categoryDropdown) button *,
html.dark-mode body :is(#subCategoryDropdown, #categoryDropdown) button * {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(#subCategoryDropdown, #categoryDropdown),
html.dark-mode body :is(#subCategoryDropdown, #categoryDropdown) {
  background: #2b2722 !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fffaf1 !important;
  max-height: min(420px, calc(100dvh - 128px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(#subCategoryDropdown, #categoryDropdown).show,
html.dark-mode body :is(#subCategoryDropdown, #categoryDropdown).show {
  animation: none !important;
  opacity: 1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(#subCategoryDropdown, #categoryDropdown) button:is(:hover, .active),
html.dark-mode body :is(#subCategoryDropdown, #categoryDropdown) button:is(:hover, .active) {
  background: rgba(255, 250, 241, .10) !important;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html body:is(.theme-force-dark, .dark-mode) :is(#subCategoryDropdown, #categoryDropdown)::-webkit-scrollbar,
html.dark-mode body :is(#subCategoryDropdown, #categoryDropdown)::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) :is(#mainCategorySelector, #categorySelector) {
    background: #2b2722 !important;
    border: 0 !important;
    border-radius: 50px !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(#mainCategorySelector, #categorySelector) > span,
  html body:not(.theme-force-light) :is(#subCategoryDropdown, #categoryDropdown) button,
  html body:not(.theme-force-light) :is(#subCategoryDropdown, #categoryDropdown) button * {
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(#subCategoryDropdown, #categoryDropdown) {
    background: #2b2722 !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fffaf1 !important;
    max-height: min(420px, calc(100dvh - 128px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(#subCategoryDropdown, #categoryDropdown).show {
    animation: none !important;
    opacity: 1 !important;
  }

  html body:not(.theme-force-light) :is(#subCategoryDropdown, #categoryDropdown) button:is(:hover, .active) {
    background: rgba(255, 250, 241, .10) !important;
    color: #fffaf1 !important;
    -webkit-text-fill-color: #fffaf1 !important;
  }

  html body:not(.theme-force-light) :is(#subCategoryDropdown, #categoryDropdown)::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }
}


/* movie-lightbox-nav-safe.css */
/* Keep the movie detail dialog clear of the fixed site navigation. */
html body #movieLightbox .lightbox-content {
  margin: 112px auto 28px !important;
  max-height: calc(100vh - 140px) !important;
}

@media (max-width: 767px) {
  html body #movieLightbox .lightbox-content {
    margin: 84px auto 16px !important;
    max-height: calc(100vh - 100px) !important;
  }
}


/* comments-apple-final.css */
/* Host page shell for Giscus: one quiet Apple-style card around the iframe. */
html body .comments.giscus-comments {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-top: 24px !important;
  overflow: visible !important;
  padding: 0 !important;
}

html body .comments.giscus-comments :is(.giscus, iframe.giscus-frame) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
  overflow: visible !important;
  width: 100% !important;
}

/* Giscus renders its own controls inside the iframe. Keep every visible
   comment surface card-like and remove the theme's separator-line treatment. */
html body .comments.giscus-comments :is(.gsc-comment-box, .gsc-comment, .gsc-reply-box),
html body .comments.giscus-comments :is(.gsc-header, .gsc-comment-header, .gsc-comment-content, .gsc-comment-footer, .gsc-replies) {
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  background-image: none !important;
}

html body .comments.giscus-comments :is(.gsc-comment-box, .gsc-comment) {
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(29, 29, 31, .08) !important;
  margin-bottom: 14px !important;
}

html body .comments.giscus-comments :is(.gsc-comment-header, .gsc-comment-content) {
  color: #1d1d1f !important;
}

html body.theme-force-dark .comments.giscus-comments,
html body.dark-mode .comments.giscus-comments,
html.dark-mode body .comments.giscus-comments {
  background: transparent !important;
  box-shadow: none !important;
}

html body.theme-force-dark .comments.giscus-comments :is(.giscus, iframe.giscus-frame),
html body.dark-mode .comments.giscus-comments :is(.giscus, iframe.giscus-frame),
html.dark-mode body .comments.giscus-comments :is(.giscus, iframe.giscus-frame) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.theme-force-dark .comments.giscus-comments :is(.gsc-comment-box, .gsc-comment),
html body.dark-mode .comments.giscus-comments :is(.gsc-comment-box, .gsc-comment),
html.dark-mode body .comments.giscus-comments :is(.gsc-comment-box, .gsc-comment) {
  background: #232323 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28) !important;
}

html body.theme-force-dark .comments.giscus-comments :is(.gsc-comment-header, .gsc-comment-content),
html body.dark-mode .comments.giscus-comments :is(.gsc-comment-header, .gsc-comment-content),
html.dark-mode body .comments.giscus-comments :is(.gsc-comment-header, .gsc-comment-content) {
  color: #f4f4f2 !important;
}

@media (max-width: 720px) {
  html body .comments.giscus-comments {
    border-radius: 0 !important;
    padding: 0 !important;
  }

  html body .comments.giscus-comments :is(.giscus, iframe.giscus-frame) {
    border-radius: 0 !important;
    margin-inline: 0 !important;
    max-width: 100% !important;
  }
}


/* menu-active-final.css */
/* Keep parent menu items highlighted when any nested page is active. */
html body .main-menu > .menu-item-has-children:has(> .menu-child .menu-item-active) > a,
html body .main-menu > .menu-item-has-children.menu-item-active > a {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .16) !important;
}

html body.theme-force-dark .main-menu > .menu-item-has-children:has(> .menu-child .menu-item-active) > a,
html body.theme-force-dark .main-menu > .menu-item-has-children.menu-item-active > a {
  background: #fffaf1 !important;
  border-color: #fffaf1 !important;
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

html body.theme-force-dark .main-menu > .menu-item-has-children:has(> .menu-child .menu-item-active) > a *,
html body.theme-force-dark .main-menu > .menu-item-has-children.menu-item-active > a * {
  color: #151515 !important;
  -webkit-text-fill-color: #151515 !important;
}

@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) .main-menu > .menu-item-has-children:has(> .menu-child .menu-item-active) > a,
  html body:not(.theme-force-light) .main-menu > .menu-item-has-children.menu-item-active > a {
    background: #fffaf1 !important;
    border-color: #fffaf1 !important;
    color: #151515 !important;
    -webkit-text-fill-color: #151515 !important;
  }

  html body:not(.theme-force-light) .main-menu > .menu-item-has-children:has(> .menu-child .menu-item-active) > a *,
  html body:not(.theme-force-light) .main-menu > .menu-item-has-children.menu-item-active > a * {
    color: #151515 !important;
    -webkit-text-fill-color: #151515 !important;
  }
}


/* page-controls.css */
/* Page menus share the blog's soft borders and translucent rounded surfaces. */
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) {
  --page-jump-surface: rgba(255, 255, 255, .88);
  --page-jump-menu: rgba(255, 255, 255, .94);
  --page-jump-ink: #242424;
  --page-jump-muted: #777;
  --page-jump-line: rgba(0, 0, 0, .14);
  --page-jump-hover: #f3f3f3;
  --page-jump-active: #e9e9e9;
  --page-jump-focus: rgba(0, 0, 0, .12);
  --page-jump-shadow: rgba(0, 0, 0, .12);
  --page-button-surface: #fff;
  --page-button-ink: #202020;
  --page-button-hover: #202020;
  --page-button-hover-ink: #fff;
  --page-button-hover-line: #202020;
  --page-button-pressed: #151515;
  --page-button-radius: 13px;
  --page-button-shadow: 0 3px 10px rgba(0, 0, 0, .035);
  --page-button-hover-shadow: 0 5px 14px rgba(0, 0, 0, .1);
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) [data-page-jump-native],
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-menu[hidden],
html body #pagination-wrapper .page-jump-control > .selector-arrow {
  display: none !important;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-control {
  display: inline-block;
  position: relative;
  width: 104px;
  vertical-align: middle;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-open { z-index: 1000; }
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  appearance: none;
  background: var(--page-jump-surface) !important;
  border: 1px solid var(--page-jump-line) !important;
  border-radius: 13px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .04) !important;
  color: var(--page-jump-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-trigger > svg {
  flex: 0 0 14px;
  color: var(--page-jump-muted);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-open .page-jump-trigger > svg { transform: rotate(180deg); }
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-trigger:hover,
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-open .page-jump-trigger {
  background: var(--page-jump-hover) !important;
  box-shadow: 0 4px 14px var(--page-jump-focus) !important;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-trigger:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 3px var(--page-jump-focus) !important;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-menu {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 1001;
  box-sizing: border-box;
  display: grid;
  gap: 3px;
  width: max(100%, 132px);
  max-height: min(240px, 60vh);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: var(--page-jump-menu) !important;
  border: 1px solid var(--page-jump-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 32px var(--page-jump-shadow) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: page-jump-appear .2s cubic-bezier(.22, 1, .36, 1);
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-menu[data-side="below"] {
  bottom: auto;
  top: calc(100% + 9px);
  --page-menu-offset: -5px;
  transform-origin: 50% 0;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: var(--page-jump-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background-color .12s ease;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-option > svg { opacity: 0; }
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-option[aria-selected="true"] {
  background: var(--page-jump-hover) !important;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-option[aria-selected="true"] > svg { opacity: 1; }
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-option:is(:hover, .page-jump-active) {
  background: var(--page-jump-active) !important;
}
html body:is(.theme-force-dark, .dark-mode) :is(#pagination-wrapper, #album-pagination, .media-pagination),
html.dark-mode body :is(#pagination-wrapper, #album-pagination, .media-pagination) {
  --page-jump-surface: var(--kylo-dark-soft, #343028);
  --page-jump-menu: var(--kylo-dark-card, #292621);
  --page-jump-ink: var(--kylo-dark-text, #f4efe6);
  --page-jump-muted: var(--kylo-dark-faint, #aaa094);
  --page-jump-line: var(--kylo-dark-border, rgba(255, 246, 232, .14));
  --page-jump-hover: rgba(255, 255, 255, .07);
  --page-jump-active: rgba(255, 255, 255, .12);
  --page-jump-focus: rgba(255, 255, 255, .16);
  --page-jump-shadow: rgba(0, 0, 0, .3);
  --page-button-surface: var(--kylo-dark-soft, #343028);
  --page-button-ink: var(--kylo-dark-text, #f4efe6);
  --page-button-hover: #403a32;
  --page-button-hover-ink: var(--kylo-dark-hot, #fff8ea);
  --page-button-hover-line: var(--kylo-dark-border-strong, rgba(255, 246, 232, .24));
  --page-button-pressed: var(--kylo-dark-card, #292621);
  --page-button-radius: 999px;
  --page-button-shadow: inset 0 1px 0 rgba(255, 248, 234, .025);
  --page-button-hover-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}
@media (prefers-color-scheme: dark) {
  html body:not(.theme-force-light) :is(#pagination-wrapper, #album-pagination, .media-pagination) {
    --page-jump-surface: var(--kylo-dark-soft, #343028);
    --page-jump-menu: var(--kylo-dark-card, #292621);
    --page-jump-ink: var(--kylo-dark-text, #f4efe6);
    --page-jump-muted: var(--kylo-dark-faint, #aaa094);
    --page-jump-line: var(--kylo-dark-border, rgba(255, 246, 232, .14));
    --page-jump-hover: rgba(255, 255, 255, .07);
    --page-jump-active: rgba(255, 255, 255, .12);
    --page-jump-focus: rgba(255, 255, 255, .16);
    --page-jump-shadow: rgba(0, 0, 0, .3);
    --page-button-surface: var(--kylo-dark-soft, #343028);
    --page-button-ink: var(--kylo-dark-text, #f4efe6);
    --page-button-hover: #403a32;
    --page-button-hover-ink: var(--kylo-dark-hot, #fff8ea);
    --page-button-hover-line: var(--kylo-dark-border-strong, rgba(255, 246, 232, .24));
    --page-button-pressed: var(--kylo-dark-card, #292621);
    --page-button-radius: 999px;
    --page-button-shadow: inset 0 1px 0 rgba(255, 248, 234, .025);
    --page-button-hover-shadow: 0 4px 12px rgba(0, 0, 0, .16);
  }
}
@keyframes page-jump-appear {
  from { opacity: 0; transform: translate(-50%, var(--page-menu-offset, 5px)) scale(.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
#photo-wall.page-turn-content,
#current-page-diary.page-turn-content { scroll-margin-top: 20px; }
#photo-wall.page-turn-content { opacity: 1; animation: none !important; }
#current-page-diary.page-turn-content > .diary-card {
  opacity: 1;
  transform: none;
  animation: none !important;
}
@media (pointer: coarse) {
  html body :is(#pagination-wrapper, #album-pagination, .media-pagination) .page-jump-option { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html body :is(#pagination-wrapper, #album-pagination, .media-pagination) :is(.page-jump-trigger, .page-jump-trigger > svg, .page-jump-menu, .page-jump-option) {
    animation: none !important;
    transition: none !important;
  }
}

/* All collection pages use the same quiet black-and-white navigation. */
html body .media-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: 680px;
  margin: 38px auto 0;
  padding-top: 24px;
  font-size: 14px;
}
html body .media-pagination[hidden] { display: none !important; }
html body .media-pagination [data-page-prev] { justify-self: start; }
html body .media-pagination [data-page-next] { justify-self: end; }
html body .media-pagination .media-page-info {
  color: var(--page-jump-muted) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html body .media-pagination .media-page-jump {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--page-jump-muted) !important;
  font-size: 13px;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) :is(.pagination-btn, .album-page-button, .media-page-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 40px;
  margin: 0;
  padding: 9px 16px;
  appearance: none;
  background: var(--page-button-surface) !important;
  border: 1px solid var(--page-jump-line) !important;
  border-radius: var(--page-button-radius) !important;
  box-shadow: var(--page-button-shadow) !important;
  color: var(--page-button-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transform: translateY(0) scale(1) !important;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) :is(.pagination-btn, .album-page-button, .media-page-button):not(:disabled):hover {
  background: var(--page-button-hover) !important;
  border-color: var(--page-button-hover-line) !important;
  box-shadow: var(--page-button-hover-shadow) !important;
  color: var(--page-button-hover-ink) !important;
  transform: translateY(-1px) scale(1) !important;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) :is(.pagination-btn, .album-page-button, .media-page-button):not(:disabled):active {
  background: var(--page-button-pressed) !important;
  border-color: var(--page-button-hover-line) !important;
  box-shadow: none !important;
  color: var(--page-button-hover-ink) !important;
  transform: translateY(0) scale(.97) !important;
  transition-duration: .1s;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) :is(.pagination-btn, .album-page-button, .media-page-button):disabled {
  background: transparent !important;
  border-color: var(--page-jump-line) !important;
  color: var(--page-jump-muted) !important;
  opacity: .5;
  box-shadow: none !important;
  cursor: default;
}
html body :is(#pagination-wrapper, #album-pagination, .media-pagination) :is(.pagination-btn, .album-page-button, .media-page-button):focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 3px var(--page-jump-focus) !important;
}
html body #pagination-wrapper .pagination-info,
html body #pagination-wrapper .page-jump-label,
html body #album-pagination .album-page-info,
html body #album-pagination .album-page-jump {
  color: var(--page-jump-muted) !important;
}
html body #pagination-wrapper .pagination-info span,
html body #album-pagination .album-page-info span { color: var(--page-jump-ink) !important; }
#myBooksGrid.page-turn-content, #myMoviesGrid.page-turn-content, #friendsMoviesGrid.page-turn-content { scroll-margin-top: 20px; }
@media (max-width: 480px) {
  html body .media-pagination { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html body .media-pagination .media-page-info { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  html body .media-pagination .media-page-button { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html body :is(#pagination-wrapper, #album-pagination, .media-pagination) :is(.pagination-btn, .album-page-button, .media-page-button) {
    transition: none !important;
    transform: none !important;
  }
}
