


.ab-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

main.ab-enabled {
  position: relative;
}

.ab-prose {
  position: relative;
}



.ab-card-shell,
.ab-authbar,
.ab-seltool,
.ab-drawer-panel {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
}

.ab-btn {
  font: inherit;
  padding: 0.35rem 0.7rem;
  min-height: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
}

.ab-btn:hover {
  border-color: var(--muted);
}

.ab-primary {
  border-color: var(--link);
  color: var(--link);
  font-weight: 600;
}

.ab-danger {
  color: #a03434;
}

@media (prefers-color-scheme: dark) {
  .ab-danger {
    color: #e09a9a;
  }
}

.ab-btn-small {
  padding: 0.1rem 0.45rem;
  min-height: 0;
  font-size: 0.75rem;
}

.ab-icon-btn {
  display: inline-flex;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.ab-inline-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  pointer-events: none;
}

.ab-labeled-icon {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  justify-content: center;
}

.ab-outline-action {
  border-color: var(--blue-500, var(--link));
  background: transparent;
  color: var(--blue-300, var(--link));
}

.ab-withdraw-icon {
  background: transparent;
}

.ab-chip {
  display: inline-block;
  height: 11px;
  padding: 0.02rem 0.45rem;
  padding-top: 1px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


[data-chapter-activity-slot] {
  display: inline-flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.ab-chapter-activity {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font: 600 10px/1.2 var(--font-display, system-ui, sans-serif);
}

.ab-chapter-activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 19px;
  padding: 1px 6px;
  border: 1px solid var(--border-default, var(--border));
  border-radius: 999px;
  background: var(--tint-neutral, var(--surface));
  color: var(--text-muted, var(--muted));
  white-space: nowrap;
}

.ab-chapter-activity-openSuggestions,
.ab-chapter-activity-openReplies {
  border-color: color-mix(in srgb, var(--blue-500) 42%, transparent);
  background: var(--tint-primary);
  color: var(--on-tint-primary);
}

.ab-chapter-activity-openBlockComments,
.ab-chapter-activity-openChapterComments {
  border-color: color-mix(in srgb, var(--orange-500) 42%, transparent);
  background: var(--tint-accent);
  color: var(--on-tint-accent);
}

.ab-chapter-activity-openWorkItems {
  border-color: color-mix(in srgb, var(--green-500) 42%, transparent);
  background: var(--tint-success);
  color: var(--on-tint-success);
}

.ab-chapter-activity-count {
  font-variant-numeric: tabular-nums;
}


.chapter-nav > span,
.chapter-nav a {
  min-width: 0;
}

.chapter-nav > span {
  flex: 1 1 0;
}

.chapter-nav > span:empty {
  display: none;
}

.chapter-nav a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  overflow-wrap: anywhere;
}

.chapter-nav-next a {
  align-items: flex-end;
}

.ab-status-syncing {
  border-style: dashed;
}

.ab-status-failed {
  border-color: #a03434;
  color: #a03434;
}

.ab-author {
  font-weight: 600;
}

.ab-quote {
  margin: 0.4rem 0;
  padding: 0.1rem 0.6rem;
  border-left: 3px solid var(--draft-border);
  color: var(--muted);
  font-style: italic;
  overflow-wrap: anywhere;
}


