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

:root {
  --font-sans: 'Nunito', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --blue: #4A9EE0;
  --blue-light: #EBF5FC;
  --blue-dark: #2E7FC0;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-tertiary: #F3F4F6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.07);
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
#app { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 1rem;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-secondary);
}

/* ── Sidebar ── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .5rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-mark-text {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue);
}

.logo-text {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
}

.logo-sub { font-size: .7rem; color: var(--text-muted); }

.nav-group { padding: 0 .5rem; margin-bottom: .25rem; }

.nav-section-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-faint);
  padding: .75rem .5rem .25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all .1s;
  position: relative;
}

.nav-item:hover { background: var(--bg-secondary); color: var(--text-primary); }

.nav-item.active {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 600;
}

.nav-badge {
  margin-left: auto;
  background: var(--blue);
  color: white;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
  display: none;
}

.nav-badge.visible { display: block; }

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.page-subtitle { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.page-actions { display: flex; gap: .5rem; align-items: center; }

/* ── Content ── */
.page-content { padding: 1.25rem 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all .12s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-tertiary); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--blue); border-color: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-sm { padding: .3rem .65rem; font-size: .76rem; }
.btn-danger { background: #FCEBEB; border-color: #f9a8a8; color: #A32D2D; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-tertiary); color: var(--text-primary); }

/* ── Cards ── */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: .75rem;
}

