:root {
  --cyber-bg: #060b0e;
  --cyber-panel: rgba(8, 18, 22, 0.84);
  --cyber-panel-solid: #0a171b;
  --cyber-line: rgba(112, 244, 219, 0.18);
  --cyber-line-strong: rgba(112, 244, 219, 0.56);
  --cyber-text: #e6fff9;
  --cyber-muted: #9cbfba;
  --cyber-hot: #ff4fd8;
  --cyber-gold: #ffd166;
  --cyber-blue: #62b6ff;
  --cyber-leaf: #9be28f;
  --cyber-warm: #f4c983;
  --cyber-reader: rgba(5, 12, 15, 0.42);
  --md-primary-fg-color: #051017;
  --md-accent-fg-color: #39f5d4;
}

html {
  background: var(--cyber-bg);
}

body {
  background:
    linear-gradient(rgba(112, 244, 219, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 244, 219, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(112, 244, 219, 0.08), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(244, 201, 131, 0.055), transparent 26rem),
    var(--cyber-bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.md-header,
.md-tabs {
  background: rgba(4, 12, 17, 0.88);
  border-bottom: 1px solid var(--cyber-line);
  backdrop-filter: blur(16px);
}

.md-header__title,
.md-tabs__link,
.md-nav__link {
  letter-spacing: 0;
}

.md-tabs__link,
.md-nav__link {
  position: relative;
  transition: color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.md-tabs__link:hover,
.md-nav__link:hover {
  color: #dffff8;
}

.md-tabs__link--active,
.md-nav__link--active {
  color: #55ffe2;
}

.md-tabs__link::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  bottom: 0.15rem;
  left: 0.55rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85, 255, 226, 0.85), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.md-tabs__link:hover::after,
.md-tabs__link--active::after {
  transform: scaleX(1);
}

.md-main__inner {
  margin-top: 1.2rem;
}

.md-footer-meta__inner {
  justify-content: center;
}

.md-copyright {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.md-grid {
  max-width: 76rem;
}

.md-content {
  color: var(--cyber-text);
}

.md-content__inner {
  background: var(--cyber-reader);
  border: 1px solid rgba(112, 244, 219, 0.08);
  border-radius: 0.45rem;
  padding: clamp(1rem, 2.4vw, 1.7rem);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: #edfffb;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.md-typeset h1 {
  margin-bottom: 1.1rem;
  font-size: 2.35rem;
}

.md-typeset h2 {
  margin-top: 2.4rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(112, 244, 219, 0.12);
}

.md-typeset p,
.md-typeset li {
  line-height: 1.82;
}

.md-typeset > p,
.md-typeset > ul,
.md-typeset > ol,
.md-typeset > blockquote {
  max-width: 48rem;
}

.md-typeset a {
  color: #55ffe2;
}

.page-updated-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  border: 1px solid rgba(112, 244, 219, 0.16);
  border-radius: 999px;
  background: rgba(112, 244, 219, 0.055);
  color: #cce5df;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
  margin: -0.2rem 0 1rem;
  padding: 0.24rem 0.62rem;
}

.page-updated-strip span {
  color: #8fcfc4;
}

.page-updated-strip time {
  color: #f4c983;
}

.md-typeset code {
  border: 1px solid rgba(79, 255, 219, 0.16);
}

.md-typeset .arithmatex {
  overflow-x: auto;
  margin: 1.1rem 0;
  padding: 0.25rem 0;
}

html:not(.math-ready) .md-typeset .arithmatex {
  min-height: 2.4rem;
}

.md-typeset .arithmatex mjx-container[display="true"] {
  margin: 1.25rem 0;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--cyber-line);
}

.md-typeset table:not([class]) th {
  background: rgba(57, 245, 212, 0.1);
}

.md-typeset .admonition,
.md-typeset details {
  background: rgba(8, 25, 35, 0.82);
  border: 1px solid var(--cyber-line);
  box-shadow: 0 0 28px rgba(57, 245, 212, 0.08);
}

.md-typeset blockquote {
  border-left: 2px solid rgba(155, 226, 143, 0.5);
  color: #cfe5df;
  background: rgba(155, 226, 143, 0.04);
  padding: 0.45rem 0 0.45rem 0.9rem;
}

.md-typeset hr {
  border-bottom-color: rgba(112, 244, 219, 0.14);
}

.cyber-announce {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ccfff6;
  font-size: 0.72rem;
}

.cyber-hero {
  min-height: min(43rem, calc(100vh - 9rem));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.7fr);
  gap: clamp(1.4rem, 5vw, 3.2rem);
  align-items: center;
  padding: clamp(1.6rem, 6vw, 4.2rem) 0 clamp(1.2rem, 4vw, 2.2rem);
}

.cyber-kicker {
  color: #55ffe2;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cyber-title {
  margin: 0.55rem 0 0.8rem;
  max-width: 12ch;
  font-size: 4.8rem;
  line-height: 0.98;
  letter-spacing: 0;
  color: #edfffb;
  text-shadow: 0 0 18px rgba(57, 245, 212, 0.26);
}

.cyber-subtitle {
  max-width: 42rem;
  color: #badbd7;
  font-size: 1.12rem;
}

.cyber-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.cyber-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.home-pulse {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  margin: -0.25rem 0 1.2rem;
}

.home-pulse__item {
  display: grid;
  gap: 0.22rem;
  border: 1px solid rgba(112, 244, 219, 0.14);
  border-radius: 0.45rem;
  background: rgba(5, 14, 17, 0.58);
  padding: 0.85rem;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.home-pulse__item:hover {
  border-color: rgba(112, 244, 219, 0.32);
  background: rgba(7, 19, 22, 0.72);
  transform: translateY(-1px);
}

.home-pulse__item span {
  color: #55ffe2;
  font-size: 0.72rem;
  font-weight: 800;
}

.home-pulse__item strong {
  color: #effffb;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.module-update-preview,
.module-update-grid {
  display: grid;
  gap: 0.75rem;
}

.module-update-preview {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin: 1rem 0 1.4rem;
}

.module-update-preview a,
.module-update-card {
  display: grid;
  gap: 0.28rem;
  border: 1px solid rgba(112, 244, 219, 0.14);
  border-radius: 0.45rem;
  background: rgba(5, 14, 17, 0.58);
  color: inherit;
  padding: 0.85rem;
  text-decoration: none;
}

.module-update-preview a:hover {
  border-color: rgba(112, 244, 219, 0.38);
}

.module-update-preview span,
.module-update-card span {
  color: #55ffe2;
  font-size: 0.72rem;
  font-weight: 800;
}

.module-update-preview strong,
.module-update-card strong {
  color: #effffb;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.module-update-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin: 1rem 0 1.6rem;
}

.module-update-card p {
  margin: 0;
  color: #bfdcd6;
  line-height: 1.65;
}

.garden-pagehead {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(112, 244, 219, 0.14);
  border-radius: 0.5rem;
  background:
    linear-gradient(120deg, rgba(112, 244, 219, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(9, 23, 28, 0.78), rgba(4, 11, 14, 0.64));
  padding: clamp(1rem, 3vw, 1.45rem);
}

.garden-pagehead__eyebrow {
  color: #55ffe2;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.garden-pagehead__title {
  margin: 0;
  color: #f1fffb;
  font-size: 2.1rem;
  line-height: 1.14;
}

.garden-pagehead__lead {
  max-width: 48rem;
  margin: 0;
  color: #bddbd6;
  font-size: 1rem;
  line-height: 1.78;
  text-wrap: pretty;
}

.garden-pagehead__meta,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.4rem;
}

.surface-tile {
  border: 1px solid rgba(112, 244, 219, 0.14);
  border-radius: 0.45rem;
  background: rgba(5, 14, 17, 0.58);
  padding: 0.85rem;
}

.surface-tile strong {
  display: block;
  color: #eafffb;
  margin-bottom: 0.25rem;
}

.surface-tile span {
  color: var(--cyber-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.timeline-list {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 0.22rem;
  border-left: 2px solid rgba(112, 244, 219, 0.4);
  background: rgba(6, 18, 22, 0.5);
  padding: 0.78rem 0.9rem 0.78rem 1rem;
}

.timeline-item span {
  overflow-wrap: anywhere;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.31rem;
  top: 1rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #70f4db;
  box-shadow: 0 0 1rem rgba(112, 244, 219, 0.45);
}

.timeline-item strong {
  color: #f1fffb;
}

.timeline-item span {
  color: #b9d6d1;
  line-height: 1.65;
}

.note-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.9rem;
  margin: 1.1rem 0 1.8rem;
}

.note-library--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.note-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.55rem;
}

.note-entry-grid a {
  display: grid;
  gap: 0.3rem;
  border: 1px solid rgba(112, 244, 219, 0.14);
  border-radius: 0.45rem;
  background: rgba(6, 18, 22, 0.52);
  color: inherit;
  padding: 0.85rem;
  text-decoration: none;
}

.note-entry-grid a:hover {
  border-color: rgba(112, 244, 219, 0.38);
}

.note-entry-grid strong {
  color: #effffb;
}

.note-entry-grid span {
  color: #bfdcd6;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.6rem;
}

.topic-card {
  display: grid;
  gap: 0.35rem;
  min-height: 8.5rem;
  border: 1px solid rgba(112, 244, 219, 0.14);
  border-radius: 0.45rem;
  background: rgba(6, 18, 22, 0.52);
  color: inherit;
  padding: 0.85rem;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.topic-card:hover {
  border-color: rgba(112, 244, 219, 0.38);
  background: rgba(8, 22, 27, 0.7);
  transform: translateY(-1px);
}

.topic-card span {
  color: #55ffe2;
  font-size: 0.76rem;
  font-weight: 800;
}

.topic-card strong {
  color: #f1fffb;
  font-size: 1.45rem;
}

.topic-card p {
  margin: 0;
  color: #bfdcd6;
  line-height: 1.6;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin: 1rem 0 1.7rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 1.8rem;
  border: 1px solid rgba(112, 244, 219, 0.18);
  border-radius: 999px;
  background: rgba(112, 244, 219, 0.055);
  color: #dffff8;
  padding: 0.15rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.tag-chip:hover,
.tag-chip.active {
  border-color: rgba(244, 201, 131, 0.45);
  background: rgba(244, 201, 131, 0.095);
  color: #fff3d4;
  transform: translateY(-1px);
}

.tag-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  min-height: 1.2rem;
  border-radius: 999px;
  background: rgba(244, 201, 131, 0.13);
  color: #ffe7bc;
  font-size: 0.66rem;
}

.note-tile {
  position: relative;
  display: grid;
  gap: 0.72rem;
  min-height: 13.5rem;
  border: 1px solid rgba(112, 244, 219, 0.15);
  border-radius: 0.5rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0 0.82rem, transparent 0.82rem),
    linear-gradient(150deg, rgba(112, 244, 219, 0.1), rgba(5, 13, 16, 0.8));
  padding: 1rem 1rem 1rem 1.45rem;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.note-tile:hover {
  border-color: rgba(112, 244, 219, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(57, 245, 212, 0.08);
}

.note-tile::after {
  content: "";
  position: absolute;
  inset: auto 0.95rem 0.95rem auto;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid rgba(112, 244, 219, 0.2);
  border-radius: 50%;
  opacity: 0.8;
}

.note-tile h3 {
  margin: 0;
}

.note-tile p {
  margin: 0;
  color: #bfdcd6;
  overflow-wrap: anywhere;
}

.note-tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  align-self: end;
}

.note-tile > a {
  align-self: end;
  width: max-content;
  font-weight: 800;
}

.note-tile--catalog {
  min-height: 14.8rem;
}

.note-catalog-meta {
  color: var(--cyber-muted);
  font-size: 0.76rem;
}

.note-reader {
  position: relative;
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(112, 244, 219, 0.16);
  border-radius: 0.45rem;
  background: rgba(5, 14, 17, 0.58);
  margin: 1rem 0 1.4rem;
  padding: 0.85rem;
  overflow: hidden;
}

.note-reader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(112, 244, 219, 0.045), transparent);
  transform: translateX(-105%);
  animation: note-reader-scan 4.6s ease-in-out infinite;
  pointer-events: none;
}

.note-reader__meter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--cyber-muted);
  font-size: 0.78rem;
}

