/* V8-50 — « Tes actions du jour » (Ma journée hors course). L'action reprend le dessin de la tâche de
   course (.race-task, app.css) ; ne vivent ici que le titre, la ligne de série et les messages repliés. */
.day-action-title { font-weight: 700; font-size: .9rem; line-height: 1.35; color: var(--brand-secondary); }
.day-action.is-done .day-action-title { color: var(--brand-muted); }
/* AJUST-100 (#2792) : la consigne garde ses retours à la ligne (un déroulé « 1. 2. 3. » se lit ligne par ligne) */
.day-action .rt-text { margin-top: .15rem; white-space: pre-line; }
/* AJUST-84 (#2621) : le bloc des actions d'une ligne — lien, bouton, badge — calé à droite du pied, comme un float-right ;
   sur un écran étroit le pied (flex-wrap) le fait passer à la ligne, toujours à droite. */
.day-action .rt-foot .rt-actions { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: .45rem; flex-wrap: wrap; }

/* V8-102 — l'action posée par la responsable de réseau : sa signature, puis son mot. */
.day-action-by { margin-top: .15rem; font-size: .75rem; font-weight: 700; color: var(--brand-accent-deep); }
.day-action-note { font-size: .8rem; font-style: italic; line-height: 1.5; color: var(--brand-secondary); }

/* AJUST-52 — une respiration entre la ligne du titre et le profil. */
.day-profile { margin-top: .75rem; }

/* AJUST-52 — la semaine en cours, en lecture, repliée sous les actions du jour. */
.day-week { margin-top: .9rem; padding-top: .6rem; border-top: 1px solid var(--brand-border); }
.day-week summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--brand-accent-deep); padding: .25rem 0; }
.day-week-intro { margin: .35rem 0 .25rem; font-size: .85rem; font-style: italic; color: var(--brand-secondary); }
.day-week-days { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.day-week-day { padding: .55rem .75rem; border-radius: var(--brand-radius); background: var(--brand-surface-soft); font-size: .85rem; line-height: 1.55; }
.day-week-day.is-today { outline: 2px solid var(--brand-accent); outline-offset: -2px; }
.day-week-label { font-weight: 700; color: var(--brand-secondary); }
.day-week-theme { color: var(--brand-muted); }
.day-week-items { list-style: none; margin: .25rem 0 0; padding: 0; }
.day-week-item { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; padding: .15rem 0; }
.day-week-item.is-done { color: var(--brand-muted); }
.day-week-check { margin-left: auto; }
.day-week-emoji { display: inline-block; width: 1.4em; }
.day-week-empty { color: var(--brand-muted); font-style: italic; }
.day-week-note { margin: .6rem 0 0; font-size: .8rem; color: var(--brand-muted); }

/* AJUST-76 — « Hier : 2 gestes pas cochés — Les noter → » : la veille se rattrape, on le dit sous les points. */
.day-yesterday { margin-top: .6rem; font-size: .85rem; font-weight: 700; color: var(--brand-accent-deep); }
.day-yesterday a { color: inherit; }

/* AJUST-54 — le geste « à écrire » : le champ sous le geste, puis le texte enregistré ; la page « Mes notes ». */
.day-write { display: flex; flex-direction: column; gap: .4rem; width: 100%; margin-top: .5rem; }
.day-write .btn { align-self: flex-end; }
.day-write-text { width: 100%; margin-top: .35rem; padding: .5rem .75rem; border-left: 3px solid var(--brand-accent); border-radius: var(--brand-radius); background: var(--brand-surface-soft); font-size: .85rem; line-height: 1.55; white-space: pre-line; color: var(--brand-secondary); }
/* AJUST-125 (RM-563) : la preuve jointe à un geste — une vignette pour une photo, un lien pour un PDF. */
.day-proof { margin-top: .35rem; }
.day-proof-thumb { display: inline-block; }
.day-proof-thumb img { display: block; max-width: 9rem; max-height: 9rem; border-radius: var(--brand-radius); border: 1px solid var(--bs-border-color); object-fit: cover; }
.day-proof-file { font-size: .85rem; }
.day-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.day-note-head { font-size: .8rem; color: var(--brand-muted); }
.day-note-title { font-weight: 700; color: var(--brand-secondary); }
.day-note-text { margin-top: .25rem; white-space: pre-line; line-height: 1.6; }
/* AJUST-131 : une note libre — sa pastille « note » et son ⋯ (Modifier / Retirer) à droite de l'en-tête. */
.day-note-head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.day-note-kind { font-size: .7rem; }
.day-note-menu { margin-left: auto; padding: 0 .35rem; line-height: 1; font-size: 1.1rem; text-decoration: none; color: var(--brand-muted); }

/* AJUST-57 — « Mes points » : le total, puis l'historique groupé par jour ; une décoche en négatif, une attente en sourdine. */
.day-points-link { margin-left: .5rem; font-weight: 700; color: var(--brand-accent-deep); white-space: nowrap; }
.day-points-total-value { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--brand-secondary); }
.day-points-total-value span { font-size: 1rem; font-weight: 400; color: var(--brand-muted); }
.day-points-pending { margin-top: .5rem; font-size: .85rem; color: var(--brand-accent-deep); }
.day-points-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.day-points-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--brand-border); }
.day-points-date { font-weight: 700; color: var(--brand-secondary); }
.day-points-sum { font-weight: 700; color: var(--brand-accent-deep); white-space: nowrap; }
.day-points-sum.is-negative { color: var(--brand-muted); }
.day-points-lines { list-style: none; margin: .25rem 0 0; padding: 0; }
.day-points-line { display: flex; align-items: baseline; gap: .5rem; padding: .4rem 0; font-size: .9rem; line-height: 1.5; }
.day-points-line + .day-points-line { border-top: 1px dashed var(--brand-border); }
.day-points-emoji { flex: 0 0 1.5em; }
.day-points-label { flex: 1 1 auto; min-width: 0; }
.day-points-detail { color: var(--brand-muted); }
.day-points-amount { flex: 0 0 auto; font-weight: 700; color: var(--brand-accent-deep); white-space: nowrap; }
.day-points-line.is-negative .day-points-amount { color: var(--brand-muted); }
.day-points-line.is-negative .day-points-label { color: var(--brand-muted); }
.day-points-line.is-pending .day-points-amount { color: var(--brand-muted); }

.day-streak { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin: .6rem 0 .25rem; padding: .55rem .75rem; border-radius: var(--brand-radius); background: var(--brand-surface-soft); font-size: .85rem; line-height: 1.6; }

.day-action-messages { margin-top: .5rem; }
.day-action-messages summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--brand-accent-deep); padding: .25rem 0; }
.day-action-messages .script-card { margin-top: .45rem; }
.day-action-messages .script-card b { display: block; margin-bottom: .15rem; }
.day-action-message { white-space: pre-line; }
/* AJUST-118 (#2966, RM-561) : sous un geste pas fait d'un jour passé de « Ta semaine », la consigne, le mot de la
   responsable et les messages prêts à copier — chacun sur toute la largeur, sous le titre et son bouton. */
.day-week-item > .day-week-hint,
.day-week-item > .day-action-note,
.day-week-item > .day-action-messages { flex-basis: 100%; }
.day-week-hint { font-size: .8rem; line-height: 1.5; color: var(--brand-muted); }
.day-week-item > .day-action-messages { margin-top: .1rem; }
