[hidden] { display: none !important; }

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

.tg-wrap { position: relative; }

.tg-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  width: 220px;
  padding: 6px;
  border-radius: 10px;
  background: #242429;
  box-shadow: 0 16px 48px #00000070;
}

.tg-menu[hidden] { display: none; }

.tg-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 6px;
  color: #f5f5f7;
  font-size: 15px;
}

.tg-menu a:hover { background: #34343d; color: #fff; }
.tg-menu a > span { flex: 1; }
.tg-menu small { display: block; font-size: 12px; color: #adaeb7; margin-top: 3px; }
.tg-menu a > svg:first-child { color: var(--red-text); }
.tg-wrap.is-open .tg-trigger { background: #303036; }
.tg-wrap.is-open .tg-trigger > svg:last-child { transform: rotate(180deg); }

.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}

.dialog-overlay[hidden] { display: none; }

body.dialog-open { overflow: hidden; }

.release-item > summary {
  list-style: none;
  cursor: pointer;
}

.release-item > summary::-webkit-details-marker { display: none; }

.release-item[open] .release-trigger > svg { transform: rotate(180deg); }
.release-trigger > svg { transition: transform .18s; }

@media (prefers-reduced-motion: reduce) {
  .release-trigger > svg { transition: none; }
}

/* Форма обратной связи */
.feedback-dialog { max-width: 520px !important; max-height: calc(100vh - 32px); overflow: auto; }
.feedback-form { display: grid; gap: 14px; margin-top: 22px; }
.fb-field { display: grid; gap: 6px; font-size: 13px; color: #adaeb7; }
.fb-field input, .fb-field select, .fb-field textarea {
  font: inherit;
  width: 100%; border: 0; border-radius: 7px; background: #242429; color: #f5f5f7;
  padding: 12px 13px; font-size: 15px; line-height: 1.4; resize: vertical; outline: none;
}
.fb-field input:focus-visible, .fb-field select:focus-visible, .fb-field textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fb-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-status { min-height: 1.2em; font-size: 14px; color: #adaeb7; }
.fb-status[data-state="ok"] { color: #7ed97e; }
.fb-status[data-state="error"] { color: var(--red-text); }
.feedback-form .button { width: 100%; }
.footer-feedback { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.footer-feedback:hover { color: var(--red-text); }
.report-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: none; border: 0; padding: 0;
  color: #adaeb7; font-size: 13px; cursor: pointer;
}
.report-link:hover { color: var(--red-text); }
.release-size { font-weight: 500; opacity: .75; margin-left: 4px; }
