.reading {
  width: min(844px, calc(100% - 28px));
  margin: 18px auto 38px;
  color: #173f2a;
  font:
    16px/1.55 "Times New Roman",
    Times,
    serif;
  overflow-wrap: anywhere;
}
.crumb {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #41694c;
  font-size: 14px;
  margin: 0 4px 10px;
}
.story,
.discussion,
.related {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(16px, 3.5vw, 32px);
  margin-bottom: 16px;
  min-width: 0;
}
.story-head {
  border-bottom: 1px solid #d8e9d9;
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.story-category {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: bold;
  color: #367347;
}
.story-category .ui-icon {
  width: 16px;
  height: 16px;
}
.story h1 {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.12;
  margin: 9px 0 14px;
  color: #194629;
}
.byline,
.remark-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  font-size: 14px;
}
.byline img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.byline time,
.byline span,
.remark-meta time,
.reply-to,
.quiet {
  color: #526956;
}
.story-body {
  line-height: 1.65;
}
.story-body a,
.guest a,
.inbox-item span {
  color: #226849;
  text-decoration: underline;
}
.story-body img,
.story-cover img {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
}
.story-cover {
  padding: 0;
  background: #e7f3e5;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  max-width: 100%;
  margin: 12px auto;
}
.story-cover img {
  display: block;
  margin: auto;
  max-height: 500px;
  object-fit: contain;
}
.story-body table {
  max-width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.story-body td,
.story-body th {
  border: 1px solid #a9c5af;
  padding: 5px 10px;
}
.story-body blockquote {
  border-left: 3px solid #69a37b;
  padding-left: 12px;
  margin-inline: 0;
}
.gallery,
.attached-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.gallery button {
  width: min(130px, 30%);
  padding: 0;
  background: #e7f2e6;
  border: 1px solid #b1ccaf;
  border-radius: 9px;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  display: block;
}
.engagement,
.compose-actions,
.remark-actions {
  display: flex;
  align-items: center;
  gap: 6px 9px;
  flex-wrap: wrap;
}
.engagement {
  border-top: 1px solid #cce1ce;
  margin-top: 20px;
  padding-top: 15px;
}
.engagement button,
.engagement a,
.section-heading select,
.compose-actions button,
.attached-preview button,
.file-button,
.reading [data-all],
.more-replies,
.load-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid #afcdb5;
  background: linear-gradient(#fbfffa, #e6f4e6);
  color: #285338;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.engagement [aria-pressed="true"],
.remark-actions [aria-pressed="true"] {
  color: #a03246;
  background: #fff0f1;
}
.engagement .ui-icon {
  width: 16px;
  height: 16px;
}
.reading button:hover,
.file-button:hover {
  filter: brightness(0.97);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.reading h2 {
  font-size: 23px;
  margin: 0 0 10px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading small {
  padding: 2px 7px;
  background: #e0f0df;
  border-radius: 6px;
  font-size: 14px;
  vertical-align: middle;
}
.composer {
  background: #f0f8ef;
  border: 1px solid #c4dec7;
  padding: 12px;
  border-radius: 12px;
}
.composer label {
  font-weight: bold;
}
.composer textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  resize: vertical;
  padding: 9px 11px;
  margin: 5px 0 8px;
  border: 1px solid #a3c4ab;
  border-radius: 7px;
  color: #173e2c;
  background: #fff;
}
.compose-actions .publish {
  background: linear-gradient(#418d55, #2c7141);
  color: #fff;
  margin-left: auto;
  border-color: #2c7141;
}
.compose-actions [hidden],
.reading [hidden] {
  display: none !important;
}
.file-button {
  position: relative;
  overflow: hidden;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 2px solid #2464a2;
}
.file-button[hidden] + .paste-hint,
.attached-preview:empty,
.community-status:empty {
  display: none;
}
.attached-preview > div {
  display: grid;
  gap: 4px;
  width: 90px;
  max-width: 100%;
}
.attached-preview img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  background: #e1eee3;
}
.attached-preview button {
  justify-content: center;
}
.community-status {
  color: #3d5b46;
  background: #edf5e9;
  padding: 7px 10px;
  border-radius: 8px;
}
.guest {
  background: #ebf6e9;
  padding: 10px 13px;
  border-radius: 9px;
}
.remark {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid #d7e7d8;
  padding: 14px 0;
}
.portrait {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #c1d9c7;
  background: #eaf6e9;
}
.remark-body {
  flex: 1;
  min-width: 0;
}
.remark-meta strong {
  font-size: 16px;
}
.remark-meta span {
  font-size: 12px;
  background: #e2f0df;
  padding: 1px 6px;
  border-radius: 8px;
}
.remark-meta .official {
  background: #d5edf9;
  color: #195473;
}
.remark-text {
  white-space: pre-wrap;
  margin: 3px 0 6px;
}
.remark-actions button {
  border: 0;
  background: transparent;
  color: #44734e;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
}
.replies:not(:empty) {
  margin-left: clamp(12px, 4vw, 55px);
  padding-left: 12px;
  border-left: 2px solid #c8e3cc;
}
.more-replies {
  margin: 0 0 10px 50px;
}
.related a,
.inbox-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #dae8d9;
}
.related time {
  font-size: 14px;
  color: #56725d;
}
.bell {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 15px;
  color: #315c3c;
}
.bell b {
  font-size: 12px;
}
.topnav:has(.bell) {
  gap: 6px;
}
.topnav:has(.bell) .menus {
  margin-left: auto;
}
.inbox-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cbdccc;
  padding: 12px;
}
.inbox-item small {
  display: block;
}
.inbox-item.unread {
  background: #e7f4e8;
}
.inbox {
  margin: 12px 0;
}
@media (max-width: 650px) {
  .reading {
    width: calc(100% - 16px);
    margin-top: 10px;
  }
  .story,
  .discussion,
  .related {
    padding: 15px 12px;
    border-radius: 14px;
  }
  .portrait {
    width: 34px;
    height: 34px;
  }
  .engagement button,
  .engagement a {
    font-size: 14px;
  }
  .byline {
    font-size: 12px;
  }
  .topnav:has(.bell) .mini-logo {
    width: clamp(48px, 18vw, 76px);
  }
  .topnav:has(.bell) .mini-logo img {
    max-width: 100%;
  }
  .bell {
    margin-left: 2px;
  }
  .gallery img {
    height: 65px;
  }
}
