style.css 14 KB
/* U-008: minimal shell styling, nothing to design-review yet -- real look
   and feel is PH3, starting from docs/wireframes/*.html. */
body { font-family: system-ui, sans-serif; margin: 0; }
#nav { display: flex; gap: 1rem; padding: 1rem; border-bottom: 1px solid #ddd; }
#nav a { text-decoration: none; color: #333; }
#nav a.active { font-weight: bold; }
#app { padding: 1rem; }

/* U-022/U-023: v_project_setup/v_goal_composer/v_bug_feedback -- class
   names match docs/wireframes/v_*.html */
.top-back a { color: #6b7280; text-decoration: none; }
.page { padding: 28px; max-width: 560px; margin: 0 auto; }
.page h1 { font-size: 22px; margin: 0 0 4px; }
.page .page-sub { color: #6b7280; font-size: 13px; margin-bottom: 28px; }
.panel { border: 1px solid #e5e7eb; border-radius: 10px; padding: 24px; background: #f9fafb; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 9px 10px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 14px; font-family: inherit; }
.field input[readonly] { background: #f3f4f6; color: #6b7280; }
.field .hint { font-size: 12px; color: #6b7280; margin-top: 5px; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; font-size: 14px; cursor: pointer; }
.btn-primary { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.btn-row { display: flex; gap: 10px; margin-top: 22px; }
.confirm-banner { background: #fffbeb; border: 1px solid #f59e0b; border-radius: 8px; padding: 12px 14px; font-size: 13px; margin-top: 16px; }
.error-banner { background: #fef2f2; border: 1px solid #ef4444; border-radius: 8px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.success-banner { background: #f0fdf4; border: 1px solid #22c55e; border-radius: 8px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.success-banner a { margin-left: 8px; color: #4f46e5; }

/* U-025: v_dashboard/v_task_board/v_task_detail -- class names match
   docs/wireframes/v_dashboard.html, v_task_board.html, v_task_detail.html */
:root {
  --status-pending: #9ca3af; --status-running: #3b82f6; --status-reflecting: #eab308;
  --status-waiting-quota: #7dd3fc; --status-blocked: #ef4444; --status-done: #22c55e;
}
.page.page-wide { max-width: 1200px; }
.hint { font-size: 12px; color: #6b7280; }
.info-banner { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.info-banner a { color: #4f46e5; }
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid .panel { margin-bottom: 20px; }
.panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin: 0 0 14px; }
.org-strip { display: flex; align-items: center; gap: 0; margin-bottom: 6px; }
.org-node { border: 2px solid #e5e7eb; border-radius: 8px; padding: 10px 18px; text-align: center; background: #fff; flex: 1; font-size: 12px; }
.org-node.active { border-color: var(--status-running); background: #eff6ff; }
.org-node .role { font-weight: 600; font-size: 13px; }
.org-node .hint { margin-top: 2px; }
.org-arrow { flex: 0 0 30px; text-align: center; color: #6b7280; }
.task-summary .row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #e5e7eb; }
.task-summary .row:last-child { border-bottom: none; }
.progress { height: 8px; border-radius: 4px; background: #e5e7eb; overflow: hidden; margin-top: 6px; }
.progress .fill { height: 100%; background: #4f46e5; }
.event-item { font-size: 12px; padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
.event-item .t { color: #6b7280; }
.actions { display: flex; gap: 10px; margin-bottom: 20px; }

.filters { display: flex; gap: 10px; margin-bottom: 16px; }
.filters input, .filters select { padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid #e5e7eb; color: #6b7280; font-weight: 600; }
table.data-table td { padding: 10px; border-bottom: 1px solid #e5e7eb; }
table.data-table tr[data-task-id] { cursor: pointer; }
table.data-table tr[data-task-id]:hover td { background: #f9fafb; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; background: #6b7280; }
.badge.done { background: var(--status-done); }
.badge.coding, .badge.validating { background: var(--status-running); }
.badge.blocked_pending_human, .badge.coding_failed, .badge.planning_failed { background: var(--status-blocked); }
.badge.queued { background: var(--status-pending); }

.breadcrumb { font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.breadcrumb a { color: #6b7280; }
.alert-banner { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 12px 14px; font-size: 13px; margin: 14px 0; display: flex; justify-content: space-between; align-items: center; }
.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.meta-row { display: flex; gap: 28px; font-size: 13px; margin-bottom: 6px; }
.meta-row b { display: block; font-size: 11px; color: #6b7280; font-weight: 600; }
.see-more { font-size: 12px; color: #6b7280; margin-top: 8px; }

.todo-tree { list-style: none; margin: 0 0 4px; padding: 0; font-size: 13px; }
.todo-tree li { position: relative; padding: 6px 0 6px 22px; border-left: 1px dashed #e5e7eb; margin-left: 8px; }
.todo-tree li:last-child { border-left-color: transparent; }
.todo-tree .todo-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.todo-tree .dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--status-pending); flex: 0 0 auto; }
.todo-tree li.status-done .dot { border-color: var(--status-done); background: var(--status-done); }
.todo-tree li.status-running .dot { border-color: var(--status-running); background: var(--status-running); }
.todo-tree li.status-reflecting .dot, .todo-tree li.status-retrying .dot { border-color: var(--status-reflecting); background: var(--status-reflecting); }
.todo-tree li.status-waiting_for_quota .dot { border-color: var(--status-waiting-quota); background: var(--status-waiting-quota); }
.todo-tree li.status-blocked .dot, .todo-tree li.status-failed .dot { border-color: var(--status-blocked); background: var(--status-blocked); }
.todo-tree .todo-id { font-weight: 600; }
.todo-tree .todo-status { margin-left: auto; font-size: 11px; color: #6b7280; }
.todo-detail { display: none; margin: 6px 0 0 17px; padding: 8px 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; color: #6b7280; }
.todo-detail.open { display: block; }

/* U-027: v_log_viewer -- class names match docs/wireframes/v_task_detail.html */
.log-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; font-size: 12px; }
.log-toolbar label { display: flex; align-items: center; gap: 6px; color: #6b7280; }
.log-viewer { background: #0b1120; color: #d1d5db; font-family: ui-monospace, monospace; font-size: 12px; border-radius: 8px; padding: 14px; max-height: 220px; overflow: auto; }
.log-viewer .line { white-space: pre-wrap; line-height: 1.6; }
.log-viewer .hint { color: #9ca3af; }

/* U-026: v_graph_visualizer -- class/data-* names match
   docs/wireframes/v_graph_visualizer.html */
.work-graph { position: relative; border: 1px dashed #d1d5db; border-radius: 8px; padding: 32px; background: #f9fafb; }
.work-row { display: flex; gap: 24px; margin-bottom: 40px; justify-content: center; flex-wrap: wrap; }
.work-row:last-child { margin-bottom: 0; }
.work-node { border: 2px solid #d1d5db; border-radius: 8px; padding: 10px 14px; min-width: 140px; background: #fff; cursor: pointer; position: relative; font-size: 13px; }
.work-node .node-id { font-weight: 600; }
.work-node .node-skill { color: #6b7280; font-size: 11px; margin-top: 2px; }
.work-node.status-pending { border-color: var(--status-pending); }
.work-node.status-running { border-color: var(--status-running); background: #eff6ff; }
.work-node.status-reflecting, .work-node.status-retrying { border-color: var(--status-reflecting); background: #fefce8; }
.work-node.status-waiting_for_quota { border-color: var(--status-waiting-quota); background: #f0f9ff; }
.work-node.status-waiting_for_quota::after { content: "🕐"; position: absolute; top: -8px; right: -8px; font-size: 14px; }
.work-node.status-blocked, .work-node.status-failed { border-color: var(--status-blocked); background: #fef2f2; }
.work-node.status-done { border-color: var(--status-done); background: #f0fdf4; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #6b7280; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 14px; height: 14px; border-radius: 4px; border: 2px solid; }
.legend-swatch.status-pending { border-color: var(--status-pending); }
.legend-swatch.status-running { border-color: var(--status-running); }
.legend-swatch.status-reflecting { border-color: var(--status-reflecting); }
.legend-swatch.status-waiting_for_quota { border-color: var(--status-waiting-quota); }
.legend-swatch.status-blocked { border-color: var(--status-blocked); }
.legend-swatch.status-done { border-color: var(--status-done); }
.tooltip { position: absolute; z-index: 10; background: #111827; color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 6px; max-width: 260px; display: none; pointer-events: none; line-height: 1.5; }
.tooltip.show { display: block; }

/* v_graph_console (`#/graph`, 2026-08-03 SDD): FR-1 Org Graph topology --
   independent of .org-strip/.org-node (v_dashboard/v_task_detail), FR-4
   click-to-expand affordance layered on top of the existing .work-node
   (see .work-node.clickable/.expanded below), FR-5 overview grid. */
.graph-topo-row { display: flex; align-items: center; gap: 0; }
.graph-topo-node { border: 2px solid #e5e7eb; border-radius: 8px; padding: 12px 20px; text-align: center; background: #fff; flex: 1; font-size: 12px; }
.graph-topo-node.active { border-color: var(--status-running); background: #eff6ff; }
.graph-topo-node .role { font-weight: 600; font-size: 13px; }
.graph-topo-node .hint { margin-top: 2px; }
.graph-topo-node.status-not_started { border-color: var(--status-pending); }
.graph-topo-node.status-planning, .graph-topo-node.status-running, .graph-topo-node.status-merging, .graph-topo-node.status-verifying { border-color: var(--status-running); }
.graph-topo-node.status-reflecting { border-color: var(--status-reflecting); }
.graph-topo-node.status-blocked, .graph-topo-node.status-failed { border-color: var(--status-blocked); }
.graph-topo-node.status-done { border-color: var(--status-done); }
.graph-edge { flex: 0 0 30px; text-align: center; color: #6b7280; font-size: 14px; }
.graph-edge.retry-loop { flex: none; width: 100%; text-align: left; margin-top: 8px; font-size: 12px; color: #b45309; }
.work-node.clickable:hover { box-shadow: 0 0 0 2px #4f46e5; }
.work-node.clickable.expanded { box-shadow: 0 0 0 2px #4f46e5; }
.work-node .log-viewer-slot:empty { display: none; }
.work-node .log-viewer-slot { margin-top: 10px; text-align: left; white-space: normal; cursor: default; }
.overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 4px; }
.overview-grid h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; margin: 0 0 8px; }

ul.simple-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
ul.simple-list li { padding: 8px 0; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; }
ul.simple-list li:last-child { border-bottom: none; }

/* U-028: v_artifact_browser -- class names match docs/wireframes/v_artifact_browser.html */
.artifact-browser-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
ul.artifact-list { list-style: none; margin: 0; padding: 0; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; height: fit-content; }
ul.artifact-list li { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; font-size: 13px; cursor: pointer; }
ul.artifact-list li:last-child { border-bottom: none; }
ul.artifact-list li:hover, ul.artifact-list li.active { background: #f9fafb; }
ul.artifact-list .type { font-size: 11px; color: #6b7280; text-transform: uppercase; }
.artifact-browser-grid .preview { border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; background: #f9fafb; }
.lineage { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; margin-bottom: 14px; }
.lineage span.node { border: 1px solid #e5e7eb; border-radius: 999px; padding: 3px 10px; background: #fff; }
pre.code { background: #0b1120; color: #d1d5db; padding: 14px; border-radius: 8px; font-size: 12px; overflow: auto; white-space: pre-wrap; }

/* U-029: v_skill_library / v_skill_audit_log -- class names match
   docs/wireframes/v_skill_library.html, v_skill_audit_log.html */
.group { margin-bottom: 22px; }
.group h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin: 0 0 10px; }
.skill-list { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.skill-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #e5e7eb; cursor: pointer; }
.skill-row:last-child { border-bottom: none; }
.skill-row:hover { background: #f9fafb; }
.skill-row .name { font-weight: 600; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #4f46e5; }
.tag.auto { background: #fef3c7; color: #92400e; }
.iteration { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #f9fafb; }
.iteration .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.iteration .t { color: #6b7280; font-size: 12px; }
.iteration .summary { font-size: 13px; margin-bottom: 8px; }
.iteration .actions { display: flex; gap: 8px; }
.iteration .diff-output { margin-top: 10px; }