/* ============================================================
   AI ASSISTANT — GLOBAL STYLES
   Font: Outfit (display) + DM Sans (body) via Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #d8d5cc;
  --bg-soft:     #e2dfd7;
  --surface:     #eceae4;
  --surface-2:   #f4f2ed;
  --border:      #c4c0b6;
  --text:        #2e2c28;
  --text-mid:    #5a5750;
  --text-light:  #8a8780;
  --accent:      #d4e84a;
  --accent-dk:   #b8cc2e;
  --header-bg:   #474440;
  --header-text: #f0ede6;
  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.16);
  --transition:  .2s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  background: var(--header-bg);
  color: var(--header-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 62px;
  position: relative;
}
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.header-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-brand span {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
}
.header-user {
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .04em;
}
.header-actions {
  display: flex;
  gap: 8px;
}
.header-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--header-text);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  font-size: .8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: .04em;
}
.header-btn:hover { background: rgba(255,255,255,.18); }
.header-btn.logout { color: #ff8080; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  padding: 12px 36px;
  font-size: .78rem;
  color: var(--text-light);
  letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  justify-content: space-between;
}
.breadcrumb a { color: var(--text-mid); }
.breadcrumb a:hover { color: var(--text); }

/* ── Main content ───────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  gap: 0;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
}
.sidebar-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 16px;
  color: var(--text);
}
.sidebar-empty {
  font-size: .82rem;
  color: var(--text-light);
  font-style: italic;
}
.sidebar-game-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
  margin-bottom: 4px;
}
.sidebar-game-item:hover {
  background: var(--surface-2);
  border-color: var(--border);
}
.sidebar-game-item.active {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent-dk);
}

/* ── Content area ───────────────────────────────────────────── */
.content {
  flex: 1;
  padding: 40px 48px;
  overflow-y: auto;
}
.content-inner {
  max-width: 780px;
}

/* ── Page title ─────────────────────────────────────────────── */
.page-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
.page-desc {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 560px;
}
.page-desc ul {
  margin: 10px 0 0 18px;
}
.page-desc li {
  margin-bottom: 6px;
}

/* ── Option cards ───────────────────────────────────────────── */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.option-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  color: var(--text);
}
.option-card:hover {
  border-color: var(--accent-dk);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.option-num {
  width: 36px; height: 36px;
  min-width: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
}
.option-card:hover .option-num {
  background: var(--accent);
  border-color: var(--accent-dk);
  color: var(--text);
}
.option-label {
  flex: 1;
  font-size: .95rem;
  font-weight: 500;
}
.option-sub {
  font-size: .78rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 3px;
}
.option-tag {
  background: var(--accent);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--transition);
}
.option-card:hover .option-tag {
  background: var(--accent-dk);
}

/* ── Form styles ────────────────────────────────────────────── */
.form-section {
  margin-bottom: 32px;
}
.form-label {
  display: block;
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: 8px;
  color: var(--text);
}
.form-hint {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.5;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-dk);
  box-shadow: 0 0 0 3px rgba(212,232,74,.25);
}
.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8780' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── Stepper ─────────────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 42px;
  gap: 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-light);
  transition: all var(--transition);
}
.step.active .step-circle {
  background: var(--accent);
  border-color: var(--accent-dk);
  color: var(--text);
}
.step.done .step-circle {
  background: var(--text-mid);
  border-color: var(--text-mid);
  color: #fff;
}
.step-label {
  font-size: .78rem;
  color: var(--text-light);
  white-space: nowrap;
}
.step.active .step-label { color: var(--text); font-weight: 500; }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 60px;
  margin: 0 10px;
}
.step-line.done { background: var(--accent-dk); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--text);
}
.btn-primary:hover { background: var(--accent-dk); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); }
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── Login page ─────────────────────────────────────────────── */
.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--header-bg);
  margin-bottom: 8px;
}
.login-logo span { color: var(--accent-dk); }
.login-tagline {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.5;
}
.login-field {
  margin-bottom: 16px;
}
.login-error {
  background: #ffe4e4;
  border: 1px solid #f5b8b8;
  border-radius: var(--radius-sm);
  color: #8b2020;
  font-size: .83rem;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.login-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 14px;
  font-size: .9rem;
}

