.reader-board, .admin-page, .member-page, .favorite-page, .offer-page, .front-page {
  --ink: #172039;
  --muted-ink: #526077;
  --line-soft: #d7dfe9;
  --navy: #171a35;
  --accent: #e4b02e;
}
.reader-board {
  --board-width: 808px;
  --header-size: 60px;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
.reader-board, .admin-page, .member-page, .favorite-page, .offer-page, .front-page {
  isolation: isolate;
  background: linear-gradient(to bottom, #e6e6e6 0 200px, #e7e7e7 300px, #ebebeb 400px,
      #f1f1f1 500px, #f7f7f7 600px, #fcfcfc 700px, white 800px);
}
/* The original 20px tile contains four diagonals and fades into white over 800px. */
.reader-board::before, .admin-page::before, .member-page::before, .favorite-page::before, .offer-page::before, .front-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, rgb(0 0 0 / 8%) 0,
      transparent 1.4142px 2.1213px, rgb(0 0 0 / 8%) 3.5355px);
  mask-image: linear-gradient(to bottom, black 0, rgb(0 0 0 / 78%) 200px,
      rgb(0 0 0 / 61%) 300px, rgb(0 0 0 / 39%) 400px, rgb(0 0 0 / 22%) 500px,
      rgb(0 0 0 / 11%) 600px, transparent 800px);
}
/* The reading pane ends above the compose button, including at the last comment. */
.reader-board .reading-pane { min-height: 0; overflow: auto; overscroll-behavior-y: contain; }
.reader-board .site-header { position: relative; background: #fffefb; border-bottom: 2px solid var(--navy); }
.reader-board .header-inner { max-width: var(--board-width); padding: 0 20px; gap: 12px; }
.reader-board .draft-brand img { display: block; width: 186px; height: auto; }
.reader-board .draft-search { color: var(--ink); font-size: 14px; }
.reader-board .site-header .favorite-header { color: #946900; border-left: 1px solid #dce1e8; border-radius: 0; }
.reader-board .favorite-header:hover, .reader-board .draft-search:hover { background: #f2f4f7; }
.reader-board .page-shell { max-width: var(--board-width); padding: 16px 20px 30px; }
.reader-board .school-identity {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px;
  padding: 3px 20px 14px; border: 1px solid var(--line-soft); border-radius: 12px;
  background: #fafbfd;
}
/* Outfield arc and infield diamond, drawn under the school mark and title. */
.reader-board .school-identity::before, .reader-board .school-identity::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  right: -40px; bottom: 12px; width: 140px; height: 140px;
  border: 1px solid #dce2ec; transform: rotate(-45deg); transform-origin: bottom left;
  border-radius: 0 100% 0 0;
}
.reader-board .school-identity::after { width: 50px; height: 50px; right: 50px; border-radius: 1px; }
.reader-board .district-line { width: fit-content; grid-area: 1 / 1; align-self: center; }
.reader-board #school-region {
  display: inline-flex; align-items: center; padding: 2px 9px;
  border-left: 3px solid var(--accent); background: var(--navy); color: #fff;
  font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: .04em;
}
.reader-board #school-region a { color: inherit; text-decoration: none; }
.reader-board #school-region a::after { content: " ›"; }
.reader-board .identity-links {
  grid-area: 1 / 2; justify-self: end; display: flex; align-items: center; column-gap: 14px; flex-wrap: wrap;
}
.reader-board .identity-row { grid-area: 2 / 1 / 3 / -1; gap: 14px; }
.reader-board .identity-mark { width: 64px; height: 64px; flex-basis: 64px; padding: 3px; border: 0; border-radius: 50%; }
.reader-board .school-title-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; }
.reader-board #school-name { font-size: inherit; }
.reader-board #school-title { margin: 0; font-size: 36px; line-height: 1.25; overflow-wrap: anywhere; }
.reader-board .identity-reading { font-size: 12px; color: var(--muted-ink); }
.reader-board .favorite-school-actions { margin: 0; gap: 0 8px; }
.reader-board #favorite-toggle, .reader-board .school-info-open {
  border: 0; border-radius: 0; padding: 0; background: transparent;
  color: #34445f; font-size: 13px; font-weight: 650; min-height: 44px;
}
.reader-board #favorite-toggle::before { content: "☆"; font-size: 18px; margin-right: 4px; color: #956e0a; }
.reader-board #favorite-toggle[data-selected="true"]::before { content: "★"; }
.reader-board .school-info-open span { font-size: 13px; }

