/**
 * RP My Account — logged-in account surfaces.
 *
 * Loaded on account pages alongside rp-ds.css (primitives: .rp-btn, .rp-card,
 * .rp-pill, .rp-stat, --rp-* tokens) and woocommerce.css (nav rail + content
 * card layout). This file owns everything inside the content card: the button
 * tier system, the dashboard, public-profile settings, and the stock
 * WooCommerce forms (account details / addresses), which are styled here
 * rather than overridden with templates.
 *
 * Action grammar ("orange whispers"):
 *   primary   .rp-btn-primary    tangelo — exactly ONE per view, the next action
 *   secondary .rp-btn-secondary  navy solid — commits a form, second-order actions
 *   quiet     .rp-btn-quiet      outline — safe, reversible
 *   ghost     .rp-act            Signal Blue text link — navigation, row actions
 *   danger    .rp-btn-danger     mahogany outline — destructive, fills on hover
 * Unclassed stock-WC buttons fall back to the navy secondary via woocommerce.css.
 */

/* ==========================================================================
   Button tiers (extends .rp-btn / .rp-btn-primary / .rp-btn-quiet in rp-ds.css)
   ========================================================================== */

.rp-btn-secondary {
  background: var(--rp-deep);
  color: #fff;
  box-shadow: var(--rp-sh-sm);
}
.rp-btn-secondary:hover {
  background: var(--rp-blue-800);
  color: #fff;
}

.rp-btn-danger {
  background: transparent;
  color: var(--rp-mahogany);
  border-color: color-mix(in srgb, var(--rp-mahogany) 45%, transparent);
}
.rp-btn-danger:hover {
  background: var(--rp-mahogany);
  border-color: var(--rp-mahogany);
  color: #fff;
}

.rp-btn-sm {
  font-size: 0.82rem;
  padding: 0.55em 0.95em;
  border-radius: 7px;
}

/* Ghost text action — Signal Blue, arrow optional via .rp-act-more */
.woocommerce-account .woocommerce-MyAccount-content a.rp-act {
  font-weight: 600;
  font-size: var(--rp-small);
  color: var(--rp-blue-bright);
  text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-content a.rp-act:hover {
  color: var(--rp-deep);
  text-decoration: none;
}
.rp-act-more { white-space: nowrap; }
.rp-act-more::after {
  content: "\2192";
  margin-left: 0.35em;
  transition: transform 0.16s var(--rp-e);
  display: inline-block;
}
.rp-act-more:hover::after { transform: translateX(2px); }

/* Kill the navy blanket rule for tiered buttons that also carry stock classes */
.woocommerce-account .woocommerce-MyAccount-content .rp-btn-primary,
.woocommerce-account .woocommerce-MyAccount-content .rp-btn-primary:hover {
  background: var(--rp-white, #FFFFFF); color: var(--rp-tangelo-700, #C04000); border: 2px solid var(--rp-tangelo);
  opacity: 1;
}
.woocommerce-account .woocommerce-MyAccount-content .rp-btn-primary:hover { background: var(--rp-tangelo-50, #FFF3ED); }
.woocommerce-account .woocommerce-MyAccount-content .rp-btn-danger {
  background: transparent;
  color: var(--rp-mahogany);
}
.woocommerce-account .woocommerce-MyAccount-content .rp-btn-danger:hover {
  background: var(--rp-mahogany);
  color: #fff;
  opacity: 1;
}
.woocommerce-account .woocommerce-MyAccount-content .rp-btn-quiet {
  background: var(--rp-surface);
  color: var(--rp-ink);
}
.woocommerce-account .woocommerce-MyAccount-content .rp-btn-quiet:hover {
  background: var(--rp-surface-2);
  opacity: 1;
}

/* Nav rail — no underline in any state (a global a:hover rule sneaks one in) */
.woocommerce-account .woocommerce-MyAccount-navigation li a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li a:focus,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a:hover {
  text-decoration: none;
}

/* ==========================================================================
   Status pills — one grammar across dashboard / consultations / orders
   (base .rp-pill lives in rp-ds.css)
   ========================================================================== */

.rp-pill-muted { background: var(--rp-bg); color: var(--rp-ink-3); }
.rp-pill-navy  { background: var(--rp-blue-100); color: var(--rp-deep); }

/* ==========================================================================
   Identity header (dashboard)
   ========================================================================== */

.rp-acct-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rp-line);
  margin-bottom: 22px;
}
.rp-acct-face {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--rp-deep), var(--rp-night));
  color: #fff;
  font-family: var(--rp-serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  user-select: none;
}
.rp-acct-id { flex: 1 1 auto; min-width: 0; }
.rp-acct-name {
  font-family: var(--rp-serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--rp-ink);
  margin: 0;
}
.rp-acct-meta {
  /* META register (sans, sentence case): an email and a join date are
     identity, not data, so they do not take mono. */
  font-family: var(--rp-sans);
  font-size: 0.875rem;
  letter-spacing: 0;
  color: var(--rp-ink-3);
  margin: 6px 0 0;
  display: flex;
  gap: 0.9em;
  flex-wrap: wrap;
}
.rp-acct-badge { flex: none; display: flex; align-items: center; gap: 10px; }
.rp-acct-badge .rp-pill svg { width: 13px; height: 13px; }
.rp-acct-badge a { font-size: 0.82rem; }

/* ==========================================================================
   Next-action hero (dashboard) — the page's single tangelo moment
   ========================================================================== */

.rp-acct-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--rp-bg);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-card);
  padding: 22px 26px;
  margin-bottom: 22px;
}
.rp-acct-hero-copy { flex: 1 1 320px; min-width: 0; }
.rp-acct-hero .rp-filed { display: block; margin-bottom: 7px; }
.rp-acct-hero-title {
  font-family: var(--rp-serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--rp-ink);
  margin: 0;
}
.rp-acct-hero-sub {
  font-size: var(--rp-small);
  line-height: 1.55;
  color: var(--rp-ink-2);
  margin: 6px 0 0;
  max-width: 52ch;
}
.rp-acct-hero-cta { flex: none; }

