#options-btn { right: 106px; }
#options-btn[aria-expanded="true"] {
  color: var(--green);
  border-color: var(--green);
  background: rgba(30, 48, 25, 0.9);
}

#options-layer {
  position: absolute;
  inset: 0;
  z-index: 21;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: "Courier New", monospace;
}
#options-layer.open { display: flex; }
#options-scrim {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  background: rgba(4, 7, 3, 0.42);
}
#options-panel {
  position: relative;
  z-index: 1;
  width: 58%;
  height: min(420px, 80%);
  min-width: 520px;
  max-width: 780px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  color: #d8ddce;
  background: rgba(13, 17, 11, 0.98);
  border: 1px solid #78866a;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.72), inset 0 0 0 1px #20291d;
}
.options-head {
  display: flex;
  align-items: center;
  min-height: 47px;
  padding-left: 18px;
  border-bottom: 1px solid #394333;
}
.options-title { color: #b9c5aa; font-size: 12px; letter-spacing: 3px; }
#options-close {
  margin-left: auto;
  width: 47px;
  height: 47px;
  padding: 0;
  border: 0;
  border-left: 1px solid #394333;
  background: transparent;
  color: #8f9a84;
  font-size: 18px;
}
#options-close:hover { color: #e2e8da; background: #20271d; }
.options-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #394333;
}
.options-tab {
  height: 42px;
  padding: 0;
  border: 0;
  border-right: 1px solid #2c3428;
  background: #151b13;
  color: #727f69;
  font-size: 10px;
  letter-spacing: 2px;
}
.options-tab:last-child { border-right: 0; }
.options-tab.active {
  color: var(--green);
  background: #20291c;
  box-shadow: inset 0 -2px var(--green);
}
.options-pages { flex: 1; min-height: 0; overflow: auto; }
.options-page { display: none; padding: 12px 18px 18px; }
.options-page.active { display: block; }
.options-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(210px, 1.15fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #242d21;
}
.options-row:last-child { border-bottom: 0; }
.options-label { color: #b8c1ad; font-size: 11px; letter-spacing: 1px; }
.options-control { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.options-control input[type="range"] { width: 100%; accent-color: #8ba66f; }
.options-value { min-width: 36px; color: #87957c; font-size: 10px; text-align: right; }
.options-toggle, .options-choice, #options-fullscreen, #report-send {
  border: 1px solid #53604c;
  background: #171e15;
  color: #87957c;
  min-height: 31px;
  padding: 6px 12px;
  font: 10px "Courier New", monospace;
  letter-spacing: 1px;
}
.options-toggle.on, .options-choice.active {
  border-color: var(--green);
  color: var(--green);
  background: #202b1c;
}
.options-choice-group { display: flex; gap: 5px; }
.options-controls-copy { color: #aeb8a3; font-size: 11px; line-height: 1.9; }
.options-ping-value { color: var(--green); }
#report-form { margin-top: 8px; }
#report-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 9px;
  color: #d8ddce;
  background: #0d110b;
  border: 1px solid #53604c;
  font: 11px "Courier New", monospace;
}
.report-meta { margin: 7px 0; color: #687461; font-size: 9px; line-height: 1.4; }
.report-actions { display: flex; align-items: center; gap: 10px; }
#report-send:disabled { opacity: 0.55; }
#report-status { color: #9dab91; font-size: 10px; }

@media (max-width: 760px) {
  #options-panel { width: calc(100% - 24px); min-width: 0; }
  .options-row { grid-template-columns: 1fr; gap: 8px; padding: 10px 0; }
  .options-control { justify-content: flex-start; }
}
