/* SAT1600 feedback bubble (adapted from the SpeakWeb export; WeChat section removed). */
.contact-widget { font-family: "Droid Serif", serif; }
.contact-launcher { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 45; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid #fff3; border-radius: 50%; background: #294f85; color: #fff; box-shadow: 0 5px 18px #202b3b26; cursor: pointer; }
.contact-launcher svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.contact-launcher svg path + path { stroke-width: 3; }
.contact-dialog { width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); box-sizing: border-box; margin: auto; padding: 24px; border: 1px solid #dce0e4; border-radius: 16px; background: #fff; color: #202b3b; font-family: "Droid Serif", serif; font-size: 16px; line-height: 1.5; box-shadow: 0 24px 72px #202b3b33; overflow: auto; }
.contact-dialog::backdrop { background: #17283b66; }
.contact-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.contact-kicker { margin: 0 0 5px; color: #294f85; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; }
.contact-header h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.contact-close { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 6px; border: 0; border-radius: 50%; background: #f2f4f6; color: #626b78; cursor: pointer; }
.contact-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.contact-intro { margin: 12px 0 18px; color: #626b78; font-size: 14px; }
.contact-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.contact-dialog textarea { display: block; box-sizing: border-box; width: 100%; min-height: 90px; max-height: 180px; padding: 12px; border: 1px solid #dce0e4; border-radius: 6px; background: #fbfcfd; color: #202b3b; font: inherit; font-size: 16px; line-height: 1.6; resize: vertical; }
.contact-submit { display: block; width: 100%; min-height: 42px; margin: 12px 0 0; padding: 9px 16px; border: 0; border-radius: 6px; background: #294f85; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.contact-submit:disabled { opacity: .5; cursor: not-allowed; }
.contact-status { margin: 9px 0 0; color: #294f85; font-size: 14px; overflow-wrap: anywhere; }
.contact-status:empty { display: none; }
.contact-honeypot { display: none; }
.contact-widget button:focus-visible, .contact-widget textarea:focus-visible, .contact-widget a:focus-visible { outline: 2px solid #294f85; outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .contact-launcher, .contact-close { transition: transform .18s, background-color .18s; }
  .contact-launcher:hover { transform: translateY(-2px); background: #183861; }
  .contact-close:hover { background: #e6ecf1; }
  .contact-dialog[open] { animation: contact-enter .18s ease-out; }
  @keyframes contact-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 480px) {
  .contact-launcher { right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .contact-dialog { padding: 20px; }
  .contact-header h2 { font-size: 18px; }
}
.contact-tip{
  position:fixed;
  z-index:44;
  right:max(24px, env(safe-area-inset-right));
  bottom:calc(88px + env(safe-area-inset-bottom));
  display:flex;align-items:flex-start;gap:6px;
  max-width:min(230px, calc(100vw - 96px));
  margin:0;padding:8px 8px 8px 12px;
  border:1px solid #dce0e4;border-radius:12px;
  background:#fff;color:#202b3b;
  box-shadow:0 8px 24px #202b3b22;
  font-size:13px;line-height:1.35;
  pointer-events:auto;
}
.contact-tip-text{
  flex:1;margin:0;padding:0;border:0;background:none;
  color:inherit;font:inherit;text-align:left;cursor:pointer;
}
.contact-tip-x{
  flex:0 0 auto;width:22px;height:22px;padding:0;
  border:0;border-radius:50%;background:#f2f4f6;color:#626b78;
  font:inherit;font-size:14px;line-height:1;cursor:pointer;
}
.contact-tip-x:hover{background:#e6ecf1}
@media (prefers-reduced-motion: no-preference){
  .contact-tip{animation:contact-tip-jump .9s ease-in-out .35s 2}
  @keyframes contact-tip-jump{
    0%,100%{transform:translateY(0)}
    35%{transform:translateY(-7px)}
    55%{transform:translateY(0)}
    75%{transform:translateY(-3px)}
  }
}
@media (max-width:480px){
  .contact-tip{
    right:max(18px, env(safe-area-inset-right));
    bottom:calc(78px + env(safe-area-inset-bottom));
  }
}
@media print { .contact-widget { display: none !important; } }
