graphlin 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/.claude-plugin/plugin.json +12 -0
  2. package/.codex-plugin/plugin.json +29 -0
  3. package/.mcp.json +9 -0
  4. package/LICENSE +21 -0
  5. package/README.md +71 -0
  6. package/adapters/README.md +32 -0
  7. package/adapters/claude/hooks.json +10 -0
  8. package/adapters/claude/profile.json +18 -0
  9. package/adapters/codex/hooks.json +9 -0
  10. package/adapters/codex/profile.json +22 -0
  11. package/adapters/kiro/profile.json +8 -0
  12. package/mcp.json +11 -0
  13. package/package.json +114 -0
  14. package/plugin.json +20 -0
  15. package/runtime/collector/index.mjs +23 -0
  16. package/runtime/core/candidates.mjs +300 -0
  17. package/runtime/core/common.mjs +69 -0
  18. package/runtime/core/evidence.mjs +150 -0
  19. package/runtime/core/graph.mjs +398 -0
  20. package/runtime/core/index.mjs +4 -0
  21. package/runtime/core/lexical.mjs +255 -0
  22. package/runtime/core/privacy.mjs +206 -0
  23. package/runtime/core/tool-discovery.mjs +122 -0
  24. package/runtime/daemon/auth.mjs +50 -0
  25. package/runtime/daemon/connection-info.mjs +249 -0
  26. package/runtime/daemon/demo.mjs +195 -0
  27. package/runtime/daemon/diagnostics.mjs +404 -0
  28. package/runtime/daemon/export.mjs +7 -0
  29. package/runtime/daemon/ipc.mjs +28 -0
  30. package/runtime/daemon/lock.mjs +137 -0
  31. package/runtime/daemon/manager.mjs +320 -0
  32. package/runtime/daemon/paths.mjs +108 -0
  33. package/runtime/daemon/persistence.mjs +64 -0
  34. package/runtime/daemon/server.mjs +292 -0
  35. package/runtime/daemon/settings.mjs +103 -0
  36. package/runtime/jev/fixture.mjs +99 -0
  37. package/runtime/jev/index.mjs +784 -0
  38. package/runtime/jev/questions.mjs +268 -0
  39. package/runtime/jev/wire.mjs +152 -0
  40. package/runtime/pipeline.mjs +1071 -0
  41. package/runtime/web/app.js +2596 -0
  42. package/runtime/web/index.html +265 -0
  43. package/runtime/web/layout.js +336 -0
  44. package/runtime/web/sidebar.js +525 -0
  45. package/runtime/web/sketch.js +347 -0
  46. package/runtime/web/style.css +593 -0
  47. package/schemas/bundle.schema.json +243 -0
  48. package/schemas/event.schema.json +108 -0
  49. package/schemas/graph.schema.json +449 -0
  50. package/schemas/patch.schema.json +111 -0
  51. package/scripts/arguments.mjs +37 -0
  52. package/scripts/build-packages.mjs +160 -0
  53. package/scripts/collect.sh +23 -0
  54. package/scripts/collector.mjs +11 -0
  55. package/scripts/control.mjs +80 -0
  56. package/scripts/daemon.mjs +28 -0
  57. package/scripts/graphlin.mjs +112 -0
  58. package/scripts/onboarding.mjs +413 -0
  59. package/scripts/validate-packages.mjs +118 -0
  60. package/skills/graphlin/SKILL.md +103 -0
