.tmpf-summary,.tmpf-dialog{--sf-border:#dedee4;--sf-surface:#fff;--sf-muted:#696970;--sf-track:#ececef;--sf-pos:#23865d;--sf-neg:#bd414b;color:var(--tm-text,#242426);font:inherit;text-align:left;box-sizing:border-box}
.tmpf-footer{max-width:680px;margin:28px auto 0;position:sticky;top:var(--tmpf-sticky-top,0);z-index:3;padding-bottom:12px}
.tm-thread>article.tm-message:has(>.tmpf-footer){min-height:100%;padding-bottom:12px}
.tmpf-footer>.tmv-verification{position:static;max-width:none;width:100%;margin:12px 0 0}
.tmpf-summary{display:block;width:100%;margin:0;padding:16px;border:1px solid var(--sf-border);border-radius:16px;background:var(--sf-surface);cursor:pointer;appearance:none;-webkit-appearance:none;box-shadow:0 2px 12px #00000003;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.4}
.tmpf-summary:hover{border-color:var(--tm-muted,#a5a5ad)}.tmpf-summary:focus-visible{outline:2px solid #007aff;outline-offset:3px}
.tmpf-summary-head,.tmpf-summary-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.tmpf-summary-head{margin-bottom:12px;font-size:12px}.tmpf-summary-head strong{font-size:14px;font-weight:600}.tmpf-summary-head>span,.tmpf-summary-foot{color:var(--sf-muted)}
.tmpf-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 10px}.tmpf-cell{min-width:0}.tmpf-label{display:flex;justify-content:space-between;gap:4px;font-size:11px;color:var(--sf-muted);white-space:nowrap}.tmpf-score{font-size:10px;font-variant-numeric:tabular-nums}.tmpf-cell .tmsf-track{display:block;height:7px;margin:8px 0 1px}.tmpf-cell .tmsf-fill{height:7px}.tmpf-cell .tmsf-zero{height:12px;top:-2.5px;width:1px;transform:none;background:#85858b}.tmpf-cell .tmsf-fill.tmsf-positive{background:var(--sf-pos)}.tmpf-cell .tmsf-fill.tmsf-negative{background:var(--sf-neg)}
.tmpf-summary-foot{margin-top:12px;font-size:11px}.tmpf-summary-proof{display:flex;align-items:center;gap:5px}.tmpf-summary-proof svg{width:13px;height:15px;flex:none}.tmpf-view{white-space:nowrap}.tmpf-summary-date{display:block;margin:0 0 4px;font-size:10px;color:var(--sf-muted)}.tmpf-changed{font-weight:500;color:var(--tm-text,#38383c)}
.tm-post-actions .tmpf-author-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:6px;box-sizing:border-box;width:auto;min-width:0;height:23px;min-height:0!important;margin:0;padding:3px 0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none;line-height:17px;color:var(--tm-muted);font-family:var(--tm-ui)!important;font-size:12px;cursor:pointer;-webkit-appearance:none;appearance:none}
.tm-post-actions .tmpf-author-button svg{display:block;flex:none;width:17px;height:17px;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.tm-post-actions .tmpf-author-button:focus-visible{outline:2px solid var(--tm-blue);outline-offset:4px}
.tm-post-actions .tmpf-author-button{white-space:nowrap}.tm-post-actions:has(.tmpf-author-button){flex-wrap:wrap}
.tmpf-dialog{width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--sf-border);border-radius:18px;background:var(--sf-surface);box-shadow:0 20px 80px #0003;overflow:hidden;font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.tmpf-dialog[open]{display:flex;flex-direction:column}.tmpf-dialog::backdrop{background:#0005;backdrop-filter:blur(4px)}
.tmpf-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--sf-border);flex:none}.tmpf-dialog h2{font-size:20px;line-height:1.3;font-weight:600;margin:0}.tmpf-dialog-title{font:600 20px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;margin:0!important}.tmpf-post-title{font-size:12px;color:var(--sf-muted);margin:5px 0 0}.tmpf-close{font:24px/1 sans-serif!important;border:0!important;padding:4px 7px!important;flex:none}
.tmpf-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 22px;-webkit-overflow-scrolling:touch}.tmpf-dialog p{margin:0 0 14px;font:inherit;color:inherit}.tmpf-dialog .tmsf-small,.tmpf-dialog .tmpf-meta{font-size:12px!important;color:var(--sf-muted);line-height:1.55}.tmpf-dialog .tmpf-meta{margin:10px 0}.tmpf-dialog h3{font:600 16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:20px 0 10px}.tmpf-dialog .tmsf-row{margin:20px 0}.tmpf-dialog .tmsf-reflection{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0}.tmpf-dialog .tmsf-belief-notes p{white-space:pre-wrap;overflow-wrap:anywhere}
.tmpf-dialog .tmsf-editor{padding:0;max-width:none;--sf-surface:transparent}.tmpf-dialog .tmsf-criterion{padding-top:12px}.tmpf-dialog .tmsf-editor textarea,.tmpf-dialog .tmsf-editor select{background:var(--sf-surface);font-size:15px}.tmpf-dialog label{display:block}.tmpf-dialog .tmpf-history-select{width:100%;margin:8px 0;padding:10px;font:inherit;background:var(--sf-surface);color:inherit;border:1px solid var(--sf-border);border-radius:8px}.tmpf-dialog .tmpf-history{border-top:1px solid var(--sf-border);margin-top:22px;padding-top:5px}
.tmpf-proof{border:1px solid var(--sf-border);border-radius:12px;padding:14px;margin:20px 0}.tmpf-proof dl{font-size:12px;margin:10px 0}.tmpf-proof dt{font-weight:600;margin-top:8px}.tmpf-proof dd{margin:2px 0;overflow-wrap:anywhere}.tmpf-dialog a{color:#007aff}.tmpf-dialog code{font:11px/1.5 ui-monospace,monospace}
.tmpf-dialog-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:14px 22px;border-top:1px solid var(--sf-border);flex:none;background:var(--sf-surface)}.tmpf-dialog-footer [role=status]{font-size:12px;color:var(--sf-muted);flex:1 1 220px}.tmpf-dialog button{font:inherit;border:1px solid var(--sf-border);padding:8px 13px;background:transparent;border-radius:8px;color:inherit;cursor:pointer}.tmpf-dialog button:disabled{opacity:.5;cursor:default}.tmpf-dialog .tmpf-primary{background:#007aff;color:white;border-color:#007aff}.tmpf-dialog :focus-visible{outline:2px solid #007aff;outline-offset:2px}.tmpf-dialog [hidden]{display:none!important}
html[data-tm-theme=dark] .tmpf-summary,html[data-tm-theme=dark] .tmpf-dialog{--sf-border:#45454d;--sf-surface:#242428;--sf-muted:#b1b1ba;--sf-track:#424249;--sf-pos:#67d6a5;--sf-neg:#ff939b;color:#f2f2f7;color-scheme:dark}
@media(prefers-color-scheme:dark){html:not([data-tm-theme=light]):not([data-tm-theme=dark]) .tmpf-summary,html:not([data-tm-theme=light]):not([data-tm-theme=dark]) .tmpf-dialog{--sf-border:#45454d;--sf-surface:#242428;--sf-muted:#b1b1ba;--sf-track:#424249;--sf-pos:#67d6a5;--sf-neg:#ff939b;color:#f2f2f7;color-scheme:dark}}
@media(max-width:620px){.tmpf-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tmpf-summary{padding:14px}.tmpf-summary-head{flex-wrap:wrap;gap:3px}.tmpf-summary-head>span{font-size:11px}.tmpf-summary-foot{flex-wrap:wrap;gap:7px}.tmpf-dialog-header{padding:16px}.tmpf-dialog-body{padding:18px 16px}.tmpf-dialog-footer{padding:12px 16px}.tmpf-dialog .tmsf-labels{font-size:13px}.tmpf-dialog .tmsf-score-select{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:340px){.tmpf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.tmpf-footer{position:static;break-inside:avoid}.tmpf-author-button{display:none!important}}

.tmpf-dialog .tmsf-slider{height:44px;position:relative;cursor:ew-resize;touch-action:pan-y;margin:4px 10px 0;border-radius:6px;outline-offset:3px}
.tmpf-dialog .tmsf-slider .tmsf-track{position:absolute;left:0;right:0;top:18px;margin:0;height:8px;pointer-events:none}
.tmpf-dialog .tmsf-slider .tmsf-thumb{position:absolute;width:18px;height:18px;top:-5px;transform:translateX(-50%);border-radius:50%;background:var(--sf-surface);border:2px solid var(--sf-muted);box-shadow:0 1px 3px #0002}
.tmpf-dialog .tmsf-slider .tmsf-thumb.tmsf-positive{border-color:var(--sf-pos);background:var(--sf-pos)}.tmpf-dialog .tmsf-slider .tmsf-thumb.tmsf-negative{border-color:var(--sf-neg);background:var(--sf-neg)}
.tmpf-dialog .tmsf-slider-scale{display:flex;justify-content:space-between;margin:0 4px;color:var(--sf-muted);font-size:11px;line-height:1.2}.tmpf-dialog .tmsf-no-score{display:flex;gap:8px;margin-top:12px}.tmpf-dialog .tmsf-no-score button{font-size:12px;padding:5px 10px;min-height:32px}.tmpf-dialog .tmsf-no-score button[aria-pressed=true]{background:var(--sf-track);font-weight:600}
.tmpf-dialog [role=slider][aria-disabled=true]{opacity:.5;pointer-events:none}

.tmpf-dialog .tmpf-proof{padding:12px 14px;font-size:12px;line-height:1.5;margin:18px 0}.tmpf-proof-top{display:flex;align-items:center;gap:7px}.tmpf-proof-top svg{width:16px;height:19px;flex:none}.tmpf-proof-top strong{font-size:13px}.tmpf-proof-dates{margin:7px 0;color:var(--sf-muted);font-size:11px}.tmpf-proof-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 16px;font-size:11px;color:var(--sf-muted)}

.tmpf-dialog-footer [role=status]:empty{display:none}

.tmpf-assessment-notes{display:block;margin:12px 0 0;padding-top:10px;border-top:1px solid var(--sf-border);font-size:11px;line-height:1.55;color:var(--sf-muted);white-space:pre-wrap;overflow-wrap:anywhere}.tmpf-dialog .tmpf-assessment-notes{font-size:12px;margin-top:18px}.tmpf-notes-editor{margin-top:24px;padding-top:16px;border-top:1px solid var(--sf-border)}
