/* Nowa biblioteka 120 kart — style izolowane od silnika TP */
.tp-library-intro{padding:16px;background:#eef6fa;border-radius:16px;border:1px solid #cbe0eb;margin:14px 0}
.tp-library-intro p{margin:5px 0}
.tp-kpi{display:inline-block;border-radius:10px;background:#d6eef5;color:#184c65;font-weight:800;padding:6px 10px;font-size:12px}
.tp-toolbar{display:grid;grid-template-columns:1fr 1fr 2fr;gap:10px;align-items:end;margin:16px 0}
.tp-toolbar .btn{min-height:45px}
.tp-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,265px),1fr));gap:12px;margin-top:12px}
.tp-card{border:1px solid #d5e3e8;background:#fff;border-radius:17px;padding:15px;box-shadow:0 3px 14px #102f4b09;min-width:0}
.tp-card h3{font-family:Inter,system-ui,sans-serif;font-size:18px;line-height:1.2;margin:12px 0 8px}
.tp-card p{font-size:13.5px;margin:7px 0;line-height:1.5}
.tp-card-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
.tp-num{display:inline-block;font-family:Inter,system-ui,sans-serif;font-weight:800;font-size:13px;background:#102f4b;color:white;border-radius:9px;padding:6px 8px;line-height:1.2}
.tp-cat{font-weight:800;font-size:12px;color:#266d58;background:#e3f5ef;padding:6px 10px;border-radius:999px}
.tp-age{color:#567086}
.tp-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.tp-actions .btn{border-radius:12px;min-height:42px;font-size:13px}
.tp-detail{border:2px solid #279638;background:#f8fff9;padding:18px;border-radius:17px;margin:18px 0;scroll-margin-top:85px}
.tp-detail-heading{display:flex;justify-content:space-between;align-items:start;gap:10px;flex-wrap:wrap}
.tp-detail p{line-height:1.6}
.tp-section-heading{font-size:25px;margin:0 0 12px}
.tp-section{margin-top:24px}
.tp-selected{display:grid;gap:7px;margin:12px 0}
.tp-selection-line{display:flex;align-items:center;justify-content:space-between;border:1px solid #e1e9e9;border-radius:12px;background:#fff;padding:8px 10px;gap:12px}
.tp-selection-line small{color:#637789}.tp-selection-line .btn{padding:8px 10px;border-radius:10px}
.tp-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tp-form .tp-wide{grid-column:1/-1}
.tp-form label{font-size:13px}
.tp-form textarea{width:100%;min-height:72px}
.tp-form input{width:100%;padding:11px;border:1px solid #cfdbdd;border-radius:12px;font-size:14px}
.tp-plan{border:1px solid #d1e2e6;border-radius:17px;padding:18px;background:#fff;margin:15px 0;overflow-x:auto}
.tp-plan-table{width:100%;font-size:13px}.tp-plan-table th:first-child{width:21%}.tp-plan-table th:nth-child(2){width:10%}
.tp-pre{white-space:pre-wrap}
.tp-print-plan>p,.tp-print-card>p{line-height:1.6}
.tp-print-card{border-bottom:1px dashed #c4d1d5;page-break-inside:avoid;padding-bottom:18px;margin-bottom:20px}
.tp-print-card h2{font-size:23px}
.tp-write-line{border-bottom:1px dotted #abb8c0;height:28px}
.tp-print-sheet>footer{font-size:10px;color:#687d8a}
.tp-small{font-size:12px;color:#6e7b83}
.tp-path-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:10px}
.tp-path-card{background:#fff;border:1px solid #dbe5e6;border-radius:16px;padding:12px}
.tp-path-card h3{font-family:Inter,sans-serif;font-size:16px;margin:7px 0}.tp-path-card p{margin:5px 0 10px;font-size:12px}
.tp-path-card .btn{font-size:12px;padding:9px 10px;border-radius:10px}
.tp-status{min-height:22px;color:#21673d;font-weight:700;font-size:13px}
@media(max-width:780px){.tp-toolbar{grid-template-columns:1fr}.tp-form{grid-template-columns:1fr}.tp-form .tp-wide{grid-column:auto}.tp-detail-heading{display:block}.tp-card-grid{grid-template-columns:1fr}}
@media print{.tp-print-sheet{font-family:Arial,sans-serif;color:#172f43;padding:10mm;page-break-inside:auto}.tp-print-sheet h2{color:#12395a}.tp-print-sheet .tp-print-card{break-inside:avoid}.tp-print-sheet .tp-plan-table{font-size:10pt}.tp-print-sheet .tp-print-plan{break-inside:auto}}
