.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: #0009;
  display: none;
  z-index: 50;
}
.drawer-backdrop.open { display: block; }

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(440px, 94vw);
  background: #080e14;
  border-left: 1px solid var(--line-2);
  box-shadow: -18px 0 45px #000b;
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 51;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.drawer-head strong {
  font: 700 11px ui-monospace, monospace;
  color: var(--green);
  letter-spacing: 1px;
}
.drawer textarea {
  margin-top: 12px;
  flex: 1;
  min-height: 220px;
  resize: none;
  background: #060b10;
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 12px;
  outline: none;
  line-height: 1.7;
  font-size: 13px;
}
.drawer textarea:focus { border-color: #2b7053; }

.drawer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.drawer-status {
  font: 9px ui-monospace, monospace;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.token-box {
  border: 1px solid var(--line);
  padding: 10px;
  margin-top: 10px;
}
.token-box label {
  display: block;
  font: 9px ui-monospace, monospace;
  color: var(--muted);
  margin-bottom: 5px;
}
.token-box input {
  width: 100%;
  background: #060b10;
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 7px;
  font: 10px ui-monospace, monospace;
}
.small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
.token-toggle {
  margin-top: 10px;
  width: 100%;
  text-align: left;
}
.token-settings { display: none; }
.token-settings.open { display: block; }
.token-save { margin-top: 8px; }
.zen-hint {
  font: 9px ui-monospace, monospace;
  color: var(--muted);
  margin-top: 7px;
}

@media (max-width: 700px) {
  .drawer { width: 94vw; padding: 14px; }
}
