#home .home-ai-entry,.referral-language{left:auto;right:max(12px,calc((100% - 800px)/2 + 16px),env(safe-area-inset-right));box-sizing:border-box;width:44px;height:44px;border-radius:15px}
.referral-language{position:fixed;z-index:96;top:calc(12px + env(safe-area-inset-top));display:flex;align-items:center;justify-content:center;gap:2px;padding:0;border:1px solid rgba(255,255,255,.18);background:rgba(10,14,35,.78);color:#f0edff;backdrop-filter:blur(18px);box-shadow:0 8px 24px #05081933;cursor:pointer}
.referral-language svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.4}.referral-language span{font:600 10px system-ui}.referral-language:focus-visible{outline:2px solid #bca0ff;outline-offset:4px}
.core-footer{justify-content:flex-start}.core-about-entry{margin-left:0}
.referral-library{position:relative;margin:26px 0 18px;padding:25px 22px;overflow:hidden;background:linear-gradient(135deg,rgba(48,38,84,.75),rgba(14,21,43,.92))}
.referral-library::after{content:'';position:absolute;width:140px;height:140px;right:-50px;top:-70px;border:1px solid #aa8eff24;border-radius:50%;pointer-events:none}
.referral-eyebrow{display:block;color:#bba6f7;font-size:10px;font-weight:600;letter-spacing:.18em;margin-bottom:12px}.referral-library h2{font-size:23px;line-height:1.4;margin:0 0 10px;color:#f1eeff;font-weight:600}.referral-library p,.referral-resource p{font-size:14px;line-height:1.85;color:#b1b5ca;margin:0 0 18px}
.referral-topics{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.referral-topics button{padding:9px 12px;background:#8f75dc14;border:1px solid #a791e52b;border-radius:10px;color:#d9d1f0;font:inherit;font-size:12px;cursor:pointer}
.referral-actions{display:flex;flex-wrap:wrap;gap:10px}.referral-actions .btn{flex:1;min-width:130px;font-size:13px;line-height:1.5;white-space:normal;padding:13px 12px}.referral-footnote{display:block;color:#969bb7;font-size:11px;line-height:1.8;margin-top:17px}
.referral-resource{padding:24px}.referral-resource h2{font-size:20px;line-height:1.5;margin:6px 0 14px}.referral-resource ol{padding-left:20px;margin:18px 0;color:#c1c3d6;line-height:1.9;font-size:14px}.referral-resource .referral-footnote{margin-top:20px}
.referral-diagnosis{padding:10px 1px}.referral-diagnosis h2{font-size:23px;line-height:1.4;margin:8px 0 12px}.referral-diagnosis>p{color:#b7bad0;line-height:1.8;font-size:14px}.referral-diagnosis label{display:block;font-size:14px;color:#d6d4e8;margin-top:18px}.referral-diagnosis textarea{display:block;box-sizing:border-box;width:100%;min-height:170px;margin:10px 0 16px;padding:15px;border:1px solid #a68dff42;border-radius:14px;background:#0a1028;color:#eeecfb;font:inherit;font-size:15px;line-height:1.8;resize:vertical}.referral-diagnosis .referral-error{color:#edb2c3}.referral-report{margin:20px 0}.referral-report h3{font-size:16px;color:#cab6fc;margin:20px 0 8px}.referral-report p,.referral-report li{font-size:14px;line-height:1.9;color:#d6d6e6}.referral-report ol{padding-left:21px}.referral-diagnosis button:disabled{opacity:.65;cursor:wait}.referral-diagnosis .referral-status{color:#c8b7ed;min-height:24px}.referral-language:hover{border-color:#bba5e986}
@media(max-width:380px){.referral-library{padding:22px 17px}.referral-library h2{font-size:21px}.referral-actions .btn{min-width:120px}.core-tags{gap:5px}}
@media(min-width:1100px) and (hover:hover) and (pointer:fine){.referral-language{top:24px}}
@media(prefers-reduced-motion:reduce){.referral-language{transition:none}}
