:is(.developer-log-page, .account-page) > .page {
  display: flex;
  flex-direction: column;
  min-block-size: 100dvh;
  padding-block-end: 0;
}
.developer-log { flex: 1; width: min(100%, 76rem); margin-inline: auto; padding-block-end: 1rem; }
.developer-log-heading {
  display: grid;
  align-content: center;
  gap: .6rem;
  padding: clamp(1.2rem, 4vw, 3.35rem);
  overflow: clip;
  margin-block-end: 1rem;
  background: #23182f;
}
.developer-log-heading::after {
  content: '';
  z-index: -1;
  background: linear-gradient(100deg, #100b19f5, #100b19bb 60%, #100b1973);
}
.developer-log-heading h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.developer-log-heading p { color: #efdeeb; }
.developer-feed { display: grid; gap: 1rem; }
.developer-post, .developer-composer, .developer-roles {
  background-color: #20172aed;
  border-radius: clamp(.85rem, 3vw, 1.35rem);
  padding: clamp(.8rem, 3vw, 1.65rem);
}
.developer-post {
  display: grid;
  gap: .85rem;
  min-width: 0;
  scroll-margin-top: 5rem;
}
.developer-post h2 { font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; }
.developer-post-content { display: flow-root; }
.developer-post-image {
  display: block;
  float: right;
  float: inline-end;
  width: 47%;
  margin-block: .15rem .7rem;
  margin-inline-start: clamp(.65rem, 2.4vw, 1.45rem);
  aspect-ratio: 16 / 9;
  max-height: 36rem;
  object-fit: contain;
  background: #160f21;
  border-radius: .8rem;
}
.developer-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: #eee0ef; }
.developer-post-content .developer-body {
  text-align: justify;
  text-indent: 1.2em;
}
.developer-post-content .developer-body + .developer-body { margin-block-start: .65rem; }
.developer-meta, .developer-actions, .developer-roles-heading, .developer-member,
.developer-post-footer, .developer-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem .75rem;
}
.developer-meta { color: var(--muted); font-size: .83rem; }
.developer-meta > span:first-child { color: #ffd9ed; font-weight: 650; }
.developer-post-footer { justify-content: space-between; margin-block-start: .3rem; }
.developer-publication-time { flex: none; color: var(--muted); font-size: .83rem; }
.developer-post-meta { margin-inline-start: auto; justify-content: flex-end; min-inline-size: 0; }
.developer-post-author { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.developer-post-author bdi { color: #ffd9ed; font-weight: 650; }
.developer-post-footer > .developer-status { flex-basis: 100%; }
.developer-button, .developer-metric, .developer-comments-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 0;
  min-height: 2.45rem;
  padding: .35rem .68rem;
  color: #fff0f9;
  font-size: .87rem;
  text-align: start;
}
.developer-button:is(:hover, [aria-pressed='true']) { border-color: #ffbfdf9f; background-color: #50344d; }
.developer-button[aria-pressed='true'] { color: #ffc1e0; }
.developer-metric { color: var(--muted); }
.developer-actions svg, .developer-comments-summary svg, .developer-moderation-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.developer-discussion { border-block-start: 1px solid var(--line); padding-block-start: .45rem; }
.developer-discussion summary, .developer-composer summary { cursor: pointer; }
.developer-comments-summary { justify-content: flex-start; padding-inline-start: 0; }
.developer-comments-summary::after { content: ''; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin-inline-start: .32rem; }
.developer-discussion[open] .developer-comments-summary::after { transform: rotate(225deg); }
.developer-comments-summary::-webkit-details-marker { display: none; }
.developer-composer { margin-block-end: 1rem; scroll-margin-top: 5rem; }
.developer-composer summary, .developer-roles :is(h2,h3) { font-weight: 750; }
.developer-composer form, .developer-comment-form, .developer-roles {
  display: grid;
  gap: .7rem;
  justify-items: start;
}
.developer-composer form { margin-block-start: .9rem; }
.developer-log label, .developer-roles label { display: grid; gap: .3rem; width: 100%; font-size: .9rem; }
.developer-log :is(input, textarea), .developer-roles input {
  width: 100%;
  min-width: 0;
  padding: .6rem;
  background: #160f21;
  border: 1px solid var(--line);
  border-radius: .62rem;
  font-size: 1rem;
}
.developer-log small { color: var(--muted); }
.developer-log textarea { resize: vertical; min-height: 4.55rem; }
.developer-log .hero-link { margin-block-start: .1rem; }
.developer-log:not([data-authenticated]) .developer-comment-form,
.developer-log[data-authenticated] .developer-guest-action,
.developer-status:empty { display: none; }
.developer-status { color: var(--muted); font-size: .87rem; }
.developer-status[data-error='true'] { color: #ffb5c3; }
#developer-feed-status, #developer-more-posts { margin-block: .8rem; }
.developer-comment-list, .developer-members { display: grid; gap: .45rem; margin: .4rem 0; padding: 0; list-style: none; }
.developer-comment {
  display: grid;
  gap: .3rem;
  min-width: 0;
  padding: .65rem .75rem;
  background: #120b1b50;
  border: 1px solid var(--line);
  border-radius: .68rem;
}
.developer-discussion > .developer-button { margin-block: .35rem; }
.developer-comment-form { margin-block-start: .7rem; }
.developer-role {
  display: inline-block;
  padding: .24rem .55rem;
  border: 1px solid #ffc4e746;
  border-radius: .5rem;
  color: #ffd3eb;
  font-size: .83rem;
}
#developer-moderator-admin { width: 100%; }
#developer-moderator-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .5rem;
  max-width: 36rem;
  margin-block: .65rem;
}
.developer-member { justify-content: space-between; border-block-start: 1px solid var(--line); padding-block: .55rem; }
.developer-member-identity { display: grid; gap: .2rem; min-width: 0; overflow-wrap: anywhere; }
.developer-member small { color: var(--muted); }
@media (max-width: 480px) {
  .developer-post { gap: .65rem; }
  .developer-post-image { width: 42%; margin-block-end: .4rem; }
  .developer-post-footer, .developer-post-meta, .developer-actions { gap: .3rem .45rem; }
  .developer-post-meta .developer-actions { flex: none; }
  .developer-post-meta :is(.developer-button, .developer-metric) {
    gap: .28rem;
    padding-inline: .35rem;
  }
}

.developer-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(.6rem, 2vw, 1.2rem);
}
.developer-stream { min-width: 0; }
.developer-branches {
  position: sticky;
  inset-block-start: 5rem;
  max-block-size: calc(100dvh - 6rem);
  overflow: auto;
  display: grid;
  gap: .65rem;
  padding: .8rem;
  background: #21172df2;
}
.developer-branches h2 { font-size: 1rem; }
.developer-branch-tree, .developer-branch-posts {
  display: grid;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.developer-branch-item {
  --branch-color: #f9a3ca;
  position: relative;
  min-width: 0;
}
.developer-branch-item[data-branch-tone='0'] { --branch-color: #ffd09d; }
.developer-branch-item[data-branch-tone='2'] { --branch-color: #c6a8fc; }
.developer-branch-item[data-branch-tone='3'] { --branch-color: #a7e4cd; }
.developer-branch-all, .developer-branch-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  padding: .42rem .52rem;
  border-radius: .5rem;
  min-width: 0;
  color: #fff1fa;
  font-size: .87rem;
  overflow-wrap: anywhere;
}
.developer-branch-all { margin-block-end: .35rem; }
.developer-branch-link:before, .developer-branch-posts li::before {
  content: '';
  flex: none;
  width: .45rem;
  height: .45rem;
  border: 1px solid var(--branch-color);
  border-radius: 50%;
}
.developer-branch-link > span:first-of-type { flex: 1; }
.developer-branch-count { flex: none; color: var(--muted); font-size: .76rem; }
.developer-branch-tree .developer-branch-tree, .developer-branch-posts {
  margin-inline-start: .72rem;
  padding-inline-start: .58rem;
  border-inline-start: 1px solid #e0aadd4a;
}
.developer-branch-posts li { display: flex; align-items: flex-start; gap: .3rem; }
.developer-branch-posts li::before { width: .28rem; height: .28rem; margin-block-start: .48rem; background: var(--branch-color); }
.developer-branch-posts a { font-size: .82rem; color: #dfc8df; overflow-wrap: anywhere; }
.developer-branches a:is(:hover, [aria-current='page']) { color: #fff4fd; background: #f2afe925; }
.developer-branch-editor { border-block-start: 1px solid var(--line); padding-block-start: .6rem; }
.developer-branch-editor summary { cursor: pointer; color: #ffd2eb; font-size: .88rem; }
.developer-branch-editor form { display: grid; gap: .55rem; margin-block-start: .6rem; }
.developer-log select {
  min-width: 0;
  width: 100%;
  padding: .55rem;
  background: #160f21;
  border: 1px solid var(--line);
  border-radius: .62rem;
  font-size: 1rem;
}
.developer-post-branch {
  justify-self: start;
  color: #ffbddc;
  font-size: .8rem;
  line-height: 1.2;
}
.developer-post-branch:hover { text-decoration: underline; }
@media (max-width: 780px) {
  .developer-layout { grid-template-columns: minmax(0, 1fr); }
  .developer-branches { position: static; max-block-size: none; }
  #developer-branch-nav { max-block-size: 15rem; overflow: auto; }
}

.developer-post-moderation, .developer-post-credit, .developer-composer-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.developer-post-credit { min-inline-size: 0; }
.developer-post-moderation { flex: none; }
.developer-composer-actions { flex-wrap: wrap; gap: .35rem .55rem; }
.developer-post-meta .developer-moderation-icon {
  inline-size: 2.45rem;
  min-inline-size: 2.45rem;
  block-size: 2.45rem;
  padding: 0;
}
.developer-log:not([data-staff]) .developer-post-moderation { display: none; }
.developer-delete-post { color: #ffb6c6; }
.developer-delete-post:hover { background: #892e4a55; }

.account-layout { flex: 1; }
.account-layout .account-main { min-inline-size: 0; margin-block-start: 0; }
.account-layout .account-main :is(#account-title, #messages, #profile-sign-in-methods, #profile-referrals, #developer-roles, #profile-characters) {
  scroll-margin-block-start: 5rem;
}
.account-navigation a[aria-current='location'] { color: #fff4fd; background: #f2afe925; }
@media (max-width: 780px) {
  .account-navigation .developer-branch-tree { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
}
