/* Pristop OS demo: extra styles for the ingestion pages (all classes start with .ing-) */

/* ---------- Section navigation and page head ---------- */
.ing-nav { margin-bottom: 18px; }
.ing-nav a b.neg { color: var(--neg); }
.ing-head .head { margin-bottom: 16px; }
.ing-btn b { font-family: "JBMono", monospace; font-weight: 500; letter-spacing: 0; font-size: 11.5px; }
@keyframes ing-in { from { background: #dededa; } to { background: transparent; } }
.ing-new { animation: ing-in 1.1s ease-out; }

/* ---------- Overview: the overall progress block ---------- */
.ing-hero { background: var(--ink); color: var(--paper); padding: 16px 28px 20px; }
.ing-hl { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; min-height: 22px; }
.ing-hl > .label { color: #9a9a9a; }
.ing-hl .sp { flex: 1; }
.ing-hl .st { color: var(--paper); }
.ing-hl .st.run i { background: var(--paper); }
.ing-hl .st.warn { color: #f2b441; }
.ing-hl .st.warn i { background: #f2b441; }
.ing-hl .st.idle { color: #9a9a9a; }
.ing-hrun { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #bdbdbd; white-space: nowrap; }
.ing-hrun:hover { color: var(--paper); }
.ing-hm { display: grid; grid-template-columns: minmax(330px, 1.45fr) repeat(4, minmax(0, 1fr)); align-items: end; }
.ing-hp { font-weight: 300; font-size: 108px; line-height: 0.86; letter-spacing: -0.03em; white-space: nowrap; }
.ing-hp small { font-size: 42px; letter-spacing: 0; margin-left: 10px; }
.ing-hc { border-left: 1px solid #3a3a3a; padding: 2px 16px 0 22px; min-width: 0; }
.ing-hc .label { display: block; color: #9a9a9a; margin-bottom: 11px; }
.ing-hc b { display: block; font-weight: 300; font-size: 36px; line-height: 1; letter-spacing: -0.015em; white-space: nowrap; }
.ing-hc b em { font-style: normal; font-size: 15px; letter-spacing: 0; margin-left: 7px; color: #bdbdbd; }
.ing-hc small { display: block; font-size: 13.5px; color: #bdbdbd; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ing-hc small a { border-bottom: 1px solid #777; }
.ing-hc small a:hover { color: var(--paper); border-color: var(--paper); }
.ing-hc.bad b { color: #ff6f57; }
.ing-hbar { height: 12px; background: #2e2e2e; margin-top: 18px; overflow: hidden; }
.ing-hbar i { display: block; height: 100%; background: var(--paper); transition: width .6s linear; position: relative; overflow: hidden; }
.ing-hbar.live i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 16%; background: linear-gradient(90deg, transparent, rgba(0,0,0,.3), transparent); animation: sweep 1.9s linear infinite; }
.ing-hero.paused .ing-hbar i { background: #f2b441; }
.ing-hero.idle .ing-hbar i { background: #8a8a8a; }
.ing-hero.idle .ing-hp, .ing-hero.paused .ing-hp { color: #d8d8d8; }

/* ---------- Overview: the stage strip, seven columns in one frame ---------- */
.ing-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--ink); border-top: 0; }
.ing-stage { display: flex; flex-direction: column; min-width: 0; padding: 13px 16px 14px; border-left: 1px solid var(--rule); cursor: pointer; }
.ing-stage:first-child { border-left: 0; }
.ing-stage:hover { background: var(--wash); }
.ing-st { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ing-no { font-family: "JBMono", monospace; font-weight: 500; font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.ing-arrow { color: #b4b4b4; }
.ing-stage:hover .ing-arrow { color: var(--ink); }
.ing-stage > .st { margin-bottom: 9px; }
.ing-stage h3 { font-size: 18px; line-height: 1.15; min-height: 42px; }
.ing-note { font-size: 13.5px; line-height: 1.32; color: var(--soft); margin: 4px 0 9px; }
.ing-tool { margin-top: auto; padding: 7px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: "JBMono", monospace; font-size: 11.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ing-sb { padding-top: 11px; }
.ing-pc { display: flex; align-items: baseline; font-weight: 300; font-size: 36px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; margin-bottom: 9px; }
.ing-pc small { font-size: 16px; letter-spacing: 0; margin-left: 4px; }
.ing-pc em { font-style: normal; font-size: 12.5px; letter-spacing: 0; color: var(--mute); margin-left: auto; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; }
.ing-counts { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 9px; font-size: 13.5px; }
.ing-counts dt, .ing-counts dd { padding: 4px 0; border-bottom: 1px solid var(--rule); }
.ing-counts dt { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ing-counts dd { font-family: "JBMono", monospace; font-size: 12.5px; text-align: right; padding-left: 8px; white-space: nowrap; }
.ing-counts dd.neg { color: var(--neg); font-weight: 600; }
.ing-counts dd small { display: block; color: var(--mute); font-size: 11px; }
.ing-last { font-size: 12.5px; color: var(--mute); margin: 7px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ing-ok { height: 28px; display: flex; align-items: center; font-size: 12.5px; color: var(--mute); }
.ing-stage .btn.sm { padding: 0 6px; }
.ing-rbar { width: 130px; margin-top: 6px; }
.ing-feed > a { align-items: flex-start; gap: 14px; padding: 8px 0; }
.ing-feed .tm { color: var(--mute); font-size: 12px; padding-top: 2px; }
.ing-feed .it { display: block; font-size: 12.5px; }
.ing-feed small { font-size: 13px; }
.ing-feed a.error .it { color: var(--neg); }
.ing-feed a.warning .it { color: var(--warn); }

/* ---------- One run: stage timeline ---------- */
.ing-tr { display: grid; grid-template-columns: 40px 290px minmax(0, 1fr) 110px 150px 90px; gap: 0 20px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.ing-tr.hd { padding: 0 0 10px; border-bottom-color: var(--ink); color: var(--mute); }
.ing-tr[data-href] { cursor: pointer; }
.ing-tr[data-href]:hover { background: var(--wash); }
.ing-tr .ing-no { font-size: 15px; color: var(--mute); }
.ing-tr .nm { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ing-tr .nm b { font-weight: 600; font-size: 16px; }
.ing-tr .n { text-align: right; font-family: "JBMono", monospace; font-size: 13px; white-space: nowrap; }
.ing-tr .n small { display: block; color: var(--mute); font-size: 11.5px; }
.ing-tr.hd .n { font-family: inherit; font-size: 11.5px; }
.ing-axis { display: flex; justify-content: space-between; }
.ing-gantt { position: relative; height: 14px; background: var(--wash); overflow: hidden; }
.ing-gantt i { position: absolute; top: 0; bottom: 0; background: var(--ink); transition: width .4s linear, left .4s linear; overflow: hidden; }
.ing-gantt i.running::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: sweep 1.7s linear infinite; }
.ing-gantt i.done_errors { border-right: 5px solid var(--neg); }
.ing-gantt i.failed { background: var(--neg); }
.ing-gantt i.paused { background: var(--warn); }
.ing-gantt i.cancelled { background: var(--mute); }
.ing-er { grid-template-columns: 240px minmax(0, 1fr) 56px; cursor: pointer; padding-left: 0; }
.ing-er:hover, .ing-er.on { background: var(--wash); }
.ing-er.on .clip { font-weight: 600; }
.ing-pos { display: flex; align-items: center; gap: 10px; color: var(--pos); padding: 6px 0; }

/* ---------- Per-stage tracking ---------- */
.ing-pn { display: inline-flex; gap: 6px; margin-left: 6px; }
.ing-pn a { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 6px; border: 1px solid var(--rule); font-family: "JBMono", monospace; font-size: 11.5px; }
.ing-pn a:hover { border-color: var(--ink); }
.ing-sgrid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.ing-side { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.ing-side .ing-er { grid-template-columns: 140px minmax(0, 1fr) 26px; }
.ing-side .kv { grid-template-columns: 104px minmax(0, 1fr); font-size: 14px; }
.ing-about { font-size: 15px; line-height: 1.38; color: var(--soft); margin-bottom: 12px; }
.ing-tier { margin-bottom: 14px; }
.ing-split { display: flex; height: 12px; }
.ing-split i { background: var(--ink); }
.ing-split i.b { background: #c9c9c6; }
.ing-counts dt .sq { display: inline-block; width: 9px; height: 9px; background: var(--ink); margin-right: 8px; }
.ing-counts dt .sq.b { background: #c9c9c6; }
.ing-items td { padding-top: 9px; padding-bottom: 9px; }
.ing-items td, .ing-items th { padding-right: 12px; }
.ing-items td:first-child { width: 25%; max-width: 0; }
.ing-items td:first-child small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ing-file { font-size: 13px; white-space: nowrap; }
.ing-items .ing-file { display: block; overflow: hidden; text-overflow: ellipsis; }
.ing-rp { display: flex; align-items: center; gap: 8px; margin-top: 5px; line-height: 1; }
.ing-rp .bar { width: 76px; }
.ing-rp .mono { font-size: 11.5px; color: var(--soft); white-space: nowrap; }
.ing-flash td { animation: ing-in 1.8s ease-out; }
.ing-items td.acts .btn.sm:not(:has(span)), .ing-failed .btn.sm:not(:has(span)) { width: 28px; padding: 0; }
.ing-none { display: flex; align-items: center; gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.ing-none > div { flex: 1; }
.ing-none b { font-weight: 600; font-size: 18px; }
.ing-none p { color: var(--soft); font-size: 15px; }
.ing-none.pos svg, .ing-none.pos b { color: var(--pos); }
.ing-path { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ing-path span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--mute); }
.ing-path span i { width: 8px; height: 8px; border: 1px solid var(--mute); }
.ing-path .ok { color: var(--ink); }
.ing-path .ok i { background: var(--ink); border-color: var(--ink); }
.ing-path .now { color: var(--ink); font-weight: 600; }
.ing-path .now i { background: var(--ink); border-color: var(--ink); animation: pulse 1.1s ease-in-out infinite; }
.ing-path .bad { color: var(--neg); font-weight: 600; }
.ing-path .bad i { background: var(--neg); border-color: var(--neg); }

/* ---------- Run for one source (dialog) ---------- */
.ing-srcs { border-top: 1px solid var(--ink); }
.ing-src { display: flex; width: 100%; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.ing-src b { display: block; font-weight: 600; font-size: 15px; }
.ing-src small { display: block; color: var(--mute); font-size: 11.5px; }
.ing-src > .mono { width: 90px; text-align: right; }
.ing-src > .st { width: 150px; }
.ing-src:hover { background: var(--wash); }
.ing-src.off { opacity: .45; cursor: default; }
.ing-src.off:hover { background: none; }

/* ---------- Failed items ---------- */
.ing-bulk { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 8px 8px 16px; border: 1px solid var(--rule); background: var(--paper); margin-bottom: 16px; font-size: 15px; }
.ing-bulk.on { border-color: var(--ink); }
.ing-bulk .sp { flex: 1; }
.ing-failed td { padding-top: 8px; padding-bottom: 8px; }
.ing-failed tr.sel td { background: var(--wash); }
.ing-failed .acts { display: inline-flex; gap: 6px; }
.ing-failed .check { display: flex; }
.ing-good { border-top: 1px solid var(--ink); padding: 56px 0 40px; display: flex; align-items: flex-start; gap: 36px; }
.ing-tick { width: 104px; height: 104px; background: var(--pos); color: var(--paper); display: flex; align-items: center; justify-content: center; flex: none; }
.ing-good h2 { font-size: 64px; line-height: .95; }
.ing-good p { font-weight: 300; font-size: 22px; line-height: 1.3; max-width: 780px; color: var(--soft); margin-top: 12px; }

/* ---------- Logs ---------- */
.ing-tail { display: flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--ink); }
.ing-tail .toggle { font-weight: 600; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.ing-lcells { margin-bottom: 20px; }
.ing-lcells .stat p { display: flex; align-items: center; gap: 8px; }
.ing-lf .searchbox { flex: 1 1 260px; max-width: 400px; }
.ing-log { border-top: 1px solid var(--ink); font-family: "JBMono", monospace; font-size: 12.5px; }
.ing-lr { display: grid; grid-template-columns: 14px 124px 84px 200px 54px minmax(120px, 300px) minmax(0, 1fr); gap: 0 14px; align-items: center; padding: 7px 0; cursor: pointer; }
.ing-lr.hd { cursor: default; font-family: "Jost", sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mute); padding: 10px 0; border-bottom: 1px solid var(--ink); }
.ing-ln { border-bottom: 1px solid var(--rule); position: relative; }
.ing-ln:hover > .ing-lr, .ing-ln.open > .ing-lr { background: var(--wash); }
.ing-ln.target::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 3px; background: var(--ink); }
.ing-lr .car { color: var(--mute); }
.ing-lr .tm, .ing-lr .rn { color: var(--soft); white-space: nowrap; }
.ing-lr .lv { font-weight: 600; }
.ing-ln.error .lv, .ing-ln.error .ms { color: var(--neg); }
.ing-ln.warning .lv { color: var(--warn); }
.ing-lr .sg { font-family: "Jost", sans-serif; font-size: 14px; }
.ing-ld { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 40px; padding: 16px 0 24px 28px; border-top: 1px solid var(--rule); font-family: "Jost", sans-serif; font-size: 15px; }
.ing-ld .kv { grid-template-columns: 110px minmax(0, 1fr); font-size: 14.5px; }
.ing-ld .kv > * { padding: 6px 0; }
.ing-ld .kv > dt { padding-top: 9px; }
.ing-lda { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ing-io { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ing-io .label { display: block; margin-bottom: 6px; }
.ing-io2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ing-io pre.code { font-size: 12px; padding: 12px 14px; }
.ing-msg { font-size: 18px; line-height: 1.3; }
.ing-msg.error { color: var(--neg); }
.ing-msg small { display: block; font-size: 14px; color: var(--soft); margin-top: 3px; }
.ing-lvl { font-family: "JBMono", monospace; font-weight: 600; font-size: 12.5px; }
.ing-lvl.error { color: var(--neg); }
.ing-lvl.warning { color: var(--warn); }
.ing-more { display: block; width: 100%; height: 34px; background: var(--ink); color: var(--paper); font-family: "Jost", sans-serif; font-weight: 600; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; }
.ing-more:hover { background: #2b2b2b; }

@media (max-width: 1500px) {
  .ing-head h1 { font-size: 56px; }
  .ing-head .btn { padding: 0 12px; }
  .ing-hero { padding: 16px 20px 20px; }
  .ing-hm { grid-template-columns: minmax(280px, 1.2fr) repeat(4, minmax(0, 1fr)); }
  .ing-hp { font-size: 88px; }
  .ing-hc { padding-left: 16px; }
  .ing-hc b { font-size: 30px; }
  .ing-stage { padding: 14px 12px 14px; }
  .ing-stage .st { font-size: 10.5px; letter-spacing: 0.08em; }
  .ing-stage h3 { font-size: 17px; min-height: 40px; }
  .ing-tool { white-space: normal; min-height: 45px; display: flex; align-items: center; }
  .ing-stage .btn.sm { font-size: 10px; letter-spacing: 0.08em; gap: 4px; }
  .ing-sgrid { grid-template-columns: minmax(0, 1fr); }
  .ing-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .ing-tr { grid-template-columns: 36px 230px minmax(0, 1fr) 100px 140px 84px; gap: 0 16px; }
  .ing-ld { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; }
  .ing-lr { grid-template-columns: 14px 124px 84px 170px 54px minmax(120px, 240px) minmax(0, 1fr); }
}
