/* PaperTriage design system: tokens.css + components/bundle.css (copied from the system), fonts served locally */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; }
:root, [data-theme="light"] {
  --ground: #f4f6f9; --ambient-sky: #d5e3ff; --ambient-mint: #d6f2e7; --surface: #ffffff; --surface-sunken: #eceff4;
  --glass: rgba(255,255,255,0.62); --glass-solid: rgba(255,255,255,0.94); --glass-edge: rgba(255,255,255,0.85);
  --line: #e2e6ed; --ink: #11141a; --ink-muted: #566072; --ink-disabled: #9aa2b0; --accent: #2a4bd4; --on-accent: #ffffff;
  --accent-soft: #e7ecff; --success: #0b7656; --success-soft: #e1f5ed; --warning: #8f5400; --warning-soft: #fff2d8;
  --danger: #bf3417; --danger-soft: #fde9e4; --scrim: rgba(13,16,21,0.38);
  --shadow-card: 0 1px 2px rgba(17,20,26,0.05), 0 4px 16px rgba(17,20,26,0.04);
  --shadow-glass: 0 12px 40px rgba(17,20,26,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
  --shadow-dialog: 0 24px 64px rgba(17,20,26,0.18);
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 32px; --radius-pill: 999px;
  --blur-glass: 24px; --blur-scrim: 6px;
  --font-sans: "Geist", "Roboto Flex", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Roboto Mono", monospace;
}
body { margin: 0; }
.pt, .pt * { box-sizing: border-box; }
.pt { font-family: var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
.pt-ambient { position: relative; background: var(--ground); overflow: hidden; isolation: isolate; }
.pt-ambient::before, .pt-ambient::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(48px); pointer-events: none; }
.pt-ambient::before { width: 320px; height: 260px; top: -90px; right: -80px; background: var(--ambient-sky); }
.pt-ambient::after { width: 300px; height: 240px; bottom: -60px; left: -90px; background: var(--ambient-mint); }
.pt-glass { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-glass); -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.4); backdrop-filter: blur(var(--blur-glass)) saturate(1.4); }
.pt-display { font-size: 30px; line-height: 34px; font-weight: 600; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.pt-title { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.pt-headline { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.pt-body { font-size: 15px; line-height: 22px; margin: 0; color: var(--ink-muted); }
.pt-small { font-size: 13px; line-height: 18px; margin: 0; color: var(--ink-muted); }
.pt-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.pt-file { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-meta { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.pt-figure { font-family: var(--font-mono); font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pt-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; min-height: 52px; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-md); font: 600 16px/1 var(--font-sans); letter-spacing: -0.01em; cursor: pointer; text-decoration: none; }
.pt-btn-primary { background: var(--accent); color: var(--on-accent); }
.pt-btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pt-btn-text { background: none; color: var(--accent); min-height: 44px; }
.pt-btn-help { display: flex; align-items: center; gap: var(--space-1); justify-content: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0 0 var(--space-2); }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.pt-chip svg { width: 13px; height: 13px; flex: none; }
.pt-chip-accent { background: var(--accent-soft); color: var(--accent); }
.pt-chip-success { background: var(--success-soft); color: var(--success); }
.pt-chip-warning { background: var(--warning-soft); color: var(--warning); }
.pt-chip-neutral { background: var(--surface-sunken); color: var(--ink-muted); }
.pt-step { display: flex; align-items: center; gap: var(--space-3); }
.pt-step-pill { height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.pt-step-bars { display: flex; gap: 4px; flex: 1; }
.pt-step-bars i { flex: 1; height: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.pt-step-bars i.on { background: var(--accent); }
.pt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--space-3); }
.pt-card-hero { border: 2px solid var(--accent); }
.pt-card-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pt-card-row .pt-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-sunken); display: grid; place-items: center; flex: none; color: var(--ink-muted); }
.pt-card-row .grow { flex: 1; min-width: 0; }
.pt-chev { width: 18px; height: 18px; color: var(--ink-muted); flex: none; }
.pt-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pt-facts li { display: flex; align-items: center; gap: 6px; }
.pt-facts svg { width: 15px; height: 15px; color: var(--success); }
.pt-files { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pt-filerow { display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-4); border-top: 1px solid var(--line); }
.pt-filerow:first-child { border-top: 0; }
.pt-filerow .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-filerow.is-skipped .pt-file { color: var(--ink-muted); }
.pt-was { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-progress { border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.pt-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.pt-track { height: 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.pt-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.pt-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }
.pt-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pt-actionbar { border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: var(--space-4) var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); border-bottom: 0; }
.pt-banner { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--warning-soft); color: var(--ink); font-size: 13px; line-height: 18px; }
.pt-banner svg { width: 18px; height: 18px; color: var(--warning); flex: none; margin-top: 1px; }
.pt-banner.info { background: var(--accent-soft); }
.pt-banner.info svg { color: var(--accent); }
.pt-scrim { position: absolute; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(var(--blur-scrim)); backdrop-filter: blur(var(--blur-scrim)); display: grid; place-items: center; padding: var(--space-6); }
.pt-dialog { width: 100%; max-width: 340px; background: var(--surface); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5) var(--space-5); box-shadow: var(--shadow-dialog); display: flex; flex-direction: column; gap: var(--space-3); text-align: center; align-items: center; }
.pt-dialog-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); }
.pt-dialog-icon svg { width: 26px; height: 26px; }
.pt-dialog .pt-btns { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; margin-top: var(--space-2); }
.pt-dialog-icon.info { background: var(--accent-soft); color: var(--accent); }
.pt-dialog.left { text-align: left; align-items: stretch; max-width: 440px; }
.pt-dialog.left .pt-btns { flex-direction: row; justify-content: flex-end; }
.pt-desk { font-size: 14px; line-height: 20px; }
.pt-desk .pt-display { font-size: 26px; line-height: 32px; }
.pt-desk .pt-body { font-size: 14px; line-height: 20px; }
.pt-btn-sm { width: auto; min-height: 40px; padding: 0 var(--space-4); font-size: 14px; border-radius: 12px; }
.pt-btn svg { width: 18px; height: 18px; flex: none; }
.pt-side { width: 232px; flex: none; display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-3); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-left: 0; }
.pt-side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.pt-side .brand i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: block; }
.pt-nav { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.pt-nav svg { width: 18px; height: 18px; flex: none; }
.pt-nav.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.pt-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.pt-tr { display: grid; align-items: center; gap: var(--space-3); min-height: 48px; padding: 6px var(--space-4); border-top: 1px solid var(--line); }
.pt-tr > * { min-width: 0; }
.pt-th { min-height: 38px; border-top: 0; background: var(--surface-sunken); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.pt-tr.group { background: var(--ground); font-weight: 600; min-height: 40px; }
.pt-tr.is-dup { background: var(--warning-soft); }
.pt-path { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ink-disabled); background: var(--surface); display: grid; place-items: center; color: var(--on-accent); flex: none; }
.pt-cb.on, .pt-cb.mixed { background: var(--accent); border-color: var(--accent); }
.pt-cb svg { width: 13px; height: 13px; }
.pt-input { width: 100%; height: 34px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--accent); background: var(--surface); font: 500 13px/1 var(--font-mono); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.pt-toast { display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-4); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.pt-toast svg { width: 20px; height: 20px; color: var(--success); flex: none; }

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.dc-if { display: contents; }
.dc-if[hidden] { display: none; }
