/* Feedback button (header) and dialog, on every page. Tokens come from base.css. */
.fb-open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
@media (max-width: 1150px) { .fb-label { display: none; } }  /* leave room for the section tabs */

.fb {
  width: min(480px, calc(100vw - 32px)); padding: 0; margin: auto;
  color: var(--text); background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.fb::backdrop { background: rgb(0 0 0 / .45); backdrop-filter: blur(2px); }
.fb form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.fb-head { display: flex; align-items: center; justify-content: space-between; }
.fb-head h2 { font-family: var(--head); font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.fb-x { background: none; border: 0; color: var(--text3); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.fb-x:hover { color: var(--text); background: var(--bg3); }
.fb-sub { font-size: 13.5px; line-height: 1.5; color: var(--text3); margin-top: -4px; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kinds span {
  display: inline-block; padding: 6px 11px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  color: var(--text2); background: var(--bg3); border: 1px solid transparent; border-radius: 999px;
}
.fb-kinds input:checked + span { color: var(--accent); background: var(--accentdim); border-color: var(--accent); }
.fb-kinds input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb textarea, .fb input[type=email] {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); resize: vertical;
}
.fb textarea:focus, .fb input[type=email]:focus { outline: none; border-color: var(--accent); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.fb-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.fb-status { margin-right: auto; font-size: 13px; color: var(--text3); }
.fb-status.ok { color: var(--green); }
.fb-status.err { color: var(--red); }
.fb-send {
  padding: 8px 18px; font: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer;
  background: var(--accent); border: 0; border-radius: 999px;
}
.fb-send:disabled { opacity: .55; cursor: wait; }