/* ── Alerts / Messages ──────────────────────────────────────── */
.msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 20px;
}
.msg-error { background: #ffe4e4; border: 1px solid #f5b8b8; color: #8b2020; }
.msg-ok    { background: #e8f5d0; border: 1px solid #b8d878; color: #3a5a10; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  text-align: center;
  font-size: .75rem;
  color: var(--text-light);
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

/* ── Divider / Badge ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-simple  { background: #d4f5d4; color: #2a6e2a; }
.badge-plus    { background: #fff3cc; color: #7a5a00; }
.badge-complex { background: #ffe0d0; color: #8a3010; }

/* ── Type badge on option cards ─────────────────────────────── */
.option-card.type-simple  .option-tag { background: #c8f0c8; color: #1e5a1e; }
.option-card.type-plus    .option-tag { background: #ffeaa0; color: #6a4c00; }
.option-card.type-complex .option-tag { background: #ffd0bc; color: #7a2e0a; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .content { padding: 24px 20px; }
  .stepper { overflow-x: auto; padding-bottom: 8px; }
}

/* ── Back link bar ───────────────────────────────────────────── */
.topbar-back {
  padding: 10px 36px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.back-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--text); }

/* ── Process description box ────────────────────────────────── */
.process-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-dk);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 36px;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-mid);
}
.process-box p + p { margin-top: 10px; }

