.gf-recovery-banner {
  max-width: 768px; margin: 16px auto 0; padding: 12px 16px;
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4);
  color: #92400e; border-radius: 10px; font-size: 14px;
}
.gf-converter-view { min-height: 75vh; padding-bottom: 48px; }
.gf-actionbar-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 12px 16px 8px; display: flex; justify-content: center;
  transition: opacity 0.25s;
}
.gf-actionbar-wrap.is-hidden-bar { opacity: 0; pointer-events: none; }
.gf-actionbar {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  max-width: 980px;
}
.gf-util-group { display: flex; align-items: center; gap: 6px; }
.gf-icon-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 52px; min-height: 44px; padding: 4px 8px; border-radius: 10px;
  border: 0; background: transparent; color: var(--fg); cursor: pointer; font-size: 15px;
}
.gf-icon-btn:hover { background: var(--muted-bg); }
.gf-icon-btn small { font-size: 11px; color: var(--muted-fg); margin-top: 2px; white-space: nowrap; }
.gf-bar-divider { width: 1px; height: 34px; background: var(--border); }
.gf-quality-group { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.gf-quality-top { display: flex; align-items: center; gap: 8px; }
.gf-format-badge {
  padding: 3px 10px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.gf-presets { display: flex; gap: 2px; background: var(--muted-bg); padding: 3px; border-radius: 8px; border: 1px solid var(--border); }
.gf-preset-btn {
  border: 0; background: transparent; color: var(--muted-fg);
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.gf-preset-btn.is-active { background: #fff; color: var(--fg); box-shadow: var(--shadow-sm); }
.gf-quality-slider-row { display: flex; align-items: center; gap: 8px; }
.gf-min-label { font-size: 12px; color: var(--muted-fg); }
.gf-quality-slider-row input[type="range"] { flex: 1; accent-color: var(--primary); cursor: pointer; }
.gf-quality-num-wrap {
  display: flex; align-items: center; width: 56px; height: 28px;
  border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; background: #fff;
}
.gf-quality-num-wrap input {
  width: 100%; border: 0; outline: 0; font-size: 12px; text-align: right; font-weight: 600;
}
.gf-quality-num-wrap span { font-size: 12px; color: var(--muted-fg); margin-left: 2px; }

.gf-action-group { display: flex; align-items: center; gap: 12px; }
.gf-exif-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.gf-exif-label input { width: 16px; height: 16px; accent-color: var(--primary); }
.gf-action-btns { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gf-primary-btn {
  min-width: 150px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.gf-primary-btn:hover:not(:disabled) { background: var(--accent-hover); }
.gf-primary-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.gf-zip-btn {
  min-width: 150px; min-height: 44px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--accent); background: #fff; color: var(--accent);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.gf-stats { font-size: 12px; color: var(--muted-fg); }

.gf-file-container { max-width: 768px; margin: 0 auto; padding: 132px 16px 24px; }
.gf-mobile-notice {
  margin-bottom: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--muted-bg); border: 1px solid var(--border);
  font-size: 12px; color: var(--muted-fg); display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.gf-notice-close { border: 0; background: transparent; cursor: pointer; color: var(--muted-fg); font-size: 14px; padding: 4px; }
.gf-file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gf-file-item {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.gf-file-thumb {
  width: 48px; height: 48px; border-radius: 10px; background: var(--muted-bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-size: 22px;
}
.gf-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gf-file-info { flex: 1; min-width: 0; }
.gf-file-name { font-size: 14px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-file-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-fg); margin-top: 4px; }
.gf-size-smaller { color: var(--success); font-weight: 600; }
.gf-exif-tag { color: var(--primary); font-weight: 600; }
.gf-file-error { font-size: 12px; color: var(--destructive); margin: 4px 0 0; }
.gf-file-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gf-status-pill { font-size: 12px; padding: 4px 8px; border-radius: 6px; background: var(--muted-bg); color: var(--muted-fg); }
.gf-status-err { font-size: 12px; color: var(--destructive); font-weight: 600; }
.gf-status-done { font-size: 12px; color: var(--muted-fg); }
.gf-row-btn {
  min-width: 36px; min-height: 36px; border: 1px solid var(--border); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 14px; padding: 4px 8px;
}
.gf-row-btn:hover { background: var(--muted-bg); }
.gf-spinner {
  width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: gf-spin 0.8s linear infinite;
}
@keyframes gf-spin { to { transform: rotate(360deg); } }

.gf-sticky-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 45; padding: 10px 16px; }
.gf-sticky-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.gf-sticky-logo { border: 0; background: transparent; font-weight: 700; font-size: 18px; cursor: pointer; display: inline-flex; gap: 3px; }
.gf-sticky-links { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }
.gf-sticky-links a { color: var(--muted-fg); }
.gf-sticky-links a:hover { color: var(--fg); text-decoration: none; }
.gf-sticky-right { display: flex; align-items: center; gap: 12px; }
.gf-sticky-hint { font-size: 12px; color: var(--accent); font-weight: 600; }
.gf-sticky-cta {
  min-height: 44px; padding: 8px 16px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}

.gf-drag-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
  border: 4px dashed var(--primary);
}
.gf-drag-box { text-align: center; }
.gf-drag-title { font-size: 32px; font-weight: 700; margin: 0 0 8px; }
.gf-drag-sub { font-size: 18px; color: var(--muted-fg); margin: 0; }

.gf-dialog-backdrop {
  position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.gf-dialog-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow-md);
}
.gf-dialog-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--fg); }
.gf-dialog-card p:not(.gf-dialog-title) { margin: 0 0 20px; font-size: 14px; color: var(--muted-fg); }
.gf-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.gf-dialog-cancel, .gf-dialog-confirm {
  min-height: 44px; padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.gf-dialog-cancel { border: 1px solid var(--border); background: #fff; color: var(--fg); }
.gf-dialog-confirm { border: 0; background: var(--accent); color: #fff; }

.gf-toast-container { position: fixed; top: 16px; right: 16px; z-index: 120; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.gf-toast {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; box-shadow: var(--shadow-md); font-size: 13px; color: #dc2626; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.gf-toast-btn { border: 1px solid var(--border); background: #fff; color: var(--fg); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }

@media (max-width: 640px) {
  .gf-bar-divider { display: none; }
  .gf-actionbar { width: 100%; justify-content: center; }
  .gf-file-container { padding-top: 230px; }
  .gf-sticky-links, .gf-sticky-hint { display: none; }
}
