/* Navigation, list feedback and comments share one neutral material. Load last. */
:root {
  --lm-selection-rim: rgba(0, 0, 0, .06);
  --lm-selection-shadow: rgba(0, 0, 0, .04);
  --lm-selection-shine: rgba(255, 255, 255, .52);
  --lm-nav-glass-fill: rgba(255, 255, 255, .62);
  --lm-nav-glass-edge: rgba(0, 0, 0, .07);
  --lm-nav-glass-filter: blur(8px) saturate(100%);
}
html.dark {
  --lm-selection-rim: rgba(255, 255, 255, .12);
  --lm-selection-shadow: rgba(0, 0, 0, .10);
  --lm-selection-shine: rgba(255, 255, 255, .05);
  --lm-nav-glass-fill: rgba(17, 17, 17, .62);
  --lm-nav-glass-edge: rgba(255, 255, 255, .09);
}
.site-header.reading-shell-header {
  border-bottom: 0;
  box-shadow: none;
}
.site-header.reading-shell-header::before {
  background: var(--lm-nav-glass-fill);
  box-shadow: inset 0 -1px 0 var(--lm-nav-glass-edge);
  backdrop-filter: var(--lm-nav-glass-filter);
  -webkit-backdrop-filter: var(--lm-nav-glass-filter);
}
.site-header.reading-shell-header.lm-optics-enabled::before {
  backdrop-filter: var(--lm-nav-glass-filter) var(--lm-nav-optics, blur(0px));
  -webkit-backdrop-filter: var(--lm-nav-glass-filter) var(--lm-nav-optics, blur(0px));
}
.lm-navigation-glass {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: clip;
}
/* Nav optics sample on the single sticky decorative plane above, leaving
   the real navigation, controls and foreground text untouched. */
.lm-navigation-glass .glass__warp {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.reading-shell-header .site-nav,
.reading-shell-header.is-reader .site-nav {
  position: relative;
  align-items: center;
  gap: 4px;
}
.reading-shell-header .site-nav-link {
  flex: none;
  z-index: 1;
  justify-content: center;
  box-sizing: border-box;
  min-width: 60px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 999px;
}
.reading-shell-header .site-nav-link.is-active {
  background: var(--lm-row-hover);
}
.reading-shell-header .site-nav[data-glass-ready] .site-nav-link.is-active {
  background: transparent;
}
.lm-nav-glider, .lm-entry-glider {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  background: transparent;
  pointer-events: none;
  visibility: hidden;
}
.lm-nav-glider { border-radius: 999px; }
.lm-entry-glider { border-radius: 12px; }
.lm-comments-glass {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 0;
  border-radius: 22px;
  pointer-events: none;
}
:is(.lm-nav-glider, .lm-entry-glider)[data-visible="true"] { visibility: visible; }
.lm-nav-glider.is-sliding {
  transition: left 380ms cubic-bezier(.22,.8,.24,1), top 380ms cubic-bezier(.22,.8,.24,1);
}
/* Identical clear highlight and rim; no gray/blue card fill or dark shadow. */
:is(.lm-nav-glider, .lm-entry-glider, .lm-comments-glass)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, var(--lm-selection-shine), transparent);
  box-shadow: inset 0 0 0 .65px var(--lm-selection-rim), 0 1px 4px var(--lm-selection-shadow);
}
/* One light sheet behind the editor, not a box around the whole discussion.
   Only the external decoration is clipped; Vue owns the untouched form. */
