body:has(.lr-native) {
  min-width: 0 !important;
  min-height: 100vh;
  background: radial-gradient(ellipse at 3% 3%, #74d7f5a1, transparent 46%),
    linear-gradient(137deg, #38bdf0 0%, #107cd6 47%, #1c48b9 100%) fixed !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}
/* This stylesheet is loaded in the document head of the discussion layouts only. */
#hd, #toptb, #dz_btm_layer { display: none !important; }
#wp:has(.lr-native) {
  box-sizing: border-box;
  width: min(100% - 32px, 920px) !important;
  min-width: 0;
  margin-inline: auto;
}
.lr-native {
  --lr-ink: #122e54;
  --lr-muted: #405f80;
  --lr-blue: #164fa5;
  --lr-rule: #9ebcdb70;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto 26px;
  color: var(--lr-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
.lr-native :is(a, summary, input, textarea, button):focus-visible {
  outline: 2px solid #2471c9;
  outline-offset: 3px;
}
.lr-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lr-native-toolbar {
  position: relative;
  z-index: 96;
  order: -2;
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 7px 12px;
  border: 1px solid #e6f7ff9c;
  border-radius: 16px;
  color: #fff;
  background: #d7f5ff45;
}
.lr-native-toolbar > nav { display: flex; align-items: center; gap: 14px; }
.lr-native-toolbar details { position: relative; }
.lr-native-toolbar summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.lr-native-toolbar summary::-webkit-details-marker { display: none; }
.lr-native-toolbar summary img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; }
.lr-native-toolbar .avatar-placeholder {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #164886;
}
.lr-native-toolbar :is(.language, .archive) summary { white-space: nowrap; }
.lr-native-toolbar .menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 145px;
  max-height: 60vh;
  overflow: auto;
  padding: 9px;
  border-radius: 12px;
  background: #f2f8ff;
  color: #163957;
  box-shadow: 0 7px 24px #10346144;
}
.lr-native-toolbar .menu :is(a,b) { display: block; padding: 5px; }
.lr-native-toolbar .archive { position: static; }
.lr-native-toolbar .archive-panel {
  box-sizing: border-box;
  width: min(500px, 80vw);
  top: calc(100% + 7px);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}
.lr-native-toolbar .archive[open] .archive-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
}
.lr-native-toolbar .works-group h2 { padding: 5px; font-size: 12px; }
.lr-native-toolbar .works-group a span { margin-left: 6px; }
.lr-native-toolbar .language a[aria-current] { color: #164c96; background: #deecfb; border-radius: 6px; }
.lr-native-brand {
  position: relative;
  isolation: isolate;
  order: -1;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: 19px 0 12px;
}
.lr-native-brand a { width: min(430px, 84%); }
.lr-native-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 15px #083b7f57);
}
.lr-native-brand::before,
.lr-native-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 46%;
  left: 10%;
  width: min(22vw, 170px);
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, #e8faffb3, #e8faff4a 43%, transparent 68%);
  filter: blur(2px);
  animation: lr-cloud-drift 18s ease-in-out infinite alternate;
}
.lr-native-brand::after { top: 25%; right: 8%; left: auto; animation-delay: -9s; }
@keyframes lr-cloud-drift { to { transform: translate(28px, -5px); } }
.lr-native-brand p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 7px 0 0;
  color: white;
  font: italic bold 20px/1.3 Georgia, serif;
  text-shadow: 0 2px 7px #093b85b7;
}
.lr-native-brand p::before,
.lr-native-brand p::after {
  content: "";
  width: min(10vw, 56px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #ecfbff);
}
.lr-native-brand p::after { transform: scaleX(-1); }
.lr-native-brand-compact { padding: 13px 0 2px; }
.lr-native-brand-compact a { width: min(218px, 61%); }
.lr-native-brand-compact::before, .lr-native-brand-compact::after { display: none; }
.lr-native-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px clamp(6px, 4vw, 36px);
  margin: 5px 0 18px;
  padding: 5px 12px;
  border: 1px solid #ecfbffde;
  border-radius: 15px 8px;
  background: linear-gradient(#2a9bf9, #1251cc 52%, #1a46ae 53%, #216fd4);
  box-shadow: inset 0 0 0 1px #b9edff55, 0 6px 17px #10409b59;
}
.lr-native-nav a { padding: 6px 8px; color: #fff; font-weight: 700; border-radius: 7px; }
.lr-native-nav a:hover { background: #ffffff32; text-decoration: none; }
.lr-native-reading .lr-native-nav { margin-top: 13px; }

.lr-native.lr-board-navigation { margin-bottom: 0; }
.lr-board-search { align-self: flex-end; margin: -5px 0 8px; }
body:has(.lr-board-navigation) .boardnav > #ct { width: 100%; min-width: 0; }
body:has(.lr-board-navigation) #pt { border-radius: 9px; background: #e6f2ff; }
body:has(.lr-board-navigation) .boardnav .bm { border-color: #dce8f7; border-radius: 14px; background: #f7fbff; }
body:has(.lr-board-navigation) .boardnav .bm_h { border-color: #dce8f7; border-radius: 13px 13px 0 0; background: #e6f2ff; }

.lr-discussion-panel {
  padding: 0 clamp(15px, 4vw, 32px) 8px;
  border: 1px solid #ebf8ffcd;
  border-radius: 20px;
  background: linear-gradient(125deg, #e8f7fff3, #dceaffed);
  box-shadow: 0 12px 30px #143a8c37;
}
.lr-discussion-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 19px 0 12px;
}
.lr-discussion-heading h1 {
  margin: 0;
  color: var(--lr-ink);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 750;
  line-height: 1.25;
}
.lr-discussion-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.lr-primary, .lr-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  box-sizing: border-box;
  padding: 6px 11px;
  border: 1px solid #98badb;
  border-radius: 8px;
  color: var(--lr-blue);
  background: #f6fbffe5;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}
.lr-primary { background: #195bb9; border-color: #195bb9; color: white; }
.lr-primary:hover { color: white; background: #134b9c; text-decoration: none; }
.lr-search:hover { color: var(--lr-blue); background: #fff; text-decoration: none; }
.lr-search i {
  position: relative;
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.lr-search i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  width: 5px;
  height: 1.5px;
  transform: rotate(45deg);
  background: currentColor;
}
.lr-compose { position: relative; }
.lr-compose summary { display: flex; list-style: none; cursor: pointer; }
.lr-compose summary::-webkit-details-marker { display: none; }
.lr-compose > ul {
  position: absolute;
  z-index: 2;
  top: calc(100% + 5px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 5px;
  border: 1px solid #b5cde8;
  border-radius: 10px;
  background: #f8fcff;
  box-shadow: 0 7px 20px #224f8133;
}
.lr-compose li { list-style: none; }
.lr-compose li a { display: block; padding: 7px 9px; color: var(--lr-ink); border-radius: 6px; }
.lr-compose li a:hover { background: #e3eefa; text-decoration: none; }
.lr-board-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px clamp(8px, 3vw, 22px);
  border-bottom: 1px solid var(--lr-rule);
}
.lr-board-filters a {
  padding: 9px 2px 8px;
  border-bottom: 2px solid transparent;
  color: var(--lr-muted);
  font-weight: 600;
  line-height: 1.35;
}
.lr-board-filters a:hover,
.lr-board-filters a[aria-current="page"] {
  color: #124a96;
  border-color: #215db7;
  text-decoration: none;
}
.lr-discussion-list { padding: 0; margin: 0; }
.lr-discussion-list li { list-style: none; }
.lr-discussion-columns,
.lr-discussion-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(52px, .16fr) minmax(130px, .32fr);
  align-items: center;
  gap: 12px;
  padding-inline: 3px;
}
.lr-discussion-columns {
  padding-block: 10px 7px;
  color: var(--lr-muted);
  font-size: 12px;
  font-weight: 600;
}
.lr-discussion-columns > :nth-child(2),
.lr-topic-replies { text-align: center; }
.lr-discussion-columns > :last-child,
.lr-topic-time { text-align: right; }
.lr-discussion-row {
  padding-block: 10px;
  border-top: 1px solid var(--lr-rule);
}
.lr-discussion-row:hover { background: #fff5; }
.lr-topic { min-width: 0; overflow-wrap: anywhere; }
.lr-topic-link {
  display: block;
  width: fit-content;
  color: var(--lr-ink);
  font-size: 15px;
  font-weight: 640;
  line-height: 1.4;
}
.lr-topic-link:hover { color: #134fac; text-decoration: underline; text-underline-offset: 3px; }
.lr-topic-board {
  display: inline-block;
  margin-top: 3px;
  color: var(--lr-muted);
  font-size: 12px;
}
.lr-topic-replies, .lr-topic-time {
  color: var(--lr-muted);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lr-discussion-empty { padding: 22px 3px; color: var(--lr-muted); }
.lr-browse-board { padding: 11px 3px 7px; border-top: 1px solid var(--lr-rule); }
.lr-browse-board a { color: var(--lr-blue); font-weight: 650; }

.lr-reader { width: min(100%, 810px); align-self: center; min-width: 0; }
.lr-breadcrumb { display: flex; gap: 8px; align-items: baseline; margin: 0 0 11px; color: #fff; }
.lr-breadcrumb a { color: #fff; }
.lr-thread-heading,
.lr-post,
.lr-reply-panel {
  box-sizing: border-box;
  border: 1px solid #fff;
  border-radius: 16px;
  background: #f7fbff;
  box-shadow: 0 9px 24px #163e7c2c;
}
.lr-thread-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(16px, 4vw, 32px) 15px;
  background: linear-gradient(110deg, #f6fcff, #ecf5ff);
}
.lr-thread-heading:has(+ .lr-opening-post) { border-radius: 16px 16px 0 0; border-bottom: 0; }
.lr-thread-heading h1 {
  margin: 0;
  color: var(--lr-ink);
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.27;
  overflow-wrap: anywhere;
}
.lr-thread-heading .lr-primary { flex-shrink: 0; }
.lr-post {
  margin-top: 12px;
  padding: 6px clamp(12px, 4vw, 30px) 12px;
  overflow-wrap: anywhere;
}
.lr-post[hidden] { display: none; }
.lr-thread-heading + .lr-opening-post { margin-top: 0; border-radius: 0 0 16px 16px; border-top: 0; }
.lr-post .plhin {
  width: 100%;
  margin: 0;
  table-layout: fixed;
}
.lr-post .plc { padding-inline: 0 !important; }
.lr-post .pi {
  min-height: 40px;
  height: auto !important;
  margin-bottom: 8px;
  padding: 6px 0 9px;
  border-bottom: 1px solid var(--lr-rule);
  color: var(--lr-muted);
  font-size: 12px;
  line-height: 1.5;
}
.lr-post .authi .avt img {
  width: 32px;
  height: 32px;
  border: 1px solid #b8cde4;
  border-radius: 50%;
  padding: 0;
  object-fit: cover;
}
.lr-post .authi > a.xi2 { color: #1e528f; font-weight: 600; }
.lr-post .t_f {
  color: #203c60;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: normal;
}
.lr-post :is(.t_f img, .aimg_tip img) { max-width: 100% !important; height: auto; }
.lr-post :is(.t_f iframe, .t_f video, .t_f embed) { max-width: 100%; }
.lr-post .t_f a { text-underline-offset: 3px; }
.lr-pagination { margin-top: 14px; }
.lr-reader #modmenu { margin: 12px 0 0; color: #e9f5ff; font-size: 12px; }
.lr-reader #modmenu a { color: inherit; }
.lr-reply-panel { margin-top: 16px; padding: 15px clamp(12px, 4vw, 30px); }
.lr-reply-panel h2 { color: var(--lr-ink); margin: 0 0 8px; font-size: 18px; }
.lr-reply-panel #f_pst { border: 0; margin: 0; background: transparent; scroll-margin-top: 18px; }
.lr-reply-panel #f_pst .pls { width: 62px; border: 0; background: transparent; }
.lr-reply-panel #f_pst .pls .avatar { margin: 0; }
.lr-reply-panel #f_pst .pls img { max-width: 44px; border-radius: 50%; padding: 0; }
.lr-reply-panel #f_pst .plc { padding: 0; }
.lr-reply-panel :is(textarea, iframe) { max-width: 100%; box-sizing: border-box; }
.lr-reply-panel textarea { min-height: 96px; }

body:has(.lr-native) #ft {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  box-sizing: border-box;
  width: min(100% - 32px, 920px) !important;
  min-width: 0;
  margin: 0 auto 18px;
  padding: 12px 4px 0;
  border-top: 1px solid #c5e9ff7a;
  color: #e9f5ff;
  text-align: left;
}
body:has(.lr-native) #flk { order: 2; }
body:has(.lr-native) #ft :is(#flk, #frt) { float: none; }
body:has(.lr-native) #ft :is(a, .pipe) { color: inherit; }
body:has(.lr-native) #ft p { margin: 0; font-size: 12px; line-height: 1.5; }
body:has(.lr-native) #flk p.xs0 { display: none; }
body:has(.lr-native) #ft::after { display: none; }

@media (max-width: 600px) {
  #wp:has(.lr-native), body:has(.lr-native) #ft { width: calc(100% - 22px) !important; }
  .lr-native-toolbar { gap: 8px; padding: 5px 7px; font-size: 12px; }
  .lr-native-toolbar > nav { gap: 9px; }
  .lr-native-brand { padding-block: 19px 10px; }
  .lr-native-brand-compact { padding-block: 11px 2px; }
  .lr-native-brand-compact a { width: min(182px, 61%); }
  .lr-native-nav { gap: 3px 7px; padding-inline: 4px; margin-bottom: 12px; }
  .lr-native-nav a { padding-inline: 4px; }
  .lr-discussion-heading { padding-top: 14px; }
  .lr-discussion-heading h1 { font-size: 21px; }
  .lr-discussion-actions :is(a, summary) { font-size: 13px; }
  .lr-discussion-columns { display: none; }
  .lr-discussion-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .lr-discussion-columns + .lr-discussion-row { border-top: 0; }
  .lr-topic { display: contents; }
  .lr-topic-link { grid-column: 1/-1; }
  .lr-topic-board { grid-column: 1; margin: 0; }
  .lr-topic-replies { grid-column: 2; grid-row: 2; text-align: right; }
  .lr-topic-replies .lr-visually-hidden {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
  }
  .lr-topic-time { grid-column: 1/-1; text-align: left; font-size: 12px; }
  .lr-thread-heading { flex-wrap: wrap; }
  .lr-post .pi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 10px;
  }
  .lr-post .pi > .pti { order: -1; flex-basis: 100%; min-width: 0; }
  .lr-post .pi .authi { display: flow-root; }
  .lr-post .pi .authi > em[id^="authorposton"] { white-space: nowrap; }
  .lr-post .pi > strong, .lr-post .pi #fj { float: none; }
  .lr-post .pi #fj { display: inline-flex; align-items: center; gap: 4px; }
  .lr-reply-panel #f_pst .pls { width: 0; padding: 0; }
  .lr-reply-panel #f_pst .pls .avatar { display: none; }
  .lr-reply-panel .cl:has(> #fastposteditor) { display: flex; flex-direction: column; }
  .lr-reply-panel #fastposteditor { margin-right: 0; }
  .lr-reply-panel #fastsmiliesdiv { order: 1; align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .lr-native-brand::before, .lr-native-brand::after { animation: none; }
}
