.p59-sheet,.p59-thread{--msg-surface:var(--surface,#fff);--msg-ink:var(--ink,#14332e);--msg-line:var(--line,#d7e4df);color:var(--msg-ink);background:var(--msg-surface);font:inherit}
html[data-theme=dark] :is(.p59-sheet,.p59-thread){--msg-surface:#17272c;--msg-ink:#edf5f0;--msg-line:#395157}
.p59-sheet{width:min(26rem,calc(100vw - 2rem));max-height:85dvh;overflow:auto;border:1px solid var(--msg-line);padding:1.2rem;border-radius:20px;box-shadow:0 18px 70px #0004}
.p59-sheet::backdrop{background:#0a2027a3}
.p59-sheet header,.p59-thread header,.p59-actions,.p59-compose{display:flex;align-items:center;gap:.6rem}
.p59-sheet h2{margin:0;font-size:1.2rem;color:inherit}.p59-sheet header{justify-content:space-between;margin-bottom:1rem}
.p59-sheet button,.p59-thread button,.p59-contact-name{color:inherit;font:inherit;cursor:pointer}
.p59-sheet button,.p59-thread button{background:transparent;border:1px solid var(--msg-line);border-radius:.7rem;padding:.45rem .7rem}
.p59-sheet button:disabled,.p59-thread button:disabled{opacity:.5;cursor:default}
.p59-choice{display:block;width:100%;text-align:left;margin:.5rem 0}.p59-sheet form{display:grid;gap:.6rem}
.p59-sheet input,.p59-compose textarea{font:inherit;color:inherit;border:1px solid var(--msg-line);background:var(--msg-surface);border-radius:.65rem;padding:.65rem;min-width:0}
.p59-people{max-height:32vh;overflow:auto;display:grid;gap:.2rem}.p59-people button{text-align:left}.p59-picked{display:flex;flex-wrap:wrap;gap:.25rem}.p59-picked button{font-size:.82rem}
.p59-sheet .p59-primary,.p59-thread .p59-primary{background:#076850;color:white;font-weight:650}
.p59-new{min-width:2.5rem;min-height:2.5rem;border:0;border-radius:50%;font-size:1.6rem;cursor:pointer;color:inherit;background:transparent}
.p59-contact-name{border:0;background:transparent;text-align:left;padding:0;font-weight:700}.p59-contact-name:hover{text-decoration:underline}.p59-identity{flex:1;min-width:0}.c45-contact-row .p59-identity .c45-contact{width:100%;padding:.18rem 0;text-align:left;min-height:1.75rem}
.p59-portrait{aspect-ratio:1;border-radius:.85rem;background:#dcece5;color:#14523d;display:grid;place-items:center;overflow:hidden;font-size:4rem}.p59-portrait img{width:100%;height:100%;object-fit:contain}
.p59-actions{justify-content:space-between;margin-top:1rem}.p59-actions button{flex:1;display:grid;justify-items:center;gap:.35rem;border:0;font-size:.8rem;padding:.3rem}.p59-actions svg{color:#139570}
.p59-thread{height:100%;min-height:0;width:100%;display:flex;flex-direction:column}.p59-thread header{padding:.55rem .8rem;border-bottom:1px solid var(--msg-line)}.p59-thread header div{flex:1;min-width:0}.p59-thread header small{display:block}.p59-log{overflow:auto;min-height:0;flex:1;padding:.8rem;display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.p59-log article{max-width:85%;background:#f1f5f2;border-radius:.8rem;padding:.5rem .65rem;color:#14352e;overflow-wrap:anywhere}.p59-log .is-own{align-self:flex-end;background:#dbf5d5}.p59-log article p{margin:.12rem 0;white-space:pre-wrap}.p59-log time,.p59-log strong{font-size:.78rem}.p59-log time{display:block;text-align:right}.p59-compose{padding:.6rem;border-top:1px solid var(--msg-line)}.p59-compose textarea{flex:1}.p59-status{font-size:.9rem;padding:0 .65rem}.p59-status:empty{display:none}.p59-sheet [hidden],.p59-thread [hidden]{display:none!important}
.p55-photo-previews>div{display:grid;gap:.25rem}.p55-photo-previews button{font:inherit;cursor:pointer}.p55-contribution-card .p59-camera{margin-top:.5rem}
@media(max-width:600px){.p59-sheet{padding:1rem}.p59-actions{gap:.15rem}.p59-compose{padding-bottom:max(.6rem,env(safe-area-inset-bottom))}}

.p59-sheet>input[type=search]{width:100%;box-sizing:border-box}.p59-recipients{max-height:55dvh;overflow:auto}.p59-recipients h3{color:inherit;font-size:.87rem;margin:1rem 0 .3rem}.p59-recipient{display:block;width:100%;text-align:left;margin:.2rem 0}.p59-recipient strong,.p59-recipient small{display:block}.p59-recipient small{margin-top:.18rem}.p59-location{align-self:flex-start;margin:.25rem .7rem;border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
