.go2-bug-overlay[hidden] {
  display: none !important;
}

.go2-bug-shake-access {
  display: none;
}

.go2-bug-shake-access[hidden],
.go2-bug-shake-permission[hidden] {
  display: none !important;
}

.go2-bug-shake-permission {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 25, 31, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.go2-bug-shake-permission-dialog {
  width: min(100%, 430px);
  padding: 24px;
  border: 1px solid rgba(57, 118, 124, 0.2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(6, 31, 38, 0.3);
  color: #193943;
}

.go2-bug-shake-permission-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #39767c;
  font: 850 0.7rem/1.2 "Nunito Sans", system-ui, sans-serif;
  letter-spacing: 0.12em;
}

.go2-bug-shake-permission-dialog h2 {
  margin: 0 0 9px;
  color: #193943;
  font: 850 1.28rem/1.2 "Nunito Sans", system-ui, sans-serif;
}

.go2-bug-shake-permission-dialog > p {
  margin: 0;
  color: #61757b;
  font: 600 0.9rem/1.5 "Nunito Sans", system-ui, sans-serif;
}

.go2-bug-shake-permission-status:not(:empty) {
  margin-top: 12px;
  color: #a33131;
  font-weight: 750;
}

.go2-bug-shake-permission-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.go2-bug-shake-permission-actions button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(22, 69, 79, 0.2);
  border-radius: 12px;
  background: #fff;
  color: #286e73;
  font: 800 0.82rem/1 "Nunito Sans", system-ui, sans-serif;
}

.go2-bug-shake-permission-actions [data-bug-shake-permission-enable] {
  border-color: #286e73;
  background: #286e73;
  color: #fff;
}

.go2-bug-shake-permission-actions button:focus-visible {
  outline: 3px solid rgba(57, 118, 124, 0.22);
  outline-offset: 2px;
}

.go2-bug-shake-permission-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.go2-bug-overlay {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 25, 31, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

html.go2-bug-dialog-open,
html.go2-bug-dialog-open body {
  overflow: hidden !important;
}

.go2-bug-dialog {
  box-sizing: border-box;
  width: min(100%, 640px);
  max-height: min(850px, calc(100dvh - 48px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(22, 69, 79, 0.16);
  border-radius: 24px;
  background: #fffef9;
  color: #102c35;
  box-shadow: 0 28px 90px rgba(4, 22, 28, 0.28);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overscroll-behavior: contain;
}

.go2-bug-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.go2-bug-eyebrow {
  margin: 0 0 5px;
  color: #39767c;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.go2-bug-header h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.15;
}

.go2-bug-close {
  flex: 0 0 auto;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(22, 69, 79, 0.16);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 400 1.8rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.go2-bug-close:hover {
  background: rgba(57, 118, 124, 0.08);
}

.go2-bug-intro {
  margin: 16px 0 8px;
  color: #496068;
  font-size: 0.94rem;
  line-height: 1.5;
}

.go2-bug-shortcut {
  margin: 0 0 22px;
  color: #5b6d73;
  font-size: 0.78rem;
}

.go2-bug-shortcut kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(22, 69, 79, 0.2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f2f5f1;
  color: #244750;
  font: 700 0.72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.go2-bug-shake-access {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 18px;
  padding: 13px;
  border: 1px solid rgba(57, 118, 124, 0.28);
  border-radius: 14px;
  background: rgba(57, 118, 124, 0.075);
}

.go2-bug-shake-access > div {
  display: grid;
  gap: 3px;
}

.go2-bug-shake-access strong {
  color: #193943;
  font-size: 0.86rem;
}

.go2-bug-shake-access small {
  color: #718086;
  font-size: 0.74rem;
  line-height: 1.4;
}

.go2-bug-shake-access button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(22, 69, 79, 0.2);
  border-radius: 10px;
  background: #fff;
  color: #286e73;
  font: 800 0.76rem/1 "Nunito Sans", system-ui, sans-serif;
  cursor: pointer;
}

.go2-bug-shake-access button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.go2-bug-shake-status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  color: #526b72;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.go2-bug-shake-status:not(:empty) {
  min-height: 17px;
}

.go2-bug-shake-status.is-enabled,
.go2-bug-shake-status.is-native {
  color: #176b4a;
}

.go2-bug-shake-status.is-denied,
.go2-bug-shake-status.is-error,
.go2-bug-shake-status.is-unsupported {
  color: #a33131;
}

.go2-bug-form,
.go2-bug-field {
  display: grid;
}

.go2-bug-form {
  gap: 17px;
}

.go2-bug-field {
  gap: 7px;
  color: #193943;
  font-size: 0.9rem;
  font-weight: 800;
}

.go2-bug-field small {
  color: #718086;
  font-size: 0.76rem;
  font-weight: 600;
}

.go2-bug-field textarea,
.go2-bug-field select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(22, 69, 79, 0.22);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #102c35;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.go2-bug-field textarea {
  min-height: 88px;
  padding: 12px 13px;
  resize: vertical;
}

.go2-bug-field select {
  height: 46px;
  padding: 0 12px;
}

.go2-bug-field textarea:focus,
.go2-bug-field select:focus,
.go2-bug-close:focus-visible,
.go2-bug-shake-access button:focus-visible,
.go2-bug-actions button:focus-visible {
  border-color: #39767c;
  box-shadow: 0 0 0 3px rgba(57, 118, 124, 0.16);
}

.go2-bug-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #294850;
  font-size: 0.86rem;
  line-height: 1.4;
  cursor: pointer;
}

.go2-bug-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #39767c;
}

