:root {
  --background: #f5f7fb;
  --foreground: #0f172a;
  --surface: #ffffff;
  --border: #d9e0ee;
  --accent: #315efb;
  --accent-soft: #e8eeff;
  --accent-text: #1d38b6;
  --muted: #eef2f8;
  --muted-text: #52607a;
  --success: #18824f;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  min-height: 100%;
}

.backdrop {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at top right, #e9efff 0%, transparent 38%),
    linear-gradient(to right, rgba(217, 224, 238, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 224, 238, 0.35) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}

.tab-btn {
  transition: all 160ms ease;
  box-shadow: none;
}

.tab-btn.active {
  border-color: #cfdafe !important;
  background: #ffffff !important;
  color: var(--accent-text) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 12px rgba(15, 23, 42, 0.04);
}

.notice.error {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
}

.google-btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.dropzone {
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.dropzone input {
  display: none;
}

.dropzone.drag-over {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(49, 94, 251, 0.14);
  transform: translateY(-1px);
}

.preview-grid {
  display: grid;
}

.preview-item {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  position: relative;
}

.preview-item-media {
  position: relative;
}

.preview-item img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  display: block;
}

.preview-item span {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.preview-remove-btn,
.job-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 1px solid #dc2626;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preview-remove-btn:hover,
.job-delete-btn:hover {
  background: #fecaca;
  border-color: #ef4444;
  color: #991b1b;
}

#statusText.error {
  color: #b91c1c;
}

.result-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cfdafe;
  background: var(--accent-soft);
  color: var(--accent-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 0.42rem 0.72rem;
}

.batch-result-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem;
}

.jobs-grid {
  display: grid;
}

.job-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  position: relative;
}

.job-preview {
  height: 172px;
  background: linear-gradient(165deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.job-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-body {
  padding: 0.85rem;
}

.job-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.job-meta {
  margin-top: 0.45rem;
  font-size: 12px;
  color: #64748b;
}

.job-links {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.job-links a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
  color: #64748b;
  padding: 1rem;
  text-align: center;
}
