From 76259c61e40a833f1ebaa7190415c9fadd94478f Mon Sep 17 00:00:00 2001 From: Zhenhao Liu <3100378030@qq.com> Date: Fri, 27 Nov 2026 00:47:48 +0800 Subject: [PATCH 1/3] Polish web workbench typography, card elevation, and S3 kernel receipt styling --- apps/web/client/app.css | 74 ++++++++++++++--------- apps/web/client/research-conversation.css | 12 ++-- apps/web/client/research.css | 71 +++++++++++----------- 3 files changed, 88 insertions(+), 69 deletions(-) diff --git a/apps/web/client/app.css b/apps/web/client/app.css index 02e19c3f..3ca7020f 100644 --- a/apps/web/client/app.css +++ b/apps/web/client/app.css @@ -9,7 +9,7 @@ @font-face{font-family:"TheoremOS Serif SC";src:url("assets/fonts/NotoSerifSC-ui.woff2") format("woff2");font-weight:400 700;font-display:swap;unicode-range:U+3000-303F,U+4E00,U+4E09-4E0B,U+4E0D-4E0E,U+4E13-4E14,U+4E22,U+4E24,U+4E2A,U+4E2D,U+4E34,U+4E3A-4E3B,U+4E45,U+4E48-4E49,U+4E4B,U+4E5F,U+4E86,U+4E8B,U+4E8E,U+4E94,U+4E9B,U+4EA4,U+4EA7,U+4EAB,U+4EBA,U+4EC0,U+4EC5,U+4ECB,U+4ECD-4ECE,U+4ED6,U+4ED8,U+4EE3-4EE5,U+4EEC,U+4EF6-4EF7,U+4EFB,U+4EFD,U+4F18,U+4F1A,U+4F20,U+4F4D,U+4F53,U+4F55,U+4F59,U+4F5C,U+4F60,U+4F7F,U+4F8B,U+4F9B,U+4F9D,U+4FA7,U+4FDD,U+4FE1,U+4FEE,U+5019,U+503C,U+5047,U+505A,U+505C,U+50A8,U+50CF,U+5141,U+5145,U+5148,U+5165,U+5168,U+516C,U+5171,U+5173,U+5176-5177,U+517C,U+5185,U+518C-518D,U+5199,U+51B2-51B3,U+51C6,U+51CF,U+51E0-51E1,U+51ED,U+51FA-51FB,U+51FD,U+5206-5207,U+5212,U+5217,U+5219,U+521B,U+521D,U+5220,U+5224,U+5230,U+5236-5237,U+524D,U+5269-526A,U+526F,U+529B,U+529F-52A1,U+52A8-52A9,U+52FF,U+5305,U+5316,U+5339-533A,U+534A,U+534F,U+5355,U+5357,U+5360,U+5373,U+5386,U+538B,U+539F,U+53C2,U+53CA,U+53CC-53CD,U+53D1,U+53D6-53D8,U+53E0,U+53E3,U+53E5-53E6,U+53EA,U+53EF-53F0,U+53F2-53F3,U+53F7,U+5404,U+5408,U+540C-540E,U+5411,U+5417,U+5426,U+542B,U+542F,U+544A,U+547D,U+548C,U+54A8,U+54C1,U+54C8,U+54CD,U+54EA,U+5546,U+5668,U+56DB,U+56DE,U+56E0,U+56F4,U+56FA,U+56FE,U+5728,U+5730,U+573A,U+5740,U+5747,U+5757,U+578B,U+57DF,U+57FA,U+585E,U+586B,U+5883,U+589E,U+58F0,U+5904,U+5907,U+590D,U+5916,U+591A,U+5927,U+5931,U+5934,U+5939,U+597D,U+5982,U+59CB,U+5B57-5B58,U+5B66,U+5B83,U+5B89,U+5B8C,U+5B98,U+5B9A,U+5B9E,U+5BA1,U+5BB9,U+5BBD,U+5BC6,U+5BDF,U+5BF9,U+5BFC,U+5C06,U+5C0F,U+5C11,U+5C1A,U+5C1D,U+5C31,U+5C3E,U+5C40,U+5C42,U+5C55,U+5C5E,U+5DE5-5DE6,U+5DEE,U+5DF1-5DF2,U+5E03,U+5E0C,U+5E26,U+5E38,U+5E72-5E73,U+5E76,U+5E8F,U+5E93-5E94,U+5EA6,U+5EF6,U+5EFA,U+5F00,U+5F02-5F03,U+5F0F,U+5F15,U+5F20,U+5F3A,U+5F52-5F53,U+5F55,U+5F62,U+5F71,U+5F80,U+5F84-5F85,U+5F97,U+5FAA,U+5FAE,U+5FC3,U+5FC5,U+5FEB,U+5FFD,U+6001,U+601D,U+6027,U+603B,U+6062,U+606F,U+60AC,U+60C5,U+60F3,U+610F,U+611F,U+6210-6211,U+6216,U+622A,U+6237,U+6240,U+624B,U+624D,U+6253,U+6267,U+6269,U+627E,U+628A,U+6295,U+6298,U+62A5,U+62D2,U+62D6,U+62E9,U+62EC,U+6301,U+6307,U+6309,U+6320,U+6355,U+6362,U+636E,U+6392,U+63A2,U+63A5,U+63A8,U+63CF-63D0,U+641C,U+6458,U+64A4,U+64AD,U+64CD,U+652F,U+6536,U+6539,U+653E,U+6545,U+6548,U+654F,U+6563,U+6570,U+6574,U+6587,U+6599,U+65AD,U+65B0,U+65B9,U+65CF,U+65E0,U+65E5,U+65E7,U+65E9,U+65F6,U+660E,U+662F,U+663E,U+666E-666F,U+6682,U+66F4,U+66FC,U+66FF-6700,U+6709,U+670D,U+671B,U+671F,U+672A-672C,U+673A,U+6743,U+6750,U+675F,U+6761,U+6765,U+677F,U+6784,U+6790,U+679C,U+67E5,U+6807,U+680F,U+6821,U+6838-6839,U+683C,U+6846,U+6848,U+6863,U+68C0,U+6982,U+69DB,U+6A21,U+6B21,U+6B62-6B65,U+6BB5,U+6BCD,U+6BCF,U+6BD4,U+6C42,U+6CA1,U+6CBF,U+6CD5,U+6CDB,U+6CE8,U+6D3B,U+6D41,U+6D4B,U+6D4F,U+6D88,U+6DFB,U+6E05,U+6E10,U+6E38,U+6E90,U+6EAF,U+6ED1,U+6EDA,U+6EDE,U+6EE1,U+70B9,U+7136,U+7167,U+7247-7248,U+724C,U+7269,U+72B6,U+72EC,U+731C,U+7387,U+73AF-73B0,U+7406,U+751F,U+7528,U+7531,U+753B,U+754C,U+7559,U+7565,U+7591,U+767B,U+7684,U+76D6,U+76D8,U+76EE,U+76F4,U+76F8,U+770B,U+771F,U+77E5,U+77ED,U+7801,U+7814,U+786E,U+78C1,U+793A,U+79BB,U+79CD,U+79D2,U+79F0,U+79FB,U+7A0B,U+7A0D,U+7A3F,U+7A76,U+7A7A,U+7A81,U+7A97,U+7ACB,U+7AD9,U+7AE0,U+7B26,U+7B2C,U+7B49,U+7B56,U+7B5B,U+7B7E,U+7B80,U+7B97,U+7C7B,U+7C98,U+7CBE,U+7CFB,U+7D22,U+7D2F,U+7E41,U+7EA6-7EA7,U+7EB3,U+7EBF,U+7EC4,U+7EC6-7EC8,U+7ECF,U+7ED1,U+7ED3,U+7ED9,U+7EDC-7EDD,U+7EDF,U+7EE7,U+7EEA,U+7EED,U+7F13,U+7F16,U+7F29,U+7F3A,U+7F51,U+7F6E,U+7F72,U+7FA4,U+8003,U+8005,U+8017,U+8054,U+80FD,U+811A,U+81EA,U+81F3-81F4,U+822A,U+8272,U+8282,U+82F1,U+8303,U+8349,U+83B7,U+85CF,U+884C,U+8865,U+8868,U+88AB,U+88C5,U+8981,U+8986,U+89C1-89C2,U+89C4,U+89C6,U+89C8,U+89D2,U+89E3,U+8BA1,U+8BA4,U+8BA8-8BA9,U+8BAE,U+8BB0,U+8BB2,U+8BB8,U+8BBA,U+8BBE-8BBF,U+8BC1,U+8BC6,U+8BC9-8BCA,U+8BCD,U+8BD1,U+8BD5,U+8BDD,U+8BE2,U+8BE5-8BE6,U+8BED,U+8BEF,U+8BF4,U+8BF7,U+8BFB,U+8C03,U+8C31,U+8C61,U+8D1F,U+8D23,U+8D25-8D26,U+8D28,U+8D34,U+8D39,U+8D44,U+8D56,U+8D77,U+8D85,U+8DB3,U+8DD1,U+8DDF,U+8DE8,U+8DEF,U+8DF3,U+8EAB,U+8F6C,U+8F6E,U+8F7D,U+8F83,U+8F85,U+8F91,U+8F93,U+8FBE,U+8FC1,U+8FC7,U+8FD0-8FD1,U+8FD4,U+8FD8-8FD9,U+8FDB,U+8FDE,U+8FF0,U+8FFD,U+9000-9002,U+9009,U+9010,U+9012,U+9017,U+901A,U+9020,U+903B,U+9047,U+9053,U+90E8,U+90FD,U+914D,U+9192,U+91C7,U+91CA,U+91CC-91CD,U+91CF,U+94A5,U+94FE,U+9500,U+9519,U+952E,U+955C,U+957F,U+95E8,U+95ED-95EE,U+95F2,U+95F4,U+9605,U+9608,U+961F,U+9636,U+963B,U+9644-9645,U+9650,U+9664,U+968F-9690,U+9694,U+969C,U+96C6,U+96F6,U+9700,U+9759,U+975E,U+9762,U+9875,U+9879-987B,U+9884,U+9886,U+9891,U+9898,U+989D,U+9988,U+9996,U+9A8C,U+9AA4,U+9AD8,U+9ECE,U+9ED8,U+FF01-FF5E} @font-face{font-family:"TheoremOS Serif SC";src:url("assets/fonts/NotoSerifSC-ui-extra.woff2") format("woff2");font-weight:400 700;font-display:swap;unicode-range:U+4E07,U+4E1A,U+4E88,U+4E8C,U+4E91,U+4ECA,U+4F30,U+4F46,U+4F4E-4F4F,U+4FB5,U+504F,U+514D,U+5178,U+51BB,U+51C0,U+521A,U+5229,U+522B,U+523B,U+529E,U+52FE,U+5341,U+5361,U+53C8,U+5458,U+552F,U+56E2,U+591C,U+5929-592A,U+5B50,U+5BB6,U+5BBF,U+5C01,U+5C14,U+5C3D,U+5E2E,U+5F39,U+5F88,U+5F8B,U+5FD7-5FD9,U+5FE0,U+600E,U+6162,U+61C2,U+6258,U+6270,U+6279,U+627F-6280,U+62A4,U+62C5-62C6,U+62DF,U+62FF,U+635F,U+6377,U+6388-6389,U+63A7,U+642C,U+643A,U+64B0,U+653B,U+653F,U+6559,U+6597,U+65BD,U+65C1,U+672F,U+6746,U+677E,U+67D0,U+67EF,U+6837,U+684C,U+695A,U+6B3E,U+6B67,U+6C47,U+6D01,U+6D1E,U+6D3E,U+6D45,U+6D89,U+6DF1,U+6F0F,U+72AF,U+732E,U+74E6,U+7533,U+7535,U+767D,U+76F2,U+7740,U+7840,U+788D,U+79C1,U+7A77,U+7AEF,U+7B54,U+7B79,U+7BA1,U+7BB1,U+7D20,U+7EAF,U+7ED5,U+7EF4,U+7FFB,U+800C,U+8111,U+8212,U+82E5,U+8328,U+8425,U+8651,U+865A,U+897F,U+8A00,U+8B66,U+8BA2,U+8BC4,U+8BFA,U+8C01,U+8D21,U+8D70,U+8E2A,U+8F66,U+8F68,U+8FDC-8FDD,U+8FF9,U+9014,U+904D,U+907F-9080,U+90A3,U+90AE,U+91D1,U+9488,U+949F,U+94AE,U+9632,U+963F,U+9648,U+9876,U+9F50} @font-face{font-family:"TheoremOS Serif SC";src:url("assets/fonts/NotoSerifSC-common.woff2") format("woff2");font-weight:400 700;font-display:swap;unicode-range:U+4E01,U+4E03,U+4E08,U+4E11,U+4E16,U+4E18-4E19,U+4E1B-4E1D,U+4E25,U+4E27,U+4E2B,U+4E30,U+4E32,U+4E38-4E39,U+4E3D-4E3E,U+4E43,U+4E4C-4E50,U+4E52-4E54,U+4E56,U+4E58-4E59,U+4E5D-4E5E,U+4E60-4E61,U+4E66,U+4E70-4E71,U+4E73,U+4E7E,U+4E89,U+4E8F,U+4E92,U+4E95,U+4E9A,U+4EA1-4EA2,U+4EA5-4EA6,U+4EA8-4EA9,U+4EAC-4EAE,U+4EB2,U+4EBF,U+4EC1,U+4EC6-4EC7,U+4ED1,U+4ED3-4ED5,U+4ED7,U+4ED9,U+4EDF,U+4EEA,U+4EF0,U+4EF2,U+4EFF,U+4F01,U+4F0A,U+4F0D-4F11,U+4F17,U+4F19,U+4F1E-4F1F,U+4F24,U+4F26,U+4F2A,U+4F2F,U+4F34,U+4F36,U+4F38,U+4F3A,U+4F3C,U+4F43,U+4F50-4F51,U+4F5B,U+4F63,U+4F69,U+4F6C,U+4F6F-4F70,U+4F73,U+4F84,U+4F88,U+4F8D,U+4F97,U+4FA0,U+4FA3,U+4FA5-4FA6,U+4FA8-4FA9,U+4FAE-4FAF,U+4FBF,U+4FC3-4FC4,U+4FCA,U+4FCF-4FD0,U+4FD7-4FD8,U+4FDE,U+4FE9,U+4FED,U+4FEF,U+4FF1,U+4FFA,U+500D,U+5012,U+5014,U+5018,U+501A,U+501F,U+5021,U+5026,U+502A,U+503A,U+503E,U+5065,U+5076-5077,U+507F-5080,U+5085,U+5088,U+508D,U+50A3,U+50AC,U+50B2,U+50BB,U+50DA,U+50E7,U+50F3,U+50F5,U+50FB,U+5112,U+5121,U+513F,U+5143-5144,U+5146,U+5149,U+514B,U+5151,U+5154,U+515A,U+515C,U+5162,U+516B,U+516D,U+5170,U+5174-5175,U+5179,U+517B,U+517D,U+5180,U+5188-5189,U+5192,U+5195,U+5197,U+519B-519C,U+51A0,U+51A4,U+51AC,U+51AF-51B0,U+51B5-51B7,U+51C4,U+51C9,U+51CB-51CC,U+51D1,U+51DB,U+51DD,U+51E4,U+51EF-51F0,U+51F3,U+51F6,U+51F8-51F9,U+51FF-5201,U+5203,U+520A,U+5211,U+5218,U+5228,U+522E,U+5238-523A,U+523D,U+5241-5243,U+524A,U+5250-5251,U+5254,U+5256,U+5265,U+5267,U+5272,U+527F,U+5288,U+529D,U+52A3,U+52AA-52AB,U+52B1-52B3,U+52BF,U+52C3,U+52C7,U+52C9,U+52CB,U+52D2,U+52D8,U+52DF,U+52E4,U+52FA,U+5300,U+5306,U+5308,U+5317,U+5319,U+531D,U+5320-5321,U+5323,U+532A,U+533B,U+533F,U+5343,U+5347-5349,U+534E,U+5351-5353,U+5356,U+535A,U+535C,U+535E,U+5362,U+5364,U+5367,U+536B,U+536F-5371,U+5374-5375,U+5377-5378,U+537F,U+5382,U+5384-5385,U+5389,U+538C,U+5395,U+5398,U+539A,U+53A2,U+53A6,U+53A8-53A9,U+53BB,U+53BF,U+53C1,U+53C9,U+53CB,U+53D4,U+53D9,U+53DB,U+53E4,U+53EB-53EE,U+53F6,U+53F8-53F9,U+53FC,U+5401,U+5403,U+5409-540A,U+540F-5410,U+5413,U+5415,U+541B,U+541D-5420,U+5427-5429,U+542C-542E,U+5431,U+5434-5435,U+5438-5439,U+543B-543C,U+543E,U+5440,U+5446,U+5448,U+5450,U+5455,U+545B-545C,U+5462,U+5468,U+5473,U+5475,U+5478,U+547B-547C,U+5480,U+5486,U+548B,U+548E-5490,U+5492,U+5495-5496,U+5499,U+54AC,U+54AF,U+54B1,U+54B3,U+54B8,U+54BD,U+54C0,U+54C4,U+54C6-54C7,U+54C9,U+54CE,U+54D1,U+54D7,U+54DF,U+54E5-54E6,U+54E8-54E9,U+54ED-54EE,U+54F2,U+54FA,U+54FC,U+5501,U+5506-5507,U+5509,U+5510,U+5524,U+552C,U+552E,U+5531,U+553E,U+5543-5544,U+554A,U+5561,U+5564-5566,U+556A,U+556E,U+5578,U+557C,U+5580,U+5582,U+5584,U+5587,U+5589-558A,U+5598,U+559C-559D,U+55A7,U+55B3,U+55B7,U+55BB,U+55C5,U+55D3,U+55DC,U+55E1,U+55E3,U+55FD,U+5609,U+560E,U+5618,U+561B,U+5631-5632,U+5634,U+5636,U+563B,U+563F,U+564E,U+566A,U+566C,U+5676,U+568E-568F,U+56A3,U+56B7,U+56BC,U+56CA,U+56DA,U+56E4,U+56ED,U+56F0-56F1,U+56FD,U+5703,U+5706,U+5708,U+571F,U+5723,U+572D,U+573E,U+574A,U+574D-5751,U+575A-575B,U+575D-5761,U+5764,U+5766,U+576A,U+576F,U+5777,U+5782-5784,U+5792,U+579B,U+57A2-57A3,U+57A6,U+57AB,U+57AE,U+57C2-57C3,U+57CB,U+57CE,U+57D4,U+57E0,U+57F9,U+5802,U+5806,U+5811,U+5815,U+5821,U+5824,U+582A,U+5830,U+5835,U+584C,U+5851,U+5854,U+5858,U+5885,U+5892-5893,U+5899,U+589F,U+58A8-58A9,U+58C1,U+58D5,U+58E4,U+58EB-58EC,U+58EE,U+58F3,U+58F6,U+58F9,U+590F,U+5915,U+591F,U+592B,U+592E-592F,U+5937-5938,U+593A,U+5944,U+5947-5949,U+594B,U+594E-594F,U+5951,U+5954,U+5956-5957,U+5960,U+5962,U+5965,U+5973-5974,U+5976,U+5978-5979,U+5984,U+5986-5988,U+598A,U+5992-5993,U+5996,U+5999,U+59A5,U+59A8,U+59AE,U+59B9,U+59BB,U+59C6,U+59D0-59D1,U+59D3-59D4,U+59DA,U+59DC,U+59E5,U+59E8,U+59EC,U+59FB,U+59FF,U+5A01,U+5A03-5A04,U+5A07,U+5A18,U+5A1C,U+5A1F-5A20,U+5A25,U+5A29,U+5A31,U+5A36,U+5A46,U+5A49,U+5A5A,U+5A6A,U+5A74,U+5A76,U+5A7F,U+5A92,U+5A9A,U+5AB3,U+5AC1-5AC2,U+5AC9,U+5ACC,U+5AE1,U+5AE9,U+5B54-5B55,U+5B59,U+5B5C-5B5D,U+5B5F,U+5B63-5B64,U+5B69-5B6A,U+5B70,U+5B75,U+5B7A,U+5B7D,U+5B81,U+5B85,U+5B87-5B88,U+5B8B,U+5B8F,U+5B97,U+5B99,U+5B9B-5B9D,U+5BA0,U+5BA2-5BA4,U+5BA6,U+5BAA-5BAB,U+5BB0,U+5BB3-5BB5,U+5BBE,U+5BC2,U+5BC4-5BC5,U+5BC7,U+5BCC,U+5BD0,U+5BD2-5BD3,U+5BDD-5BDE,U+5BE1,U+5BE5,U+5BE8,U+5BF8,U+5BFA-5BFB,U+5BFF,U+5C04,U+5C09-5C0A,U+5C16,U+5C18,U+5C24,U+5C27,U+5C38-5C3A,U+5C3C,U+5C3F,U+5C41,U+5C45,U+5C48-5C4B,U+5C4E-5C4F,U+5C51,U+5C60-5C61,U+5C65,U+5C6F,U+5C71,U+5C79,U+5C7F,U+5C81-5C82,U+5C94,U+5C97,U+5C9B,U+5CA9,U+5CAD,U+5CB3,U+5CB8,U+5CBF,U+5CD9,U+5CE1,U+5CE6,U+5CE8,U+5CEA,U+5CED,U+5CF0,U+5CFB,U+5D07,U+5D0E,U+5D14,U+5D16,U+5D29,U+5D2D,U+5D4C,U+5DCD,U+5DDD-5DDE,U+5DE1-5DE2,U+5DE7-5DE9,U+5DEB,U+5DF3-5DF4,U+5DF7,U+5DFE,U+5E01-5E02,U+5E05-5E06,U+5E08,U+5E10,U+5E15-5E16,U+5E18,U+5E1A-5E1D,U+5E27,U+5E2D,U+5E3D,U+5E42,U+5E45,U+5E4C,U+5E55,U+5E62,U+5E74,U+5E78,U+5E7B-5E7D,U+5E7F,U+5E84,U+5E86-5E87,U+5E8A,U+5E90,U+5E95,U+5E97,U+5E99-5E9A,U+5E9C,U+5E9E-5E9F,U+5EA7,U+5EAD,U+5EB6-5EB8,U+5EC9-5ECA,U+5ED3,U+5ED6,U+5EF7,U+5F04,U+5F0A,U+5F13,U+5F17-5F18,U+5F1B,U+5F1F,U+5F25-5F27,U+5F2F,U+5F31,U+5F5D,U+5F64,U+5F66,U+5F69-5F6A,U+5F6C-5F6D,U+5F70,U+5F79,U+5F7B-5F7C,U+5F81,U+5F8A,U+5F90,U+5F92,U+5F98,U+5FA1,U+5FB7,U+5FBD,U+5FC6,U+5FCC-5FCD,U+5FE7,U+5FF1,U+5FF5,U+5FFB,U+5FFF-6000,U+6002,U+6012,U+6014-6016,U+601C,U+6020,U+6025,U+6028,U+602A,U+602F,U+6043,U+604B,U+604D,U+6050,U+6052,U+6055,U+6064,U+6068-6069,U+606B-606D,U+6070,U+6073,U+6076,U+607C,U+607F,U+6084,U+6089,U+608D,U+6094,U+609F-60A0,U+60A3,U+60A6,U+60A8,U+60AF,U+60B2,U+60B8,U+60BC,U+60CA-60CB,U+60D1,U+60D5,U+60DC,U+60DF-60E0,U+60E6-60E9,U+60EB,U+60ED-60F0,U+60F6,U+60F9-60FA,U+6101,U+6108-6109,U+611A,U+6124,U+6127,U+613F,U+6148,U+614C,U+614E,U+6151,U+6155,U+6167-6168,U+6170,U+6177,U+618B,U+618E,U+61A8,U+61BE,U+61C8,U+61CA,U+61D2,U+61E6,U+6208,U+620A,U+620C-620F,U+6212,U+6218,U+621A,U+622E,U+6233-6234,U+623F,U+6241,U+6247,U+624E,U+6251-6252,U+6254,U+625B,U+6263,U+6266,U+626B-626F,U+6273,U+6276,U+627C,U+6284,U+6289,U+6291-6293,U+6296-6297,U+629A-629B,U+62A0-62A2,U+62A8,U+62AB-62AC,U+62B1,U+62B5,U+62B9,U+62BC-62BD,U+62BF,U+62C2,U+62C4,U+62C7-62C9,U+62CC-62CE,U+62D0,U+62D3-62D4,U+62D8-62D9,U+62DB-62DC,U+62E2-62E3,U+62E5-62E8,U+62ED,U+62EF,U+62F1,U+62F3-62F4,U+62F7,U+62FC-62FE,U+6302,U+630E,U+6311,U+6316,U+631A-631B,U+631D-631F,U+6321,U+6323-6325,U+6328,U+632A-632B,U+632F,U+633A,U+633D,U+6342,U+6345-6346,U+6349,U+634C-6350,U+635E,U+6361,U+6363,U+6367,U+6376,U+637B,U+6380,U+6382,U+6387,U+638C,U+638F-6390,U+6396,U+6398,U+63A0,U+63A3,U+63A9-63AA,U+63B3,U+63B7-63B8,U+63BA,U+63C9,U+63CD,U+63D2,U+63D6,U+63E1,U+63E3,U+63E9-63EA,U+63ED,U+63F4,U+63FD,U+6400-6402,U+6405,U+640F-6410,U+6413-6414,U+641E,U+642A,U+642D,U+643D,U+6444,U+6446-6448,U+644A,U+6454,U+6467,U+6469,U+6478-6479,U+6482,U+6485,U+6487,U+6491-6492,U+6495,U+649E,U+64A9,U+64AC,U+64AE,U+64B5,U+64BC,U+64C2,U+64C5,U+64CE,U+64D2,U+64DE,U+64E6,U+6500,U+6512,U+6518,U+652B,U+654C,U+6551,U+6556,U+655B,U+655D-655E,U+6562,U+6566,U+656C,U+6572,U+6577,U+658B-658C,U+6591,U+659C,U+659F,U+65A1,U+65A4-65A5,U+65A7,U+65A9,U+65AF,U+65C5,U+65CB,U+65D7,U+65E2,U+65E6,U+65E8,U+65EC-65ED,U+65F1,U+65F7,U+65FA,U+6602,U+6606,U+660C,U+660F,U+6613-6614,U+661F-6620,U+6625,U+6627-6628,U+662D,U+663C,U+6643,U+664B-664C,U+6652-6653,U+6655,U+665A,U+6664,U+6666,U+6668,U+6670,U+6674,U+6676,U+667A,U+667E,U+6687,U+6691,U+6696-6697,U+66AE,U+66B4,U+66D9,U+66DD,U+66F0,U+66F2-66F3,U+66F9,U+66FE,U+6708,U+670B,U+6714,U+6717,U+671D,U+6728,U+672D,U+6731,U+6734-6735,U+673D,U+6740,U+6742,U+6749,U+674E-674F,U+6751,U+6756,U+675C,U+6760,U+6768,U+676D,U+676F-6770,U+6781,U+6789,U+6795,U+6797,U+679A,U+679D,U+67A2-67A3,U+67AA-67AB,U+67AF,U+67B6-67B7,U+67C4,U+67CF,U+67D1-67D4,U+67DC,U+67DE,U+67E0,U+67EC,U+67F1,U+67F3-67F4,U+67FF,U+6805,U+6808,U+680B,U+6811,U+6813,U+6816-6817,U+682A,U+683D,U+6842-6843,U+6845,U+6850-6851,U+6853-6854,U+6865,U+6868-6869,U+6876,U+6881,U+6885-6886,U+6897,U+68A2,U+68A6-68A8,U+68AD,U+68AF-68B0,U+68B3,U+68C9,U+68CB,U+68CD,U+68D2,U+68D5,U+68D8,U+68DA,U+68E0,U+68EE,U+68F1,U+68F5,U+68FA,U+6905,U+690D-690E,U+6912,U+692D,U+6930,U+693D,U+693F,U+6954,U+695E,U+6977,U+697C,U+6986,U+6994,U+699C,U+69A8,U+69B4,U+69B7,U+69D0,U+69FD,U+6A0A,U+6A1F,U+6A2A,U+6A31,U+6A47,U+6A59,U+6A61,U+6A71,U+6A80,U+6A84,U+6AAC,U+6B20,U+6B22-6B23,U+6B27,U+6B32,U+6B3A,U+6B47,U+6B49,U+6B4C,U+6B66,U+6B6A,U+6B79,U+6B7B-6B7C,U+6B83,U+6B86,U+6B89-6B8B,U+6B96,U+6BB4,U+6BB7,U+6BBF,U+6BC1,U+6BC5,U+6BCB,U+6BD2,U+6BD5-6BD7,U+6BD9,U+6BDB,U+6BE1,U+6BEB,U+6BEF,U+6C0F,U+6C11,U+6C13-6C14,U+6C16,U+6C1B,U+6C1F,U+6C22,U+6C26-6C28,U+6C2E-6C30,U+6C34,U+6C38,U+6C40-6C41,U+6C49,U+6C50,U+6C55,U+6C57,U+6C5B,U+6C5D-6C61,U+6C64,U+6C6A,U+6C70,U+6C72,U+6C79,U+6C7D-6C7E,U+6C81-6C83,U+6C88-6C89,U+6C8F,U+6C99,U+6C9B,U+6C9F,U+6CA4-6CA7,U+6CAA-6CAB,U+6CAE,U+6CB3,U+6CB8-6CB9,U+6CBB-6CBE,U+6CC4-6CC5,U+6CC9-6CCA,U+6CCC,U+6CDE,U+6CE1-6CE3,U+6CE5,U+6CEA,U+6CF0,U+6CF3,U+6CF5,U+6CFB-6CFD,U+6D0B,U+6D12,U+6D17,U+6D1B,U+6D25,U+6D2A,U+6D31-6D32,U+6D3C-6D3D,U+6D46-6D47,U+6D4A,U+6D4E,U+6D51,U+6D53,U+6D59-6D5A,U+6D66,U+6D69-6D6A,U+6D6E,U+6D74,U+6D77-6D78,U+6D82,U+6D85,U+6D8C,U+6D8E,U+6D95,U+6D9B,U+6D9D,U+6D9F,U+6DA1,U+6DA3-6DA4,U+6DA6-6DAA,U+6DAF,U+6DB2,U+6DB5,U+6DB8,U+6DC0,U+6DC4,U+6DC6,U+6DCB-6DCC,U+6DD1,U+6DD6,U+6DD8,U+6DE1,U+6DE4,U+6DEB-6DEC,U+6DEE,U+6DF3,U+6DF7,U+6DF9,U+6E0A,U+6E0D,U+6E14,U+6E17,U+6E1D,U+6E20-6E21,U+6E23-6E24,U+6E29,U+6E2D,U+6E2F,U+6E34,U+6E3A,U+6E43,U+6E4D,U+6E56,U+6E58,U+6E5B,U+6E7E-6E7F,U+6E83,U+6E85,U+6E89,U+6E9C,U+6EA2,U+6EAA,U+6EB6,U+6EBA,U+6EC1,U+6EC7,U+6ECB,U+6ED3-6ED4,U+6EE4-6EE6,U+6EE8-6EE9,U+6EF4,U+6F02,U+6F06,U+6F13-6F14,U+6F20,U+6F2B,U+6F31,U+6F33,U+6F3E,U+6F4D,U+6F58,U+6F5C,U+6F5E,U+6F66,U+6F6D-6F6E,U+6F84,U+6F88,U+6F8E,U+6F9C,U+6FA1,U+6FB3,U+6FC0,U+6FD2,U+7011,U+704C,U+706B,U+706D,U+706F-7070,U+7075-7076,U+7078,U+707C,U+707E-707F,U+7089-708A,U+708E,U+7092,U+7094-7095,U+7099,U+70AC-70AF,U+70B3,U+70B8,U+70BC-70BD,U+70C1-70C3,U+70C8,U+70D8-70D9,U+70DB,U+70DF,U+70E4,U+70E6-70E7,U+70E9,U+70EB-70ED,U+70EF,U+70F7,U+70F9,U+70FD,U+7109-710A,U+7115,U+7119-711A,U+7126,U+7130,U+714C,U+714E,U+715E,U+7164,U+716E,U+717D,U+7184,U+718A,U+718F,U+7194,U+7199,U+719F,U+71AC,U+71C3,U+71CE,U+71D5,U+71E5,U+7206,U+722A,U+722C,U+7231,U+7235-7239,U+723D,U+7259,U+725B,U+725F,U+7261-7262,U+7267,U+7272,U+7275,U+7279-727A,U+7280-7281,U+728A,U+72AC,U+72B9,U+72C2,U+72C4,U+72C8,U+72D0,U+72D7,U+72D9,U+72DE,U+72E0-72E1,U+72ED-72EE,U+72F0-72F1,U+72F8,U+72FC,U+730E,U+7316,U+731B,U+7329-732B,U+7334,U+733E-733F,U+736D,U+7384,U+7389,U+738B,U+7396,U+739B,U+73A9,U+73AB,U+73B2,U+73BB,U+73CA,U+73CD,U+73D0,U+73E0,U+73ED,U+7403,U+7405,U+7409,U+7410,U+7422,U+7433-7436,U+743C,U+745A,U+745E-745F,U+7470,U+7476,U+7483,U+74DC,U+74E2-74E4,U+74EE,U+74F6-74F7,U+7504,U+7518,U+751A,U+751C,U+7525,U+7529,U+752B,U+752D,U+7530,U+7532,U+7537-7538,U+7545,U+754F,U+7554,U+755C,U+7566,U+756A,U+7574,U+7578,U+7586,U+758F,U+7597,U+7599-759A,U+759F,U+75A1,U+75A4-75A5,U+75AB,U+75AE-75AF,U+75B2,U+75B5,U+75B9,U+75BC-75BE,U+75C5,U+75C7-75CA,U+75D2,U+75D4-75D5,U+75D8,U+75DB,U+75DE,U+75E2,U+75EA,U+75F0,U+75F4,U+75F9,U+7601,U+761F,U+7624,U+7626,U+7629-762B,U+7634,U+7638,U+764C,U+7663,U+7678,U+767E,U+7682,U+7686-7687,U+768B,U+7691,U+7696,U+76AE,U+76B1,U+76BF,U+76C2,U+76C5-76C6,U+76C8,U+76CA,U+76CE-76D2,U+76D4,U+76D7,U+76DB,U+76DF,U+76EF,U+76FC,U+76FE,U+7701,U+7709,U+7720,U+7728-7729,U+772F,U+7736-7737,U+773A,U+773C,U+7741,U+775B,U+7761,U+7763,U+7766,U+776B-776C,U+7779,U+7784-7785,U+778E,U+7792,U+77A5,U+77A7,U+77A9-77AA,U+77AC,U+77B3,U+77BB,U+77D7,U+77DB,U+77E2-77E3,U+77E9,U+77EB,U+77EE,U+77F3,U+77FD-77FF,U+7802,U+780C-780D,U+7812,U+7816,U+781A,U+7827,U+7830,U+7834,U+7837-7838,U+783E,U+7845,U+7852,U+7855,U+785D,U+786B-786C,U+7877,U+787C,U+7889,U+788C,U+788E,U+7891,U+7897-7898,U+789F,U+78A7,U+78B0-78B1,U+78B3-78B4,U+78BE,U+78C5,U+78CA-78CB,U+78D0,U+78D5,U+78E8,U+78F7,U+78FA,U+7901,U+793C,U+793E,U+7941,U+7948,U+7956,U+795D-795F,U+7965,U+7968,U+796D,U+7977-7978,U+7981,U+7984,U+798F,U+79B9,U+79BD-79BE,U+79C0,U+79C3,U+79C6,U+79C9,U+79CB,U+79D1,U+79D8,U+79DF,U+79E4,U+79E6-79E7,U+79E9,U+79EF,U+79F8,U+79FD,U+7A00,U+7A0E,U+7A17,U+7A1A,U+7A20,U+7A33,U+7A3B-7A3D,U+7A46,U+7A57,U+7A74,U+7A7F,U+7A83-7A84,U+7A8D,U+7A91-7A92,U+7A96,U+7A98,U+7A9C-7A9D,U+7A9F,U+7AA5,U+7ABF,U+7AD6,U+7ADE-7ADF,U+7AE3,U+7AE5,U+7AED,U+7AF9,U+7AFF,U+7B06,U+7B0B,U+7B11,U+7B14,U+7B1B,U+7B28,U+7B3A,U+7B3C,U+7B4B,U+7B4F-7B52,U+7B77,U+7B8D,U+7B94-7B95,U+7BA9,U+7BAD,U+7BC6-7BC7,U+7BD3,U+7BD9,U+7BE1,U+7BEE,U+7BF1,U+7BF7,U+7C07,U+7C27,U+7C3F,U+7C4D,U+7C73,U+7C7D,U+7C89,U+7C92,U+7C95,U+7C97,U+7C9F,U+7CA4-7CA5,U+7CAA,U+7CAE,U+7CB1,U+7CB3,U+7CB9,U+7CCA,U+7CD5-7CD6,U+7CD9,U+7CDC,U+7CDF-7CE0,U+7CEF,U+7D0A,U+7D27,U+7D2B,U+7D6E,U+7E82,U+7EA0,U+7EA2,U+7EA4,U+7EAA-7EAC,U+7EB1-7EB2,U+7EB5-7EBA,U+7EBD,U+7EC3,U+7EC5,U+7ECA,U+7ECD-7ECE,U+7ED2,U+7ED8,U+7EDA,U+7EDE,U+7EE2-7EE3,U+7EE5-7EE6,U+7EE9,U+7EF0,U+7EF3,U+7EF5,U+7EF7-7EF8,U+7EFC-7EFD,U+7EFF-7F00,U+7F04-7F06,U+7F09,U+7F0E,U+7F14-7F15,U+7F18,U+7F1A,U+7F1D,U+7F20,U+7F28,U+7F2E,U+7F34,U+7F38,U+7F50,U+7F55,U+7F57,U+7F5A,U+7F62,U+7F69-7F6A,U+7F8A,U+7F8C,U+7F8E,U+7F94,U+7F9A,U+7F9E,U+7FA1,U+7FB9,U+7FBD,U+7FC1,U+7FC5,U+7FCC,U+7FD4,U+7FD8,U+7FDF-7FE0,U+7FF0-7FF1,U+7FFC,U+8000-8001,U+800D,U+8010,U+8015,U+8018-8019,U+802A,U+8033,U+8036,U+8038,U+803B,U+803D,U+803F,U+8042,U+804A-804C,U+8058,U+805A,U+806A,U+8083-8084,U+8086-8087,U+8089,U+808B-808C,U+8096,U+8098,U+809A-809B,U+809D,U+80A0-80A2,U+80A4-80A5,U+80A9-80AA,U+80AE-80AF,U+80B2,U+80BA,U+80BE-80C1,U+80C3,U+80C6,U+80CC,U+80CE,U+80D6,U+80DA,U+80DC,U+80DE,U+80E1,U+80EF-80F0,U+80F3,U+80F6,U+80F8,U+80FA,U+8102,U+8106,U+8109-810A,U+810F-8110,U+8113,U+8116,U+812F,U+8131,U+8138,U+813E,U+8146,U+814A-814B,U+8150-8151,U+8154-8155,U+8165,U+816E,U+8170,U+8179-817B,U+817E-8180,U+818A,U+818F,U+8198,U+819B-819D,U+81A8,U+81B3,U+81C0,U+81C2-81C3,U+81C6,U+81E3,U+81ED,U+81FB-81FC,U+8200,U+8205-8206,U+820C-820D,U+8214,U+821C,U+821E-821F,U+822C,U+8230-8231,U+8235-8237,U+8239,U+8247,U+8258,U+826F-8270,U+8273,U+827A,U+827E,U+828B,U+828D,U+8292,U+829C-829D,U+82A5-82A6,U+82AC-82AD,U+82AF,U+82B1,U+82B3,U+82B9,U+82BD,U+82C7,U+82CD,U+82CF,U+82D1,U+82D4,U+82D7,U+82DB,U+82DE-82DF,U+82E6,U+82EB,U+82EF,U+82F9,U+8301-8302,U+8304-8305,U+830E,U+8327,U+832B-832C,U+8335-8336,U+8338-8339,U+8346,U+8350,U+8352,U+8354,U+835A,U+8361,U+8363-8364,U+8367,U+836B,U+836F,U+8377,U+8386,U+8389,U+838E,U+83AB,U+83B1-83B2,U+83B9,U+83BD,U+83C7,U+83CA,U+83CC,U+83CF,U+83DC,U+83E0,U+83E9,U+83F1-83F2,U+8404,U+840C-840E,U+841D,U+8424,U+8427-8428,U+843D,U+8457,U+845B,U+8461,U+8463,U+846B-846C,U+8471,U+8475,U+8482,U+848B,U+8499,U+849C,U+84B2,U+84B8,U+84C4,U+84C9,U+84D1,U+84D6,U+84DD,U+84DF,U+84EC,U+8511,U+8513,U+8517,U+851A,U+8521,U+852B-852C,U+8537,U+853C-853D,U+8549-854A,U+8574,U+857E,U+8584,U+859B,U+85AA,U+85AF,U+85C9,U+85D0,U+85D5,U+85E4,U+85E9,U+85FB,U+8611,U+8638,U+864E-8650,U+865E,U+866B,U+8671,U+8679,U+867D-867E,U+8680-8682,U+868A,U+868C,U+8695,U+869C,U+86A4,U+86C0,U+86C6-86C7,U+86CA-86CB,U+86D4,U+86D9,U+86DB,U+86E4,U+86EE,U+86F0,U+86F9,U+86FE,U+8700,U+8702,U+8712,U+8715,U+8717-8718,U+871C,U+8721,U+8747,U+8749,U+874E,U+8757,U+8774,U+8776,U+878D,U+879F,U+87BA,U+87F9,U+8815,U+8822,U+8840,U+8845,U+884D,U+8854,U+8857,U+8859,U+8861,U+8863,U+886B-886C,U+8870,U+8877,U+8881,U+8884,U+888B,U+888D,U+8892,U+8896,U+889C,U+88AD,U+88B1,U+88C1-88C2,U+88D4-88D5,U+88D9,U+88E4,U+88F3-88F4,U+88F8-88F9,U+8902,U+8910,U+8912,U+8925,U+892A,U+8944,U+895F,U+89C5,U+89C9,U+89E6,U+8A79,U+8A89-8A8A,U+8A93,U+8B6C,U+8BA3,U+8BA5,U+8BAB,U+8BAD,U+8BAF,U+8BB3,U+8BB6,U+8BB9,U+8BBC-8BBD,U+8BC0,U+8BC5,U+8BC8,U+8BCC,U+8BD7,U+8BDA-8BDB,U+8BDE,U+8BE1,U+8BE3,U+8BE7,U+8BEB-8BEC,U+8BF1-8BF2,U+8BF5,U+8BF8,U+8BFD-8BFE,U+8C05-8C06,U+8C08,U+8C0A-8C0B,U+8C0D-8C0E,U+8C10,U+8C13,U+8C17,U+8C1A,U+8C1C,U+8C22-8C24,U+8C26,U+8C28-8C29,U+8C2C-8C2D,U+8C30,U+8C34,U+8C37,U+8C41,U+8C46,U+8C4C,U+8C62,U+8C6A-8C6B,U+8C79-8C7A,U+8C89,U+8C8C,U+8D1D-8D1E,U+8D22,U+8D24,U+8D27,U+8D29-8D31,U+8D35,U+8D37-8D38,U+8D3A,U+8D3C,U+8D3E-8D3F,U+8D41-8D43,U+8D4A-8D4C,U+8D4E-8D50,U+8D54,U+8D58,U+8D5A-8D5B,U+8D5E,U+8D60-8D64,U+8D66,U+8D6B,U+8D74-8D76,U+8D81,U+8D8A-8D8B,U+8D9F,U+8DA3,U+8DB4,U+8DBE,U+8DC3,U+8DCB-8DCC,U+8DDD,U+8DEA,U+8DF5,U+8DFA,U+8E0A,U+8E0C,U+8E0F,U+8E1E,U+8E22,U+8E29,U+8E44,U+8E48,U+8E4B,U+8E66,U+8E6C-8E6D,U+8E72,U+8E7F,U+8E81,U+8E87,U+8EAC,U+8EAF,U+8EB2,U+8EBA,U+8F67,U+8F69,U+8F6F-8F70,U+8F74,U+8F7B,U+8F7F,U+8F86,U+8F88-8F8A,U+8F90,U+8F95-8F97,U+8F99,U+8F9B-8F9C,U+8F9E-8F9F,U+8FA3,U+8FA8-8FA9,U+8FAB,U+8FB0-8FB1,U+8FB9,U+8FBD,U+8FC2,U+8FC4-8FC5,U+8FC8,U+8FCE,U+8FDF,U+8FE2,U+8FEA-8FEB,U+8FED,U+8FF7-8FF8,U+9003,U+9006,U+900A,U+900F,U+901B,U+901D-901F,U+9022,U+902E,U+9038,U+903C,U+903E,U+9041-9042,U+904F,U+9057,U+9063,U+9065,U+906D-906E,U+9075,U+9091,U+9093,U+90A2,U+90A6,U+90AA,U+90AF,U+90B1,U+90B5,U+90B9,U+90BB,U+90C1,U+90CA,U+90CE,U+90D1,U+90DD,U+90E1,U+90E7,U+90ED,U+90F4,U+90F8,U+9102,U+9119,U+9149,U+914B-914C,U+9152,U+9157,U+915A,U+915D-915E,U+9163,U+9165,U+916A,U+916C,U+916E,U+9171,U+9175-9178,U+917F,U+9187,U+9189,U+918B,U+919A-919B,U+91C9,U+91CE,U+91DC,U+9274,U+9489,U+948E,U+9492-9493,U+9499,U+949D-949E,U+94A0-94A2,U+94A6-94A9,U+94B1,U+94B3,U+94B5,U+94BB,U+94BE,U+94C0-94C3,U+94C5-94C6,U+94DC-94DD,U+94E1,U+94E3,U+94EC-94ED,U+94F0-94F2,U+94F6,U+94F8,U+94FA,U+9501,U+9504-9505,U+9508,U+950B-950C,U+9510-9511,U+9517,U+951A,U+9521,U+9523-9526,U+9528,U+952D,U+952F-9530,U+9539,U+953B,U+9540-9541,U+9547,U+954A,U+954D,U+9550-9551,U+9563,U+956D,U+9570,U+9576,U+95EA,U+95EF-95F0,U+95F7-95FB,U+95FD,U+9600-9602,U+9609,U+960E,U+9610-9611,U+9614,U+961C,U+962E,U+9633-9635,U+9640,U+9646-9647,U+964B-964D,U+9655,U+965B,U+9661-9662,U+9668-966A,U+9675-9677,U+9685-9686,U+968B,U+9698-9699,U+96A7,U+96B6,U+96BE,U+96C0-96C1,U+96C4-96C5,U+96C7,U+96CC-96CD,U+96CF,U+96D5,U+96E8,U+96EA,U+96F7,U+96F9,U+96FE,U+9704,U+9707,U+9709,U+970D,U+9713,U+9716,U+971C,U+971E,U+9732,U+9738-9739,U+9752,U+9756,U+975B,U+9760-9761,U+9769,U+9773-9774,U+9776,U+978B,U+978D,U+9798,U+97A0,U+97AD,U+97E6-97E7,U+97E9,U+97ED,U+97F3,U+97F5-97F6,U+9877,U+987D-987F,U+9881-9882,U+9885,U+9887-9888,U+988A,U+9890,U+9893,U+9896-9897,U+989C,U+98A0,U+98A4,U+98A7,U+98CE,U+98D8,U+98DE-98DF,U+9910,U+9965,U+996D-9972,U+9975-9976,U+997A,U+997C,U+997F,U+9981,U+9985-9986,U+998B,U+998F,U+9992,U+9999,U+9A6C-9A71,U+9A73-9A74,U+9A76,U+9A79,U+9A7B-9A7C,U+9A7E,U+9A82,U+9A84,U+9A86-9A87,U+9A8B,U+9A8F,U+9A91,U+9A97,U+9A9A,U+9AA1,U+9AA8,U+9AB8,U+9AD3,U+9B03,U+9B3C,U+9B41-9B42,U+9B44,U+9B4F,U+9B54,U+9C7C,U+9C81,U+9C8D,U+9C9C,U+9CA4,U+9CB8,U+9CC3,U+9CD6,U+9CDE,U+9E1F,U+9E21,U+9E23,U+9E25-9E26,U+9E2D,U+9E2F,U+9E33,U+9E35,U+9E3D,U+9E3F,U+9E43,U+9E45,U+9E4A,U+9E4F,U+9E64,U+9E70,U+9E7F,U+9E93,U+9EA6,U+9EBB,U+9EC4,U+9ECD,U+9ED1,U+9ED4,U+9F0E,U+9F13,U+9F20,U+9F3B,U+9F7F,U+9F84,U+9F8B,U+9F99-9F9A,U+9F9F} -:root{font-family:var(--sans);color:var(--gray-800);background:var(--paper);font-synthesis:none;color-scheme:light;--chat-width:40%;--sans:Geist,"TheoremOS Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC","WenQuanYi Micro Hei",sans-serif;--serif:"TheoremOS Serif Latin","TheoremOS Serif SC","Songti SC","Noto Serif CJK SC","Source Han Serif SC",Georgia,serif;--mono:"JetBrains Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;--paper:#f5f4ee;--card:#fdfcf9;--gray-0:#fdfcf9;--gray-25:#faf9f5;--gray-50:#f3f1ea;--gray-100:#ebe9e0;--gray-150:#e3e0d5;--gray-200:#d6d2c5;--gray-300:#bfbaab;--gray-400:#8f8a7e;--gray-500:#6c685d;--gray-600:#56534a;--gray-700:#3f3d37;--gray-800:#292824;--gray-900:#141413;--blue-50:#f9efe6;--blue-100:#f3e0d0;--blue-200:#ecc3b1;--blue-300:#e09f85;--blue-500:#d97757;--blue-600:#ad5033;--blue-700:#93452d;--green-50:#f1f3ea;--green-100:#e3e8d6;--green-200:#ccd5b5;--green-300:#a9b78a;--green-500:#788c5d;--green-600:#5d7046;--green-700:#475636;--red-50:#fbeeef;--red-100:#f5dcdf;--red-200:#e9bcc2;--red-300:#d6919b;--red-500:#b9505f;--red-600:#9e3b4b;--red-700:#7d2e3b;--amber-50:#fbf4e4;--amber-100:#f5e7c6;--amber-200:#e8d09a;--amber-300:#d3b066;--amber-500:#b28530;--amber-600:#82591f;--amber-700:#6b4e1f;--sky-500:#6a9bcc;--sky-50:#eef3f9;--text-xs:12px;--text-sm:13px;--text-base:14px;--text-md:16px;--text-lg:18px;--text-xl:20px;--text-2xl:24px;--text-3xl:30px;--radius-sm:4px;--radius-md:4px;--radius-lg:4px;--radius-xl:4px;--line:var(--gray-150);--muted:var(--gray-500);--blue:var(--blue-600);--green:var(--green-600);--ink:var(--gray-900);--surface:var(--gray-50);--accent-soft:var(--blue-50);--shade:#292824;--shadow-sm:0 1px 2px rgb(41 40 36/.05),0 1px 1px rgb(41 40 36/.03);--shadow-md:0 2px 6px -1px rgb(41 40 36/.07),0 8px 24px -8px rgb(41 40 36/.1);--ease-out:cubic-bezier(.22,1,.36,1);--ease-expo:cubic-bezier(.16,1,.3,1);--ease-spring:cubic-bezier(.34,1.4,.64,1);--ease-in:cubic-bezier(.4,0,1,1);--on-ink:#fff;--on-ink-faint:color-mix(in srgb,var(--on-ink) 33%,transparent);--code-comment:var(--gray-500);--code-keyword:#8a4a78;--code-tactic:var(--green-600);--code-placeholder:#b85a3c;--code-string:#9b623d;--code-number:#3f6d99;--find-match:#f9e8ab;--find-match-ink:#51431f;--find-current:#f2c96a;--find-current-ink:#33270f;--find-line:#e9ecdc;--shadow-panel:0 1px 2px rgb(41 40 36/.04),0 12px 32px -18px rgb(41 40 36/.16);--shadow-card:0 2px 4px rgb(41 40 36/.04),0 24px 48px -28px rgb(41 40 36/.22);--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%236c685d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")} +:root{font-family:var(--sans);color:var(--gray-800);background:var(--paper);font-synthesis:none;color-scheme:light;--chat-width:40%;--sans:Geist,"TheoremOS Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC","WenQuanYi Micro Hei",sans-serif;--serif:"TheoremOS Serif Latin","TheoremOS Serif SC","Songti SC","Noto Serif CJK SC","Source Han Serif SC",Georgia,serif;--mono:"JetBrains Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;--paper:#f5f4ee;--card:#fdfcf9;--gray-0:#fdfcf9;--gray-25:#faf9f5;--gray-50:#f3f1ea;--gray-100:#ebe9e0;--gray-150:#e3e0d5;--gray-200:#d6d2c5;--gray-300:#bfbaab;--gray-400:#8f8a7e;--gray-500:#6c685d;--gray-600:#56534a;--gray-700:#3f3d37;--gray-800:#292824;--gray-900:#141413;--blue-50:#f9efe6;--blue-100:#f3e0d0;--blue-200:#ecc3b1;--blue-300:#e09f85;--blue-500:#d97757;--blue-600:#ad5033;--blue-700:#93452d;--green-50:#f1f3ea;--green-100:#e3e8d6;--green-200:#ccd5b5;--green-300:#a9b78a;--green-500:#788c5d;--green-600:#5d7046;--green-700:#475636;--red-50:#fbeeef;--red-100:#f5dcdf;--red-200:#e9bcc2;--red-300:#d6919b;--red-500:#b9505f;--red-600:#9e3b4b;--red-700:#7d2e3b;--amber-50:#fbf4e4;--amber-100:#f5e7c6;--amber-200:#e8d09a;--amber-300:#d3b066;--amber-500:#b28530;--amber-600:#82591f;--amber-700:#6b4e1f;--sky-500:#6a9bcc;--sky-50:#eef3f9;--text-xs:12px;--text-sm:13px;--text-base:14px;--text-md:16px;--text-lg:18px;--text-xl:20px;--text-2xl:24px;--text-3xl:30px;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-xl:18px;--line:var(--gray-150);--muted:var(--gray-500);--blue:var(--blue-600);--green:var(--green-600);--ink:var(--gray-900);--surface:var(--gray-50);--accent-soft:var(--blue-50);--shade:#292824;--shadow-sm:0 1px 2px rgb(20 20 19/.05),0 2px 6px -2px rgb(20 20 19/.05);--shadow-md:0 1px 2px rgb(20 20 19/.05),0 10px 26px -10px rgb(20 20 19/.12);--ease-out:cubic-bezier(.22,1,.36,1);--ease-expo:cubic-bezier(.16,1,.3,1);--ease-spring:cubic-bezier(.34,1.4,.64,1);--ease-in:cubic-bezier(.4,0,1,1);--on-ink:#fff;--on-ink-faint:color-mix(in srgb,var(--on-ink) 33%,transparent);--code-comment:var(--gray-500);--code-keyword:#8a4a78;--code-tactic:var(--green-600);--code-placeholder:#b85a3c;--code-string:#9b623d;--code-number:#3f6d99;--find-match:#f9e8ab;--find-match-ink:#51431f;--find-current:#f2c96a;--find-current-ink:#33270f;--find-line:#e9ecdc;--shadow-panel:0 1px 2px rgb(20 20 19/.04),0 14px 36px -18px rgb(20 20 19/.18);--shadow-card:0 2px 6px rgb(20 20 19/.05),0 24px 52px -26px rgb(20 20 19/.22);--select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%236c685d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")} /* Dark tokens on screens only: a page prints in the light ones, which read on paper with or without background graphics. */ @media screen{ :root[data-theme=dark]{color-scheme:dark; @@ -52,8 +52,8 @@ h1,h2,h3,h4{text-wrap:balance} .skip-link{position:fixed;left:12px;top:8px;z-index:100;background:var(--gray-800);color:var(--on-ink);padding:8px 12px;transform:translateY(-150%)} .skip-link:focus{transform:translateY(0)} .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0} -.topbar{height:56px;flex-shrink:0;display:flex;align-items:center;gap:14px;padding:0 18px;background:var(--paper);box-shadow:inset 0 -1px 0 var(--gray-150)} -.brand{display:inline-flex;align-items:center;gap:9px;font-family:var(--serif);font-size:22px;font-weight:400;line-height:1;letter-spacing:-.01em;white-space:nowrap} +.topbar{height:56px;flex-shrink:0;display:flex;align-items:center;gap:14px;padding:0 20px;background:color-mix(in srgb,var(--paper) 90%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 -1px 0 var(--gray-150)} +.brand{display:inline-flex;align-items:center;gap:9px;font-family:var(--serif);font-size:23px;font-weight:500;line-height:1;letter-spacing:-.025em;white-space:nowrap} .brand img{width:26px;height:26px} .brand-os{color:var(--blue-500);font-weight:500} :root[data-theme=dark] .brand-os{color:var(--blue-600)} @@ -89,8 +89,8 @@ body[data-view=draft][data-entry=natural] :is(.composer,.pane-resizer,.runs-work .icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex-shrink:0;padding:0;border:1px solid transparent;border-radius:var(--radius-md);background:transparent;color:var(--gray-500)} .icon-button:hover:not(:disabled){background:var(--gray-100);color:var(--gray-800)} .icon-button.danger:hover{background:var(--red-50);color:var(--red-600)} -.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--gray-200);border-radius:9999px;background:var(--card);color:var(--gray-700);min-height:38px;padding:8px 13px;white-space:nowrap;font-size:var(--text-xs);font-weight:500} -.button:hover:not(:disabled){background:var(--gray-50);border-color:var(--gray-300)} +.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--gray-200);border-radius:9999px;background:var(--card);color:var(--gray-700);min-height:38px;padding:8px 15px;white-space:nowrap;font-size:var(--text-sm);font-weight:500;box-shadow:0 1px 2px rgb(20 20 19/.04)} +.button:hover:not(:disabled){background:var(--gray-25);border-color:var(--gray-300);box-shadow:var(--shadow-sm);transform:translateY(-1px)} .button-primary{background:var(--gray-900);border-color:var(--gray-900);color:var(--gray-25)} .button-primary:hover:not(:disabled){background:var(--gray-800);border-color:var(--gray-800)} .button-primary:disabled{opacity:1;background:var(--gray-150);border-color:var(--gray-200);color:var(--gray-500)} @@ -116,7 +116,7 @@ main{display:flex;flex-direction:column;flex:1;min-height:0;outline:none} .run-monitor{display:flex;align-items:center;gap:14px;height:50px;flex-shrink:0;padding:6px 18px;background:var(--paper);box-shadow:inset 0 -1px 0 var(--gray-150);min-width:0} .run-monitor-summary{flex:0 0 auto;min-width:70px;white-space:pre;font-family:var(--sans);font-size:var(--text-xs);font-weight:500;line-height:1.6;color:var(--gray-600);font-variant-numeric:tabular-nums;font-feature-settings:"tnum"} .run-monitor-list{display:flex;align-items:center;gap:8px;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--gray-200) transparent;padding:1px 2px} -.run-monitor-entry{display:flex;align-items:center;flex:0 0 236px;min-width:0;height:38px;border:1px solid var(--gray-150);border-radius:4px;background:var(--card);box-shadow:var(--shadow-sm)} +.run-monitor-entry{display:flex;align-items:center;flex:0 0 236px;min-width:0;height:38px;border:1px solid var(--gray-200);border-radius:var(--radius-md);background:var(--card);box-shadow:var(--shadow-sm)} /* English states such as "Original problem accepted" run longer than the Chinese the width was set for. */ :root:lang(en) .run-monitor-entry{flex-basis:300px} .run-monitor-entry:hover{border-color:var(--gray-300)} @@ -1422,11 +1422,11 @@ textarea.expanded-source:focus-visible{outline-width:1px;outline-offset:-1px} .collab-eyebrow{text-transform:uppercase;color:var(--muted,var(--gray-500));font-size:var(--text-xs);font-weight:600;letter-spacing:.09em} .collab-heading-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end} .collab-heading .button,.collab-surface .button,.collab-plan-dialog .button,.server-module-plans .button{font-size:var(--text-xs);min-height:30px;padding:5px 10px;white-space:normal;height:auto;line-height:1.4} -.collab-metrics{display:grid;grid-template-columns:1fr 1fr 1.4fr;border:1px solid var(--border,var(--gray-150));border-radius:var(--radius-lg);background:var(--surface-soft,var(--gray-50));margin-bottom:8px} -.collab-metrics>div{padding:13px 16px;min-width:0} +.collab-metrics{display:grid;grid-template-columns:1fr 1fr 1.4fr;border:1px solid var(--border,var(--gray-200));border-radius:var(--radius-lg);background:var(--card);box-shadow:var(--shadow-sm);margin-bottom:14px;overflow:hidden} +.collab-metrics>div{padding:16px 20px;min-width:0} .collab-metrics>div+div{border-left:1px solid var(--border,var(--gray-150))} .collab-metrics span,.collab-metrics small{display:block;color:var(--muted,var(--gray-500));font-size:var(--text-xs)} -.collab-metrics strong{font-size:var(--text-lg);display:block;font-weight:500;line-height:1.7} +.collab-metrics strong{font-size:var(--text-xl);letter-spacing:-.02em;display:block;font-weight:500;line-height:1.45;margin-top:2px;color:var(--ink)} .collab-metrics .collab-accepted,.collab-review-verdict.collab-accepted{color:var(--green-700)} .collab-metrics .collab-rejected,.collab-review-verdict.collab-rejected{color:var(--red-600)} .collab-meter{display:flex;gap:2px;height:6px;margin:9px 0 6px;border-radius:3px;overflow:hidden;background:var(--gray-100)} @@ -1444,10 +1444,10 @@ textarea.expanded-source:focus-visible{outline-width:1px;outline-offset:-1px} .collab-error{color:var(--red-600);font-size:var(--text-xs);white-space:pre-wrap} .collab-notice{padding:10px;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius-md)} .collab-empty{padding:28px;background:var(--gray-50);border:1px dashed var(--gray-200);border-radius:var(--radius-lg);color:var(--gray-500)} -.collab-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);border:1px solid var(--border,var(--gray-150));border-radius:var(--radius-lg);overflow:hidden;margin-top:18px} -.collab-map{min-width:0;background:var(--gray-50)} -.collab-section-heading{padding:12px 14px;border-bottom:1px solid var(--border,var(--gray-150))} -.collab-section-heading h3,.collab-section-heading h4{margin:0;font-size:var(--text-sm);font-weight:600} +.collab-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);border:1px solid var(--border,var(--gray-200));border-radius:var(--radius-lg);background:var(--card);box-shadow:var(--shadow-panel);overflow:hidden;margin-top:18px} +.collab-map{min-width:0;background:var(--gray-25)} +.collab-section-heading{padding:14px 18px;border-bottom:1px solid var(--border,var(--gray-150))} +.collab-section-heading h3,.collab-section-heading h4{margin:0;font-size:var(--text-base);letter-spacing:-.01em;font-weight:600;color:var(--ink)} .collab-section-heading .collab-help{margin:0;font-size:var(--text-xs)} .collab-map .collab-section-heading{flex-wrap:wrap;gap:4px} .collab-map-tools{display:flex;gap:8px;padding:12px} @@ -1457,7 +1457,7 @@ textarea.expanded-source:focus-visible{outline-width:1px;outline-offset:-1px} :is(.collab-surface,.collab-plan-dialog,.server-module-plans) select{padding-right:30px;line-height:1.35;background-position:right 9px center} .collab-route-summary{padding:0 12px 10px;display:grid;gap:5px;font-size:var(--text-xs);color:var(--gray-500)} .collab-route-summary strong{color:var(--gray-600);font-size:var(--text-xs)} -.collab-graph-scroll{overflow:auto;max-height:455px;min-height:260px;cursor:grab;background-image:radial-gradient(var(--gray-200) .7px,transparent .7px);background-size:16px 16px} +.collab-graph-scroll{overflow:auto;max-height:455px;min-height:260px;cursor:grab;background-color:var(--gray-25);background-image:radial-gradient(var(--gray-200) 1px,transparent 1px);background-size:20px 20px} .collab-graph{position:relative;min-width:100%} .collab-graph-scroll.panning{cursor:grabbing;user-select:none} .collab-edges{position:absolute;inset:0;overflow:visible;pointer-events:none} @@ -1467,7 +1467,8 @@ textarea.expanded-source:focus-visible{outline-width:1px;outline-offset:-1px} .collab-and-edge.related{stroke:var(--green-600)} .collab-and-edge{stroke:var(--gray-500)} .collab-or-edge{stroke:var(--amber-600);stroke-dasharray:5 4} -.collab-task{position:absolute;text-align:left;padding:10px 12px;width:218px;height:104px;overflow:hidden;background:var(--surface,var(--card));border:1px solid var(--gray-200);border-radius:var(--radius-md);color:inherit;box-shadow:0 2px 3px color-mix(in srgb,var(--shade) 6%,transparent);font:inherit;cursor:pointer;transition:border-color .15s,background .15s} +.collab-task{position:absolute;text-align:left;padding:11px 13px;width:218px;height:104px;overflow:hidden;background:var(--card);border:1px solid var(--gray-200);border-radius:var(--radius-md);color:inherit;box-shadow:var(--shadow-sm);font:inherit;cursor:pointer;transition:border-color .16s var(--ease-out),background .16s var(--ease-out),box-shadow .18s var(--ease-out),transform .16s var(--ease-out)} +.collab-task:hover{border-color:var(--gray-300);box-shadow:var(--shadow-md);transform:translateY(-1px)} .collab-task-top{display:flex;justify-content:space-between;color:var(--gray-500);font-size:var(--text-xs);gap:8px} .collab-task-kind{display:inline-flex;align-items:center;gap:5px;min-width:0} .collab-task-feedback{font-size:10px;line-height:1.4;white-space:nowrap;color:var(--blue-600);background:var(--accent-soft);padding:1px 4px;border-radius:3px} @@ -1476,24 +1477,24 @@ textarea.expanded-source:focus-visible{outline-width:1px;outline-offset:-1px} .collab-task-objective{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs)} .collab-task small{font-size:var(--text-xs);color:var(--gray-500)} .collab-task-list{display:none} -.collab-inspector{min-width:0;border-left:1px solid var(--border,var(--gray-150));background:var(--surface,var(--card));max-height:650px;overflow:auto;border-radius:var(--radius-lg)} -.collab-inspector>.collab-section-heading{position:sticky;top:0;background:var(--surface,var(--card));z-index:2} -.collab-inspector>[data-collab-inspector],.collab-artifact{padding:12px 14px} -.collab-inspector h4{margin:0 0 8px;font-size:var(--text-base)} -.collab-inspector h5{margin:12px 0 5px;font-size:var(--text-xs)} +.collab-inspector{min-width:0;border-left:1px solid var(--border,var(--gray-150));background:var(--card);max-height:650px;overflow:auto;border-radius:0 var(--radius-lg) var(--radius-lg) 0} +.collab-inspector>.collab-section-heading{position:sticky;top:0;background:var(--card);z-index:2} +.collab-inspector>[data-collab-inspector],.collab-artifact{padding:16px 20px} +.collab-inspector h4{margin:0 0 10px;font-family:var(--serif);font-size:var(--text-lg);font-weight:500;letter-spacing:-.015em;color:var(--ink)} +.collab-inspector h5{margin:14px 0 6px;font-size:var(--text-xs);font-weight:600;color:var(--gray-600)} .collab-inspector p{margin:4px 0 10px} -.collab-facts{margin:8px 0;display:grid;gap:5px;font-size:var(--text-xs)} +.collab-facts{margin:10px 0;display:grid;gap:6px;font-size:var(--text-xs)} .collab-facts>div{display:grid;grid-template-columns:85px minmax(0,1fr);gap:8px} .collab-facts dt{color:var(--gray-500)} .collab-facts dd{margin:0;overflow-wrap:anywhere;font-family:inherit} -.collab-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:var(--text-xs);line-height:1.7;background:var(--gray-50);border:1px solid var(--gray-150);border-radius:var(--radius-md);padding:10px;margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto;color:var(--gray-700)} -.collab-detail{margin:8px 0;border:1px solid var(--gray-150);border-radius:var(--radius-md);padding:7px 9px;min-width:0} -.collab-detail>summary{font-size:var(--text-xs);cursor:pointer;color:var(--gray-600);font-weight:500} +.collab-code{font-family:var(--mono);font-size:12.5px;line-height:1.72;background:var(--paper);border:1px solid var(--gray-200);border-radius:var(--radius-md);padding:12px 14px;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto;color:var(--gray-800)} +.collab-detail{margin:9px 0;border:1px solid var(--gray-200);border-radius:var(--radius-md);padding:8px 11px;background:var(--gray-25);min-width:0} +.collab-detail>summary{font-size:var(--text-xs);cursor:pointer;color:var(--gray-700);font-weight:500} .collab-detail .collab-code{max-height:280px} .collab-artifact:empty{display:none} .collab-artifact{border-top:1px solid var(--gray-150);background:var(--gray-25)} .collab-artifact-links{display:flex;flex-wrap:wrap;gap:6px} -.collab-agents,.collab-guidance,.collab-edit-records,.collab-knowledge{border:1px solid var(--border,var(--gray-150));border-radius:var(--radius-lg);margin-top:16px;overflow:hidden;min-width:0} +.collab-agents,.collab-guidance,.collab-edit-records,.collab-knowledge{border:1px solid var(--border,var(--gray-200));border-radius:var(--radius-lg);background:var(--card);box-shadow:var(--shadow-sm);margin-top:18px;overflow:hidden;min-width:0} .collab-agent-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1px;background:var(--gray-150)} .collab-agent{padding:10px 12px;background:var(--surface,var(--card));min-width:0} .collab-agent .collab-section-heading{border:0;padding:0;margin:0 0 4px} @@ -1916,7 +1917,7 @@ kbd{display:inline-flex;align-items:center;height:20px;padding:0 5px;border:1px .collab-task[data-task-proof=conditional]{--task-tone:var(--amber-500)} .collab-task[data-task-proof=checked],.collab-task[data-task-state=completed]{--task-tone:var(--green-500)} /* One mark for the inspected task, the ink border the sample cards use; keyboard focus keeps the global outline. */ -.collab-task.selected{border-color:var(--gray-800);border-left-color:var(--task-tone);background:var(--card);box-shadow:var(--shadow-md)} +.collab-task.selected{border-color:var(--task-tone,var(--blue-600));border-left-color:var(--task-tone,var(--blue-600));background:var(--card);box-shadow:var(--shadow-md),0 0 0 3px color-mix(in srgb,var(--task-tone,var(--blue-500)) 16%,transparent)} .collab-task.dimmed{opacity:.32} .collab-task[data-changed]{animation:task-settled .9s var(--ease-out)} @keyframes task-settled{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--green-500) 55%,transparent),var(--shadow-sm)}100%{box-shadow:0 0 0 14px color-mix(in srgb,var(--green-500) 0%,transparent),var(--shadow-sm)}} @@ -2452,7 +2453,7 @@ summary.route-item-head:focus-visible{outline-offset:-2px} * On a wide screen it keeps a reading width, left-aligned like the trajectory, so a goal's name and its state stay in one glance. */ .result-document{container-type:inline-size;display:grid;gap:0;min-width:0;max-width:1080px} -.result-verdict{display:grid;grid-template-columns:36px minmax(0,1fr);gap:4px 14px;align-items:start;padding:18px 20px;border:1px solid var(--gray-200);border-radius:14px;background:var(--gray-50);box-shadow:var(--shadow-sm)} +.result-verdict{display:grid;grid-template-columns:38px minmax(0,1fr);gap:6px 16px;align-items:start;padding:22px 24px;border:1px solid var(--gray-200);border-radius:var(--radius-lg);background:var(--gray-50);box-shadow:var(--shadow-sm)} .result-verdict.running{border-color:var(--blue-200);background:var(--blue-50)} .result-verdict.passed{border-color:var(--green-200);background:var(--green-50);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--card) 55%,transparent),var(--shadow-sm)} .result-verdict.failed{border-color:var(--red-200);background:var(--red-50)} @@ -2465,7 +2466,7 @@ summary.route-item-head:focus-visible{outline-offset:-2px} .result-verdict.failed .result-verdict-mark{color:var(--red-600)} .result-verdict.warning .result-verdict-mark{color:var(--amber-600)} .result-verdict-copy{min-width:0} -.result-verdict-copy h3{font-family:var(--serif);font-size:var(--text-lg);font-weight:400;line-height:1.4;letter-spacing:-.005em;color:var(--gray-900);overflow-wrap:anywhere} +.result-verdict-copy h3{font-family:var(--serif);font-size:var(--text-xl);font-weight:400;line-height:1.35;letter-spacing:-.02em;color:var(--gray-900);overflow-wrap:anywhere} .result-verdict-copy>p{margin-top:3px;font-size:var(--text-sm);line-height:1.7;color:var(--gray-700);overflow-wrap:anywhere} .result-verdict-copy>p>.term-hint{vertical-align:-3px} .result-verdict-copy>.result-latest{display:flex;align-items:baseline;gap:8px;margin-top:8px;font-size:var(--text-xs);color:var(--gray-600)} @@ -2475,6 +2476,23 @@ summary.route-item-head:focus-visible{outline-offset:-2px} .result-verdict-copy>.result-away{margin-top:6px;font-size:var(--text-xs);line-height:1.7;color:var(--gray-500)} .result-verdict-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:12px} .result-verdict-actions .button{min-height:34px;padding:6px 12px} +@media screen{ + /* Signature Carbon-Emerald Kernel Receipt on screens (prints cleanly on warm paper). */ + .result-verdict.passed{border-color:#3d5443;background-color:#18201b;background-image:linear-gradient(155deg,#1f2822 0%,#161c18 100%);color:#f2f0e9;box-shadow:inset 0 1px 0 rgb(169 189 139/.12),var(--shadow-card)} + .result-verdict.passed .result-verdict-mark{background:#121714;border-color:rgb(169 189 139/.42);color:#a9bd8b;box-shadow:0 2px 10px rgb(0 0 0/.35)} + .result-verdict.passed .result-verdict-copy h3{color:#a9bd8b;font-weight:500} + .result-verdict.passed .result-verdict-copy>p{color:#e6e4dc} + .result-verdict.passed .result-verdict-copy :is(.result-latest,.result-away,.result-latest>time){color:#9fb0a3} + .result-verdict.passed .result-verdict-actions .button{background:rgb(255 255 255/.08);border-color:rgb(169 189 139/.32);color:#f2f0e9;box-shadow:none} + .result-verdict.passed .result-verdict-actions .button:hover:not(:disabled){background:rgb(169 189 139/.16);border-color:rgb(169 189 139/.58)} + .result-verdict.passed .result-verdict-actions .button-primary{background:#a9bd8b;border-color:#a9bd8b;color:#141413} + .result-verdict.passed .result-verdict-actions .button-primary:hover:not(:disabled){background:#bdd09f;border-color:#bdd09f} + .result-verdict.passed .text-button{color:#a9bd8b} + .result-verdict.passed .text-button:hover{color:#c5d8a8} + .result-verdict.passed .badge{background:rgb(169 189 139/.14);border-color:rgb(169 189 139/.3);color:#a9bd8b} + .result-verdict.passed .term-hint{background:rgb(169 189 139/.14);border-color:rgb(169 189 139/.38);color:#c5d8a8} + .result-verdict.passed .term-hint:hover,.result-verdict.passed .term-hint[aria-expanded=true]{background:rgb(169 189 139/.26);border-color:rgb(169 189 139/.62);color:#f2f0e9} +} .result-section{min-width:0;padding:22px 0;border-top:1px solid var(--gray-150)} .result-verdict+.result-section{border-top:0} .result-section:last-child{padding-bottom:4px} diff --git a/apps/web/client/research-conversation.css b/apps/web/client/research-conversation.css index e51a13ed..abca5fd7 100644 --- a/apps/web/client/research-conversation.css +++ b/apps/web/client/research-conversation.css @@ -98,8 +98,8 @@ body[data-chat-empty=true] #research-conversation-panel #natural-research{margin .chat-start-rule{width:36px;height:1px;background:linear-gradient(90deg,transparent,var(--gray-300))} .chat-start-rule:last-child{background:linear-gradient(270deg,transparent,var(--gray-300))} .chat-start-emblem>img{width:18px;height:18px;border-radius:5px;box-shadow:0 0 0 1px color-mix(in srgb,var(--gray-400) 28%,transparent)} -.chat-start-tag{font-size:12px;font-weight:500;letter-spacing:.08em;white-space:nowrap} -.chat-start h1{margin:0;font-family:"TheoremOS Workbench Heading",var(--serif);font-size:clamp(30px,3.6vw,42px);font-weight:400;line-height:1.3;letter-spacing:-.015em;animation:atelier-rise .46s var(--ease-out) .04s both} +.chat-start-tag{font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap} +.chat-start h1{margin:0;font-family:"TheoremOS Workbench Heading",var(--serif);font-size:clamp(34px,4.2vw,52px);font-weight:400;line-height:1.18;letter-spacing:-.03em;color:var(--ink);animation:atelier-rise .46s var(--ease-out) .04s both} .chat-start>p{max-width:560px;margin:0 auto;color:var(--muted);font-size:14px;line-height:1.9} @media(prefers-reduced-motion:reduce){.chat-start-emblem,.chat-start h1{animation:none}} .chat-start-sample svg{width:15px;height:15px;flex-shrink:0} @@ -136,7 +136,7 @@ body[data-chat-empty=true] #research-conversation-panel #natural-research{margin .chat-markdown-table table{border-collapse:collapse;min-width:100%;font-size:13px;line-height:1.8} .chat-markdown-table :is(th,td){padding:10px 14px;border:1px solid var(--line);vertical-align:top;min-width:90px} .chat-markdown-table th{font-weight:600;background:var(--gray-50)} -.chat-code{min-width:0;max-width:100%;margin:20px 0;border:1px solid var(--line);border-radius:10px;background:var(--gray-50);overflow:hidden} +.chat-code{min-width:0;max-width:100%;margin:20px 0;border:1px solid var(--gray-200);border-radius:var(--radius-md);background:var(--gray-50);box-shadow:var(--shadow-sm);overflow:hidden} .chat-code-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;border-bottom:1px solid var(--line);background:var(--gray-25);font-size:12px;line-height:1.6;color:var(--muted)} .chat-code-header>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .chat-code-header button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:4px 8px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;flex-shrink:0} @@ -166,8 +166,8 @@ body[data-chat-empty=true] #research-conversation-panel #natural-research{margin .chat-error p{margin:0} .chat-error .text-button{margin-top:8px} #natural-research .chat-composer{width:100%;min-width:0;container-type:inline-size} -#natural-research .chat-composer #formalize-form,.chat-connecting{border:1px solid var(--gray-200);border-radius:18px;background:var(--card);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--on-ink) 65%,transparent),var(--shadow-panel);transition:border-color .18s var(--ease-out),box-shadow .22s var(--ease-out)} -#natural-research .chat-composer #formalize-form{display:block;margin:0;padding:8px 10px} +#natural-research .chat-composer #formalize-form,.chat-connecting{border:1px solid var(--gray-200);border-radius:18px;background:var(--card);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--on-ink) 75%,transparent),var(--shadow-card);transition:border-color .18s var(--ease-out),box-shadow .22s var(--ease-out)} +#natural-research .chat-composer #formalize-form{display:block;margin:0;padding:10px 12px} .chat-connecting{display:flex;align-items:center;justify-content:center;gap:10px;min-height:150px;padding:16px;color:var(--muted);font-size:var(--text-base)} #natural-research .chat-composer #formalize-form:focus-within{border-color:var(--gray-400)} .chat-editing-problem{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;font-size:12px;color:var(--muted);flex-wrap:wrap} @@ -188,7 +188,7 @@ body[data-chat-empty=true] #research-conversation-panel #natural-research{margin .chat-library-reference-tools li>code{display:block;font:11px/1.8 var(--mono);white-space:pre-wrap} .chat-library-reference-tools pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.8 var(--mono);margin:8px 0 0} /* The border and ring identify the active editor in both themes. */ -#natural-research .chat-composer #formalize-form:has(#formalize-original:focus){border-color:var(--blue-600);box-shadow:0 0 0 1px var(--blue-600),0 14px 36px -18px color-mix(in srgb,var(--blue-600) 24%,transparent),var(--shadow-panel)} +#natural-research .chat-composer #formalize-form:has(#formalize-original:focus){border-color:var(--blue-600);box-shadow:0 0 0 1px var(--blue-600),0 18px 42px -18px color-mix(in srgb,var(--blue-600) 28%,transparent),var(--shadow-card)} #natural-research .chat-composer #formalize-original{display:block;width:100%;min-width:0;min-height:92px;max-height:260px;margin:0;padding:12px 14px 10px;border:0;border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:16px;line-height:1.75;resize:none;box-shadow:none;overflow-y:auto} #natural-research .chat-composer[data-chat-followup=true] #formalize-original{min-height:56px} #natural-research .chat-composer #formalize-original:focus{outline:none} diff --git a/apps/web/client/research.css b/apps/web/client/research.css index d570080b..64072860 100644 --- a/apps/web/client/research.css +++ b/apps/web/client/research.css @@ -1,19 +1,20 @@ html.research-root{height:auto;min-height:100%;overflow:auto} -.research-page{height:auto;min-height:100dvh;overflow:auto;display:block} +.research-page{height:auto;min-height:100dvh;overflow:auto;display:block;background-image:linear-gradient(color-mix(in srgb,var(--gray-300) 11%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--gray-300) 11%,transparent) 1px,transparent 1px);background-size:48px 48px} +:root[data-theme=dark] .research-page{background-image:linear-gradient(color-mix(in srgb,var(--gray-300) 7%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--gray-300) 7%,transparent) 1px,transparent 1px)} .research-page[data-research-page=library]{overflow:visible} /* Same bar as the workbench: 56px, brand left, the page links and language on the right in the workbench's quiet 12px text. */ -.research-page .topbar{position:sticky;top:0;z-index:20;min-height:56px;height:auto;padding:0 18px;flex-wrap:wrap;gap:14px} +.research-page .topbar{position:sticky;top:0;z-index:20;min-height:56px;height:auto;padding:0 20px;flex-wrap:wrap;gap:14px} .research-nav{display:flex;align-items:center;gap:14px;margin-left:auto} -.research-nav a{display:inline-flex;align-items:center;min-height:24px;color:var(--muted);font-size:12px;text-decoration:none;white-space:nowrap} -.research-nav a[aria-current=page]{color:var(--ink)} +.research-nav a{display:inline-flex;align-items:center;min-height:24px;color:var(--muted);font-size:13px;text-decoration:none;white-space:nowrap} +.research-nav a[aria-current=page]{color:var(--ink);font-weight:500} .research-nav a:hover{color:var(--ink)} .research-page[data-research-page=library] .research-nav{min-width:0;max-width:100%;overflow-x:auto} -.research-page .topbar>.locale-switch{margin-left:4px;font-size:12px;color:var(--muted)} -.research-shell{max-width:1240px;padding:42px 32px 72px;margin:0 auto} -.research-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:30px} -.research-heading h1{font:400 clamp(27px,3.4vw,38px)/1.25 var(--serif);letter-spacing:-.025em;margin:5px 0 12px;color:var(--ink);overflow-wrap:anywhere} -.research-heading p{margin:0;max-width:680px;color:var(--muted)} -.research-eyebrow{font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:var(--blue);font-weight:600} +.research-page .topbar>.locale-switch{margin-left:4px;font-size:13px;color:var(--muted)} +.research-shell{max-width:1240px;padding:48px 32px 80px;margin:0 auto} +.research-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:34px} +.research-heading h1{font:400 clamp(32px,3.8vw,46px)/1.18 var(--serif);letter-spacing:-.03em;margin:6px 0 12px;color:var(--ink);overflow-wrap:anywhere} +.research-heading p{margin:0;max-width:680px;font-size:15px;line-height:1.7;color:var(--gray-600)} +.research-eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);font-weight:600} .research-heading-actions,.research-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap} .research-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:30px;align-items:start} .research-sidebar{position:sticky;top:100px;min-width:0;display:grid;gap:22px} @@ -27,19 +28,19 @@ html.research-root{height:auto;min-height:100%;overflow:auto} .research-directory-toolbar>details{flex-basis:100%;font-size:12px;color:var(--muted)} .research-directory-toolbar>details>summary{cursor:pointer;width:fit-content} .research-directory-toolbar>details[open]>.research-form{margin-top:14px} -.research-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0;min-width:0} -.research-directory-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0;padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);text-align:left;transition:border-color .15s,box-shadow .15s} -.research-directory-card:is(button,[aria-pressed]):hover,.research-directory-card:has(.research-card-heading a):hover{border-color:var(--gray-300);box-shadow:var(--shadow-sm)} +.research-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;list-style:none;margin:0;padding:0;min-width:0} +.research-directory-card{display:flex;flex-direction:column;align-items:stretch;gap:14px;min-width:0;padding:26px;border:1px solid var(--gray-200);border-radius:16px;background:var(--card);color:var(--ink);text-align:left;box-shadow:var(--shadow-sm);transition:border-color .16s var(--ease-out),box-shadow .2s var(--ease-out),transform .16s var(--ease-out)} +.research-directory-card:is(button,[aria-pressed]):hover,.research-directory-card:has(.research-card-heading a):hover{border-color:var(--blue-300);box-shadow:var(--shadow-md);transform:translateY(-2px)} .research-directory-card[aria-pressed=true]{border-color:var(--blue);background:var(--accent-soft)} button.research-directory-card{font-family:var(--sans);cursor:pointer} -.research-card-heading{font-size:18px;font-weight:550;line-height:1.5;margin:0;overflow-wrap:anywhere} +.research-card-heading{font-family:var(--serif);font-size:22px;font-weight:500;letter-spacing:-.02em;line-height:1.35;margin:0;overflow-wrap:anywhere} .research-card-heading a{color:inherit;text-decoration:none} .research-card-heading a:hover{color:var(--blue)} -.research-card-description{margin:0;font-size:14px;line-height:1.8;color:var(--gray-600);overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3} +.research-card-description{margin:0;font-size:14.5px;line-height:1.75;color:var(--gray-600);overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3} .research-card-description p{margin:0} .research-directory-card>.research-inline-link{margin-top:auto;align-self:start} -.research-card-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:8px;font-size:12px} -.research-card-footer time{color:var(--muted);font-size:11px} +.research-card-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:10px;font-size:13px} +.research-card-footer time{color:var(--muted);font-size:12px} .research-card-footer a{text-decoration:none} .research-breadcrumb{margin-bottom:18px;font-size:12px} .research-section-nav{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px} @@ -52,19 +53,19 @@ button.research-directory-card{font-family:var(--sans);cursor:pointer} .research-overview-facts>div{min-width:0} .research-overview-facts dt{font-size:11px;color:var(--muted);margin-bottom:5px} .research-overview-facts dd{font-size:14px;margin:0;overflow-wrap:anywhere} -.research-panel{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--card);padding:22px} -.research-panel h2{font-size:17px;line-height:1.4;margin:0;color:var(--ink);font-weight:550} -.research-panel h3{font-size:14px;line-height:1.4;margin:18px 0 9px;font-weight:550;color:var(--ink)} -.research-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px} -.research-section-head p{font-size:12px;color:var(--muted);margin:5px 0 0} +.research-panel{min-width:0;border:1px solid var(--gray-200);border-radius:16px;background:var(--card);padding:26px;box-shadow:var(--shadow-sm)} +.research-panel h2{font-family:var(--serif);font-size:20px;letter-spacing:-.015em;line-height:1.35;margin:0;color:var(--ink);font-weight:500} +.research-panel h3{font-size:15px;line-height:1.45;margin:18px 0 9px;font-weight:600;color:var(--ink)} +.research-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px} +.research-section-head p{font-size:13px;color:var(--muted);margin:5px 0 0} .research-panel>details>summary{cursor:pointer;font-weight:550;font-size:14px;color:var(--ink)} .research-panel>details[open]>summary{margin-bottom:20px} .research-form{display:grid;gap:15px;max-width:100%} .research-form[data-project-proof-draft]{grid-template-columns:minmax(0,1fr);min-width:0}[data-candidate-composer] .research-field-note{overflow-wrap:anywhere}[data-human-drafts] code{white-space:normal;overflow-wrap:anywhere} .research-editor-fields{border:0;margin:0;padding:0;min-width:0} -.research-form label,.research-field{display:grid;gap:6px;font-size:12px;font-weight:500;color:var(--gray-700);min-width:0} -.research-field-note{font-weight:400;color:var(--muted);font-size:12px;line-height:1.6;margin:0} -.research-page :is(input:not([type=checkbox]),textarea,select){width:100%;min-width:0;border:1px solid var(--gray-200);border-radius:8px;background-color:var(--paper);padding:9px 11px;color:var(--ink);font:400 13px/1.6 var(--sans);box-sizing:border-box} +.research-form label,.research-field{display:grid;gap:6px;font-size:13px;font-weight:500;color:var(--gray-700);min-width:0} +.research-field-note{font-weight:400;color:var(--muted);font-size:12.5px;line-height:1.6;margin:0} +.research-page :is(input:not([type=checkbox]),textarea,select){width:100%;min-width:0;border:1px solid var(--gray-200);border-radius:10px;background-color:var(--card);padding:10px 13px;color:var(--ink);font:400 14px/1.55 var(--sans);box-shadow:inset 0 1px 2px rgb(20 20 19/.03);box-sizing:border-box} .research-page select{padding:8px 32px 8px 11px;line-height:1.35;background-position:right 10px center} .research-page textarea{resize:vertical;min-height:88px} .research-page .research-code{font-family:var(--mono);font-size:12px;line-height:1.65;tab-size:2} @@ -80,23 +81,23 @@ button.research-directory-card{font-family:var(--sans);cursor:pointer} .research-list-item:hover .research-item-title{color:var(--blue)} .research-item-title{display:block;font-size:14px;font-weight:550;line-height:1.55;color:var(--ink);overflow-wrap:anywhere} .research-list-item[aria-current=true] .research-item-title{color:var(--blue)} -.research-item-meta{display:flex;gap:6px 12px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.7} -.research-description{color:var(--gray-600);font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere} +.research-item-meta{display:flex;gap:6px 12px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:6px;line-height:1.7} +.research-description{color:var(--gray-600);font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere} .research-description p{margin:0 0 12px} -.research-empty{padding:20px 0;color:var(--muted);font-size:13px;line-height:1.8} -.research-notice{padding:12px 15px;border:1px solid var(--green-200);border-radius:8px;color:var(--green-700);background:var(--green-50);font-size:13px;margin:0 0 20px;overflow-wrap:anywhere} -.research-error{padding:12px 15px;border:1px solid var(--red-200);border-radius:8px;color:var(--red-700);background:var(--red-50);font-size:13px;line-height:1.7;margin:0;overflow-wrap:anywhere} -.research-status{font-size:12px;color:var(--muted);line-height:1.8} -.research-chip{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:9999px;padding:2px 9px;font-size:11px;color:var(--gray-600);background:var(--paper);line-height:1.65;overflow-wrap:anywhere} -.research-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap} -.research-state{font-size:11px;font-weight:500;color:var(--muted)} +.research-empty{padding:20px 0;color:var(--muted);font-size:14px;line-height:1.8} +.research-notice{padding:13px 16px;border:1px solid var(--green-200);border-radius:10px;color:var(--green-700);background:var(--green-50);font-size:13.5px;margin:0 0 20px;overflow-wrap:anywhere} +.research-error{padding:13px 16px;border:1px solid var(--red-200);border-radius:10px;color:var(--red-700);background:var(--red-50);font-size:13.5px;line-height:1.7;margin:0;overflow-wrap:anywhere} +.research-status{font-size:13px;color:var(--muted);line-height:1.75} +.research-chip{display:inline-flex;align-items:center;border:1px solid var(--gray-200);border-radius:9999px;padding:3px 11px;font-size:12px;font-weight:500;color:var(--gray-700);background:var(--paper);line-height:1.55;overflow-wrap:anywhere} +.research-chips{display:flex;align-items:center;gap:7px;flex-wrap:wrap} +.research-state{font-size:12px;font-weight:600;color:var(--muted)} .research-state[data-state=accepted],.research-state[data-state=complete],.research-state[data-state=completed],.research-state[data-state=passed],.research-state[data-state=published]{color:var(--green-700)} .research-state[data-state=failed],.research-state[data-state=declined],.research-state[data-state=rejected]{color:var(--red-700)} .research-state[data-state=pending],.research-state[data-state=deferred]{color:var(--amber-700)} .research-avatar{width:44px;height:44px;border:1px solid var(--gray-200);border-radius:50%;display:grid;place-items:center;font:400 20px/1 var(--serif);color:var(--blue);background:var(--accent-soft);flex-shrink:0} .research-person{display:flex;align-items:center;gap:12px;min-width:0} .research-person h2{overflow-wrap:anywhere} -.research-inline-link{font-size:12px;overflow-wrap:anywhere} +.research-inline-link{font-size:13px;font-weight:500;color:var(--blue);overflow-wrap:anywhere} .research-facts{display:grid;gap:10px;padding:0;margin:0} .research-facts>div{display:grid;grid-template-columns:minmax(90px,130px) minmax(0,1fr);gap:12px;font-size:12px} .research-facts dt{color:var(--muted)} From ca8a3ea3820b2b97ba0fc462f980d1fb091c2b7e Mon Sep 17 00:00:00 2001 From: Zhenhao Liu <3100378030@qq.com> Date: Fri, 27 Nov 2026 18:02:05 +0800 Subject: [PATCH 2/3] Redesign proof trajectory views and declutter zoomable dependency graphs --- apps/web/client/app.css | 21 +- apps/web/client/collaborationView.tsx | 42 ++- apps/web/client/ui/CollaborationSurface.tsx | 3 +- apps/web/solutionRoute.css | 138 ++++++---- apps/web/solutionRouteView.ts | 109 +++++++- docs/process.css | 266 +++++++++++++------ docs/web/process.ts | 35 ++- docs/web/processRoadmap.ts | 270 ++++++++++++++++++-- 8 files changed, 701 insertions(+), 183 deletions(-) diff --git a/apps/web/client/app.css b/apps/web/client/app.css index 3ca7020f..35dea46b 100644 --- a/apps/web/client/app.css +++ b/apps/web/client/app.css @@ -1964,6 +1964,11 @@ kbd{display:inline-flex;align-items:center;height:20px;padding:0 5px;border:1px .collab-map .collab-map-tools>input,.collab-map .collab-map-tools>select{min-height:34px;font-size:var(--text-sm)} .collab-task-result{min-height:26px;padding-bottom:4px} .collab-graph-frame{position:relative;border-top:1px solid var(--gray-150)} +.collab-graph-frame[data-expanded=true]{position:fixed;inset:14px;z-index:1300;display:flex;flex-direction:column;border:1px solid var(--gray-200);border-radius:16px;background:var(--card);box-shadow:0 0 0 40px rgb(20 20 19/.52);overflow:hidden} +.collab-graph-frame[data-expanded=true]>.collab-graph-scroll{flex:1;max-height:none;height:100%} +.collab-graph-zoom .collab-graph-expand{margin-left:3px;padding:0 9px;background:#141413;color:#f5f4ee;font-weight:600} +.collab-graph-zoom .collab-graph-expand:hover{background:#2d2c28;color:#f5f4ee} +:root[data-theme=dark] .collab-graph-zoom .collab-graph-expand{background:#e8e5dc;color:#141413} .collab-graph-frame>.collab-graph-legend{position:absolute;left:10px;right:10px;bottom:10px;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin:0;padding:0;pointer-events:none} .collab-graph-frame>.collab-graph-legend>*{pointer-events:auto} .collab-graph-frame .collab-graph-legend>.collab-help{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:4px 9px;border:1px solid var(--gray-150);border-radius:4px;background:color-mix(in srgb,var(--card) 90%,transparent);backdrop-filter:blur(4px);font-size:12px} @@ -2596,10 +2601,11 @@ summary.route-item-head:focus-visible{outline-offset:-2px} .trajectory-roadmap .solution-route{margin-top:6px} .trajectory-heading-actions{justify-content:flex-end;margin-bottom:-4px} @media(max-width:640px){.trajectory-heading-actions{justify-content:flex-start;margin-bottom:0}} -.trajectory-view-toggle{display:flex;align-items:center;gap:2px;margin-left:auto;padding:3px;border:1px solid var(--gray-150);border-radius:var(--radius-md);background:var(--gray-50)} -.trajectory-view-toggle>button{display:flex;align-items:center;gap:6px;min-height:30px;padding:4px 10px;border:0;border-radius:4px;background:transparent;color:var(--gray-600);font:inherit;font-size:var(--text-xs);cursor:pointer} +.trajectory-view-toggle{display:flex;align-items:center;gap:3px;margin-left:auto;padding:4px;border:1px solid var(--gray-200);border-radius:12px;background:var(--card);box-shadow:0 4px 12px -10px rgb(20 20 19/.2)} +.trajectory-view-toggle>button{display:flex;align-items:center;gap:6px;min-height:30px;padding:5px 12px;border:0;border-radius:8px;background:transparent;color:var(--gray-600);font:inherit;font-size:var(--text-xs);font-weight:500;cursor:pointer} .trajectory-view-toggle>button>svg{width:14px;height:14px} -.trajectory-view-toggle>button[aria-pressed=true]{background:var(--card);box-shadow:var(--shadow-sm);color:var(--gray-900);font-weight:600} +.trajectory-view-toggle>button[aria-pressed=true]{background:#141413;color:#f5f4ee;font-weight:600} +:root[data-theme=dark] .trajectory-view-toggle>button[aria-pressed=true]{background:#e8e5dc;color:#141413} .roadmap-host{min-width:0} .roadmap-host[data-expanded]{min-height:560px} .research-roadmap{min-width:0;overflow:hidden;border:1px solid var(--gray-150);border-radius:var(--radius-lg);background:var(--card)} @@ -2682,7 +2688,7 @@ summary.route-item-head:focus-visible{outline-offset:-2px} .roadmap-legend .roadmap-legend-dependency{border-color:var(--sky-500);border-top-style:dotted} .roadmap-legend>.roadmap-hint{margin-left:auto;color:var(--gray-500)} .research-roadmap>.trajectory-note{padding:0 14px 10px} -.roadmap-detail{padding:16px;border:1px solid var(--gray-150);border-radius:var(--radius-lg);background:var(--card)} +.roadmap-detail{padding:20px 22px;border:1px solid var(--gray-200);border-radius:16px;background:var(--card);box-shadow:0 12px 26px -22px rgb(20 20 19/.24)} .roadmap-detail>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px} .roadmap-detail>header>div>span{font-size:var(--text-xs);color:var(--gray-500)} .roadmap-detail h4{margin:3px 0 0;font-size:var(--text-base);font-weight:600} @@ -2714,6 +2720,13 @@ summary.route-item-head:focus-visible{outline-offset:-2px} .trajectory-step[data-tone=warning]>.trajectory-marker{border-color:var(--amber-200);background:var(--amber-50);color:var(--amber-600)} .trajectory-step[data-tone=running]>.trajectory-marker{border-color:var(--blue-100);background:var(--blue-50);color:var(--blue-600)} .trajectory-step[data-tone=human]>.trajectory-marker{border-color:var(--blue-100);background:var(--blue-50);color:var(--blue-700)} +.trajectory-step[data-kind=evaluation][data-tone=passed]{padding:16px 18px;margin-bottom:12px;border:1.5px solid #415946;border-radius:14px;background:linear-gradient(155deg,#141a17 0%,#1a261f 100%);color:#f5f4ee;box-shadow:0 16px 30px -22px rgb(14 20 17/.55)} +.trajectory-step[data-kind=evaluation][data-tone=passed]::before{display:none} +.trajectory-step[data-kind=evaluation][data-tone=passed]>.trajectory-marker{border-color:rgb(169 189 139/.45);background:rgb(169 189 139/.16);color:#a9bd8b} +.trajectory-step[data-kind=evaluation][data-tone=passed] .trajectory-line>h4, +.trajectory-step[data-kind=evaluation][data-tone=passed] .trajectory-fold{color:#f5f4ee} +.trajectory-step[data-kind=evaluation][data-tone=passed] .trajectory-line>time{color:#a8b5ab} +.trajectory-step[data-kind=evaluation][data-tone=passed] .trajectory-result.passed{color:#a9bd8b;font-weight:600} .trajectory-main{display:grid;gap:5px;min-width:0;padding-top:2px} .trajectory-line{display:flex;align-items:baseline;gap:4px 12px;min-width:0} .trajectory-line>h4{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px;flex:1;min-width:0;margin:0;font-size:var(--text-sm);font-weight:600;line-height:1.55;color:var(--gray-800);overflow-wrap:anywhere} diff --git a/apps/web/client/collaborationView.tsx b/apps/web/client/collaborationView.tsx index 940691a2..3c9c3681 100644 --- a/apps/web/client/collaborationView.tsx +++ b/apps/web/client/collaborationView.tsx @@ -217,6 +217,7 @@ export class CollaborationView { else if (button.hasAttribute('data-collab-open-report')) this.openReport(); else if (button.dataset.collabTaskView) this.switchTaskView(view, button.dataset.collabTaskView as TaskView); else if (button.dataset.collabGraphZoom) this.zoomGraph(view, button.dataset.collabGraphZoom as 'in' | 'out' | 'reset' | 'fit'); + else if (button.hasAttribute('data-collab-graph-expand')) this.toggleGraphExpand(view); else if (button.hasAttribute('data-collab-task-reset')) { this.resetTaskFilters(view); element.querySelector('[data-collab-task-search]')!.focus({ preventScroll: true }); } else if (button.hasAttribute('data-collab-task-show-selected')) { this.resetTaskFilters(view); this.revealSelectedTask(view); } else if (button.hasAttribute('data-collab-task-inspect-selected')) this.selectTask(view, view.selectedTask, view.selectedVersion, true); @@ -646,16 +647,51 @@ export class CollaborationView { event.preventDefault(); this.zoomGraph(view, view.graphZoom * Math.exp(-event.deltaY * (event.deltaMode === 1 ? 0.05 : 0.0015)), { x: event.clientX, y: event.clientY }); }, { passive: false }); + pane.addEventListener('dblclick', event => { + if ((event.target as Element).closest('button')) return; + const next = view.graphZoom >= 1.45 ? 1 : Math.min(2.2, view.graphZoom * 1.35); + this.zoomGraph(view, next, { x: event.clientX, y: event.clientY }); + }); pane.addEventListener('keydown', event => { + if (event.key === 'Escape') { + const frame = pane.closest('.collab-graph-frame'); + if (frame?.dataset.expanded === 'true') { event.preventDefault(); this.toggleGraphExpand(view, false); return; } + } if (event.target !== pane || event.altKey || event.ctrlKey || event.metaKey) return; const action = event.key === '+' || event.key === '=' ? 'in' : event.key === '-' ? 'out' : event.key === '0' ? 'reset' : undefined; if (action) { event.preventDefault(); this.zoomGraph(view, action); } }); } + private toggleGraphExpand(view: ViewState, force?: boolean) { + const frame = view.element.querySelector('.collab-graph-frame'); + const button = view.element.querySelector('[data-collab-graph-expand]'); + if (!frame || !button) return; + const expanded = force ?? frame.dataset.expanded !== 'true'; + frame.dataset.expanded = String(expanded); + button.setAttribute('aria-expanded', String(expanded)); + button.textContent = expanded ? t('收起画布') : t('展开画布'); + if (expanded) { + frame.setAttribute('role', 'dialog'); frame.setAttribute('aria-modal', 'true'); + const onEsc = (event: KeyboardEvent) => { + if (event.key === 'Escape' && frame.dataset.expanded === 'true') { + event.preventDefault(); this.toggleGraphExpand(view, false); + button.focus({ preventScroll: true }); + } + }; + window.addEventListener('keydown', onEsc, { once: false }); + (frame as HTMLElement & { _esc?: (e: KeyboardEvent) => void })._esc = onEsc; + } else { + frame.removeAttribute('role'); frame.removeAttribute('aria-modal'); + const prev = (frame as HTMLElement & { _esc?: (e: KeyboardEvent) => void })._esc; + if (prev) window.removeEventListener('keydown', prev); + } + } // The pane's bottom padding keeps the floating legend clear of the last row; fit within what remains. private fitZoom(pane: HTMLElement, layout: GraphLayout) { const style = getComputedStyle(pane); - const height = parseFloat(style.maxHeight) - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom); + const maxH = parseFloat(style.maxHeight); + const baseH = Number.isFinite(maxH) && maxH > 0 ? maxH : pane.clientHeight; + const height = Math.max(180, baseH - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom)); return Math.min(pane.clientWidth / layout.width, height / layout.height, 1); } private zoomGraph(view: ViewState, target: number | 'in' | 'out' | 'reset' | 'fit', anchor?: { x: number; y: number }) { @@ -663,7 +699,7 @@ export class CollaborationView { const previous = view.graphZoom; const next = target === 'in' ? previous * 1.2 : target === 'out' ? previous / 1.2 : target === 'reset' ? 1 : target === 'fit' ? (layout ? this.fitZoom(pane, layout) : 1) : target; - view.graphZoom = Math.min(1.6, Math.max(minGraphZoom, Math.round(next * 100) / 100)); + view.graphZoom = Math.min(2.5, Math.max(minGraphZoom, Math.round(next * 100) / 100)); // Keep the point under the pointer (or the viewport centre) in place. const box = pane.getBoundingClientRect(), x = anchor ? anchor.x - box.left : pane.clientWidth / 2, y = anchor ? anchor.y - box.top : pane.clientHeight / 2; const contentX = (pane.scrollLeft + x) / previous, contentY = (pane.scrollTop + y) / previous; @@ -677,7 +713,7 @@ export class CollaborationView { const level = view.element.querySelector('[data-collab-graph-zoom-level]')!, text = `${Math.round(view.graphZoom * 100)}%`; if (level.textContent !== text) level.textContent = text; for (const button of view.element.querySelectorAll('[data-collab-graph-zoom="in"],[data-collab-graph-zoom="out"]')) - button.disabled = button.dataset.collabGraphZoom === 'in' ? view.graphZoom >= 1.6 : view.graphZoom <= minGraphZoom; + button.disabled = button.dataset.collabGraphZoom === 'in' ? view.graphZoom >= 2.5 : view.graphZoom <= minGraphZoom; } // A card's footer shares its width with the token count, so a checked proof uses the meter legend's shorter word. private taskCard(view: ViewState, task: Task, peak: number): TaskCard { diff --git a/apps/web/client/ui/CollaborationSurface.tsx b/apps/web/client/ui/CollaborationSurface.tsx index e40a9a74..e8f297e3 100644 --- a/apps/web/client/ui/CollaborationSurface.tsx +++ b/apps/web/client/ui/CollaborationSurface.tsx @@ -40,7 +40,8 @@ export function CollaborationSurface(props: { runId: string; taskView: TaskView;

{t('先完成')}{t('可选路线')}{t('拖动平移')}

-
+ +
diff --git a/apps/web/solutionRoute.css b/apps/web/solutionRoute.css index edda1cf5..74357c1b 100644 --- a/apps/web/solutionRoute.css +++ b/apps/web/solutionRoute.css @@ -1,76 +1,113 @@ -.solution-route { --solution-ink:var(--ink,#262b25); --solution-green:var(--green,#3c5229); --solution-line:var(--line,#deded4); --solution-card:var(--card,#fffefa); --solution-canvas:var(--surface,#f6f6ef); --solution-muted:var(--muted,#777568); color:var(--solution-ink); min-width:0; margin:22px 0; } +.solution-route { --solution-ink:var(--ink,#262b25); --solution-green:var(--green,#4b5c2f); --solution-line:var(--line,#e2dfd6); --solution-card:var(--card,#fdfcf9); --solution-canvas:var(--surface,#f5f4ee); --solution-muted:var(--muted,#6e6b60); --solution-terra:#c95633; color:var(--solution-ink); min-width:0; margin:18px 0; } +:root[data-theme=dark] .solution-route { --solution-ink:#f0ede5; --solution-green:#a9bd8b; --solution-line:#37352f; --solution-card:#22211e; --solution-canvas:#171614; --solution-muted:#b0aba0; --solution-terra:#e28a6b; } .solution-route * { box-sizing:border-box; } -.solution-route-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 16px; align-items:start; margin-bottom:16px; } +.solution-route-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 16px; align-items:start; margin-bottom:14px; } .solution-route-title { flex:1 1 220px; min-width:0; } -.solution-route-heading h3 { font-size:21px; line-height:1.45; margin:0; font-weight:500; } -.solution-route-heading p { margin:6px 0 0; font-size:13px; line-height:1.8; color:var(--solution-muted); } +.solution-route-heading h3 { font-family:var(--serif,Georgia,serif); font-size:22px; line-height:1.4; margin:0; font-weight:500; } +.solution-route-heading p { margin:4px 0 0; font-size:13px; line-height:1.7; color:var(--solution-muted); } +.solution-route-heading > [data-solution-count] { font:500 12px/1 var(--mono,monospace); padding:6px 10px; border:1px solid var(--solution-line); border-radius:999px; background:var(--solution-card); color:var(--solution-muted); } .solution-route-heading-actions { display:flex; align-items:center; gap:12px; margin-left:auto; } .solution-route-heading-actions > span { font-size:12px; white-space:nowrap; color:var(--solution-muted); } -.solution-route-expand { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:7px 10px; border:1px solid var(--solution-line); border-radius:8px; background:transparent; color:var(--solution-ink); font:inherit; font-size:12px; line-height:1.5; white-space:nowrap; cursor:pointer; } +.solution-route-expand { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:7px 12px; border:1px solid var(--solution-line); border-radius:10px; background:var(--solution-card); color:var(--solution-ink); font:inherit; font-size:12px; line-height:1.5; white-space:nowrap; cursor:pointer; } .solution-route-expand svg { flex:none; } .solution-route-expand:hover { background:var(--solution-canvas); } .solution-route-overview { margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid var(--solution-line); } .solution-route-overview section + section { margin-top:14px; } .solution-route-overview h4 { margin:0 0 5px; color:var(--solution-muted); font-size:12px; font-weight:400; } -.solution-route-stages { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 20px; } -.solution-route-stages button { flex:1 1 200px; display:grid; align-content:start; grid-template-columns:24px minmax(0,1fr); gap:5px 10px; text-align:left; padding:12px; color:inherit; font:inherit; border:1px solid var(--solution-line); border-radius:3px; background:transparent; cursor:pointer; } -.solution-route-stages button[aria-current] { border-color:var(--solution-green); } -.solution-route-stages button > span:first-child { grid-row:span 2; color:var(--solution-muted); font-size:11px; } -.solution-route-stages button strong { font-size:13px; font-weight:500; overflow-wrap:anywhere; } -.solution-route-stages button > span:last-child { color:var(--solution-muted); font-size:12px; line-height:1.8; overflow-wrap:anywhere; } -.solution-route-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:10px; scroll-margin-top:80px; } +.solution-route-stages { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 18px; } +.solution-route-stages button { flex:1 1 200px; display:grid; align-content:start; grid-template-columns:24px minmax(0,1fr); gap:5px 10px; text-align:left; padding:12px 14px; color:inherit; font:inherit; border:1px solid var(--solution-line); border-radius:12px; background:var(--solution-card); cursor:pointer; } +.solution-route-stages button[aria-current] { border-color:var(--solution-green); box-shadow:0 0 0 1px var(--solution-green); } +.solution-route-stages button > span:first-child { grid-row:span 2; color:var(--solution-muted); font:600 11px var(--mono,monospace); } +.solution-route-stages button strong { font-size:13px; font-weight:600; overflow-wrap:anywhere; } +.solution-route-stages button > span:last-child { color:var(--solution-muted); font-size:12px; line-height:1.7; overflow-wrap:anywhere; } +.solution-route-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:12px; scroll-margin-top:80px; } .solution-route-search { flex:1 1 190px; min-width:0; } -.solution-route-search input { width:100%; border:1px solid var(--solution-line); border-radius:3px; padding:9px 11px; font:inherit; font-size:13px; min-height:40px; background:transparent; color:inherit; } -.solution-route-tools button,.solution-route-footer button,.solution-route-open,.solution-route-read { min-height:40px; padding:8px 11px; border:1px solid var(--solution-line); background:transparent; color:var(--solution-green); border-radius:3px; font:inherit; font-size:12px; line-height:1.5; cursor:pointer; } -.solution-route-tools > div { display:flex; flex-wrap:wrap; align-items:center; gap:3px; } -.solution-route[data-solution-compact=true][data-solution-more=false][data-solution-expanded=false] .solution-route-tools [data-solution-all],.solution-route[data-solution-compact=true][data-solution-more=false][data-solution-expanded=false] .solution-route-tools [data-solution-library],.solution-route[data-solution-compact=true][data-solution-more=false][data-solution-expanded=false] .solution-route-tools > div:not(.solution-route-view-controls) { display:none; } -.solution-route-tools button[aria-pressed=true] { border-color:var(--solution-green); background:var(--green-50,#eff2e7); } -.solution-route-tools button:hover,.solution-route-footer button:hover,.solution-route-open:hover,.solution-route-read:hover { background:var(--green-50,#eff2e7); } +.solution-route-search input { width:100%; border:1px solid var(--solution-line); border-radius:10px; padding:8px 12px; font:inherit; font-size:13px; min-height:38px; background:var(--solution-card); color:var(--solution-ink); } +.solution-route-tools button,.solution-route-footer button,.solution-route-open,.solution-route-read { min-height:38px; padding:7px 12px; border:1px solid var(--solution-line); background:var(--solution-card); color:var(--solution-ink); border-radius:10px; font:inherit; font-size:12px; font-weight:500; line-height:1.45; cursor:pointer; } +.solution-route-tools > div { display:flex; flex-wrap:wrap; align-items:center; gap:4px; } +.solution-route[data-solution-compact=true][data-solution-more=false][data-solution-expanded=false] .solution-route-tools [data-solution-all],.solution-route[data-solution-compact=true][data-solution-more=false][data-solution-expanded=false] .solution-route-tools [data-solution-library],.solution-route[data-solution-compact=true][data-solution-more=false][data-solution-expanded=false] .solution-route-tools [data-solution-detail-toggle] { display:none; } +.solution-route-tools .solution-route-expand-btn { border-color:#141413; background:#141413; color:#f5f4ee; font-weight:600; } +:root[data-theme=dark] .solution-route-tools .solution-route-expand-btn { border-color:#e8e5dc; background:#e8e5dc; color:#141413; } +.solution-route-tools button[aria-pressed=true] { border-color:#141413; background:#141413; color:#f5f4ee; } +:root[data-theme=dark] .solution-route-tools button[aria-pressed=true] { border-color:#e8e5dc; background:#e8e5dc; color:#141413; } +.solution-route-tools button:hover,.solution-route-footer button:hover,.solution-route-open:hover,.solution-route-read:hover { border-color:var(--solution-green); } +.solution-route-tools button[aria-pressed=true]:hover { border-color:#141413; } +:root[data-theme=dark] .solution-route-tools button[aria-pressed=true]:hover { border-color:#e8e5dc; } .solution-route button:focus-visible,.solution-route input:focus-visible,.solution-route select:focus-visible,.solution-route-viewport:focus-visible { outline:2px solid var(--solution-green); outline-offset:3px; } -.solution-route-workspace { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr); border:1px solid var(--solution-line); border-radius:4px; overflow:hidden; } +.solution-route-workspace { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr); border:1px solid var(--solution-line); border-radius:16px; overflow:hidden; box-shadow:0 14px 32px -24px rgba(20,20,19,.24); } /* The workbench panel is narrow, so the map keeps the whole width and the step details open over it on demand. */ .solution-route[data-solution-compact=true]:not([data-solution-expanded=true]):not([data-solution-reading=true]) .solution-route-workspace { display:block; position:relative; } .solution-route[data-solution-compact=true]:not([data-solution-expanded=true]):not([data-solution-reading=true]) .solution-route-viewport { height:520px; } .solution-route[data-solution-compact=true]:not([data-solution-expanded=true]):not([data-solution-reading=true]) .solution-route-detail { position:absolute; inset:0 0 0 auto; z-index:2; width:min(430px,calc(100% - 36px)); height:520px; box-shadow:-14px 0 28px #28311b1f; } .solution-route[data-solution-compact=true][data-solution-detail=false]:not([data-solution-expanded=true]):not([data-solution-reading=true]) .solution-route-detail { display:none; } -.solution-route-detail-close { position:sticky; top:0; float:right; z-index:1; width:34px; height:34px; margin:-10px -10px 0 0; border:1px solid var(--solution-line); border-radius:3px; background:var(--solution-card); color:var(--solution-muted); font-size:17px; line-height:1; cursor:pointer; } +.solution-route-detail-close { position:sticky; top:0; float:right; z-index:1; width:34px; height:34px; margin:-10px -10px 0 0; border:1px solid var(--solution-line); border-radius:8px; background:var(--solution-card); color:var(--solution-muted); font-size:17px; line-height:1; cursor:pointer; } .solution-route-detail-close:hover { color:var(--solution-ink); } -.solution-route-viewport { min-width:0; height:500px; overflow:auto; overscroll-behavior:contain; position:relative; cursor:grab; background-color:var(--solution-canvas); background-image:radial-gradient(var(--solution-line) .7px,transparent .7px); background-size:18px 18px; scrollbar-width:thin; } +.solution-route-viewport { min-width:0; height:510px; overflow:auto; overscroll-behavior:contain; position:relative; cursor:grab; background-color:var(--solution-canvas); background-image:radial-gradient(var(--solution-line) .9px,transparent .9px); background-size:20px 20px; scrollbar-width:thin; } .solution-route-viewport[data-dragging=true] { cursor:grabbing; user-select:none; } .solution-route-scaled { position:relative; min-width:100%; min-height:100%; } .solution-route-canvas { position:absolute; top:0; left:0; transform-origin:0 0; } -.solution-route-lines { position:absolute; top:0; left:0; width:100%; height:100%; max-width:none; overflow:visible; pointer-events:none; } -.solution-route-lines > path { fill:none; stroke:#c2c7b5; stroke-width:1.5; } -.solution-route-lines marker path { fill:#8d9c76; } +.solution-route-lines { position:absolute; top:0; left:0; width:100%; height:100%; max-width:none; overflow:visible; pointer-events:none; color:var(--solution-green); } +.solution-route-lines > path { fill:none; stroke:var(--solution-muted); stroke-width:1.65; stroke-linecap:round; opacity:.38; transition:opacity .15s ease,stroke-width .15s ease; } +.solution-route-lines > path[data-edge-tone=passed] { stroke:var(--solution-green); opacity:.62; } +.solution-route-lines > path[data-edge-tone=failed] { stroke:var(--solution-terra); stroke-dasharray:6 5; stroke-width:1.8; opacity:.82; } +.solution-route-lines > path[data-edge-tone=human] { stroke:var(--solution-terra); stroke-dasharray:5 4; opacity:.72; } .solution-route-lines > path[data-solution-edge=evidence] { stroke-dasharray:5 4; } -.solution-route-lines > path[data-solution-edge=reference] { stroke-dasharray:1 4; stroke-linecap:round; } -.solution-route-lines > path[data-solution-edge=sequence] { stroke-width:1; } -.solution-route-lines > path[data-connected=true] { stroke:var(--solution-green); stroke-width:2.5; } -.solution-route-node { position:absolute; display:flex; flex-direction:column; text-align:left; padding:12px 13px; border:1px solid var(--solution-line); border-radius:4px; background:var(--solution-card); color:var(--solution-ink); cursor:pointer; overflow:hidden; font:inherit; box-shadow:0 2px 4px #28311b05; } -.solution-route-node[aria-pressed=true] { border-color:var(--solution-green); background:var(--green-50,#edf1e4); box-shadow:0 0 0 1px var(--solution-green); } -.solution-route-node[data-connected=true] { border-color:#87986c; } -.solution-route-node[data-status=failed] { border-left:3px solid #a86648; } -.solution-route-node[data-status=human] { border-left:3px solid #9e7850; } -.solution-route-node[data-status=running] { border-left:3px solid var(--solution-green); } +.solution-route-lines > path[data-solution-edge=reference] { stroke-dasharray:2 4; } +.solution-route-lines > path[data-solution-edge=sequence] { stroke-width:1.35; } +.solution-route-lines > path[data-connected=true] { stroke:var(--solution-green); stroke-width:2.35; opacity:.96; } +.solution-route-lines > path[data-connected=true][data-edge-tone=failed], +.solution-route-lines > path[data-connected=true][data-edge-tone=human] { stroke:var(--solution-terra); } +.solution-route-canvas[data-hover=true] .solution-route-lines > path { opacity:.10; } +.solution-route-canvas[data-hover=true] .solution-route-lines > path.is-hover-hit { opacity:.44; stroke-width:1.6; } +.solution-route-canvas[data-hover=true] .solution-route-lines > path.is-hover-direct { opacity:.98; stroke-width:2.55; } +.solution-route-canvas[data-hover=true] .solution-route-node { opacity:.38; } +.solution-route-canvas[data-hover=true] .solution-route-node.is-hover-hit { opacity:.82; } +.solution-route-canvas[data-hover=true] .solution-route-node.is-hover-direct { opacity:1; } +.solution-route-node { position:absolute; display:flex; flex-direction:column; text-align:left; padding:14px 16px; border:1.25px solid var(--solution-line); border-radius:14px; background:var(--solution-card); color:var(--solution-ink); cursor:pointer; overflow:hidden; font:inherit; box-shadow:0 10px 22px -18px rgba(20,20,19,.24); transition:border-color .15s ease,box-shadow .15s ease,opacity .15s ease; } +.solution-route-node:hover { border-color:var(--solution-green); box-shadow:0 14px 28px -18px rgba(20,20,19,.32); } +.solution-route-node[data-node-kind=problem] { border:1.5px solid var(--solution-ink); } +.solution-route-node[data-status=passed] { border-color:color-mix(in srgb,var(--solution-green) 42%,var(--solution-line)); } +.solution-route-node[aria-pressed=true] { border-color:var(--solution-green); background:var(--green-50,#edf2e5); box-shadow:0 0 0 2px color-mix(in srgb,var(--solution-green) 28%,transparent); } +:root[data-theme=dark] .solution-route-node[aria-pressed=true] { background:#252f23; border-color:#a9bd8b; } +.solution-route-node[data-connected=true] { border-color:color-mix(in srgb,var(--solution-green) 65%,var(--solution-line)); } +.solution-route-node[data-status=failed] { border:1.5px dashed var(--solution-terra); background:#fbf1ec; } +:root[data-theme=dark] .solution-route-node[data-status=failed] { background:#2b1f1c; border-color:#e28a6b; } +.solution-route-node[data-status=human] { border-left:3.5px solid var(--solution-terra); background:#faf4ee; } +:root[data-theme=dark] .solution-route-node[data-status=human] { background:#29221c; border-left-color:#e28a6b; } +.solution-route-node[data-status=running] { border-left:3.5px solid var(--solution-green); } +.solution-route-node[data-node-kind=acceptance][data-status=passed] { background:#141a17; border:1.5px solid #5d7046; color:#f5f4ee; box-shadow:0 18px 34px -20px rgba(14,20,17,.62); } +:root[data-theme=dark] .solution-route-node[data-node-kind=acceptance][data-status=passed] { background:#19241e; border-color:#7d9964; } +.solution-route-node[data-node-kind=acceptance][data-status=passed][aria-pressed=true] { background:#18241d; border-color:#a9bd8b; box-shadow:0 0 0 2px rgba(169,189,139,.35); } +.solution-route-node[data-node-kind=acceptance][data-status=passed] .solution-route-node-meta { color:#a9bd8b; } +.solution-route-node[data-node-kind=acceptance][data-status=passed] .solution-route-node-status { background:rgba(169,189,139,.18); border-color:rgba(169,189,139,.38); color:#c9dcae; } +.solution-route-node[data-node-kind=acceptance][data-status=passed] > strong { color:#f5f4ee; font-family:var(--serif,Georgia,serif); font-size:17px; } +.solution-route-node[data-node-kind=acceptance][data-status=passed] .solution-route-node-summary { color:#b6c3b9; } .solution-route-node[data-origin] { border-top-width:3px; } .solution-route-node[data-origin=target],.solution-route-legend i[data-origin=target] { border-top-color:var(--solution-green); } .solution-route-node[data-origin=lemma],.solution-route-legend i[data-origin=lemma] { border-top-color:#a9b592; } .solution-route-node[data-origin=definition],.solution-route-legend i[data-origin=definition] { border-top-color:#8a8f9c; } .solution-route-node[data-origin=computation],.solution-route-legend i[data-origin=computation] { border-top-color:#b08a4e; } -.solution-route-node[data-origin=given],.solution-route-legend i[data-origin=given] { border-top-color:#a86648; } -.solution-route-legend { display:flex; flex-wrap:wrap; gap:4px 14px; } +.solution-route-node[data-origin=given],.solution-route-legend i[data-origin=given] { border-top-color:#c95633; } +.solution-route-legend { display:flex; flex-wrap:wrap; gap:4px 14px; font-family:var(--mono,monospace); } .solution-route-legend > span { display:inline-flex; align-items:center; gap:6px; } .solution-route-legend i { display:inline-block; width:14px; border-top:3px solid; } -.solution-route-legend i[data-edge] { width:22px; border-top:2px solid #8d9c76; } -.solution-route-legend i[data-edge=sequence] { border-top-width:1px; } +.solution-route-legend i[data-edge] { width:22px; border-top:2px solid var(--solution-green); } +.solution-route-legend i[data-edge=sequence] { border-top-width:1.5px; border-color:var(--solution-muted); } +.solution-route-legend i[data-edge=decision] { border-top-style:dashed; border-color:var(--solution-terra); } .solution-route-legend i[data-edge=evidence] { border-top-style:dashed; } .solution-route-legend i[data-edge=reference] { border-top-style:dotted; } .solution-route-node[data-origin=library],.solution-route-legend i[data-origin=library] { border-top-color:#6f8fa3; } .solution-route-node[data-origin=library] { border-style:dashed; border-top-style:solid; } .solution-route-overview pre { margin:0; padding:10px 12px; max-height:220px; overflow:auto; font:12px/1.85 var(--mono,monospace); background:var(--solution-canvas); border:1px solid var(--solution-line); white-space:pre-wrap; overflow-wrap:anywhere; tab-size:2; } -.solution-route-node-meta { display:flex; justify-content:space-between; gap:6px; color:var(--solution-muted); font-size:11px; line-height:1.6; margin-bottom:7px; flex-shrink:0; } -.solution-route-node > strong { font-size:14px; line-height:1.55; font-weight:500; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; flex-shrink:0; } -.solution-route-node-summary { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; font-size:12px; line-height:1.7; color:var(--solution-muted); margin-top:5px; overflow-wrap:anywhere; flex-shrink:0; } +.solution-route-node-meta { display:flex; align-items:center; justify-content:space-between; gap:6px; color:var(--solution-muted); font:600 11px/1.35 var(--mono,monospace); margin-bottom:7px; flex-shrink:0; } +.solution-route-node-status { padding:2px 7px; border-radius:999px; border:1px solid var(--solution-line); background:var(--solution-canvas); color:var(--solution-muted); font-size:10.5px; font-weight:600; white-space:nowrap; } +.solution-route-node[data-status=passed] .solution-route-node-status { border-color:color-mix(in srgb,var(--solution-green) 42%,transparent); background:color-mix(in srgb,var(--solution-green) 12%,var(--solution-card)); color:var(--solution-green); } +.solution-route-node[data-status=failed] .solution-route-node-status { border-color:color-mix(in srgb,var(--solution-terra) 45%,transparent); background:color-mix(in srgb,var(--solution-terra) 12%,var(--solution-card)); color:#a94222; } +:root[data-theme=dark] .solution-route-node[data-status=failed] .solution-route-node-status { color:#f2a88d; background:#3a241e; border-color:#7d4232; } +.solution-route-node[data-status=human] .solution-route-node-status { border-color:color-mix(in srgb,var(--solution-terra) 36%,transparent); color:#8d5524; } +:root[data-theme=dark] .solution-route-node[data-status=human] .solution-route-node-status { color:#e9b785; background:#35291e; border-color:#6d5133; } +.solution-route-node > strong { font-size:15px; line-height:1.45; font-weight:600; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; flex-shrink:0; } +.solution-route-node-summary { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; font-size:12px; line-height:1.65; color:var(--solution-muted); margin-top:5px; overflow-wrap:anywhere; flex-shrink:0; } .solution-route-node .math .katex-html { white-space:nowrap; } .solution-route-detail { min-width:0; height:500px; overflow:auto; overflow-anchor:none; padding:24px; border-left:1px solid var(--solution-line); background:var(--solution-card); scrollbar-width:thin; } .solution-route-detail-heading > p { display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; color:var(--solution-muted); font-size:11px; line-height:1.8; margin:0 0 8px; } @@ -112,9 +149,12 @@ .solution-route-modes button { padding:8px 12px; min-height:40px; background:transparent; color:var(--solution-green,#3c5229); border:1px solid var(--line,#deded4); border-radius:3px; font:inherit; font-size:12px; cursor:pointer; } .solution-route-modes button[aria-pressed=true] { border-color:var(--solution-green,#3c5229); background:var(--green-50,#eff2e7); } .solution-route-loading { padding:22px 0; font-size:13px; color:var(--muted,#777568); } -.solution-route[data-solution-expanded=true] { position:fixed; inset:14px; z-index:1300; margin:0; padding:20px; background:var(--solution-card); border:1px solid var(--solution-line); border-radius:12px; box-shadow:0 0 0 30px #23291c80; display:flex; flex-direction:column; } -.solution-route[data-solution-expanded=true] .solution-route-workspace { flex:1; min-height:0; } -.solution-route[data-solution-expanded=true] .solution-route-overview,.solution-route[data-solution-expanded=true] .solution-route-stages { max-height:16dvh; overflow:auto; min-height:0; flex-shrink:1; scrollbar-width:thin; } +.solution-route[data-solution-expanded=true] { position:fixed; inset:12px; z-index:1300; margin:0; padding:14px 18px; background:var(--solution-card); border:1px solid var(--solution-line); border-radius:16px; box-shadow:0 0 0 36px rgba(20,20,19,.52); display:flex; flex-direction:column; } +.solution-route[data-solution-expanded=true] .solution-route-heading { margin-bottom:8px; gap:8px 14px; } +.solution-route[data-solution-expanded=true] .solution-route-tools { margin-bottom:8px; } +.solution-route[data-solution-expanded=true] .solution-route-footer { margin-top:6px; } +.solution-route[data-solution-expanded=true] .solution-route-workspace { flex:1; min-height:0; grid-template-columns:minmax(0,1fr) minmax(300px,380px); } +.solution-route[data-solution-expanded=true] .solution-route-overview,.solution-route[data-solution-expanded=true] .solution-route-stages { max-height:14dvh; overflow:auto; min-height:0; flex-shrink:1; margin-bottom:10px; padding-bottom:10px; scrollbar-width:thin; } .solution-route[data-solution-expanded=true] .solution-route-viewport,.solution-route[data-solution-expanded=true] .solution-route-detail { height:100%; } .solution-route-step-picker { display:flex; align-items:center; gap:10px; min-width:0; flex:1 1 250px; color:var(--solution-muted); font-size:12px; } .solution-route-step-picker > span { white-space:nowrap; } @@ -140,7 +180,7 @@ .solution-route-workspace { grid-template-columns:minmax(0,1fr); } .solution-route-viewport { height:390px; } .solution-route-detail { height:auto; max-height:560px; border-left:0; border-top:1px solid var(--solution-line); padding:18px; } - .solution-route[data-solution-expanded=true] .solution-route-workspace { grid-template-rows:minmax(180px,1fr) minmax(0,1fr); } + .solution-route[data-solution-expanded=true] .solution-route-workspace { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(180px,1fr) minmax(0,1fr); } .solution-route[data-solution-expanded=true] .solution-route-detail { max-height:none; } .solution-route[data-solution-reading=true] .solution-route-detail { padding:30px; } } @@ -163,7 +203,15 @@ .solution-route[data-solution-reading=true] .solution-route-prose { font-size:14px; line-height:2; } } @media (max-width:900px) and (max-height:600px) { - .solution-route[data-solution-expanded=true] .solution-route-workspace { display:block; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; } + .solution-route[data-solution-expanded=true] { inset:4px; padding:8px 10px; border-radius:10px; } + .solution-route[data-solution-expanded=true] .solution-route-heading { margin-bottom:4px; gap:4px 10px; } + .solution-route[data-solution-expanded=true] .solution-route-heading h3 { font-size:16px; line-height:1.25; } + .solution-route[data-solution-expanded=true] .solution-route-heading p,.solution-route[data-solution-expanded=true] .solution-route-overview,.solution-route[data-solution-expanded=true] .solution-route-stages { display:none; } + .solution-route[data-solution-expanded=true] .solution-route-tools { gap:4px; margin-bottom:6px; } + .solution-route[data-solution-expanded=true] .solution-route-tools button,.solution-route[data-solution-expanded=true] .solution-route-tools input,.solution-route[data-solution-expanded=true] .solution-route-expand { min-height:30px; padding:3px 8px; font-size:11px; } + .solution-route[data-solution-expanded=true] .solution-route-footer { margin-top:4px; } + .solution-route[data-solution-expanded=true] .solution-route-footer button { min-height:26px; padding:2px 8px; } + .solution-route[data-solution-expanded=true] .solution-route-workspace { display:block; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; min-height:110px; } .solution-route[data-solution-expanded=true] .solution-route-viewport { height:180px; overscroll-behavior:auto; } .solution-route[data-solution-expanded=true] .solution-route-detail { height:auto; max-height:none; overflow:visible; } } diff --git a/apps/web/solutionRouteView.ts b/apps/web/solutionRouteView.ts index 5ce37efb..da961c3a 100644 --- a/apps/web/solutionRouteView.ts +++ b/apps/web/solutionRouteView.ts @@ -69,23 +69,23 @@ export function solutionRouteLayout(model: SolutionRoute, nodes: readonly Soluti } const boxes = new Map(); for (const [rank, members] of columns) { - let y = 30; + let y = 34; for (const node of members) { const pending = [{ node, depth: 0 }]; while (pending.length) { const item = pending.pop()!; if (boxes.has(item.node.id)) continue; const inset = Math.min(42, item.depth * 14); - boxes.set(item.node.id, { x: 30 + rank * 298 + inset, y, width: 238 - inset, height: 140 }); y += 162; + boxes.set(item.node.id, { x: 30 + rank * 308 + inset, y, width: 238 - inset, height: 144 }); y += 168; for (const child of [...children.get(item.node.id) ?? []].reverse()) pending.push({ node: child, depth: item.depth + 1 }); } - y += 20; + y += 22; } } // A nested record can outlive its parent in a bounded trajectory page. - for (const node of nodes) if (!boxes.has(node.id)) boxes.set(node.id, { x: 30, y: 30 + boxes.size * 206, width: 238, height: 180 }); - return { boxes, width: Math.max(298, ...[...boxes.values()].map(box => box.x + box.width + 30)), - height: Math.max(180, ...[...boxes.values()].map(box => box.y + box.height + 30)) }; + for (const node of nodes) if (!boxes.has(node.id)) boxes.set(node.id, { x: 30, y: 34 + boxes.size * 206, width: 238, height: 180 }); + return { boxes, width: Math.max(308, ...[...boxes.values()].map(box => box.x + box.width + 32)), + height: Math.max(196, ...[...boxes.values()].map(box => box.y + box.height + 32)) }; } export function mountSolutionRoute(root: HTMLElement, initial: SolutionRoute, options: Options = {}) { @@ -124,6 +124,10 @@ export function mountSolutionRoute(root: HTMLElement, initial: SolutionRoute, op function restoreDetailPosition(position: ReturnType) { const scroller = detailScroller(); if (!position || !scroller) return; + if (expanded && !state.reading && position.top === 0 && scroller.classList.contains('solution-route-workspace')) { + scroller.scrollTop = 0; + return; + } if (!expanded && scroller !== document.scrollingElement) scroller.scrollIntoView({ block: 'nearest' }); const anchor = detailAnchors()[position.index]; if (anchor) scroller.scrollTop += anchor.getBoundingClientRect().top - scrollportTop(scroller) - position.offset; @@ -227,18 +231,22 @@ export function mountSolutionRoute(root: HTMLElement, initial: SolutionRoute, op ${model.nodes.some(node => node.origin === 'library') ? `` : ''}
${state.reading ? `` : ''} -
${options.compact && !state.reading ? `` : ''}
+
${options.compact && !state.reading ? `` : ''}
- ${String(index + 1).padStart(2, '0')} · ${node.origin ? originNames[model.locale][node.origin] : kindNames[model.locale][node.kind]}${statusNames[model.locale][node.status]}${html(node.title)}${node.summary ? `${html(node.summary)}` : ''}`; + return ``; }).join('')}
${!visible.length ? `

${word('没有匹配的步骤。换一个关键词,或清空搜索。', 'No matching steps. Try another term or clear the search.')}

` : ''}
${legend(visible, ids)}${model.partial ? `${word('当前记录尚未全部读取', 'Some records have not been loaded')}` : ''}
`; @@ -409,7 +417,7 @@ export function mountSolutionRoute(root: HTMLElement, initial: SolutionRoute, op if (zoom === 'fit') { state.fitted = true; fit(true); } else { state.fitted = false; - state.zoom = Math.max(.1, Math.min(2, zoom === 'reset' ? 1 : state.zoom + (zoom === 'in' ? .1 : -.1))); + state.zoom = Math.max(.2, Math.min(2.5, Math.round((zoom === 'reset' ? 1 : state.zoom * (zoom === 'in' ? 1.2 : 1 / 1.2)) * 100) / 100)); state.left = Math.max(0, center.x * state.zoom - viewport.clientWidth / 2); state.top = Math.max(0, center.y * state.zoom - viewport.clientHeight / 2); draw(); @@ -465,7 +473,21 @@ export function mountSolutionRoute(root: HTMLElement, initial: SolutionRoute, op else if (!event.shiftKey && document.activeElement === last) { event.preventDefault(); first?.focus(); } } const target = (event.target as HTMLElement).closest('[data-solution-node]'); - if (!target || !['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'].includes(event.key)) return; + if (!target) { + if ((event.target as HTMLElement).classList?.contains('solution-route-viewport') && !event.ctrlKey && !event.metaKey && !event.altKey) { + const viewport = event.target as HTMLElement; + const center = { x: (viewport.scrollLeft + viewport.clientWidth / 2) / state.zoom, y: (viewport.scrollTop + viewport.clientHeight / 2) / state.zoom }; + if (event.key === '+' || event.key === '=' || event.key === '-' || event.key === '0') { + event.preventDefault(); state.fitted = false; + state.zoom = event.key === '0' ? 1 : Math.max(.2, Math.min(2.5, Math.round(state.zoom * (event.key === '-' ? 1 / 1.2 : 1.2) * 100) / 100)); + state.left = Math.max(0, center.x * state.zoom - viewport.clientWidth / 2); + state.top = Math.max(0, center.y * state.zoom - viewport.clientHeight / 2); + draw(); + } + } + return; + } + if (!['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'].includes(event.key)) return; event.preventDefault(); const visible = shown(), id = target.dataset.solutionNode!; const adjacent = related(id, event.key === 'ArrowLeft' || event.key === 'ArrowUp').map(item => item.node).filter(node => visible.some(item => item.id === node.id)); const index = visible.findIndex(node => node.id === id); @@ -473,6 +495,65 @@ export function mountSolutionRoute(root: HTMLElement, initial: SolutionRoute, op : adjacent[0] ?? visible[index + (event.key === 'ArrowLeft' || event.key === 'ArrowUp' ? -1 : 1)]; if (next) select(next.id, true); }, { signal: signal.signal }); + const zoomPointer = (viewport: HTMLElement, nextZoom: number, clientX: number, clientY: number) => { + const rect = viewport.getBoundingClientRect(); + const px = clientX - rect.left, py = clientY - rect.top; + const cx = (viewport.scrollLeft + px) / state.zoom, cy = (viewport.scrollTop + py) / state.zoom; + state.fitted = false; + state.zoom = Math.max(.2, Math.min(2.5, Math.round(nextZoom * 100) / 100)); + state.left = Math.max(0, cx * state.zoom - px); + state.top = Math.max(0, cy * state.zoom - py); + draw(); + }; + root.addEventListener('wheel', event => { + const viewport = (event.target as Element).closest('.solution-route-viewport'); + if (!viewport || state.reading || (!event.ctrlKey && !event.metaKey)) return; + event.preventDefault(); + const factor = Math.exp(-event.deltaY * (event.deltaMode === 1 ? 0.05 : 0.002)); + zoomPointer(viewport, state.zoom * factor, event.clientX, event.clientY); + }, { signal: signal.signal, passive: false }); + root.addEventListener('dblclick', event => { + const viewport = (event.target as Element).closest('.solution-route-viewport'); + if (!viewport || state.reading || (event.target as Element).closest('button')) return; + zoomPointer(viewport, state.zoom >= 1.45 ? 1 : state.zoom * 1.35, event.clientX, event.clientY); + }, { signal: signal.signal }); + const clearHover = () => { + const canvas = root.querySelector('.solution-route-canvas'); + if (!canvas || !canvas.dataset.hover) return; + delete canvas.dataset.hover; + for (const el of canvas.querySelectorAll('.is-hover-hit, .is-hover-direct')) el.classList.remove('is-hover-hit', 'is-hover-direct'); + }; + root.addEventListener('pointerover', event => { + const node = (event.target as Element).closest('[data-solution-node]'); + const canvas = root.querySelector('.solution-route-canvas'); + if (!node?.dataset.solutionNode || !canvas || state.reading) return; + const id = node.dataset.solutionNode; + const paths = [...canvas.querySelectorAll('path[data-solution-edge]')]; + const hit = new Set([id]); + const direct = new Set([id]); + for (const path of paths) { + if (path.dataset.from === id && path.dataset.to) direct.add(path.dataset.to); + if (path.dataset.to === id && path.dataset.from) direct.add(path.dataset.from); + } + const walk = (start: string, dir: 'from' | 'to') => { + for (const path of paths) if (path.dataset[dir] === start) { + const next = path.dataset[dir === 'from' ? 'to' : 'from'] ?? ''; + if (next && !hit.has(next)) { hit.add(next); walk(next, dir); } + } + }; + walk(id, 'to'); walk(id, 'from'); + canvas.dataset.hover = 'true'; + for (const el of canvas.querySelectorAll('[data-solution-node]')) { + const nid = el.dataset.solutionNode ?? ''; + el.classList.toggle('is-hover-hit', hit.has(nid)); + el.classList.toggle('is-hover-direct', direct.has(nid)); + } + for (const path of paths) { + path.classList.toggle('is-hover-hit', hit.has(path.dataset.from ?? '') && hit.has(path.dataset.to ?? '')); + path.classList.toggle('is-hover-direct', path.dataset.from === id || path.dataset.to === id); + } + }, { signal: signal.signal }); + root.addEventListener('pointerleave', clearHover, { signal: signal.signal }); let drag: { x: number; y: number; left: number; top: number; viewport: HTMLElement } | undefined; root.addEventListener('pointerdown', event => { const viewport = (event.target as Element).closest('.solution-route-viewport'); diff --git a/docs/process.css b/docs/process.css index addd6072..4d84afb0 100644 --- a/docs/process.css +++ b/docs/process.css @@ -3,7 +3,7 @@ .reading-process > .archive-toolbar, .reading-process .catalog { display: none; } .reading-process .archive-workbench { display: block; border-top: 0; min-height: 0; } -.reading-process .inspector { max-width: 1160px; margin: 0 auto; padding: 0; border: 0; } +.reading-process .inspector { max-width: 1320px; margin: 0 auto; padding: 0; border: 0; } .reading-process .detail-topline { margin: 0 0 22px; } .reading-process .detail-topline-label, .reading-process .detail-id, @@ -334,38 +334,47 @@ .proof-walkthrough-source > .proof-walkthrough-links { padding: 0 0 12px; } .workflow-journal-heading { display: flex; gap: 12px; align-items: baseline; margin: 0 0 25px; border-top: 1px solid var(--line); padding-top: 30px; font-size: 19px; font-weight: 500; } .workflow-journal-heading > span { font: 13px var(--mono); color: var(--muted); } -.global-final-badge { padding: 22px 25px; background: var(--green-wash); border: 1px solid var(--green-border); border-radius: 4px; } -.global-final-badge .process-detail-icon { display: none; } -.global-final-badge h3 { font-size: 24px; } +.global-final-badge { padding: 0; background: transparent; border: 0; border-radius: 16px; } +.global-final-badge .process-detail-icon { display: flex; } +.global-final-badge h3 { font-size: 26px; } .workflow-run-outcome { padding: 20px 0; } .workflow-run-outcome > strong { display: block; margin-bottom: 8px; } -.process-introduction { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 30px 0 24px; } +.process-introduction { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 24px 0 22px; } .process-introduction > div:first-child { max-width: 750px; } .process-introduction > p { max-width: 780px; color: var(--muted); font-size: 15px; line-height: 1.85; } -.process-eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .08em; } +.process-eyebrow { color: var(--muted); font-size: 12px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; } .process-introduction h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.5; margin: 5px 0 10px; } .process-introduction > div > p:last-child { color: var(--muted); line-height: 1.8; } -.process-final-mark { flex-shrink: 0; display: flex; align-items: center; gap: 12px; color: var(--green); } -.process-final-mark > svg { width: 28px; height: 28px; stroke-width: 1.4; } -.process-final-mark span { display: grid; font-size: 13px; color: var(--muted); } -.process-final-mark strong { font-size: 15px; font-weight: 550; color: var(--green); } -.process-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 26px; padding: 19px 0; } -.process-overview > div { min-width: 0; border-right: 1px solid var(--line); padding: 0 25px; } -.process-overview > div:first-child { padding-left: 0; } -.process-overview > div:last-child { border: 0; } -.process-overview dt { font-size: 13px; color: var(--muted); } -.process-overview dd { font-family: var(--mono); font-size: 26px; line-height: 1.3; margin: 5px 0 0; font-weight: 400; } -.process-overview .process-overview-date { font-size: 18px; padding-top: 7px; } -.process-run-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; margin-bottom: 30px; } -.process-run { text-align: left; padding: 13px 14px; background: transparent; border: 1px solid var(--line); border-radius: 4px; min-width: 0; } -.process-run:hover { border-color: var(--muted); } -.process-run[aria-pressed="true"] { border-color: var(--green); background: var(--surface-hover); box-shadow: inset 0 2px 0 var(--green); } -.process-run-number { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); } -.process-run-number b { font-size: 13px; color: var(--green); font-weight: 550; border-bottom: 1px solid var(--green-border); white-space: nowrap; } -.process-run > strong { display: block; color: var(--process-state); font-size: 14px; font-weight: 550; margin: 7px 0 4px; } -.process-run > time { display: block; color: var(--muted); font-size: 13px; font-family: var(--mono); } +.process-final-mark { flex-shrink: 0; display: flex; align-items: center; gap: 11px; padding: 10px 14px; border: 1px solid var(--green-border); border-radius: 12px; background: var(--green-wash); color: var(--green); } +.process-final-mark > svg { width: 22px; height: 22px; stroke-width: 1.6; } +.process-final-mark span { display: grid; font-size: 12px; color: var(--muted); line-height: 1.35; } +.process-final-mark strong { font-size: 14px; font-weight: 600; color: var(--green); } +.process-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; padding: 0; border: 0; } +.process-overview > div { min-width: 0; display: flex; flex-direction: column; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 8px 22px -18px rgba(20, 20, 19, .24); } +.process-overview > div[data-overview-accent="passed"] { border-color: var(--green-border); } +.process-overview dt { order: 2; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-top: 6px; } +.process-overview dd { order: 1; font-family: var(--mono); font-size: 32px; line-height: 1.1; margin: 0; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; } +.process-overview > div[data-overview-accent="passed"] dd { color: var(--green); } +.process-overview .process-overview-date { font-size: 21px; padding-top: 7px; padding-bottom: 4px; } +.process-overview-sub { order: 3; margin-top: 4px; font: 12px/1.5 var(--mono); color: var(--muted); } +.process-run-nav { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin-bottom: 26px; } +.process-run-nav:not(.process-single-run)::before { content: ""; position: absolute; left: 24px; right: 24px; top: 50%; height: 2px; background: var(--line); z-index: 0; pointer-events: none; } +.process-run { position: relative; z-index: 1; text-align: left; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 0; box-shadow: 0 8px 20px -16px rgba(20, 20, 19, .22); } +.process-run:hover { border-color: var(--green-border); transform: translateY(-1px); } +.process-run[aria-pressed="true"] { border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--ink), 0 12px 26px -18px rgba(20, 20, 19, .32); } +.process-run[data-run-accepted="true"] { background: #212a24; border-color: #3f5544; color: #f2f0e9; box-shadow: 0 14px 28px -18px rgba(20, 26, 23, .45); } +.process-run[data-run-accepted="true"][aria-pressed="true"] { background: linear-gradient(155deg, #141a17 0%, #1c2822 100%); border-color: #5d7046; box-shadow: 0 0 0 1px #5d7046, 0 16px 32px -18px rgba(20, 26, 23, .6); } +.process-run-number { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 13px/1.3 var(--mono); color: var(--ink); } +.process-run[data-run-accepted="true"] .process-run-number { color: #f5f4ee; } +.process-run-number b { font: 600 11px/1.2 var(--mono); letter-spacing: .04em; color: #c7d9ae; background: rgba(169, 189, 139, .18); border: 1px solid rgba(169, 189, 139, .38); border-radius: 999px; padding: 2px 8px; white-space: nowrap; } +.process-run > strong { display: flex; align-items: center; gap: 7px; color: var(--process-state); font-size: 13px; font-weight: 550; margin: 9px 0 5px; } +.process-run > strong::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; } +.process-run[data-run-accepted="true"] > strong { color: #a9bd8b; } +.process-run > time { display: block; color: var(--muted); font-size: 12px; font-family: var(--mono); } +.process-run[data-run-accepted="true"] > time { color: #a3afa5; } .process-single-run { margin-bottom: 18px; } -.process-single-run .process-run { display: flex; align-items: center; gap: 20px; padding: 0; border: 0; background: transparent; box-shadow: none; } +.process-single-run .process-run { display: flex; align-items: center; gap: 20px; padding: 12px 16px; border: 1px solid var(--line); background: var(--card); box-shadow: none; } +.process-single-run .process-run[data-run-accepted="true"] { background: linear-gradient(155deg, #141a17 0%, #1c2822 100%); border-color: #5d7046; } .process-single-run .process-run-number > b { display: none; } .process-single-run .process-run > time { margin-left: auto; } .process-single-run + .process-current-run .process-run-header h3 { display: none; } @@ -401,22 +410,53 @@ .process-timeline-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .process-timeline-toolbar h4 { font-size: 16px; font-weight: 550; } .process-timeline-toolbar h4 > span { font: 13px var(--mono); color: var(--muted); margin-left: 7px; } -.process-step-filters { display: flex; flex-wrap: wrap; gap: 3px; padding: 2px; background: var(--surface); border-radius: 4px; } -.process-step-filters button { background: transparent; color: var(--muted); border: 1px solid transparent; padding: 5px 10px; font-size: 13px; border-radius: 3px; } -.process-step-filters button[aria-pressed="true"] { background: var(--card); color: var(--ink); border-color: var(--line); } +.process-step-filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px -10px rgba(20, 20, 19, .2); } +.process-step-filters button { background: transparent; color: var(--muted); border: 1px solid transparent; padding: 6px 13px; font-size: 13px; font-weight: 500; border-radius: 8px; } +.process-step-filters button:hover { color: var(--ink); background: var(--surface); } +.process-step-filters button[aria-pressed="true"] { background: #141413; color: #f5f4ee; border-color: #141413; } +:root[data-theme="dark"] .process-step-filters button[aria-pressed="true"] { background: #e8e5dc; color: #141413; border-color: #e8e5dc; } .process-filter-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 13px !important; } -.process-reader { display: grid; grid-template-columns: minmax(230px, 30%) minmax(0, 1fr); align-items: start; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card); } -.process-step-list { min-width: 0; max-height: 580px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 10px 0; list-style: none; background: var(--surface-subtle); scrollbar-width: thin; } -.process-step-list > li { margin: 0; } -.process-step-list button { display: grid; grid-template-columns: 24px minmax(0, 1fr); width: 100%; gap: 9px; padding: 12px 16px 12px 13px; background: transparent; border-left: 2px solid transparent; text-align: left; } -.process-step-list button:hover { background: var(--surface-hover); } -.process-step-list button[aria-pressed="true"] { background: var(--green-wash); border-left-color: var(--green); } -.process-step-count { color: var(--muted); font: 13px/1.8 var(--mono); padding-top: 1px; } -.process-step-list time { display: block; color: var(--muted); font: 13px/1.7 var(--mono); } -.process-step-list strong { display: block; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.6; margin-top: 3px; } -.process-step-task { display: block; color: var(--muted); font: 13px/1.6 var(--mono); overflow-wrap: anywhere; margin-top: 4px; } -.process-step-status { display: block; color: var(--process-state, var(--muted)); font-size: 13px; line-height: 1.6; margin-top: 3px; } -.process-step-detail { min-width: 0; min-height: 480px; padding: 30px; border-left: 1px solid var(--line); overflow-wrap: anywhere; } +.process-reader { display: grid; grid-template-columns: minmax(260px, 36%) minmax(0, 1fr); align-items: start; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 12px 28px -22px rgba(20, 20, 19, .26); } +.process-step-list { position: relative; min-width: 0; max-height: 600px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 14px 12px; list-style: none; background: var(--surface-subtle); scrollbar-width: thin; display: grid; gap: 6px; } +.process-step-list > li { position: relative; margin: 0; } +.process-step-list > li:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 34px; bottom: -10px; width: 1.5px; background: var(--line); pointer-events: none; z-index: 0; } +.process-step-list button { position: relative; z-index: 1; display: grid; grid-template-columns: 26px minmax(0, 1fr); width: 100%; gap: 11px; padding: 11px 13px 11px 9px; background: transparent; border: 1px solid transparent; border-radius: 12px; text-align: left; } +.process-step-list button:hover { background: var(--card); border-color: var(--line); } +.process-step-list button[aria-pressed="true"] { background: var(--card); border-color: var(--green-border); box-shadow: 0 6px 16px -12px rgba(20, 20, 19, .24); } +.process-step-count { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); font: 600 11px/1 var(--mono); margin-top: 1px; } +.process-step-list > li[data-tone="passed"] .process-step-count { border-color: var(--green-border); background: var(--green-wash); color: var(--green); } +.process-step-list > li[data-tone="attention"] .process-step-count { border-color: var(--orange-border); background: var(--orange-wash); color: var(--orange); } +.process-step-list > li[data-kind="acceptance"] .process-step-count { border-color: #5d7046; background: #141a17; color: #a9bd8b; } +.process-step-list time { display: block; color: var(--muted); font: 12px/1.5 var(--mono); } +.process-step-list strong { display: block; color: var(--ink); font-size: 14px; font-weight: 550; line-height: 1.45; margin-top: 2px; } +.process-step-task { display: block; color: var(--muted); font: 12px/1.5 var(--mono); overflow-wrap: anywhere; margin-top: 3px; } +.process-step-status { display: inline-flex; align-items: center; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--process-state, var(--muted)); background: var(--surface); border: 1px solid var(--line); } +.process-step-list > li[data-tone="passed"] .process-step-status { background: var(--green-wash); border-color: var(--green-border); color: var(--green); } +.process-step-list > li[data-tone="attention"] .process-step-status { background: var(--orange-wash); border-color: var(--orange-border); color: var(--orange); } +.process-step-detail { min-width: 0; min-height: 480px; padding: 28px 30px; border-left: 1px solid var(--line); overflow-wrap: anywhere; } +.process-step-detail:has(> .process-acceptance) { padding: 22px; background: var(--surface-subtle); } +.process-acceptance { padding: 28px 30px; border-radius: 16px; border: 1.5px solid #415946; background: linear-gradient(155deg, #141a17 0%, #1a251f 100%); color: #f5f4ee; box-shadow: 0 22px 44px -26px rgba(14, 20, 17, .65); } +.process-acceptance-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } +.process-acceptance .process-detail-icon { width: 32px; height: 32px; margin-bottom: 0; border-color: rgba(169, 189, 139, .38); background: rgba(169, 189, 139, .14); color: #a9bd8b; } +.process-acceptance .process-detail-icon svg { width: 17px; height: 17px; } +.process-acceptance .process-eyebrow { color: #a9bd8b; font-weight: 600; } +.process-acceptance-kernel { margin-left: auto; font: 600 11px/1 var(--mono); letter-spacing: .1em; color: #a8b5ab; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(169, 189, 139, .24); background: rgba(255, 255, 255, .04); } +.process-acceptance h3 { color: #f5f4ee; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.3; margin: 4px 0 10px; } +.process-acceptance > p { color: #bcc7be; font-size: 14px; line-height: 1.7; margin-bottom: 18px; } +.process-acceptance .process-targets { display: grid; gap: 8px; margin: 18px 0 20px; } +.process-acceptance .process-targets code { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(169, 189, 139, .22); color: #f2f0e9; font: 13px/1.55 var(--mono); overflow-wrap: anywhere; } +.process-acceptance .process-targets code::after { content: "✓ proved"; flex: none; color: #a9bd8b; font: 600 12px/1 var(--mono); white-space: nowrap; } +.process-acceptance .process-targets[data-proved-label="✓ 已通过"] code::after { content: "✓ 已通过"; } +.process-acceptance-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid rgba(169, 189, 139, .18); font: 12px/1.5 var(--mono); color: #9aa89d; } +.process-acceptance .process-detail-actions { margin: 18px 0 8px; } +.process-acceptance .process-detail-actions .button-primary { background: #a9bd8b; border-color: #a9bd8b; color: #141a17; font-weight: 600; border-radius: 10px; } +.process-acceptance .process-detail-actions .button-primary:hover { background: #bdd0a2; border-color: #bdd0a2; } +.process-acceptance .process-detail-actions .button:not(.button-primary) { background: rgba(255, 255, 255, .06); border-color: rgba(169, 189, 139, .32); color: #f2f0e9; border-radius: 10px; } +.process-acceptance .process-detail-actions .button:not(.button-primary):hover { background: rgba(255, 255, 255, .12); } +.process-acceptance .process-record-details { border-top-color: rgba(169, 189, 139, .18); margin-top: 16px; } +.process-acceptance .process-record-details > summary { color: #a8b5ab; } +.process-acceptance .process-record-details dt { color: #96a599; } +.process-acceptance .process-record-details dd { color: #e5ece6; } .process-step-detail:focus { outline: none; } .process-step-navigation { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 26px; } .process-step-navigation button { display: inline-flex; align-items: center; gap: 5px; background: transparent; color: var(--green); font-size: 13px; padding: 4px 0; } @@ -479,49 +519,108 @@ .process-view-toolbar > h4 { font-family: var(--serif); font-size: 24px; font-weight: 500; } .process-view-toolbar .process-step-filters button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; } .process-view-toolbar svg { width: 13px; height: 13px; } -.process-map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 0 0 12px; color: var(--muted); font-size: 13px; } +.process-map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 0 0 12px; color: var(--muted); font-size: 12px; font-family: var(--mono); } .process-map-legend > span { display: inline-flex; align-items: center; gap: 7px; } -.map-line { display: inline-block; width: 23px; border-top: 1px solid var(--green-border); } -.map-line.flow { border-top: 1px dashed var(--muted); } -.map-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); } +.process-map-tip { margin-left: auto; color: var(--muted); opacity: .82; } +.map-line { display: inline-block; width: 22px; border-top: 2.5px solid var(--green); border-radius: 2px; } +.map-line.attention { border-top: 2px dashed #c95633; } +.map-line.flow { border-top: 1.5px dashed var(--muted); } +.map-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); } .map-dot.passed { background: var(--green); } -.map-dot.attention { background: var(--orange); } -.process-map-shell { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--surface-subtle); } -.process-map-viewport { width: 100%; height: 570px; overflow: auto; overscroll-behavior: contain; cursor: grab; scrollbar-width: thin; background-image: radial-gradient(var(--line) .7px, transparent .7px); background-size: 19px 19px; } +.map-dot.attention { background: #c95633; } +.process-roadmap[data-map-expanded="true"] { position: fixed; inset: 14px; z-index: 1300; display: flex; flex-direction: column; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 0 0 40px rgba(20, 20, 19, .54), 0 24px 54px -20px rgba(0, 0, 0, .45); } +.process-roadmap[data-map-expanded="true"] .process-map-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; } +.process-roadmap[data-map-expanded="true"] .process-map-viewport { flex: 1; height: auto; min-height: 0; } +.process-map-shell { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface-subtle); box-shadow: 0 14px 32px -24px rgba(20, 20, 19, .26); } +.process-map-viewport { width: 100%; height: clamp(620px, 72vh, 800px); overflow: auto; overscroll-behavior: contain; cursor: grab; scrollbar-width: thin; background-color: var(--surface-subtle); background-image: radial-gradient(var(--line) .9px, transparent .9px); background-size: 22px 22px; } .process-map-viewport:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; } .process-map-viewport.is-dragging { cursor: grabbing; user-select: none; } .process-map-space { position: relative; min-width: 100%; min-height: 100%; } .process-map-canvas { position: absolute; left: 0; top: 0; transform-origin: left top; } -.process-map-edges { position: absolute; left: 0; top: 0; overflow: visible; color: var(--green-border); } -.process-map-edges [data-map-edge] { fill: none; stroke: var(--green-border); stroke-width: 1.5; } -.process-map-edges [data-kind="flow"] { stroke: var(--muted); stroke-dasharray: 5 5; stroke-width: 1.2; } -.process-map-edges .is-muted { opacity: .35; } -.process-map-node { position: absolute; width: 232px; height: 140px; display: flex; flex-direction: column; align-items: stretch; padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid var(--process-state, var(--muted)); border-radius: 5px; background: var(--card); color: var(--ink); text-align: left; cursor: pointer; } -.process-map-node:hover { border-color: var(--green-border); background: var(--surface-hover); } -.process-map-node[aria-pressed="true"] { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 3px; background: var(--green-wash); } -.process-map-node[data-node-kind="acceptance"] { background: var(--green-wash); border-color: var(--green-border); } -.process-map-node.is-muted { opacity: .65; } -.process-map-node-kind { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; } -.process-map-node-kind > svg { width: 13px; height: 13px; stroke-width: 1.5; } -.process-map-node-kind em { margin-left: auto; font-size: 13px; color: var(--process-state); font-style: normal; } +.process-map-edges { position: absolute; left: 0; top: 0; overflow: visible; color: var(--green); } +.process-map-edges [data-map-edge] { fill: none; stroke: var(--green); stroke-width: 1.65; stroke-linecap: round; opacity: .36; transition: opacity .15s ease, stroke-width .15s ease; } +.process-map-edges [data-edge-layer="transitive"] { opacity: 0; stroke-dasharray: 4 4; stroke-width: 1.25; } +.process-roadmap[data-map-edges="all"] .process-map-edges [data-edge-layer="transitive"] { opacity: .20; } +.process-map-edges [data-kind="flow"] { stroke: var(--muted); stroke-dasharray: 5 5; stroke-width: 1.25; opacity: .28; } +.process-map-edges [data-edge-tone="passed"][data-to="acceptance"] { stroke: var(--green); stroke-width: 2.3; stroke-dasharray: none; opacity: .92; } +.process-map-edges [data-edge-tone="attention"] { stroke: #c95633; stroke-dasharray: 6 5; stroke-width: 1.9; opacity: .82; } +.process-map-edges .is-muted { opacity: .08; } +.process-map-edges [data-edge-layer="transitive"].is-muted { opacity: 0; } +.process-map-canvas[data-has-selection="true"] .process-map-edges [data-map-edge]:not(.is-muted) { opacity: .86; stroke-width: 2.15; } +.process-map-canvas[data-has-selection="true"] .process-map-edges [data-edge-layer="transitive"]:not(.is-muted) { opacity: .45; stroke-width: 1.45; } +.process-map-canvas[data-map-hover="true"] .process-map-edges [data-map-edge] { opacity: .08; } +.process-map-canvas[data-map-hover="true"] .process-map-edges [data-edge-layer="transitive"] { opacity: 0; } +.process-map-canvas[data-map-hover="true"] .process-map-edges [data-map-edge].is-hover-hit { opacity: .46; stroke-width: 1.7; } +.process-map-canvas[data-map-hover="true"] .process-map-edges [data-edge-layer="transitive"].is-hover-hit { opacity: .24; stroke-width: 1.3; } +.process-map-canvas[data-map-hover="true"] .process-map-edges [data-map-edge].is-hover-direct { opacity: .98; stroke-width: 2.6; } +.process-map-canvas[data-map-hover="true"] .process-map-edges [data-edge-layer="transitive"].is-hover-direct { opacity: .62; stroke-width: 1.75; } +.process-map-canvas[data-map-hover="true"] .process-map-node { box-shadow: none; border-color: color-mix(in srgb, var(--line) 72%, transparent); } +.process-map-canvas[data-map-hover="true"] .process-map-node > * { opacity: .32; transition: opacity .15s ease; } +.process-map-canvas[data-map-hover="true"] .process-map-node.is-hover-hit { border-color: var(--line); } +.process-map-canvas[data-map-hover="true"] .process-map-node.is-hover-hit > * { opacity: .82; } +.process-map-canvas[data-map-hover="true"] .process-map-node.is-hover-direct { border-color: var(--green); box-shadow: 0 16px 32px -20px rgba(20, 20, 19, .34); } +.process-map-canvas[data-map-hover="true"] .process-map-node.is-hover-direct > * { opacity: 1; } +.process-roadmap[data-map-focus="spine"] .process-map-node[data-node-kind="task"][data-tone="neutral"] { border-style: dotted; box-shadow: none; } +.process-roadmap[data-map-focus="spine"] .process-map-node[data-node-kind="task"][data-tone="neutral"] > * { opacity: .28; } +.process-roadmap[data-map-focus="spine"] .process-map-edges [data-edge-tone="neutral"] { opacity: .06; } +.process-roadmap[data-map-focus="spine"] .process-map-edges [data-edge-layer="direct"][data-edge-tone="passed"] { opacity: .52; } +.process-roadmap[data-map-focus="spine"] .process-map-edges [data-edge-layer="direct"][data-edge-tone="attention"] { opacity: .88; } +.process-map-node { position: absolute; z-index: 1; width: 296px; height: 168px; display: flex; flex-direction: column; align-items: stretch; padding: 18px 20px; border: 1.25px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 12px 26px -20px rgba(20, 20, 19, .26); transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease, transform .15s ease; } +.process-map-node:hover { border-color: var(--green); box-shadow: 0 16px 32px -20px rgba(20, 20, 19, .34); } +.process-map-node[aria-pressed="true"] { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 2px; background: var(--green-wash); } +.process-map-node[data-node-kind="problem"] { border: 1.5px solid var(--ink); background: var(--card); } +.process-map-node[data-tone="passed"] { border-color: var(--green-border); } +.process-map-node[data-tone="attention"] { border: 1.5px dashed #c95633; background: #fbf1ec; } +:root[data-theme="dark"] .process-map-node[data-tone="attention"] { border-color: #d97757; background: #2b1e1a; } +.process-map-node[data-node-kind="acceptance"] { background: linear-gradient(155deg, #141a17 0%, #1c2922 100%); border: 1.5px solid #5d7046; color: #f5f4ee; box-shadow: 0 20px 38px -20px rgba(14, 20, 17, .64); } +.process-map-node[data-node-kind="acceptance"]:hover { border-color: #a9bd8b; } +.process-map-node[data-node-kind="acceptance"][aria-pressed="true"] { background: linear-gradient(155deg, #141a17 0%, #1f3027 100%); outline-color: #a9bd8b; } +.process-map-node[data-node-kind="acceptance"] .process-map-node-kind, +.process-map-node[data-node-kind="acceptance"] .process-map-node-kind em, +.process-map-node[data-node-kind="acceptance"] .process-map-node-code { color: #a9bd8b; } +.process-map-node[data-node-kind="acceptance"] > strong { color: #f5f4ee; font-family: var(--serif); font-size: 18px; line-height: 1.3; } +.process-map-node[data-node-kind="acceptance"] .process-map-node-note { color: #b4c1b7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 4px; } +.process-map-node.is-muted { opacity: .44; } +.process-map-node-kind { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 600 11.5px/1.3 var(--mono); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; } +.process-map-node-kind > svg { width: 13px; height: 13px; stroke-width: 1.75; flex: none; } +.process-map-node-kind em { margin-left: auto; font-size: 11px; color: var(--process-state); font-style: normal; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); } +.process-map-node[data-tone="passed"] .process-map-node-kind em { background: var(--green-wash); border-color: var(--green-border); color: var(--green); } +.process-map-node[data-node-kind="acceptance"] .process-map-node-kind em { background: rgba(169, 189, 139, .18); border-color: rgba(169, 189, 139, .36); color: #cbe0ae; } +.process-map-node[data-tone="attention"] .process-map-node-kind, +.process-map-node[data-tone="attention"] .process-map-node-kind em { color: #b94a28; } +.process-map-node[data-tone="attention"] .process-map-node-kind em { background: #f8e4dc; border-color: #e4b6a4; } +:root[data-theme="dark"] .process-map-node[data-tone="attention"] .process-map-node-kind, +:root[data-theme="dark"] .process-map-node[data-tone="attention"] .process-map-node-kind em { color: #e59072; } +:root[data-theme="dark"] .process-map-node[data-tone="attention"] .process-map-node-kind em { background: #3b241d; border-color: #744132; } /* A two-line title may not shrink: it is the only thing that names the node. */ -.process-map-node > strong { flex: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 17px; font-weight: 500; line-height: 1.45; letter-spacing: -.015em; margin: 8px 0 0; } -.process-map-node-note { margin-top: auto; color: var(--muted); font-size: 13px; padding-top: 5px; } -.process-map-node-note b { color: var(--orange); font-weight: 400; } -.process-map-node-ordinal { display: none; font: 13px var(--mono); color: var(--muted); font-style: normal; } -.process-map-node-deps { display: none; font: 13px var(--mono); color: var(--muted); padding-top: 3px; } +.process-map-node > strong { flex: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16.5px; font-weight: 600; line-height: 1.38; letter-spacing: -.018em; margin: 9px 0 0; } +.process-map-node-code { flex: none; display: block; margin-top: 5px; font: 12.5px/1.35 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.process-map-node[data-tone="attention"] .process-map-node-code { color: #a75137; } +:root[data-theme="dark"] .process-map-node[data-tone="attention"] .process-map-node-code { color: #d89b85; } +.process-map-node-note { margin-top: auto; color: var(--muted); font: 12px/1.35 var(--mono); padding-top: 6px; } +.process-map-node-note b { color: #b94a28; font-weight: 500; } +:root[data-theme="dark"] .process-map-node-note b { color: #e59072; } +.process-map-node-ordinal { display: none; font: 12px var(--mono); color: var(--muted); font-style: normal; } +.process-map-node-deps { display: none; font: 12px var(--mono); color: var(--muted); padding-top: 3px; } /* The toolbar sits above the canvas; controls over the nodes hid whichever task was underneath. */ .process-map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 12px; } -.process-map-modes, .process-map-controls { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); } -.process-map-modes button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px; border-radius: 3px; background: transparent; color: var(--muted); font-size: 13px; } +.process-map-modes, .process-map-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; max-width: 100%; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 0 4px 12px -10px rgba(20, 20, 19, .18); } +.process-map-modes button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 11px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; } .process-map-modes button svg { width: 13px; height: 13px; stroke-width: 1.5; } -.process-map-modes button:hover { background: var(--surface-hover); } -.process-map-modes button[aria-pressed="true"] { background: var(--green-wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--green-border); } -.process-map-controls button { min-width: 32px; min-height: 30px; padding: 3px 8px; border-radius: 3px; background: transparent; color: var(--ink-soft); font-size: 13px; } +.process-map-modes button:hover { background: var(--surface-hover); color: var(--ink); } +.process-map-modes button[aria-pressed="true"] { background: var(--green-wash); color: var(--green); box-shadow: inset 0 0 0 1px var(--green-border); } +.process-map-controls button { display: inline-flex; align-items: center; gap: 5px; min-width: 32px; min-height: 30px; padding: 4px 9px; border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 13px; font-weight: 500; white-space: nowrap; } +.process-map-controls button svg { width: 13px; height: 13px; stroke-width: 1.75; flex: none; } +.process-map-controls button[aria-pressed="true"] { background: #141413; color: #f5f4ee; } +:root[data-theme="dark"] .process-map-controls button[aria-pressed="true"] { background: #e8e5dc; color: #141413; } +.process-map-controls .process-map-expand { background: #141413; color: #f5f4ee; padding: 4px 12px; font-weight: 600; } +.process-map-controls .process-map-expand:hover { background: #2d2c28; color: #f5f4ee; } +:root[data-theme="dark"] .process-map-controls .process-map-expand { background: #e8e5dc; color: #141413; } +:root[data-theme="dark"] .process-map-controls .process-map-expand:hover { background: #ffffff; color: #141413; } .process-roadmap[data-map-mode="list"] .process-map-controls { display: none; } -.process-map-controls button:hover { background: var(--surface-hover); } -.process-map-controls button:first-child, .process-map-controls button:nth-of-type(2) { font-size: 18px; } -.process-map-controls output { min-width: 38px; color: var(--muted); text-align: center; font: 13px var(--mono); } +.process-map-controls button:hover { background: var(--surface-hover); color: var(--ink); } +.process-map-controls button[data-map-zoom="out"], .process-map-controls button[data-map-zoom="in"] { font-size: 17px; justify-content: center; } +.process-map-controls output { min-width: 40px; color: var(--ink); text-align: center; font: 600 12px var(--mono); } .process-map-controls > span { height: 18px; width: 1px; background: var(--line); margin: 0 3px; } /* List mode reflows the same nodes into reading order: same buttons, same handlers, no arrows to misread. */ .process-roadmap[data-map-mode="list"] .process-map-viewport { height: auto; overflow: visible; cursor: default; background: none; } @@ -576,7 +675,7 @@ .process-raw-output > summary { cursor: pointer; padding: 7px 0; color: var(--muted); font-size: 13px; } .process-axioms { margin: 8px 0 0 !important; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; } .process-axioms code { font: 13px var(--mono); color: var(--ink-soft); } -@media (min-width: 1700px) { .reading-process .inspector { max-width: 1240px; } } +@media (min-width: 1700px) { .reading-process .inspector { max-width: 1400px; } } @media (max-width: 1100px) { .proof-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .proof-route-sidebar { margin-bottom: 6px; } @@ -671,6 +770,9 @@ .process-view-toolbar > .process-step-filters { width: 100%; } .process-view-toolbar .process-step-filters button { flex: 1; justify-content: center; padding: 5px 8px; font-size: 13px; } .process-map-viewport { height: 440px; } + .process-map-tip { display: none; } + .process-roadmap[data-map-expanded="true"] { inset: 6px; padding: 12px; border-radius: 12px; } + .process-map-controls { flex-wrap: wrap; } .process-map-legend { column-gap: 16px; row-gap: 7px; font-size: 13px; } .process-map-inspector { grid-template-columns: minmax(0, 1fr); } .process-map-context { padding: 20px 18px; } @@ -688,14 +790,16 @@ .process-introduction { padding: 23px 0 20px; } .process-introduction h3 { font-size: 21px; margin-top: 4px; } .process-introduction > div > p:last-child { font-size: 14px; } - .process-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; padding: 18px 0; margin-bottom: 20px; } - .process-overview > div { padding: 0 16px; } - .process-overview > div:nth-child(2n) { border-right: 0; } - .process-overview > div:nth-child(3) { padding-left: 0; } - .process-overview dd { font-size: 24px; } + .process-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin-bottom: 18px; } + .process-overview > div { padding: 14px 15px; } + .process-overview dd { font-size: 26px; } .process-overview .process-overview-date { font-size: 17px; } - .process-run-nav { display: flex; overflow-x: auto; overscroll-behavior-x: contain; gap: 7px; padding-bottom: 7px; margin-bottom: 20px; scrollbar-width: thin; } - .process-run { flex: 0 0 180px; padding: 12px; } + .process-run-nav { display: flex; overflow-x: auto; overscroll-behavior-x: contain; gap: 8px; padding-bottom: 7px; margin-bottom: 20px; scrollbar-width: thin; } + .process-run-nav::before { display: none; } + .process-run { flex: 0 0 192px; padding: 12px 14px; } + .process-acceptance { padding: 20px 18px; } + .process-acceptance h3 { font-size: 22px; } + .process-acceptance .process-targets code { flex-direction: column; align-items: flex-start; gap: 4px; } .process-single-run .process-run { flex: 1; flex-wrap: wrap; gap: 4px 16px; } .process-single-run .process-run > time { display: none; } .process-run-header { align-items: flex-start; flex-wrap: wrap; } diff --git a/docs/web/process.ts b/docs/web/process.ts index b92834b7..f9ad40b4 100644 --- a/docs/web/process.ts +++ b/docs/web/process.ts @@ -101,12 +101,17 @@ function rawDetails(values: [string, string | undefined][], locale: Locale): str function acceptance(record: ArchiveIndexRecord, locale: Locale): string { const final = record.campaign; if (!final) return ''; + const receipt = final.kernelReceiptIds[0] ? short(final.kernelReceiptIds[0]) : ''; return `
-
${icon('shield-check')}
-

${choose(locale, '本地独立验收', 'Independent local acceptance')}

+
+
${icon('shield-check')}
+

${choose(locale, '本地独立验收', 'Independent local acceptance')}

+ LEAN 4 +

${choose(locale, '完整原题已通过', 'The original problem passed')}

${choose(locale, 'Lean 内核检查通过,原题比较器退出码为 0。', 'The Lean kernel check passed and the original comparator exited with code 0.')}

-
${final.targets.map(target => `${escape(target)}`).join('')}
+
${final.targets.map(target => `${escape(target)}`).join('')}
+
${receipt ? `receipt ${escape(receipt)}` : ''}sorry: 0 · axioms: standard
${rawDetails([['Run ID', final.runId], ['Proof commit', final.proofCommit], ['SHA-256', final.proofSha256], ['Lean receipts', final.kernelReceiptIds.join('\n')]], locale)} @@ -267,17 +272,31 @@ export function renderArchiveProcess(record: ArchiveIndexRecord, process: Archiv const selectedIndex = selected ? filtered.indexOf(selected) : -1; const current = process.runs.indexOf(run); const taskCount = new Set(process.runs.flatMap(run => run.tasks.map(task => task.id))).size; + const provedCount = run.tasks.filter(task => task.status === 'integrated' || task.status === 'completed').length; + const blockedCount = run.tasks.filter(task => task.status === 'blocked').length; const checks = process.runs.reduce((sum, run) => sum + (run.checks?.length ?? run.events.filter(event => event.kind === 'lean-check').length), 0); const meaningfulEvents = run.events.filter(event => event.kind === 'baseline' || event.kind === 'transition' && !event.message?.trim()); const viewToolbar = `
${selection.view === 'global' ? choose(locale, '全局解题轨迹', 'Whole-problem trajectory') : choose(locale, '解题路线', 'Proof roadmap')}
`; if (selection.view === 'global') return `
${viewToolbar}${renderGlobalTrajectory(record, process, locale, value => processStatus(value, locale), { run: run.runId, acceptance: acceptance(record, locale), evidence: researchEvidence })}
`; + const taskSub = provedCount || blockedCount + ? choose(locale, `${provedCount} 已集成${blockedCount ? ` · ${blockedCount} 受阻` : ''}`, `${provedCount} proved${blockedCount ? ` · ${blockedCount} blocked` : ''}`) + : ''; + const runDur = duration(run, locale); return `
${viewToolbar}

${escape(record.summary)}

${record.campaign ? `
${icon('shield-check')}${choose(locale, '完整原题', 'Original problem')}${choose(locale, '本地验收通过', 'Locally accepted')}
` : ''}
-
${choose(locale, '记录运行', 'Recorded runs')}
${process.runs.length}
${choose(locale, '归档任务', 'Archived tasks')}
${taskCount}
-
${choose(locale, '已存检查', 'Saved checks')}
${checks}
${choose(locale, '最终验收', 'Final acceptance')}
${escape(new Date(record.updatedAt).toISOString().slice(0, 10))}
- +
+
${choose(locale, '记录运行', 'Recorded runs')}
${process.runs.length}
${runDur ? escape(runDur) : choose(locale, '完整存档', 'Full history')}
+
${choose(locale, '归档任务', 'Archived tasks')}
${taskCount}
${taskSub ? `${escape(taskSub)}` : ''}
+
${choose(locale, '已存检查', 'Saved checks')}
${checks}
${choose(locale, 'Lean 内核核验', 'kernel verified')}
+
${choose(locale, '最终验收', 'Final acceptance')}
${escape(new Date(record.updatedAt).toISOString().slice(0, 10))}
${choose(locale, `${steps.length} 个研究步骤`, `${steps.length} research steps`)}
+
+

${choose(locale, `第 ${current + 1} 次运行`, `Run ${current + 1}`)}

${escape(time(run.startedAt, locale))}${run.finishedAt ? ` — ${escape(time(run.finishedAt, locale))}` : ''} UTC${duration(run, locale) ? ` · ${escape(duration(run, locale))}` : ''}

${choose(locale, '原始记录', 'Original records')}${icon('arrow-up-right')}
${run.reason ? `

${escape(readableProcessText(run.reason, 650))}

` : ''} diff --git a/docs/web/processRoadmap.ts b/docs/web/processRoadmap.ts index 4b1ae5ad..378b6c0a 100644 --- a/docs/web/processRoadmap.ts +++ b/docs/web/processRoadmap.ts @@ -75,7 +75,7 @@ export function buildArchiveRoadmap(record: ArchiveIndexRecord, run: Run, locale return { nodes, edges }; } -const card = { width: 232, height: 140, columnGap: 72, rowGap: 24, lane: 14, margin: 30 }; +const card = { width: 296, height: 168, columnGap: 140, rowGap: 44, lane: 18, margin: 48 }; /** * A whole-map scale below this turns 17px titles into unreadable pixels. The stacked list carries the same nodes, * dependencies and ordinals in reading order, so it is what a reader gets instead of a thumbnail. @@ -85,18 +85,71 @@ let preferredMode: 'graph' | 'list' | undefined; /** Until the reader chooses, a narrow screen opens the list: a 3000px-wide graph is nine screens of panning. */ export const roadmapMode = (): 'graph' | 'list' => preferredMode ?? (typeof innerWidth === 'number' && innerWidth < 701 ? 'list' : 'graph'); export const setRoadmapMode = (mode: 'graph' | 'list') => { preferredMode = mode; }; + +/** Split task dependencies into direct (Hasse) covering edges and transitive shortcuts so long skip-layer cables do not bloat the layout. */ +function splitTransitiveEdges(nodeIds: readonly string[], edges: readonly { from: string; to: string; kind: 'and' }[]) { + const unique: { from: string; to: string; kind: 'and' }[] = []; + const seen = new Set(); + const inputs = new Map(nodeIds.map(id => [id, []])); + const outputs = new Map(nodeIds.map(id => [id, []])); + for (const edge of edges) { + const key = `${edge.from}\0${edge.to}`; + if (edge.from === edge.to || seen.has(key) || !inputs.has(edge.from) || !inputs.has(edge.to)) continue; + seen.add(key); unique.push(edge); + inputs.get(edge.to)!.push(edge.from); + outputs.get(edge.from)!.push(edge.to); + } + const depth = new Map(), visiting = new Set(); + const rank = (id: string): number => { + if (depth.has(id)) return depth.get(id)!; + if (visiting.has(id)) return 0; + visiting.add(id); + const value = inputs.get(id)!.reduce((max, from) => Math.max(max, rank(from) + 1), 0); + visiting.delete(id); depth.set(id, value); return value; + }; + for (const id of nodeIds) rank(id); + const isTransitive = (from: string, to: string) => { + const fromRank = depth.get(from) ?? 0, toRank = depth.get(to) ?? 0; + if (toRank <= fromRank + 1) return false; + const visited = new Set(); + const stack = (outputs.get(from) ?? []).filter(next => next !== to && (depth.get(next) ?? 0) > fromRank && (depth.get(next) ?? 0) <= toRank); + while (stack.length) { + const current = stack.pop()!; + if (current === to) return true; + if (visited.has(current)) continue; + visited.add(current); + const curRank = depth.get(current) ?? 0; + for (const next of outputs.get(current) ?? []) { + const nextRank = depth.get(next) ?? 0; + if (nextRank > curRank && nextRank <= toRank) stack.push(next); + } + } + return false; + }; + const direct: { from: string; to: string; kind: 'and' }[] = []; + const transitive = new Set(); + for (const edge of unique) { + if (isTransitive(edge.from, edge.to)) transitive.add(`${edge.from}\0${edge.to}`); + else direct.push(edge); + } + return { direct, transitive }; +} + function arrange(model: ArchiveRoadmap) { const tasks = model.nodes.filter(node => node.kind === 'task'); - const graph = layoutTaskGraph(tasks.map(node => node.id), model.edges.filter(edge => edge.kind === 'dependency').map(edge => ({ ...edge, kind: 'and' })), + const taskIds = tasks.map(node => node.id); + const rawDependencies = model.edges.filter(edge => edge.kind === 'dependency').map(edge => ({ ...edge, kind: 'and' as const })); + const { direct, transitive } = splitTransitiveEdges(taskIds, rawDependencies); + const graph = layoutTaskGraph(taskIds, direct, { width: card.width, cardHeight: card.height, columnGap: card.columnGap, rowGap: card.rowGap, lane: card.lane, margin: card.margin }); const before = model.nodes.filter(node => node.kind === 'problem' || node.kind === 'plan'); const after = model.nodes.filter(node => !['problem', 'plan', 'task'].includes(node.kind)); - const height = Math.max(graph.height, before.length * (card.height + 44) + 50, after.length * (card.height + 44) + 50); + const height = Math.max(graph.height, before.length * (card.height + 52) + 64, after.length * (card.height + 52) + 64); const positions = new Map(); const taskLeft = before.length ? card.width + card.columnGap : 0; for (const [id, position] of graph.positions) positions.set(id, { x: position.x + taskLeft, y: position.y + (height - graph.height) / 2 }); const stack = (nodes: ArchiveRoadmapNode[], x: number) => nodes.forEach((node, index) => positions.set(node.id, { - x, y: (height - (nodes.length * (card.height + 44) - 44)) / 2 + index * (card.height + 44), + x, y: (height - (nodes.length * (card.height + 52) - 52)) / 2 + index * (card.height + 52), })); stack(before, card.margin); const right = tasks.length ? taskLeft + graph.width + card.columnGap : card.width + card.columnGap + card.margin; @@ -104,13 +157,22 @@ function arrange(model: ArchiveRoadmap) { const dependencyPaths = new Map(graph.paths.map(path => [`${path.edge.from}\0${path.edge.to}`, path.d])); const paths = model.edges.map(edge => { const a = positions.get(edge.from)!, b = positions.get(edge.to)!; - if (edge.kind === 'dependency') return { edge, d: dependencyPaths.get(`${edge.from}\0${edge.to}`)!, shiftX: taskLeft, shiftY: (height - graph.height) / 2 }; + const key = `${edge.from}\0${edge.to}`; + if (edge.kind === 'dependency') { + const routed = dependencyPaths.get(key); + if (routed) return { edge, d: routed, shiftX: taskLeft, shiftY: (height - graph.height) / 2, layer: 'direct' as const }; + const x1 = a.x + card.width, y1 = a.y + card.height / 2; + const x2 = b.x, y2 = b.y + card.height / 2; + const span = Math.max(54, Math.abs(x2 - x1) * 0.42); + const arch = (a.y <= b.y ? -1 : 1) * Math.min(84, Math.abs(x2 - x1) * 0.08); + return { edge, d: `M${x1} ${y1} C${x1 + span} ${y1 + arch},${x2 - span} ${y2 + arch},${x2} ${y2}`, shiftX: 0, shiftY: 0, layer: transitive.has(key) ? 'transitive' as const : 'direct' as const }; + } const vertical = a.x === b.x; const x1 = a.x + (vertical ? card.width / 2 : card.width), y1 = a.y + (vertical ? card.height : card.height / 2); const x2 = b.x + (vertical ? card.width / 2 : 0), y2 = b.y + (vertical ? 0 : card.height / 2); - return { edge, d: vertical ? `M${x1} ${y1} L${x2} ${y2}` : `M${x1} ${y1} C${x1 + 40} ${y1},${x2 - 40} ${y2},${x2} ${y2}`, shiftX: 0, shiftY: 0 }; + return { edge, d: vertical ? `M${x1} ${y1} L${x2} ${y2}` : `M${x1} ${y1} C${x1 + 56} ${y1},${x2 - 56} ${y2},${x2} ${y2}`, shiftX: 0, shiftY: 0, layer: 'direct' as const }; }); - return { positions, paths, width: right + card.width + card.margin, height }; + return { positions, paths, transitiveCount: transitive.size, width: right + card.width + card.margin, height }; } export function renderArchiveRoadmap(model: ArchiveRoadmap, run: Run, selected: string, locale: Locale, inspectorId: string | null = 'process-map-inspector'): string { const layout = arrange(model); @@ -126,26 +188,53 @@ export function renderArchiveRoadmap(model: ArchiveRoadmap, run: Run, selected: visit(selected, 'to'); visit(selected, 'from'); } const names = { problem: text(locale, '起点', 'Starting point'), plan: text(locale, '研究计划', 'Research plan'), task: text(locale, '引理 / 任务', 'Lemma / task'), - check: text(locale, '整题验证', 'Whole-problem check'), review: text(locale, '审阅', 'Review'), acceptance: text(locale, '本地独立验收', 'Independent acceptance'), end: text(locale, '运行终点', 'Run outcome') }; + check: text(locale, '整题验证', 'Whole-problem check'), review: text(locale, '审阅', 'Review'), acceptance: text(locale, '最终验收', 'Final acceptance'), end: text(locale, '运行终点', 'Run outcome') }; const iconNames = { problem: 'book-open', plan: 'git-branch', task: 'file-code-2', check: 'file-check-2', review: 'message-circle', acceptance: 'shield-check', end: 'clock' }; const status = (node: ArchiveRoadmapNode) => node.status === 'integrated' ? text(locale, '已集成', 'Integrated') : node.status === 'blocked' ? text(locale, '受阻', 'Blocked') : node.status === 'pending' ? text(locale, '待完成', 'Pending') : roadmapTone(node.status) === 'passed' ? text(locale, '已通过', 'Passed') : roadmapTone(node.status) === 'attention' ? text(locale, '未通过', 'Not passed') : text(locale, '研究中', 'In progress'); const mode = roadmapMode(); const ordinal = new Map(model.nodes.map((node, index) => [node.id, String(index + 1).padStart(2, '0')])); + const nodeById = new Map(model.nodes.map(node => [node.id, node])); + const taskById = new Map(run.tasks.map(task => [task.id, task])); // A stacked list has no room for arrows, so every task carries the ordinals it depends on. const dependencies = new Map(); for (const edge of model.edges) if (edge.kind === 'dependency') dependencies.set(edge.to, [...(dependencies.get(edge.to) ?? []), ordinal.get(edge.from) ?? edge.from]); - return `
-
${text(locale, '引理依赖', 'Lemma dependency')}${text(locale, '研究流程', 'Research flow')}${text(locale, '已集成 / 通过', 'Integrated / passed')}${text(locale, '受阻 / 未通过', 'Blocked / failed')}
-
100%
+ const edgeTone = (edge: ArchiveRoadmap['edges'][number]) => { + const target = nodeById.get(edge.to), source = nodeById.get(edge.from); + if (target && roadmapTone(target.status) === 'attention') return 'attention'; + if (target?.kind === 'acceptance' || (target && roadmapTone(target.status) === 'passed' && (!source || source.kind === 'problem' || source.kind === 'plan' || roadmapTone(source.status) === 'passed'))) return 'passed'; + return 'neutral'; + }; + return `
+
${text(locale, '直接依赖主干', 'Direct lemma path')}${text(locale, '受阻 / 绕行分支', 'Explored / blocked detour')}${text(locale, '研究流程', 'Research flow')}${text(locale, '已集成 / 通过', 'Integrated / passed')}${text(locale, '受阻 / 未通过', 'Blocked / failed')}${text(locale, 'Ctrl+滚轮 / 双击缩放 · 悬停显示完整因果链', 'Ctrl+scroll / double-click to zoom · hover for full dependencies')}
+
+
+
+ + ${layout.transitiveCount ? `` : ''} + + + 100% + + + + + + + +
+
-
- +
+ ${model.nodes.map(node => { const point = layout.positions.get(node.id)!; + const task = node.taskId ? taskById.get(node.taskId) : undefined; + const codeHint = task?.theorem ? (task.theorem.split('.').filter(Boolean).at(-1) ?? task.theorem) + : node.kind === 'acceptance' ? text(locale, '0 sorry · Lean 内核核验', '0 sorry · kernel verified') : ''; const failed = node.checkIds.filter(id => run.checks?.some(check => check.id === id && check.status === 'failed')).length; const returned = node.deliveryIds.filter(id => run.deliveries?.some(delivery => delivery.id === id && delivery.status === 'changes_requested')).length; const detail = node.kind === 'task' ? `${node.checkIds.length} ${text(locale, '检查', 'checks')} · ${node.deliveryIds.length} ${text(locale, '交付', 'deliveries')}` @@ -155,7 +244,7 @@ export function renderArchiveRoadmap(model: ArchiveRoadmap, run: Run, selected: : node.kind === 'review' ? text(locale, `${node.deliveryIds.length} 条审阅记录`, `${node.deliveryIds.length} saved reviews`) : node.kind === 'acceptance' ? text(locale, '完整证明与验收回执', 'Final proof and acceptance receipt') : text(locale, '查看本轮结果', 'Inspect this run’s outcome'); const needs = dependencies.get(node.id) ?? []; - return ``; + return ``; }).join('')}
@@ -189,15 +278,55 @@ export function mountArchiveRoadmap(): void { }; showMode(roadmapMode()); const same = previous?.key === key; - const initial = Math.max(innerWidth < 701 ? .8 : .65, Math.min(1, (viewport.clientWidth - 24) / width)); + const initial = Math.max(innerWidth < 701 ? .85 : 1, Math.min(1, (viewport.clientWidth - 28) / width)); const selected = viewport.dataset.mapSelected ?? ''; const view: View = { element: viewport, key, selected, scale: same ? previous.scale : initial, left: 0, top: 0, dispose: () => {} }; const abort = new AbortController(), options = { signal: abort.signal }; + const localeIsEn = document.documentElement.lang?.toLowerCase().startsWith('en'); + let expanded = false, prevOverflow = ''; const resize = () => { canvas.style.transform = `scale(${view.scale})`; space.style.width = `${width * view.scale}px`; space.style.height = `${height * view.scale}px`; scaleLabel.textContent = `${Math.round(view.scale * 100)}%`; viewport.dataset.mapScale = String(view.scale); }; + const zoomAt = (nextScale: number, anchor?: { x: number; y: number }, minScale = 0.22) => { + const clamped = Math.max(minScale, Math.min(2.5, Math.round(nextScale * 100) / 100)); + const rect = viewport.getBoundingClientRect(); + const px = anchor ? anchor.x - rect.left : viewport.clientWidth / 2; + const py = anchor ? anchor.y - rect.top : viewport.clientHeight / 2; + const cx = (viewport.scrollLeft + px) / view.scale; + const cy = (viewport.scrollTop + py) / view.scale; + view.scale = clamped; + resize(); + viewport.scrollLeft = Math.max(0, cx * view.scale - px); + viewport.scrollTop = Math.max(0, cy * view.scale - py); + save(); + }; + const setExpanded = (value: boolean) => { + if (value === expanded) return; + expanded = value; + section.dataset.mapExpanded = String(expanded); + const btn = section.querySelector('[data-map-expand]'); + if (btn) { + btn.setAttribute('aria-expanded', String(expanded)); + const label = btn.querySelector('span'); + if (label) label.textContent = expanded ? (localeIsEn ? 'Close' : '退出全屏') : (localeIsEn ? 'Expand' : '全屏放大'); + } + if (expanded) { + section.setAttribute('role', 'dialog'); section.setAttribute('aria-modal', 'true'); + prevOverflow = document.body.style.overflow; document.body.style.overflow = 'hidden'; + } else { + section.removeAttribute('role'); section.removeAttribute('aria-modal'); + document.body.style.overflow = prevOverflow; + } + resize(); + }; resize(); if (same) { viewport.scrollLeft = previous.left; viewport.scrollTop = previous.top; } - else viewport.scrollTop = Math.max(0, (height * view.scale - viewport.clientHeight) / 2); + else { + const startNode = canvas.querySelector('[data-process-node="problem"]'); + if (startNode) { + viewport.scrollLeft = 0; + viewport.scrollTop = Math.max(0, (parseFloat(startNode.style.top) + card.height / 2) * view.scale - viewport.clientHeight / 2); + } else viewport.scrollTop = Math.max(0, (height * view.scale - viewport.clientHeight) / 2); + } if (selected !== 'problem' && (!same || previous.selected !== selected)) { const node = [...canvas.querySelectorAll('[data-process-node]')].find(node => node.dataset.processNode === selected); if (node) { viewport.scrollLeft = (parseFloat(node.style.left) + card.width / 2) * view.scale - viewport.clientWidth / 2; @@ -205,7 +334,7 @@ export function mountArchiveRoadmap(): void { } const save = () => { view.left = viewport.scrollLeft; view.top = viewport.scrollTop; }; save(); viewport.addEventListener('scroll', save, options); - // One delegated listener for the section: layout toggles and zoom share it, and both live above the canvas. + // One delegated listener for the section: layout toggles, focus mode, fullscreen and zoom share it. section.addEventListener('click', event => { const target = event.target as Element; // The section itself carries data-map-mode for CSS, so only the buttons may match here. @@ -216,7 +345,34 @@ export function mountArchiveRoadmap(): void { save(); setRoadmapMode(mode); showMode(mode); if (mode === 'graph') { resize(); viewport.scrollLeft = view.left; viewport.scrollTop = view.top; - } else viewport.scrollLeft = viewport.scrollTop = 0; + } else { setExpanded(false); viewport.scrollLeft = viewport.scrollTop = 0; } + return; + } + const focusButton = target.closest('button[data-map-focus]'); + if (focusButton) { + const next = section.dataset.mapFocus === 'spine' ? 'all' : 'spine'; + section.dataset.mapFocus = next; + focusButton.setAttribute('aria-pressed', String(next === 'spine')); + return; + } + const edgesButton = target.closest('button[data-map-all-edges]'); + if (edgesButton) { + const next = section.dataset.mapEdges === 'all' ? 'direct' : 'all'; + section.dataset.mapEdges = next; + edgesButton.setAttribute('aria-pressed', String(next === 'all')); + return; + } + const expandButton = target.closest('button[data-map-expand]'); + if (expandButton) { + if (grid() === 'list') { setRoadmapMode('graph'); showMode('graph'); } + setExpanded(!expanded); + return; + } + const overviewButton = target.closest('button[data-map-overview]'); + if (overviewButton && grid() !== 'list') { + const whole = Math.min(1, (viewport.clientWidth - 28) / width, (viewport.clientHeight - 28) / height); + view.scale = Math.max(0.22, Math.round(whole * 100) / 100); + resize(); viewport.scrollLeft = 0; viewport.scrollTop = 0; save(); return; } const control = target.closest('[data-map-zoom]'); @@ -224,16 +380,26 @@ export function mountArchiveRoadmap(): void { // Below this the titles stop being words, so a whole-map fit hands over to the list instead of shrinking further. const floor = readableFloor(); const whole = Math.min(1, (viewport.clientWidth - 30) / width, (viewport.clientHeight - 30) / height); - if (control.dataset.mapZoom === 'fit' && whole < floor) { + if (control.dataset.mapZoom === 'fit' && !expanded && whole < floor) { save(); setRoadmapMode('list'); showMode('list'); viewport.scrollLeft = viewport.scrollTop = 0; return; } - const x = (viewport.scrollLeft + viewport.clientWidth / 2) / view.scale, y = (viewport.scrollTop + viewport.clientHeight / 2) / view.scale; - view.scale = control.dataset.mapZoom === 'fit' ? Math.max(floor, whole) - : control.dataset.mapZoom === 'actual' ? 1 : Math.max(floor, Math.min(1.8, view.scale * (control.dataset.mapZoom === 'in' ? 1.2 : 1 / 1.2))); - resize(); viewport.scrollLeft = x * view.scale - viewport.clientWidth / 2; viewport.scrollTop = y * view.scale - viewport.clientHeight / 2; - if (control.dataset.mapZoom === 'fit') { viewport.scrollLeft = 0; viewport.scrollTop = 0; } - save(); + const next = control.dataset.mapZoom === 'fit' ? Math.max(expanded ? 0.22 : floor, whole) + : control.dataset.mapZoom === 'actual' ? 1 : view.scale * (control.dataset.mapZoom === 'in' ? 1.2 : 1 / 1.2); + zoomAt(next, undefined, expanded ? 0.22 : floor); + if (control.dataset.mapZoom === 'fit') { viewport.scrollLeft = 0; viewport.scrollTop = 0; save(); } + }, options); + // Pinch / Ctrl+wheel zooms smoothly around the cursor; double-clicking empty canvas zooms in or resets. + viewport.addEventListener('wheel', event => { + if (grid() === 'list' || (!event.ctrlKey && !event.metaKey)) return; + event.preventDefault(); + const factor = Math.exp(-event.deltaY * (event.deltaMode === 1 ? 0.05 : 0.002)); + zoomAt(view.scale * factor, { x: event.clientX, y: event.clientY }, 0.22); + }, { ...options, passive: false }); + viewport.addEventListener('dblclick', event => { + if (grid() === 'list' || (event.target as Element).closest('button')) return; + const next = view.scale >= 1.45 ? 1 : Math.min(2.2, view.scale * 1.35); + zoomAt(next, { x: event.clientX, y: event.clientY }, 0.22); }, options); let drag: { id: number; x: number; y: number; left: number; top: number } | undefined; viewport.addEventListener('pointerdown', event => { @@ -246,13 +412,63 @@ export function mountArchiveRoadmap(): void { viewport.addEventListener('pointerup', release, options); viewport.addEventListener('pointercancel', release, options); viewport.addEventListener('keydown', event => { if (event.target !== viewport) return; + if (event.key === '+' || event.key === '=') { event.preventDefault(); zoomAt(view.scale * 1.2, undefined, 0.22); return; } + if (event.key === '-') { event.preventDefault(); zoomAt(view.scale / 1.2, undefined, 0.22); return; } + if (event.key === '0') { event.preventDefault(); zoomAt(1, undefined, 0.22); return; } const movement: Record = { ArrowLeft: [-100, 0], ArrowRight: [100, 0], ArrowUp: [0, -100], ArrowDown: [0, 100] }; const delta = movement[event.key]; if (delta) { event.preventDefault(); viewport.scrollBy(...delta); } }, options); + window.addEventListener('keydown', event => { + if (expanded && event.key === 'Escape') { + event.preventDefault(); setExpanded(false); + section.querySelector('[data-map-expand]')?.focus({ preventScroll: true }); + } + }, options); + // Hovering a node illuminates direct neighbors boldly and transitive ancestors softly, eliminating edge clutter. + const edgeEls = [...canvas.querySelectorAll('path[data-map-edge]')]; + const nodeEls = [...canvas.querySelectorAll('[data-process-node]')]; + const adjacency = edgeEls.map(el => ({ el, from: el.dataset.from ?? '', to: el.dataset.to ?? '' })); + const clearHover = () => { + delete canvas.dataset.mapHover; + for (const el of nodeEls) { el.classList.remove('is-hover-hit', 'is-hover-direct'); } + for (const item of adjacency) { item.el.classList.remove('is-hover-hit', 'is-hover-direct'); } + }; + const applyHover = (id: string) => { + if (grid() === 'list') return; + const hit = new Set([id]); + const directNodes = new Set([id]); + for (const edge of adjacency) { + if (edge.from === id) directNodes.add(edge.to); + if (edge.to === id) directNodes.add(edge.from); + } + const walk = (start: string, dir: 'from' | 'to') => { + for (const edge of adjacency) if (edge[dir] === start) { + const next = dir === 'from' ? edge.to : edge.from; + if (!hit.has(next)) { hit.add(next); walk(next, dir); } + } + }; + walk(id, 'to'); walk(id, 'from'); + canvas.dataset.mapHover = 'true'; + for (const el of nodeEls) { + const nid = el.dataset.processNode ?? ''; + el.classList.toggle('is-hover-hit', hit.has(nid)); + el.classList.toggle('is-hover-direct', directNodes.has(nid)); + } + for (const item of adjacency) { + const isDirect = item.from === id || item.to === id; + item.el.classList.toggle('is-hover-hit', hit.has(item.from) && hit.has(item.to)); + item.el.classList.toggle('is-hover-direct', isDirect); + } + }; + canvas.addEventListener('pointerover', event => { + const hovered = (event.target as Element).closest('[data-process-node]'); + if (hovered?.dataset.processNode) applyHover(hovered.dataset.processNode); + }, options); + canvas.addEventListener('pointerleave', clearHover, options); // A keyboard-focused node must be reachable even when the diagram is wider than the viewport. viewport.addEventListener('focusin', event => { const node = (event.target as Element).closest('[data-process-node]'); if (node) node.scrollIntoView({ block: 'nearest', inline: 'nearest' }); }, options); - view.dispose = () => abort.abort(); current = view; + view.dispose = () => { if (expanded) document.body.style.overflow = prevOverflow; abort.abort(); }; current = view; } From c557d167f2a564891161068c335b5e09673bcc3c Mon Sep 17 00:00:00 2001 From: Zhenhao Liu <3100378030@qq.com> Date: Fri, 27 Nov 2026 23:02:51 +0800 Subject: [PATCH 3/3] Keep 10% zoom button step in solution route graph --- apps/web/solutionRouteView.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/solutionRouteView.ts b/apps/web/solutionRouteView.ts index da961c3a..79197fc2 100644 --- a/apps/web/solutionRouteView.ts +++ b/apps/web/solutionRouteView.ts @@ -417,7 +417,7 @@ export function mountSolutionRoute(root: HTMLElement, initial: SolutionRoute, op if (zoom === 'fit') { state.fitted = true; fit(true); } else { state.fitted = false; - state.zoom = Math.max(.2, Math.min(2.5, Math.round((zoom === 'reset' ? 1 : state.zoom * (zoom === 'in' ? 1.2 : 1 / 1.2)) * 100) / 100)); + state.zoom = Math.max(.2, Math.min(2.5, Math.round((zoom === 'reset' ? 1 : state.zoom + (zoom === 'in' ? .1 : -.1)) * 100) / 100)); state.left = Math.max(0, center.x * state.zoom - viewport.clientWidth / 2); state.top = Math.max(0, center.y * state.zoom - viewport.clientHeight / 2); draw(); @@ -479,7 +479,7 @@ export function mountSolutionRoute(root: HTMLElement, initial: SolutionRoute, op const center = { x: (viewport.scrollLeft + viewport.clientWidth / 2) / state.zoom, y: (viewport.scrollTop + viewport.clientHeight / 2) / state.zoom }; if (event.key === '+' || event.key === '=' || event.key === '-' || event.key === '0') { event.preventDefault(); state.fitted = false; - state.zoom = event.key === '0' ? 1 : Math.max(.2, Math.min(2.5, Math.round(state.zoom * (event.key === '-' ? 1 / 1.2 : 1.2) * 100) / 100)); + state.zoom = event.key === '0' ? 1 : Math.max(.2, Math.min(2.5, Math.round((state.zoom + (event.key === '-' ? -.1 : .1)) * 100) / 100)); state.left = Math.max(0, center.x * state.zoom - viewport.clientWidth / 2); state.top = Math.max(0, center.y * state.zoom - viewport.clientHeight / 2); draw();