.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link > span {
  min-width: 0;
}

.nav a[aria-current="page"] {
  color: var(--bright);
}

.nav a[aria-current="page"]::after {
  right: 0;
}

.logs-shell,
.log-detail-shell {
  min-height: calc(100vh - 190px);
  margin-bottom: 72px;
}

.logs-masthead {
  margin-bottom: 26px;
}

.logs-masthead h1,
.log-not-found h1 {
  margin: 4px 0 0;
  color: var(--bright);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0;
}

.logs-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.7fr) auto;
  gap: 24px;
  align-items: end;
  padding: 22px;
}

.logs-search,
.comment-field {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.logs-search > span,
.comment-field > span {
  display: block;
  margin-bottom: 7px;
  letter-spacing: .08em;
}

.logs-search input,
.comment-field input,
.comment-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  color: var(--bright);
  background: rgba(0, 0, 0, .23);
}

.logs-search input,
.comment-field input {
  min-height: 42px;
  padding: 8px 11px;
}

.comment-field textarea {
  min-height: 150px;
  padding: 11px;
  resize: vertical;
}

.logs-search input:focus,
.comment-field input:focus,
.comment-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--shadow);
}

.logs-tag-fieldset,
.avatar-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.logs-tag-fieldset legend,
.avatar-fieldset legend {
  margin-bottom: 7px;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.logs-tags {
  display: flex;
  min-height: 42px;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.logs-tag-option {
  position: relative;
  cursor: pointer;
}

.logs-tag-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.logs-tag-option span {
  display: block;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
}

.logs-tag-option span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border: 1px solid var(--line);
  vertical-align: 1px;
}

.logs-tag-option:hover span {
  color: var(--bright);
  background: rgba(255, 255, 255, .035);
}

.logs-tag-option input:focus-visible + span {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.logs-tag-option input:checked + span {
  color: #16070b;
  border-color: var(--accent);
  background: var(--accent);
  text-shadow: none;
}

.logs-tag-option input:checked + span::before {
  border-color: #16070b;
  background: #16070b;
}

.clear-filter-button {
  min-width: 120px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.clear-filter-button:hover,
.clear-filter-button:focus-visible {
  color: var(--bright);
  border-color: var(--accent);
  outline: none;
}

.logs-results {
  margin-top: 34px;
}

.logs-results-head,
.comments-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.logs-results-head h2,
.comments-heading h2,
.comment-compose-heading h2 {
  margin: 0;
  color: var(--bright);
  font-size: 25px;
  letter-spacing: 0;
}

.logs-results-head > span,
.comments-heading > span {
  color: var(--muted);
  font-size: 10px;
}

.log-list {
  display: grid;
  gap: 12px;
}

.log-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 112px;
  gap: 22px;
  align-items: start;
  padding: 24px 26px;
  border: 1px solid var(--line);
  color: inherit;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  box-shadow: 0 0 20px rgba(0, 0, 0, .22), inset 0 0 16px rgba(0, 0, 0, .14);
  text-decoration: none;
}

.log-entry:hover,
.log-entry:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 24px var(--shadow), inset 0 0 16px rgba(0, 0, 0, .14);
}

.log-entry.is-latest {
  padding-block: 34px;
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  box-shadow: 0 0 20px rgba(0, 0, 0, .22), inset 2px 0 var(--accent), inset 0 0 16px rgba(0, 0, 0, .14);
}

.log-entry.is-latest:hover,
.log-entry.is-latest:focus-visible {
  box-shadow: 0 0 24px var(--shadow), inset 2px 0 var(--accent), inset 0 0 16px rgba(0, 0, 0, .14);
}

.log-entry-index {
  color: var(--accent);
  font-size: 13px;
}

.log-entry-copy {
  min-width: 0;
}

.log-entry-latest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 9px;
  line-height: 1;
}

.log-entry-latest::before {
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  content: "";
}

.log-entry h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--bright);
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.log-entry-meta {
  margin: 7px 0 0;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .06em;
}

