/* CognixStack website — interactive tools (readiness check, planner, job engine) */

.privacy { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px; border-radius: 999px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); color: #a7f3d0; font-size: .9rem; font-weight: 600; }
.privacy svg { width: 18px; height: 18px; }

.howto { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: h; }
.howto li { counter-increment: h; display: flex; gap: 14px; color: var(--text-2); }
.howto li::before { content: counter(h); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.howto b { color: var(--text); }

.drop { position: relative; border-radius: 22px; padding: 40px 28px; text-align: center; border: 2px dashed rgba(79, 124, 255, .45); background: radial-gradient(80% 100% at 50% 0%, rgba(79, 124, 255, .08), transparent 70%), var(--surface); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.drop.over { border-color: var(--accent); background: radial-gradient(80% 100% at 50% 0%, rgba(79, 124, 255, .18), transparent 70%), var(--surface); transform: scale(1.01); }
.drop .big-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--glow); }
.drop .big-ic svg { width: 30px; height: 30px; }
.drop h3 { font-size: 1.25rem; }
.drop p { color: var(--text-3); margin-top: 6px; font-size: .95rem; }
.drop .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .status { margin-top: 16px; font-size: .92rem; min-height: 1.4em; color: var(--text-2); }
.drop .status.err { color: #dc2626; }

.results { margin-top: 56px; }
.results[hidden] { display: none; }
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.res-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.res-head .src { color: var(--text-3); font-size: .9rem; margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { border-radius: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--border); }
.tile strong { display: block; font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tile span { display: block; color: var(--text-3); font-size: .85rem; margin-top: 4px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.res-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-top: 20px; }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; } }
.panel { border-radius: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--border); }
.panel h3 { font-size: 1.05rem; margin-bottom: 14px; }
.os-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .92rem; margin-bottom: 12px; }
.os-row .bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.os-row .bar > i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.os-row b { color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-row span { color: var(--text-3); }
.waves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .waves { grid-template-columns: 1fr; } }
.wave { border-radius: 14px; padding: 16px; background: var(--bg-soft); border: 1px solid var(--border); }
.wave .wn { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.wave h4 { margin: 4px 0 2px; font-size: 1rem; }
.wave .cnt { font-size: 1.4rem; font-weight: 700; }
.wave p { color: var(--text-3); font-size: .85rem; line-height: 1.45; margin-top: 4px; }
.wave .ex { margin-top: 8px; font-family: ui-monospace, Menlo, monospace; font-size: .75rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.flags li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--text-2); }
.flags li b { color: var(--text); }
.flags .fi { flex: none; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.flags .fi svg { width: 15px; height: 15px; }
.res-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Planner */
.planner { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .planner { grid-template-columns: 1fr; } }
.planner form { display: grid; gap: 16px; }
.plan-out { min-height: 300px; }
.plan-sum { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.plan-sum > div { flex: 1 1 150px; border-radius: 14px; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--border); }
.plan-sum b { display: block; font-size: 1.25rem; }
.plan-sum span { color: var(--text-3); font-size: .82rem; }
.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; font-size: .95rem; }
.verdict.ok { background: rgba(52, 211, 153, .12); color: #047857; }
.verdict.tight { background: var(--warn-soft); color: var(--warn); }
.verdict.late { background: rgba(220, 38, 38, .1); color: #b91c1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict.ok { color: #6ee7b7; } :root:not([data-theme="light"]) .verdict.late { color: #fca5a5; } }
.gantt { display: grid; gap: 10px; }
.g-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; font-size: .88rem; }
.g-row .g-lbl b { display: block; font-size: .92rem; }
.g-row .g-lbl span { color: var(--text-3); font-size: .78rem; }
.g-track { position: relative; height: 30px; border-radius: 8px; background: var(--bg-soft); }
.g-bar { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; background: var(--grad); box-shadow: var(--glow); color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.g-bar.alt { background: linear-gradient(135deg, #0f1b3d, #305ede); }
.g-deadline { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #dc2626; }
.g-scale { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: .75rem; color: var(--text-3); }
.g-scale > div:last-child { display: flex; justify-content: space-between; }
@media (max-width: 560px) { .g-row, .g-scale { grid-template-columns: 96px 1fr; } }
.plan-note { margin-top: 18px; font-size: .85rem; color: var(--text-3); }

/* Job engine */
.je { display: grid; grid-template-columns: 1fr; gap: 20px; }
.je-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.je-controls .lbl-s { color: var(--ink-muted); font-size: .9rem; margin-right: 6px; }
.je-btn { font: inherit; font-weight: 600; font-size: .92rem; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); color: #e6ecf6; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s ease, border-color .2s ease; }
.je-btn:hover { background: rgba(96, 165, 250, .14); border-color: rgba(96, 165, 250, .5); }
.je-btn:disabled { opacity: .45; cursor: not-allowed; }
.je-btn.danger { border-color: rgba(248, 113, 113, .4); }
.je-btn svg { width: 16px; height: 16px; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; position: relative; }
.pipe li { position: relative; padding: 16px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: #8f9ab0; font-size: .82rem; transition: all .35s var(--ease, ease); }
.pipe li b { display: block; color: #cbd5e1; font-size: .9rem; margin: 6px 0 2px; }
.pipe li .pn { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .08); color: #cbd5e1; }
.pipe li.active { border-color: #60a5fa; background: rgba(96, 165, 250, .12); box-shadow: 0 0 0 4px rgba(96, 165, 250, .12), 0 0 30px rgba(79, 124, 255, .35); color: #dbe2ee; }
.pipe li.active .pn { background: var(--grad); color: #fff; }
.pipe li.done { border-color: rgba(52, 211, 153, .45); color: #b8c4d8; }
.pipe li.done .pn { background: #10b981; color: #fff; }
.pipe li.skip { opacity: .4; }
.pipe li.fail { border-color: rgba(248, 113, 113, .6); background: rgba(248, 113, 113, .1); }
.pipe li.fail .pn { background: #ef4444; color: #fff; }
@media (max-width: 1000px) { .pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.je-wait { display: none; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; font-size: .92rem; }
.je-wait.show { display: flex; }
.je-wait .je-btn { min-height: 38px; padding: 8px 14px; }
.je-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .je-panels { grid-template-columns: 1fr; } }
.je-log, .je-audit { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; min-height: 200px; max-height: 260px; overflow-y: auto; }
.je-log div, .je-audit div { padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); color: #b8c4d8; }
.je-log .t, .je-audit .t { color: #64748b; margin-right: 8px; }
.je-log .ok { color: #6ee7b7; } .je-log .warn { color: #fcd34d; } .je-log .bad { color: #fca5a5; } .je-log .info { color: #93c5fd; }
.je-empty { color: #64748b; font-family: "DM Sans", sans-serif; }

@media print {
  .site-header, .site-footer, .cta-band, #readiness, .hero, .planner form, .res-actions, .plan-actions, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  section.block { padding: 0; }
  .g-bar { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.res-grid > *, .waves > *, .planner > * { min-width: 0; }
.g-bar { min-width: 34px; justify-content: center; }
.plan-sum b { font-size: 1.12rem; }

/* Console mock for the change-control demo */
.cx { border-radius: 16px; overflow: hidden; border: 1px solid #232a3a; background: #0b0f17; color: #c9d2e0; font-size: .82rem; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); position: relative; text-align: left; }
.cx-top { display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: #0e131d; border-bottom: 1px solid #1c2331; }
.cx-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; font-size: .9rem; }
.cx-brand img { width: 18px; height: 18px; }
.cx-crumb { color: #7d889c; border-left: 1px solid #263044; padding-left: 12px; }
.cx-search { flex: 1; max-width: 340px; margin: 0 auto; padding: 6px 10px; border-radius: 7px; background: #121826; border: 1px solid #222b3c; color: #8f9ab0; font-size: .78rem; }
.cx-conn { display: flex; align-items: center; gap: 6px; color: #9aa6bb; font-size: .78rem; }
.cx-body { display: grid; grid-template-columns: 200px 1fr; min-height: 300px; }
.cx-tree { border-right: 1px solid #1c2331; padding: 10px 6px; background: #0d121b; }
.cx-tree div { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .3s ease; }
.cx-tree .l1 { padding-left: 22px; } .cx-tree .l2 { padding-left: 38px; }
.cx-tree .sel { background: rgba(48, 94, 222, .18); color: #9ec0ff; }
.cx-tree .flash { background: rgba(52, 211, 153, .16); }
.cx-tree svg { width: 13px; height: 13px; flex: none; color: #7d889c; }
.cx-tree .st { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none; }
.cx-tree .st.off { background: #64748b; } .cx-tree .st.busy { background: #f59e0b; }
.cx-main { padding: 12px 16px; min-width: 0; }
.cx-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-head b { color: #fff; font-size: .95rem; }
.cx-ok { color: #4ade80; font-size: .78rem; display: inline-flex; align-items: center; gap: 5px; }
.cx-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.cx-tabs { display: flex; gap: 16px; border-bottom: 1px solid #1c2331; margin: 10px 0 12px; overflow-x: auto; }
.cx-tabs span { padding: 7px 0; color: #7d889c; white-space: nowrap; }
.cx-tabs span.on { color: #fff; border-bottom: 2px solid #4f7cff; }
.cx-tbl { width: 100%; border-collapse: collapse; min-width: 0; font-size: .8rem; }
.cx-tbl th { text-align: left; font-weight: 600; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #8f9ab0; padding: 7px 8px; border-bottom: 1px solid #1c2331; background: transparent; }
.cx-tbl td { padding: 8px; border-bottom: 1px solid #161d2a; color: #c9d2e0; vertical-align: middle; }
.cx-tbl tbody tr { transition: background .3s ease, opacity .4s ease; }
.cx-tbl tbody tr:hover { background: rgba(255, 255, 255, .02); }
.cx-tbl tr.busy { background: rgba(245, 158, 11, .06); }
.cx-tbl tr.gone { opacity: 0; }
.cx-tbl tr.flash { background: rgba(52, 211, 153, .08); }
.cx-state { display: inline-flex; align-items: center; gap: 6px; }
.cx-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.cx-state.off::before { background: #64748b; } .cx-state.busy::before { background: #f59e0b; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.cx-act { font: inherit; font-size: .76rem; font-weight: 600; padding: 6px 10px; min-height: 32px; border-radius: 7px; border: 1px solid #2a3550; background: #141b2a; color: #dbe4f3; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cx-act:hover:not(:disabled) { border-color: #4f7cff; background: #1a2540; }
.cx-act.danger { border-color: rgba(248, 113, 113, .45); color: #fecaca; }
.cx-act:disabled { opacity: .4; cursor: not-allowed; }
.cx-act svg { width: 13px; height: 13px; }
.cx-hint { margin-top: 10px; color: #7d889c; font-size: .76rem; display: flex; align-items: center; gap: 6px; }
.cx-bottom { border-top: 1px solid #1c2331; background: #0d121b; }
.cx-btabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid #1c2331; }
.cx-btabs button { font: inherit; font-size: .8rem; background: none; border: 0; color: #7d889c; padding: 9px 10px; cursor: pointer; border-bottom: 2px solid transparent; min-height: 38px; }
.cx-btabs button.on { color: #fff; border-bottom-color: #4f7cff; }
.cx-btabs .badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #1e2a44; color: #9ec0ff; font-size: .7rem; text-align: center; }
.cx-pane { padding: 4px 12px 10px; max-height: 210px; overflow: auto; }
.cx-pane[hidden] { display: none; }
.cx-empty { color: #5f6b82; padding: 14px 8px; }
.cx-prog { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.cx-prog small { color: #8f9ab0; white-space: nowrap; font-size: .72rem; }
.cx-bar { flex: 1; height: 6px; border-radius: 4px; background: #1c2433; overflow: hidden; min-width: 60px; }
.cx-bar i { display: block; height: 100%; width: 0; background: #22c55e; transition: width .5s ease; }
.cx-bar.run i { background: linear-gradient(90deg, #305ede, #60a5fa); }
.cx-bar.fail i { background: #ef4444; }
.cx-s { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cx-s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #64748b; }
.cx-s.ok::before { background: #22c55e; } .cx-s.run::before { background: #60a5fa; animation: blink 1s infinite; }
.cx-s.wait::before { background: #f59e0b; animation: blink 1s infinite; } .cx-s.bad::before { background: #ef4444; }
.cx-mono { font-family: ui-monospace, Menlo, monospace; color: #8fb4ff; font-size: .76rem; }
.cx-modal { position: absolute; inset: 0; background: rgba(5, 8, 14, .65); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 5; }
.cx-modal.show { display: flex; }
.cx-dialog { width: min(420px, 100%); border-radius: 14px; background: #111827; border: 1px solid #2a3550; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); padding: 20px; }
.cx-dialog h4 { margin: 0 0 4px; color: #fff; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.cx-dialog h4 svg { width: 18px; height: 18px; color: #fbbf24; }
.cx-dialog p { color: #9aa6bb; font-size: .82rem; margin: 0 0 14px; }
.cx-dialog dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0 0 16px; font-size: .82rem; }
.cx-dialog dt { color: #7d889c; } .cx-dialog dd { margin: 0; color: #e6ecf6; }
.cx-dialog .row { display: flex; gap: 10px; justify-content: flex-end; }
.cx-dialog .cx-act { min-height: 38px; padding: 8px 16px; font-size: .85rem; }
.cx-dialog .cx-act.primary { background: #305ede; border-color: #305ede; color: #fff; }
.cx-reset { margin-left: auto; }
@media (max-width: 760px) { .cx-body { grid-template-columns: 1fr; } .cx-tree { display: none; } .cx-search, .cx-conn { display: none; } .cx-hide-sm { display: none; } }
.cx-tbl td, .cx-tbl th { white-space: nowrap; }
:root[data-theme="dark"] .verdict.ok { color: #6ee7b7; }
:root[data-theme="dark"] .verdict.late { color: #fca5a5; }
