body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Thin scrollbar for horizontal galleries */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Prose-ish styling for CMS rich text */
.rich-content p { margin-bottom: 1rem; line-height: 1.8; }
.rich-content img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1rem 0; }
.rich-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.rich-content h2, .rich-content h3 { margin: 1.25rem 0 0.75rem; font-weight: 700; }

/* ---------- Pretty file input (replaces native <input type=file>) ---------- */
.pretty-file { position: relative; display: inline-flex; align-items: center; gap: 0.75rem; }
.pretty-file input[type="file"] {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; opacity: 0;
}
.pretty-file .pf-button {
    display: inline-block; background: #0284c7; color: #fff; font-size: 0.875rem;
    padding: 0.5rem 1rem; border-radius: 0.375rem; cursor: pointer;
    transition: background-color .15s ease; user-select: none;
}
.pretty-file .pf-button:hover { background: #0369a1; }
.pretty-file .pf-name {
    font-size: 0.875rem; color: #475569; max-width: 18rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pretty-file input[type="file"]:focus-visible + .pf-button { outline: 2px solid #0ea5e9; outline-offset: 2px; }

/* ---------- Import result table (rows that failed) ---------- */
.import-result-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.import-result-table th, .import-result-table td {
    text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #e2e8f0;
}
.import-result-table th { background: #f8fafc; color: #475569; font-weight: 600; }
.import-result-table tr.row-failed td:first-child { color: #dc2626; font-weight: 600; }
.import-result-table tr.row-success td:first-child { color: #16a34a; font-weight: 600; }
