/* Copyright © 2026 Northstar Growth Partners LLC. All rights reserved. */
/* Nora concierge. Uses the r21/r22 Northstar tokens. No layout shift: fixed
   elements only, appended after page load, never auto-opened. */
.nora-launcher { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer; background: var(--navy, #0B1525); color: var(--white, #fff); font: 800 12px/1 Montserrat, Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.07em; box-shadow: 0 14px 38px rgba(4, 13, 25, 0.35); }
.nora-launcher svg { width: 20px; height: 20px; color: var(--orange, #FF6800); }
.nora-launcher:hover, .nora-launcher:focus-visible { transform: translateY(-1px); }
.nora-launcher:focus-visible { outline: 3px solid rgba(255, 104, 0, 0.5); outline-offset: 3px; }
@media (max-width: 640px) { .nora-launcher { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); } }

.nora-panel { position: fixed; right: 18px; bottom: 84px; z-index: 56; width: min(400px, calc(100vw - 28px)); max-height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--paper, #FAF8F3); color: var(--ink, #101C2B); border: 1px solid var(--hairline, #D8DFE5); border-radius: 16px; box-shadow: 0 30px 90px rgba(4, 13, 25, 0.35); overflow: hidden; }
@media (max-width: 640px) {
  .nora-panel { right: 0; left: 0; bottom: 0; width: 100%; max-height: 86vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}

.nora-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--navy, #0B1525); color: var(--white, #fff); }
.nora-title { display: flex; align-items: center; gap: 10px; }
.nora-title svg { width: 26px; height: 26px; color: var(--orange, #FF6800); }
.nora-title strong { display: block; font: 700 16px/1.1 Oswald, Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.nora-title span { display: block; margin-top: 3px; color: #A9BACB; font-size: 11px; }
.nora-head-actions { display: flex; gap: 8px; align-items: center; }
.nora-clear { background: none; border: 1px solid rgba(255,255,255,0.3); color: #DCE5ED; border-radius: 4px; padding: 6px 10px; cursor: pointer; font: 700 10px/1 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.nora-close { background: none; border: 0; color: var(--white, #fff); font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 8px; min-width: 44px; min-height: 40px; }
.nora-clear:focus-visible, .nora-close:focus-visible, .nora-starter:focus-visible, .nora-fb:focus-visible { outline: 3px solid rgba(255, 104, 0, 0.6); outline-offset: 2px; }

.nora-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 160px; }
.nora-msg { display: flex; }
.nora-msg-user { justify-content: flex-end; }
.nora-bubble { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.nora-msg-user .nora-bubble { background: var(--blue, #0A2540); color: var(--white, #fff); border-bottom-right-radius: 4px; }
.nora-msg-assistant .nora-bubble { background: var(--white, #fff); border: 1px solid var(--hairline, #D8DFE5); border-bottom-left-radius: 4px; }
.nora-bubble p { margin: 0; }
.nora-bubble p + p { margin-top: 8px; }
.nora-typing { color: var(--muted, #5A6A79); font-size: 13px; padding: 4px 2px; }

.nora-route-card { display: block; margin-top: 10px; padding: 11px 13px; border: 1px solid var(--hairline, #D8DFE5); border-radius: 10px; background: var(--paper, #FAF8F3); text-decoration: none; color: inherit; }
.nora-route-card:hover, .nora-route-card:focus-visible { border-color: var(--blue, #0A2540); }
.nora-route-card strong { display: block; font-size: 13px; }
.nora-route-card span { display: block; margin-top: 3px; color: var(--muted, #5A6A79); font-size: 12px; line-height: 1.45; }

.nora-crisis { margin-top: 10px; border: 1px solid var(--orange, #FF6800); border-radius: 10px; padding: 12px; background: #FFF6F0; }
.nora-crisis-row { margin-bottom: 8px; }
.nora-crisis-row strong { display: block; font-size: 13px; }
.nora-crisis-row span { display: block; color: var(--ink, #101C2B); font-size: 13px; }
.nora-crisis-follow { margin: 6px 0 0; color: var(--muted, #5A6A79); font-size: 12px; }

.nora-handoff { margin-top: 10px; border: 1px solid var(--hairline, #D8DFE5); border-radius: 10px; padding: 12px; background: var(--white, #fff); }
.nora-handoff-lede { margin: 0 0 10px; font-size: 13px; }
.nora-handoff-form { display: grid; gap: 9px; }
.nora-handoff-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.nora-handoff-form input, .nora-handoff-form select, .nora-handoff-form textarea { font: 400 14px/1.4 Montserrat, Arial, sans-serif; padding: 9px 10px; border: 1px solid var(--hairline, #D8DFE5); border-radius: 8px; background: var(--paper, #FAF8F3); }
.nora-consent { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; }
.nora-consent input { width: 18px; height: 18px; margin-top: 1px; }
.nora-handoff-send { min-height: 44px; border: 0; border-radius: 8px; background: var(--orange, #FF6800); color: var(--white, #fff); font: 800 12px/1 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.nora-handoff-status { margin: 4px 0 0; font-size: 12px; color: var(--muted, #5A6A79); }

.nora-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 8px; }
.nora-starter { border: 1px solid var(--hairline, #D8DFE5); background: var(--white, #fff); border-radius: 999px; padding: 9px 13px; font-size: 12px; cursor: pointer; min-height: 38px; }
.nora-starter:hover { border-color: var(--blue, #0A2540); }

.nora-gate { padding: 8px 16px; }
.nora-gate p { margin: 0 0 8px; font-size: 12px; color: var(--muted, #5A6A79); }

.nora-composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px 6px; border-top: 1px solid var(--hairline, #D8DFE5); background: var(--white, #fff); }
.nora-composer textarea { flex: 1; resize: none; max-height: 140px; font: 400 14px/1.5 Montserrat, Arial, sans-serif; padding: 10px 12px; border: 1px solid var(--hairline, #D8DFE5); border-radius: 10px; background: var(--paper, #FAF8F3); }
.nora-send { min-height: 44px; min-width: 64px; border: 0; border-radius: 10px; background: var(--navy, #0B1525); color: var(--white, #fff); font: 800 12px/1 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.nora-send:disabled { opacity: 0.5; cursor: default; }
.nora-disclosure { margin: 0; padding: 8px 16px 12px; background: var(--white, #fff); color: var(--muted, #5A6A79); font-size: 10.5px; line-height: 1.5; }
.nora-disclosure a { color: var(--blue, #0A2540); }

.nora-feedback { margin-top: 8px; display: flex; gap: 8px; font-size: 11px; color: var(--muted, #5A6A79); }
.nora-fb { background: none; border: 1px solid var(--hairline, #D8DFE5); border-radius: 999px; padding: 4px 10px; font-size: 10px; cursor: pointer; color: var(--muted, #5A6A79); }
.nora-fb:hover { border-color: var(--blue, #0A2540); color: var(--ink, #101C2B); }

.nora-nudge { position: fixed; right: 18px; bottom: 84px; z-index: 54; display: flex; gap: 10px; align-items: flex-start; max-width: 280px; padding: 13px 15px; border-radius: 12px; background: var(--white, #fff); border: 1px solid var(--hairline, #D8DFE5); box-shadow: 0 18px 50px rgba(4, 13, 25, 0.25); cursor: pointer; }
.nora-nudge p { margin: 0; font-size: 13px; line-height: 1.5; }
.nora-nudge-close { background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted, #5A6A79); min-width: 32px; min-height: 32px; }
@media (max-width: 640px) { .nora-nudge { right: 14px; left: 14px; max-width: none; bottom: calc(84px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) { .nora-launcher:hover, .nora-launcher:focus-visible { transform: none; } }

/* r22b: hidden guard */
.nora-panel[hidden]{display:none !important;}
.nora-nudge[hidden]{display:none !important;}

/* r22d: Nora avatar */
.nora-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;display:block;box-shadow:0 0 0 2px rgba(255,255,255,0.25);}
.nora-launcher .nora-avatar{width:32px;height:32px;margin-left:-6px;}
.nora-avatar-head{width:38px;height:38px;box-shadow:0 0 0 2px rgba(255,255,255,0.3);}
