/* rs-plans.css v1.0 (23 Nov 2026, release 24a) · revision plans, with rs-plans.js: the plan strip on planned pages, the "this
   visit only" course bar, and the plan, paste-a-list, plan-code and teacher dialogs on the GCSE home page (which use the
   home page's .hm-dialog design from rs-home.css). The plan bar: a soft background inside a thick border in the Revise Chemistry logo's orange gradient; green for read and done in the plan view; never red for anything else. */

.rp-strip {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 1050;
  max-width: min(820px, calc(100vw - 24px));
  padding: 8px 10px 8px 12px;
  border: 4px solid transparent;
  border-radius: 16px;
  background: linear-gradient(#fff5f0, #fff5f0) padding-box, linear-gradient(120deg, #b33a16, #d33c16 55%, #f08a24) border-box;
  color: #25242f;
  box-shadow: 0 8px 26px rgb(120 35 10 / 22%);
  font-size: 0.92rem;
}

html.rp-has-strip body {
  padding-bottom: 76px;
}

html.rp-has-strip .rp-tempbar {
  bottom: 84px;
}

.rp-strip-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.rp-strip-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ffe1d6;
  font-size: 1.05rem;
}

.rp-strip-plan {
  color: #a83214;
  font-weight: 700;
  text-decoration: none;
}

.rp-strip-plan:hover {
  text-decoration: underline;
}

.rp-strip-count, .rp-strip-k {
  color: #5d4a43;
}

.rp-strip-meter {
  display: inline-block;
  width: 70px;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #fbd9cc;
  vertical-align: middle;
}

.rp-strip-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b33a16, #f08a24);
}

.rp-strip-secs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rp-strip-k {
  margin-left: 6px;
}

.rp-strip-next {
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #b33a16, #c8401a);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.rp-strip-next:hover {
  background: #a83214;
}

.rp-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #8a91a8;
  border-radius: 50%;
  background: #fff;
}

.rp-dot.is-read {
  border-color: #2e7d4f;
  background: #2e7d4f;
}

.rp-strip .rp-dot {
  border-color: #c9573a;
  background: conic-gradient(#e8805f calc(var(--p, 0) * 1turn), #fff 0);
}

.rp-strip .rp-dot.is-read {
  border-color: #c8401a;
  background: #c8401a;
}

.rp-strip-x {
  order: 9;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #ffe1d6;
  color: #a83214;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.rp-strip a:focus-visible, .rp-strip button:focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 2px;
}

.rp-tempbar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 1060;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  width: max-content;
  max-width: calc(100vw - 20px);
  padding: 10px 14px 10px 12px;
  border: 2px solid #f2c200;
  border-left-width: 8px;
  border-radius: 14px;
  background: #fff9dc;
  color: #25242f;
  box-shadow: 0 8px 30px rgb(23 25 67 / 25%);
  transform: translateX(-50%);
  font-size: 0.95rem;
}

.rp-tempbar-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.rp-tempbar-k {
  display: block;
  color: #6b5600;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rp-tempbar p {
  margin: 0;
}

.rp-tempbar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-tb-btn {
  min-height: 40px;
  padding: 6px 12px;
  border: 2px solid #394362;
  border-radius: 10px;
  background: #394362;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rp-tb-btn--quiet {
  background: #fff;
  color: #394362;
}

.rp-tb-btn:focus-visible, .rp-dialog :focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 2px;
}

.hm-plan-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 8px 0 0;
  color: #5d6273;
  font-size: 0.92rem;
}

html:not(.hm-js) .hm-plan-tools {
  display: none;
}

.hm-helper-list {
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e0e3e8;
  font-size: 0.92rem;
}

.rp-dialog {
  width: min(780px, calc(100vw - 20px));
}

.rp-dialog .hm-dialog-inner {
  max-height: calc(100dvh - 20px);
  overflow: auto;
}

.rp-body .rp-meta, .rp-body .rp-note, .rp-body .rp-bar-k {
  color: #5d6273;
  font-size: 0.9rem;
}

.rp-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rp-bar {
  height: 12px;
  overflow: hidden;
  border: 1px solid #c9cee0;
  border-radius: 6px;
  background: #f5f6fb;
}

.rp-bar span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: #2e7d4f;
}

.rp-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rp;
}

.rp-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 8px 10px;
  border: 1px solid #e0e3e8;
  border-radius: 10px;
  background: #fff;
}

.rp-item.is-done {
  border-color: #b9dcc7;
  background: #f1f8f3;
}

