.tc-test-launcher{position:fixed;left:18px;bottom:18px;z-index:95;border:1px solid #b09ad1;border-radius:30px;padding:12px 18px;background:linear-gradient(120deg,#fff8efed,#e9dff8ed,#dff1ebed);color:#523571;box-shadow:0 5px 22px #58457525;font:700 13px Manrope,system-ui;cursor:pointer;backdrop-filter:blur(16px)}
.tc-test-dialog{width:min(660px,calc(100vw - 28px));max-height:90dvh;padding:0;border:1px solid #c5b2df;border-radius:26px;background:#fffcf8;color:#3f3451;box-shadow:0 24px 90px #38234b40;font:14px/1.6 Manrope,system-ui}.tc-test-dialog::backdrop{background:#30273f70;backdrop-filter:blur(6px)}.tc-test-dialog form{display:flex;flex-direction:column;max-height:89dvh;margin:0}.tc-test-head{position:relative;padding:22px 60px 16px 26px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;background:linear-gradient(120deg,#f5e4da,#eee6fa,#e2f3ec);border-bottom:1px solid #dfd0eb}.tc-test-kicker{font-size:10px;font-weight:800;letter-spacing:.13em;color:#7854a2;margin:0 0 5px}.tc-test-head h2{font-size:24px;line-height:1.3;margin:0}.tc-test-close{position:absolute;top:12px;right:12px;border:1px solid #cdbbdf;border-radius:50%;width:36px;height:36px;background:#fff9;color:#60457c;font-size:24px;cursor:pointer;flex-shrink:0}.tc-test-body{padding:20px 26px;overflow:auto;min-height:0;overscroll-behavior:contain}.tc-test-body h3{font-size:16px;margin:0}.tc-test-help{font-size:12px;color:#71677c;line-height:1.65}.tc-test-field{display:flex;flex-direction:column;gap:6px;margin:14px 0;font-size:13px;font-weight:700}.tc-test-field input,.tc-test-field select,.tc-test-field textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;border:1px solid #d4c0e8;border-radius:13px;padding:11px 12px;background:#ffffffd9;color:#463555;font:400 14px/1.5 Manrope,system-ui}.tc-test-field textarea{resize:vertical;min-height:88px}.tc-test-field input[type=file]{font-size:12px}.tc-test-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tc-test-hint{border-left:3px solid #93c9bc;padding:8px 12px;background:#eff7f3;border-radius:0 10px 10px 0;font-size:12px;color:#3b6460}.tc-test-upload{border:1px dashed #cab6de;border-radius:17px;padding:16px;margin:18px 0;background:#f6f1f945}.tc-test-upload img{max-width:100%;max-height:220px;object-fit:contain;border-radius:10px;margin-bottom:10px}.tc-test-consent{display:flex;align-items:flex-start;gap:8px;font-size:12px;margin-top:14px}.tc-test-consent input{margin-top:5px}.tc-test-footer{padding:16px 26px;border-top:1px solid #e0d2e8;display:flex;justify-content:space-between;gap:14px;background:#fffcf8}.tc-test-primary,.tc-test-secondary{border-radius:13px;padding:11px 17px;font:700 13px/1.5 Manrope,system-ui;cursor:pointer;text-decoration:none;display:inline-block}.tc-test-primary{background:linear-gradient(110deg,#7445b5,#247e93);color:white;border:1px solid transparent}.tc-test-secondary{border:1px solid #d5c0e7;background:#fffc;color:#66468d}.tc-test-error{padding:12px;border:1px solid #deb8bd;background:#fff1f1;color:#853747;border-radius:12px}.tc-test-success{font-size:36px;color:#258d81}.tc-test-dialog :focus-visible,.tc-test-launcher:focus-visible,.tc-testing-admin :focus-visible{outline:3px solid #956cc4;outline-offset:3px}.tc-test-dialog [hidden]{display:none!important}.tc-test-dialog button:disabled{opacity:.6;cursor:wait}
.tc-testing-page{margin:0;background:radial-gradient(ellipse at 0 0,#f9dcc8,transparent 55%),radial-gradient(ellipse at 100% 20%,#e8ddf7,transparent 55%),#fbf7ef;color:#40344f;font:14px/1.65 Manrope,system-ui;min-height:100vh}.tc-testing-header{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1220px;margin:auto;padding:24px}.tc-testing-header img{width:180px}.tc-testing-header nav{display:flex;gap:20px}.tc-testing-header a{color:#66458e}.tc-testing-admin{max-width:1180px;margin:20px auto 80px;padding:0 24px}.tc-testing-admin h1{font-size:38px;letter-spacing:-1.3px;margin:5px 0}.tc-testing-admin h2{font-size:22px;margin:0 0 10px}.tc-testing-tabs{display:flex;gap:10px;margin:24px 0}.tc-testing-tabs button[aria-pressed=true]{background:#66478e;color:#fff;border-color:#66478e}.tc-testing-panel{padding:26px;border:1px solid white;border-radius:25px;background:linear-gradient(125deg,#ffffffc9,#f8f0f6a6,#eef8f2b3);box-shadow:0 8px 35px #6549760a;backdrop-filter:blur(16px);margin:20px 0}.tc-testing-invite{display:flex;align-items:end;gap:18px;flex-wrap:wrap}.tc-testing-invite .tc-test-field{flex:1;min-width:220px;margin:0}.tc-testing-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.tc-testing-stat{background:#ffffffac;padding:18px;border-radius:20px;border:1px solid white}.tc-testing-stat strong{display:block;font-size:30px;color:#694991}.tc-testing-stat span{font-size:12px}.tc-testing-filters{display:flex;gap:15px;flex-wrap:wrap}.tc-testing-filters .tc-test-field{flex:1;min-width:140px}.tc-testing-table{overflow-x:auto} .tc-testing-table table{border-collapse:collapse;width:100%;font-size:13px}.tc-testing-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#796687}.tc-testing-table td,.tc-testing-table th{padding:15px 10px;border-bottom:1px solid #e5d9e9;vertical-align:top}.tc-testing-table td:first-child{max-width:400px;overflow-wrap:anywhere}.tc-testing-table td .tc-test-secondary{padding:7px 10px;font-size:12px;margin:3px}.tc-test-badge{display:inline-block;padding:4px 9px;border-radius:20px;background:#eee5f6;font-size:11px;white-space:nowrap}.tc-test-badge--high{background:#f9e2da;color:#91432e}.tc-test-detail{white-space:pre-wrap;overflow-wrap:anywhere}.tc-test-detail h3{margin:18px 0 4px}.tc-test-detail p{margin:4px 0}.tc-testing-empty{text-align:center;padding:40px;color:#796587}.tc-testing-pagination{display:flex;gap:16px;align-items:center;justify-content:center;margin:18px 0}
@media(max-width:640px){.tc-test-launcher{left:10px;bottom:14px;padding:10px 12px;font-size:11px}.tc-test-head{padding:18px 60px 18px 18px}.tc-test-body{padding:18px}.tc-test-footer{padding:14px 18px}.tc-test-grid{grid-template-columns:1fr;gap:0}.tc-test-head h2{font-size:21px}.tc-testing-header{flex-wrap:wrap;padding:18px}.tc-testing-admin{padding:0 16px}.tc-testing-admin h1{font-size:30px}.tc-testing-panel{padding:18px}.tc-testing-stats{grid-template-columns:1fr 1fr}.tc-test-footer button{padding:11px}.tc-testing-header nav{font-size:12px;gap:12px}}

.tc-test-report-image{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:14px;border:1px solid #dfd2e8;margin:18px 0}
.tc-test-secondary.tc-test-danger{color:#963f58;border-color:#e7bdc9;background:#fff8fa}

/* Patient reporter: one required message, optional details, frozen technical context. */
.tc-test-launcher{left:auto;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));display:inline-flex;align-items:center;gap:10px;box-sizing:border-box;min-height:56px;padding:8px 20px 8px 10px;border:1px solid #ffffffc9;border-radius:20px;background:linear-gradient(135deg,#8058a9f5,#604184f5 62%,#426b83f5);color:#fff;font:750 13px/1.4 Manrope,system-ui;white-space:nowrap;box-shadow:inset 0 1px 1px #ffffff70,inset 0 -1px 1px #38224f50,0 8px 24px #49315f45,0 0 0 1px #68458a45;backdrop-filter:blur(18px) saturate(1.2);-webkit-backdrop-filter:blur(18px) saturate(1.2);transition:transform .18s ease,box-shadow .18s ease}
.tc-test-launcher:hover{transform:translateY(-2px);box-shadow:inset 0 1px 1px #ffffff90,0 12px 30px #49315f55,0 0 0 1px #68458a60}
.tc-test-launcher:active{transform:translateY(0)}
body:has(.thyromi-launcher:not([hidden]),.bl-thyromi:not([hidden])) .tc-test-launcher{bottom:calc(max(24px,env(safe-area-inset-bottom)) + 94px)}
.tc-test-launcher svg,.tc-test-report svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tc-test-launcher svg{box-sizing:border-box;width:36px;height:36px;padding:7px;border:1px solid #ffffff66;border-radius:12px;background:linear-gradient(140deg,#ffffff30,#ffffff0d);box-shadow:inset 0 1px 0 #ffffff33;stroke-width:1.8}
@media(max-width:760px){.tc-test-launcher{left:auto;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:50px;min-height:50px;padding:8px;justify-content:center;gap:0;border-radius:18px;font-size:12px}.tc-test-launcher>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.tc-test-launcher svg{width:32px;height:32px;padding:6px;border-radius:10px}body:has(.thyromi-launcher:not([hidden]),.bl-thyromi:not([hidden])) .tc-test-launcher{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 82px)}}
@media(prefers-reduced-motion:reduce){.tc-test-launcher{transition:none}.tc-test-launcher:hover{transform:none}}
.tc-test-report{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 28px);border:1px solid #ffffffd9;border-radius:28px;background:linear-gradient(140deg,#fffdfaf5,#f8f5fcf5 65%,#f0f8f6f5);box-shadow:inset 0 1px 0 #fff,0 25px 100px #2b19365c;backdrop-filter:blur(24px)}
.tc-test-report form{max-height:calc(100dvh - 32px)}
.tc-test-report .tc-test-head{flex:none;justify-content:flex-start;align-items:center;gap:14px;padding:24px 58px 20px 24px;background:linear-gradient(125deg,#ffffff96,#f0e9f8bd,#e7f5f2a8);border-color:#ded4e8}
.tc-test-report .tc-test-head h2{font-size:24px;letter-spacing:-.04em;color:#3c2c50;line-height:1.35}
.tc-test-report .tc-test-head .tc-test-help{margin:7px 0 0;color:#6c5b7c;font-size:13px}
.tc-test-report .tc-test-mark{display:flex;align-items:center;justify-content:center;width:46px;height:46px;flex:none;border-radius:15px;background:linear-gradient(140deg,#faf8ff,#e3d5f1);border:1px solid #fff;color:#76519c;box-shadow:inset 0 1px 0 #fff,0 3px 12px #71518a1a}
.tc-test-report .tc-test-close{width:34px;height:34px;background:#ffffffb8;color:#725a86;border-color:#ded3e8}
.tc-test-report .tc-test-body{padding:20px 24px 24px}
.tc-test-page-context{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;background:linear-gradient(120deg,#fff,#f1f5f7b8);border:1px solid #ded7e7;border-radius:16px;box-shadow:inset 0 1px 0 #fff;margin-bottom:22px}
.tc-test-page-context>svg{color:#6d5791;margin-top:3px}.tc-test-page-context>div{min-width:0}.tc-test-page-context strong{font-size:12px;color:#554261}.tc-test-page-context p{margin:2px 0}.tc-test-page-context .tc-test-url{font-size:12px;color:#715c85;overflow-wrap:anywhere;line-height:1.6}.tc-test-page-context .tc-test-help{font-size:11px;color:#85758e}
.tc-test-report .tc-test-field{margin:0 0 10px;gap:9px;font-size:14px;color:#493655}
.tc-test-report .tc-test-field textarea{min-height:116px;background:#fff;border-color:#cdb9df;border-radius:16px;padding:14px;font-size:14px;line-height:1.7;box-shadow:inset 0 1px 0 #fff,0 3px 14px #69458b06}
.tc-test-report .tc-test-field textarea:focus{outline:3px solid #b9a0d22b;outline-offset:0;border-color:#9b78b6}
.tc-test-report .tc-test-field textarea::placeholder{color:#9787a0}
.tc-test-report .tc-test-body>.tc-test-help{margin:0 0 16px;font-size:11px;line-height:1.6}
.tc-test-report .tc-test-upload{padding:0;border:0;background:none;margin:0 0 20px}
.tc-test-report .tc-test-add-image{display:inline-flex;align-items:center;gap:8px;min-height:42px;background:#ffffffb3;border-color:#d8c9e5;font-weight:600;font-size:12px;padding:9px 12px;border-radius:12px}.tc-test-add-image small{font-size:10px;color:#92829e;font-weight:400}
.tc-test-report .tc-test-upload img{display:block;margin:12px 0;max-height:170px;border:1px solid #dfd4e8}.tc-test-report .tc-test-consent{padding:10px 12px;background:#f0eaf650;border-radius:11px;font-size:11px;color:#685376;gap:9px}.tc-test-report .tc-test-consent input{accent-color:#75509b;flex:none;width:16px;height:16px;margin-top:2px}
.tc-test-more,.tc-test-technical{border-top:1px solid #dfd6e8}.tc-test-report summary{padding:13px 0;cursor:pointer;color:#69527e;font-size:12px;font-weight:650}.tc-test-more>div{padding:6px 0 16px}.tc-test-more .tc-test-field{font-size:12px;margin:6px 0 16px}.tc-test-more .tc-test-field textarea{min-height:78px;font-size:13px}.tc-test-more .tc-test-grid{gap:14px}.tc-test-technical>.tc-test-help{font-size:11px}
.tc-test-tech-list{display:grid;grid-template-columns:minmax(95px,.7fr) minmax(0,1.6fr);gap:7px 16px;font-size:12px;line-height:1.65;margin:14px 0}.tc-test-tech-list dt{font-weight:600;color:#705a82}.tc-test-tech-list dd{margin:0;overflow-wrap:anywhere;color:#4f3d5d;white-space:pre-wrap}
.tc-test-diagnostic-detail{margin:20px 0;padding:16px;background:#f3eef6;border:1px solid #ddd1e6;border-radius:16px;white-space:normal}
.tc-test-report .tc-test-footer{flex:none;padding:16px 24px;align-items:center;background:#fffcf8f2;border-color:#ded4e8;box-shadow:0 -5px 18px #5d426b05}
.tc-test-report .tc-test-primary{min-height:46px;padding:12px 22px;background:linear-gradient(120deg,#7955ab,#53477e);border:1px solid #8c73aa;box-shadow:inset 0 1px 0 #ffffff6b,0 4px 12px #694a8626}
.tc-test-report .tc-test-footer .tc-test-secondary{border-color:transparent;background:transparent;color:#7d668e;font-weight:600}
.tc-test-report .tc-test-done{text-align:center;padding:40px 28px}.tc-test-report .tc-test-success{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 16px;border:1px solid #d2e7dd;border-radius:20px;background:#e8f5ef;color:#378b74;font-size:26px}.tc-test-done h2{font-size:24px;letter-spacing:-.03em}.tc-test-done .tc-test-primary{margin-top:16px}
@media(max-width:640px){.tc-test-report{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:23px}.tc-test-report form{max-height:calc(100dvh - 22px)}.tc-test-report .tc-test-head{padding:20px 48px 17px 18px;gap:10px}.tc-test-report .tc-test-mark{width:36px;height:36px;border-radius:12px}.tc-test-report .tc-test-head h2{font-size:21px}.tc-test-report .tc-test-kicker{font-size:8px}.tc-test-report .tc-test-head .tc-test-help{font-size:12px}.tc-test-report .tc-test-body{padding:18px}.tc-test-page-context{margin-bottom:20px;padding:12px}.tc-test-report .tc-test-field textarea,.tc-test-report .tc-test-field select{font-size:16px}.tc-test-report .tc-test-footer{padding:13px 18px;gap:8px}.tc-test-report .tc-test-footer button{padding:11px 14px}.tc-test-more .tc-test-grid{gap:0}.tc-test-tech-list{grid-template-columns:1fr;gap:2px}.tc-test-tech-list dd{margin-bottom:7px}.tc-test-report .tc-test-add-image{gap:6px;font-size:11px}}
.tc-test-primary.tc-test-danger{background:#963f58;color:#fff}
.tc-test-danger:disabled{opacity:.45;cursor:not-allowed}
.tc-test-link-dialog[open]{display:flex;flex-direction:column}.tc-test-link-dialog .tc-test-footer{flex-wrap:wrap}.tc-test-link-dialog textarea{overflow-wrap:anywhere}

/* Keep the close mark centered independently of page button styles. */
.tc-test-dialog .tc-test-close{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;min-width:0;min-height:0;line-height:1;letter-spacing:0;text-indent:0}

.tc-test-capturing .tc-test-dialog,.tc-test-capturing .tc-test-launcher{visibility:hidden!important}
.tc-test-capturing .tc-test-dialog::backdrop{background:transparent;backdrop-filter:none}
.tc-test-upload>.tc-test-add-image{margin:0 8px 8px 0}