@@ -0,0 +1,593 @@
1
+ :root {
2
+ --paper: #f5f8fe;
3
+ --canvas: #f8faff;
4
+ --ink: #16324e;
5
+ --muted: #526982;
6
+ --blue: #285ede;
7
+ --teal: #087c70;
8
+ --amber: #976013;
9
+ --red: #b33750;
10
+ --line: #d2dfef;
11
+ --soft: #eaf0fc;
12
+ --white: #fff;
13
+ --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
14
+ }
15
+
16
+ * { box-sizing: border-box; }
17
+ [hidden] { display: none !important; }
18
+ body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.5 var(--body); }
19
+ button, input, select { font: inherit; }
20
+ button, a, input, select { -webkit-tap-highlight-color: transparent; }
21
+ button { cursor: pointer; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 7px; padding: 8px 13px; font-weight: 600; min-height: 38px; }
22
+ button:hover:not(:disabled) { background: var(--soft); border-color: #a5bce0; }
23
+ button:disabled { opacity: .5; cursor: default; }
24
+ button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
25
+ a { color: var(--blue); }
26
+ p, h1, h2, h3 { margin: 0; }
27
+ .page { max-width: 1720px; margin: auto; padding: 0 38px; }
28
+ .skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px 18px; background: var(--white); border: 2px solid var(--blue); border-radius: 6px; }
29
+ .skip-link:focus { top: 12px; }
30
+ .masthead { display: flex; align-items: center; justify-content: space-between; min-height: 85px; border-bottom: 1px solid var(--line); gap: 20px; }
31
+ .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 29px; font-weight: 750; letter-spacing: -1.4px; text-decoration: none; }
32
+ .brand-mark { width: 28px; height: 28px; border: 3px solid var(--blue); border-radius: 7px; transform: rotate(-9deg); position: relative; }
33
+ .brand-mark::after { content: ""; position: absolute; right: -8px; bottom: -6px; width: 12px; height: 12px; border: 3px solid var(--paper); border-radius: 50%; background: var(--teal); }
34
+ .connection { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
35
+ .connection-dot, .status-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
36
+ .connection[data-state="connected"] .connection-dot, .status-dot[data-state="ready"] { background: var(--teal); }
37
+ .connection[data-state="reconnecting"] .connection-dot, .status-dot[data-state="waiting"] { background: var(--amber); }
38
+ .connection[data-state="error"] .connection-dot, .connection[data-state="auth"] .connection-dot, .status-dot[data-state="error"] { background: var(--red); }
39
+ .text-button { background: transparent; border-color: transparent; padding: 4px 6px; min-height: 32px; color: var(--blue); font-size: 12px; }
40
+ .intro { padding: 25px 0 24px; display: flex; align-items: end; justify-content: space-between; gap: 22px; }
41
+ h1 { font-size: clamp(27px, 2.3vw, 36px); letter-spacing: -1px; font-weight: 650; line-height: 1.2; }
42
+ .intro p { color: var(--muted); margin-top: 7px; }
43
+ .intro .project-label { font-size: 12px; max-width: 250px; text-align: right; overflow-wrap: anywhere; }
44
+ .notice { padding: 11px 16px; margin-bottom: 14px; border-radius: 7px; font-size: 13px; }
45
+ .demo-notice { display: flex; gap: 12px; color: #744807; background: #fff7e6; border: 1px solid #e6cb96; }
46
+ .demo-notice strong { white-space: nowrap; }
47
+ .error-notice { color: #85223a; background: #fff1f4; border: 1px solid #e8b8c3; }
48
+ .workspace { border: 1px solid var(--line); border-radius: 13px; background: var(--white); overflow: hidden; box-shadow: 0 8px 30px #16324e05; }
49
+ .workspace-toolbar { min-height: 71px; padding: 14px 21px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
50
+ .session-picker { display: flex; align-items: center; gap: 11px; font-size: 12px; color: var(--muted); min-width: 0; }
51
+ .session-picker select { color: var(--ink); font-size: 14px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 8px 30px 8px 11px; background: var(--paper); max-width: min(320px, 35vw); min-width: 150px; }
52
+ .session-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; max-width: 100%; font-size: 12px; }
53
+ .status-strip { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 11px 21px; font-size: 11px; border-bottom: 1px solid var(--line); }
54
+ .classification-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
55
+ .classification-status strong { font-weight: 650; }
56
+ #capture-note { color: var(--muted); }
57
+ .coverage-status { display: flex; gap: 4px 16px; justify-content: flex-end; color: var(--muted); text-align: right; flex-wrap: wrap; max-width: 52%; }
58
+ #coverage-label { max-width: 67ch; }
59
+ .workspace-body { display: grid; grid-template-columns: minmax(0, 1fr) 315px; align-items: start; }
60
+ .sidebar-theme,
61
+ .drawing {
62
+ --canvas: #fbfaf7; --ink: #293340; --muted: #4b5765; --node-ink: #343d49;
63
+ --white: #fffdf9; --paper: #f5f2ed; --line: #a5aeb8; --soft: #eeeae3;
64
+ --blue: #315a87; --teal: #245e4c; --amber: #79500e; --red: #963b46;
65
+ --diagram-grid: #dedfdb; --diagram-edge: #5a6674; --diagram-focus: #195ca7; --diagram-stale: #4b5765;
66
+ --role-client: #dceafb; --role-service: #e6dcf4; --role-datastore: #d7ece5;
67
+ --role-queue: #fae8bd; --role-external: #f4dbe3; --role-module: #e3e7ed;
68
+ --role-function: #d6edf2; --role-class: #dedaf3; --role-interface: #dde3fa;
69
+ --role-event: #f8ddc7; --role-configuration: #e6edce; --role-package: #eee0d1;
70
+ color-scheme: light; color: var(--ink); min-width: 0; display: flex; flex-direction: column;
71
+ background-color: var(--canvas); background-image: radial-gradient(var(--diagram-grid) .65px, transparent .65px); background-size: 18px 18px;
72
+ }
73
+ .sidebar-theme[data-theme="ocean"],
74
+ .drawing[data-theme="ocean"] {
75
+ --canvas: #f4fafb; --ink: #1c394b; --muted: #365668; --node-ink: #285064;
76
+ --white: #fcffff; --paper: #eaf3f6; --line: #94aeb9; --soft: #e1eef2;
77
+ --blue: #1e5d80; --teal: #196354; --amber: #785117; --red: #983b51;
78
+ --diagram-grid: #ccdde3; --diagram-edge: #416e83; --diagram-focus: #07577f; --diagram-stale: #365668;
79
+ --role-client: #d3e9f8; --role-service: #d9e2f7; --role-datastore: #cfece7;
80
+ --role-queue: #e2edcf; --role-external: #e0dff4; --role-module: #dce8ed;
81
+ --role-function: #cceaf0; --role-class: #d5e1ed; --role-interface: #dde8fa;
82
+ --role-event: #f3e4ce; --role-configuration: #d8edde; --role-package: #e5e8d5;
83
+ }
84
+ .sidebar-theme[data-theme="forest"],
85
+ .drawing[data-theme="forest"] {
86
+ --canvas: #f6f8f1; --ink: #2a3c2d; --muted: #485c48; --node-ink: #36553b;
87
+ --white: #fcfdf7; --paper: #edf1e5; --line: #a0ad96; --soft: #e5ebd9;
88
+ --blue: #3c6345; --teal: #29624b; --amber: #725016; --red: #963f46;
89
+ --diagram-grid: #d6dfcd; --diagram-edge: #5d7158; --diagram-focus: #31633d; --diagram-stale: #485c48;
90
+ --role-client: #daeadb; --role-service: #e0e7c7; --role-datastore: #cfe5dd;
91
+ --role-queue: #eee7bd; --role-external: #e8dbe5; --role-module: #e2e4d9;
92
+ --role-function: #d5e9e5; --role-class: #d8e1cb; --role-interface: #e2e8d3;
93
+ --role-event: #f0deca; --role-configuration: #dce9c4; --role-package: #e5dfcf;
94
+ }
95
+ .sidebar-theme[data-theme="sunset"],
96
+ .drawing[data-theme="sunset"] {
97
+ --canvas: #fff8f3; --ink: #453039; --muted: #674a53; --node-ink: #67424b;
98
+ --white: #fffaf7; --paper: #f8eee5; --line: #b8a0a0; --soft: #f3e4dc;
99
+ --blue: #8a4744; --teal: #396154; --amber: #754b12; --red: #9b3043;
100
+ --diagram-grid: #ecd8ce; --diagram-edge: #86535a; --diagram-focus: #8b3d40; --diagram-stale: #674a53;
101
+ --role-client: #f8d9ce; --role-service: #efd6e6; --role-datastore: #dde8d9;
102
+ --role-queue: #f7e5b7; --role-external: #f2cdd3; --role-module: #e8dfe6;
103
+ --role-function: #d9e8ee; --role-class: #e7d8ee; --role-interface: #e0def0;
104
+ --role-event: #f5d5b9; --role-configuration: #e6e7c6; --role-package: #eddfcc;
105
+ }
106
+ .sidebar-theme[data-theme="berry"],
107
+ .drawing[data-theme="berry"] {
108
+ --canvas: #faf6fc; --ink: #3f2c47; --muted: #614769; --node-ink: #583c64;
109
+ --white: #fdfaff; --paper: #f1eaf5; --line: #af9cba; --soft: #ebe0f0;
110
+ --blue: #775088; --teal: #306051; --amber: #754b14; --red: #9c3053;
111
+ --diagram-grid: #e2d4e8; --diagram-edge: #785783; --diagram-focus: #702d88; --diagram-stale: #614769;
112
+ --role-client: #e5def5; --role-service: #ead6ed; --role-datastore: #d6e8e1;
113
+ --role-queue: #f3e3c1; --role-external: #f3d4e4; --role-module: #e4deec;
114
+ --role-function: #d9e6f0; --role-class: #dfd5ef; --role-interface: #dedff5;
115
+ --role-event: #f3d9d1; --role-configuration: #e1e9d2; --role-package: #e9dcca;
116
+ }
117
+ .sidebar-theme[data-theme="sepia"],
118
+ .drawing[data-theme="sepia"] {
119
+ --canvas: #faf6ed; --ink: #40372b; --muted: #625544; --node-ink: #574c3c;
120
+ --white: #fffaf0; --paper: #f0e8d8; --line: #b0a48d; --soft: #ece2cf;
121
+ --blue: #756040; --teal: #426348; --amber: #754b0d; --red: #973a35;
122
+ --diagram-grid: #ded5c4; --diagram-edge: #75664e; --diagram-focus: #74511c; --diagram-stale: #625544;
123
+ --role-client: #eee2cc; --role-service: #e8ddce; --role-datastore: #dce4d4;
124
+ --role-queue: #f1e5bd; --role-external: #edd9d2; --role-module: #e5e0d8;
125
+ --role-function: #dfe5df; --role-class: #e2daca; --role-interface: #e3dfd0;
126
+ --role-event: #eedbd0; --role-configuration: #e5e6cd; --role-package: #e9dcca;
127
+ }
128
+ .sidebar-theme[data-theme="blueprint"],
129
+ .drawing[data-theme="blueprint"] {
130
+ color-scheme: dark;
131
+ --canvas: #14273f; --ink: #f4f8fe; --muted: #c5d7ec; --node-ink: #cadcf2;
132
+ --white: #1b314c; --paper: #203752; --line: #6984a2; --soft: #294461;
133
+ --blue: #b7d6fa; --teal: #addec5; --amber: #f1cc83; --red: #f5aebd;
134
+ --diagram-grid: #2a425e; --diagram-edge: #a9c9ee; --diagram-focus: #91dff5; --diagram-stale: #b3c6dc;
135
+ --role-client: #253e5b; --role-service: #3e365a; --role-datastore: #234a46;
136
+ --role-queue: #514529; --role-external: #513647; --role-module: #344252;
137
+ --role-function: #204859; --role-class: #3f3b5e; --role-interface: #303f66;
138
+ --role-event: #533d2d; --role-configuration: #3a482c; --role-package: #4b4038;
139
+ }
140
+ .sidebar-theme[data-theme="midnight"],
141
+ .drawing[data-theme="midnight"] {
142
+ color-scheme: dark;
143
+ --canvas: #1c1d2a; --ink: #f7f4ff; --muted: #d1cbe2; --node-ink: #e0d8ef;
144
+ --white: #242534; --paper: #292b3c; --line: #787a95; --soft: #33354b;
145
+ --blue: #c8c7fb; --teal: #b0ddce; --amber: #f3cc8a; --red: #f2adbd;
146
+ --diagram-grid: #38394d; --diagram-edge: #c2b8df; --diagram-focus: #b0e1ec; --diagram-stale: #bfb7ce;
147
+ --role-client: #303e56; --role-service: #48365a; --role-datastore: #2e4746;
148
+ --role-queue: #504631; --role-external: #533548; --role-module: #3b3d4e;
149
+ --role-function: #2b4455; --role-class: #413c5e; --role-interface: #363d61;
150
+ --role-event: #553e35; --role-configuration: #40482f; --role-package: #494139;
151
+ }
152
+ .drawing [data-kind="client"], .sidebar-theme [data-kind="client"] { --node-fill: var(--role-client); }
153
+ .drawing [data-kind="service"], .sidebar-theme [data-kind="service"] { --node-fill: var(--role-service); }
154
+ .drawing [data-kind="datastore"], .sidebar-theme [data-kind="datastore"] { --node-fill: var(--role-datastore); }
155
+ .drawing [data-kind="queue"], .sidebar-theme [data-kind="queue"] { --node-fill: var(--role-queue); }
156
+ .drawing [data-kind="external"], .sidebar-theme [data-kind="external"] { --node-fill: var(--role-external); }
157
+ .drawing [data-kind="module"], .sidebar-theme [data-kind="module"] { --node-fill: var(--role-module); }
158
+ .drawing [data-kind="function"], .sidebar-theme [data-kind="function"] { --node-fill: var(--role-function); }
159
+ .drawing [data-kind="class"], .sidebar-theme [data-kind="class"] { --node-fill: var(--role-class); }
160
+ .drawing [data-kind="interface"], .sidebar-theme [data-kind="interface"] { --node-fill: var(--role-interface); }
161
+ .drawing [data-kind="event"], .sidebar-theme [data-kind="event"] { --node-fill: var(--role-event); }
162
+ .drawing [data-kind="configuration"], .sidebar-theme [data-kind="configuration"] { --node-fill: var(--role-configuration); }
163
+ .drawing [data-kind="package"], .sidebar-theme [data-kind="package"] { --node-fill: var(--role-package); }
164
+ .drawing button:hover:not(:disabled) { background: var(--soft); border-color: var(--diagram-focus); }
165
+ .drawing :is(button, input, select, summary):focus-visible { outline-color: var(--diagram-focus); }
166
+ .drawing-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 17px 21px 0; gap: 15px; z-index: 1; }
167
+ .drawing-heading { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
168
+ .drawing-heading h2 { font-size: 13px; font-weight: 600; }
169
+ #revision { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
170
+ .zoom-controls { display: flex; gap: 3px; align-items: center; background: var(--canvas); flex-shrink: 0; }
171
+ .zoom-controls button { border: 0; background: transparent; min-width: 31px; min-height: 32px; padding: 2px 8px; font-size: 17px; }
172
+ .zoom-controls #fit { border: 1px solid var(--line); font-size: 11px; margin-left: 5px; min-width: 39px; }
173
+ .layout-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 21px 4px; font-size: 11px; }
174
+ .layout-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
175
+ .layout-toolbar select, .shape-picker select { color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 7px 25px 7px 9px; font: inherit; min-height: 34px; }
176
+ .layout-toolbar button { font-size: 11px; min-height: 34px; padding: 5px 12px; }
177
+ .layout-toolbar .auto-arrange { color: var(--ink); white-space: nowrap; }
178
+ .theme-picker { display: flex; align-items: center; gap: 8px; }
179
+ .theme-preview { display: inline-flex; align-items: center; padding: 2px; }
180
+ .theme-preview i { width: 12px; height: 16px; display: block; border: 1px solid var(--node-ink); border-radius: 4px; transform: rotate(-6deg); background: var(--role-client); }
181
+ .theme-preview i + i { margin-left: -3px; transform: rotate(5deg); background: var(--role-service); }
182
+ .theme-preview i:nth-child(3) { transform: rotate(-3deg); background: var(--role-queue); }
183
+ .theme-preview i:nth-child(4) { transform: rotate(7deg); background: var(--role-datastore); }
184
+ .auto-arrange input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
185
+ #layout-note { flex-basis: 100%; color: var(--muted); font-size: 10px; }
186
+ #zoom-level { font-size: 11px; color: var(--muted); min-width: 39px; text-align: center; font-variant-numeric: tabular-nums; }
187
+ .diagram-stage { position: relative; min-height: 410px; height: clamp(420px, 49vh, 650px); flex: 0 0 auto; overflow: hidden; }
188
+ #architecture { display: block; height: 100%; width: 100%; touch-action: pan-y; }
189
+ #architecture:focus-visible { outline: 2px solid var(--diagram-focus); outline-offset: -5px; }
190
+ #architecture.is-pannable { cursor: grab; touch-action: none; }
191
+ #architecture.is-panning { cursor: grabbing; }
192
+ .empty-canvas { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; pointer-events: none; }
193
+ .empty-canvas h3 { font-size: 24px; letter-spacing: -.6px; font-weight: 600; margin: 20px 0 9px; }
194
+ .empty-canvas p { color: var(--muted); max-width: 46ch; font-size: 13px; }
195
+ .orientation { pointer-events: auto; max-width: 46ch; margin-top: 18px; }
196
+ .orientation blockquote { margin: 8px 0 12px; font-size: 13px; line-height: 1.5; user-select: text; }
197
+ .orientation button { font-size: 12px; }
198
+ #orientation-copy-status { min-height: 1.5em; margin-top: 8px; font-size: 11px; }
199
+ .onboarding { padding: 17px; border-bottom: 1px solid var(--line); }
200
+ .onboarding h2 { font-size: 14px; }
201
+ .onboarding-progress { list-style: none; padding: 0; margin: 12px 0; font-size: 12px; }
202
+ .onboarding-progress li { display: flex; align-items: baseline; gap: 8px; margin: 7px 0; }
203
+ .onboarding-progress li::before { content: "○"; color: var(--muted); flex: 0 0 12px; }
204
+ .onboarding-progress li[data-state="observed"]::before { content: "✓"; color: var(--teal); }
205
+ .onboarding-progress li[data-state="unverified"]::before { content: "?"; color: var(--amber); }
206
+ .onboarding-next { font-size: 12px; line-height: 1.5; margin: 12px 0; }
207
+ .onboarding button { font-size: 12px; }
208
+ .empty-map { display: flex; align-items: center; opacity: .8; }
209
+ .empty-map i { width: 41px; height: 30px; border: 1.5px dashed #7999c3; border-radius: 6px; background: var(--paper); }
210
+ .empty-map i:last-child { height: 38px; width: 31px; border-radius: 50% / 14%; }
211
+ .empty-map span { width: 40px; border-top: 1.5px dashed #7999c3; }
212
+ .drawing-footer { display: flex; justify-content: space-between; gap: 16px; padding: 10px 21px 4px; font-size: 10px; color: var(--muted); flex-wrap: wrap; }
213
+ .legend { display: flex; flex-wrap: wrap; gap: 17px; }
214
+ .legend span { display: flex; align-items: center; gap: 6px; }
215
+ .legend i { width: 15px; height: 10px; display: inline-block; border: 1.5px solid var(--blue); border-radius: 3px; background: var(--white); }
216
+ .legend .proposed { border-color: var(--amber); border-style: dashed; background: var(--paper); }
217
+ .legend .stale { border-color: var(--diagram-stale); border-style: dotted; background: var(--paper); }
218
+ .diagram-note { color: var(--muted); font-size: 10px; padding: 3px 21px 14px; }
219
+ .shape-key { color: var(--muted); font-size: 10px; padding: 6px 21px; }
220
+ .shape-key summary { cursor: pointer; width: fit-content; padding: 3px 0; }
221
+ #shape-key-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 7px 12px; margin: 9px 0; }
222
+ .shape-key-item { display: flex; align-items: center; gap: 7px; }
223
+ .shape-key-item svg { width: 37px; height: 25px; flex: 0 0 37px; }
224
+ .shape-key .node-detail { stroke-width: 4; }
225
+ .shape-key .node-sketch .sketch-primary { stroke-width: 4; }
226
+ .shape-key .node-sketch .sketch-secondary { stroke-width: 2; }
227
+ .shape-key p { margin: 4px 0; }
228
+ .shape-picker { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; font-size: 11px; }
229
+ .shape-picker select { max-width: 65%; min-width: 0; }
230
+ .diagram-node, .diagram-edge, .edge-control { cursor: pointer; outline: none; }
231
+ .node-hit { fill: transparent; stroke: none; }
232
+ .node-visual { transform-origin: 0 0; pointer-events: none; }
233
+ .shape-symbol { font: 10px var(--body); fill: var(--node-ink); }
234
+ .node-visual.is-appearing { animation: node-inflate 400ms cubic-bezier(.2,.65,.35,1) both; }
235
+ #effects-layer, #effects-layer * { pointer-events: none; }
236
+ .burst-outline { transform-origin: 0 0; animation: node-pop-outline 300ms ease-out both; }
237
+ .burst-outline .node-shape { fill: none; }
238
+ .burst-outline .shape-symbol { display: none; }
239
+ .burst-particle { fill: var(--node-ink); opacity: 0; animation: node-pop-particle 300ms ease-out both; }
240
+ @keyframes node-inflate {
241
+ 0% { transform: scale(0); }
242
+ 72% { transform: scale(1.12); }
243
+ 100% { transform: scale(1); }
244
+ }
245
+ @keyframes node-pop-outline {
246
+ 0% { transform: scale(1); opacity: .65; }
247
+ 30% { transform: scale(1.12); opacity: .7; }
248
+ 40%, 100% { transform: scale(1.15); opacity: 0; }
249
+ }
250
+ @keyframes node-pop-particle {
251
+ 0%, 25% { transform: translateX(30px) scale(.5); opacity: 0; }
252
+ 35% { opacity: .7; }
253
+ 100% { transform: translateX(105px) scale(.15); opacity: 0; }
254
+ }
255
+ .node-shape { stroke: none; fill: var(--node-fill, var(--role-module)); }
256
+ .node-sketch { fill: none; stroke: var(--node-ink); stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
257
+ .sketch-primary { stroke-width: 1.9; }
258
+ .sketch-secondary { stroke-width: 1.2; stroke-opacity: .46; }
259
+ .node-sketch-details .sketch-primary { stroke-width: 1.5; }
260
+ .node-sketch-details .sketch-secondary { stroke-width: .95; }
261
+ .node-detail { stroke: var(--node-ink); stroke-width: 1.2; fill: none; }
262
+ .node-title { fill: var(--ink); font: 600 14px var(--body); }
263
+ .node-role { fill: var(--muted); font: 10px var(--body); }
264
+ .node-state { fill: var(--node-ink); font: 600 9px var(--body); }
265
+ .selection-ring { fill: none; stroke: var(--diagram-focus); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: 0; pointer-events: none; }
266
+ .diagram-node[aria-pressed="true"] .selection-ring { opacity: 1; }
267
+ .diagram-node:focus-visible .selection-ring { stroke: var(--diagram-focus); stroke-width: 2.5; stroke-dasharray: none; opacity: 1; }
268
+ .diagram-node[data-tone="proposed"] .node-sketch { stroke: var(--amber); stroke-dasharray: 6 4; }
269
+ .diagram-node[data-tone="proposed"] .node-state { fill: var(--amber); }
270
+ .diagram-node[data-tone="proposed"] .node-detail { stroke: var(--amber); }
271
+ .diagram-node[data-tone="stale"] .node-sketch { stroke: var(--diagram-stale); stroke-dasharray: 2 5; }
272
+ .diagram-node[data-tone="stale"] .node-state { fill: var(--diagram-stale); }
273
+ .diagram-node[data-tone="stale"] .node-detail { stroke: var(--diagram-stale); }
274
+ .node-activity { fill: var(--amber); }
275
+ .node-activity[data-state="failed"] { fill: var(--red); }
276
+ .diagram-edge { --edge-ink: var(--diagram-edge); --edge-primary-width: 1.9; --edge-secondary-width: 1.2; }
277
+ .edge-line, .edge-line-secondary, .edge-head { fill: none; stroke: var(--edge-ink); stroke-width: var(--edge-primary-width); stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
278
+ .edge-line-secondary, .edge-head-secondary { stroke-width: var(--edge-secondary-width); stroke-opacity: .46; }
279
+ .edge-head { stroke-dasharray: none; }
280
+ .edge-hit { fill: none; stroke: transparent; stroke-width: 20; stroke-linecap: round; }
281
+ .edge-label-leader { fill: none; stroke: var(--diagram-stale); stroke-width: 1; pointer-events: none; }
282
+ .edge-label-background { fill: var(--canvas); stroke: var(--line); stroke-width: 1; }
283
+ .edge-label { fill: var(--muted); font: 11px var(--body); pointer-events: none; }
284
+ .edge-control:hover .edge-label-background { fill: var(--white); stroke: var(--diagram-focus); }
285
+ .edge-control:focus-visible .edge-label-background, .edge-control[aria-pressed="true"] .edge-label-background { fill: var(--white); stroke: var(--diagram-focus); stroke-width: 2; }
286
+ .diagram-edge[data-tone="proposed"] { --edge-ink: var(--amber); }
287
+ .diagram-edge[data-tone="stale"] { --edge-ink: var(--diagram-stale); }
288
+ .diagram-edge[data-tone="proposed"] .edge-line, .diagram-edge[data-tone="proposed"] .edge-line-secondary { stroke-dasharray: 6 4; }
289
+ .diagram-edge[data-tone="stale"] .edge-line, .diagram-edge[data-tone="stale"] .edge-line-secondary { stroke-dasharray: 2 5; }
290
+ .diagram-edge[data-selected="true"], .diagram-edge.is-focused { --edge-primary-width: 3.5; --edge-secondary-width: 2.2; --edge-ink: var(--diagram-focus); }
291
+ .arrow-observed { fill: var(--diagram-edge); }
292
+ .arrow-proposed { fill: var(--amber); }
293
+ .arrow-stale { fill: var(--diagram-stale); }
294
+ .live-sidebar { min-width: 0; max-height: min(920px, 90vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-left: 1px solid var(--line); }
295
+ .sidebar-hooks { padding: 14px 17px 12px; border-bottom: 1px solid var(--line); }
296
+ .sidebar-hooks > summary { display: flex; align-items: center; gap: 10px; min-height: 30px; cursor: pointer; list-style: none; }
297
+ .sidebar-hooks > summary::-webkit-details-marker { display: none; }
298
+ .sidebar-hooks > summary::after { content: "›"; color: var(--muted); font-size: 21px; line-height: 1; transform: rotate(90deg); }
299
+ .sidebar-hooks:not([open]) > summary::after { transform: rotate(0deg); }
300
+ .sidebar-title { display: flex; align-items: center; gap: 9px; flex: 1; font-size: 12px; font-weight: 650; }
301
+ .sidebar-count { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
302
+ .hook-live-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; color: var(--teal); background: var(--teal); }
303
+ .hook-live-dot[data-state="waiting"] { color: var(--muted); background: var(--muted); }
304
+ .sidebar-note { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 6px 0 10px; }
305
+ .sidebar-empty { color: var(--muted); font-size: 11px; line-height: 1.6; padding: 11px 0 5px; }
306
+ .hook-receipts { list-style: none; margin: 0; padding: 0; max-height: 190px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
307
+ .hook-receipt { padding: 9px 0; border-top: 1px solid var(--line); }
308
+ .hook-receipt-heading { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
309
+ .hook-receipt-heading strong { font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
310
+ .hook-receipt-heading time { font-size: 9px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
311
+ .hook-receipt-meta { display: flex; justify-content: space-between; gap: 9px; padding-left: 13px; margin-top: 3px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
312
+ .hook-receipt-meta span:last-child { flex-shrink: 0; }
313
+ .hook-outcome { display: block; padding-left: 13px; color: var(--amber); font-size: 9px; }
314
+ .sidebar-history { padding: 14px 17px 16px; border-bottom: 1px solid var(--line); }
315
+ .sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
316
+ .sidebar-heading h2 { font-size: 12px; font-weight: 650; }
317
+ .diagram-changes { list-style: none; padding: 0; margin: 0; max-height: 335px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
318
+ .diagram-change { padding: 11px 1px 13px; border-top: 1px solid var(--line); }
319
+ .change-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
320
+ .change-heading time { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
321
+ .change-revision { background: none; border: 0; border-radius: 3px; color: var(--blue); min-height: 29px; padding: 2px 3px; margin-left: -3px; font-size: 11px; }
322
+ .change-totals, .change-baseline-note, .change-gap, .change-overflow { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 2px 0 7px; }
323
+ .change-overflow { margin: 7px 0 0; }
324
+ .change-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; list-style: none; padding: 0; margin: 0; }
325
+ .change-tile { grid-column: span 2; min-width: 0; border: 1px solid var(--node-ink); border-radius: 3px 5px 3px 4px; background: var(--node-fill, var(--role-module)); }
326
+ .change-tile:nth-child(3n + 2) { border-radius: 5px 2px 4px 3px; }
327
+ .change-tile[data-type="edge"] { grid-column: span 4; background: var(--white); }
328
+ .change-tile[data-change="removed"] { border-style: dashed; }
329
+ .change-tile[data-change="changed"] { border-bottom-width: 3px; }
330
+ .change-item { display: flex; align-items: center; width: 100%; height: 100%; text-align: left; gap: 5px; padding: 6px 5px; background: none; color: var(--ink); border: 0; border-radius: inherit; min-height: 57px; }
331
+ .change-item:disabled, .change-revision:disabled { opacity: 1; cursor: default; }
332
+ .change-item:hover:not(:disabled), .change-revision:hover:not(:disabled) { background: var(--soft); }
333
+ .sidebar-history :is(button, summary):focus-visible { outline-color: var(--diagram-focus); outline-offset: -3px; }
334
+ .change-item-copy { display: flex; flex-direction: column; min-width: 0; }
335
+ .change-verb { font-size: 9px; font-weight: 600; color: var(--teal); white-space: nowrap; }
336
+ .change-tile[data-change="removed"] .change-verb { color: var(--red); }
337
+ .change-tile[data-change="changed"] .change-verb { color: var(--amber); }
338
+ .change-item-copy strong { font-size: 10px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
339
+ .change-item-kind { color: var(--muted); font-size: 9px; margin-top: 1px; font-weight: 400; }
340
+ .change-miniature { flex: 0 0 33px; width: 33px; height: 29px; overflow: visible; }
341
+ .miniature-outline { fill: var(--node-fill, var(--role-module)); stroke: var(--node-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
342
+ .miniature-second { fill: none; stroke-width: 2; }
343
+ .miniature-detail, .miniature-edge { fill: none; stroke: var(--node-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
344
+ .diagram-change.is-new-revision { animation: revision-arrival 260ms ease-out both; }
345
+ @keyframes revision-arrival {
346
+ from { opacity: .4; transform: translateY(-9px) scale(.98); }
347
+ to { opacity: 1; transform: translateY(0) scale(1); }
348
+ }
349
+ .inspector { padding: 19px 21px; min-width: 0; }
350
+ .inspector-header { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 8px; margin-bottom: 18px; }
351
+ .inspector-header h2 { font-size: 12px; font-weight: 600; color: var(--muted); }
352
+ .inspector-empty { padding-top: 0; }
353
+ .inspector-glyph { display: none; }
354
+ .inspector h3 { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.5px; overflow-wrap: anywhere; margin-bottom: 11px; }
355
+ .inspector p { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.65; }
356
+ .inspector-empty h3 { font-size: 18px; margin-bottom: 8px; }
357
+ .inspector-empty p { font-size: 11px; margin-bottom: 8px; }
358
+ .inspector .inspector-hint { font-size: 10px; margin-top: 8px; }
359
+ .claim-type { font-size: 10px; color: var(--blue); margin-bottom: 7px; }
360
+ .claim-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 15px; }
361
+ .badge { border-radius: 4px; padding: 3px 7px; font-size: 10px; background: var(--soft); color: #234caf; }
362
+ .badge[data-tone="proposed"] { color: #80500b; background: #fff5df; }
363
+ .badge[data-tone="stale"] { color: #526178; background: #edf0f5; }
364
+ .evidence-facts { margin: 0 0 17px; font-size: 11px; }
365
+ .evidence-facts div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid #edf1f7; }
366
+ .evidence-facts dt { color: var(--muted); }
367
+ .evidence-facts dd { margin: 0; overflow-wrap: anywhere; }
368
+ .inspector h4 { font-size: 12px; font-weight: 650; margin: 18px 0 7px; }
369
+ .confidence-list { list-style: none; padding: 0; margin: 0 0 8px; font-size: 11px; }
370
+ .confidence-list li { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0; }
371
+ .confidence-list strong { font-variant-numeric: tabular-nums; }
372
+ .inspector .fine-print { font-size: 10px; line-height: 1.6; }
373
+ .source-list { list-style: none; padding: 0; margin: 0; }
374
+ .source-reference { padding: 1px 0 1px 11px; border-left: 2px solid var(--line); margin: 14px 0; font-size: 11px; overflow-wrap: anywhere; }
375
+ .source-reference strong { display: block; font-size: 11px; margin-bottom: 4px; }
376
+ .source-reference span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
377
+ .source-reference summary { color: var(--blue); cursor: pointer; font-size: 11px; margin-top: 8px; }
378
+ .source-reference pre { font: 11px/1.6 ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 9px 0 0; border-radius: 4px; padding: 9px; background: var(--paper); max-height: 220px; overflow: auto; tab-size: 2; }
379
+ .related-event { width: 100%; padding: 6px 0; text-align: left; font-size: 11px; color: var(--blue); background: none; border: 0; font-weight: 500; }
380
+ .playback { border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(100px, 1fr) minmax(190px, 290px); align-items: center; gap: 22px; padding: 14px 21px; }
381
+ .mode-buttons { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
382
+ .mode-buttons button { border: 0; background: transparent; color: var(--muted); min-height: 31px; font-size: 12px; border-radius: 4px; }
383
+ .mode-buttons button[aria-pressed="true"] { color: var(--blue); background: var(--white); box-shadow: 0 1px 4px #16324e12; }
384
+ .scrubber { display: flex; align-items: center; gap: 12px; min-width: 0; }
385
+ .scrubber input { accent-color: var(--blue); min-width: 20px; width: 100%; cursor: pointer; }
386
+ .scrubber output { font-size: 11px; white-space: nowrap; min-width: 60px; color: var(--muted); font-variant-numeric: tabular-nums; }
387
+ #replay-note { font-size: 10px; color: var(--muted); text-align: right; }
388
+ .activity-section { padding-top: 24px; }
389
+ .activity-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 13px; }
390
+ .activity-heading h2 { font-size: 17px; letter-spacing: -.3px; font-weight: 600; }
391
+ .activity-heading p { font-size: 11px; color: var(--muted); margin-top: 3px; }
392
+ #activity-count { color: var(--muted); font-size: 11px; }
393
+ .activity-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-height: 330px; overflow-y: auto; scrollbar-width: thin; }
394
+ .activity-item { border-bottom: 1px solid var(--line); }
395
+ .activity-row { display: grid; grid-template-columns: 74px 9px minmax(130px, 1fr) minmax(80px, auto) 100px; gap: 15px; align-items: center; padding: 11px 10px; width: 100%; border: 0; border-radius: 0; background: none; font-size: 12px; font-weight: 400; text-align: left; }
396
+ .activity-row time { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
397
+ .activity-row .event-title { font-weight: 550; overflow-wrap: anywhere; }
398
+ .event-dot { width: 6px; height: 6px; border-radius: 50%; background: #8598b0; }
399
+ .event-dot[data-state="succeeded"] { background: var(--teal); }
400
+ .event-dot[data-state="failed"] { background: var(--red); }
401
+ .event-dot[data-state="pending"], .event-dot[data-state="unresolved"], .event-dot[data-state="interrupted"] { background: var(--amber); }
402
+ .event-detail { color: var(--muted); font-size: 10px; text-align: right; }
403
+ .event-state { color: var(--muted); text-align: right; font-size: 11px; }
404
+ .activity-empty { padding: 25px 22px; color: var(--muted); font-size: 12px; border: 1px dashed #bbcee6; border-radius: 8px; }
405
+ .activity-item.is-focused { background: #eaf0fc; }
406
+ footer { border-top: 1px solid var(--line); margin-top: 28px; padding: 18px 0 24px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 10px; }
407
+ footer span { margin: 0 8px; color: #91a7c3; }
408
+ .toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 8px; font-size: 12px; z-index: 10; max-width: calc(100vw - 32px); box-shadow: 0 6px 30px #16324e20; }
409
+ .connection-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 25px 28px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); box-shadow: 0 24px 100px #16324e30; overflow-y: auto; }
410
+ .connection-dialog::backdrop { background: #10284280; }
411
+ .connection-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
412
+ .connection-dialog-header h2 { font-size: 23px; font-weight: 650; letter-spacing: -.5px; }
413
+ .connection-dialog-header button { min-height: 40px; font-size: 12px; }
414
+ .connection-dialog p { color: var(--muted); font-size: 12px; line-height: 1.65; margin-bottom: 12px; }
415
+ .connection-project { font: 11px/1.65 ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; padding: 9px 11px; background: var(--paper); border-radius: 5px; }
416
+ .connection-instruction { padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--line); }
417
+ .connection-instruction h3 { font-size: 17px; font-weight: 650; margin-bottom: 7px; }
418
+ .connection-steps { margin: 12px 0 0; padding-left: 22px; }
419
+ .connection-steps > li { margin: 14px 0 19px; padding-left: 3px; }
420
+ .connection-steps > li::marker { font-size: 12px; color: var(--muted); }
421
+ .connection-step-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 7px; }
422
+ .connection-step-heading h4 { margin: 0; font-size: 13px; font-weight: 600; }
423
+ .connection-step-heading button { font-size: 11px; padding: 5px 12px; min-height: 34px; flex-shrink: 0; }
424
+ .connection-steps pre { margin: 7px 0 0; padding: 12px 14px; font: 12px/1.7 ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
425
+ .connection-steps code { font: inherit; }
426
+ .connection-steps pre:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
427
+ .connection-dialog .connection-error { color: var(--red); }
428
+ .connection-loading, .connection-empty { padding: 18px 0; }
429
+ .connection-notes { font-size: 12px; color: var(--muted); margin: 18px 0 0; padding: 15px 0 0 19px; border-top: 1px solid var(--line); }
430
+ .connection-notes li { padding-left: 2px; margin: 5px 0; }
431
+ .connection-dialog .connection-copy-status { min-height: 20px; margin: 15px 0 0; color: var(--teal); font-size: 11px; }
432
+ .diagnostics-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 24px 27px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); box-shadow: 0 24px 100px #16324e30; overflow-y: auto; }
433
+ .diagnostics-dialog::backdrop { background: #10284280; }
434
+ .diagnostics-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
435
+ .diagnostics-header h2 { font-size: 23px; font-weight: 650; letter-spacing: -.5px; }
436
+ .diagnostics-header button { min-height: 40px; font-size: 12px; }
437
+ #diagnostics-intro { font-size: 13px; margin-bottom: 5px; }
438
+ .diagnostics-note { font-size: 11px; line-height: 1.65; color: var(--muted); margin: 5px 0; }
439
+ .diagnostics-filters { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, 240px) auto; gap: 12px; align-items: end; padding: 19px 0 14px; }
440
+ .diagnostics-filters label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); min-width: 0; }
441
+ .diagnostics-filters input, .diagnostics-filters select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 12px; }
442
+ .diagnostics-filters input::placeholder { color: var(--muted); opacity: 1; }
443
+ .diagnostics-filters button { min-height: 40px; font-size: 12px; }
444
+ .diagnostics-error { margin: 8px 0 12px; padding: 11px 13px; font-size: 12px; line-height: 1.6; color: #85223a; background: #fff1f4; border-left: 3px solid #b33750; }
445
+ .diagnostics-empty { padding: 26px 15px; margin: 12px 0; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 13px; }
446
+ .diagnostics-records { margin-top: 12px; border-top: 1px solid var(--line); }
447
+ .diagnostics-record { border-bottom: 1px solid var(--line); }
448
+ .diagnostics-record > summary { padding: 13px 10px 13px 25px; position: relative; list-style: none; cursor: pointer; border-radius: 3px; }
449
+ .diagnostics-record > summary::-webkit-details-marker { display: none; }
450
+ .diagnostics-record > summary::before { content: "›"; position: absolute; left: 6px; top: 12px; font-size: 20px; line-height: 1.15; color: var(--blue); }
451
+ .diagnostics-record[open] > summary::before { transform: rotate(90deg); }
452
+ .diagnostics-record > summary:hover, .diagnostics-record[open] > summary { background: var(--paper); }
453
+ .diagnostics-record-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 11px; }
454
+ .diagnostics-record-heading strong { font-size: 12px; font-weight: 600; flex: 1; min-width: min(200px, 100%); overflow-wrap: anywhere; }
455
+ .diagnostics-record-heading time { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
456
+ .diagnostics-stage { font-size: 10px; font-weight: 650; color: #234caf; background: #eaf0fc; border: 1px solid #c3d3f0; border-radius: 4px; padding: 2px 6px; }
457
+ .diagnostics-stage[data-stage="skip"] { color: #744807; background: #fff7e6; border-color: #e6cb96; }
458
+ .diagnostics-stage[data-stage="apply"] { color: #165d53; background: #edf7f2; border-color: #b6d8cb; }
459
+ .diagnostics-record-path { display: block; color: var(--ink); font-size: 12px; line-height: 1.6; margin-top: 6px; overflow-wrap: anywhere; }
460
+ .diagnostics-record-meta { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 3px; overflow-wrap: anywhere; }
461
+ .diagnostics-detail { padding: 15px 13px 20px 25px; }
462
+ .diagnostics-detail h3 { font-size: 12px; font-weight: 650; margin: 17px 0 8px; }
463
+ .diagnostics-facts { margin: 0 0 16px; font-size: 11px; }
464
+ .diagnostics-facts > div { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 10px; padding: 4px 0; }
465
+ .diagnostics-facts dt { color: var(--muted); }
466
+ .diagnostics-facts dd { margin: 0; overflow-wrap: anywhere; }
467
+ .diagnostics-table-wrap { overflow-x: auto; max-width: 100%; }
468
+ .diagnostics-detail table { width: 100%; border-collapse: collapse; font-size: 11px; line-height: 1.55; text-align: left; }
469
+ .diagnostics-detail th { color: var(--muted); font-weight: 600; background: var(--paper); }
470
+ .diagnostics-detail th, .diagnostics-detail td { padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; min-width: 85px; max-width: 300px; }
471
+ .diagnostics-detail th:first-child, .diagnostics-detail td:first-child { min-width: 155px; }
472
+ .diagnostics-detail pre { max-height: 300px; overflow: auto; margin: 9px 0 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; font: 11px/1.65 ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
473
+ .diagnostics-detail pre:focus-visible, .diagnostics-table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
474
+ .diagnostics-footer { padding-top: 13px; }
475
+ .diagnostics-log-path { color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; margin: 8px 0 0; }
476
+ .screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
477
+
478
+ @media (min-width: 1450px) {
479
+ .workspace-body { grid-template-columns: minmax(0, 1fr) 345px; }
480
+ .inspector { padding: 19px 25px; }
481
+ }
482
+ @media (max-width: 1100px) {
483
+ .page { padding: 0 24px; }
484
+ .workspace-body { grid-template-columns: minmax(0, 1fr) 280px; }
485
+ .status-strip { align-items: start; }
486
+ .classification-status { max-width: 62%; }
487
+ .coverage-status { gap: 4px; flex-direction: column; }
488
+ .inspector { padding: 17px; }
489
+ .playback { gap: 16px; grid-template-columns: auto 1fr; }
490
+ #replay-note { grid-column: 2; margin-top: -9px; text-align: left; }
491
+ .drawing-toolbar { padding: 15px 15px 0; }
492
+ .layout-toolbar { padding-right: 15px; padding-left: 15px; }
493
+ .drawing-heading { gap: 3px 10px; }
494
+ .drawing-footer { padding-right: 15px; padding-left: 15px; }
495
+ .diagram-note { padding-left: 15px; }
496
+ }
497
+ @media (max-width: 1000px) {
498
+ .workspace-body { grid-template-columns: 1fr; }
499
+ .live-sidebar { border-left: 0; border-top: 1px solid var(--line); max-height: 640px; }
500
+ .inspector { padding: 17px 21px; }
501
+ .change-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
502
+ .inspector-header { margin-bottom: 8px; }
503
+ .inspector-empty { padding-top: 5px; }
504
+ .inspector-glyph { display: none; }
505
+ .inspector-empty h3 { font-size: 18px; margin-bottom: 6px; }
506
+ .inspector-empty p { max-width: 65ch; margin-bottom: 7px; }
507
+ .inspector-empty .inspector-hint { margin-top: 5px; }
508
+ }
509
+ @media (max-width: 800px) {
510
+ .page { padding: 0 18px; }
511
+ .masthead { min-height: 74px; }
512
+ .intro { padding: 22px 0; align-items: start; }
513
+ .intro .project-label { max-width: 130px; padding-top: 4px; }
514
+ .diagram-stage { min-height: 360px; height: 46vh; }
515
+ .drawing-footer { padding-top: 7px; }
516
+ .status-strip { padding: 11px 16px; }
517
+ .workspace-toolbar { padding: 13px 16px; }
518
+ .session-picker select { max-width: 32vw; min-width: 130px; }
519
+ .session-actions button { padding: 8px 10px; }
520
+ .activity-row { grid-template-columns: 64px 6px minmax(100px, 1fr) 80px; gap: 10px; }
521
+ .event-detail { display: none; }
522
+ }
523
+ @media (max-width: 550px) {
524
+ .change-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
525
+ .diagnostics-dialog { padding: 19px 15px; width: calc(100% - 20px); max-height: calc(100dvh - 24px); }
526
+ .diagnostics-header h2 { font-size: 21px; }
527
+ .diagnostics-filters { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
528
+ .diagnostics-filters label:first-child { grid-column: 1 / -1; }
529
+ .diagnostics-record > summary { padding-right: 4px; }
530
+ .diagnostics-record-heading time { width: 100%; }
531
+ .diagnostics-detail { padding-left: 10px; padding-right: 2px; }
532
+ .diagnostics-facts > div { grid-template-columns: 105px minmax(0, 1fr); gap: 8px; }
533
+ .connection-dialog { padding: 19px 17px; width: calc(100% - 20px); max-height: calc(100dvh - 24px); }
534
+ .connection-dialog-header h2 { font-size: 21px; }
535
+ .connection-steps { padding-left: 18px; }
536
+ .connection-steps pre { padding: 10px; font-size: 11px; }
537
+ .connection-step-heading button { min-height: 40px; }
538
+ .page { padding: 0 12px; }
539
+ .brand { font-size: 25px; gap: 10px; }
540
+ .brand-mark { height: 25px; width: 25px; }
541
+ .connection { font-size: 10px; gap: 5px; max-width: 54%; flex-wrap: wrap; justify-content: flex-end; }
542
+ #connection-label { max-width: 145px; text-align: right; }
543
+ .connection .text-button { min-height: 26px; padding: 0 2px; font-size: 10px; }
544
+ .intro { display: block; padding: 22px 2px 18px; }
545
+ h1 { font-size: 27px; letter-spacing: -.8px; }
546
+ .intro p { font-size: 12px; max-width: 38ch; }
547
+ .intro .project-label { max-width: none; text-align: left; font-size: 10px; padding-top: 3px; }
548
+ .demo-notice { flex-direction: column; gap: 3px; font-size: 11px; padding: 11px 13px; }
549
+ .workspace { border-radius: 9px; }
550
+ .workspace-toolbar { flex-wrap: wrap; gap: 10px; padding: 12px; }
551
+ .session-picker { width: 100%; }
552
+ .session-picker select { flex: 1; max-width: none; min-width: 0; min-height: 43px; }
553
+ .session-actions { width: 100%; }
554
+ .session-actions button { flex: 1; min-height: 43px; }
555
+ .status-strip { flex-direction: column; align-items: start; gap: 8px; padding: 11px 13px; }
556
+ .classification-status { max-width: none; font-size: 10px; gap: 6px; }
557
+ #capture-note { flex-basis: 100%; padding-left: 13px; }
558
+ .coverage-status { flex-direction: row; text-align: left; gap: 5px 14px; font-size: 10px; max-width: none; }
559
+ .drawing-toolbar { padding: 10px 10px 0; gap: 7px; align-items: start; }
560
+ .layout-toolbar { padding: 10px 12px 3px; gap: 9px; }
561
+ .layout-toolbar select, .layout-toolbar button { min-height: 40px; }
562
+ .auto-arrange { min-height: 30px; }
563
+ .shape-key { padding-right: 12px; padding-left: 12px; }
564
+ .drawing-heading { display: flex; flex-direction: column; padding-top: 8px; gap: 3px; }
565
+ .drawing-heading h2 { font-size: 11px; }
566
+ #revision { font-size: 10px; }
567
+ .zoom-controls { gap: 0; }
568
+ .zoom-controls button { min-width: 30px; min-height: 44px; }
569
+ .zoom-controls #fit { min-width: 36px; min-height: 36px; margin-left: 2px; }
570
+ #zoom-level { min-width: 31px; font-size: 9px; }
571
+ .diagram-stage { height: 350px; min-height: 350px; }
572
+ .empty-canvas { padding: 24px; }
573
+ .empty-canvas h3 { font-size: 21px; }
574
+ .empty-canvas p { font-size: 12px; }
575
+ .legend { gap: 7px 13px; }
576
+ .drawing-footer { padding: 9px 12px 5px; gap: 8px; font-size: 9px; }
577
+ .diagram-note { padding: 0 12px 12px; font-size: 9px; }
578
+ .inspector { padding: 13px 16px; }
579
+ .playback { padding: 12px; gap: 9px; grid-template-columns: 1fr; }
580
+ .mode-buttons { justify-self: start; }
581
+ .mode-buttons button { min-height: 40px; min-width: 63px; }
582
+ .scrubber input { min-height: 35px; }
583
+ #replay-note { grid-column: 1; margin-top: -3px; }
584
+ .activity-heading h2 { font-size: 16px; }
585
+ .activity-heading p { font-size: 10px; max-width: 30ch; }
586
+ .activity-row { grid-template-columns: 57px 5px minmax(60px, 1fr) 68px; gap: 7px; padding: 12px 3px; font-size: 11px; }
587
+ .activity-row time, .event-state { font-size: 9px; }
588
+ .activity-empty { padding: 18px; font-size: 11px; }
589
+ footer { flex-direction: column; gap: 5px; margin-top: 22px; }
590
+ }
591
+ @media (prefers-reduced-motion: reduce) {
592
+ *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
593
+ }