/*
 * Comments, the same on fackd.com and in the Chrome extension's side panel (which carries a copy,
 * extension/community.css): chat bubbles with the commenter's duck on the right facing left, the box that
 * says "Say something at 0:57", the duck name sheet and the report form's reasons (public/comments.js).
 * Also each person's duck (.duck-av), which the account menu uses on every page (public/acct-community.js).
 */
.cm-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 4px 4px 12px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cm-item { display: grid; grid-template-columns: minmax(0, 1fr) 36px; column-gap: 10px; row-gap: 4px; align-items: start; }
.cm-item.reply { margin-left: 32px; margin-top: -6px; }
.cm-item.focus .cm-bubble { box-shadow: 0 0 0 2px var(--bill); }
.cm-bubble { grid-column: 1; background: var(--card); border-radius: 14px; padding: 10px 14px 12px; min-width: 0; }
.cm-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 4px; }
.cm-handle { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
a.cm-handle:hover, a.cm-handle:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.cm-team { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--bill); border: 1px solid var(--bill); border-radius: 999px; padding: 0 6px; line-height: 16px; }
.cm-top .at { flex: none; min-height: 20px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--ink); font: 600 11px/18px var(--font-mono); cursor: pointer; }
.cm-top .at:hover { border-color: var(--ink-muted); }
.cm-age { font-size: 12px; color: var(--ink-muted); }
.cm-quote { display: flex; gap: 8px; align-items: baseline; background: var(--ground); border-radius: 8px; padding: 6px 10px; margin: 2px 0 8px; font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--ink-muted); }
.cm-quote::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--bill); transform: translateY(1px); }
.cm-body { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-body a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.cm-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-muted); }
.cm-src::before { content: ""; width: 10px; height: 10px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 9.5l3-3M7 4.5l1.2-1.2a2.6 2.6 0 0 1 3.7 3.7L10.7 8.2M9 11.5l-1.2 1.2a2.6 2.6 0 0 1-3.7-3.7L5.3 7.8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.cm-state { margin: 8px 0 0; font-size: 12px; color: var(--ink-muted); font-style: italic; }
.cm-item.held .cm-bubble, .cm-item.removed .cm-bubble { opacity: .75; border: 1px dashed var(--line-strong); }
.cm-gone { margin: 0; font-size: 14px; font-style: italic; color: var(--ink-muted); }
.cm-item > .duck-av { grid-column: 2; grid-row: 1; width: 36px; height: 36px; margin-top: 2px; }
.cm-acts { grid-column: 1; display: flex; align-items: center; gap: 14px; padding-left: 12px; }
.cm-acts > button, .cm-reply { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 4px; border: 0; background: none; color: var(--ink-muted); font: 600 13px var(--font-sans); cursor: pointer; }
.cm-acts > button:hover:not(:disabled) { color: var(--ink); }
.cm-help svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cm-help[aria-pressed="true"] { color: var(--bill); }
.cm-help:disabled { cursor: default; }
.cm-acts .fmenu { margin-left: 0; }
/* The ⋯ sits at the row's left, so its menu opens rightwards (it ran off the panel's left edge). */
.cm-acts .fmenu-list { left: 0; right: auto; }
.cm-acts > button.cm-del.armed, .cm-acts > button.cm-del.armed:hover:not(:disabled) { color: var(--rating-false, #F26B5E); }
.cm-replyform { margin: -4px 46px 0 44px; display: flex; flex-direction: column; gap: 6px; }
.cm-replyform textarea, .cm-compose textarea { width: 100%; background: var(--ground); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; font: 15px/1.4 var(--font-sans); resize: none; }
.cm-replyrow { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.cm-replysend { background: var(--bill); color: var(--on-bill); border: 0; border-radius: 999px; padding: 4px 14px; font: 700 13px var(--font-sans); cursor: pointer; min-height: 30px; }
.cm-empty { padding: 24px 6px; color: var(--ink-muted); font-family: var(--font-serif); }
.cm-empty p { margin: 0 0 6px; font-style: italic; }
.cm-empty .small { font-family: var(--font-sans); font-style: normal; font-size: 13px; }
.cm-pond { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 12px 24px; }
.cm-pond svg { width: min(220px, 70%); height: auto; margin-bottom: 14px; fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.cm-pond p { margin: 0 0 4px; }
.cm-foot { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
/*
 * The comment box reads as a field to type in (Phil, 2026-11-17): a dark inset with a clear outline, a
 * legible placeholder and a lit send button. One line of text sits centred against the send button; as
 * the text grows the button stays at the foot.
 */
.cm-compose { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); border-radius: 26px; padding: 4px 4px 4px 16px; background: rgba(11, 18, 32, .9); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); cursor: text; }
.cm-compose[hidden] { display: none; }
.cm-compose:focus-within { border-color: var(--ink-muted); }
.cm-compose textarea { display: block; border: 0; background: none; padding: 6px 2px; min-height: 34px; max-height: 140px; }
.cm-compose textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.cm-compose textarea:focus { outline: none; }
/* No time chip in the box (Phil, 2026-11-17): the placeholder already says "Say something at 3:20". comments.js still keeps the time in it. */
.cm-at { display: none; }
.cm-count { align-self: center; font-size: 11px; color: var(--ink-muted); }
.cm-send { flex: none; align-self: flex-end; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.cm-send:hover, .cm-compose:focus-within .cm-send { background: rgba(255, 255, 255, .18); }
.cm-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
/* "Commenting as Quiet Pochard · Change", over the comment box. */
.cm-as { margin: 0 0 6px; padding: 0 6px; font-size: 12px; line-height: 1.3; color: var(--ink-muted); }
.cm-as b { color: var(--ink); font-weight: 600; }
.cm-as .linkish { color: var(--ink-muted); text-underline-offset: 3px; }
.cm-note { margin: 0; padding: 8px 4px; font-size: 14px; color: var(--ink-muted); text-align: center; }
.cm-note .linkish { color: var(--ink); text-underline-offset: 3px; }
.cm-check { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 8px; align-items: center; background: var(--card); border-radius: 10px; padding: 6px 6px 6px 10px; }
.cm-check[hidden] { display: none; }
.cm-check q { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-check-x { width: 28px; height: 28px; border: 0; background: none; color: var(--ink-muted); cursor: pointer; display: grid; place-items: center; }
.cm-check-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cm-check-hint { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--ink-muted); }
.cm-check .seal.sm .disc { fill: var(--rating-unverifiable); }
/* A person's duck: the brand duck facing left, in their tint. */
img.duck-av.photo { border-radius: 50%; object-fit: cover; background: var(--line, #e5e7eb); display: block; }
.duck-av .duck { fill: var(--on-bill); }
.duck-av .bill { fill: var(--bill); stroke: var(--bill); stroke-width: 14px; stroke-linejoin: round; }
.duck-av .eye { fill: #fff; }
.duck-av[data-tint="0"] .disc { fill: #2BB5A0; }
.duck-av[data-tint="1"] .disc { fill: #F08A4B; }
.duck-av[data-tint="2"] .disc { fill: #F5B700; }
.duck-av[data-tint="2"] .bill { fill: #fff; stroke: #fff; }
.duck-av[data-tint="3"] .disc { fill: #A78BFA; }
.duck-av[data-tint="4"] .disc { fill: #F28DB2; }
.duck-av[data-tint="5"] .disc { fill: #5AA9F0; }
.duck-av[data-tint="6"] .disc { fill: #7BC86C; }
.duck-av[data-tint="7"] .disc { fill: #EF6F6C; }
.duck-sheet .duck-card { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 6px 0; }
.duck-sheet .duck-card .duck-av { width: 56px; height: 56px; display: block; }
.duck-sheet .duck-card b { display: block; font-size: 22px; color: var(--ink); }
.duck-sheet .duck-card small { color: var(--ink-muted); font-size: 14px; }
.duck-sheet .duck-msg { color: var(--rating-false); }
.cm-reasons { display: flex; flex-direction: column; gap: 2px; }
.cm-reason { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; margin: 0 !important; font-weight: 400 !important; cursor: pointer; }
.cm-reason:has(input:checked) { background: var(--card); }
.cm-reason input { margin-top: 3px; accent-color: var(--bill); width: 18px; height: 18px; flex: none; }
.cm-reason b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.cm-reason small { display: block; font-size: 13px; color: var(--ink-muted); }
:is(.cm-top .at, .cm-acts > button, .cm-send, .cm-check-x, .cm-replysend):focus-visible { outline: 2px solid var(--bill); outline-offset: 2px; }

/* A swipe between the checks and the comments: what comes in slides a little from the side it came from. (Not the comment box: it's fixed on phones, and a moving parent would carry it off.) */
#panel[data-swipe] :is(.pane, [id^="pane-"]) > :not(.cm-foot) { animation: cm-swipe .22s ease-out; }
#panel[data-swipe="left"] { --swipe-from: 28px; }
#panel[data-swipe="right"] { --swipe-from: -28px; }
@keyframes cm-swipe { from { opacity: .3; transform: translateX(var(--swipe-from, 0)); } }
@media (prefers-reduced-motion: reduce) { #panel[data-swipe] :is(.pane, [id^="pane-"]) > :not(.cm-foot) { animation: none; } }

/* "Or choose your own name" under the duck sheet's name (public/comments.js ownNameLink). */
.duck-own { margin: 6px 0 0; font-size: 13px; }
.duck-own a { color: var(--ink-muted); text-underline-offset: 3px; }
.duck-own a:hover { color: var(--ink); }
