.admin-shell,
.admin-shell * {
  box-sizing: border-box;
}

:root {
  --navy: #0d1b3e;
  --green: var(--accent, #008037);
  --yellow: #ffe700;
  --ink: #172033;
  --muted: #677085;
  --line: #dce2ea;
  --surface: #ffffff;
  --soft: #f7f9fc;
  --shadow-soft: 0 10px 30px rgba(13, 27, 62, 0.08);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 249, 252, 0.98) 460px),
    var(--soft);
  color: var(--ink);
  font-family: Lato, Helvetica, Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.admin-auth-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.admin-auth-gate[hidden] {
  display: none;
}

.admin-auth-gate > div {
  width: min(100%, 560px);
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 14px;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(135deg, #fff, #f7fbf9 66%, #fffbe6),
    #fff;
  box-shadow: var(--shadow-soft);
}

.admin-auth-gate h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.admin-auth-gate p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.admin-auth-gate a {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  border-radius: 999px;
  padding: 12px 16px;
  color: #fff;
  background: var(--green);
  font-weight: 950;
  text-decoration: none;
}

.back-to-suite-link {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.86rem;
  text-decoration: none;
}
.back-to-suite-link:hover {
  color: var(--green);
}

.admin-view-label {
  /* was a 4-column grid holding 5 items (the title block + 4 action
     buttons/links) — the mismatched column count plus fixed `auto` sizing
     on nowrap buttons meant this row could overflow instead of reflowing
     once the sidebar being expanded ate into the available width. flex-wrap
     lets the buttons drop to their own line instead of clipping/overflowing. */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 128, 55, 0.18);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f7fbf9, #fffbe6);
  box-shadow: var(--shadow-soft);
}

.admin-view-label > div {
  flex: 1 1 240px;
  min-width: 0;
}

.admin-view-label strong,
.admin-view-label span {
  display: block;
}

.admin-view-label strong {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-view-label span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.admin-view-label a,
.admin-view-label button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  color: #fff;
  background: var(--green);
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.admin-view-label .command-center-link {
  background: var(--navy);
  box-shadow: 0 8px 22px rgba(13, 27, 62, 0.16);
}

.admin-view-label .command-center-link:hover,
.admin-view-label .command-center-link:focus-visible {
  background: #142a5f;
  outline: 2px solid rgba(255, 231, 0, 0.65);
  outline-offset: 2px;
}

.sandbox-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(13, 27, 62, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  background: #f7f8fb;
  flex-wrap: wrap;
}

.sandbox-bar.sandbox-active {
  border: 1px solid #f59e0b;
  border-left: 5px solid #f59e0b;
  background: linear-gradient(135deg, #fffaf0, #fff7e6);
}

.sandbox-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
}

.sandbox-toggle input {
  width: 18px;
  height: 18px;
}

.sandbox-bar-text {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--muted);
}

.sandbox-active .sandbox-bar-text {
  color: #92400e;
}

.brand-logo {
  display: block;
  width: min(205px, 48vw);
  height: auto;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-warning-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #000;
  background: #ffe700;
  box-shadow: 0 8px 18px rgba(255, 231, 0, 0.26);
}

.global-warning-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: #b45309;
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.18);
}

.client-lookup {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0 18px;
  border: 1px solid #f1da00;
  border-radius: 8px;
  padding: 14px;
  background: #fffbe6;
}

.client-lookup-combo {
  display: flex;
  gap: 6px;
}

.client-lookup-combo input {
  flex: 1;
  min-width: 0;
}

.client-lookup-combo select {
  flex: 0 0 140px;
  width: 140px;
  font-weight: 800;
  cursor: pointer;
}

.client-lookup-drop {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  margin-top: 4px;
  background: #fff;
  border: 1px solid rgba(13, 27, 62, 0.14);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16);
  max-height: 260px;
  overflow: auto;
}

.client-lookup-drop.show {
  display: block;
}

.client-lookup-row {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink, #181e23);
  border-bottom: 1px solid #f1f2f4;
}

.client-lookup-row:last-child {
  border-bottom: none;
}

.client-lookup-row:hover,
.client-lookup-row.active {
  background: #f5f8ff;
}

.client-lookup-empty {
  padding: 10px 12px;
  font-size: 0.86rem;
  color: var(--muted);
  font-style: italic;
}