.card-header {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title { font-size: .85rem; font-weight: 700; color: var(--text-primary); }
.card-body { padding: 1rem; }

/* ── Stats grid ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem; }

.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

.stat-label { font-size: .72rem; font-weight: 600; color: var(--text-muted); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-sub { font-size: .72rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-muted);
  padding: .6rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-secondary); cursor: pointer; }

/* ── Badges ── */
.badge {
  font-size: .68rem; font-weight: 600;
  padding: .2rem .55rem; border-radius: 99px;
  display: inline-block; white-space: nowrap;
}
.badge-new { background: var(--blue-light); color: var(--blue-dark); }
.badge-progress { background: #FEF3C7; color: #92400E; }
.badge-done { background: #D1FAE5; color: #065F46; }
.badge-draft { background: var(--bg-tertiary); color: var(--text-muted); }
.badge-error { background: #FEE2E2; color: #991B1B; }
.badge-gray { background: var(--bg-tertiary); color: var(--text-muted); }

/* ── Difficulty dots ── */
.diff { display: inline-flex; gap: 3px; align-items: center; }
.diff-dot { width: 7px; height: 7px; border-radius: 50%; }
.diff-easy { background: #10B981; }
.diff-medium { background: #F59E0B; }
.diff-hard { background: #EF4444; }
.diff-off { background: var(--border); }

/* ── Forms ── */
.form-group { margin-bottom: .875rem; }
.form-label { display: block; font-size: .76rem; font-weight: 600; color: var(--text-secondary); margin-bottom: .3rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: .83rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: border-color .12s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: .72rem; color: var(--text-muted); margin-top: .25rem; }
.form-row { display: grid; gap: .75rem; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Product picker ── */
.product-picker-item {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .4rem;
  cursor: pointer;
  transition: all .1s;
}
.product-picker-item:hover { border-color: var(--border-strong); background: var(--bg-secondary); }
.product-picker-item.selected { border-color: var(--blue); background: var(--blue-light); }
.ppi-top { display: flex; justify-content: space-between; align-items: center; }
.ppi-name { font-size: .83rem; font-weight: 600; color: var(--text-primary); }
.ppi-price { font-size: .83rem; font-weight: 700; color: var(--blue-dark); }
.ppi-desc { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; line-height: 1.4; }

/* ── Category filter ── */
.filter-bar { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-chip {
  padding: .3rem .75rem; border-radius: 99px;
  font-size: .76rem; font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .1s;
}
.filter-chip:hover { color: var(--text-primary); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: white; }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-primary); }
.tab {
  padding: .65rem 1.1rem; font-size: .82rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .1s;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--blue-dark); border-bottom-color: var(--blue); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Status timeline ── */
.timeline { display: flex; flex-direction: column; gap: .6rem; }
.tl-item { display: flex; gap: .7rem; align-items: flex-start; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; border: 2px solid transparent; }
.tl-done { background: #10B981; border-color: #10B981; }
.tl-current { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.tl-pending { background: transparent; border-color: var(--border); }
.tl-label { font-size: .82rem; font-weight: 600; color: var(--text-primary); }
.tl-note { font-size: .78rem; color: var(--text-muted); }
.tl-date { font-size: .72rem; color: var(--text-faint); }

/* ── Document preview ── */
.doc-preview {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}
.doc-header { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 1.5rem; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.doc-meta-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .2rem; }
.doc-meta-val { font-size: .82rem; color: var(--text-primary); line-height: 1.5; }
.doc-items { padding: 1rem 1.5rem; }
.doc-item { padding: .875rem 0; border-bottom: 1px solid var(--border); }
.doc-item:last-child { border: none; }
.doc-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.doc-item-name { font-size: .85rem; font-weight: 700; color: var(--text-primary); }
.doc-item-price { font-size: .85rem; font-weight: 700; white-space: nowrap; }
.doc-item-desc { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; line-height: 1.5; }
.doc-total { padding: .875rem 1.5rem; background: var(--bg-secondary); border-top: 1px solid var(--border); }
.doc-total-row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-muted); padding: .15rem 0; }
.doc-total-main { font-size: .95rem; font-weight: 700; color: var(--blue-dark); padding-top: .5rem; margin-top: .4rem; border-top: 1px solid var(--border); }
.doc-footer { padding: 1rem 1.5rem; font-size: .72rem; color: var(--text-muted); line-height: 1.7; border-top: 1px solid var(--border); }
.doc-actions { padding: .875rem 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--border); }

/* ── Toasts ── */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--text-primary);
  color: white;
  padding: .65rem 1rem;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: slideIn .2s ease;
  max-width: 320px;
}
.toast.success { background: #059669; }
.toast.error { background: #DC2626; }
@keyframes slideIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 8000; padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

/* ── Loading ── */
.loading-screen { display: flex; align-items: center; justify-content: center; height: 100%; }
.loading-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.empty-title { font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }
.empty-desc { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ── Photo upload ── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: .5rem; }
.photo-thumb { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-tertiary); position: relative; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb-del { position: absolute; top: .2rem; right: .2rem; background: rgba(0,0,0,.5); color: white; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: .7rem; cursor: pointer; display: none; align-items: center; justify-content: center; }
.photo-thumb:hover .photo-thumb-del { display: flex; }
.upload-zone { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 1.25rem; text-align: center; cursor: pointer; transition: all .1s; }
.upload-zone:hover { border-color: var(--blue); background: var(--blue-light); }
.upload-zone-text { font-size: .78rem; color: var(--text-muted); }

/* ── Section labels ── */
.section-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin: 1rem 0 .5rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

/* ── Portal link ── */
.portal-link-box { display: flex; align-items: center; gap: .5rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .75rem; }
.portal-link-text { font-size: .75rem; color: var(--text-muted); font-family: var(--font-mono); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Quill Rich Text Editor ── */
.editor-wrap { border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.editor-wrap .ql-toolbar { border: none; border-bottom: 1px solid var(--border); background: var(--bg-secondary); padding: .4rem .5rem; }
.editor-wrap .ql-container { border: none; font-family: var(--font-sans); font-size: .83rem; }
.editor-wrap .ql-editor { min-height: 120px; padding: .6rem .75rem; color: var(--text-primary); line-height: 1.6; }
.editor-wrap .ql-editor.ql-blank::before { color: var(--text-faint); font-style: normal; }
.editor-wrap .ql-toolbar .ql-stroke { stroke: var(--text-muted); }
.editor-wrap .ql-toolbar button:hover .ql-stroke,
.editor-wrap .ql-toolbar button.ql-active .ql-stroke { stroke: var(--blue); }
.editor-wrap .ql-toolbar .ql-fill { fill: var(--text-muted); }
.editor-wrap .ql-toolbar button:hover .ql-fill,
.editor-wrap .ql-toolbar button.ql-active .ql-fill { fill: var(--blue); }
.editor-wrap-sm .ql-editor { min-height: 70px; }

/* ── Logo upload in settings ── */
.logo-preview { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); padding: 4px; background: white; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
  .sidebar { width: 180px; }
}

/* ── Photo Gallery ── */
.gallery-wrap { margin-top: .75rem; }
.gallery-tabs { display: flex; gap: .4rem; margin-bottom: .75rem; flex-wrap: wrap; }
.gallery-tab { padding: .25rem .7rem; border-radius: 99px; font-size: .74rem; font-weight: 600; border: 1px solid var(--border-strong); background: var(--bg-primary); color: var(--text-muted); cursor: pointer; transition: all .1s; }
.gallery-tab:hover { color: var(--text-primary); }
.gallery-tab.active { background: var(--blue); border-color: var(--blue); color: white; }
.gallery-tab .count { font-size: .65rem; opacity: .8; margin-left: .2rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
.gallery-item { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; cursor: pointer; group: true; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .15s; display: flex; flex-direction: column; justify-content: space-between; padding: .4rem; }
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,.35); }
.gallery-type-badge { align-self: flex-start; font-size: .62rem; font-weight: 700; padding: .15rem .45rem; border-radius: 99px; opacity: 0; transition: opacity .15s; }
.gallery-item:hover .gallery-type-badge { opacity: 1; }
.type-before { background: #F59E0B; color: white; }
.type-after { background: #10B981; color: white; }
.type-detail { background: var(--blue); color: white; }
.type-general { background: rgba(255,255,255,.8); color: var(--text-primary); }
.gallery-item-actions { display: flex; gap: .3rem; justify-content: flex-end; opacity: 0; transition: opacity .15s; }
.gallery-item:hover .gallery-item-actions { opacity: 1; }
.gallery-action-btn { background: rgba(0,0,0,.5); border: none; color: white; border-radius: 4px; width: 22px; height: 22px; font-size: .7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery-action-btn:hover { background: rgba(0,0,0,.7); }

/* Before/After compare slider */
.ba-compare { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16/9; cursor: col-resize; user-select: none; background: var(--bg-tertiary); }
.ba-before { position: absolute; inset: 0; }
.ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; overflow: hidden; }
.ba-after img { width: 100%; height: 100%; object-fit: cover; position: absolute; right: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 3px; background: white; cursor: col-resize; box-shadow: 0 0 8px rgba(0,0,0,.4); }
.ba-handle::before { content: '◀ ▶'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: white; color: var(--text-primary); font-size: .65rem; padding: .3rem .4rem; border-radius: 99px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ba-label { position: absolute; bottom: .5rem; font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 99px; }
.ba-label-before { left: .5rem; background: #F59E0B; color: white; }
.ba-label-after { right: .5rem; background: #10B981; color: white; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: none; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox-header { padding: .875rem 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.lightbox-title { color: white; font-size: .9rem; font-weight: 600; }
.lightbox-actions { display: flex; gap: .5rem; }
.lightbox-btn { background: rgba(255,255,255,.12); border: none; color: white; border-radius: var(--radius); padding: .35rem .75rem; font-size: .78rem; cursor: pointer; font-family: var(--font-sans); font-weight: 600; }
.lightbox-btn:hover { background: rgba(255,255,255,.22); }
.lightbox-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; position: relative; overflow: hidden; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; color: white; border-radius: 50%; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-footer { padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.lightbox-caption { color: rgba(255,255,255,.7); font-size: .82rem; }
.lightbox-counter { color: rgba(255,255,255,.5); font-size: .75rem; }
.lightbox-thumbs { display: flex; gap: .4rem; padding: .5rem 1.25rem; overflow-x: auto; flex-shrink: 0; }
.lightbox-thumb { width: 48px; height: 48px; border-radius: var(--radius); overflow: hidden; cursor: pointer; opacity: .5; transition: opacity .15s; flex-shrink: 0; border: 2px solid transparent; }
.lightbox-thumb.active { opacity: 1; border-color: var(--blue); }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Upload zone with type selector */
.upload-zone-typed { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 1rem; }
.upload-type-row { display: flex; gap: .4rem; margin-bottom: .75rem; flex-wrap: wrap; }
.upload-type-btn { padding: .25rem .65rem; border-radius: 99px; font-size: .74rem; font-weight: 600; border: 1px solid var(--border-strong); background: var(--bg-primary); color: var(--text-muted); cursor: pointer; }
.upload-type-btn.active { border-color: transparent; color: white; }
.upload-type-btn[data-type="before"].active { background: #F59E0B; }
.upload-type-btn[data-type="after"].active { background: #10B981; }
.upload-type-btn[data-type="detail"].active { background: var(--blue); }
.upload-type-btn[data-type="general"].active { background: var(--text-muted); }
