.pc-dialog,
.pc-library {
  color: #172554;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pc-dialog {
  width: min(1040px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  padding: 18px;
  border: 0;
  border-radius: 22px;
  background: #f7faff;
  box-shadow: 0 20px 70px #10244c45;
  overflow: auto;
}
.pc-dialog::backdrop { background: #091932a8; backdrop-filter: blur(4px); }
.pc-dialog nav { position: sticky; top: -18px; z-index: 3; display: flex; padding: 4px 0 12px; background: #f7faff; }
.pc-dialog nav button { border: 0; background: transparent; color: #195dbb; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

.pc-head { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; padding: 14px 18px; border: 1px solid #e4eefb; border-radius: 17px; background: #fff; }
.pc-head img { width: min(52%, 480px); max-height: 124px; object-fit: contain; }
.pc-head > div { flex: 1; padding: 14px 20px; border-radius: 14px; background: linear-gradient(125deg, #076de1, #092f68); color: #fff; }
.pc-head strong { display: block; font-size: clamp(19px, 2.4vw, 29px); line-height: 1.15; }
.pc-head span { display: block; margin-top: 6px; font-size: 17px; }

.pc-task,
.pc-card { margin: 12px 0; padding: 16px 20px; border: 1px solid #d7e7fb; border-radius: 17px; background: linear-gradient(120deg, #fff, #f9fbff); }
.pc-task small,
.pc-library > header p { color: #0769db; font-weight: 800; letter-spacing: .04em; }
.pc-task h1 { margin: 3px 0; color: #101b5b; font-size: clamp(23px, 3vw, 36px); }
.pc-task p { margin: 4px 0 0; color: #3b4667; font-size: 18px; }
.pc-section-title { display: flex; align-items: flex-start; gap: 14px; }
.pc-section-title > b { display: grid; flex: 0 0 50px; height: 50px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #1a9cf2, #0550bd); color: #fff; font-size: 28px; }
.pc-section-title h2 { margin: 0; color: #101b5b; font-size: clamp(18px, 2vw, 25px); }
.pc-section-title p { margin: 4px 0 10px; color: #455273; font-size: 16px; }

.pc-photo { position: relative; display: grid; min-height: 158px; place-items: center; margin-top: 9px; border: 1.5px dashed #1680ff; border-radius: 13px; background: #f0f8ff; text-align: center; overflow: hidden; }
.pc-photo.is-over { background: #d9edff; box-shadow: inset 0 0 0 4px #1680ff55; }
.pc-photo > img { display: block; width: 100%; max-height: 440px; object-fit: contain; }
.pc-photo-empty { display: grid; width: 100%; height: 100%; min-height: 154px; place-content: center; gap: 5px; color: #116add; cursor: pointer; }
.pc-photo-empty svg { width: 84px; height: 68px; margin: auto; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pc-photo-empty strong { font-size: 20px; }
.pc-photo-empty input,
.pc-replace input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pc-photo [data-pc-drop-label] { position: absolute; right: 8px; bottom: 5px; color: #6c7a99; font-size: 12px; }
.pc-replace { position: absolute; top: 12px; right: 12px; padding: 8px 12px; border-radius: 9px; background: #fff; color: #0866cf; font-weight: 700; cursor: pointer; }

.pc-checks { display: grid; gap: 9px; margin: 10px 0 2px 62px; }
.pc-checks label { display: flex; align-items: center; gap: 12px; color: #384365; font-size: 17px; cursor: pointer; }
.pc-checks input { width: 22px; height: 22px; accent-color: #0873df; }
.pc-approval-note { margin: 12px 0; padding: 15px 18px; border: 1px solid #cbdff8; border-radius: 14px; background: #eff6ff; color: #163a72; }
.pc-approval-note strong { display: block; color: #0d3477; }
.pc-approval-note p { margin: 5px 0 0; }

.pc-mapping { display: grid; grid-template-columns: 120px repeat(4, minmax(0, 1fr)); align-items: center; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid #e0ebfa; border-radius: 14px; background: #fff; }
.pc-mapping .pjs-awarder { width: 100%; max-width: 110px; }
.pc-mapping section { min-width: 0; padding-left: 9px; border-left: 1px solid #d7e7fb; }
.pc-mapping section h2 { margin: 0 0 3px; color: #0868d5; font-size: 12px; }
.pc-mapping section p { margin: 2px 0; color: #172554; font-size: 12px; line-height: 1.3; }
.pc-submit { display: block; width: 100%; margin: 14px 0; padding: 17px; border: 0; border-radius: 13px; background: linear-gradient(110deg, #18a44d, #087b3c); color: #fff; font-size: 24px; font-weight: 800; cursor: pointer; }
.pc-submit:disabled { opacity: .6; }
.pc-status { color: #24436c; text-align: center; }
.pc-complete { padding: 13px; border-radius: 11px; text-align: center; font-weight: 700; }
.pc-complete.is-approved { background: #e7f8ed; color: #126735; }
.pc-complete.is-pending { background: #fff5d9; color: #78520c; }

.pc-library { margin: 20px 0; padding: 20px; border: 1px solid #d9e8f8; border-radius: 18px; background: #fff; }
.pc-library > header h2 { margin: 0; color: #101b5b; font-size: 26px; }
.pc-library > header p { margin: 0 0 4px; font-size: 12px; }
.pc-library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.pc-library-card { display: flex; min-width: 0; flex-direction: column; gap: 7px; padding: 9px; border: 1px solid #dce9f8; border-radius: 13px; background: #fff; color: #172554; text-align: left; cursor: pointer; }
.pc-library-card:hover { border-color: #1680ff; box-shadow: 0 4px 16px #0b4b971c; }
.pc-library-photo { position: relative; display: grid; aspect-ratio: 1.55; place-items: center; border-radius: 9px; background: #edf5ff; overflow: hidden; }
.pc-library-photo img { width: 100%; height: 100%; object-fit: cover; }
.pc-library-photo > span { color: #247de0; font-size: 32px; }
.pc-library-photo i { position: absolute; right: 5px; bottom: 5px; padding: 4px 6px; border-radius: 7px; font-size: 10px; font-style: normal; font-weight: 700; }
.pc-library-photo i.is-approved { background: #e3faeb; color: #17703b; }
.pc-library-photo i.is-pending { background: #fff1cc; color: #78520c; }
.pc-library-card strong { font-size: 15px; line-height: 1.25; }
.pc-library-card small { color: #65728d; }
.pc-library-card > span:last-child { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #43516f; font-size: 11px; }
.pc-library-status { color: #596781; }

.pc-tutor-approvals-slot { margin: 0 0 18px; }
.pc-tutor-queue { padding: 20px; border: 1px solid #d6e6fa; border-radius: 18px; background: #f8fbff; color: #172554; }
.pc-tutor-queue > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-tutor-queue > header p { margin: 0 0 4px; color: #0868d5; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.pc-tutor-queue > header h2 { margin: 0; color: #101b5b; font-size: 24px; }
.pc-tutor-refresh { padding: 8px 13px; border: 1px solid #c7dcf7; border-radius: 9px; background: white; color: #1458a7; font: inherit; font-weight: 700; cursor: pointer; }
.pc-tutor-queue-status { color: #596781; }
.pc-tutor-queue-grid { display: grid; gap: 14px; margin-top: 15px; }
.pc-tutor-card { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: 18px; padding: 14px; border: 1px solid #dce9f8; border-radius: 14px; background: #fff; }
.pc-tutor-photo { display: grid; min-height: 160px; place-items: center; overflow: hidden; border-radius: 10px; background: #edf5ff; color: #596781; }
.pc-tutor-photo img { width: 100%; max-height: 260px; object-fit: contain; }
.pc-tutor-card-body > small { color: #596781; }
.pc-tutor-card-body h3 { margin: 4px 0; color: #101b5b; }
.pc-tutor-card-body > p { margin: 4px 0 10px; color: #596781; }
.pc-tutor-mapping { margin: 8px 0 12px; }
.pc-tutor-mapping .pc-mapping { margin: 0; }
.pc-tutor-approve { padding: 12px 18px; border: 0; border-radius: 10px; background: linear-gradient(110deg,#1688ed,#0755b9); color: white; font: inherit; font-weight: 750; cursor: pointer; }
.pc-tutor-approve:disabled { opacity: .6; cursor: wait; }

@media (max-width: 760px) {
  .pc-dialog { padding: 11px; border-radius: 17px; }
  .pc-dialog nav { top: -11px; }
  .pc-head { gap: 10px; padding: 9px; }
  .pc-head img { width: 46%; }
  .pc-head > div { padding: 10px; }
  .pc-head span { font-size: 14px; }
  .pc-task, .pc-card { padding: 13px; }
  .pc-checks { margin-left: 5px; }
  .pc-checks label { font-size: 15px; }
  .pc-tutor-card { grid-template-columns: 1fr; }
  .pc-sign-box, .pc-field-name, .pc-field-date { grid-column: auto; grid-row: auto; }
  .pc-mapping { grid-template-columns: 80px repeat(2, minmax(0, 1fr)); }
  .pc-mapping .pjs-awarder { max-width: 74px; }
  .pc-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