.client-lookup p {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.admin-jump-card {
  position: fixed;
  left: calc(var(--tfc-sb-w, 230px) + clamp(18px, 2.4vw, 42px));
  bottom: 28px;
  z-index: 80;
  width: min(238px, calc(100vw - 64px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-color: #f1da00;
  background: linear-gradient(135deg, #fffbe6, #fff);
  transition: left .16s ease; /* moves with the sidebar's own collapse timing */
}

/* .admin-shell is a centered, width-capped block (width:min(1540px,...);
   margin:0 auto) — on a wide monitor, adding padding-left on top of that
   auto-centering stacked with the auto margin instead of replacing it,
   producing a much bigger blank gap than the jump card actually needs and
   eating into the same 1540px budget the cards render in. Overriding margin
   directly (with width:auto so the box fills whatever's left, capped at
   1540px) reserves just enough room to clear the jump card without any
   double-counted gap, and gives the real content back the rest of the width.
   290px = jump card's own max width (238px) + its max left offset (42px) + a
   small buffer — matches .admin-jump-card's own left/width formula above. */
.admin-shell.menu-left,
.admin-shell.menu-right {
  /* matches .tfc-sidebar's own collapse/expand timing (shared/sidebar.js) so
     the content reflows in step with the sidebar animating instead of
     snapping over a beat late/early — that mismatch is what read as
     "awkward" when collapsing the sidebar next to this page's own layout. */
  transition: margin-left .16s ease, margin-right .16s ease;
}

.admin-shell.menu-left {
  width: auto;
  max-width: 1540px;
  margin-left: calc(var(--tfc-sb-w, 230px) + 290px);
  margin-right: 24px;
}

.admin-shell.menu-right {
  width: auto;
  max-width: 1540px;
  margin-left: 24px;
  margin-right: 290px;
}

.admin-shell.menu-right .admin-jump-card {
  right: clamp(18px, 2.4vw, 42px);
  left: auto;
}

.admin-jump-card .admin-warning-chip {
  display: flex;
  margin-right: auto;
  margin-left: auto;
  justify-content: center;
  text-align: center;
}

.admin-jump-card h2,
.admin-jump-card .admin-note {
  text-align: center;
}

.admin-jump-card .admin-note {
  margin-right: auto;
  margin-left: auto;
  max-width: 24ch;
}

.control-side-toggle {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 7px;
  align-items: center;
  margin: 13px 0;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.76);
}

.control-side-toggle span {
  padding-left: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.control-side-toggle button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
}

.control-side-toggle button.is-active {
  color: #fff;
  background: var(--green);
}

.admin-jump-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.admin-jump-grid button {
  appearance: none;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--navy);
  background: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.admin-jump-grid button:hover,
.admin-jump-grid button.is-active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
  transform: translateY(-1px);
}

.admin-jump-grid button {
  text-align: center;
}

/* grab handle — lets the fixed menu be slid up/down so it never blocks what
   you're trying to read; position is remembered per browser */
.menu-drag-grip {
  display: block;
  width: 100%;
  border: 1px dashed #e0ca00;
  background: #fffbe6;
  color: #7a6a00;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 10px;
  cursor: grab;
  touch-action: none;
}

.menu-drag-grip:active {
  cursor: grabbing;
}

/* Document requests — the most-used destination; yellow so it's spottable at a glance */
.admin-jump-grid button[data-open-panel="documents"] {
  background: #FFE700;
  border-color: #e0ca00;
  color: #000;
}

.admin-jump-grid button[data-open-panel="documents"]:hover,
.admin-jump-grid button[data-open-panel="documents"].is-active {
  background: #000;
  border-color: #000;
  color: #FFE700;
}

.admin-section-panel {
  display: none;
}

.admin-section-panel.active {
  display: block;
  animation: panelIn 0.22s ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
}

textarea {
  padding-top: 12px;
  resize: vertical;
}

.admin-shell {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.admin-hero,
.admin-card {
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-hero {
  display: grid;
  /* auto-fit instead of a hard 300px floor on the right column — with the
     sidebar expanded eating into available width, a hard floor forced this
     row to overflow/clip instead of just wrapping the link-card to its own
     row on narrower layouts */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 247, 0.94) 64%, rgba(255, 251, 230, 0.9)),
    #fff;
}

.admin-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.admin-link-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-link-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-link-card a {
  color: var(--green);
  font-weight: 900;
}

.view-purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.purpose-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.purpose-card strong {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.18;
}

.purpose-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.purpose-admin {
  border-top: 5px solid #ffe700;
  background: linear-gradient(180deg, #fffbe6, #fff);
}

.purpose-client {
  border-top: 5px solid #0ea5a8;
  background: linear-gradient(180deg, #ecfeff, #fff);
}

.purpose-global {
  border-top: 5px solid #b45309;
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.purpose-sandbox {
  border-top: 5px solid #7c3aed;
  background: linear-gradient(180deg, #f5f3ff, #fff);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: clamp(22px, 2.2vw, 34px);
  margin-top: 24px;
}

.admin-card {
  padding: clamp(22px, 3vw, 30px);
}

.admin-layout > .admin-card:not(.admin-preview-card) {
  grid-column: 1;
}

.admin-preview-card {
  position: sticky;
  top: 18px;
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: start;
  background:
    linear-gradient(180deg, #f0faf4 0%, #ffffff 140px),
    #fff;
  border-top: 3px solid var(--green);
}

.admin-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.admin-note,
.saved-message {
  color: var(--muted);
  line-height: 1.5;
}

.saved-message:not([hidden]) {
  display: block;
  margin-top: 14px;
  border: 1px solid rgba(0, 128, 55, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--green);
  background: #f0faf4;
  font-weight: 900;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.admin-grid .span-2 {
  grid-column: 1 / -1;
}

.admin-grid select,
.admin-grid textarea,
.admin-grid input {
  width: 100%;
  min-height: 52px;
}

.stage-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.suite-stage-sync {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  border: 1px solid rgba(0, 128, 55, 0.14);
  border-radius: 12px;
  padding: 12px;
  background:
    linear-gradient(135deg, #f0faf4, #fff),
    #fff;
}

.suite-stage-sync div {
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.76);
}

.suite-stage-sync strong,
.suite-stage-sync span {
  display: block;
}

.suite-stage-sync strong {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.suite-stage-sync span {
  margin-top: 4px;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.3;
}

.stage-button {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 86px;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 14px 14px 14px 58px;
  color: var(--navy);
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
}

.stage-button strong,
.stage-button span {
  display: block;
}

.stage-button strong {
  font-size: 1rem;
}

.stage-number {
  position: absolute;
  top: 15px;
  left: 17px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.72) 0 16%, rgba(255, 255, 255, 0) 17%),
    linear-gradient(145deg, #0ba34c, #006b2e 74%);
  box-shadow:
    inset -4px -5px 8px rgba(0, 0, 0, 0.2),
    inset 3px 3px 6px rgba(255, 255, 255, 0.24),
    0 7px 14px rgba(0, 128, 55, 0.26);
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.stage-button span {
  color: var(--muted);
  font-size: 0.88rem;
}

.stage-button .stage-number {
  color: #fff;
}

.stage-button.selected {
  border-color: rgba(0, 128, 55, 0.35);
  background: #f0faf4;
  box-shadow: inset 0 0 0 2px rgba(0, 128, 55, 0.08);
}

.stage-button.selected .stage-number {
  color: #000;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.78) 0 16%, rgba(255, 255, 255, 0) 17%),
    linear-gradient(145deg, #fff472, #ffe700 58%, #d8bd00);
  box-shadow:
    inset -4px -5px 8px rgba(0, 0, 0, 0.14),
    inset 3px 3px 6px rgba(255, 255, 255, 0.3),
    0 7px 14px rgba(255, 231, 0, 0.32);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.file-details-card {
  border-color: rgba(0, 128, 55, 0.14);
  padding: 0;
  background:
    linear-gradient(135deg, #ffffff, #f7fbf9 66%, #f8fafc),
    #fff;
}

.file-details-collapse {
  overflow: hidden;
}

.file-details-collapse summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: clamp(22px, 3vw, 30px);
  cursor: pointer;
  list-style: none;
}

.file-details-collapse summary::-webkit-details-marker {
  display: none;
}

.file-details-collapse summary h2,
.file-details-collapse summary p {
  margin-bottom: 0;
}

.file-details-collapse summary b {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--green);
  background: #f0faf4;
  box-shadow: inset 0 0 0 1px rgba(0, 128, 55, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
}

.file-details-collapse:not([open]) summary b {
  color: var(--navy);
  background: #edf1f6;
}

.file-details-collapse > .admin-note,
.file-details-collapse > .admin-grid,
.file-details-collapse > .admin-actions {
  margin-left: clamp(22px, 3vw, 30px);
  margin-right: clamp(22px, 3vw, 30px);
}

.file-details-collapse > .admin-note {
  margin-top: -6px;
}

.file-details-collapse > .admin-actions {
  margin-bottom: clamp(22px, 3vw, 30px);
}

.file-details-card .admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.file-details-card label:nth-child(3) {
  position: relative;
}

.file-details-card label:nth-child(3)::after {
  content: "shown in borrower loan context";
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--green);
  background: #f0faf4;
  font-size: 0.72rem;
  font-weight: 900;
}

.internal-note-card {
  border-color: rgba(13, 27, 62, 0.18);
  background:
    linear-gradient(180deg, #fffdf0, #ffffff 42%),
    #fff;
}

.internal-note-card .eyebrow {
  color: #8a6d00;
}

.internal-warning {
  margin-top: 14px;
  border: 1px solid rgba(255, 231, 0, 0.86);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--navy);
  background: #fff9cf;
  font-weight: 900;
  line-height: 1.35;
}

.control-center-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #ffffff, #f7fbf9 68%, #fffbe6),
    #fff;
}

.control-center-card::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 28px;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(0, 128, 55, 0.16);
  border-radius: 26px;
  transform: rotate(12deg);
  pointer-events: none;
}

.control-center-card::after {
  content: "";
  position: absolute;
  top: 86px;
  right: 96px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 231, 0, 0.34);
  pointer-events: none;
}

.control-center-card > * {
  position: relative;
  z-index: 1;
}

.section-title-row {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
}

.section-title-row.compact {
  align-items: center;
  margin-bottom: 14px;
}

.scope-chip {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.scope-chip.file-scope {
  color: #fff;
  background: var(--green);
}

.scope-chip.global-scope {
  color: #000;
  background: var(--yellow);
}

.control-toolbar-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 760px);
  margin: 22px auto 18px;
  border: 1px solid rgba(0, 128, 55, 0.14);
  border-radius: 14px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 244, 0.92)),
    #fff;
  box-shadow: 0 16px 36px rgba(13, 27, 62, 0.08);
}

.control-toolbar-card .eyebrow {
  text-align: center;
}

.toolbar-shape {
  position: absolute;
  pointer-events: none;
}

.toolbar-shape.one {
  right: 22px;
  top: 14px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 128, 55, 0.18);
  border-radius: 16px;
  transform: rotate(14deg);
}

.toolbar-shape.two {
  left: 22px;
  bottom: 18px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 231, 0, 0.36);
}

.control-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 240px);
  gap: 16px;
  align-items: end;
  justify-content: center;
  margin-top: 12px;
}

