:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#edf2ff;background:#090e1c}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 85% 0%,#253c70 0,transparent 40%),radial-gradient(circle at 0% 35%,#182b4c 0,transparent 38%),#090e1c}.wrap{max-width:960px;margin:auto;padding:24px}header{display:flex;align-items:center;justify-content:space-between;gap:10px}.logo{font-size:27px;font-weight:800;letter-spacing:-1px}.logo span{color:#7ee6d5}.pill{font-size:12px;border:1px solid #536080;padding:9px 13px;border-radius:30px;color:#cbd5ef}.hero{text-align:center;padding:75px 0 40px}.eyebrow{color:#76ead6;font-size:12px;font-weight:800;letter-spacing:3px}h1{font-size:clamp(35px,6vw,60px);line-height:1.12;letter-spacing:-2px;margin:16px 0}h1 em{font-style:normal;color:#83dfd5}.hero>p:last-child{color:#b6c1d9;max-width:580px;margin:20px auto;line-height:1.7}.panel{background:#141d32;border:1px solid #34415e;border-radius:20px;padding:25px;box-shadow:0 20px 70px #0005}.tabs{display:flex;gap:12px;margin-bottom:24px}.tab{background:#27334c;border:0;color:#d5e0f6;border-radius:9px;padding:12px 16px;font-weight:700;cursor:pointer}.tab.active{background:#74ddcf;color:#0c2530}label{display:block;font-weight:700;margin-bottom:12px}textarea{width:100%;min-height:175px;background:#0b1325;border:1px solid #485572;color:white;border-radius:12px;padding:17px;font:inherit;resize:vertical}textarea:focus{outline:2px solid #7ee6d5}.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:15px}#count{color:#a5b4cd;font-size:13px}#send{border:0;border-radius:10px;background:#77e3d1;color:#0a2330;padding:15px 20px;font-weight:800;cursor:pointer}#send:disabled{opacity:.55;cursor:wait}#status{color:#c9d6ed}#answer{background:#0b1428;border:1px solid #3e5670;padding:20px;border-radius:12px;margin-top:15px}#answer h2{margin-top:0;font-size:20px}#answerText{white-space:pre-wrap;line-height:1.65}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:25px 0}.features>div{border:1px solid #33415e;border-radius:14px;padding:20px;background:#101a2c}.features p,footer{color:#a9b7d0;line-height:1.6}footer{text-align:center;font-size:12px;margin:45px 0}@media(max-width:600px){.features{grid-template-columns:1fr}.hero{padding:45px 0 25px}.panel{padding:16px}.pill{display:none}}

.upload{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.upload .fileButton{display:inline-block;width:auto;margin:0;background:#27334c;color:#e1f7f2;padding:12px 15px;border:1px solid #4e6a7d;border-radius:9px;cursor:pointer}.upload input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.upload input:focus-visible+.fileButton{outline:2px solid #7ee6d5}.upload #fileName{font-size:13px;color:#c5d3e6;overflow-wrap:anywhere}.upload small{display:block;flex-basis:100%;color:#a5b4cd;line-height:1.5}.upload #removeFile{background:transparent;border:1px solid #52617b;border-radius:7px;padding:7px;color:#e3ebff;cursor:pointer}

/* Readable, safely rendered AI explanations */
#answerText{white-space:normal;overflow-wrap:anywhere;line-height:1.65}
#answerText p{margin:0 0 1em}
#answerText h3,#answerText h4,#answerText h5,#answerText h6{line-height:1.35;margin:1.2em 0 .55em;color:#edf2ff}
#answerText h3{font-size:1.18rem}#answerText h4{font-size:1.08rem}
#answerText ul,#answerText ol{padding-left:1.5em;margin:.35em 0 1em}
#answerText li{margin:.4em 0}#answerText strong{font-weight:750;color:#fff}
#answerText code{background:#26344d;border-radius:4px;padding:1px 4px}

.uploadNotice{margin-top:18px;border:1px solid #3e6575;border-radius:10px;padding:14px;background:#101d30;color:#c8d5e9;font-size:14px;line-height:1.6}
.consent{display:flex;align-items:flex-start;gap:10px;margin-top:14px;font-size:14px;line-height:1.5;font-weight:400;color:#d5e0f6}
.consent input{flex:none;margin-top:4px;width:18px;height:18px;accent-color:#77e3d1}
.actions{flex-wrap:wrap}#send{min-height:48px}
@media(max-width:420px){.wrap{padding:18px}.actions #send{margin-left:auto}.tabs{gap:8px}.tab{padding:12px}}