.comment-shell {
  --comment-ink: #27272b;
  --comment-secondary: #686870;
  --comment-placeholder: #707078;
  --comment-placeholder-focus: #707078;
  --comment-edge: rgb(35 35 40 / .055);
  --comment-edge-active: rgb(35 35 40 / .10);
  --comment-surface: rgb(255 255 255 / .16);
  --comment-shine: rgb(255 255 255 / .76);
  --comment-lower-edge: rgb(35 35 40 / .022);
  --comment-sheet-shadow: rgb(26 26 38 / .032);
  --comment-control: rgb(35 35 40 / .032);
  --comment-hover: rgb(35 35 40 / .018);
  --comment-disabled: rgb(35 35 40 / .012);
  --comment-button-glint: rgb(255 255 255 / .52);
  --comment-button-edge: rgb(35 35 40 / .045);
  --comment-button-edge-active: rgb(35 35 40 / .075);
  --comment-button-lower-edge: rgb(35 35 40 / .028);
  --comment-button-shadow: rgb(26 26 38 / .035);
  --comment-reply-edge: rgb(35 35 40 / .06);
  --comment-reply-shadow: rgb(26 26 38 / .04);
  --comment-pressed: rgb(35 35 40 / .045);
  position: relative;
  margin-top: 4rem;
  padding: 0;
  background: transparent;
}
html.dark .comment-shell {
  --comment-ink: #eaeaec;
  --comment-secondary: #adadb5;
  --comment-placeholder: #a0a0a9;
  --comment-placeholder-focus: #8d8d98;
  --comment-edge: rgb(255 255 255 / .075);
  --comment-edge-active: rgb(255 255 255 / .13);
  --comment-surface: rgb(255 255 255 / .022);
  --comment-shine: rgb(255 255 255 / .105);
  --comment-lower-edge: rgb(0 0 0 / .12);
  --comment-sheet-shadow: rgb(0 0 0 / .08);
  --comment-control: rgb(255 255 255 / .035);
  --comment-hover: rgb(255 255 255 / .06);
  --comment-disabled: rgb(255 255 255 / .018);
  --comment-button-glint: rgb(255 255 255 / .075);
  --comment-button-edge: rgb(255 255 255 / .065);
  --comment-button-edge-active: rgb(255 255 255 / .11);
  --comment-button-lower-edge: rgb(0 0 0 / .16);
  --comment-button-shadow: rgb(0 0 0 / .10);
  --comment-reply-edge: rgb(255 255 255 / .11);
  --comment-reply-shadow: rgb(0 0 0 / .12);
  --comment-pressed: rgb(255 255 255 / .03);
}
.lm-comments-glass { overflow: clip; background: transparent; }
.lm-comments-glass::after { background: none; box-shadow: none; }
.comment-shell #waline {
  position: relative;
  z-index: 1;
  margin-top: 0;
  --waline-color: var(--lm-ink);
  --waline-theme-color: var(--lm-ink);
  --waline-active-color: var(--lm-ink);
  --waline-info-color: var(--lm-muted);
  --waline-bg-color: var(--lm-bg);
  --waline-bg-color-light: var(--lm-row-hover);
  --waline-bg-color-hover: var(--lm-hover);
  --waline-border-color: var(--lm-selection-rim);
  --waline-border: 1px solid var(--lm-selection-rim);
  font-size: 14px;
}
#waline .wl-comment {
  position: relative;
  display: block;
  box-sizing: border-box;
  margin-bottom: 24px;
  padding: 12px 24px 10px;
  border: 1px solid var(--comment-edge);
  border-radius: 22px;
  /* Keep the broad face even; only the rim carries directional light. */
  background: var(--comment-surface);
  box-shadow: inset 0 1px 0 var(--comment-shine), inset 0 -1px 0 var(--comment-lower-edge), 0 8px 28px -8px var(--comment-sheet-shadow);
  text-align: left;
  transition: border-color 180ms ease;
}
#waline .wl-comment:focus-within { border-color: var(--comment-edge-active); }
#waline .wl-panel {
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#waline .wl-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
}
#waline .wl-header-item {
  min-width: 0;
  width: auto;
  display: flex;
  padding: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 0;
}
#waline .wl-header label {
  position: relative;
  display: grid;
  place-items: center;
  width: 16px;
  min-width: 16px;
  flex: 0 0 16px;
  padding: 0;
  color: var(--comment-secondary);
  font-size: 0;
  text-align: start;
}
#waline .wl-header label::before {
  content: '';
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: var(--comment-icon) center / contain no-repeat;
  -webkit-mask: var(--comment-icon) center / contain no-repeat;
}
#waline label[for="wl-nick"] { --comment-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E"); }
#waline label[for="wl-mail"] { --comment-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E"); }
#waline .wl-header input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  color: var(--comment-ink);
  background: transparent;
}
#waline .wl-editor {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 62px;
  max-height: 320px;
  height: 62px;
  overflow-y: auto;
  margin: 8px 0 2px;
  padding: 1px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--comment-ink);
  font-size: 16px;
  line-height: 28px;
  text-indent: var(--lm-reply-indent, 0px);
  resize: none;
}
#waline :is(.wl-input, .wl-editor)::placeholder { color: var(--comment-placeholder); opacity: 1; transition: color 160ms ease; }
#waline :is(.wl-input, .wl-editor):focus::placeholder { color: var(--comment-placeholder-focus); }
#waline :is(.wl-input, .wl-editor):focus {
  outline: none;
  background: transparent;
  box-shadow: none;
}
#waline .wl-header-item:focus-within label { color: var(--comment-ink); }
/* Text fields use the sheet edge, active label and caret as focus feedback.
   Browsers also match textarea :focus-visible after a pointer click. */
