/* My projects and Find projects (S1): only .kp-* classes; layout, chips and views come from s1-kit.css. Hue = status only. */
.kp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: calc(10px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); }
.kp-search { position: relative; display: inline-flex; align-items: center; flex: 0 1 260px; min-width: 180px; }
.kp-search .k-icon { position: absolute; left: 11px; color: var(--s1-mute); pointer-events: none; }
.kp-search input { width: 100%; height: 34px; padding: 0 calc(12px * var(--s1-scale, 1)) 0 32px; border: 1px solid var(--s1-control-line); border-radius: 10px; background: var(--s1-panel); font: inherit; font-size: var(--s1-fs-3); color: var(--s1-ink); }
.kp-body { padding: calc(16px * var(--s1-scale, 1)); min-width: 0; }
.kp-note { display: flex; gap: calc(6px * var(--s1-scale, 1)); align-items: flex-start; margin: 0; padding: calc(10px * var(--s1-scale, 1)) var(--s1-inset-x) calc(12px * var(--s1-scale, 1)); }
.kp-note .k-icon { flex: none; margin-top: 2px; }
.kp-link { color: var(--s1-ink); font-weight: 650; text-decoration: none; }
.kp-link:hover { text-decoration: underline; }
.kp-reason { display: flex; align-items: center; gap: calc(7px * var(--s1-scale, 1)); min-width: 0; padding: calc(6px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); border-radius: 9px; border: 1px solid color-mix(in srgb, var(--tone, var(--s1-mute)) 32%, var(--s1-panel)); background: color-mix(in srgb, var(--tone, var(--s1-mute)) 9%, var(--s1-panel)); color: var(--tone, var(--s1-ink-2)); font-size: var(--s1-text-small); font-weight: 600; text-decoration: none; }
.kp-reason > span { flex: 1; min-width: 0; }
.kp-reason.is-calm { background: var(--s1-panel); border-color: var(--s1-line); color: var(--s1-ink-2); font-weight: 500; }
.kp-reason:hover { filter: brightness(.96); }
.kp-reason-go { flex: none; opacity: .8; }
.kp-card, .kp-fcard { display: grid; gap: calc(12px * var(--s1-scale, 1)); align-content: start; padding: calc(16px * var(--s1-scale, 1)); background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: 12px; min-width: 0; }
.kp-card-top, .kp-fcard-top { display: flex; gap: calc(12px * var(--s1-scale, 1)); align-items: flex-start; }
.kp-card-title, .kp-fcard-title { display: block; margin-bottom: 6px; font-size: var(--s1-fs-4); font-weight: 700; line-height: 1.25; color: var(--s1-ink); text-decoration: none; overflow-wrap: break-word; }
.kp-card-title:hover, .kp-fcard-title:hover { text-decoration: underline; }
.kp-card-foot, .kp-fcard-foot { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); flex-wrap: wrap; }
.kp-start { display: flex; gap: calc(9px * var(--s1-scale, 1)); align-items: flex-start; padding: calc(9px * var(--s1-scale, 1)) calc(11px * var(--s1-scale, 1)); border-radius: 10px; background: var(--s1-column, #f5f6f8); font-size: var(--s1-text-small); line-height: 1.35; color: var(--s1-ink); }
.kp-start .k-icon { flex: none; margin-top: 1px; color: var(--s1-ink-2); }
.kp-start small { display: block; font-size: var(--s1-text-micro); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--s1-mute); }
.kp-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kp-lab { font-size: var(--s1-text-micro); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--s1-mute); }
.kp-skills { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s1-scale, 1)); }
.kp-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: calc(16px * var(--s1-scale, 1)); }
.kp-fcard-foot { margin-top: auto; padding-top: calc(12px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); justify-content: space-between; }
.kp-ftools { display: flex; flex-wrap: wrap; align-items: center; gap: calc(10px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); }
.kp-suggest { display: flex; flex-direction: column; margin-bottom: 4px; }
.kp-why { margin: 0; padding-left: calc(18px * var(--s1-scale, 1)); font-size: var(--s1-text-small); color: var(--s1-ink-soft, inherit); display: flex; flex-direction: column; gap: 4px; }
.kp-yours { display: flex; flex-wrap: wrap; align-items: center; gap: calc(8px * var(--s1-scale, 1)); }
@media (max-width: 640px) {
  .kp-toolbar { padding: 12px; } .kp-search { flex: 1 1 100%; } .kp-body { padding: 12px; }
  .kp-fgrid { grid-template-columns: 1fr; }
}
.kp-view--table .k-table td.k-cell-first { min-width: 220px; }
/* Projects > Table has eight columns: tighter cells and headings that may wrap keep it inside a 1440px window, and when its own box is narrower than the columns need, the rows stack as cards (the kit's phone form) rather than scroll sideways. */
.kp-view--table { container: kptable / inline-size; }
.kp-view--table .k-table :is(th, td) { padding-inline: 8px; }
.kp-view--table .k-table th { white-space: normal; }
@container kptable (max-width: 1250px) { .kp-view--table .k-table td.k-cell-first { min-width: 170px; } }
@container kptable (max-width: 980px) {
  .k-table thead { display: none; }
  .k-table, .k-table tbody, .k-table tr, .k-table td { display: block; width: 100%; }
  .k-table tr { padding: 10px 14px; border-bottom: 1px solid var(--s1-line-soft); }
  .k-table td { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
  .k-table td::before { content: attr(data-label); margin-right: auto; font: 700 var(--s1-text-micro) var(--k-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--s1-mute); text-align: left; }
  .k-table td.k-cell-first { display: block; text-align: left; } .k-table td.k-cell-first::before { content: none; }
  .k-table td .k-cell-title { max-width: none; white-space: normal; }
  .kp-view--table .k-table :is(th, td) { padding-inline: 0; }
  .kp-view--table .k-table td.k-cell-first { min-width: 0; }
  .kp-view--table .kp-reason { max-width: none; }
}
.kp-view--table .kp-reason { max-width: 190px; }
.kp-view--timeline .k-g-lane2 { display: none !important; }
@media (max-width: 640px) { .k-panel-head { flex-wrap: wrap; } .k-panel-tools { max-width: 100%; overflow-x: auto; } .kp-view--table .kp-reason { max-width: none; } }
.kp-area .k-dd-btn { height: 34px; padding: 0 28px 0 calc(12px * var(--s1-scale, 1)); border: 1px solid var(--s1-control-line); border-radius: 10px; background: var(--s1-panel); font: inherit; font-size: var(--s1-fs-3); color: var(--s1-ink); }

/* Board: columns scroll inside the panel with a visible bar and edge fades; names wrap whole words; nothing is clipped. */
.kp-view--board { position: relative; min-width: 0; }
.kp-view--board .k-kanban { grid-auto-columns: 260px; justify-content: start; overscroll-behavior-x: contain; scroll-padding-inline: 2px; padding-bottom: calc(14px * var(--s1-scale, 1)); scrollbar-width: thin; scrollbar-color: #9aa1ae #e8ebf0; }
.kp-view--board .k-kanban::-webkit-scrollbar { height: 10px; }
.kp-view--board .k-kanban::-webkit-scrollbar-track { background: var(--s1-track); border-radius: 6px; }
.kp-view--board .k-kanban::-webkit-scrollbar-thumb { background: var(--s1-mute); border-radius: 6px; border: 2px solid #e8ebf0; }
.kp-view--board::before, .kp-view--board::after { content: ""; position: absolute; top: 0; bottom: 14px; width: 36px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity var(--s1-dur-2) var(--s1-ease); }
.kp-view--board::before { left: 0; background: linear-gradient(to right, rgb(17 19 24 / .16), transparent); }
.kp-view--board::after { right: 0; background: linear-gradient(to left, rgb(17 19 24 / .16), transparent); }
.kp-view--board.has-left::before, .kp-view--board.has-right::after { opacity: 1; }
.kp-view--board .k-kcol-head { white-space: normal; overflow-wrap: break-word; }
.kp-view--board .k-kcard-title { display: block; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.kp-reason > span { white-space: normal; overflow-wrap: break-word; line-height: 1.3; }
.kp-view--table .kp-reason { min-width: 150px; max-width: 240px; }
.kp-new { display: inline-flex; align-items: center; gap: 5px; padding: 2px calc(8px * var(--s1-scale, 1)) 2px calc(7px * var(--s1-scale, 1)); border-radius: 999px; border: 1px solid var(--s1-line); background: var(--s1-panel); color: var(--s1-ink); font-size: var(--s1-text-micro); font-weight: 650; white-space: nowrap; }
.kp-new i { width: 7px; height: 7px; border-radius: 50%; background: var(--s1-ink); }
.kp-linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 650; color: var(--s1-ink); text-decoration: underline; cursor: pointer; }
/* Filters: a popover on desktop, a bottom sheet on phones. Ink + neutral; hue only on status counts. */
.kp-fwrap { position: relative; display: inline-flex; }
.kp-fbtn { height: 34px; padding: 0 calc(12px * var(--s1-scale, 1)); }
.kp-fbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 calc(6px * var(--s1-scale, 1)); border-radius: 999px; background: var(--s1-ink); color: var(--s1-on-ink); font: 650 var(--s1-text-micro)/1 var(--s1-font-ui); font-variant-numeric: tabular-nums; }
.kp-fpop { position: fixed; inset: auto; margin: 0; left: 16px; top: 120px; padding: 0; overflow: hidden; color: var(--s1-ink); }
.kp-fpop:popover-open, .kp-fpop:not([popover]) { display: flex; }
.kp-fpop { z-index: 60; flex-direction: column; width: min(420px, calc(100vw - 32px)); max-height: min(560px, 70vh); background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: 12px; box-shadow: var(--k-shadow-pop); }
.kp-fhead { display: flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); padding: calc(10px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); }
.kp-fhead b { font: 700 var(--s1-fs-4) var(--s1-font-display); }
.kp-fx { display: none; }
.kp-fbody { overflow: auto; padding: 4px calc(16px * var(--s1-scale, 1)) calc(8px * var(--s1-scale, 1)); overscroll-behavior: contain; }
.kp-ffoot { display: none; padding: calc(12px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); }
.kp-ffoot .k-btn { width: 100%; }
.kp-fgrp { margin: 0; padding: calc(12px * var(--s1-scale, 1)) 0; border: 0; border-bottom: 1px solid var(--s1-line-soft); min-width: 0; }
.kp-fgrp:last-child { border-bottom: 0; }
.kp-fgrp legend { padding: 0; margin-bottom: 8px; font: 650 var(--s1-text-micro) var(--s1-font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--s1-mute); }
.kp-fsel { display: inline-block; margin-left: 4px; min-width: 16px; padding: 0 5px; border-radius: 999px; background: var(--s1-ink); color: var(--s1-on-ink); font-size: var(--s1-fs-1); line-height: 16px; text-align: center; letter-spacing: 0; }
.kp-fopts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px calc(12px * var(--s1-scale, 1)); }
.kp-fopt { display: flex; align-items: center; gap: calc(9px * var(--s1-scale, 1)); min-height: 36px; padding: 4px calc(6px * var(--s1-scale, 1)); border-radius: 8px; cursor: pointer; font-size: var(--s1-fs-3); color: var(--s1-ink); min-width: 0; }
.kp-fopt:hover { background: var(--s1-column); }
.kp-fopt-l { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.kp-fopt.is-zero .kp-fopt-l { color: var(--s1-mute); }
.kp-fopt .k-count { flex: none; }
.kp-fsearch { position: relative; display: flex; align-items: center; margin-bottom: 6px; }
.kp-fsearch .k-icon { position: absolute; left: 10px; color: var(--s1-mute); pointer-events: none; }
.kp-fsearch input { width: 100%; height: 34px; padding: 0 calc(10px * var(--s1-scale, 1)) 0 calc(30px * var(--s1-scale, 1)); border: 1px solid var(--s1-control-line); border-radius: 9px; font: inherit; font-size: var(--s1-fs-3); color: var(--s1-ink); background: var(--s1-panel); }
.kp-fnone { grid-column: 1 / -1; margin: 4px 6px; }
.kp-active { display: flex; flex-wrap: wrap; align-items: center; gap: calc(8px * var(--s1-scale, 1)); padding: calc(10px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); background: var(--s1-panel-head); }
.kp-active[hidden] { display: none; }
.kp-achip { display: inline-flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); max-width: 100%; padding: 4px calc(8px * var(--s1-scale, 1)) 4px calc(11px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: 999px; background: var(--s1-panel); color: var(--s1-ink); font: 600 var(--s1-text-small) var(--s1-font-ui); cursor: pointer; }
.kp-achip:hover { border-color: var(--s1-ink); }
.kp-achip .k-icon { color: var(--s1-mute); flex: none; }
@media (max-width: 640px) {
  .kp-fwrap { flex: none; }
  .kp-fpop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: min(86vh, 86dvh); border-radius: 16px 16px 0 0; border-bottom: 0; animation: kp-sheet-in var(--s1-dur-2) var(--s1-ease); }
  .kp-fx { display: inline-grid; }
  .kp-ffoot { display: block; }
  .kp-fopts { grid-template-columns: minmax(0, 1fr); }
  .kp-fopt { min-height: 44px; }
  .kp-active { padding: 10px 12px; }
}
@media (max-width: 640px) { .kp-fpop::backdrop { background: rgba(17, 19, 24, .45); } }
@keyframes kp-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Study type chip on Board cards, Table and Cards */
.kp-typerow { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s1-scale, 1)); min-width: 0; }
.kp-notype { color: var(--s1-mute); border-style: dashed; text-decoration: none; }
a.kp-notype:hover { color: var(--s1-ink); border-color: var(--s1-ink); }

