/* PPQviewer's visible report rail, adapted to Linguics' page composition.
   Reserve room for the strip instead of covering an answer or a control. */
#feedback-strip { display: none; }
body.feedback-strip-ready #feedback-strip { display: flex; flex-direction: column; gap: 4px;
  position: fixed; left: 4px; top: 50%; transform: translateY(-50%); width: 32px;
  z-index: 45; padding: 4px 2px; box-sizing: border-box; background: var(--bg); }
.feedback-strip-caption { display: none; }
#feedback-strip button { margin: 0; width: 100%; min-height: 0; padding: 7px 4px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--bg);
  color: var(--muted); font: inherit; font-size: 11px; line-height: 1.4;
  text-align: center; white-space: nowrap; cursor: pointer; }
#feedback-strip button:hover { color: var(--ink); background: var(--blue-soft); }
#feedback-strip button[aria-expanded="true"] { color: var(--accent); border-color: var(--line); }
#feedback-strip button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
html #footer-feedback-host, html #wk-fb-btn { display: none !important; }
html #wk-fb-panel { left: 48px; }
@media (min-width: 861px) {
  body.feedback-strip-ready { padding-left: 42px; }
  #feedback-strip button { writing-mode: vertical-rl; transform: rotate(180deg); flex: 0 0 auto; }
}
@media (min-width: 861px) and (max-height: 640px) {
  body.feedback-strip-ready #feedback-strip { gap: 3px; }
  #feedback-strip button { padding: 4px 3px; font-size: 10px; line-height: 1.3; }
}
@media (min-width: 861px) and (max-height: 480px) {
  body.feedback-strip-ready { padding-left: 74px; }
  body.feedback-strip-ready #feedback-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 64px; }
  html #wk-fb-panel { left: 80px; }
}
@media (max-width: 860px) {
  :root { --feedback-strip-height: 90px; }
  body.feedback-strip-ready { padding-left: 0; padding-bottom: calc(var(--feedback-strip-height) + 12px); }
  html:has(body.feedback-strip-ready) { scroll-padding-bottom: calc(var(--feedback-strip-height) + 12px); }
  body.feedback-strip-ready #feedback-strip { left: 0; right: 0; top: auto; bottom: 0;
    transform: none; width: auto; height: var(--feedback-strip-height); display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2px; padding: 1px 7px;
    border-right: 0; border-top: 1px solid var(--line); }
  .feedback-strip-caption { display: none; }
  #feedback-strip button { min-height: 44px; padding: 4px; text-align: center; line-height: 1.25; white-space: normal; }
  html #wk-fb-panel { left: 14px; right: 14px; width: auto;
    bottom: calc(var(--feedback-strip-height) + 12px); max-height: calc(100dvh - var(--feedback-strip-height) - 36px); }
}
@media (max-width: 600px) {
  body.feedback-strip-ready { padding-bottom: calc(var(--phone-bottom, 110px) + var(--feedback-strip-height) + 12px); }
  body.feedback-strip-ready.entry-active, body.feedback-strip-ready.coverage-active {
    padding-bottom: calc(var(--phone-tabs-height, 62px) + var(--feedback-strip-height) + 12px); }
  html:has(body.feedback-strip-ready) { scroll-padding-bottom: calc(var(--phone-bottom, 110px) + var(--feedback-strip-height) + 12px); }
  body.feedback-strip-ready #feedback-strip { bottom: var(--phone-bottom, 110px); }
  body.feedback-strip-ready.entry-active #feedback-strip,
  body.feedback-strip-ready.coverage-active #feedback-strip { bottom: var(--phone-tabs-height, 62px); }
  body.feedback-strip-ready #wk-fb-panel { bottom: calc(var(--phone-bottom, 110px) + var(--feedback-strip-height) + 12px) !important;
    max-height: calc(100dvh - var(--phone-bottom, 110px) - var(--feedback-strip-height) - 36px); }
  body.feedback-strip-ready.entry-active #wk-fb-panel,
  body.feedback-strip-ready.coverage-active #wk-fb-panel { bottom: calc(var(--phone-tabs-height, 62px) + var(--feedback-strip-height) + 12px) !important;
    max-height: calc(100dvh - var(--phone-tabs-height, 62px) - var(--feedback-strip-height) - 36px); }
  body.feedback-strip-ready.pullup-open #feedback-strip { visibility: hidden; }
  body.feedback-strip-ready.mobile-keyboard-open { padding-bottom: 16px; }
  body.feedback-strip-ready.mobile-keyboard-open #feedback-strip { position: static; margin-top: 12px; }
  body.feedback-strip-ready.mobile-keyboard-open #wk-fb-panel { bottom: 12px !important; max-height: calc(100dvh - 24px); }
}
