/* Feedback forms: the pilot bubble (layout/base.html) and the profile card share .fb-form */
.fb-form { display: flex; flex-direction: column; gap: .75rem; }
.fb-field { display: flex; flex-direction: column; gap: .3rem; }
.fb-label { font-size: .8rem; font-weight: 600; color: var(--ink); }
.fb-opt { font-weight: 400; color: var(--ink-soft); }
.fb-form select, .fb-form textarea { width: 100%; font: inherit; font-size: .9rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.fb-form textarea { resize: vertical; line-height: 1.5; }
.fb-form select:focus-visible, .fb-form textarea:focus-visible, .fb-star:focus-visible, .fb-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-stars { display: flex; gap: .15rem; }
.fb-star { border: 0; background: none; padding: .1rem .2rem; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--line); transition: color .12s, transform .12s; }
.fb-star:hover { transform: scale(1.12); }
.fb-star.on { color: #d99a1e; }
.fb-send { height: 36px; padding: 0 1.1rem; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.fb-send:hover { filter: brightness(1.08); }
.fb-send:disabled { opacity: .6; cursor: default; }
.fb-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.fb-status { font-size: .85rem; color: var(--accent); }
.fb-status.err { color: var(--danger); }
.fb-hint { margin: 0; font-size: .75rem; color: var(--ink-soft); }

/* the floating bubble */
.fb-root { position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 49; }
.fb-root.with-assistant { right: calc(var(--sp-4) + 72px); }   /* sit left of the assistant bubble */
.fb-toggle { display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-md); }
.fb-toggle:hover { border-color: var(--accent); color: var(--accent); }
.fb-toggle svg { width: 18px; height: 18px; }
.fb-panel { position: absolute; right: 0; bottom: 56px; width: 340px; max-width: calc(100vw - 2 * var(--sp-4)); max-height: calc(100vh - 120px); overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 1rem; }
.fb-panel[hidden] { display: none; }
.fb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.fb-head b { font-family: var(--font-serif, Georgia, serif); font-size: 1rem; line-height: 1.3; }
.fb-head p { margin: .2rem 0 0; font-size: .8rem; color: var(--ink-soft); font-weight: 400; }
.fb-x { border: 0; background: none; cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--ink-soft); padding: 0 .25rem; }
.fb-x:hover { color: var(--ink); }
@media (max-width: 520px) {
  .fb-root, .fb-root.with-assistant { right: var(--sp-3, 12px); bottom: calc(var(--sp-3, 12px) + 60px); }
  .fb-panel { position: fixed; left: var(--sp-3, 12px); right: var(--sp-3, 12px); bottom: calc(var(--sp-3, 12px) + 112px); width: auto; max-width: none; }
}
@media print { .fb-root { display: none; } }

/* the profile card */
.pf-feedback .fb-form { max-width: 560px; }