.go2-bug-check span {
  display: grid;
  gap: 3px;
}

.go2-bug-check small {
  color: #718086;
  font-size: 0.74rem;
}

.go2-bug-master-consent {
  padding: 14px;
  border: 1px solid rgba(57, 118, 124, 0.28);
  border-radius: 14px;
  background: rgba(57, 118, 124, 0.075);
}

.go2-bug-master-consent strong {
  color: #193943;
}

.go2-bug-evidence-summary {
  color: #39767c !important;
  font-weight: 800;
}

.go2-bug-visual {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(22, 69, 79, 0.16);
  border-radius: 14px;
  background: rgba(57, 118, 124, 0.045);
}

.go2-bug-visual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.go2-bug-visual-head > div {
  display: grid;
  gap: 4px;
}

.go2-bug-visual-head strong {
  color: #193943;
  font-size: 0.88rem;
}

.go2-bug-visual-head small,
.go2-bug-screenshot-review-row small {
  color: #718086;
  font-size: 0.74rem;
  line-height: 1.4;
}

.go2-bug-screenshot-button,
.go2-bug-screenshot-review-row button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(22, 69, 79, 0.2);
  border-radius: 10px;
  background: #fff;
  color: #286e73;
  font: 800 0.76rem/1 "Nunito Sans", system-ui, sans-serif;
  cursor: pointer;
}

.go2-bug-screenshot-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.go2-bug-capture-status {
  min-height: 0;
  margin: 0;
  color: #526b72;
  font-size: 0.76rem;
  font-weight: 700;
}

.go2-bug-capture-status:not(:empty) {
  min-height: 18px;
}

.go2-bug-capture-status.is-error {
  color: #a33131;
}

.go2-bug-capture-status.is-success {
  color: #176b4a;
}

.go2-bug-screenshot-preview {
  display: grid;
  gap: 10px;
}

.go2-bug-screenshot-preview[hidden] {
  display: none !important;
}

.go2-bug-screenshot-preview > img {
  display: block;
  width: 100%;
  max-height: 280px;
  border: 1px solid rgba(22, 69, 79, 0.18);
  border-radius: 10px;
  background: #e8eeeb;
  object-fit: contain;
}

.go2-bug-screenshot-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.go2-bug-screenshot-review-row button {
  min-height: 34px;
  color: #8e3434;
}

.go2-bug-screenshot-consent {
  padding-top: 2px;
}

.go2-bug-status {
  min-height: 20px;
  margin: 0;
  color: #526b72;
  font-size: 0.84rem;
  font-weight: 700;
}

.go2-bug-status.is-error {
  color: #a33131;
}

.go2-bug-status.is-success {
  color: #176b4a;
}

.go2-bug-status.is-warning {
  color: #855f16;
}

