@jossuealcala/madre 1.1.2 → 1.1.3

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 (101) hide show
  1. package/CHANGELOG.en.md +21 -1
  2. package/CHANGELOG.md +21 -1
  3. package/README.en.md +3 -3
  4. package/README.md +3 -3
  5. package/SECURITY.md +11 -6
  6. package/bin/madre.mjs +74 -11
  7. package/docs/REFERENCE.md +13 -7
  8. package/docs/SDK.md +8 -8
  9. package/docs/en/REFERENCE.md +10 -6
  10. package/docs/en/SDK.md +8 -8
  11. package/docs/en/training/README.md +1 -1
  12. package/docs/sdk/connector-module.mjs +1 -1
  13. package/docs/sdk/hello-module.mjs +1 -1
  14. package/docs/training/README.md +1 -1
  15. package/docs/training/train.sh +3 -0
  16. package/package.json +4 -2
  17. package/public/activity.js +9 -0
  18. package/public/app.js +988 -171
  19. package/public/attribution.js +9 -0
  20. package/public/brands.js +27 -13
  21. package/public/en.js +1 -2
  22. package/public/es.js +834 -257
  23. package/public/index.html +3 -0
  24. package/public/macroverso.js +24 -5
  25. package/public/manual-content.js +32 -2
  26. package/public/market-view.js +116 -9
  27. package/public/market.js +15 -0
  28. package/public/news-scenes.js +185 -0
  29. package/public/notices.js +66 -0
  30. package/public/power.js +1 -1
  31. package/public/resay.js +3 -0
  32. package/public/salas-mac.css +229 -26
  33. package/public/salas-mac.html +3 -0
  34. package/public/salas-mac.js +454 -37
  35. package/public/styles.css +393 -17
  36. package/public/tips.js +124 -0
  37. package/public/tour-chapters.js +75 -75
  38. package/public/tour.js +36 -8
  39. package/public/troubleshooting.js +215 -22
  40. package/public/welcome-scene.js +358 -0
  41. package/public/welcome.js +514 -273
  42. package/src/adapters/gemini-rest.mjs +236 -0
  43. package/src/adapters/gemini.mjs +9 -7
  44. package/src/adapters/grok.mjs +288 -0
  45. package/src/adapters/process.mjs +14 -3
  46. package/src/auth-probe.mjs +32 -0
  47. package/src/bridge/policy.mjs +1 -1
  48. package/src/capabilities.mjs +30 -0
  49. package/src/checkpoint.mjs +115 -1
  50. package/src/codex-route.mjs +113 -0
  51. package/src/credentials.mjs +46 -8
  52. package/src/dataset.mjs +18 -7
  53. package/src/event-store.mjs +10 -2
  54. package/src/ficha.mjs +142 -0
  55. package/src/files.mjs +36 -2
  56. package/src/lease.mjs +5 -0
  57. package/src/market-check.mjs +1 -1
  58. package/src/market-remote.mjs +135 -1
  59. package/src/mcp/image-server.mjs +1 -1
  60. package/src/mcp/memory-server.mjs +10 -0
  61. package/src/memory-tools.mjs +3 -0
  62. package/src/memory.mjs +29 -4
  63. package/src/models.mjs +21 -3
  64. package/src/modules/ahp.mjs +8 -3
  65. package/src/modules/bishop-exam.mjs +41 -12
  66. package/src/modules/bishop.mjs +2 -2
  67. package/src/modules/choices.mjs +12 -10
  68. package/src/modules/fetch-alone.mjs +7 -0
  69. package/src/modules/helpers.mjs +23 -5
  70. package/src/modules/image-studio.mjs +13 -27
  71. package/src/modules/index.mjs +54 -11
  72. package/src/modules/isolated.mjs +160 -0
  73. package/src/modules/ollama.mjs +35 -6
  74. package/src/modules/playwright.mjs +46 -17
  75. package/src/modules/run-alone.mjs +122 -0
  76. package/src/modules/runs.mjs +11 -8
  77. package/src/modules/sdk.mjs +4 -2
  78. package/src/notices-key.mjs +8 -0
  79. package/src/notices.mjs +185 -0
  80. package/src/ollama.mjs +57 -15
  81. package/src/outbound.mjs +45 -8
  82. package/src/room/archivist.mjs +30 -5
  83. package/src/room/busy.mjs +16 -0
  84. package/src/room/control.mjs +36 -6
  85. package/src/room/guard.mjs +32 -2
  86. package/src/room/prompt.mjs +32 -5
  87. package/src/room/vectors.mjs +7 -1
  88. package/src/room.mjs +94 -28
  89. package/src/router.mjs +1 -1
  90. package/src/runs.mjs +39 -0
  91. package/src/runtime-detection.mjs +46 -6
  92. package/src/salas.mjs +151 -15
  93. package/src/server.mjs +577 -80
  94. package/src/service.mjs +116 -0
  95. package/src/setup-trouble.mjs +20 -1
  96. package/src/skill-check.mjs +269 -0
  97. package/src/skills-import.mjs +128 -0
  98. package/src/skills.mjs +492 -0
  99. package/src/tour.mjs +14 -3
  100. package/src/whats-new.mjs +48 -0
  101. package/src/rumbo.mjs +0 -337
