* { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: #0d0d14;
    color: #e8eaf0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }
  .app {
    display: grid;
    grid-template-columns: 360px 1fr;
    width: 100%;
    min-height: 100vh;
  }
.top-tabs {
  order: -1;
  width: 100%;
}

.app,
.gallery-page {
  flex: 1;
}

  /* ── Left Panel ── */
  .panel {
    background: #0a0f1e;
    border-right: 1px solid #1a2540;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
  }
  .panel-title {
    font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: #4d8edb;
    padding-bottom: 12px; border-bottom: 1px solid #1a2540;
  }
  .section-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #4a6a9a; margin-bottom: 8px;
  }

  /* Template Picker */
  .template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .tmpl-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.15s;
    aspect-ratio: 1;
    background: #111827;
  }
  .tmpl-card:hover { transform: scale(1.03); }
  .tmpl-card.active { border-color: #4d8edb; box-shadow: 0 0 0 1px #4d8edb, 0 0 14px rgba(77,142,219,0.4); }
  .tmpl-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tmpl-card .check {
    position: absolute; top: 5px; right: 5px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #4d8edb; display: none;
    align-items: center; justify-content: center;
    font-size: 11px; font-weight: bold; color: #fff;
  }
  .tmpl-card.active .check { display: flex; }
  .tmpl-name {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 4px 6px; font-size: 9px; font-weight: 600;
    text-align: center; letter-spacing: 0.05em;
    background: rgba(0,0,0,0.55); color: #cdd6e8;
  }

  /* Fields */
  .field-group { display: flex; flex-direction: column; gap: 6px; }
  .field-group label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: #5a7aaa;
  }
  .upload-zone {
    border: 2px dashed #1e3a6a; border-radius: 10px; padding: 22px 14px;
    text-align: center; cursor: pointer; transition: all 0.2s;
    background: #0d1a30;
  }
  .upload-zone:hover { border-color: #4d8edb; background: #0f2040; }
  .upload-zone input { display: none; }
  .upload-icon { font-size: 26px; display: block; margin-bottom: 6px; }
  .upload-zone p { font-size: 11px; color: #5a7aaa; line-height: 1.5; }
  .photo-thumb {
    width: 68px; height: 68px; border-radius: 50%;
    object-fit: cover; border: 2px solid #4d8edb;
    margin: 0 auto 6px; display: block;
  }
  input[type="text"], select {
    background: #0d1a30; border: 1px solid #1a2f50;
    border-radius: 8px; padding: 9px 12px;
    color: #e8eaf0; font-size: 13px; width: 100%;
    outline: none; transition: border-color 0.2s;
  }
  input[type="text"]:focus, select:focus {
    border-color: #4d8edb;
    box-shadow: 0 0 0 3px rgba(77,142,219,0.1);
  }
  select option { background: #0a0f1e; }
  .hint { font-size: 10px; color: #3a5a80; margin-top: -3px; }
  .btn {
    padding: 11px 18px; border-radius: 9px; border: none;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; width: 100%; letter-spacing: 0.03em;
  }
  .btn-primary {
    background: linear-gradient(135deg, #1a4aaa, #4d8edb);
    color: #fff; box-shadow: 0 4px 16px rgba(77,142,219,0.3);
  }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(77,142,219,0.42); }
  .btn-download {
    background: linear-gradient(135deg, #b07a18, #eaba38);
    color: #0a0a14; box-shadow: 0 4px 16px rgba(234,186,56,0.22);
  }
  .btn-download:hover { transform: translateY(-1px); }
  .btn-download:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
  .spacer { flex: 1; }
  .footer-note { font-size: 10px; color: #1e3050; text-align: center; line-height: 1.6; }
  hr { border: none; border-top: 1px solid #141e34; }

  /* ── Preview ── */
  .preview-area {
    background: #06090f;
    display: flex; align-items: center; justify-content: center;
    padding: 28px; overflow: auto;
  }
  .poster-wrap {
    position: relative;
    width: min(580px, calc(100vw - 360px - 56px));
  }
  canvas {
    width: 100%; height: auto; border-radius: 10px;
    box-shadow: 0 0 0 1px #1a2540, 0 18px 52px rgba(0,0,0,0.75);
    display: block;
  }
  .preview-hint {
    position: absolute; bottom: -24px; left: 50%;
    transform: translateX(-50%); font-size: 10px;
    color: #1e3050; white-space: nowrap;
  }

  .graduation-help {
  margin-top: 20px;
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.help-header {
  width: 100%;
  border: none;
  padding: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg,#6c63ff,#4da8ff);
  color: white;
}

.help-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  padding: 0 18px;
}

.help-content.open {
  max-height: 600px;
  padding: 18px;
}

.help-content p {
  color: #2c3e50;
  line-height: 1.6;
}

.prompt-card {
  margin-top: 15px;
  background: #f7f9fc;
  border-radius: 14px;
  padding: 15px;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #dfe8f3;
}

.prompt-card pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
  color: #233;
}

.copy-prompt-btn {
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  background: linear-gradient(135deg,#6c63ff,#4da8ff);
  color: white;
  transition: 0.25s;
}

.copy-prompt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(108,99,255,0.3);
}

  @media (max-width: 860px) {
    .app { grid-template-columns: 1fr; }
    .panel { border-right: none; border-bottom: 1px solid #1a2540; }
    .preview-area { padding: 18px; }
    .poster-wrap { width: min(480px, calc(100vw - 36px)); }
  }

  /* ── Info Button & Modal & Toast CSS ── */
  /* Floating Info Button */
  .floating-info-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
    background: linear-gradient(135deg, #1a4aaa, #4d8edb);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(77, 142, 219, 0.4), 0 0 0 1px rgba(77, 142, 219, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
  }
  .floating-info-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(77, 142, 219, 0.6), 0 0 15px rgba(77, 142, 219, 0.4);
  }
  .floating-info-btn:active {
    transform: scale(0.95);
  }

  /* Side Drawer Panel */
  .side-panel-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 10, 18, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .side-panel-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
  .side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(440px, 92vw);
    background: radial-gradient(circle at top left, #12192a, #0b0f19);
    border-left: 1px solid rgba(77, 142, 219, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 1501;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
  }
  .side-panel-overlay.open .side-drawer {
    transform: translateX(0);
  }
  .modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: #5a7aaa;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
  }
  .modal-close:hover {
    color: #e8eaf0;
    background: rgba(255, 255, 255, 0.08);
  }
  .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #e8eaf0;
    margin-top: 10px;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #4d8edb, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Inner Prompt Card & Copy Button */
  .drawer-prompt-card {
    margin-top: 10px;
    background: #090d16;
    border: 1px solid rgba(77, 142, 219, 0.15);
    border-radius: 8px;
    padding: 12px;
    max-height: 140px;
    overflow-y: auto;
  }
  .drawer-prompt-card pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.4;
    color: #a3b3cc;
  }
  .drawer-prompt-card::-webkit-scrollbar {
    width: 4px;
  }
  .drawer-prompt-card::-webkit-scrollbar-thumb {
    background: #1a2f50;
    border-radius: 2px;
  }
  .drawer-copy-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #1a4aaa, #4d8edb);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
  }
  .drawer-copy-btn:hover {
    box-shadow: 0 4px 12px rgba(77, 142, 219, 0.3);
    transform: translateY(-1px);
  }

  /* Steps Timeline */
  .steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 6px;
  }
  .steps-timeline::-webkit-scrollbar {
    width: 6px;
  }
  .steps-timeline::-webkit-scrollbar-thumb {
    background: #1a2f50;
    border-radius: 3px;
  }
  .step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .step-number {
    background: linear-gradient(135deg, #1a4aaa, #4d8edb);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(77, 142, 219, 0.3);
  }
  .step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .step-title {
    font-size: 14px;
    font-weight: 600;
    color: #93c5fd;
  }
  .step-content p {
    font-size: 12px;
    color: #a3b3cc;
    line-height: 1.5;
  }

  /* Toast Notification */
  .toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
  }
  .toast {
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.1);
    padding: 16px 20px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    min-width: 320px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
    opacity: 0;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
  }
  .toast.show {
    transform: translateX(0);
    opacity: 1;
  }
  .toast.error {
    border-color: rgba(239, 68, 68, 0.3);
    border-left-color: #ef4444;
  }
  .toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
  }
  .toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
  }
  .toast-content {
    flex-grow: 1;
    line-height: 1.4;
  }
  .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #10b981;
    width: 100%;
    animation: toast-timer 4s linear forwards;
    transform-origin: left;
  }
  .toast.error .toast-progress {
    background: #ef4444;
  }

  @keyframes toast-timer {
    to {
      transform: scaleX(0);
    }
  }

  /* Error validation states on fields */
  .upload-zone.error, input[type="text"].error, select.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    animation: shake-field 0.4s ease-in-out;
  }

  @keyframes shake-field {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
  }

  /* Submit Poster button custom styling */
  #uploadBtn {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
    margin-top: 10px;
  }
  #uploadBtn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.38);
  }
  #uploadBtn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  #uploadBtn.success-state {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3) !important;
  }

  /* Spinner for loading state */
  .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* Drive Link Container styling */
  .drive-link-container {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px dashed rgba(13, 148, 136, 0.35);
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
  }
  .drive-link-container a {
    color: #14b8a6;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
  }
  .drive-link-container a:hover {
    color: #2dd4bf;
    text-shadow: 0 0 8px rgba(45, 212, 191, 0.3);
  }

  /* =============================================================
   style-additions.css  –  Append to the END of styles/style.css
   ============================================================= */