.centered-actions {
  justify-content: center;
  margin-top: 14px;
}

.portal-link-command {
  margin-top: 16px;
  border: 1px solid rgba(0, 128, 55, 0.16);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.portal-link-command summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  color: var(--navy);
  cursor: pointer;
  font-weight: 950;
}

.portal-link-command summary small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.highlight-title-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 3px 8px;
  color: #000;
  background: #FFE700;
  font-weight: 950;
}

.suite-conditions-summary-line {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f0faf4;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(0, 128, 55, 0.18);
}

.link-command-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 14px;
}

.link-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.access-link-status {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  border-left: 5px solid var(--green);
  border-radius: 10px;
  padding: 12px 14px;
  background: #f7fbf9;
  color: var(--navy);
}

.access-link-status[data-tone="warning"] {
  border-left-color: #ffe700;
  background: #fff9cf;
}

.access-link-status[data-tone="success"] {
  border-left-color: var(--green);
  background: #eefaf3;
}

.access-link-status p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.access-link-status ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.35;
}

.portal-label-panel {
  margin-top: 16px;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.portal-label-panel summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  color: var(--navy);
  cursor: pointer;
  font-weight: 950;
}

.portal-label-panel summary small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.scope-explainer {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.35;
}

.scope-explainer.global {
  border: 1px solid rgba(255, 231, 0, 0.78);
  color: #1c1c08;
  background: #fff9cf;
}

