/* Insights and Settings (tabs.js), in plan.css's look: wells on the
   board's --dc-* tokens, its pills and boxes. Only what's new is here. */
.dcp .body[data-scroll=insights], .dcp .body[data-scroll=settings] { overflow: auto; padding-right: 4px; }
.dcp .tb { display: flex; flex-direction: column; gap: 10px; max-width: 980px; padding-bottom: 6px; }
.dcp .tsec { background: var(--dc-well); border-radius: var(--r); padding: 12px 16px 14px; }
.dcp .th { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dc-muted); font-weight: 700; }
.dcp .tsub { margin: 12px 0 4px; font-size: 12.5px; color: var(--dc-muted); font-weight: 600; }
.dcp .tp { margin: 0 0 6px; font-size: 13.5px; }
.dcp .tp.muted { font-size: 13px; }
/* a box, a list of picks or a segment on a well: the page's ground under it */
.dcp .tsec .in, .dcp .tsec select.in { background: var(--dc-bg); border-color: var(--dc-line); }
.dcp .tsec .in:focus { border-color: var(--dc-accent); }
.dcp .tsec .seg { background: transparent; box-shadow: inset 0 0 0 1px var(--dc-line); }
/* Insights: the workload across, the deck and what's in it side by side when there's room */
.dcp .tb.tins { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-width: 1240px; align-items: start; }
.dcp .tins > .tsec.twork { grid-column: 1 / -1; }

/* bars: parts end to end, a 2px gap between them, a track under them */
.dcp .tbar { position: relative; height: 8px; width: 100%; }
.dcp .tbar .trk { position: absolute; left: 0; top: 0; bottom: 0; background: var(--dc-line); border-radius: 3px; min-width: 3px; }
.dcp .tbar .tfl { position: absolute; inset: 0; display: flex; gap: 2px; overflow: hidden; }
.dcp .tbar .tfl i { display: block; flex: none; height: 100%; border-radius: 3px; min-width: 3px; }
.dcp .tfl .fill, .dcp .sw.fill { background: var(--dc-accent); }
.dcp .tfl .soft, .dcp .sw.soft { background: var(--dc-accent); opacity: .45; }
.dcp .tfl .over { background: var(--dc-hours); }
.dcp .meter { max-width: 560px; margin: 2px 0 6px; }
.dcp .tkey { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 4px; }
.dcp .tkey .sw { display: inline-block; width: 12px; height: 8px; border-radius: 3px; margin-left: 8px; }

/* the workload: a week a row; the pace's marks meet, one line down its column */
.dcp .wl { display: grid; grid-template-columns: minmax(150px, 1.1fr) max-content minmax(70px, 1fr) max-content minmax(70px, 1fr);
  column-gap: 12px; row-gap: 0; align-items: stretch; margin-top: 8px; font-size: 13px; }
.dcp .wl .wlh { grid-column: span 2; color: var(--dc-muted); font-size: 12.5px; padding-bottom: 4px; align-self: end; min-width: 0; }
.dcp .wl .wln { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 5px 0; line-height: 1.3; }
.dcp .wl .wln b { font-weight: 600; }
.dcp .wl .wln.now b { font-weight: 750; color: var(--dc-accent); }
.dcp .wl .wln.past b { color: var(--dc-muted); font-weight: 500; }
.dcp .wl .evs { font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcp .wl .wlb { position: relative; display: flex; align-items: center; min-width: 0; }
.dcp .wl .pl { position: absolute; top: 4px; bottom: 4px; width: 0; border-left: 2px dashed var(--dc-accent); opacity: .7; }
/* each count stays with its own bar: a wider gap before the reviews' half (3.9.6, after the last check) */
.dcp .wl .wnew { margin-right: 18px; }  /* the new cards' half, apart from the reviews' */
.dcp .wl .wlw { text-align: right; min-width: 2.2em; }
.dcp .wlw { align-self: center; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--dc-ink); font-size: 12.5px; }
.dcp .wlw.warn { color: var(--dc-hours); font-weight: 600; }

