/* C authoring: the same typography and semantic colors as the reading site. */
.writer-prose.article-prose,
.writer-reader {
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0;
}
.writer-reader {
  white-space: normal;
  font-variant-ligatures: normal;
  font-feature-settings: normal;
}
.writer-prose .writer-reader .article-code pre {
  white-space: pre;
}
.writer-prose .writer-reader .article-code pre.code-wrap {
  white-space: pre-wrap;
}
.writer-prose.article-prose > .writer-text {
  width: 100%;
  max-width: 680px;
  margin: 0 0 24px;
}
.writer-prose.article-prose > h2 {
  margin-top: 40px;
  font-size: 28px;
  font-weight: 550;
}
.writer-prose.article-prose > :is(h3, h4, h5, h6) {
  margin-top: 24px;
}
.writer-prose.article-prose > .writer-lead {
  font-size: 21px;
  line-height: 1.75;
}
.writer-prose.article-prose > .writer-poem {
  color: var(--text-secondary);
  line-height: 2;
}
.writer-reader > .article-block {
  max-width: 100%;
}
.writer-reader .article-footnotes {
  max-width: 680px;
}
@media (max-width: 600px) {
  .writer-prose.article-prose,
  .writer-reader {
    font-size: 17px;
  }
}
.admin-shell {
  --editor-bar-height: 64px;
  max-width: 1200px;
  padding-bottom: 32px;
}
.site-shell:has(.admin-shell):not(:has(.admin-editor)) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.site-shell > main:has(.admin-shell):not(:has(.admin-editor)) {
  flex: 1;
}
.site-shell:has(.admin-editor) > :is(.site-header, .site-footer) {
  display: none;
}
.admin-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 64px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
.admin-nav .admin-brand {
  font-weight: 650;
  font-size: 17px;
  color: var(--text);
}
.admin-nav > div {
  display: flex;
  gap: 28px;
}
.admin-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}
.admin-nav a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}
.admin-logout {
  flex-shrink: 0;
}
.admin-nav .admin-site-link {
  margin-left: auto;
  font-size: 14px;
}
/* The editor's own bar replaces the section menu while a post is open. */
.admin-shell:has(.admin-editor) .admin-nav {
  display: none;
}
.admin-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 40px 0 24px;
}
.admin-page-heading h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -0.03em;
}
.admin-page-heading p {
  color: var(--text-muted);
  margin: 0;
}
.admin-page-heading h1 span {
  margin-left: 8px;
  font: 500 16px var(--font-brand);
  letter-spacing: 0;
  color: var(--text-muted);
}
.admin-page-heading .button {
  flex-shrink: 0;
}
.admin-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 0 8px;
}
.admin-filters > label:first-child {
  width: min(360px, 60%);
}
.admin-filters .list-count {
  margin-left: auto;
  padding-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.admin-shell label:not(:where(.writer-reader *)),
.admin-dialog label,
.comments label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.admin-shell input:not([type='checkbox'], :where(.writer-reader *)),
.admin-shell textarea:not(:where(.writer-reader *)),
.admin-shell select:not(:where(.writer-reader *)),
.admin-dialog input:not([type='checkbox']),
.admin-dialog textarea,
.admin-dialog select,
.comments input:not([type='checkbox']),
.comments textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
/* The caret is drawn from the text token instead of the browser's own arrow. */
.admin-shell select:not(:where(.writer-reader *)),
.admin-dialog select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 55%,
    calc(100% - 14px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.admin-shell textarea,
.admin-dialog textarea,
.comments textarea {
  resize: vertical;
  line-height: 1.7;
}
.admin-shell input[readonly] {
  background: var(--surface-soft);
  color: var(--text-secondary);
}
.editor-public-link {
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  margin-right: 8px;
}
.publish-complete h3 {
  font-size: 20px;
  font-weight: 550;
}
.admin-shell input:focus-visible,
.admin-shell textarea:focus-visible,
.admin-shell select:focus-visible,
.comments input:focus-visible,
.comments textarea:focus-visible,
.admin-dialog input:focus-visible,
.admin-dialog textarea:focus-visible,
.admin-dialog select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
:is(.admin-shell, .admin-dialog, .admin-login)
  .button:not(.button-primary, .icon-button, :where(.writer-reader *, .preview-paper *)) {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}
:is(.admin-shell, .admin-dialog, .admin-login)
  .button:not(
    .button-primary,
    .icon-button,
    :disabled,
    :where(.writer-reader *, .preview-paper *)
  ):hover {
  border-color: var(--text-muted);
}
:is(.admin-shell, .admin-dialog, .admin-login) .button-primary:disabled {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--text-muted);
  opacity: 1;
}
.admin-shell .button.button-danger {
  margin-left: auto;
  border-color: transparent;
  color: var(--notice-danger);
}
.admin-shell button:disabled,
.comments button:disabled,
.admin-dialog button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-post-list,
.share-management-list,
.revision-list,
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-post-list > li,
.share-management-list > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}
.admin-post-list h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.admin-post-list h2 a {
  color: var(--text);
  text-decoration: none;
}
.admin-post-list h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.admin-post-list p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 760px;
}
.admin-post-meta {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.admin-row-link {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
}
.admin-status {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-secondary);
}
.admin-status:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-right: 7px;
}
.status-published:before,
.status-active:before {
  background: var(--syntax-string);
}
.draft-change {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--notice-warning);
}
.quiet-empty {
  padding: 40px 0;
  color: var(--text-secondary);
  line-height: 1.8;
}
.admin-prototype-footer {
  display: flex;
  align-items: start;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
}
.admin-prototype-footer details {
  text-align: right;
  max-width: 310px;
}
.admin-prototype-footer button {
  margin: 12px 0 0 16px;
  font-size: 12px;
}
.workspace-disclosure > summary,
.login-page .login-scenarios > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  list-style: none;
  cursor: pointer;
}
.login-page .login-scenarios > summary {
  display: inline-flex;
}
.workspace-disclosure > summary::-webkit-details-marker {
  display: none;
}
.workspace-disclosure > summary::marker {
  content: '';
}
.workspace-disclosure > summary > svg {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--text-muted);
  transition: transform 0.15s;
}
.workspace-disclosure[open] > summary > svg {
  transform: rotate(180deg);
}
.workspace-disclosure > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.admin-login {
  max-width: 430px;
  margin: 80px auto 100px;
  padding: 0 24px;
}
.admin-login h1 {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.admin-login > p {
  color: var(--text-secondary);
  line-height: 1.9;
}
.admin-login .login-button {
  width: 100%;
  margin: 25px 0 12px;
  justify-content: center;
  min-height: 48px;
}
.admin-login > a {
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-block;
  margin-top: 28px;
}
.login-scenarios {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.login-scenarios button {
  margin: 12px 14px 0 0;
}
.field-hint,
.prototype-context {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 400;
}
.prototype-context {
  margin-top: 28px;
}
.form-error {
  color: var(--notice-danger);
  font-size: 14px;
  line-height: 1.8;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.form-error button {
  margin-left: 12px;
  text-decoration: underline;
}
.form-status {
  font-size: 13px;
  min-height: 0;
  color: var(--syntax-string);
}
.form-status:empty {
  display: none;
}
.admin-dialog {
  max-width: 620px;
}
.admin-dialog .dialog-top > .eyebrow {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.admin-dialog form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.admin-dialog p {
  line-height: 1.8;
  color: var(--text-secondary);
}
.admin-dialog fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.admin-dialog legend {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.dialog-actions .button {
  min-height: 42px;
}
.admin-shell label.check-field,
.admin-dialog label.check-field {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  color: var(--text);
}
.check-field input,
.case-choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.editor-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 20px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
/* The toolbar sits right under the editor bar instead of under the page top. */
.admin-shell .writer {
  --writer-sticky-top: var(--editor-bar-height);
}
.editor-identity {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.editor-identity .wordmark {
  font-size: 24px;
}
.editor-compose :is(input, textarea, button, select, [contenteditable]) {
  scroll-margin-top: calc(var(--editor-bar-height) + 88px);
}
/* Writing uses its own workspace width; reader text keeps the publication measure. */
.admin-shell:has(.admin-editor) {
  max-width: 1800px;
  width: calc(100% - 64px);
}
@media (min-width: 1101px) and (max-width: 1839px) {
  .admin-shell
    .editor-compose:has(.writer.has-inspector)
    > :is(.editor-title-label, .editor-summary-label) {
    width: min(680px, calc(100% - var(--writer-panel-width, 400px) - 32px));
    margin-left: max(0px, calc((100% - var(--writer-panel-width, 400px) - 32px - 680px) / 2));
    margin-right: auto;
  }
}
@media (max-width: 760px) {
  .admin-shell:has(.admin-editor) {
    width: calc(100% - 36px);
  }
}
.editor-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  flex-shrink: 0;
}
.editor-save-status {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}
.editor-save-status span {
  color: var(--text-secondary);
}
.editor-top-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.editor-top-actions button {
  white-space: nowrap;
}
.recovery-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-top: 16px;
  border-radius: 12px;
  background: var(--butter-surface);
  font-size: 14px;
  flex-wrap: wrap;
}
.editor-compose {
  padding-top: 36px;
}
.editor-compose[hidden] {
  display: none;
}
.admin-shell .editor-title-label,
.admin-shell .editor-summary-label {
  max-width: 760px;
  margin: 0 auto;
  font-size: 12px;
}
.admin-shell input.editor-title {
  min-height: 0;
  padding: 4px 0;
  border: none;
  border-radius: 0;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.admin-shell .editor-summary-label textarea {
  min-height: 0;
  padding: 6px 0;
  border: none;
  border-radius: 0;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  resize: none;
  /* Grows with the text instead of scrolling inside two rows. */
  field-sizing: content;
}
/* Borderless fields mark focus with the coral underline, not a box. */
.admin-shell input.editor-title:focus-visible,
.admin-shell .editor-summary-label textarea:focus-visible {
  outline: 0;
  box-shadow: 0 2px 0 var(--accent);
}
.editor-settings {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0 0;
  margin-top: 40px;
}
.editor-settings > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.editor-settings > summary span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}
.editor-settings-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.editor-settings-grid .check-field {
  align-self: end;
}
.editor-settings-grid small {
  font-weight: 400;
  font-size: 13px;
}
.editor-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  font-size: 14px;
}
.editor-document-actions a {
  margin-left: 8px;
  color: var(--text-secondary);
}
.preview-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
}
.preview-controls button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}
.preview-paper {
  max-width: 1200px;
  margin: auto;
  width: 100%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  container-type: inline-size;
  container-name: site-preview;
  scroll-margin-top: calc(var(--editor-bar-height) + 16px);
}
.preview-paper.preview-mobile {
  max-width: 390px;
}
.preview-paper > .site-header {
  position: static;
}
.preview-content {
  max-width: 760px;
  padding: 24px 40px 48px;
  margin-inline: auto;
}
.preview-content > header {
  margin: 20px 0 40px;
}
.preview-content > header h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.preview-content > header p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.preview-content > header small {
  color: var(--text-muted);
}
.preview-paper .article-block {
  max-width: 100%;
}
.preview-paper [data-width='wide'],
.preview-paper [data-width='full'] {
  width: 100%;
  margin-inline: 0;
}
/* The same public chrome responds to the preview frame as well as the viewport. */
@container site-preview (max-width: 900px) {
  .preview-paper .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .preview-paper .footer-top nav {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 12px 22px;
  }
}
@container site-preview (max-width: 600px) {
  .preview-paper .site-header {
    padding-inline: 18px;
    gap: 10px;
  }
  .preview-paper .wordmark {
    font-size: 22px;
  }
  .preview-paper .desktop-nav,
  .preview-paper .search-trigger kbd {
    display: none;
  }
  .preview-paper .header-actions {
    margin-left: auto;
  }
  .preview-paper .mobile-menu-trigger {
    display: inline-flex;
  }
  .preview-paper .container {
    width: calc(100% - 36px);
  }
  .preview-content {
    padding: 12px 18px 36px;
  }
  .preview-content > header h1 {
    font-size: 30px;
  }
  .preview-paper .footer-bottom {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
}
@media (max-width: 1100px) {
  .editor-topbar {
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-block: 8px;
  }
  .editor-save-status {
    margin-left: auto;
    text-align: right;
  }
  .editor-top-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
.preview-mobile .article-prose {
  font-size: 16px;
}
.publish-review h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
.publish-review dl {
  border-block: 1px solid var(--border-soft);
  padding: 15px 0;
}
.publish-review dl > div {
  display: flex;
  gap: 25px;
  margin: 10px 0;
  font-size: 14px;
}
.publish-review dt {
  color: var(--text-muted);
  min-width: 80px;
}
.publish-review dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.revision-list > li {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
}
.revision-list > li > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.revision-list span,
.revision-list small {
  color: var(--text-muted);
  font-size: 13px;
}
.revision-list button {
  white-space: nowrap;
}
/*
 * Comments continue the article: same reading measure, the byline's initial avatar, and
 * one soft card for writing. The article footer already draws the rule above them.
 */
.comments {
  margin-top: 64px;
}
.article-body--rich .comments {
  max-width: 680px;
  margin-inline: auto;
}
.comments h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.comments h2 span {
  font: 500 15px var(--font-brand);
  letter-spacing: 0;
  color: var(--text-muted);
}
.comments-management {
  margin-top: 0;
}
.comment-item {
  --comment-avatar: 36px;
  display: grid;
  grid-template-columns: var(--comment-avatar) minmax(0, 1fr);
  column-gap: 14px;
  padding: 24px 0;
}
/* A rule separates threads; replies sit under their parent without one. */
.comment-item + .comment-item {
  border-top: 1px solid var(--border-soft);
}
.comments:not(.comments-management) .comment-item.is-reply {
  --comment-avatar: 28px;
  column-gap: 12px;
  margin-left: 50px;
  padding-top: 0;
  border-top: 0;
}
.comment-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--comment-avatar, 36px);
  height: var(--comment-avatar, 36px);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.is-reply .comment-avatar {
  font-size: 11px;
}
.is-owner .comment-avatar,
.comment-as-owner .comment-avatar {
  background: var(--accent-soft);
  color: var(--text);
}
.is-withdrawn .comment-avatar {
  background: transparent;
  border: 1px dashed var(--border);
}
.comment-main {
  min-width: 0;
}
.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: var(--comment-avatar);
  font-size: 13px;
  color: var(--text-muted);
}
.comment-meta strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.comment-meta time {
  font-family: var(--font-brand);
}
.owner-label,
.comment-state {
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.comment-state {
  background: var(--surface-soft);
  color: var(--text-secondary);
}
.comment-item p {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.is-withdrawn .comment-meta strong,
.is-withdrawn p {
  font-weight: 400;
  color: var(--text-muted);
}
.comment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: 8px;
}
/* Row actions stay quiet text on both the public page and the workspace. */
.comments .comment-actions .button:not(.button-primary) {
  gap: 6px;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  color: var(--text-muted);
}
.comments .comment-actions .button:not(.button-primary):hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.comment-actions .button svg {
  width: 14px;
  height: 14px;
}
.comment-post {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.comment-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.comment-composer {
  margin-top: 16px;
  padding: 24px;
  border-radius: 20px;
  background: var(--surface-soft);
}
.comments .comment-composer :is(input, textarea) {
  border-color: transparent;
}
.comments .comment-composer :is(input, textarea):hover {
  border-color: var(--border);
}
.comment-composer textarea {
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 14px;
}
.comment-composer ::placeholder {
  color: var(--text-muted);
}
.comment-identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 16px;
}
.comment-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.comment-field .field-hint {
  margin-top: -2px;
}
.password-field {
  position: relative;
}
.comments .password-field input {
  padding-right: 68px;
}
.password-field button {
  position: absolute;
  top: 50%;
  right: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.password-field button[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--text);
}
.password-field button:hover {
  background: var(--surface-soft);
  color: var(--text);
}
.password-field button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.comment-as-owner {
  --comment-avatar: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.comment-as-owner .comment-avatar {
  font-size: 11px;
}
.comment-as-owner strong {
  margin-right: 4px;
  color: var(--text);
}
.form-end {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.form-end .field-hint {
  font-family: var(--font-brand);
}
.reply-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 13px;
  color: var(--text);
}
.reply-context span {
  overflow-wrap: anywhere;
}
.reply-context .button {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 13px;
}
.reply-context .button:hover {
  background: var(--surface);
}
.comments .quiet-empty {
  padding: 20px 0 12px;
  font-size: 15px;
}
.share-management-list h2 {
  font-size: 22px;
  margin: 10px 0;
}
.share-management-list p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 6px 0;
}
.share-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  font-size: 14px;
}
.share-row-actions a {
  color: var(--text-secondary);
}
.admin-dialog label.case-choice {
  flex-direction: row;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.case-choice span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.6;
}
.case-choice input {
  margin-top: 4px;
}
.case-choice small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
@media (max-width: 760px) {
  .admin-nav {
    gap: 12px 20px;
    flex-wrap: wrap;
    padding-block: 8px;
  }
  .admin-nav .admin-site-link {
    display: none;
  }
  .admin-logout {
    margin-left: auto;
  }
  .admin-nav > div {
    gap: 20px;
  }
  .admin-nav .admin-brand {
    font-size: 15px;
  }
  .admin-nav a {
    font-size: 13px;
  }
  .admin-page-heading {
    margin-top: 32px;
    gap: 16px;
  }
  .admin-page-heading h1 {
    font-size: 26px;
  }
  .admin-page-heading p {
    font-size: 13px;
    line-height: 1.8;
  }
  .admin-filters {
    gap: 12px;
    flex-wrap: wrap;
  }
  .admin-filters > label:first-child {
    flex: 1;
  }
  .admin-filters > label {
    font-size: 12px;
  }
  .admin-filters input,
  .admin-filters select {
    font-size: 14px;
  }
  .admin-filters .list-count {
    display: none;
  }
  .admin-post-list > li {
    gap: 10px;
    align-items: flex-start;
    padding: 22px 0;
  }
  .admin-post-list h2 {
    font-size: 18px;
  }
  .admin-post-list p {
    font-size: 13px;
  }
  .admin-post-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
  .admin-login {
    margin-block: 48px 70px;
  }
  .admin-login h1 {
    font-size: 33px;
  }
  .editor-topbar {
    gap: 4px 14px;
  }
  .editor-identity {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .editor-identity .wordmark {
    font-size: 22px;
  }
  .editor-save-status {
    margin-left: 0;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 8px;
    text-align: left;
    font-size: 11px;
  }
  .editor-top-actions {
    margin: 0;
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
  }
  .editor-top-actions .editor-public-link {
    display: none;
  }
  .admin-shell .editor-top-actions .button {
    min-height: 44px;
    padding-inline: 12px;
  }
  .editor-compose {
    padding-top: 28px;
  }
  .admin-shell input.editor-title {
    font-size: 30px;
  }
  .admin-shell .editor-summary-label textarea {
    font-size: 16px;
  }
  .editor-settings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .editor-settings-grid > label:first-child {
    grid-column: 1 / -1;
  }
  .editor-document-actions {
    gap: 18px;
  }
  .comment-identity {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .comment-item {
    --comment-avatar: 32px;
    column-gap: 12px;
  }
  .comments:not(.comments-management) .comment-item.is-reply {
    margin-left: 44px;
  }
  .comment-composer {
    margin-inline: -4px;
    padding: 18px;
    border-radius: 16px;
  }
  .share-management-list > li {
    display: block;
  }
  .share-row-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
  }
  .admin-dialog .dialog-actions {
    gap: 12px;
  }
  .revision-list > li {
    gap: 10px;
  }
  .revision-list strong {
    font-size: 14px;
  }
}