.scope-explainer.file {
  border: 1px solid rgba(0, 128, 55, 0.16);
  color: var(--navy);
  background:
    linear-gradient(135deg, #f0faf4, #fff),
    #fff;
}

.scope-explainer strong,
.scope-explainer span {
  display: block;
}

.scope-explainer strong {
  font-weight: 950;
}

.scope-explainer span {
  color: var(--muted);
  font-weight: 850;
}

.portal-label-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.portal-label-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.portal-label-card label {
  display: grid;
  grid-template-columns: minmax(70px, 0.5fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.portal-label-card input[type="color"] {
  width: 44px;
  min-height: 34px;
  padding: 2px;
}

.portal-label-card code {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.portal-label-preview {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--label-text);
  background: var(--label-bg);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-label-preview + small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 850;
}

.palette-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.palette-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.palette-chip.yellow {
  color: #000;
  background: #ffe700;
}

.palette-chip.black {
  color: #fff;
  background: #000;
}

.palette-chip.green {
  color: #fff;
  background: #008037;
}

.request-manager {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  justify-items: center;
}

.suite-conditions-picker {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.suite-condition-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(13, 27, 62, 0.1);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
}

.suite-condition-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.suite-condition-row span:first-of-type {
  flex: 1;
}

.suite-condition-status {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.request-empty {
  border: 1px dashed rgba(13, 27, 62, 0.16);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
}

.request-control-card {
  width: min(100%, 820px);
  overflow: hidden;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-left: 5px solid var(--green);
  border-radius: 14px;
  padding: clamp(16px, 2vw, 22px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    #fff;
  box-shadow: 0 14px 32px rgba(13, 27, 62, 0.08);
}

.request-control-card.hidden-from-borrower {
  border-left-color: #94a3b8;
  background: #f8fafc;
}

.request-control-card.paused {
  box-shadow: inset 0 0 0 2px rgba(255, 231, 0, 0.28);
}

/* Borrower just responded and it's sitting in the "needs your review" group —
   distinct blue treatment so it doesn't blend into the plain white cards
   above/below it. Added 2026-07-07 alongside conditionNeedsReview() in
   admin.js. */
.request-control-card.needs-review {
  border-left-color: #2563eb;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(37, 99, 235, 0.02)),
    #fff;
  box-shadow:
    inset 0 0 0 2px rgba(37, 99, 235, 0.22),
    0 14px 32px rgba(13, 27, 62, 0.08);
}

.request-control-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.request-control-head h3 {
  margin: 8px 0 4px;
  color: var(--navy);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.1;
}

.request-control-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.request-submission-preview {
  margin-top: 8px;
  border: 1px solid #bbf7d0;
  border-radius: 9px;
  background: #f0fdf4;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.request-submission-label {
  font-weight: 800;
  color: #166534;
  margin-bottom: 4px;
}

.request-submission-preview ul {
  margin: 0;
  padding-left: 18px;
}

.request-submission-doclink {
  display: block;
  color: #166534;
  font-weight: 700;
  text-decoration: underline;
}

.request-added-at {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(0, 128, 55, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
  color: #225a3b;
  background: #f0faf4;
  font-size: 0.78rem;
  font-weight: 900;
}

.request-uw-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 10px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.request-status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--navy);
  background: #edf1f6;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.request-status-pill.accepted {
  color: #fff;
  background: var(--green);
}

.request-status-pill.needs_resend {
  color: #8a0f2f;
  background: #ffe4ec;
}

.request-status-pill.borrower_submitted,
.request-status-pill.under_review {
  color: #5b4a00;
  background: #fff7bf;
}

.request-status-pill.review {
  color: #fff;
  background: #2563eb;
}

.request-switches,
.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.request-switches button,
.request-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--navy);
  background: #edf1f6;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.request-actions button:first-child {
  color: #fff;
  background: var(--green);
}

.request-actions button:nth-child(2) {
  background: #fff7bf;
}

.request-actions button:last-child {
  color: #8a0f2f;
  background: #ffe4ec;
}

/* Borrower Questions — retroactive notify push buttons. Own classes (not
   the generic first/second/last-child rules above, which are tuned for the
   Live Requests action set) so these can have their own bigger size and
   higher-contrast solid colors instead of inheriting pastel ones meant for
   a different button row. Selectors matched to ".request-actions button"
   specificity (class + type) and kept below it in source order, so these
   actually win instead of being overridden by the nth-child rules above,
   which target the same generic ".request-actions button" element. */
.request-actions button.question-push-btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 900;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
}

.request-actions button.question-push-both {
  background: var(--green);
}

.request-actions button.question-push-text {
  background: #1d4ed8;
}

.request-actions button.question-push-email {
  background: #0f766e;
}

.question-select-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  width: fit-content;
}

