.pd { max-width: 1280px; margin: 0 auto; padding: 8px 16px 40px; color: #16324A; }
.pd h1 { font-size: 1.6rem; margin: 6px 0 4px; }
.pd .pd-lead { color: #1B4F7C; margin: 0 0 14px; max-width: 70ch; }
.pd-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.pd-card { background: #fff; border: 1px solid #b9c7d3; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.pd-card h2 { font-size: 1.05rem; margin: 0 0 10px; color: #1B4F7C; }
.pd label { display: block; font-size: .9rem; font-weight: 600; margin: 8px 0 3px; color: #1B4F7C; }
.pd input[type=number], .pd select { width: 100%; padding: 8px 10px; font-size: 1rem; border: 1px solid #8fa3b5; border-radius: 6px; background: #fff; color: #16324A; box-sizing: border-box; }
.pd .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd button, .pd .pd-btn { background: #1B4F7C; color: #fff; border: 0; border-radius: 6px; padding: 9px 14px; font-size: .95rem; cursor: pointer; }
.pd button.alt, .pd .pd-btn.alt { background: #fff; color: #1B4F7C; border: 1px solid #1B4F7C; }
.pd .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pd-msg { color: #8a1f11; font-weight: 600; min-height: 1.2em; margin: 8px 0 0; }
.pd-msg.ok { color: #14532D; }
.pd-t, .pd-segs { border-collapse: collapse; width: 100%; font-size: .93rem; }
.pd-t th, .pd-t td, .pd-segs th, .pd-segs td { border-bottom: 1px solid #c9d3dc; padding: 5px 8px; text-align: right; }
.pd-t th:first-child, .pd-segs th:first-child { text-align: left; }
.pd-t td:last-child { text-align: left; color: #1B4F7C; }
.pd-out td:nth-child(2) { font-weight: 700; }
.pd-scroll { max-height: 340px; overflow: auto; }
.pd-draw svg { width: 100%; height: auto; border: 1px solid #b9c7d3; border-radius: 8px; }
.pd-colors { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 8px 0; font-size: .9rem; }
.pd-colors input { width: 44px; height: 30px; padding: 0; border: 1px solid #8fa3b5; }
.pd-colors label { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.pd-note { font-size: .85rem; color: #1B4F7C; }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; } }
@media print { .pd-inputs, .btns, nav, header, footer { display: none !important; } .pd-grid { display: block; } }
[hidden] { display: none !important; }
.pd-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.pd .pd-tab { background: #fff; color: #1B4F7C; border: 1px solid #1B4F7C; }
.pd .pd-tab[aria-selected="true"] { background: #1B4F7C; color: #fff; }
.pd-t td.num { text-align: right; }
.pd #tab-table .pd-t td:last-child { color: #16324A; font-weight: 700; text-align: right; }
.pd-scroll { max-height: 420px; }
