.staff-member-beta,
.staff-member-beta * {
  min-width: 0;
}

.staff-dashboard-heading {
  margin: 28px 0 18px;
}

.staff-card {
  overflow: hidden;
}

.staff-project-title,
.staff-safe-message,
.staff-public-reason,
.staff-review-brand-request,
.staff-facts dd,
.staff-actions .member-beta-action-feedback {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.staff-panel {
  border-top: 1px solid var(--line, #333);
  margin-top: 22px;
  padding-top: 22px;
}

.staff-facts {
  display: grid;
  grid-template-columns: minmax(130px, .55fr) minmax(0, 1.45fr);
  gap: 8px 16px;
  margin: 16px 0;
}

.staff-facts dt {
  color: var(--muted, #a5a8ac);
  font-size: 13px;
}

.staff-facts dd {
  margin: 0;
}

.staff-safe-message,
.staff-public-reason {
  border-left: 2px solid #e9aa55;
  background: #21190f;
  padding: 10px 14px;
  white-space: pre-wrap;
}

.staff-actions {
  align-items: flex-start;
}

.staff-actions .member-beta-action {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.staff-actions .member-beta-action-feedback {
  flex-basis: 100%;
}

.staff-review-brand-request {
  margin: 0 0 10px;
  padding: 8px 14px;
  border-left: 2px solid #8a8a8a;
  font-weight: 600;
}

@media (max-width: 390px) {
  .staff-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .staff-facts dd {
    margin-bottom: 10px;
  }

  .staff-actions,
  .staff-actions .member-beta-action {
    width: 100%;
  }
}

/* Staff account screen (account-view.mjs) */
.staff-account,
.staff-account * {
  min-width: 0;
}

.staff-account-list {
  display: grid;
  gap: 12px;
}

.staff-account-email,
.staff-account-notice,
.staff-confirm-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.staff-account-notice {
  border-left: 2px solid #ffab98;
  background: #2a1512;
  padding: 10px 14px;
}

.staff-account-notice--success {
  border-color: var(--green, #22e12c);
  background: #102014;
}

.staff-scope-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border: 1px solid var(--line, #33363a);
  margin: 12px 0;
  padding: 10px 14px;
}

.staff-scope-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.staff-confirm-text {
  flex-basis: 100%;
  margin: 0;
  color: #ffcf98;
}

@media (max-width: 390px) {
  .staff-scope-picker {
    flex-direction: column;
    gap: 0;
  }
}

/* Staff P1 work screen (work-view.mjs) */
.staff-work,
.staff-work * {
  min-width: 0;
}

.staff-work-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
}

.staff-work-item,
.staff-work-project h3,
.staff-work-choice span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.staff-work-unread {
  border-left: 2px solid var(--green, #22e12c);
  padding-left: 10px;
}

.staff-work-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.staff-work-field {
  display: grid;
  gap: 4px;
}

.staff-work-field input,
.staff-work-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
}

.staff-work-field textarea {
  min-height: 88px;
  resize: vertical;
}

.staff-work-fee-control { display: flex; align-items: center; gap: 8px; }
.staff-work-fee-control input { flex: 1; min-width: 0; height: var(--cp-control-height, 40px); min-height: var(--cp-control-height, 40px); }
.staff-work-fee-unit { flex: none; }
.staff-candidate-eligibility { margin: 0 0 8px 32px; }

.staff-work-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border: 1px solid var(--line, #33363a);
  margin: 0;
  padding: 10px 14px;
}

.staff-work-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.cp-design .staff-candidate-hidden-confirm { gap: var(--cp-space-2); min-height: var(--cp-control-height); }
.cp-design .staff-candidate-hidden-confirm input { flex: none; }
.cp-design .staff-candidate-selection { min-width: 0; }
.cp-design .staff-candidate-selection li, .cp-design .staff-candidate-hidden-confirm span { overflow-wrap: anywhere; }
.cp-design .staff-candidate-selection summary { cursor: pointer; }

.staff-work-projects-list {
  display: grid;
  gap: 12px;
}

@media (max-width: 390px) {
  .staff-work-choices {
    flex-direction: column;
    gap: 0;
  }

  .staff-work-form .member-beta-action {
    width: 100%;
  }
}

/* P2a review screen (review-view.mjs) reuses the .staff-work rules; only additions here. */
.staff-review .staff-work-item,
.staff-review dd {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.staff-review-actions .member-beta-action,
.staff-review-contact .member-beta-action,
.staff-review-media .member-beta-action {
  min-height: 44px;
}

@media (max-width: 390px) {
  .staff-review .staff-actions {
    display: grid;
    gap: 8px;
  }

  .staff-review .staff-actions .member-beta-action {
    width: 100%;
  }
}

/* P2b screen (p2b-view.mjs): deadlines, closures, exceptions. Reuses .staff-work rules; additions only. */
.staff-p2b .staff-work-item,
.staff-p2b dd,
.staff-p2b .staff-safe-message {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.staff-p2b .member-beta-action {
  min-height: 44px;
}

.staff-p2b-amount {
  margin: 8px 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.staff-p2b-confirm {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e9aa55;
  border-radius: 8px;
}

.staff-p2b-resolve,
.staff-review-recovery {
  margin-top: 10px;
}

@media (max-width: 390px) {
  .staff-p2b .staff-actions {
    display: grid;
    gap: 8px;
  }

  .staff-p2b .staff-actions .member-beta-action {
    width: 100%;
  }

  .staff-p2b input:not([type=radio]):not([type=checkbox]),
  .staff-p2b textarea {
    width: 100%;
    box-sizing: border-box;
  }
}

.staff-p2b input[type=radio],
.staff-p2b input[type=checkbox] {
  flex: none;
  width: 20px;
  height: 20px;
}

/* Radio and its text on one line, left aligned (07 Fin render check at 390px). */
.staff-p2b .staff-work-choice,
.staff-review .staff-work-choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
  overflow-wrap: anywhere;
}

.staff-review input[type=radio] {
  flex: none;
  width: 20px;
  height: 20px;
}

/* Keep Korean words whole in choice text ("(베타 합성)" no longer splits mid-word); very long ids still wrap. */
.staff-review .staff-work-choice span,
.staff-p2b .staff-work-choice span {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.staff-operations .staff-work-item span {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* P3b screens (settlement-screen, appeals-screen, corrections-screen) reuse the .staff-p2b rules; additions only. */
.staff-settlement .staff-work-item,
.staff-appeals .staff-work-item,
.staff-corrections .staff-work-item,
.staff-settlement .staff-safe-message,
.staff-appeals p,
.staff-corrections p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.staff-settlement .staff-work-item span,
.staff-appeals .staff-work-item span,
.staff-corrections .staff-work-item span {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* P4 screens (handover-screen, receipts-screen) reuse the .staff-p2b rules; additions only. Korean breaks at word boundaries, English wraps anywhere. */
.staff-handover .staff-work-item,
.staff-receipts .staff-work-item,
.staff-handover p,
.staff-receipts p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.staff-handover .staff-work-item span,
.staff-receipts .staff-work-item span {
  overflow-wrap: anywhere;
}

.staff-handover[lang="ko"] .staff-work-item span,
.staff-receipts[lang="ko"] .staff-work-item span,
.staff-handover[lang="ko"] p,
.staff-receipts[lang="ko"] p {
  word-break: keep-all;
}

.staff-receipts input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: 0 0 auto;
}

.staff-receipts .staff-work-choice {
  min-height: 44px;
}

/* DEL-2 panels (cancel-panel, info-deletion-panel): long titles and request numbers wrap. */
.cp-design .app-staff-screen :is(.staff-deletion, .staff-cancellation) h3 {
  margin-block-start: var(--cp-space-5);
}

.staff-cancellation p,
.staff-cancellation li,
.staff-info-deletion p,
.staff-info-deletion li {
  overflow-wrap: anywhere;
}

/* 03 LG-3: namespaced tokens/components, full-width master summary and 390px cards. */
.cp-design .app-withdrawal-summary { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
.cp-design .app-withdrawal-summary:empty { display: none; }
.cp-design .staff-withdrawal { min-width: 0; }
.cp-design .withdrawal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.cp-design .withdrawal-list > li { align-content: start; }
.cp-design .withdrawal-list .cp-actions:last-child { margin-top: auto; }
.cp-design .staff-withdrawal .cp-field { min-width: 0; display: grid; gap: 8px; }
.cp-design .staff-withdrawal .cp-field > span { overflow-wrap: anywhere; }
.cp-design .staff-withdrawal .cp-input { width: 100%; }
.cp-design .staff-withdrawal textarea.cp-input { height: auto; min-height: 104px; resize: vertical; }
.cp-design .withdrawal-auth + .withdrawal-auth { padding-top: 16px; border-top: 1px solid var(--cp-control-line); }
.cp-design .withdrawal-pair > section { align-content: start; }
@media (max-width: 767px) { .cp-design .withdrawal-list { grid-template-columns: 1fr; } }
/* The legacy common button hover otherwise overrides cp primary hover contrast. */
.cp-design :is(.staff-withdrawal, .staff-withdrawal-summary) .cp-button--primary:not(:disabled):hover { background: var(--cp-accent-hover); border-color: var(--cp-accent-hover); color: var(--cp-ink); }
.cp-design .staff-withdrawal .cp-field:has(textarea:not([rows="1"])) { grid-template-rows: minmax(24px, auto) auto auto; }
.cp-design .staff-withdrawal h4 { margin: 0; font-size: 1rem; line-height: 1.3; }

/* Operational preparation ②; opt-in additions, design catalogue remains owned by 02. */
.cp-design :is(.staff-pre2-application, .staff-pre2-repayments, .staff-first-overdue, .staff-pre2-first) { min-width: 0; overflow-wrap: anywhere; }
.cp-design :is(.staff-pre2-application, .staff-pre2-repayments, .staff-first-overdue) :is(h2,h3,h4,h5,p) { margin: 0; }
.cp-design .staff-pre2-first { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-block: 16px; }
.cp-design .staff-pre2-first > .cp-chip { justify-self: start; }
.cp-design .staff-pre2-first details { min-width: 0; }
.cp-design .staff-pre2-first summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.cp-design .staff-first-overdue .cp-d2-record { grid-template-columns: minmax(0, 1fr); align-items: start; }
.cp-design .staff-first-overdue .cp-d2-head > h2 { flex: 1 1 160px; }
.cp-design :is(.staff-pre2-application, .staff-pre2-repayments) .cp-field { grid-template-rows: auto auto auto; gap: 8px; }
.cp-design :is(.staff-pre2-application, .staff-pre2-repayments) textarea { height: auto; min-height: 104px; resize: vertical; width: 100%; }
.cp-design .staff-review .staff-work-field { gap: 8px; align-content: start; }
.cp-design .staff-review .staff-work-field input { height: var(--cp-control-height); min-height: var(--cp-control-height); }
.cp-design :is(.staff-pre2-application, .staff-pre2-repayments, .staff-first-overdue) .cp-actions { display: flex; align-items: center; gap: 8px; }
.cp-design :is(.staff-pre2-application, .staff-pre2-repayments) .cp-button--primary:not(:disabled):hover { background: var(--cp-accent-hover); border-color: var(--cp-accent-hover); color: var(--cp-ink); }
.cp-design .staff-pre2-repayments .cp-number { font-family: var(--cp-font-display); }

/* O3/O4: scoped report and confirmation layout; common design files remain owned by 02. */
.cp-design .staff-operating { min-width:0; }
.cp-design .staff-operating :is(h2,h3,h4,p) { margin:0; overflow-wrap:anywhere; }
.cp-design .staff-operating .operating-cards { display:grid; }
.cp-design .staff-operating .operating-table { display:none; }
.cp-design .staff-operating .operating-preview { min-width:0; display:grid; align-content:start; }
.cp-design .staff-operating .operating-check { display:flex; align-items:center; gap:8px; }
.cp-design .staff-operating .operating-check input { width:24px; height:24px; min-height:24px; margin:0; padding:0; flex:none; }
.cp-design .staff-operating textarea { min-height:104px; }
.cp-design .staff-operating .cp-d2-deadlines { grid-template-columns:minmax(0,1fr); }
.cp-design .staff-operating .cp-d2-deadline { gap:8px; }
.cp-design .staff-operating .cp-d2-deadline > .cp-chip { justify-self:start; }
.cp-design .staff-operating summary { min-height:32px; line-height:24px; padding:0; }
.cp-design .staff-operating .cp-d2-workspace { align-items:stretch; }
.cp-design .staff-operating .cp-d2-records { align-content:start; }
.cp-design .staff-operating .cp-table td { height:64px; }
@media(min-width:768px){ .cp-design .staff-operating .operating-table { display:table; } }

.cp-design .staff-operating .cp-field { display:grid; grid-template-rows:auto auto auto; align-content:start; gap:8px; }
.cp-design .staff-operating .cp-button--primary:hover:not(:disabled) { background:var(--cp-paper); color:var(--cp-ink); }
.cp-design .staff-work .member-beta-action { height:var(--cp-control-height); min-height:var(--cp-control-height); }

.cp-design .staff-operating .cp-chip { justify-self:start; }

.cp-design .staff-media-protection { min-width:0; margin-block:24px; }
.cp-design .staff-media-protection :is(h2,h3,p,dt,dd) { margin:0; overflow-wrap:anywhere; }
.cp-design .staff-media-protection .cp-d2-head { align-items:center; }
.cp-design .staff-media-protection-list { list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:16px; padding:0; margin:0; align-items:stretch; }
.cp-design .staff-media-protection-list > li { align-content:start; }
.cp-design .staff-media-protection .cp-d3-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); gap:16px; margin:0; }
.cp-design .staff-media-protection .cp-d3-facts > div { min-width:0; display:grid; gap:8px; align-content:start; }
.cp-design .staff-media-protection .cp-d3-facts dt { color:var(--cp-muted); font-size:14px; }
.cp-design .staff-media-protection .cp-d3-facts dd { font-size:16px; font-weight:600; }

/* O6 confirmation and immutable history use the shared design tokens. */
.cp-design :is(.staff-opinion,.staff-opinion-history) :is(h4,h5,p) { margin:0; overflow-wrap:anywhere; }
.cp-design .staff-opinion .cp-field { grid-template-rows:auto auto auto; gap:8px; }
.cp-design .staff-opinion textarea { min-height:104px; }

/* ST-1: controls use the shared token; feedback sits outside each button group. */
.cp-design .staff-p2b-deadline .staff-work-field { gap:8px; align-content:start; }
.cp-design .staff-p2b-deadline .staff-work-field input { height:var(--cp-control-height); min-height:var(--cp-control-height); }
.cp-design .staff-p2b-deadline-pair { row-gap:8px; margin-block:16px; }
.cp-design .staff-p2b-deadline-pair > .staff-work-field { grid-row:span 2; grid-template-rows:subgrid; }
.cp-design .staff-review-contact .cp-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.cp-design .staff-review-contact button { height:var(--cp-control-height); min-height:var(--cp-control-height); margin:0; }
.cp-design .staff-review-contact .cp-actions + .member-beta-action-feedback,
.cp-design .staff-review-contact-feedback .member-beta-action-feedback { margin-block:8px; }

/* D2-1a: first work view, stable rows and a separate read-only preview. */
.cp-design .staff-inbox { gap:16px; }
.cp-design .staff-inbox h2,.cp-design .staff-inbox h3,.cp-design .staff-inbox h4,.cp-design .staff-inbox p { margin:0; }
.cp-design .staff-inbox-approvals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; align-items:stretch; }
.cp-design .staff-inbox-approvals > section { align-content:start; }
.cp-design .staff-inbox-approvals .cp-actions { margin-top:auto; }
.cp-design .staff-inbox .cp-d2-workspace > section { align-content:start; }
/* ROW height follows its content; the page owns scrolling so the last row stays whole. */
.cp-design .staff-inbox-records { max-height:none; overflow:visible; }
.cp-design .staff-inbox .cp-d2-record { align-items:start; }
.cp-design .staff-inbox .cp-d2-record > .cp-button { align-self:center; }
.cp-design .staff-inbox .cp-d2-deadlines { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.cp-design .staff-inbox time { overflow-wrap:anywhere; }
@media(max-width:767px) { .cp-design .staff-inbox-approvals { grid-template-columns:minmax(0,1fr); } .cp-design .staff-inbox-records { max-height:none;overflow:visible; } }
.cp-design .staff-inbox .cp-d2-timeline li > div { min-width:0; display:grid; gap:8px; }
.cp-design .staff-inbox .cp-d2-timeline time { display:block; }

/* D2-1b staff presentation. Shared design catalogue stays owned by 02. */
.cp-design :is(.staff-d2-screen,.staff-d2-handover-workspace,.staff-d2-decision,.staff-d2-handover-summary) { min-width:0; overflow-wrap:anywhere; }
.cp-design .staff-d2-screen :is(h2,h3,h4,p,dl), .cp-design .staff-d2-handover-picker :is(h2,p) { margin:0; }
.cp-design .staff-d2-screen .staff-work-list { list-style:none; margin:0; padding:0; }
.cp-design .staff-d2-screen .staff-d2-list { gap:8px; align-content:start; }
.cp-design .staff-d2-screen .staff-d2-list > li { display:grid; padding:16px; border:1px solid var(--cp-control-line); border-radius:8px; min-height:0; gap:8px 16px; align-items:center; }
.cp-design .staff-d2-screen .staff-panel { margin-top:16px; padding-top:16px; }
.cp-design .staff-d2-screen .cp-d2-workspace > section > .staff-panel { margin-top:0; padding-top:0; border:0; }
.cp-design .staff-d2-screen :is(.staff-work-field,.staff-work-choices) { gap:8px; margin-block:16px; }
.cp-design :is(.staff-d2-screen,.staff-handover,.staff-review) .member-beta-action { height:var(--cp-control-height); min-height:var(--cp-control-height); padding-block:0; }
.cp-design .staff-d2-screen .staff-p2b-confirm, .cp-design .staff-handover .staff-p2b-confirm { margin-top:16px; padding:16px; }
.cp-design :is(.staff-d2-screen,.staff-handover) .staff-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-block:16px 0; }
.cp-design .staff-d2-list .staff-actions { margin:0; }
.cp-design :is(.staff-d2-screen,.staff-review) .staff-work-field > :is(input,textarea,select) { width:100%; }
.cp-design .staff-d2-decision { margin-top:16px; }
.cp-design .staff-d2-decision > summary { cursor:pointer; min-height:40px; display:flex; align-items:center; font-weight:600; }
.cp-design .staff-d2-next { display:flex; align-items:center; gap:8px; margin-top:16px; }
.cp-design .staff-d2-next input { flex:none; width:20px; height:20px; min-height:20px; margin:0; }
.cp-design .staff-d2-timeline { margin-block:16px; }
.cp-design .staff-d2-money { margin-block:16px; }
.cp-design .staff-d2-money dd { margin:0; overflow-wrap:anywhere; }
.cp-design .staff-d2-handover-picker .cp-d2-records { list-style:none; padding:0; margin:0; }
.cp-design .staff-d2-handover-picker .cp-d2-record p { display:grid; gap:8px; }
.cp-design .staff-d2-handover-workspace > .cp-d2-box > .staff-p2b > .staff-handover-root { padding:0; border:0; background:transparent; }
.cp-design .staff-d2-handover-workspace .staff-handover-root > h2 { margin:0; }
.cp-design .staff-d2-handover-summary { margin-top:16px; }
.cp-design .staff-d2-handover-summary :is(h3,p) { margin:0; }
@media(max-width:767px) {
 .cp-design .staff-d2-screen .staff-d2-list > li { grid-template-columns:minmax(0,1fr); align-items:start; }
 .cp-design .staff-d2-list .staff-actions > button { width:auto; }
 .cp-design .staff-d2-handover-summary { grid-template-columns:minmax(0,1fr); }
}
.cp-design .staff-d2-screen input:not([type=checkbox]):not([type=radio]), .cp-design .staff-d2-screen select { height:var(--cp-control-height); min-height:var(--cp-control-height); padding-block:0; }
.cp-design .staff-d2-decision :is(p,h4,h5) { margin:0; }
.cp-design .staff-d2-decision .staff-panel, .cp-design .staff-review-actions { margin-top:16px; padding-top:16px; }
.cp-design .staff-d2-decision > summary::after { content:'＋'; margin-left:auto; padding-left:8px; }
.cp-design .staff-d2-decision[open] > summary::after { content:'−'; }

/* RV-1: the one-line deficiency location uses the shared control height. */
.cp-design .staff-p2b-assess .staff-work-field input { height:var(--cp-control-height); min-height:var(--cp-control-height); }

/* D3 staff/master: readable hierarchy without changing server state or guards. */
.cp-design .app-staff-screen { font-size:16px; line-height:1.5; }
.cp-design .app-staff-screen :is(input,select,textarea,button) { font-size:16px; }
.cp-design .app-staff-screen :is(h2,h3,h4,h5,h6) { margin-block:0 16px; line-height:1.4; font-weight:600; }
.cp-design .app-staff-screen h2 { font-size:24px; line-height:1.35; font-weight:700; }
.cp-design .app-staff-screen :is(h3,h4,h5,h6) { font-size:20px; }
.cp-design .app-staff-screen :is(.meta,.cp-caption,.cp-hint,.staff-facts dt) { font-size:14px; line-height:21px; color:var(--cp-secondary); }
.cp-design .app-staff-screen :is(.staff-facts dd,.cp-fact-row dt,.cp-fact-row dd) { font-size:16px; line-height:24px; }
.cp-design .app-staff-screen :is(.card,.staff-card,.cp-d2-box) { border-radius:12px; padding:24px; }
.cp-design .app-staff-screen :is(.state,.cp-chip) { font-size:14px; line-height:21px; min-height:32px; padding:4px 8px; border-radius:4px; }
.cp-design .app-staff-screen .staff-work-projects-list { display:grid; gap:16px; }
.cp-design .app-staff-screen .staff-d3-project { border-bottom:1px solid var(--cp-control-line); }
.cp-design .app-staff-screen .staff-d3-project > summary { padding:16px 0; font-size:20px; line-height:28px; }
.cp-design .app-staff-screen .staff-d3-project > summary .state { margin-left:8px; vertical-align:middle; }
.cp-design .app-staff-screen .staff-d3-project .staff-work-project { border:0; background:transparent; padding:16px 0; }
.cp-design .app-staff-screen .staff-d3-review-stage { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; align-items:start; }
.cp-design .app-staff-screen .staff-d3-review-stage > * { min-width:0; margin:0; }
.cp-design .app-staff-screen .staff-d3-review-stage .staff-work-item { display:block; padding:0; background:transparent; border:0; }
.cp-design .app-staff-screen .staff-facts.cp-fact-list { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.cp-design .app-staff-screen .staff-facts.cp-fact-list dd { margin:0; }
.cp-design .app-staff-screen .cp-disclosure { margin-top:16px; }
@media(max-width:767px){.cp-design .app-staff-screen h2{font-size:22px;}.cp-design .app-staff-screen :is(.card,.staff-card,.cp-d2-box){padding:16px;}.cp-design .app-staff-screen .staff-d3-review-stage{grid-template-columns:minmax(0,1fr);gap:24px;}}

.cp-design .app-staff-screen :is(.staff-info-deletion,.staff-info-request) input:not([type=checkbox]):not([type=radio]) { height:var(--cp-control-height);min-height:var(--cp-control-height);font-size:16px; }
.cp-design .app-staff-screen .staff-info-deletion :is(input,select) { height:var(--cp-control-height);min-height:var(--cp-control-height); }
.cp-design .app-staff-screen .staff-d3-member > summary { padding:16px 0; cursor:pointer; font-size:20px; line-height:28px; overflow-wrap:anywhere; }
.cp-design .app-staff-screen .staff-d3-member .staff-account-row { margin:0; padding:16px 0; border:0; }
.cp-design .app-staff-screen :is(.cp-d2-timeline li,.staff-real-month li) { border:0; border-bottom:1px solid #555; border-radius:0; background:transparent; }
.cp-design .app-staff-screen .staff-facts .cp-fact-row dt { color:var(--cp-secondary);font-size:16px; }

.cp-design .app-staff-screen summary:focus-visible {outline:var(--cp-toss-focus-width) solid var(--cp-toss-focus-color);outline-offset:var(--cp-toss-focus-offset);}
.cp-design .app-staff-screen input:not([type=checkbox]):not([type=radio]),.cp-design .app-staff-screen select,.cp-design .app-staff-screen textarea {border:1px solid var(--cp-control-line);}

.cp-design .app-staff-screen .cp-d2-money > div {display:grid;grid-template-columns:minmax(100px,.4fr) minmax(0,1fr);gap:8px 16px;align-items:start;}
.cp-design .app-staff-screen .cp-d2-money dt,.cp-design .app-staff-screen .cp-d2-money dd {font-size:16px;line-height:24px;}
.cp-design .app-staff-screen .cp-d2-money dd {margin:0;overflow-wrap:anywhere;}
.cp-design .app-staff-screen .cp-d2-workspace {align-items:stretch;}
.cp-design .app-staff-screen .staff-d3-review-stage {align-items:stretch;}
@media(max-width:767px){.cp-design .app-staff-screen .cp-d2-money > div {grid-template-columns:minmax(80px,.4fr) minmax(0,1fr);gap:8px;}}

.cp-design .app-staff-screen .staff-panel { margin-top:24px; padding-top:24px; }
.cp-design .app-staff-screen .staff-d3-review-stage > .staff-panel { margin-top:0; }
.cp-design .app-staff-screen p { max-width:75ch; }

.cp-design .app-staff-screen .staff-d3-member summary .cp-chip{margin-left:8px;vertical-align:middle;}.cp-design .app-staff-screen .staff-d3-reapply{display:block;font-size:16px;line-height:24px;margin-top:8px;}

/* TF-1: multiline reason fields use their actual height, preserving the 8px help gap. */
.cp-design .staff-settlers .cp-field:has(textarea) { grid-template-rows: auto auto auto; }
.cp-design .staff-settlers { align-content: start; min-width: 0; }
.cp-design .staff-settlers .cp-d2-record { min-width: 0; }
.cp-design .staff-settlers :where(h3, h4, p) { margin: 0; }
.cp-design .staff-settlers .cp-chip { justify-self: start; }

/* Keep the video protection heading centered with its 40px refresh control. */
.cp-design .app-staff-screen .staff-media-protection :is(h2,h3,p,dt,dd) { margin:0; }

/* 22nd UI/UX pass: use the shared area and action tokens across staff screens. */
.cp-design .app-staff-screen { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--cp-space-8); }
.cp-design .app-staff-screen + .app-staff-screen { margin-top:var(--cp-space-8); padding:var(--cp-space-6); border:1px solid var(--cp-surface-border); border-radius:var(--cp-radius-panel); background:var(--cp-card); }
.cp-design .staff-retention-slot + .staff-retention-slot { margin-top:var(--cp-space-8); }
.cp-design .app-staff-screen--withdrawal { padding:var(--cp-space-6); border:1px solid var(--cp-surface-border); border-radius:var(--cp-radius-panel); background:var(--cp-card); }
.cp-design .staff-retention-slot:empty { display:none; }
.cp-design .staff-review-slot:empty { display:none; }
.cp-design .app-staff-screen--review > .staff-review-slot:not(:empty) { padding:var(--cp-space-6); border:1px solid var(--cp-surface-border); border-radius:var(--cp-radius-panel); background:var(--cp-card); }
.cp-design .app-staff-screen--review .staff-card + .staff-card,.cp-design .app-staff-screen--review .staff-card + .cp-disclosure { margin-top:var(--cp-space-8); }
.cp-design .app-staff-screen--review .cp-disclosure + .cp-disclosure { margin-top:var(--cp-space-8); }
.cp-design :is(.app-staff-screen--review,.app-staff-screen--withdrawal,.app-staff-screen--retention) > div:not(:empty) { min-width:0; padding:var(--cp-space-6); border:1px solid var(--cp-surface-border); border-radius:var(--cp-radius-panel); background:var(--cp-card); }
.cp-design .operating-report { padding:var(--cp-space-6); border:1px solid var(--cp-surface-border); border-radius:var(--cp-radius-panel); background:var(--cp-card); }
.cp-design .staff-media-protection { gap:var(--cp-space-8); }
.cp-design .staff-media-protection > :is(.cp-d3-facts,.cp-d2-box) { margin:0; }
.cp-design .staff-media-protection .staff-media-protection-list > li { padding:var(--cp-space-4); }
.cp-design .app-staff-screen .staff-account-session { margin-bottom:var(--cp-space-8); }
.cp-design .app-staff-screen .staff-account-master > h3 { margin-top:var(--cp-space-6); }
.cp-design .staff-recovery-preconditions ol { display:grid; gap:var(--cp-space-4); margin:0; padding-inline-start:var(--cp-space-5); }
.cp-design .staff-shipping { min-width:0; }
.cp-design .staff-shipping :where(h2,h3,h4,p) { margin:0; }
.cp-design .staff-shipping :where(.staff-shipping-row,.staff-shipping-detail,.staff-shipping-labels,.staff-shipping-confirm) { min-width:0; }
.cp-design .staff-shipping-row .cp-actions { align-items:center; }
.cp-design .staff-shipping-row .cp-field { margin:0; }
.cp-design .staff-shipping-label { break-inside:avoid; }
@media print {
  .cp-design .app-staff-screen--shipping > :not(.staff-shipping) { display:none !important; }
  .cp-design .staff-shipping > :not(.staff-shipping-labels) { display:none !important; }
  .cp-design .staff-shipping-labels > .cp-actions { display:none !important; }
}
.cp-design .app-staff-screen .staff-d3-member .staff-account-row { padding:var(--cp-space-4); border:1px solid var(--cp-surface-border); border-radius:var(--cp-radius-panel); }
.cp-design .app-staff-screen .staff-card { border:1px solid var(--cp-surface-border); background:var(--cp-card); }
.cp-design .app-staff-screen .staff-review .cp-disclosure + .cp-disclosure { margin-top:var(--cp-space-8); }
.cp-design .app-staff-screen .staff-review .empty + .staff-work-choices { margin-top:var(--cp-space-4); }
.cp-design .app-staff-screen .staff-settlement-detail > :is(.staff-safe-message,.staff-work-item,.cp-d2-money) { margin-block:var(--cp-space-4); }
.cp-design .app-staff-screen .staff-settlement-detail .cp-d2-money > div + div { margin-top:var(--cp-space-4); }
.cp-design .app-staff-screen .staff-settlement-detail > h4 { margin-top:var(--cp-space-4); }
.cp-design .app-staff-screen .staff-withdrawal + .staff-withdrawal { margin-top:var(--cp-space-8); }
.cp-design .app-staff-screen :is(.cp-area-stack,.staff-review,.staff-operating,.staff-withdrawal,.staff-work-projects-list) { gap:var(--cp-space-8); }
.cp-design .app-staff-screen :is(.staff-panel,.staff-review-project,.staff-review-assignment,.staff-account-session,.staff-d3-project,.operating-report) { min-width:0; padding:var(--cp-space-6); border:1px solid var(--cp-surface-border); border-radius:var(--cp-radius-panel); background:var(--cp-card); }
.cp-design .app-staff-screen :is(.cp-area,.cp-d2-box,.staff-card,.cp-panel) { border-color:var(--cp-surface-border); }
.cp-design .app-staff-screen .staff-safe-message { padding:var(--cp-space-4); }
.cp-design .app-staff-screen .staff-work-list { display:grid; gap:var(--cp-space-4); }
.cp-design .app-staff-screen .staff-work-list > li { margin:0; }
.cp-design .app-staff-screen .cp-d2-workspace { gap:var(--cp-space-8); }
.cp-design .app-staff-screen .cp-d2-records { gap:var(--cp-space-4); }
.cp-design .app-staff-screen .staff-inbox-approvals { gap:var(--cp-space-8); }
.cp-design .app-staff-screen .cp-d2-filters.cp-button-group { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr)); gap:var(--cp-space-2); }
.cp-design .app-staff-screen .cp-d2-filters .cp-d2-filter { width:100%; min-width:var(--cp-button-min-width); height:var(--cp-control-height); }
.cp-design .app-staff-screen .cp-button-group { gap:var(--cp-space-2); }
.cp-design .app-staff-screen .cp-button-group > .cp-button { flex:1 1 0; }
.cp-design .app-staff-screen .staff-project-actions { margin-block:var(--cp-space-4); }
.cp-design .app-staff-screen .staff-brand-actions .staff-work-delete,.cp-design .app-staff-screen .staff-project-actions .staff-work-delete { margin:0; }
.cp-design .app-staff-screen .staff-review :is(.cp-disclosure + .cp-disclosure,.staff-work-choices + .staff-work-choices) { margin-top:var(--cp-space-6); }
.cp-design .app-staff-screen .staff-media-protection { gap:var(--cp-space-8); }
@media(max-width:767px){
 .cp-design .app-staff-screen{gap:var(--cp-space-6)}
 .cp-design .app-staff-screen + .app-staff-screen{margin-top:var(--cp-space-6);padding:var(--cp-space-4)}
 .cp-design .staff-retention-slot + .staff-retention-slot{margin-top:var(--cp-space-6)}
 .cp-design .app-staff-screen--withdrawal{padding:var(--cp-space-4)}
 .cp-design .app-staff-screen--review > .staff-review-slot:not(:empty){padding:var(--cp-space-4)}
 .cp-design .app-staff-screen--review .staff-card + .staff-card,.cp-design .app-staff-screen--review .staff-card + .cp-disclosure,.cp-design .app-staff-screen--review .cp-disclosure + .cp-disclosure{margin-top:var(--cp-space-6)}
 .cp-design :is(.app-staff-screen--review,.app-staff-screen--withdrawal,.app-staff-screen--retention) > div:not(:empty){padding:var(--cp-space-4)}
 .cp-design .operating-report{padding:var(--cp-space-4)}
 .cp-design .staff-media-protection{gap:var(--cp-space-6)}
 .cp-design .app-staff-screen .staff-account-session,.cp-design .app-staff-screen .staff-withdrawal + .staff-withdrawal{margin-bottom:var(--cp-space-6);margin-top:var(--cp-space-6)}
 .cp-design .app-staff-screen .staff-review .cp-disclosure + .cp-disclosure{margin-top:var(--cp-space-6)}
 .cp-design .app-staff-screen :is(.cp-area-stack,.staff-review,.staff-operating,.staff-withdrawal,.staff-work-projects-list){gap:var(--cp-space-6)}
 .cp-design .app-staff-screen :is(.staff-panel,.staff-review-project,.staff-review-assignment,.staff-account-session,.staff-d3-project,.operating-report){padding:var(--cp-space-4)}
 .cp-design .app-staff-screen .cp-d2-workspace,.cp-design .app-staff-screen .staff-inbox-approvals{gap:var(--cp-space-6)}
 .cp-design .app-staff-screen .cp-button-group{display:grid;grid-template-columns:1fr;gap:var(--cp-space-2)}
 .cp-design .app-staff-screen .cp-button-group > .cp-button{width:100%}
 .cp-design .app-staff-screen .staff-media-protection{gap:var(--cp-space-6)}
}

/* G22: action width, paired controls, card edges and spacing in staff/master screens. */
.cp-design .app-staff-screen button:not([role="tab"]),
.cp-design .app-staff-screen a.cp-button { min-width:var(--cp-button-min-width); }
.cp-design .app-staff-screen li.staff-work-item { border-color:var(--cp-control-line); }
.cp-design .app-staff-screen .member-beta-media-actions > .member-beta-action { width:9rem; }
.cp-design .app-staff-screen .staff-work-item + .staff-safe-message,
.cp-design .app-staff-screen .staff-panel + .staff-safe-message,
.cp-design .app-staff-screen .staff-safe-message + .staff-safe-message,
.cp-design .app-staff-screen .cp-d2-box + .cp-d2-timeline { margin-top:var(--cp-space-4); }
.cp-design .app-staff-screen .staff-receipts-detail > h4,
.cp-design .app-staff-screen .staff-handover .staff-panel > p + h3 { margin-top:var(--cp-space-4); }
@media(max-width:767px){
 .cp-design .app-staff-screen .staff-pre2-application .cp-actions,
 .cp-design .app-staff-screen .member-beta-media-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--cp-space-2); }
 .cp-design .app-staff-screen .staff-pre2-application .cp-actions > button,
 .cp-design .app-staff-screen .member-beta-media-actions > .member-beta-action { width:100%; }
}