@@ -132,6 +132,11 @@ body.salas-mac {
132
132
  .sm-topbar.is-tighter .sm-barkey > span { display: none; }
133
133
  .sm-topbar.is-tighter .sm-barkey { padding: 0 8px; }
134
134
  .sm-topbar.is-tightest .sm-tb-agents { display: none; }
135
+ /* The tour's pill steps out of a bar that cannot hold it, as it does from a project's bar (styles.css,
136
+ 560 px); the tour goes on from Settings › Projects. At 375 px it pushed Market and Modules under the
137
+ right group and off the screen, and the page scrolled sideways (2026-11-06, responsive review). */
138
+ .sm-topbar.is-tighter .tour-pill-slot { display: none !important; }
139
+ @media (max-width: 560px) { .sm-topbar .tour-pill-slot { display: none !important; } }
135
140
  /* The bar's keys are the room's bar keys (styles.css, .mother-button, .tree-button, .stop-all). */
136
141
  .sm-barkey, .sm-stop { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border: 0; border-radius: 6px; font-family: var(--read); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; }
137
142
  .sm-barkey svg, .sm-stop svg { width: var(--ico-sm); height: var(--ico-sm); }
@@ -793,7 +798,7 @@ dialog.sm-sheet.sm-settings > .sm-sheet-body { margin-block: 0 auto; }
793
798
  .sm-settings-body > .settings-board { align-self: stretch; overflow: hidden auto; overscroll-behavior: contain; }
794
799
  .sm-settings-body > .settings-results { align-self: stretch; overflow: hidden auto; overscroll-behavior: contain; }
795
800
  .sm-settings-body > .settings-scrim { position: absolute; inset: 0; }
796
- .sm-settings-body > .settings-sheet { position: relative; inset: auto; justify-self: end; align-self: stretch; width: min(580px, 64%); display: flex; flex-direction: column; overflow: hidden; }
801
+ .sm-settings-body > .settings-sheet { position: relative; inset: auto; justify-self: end; align-self: stretch; width: var(--sheet-w, min(580px, 64%)); max-width: calc(100% - 120px); min-width: 360px; display: flex; flex-direction: column; overflow: hidden; }
797
802
  .sm-settings-body .settings-scroll { flex: 1; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; }
798
803
  @container settings (max-width: 700px) { .sm-settings-body > .settings-sheet { width: 100%; } }
799
804
  /* Appearance over the whole window, in two columns when there is room; the wallpapers small enough
@@ -1269,6 +1274,15 @@ dialog.sm-sheet.sm-graph { --sm-sheet-w: min(1120px, 94vw); }
1269
1274
  @media (max-width: 760px) {
1270
1275
  #sm-top > [class*="c-"] { grid-column: 1 / -1; }
1271
1276
  }
1277
+ /* One tile a row, on a phone: each as tall as what it holds, not as the rows it spans on a desk.
1278
+ «Te espera» kept 208 px for two lines, the Coordinator a hundred empty ones (2026-11-06,
1279
+ responsive review). The map draws itself to its tile's height, so it keeps one of its own. */
1280
+ @media (max-width: 560px) {
1281
+ #sm-top.sm-bento { grid-auto-rows: auto; }
1282
+ #sm-top > .sm-tile { grid-row: auto !important; }
1283
+ #sm-top > .sm-tile.sm-fixed > :is(.sm-w-body, .sm-decisions, .sm-attention, .sm-memory-body) { flex: none; overflow: visible; }
1284
+ #sm-top > .sm-links-tile .sm-map { flex: none; min-height: 260px !important; }
1285
+ }
1272
1286
  /* In a tile taller than what it holds, the content sits at the top, as written; it never stretches. */
1273
1287
  #sm-top > .sm-tile.sm-fixed > :is(.sm-w-body, .sm-decisions, .sm-attention, .sm-memory-body) { align-content: start; }
1274
1288
  /* A widget's body is one column the full width of its tile; its own grids divide that width. */
@@ -1877,10 +1891,13 @@ html.home-shell .mk.flat .mk-mine .mk-card-words span { font: 450 12.5px/1.4 var
1877
1891
  html.home-shell .mk.flat .mk-mine .mk-all > span { display: none; }
1878
1892
  html.home-shell .mk.flat .mk-mine .mk-card-head .mk-get { height: 26px; padding: 0 10px; font: 500 12px var(--read); }
1879
1893
  html.home-shell .mk.flat .mk-mine .mk-chips { gap: 6px; padding: 0; }
1880
- html.home-shell .mk.flat .mk-mine .mk-chip { height: 24px; padding: 0 9px; font: 500 12px var(--read); }
1894
+ /* The projects a module is in (1.1, 2026-11-08): the name in the middle of its chip, not stuck to its
1895
+ top, and the chips as tall as the key beside them. */
1896
+ html.home-shell .mk.flat .mk-mine .mk-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; font: 500 12px/1 var(--read); white-space: nowrap; }
1881
1897
  html.home-shell .mk.flat .mk-mine .mk-card-foot { gap: 6px; min-width: 0; padding-left: 0; }
1882
1898
  html.home-shell .mk.flat .mk-mine .mk-card-foot > .mk-chips:empty { display: none; }
1883
- html.home-shell .mk.flat .mk-mine .mk-card-foot > .mk-get { height: 24px; margin-left: auto; padding: 0 10px; font: 500 12px var(--read); }
1899
+ html.home-shell .mk.flat .mk-mine .mk-card-foot { align-items: center; row-gap: 8px; }
1900
+ html.home-shell .mk.flat .mk-mine .mk-card-foot > .mk-get { display: inline-flex; align-items: center; height: 26px; margin-left: auto; padding: 0 11px; font: 500 12px/1 var(--read); }
1884
1901
  html.home-shell .mk.flat .mk-mine .mk-said:empty { display: none; }
1885
1902
 
1886
1903
  /* The Coordinator's summary before there is one (2026-10-28): what will come there, in the middle of
@@ -1983,17 +2000,13 @@ dialog.wl.arriving .wl-window { animation: wl-arrive calc(.7s * var(--motion-sca
1983
2000
  .wl-step.skipped i { box-shadow: inset 0 0 0 1.5px var(--wl-warn); color: var(--wl-warn); }
1984
2001
  .wl-rail-foot { margin: auto 0 0; padding: 12px 10px 2px; font-size: 12px; line-height: 1.45; color: var(--text-3); }
1985
2002
  .wl-main { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
1986
- .wl-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
1987
- /* Solid: the step scrolls under it, and a see-through key showed the text through itself. */
1988
- .wl-close.surface-modes, .wl-close { border-radius: 10px; background: var(--wl-canvas) !important; box-shadow: 0 0 0 1px var(--wl-line), 0 2px 8px -2px rgba(0, 0, 0, .18) !important; }
1989
- .wl-close .surface-mode:not(:hover, :focus-visible) { background: var(--wl-canvas); }
1990
- /* Under the pointer it answers as every ✕ of MADRE does (styles.css, .x-close): it turns, and goes red on a red tint. */
1991
- .wl-close .surface-mode.x-close:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--danger) 12%, var(--wl-canvas)); color: var(--danger); }
2003
+ /* No close key (1.1, 2026-11-08): the welcome is left through its own keys — «Skip for now» on each
2004
+ step and «Go to Home» at the end — never by a corner. Escape does not close it either. */
1992
2005
  .wl-content { display: grid; align-content: start; gap: 12px; min-height: 0; padding: 22px 29px 18px 34px; border: 0 solid transparent; border-width: 8px 5px 0 0; overflow: auto; overscroll-behavior: contain; }
1993
2006
  .wl-content > * { margin: 0; }
1994
2007
  .wl-eyebrow { font-size: 12.5px; color: var(--text-3); }
1995
2008
  .wl-eyebrow.wl-gap { margin-top: 8px; }
1996
- .wl-title { margin: -6px 0 0; padding-right: 40px; font: 600 22px/1.25 var(--read); letter-spacing: -.01em; }
2009
+ .wl-title { margin: -6px 0 0; font: 600 22px/1.25 var(--read); letter-spacing: -.01em; }
1997
2010
  .wl-title:focus { outline: none; }
1998
2011
  .wl-lead { max-width: 62ch; font-size: 14px; color: var(--text-2); }
1999
2012
  .wl-muted { margin: 0; font-size: 13px; color: var(--text-2); }
@@ -2056,8 +2069,9 @@ dialog.wl.arriving .wl-window { animation: wl-arrive calc(.7s * var(--motion-sca
2056
2069
  .wl-path-words small { font-size: 12.5px; color: var(--text-2); }
2057
2070
  .wl-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--wl-acc) 12%, transparent); color: var(--wl-acc); font-size: 11.5px; font-weight: 500; vertical-align: 1px; }
2058
2071
  :root[data-scheme="light"] .wl-badge { color: color-mix(in srgb, var(--wl-acc) 70%, var(--text)); }