/* Triage: dense stage-grouped table; phone gets compact cards. Hue = health only. */
.kp-view--triage { padding: 0; }
.kt { display: grid; gap: calc(8px * var(--s1-scale, 1)); min-width: 0; }
.tg-tools { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); flex-wrap: wrap; }
.tg-msort { display: none; align-items: center; gap: calc(6px * var(--s1-scale, 1)); font-size: var(--s1-text-micro); color: var(--s1-mute); }
.tg-msort .k-dd-btn, .tg-bulk .k-dd-btn { height: 32px; padding: 0 24px 0 calc(10px * var(--s1-scale, 1)); border: 1px solid var(--s1-control-line); border-radius: 8px; background: var(--s1-panel); font: inherit; font-size: var(--s1-text-small); color: var(--s1-ink); max-width: 200px; }
.tg-bulk { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: calc(8px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); padding: calc(8px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); border: 1px solid var(--s1-ink); border-radius: 10px; background: var(--s1-panel); box-shadow: 0 4px 14px rgba(17, 19, 24, .08); }
.tg-bulk[hidden] { display: none; }
.tg-bulk-n { font-size: var(--s1-text-small); }
.tg-bulk-f { display: inline-flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); font-size: var(--s1-text-micro); color: var(--s1-mute); }
.tg-bulk-q { font-size: var(--s1-text-small); color: var(--s1-ink); flex: 1 1 240px; min-width: 0; }
.tg-scroll { overflow: clip; border: 1px solid var(--s1-line); border-radius: 12px; background: var(--s1-panel); }
.tg-table { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: var(--s1-text-small); }
.tg-w-sel { width: 36px; } .tg-w-lead { width: 124px; } .tg-w-team { width: 104px; } .tg-w-health { width: 132px; } .tg-w-last { width: 70px; } .tg-w-next { width: 84px; } .tg-w-tasks { width: 96px; } .tg-w-irb { width: 148px; } .tg-w-act { width: 44px; }
.tg-table thead th { position: sticky; top: var(--s1-tb-h, 52px); z-index: 3; padding: 0; background: var(--well); border-bottom: 1px solid var(--s1-line); text-align: left; font-size: var(--s1-text-micro); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--s1-mute); white-space: nowrap; }
.tg-table thead th.tg-c-sel { padding: 0 0 0 calc(12px * var(--s1-scale, 1)); }
.tg-sort { display: inline-flex; align-items: center; gap: 4px; width: 100%; height: 34px; padding: 0 calc(8px * var(--s1-scale, 1)); border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; text-align: left; }
.tg-sort:hover, th[aria-sort="ascending"] .tg-sort, th[aria-sort="descending"] .tg-sort { color: var(--s1-ink); }
.tg-table td { padding: calc(6px * var(--s1-scale, 1)) calc(8px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-table td.tg-c-sel { padding-left: calc(12px * var(--s1-scale, 1)); padding-right: 0; }
.tg-row:hover td { background: var(--well); }
.tg-row.is-sel td { background: color-mix(in srgb, var(--s1-ink) 5%, var(--s1-panel)); }
.tg-grouphead th { position: sticky; top: calc(var(--s1-tb-h, 52px) + 36px); z-index: 2; padding: 0; background: var(--well); border-bottom: 1px solid var(--s1-line); text-align: left; text-transform: none; letter-spacing: 0; }
.tg-gbtn { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); width: 100%; min-height: 34px; padding: 4px calc(12px * var(--s1-scale, 1)); border: 0; background: none; font: inherit; font-size: var(--s1-text-small); color: var(--s1-ink); cursor: pointer; text-align: left; }
.tg-gwhy { margin-left: 4px; font-size: var(--s1-text-micro); font-weight: 500; color: var(--s1-mute); }
.tg-proj { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); min-width: 0; }
.tg-table a.kp-link.tg-name { display: block; text-align: left; } /* the kit centres link text; a long title must start at its avatar */
/* A project title is the row's answer: it takes two lines before it is cut. */
.tg-table a.kp-link.tg-name, .tg-name { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.tg-health { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.tg-why { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--s1-text-micro); color: var(--s1-mute); }
.tg-sub { display: block; overflow: hidden; text-overflow: ellipsis; font-size: var(--s1-text-micro); color: var(--s1-mute); }
.tg-table td.tg-c-act { padding: 0 calc(6px * var(--s1-scale, 1)) 0 0; overflow: visible; text-align: right; }
.tg-more { padding: 5px; border-color: transparent; background: none; }
.tg-next.is-late { color: var(--s1-late, #b42318); font-weight: 650; } .tg-next.is-soon { font-weight: 650; }
.tg-irb { display: inline-flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tg-irb-s { overflow: hidden; text-overflow: ellipsis; }
/* Lead, Team and IRB are short facts: they wrap onto a second line instead of being cut ("Exempt, not verifie"). The full text is also the cell's title. */
.tg-table td:is(.tg-c-lead, .tg-c-team, .tg-c-irb) { white-space: normal; line-height: 1.25; overflow-wrap: break-word; }
.tg-c-irb .tg-irb-s { overflow: visible; } .tg-irb-d { font-size: var(--s1-text-micro); color: var(--s1-mute); }
.tg-irb.is-late .tg-irb-d { color: var(--s1-late, #b42318); font-weight: 650; }
.tg-cardlist { display: none; }
/* Narrow screens drop Activity, then IRB, to zero width instead of removing the column (the stage rows span all ten). */
@media (max-width: 1440px) { .tg-w-last { width: 0; } .tg-table :is(th, td).tg-c-last { padding: 0; border: 0; overflow: hidden; visibility: hidden; } }
@media (max-width: 1100px) { .tg-w-irb { width: 0; } .tg-table :is(th, td).tg-c-irb { padding: 0; border: 0; overflow: hidden; visibility: hidden; } }
@media (max-width: 900px) { .tg-scroll { overflow-x: auto; } } /* a narrow window scrolls the table sideways; the page still scrolls down */
@media (max-width: 640px) {
  .tg-scroll, .tg-table { display: none; }
  .tg-cardlist { display: grid; gap: 10px; }
  .tg-msort { display: inline-flex; }
  .tg-cardgroup { display: grid; gap: 8px; }
  .tg-cardgroup > .tg-gbtn { background: var(--well); border-radius: 10px; }
  .tg-cards { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .tg-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--s1-line); border-radius: 12px; background: var(--s1-panel); min-width: 0; }
  .tg-card.is-sel { border-color: var(--s1-ink); }
  .tg-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .tg-card-top .tg-name { flex: 1; white-space: normal; font-size: var(--s1-fs-4); }
  .tg-card-meta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; }
  .tg-card-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; font-size: var(--s1-text-small); }
  .tg-card-dl > div { min-width: 0; } .tg-card-dl dt { font-size: var(--s1-text-micro); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--s1-mute); } .tg-card-dl dd { margin: 0; overflow: hidden; text-overflow: ellipsis; }
  .tg-bulk { top: 56px; }
}

/* Find a project: non-member titles open a read-only preview; summary line on cards */
.kp-fcard-title--btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.kp-summary { margin: 0; font-size: var(--s1-text-small); line-height: 1.4; color: var(--s1-ink-2); overflow-wrap: break-word; }
.kp-summary--full { font-size: var(--s1-fs-3); color: var(--s1-ink); white-space: pre-line; }
.kp-preview { display: grid; gap: calc(14px * var(--s1-scale, 1)); }

/* Personal projects (s1-personal.js): board columns and cards. Neutral surfaces; color only where it means something. */
.kp-pstatus .k-select { height: 34px; min-width: 150px; }
.kp-pboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 340px); gap: calc(14px * var(--s1-scale, 1)); overflow-x: auto; padding-bottom: 4px; }
.kp-pcol { min-width: 0; display: flex; flex-direction: column; gap: calc(10px * var(--s1-scale, 1)); }
.kp-pcol > header { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); }
.kp-pcol h3 { margin: 0; font-size: var(--s1-text-small); font-weight: 650; color: var(--s1-ink); }
.kp-pcol-stack { display: flex; flex-direction: column; gap: calc(10px * var(--s1-scale, 1)); }
.kp-pcard { display: flex; flex-direction: column; gap: calc(8px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: 12px; background: var(--s1-panel); min-width: 0; }
.kp-pcard-title { color: var(--s1-ink); font-weight: 650; text-decoration: none; overflow-wrap: break-word; }
.kp-pcard-title:hover { text-decoration: underline; }
.kp-pcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: calc(8px * var(--s1-scale, 1)); font-size: var(--s1-text-small); }
.kp-pcard-next { margin: 0; font-size: var(--s1-text-small); color: var(--s1-ink); }
.kp-pcard-next span { color: var(--s1-mute); margin-right: 4px; }
.kp-pcard-foot { display: flex; }
@media (max-width: 640px) { .kp-pboard { grid-auto-columns: minmax(240px, 86%); } .kp-pstatus { flex: 1 1 100%; } .kp-pstatus .k-select { width: 100%; } }

/* "More views": the views not used every day sit under one control. */
.k-seg .kp-moreviews { position: relative; display: inline-flex; }
.kp-moreviews > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); min-height: 36px; padding: 0 calc(12px * var(--s1-scale, 1)); font-weight: 600; }
.kp-moreviews > summary::-webkit-details-marker { display: none; }
.kp-moreviews > summary[aria-pressed="true"] { background: var(--s1-ink); color: var(--s1-on-ink); border-radius: var(--s1-radius-control); }
.kp-moreviews-list { display: none; position: absolute; z-index: 6; right: 0; top: calc(100% + 4px); min-width: 170px; flex-direction: column; padding: 4px; background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: var(--s1-radius-control); box-shadow: 0 10px 28px rgba(17, 19, 24, .14); }
.kp-moreviews[open] > .kp-moreviews-list { display: flex; }
.kp-moreviews-list button { min-height: 44px; text-align: left; justify-content: flex-start; }
.kp-moreviews > summary { font-size: var(--s1-text-small); }
.tg-table thead th { font-size: var(--s1-fs-1); letter-spacing: .02em; }
@media (min-width: 641px) {
  .kp-moreviews > summary { display: none; }
  .kp-moreviews, .kp-moreviews-list, .kp-moreviews::details-content { display: contents; }
}

/* Phone: the toolbar is one row (search, Filter, Views); the status chips, the view switch and the board options fold under Views. Wide screens keep them inline. */
.kp-fold { display: contents; }
.kp-foldbtn { display: none; }
@media (max-width: 640px) {
  .kp-toolbar { flex-wrap: wrap; }
  .kp-toolbar .kp-search { flex: 1 1 0; min-width: 0; }
  .kp-foldbtn { display: inline-flex; flex: none; }
  .kp-fold { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 8px; }
  .kp-fold[data-folded] { display: none; }
  [data-s1-projects] .k-panel-head, [data-s1-projects] .tg-tools { display: none; }
}
/* Phone cards: the IRB state fits its third of the card and ends in an ellipsis instead of pushing the card past the edge. */
@media (max-width: 640px) { .tg-card-dl dd { min-width: 0; } .tg-card-dl .tg-irb, .tg-card-dl .k-pill { max-width: 100%; } .tg-card-dl .k-pill { overflow: hidden; } .tg-card-dl .tg-irb-s { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* Pattern 14: the stage row above the list; the likely-to-miss list is plain rows under a heading. */
.s1p .sec.kp-miss { margin: 4px 0 0; padding: 0; }
.s1p .kp-stages { margin: 6px 0 8px; }

/* r19: My projects for students and residents is plain rows. */
.kp-rows { padding: 0 calc(10px * var(--s1-scale, 1)); }
.kp-rows .t { font-size: var(--s1-fs-3); }
.kp-rows .kp-people { display: inline-flex; min-width: 0; }
@media (max-width: 640px) { .kp-rows .t { flex-basis: 100%; } }
.kp-rows .chip { white-space: normal; min-width: 0; flex: 0 1 auto; }
@media (max-width: 640px) { .kp-rows .chip { flex-basis: auto; max-width: 100%; } }
.kp-rows .t { flex: 1 1 45%; }
.kp-rows .chip { flex: 0 1 38%; }
.kp-rows .kp-people { flex: none; flex-wrap: nowrap; }
@media (max-width: 640px) { .kp-rows .t { flex-basis: 100%; } .kp-rows .chip { flex: 0 1 auto; } }
div.kp-rows > a > .t { flex: 1 1 45%; min-width: 14ch; }
div.kp-rows > a > .chip { flex: 0 1 38%; white-space: normal; }
div.kp-rows > a > .kp-people { flex: none; }
@media (max-width: 640px) { div.kp-rows > a > .t { flex-basis: 100%; } div.kp-rows > a > .chip { flex: 0 1 auto; } }

/* Find a project: a role label and its people wrap as one unit (no orphaned "LEAD"); on a phone the filters sit behind one Filter button so a project shows on the first screen. */
.kp-pg { display: inline-flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); min-width: 0; max-width: 100%; }
.kp-filter-btn { display: none; }
.kp-filterbox { display: contents; }
@media (max-width: 640px) {
  .kp-filter-btn { display: inline-flex; }
  .kp-filterbox { display: none; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  .kp-filterbox[data-open="true"] { display: flex; }
}

/* My projects rows (Table for students and residents): the title is the only thing a hover underlines; the status is a compact mark in its own column. */
div.kp-rows.kp-rows > a:hover .t { text-decoration: none; }
div.kp-rows.kp-rows > a:hover .t .kp-name { text-decoration: underline; text-underline-offset: 3px; }
div.kp-rows.kp-rows > a > .t { flex: 0 1 46%; }
div.kp-rows.kp-rows > a > .chip { flex: none; width: auto; max-width: 32%; margin-right: auto; }
div.kp-rows.kp-rows > a > .kp-people { margin-left: auto; }
@media (max-width: 640px) { div.kp-rows.kp-rows > a > .t { flex-basis: 100%; } div.kp-rows.kp-rows > a > .chip { max-width: 100%; margin-right: 0; } }

/* My projects Board: a card is white; what needs you is the small mark on it, never a tinted card. */
.kp-view--board .k-kcard { background: var(--s1-panel); }
.kp-view--board .kp-reason { width: fit-content; max-width: 100%; padding: 3px calc(10px * var(--s1-scale, 1)) 3px calc(8px * var(--s1-scale, 1)); border-radius: 999px; }
.kp-view--board .kp-reason .kp-reason-go { display: none; }
.kp-plain:has(.kp-view--board) .kp-stages { display: none; } /* the columns are the stages, with their own counts */

/* Find a project cards: long titles, school names and chips wrap inside the card instead of running past it. */
.kp-fgrid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.kp-fcard-top > .k-grow { min-width: 0; }
.kp-fcard-title { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.kp-fcard .k-pill { white-space: normal; overflow-wrap: anywhere; }
/* One line per cell: the full wording is on the project (title tooltip and the project page). */
.kp-view--table .kp-reason > span, .kp-miss .rows small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-view--table .kp-reason { min-width: 0; max-width: 220px; }
.kp-view--table td .kp-link, .kp-view--table td .kp-link + .k-xs { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-view--table td .k-trunc, .kp-view--table td .k-row-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.kp-miss .rows .t.wrap { min-width: 0; }
.kp-miss .rows a.rl { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
