.mia-home{width:min(100% - 24px,580px);max-height:calc(100dvh - 24px);overflow:auto;
  padding:clamp(16px,4vw,30px);margin:auto;border:1px solid #d5ccbd;border-radius:20px;
  background:#f8f7f4;color:#242b27;font:400 16px/1.5 system-ui;box-sizing:border-box}
.mia-home::backdrop{background:#15201dd1}
.mia-home-identity{display:flex;align-items:center;gap:12px;padding-right:42px}
.mia-home-identity img{width:52px;height:52px;border-radius:50%;object-fit:cover}
.mia-home h2{margin:0;color:#242b27;font:500 27px/1.15 Georgia,serif}
.mia-home p{margin:8px 0}
.mia-home section{margin:15px 0}
.mia-home input:not([type=checkbox]),.mia-home textarea,.mia-home select{display:block;width:100%;
  padding:9px;border:1px solid #9a958a;border-radius:7px;background:white;color:#242b27;font:inherit;box-sizing:border-box}
.mia-home input[type=checkbox]{width:auto;margin-right:6px}
.mia-home textarea{resize:vertical;min-height:70px}
.mia-home label{display:block;margin:9px 0}
.mia-home button{padding:9px 13px;border:1px solid #29382e;border-radius:8px;background:#29382e;color:white;font:600 14px/1.3 system-ui;cursor:pointer}
.mia-home button:disabled{opacity:.55;cursor:wait}
.mia-home .mia-home-close{position:absolute;right:13px;top:13px;padding:4px 10px;font-size:20px}
.mia-home a{color:#284b39;text-decoration:underline;text-underline-offset:3px}
.mia-home-actions{display:flex;gap:8px 16px;align-items:center;flex-wrap:wrap;margin-top:12px}
.mia-home-chatlog{max-height:26vh;overflow:auto;padding-right:6px}
.mia-home-chatlog p{white-space:pre-wrap;overflow-wrap:anywhere;padding:7px 10px;background:#eeebe3;border-radius:7px}
.mia-home-chatlog p[data-role=user]{background:#e2ebe2;margin-left:20px}
.mia-home-preview{font-weight:600;color:#754616}
.mia-home [hidden]{display:none}