#waline :is(.wl-input, .wl-editor):focus-visible { outline: none; }
#waline .wl-footer { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; margin: 0 -8px; padding: 0; }
#waline .wl-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 2px; padding: 0; }
#waline .wl-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  width: 32px;
  height: 44px;
  margin: 0;
  border-radius: 10px;
  color: var(--lm-muted);
  border: 0;
  background: transparent;
  padding: 0;
}
#waline .wl-action::before { content: ''; position: absolute; inset: 8px 2px; border-radius: 9px; background: linear-gradient(145deg, var(--comment-button-glint), transparent 52%), var(--comment-control); box-shadow: inset 0 1px 0 var(--comment-shine), inset 0 -1px 0 var(--comment-button-lower-edge); opacity: 0; transition: opacity 160ms ease; pointer-events: none; }
#waline .wl-action:is(:hover, :focus-visible, .active)::before { opacity: 1; }
#waline .wl-action:is(:hover, :focus-visible, .active) { color: var(--lm-ink); }
#waline .wl-action svg { position: relative; width: 18px; height: 18px; }
/* Preserve Waline's leading Markdown guide and its native link behavior. */
#waline .wl-actions > a.wl-action { text-decoration: none; }
/* Native Markdown SVG has a 16px coordinate system without a viewBox. */
#waline .wl-actions > a.wl-action svg { width: 16px; height: 16px; }
#waline .wl-info { display: flex; align-items: center; justify-content: flex-end; flex: 1 0 auto; gap: 2px; padding: 0; }
#waline .wl-info .wl-captcha-container:empty { display: none; }
#waline .wl-info .wl-text-number { flex-shrink: 0; margin: 0 8px 0 0; font-size: 11px; line-height: 1.5; white-space: nowrap; color: var(--comment-placeholder); }
#waline .wl-info .wl-text-number span { font-size: inherit; }
/* Hiding only visibility at width:0 wraps the native counter into tall lines. */
#waline .wl-comment[data-lm-empty="true"] .wl-text-number { display: none; }
#waline .wl-comment[data-lm-empty="true"] .wl-action[title="预览"] { display: none; }
#waline .wl-info button { margin-inline-start: 0; }
#waline .wl-btn {
  box-sizing: border-box;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--lm-selection-rim);
  border-radius: 10px;
  background: transparent;
  color: var(--lm-muted);
  font-size: 13px;
  line-height: 1.5;
  transition: background-color 180ms ease, color 180ms ease;
}
#waline .wl-btn.primary {
  background: transparent;
  color: var(--lm-ink);
  font-weight: 600;
  box-shadow: none;
}
#waline .wl-btn:is(:hover, :active) { border-color: var(--lm-selection-rim); background: var(--lm-row-hover); color: var(--lm-ink); }
#waline .wl-btn:disabled { opacity: .5; cursor: not-allowed; }
#waline .wl-info > .wl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--comment-ink);
  font-size: 0;
  box-shadow: none;
}
/* Both native actions share one clear lens: a soft cap, not an opaque fill.
   Hover changes only its neutral base; glyphs and hit targets never move. */
