/* The admin drawer: donation entry, setup, and the look controls. */

/* ---- cog toggle, top-right ---- */
#cog {
  position: fixed; top: 24px; right: 26px; z-index: 7;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(20,18,28,0.6); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1;
  backdrop-filter: blur(8px);
}
#cog:hover { color: var(--ink); }

/* ---- the drawer ---- */
#admin {
  position: fixed; top: 0; right: 0; bottom: 0; width: 330px; z-index: 6;
  background: var(--panel); backdrop-filter: blur(20px);
  border-left: 1px solid var(--line);
  padding: 74px 24px 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.3,.9,.3,1);
}
#admin.open { transform: none; }
#admin h2 {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; font-weight: 600;
}
#admin h2:not(:first-of-type) { margin-top: 28px; }

.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px;
}

.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.quick button { flex: 1; min-width: 58px; }

.slider { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.slider label { font-size: 11px; color: var(--muted); width: 76px; flex: none; }
.slider input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); }
.slider .v {
  font-size: 11px; color: var(--ink); width: 34px; text-align: right;
  font-variant-numeric: tabular-nums; flex: none;
}
.hint { font-size: 11px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }

/* ---- image drop zone ---- */
#drop {
  border: 1px dashed rgba(255,255,255,0.18); border-radius: 9px;
  padding: 16px 12px; text-align: center; cursor: pointer;
  color: var(--muted); font-size: 12px; line-height: 1.5;
  transition: border-color .15s, background .15s;
}
#drop:hover, #drop.hot {
  border-color: rgba(243,201,105,0.6); background: rgba(243,201,105,0.06);
  color: var(--ink);
}
#drop b { color: var(--accent); font-weight: 600; }
#thumbwrap { display: none; margin-top: 10px; }
#thumbwrap.on { display: block; }
#thumb {
  width: 100%; border-radius: 8px; border: 1px solid var(--line);
  display: block; background: #000;
}
#imgstat { font-size: 11px; color: var(--muted); margin: 7px 0 0; }
#imgstat.busy { color: var(--accent); }
