@font-face{font-family:EmpireHelpDisplay;src:url('/assets/kb-BentonModDisp-Regular.woff2') format('woff2');font-display:swap}
@font-face{font-family:EmpireHelpSans;src:url('/assets/kb-SofiaPro-Regular.otf') format('opentype');font-display:swap}
.empire-help-popup{--ehp-ink:#1c0014;--ehp-accent:#8e0042;--ehp-paper:#f5f0e8;--ehp-muted:#705d69;--ehp-line:#ded1d6;position:fixed;inset:auto 24px max(24px,env(safe-area-inset-bottom)) auto;margin:0;padding:0;width:440px;max-width:calc(100vw - 32px);height:680px;max-height:calc(100dvh - 48px);border:1px solid var(--ehp-line);border-radius:16px;background:var(--ehp-paper);color:var(--ehp-ink);box-shadow:0 12px 40px #1c001426;font:15px/1.5 EmpireHelpSans,sans-serif;overflow:hidden}
.empire-help-popup[open]{display:flex;flex-direction:column}.empire-help-popup::backdrop{background:#1c001430}.empire-help-popup *{box-sizing:border-box}.empire-help-popup button,.empire-help-popup textarea{font:inherit}.empire-help-popup button{cursor:pointer}.empire-help-popup button:disabled{cursor:wait;opacity:.65}.empire-help-popup :focus-visible{outline:2px solid var(--ehp-accent);outline-offset:3px}
.ehp-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid var(--ehp-line);flex-shrink:0}.ehp-identity{display:flex;align-items:center;gap:12px}.ehp-logo{width:44px;height:44px}.ehp-header h2{font:26px/1.15 EmpireHelpDisplay,Georgia,serif;margin:0}.ehp-header p{font-size:13px;margin:4px 0 0;color:var(--ehp-muted)}.ehp-close{width:44px;height:44px;border:0;background:transparent;color:var(--ehp-ink);font-size:28px!important;border-radius:8px}
.ehp-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px}.ehp-welcome{margin:0 0 16px;line-height:1.65}.ehp-examples{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.ehp-examples[hidden]{display:none}.ehp-examples button{border:1px solid var(--ehp-line);background:#fffdfb;color:var(--ehp-accent);padding:10px 12px;border-radius:12px;text-align:left;font-size:13px}.ehp-message{background:#fffdfb;border:1px solid var(--ehp-line);border-radius:12px;padding:16px;margin:12px 0;overflow-wrap:anywhere}.ehp-user{margin-left:24px;background:#eadce4;border-color:transparent}.ehp-message h3{font:700 12px/1.5 EmpireHelpSans,sans-serif;color:var(--ehp-accent);margin:0 0 8px}.ehp-copy{white-space:pre-wrap;line-height:1.65}.ehp-source-title{font-size:12px;font-weight:bold;margin:16px 0 4px}.ehp-sources{font-size:13px;margin:0;padding-left:16px}.ehp-sources a,.ehp-support{color:var(--ehp-accent);text-decoration:underline}
.ehp-form{padding:16px 20px;border-top:1px solid var(--ehp-line);background:var(--ehp-paper);flex-shrink:0;max-height:55%;overflow-y:auto}.ehp-form label{display:block;font-size:13px;font-weight:bold}.ehp-form textarea{display:block;margin:8px 0;width:100%;min-height:64px;max-height:120px;resize:vertical;border:1px solid var(--ehp-line);border-radius:8px;padding:10px 12px;background:white;color:var(--ehp-ink);font-size:16px}.ehp-send{border:0;border-radius:8px;background:var(--ehp-accent);color:white;padding:10px 16px;min-height:44px}.ehp-note,.ehp-status,.ehp-error{font-size:12px;line-height:1.5;margin:12px 0 0;color:var(--ehp-muted)}.ehp-error{color:var(--ehp-accent)}.ehp-status:empty,.ehp-error:empty{display:none}.ehp-support{display:inline-block;font-size:12px;margin-top:8px}
@media(max-width:600px){.empire-help-popup{inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px;width:auto;max-width:none;height:720px;max-height:calc(100dvh - 16px - env(safe-area-inset-bottom));border-radius:12px}.ehp-header{padding:12px 16px}.ehp-body{padding:16px}.ehp-form{padding:12px 16px}.ehp-send{width:100%}}
.topbar button.top-icon{font:inherit;background:transparent;border:0;color:inherit}

/* The supplied Empire emblem remains unchanged; the halo is a UI effect. */
.empire-help-launcher{--orb-gold:#e9c77e;--orb-paper:#f5f0e8;--orb-ink:#1c0014;position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom));z-index:80;display:flex;flex-direction:column;align-items:center;gap:12px;width:104px;padding:8px 0;border:0;border-radius:16px;background:transparent;color:var(--orb-ink);font:14px/1.25 EmpireHelpSans,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
.empire-help-orb{position:relative;display:block;width:72px;height:72px;border-radius:50%;isolation:isolate}
.empire-help-orb::before{content:"";position:absolute;inset:-12px;z-index:-1;border-radius:50%;background:radial-gradient(circle,rgba(233,199,126,.62) 30%,rgba(233,199,126,.24) 52%,rgba(233,199,126,0) 72%);animation:empire-help-glow 5s ease-in-out infinite;pointer-events:none}
.empire-help-orb::after{content:"";position:absolute;inset:-3px;border:1px solid rgba(233,199,126,.8);border-radius:50%;box-shadow:0 0 12px rgba(233,199,126,.4);pointer-events:none}
.empire-help-orb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;box-shadow:0 3px 14px rgba(28,0,20,.2);transition:transform .2s ease}
.empire-help-label{display:block;padding:6px 12px;border:1px solid rgba(142,0,66,.13);border-radius:20px;background:var(--orb-paper);white-space:nowrap;box-shadow:0 2px 8px rgba(28,0,20,.05)}
.empire-help-launcher:hover .empire-help-orb img{transform:scale(1.03)}
.empire-help-launcher:focus-visible{outline:2px solid #8e0042;outline-offset:5px}
.ehp-logo{border-radius:50%;box-shadow:0 0 10px rgba(233,199,126,.4)}
.empire-help-popup [hidden]{display:none!important}.ehp-team-button{display:inline-block;margin:10px 8px 0 0;padding:9px 12px;min-height:44px;border:1px solid var(--ehp-line);border-radius:8px;background:#fcf8f2;color:var(--ehp-accent);font-size:13px!important}.ehp-human-status{font-size:13px;background:#e9c77e25;border-left:3px solid #e9c77e;padding:12px;line-height:1.6}.ehp-consent{margin-top:14px;padding:12px;border:1px solid var(--ehp-line);border-radius:10px;background:#fffdfb;font-size:13px}.ehp-consent input[type=checkbox]{accent-color:var(--ehp-accent);margin-right:8px}.ehp-context-preview{font:12px/1.5 EmpireHelpSans,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto;margin:10px 0}.ehp-message summary{font-size:12px;cursor:pointer}
body:has(.chat-bar) .empire-help-launcher{bottom:calc(176px + env(safe-area-inset-bottom))}
@keyframes empire-help-glow{0%,100%{transform:scale(.96);opacity:.6}50%{transform:scale(1.12);opacity:1}}
@media(max-width:600px){.empire-help-launcher{right:12px;bottom:calc(20px + env(safe-area-inset-bottom));width:92px;gap:10px;font-size:13px}.empire-help-orb{width:60px;height:60px}.empire-help-label{padding:5px 10px}body:has(.chat-bar:focus-within) .empire-help-launcher{visibility:hidden}}
@media(prefers-reduced-motion:reduce){.empire-help-orb::before{animation:none;opacity:.75;transform:none}.empire-help-orb img{transition:none}.empire-help-launcher:hover .empire-help-orb img{transform:none}}

.empress-review-login{height:auto;max-height:calc(100dvh - 32px)}.empress-login-form{margin:16px 0}.empress-login-form label{display:block;font-size:14px}.empress-login-form input{display:block;width:100%;margin:8px 0 12px;border:1px solid #ded1d6;border-radius:8px;padding:12px;font:16px EmpireHelpSans,sans-serif;background:white;color:#1c0014}.empress-login-form button{width:100%}
