/* teamworkpnqa: version button on files and the review window (see versions.js) */
.pv-btn { width: auto !important; min-width: 0; padding: 0 8px !important; font-size: 10.5px !important; font-weight: 700; letter-spacing: .02em; white-space: nowrap; border-radius: 99px !important; color: var(--muted); opacity: .9; }
.pv-btn.waiting { color: #1b1300; background: #f5b544 !important; opacity: 1; animation: pv-glow calc(2.4s * var(--spd, 1)) ease-in-out infinite; }
@keyframes pv-glow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, #f5b544 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .pv-btn.waiting { animation: none; } }
.pf-card .pv-btn { height: 24px; margin-right: 4px; border: 1px solid var(--border); background: none; cursor: pointer; }

.pv-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); }
.pv-sub { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.pv-sub b { color: var(--text); }
.pv-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.pv-empty { color: var(--muted); font-size: 13px; }
.pv-card { --c: #f5b544; padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: 12px; background: color-mix(in srgb, var(--c) 5%, transparent); }
.pv-card.approved { --c: #22a55b; }
.pv-card.rejected { --c: #e5484d; opacity: .85; }
.pv-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.pv-num { font-size: 20px; font-weight: 800; }
.pv-pill { padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--c) 22%, transparent); }
.pv-head small { color: var(--muted); font-size: 11.5px; }
.pv-warn { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, #e5484d 14%, transparent); font-size: 12px; }
.pv-approvals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 10px; }
.pv-count { font-size: 12px; font-weight: 700; margin-right: 4px; }
.pv-who { padding: 3px 9px; border-radius: 99px; font-size: 11.5px; border: 1px solid var(--border); }
.pv-who.approve { border-color: #22a55b; color: #22a55b; }
.pv-who.reject { border-color: #e5484d; color: #e5484d; }
.pv-card section { margin: 10px 0 0; }
.pv-card h3 { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pv-text { margin: 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.pv-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.pv-check li { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.pv-check i { font-style: normal; width: 14px; text-align: center; color: var(--muted); }
.pv-check li.yes i { color: #22a55b; }
.pv-check span { flex: 1; min-width: 0; }
.pv-check small { display: block; color: var(--muted); font-size: 11.5px; }
.pv-check em { flex: none; font-style: normal; font-size: 10.5px; color: var(--muted); }
.pv-check li.yes em { color: #22a55b; }
.pv-comment { margin: 8px 0 0; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.pv-comment.reject { background: color-mix(in srgb, #e5484d 12%, transparent); }
.pv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pv-own { color: var(--muted); font-size: 11.5px; }
.pv-ask { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pv-ask[hidden] { display: none; }
.pv-ask textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.pv-diff { margin-top: 12px; }
.pv-legend { margin: 0 0 6px; font-size: 11.5px; display: flex; gap: 12px; }
.pv-legend .add { color: #22a55b; } .pv-legend .del { color: #e5484d; }
.pv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-cols h4 { margin: 0 0 4px; font-size: 12px; }
.pv-cols ol { margin: 0; padding: 6px 0; max-height: 380px; overflow: auto; list-style: none; border: 1px solid var(--border); border-radius: 8px; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface); }
.pv-cols li { padding: 0 10px; white-space: pre-wrap; word-break: break-word; min-height: 1.55em; }
.pv-cols li.add { background: color-mix(in srgb, #22a55b 20%, transparent); }
.pv-cols li.del { background: color-mix(in srgb, #e5484d 20%, transparent); text-decoration: line-through; text-decoration-color: color-mix(in srgb, #e5484d 60%, transparent); }
.pv-cols li.gap { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--text) 5%, transparent) 6px 12px); }
@media (max-width: 700px) { .pv-cols { grid-template-columns: 1fr; } }

/* Claude's working copy ("draft in progress") */
.pv-btn.drafting { color: #c9b8ff; border: 1px dashed #8f7bff !important; }
.pv-card.drafting { --c: #8f7bff; border-left-style: dashed; }
.pv-draft { margin: 10px 0 0; padding: 10px 12px; max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }

/* Claude connect panel */
.cc2-dialog { width: min(560px, calc(100vw - 24px)); }
.cc2-h { margin: 16px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc2-addr { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.cc2-addr code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cc2-steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.cc2-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.cc2-row small { display: block; color: var(--muted); font-size: 11.5px; }