.go2-bug-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.go2-bug-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(22, 69, 79, 0.2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.go2-bug-cancel {
  background: transparent;
  color: #294850;
}

.go2-bug-submit {
  border-color: #286e73 !important;
  background: #286e73;
  color: #fff;
}

.go2-bug-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

[data-theme="dark"] .go2-bug-dialog {
  border-color: rgba(225, 244, 240, 0.14);
  background: #10272e;
  color: #edf4f3;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

[data-theme="dark"] .go2-bug-intro,
[data-theme="dark"] .go2-bug-shortcut,
[data-theme="dark"] .go2-bug-field small,
[data-theme="dark"] .go2-bug-check small,
[data-theme="dark"] .go2-bug-visual-head small,
[data-theme="dark"] .go2-bug-screenshot-review-row small {
  color: rgba(237, 244, 243, 0.68);
}

[data-theme="dark"] .go2-bug-field,
[data-theme="dark"] .go2-bug-check,
[data-theme="dark"] .go2-bug-cancel,
[data-theme="dark"] .go2-bug-shortcut kbd {
  color: #edf4f3;
}

[data-theme="dark"] .go2-bug-shortcut kbd,
[data-theme="dark"] .go2-bug-field textarea,
[data-theme="dark"] .go2-bug-field select {
  border-color: rgba(225, 244, 240, 0.18);
  background: rgba(237, 244, 243, 0.07);
  color: #edf4f3;
}

[data-theme="dark"] .go2-bug-visual {
  border-color: rgba(225, 244, 240, 0.14);
  background: rgba(237, 244, 243, 0.04);
}

[data-theme="dark"] .go2-bug-shake-access {
  border-color: rgba(225, 244, 240, 0.16);
  background: rgba(237, 244, 243, 0.055);
}

[data-theme="dark"] .go2-bug-shake-permission-dialog {
  border-color: rgba(225, 244, 240, 0.16);
  background: #102a32;
  color: #edf4f3;
}

[data-theme="dark"] .go2-bug-shake-permission-dialog h2 {
  color: #edf4f3;
}

[data-theme="dark"] .go2-bug-shake-permission-dialog > p {
  color: rgba(237, 244, 243, 0.72);
}

[data-theme="dark"] .go2-bug-shake-permission-actions button {
  border-color: rgba(225, 244, 240, 0.18);
  background: rgba(237, 244, 243, 0.07);
  color: #d8eeee;
}

[data-theme="dark"] .go2-bug-shake-permission-actions [data-bug-shake-permission-enable] {
  border-color: #8ee5dc;
  background: #8ee5dc;
  color: #102a32;
}

[data-theme="dark"] .go2-bug-shake-access strong {
  color: #edf4f3;
}

[data-theme="dark"] .go2-bug-shake-access small,
[data-theme="dark"] .go2-bug-shake-status {
  color: rgba(237, 244, 243, 0.68);
}

[data-theme="dark"] .go2-bug-shake-access button {
  border-color: rgba(225, 244, 240, 0.18);
  background: rgba(237, 244, 243, 0.07);
  color: #d8eeee;
}

[data-theme="dark"] .go2-bug-shake-status.is-enabled,
[data-theme="dark"] .go2-bug-shake-status.is-native {
  color: #8ee5dc;
}

[data-theme="dark"] .go2-bug-shake-status.is-denied,
[data-theme="dark"] .go2-bug-shake-status.is-error,
[data-theme="dark"] .go2-bug-shake-status.is-unsupported {
  color: #ffaaa5;
}

[data-theme="dark"] .go2-bug-visual-head strong {
  color: #edf4f3;
}

[data-theme="dark"] .go2-bug-screenshot-button,
[data-theme="dark"] .go2-bug-screenshot-review-row button {
  border-color: rgba(225, 244, 240, 0.18);
  background: rgba(237, 244, 243, 0.07);
  color: #d8eeee;
}

@media (max-width: 640px), (pointer: coarse) {
  .go2-bug-shake-permission {
    align-items: end;
    padding: 0;
  }

  .go2-bug-shake-permission-dialog {
    width: 100%;
    padding: 24px 18px max(22px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .go2-bug-overlay {
    align-items: end;
    padding: 0;
  }

  .go2-bug-dialog {
    width: 100%;
    max-height: min(92dvh, 850px);
    padding: 23px 18px max(20px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .go2-bug-shortcut {
    display: none;
  }

  .go2-bug-shake-access {
    display: grid;
  }

  .go2-bug-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .go2-bug-visual-head {
    display: grid;
  }

  .go2-bug-screenshot-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .go2-bug-overlay:not([hidden]) {
    animation: go2-bug-fade 140ms ease-out;
  }

  .go2-bug-overlay:not([hidden]) .go2-bug-dialog {
    animation: go2-bug-enter 180ms ease-out;
  }
}

@keyframes go2-bug-fade {
  from { opacity: 0; }
}

@keyframes go2-bug-enter {
  from { transform: translateY(10px); opacity: 0; }
}
