/* feedback.css — bug report / feature request drawer (.fbk-*).
   Mirrors the New Portfolio drawer (.npd-*) shell: a floating right-side panel
   inset from the window edges, slide-in spring, transparent click-catcher
   overlay (page dim comes from the global body:has(.modal-overlay)::before). */

.fbk-overlay { background: transparent; opacity: 0; transition: opacity .28s ease; }
.fbk-overlay.is-entered { opacity: 1; }

.fbk-drawer {
  position: fixed; top: 14px; right: 14px; bottom: 14px;
  width: 460px; max-width: calc(100vw - 28px);
  z-index: 1000; display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateX(calc(100% + 28px)); opacity: .4;
  transition: transform .32s cubic-bezier(.34,1.18,.64,1), opacity .28s ease;
  overflow: hidden;
}
.fbk-drawer.is-entered { transform: translateX(0); opacity: 1; }

/* Header */
.fbk-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.fbk-title { font-size: 15px; font-weight: 650; color: var(--text); }
.fbk-close {
  background: none; border: none; color: var(--text3); cursor: pointer;
  padding: 4px; border-radius: 6px; display: flex; line-height: 0;
  transition: color .15s, background .15s;
}
.fbk-close:hover { color: var(--text); background: var(--surface3); }

/* Body */
.fbk-body {
  flex: 1; overflow-y: auto;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.fbk-intro { font-size: 12.5px; color: var(--text2); line-height: 1.5; }

.fbk-field { display: flex; flex-direction: column; gap: 7px; }
.fbk-label {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text3);
}

/* Bug / Feature toggle */
.fbk-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fbk-toggle-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text2);
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 550;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.fbk-toggle-btn:hover { border-color: var(--accent-border); background: var(--surface3); }
.fbk-toggle-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.fbk-toggle-ico { display: flex; line-height: 0; }

/* Details textarea (summary reuses the global .field-input) */
.fbk-textarea {
  width: 100%; box-sizing: border-box;
  padding: 10px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 5px;
  font-family: var(--font-ui); font-size: 12.5px; line-height: 1.5;
  color: var(--text);
  outline: none; resize: vertical; min-height: 120px;
  transition: border-color .15s, background .15s;
}
.fbk-textarea:focus { border-color: var(--accent); background: var(--surface3); }
.fbk-textarea::placeholder { color: var(--text3); }

.fbk-hint { font-size: 11px; color: var(--text3); line-height: 1.45; }

/* Footer */
.fbk-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
