/* ════════════════════════════════════════════════════════
   VEDEM RACING — Admin Panel Styles  v3
   Clean, modern, minimal. Redesigned from scratch.
════════════════════════════════════════════════════════ */

/* ── Logo mark ── */
.logo-mark { position: relative; }
body.admin-active .logo-mark {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(200,164,90,.15);
}

/* ── Panel overlay ── */
#admin-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
#admin-panel-overlay.open { opacity: 1; pointer-events: all; }

.ap-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
}
.ap-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #111;
  border-left: 1px solid #1e1e1e;
  display: flex;
  flex-direction: column;
  transform: translateX(20px);
  transition: transform .3s cubic-bezier(.22,.68,0,1.2);
  overflow: hidden;
}
#admin-panel-overlay.open .ap-panel { transform: translateX(0); }

/* ── Header ── */
.ap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
  background: #0d0d0d;
}
.ap-header-brand { display: flex; align-items: center; gap: .7rem; }
.ap-logo {
  width: 28px; height: 28px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: .65rem;
  color: #0b0b0b; letter-spacing: .05em; flex-shrink: 0;
}
.ap-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: #e8e0d4; line-height: 1;
}
.ap-subtitle {
  font-size: .5rem; color: #4a4540;
  letter-spacing: .14em; text-transform: uppercase;
  margin-top: .2rem; font-family: 'Space Mono', monospace;
}
.ap-close {
  background: none; border: none;
  color: #3a3530; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color .15s; padding: 0; flex-shrink: 0;
}
.ap-close:hover { color: #8a8480; }
.ap-close svg { width: 14px; height: 14px; }

/* ── Panel body ── */
.ap-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: #2a2a2a transparent;
}
.ap-body::-webkit-scrollbar { width: 4px; }
.ap-body::-webkit-scrollbar-track { background: transparent; }
.ap-body::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }

/* ── Login ── */
.ap-login-wrap {
  display: flex; flex-direction: column; gap: .8rem;
  max-width: 320px; margin: 2rem auto; width: 100%; padding: 1.25rem;
}
.ap-login-form { display: flex; flex-direction: column; gap: .7rem; }
.ap-login-note {
  font-family: 'Space Mono', monospace; font-size: .5rem;
  color: #3a3530; letter-spacing: .08em;
  text-align: center; text-transform: uppercase;
}