/* ==========================================================================
   Stat row (dashboard) — account-scale override of rp-ds .rp-stat
   ========================================================================== */

.rp-acct-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
  margin: 0 0 24px;
}
.rp-acct-stats .rp-stat { gap: 0.3rem; }
.rp-acct-stats .rp-stat__n { font-size: 2.1rem; }
.rp-acct-stats .rp-stat__l { font-size: 0.68rem; }
.rp-acct-stats a.rp-stat { text-decoration: none; }
.rp-acct-stats a.rp-stat:hover .rp-stat__n { color: var(--rp-deep); }

/* ==========================================================================
   Dashboard work cards — .rp-card grammar in the existing .rp-dash grid
   ========================================================================== */

.rp-dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 0;
}
.rp-dash .rp-card { display: flex; flex-direction: column; padding: 1.35rem 1.4rem 1.4rem; }
.rp-dash .rp-card:hover { transform: none; } /* informational cards don't lift */
.rp-dash-cardhead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.9rem;
}
.rp-dash-cardhead .rp-card-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 0;
}
.rp-dash-cardhead .rp-card-ico svg { width: 18px; height: 18px; }
.rp-dash-cardhead h3 { font-size: 1.15rem; }

.rp-dash-list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.rp-dash-list li {
  display: flex;
  gap: 8px 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 9px 0;
  border-bottom: 1px solid var(--rp-line);
}
.rp-dash-list li:first-child { padding-top: 0; }
.rp-dash-list li:last-child { border-bottom: 0; }
.rp-dash-item-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  font-size: var(--rp-small);
}
/* Item titles are content, not calls to action — ink at rest, signal on
   hover. The card's one blue affordance is its footer link. */
