/* Shared Exports panel styles (/exports page + the Exports tab in /chat). */
.exp-views { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; padding: 3px; background: #fff; flex: none; }
.exp-views button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.exp-views button.on { background: var(--fg); color: #fff; }
.exp-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.exp-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px;
  border: 1px solid var(--border); border-radius: 14px; background: #fff;
}
.exp-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.exp-title { font-size: 16px; font-weight: 700; color: var(--fg); line-height: 1.3; }
.exp-badge { display: inline-flex; align-items: center; padding: 2px 9px; font-size: 11px; font-weight: 700; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; flex: none; }
.exp-badge.pptx { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.exp-badge.canva { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.exp-badge.pdf { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.exp-meta { font-size: 12px; color: var(--soft); display: flex; gap: 10px; flex-wrap: wrap; }
.exp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.exp-card .exp-actions .primary { flex: 1; }
.exp-thumb { margin: -2px 0 10px 0; border-radius: 8px; overflow: hidden; background: #0f172a; display: flex; align-items: center; justify-content: center; max-height: 150px; }
.exp-thumb img { max-width: 100%; max-height: 150px; object-fit: contain; }
.exp-thumb-pending { height: 150px; background: repeating-linear-gradient(135deg, #f1f5f9 0 14px, #e9eef5 14px 28px); }
.exp-card.pending { border-style: dashed; }
.exp-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.exp-status.generating { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.exp-status.ready { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.exp-spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: exp-spin .8s linear infinite; }
@keyframes exp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .exp-spin { animation: none; } }
.exp-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.exp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.exp-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--border); padding: 0; white-space: nowrap; background: #f8fafc; }
.exp-table td:last-child { padding-right: 14px; }
.exp-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.exp-table tr:last-child td { border-bottom: 0; }
.exp-table tr.pending td { background: #fffbf5; }
.exp-table .num { text-align: right; }
.exp-sort { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 10px 12px; width: 100%; text-align: inherit; display: inline-flex; gap: 6px; align-items: center; }
th.num .exp-sort { justify-content: flex-end; }
.exp-sort:hover, .exp-sort.on { color: var(--fg); }
.exp-arrow { font-size: 9px; min-width: 9px; }
.exp-td-title { font-weight: 600; color: var(--fg); min-width: 160px; }
.exp-td-date { white-space: nowrap; color: var(--muted); }
.exp-row-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.exp-row-actions .exp-btn { padding: 6px 12px; font-size: 12px; white-space: nowrap; }
.exp-more { position: relative; }
.exp-more-btn { font-size: 16px; line-height: 1; padding: 4px 10px !important; }
.exp-menu { position: fixed; z-index: 50; min-width: 170px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 28px rgba(15,23,42,.14); padding: 4px; display: flex; flex-direction: column; }
.exp-menu[hidden] { display: none; }
.exp-menu > * { font: inherit; font-size: 13px; text-align: left; border: 0; background: transparent; color: var(--fg); padding: 8px 10px; border-radius: 7px; cursor: pointer; text-decoration: none; }
.exp-menu > *:hover, .exp-menu > *:focus-visible { background: #f1f5f9; outline: none; }
.exp-menu > .danger { color: #b91c1c; }
.exp-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.exp-btn { font: inherit; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 8px 14px; cursor: pointer; text-decoration: none; text-align: center; border: 1px solid var(--border); background: #fff; color: var(--fg); }
.exp-btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: var(--accent-fg); }
.exp-btn.primary:hover { filter: brightness(1.05); }
.exp-btn.plot { background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #ec4899 100%); border-color: transparent; color: #fff; }
.exp-btn.plot:hover { filter: brightness(1.05); }
.exp-btn.del { color: var(--muted); }
.exp-btn.del:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.exp-empty { color: var(--muted); font-size: 14px; padding: 32px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; }
.exp-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 24px rgba(15,23,42,.25); z-index: 10000; }
