@layer brewery-work-items {
  @scope (.brewery) {
    /* Issue and pull-request worklists, threads, reviews, diffs, and responsive
   rules. Shared controls used here are owned by components.css. */
    .issue-head {
      padding: 0 0 0.9rem;
      margin: 0.2rem 0 1.1rem;
      border-bottom: 1px solid var(--line-strong);
    }
    .issue-head .issue-number {
      color: var(--muted);
      font-weight: 400;
      white-space: nowrap;
    }
    :is(.issue-page, .pull-page, .worklist-page, .new-pull-page) .repo-head {
      padding-bottom: 0;
    }
    :is(.issue-page, .pull-page, .worklist-page, .new-pull-page)
      :is(.repo-desc, .repo-stats-bar) {
      display: none;
    }
    .glyph {
      display: inline-block;
      width: 1rem;
      height: 1rem;
      flex: none;
      vertical-align: -0.15em;
    }
    .branch-ref {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      min-width: 0;
      max-width: 22rem;
      padding: 0.1rem 0.4rem;
      border-radius: 0.375rem;
      background: color-mix(in srgb, var(--fg) 9%, transparent);
      color: var(--fg);
      font-family: var(--mono);
      font-size: 0.75rem;
      line-height: 1.45;
      text-decoration: none;
      white-space: nowrap;
    }
    a.branch-ref:hover {
      background: color-mix(in srgb, var(--fg) 16%, transparent);
    }
    .branch-ref__name {
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .branch-ref--missing {
      color: var(--muted);
      text-decoration: line-through;
    }
    .branch-ref .glyph {
      width: 0.85rem;
      height: 0.85rem;
    }
    .branch-flow {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      min-width: 0;
      max-width: 100%;
    }
    .branch-flow .branch-ref {
      flex: none;
    }
    .branch-flow .branch-ref:last-child {
      flex: 0 1 auto;
    }
    .compare-propose .work-item-form-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem 1rem;
    }
    .branch-flow__arrow {
      display: inline-flex;
      flex: none;
      color: var(--muted);
    }
    .branch-flow__arrow .glyph {
      width: 0.9rem;
      height: 0.9rem;
    }
    .pull-review {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      color: var(--muted);
      white-space: nowrap;
    }
    .pull-review .glyph {
      width: 0.9rem;
      height: 0.9rem;
    }
    .pull-review--approved .glyph {
      color: var(--success);
    }
    .pull-review--changes .glyph {
      color: var(--danger);
    }
    .pull-review--required .glyph {
      color: var(--warning);
    }

    :is(.issue-page, .pull-page) .issue-head.work-head {
      margin: 1rem 0 1.25rem;
      padding-bottom: 1rem;
    }
    .work-head-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      margin: 0 0 0.55rem;
    }
    .issue-head.work-head .work-head-title {
      max-width: none;
      margin: 0;
      font-size: 1.5rem;
      font-weight: 600;
      line-height: 1.3;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }
    .work-head-top .pull-downloads {
      flex: none;
      align-self: flex-start;
    }
    .work-head-title .issue-number {
      font-weight: 400;
    }
    .work-head-summary {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.5rem 0.75rem;
      min-width: 0;
    }
    .work-head-summary .branch-flow {
      flex: 0 1 auto;
    }
    .work-head-summary .branch-ref {
      max-width: 42rem;
    }
    .badge.work-state {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.2rem 0.6rem;
      border-color: transparent;
      font-size: 0.8rem;
      letter-spacing: 0;
      text-transform: none;
    }
    .badge.work-state[class] {
      color: var(--bg);
    }
    .badge.work-state.state-open {
      background: var(--state-open);
    }
    .badge.work-state:is(.state-merged, .state-completed) {
      background: var(--state-merged);
    }
    .badge.work-state.state-closed {
      background: var(--danger);
    }
    .badge.work-state:is(.state-not-planned, .state-draft) {
      background: var(--muted);
    }
    .work-state .glyph {
      width: 0.9rem;
      height: 0.9rem;
    }
    .work-head-branches {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      min-width: 0;
    }
    .pull-branch-edit__toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.5rem;
      height: 1.5rem;
      min-height: 0;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: var(--radius);
      background: transparent;
      color: var(--muted);
      cursor: pointer;
    }
    .pull-branch-edit__toggle:hover,
    .pull-branch-edit__toggle:focus-visible {
      background: color-mix(in srgb, var(--fg) 9%, transparent);
      color: var(--fg);
    }
    .pull-branch-edit__toggle .glyph {
      width: 0.9rem;
      height: 0.9rem;
    }
    .work-head-byline {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0 0.3rem;
      color: var(--muted);
      font-size: 0.82rem;
    }
    .work-head-author,
    .work-head-person {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      color: var(--fg);
      font-weight: 600;
      text-decoration: none;
    }
    a:is(.work-head-author, .work-head-person):hover {
      text-decoration: underline;
    }
    .work-head-avatar {
      display: inline-flex;
      width: 1.15rem;
      height: 1.15rem;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent-strong);
      font-family: var(--mono);
      font-size: 0.6rem;
      font-weight: 800;
      object-fit: cover;
    }

    .badge.state-open {
      color: var(--state-open);
      border-color: var(--state-open);
      background: color-mix(in srgb, var(--state-open) 14%, transparent);
    }
    .badge.state-closed {
      color: var(--danger);
      border-color: var(--danger);
      background: color-mix(in srgb, var(--danger) 14%, transparent);
    }
    .badge.state-merged {
      color: var(--state-merged);
      border-color: var(--state-merged);
      background: color-mix(in srgb, var(--state-merged) 14%, transparent);
    }
    .patch-file-field {
      font-weight: 600;
    }
    .patch-file-field input[type="file"] {
      width: min(100%, 28rem);
    }
    .new-pull-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem 1rem;
      margin: 1.25rem 0 1rem;
    }
    .new-pull-head h1 {
      margin: 0;
      font-size: 1.35rem;
    }
    .worklist-links a[aria-current="page"] {
      background: color-mix(in srgb, var(--accent) 16%, transparent);
      color: var(--accent-strong);
    }
    .new-pull-form {
      margin: 0;
    }
    .new-pull-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 0.5rem;
    }
    .new-pull-actions .button {
      width: auto;
      margin: 0;
    }
    .issue-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 15rem;
      gap: 2.5rem;
      align-items: start;
    }
    .issue-main {
      min-width: 0;
    }
    .issue-sidebar {
      min-width: 0;
      font-size: 0.88rem;
    }
    .work-facts {
      display: grid;
      gap: 0.2rem;
      margin: 0;
      font-size: 0.82rem;
    }
    .work-facts > div,
    .property-fields > .property-picker {
      display: grid;
      grid-template-columns: 5.5rem minmax(0, 1fr);
      align-items: center;
      gap: 0.5rem;
      min-height: 2rem;
    }
    .work-facts dt,
    .property-fields .property-picker-label {
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 400;
      letter-spacing: 0;
      text-transform: none;
    }
    .work-facts dd {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.3rem 0.5rem;
      margin: 0;
      min-width: 0;
      padding: 0.25rem 0;
    }
    .work-facts .badge {
      text-decoration: none;
      text-transform: none;
      letter-spacing: 0;
    }
    .work-fact-person {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      color: var(--fg);
      font-weight: 600;
      text-decoration: none;
    }
    .work-fact-person:hover {
      text-decoration: underline;
    }
    .work-fact-avatar {
      display: inline-flex;
      width: 1.15rem;
      height: 1.15rem;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent-strong);
      font-family: var(--mono);
      font-size: 0.6rem;
      font-weight: 800;
      object-fit: cover;
    }
    .property-fields .property-picker-trigger {
      min-height: 2rem;
      padding: 0.25rem 0.4rem;
      margin-inline-start: -0.4rem;
      border-color: transparent;
      background: transparent;
    }
    .property-fields .property-picker-trigger:hover,
    .property-fields .property-picker-menu[open] > .property-picker-trigger {
      border-color: transparent;
      background: color-mix(in srgb, var(--fg) 8%, transparent);
    }
    .property-fields .property-chip {
      padding: 0.08rem 0.45rem;
      border: 1px solid var(--line-strong);
      background: transparent;
      color: var(--fg);
      font-size: 0.78rem;
      font-weight: 600;
    }
    .property-fields .property-picker-panel {
      inset-inline: -0.4rem 0;
      width: auto;
      min-width: 12rem;
    }
    .property-fields-save {
      justify-self: start;
      margin-top: 0.35rem;
    }
    .issue-comment {
      display: grid;
      grid-template-columns: 2.25rem minmax(0, 1fr);
      gap: 0.9rem;
      position: relative;
    }
    .issue-comment-avatar {
      position: relative;
      padding-top: 0.3rem;
    }
    .issue-comment-avatar .thread-avatar {
      width: 2.25rem;
      height: 2.25rem;
      border: 1px solid var(--line-strong);
      font-size: 0.85rem;
    }
    .issue-comment-card {
      min-width: 0;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius);
      background: var(--panel);
    }
    .issue-comment-head {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
      min-height: 2.85rem;
      padding: 0.5rem 1.1rem;
      border-bottom: 1px solid var(--line);
      background: var(--code-bg);
      border-radius: var(--radius) var(--radius) 0 0;
      font-size: 0.85rem;
    }
    .issue-comment-time {
      color: var(--muted);
      text-decoration: none;
    }
    .issue-comment-time:hover {
      text-decoration: underline;
    }
    .issue-comment-actions {
      margin-left: auto;
    }
    #issue-description .issue-comment-card {
      border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    }
    #issue-description .issue-comment-head {
      background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel));
    }
    .issue-page .thread-item-body {
      padding: 1.2rem 1.25rem 1.4rem;
      line-height: 1.7;
      min-width: 0;
      overflow-wrap: anywhere;
    }
    .issue-page .thread-item-body img {
      max-width: 100%;
      height: auto;
    }
    .issue-page .thread-item-body :is(pre, table) {
      max-width: 100%;
      overflow-x: auto;
    }
    .issue-page .thread-item-body table {
      display: block;
      overflow-wrap: normal;
    }
    .issue-conversation-heading {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      margin: 1.9rem 0 1.1rem 3.15rem;
      font-size: 0.95rem;
      font-weight: 650;
    }
    .issue-conversation-heading span {
      color: var(--muted);
      font-size: 0.8rem;
      font-weight: 400;
    }
    .issue-page .issue-thread {
      gap: 1.25rem;
    }
    .issue-comment-avatar > * {
      position: relative;
      z-index: 1;
    }
    .issue-page
      .issue-thread:not(.issue-description)
      .issue-comment:not(:last-child)
      .issue-comment-avatar::after {
      position: absolute;
      top: calc(0.3rem + 1.125rem);
      bottom: -1.25rem;
      inset-inline-start: 1.125rem;
      z-index: 0;
      width: 1px;
      background: var(--line-strong);
      content: "";
    }
    .issue-reactions {
      display: flex;
      gap: 0.5rem;
      margin-left: 3.15rem;
    }
    .issue-reactions:empty {
      display: none;
    }
    .issue-page .discussion-composer {
      margin: 1.5rem 0 0 3.15rem;
      overflow: visible;
      border: 0;
      background: transparent;
    }
    .issue-page .discussion-composer form {
      grid-template-columns: minmax(0, 1fr);
      padding: 0;
    }
    .issue-page .discussion-composer .md-editor {
      width: 100%;
      border-color: var(--line-strong);
    }
    .issue-page .discussion-composer .md-editor:focus-within {
      border-color: var(--accent);
    }
    .composer-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .composer-actions .button {
      width: auto;
      margin: 0;
    }
    .split-button {
      display: inline-flex;
    }
    .split-button > .button {
      border-start-end-radius: 0;
      border-end-end-radius: 0;
    }
    .split-button-menu > summary {
      display: inline-flex;
      align-items: center;
      height: 100%;
      padding-inline: 0.5rem;
      border-inline-start: 0;
      border-start-start-radius: 0;
      border-end-start-radius: 0;
    }
    .split-button-menu > summary .glyph {
      width: 0.85rem;
      height: 0.85rem;
    }
    .split-button-menu .menu__panel {
      bottom: calc(100% + 0.4rem);
      top: auto;
      min-width: 0;
    }
    .split-button-menu .menu__item {
      min-height: 0;
      font-size: 0.85rem;
      font-weight: 600;
      white-space: nowrap;
    }
    .issue-page .discussion-composer .md-input {
      min-height: 10rem;
    }
    .issue-page .discussion-composer .feedback:empty {
      display: none;
    }
    .issue-signin {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      margin: 1.5rem 0 0 3.15rem;
      padding-top: 1rem;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 0.88rem;
    }
    .issue-page .comment-form-actions {
      align-items: center;
      flex-wrap: wrap;
    }
    @media (max-width: 1100px) {
      .issue-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
      }
      .issue-sidebar {
        padding-top: 1rem;
        border-top: 1px solid var(--line);
      }
      .issue-sidebar .work-facts {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        column-gap: 1.25rem;
      }
    }
    @media (max-width: 540px) {
      .issue-comment {
        grid-template-columns: 1.65rem minmax(0, 1fr);
        gap: 0.55rem;
      }
      .issue-comment-avatar .thread-avatar {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 0.7rem;
      }
      .issue-comment-head {
        padding-inline: 0.75rem;
      }
      .issue-page
        .issue-thread:not(.issue-description)
        .issue-comment:not(:last-child)
        .issue-comment-avatar::after {
        top: calc(0.3rem + 0.825rem);
        inset-inline-start: 0.825rem;
      }
      .issue-page .thread-item-body {
        padding: 0.9rem;
      }
      .issue-conversation-heading,
      .issue-reactions,
      .issue-signin,
      .issue-page .discussion-composer {
        margin-left: 2.2rem;
      }
      .issue-page .comment-form-actions {
        align-items: stretch;
        flex-direction: column;
      }
      .issue-page .comment-form-actions > * {
        width: 100%;
      }
      .issue-page .comment-form-actions .menu__panel {
        inset-inline: 0;
        width: 100%;
      }
    }
    .issue-thread {
      list-style: none;
      margin: 0 0 1.2rem;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }
    .thread-item {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--panel);
    }
    .thread-item-head {
      display: flex;
      gap: 0.45rem;
      align-items: center;
      padding: 0.55rem 0.9rem;
      border-bottom: 1px solid var(--line);
      background: var(--code-bg);
      font-size: 0.88rem;
    }
    .thread-avatar {
      width: 1.65rem;
      height: 1.65rem;
      flex: 0 0 auto;
      border-radius: 50%;
      object-fit: cover;
      background: var(--accent-soft);
      color: var(--accent-strong);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 800;
    }
    .comment-actions-wrap {
      margin-left: auto;
    }
    .comment-actions {
      display: inline-flex;
      width: 1.9rem;
      height: 1.9rem;
      min-height: 0;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--muted);
    }
    .comment-actions:hover,
    .comment-actions:focus-visible {
      background: var(--accent-soft);
      color: var(--accent-strong);
    }
    .comment-actions .brewery-icon {
      width: 1rem;
      height: 1rem;
    }
    .comment-action-menu {
      min-width: 8rem;
    }
    .comment-action-menu button {
      display: block;
      width: 100%;
      min-height: 2rem;
      padding: 0.3rem 0.55rem;
      border: 0;
      border-radius: calc(var(--radius) - 0.1rem);
      background: transparent;
      color: var(--fg);
      font-weight: 600;
      line-height: inherit;
      text-align: left;
    }
    .comment-action-menu button:hover,
    .comment-action-menu button:focus-visible {
      background: var(--accent-soft);
    }
    .comment-action-menu .comment-action-delete {
      color: var(--danger);
    }
    .comment-modal {
      width: min(100% - 2rem, 42rem);
      max-height: min(80vh, 42rem);
      margin: auto;
      padding: 0;
      border: 1px solid var(--line-strong);
      border-radius: calc(var(--radius) + 0.2rem);
      background: var(--panel);
      color: var(--fg);
      box-shadow: var(--shadow-pop);
    }
    .comment-modal::backdrop {
      background: rgb(0 0 0 / 45%);
    }
    .comment-modal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.8rem 1rem;
      border-bottom: 1px solid var(--line);
      background: var(--code-bg);
    }
    .comment-modal-head h2 {
      margin: 0;
      font-size: 1rem;
    }
    .comment-modal-close {
      width: 2rem;
      height: 2rem;
      min-height: 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--muted);
      font-size: 1.25rem;
      line-height: 1;
    }
    .comment-modal-close:hover {
      background: var(--accent-soft);
      color: var(--fg);
    }
    .comment-modal > form {
      display: block;
      margin: 0;
      padding: 1rem;
    }
    .comment-modal .md-editor,
    .comment-modal .md-input {
      width: 100%;
    }
    .comment-modal .md-input textarea {
      width: 100%;
      min-height: 12rem;
    }
    .comment-modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 0.5rem;
      margin-top: 0.75rem;
    }
    .comment-modal-actions button,
    .comment-delete-form button {
      width: auto;
    }
    .comment-delete-form {
      border-top: 1px solid var(--line);
    }
    .pull-reviews {
      display: grid;
      gap: 0.75rem;
    }
    .pull-reviews > h3,
    .pull-reviews > p {
      margin: 0;
    }
    .reviewer-picker > summary,
    .pull-reviews > h3 {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 0;
      min-height: 2.75rem;
      padding: 0;
      font-size: 0.88rem;
      font-weight: 650;
      list-style: none;
    }
    .reviewer-picker > summary {
      cursor: pointer;
    }
    .reviewer-picker > summary::-webkit-details-marker {
      display: none;
    }
    .reviewer-picker > summary:hover {
      color: var(--accent-strong);
    }
    .reviewer-picker > summary::after {
      content: "";
      width: 0.4rem;
      height: 0.4rem;
      margin-inline: 0.25rem;
      flex: none;
      border-right: 1.5px solid var(--muted);
      border-bottom: 1.5px solid var(--muted);
      transform: rotate(45deg) translateY(-0.15rem);
    }
    .reviewer-picker[open] > summary::after {
      transform: rotate(225deg) translate(-0.1rem, -0.1rem);
    }
    .reviewer-picker .property-picker-panel {
      inset-inline-start: 0;
      inset-inline-end: auto;
      width: 100%;
      box-sizing: border-box;
    }
    .reviewer-picker-title {
      padding: 0.25rem 0.4rem;
      font-size: 0.85rem;
    }
    .reviewer-picker form,
    .reviewer-remove {
      margin: 0;
    }
    .reviewer-option {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      width: 100%;
      padding: 0.5rem;
      border: 0;
      background: transparent;
      color: var(--fg);
      text-align: start;
      font-size: 0.85rem;
      line-height: 1.4;
    }
    .reviewer-option:hover,
    .reviewer-option:focus-visible {
      background: var(--accent-soft);
    }
    .reviewer-option .avatar,
    .reviewer-row .avatar {
      flex: none;
    }
    .reviewer-option-copy,
    .reviewer-copy {
      display: grid;
      flex: 1;
      min-width: 0;
      gap: 0.1rem;
    }
    .reviewer-option-copy > span,
    .reviewer-status,
    .reviewer-empty,
    .reviewer-picker-empty {
      color: var(--muted);
      font-size: 0.8rem;
      font-weight: 400;
    }
    .reviewer-selection {
      width: 0.9rem;
      height: 0.9rem;
      flex: none;
    }
    .reviewer-option[aria-pressed="true"] .reviewer-selection {
      width: 0.35rem;
      height: 0.65rem;
      margin-inline: 0.2rem;
      border-right: 2px solid var(--success);
      border-bottom: 2px solid var(--success);
      transform: rotate(45deg);
    }
    .reviewer-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 0.85rem;
    }
    .reviewer-row {
      display: flex;
      align-items: center;
      gap: 0.55rem;
    }
    .reviewer-copy a {
      color: var(--fg);
      font-size: 0.85rem;
      overflow-wrap: anywhere;
    }
    .reviewer-copy a.reviewer-status {
      color: var(--muted);
      font-size: 0.8rem;
      text-decoration: none;
    }
    .reviewer-copy a.reviewer-status:hover {
      color: var(--accent-strong);
      text-decoration: underline;
    }
    .reviewer-remove button {
      width: 1.75rem;
      height: 1.75rem;
      min-height: 0;
      margin: 0;
      padding: 0;
      border: 0;
      color: var(--muted);
      background: transparent;
      font-size: 1.1rem;
      font-weight: 600;
      line-height: inherit;
    }
    .reviewer-remove button:hover {
      color: var(--danger);
      background: var(--accent-soft);
    }
    .review-composer {
      max-width: 52rem;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--panel);
    }
    .review-composer-head {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.55rem 0.8rem;
      border-bottom: 1px solid var(--line);
      background: var(--code-bg);
      font-size: 0.88rem;
    }
    .review-composer-head .muted {
      font-size: 0.82rem;
    }
    .review-form {
      display: grid;
      gap: 0;
      margin: 0;
    }
    .review-form textarea {
      width: 100%;
      min-height: 8rem;
      margin: 0;
      border: 0;
      border-radius: 0;
      resize: vertical;
    }
    .review-form-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.65rem;
      padding: 0.55rem 0.65rem;
      border-top: 1px solid var(--line);
      background: var(--code-bg);
    }
    .review-verdict {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      margin: 0;
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 650;
    }
    .review-verdict select {
      width: auto;
      margin: 0;
    }
    .review-form .form-action {
      width: auto;
      margin: 0;
      white-space: nowrap;
    }
    .review-composer > .muted {
      display: block;
      margin: 0;
      padding: 0.45rem 0.8rem;
      border-top: 1px solid var(--line);
      font-size: 0.82rem;
    }
    .thread-item-body {
      padding: 1rem 1.1rem;
    }
    .thread-item-body :first-child {
      margin-top: 0;
    }
    .thread-item-body :last-child {
      margin-bottom: 0;
    }
    .issues-list {
      padding: 0;
      margin: 0 0 1rem;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      list-style: none;
    }
    .issues-list > li {
      padding: 0.65rem 0.85rem;
      border-bottom: 1px solid var(--line);
    }
    .issues-list > li:last-child {
      border-bottom: 0;
    }
    .repo-row:hover,
    .issue-card:hover {
      background: var(--accent-soft);
    }
    .label-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      justify-content: flex-end;
    }
    .mermaid-diagram {
      display: block;
      width: auto;
      max-width: 100%;
      height: auto;
      padding: 1rem;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      margin: 0.75rem auto;
    }
    .mermaid-diagram > img {
      display: block;
      width: auto;
      max-width: 100%;
      height: auto;
      max-height: 28rem;
      margin-inline: auto;
    }
    math {
      font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", math;
      color: var(--fg);
      font-size: 1.05em;
    }
    math[display="block"] {
      max-width: 100%;
      overflow-x: auto;
      margin: 1rem auto;
      padding: 1rem;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      font-size: 1.125em;
    }
    math mtext {
      font-family: "Brewery Sans", ui-sans-serif, system-ui, sans-serif;
    }
    math mtext code {
      font-family: var(--mono);
    }
    math .math-core-serif-font {
      font-family: serif;
    }
    math .math-core-sans-serif-font {
      font-family: sans-serif;
    }
    math mtd {
      padding: 0.5ex 0.4em;
    }
    math mtr > mtd:first-child {
      padding-left: 0;
    }
    math mtr > mtd:last-child {
      padding-right: 0;
    }
    math merror.math-core-unknown-cmd {
      border: unset;
      background-color: unset;
      color: var(--danger);
    }
    @supports (not (-webkit-backdrop-filter: blur(1px))) and
      (not (-moz-appearance: none)) {
      math menclose {
        position: relative;
        padding: 0.5ex 0;
      }
      math menclose[notation~="box" i] {
        border: 0.04em solid;
        padding: 0.3rem;
      }
      math menclose[notation~="actuarial" i] {
        padding: 0.03889rem 0.03889rem 0 0.03889rem;
        border-width: 0.08em 0.08em 0 0;
        border-style: solid;
        margin-right: 0.03889rem;
      }
      math menclose[notation~="phasorangle" i] {
        border-bottom: 0.067em solid;
        padding: 0.2em 0.2em 0.1em 0.6em;
      }
      math .menclose-phasorangle {
        display: inline-block;
        position: absolute;
        left: 0.5px;
        bottom: -0.04em;
        height: 100%;
        aspect-ratio: 0.5;
        background-color: currentcolor;
        clip-path: polygon(
          0.05em 100%,
          0 calc(100% - 0.05em),
          calc(100% - 0.05em) 0,
          100% 0.05em
        );
      }
      math .menclose-updiagonalstrike,
      math .menclose-downdiagonalstrike {
        display: inline-block;
        position: absolute;
        left: 0.5px;
        bottom: 0;
        width: 100%;
        height: 100%;
        background-color: currentcolor;
      }
      math .menclose-updiagonalstrike {
        clip-path: polygon(
          0.05em 100%,
          0 calc(100% - 0.05em),
          calc(100% - 0.05em) 0,
          100% 0.05em
        );
      }
      math .menclose-downdiagonalstrike {
        clip-path: polygon(
          0 0.05em,
          0.05em 0,
          100% calc(100% - 0.05em),
          calc(100% - 0.05em) 100%
        );
      }
    }
    @supports (not (-moz-appearance: none)) {
      math mover[accent="true" i] > mo:nth-child(2) {
        margin-bottom: 0.15ex;
      }
    }

    .footnote-ref {
      font-size: 0.75em;
      line-height: 0;
    }
    .footnote-ref a {
      padding: 0 0.1em;
      text-decoration: none;
    }
    .footnotes {
      margin-top: 1.5rem;
      padding-top: 0.75rem;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 0.9rem;
    }
    .footnotes-title {
      margin: 0 0 0.35rem;
      font-size: 0.8rem;
      font-weight: 650;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-tertiary);
    }
    .footnotes ol {
      margin: 0;
      padding-left: 1.4rem;
    }
    .footnotes li {
      margin: 0.2rem 0;
    }
    .footnotes li p {
      margin: 0;
      display: inline;
    }
    .footnote-backref {
      margin-left: 0.3rem;
      text-decoration: none;
    }

    .worklist-head {
      display: grid;
      gap: 0.85rem;
      margin: 0.25rem 0 0.35rem;
    }
    .worklist-toolbar {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .worklist-toolbar > .button--primary {
      flex: none;
      white-space: nowrap;
    }
    .worklist-links {
      display: inline-flex;
      flex: none;
      overflow: hidden;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius);
    }
    .worklist-links a {
      display: inline-flex;
      align-items: center;
      min-height: 2.25rem;
      padding: 0 0.8rem;
      color: var(--fg);
      font-size: 0.86rem;
      font-weight: 600;
      text-decoration: none;
    }
    .worklist-links a + a {
      border-left: 1px solid var(--line-strong);
    }
    .worklist-links a:hover {
      background: color-mix(in srgb, var(--fg) 6%, transparent);
    }
    .worklist-search {
      position: relative;
      display: flex;
      flex: 1;
      min-width: 0;
      margin: 0;
    }
    .worklist-search input[type="search"] {
      flex: 1;
      min-width: 0;
      height: 2.25rem;
      min-height: 0;
      margin: 0;
      padding: 0 2.4rem 0 0.75rem;
      font-size: 0.88rem;
    }
    .worklist-search button {
      position: absolute;
      inset-block: 1px;
      inset-inline-end: 1px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.2rem;
      min-height: 0;
      padding: 0;
      border: 0;
      border-radius: 0 var(--radius) var(--radius) 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
    }
    .worklist-search button:hover {
      color: var(--fg);
    }
    .worklist-summary {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.5rem 0.75rem;
      padding: 0 0.9rem 0.6rem;
      border-bottom: 1px solid var(--line-strong);
    }
    .worklist-bulk-form {
      display: none;
    }
    .worklist-bulk {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .worklist-bulk .worklist-select-all {
      display: inline-flex;
      align-items: center;
      margin: 0;
    }
    .worklist-select-all > input[type="checkbox"],
    .worklist-selector > input[type="checkbox"] {
      margin: 0;
    }
    .worklist-summary.is-selecting > :is(.worklist-states, .worklist-filters) {
      display: none;
    }
    .worklist-summary.is-selecting > .worklist-bulk {
      flex: 1;
    }
    .worklist-bulk-actions {
      display: flex;
      flex: 1;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.4rem;
    }
    .worklist-bulk-menu > summary .glyph {
      width: 0.85rem;
      height: 0.85rem;
      color: var(--muted);
    }
    .worklist-bulk-menu .menu__panel {
      min-width: 13rem;
      max-height: 20rem;
      overflow-y: auto;
    }
    .worklist-bulk-menu .menu__item {
      gap: 0.5rem;
      font-size: 0.88rem;
      white-space: nowrap;
    }
    .worklist-bulk-check {
      display: inline-flex;
      flex: none;
      width: 0.9rem;
      visibility: hidden;
    }
    .worklist-bulk-check .glyph {
      width: 0.9rem;
      height: 0.9rem;
    }
    .worklist-bulk-option[aria-pressed="true"] {
      font-weight: 600;
    }
    .worklist-bulk-option[aria-pressed="true"] .worklist-bulk-check {
      visibility: visible;
    }
    .worklist-bulk-text {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .worklist-bulk-actions[hidden] {
      display: none;
    }
    .worklist-selection-count {
      margin-inline-end: auto;
      font-size: 0.88rem;
      font-weight: 600;
    }
    .worklist-bulk .button {
      min-height: 1.85rem;
    }
    /* On narrow screens the menus wrap below the count instead of squeezing
       beside it. */
    @media (max-width: 700px) {
      .worklist-bulk {
        flex-wrap: wrap;
        gap: 0.5rem 0.4rem;
      }
      .worklist-bulk .worklist-select-all {
        margin-inline-end: 0.35rem;
      }
      .worklist-bulk-actions:not([hidden]) {
        display: contents;
      }
      .worklist-selection-count {
        flex: 1 0 70%;
      }
    }
    .worklist-states {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 0.15rem 1rem;
    }
    .worklist-state {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      color: var(--muted);
      font-size: 0.88rem;
      text-decoration: none;
      white-space: nowrap;
    }
    .worklist-state strong {
      font-weight: 600;
    }
    .worklist-state .glyph {
      width: 1rem;
      height: 1rem;
    }
    .worklist-state:hover,
    .worklist-state.active {
      color: var(--fg);
    }
    .worklist-state.active {
      font-weight: 600;
    }
    .worklist-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 0.15rem 0.25rem;
      margin-left: auto;
    }
    .filter-menu > summary {
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
      min-height: 1.85rem;
      padding: 0.25rem 0.45rem;
      border-radius: var(--radius);
      color: var(--muted);
      cursor: pointer;
      font-size: 0.86rem;
      list-style: none;
      white-space: nowrap;
    }
    .filter-menu > summary::-webkit-details-marker {
      display: none;
    }
    .filter-menu > summary:hover,
    .filter-menu[open] > summary {
      background: color-mix(in srgb, var(--fg) 7%, transparent);
      color: var(--fg);
    }
    .filter-menu.active > summary {
      color: var(--fg);
      font-weight: 600;
    }
    .filter-menu-value {
      max-width: 9rem;
      overflow: hidden;
      color: var(--accent-strong);
      text-overflow: ellipsis;
    }
    .filter-menu > summary .glyph {
      width: 0.9rem;
      height: 0.9rem;
    }
    .filter-menu .menu__panel {
      min-width: 13rem;
      max-height: 20rem;
      overflow-y: auto;
    }
    .filter-menu .menu__panel a {
      gap: 0.45rem;
    }
    .filter-menu-check {
      display: inline-flex;
      width: 0.9rem;
      visibility: hidden;
    }
    .filter-menu-check .glyph {
      width: 0.9rem;
      height: 0.9rem;
    }
    .filter-menu .menu__panel a[aria-current="true"] .filter-menu-check {
      visibility: visible;
    }
    .filter-menu .menu__panel a[aria-current="true"] {
      color: var(--fg);
      font-weight: 600;
    }
    .filter-menu-clear {
      padding-inline-start: 1.95rem;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
    }
    .filter-menu-empty {
      margin: 0;
      padding: 0.4rem 0.6rem;
      color: var(--muted);
      font-size: 0.82rem;
    }
    .worklist-page .issues-list {
      margin: 0 0 1rem;
      border: 0;
      border-radius: 0;
      background: transparent;
    }
    .worklist-page .issues-list > li {
      border-bottom: 1px solid var(--line);
    }
    .issue-card {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 0.75rem;
      align-items: start;
    }
    .issues-list > li.work-row {
      padding: 0.65rem 0.9rem;
    }
    .work-row:hover {
      background: color-mix(in srgb, var(--fg) 3%, transparent);
    }
    .issue-card.worklist-selected {
      background: var(--accent-soft);
    }
    .work-item-leading {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      min-height: 1.45rem;
    }
    .work-item-leading .worklist-selector {
      display: inline-flex;
      align-items: center;
      width: 1.05rem;
      justify-content: center;
      margin: 0;
    }
    .work-item-state {
      display: inline-flex;
      width: 1rem;
      height: 1rem;
      align-items: center;
      justify-content: center;
      color: var(--muted);
    }
    .work-item-state .glyph {
      width: 1rem;
      height: 1rem;
    }
    .work-item-state.state-open {
      color: var(--state-open);
    }
    .work-item-state.state-closed {
      color: var(--danger);
    }
    .work-item-state:is(.state-merged, .state-completed) {
      color: var(--state-merged);
    }
    .work-item-state:is(.state-not-planned, .state-draft) {
      color: var(--muted);
    }
    /* Filled, mixed-case chip so a "Bug" type doesn't read as a duplicate of a
   "bug" label next to it. */
    .work-item-type {
      text-transform: none;
      letter-spacing: 0;
      font-weight: 650;
      color: var(--accent-strong);
      border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong));
      background: var(--accent-soft);
    }
    .work-row-main {
      display: grid;
      gap: 0.2rem;
      min-width: 0;
    }
    .work-row-title {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.25rem 0.4rem;
      min-width: 0;
    }
    .work-row-title .issue-title {
      color: var(--fg);
      font-size: 0.95rem;
      font-weight: 600;
      line-height: 1.45;
      text-decoration: none;
      overflow-wrap: anywhere;
    }
    .work-row-title .issue-title:hover {
      color: var(--accent-strong);
    }
    .work-row-title .badge {
      padding: 0.02rem 0.45rem;
      font-size: 0.74rem;
      text-transform: none;
      letter-spacing: 0;
    }
    .work-row-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.2rem 0.9rem;
      min-width: 0;
      color: var(--muted);
      font-size: 0.8rem;
    }
    .work-row-opened {
      white-space: nowrap;
    }
    .work-row-author {
      color: inherit;
      text-decoration: none;
    }
    a.work-row-author:hover {
      color: var(--fg);
      text-decoration: underline;
    }
    .work-row-note {
      margin-left: 0.3rem;
      padding: 0 0.35rem;
      border: 1px solid var(--line-strong);
      border-radius: 999px;
      font-size: 0.7rem;
    }
    .work-row-branches {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      min-width: 0;
      max-width: 100%;
    }
    .work-row-branches code {
      font-size: 0.76rem;
      background: transparent;
      padding: 0;
    }
    .work-row-source {
      overflow: hidden;
      max-width: 22rem;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .work-row-branches .glyph,
    .work-row-milestone .glyph {
      width: 0.85rem;
      height: 0.85rem;
      flex: none;
    }
    .work-row-milestone {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      white-space: nowrap;
    }
    .work-row-aside {
      display: grid;
      grid-template-columns: 3.4rem 2.6rem;
      align-items: center;
      min-height: 1.45rem;
    }
    .work-row-assignees {
      display: flex;
      flex-direction: row-reverse;
      justify-content: flex-start;
    }
    .work-row-avatar {
      display: inline-flex;
      width: 1.35rem;
      height: 1.35rem;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--bg);
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent-strong);
      font-family: var(--mono);
      font-size: 0.62rem;
      font-weight: 800;
      object-fit: cover;
    }
    .work-row-avatar + .work-row-avatar {
      margin-right: -0.4rem;
    }
    .work-row-comments {
      display: inline-flex;
      grid-column: 2;
      align-items: center;
      justify-content: flex-end;
      gap: 0.25rem;
      color: var(--muted);
      font-size: 0.8rem;
      text-decoration: none;
    }
    .work-row-comments:hover {
      color: var(--accent-strong);
    }
    .work-row-comments .glyph {
      width: 0.95rem;
      height: 0.95rem;
    }
    @media (max-width: 860px) {
      .worklist-filters {
        flex: 1 1 100%;
        margin-left: -0.45rem;
      }
    }
    @media (max-width: 640px) {
      .worklist-toolbar {
        flex-wrap: wrap;
      }
      .worklist-search {
        order: -1;
        flex: 1 1 100%;
      }
      .worklist-toolbar > .button--primary {
        margin-left: auto;
      }
      .worklist-summary {
        padding-inline: 0.4rem;
      }
      .worklist-summary > .worklist-states {
        flex: 1 1 0;
        min-width: 0;
        column-gap: 0.85rem;
      }
      .issues-list > li.work-row {
        padding-inline: 0.4rem;
      }
      .work-row-aside {
        grid-template-columns: auto 2.4rem;
      }
      .work-row-source {
        max-width: 11rem;
      }
    }
    .pull-navigation {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin: 0 0 1rem;
      border-bottom: 1px solid var(--line-strong);
    }
    .pull-tabs {
      display: flex;
      gap: 0;
      margin: 0;
      min-width: 0;
    }
    .pull-tabs a {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.55rem 0.8rem;
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 650;
      text-decoration: none;
      white-space: nowrap;
      border-bottom: 2px solid transparent;
    }
    .pull-tab-count {
      min-width: 1.25rem;
      padding: 0 0.35rem;
      border-radius: 999px;
      background: color-mix(in srgb, var(--fg) 10%, transparent);
      color: var(--fg);
      font-size: 0.72rem;
      font-weight: 600;
      line-height: 1.5;
      text-align: center;
    }
    .pull-diffstat {
      display: inline-flex;
      flex: none;
      gap: 0.4rem;
      font-family: var(--mono);
      font-size: 0.78rem;
      font-weight: 600;
    }
    .pull-tabs a:hover {
      color: var(--fg);
      background: var(--accent-soft);
    }
    .pull-tabs a.active {
      color: var(--fg);
      border-bottom-color: var(--accent);
    }
    .pull-downloads {
      align-self: center;
    }
    .pull-downloads > summary {
      font-size: 0.8rem;
      min-height: 2rem;
      padding: 0.3rem 0.65rem;
    }
    .pull-downloads .menu__panel {
      z-index: 40;
    }
    .pull-revision-picker {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 0.45rem;
      margin: 0;
      font-size: 0.82rem;
    }
    .pull-revision-picker .property-picker-menu {
      min-width: 8rem;
    }
    .pull-commits,
    .pull-files {
      margin: 0 0 1.2rem;
    }
    .pull-commits .pull-tab-tools {
      margin: 0 0 0.75rem;
    }
    .diff-group {
      margin: 0 0 1.4rem;
    }
    .diff-group > h4 {
      margin: 0 0 0.7rem;
      font-size: 0.9rem;
    }
    .diff-group .diff-files {
      margin: 0;
      gap: 0.8rem;
    }
    .pull-patch-view {
      margin: 0 0 1.2rem;
    }
    .diff-files {
      display: grid;
      gap: 1rem;
      margin: 1rem 0 1.2rem;
    }
    .diff-file {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--panel);
    }
    .diff-file-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      flex-wrap: wrap;
      padding: 0.45rem 0.8rem;
      border-bottom: 1px solid var(--line);
      background: var(--code-bg);
    }
    .diff-file-path {
      font-family: var(--mono);
      font-size: 0.82rem;
      font-weight: 650;
      overflow-wrap: anywhere;
    }
    .diff-file-stats {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-left: auto;
      font-family: var(--mono);
      font-size: 0.78rem;
      font-weight: 650;
    }
    .diff-file-kind {
      padding: 0.04rem 0.4rem;
      border-radius: 999px;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: var(--accent-soft);
      color: var(--accent-strong);
    }
    .diff-stat-add {
      color: var(--success);
    }
    .diff-stat-del {
      color: var(--danger);
    }
    .diff-file-status {
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 500;
    }
    .pull-file-summary {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      min-height: 2rem;
      padding: 0.2rem 0.65rem;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius);
      cursor: pointer;
      font-size: 0.84rem;
    }
    .pull-file-summary:hover {
      background: color-mix(in srgb, var(--fg) 6%, transparent);
    }
    /* The tab bar carries the totals; they move here only where the tab bar
       drops them for space. */
    .pull-file-summary .diff-file-stats {
      display: none;
      margin: 0;
    }
    .pull-file-summary .glyph {
      width: 0.85rem;
      height: 0.85rem;
      color: var(--muted);
    }
    .pull-file-menu .menu__panel {
      right: auto;
      left: 0;
      width: min(34rem, calc(100vw - 2rem));
    }
    .pull-file-toggle::before {
      content: "";
      flex: 0 0 0.4rem;
      width: 0.4rem;
      height: 0.4rem;
      border-right: 1.5px solid var(--muted);
      border-bottom: 1.5px solid var(--muted);
      transform: rotate(-45deg);
    }
    .pull-file[open] > .pull-file-toggle::before {
      transform: rotate(45deg) translateY(-0.1rem);
    }
    .pull-file-toggle::-webkit-details-marker {
      display: none;
    }
    .pull-file-list {
      display: block;
      max-height: 20rem;
      overflow: auto;
      scrollbar-width: thin;
    }
    .pull-file-list h5 {
      margin: 0;
      padding: 0.55rem 0.8rem 0.3rem;
      color: var(--muted);
      font-size: 0.78rem;
      overflow-wrap: anywhere;
    }
    .pull-file-list ul {
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .pull-file-list a {
      display: flex;
      align-items: baseline;
      gap: 0.7rem;
      padding: 0.35rem 0.8rem;
      text-decoration: none;
    }
    .pull-file-list a:hover,
    .pull-file-list a:focus-visible {
      background: var(--accent-soft);
    }
    .pull-file-nav-path {
      min-width: 0;
      font-family: var(--mono);
      font-size: 0.78rem;
      overflow-wrap: anywhere;
    }
    .pull-file-list .diff-file-stats {
      flex-shrink: 0;
      font-size: 0.72rem;
    }
    .pull-file {
      overflow: clip;
      scroll-margin-top: calc(
        var(--pull-review-header-height, var(--header-height)) +
          var(--pull-review-toolbar-height, 3.8rem) + 0.75rem
      );
    }
    .pull-file-toggle {
      position: sticky;
      top: calc(
        var(--pull-review-header-height, var(--header-height)) +
          var(--pull-review-toolbar-height, 3.8rem)
      );
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 0.7rem;
      padding: 0.6rem 0.8rem;
      border-bottom: 1px solid var(--line);
      background: var(--code-bg);
      cursor: pointer;
    }
    .pull-file-toggle .diff-file-head {
      flex: 1;
      min-width: 0;
      padding: 0;
      border: 0;
      background: transparent;
    }
    .pull-file:not([open]) > .pull-file-toggle {
      border-bottom: 0;
    }
    .pull-file:target {
      border-color: var(--accent);
    }
    .diff-binary {
      margin: 0;
      padding: 0.6rem 0.8rem;
      color: var(--muted);
      font-size: 0.84rem;
    }
    .diff-hunk {
      padding: 0.3rem 0.8rem;
      border-bottom: 1px solid var(--line);
      background: var(--code-bg);
      color: var(--muted);
      font-family: var(--mono);
      font-size: 0.82rem;
    }
    .diff-line {
      position: relative;
      display: grid;
      grid-template-columns: 3.4rem 3.4rem minmax(0, 1fr);
      font-family: var(--mono);
      font-size: 0.82rem;
    }
    .diff-line-no {
      padding: 0.04rem 0.5rem;
      text-align: right;
      color: var(--text-tertiary);
      user-select: none;
    }
    .diff-line > :nth-child(2) {
      border-right: 1px solid var(--line);
    }
    button.diff-line-no {
      border: 0;
      border-radius: 0;
      background: transparent;
      font: inherit;
      cursor: pointer;
    }
    button.diff-line-no:hover,
    button.diff-line-no:focus-visible {
      color: var(--accent);
      background: var(--accent-soft);
    }
    .diff-line code {
      padding: 0.04rem 0.7rem;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
    }
    .diff-line.diff-add {
      background: color-mix(in srgb, var(--success) 12%, transparent);
    }
    .diff-line.diff-remove {
      background: color-mix(in srgb, var(--danger) 12%, transparent);
    }
    .diff-line.diff-line-selected {
      background: var(--accent-soft);
      box-shadow: inset 3px 0 var(--accent);
    }
    .diff-comment-add {
      position: absolute;
      inset-block-start: 50%;
      inset-inline-start: calc(6.8rem - 0.4rem);
      z-index: 1;
      display: inline-flex;
      width: 1.2rem;
      height: 1.2rem;
      min-height: 0;
      align-items: center;
      justify-content: center;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0.3rem;
      background: var(--accent);
      color: var(--on-accent);
      opacity: 0;
      transform: translateY(-50%) scale(0.85);
      transition:
        opacity 0.1s ease,
        transform 0.1s ease;
    }
    .diff-comment-add .glyph {
      width: 0.8rem;
      height: 0.8rem;
    }
    .diff-line:hover > .diff-comment-add,
    .diff-comment-add:focus-visible {
      opacity: 1;
      transform: translateY(-50%) scale(1);
    }
    @media (hover: none) {
      .diff-line-selected > .diff-comment-add {
        opacity: 1;
        transform: translateY(-50%) scale(1);
      }
    }
    .diff-thread {
      margin: 0.5rem 0.75rem 0.6rem 6.8rem;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius);
      background: var(--panel);
      font-size: 0.88rem;
      overflow: hidden;
    }
    .inline-comment {
      scroll-margin-top: calc(
        var(--pull-review-header-height, var(--header-height)) +
          var(--pull-review-toolbar-height, 3.8rem) + 4rem
      );
    }
    .inline-comment + .inline-comment {
      border-top: 1px solid var(--line);
    }
    .inline-comment-head {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.45rem;
      padding: 0.55rem 0.8rem 0;
      font-size: 0.82rem;
    }
    .inline-comment-avatar {
      width: 1.35rem;
      height: 1.35rem;
      border-radius: 50%;
      font-size: 0.6rem;
    }
    .inline-comment-range {
      color: var(--muted);
    }
    .inline-comment-pending {
      padding: 0 0.4rem;
      border: 1px solid color-mix(in srgb, var(--warning) 55%, transparent);
      border-radius: 999px;
      color: var(--warning);
      font-size: 0.72rem;
      font-weight: 600;
      line-height: 1.3rem;
    }
    .inline-comment-delete {
      margin: 0 0 0 auto;
    }
    .inline-comment-delete .link-button {
      color: var(--muted);
      font-size: 0.78rem;
      text-decoration: none;
    }
    .inline-comment-delete .link-button:hover {
      color: var(--danger);
    }
    .inline-comment-body {
      padding: 0.35rem 0.8rem 0.7rem 2.6rem;
      line-height: 1.6;
      overflow-wrap: anywhere;
    }
    .inline-comment-body > :first-child {
      margin-top: 0;
    }
    .inline-comment-body > :last-child {
      margin-bottom: 0;
    }
    form.inline-comment-compose {
      display: grid;
      gap: 0.55rem;
      padding: 0.6rem;
    }
    form.inline-comment-compose[hidden] {
      display: none;
    }
    form.inline-comment-compose textarea {
      width: 100%;
      min-height: 5rem;
      margin: 0;
      resize: vertical;
    }
    .inline-compose-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 0.5rem;
    }
    .inline-compose-target {
      margin-inline-end: auto;
      color: var(--muted);
      font-size: 0.8rem;
    }
    .inline-compose-actions .button {
      width: auto;
      margin: 0;
    }
    @media (max-width: 700px) {
      .diff-thread {
        margin-inline: 0.5rem;
      }
      .diff-comment-add {
        inset-inline-start: auto;
        inset-inline-end: 0.35rem;
      }
      .inline-comment-body {
        padding-inline-start: 0.8rem;
      }
    }
    @media (max-width: 700px) {
      .pull-navigation {
        align-items: stretch;
        flex-direction: column;
      }
      .pull-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
      }
      .pull-tabs a {
        white-space: nowrap;
      }
      .review-composer-head {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    .pull-sidebar {
      display: grid;
      gap: 1rem;
      min-width: 0;
    }
    .pull-sidebar > .work-facts {
      padding-top: 0.6rem;
      border-top: 1px solid var(--line);
    }
    #pull-description .issue-comment-card {
      border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    }
    #pull-description .issue-comment-head {
      background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel));
    }
    .pull-review-badge {
      display: inline-flex;
      width: 2.25rem;
      height: 2.25rem;
      box-sizing: border-box;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line-strong);
      border-radius: 999px;
      background: var(--panel);
      color: var(--muted);
    }
    .pull-review-badge .glyph {
      width: 1rem;
      height: 1rem;
    }
    .pull-review-entry--approved .pull-review-badge {
      border-color: var(--success);
      background: var(--success);
      color: var(--bg);
    }
    .pull-review-entry--changes .pull-review-badge {
      border-color: var(--danger);
      background: var(--danger);
      color: var(--bg);
    }
    .pull-review-entry-main {
      display: grid;
      gap: 0.6rem;
      min-width: 0;
    }
    .pull-review-entry-head {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.4rem;
      min-height: 2.25rem;
      margin: 0;
      padding-top: 0.3rem;
      color: var(--muted);
      font-size: 0.88rem;
    }
    .pull-review-entry-avatar {
      width: 1.35rem;
      height: 1.35rem;
      border-radius: 50%;
      font-size: 0.6rem;
    }
    .pull-review-entry-author {
      color: var(--fg);
      font-weight: 650;
      text-decoration: none;
    }
    .pull-review-entry-author:hover {
      text-decoration: underline;
    }
    .pull-review-entry-revision {
      padding: 0 0.4rem;
      border: 1px solid var(--line-strong);
      border-radius: 999px;
      font-family: var(--mono);
      font-size: 0.72rem;
      line-height: 1.25rem;
    }
    .pull-review-entry--approved .pull-review-entry-phrase {
      color: var(--success);
    }
    .pull-review-entry--changes .pull-review-entry-phrase {
      color: var(--danger);
    }
    .pull-review-card > .thread-item-body + .pull-review-threads {
      border-top: 1px solid var(--line);
    }
    .pull-review-threads {
      display: grid;
      gap: 0.75rem;
      padding: 0.9rem;
    }
    .pull-review-thread {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--bg);
      overflow: hidden;
    }
    .pull-review-thread > summary {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.25rem 0.6rem;
      padding: 0.5rem 0.75rem;
      background: var(--code-bg);
      cursor: pointer;
      font-size: 0.8rem;
      list-style: none;
    }
    .pull-review-thread > summary::-webkit-details-marker {
      display: none;
    }
    .pull-review-thread > summary::before {
      content: "";
      flex: 0 0 0.4rem;
      width: 0.4rem;
      height: 0.4rem;
      border-right: 1.5px solid var(--muted);
      border-bottom: 1.5px solid var(--muted);
      transform: rotate(-45deg);
    }
    .pull-review-thread[open] > summary::before {
      transform: rotate(45deg) translateY(-0.1rem);
    }
    .pull-review-thread-path {
      min-width: 0;
      font-family: var(--mono);
      font-weight: 600;
      overflow-wrap: anywhere;
    }
    .pull-review-thread-range {
      color: var(--muted);
      text-decoration: none;
    }
    .pull-review-thread-range:hover {
      color: var(--accent-strong);
      text-decoration: underline;
    }
    .pull-review-thread-outdated {
      padding: 0 0.4rem;
      border: 1px solid color-mix(in srgb, var(--warning) 55%, transparent);
      border-radius: 999px;
      color: var(--warning);
      font-size: 0.72rem;
      font-weight: 600;
      line-height: 1.25rem;
    }
    .pull-review-thread-code {
      border-top: 1px solid var(--line);
      overflow-x: auto;
    }
    .pull-review-thread-code .diff-line:not(.diff-line-target) {
      opacity: 0.6;
    }
    @media (max-width: 540px) {
      .pull-review-badge {
        width: 1.65rem;
        height: 1.65rem;
      }
      .pull-review-badge .glyph {
        width: 0.8rem;
        height: 0.8rem;
      }
      .pull-review-entry-head {
        min-height: 1.65rem;
      }
      .pull-review-threads {
        padding: 0.6rem;
      }
      .pull-review-thread-code .diff-line {
        grid-template-columns: 2.4rem 2.4rem minmax(0, 1fr);
      }
    }
    .pull-review-thread-comments {
      border-top: 1px solid var(--line);
      background: var(--panel);
    }
    .inline-comment-author {
      color: var(--fg);
      font-weight: 650;
      text-decoration: none;
    }
    .inline-comment-author:hover {
      text-decoration: underline;
    }
    .inline-comment-actions {
      margin-inline-start: auto;
    }
    .inline-comment-actions:empty {
      display: none;
    }
    .inline-comment-actions .comment-actions {
      width: 1.6rem;
      height: 1.6rem;
    }
    .line-reply {
      border-top: 1px solid var(--line);
    }
    .line-reply > summary {
      margin: 0.55rem 0.8rem;
      padding: 0.4rem 0.6rem;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius);
      background: var(--bg);
      color: var(--muted);
      cursor: text;
      font-size: 0.84rem;
      list-style: none;
    }
    .line-reply > summary::-webkit-details-marker {
      display: none;
    }
    .line-reply[open] > summary {
      display: none;
    }
    .line-reply form {
      display: grid;
      gap: 0.5rem;
      padding: 0.6rem 0.8rem;
    }
    .line-reply textarea {
      width: 100%;
      min-height: 4.5rem;
      margin: 0;
      resize: vertical;
    }
    .pull-review-entry-menu {
      margin-inline-start: auto;
    }
    .menu__panel.menu__panel--floating {
      position: fixed;
      right: auto;
      z-index: 40;
    }
    .comment-modal--small {
      width: min(100% - 2rem, 28rem);
    }
    .comment-modal > .comment-modal-form {
      display: grid;
      gap: 0.75rem;
    }
    .comment-modal-form label {
      display: grid;
      gap: 0.35rem;
      margin: 0;
      font-size: 0.85rem;
      font-weight: 650;
    }
    .comment-modal-form :is(select, textarea) {
      width: 100%;
      margin: 0;
      font-weight: 400;
    }
    .comment-modal-form .comment-modal-actions {
      margin-top: 0.25rem;
    }
    .comment-hidden > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.75rem 1.25rem;
      color: var(--muted);
      cursor: pointer;
      font-size: 0.85rem;
      font-style: italic;
      list-style: none;
    }
    .comment-hidden > summary::-webkit-details-marker {
      display: none;
    }
    .comment-hidden-toggle {
      color: var(--accent-strong);
      font-style: normal;
      font-weight: 600;
      white-space: nowrap;
    }
    .comment-hidden[open] .comment-hidden-toggle {
      visibility: hidden;
    }
    .inline-comment .comment-hidden > summary {
      padding: 0.35rem 0.8rem 0.7rem 2.6rem;
    }
    .issue-comment-card--hidden .issue-comment-head {
      opacity: 0.7;
    }
    .issue-comment:target .issue-comment-card {
      border-color: var(--accent);
      box-shadow: 0 0 0 1px var(--accent);
    }
    .inline-comment:target {
      background: var(--accent-soft);
    }
    .pull-review-entry:target .pull-review-entry-head,
    .thread-event:target .thread-event-line {
      color: var(--fg);
    }
    .pull-review-entry:target .pull-review-entry-head .issue-comment-time,
    .thread-event:target .thread-event-line .issue-comment-time {
      color: var(--accent-strong);
      font-weight: 650;
    }
    .pull-review-entry-dismissed {
      padding: 0 0.4rem;
      border: 1px solid var(--line-strong);
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 600;
      line-height: 1.25rem;
    }
    .pull-review-entry--dismissed .pull-review-entry-phrase {
      text-decoration: line-through;
    }
    .thread-event-badge {
      display: inline-flex;
      width: 2.25rem;
      height: 2.25rem;
      box-sizing: border-box;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line-strong);
      border-radius: 999px;
      background: var(--panel);
      color: var(--muted);
    }
    .thread-event-badge .glyph {
      width: 0.95rem;
      height: 0.95rem;
    }
    .thread-event--closed .thread-event-badge {
      border-color: var(--danger);
      background: var(--danger);
      color: var(--bg);
    }
    .thread-event--open .thread-event-badge {
      border-color: var(--success);
      background: var(--success);
      color: var(--bg);
    }
    .thread-event--done .thread-event-badge {
      border-color: var(--state-merged);
      background: var(--state-merged);
      color: var(--bg);
    }
    .thread-event-main {
      min-width: 0;
    }
    .thread-event-line {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.4rem;
      min-height: 2.25rem;
      margin: 0;
      padding-top: 0.3rem;
      color: var(--muted);
      font-size: 0.86rem;
    }
    .thread-event-avatar {
      width: 1.35rem;
      height: 1.35rem;
      border-radius: 50%;
      font-size: 0.6rem;
    }
    .thread-event-actor {
      color: var(--fg);
      font-weight: 650;
      text-decoration: none;
    }
    .thread-event-actor:hover {
      text-decoration: underline;
    }
    .thread-event-reason {
      margin: 0.2rem 0 0;
      padding-inline-start: 0.75rem;
      border-inline-start: 2px solid var(--line-strong);
      color: var(--muted);
      font-size: 0.84rem;
      overflow-wrap: anywhere;
    }
    .reviewer-rerequest button .glyph {
      width: 0.9rem;
      height: 0.9rem;
    }
    .reviewer-rerequest button:hover {
      color: var(--accent-strong);
    }
    @media (max-width: 540px) {
      .thread-event-badge {
        width: 1.65rem;
        height: 1.65rem;
      }
      .thread-event-badge .glyph {
        width: 0.8rem;
        height: 0.8rem;
      }
      .thread-event-line {
        min-height: 1.65rem;
      }
    }
    .pull-status-badge {
      display: inline-flex;
      width: 2.25rem;
      height: 2.25rem;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: var(--muted);
      color: var(--bg);
    }
    .pull-status-badge .glyph {
      width: 1.05rem;
      height: 1.05rem;
    }
    .pull-status--ready .pull-status-badge {
      background: var(--success);
    }
    .pull-status--blocked .pull-status-badge,
    .pull-status--closed .pull-status-badge {
      background: var(--danger);
    }
    .pull-status--waiting .pull-status-badge {
      background: var(--warning);
    }
    .pull-status--merged .pull-status-badge {
      background: var(--state-merged);
    }
    .pull-status-card {
      position: relative;
    }
    .pull-status-summary {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      min-height: 3rem;
      box-sizing: border-box;
      padding: 0.55rem 1.1rem;
      font-size: 0.86rem;
    }
    details > .pull-status-summary {
      user-select: none;
      cursor: pointer;
      list-style: none;
    }
    details > .pull-status-summary::-webkit-details-marker {
      display: none;
    }
    .pull-status-heading {
      display: flex;
      flex: 1;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 0.15rem 0.65rem;
      min-width: 0;
    }
    .pull-status .pull-status-verdict {
      margin: 0;
      font-size: 0.9rem;
      font-weight: 650;
    }
    .pull-status-left {
      color: var(--muted);
      font-size: 0.84rem;
      font-weight: 400;
    }
    .pull-status-toggle {
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
      color: var(--muted);
      font-size: 0.8rem;
      font-weight: 600;
      white-space: nowrap;
    }
    .pull-status-summary:hover .pull-status-toggle {
      color: var(--accent-strong);
    }
    .pull-status-toggle .glyph {
      width: 0.95rem;
      height: 0.95rem;
      transition: transform 120ms ease;
    }
    .pull-status-details[open] .pull-status-toggle .glyph {
      transform: rotate(180deg);
    }
    .pull-status-merge {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      gap: 0.5rem 1rem;
      margin: 0;
      padding: 0.6rem 1.1rem;
      border-top: 1px solid var(--line);
    }
    .pull-status-merge .button {
      width: auto;
      margin: 0;
    }
    .pull-status-summary form {
      margin: 0;
    }
    .pull-status-branch {
      padding: 0.05rem 0.4rem;
      border-radius: 0.3rem;
      background: color-mix(in srgb, var(--fg) 8%, transparent);
      font-size: 0.8rem;
    }
    .pull-merge-delete {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      margin: 0 auto 0 0;
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 500;
      cursor: pointer;
    }
    .pull-merge-delete input {
      width: auto;
      margin: 0;
    }
    .pull-merge-delete code {
      color: var(--fg);
      font-size: 0.78rem;
    }
    .pull-merge-buttons {
      display: inline-flex;
    }
    /* Only the button for the chosen method shows; picking another method
     swaps the label without script. */
    .pull-merge .pull-merge-submit {
      display: none;
    }
    .pull-merge:has(input[type="hidden"][name="method"]) .pull-merge-submit,
    .pull-merge:has(input[name="method"][value="merge"]:checked)
      .pull-merge-submit[data-method="merge"],
    .pull-merge:has(input[name="method"][value="squash"]:checked)
      .pull-merge-submit[data-method="squash"],
    .pull-merge:has(input[name="method"][value="rebase"]:checked)
      .pull-merge-submit[data-method="rebase"] {
      display: inline-flex;
    }
    .pull-merge-methods .menu__panel {
      top: calc(100% + 0.4rem);
      bottom: auto;
      min-width: 19rem;
    }
    .pull-merge-method {
      display: flex;
      align-items: flex-start;
      gap: 0.6rem;
      margin: 0;
      padding: 0.5rem 0.6rem;
      border-radius: var(--radius);
      font-size: 0.84rem;
      cursor: pointer;
    }
    .pull-merge-method:hover {
      background: color-mix(in srgb, var(--fg) 6%, transparent);
    }
    .pull-merge-method input {
      width: auto;
      margin: 0.2rem 0 0;
    }
    .pull-merge-method > span {
      display: grid;
      gap: 0.15rem;
    }
    .pull-merge-method strong {
      font-weight: 600;
    }
    .pull-merge-method > span > span {
      color: var(--muted);
      font-size: 0.78rem;
    }
    .pull-draft-convert {
      margin: -0.5rem 0 1rem;
    }
    .pull-draft-convert .link-button {
      font-size: 0.8rem;
    }
    .pull-status-list {
      margin: 0;
      padding: 0;
      border-top: 1px solid var(--line);
      list-style: none;
    }
    .pull-status-list > li + li {
      border-top: 1px solid var(--line);
    }
    .pull-status-row {
      display: grid;
      grid-template-columns: 1rem minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.75rem;
      min-height: 2.75rem;
      box-sizing: border-box;
      padding: 0.5rem 1.1rem;
      font-size: 0.86rem;
    }
    .pull-status-item .pull-status-row > .glyph {
      width: 1rem;
      height: 1rem;
      color: var(--muted);
    }
    .pull-status-item--success .pull-status-row > .glyph {
      color: var(--success);
    }
    .pull-status-item--pending .pull-status-row > .glyph {
      color: var(--warning);
    }
    .pull-status-item--failure .pull-status-row > .glyph {
      color: var(--danger);
    }
    .pull-status-copy {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 0.2rem 0.65rem;
      min-width: 0;
    }
    .pull-status-copy strong {
      font-weight: 600;
    }
    .pull-status-detail {
      color: var(--muted);
      font-size: 0.8rem;
    }
    .pull-status-files {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      color: var(--muted);
      font-size: 0.78rem;
    }
    .pull-status-files code {
      padding: 0.05rem 0.35rem;
      border-radius: 0.3rem;
      background: color-mix(in srgb, var(--fg) 8%, transparent);
      color: var(--fg);
      overflow-wrap: anywhere;
    }
    .pull-status-steps {
      display: grid;
      gap: 0.8rem;
      margin: 0;
      padding: 0 1.1rem 1rem 3.15rem;
      color: var(--muted);
      font-size: 0.82rem;
    }
    .pull-status-steps li::marker {
      color: var(--muted);
      font-variant-numeric: tabular-nums;
    }
    .pull-status-steps pre {
      margin: 0.4rem 0 0;
      padding: 0.6rem 0.75rem;
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--code-bg);
      color: var(--fg);
      font-size: 0.8rem;
      line-height: 1.65;
      white-space: pre;
    }
    .pull-status-checks .pull-check-summary,
    .pull-status-checks .pull-check-empty {
      padding: 0.6rem 1.1rem;
    }
    .pull-status-checks .pull-check-copy {
      font-size: 0.86rem;
    }
    @media (max-width: 540px) {
      .pull-status-badge {
        width: 1.65rem;
        height: 1.65rem;
      }
      .pull-status-badge .glyph {
        width: 0.85rem;
        height: 0.85rem;
      }
      .pull-status-summary {
        padding-inline: 0.75rem;
      }
      details > .pull-status-summary {
        align-items: flex-start;
      }
      .pull-status-merge {
        padding: 0.6rem 0.75rem;
      }
      .pull-merge-buttons {
        flex: 1;
      }
      .pull-merge-buttons > .button {
        flex: 1;
        justify-content: center;
      }
      .pull-status-row {
        grid-template-columns: 1rem minmax(0, 1fr);
        row-gap: 0.35rem;
        padding-inline: 0.75rem;
      }
      .pull-status-row > :nth-child(3) {
        grid-column: 2;
        justify-self: start;
      }
      .pull-status-steps {
        padding-inline: 0.75rem;
        padding-inline-start: 2.2rem;
      }
    }
    .discussion-composer-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.8rem;
      padding: 0.7rem 0.9rem;
      border-bottom: 1px solid var(--line);
      background: var(--code-bg);
    }
    .discussion-composer-head h3 {
      margin: 0;
      font-size: 0.95rem;
    }
    .discussion-composer-head .muted {
      margin: 0;
      font-size: 0.82rem;
    }
    .pull-action-buttons {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.55rem;
      padding: 0.75rem 0.9rem;
    }
    .pull-action-buttons form {
      margin: 0;
    }
    .pull-revision-actions {
      display: flex;
      justify-content: flex-end;
    }
    .pull-revision-actions .form-action {
      width: auto;
      margin: 0;
      white-space: nowrap;
    }
    .discussion-composer {
      margin: 1rem 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--panel);
    }
    .discussion-composer form {
      display: grid;
      gap: 0.65rem;
      margin: 0;
      padding: 0.8rem 0.9rem;
    }
    .discussion-composer .md-editor {
      margin: 0;
    }
    .comment-form-actions {
      display: flex;
      justify-content: flex-end;
      gap: 0.5rem;
      margin-top: 0.3rem;
    }
    .comment-form-actions .form-action {
      width: auto;
      margin: 0;
      align-self: auto;
    }
    .md-editor.image-drop-target {
      outline: 2px dashed var(--accent);
      outline-offset: 2px;
    }
    .md-editor.image-drop-uploading {
      opacity: 0.6;
    }
    .pull-review-toolbar {
      position: sticky;
      top: var(--pull-review-header-height, var(--header-height));
      z-index: 9;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.6rem;
      box-sizing: border-box;
      min-height: 3.8rem;
      padding: 0.65rem 0;
      margin: 0 0 0.75rem;
      border-bottom: 1px solid var(--line);
      background: var(--bg);
    }
    .pull-review-toolbar:not(:has(*)) {
      display: none;
    }
    .pull-review-toolbar-actions {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-left: auto;
    }
    .pull-tab-tools {
      margin-bottom: 1rem;
    }
    .pull-historical-note {
      padding: 0.75rem 0.9rem;
      margin: 0 0 1rem;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
    }
    .pull-review-menu > summary {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      cursor: pointer;
    }
    .pull-review-menu > summary .glyph {
      width: 0.85rem;
      height: 0.85rem;
    }
    .pull-review-menu-count {
      min-width: 1.15rem;
      padding: 0 0.35rem;
      border-radius: 999px;
      background: color-mix(in srgb, var(--on-accent) 18%, transparent);
      font-size: 0.75rem;
      line-height: 1.15rem;
      text-align: center;
    }
    .pull-review-panel {
      width: min(24rem, calc(100vw - 2rem));
      padding: 0.75rem;
    }
    .pull-review-panel form {
      display: grid;
      gap: 0.7rem;
    }
    .pull-review-panel textarea {
      width: 100%;
      min-height: 5.5rem;
      margin: 0;
      resize: vertical;
    }
    .pull-review-verdicts {
      display: grid;
      gap: 0.1rem;
      margin: 0;
      padding: 0;
      border: 0;
    }
    .pull-review-verdicts label {
      display: flex;
      align-items: flex-start;
      gap: 0.6rem;
      margin: 0;
      padding: 0.4rem 0.45rem;
      border-radius: var(--radius);
      cursor: pointer;
    }
    .pull-review-verdicts label:hover {
      background: var(--accent-soft);
    }
    .pull-review-verdicts label:has(:disabled) {
      opacity: 0.45;
      cursor: default;
    }
    .pull-review-verdicts label:has(:disabled):hover {
      background: transparent;
    }
    .pull-review-verdicts input {
      flex: none;
      width: 0.95rem;
      height: 0.95rem;
      min-height: 0;
      margin: 0.2rem 0 0;
      padding: 0;
      accent-color: var(--accent);
    }
    .pull-review-verdicts label > span {
      display: grid;
      gap: 0.05rem;
      font-size: 0.86rem;
    }
    .pull-review-verdicts small {
      color: var(--muted);
      font-size: 0.78rem;
    }
    .pull-review-panel-note {
      margin: 0;
      color: var(--muted);
      font-size: 0.78rem;
    }
    .pull-review-panel-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 0.75rem;
      color: var(--muted);
      font-size: 0.8rem;
    }
    .pull-review-panel-actions span {
      margin-inline-end: auto;
    }
    @media (max-width: 700px) {
      .pull-tabs a {
        padding-inline: 0.45rem;
        font-size: 0.82rem;
      }
      .pull-diffstat {
        display: none;
      }
      .pull-file-summary .diff-file-stats {
        display: inline-flex;
      }
    }
    @media (max-width: 700px) {
      .discussion-composer-head {
        align-items: flex-start;
        flex-direction: column;
      }
      .pull-action-buttons,
      .comment-form-actions {
        align-items: stretch;
        flex-direction: column;
      }
      .pull-action-buttons form,
      .comment-form-actions .form-action,
      .pull-revision-actions .form-action {
        width: 100%;
        max-width: none;
      }
    }
    @media (max-width: 700px) {
      .review-form {
        grid-template-columns: minmax(0, 1fr);
      }
    }
    @media (max-width: 600px) {
      .work-row-aside {
        grid-template-columns: auto 2.6rem;
        align-self: start;
        min-height: 1.45rem;
      }
    }
    .pull-check-summary,
    .pull-check-empty {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.65rem 0.9rem;
    }
    .pull-check-summary {
      cursor: pointer;
      list-style: none;
    }
    .pull-check-summary::-webkit-details-marker {
      display: none;
    }
    .pull-check-summary:hover {
      background: var(--code-bg);
    }
    .pull-check-summary:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: -2px;
    }
    .pull-check-copy {
      display: block;
      flex: 1;
      min-width: 0;
      overflow-wrap: anywhere;
      font-size: 0.87rem;
    }
    .pull-check-copy p,
    .pull-check-counts {
      display: block;
      margin: 0.25rem 0 0;
      color: var(--muted);
      font-size: 0.8rem;
      line-height: 1.5;
    }
    .pull-check-expand {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
      color: var(--muted);
      font-size: 0.78rem;
    }
    .pull-check-hide,
    .pull-check-group[open] .pull-check-show {
      display: none;
    }
    .pull-check-group[open] .pull-check-hide {
      display: inline;
    }
    .pull-check-expand::after {
      width: 0.4rem;
      height: 0.4rem;
      border-right: 1px solid currentColor;
      border-bottom: 1px solid currentColor;
      content: "";
      transform: rotate(45deg);
    }
    .pull-check-group[open] .pull-check-expand::after {
      transform: rotate(225deg);
    }
    .pull-check-requirements {
      margin: 0;
      padding: 0 0.9rem 0.65rem 2.75rem;
      color: var(--muted);
      font-size: 0.8rem;
    }
    .pull-check-list {
      margin: 0;
      padding: 0;
      list-style: none;
      border-top: 1px solid var(--line);
      background: var(--code-bg);
    }
    .pull-check-row {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 0.9rem;
    }
    .pull-check-list > li + li {
      border-top: 1px solid var(--line);
    }
    .pull-check-output {
      margin: 0 0.9rem 0.75rem 2.75rem;
      color: var(--muted);
      font-size: 0.8rem;
    }
    .pull-check-output summary {
      cursor: pointer;
    }
    .pull-check-output p {
      margin: 0.5rem 0 0;
      line-height: 1.5;
      overflow-wrap: anywhere;
      white-space: pre-wrap;
    }
    .pull-check-context {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 0.45rem;
    }
    .pull-check-required {
      padding: 0.05rem 0.35rem;
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.68rem;
      font-weight: 500;
    }
    .pull-check-state {
      color: var(--fg);
    }
    .pull-check-link {
      flex-shrink: 0;
      font-size: 0.8rem;
    }
    .pull-check-icon {
      position: relative;
      display: inline-block;
      flex: 0 0 1.1rem;
      width: 1.1rem;
      height: 1.1rem;
      border: 1.5px solid currentColor;
      border-radius: 50%;
      color: var(--muted);
    }
    .pull-check-icon--success {
      color: var(--success);
    }
    .pull-check-icon--success::after {
      position: absolute;
      top: 0.15rem;
      left: 0.3rem;
      width: 0.28rem;
      height: 0.48rem;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      content: "";
      transform: rotate(45deg);
    }
    .pull-check-icon--failure {
      color: var(--danger);
    }
    .pull-check-icon--failure::before,
    .pull-check-icon--failure::after {
      position: absolute;
      top: 0.42rem;
      left: 0.19rem;
      width: 0.55rem;
      border-top: 1.5px solid currentColor;
      content: "";
      transform: rotate(45deg);
    }
    .pull-check-icon--failure::after {
      transform: rotate(-45deg);
    }
    .pull-check-icon--pending {
      color: var(--warning);
    }
    .pull-check-icon--pending::after {
      position: absolute;
      top: 0.17rem;
      left: 0.43rem;
      width: 0.25rem;
      height: 0.32rem;
      border-left: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      content: "";
    }
    .pull-check-icon--neutral::after {
      position: absolute;
      top: 0.43rem;
      left: 0.22rem;
      width: 0.5rem;
      border-top: 1.5px solid currentColor;
      content: "";
    }
    @media (max-width: 600px) {
      .pull-check-expand {
        font-size: 0;
      }
      .pull-check-row {
        flex-wrap: wrap;
      }
      .pull-check-row .pull-check-link {
        margin-left: 1.85rem;
      }
    }
  }
}