.woocommerce-account .woocommerce-MyAccount-content a.rp-dash-item-title:not(.button):not(.wp-element-button) {
  color: var(--rp-ink);
  text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-content a.rp-dash-item-title:not(.button):not(.wp-element-button):hover {
  color: var(--rp-blue-bright);
  text-decoration: none;
}
.rp-dash-muted {
  font-family: var(--rp-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--rp-ink-3);
}
.rp-dash-empty {
  flex: 1 1 auto;
  font-size: var(--rp-small);
  line-height: 1.6;
  color: var(--rp-ink-2);
  margin: 0;
}
.rp-dash-cardfoot { margin: 0.9rem 0 0; }
.rp-dash-cardfoot + .rp-dash-cardfoot { margin-top: 0.5rem; }

/* Live profile URL inside the profile card */
.rp-dash-url {
  font-family: var(--rp-mono);
  font-size: 0.78rem;
  word-break: break-all;
}

@media (max-width: 820px) {
  .rp-dash { grid-template-columns: 1fr; }
  .rp-acct-stats { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.2rem; }
}

/* ==========================================================================
   Verification nudge — quieter than a Woo notice, still first in the eye line
   ========================================================================== */

.rp-acct-verify {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--rp-tangelo-50);
  border: 1px solid var(--rp-tangelo-100);
  border-radius: var(--rp-r-card);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: var(--rp-small);
  color: var(--rp-ink);
}
.rp-acct-verify p { margin: 0; flex: 1 1 300px; line-height: 1.5; }

/* ==========================================================================
   Section headers inside content views
   ========================================================================== */

.rp-acct-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 1.8rem 0 0.9rem;
}
.rp-acct-section:first-child { margin-top: 0; }
.rp-acct-section h3 { margin: 0; }
.rp-acct-section .rp-filed { display: block; }

/* ==========================================================================
   Tables — data cells in mono, row actions as text
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content td.rp-td-mono,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-date {
  font-family: var(--rp-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.rp-resume-manage td { background: var(--rp-surface-2); }
.rp-resume-manage form { display: inline-flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.rp-resume-manage .input-text {
  max-width: 20rem;
  font-size: 0.85rem;
  padding: 0.45em 0.7em;
  border: 1px solid var(--rp-line-2);
  border-radius: 7px;
  background: var(--rp-surface);
  color: var(--rp-ink);
}
.rp-resume-manage .input-text:focus {
  outline: none;
  border-color: var(--rp-blue-bright);
  box-shadow: 0 0 0 3px var(--rp-blue-50);
}

/* ==========================================================================
   Public profile settings
   ========================================================================== */

.rp-prof-status {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-card);
  padding: 16px 20px;
  margin-bottom: 22px;
  background: var(--rp-surface-2);
}
.rp-prof-status--live { background: var(--rp-blue-50); border-color: var(--rp-blue-100); }
.rp-prof-status-copy { flex: 1 1 280px; min-width: 0; }
.rp-prof-status-copy p { margin: 6px 0 0; font-size: var(--rp-small); line-height: 1.55; color: var(--rp-ink-2); }
.rp-prof-url {
  font-family: var(--rp-mono);
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--rp-deep);
}
.rp-prof-status-actions { flex: none; display: flex; gap: 8px; align-items: center; }

/* Fieldset groups */
.rp-fieldgroup {
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-card);
  padding: 20px 22px 22px;
  margin: 0 0 16px;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset.rp-fieldgroup legend,
.rp-fieldgroup legend {
  font-family: var(--rp-cond);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rp-ink-3);
  padding: 0 8px;
  margin-left: -8px;
}
.rp-fieldgroup > p.form-row:first-of-type { margin-top: 0; }
.rp-fieldgroup .rp-hint {
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--rp-ink-3);
  margin-top: 5px;
}

/* Toggle switch (pure CSS over the existing checkbox).
   The stock form-row label rule below forces display:block — out-specify it. */
.woocommerce-account .woocommerce-MyAccount-content form .form-row label.rp-switch,
.rp-switch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
}
.rp-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rp-switch-track {
  flex: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--rp-line-2);
  position: relative;
  transition: background 0.16s;
  margin-top: 1px;
}
.rp-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 36, 44, 0.25);
  transition: transform 0.16s var(--rp-e);
}
.rp-switch input:checked + .rp-switch-track { background: var(--rp-blue-bright); }
.rp-switch input:checked + .rp-switch-track::after { transform: translateX(18px); }
.rp-switch input:focus-visible + .rp-switch-track {
  outline: 2px solid var(--rp-blue-bright);
  outline-offset: 2px;
}
.rp-switch-label { line-height: 1.4; }
.rp-switch-label .rp-hint { font-weight: 400; }

