.trouble-fab{position:fixed;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));z-index:90;display:flex;align-items:center;gap:10px;border:1px solid #fff6;border-radius:30px;background:#234d40;color:white;box-shadow:0 4px 18px #183b3433;min-height:52px;padding:12px 18px;font-size:13px;cursor:pointer}
.trouble-fab[hidden]{display:none}.trouble-fab svg{width:24px;height:24px;flex:none}.trouble-fab:hover{background:#173e32}.trouble-fab:focus-visible{outline:3px solid #9fc38f;outline-offset:3px}
body.device-preview-active>.trouble-fab{display:none}
.trouble-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);padding:24px;border:1px solid #d9e2d2;border-radius:22px;background:#fff;color:#203e36;overflow:auto;text-align:start}
.trouble-dialog::backdrop{background:#183b3470;backdrop-filter:blur(3px)}.trouble-dialog *{box-sizing:border-box}.trouble-dialog[open]{display:block}.trouble-dialog [hidden]{display:none!important}
.trouble-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.trouble-heading h2{font-size:22px;margin:0}.trouble-close{border:0;background:transparent;color:#526b60;font-size:28px;line-height:1;min-width:36px;min-height:36px;cursor:pointer;padding:0}
.trouble-intro{margin:6px 0 10px;line-height:1.55}.trouble-muted{font-size:12px;color:#71806e;line-height:1.5}.trouble-form{display:flex;flex-direction:column;gap:10px}.trouble-form>label{font-size:13px;margin-top:7px}.trouble-form textarea{width:100%;min-height:84px;resize:vertical;padding:12px;border:1px solid #cedbc8;border-radius:12px;font:inherit;font-size:14px;color:inherit;background:#fbfcf9}
.trouble-form input[type=file]{width:100%;max-width:100%;font-size:12px;border:0;padding:4px 0;min-height:32px}.trouble-form input::file-selector-button{border:1px solid #cedbc8;border-radius:8px;background:#f3f6ee;color:#234d40;padding:8px 10px;margin-inline-end:8px;cursor:pointer}
.trouble-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.trouble-clock{font-variant-numeric:tabular-nums;direction:ltr;color:#ae3d32}.trouble-recording{color:#a42c23!important;border-color:#cf8079!important;background:#fff2ef!important}.trouble-voice audio,.trouble-report-audio audio{width:100%;height:40px}.trouble-voice{padding:10px;background:#f4f7f0;border-radius:12px}.trouble-voice button{font-size:12px}.trouble-previews{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.trouble-preview{position:relative;aspect-ratio:1}.trouble-preview img{height:100%;width:100%;object-fit:cover;border-radius:10px;background:#edf1e7}.trouble-remove{position:absolute;top:0;right:0;border:1px solid #fff;border-radius:50%;width:26px;height:26px;padding:0;background:#203e36d9;color:#fff;font-size:20px;cursor:pointer}
.trouble-error{color:#a3402e;background:#fff1ec;padding:10px;border-radius:10px;font-size:13px;line-height:1.5;margin:0}.trouble-success{color:#24513b;background:#edf6e8;border-radius:12px;padding:14px;font-size:14px;overflow-wrap:anywhere}.trouble-form>button[type=submit]{width:100%;margin-top:4px;min-height:44px}.trouble-signin a{display:inline-block;margin:10px 0;padding:10px 18px;border-radius:10px;text-decoration:none}
.trouble-admin{width:min(900px,calc(100vw - 24px))}.trouble-admin>.trouble-row{justify-content:space-between}.trouble-report-list{display:grid;gap:16px;margin:16px 0}.trouble-report{padding:18px;border:1px solid #dbe4d5;border-radius:16px;background:#fbfcf9;min-width:0}.trouble-report-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.trouble-report-heading small{display:block;overflow-wrap:anywhere}.trouble-report-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.trouble-report-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin:14px 0}.trouble-image-button{padding:0;border:0;background:transparent;width:100%;display:block;cursor:zoom-in}.trouble-image-button img{width:100%;height:140px;object-fit:cover;border-radius:10px}.trouble-download{display:block;font-size:11px;overflow-wrap:anywhere;margin-top:5px;color:#356951}.trouble-report-audio{margin-top:12px;max-width:480px}.trouble-full-image{display:block;width:100%;max-height:calc(100dvh - 150px);object-fit:contain}.trouble-dialog :focus-visible{outline:3px solid #8cb77c;outline-offset:2px}
body:has(>.trouble-fab) .toast{bottom:86px}
@media(max-width:600px){.trouble-fab{padding:12px;width:52px;height:52px;justify-content:center}.trouble-fab span{display:none}.trouble-dialog{padding:18px;border-radius:18px}.trouble-heading h2{font-size:20px}.trouble-previews{grid-template-columns:repeat(4,minmax(0,1fr))}.trouble-report{padding:12px}.trouble-report-images{grid-template-columns:repeat(2,minmax(0,1fr))}}
