:root { --bg: #ffffff; --paper: #ffffff; --panel: #ffffff; --ink: #1f2937; --muted: #6b7280; --line: #e5e7eb; --accent: #f97316; --accent-strong: #ea580c; --accent-soft: #fff7ed; --accent-line: rgba(249, 115, 22, 0.16); --grid-line: rgba(31, 41, 55, 0.02); --code-bg: #f3f4f6; --radius: 12px; --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --mono: "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, ui-monospace, monospace; } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; } html { scroll-behavior: smooth; scrollbar-gutter: stable; } body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 13px; line-height: 1.65; -webkit-font-smoothing: antialiased; } #app { display: flex; min-height: 100vh; } body[data-view="trace"] #sidebar-foot, body[data-view="workspace"] #sidebar-foot { display: none; } /* ---- sidebar (composition-book cover) ---- */ #sidebar { width: 280px; flex: 0 0 280px; background: #17181c; color: #e7e7ea; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px; display: flex; flex-direction: column; } #book-head { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 12px; border-radius: 10px; cursor: pointer; transition: background 0.12s; } #book-head:hover { background: rgba(255, 255, 255, 0.05); } #book-wordmark { width: 154px; height: auto; object-fit: contain; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } #tree { flex: 1; padding-top: 8px; } #tree .tree-label { padding: 6px 10px 8px; color: #777a83; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; } #tree a { display: block; padding: 6px 10px; border-radius: 8px; color: #c3c4cb; text-decoration: none; font-size: 14px; transition: background 0.12s, color 0.12s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #tree a:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; } #tree a.active { background: rgba(249, 115, 22, 0.16); color: #fdba74; font-weight: 600; } #tree a .tree-mark { color: #6b6d76; } #tree a:hover .tree-mark, #tree a.active .tree-mark { color: inherit; opacity: 0.6; } #tree .depth-1 { padding-left: 22px; } #tree .depth-2 { padding-left: 34px; } #tree .depth-3 { padding-left: 46px; } /* ---- content ---- */ #content { flex: 1; min-width: 0; padding: 24px 40px 120px; background-color: var(--paper); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 26px 26px; background-position: center top; } #logbook-header { width: 100%; max-width: 1080px; margin: 0 auto 20px; } #logbook-title { font-family: var(--serif); font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; overflow-wrap: anywhere; } #logbook-cli { display: grid; gap: 7px; } #page { width: 100%; min-width: 0; max-width: 1080px; margin: 0 auto; } .page-section { scroll-margin-top: 40px; padding: 0 0 35px; margin: 0 0 32px; } .page-section:last-child { margin-bottom: 0; } .page-layout { display: block; } .page-body { min-width: 0; } .resource-anchor { display: block; height: 0; overflow: hidden; } /* ---- pinned notes ---- */ .pinned-notes { margin: 30px 0 32px; } .pinned-notes-list .cell { margin: 0; } .pinned-notes-list .cell-title { display: flex; align-items: center; gap: 7px; } .pin-ico { flex: 0 0 auto; width: 14px; height: 14px; fill: var(--accent); stroke: none; } .pinned-notes-list .cell + .cell { margin-top: 12px; } .book-intro.has-pinned-notes { border-bottom: none; padding-bottom: 22px; margin-bottom: 30px; } .book-intro.book-intro-tight { border-bottom: none; padding-bottom: 4px; margin-bottom: 20px; } #page h1 { font-family: var(--serif); font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; overflow-wrap: anywhere; } #page .page-section:not(.book-intro) h1 { font-size: 26px; } #page h2 { font-family: var(--serif); font-size: 24px; margin: 36px 0 10px; } #page h3 { font-size: 17px; font-weight: 700; margin: 26px 0 2px; letter-spacing: -0.01em; } #page h3::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); margin-right: 10px; vertical-align: middle; transform: translateY(-1px); } #page p { margin: 10px 0; } #page blockquote { margin: 14px 0; padding: 2px 16px; border-left: 3px solid #fdba74; color: var(--muted); } #page hr { display: none; } #page code { font-family: var(--mono); font-size: 0.86em; background: var(--code-bg); padding: 2px 6px; border-radius: 6px; } #page pre { max-width: 100%; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; } #page pre code { background: none; padding: 0; font-size: 11.5px; } /* ---- code blocks + collapsible accordion ---- */ #page pre.hl { background: #17181c; border: none; color: #e7e7ea; font-size: 13px; line-height: 1.58; } #page pre.hl code { color: inherit; font-family: var(--mono); } .code-accordion { border: 1px solid rgba(249, 115, 22, 0.2); border-radius: 8px; overflow: hidden; margin: 12px 0; background: #17181c; } .code-accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 9px 12px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: #e7e7ea; background: #1e2027; user-select: none; overflow-wrap: anywhere; } .code-accordion summary::-webkit-details-marker { display: none; } .code-accordion summary::after { content: "▸"; margin-left: auto; color: var(--accent); transition: transform 0.12s; transform: rotate(180deg); } .code-accordion[open] summary::after { transform: rotate(90deg); } .code-accordion .code-ico { color: var(--accent); font-weight: 700; } .code-accordion pre.hl { margin: 0; border-radius: 0; border: none; border-top: 1px solid rgba(249, 115, 22, 0.16); } .tok-comment { color: #7a7d87; font-style: italic; } .tok-string { color: #a5d6a7; } .tok-keyword { color: #fdba74; } .tok-number { color: #7fd0e0; } #page a { color: var(--accent); } #page ul { padding-left: 20px; } .ts { font-family: var(--mono); font-size: 12px; color: var(--muted); background: none; padding: 0; } /* ---- notebook-style cells ---- */ .cell { max-width: 100%; margin: 0 0 32px; background: none; border: none; border-radius: 0; box-shadow: none; overflow: visible; } .cell-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 0 0 5px; background: none; border-bottom: none; } .cell-head.no-title { justify-content: flex-end; padding: 0 0 3px; } .cell-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; } .cell-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 13px; color: var(--muted); } .cell-open { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--accent); text-decoration: none; } .cell-open:hover { color: var(--accent-strong); } .cell-body { min-width: 0; padding: 0; } .cell.dashboard .cell-body { padding: 0; } #page .cell-body h1, #page .cell-body h2 { font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; margin: 22px 0 6px; } #page .cell-body > :first-child { margin-top: 0; } #page .cell-body > :last-child { margin-bottom: 0; } .figure-fit { position: relative; overflow: hidden; min-height: 160px; border: 1px solid var(--line); border-radius: 8px; background: #fff; } .figure-fit[hidden] { display: none; } .figure-fit:fullscreen, .figure-fit:-webkit-full-screen { width: 100%; height: 100%; border: none; border-radius: 0; } .figure-frame { display: block; width: 100%; min-height: 160px; border: none; background: #fff; } .figure-frame[hidden], .figure-raw[hidden] { display: none; } .fig-switch { position: relative; display: inline-flex; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: var(--code-bg); padding: 2px; } .fig-switch button { position: relative; z-index: 1; flex: 1; min-width: 62px; border: none; background: none; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 12px; border-radius: 999px; cursor: pointer; transition: color 0.15s; } .fig-switch button.active { color: var(--accent-strong); } .fig-switch-thumb { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 999px; background: var(--panel); border: 1px solid rgba(249, 115, 22, 0.35); box-shadow: 0 1px 4px rgba(31, 41, 55, 0.08); transition: transform 0.18s ease; } .fig-switch.raw .fig-switch-thumb { transform: translateX(100%); } #page .figure-raw pre { margin: 0; max-height: 420px; overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.55; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; } /* ---- figure fullscreen ---- */ .cell-fullscreen { position: relative; display: inline-flex; flex: 0 0 auto; } .cell-fullscreen-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--code-bg); color: var(--muted); cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; } .cell-fullscreen-btn:hover { color: var(--accent-strong); border-color: rgba(249, 115, 22, 0.35); background: var(--accent-soft); } .cell-fullscreen-btn svg { width: 14px; height: 14px; } /* ---- copyable snippets ---- */ .snippet { position: relative; } .copy-snippet { position: absolute; top: 7px; right: 8px; width: 24px; height: 24px; border: none; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #9a9da8; font-size: 12px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 0.12s, color 0.12s, background 0.12s; } .snippet:hover .copy-snippet, .jp-out:hover .copy-snippet, .figure-raw:hover .copy-snippet, .code-accordion summary:hover .copy-snippet { opacity: 1; } .copy-snippet:hover { color: #ffffff; background: rgba(255, 255, 255, 0.16); } .copy-snippet.copied { color: #52d08a; opacity: 1; } .code-accordion .code-name { user-select: text; cursor: text; } .jp-out, .figure-raw { position: relative; } .jp-out .copy-snippet, .figure-raw .copy-snippet { background: var(--code-bg); color: var(--muted); border: 1px solid var(--line); } .jp-out .copy-snippet:hover, .figure-raw .copy-snippet:hover { color: var(--accent-strong); background: var(--panel); } /* ---- jupyter-style code cells ---- */ .jp { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0; background: var(--panel); } .jp-cmd { display: flex; align-items: baseline; gap: 9px; position: relative; padding: 10px 16px 10px 0; font-family: var(--mono); font-size: 12px; color: #8b8e98; } .jp-cmd-prompt { color: var(--accent); font-weight: 700; } #page .jp-cmd code { min-width: 0; color: #b6b9c2; font-family: var(--mono); font-size: 12px; background: none; padding: 0; border-radius: 0; overflow-wrap: anywhere; } .jp-cmd:hover .copy-snippet { opacity: 1; } .jp-in-body .jp-cmd + .code-accordion, .jp-in-body .jp-cmd + .snippet { border-top: 1px solid rgba(255, 255, 255, 0.09); } .jp-gutter { flex: 0 0 46px; padding: 13px 0 0 13px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600; user-select: none; } .jp-in { display: flex; background: #17181c; } .jp-in .jp-gutter { color: #6f727d; } .jp-in-body { flex: 1; min-width: 0; } #page .jp-in-body pre.hl { margin: 0; border: none; border-radius: 0; background: none; padding: 12px 16px 12px 0; overflow-y: auto; max-height: 26em; } .jp-in-body .code-accordion { margin: 0; border: none; border-top: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0; background: none; } .jp-in-body .code-accordion summary { background: none; padding: 9px 16px 9px 0; } .jp-in-body .code-accordion pre.hl { border-top: 1px solid rgba(255, 255, 255, 0.09); } .jp-meta { padding: 5px 14px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: #fbfbfc; border-top: 1px solid var(--line); } .jp-out { display: flex; border-top: 1px solid var(--line); background: var(--panel); } .jp-out .jp-gutter { color: var(--accent-strong); } .jp-out-body { flex: 1; min-width: 0; } #page .jp-out-pre { min-width: 0; margin: 0; border: none; border-radius: 0; background: none; color: var(--ink); font-family: var(--mono); font-size: 13px; line-height: 1.55; padding: 12px 16px 12px 0; white-space: pre; overflow-x: auto; overflow-y: auto; max-height: 26em; } .jp-artifacts { display: flex; flex-direction: column; } .jp-out-body .jp-out-pre + .jp-artifacts { border-top: 1px solid var(--line); } .out-artifact { display: flex; align-items: baseline; gap: 8px; padding: 9px 16px 9px 0; text-decoration: none; color: inherit; } .out-artifact + .out-artifact { border-top: 1px solid var(--line); } a.out-artifact:hover .out-artifact-name { color: var(--accent-strong); } .out-artifact-ico { flex: 0 0 auto; font-size: 13px; } .out-artifact-name { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .out-artifact-meta { flex: 0 0 auto; margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--muted); white-space: nowrap; } .out-artifact-state.open { color: var(--accent); font-weight: 600; } .trackio-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); } .trackio-cell-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } /* ---- unfurl cards ---- */ .unfurl { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin: 12px 0; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.14s, box-shadow 0.14s; } .unfurl:hover { border-color: #cfcbe6; box-shadow: 0 4px 18px rgba(30, 20, 80, 0.06); } .unfurl-body { padding: 13px 16px; display: flex; gap: 12px; align-items: flex-start; } .unfurl-ico { font-size: 20px; line-height: 1.3; flex: 0 0 auto; } .unfurl-main { min-width: 0; flex: 1; } .unfurl-kind { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; } .unfurl-title { font-weight: 650; font-size: 15px; margin: 1px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .unfurl-desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; } .unfurl-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; } .chip { font-size: 11.5px; background: var(--code-bg); border-radius: 999px; padding: 2px 9px; color: var(--muted); font-family: var(--mono); } .unfurl-raw { font-family: var(--mono); font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding: 7px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .unfurl.embed { padding: 0; overflow: hidden; } .embed-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); } .embed-head .unfurl-kind { flex: 0 0 auto; } .embed-title { flex: 1; min-width: 0; font-weight: 650; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .embed-title:hover { color: var(--accent); } .embed-open { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--accent); text-decoration: none; } .embed-frame { display: block; width: 100%; height: 560px; border: 0; background: var(--code-bg); } .dashboard-shell { display: block; } .dashboard-shell .dashboard-frame { display: block; width: 100%; height: 900px; border: 0; background: var(--code-bg); } .unfurl.image { padding: 0; } .unfurl.image img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; background: var(--code-bg); } .artifact-chip { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 10px 14px; margin: 8px 0; font-size: 14px; } .cell.dashboard .artifact-chip { margin: 14px 18px 18px; } .artifact-chip code { color: var(--accent); } /* ---- task board ---- */ .board-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0 20px; background: var(--panel); } table.board { border-collapse: collapse; width: 100%; font-size: 14px; } table.board th, table.board td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } table.board thead th { background: var(--accent-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #9a4a12; font-weight: 600; border-bottom: 1px solid var(--line); } table.board tbody tr:last-child td { border-bottom: none; } table.board .col-check { text-align: center; width: 92px; white-space: nowrap; } table.board tr.section-row td { background: var(--accent-soft); text-align: center; font-weight: 700; font-size: 13px; color: var(--accent-strong); padding: 7px 14px; letter-spacing: 0.02em; } .box { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1.5px solid #cfcbe0; border-radius: 5px; font-size: 12px; color: #fff; line-height: 1; } .box.on { background: var(--accent); border-color: var(--accent); } .who-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; } .who-chip.muted { background: var(--code-bg); color: var(--muted); font-weight: 500; } /* ---- status badges + clickable rows ---- */ table.board .col-status { width: 130px; white-space: nowrap; } .badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; } .badge.gray { background: var(--code-bg); color: var(--muted); } .badge.amber { background: var(--accent-soft); color: #b45309; } .badge.green { background: #e6f7ee; color: #1a8a55; } .badge.red { background: #fde8ec; color: #c62a4b; } table.board tr.linked-row { cursor: pointer; } table.board tr.linked-row:hover td { background: var(--accent-soft); } table.board tr.linked-row a { color: var(--ink); font-weight: 600; text-decoration: none; } table.board tr.linked-row:hover a { color: var(--accent-strong); } /* ---- agent read hint ---- */ .agent-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 12.5px; color: var(--muted); } .agent-hint code { flex: 1 1 18rem; min-width: 0; background: var(--code-bg); padding: 2px 9px; border-radius: 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .agent-hint .copy { flex: 0 0 auto; background: none; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; width: 22px; height: 22px; font-size: 11px; line-height: 1; cursor: pointer; transition: color 0.12s, border-color 0.12s; } .agent-hint .copy:hover { color: var(--accent-strong); border-color: var(--accent); } .agent-hint .copy.copied { color: #1a8a55; border-color: #1a8a55; } .agent-hint-note { margin-left: auto; font-size: 12px; color: var(--muted); } .hub-destination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12.5px; } .hub-destination a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 9px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-family: var(--mono); font-size: 12px; font-weight: 650; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; transition: border-color 0.12s, background 0.12s, color 0.12s; } .hub-destination a:hover { border-color: var(--accent); background: #ffedd5; color: #c2410c; } .hub-destination svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .index-paper-link { margin: 14px 0 30px; font-size: 19px; line-height: 1.35; font-weight: 700; } .index-paper-link a { text-underline-offset: 4px; text-decoration-thickness: 2px; } .art-ico { width: 1em; height: 1em; object-fit: contain; vertical-align: -0.15em; } .art-file-ico { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; } .out-artifact-ico .art-file-ico { color: var(--muted); } /* ---- scroll-to-resource highlight ---- */ .res-flash { animation: res-flash 1.5s ease; border-radius: 8px; } @keyframes res-flash { 0%, 25% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0); } } /* ---- inline resource chips ---- */ #page .res-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 9px 0 6px; margin: 0 1px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-family: var(--mono); font-size: 0.78em; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; line-height: 1.65; transform: translateY(-0.08em); transition: border-color 0.12s, background 0.12s, color 0.12s; } .res-chip-ico { font-size: 1.05em; line-height: 1; } #page .res-chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); } /* ---- connect footer + modal ---- */ #sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); } #connect-btn { width: 100%; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); color: #c3c4cb; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; padding: 9px 12px; font-size: 13.5px; font-family: var(--sans); cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s; } #connect-btn:hover { background: rgba(249, 115, 22, 0.14); border-color: rgba(249, 115, 22, 0.4); color: #fdba74; } #connect-btn .ico { font-size: 15px; } #modal[hidden] { display: none; } #modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; } .modal-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 30, 0.5); backdrop-filter: blur(2px); } .modal-card { position: relative; background: var(--panel); border-radius: 16px; width: 100%; max-width: 620px; max-height: 85vh; overflow-y: auto; box-shadow: 0 24px 70px rgba(20, 15, 50, 0.28); } .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); } .modal-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; } .modal-logo { width: 26px; height: 26px; object-fit: contain; } .modal-actions { display: flex; align-items: center; gap: 8px; } .btn { font-family: var(--sans); font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 9px; padding: 8px 13px; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; } .btn:hover { border-color: var(--accent); color: var(--accent-strong); } .btn.copied { border-color: #1a8a55; color: #1a8a55; } .btn.icon { font-size: 18px; line-height: 1; padding: 6px 11px; font-weight: 400; } .modal-body { padding: 20px 22px 26px; } .modal-intro { margin: 0 0 20px; color: var(--muted); line-height: 1.55; } #connect-steps { list-style: none; margin: 0; padding: 0; } #connect-steps li { margin-bottom: 18px; } .step-title { font-weight: 600; font-size: 14.5px; margin-bottom: 8px; } .codeblock { display: flex; align-items: center; gap: 8px; background: #17181c; border-radius: 10px; padding: 11px 12px 11px 15px; } .codeblock code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--mono); font-size: 13px; color: #f0efff; background: none; padding: 0; } .codeblock .copy { flex: 0 0 auto; background: rgba(255, 255, 255, 0.08); color: #c3c4cb; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 7px; width: 30px; height: 30px; font-size: 14px; cursor: pointer; transition: background 0.12s, color 0.12s; } .codeblock .copy:hover { background: rgba(249, 115, 22, 0.2); color: #fdba74; } .codeblock .copy.copied { color: #52d08a; } /* ---- top-level logbook views ---- */ #view-tabs { position: sticky; top: 0; z-index: 30; width: 100%; max-width: 1080px; margin: 0 auto 24px; padding-top: 10px; display: flex; align-items: center; justify-content: flex-start; gap: 26px; border-bottom: 1px solid var(--line); background: var(--paper); } #view-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: -1px; color: var(--muted); border-bottom: 2px solid transparent; text-decoration: none; font-size: 13.5px; font-weight: 600; transition: color 0.12s, border-color 0.12s; } #view-tabs a:hover { color: var(--ink); } #view-tabs a.active { color: var(--accent-strong); border-bottom-color: var(--accent); } #view-tabs svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .workspace-file svg, .workspace-folder summary svg, .workspace-download svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } #page.trace-page, #page.workspace-page { max-width: 1080px; } .view-loading { padding: 72px 0; color: var(--muted); text-align: center; } .view-empty { margin: 48px 0; padding: 44px 28px; border: 1px dashed #d8dbe1; border-radius: var(--radius); background: rgba(255, 255, 255, 0.72); text-align: center; } .view-empty h2 { margin: 0 0 7px; font-size: 18px; } .view-empty p { max-width: 560px; margin: 0 auto; color: var(--muted); } .view-empty code { display: inline-block; margin-top: 18px; padding: 7px 10px; border-radius: 7px; background: var(--code-bg); font-family: var(--mono); font-size: 12px; } #page .repo-ref-link { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 8px; background: var(--accent-strong, #2158d0); color: #fff; font-weight: 600; text-decoration: none; } #page .repo-ref-link:hover, #page .repo-ref-link:focus-visible { color: #fff; filter: brightness(0.95); } .view-eyebrow { margin-bottom: 4px; color: var(--accent-strong); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; } /* ---- trace ---- */ .trace-session { scroll-margin-top: 24px; } .trace-session + .trace-session { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); } .trace-session-title { margin: 0 0 14px; color: var(--ink); font-family: var(--serif); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; } .workspace-header h1 { margin: 0; color: var(--ink); font-size: 30px; line-height: 1.2; letter-spacing: -0.025em; } .trace-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-bottom: 34px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.78); color: var(--muted); font-family: var(--mono); font-size: 11px; } .trace-meta strong { color: var(--ink); font-weight: 650; } .trace-source-missing { color: #b45309; } .trace-timeline { position: relative; } .trace-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 82px; width: 1px; background: #dedfe3; } .trace-load-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 0 100px; padding-top: 16px; border-top: 1px solid var(--line); } .trace-load-progress { color: var(--muted); font-family: var(--mono); font-size: 11px; } .trace-load-more { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); color: var(--ink); cursor: pointer; font: 650 12px/1.2 var(--sans); } .trace-load-more:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); } .trace-load-more:disabled { cursor: default; opacity: 0.65; } .trace-entry { --trace-depth: 0; position: relative; display: grid; grid-template-columns: 100px minmax(0, 1fr); margin: 0 0 18px calc(var(--trace-depth) * 24px); } .trace-rail { position: relative; min-height: 36px; padding: 4px 28px 0 0; color: #8a8d95; text-align: right; font-family: var(--mono); } .trace-number, .trace-elapsed { display: block; white-space: nowrap; } .trace-number { font-size: 12px; font-weight: 650; } .trace-elapsed { margin-top: 3px; font-size: 10px; } .trace-dot { position: absolute; top: 10px; right: 11px; width: 11px; height: 11px; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px #d7d9de; } .trace-card { min-width: 0; overflow: hidden; border: 1px solid #dddfe4; border-radius: 11px; background: rgba(255, 255, 255, 0.92); } .trace-card > header { display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 8px 13px; border-bottom: 1px solid #eceef1; } .trace-status .trace-card > header { border-bottom: 0; padding-bottom: 5px; } .trace-kind { font-family: var(--mono); font-size: 10.5px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; } .trace-turn { color: var(--muted); font: 10px var(--mono); } .trace-status-badge { margin-left: auto; padding: 1px 6px; border-radius: 999px; background: #eef0f3; color: var(--muted); font: 9.5px var(--mono); text-transform: uppercase; } .trace-status-badge-error, .trace-status-badge-failed { background: #fef2f2; color: #b91c1c; } .trace-body { margin: 0; padding: 15px 17px 17px; overflow-wrap: anywhere; white-space: pre-wrap; font-family: var(--sans); font-size: 13px; line-height: 1.65; } .trace-reasoning .trace-card { border-style: dashed; border-color: #d7b98a; background: #fffdf8; } .trace-reasoning .trace-kind { color: #9a6b22; } .trace-reasoning .trace-body { font-style: italic; } .trace-user .trace-card { border-left: 3px solid #f3a66d; } .trace-tool_call .trace-card, .trace-tool_result .trace-card { border-color: #2d3036; background: #191a1e; color: #ececf0; } .trace-tool_call .trace-card > header, .trace-tool_result .trace-card > header { border-bottom-color: rgba(255, 255, 255, 0.1); } .trace-tool_call .trace-kind, .trace-tool_result .trace-kind { color: #f5a66d; } .trace-tool_call .trace-turn, .trace-tool_result .trace-turn { color: #979aa3; } .trace-tool_call .trace-body, .trace-tool_result .trace-body, .trace-output pre { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; } #page .trace-tool_call pre.trace-body, #page .trace-tool_result pre.trace-body { margin: 0; padding: 15px 17px 17px; border: 0; border-radius: 0; background: transparent; color: #ececf0; } .trace-output { border-top: 1px dashed rgba(255, 255, 255, 0.14); } .trace-output summary { padding: 9px 14px; color: #aaaeb7; cursor: pointer; font: 700 10px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; } #page .trace-output pre { max-height: 480px; margin: 0; padding: 0 16px 16px; border: 0; border-radius: 0; background: transparent; overflow: auto; color: #d7d8dd; white-space: pre-wrap; } /* ---- workspace ---- */ .workspace-header { padding-bottom: 24px; } .workspace-header p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; } .workspace-inventory { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.92); } .workspace-folder > summary { display: flex; align-items: center; gap: 8px; min-height: 39px; padding: 8px 13px; background: #fafafa; cursor: pointer; font-weight: 650; list-style: none; } .workspace-folder > summary::-webkit-details-marker { display: none; } .workspace-folder > summary::after { content: "›"; margin-left: auto; color: #989ba2; transform: rotate(90deg); } .workspace-folder:not([open]) > summary::after { transform: rotate(0); } .workspace-folder-children { padding-left: 20px; } .workspace-file { display: grid; grid-template-columns: minmax(180px, 1fr) 72px 78px 180px 36px; align-items: center; min-height: 44px; padding: 7px 10px 7px 13px; color: var(--muted); font-family: var(--mono); font-size: 10.5px; } .workspace-file-name { display: flex; align-items: center; min-width: 0; gap: 8px; color: var(--ink); font-family: var(--sans); font-size: 12.5px; font-weight: 550; } .workspace-file-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .workspace-file-type { width: fit-content; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); text-transform: uppercase; } .workspace-download { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; color: var(--muted); } .workspace-download:hover { background: var(--accent-soft); color: var(--accent-strong); } .workspace-unpublished { color: #9ca3af; text-align: center; } .workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .workspace-toggle { display: inline-flex; align-items: center; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: #fafafa; } .workspace-toggle-btn { padding: 4px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 600; cursor: pointer; } .workspace-toggle-btn:hover { color: var(--accent-strong); } .workspace-toggle-btn.is-active { background: var(--accent); color: #ffffff; } .workspace-group + .workspace-group { margin-top: 18px; } .workspace-group-head, .workspace-hub-group-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 13px; background: #fafafa; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 650; text-transform: capitalize; } .workspace-group-count, .workspace-hub-count { padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-family: var(--mono); font-size: 10.5px; } .workspace-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.92); } .workspace-hub { margin-top: 28px; } .workspace-hub-title { margin: 0 0 14px; font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--ink); } .workspace-hub-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.92); } .workspace-hub-group + .workspace-hub-group { margin-top: 14px; } .workspace-hub-list { display: flex; flex-direction: column; } .workspace-hub-link { padding: 9px 13px; color: var(--accent-strong); font-family: var(--mono); font-size: 12px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .workspace-hub-link + .workspace-hub-link { border-top: 1px solid var(--line); } .workspace-hub-link:hover { background: var(--accent-soft); text-decoration: underline; } /* --- UI nits --- */ /* Flush group headers: #page h3/h2 (ID selectors) otherwise inject a top margin that, with overflow:hidden on the card, shows as whitespace above "Jobs" etc. */ #page .workspace-hub-title { margin: 0 0 14px; } #page .workspace-hub-group-head, #page .workspace-group-head { margin: 0; } /* HF brand logo before the "Hugging Face artifacts" heading */ .workspace-hub-title { display: flex; align-items: center; gap: 9px; } .workspace-hub-logo { width: 22px; height: 22px; flex: none; } /* Center empty-state placeholders (heading, body, command) */ .view-empty { display: flex; flex-direction: column; align-items: center; } #page .view-empty h2, #page .view-empty p { text-align: center; } @media (max-width: 720px) { #app { flex-direction: column; } #sidebar { width: 100%; flex: none; height: auto; position: static; } #content { display: block; width: 100%; padding: 28px 20px 80px; overflow-x: hidden; } #view-tabs { margin: 0 0 20px; gap: 18px; justify-content: flex-start; overflow-x: auto; } #view-tabs a { flex: 0 0 auto; } .trace-timeline::before { left: 16px; } .trace-entry { grid-template-columns: 32px minmax(0, 1fr); margin-left: calc(var(--trace-depth) * 10px); } .trace-rail { padding: 0; } .trace-number, .trace-elapsed { display: none; } .trace-dot { top: 10px; right: 10px; } .workspace-file { grid-template-columns: minmax(150px, 1fr) 66px 34px; } .workspace-file-size, .workspace-file-time { display: none; } #page { width: 100%; max-width: 100%; } #page h1, #logbook-title { font-size: 30px; } .cell-head { align-items: flex-start; flex-direction: column; gap: 4px; } }