.question-select-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--green);
}

.request-edit-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(210px, 0.7fr);
  gap: 14px;
  align-items: start;
  margin-top: 18px;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.request-edit-grid .span-2 {
  grid-column: 1 / -1;
}

.internal-field {
  border: 1px solid rgba(255, 231, 0, 0.86);
  border-radius: 8px;
  padding: 10px;
  background: #fffdf0;
}

.internal-field span::after {
  content: " · team only";
  color: #8a6d00;
}

.request-actions {
  justify-content: center;
  margin-top: 14px;
}

.request-builder {
  width: min(100%, 820px);
  margin: 22px auto 0;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 26px rgba(13, 27, 62, 0.06);
}

.request-builder .admin-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.checks-card {
  background:
    linear-gradient(180deg, #ffffff, #f8fafc),
    #fff;
}

.control-checklist {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.check-item {
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.check-item.ok {
  border-left-color: var(--green);
}

.check-item.needs-work {
  border-left-color: var(--yellow);
  background: #fffdf0;
}

.check-item strong,
.check-item span {
  display: block;
}

.check-item strong {
  color: var(--navy);
}

.check-item span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.content-editor {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.content-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    #f8fafc;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.content-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: var(--green);
}

.application-copy-card::before {
  background: linear-gradient(180deg, var(--green), #3a7bd5);
}

.status-copy-card::before {
  background: linear-gradient(180deg, var(--green), var(--yellow));
}

.content-item:focus-within {
  border-color: rgba(0, 128, 55, 0.32);
  box-shadow: 0 16px 34px rgba(0, 128, 55, 0.12);
  transform: translateY(-1px);
}

.content-item-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.content-item-header strong {
  display: block;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.2;
}

.content-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.locked-id {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.move-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.move-actions button {
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: #edf1f6;
  cursor: pointer;
  font-weight: 900;
}

.move-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.62fr) minmax(0, 1.38fr);
  gap: 12px;
}

.content-grid label:last-child {
  grid-column: 1 / -1;
}

.content-grid label span {
  color: var(--muted);
}

.micro-edit input {
  min-height: 46px;
  background: #fffdf0;
}

.copy-title-edit input {
  min-height: 58px;
  border-color: rgba(0, 128, 55, 0.18);
  color: var(--navy);
  background: #fff;
  font-size: 1.08rem;
  font-weight: 900;
}

.copy-body-edit textarea {
  min-height: 108px;
  border-color: rgba(13, 27, 62, 0.1);
  background: #fff;
  font-size: 1rem;
  line-height: 1.45;
}

.content-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.content-foot .locked-id,
.edit-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(237, 241, 246, 0.9);
}

.edit-state {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-primary,
.admin-secondary {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
}

.admin-primary {
  color: #fff;
  background: var(--green);
}

.admin-secondary {
  color: var(--navy);
  background: #edf1f6;
}

.admin-danger {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
  color: #fff;
  background: #c81e3a;
}

.kill-switch-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  border: 1px solid rgba(200, 30, 58, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fdf1f3;
}

.kill-switch-box strong {
  display: block;
  color: #7a1428;
  font-weight: 950;
}

.kill-switch-box span {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.4;
  max-width: 480px;
}

.preview-borrower-name {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  word-break: break-word;
}

.summary-row {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 3px;
}

.summary-row:nth-child(odd) {
  background: rgba(13, 27, 62, 0.035);
}

.summary-row:nth-child(even) {
  background: transparent;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.summary-row strong {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.25;
}

.change-log-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 27, 62, 0.08);
}

.change-log-head .eyebrow {
  margin: 0;
}

.text-btn {
  border: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.change-log {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.save-bar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: min(760px, calc(100% - 24px));
  margin: 14px auto 22px;
  border: 1px solid rgba(0, 128, 55, 0.22);
  border-radius: 8px;
  padding: 12px 14px 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(13, 27, 62, 0.16);
  backdrop-filter: blur(16px);
}

.save-bar[hidden] {
  display: none;
}

.save-bar strong,
.save-bar span {
  display: block;
}

.save-bar strong {
  color: var(--navy);
}

.save-bar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.save-bar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

.save-bar-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(13, 27, 62, 0.12);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.save-bar-close:hover,
.save-bar-close:focus-visible {
  border-color: rgba(0, 128, 55, 0.34);
  color: var(--green);
  outline: none;
}

.save-bar.saving {
  border-color: rgba(255, 231, 0, 0.86);
}

.save-bar.saved {
  border-color: rgba(0, 128, 55, 0.28);
  background: rgba(240, 250, 244, 0.95);
}

.log-empty,
.log-item {
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.log-empty {
  color: var(--muted);
}

.log-item strong,
.log-item span {
  display: block;
}

.log-item strong {
  color: var(--navy);
  line-height: 1.25;
}

.log-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 820px) {
  .admin-shell,
  .admin-shell.menu-left,
  .admin-shell.menu-right {
    width: min(100% - 18px, 540px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px;
  }

  .admin-jump-card {
    position: sticky;
    top: 10px;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-height: none;
  }

  .admin-hero,
  .view-purpose-grid,
  .admin-layout,
  .admin-grid,
  .admin-view-label,
  .client-lookup,
  .admin-jump-grid,
  .suite-stage-sync,
  .stage-buttons,
  .control-toolbar,
  .link-command-grid,
  .request-control-head,
  .request-edit-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .request-switches,
  .request-actions {
    justify-content: stretch;
  }

  .request-switches button,
  .request-actions button {
    flex: 1 1 100%;
  }

  .content-item-header,
  .content-foot {
    display: grid;
  }

  .admin-preview-card,
  .admin-layout > .admin-card:not(.admin-preview-card) {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-preview-card {
    position: static;
  }

  .admin-card,
  .admin-hero {
    padding: 18px;
  }

  .admin-primary,
  .admin-secondary {
    width: 100%;
  }

  .save-bar {
    position: sticky;
    top: 8px;
    width: 100%;
    margin: 10px auto 16px;
    display: grid;
  }

  .save-bar-actions {
    width: 100%;
  }

  .save-bar-actions .admin-primary {
    flex: 1 1 auto;
  }
}

/* Live borrower requests — group headers in the real request manager */
.live-req-group {
  margin: 18px 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5b6472;
}

.live-req-group.needs-review-heading {
  color: #2563eb;
  font-size: 0.86rem;
}

/* Hide the desktop menu-side toggle — it crowded the menu and Left is the
   default; the setting still works if it was ever changed before */
.control-side-toggle {
  display: none;
}

/* Live borrower requests — stacked layout: the item name reads full-width
   across the card and the action buttons sit in a row underneath, instead of
   the old two-column squeeze that wrapped titles one word per line */
#liveRequestsPanel .request-control-card {
  width: 100%;
}

#liveRequestsPanel .request-control-head {
  display: block;
}

#liveRequestsPanel .request-control-head h3 {
  margin: 8px 0 2px;
  font-size: 1.08rem;
  line-height: 1.35;
}

#liveRequestsPanel .request-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

/* Borrower reminders panel — On/Paused/Off pill row */
.reminder-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
}

.reminder-status-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.reminder-status-row button.is-active[data-status="On"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.reminder-status-row button.is-active[data-status="Paused"] {
  border-color: #b45309;
  background: #fef3c7;
  color: #92400e;
}

.reminder-status-row button.is-active[data-status="Off"] {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #475569;
}

/* Reminder wording live preview — shows the email/text filled in with the
   picked client's real name and outstanding items */
.reminder-preview {
  display: grid;
  gap: 12px;
}

.rp-block {
  border: 1px solid rgba(13, 27, 62, 0.1);
  border-left: 5px solid var(--green);
  border-radius: 10px;
  padding: 14px 16px;
  background: #f8fafc;
}

.rp-label {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5b6472;
  margin-bottom: 6px;
}

.rp-subject {
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}

.rp-body {
  color: var(--ink, #172033);
  font-size: 0.92rem;
  line-height: 1.55;
}

.wiring-help-details {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  background: #f8fafc;
}

.wiring-help-details summary {
  cursor: pointer;
  font-weight: 800;
  color: #1559a8;
  list-style: none;
}

.wiring-help-details summary::-webkit-details-marker {
  display: none;
}

.wiring-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 12px 0 4px;
}

.wiring-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.wiring-row h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-bottom: 8px;
}

.wiring-chain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wiring-box {
  background: #fff;
  border: 1.5px solid #1559a8;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.wiring-box.optional {
  border-color: #94a3b8;
  color: var(--muted);
}

.wiring-arrow {
  color: #94a3b8;
  font-size: 1.05rem;
  font-weight: 700;
}

.wiring-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