.ab-body {
  margin: 0.4rem 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ab-hint,
.ab-error {
  margin: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.ab-error {
  color: #a03434;
}

@media (prefers-color-scheme: dark) {
  .ab-error {
    color: #e09a9a;
  }
}

.ab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.ab-form-actions {
  display: flex;
  gap: 0.5rem;
}

.ab-field {
  display: block;
  margin: 0.4rem 0;
}

.ab-field-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.ab-textarea,
.ab-input {
  font: inherit;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
}



.ab-prose .ab-target {
  background: var(--surface);
  outline: 2px solid var(--link);
  outline-offset: 4px;
}



.ab-block-ui {
  position: absolute;
  left: -3.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 2.25rem;
  align-items: center;
}

.ab-annotate,
.ab-marker {
  font: inherit;
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ab-annotate {
  opacity: 0;
}


@media (pointer: coarse) {
  .ab-annotate,
  .ab-marker {
    min-width: 44px;
    min-height: 44px;
  }

  .ab-btn,
  .ab-btn-small {
    min-width: 44px;
    min-height: 44px;
  }

  .ab-icon-btn {
    width: 44px;
    height: 44px;
  }

  .ab-textarea,
  .ab-input {
    min-height: 44px;
  }

  .ab-kind {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .ab-kind input[type="radio"] {
    width: 24px;
    height: 24px;
  }

  
  .ab-annotate {
    opacity: 1;
    border-color: var(--border);
    background: var(--surface);
  }
}

.ab-annotate:hover,
.ab-annotate:focus-visible,
.ab-prose :hover + .ab-block-ui .ab-annotate,
.ab-block-ui:hover .ab-annotate {
  opacity: 1;
  border-color: var(--border);
  background: var(--surface);
}

.ab-marker {
  border-color: var(--border);
  background: var(--surface);
  color: var(--link);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 959.9px) {
  .ab-block-ui {
    left: auto;
    right: -0.4rem;
  }
}




.ab-seltool[hidden] {
  display: none;
}

.ab-seltool {
  position: absolute;
  z-index: 30;
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}



.ab-gutter {
  position: absolute;
  top: 0;
  left: calc(100% + 1.5rem);
  width: calc((100vw - 100%) / 2 - 3rem);
  min-width: 12rem;
  max-width: 22rem;
}

.ab-cards {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.ab-note-cards {
  display: contents;
}

.ab-gutter .ab-cards[data-layout-ready="false"] {
  visibility: hidden;
}

.ab-gutter .ab-card-shell {
  position: absolute;
  left: 0;
  right: 0;
}

.ab-card-shell {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.ab-card:focus-visible,
.ab-card.ab-active {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.ab-card-head {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: baseline;
  gap: 0.4rem;
}

.ab-replies {
  list-style: none;
  margin: 0.5rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border);
}

.ab-replies .ab-replies {
  margin-top: 0.25rem;
}

.ab-reply {
  margin: 0.4rem 0;
}

.ab-reply-head {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.ab-authbar {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.ab-me {
  margin: 0;
}

.ab-signin {
  font-weight: 600;
}



.ab-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ab-drawer-toggle {
  font: inherit;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 0;
  background: transparent;
  color: var(--link);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ab-drawer-panel {
  max-height: 55vh;
  overflow-y: auto;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--border);
}

.ab-drawer-panel .ab-card-shell {
  margin: 0.6rem 0;
}

@media (min-width: 960px) {
  .ab-drawer {
    display: none;
  }
}

@media (max-width: 959.9px) {
  .ab-gutter {
    display: none;
  }

  
  main.ab-enabled {
    padding-bottom: 5rem;
  }
}



.ab-votes {
  margin-top: 0.5rem;
}


.ab-vote-seg {
  display: flex;
  gap: 0;
}

.ab-vote-btn {
  font: inherit;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-left-width: 0;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
}

.ab-vote-btn:first-child {
  border-left-width: 1px;
  border-radius: 4px 0 0 4px;
}

.ab-vote-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.ab-vote-btn:hover:not(:disabled) {
  border-color: var(--muted);
}

.ab-vote-btn:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}


.ab-vote-btn[aria-pressed="true"],
.ab-vote-btn.ab-vote-current {
  background: var(--link);
  border-color: var(--link);
  color: var(--bg);
  font-weight: 600;
}

.ab-vote-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.ab-vote-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ab-vote-tally {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.ab-vote-hint {
  margin-top: 0.3rem;
}

@media (pointer: coarse) {
  .ab-vote-btn {
    min-height: 44px;
  }
}



.ab-badge-area {
  margin-top: 0.4rem;
}

.ab-badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--link);
  border-radius: 999px;
  background: var(--surface);
  color: var(--link);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ab-badge-support-changed {
  border-color: #a06a1f;
  color: #a06a1f;
  border-style: dashed;
}

@media (prefers-color-scheme: dark) {
  .ab-badge-support-changed {
    border-color: #d9a441;
    color: #d9a441;
  }
}

.ab-badge-detail {
  margin: 0.3rem 0 0;
}



@media (prefers-reduced-motion: no-preference) {
  .ab-gutter .ab-card-shell {
    transition: top 160ms ease-out;
  }
}



.ab-chapter-composer {
  display: block;
  margin: 2rem 0 0;
  padding: 1rem 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ab-chapter-heading {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.ab-chapter-authbar {
  margin-bottom: 0.6rem;
}

.ab-chapter-help {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.ab-chapter-form {
  display: block;
}


.ab-chapter-text {
  min-height: 22rem;
  resize: vertical;
  line-height: 1.6;
}

.ab-chapter-actions,
.ab-chapter-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}


.ab-chapter-publish-actions {
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
}

.ab-chapter-status {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.ab-chapter-denied {
  margin: 0;
}


.ab-new-chapter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  margin: 1rem 0;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
}

.ab-new-chapter:hover {
  text-decoration: underline;
}


.ab-drafts {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--draft-border);
  border-radius: 6px;
  background: var(--draft-bg);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.ab-drafts-heading {
  margin: 0;
  font-size: 1.1rem;
}

.ab-drafts-note {
  margin: 0.3rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.ab-draft-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-draft-item {
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
}

.ab-draft-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.ab-draft-title {
  font-weight: 600;
}

.ab-draft-revision {
  color: var(--muted);
  font-size: 0.78rem;
}

.ab-draft-panel .ab-chapter-composer {
  margin-top: 0.8rem;
  background: var(--bg);
}


.ab-chapter-composer .ab-input:focus-visible,
.ab-chapter-composer .ab-btn:focus-visible,
.ab-draft-review:focus-visible,
.ab-new-chapter:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

@media (pointer: coarse) {
  .ab-new-chapter {
    min-height: 44px;
    min-width: 44px;
  }
}


.ab-settings-body {
  display: block;
}

.ab-settings-authbar {
  margin-bottom: 1rem;
}

.ab-settings-denied {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 60ch;
}

.ab-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 46rem;
}

.ab-settings-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.ab-settings-heading {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.ab-settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ab-field-hint {
  font-size: 0.85rem;
  opacity: 0.8;
}

.ab-settings-publication {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.ab-settings-legend {
  padding: 0 0.35rem;
  font-weight: 600;
}

.ab-license-summary {
  margin: 0;
  font-size: 0.9rem;
  max-width: 60ch;
}



.ab-governance-intro,
.ab-governance-source,
.ab-governance-empty {
  margin: 0;
  max-width: 62ch;
}

.ab-governance-source {
  font-size: 0.9rem;
  opacity: 0.9;
}

.ab-governance-bootstrap {
  padding: 0.5rem 0.7rem;
  border: 1px dashed var(--border);
  border-radius: 4px;
  opacity: 1;
}

.ab-rule {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.ab-rule-name {
  margin: 0;
  font-size: 0.95rem;
}

.ab-rule-lead,
.ab-rule-outcome {
  margin: 0;
  max-width: 62ch;
}

.ab-rule-clauses {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-rule-clause {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--border);
}

.ab-clause-text {
  font-weight: 600;
}

.ab-clause-explain {
  margin: 0;
  font-size: 0.85rem;
  max-width: 60ch;
  opacity: 0.85;
}

.ab-clause-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 12rem;
}

.ab-field-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ab-human-maintainer-note {
  margin: 0;
  font-size: 0.85rem;
  max-width: 60ch;
  opacity: 0.85;
}



.ab-guarded-consequence {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #a03434;
  border-radius: 4px;
  color: #a03434;
  font-size: 0.9rem;
  max-width: 62ch;
}

.ab-settings-confirm {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem;
  border: 2px solid #a03434;
  border-radius: 6px;
}

.ab-confirm-heading {
  margin: 0;
  font-size: 1rem;
  color: #a03434;
}

.ab-confirm-breaks {
  margin: 0;
  max-width: 62ch;
}

@media (prefers-color-scheme: dark) {
  .ab-guarded-consequence {
    border-color: #e09a9a;
    color: #e09a9a;
  }

  .ab-settings-confirm {
    border-color: #e09a9a;
  }

  .ab-confirm-heading {
    color: #e09a9a;
  }
}



.ab-settings-status:empty {
  display: none;
}

.ab-settings-status {
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.ab-settings-error {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #a03434;
  border-radius: 4px;
  color: #a03434;
  max-width: 62ch;
}

.ab-settings-issues {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.ab-settings-pending {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px dashed var(--border);
  border-radius: 4px;
  max-width: 62ch;
}

.ab-settings-readonly {
  margin-top: 1.5rem;
  max-width: 46rem;
}

.ab-readonly-summary {
  cursor: pointer;
  font-weight: 600;
}

.ab-readonly-intro {
  margin: 0.5rem 0;
  max-width: 62ch;
}

.ab-readonly-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.1rem;
  max-width: 62ch;
}

.ab-settings-form :focus-visible,
.ab-settings-readonly :focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

@media (pointer: coarse) {
  .ab-settings-form .ab-input,
  .ab-settings-form .ab-btn,
  .ab-settings-confirm .ab-btn {
    min-height: 44px;
  }

  .ab-field-check input[type="checkbox"] {
    width: 24px;
    height: 24px;
  }

  .ab-field-check {
    min-height: 44px;
  }
}



.ab-override {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.ab-override-tally {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.ab-override-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.ab-override-role {
  font-variant-numeric: tabular-nums;
}

.ab-override-actions {
  margin-top: 0.4rem;
}

.ab-override-btn:focus-visible,
.ab-override-confirm:focus-visible,
.ab-override-cancel:focus-visible,
.ab-override-reason:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.ab-override-btn[hidden] {
  display: none;
}


.ab-override-form[hidden] {
  display: none;
}

.ab-override-form {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

@media (pointer: coarse) {
  .ab-override-btn,
  .ab-override-confirm,
  .ab-override-cancel {
    min-width: 44px;
    min-height: 44px;
  }

  .ab-override-reason {
    min-height: 44px;
  }
}



.ab-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.ab-account-who {
  font-weight: 600;
}

.ab-account-link,
.ab-account-signin {
  text-decoration: none;
}

.ab-account-link:hover,
.ab-account-link:focus-visible,
.ab-account-signin:hover,
.ab-account-signin:focus-visible {
  text-decoration: underline;
}


.ab-account-signout {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.ab-account-signout[disabled] {
  cursor: default;
  opacity: 0.6;
}



.chapter-reading-layout.ab-reading-layout {
  position: relative;
  display: grid;
  container-type: inline-size;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 1.35fr);
  gap: 44px;
  align-items: start;
}

.ab-reader-controls {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 7px;
  justify-self: end;
}

authorbot-reader-controls {
  display: block;
  width: 75px;
  min-width: 75px;
  height: 34px;
  min-height: 34px;
}

authorbot-chapter-summary-editor {
  display: block;
  min-height: 34px;
  margin-top: 0.7rem;
}

authorbot-chapter-summary-editor[hidden] {
  display: none;
}

.ab-reader-control {
  display: inline-flex;
  width: 34px;
  min-width: 34px;
  height: 34px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--border-default, var(--border));
  border-radius: 999px;
  background: var(--surface-card, var(--bg));
  color: var(--text-muted, var(--muted));
  font: 600 11px/1.2 var(--font-display, system-ui, sans-serif);
  cursor: pointer;
}

.ab-reader-control[hidden] {
  display: none;
}

.ab-reader-control:hover,
.ab-reader-control[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--blue-500, var(--link)) 55%, transparent);
  color: var(--text-strong, var(--fg));
}

.ab-reader-control-glyph {
  display: block;
  box-sizing: border-box;
  width: 17px;
  height: 17px;
  color: var(--text-link, var(--link));
  opacity: 1;
}

.ab-reader-control-panel-glyph {
  position: relative;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.ab-reader-control-panel-glyph::after {
  position: absolute;
  top: -2px;
  right: 4px;
  bottom: -2px;
  width: 2px;
  background: currentColor;
  content: "";
}

.ab-reader-control-full-glyph {
  background:
    linear-gradient(currentColor, currentColor) left top / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 7px no-repeat;
}

.chapter-reading-layout.ab-reading-layout[data-notes-visibility="hidden"] {
  grid-template-columns: minmax(0, 1fr);
}

.chapter-reading-layout.ab-reading-layout[data-notes-visibility="hidden"] > .ab-gutter,
.chapter-reading-layout.ab-reading-layout > .ab-gutter[hidden] {
  display: none;
}

.chapter-reading-layout.ab-reading-layout[data-notes-visibility="hidden"] .ab-block-ui {
  right: -3.35rem;
  left: auto;
}

.chapter-reading-layout.ab-reading-layout[data-notes-visibility="hidden"] .ab-marker-icon {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 999px;
}

.ab-marker-icon .ab-inline-icon {
  width: 16px;
  height: 16px;
}

.ab-note-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 48px));
  max-height: min(70vh, 620px);
  padding: 4px 4px 12px;
  overflow-y: auto;
  border: 0;
  background: transparent;
}

.ab-note-popover-card-close {
  display: inline-grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -6px -7px 0 0;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-strong, var(--fg)) 6%, transparent);
  color: var(--text-strong, var(--fg));
  cursor: pointer;
}

.ab-note-popover-card-close:hover {
  background: var(--surface-raised, var(--surface));
}

.ab-note-popover-card-close .ab-inline-icon {
  width: 15px;
  height: 15px;
}

.ab-note-popover .ab-card-shell {
  position: static;
}

.ab-note-popover-card {
  box-shadow: var(--shadow-lg, 0 16px 45px rgb(0 0 0 / 28%));
}

.chapter-reading-layout.ab-reading-layout[data-reader-width="current"][data-notes-visibility="hidden"]
  > .chapter-reading-column {
  justify-self: center;
}

.chapter-reading-layout.ab-reading-layout[data-reader-width="full"]
  > .chapter-reading-column {
  width: 100%;
  max-width: none;
}

.ab-enabled .chapter-reading-layout.ab-reading-layout[data-reader-width="full"]
  .chapter {
  max-width: none;
}

.ab-enabled .chapter-reading-layout.ab-reading-layout[data-reader-width="full"]
  .prose {
  max-width: none;
}

.chapter-reading-column {
  min-width: 0;
}

.chapter-reading-layout.ab-reading-layout .chapter {
  max-width: 64ch;
}

.chapter-reading-layout.ab-reading-layout .chapter-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle, var(--border));
}

.chapter-reading-layout.ab-reading-layout .chapter-header h1 {
  margin: 0.4rem 0 0;
  color: var(--text-strong, var(--fg));
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.chapter-reading-layout.ab-reading-layout .prose {
  color: var(--text-body, var(--fg));
  font-family: var(--font-body, "Source Serif 4", Georgia, serif);
  font-size: 19px;
  line-height: 34px;
  text-wrap: pretty;
}

.chapter-reading-layout.ab-reading-layout .prose p {
  margin-bottom: 1.35em;
}

.chapter-reading-layout.ab-reading-layout .prose blockquote {
  border-left-color: var(--blue-500, var(--link));
  background: var(--tint-primary, var(--surface));
  color: var(--text-muted, var(--muted));
}

.chapter-reading-layout.ab-reading-layout .prose pre {
  border-color: var(--border-default, var(--border));
  border-radius: 9px;
  background: var(--gray-950, #141210);
  box-shadow: var(--shadow-block, none);
}

.ab-reading-layout > authorbot-collab {
  display: block;
  grid-row: 1;
  grid-column: 2;
  width: 100%;
  min-width: 320px;
  min-height: 1px;
}

.chapter-reading-layout.ab-reading-layout[data-notes-visibility="hidden"]
  > authorbot-collab {
  display: none;
}

.chapter-reading-layout.ab-reading-layout > .ab-gutter {
  position: relative;
  z-index: 4;
  top: auto;
  left: auto;
  align-self: stretch;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-width: 0;
  max-width: 460px;
  height: auto;
  max-height: none;
  padding: 0 3px 18px;
}

.ab-rail-head {
  position: sticky;
  z-index: 200;
  top: 69px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 4px;
  padding: 8px 0;
  background: var(--surface-page, var(--bg));
  box-shadow: 0 1px 0 var(--border-subtle, var(--border));
}

.ab-note-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ab-note-nav-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border-default, var(--border));
  border-radius: 7px;
  background: var(--surface-card, var(--bg));
  color: var(--text-body, var(--fg));
  font: 700 19px/1 system-ui, sans-serif;
  cursor: pointer;
}

.ab-note-nav-btn:hover:not(:disabled),
.ab-note-nav-btn:focus-visible {
  border-color: var(--blue-500, var(--link));
  outline: 0;
}

.ab-note-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ab-rail-eyebrow,
.ab-rail-count,
.ab-card-date,
.ab-reply-date {
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint, var(--muted));
}

.ab-rail-count {
  min-width: 48px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-selected, var(--surface));
  color: var(--text-body, var(--fg));
  text-align: center;
}

.ab-gutter .ab-authbar {
  margin: 0 0 12px;
  padding: 7px 10px;
  border-color: var(--border-subtle, var(--border));
  border-radius: 7px;
  background: var(--surface-sunken, var(--surface));
  color: var(--text-muted, var(--muted));
  font: 500 11px/1.4 var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
}

.ab-gutter .ab-card-shell {
  z-index: var(--ab-anchor-depth, 1);
  border: 1px solid var(--border-default, var(--border));
  border-radius: 10px;
  background: var(--surface-card, var(--bg));
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.16));
}

.ab-gutter .ab-card.ab-note-expanded,
.ab-gutter .ab-card.ab-active,
.ab-gutter .ab-card:focus-within {
  z-index: 100;
}

.ab-gutter .ab-card {
  padding: 14px 16px;
  color: var(--text-body, var(--fg));
  cursor: pointer;
  transition:
    border-color 160ms ease-out,
    background 160ms ease-out,
    box-shadow 160ms ease-out;
}

.ab-gutter .ab-card.ab-active,
.ab-gutter .ab-card.ab-hovered {
  border-color: var(--blue-500, var(--link));
  background: var(--surface-raised, var(--surface));
  box-shadow: var(--shadow-md, 0 10px 28px rgba(0, 0, 0, 0.18));
}

.ab-card:focus-visible,
.ab-card.ab-active {
  outline: 0;
}

.ab-card-head {
  min-height: 22px;
  gap: 7px;
}

.ab-card-head .ab-author {
  color: var(--text-muted, var(--muted));
  font: 600 12px/1.3 var(--font-display, "Space Grotesk", system-ui, sans-serif);
}

.ab-card-date {
  margin-left: auto;
  letter-spacing: 0;
  text-transform: none;
}

.ab-card-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.ab-chip {
  border: 0;
  border-radius: 999px;
  background: var(--tint-neutral, var(--surface));
  color: var(--on-tint-neutral, var(--muted));
  font: 650 9px/1.3 var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  letter-spacing: 0.07em;
}

.ab-kind-comment {
  background: var(--tint-primary, var(--surface));
  color: var(--blue-200, var(--link));
}

.ab-kind-suggestion {
  background: var(--tint-accent, var(--surface));
  color: var(--orange-300, #f5a06f);
}

.ab-card .ab-quote {
  margin: 10px 0 0;
  padding: 0 0 0 10px;
  border-left: 2px solid var(--border-strong, var(--border));
  background: transparent;
  color: var(--text-muted, var(--muted));
  font: italic 14px/1.55 var(--font-body, "Source Serif 4", Georgia, serif);
}

.ab-card .ab-body {
  margin: 13px 0 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--text-body, var(--fg));
  font: 400 15px/1.55 var(--font-body, "Source Serif 4", Georgia, serif);
}

.ab-suggestion-diff {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid var(--border-default, var(--border));
  border-radius: 8px;
  background: var(--surface-sunken, var(--bg));
  font: 400 13px/1.55 var(--font-body, "Source Serif 4", Georgia, serif);
  overflow-wrap: anywhere;
}

.ab-suggestion-diff > del,
.ab-suggestion-diff > ins {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ab-diff-original {
  color: var(--red-400, #ef7d75);
  text-decoration-thickness: 1px;
}

.ab-diff-replacement {
  color: var(--green-400, #62c889);
  text-decoration: none;
}


.ab-card.ab-promoted,
.ab-gutter .ab-card.ab-promoted,
.ab-drawer-panel .ab-card.ab-promoted {
  border-color: var(--green-400, #62c889);
  background: color-mix(
    in srgb,
    var(--green-400, #62c889) 16%,
    var(--surface-card, var(--bg))
  );
  box-shadow: none;
}

.ab-card.ab-promoted:focus-visible {
  border-color: var(--green-400, #62c889);
  outline: 2px solid var(--green-400, #62c889);
  outline-offset: 2px;
}

.ab-card.ab-promoted.ab-active {
  border-color: var(--green-400, #62c889);
  outline: 0;
}

.ab-accepted-badge {
  background: var(--green-400, #62c889);
  color: var(--gray-950, #101812);
}

.ab-card-accepted-row {
  display: flex;
  margin-top: 7px;
}

.ab-card.ab-promoted .ab-suggestion-diff {
  box-sizing: border-box;
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
  border: 0;
  background: color-mix(in srgb, var(--green-400, #62c889) 8%, transparent);
}

@media (pointer: coarse) {
  .ab-note-nav-btn {
    width: 44px;
    height: 44px;
  }
}

.ab-inline-highlight {
  margin: 0;
  padding: 0.04em 0.08em;
  border-radius: 3px;
  color: inherit;
  cursor: pointer;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background 140ms ease-out, box-shadow 140ms ease-out;
}

::highlight(ab-composer-selection) {
  background: color-mix(in srgb, var(--blue-500, var(--link)) 34%, transparent);
  color: inherit;
}

.ab-highlight-comment {
  background: var(--tint-primary, rgba(66, 88, 222, 0.18));
  box-shadow: inset 0 -2px 0 var(--blue-500, var(--link));
}

.ab-highlight-suggestion {
  background: var(--tint-accent, rgba(242, 119, 46, 0.17));
  box-shadow: inset 0 -2px 0 var(--orange-500, #f2772e);
}

.ab-highlight-active.ab-highlight-comment {
  background: color-mix(in srgb, var(--blue-500, var(--link)) 28%, transparent);
}

.ab-highlight-active.ab-highlight-suggestion {
  background: color-mix(in srgb, var(--orange-500, #f2772e) 28%, transparent);
}

.ab-prose .ab-target {
  background: transparent;
  outline: 1px solid var(--blue-500, var(--link));
  outline-offset: 5px;
}

.ab-seltool {
  position: fixed;
  z-index: 60;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: 9px;
  background: var(--surface-card, var(--bg));
  box-shadow: var(--shadow-lg, 0 16px 45px rgba(0, 0, 0, 0.28));
  transform: translate(-50%, -100%);
  animation: ab-pop 140ms ease-out;
}

.ab-seltool .ab-btn {
  min-height: 34px;
  border: 0;
  background: transparent;
}

.ab-seltool .ab-btn:hover {
  background: var(--surface-selected, var(--surface));
}

@keyframes ab-pop {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-100% + 5px)) scale(0.98);
  }
}

.ab-composer {
  animation: ab-fade-in 180ms ease-out;
}

.ab-composer-title {
  margin: 0 0 9px;
  color: var(--text-strong, var(--fg));
  font: 650 15px/1.3 var(--font-display, "Space Grotesk", system-ui, sans-serif);
}

.ab-kinds {
  display: flex;
  gap: 4px;
  margin: 12px 0;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-sunken, var(--surface));
}

.ab-kind {
  flex: 1;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--text-muted, var(--muted));
  font: 600 12px/1.3 var(--font-display, "Space Grotesk", system-ui, sans-serif);
  text-align: center;
  cursor: pointer;
}

.ab-kind:has(input:checked) {
  background: var(--surface-selected, var(--surface));
  color: var(--text-strong, var(--fg));
}

.ab-kind input {
  accent-color: var(--blue-500, var(--link));
}

.ab-textarea,
.ab-input {
  border-color: var(--border-default, var(--border));
  border-radius: 7px;
  background: var(--surface-sunken, var(--bg));
  color: var(--text-strong, var(--fg));
}

.ab-textarea:focus,
.ab-input:focus {
  border-color: var(--border-focus, var(--blue-500, var(--link)));
  outline: 0;
  box-shadow: var(--ring, 0 0 0 3px rgba(66, 88, 222, 0.22));
}

.ab-composer .ab-textarea,
.ab-reply-form .ab-textarea {
  min-height: 86px;
  resize: vertical;
}

.ab-btn {
  border-color: var(--border-default, var(--border));
  border-radius: 7px;
  background: var(--surface-raised, var(--surface));
  color: var(--text-body, var(--fg));
  font: 600 12px/1.3 var(--font-display, "Space Grotesk", system-ui, sans-serif);
  transition: filter 120ms ease-out, transform 120ms ease-out;
}

.ab-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.ab-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.ab-primary {
  border-color: var(--blue-600, var(--link));
  background: var(--blue-600, var(--link));
  color: var(--gray-50, white);
}

.ab-vote-seg {
  gap: 8px;
}

.ab-vote-btn {
  min-height: 34px;
  border-left-width: 1px;
  border-radius: 7px;
  background: transparent;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
}

.ab-vote-btn:first-child,
.ab-vote-btn:last-child {
  border-radius: 7px;
}

.ab-vote-btn[data-vote="approve"] {
  border-color: var(--green-400, #62c889);
  color: var(--green-400, #62c889);
}

.ab-vote-btn[data-vote="reject"] {
  border-color: var(--red-400, #ef7d75);
  color: var(--red-400, #ef7d75);
}

.ab-vote-btn[data-vote="abstain"] {
  color: var(--text-muted, var(--muted));
}

.ab-vote-btn[aria-pressed="true"],
.ab-vote-btn.ab-vote-current {
  background: var(--surface-selected, var(--surface));
  color: var(--text-strong, var(--fg));
}

.ab-badge {
  border: 0;
  background: var(--tint-success, var(--surface));
  color: var(--on-tint-success, var(--green-400, var(--link)));
}

.ab-replies {
  margin-top: 14px;
  padding-left: 12px;
  border-left-color: var(--border-default, var(--border));
}

.ab-reply {
  margin: 12px 0;
}

.ab-reply-head {
  justify-content: space-between;
}

.ab-reply .ab-body {
  margin-top: 5px;
  font-size: 14px;
}

.ab-discussion-boundary {
  max-width: 680px;
  margin: 64px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle, var(--border));
}

.ab-discussion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ab-discussion-boundary h2 {
  margin: 0 0 8px;
  color: var(--text-strong, var(--fg));
  font: 650 25px/1.2 var(--font-display, "Space Grotesk", system-ui, sans-serif);
  letter-spacing: -0.025em;
}

.ab-discussion-copy {
  max-width: 58ch;
  margin: 0 0 12px;
  color: var(--text-muted, var(--muted));
  font: 400 15px/1.65 var(--font-body, "Source Serif 4", Georgia, serif);
}

.ab-discussion-composer:not(:empty) {
  margin: 18px 0;
}

.ab-discussion-composer .ab-composer,
.ab-discussion-thread {
  width: 100%;
  box-sizing: border-box;
}

.ab-discussion-threads {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.ab-discussion-thread {
  position: relative;
  padding: 18px 64px 18px 22px;
  border-color: var(--border-default, var(--border));
  border-radius: 10px;
  background: var(--surface-card, var(--bg));
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.14));
}

.ab-discussion-thread .ab-override-compact .ab-override-tally,
.ab-discussion-thread .ab-override-compact .ab-override-roles {
  display: none;
}

.ab-discussion-thread .ab-override-compact [data-override="promote"] {
  position: absolute;
  top: 14px;
  right: 16px;
  border-color: var(--green-400, #62c889);
  background: color-mix(in srgb, var(--green-400, #62c889) 10%, transparent);
  color: var(--green-400, #62c889);
}

.ab-discussion-thread .ab-override-compact .ab-override-actions {
  min-height: 0;
  margin: 0;
}

.ab-discussion-thread:focus-visible {
  outline: 2px solid var(--blue-500, var(--link));
  outline-offset: 3px;
}

.ab-discussion-empty {
  margin: 18px 0 0;
  color: var(--text-muted, var(--muted));
  font-size: 0.9rem;
}

.ab-discussion-empty[hidden],
.ab-discussion-more[hidden],
.ab-discussion-start[hidden] {
  display: none;
}

.ab-discussion-more {
  margin-top: 18px;
}

@keyframes ab-fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

@media (max-width: 959.9px) {
  .chapter-reading-layout.ab-reading-layout {
    display: block;
  }

  .ab-reading-layout > authorbot-collab {
    display: none;
  }

  .ab-reader-controls {
    justify-self: start;
  }

  .ab-discussion-boundary {
    margin-top: 48px;
  }

  .ab-discussion-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ab-discussion-start {
    width: 100%;
    min-height: 44px;
  }

  .ab-drawer {
    border-color: var(--border-default, var(--border));
    background: var(--surface-card, var(--bg));
    box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.24);
  }

  .ab-drawer-toggle {
    color: var(--text-link, var(--link));
    font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  }

  .ab-drawer-panel {
    max-height: min(68vh, 620px);
    border-color: var(--border-default, var(--border));
  }

  .ab-drawer-panel .ab-card-shell {
    border-radius: 10px;
    background: var(--surface-card, var(--bg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-card,
  .ab-btn,
  .ab-inline-highlight {
    transition: none;
  }

  .ab-seltool,
  .ab-composer {
    animation: none;
  }
}




.ab-prose .ab-note-target-preview {
  background: color-mix(in srgb, var(--blue-500, var(--link)) 8%, transparent);
  outline: 2px solid var(--blue-500, var(--link));
  outline-offset: 5px;
}

.ab-block-ui {
  z-index: 12;
}

.ab-authbar[hidden] {
  display: none;
}


.chapter-reading-layout.ab-reading-layout > .ab-gutter {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.ab-gutter .ab-rail-head,
.ab-gutter .ab-authbar {
  flex: 0 0 auto;
}

.ab-gutter .ab-cards {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  padding: 3px;
}


.ab-card-summary {
  display: none;
  gap: 7px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--text-body, var(--fg));
  font: 600 12px/1.45 var(--font-display, system-ui, sans-serif);
  text-align: left;
  cursor: pointer;
}

.ab-card-summary-author {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--tint-primary, var(--surface-raised, var(--surface)));
  color: var(--on-tint-primary, var(--text-strong, var(--fg)));
  font: 650 9px/1.3 var(--font-mono, ui-monospace, monospace);
}

.ab-card-summary-body {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-card.ab-note-collapsed {
  min-height: 32px;
  padding: 6px 8px;
}

.ab-card.ab-note-collapsed > :not(.ab-card-summary) {
  display: none;
}

.ab-card.ab-note-collapsed > .ab-card-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ab-note-collapse {
  display: inline-grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -6px -7px 0 0;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-strong, var(--fg)) 6%, transparent);
  color: var(--text-strong, var(--fg));
  cursor: pointer;
}

.ab-note-collapse:hover {
  background: var(--surface-raised, var(--surface));
  color: var(--text-strong, var(--fg));
}

.ab-note-collapse .ab-inline-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.35;
}

.ab-card-head-collapsible {
  cursor: pointer;
}

.ab-card-head-collapsible:hover .ab-note-collapse {
  background: color-mix(in srgb, var(--text-strong, var(--fg)) 12%, transparent);
  color: var(--green-300, var(--text-strong, var(--fg)));
}


.ab-inline-notes {
  display: none;
}

@media (max-width: 959.9px) {
  
  main.ab-enabled {
    padding-bottom: 0;
  }

  .ab-inline-notes:not(:empty) {
    display: block;
    width: 100%;
    margin: 0 0 0.75rem;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .ab-inline-notes-whole:not(:empty) {
    margin: 0 0 1.75rem;
  }

  .ab-inline-notes-block:not(:empty) {
    margin-top: -0.8rem;
  }

  .ab-inline-notes .ab-card-shell,
  .ab-inline-notes .ab-composer {
    position: static;
    width: 100%;
    margin: 0 0 6px;
    border: 1px solid var(--border-default, var(--border));
    border-radius: 8px;
    background: var(--surface-card, var(--bg));
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.14));
  }

  .ab-inline-notes .ab-card {
    padding: 10px 11px;
    color: var(--text-body, var(--fg));
  }

  .ab-inline-notes .ab-card-head,
  .ab-discussion-thread .ab-card-head {
    align-items: center;
  }

  .ab-inline-notes .ab-card.ab-note-collapsed {
    padding: 7px 9px;
  }

  .ab-inline-notes .ab-card .ab-body {
    margin-top: 8px;
    line-height: 1.45;
  }

  .ab-inline-notes .ab-votes {
    margin-top: 8px;
  }

  .ab-inline-notes .ab-vote-tally {
    margin-top: 2px;
    font-size: 11px;
  }

  .ab-inline-notes .ab-override {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    margin-top: 7px;
    padding-top: 7px;
  }

  .ab-inline-notes .ab-override-actions {
    margin-top: 0;
  }

  .ab-inline-notes .ab-actions {
    margin-top: 6px;
  }

}