.rp-item > a {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.rp-item > a:hover .rp-item-t {
  text-decoration: underline;
}

.rp-item-t {
  color: #185abc;
  font-weight: 700;
}

.rp-item-secs, .rp-item-why {
  color: #5d6273;
  font-size: 0.86rem;
}

.rp-item-st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5d6273;
  font-size: 0.86rem;
}

.rp-dots {
  display: inline-flex;
  gap: 3px;
  margin-right: 6px;
}

.rp-off {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid #c9cee0;
  border-radius: 6px;
  background: #eef0f7;
  color: #394362;
  font-size: 0.8rem;
  font-weight: 400;
}

.rp-paste, .rp-code-in, .rp-add input, .rp-tt-fields input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c9cee0;
  border-radius: 8px;
  font: inherit;
}

.rp-code-in {
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rp-kind {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rp-kind legend {
  margin-bottom: 4px;
  font-size: 1rem;
}

.rp-dialog .rp-body label:has(input[type="checkbox"]), .rp-dialog .rp-body label:has(input[type="radio"]) {
  font-weight: 400;
}

.rp-dialog .rp-body label.rp-pick, .rp-dialog .rp-tsecs label, .rp-dialog .rp-tp > label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 2px 0;
  cursor: pointer;
}

.rp-pick input {
  margin-top: 5px;
}

.rp-none {
  font-size: 0.9rem;
}

.rp-add {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #e0e3e8;
}

.rp-err:empty {
  display: none;
}

.rp-warn {
  padding: 8px 10px;
  border: 1px solid #c9cee0;
  border-radius: 10px;
  background: #eef0f7;
}

.rp-warn p + p {
  margin-top: 6px;
}

.rp-share {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  padding-top: 10px;
  border-top: 1px solid #e0e3e8;
}

.rp-qrbox {
  flex: 0 0 180px;
}

.rp-qr {
  display: block;
  width: 180px;
  height: 180px;
}

.rp-share > div:last-child {
  flex: 1 1 240px;
  min-width: 0;
}

.rp-k {
  margin: 0;
  font-size: 0.85rem;
}

.rp-code {
  margin: 0 0 6px;
  color: #25242f !important;
  font-size: 1.3rem;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}

.rp-link {
  margin: 0 0 6px;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.rp-kinds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.rp-kindbox {
  padding: 8px;
  border: 1.5px dashed #c9cee0;
  border-radius: 12px;
  background: #fff;
}

.rp-kindbox.is-on {
  border-style: solid;
  border-color: #394362;
  background: #eef0f7;
}

.rp-kindbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #394362;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.rp-kindbtn::after {
  content: "+ Add";
  margin-left: auto;
  color: #185abc;
  font-size: 0.85rem;
  font-weight: 400;
}

.rp-kindbtn[aria-pressed="true"]::after {
  content: "On ✓";
  color: #2e7d4f;
}

.rp-kicon {
  font-size: 1.25rem;
}

.rp-kindbox .rp-paste {
  margin-top: 6px;
  background: #fff;
}

.rp-body .rp-kindnote {
  margin: 4px 0 0;
  font-size: 0.8rem;
}

.rp-kindh {
  margin: 4px 0 0;
  font-size: 1rem;
}

.rp-found {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-found > li {
  padding: 6px 8px;
  border: 1px solid #e0e3e8;
  border-radius: 10px;
  background: #fff;
}

.rp-body .rp-line {
  margin: 0 0 2px;
  color: #5d6273;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.rp-dialog .rp-body label.rp-pick {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 2px 0;
  font-size: 0.9rem;
  line-height: 1.25;
  cursor: pointer;
}

.rp-pick input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.rp-pick-t {
  display: block;
}

.rp-pick-s {
  display: block;
  color: #5d6273;
  font-size: 0.8rem;
}

.rp-add-res {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2px 10px;
}

.rp-item {
  border-left: 6px solid var(--hm-t-acc, #394362);
}

.rp-tile {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  height: 36px;
  border: 1px solid var(--hm-t-line, #c9cee0);
  border-radius: 10px;
  background: var(--hm-t, #eef0f7);
  font-size: 1.15rem;
}

.rp-item.is-done .rp-tile {
  border-color: #b9dcc7;
  background: #e6f4ea;
  color: #2e7d4f;
  font-weight: 700;
}

.rp-qr {
  image-rendering: pixelated;
}

.rp-qracts {
  margin-top: 6px;
}

@media (max-width: 575.98px) {
  .rp-strip {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: none;
    font-size: 0.86rem;
  }
}

@media (max-width: 575.98px) {
  .rp-strip-next {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .rp-tempbar {
    gap: 6px 10px;
    width: calc(100vw - 16px);
    padding: 8px 10px;
    font-size: 0.86rem;
  }
}

@media (max-width: 575.98px) {
  .rp-tempbar-btns {
    flex-wrap: nowrap;
  }
}

@media (max-width: 575.98px) {
  .rp-tb-btn {
    min-height: 36px;
    padding: 4px 10px;
  }
}

@media (max-width: 575.98px) {
  html.rp-has-strip body {
    padding-bottom: 110px;
  }
}

@media (max-width: 575.98px) {
  html.rp-has-strip .rp-tempbar {
    bottom: 110px;
  }
}

@media print {
  .rp-strip, .rp-tempbar {
    display: none !important;
  }
}

.rp-dialog.rp-dialog--wide {
  width: min(1240px, calc(100vw - 20px));
}

.rp-tt {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  grid-template-areas: "set pages" "out pages";
  grid-template-rows: auto 1fr;
  gap: 12px 16px;
  align-items: start;
}

.rp-tt-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-area: set;
}

.rp-tt > .rp-out {
  grid-area: out;
}

.rp-tt-right {
  grid-area: pages;
}

.rp-body .rp-tt-k {
  margin: 0 0 4px;
  color: #25242f;
  font-size: 0.85rem;
  font-weight: 700;
}

.rp-tt-board {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 4px;
}

.rp-tt-board > span {
  min-width: 70px;
  color: #5d6273;
  font-size: 0.8rem;
}

.rp-pills, .rp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rp-pill, .rp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border: 1.5px solid #c9cee0;
  border-radius: 999px;
  background: #fff;
  color: #25242f;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.rp-pill:hover, .rp-chip:hover {
  border-color: #394362;
}

.rp-pill[aria-pressed="true"] {
  border-color: #394362;
  background: #394362;
  color: #fff;
}

.rp-tt-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rp-tt-fields label {
  display: flex;
  flex-direction: column;
}

.rp-tt-right {
  min-width: 0;
}

.rp-tcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  max-height: min(70vh, 760px);
  overflow: auto;
  padding: 2px;
}

.rp-tcard {
  padding: 8px 10px 10px;
  border: 1px solid var(--hm-t-line, #e0e3e8);
  border-top: 4px solid var(--hm-t-acc, #394362);
  border-radius: 12px;
  background: var(--hm-t, #f5f6fb);
}

.rp-tcard h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.rp-chip {
  min-height: 30px;
  padding: 3px 10px;
  font-size: 0.84rem;
}

.rp-chip[aria-pressed="true"] {
  border-color: #394362;
  background: #394362;
  color: #fff;
}

.rp-chip[aria-pressed="true"]::before {
  content: "✓ ";
  white-space: pre;
}

.rp-chip-n {
  opacity: 0.85;
}

.rp-secs {
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed #394362;
  border-radius: 10px;
  background: #fff;
}

.rp-body .rp-secs-h {
  margin: 0 0 6px;
  color: #25242f;
  font-size: 0.8rem;
}

.rp-chip--sec[aria-pressed="true"] {
  background: #2e7d4f;
  border-color: #2e7d4f;
}

.rp-tt .rp-share {
  flex-direction: column;
}

.rp-tt .rp-qrbox {
  flex: 0 0 auto;
}

@media (min-width: 1100px) {
  .rp-tt {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "set out" "pages pages";
    grid-template-rows: auto auto;
  }
}

@media (min-width: 1100px) {
  .rp-tt > .rp-out .rp-share {
    flex-direction: row;
    flex-wrap: nowrap;
    padding-top: 0;
    border-top: 0;
  }
}

@media (min-width: 1100px) {
  .rp-tcards {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .rp-tt {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "set" "pages" "out";
    grid-template-rows: auto;
  }
}

@media (max-width: 860px) {
  .rp-tcards {
    max-height: none;
  }
}

.hm-plan-tools .hm-link-btn, .hm-helper-list .hm-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 3px 12px !important;
  border: 1.5px solid #c9cee0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #394362 !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none !important;
}

.hm-plan-tools .hm-link-btn:hover, .hm-helper-list .hm-link-btn:hover {
  border-color: #394362 !important;
  background: #eef0f7 !important;
}

.hm-plan-tools > span[aria-hidden] {
  display: none;
}

.hm-link-btn[data-go="teacher"] {
  border: 1.5px solid #5b8def !important;
  background: #e3efff !important;
  color: #1d4e9e !important;
}

.hm-link-btn[data-go="teacher"]:hover {
  background: #cfe2ff !important;
}

.rp-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 4px solid transparent;
  border-radius: 16px;
  background: linear-gradient(#fff5f0, #fff5f0) padding-box, linear-gradient(120deg, #b33a16, #d33c16 55%, #f08a24) border-box;
}

.rp-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.rp-panel-icon {
  width: 40px;
  height: 40px;
  background: #ffe1d6;
  font-size: 1.3rem;
}

.rp-panel-k {
  margin: 0;
  color: #a83214;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rp-panel h3 {
  margin: 0;
  font-size: 1.15rem;
}

.rp-panel .rp-meta {
  margin: 0;
  color: #5d6273;
  font-size: 0.85rem;
}

.rp-panel-prog {
  display: flex;
  flex: 1 1 160px;
  align-items: center;
  gap: 8px;
  color: #5d6273;
  font-size: 0.85rem;
}

.rp-panel-prog .rp-bar {
  flex: 1 1 auto;
}

.rp-carry {
  margin-left: auto;
}

.rp-items--panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 6px;
}

.rp-items--panel .rp-item-why {
  display: none;
}

.rp-tcard-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.rp-tcard-h h3 {
  margin: 0;
}

.rp-all {
  flex: 0 0 auto;
  padding: 2px 10px;
  border: 1.5px solid #394362;
  border-radius: 999px;
  background: #fff;
  color: #394362;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.rp-all:hover {
  background: #394362;
  color: #fff;
}

.rp-body .rp-saved {
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: #e6f4ea;
  color: #1f5c36;
  font-weight: 700;
}

.rp-swap-old {
  margin: 6px 0 !important;
  color: #25242f !important;
  font-weight: 700;
}

.rp-warn--swap p {
  color: #25242f;
}

@media (min-width: 1100px) {
  .rp-tt .rp-tcards {
    max-height: max(320px, calc(100dvh - 470px));
    overflow: auto;
  }
}

.rp-tt-intro {
  margin-bottom: 8px !important;
  font-size: 0.9rem;
}

.rp-tt-left {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}

.rp-tt-f {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  min-width: 0;
}

.rp-tt-f--c {
  flex: 1 1 260px;
}

.rp-tt-f--t {
  flex: 1 1 200px;
}

.rp-tt-f select, .rp-tt-f input {
  min-height: 38px;
  padding: 6px 10px;
  border: 1.5px solid #c9cee0;
  border-radius: 10px;
  background: #fff;
  color: #25242f;
  font: inherit;
  font-size: 0.92rem;
}

.rp-tt-f select:focus, .rp-tt-f input:focus {
  border-color: #394362;
  outline: 2px solid #394362;
  outline-offset: 1px;
}

.rp-tt-f[hidden] {
  display: none;
}

.rp-tt-dropped {
  color: #5d6273;
  font-weight: 400;
}

.rp-tcard[hidden], .rp-chip[hidden] {
  display: none;
}

.rp-out-empty {
  padding: 10px 12px;
  border: 1.5px dashed #c9cee0;
  border-radius: 12px;
}

.rp-out-empty .rp-note {
  margin: 0;
}

@media (min-width: 1100px) {
  .rp-tt {
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-areas: "set set" "pages out";
    grid-template-rows: auto 1fr;
  }
}

@media (min-width: 1100px) {
  .rp-tt > .rp-out {
    position: sticky;
    top: 0;
  }
}

@media (min-width: 1100px) {
  .rp-tt > .rp-out .rp-share {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1100px) {
  .rp-tt .rp-tcards {
    max-height: max(360px, calc(100dvh - 300px));
  }
}

@media (min-width: 861px) and (max-width: 1099.98px) {
  .rp-tt {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "set" "pages" "out";
  }
}

.rp-tt .rp-tcards {
  display: block;
  columns: 250px;
  column-gap: 10px;
}

.rp-tt .rp-tcard {
  margin-bottom: 10px;
  break-inside: avoid;
}

.rp-strip .rp-strip-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon head x" "page page next";
  align-items: center;
  gap: 8px 12px;
}

.rp-strip-icon {
  grid-area: icon;
}

.rp-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  grid-area: head;
  min-width: 0;
}

.rp-strip-head .rp-strip-plan {
  line-height: 1.25;
}

.rp-strip-head .rp-strip-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.rp-strip .rp-strip-secs {
  flex-wrap: wrap;
  grid-area: page;
  min-width: 0;
}

.rp-strip .rp-strip-secs .rp-strip-k {
  margin-left: 4px;
}

.rp-strip-in > .rp-strip-k {
  grid-area: page;
}

.rp-strip .rp-strip-next {
  grid-area: next;
  justify-self: end;
  max-width: 100%;
  line-height: 1.25;
}

.rp-strip .rp-strip-x {
  grid-area: x;
  order: 0;
  justify-self: end;
}

@media (max-width: 459.98px) {
  .rp-strip .rp-strip-in {
    grid-template-areas: "icon head x" "page page page" "next next next";
  }
}

@media (max-width: 459.98px) {
  .rp-strip .rp-strip-next {
    justify-self: start;
  }
}

.rp-strip {
  min-width: min(460px, calc(100vw - 24px));
}

.rp-tt .rp-tcards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  columns: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.rp-tt .rp-tcard {
  margin: 0;
  padding: 6px 10px;
  border-top-width: 3px;
}

.rp-tcard-h {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-tcard-t {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: #25242f;
  font: inherit;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
}

.rp-tcard-t:focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 2px;
  border-radius: 6px;
}

.rp-tcard-name {
  font-weight: 700;
}

.rp-tcard-n {
  color: #5d6273;
  font-size: 0.86rem;
}

.rp-tcard.has-some .rp-tcard-n {
  color: #2e7d4f;
  font-weight: 700;
}

.rp-chev {
  display: inline-block;
  width: 1em;
  color: #394362;
  transition: transform 0.15s;
}

.rp-tcard:not(.is-closed) .rp-chev {
  transform: rotate(90deg);
}

.rp-tcard.is-closed .rp-tcard-body {
  display: none;
}

.rp-tcard-body {
  padding: 4px 0 6px 22px;
}

.rp-tcard-h .rp-all {
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .rp-chev {
    transition: none;
  }
}

.rp-tgroup {
  list-style: none;
  margin: 0 0 6px;
  border: 1px solid var(--hm-t-line, #e0e3e8);
  border-left: 4px solid var(--hm-t-acc, #394362);
  border-radius: 10px;
  background: var(--hm-t, #f5f6fb);
}

.rp-tgroup summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.rp-tgroup summary::-webkit-details-marker {
  display: none;
}

.rp-tg-t {
  font-weight: 700;
}

.rp-tg-k {
  flex: 1 1 auto;
  color: #5d6273;
  font-size: 0.88rem;
}

.rp-tg-chev {
  color: #394362;
  transition: transform 0.15s;
}

.rp-tgroup details[open] .rp-tg-chev {
  transform: rotate(90deg);
}

.rp-items--in {
  margin: 0 8px 8px;
  padding: 0;
}

.rp-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
  margin: 8px 0 0 !important;
}

.rp-panel-ask {
  color: #25242f;
  font-size: 0.92rem;
}

.rp-panel-gone {
  margin: 8px 0 !important;
  padding: 10px 12px;
  border: 1px dashed #c9cee0;
  border-radius: 10px;
  color: #5d6273;
}

.rp-items--panel:has( > .rp-tgroup) {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
}

.rp-tgroup .rp-items--in {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px;
}

.rp-move-part {
  border: 1px solid #e0e3e8;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 12px;
  background: #fff;
}

.rp-move-part h3 {
  font-size: 1.02rem;
  font-weight: 900;
  margin: 0 0 4px;
  color: var(--rs-ink,#25242f);
}

.rp-move-part p {
  margin: 0 0 8px;
}

.rp-move-qr {
  width: min(260px,70vw);
  margin: 4px auto 6px;
}

.rp-move-qr .rp-qr {
  width: 100%;
  height: auto;
  display: block;
}

.rp-move-how {
  text-align: center;
  color: #5f6475;
}

.rp-move-warn {
  background: #fff6e0;
  border-left: 4px solid #c98a00;
  padding: 6px 10px;
  border-radius: 6px;
}

.rp-move-linkbox {
  width: 100%;
  margin-top: 4px;
  font-size: .85rem;
  padding: 4px 6px;
  border: 1px solid #d0d4e0;
  border-radius: 6px;
}

.rp-move-file {
  cursor: pointer;
}

.rp-move-msg, .rp-move-msg2 {
  min-height: 1.2em;
  margin: 0;
  color: #1d2b4f;
}

.rp-panel-foot .hm-link-btn + .hm-link-btn {
  margin-left: 10px;
}

.rp-dialog .hm-dialog-inner {
  padding-left: max(14px, 1.2vw);
  padding-right: max(14px, 1.2vw);
}

/* 25a: the plan maker's Order switch (the GCSE page's own Order control, Suggested | Exam board); spec sections in the GCSE menu's navy spec tint */

.rp-order {
  margin: 0 0 8px;
}

.rp-order[hidden] {
  display: none;
}

.rp-tcard.rp-tcard--spec {
  --hm-t: #eef0f7;
  --hm-t-line: #c9cee0;
  --hm-t-acc: #394362;
  --hm-t-ink: #394362;
}

