#project-dialog .tpm-form[hidden],
#project-dialog .tpm-form [hidden] {display:none!important}
#project-dialog.tpm-compose > :is(.dialog-intro,.project-empty,.project-items,.project-actions) {display:none}
#project-dialog .tpm-form {margin-top:16px}
#project-dialog .tpm-form h3 {margin:0 0 8px;font:400 clamp(23px,3vw,30px)/1.2 Georgia,serif}
#project-dialog .tpm-form p {margin:8px 0 14px}
#project-dialog .tpm-form label {display:block;margin:11px 0;font-size:14px;font-weight:600}
#project-dialog .tpm-form :is(input,textarea) {width:100%;margin-top:5px;border:1px solid #aeb8c6;border-radius:6px;padding:8px 10px;background:#fff;color:#192841;font:inherit;font-weight:400}
#project-dialog .tpm-form textarea {resize:vertical}
#project-dialog .tpm-notes {padding:10px 0;border-block:1px solid #ded8cd}
#project-dialog .tpm-notes summary {cursor:pointer;font-weight:600}
#project-dialog .tpm-actions {display:flex;flex-wrap:wrap;gap:12px;align-items:center}
#project-dialog .tpm-status {overflow-wrap:anywhere}
#project-dialog .tpm-status:not(:empty) {margin:14px 0 0;padding:13px 15px;border-radius:8px;background:#f2eee7;color:#192841}
#project-dialog .tpm-status:is([data-state="success"],[data-state="partial"]) {display:flex;align-items:flex-start;gap:12px}
#project-dialog .tpm-status[data-state="success"] {color:#143629;background:#e6f1e8;border:1px solid #b2d3bb}
#project-dialog .tpm-status:is([data-state="partial"],[data-state="error"]) {color:#683b17;background:#f8ede0;border:1px solid #e6c6a9}
#project-dialog .tpm-status p {margin:4px 0 0;color:inherit}
#project-dialog .tpm-status-icon {display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#286648;color:#fff;font-size:19px;font-weight:700}
#project-dialog [data-state="partial"] .tpm-status-icon {background:#86532a}
@media (prefers-reduced-motion:no-preference) {
    #project-dialog .tpm-status[data-state="success"] .tpm-status-icon {animation:tpm-confirm .32s ease-out both}
}
@keyframes tpm-confirm {
    0% {transform:scale(.62);opacity:.2}
    70% {transform:scale(1.13);opacity:1}
    100% {transform:scale(1);opacity:1}
}
#project-dialog .tpm-swatch-heading {display:flex;align-items:center;gap:10px}
#project-dialog .tpm-note-swatch {display:inline-block;width:36px;height:29px;flex:none;border:1px solid #c8c0b5;border-radius:4px}
.tpm-arithmetic {margin:14px 0;padding:10px 12px;border:1px solid #ded8cd;border-radius:7px;background:#f6f3ed;color:#192841}
.tpm-arithmetic label {display:block;font-weight:600}
.tpm-arithmetic .tpm-question {display:block;margin:4px 0;font-weight:700}
.tpm-arithmetic input[name=tpm_math_answer] {display:block;max-width:76px;padding:6px 9px;border:1px solid #aeb8c6;border-radius:5px}
.tpm-arithmetic .tpm-math-feedback {margin:5px 0;color:#7a3d16}
.tpm-arithmetic .tpm-math-feedback:empty,.tpm-arithmetic [hidden] {display:none!important}
#project-dialog .tpm-note-fields {
    max-height:clamp(150px,34dvh,300px);
    overflow-y:auto;
    overscroll-behavior-y:auto;
    padding-right:4px;
}