/* Slug prefix layout */
.rp-slugrow {
  display: flex;
  align-items: stretch;
  max-width: 34rem;
}
.rp-slugrow .rp-slug-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 10px 0 12px;
  border: 1px solid var(--rp-line-2);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--rp-surface-2);
  font-family: var(--rp-mono);
  font-size: 0.78rem;
  color: var(--rp-ink-3);
  white-space: nowrap;
}
.rp-slugrow input { border-radius: 0 8px 8px 0 !important; flex: 1 1 auto; min-width: 0; }

/* Character counter */
.rp-counter {
  float: right;
  font-family: var(--rp-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--rp-ink-3);
}
.rp-counter.is-max { color: var(--rp-mahogany); }

/* Copy button feedback */
.rp-copy-done { color: var(--rp-blue-bright) !important; border-color: var(--rp-blue-bright) !important; }

/* ==========================================================================
   Stock WooCommerce forms — account details & addresses (CSS only)
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row {
  margin: 0 0 14px;
}
.woocommerce-account .woocommerce-MyAccount-content form .form-row label {
  display: block;
  margin-bottom: 5px;
}
.woocommerce-account .woocommerce-MyAccount-content form .form-row input.input-text,
.woocommerce-account .woocommerce-MyAccount-content form .form-row select,
.woocommerce-account .woocommerce-MyAccount-content form .form-row textarea {
  width: 100%;
  border: 1px solid var(--rp-line-2);
  border-radius: 8px;
  padding: 0.6em 0.8em;
  font-family: var(--rp-sans);
  font-size: 0.92rem;
  background: var(--rp-surface);
  color: var(--rp-ink);
}
.woocommerce-account .woocommerce-MyAccount-content form .form-row input.input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content form .form-row select:focus,
.woocommerce-account .woocommerce-MyAccount-content form .form-row textarea:focus {
  outline: none;
  border-color: var(--rp-blue-bright);
  box-shadow: 0 0 0 3px var(--rp-blue-50);
}

/* Name / city-state rows side by side on wide screens */
@media (min-width: 700px) {
  .woocommerce-account .woocommerce-MyAccount-content .form-row-first,
  .woocommerce-account .woocommerce-MyAccount-content .form-row-last {
    width: calc(50% - 8px);
    float: none;
    display: inline-block;
    vertical-align: top;
  }
  .woocommerce-account .woocommerce-MyAccount-content .form-row-first { margin-right: 12px; }
}

/* Password-change fieldset as a sub-card */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-card);
  padding: 18px 20px 20px;
  margin: 22px 0 18px;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset legend {
  font-family: var(--rp-serif);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  padding: 0 8px;
  margin-left: -8px;
}