.note-reader__meter strong {
  color: #effffb;
}

.note-reader__track {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(112, 244, 219, 0.08);
  overflow: hidden;
}

.note-reader__track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #55ffe2, #62b6ff);
  transition: width 160ms ease;
}

.note-reader__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.note-reader__actions a {
  border: 1px solid rgba(112, 244, 219, 0.2);
  border-radius: 999px;
  background: rgba(112, 244, 219, 0.055);
  color: #dffff8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  text-decoration: none;
}

.note-reader__actions a.disabled {
  opacity: 0.44;
  pointer-events: none;
}

.note-page-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 35;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.note-page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #55ffe2, #f4c983);
  box-shadow: 0 0 0.85rem rgba(85, 255, 226, 0.38);
  transition: width 80ms linear;
}

.note-current-heading {
  text-shadow: 0 0 18px rgba(85, 255, 226, 0.18);
}

.note-current-heading::before {
  content: "";
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #70f4db;
  box-shadow: 0 0 0.8rem rgba(112, 244, 219, 0.45);
  margin-right: 0.45rem;
  vertical-align: 0.08rem;
}

.md-nav--secondary .md-nav__link.note-toc-active {
  color: #55ffe2;
}

@media (min-width: 960px) {
  .md-sidebar--primary {
    position: sticky !important;
    top: 4.8rem;
    left: 0 !important;
    z-index: 12;
    align-self: flex-start;
    height: calc(100vh - 5rem);
    opacity: 0.18;
    transform: translateX(calc(-100% + 1.25rem));
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .md-sidebar--primary::before {
    content: "";
    position: absolute;
    top: 0.65rem;
    right: 0.2rem;
    width: 0.36rem;
    height: min(38vh, 16rem);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(112, 244, 219, 0.16), rgba(244, 201, 131, 0.14));
    box-shadow: 0 0 18px rgba(112, 244, 219, 0.12);
  }

  .md-sidebar--primary:hover,
  .md-sidebar--primary:focus-within,
  body.sidebar-primary-peek .md-sidebar--primary {
    opacity: 1;
    transform: translateX(0) !important;
  }

  .md-sidebar--primary .md-nav__item .md-nav {
    border-left: 1px solid rgba(112, 244, 219, 0.08);
    margin-left: 0.3rem;
    padding-left: 0.35rem;
  }

  .md-sidebar--primary .md-nav__item--nested > .md-nav__link {
    border-radius: 0.35rem;
    color: #d8f7f1;
    font-weight: 700;
    pointer-events: auto;
    cursor: pointer;
  }

  .md-sidebar--secondary {
    position: sticky !important;
    top: 4.8rem;
    z-index: 12;
    align-self: flex-start;
    min-height: calc(100vh - 5rem);
    opacity: 0;
    transition: opacity 180ms ease;
  }

  .md-sidebar--secondary .md-sidebar__scrollwrap {
    max-height: calc(100vh - 5rem);
  }

  .md-sidebar--secondary::before {
    display: none;
  }

  .md-sidebar--secondary:hover,
  .md-sidebar--secondary:focus-within,
  body.sidebar-secondary-peek .md-sidebar--secondary {
    opacity: 1;
  }
}

