/* Ghost: Flatline RP neural terminal */
.ghost-launcher,.ghost-terminal{--gc:#27dfff;--gp:#ff35d7;--gb:#08111b;--gl:#235567;color:#eaf4fa;font-family:Inter,Arial,sans-serif}
.ghost-launcher{position:fixed;right:22px;bottom:20px;z-index:9000;display:flex;align-items:center;gap:10px;padding:12px 17px;background:#081725;border:1px solid var(--gc);border-radius:3px;box-shadow:0 0 24px #03d9ff22;color:white;cursor:pointer;letter-spacing:.12em;font-size:12px;font-weight:800}
.ghost-launcher:hover,.ghost-launcher[aria-expanded=true]{background:#103044;box-shadow:0 0 28px #09e0ff55}
.ghost-glyph{font-size:19px;font-weight:900;letter-spacing:-4px;color:var(--gp);margin-right:6px}
.ghost-terminal[hidden]{display:none!important}
.ghost-terminal{position:fixed;right:22px;bottom:80px;z-index:9001;width:min(520px,calc(100vw - 26px));height:min(610px,calc(100dvh - 118px));max-height:calc(100dvh - 118px);min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #20d5e4;clip-path:polygon(0 14px,14px 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 100%);background:repeating-linear-gradient(0deg,transparent 0px,transparent 3px,#1bc9db08 4px),linear-gradient(130deg,#091c26f9,#060c17fa 70%);box-shadow:0 0 0 3px #030a14,0 0 32px #04d9e936;animation:ghost-enter .2s ease-out}
.ghost-terminal::before{content:'';position:absolute;inset:6px;border:1px solid #2c9caa55;pointer-events:none}
.ghost-head{position:relative;display:flex;align-items:center;gap:12px;padding:16px 18px 13px;border-bottom:1px solid #1d7c8e;min-height:65px;background:linear-gradient(90deg,#172336,#08232c);flex:none}
.ghost-head-mark{color:var(--gp);font-weight:900;font-size:25px;letter-spacing:-5px;margin-right:5px}
.ghost-head-title{display:flex;flex-direction:column;gap:3px;flex:1}
.ghost-head-title strong{font-size:23px;line-height:1;letter-spacing:.06em;color:#fff}
.ghost-head-title small,.ghost-foot{font:10px/1.4 'DM Mono',Consolas,monospace;letter-spacing:.07em;color:#83b4c1}
.ghost-net{font:10px 'DM Mono',monospace;color:#53e9ad}
.ghost-close{background:none;border:0;color:#edfaff;font-size:28px;cursor:pointer;line-height:1;padding:4px}
.ghost-core{position:relative;display:flex;gap:18px;align-items:center;padding:21px 21px 14px;flex:none}
.ghost-sigil{width:90px;height:94px;flex:none;display:grid;place-items:center;position:relative;border:1px solid #208d9d;color:#25daeb;background:radial-gradient(circle,#134153aa,transparent 65%)}
.ghost-sigil span{font-size:61px;line-height:1;filter:drop-shadow(0 0 14px #15e5ff88);animation:ghost-breathe 3.6s ease-in-out infinite}
.ghost-sigil i{position:absolute;inset:5px;border-left:2px solid #ee34cc;border-right:2px solid #11dcef66;pointer-events:none}
.ghost-core strong{font-size:18px;font-weight:800;letter-spacing:.018em}
.ghost-core p{font-size:12px;line-height:1.6;color:#b7cad8;margin:7px 0 0}
.ghost-cursor{color:var(--gc);animation:ghost-blink 1s steps(1) infinite}
.ghost-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:5px 20px 18px;border-bottom:1px solid #184455;flex:none}
.ghost-shortcut,.ghost-result{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;background:#071e2a;border:1px solid #227d8e;color:#e4faff;font-size:11px;font-weight:700;min-height:42px;padding:8px;transition:background .16s,border-color .16s}
.ghost-shortcut:hover,.ghost-result:hover{background:#134050;color:white;border-color:var(--gp)}
.ghost-log{min-height:0;min-width:0;flex:1 1 0;overscroll-behavior:contain;overflow-y:auto;margin:0 18px;padding:13px 9px;font:11px/1.9 'DM Mono',Consolas,monospace;scrollbar-color:#276879 #081723;background:linear-gradient(90deg,#0b293226,transparent)}
.ghost-line{overflow-wrap:anywhere;animation:ghost-line-in .2s ease both;color:#8eafbd}
.ghost-user{color:#e7c4ec}.ghost-reply{color:#56e8ed}.ghost-results{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}.ghost-result{min-height:31px;padding:6px 10px;font-size:10px}
.ghost-compose{display:flex;gap:8px;margin:8px 18px 13px;flex:none}
.ghost-compose input{flex:1;min-width:0;border:1px solid #28d5d9;background:#071723;color:#fff;padding:13px 12px;outline:0;border-radius:3px;font:12px Inter,Arial,sans-serif}
.ghost-compose input:focus{box-shadow:0 0 0 1px #15d7ee}
.ghost-compose button{width:46px;flex:none;background:#25142d;color:#ff5ad5;border:1px solid #e02ab1;font-size:23px;cursor:pointer}
.ghost-compose button:hover{background:#4b2051}
.ghost-foot{display:flex;justify-content:space-between;gap:8px;padding:10px 18px;border-top:1px solid #226b78;background:#091722;flex:none}
.ghost-sr{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
@keyframes ghost-blink{50%{opacity:0}}@keyframes ghost-breathe{50%{opacity:.72;filter:drop-shadow(0 0 4px #15e5ff)}}@keyframes ghost-line-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes ghost-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:620px){.ghost-terminal{right:8px;bottom:68px;width:calc(100vw - 16px);height:min(610px,calc(100dvh - 84px));max-height:calc(100dvh - 84px)}.ghost-launcher{right:9px;bottom:10px}.ghost-head{padding:12px 13px}.ghost-net{display:none}.ghost-core{padding:16px 13px;gap:12px}.ghost-sigil{width:64px;height:74px}.ghost-sigil span{font-size:42px}.ghost-core strong{font-size:15px}.ghost-shortcuts{padding:5px 12px 12px;gap:5px}.ghost-shortcut{font-size:10px;padding:6px 3px}.ghost-log{margin:0 10px}.ghost-compose{margin:8px 10px}}
@media(prefers-reduced-motion:reduce){.ghost-terminal,.ghost-line,.ghost-cursor,.ghost-sigil span{animation:none!important}.ghost-shortcut,.ghost-result{transition:none}}
