/* Pro space — CV ranking, matching candidates, market check (js/pro-tools.js, 2026-11-10). Built on pro.css tokens
   (--aam-hairline, --aam-soft, --primary, 16px cards, 20px gap); nothing new in the palette. */
.pt-quota { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--aam-hairline); border-radius: 12px; padding: 12px 16px; margin-bottom: var(--pro-gap); }
.pt-quota-txt { font-size: 14px; color: var(--text-primary); flex: 1 1 320px; min-width: 0; }
.pt-quota-txt span { color: var(--text-secondary); }
.pt-bar { position: relative; height: 8px; border-radius: 99px; background: var(--aam-soft); overflow: hidden; flex: 0 0 180px; }
.pt-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); border-radius: 99px; }
.pt-bar.sm { flex: 1 1 auto; height: 6px; min-width: 60px; }
.pt-empty { text-align: center; padding: 40px 24px; }
.pt-empty .pro-ic { color: var(--primary); margin-bottom: 8px; }
.pt-empty .pro-sub { max-width: 560px; margin: 0 auto 20px; }
.pt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--pro-gap); }
.pt-item { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; cursor: pointer; margin: 0; }
.pt-item:hover { border-color: var(--aam-soft-border); }
.pt-item-t { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.pt-item-m { font-size: 14px; color: var(--text-secondary); }
.pt-item-d { font-size: 12px; color: var(--text-secondary); }
.pt-form .pro-back, .pt-detail-head .pro-back { margin-bottom: 8px; }
.pt-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: -4px 0 16px; }
.pt-dh-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pt-dh-row .pro-card-t { margin-bottom: 4px; }
.pt-dh-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-dh-acts .btn, .pt-bd-acts .btn { height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.pt-danger { color: #b91c1c !important; }
.pt-warn { margin: 12px 0 0; }
.pt-drop { margin-top: 16px; border: 2px dashed var(--aam-soft-border); border-radius: 14px; background: var(--aam-soft); padding: 22px 16px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-primary); }
.pt-drop .pro-ic { color: var(--primary); }
.pt-drop small { color: var(--text-secondary); font-size: 13px; }
.pt-drop.over, .pt-drop:hover, .pt-drop:focus-visible { border-color: var(--primary); outline: none; }
.pt-prog { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; max-height: 240px; overflow: auto; }
.pt-prog li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--bg-secondary); min-width: 0; }
.pt-prog li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pt-prog li b { font-weight: 600; white-space: nowrap; color: var(--text-secondary); }
.pt-prog li.ok b { color: #15803d; } .pt-prog li.bad b { color: #b91c1c; } .pt-prog li.warn b { color: #b45309; }
.pt-table-wrap { overflow-x: auto; margin: 0 -8px; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); padding: 8px; border-bottom: 1px solid var(--aam-hairline); white-space: nowrap; }
.pt-table td { padding: 12px 8px; border-bottom: 1px solid var(--aam-hairline); vertical-align: top; }
.pt-table td small { display: block; font-size: 12px; margin-top: 2px; }
.pt-row { cursor: pointer; }
.pt-row:hover td, .pt-row.open td { background: #f8fbff; }
.pt-row-off { cursor: default; }
.pt-rk { font-weight: 800; color: var(--text-secondary); width: 28px; }
.pt-cand { min-width: 200px; max-width: 260px; }
.pt-cand b { display: block; color: var(--text-primary); }
.pt-table td[data-l="Fit"] { white-space: nowrap; }
.pt-cand span { display: block; font-size: 13px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-fit { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 8px; margin-right: 6px; white-space: nowrap; }
.pt-fit.top { background: #dcfce7; color: #166534; } .pt-fit.good { background: #e0f2fe; color: #075985; } .pt-fit.weak { background: #f1f5f9; color: #475569; }
.pt-score { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.pt-ok { color: #15803d; } .pt-bad { color: #b91c1c; } .pt-muted { color: var(--text-secondary); }
.pt-td-acts { white-space: nowrap; text-align: right; }
.pt-detail td { background: #f8fbff; padding: 4px 8px 16px; }
.pt-bd { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; }
.pt-bd-pts { display: grid; gap: 8px; align-content: start; }
.pt-pt { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pt-pt span { flex: 0 0 120px; color: var(--text-secondary); }
.pt-pt b { flex: 0 0 44px; text-align: right; font-size: 13px; }
.pt-bd-kw p { margin: 0 0 8px; font-size: 14px; }
.pt-bd-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pt-chip { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 9px; margin: 0 4px 4px 0; background: #f1f5f9; color: #334155; }
.pt-chip.ok { background: #dcfce7; color: #166534; } .pt-chip.miss { background: #fee2e2; color: #991b1b; }
.pt-why { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.pt-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 16px 0 0; }
.pt-note .pro-ic { margin-top: 2px; color: var(--primary); }
.pt-pick { padding: 16px 20px; }
.pt-count { margin: 0 0 12px; }
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--pro-gap); }
.pt-cards .pro-card { margin: 0; display: flex; flex-direction: column; }
.pt-mc h3 { font-size: 16px; margin: 8px 0 2px; color: var(--text-primary); }
.pt-mc p { margin: 0 0 8px; font-size: 14px; }
.pt-mc .btn { margin-top: auto; }
.pt-mc-h { display: flex; align-items: center; justify-content: space-between; }
.pt-mk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pro-gap); margin-top: var(--pro-gap); }
.pt-mk .pro-card { margin: 0; }
.pt-mk-b h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--text-primary); }
.pt-mk-b p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.pt-big { font-size: 26px !important; font-weight: 800; color: var(--text-primary); margin: 0 !important; letter-spacing: -.02em; }
.pt-thin { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px; font-size: 13px !important; }
.pt-src { font-size: 12px !important; color: var(--text-secondary); margin-top: 8px !important; }
.pt-range { position: relative; height: 10px; border-radius: 99px; background: var(--aam-soft); margin: 10px 0 12px; }
.pt-range i { position: absolute; top: 0; bottom: 0; background: var(--primary); border-radius: 99px; opacity: .55; }
.pt-range em { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; background: var(--text-primary); border-radius: 2px; }
.pt-ul { list-style: none; padding: 0; margin: 0 0 8px; }
.pt-ul li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--aam-hairline); }
.pt-ul li span { min-width: 0; overflow-wrap: anywhere; }
.pt-mk.compact { grid-template-columns: minmax(0, 1fr); }
.pro-mk-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 20px; }
.pro-mk-inline > div { flex: 1 1 100%; }
@media (max-width: 860px) {
  .pt-mk { grid-template-columns: minmax(0, 1fr); }
  .pt-bd { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* ranked table → one card per CV */
  .pt-table-wrap { margin: 0; overflow: visible; }
  .pt-table thead { display: none; }
  .pt-table, .pt-table tbody, .pt-table tr, .pt-table td { display: block; width: 100%; }
  .pt-table tr.pt-row { border: 1px solid var(--aam-hairline); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 8px; }
  .pt-table tr.pt-row td { border: 0; padding: 4px 0; background: none; }
  .pt-table tr.pt-row td[data-l] { grid-column: 2 / 4; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
  .pt-table tr.pt-row td[data-l]::before { content: attr(data-l); color: var(--text-secondary); font-weight: 600; flex: none; }
  .pt-table tr.pt-row td[data-l] small { display: inline; margin-left: 6px; }
  .pt-table tr.pt-row .pt-cand { grid-column: 2 / 3; min-width: 0; max-width: none; }
  .pt-table tr.pt-row .pt-td-acts { grid-column: 3; grid-row: 1; }
  .pt-table tr.pt-row-off td[colspan] { grid-column: 2 / 4; }
  .pt-table tr.pt-detail { margin: -6px 0 12px; }
  .pt-table tr.pt-detail td { border-radius: 0 0 12px 12px; padding: 12px; }
  .pt-bar { flex-basis: 100%; }
  .pt-pt span { flex-basis: 110px; }
}
@media (min-width: 861px) { .pt-table td[data-l="Title"], .pt-table td[data-l="Location"], .pt-table td[data-l="Experience"] { min-width: 104px; } }
.pt-dup { display: inline-block; font-size: 11px; font-weight: 700; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 99px; padding: 1px 7px; margin-top: 4px; }
