.tmsf-assessments,.tmsf-editor{--sf-border:#dedee4;--sf-surface:#fafafa;--sf-muted:#696970;--sf-track:#ececef;--sf-pos:#23865d;--sf-neg:#bd414b;color:inherit;font:inherit;text-align:left}
.tmsf-card{border:1px solid var(--sf-border);border-radius:16px;margin:18px 0;background:var(--sf-surface);overflow:hidden}
.tmsf-assessments .tmsf-card>.tmsf-card-title,.tmsf-editor .tmsf-card>.tmsf-card-title{margin:0;padding:20px 22px;font-family:inherit;font-size:1em;line-height:1.5;font-weight:600;text-align:left;color:inherit}
.tmsf-editor button:focus-visible{outline:2px solid #007aff;outline-offset:-3px}
.tmsf-card-body{padding:0 22px 22px}.tmsf-psych{padding:14px 0 12px;border-bottom:1px solid var(--sf-border);margin-bottom:20px}.tmsf-psych p{margin:7px 0!important;font-size:.9em!important;line-height:1.6!important}
.tmsf-assessments .tmsf-small,.tmsf-date,.tmsf-editor .tmsf-small{font-size:.85em!important;color:var(--sf-muted);line-height:1.55}
.tmsf-row{margin:20px 0 0}.tmsf-labels{display:flex;justify-content:space-between;gap:18px;font-size:.95em;line-height:1.4}.tmsf-labels>span{color:var(--sf-muted)}.tmsf-labels strong{text-align:right;font-weight:600}
.tmsf-value{display:inline-block;margin-left:8px;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:500}.tmsf-value.tmsf-positive{color:var(--sf-pos)}.tmsf-value.tmsf-negative{color:var(--sf-neg)}.tmsf-unassessed,.tmsf-neutral{color:var(--sf-muted)}
.tmsf-track{height:8px;background:var(--sf-track);border-radius:5px;position:relative;margin:14px 0 8px}.tmsf-fill{position:absolute;top:0;height:8px;border-radius:4px}.tmsf-fill.tmsf-positive{background:var(--sf-pos)}.tmsf-fill.tmsf-negative{background:var(--sf-neg)}.tmsf-zero{position:absolute;left:50%;height:16px;width:2px;top:-4px;background:currentColor;transform:translateX(-1px)}
.tmsf-axis{display:flex;justify-content:space-between;color:var(--sf-muted);font-size:.85em;margin-top:14px;font-variant-numeric:tabular-nums}.tmsf-belief-notes{border-top:1px solid var(--sf-border);margin-top:20px;padding-top:16px}.tmsf-assessments .tmsf-belief-notes p,.tmsf-assessments .tmsf-reflection{font-size:.95em!important;line-height:1.55!important;margin:8px 0!important;white-space:normal;overflow-wrap:anywhere}.tmsf-prompt{font-size:.95em!important}
.tmsf-editor{padding:26px 30px;max-width:780px;margin:0 auto;width:100%;box-sizing:border-box}.tmsf-editor h2{font:600 1.25em/1.4 -apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif}.tmsf-editor label{display:block;margin:12px 0}.tmsf-editor label>span{display:block;font-size:.9em;margin-bottom:7px}.tmsf-editor select,.tmsf-editor textarea{font:inherit;color:inherit;background:var(--sf-surface);border:1px solid var(--sf-border);border-radius:7px;padding:9px 11px;box-sizing:border-box;max-width:100%}.tmsf-editor textarea{display:block;width:100%;resize:vertical;line-height:1.5}.tmsf-editor .tmsf-score-select{display:flex;align-items:center;gap:14px}.tmsf-editor .tmsf-score-select>span{margin:0}.tmsf-editor .tmsf-criterion{border-top:1px solid var(--sf-border);margin-top:20px;padding-top:4px}.tmsf-history{padding:16px;border:1px solid var(--sf-border);border-radius:12px}.tmsf-history button{margin-top:8px}.tmsf-history select{width:100%}.tmsf-editor .tmsf-live-note{margin:7px 0;color:var(--sf-muted);font-size:.85em}
[data-tm-theme="dark"] .tmsf-assessments,[data-tm-theme="dark"] .tmsf-editor,[data-appearance="dark"] .tmsf-assessments,[data-appearance="dark"] .tmsf-editor{--sf-border:#45454d;--sf-surface:#242428;--sf-muted:#b1b1ba;--sf-track:#424249;--sf-pos:#67d6a5;--sf-neg:#ff939b}
@media(prefers-color-scheme:dark){html:not([data-tm-theme="light"]):not([data-appearance="light"]) .tmsf-assessments,html:not([data-tm-theme="light"]):not([data-appearance="light"]) .tmsf-editor{--sf-border:#45454d;--sf-surface:#242428;--sf-muted:#b1b1ba;--sf-track:#424249;--sf-pos:#67d6a5;--sf-neg:#ff939b}}
@media(max-width:600px){.tmsf-assessments .tmsf-card>.tmsf-card-title,.tmsf-editor .tmsf-card>.tmsf-card-title{padding:17px}.tmsf-card-body{padding:0 17px 17px}.tmsf-labels{font-size:.86em;gap:10px}.tmsf-value{display:block;margin-left:0;margin-top:3px}.tmsf-editor{padding:22px 16px}}

.tmsf-assessments h2,.tmsf-editor h3{font-family:inherit;line-height:1.4}
.tmpr-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.tmpr-wide{grid-column:1/-1}.tmpr-editor input[type=text]{width:100%;box-sizing:border-box;font:inherit;color:inherit;background:var(--sf-surface);border:1px solid var(--sf-border);border-radius:7px;padding:9px 11px}.tmpr-note-field{margin:16px 0 0}.tmpr-note-tools{display:flex;gap:6px;margin-bottom:8px}.tmpr-note-tools button{font:inherit;color:inherit;background:var(--sf-surface);border:1px solid var(--sf-border);border-radius:6px;padding:5px 10px;cursor:pointer}.tmpr-note-editor{min-height:110px;padding:12px;border:1px solid var(--sf-border);border-radius:7px;line-height:1.55;overflow-wrap:anywhere}.tmpr-note-editor p{font-size:inherit!important;line-height:inherit!important;margin:0 0 .8em!important}.tmpr-note-editor:empty:before{content:attr(data-placeholder);color:var(--sf-muted)}.tmpr-note-editor:focus{outline:2px solid #007aff;outline-offset:1px}.tmpr-note-editor[aria-disabled=true]{opacity:.65}.tmpr-note-editor a{color:#007aff}.tmpr-editor .tmsf-history h3{margin:0 0 10px}.tmpr-editor small{color:var(--sf-muted)}
@media(max-width:450px){.tmpr-input-grid{grid-template-columns:minmax(0,1fr)}}

/* The assessment form scrolls inside the fixed mailbox editor controls. */
.tm-app[data-editor] .tm-editor-assessments-scroll{flex:1 1 0%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;outline:none}
.tm-editor-assessments-scroll>.tm-editor-writing{height:clamp(280px,50dvh,560px);min-height:280px;flex:none}
.tm-editor-assessments-scroll:focus-visible{outline:2px solid var(--tm-blue,#007aff);outline-offset:-2px}
