.esp-app{max-width:1040px;margin:auto;padding:16px;font:16px/1.5 system-ui,sans-serif;color:#172a54}
.esp-app *{box-sizing:border-box}
.esp-app header{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 18px;background:#173789;border-radius:14px;color:#fff}
.esp-app header img{width:105px;height:44px;object-fit:contain}
.esp-app header h1{flex:1;margin:0;font-size:1.35rem;color:inherit}
.esp-app header a{color:#fff;font-weight:650}
.esp-card{margin-top:14px;padding:16px;background:#fff;border:1px solid #d7e1f4;border-radius:12px}
.esp-card h2{margin:0 0 10px;font-size:1.2rem}
.esp-card summary{font-weight:650;cursor:pointer}
.esp-card form{display:grid;gap:8px;margin-top:12px}
.esp-card label{display:block}
.esp-card :is(textarea,select,input:not([type=checkbox],[type=hidden])){display:block;width:100%;min-width:0;padding:9px;border:1px solid #adc0de;border-radius:8px;background:#fff;color:#172a54;font:inherit}
.esp-card button{justify-self:start;padding:10px 14px;border:1px solid #173789;border-radius:8px;color:#fff;background:#173789;font:inherit;cursor:pointer}
.esp-card button.esp-secondary{color:#173789;background:#fff}
.esp-workspace{display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,2fr);gap:12px}
.esp-contact{display:block;padding:8px 0;border-bottom:1px solid #d7e1f4;color:#173789;overflow-wrap:anywhere}
.esp-contact strong{margin-left:5px;color:#28594b;font-size:.8rem}
.esp-thread{height:clamp(180px,42dvh,440px);overflow:auto;padding:10px;background:#edf2fa;border-radius:8px}
.esp-message{width:fit-content;max-width:90%;margin-bottom:8px;padding:8px 10px;border-radius:8px;background:#fff;overflow-wrap:anywhere}
.esp-message.esp-staff{margin-left:auto;background:#dceee7;color:#1b493a}
.esp-message p{margin:4px 0;white-space:pre-wrap}
.esp-message small{font-size:.72rem}
.esp-app [role=alert]{color:#9d2638}
@media(max-width:620px){.esp-app{padding:9px}.esp-workspace{grid-template-columns:minmax(0,1fr);gap:0}.esp-app header h1{min-width:130px}}