.interaction-shell {
  margin: 1rem 0;
}

.project-brief {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.6rem;
}

.project-brief div {
  border: 1px solid rgba(112, 244, 219, 0.14);
  border-radius: 0.45rem;
  background: rgba(6, 18, 22, 0.52);
  padding: 0.8rem;
}

.project-brief strong {
  display: block;
  color: #55ffe2;
  margin-bottom: 0.2rem;
}

.project-brief span {
  color: #c9e2dd;
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cyber-button,
.biying-chat button,
.guestbook button {
  min-height: 2.35rem;
  border: 1px solid var(--cyber-line-strong);
  border-radius: 0.36rem;
  background: linear-gradient(135deg, rgba(57, 245, 212, 0.14), rgba(98, 182, 255, 0.07));
  color: #eafffb;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.86rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.cyber-button:hover,
.biying-chat button:hover,
.guestbook button:hover {
  border-color: #8ffff0;
  box-shadow: 0 0 24px rgba(57, 245, 212, 0.22);
  transform: translateY(-1px);
}

.cyber-button:active,
.biying-chat button:active,
.guestbook button:active {
  transform: translateY(1px);
}

.cyber-actions .cyber-button:first-child {
  animation: primary-action-breathe 4.8s ease-in-out infinite;
}

.cyber-button.secondary {
  border-color: rgba(244, 201, 131, 0.45);
  background: linear-gradient(135deg, rgba(244, 201, 131, 0.11), rgba(57, 245, 212, 0.06));
}

.biying-presence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(155, 226, 143, 0.18);
  border-radius: 0.5rem;
  background:
    linear-gradient(115deg, rgba(155, 226, 143, 0.09), transparent 36%),
    rgba(5, 14, 17, 0.64);
  margin: 0.4rem 0 1.7rem;
  padding: 1rem;
}

.biying-presence h2 {
  margin: 0.2rem 0 0.35rem;
  border: 0;
  padding: 0;
  font-size: 1.35rem;
}

.biying-presence p {
  margin: 0;
  color: #c6e0db;
  text-wrap: pretty;
}

.biying-presence__hello {
  color: var(--cyber-warm);
  font-size: 0.82rem;
  font-weight: 800;
}

.biying-presence__link,
.work-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  width: max-content;
  border: 1px solid rgba(112, 244, 219, 0.35);
  border-radius: 0.34rem;
  background: rgba(112, 244, 219, 0.075);
  color: #eafffb;
  font-weight: 800;
  padding: 0.44rem 0.7rem;
  text-decoration: none;
  text-align: center;
  white-space: normal;
}

