/* Professional Documents Portal — trainer pages and the DPA console.
   Built on the site tokens in assets/css/site.css, so it follows the site's
   palette, radius and shadows (and their high-contrast overrides). */

.pd { padding: 32px 16px 56px; }
.pd__wrap { max-width: var(--rtvc-wrap, 1200px); margin: 0 auto; }

.pd__head { margin-bottom: 24px; }
.pd__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rtvc-maroon); margin: 0 0 6px; }
.pd__head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--rtvc-ink); margin: 0 0 6px; line-height: 1.2; }
.pd__lede { color: var(--rtvc-ink-soft); margin: 0; }
.pd__lede a, .pd__hint a, .pd__onfile a, .pd-table a { color: var(--rtvc-maroon); text-decoration: underline; text-underline-offset: 2px; }
/* Page head with the account's Sign out button at the right; on a narrow
   screen the button wraps below the heading instead of squeezing it. */
.pd-account { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.pd-account > div { flex: 1 1 320px; min-width: 0; }
.pd-signout { flex: none; white-space: nowrap; }

.pd__flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--rtvc-radius); margin-bottom: 20px; font-weight: 500; }
.pd__flash i { margin-top: 3px; }
.pd__flash--ok { background: #e8f5ec; color: #14532d; border: 1px solid #b7e0c3; }
.pd__flash--error { background: #fdecec; color: #7f1d1d; border: 1px solid #f3c2c2; }

.pd__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pd__grid--login { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); max-width: 900px; }

.pd__card { background: var(--rtvc-surface, #fff); border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius-lg); box-shadow: var(--rtvc-shadow); padding: 22px; }
.pd__card--soft { background: var(--rtvc-surface-alt); box-shadow: none; }
.pd__card h2 { font-size: 1.15rem; font-weight: 700; color: var(--rtvc-ink); margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.pd__card h2 i { color: var(--rtvc-maroon); }

.pd__period { margin-bottom: 20px; }
.pd__period h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; color: var(--rtvc-ink); }
.pd__instructions { background: var(--rtvc-surface, #fff); border-left: 4px solid var(--rtvc-maroon); padding: 12px 16px; border-radius: 0 var(--rtvc-radius) var(--rtvc-radius) 0; margin-bottom: 10px; color: var(--rtvc-ink); }

.pd__form { display: grid; gap: 6px; }
.pd__form label { font-weight: 600; font-size: .9rem; color: var(--rtvc-ink); margin-top: 8px; }
.pd__form input[type=email], .pd__form input[type=password], .pd__form input[type=text], .pd__form input[type=date],
.pd__form input[type=datetime-local], .pd__form input[type=number], .pd__form select, .pd__form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius); font: inherit; background: #fff; color: var(--rtvc-ink);
}
.pd__form input[type=file] { font: inherit; padding: 8px 0; max-width: 100%; }
.pd__form :focus-visible { outline: 3px solid var(--rtvc-maroon-light); outline-offset: 1px; }
.pd__hint { font-size: .85rem; color: var(--rtvc-ink-soft); margin: 6px 0 0; }
.pd__warn { font-size: .9rem; color: #7a4b00; background: #fdf1d0; padding: 8px 12px; border-radius: var(--rtvc-radius); margin: 8px 0 0; }

.pd__btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 11px 20px; border-radius: var(--rtvc-radius-pill); border: 0; background: var(--rtvc-maroon); color: #fff; font-weight: 700; cursor: pointer; margin-top: 12px; text-decoration: none; }
.pd__btn:hover { background: var(--rtvc-maroon-dark); }
.pd__btn[disabled] { opacity: .7; cursor: progress; }
.pd__btn--ghost { background: transparent; color: var(--rtvc-maroon); border: 1.5px solid var(--rtvc-maroon); }
.pd__btn--ghost:hover { background: #f6ecec; }
.pd__btn--sm { padding: 7px 14px; font-size: .85rem; margin-top: 0; }

.pd__list { margin: 0 0 8px; padding-left: 1.2em; list-style: disc; display: grid; gap: 6px; color: var(--rtvc-ink); }

.pd__deadlines { display: grid; gap: 10px; margin: 0 0 14px; }
.pd__dl { display: grid; gap: 2px; padding: 10px 12px; background: var(--rtvc-surface-alt); border-radius: var(--rtvc-radius); }
.pd__dl dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rtvc-ink-soft); }
.pd__dl dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pd__due { font-weight: 600; color: var(--rtvc-ink); }

.pd__left, .pd__status, .pd-pill { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: var(--rtvc-radius-pill); white-space: nowrap; }
.pd__left--open { background: #f6ecec; color: var(--rtvc-maroon); }
.pd__left--soon { background: #fdf1d0; color: #6b4f00; }
.pd__left--closed { background: var(--rtvc-surface-sunk); color: var(--rtvc-ink-soft); }
.pd__status--done, .pd-pill--done { background: #e8f5ec; color: #14532d; }
.pd__status--late, .pd-pill--late { background: #fdf1d0; color: #6b4f00; }
.pd__status--pending, .pd-pill--pending, .pd__status--unset, .pd-pill--unset { background: var(--rtvc-surface-sunk); color: var(--rtvc-ink-soft); }
.pd__status--missed, .pd-pill--missed { background: #fdecec; color: #991b1b; }

.pd__onfile { font-size: .9rem; background: #f8f5f0; border-radius: var(--rtvc-radius); padding: 10px 12px; margin-bottom: 8px; display: grid; gap: 4px; }
.pd__onfile p { margin: 0; overflow-wrap: anywhere; }

/* ── DPA console ─────────────────────────────────────────────────────────── */
.pd-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; border-bottom: 1px solid var(--rtvc-border); }
.pd-tabs a { padding: 10px 14px; font-weight: 600; color: var(--rtvc-ink-soft); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pd-tabs a[aria-current="page"] { color: var(--rtvc-maroon); border-color: var(--rtvc-maroon); }
.pd-tabs a:hover { color: var(--rtvc-ink); }

.pd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pd-stat { background: var(--rtvc-surface, #fff); border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius); padding: 14px; }
.pd-stat strong { display: block; font-size: 1.6rem; color: var(--rtvc-ink); line-height: 1.1; }
.pd-stat span { font-size: .8rem; color: var(--rtvc-ink-soft); }

.pd-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.pd-filters label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--rtvc-ink-soft); }
.pd-filters select { padding: 8px 10px; border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius); font: inherit; background: #fff; }

.pd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pd-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.pd-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rtvc-ink-soft); padding: 10px; border-bottom: 2px solid var(--rtvc-border); white-space: nowrap; }
.pd-table td { padding: 10px; border-bottom: 1px solid var(--rtvc-border); vertical-align: top; }
.pd-table tr:hover td { background: #fcfaf8; }
.pd-table .pd-sub { display: block; font-size: .78rem; color: var(--rtvc-ink-soft); }
.pd-dept { margin: 28px 0 10px; font-size: 1.05rem; font-weight: 700; color: var(--rtvc-ink); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pd-dept small { font-weight: 500; color: var(--rtvc-ink-soft); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.pd-split { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.pd-two { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pd-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500 !important; }
.pd-check input { margin-top: 4px; }
.pd-empty { text-align: center; color: var(--rtvc-ink-soft); padding: 28px 12px; }

@media (max-width: 640px) {
  .pd { padding: 22px 16px 40px; }
  .pd__card { padding: 16px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Compact dashboard (26 Sep 2026): deadline strip, status badges, uploads with
   a progress bar, the HOD choice and Validation Minutes, and the console's
   department sections. Icons and short labels instead of paragraphs.
   ══════════════════════════════════════════════════════════════════════════ */
.pd [hidden] { display: none !important; }
.pd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Deadline strip ─────────────────────────────────────────────────────── */
.pd-dstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; padding: 10px 14px;
  background: var(--rtvc-surface, #fff); border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius-lg); box-shadow: var(--rtvc-shadow); }
.pd-dstrip__label { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rtvc-ink-soft); }
.pd-dstrip__label i, .pd-dcard__t i { color: var(--rtvc-maroon); }
.pd-dcard { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 14px; border-left: 1px solid var(--rtvc-border); }
.pd-dcard__t { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--rtvc-ink); margin-right: 2px; }
.pd-dbadge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--rtvc-radius-pill); font-size: .8rem; font-weight: 600; white-space: nowrap; cursor: help; }
.pd-dbadge b { font-weight: 800; }
.pd-dbadge--open { background: #f6ecec; color: var(--rtvc-maroon); }
.pd-dbadge--soon { background: #fdf1d0; color: #6b4f00; }
.pd-dbadge--closed { background: var(--rtvc-surface-sunk); color: var(--rtvc-ink-soft); }
.pd-dbadge--closed b { text-decoration: line-through; }
@media (max-width: 640px) {
  .pd-dcard { width: 100%; padding-left: 0; border-left: 0; }
}

/* ── Badges and tags ───────────────────────────────────────────────────── */
.pd-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--rtvc-radius-pill); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pd-badge--done { background: #e8f5ec; color: #14532d; }
.pd-badge--late { background: #fdf1d0; color: #6b4f00; }
.pd-badge--pending { background: #fff4e0; color: #8a5a00; }
.pd-badge--missed { background: #fdecec; color: #991b1b; }
.pd-badge--na { color: var(--rtvc-ink-faint); padding-left: 0; padding-right: 0; }
.pd-tag { display: inline-block; padding: 1px 7px; border-radius: var(--rtvc-radius-pill); background: var(--rtvc-maroon); color: #fff;
  font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap; }
.pd-tag--soft { background: #f6ecec; color: var(--rtvc-maroon); }
.pd-late { color: #8a5a00; font-weight: 700; }

/* ── Trainer page ──────────────────────────────────────────────────────── */
.pd-who { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.pd-who i { color: var(--rtvc-maroon); margin-right: 3px; }
.pd-term { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 14px; }
.pd-term h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--rtvc-ink); }
.pd-term h2 i { color: var(--rtvc-maroon); margin-right: 4px; }
.pd-term__link { font-size: .85rem; color: var(--rtvc-maroon); }
.pd-ins { width: 100%; }
.pd-ins summary { cursor: pointer; font-weight: 600; color: var(--rtvc-maroon); font-size: .9rem; }
.pd-ins > div { margin-top: 8px; background: var(--rtvc-surface, #fff); border-left: 4px solid var(--rtvc-maroon); padding: 10px 14px; border-radius: 0 var(--rtvc-radius) var(--rtvc-radius) 0; }
.pd-icons { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; color: var(--rtvc-ink); }
.pd-icons li { display: flex; gap: 10px; align-items: baseline; }
.pd-icons li > span { flex: 1; min-width: 0; }
.pd-icons i { width: 18px; text-align: center; color: var(--rtvc-maroon); flex: none; }

.pd-sub__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.pd-sub__head h2 { margin: 0; }
.pd-sub__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; background: #f8f5f0; border-radius: var(--rtvc-radius); padding: 8px 12px; margin-bottom: 10px; font-size: .88rem; }
.pd-chip > i { color: var(--rtvc-maroon); }
.pd-chip a { color: var(--rtvc-maroon); font-weight: 600; overflow-wrap: anywhere; }
.pd-chip__meta { color: var(--rtvc-ink-soft); font-size: .8rem; }

.pd-up { display: grid; gap: 8px; }
.pd-up__row { display: grid; gap: 4px; }
.pd-up__lbl { font-size: .8rem; font-weight: 700; color: var(--rtvc-ink-soft); }
.pd-up__lbl i { color: var(--rtvc-maroon); margin-right: 3px; }
.pd-up select, .pd-up textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius); font: inherit; background: #fff; color: var(--rtvc-ink); }
.pd-up textarea { resize: vertical; min-height: 58px; }
.pd-up :focus-visible { outline: 3px solid var(--rtvc-maroon-light); outline-offset: 1px; }
.pd-up__go { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pd-file { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; margin: 0; }
.pd-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pd-file__btn { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border: 1.5px dashed var(--rtvc-maroon); border-radius: var(--rtvc-radius-pill);
  color: var(--rtvc-maroon); background: #fff; font-weight: 700; font-size: .85rem; }
.pd-file:hover .pd-file__btn { background: #f6ecec; }
.pd-file input:focus-visible + .pd-file__btn { outline: 3px solid var(--rtvc-maroon-light); outline-offset: 2px; }
.pd-file__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; color: var(--rtvc-ink-soft); }
.pd-up .pd__btn--sm { margin-top: 0; }
.pd-up__meta { margin: 0; font-size: .78rem; color: var(--rtvc-ink-soft); }
.pd-progress { position: relative; height: 18px; border-radius: var(--rtvc-radius-pill); background: var(--rtvc-surface-sunk); overflow: hidden; }
.pd-progress__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--rtvc-maroon); transition: width .2s ease; }
.pd-progress::after { content: attr(data-pct); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: #fff; mix-blend-mode: difference; }
.pd-result { margin: 0; padding: 6px 10px; border-radius: var(--rtvc-radius); font-size: .88rem; font-weight: 600; }
.pd-result--ok { background: #e8f5ec; color: #14532d; }
.pd-result--error { background: #fdecec; color: #7f1d1d; }
.pd-lock { margin: 0; padding: 8px 12px; border-radius: var(--rtvc-radius); background: var(--rtvc-surface-sunk); color: var(--rtvc-ink-soft); font-size: .88rem; }

.pd-hod { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rtvc-border); display: grid; gap: 10px; }
.pd-hod__q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pd-hod__lbl { font-weight: 700; color: var(--rtvc-ink); }
.pd-hod__lbl i { color: var(--rtvc-maroon); margin-right: 3px; }
.pd-hod__saved { font-size: .8rem; font-weight: 700; color: #14532d; }
.pd-seg { display: inline-flex; border: 1.5px solid var(--rtvc-maroon); border-radius: var(--rtvc-radius-pill); overflow: hidden; background: #fff; }
.pd-seg label { position: relative; margin: 0; cursor: pointer; }
.pd-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pd-seg span, .pd-seg a { display: block; padding: 5px 14px; font-size: .85rem; font-weight: 700; color: var(--rtvc-maroon); text-decoration: none; white-space: nowrap; }
.pd-seg label + label span, .pd-seg a + a { border-left: 1.5px solid var(--rtvc-maroon); }
.pd-seg input:checked + span, .pd-seg a[aria-current] { background: var(--rtvc-maroon); color: #fff; }
.pd-seg input:focus-visible + span, .pd-seg a:focus-visible { outline: 3px solid var(--rtvc-maroon-light); outline-offset: -3px; }
.pd-minutes { display: grid; gap: 8px; padding: 12px; background: #fbf8f4; border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius); }
.pd-minutes__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.pd-minutes__t { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; color: var(--rtvc-ink); }
.pd-minutes__t > i { color: var(--rtvc-maroon); }

/* ── Console: submissions by department ────────────────────────────────── */
.pd-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.pd-toolbar__left, .pd-toolbar__right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pd-toolbar select { padding: 7px 10px; border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius); font: inherit; background: #fff; }
.pd-deptbox { margin: 12px 0; background: var(--rtvc-surface, #fff); border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius-lg); box-shadow: var(--rtvc-shadow); }
.pd-deptbox > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; }
.pd-deptbox > summary::-webkit-details-marker { display: none; }
.pd-deptbox__name { font-weight: 700; color: var(--rtvc-ink); display: inline-flex; gap: 8px; align-items: center; }
.pd-deptbox__name .fa-chevron-down { color: var(--rtvc-maroon); transition: transform .15s ease; font-size: .8rem; }
.pd-deptbox:not([open]) .fa-chevron-down { transform: rotate(-90deg); }
.pd-deptbox__counts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pd-deptbox__body { padding: 0 16px 14px; }
.pd-deptbox__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; margin: 0 0 8px; }
.pd-files { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pd-files a { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.pd-viewbtn { background: none; border: 0; color: var(--rtvc-maroon); cursor: pointer; font: inherit; font-weight: 600; padding: 0; white-space: nowrap; }
.pd-view td { background: #fbf8f4; }
.pd-view dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: .85rem; }
.pd-view dt { font-weight: 700; color: var(--rtvc-ink-soft); }
.pd-view dd { margin: 0; overflow-wrap: anywhere; }
.pd-hist { margin: 0; padding-left: 1.1em; font-size: .8rem; color: var(--rtvc-ink-soft); }
.pd-deps td input[type=text], .pd-deps td input[type=number] { width: 100%; padding: 6px 8px; border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius); font: inherit; }
.pd-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; background: var(--rtvc-surface-sunk); padding: 2px 6px; border-radius: 6px; }

/* A file on record that is no longer on the server: the trainer can put the same file back. */
.pd-chip--lost { background: #fdecec; }
.pd-chip__lost { flex-basis: 100%; margin: 2px 0 0; color: #991b1b; font-size: .8rem; font-weight: 600; }
.pd-lost { display: inline-flex; gap: 4px; align-items: center; color: #991b1b; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pd-view .pd-lost { display: flex; white-space: normal; margin-top: 2px; }
.pd-lostnote { font-weight: 400; }

/* ══════════════════════════════════════════════════════════════════════════
   Simpler trainer page (4 Oct 2026), for trainers who are not at home with
   computers: a checklist with a progress bar, uploads in numbered steps with
   a large drop box and the chosen files listed, the file on record as a green
   receipt, and the previous term's records as one wide card of two uploads.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Checklist ─────────────────────────────────────────────────────────── */
.pd-todo { margin: 0 0 20px; }
.pd-todo__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.pd-todo__head h2 { margin: 0; }
.pd-todo__count { color: var(--rtvc-ink-soft); font-size: .95rem; }
.pd-todo__count strong { color: var(--rtvc-ink); font-size: 1.05rem; }
.pd-meter { height: 10px; border-radius: var(--rtvc-radius-pill); background: var(--rtvc-surface-sunk); overflow: hidden; margin-bottom: 14px; }
.pd-meter > span { display: block; height: 100%; background: #15803d; border-radius: inherit; transition: width .3s ease; }
.pd-todo__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.pd-todo__i a { display: flex; gap: 10px; align-items: flex-start; height: 100%; padding: 10px 12px; border-radius: var(--rtvc-radius);
  border: 1px solid var(--rtvc-border); background: #fff; color: var(--rtvc-ink); text-decoration: none; font-weight: 700; font-size: .92rem; line-height: 1.3; }
.pd-todo__i a:hover { border-color: var(--rtvc-maroon); }
.pd-todo__i a:focus-visible { outline: 3px solid var(--rtvc-maroon-light); outline-offset: 1px; }
.pd-todo__i i { margin-top: 2px; font-size: 1.05rem; }
.pd-todo__i small { display: block; font-weight: 600; font-size: .78rem; color: var(--rtvc-ink-soft); margin-top: 2px; }
.pd-todo__i--done a { background: #f0faf3; border-color: #b7e0c3; }
.pd-todo__i--done i { color: #15803d; }
.pd-todo__i--missed a { background: #fdf3f3; border-color: #f3c2c2; }
.pd-todo__i--missed i, .pd-todo__i--missed small { color: #991b1b; }
.pd-todo__i--pending i { color: var(--rtvc-ink-faint, #9ca3af); }
.pd-how { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--rtvc-border); display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: .88rem; color: var(--rtvc-ink-soft); }
.pd-how li { display: flex; gap: 8px; align-items: center; }
.pd-how li > b { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rtvc-maroon);
  color: #fff; font-size: .75rem; font-weight: 800; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.pd-sub { scroll-margin-top: 120px; }
.pd__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .pd__grid--two { grid-template-columns: minmax(0, 1fr); } }
.pd-sub--wide { grid-column: 1 / -1; }
.pd-sub__head h2 { flex-wrap: wrap; }
.pd-sub__intro { margin: -4px 0 14px; color: var(--rtvc-ink-soft); font-size: .92rem; }
.pd-slots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.pd-slot { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius); background: #fbf8f4;
  scroll-margin-top: 120px; }
.pd-slot__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.pd-slot__head h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--rtvc-ink); display: flex; gap: 8px; align-items: center; }
.pd-slot__head h3 i { color: var(--rtvc-maroon); }
.pd-minutes { scroll-margin-top: 120px; }
.pd-badge--pending { background: #fff4e0; color: #8a5a00; }

/* The file on record: a green receipt. */
.pd-chip { align-items: flex-start; flex-wrap: nowrap; gap: 10px; background: #f0faf3; border: 1px solid #b7e0c3; padding: 10px 12px; }
.pd-chip__ok { color: #15803d; font-size: 1.15rem; margin-top: 1px; }
.pd-chip__body { display: grid; gap: 2px; min-width: 0; }
.pd-chip__body > strong { color: #14532d; }
.pd-chip__file { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.pd-chip--lost { background: #fdecec; border-color: #f3c2c2; }
.pd-chip--lost .pd-chip__ok, .pd-chip--lost .pd-chip__body > strong { color: #991b1b; }

/* "Upload a different file instead": the form folded away under a receipt. */
.pd-again > summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .88rem; color: var(--rtvc-maroon); }
.pd-again[open] > summary { margin-bottom: 10px; }
.pd-again > summary:focus-visible { outline: 3px solid var(--rtvc-maroon-light); outline-offset: 2px; border-radius: 4px; }

/* ── The upload, in numbered steps ─────────────────────────────────────── */
.pd-up { counter-reset: pd-step; gap: 12px; }
.pd-step { display: grid; gap: 6px; margin: 0; }
.pd-step__t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 700; color: var(--rtvc-ink); font-size: .92rem; }
.pd-step__t::before { counter-increment: pd-step; content: counter(pd-step); flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--rtvc-maroon); color: #fff; font-size: .75rem; font-weight: 800; }
.pd-step__t small { font-weight: 500; color: var(--rtvc-ink-soft); font-size: .8rem; }
.pd-step select, .pd-step textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--rtvc-border); border-radius: var(--rtvc-radius); font: inherit; background: #fff; color: var(--rtvc-ink); }
.pd-step textarea { resize: vertical; min-height: 60px; }
.pd-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 14px; text-align: center; cursor: pointer;
  border: 2px dashed #c9a9a9; border-radius: var(--rtvc-radius-lg); background: #fff; transition: background .15s ease, border-color .15s ease; }
.pd-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pd-drop:hover, .pd-drop.is-over { border-color: var(--rtvc-maroon); background: #fbf3f3; }
.pd-drop.has-files { border-style: solid; border-color: #b7e0c3; background: #f6fbf7; }
.pd-drop:focus-within { outline: 3px solid var(--rtvc-maroon-light); outline-offset: 2px; }
.pd-drop__icon { font-size: 1.6rem; color: var(--rtvc-maroon); line-height: 1; }
.pd-drop__t { color: var(--rtvc-ink); }
.pd-drop__t strong { color: var(--rtvc-maroon); }
.pd-drop__s { font-size: .8rem; color: var(--rtvc-ink-soft); }
.pd-picked { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pd-picked li { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: var(--rtvc-radius); background: #fff; border: 1px solid var(--rtvc-border); font-size: .86rem; }
.pd-picked li i { color: #15803d; }
.pd-picked li.is-bad { border-color: #f3c2c2; background: #fdf3f3; }
.pd-picked li.is-bad i { color: #991b1b; }
.pd-picked__n { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--rtvc-ink); }
.pd-picked__s { flex: none; color: var(--rtvc-ink-soft); font-size: .8rem; }
.pd-step--go .pd-step__t { display: none; }
.pd-up .pd-up__btn { margin-top: 0; width: 100%; padding: 12px 20px; font-size: 1rem; }
.pd-up__btn[disabled] { cursor: progress; }
.pd-step--go .pd-up__meta { text-align: center; }
.pd-hod__lbl { font-size: .95rem; }

@media (max-width: 640px) {
  .pd-how { flex-direction: column; }
  .pd-drop__or { display: none; }
}
