/*
 * Labelling each other (src/web/labels-pages.ts, public/assets/labels.js): the composer's "Who's in it?", the lines on a
 * Frame, the note under theirs, three words, the witnesses' suggestions, "Were you together?", the Circle's day, the roll
 * call and the nudge that ends Today. Builds on v1.css (the sheet, the faces) and today.css. Public --pk-* tokens only;
 * one hover rule, inside the hover media; tap targets var(--pk-hit).
 */
.pk-who { display: grid; gap: 8px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--pk-surface); border: 1px solid var(--pk-border); }
.pk-who-title { margin: 0; font-weight: 700; }
.pk-who-hint { margin: 0; color: var(--pk-muted); font-size: 14px; }
.pk-who-faces { margin: 0; padding: 0; list-style: none; }
.pk-who-chosen, .pk-frames-chosen { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pk-who-chosen li, .pk-frames-chosen li { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; min-height: var(--pk-hit, 44px); border-radius: 999px; background: var(--pk-surface); border: 1px solid var(--pk-border); font-size: 14px; }
.pk-who-chosen li button, .pk-frames-chosen li button { min-width: var(--pk-hit, 44px); min-height: var(--pk-hit, 44px); border: 0; background: none; color: var(--pk-muted); font: inherit; font-size: 18px; cursor: pointer; }
.pk-who-line label, .pk-frames-line label { display: block; margin: 0 0 4px; font-size: 14px; color: var(--pk-muted); }
.pk-frames-witness { margin: 8px 0 0; }
.pk-frames-suggestion-list { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.pk-frames-suggestion-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pk-frames-suggestion-list li span { flex: 1 1 160px; }
.pk-frames-suggestion-list .fs-button { min-height: var(--pk-hit, 44px); }
.pk-engage-witness .pk-engage-word { font-style: italic; }

.pk-label-quote { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--pk-accent, #ff7a59); background: var(--pk-surface); border-radius: 0 14px 14px 0; }
.pk-label-quote q { quotes: "“" "”"; font-size: 18px; line-height: 1.4; }
.pk-label-quote small { display: block; margin-top: 6px; color: var(--pk-muted); }
.pk-label-note { display: grid; gap: 6px; margin: 16px 0 0; }
.pk-label-note-ask { font-weight: 700; }
.pk-label-note-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-label-note-row .pk-control { flex: 1 1 200px; min-height: var(--pk-hit, 44px); }
.pk-label-note-row .fs-button { min-height: var(--pk-hit, 44px); }

.pk-labels { margin: 0 0 16px; }
.pk-labels-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.pk-labels-head h2 { margin: 0; font-size: 17px; }
.pk-label-say { min-height: var(--pk-hit, 44px); }
.pk-label-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pk-label-item { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--pk-surface); border: 1px solid var(--pk-border); }
.pk-label-kicker { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--pk-muted); }
.pk-label-text { margin: 0; }
.pk-label-text q { quotes: "“" "”"; font-size: 17px; line-height: 1.4; }
.pk-label-text--small q { font-size: 14px; }
.pk-label-by { color: var(--pk-muted); font-size: 14px; }
.pk-label-by a { color: inherit; }
.pk-label-note-line { margin: 2px 0 0; font-size: 14px; }
.pk-label-note-line span { color: var(--pk-muted); }
.pk-label-note-line q { quotes: "“" "”"; }
.pk-label-under { display: grid; gap: 4px; margin: 6px 0 0; }
.pk-label-react { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.pk-label-react-word { min-height: var(--pk-hit, 44px); padding: 0 12px; border-radius: 999px; border: 1px solid var(--pk-border); background: var(--pk-surface); color: var(--pk-ink); font: inherit; font-size: 14px; cursor: pointer; }
.pk-label-react-word[aria-pressed="true"] { outline: 2px solid var(--pk-accent, #ff7a59); outline-offset: -2px; }
.pk-label-words { margin: 4px 0 0; color: var(--pk-muted); font-size: 14px; }
.pk-label-word-group { display: inline-block; margin-right: 10px; }
.pk-label-word-group strong { color: var(--pk-ink); }
.pk-label-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pk-label-tool { display: inline-flex; align-items: center; min-height: var(--pk-hit, 44px); padding: 0 8px; border: 0; background: none; color: var(--pk-muted); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }

.pk-label-asks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pk-label-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--pk-surface); border: 1px solid var(--pk-border); }
.pk-label-ask svg, .pk-label-ask img { width: 44px; height: 44px; flex: none; }
.pk-label-ask-words { flex: 1 1 160px; display: grid; gap: 2px; }
.pk-label-ask-words small { color: var(--pk-muted); }
.pk-label-ask .pk-plan-answers { display: flex; gap: 6px; margin: 0; }
.pk-label-ask .pk-plan-answers .fs-button { min-height: var(--pk-hit, 44px); }
.pk-label-yearly { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }
.pk-label-yearly .pk-label-note-row { flex: 1 1 100%; margin: 0; }
.pk-label-yearly [role="status"] { flex: 1 1 100%; margin: 0; }

.pk-label-nudge { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--pk-surface); border: 1px solid var(--pk-border); }
.pk-label-nudge svg, .pk-label-nudge img { width: 56px; height: 56px; flex: none; }
.pk-label-nudge-words { display: grid; gap: 6px; }
.pk-label-nudge-words p { margin: 0; }
.pk-label-nudge-words .pk-v1-actions { margin: 0; }

.pk-message-roll { margin: 12px 0 0; }
.pk-roll-list { display: grid; gap: 8px; margin: 8px 0; padding: 0; list-style: none; }
.pk-roll { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--pk-surface); border: 1px solid var(--pk-border); }
.pk-roll-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0; }
.pk-roll-faces { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pk-roll-face { display: grid; justify-items: center; gap: 2px; width: 64px; font-size: 12px; text-align: center; opacity: .45; }
.pk-roll-face.is-there { opacity: 1; }
.pk-roll-face svg, .pk-roll-face img { width: 44px; height: 44px; }
.pk-roll-face span { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pk-say-page .pk-label-say-form { display: grid; gap: 8px; margin: 12px 0; }
.pk-say-page textarea.pk-control { min-height: 96px; }

@media (hover: hover) {
  .pk-label-react-word:hover { filter: brightness(1.08); }
}
