:root { --ink: #111827; --ink-soft: #263241; --paper: #f7f3ea; --line: #d6cbbb; --evidence: #1f7a6b; --evidence-soft: #dfeee9; --reject: #b5472f; --reject-soft: #f4dfd8; --warn: #c58a19; --warn-soft: #f5ead1; --steel: #5b6472; --white: #fffdf8; --shadow: 0 18px 48px rgba(17, 24, 39, 0.16); } * { box-sizing: border-box; } html, body { min-height: 100%; } body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; } button, input { font: inherit; } button { cursor: pointer; } button:focus-visible, input:focus-visible, a:focus-visible, .tool-row:focus-visible { outline: 3px solid rgba(31, 122, 107, 0.34); outline-offset: 2px; } svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .trace-app { min-height: 100vh; display: flex; flex-direction: column; padding: 22px; gap: 14px; } .trace-header { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(340px, 560px); gap: 18px; align-items: end; padding: 18px 20px; background: var(--ink); color: var(--white); border-radius: 8px; box-shadow: var(--shadow); } .trace-back-link { display: inline-flex; align-items: center; gap: 8px; color: #cbd5e1; text-decoration: none; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; } .trace-header h1 { margin: 8px 0 0; font-size: clamp(28px, 4vw, 52px); line-height: 0.95; font-weight: 760; letter-spacing: 0; } .session-form { display: grid; gap: 8px; } .session-form label, .summary-cell span, .pane-heading p, .tool-meta, .state-line, .field-label { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; text-transform: uppercase; color: var(--steel); } .session-form label { color: #cbd5e1; } .session-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; } .session-picker { position: relative; min-width: 0; } .session-control input { width: 100%; min-width: 0; height: 42px; padding: 0 46px 0 12px; border: 1px solid #4b5563; border-radius: 6px; background: #0b1220; color: var(--white); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; } .session-picker-button { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; padding: 0; border: 1px solid #334155; border-radius: 5px; background: #111827; color: #cbd5e1; } .session-options { position: absolute; z-index: 20; top: 48px; left: 0; right: 0; max-height: 320px; overflow: auto; padding: 6px; border: 1px solid #4b5563; border-radius: 8px; background: #0b1220; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32); } .session-option { width: 100%; display: grid; gap: 4px; padding: 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--white); text-align: left; } .session-option:hover, .session-option.active { border-color: #2f8375; background: rgba(31, 122, 107, 0.18); } .session-option-title { font-size: 13px; font-weight: 720; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .session-option-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #94a3b8; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 11px; } .session-option-empty { padding: 12px; color: #94a3b8; font-size: 13px; } .session-control > button { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 6px; color: var(--white); background: var(--evidence); font-weight: 700; } .session-control > button:disabled { opacity: 0.62; cursor: wait; } .state-line { min-height: 34px; display: flex; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); } .state-line.error { color: var(--reject); border-color: #dfb2a5; background: var(--reject-soft); } .state-line.loading { color: var(--evidence); border-color: #a9d2c8; background: var(--evidence-soft); } .outcome-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); } .outcome-main { min-width: 0; padding: 20px; border-left: 7px solid var(--steel); } .outcome-panel.ok .outcome-main { border-left-color: var(--evidence); } .outcome-panel.warn .outcome-main { border-left-color: var(--warn); } .outcome-panel.bad .outcome-main { border-left-color: var(--reject); } .outcome-eyebrow { margin: 0 0 8px; color: var(--steel); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; text-transform: uppercase; } .outcome-main h2 { margin: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.08; letter-spacing: 0; } .outcome-main > p:not(.outcome-eyebrow) { margin: 10px 0 0; color: var(--steel); line-height: 1.5; } .outcome-answer { margin-top: 16px; padding: 14px 16px; max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #fffaf1; color: #172033; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; } .outcome-side { display: grid; grid-template-rows: auto 1fr; border-left: 1px solid var(--line); background: #fbf7ef; } .outcome-verdict { padding: 18px; border-bottom: 1px solid var(--line); } .outcome-verdict span, .outcome-insights h3 { color: var(--steel); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; text-transform: uppercase; } .outcome-verdict strong { display: block; margin-top: 6px; font-size: 30px; line-height: 1.05; } .outcome-verdict p { margin: 10px 0 0; color: var(--ink-soft); line-height: 1.5; } .outcome-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 0; } .outcome-insights > div { min-width: 0; padding: 16px 18px; } .outcome-insights > div + div { border-left: 1px solid var(--line); } .outcome-insights h3 { margin: 0 0 10px; } .outcome-insights ul { margin: 0; padding-left: 18px; } .outcome-insights li { margin-bottom: 8px; line-height: 1.45; overflow-wrap: anywhere; } .summary-strip { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); } .summary-cell { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--line); } .summary-cell:last-child { border-right: 0; } .summary-cell strong { display: block; margin-top: 5px; font-size: 21px; line-height: 1.1; overflow-wrap: anywhere; } .trace-grid { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(300px, 0.95fr) minmax(340px, 1.1fr); gap: 14px; } .trace-pane { min-height: 620px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; } .pane-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fbf7ef; } .pane-heading p, .pane-heading h2 { margin: 0; } .pane-heading h2 { margin-top: 3px; font-size: 18px; } .pane-count { min-width: 38px; min-height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: var(--white); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; } .trace-rail, .tool-ledger, .inspector-stack { overflow: auto; } .trace-rail { position: relative; padding: 18px 16px 24px 34px; } .trace-rail::before { content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 3px; background: var(--ink); } .step-entry { position: relative; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fffaf1; } .step-entry::before { content: attr(data-index); position: absolute; left: -30px; top: 12px; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 11px; font-weight: 800; } .step-entry.planner { border-left: 5px solid var(--warn); } .step-entry.executor { border-left: 5px solid var(--evidence); } .step-entry.verifier { border-left: 5px solid var(--reject); } .step-title, .tool-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; } .step-title h3, .tool-title h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; } .badge { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 11px; font-weight: 700; white-space: nowrap; } .badge.ok { color: #0b4f44; background: var(--evidence-soft); } .badge.warn { color: #754d00; background: var(--warn-soft); } .badge.bad { color: #7c2414; background: var(--reject-soft); } .meta-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; } .meta-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--steel); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 11px; } details { margin-top: 10px; } summary { color: var(--ink-soft); font-weight: 700; cursor: pointer; } pre, .answer-box { margin: 8px 0 0; padding: 10px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #fdf8ee; color: #172033; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; } .tool-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fffaf1; } .tool-filter { min-height: 30px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; } .tool-filter.active { border-color: var(--ink); background: var(--ink); color: var(--white); } .tool-ledger { padding: 12px 14px 18px; } .tool-row { width: 100%; display: block; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: inherit; text-align: left; } .tool-row:hover, .tool-row.selected { border-color: var(--evidence); background: #f5fbf8; } .tool-row.failed { border-color: #e1b4aa; } .tool-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; color: var(--steel); text-transform: none; } .inspector-stack { padding: 14px; } .inspector-section { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); } .inspector-section:last-child { margin-bottom: 0; border-bottom: 0; } .inspector-section h3 { margin: 0 0 10px; font-size: 15px; } .boundary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .boundary-item, .fact-row, .field-row { border: 1px solid var(--line); border-radius: 6px; background: #fffaf1; } .boundary-item { padding: 10px; } .boundary-item strong { display: block; margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 14px; overflow-wrap: anywhere; } .fact-row { padding: 10px; margin-bottom: 8px; } .fact-row p { margin: 0 0 8px; line-height: 1.45; } .field-grid { display: grid; gap: 8px; } .field-row { padding: 10px; } .field-label { display: block; margin-bottom: 5px; color: var(--steel); } .empty-panel { padding: 14px; border: 1px dashed var(--line); border-radius: 6px; color: var(--steel); background: #fffaf1; } @media (max-width: 1180px) { .outcome-panel { grid-template-columns: 1fr; } .outcome-side { border-left: 0; border-top: 1px solid var(--line); } .summary-strip { grid-template-columns: repeat(4, minmax(120px, 1fr)); } .summary-cell:nth-child(4) { border-right: 0; } .trace-grid { grid-template-columns: 1fr; } .trace-pane { min-height: 420px; } } @media (max-width: 760px) { .trace-app { padding: 12px; } .trace-header { grid-template-columns: 1fr; } .session-control { grid-template-columns: 1fr; } .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .outcome-insights { grid-template-columns: 1fr; } .outcome-insights > div + div { border-left: 0; border-top: 1px solid var(--line); } .summary-cell, .summary-cell:nth-child(4) { border-right: 1px solid var(--line); } .summary-cell:nth-child(2n) { border-right: 0; } .boundary-grid { grid-template-columns: 1fr; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }