/* Стили «Проекты». Владелец — по карте слотов 00-plan §4; цвета только из theme.css. */

.pj { display: flex; flex-direction: column; gap: 20px; }
/* The way back to the list sits close over the head, as on the page of a meeting. */
.pj-back { align-self: flex-start; margin-bottom: -12px; }
.pj-head { align-items: flex-start; }
.pj-sub, .pj-desc { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--muted-foreground); }
.pj-desc { color: var(--body); }
.pj-filter { max-width: 360px; }
.pj-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; background: var(--secondary); color: var(--body); display: inline-flex; align-items: center; justify-content: center; }
.pj-ic .w-i { width: 18px; height: 18px; }
.pj-tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 10px; background: var(--secondary); font-size: 12px; line-height: 20px; color: var(--body); }
.pj-tag .w-i { width: 12px; height: 12px; }
.pj-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pj-confirm span { flex: 1 1 260px; }
.pj-panel { display: flex; flex-direction: column; gap: 24px; }
.pj-group { display: flex; flex-direction: column; gap: 8px; }
.pj-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Two facts of the head, never a verdict. */
.pj-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; font-size: 13px; line-height: 20px; color: var(--body); }

/* Discussions by date: a column one reads, each a line with its first items, the rest folded. */
.pj-talks { display: flex; flex-direction: column; max-width: 720px; }
.pj-talk { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.pj-talk:first-child { padding-top: 0; }
.pj-talk:last-child { border-bottom: 0; }
.pj-talk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; line-height: 22px; }
.pj-talk-date { min-width: 88px; color: var(--muted-foreground); }
.pj-talk-title { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.pj-talk-title a { color: inherit; }
.pj-items { margin: 0; padding-left: 18px; font-size: 13px; line-height: 20px; color: var(--body); }
.pj-items li { overflow-wrap: anywhere; }
.pj-items li + li { margin-top: 2px; }
.pj-items-more > summary { display: inline-flex; align-items: center; min-height: 28px; margin-left: 18px; list-style: none; cursor: pointer; }
.pj-items-more > summary::-webkit-details-marker { display: none; }
.pj-items-more[open] > summary > span { display: none; }
.pj-items-more[open] > summary::after { content: "Свернуть"; }
.pj-all { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.pj-hidden { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.pj-hidden .w-i { width: 14px; height: 14px; }
.pj-asked { margin: 0; padding-left: 18px; font-size: 13px; line-height: 20px; color: var(--body); }
.pj-visibility { margin: 0; font-size: 14px; line-height: 22px; color: var(--foreground); }
.pj-rules { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 20px; color: var(--body); }
.pj-rules li + li { margin-top: 4px; }

/* The sheets: a new project, people to add, the name and the deadline. */
.pj-name { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.pj-similar { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--secondary); font-size: 13px; line-height: 20px; color: var(--body); }
.pj-similar b { font-weight: 500; color: var(--foreground); }
.pj-similar ul { margin: 4px 0 0; padding-left: 18px; }
.pj-due { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.pj-due-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-due-row .w-input { flex: 1 1 160px; }
.pj-count { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.pj-count b { font-weight: 500; color: var(--foreground); }
.pj-foot-note { margin-right: auto; align-self: center; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }

/* The answer of an organizer. */
.pj-consent-note { margin: 0; font-size: 14px; line-height: 22px; color: var(--body); }
.pj-consent-list { display: flex; flex-direction: column; gap: 4px; }
.pj-consent-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.pj-consent-row input { margin-top: 4px; }
.pj-consent-copy { display: flex; flex-direction: column; font-size: 14px; line-height: 22px; }
.pj-consent-copy b { font-weight: 500; }
.pj-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* The block «Проекты» of a meeting. */
.pj-meeting { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.pj-links, .pj-proposals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pj-link-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; line-height: 22px; }
.pj-proposal { padding: 10px 12px; border-radius: 12px; background: var(--secondary); }
.pj-proposal p { margin: 0 0 4px; font-size: 14px; line-height: 22px; color: var(--foreground); }
.pj-proposal-acts { display: flex; gap: 8px; margin-top: 8px; }
.pj-assign { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.pj-choose { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.pj-choose-row { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 22px; cursor: pointer; }
.pj-choose-row input { margin-top: 4px; }
.pj-assign-find { display: flex; flex-direction: column; gap: 6px; }
.pj-found-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-found { padding: 2px 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--background); font: inherit; font-size: 13px; line-height: 22px; color: var(--foreground); cursor: pointer; }
.pj-found:hover { border-color: var(--border-strong); }
.pj-hint { margin: 0; font-size: 13px; }
.pj-conflict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pj-conflict span { flex: 1 1 260px; }
.pj-assign-acts { display: flex; justify-content: flex-end; }

@media (max-width: 720px) {
  /* Five tabs with their numbers fit a phone closer together; the rest scrolls sideways. */
  .pj-tabs .w-tab { margin-right: 16px; }
  .pj-foot-note { display: none; }
  .pj-filter { max-width: none; }
  .pj-talk-date { min-width: 0; }
}

/* The filter of the tasks of a project and their acceptance (WP39): only the tasks, no number about a person. */
.pj-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pj-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; font-size: 13px; color: var(--body); text-decoration: none; transition: background-color .12s; }
.pj-chip:hover, .pj-chip[aria-expanded="true"] { background: var(--secondary); }
.pj-chip[aria-checked="true"], .pj-chip.is-on { background: var(--accent-soft); color: var(--accent-ink); }
.pj-chip .w-i { width: 14px; height: 14px; }
