/* v55 — Edge as a living guide (no framed portrait) */
.edge-guide{position:fixed;right:18px;bottom:18px;z-index:9990;font-family:inherit;display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:none}
body.has-sticky .edge-guide{bottom:84px}
.edge-guide>*{pointer-events:auto}
.eg-bot{position:relative;width:104px;height:104px;border:0;padding:0;background:none;cursor:pointer;animation:egBob 4.2s ease-in-out infinite;filter:drop-shadow(0 10px 24px #000a)}
.eg-bot img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;transition:transform .25s}
.eg-bot:hover img{transform:scale(1.06) rotate(-3deg)}
.eg-glow{position:absolute;inset:18% 10% 0;border-radius:50%;background:radial-gradient(circle,#41e3aa55,#83cfff22 55%,transparent 72%);animation:egGlow 3s ease-in-out infinite}
.eg-dot{position:absolute;z-index:2;right:12px;top:16px;width:12px;height:12px;border-radius:50%;background:#41e3aa;box-shadow:0 0 0 3px #080c12,0 0 12px #41e3aa}
.edge-guide.is-open .eg-bot{animation:none}
@keyframes egBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes egGlow{0%,100%{opacity:.6}50%{opacity:1}}
.eg-bubble{position:relative;max-width:min(290px,calc(100vw - 108px));padding:14px 16px 12px;background:linear-gradient(140deg,#13283a,#0f1c26);border:1px solid #3c6a78;border-radius:16px 16px 4px 16px;color:#e3eef7;font-size:.86rem;line-height:1.55;box-shadow:0 14px 40px #000a;animation:egIn .35s ease-out}
.eg-bubble p{margin:0 18px 8px 0}
.eg-bubble:after{content:"";position:absolute;right:34px;bottom:-8px;width:14px;height:14px;background:#0f1c26;border-right:1px solid #3c6a78;border-bottom:1px solid #3c6a78;transform:rotate(45deg)}
.eg-x{position:absolute;top:6px;right:8px;border:0;background:none;color:#8fa6ba;font-size:1.1rem;cursor:pointer}
.eg-ask{border:0;background:none;color:#41e3aa;font:inherit;font-weight:700;font-size:.8rem;padding:0;cursor:pointer}
@keyframes egIn{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
.eg-panel{width:min(380px,calc(100vw - 28px));max-height:min(560px,calc(100dvh - 160px));display:flex;flex-direction:column;background:#0c141d;border:1px solid #2d4a58;border-radius:18px;box-shadow:0 24px 70px #000c,0 0 40px #41e3aa14;overflow:hidden;animation:egIn .25s ease-out}
.eg-panel header{display:flex;gap:11px;align-items:center;padding:12px 14px;background:linear-gradient(120deg,#142b35,#0f1b26);border-bottom:1px solid #26394a}
.eg-panel header img{border-radius:50%;box-shadow:0 0 0 2px #41e3aa66}
.eg-panel header b{display:block;color:#f1f7fb}.eg-panel header small{color:#8fb6c6;font-size:.7rem}.eg-mute{margin-left:auto;margin-right:4px;background:transparent;border:0;color:#cfe7f0;font-size:1.05rem;cursor:pointer;padding:4px 6px;border-radius:8px}.eg-mute:hover{background:#1a2c38}.eg-close{margin-left:0}
.eg-close{margin-left:auto;border:0;background:none;color:#a0b4c6;font-size:1.4rem;cursor:pointer;line-height:1}
.eg-log{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.eg-m{max-width:88%;padding:10px 13px;border-radius:14px;font-size:.86rem;line-height:1.6;white-space:pre-line}
.eg-m p{margin:0}
.eg-e{align-self:flex-start;background:#13232f;border:1px solid #24404c;color:#dbe8f1;border-bottom-left-radius:4px}
.eg-u{align-self:flex-end;background:#41e3aa;color:#061a12;font-weight:600;border-bottom-right-radius:4px}
.eg-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;white-space:normal}
.eg-links a{font-size:.74rem;padding:5px 9px;border:1px solid #34596a;border-radius:999px;color:#9fdcff;text-decoration:none}
.eg-links a:hover{border-color:#41e3aa;color:#41e3aa}
.eg-typing{display:inline-flex;gap:4px}.eg-typing i{width:6px;height:6px;border-radius:50%;background:#83cfff;animation:egDot 1s infinite}
.eg-typing i:nth-child(2){animation-delay:.15s}.eg-typing i:nth-child(3){animation-delay:.3s}
@keyframes egDot{0%,100%{opacity:.25}50%{opacity:1}}
.eg-chips{display:flex;gap:6px;flex-wrap:wrap;padding:0 14px 10px}
.eg-chips button{border:1px solid #2f4a5a;background:#101c27;color:#c6dbe8;border-radius:999px;padding:6px 10px;font:inherit;font-size:.74rem;cursor:pointer}
.eg-chips button:hover{border-color:#41e3aa}
.eg-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #22364a}
.eg-form input{flex:1;min-height:42px;border-radius:10px;border:1px solid #2f4658;background:#0a1119;color:#eef6fb;padding:8px 12px;font:inherit;font-size:.88rem}
.eg-form button{width:44px;border:0;border-radius:10px;background:#41e3aa;color:#062016;font-size:1rem;cursor:pointer}
.eg-fine{margin:0;padding:0 14px 10px;font-size:.66rem;color:#7f93a7}
/* Hero companion: Edge stands in the scene, no frame/card */
.edge-stage{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;margin:0}
.edge-stage:before{content:"";position:absolute;left:8%;right:8%;bottom:6%;height:70%;border-radius:50%;background:radial-gradient(circle at 50% 60%,#41e3aa30,#83cfff18 45%,transparent 70%);filter:blur(10px);z-index:0}
.edge-stage img{position:relative;z-index:1;width:min(100%,460px);height:auto;animation:egBob 5s ease-in-out infinite;filter:drop-shadow(0 30px 40px #000b)}
.edge-stage{display:flex;flex-direction:column;align-items:center;position:relative}
.edge-say{position:static;z-index:2;top:auto;left:auto;max-width:min(280px,100%);margin:12px auto 0;padding:14px 16px;background:linear-gradient(140deg,#13283aee,#0f1c26ee);border:1px solid #3c6a78;border-radius:16px 16px 16px 4px;box-shadow:0 14px 40px #0009;color:#e6f0f7;font-size:.86rem;line-height:1.55}
.edge-say b{display:block;color:#41e3aa;font-size:.66rem;letter-spacing:.14em;margin-bottom:4px}
.edge-say button{margin-top:8px;border:0;background:none;color:#83cfff;font:inherit;font-weight:700;font-size:.8rem;padding:0;cursor:pointer}
.edge-chipline{position:relative;z-index:2;margin-top:-6px;font-size:.62rem;letter-spacing:.12em;font-weight:800;color:#ccefff;padding:8px 12px;border:1px solid #3c6a78;border-radius:999px;background:#0e1f2bcc}
.edge-mini.v55{gap:10px}.edge-mini.v55 img{border:0;border-radius:0;filter:drop-shadow(0 6px 12px #0008)}
@media(max-width:780px){.edge-guide{right:10px;bottom:10px}body.has-sticky .edge-guide{bottom:76px}.eg-bot{width:78px;height:78px}.eg-bubble{max-width:230px;font-size:.8rem}
 .edge-stage img{width:min(78%,320px)}.edge-say{position:static;left:auto;top:auto;max-width:min(260px,94%);font-size:.78rem;margin-top:12px}.eg-panel{max-height:calc(100dvh - 130px)}}
@media(prefers-reduced-motion:reduce){.eg-bot,.edge-stage img,.eg-glow{animation:none!important}}
@media print{.edge-guide{display:none}}
.eg-panel{order:-2}.eg-bubble{order:-1}.edge-guide.is-open .eg-bot{width:64px;height:64px}
/* v56-multilang-staging */
.eg-lang{margin-left:auto;background:#0f1c26;color:#cfe7f0;border:1px solid #2d4a58;border-radius:8px;font-size:.72rem;padding:3px 4px;cursor:pointer}
.eg-panel header .eg-lang + .eg-mute{margin-left:4px}
.eg-note{opacity:.7;font-size:.75rem;font-style:italic}