.log-entry-excerpt {
  display: -webkit-box;
  margin: 13px 0 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.log-entry-side {
  display: flex;
  min-height: 100%;
  align-items: end;
  justify-content: space-between;
  flex-direction: column;
  gap: 20px;
  color: var(--muted);
  text-align: right;
}

.log-entry-side time {
  font-size: 11px;
  white-space: nowrap;
}

.log-entry.is-latest .log-entry-side time {
  padding-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  color: var(--bright);
  font-weight: 700;
}

.log-entry-open {
  color: var(--bright);
  font-size: 10px;
}

.log-entry-open::after {
  content: " →";
  color: var(--accent);
}

.logs-empty,
.comments-empty {
  margin: 0;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.logs-pagination {
  display: grid;
  width: fit-content;
  grid-template-columns: 42px minmax(116px, auto) 42px;
  margin: 24px auto 0;
  border: 1px solid var(--line);
}

.logs-pagination button {
  width: 42px;
  height: 38px;
  padding: 0;
  border: 0;
  color: var(--bright);
  background: transparent;
  cursor: pointer;
}

.logs-pagination button:first-child {
  border-right: 1px solid var(--line);
}

.logs-pagination button:last-child {
  border-left: 1px solid var(--line);
}

.logs-pagination button:hover:not(:disabled),
.logs-pagination button:focus-visible:not(:disabled) {
  color: #16070b;
  outline: none;
  background: var(--accent);
  text-shadow: none;
}

.logs-pagination button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .45;
}

.logs-pagination span {
  display: grid;
  min-height: 38px;
  padding: 0 12px;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.back-to-logs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.back-to-logs:hover,
.back-to-logs:focus-visible {
  color: var(--bright);
  outline: none;
}

.back-to-logs > span:first-child {
  color: var(--accent);
}

.log-article {
  padding: 48px clamp(28px, 5vw, 72px) 58px;
}

.log-article-head {
  padding-bottom: 30px;
  border-bottom: 1px dashed var(--line);
}

.log-article-head h1 {
  max-width: 920px;
  margin: 8px 0 24px;
  color: var(--bright);
  font-size: 50px;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.log-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 28px;
  margin: 0;
}

.log-article-meta div {
  display: flex;
  gap: 8px;
}

.log-article-meta dt {
  color: var(--muted);
  font-size: 10px;
}

.log-article-meta dd {
  margin: 0;
  color: var(--bright);
  font-size: 10px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.detail-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.log-article-body {
  max-width: 860px;
  margin-top: 38px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.9;
}

.log-article-body p {
  margin: 0 0 22px;
}

.log-article-body ul {
  margin: 0 0 24px;
  padding-left: 24px;
}

.log-article-body li + li {
  margin-top: 7px;
}

.log-article-body blockquote {
  margin: 26px 0;
  padding: 16px 20px;
  border: 1px dashed var(--line);
  border-left: 3px solid var(--accent);
  color: var(--bright);
  background: rgba(0, 0, 0, .15);
}

.log-article-body h2,
.log-article-body h3,
.log-article-body h4 {
  margin: 34px 0 14px;
  color: var(--bright);
  line-height: 1.35;
  letter-spacing: 0;
}

.log-article-body h2 { font-size: 28px; }
.log-article-body h3 { font-size: 23px; }
.log-article-body h4 { font-size: 19px; }
.log-article-body a { color: var(--accent); overflow-wrap: anywhere; }
.log-article-body a:hover,
.log-article-body a:focus-visible { color: var(--bright); outline: none; }
.log-article-body pre {
  max-width: 100%;
  margin: 26px 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28);
  font-size: 13px;
  line-height: 1.65;
  text-shadow: none;
}
.log-article-body code { font-family: var(--font); }
.log-article-body table {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: rgba(0, 0, 0, .18);
  font-size: 14px;
  line-height: 1.6;
  text-shadow: none;
}

.log-article-body caption {
  padding: 10px 12px;
  color: var(--muted);
  text-align: left;
}

.log-article-body th,
.log-article-body td {
  min-width: 120px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.log-article-body th {
  color: var(--bright);
  background: var(--panel-2);
  font-weight: normal;
}

.log-article-body tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .025);
}

.log-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 26px auto;
  border: 1px solid var(--line);
  background: #090a0f;
}