#waline .wl-info > .wl-btn::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--comment-button-edge); border-radius: 50%; background: linear-gradient(145deg, var(--comment-button-glint), transparent 52%), var(--comment-control); box-shadow: inset 0 1px 0 var(--comment-shine), inset 0 -1px 0 var(--comment-button-lower-edge), 0 2px 6px var(--comment-button-shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
#waline .wl-info > .wl-btn::after { content: ''; position: absolute; inset: 13px; width: 18px; height: 18px; background: currentColor; mask: var(--comment-icon) center / contain no-repeat; -webkit-mask: var(--comment-icon) center / contain no-repeat; pointer-events: none; }
#waline .wl-info > .wl-btn.primary { --comment-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5m-6 6 6-6 6 6'/%3E%3C/svg%3E"); }
#waline .wl-info > .wl-btn:not(.primary) { --comment-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E"); }
#waline .wl-info > .wl-btn:is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"])::before { background-color: var(--comment-hover); border-color: var(--comment-button-edge-active); box-shadow: inset 0 1px 0 var(--comment-shine), inset 0 -1px 0 var(--comment-button-lower-edge), 0 2px 9px var(--comment-button-shadow); }
#waline .wl-info > .wl-btn:active:not(:disabled):not([aria-disabled="true"])::before { background-color: var(--comment-pressed); box-shadow: inset 0 1px 0 var(--comment-shine); }
#waline .wl-info > .wl-btn:is(:disabled, [aria-disabled="true"]) { color: var(--comment-placeholder); cursor: not-allowed; }
#waline .wl-info > .wl-btn:is(:disabled, [aria-disabled="true"])::before { background: var(--comment-disabled); box-shadow: inset 0 1px 0 var(--comment-shine); }
#waline .wl-info > .wl-btn:has(svg)::after { display: none; }
#waline .wl-info > .wl-btn > svg { position: absolute; inset: 13px; width: 18px; height: 18px; }
/* Native authenticated avatar occupies the same slot as the native login. */
#waline .wl-login-info { position: absolute; right: 63px; bottom: 10px; z-index: 2; width: 44px; height: 44px; margin: 0; padding: 0; }
#waline .wl-login-info > .wl-login-nick { display: none; }
#waline .wl-login-info .wl-avatar { position: relative; display: grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
#waline .wl-login-info .wl-avatar img { box-sizing: border-box; width: 34px; height: 34px; min-width: 34px; max-width: 34px; margin: 0; padding: 2px; border: 1px solid var(--comment-button-edge); border-radius: 50%; background: var(--comment-control); object-fit: cover; box-shadow: 0 2px 6px var(--comment-button-shadow); }
#waline .wl-login-info .wl-avatar > a { position: relative; display: grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px; border-radius: 50%; }
#waline .wl-login-info .wl-avatar > a::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; box-shadow: inset 0 1px 0 var(--comment-shine), inset 0 -1px 0 var(--comment-button-lower-edge); pointer-events: none; }
#waline .wl-login-info .wl-avatar > a:is(:hover, :focus-visible) img { border-color: var(--comment-button-edge-active); box-shadow: 0 2px 9px var(--comment-button-shadow); }
#waline .wl-login-info .wl-logout-btn { position: absolute; top: -6px; right: -5px; z-index: 1; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
#waline .wl-login-info .wl-logout-btn svg { position: absolute; right: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--lm-bg); color: var(--comment-secondary); }
#waline .wl-comment:has(> .wl-login-info) .wl-info > .primary { margin-inline-start: 46px; }
/* A small clear lens, sharing the action-button optics without a nested gray X. */
#waline .wl-comment > .wl-close[data-lm-reply] {
  position: absolute;
  top: var(--lm-reply-top);
  left: var(--lm-reply-left);
  right: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  width: auto;
  max-width: var(--lm-reply-max);
  height: 28px;
  margin: 0;
  padding: 0 5px 0 8px;
  border: 1px solid var(--comment-reply-edge);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--comment-shine), transparent 65%), var(--comment-surface);
  color: var(--comment-ink);
  box-shadow: inset 0 1px 0 var(--comment-shine), inset 0 -1px 0 var(--comment-button-lower-edge), 0 2px 5px var(--comment-reply-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
#waline .wl-close[data-lm-reply]::before { content: attr(data-lm-reply); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.4; }
#waline .wl-close[data-lm-reply]::after { content: '×'; display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: transparent; color: var(--comment-secondary); font-size: 14px; line-height: 1; }
#waline .wl-close[data-lm-reply] > svg { display: none; }
#waline .wl-comment > .wl-close[data-lm-reply]:focus-visible { border-color: var(--comment-edge-active); }
#waline :is(button, a):focus-visible { outline: 2px solid var(--lm-muted); outline-offset: 3px; }
#waline .wl-meta-head { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 0 18px; padding: 0; }
#waline .wl-count { flex: 0 0 auto; margin: 0; color: var(--comment-secondary); font-size: 12px; font-weight: 400; white-space: nowrap; }
#waline .wl-sort { display: flex; gap: 14px; margin: 0; }
#waline .wl-sort li { padding-block: 10px; font-size: 12px; }
#waline .wl-sort li + li { margin-inline-start: 0; }
#waline .wl-sort li.active { font-weight: 600; }
/* Waline renders this direct empty node only after a successful empty result.
   Loading and retry/error branches remain visible; counts can be stale. */
#waline > [data-waline]:has(> .wl-empty) > .wl-meta-head,
#waline > [data-waline] > .wl-empty { display: none; }
/* A lightly spaced, unboxed conversation. Keep native nodes and their reading order. */
#waline .wl-card-item { padding: 14px 0 0; }
#waline .wl-cards > .wl-card-item + .wl-card-item { margin-top: 16px; }
#waline .wl-cards .wl-user { --avatar-size: 34px; flex: 0 0 var(--avatar-size); margin-inline-end: 10px; }
#waline .wl-cards .wl-user-avatar { box-sizing: border-box; margin: 0; box-shadow: none; }
#waline .wl-card { min-width: 0; padding: 0; border: 0; }
#waline .wl-card:first-child { margin-inline-start: 0; }
#waline .wl-card .wl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 34px; overflow: visible; padding: 0; line-height: 1.5; }
#waline .wl-card .wl-nick { min-width: 0; max-width: 100%; margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.5; }
#waline .wl-card .wl-badge { margin: 0; padding: 1px 5px; border: 0; border-radius: 4px; background: var(--comment-control); color: var(--comment-secondary); font-size: 10px; line-height: 1.5; }
#waline .wl-card .wl-time { margin: 0; color: var(--lm-muted); font-size: 12px; }
#waline .wl-card > .wl-content { display: flow-root; margin: 4px 0 8px; padding: 0; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
#waline .wl-card > .wl-content p { margin: 8px 0; line-height: inherit; }
#waline .wl-card > .wl-content > .wl-reply-to { margin: 0; margin-inline-end: .5em; }
#waline .wl-card > .wl-content > div > :first-child { margin-top: 0; }
#waline .wl-card > .wl-content > div > :last-child { margin-bottom: 0; }
#waline .wl-card > .wl-quote { margin: 6px 0 0; border: 0; }
#waline .wl-card .wl-quote .wl-user { --avatar-size: 28px; margin-inline-end: 8px; }
#waline .wl-quote .wl-card-item { padding-top: 14px; }
#waline .wl-quote .wl-head { min-height: 28px; }
#waline .wl-card :is(.wl-addr, .wl-browser, .wl-os) { display: none; }
#waline .wl-card .wl-meta:empty,
#waline .wl-card .wl-meta:not(:has(:not(.wl-addr, .wl-browser, .wl-os))) { display: none; }
#waline .wl-card .wl-comment-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0; float: none; margin-inline-start: 2px; }
#waline .wl-comment-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lm-muted);
  font-size: 12px;
}
#waline .wl-comment-actions button:is(:hover, :focus-visible) { background: var(--comment-control); color: var(--lm-ink); }
#waline .wl-comment-actions button:active { background: var(--comment-pressed); }
#waline .wl-comment-actions svg { width: 16px; height: 16px; }
/* Management is a quiet tool row under the text, not a second large form. */
#waline .wl-card .wl-admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 2px; text-align: start; }
#waline .wl-admin-actions .wl-comment-status { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; margin: 0; }
#waline .wl-admin-actions .wl-btn { min-height: 30px; margin: 0; padding: 3px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--comment-secondary); font-size: 11px; line-height: 1.5; box-shadow: none; }
#waline .wl-admin-actions .wl-btn:is(:hover, :focus-visible):not(:disabled) { border-color: var(--comment-edge); background: var(--comment-control); color: var(--comment-ink); }
#waline .wl-admin-actions .wl-btn:active:not(:disabled) { background: var(--comment-pressed); }
/* Native disabled marks the current moderation status. Do not hide or enable it. */
#waline .wl-admin-actions .wl-comment-status .wl-btn:disabled { border-color: var(--comment-edge); background: var(--comment-control); color: var(--comment-ink); font-weight: 600; opacity: 1; cursor: default; }
@media (pointer: coarse) {
  #waline .wl-comment-actions button { min-width: 40px; min-height: 40px; }
  #waline .wl-admin-actions .wl-btn { min-height: 40px; }
}
#waline :is(.wl-emoji-popup, .wl-gif-popup) {
  box-sizing: border-box;
  inset-inline-start: 0;
  width: 100%;
  max-width: min(526px, 100%);
  border-radius: 12px;
  background: var(--lm-bg);
  box-shadow: 0 8px 24px var(--lm-selection-shadow);
}
/* Official noCopyright/noRss options are primary; guard against render flashes. */
#waline :is(.wl-power, .wl-rss) { display: none; }
.lm-glass-list { position: relative; }
.lm-glass-list > :is(.entry-card, .archive-entry) { position: relative; z-index: 1; }
.entry-card { padding-inline: 16px; }
/* The stretched anchor must be relative to the row, not a positioned h2. */
.entry-card > * { position: static; z-index: auto; }
.entry-card::before { inset: 0; border-radius: 12px; }
.lm-glass-list > :is(.entry-card, .archive-entry):hover { background: transparent; }
/* Opt-in native collections reuse the same single decorative list surface.
   These rules neither own page spacing nor turn headings/body into glass. */
