/* NPD's own look, on top of the skeleton's app.css: the step markers of the
   retro-planning, the week grid, the file thumbnails. */
.npd-strong { font-weight: 600; text-decoration: none; }
.npd-yes { color: var(--green); }
.npd-red { color: var(--red); }
tr.npd-late td { background: var(--red-bg); }
.npd-pre { white-space: pre-line; }

.npd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.npd-tile { display: flex; flex-direction: column; gap: .3rem; padding: .6rem .8rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.npd-tile strong { font-size: 1.4rem; }
.npd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1rem; align-items: start; }
.npd-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .npd-split { grid-template-columns: 1fr; } .npd-cols { grid-template-columns: 1fr; } }

.npd-notes { list-style: none; padding: 0; margin: 0; }
.npd-notes li { border-left: 3px solid var(--accent); padding: .35rem .7rem; margin-bottom: .5rem; }
.npd-inline { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; margin: .5rem 0; }
.npd-inline .form-actions { margin: 0; }
.npd-narrow input { width: 6rem; }

.npd-progress { display: inline-flex; align-items: center; gap: .4rem; }
.npd-progress .bar { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.npd-progress .bar span { display: block; height: 100%; background: var(--accent); }

.npd-state { display: inline-block; min-width: 1.3rem; text-align: center; border-radius: 4px; font-size: .75rem; font-weight: 700; padding: 0 .2rem; }
.npd-state.done { background: var(--green); color: #fff; }
.npd-state.late { background: var(--red); color: #fff; }
.npd-state.planned { border: 1px solid var(--accent); color: var(--accent); }
.npd-state.open { background: var(--bg); color: var(--muted); }

.npd-num, .npd-dot { display: inline-block; text-align: center; border-radius: 50%; font-weight: 600; background: var(--bg); color: var(--ink); border: 1px solid transparent; }
.npd-num { width: 1.6rem; height: 1.6rem; line-height: 1.5rem; font-size: .8rem; }
.npd-dot { width: 18px; height: 18px; line-height: 16px; font-size: .68rem; margin: 0 1px; }
.npd-num.done, .npd-dot.done { background: var(--green); color: #fff; }
.npd-num.late, .npd-dot.late { background: var(--red); color: #fff; }
.npd-num.planned, .npd-dot.planned { background: var(--panel); border-color: var(--accent); color: var(--accent); }
.npd-num.custom, .npd-dot.custom { border-radius: 3px; }

.npd-upload { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; margin-bottom: 1rem; }
.npd-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; }
.npd-files figure { margin: 0; }
.npd-thumb { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--bg); color: var(--muted); font-weight: 600; }
.npd-caption input { width: 100%; border: 0; padding: .2rem 0; background: transparent; }

.npd-grid-wrap { overflow-x: auto; }
table.npd-grid { border-collapse: separate; border-spacing: 0; font-size: .78rem; min-width: 100%; }
table.npd-grid th, table.npd-grid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2px 3px; text-align: center; white-space: nowrap; }
table.npd-grid th.month { font-weight: 600; }
table.npd-grid th.week { color: var(--muted); font-weight: 500; min-width: 26px; }
table.npd-grid td.wk { min-width: 26px; height: 34px; }
table.npd-grid .sticky { position: sticky; background: var(--panel); z-index: 2; text-align: left; }
table.npd-grid .c1 { left: 0; min-width: 170px; max-width: 220px; white-space: normal; }
table.npd-grid .c2 { left: 170px; min-width: 70px; }
table.npd-grid .c3 { left: 240px; min-width: 110px; border-right-width: 2px; }
table.npd-grid thead th.sticky { z-index: 3; }
table.npd-grid .now { background: var(--orange-bg); }
table.npd-grid .month-end { border-right-width: 2px; }
.npd-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; padding: .8rem; font-size: .85rem; }
