:root {
  color-scheme: light;
  background: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #ffffff;
  color: #111111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.page-background::after {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.76);
  content: "";
}

body.has-page-background .page-background {
  opacity: 1;
}

.background-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  max-width: calc(100vw - 36px);
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: rgba(17, 17, 17, 0.42);
  font-size: 12px;
  line-height: 1.6;
}

.background-switcher-text {
  max-width: min(280px, calc(100vw - 86px));
  text-align: right;
}

.background-switcher-button {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 17, 17, 0.62);
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.background-switcher-button:hover,
.background-switcher-button:focus-visible {
  border-color: rgba(17, 17, 17, 0.36);
  background: #ffffff;
  color: #111111;
  outline: none;
}

.theme-mode-toggle {
  position: fixed;
  right: 18px;
  bottom: 58px;
  z-index: 31;
  display: inline-flex;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 17, 17, 0.62);
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.theme-mode-toggle:hover,
.theme-mode-toggle:focus-visible {
  border-color: rgba(17, 17, 17, 0.36);
  background: #ffffff;
  color: #111111;
  outline: none;
}

.home {
  display: block;
  width: min(1080px, calc(100vw - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 128px 0 40px;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(280px, 360px);
  gap: 72px;
  align-items: start;
  justify-content: space-between;
}

.home-main {
  display: flex;
  width: min(100%, 560px);
  min-width: 0;
  min-height: calc(100vh - 168px);
  flex-direction: column;
  justify-self: center;
}

.home-intro {
  max-width: 520px;
}

.home-title {
  margin: 0;
  color: #111111;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.home-description {
  max-width: 460px;
  margin: 18px 0 0;
  color: rgba(17, 17, 17, 0.66);
  font-size: 15px;
  line-height: 1.9;
}

.home-recent {
  margin-top: 76px;
}

.home-section-title {
  margin: 0;
  color: rgba(17, 17, 17, 0.58);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.home-activity {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(17, 17, 17, 0.1);
}

.home-activity-header {
  display: block;
}

.home-activity-title {
  min-width: 0;
}

.home-activity-body {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.8;
}

.home-activity-body .md-energy-progress {
  width: 100%;
  margin: 0.75em 0 1.25em;
  gap: 8px;
  font-size: 12px;
}

.home-activity-body .md-energy-progress-value {
  min-width: 40px;
}

.home-post-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.home-post-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 0;
  align-items: baseline;
}

.home-post-date {
  color: rgba(17, 17, 17, 0.42);
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}

.home-post-link {
  color: rgba(17, 17, 17, 0.86);
  font-size: 15px;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.home-post-link:hover,
.home-post-link:focus-visible {
  color: #111111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  outline: none;
}

.home-status {
  margin: auto 0 0;
  padding-top: 80px;
  color: rgba(17, 17, 17, 0.36);
  font-size: 12px;
  line-height: 1.6;
}

.home-status-link {
  width: max-content;
  max-width: 100%;
  text-decoration: none;
  transition: color 140ms ease;
}

.home-status-link:hover,
.home-status-link:focus-visible {
  color: rgba(17, 17, 17, 0.72);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  outline: none;
}

.article,
.plain-page,
.listing-page {
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 112px 0 56px;
}

.article-header,
.page-header,
.listing-header {
  margin-bottom: 48px;
}

.article-title,
.page-title,
.listing-title {
  margin: 0;
  color: #111111;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: rgba(17, 17, 17, 0.46);
  font-size: 13px;
  line-height: 1.7;
}

.article-meta a {
  color: rgba(17, 17, 17, 0.6);
  text-decoration: none;
}

.article-meta a:hover,
.article-meta a:focus-visible {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.article-body {
  color: rgba(17, 17, 17, 0.82);
  font-size: 16px;
  line-height: 1.9;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 2.2em 0 0.8em;
  color: #111111;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.article-body h1 {
  font-size: 24px;
}

.article-body h2 {
  font-size: 21px;
}

.article-body h3 {
  font-size: 18px;
}

.article-body h4 {
  font-size: 16px;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body table {
  margin: 1.1em 0;
}

.article-body a {
  color: #111111;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
}

.article-body blockquote {
  padding-left: 18px;
  border-left: 2px solid rgba(17, 17, 17, 0.16);
  color: rgba(17, 17, 17, 0.62);
}

.article-body code {
  padding: 0.12em 0.32em;
  border-radius: 3px;
  background: rgba(17, 17, 17, 0.06);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.article-body pre,
.article-body figure.highlight {
  overflow-x: auto;
  margin: 28px 0;
  padding: 16px;
  border-radius: 4px;
  background: #f7f7f7;
}

.article-body pre code,
.article-body figure.highlight code {
  padding: 0;
  background: transparent;
}

.article-body figure.highlight table,
.article-body figure.highlight tbody,
.article-body figure.highlight tr,
.article-body figure.highlight td {
  display: block;
  width: 100%;
}

.article-body figure.highlight .gutter {
  display: none;
}

.article-body figure.highlight .code {
  padding: 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-body th,
.article-body td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  text-align: left;
}

.article-body .md-energy-progress {
  --progress-value: 0%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 560px);
  margin: 1.35em 0;
  gap: 12px;
  align-items: center;
  color: rgba(17, 17, 17, 0.58);
  font-size: 13px;
  line-height: 1;
}

.article-body p > .md-energy-progress:only-child {
  margin: 0.2em 0;
}

.md-energy-progress-track {
  position: relative;
  height: 16px;
  border: 1px solid rgba(18, 126, 255, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46)),
    rgba(24, 118, 230, 0.1);
  box-shadow:
    inset 0 1px 4px rgba(17, 17, 17, 0.08),
    0 8px 24px rgba(18, 126, 255, 0.08);
}

.md-energy-progress-fill {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: var(--progress-value);
  min-width: 0;
  max-width: calc(100% - 4px);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 48%),
    linear-gradient(90deg, #1d79ff, #47bdff);
  box-shadow:
    0 0 14px rgba(18, 126, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.md-energy-progress-end {
  position: absolute;
  top: 50%;
  right: -22px;
  width: 46px;
  height: 28px;
  pointer-events: none;
  transform: translateY(-50%);
}

.md-energy-progress-bubble {
  --bubble-y: -9px;
  position: absolute;
  top: 50%;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(124, 224, 255, 0.92);
  box-shadow: 0 0 10px rgba(18, 126, 255, 0.52);
  opacity: 0;
  animation: md-energy-collect 1.55s ease-in-out infinite;
}

.md-energy-progress-bubble:nth-child(2) {
  --bubble-y: 1px;
  width: 4px;
  height: 4px;
  animation-delay: -0.45s;
}

.md-energy-progress-bubble:nth-child(3) {
  --bubble-y: 10px;
  width: 6px;
  height: 6px;
  animation-delay: -0.9s;
}

.md-energy-progress-value {
  min-width: 46px;
  color: rgba(17, 17, 17, 0.56);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

@keyframes md-energy-collect {
  0% {
    opacity: 0;
    transform: translate(18px, var(--bubble-y)) scale(0.72);
  }

  24% {
    opacity: 0.92;
  }

  72% {
    opacity: 0.78;
  }

  100% {
    opacity: 0;
    transform: translate(-28px, -50%) scale(0.18);
  }
}

.listing-list,
.term-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.listing-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 0;
  align-items: baseline;
}

.listing-date,
.term-count {
  color: rgba(17, 17, 17, 0.42);
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}

.listing-link,
.term-link {
  color: rgba(17, 17, 17, 0.86);
  font-size: 15px;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.listing-link:hover,
.listing-link:focus-visible,
.term-link:hover,
.term-link:focus-visible {
  color: #111111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  outline: none;
}

.term-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  align-items: baseline;
}

.tool-page {
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 112px 0 56px;
}

.status-page {
  display: flex;
  width: min(560px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 132px 0 48px;
  flex-direction: column;
}

.status-header {
  margin-bottom: 64px;
}

.status-title {
  margin: 0;
  color: #111111;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.status-description {
  max-width: 420px;
  margin: 18px 0 0;
  color: rgba(17, 17, 17, 0.62);
  font-size: 15px;
  line-height: 1.9;
}

.status-list {
  padding: 0;
  margin: auto 0 0;
  list-style: none;
}

.status-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 0;
  align-items: baseline;
}

.status-label {
  color: rgba(17, 17, 17, 0.38);
  font-size: 13px;
  line-height: 1.7;
}

.status-text {
  color: rgba(17, 17, 17, 0.82);
  font-size: 15px;
  line-height: 1.7;
}

.tool-header {
  margin-bottom: 44px;
}

.tool-title {
  margin: 0;
  color: #111111;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.search-box {
  margin-bottom: 34px;
}

.search-input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 18px;
  line-height: 1.5;
  outline: none;
}

.search-input::placeholder {
  color: rgba(17, 17, 17, 0.34);
}

.search-input:focus {
  border-bottom-color: rgba(17, 17, 17, 0.58);
}

.search-results {
  padding: 0;
  margin: 0;
  list-style: none;
}

.search-result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.search-result-title {
  color: rgba(17, 17, 17, 0.88);
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.search-result-date {
  color: rgba(17, 17, 17, 0.42);
  font-size: 13px;
  line-height: 2;
  text-align: right;
  white-space: nowrap;
}

.search-result-excerpt {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(17, 17, 17, 0.54);
  font-size: 14px;
  line-height: 1.8;
}

.search-result-title:hover,
.search-result-title:focus-visible {
  color: #111111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  outline: none;
}

.search-empty {
  margin: 0;
  color: rgba(17, 17, 17, 0.42);
  font-size: 14px;
}

.friend-group + .friend-group {
  margin-top: 48px;
}

.friend-group-title {
  margin: 0 0 14px;
  color: rgba(17, 17, 17, 0.5);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.friend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.friend-card-item {
  min-width: 0;
}

.friend-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 96px;
  gap: 12px;
  padding: 14px 0;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  align-items: start;
  background: rgba(255, 255, 255, 0.64);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.friend-avatar {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-left: 14px;
  border-radius: 6px;
  background: #f3f3f3;
  color: rgba(17, 17, 17, 0.46);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 15px;
  line-height: 1;
}

.friend-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-card-body {
  display: block;
  min-width: 0;
  padding-right: 14px;
}

.friend-card-head {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: baseline;
}

.friend-name {
  color: rgba(17, 17, 17, 0.88);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.friend-desc {
  display: block;
  margin-top: 4px;
  color: rgba(17, 17, 17, 0.62);
  font-size: 13px;
  line-height: 1.7;
}

.friend-url {
  min-width: 0;
  color: rgba(17, 17, 17, 0.34);
  font-size: 12px;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-card:hover,
.friend-card:focus-visible {
  border-color: rgba(17, 17, 17, 0.24);
  background: #ffffff;
  outline: none;
}

.about-lines {
  max-width: 560px;
  color: rgba(17, 17, 17, 0.76);
  font-size: 16px;
  line-height: 1.9;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.about-avatar {
  display: block;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  object-fit: cover;
}

.about-lines p {
  margin: 0 0 10px;
}

.about-links {
  padding: 0;
  margin: 48px 0 0;
  list-style: none;
}

.about-links li {
  display: flex;
  gap: 16px;
  padding: 7px 0;
  color: rgba(17, 17, 17, 0.42);
  font-size: 14px;
  line-height: 1.7;
}

.about-links a {
  color: rgba(17, 17, 17, 0.82);
  text-decoration: none;
}

.about-links a:hover,
.about-links a:focus-visible {
  color: #111111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  outline: none;
}

.code-copy-container {
  position: relative;
}

.code-copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  min-width: 44px;
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(17, 17, 17, 0.62);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease, color 120ms ease, background-color 120ms ease;
}

.code-copy-container:hover .code-copy-button,
.code-copy-button:focus-visible {
  opacity: 1;
}

.code-copy-button:hover,
.code-copy-button:focus-visible {
  background: #ffffff;
  color: #111111;
  outline: none;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  max-width: 100vw;
  padding: 14px 16px 12px;
  background: transparent;
  transform: translateY(calc(-100% + 10px));
  transition: transform 180ms ease;
}

.site-nav:hover,
.site-nav:focus-within {
  transform: translateY(0);
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  max-width: min(920px, calc(100vw - 24px));
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(17, 17, 17, 0.62);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  background: rgba(17, 17, 17, 0.06);
  color: #111111;
  outline: none;
}

.site-nav-button {
  appearance: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  background: #101010;
}

html[data-theme="dark"] body {
  background: #101010;
  color: #eeeeee;
}

html[data-theme="dark"] .page-background::after {
  background: rgba(16, 16, 16, 0.76);
}

html[data-theme="dark"] .home-title,
html[data-theme="dark"] .article-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .listing-title,
html[data-theme="dark"] .tool-title,
html[data-theme="dark"] .status-title,
html[data-theme="dark"] .article-body h1,
html[data-theme="dark"] .article-body h2,
html[data-theme="dark"] .article-body h3,
html[data-theme="dark"] .article-body h4 {
  color: #f2f2f2;
}

html[data-theme="dark"] .home-description,
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .status-description,
html[data-theme="dark"] .about-lines {
  color: rgba(242, 242, 242, 0.72);
}

html[data-theme="dark"] .home-status,
html[data-theme="dark"] .home-section-title,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .listing-date,
html[data-theme="dark"] .term-count,
html[data-theme="dark"] .search-empty,
html[data-theme="dark"] .status-label,
html[data-theme="dark"] .background-switcher {
  color: rgba(242, 242, 242, 0.42);
}

html[data-theme="dark"] .home-post-link,
html[data-theme="dark"] .listing-link,
html[data-theme="dark"] .term-link,
html[data-theme="dark"] .search-result-title,
html[data-theme="dark"] .friend-name,
html[data-theme="dark"] .about-links a,
html[data-theme="dark"] .status-text,
html[data-theme="dark"] .article-body a {
  color: rgba(242, 242, 242, 0.86);
}

html[data-theme="dark"] .home-post-link:hover,
html[data-theme="dark"] .home-post-link:focus-visible,
html[data-theme="dark"] .listing-link:hover,
html[data-theme="dark"] .listing-link:focus-visible,
html[data-theme="dark"] .term-link:hover,
html[data-theme="dark"] .term-link:focus-visible,
html[data-theme="dark"] .search-result-title:hover,
html[data-theme="dark"] .search-result-title:focus-visible,
html[data-theme="dark"] .friend-card:hover .friend-name,
html[data-theme="dark"] .friend-card:focus-visible .friend-name,
html[data-theme="dark"] .about-links a:hover,
html[data-theme="dark"] .about-links a:focus-visible,
html[data-theme="dark"] .article-meta a:hover,
html[data-theme="dark"] .article-meta a:focus-visible,
html[data-theme="dark"] .article-body a:hover,
html[data-theme="dark"] .article-body a:focus-visible {
  color: #ffffff;
}

html[data-theme="dark"] .home-post-date,
html[data-theme="dark"] .search-result-date,
html[data-theme="dark"] .friend-url,
html[data-theme="dark"] .about-links li {
  color: rgba(242, 242, 242, 0.38);
}

html[data-theme="dark"] .home-activity {
  border-color: rgba(242, 242, 242, 0.12);
}

html[data-theme="dark"] .search-result-excerpt,
html[data-theme="dark"] .friend-desc,
html[data-theme="dark"] .article-body blockquote {
  color: rgba(242, 242, 242, 0.58);
}

html[data-theme="dark"] .search-input {
  border-bottom-color: rgba(242, 242, 242, 0.18);
  color: #f2f2f2;
}

html[data-theme="dark"] .search-input::placeholder {
  color: rgba(242, 242, 242, 0.34);
}

html[data-theme="dark"] .search-input:focus {
  border-bottom-color: rgba(242, 242, 242, 0.58);
}

html[data-theme="dark"] .search-result-item,
html[data-theme="dark"] .friend-card,
html[data-theme="dark"] .article-body th,
html[data-theme="dark"] .article-body td {
  border-color: rgba(242, 242, 242, 0.12);
}

html[data-theme="dark"] .article-body .md-energy-progress {
  color: rgba(242, 242, 242, 0.58);
}

html[data-theme="dark"] .md-energy-progress-track {
  border-color: rgba(80, 169, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(24, 118, 230, 0.16);
  box-shadow:
    inset 0 1px 5px rgba(0, 0, 0, 0.26),
    0 8px 24px rgba(18, 126, 255, 0.12);
}

html[data-theme="dark"] .md-energy-progress-value {
  color: rgba(242, 242, 242, 0.58);
}

html[data-theme="dark"] .friend-card {
  background: rgba(16, 16, 16, 0.54);
}

html[data-theme="dark"] .friend-card:hover,
html[data-theme="dark"] .friend-card:focus-visible {
  border-color: rgba(242, 242, 242, 0.28);
  background: rgba(20, 20, 20, 0.86);
}

html[data-theme="dark"] .friend-avatar,
html[data-theme="dark"] .article-body code {
  background: rgba(242, 242, 242, 0.08);
  color: rgba(242, 242, 242, 0.62);
}

html[data-theme="dark"] .about-avatar {
  border-color: rgba(242, 242, 242, 0.16);
}

html[data-theme="dark"] .article-body pre,
html[data-theme="dark"] .article-body figure.highlight {
  background: #171717;
}

html[data-theme="dark"] .article-body blockquote {
  border-left-color: rgba(242, 242, 242, 0.18);
}

html[data-theme="dark"] .site-nav-link {
  color: rgba(242, 242, 242, 0.68);
}

html[data-theme="dark"] .site-nav-link:hover,
html[data-theme="dark"] .site-nav-link:focus-visible {
  background: rgba(242, 242, 242, 0.08);
  color: #ffffff;
}

html[data-theme="dark"] .background-switcher-button,
html[data-theme="dark"] .theme-mode-toggle,
html[data-theme="dark"] .code-copy-button {
  border-color: rgba(242, 242, 242, 0.18);
  background: rgba(16, 16, 16, 0.74);
  color: rgba(242, 242, 242, 0.7);
}

html[data-theme="dark"] .background-switcher-button:hover,
html[data-theme="dark"] .background-switcher-button:focus-visible,
html[data-theme="dark"] .theme-mode-toggle:hover,
html[data-theme="dark"] .theme-mode-toggle:focus-visible,
html[data-theme="dark"] .code-copy-button:hover,
html[data-theme="dark"] .code-copy-button:focus-visible {
  border-color: rgba(242, 242, 242, 0.36);
  background: #1d1d1d;
  color: #ffffff;
}

@media (max-width: 900px) {
  .home {
    width: min(680px, calc(100vw - 48px));
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .home-main {
    min-height: auto;
  }

  .home-activity {
    position: static;
    padding: 30px 0 0;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .background-switcher {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .background-switcher-text {
    max-width: calc(100vw - 72px);
  }

  .theme-mode-toggle {
    right: 12px;
    bottom: 52px;
  }

  .site-nav {
    right: 0;
    padding: 10px 12px;
    transform: translateY(calc(-100% + 12px));
  }

  .site-nav-list {
    gap: 0;
    max-width: calc(100vw - 24px);
  }

  .site-nav-link {
    min-height: 30px;
    padding: 0 8px;
    font-size: 13px;
  }

  .home {
    width: calc(100vw - 40px);
    padding: 96px 0 28px;
  }

  .home-layout {
    gap: 46px;
  }

  .home-title {
    font-size: 26px;
  }

  .home-description {
    font-size: 14px;
  }

  .home-recent {
    margin-top: 56px;
  }

  .home-activity {
    padding-top: 26px;
  }

  .home-post-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0;
  }

  .status-page {
    width: calc(100vw - 40px);
    padding: 96px 0 32px;
  }

  .status-title {
    font-size: 26px;
  }

  .status-description {
    font-size: 14px;
  }

  .status-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0;
  }

  .article,
  .plain-page,
  .listing-page {
    width: calc(100vw - 40px);
    padding: 88px 0 36px;
  }

  .article-header,
  .page-header,
  .listing-header {
    margin-bottom: 36px;
  }

  .article-title,
  .page-title,
  .listing-title {
    font-size: 24px;
  }

  .article-body {
    font-size: 15px;
  }

  .listing-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0;
  }

  .tool-page {
    width: calc(100vw - 40px);
    padding: 92px 0 36px;
  }

  .tool-header {
    margin-bottom: 36px;
  }

  .tool-title {
    font-size: 24px;
  }

  .search-result-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .friend-list {
    grid-template-columns: 1fr;
  }

  .friend-card {
    min-height: 88px;
  }

  .search-result-date {
    text-align: left;
  }

  .about-lines {
    font-size: 15px;
  }

  .about-header {
    gap: 14px;
  }

  .about-avatar {
    width: 64px;
    height: 64px;
  }
}

@media (hover: none) {
  .site-nav {
    transform: none;
  }

  .code-copy-button {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-energy-progress-bubble {
    animation: none;
  }

  .md-energy-progress-bubble {
    opacity: 0.35;
    transform: translate(10px, var(--bubble-y)) scale(0.78);
  }
}
