/* Pharma Vacancy workspace UI — shared by candidate, company, admin and evaluator pages. */
:root {
  --navy: #062b63; --navy-2: #0d4689; --ink: #12233f; --muted: #5b6b82; --line: #dce6f0; --bg: #f5f8fc; --card: #ffffff;
  --orange: #ff6b00; --orange-2: #e05a10; --teal: #0f9d94; --green: #16a34a; --amber: #b86a00; --red: #b42318; --blue: #1769aa;
  --radius: 14px; --shadow: 0 2px 10px rgba(6, 43, 99, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.pv { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; }
.pv a { color: var(--blue); }
.pv h1, .pv h2, .pv h3 { margin: 0; color: var(--navy); line-height: 1.25; }
.pv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- shell */
.pv-shell { display: flex; min-height: 100vh; }
.pv-side { width: 260px; background: var(--navy); color: #fff; display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; height: 100vh; z-index: 60; }
.pv-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px; text-decoration: none; color: #fff !important; font-weight: 800; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.pv-brand img { width: 32px; height: 32px; border-radius: 8px; background: #fff; padding: 2px; }
.pv-brand small { display: block; font-weight: 500; font-size: 10.5px; color: #9db3d6; letter-spacing: .04em; }
.pv-nav { list-style: none; margin: 0; padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }
.pv-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #cbd5e1 !important; text-decoration: none; font-weight: 500; font-size: 13.5px; }
.pv-nav a:hover { background: rgba(255,255,255,.1); color: #fff !important; }
.pv-nav a.active { background: var(--orange); color: #fff !important; font-weight: 600; }
.pv-nav .pv-ic { width: 20px; text-align: center; }
.pv-nav .pv-count { margin-left: auto; background: #ef4444; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 700; }
.pv-side-foot { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 16px; }
.pv-user { display: flex; align-items: center; gap: 10px; }
.pv-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-2); border: 2px solid #38bdf8; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.pv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pv-user b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.pv-user small { color: #94a3b8; font-size: 11px; }
.pv-out { margin-left: auto; background: none; border: 0; color: #94a3b8; cursor: pointer; font-size: 16px; padding: 6px; }
.pv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pv-top { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 22px; position: sticky; top: 0; z-index: 50; }
.pv-top h1 { font-size: 18px; margin-right: auto; }
.pv-burger { display: none; background: none; border: 0; font-size: 22px; color: var(--navy); cursor: pointer; padding: 6px; }
.pv-bell { position: relative; background: #f1f5f9; border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 17px; text-decoration: none; display: grid; place-items: center; }
.pv-bell i { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; background: #ef4444; color: #fff; border-radius: 999px; font: 700 10px/16px Poppins, sans-serif; text-align: center; font-style: normal; padding: 0 3px; }
.pv-content { padding: 22px; max-width: 1280px; width: 100%; margin: 0 auto; flex: 1; }
.pv-bottom { display: none; }
.pv-scrim { display: none; }

@media (max-width: 900px) {
  .pv-side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .25s; width: 270px; }
  .pv-shell.open .pv-side { transform: none; }
  .pv-shell.open .pv-scrim { display: block; position: fixed; inset: 0; background: rgba(6,43,99,.45); z-index: 55; }
  .pv-burger { display: block; }
  .pv-top { padding: 0 12px; }
  .pv-content { padding: 14px 12px 88px; }
  .pv-bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 70; padding-bottom: env(safe-area-inset-bottom); }
  .pv-bottom a { flex: 1; text-align: center; padding: 8px 2px 7px; text-decoration: none; color: var(--muted) !important; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 52px; justify-content: center; }
  .pv-bottom a span { font-size: 19px; line-height: 1; }
  .pv-bottom a.active { color: var(--orange) !important; }
}

/* ---- cards & layout */
.pv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.pv-card > h2, .pv-card > .pv-head > h2 { font-size: 16px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pv-grid { display: grid; gap: 14px; }
.pv-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pv-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pv-grid.auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 900px) { .pv-grid.c3, .pv-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pv-grid.c2, .pv-grid.c3, .pv-grid.c4 { grid-template-columns: 1fr; } }
.pv-stat { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.pv-stat b { font-size: 22px; color: var(--navy); display: block; line-height: 1.1; }
.pv-stat small { color: var(--muted); font-size: 12px; }
.pv-stat .pv-ico { width: 42px; height: 42px; border-radius: 12px; background: #e0f2fe; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.pv-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.pv-hero h1, .pv-hero h2 { color: #fff; }
.pv-hero p { margin: 4px 0 0; color: #cbd5e1; }
.pv-muted { color: var(--muted); }
.pv-small { font-size: 12px; }
.pv-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pv-spread { justify-content: space-between; }
.pv-mt { margin-top: 14px; } .pv-mb { margin-bottom: 14px; }

/* ---- buttons & badges */
.pv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; font: 600 13px Poppins, sans-serif; cursor: pointer; text-decoration: none; min-height: 40px; background: var(--orange); color: #fff !important; }
.pv-btn:hover { background: var(--orange-2); }
.pv-btn.navy { background: var(--navy); } .pv-btn.navy:hover { background: var(--navy-2); }
.pv-btn.ghost { background: #fff; border-color: #b7c7dc; color: var(--navy) !important; } .pv-btn.ghost:hover { background: #f0f7ff; }
.pv-btn.danger { background: var(--red); } .pv-btn.green { background: var(--green); }
.pv-btn.sm { padding: 5px 11px; font-size: 12px; min-height: 32px; border-radius: 8px; }
.pv-btn[disabled] { opacity: .5; cursor: not-allowed; }
.pv-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #e2e8f0; color: #334155; white-space: nowrap; }
.pv-badge.green { background: #dcfce7; color: #166534; } .pv-badge.red { background: #fee2e2; color: #991b1b; }
.pv-badge.amber { background: #fef3c7; color: #92400e; } .pv-badge.blue { background: #dbeafe; color: #1e40af; }
.pv-badge.teal { background: #ccfbf1; color: #115e59; } .pv-badge.navy { background: var(--navy); color: #fff; }
.pv-cat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.pv-cat.Platinum { background: #e5e4ff; color: #3b3a99; } .pv-cat.Gold { background: #fef3c7; color: #92400e; }
.pv-cat.Silver { background: #e2e8f0; color: #334155; } .pv-cat.Bronze { background: #fde7d3; color: #9a4a12; }
.pv-cat.Developing { background: #dbeafe; color: #1e40af; } .pv-cat.Foundation { background: #ecfdf5; color: #166534; }

/* ---- forms */
.pv-form { display: grid; gap: 12px; }
.pv-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .pv-fields { grid-template-columns: 1fr; } }
.pv-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pv-field.full { grid-column: 1 / -1; }
.pv-field > span { font-size: 12.5px; font-weight: 600; color: var(--navy); }
.pv-field small { color: var(--muted); font-size: 11.5px; }
.pv input[type=text], .pv input[type=email], .pv input[type=tel], .pv input[type=number], .pv input[type=date], .pv input[type=datetime-local], .pv input[type=password], .pv input[type=url], .pv input[type=search], .pv select, .pv textarea {
  width: 100%; border: 1px solid #b7c7dc; border-radius: 10px; padding: 10px 12px; font: 14px Poppins, sans-serif; background: #fff; color: var(--ink); min-height: 42px; }
.pv textarea { min-height: 96px; resize: vertical; }
.pv input:focus, .pv select:focus, .pv textarea:focus { outline: 2px solid #93c5fd; border-color: var(--blue); }
.pv-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; }
.pv-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-chip { border: 1px solid #b7c7dc; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink); font-family: inherit; }
.pv-chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- tables */
.pv-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pv-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.pv-table th { text-align: left; background: #f1f6fc; color: var(--navy); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; white-space: nowrap; }
.pv-table td { padding: 10px 12px; border-top: 1px solid #edf2f8; vertical-align: top; }
.pv-table tr:hover td { background: #fafcff; }
.pv-empty { text-align: center; color: var(--muted); padding: 30px 12px; }
@media (max-width: 700px) {
  .pv-table.stack { min-width: 0; } .pv-table.stack thead { display: none; }
  .pv-table.stack tr { display: block; border-top: 8px solid var(--bg); padding: 8px 4px; }
  .pv-table.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 10px; text-align: right; }
  .pv-table.stack td::before { content: attr(data-l); font-weight: 700; color: var(--navy); text-align: left; }
}

/* ---- progress, tabs, steps */
.pv-bar { background: #e2e8f0; height: 10px; border-radius: 99px; overflow: hidden; }
.pv-bar > i { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .4s; }
.pv-bar.g > i { background: var(--teal); }
.pv-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.pv-tabs button { border: 1px solid #b7c7dc; background: #fff; padding: 8px 15px; border-radius: 999px; font: 600 13px Poppins, sans-serif; color: var(--navy); cursor: pointer; white-space: nowrap; }
.pv-tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pv-steps { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 6px; }
.pv-steps button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 11px; font: 600 12px Poppins, sans-serif; cursor: pointer; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.pv-steps button.on { border-color: var(--orange); color: var(--navy); box-shadow: inset 0 -3px 0 var(--orange); }
.pv-steps button.done { color: var(--green); }
.pv-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; font-size: 11px; color: #334155; }
.pv-steps .done b { background: #dcfce7; color: #166534; } .pv-steps .on b { background: var(--orange); color: #fff; }
.pv-timeline { list-style: none; margin: 0; padding: 0; }
.pv-timeline li { position: relative; padding: 0 0 14px 24px; border-left: 2px solid #dbe6f3; margin-left: 7px; }
.pv-timeline li::before { content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; box-shadow: 0 0 0 2px #dbe6f3; }
.pv-timeline li:last-child { border-left-color: transparent; }

/* ---- alerts, modal, toast */
.pv-alert { border-radius: 10px; padding: 11px 14px; font-size: 13px; border: 1px solid; margin-bottom: 12px; }
.pv-alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; } .pv-alert.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.pv-alert.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; } .pv-alert.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.pv-modal-bg { position: fixed; inset: 0; background: rgba(6,43,99,.5); z-index: 200; display: grid; place-items: center; padding: 14px; }
.pv-modal { background: #fff; border-radius: 16px; max-width: 720px; width: 100%; max-height: 92vh; overflow: auto; padding: 20px 22px; }
.pv-modal.wide { max-width: 960px; }
.pv-modal h2 { margin-bottom: 12px; font-size: 18px; }
.pv-modal .pv-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.pv-toasts { position: fixed; right: 14px; bottom: 74px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 380px); }
@media (min-width: 901px) { .pv-toasts { bottom: 18px; } }
.pv-toast { background: var(--navy); color: #fff; padding: 11px 15px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.2); font-size: 13px; }
.pv-toast.err { background: var(--red); } .pv-toast.ok { background: #15803d; }
.pv-loading { text-align: center; padding: 40px; color: var(--muted); }
.pv-spin { width: 28px; height: 28px; border: 3px solid #dbe6f3; border-top-color: var(--orange); border-radius: 50%; animation: pvspin .8s linear infinite; margin: 0 auto 10px; }
@keyframes pvspin { to { transform: rotate(360deg); } }

/* ---- domain components */
.pv-score { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pv-score .pv-num { font-size: 44px; font-weight: 800; line-height: 1; }
.pv-score .pv-of { font-size: 16px; opacity: .7; }
.pv-round { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #edf2f8; }
.pv-round:first-child { border-top: 0; }
.pv-round .pv-r-n { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; display: grid; place-items: center; font-weight: 800; color: var(--navy); flex-shrink: 0; }
.pv-round.done .pv-r-n { background: #dcfce7; color: #166534; } .pv-round.cur .pv-r-n { background: var(--orange); color: #fff; }
.pv-round .pv-grow { flex: 1; min-width: 0; }
.pv-crit { display: grid; grid-template-columns: 1fr 96px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #edf2f8; }
.pv-crit:first-child { border-top: 0; }
.pv-jobcard { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; margin-bottom: 12px; }
.pv-jobcard h3 { font-size: 16px; }
.pv-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; margin: 6px 0; }
.pv-qgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-qn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #b7c7dc; background: #fff; font-weight: 700; cursor: pointer; font-family: inherit; position: relative; }
.pv-qn.ans { background: #dcfce7; border-color: #86efac; } .pv-qn.cur { outline: 3px solid var(--orange); } .pv-qn.flag::after { content: ''; width: 8px; height: 8px; background: var(--red); border-radius: 2px; position: absolute; top: -6px; right: -3px; color: var(--red); font-size: 12px; }
.pv-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 12px 14px; background: #fff; cursor: pointer; margin-bottom: 8px; }
.pv-opt.sel { border-color: var(--orange); background: #fff7ed; }
.pv-opt input { margin-top: 3px; }
.pv-timer { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--navy); color: #5eead4; padding: 6px 14px; border-radius: 999px; }
.pv-timer.low { background: var(--red); color: #fff; }
.pv-kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 13px; }
.pv-kv dt { color: var(--muted); } .pv-kv dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .pv-kv { grid-template-columns: 1fr; } .pv-kv dt { margin-top: 6px; font-size: 12px; } }
.pv-pre { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.pv-dist { display: grid; grid-template-columns: 96px 1fr 44px; gap: 8px; align-items: center; margin: 5px 0; font-size: 13px; }
.pv-print { display: none; }
@media print { .pv-side, .pv-top, .pv-bottom, .pv-btn, .pv-toasts { display: none !important; } .pv-content { padding: 0; } .pv-card { box-shadow: none; } .pv-print { display: block; } }
.pv-check.pv-field { flex-direction: row; align-items: flex-start; gap: 9px; }
.pv-check.pv-field > span { font-weight: 500; color: var(--ink); font-size: 13.5px; }
/* grid/flex children must be allowed to shrink so wide tables scroll inside their wrapper instead of stretching the page */
.pv-grid > *, .pv-main, .pv-card { min-width: 0; }
.pv-badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

/* Assessment configuration: retain the platform's compact professional controls. */
.pv-category-settings { border: 1px solid var(--pv-border, #e5e7eb); border-radius: 8px; padding: 20px; min-width: 0; }
.pv-category-settings legend { font-size: 15px; font-weight: 600; padding: 0 8px; }
.pv fieldset[data-options] { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; min-width: 0; }
.pv [hidden] { display: none !important; }
.pv .pv-modal .pv-tablewrap { max-height: 360px; overflow: auto; }

.pv-svg { flex-shrink: 0; vertical-align: middle; }
.pv .pv-ico .pv-svg { width: 24px; height: 24px; }

/* ---- Phase 1: Kanban pipeline, bulk bar, gap lists, video recorder, integrity (scroll stays inside the board, never the page) ---- */
.kb-board { display: flex; gap: 12px; overflow-x: auto; max-width: 100%; padding: 4px 2px 12px; -webkit-overflow-scrolling: touch; }
.kb-col { flex: 0 0 264px; min-width: 0; background: #f2f6fb; border: 1px solid #dfe7f1; border-radius: 14px; padding: 10px; min-height: 220px; }
.kb-col h3 { font-size: 13px; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.kb-col.over { outline: 2px dashed #0f9d94; background: #eaf8f6; }
.kb-card { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 10px 10px 40px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(15, 31, 58, .06); }
.kb-card:active { cursor: grabbing; }
.kb-sel { position: absolute; left: 10px; top: 12px; margin: 0; }
.kb-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy, #062b63); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.kb-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: #475569; margin: 4px 0 6px; }
.kb-move { max-width: 100%; font-size: 12px; padding: 4px 6px; }
.kb-empty { padding: 14px 4px; text-align: center; }
.pv-gaps li { overflow-wrap: anywhere; }
.vid-stage { background: #0b1f3a; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; max-width: 560px; width: 100%; }
.vid-stage video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.vid-badge { position: absolute; top: 10px; left: 10px; background: #b42318; color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.vid-count { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, .6); color: #fff; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.vid-bigcount { font-size: 54px; font-weight: 800; color: #fff; text-align: center; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 43, 99, .72); }
.eval-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.eval-split .eval-video { position: sticky; top: 8px; }
.eval-split video { width: 100%; max-height: 62vh; background: #000; border-radius: 12px; }
@media (max-width: 900px) { .eval-split { grid-template-columns: minmax(0, 1fr); } .eval-split .eval-video { position: static; } }
.risk-high { color: #b42318; font-weight: 700; }
.pv-sla { font-variant-numeric: tabular-nums; }

.pv-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pv-pager-info { font-size: 13px; color: var(--muted); }
.pv-pager .pv-btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .pv-pager { justify-content: center; } .pv-pager-info { order: -1; width: 100%; text-align: center; } }

.pv-chat { max-height: 52vh; min-height: 120px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.pv-chat-msg { max-width: 82%; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.pv-chat-msg.mine { align-self: flex-end; background: #eaf3ff; border-color: #c7dcf7; }
.pv-chat-msg.theirs { align-self: flex-start; }
.pv-chat-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-linkbtn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---- phase 2: touch targets, legibility, focus (workspace only; values verified with the responsive audit at 320-1920px) */
.pv .pv-out, .pv .pv-burger { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.pv .pv-bell { width: 44px; height: 44px; }
.pv .pv-brand small { font-size: 11px; }
.pv .pv-bell i { font-size: 11px; }
.pv .pv-table th { font-size: 12px; }
.pv .pv-check { min-height: 44px; align-items: center; }
.pv .pv-check input { margin-top: 0; }
.pv .pv-steps button { min-height: 44px; }
.pv .pv-tap { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.pv .pv-tap input { width: 22px; height: 22px; margin: 0; }
.pv .layout-workspace-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.pv a:focus-visible, .pv button:focus-visible, .pv input:focus-visible, .pv select:focus-visible, .pv textarea:focus-visible, .pv [tabindex]:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pv *, .pv *::before, .pv *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (max-width: 1024px), (pointer: coarse) { .pv .pv-btn.sm { min-height: 44px; } .pv .pv-btn { min-height: 44px; } }
.pv .pv-count, .pv .pv-bell i { background: #dc2626; }   /* white on #dc2626 = 4.8:1 (was 3.8:1) */
.pv .pv-side-foot .pv-muted { color: #b6c3d8; }   /* was 3.5:1 on the navy sidebar */
.pv .pv-steps button.done { color: #15803d; }   /* was 3.3:1 on white */
