*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-hover: #f5f5f7;
    --border: #e5e5e5;
    --border-focus: #a0a0a0;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-muted: #999999;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --danger: #dc2626;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --transition: 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 24px 16px;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: 1140px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.session-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--danger);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}

.header .env-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.header .env-badge.dev {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: var(--radius);
}

.tab-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

/* Form elements */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.label-row label {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    resize: none;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* File input */
.file-input-wrap {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg);
}

.file-input-wrap:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.file-input-wrap input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-input-wrap .file-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.file-input-wrap p {
    font-size: 13px;
    color: var(--text-secondary);
}

.file-input-wrap .file-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 8px;
    margin-bottom: 12px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-focus);
}

/* Progress */
.progress-wrap {
    margin-top: 16px;
}

.progress-bar-track {
    height: 3px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 30%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), #60a5fa, var(--accent));
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Status */
.error-msg {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
}

/* Results */
.results-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.result-item {
    animation: fadeSlideIn 0.4s ease-out forwards;
    opacity: 0;
    margin-bottom: 12px;
}

.result-item img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.result-item img:hover {
    box-shadow: var(--shadow-md);
}

.result-item a {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-item a:hover {
    color: var(--accent);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery */
.gallery-card {
    transition: max-width var(--transition);
}

.container.wide-mode {
    max-width: 1140px;
}

/* Admin Bar & User Filter Chips */
.admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    animation: fadeSlideIn 0.3s ease-out;
}

.admin-bar-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.admin-badge {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid #bfdbfe;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-counts {
    color: var(--text-secondary);
}

.user-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.user-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-chip:hover {
    background: var(--surface-hover);
    border-color: var(--border-focus);
}

.user-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}

.user-chip-count {
    background: var(--bg);
    color: var(--text-secondary);
    padding: 0 5px;
    border-radius: 8px;
    font-size: 10px;
}

.user-chip.active .user-chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Streamlined Gallery Toolbar */
.gallery-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.gallery-toolbar .search-input-wrap {
    flex: 1 1 200px;
}

.gallery-toolbar .search-input-wrap input {
    padding: 8px 12px;
    font-size: 13px;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-select-wrap select {
    font-size: 12px;
}

.view-mode-group {
    display: flex;
    background: var(--bg);
    padding: 2px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    gap: 2px;
}

.view-btn {
    padding: 5px 10px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}

.view-btn:hover {
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Gallery Grids */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-grid.compact {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.gallery-grid.compact .gallery-item .info {
    padding: 4px 6px;
}

.gallery-grid.compact .gallery-item .info .prompt-preview {
    font-size: 10px;
}

.gallery-grid.compact .gallery-item .info .meta {
    font-size: 9px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    animation: fadeSlideIn 0.3s ease-out forwards;
    opacity: 0;
    background: var(--surface);
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-focus);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: var(--bg);
}

.gallery-item .info {
    padding: 8px 10px;
}

.gallery-item .info .prompt-preview {
    font-size: 11px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-item .info .meta {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gallery-item .info .owner-tag {
    color: var(--accent);
    font-weight: 600;
}

/* Audit Table View */
.gallery-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.gallery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.gallery-table th {
    background: var(--bg);
    padding: 10px 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.gallery-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-primary);
}

.gallery-table tr:last-child td {
    border-bottom: none;
}

.gallery-table tr:hover td {
    background: var(--surface-hover);
}

.table-thumb-wrap {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
}

.table-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-badge-pill {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid #bfdbfe;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
}

.table-prompt-cell {
    max-width: 260px;
    word-break: break-word;
    line-height: 1.4;
}

.table-prompt-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.table-specs-cell {
    font-size: 11px;
    color: var(--text-secondary);
}

.table-time-cell {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.table-actions-cell {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.action-btn-icon {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition);
}

.action-btn-icon:hover {
    background: var(--surface);
    color: var(--accent);
    border-color: var(--accent);
}

.gallery-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}

.gallery-empty p {
    font-size: 13px;
}

.gallery-empty .hint {
    font-size: 12px;
    margin-top: 4px;
}

.gallery-status {
    font-size: 12px;
    color: var(--text-muted);
}


/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    animation: modalFadeIn 0.25s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.modal-close:hover {
    background: #e5e7eb;
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-main-image-wrap {
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.modal-main-image-wrap img {
    width: 100%;
    display: block;
}

.modal-section {
    margin-bottom: 16px;
}

.modal-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.prompt-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    word-break: break-word;
}

.modal-ref-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-ref-item {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: transform var(--transition), border-color var(--transition);
}

.modal-ref-item:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.modal-ref-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.modal-meta dt {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 10px;
}

.modal-meta dd {
    color: var(--text-primary);
    margin-top: 1px;
    margin-bottom: 8px;
}

.modal-meta-full {
    grid-column: 1 / -1;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Helper */
.char-count {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

.hidden {
    display: none !important;
}

/* Login & Rules Modals */
.auth-card,
.rules-card {
    max-width: 440px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.rules-greeting {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: var(--accent-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 12px;
}

.rules-greeting strong {
    display: block;
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 4px;
}

.rules-list {
    list-style: none;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rules-list li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

.rules-actions {
    margin-top: 16px;
}

/* Analyze Panel */
.analyze-header {
    margin-bottom: 16px;
}

.analyze-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.analyze-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.analyze-results {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    animation: fadeSlideIn 0.3s ease-out;
}

.analyze-image-preview {
    max-height: 240px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.analyze-image-preview img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.analyze-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.stat-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.stat-box.full {
    grid-column: 1 / -1;
}

.stat-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.best-match-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-badge {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid #bfdbfe;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
}

.match-diff {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Reference Image Previews */
.ref-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ref-preview-item {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition);
}

.ref-preview-item:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.ref-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ref-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.ref-preview-remove:hover {
    background: var(--danger);
}

.hash-text {
    font-family: monospace;
    font-size: 11px;
    word-break: break-all;
    color: var(--text-secondary);
}

/* Active Job Badges & Banners */
.tab-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-pulse {
    width: 6px;
    height: 6px;
    background-color: #2563eb;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}

.gallery-pending-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.spinner-sm {
    width: 18px;
    height: 18px;
    border: 2px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gallery-job-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gallery-job-info .job-title {
    font-weight: 600;
    font-size: 13px;
    color: #1e3a8a;
}

.gallery-job-info .job-details-text {
    font-size: 12px;
    color: #3b82f6;
}

.gallery-job-info code, .progress-task-id code {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 11px;
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 4px;
}

.progress-task-id {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}