.dc-community,
.dc-dialog {
  --dc-ink: #202820;
  --dc-muted: #536253;
  --dc-line: #dbe2d8;
  --dc-wash: #f5f7f1;
  --dc-paper: #ffffff;
  --dc-accent: #28533d;
  --dc-accent-hover: #1c4130;
  --dc-on-accent: #ffffff;
  --dc-soft: #e8f0e5;
  --dc-reference-bg: #f2f3ef;
  --dc-hero: #f0f5eb;
  --dc-error-ink: #983b36;
  --dc-error-bg: #fff0ed;
  --dc-danger: #a3332e;
  --dc-shadow: 0 2px 6px rgb(28 49 31 / 5%);
  --dc-serif: Georgia, "Times New Roman", serif;
  color: var(--dc-ink);
  font: 400 15px / 1.6 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

[data-theme=dark] :is(.dc-community, .dc-dialog) {
  --dc-ink: #edf1e9;
  --dc-muted: #b7c3b6;
  --dc-line: #3b473e;
  --dc-wash: #242e27;
  --dc-paper: #1d261f;
  --dc-accent: #c1e1bd;
  --dc-accent-hover: #d9f1d5;
  --dc-on-accent: #1d3022;
  --dc-soft: #304636;
  --dc-reference-bg: #29352b;
  --dc-hero: #273b2d;
  --dc-error-ink: #ffc1b5;
  --dc-error-bg: #402723;
  --dc-danger: #a53532;
  --dc-shadow: 0 2px 6px rgb(0 0 0 / 16%);
}

.dc-community { width: 100%; margin-inline: auto; }
.dc-standalone, .dc-thread { padding: clamp(22px, 4vw, 46px) clamp(16px, 4vw, 34px) 36px; }
.dc-standalone { max-width: 1120px; }
.dc-thread { max-width: 828px; }
.dc-community svg, .dc-dialog svg { flex-shrink: 0; }
:is(.dc-community, .dc-dialog) button { font: inherit; cursor: pointer; }
:is(.dc-community, .dc-dialog) button:disabled { cursor: default; }
:is(.dc-community, .dc-dialog) :focus-visible { outline: 2px solid var(--dc-accent); outline-offset: 3px; }

/* Controls use explicit background-color so the site's button reset cannot override them. */
:is(.dc-community, .dc-dialog) .dc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  background-color: var(--dc-accent);
  color: var(--dc-on-accent);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  transition: background-color .16s, border-color .16s, color .16s;
}
:is(.dc-community, .dc-dialog) .dc-button:hover { background-color: var(--dc-accent-hover); }
:is(.dc-community, .dc-dialog) .dc-button.dc-secondary {
  border-color: var(--dc-line);
  background-color: var(--dc-paper);
  color: var(--dc-accent);
}
:is(.dc-community, .dc-dialog) .dc-button.dc-secondary:hover { background-color: var(--dc-soft); }
:is(.dc-community, .dc-dialog) .dc-button.dc-danger { background-color: var(--dc-danger); color: #fff; }
:is(.dc-community, .dc-dialog) .dc-button.dc-danger:hover { background-color: #842824; }
:is(.dc-community, .dc-dialog) .dc-button:disabled {
  border-color: var(--dc-line);
  background-color: var(--dc-soft);
  color: var(--dc-muted);
}

:is(.dc-community, .dc-dialog) .dc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 3px 0;
  border: 0;
  background-color: transparent;
  color: var(--dc-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
:is(.dc-community, .dc-dialog) .dc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
:is(.dc-community, .dc-dialog) .dc-link:disabled { color: var(--dc-muted); text-decoration: none; }
.dc-align-start { align-self: flex-start; }
.dc-muted { color: var(--dc-muted); }
.dc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Feed and account panel */
.dc-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.dc-heading-copy { min-width: 0; }
.dc-heading h1, .dc-heading h2 { margin: 0; font-family: var(--dc-serif); line-height: 1.06; }
.dc-standalone > .dc-heading {
  padding: clamp(23px, 4.8vw, 50px);
  border: 1px solid var(--dc-line);
  border-radius: 20px;
  background: linear-gradient(118deg, var(--dc-hero), var(--dc-wash) 78%);
}
.dc-heading h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 400; letter-spacing: -.058em; }
.dc-heading-copy > p { margin: 9px 0 0; color: var(--dc-muted); font-size: 14px; }
.dc-heading > .dc-button { flex: 0 0 auto; white-space: nowrap; }
.dc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 250px); gap: 22px 28px; align-items: start; }
.dc-feed { min-width: 0; }
.dc-feed-heading { margin: 0 0 12px; }
.dc-feed-heading h2 { margin: 0; font-size: 15px; font-weight: 700; }
.dc-post-list { display: grid; gap: 12px; }
.dc-post-list:empty { display: none; }
.dc-post {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  padding: 20px 21px;
  border: 1px solid var(--dc-line);
  border-radius: 15px;
  background: var(--dc-paper);
  box-shadow: var(--dc-shadow);
}
.dc-post-content { min-width: 0; }
.dc-avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  font-family: var(--dc-serif);
  font-size: 16px;
  line-height: 1;
}
.dc-avatar-small { width: 34px; height: 34px; font-size: 13px; }
.dc-avatar-0 { background: #e6eedf; color: #395034; }
.dc-avatar-1 { background: #f2e7d9; color: #6c4c2c; }
.dc-avatar-2 { background: #dfeef0; color: #345765; }
.dc-avatar-3 { background: #f3e5eb; color: #71505f; }
.dc-avatar-4 { background: #ede7f4; color: #57416f; }
.dc-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; color: var(--dc-muted); font-size: 12px; line-height: 1.5; }
.dc-author { color: var(--dc-ink); font-size: 13px; font-weight: 700; }
.dc-official-badge {
  display: inline-block;
  padding-inline: 6px;
  border-radius: 4px;
  background-color: var(--dc-soft);
  color: var(--dc-accent);
  font-size: 11px;
  font-weight: 650;
}
.dc-meta > time::before { content: "·"; margin-right: 8px; }
.dc-post h3 { margin: 6px 0 4px; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.dc-post h3 a { color: inherit; text-decoration: none; }
.dc-post h3 a:hover { color: var(--dc-accent); text-decoration: underline; text-underline-offset: 3px; }
.dc-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
.dc-post .dc-text { margin: 5px 0 0; color: var(--dc-muted); font-size: 14px; }
.dc-body-link {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.dc-body-link:hover { color: var(--dc-ink); }
.dc-post-footer { margin-top: 12px; }
.dc-post-stats { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; padding-block: 3px; color: var(--dc-muted); font-size: 12px; text-decoration: none; }
.dc-post-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.dc-post-stats:hover { color: var(--dc-accent); }
.dc-reference {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 46px;
  margin: 8px 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--dc-reference-bg);
  color: var(--dc-ink);
  line-height: 1.3;
  font-size: 13px;
}
.dc-reference-cover {
  flex: 0 0 auto;
  width: 24px;
  height: 34px;
  border-radius: 3px;
  object-fit: cover;
}
.dc-reference-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.dc-reference-book { font-weight: 650; }
.dc-post .dc-reference-book {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-reference-chapter, .dc-reference-compact { color: var(--dc-muted); font-size: 12px; }
.dc-reference-compact { margin: 4px 0; }
:is(.dc-community, .dc-dialog) .dc-spoiler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 8px 0 4px;
  padding: 7px 11px;
  border: 1px dashed var(--dc-line);
  border-radius: 8px;
  background-color: var(--dc-wash);
  color: var(--dc-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}
.dc-spoiler-reveal { margin-left: 4px; color: var(--dc-accent); font-weight: 700; }
:is(.dc-community, .dc-dialog) .dc-spoiler:hover { border-color: var(--dc-accent); background-color: var(--dc-soft); }
.dc-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 35px 16px;
  border: 1px dashed var(--dc-line);
  border-radius: 12px;
  background: var(--dc-wash);
  color: var(--dc-muted);
  text-align: center;
  font-size: 14px;
}
.dc-empty > svg { color: var(--dc-accent); }
.dc-load { text-align: center; }
.dc-load .dc-link { min-height: 44px; padding-inline: 16px; }
.dc-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 22px; }
.dc-layout > .dc-feed { grid-column: 1; grid-row: 1; }
.dc-account { display: flex; justify-content: space-between; align-items: center; gap: 6px 14px; margin-bottom: 18px; }
.dc-account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 13px; margin-left: auto; min-width: 0; }
.dc-signed-out { min-width: 0; }
.dc-profile { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 14px; }
.dc-profile strong { white-space: nowrap; min-width: 0; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.dc-profile > .dc-link { flex: 0 0 34px; justify-content: center; }
.dc-account-caption { display: none; }
.dc-sidebar .dc-account { display: block; padding: 17px; background: var(--dc-wash); border: 1px solid var(--dc-line); border-radius: 14px; }
.dc-sidebar .dc-account-actions { display: grid; gap: 8px; margin: 0; }
.dc-sidebar .dc-profile { padding-bottom: 10px; border-bottom: 1px solid var(--dc-line); }
.dc-sidebar .dc-account-caption { display: grid; gap: 4px; margin-bottom: 13px; }
.dc-account-caption strong { font-family: var(--dc-serif); font-weight: 400; font-size: 23px; line-height: 1.13; letter-spacing: -.022em; }
.dc-account-caption span { color: var(--dc-muted); font-size: 13px; }
.dc-sidebar .dc-signed-out > .dc-button { width: 100%; justify-content: space-between; }
.dc-reading-links { display: grid; gap: 4px; padding-inline: 7px; }
.dc-reading-links h2 { margin: 0 0 2px; font-size: 13px; font-weight: 700; }
.dc-reading-links > a { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--dc-muted); font-size: 13px; text-decoration: none; }
.dc-reading-links > a > svg:last-child { margin-left: auto; }
.dc-reading-links > a:hover { color: var(--dc-accent); text-decoration: underline; }

/* Reader discussion islands */
.dc-inline { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--dc-line); }
.dc-inline .dc-heading { margin-bottom: 11px; }
.dc-inline .dc-heading h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 400; letter-spacing: -.035em; }
.dc-inline .dc-account { flex-wrap: wrap; margin-bottom: 12px; }
.dc-inline .dc-post-list { gap: 0; }
.dc-inline .dc-post { border-radius: 0; padding: 15px 16px; box-shadow: none; }
.dc-inline .dc-post:first-child { border-radius: 12px 12px 0 0; }
.dc-inline .dc-post:last-of-type { border-radius: 0 0 12px 12px; }
.dc-inline .dc-post:first-child:last-of-type { border-radius: 12px; }
.dc-inline .dc-post + .dc-post { border-top: 0; }
.dc-inline .dc-post h3 { font-size: 16px; }

/* Thread and replies */
.dc-thread > .dc-heading { margin-bottom: 8px; }
.dc-thread > .dc-account { margin-bottom: 14px; }
.dc-detail {
  padding: clamp(19px, 4vw, 33px);
  border: 1px solid var(--dc-line);
  border-radius: 16px;
  background: var(--dc-paper);
  box-shadow: var(--dc-shadow);
}
.dc-detail-author { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 11px; }
.dc-detail h1 { margin: 19px 0 8px; font: 400 clamp(28px, 5vw, 44px) / 1.13 var(--dc-serif); letter-spacing: -.04em; }
.dc-detail > .dc-text { margin: 16px 0 24px; font-size: 16px; }
.dc-detail > .dc-spoiler { margin-block: 18px; }
.dc-detail > .dc-actions { margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--dc-line); }
.dc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.dc-action-stat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; color: var(--dc-muted); font-size: 13px; }
.dc-actions > .dc-link { padding-inline: 5px; color: var(--dc-muted); }
.dc-actions > .dc-link:hover, .dc-actions > .dc-is-liked { color: var(--dc-accent); }
.dc-is-liked > svg { fill: currentColor; }
.dc-replies-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 27px 0 10px; }
.dc-replies-heading h2 { margin: 0; font: 400 25px / 1.25 var(--dc-serif); letter-spacing: -.02em; }
.dc-comment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--dc-line);
  scroll-margin-top: 24px;
}
.dc-comment-content { min-width: 0; }
.dc-comment .dc-text { margin: 6px 0 3px; font-size: 15px; }
.dc-comment-actions { gap: 1px 9px; }
.dc-comment-actions > .dc-link { min-height: 36px; }
.dc-comment-actions > .dc-branch-link { color: var(--dc-accent); }
.dc-subject, .dc-highlighted {
  border: 1px solid var(--dc-line);
  border-radius: 11px;
  background: var(--dc-wash);
}
.dc-subject { margin: 9px 0; padding: 16px; border-inline-start: 3px solid var(--dc-accent); }
.dc-highlighted { background: var(--dc-soft); border-color: var(--dc-accent); }
.dc-notice, .dc-error {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 12px 0;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
}
.dc-notice { justify-content: space-between; background: var(--dc-soft); color: var(--dc-accent); }
.dc-error { background: var(--dc-error-bg); color: var(--dc-error-ink); }
.dc-notice .dc-link, .dc-error .dc-link { color: inherit; min-height: 24px; }