/* ── User strip ── */
.ap-user-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid #1a1a1a;
  background: #0d0d0d;
  flex-shrink: 0;
}
.ap-user-email {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: .85rem; color: #c8c0b8; letter-spacing: .03em;
}
.ap-user-role {
  font-family: 'Space Mono', monospace; font-size: .48rem;
  color: var(--gold); letter-spacing: .1em;
  text-transform: uppercase; margin-top: .1rem;
}
.ap-signout-btn {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  background: none; border: 1px solid #252525; color: #4a4540;
  padding: .35rem .75rem; cursor: pointer; transition: all .15s;
}
.ap-signout-btn:hover { color: #8a8480; border-color: #3a3530; }

/* ── Tabs ── */
.ap-tabs {
  display: flex; border-bottom: 1px solid #1a1a1a;
  overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; flex-shrink: 0;
  background: #0d0d0d;
}
.ap-tabs::-webkit-scrollbar { display: none; }
.ap-tab {
  flex-shrink: 0; background: none; border: none; border-bottom: 2px solid transparent;
  color: #3a3530; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .7rem .9rem; cursor: pointer; transition: all .15s;
  white-space: nowrap; margin-bottom: -1px;
}
.ap-tab:hover { color: #7a7570; }
.ap-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.ap-tab-content { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

/* ── Form elements ── */
.ap-field { display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.ap-field-row { display: flex; gap: .6rem; }
.ap-label {
  font-family: 'Space Mono', monospace; font-size: .48rem;
  color: #4a4540; letter-spacing: .12em; text-transform: uppercase;
}
.ap-input {
  background: #0d0d0d; border: 1px solid #1e1e1e;
  color: #c8c0b8; font-family: 'Barlow', sans-serif;
  font-size: .82rem; padding: .6rem .75rem;
  outline: none; transition: border-color .15s; width: 100%; box-sizing: border-box;
}
.ap-input:focus { border-color: var(--gold); }
.ap-input::placeholder { color: #2e2e2e; }
.ap-input option { background: #111; }
.ap-textarea { resize: vertical; min-height: 80px; font-size: .78rem; line-height: 1.6; }
.ap-error {
  font-size: .65rem; color: #c85a5a; letter-spacing: .04em;
  padding: .5rem .7rem; background: rgba(200,90,90,.06);
  border-left: 2px solid #c85a5a;
}
.ap-success {
  font-size: .65rem; color: #5ac87a; letter-spacing: .04em;
  padding: .5rem .7rem; background: rgba(90,200,122,.06);
  border-left: 2px solid #5ac87a;
}
.ap-btn-primary {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold); color: #0b0b0b;
  border: none; padding: .7rem 1.4rem;
  cursor: pointer; transition: opacity .15s; width: 100%;
}
.ap-btn-primary:hover { opacity: .88; }
.ap-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.ap-btn-secondary {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  background: none; color: #6a6560; border: 1px solid #252525;
  padding: .7rem 1.2rem; cursor: pointer; transition: all .15s; width: 100%;
}
.ap-btn-secondary:hover { background: #181818; color: #c8c0b8; border-color: #3a3530; }
.ap-btn-secondary:disabled { opacity: .4; cursor: not-allowed; }
.ap-btn-row { display: flex; gap: .5rem; }
.ap-btn-row .ap-btn-primary,
.ap-btn-row .ap-btn-secondary { width: auto; flex: 1; }

/* ── Section divider ── */
.ap-section-divider { height: 1px; background: #1a1a1a; margin: .25rem 0; }
.ap-section-desc { font-size: .73rem; color: #4a4540; line-height: 1.65; }

/* ── Toggle switch ── */
.ap-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.ap-switch input { opacity: 0; width: 0; height: 0; }
.ap-switch-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #252525; border-radius: 20px; transition: background .2s;
}
.ap-switch-slider::before {
  content: ''; position: absolute;
  width: 14px; height: 14px; left: 3px; bottom: 3px;
  background: #4a4540; border-radius: 50%;
  transition: transform .2s, background .2s;
}
.ap-switch input:checked + .ap-switch-slider { background: rgba(90,200,122,.2); }
.ap-switch input:checked + .ap-switch-slider::before { transform: translateX(16px); background: #5ac87a; }

/* ── Sections tab ── */
.ap-section-tab { display: flex; flex-direction: column; gap: .8rem; }
.ap-toggle-list { display: flex; flex-direction: column; gap: 1px; }
.ap-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; background: #0d0d0d; gap: 1rem;
  border: 1px solid #1a1a1a; transition: background .15s;
}
.ap-toggle-row:hover { background: #141414; }
.ap-toggle-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: .88rem; letter-spacing: .04em; color: #c8c0b8;
}
.ap-toggle-state {
  font-family: 'Space Mono', monospace; font-size: .48rem;
  letter-spacing: .1em; text-transform: uppercase; margin-top: .1rem;
}
.ap-toggle-state.visible { color: #5ac87a; }
.ap-toggle-state.hidden  { color: #3a3530; }

/* ── Builds tab ── */
.ap-builds-tab { display: flex; flex-direction: column; gap: .9rem; }
.ap-build-selector { display: flex; gap: .4rem; }
.ap-build-btn {
  flex: 1; background: #0d0d0d; border: 1px solid #1e1e1e;
  color: #4a4540; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .55rem; cursor: pointer; transition: all .15s;
}
.ap-build-btn:hover { color: #8a8480; border-color: #2e2e2e; }
.ap-build-btn.active { background: #181818; color: #e8e0d4; border-color: var(--gold); }
.ap-phase-list { display: flex; flex-direction: column; gap: .8rem; }
.ap-phase-name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: .8rem; color: #8a8480; letter-spacing: .04em; margin-bottom: .3rem;
}
.ap-phase-row { display: flex; align-items: center; gap: .8rem; }
.ap-range {
  flex: 1; -webkit-appearance: none;
  height: 2px; background: #252525; border-radius: 2px; outline: none; cursor: pointer;
}
.ap-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  background: var(--gold); border-radius: 50%; cursor: pointer;
}
.ap-range-val {
  font-family: 'Space Mono', monospace; font-size: .58rem;
  color: var(--gold); letter-spacing: .06em; min-width: 30px; text-align: right;
}
.ap-build-log-section { display: flex; flex-direction: column; gap: .7rem; }
.ap-log-header { display: flex; align-items: center; justify-content: space-between; }
.ap-log-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #6a6560;
}

/* ── Results tab ── */
.ap-results-tab { display: flex; flex-direction: column; gap: .7rem; }
.ap-results-list { display: flex; flex-direction: column; gap: 1px; }
.ap-result-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #0d0d0d; padding: .7rem .9rem; gap: .8rem; border: 1px solid #1a1a1a;
}
.ap-result-info { display: flex; align-items: center; gap: .7rem; }
.ap-result-pos {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 1.3rem; line-height: 1; min-width: 36px;
}
.ap-result-pos.p1,.ap-result-pos.p2,.ap-result-pos.p3 { color: var(--gold); }
.ap-result-pos.top5 { color: #5ac87a; }
.ap-result-pos.top10 { color: #8a8480; }
.ap-result-pos.dnf,.ap-result-pos.dns { color: #c85a5a; font-size: .9rem; }
.ap-result-event {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: .85rem; color: #c8c0b8; letter-spacing: .03em;
}
.ap-result-car {
  font-family: 'Space Mono', monospace; font-size: .48rem;
  color: #4a4540; letter-spacing: .05em; margin-top: .1rem;
}
.ap-delete-btn {
  background: none; border: none; color: #3a3530;
  padding: .3rem; cursor: pointer; display: flex; align-items: center;
  transition: color .15s; flex-shrink: 0;
}
.ap-delete-btn:hover { color: #c85a5a; }
.ap-delete-btn svg { width: 14px; height: 14px; }

/* ── Users tab ── */
.ap-users-tab { display: flex; flex-direction: column; gap: .8rem; }
.ap-invite-box { display: flex; flex-direction: column; gap: .7rem; }
.ap-invite-note {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .6rem; color: #3a3530; letter-spacing: .04em;
  line-height: 1.7; padding: .65rem .8rem;
  background: rgba(90,143,200,.04); border-left: 2px solid rgba(90,143,200,.2);
}
.ap-invite-note svg { width: 11px; height: 11px; flex-shrink: 0; margin-top: 2px; color: #5a8fc8; }
.ap-user-list { display: flex; flex-direction: column; gap: 1px; }
.ap-user-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #0d0d0d; padding: .75rem 1rem; gap: 1rem; border: 1px solid #1a1a1a;
}
.ap-user-item-name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: .88rem; color: #c8c0b8; letter-spacing: .02em;
}
.ap-user-item-meta {
  font-family: 'Space Mono', monospace; font-size: .48rem;
  color: #4a4540; letter-spacing: .06em; margin-top: .15rem;
}
.ap-role-chip {
  font-family: 'Space Mono', monospace; font-size: .46rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .1rem .4rem; border-radius: 2px; display: inline-block;
}
.ap-role-chip.admin  { background: rgba(200,164,90,.1); color: var(--gold); }
.ap-role-chip.editor { background: rgba(90,143,200,.08); color: #5a8fc8; }
.ap-user-actions { display: flex; align-items: center; }
.ap-mini-select {
  font-family: 'Space Mono', monospace; font-size: .5rem;
  background: #0d0d0d; border: 1px solid #252525; color: #6a6560;
  padding: .3rem .5rem; cursor: pointer; outline: none; transition: border-color .15s;
}
.ap-mini-select:focus { border-color: var(--gold); }
.ap-user-item-you {
  font-family: 'Space Mono', monospace; font-size: .48rem;
  color: #3a3530; letter-spacing: .1em; text-transform: uppercase;
}

/* ── Loading / empty ── */
.ap-loading, .ap-empty {
  font-family: 'Space Mono', monospace; font-size: .55rem;
  color: #3a3530; letter-spacing: .1em; text-transform: uppercase;
  padding: 2rem; text-align: center;
}

/* ══════════════════════════════════════════════════════
   CONTENT EDITOR — Redesigned
══════════════════════════════════════════════════════ */
.ap-content-tab { display: flex; flex-direction: column; gap: .6rem; }

.ap-search-bar {
  position: relative;
}
.ap-search-bar input {
  width: 100%; box-sizing: border-box;
  background: #0d0d0d; border: 1px solid #1e1e1e;
  color: #c8c0b8; font-family: 'Barlow', sans-serif;
  font-size: .8rem; padding: .6rem .75rem .6rem 2.2rem;
  outline: none; transition: border-color .15s;
}
.ap-search-bar input:focus { border-color: var(--gold); }
.ap-search-bar svg {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  color: #3a3530; pointer-events: none;
}

/* Accordion sections */
.ap-accordion {
  border: 1px solid #1a1a1a; overflow: hidden;
}
.ap-accordion + .ap-accordion { border-top: none; }
.ap-accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; background: #0d0d0d; cursor: pointer;
  user-select: none; transition: background .15s; gap: .75rem;
}
.ap-accordion-header:hover { background: #141414; }
.ap-accordion-header.open { background: #141414; }
.ap-accordion-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #c8c0b8;
}
.ap-accordion-meta {
  font-family: 'Space Mono', monospace; font-size: .46rem;
  color: #3a3530; letter-spacing: .08em;
}
.ap-accordion-actions { display: flex; align-items: center; gap: .5rem; }
.ap-accordion-chevron {
  color: #3a3530; transition: transform .2s; flex-shrink: 0;
}
.ap-accordion-header.open .ap-accordion-chevron { transform: rotate(180deg); }
.ap-accordion-body {
  display: none; border-top: 1px solid #1a1a1a;
}
.ap-accordion-body.open { display: block; }

.ap-content-field-row {
  display: flex; align-items: stretch; border-bottom: 1px solid #141414;
}
.ap-content-field-row:last-child { border-bottom: none; }
.ap-content-field-label {
  width: 110px; flex-shrink: 0; padding: .65rem .75rem;
  background: #0a0a0a; border-right: 1px solid #141414;
  display: flex; align-items: flex-start; padding-top: .75rem;
}
.ap-content-field-label span {
  font-family: 'Space Mono', monospace; font-size: .44rem;
  color: #4a4540; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.5;
}
.ap-content-field-input { flex: 1; }
.ap-content-field-input input,
.ap-content-field-input textarea {
  width: 100%; box-sizing: border-box; background: transparent;
  border: none; color: #c8c0b8; font-family: 'Barlow', sans-serif;
  font-size: .8rem; padding: .65rem .75rem; outline: none;
  transition: background .15s; resize: none; min-height: 38px;
}
.ap-content-field-input input:focus,
.ap-content-field-input textarea:focus { background: rgba(200,164,90,.03); }
.ap-content-field-input textarea { min-height: 70px; line-height: 1.6; resize: vertical; }
.ap-content-field-input input::placeholder,
.ap-content-field-input textarea::placeholder { color: #252525; }

.ap-save-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; background: #0a0a0a; border-top: 1px solid #1a1a1a;
  gap: .75rem;
}
.ap-save-bar-status {
  font-family: 'Space Mono', monospace; font-size: .5rem;
  color: #5ac87a; letter-spacing: .08em; min-height: 1em;
}
.ap-save-bar .ap-btn-primary {
  width: auto; padding: .5rem 1.2rem; font-size: .68rem;
}

.ap-content-save-all {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; background: #0d0d0d; border: 1px solid #1a1a1a;
  margin-top: .25rem;
}
.ap-content-save-all .ap-btn-primary { width: auto; }

/* ══════════════════════════════════════════════════════
   IMAGE MANAGER — Redesigned
══════════════════════════════════════════════════════ */
.ap-images-tab { display: flex; flex-direction: column; gap: .5rem; }

.ap-img-notice {
  font-size: .65rem; color: #4a4540; line-height: 1.65;
  padding: .65rem .85rem; background: #0d0d0d;
  border: 1px solid #1a1a1a; border-left: 2px solid #2a2a2a;
}
.ap-img-notice code {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  color: #5a8fc8; background: rgba(90,143,200,.08); padding: .1rem .3rem;
}

.ap-img-slot {
  background: #0d0d0d; border: 1px solid #1a1a1a;
  transition: border-color .15s;
}
.ap-img-slot:hover { border-color: #2a2a2a; }
.ap-img-slot-header {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem; border-bottom: 1px solid #141414;
  cursor: pointer; user-select: none;
}
.ap-img-slot-thumb {
  width: 48px; height: 36px; flex-shrink: 0;
  background: #141414; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.ap-img-slot-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ap-img-slot-thumb svg { color: #2a2a2a; }
.ap-img-slot-info { flex: 1; min-width: 0; }
.ap-img-slot-name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .82rem; letter-spacing: .06em; color: #c8c0b8;
}
.ap-img-slot-where {
  font-size: .58rem; color: #4a4540; letter-spacing: .03em; margin-top: .1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-img-slot-badge {
  font-family: 'Space Mono', monospace; font-size: .44rem;
  letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0;
  padding: .2rem .45rem;
}
.ap-img-slot-badge.set { color: #5ac87a; background: rgba(90,200,122,.08); border: 1px solid rgba(90,200,122,.15); }
.ap-img-slot-badge.empty { color: #3a3530; background: #141414; border: 1px solid #1e1e1e; }
.ap-img-slot-chevron { color: #3a3530; transition: transform .2s; flex-shrink: 0; }
.ap-img-slot-header.open .ap-img-slot-chevron { transform: rotate(180deg); }

.ap-img-slot-body { display: none; padding: 1rem; border-top: 1px solid #141414; }
.ap-img-slot-body.open { display: block; }

.ap-img-current {
  width: 100%; height: 120px; background: #141414;
  position: relative; overflow: hidden; margin-bottom: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.ap-img-current img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ap-img-current-empty {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: #2a2a2a;
}
.ap-img-current-empty span {
  font-family: 'Space Mono', monospace; font-size: .48rem;
  letter-spacing: .1em; text-transform: uppercase;
}

.ap-img-input-row {
  display: flex; gap: .5rem; margin-bottom: .75rem;
}
.ap-img-input-row .ap-input { flex: 1; font-size: .75rem; padding: .55rem .7rem; }

/* Drop zone */
.ap-drop-zone {
  border: 1px dashed #252525; padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  cursor: pointer; transition: all .2s; background: #0a0a0a;
  text-align: center;
}
.ap-drop-zone:hover, .ap-drop-zone.drag-over {
  border-color: var(--gold); background: rgba(200,164,90,.03);
}
.ap-drop-zone input[type="file"] { display: none; }
.ap-drop-zone svg { color: #2a2a2a; transition: color .2s; }
.ap-drop-zone:hover svg, .ap-drop-zone.drag-over svg { color: var(--gold); }
.ap-drop-zone-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #4a4540;
}
.ap-drop-zone-sub {
  font-family: 'Space Mono', monospace; font-size: .48rem;
  color: #3a3530; letter-spacing: .06em;
}

.ap-img-action-row {
  display: flex; gap: .5rem; margin-top: .75rem;
}
.ap-img-action-row .ap-btn-primary,
.ap-img-action-row .ap-btn-secondary { font-size: .68rem; padding: .55rem 1rem; }

.ap-img-status-bar {
  margin-top: .6rem; min-height: 1.2rem;
  font-family: 'Space Mono', monospace; font-size: .52rem; letter-spacing: .06em;
}
.ap-img-status-bar.uploading { color: var(--gold); }
.ap-img-status-bar.success { color: #5ac87a; }
.ap-img-status-bar.error { color: #c85a5a; }

/* Mini save button */
.ap-btn-mini {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1px solid #252525; color: #4a4540;
  padding: .3rem .7rem; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.ap-btn-mini:hover { border-color: var(--gold); color: var(--gold); }
.ap-btn-mini.danger:hover { border-color: #c85a5a; color: #c85a5a; }

/* ── Responsive ── */
@media (min-width: 600px) { .ap-panel { max-width: 500px; } }
@media (max-width: 560px) {
  .ap-panel { max-width: 100%; }
  .ap-field-row { flex-direction: column; }
  .ap-btn-row { flex-direction: column; }
}