:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#192c27;background:#eeeae1;color-scheme:light;--green:#146455;--mint:#dcf8e8}*{box-sizing:border-box}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;max-width:760px;margin-inline:auto;background:#eeeae1}header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;background:var(--green);padding:12px 16px;color:white;box-shadow:0 2px 5px #0002}h1{font-size:1.1rem;margin:0 0 3px}.heading{flex:1}header p{font-size:.83rem;margin:0;color:#e2f6ee}.avatar{background:#d7e9d5;color:#235a49;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;font-weight:700}button{font:inherit;border:0;cursor:pointer}button:disabled{opacity:.48;cursor:default}button:focus-visible,textarea:focus-visible{outline:3px solid #318ac9;outline-offset:2px}#retry{background:transparent;color:white;font-size:1.6rem;padding:6px 12px}main{flex:1;min-height:45vh;padding:12px 12px 20px}.notice{font-size:.76rem;text-align:center;color:#5b5f55;background:#fffcf2;border-radius:8px;padding:8px;margin:0 0 14px}.system{max-width:90%;background:#fff;border-radius:4px 13px 13px;padding:12px 14px;font-size:.94rem;line-height:1.4;box-shadow:0 1px 2px #0001;margin:0 0 14px}.bubble{margin:0 0 12px auto;max-width:90%;width:max-content;min-width:145px;padding:10px 12px;background:var(--mint);border-radius:13px 4px 13px 13px;box-shadow:0 1px 2px #0001;overflow-wrap:anywhere}.bubble p{white-space:pre-wrap;margin:0 0 6px}.meta{display:block;color:#456459;font-size:.72rem;text-align:right;margin-top:8px}.pending{color:#805619}.received{color:#146455}.bottom{position:sticky;bottom:0;background:#f6f5f1;border-top:1px solid #d9d9d0;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.compose{display:flex;align-items:flex-end;gap:6px}.compose textarea{flex:1;min-width:0;border:1px solid #d8ddd7;border-radius:22px;resize:vertical;max-height:110px;padding:12px;font:inherit;background:white;color:#19342b}.compose button{flex-shrink:0;width:44px;height:44px;display:grid;place-items:center;font-weight:700;font-size:1.4rem;border-radius:50%}#attach{background:#fff;color:#42685c;border:1px solid #d8ddd7}.round{background:var(--green);color:white}#record.recording{background:#a12e2e}#status,.hint{font-size:.79rem;line-height:1.35;color:#4e6258;margin:3px 4px 7px}#status.error{color:#8c2823;font-weight:600}.hint{margin:8px 4px 0}#preview{display:flex;flex-wrap:wrap;gap:6px;max-height:33vh;overflow:auto}.attachment{min-width:100px;max-width:100%;padding:6px 0;font-size:.82rem}.attachment audio{max-width:100%;height:38px;width:260px;display:block}.attachment img{max-width:100%;width:180px;max-height:190px;object-fit:contain;border-radius:8px;display:block;margin:4px 0}.attachment button{background:#fff8;color:#235c49;border:1px solid #a9c3b5;padding:5px 9px;border-radius:7px;font-size:.8rem;margin:4px 5px 0 0}.warn{font-size:.8rem;color:#8a4e17;font-weight:600}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:650px){body{border-inline:1px solid #d5d5ce}main{padding-inline:24px}} 
.attachment video{display:block;width:250px;max-width:100%;max-height:220px;border-radius:8px}.origin-fields{display:grid;gap:4px;margin:6px 0}.origin-fields label{font-size:.75rem;color:#4e6258}.origin-fields input,.origin-fields select{font:inherit;padding:7px;border:1px solid #d8ddd7;border-radius:8px;max-width:100%;background:white}#provenance{font-size:.78rem;margin:4px 4px 8px;color:#4e6258}#provenance summary{cursor:pointer}.shared-card{background:#fff;border:1px solid #cad9cf;border-radius:10px;padding:10px;margin:0 0 10px}.shared-card p{white-space:pre-wrap;overflow-wrap:anywhere}.shared-card button{padding:9px;background:var(--green);color:white;border-radius:8px}.source-note{display:block;font-size:.72rem;color:#4e6258;overflow-wrap:anywhere}
[hidden]{display:none!important}
#e3b-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;background:#d9e8dd;border-radius:12px;margin:12px 0}
#e3b-nav button{min-height:44px;background:transparent;color:#275445;border-radius:9px;padding:3px;font-size:clamp(.78rem,3.8vw,1rem)}
#e3b-nav button[aria-pressed=true]{background:var(--green);color:white;font-weight:650}
#e3b-status{font-size:.92rem;color:#245447}
#e3b-status:empty{display:none}
.field-card,#e3b-panel>details{background:#fffaf0;border:1px solid #d6ddd2;border-radius:11px;padding:12px;margin:0 0 12px;overflow-wrap:anywhere}
#e3b-panel h2{font-size:1.04rem;margin:0 0 10px}
#e3b-panel summary{cursor:pointer;min-height:36px;font-weight:650}
#e3b-panel article{margin:8px 0;padding:8px 0;border-top:1px solid #d6ddd2}
#e3b-panel article p{margin:5px 0}
#e3b-panel form{display:grid;gap:8px;margin:8px 0 12px}
#e3b-panel label{display:grid;gap:3px;margin:2px 0;font-size:.92rem}
#e3b-panel input,#e3b-panel select,#e3b-panel textarea{font:inherit;font-size:1rem;border:1px solid #aebfb2;border-radius:8px;padding:8px;background:white;color:#192c27;min-width:0;min-height:44px}
#e3b-panel input[type=checkbox]{justify-self:start;min-height:auto;width:22px;height:22px;accent-color:var(--green)}
#e3b-panel button,#update{padding:8px 11px;background:var(--green);border-radius:8px;color:white;min-height:44px;margin:2px 5px 2px 0}
#update{background:white;color:var(--green);font-size:.84rem;margin:0}
#e3b-panel small{display:block;color:#53645b}
#history.only-pending [data-state=received]{display:none}

