/* Context (the pages of what Signal knows), the lead's setting, and the lead's verdict where work is
   reviewed. Loaded after app.css and holds only what that file's classes can't already do. */

/* ---------- tabs that are links: the two tabs of Notes, a project's tabs ---------- */
a.tab { display: inline-flex; align-items: center; gap: 6px; }
.tab .n { color: var(--mut); font-weight: 450; font-variant-numeric: tabular-nums; }
/* A project's tabs sit in its head. When the head runs out of room they take a row of their own. */
.ptabs { display: flex; gap: 6px; flex: none; min-width: 0; }
@media (max-width: 1080px) {
  .head:has(> .ptabs) { height: auto; flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .head:has(> .ptabs) > .crumb { flex: 1 1 0; min-height: 28px; }          /* the name gives way before the buttons wrap */
  .head:has(> .ptabs) > .grow { display: none; }
  .ptabs { order: 9; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 560px) { .head:has(> .ptabs) > .crumb > a, .head:has(> .ptabs) > .crumb > .sep { display: none; } }

/* ---------- the list ---------- */
.page.ctx { gap: 14px; }
.page.ctx > .sec + .sec { margin-top: 10px; }
.ctx-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.ctx-filter .pill { background: none; color: var(--mut); }
.ctx-filter .pill:hover { background: var(--hover); color: var(--fg); }
.ctx-filter .pill.on { background: var(--active); color: var(--fg); }
.ctx-filter .pill .n { color: var(--mut); font-weight: 450; font-variant-numeric: tabular-nums; }
.ctx-filter .pill svg.i:last-child { width: 12px; height: 12px; }
.ctx-filter .pill.by { margin-left: auto; color: var(--fg); }
.ctx-filter .pill.by.unset { color: var(--mut); }
.ctx-list { container-type: inline-size; }
.ctx-row .acts { min-width: 0; }
.ctx-row .pin { display: grid; }
.ctx-row .when { font-size: 12px; min-width: 56px; text-align: right; }
.tg { height: 20px; padding: 0 7px; border-radius: 6px; background: var(--pill); color: var(--fg-2); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 640px) {
  .ctx-row { flex-wrap: wrap; row-gap: 6px; }
  .ctx-row .acts { flex: 1 1 100%; flex-wrap: wrap; padding-left: 26px; }
  .ctx-row .when { margin-left: auto; }
}

/* ---------- the tags on a page, under its title ---------- */
/* On a phone the head says where the page lives; its title is the heading right below. */
@media (max-width: 560px) { .note-head .crumb > b, .note-head .crumb > .sep:last-of-type { display: none; } }
.ctx-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.ctx-tags .tg { height: 24px; padding: 0 3px 0 9px; font-size: 12.5px; max-width: 100%; overflow: visible; }
.ctx-tags .tg button { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: var(--mut); flex: none; }
.ctx-tags .tg button:hover { background: var(--active); color: var(--fg); }
.ctx-tags .tg svg.i { width: 12px; height: 12px; }
.ctx-tags .tg.add { padding: 0 9px 0 6px; background: none; border: 1px dashed var(--line-2); color: var(--mut); }
.ctx-tags .tg.add:hover { background: var(--hover); color: var(--fg); }
.ctx-tags .mut { font-size: 12px; }

/* ---------- import ---------- */
.modal.imp { width: min(620px, calc(100vw - 24px)); }
.modal.imp.over { border-color: color-mix(in srgb, var(--accent) 60%, var(--pop-line)); }
.imp-in { display: flex; flex-direction: column; min-height: 0; }
.imp .modal-b { flex: 1 1 auto; min-height: 0; gap: 10px; padding-top: 8px; padding-bottom: 6px; }
.imp .modal-b .d { height: 104px; min-height: 104px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--pop-line); border-radius: 8px; background: var(--panel-2); font-size: 13.5px; }
.imp .modal-b .d:focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--pop-line)); }
.imp-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.imp-add .mut, .imp-note { font-size: 12.5px; }
.imp-note { color: var(--fg-2); }
.imp-list { flex: none; max-height: 30vh; overflow-y: auto; background: none; }
.imp-list .prow { min-height: 42px; padding: 6px 6px 6px 12px; }
.imp .modal-p { align-items: center; padding-top: 10px; }
.imp .modal-p .mut { font-size: 12.5px; margin-right: 2px; }
.imp .modal-p .pill:disabled { opacity: .5; cursor: default; }
.imp .modal-f [role="status"] { color: var(--fg-2); }

/* ---------- Settings › Lead: pick one ---------- */
.lead-row { width: 100%; text-align: left; flex-wrap: wrap; cursor: default; }
button.lead-row:hover { background: var(--hover); }
.lead-row .radio { width: 14px; height: 14px; margin: 0 1px; border-radius: 50%; border: 1.5px solid var(--dim); display: grid; place-items: center; flex: none; }
.lead-row.on .radio { border-color: var(--fg); }
.lead-row.on .radio::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.lead-row .two { flex: 1 1 200px; }
.lead-row .acts { margin-left: auto; }
.lead-row .in-use { display: inline-flex; align-items: center; gap: 5px; color: var(--fg-2); font-weight: 510; font-size: 12.5px; }
.lead-row.off .radio { border-style: dashed; }
.lead-row.off .two b { color: var(--mut); }
.lead-row.off a { color: var(--mut); font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.lead-row.off a:hover { color: var(--fg); }
@media (max-width: 560px) { .lead-row .acts { flex-basis: 100%; margin-left: 0; padding-left: 26px; } }

/* ---------- the lead's verdict and its plan, on an item ---------- */
.verdict .sum { color: var(--fg-2); }
.verdict.found { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.verdict ul, .why .plan ul { margin: 2px 0; padding-left: 18px; display: grid; gap: 2px; color: var(--fg-2); }
.why .plan { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.why .plan > span { color: var(--fg-2); font-weight: 510; }
.lead-chip { gap: 5px; flex: none; }
.lead-chip svg.i { width: 12px; height: 12px; }
.vmark svg.i, .lead-row .in-use svg.i { width: 14px; height: 14px; }
.lead-chip .need { margin: 0 1px; }
.cmt.job .who { flex-wrap: wrap; row-gap: 4px; }
.cmt.job .who .tail { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.vmark { width: 14px; height: 14px; display: inline-grid; place-items: center; flex: none; }

/* A row of choices where exactly one is on (the lead's effort). */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 9px; background: var(--pill); width: fit-content; max-width: 100%; }
.seg-b { height: 28px; padding: 0 13px; border-radius: 7px; color: var(--mut); font-weight: 510; font-size: 12.5px; white-space: nowrap; }
.seg-b:hover { color: var(--fg); } .seg-b.on { background: var(--panel); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2); }