/* Dialogs and forms */
.dc-dialog {
  width: calc(100% - 32px);
  max-width: 540px;
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--dc-paper);
  border: 1px solid var(--dc-line);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgb(0 0 0 / 22%);
}
.dc-dialog::backdrop { background: rgb(20 30 23 / 62%); }
.dc-dialog-compose { max-width: 620px; }
.dc-dialog-compact { max-width: 440px; }
.dc-dialog-auth { max-width: 485px; }
.dc-dialog-inner > header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--dc-line);
  background: var(--dc-paper);
}
.dc-dialog header h2 { margin: 0; font: 400 clamp(24px, 4vw, 31px) / 1.1 var(--dc-serif); letter-spacing: -.035em; }
.dc-dialog-content { padding: 20px 22px 22px; }
.dc-dialog .dc-icon-button {
  display: inline-grid;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  background-color: var(--dc-wash);
  color: var(--dc-muted);
}
.dc-dialog .dc-icon-button:hover { background-color: var(--dc-soft); color: var(--dc-ink); }
.dc-dialog .dc-icon-button:disabled { opacity: .48; }
.dc-form { display: flex; flex-direction: column; gap: 14px; }
.dc-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 650; }
.dc-title-field .dc-muted { font-weight: 400; }
.dc-form :is(input:not([type=checkbox], [type=hidden]), textarea, select) {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--dc-line);
  border-radius: 9px;
  padding: 10px 12px;
  background: var(--dc-paper);
  color: var(--dc-ink);
  font: 400 16px / 1.5 ui-sans-serif, system-ui, sans-serif;
}
.dc-form :is(input, textarea)::placeholder { color: var(--dc-muted); opacity: .84; }
.dc-form :is(input, textarea, select):focus-visible { outline-offset: 1px; }
.dc-form textarea { resize: vertical; }
.dc-form .dc-check { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 32px; color: var(--dc-muted); font-size: 13px; }
.dc-check input { width: 16px; height: 16px; accent-color: var(--dc-accent); }
.dc-form .dc-error { margin: 0; }
.dc-form-intro { color: var(--dc-muted); font-size: 14px; }
.dc-compose-form > textarea { min-height: 152px; }
.dc-compose-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.dc-character-count { color: var(--dc-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.dc-over-limit { color: var(--dc-error-ink); font-weight: 700; }
.dc-compose-submit, .dc-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--dc-line);
}
.dc-confirm-actions { margin-top: 14px; }
.dc-compose-submit > .dc-button { min-width: 104px; }
.dc-dialog .dc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid var(--dc-line);
  border-radius: 7px;
  background-color: var(--dc-soft);
  color: var(--dc-accent);
  font-size: 13px;
}
.dc-dialog .dc-chip:hover { border-color: var(--dc-accent); }
.dc-reply { gap: 10px; margin: 16px 0 0; padding: 14px; border: 1px solid var(--dc-line); border-radius: 12px; background: var(--dc-wash); }
.dc-reply > .dc-actions { justify-content: space-between; }

