/* Comment tool. Everything is prefixed fb- so it cannot touch the prototype's styles. */
#fb-root { font: 14px/1.4 system-ui, "Segoe UI", sans-serif; color: #14171c; }
#fb-root * { box-sizing: border-box; }
html.fb-placing, html.fb-placing * { cursor: crosshair !important; }

#fb-tool {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border: 0; border-radius: 999px;
  background: #c8102e; color: #fff; font: 600 14px system-ui, "Segoe UI", sans-serif;
  cursor: pointer; box-shadow: 0 6px 18px rgba(20,23,28,.3);
}
#fb-tool:hover { background: #9a0c23; }
#fb-tool:focus-visible, .fb-dot:focus-visible, #fb-composer button:focus-visible { outline: 3px solid #1f5faa; outline-offset: 2px; }
#fb-tool[aria-pressed="true"] { background: #fff; color: #c8102e; box-shadow: inset 0 0 0 2px #c8102e, 0 6px 18px rgba(20,23,28,.3); }
#fb-tool.fb-intro { animation: fb-ring 1.5s ease-out infinite; }
@keyframes fb-ring {
  0%   { box-shadow: 0 0 0 0 rgba(200,16,46,.65), 0 6px 18px rgba(20,23,28,.3); }
  100% { box-shadow: 0 0 0 20px rgba(200,16,46,0), 0 6px 18px rgba(20,23,28,.3); }
}

#fb-tip {
  position: fixed; right: 20px; bottom: 72px; z-index: 1000; width: 240px;
  padding: 10px 12px; border-radius: 6px; background: #14171c; color: #fff; font-size: 13px;
}
#fb-banner {
  position: fixed; left: 50%; top: 66px; transform: translateX(-50%); z-index: 1000;
  max-width: calc(100vw - 32px); padding: 7px 14px; border-radius: 999px;
  background: #1f5faa; color: #fff; font-size: 13px; text-align: center;
}
#fb-outline {
  position: fixed; z-index: 990; pointer-events: none; border-radius: 3px;
  outline: 2px solid #1f5faa; outline-offset: 1px; background: rgba(31,95,170,.08);
}

#fb-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 950; }
html.fb-placing #fb-layer { pointer-events: none; }
html.fb-placing .fb-dot { pointer-events: none; }
.fb-dot {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; padding: 0;
  border-radius: 50%; border: 2px solid #fff; background: #c8102e; cursor: pointer;
  animation: fb-glow 1.8s ease-in-out infinite;
}
@keyframes fb-glow {
  0%, 100% { box-shadow: 0 0 5px 2px rgba(200,16,46,.55); }
  50%      { box-shadow: 0 0 16px 7px rgba(200,16,46,.75); }
}

#fb-note {
  position: fixed; z-index: 1010; width: 280px; max-height: 260px; overflow-y: auto;
  padding: 10px 12px; border: 1px solid #dde1e7; border-radius: 6px;
  background: #fff; color: #14171c; font-size: 13.5px; box-shadow: 0 8px 26px rgba(20,23,28,.22);
}
#fb-note .fb-meta { margin-bottom: 4px; font-size: 11.5px; color: #4a525e; }
#fb-note .fb-body { white-space: pre-wrap; overflow-wrap: anywhere; }

#fb-composer {
  position: fixed; z-index: 1020; width: 300px; padding: 12px;
  border: 1px solid #dde1e7; border-radius: 6px; background: #fff; box-shadow: 0 8px 26px rgba(20,23,28,.25);
}
#fb-composer label { display: block; margin-bottom: 8px; font-size: 12px; color: #4a525e; }
#fb-composer input, #fb-composer textarea {
  display: block; width: 100%; margin-top: 3px; padding: 7px; border: 1px solid #dde1e7; border-radius: 4px;
  background: #fff; color: #14171c; font: 14px system-ui, "Segoe UI", sans-serif;
}
#fb-composer textarea { height: 84px; resize: vertical; }
.fb-error { margin-top: 2px; font-size: 12.5px; color: #c8102e; }
.fb-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.fb-actions button { padding: 7px 12px; border: 0; border-radius: 4px; font: 600 13px system-ui, "Segoe UI", sans-serif; cursor: pointer; background: transparent; color: #4a525e; }
.fb-actions .fb-save { background: #c8102e; color: #fff; }
.fb-actions .fb-save:disabled { opacity: .6; cursor: default; }

#fb-root [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  #fb-tool.fb-intro, .fb-dot { animation: none; }
  .fb-dot { box-shadow: 0 0 10px 4px rgba(200,16,46,.6); }
}