/* the deck's parts */
.dcp .tby { margin: 6px 0 2px; }
.dcp .tparts { display: grid; grid-template-columns: minmax(110px, 190px) minmax(80px, 1fr) max-content; gap: 6px 12px; align-items: center;
  max-width: 760px; margin: 4px 0 6px; font-size: 13px; }
.dcp .tpn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcp .tpb { min-width: 0; }

/* what's in it: a row each, a click shows it on the Plan tab */
.dcp .trow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 5px 8px;
  margin: 0 -8px; border-radius: 9px; cursor: pointer; font-size: 13.5px; }
.dcp .trow:hover, .dcp .trow:focus { background: var(--dc-bg); outline: none; }
.dcp .trow .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcp .trow.ev .nm { font-weight: 700; }

/* Settings: a label and its controls a row */
.dcp .tset { max-width: 880px; }
.dcp .fr { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 5px 0; }
.dcp .fr.top { align-items: start; }
.dcp .fr.top > .lb { padding-top: 5px; }
.dcp .fr > .lb { color: var(--dc-muted); font-size: 13px; }
.dcp .fr > .ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; font-size: 13.5px; }
.dcp .fr > .ctl > .in:not(.num):not(select):not(.date) { flex: 1 1 220px; min-width: 0; }
.dcp .fr > .ctl > select.in { max-width: 100%; }
.dcp .fr .code { font-size: 15px; letter-spacing: .04em; user-select: text; -webkit-user-select: text; }
.dcp .in.num { width: 84px; }
.dcp .unit { display: inline-flex; gap: 6px; align-items: center; }
.dcp .tdays { display: inline-flex; gap: 4px; }
.dcp .tdays button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--dc-line); background: var(--dc-bg); color: var(--dc-muted);
  font-weight: 650; cursor: pointer; padding: 0; }
.dcp .tdays button.on { background: var(--dc-accent); border-color: var(--dc-accent); color: var(--dc-accent-ink); }
.dcp .tdays button:disabled { opacity: .45; cursor: default; }
.dcp .seg button:disabled { opacity: .45; cursor: default; }
.dcp .tprev { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; width: 100%; padding: 8px 10px; border-radius: 10px; background: var(--dc-you-bg); }
.dcp .tprev.bad { background: var(--dc-bg); box-shadow: inset 0 0 0 1.5px var(--dc-hours); }
.dcp .tradio, .dcp .tstack { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; width: 100%; }
.dcp .tradio label, .dcp .tcheck { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.dcp .tradio input, .dcp .tcheck input { accent-color: var(--dc-accent); margin: 0; }
.dcp .tco { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.dcp .tlist { display: flex; flex-direction: column; background: var(--dc-bg); border-radius: 10px; padding: 2px 10px; max-width: 620px; }
.dcp .tli { display: flex; gap: 10px; align-items: center; padding: 5px 0; min-width: 0; width: 100%; }
.dcp .tlist .tli + .tli { border-top: 1px solid var(--dc-line); }
.dcp .tli > .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcp .tli b { font-weight: 650; white-space: nowrap; }
.dcp .tstack > .tli { max-width: 420px; padding: 2px 0; }
.dcp .tacts { margin-top: 10px; }

/* a menu's longest line here (More › When I'm ready, the next opens…) whole */
.dcp .menu { max-width: min(480px, calc(100vw - 16px)); }

/* sheets of their own: Posts, History, a pick */
.dcp .tsheet { background: var(--dc-well); max-width: none; max-height: 46vh; overflow: auto; margin: 4px 0 0; }
.dcp .tpick { display: flex; flex-direction: column; max-height: 50vh; overflow: auto; }

@media (max-width: 1100px) { .dcp .tb.tins { grid-template-columns: minmax(0, 1fr); max-width: 980px; } }
@media (max-width: 760px) {
  .dcp .fr { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dcp .fr.top > .lb { padding-top: 0; }
  .dcp .wl { grid-template-columns: minmax(110px, 1fr) max-content minmax(50px, .8fr) max-content minmax(50px, .8fr); column-gap: 8px; }
}