/* Account and inbox */
.dc-auth-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.dc-auth-steps li { display: flex; align-items: center; gap: 5px; padding: 6px; border-block-end: 2px solid var(--dc-line); color: var(--dc-muted); font-size: 11px; line-height: 1.35; }
.dc-auth-steps li > span { display: inline-grid; flex-shrink: 0; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--dc-wash); font-size: 11px; }
.dc-auth-steps .dc-step-current { color: var(--dc-accent); border-color: var(--dc-accent); font-weight: 700; }
.dc-auth-steps .dc-step-current > span, .dc-auth-steps .dc-step-complete > span { background: var(--dc-soft); color: var(--dc-accent); }
.dc-auth-field { min-width: 0; }
.dc-auth-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 5px; }
.dc-auth-field-heading > .dc-link { min-height: 26px; }
.dc-field-hint, .dc-field-error { margin: 4px 0 0; font-size: 12px; line-height: 1.45; }
.dc-field-hint { color: var(--dc-muted); }
.dc-field-error { color: var(--dc-error-ink); }
.dc-auth-form input[aria-invalid=true] { border-color: var(--dc-error-ink); }
.dc-password-input { position: relative; }
.dc-password-input > input { padding-inline-end: 66px; }
.dc-auth-form .dc-password-toggle {
  position: absolute;
  inset: 3px 3px 3px auto;
  min-width: 56px;
  padding: 3px 7px;
  border-radius: 7px;
  background-color: var(--dc-wash);
  color: var(--dc-accent);
  font-size: 12px;
  font-weight: 650;
}
.dc-auth-footer, .dc-resend-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 7px;
  color: var(--dc-muted);
  text-align: center;
  font-size: 13px;
}
.dc-auth-footer { padding-top: 6px; border-top: 1px solid var(--dc-line); }
.dc-auth-info { color: var(--dc-accent); background: var(--dc-soft); padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.dc-google-auth { display: grid; gap: 10px; min-width: 0; }
.dc-google-button { display: flex; justify-content: center; min-height: 40px; }
.dc-google-button[inert] { opacity: .6; }
.dc-google-redirect { justify-self: center; font-size: 12px; text-align: center; }
.dc-auth-divider { display: flex; align-items: center; gap: 12px; color: var(--dc-muted); font-size: 12px; }
.dc-auth-divider::before, .dc-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--dc-line); }
.dc-resend-row > small { width: 100%; font-size: 12px; }
.dc-signup-email, .dc-verification-summary {
  padding: 8px 11px;
  border: 1px solid var(--dc-line);
  border-radius: 9px;
  background: var(--dc-wash);
  font-size: 13px;
}
.dc-signup-email { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dc-signup-email .dc-link { flex-shrink: 0; }
.dc-verification-summary { text-align: center; }
.dc-verification-summary > p { margin: 4px 0 0; color: var(--dc-muted); }
.dc-verification-summary > strong { display: block; }
.dc-verification-symbol { display: inline-grid; width: 35px; height: 35px; place-items: center; border-radius: 8px; background: var(--dc-soft); color: var(--dc-accent); }
.dc-form input.dc-otp-input { text-align: center; font-family: ui-monospace, monospace; font-size: 24px; letter-spacing: .34em; padding-inline-start: calc(12px + .34em); font-variant-numeric: tabular-nums; }
.dc-verification-success { text-align: center; }
.reader-inbox .dc-notification {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid var(--dc-line);
  background-color: var(--dc-paper);
  color: var(--dc-ink);
  text-align: left;
}
.reader-inbox .dc-unread { background-color: var(--dc-wash); }
.reader-inbox .dc-notification:hover { background-color: var(--dc-soft); }
.dc-inbox-icon { display: inline-grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; background: var(--dc-wash); color: var(--dc-accent); }
.dc-inbox-copy { display: grid; gap: 1px; font-size: 13px; }
.dc-inbox-copy :is(span, time) { color: var(--dc-muted); font-size: 12px; }
.dc-notification > svg { grid-column: 4; color: var(--dc-muted); }

.reader-page { max-width: 1060px; padding: clamp(8px, 2.5vw, 24px) 0 36px; }
.reader-title { margin-bottom: 18px; }
.reader-title h1 { margin: 0; font: 400 clamp(2.15rem, 5vw, 3.3rem) / 1.05 var(--dc-serif); letter-spacing: -.045em; }
.reader-title p { margin: 7px 0 0; }
.reader-back { margin-bottom: 9px; }
.reader-profile { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; border: 1px solid var(--dc-line); border-radius: 15px; padding: 15px; margin-bottom: 16px; background: linear-gradient(105deg, var(--dc-hero), var(--dc-wash)); }
.reader-profile > .dc-avatar { width: 49px; height: 49px; font-size: 22px; }
.reader-profile > strong { flex: 1 1 min(8rem, 30%); font: 400 1.4rem var(--dc-serif); }
.reader-account-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "reading inbox" "reading sync" "settings settings"; gap: 14px; align-items: start; }
.reader-continue { grid-area: reading; }
.reader-account-grid > .reader-inbox { grid-area: inbox; }
.reader-sync { grid-area: sync; }
.reader-settings { grid-area: settings; }
.reader-card { min-width: 0; border: 1px solid var(--dc-line); border-radius: 13px; background: var(--dc-paper); box-shadow: var(--dc-shadow); }
.reader-card-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 11px 14px; }
.reader-card-heading h2 { display: inline-flex; align-items: center; gap: 7px; flex: 1; margin: 0; font-size: 15px; font-weight: 700; }
.reader-card-heading h2 svg { color: var(--dc-accent); }
.reader-card-body { padding: 10px 14px 14px; }
.reader-card-body > p { margin: 0; }
.reader-card-body > p + :is(p, button) { margin-top: 7px; }
.reader-card-heading + .reader-card-body { padding-top: 1px; }
.reader-card-action { margin: 4px 14px; }
.reader-count { padding: 2px 8px; flex: none; border-radius: 99px; background: var(--dc-soft); color: var(--dc-accent); font-size: 12px; }
.reader-message-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dc-danger); }
.reader-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.reader-sync-status { color: var(--dc-accent); font-weight: 650; }
.reader-setting-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.reader-setting-row p { margin: 0; }
.reader-book { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--dc-line); text-decoration: none; }
.reader-book:last-child, .reader-page > .reader-inbox .dc-notification:last-child { border-radius: 0 0 12px 12px; }
.reader-book:hover { background: var(--dc-wash); }
.reader-book img, .reader-book-placeholder { width: 38px; height: 53px; border-radius: 4px; object-fit: cover; }
.reader-book-placeholder { display: grid; place-items: center; background: var(--dc-soft); color: var(--dc-accent); }
.reader-book small { display: block; color: var(--dc-muted); }
@media (max-width: 720px) {
  .reader-account-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "reading" "inbox" "sync" "settings"; }
}