.comment-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.comment-status[data-tone="success"] { color: var(--accent); }
.comment-status[data-tone="error"] { color: #ff9aaf; }

.article-palette {
  display: grid;
  grid-template-columns: 6fr 3fr 1.2fr 1fr 1fr;
  height: 28px;
  margin: 28px 0 8px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.article-palette span:nth-child(1) { background: #132a2d; }
.article-palette span:nth-child(2) { background: #8c2139; }
.article-palette span:nth-child(3) { background: #f5d55a; }
.article-palette span:nth-child(4) { background: #69d4e6; }
.article-palette span:nth-child(5) { background: #a882ff; }

.log-not-found {
  padding: 50px;
}

.log-not-found p {
  margin-bottom: 0;
  color: var(--muted);
}

.entry-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.entry-navigation a {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  color: inherit;
  background: var(--panel);
  text-decoration: none;
}

.entry-navigation a:last-child {
  text-align: right;
}

.entry-navigation a[hidden] {
  display: block;
  visibility: hidden;
}

.entry-navigation a:hover,
.entry-navigation a:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.entry-navigation small {
  display: block;
  color: var(--accent);
  font-size: 9px;
}

.entry-navigation strong {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: var(--bright);
  font-size: 13px;
  font-weight: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.comments-section,
.comment-compose {
  margin-top: 42px;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: start;
  margin-inline-start: calc(var(--comment-depth, 0) * 34px);
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.comment-item[data-depth="1"],
.comment-item[data-depth="2"] {
  border-inline-start: 2px solid var(--accent);
}

.comment-avatar,
.avatar-sprite {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0b10;
  image-rendering: auto;
}

.comment-avatar::before,
.avatar-sprite::before,
.comment-avatar::after,
.avatar-sprite::after {
  content: "";
  position: absolute;
}

.avatar-crystal::before {
  width: 17px;
  height: 17px;
  left: 15px;
  top: 15px;
  background: var(--accent);
  box-shadow: 0 0 13px var(--shadow);
  transform: rotate(45deg);
}

.avatar-moon::before {
  width: 24px;
  height: 24px;
  left: 10px;
  top: 10px;
  border-radius: 50%;
  background: #f2dec7;
  box-shadow: 0 0 13px rgba(242, 222, 199, .25);
}

.avatar-moon::after {
  width: 24px;
  height: 24px;
  left: 17px;
  top: 7px;
  border-radius: 50%;
  background: #0b0b10;
}

.avatar-terminal::before {
  width: 19px;
  height: 4px;
  left: 8px;
  top: 20px;
  background: var(--accent);
  box-shadow: 8px 8px 0 var(--bright);
}

.avatar-wing::before {
  width: 9px;
  height: 9px;
  left: 10px;
  top: 10px;
  background: #f5d55a;
  box-shadow: 13px 8px #69d4e6, 2px 20px #f18bcb, 22px 23px #a882ff;
  transform: rotate(45deg);
}

.avatar-sun::before {
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  border: 1px solid #ff9a70;
  border-radius: 50%;
  background: #d64845;
  box-shadow: 0 0 14px rgba(214, 72, 69, .58);
}

.avatar-sun::after {
  top: 6px;
  left: 23px;
  width: 1px;
  height: 34px;
  background: #d67b62;
  box-shadow: 0 0 8px rgba(214, 72, 69, .34);
  transform: rotate(45deg);
}

.avatar-yin-yang::before {
  top: 7px;
  left: 7px;
  width: 34px;
  height: 34px;
  border: 2px solid #bfc3c7;
  border-radius: 50%;
  background: linear-gradient(90deg, #e8e3d7 0 50%, #b33a48 50%);
  box-shadow: 0 0 8px rgba(179, 58, 72, .3);
}

.avatar-yin-yang::after {
  top: 9px;
  left: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b33a48;
  box-shadow: 0 16px #e8e3d7, 4px 4px 0 -2px #e8e3d7, 4px 20px 0 -2px #b33a48;
}

.avatar-mountain::before {
  left: 7px;
  bottom: 7px;
  width: 34px;
  height: 31px;
  background: linear-gradient(135deg, #87909b 0 48%, #d7dde2 49% 61%, #59616c 62%);
  clip-path: polygon(0 100%, 28% 48%, 39% 62%, 65% 10%, 100% 100%);
}

.avatar-mountain::after {
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #d94c43;
  box-shadow: 0 0 8px rgba(217, 76, 67, .52);
}

.avatar-star::before {
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  background: #e4c95e;
  clip-path: polygon(50% 0, 61% 35%, 100% 38%, 69% 59%, 79% 100%, 50% 75%, 21% 100%, 31% 59%, 0 38%, 39% 35%);
  filter: drop-shadow(0 0 5px rgba(228, 201, 94, .36));
}

.avatar-star::after {
  top: 21px;
  left: 21px;
  width: 6px;
  height: 6px;
  background: #fff2aa;
  transform: rotate(45deg);
}

.avatar-flower::before {
  top: 12px;
  left: 20px;
  width: 7px;
  height: 7px;
  background: #e5535d;
  box-shadow: -8px 3px #a92f48, 8px 3px #c43a50, -5px -6px #d84458, 5px -6px #f07171, 0 8px #8f2940;
  transform: rotate(45deg);
}

.avatar-flower::after {
  top: 24px;
  left: 23px;
  width: 2px;
  height: 17px;
  background: #6f9773;
  box-shadow: 5px 7px #557f61;
  transform: rotate(-7deg);
}

.avatar-hakkero::before {
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  background: conic-gradient(#e0d8c4 0 45deg, #373941 45deg 90deg, #d56053 90deg 135deg, #373941 135deg 180deg, #e0d8c4 180deg 225deg, #373941 225deg 270deg, #d56053 270deg 315deg, #373941 315deg);
  clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
  box-shadow: inset 0 0 0 4px #756750;
}

.avatar-hakkero::after {
  top: 18px;
  left: 18px;
  width: 12px;
  height: 12px;
  border: 2px solid #f0b56b;
  background: #9e3142;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 8px rgba(224, 88, 76, .5);
}

.avatar-spell-card::before {
  top: 7px;
  left: 12px;
  width: 25px;
  height: 34px;
  border: 2px solid #d8cbb3;
  background: repeating-linear-gradient(0deg, #382b48 0 5px, #49365b 5px 7px);
  box-shadow: inset 0 0 0 3px #18131f, 0 0 7px rgba(154, 100, 176, .3);
  transform: rotate(-7deg);
}

.avatar-spell-card::after {
  top: 17px;
  left: 20px;
  width: 10px;
  height: 10px;
  background: #efbd65;
  clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 38% 63%, 0 50%, 38% 37%);
  transform: rotate(-7deg);
}

.avatar-pocket-watch::before {
  top: 10px;
  left: 10px;
  width: 29px;
  height: 29px;
  border: 3px solid #aeb7bd;
  border-radius: 50%;
  background: #20252b;
  box-shadow: inset 0 0 0 2px #5f6b74, 0 -6px 0 -2px #aeb7bd;
}

.avatar-pocket-watch::after {
  top: 18px;
  left: 23px;
  width: 2px;
  height: 11px;
  background: #d6dadd;
  box-shadow: 4px 8px #d25b5b;
  transform: rotate(-28deg);
  transform-origin: bottom center;
}

.avatar-grid::before {
  inset: 7px;
  background: repeating-linear-gradient(0deg, transparent 0 6px, #42505a 6px 7px), repeating-linear-gradient(90deg, transparent 0 6px, #42505a 6px 7px);
}

.avatar-grid::after {
  top: 20px;
  left: 20px;
  width: 8px;
  height: 8px;
  border: 1px solid #ff8a70;
  background: #c7484e;
  box-shadow: 0 0 9px rgba(199, 72, 78, .48);
}

.avatar-key::before {
  top: 10px;
  left: 7px;
  width: 23px;
  height: 13px;
  border: 4px solid #a8afb5;
  border-radius: 8px;
  background: transparent;
  transform: rotate(-35deg);
}

.avatar-key::after {
  top: 24px;
  left: 18px;
  width: 23px;
  height: 13px;
  border: 4px solid #78838b;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 0 7px rgba(168, 175, 181, .22);
  transform: rotate(-35deg);
}

.avatar-flame::before {
  top: 7px;
  left: 12px;
  width: 25px;
  height: 34px;
  background: linear-gradient(135deg, #f1b35c 0 35%, #d84a45 36% 72%, #752a3d 73%);
  clip-path: polygon(52% 0, 85% 32%, 100% 64%, 80% 100%, 19% 100%, 0 68%, 23% 39%, 32% 66%);
  filter: drop-shadow(0 0 6px rgba(216, 74, 69, .42));
}

.avatar-flame::after {
  top: 25px;
  left: 21px;
  width: 8px;
  height: 13px;
  background: #ffe19a;
  clip-path: polygon(50% 0, 100% 55%, 72% 100%, 24% 100%, 0 55%);
}

.avatar-saigyou::before {
  top: 9px;
  left: 20px;
  width: 4px;
  height: 34px;
  background: #775144;
  box-shadow: -7px 9px #775144, 7px 4px #775144;
  transform: rotate(28deg);
}

.avatar-saigyou::after {
  top: 10px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #efb9c6;
  box-shadow: 10px -3px #d989a2, 19px 4px #f1c7cf, 4px 10px #cf7896, 16px 14px #e9a7ba, -2px 20px #e7a3b4;
}

.avatar-torii::before {
  top: 10px;
  left: 6px;
  width: 36px;
  height: 5px;
  background: #c94648;
  box-shadow: 3px 7px #8f303b, 29px 7px #8f303b, 7px 11px #c94648, 25px 11px #c94648;
}

.avatar-torii::after {
  top: 19px;
  left: 12px;
  width: 5px;
  height: 23px;
  background: #bd3e43;
  box-shadow: 19px 0 #bd3e43, -4px 19px #71303a, 23px 19px #71303a;
}

.avatar-hourai-branch::before {
  top: 8px;
  left: 22px;
  width: 4px;
  height: 35px;
  background: #8b6544;
  box-shadow: -6px 8px #8b6544, 6px 13px #8b6544;
  transform: rotate(36deg);
}

.avatar-hourai-branch::after {
  top: 8px;
  left: 11px;
  width: 7px;
  height: 7px;
  background: #e85962;
  box-shadow: 13px 4px #72c7cf, 22px 13px #e1c55c, 7px 19px #9c78d0, 19px 27px #6fc47e;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 4px rgba(201, 175, 109, .28));
}

.avatar-leaf::before {
  top: 7px;
  left: 11px;
  width: 28px;
  height: 31px;
  background: linear-gradient(135deg, #d3b653 0 45%, #728f58 46% 100%);
  clip-path: polygon(50% 0, 94% 28%, 76% 77%, 50% 100%, 24% 77%, 6% 28%);
}

.avatar-leaf::after {
  top: 14px;
  left: 23px;
  width: 2px;
  height: 29px;
  background: #d8c984;
  box-shadow: -6px 7px #9eaa6c, 6px 13px #9eaa6c;
}

.avatar-planet::before {
  top: 13px;
  left: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ca8ad 0 45%, #486474 46% 70%, #293b50 71%);
  box-shadow: 0 0 8px rgba(108, 168, 173, .32);
}

.avatar-planet::after {
  top: 19px;
  left: 6px;
  width: 36px;
  height: 12px;
  border: 2px solid #c99167;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.avatar-lunar-rabbit::before {
  top: 6px;
  left: 14px;
  width: 8px;
  height: 24px;
  border: 2px solid #d5d8de;
  border-radius: 50% 50% 35% 35%;
  background: #72768d;
  box-shadow: 13px 1px 0 -2px #72768d, 13px 1px 0 0 #d5d8de;
  transform: rotate(-8deg);
}

.avatar-lunar-rabbit::after {
  top: 27px;
  left: 14px;
  width: 21px;
  height: 13px;
  border: 2px solid #d15b68;
  border-top-color: transparent;
  border-radius: 50%;
  background: #242633;
  box-shadow: 0 0 7px rgba(209, 91, 104, .35);
}

.avatar-chip::before {
  inset: 11px;
  border: 3px solid #638a7b;
  background: repeating-linear-gradient(90deg, #1c302e 0 5px, #35584e 5px 7px);
  box-shadow: inset 0 0 0 3px #101b1c;
}

.avatar-chip::after {
  top: 7px;
  left: 14px;
  width: 4px;
  height: 34px;
  background: #96aa84;
  box-shadow: 8px 0 #96aa84, 16px 0 #96aa84;
  clip-path: polygon(0 0, 100% 0, 100% 12%, 0 12%, 0 88%, 100% 88%, 100% 100%, 0 100%);
}

.avatar-border-gap::before {
  top: 13px;
  left: 5px;
  width: 38px;
  height: 22px;
  border: 2px solid #9c6bb2;
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, #22182b 0 5px, #3f244d 5px 8px);
  box-shadow: 0 0 8px rgba(156, 107, 178, .35);
  transform: rotate(-8deg);
}

.avatar-border-gap::after {
  top: 21px;
  left: 13px;
  width: 5px;
  height: 3px;
  background: #f0d68a;
  box-shadow: 9px -2px #f0d68a, 18px 1px #f0d68a;
  transform: rotate(-8deg);
}

.avatar-gungnir::before {
  top: 4px;
  left: 22px;
  width: 5px;
  height: 40px;
  background: linear-gradient(#e5b4ac, #a92e43 35% 100%);
  box-shadow: 0 0 6px rgba(180, 47, 67, .4);
  transform: rotate(42deg);
}

.avatar-gungnir::after {
  top: 5px;
  left: 11px;
  width: 15px;
  height: 18px;
  background: #d94b55;
  clip-path: polygon(50% 0, 100% 62%, 67% 55%, 50% 100%, 33% 55%, 0 62%);
  transform: rotate(42deg);
}

.avatar-onbashira::before {
  top: 5px;
  left: 18px;
  width: 13px;
  height: 39px;
  border: 2px solid #866143;
  background: repeating-linear-gradient(90deg, #9b744f 0 4px, #6f4e39 4px 6px);
  transform: rotate(17deg);
}

.avatar-onbashira::after {
  top: 14px;
  left: 13px;
  width: 24px;
  height: 4px;
  border-top: 2px solid #d4c4a2;
  border-bottom: 2px solid #8d795a;
  box-shadow: 1px 9px 0 -1px #d4c4a2, 2px 18px 0 -1px #8d795a;
  transform: rotate(17deg);
}

.avatar-geism::before,
.avatar-image::before {
  inset: 2px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background-color: #05060a;
  background-image: var(--avatar-image, url("favicon.ico"));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: none;
  clip-path: none;
  filter: none;
  opacity: 1;
  transform: none;
  image-rendering: auto;
}

.avatar-geism::after,
.avatar-image::after {
  display: none;
}

.comment-copy {
  min-width: 0;
}

.comment-copy strong {
  color: var(--bright);
  font-size: 12px;
  font-weight: normal;
}

.comment-reply-reference {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}

.comment-copy p {
  margin: 7px 0 0;
  color: var(--text);
}

.comment-item time {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.comment-meta {
  display: grid;
  min-width: 74px;
  gap: 8px;
  justify-items: end;
}

.comment-reply-button {
  padding: 2px 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.comment-reply-button:hover,
.comment-reply-button:focus-visible {
  color: var(--bright);
  outline: none;
  text-shadow: 0 0 7px var(--shadow);
}

.comment-compose {
  padding: 30px;
}

.comment-compose-heading {
  margin-bottom: 22px;
}

.comment-compose-heading h2 {
  margin-top: 3px;
}

#commentForm {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(330px, 1.2fr);
  gap: 20px 28px;
}

.comment-reply-context {
  display: flex;
  grid-column: 1 / -1;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  border-inline-start: 2px solid var(--accent);
  color: var(--muted);
  background: var(--panel-2);
  font-size: 10px;
}

.comment-reply-context[hidden] {
  display: none;
}

.comment-reply-context strong {
  color: var(--bright);
  font-weight: normal;
}

.comment-reply-context button {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.comment-reply-context button:hover,
.comment-reply-context button:focus-visible {
  border-color: var(--accent);
  color: var(--bright);
  outline: none;
}

.avatar-fieldset {
  grid-column: 2;
  grid-row: 1;
}

.avatar-picker-toggle {
  display: grid;
  width: min(100%, 360px);
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) 48px 18px;
  gap: 10px;
  align-items: center;
  padding: 5px 8px 5px 11px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(0, 0, 0, .23);
  text-align: left;
  cursor: pointer;
}

.avatar-picker-toggle:hover,
.avatar-picker-toggle:focus-visible,
.avatar-picker-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 16px var(--shadow);
}

.avatar-current-copy {
  min-width: 0;
}

.avatar-current-copy small,
.avatar-current-copy strong {
  display: block;
  overflow-wrap: anywhere;
}

.avatar-current-copy small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
}

.avatar-current-copy strong {
  color: var(--bright);
  font-size: 10px;
  font-weight: normal;
}

.avatar-picker-toggle > .avatar-sprite {
  width: 48px;
  height: 48px;
}

.avatar-picker-indicator {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
}

.avatar-picker-indicator::before,
.avatar-picker-indicator::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 3px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.avatar-picker-indicator::after {
  transform: rotate(90deg);
  transition: transform .16s ease;
}

.avatar-picker-toggle[aria-expanded="true"] .avatar-picker-indicator::after {
  transform: rotate(0);
}

.avatar-options-panel {
  width: min(100%, 360px);
  margin-top: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  background: #08090c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.avatar-options-panel[hidden] {
  display: none;
}

.avatar-options-heading {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 8px;
}

.avatar-options {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.avatar-option {
  position: relative;
  display: block;
  width: min(100%, 48px);
  aspect-ratio: 1;
  justify-self: center;
  cursor: pointer;
}

.avatar-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.avatar-option .avatar-sprite {
  width: 100%;
  height: 100%;
}

.avatar-option:hover .avatar-sprite {
  border-color: var(--accent);
}

.avatar-option input:focus-visible + .avatar-sprite {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.avatar-option input:checked + .avatar-sprite {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--shadow);
}

.avatar-pagination {
  display: grid;
  min-width: 0;
  margin-top: 10px;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.avatar-pagination button {
  width: 30px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--accent);
  background: #0c0d11;
  font: inherit;
  cursor: pointer;
}

.avatar-pagination button:hover:not(:disabled),
.avatar-pagination button:focus-visible {
  border-color: var(--accent);
  color: var(--bright);
  outline: none;
  box-shadow: 0 0 10px var(--shadow);
}

.avatar-pagination button:disabled {
  color: #4b4c53;
  cursor: default;
  opacity: .55;
}

.avatar-pagination span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.comment-field[for="commentMessage"] {
  grid-column: 1 / -1;
}

.comment-actions,
.comment-status {
  grid-column: 1 / -1;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
}

.comment-submit {
  min-width: 128px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  color: #16070b;
  background: var(--accent);
  text-shadow: none;
  cursor: pointer;
}

.comment-submit:hover,
.comment-submit:focus-visible {
  color: var(--bright);
  outline: none;
  background: transparent;
  text-shadow: 0 0 7px var(--shadow);
}

.comment-status {
  min-height: 1.65em;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 900px) {
  .logs-toolbar {
    grid-template-columns: 1fr;
  }

  .clear-filter-button {
    width: fit-content;
  }

  .log-entry {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .log-entry-side {
    grid-column: 2;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .logs-masthead h1,
  .log-not-found h1 {
    font-size: 34px;
  }

  .logs-toolbar {
    gap: 18px;
    padding: 18px;
  }

  .log-entry {
    display: block;
    padding: 20px;
  }

  .log-entry.is-latest {
    padding-block: 30px;
  }

  .log-entry-index {
    display: block;
    margin-bottom: 6px;
  }

  .log-entry h3 {
    font-size: 22px;
  }

  .log-entry-side {
    display: flex;
    margin-top: 15px;
  }

  .log-article {
    padding: 30px 20px 36px;
  }

  .log-article-head h1 {
    font-size: 34px;
  }

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

  .entry-navigation {
    grid-template-columns: 1fr;
  }

  .entry-navigation a:last-child {
    text-align: left;
  }

  .entry-navigation a[hidden] {
    display: none;
  }

  .comment-item {
    grid-template-columns: 42px minmax(0, 1fr);
    margin-inline-start: calc(var(--comment-depth, 0) * 14px);
    padding: 16px;
  }

  .comment-avatar {
    width: 42px;
    height: 42px;
  }

  .comment-meta {
    display: flex;
    grid-column: 2;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
  }

  .comment-compose {
    padding: 22px 18px;
  }

  #commentForm {
    grid-template-columns: 1fr;
  }

  .avatar-fieldset,
  .comment-field[for="commentMessage"],
  .comment-actions,
  .comment-status {
    grid-column: 1;
  }

  .avatar-fieldset {
    grid-row: auto;
  }

  .avatar-picker-toggle,
  .avatar-options-panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-picker-indicator::after {
    transition: none;
  }
}

@media (max-width: 420px) {
  .avatar-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
