#panel-review .large-tool {
  width: 64px;
  min-width: 64px;
  display: grid;
  grid-template-rows: 34px 24px 10px;
  justify-items: center;
  align-content: center;
  padding: 2px 4px;
  gap: 0;
}
#panel-review .large-tool > svg:first-child {
  width: var(--ribbon-icon-large);
  height: var(--ribbon-icon-large);
}
#panel-review .large-tool > span {
  white-space: nowrap;
  align-self: center;
}
#panel-review .small-chevron {
  width: var(--ribbon-icon-chevron);
  height: var(--ribbon-icon-chevron);
}
#panel-review svg {
  color: #397bb5;
}
#panel-review button:disabled > svg {
  color: #60666d;
}
#panel-review .small-chevron {
  color: inherit;
}
#panel-review button[aria-pressed="true"] > svg {
  color: currentColor;
}
@media (forced-colors: active) {
  #panel-review button > svg,
  #panel-review label > svg {
    color: inherit;
  }
}
#panel-review .stack-tools {
  display: grid;
  grid-template-rows: repeat(3, 24px);
  gap: 0;
}
#panel-review .stack-tools button,
.review-fields > button {
  height: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 0 4px;
}
#panel-review .stack-tools svg,
.review-fields svg {
  width: var(--ribbon-icon-small);
  height: var(--ribbon-icon-small);
  flex-shrink: 0;
}
.review-fields {
  display: grid;
  grid-template-rows: repeat(3, 24px);
  width: 150px;
}
#panel-review .review-fields > button {
  justify-content: flex-start;
  text-align: start;
}
.review-fields label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
}
.review-fields select {
  width: 119px;
  min-height: 22px;
  height: 22px;
  padding: 0 4px;
}
.review-split {
  width: 60px;
  height: 72px;
  display: grid;
  grid-template-rows: 58px 14px;
}
#panel-review .review-split .large-tool {
  width: 60px;
  min-width: 60px;
  height: 58px;
  grid-template-rows: 34px 24px;
  padding: 0;
}
.review-split > button:last-child {
  min-height: 14px;
  height: 14px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
#panel-review button[aria-pressed="true"] {
  background: #e6edff;
  color: #2456b8;
  border-color: #a4b8e6;
}
.review-menu-note {
  max-width: 260px;
  margin: 6px 10px;
  color: #687487;
  font-size: 12px;
  line-height: 1.5;
}
.review-pane {
  width: 300px;
  min-width: 250px;
  max-width: 40vw;
  overflow: auto;
}
.review-card {
  margin: 8px;
  padding: 10px;
  border: 1px solid #dce2eb;
  background: white;
  border-inline-start: 3px solid #7a98ce;
  content-visibility: auto;
  contain-intrinsic-size: auto 150px;
}
.review-card[aria-current="true"] {
  border-color: #3464bd;
  background: #f5f8ff;
}
.review-card p {
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.review-card time {
  color: #65738a;
  font-size: 11px;
}
.review-card .review-jump {
  width: 100%;
  text-align: start;
  font-weight: 600;
  padding: 0;
}
.review-card del {
  color: #a42737;
  background: #fff0f1;
}
.review-card ins {
  color: #215cae;
  background: #edf4ff;
}
.review-card footer,
#review-comment-form > div {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.review-card footer button {
  font-size: 12px;
  padding: 3px 7px;
}
#review-comment-form {
  padding: 10px;
}
#review-comment-form textarea {
  display: block;
  width: 100%;
  resize: vertical;
  margin-top: 5px;
  font: inherit;
  padding: 2px;
  border: 1px solid #afb4bc;
  border-radius: 0;
  background: white;
}
/* 用同宽的主题色边框表示焦点，覆盖浏览器默认黑色轮廓，避免聚焦时尺寸跳动。 */
#review-comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: none;
}
@media (forced-colors: active) {
  #review-comment-form textarea:focus {
    border-color: Highlight;
    outline: 1px solid Highlight;
    outline-offset: 1px;
  }
}
#review-more {
  margin: 8px;
}
@media (max-width: 700px) {
  .review-pane {
    position: absolute;
    z-index: 20;
    right: 0;
    top: 0;
    bottom: 0;
    max-width: min(300px, 90vw);
    background: #f7f9fc;
  }
  .workspace {
    position: relative;
  }
}
