.fb-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 1250;
  background: #fff; color: #0a0a0a; border: 1px solid var(--border, #e5e7eb);
  border-radius: 999px; padding: 10px 16px;
  font-family: 'Inter', -apple-system, sans-serif; font-size: 13px; font-weight: 600; line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08); cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.fb-launcher:hover { border-color: var(--accent, #f69400); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }

.fb-backdrop {
  position: fixed; inset: 0; z-index: 1290;
  background: rgba(15, 23, 42, .35);
}
.fb-backdrop[hidden] { display: none; }

.fb-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw; z-index: 1300;
  background: #fff; display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
  font-family: 'Inter', -apple-system, sans-serif; color: var(--text, #0a0a0a);
  transform: translateX(105%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.fb-panel.fb-open { transform: none; visibility: visible; }

.fb-panel.fb-min {
  top: auto; bottom: 16px; right: 16px; height: auto; width: 340px;
  border: 1px solid var(--border, #e5e7eb); border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .2);
}
.fb-panel.fb-min .fb-head, .fb-panel.fb-min .fb-tabs,
.fb-panel.fb-min .fb-scroll, .fb-panel.fb-min .fb-foot { display: none; }
.fb-minbar { display: none; }
.fb-panel.fb-min .fb-minbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  font-size: 12.5px; color: var(--muted, #6b7280);
}
.fb-minbar .fb-btn { flex-shrink: 0; }

.fb-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 20px 12px; border-bottom: 1px solid var(--border, #e5e7eb);
}
.fb-title { font-size: 16px; font-weight: 700; }
.fb-subtitle { font-size: 12px; color: var(--muted, #6b7280); margin-top: 2px; }
.fb-icon-btn {
  background: none; border: 1px solid transparent; border-radius: 8px;
  font-size: 18px; line-height: 1; padding: 6px 9px; cursor: pointer; color: var(--muted, #6b7280);
}
.fb-icon-btn:hover { border-color: var(--border, #e5e7eb); color: var(--text, #0a0a0a); }

.fb-tabs { display: flex; gap: 4px; padding: 10px 20px 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.fb-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 8px 12px 10px; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted, #6b7280); cursor: pointer;
}
.fb-tab.active { color: var(--text, #0a0a0a); border-bottom-color: var(--accent, #f69400); }

.fb-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 24px; }

.fb-label { display: block; font-size: 12px; font-weight: 700; margin: 16px 0 6px; }
.fb-label:first-child { margin-top: 0; }
.fb-req { color: var(--accent, #f69400); }
.fb-hint { font-size: 11.5px; color: var(--muted, #6b7280); margin: -2px 0 6px; }

.fb-field, .fb-select {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13px; color: var(--text, #0a0a0a);
  border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 9px 11px; background: #fff;
}
.fb-field { min-height: 72px; resize: vertical; line-height: 1.45; }
.fb-field:focus, .fb-select:focus { outline: none; border-color: var(--accent, #f69400); box-shadow: 0 0 0 3px rgba(246, 148, 0, .14); }
.fb-field.fb-invalid, .fb-select.fb-invalid { border-color: var(--error, #ef4444); }
.fb-counter { font-size: 11px; color: var(--muted, #6b7280); text-align: right; margin-top: 3px; }

.fb-fieldset { border: none; margin: 0; padding: 0; }
.fb-fieldset legend { padding: 0; }
.fb-radio { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; padding: 5px 0; cursor: pointer; }
.fb-radio input { margin: 2px 0 0; accent-color: var(--accent, #f69400); }
.fb-fieldset.fb-invalid-group .fb-radio { color: var(--error, #ef4444); }

.fb-notice {
  background: var(--surface, #f8f9fb); border: 1px solid var(--border, #e5e7eb);
  border-left: 3px solid var(--accent, #f69400); border-radius: 8px;
  font-size: 12.5px; padding: 9px 12px; margin-bottom: 12px;
}
.fb-restore {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px;
  font-size: 12.5px; padding: 9px 12px; margin-bottom: 12px;
}

.fb-tray-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; }
.fb-tray-count { font-size: 11px; color: var(--muted, #6b7280); }
.fb-tray { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 8px; }
.fb-tray-empty {
  font-size: 12px; color: var(--muted, #6b7280); background: var(--surface, #f8f9fb);
  border: 1px dashed var(--border, #e5e7eb); border-radius: 10px; padding: 12px; line-height: 1.5;
}
.fb-panel.fb-drop-hot .fb-tray, .fb-panel.fb-drop-hot .fb-tray-empty { border: 1px dashed var(--accent, #f69400); border-radius: 10px; background: rgba(246, 148, 0, .05); }

.fb-card {
  border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 9px 11px;
  background: #fff; font-size: 12px;
}
.fb-card.fb-drag-src { opacity: .5; }
.fb-card.fb-drop-target { border-color: var(--accent, #f69400); }
.fb-card-top { display: flex; align-items: flex-start; gap: 8px; }
.fb-drag { cursor: grab; color: var(--muted, #6b7280); user-select: none; padding: 0 2px; touch-action: none; }
.fb-card-label { font-weight: 700; flex: 1; }
.fb-card-src { color: var(--muted, #6b7280); font-size: 11px; margin-top: 1px; }
.fb-kv-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fb-kv {
  background: var(--surface, #f8f9fb); border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px; padding: 2px 7px; font-size: 11px;
}
.fb-kv .fb-kv-k { color: var(--muted, #6b7280); }
.fb-thumb { max-width: 100%; max-height: 110px; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; margin-top: 8px; display: block; }
.fb-shot-note { font-size: 11px; color: var(--muted, #6b7280); margin-top: 4px; }
.fb-warn { font-size: 11px; color: #b45309; margin-top: 4px; }
.fb-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.fb-btn {
  background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 10px;
  font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text, #0a0a0a);
  padding: 7px 12px; cursor: pointer;
}
.fb-btn:hover:not(:disabled) { border-color: var(--accent, #f69400); }
.fb-btn:disabled { opacity: .5; cursor: default; }
.fb-btn.small { padding: 4px 9px; font-size: 11px; border-radius: 8px; }
.fb-btn.primary { background: var(--accent, #f69400); border-color: var(--accent, #f69400); color: #fff; }
.fb-btn.primary:hover:not(:disabled) { background: var(--accent-hover, #d97e00); border-color: var(--accent-hover, #d97e00); }
.fb-tray-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.fb-list-panel { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; margin-top: 10px; overflow: hidden; }
.fb-list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 11px; font-size: 12px; font-weight: 700; background: var(--surface, #f8f9fb);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.fb-list { max-height: 240px; overflow-y: auto; }
.fb-list-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid var(--border, #e5e7eb); padding: 8px 11px;
  font-family: inherit; font-size: 12px; cursor: pointer;
}
.fb-list-item:last-child { border-bottom: none; }
.fb-list-item:hover, .fb-list-item:focus { background: var(--surface, #f8f9fb); }
.fb-list-label { display: block; font-weight: 600; }
.fb-list-id { display: block; color: var(--muted, #6b7280); font-size: 10.5px; margin-top: 1px; }

.fb-auto { margin-top: 18px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 0; }
.fb-auto summary { font-size: 12px; font-weight: 700; padding: 10px 12px; cursor: pointer; list-style-position: inside; }
.fb-auto-body { padding: 0 12px 10px; }
.fb-auto-row { display: flex; gap: 10px; font-size: 11.5px; padding: 3px 0; }
.fb-auto-row .fb-auto-k { width: 96px; flex-shrink: 0; color: var(--muted, #6b7280); }
.fb-auto-row .fb-auto-v { word-break: break-all; }

.fb-foot {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 20px; border-top: 1px solid var(--border, #e5e7eb);
}

.fb-progress { margin-top: 14px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 10px 12px; }
.fb-progress-status { font-size: 12px; font-weight: 600; }
.fb-up-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; padding: 6px 0 0; }
.fb-up-label { color: var(--muted, #6b7280); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-up-state { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.fb-up-state.done { color: #047857; }
.fb-up-state.failed { color: var(--error, #ef4444); }
.fb-spin {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
  border: 2px solid var(--border, #e5e7eb); border-top-color: var(--accent, #f69400);
  animation: fbspin .7s linear infinite;
}
@keyframes fbspin { to { transform: rotate(360deg); } }
.fb-error-box {
  margin-top: 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
  font-size: 12.5px; padding: 10px 12px;
}
.fb-error-box .fb-error-actions { display: flex; gap: 8px; margin-top: 8px; }

.fb-confirm-box { text-align: center; padding: 28px 10px; }
.fb-confirm-mark {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 185, 129, .12); color: #047857; font-size: 20px; font-weight: 700;
}
.fb-confirm-title { font-size: 16px; font-weight: 700; }
.fb-confirm-ref { font-size: 13px; color: var(--accent-hover, #d97e00); font-weight: 700; margin-top: 4px; }
.fb-confirm-copy { font-size: 12.5px; color: var(--muted, #6b7280); margin: 10px 0 18px; line-height: 1.5; }
.fb-confirm-actions { display: flex; justify-content: center; gap: 8px; }

.fb-report { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.fb-report.fb-needs-reply { border-color: #fcd34d; background: #fffbeb; }
.fb-report-head {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 10px 12px; font-family: inherit; cursor: pointer;
}
.fb-report-head:hover { background: var(--surface, #f8f9fb); }
.fb-report-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-ref { font-size: 12px; font-weight: 700; }
.fb-report-snippet { display: block; font-size: 12px; color: var(--text, #0a0a0a); margin-top: 5px; }
.fb-report-meta { display: block; font-size: 11px; color: var(--muted, #6b7280); margin-top: 3px; }
.fb-report-body { border-top: 1px solid var(--border, #e5e7eb); padding: 10px 12px; background: #fff; }
.fb-reply-flag { font-size: 11px; font-weight: 700; color: #b45309; }

.fb-status { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid; }
.fb-status[data-status="new"] { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.fb-status[data-status="triaged"] { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.fb-status[data-status="in_progress"] { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.fb-status[data-status="needs_clarification"] { background: #fffbeb; color: #b45309; border-color: #fcd34d; }
.fb-status[data-status="resolved"] { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.fb-status[data-status="duplicate"], .fb-status[data-status="wont_fix"] { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }

.fb-comment { border-top: 1px solid var(--border, #e5e7eb); padding: 8px 0; font-size: 12px; }
.fb-comment:first-child { border-top: none; }
.fb-comment-meta { font-size: 11px; color: var(--muted, #6b7280); margin-bottom: 3px; }
.fb-comment-body { line-height: 1.45; white-space: pre-wrap; }
.fb-reply-row { display: flex; gap: 8px; margin-top: 10px; align-items: flex-start; }
.fb-reply-row .fb-field { min-height: 56px; flex: 1; }
.fb-loading { font-size: 12.5px; color: var(--muted, #6b7280); padding: 16px 0; }

.fb-live, .fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fb-pick-box {
  position: absolute; z-index: 1290; pointer-events: none; display: none;
  border: 2px solid var(--accent, #f69400); border-radius: 6px;
  background: rgba(246, 148, 0, .08); box-shadow: 0 0 0 4px rgba(246, 148, 0, .12);
}
.fb-pick-chip {
  position: absolute; z-index: 1291; pointer-events: none; display: none;
  background: #0a0a0a; color: #fff; font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 6px; white-space: nowrap; max-width: 340px;
  overflow: hidden; text-overflow: ellipsis;
}
body.fb-picking, body.fb-picking * { cursor: crosshair !important; }

body.fb-composer-open [data-feedback-id]:not([data-feedback-ui]):hover { box-shadow: inset 3px 0 0 var(--accent, #f69400); }
body.fb-dragging { user-select: none; }
.fb-ghost {
  position: fixed; z-index: 1310; pointer-events: none;
  background: #0a0a0a; color: #fff; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.fb-ann-backdrop {
  position: fixed; inset: 0; z-index: 1400; background: rgba(15, 23, 42, .72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.fb-ann-modal {
  background: #fff; border-radius: 16px; max-width: min(1080px, 96vw); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif; box-shadow: 0 28px 80px rgba(15, 23, 42, .35);
}
.fb-ann-tools {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border, #e5e7eb);
}
.fb-ann-tools .fb-btn[aria-pressed="true"] { border-color: var(--accent, #f69400); background: rgba(246, 148, 0, .1); }
.fb-ann-spacer { flex: 1; }
.fb-ann-stage { overflow: auto; background: #f1f5f9; padding: 14px; flex: 1; }
.fb-ann-wrap { position: relative; margin: 0 auto; width: fit-content; }
.fb-ann-canvas { display: block; max-width: 100%; height: auto; border: 1px solid var(--border, #e5e7eb); background: #fff; touch-action: none; }
.fb-ann-textinput {
  position: absolute; z-index: 2; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  color: #d97e00; border: 1px dashed var(--accent, #f69400); background: rgba(255, 255, 255, .92);
  padding: 3px 6px; border-radius: 4px; min-width: 120px;
}
.fb-ann-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--border, #e5e7eb); font-size: 12px; color: var(--muted, #6b7280);
}
.fb-ann-foot-actions { display: flex; gap: 8px; }

.fb-panel :focus-visible, .fb-launcher:focus-visible, .fb-ann-modal :focus-visible {
  outline: 2px solid var(--accent, #f69400); outline-offset: 2px;
}

@media (max-width: 720px) {
  .fb-panel { width: 100%; }
  .fb-panel.fb-min { right: 12px; left: 12px; width: auto; }
  .fb-launcher { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .fb-panel, .fb-backdrop, .fb-launcher, .fb-pick-box, .fb-spin { transition: none !important; animation: none !important; }
}

.fb-panel {
  --fb-gap-1: 4px;
  --fb-gap-2: 8px;
  --fb-gap-3: 12px;
  --fb-gap-4: 16px;
  --fb-gap-5: 20px;
  --fb-radius-sm: 8px;
  --fb-radius-md: 12px;
  --fb-radius-lg: 16px;
  --fb-border: #e3e7ed;
  --fb-border-strong: #cfd5de;
  --fb-text: #17191d;
  --fb-muted: #687180;
  --fb-surface: #f6f8fa;
  --fb-surface-warm: #fffaf2;
  --fb-accent: #f69400;
  --fb-accent-hover: #dd8200;
  --fb-focus: #c56d00;
  --fb-error: #c9362b;
  --fb-error-bg: #fff5f4;
  --fb-warn: #9a5a00;
  --fb-ok: #087a55;
  --fb-shadow: 0 24px 64px rgba(19, 28, 45, .18), 0 3px 12px rgba(19, 28, 45, .08);
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 440px;
  max-width: calc(100vw - 24px);
  color: var(--fb-text);
  border: 1px solid rgba(207, 213, 222, .88);
  border-radius: var(--fb-radius-lg);
  box-shadow: var(--fb-shadow);
  overflow: hidden;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), visibility .24s;
}
.fb-panel [hidden], .fb-backdrop[hidden] { display: none !important; }
.fb-backdrop { background: rgba(20, 27, 38, .4); }
.fb-ann-modal {
  --fb-border: #e3e7ed;
  --fb-border-strong: #cfd5de;
  --fb-text: #17191d;
  --fb-muted: #687180;
  --fb-surface: #f6f8fa;
  --fb-surface-warm: #fffaf2;
  --fb-accent: #f69400;
  --fb-accent-hover: #dd8200;
  --fb-focus: #c56d00;
  --fb-error: #c9362b;
  --fb-ok: #087a55;
}
.fb-launcher {
  min-height: 40px;
  padding: 10px 16px;
  border-color: rgba(207, 213, 222, .95);
  color: #24272c;
  box-shadow: 0 8px 24px rgba(19, 28, 45, .1);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.fb-launcher:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(19, 28, 45, .14); }
.fb-launcher:active { transform: translateY(0); }
.fb-panel.fb-min {
  top: auto;
  right: 16px;
  bottom: 84px;
  width: 352px;
  max-width: calc(100vw - 32px);
  border-radius: var(--fb-radius-lg);
  box-shadow: var(--fb-shadow);
}
.fb-panel.fb-min .fb-minbar { padding: 12px 14px; line-height: 1.45; }
.fb-head { padding: 16px 20px 10px; border-bottom: 0; }
.fb-title { font-size: 17px; line-height: 1.25; letter-spacing: -.015em; }
.fb-subtitle { max-width: 330px; margin-top: 4px; color: var(--fb-muted); line-height: 1.4; }
.fb-icon-btn {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--fb-radius-sm);
  color: var(--fb-muted);
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.fb-icon-btn:hover { border-color: var(--fb-border); background: var(--fb-surface); color: var(--fb-text); }
.fb-tabs { gap: 8px; padding: 0 20px; border-color: var(--fb-border); }
.fb-tab {
  position: relative;
  padding: 10px 4px 12px;
  border-bottom: 0;
  color: var(--fb-muted);
  transition: color .14s ease;
}
.fb-tab::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: -1px;
  left: 4px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
}
.fb-tab:hover { color: var(--fb-text); }
.fb-tab.active { color: var(--fb-text); border: 0; }
.fb-tab.active::after { background: var(--fb-focus); }
.fb-scroll { padding: 20px 20px 28px; scrollbar-gutter: stable; }
.fb-label { margin: 20px 0 7px; font-size: 12.5px; line-height: 1.35; }
.fb-label:first-child { margin-top: 0; }
.fb-hint { margin: -2px 0 7px; color: var(--fb-muted); line-height: 1.45; }
.fb-field, .fb-select {
  min-height: 42px;
  padding: 10px 12px;
  border-color: var(--fb-border-strong);
  border-radius: var(--fb-radius-md);
  color: var(--fb-text);
  line-height: 1.45;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.fb-field { min-height: 82px; }
.fb-field::placeholder { color: #9299a5; }
.fb-field:hover, .fb-select:hover { border-color: #aeb6c1; }
.fb-field:focus, .fb-select:focus { border-color: var(--fb-focus); box-shadow: 0 0 0 3px rgba(246, 148, 0, .16); }
.fb-field.fb-invalid, .fb-select.fb-invalid,
.fb-field.fb-invalid:focus, .fb-select.fb-invalid:focus {
  border-color: var(--fb-error);
  box-shadow: 0 0 0 3px rgba(201, 54, 43, .12);
}
.fb-counter { margin-top: 4px; color: var(--fb-muted); }
.fb-fieldset { margin-top: 0; border-radius: var(--fb-radius-md); }
.fb-radio {
  margin: 0 -8px;
  padding: 7px 8px;
  border-radius: var(--fb-radius-sm);
  color: var(--fb-text);
  line-height: 1.4;
  transition: background .14s ease, box-shadow .14s ease;
}
.fb-radio:hover { background: var(--fb-surface); }
.fb-radio:has(input:checked) { background: var(--fb-surface-warm); box-shadow: inset 0 0 0 1px rgba(246, 148, 0, .28); }
.fb-radio input { margin-top: 2px; accent-color: var(--fb-accent); }
.fb-fieldset.fb-invalid-group { margin-left: -10px; padding-left: 8px; border-left: 2px solid var(--fb-error); }
.fb-fieldset.fb-invalid-group .fb-radio { color: var(--fb-text); }
.fb-notice {
  padding: 10px 12px;
  margin-bottom: 16px;
  border-color: var(--fb-border);
  border-left-color: var(--fb-border-strong);
  border-radius: var(--fb-radius-md);
  background: var(--fb-surface);
  line-height: 1.45;
}
.fb-notice.fb-notice-error { color: #7f211a; border-color: #f1c2bd; border-left-color: var(--fb-error); background: var(--fb-error-bg); }
.fb-restore {
  padding: 10px 12px;
  margin-bottom: 16px;
  border-color: #f2d19b;
  border-radius: var(--fb-radius-md);
  background: var(--fb-surface-warm);
  line-height: 1.4;
}
.fb-tray-head { margin-top: 24px; }
.fb-tray-head .fb-label { margin: 0; color: var(--fb-muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.fb-tray-count { color: var(--fb-muted); }
.fb-tray { gap: 8px; margin: 8px 0; }
.fb-tray-empty { padding: 14px; border-color: var(--fb-border-strong); border-radius: var(--fb-radius-md); background: var(--fb-surface); color: var(--fb-muted); }
.fb-panel.fb-drop-hot .fb-tray, .fb-panel.fb-drop-hot .fb-tray-empty { border-radius: var(--fb-radius-md); background: var(--fb-surface-warm); }
.fb-tray-actions { gap: 8px; margin-top: 8px; }
.fb-card { padding: 10px 12px; border-color: var(--fb-border); border-radius: var(--fb-radius-md); box-shadow: 0 1px 2px rgba(19, 28, 45, .03); }
.fb-card .fb-icon-btn { width: 26px; height: 26px; flex-basis: 26px; }
.fb-card-main { flex: 1; min-width: 0; }
.fb-card-label { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.fb-card-src { margin-top: 2px; color: var(--fb-muted); }
.fb-drag { padding: 1px 2px; color: #8c94a0; }
.fb-kv-row { gap: 5px; margin-top: 8px; }
.fb-kv { padding: 3px 7px; border-color: var(--fb-border); border-radius: 7px; background: var(--fb-surface); font-size: 11.5px; }
.fb-kv .fb-kv-k { color: var(--fb-muted); }
.fb-thumb { max-height: 132px; margin-top: 10px; border-color: var(--fb-border); border-radius: var(--fb-radius-md); }
.fb-card-actions { gap: 6px; margin-top: 10px; }
.fb-btn {
  min-height: 36px;
  padding: 8px 13px;
  border-color: var(--fb-border-strong);
  border-radius: var(--fb-radius-md);
  color: var(--fb-text);
  line-height: 1.2;
  transition: transform .12s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.fb-btn:hover:not(:disabled) { border-color: #aeb6c1; background: var(--fb-surface); }
.fb-btn:active:not(:disabled) { transform: translateY(1px); }
.fb-btn:disabled { opacity: .38; }
.fb-btn.small { min-height: 30px; padding: 4px 10px; border-radius: var(--fb-radius-sm); }
.fb-btn.primary { padding: 9px 18px; border-color: var(--fb-accent); background: var(--fb-accent); color: #21160a; font-size: 13px; box-shadow: 0 1px 2px rgba(128, 73, 0, .12); }
.fb-btn.primary:hover:not(:disabled) { border-color: var(--fb-accent-hover); background: var(--fb-accent-hover); box-shadow: 0 4px 12px rgba(221, 130, 0, .2); }
.fb-btn.is-loading { display: inline-flex; align-items: center; gap: 8px; }
.fb-btn.is-loading::before { content: ''; width: 12px; height: 12px; border: 2px solid rgba(33, 22, 10, .26); border-top-color: #21160a; border-radius: 50%; animation: fbspin .7s linear infinite; }
.fb-list-panel { margin-top: 12px; border-color: var(--fb-border); border-radius: var(--fb-radius-md); box-shadow: 0 8px 22px rgba(19, 28, 45, .08); }
.fb-list-head { padding: 9px 12px; border-color: var(--fb-border); background: var(--fb-surface); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; }
.fb-list-item { padding: 9px 12px; border-color: var(--fb-border); line-height: 1.4; }
.fb-list-item:hover, .fb-list-item:focus { background: var(--fb-surface); }
.fb-list-item:focus-visible { outline-offset: -2px; }
.fb-list-id { margin-top: 2px; color: var(--fb-muted); }
.fb-auto { margin-top: 24px; border-color: var(--fb-border); border-radius: var(--fb-radius-md); overflow: hidden; }
.fb-auto summary {
  position: relative;
  padding: 11px 36px 11px 12px;
  list-style: none;
  transition: background .14s ease;
  color: var(--fb-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.fb-auto summary::-webkit-details-marker { display: none; }
.fb-auto summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--fb-muted);
  border-bottom: 1.5px solid var(--fb-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .18s ease;
}
.fb-auto[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.fb-auto summary:hover { background: var(--fb-surface); }
.fb-auto-body { padding: 10px 12px 12px; border-top: 1px solid var(--fb-border); }
.fb-auto-row { padding: 4px 0; line-height: 1.4; }
.fb-auto-row .fb-auto-k { color: var(--fb-muted); }
.fb-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-color: var(--fb-border); background: #fff; }
.fb-progress { padding: 12px; margin-top: 16px; border-color: var(--fb-border); border-radius: var(--fb-radius-md); background: var(--fb-surface); }
.fb-progress-status { display: flex; align-items: center; gap: 8px; }
.fb-progress-status:not(:empty)::before { content: ''; width: 13px; height: 13px; flex: 0 0 13px; border: 2px solid #d9dde3; border-top-color: var(--fb-accent); border-radius: 50%; animation: fbspin .7s linear infinite; }
.fb-progress-status.is-error { color: #7f211a; }
.fb-progress-status.is-error::before { border: 0; border-radius: 0; background: none; color: var(--fb-error); content: '!'; font-weight: 800; line-height: 13px; text-align: center; animation: none; }
.fb-up-row { padding-top: 8px; }
.fb-up-label { color: var(--fb-muted); }
.fb-up-state.done { color: var(--fb-ok); }
.fb-up-state.failed { color: var(--fb-error); }
.fb-error-box { padding: 11px 12px; margin-top: 14px; border-color: #f1c2bd; border-radius: var(--fb-radius-md); background: var(--fb-error-bg); color: #7f211a; line-height: 1.45; }
.fb-error-box.fb-flush { margin-top: 0; }
.fb-confirm-box { padding: 38px 12px 28px; }
.fb-confirm-mark { width: 48px; height: 48px; margin-bottom: 16px; background: #eaf8f2; color: var(--fb-ok); box-shadow: inset 0 0 0 1px rgba(8, 122, 85, .12); }
.fb-confirm-title { font-size: 18px; letter-spacing: -.015em; }
.fb-confirm-ref { margin-top: 6px; color: var(--fb-accent-hover); }
.fb-confirm-copy { max-width: 310px; margin: 11px auto 20px; color: var(--fb-muted); }
.fb-report { margin-bottom: 10px; border-color: var(--fb-border); border-radius: var(--fb-radius-md); }
.fb-report.fb-needs-reply { border-color: #edc778; background: var(--fb-surface-warm); }
.fb-report-head { padding: 12px; }
.fb-report-head:hover { background: var(--fb-surface); }
.fb-report-body { padding: 12px; border-color: var(--fb-border); background: var(--fb-surface); }
.fb-report-snippet { margin-top: 7px; line-height: 1.45; }
.fb-report-meta { margin-top: 5px; color: var(--fb-muted); }
.fb-status { padding: 3px 8px; letter-spacing: .01em; }
.fb-comment { padding: 10px 0; border-color: var(--fb-border); }
.fb-comment-body { line-height: 1.5; }
.fb-reply-row { margin-top: 12px; }
.fb-ann-modal { border: 1px solid rgba(207, 213, 222, .88); border-radius: 18px; box-shadow: 0 30px 90px rgba(19, 28, 45, .32); }
.fb-ann-tools { padding: 12px 20px; border-color: var(--fb-border); }
.fb-ann-tools .fb-btn[aria-pressed="true"] { color: #7b4700; border-color: rgba(246, 148, 0, .48); background: var(--fb-surface-warm); }
.fb-ann-stage { padding: 20px; background: #eef1f5; }
.fb-ann-canvas { border-color: var(--fb-border-strong); border-radius: var(--fb-radius-sm); box-shadow: 0 4px 18px rgba(19, 28, 45, .1); }
.fb-ann-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-color: var(--fb-border); }
.fb-panel :focus-visible, .fb-launcher:focus-visible, .fb-ann-modal :focus-visible { outline-color: var(--fb-focus); outline-offset: 2px; }

@media (max-width: 720px) {
  .fb-panel {
    inset: 0;
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
  }
  .fb-head { padding: calc(14px + env(safe-area-inset-top)) 16px 9px; }
  .fb-tabs { padding: 0 16px; }
  .fb-scroll { padding: 18px 16px 24px; }
  .fb-foot { padding-right: 16px; padding-left: 16px; }
  .fb-panel.fb-min { right: 12px; bottom: 76px; left: 12px; width: auto; border: 1px solid var(--fb-border); border-radius: var(--fb-radius-lg); }
  .fb-tray-actions { display: grid; grid-template-columns: 1fr; }
  .fb-tray-actions .fb-btn { min-height: 40px; }
  .fb-card-actions .fb-btn.small { min-height: 40px; }
  .fb-icon-btn, .fb-card .fb-icon-btn { width: 40px; height: 40px; flex-basis: 40px; }
  .fb-tab, .fb-radio, .fb-auto summary, .fb-foot .fb-btn { min-height: 40px; }
  .fb-confirm-actions { flex-direction: column; }
  .fb-confirm-actions .fb-btn { width: 100%; }
  .fb-reply-row { flex-direction: column; }
  .fb-reply-row .fb-btn { width: 100%; }
  .fb-ann-tools, .fb-ann-foot { padding-right: 14px; padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .fb-panel, .fb-backdrop, .fb-launcher, .fb-pick-box, .fb-spin,
  .fb-progress-status::before, .fb-auto summary::after, .fb-btn { transition: none !important; animation: none !important; }
}

@media print {
  [data-feedback-ui] { display: none !important; }
}
