.pc-page {
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
  padding: 34px 40px 72px;
  --pc-border: #dedfe3;
  --pc-ink: #17191e;
  --pc-muted: #626974;
  --pc-paper: #f7f8fa;
  --pc-blue: #354c88;
}
.pc-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 25px;
}
.pc-heading h1 {
  font-size: 36px;
  letter-spacing: -1.2px;
  margin: 8px 0 10px;
}
.pc-intro {
  max-width: 680px;
  color: var(--pc-muted);
  font-size: 15px;
  line-height: 1.6;
}
.pc-heading-action {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
}
.pc-sidebar {
  padding: 16px 20px 20px 0;
  border-right: 1px solid var(--pc-border);
}
.pc-sidebar h2 {
  font-size: 15px;
  margin-bottom: 8px;
}
.pc-program {
  width: 100%;
  display: grid;
  text-align: left;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 15px 12px;
  margin-top: 8px;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.pc-program:hover {
  background: #f0f1f4;
}
.pc-program.selected {
  background: #e9ecf2;
  border-color: #d3d9e6;
}
.pc-program strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.pc-program span {
  font-size: 12px;
  color: var(--pc-muted);
}
.pc-workspace {
  min-width: 0;
}
.pc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background: #eceef2;
  padding: 5px;
  border-radius: 13px;
  margin-bottom: 24px;
}
.pc-steps button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 12px;
  cursor: pointer;
  color: #606773;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.pc-steps button.on {
  background: white;
  color: #1c2230;
  box-shadow: 0 2px 8px #19233a10;
}
.pc-step-number {
  font-size: 12px;
  display: grid;
  place-items: center;
  border: 1px solid #c9ced7;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  flex: none;
}
.pc-steps strong {
  display: block;
  font-size: 13px;
}
.pc-steps small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.pc-panel {
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  display: grid;
  gap: 24px;
  animation: pc-enter 0.2s ease-out;
}
.pc-panel h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.pc-panel h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.pc-panel h4 {
  font-size: 13px;
  margin: 0 0 6px;
}
.pc-panel p {
  line-height: 1.6;
  margin: 0;
  color: var(--pc-muted);
}
.pc-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
}
.pc-panel-heading > div:first-child {
  max-width: 580px;
}
.pc-total {
  min-width: 115px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #1e2430;
  color: white;
  display: grid;
  gap: 6px;
  text-align: center;
}
.pc-total strong {
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}
.pc-total span {
  font-size: 11px;
  color: #cbd1dc;
}
.pc-groups {
  display: grid;
  gap: 22px;
}
.pc-group {
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  overflow: hidden;
}
.pc-group-head {
  display: flex;
  align-items: start;
  gap: 13px;
  padding: 20px;
  background: var(--pc-paper);
}
.pc-group-head > div {
  flex: 1;
  min-width: 0;
}
.pc-group-head h3 {
  overflow-wrap: anywhere;
}
.pc-group-head p {
  font-size: 12px;
  line-height: 1.5;
}
.pc-group-index {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: #707989;
  padding-top: 2px;
}
.pc-group-fields {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 16px;
  padding: 20px;
}
.pc-population {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 16px;
  padding: 0 20px 20px;
}
.pc-demographics {
  padding: 20px;
  border-top: 1px solid #e8e9ec;
  background: #fcfcfd;
  display: grid;
  gap: 12px;
}
.pc-sex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.pc-group-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 13px 20px;
  border-top: 1px solid var(--pc-border);
  font-size: 12px;
  color: var(--pc-muted);
}
.pc-group-progress strong {
  margin-left: auto;
  color: var(--pc-ink);
}
.pc-page .hint {
  font-size: 12px;
  line-height: 1.55;
}
.pc-page input:not([type="checkbox"]),
.pc-page select {
  min-height: 42px;
  background: white;
  border-color: #cfd3da;
  border-radius: 8px;
  width: 100%;
  min-width: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.pc-page input:focus,
.pc-page select:focus {
  border-color: #7b8aad;
  box-shadow: 0 0 0 3px #354c8810;
  outline: 0;
}
.pc-page input:disabled,
.pc-page select:disabled {
  background: #f4f5f7;
  color: #69717e;
}
.pc-add-group {
  justify-content: center;
  border: 1px dashed #bdc5d3;
  background: #f8f9fb;
  min-height: 46px;
}
.pc-explainer {
  font-size: 13px;
  line-height: 1.65;
  color: #5c6573;
}
.pc-explainer summary,
.pc-decline summary {
  cursor: pointer;
  color: #38465f;
  font-weight: 500;
  list-style-position: outside;
  margin-left: 16px;
}
.pc-explainer[open] summary {
  margin-bottom: 12px;
}
.pc-explainer p + p {
  margin-top: 10px;
}
.pc-explainer ol {
  padding-left: 22px;
}
.pc-explainer li {
  margin-bottom: 9px;
}
.pc-save-bar {
  position: static;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #ffffffed;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--pc-border);
  padding: 17px 0 0;
  font-size: 12px;
  color: var(--pc-muted);
  z-index: 2;
}
.pc-notice,
.pc-mode {
  padding: 17px 20px;
  background: #f1f4fa;
  border: 1px solid #d7deec;
  border-radius: 10px;
  color: #34415d;
}
.pc-mode {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 25px;
}
.pc-mode p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.pc-notice strong {
  font-size: 13px;
}
.pc-notice p {
  font-size: 13px;
  margin-top: 6px;
}
.pc-error {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #fff4f1;
  border: 1px solid #ebc7be;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
}
.pc-person {
  border-bottom: 1px solid #e6e8ed;
  padding-bottom: 24px;
  display: grid;
  gap: 13px;
}
.pc-person-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.pc-person-heading h3 {
  margin-bottom: 4px;
}
.pc-specialty-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.pc-specialty-options legend {
  font-size: 12px;
  color: var(--pc-muted);
  margin-bottom: 10px;
}
.pc-specialty-chip {
  display: flex;
  gap: 7px;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  border: 1px solid #dfe3eb;
  border-radius: 6px;
  padding: 7px 9px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.pc-specialty-chip:has(input:checked) {
  background: #e9eef8;
  border-color: #a9b7d1;
  color: #283d65;
}
.pc-specialty-chip input {
  width: 13px;
  height: 13px;
  accent-color: #354c88;
}
.pc-toggle-row {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-top: 15px;
  cursor: pointer;
}
.pc-toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: #354c88;
  margin-top: 2px;
}
.pc-toggle-row small {
  display: block;
  margin-top: 7px;
  color: var(--pc-muted);
  font-size: 12px;
}
.pc-policy {
  padding: 20px;
  background: var(--pc-paper);
  border-radius: 10px;
}
.pc-generation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 22px;
}
.pc-generation-copy {
  display: grid;
  align-content: start;
  gap: 15px;
}
.pc-batch {
  display: grid;
  gap: 17px;
}
.pc-batch-confirm {
  padding: 22px;
  background: #eef2f9;
  border: 1px solid #b7c5de;
  border-radius: 12px;
  animation: pc-enter 0.2s ease-out;
}
.pc-batch-confirm ol {
  padding-left: 22px;
  font-size: 13px;
  color: #455169;
  line-height: 1.65;
}
.pc-batch-confirm li {
  padding: 4px 0;
}
.pc-batch-confirm .row {
  margin-top: 18px;
}
.pc-tracking {
  display: grid;
  gap: 15px;
  min-width: 0;
}
.pc-coverage {
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  overflow: hidden;
}
.pc-coverage-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  padding: 17px 18px;
  border-bottom: 1px solid #e6e8ed;
  align-items: center;
}
.pc-coverage-row:last-child {
  border: 0;
}
.pc-coverage-row strong {
  font-size: 13px;
}
.pc-coverage-row small {
  display: block;
  font-size: 11px;
  color: var(--pc-muted);
  margin-top: 5px;
}
.pc-coverage-row progress {
  display: block;
  width: 100%;
  height: 7px;
  accent-color: #3c5079;
}
.pc-coverage-row span,
.pc-coverage-detail {
  font-size: 11px;
  color: var(--pc-muted);
  margin-top: 6px;
}
.pc-coverage-detail {
  grid-column: 1/-1;
}
.pc-job-list {
  display: grid;
  gap: 10px;
}
.pc-job {
  border: 1px solid var(--pc-border);
  border-radius: 9px;
  padding: 16px;
}
.pc-job strong {
  font-size: 13px;
}
.pc-job p {
  font-size: 12px;
  margin-top: 9px;
}
.pc-job-error {
  color: #855344 !important;
  overflow-wrap: anywhere;
}
.pc-empty-small {
  padding: 18px;
  background: var(--pc-paper);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.65;
}
.pc-invalid {
  color: #a54936 !important;
}
.pc-pick {
  max-width: 1050px;
  width: 100%;
  margin: auto;
  display: grid;
  gap: 24px;
  padding: 30px 34px;
  background: white;
  border: 1px solid #dedfe3;
  border-radius: 16px;
}
.pc-pick h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 8px 0 12px;
}
.pc-pick p {
  line-height: 1.65;
  color: #646c79;
}
.pc-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pc-pick-card {
  border: 1px solid #d9dee7;
  border-radius: 12px;
  padding: 22px;
  background: linear-gradient(145deg, #f3f5f9, white 80%);
}
.pc-pick-card h3 {
  font-size: 19px;
  margin: 16px 0 12px;
  overflow-wrap: anywhere;
}
.pc-pick-card .btn {
  width: 100%;
  margin-top: 16px;
}
.pc-pick-card .hint {
  font-size: 12px;
}
.pc-assignment-shell {
  max-width: 900px;
}
.pc-assignment-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 15px;
  padding: 28px;
  border: 1px solid #d8dde5;
  border-radius: 14px;
  background: #f7f8fa;
  animation: pc-enter 0.24s ease-out;
}
.pc-assignment-card h3 {
  margin: 0;
  color: #15171b;
  font-size: 24px;
  letter-spacing: -0.45px;
}
.pc-assignment-card p {
  margin: 0;
}
.pc-assignment-card.is-ready {
  background: linear-gradient(145deg, #f1f3f6 0%, #ffffff 66%);
  box-shadow: 0 18px 48px rgba(24, 29, 38, 0.07);
}
.pc-assignment-card.is-generating {
  min-height: 320px;
  align-content: center;
  background: radial-gradient(circle at 78% 20%, rgba(197, 204, 216, 0.4), transparent 34%),
    linear-gradient(145deg, #f4f5f7, #ffffff 72%);
}
.pc-assignment-card.is-attention {
  background: #faf6f3;
  border-color: #ddc9bd;
}
.pc-assignment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pc-assignment-meta span {
  padding: 7px 10px;
  border: 1px solid #d9dde4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #4d5562;
  font-size: 11px;
  letter-spacing: 0.01em;
}
.pc-assignment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pc-return-note {
  color: #6c7380 !important;
  font-size: 11px;
}
.pc-patient-summary {
  color: #313640 !important;
  font-size: 15px;
}
.pc-generation-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e5ea;
}
.pc-generation-track span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25282e, #c5cad3, #25282e);
  animation: pc-assignment-progress 1.7s cubic-bezier(0.55, 0, 0.35, 1) infinite;
}
.pc-assignment-orbit {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 76px;
  height: 76px;
  opacity: 0.7;
}
.pc-assignment-orbit i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(61, 68, 80, 0.22);
  border-radius: 50%;
  animation: pc-orbit 3.2s ease-in-out infinite;
}
.pc-assignment-orbit i:nth-child(2) {
  inset: 11px;
  animation-delay: -1.05s;
}
.pc-assignment-orbit i:nth-child(3) {
  inset: 23px;
  animation-delay: -2.1s;
}
.pc-delivery-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pc-delivery-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
}
.pc-delivery-steps li > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #25282e;
  color: white;
  font-size: 11px;
}
.pc-delivery-steps strong {
  font-size: 12px;
}
.pc-delivery-steps p {
  margin-top: 3px;
  color: var(--pc-muted);
  font-size: 11px;
  line-height: 1.5;
}
.pc-assignment-log {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
}
.pc-assignment-log h4 {
  margin: 0;
  padding: 14px 16px;
  background: #f5f6f8;
  font-size: 12px;
}
.pc-assignment-log-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #e7e9ed;
}
.pc-assignment-log-row strong,
.pc-assignment-log-row small {
  display: block;
}
.pc-assignment-log-row small {
  margin-top: 3px;
  color: var(--pc-muted);
  font-size: 10px;
}
@keyframes pc-assignment-progress {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(365%); }
}
@keyframes pc-orbit {
  0%, 100% { transform: scale(0.88); opacity: 0.16; }
  50% { transform: scale(1); opacity: 0.72; }
}
.pc-specialties {
  font-size: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e3e6ec;
}
.pc-empty {
  padding: 30px;
  background: #f6f7fa;
  border-radius: 10px;
}
.pc-own-case {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e3e6ec;
  padding-top: 16px;
}
.pc-author-brief {
  display: grid;
  gap: 13px;
  border: 1px solid #d0d8e7;
  background: linear-gradient(120deg, #eef2f9, #fff);
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 25px;
}
.pc-author-brief h3 {
  font-size: 18px;
  margin: 6px 0 0;
}
.pc-author-brief p {
  font-size: 13px;
  line-height: 1.7;
  color: #526079;
  margin: 0;
}
.pc-author-brief > .btn {
  justify-self: start;
}
.pc-decline {
  padding-top: 12px;
  border-top: 1px solid #dbe1eb;
  font-size: 13px;
  display: block;
}
.pc-decline[open] {
  display: grid;
  gap: 13px;
}
.pc-decline summary {
  color: #7f5349;
}
.pc-author-brief .eyebrow {
  font-size: 10px;
}
.pc-link-button {
  white-space: nowrap;
}
@keyframes pc-enter {
  from {
    opacity: 0.94;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1150px) {
  .pc-page {
    padding: 24px;
  }
  .pc-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }
  .pc-panel {
    padding: 22px;
  }
  .pc-group-fields {
    grid-template-columns: 1fr 1fr;
  }
  .pc-group-fields > .field:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .pc-steps button {
    padding: 10px 7px;
    gap: 6px;
  }
  .pc-steps strong {
    font-size: 12px;
  }
}
@media (max-width: 800px) {
  .pc-page {
    padding: 18px 14px;
  }
  .pc-heading {
    align-items: start;
  }
  .pc-heading h1 {
    font-size: 30px;
  }
  .pc-heading-action {
    flex-direction: column;
    align-items: end;
  }
  .pc-layout {
    grid-template-columns: 1fr;
  }
  .pc-sidebar {
    border: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    overflow: auto;
    align-items: center;
  }
  .pc-sidebar > h2,
  .pc-sidebar > .hint,
  .pc-sidebar > .pc-explainer {
    display: none;
  }
  .pc-program {
    min-width: 180px;
    margin: 0;
    padding: 12px;
  }
  .pc-panel {
    padding: 20px 16px;
  }
  .pc-steps {
    gap: 2px;
  }
  .pc-steps small {
    display: none;
  }
  .pc-steps button {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
  }
  .pc-generation {
    grid-template-columns: 1fr;
  }
  .pc-group-head {
    padding: 15px;
  }
  .pc-group-head > .btn span {
    display: none;
  }
  .pc-group-fields,
  .pc-population {
    padding: 16px;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
  }
  .pc-population > .field:last-child {
    grid-column: 1/-1;
  }
  .pc-sex-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pc-demographics {
    padding: 16px;
  }
  .pc-save-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .pc-save-bar > .row {
    justify-content: space-between;
  }
  .pc-total {
    padding: 12px;
    min-width: 90px;
  }
  .pc-total strong {
    font-size: 25px;
  }
  .pc-pick {
    padding: 22px 17px;
  }
  .pc-pick-grid {
    grid-template-columns: 1fr;
  }
  .pc-pick .pc-panel-heading {
    gap: 12px;
  }
  .pc-own-case {
    align-items: start;
    flex-direction: column;
  }
  .pc-coverage-row {
    grid-template-columns: 1fr;
  }
  .pc-person-heading {
    flex-direction: column;
  }
  .pc-author-brief {
    padding: 18px;
  }
  .pc-author-brief > .row {
    align-items: start;
    gap: 10px;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pc-page,
  .pc-panel,
  .pc-batch-confirm {
    animation: none;
  }
  .pc-page * {
    transition: none !important;
    animation: none !important;
  }
}

.pc-demographic-balance {
  grid-column: 1/-1;
  font-size: 12px;
  color: #606b7d;
  padding-top: 6px;
}
.pc-demographic-balance summary {
  cursor: pointer;
}
.pc-demographic-balance ul {
  padding-left: 18px;
  line-height: 1.8;
}
.pc-rank-confirm {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #f1f4fa;
  border-radius: 9px;
}
.pc-rank-confirm p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  color: #58657b;
}
.pc-rank-confirm .btn {
  justify-self: start;
}
