/* The Talking Front — one bot face, house styling (2026-11-30). */
#front-talk-root { position: fixed; right: 18px; bottom: 18px; z-index: 99990; font-family: inherit; }
#front-talk-root .ft-pill {
  background: #0e2a38; color: #eaf6ff; border: 1px solid #2e7fb8; border-radius: 999px;
  padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.45); min-height: 48px;
}
#front-talk-root .ft-pill:hover { background: #12394d; }
#front-talk-root .ft-panel {
  width: min(380px, calc(100vw - 24px)); height: min(540px, calc(100dvh - 110px));
  background: #0b1620; color: #eaf2f8; border: 1px solid #2e7fb8; border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 14px 44px rgba(0,0,0,.55);
}
#front-talk-root .ft-panel[hidden] { display: none; }
#front-talk-root .ft-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: #0e2a38; border-bottom: 1px solid #1d4e6b;
}
#front-talk-root .ft-title { font-size: 16px; font-weight: 700; }
#front-talk-root .ft-sub { font-size: 12px; color: #9fc3d9; margin-top: 2px; line-height: 1.35; }
#front-talk-root .ft-close {
  background: transparent; border: none; color: #eaf6ff; font-size: 24px; line-height: 1;
  cursor: pointer; padding: 2px 6px; min-width: 40px; min-height: 40px;
}
#front-talk-root .ft-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
#front-talk-root .ft-msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
#front-talk-root .ft-msg a { color: #7fd4ff; }
#front-talk-root .ft-bot { background: #12293a; align-self: flex-start; border: 1px solid #1d4e6b; }
#front-talk-root .ft-me { background: #2e7fb8; color: #fff; align-self: flex-end; }
#front-talk-root .ft-thinking { opacity: .75; font-style: italic; }
#front-talk-root .ft-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #1d4e6b; background: #0e2231; }
#front-talk-root .ft-input {
  flex: 1; background: #0b1620; border: 1px solid #2e7fb8; border-radius: 10px; color: #eaf2f8;
  padding: 11px 12px; font-size: 14px; min-height: 48px; min-width: 0;
}
#front-talk-root .ft-send {
  background: #2e7fb8; color: #fff; border: none; border-radius: 10px; padding: 0 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; min-height: 48px;
}

/* The FACE — the front standing open in the page (2026-11-30 night,
 * Carlton's order: the front is the talking face of each area). */
#front-face {
  display: block; max-width: 880px; margin: 14px auto; padding: 0;
  background: #0b1620; color: #eaf2f8; border: 1px solid #2e7fb8; border-radius: 16px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font-family: inherit; text-align: left;
}
#front-face .ff-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: #0e2a38; border-bottom: 1px solid #1d4e6b;
}
#front-face .ff-title { font-size: 18px; font-weight: 700; }
#front-face .ff-sub { font-size: 12.5px; color: #9fc3d9; margin-top: 2px; line-height: 1.4; max-width: 620px; }
#front-face .ff-fold {
  background: transparent; border: 1px solid #2e7fb8; color: #eaf6ff; border-radius: 999px;
  font-size: 12.5px; padding: 6px 12px; cursor: pointer; min-height: 36px; white-space: nowrap;
}
#front-face .ff-open {
  display: block; width: 100%; background: #0e2a38; color: #eaf6ff; border: none;
  font-size: 15px; font-weight: 600; padding: 13px 16px; cursor: pointer; text-align: left; min-height: 48px;
}
#front-face .ff-open[hidden] { display: none; }
#front-face .ff-body[hidden] { display: none; }
#front-face .ff-msgs { max-height: 300px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
#front-face .ft-msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
#front-face .ft-msg a { color: #7fd4ff; }
#front-face .ft-bot { background: #12293a; align-self: flex-start; border: 1px solid #1d4e6b; }
#front-face .ft-me { background: #2e7fb8; color: #fff; align-self: flex-end; }
#front-face .ft-thinking { opacity: .75; font-style: italic; }
#front-face .ff-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #1d4e6b; background: #0e2231; }
#front-face .ft-input {
  flex: 1; background: #0b1620; border: 1px solid #2e7fb8; border-radius: 10px; color: #eaf2f8;
  padding: 11px 12px; font-size: 14px; min-height: 48px; min-width: 0;
}
#front-face .ft-send {
  background: #2e7fb8; color: #fff; border: none; border-radius: 10px; padding: 0 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; min-height: 48px;
}