.project-list {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0;
}

.project-framework {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.project-framework div {
  border: 1px solid rgba(112, 244, 219, 0.14);
  border-radius: 0.45rem;
  background: rgba(5, 14, 17, 0.58);
  padding: 0.85rem;
}

.project-framework strong {
  display: block;
  color: #55ffe2;
  margin-bottom: 0.25rem;
}

.project-framework span {
  color: var(--cyber-muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.work-card {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(112, 244, 219, 0.16);
  border-radius: 0.5rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(112, 244, 219, 0.09), rgba(5, 13, 16, 0.76));
  padding: 1rem;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.work-card:hover {
  border-color: rgba(112, 244, 219, 0.36);
  box-shadow: 0 0 24px rgba(57, 245, 212, 0.09);
  transform: translateY(-1px);
}

.work-card__top {
  display: grid;
  gap: 0.28rem;
}

.work-card__top h3 {
  margin: 0;
}

.work-card__status {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(155, 226, 143, 0.28);
  border-radius: 999px;
  background: rgba(155, 226, 143, 0.07);
  color: #e2ffd9;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.58rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.work-card p {
  margin: 0;
  color: #c5dfda;
  overflow-wrap: anywhere;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.note-cover-stage {
  position: relative;
  min-height: 25rem;
  display: grid;
  place-items: center;
  perspective: 56rem;
}

.note-cover-stage::before {
  content: "";
  position: absolute;
  inset: 8% 2% 6%;
  border: 1px solid var(--cyber-line);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(57, 245, 212, 0.09), transparent 38%),
    rgba(5, 17, 23, 0.72);
  box-shadow: 0 0 32px rgba(57, 245, 212, 0.12), inset 0 0 28px rgba(57, 245, 212, 0.07);
}

.note-cover {
  --cover-accent: #70f4db;
  --cover-accent-soft: rgba(112, 244, 219, 0.18);
  --cover-ink: #eafffb;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(18.4rem, 82%);
  aspect-ratio: 0.68;
  border: 1px solid rgba(234, 255, 251, 0.12);
  border-radius: 0.34rem 0.52rem 0.52rem 0.34rem;
  color: var(--cover-ink);
  overflow: hidden;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0 12%, transparent 12%),
    radial-gradient(circle at 78% 18%, var(--cover-accent-soft), transparent 32%),
    linear-gradient(145deg, var(--cover-accent-soft), #061015 64%);
  box-shadow:
    1.1rem 1.4rem 2.6rem rgba(0, 0, 0, 0.36),
    0 0 2rem var(--cover-accent-soft),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform:
    rotateX(var(--cover-tilt-x, 0deg))
    rotateY(calc(-10deg + var(--cover-tilt-y, 0deg)))
    rotateZ(0.6deg);
  transform-origin: center left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.note-cover:hover {
  color: var(--cover-ink);
  transform:
    rotateX(var(--cover-tilt-x, 0deg))
    rotateY(calc(-7deg + var(--cover-tilt-y, 0deg)))
    rotateZ(0deg)
    translateY(-0.1rem);
  box-shadow:
    1.2rem 1.5rem 2.8rem rgba(0, 0, 0, 0.4),
    0 0 2.4rem var(--cover-accent-soft),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.note-cover:active {
  transform: rotateY(-6deg) translateY(0.08rem) scale(0.99);
}

.note-cover-stage--ready .note-cover {
  animation: cover-arrive 460ms ease both;
}

.note-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 16%, transparent 76%, rgba(255, 255, 255, 0.07));
  mix-blend-mode: screen;
  opacity: 0.34;
  pointer-events: none;
}

.note-cover::after {
  content: "";
  position: absolute;
  inset: 8% 9% 22% 20%;
  border: 1px solid var(--cover-accent);
  opacity: 0.78;
  pointer-events: none;
}

.note-cover[data-cover-pattern="matrix"]::after {
  background:
    linear-gradient(90deg, transparent 48%, var(--cover-accent-soft) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, var(--cover-accent-soft) 49% 51%, transparent 52%);
  background-size: 2.4rem 2.4rem;
}

.note-cover[data-cover-pattern="orbit"]::after {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 38%, var(--cover-accent-soft) 39% 41%, transparent 42%),
    radial-gradient(circle at 50% 50%, var(--cover-accent) 0 0.18rem, transparent 0.2rem);
}

.note-cover[data-cover-pattern="stairs"]::after {
  background:
    linear-gradient(135deg, transparent 0 46%, var(--cover-accent-soft) 47% 53%, transparent 54%),
    linear-gradient(45deg, transparent 0 46%, rgba(255, 255, 255, 0.06) 47% 53%, transparent 54%);
  background-size: 2rem 2rem;
}

.note-cover[data-cover-pattern="wave"]::after {
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 15%, transparent 0 34%, var(--cover-accent-soft) 35% 38%, transparent 39%),
    radial-gradient(ellipse at 50% 62%, transparent 0 34%, rgba(255, 255, 255, 0.08) 35% 38%, transparent 39%);
}

.note-cover[data-cover-pattern="field"]::after {
  background:
    repeating-linear-gradient(90deg, transparent 0 0.7rem, var(--cover-accent-soft) 0.72rem 0.78rem),
    repeating-linear-gradient(0deg, transparent 0 0.7rem, rgba(255, 255, 255, 0.045) 0.72rem 0.78rem);
}

.note-cover__spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 13%;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(255, 255, 255, 0.035)),
    var(--cover-accent-soft);
}

.note-cover__mark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.15rem;
  aspect-ratio: 1;
  border: 1px solid var(--cover-accent);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, var(--cover-accent-soft) 46% 54%, transparent 55%),
    linear-gradient(0deg, transparent 45%, var(--cover-accent-soft) 46% 54%, transparent 55%);
  box-shadow: 0 0 1rem var(--cover-accent-soft);
}