/* ── Top Tabs ── */
.top-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: #0d1333;
  border-bottom: 1px solid rgba(80,140,255,0.18);
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-tab {
  background: transparent;
  border: 1px solid rgba(80,140,255,0.25);
  color: #8ba0cc;
  padding: 9px 24px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s;
}
.top-tab:hover { border-color: rgba(80,180,255,0.55); color: #cfe0ff; }
.top-tab.active {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(37,99,235,0.4);
}

.tab-panel { width: 100%; }

/* ── Gallery Page Layout ── */
.gallery-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.gallery-header { text-align: center; margin-bottom: 28px; }
.gallery-header h2 {
  font-size: 1.55rem;
  color: #ffd966;
  text-shadow: 0 0 14px rgba(255,210,80,0.4);
  margin-bottom: 6px;
}
.gallery-header > p { font-size: 0.84rem; color: #8ba0cc; }

/* ── Controls (search / filter / refresh) ── */
.gallery-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.gallery-search,
.gallery-filter {
  background: #0c1224;
  border: 1px solid rgba(80,140,255,0.28);
  border-radius: 8px;
  color: #e8eaf6;
  font-size: 0.85rem;
  padding: 9px 14px;
  outline: none;
  min-width: 200px;
  transition: border-color 0.18s;
}
.gallery-search:focus,
.gallery-filter:focus { border-color: #4d9fff; }
.gallery-filter option { background: #0c1224; }

.btn-refresh {
  padding: 9px 18px;
  background: rgba(80,140,255,0.10);
  border: 1px solid rgba(80,140,255,0.30);
  color: #cfe0ff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-refresh:hover { background: rgba(80,140,255,0.22); }

/* ── Status ── */
.gallery-status {
  text-align: center;
  color: #6a84c0;
  font-size: 0.85rem;
  padding: 24px 0;
}
.gallery-status.error  { color: #ff7b7b; }
.gallery-status.hidden { display: none; }

/* ── Department Section ── */
.dept-section { margin-bottom: 40px; }

.dept-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(80,140,255,0.16);
}
.dept-section-header h3 {
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.03em;
}
.dept-count {
  background: rgba(255,217,102,0.1);
  color: #ffd966;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,217,102,0.28);
}

/* ── Grid — 3 columns on desktop ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ── Card ── */
.gallery-card {
  background: #101628;
  border: 1px solid rgba(80,140,255,0.16);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(37,99,235,0.32);
  border-color: rgba(80,160,255,0.5);
}

.thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0a0e1a;
  overflow: hidden;
  position: relative;
}
.thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.img-skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, #0d1430 25%, #1a2650 50%, #0d1430 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-info {
  padding: 14px 16px;
  border-top: 1px solid rgba(80,140,255,0.1);
}
.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e8eaf6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.card-dept {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffd966;
  background: rgba(255,217,102,0.09);
  border: 1px solid rgba(255,217,102,0.22);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.gallery-empty {
  text-align: center;
  color: #4a5e8a;
  padding: 48px 0;
  font-size: 0.88rem;
}

/* ── Lightbox ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4,8,20,0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  backdrop-filter: blur(5px);
}
.gallery-lightbox.open { display: flex; }

.lb-close {
  position: fixed;
  top: 20px; right: 26px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lb-close:hover { background: rgba(255,255,255,0.18); }

.lb-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
}
.lb-body img {
  max-width: 88vw;
  max-height: 76vh;
  border-radius: 14px;
  box-shadow: 0 0 50px rgba(0,80,255,0.3);
}
.lb-caption { text-align: center; }
.lb-name { font-size: 1.1rem; font-weight: 700; color: #e8eaf6; }
.lb-dept { font-size: 0.8rem; color: #8ba0cc; margin-top: 3px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  .gallery-page { padding: 18px 12px 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-name { font-size: 0.88rem; }
  .gallery-controls { flex-direction: column; align-items: stretch; }
  .gallery-search, .gallery-filter { min-width: 0; width: 100%; }
  .top-tabs { padding: 10px 12px; gap: 6px; }
  .top-tab  { padding: 8px 14px; font-size: 0.82rem; }
}

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }