.pp-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.pp-heading h2{font-size:24px;letter-spacing:-.6px;margin:0 0 6px}.pp-heading p{margin:0;max-width:700px;font-size:13px;line-height:1.6}.pp-split{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px}.pp-library{padding:12px;align-self:start}.pp-label{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding:10px}.pp-choice{display:flex;flex-direction:column;gap:7px;text-align:left;padding:15px 12px;border:1px solid transparent;border-radius:9px;width:100%;background:transparent;color:var(--ink);cursor:pointer;margin-bottom:5px}.pp-choice strong{font-size:13px;font-weight:600}.pp-choice span{font-size:11px;line-height:1.5;color:var(--muted)}.pp-choice:hover{background:var(--soft)}.pp-choice.is-selected{background:var(--soft);border-color:var(--line)}.pp-editor{padding:24px;min-width:0}.pp-editor>.field{margin:18px 0}.pp-prompt-body{min-height:490px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.7}.pp-prompt-preview{white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext;font-size:12px;line-height:1.8;max-height:600px;overflow:auto;padding:18px;background:var(--soft);border-radius:8px}.pp-note{font-size:11px;line-height:1.7;color:var(--muted);padding:6px 10px}.pp-history{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.pp-placeholder{padding:24px}@media(max-width:800px){.pp-split{grid-template-columns:1fr}.pp-library{display:flex;flex-wrap:wrap;gap:6px}.pp-library>.pp-choice{width:auto;flex:1 1 170px}.pp-library>.pp-label,.pp-library>.pp-note{width:100%}.pp-editor{padding:16px}.pp-heading{align-items:flex-start;flex-wrap:wrap}.pp-prompt-body{min-height:350px}}
.pp-conversation-layout{display:grid;grid-template-columns:215px minmax(0,1fr) 205px;gap:16px;align-items:start}.pp-room-list{padding:10px}.pp-thread{min-width:0;overflow:hidden}.pp-thread-header{padding:20px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.pp-thread-header h3{margin:0 0 9px;font-size:16px}.pp-project-tags{display:flex;flex-wrap:wrap;gap:6px}.pp-connection{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;white-space:nowrap}.pp-connection i{width:6px;height:6px;border-radius:100%;background:#dba865}.pp-timeline{padding:24px;display:flex;flex-direction:column;gap:24px;max-height:660px;overflow:auto}.pp-message-meta{display:flex;align-items:center;gap:8px;font-size:11px;margin-bottom:9px;flex-wrap:wrap}.pp-message-meta strong{font-size:12px}.pp-message-meta time{font-size:10px;color:var(--muted);margin-left:auto}.pp-mini-avatar{width:27px;height:27px;border:1px solid var(--line);border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:9px;letter-spacing:.02em;background:var(--soft);font-weight:700;flex:none}.pp-message-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}.pp-message.from-user .pp-message-card{background:var(--soft)}.pp-message-section{padding:14px 16px}.pp-message-label{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:9px;letter-spacing:.05em;text-transform:uppercase;margin-bottom:9px}.pp-message-label .button{font-size:10px;padding:3px 7px;min-height:24px}.pp-message-text{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext}.pp-converted{border-top:1px dashed var(--line);background:color-mix(in srgb,var(--accent) 4%,transparent)}.pp-message-status{font-size:9px;color:var(--muted);padding:9px 16px;border-top:1px solid var(--line)}.pp-message-files{padding:6px 16px 14px;display:flex;gap:6px;flex-wrap:wrap}.pp-composer{padding:18px 20px;border-top:1px solid var(--line)}.pp-composer textarea{resize:vertical;min-height:95px;font-size:12px}.pp-composer-options{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:12px}.pp-composer-options .field{flex:1;min-width:140px;font-size:10px}.pp-composer-options .button{flex:none}.pp-composer .pp-note{padding:8px 0 0;margin:0}.pp-context{padding:12px}.pp-person{display:flex;gap:9px;padding:12px 5px}.pp-person strong,.pp-person small,.pp-person code{display:block}.pp-person strong{font-size:11px}.pp-person small{font-size:10px;color:var(--muted);margin-top:4px}.pp-person code{font-size:8px;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.pp-context-note{padding:14px 6px 0;border-top:1px solid var(--line);margin-top:8px;font-size:11px}.pp-context-note p{font-size:10px;line-height:1.8;color:var(--muted)}.pp-empty{padding:46px 24px;text-align:center}.pp-empty h3{font-size:18px}.pp-empty p{font-size:13px;line-height:1.7;max-width:430px;margin:12px auto 22px}.pp-fieldset{border:1px solid var(--line);padding:13px;border-radius:8px;margin:15px 0}.pp-fieldset legend{font-size:11px;color:var(--muted);padding:0 6px}.pp-check{display:flex;align-items:center;gap:10px;padding:9px 4px;font-size:12px}.pp-check input{width:15px!important;flex:none;accent-color:var(--accent)}.pp-check small{display:block;font-size:10px;color:var(--muted);margin-top:4px}@media(max-width:1180px){.pp-conversation-layout{grid-template-columns:200px minmax(0,1fr)}.pp-context{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px}.pp-context>.pp-label{width:100%}.pp-context-note{flex:1;min-width:220px;margin:0;border-top:0}.pp-person{min-width:140px}}@media(max-width:760px){.pp-conversation-layout{grid-template-columns:1fr}.pp-room-list{display:flex;flex-wrap:wrap;gap:5px}.pp-room-list>.pp-label{width:100%}.pp-room-list>.pp-choice{width:auto;flex:1 1 150px}.pp-thread-header{flex-wrap:wrap}.pp-timeline{padding:15px}.pp-composer{padding:15px}.pp-context{grid-column:auto}.pp-composer-options>.button{width:100%}}
.pp-file-panel{padding:22px}.pp-file-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.pp-file-toolbar .field{max-width:350px;flex:1}.pp-file-toolbar>.muted{font-size:12px;padding-bottom:10px}.pp-files-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.pp-file-card{border:1px solid var(--line);border-radius:10px;padding:18px;display:flex;flex-direction:column;min-width:0}.pp-file-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.pp-file-glyph{font-size:9px;font-weight:700;letter-spacing:.06em;color:var(--accent);background:var(--soft);border:1px solid var(--line);width:40px;height:47px;border-radius:5px 12px 5px 5px;display:flex;align-items:center;justify-content:center}.pp-file-card h3{font-size:13px;line-height:1.5;margin:16px 0 7px;overflow-wrap:anywhere}.pp-file-card p{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 20px;flex:1}.pp-file-meta{font-size:10px;display:flex;justify-content:space-between;gap:10px;color:var(--muted)}.pp-file-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);flex-wrap:wrap}.pp-file-bottom .button{font-size:10px;padding:6px 9px}.pp-update-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.pp-release-card{padding:22px}.pp-release-card .pp-label{padding:0}.pp-release-card h3{font-size:19px;margin:14px 0 8px;overflow-wrap:anywhere}.pp-release-card p{font-size:12px;line-height:1.7;max-width:530px}.pp-update-table{padding:13px 10px}.pp-table-wrap{overflow:auto}.pp-update-table table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.pp-update-table th{padding:14px;color:var(--muted);font-size:10px;font-weight:500;border-bottom:1px solid var(--line)}.pp-update-table td{padding:17px 14px;border-bottom:1px solid var(--line)}.pp-update-table tbody tr:last-child td{border:0}.pp-update-table td small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.pp-update-table td code{font-size:10px}.pp-plan-list{margin-top:20px;padding:14px}.pp-plan-row{padding:16px 10px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.pp-plan-row:last-child{border:0}.pp-plan-row strong{font-size:13px}.pp-plan-row p{font-size:11px;color:var(--muted);margin-bottom:0}.pp-release-component{padding:14px 0;border-top:1px solid var(--line)}.pp-release-component strong{font-size:13px}.pp-release-component p{font-size:11px;color:var(--muted)}.pp-release-component code{font-size:10px;overflow-wrap:anywhere}.pp-settings{padding:25px}.pp-settings p{font-size:13px;line-height:1.8;max-width:700px;color:var(--muted)}.pp-settings dl>div{display:flex;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line);font-size:12px}.pp-settings dd{color:var(--muted)}@media(max-width:1000px){.pp-files-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.pp-files-grid,.pp-update-summary{grid-template-columns:1fr}.pp-file-panel{padding:15px}.pp-file-toolbar{align-items:start;flex-direction:column;gap:5px}.pp-file-toolbar .field{max-width:none;width:100%}.pp-plan-row{align-items:start;flex-direction:column;gap:8px}}
:is(.pp-prompts,.pp-conversations,.pp-files,.pp-updates,.pp-settings){--ink:var(--text,#252633);--soft:#f8f7fc;--accent:var(--purple,#7562dc)}
.pp-editor .pp-prompt-body{min-height:490px;line-height:1.7}
.pp-editor .toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.pp-editor .toolbar>.field{min-width:190px;flex:1}
.pp-editor .badge,.pp-project-tags .badge{display:inline-flex;align-items:center;border-radius:5px;padding:4px 7px;background:var(--soft);color:var(--muted);font-size:11px;line-height:1.4}
.pp-prompts .button:not(.primary),.pp-conversations .button:not(.primary),.pp-files .button:not(.primary),.pp-updates .button:not(.primary){background:var(--surface);border:1px solid var(--line);color:var(--ink)}
@media(max-width:800px){.pp-editor .pp-prompt-body{min-height:350px}}
.pp-room-list-tools{padding:7px 3px 8px}.pp-room-search{font-size:10px;gap:7px}.pp-room-search input{font-size:11px;padding:9px 10px;min-width:0;width:100%}.pp-room-filters{display:flex;gap:3px;padding:3px;background:var(--soft);border-radius:7px;margin-top:12px}.pp-room-filters button{font-size:9px;border:0;background:transparent;color:var(--muted);padding:6px;flex:1;border-radius:5px}.pp-room-filters button.selected{background:var(--surface);color:var(--accent);box-shadow:0 1px 3px #28233c0d}.pp-room-choice{gap:10px;padding:13px 10px}.pp-room-choice-top{display:flex;align-items:flex-start;justify-content:space-between;gap:7px;width:100%}.pp-room-choice-top strong{font-size:11px;line-height:1.5}.pp-room-choice .pp-room-summary{font-size:10px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pp-room-choice-bottom{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}.pp-room-choice-bottom>span:last-child{font-size:8px}.pp-avatar-stack{display:flex;align-items:center;padding-left:3px}.pp-avatar-stack .pp-mini-avatar{width:22px;height:22px;border-radius:6px;font-size:8px;margin-left:-3px;border:2px solid var(--surface)}.pp-agent-letter{font-weight:750}.pp-tone-0{background:#eee9fd;color:#7160b9}.pp-tone-1{background:#e8f1ff;color:#577fb4}.pp-tone-2{background:#f9ecdf;color:#ad8456}.pp-tone-3{background:#e3f3ea;color:#5e947e}.pp-tone-4{background:#f9e7f0;color:#ac708e}.pp-tone-5{background:#e7f1f2;color:#618e95}.pp-phase{display:inline-flex;align-items:center;gap:4px;border-radius:5px;padding:3px 5px;font-size:8px!important;font-weight:600;white-space:nowrap;line-height:1.4!important;letter-spacing:0;color:#548a73!important;background:#eef8f2}.pp-phase:before{content:'';width:4px;height:4px;background:currentColor;border-radius:50%}.pp-phase.concluded{background:#efeff4;color:#9793a6!important}.pp-thread-title{min-width:0}.pp-thread-title-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}.pp-thread-title-line h3{margin:0}.pp-thread-description{font-size:11px;line-height:1.7;color:var(--muted);margin-bottom:12px;max-width:550px}.pp-thread-header .pp-connection{margin-top:4px}.pp-concluded-banner{font-size:10px;line-height:1.8;padding:13px 20px;background:#f8f7fb;border-bottom:1px solid var(--line);color:var(--muted)}.pp-concluded-banner strong{font-weight:600;color:var(--ink)}.pp-context-section{width:100%;padding:3px 4px 14px;margin-bottom:10px;border-bottom:1px solid var(--line)}.pp-context-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0 5px}.pp-context-section-head h4{margin:0;font-size:10px;font-weight:650;display:flex;gap:7px;align-items:center}.pp-context-section-head h4>span{color:var(--muted);font-size:8px;font-weight:500;min-width:16px;min-height:16px;display:inline-flex;align-items:center;justify-content:center;background:var(--soft);border-radius:5px}.pp-context-browse{background:none;border:0;color:var(--muted);font-size:8px;padding:3px 0}.pp-context-browse:hover{color:var(--accent)}.pp-context-link{background:none;border:0;text-align:left;color:var(--ink);padding:0;font-size:11px;font-weight:600;line-height:1.6;cursor:pointer;overflow-wrap:anywhere}.pp-context-link:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.pp-context-link.badge{font-size:9px;font-weight:500;padding:3px 6px;border:1px solid var(--line)}.pp-person{padding:10px 0}.pp-person>div{min-width:0;flex:1}.pp-person-model{display:flex!important;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.pp-presence{display:inline-flex;align-items:center;gap:4px;font-size:8px;color:var(--muted)}.pp-presence:before{content:'';width:4px;height:4px;border-radius:50%;background:#aba7b5}.pp-presence.working:before,.pp-presence.reviewing:before{background:#83bca0}.pp-presence.blocked:before{background:#d9a074}.pp-presence.offline:before{background:#ccc7d3}.pp-context-empty{font-size:9px;line-height:1.7;color:var(--muted);padding:6px 0}.pp-context-resource{padding:9px 0;border-bottom:1px solid #f0eef5}.pp-context-resource:last-child{border:0}.pp-context-resource p{font-size:9px;color:var(--muted);line-height:1.7;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pp-message-actions{display:flex;gap:5px}.pp-kind-label{font-weight:600}.pp-kind-decision .pp-message-card{border-left:3px solid #b5a6e7}.pp-kind-decision .pp-kind-label{color:#8c78c3}.pp-kind-handoff .pp-message-card{border-left:3px solid #8bb9a4}.pp-kind-handoff .pp-kind-label{color:#64947f}.pp-kind-review .pp-message-card{border-left:3px solid #d6b685}.pp-kind-review .pp-kind-label{color:#b29569}.pp-kind-file .pp-message-card{border-left:3px solid #9fbada}.pp-kind-file .pp-kind-label{color:#7394bb}.pp-reply-preview{display:block;width:calc(100% - 30px);margin:12px 15px 0;padding:9px 12px;border:0;border-left:2px solid #b9b0db;background:#f7f5fb;border-radius:0 6px 6px 0;text-align:left}.pp-reply-preview>span{font-size:9px;color:var(--accent);font-weight:600}.pp-reply-preview p{font-size:10px;color:var(--muted);line-height:1.6;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}.pp-reply-preview:hover{background:#f0edf8}.pp-attachment-link{border:1px solid var(--line);padding:6px 9px;border-radius:6px;font-size:10px;font-weight:500;background:var(--surface)}.pp-attachment-link:before{content:'↳';color:var(--accent);margin-right:6px}.pp-draft-reply{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;background:var(--soft);border-radius:7px;margin-bottom:13px;border-left:2px solid #b9b0db}.pp-draft-reply strong{font-size:10px;color:var(--accent)}.pp-draft-reply p{font-size:10px;color:var(--muted);line-height:1.6;margin-top:4px;overflow-wrap:anywhere}.pp-draft-reply .button{padding:5px 8px;font-size:9px;min-height:26px}.pp-composer-classification{display:flex;gap:12px;align-items:end;justify-content:space-between;margin-top:12px}.pp-composer-classification>.field{max-width:230px;flex:1;font-size:10px}.pp-composer-classification>.button{font-size:10px}.pp-message-highlight .pp-message-card{box-shadow:0 0 0 3px #d8cef3}@media(min-width:1181px){.pp-conversation-layout{grid-template-columns:225px minmax(0,1fr) 215px}}@media(max-width:1180px){.pp-context-section{width:auto;min-width:180px;flex:1;border-bottom:0;border-right:1px solid var(--line);padding-right:14px}.pp-context-section:last-of-type{border-right:0}.pp-context .pp-context-note{width:100%;flex-basis:100%;padding-top:8px;border-top:1px solid var(--line)}}@media(max-width:760px){.pp-room-list-tools{width:100%}.pp-room-list .pp-room-choice{flex:1 1 210px}.pp-context-section{min-width:160px}.pp-thread-header{padding:17px}.pp-thread-title-line h3{font-size:15px}.pp-thread-header .pp-connection{font-size:9px}.pp-message-label{font-size:8px}.pp-message-actions .button{padding:3px 6px}.pp-composer-classification>.field{max-width:none}.pp-context-link{font-size:11px}.pp-concluded-banner{padding:12px 15px}.pp-room-choice-top strong{font-size:12px}}

.pp-catalog-notice{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;margin-bottom:20px}.pp-catalog-notice p{font-size:12px;color:var(--muted);margin:7px 0;overflow-wrap:anywhere}.pp-catalog-notice small{color:var(--muted);line-height:1.6}.pp-catalog-notice .button{flex-shrink:0}@media(max-width:700px){.pp-catalog-notice{align-items:flex-start;flex-direction:column}}

/* Agent update inventory: observed versions, durable requests and host receipts. */
.up-release-grid{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:16px;margin:20px 0}.up-release{padding:20px;min-width:0}.up-release h3{margin:12px 0 8px;font-size:14px;overflow-wrap:anywhere}.up-release p{color:var(--muted);font-size:11px}.up-fleet>div{font-size:12px;line-height:2;margin:10px 0 4px}.up-fleet strong{font-size:24px;font-weight:600}.up-fleet>div>span{padding:0 5px;color:var(--muted)}.up-toolbar{display:flex;align-items:center;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line);font-size:12px}.up-toolbar>.button{margin-left:auto}.up-select{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:600}.up-select small{font-weight:400;color:var(--muted);margin-left:5px}.up-inventory input[type=checkbox]{width:17px;height:17px;accent-color:var(--purple);cursor:pointer}.up-inventory input:disabled{cursor:default}.up-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.up-table th{background:#faf9fc;font-size:10px;color:var(--muted);font-weight:600;padding:13px 16px;white-space:nowrap}.up-table td{padding:19px 16px;border-top:1px solid var(--line);vertical-align:middle;max-width:280px}.up-table th:first-child,.up-table td:first-child{padding-right:0;width:42px}.up-table strong{font-weight:600}.up-table small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:6px}.up-table .text-danger{color:var(--danger)}.up-table code{font-size:11px;color:#65588c;background:#f4f1fa;padding:4px 6px;border-radius:4px}.up-prompt-version{overflow-wrap:anywhere;font-size:11px}.up-table .rt-presence{white-space:normal;font-size:10px}.up-footer{padding:17px 20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.8}.up-footer strong{color:var(--text);font-weight:600;margin-right:5px}.up-details{padding:18px 20px;margin-top:22px}.up-details>summary{font-size:12px;font-weight:600;color:var(--muted);cursor:pointer}.up-details[open]>summary{margin-bottom:18px}.up-details .pp-catalog-notice{box-shadow:none}.up-inventory .pp-table-wrap{overflow-x:auto}.up-details .pp-plan-list{padding:12px}.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1120px){.up-release-grid{grid-template-columns:1fr 1fr}.up-fleet{grid-column:1/-1;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.up-fleet>div{margin:0}.up-table{min-width:740px}}@media(max-width:660px){.up-release-grid{grid-template-columns:1fr}.up-fleet{grid-column:auto}.up-toolbar{padding:14px;gap:10px;flex-wrap:wrap}.up-toolbar>.button{margin-left:0}.up-release{padding:16px}.up-select small{display:block;margin:0}.up-footer{padding:14px}}

/* Editable server accountability; historical ledgers stay visually secondary. */
.elo-rules{padding:22px;margin:20px 0}.elo-rules h3{margin:0 0 8px}.elo-rules .pp-heading{margin-bottom:14px}.elo-rules-description{white-space:pre-wrap;font-size:12px;line-height:1.7}.elo-rules details,.elo-legacy{font-size:11px;line-height:1.7}.elo-rules summary,.elo-legacy summary{cursor:pointer;font-weight:600}.elo-rule-table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}.elo-rule-table td,.elo-rule-table th{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}.elo-rule-table td:last-child{white-space:pre-wrap;min-width:180px}.elo-rule-table td:nth-child(2){white-space:nowrap;font-variant-numeric:tabular-nums}.elo-score-toolbar{padding:16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line);font-size:11px}.elo-score-toolbar>strong{margin-right:auto}.elo-agent-controls{display:flex;flex-wrap:wrap;gap:8px}.elo-agent-controls .button{font-size:10px;padding:6px 9px}.elo-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--purple)}.elo-legacy{margin-top:12px;color:var(--muted)}.elo-legacy p{font-size:11px;line-height:1.7}.elo-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.elo-rule-fields{border:1px solid var(--line);padding:14px;border-radius:8px;margin:18px 0}.elo-rule-fields legend{font-size:12px;font-weight:600;padding:0 6px}.elo-rule-fields p{font-size:11px;color:var(--muted);line-height:1.6}.elo-rule-editor-row{display:grid;grid-template-columns:minmax(135px,.7fr) minmax(0,1.3fr);gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.elo-rule-editor-row:last-child{border:0}.elo-curve-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}.elo-reviewed-targets{padding-left:20px;font-size:12px;line-height:1.8}.elo-reviewed-targets li{margin:10px 0;overflow-wrap:anywhere}.elo-recovery .button{margin:5px 8px 0 0}.pp-elo-current{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;padding:10px 16px 6px;border-top:1px solid var(--line);font-size:11px;font-variant-numeric:tabular-nums}.pp-elo-current span{color:var(--muted);font-size:10px}.pp-elo-participants{padding:16px 20px;border-bottom:1px solid var(--line);background:#faf9fc}.pp-elo-participants>div{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;font-size:12px}.pp-elo-participants>div>span{font-size:10px;color:var(--muted)}.pp-elo-participants ul{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;padding:0}.pp-elo-participants li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 18px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-width:185px;max-width:100%;font-size:11px;background:var(--surface,#fff)}.pp-elo-participants li>strong{overflow-wrap:anywhere}.pp-elo-participants li>span{font-weight:600;font-variant-numeric:tabular-nums}.pp-elo-participants small{grid-column:1/-1;color:var(--muted);font-size:10px}.pp-elo-participants p{font-size:11px;line-height:1.6;color:var(--muted);margin:0}@media(max-width:650px){.elo-rules{padding:16px}.elo-rules .pp-heading{align-items:flex-start;flex-direction:column}.elo-settings-grid,.elo-rule-editor-row{grid-template-columns:1fr}.elo-score-toolbar>.button{flex:1 1 auto}.pp-elo-participants{padding:14px}.pp-elo-participants li{width:100%}.elo-curve-row{gap:10px}}

.elo-settings-grid .field.checkbox{display:flex;align-items:center;gap:8px;line-height:1.6}.elo-settings-grid .field.checkbox input{width:18px;height:18px;flex:none;accent-color:var(--purple)}
/* Persisted accountability scores: same panel/table conventions as inventory. */
.elo-panel .pp-table-wrap{overflow-x:auto}.elo-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.elo-table th,.elo-table td{padding:18px 16px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}.elo-table thead th{background:#faf9fc;color:var(--muted);font-size:11px}.elo-table tbody th{font-weight:400;min-width:140px}.elo-table small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:6px}.elo-rating{font-size:21px;font-weight:600;white-space:nowrap}.elo-history{padding:22px;margin-top:24px}.elo-history h3{margin:0 0 8px}.elo-changes{list-style:none;margin:0;padding:0}.elo-changes>li{padding:20px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.elo-change-heading{display:flex;gap:16px;align-items:baseline;flex-wrap:wrap;font-size:12px}.elo-change-heading>strong{font-size:22px}.elo-facts{display:grid;grid-template-columns:minmax(120px,170px) minmax(0,1fr);gap:8px 16px;font-size:12px;line-height:1.6}.elo-facts dt{color:var(--muted)}.elo-facts dd{margin:0;overflow-wrap:anywhere}.elo-history details{font-size:12px}.elo-history summary{cursor:pointer;font-weight:600}.elo-history p{font-size:12px;line-height:1.7;white-space:pre-wrap}@media(max-width:800px){.elo-table{min-width:740px}.elo-history{padding:16px}.elo-facts{grid-template-columns:1fr;gap:3px}.elo-facts dd{margin-bottom:8px}}

/* Message policy-v2 overlays remain distinct from the original synced ledger. */
.pp-elo-policy{padding:14px 20px;border-bottom:1px solid var(--line);background:var(--soft);font-size:11px;line-height:1.65}.pp-elo-policy p{margin:7px 0;color:var(--muted)}.pp-elo-policy-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.pp-elo-policy .button{font-size:10px;padding:5px 8px}.pp-elo-counts{font-variant-numeric:tabular-nums}.pp-elo-message{padding:9px 16px;border-top:1px solid var(--line);font-size:10px;line-height:1.65;overflow-wrap:anywhere}.pp-elo-message>summary{cursor:pointer}.pp-elo-badge{display:inline-flex;align-items:center;border-radius:5px;padding:3px 7px;background:#efedf8;color:#5c507f;font-weight:600}.pp-elo-applied{background:#e9f5ed;color:#39644b}.pp-elo-held{background:#fff2d9;color:#805719}.pp-elo-rejected{background:#fbe9e9;color:#8a4141}.pp-elo-unavailable,.pp-elo-unproposed{background:#efeff4;color:var(--muted)}.pp-elo-explanation{margin-left:8px;color:var(--muted);font-size:10px}.pp-elo-audit dl{display:grid;grid-template-columns:105px minmax(0,1fr);gap:5px 12px}.pp-elo-audit dt{color:var(--muted)}.pp-elo-audit dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.pp-elo-audit p{margin:8px 0;color:var(--muted)}.pp-elo-error{color:var(--danger,#973e3e)!important}.pp-elo-corrections{margin:15px 0;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:11px}.pp-elo-corrections>summary{cursor:pointer;font-weight:600}.pp-elo-correction{border-top:1px solid var(--line);padding:12px 0}.pp-elo-correction:last-child{padding-bottom:0}.pp-elo-correction-context{font-size:11px;line-height:1.6;overflow-wrap:anywhere}.pp-elo-correction-context small{display:block;color:var(--muted);font-size:10px}.pp-elo-correction-fields{display:grid;grid-template-columns:minmax(145px,1fr) minmax(130px,.8fr);gap:10px}.pp-elo-correction-fields .field{font-size:10px}.pp-elo-correction-fields input,.pp-elo-correction-fields select{font-size:11px;min-width:0;width:100%}.pp-elo-reason{grid-column:1/-1}.pp-elo-correction-fields input:disabled{opacity:.65}@media(max-width:600px){.pp-elo-policy{padding:12px 15px}.pp-elo-correction-fields{grid-template-columns:1fr}.pp-elo-audit dl{grid-template-columns:1fr;gap:3px}.pp-elo-audit dd{margin-bottom:7px}.pp-elo-explanation{display:block;margin:5px 0 0}}
.up-fingerprint{overflow-wrap:anywhere;white-space:normal;font-size:10px}.up-runtime-evidence details{font-size:11px;line-height:1.65}.up-runtime-evidence ul{padding-left:16px}.up-runtime-evidence li{margin:12px 0}.up-agent-evidence{font-size:11px;margin-top:8px;overflow-wrap:anywhere}.up-runtime-evidence p{overflow-wrap:anywhere}
/* Private image previews are verified raster Blobs; originals remain in Files. */
.pp-message-image-open{appearance:none;background:transparent;border:0;padding:0;cursor:zoom-in;max-width:100%}.pp-message-image-open:focus-visible{outline:2px solid var(--purple);outline-offset:3px;border-radius:7px}
.pp-image-lightbox{max-height:70vh;overflow:auto;background:#f6f5fa;border-radius:10px;padding:8px;display:grid;place-items:center}.pp-image-lightbox img{display:block;max-width:100%;height:auto}
.pp-message-file{min-width:0;max-width:100%;flex:1 1 240px}
.pp-message-image{margin:0 0 8px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#f8f7fc;max-width:640px}
.pp-message-image-content{min-height:80px;display:grid;place-items:center;padding:8px}
.pp-message-image-preview{display:block;max-width:100%;max-height:420px;width:auto;height:auto;object-fit:contain;border-radius:7px}
.pp-message-image-caption{padding:7px 12px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.pp-message-image-status{display:block;padding:12px;font-size:12px;color:var(--muted)}
.pp-draft-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0;max-width:100%}
.pp-draft-image{display:flex;align-items:flex-start;gap:10px;padding:12px;margin:0;border:1px solid var(--line);border-radius:12px;background:#faf9fd;min-width:0}
.pp-draft-image>img,.pp-image-placeholder{width:76px;height:76px;object-fit:contain;background:white;border-radius:8px;flex-shrink:0}
.pp-image-placeholder{display:grid;place-items:center;font-size:11px;color:var(--muted)}
.pp-draft-image figcaption{min-width:0;display:flex;flex-direction:column;gap:6px;font-size:11px;overflow-wrap:anywhere}
.pp-draft-image strong{font-weight:600}.pp-draft-image [role=status]{color:var(--muted)}
.pp-draft-image[data-chat-image-state=ready]{border-color:#a9d3bc}.pp-draft-image[data-chat-image-state=ready] [role=status]{color:#26754b}
.pp-draft-image[data-chat-image-state=paused],.pp-draft-image[data-chat-image-state=error]{border-color:#dbc59b}
.pp-draft-image .toolbar{gap:5px;flex-wrap:wrap}.pp-draft-image .button{padding:5px 8px;font-size:10px}
@media(max-width:600px){.pp-draft-images{grid-template-columns:1fr}.pp-message-image-preview{max-height:320px}.pp-message-file{flex-basis:100%}}

/* Conversation studio: warm surfaces, readable transcripts and visible controls.
   These overrides retain the existing room, draft, attachment and receipt hooks. */
:is(.pp-prompts, .pp-conversations, .pp-files, .pp-updates, .pp-settings) {
  --ink: var(--text, #252a23);
  --soft: #f3f2eb;
  --accent: #40583d;
}
.pp-conversations { min-width: 0; }
.pp-conversations .pp-heading { margin-bottom: 22px; }
.pp-conversations .pp-heading h2 { font-size: 28px; font-weight: 650; letter-spacing: -.8px; }
.pp-conversations .pp-heading p { font-size: 14px; max-width: 780px; }
.pp-conversation-layout {
  grid-template-columns: 238px minmax(0, 1fr) 228px;
  gap: 0;
  border: 1px solid var(--line, #deded4);
  border-radius: 14px;
  background: var(--surface, #fffefa);
  align-items: stretch;
  overflow: clip;
}
.pp-conversation-layout > .panel { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.pp-conversation-layout > .pp-room-list { background: #f7f7f1; padding: 12px; min-width: 0; }
.pp-room-list-tools { padding: 4px 2px 10px; }
.pp-room-search { font-size: 12px; font-weight: 500; }
.pp-room-search input {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface, #fffefa);
  font-size: 13px;
}
.pp-room-filters { gap: 4px; margin-top: 12px; padding: 4px; background: #eceee5; }
.pp-room-filters button { min-height: 32px; font-size: 11px; font-weight: 550; cursor: pointer; }
.pp-room-filters button.selected { color: var(--accent); box-shadow: 0 1px 4px #2833220d; }
.pp-room-list > .pp-label { font-size: 10px; letter-spacing: .08em; padding: 14px 9px 10px; }
.pp-room-list .pp-room-choice {
  gap: 9px;
  border-radius: 9px;
  padding: 14px 11px;
  margin-bottom: 5px;
  border: 1px solid transparent;
}
.pp-room-list .pp-room-choice:hover { background: #eeefe7; }
.pp-room-list .pp-room-choice.is-selected { background: #e4e9dc; border-color: #d6decc; box-shadow: inset 3px 0 #61734c; }
.pp-room-choice-top { flex-wrap: wrap; gap: 6px; }
.pp-room-choice-top strong { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.pp-room-choice .pp-room-summary { font-size: 12px; line-height: 1.55; color: #606958; }
.pp-room-choice-bottom > span:last-child { font-size: 10px; }
.pp-mini-avatar { width: 32px; height: 32px; border-radius: 50%; font-size: 11px; }
.pp-avatar-stack .pp-mini-avatar { width: 26px; height: 26px; border-radius: 50%; font-size: 9px; border-color: #f7f7f1; }
.pp-tone-0 { background: #e5eadc; color: #40583d; }
.pp-tone-1 { background: #e3eaee; color: #42606d; }
.pp-tone-2 { background: #f1e3d5; color: #875538; }
.pp-tone-3 { background: #e1ece4; color: #436951; }
.pp-tone-4 { background: #ece3e0; color: #805951; }
.pp-tone-5 { background: #e5e8da; color: #657042; }
.pp-conversations .pp-phase { font-size: 10px !important; padding: 4px 7px; background: #e8efdf; color: #40583d !important; }
.pp-conversations .pp-phase.concluded { background: #edeee7; color: #656d5e !important; }
.pp-conversation-layout > .pp-thread { border-inline: 1px solid var(--line, #deded4); background: var(--surface, #fffefa); }
.pp-thread-header { padding: 22px 24px 18px; flex-wrap: wrap; row-gap: 14px; background: var(--surface, #fffefa); }
.pp-thread-title { flex: 1 1 100%; }
.pp-thread-title-line { gap: 10px; margin-bottom: 8px; }
.pp-thread-title-line h3 { font-size: 21px; letter-spacing: -.5px; font-weight: 650; }
.pp-thread-description { font-size: 13px; line-height: 1.65; margin: 0 0 12px; max-width: 680px; }
.pp-thread-header > .toolbar { flex: 1 1 auto; gap: 7px; flex-wrap: wrap; margin: 0; }
.pp-thread-header .toolbar .button { min-height: 32px; font-size: 11px; padding: 6px 10px; }
.pp-thread-header .pp-connection { font-size: 11px; white-space: normal; line-height: 1.5; margin: 0; }
.pp-project-tags .pp-context-link.badge { font-size: 11px; border-radius: 20px; padding: 5px 10px; background: #f1f2eb; }
.pp-timeline {
  padding: 28px 24px;
  gap: 28px;
  max-height: 720px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c6ccbc transparent;
  background: #fafaf5;
  scroll-padding-block: 24px;
}
.pp-message { min-width: 0; width: 100%; max-width: 850px; align-self: flex-start; }
.pp-message.from-user { align-self: flex-end; }
.pp-message-meta { font-size: 11px; gap: 8px; line-height: 1.5; margin-bottom: 10px; }
.pp-message-meta strong { font-size: 13px; }
.pp-message-meta time { font-size: 11px; font-variant-numeric: tabular-nums; }
.pp-message-card { border-color: #dfe4d7; border-radius: 3px 13px 13px; background: #f0f3e9; box-shadow: 0 1px 2px #25351c04; }
.pp-message.from-user .pp-message-card { background: #f4ece2; border-color: #e4d8c9; border-radius: 13px 3px 13px 13px; }
.pp-message-section { padding: 16px 18px; }
.pp-message-label { letter-spacing: .025em; font-size: 10px; line-height: 1.5; margin-bottom: 11px; flex-wrap: wrap; }
.pp-message-actions { gap: 5px; flex-wrap: wrap; }
.pp-message-label .button { min-height: 28px; padding: 4px 8px; font-size: 11px; background: #fffefa99; }
.pp-message-text { font-size: 14px; line-height: 1.75; color: #252a23; }
.pp-converted { background: #fffefa66; border-color: #cbd5be; }
.pp-message-status { font-size: 11px; padding: 10px 18px; line-height: 1.6; border-color: #dfe4d7; }
.pp-message-files { padding: 0 18px 16px; gap: 9px; }
.pp-kind-decision .pp-message-card { border-left-color: #7a8b60; }
.pp-kind-decision .pp-kind-label { color: #50683f; }
.pp-kind-handoff .pp-message-card { border-left-color: #658b79; }
.pp-kind-handoff .pp-kind-label { color: #446b58; }
.pp-kind-review .pp-message-card { border-left-color: #b58c62; }
.pp-kind-review .pp-kind-label { color: #88603a; }
.pp-kind-file .pp-message-card { border-left-color: #7695a1; }
.pp-kind-file .pp-kind-label { color: #4b6b78; }
.pp-reply-preview { padding: 11px 13px; background: #fffefa88; border-left-color: #809166; }
.pp-reply-preview > span { font-size: 11px; }
.pp-reply-preview p { font-size: 12px; line-height: 1.6; }
.pp-reply-preview:hover { background: #e7eddc; }
.pp-attachment-link { padding: 8px 11px; border-radius: 7px; font-size: 12px; line-height: 1.5; }
.pp-context-link.pp-attachment-link { font-size: 12px; }
.pp-message-highlight .pp-message-card { box-shadow: 0 0 0 3px #a8b893; }
.pp-concluded-banner { font-size: 12px; line-height: 1.7; background: #f0f1e9; padding: 14px 24px; }
.pp-composer { padding: 22px 24px; background: var(--surface, #fffefa); box-shadow: 0 -3px 15px #38442e04; }
.pp-composer > .field { font-size: 12px; }
.pp-composer textarea { min-height: 116px; font-size: 14px; line-height: 1.65; padding: 13px 15px; border-radius: 10px; background: #fffefa; }
.pp-composer textarea:focus { border-color: #7e906a; box-shadow: 0 0 0 3px #dfe7d4; }
.pp-composer-classification { align-items: end; gap: 12px; flex-wrap: wrap; }
.pp-composer-classification > .field { font-size: 12px; max-width: 240px; min-width: 150px; }
.pp-composer-classification > .button { font-size: 12px; min-height: 38px; }
.pp-composer-options { gap: 12px; margin-top: 15px; }
.pp-composer-options .field { min-width: 155px; font-size: 12px; }
.pp-composer-options .button { min-height: 40px; font-size: 12px; padding-inline: 17px; }
.pp-composer select { font-size: 12px; min-height: 38px; }
.pp-composer select[multiple] { min-height: 88px; }
.pp-composer .pp-note { font-size: 11px; line-height: 1.65; }
.pp-draft-reply { background: #f0f3e9; border-left-color: #81916a; padding: 12px 14px; }
.pp-draft-reply strong { font-size: 12px; }
.pp-draft-reply p { font-size: 12px; }
.pp-draft-reply .button { font-size: 11px; min-height: 32px; }
.pp-conversation-layout > .pp-context { padding: 17px 16px; background: #fcfcf7; min-width: 0; }
.pp-context-section { padding: 0 0 17px; margin-bottom: 15px; }
.pp-context-section-head { padding: 8px 0; }
.pp-context-section-head h4 { font-size: 12px; gap: 8px; }
.pp-context-section-head h4 > span { font-size: 10px; min-width: 20px; min-height: 20px; }
.pp-context-browse { font-size: 11px; min-height: 30px; cursor: pointer; color: var(--accent); }
.pp-context-link { font-size: 12px; line-height: 1.6; }
.pp-person { gap: 10px; padding: 12px 0; }
.pp-person strong { font-size: 12px; }
.pp-person small { font-size: 11px; line-height: 1.5; }
.pp-person code { font-size: 10px; }
.pp-context-resource { padding: 10px 0; border-color: var(--line, #deded4); }
.pp-context-resource p, .pp-context-empty { font-size: 11px; line-height: 1.65; }
.pp-context-note { padding: 14px 0 0; font-size: 12px; }
.pp-context-note p { font-size: 11px; line-height: 1.7; }
.pp-context details { border-top: 1px solid var(--line, #deded4); padding-block: 12px; }
.pp-context summary { cursor: pointer; font-weight: 600; font-size: 12px; line-height: 1.6; }
.pp-thread .pp-elo-participants { padding: 16px 24px; background: #f5f5ee; }
.pp-thread .pp-elo-participants li { min-width: 150px; font-size: 12px; background: var(--surface, #fffefa); }
.pp-thread .pp-elo-policy { padding: 14px 24px; font-size: 12px; background: #f6f6ef; }
.pp-thread .pp-elo-message { font-size: 11px; padding: 11px 18px; border-color: #dfe4d7; }
.pp-thread .pp-elo-message > summary { padding-block: 3px; }
.pp-thread .pp-elo-badge { background: #e3e9d9; color: #40583d; }
.pp-thread .pp-elo-applied { background: #e4efe0; color: #365c32; }
.pp-thread .pp-elo-held { background: #fbedd1; color: #815614; }
.pp-thread .pp-elo-rejected { background: #f6e2dc; color: #8a4434; }
.pp-thread .pp-elo-unavailable, .pp-thread .pp-elo-unproposed { background: #eaece4; color: #606958; }
.pp-thread .pp-elo-explanation { font-size: 11px; }
.pp-conversations .pp-message-image { background: #f8f9f3; border-color: #dbe1d1; border-radius: 10px; }
.pp-conversations .pp-message-image-caption { font-size: 12px; }
.pp-conversations .pp-draft-image { background: #f8f8f2; border-radius: 10px; }
.pp-conversations .pp-draft-image figcaption { font-size: 12px; }
.pp-conversations .pp-draft-image .button { min-height: 30px; font-size: 11px; }
.pp-image-lightbox { background: #f3f3eb; }
.pp-conversations :is(button, input, select, textarea, summary):focus-visible,
.pp-image-lightbox button:focus-visible { outline: 2px solid #50673f; outline-offset: 3px; }
.pp-conversations .pp-availability-note { font-size: 12px; line-height: 1.65; background: #f6f1e5; border-color: #dfd1b4; }
.pp-conversations .rt-receipts { font-size: 11px; }
.pp-conversations .rt-presence { font-size: 10px; }

@media (min-width: 1550px) {
  .pp-conversation-layout { grid-template-columns: 260px minmax(0, 1fr) 260px; }
  .pp-timeline { padding: 32px; }
}
@media (max-width: 1180px) {
  .pp-conversation-layout { grid-template-columns: 224px minmax(0, 1fr); }
  .pp-conversation-layout > .pp-thread { border-inline-end: 0; }
  .pp-conversation-layout > .pp-context { border-top: 1px solid var(--line, #deded4); padding: 18px; }
  .pp-context-section { min-width: 190px; border-bottom: 0; padding-right: 18px; }
  .pp-context-note { min-width: 0; }
}
@media (max-width: 760px) {
  .pp-conversations .pp-heading h2 { font-size: 25px; }
  .pp-conversation-layout { grid-template-columns: minmax(0, 1fr); border-radius: 10px; }
  .pp-conversation-layout > .pp-room-list { padding: 10px; gap: 6px; max-height: 370px; overflow-y: auto; }
  .pp-room-list-tools { flex: 1 1 100%; }
  .pp-room-list .pp-room-choice { flex: 1 1 220px; margin: 0; padding: 12px; }
  .pp-room-choice-top strong { font-size: 13px; }
  .pp-room-list > .pp-label { padding-block: 8px; }
  .pp-conversation-layout > .pp-thread { border-inline: 0; border-top: 1px solid var(--line, #deded4); }
  .pp-thread-header { padding: 18px; }
  .pp-thread-title-line h3 { font-size: 19px; }
  .pp-thread-header .toolbar .button { min-height: 36px; }
  .pp-thread-header .pp-connection { font-size: 11px; }
  .pp-timeline { padding: 20px 16px; gap: 24px; max-height: 620px; }
  .pp-message-section { padding: 14px; }
  .pp-message-text { font-size: 14px; }
  .pp-message-label { font-size: 10px; }
  .pp-message-actions .button { min-height: 32px; padding: 5px 8px; }
  .pp-message-status, .pp-thread .pp-elo-message { padding-inline: 14px; }
  .pp-message-files { padding-inline: 14px; }
  .pp-composer { padding: 18px; }
  .pp-composer textarea { font-size: 16px; }
  .pp-composer-classification > .field { max-width: none; }
  .pp-composer-options > .button { width: 100%; min-height: 44px; }
  .pp-composer-options .field { flex: 1 1 100%; min-width: 0; }
  .pp-thread .pp-elo-participants, .pp-thread .pp-elo-policy { padding-inline: 18px; }
  .pp-thread .pp-elo-participants li { min-width: 0; width: 100%; }
  .pp-context-section { min-width: 0; flex: 1 1 220px; }
  .pp-context .pp-context-note { font-size: 12px; }
  .pp-context-link { font-size: 12px; }
  .pp-context-link.pp-attachment-link { font-size: 12px; }
  .pp-conversations .pp-attachment-link { min-height: 36px; }
  .pp-conversations .pp-message-meta time { margin-left: 0; }
}
@media (max-width: 430px) {
  .pp-room-list .pp-room-choice { flex-basis: 100%; }
  .pp-thread-header { padding: 16px 14px; }
  .pp-thread-header .toolbar .button { flex: 1 1 auto; }
  .pp-message-meta > .muted { flex-basis: 100%; }
  .pp-timeline { padding-inline: 12px; }
  .pp-composer { padding: 16px 14px; }
  .pp-composer-classification > .button { width: 100%; min-height: 40px; }
  .pp-context-section { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line, #deded4); }
  .pp-context-section:last-of-type { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-conversations :is(button, input, select, textarea) { transition: none; }
  .pp-timeline { scroll-behavior: auto; }
}

/* Progressive disclosure keeps daily communication close to the transcript. */
.pp-conversation-audit { background: #f4f5ec; border-bottom: 1px solid var(--line); min-width: 0; }
.pp-conversation-audit > summary, .pp-composer-advanced > summary { cursor: pointer; padding: 12px 20px; color: #536547; font-size: 12px; line-height: 1.5; }
.pp-conversation-audit > summary:hover, .pp-composer-advanced > summary:hover { background: #ebf0e1; }
.pp-conversation-audit[open] > summary { border-bottom: 1px solid var(--line); }
.pp-conversation-audit .pp-elo-policy { border-bottom: 0; }
.pp-composer-advanced { margin: 12px 0; border: 1px solid #dbe1d1; border-radius: 7px; background: #f8f9f2; overflow: hidden; }
.pp-composer-advanced > summary { padding: 10px 12px; }
.pp-composer-advanced[open] > summary { border-bottom: 1px solid var(--line); }
.pp-composer-advanced > .pp-composer-classification, .pp-composer-advanced > .pp-composer-options { padding: 12px 14px 0; margin: 0; }
.pp-composer-advanced > .pp-composer-options { padding-bottom: 6px; }
.pp-composer-actions.toolbar { display: flex; justify-content: flex-start; gap: 9px; margin: 12px 0 0; }
.pp-composer-actions > [data-action="panel:queue-message"] { margin-left: auto; min-width: 128px; }
.pp-composer > .field { margin-bottom: 12px; }
.pp-composer > .field textarea { min-height: 90px; }
.pp-conversations .pp-thread-header > .toolbar { justify-content: flex-start; }
@media (max-width: 600px) {
  .pp-conversation-audit > summary { padding: 12px 16px; }
  .pp-composer-actions { align-items: stretch; }
  .pp-composer-actions > .button { flex: 1 1 140px; min-height: 40px; }
  .pp-composer-actions > [data-action="panel:queue-message"] { flex-basis: 100%; margin-left: 0; }
  .pp-composer-advanced > summary { font-size: 12px; }
}

/* Desktop messaging is a viewport workspace: only the transcript and side panes scroll.
   Expanded composer controls have their own scroll area with send actions retained. */
@media (min-width: 1181px) and (min-height: 700px) {
  .studio-view-chat .workspace-body, .studio-view-roundtables .workspace-body { padding-top: 14px; padding-bottom: 16px; }
  .pp-conversations .pp-heading { margin-bottom: 10px; gap: 16px; }
  .pp-conversations .pp-heading h2 { font-size: 25px; margin-bottom: 3px; }
  .pp-conversations .pp-heading p { font-size: 12px; }
  .pp-conversations > .pp-note { margin: 0; padding: 4px 10px 7px; min-height: 25px; }
  .pp-conversation-layout {
    height: max(340px, calc(100dvh - var(--pp-layout-top, 270px) - 16px));
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
  }
  .pp-conversation-layout > .pp-room-list,
  .pp-conversation-layout > .pp-context { min-height: 0; max-height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #c4cdb9 transparent; }
  .pp-conversation-layout > .pp-thread { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .pp-thread-header { flex: 0 0 auto; padding: 13px 19px 12px; row-gap: 9px; column-gap: 14px; }
  .pp-thread-title-line { margin-bottom: 4px; }
  .pp-thread-title-line h3 { font-size: 18px; margin-bottom: 0; }
  .pp-thread-description { font-size: 12px; line-height: 1.5; margin-bottom: 8px; max-height: 54px; overflow-y: auto; }
  .pp-project-tags { gap: 5px; }
  .pp-project-tags .pp-context-link.badge { font-size: 10px; padding: 3px 8px; }
  .pp-thread-header .toolbar .button { min-height: 29px; padding: 4px 8px; font-size: 11px; }
  .pp-thread-header .pp-connection { font-size: 10px; }
  .pp-conversation-audit { flex: 0 0 auto; max-height: 20%; overflow-y: auto; scrollbar-width: thin; }
  .pp-conversation-audit > summary { padding: 8px 18px; background: #f4f5ec; position: sticky; top: 0; z-index: 1; }
  .pp-concluded-banner { flex: 0 0 auto; max-height: 25%; overflow-y: auto; padding: 10px 18px; }
  .pp-timeline { flex: 1 1 180px; min-height: 64px; max-height: none; padding: 20px; gap: 22px; overscroll-behavior-y: contain; }
  .pp-composer { flex: 0 1 auto; min-height: 165px; max-height: clamp(205px, 29dvh, 320px); overflow-y: auto; overflow-x: hidden; padding: 12px 18px 0; scrollbar-width: thin; scrollbar-color: #c4cdb9 transparent; scroll-padding-block: 12px 70px; overscroll-behavior-y: contain; }
  .pp-composer > .field { gap: 6px; margin-bottom: 8px; }
  .pp-composer > .field textarea { min-height: 60px; max-height: 150px; padding: 9px 11px; line-height: 1.5; }
  .pp-composer .pp-note { font-size: 10px; padding-top: 5px; padding-bottom: 7px; line-height: 1.5; }
  .pp-composer .pp-elo-corrections { margin: 8px 0; padding: 8px 10px; }
  .pp-composer-advanced { margin: 8px 0; }
  .pp-composer-advanced > summary { padding: 8px 10px; font-size: 11px; }
  .pp-composer-actions.toolbar { position: sticky; bottom: 0; z-index: 2; background: var(--surface, #fffefa); box-shadow: 0 -8px 12px #fffefae8; border-top: 1px solid var(--line); padding: 9px 0 8px; margin: 6px 0 0; gap: 8px; }
  .pp-composer-actions .button { min-height: 34px; font-size: 11px; padding: 7px 10px; }
  .pp-composer-actions > [data-action="panel:queue-message"] { min-width: 115px; }
  .studio-shell:has(.demo-toolbar-disclosure[open]) .pp-conversation-layout,
  .studio-shell:has(.workspace-body > .notice.warning) .pp-conversation-layout { height: auto; min-height: 560px; }
  .studio-shell:has(.demo-toolbar-disclosure[open]) .pp-thread,
  .studio-shell:has(.workspace-body > .notice.warning) .pp-thread { min-height: 560px; }
  .studio-shell:has(.demo-toolbar-disclosure[open]) .pp-timeline,
  .studio-shell:has(.workspace-body > .notice.warning) .pp-timeline { max-height: 480px; }
  .studio-shell:has(.demo-toolbar-disclosure[open]) .pp-room-list,
  .studio-shell:has(.demo-toolbar-disclosure[open]) .pp-context,
  .studio-shell:has(.workspace-body > .notice.warning) .pp-room-list,
  .studio-shell:has(.workspace-body > .notice.warning) .pp-context { max-height: 1000px; }
}
@media (min-width: 1181px) and (min-height: 700px) and (max-height: 780px) {
  .pp-conversations .pp-heading h2 { font-size: 22px; }
  .pp-conversations .pp-heading p { display: none; }
  .pp-thread-header { padding: 10px 16px; gap: 7px 12px; }
  .pp-thread-title-line h3 { font-size: 17px; }
  .pp-thread-description { font-size: 11px; margin-bottom: 6px; max-height: 34px; }
  .pp-thread-header .toolbar .button { min-height: 27px; font-size: 10px; }
  .pp-timeline { padding: 14px 17px; gap: 18px; }
  .pp-composer { padding-top: 9px; }
  .pp-composer > .field textarea { min-height: 56px; }
}
@media (min-width: 1181px) and (min-height: 700px) {
  .pp-conversations > .pp-heading > .toolbar { margin: 0; }
  .pp-conversations .pp-heading { margin-bottom: 4px; }
  .pp-thread-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: start; }
  .pp-thread-title-line { grid-column: 1; grid-row: 1; margin: 0; }
  .pp-thread-title .pp-project-tags { grid-column: 2; grid-row: 1; max-width: 260px; justify-content: flex-end; }
  .pp-thread-title .pp-thread-description { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .pp-composer { display: flex; flex-direction: column; }
  .pp-composer > * { flex: 0 0 auto; }
  .pp-composer-advanced { order: 3; }
  .pp-composer > .pp-elo-corrections { order: 4; }
  .pp-composer-actions.toolbar { order: 6; }
  .pp-composer > .pp-note:last-child { order: 7; }
}
@media (min-width: 1181px) and (min-height: 700px) and (max-height: 780px) {
  .studio-view-chat .topbar, .studio-view-roundtables .topbar { height: 44px; }
  .studio-view-chat .context-bar, .studio-view-roundtables .context-bar { padding-top: 5px; padding-bottom: 5px; min-height: 29px; }
  .studio-view-chat .workspace-body, .studio-view-roundtables .workspace-body { padding-top: 10px; }
  .studio-view-chat .demo-toolbar-disclosure, .studio-view-roundtables .demo-toolbar-disclosure { margin-bottom: 9px; }
  .pp-conversations > .pp-note { padding-top: 2px; padding-bottom: 5px; min-height: 22px; }
  .pp-composer > .field textarea { height: 58px; min-height: 58px; }
  .pp-thread-title .pp-project-tags { max-width: 240px; }
}
@media (min-width: 1181px) and (min-height: 700px) {
  .pp-composer-advanced:not([open]) { position: sticky; bottom: 53px; z-index: 2; box-shadow: 0 -5px 9px #fffefae8; background: #f8f9f2; }
  .pp-conversations .pp-heading p { display: none; }
  .studio-view-chat .demo-toolbar-disclosure, .studio-view-roundtables .demo-toolbar-disclosure { margin-bottom: 9px; }
  .studio-view-chat .demo-toolbar-disclosure > summary, .studio-view-roundtables .demo-toolbar-disclosure > summary { padding-top: 6px; padding-bottom: 6px; }
  .pp-conversations > .pp-note { padding-top: 2px; padding-bottom: 5px; min-height: 22px; }
}
.pp-conversation-availability { background: #fbf3e2; border-bottom: 1px solid #e5d9bc; min-width: 0; }
.pp-conversation-availability > summary { cursor: pointer; padding: 9px 18px; color: #795c26; font-size: 12px; line-height: 1.5; background: #fbf3e2; }
.pp-conversation-availability .pp-availability-note { margin: 0; border-radius: 0; }
@media (min-width: 1181px) and (min-height: 700px) {
  .pp-thread > [data-room-availability] { flex: 0 0 auto; min-height: 0; max-height: 20%; overflow-y: auto; scrollbar-width: thin; }
  .pp-conversation-availability > summary { position: sticky; top: 0; z-index: 1; padding: 7px 18px; font-size: 11px; }
  .pp-thread:has(.pp-conversation-availability[open]):has(.pp-conversation-audit[open]),
  .pp-thread:has(.pp-concluded-banner) { overflow-y: auto; scrollbar-width: thin; }
}
@media (min-width: 1181px) and (min-height: 700px) {
  .pp-thread-header { max-height: clamp(130px, 20dvh, 180px); overflow-y: auto; scrollbar-width: thin; }
}
.pp-secret-room { border: 1px solid var(--line,#e8e5ed); border-radius: 8px; background: #f7f9fb; padding: 8px 10px; margin: 8px 0; flex: 0 0 auto; max-height: 300px; overflow: auto; min-width: 0; }
.pp-secret-room summary { cursor: pointer; font-weight: 650; font-size: 12px; color: #354556; }
.pp-secret-card { border: 1px solid #dce3eb; border-radius: 9px; background: white; padding: 12px; margin: 9px 0; display: grid; gap: 7px; overflow-wrap: anywhere; }
.pp-secret-card > div { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.pp-secret-card p,.pp-secret-card small { margin: 0; color: #596473; }
.pp-secret-card button { justify-self: start; }
.pp-secret-details dd { margin: 4px 0 12px; overflow-wrap: anywhere; }
.pp-secret-recipients { display: grid; gap: 8px; }
.pp-secret-recipient { border: 1px solid #dce3eb; border-radius: 8px; padding: 10px; }
.pp-secret-recipient small,.pp-secret-recipient code { display: block; overflow-wrap: anywhere; }
.pp-secret-value { width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; }
.pp-secret-room:not(:has(details[open])) { padding-block: 2px; }
.pp-secret-keys dd { margin-inline-start: 0; overflow-wrap: anywhere; }
@media (min-width: 1181px) and (min-height: 700px) {
  .pp-composer-actions.toolbar:has([data-action="secret:send"]) { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .pp-composer-actions.toolbar:has([data-action="secret:send"]) > .button { min-width: 0; padding-inline: 5px; min-height: 34px; line-height: 1.2; }
}

/* Retain every character, with keyboard-accessible bounded long-message layout. */
.pp-message-text-long { max-height: 30rem; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.pp-message-text-long:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pp-history-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; padding:.5rem .75rem; border-bottom:1px solid var(--border, #e1e6ed); }
.pp-history-navigation > .toolbar { min-width:0; margin:0; gap:.5rem; }
.pp-history-navigation > .toolbar:first-child { flex:1 1 auto; }
.pp-history-search { flex:1 1 15rem; align-items:end; }
.pp-history-search > .field { flex:1 1 8rem; min-width:8rem; margin:0; gap:.25rem; }
/* The field is a column: give horizontal space to its label, never a vertical flex basis to the input. */
.pp-history-navigation input[type="search"] { flex:0 0 auto; min-width:0; width:100%; }
.pp-history-navigation [role="status"] { flex:0 1 auto; overflow-wrap:anywhere; font-size:.8rem; }
.pp-history-results { flex:1 1 100%; min-width:0; }
@media (min-width:1181px) and (min-height:700px) {
  .pp-thread > .pp-history-navigation { flex:0 1 auto; min-height:39px; max-height:30%; overflow:auto; align-items:flex-start; padding:4px 8px; gap:6px; scrollbar-width:thin; }
  .pp-history-navigation > .toolbar { flex-wrap:nowrap; }
  .pp-history-search { flex-basis:14rem; }
  .pp-history-navigation .button { min-height:28px; padding:5px 8px; font-size:11px; }
  .pp-history-search > .field { font-size:0; gap:0; }
  .pp-history-search input[type="search"] { min-height:30px; height:30px; padding:6px 8px; font-size:12px; }
  .pp-thread > .pp-thread-header { flex-shrink:1; min-height:80px; }
  .pp-thread > .pp-conversation-audit { flex-shrink:1; min-height:35px; }
  .pp-thread > .pp-composer { min-height:220px; }
  .pp-composer > .field + div { order:5; }
}
@media (min-width:1181px) and (min-height:700px) and (max-height:780px) {
  .pp-thread > .pp-composer { min-height:190px; }
}
.pp-history-navigation button { white-space:nowrap; }
[data-view-loading]:not([hidden]) { display:flex; gap:.75rem; align-items:center; padding:.65rem .85rem; margin-bottom:.75rem; border:1px solid var(--border, #e1e6ed); border-radius:.5rem; font-size:.85rem; }
