#gr-ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
#gr-m {
  background: #111110;
  border: 1px solid rgba(232,160,32,0.25);
  border-radius: 4px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}
#gr-cl {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(245,242,235,0.4);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}
#gr-cl:hover { color: var(--white, #f5f2eb); }
.gr-ey {
  font-family: var(--mono, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--amber, #e8a020);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.gr-ti {
  font-family: var(--display, sans-serif);
  font-size: 1.5rem;
  color: var(--white, #f5f2eb);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}
.gr-ti span { color: rgba(245,242,235,0.5); font-size: 1.1rem; }
#gr-cats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gr-cb {
  background: rgba(245,242,235,0.04);
  border: 1px solid rgba(245,242,235,0.1);
  color: rgba(245,242,235,0.8);
  font-family: var(--mono, monospace);
  font-size: 0.82rem;
  padding: 0.85rem 1.25rem;
  text-align: left;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}
.gr-cb:hover {
  background: rgba(232,160,32,0.08);
  border-color: rgba(232,160,32,0.4);
  color: var(--white, #f5f2eb);
}
.gr-ff { margin-bottom: 1rem; }
.gr-f1 { flex: 1; min-width: 0; }
.gr-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.gr-ff label, .gr-f1 label {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  color: rgba(245,242,235,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
#gr-f input, #gr-f textarea, #gr-f select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: rgba(245,242,235,0.04);
  border: 1px solid rgba(245,242,235,0.12);
  color: var(--white, #f5f2eb);
  font-family: var(--mono, monospace);
  font-size: 0.82rem;
  outline: none;
  box-sizing: border-box;
  border-radius: 2px;
}
#gr-f input:focus, #gr-f textarea:focus {
  border-color: rgba(232,160,32,0.5);
}
#gr-f input[readonly] {
  color: var(--amber, #e8a020);
  background: rgba(232,160,32,0.06);
  border-color: rgba(232,160,32,0.2);
}
.gr-ac {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: space-between;
  align-items: center;
}
#gr-bk {
  background: none;
  border: 1px solid rgba(245,242,235,0.15);
  color: rgba(245,242,235,0.5);
  font-family: var(--mono, monospace);
  font-size: 0.78rem;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  border-radius: 2px;
}
#gr-bk:hover { color: var(--white, #f5f2eb); border-color: rgba(245,242,235,0.3); }
.gr-sb {
  background: var(--amber, #e8a020);
  color: #080808;
  border: none;
  font-family: var(--mono, monospace);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 2px;
}
.gr-sb:hover { background: #c8880a; }
@media (max-width: 600px) {
  #gr-m { padding: 1.5rem; }
  .gr-row { flex-direction: column; gap: 0; }
}

/* Mobile touch improvements */
@media (max-width: 600px) {
  .gr-cb { padding: 1rem 1.25rem; font-size: 0.82rem; min-height: 48px; }
  .gr-sb { padding: 1rem; width: 100%; }
  #gr-bk { padding: 1rem; }
  .gr-ac { flex-direction: column; }
  #gr-m { padding: 1.25rem; max-height: 95vh; }
}

@media (max-width: 480px) {
  #gr-m { padding: 1rem; max-height: 98vh; border-radius: 0; }
  .gr-ti { font-size: 1.2rem; }
  .gr-cb { padding: 0.9rem 1rem; font-size: 0.8rem; }
  .gr-sb { font-size: 0.8rem; padding: 0.9rem 1.5rem; }
  #gr-bk { font-size: 0.78rem; }
  .gr-row { flex-direction: column; gap: 0; margin-bottom: 0; }
  .gr-f1 { margin-bottom: 1rem; }
}