/* Addresses index — the two address blocks as cards */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address { width: auto; float: none; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .woocommerce-Address-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-card);
  padding: 16px 18px;
  font-style: normal;
  font-size: var(--rp-small);
  line-height: 1.65;
  color: var(--rp-ink-2);
  background: var(--rp-surface-2);
}
@media (max-width: 700px) {
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Public profile settings — repeatable experience/education rows
   ========================================================================== */

.rp-repeat { display: grid; gap: 14px; margin-bottom: 12px; }
.rp-repeat-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0 14px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-card, 10px);
  background: var(--rp-surface-2);
  padding: 16px 16px 6px;
}
.rp-repeat-row > p { margin-bottom: 10px !important; }
.rp-repeat-half { grid-column: span 3; }
.rp-repeat-third { grid-column: span 2; }
.rp-repeat-full { grid-column: 1 / -1; }
.rp-repeat-remove {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: none;
  padding: 4px 6px;
  cursor: pointer;
  font-family: var(--rp-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rp-ink-3);
}
.rp-repeat-remove:hover { color: var(--rp-mahogany, #c04000); }
.rp-prof-creds { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .rp-repeat-half, .rp-repeat-third { grid-column: 1 / -1; }
}

/* ==========================================================================
   Instructor Materials (inc/instructor-gate.php)
   The rp-ds card grid is sized for full-width page bands; inside the account
   content column it wants fewer, wider columns so a blurb stays readable.
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content .rp-cards {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin: 1.1rem 0 0;
}
.woocommerce-account .woocommerce-MyAccount-content .rp-card h3 {
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
}
.woocommerce-account .woocommerce-MyAccount-content .rp-card p {
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ===========================================================================
   THE TYPE RULING                                                2026-08-19
   ===========================================================================
   The signed-in account area. Registers as defined at the end of rp-ds.css.
   This is a customer-facing surface, not admin, so the ruling applies here
   exactly as it does on the marketing pages. */

.rp-repeat-remove,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset.rp-fieldgroup legend,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address .woocommerce-Address-title{
  font-family:var(--rp-sans);font-weight:600;font-size:.9375rem;
  letter-spacing:-.01em;text-transform:none}

.rp-dash-muted{
  font-family:var(--rp-sans);font-weight:400;font-size:.875rem;line-height:1.5;
  letter-spacing:0;text-transform:none}

/* These KEEP mono, because each one is data a customer may need to copy or
   compare exactly: an order reference, a URL, a slug, a counter, a table cell.
   They only stop being 11 to 12px. */
.rp-acct-meta,
.rp-dash-url,
.rp-prof-url,
.rp-slugrow .rp-slug-prefix,
.rp-counter,
.woocommerce-account .woocommerce-MyAccount-content td.rp-td-mono{
  font-size:.875rem}

/* ==========================================================================
   The appointment (inc/calendly.php): when, where, and what you can do
   about it. Serif for the time because it is the one fact on the page.
   ========================================================================== */

.rp-appt {
  margin: 0 0 22px;
  padding: 18px 22px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-card);
  background: var(--rp-surface);
}
.rp-appt.is-past { opacity: .72; }
.rp-appt__kick {
  font-family: var(--rp-sans);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.01em;
  color: var(--rp-ink);
  margin: 0 0 4px;
}
.rp-appt__when {
  font-family: var(--rp-serif);
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--rp-ink);
  margin: 0;
}
.rp-appt__where {
  font-family: var(--rp-sans);
  font-size: .875rem;
  color: var(--rp-ink-2);
  margin: 6px 0 0;
}
.rp-appt__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 12px 0 0;
}
.rp-act-quiet { color: var(--rp-ink-3); }

.rp-scheduler__lead { margin: .25rem 0 .75rem; }
.rp-scheduler { margin: 0 0 .5rem; }
.rp-scheduler__help { font-size: .92em; }

.rp-selfsched {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 14px;
  margin: 0 0 1rem;
}
.rp-selfsched__at {
  display: grid;
  gap: 4px;
  font-family: var(--rp-sans);
  font-size: .875rem;
  color: var(--rp-ink-2);
}
.rp-selfsched__at input {
  font-family: var(--rp-sans);
  font-size: .9375rem;
  padding: 6px 10px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-btn);
  background: var(--rp-surface);
  color: var(--rp-ink);
}
.rp-selfsched__fold { margin: .5rem 0 1rem; }
.rp-selfsched__fold > summary {
  cursor: pointer;
  font-family: var(--rp-sans);
  font-size: .875rem;
  color: var(--rp-ink-3);
}
.rp-selfsched__fold[open] > summary { margin-bottom: 10px; }

/* ==========================================================================
   Studio (inc/consultants.php): the consultant's queue and case.
   ========================================================================== */

.rp-app__count {
  font-family: var(--rp-sans);
  font-size: .875rem;
  color: var(--rp-ink-2);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-tag);
}
.rp-app__count:hover { color: var(--rp-ink); }

