:root { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #0f172a; }
body { margin: 0; background: #f5f7fb; line-height: 1.7; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.heicp-hero { background: linear-gradient(120deg, #0f6efc, #5b1bff); color: #fff; padding: 56px 0 48px; }
.heicp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.wc-eyebrow { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 8px; }
.heicp-hero h1 { margin: 0 0 12px; font-size: clamp(2.1rem, 4vw, 3rem); }
.heicp-subtitle { margin: 0 0 12px; opacity: 0.95; }
.wc-bullets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.wc-bullets span { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-weight: 700; }
.wc-hero-card { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 20px; padding: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18); }
.wc-hero-badge { display: inline-block; background: rgba(255, 255, 255, 0.2); padding: 6px 12px; border-radius: 12px; font-weight: 700; }
.heicp-main { padding: 40px 0 60px; }
.heicp-grid { display: grid; gap: 18px; }
.card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08); border: 1px solid #e2e8f0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.card-head.small h3 { margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #1d4ed8; font-weight: 700; font-size: 0.9rem; }
.label-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; gap: 10px; }
.muted { color: #64748b; }
.tiny { font-size: 0.9rem; }
.primary-btn, .secondary-btn, .ghost-btn { border: none; border-radius: 12px; padding: 10px 14px; font-weight: 800; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.primary-btn { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35); }
.secondary-btn { background: #f8fafc; border: 1px solid #dbeafe; color: #0f172a; }
.ghost-btn { background: #fff; border: 1px solid #dbeafe; color: #0f6efc; }
.ghost-btn.sm { padding: 8px 10px; font-size: 0.95rem; }
.ghost-btn:hover, .secondary-btn:hover, .primary-btn:hover { transform: translateY(-1px); }
.cta-row { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.stack-on-mobile { display: flex; gap: 10px; }
.heicp-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr); gap: 14px; margin-top: 16px; align-items: start; }
.heicp-dropzone { border: 1.5px dashed #94a3b8; border-radius: 14px; padding: 16px; text-align: center; background: #f8fafc; display: grid; gap: 6px; justify-items: center; }
.heicp-dropzone.dragging { border-color: #2563eb; background: #eef2ff; }
.heicp-dropzone input[type='file'] { display: none; }
.drop-title { margin: 0; font-weight: 800; }
.heicp-queue { margin-top: 12px; display: grid; gap: 10px; }
.heicp-queue.empty::before { content: "No HEIC files queued yet. Drop them here to begin."; display: block; color: #64748b; background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 12px; padding: 12px; text-align: center; }
.heicp-queue-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; background: #fff; }
.heicp-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: #f8fafc; border: 1px solid #e2e8f0; }
.heicp-meta { display: grid; gap: 4px; }
.heicp-meta strong { font-size: 1rem; }
.heicp-actions { display: grid; gap: 6px; justify-items: end; }
.heicp-remove { background: transparent; border: none; color: #b91c1c; cursor: pointer; font-weight: 700; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; }
.status-wait { background: #f8fafc; color: #0f172a; border: 1px solid #e2e8f0; }
.status-converting { background: #eef2ff; color: #1d4ed8; border: 1px solid #cbd5e1; }
.status-done { background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; }
.status-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecdd3; }
.heicp-settings-card { background: #f8fafc; }
.heicp-setting { display: grid; gap: 6px; margin-bottom: 10px; }
.heicp-setting.two-cols { grid-template-columns: 1fr 1fr; gap: 10px; }
.heicp-setting input[type='number'], .heicp-setting input[type='color'] { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 1rem; }
.heicp-setting input[type='range'] { width: 100%; accent-color: #2563eb; }
.heicp-setting.toggles { display: grid; gap: 6px; }
.heicp-modes { display: grid; gap: 6px; }
.heicp-feedback { margin-top: 6px; font-size: 0.95rem; }
.heicp-results-card .results-head { align-items: center; }
.heicp-results { display: grid; gap: 12px; }
.heicp-result { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; align-items: center; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #f8fafc; }
.heicp-result .thumb { width: 88px; height: 88px; border-radius: 12px; border: 1px solid #e2e8f0; background: repeating-conic-gradient(#f8fafc 0% 25%, #e2e8f0 0% 50%) 50% / 16px 16px; overflow: hidden; display: flex; }
.heicp-result .thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.heicp-result .stats { display: grid; gap: 4px; }
.heicp-result .actions { display: grid; gap: 8px; justify-items: end; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.info-card { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #e2e8f0; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { padding: 8px 12px; border-radius: 999px; border: 1px solid #dbeafe; color: #1d4ed8; text-decoration: none; background: #eef2ff; font-weight: 700; }
.heicp-steps { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.faq-tabs { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.faq-tab { border: 1px solid #dbeafe; background: #f8fafc; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 700; color: #0f172a; }
.faq-tab.active { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.faq-panel { display: grid; gap: 10px; }
.faq-panel.hidden { display: none; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #f8fafc; }
.heicp-hero-card { color: #fff; }
.heicp-hero-card p { margin: 8px 0 0; }
#heicp-download-all[disabled] { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 960px) {
  body { overflow-x: hidden; }
  .heicp-hero-grid { grid-template-columns: 1fr; }
  .heicp-hero { padding: 32px 0; }
  .heicp-main { padding: 20px 0 36px; }
  .card { padding: 16px; border-radius: 16px; }
  .heicp-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .chip-row { gap: 6px; }
  .stack-on-mobile { flex-direction: column; width: 100%; }
  .heicp-queue-item, .heicp-result { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .heicp-actions, .heicp-result .actions { grid-column: 1 / -1; justify-items: start; }
  #heicp-download-all { position: sticky; bottom: 12px; width: 100%; }
}