[data-glass-list] { position: relative; isolation: isolate; }
[data-glass-list] > [data-glass-item] {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
}
/* A page may provide its own matching row/glider shape, including pill tabs. */
:where([data-glass-list] > [data-glass-item]) { border-radius: 12px; }
[data-glass-list] > [data-glass-item]:is(:hover, :focus-within, :active) {
  transform: none;
  translate: none;
  scale: none;
}
[data-glass-list] > a[data-glass-item]:is(:link, :visited, :hover, :focus-visible, :active),
[data-glass-list] > [data-glass-item] a:is(:link, :visited, :hover, :focus-visible, :active) {
  text-decoration: none;
}
[data-glass-list] > [data-glass-item]:is(:focus-visible, :has(a:focus-visible)) {
  outline: 2px solid var(--lm-muted);
  outline-offset: 2px;
}
[data-glass-list]:not(.lm-glass-list) > [data-glass-item]:is(:focus-visible, :has(a:focus-visible)),
[data-glass-list][data-glass-persistent="true"]:not(.lm-glass-list) > [data-glass-item]:is([aria-current="page"], [aria-current="location"], :has(a[aria-current="page"], a[aria-current="location"])) {
  background: var(--lm-row-hover);
}
/* A whole-book link and its volumes reuse one surface. Keep the volume shelf
   unpositioned: its gaps must still hit the stretched book link beneath it. */