.rp-studio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.rp-studio-scopes { display: flex; gap: 4px; }
.rp-studio-scope {
  font-family: var(--rp-sans);
  font-size: .9rem;
  padding: 6px 12px;
  border-radius: var(--rp-r-btn);
  color: var(--rp-ink-2);
  text-decoration: none;
}
.rp-studio-scope:hover { color: var(--rp-ink); text-decoration: none; }
.rp-studio-scope.is-current,
.rp-studio-scope.is-current:hover { background: var(--rp-navy); color: var(--rp-white); }
.rp-studio-filter label {
  font-family: var(--rp-sans);
  font-size: .875rem;
  color: var(--rp-ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-studio-filter select {
  font-family: var(--rp-sans);
  font-size: .9rem;
  padding: 5px 8px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-btn);
  background: var(--rp-surface);
}

.rp-studio-ready { font-size: .875rem; color: var(--rp-ink-2); }
.rp-studio-ready s { color: var(--rp-ink-3); }

.rp-case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}
.rp-case-name {
  font-family: var(--rp-serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}
.rp-case-meta {
  font-family: var(--rp-sans);
  font-size: .875rem;
  color: var(--rp-ink-3);
  margin: 6px 0 0;
}
.rp-case-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--rp-line);
}
.rp-case-acts form { margin: 0; display: flex; align-items: center; gap: 8px; }
.rp-case-assign label {
  font-family: var(--rp-sans);
  font-size: .875rem;
  color: var(--rp-ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.rp-case-assign select,
.rp-case-deliver input[type="text"],
.rp-case-note textarea {
  font-family: var(--rp-sans);
  font-size: .9rem;
  padding: 6px 10px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-btn);
  background: var(--rp-surface);
  color: var(--rp-ink);
}

.rp-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .rp-case-grid { grid-template-columns: 1fr; } }

.rp-case-section { margin: 0 0 24px; }
.rp-case-section h4 {
  font-family: var(--rp-sans);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.01em;
  color: var(--rp-ink);
  margin: 0 0 8px;
}
.rp-case-dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 18px;
  margin: 0;
  font-size: .9375rem;
}
.rp-case-dl dt { color: var(--rp-ink-3); }
.rp-case-dl dd { margin: 0; color: var(--rp-ink); overflow-wrap: anywhere; }

.rp-case-deliver {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin: 10px 0 0;
}
.rp-case-deliver label {
  display: grid;
  gap: 4px;
  font-family: var(--rp-sans);
  font-size: .875rem;
  color: var(--rp-ink-2);
}
.rp-case-deliver button { justify-self: start; }

.rp-case-note { display: grid; gap: 8px; margin: 0 0 12px; }
.rp-case-note textarea { width: 100%; resize: vertical; }
.rp-case-note button { justify-self: start; }
.rp-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-notes__item { display: grid; gap: 2px; font-size: .875rem; }
.rp-notes__item.is-system .rp-notes__text { color: var(--rp-ink-3); }
.rp-notes__meta { font-family: var(--rp-sans); font-size: .8125rem; color: var(--rp-ink-3); }
.rp-notes__text { color: var(--rp-ink); white-space: pre-line; }

/* The timeline: one line, one dot per stage, the current one in signal blue. */
.rp-timeline {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  position: relative;
}
.rp-timeline::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 7px;
  height: 1px;
  background: var(--rp-line);
}
.rp-timeline__step { position: relative; display: grid; gap: 4px; padding: 0 6px 0 0; }
.rp-timeline__mark {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--rp-surface);
  border: 1.5px solid var(--rp-line-2);
  position: relative;
}
.rp-timeline__step.is-done .rp-timeline__mark { background: var(--rp-blue-bright); border-color: var(--rp-blue-bright); }
.rp-timeline__step.is-current .rp-timeline__mark { border-color: var(--rp-blue-bright); box-shadow: inset 0 0 0 3px var(--rp-surface), inset 0 0 0 8px var(--rp-blue-bright); }
.rp-timeline__label { font-family: var(--rp-sans); font-size: .8125rem; color: var(--rp-ink-2); }
.rp-timeline__step.is-current .rp-timeline__label { color: var(--rp-ink); font-weight: 600; }
.rp-timeline__step.is-upcoming .rp-timeline__label { color: var(--rp-ink-3); }
.rp-timeline__detail { font-family: var(--rp-sans); font-size: .75rem; color: var(--rp-ink-3); }
@media (max-width: 720px) {
  .rp-timeline { grid-auto-flow: row; gap: 8px; }
  .rp-timeline::before { display: none; }
  .rp-timeline__step { grid-template-columns: 15px 1fr; column-gap: 10px; align-items: center; }
  .rp-timeline__detail { grid-column: 2; }
}

