/* Plāns un punkti — the ledger page (apps/workspace/points.js). The same cards as the rest of the workspace. */
.pt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; max-width: 1180px; margin: 0 auto; }
.pt > section { padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, .88); box-shadow: 0 0 0 1px rgba(31, 16, 38, .05), 0 20px 44px -34px rgba(74, 29, 87, .45); min-width: 0; }
.pt h3 { margin: 0 0 12px; font-size: 15px; }
.pt-now-h { display: flex; gap: 16px; align-items: center; }
.pt-art { width: 64px; height: 64px; border-radius: 18px; }
.pt-now h2 { margin: 2px 0 4px; font-size: clamp(24px, 2.4vw, 30px); }
.pt-now h2 small { font-size: 15px; font-weight: 500; color: var(--bc-ink-2); margin-left: 6px; }
.pt-big { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-end; margin: 18px 0 12px; }
.pt-left { display: grid; gap: 2px; }
.pt-k { font-size: 12.5px; font-weight: 600; color: var(--bc-ink-2); }
.pt-left b { display: flex; align-items: center; gap: 8px; font: 700 44px/1 var(--bc-display, inherit); font-variant-numeric: tabular-nums; }
.pt-tok { width: 40px; height: 40px; object-fit: contain; }
.pt-left small { font-size: 13px; color: var(--bc-ink-3); }
.pt-stat { display: grid; gap: 2px; padding-bottom: 4px; }
.pt-stat span { font-size: 12.5px; color: var(--bc-ink-3); }
.pt-stat b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pt-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--bc-ink-3); }
.pt-none { margin: 0; color: var(--bc-ink-3); font-size: 13.5px; }
.pt-ok { margin: 10px 0 0; font-size: 13px; color: #2f7d58; }

.pt-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.pt-h h3 { margin: 0; }
.pt-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bc-canvas, #f4f1fa); }
.pt-seg button { padding: 5px 10px; border: 0; border-radius: 9px; background: none; font: 600 12px/1 var(--bc-text); color: var(--bc-ink-2); cursor: pointer; }
.pt-seg button.on { background: #fff; color: var(--bc-ink); box-shadow: 0 1px 3px rgba(31, 16, 38, .12); }
.pt-g { display: block; width: 100%; height: 150px; border-bottom: 1px solid rgba(31, 16, 38, .08); }
.pt-gx { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--bc-ink-3); }
.pt-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--bc-ink-2); }
.pt-leg i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }

.pt-hi, .pt-per, .pt-plans, .pt-ops { grid-column: 1 / -1; }
.pt-hi { grid-column: auto; }
.pt-rs { display: grid; max-height: 420px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.pt-r { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 2px; border-top: 1px solid rgba(31, 16, 38, .06); font-size: 13px; }
.pt-r:first-child { border-top: 0; }
.pt-rw { color: var(--bc-ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.pt-rl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pt-rl em { margin-right: 6px; font-style: normal; font-weight: 600; font-size: 11.5px; color: var(--bc-ink-2); }
.pt-rl small { display: block; font-size: 11.5px; color: var(--bc-ink-3); }
.pt-r b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-r.k-grant b, .pt-r.k-purchase b, .pt-r.k-refund b { color: #2f7d58; }

.pt-per table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-per th { text-align: left; font-weight: 600; font-size: 12px; color: var(--bc-ink-3); padding: 6px 8px; }
.pt-per td { padding: 8px; border-top: 1px solid rgba(31, 16, 38, .06); font-variant-numeric: tabular-nums; }
.pt-per tr.on td { background: rgba(123, 92, 214, .06); }
.pt-per em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--bc-plum); }

.pt-ps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pt-p { display: grid; align-content: start; gap: 4px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 16, 38, .07); }
.pt-p.on { box-shadow: 0 0 0 2px var(--bc-plum); }
.pt-p b { font-size: 15px; }
.pt-pr { font-size: 18px; font-weight: 700; }
.pt-pr small { font-size: 12px; font-weight: 500; color: var(--bc-ink-3); }
.pt-p > small { font-size: 12px; color: var(--bc-ink-2); }
.pt-p p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--bc-ink-2); }
.pt-p em { justify-self: start; margin-top: 6px; padding: 3px 8px; border-radius: 8px; background: rgba(123, 92, 214, .1); font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--bc-plum); }

.pt-ops { background: rgba(255, 248, 236, .92) !important; }
.pt-ops form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.pt-ops label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--bc-ink-2); }
.pt-ops label.w { flex: 1; min-width: 200px; }
.pt-ops input, .pt-ops select { padding: 8px 10px; border: 1px solid rgba(31, 16, 38, .14); border-radius: 10px; font: inherit; font-size: 13.5px; background: #fff; }

@media (max-width: 900px) { .pt { grid-template-columns: minmax(0, 1fr); } .pt-hi { grid-column: 1 / -1; } .pt-left b { font-size: 36px; } .pt-r { grid-template-columns: 74px minmax(0, 1fr) auto; } }