/* ── Generate blocks ────────────────────────────────────────── */
.gen-block {
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gen-block-disabled { opacity: .5; pointer-events: none; }
.gen-block-title {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.gen-block-body { padding: 20px; }

/* ── Download area ──────────────────────────────────────────── */
.download-area {
  display: flex;
  align-items: center;
  gap: 20px;
}
.download-icon {
  font-size: 2rem;
  color: var(--accent-dk);
  line-height: 1;
}
.download-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .88rem;
}
.download-info span { color: var(--text-light); font-size: .8rem; }

/* ── Drop area ──────────────────────────────────────────────── */
.drop-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  margin: 20px 0 0;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.drop-area:hover, .drop-area.drag-over {
  border-color: var(--accent-dk);
  background: rgba(212,232,74,.06);
}
.drop-input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.drop-icon { font-size: 2.2rem; color: var(--text-light); line-height: 1; margin-bottom: 10px; }
.drop-label { font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.drop-sub { font-size: .8rem; color: var(--text-light); }
.drop-browse { color: var(--accent-dk); cursor: pointer; font-weight: 500; text-decoration: underline; }

/* ── Warning box ────────────────────────────────────────────── */
.warning-box {
  background: #fff8e0;
  border: 1px solid #e6c84a;
  border-left: 4px solid #c8a800;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 36px;
  font-size: .86rem;
  line-height: 1.65;
  color: #5a4a00;
}
.warning-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: .88rem;
}
.warning-box ul {
  margin: 0 0 0 16px;
}
.warning-box li { margin-bottom: 4px; }
.warning-box code {
  background: rgba(0,0,0,.07);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: .85em;
}

/* ── Inspect page ────────────────────────────────────────────── */
.insp-alerts {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .86rem;
}
.insp-alert-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: .88rem;
}
.insp-alert-row { margin-bottom: 4px; padding-left: 4px; }
.insp-errors  { background: #ffe4e4; border: 1px solid #f5b8b8; color: #7a1a1a; }
.insp-warnings{ background: #fff8e0; border: 1px solid #e6c84a; color: #5a4a00; }
.insp-ok      { background: #e8f5d0; border: 1px solid #b8d878; color: #2a5a10; }

.insp-section {
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.insp-section-title {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.insp-count {
  background: var(--accent);
  color: var(--text);
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.insp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  padding: 0;
}
.insp-field {
  background: var(--surface-2);
  padding: 12px 16px;
  font-size: .86rem;
  line-height: 1.5;
}
.insp-field-full { grid-column: 1 / -1; }
.insp-label {
  display: block;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.empty { color: var(--text-light); font-style: italic; font-size: .85rem; }

.insp-card {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  background: var(--surface-2);
}
.insp-card:last-child { border-bottom: none; }
.insp-card-head {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 10px;
  color: var(--text);
}

.answers-list { display: flex; flex-direction: column; gap: 5px; }
.answer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: .84rem;
}
.answer-pts {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  color: var(--accent-dk);
  white-space: nowrap;
  margin-left: 12px;
}

.insp-scores { padding: 8px 0; }
.insp-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: .86rem;
}
.insp-score-row:last-child { border-bottom: none; }
.score-pts {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent-dk);
  min-width: 70px;
}
.score-title { font-weight: 600; min-width: 120px; }
.score-desc  { color: var(--text-mid); font-size: .83rem; }

/* ── Media page ─────────────────────────────────────────────── */
.media-block { padding: 16px 20px; }
.media-hint  { font-size: .8rem; color: var(--text-light); margin-bottom: 10px; }
.media-slot-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.media-slot-note { font-weight: 400; text-transform: none; color: var(--text-light); }

.media-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
}
.media-dropzone.drag-over {
  border-color: var(--accent-dk);
  background: rgba(212,232,74,.06);
}
.media-drop-inner {
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
}
.media-drop-inner:hover { background: rgba(0,0,0,.02); }
.media-file-input { display: none; }
.drop-browse-txt  { color: var(--accent-dk); text-decoration: underline; cursor: pointer; }

/* Preview grid */
.media-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 16px;
}
.media-preview-item {
  position: relative;
  width: 90px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.media-preview-item img {
  width: 90px; height: 70px;
  object-fit: cover;
  display: block;
}
.media-preview-video-icon {
  width: 90px; height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--surface-2);
  color: var(--text-mid);
}
.media-preview-name {
  font-size: .65rem;
  padding: 4px 6px;
  text-align: center;
  word-break: break-all;
  color: var(--text-mid);
  line-height: 1.3;
}
.media-preview-del {
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: .75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.media-preview-del:hover { background: #cc0000; }

/* Progress */
.progress-bar-wrap {
  background: var(--border);
  border-radius: 20px;
  height: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent-dk);
  border-radius: 20px;
  width: 0%;
  transition: width .3s ease;
}
.progress-label {
  font-size: .82rem;
  color: var(--text-mid);
  margin-bottom: 20px;
}

/* ── Media saved thumbnails ──────────────────────────────────── */
.media-saved-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.media-saved-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 90px;
}
.media-saved-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.media-saved-video {
  width: 90px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  color: #c8e000;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: .05em;
}
.media-saved-name {
  font-size: .65rem;
  color: var(--text-muted);
  text-align: center;
  word-break: break-all;
  max-width: 90px;
  line-height: 1.2;
}
.media-saved-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  border: none;
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.media-saved-del:hover { background: #922b21; }

/* ── Upload section button ───────────────────────────────────── */
.btn-sm {
  font-size: .8rem;
  padding: 6px 16px;
  margin-top: 10px;
}

/* ── Reset link / button ─────────────────────────────────────── */
.reset-link {
  margin-left: 16px;
  color: #c0392b;
  font-size: .82rem;
  opacity: .7;
}
.reset-link:hover { opacity: 1; }
.btn-danger {
  background: #c0392b;
  color: #fff;
}
.btn-danger:hover { background: #922b21; }

/* ── Header reset button ─────────────────────────────────────── */
.header-btn.reset {
  color: #c0392b;
  font-size: 1.1rem;
  opacity: .75;
}
.header-btn.reset:hover { opacity: 1; }
