/* Admin panel — slides in from the right (secret editor tab). */
.admin-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  background: #050508;
  transform: translateX(100%);
  transition: transform 340ms cubic-bezier(.2,.8,.3,1);
  pointer-events: none;
  visibility: hidden;
}
.admin-panel.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.ad-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top) + 56px) 20px calc(env(safe-area-inset-bottom) + 88px);
}

.ad-header {
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ad-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #6ea8ff 0%, #b690ff 55%, #5ce0a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ad-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.ad-section-title {
  margin: 20px 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.ad-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  padding: 4px 14px;
}

.ad-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ad-row:last-child { border-bottom: none; }

.ad-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.ad-value {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-align: right;
  word-break: break-all;
}

.ad-jump-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ad-jump-row {
  display: flex;
  gap: 8px;
}
.ad-jump-input {
  flex: 1;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font: inherit;
  font-size: 14px;
}
.ad-jump-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #6ea8ff, #b690ff);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.ad-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ad-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.ad-link-icon { font-size: 20px; }

.ad-id-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
}
.ad-id-value {
  flex: 1;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
  color: rgba(255,255,255,0.75);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ad-copy-btn {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.82);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.ad-copy-btn.copied { color: #5ce0a8; border-color: rgba(92,224,168,0.35); }
.ad-copy-btn:disabled { opacity: 0.45; cursor: default; }

body.admin-open #feed {
  pointer-events: none;
}
