#feedback-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 9000; cursor: pointer;
  background: var(--brand); color: var(--on-brand);
  writing-mode: vertical-rl; text-orientation: mixed;
  padding: 14px 7px; border-radius: 6px 0 0 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.25);
  transition: background 0.2s, color 0.2s;
  user-select: none;
}
#feedback-tab:hover { background: var(--accent); color: var(--brand); }

#feedback-overlay {
  display: none; position: fixed; inset: 0; z-index: 8999;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(2px);
}
#feedback-panel {
  position: fixed; right: -420px; top: 50%; transform: translateY(-50%);
  z-index: 9001; width: 380px;
  background: color-mix(in srgb, var(--brand) 85%, black);
  border: 1px solid color-mix(in srgb, var(--brand) 60%, transparent);
  border-right: none; border-radius: 12px 0 0 12px; padding: 26px 24px;
  box-shadow: -4px 4px 24px rgba(0,0,0,0.45);
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  font-family: inherit;
}
#feedback-panel.open { right: 0; }
#feedback-panel h3 {
  margin: 0 0 4px; font-size: 1.15rem; color: var(--on-brand); font-weight: 700;
}
#feedback-panel p.sub {
  margin: 0 0 16px; font-size: 0.95rem;
  color: color-mix(in srgb, var(--on-brand) 75%, transparent);
}
.fb-label {
  display: block; font-size: 0.95rem; font-weight: 600;
  color: var(--on-brand); margin-bottom: 5px;
}
.fb-stars { display: flex; gap: 6px; margin-bottom: 14px; }
.fb-stars span {
  font-size: 1.6rem; cursor: pointer; color: rgba(255,255,255,0.25);
  transition: color 0.15s; line-height: 1;
}
.fb-stars span.active { color: var(--accent); }
.fb-select, .fb-textarea, .fb-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px; color: var(--on-brand); font-size: 0.92rem;
  padding: 9px 11px; margin-bottom: 12px; outline: none;
  transition: border-color 0.2s; font-family: inherit;
}
.fb-select:focus, .fb-textarea:focus, .fb-input:focus { border-color: var(--accent); }
.fb-select option { background: color-mix(in srgb, var(--brand) 85%, black); }
.fb-textarea::placeholder, .fb-input::placeholder { color: rgba(200,230,210,0.5); }
.fb-textarea { resize: vertical; min-height: 90px; }
.fb-row { display: flex; gap: 10px; }
.fb-row .fb-input { flex: 1; margin-bottom: 12px; }
#fb-submit {
  width: 100%; padding: 11px; border: none; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, color 0.2s; letter-spacing: 0.03em;
}
#fb-submit:hover { background: var(--accent); color: var(--brand); }
#fb-submit:disabled { opacity: 0.5; cursor: default; }
#fb-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none;
  color: color-mix(in srgb, var(--on-brand) 40%, transparent);
  font-size: 1.2rem; cursor: pointer; line-height: 1;
}
#fb-close:hover { color: var(--on-brand); }
#fb-success { display: none; text-align: center; padding: 20px 0; }
#fb-success .fb-check { font-size: 2.5rem; }
#fb-success p {
  color: color-mix(in srgb, var(--on-brand) 85%, transparent);
  margin: 8px 0 0; font-size: 0.9rem;
}