/* Credentials: the mark is the abbreviation, set as a small navy tag. */
.rp-creds { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.rp-creds--compact { margin-bottom: 10px; }
.rp-creds__item { display: flex; align-items: center; gap: 10px; font-size: .9375rem; }
.rp-creds__abbr {
  font-family: var(--rp-sans);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: -.01em;
  padding: 3px 8px;
  border-radius: var(--rp-r-tag);
  background: var(--rp-night);
  color: var(--rp-white);
}
.rp-creds__label { color: var(--rp-ink); }

/* ── The consultant's brief (studio case) ─────────────────────────────── */
.rp-case-brief__part { padding: 12px 0; border-block-start: 1px solid var(--rp-line); }
.rp-case-brief__part:last-child { padding-block-end: 0; }
.rp-case-brief__label {
  font-family: var(--rp-sans);
  font-weight: 600;
  font-size: .8125rem;
  color: var(--rp-ink-3);
  margin: 0 0 8px;
}
.rp-case-brief__missing { margin: -4px 0 8px; font-size: .8125rem; line-height: 1.5; color: var(--rp-ink-3); }
.rp-case-brief h4 .rp-pill { margin-inline-start: 8px; vertical-align: middle; }
.rp-case-brief__line { margin: 0 0 8px; font-size: .9375rem; color: var(--rp-ink); }
.rp-case-brief__note { margin: 8px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--rp-ink-3); }
.rp-case-brief__quote {
  margin: 10px 0 0;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--rp-line-2);
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--rp-ink-2);
}
.rp-case-brief__jobs { list-style: none; margin: 0; padding: 0; }
.rp-case-brief__job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
  padding: 8px 0;
  border-block-start: 1px solid var(--rp-line);
}
.rp-case-brief__job:first-child { border-block-start: 0; padding-block-start: 0; }
.rp-case-brief__job-main { display: grid; gap: 2px; font-size: .9375rem; }
.rp-case-brief__job-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rp-case-brief__job-main a { color: var(--rp-ink); }
.rp-case-brief__job.is-the-one .rp-case-brief__job-main a { font-weight: 600; }
.rp-case-brief__job-meta { font-size: .8125rem; color: var(--rp-ink-3); }
.rp-case-brief__job-number { font-family: var(--rp-mono); font-size: .75rem; color: var(--rp-ink-3); }
.rp-case-brief__job-when {
  font-family: var(--rp-mono);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  color: var(--rp-ink-3);
  white-space: nowrap;
}
.rp-case-brief__job-when.is-urgent { color: var(--rp-tangelo); }
.rp-case-brief__job-side { display: grid; gap: 2px; justify-items: end; }
.rp-case-brief__job-applied {
  font-family: var(--rp-mono);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  color: var(--rp-blue-bright);
  white-space: nowrap;
}
.rp-case-brief__findings { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.rp-case-brief__findings li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
  font-size: .875rem;
  padding-inline-start: 10px;
  border-inline-start: 2px solid var(--rp-line-2);
}
.rp-case-brief__findings li.is-blocker { border-inline-start-color: var(--rp-tangelo); }
.rp-case-brief__finding-kind { color: var(--rp-ink-3); white-space: nowrap; }
.rp-case-brief__finding { color: var(--rp-ink); }
@media (max-width: 40rem) {
  .rp-case-brief__job { grid-template-columns: minmax(0, 1fr); }
  .rp-case-brief__job-side { justify-items: start; }
  .rp-case-brief__findings li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Every dropdown in the account frame (last in the file, so the
   per-screen field rules above cannot reset it): the native arrow sat on the text
   (8px of right padding), so each draws its own chevron from two token
   gradients and leaves room for it. */
.rp-studio-filter select,
.rp-case-assign select,
.woocommerce-account .woocommerce-MyAccount-content form .form-row select {
  -webkit-appearance: none;
  appearance: none;
  padding: 7px 34px 7px 12px;
  line-height: 1.3;
  color: var(--rp-ink);
  background-color: var(--rp-surface);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rp-ink-3) 50%),
    linear-gradient(135deg, var(--rp-ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.rp-studio-filter select:focus,
.rp-case-assign select:focus {
  outline: none;
  border-color: var(--rp-blue-bright);
  box-shadow: 0 0 0 3px var(--rp-blue-50);
}