[data-glass-list="group"] [data-glass-item] {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
[data-glass-list="group"] [data-glass-group-link]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 12px;
}
[data-glass-list="group"] [data-glass-group-link]:focus-visible { outline: none; }
[data-glass-list="group"] [data-glass-group-link]:focus-visible::after,
[data-glass-list="group"] [data-glass-item]:focus-visible {
  outline: 2px solid var(--lm-muted);
  outline-offset: 2px;
}
[data-glass-list="group"]:not(.lm-glass-list):not(:has([data-glass-item]:hover)):has([data-glass-group-link]:focus-visible),
[data-glass-list="group"]:not(.lm-glass-list):not(:has([data-glass-item]:hover)) [data-glass-item]:focus-visible {
  background: var(--lm-row-hover);
}
.lm-optical-host { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.lm-optical-host .glass { width: 100%; height: 100%; box-shadow: none !important; }
.lm-optical-host .glass__warp { background: transparent; border-radius: inherit; }
.lm-optical-host .bg-black { background-color: #000; }
.lm-optical-host .opacity-0 { opacity: 0; }
.lm-optical-host .opacity-20 { opacity: .2; }
.lm-optical-host .opacity-100 { opacity: 1; }
.lm-optical-host .pointer-events-none { pointer-events: none; }
.lm-optical-host .mix-blend-overlay { mix-blend-mode: overlay; }
.lm-optical-host > span {
  width: 100% !important;
  height: 100% !important;
  box-shadow: none !important;
  opacity: .12 !important;
}
.lm-navigation-glass .lm-optical-host > span { opacity: 0 !important; }
.lm-optical-spacer { display: block; width: 100%; height: 100%; }
/* The original component animates measured dimensions internally. Disable
   those transitions: only the navigation's position is allowed to slide. */
.lm-optical-host * { transition: none !important; }
:is(.lm-nav-glider, .lm-entry-glider, .lm-comments-glass):not([data-engine]) {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
/* Still clear feedback if JS is blocked or the enhancement has not loaded. */
:is(.entry-list, .archive-year > div):not(.lm-glass-list) > :is(.entry-card, .archive-entry):has(a:focus-visible) {
  background: var(--lm-row-hover);
  border-radius: 12px;
}
@media (hover: hover) and (pointer: fine) {
  #waline .wl-comment > .wl-close[data-lm-reply]:hover { background-color: var(--comment-hover); border-color: var(--comment-edge-active); box-shadow: inset 0 1px 0 var(--comment-shine), inset 0 -1px 0 var(--comment-button-lower-edge), 0 2px 8px var(--comment-reply-shadow); }
  #waline .wl-comment > .wl-close[data-lm-reply]:active { background-color: var(--comment-pressed); box-shadow: inset 0 1px 0 var(--comment-shine); }
  #waline .wl-login-info .wl-logout-btn { opacity: 0; pointer-events: none; }
  #waline .wl-login-info:is(:hover, :focus-within) .wl-logout-btn { opacity: 1; pointer-events: auto; }
  :is(.entry-list, .archive-year > div):not(.lm-glass-list) > :is(.entry-card, .archive-entry):hover {
    background: var(--lm-row-hover);
    border-radius: 12px;
  }
  [data-glass-list]:not(.lm-glass-list) > [data-glass-item]:hover { background: var(--lm-row-hover); }
  [data-glass-list="group"]:not(.lm-glass-list):hover:not(:has([data-glass-item]:hover, [data-glass-item]:focus-visible)),
  [data-glass-list="group"]:not(.lm-glass-list) [data-glass-item]:hover { background: var(--lm-row-hover); }
}
@media (max-width: 600px) {
  /* Preserve desktop link geometry; only the space between links contracts. */
  .reading-shell-header .site-nav,
  .reading-shell-header.is-reader .site-nav { gap: 2px; }
  #waline .wl-comment { padding: 12px 16px 8px; }
  #waline .wl-header { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #waline .wl-header-item { flex: auto; }
  #waline .wl-header input { height: 44px; min-height: 44px; font-size: 16px; }
  #waline .wl-info .wl-text-number { font-size: 10px; margin-inline-end: 3px; }
  #waline .wl-login-info { right: 55px; bottom: 8px; }
  #waline .wl-sort { gap: 12px; }
}
@media (hover: none), (pointer: coarse) {
  #waline .wl-action { width: 44px; }
  #waline .wl-action::before { inset: 8px; }
  #waline .wl-info .wl-text-number { position: absolute; top: -23px; right: 0; }
  #waline .wl-editor { line-height: 32px; }
  #waline .wl-comment:has(> .wl-close[data-lm-reply]) .wl-editor { line-height: 44px; }
  #waline .wl-comment > .wl-close[data-lm-reply] { height: 44px; background: transparent; box-shadow: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  #waline .wl-close[data-lm-reply]::before { padding-block: 5px; border-radius: 8px; background: linear-gradient(180deg, var(--comment-shine), transparent 65%), var(--comment-surface); box-shadow: inset 0 0 0 1px var(--comment-reply-edge), inset 0 1px 0 var(--comment-shine), 0 2px 5px var(--comment-reply-shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  #waline .wl-close[data-lm-reply]:active::before { background-color: var(--comment-pressed); }
}
@media (prefers-reduced-motion: reduce) {
  .lm-nav-glider.is-sliding { transition: none; }
  #waline :is(.wl-comment, .wl-editor, .wl-btn, .wl-action),
  #waline .wl-comment > .wl-close[data-lm-reply],
  #waline .wl-info > .wl-btn::before,
  #waline :is(.wl-btn, .wl-action)::before,
  #waline :is(.wl-input, .wl-editor)::placeholder { transition: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .lm-optical-host { display: none; }
  .site-header.reading-shell-header::before,
  .site-header.reading-shell-header.lm-optics-enabled::before {
    background: var(--lm-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .lm-nav-glider, .lm-entry-glider, .lm-comments-glass {
    background: var(--lm-hover);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  :is(.lm-nav-glider, .lm-entry-glider, .lm-comments-glass)::after { background: none; box-shadow: none; }
  .comment-shell { background: var(--lm-bg); }
  .comment-shell #waline .wl-comment,
  #waline .wl-info > .wl-btn::before { background: var(--lm-bg) !important; box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--lm-muted) !important; }
  #waline .wl-comment > .wl-close[data-lm-reply],
  #waline .wl-close[data-lm-reply]::before { background: var(--lm-bg) !important; box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--lm-muted) !important; }
  #waline .wl-action::before { background: var(--lm-hover); box-shadow: none; }
  #waline .wl-login-info .wl-avatar img { background: var(--lm-bg); border-color: var(--lm-muted); box-shadow: none; }
  #waline .wl-login-info .wl-avatar > a::after { box-shadow: none; }
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header.reading-shell-header::before { background: var(--lm-bg); }
  .lm-nav-glider, .lm-entry-glider, .lm-comments-glass { background: var(--lm-hover); }
}
@media (forced-colors: active) {
  .lm-navigation-glass, .lm-nav-glider, .lm-entry-glider, .lm-comments-glass { display: none; }
  .comment-shell { background: Canvas; }
  .comment-shell #waline .wl-comment { background: Canvas; border: 1px solid CanvasText; box-shadow: none; }
  #waline .wl-info > .wl-btn::before { background: ButtonFace !important; border-color: ButtonText !important; box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  #waline .wl-comment > .wl-close[data-lm-reply],
  #waline .wl-close[data-lm-reply]::before { background: ButtonFace !important; color: ButtonText; border-color: ButtonText !important; box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  #waline .wl-close[data-lm-reply]::after { color: ButtonText; }
  #waline .wl-action::before { background: ButtonFace; box-shadow: none; }
  #waline .wl-login-info .wl-avatar img { border-color: ButtonText; box-shadow: none; }
  #waline .wl-login-info .wl-avatar > a::after { box-shadow: none; }
  #waline .wl-admin-actions .wl-comment-status .wl-btn:disabled { border-color: GrayText; color: GrayText; }
  #waline .wl-info > .wl-btn::after, #waline .wl-header label::before { background: ButtonText; }
  #waline :is(.wl-input, .wl-editor):focus-visible { outline: 1px solid Highlight; outline-offset: 2px; }
  .site-header.reading-shell-header::before { background: Canvas; backdrop-filter: none !important; }
  .reading-shell-header .site-nav-link[aria-current] { outline: 1px solid Highlight; outline-offset: -4px; }
  :is(.entry-card, .archive-entry):has(a:focus-visible) { outline: 2px solid Highlight; }
  [data-glass-list][data-glass-persistent="true"] > [data-glass-item]:is([aria-current="page"], [aria-current="location"], :has(a[aria-current="page"], a[aria-current="location"])) {
    outline: 1px solid Highlight;
    outline-offset: -3px;
  }
  [data-glass-list] > [data-glass-item]:is(:focus-visible, :has(a:focus-visible)),
  [data-glass-list][data-glass-persistent="true"] > [data-glass-item]:is(:focus-visible, :has(a:focus-visible)) { outline: 2px solid Highlight; }
  [data-glass-list="group"] [data-glass-group-link]:focus-visible::after,
  [data-glass-list="group"] [data-glass-item]:focus-visible { outline-color: Highlight; }
}
@media print {
  .lm-navigation-glass, .lm-nav-glider, .lm-entry-glider,
  .lm-comments-glass, .comment-shell { display: none !important; }
  [data-glass-list] > [data-glass-item] { background: transparent !important; box-shadow: none !important; outline: none !important; }
  [data-glass-list="group"],
  [data-glass-list="group"] [data-glass-group-link]::after,
  [data-glass-list="group"] [data-glass-item] { background: transparent !important; box-shadow: none !important; outline: none !important; }
}
