[x-cloak] { display: none !important; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
pre { tab-size: 4; }
button:disabled, a[disabled] { opacity: 0.45; cursor: not-allowed; }
.drop-shadow-1 { filter: drop-shadow(0px 1px 0px #E2E8F0); }
input[type="checkbox"], input[type="radio"] { accent-color: #3C50E0; }

/* Grids (public/js/grid.js): sortable headers and a filter box under every column. */
th.grid-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.grid-sortable:hover, th.grid-sorted { color: #3C50E0; }
th.grid-sortable:focus-visible { outline: 2px solid #3C50E0; outline-offset: -2px; }
.grid-arrow { margin-left: 0.35rem; font-size: 0.7rem; opacity: 0.35; }
th.grid-sorted .grid-arrow { opacity: 1; }
tr.grid-filters th { padding: 0.25rem 0.5rem 0.5rem; font-weight: 400; text-align: left; }
input.grid-filter { width: 100%; min-width: 4.5rem; border: 1px solid #E2E8F0; border-radius: 0.25rem; background: #fff; padding: 0.2rem 0.45rem; font-size: 0.75rem; line-height: 1.2rem; color: inherit; text-transform: none; outline: none; }
input.grid-filter:focus { border-color: #3C50E0; }
input.grid-filter:not(:placeholder-shown) { border-color: #3C50E0; background: #EFF4FB; }
.dark input.grid-filter { border-color: #3d4d60; background: #1d2a39; }
.dark input.grid-filter:not(:placeholder-shown) { border-color: #3C50E0; background: #24303F; }
.grid-status { padding: 0.5rem 1rem; font-size: 0.75rem; border-top: 1px solid #E2E8F0; }
.dark .grid-status { border-color: #2E3A47; }
.grid-clear { color: #3C50E0; text-decoration: underline; }

/* Web terminal (views/terminal/session.ejs, public/js/terminal.js): fills the page below the header bar. */
.terminal-host { height: calc(100vh - 235px); min-height: 360px; padding: 8px; border-radius: 4px; background: #1C2434; }
.terminal-host .xterm { height: 100%; }
.terminal-host .xterm-viewport { border-radius: 4px; }

/* Claude copilot (views/copilot/session.ejs, public/js/copilot.js): Claude top left, the person's terminal bottom left,
   the plan panel right; the splitters move with the mouse. Below 1024 px the panes become tabs. */
.cp-grid { --cp-left: 56%; --cp-top: 55%; display: grid; grid-template-columns: minmax(0, var(--cp-left)) 8px minmax(0, 1fr); height: calc(100vh - 170px); min-height: 520px; }
.cp-left { display: grid; grid-template-rows: minmax(0, var(--cp-top)) 8px minmax(0, 1fr); min-height: 0; min-width: 0; }
.cp-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.cp-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.25rem; font-size: 0.75rem; }
.cp-term { position: relative; flex: 1; min-height: 0; padding: 6px; border-radius: 4px; background: #1C2434; }
.cp-term .xterm { height: 100%; }
.cp-term.cp-attention { box-shadow: 0 0 0 2px #3C50E0; }
.cp-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 1rem; background: rgba(28, 36, 52, 0.92); color: #DEE4EE; text-align: center; border-radius: 4px; z-index: 5; }
.cp-split { background: transparent; position: relative; touch-action: none; }
.cp-split::after { content: ""; position: absolute; background: #CBD5E1; border-radius: 2px; }
.dark .cp-split::after { background: #3d4d60; }
.cp-split-v { cursor: col-resize; } .cp-split-v::after { top: 45%; bottom: 45%; left: 3px; width: 2px; }
.cp-split-h { cursor: row-resize; } .cp-split-h::after { left: 45%; right: 45%; top: 3px; height: 2px; }
.cp-split:hover::after, .cp-split.cp-dragging::after { background: #3C50E0; }
.cp-plan { overflow-y: auto; min-height: 0; flex: 1; }
.cp-step { border: 1px solid #E2E8F0; border-left-width: 4px; border-radius: 4px; background: #fff; }
.dark .cp-step { border-color: #2E3A47; background: #24303F; }
.cp-step.cp-current { border-left-color: #3C50E0; box-shadow: 0 1px 6px rgba(60, 80, 224, 0.18); }
.cp-step.cp-done { border-left-color: #219653; }
.cp-step.cp-failed { border-left-color: #D34053; }
.cp-step.cp-skipped { opacity: 0.6; }
.cp-step.cp-fatal { border-left-color: #D34053; background: #FEF2F2; }
.dark .cp-step.cp-fatal { background: #3a2530; }
.cp-step.cp-dangerous { border-left-color: #FFA70B; }
.cp-step pre.cp-cmd { margin: 0; padding: 0.6rem 0.75rem; border-radius: 4px; background: #1C2434; color: #DEE4EE; font-family: "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-size: 0.78rem; white-space: pre-wrap; word-break: break-word; }
.cp-step textarea.cp-result { width: 100%; min-height: 9rem; font-family: "JetBrains Mono", Menlo, Consolas, monospace; font-size: 0.75rem; }
.cp-tabs { display: none; }
@media (max-width: 1023px) {
  .cp-grid { display: block; height: auto; min-height: 0; }
  .cp-left { display: block; }
  .cp-split { display: none; }
  .cp-tabs { display: flex; }
  .cp-pane { height: calc(100vh - 200px); min-height: 380px; }
  .cp-hide-sm { display: none !important; }
}
/* Which pane has the keyboard: each pane has its colour (Claude blue, your terminal green, the plan amber); the pane with
   the focus gets a full border and a glow in it, the pane under the mouse a faint one, the rest none. */
.cp-pane { --cp-c: #3C50E0; border: 2px solid transparent; border-radius: 6px; padding: 0 3px 3px; transition: border-color 0.15s, box-shadow 0.15s; }
.cp-pane[data-cp-pane="terminal"] { --cp-c: #10B981; }
.cp-pane[data-cp-pane="plan"] { --cp-c: #F59E0B; }
.cp-pane:hover { border-color: color-mix(in srgb, var(--cp-c) 35%, transparent); }
.cp-pane.cp-active { border-color: var(--cp-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cp-c) 22%, transparent); }
.cp-pane .cp-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 9999px; background: var(--cp-c); opacity: 0.35; vertical-align: middle; }
.cp-pane.cp-active .cp-dot { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cp-c) 30%, transparent); }
.cp-pane.cp-active .cp-pane-head strong { color: var(--cp-c); }
.cp-pane .cp-typing { display: none; margin-left: 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cp-c); }
.cp-pane.cp-active .cp-typing { display: inline; }
/* The job is complete: the plan pane turns green and the Completed box (with Create report) sits at its top. */
.cp-pane.cp-complete { --cp-c: #219653; border-color: #219653; }
.cp-pane.cp-complete .cp-plan { background: #F0FAF4; border-color: #86EFAC; }
.dark .cp-pane.cp-complete .cp-plan { background: #16302A; border-color: #1f6f46; }
.cp-done-box { margin-bottom: 0.75rem; border: 2px solid #219653; border-radius: 6px; background: #E9F9EF; padding: 1rem; }
.dark .cp-done-box { background: #173d2c; }
.cp-done-box.cp-with-failures { border-color: #FFA70B; background: #FFF7E6; }
.dark .cp-done-box.cp-with-failures { background: #3d3217; }

/* Reports (views/copilot/report.ejs, lib/report-render.js): the same blocks as the HTML files and the PDF. */
.rp { font-size: 0.9rem; line-height: 1.6; color: #1c2434; }
.dark .rp { color: #dee4ee; }
.rp h2 { font-size: 1.3rem; font-weight: 600; margin: 0.3rem 0 0.8rem; } .rp h3 { font-size: 1.1rem; font-weight: 600; margin: 1.4rem 0 0.5rem; }
.rp h4 { font-size: 1rem; font-weight: 600; margin: 1.1rem 0 0.4rem; } .rp h5 { font-size: 0.92rem; font-weight: 600; margin: 0.9rem 0 0.3rem; }
.rp h2, .rp h3, .rp h4, .rp h5 { color: #1c2434; } .dark .rp h2, .dark .rp h3, .dark .rp h4, .dark .rp h5 { color: #fff; }
.rp p { margin: 0.35rem 0; } .rp ul { list-style: disc; margin: 0.35rem 0 0.35rem 1.4rem; } .rp ol { list-style: decimal; margin: 0.35rem 0 0.35rem 1.4rem; } .rp li { margin: 0.2rem 0; }
.rp code { font-family: "JetBrains Mono", Consolas, monospace; font-size: 0.78rem; background: #eef2f7; padding: 1px 4px; border-radius: 3px; }
.dark .rp code { background: #313d4a; }
.rp pre { margin: 0.4rem 0 0.8rem; background: #1c2434; color: #dee4ee; padding: 0.6rem 0.8rem; border-radius: 4px; white-space: pre-wrap; word-break: break-word; }
.dark .rp pre { background: #111827; }
.rp pre code { background: none; padding: 0; color: inherit; font-size: 0.75rem; }
.rp hr { border: 0; border-top: 1px solid #e2e8f0; margin: 1rem 0; } .dark .rp hr { border-color: #2e3a47; }
