.rp-tools {
  max-width: 850px;
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rp-tools > div,
.rp-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.rp-option {
  color: #4b6668;
  font-size: 13px;
  gap: 7px;
  cursor: pointer;
}
.rp-option input {
  accent-color: #187768;
}
.rp-document {
  --rp-ink: #223a3c;
  --rp-muted: #52676c;
  max-width: 850px;
  margin: 0 auto;
  color: var(--rp-ink);
  font:
    14px/1.45 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  overflow-wrap: anywhere;
}
.rp-sheet,
.rp-appendix {
  padding: clamp(20px, 3.5vw, 42px);
  border: 1px solid #d8e2e1;
  border-radius: 14px;
  background: white;
}
.rp-appendix {
  margin-top: 18px;
}
.rp-document h1,
.rp-document h3,
.rp-document h4,
.rp-document p {
  margin: 0;
}
.rp-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.rp-heading > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.rp-heading .rp-subtitle {
  color: #3e6865;
  font-size: 0.9em;
  font-weight: 650;
  margin-bottom: 0.38em;
}
.rp-heading h1 {
  color: #173a37;
  font-size: 2.35em;
  line-height: 1.07;
  font-weight: 680;
  letter-spacing: -0.05em;
}
.rp-role {
  color: var(--rp-muted);
  margin-top: 0.38em;
}
.rp-rating {
  max-width: 31%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.55em 0.8em;
  border: 1px solid #bdd9cc;
  background: #edf6ef;
  border-radius: 11px;
  color: #1d6453;
}
.rp-rating strong {
  font-size: 2.1em;
  line-height: 1;
  letter-spacing: -0.08em;
}
.rp-rating span {
  font-size: 0.86em;
  font-weight: 650;
  max-width: 12em;
  line-height: 1.2;
}
.rp-no-rating {
  border-color: #d7dfdf;
  background: #f4f6f6;
  color: var(--rp-muted);
}
.rp-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.8em;
  row-gap: 0.3em;
  font-size: 0.91em;
  padding: 1em 0;
  border-bottom: 2px solid #43877b;
  color: var(--rp-muted);
}
.rp-meta b {
  color: var(--rp-ink);
  font-weight: 600;
  margin-left: 0.25em;
}
.rp-section,
.rp-comment {
  margin-top: 1.15em;
}
.rp-section h3,
.rp-appendix h3 {
  font-size: 1.35em;
  line-height: 1.2;
  font-weight: 660;
  letter-spacing: -0.028em;
  margin-bottom: 0.45em;
}
.rp-field {
  margin-bottom: 0.45em;
  min-width: 0;
}
.rp-field h4,
.rp-full-plan-title {
  font-size: 0.89em;
  letter-spacing: 0;
  line-height: 1.27;
  color: #3b6161;
  font-weight: 650;
}
.rp-field p {
  margin-top: 0.12em;
  white-space: pre-line;
}
.rp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32em 1.5em;
}
.rp-comment {
  border-left: 2px solid #adc4bd;
  padding: 0.3em 0 0.3em 0.8em;
}
.rp-comment .rp-field {
  margin: 0;
}
.rp-plan-state {
  font-size: 0.93em;
  color: var(--rp-muted);
}
.rp-plan,
.rp-profile table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  margin-top: 0.55em;
  font-size: 0.92em;
}
.rp-plan col:nth-child(1) {
  width: 49%;
}
.rp-plan col:nth-child(2) {
  width: 38%;
}
.rp-plan col:nth-child(3) {
  width: 13%;
}
.rp-plan th,
.rp-profile th {
  color: var(--rp-muted);
  font-size: 0.9em;
  font-weight: 620;
}
.rp-plan th,
.rp-plan td,
.rp-profile th,
.rp-profile td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #dde6e2;
  padding: 0.42em 0.55em 0.42em 0;
}
.rp-plan td {
  white-space: pre-line;
}
.rp-plan td:last-child {
  white-space: nowrap;
}
.rp-plan strong {
  font-weight: 650;
}
.rp-minor,
.rp-explain,
.rp-footer {
  color: var(--rp-muted);
  font-size: 0.86em;
}
.rp-document .rp-minor {
  margin-top: 0.4em;
}
.rp-footer {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 1.3em;
  padding-top: 0.65em;
  border-top: 1px solid #d5e0dc;
}
.rp-appendix .rp-explain {
  margin-bottom: 1em;
}
.rp-appendix .rp-field {
  margin-bottom: 1em;
}
.rp-profile th:first-child {
  width: 29%;
}
.rp-document [hidden] {
  display: none !important;
}
@page review-result {
  size: A4 portrait;
  margin: 13mm 14mm;
}
@media print {
  body.rp-print-view {
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    page: review-result;
  }
  body.rp-print-view .rail,
  body.rp-print-view .topbar,
  body.rp-print-view .skip,
  body.rp-print-view #notice,
  body.rp-print-view dialog,
  body.rp-print-view .rp-tools {
    display: none !important;
  }
  body.rp-print-view #app,
  body.rp-print-view .shell,
  body.rp-print-view .maincol,
  body.rp-print-view #content {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    overflow: visible !important;
  }
  .rp-document {
    margin: 0;
    width: 100%;
    max-width: none;
    font-family: Arial, 'Liberation Sans', sans-serif;
    font-size: 10pt;
    line-height: 1.35;
  }
  .rp-sheet,
  .rp-appendix {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .rp-section,
  .rp-comment {
    margin-top: 0.92em;
  }
  .rp-document h3,
  .rp-document h4,
  .rp-meta {
    break-after: avoid;
  }
  .rp-grid {
    display: block;
    columns: 2;
    column-gap: 5mm;
  }
  .rp-grid .rp-field {
    break-inside: avoid;
  }
  .rp-sheet .rp-field {
    break-inside: avoid;
  }
  .rp-appendix {
    break-before: page;
  }
  .rp-appendix .rp-field {
    break-inside: auto;
  }
  .rp-appendix p {
    orphans: 2;
    widows: 2;
  }
  .rp-plan thead {
    display: table-header-group;
  }
  .rp-sheet .rp-plan tr {
    break-inside: avoid;
  }
  .rp-profile tr {
    break-inside: avoid;
  }
}