2059
- .wl-ai, .wl-memory { display: grid; gap: 12px; }
2072
+ .wl-ai { display: grid; gap: 12px; }
2060
2073
  .wl-flow { display: grid; gap: 8px; }
2074
+ .wl-flow > .wl-btn { justify-self: start; }
2061
2075
  .wl-flow-title { margin-top: 4px; font-weight: 600; }
2062
2076
  .wl-flow-title:first-child { margin-top: 0; }
2063
2077
  .wl-bar { height: 8px; border-radius: 999px; background: var(--wl-hover); overflow: hidden; }
@@ -2095,30 +2109,91 @@ dialog.wl.arriving .wl-window { animation: wl-arrive calc(.7s * var(--motion-sca
2095
2109
  .wl-agent-why { margin: 0 0 4px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
2096
2110
  .wl .sm-agents { display: grid; gap: 8px; }
2097
2111
  .wl .sm-picker { min-width: 0; }
2098
- .wl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
2099
- .wl-next { display: grid; gap: 4px; width: 100%; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
2100
- .wl-next:hover { background: var(--wl-hover); }
2101
- .wl-next:focus-visible { outline: 2px solid var(--wl-acc); outline-offset: 2px; }
2102
- .wl-next b, .wl-train > b { font-weight: 500; }
2103
- .wl-next small { font-size: 12.5px; color: var(--text-2); }
2104
- .wl-train { display: grid; gap: 4px; }
2105
- /* The project to try MADRE (2026-11-01), under the folders; and the two quieter keys beside «Open». */
2106
- .wl-sample { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
2107
- .wl-sample .wl-muted { flex: 1; margin: 0; }
2108
2112
  .wl-keys { display: inline-flex; gap: 8px; }
2109
- .wl-reqs { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
2110
- .wl-reqs li { display: flex; gap: 8px; font-size: 13px; color: var(--text-2); }
2111
- .wl-reqs li::before { content: '·'; color: var(--text-3); }
2113
+ /* THE WELCOME OF 1.1 (2026-11-08, docs/private/BIENVENIDA-1.1.md). Above each step an abstract stage
2114
+ (welcome-scene.js) in the brand book's colours, dark or light as the look on is; under it, one
2115
+ question per step. */
2116
+ .wl-scene { --scene-ground: #050605; --scene-ink: #9bff66; --scene-cap: #9aa197; --scene-edge: rgba(238, 241, 234, .06); position: relative; justify-self: stretch; width: 100%; height: 176px; margin: 0 0 6px; border-radius: 16px; overflow: hidden; background: var(--scene-ground); box-shadow: 0 0 0 1px var(--scene-edge); }
2117
+ /* It follows the look on (welcome-scene.js reads the same data-scheme): ink on a pale ground in the light. */
2118
+ :root[data-scheme="light"] .wl-scene { --scene-ground: #eef0ea; --scene-ink: #2f8a1c; --scene-cap: #5d635b; --scene-edge: rgba(18, 21, 18, .07); }
2119
+ .wl-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
2120
+ .wl-scene-cap { position: absolute; left: 16px; right: 16px; bottom: 12px; display: flex; align-items: center; gap: 9px; margin: 0; color: var(--scene-cap); font: 450 12.5px/1.35 var(--read); pointer-events: none; }
2121
+ .wl-scene-cap::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--scene-ink); }
2122
+ .wl-scene-cap.new span { animation: wl-cap .4s cubic-bezier(.16, 1, .3, 1) both; }
2123
+ @keyframes wl-cap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
2124
+ .wl-hello { display: grid; gap: 12px; justify-items: start; }
2125
+ .wl-hello .wl-title { font-size: 28px; letter-spacing: -.02em; }
2126
+ .wl-more summary, .wl-what summary { cursor: pointer; list-style: none; }
2127
+ .wl-more summary::-webkit-details-marker, .wl-what summary::-webkit-details-marker { display: none; }
2128
+ .wl-more summary { font-size: 12.5px; color: var(--text-3); }
2129
+ .wl-more summary:hover { color: var(--text-2); }
2130
+ .wl-more[open] summary { margin-bottom: 10px; }
2131
+ .wl-more .wl-tiny { margin: 8px 0 0; }
2132
+ .wl-what { padding: 10px 12px; border-radius: 10px; background: var(--wl-hover); font-size: 13px; color: var(--text-2); }
2133
+ .wl-what summary { color: var(--text); font-weight: 500; }
2134
+ .wl-what summary::before { content: '?'; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; background: var(--wl-sel); font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
2135
+ .wl-what p { margin: 8px 0 0; line-height: 1.5; }
2136
+ .wl-section { margin-top: 6px !important; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
2137
+ .wl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
2138
+ .wl-tile { display: grid; align-content: start; gap: 4px; min-height: 84px; padding: 13px 14px; border: 0; border-radius: 12px; background: var(--wl-canvas); box-shadow: 0 0 0 1px var(--wl-line); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .2s ease, background .2s ease; }
2139
+ .wl-tile:hover { background: var(--wl-hover); }
2140
+ .wl-tile:focus-visible { outline: 2px solid var(--wl-acc); outline-offset: 2px; }
2141
+ .wl-tile[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--wl-acc); background: color-mix(in srgb, var(--wl-acc) 8%, var(--wl-canvas)); }
2142
+ .wl-tile b { font-weight: 600; }
2143
+ .wl-tile small { font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
2144
+ .wl-tile:disabled { opacity: .6; cursor: default; }
2145
+ .wl-agent-plan { margin: 0 0 4px; font-size: 13px; line-height: 1.45; color: var(--text); }
2146
+ .wl-agent-notes { display: grid; gap: 2px; }
2147
+ .wl-found { display: grid; gap: 6px; }
2148
+ .wl-found-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-radius: 10px; background: none; box-shadow: 0 0 0 1px var(--wl-line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
2149
+ .wl-found-row:hover { background: var(--wl-hover); }
2150
+ .wl-found-row:focus-visible { outline: 2px solid var(--wl-acc); outline-offset: 2px; }
2151
+ .wl-box { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--text-3); color: transparent; }
2152
+ .wl-box svg { width: 12px; height: 12px; }
2153
+ .wl-found-row[aria-checked="true"] .wl-box { background: var(--wl-acc); box-shadow: none; color: var(--wl-acc-ink); }
2154
+ .wl-found-words { display: grid; min-width: 0; }
2155
+ .wl-found-words b { font-weight: 500; overflow-wrap: anywhere; }
2156
+ .wl-found-words small { font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
2157
+ .wl-from { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
2158
+ .wl-from span { padding: 2px 8px; border-radius: 999px; background: var(--wl-hover); color: var(--text-2); font-size: 11.5px; white-space: nowrap; }
2159
+ .wl-otherways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
2160
+ .wl-coordinator { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border-radius: 12px; box-shadow: 0 0 0 1px var(--wl-line); }
2161
+ .wl-coordinator b { display: block; margin-bottom: 4px; font-weight: 600; }
2162
+ .wl-coordinator p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
2163
+ .wl-coordinator p + p { margin-top: 6px; }
2164
+ .wl-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
2165
+ .wl-model { display: grid; gap: 2px; padding: 11px 13px; border: 0; border-radius: 12px; background: none; box-shadow: 0 0 0 1px var(--wl-line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
2166
+ .wl-model:hover { background: var(--wl-hover); }
2167
+ .wl-model[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--wl-acc); }
2168
+ .wl-model b { font-weight: 500; }
2169
+ .wl-model small { font-size: 12px; color: var(--text-2); }
2170
+ .wl-model-fit { margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
2171
+ .wl-talk-head { display: flex; align-items: center; gap: 10px; }
2172
+ .wl-talk-head b { display: block; font-weight: 600; }
2173
+ .wl-talk-head small { display: block; font-size: 12px; color: var(--text-3); }
2174
+ .wl-talk-head .wl-chip { margin-left: auto; }
2175
+ .wl-talk-card .wl-msg { grid-template-columns: minmax(0, 1fr); gap: 3px; align-items: start; }
2176
+ .wl-msg-meta { padding: 0 4px; font-size: 11.5px; color: var(--text-3); }
2177
+ .wl-arrived { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--wl-acc) 10%, transparent); font-size: 13px; }
2178
+ .wl-arrived .wl-btn { margin-left: auto; }
2179
+ .wl-ideas { display: grid; gap: 8px; }
2180
+ .wl-idea { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--wl-canvas); box-shadow: 0 0 0 1px var(--wl-line); color: var(--text); font: 450 13.5px var(--read); text-align: left; cursor: pointer; }
2181
+ .wl-idea:hover { background: var(--wl-hover); box-shadow: 0 0 0 1px color-mix(in srgb, var(--wl-acc) 45%, transparent); }
2182
+ .wl-idea:focus-visible { outline: 2px solid var(--wl-acc); outline-offset: 2px; }
2183
+ .wl-idea::after { content: '↗'; margin-left: auto; color: var(--text-3); }
2184
+ @media (prefers-reduced-motion: reduce) { .wl-scene-cap.new span { animation: none; } .wl-tile { transition: none; } }
2112
2185
  @media (max-width: 760px) {
2113
2186
  .wl-window { grid-template-columns: 1fr; height: calc(100dvh - 48px); }
2114
2187
  .wl-rail { display: none; }
2115
2188
  }
2116
2189
  @media (max-width: 640px) {
2117
- .wl-split { grid-template-columns: 1fr; }
2118
2190
  .wl-content, .wl-actions { padding-left: 18px; padding-right: 18px; }
2119
2191
  .wl-actions { flex-wrap: wrap; }
2120
2192
  .wl-skipnote { flex-basis: 100%; order: -1; text-align: left; }
2121
- .wl-sample { flex-direction: column; align-items: stretch; }
2193
+ .wl-otherways { grid-template-columns: 1fr; }
2194
+ .wl-found-row { grid-template-columns: 20px minmax(0, 1fr); }
2195
+ .wl-from { grid-column: 2; justify-content: flex-start; }
2196
+ .wl-scene { height: 150px; }
2122
2197
  }
2123
2198
  @media (prefers-reduced-motion: reduce) { .wl-bar > i { transition: none; } }
2124
2199
 
@@ -2283,3 +2358,131 @@ dialog.home-news .wn-card-line { display: block; -webkit-line-clamp: unset; over
2283
2358
  /* «En marcha» on Home's bar (2026-10-30): its number in the key's own badge; the line beats while
2284
2359
  something runs (styles.css, .activity-button). */
2285
2360
  .sm-barkey.activity-button.working { color: var(--s-acc, var(--phosphor)); }
2361
+
2362
+ /* madre-logs (the author's widget, 2026-11-05): four figures, the classes and types as chips, then
2363
+ the errors grouped by level. Each error is its own row: id and level in a column of their own on
2364
+ the left, a hairline between rows, and the level's colour on the row's edge. */
2365
+ .w-madrelogs .sm-w-body { gap: 14px; }
2366
+ .sm-logs-lead { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
2367
+ .sm-logs-fig { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--text) 5%, transparent); }
2368
+ .sm-logs-fig b { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
2369
+ .sm-logs-fig span { font-size: 12px; color: var(--text-2); }
2370
+ .sm-logs-fig.is-due b { color: var(--session-wait, #d9a90f); }
2371
+ .sm-logs-fig.is-busy b { color: var(--s-acc, var(--phosphor)); }
2372
+ .sm-logs-tally { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: start; }
2373
+ .sm-logs-tally-label { padding-top: 3px; font-size: 12px; font-weight: 600; color: var(--text-2); }
2374
+ .sm-logs-chips { display: flex; flex-wrap: wrap; gap: 5px; }
2375
+ .sm-logs-chip { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; color: var(--text-2); background: color-mix(in srgb, var(--text) 7%, transparent); white-space: nowrap; }
2376
+ .sm-logs-group { display: grid; }
2377
+ .sm-logs-group-head { display: flex; align-items: baseline; gap: 8px; padding: 0 0 6px; border-bottom: 1px solid var(--line, color-mix(in srgb, var(--text) 14%, transparent)); font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
2378
+ .sm-logs-group-head small { font-size: 11.5px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
2379
+ summary.sm-logs-group-head { cursor: pointer; list-style: none; }
2380
+ summary.sm-logs-group-head::-webkit-details-marker { display: none; }
2381
+ summary.sm-logs-group-head::before { content: '▸'; margin-right: 2px; }
2382
+ .sm-logs-wait[open] > summary.sm-logs-group-head::before { content: '▾'; }
2383
+ .sm-logs-item {
2384
+ --lv: var(--text-3);
2385
+ display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 10px 0 10px 10px;
2386
+ border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); box-shadow: inset 2px 0 0 var(--lv);
2387
+ }
2388
+ .sm-logs-item:last-child { border-bottom: 0; }
2389
+ .lv-urgent { --lv: var(--danger, #e5484d); }
2390
+ .lv-minor { --lv: var(--session-wait, #d9a90f); }
2391
+ .lv-look { --lv: #5b9cf5; }
2392
+ .lv-watch, .lv-decide { --lv: var(--text-3); }
2393
+ .lv-work { --lv: #8b7cf6; }
2394
+ .lv-done { --lv: var(--session-ok, var(--s-acc)); }
2395
+ .sm-logs-side { display: grid; align-content: start; gap: 4px; }
2396
+ .sm-logs-id { justify-self: start; padding: 0; background: none; font-size: 12.5px; font-weight: 650; color: var(--text); }
2397
+ .sm-logs-level { justify-self: start; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 650; color: var(--lv); background: color-mix(in srgb, var(--lv) 14%, transparent); }
2398
+ .sm-logs-main { display: grid; gap: 5px; min-width: 0; }
2399
+ .sm-logs-top { display: flex; align-items: flex-start; gap: 10px; }
2400
+ .sm-logs-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text); }
2401
+ .sm-logs-state { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 11px; color: var(--text-2); background: color-mix(in srgb, var(--text) 8%, transparent); }
2402
+ .is-en-curso .sm-logs-state { color: var(--s-acc, var(--phosphor)); background: color-mix(in srgb, var(--s-acc, var(--phosphor)) 16%, transparent); }
2403
+ .sm-logs-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--text-3); }
2404
+ /* The agent that has an error or a task: Claude, Codex or Antigravity, each in its own colour. */
2405
+ .sm-logs-agent { --ag: var(--text-2); flex: none; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; color: var(--ag); background: color-mix(in srgb, var(--ag) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag) 40%, transparent); }
2406
+ .sm-logs-agent.ag-claude { --ag: #d97757; }
2407
+ .sm-logs-agent.ag-codex { --ag: #10a37f; }
2408
+ .sm-logs-agent.ag-antigravity { --ag: #5b9cf5; }
2409
+ .sm-logs-working { gap: 0; }
2410
+ .sm-logs-work { display: grid; gap: 3px; padding: 9px 0 9px 10px; border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); box-shadow: inset 2px 0 0 var(--s-acc, var(--phosphor)); }
2411
+ .sm-logs-work:last-child { border-bottom: 0; }
2412
+ .sm-logs-zone { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--text-3); }
2413
+ .sm-logs-work.is-loose { box-shadow: inset 2px 0 0 var(--session-wait, #d9a90f); }
2414
+ .sm-logs-work.is-loose .sm-logs-title { color: var(--session-wait, #d9a90f); }
2415
+ .sm-logs-work.is-done { box-shadow: inset 2px 0 0 var(--text-3); }
2416
+ .sm-logs-work.is-done .sm-logs-title { color: var(--text-2); font-weight: 500; }
2417
+ .sm-logs-when { flex: none; font-size: 11.5px; color: var(--text-3); }
2418
+ .sm-logs-meta code { font-size: 11px; }
2419
+ .sm-logs-move { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); font-size: 12.5px; color: var(--text-2); }
2420
+ .sm-logs-move:last-child { border-bottom: 0; }
2421
+ .sm-logs-move span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2422
+ .sm-logs-move small { flex: none; font-size: 11.5px; color: var(--text-3); }
2423
+ @media (max-width: 640px) { .sm-logs-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
2424
+
2425
+ /* The author's notices widget (Q-11): what is out, then the form with its preview in both languages. */
2426
+ .sm-notice-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
2427
+ .sm-notice-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, rgba(0,0,0,.1)); }
2428
+ .sm-notice-row > small { grid-column: 1; color: var(--text-3, inherit); }
2429
+ .sm-notice-row > button { grid-row: 1 / span 2; grid-column: 2; }
2430
+ .sm-notice-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
2431
+ .sm-notice-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
2432
+ .sm-notice-field > small { color: var(--text-3, inherit); font-size: 11.5px; }
2433
+ .sm-notice-field :is(input, textarea, select) { font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line, rgba(0,0,0,.15)); background: var(--surface, transparent); color: inherit; min-width: 0; }
2434
+ .sm-notice-field textarea { resize: vertical; }
2435
+ .sm-notice-systems { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
2436
+ .sm-notice-preview { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
2437
+ .sm-notice-form > button { justify-self: start; }
2438
+ .sm-notice-said { grid-column: 1 / -1; color: var(--text-3, inherit); }
2439
+ @media (max-width: 720px) { .sm-notice-form, .sm-notice-preview { grid-template-columns: 1fr; } }
2440
+ .sm-notice-form > .sm-notice-field:first-child { grid-column: 1 / -1; max-width: 260px; }
2441
+ .sm-hero .sm-notices { width: 100%; align-self: stretch; }
2442
+
2443
+ /* Secondary keys, quieter (7 Nov): Home's white keys wear the same faint shade as the project's
2444
+ (styles.css, --key-soft); the green ones keep theirs. */
2445
+ .sm-btn:not(.primary):not(.danger):not(.go):not(.quiet):not(.ghost) { box-shadow: var(--key-soft, var(--key-rest)); }
2446
+ .sm-btn:not(.primary):not(.danger):not(.go):not(.quiet):not(.ghost):hover { box-shadow: var(--key-soft-over, var(--key-over)); }
2447
+ .sm-btn:not(.primary):not(.danger):not(.go):not(.quiet):not(.ghost):active { box-shadow: var(--key-down); }
2448
+
2449
+ /* A connection, in order (7 Nov): the pair leads, then what crosses, its terms and its switches,
2450
+ each under a small heading, and at the foot the readings and the way out on one line. */
2451
+ .sm-link-list .sm-link { gap: 14px; padding: 18px 20px; }
2452
+ .sm-link-list .sm-link > .sm-link-kind { font: 600 11.5px var(--read); letter-spacing: .02em; color: var(--s-acc); margin-bottom: -6px; }
2453
+ .sm-link-list .sm-link > .sm-link-pair { padding-bottom: 12px; border-bottom: 1px solid var(--cs-line, var(--line)); }
2454
+ .sm-link-list .sm-link .sm-link-end { width: 34px; height: 34px; }
2455
+ .sm-link-list .sm-link .sm-link-end-words b { font-size: 15px; font-weight: 650; }
2456
+ .sm-link-part { display: grid; gap: 7px; }
2457
+ .sm-link-part-title { font: 600 11.5px var(--read); letter-spacing: .02em; color: var(--text-3); }
2458
+ .sm-link-tags.terms .sm-link-tag { background: transparent; }
2459
+ .sm-link-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
2460
+ .sm-link-foot .traffic { margin: 0; min-width: 0; }
2461
+ .sm-link-list .sm-link > .sm-link-foot .sm-actions { margin: 0; justify-content: flex-end; flex: none; }
2462
+ @media (max-width: 520px) { .sm-link-foot { flex-wrap: wrap; } }
2463
+
2464
+ /* Connections, folded (7 Nov): one even row each — the two ends on either side of a centred arrow,
2465
+ the same widths in every row, its kind, readings and what crosses under it — that unfolds in
2466
+ place. The list is one column, so many connections are read top to bottom without hunting. */
2467
+ .sm-link-list { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
2468
+ .sm-link-list .sm-link { display: block; padding: 0 !important; gap: 0 !important; overflow: hidden; }
2469
+ .sm-link-summary { display: grid; grid-template-columns: minmax(0, 1fr) 28px; grid-template-rows: auto auto; align-items: center; gap: 4px 8px; padding: 12px 16px; list-style: none; cursor: pointer; border-radius: inherit; }
2470
+ .sm-link-summary::-webkit-details-marker { display: none; }
2471
+ .sm-link-summary:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
2472
+ .sm-link-summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--s-acc) 55%, transparent); }
2473
+ .sm-link-summary > .sm-link-pair { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 120px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 !important; border: 0 !important; }
2474
+ .sm-link-summary .sm-link-end-box.left { justify-self: end; flex-direction: row-reverse; text-align: right; }
2475
+ .sm-link-summary .sm-link-end-box.right { justify-self: start; }
2476
+ .sm-link-summary .sm-link-end { width: 30px !important; height: 30px !important; }
2477
+ .sm-link-summary .sm-link-end-words b { font-size: 14px !important; font-weight: 600 !important; }
2478
+ .sm-link-summary .sm-link-arrow { max-width: none; width: 100%; }
2479
+ .sm-link-meta { grid-column: 1; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 8px; font: 450 12px var(--read); color: var(--text-3); }
2480
+ .sm-link-meta b { font-weight: 600; color: var(--s-acc); }
2481
+ .sm-link-meta > span:not(.sm-link-dots)::before { content: '·'; margin-right: 8px; color: var(--text-3); }
2482
+ .sm-link-dots { display: inline-flex; gap: 3px; }
2483
+ .sm-link-dots i { width: 6px; height: 6px; border-radius: 50%; }
2484
+ .sm-link-dots i.k-decision { background: var(--mem-decision); } .sm-link-dots i.k-fact { background: var(--mem-fact); } .sm-link-dots i.k-preference { background: var(--mem-preference); } .sm-link-dots i.k-question { background: var(--mem-question); }
2485
+ .sm-link-chevron { grid-column: 2; grid-row: 1 / span 2; justify-self: end; width: 8px; height: 8px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translateY(-2px); transition: transform calc(160ms * var(--motion-scale, 1)) ease; }
2486
+ .sm-link[open] > .sm-link-summary .sm-link-chevron { transform: rotate(225deg) translate(-2px, 0); }
2487
+ .sm-link[open] > .sm-link-summary { border-bottom: 1px solid var(--cs-line, var(--line)); border-radius: 0; }
2488
+ .sm-link-body { display: grid; gap: 14px; padding: 14px 18px 16px; }
@@ -5,6 +5,9 @@
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>MADRE · Lobby</title>
8
+ <!-- The ficha (src/ficha.mjs): a 401 that asks for it means this tab's was replaced (MADRE started
9
+ again and opened a new one); the page reloads into the page that says where to open MADRE. -->
10
+ <script>(function () { var ask = window.fetch; window.fetch = function () { return ask.apply(this, arguments).then(function (answer) { if (answer.status === 401 && answer.headers.get('x-madre-ficha') === 'needed') location.reload(); return answer; }); }; })();</script>
8
11
  <link rel="icon" type="image/svg+xml" href="/assets/brand/madre-favicon.svg">
9
12
  <link rel="stylesheet" href="/styles.css">
10
13
  <link rel="stylesheet" href="/salas-mac.css">