.note-cover__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 0.62rem;
  min-height: 67%;
  padding: 3.2rem 1.35rem 1.2rem 2.55rem;
}

.note-cover__eyebrow {
  color: var(--cover-accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.note-cover__title {
  color: #f1fffb;
  font-size: 1.75rem;
  line-height: 1.12;
  text-shadow: 0 0 1rem var(--cover-accent-soft);
}

.note-cover__subtitle {
  max-width: 11rem;
  color: #c6e5df;
  font-size: 0.82rem;
  line-height: 1.58;
}

.note-cover__footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  margin: 0 1rem 1rem 2.55rem;
  padding-top: 0.8rem;
  color: #d8fff7;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cyber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.cyber-card {
  border: 1px solid var(--cyber-line);
  border-radius: 0.45rem;
  background: linear-gradient(180deg, rgba(10, 24, 29, 0.82), rgba(5, 13, 16, 0.74));
  padding: 1rem;
  box-shadow: 0 0 18px rgba(57, 245, 212, 0.05);
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.cyber-card:hover {
  border-color: rgba(112, 244, 219, 0.42);
  background: linear-gradient(180deg, rgba(13, 31, 36, 0.9), rgba(6, 16, 19, 0.78));
  transform: translateY(-1px);
}

.cyber-card h3 {
  margin-top: 0;
}

.cyber-card p:last-child {
  margin-bottom: 0;
}

.cyber-card p {
  text-wrap: pretty;
}

.cyber-card a {
  font-weight: 700;
}

.cyber-card.featured {
  display: grid;
  gap: 0.6rem;
  border-color: rgba(155, 226, 143, 0.28);
}

.cyber-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.cyber-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border: 1px solid rgba(112, 244, 219, 0.2);
  border-radius: 999px;
  color: #dffcf6;
  background: rgba(112, 244, 219, 0.055);
  padding: 0.06rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.section-lede {
  max-width: 44rem;
  color: var(--cyber-muted);
}

.quiet-panel {
  border-left: 2px solid rgba(155, 226, 143, 0.48);
  color: #cce5df;
  background: rgba(155, 226, 143, 0.045);
  padding: 0.75rem 0.9rem;
  text-wrap: pretty;
}

.signal-list {
  display: grid;
  gap: 0.75rem;
}

.signal-item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border-left: 2px solid rgba(57, 245, 212, 0.56);
  padding-left: 0.85rem;
}

.signal-item strong {
  color: #55ffe2;
}

.lang-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(112, 244, 219, 0.045);
  padding: 0.08rem;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 1.6rem;
  color: #b7ddd8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.24rem 0.35rem;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
}

.lang-switcher a + a::before {
  content: "|";
  color: rgba(183, 221, 216, 0.52);
  margin-right: 0.55rem;
}

.lang-switcher a.active {
  border-radius: 999px;
  background: rgba(112, 244, 219, 0.1);
  color: #edfffb;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(112, 244, 219, 0.12);
}

.biying-chat,
.guestbook {
  border: 1px solid var(--cyber-line);
  border-radius: 0.5rem;
  background: rgba(6, 18, 25, 0.82);
  box-shadow: 0 0 28px rgba(57, 245, 212, 0.1);
  overflow: hidden;
}

.biying-chat {
  max-width: 100%;
}

.guestbook__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--cyber-line);
  background:
    linear-gradient(90deg, rgba(244, 201, 131, 0.08), transparent),
    rgba(4, 12, 15, 0.74);
  padding: 0.85rem 1rem;
}

.guestbook__summary strong {
  color: #f1fffb;
}

.guestbook__summary span {
  min-width: 2rem;
  border: 1px solid rgba(244, 201, 131, 0.32);
  border-radius: 999px;
  background: rgba(244, 201, 131, 0.08);
  color: #ffe7bc;
  font-weight: 800;
  text-align: center;
  padding: 0.12rem 0.5rem;
}

.biying-chat__header {
  display: grid;
  gap: 0.22rem;
  border-bottom: 1px solid var(--cyber-line);
  background:
    linear-gradient(90deg, rgba(155, 226, 143, 0.08), transparent),
    rgba(4, 12, 15, 0.74);
  padding: 0.85rem 1rem;
}

.biying-chat__header strong {
  color: #f1fffb;
}