@media (max-width: 700px) {
  .dc-layout { display: flex; flex-direction: column; gap: 15px; }
  .dc-feed, .dc-sidebar { width: 100%; }
  .dc-sidebar { position: static; }
  .dc-sidebar .dc-account { margin: 0; }
  .dc-sidebar .dc-account-actions:has(.dc-profile) { display: flex; gap: 5px 12px; }
  .dc-sidebar .dc-profile { flex: 1; padding: 0; border: 0; }
  .dc-sidebar .dc-signed-out { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .dc-sidebar .dc-signed-out > .dc-button { width: auto; flex-shrink: 0; white-space: nowrap; }
  .dc-sidebar .dc-account-caption { margin: 0; }
  .dc-reading-links { display: none; }
}

@media (max-width: 520px) {
  .dc-standalone, .dc-thread { padding-top: 16px; padding-inline: 0; }
  .dc-heading { margin-bottom: 14px; }
  .dc-standalone > .dc-heading { padding: 18px 14px; border-radius: 14px; gap: 9px; }
  .dc-heading h1 { font-size: clamp(27px, 8.9vw, 39px); }
  .dc-heading-copy > p { font-size: 12px; margin-top: 5px; }
  .dc-heading > .dc-button { padding-inline: 10px; font-size: 13px; }
  .dc-heading > .dc-button svg { width: 15px; }
  .dc-post, .dc-inline .dc-post { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; padding: 12px 11px; }
  .dc-post > .dc-avatar { width: 32px; height: 32px; font-size: 13px; }
  .dc-sidebar .dc-account { padding: 11px 12px; }
  .dc-account-caption strong { font-size: 20px; }
  .dc-account-caption span { font-size: 12px; }
  .dc-inline .dc-profile strong { max-width: 95px; }
  .dc-thread > .dc-account { margin-bottom: 9px; }
  .dc-comment { padding-inline: 8px; gap: 8px; }
  .dc-dialog {
    width: 100%;
    max-width: none;
    max-height: min(94dvh, calc(100dvh - 16px));
    margin: auto 0 0;
    border-radius: 17px 17px 0 0;
  }
  .dc-dialog-inner > header { padding: 10px 15px; }
  .dc-dialog-content { padding: 14px 15px max(18px, env(safe-area-inset-bottom)); }
  .dc-compose-submit > .dc-button { width: 100%; }
  .dc-form { gap: 12px; }
  .dc-form :is(input, textarea, select) { scroll-margin-top: 72px; }
}

.dc-panel-view {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  outline: none;
}
.dc-chapter-panel.dc-inline, .dc-chapter-panel.dc-thread {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--dc-paper);
}
.dc-panel-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 22px 14px;
  scroll-padding-block: 12px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--dc-muted) 36%, transparent) transparent;
}
.dc-chapter-panel.dc-inline .dc-post-list > .dc-post {
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 17px 0;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--dc-line);
  border-radius: 0;
  background: transparent;
}
.dc-chapter-panel .dc-post > .dc-avatar { width: 36px; height: 36px; }
.dc-chapter-panel .dc-post h3 { margin: 5px 0 0; }
.dc-chapter-panel .dc-post .dc-text { line-height: 1.55; }
.dc-chapter-panel .dc-post-footer { margin-top: 6px; }
.dc-chapter-panel .dc-post-stats { min-height: 32px; }
.dc-panel-feed-heading {
  margin: 0;
  padding-top: 16px;
  color: var(--dc-muted);
  font-size: 12px;
  font-weight: 700;
}
.dc-panel-feed-status {
  margin: 0;
  padding-block: 10px;
  color: var(--dc-muted);
  font-size: 13px;
}
.dc-panel-feed-load, .dc-panel-feed-end { text-align: center; }
.dc-panel-feed-end { padding-top: 16px; }
.dc-chapter-panel .dc-empty {
  margin: 0;
  padding: clamp(24px, 6vh, 56px) 12px;
  border: 0;
  background: transparent;
}
.dc-chapter-panel .dc-empty > svg {
  box-sizing: content-box;
  padding: 12px;
  border-radius: 50%;
  background: var(--dc-soft);
}
.dc-panel-scroll > .dc-back { margin-block: 8px; }
.dc-chapter-panel .dc-detail {
  padding: 5px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--dc-line);
  border-radius: 0;
  box-shadow: none;
}
.dc-chapter-panel .dc-detail h1 { margin-top: 12px; font-size: clamp(25px, 5vw, 32px); }
.dc-chapter-panel .dc-replies-heading { margin-top: 16px; }
.dc-chapter-panel .dc-comment { padding-inline: 0; }
.dc-chapter-panel .dc-subject { padding-inline: 12px; }
.dc-panel-footer {
  z-index: 1;
  padding: 12px 22px max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--dc-line);
  background: var(--dc-wash);
}
.dc-community .dc-panel-write { width: 100%; min-height: 46px; }
.dc-panel-utilities { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dc-panel-utilities > .dc-link { min-height: 44px; }
.dc-panel-account { position: relative; }
.dc-panel-account > summary {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  padding-inline: 3px;
  list-style: none;
  cursor: pointer;
  color: var(--dc-accent);
}
.dc-panel-account > summary::-webkit-details-marker { display: none; }
.dc-panel-account .dc-avatar { width: 26px; height: 26px; }
.dc-panel-account-list {
  position: absolute;
  inset: auto 0 calc(100% + 6px) auto;
  display: grid;
  width: min(205px, calc(100vw - 44px));
  padding: 6px;
  border: 1px solid var(--dc-line);
  border-radius: 14px;
  background: var(--dc-paper);
  box-shadow: 0 8px 28px rgb(20 30 23 / 15%);
}
.dc-panel-account-list > strong { padding: 6px 9px; font-size: 14px; }
.dc-chapter-panel .dc-panel-account-list > .dc-link {
  min-height: 42px;
  padding-inline: 9px;
  border-radius: 8px;
  text-decoration: none;
}
.dc-chapter-panel .dc-panel-account-list > .dc-link:hover { background: var(--dc-soft); }

@media (prefers-reduced-motion: reduce) {
  :is(.dc-community, .dc-dialog) .dc-button { transition: none; }
}