.reader-board .draft-comments { margin: 7px 0 0; }
.reader-board .draft-list-heading { margin: 0; padding: 1px 4px; }
.reader-board .draft-list-title { gap: 8px; }
.reader-board .draft-list-title::before, .admin-page h2::before { content: ""; width: 4px; height: 17px; background: var(--accent); }
.reader-board #view-title { font-size: 19px; }
.reader-board .draft-count { padding: 1px 6px; color: #40516c; background: #e5eaf1; font-size: 12px; }
.reader-board .draft-archive > summary { color: var(--muted-ink); }
.reader-board .comment-card {
  padding: 9px 16px 7px; margin: 0 0 8px;
  border: 1px solid var(--line-soft); border-radius: 12px; background: white;
  scroll-margin: 12px 0;
}
.reader-board .comment-card.is-target { background: #fffdf5; outline: 2px solid #c79829; outline-offset: -2px; }
.reader-board .comment-meta {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;
  justify-content: flex-start; gap: 0 9px; margin: 0 0 3px; min-height: 38px; text-align: left;
}
.reader-board .comment-byline { flex: 1; min-width: 0; }
.reader-board .comment-author { color: #293950; font-size: 13px; font-weight: 750; }
.reader-board .comment-date { display: block; margin-top: 1px; color: var(--muted-ink); font-size: 12px; line-height: 1.4; }
.reader-board .comment-id-link { font-size: 12px; color: var(--muted-ink); padding: 0; }
.reader-board .comment-meta button { color: var(--muted-ink); background: transparent; border: 0; margin: 0; font-size: 12px; min-height: 44px; min-width: 44px; padding: 0 3px; }
.reader-board .comment-body { color: #202b40; font-size: 16px; line-height: 1.72; margin: 0 0 8px; }
.reader-board .comment-footer {
  margin: 0; padding: 4px 0 0; border-top: 1px solid #e9edf3; gap: 4px 8px;
}
.reader-board .comment-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.reader-board .comment-actions { grid-column: 2; grid-row: 1; }
.reader-board .comment-footer .comment-reactions { grid-column: 1; grid-row: 1; margin: 0; gap: 4px; }
.reader-board .comment-footer .reaction-button:has(.reaction-legacy:not([hidden])) {
  display: inline-grid; grid-template-columns: auto auto auto; align-content: center;
  gap: 1px 4px; line-height: 1.2;
}
.reader-board .reaction-button .reaction-legacy { grid-column: 1 / -1; font-size: 11px; font-weight: normal; }
.reader-board .comment-author .provenance-label { margin-inline-start: 4px; }
.reader-board .comment-reactions .reaction-button {
  min-width: 44px; min-height: 44px; padding: 0 7px; gap: 4px;
  border: 1px solid #d5ddea; border-radius: 7px;
  background: #fff; color: #344763; font-size: 12px; font-weight: 650;
}
.reader-board .comment-reactions .reaction-count { min-width: 1ch; }
.reader-board .comment-reactions .reaction-button[aria-pressed="true"] {
  background: #e7effa; color: #172b4a; border-color: #718ab0; box-shadow: inset 0 0 0 1px #718ab0;
}
.reader-board .comment-actions { margin-left: auto; }
.reader-board .comment-actions button:first-child {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px;
  color: #203755; border: 1px solid #d1ddec; border-radius: 7px; background: #edf2f9; font-weight: 750;
}
.reader-board .comment-actions button:first-child::before { content: "↩"; font-size: 16px; }
.reader-board .comment-actions button:hover, .reader-board .reaction-button:hover { background: #e5edf8; }
.reader-board .comment-parent-link { min-height: 44px; background: #edf2f9; }
.reader-board .list-end, .reader-board .older-navigation { padding: 10px 4px; margin: 0; }
.reader-board #school-info { scroll-margin: 12px; }
.reader-board .draft-compose {
  position: relative; padding: 6px 12px max(6px, env(safe-area-inset-bottom));
  background: #f8f9fc; border-top: 1px solid var(--line-soft);
}
.reader-board .draft-compose .button, .reader-board #post-form .post-actions .button-primary, .admin-page .reserve-button, .member-page .member-card .primary {
  border-color: var(--navy); background: var(--navy); color: white; border-radius: 8px;
}
.reader-board .draft-compose .button {
  width: min(100%, 400px); min-height: 46px;
  background: #ff4500; border-color: #ff4500; color: #fff;
}
.reader-board .draft-compose .button:hover:not(:disabled) { background: #ff5d24; }
.reader-board .draft-compose .write-mark { width: 13px; background: currentColor; }
@media (min-width: 681px) {
  .reader-board .site-header .favorite-header { width: auto; flex-basis: auto; gap: 5px; padding-left: 10px; display: inline-flex; align-items: center; }
  .reader-board .favorite-header::after { content: "お気に入り"; color: var(--ink); font-size: 13px; font-weight: 650; }
}
@media (max-width: 680px) {
  .reader-board { --header-size: 52px; }
  .reader-board .header-inner { padding-inline: 14px; gap: 5px; }
  .reader-board .draft-brand img { width: 155px; }
  .reader-board .page-shell { padding: 7px 9px 22px; }
  .reader-board .school-identity { padding: 0 12px 10px; }
  .reader-board .identity-row { gap: 11px; }
  .reader-board .identity-mark { width: 49px; height: 49px; flex-basis: 49px; }
  .reader-board #school-title { font-size: clamp(24px, 6.2vw, 30px); }
  .reader-board .draft-comments { margin-top: 2px; }
  .reader-board #view-title { font-size: 17px; }
  .reader-board .comment-card { padding: 5px 12px 6px; }
  .reader-board .comment-meta { gap: 0 6px; }
}
@media (max-width: 350px) {
  .reader-board .identity-links { column-gap: 5px; }
  .reader-board .comment-reactions .reaction-button { padding-inline: 4px; }
}


/* School and roster are separate destinations, with the whole label clickable. */
.reader-board #school-region { text-decoration: none; min-height: 30px; gap: 4px; }
.reader-board #school-region::after { content: "›"; }
.reader-board #school-region:hover, .reader-board #school-region:active { background: #344663; }
.reader-board .roster-button {
  display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 10px;
  border: 1px solid #d7bf7d; border-radius: 6px; color: #202a41; background: #fff1c9;
  font-size: 13px; font-weight: 750; text-decoration: none;
}
.reader-board .roster-button::after { content: "›"; }
.reader-board .roster-button:hover, .reader-board .roster-button:active { background: #ffdf89; }
.reader-board .identity-links:empty { display: none; }
.reader-board #latest-pager {
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}
.reader-board #latest-pager a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px;
  padding: 0 6px; border: 1px solid #c6d1df; border-radius: 5px;
  color: #243851; background: #fafbfd; text-decoration: none;
  font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.reader-board #latest-pager a[href^="#"] { padding-inline: 3px; border-color: transparent; background: transparent; }
.reader-board #latest-pager a:hover { background: #e6edf7; }
@media (max-width: 359px) {
  .reader-board #latest-pager a:nth-last-child(2):not(:first-child) { display: none; }
}
.reader-board .draft-list-heading { min-height: 44px; }
.reader-board .list-end { padding: 0 5px; }
.reader-board #archive-navigation, .reader-board #archive-top {
  margin: 9px 0 14px; padding: 12px 14px; background: #f6f8fb;
  border: 1px solid #ced7e4; border-radius: 10px; scroll-margin-block-start: 10px;
}
.reader-board #older-navigation { margin: 0; padding: 0; }
.reader-board #older-comments, .reader-board .pager-heading a {
  display: inline-flex; align-items:center; color:#243e63; min-height:38px; font-size:14px; font-weight:700;
}
.reader-board .pager-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:32px; color:#253754; }
.reader-board .pager-heading > span { color:#526077; font-size:13px; }
.reader-board #older-navigation:not([hidden]) + .board-pager:not([hidden]) { border-top:1px solid #d6deea; margin-top:4px; padding-top:7px; }
.reader-board .pager-numbers, .reader-board .pager-jump { display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
.reader-board .pager-numbers > a, .reader-board .pager-current, .reader-board .pager-jump button {
  display:inline-flex; align-items:center; justify-content:center; min-width:34px; min-height:40px; padding:0 6px;
  border:1px solid #c3cfdf; border-radius:5px; background:white; color:#233954; line-height:1.2;
  font-family:inherit; font-weight:650; font-size:14px; text-decoration:none; font-variant-numeric:tabular-nums;
}
.reader-board .pager-current, .reader-board .pager-jump button { background:#202c45; color:#fff; border-color:#202c45; }
.reader-board .pager-gap { color:#667389; font-size:13px; }
.reader-board .pager-jump { gap:7px; margin-top:8px; }
.reader-board .pager-jump label { font-size:13px; color:#39465b; }
.reader-board .pager-jump input { font:inherit; font-size:16px; width:6em; height:40px; padding:0 8px; border:1px solid #96a4b8; border-radius:5px; }
.reader-board .pager-jump button { min-width:52px; }
.reader-board .pager-error:not(:empty) { width:100%; color:#942c18; font-size:13px; }
.reader-board .full-school-info {
  padding:0 16px 18px; border:1px solid #dbd1b8; background:#f8f4e9; border-radius:10px;
  overflow:clip; margin-top:18px;
}
.reader-board .full-school-info > h2 {
  margin:0 -16px 12px; padding:10px 16px; background:#191e37; color:#fff;
  border-bottom:3px solid #d6aa3c; font-size:20px; line-height:1.45;
}
.reader-board .full-school-info dl div { border-color:#e0d8c5; }
.reader-board .profile-history a, .reader-board .draft-profile-links a { background:#fffcf4; border-color:#d9cfb8; }
.reader-board .school-identity { grid-template-columns: max-content minmax(0, 1fr); }
.reader-board .district-line { display: flex; }
.reader-board #school-region { white-space: nowrap; }
.reader-board .favorite-message:empty { display: none; }
@media (max-width: 680px) {
  .reader-board .identity-links { justify-content: flex-end; gap: 0 5px; }
  .reader-board .roster-button { padding-inline: 8px; }
  .reader-board .school-identity { column-gap: 6px; }
}
@media (max-width: 359px) {
  .reader-board .school-identity:has(.roster-button) .identity-links { grid-area: 3 / 1 / 4 / -1; }
}

.reader-board .school-identity { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.reader-board .heading-tools, .reader-board .school-name-line {
  display: flex; align-items: center; justify-content: space-between; gap: 6px 12px;
}
.reader-board .heading-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 44px;
}
.reader-board .champion-titles { display: inline-flex; align-items: center; gap: 4px; }
.reader-board .heading-tools .district-line {
  min-width: 0; align-self: auto; flex-wrap: wrap; align-items: center; gap: 4px;
}
.reader-board .champion-title {
  display: inline-flex; align-items: center; min-height: 30px; padding: 2px 8px;
  border: 1px solid #bb963e; border-radius: 4px; background: #fff2cd; color: #48370f;
  font-size: 12px; font-weight: 750; line-height: 1.3; text-decoration: none; white-space: nowrap;
}
.reader-board .champion-title:hover { background: #ffe6a5; }
.reader-board .heading-tools .favorite-school-actions { display: contents; }
.reader-board .heading-tools #favorite-toggle { grid-area: 1 / 2; justify-self: end; }
.reader-board .heading-tools .favorite-message { grid-column: 1 / -1; text-align: end; }
.reader-board .favorite-school-actions button, .reader-board .school-name-line .roster-button { flex-shrink: 0; white-space: nowrap; }
@media (max-width:680px) {
  .reader-board .heading-tools { gap: 5px; }
  .reader-board .school-name-line { flex-wrap: wrap; }
  .reader-board .school-name-line .identity-row { max-width: 100%; }
  .reader-board .champion-title { padding-inline: 6px; }
}
.reader-board .comment-reactions .reaction-button[data-reaction="dislike"] {
  background: #fff; border-color: #d7adb4; color: #88364a;
}
.reader-board .comment-reactions .reaction-button[data-reaction="dislike"][aria-pressed="true"] {
  background: #88364a; color: #fff; border-color: #733045; box-shadow: none;
}
.reader-board .comment-reactions .reaction-button:focus-visible {
  outline: 3px solid #233d6c; outline-offset: 2px;
}
.reader-board .imported-photo {
  display: inline-block; max-width: 100%; padding: 0; border: 0; background: none;
  vertical-align: top; cursor: zoom-in;
}
.reader-board .imported-photo img { display: block; max-width: 100%; height: auto; }
.reader-board #comment-photo-dialog {
  color: #fff; background: #171c27; border: 1px solid #424958; padding: 12px;
  overflow: auto; overscroll-behavior: contain;
}
.reader-board #comment-photo-dialog::backdrop { background: rgb(7 11 19 / 92%); }
.reader-board #comment-photo-dialog header { margin-bottom: 6px; }
.reader-board #comment-photo-dialog button {
  background: #252e41; border: 1px solid #798599; border-radius: 6px; color: #fff;
}
.reader-board:has(#comment-photo-dialog[open]) .reading-pane { overflow-y: hidden; }
.reader-board .photo-stage { display: grid; place-items: center; min-height: 70px; }
.reader-board #comment-photo-large {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: calc(100dvh - 155px - env(safe-area-inset-bottom)); object-fit: contain;
}
.reader-board .photo-controls { display:flex; justify-content:center; align-items:center; gap:16px; margin-top:8px; }
.reader-board #photo-position { font-variant-numeric: tabular-nums; }
.reader-board #archive-navigation { background: #e5edf7; border-color: #aebfd5; }
.reader-board #archive-bottom .pager-jump button { background: #fff; color: #233954; border-color: #aebfd5; }
.reader-board #archive-bottom .pager-heading [aria-current="page"] {
  padding: 3px 9px; border-radius: 5px; color: #fff; background: #202c45;
}
.reader-board .photo-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.reader-board .photo-toolbar .photo-controls { flex: 1; gap: 6px; margin: 0; }
.reader-board #comment-photo-large { max-height: calc(100dvh - 104px - env(safe-area-inset-bottom)); }

.reader-board .comment-body .body-external-link {
  display: inline-block; vertical-align: middle; max-width: 100%; box-sizing: border-box;
  padding: 1px 6px; border: 1px solid #d2c6e4; border-radius: 4px;
  background: #f7f4fb; color: #52376d; text-decoration: underline; text-underline-offset: 2px;
  line-height: 1.55; white-space: normal; overflow-wrap: anywhere;
}
.reader-board .body-external-link:hover { background: #efe8f6; }
.reader-board .comment-body { container-type: inline-size; }
.reader-board .body-external-link .url-label {
  display: flex; white-space: nowrap; overflow: hidden;
}
.reader-board .url-leading { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.reader-board .url-ending {
  flex: none; max-width: 42cqi; overflow: hidden; display: flex; justify-content: flex-end;
}

.reader-board #post-dialog {
  --post-gutter: 20px;
  padding: 0;
}
.reader-board #post-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reader-board #post-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}
.reader-board #post-form .post-fields {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--post-gutter) 4px;
}
@media (max-width: 680px) {
  .reader-board #post-dialog { --post-gutter: 15px; }
}
.reader-board #post-dialog .post-dialog-heading { margin-bottom: 12px; }
.reader-board #post-intro { margin: 0; font-size: 13px; line-height: 1.5; color: #556174; }
.reader-board #post-form .post-label { margin-bottom: 4px; }
.reader-board #post-dialog #post-body {
  min-height: 4.7em; height: calc(6.4em + 18px); padding: 8px 10px;
  font-size: 16px; line-height: 1.6; border-color: #9cabbc;
}
.reader-board #post-body:focus-visible { outline: 2px solid #324d72; outline-offset: 1px; }
.reader-board #post-counter { margin: 4px 0 10px; text-align: right; color: #546074; font-size: 13px; }
.reader-board #post-counter.is-over-limit { color: #942c18; }
.reader-board #post-guest {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 8px; align-items: center; margin: 0 0 8px;
}
.reader-board #post-guest .post-label { margin: 0; font-size: 14px; }
.reader-board #post-nickname { margin: 0; min-width: 0; min-height: 38px; padding: 5px 8px; font-size: 16px; }
.reader-board #post-name-status, .reader-board #post-name-retry { grid-column: 1 / -1; }
.reader-board #post-name-status:empty { display: none; }
.reader-board #post-attachments {
  margin: 10px 0 4px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #f3f5f9;
}
.reader-board #post-attachments summary {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: white;
  background: var(--navy);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}
.reader-board #post-attachments summary::marker { color: var(--accent); }
.reader-board #post-attachments[open] summary {
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 -3px var(--accent);
}
.reader-board #attachment-count:not(:empty) {
  display: inline-block;
  margin-inline-start: 8px;
  color: #ffe5a1;
  font-size: 13px;
}
.reader-board #post-attachments .post-photo-field {
  margin: 8px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: white;
}
.reader-board .attachment-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 8px;
  margin-bottom: 6px;
}
.reader-board #post-attachments .post-label {
  margin: 0;
  padding-inline-start: 7px;
  border-inline-start: 3px solid var(--accent);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.4;
}
.reader-board .attachment-heading span {
  color: #43546c;
  font-size: 13px;
  font-weight: 650;
}
.reader-board #post-attachments input[type=file] {
  display: block;
  width: 100%;
  min-width: 0;
  color: #40516a;
  font-size: 14px;
}
.reader-board #post-attachments input::file-selector-button {
  min-height: 44px;
  margin-inline-end: 8px;
  padding: 6px 12px;
  border: 1px solid #314767;
  border-radius: 6px;
  color: #fff;
  background: #314767;
  font: inherit;
  font-weight: 700;
}
.reader-board #post-attachments input:disabled::file-selector-button {
  color: #586579;
  border-color: #c6cfda;
  background: #e9edf3;
  cursor: default;
}
.reader-board #post-attachments .post-help {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
}
.reader-board #post-form > .post-actions {
  position: static;
  flex: none;
  margin: 0;
  padding: 8px var(--post-gutter) max(8px, env(safe-area-inset-bottom));
}
.reader-board #post-form #post-submit {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-color: #ff4500;
  background: #ff4500;
  color: white;
  font-size: 19px;
  font-weight: 750;
}
.reader-board #post-submit:hover:not(:disabled) { text-decoration: underline; }
.reader-board #post-attachments :focus-visible, .reader-board #post-submit:focus-visible {
  outline: 3px solid #305992;
  outline-offset: 2px;
}
.reader-board #post-form[aria-busy="true"] #post-submit { opacity: 1; color: white; background: #37445e; }
.reader-board #post-form[aria-busy="true"] #post-submit::before {
  content: ''; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid #aebacf; border-top-color: white; animation: post-spin .8s linear infinite;
}
@keyframes post-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .reader-board #post-form[aria-busy="true"] #post-submit::before { animation: none; }
}
#post-progress { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }


.reader-board .board-welcome {
  margin: 10px 4px 8px; color: #344157; font-size: 14px; line-height: 1.55;
  overflow-wrap: anywhere;
}
.reader-board[data-view]:not([data-view="latest"]) .board-welcome { display: none; }

.reader-board .draft-comments:has(.post-confirmation) #post-success[data-status="published"] { display: none; }

.reader-board #refresh-latest {
  position: absolute;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(100% + 8px);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cad3e1;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font: 700 29px/1 system-ui, sans-serif;
  box-shadow: 0 2px 8px #18223c36;
  cursor: pointer;
}
.reader-board #refresh-latest:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.reader-board #refresh-latest:disabled { opacity: .65; }
.reader-board:has(dialog[open]) #refresh-latest { display: none; }

.reader-board .profile-history .appearance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.appearance-grid > li { min-width: 0; }
.reader-board .appearance-grid a {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 44px;
  height: 100%;
  width: 100%;
  padding: 4px 2px;
  text-align: center;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.35;
}
@media (max-width: 767px) {
  .reader-board .profile-history .appearance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reader-board .appearance-grid a { font-size: clamp(12px, 3.45vw, 14px); }
}
@media (width < 350px) {
  .reader-board .profile-history .appearance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