.biying-chat__header span {
  color: var(--cyber-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.biying-chat__log,
.guestbook__list {
  display: grid;
  gap: 0.8rem;
  max-height: min(26rem, 62vh);
  overflow: auto;
  overflow-x: hidden;
  padding: 1rem;
}

.biying-chat__log {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.biying-message,
.guestbook-message {
  border: 1px solid rgba(79, 255, 219, 0.18);
  border-radius: 0.4rem;
  background: rgba(3, 10, 14, 0.56);
  padding: 0.75rem;
}

.biying-message {
  box-sizing: border-box;
  width: 100%;
  max-width: 34rem;
  min-width: 0;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  line-height: 1.72;
  overflow-wrap: break-word;
  word-break: normal;
}

.biying-message * {
  max-width: 100%;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  overflow-wrap: break-word;
  word-break: normal;
}

.biying-message p,
.biying-message ul,
.biying-message ol,
.biying-message blockquote,
.biying-message pre,
.biying-message h3,
.biying-message h4,
.biying-message h5,
.biying-message h6 {
  margin: 0;
}

.biying-message p + p,
.biying-message p + ul,
.biying-message p + ol,
.biying-message ul + p,
.biying-message ol + p,
.biying-message blockquote + p,
.biying-message pre + p,
.biying-message h3 + p,
.biying-message h4 + p,
.biying-message h5 + p,
.biying-message h6 + p {
  margin-top: 0.65rem;
}

.biying-message ul,
.biying-message ol {
  padding-left: 1.2rem;
}

.biying-message li + li {
  margin-top: 0.18rem;
}

.biying-message blockquote {
  border-left: 2px solid rgba(112, 244, 219, 0.35);
  color: var(--cyber-muted);
  padding-left: 0.72rem;
}

.biying-message pre {
  overflow: auto;
  border: 1px solid rgba(112, 244, 219, 0.14);
  border-radius: 0.35rem;
  background: rgba(1, 8, 11, 0.72);
  padding: 0.62rem 0.7rem;
}

.biying-message code {
  border-radius: 0.22rem;
  background: rgba(112, 244, 219, 0.08);
  padding: 0.08rem 0.25rem;
}

.biying-message pre code {
  background: transparent;
  padding: 0;
}

.biying-message mjx-container[display="true"] {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0;
}

.biying-message a {
  color: #9ff8e7;
}

.biying-chat--companion {
  box-shadow: 0 0 22px rgba(57, 245, 212, 0.08);
}

.biying-companion {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}

.biying-companion__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  min-height: 3rem;
  border: 1px solid rgba(112, 244, 219, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(112, 244, 219, 0.2), transparent 44%),
    rgba(5, 14, 17, 0.9);
  color: #effffb;
  cursor: pointer;
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(4, 12, 17, 0.82),
    0 0 18px rgba(57, 245, 212, 0.16);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.biying-companion__toggle::before {
  content: "";
  position: absolute;
  inset: -0.34rem;
  border: 1px solid rgba(112, 244, 219, 0.14);
  border-radius: inherit;
  opacity: 0.75;
  animation: companion-pulse 4.8s ease-in-out infinite;
  pointer-events: none;
}

.biying-companion__toggle:hover,
.biying-companion__toggle.is-open {
  border-color: rgba(143, 255, 240, 0.72);
  background:
    radial-gradient(circle at 32% 28%, rgba(112, 244, 219, 0.28), transparent 46%),
    rgba(8, 22, 27, 0.96);
  box-shadow:
    0 0 0 1px rgba(4, 12, 17, 0.82),
    0 0 24px rgba(57, 245, 212, 0.22);
  transform: translateY(-1px);
}

.biying-companion__icon {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.biying-companion__icon circle {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.biying-companion__panel {
  width: min(24rem, calc(100vw - 2rem));
}

.biying-companion.is-open .biying-companion__panel {
  animation: companion-panel-in 220ms ease both;
}

.biying-companion__panel[hidden] {
  display: none;
}

.biying-companion__close {
  display: none;
}

.guestbook-message__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.guestbook-message__head span {
  color: var(--cyber-muted);
  font-size: 0.78rem;
}

.biying-message.user {
  width: auto;
  max-width: 82%;
  align-self: flex-end;
  border-color: rgba(255, 79, 216, 0.32);
  justify-self: end;
}

.biying-message.biying {
  width: 100%;
  max-width: 34rem;
  min-width: 12rem;
  align-self: flex-start;
  justify-self: start;
}

.biying-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  border-top: 1px solid rgba(112, 244, 219, 0.12);
  margin-top: 0.65rem;
  padding-top: 0.55rem;
}

.biying-sources span {
  color: var(--cyber-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.biying-sources a {
  border: 1px solid rgba(112, 244, 219, 0.18);
  border-radius: 999px;
  background: rgba(112, 244, 219, 0.055);
  color: #dffff8;
  font-size: 0.7rem;
  padding: 0.16rem 0.48rem;
  text-decoration: none;
}

.biying-chat__form,
.guestbook__form {
  display: grid;
  gap: 0.7rem;
  border-top: 1px solid var(--cyber-line);
  padding: 1rem;
}

.biying-chat textarea,
.guestbook textarea,
.guestbook input {
  width: 100%;
  border: 1px solid rgba(79, 255, 219, 0.28);
  border-radius: 0.35rem;
  background: rgba(2, 7, 10, 0.9);
  color: #edfffb;
  font: inherit;
  padding: 0.68rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.biying-chat textarea:focus,
.guestbook textarea:focus,
.guestbook input:focus,
.auth-card input:focus,
.auth-card textarea:focus,
.admin-toolbar input:focus,
.admin-token-form input:focus {
  border-color: rgba(143, 255, 240, 0.68);
  background: rgba(2, 9, 12, 0.96);
  box-shadow: 0 0 0 2px rgba(57, 245, 212, 0.12);
  outline: none;
}

.guestbook input {
  min-height: 2.35rem;
}

.guestbook .hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.auth-panel {
  border: 1px solid var(--cyber-line);
  border-radius: 0.5rem;
  background: rgba(6, 18, 25, 0.82);
  box-shadow: 0 0 28px rgba(57, 245, 212, 0.1);
  padding: 1rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.auth-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(79, 255, 219, 0.18);
  border-radius: 0.45rem;
  background: rgba(3, 10, 14, 0.56);
  padding: 1rem;
}

.auth-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.auth-card.signed-in {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.auth-card.signed-in strong,
.auth-card.signed-in span {
  grid-column: 1;
}

.auth-card.signed-in button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.auth-card input {
  width: 100%;
  border: 1px solid rgba(79, 255, 219, 0.28);
  border-radius: 0.35rem;
  background: rgba(2, 7, 10, 0.9);
  color: #edfffb;
  font: inherit;
  min-height: 2.35rem;
  padding: 0.68rem;
}

.auth-card textarea {
  width: 100%;
  border: 1px solid rgba(79, 255, 219, 0.28);
  border-radius: 0.35rem;
  background: rgba(2, 7, 10, 0.9);
  color: #edfffb;
  font: inherit;
  padding: 0.68rem;
}

.auth-card .hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.auth-card button,
.message-actions button {
  min-height: 2.1rem;
  border: 1px solid rgba(79, 255, 219, 0.44);
  border-radius: 0.35rem;
  background: rgba(57, 245, 212, 0.08);
  color: #eafffb;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  border: 1px solid rgba(57, 245, 212, 0.42);
  border-radius: 999px;
  color: #d8fff7;
  background: rgba(57, 245, 212, 0.08);
  padding: 0.12rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.status-pill.warm {
  border-color: rgba(244, 201, 131, 0.42);
  background: rgba(244, 201, 131, 0.08);
  color: #ffe7bc;
}

.status-pill.leaf {
  border-color: rgba(155, 226, 143, 0.42);
  background: rgba(155, 226, 143, 0.08);
  color: #e2ffd9;
}

.meta-line {
  color: var(--cyber-muted);
  font-size: 0.82rem;
}

.admin-panel {
  border: 1px solid var(--cyber-line);
  border-radius: 0.5rem;
  background: rgba(6, 18, 25, 0.82);
  box-shadow: 0 0 28px rgba(57, 245, 212, 0.1);
  padding: 1rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border: 1px solid rgba(112, 244, 219, 0.12);
  border-radius: 0.48rem;
  background: rgba(3, 10, 14, 0.42);
  margin: 1rem 0 0.8rem;
  padding: 0.45rem;
}

.admin-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.15rem;
  border: 1px solid transparent;
  border-radius: 0.36rem;
  background: transparent;
  color: #cce5df;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.42rem 0.68rem;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.admin-tabs button:hover,
.admin-tabs button.active {
  border-color: rgba(112, 244, 219, 0.28);
  background: rgba(112, 244, 219, 0.08);
  color: #f1fffb;
}

.admin-tabs button:active {
  transform: translateY(1px);
}

.admin-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 1.28rem;
  min-height: 1.28rem;
  border-radius: 999px;
  background: rgba(244, 201, 131, 0.12);
  color: #ffe7bc;
  font-size: 0.66rem;
}

.guestbook__composer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem;
  align-items: center;
}

.guestbook__composer-meta p {
  margin: 0;
}

.guestbook__composer-meta span {
  color: var(--cyber-muted);
  font-size: 0.78rem;
}

.guestbook__privacy-hint {
  margin: 0;
  color: var(--cyber-warm);
}

.work-card--featured {
  gap: 0.95rem;
}

.work-card__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.65rem;
}

.work-card__facts div {
  border: 1px solid rgba(112, 244, 219, 0.12);
  border-radius: 0.42rem;
  background: rgba(3, 10, 14, 0.36);
  padding: 0.72rem;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.work-card__facts div:hover {
  border-color: rgba(112, 244, 219, 0.28);
  background: rgba(5, 18, 22, 0.58);
  transform: translateY(-1px);
}

.work-card__facts strong {
  display: block;
  color: #55ffe2;
  margin-bottom: 0.18rem;
}

.work-card__facts span {
  color: #c5dfda;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-token-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-token-form input {
  flex: 1 1 14rem;
  min-height: 2.35rem;
  border: 1px solid rgba(79, 255, 219, 0.28);
  border-radius: 0.35rem;
  background: rgba(2, 7, 10, 0.9);
  color: #edfffb;
  font: inherit;
  padding: 0.68rem;
}

.admin-token-form button,
.admin-card button,
.admin-toolbar button {
  min-height: 2.1rem;
  border: 1px solid rgba(79, 255, 219, 0.44);
  border-radius: 0.35rem;
  background: rgba(57, 245, 212, 0.08);
  color: #eafffb;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
}

.admin-recovery {
  display: grid;
  gap: 0.3rem;
  border: 1px solid rgba(244, 201, 131, 0.32);
  border-radius: 0.4rem;
  background: rgba(244, 201, 131, 0.08);
  margin-top: 1rem;
  padding: 0.8rem;
}

.admin-section {
  margin-top: 1rem;
}

.admin-section[hidden] {
  display: none;
}

.admin-section.active {
  animation: admin-panel-in 180ms ease both;
}

.admin-section h2 {
  margin-top: 1.25rem;
}

.admin-list {
  display: grid;
  gap: 0.75rem;
}

.admin-card {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(79, 255, 219, 0.18);
  border-radius: 0.45rem;
  background: rgba(3, 10, 14, 0.56);
  padding: 0.9rem;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.admin-card:hover {
  border-color: rgba(112, 244, 219, 0.32);
  background: rgba(5, 17, 21, 0.68);
}

.admin-card.unread {
  border-color: rgba(244, 201, 131, 0.32);
}

.admin-card.hidden {
  border-color: rgba(244, 201, 131, 0.28);
  opacity: 0.86;
}

.admin-card__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.admin-card span,
.admin-card p {
  margin: 0;
  color: #c9e2dd;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.admin-toolbar input {
  flex: 1 1 14rem;
  min-height: 2.1rem;
  border: 1px solid rgba(79, 255, 219, 0.28);
  border-radius: 0.35rem;
  background: rgba(2, 7, 10, 0.9);
  color: #edfffb;
  font: inherit;
  padding: 0.45rem 0.7rem;
}

.admin-toolbar button.active {
  border-color: rgba(244, 201, 131, 0.54);
  background: rgba(244, 201, 131, 0.12);
}

.message-actions button.danger,
.admin-card button.danger,
.admin-toolbar button.danger {
  border-color: rgba(255, 127, 127, 0.36);
  background: rgba(255, 127, 127, 0.075);
  color: #ffdada;
}

.message-actions button.danger:hover,
.admin-card button.danger:hover,
.admin-toolbar button.danger:hover {
  border-color: rgba(255, 154, 154, 0.62);
  box-shadow: 0 0 18px rgba(255, 127, 127, 0.14);
}

.note-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: 1px solid rgba(244, 201, 131, 0.22);
  border-radius: 0.45rem;
  background: rgba(244, 201, 131, 0.06);
  margin: 0.8rem 0 1rem;
  padding: 0.72rem 0.85rem;
}

.note-filter-summary span {
  color: #ffe7bc;
  font-weight: 800;
}

.note-filter-summary a {
  color: #dffff8;
  font-weight: 800;
}

.biying-message--enter,
.guestbook-message.is-new {
  opacity: 0;
  transform: translateY(0.55rem);
}

.biying-message--enter.is-visible,
.guestbook-message.is-new {
  animation: message-rise 240ms ease forwards;
}

.biying-message.is-typing {
  width: auto;
  min-width: 5.2rem;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.45rem;
}

.typing-dots i {
  display: block;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 999px;
  background: #70f4db;
  box-shadow: 0 0 0.8rem rgba(112, 244, 219, 0.35);
  animation: typing-pulse 1.05s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 120ms;
}

.typing-dots i:nth-child(3) {
  animation-delay: 240ms;
}

.guestbook-message {
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.guestbook-message:hover {
  border-color: rgba(112, 244, 219, 0.32);
  background: rgba(5, 17, 21, 0.68);
}

.guestbook-message.is-removing {
  opacity: 0.35;
  transform: translateX(0.35rem);
}

.toast-tray {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  border: 1px solid rgba(112, 244, 219, 0.22);
  border-radius: 0.45rem;
  background: rgba(5, 14, 17, 0.94);
  color: #eafffb;
  box-shadow: 0 0 24px rgba(57, 245, 212, 0.12);
  opacity: 0;
  padding: 0.75rem 0.85rem;
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  border-color: rgba(155, 226, 143, 0.42);
}

.toast--warning {
  border-color: rgba(244, 201, 131, 0.45);
}

.toast--error {
  border-color: rgba(255, 127, 127, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  transition:
    opacity 420ms ease var(--reveal-delay, 0ms),
    transform 420ms ease var(--reveal-delay, 0ms),
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cover-arrive {
  from {
    opacity: 0;
    transform: rotateY(-14deg) translateY(0.7rem);
  }
  to {
    opacity: 1;
  }
}

@keyframes message-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes note-reader-scan {
  0%, 48% {
    transform: translateX(-105%);
  }
  62%, 100% {
    transform: translateX(105%);
  }
}

@keyframes primary-action-breathe {
  0%, 100% {
    box-shadow: 0 0 0 rgba(57, 245, 212, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(57, 245, 212, 0.2);
  }
}

@keyframes typing-pulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-0.18rem);
  }
}

@keyframes companion-pulse {
  0%, 100% {
    opacity: 0.28;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.06);
  }
}

@keyframes companion-panel-in {
  from {
    opacity: 0;
    transform: translateY(0.55rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes admin-panel-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .biying-message--enter,
  .guestbook-message.is-new {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 56rem) {
  body {
    overflow-x: hidden;
  }

  .md-content__inner {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 0.9rem;
  }

  .cyber-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .md-typeset h1 {
    font-size: 2rem;
  }

  .cyber-title {
    font-size: 3.15rem;
  }

  .cyber-subtitle {
    font-size: 1rem;
  }

  .note-cover-stage {
    min-height: 20rem;
  }

  .note-cover {
    width: min(16rem, 88%);
    transform: none;
  }

  .note-cover:hover {
    transform: translateY(-0.1rem);
  }

  .note-cover:active {
    transform: translateY(0.06rem) scale(0.99);
  }

  .garden-pagehead__title {
    font-size: 1.75rem;
  }

  .biying-presence {
    grid-template-columns: 1fr;
  }

  .biying-chat__header {
    gap: 0.18rem;
    padding: 0.72rem 0.78rem;
  }

  .biying-chat__header strong {
    font-size: 0.94rem;
  }

  .biying-chat__header span {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .biying-chat__log {
    gap: 0.58rem;
    max-height: min(18rem, 46vh);
    padding: 0.75rem;
  }

  .biying-message {
    width: auto;
    max-width: 100%;
    min-width: 0;
    border-radius: 0.48rem;
    font-size: 0.92rem;
    line-height: 1.66;
    padding: 0.62rem 0.7rem;
    white-space: normal;
  }

  .biying-message.biying {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .biying-message.user {
    max-width: 92%;
  }

  .biying-chat__form {
    gap: 0.55rem;
    padding: 0.75rem;
  }

  .biying-chat textarea {
    min-height: 4.8rem;
    padding: 0.58rem;
  }

  .biying-sources {
    gap: 0.34rem;
    margin-top: 0.5rem;
    padding-top: 0.45rem;
  }

  .biying-companion {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .biying-companion__panel {
    position: fixed;
    inset: 0;
    z-index: 22;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-sizing: border-box;
  }

  .biying-companion__panel > [data-biying-chat],
  .biying-companion__panel .biying-chat__log {
    min-height: 0;
  }

  .biying-companion__panel > [data-biying-chat] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
  }

  .biying-companion__close {
    position: absolute;
    top: max(0.65rem, env(safe-area-inset-top));
    right: 0.72rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2rem;
    min-height: 2rem;
    border: 1px solid rgba(112, 244, 219, 0.22);
    border-radius: 999px;
    background: rgba(5, 14, 17, 0.8);
    color: #effffb;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
  }

  .biying-chat--companion .biying-chat__header {
    padding-right: 3.2rem;
    padding-top: max(0.72rem, calc(env(safe-area-inset-top) + 0.55rem));
  }

  .biying-chat--companion .biying-chat__log {
    max-height: none;
  }

  .biying-chat--companion .biying-chat__form {
    padding-bottom: max(0.75rem, calc(env(safe-area-inset-bottom) + 0.6rem));
  }

  .biying-companion-open {
    overflow: hidden;
  }

  .interaction-shell--page-chat {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .interaction-shell--page-chat .biying-chat {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: min(100dvh, 42rem);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-sizing: border-box;
  }

  .interaction-shell--page-chat .biying-chat__log {
    max-height: none;
    min-height: 0;
  }

  .interaction-shell--page-chat .biying-message {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .interaction-shell--page-chat .biying-message.biying {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .interaction-shell--page-chat .biying-message.user {
    max-width: 92%;
  }

  .signal-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .lang-switcher {
    margin-left: auto;
  }

  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .admin-tabs button {
    flex: 0 0 auto;
  }

  .md-copyright {
    margin: 0 auto;
    text-align: center;
    padding-top: 10px;
  }
}

@media (min-width: 960px) {
  .md-sidebar--primary:hover,
  .md-sidebar--primary:focus-within,
  body.sidebar-primary-peek .md-sidebar--primary {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
}
