/* Objectifs / priorités d'un espace de travail (web/objectives.js) et leur pastille sur les cartes. */
.obj-page { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; overflow-y: auto; height: calc(100vh - var(--header-h)); }
.obj-intro { display: flex; align-items: flex-end; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.obj-intro h2 { margin: 0 0 4px; font-size: 20px; }
.obj-intro p { margin: 0; max-width: 680px; }
.obj-hide { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.obj-hide input { width: auto; }
.obj-list-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.obj-row { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--obj); border-radius: var(--radius); }
.obj-row.dragging { opacity: .45; }
.obj-row.is-done .obj-name { color: var(--muted); text-decoration: line-through; }
.obj-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
.obj-grip { cursor: grab; color: var(--muted); font-size: 16px; user-select: none; }
.obj-rank { flex: none; min-width: 30px; text-align: center; font-weight: 700; font-size: 12px; line-height: 20px; border-radius: 10px; background: var(--obj, var(--surface-3)); color: #fff; padding: 0 6px; }
.obj-rank.sm { min-width: 26px; font-size: 11px; line-height: 18px; background: var(--surface-3); color: var(--subtle); }
.obj-toggle { width: 22px; color: var(--muted); font-size: 14px; }
.obj-title { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.obj-name { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.obj-status { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; line-height: 20px; padding: 0 8px; border-radius: 3px; white-space: nowrap; }
.obj-status[role=button] { cursor: pointer; }
.obj-status.st-todo { background: var(--surface-3); color: var(--subtle); }
.obj-status.st-doing { background: var(--tint-blue); color: var(--text-blue); }
.obj-status.st-done { background: var(--tint-green); color: var(--text-green); }
.obj-status.st-paused { background: var(--tint-yellow); color: var(--text-yellow); }
.obj-due { font-size: 12px; color: var(--subtle); white-space: nowrap; }
.obj-due.late { background: var(--tint-red); color: var(--text-red); padding: 0 6px; border-radius: 3px; }
.obj-progress { display: inline-flex; align-items: center; gap: 6px; color: var(--subtle); }
.obj-bar { width: 90px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.obj-bar i { display: block; height: 100%; background: var(--success); }
.obj-body { padding: 0 12px 12px 48px; }
.obj-desc { margin: 0 0 8px; color: var(--subtle); white-space: pre-wrap; }
.obj-empty { margin: 0; }
.obj-cards { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.obj-card { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--text); border-top: 1px solid var(--line); min-width: 0; }
.obj-card:first-child { border-top: 0; }
.obj-card:hover { background: var(--hover); }
.obj-card .cnum { margin-right: 0; }
.obj-card .type-pill { margin-right: 0; }
.obj-check { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface-4); font-size: 10px; line-height: 12px; text-align: center; color: #fff; }
.obj-card.is-done .obj-check { background: var(--success); border-color: var(--success); }
.obj-card.is-done .obj-cname { color: var(--muted); text-decoration: line-through; }
.obj-cname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-board { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--subtle); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.obj-board .dg-dot { width: 10px; height: 10px; }
.obj-list { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--subtle); background: var(--surface-2); border-radius: 3px; padding: 0 6px; line-height: 18px; white-space: nowrap; }
.obj-noone { width: 24px; flex: none; }
.obj-add { display: flex; gap: 8px; margin-top: 12px; }
.obj-add input { flex: 1; }
.obj-none { margin: 8px 0; }
.obj-colors { display: flex; gap: 6px; flex-wrap: wrap; }
.obj-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; }
.obj-swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.obj-form-foot { display: flex; justify-content: space-between; margin-top: 14px; }
.pop textarea { resize: vertical; }

/* Pastille d'objectif : sur la tuile d'une carte et dans sa fiche. */
.obj-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; font-weight: 600; line-height: 18px; padding: 0 8px 0 6px; border-radius: 9px; background: color-mix(in srgb, var(--obj) 14%, var(--surface)); color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.obj-pill i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--obj); }
.obj-row-pill { margin-top: 4px; min-width: 0; }
.card .obj-row-pill .obj-pill { font-size: 11px; }
.obj-chip .obj-pill { background: transparent; padding: 0; }

@media (max-width: 640px) {
  .obj-body { padding-left: 12px; }
  .obj-board, .obj-list { display: none; }
  .obj-bar { width: 56px; }
}

/* Choix de l'objectif dans la fiche : le rang garde sa taille, le nom prend la place (en entier sur deux lignes au besoin). */
.pop .pick-list .pick > span.obj-rank.sm { flex: none; }
.pop .pick-list .pick > span.obj-pill { flex: 1 1 auto; background: transparent; padding: 0; white-space: normal; text-overflow: clip; }
