@font-face {
  font-family: "XinHammer Sans";
  src: url("../../assets/fonts/xinhammer-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 350 750;
  font-display: swap;
}
@font-face {
  font-family: "XinHammer Sans";
  src: url("../../assets/fonts/xinhammer-sans-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 350 750;
  font-display: swap;
  unicode-range: U+4E01,U+4E07,U+4E14,U+4E16,U+4E1A-4E1B,U+4E1D,U+4E25,U+4E30,U+4E34,U+4E45,U+4E4B-4E4C,U+4E4E,U+4E54,U+4E5C-4E5D,U+4E71,U+4E89,U+4E95,U+4E9A,U+4EC5,U+4EC7,U+4ED3-4ED4,U+4EE4,U+4EF0,U+4EF2,U+4EF7,U+4F01,U+4F0A,U+4F0D,U+4F0F,U+4F3C,U+4F46,U+4F4E,U+4F55,U+4F9D,U+4FA3,U+4FAF,U+4FCA,U+4FDE,U+4FEF,U+5012,U+5019,U+502A,U+503E,U+5047,U+5085,U+50A8,U+50AC,U+513F,U+5143,U+5149,U+515A,U+515C,U+516C,U+5174-5175,U+5178,U+5180,U+5189,U+5197,U+519B-519C,U+51AF,U+51CC,U+51D1,U+51FD,U+5218,U+521A,U+521D,U+5220,U+5229,U+523A,U+5265,U+5269-526A,U+52B3,U+52BF,U+52E4,U+5300,U+5317,U+5319,U+5321,U+533A-533B,U+5348,U+534A,U+5353,U+535C,U+5362,U+5374,U+5389,U+538C-538D,U+539A,U+53C9,U+53D4,U+53E0,U+53E4,U+53EA,U+53F2-53F3,U+53F6,U+53F8,U+5403,U+5415,U+542C,U+5434,U+5446,U+544A,U+5462,U+5475,U+547D,U+5496,U+54B8,U+54CD,U+54D1,U+54E5-54E6,U+5510,U+552E,U+5561,U+5566,U+5582,U+559D,U+5609,U+56CA,U+56E0,U+56E7,U+56F0,U+56FA,U+56FD,U+574F,U+5757,U+5760,U+5782,U+57AB,U+5835,U+589E,U+58EB,U+58F0,U+58F3,U+590F,U+5914,U+5916,U+592A-592B,U+5939,U+594F,U+5973,U+5979,U+59DA,U+59DC,U+59E8,U+59EC,U+5B54,U+5B59,U+5B5F,U+5B63,U+5B69,U+5B81,U+5B87,U+5B8B,U+5B93,U+5B9D,U+5BA0-5BA1,U+5BA6,U+5BAB,U+5BB0,U+5BBF,U+5BC4,U+5BC7,U+5BCC,U+5BFF,U+5C01,U+5C14,U+5C24,U+5C39,U+5C3E,U+5C42,U+5C45,U+5C60,U+5C81,U+5C9B,U+5CA9,U+5CB3,U+5CB8,U+5D14,U+5DE2,U+5DE7,U+5DE9,U+5DEB,U+5DEE,U+5DF4,U+5E02,U+5E08,U+5E2D,U+5E3D,U+5E45,U+5E55,U+5E74,U+5E78,U+5E84,U+5E97,U+5E9C,U+5E9E-5E9F,U+5EBE,U+5ECA,U+5ED6,U+5F13,U+5F18,U+5F2F,U+5F6D,U+5F81,U+5F84,U+5F88,U+5F90,U+5FB7,U+5FC5-5FC6,U+5FD9,U+5FFD,U+6000,U+6021,U+6025,U+606F,U+607C,U+6089,U+609F,U+60AC,U+60E0,U+6108,U+614E,U+6155,U+61F5,U+6208,U+620E,U+6248,U+624D,U+6263,U+6267,U+6269,U+6276,U+6280,U+6284,U+6293,U+6298,U+629B,U+62AB-62AC,U+62C9,U+62DF,U+6302,U+6321,U+6355,U+6388,U+638C,U+63E1,U+641C,U+641E,U+642C,U+643A,U+644A,U+6491,U+649E,U+64C5,U+6512,U+653F,U+6545,U+6556,U+656C,U+65AF,U+65BC,U+65CB,U+6641,U+6643,U+664F,U+6652,U+6668,U+666E,U+6674,U+6697,U+66A8,U+66B4,U+66E6,U+66F2,U+66F9,U+66FE-66FF,U+6728,U+672B,U+672F,U+6731,U+674E,U+675C,U+6770,U+6781,U+6790,U+6797,U+67D3-67D4,U+67DC,U+67F3-67F4,U+6811,U+6839,U+683E,U+6842,U+6846,U+6850-6851,U+6853,U+6881,U+6885,U+6893,U+68B0,U+68C9,U+68D2,U+68D5,U+68DA,U+68EE,U+699C,U+69DB,U+69DF,U+6A0A,U+6A58,U+6A90,U+6B27,U+6B47,U+6B62,U+6B66-6B67,U+6B7B,U+6BB3,U+6BB5,U+6BB7,U+6BCB,U+6BD5,U+6C11,U+6C1B,U+6C5F-6C61,U+6C64,U+6C6A,U+6C72,U+6C83,U+6C88,U+6C99,U+6C9F,U+6CB9,U+6CBB,U+6CDB,U+6CFD,U+6D01,U+6D17,U+6D1E,U+6D2A,U+6D45,U+6D4E,U+6D66,U+6D69,U+6D6E,U+6D78,U+6D82,U+6DE1,U+6E32,U+6E7F,U+6EAF,U+6EDA,U+6EDE,U+6F06,U+6F0F,U+6F15,U+6F58,U+6F6E,U+6FC0,U+6FEE,U+706B,U+706D,U+7075,U+70BC,U+70DF,U+70E4,U+70E6-70E7,U+70EB,U+7126,U+718A,U+719F,U+71D5,U+723D,U+7259,U+725B,U+725F,U+7267,U+732B,U+738B,U+73BB,U+73ED,U+7403,U+7483,U+74A9,U+7504,U+7518,U+7530,U+7532-7533,U+7545,U+7565,U+7591,U+75C5,U+75C7,U+75D5,U+76AE,U+76D4,U+777F,U+778E,U+77BF,U+77DB,U+77E9,U+77F3,U+7802,U+786C,U+788E,U+7897,U+78B0,U+78B3,U+78C5,U+793E,U+7941,U+7956,U+7981,U+7984,U+79CB,U+79D1,U+79D8,U+79E6,U+79F0,U+7A76,U+7A7F,U+7A84,U+7AE5,U+7AFA,U+7B11,U+7B26,U+7B51-7B52,U+7B56,U+7BC7,U+7C4D,U+7CCA,U+7CDC,U+7D27,U+7EA0,U+7EA4,U+7EA6,U+7EAA,U+7EB1,U+7EB9,U+7EC8,U+7ED7-7ED8,U+7EDC,U+7EF3,U+7F00,U+7F20,U+7F3A,U+7F57,U+7F8A,U+7F8E,U+7FA4,U+7FBF,U+7FC1,U+7FDF,U+7FFB,U+8001,U+8033,U+803F,U+8042,U+804C,U+8089,U+8098,U+80A4,U+80A9-80AA,U+80DC,U+80E1,U+80E5,U+80F6,U+80F8,U+8102,U+8131,U+817B,U+817E-817F,U+819C,U+81C2,U+8212,U+821E,U+827A,U+827E,U+82A6,U+82AE,U+82CD,U+82CF,U+82D7,U+82E5-82E6,U+8303-8304,U+8327,U+8339,U+8340,U+8346,U+8349,U+8350,U+8363,U+8398,U+83AB,U+83CA,U+840C,U+8427,U+8457,U+845B,U+8463,U+848B,U+8499,U+84AF,U+84B2,U+84DF,U+84EC,U+851A,U+8521,U+853A,U+8584,U+859B,U+867D-867E,U+86CB,U+878D,U+8854,U+8857,U+8861,U+886C,U+8881,U+8896,U+88E4,U+88F4,U+88F8,U+8936,U+89E6,U+8A3E,U+8A79,U+8B66,U+8BAF,U+8BBF,U+8BC4,U+8BC9,U+8BD7,U+8BE6,U+8BEF,U+8C01,U+8C08,U+8C0B,U+8C28,U+8C2D,U+8C31,U+8C6A,U+8D1D,U+8D21,U+8D27,U+8D3A,U+8D3E,U+8D56,U+8D5E,U+8D70,U+8D75-8D76,U+8D85,U+8DA3,U+8DB4,U+8DD1,U+8DDF,U+8F66,U+8F69,U+8F7D,U+8F91,U+8F93,U+8FB0,U+8FD1,U+8FDC,U+8FEB,U+8FF7,U+8FFD,U+9004,U+9010,U+9012,U+9014,U+902F,U+903B,U+9075,U+907F,U+9093,U+90A2,U+90B0-90B1,U+90B4-90B5,U+90B9,U+90C1,U+90CF,U+90D1,U+90D7,U+90DC-90DD,U+90E6,U+90ED,U+9102,U+91CA,U+938F,U+9488,U+94A5,U+94AD-94AE,U+94B1,U+94C1,U+94FA,U+9501,U+9519,U+95E8,U+95EA,U+95FB,U+960E,U+9619-961A,U+9632-9634,U+963F,U+9648,U+964D,U+9662,U+9664,U+9669,U+9676,U+9686,U+9697,U+9699,U+969C,U+96CD,U+96CF,U+96E8,U+96FE,U+971E,U+9732,U+9752,U+9759,U+975E,U+9760,U+9773,U+97A0,U+97E6,U+97E9,U+97F6,U+987B,U+9886,U+989C-989D,U+98DE,U+9970-9971,U+9976,U+9999,U+9A6C,U+9AA8,U+9B4F,U+9B54,U+9C7C,U+9C81,U+9ECE,U+9ED1,U+9F99-9F9A;
}
@font-face {
  font-family: "XinHammer Sans";
  src: url("../../assets/fonts/xinhammer-sans-ext2.woff2") format("woff2");
  font-style: normal;
  font-weight: 350 750;
  font-display: swap;
  unicode-range: U+4E03,U+4E11,U+4E27,U+4E38-4E39,U+4E3D,U+4E4D,U+4E4F,U+4E58,U+4E61,U+4E73,U+4E8F,U+4EA8,U+4EAC,U+4EC1,U+4EEA,U+4EFF,U+4F1F,U+4F24,U+4F26,U+4F2A,U+4F2F,U+4F38,U+4F51,U+4F69,U+4F73,U+4FA6,U+4FB5,U+4FC3,U+4FD7,U+4FF1,U+500D,U+501F,U+5021,U+5026,U+503A,U+5077,U+507F,U+50BB,U+50F5,U+50FB,U+5192,U+51A0,U+51AC,U+51BB,U+51C9,U+51DD,U+51E1,U+51E4,U+51ED,U+51EF,U+51F8-51F9,U+5200,U+5203,U+520A,U+522E,U+5241-5242,U+524A,U+5251,U+5254,U+5267,U+526F,U+5272,U+52B1-52B2,U+52C3,U+52C7,U+52C9,U+52D2,U+52FA,U+5306,U+5320,U+532E,U+5339,U+533F,U+5356,U+535A,U+5360,U+5364,U+5367,U+536B,U+5378,U+5382,U+5395,U+5398,U+53A8,U+53BF,U+53D9,U+53EC,U+53F9,U+5409-540A,U+5410,U+541E,U+5431,U+5435,U+5439,U+5440,U+5492,U+5495,U+54B1,U+54BE,U+54C8,U+54F2,U+54FA,U+552F,U+5543,U+5564-5565,U+5570,U+5598,U+55A7,U+55B1,U+55BD,U+55E6,U+5631,U+5634,U+564C,U+5662,U+566A,U+56A3,U+56BC,U+56ED,U+5708,U+571F,U+5723,U+573E,U+574E,U+575B,U+575E,U+5761,U+5766,U+576F,U+5783,U+5792,U+57A2,U+57CB,U+5802,U+5821,U+582A,U+5851,U+585E,U+58A8,U+58E4,U+58F6,U+592E,U+5937,U+593A,U+5947-5948,U+594B,U+5960,U+5965,U+5983,U+5986-5987,U+59A5,U+59C6,U+5A01,U+5A03,U+5A18,U+5A46,U+5A49,U+5A92,U+5A9A,U+5AE9,U+5B55,U+5B5C,U+5B64,U+5B85,U+5B8F,U+5B9C,U+5BB3,U+5BB5,U+5BBE,U+5BD3,U+5BDF,U+5BFB,U+5C04,U+5C16,U+5C18,U+5C1D,U+5C2C,U+5C34,U+5C38,U+5C3C-5C3D,U+5C3F,U+5C48-5C49,U+5C4E,U+5D29,U+5D4C,U+5DC5,U+5DDE,U+5DE8,U+5DFE,U+5E18,U+5E7B,U+5E7D,U+5E8A,U+5EAD,U+5EC9,U+5ED3,U+5F02-5F04,U+5F0A,U+5F17,U+5F25-5F26,U+5F31,U+5F7B-5F7C,U+5FA1,U+5FAA,U+5FCC-5FCD,U+5FD8,U+5FE0,U+6015,U+6020,U+6028,U+602A,U+6035,U+604D,U+6052,U+6076,U+6084,U+60A0,U+60A3,U+60A6,U+60A8,U+60CA,U+60D1,U+60D5,U+60E7-60E8,U+60EB,U+6109,U+611A,U+6167,U+6170,U+618B,U+61A9,U+61C8,U+61D2,U+6233,U+6241,U+6247,U+6254,U+625B,U+626C-626D,U+626F-6270,U+6291,U+6297,U+62A2,U+62B5,U+62B9,U+62BC,U+62C5,U+62CC,U+62CE,U+62D0,U+62D2-62D4,U+62E5,U+62E8,U+62F3,U+62FE,U+6316,U+631A,U+631E,U+6324-6325,U+6328,U+632A-632B,U+632F,U+633A,U+6342,U+635F,U+63A0,U+63AA,U+6452,U+6469,U+6478,U+6487,U+6492,U+6495,U+64AD,U+64C0,U+64E6,U+6500,U+653B,U+654F,U+6551,U+6562,U+659C,U+65A4-65A5,U+65A7,U+65A9,U+65CF,U+65E6,U+65E8,U+65F1,U+65F7,U+65FA,U+6602,U+6606,U+6614,U+6625,U+6628,U+6655,U+667E,U+6687,U+6691,U+66FC,U+671D,U+6734,U+6746,U+674F,U+6751,U+6760,U+6768,U+676D,U+6777,U+6787,U+6795,U+679D,U+67A2-67A3,U+67AA,U+67AF,U+67D1,U+67DA,U+67E0,U+67F1,U+67FF,U+6816-6817,U+6843,U+6854,U+6865,U+6876,U+68A6,U+68A8,U+68AD,U+68AF,U+68B3,U+68CD,U+68E0,U+68F1,U+68F5,U+6905,U+6912,U+6930,U+6942,U+697C,U+6984,U+6995,U+699B,U+69A8,U+69B4,U+69FD,U+6A31,U+6A44,U+6A59,U+6A61,U+6AAC,U+6B49,U+6B4C,U+6B6A,U+6B8A,U+6BC1,U+6BCD,U+6BEF,U+6C0F,U+6C38,U+6C41,U+6C49,U+6C55,U+6C57,U+6C5D,U+6C70,U+6C7D,U+6C90,U+6C9B,U+6CAE,U+6CB3,U+6CBE,U+6CC4,U+6CE2,U+6CE5,U+6CEA,U+6CF0,U+6CF3,U+6CFC,U+6D0B,U+6D12,U+6D1B,U+6D25,U+6D32,U+6D3D,U+6D46,U+6D53,U+6D6A,U+6D74,U+6D89,U+6DA6,U+6DA8-6DA9,U+6DAE,U+6DC6-6DC7,U+6DCB-6DCC,U+6DD8,U+6DEE,U+6DF7,U+6E0D,U+6E10,U+6E17,U+6E21,U+6E23,U+6E34,U+6E58,U+6E7E,U+6E85,U+6E89,U+6E9C,U+6ECB,U+6EE4,U+6EE9,U+6EF4,U+6F02,U+6F2B,U+6F7C,U+6FA1,U+6FB3,U+6FD1,U+704C,U+7076,U+707C,U+7092,U+7096,U+709D,U+70AB,U+70AD-70AE,U+70B8,U+70C2,U+70C8,U+70D8,U+70E9,U+70F9,U+710A,U+7115-7116,U+714E,U+715E,U+716E,U+7172,U+7178,U+717D,U+718F,U+71AC,U+71B5,U+71C3,U+71E5,U+7206,U+722A,U+722C,U+7261-7262,U+7275,U+72AF,U+72B9,U+72D7,U+72E0,U+7315,U+731B-731C,U+732A,U+732E,U+7334,U+7384,U+7389,U+739B,U+73CD,U+73E0,U+7422,U+7434,U+7455,U+745E,U+74DC,U+74E3,U+74E6,U+74F6-74F7,U+7537,U+754F,U+756A,U+7586,U+758F,U+7597,U+75B2,U+75B5,U+75BC,U+7626,U+763E,U+76C6,U+76C8,U+76CF-76D1,U+76D7,U+76DB,U+76EF,U+76FC,U+7709,U+7720,U+7728,U+773A,U+7750,U+775B,U+7763,U+776B,U+7784,U+77AC,U+77BB,U+77EE,U+780D,U+7816,U+7834,U+7838,U+7845,U+788D,U+7891,U+789F,U+78A7,U+78B1,U+78D5,U+798F,U+79A7,U+79BD,U+79C0,U+79DF,U+7A00,U+7A0E,U+7A20,U+7A77,U+7A8D,U+7A91,U+7A9D,U+7ADE,U+7AED,U+7AF9,U+7AFF,U+7B0B,U+7B28,U+7B3C,U+7B4B,U+7B94,U+7C7D,U+7C92,U+7C97,U+7CA5,U+7CAE,U+7CBD,U+7CBF,U+7CD5-7CD6,U+7CD9,U+7CEF,U+7D2B,U+7EB5,U+7EB7,U+7EBD,U+7ED1,U+7EDE,U+7EE2,U+7EEA,U+7EF5,U+7EF7,U+7EFC,U+7F18,U+7F1A,U+7F2E,U+7F50,U+7F5A,U+7F69-7F6A,U+7FB9,U+7FBD,U+7FC5,U+8010,U+8015,U+8038,U+806A,U+8083,U+808B-808C,U+809A,U+809D,U+80A0,U+80A5,U+80AF,U+80BA,U+80BF-80C0,U+80C3,U+80C6,U+80CE,U+80D6,U+80F3,U+8106,U+810A,U+810F,U+8116,U+812F,U+8138,U+813E,U+814A,U+814C,U+8150,U+8155,U+8169,U+8170-8171,U+8179,U+8180,U+818A,U+818F,U+819D,U+81A8,U+81B3,U+81C0,U+81C6,U+81ED,U+820C,U+826F,U+828B,U+8292,U+8299,U+829D,U+82A5,U+82AC-82AD,U+82AF,U+82B9,U+82BD,U+82D4,U+82DB,U+82DF,U+82E3,U+82F9,U+8305,U+8317,U+8328,U+832D,U+833C,U+8352,U+8354,U+835E,U+8360-8361,U+8364,U+836B,U+836F,U+8377-8378,U+8393,U+839C,U+83B2,U+83B4,U+83C7,U+83CC,U+83E0,U+83F2,U+8404,U+841D,U+8428,U+845A,U+8461,U+846B,U+8471,U+8475,U+8482,U+849C,U+84B8,U+84BF,U+84C4,U+84C9,U+8517,U+852C,U+853D,U+8549,U+858F,U+85AF-85B0,U+85B9,U+85D5,U+85DC,U+8611,U+8638,U+864E,U+8651,U+865A,U+866B,U+8680,U+868A,U+869D,U+86CE,U+86E4,U+8702,U+870A,U+871C,U+8783,U+87BA,U+87F9,U+8822,U+8840,U+8870,U+88AD,U+88C2,U+88D5,U+88F9,U+8A89,U+8BC0,U+8BC5,U+8BD1,U+8BDA,U+8BDE,U+8BEB,U+8BF1,U+8BF5,U+8C0E,U+8C13,U+8C27,U+8C2C,U+8C47,U+8C49,U+8C4C,U+8C6B,U+8C8C,U+8D22,U+8D2A,U+8D35,U+8D54,U+8D5B,U+8D62,U+8D6B,U+8D81,U+8D8B,U+8DC3,U+8DDD,U+8E0F,U+8E22,U+8E2A,U+8E2E,U+8E44,U+8E6D,U+8E72,U+8E81,U+8EB2,U+8EBA,U+8F68,U+8F74,U+8F84,U+8F88,U+8F9E,U+8FA3,U+8FA8-8FA9,U+8FC1,U+8FC5,U+8FC8,U+8FDD,U+8FDF,U+8FE5,U+8FEA,U+8FF0,U+8FF9,U+9006,U+9017,U+903C,U+904F,U+9057,U+9065,U+906E,U+90A6,U+90BB,U+90CE,U+9152,U+9165,U+916A,U+916E-916F,U+9171,U+9175,U+9177-9178,U+9187,U+918B,U+919B,U+91C9,U+91CE,U+9489,U+9493,U+949D,U+94A0,U+94A2,U+94A9,U+94B5,U+94BB,U+94BE,U+94C3,U+94C5,U+94DC-94DD,U+94ED,U+94F0,U+94F2,U+94F6,U+94F8,U+9505,U+9508,U+950C,U+9510,U+951A,U+9521,U+9523,U+9525,U+9532,U+9540,U+9547,U+95F7-95F8,U+9600-9601,U+9608,U+9610,U+9631,U+963B,U+964C,U+9655,U+9677,U+9694,U+96C4,U+96C7,U+96D5,U+96EA,U+9738,U+9756,U+9769,U+978B,U+97E7,U+97ED,U+987F,U+9882,U+9888,U+988C,U+9896-9897,U+98A0,U+98D9,U+9968,U+996D,U+997A,U+997C,U+997F,U+9984-9985,U+998B,U+998D,U+9992,U+99A5,U+99A8,U+9A6D,U+9A6F,U+9A7E,U+9A82,U+9A91,U+9A97,U+9B3C,U+9B42,U+9C7F,U+9C88,U+9C8D,U+9C91,U+9C9C,U+9CA4,U+9CAB,U+9CAE,U+9CC4-9CC5,U+9CD5,U+9CD7,U+9CDD,U+9E21,U+9E23,U+9E2D,U+9E3F,U+9E45,U+9E4C,U+9E51,U+9E70,U+9EA6,U+9EBB,U+9F13,U+9F20,U+9F84;
}

:root {
  color-scheme: light;
  --sans: "XinHammer Sans", "PingFang SC", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--sans);
  --ink: #172440;
  --muted: #53627b;
  --line: #dfe5f0;
  --blue: #3349c7;
  --surface: #fff;
  --canvas: #f4f6fb;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.has-fullscreen-timer { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:focus-visible {
  outline: .18rem solid var(--blue);
  outline-offset: .18rem;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: .7rem;
  left: .7rem;
  padding: .55rem .9rem;
  transform: translateY(-200%);
  opacity: 0;
  pointer-events: none;
  border-radius: .5rem;
  background: var(--surface);
}
.skip-link:focus { transform: none; opacity: 1; pointer-events: auto; }

.layout {
  width: min(calc(100% - 2rem), 72rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.header-inner, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
}

.header-inner { min-height: 3.75rem; }

.identity {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  padding-block: .2rem;
  font-size: 1.06rem;
  font-weight: 740;
  white-space: nowrap;
  flex-shrink: 0;
}

.identity-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.32rem;
  aspect-ratio: 1;
  border: 1px solid #e1e8ff;
  border-radius: .74rem;
  background: #edf1ff;
}

.identity img { display: block; object-fit: contain; width: 1.85rem; height: 1.85rem; }
.identity-title {
  font-weight: 800;
  letter-spacing: .012em;
  background: linear-gradient(102deg, #0f172a 16%, #1c3a94 62%, #2554e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, .11);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--muted);
  cursor: pointer;
  flex: none;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease, transform .14s ease;
}
.theme-toggle-btn:hover { border-color: rgba(51, 73, 199, .35); color: var(--blue); }
.theme-toggle-btn:active { transform: scale(.94); }
.theme-toggle-btn .theme-ico-sun { display: none; }
[data-theme="dark"] .theme-toggle-btn .theme-ico-moon { display: none; }
[data-theme="dark"] .theme-toggle-btn .theme-ico-sun { display: block; }

.header-links {
  display: flex;
  align-items: center;
  gap: clamp(.45rem, 1.8vw, 1.2rem);
  min-width: 0;
}

.header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  color: var(--muted);
  font-size: .875rem;
  white-space: nowrap;
}

.header-links a:hover, .site-footer a:hover { color: var(--blue); }

.header-links .home-link {
  font-weight: 620;
  color: var(--ink);
}

.header-links .feedback-link {
  min-height: 2.2rem;
  padding-inline: .75rem;
  border: 1px solid rgba(15, 23, 42, .11);
  border-radius: .65rem;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-weight: 600;
}
.header-links .feedback-link:hover { border-color: #9aa9e5; color: var(--blue); }

.header-links .site-account-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  min-height: 2.2rem;
  padding: .2rem .75rem;
  border: 1px solid rgba(15, 23, 42, .11);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #1e293b;
  font-size: .82rem;
  font-weight: 560;
  max-width: none;
  overflow: visible;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.header-links .site-account-pill:hover {
  border-color: rgba(51, 73, 199, .32);
  background: #f6f8ff;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
}
.header-links .site-account-pill .site-account-label {
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-links .site-account-pill .site-account-dot {
  display: none;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, .18);
  flex: none;
}
.header-links .site-account-pill[data-signed-in="true"] {
  border-color: rgba(15, 23, 42, .11);
  background: rgba(255, 255, 255, .98);
  color: #0f172a;
}
.header-links .site-account-pill[data-signed-in="true"] .site-account-dot {
  display: inline-block;
}

main.layout { flex: 1; padding-block: clamp(.85rem, 2vw, 1.35rem) 2.5rem; }

/* === Launcher Search & Category Bar === */
.launcher-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .75rem;
  margin-bottom: .5rem;
}
.launcher-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
}
.launcher-actions {
  display: flex;
  align-items: center;
  gap: .42rem;
  flex: 1 1 15rem;
  justify-content: flex-end;
  min-width: 0;
}
.mobile-search-btn,
.mobile-expand-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  padding: 0;
  flex: none;
}
.launcher-expand-btn { flex: none; }
.cat-pill {
  min-height: 2.05rem;
  padding: .2rem .68rem;
  border: 1px solid #d5ddf0;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 640;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.cat-pill:hover { border-color: #9aaae8; color: var(--blue); }
.cat-pill[aria-pressed="true"],
.cat-pill[aria-expanded="true"] {
  border-color: #2f4599;
  background: #2f4599;
  color: #fff;
}
.cat-pill.launcher-expand-btn[aria-expanded="true"] {
  border-color: #d5ddf0;
  background: #fff;
  color: var(--muted);
}
.cat-pill.launcher-expand-btn[aria-expanded="true"]:hover {
  border-color: #9aaae8;
  color: var(--blue);
}

.launcher-search {
  position: relative;
  flex: 1 1 13rem;
  max-width: 20rem;
  min-width: 0;
}
.launcher-search input {
  width: 100%;
  min-height: 2.15rem;
  padding: .25rem 2.1rem .25rem .78rem;
  border: 1px solid #d2dcf0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .84rem;
}
.launcher-search input::placeholder { color: #7a89a6; }
.launcher-search kbd {
  position: absolute;
  right: .55rem;
  top: 50%;
  transform: translateY(-50%);
  padding: .05rem .36rem;
  border: 1px solid #d4dcf0;
  border-radius: .32rem;
  background: #f4f6fb;
  color: var(--muted);
  font-size: .72rem;
  font-family: ui-monospace, monospace;
  pointer-events: none;
}

.launcher-empty {
  padding: .85rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
}

/* === Global Relay Toast === */
.xh-toast {
  position: fixed;
  z-index: 1200;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  padding: .62rem 1.1rem;
  border-radius: 999px;
  background: #172440f0;
  color: #fff;
  font-size: .88rem;
  font-weight: 640;
  box-shadow: 0 .6rem 1.6rem #0f172a40;
  transition: opacity .2s ease, transform .2s ease;
  max-width: min(92vw, 32rem);
  text-align: center;
}
.xh-toast[data-open="true"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* === Scalable 13-Tool Navigation === */
.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.45rem, 1fr));
  gap: .3rem;
  padding: .32rem;
  margin: 0;
  border: 1px solid #e0e6f2;
  border-radius: 1.05rem;
  background: #e9edf7;
  list-style: none;
}
@media (min-width: 58.01rem) {
  .tool-list[data-compact="true"] {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #c2cde5 transparent;
  }
  .tool-list[data-compact="true"] > li {
    flex: none;
    scroll-snap-align: start;
  }
  .tool-list[data-compact="true"] .tool-entry {
    padding: .42rem 1.55rem .42rem .55rem;
  }
}
.tool-list > li { position: relative; min-width: 0; }

.tool-entry {
  display: flex;
  align-items: center;
  gap: .46rem;
  height: 100%;
  padding: .4rem 1.48rem .4rem .5rem;
  border: 1px solid transparent;
  border-radius: .74rem;
  color: var(--muted);
  transition: background-color .15s ease, border-color .15s ease;
}
.tool-entry > span:last-child { min-width: 0; overflow: hidden; }

.tool-pin {
  position: absolute;
  top: .24rem;
  right: .22rem;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: .42rem;
  background: transparent;
  color: #64748b;
  font-size: .78rem;
  cursor: pointer;
  opacity: .84;
  transition: opacity .15s ease, color .15s ease, background-color .15s ease;
}
.tool-list > li:hover .tool-pin,
.tool-pin:focus-visible,
.tool-pin[aria-pressed="true"] { opacity: 1; }
.tool-pin[aria-pressed="true"] { color: #eab308; }
.tool-pin:hover { background: #ffffff80; color: #eab308; }
.tool-entry[aria-current] + .tool-pin { color: #e2e8f0; opacity: .92; }
.tool-entry[aria-current] + .tool-pin[aria-pressed="true"] { color: #fde047; }

.tool-entry strong, .tool-entry small { display: block; line-height: 1.22; }
.tool-entry strong { color: var(--ink); font-size: .86rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-entry small { font-size: .71rem; margin-top: .06rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tool-entry[data-tool-link]:hover { background: #f8faff; }
.tool-entry[data-tool-link]:active { background: #dce4fa; }

.tool-entry[data-tool-link][aria-current] {
  border-color: #2c3e82;
  background: linear-gradient(115deg, #304795, #25366f);
  color: #dbe5ff;
  box-shadow: 0 .28rem .68rem #25397338, inset 0 1px #ffffff24;
}
.tool-entry[aria-current] strong { color: #fff; }

/* 8 Crisp CSS Icons */
.tool-icon {
  display: grid;
  position: relative;
  place-items: center;
  flex: none;
  width: 1.98rem;
  aspect-ratio: 1;
  border-radius: .56rem;
  background: #dfe5f2;
  color: #536b96;
}
.tool-icon::before, .tool-icon::after { content: ""; }

.tool-icon--wheel { background: #dbe4ff; }
.tool-icon--wheel::before {
  width: 1.3rem;
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 50%;
  background: conic-gradient(#5c57db 0 25%, #73c0f7 25% 50%, #244fcf 50% 75%, #f4bd67 75% 100%);
}
.tool-icon--wheel::after {
  position: absolute;
  width: .38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}

.tool-icon--groups { background: #daedea; color: #2b6b5f; }
.tool-icon--groups::before {
  width: .38rem;
  aspect-ratio: 1;
  margin-bottom: .48rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -.42rem .14rem currentColor, .42rem .14rem currentColor;
}
.tool-icon--groups::after {
  position: absolute;
  width: .56rem;
  height: .31rem;
  margin-top: .4rem;
  border-radius: .3rem .3rem .08rem .08rem;
  background: currentColor;
  box-shadow: -.44rem .08rem currentColor, .44rem .08rem currentColor;
}

.tool-icon--image { background: #f4e8ce; color: #806132; }
.tool-icon--image::before {
  width: 1.2rem;
  height: .96rem;
  border: 1.5px solid currentColor;
  border-radius: .22rem;
}
.tool-icon--image::after {
  position: absolute;
  width: .85rem;
  height: .44rem;
  margin-top: .22rem;
  background: currentColor;
  clip-path: polygon(0 100%, 32% 27%, 56% 68%, 73% 35%, 100% 100%);
}

.tool-icon--watermark { background: #e8e2fa; color: #5b3ea6; }
.tool-icon--watermark::before {
  width: 1.15rem;
  height: 1.26rem;
  border: 1.6px solid currentColor;
  border-radius: .2rem .2rem .65rem .65rem;
}
.tool-icon--watermark::after {
  position: absolute;
  width: .52rem;
  height: .28rem;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-.06rem) rotate(-45deg);
}

.tool-icon--qr { background: #dff0ff; color: #1c5b9e; }
.tool-icon--qr::before {
  width: 1.12rem;
  height: 1.12rem;
  border: 2px solid currentColor;
  border-radius: .16rem;
  background:
    linear-gradient(currentColor, currentColor) 2px 2px / 4px 4px no-repeat,
    linear-gradient(currentColor, currentColor) calc(100% - 2px) 2px / 4px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 2px calc(100% - 2px) / 4px 4px no-repeat,
    linear-gradient(currentColor, currentColor) calc(100% - 2px) calc(100% - 2px) / 4px 4px no-repeat;
}
.tool-icon--qr::after { display: none; }

.tool-icon--pdf { background: #fde6e8; color: #b42336; }
.tool-icon--pdf::before {
  width: 1.05rem;
  height: 1.25rem;
  border: 1.6px solid currentColor;
  border-radius: .2rem;
}
.tool-icon--pdf::after {
  position: absolute;
  width: .56rem;
  height: .12rem;
  background: currentColor;
  box-shadow: 0 -.24rem currentColor, 0 .24rem currentColor;
}

.tool-icon--timer { background: #e1f4ec; color: #1e7351; }
.tool-icon--timer::before {
  width: 1.22rem;
  aspect-ratio: 1;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}
.tool-icon--timer::after {
  position: absolute;
  width: .42rem;
  height: .42rem;
  border-left: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translate(.12rem, -.12rem) rotate(-15deg);
}

.tool-icon--random { background: #fef0d9; color: #9a5713; }
.tool-icon--random::before {
  width: .96rem;
  height: .72rem;
  margin-top: .34rem;
  border: 1.6px solid currentColor;
  border-radius: .2rem;
}
.tool-icon--random::after {
  position: absolute;
  width: .56rem;
  height: .46rem;
  margin-bottom: .5rem;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: .35rem .35rem 0 0;
}

/* 5 New Crisp Icons */
.tool-icon--crop { background: #e3f2fd; color: #1967a8; }
.tool-icon--crop::before {
  width: 1.05rem;
  height: 1.05rem;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translate(.08rem, -.08rem);
}
.tool-icon--crop::after {
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: translate(-.08rem, .08rem);
}

.tool-icon--text { background: #e8f5e9; color: #246c36; }
.tool-icon--text::before {
  width: 1.15rem;
  height: .14rem;
  background: currentColor;
  box-shadow: 0 -.32rem currentColor, 0 .32rem currentColor;
}
.tool-icon--text::after { display: none; }

.tool-icon--bill { background: #fff3e0; color: #b45309; }
.tool-icon--bill::before {
  width: 1.18rem;
  aspect-ratio: 1;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}
.tool-icon--bill::after {
  position: absolute;
  width: .55rem;
  height: .13rem;
  background: currentColor;
  box-shadow: 0 .22rem currentColor;
}

.tool-icon--exif { background: #f3e8ff; color: #7e22ce; }
.tool-icon--exif::before {
  width: 1.24rem;
  height: .94rem;
  border: 1.6px solid currentColor;
  border-radius: .24rem;
}
.tool-icon--exif::after {
  position: absolute;
  width: .48rem;
  aspect-ratio: 1;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.tool-icon--dev { background: #e2e8f0; color: #334155; }
.tool-icon--dev::before {
  width: .46rem;
  height: .46rem;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateX(-.28rem) rotate(45deg);
}
.tool-icon--dev::after {
  position: absolute;
  width: .46rem;
  height: .46rem;
  border-right: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  transform: translateX(.28rem) rotate(45deg);
}

/* === Tool Heading & Shared Grid === */
.tool-page { scroll-margin-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes toolPageIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  .tool-page:not([hidden]) {
    animation: toolPageIn .22s cubic-bezier(.22, 1, .36, 1) both;
  }
}

.is-copied {
  border-color: #86efac !important;
  background: #ecfdf5 !important;
  color: #15803d !important;
}

.tool-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  margin-block: clamp(.95rem, 2.2vw, 1.45rem) 1rem;
}

.tool-heading h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 810;
  letter-spacing: -.03em;
  line-height: 1.16;
}
.tool-heading p { margin-top: .38rem; color: var(--muted); text-wrap: pretty; font-size: .95rem; }

.tool-grid {
  display: grid;
  align-items: start;
  grid-template-areas: "editor result";
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(.85rem, 2vw, 1.25rem);
}
.tool-grid.wheel-grid { align-items: stretch; }

.tool-panel, .tool-editor {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: var(--surface);
  box-shadow: 0 .2rem .45rem #21396107, 0 .85rem 2.25rem #283d6910;
}
.tool-panel { grid-area: result; overflow: hidden; }
.tool-editor {
  grid-area: editor;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: clamp(1rem, 2.6vw, 1.45rem);
}

/* === Shared Micro Components === */
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: .25rem .68rem;
  border: 1px solid #d2dcf0;
  border-radius: .58rem;
  background: #f6f8ff;
  color: var(--ink);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 640;
  white-space: nowrap;
}
.chip-btn:hover:not(:disabled) { border-color: #9baae9; background: #ebf0ff; color: var(--blue); }
.chip-btn[aria-pressed="true"] { border-color: #3349c7; background: #e8eeff; color: var(--blue); }
.chip-btn--primary { border-color: #3349c7; background: #3349c7; color: #fff; }
.chip-btn--primary:hover:not(:disabled) { background: #263aa8; color: #fff; }
.chip-btn:disabled { opacity: .55; cursor: default; }

.chip-group { display: flex; flex-wrap: wrap; gap: .38rem; }

.sub-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: .25rem;
  padding: .24rem;
  border: 1px solid #dce3f2;
  border-radius: .76rem;
  background: #edf1fa;
  margin-bottom: .7rem;
  width: 100%;
}
.sub-tabs--compact { width: auto; margin-bottom: 0; }
.sub-tabs--wrap { flex-wrap: wrap; }
.sub-tabs button {
  flex: 1;
  min-height: 2.3rem;
  padding: .3rem .78rem;
  border: 0;
  border-radius: .56rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 680;
  white-space: nowrap;
}
.sub-tabs button[aria-pressed="true"] {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px #1724401a;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  min-height: 2.2rem;
}
.check-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--blue);
  cursor: pointer;
}
.check-row--spaced { margin-top: .55rem; }
.check-row--inline { margin-left: auto; }

.option-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  margin-bottom: .55rem;
}

.inline-feedback {
  margin-top: .42rem;
  padding: .38rem .65rem;
  border-radius: .55rem;
  background: #eef3ff;
  color: var(--blue);
  font-size: .83rem;
  font-weight: 600;
}

.panel-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .42rem;
}

.primary-button {
  min-height: 3.15rem;
  padding: .62rem 1rem;
  border: 1px solid #303fc0;
  border-radius: .85rem;
  background: linear-gradient(112deg, #4e62e9, #303fc3);
  color: #fff;
  box-shadow: 0 .25rem .65rem #2747be35, inset 0 1px #ffffff29;
  cursor: pointer;
  font-weight: 750;
}
.primary-button--compact { min-height: 2.55rem; padding: .42rem .88rem; font-size: .88rem; border-radius: .68rem; }
.primary-button:hover:not(:disabled):not([aria-disabled="true"]) { background: #3448c7; }
.primary-button:active:not(:disabled):not([aria-disabled="true"]) { background: #2b3da9; }
.primary-button:disabled, .primary-button[aria-disabled="true"] { background: #7282cc; border-color: #6979c2; box-shadow: none; cursor: default; }
.primary-button[aria-disabled="true"] { cursor: wait; }

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 2.55rem;
  padding: .4rem .78rem;
  border: 1px solid #d8e0f9;
  border-radius: .68rem;
  background: #f0f3ff;
  color: #3549ba;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}
.secondary-button:hover:not(:disabled) { background: #e4eaff; }
.secondary-button:disabled { opacity: .55; cursor: default; }

/* === Wheel Panel === */
.wheel-panel {
  display: grid;
  grid-template-rows: 1fr auto auto;
}

.wheel-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(1.75rem, 3.6vw, 2.35rem) clamp(1.5rem, 4.5vw, 2.4rem);
  background:
    radial-gradient(ellipse at 50% 42%, #5776e477, transparent 69%),
    radial-gradient(circle, #acbdf333 1px, transparent 1.5px),
    linear-gradient(138deg, #203464, #131e3d 74%);
  background-size: auto, 1.25rem 1.25rem, auto;
  background-position: center;
}
.wheel-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.wheel-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 21.6rem);
  aspect-ratio: 1;
  border: .39rem solid #edf2ff;
  border-radius: 50%;
  background: #dce7fa;
  box-shadow: 0 0 0 1px #a8bdfc, 0 0 0 .45rem #8eabfb36, 0 .9rem 1.8rem #080d2680;
}
.wheel-disc::before, .wheel-disc::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.wheel-disc::before { inset: -1.15rem; border: 1px dashed #bfd0ff60; }
.wheel-disc::after { inset: -1.7rem; border: 1px solid #a8bcff22; }

.wheel-disc canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.wheel-hub {
  position: absolute;
  display: grid;
  place-items: center;
  width: 20%;
  aspect-ratio: 1;
  padding: 0;
  border: .2rem solid #e2eaff;
  border-radius: 50%;
  background: linear-gradient(145deg, #4b67eb, #24389d);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 .3rem .95rem #0f1f5675, inset 0 1px #ffffff55;
  transition: transform .15s ease, filter .15s ease;
}
.wheel-hub:hover:not(:disabled) { transform: scale(1.06); filter: brightness(1.08); }
.wheel-hub:active:not(:disabled) { transform: scale(.96); }
.wheel-hub:disabled { opacity: .75; cursor: default; }

.wheel-pointer {
  position: absolute;
  top: -.72rem;
  width: 10.7%;
  aspect-ratio: 1;
  filter: drop-shadow(0 .2rem .24rem #09132b85);
  pointer-events: none;
}
.wheel-pointer::before, .wheel-pointer::after {
  content: "";
  position: absolute;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: .23rem;
}
.wheel-pointer::before { inset: 0; background: #fff5de; }
.wheel-pointer::after { inset: 2px 4px 4px; background: #efae52; }

.wheel-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: .95rem 1.2rem;
  border-top: 1px solid var(--line);
}
.result-copy { flex: 1; min-width: 8rem; }
.result-actions { display: flex; align-items: center; gap: .42rem; flex-wrap: wrap; }

.result-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.65rem;
  aspect-ratio: 1;
  border-radius: .78rem;
  background: #edf0ff;
  color: #475dcd;
}
.result-icon::before {
  content: "";
  width: 1.05rem;
  aspect-ratio: 1;
  border: .13rem solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor .19rem, transparent .21rem);
}

.result-label { color: var(--muted); font-size: .84rem; }
.result-value { font-size: 1.25rem; font-weight: 780; overflow-wrap: anywhere; white-space: pre-wrap; }
.wheel-result[data-picked] { background: #f8faff; }
.wheel-result[data-picked] .result-value { color: var(--blue); }

.wheel-history {
  padding: .8rem 1.2rem 1rem;
  border-top: 1px solid var(--line);
  background: #f9fbff;
}
.wheel-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: .86rem;
}
.wheel-history-head > div { display: flex; gap: .35rem; }
.wheel-history-list { display: flex; flex-wrap: wrap; gap: .38rem; }
.history-chip {
  padding: .2rem .58rem;
  border: 1px solid #d9e2f6;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
}

/* === Editor Form Controls === */
.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.editor-heading label, .editor-heading h2 { font-size: 1.1rem; font-weight: 760; }
.editor-heading span, .field-help { color: var(--muted); font-size: .88rem; }
.editor-heading span { padding: .1rem .55rem; border-radius: .45rem; background: #edf1f9; white-space: nowrap; }
.field-help { margin-block: .22rem .68rem; }

.tool-editor textarea, .group-size-field input {
  display: block;
  border: 1px solid #c9d4ea;
  border-radius: .8rem;
  background: #f8faff;
  color: var(--ink);
  font-size: .98rem;
}

.tool-editor textarea {
  flex: 1;
  width: 100%;
  min-height: 9.2rem;
  padding: .72rem .85rem;
  resize: vertical;
  line-height: 1.48;
}
.tool-editor textarea::placeholder { color: var(--muted); }
.tool-editor [aria-invalid="true"] { border-color: #b12c43; }
.field-error { margin-top: .4rem; color: #a22137; font-size: .86rem; font-weight: 560; }

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem .65rem;
  margin-block: .2rem .45rem;
}
.editor-actions-left, .editor-actions-right {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
}
.editor-actions button {
  min-height: 2.35rem;
  padding: 0 .3rem;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 680;
}
.editor-actions button:hover:not(:disabled) { text-decoration: underline; }
.editor-actions button:disabled { color: var(--muted); cursor: default; opacity: .6; }

.preset-save-inline {
  display: flex;
  gap: .35rem;
  margin-bottom: .55rem;
}
.preset-save-inline input {
  flex: 1;
  min-width: 0;
  min-height: 2.2rem;
  padding: .25rem .65rem;
  border: 1px solid #b9c8ec;
  border-radius: .58rem;
  background: #fff;
  font-size: .86rem;
}

.preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin-bottom: .65rem;
}
.preset-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d2dcf0;
  border-radius: 999px;
  background: #f5f8ff;
  overflow: hidden;
}
.preset-chip button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  padding: .2rem .55rem;
}
.preset-chip button:hover:not(:disabled) { background: #e8efff; color: var(--blue); }
.preset-chip .preset-del {
  min-width: 28px;
  padding-inline: .32rem;
  color: var(--muted);
  border-left: 1px solid #dce4f4;
}
.preset-chip .preset-del:hover:not(:disabled) { background: #fdecee; color: #a22137; }

/* === Groups Tool === */
.group-size-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.group-size-field label { font-size: .98rem; font-weight: 740; }
.group-size-field .field-help { margin: .15rem 0 0; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9d4ea;
  border-radius: .74rem;
  background: #f8faff;
  overflow: hidden;
  flex-shrink: 0;
}
.stepper button {
  width: 2.45rem;
  height: 2.65rem;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 760;
  cursor: pointer;
}
.stepper button:hover { background: #e8eeff; }
.stepper input {
  width: 3.3rem;
  height: 2.65rem;
  border: 0;
  border-inline: 1px solid #dce4f4;
  border-radius: 0;
  background: #fff;
  text-align: center;
  font-weight: 730;
  appearance: textfield;
}
.stepper input::-webkit-inner-spin-button { appearance: none; }

#group-button { margin-top: .85rem; }

.group-panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem .9rem;
  padding: 1.1rem clamp(1rem, 2.8vw, 1.45rem);
  border-bottom: 1px solid var(--line);
}
.group-panel-heading h2 { font-size: 1.12rem; font-weight: 760; }
.group-panel-heading p { margin-top: .16rem; color: var(--muted); font-size: .88rem; }

.copy-status {
  padding: .6rem clamp(1rem, 2.8vw, 1.45rem) 0;
  background: #f8faff;
  color: var(--blue);
  font-size: .86rem;
  font-weight: 600;
}

.group-preview {
  display: grid;
  place-items: center;
  min-height: 20rem;
  padding: 2.1rem 1rem;
  background:
    radial-gradient(ellipse at center, #e4e9ff98, transparent 70%),
    radial-gradient(circle, #c5d0ed72 1px, transparent 1.5px),
    #f5f7fc;
  background-size: auto, 1.17rem 1.17rem, auto;
  background-position: center;
}
.preview-cards { display: flex; align-items: center; }
.preview-cards span {
  position: relative;
  width: clamp(4.6rem, 13vw, 7rem);
  aspect-ratio: .84;
  margin-inline: -.24rem;
  transform: translateY(.45rem) rotate(-11deg);
  border: 1px solid #e2e7f5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .7rem 1.25rem #2c438520;
  --preview-color: #81a1ee;
}
.preview-cards span:nth-child(2) { z-index: 1; transform: translateY(-.55rem); --preview-color: #8bbdb3; }
.preview-cards span:nth-child(3) { transform: translateY(.45rem) rotate(11deg); --preview-color: #aa9cea; }
.preview-cards span::before, .preview-cards span::after { content: ""; position: absolute; left: 18%; border-radius: 1rem; }
.preview-cards span::before { top: 18%; width: 42%; height: .48rem; background: var(--preview-color); }
.preview-cards span::after { top: 43%; width: 63%; height: .32rem; background: #e6ebf7; box-shadow: 0 .83rem #e6ebf7, 0 1.66rem #e6ebf7; }

.group-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.6rem), 1fr));
  gap: .75rem;
  padding: clamp(.85rem, 2.8vw, 1.45rem);
  background: #f8faff;
}
.group-card {
  --group-tone: #3958b7;
  --group-tint: #edf2ff;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e7f5;
  border-radius: .9rem;
  background: var(--surface);
  box-shadow: 0 .25rem .65rem #283d690a;
}
.group-card:nth-child(4n + 2) { --group-tone: #32695d; --group-tint: #eaf5f1; }
.group-card:nth-child(4n + 3) { --group-tone: #6846a3; --group-tint: #f1edfb; }
.group-card:nth-child(4n + 4) { --group-tone: #87512d; --group-tint: #fbf0e5; }

.group-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .15rem .35rem;
  padding: .58rem .75rem;
  background: var(--group-tint);
  color: var(--group-tone);
}
.group-card-heading h3 { font-size: .96rem; font-weight: 740; }
.group-card-heading span { font-size: .82rem; white-space: nowrap; }

.group-members {
  display: grid;
  gap: .38rem;
  padding: .68rem .76rem .84rem;
  margin: 0;
  list-style: none;
}
.group-members li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  padding-inline-start: .72rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.group-members li::before {
  content: "";
  position: absolute;
  inset-block-start: .55em;
  inset-inline-start: 0;
  width: .25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--group-tone);
}
.leader-badge {
  padding: .05rem .4rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: .72rem;
  font-weight: 720;
}

.site-footer {
  padding-block: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; align-items: center; gap: 1rem; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  color: var(--ink);
  font-weight: 720;
}

/* === Global Anywhere Drag-and-Drop Smart File Router === */
.global-drop-cue {
  position: fixed;
  z-index: 1250;
  inset: 1rem;
  display: grid;
  place-content: center;
  gap: .35rem;
  text-align: center;
  border: 2.5px dashed #3349c7;
  border-radius: 1.5rem;
  background: rgba(244, 247, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: var(--ink);
  pointer-events: none;
  box-shadow: 0 1.2rem 3rem rgba(23, 36, 64, .18);
}
.global-drop-cue strong { font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: var(--blue); }
.global-drop-cue span { font-size: .92rem; color: var(--muted); }

.global-drop-overlay {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.global-drop-card {
  width: min(100%, 38rem);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1rem, 3vw, 1.45rem);
  border: 1px solid #d5dff2;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, .25);
}
.global-drop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .95rem;
}
.global-drop-head h2 { font-size: 1.12rem; font-weight: 760; line-height: 1.3; }
.global-drop-head p {
  margin-top: .22rem;
  color: var(--muted);
  font-size: .84rem;
  overflow-wrap: anywhere;
}
.global-drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
  gap: .55rem;
}
.global-drop-action {
  display: grid;
  gap: .2rem;
  padding: .75rem .88rem;
  border: 1px solid #d8e2f6;
  border-radius: .9rem;
  background: #f8faff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.global-drop-action:hover {
  border-color: var(--blue);
  background: #edf2ff;
  transform: translateY(-1px);
}
.global-drop-action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
}
.global-drop-action strong { font-size: .94rem; font-weight: 740; color: var(--ink); }
.global-drop-action em {
  font-style: normal;
  padding: .06rem .42rem;
  border-radius: 999px;
  background: #3349c7;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}
.global-drop-action small { color: var(--muted); font-size: .79rem; line-height: 1.35; }

/* === Account Quota Pill, Inline Pro Badges & Coin Gate Modals === */
.quota-pill-btn {
  border-color: #d9c48a;
  background: linear-gradient(135deg, #fffdf5, #fff7df);
  color: #854d0e;
}
.quota-pill-btn:hover { border-color: #ca8a04; color: #713f12; background: #fef3c7; }
.quota-pill-btn.is-signed-in {
  border-color: #c7d2fe;
  background: linear-gradient(135deg, #f5f7ff, #eef2ff);
  color: #2f4599;
}

.pro-badge-inline {
  display: flex;
  justify-content: center;
  margin-top: .5rem;
}
.pro-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .65rem;
  margin-bottom: .55rem;
}
.pro-badge-row .compress-queue-summary { margin-bottom: 0; }

.pro-quota-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .66rem;
  border: 1px solid #d5dff4;
  border-radius: 999px;
  background: #f4f7ff;
  color: #3349c7;
  font-size: .77rem;
  font-weight: 680;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color .15s ease, background-color .15s ease;
}
.pro-quota-badge:hover { border-color: #8ea1e8; background: #e8efff; }
.pro-quota-badge[data-state="coin"] {
  border-color: #f3d08a;
  background: #fffbeb;
  color: #92400e;
}
.pro-quota-badge[data-state="locked"] {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}
.pro-quota-badge[data-state="radiant"] {
  border-color: #6ee7b7;
  background: linear-gradient(115deg, #1b2259, #3c2e82);
  color: #fef08a;
}

.tools-account-card { width: min(100%, 43rem); padding: 1.15rem 1.35rem; }
.tools-gate-card { width: min(100%, 36rem); }

.tools-pass-hero {
  display: grid;
  gap: .62rem;
  padding: .82rem 1rem;
  border: 1px solid #dbe4f5;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8faff, #eef3ff);
  margin-bottom: .75rem;
}
.tools-pass-hero[data-signed-in="true"] {
  background: linear-gradient(135deg, #172440, #23386b);
  border-color: #3349c7;
  color: #fff;
}
.tools-pass-hero[data-signed-in="true"][data-tier="gold"] {
  background: linear-gradient(135deg, #4b310a, #8a5c14);
  border-color: #facc15;
}
.tools-pass-hero[data-signed-in="true"][data-tier="radiant"] {
  background: linear-gradient(125deg, #161d4a, #472d8c 55%, #135d66);
  border-color: #6ee7b7;
}
.tools-pass-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
}
.tools-pass-hero strong { display: block; font-size: 1rem; font-weight: 760; }
.tools-pass-hero small { display: block; margin-top: .18rem; font-size: .82rem; opacity: .86; line-height: 1.45; }
.tools-pass-bal {
  text-align: right;
  padding: .42rem .78rem;
  border-radius: .78rem;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
}
.tools-pass-bal span { display: block; font-size: .72rem; opacity: .85; }
.tools-pass-bal strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.tools-pass-ops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.tools-pass-hero[data-signed-in="true"] .chip-btn {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.tools-pass-hero[data-signed-in="true"] .chip-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

.tools-quota-subhead {
  font-size: .88rem;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: .42rem;
}
.tools-quota-list {
  display: grid;
  gap: .36rem;
  margin: 0 0 .68rem;
  padding: 0;
  list-style: none;
}
.tools-quota-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .75rem;
  padding: .48rem .74rem;
  border: 1px solid #e1e8f5;
  border-radius: .82rem;
  background: #f9fbff;
}
.tools-quota-list li > div:first-child { min-width: 0; flex: 1 1 14rem; }
.tools-quota-list strong { display: block; font-size: .88rem; color: var(--ink); }
.tools-quota-list small { display: block; margin-top: .12rem; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.tools-quota-right { display: flex; align-items: center; gap: .42rem; flex-shrink: 0; }

.tools-gate-body { display: grid; gap: .8rem; }
.tools-gate-summary {
  display: grid;
  gap: .42rem;
  padding: .8rem .95rem;
  border: 1px solid #dce4f4;
  border-radius: .9rem;
  background: #f8faff;
  font-size: .88rem;
}
.tools-gate-summary > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem .65rem;
}
.tools-gate-summary span { color: var(--muted); }
.tools-gate-summary strong { color: var(--ink); font-weight: 720; }
.tools-gate-summary .coin-cost { color: #b45309; font-size: 1rem; }

.tools-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.tools-gate-actions .primary-button { flex: 1 1 12rem; text-align: center; display: inline-flex; align-items: center; justify-content: center; }

.tools-earn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}
@media (max-width: 34rem) {
  .tools-earn-grid { grid-template-columns: minmax(0, 1fr); }
}
.tools-earn-grid a {
  display: grid;
  gap: .18rem;
  padding: .72rem .8rem;
  border: 1px solid #dbe4f5;
  border-radius: .85rem;
  background: #f8faff;
  transition: border-color .15s ease, background-color .15s ease;
}
.tools-earn-grid a:hover { border-color: var(--blue); background: #edf2ff; }
.tools-earn-grid strong { font-size: .9rem; color: var(--ink); }
.tools-earn-grid small { font-size: .78rem; color: var(--muted); }

.tools-pass-center-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem .75rem;
  padding: .68rem .92rem;
  border: 1px solid #cbd7f6;
  border-radius: .85rem;
  background: linear-gradient(120deg, #f0f5ff, #eef2ff);
  color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.tools-pass-center-bar:hover {
  border-color: var(--blue);
  box-shadow: 0 .25rem .75rem rgba(51, 73, 199, .12);
}
.tools-pass-center-bar strong { font-size: .88rem; color: var(--blue); }
.tools-pass-center-bar span { font-size: .78rem; color: var(--muted); }

.export-skin-btn { white-space: nowrap; }

.pdf-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.pdf-p2i-progress {
  margin: .75rem auto .2rem;
  padding: 0 1rem;
}

/* === Tier Discount Strip & Usage Ledger inside Account Modal === */
.tools-tier-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
  margin-bottom: .72rem;
}
.tools-tier-strip span {
  padding: .18rem .54rem;
  border: 1px solid #dbe4f5;
  border-radius: 999px;
  background: #f5f8ff;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 620;
}
.tools-tier-strip span.is-current {
  border-color: #eab308;
  background: #fef9c3;
  color: #854d0e;
  font-weight: 760;
}

.tools-recent-box {
  margin-bottom: .72rem;
  border: 1px solid #e1e8f5;
  border-radius: .82rem;
  background: #f9fbff;
  overflow: hidden;
}
.tools-recent-empty {
  padding: .68rem .85rem;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}
.tools-recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 9.8rem;
  overflow-y: auto;
}
.tools-recent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .46rem .76rem;
  border-bottom: 1px solid #e7edf8;
}
.tools-recent-list li:last-child { border-bottom: 0; }
.tools-recent-list li > div { display: flex; align-items: baseline; gap: .5rem; min-width: 0; flex-wrap: wrap; }
.tools-recent-list strong { font-size: .82rem; color: var(--ink); font-weight: 680; }
.tools-recent-list small { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tools-recent-pill {
  flex: none;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 720;
}
.tools-recent-pill[data-mode="free"] { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tools-recent-pill[data-mode="coin"] { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.tools-recent-pill[data-mode="radiant"] { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }

/* === ID Card Front/Back A4 Mode & PDF Compress Stage === */
.sub-tabs--compact { margin-bottom: .55rem; }
.wm-idcard-box { display: grid; gap: .55rem; }
.wm-idcard-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
.image-picker--mini {
  padding: .72rem .65rem;
  min-height: 4.9rem;
  gap: .22rem;
}
.image-picker--mini strong { font-size: .83rem; }
.image-picker--mini small { font-size: .74rem; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wm-idcard-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .85rem;
}
.wm-a4-pdf-btn { width: 100%; justify-content: center; }

.is-muted-field { opacity: .52; }
.is-muted-field input { cursor: not-allowed; }

.pdf-cmp-stage {
  display: grid;
  place-content: center;
  min-height: 15rem;
  padding: 1.4rem;
  background: #f8faff;
}
.pdf-cmp-progress {
  width: min(100%, 24rem);
  display: grid;
  gap: .5rem;
  text-align: center;
}
.pdf-cmp-bar {
  height: .55rem;
  border-radius: 999px;
  background: #e2e8f6;
  overflow: hidden;
}
.pdf-cmp-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3349c7, #5b73f5);
  transition: width .22s ease;
}
.pdf-cmp-progress small { font-size: .84rem; color: var(--muted); }
.pdf-cmp-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(8.5rem, 1fr));
  gap: .75rem;
  width: min(100%, 24rem);
}
.pdf-cmp-metric {
  display: grid;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid #dbe4f5;
  border-radius: .95rem;
  background: #fff;
  text-align: center;
}
.pdf-cmp-metric span { font-size: .8rem; color: var(--muted); }
.pdf-cmp-metric strong { font-size: 1.25rem; font-weight: 780; color: var(--ink); font-variant-numeric: tabular-nums; }
.pdf-cmp-metric--after { border-color: #93c5fd; background: #eff6ff; }
.pdf-cmp-metric--after strong { color: var(--blue); }

/* === Tablet & Mobile Horizontal Swipeable Tool Nav === */
@media (max-width: 58rem) {
  .launcher-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .36rem;
  }
  .launcher-cats {
    grid-column: 1;
    grid-row: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
    padding-bottom: .05rem;
  }
  .launcher-cats::-webkit-scrollbar { display: none; }
  .launcher-actions { display: contents; }
  .mobile-expand-btn {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }
  .mobile-search-btn {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
  }
  .launcher-expand-btn { display: none; }
  .launcher-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    display: none;
  }
  .launcher-bar[data-search-open="true"] .launcher-search { display: block; }
  .launcher-search kbd { display: none; }
  .tool-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: max-content;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: .28rem;
    padding: .3rem;
    -webkit-overflow-scrolling: touch;
  }
  .tool-list[data-few="true"] {
    grid-template-rows: auto;
  }
  .tool-list[data-mobile-expanded="true"] {
    grid-auto-flow: row;
    grid-template-rows: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
  }
  .tool-list::-webkit-scrollbar { display: none; }
  .launcher-cats.can-scroll-right,
  .tool-list:not([data-mobile-expanded="true"]).can-scroll-right {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
  }
  .launcher-cats.can-scroll-left,
  .tool-list:not([data-mobile-expanded="true"]).can-scroll-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 100%);
  }
  .launcher-cats.can-scroll-left.can-scroll-right,
  .tool-list:not([data-mobile-expanded="true"]).can-scroll-left.can-scroll-right {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 26px), transparent 100%);
  }
  .tool-list > li { scroll-snap-align: start; }
  .tool-entry { padding: .36rem 1.32rem .36rem .42rem; gap: .34rem; }
  .tool-entry strong { font-size: .81rem; }
  .tool-entry small { display: none; }
  .tool-icon { width: 1.62rem; border-radius: .46rem; }
  .tool-pin { top: 50%; right: .08rem; width: 1.24rem; height: 1.24rem; font-size: .72rem; transform: translateY(-50%); opacity: .75; }
}

@media (max-width: 46rem) {
  .layout { width: min(calc(100% - 1.3rem), 72rem); }
  .header-inner { min-height: 3.5rem; gap: .32rem; }
  .identity { font-size: .95rem; gap: .4rem; }
  .identity-icon { width: 2rem; border-radius: .62rem; }
  .identity img { width: 1.52rem; height: 1.52rem; }
  .header-links { gap: .28rem; }
  .header-links a { font-size: .78rem; min-height: 2.15rem; }
  .header-links .catalog-link { display: none; }
  .header-links .feedback-link { min-height: 2rem; padding-inline: .48rem; }
  .theme-toggle-btn { width: 1.95rem; height: 1.95rem; }
  .header-links .site-account-pill { min-height: 2rem; padding-inline: .48rem; font-size: .76rem; }
  .header-links .site-account-pill .site-account-label { max-width: 4.2rem; }
  .tool-grid { grid-template-areas: "editor" "result"; grid-template-columns: minmax(0, 1fr); }
  .tool-editor textarea { flex: auto; }
  .wheel-stage { padding-inline: clamp(1.2rem, 5vw, 2.2rem); }
  .wheel-disc::before { inset: -.85rem; }
  .wheel-disc::after { inset: -1.3rem; }
  .group-preview { min-height: 13rem; }
  .wm-idcard-slots { grid-template-columns: minmax(0, 1fr); }

  /* iOS Safari auto-zoom guard: >= 16px on focused form fields */
  #main input[type="text"]:not(.rmb-input-lg),
  #main input[type="number"],
  #main input[type="search"],
  #main input[type="date"],
  #main select,
  #main textarea {
    font-size: 16px;
  }
  #main input::placeholder,
  #main textarea::placeholder {
    font-size: 14px;
  }
}

@media (max-width: 22.5rem) {
  .identity { font-size: .88rem; gap: .28rem; }
  .identity-icon { width: 1.85rem; }
  .identity img { width: 1.4rem; height: 1.4rem; }
  .header-links { gap: .2rem; }
  .header-links .feedback-link { padding-inline: .36rem; font-size: .73rem; }
  .theme-toggle-btn { width: 1.8rem; height: 1.8rem; }
  .header-links .site-account-pill { padding-inline: .38rem; font-size: .72rem; }
  .header-links .site-account-pill .site-account-label { max-width: 3rem; }
}

/* === Full Obsidian Dark Mode (Synced with XinHammer Brand Ecosystem) === */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ecf2ff;
  --muted: #98a8c7;
  --line: rgba(148, 163, 184, .18);
  --blue: #7b9aff;
  --surface: #131c31;
  --canvas: #0c1222;
}

[data-theme="dark"] .site-header {
  background: rgba(12, 18, 34, .84);
  border-bottom-color: rgba(148, 163, 184, .14);
}
[data-theme="dark"] .identity-icon {
  background: rgba(99, 130, 255, .14);
  border-color: rgba(123, 154, 255, .28);
}
[data-theme="dark"] .identity-title {
  background: linear-gradient(102deg, #ffffff 18%, #bfdbfe 66%, #86b3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .header-links .feedback-link,
[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .header-links .site-account-pill {
  background: rgba(22, 33, 56, .92);
  border-color: rgba(148, 163, 184, .22);
  color: var(--ink);
}
[data-theme="dark"] .header-links .feedback-link:hover,
[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .header-links .site-account-pill:hover {
  background: rgba(34, 49, 82, .96);
  border-color: rgba(123, 154, 255, .5);
  color: #fff;
}

[data-theme="dark"] .cat-pill,
[data-theme="dark"] .cat-pill.launcher-expand-btn[aria-expanded="true"],
[data-theme="dark"] .launcher-search input,
[data-theme="dark"] .chip-btn,
[data-theme="dark"] .secondary-button,
[data-theme="dark"] .sub-tabs button,
[data-theme="dark"] .limit-presets button {
  background: #17223a;
  border-color: rgba(148, 163, 184, .22);
  color: #cbd5e1;
}
[data-theme="dark"] .cat-pill:hover,
[data-theme="dark"] .chip-btn:hover:not(:disabled),
[data-theme="dark"] .secondary-button:hover:not(:disabled),
[data-theme="dark"] .sub-tabs button:hover,
[data-theme="dark"] .limit-presets button:hover {
  background: #203052;
  border-color: rgba(123, 154, 255, .5);
  color: #fff;
}
[data-theme="dark"] .cat-pill[aria-pressed="true"],
[data-theme="dark"] .cat-pill[aria-expanded="true"],
[data-theme="dark"] .sub-tabs button[aria-pressed="true"],
[data-theme="dark"] .limit-presets button[aria-pressed="true"],
[data-theme="dark"] .chip-btn[aria-pressed="true"],
[data-theme="dark"] .chip-btn--primary {
  background: #3349c7;
  border-color: #5b73f5;
  color: #fff;
}
[data-theme="dark"] .quota-pill-btn {
  background: linear-gradient(120deg, rgba(120, 74, 15, .45), rgba(146, 94, 18, .38));
  border-color: rgba(251, 191, 36, .42);
  color: #fde68a;
}
[data-theme="dark"] .quota-pill-btn.is-signed-in {
  background: linear-gradient(120deg, rgba(49, 71, 185, .45), rgba(67, 56, 202, .4));
  border-color: rgba(129, 140, 248, .55);
  color: #e0e7ff;
}
[data-theme="dark"] .launcher-search kbd {
  background: #0f172a;
  border-color: rgba(148, 163, 184, .24);
  color: var(--muted);
}

[data-theme="dark"] .tool-list {
  background: #11192c;
  border-color: rgba(148, 163, 184, .18);
}
[data-theme="dark"] .tool-entry[data-tool-link]:hover {
  background: rgba(123, 154, 255, .12);
}
[data-theme="dark"] .tool-entry[data-tool-link][aria-current] {
  background: linear-gradient(115deg, #354fc7, #27398a);
  border-color: #6382ff;
  box-shadow: 0 .28rem .85rem rgba(15, 23, 42, .55), inset 0 1px rgba(255, 255, 255, .16);
}
[data-theme="dark"] .tool-icon {
  background: rgba(148, 163, 184, .14);
}
[data-theme="dark"] .tool-entry[aria-current] .tool-icon {
  background: rgba(255, 255, 255, .18);
}

[data-theme="dark"] .tool-editor,
[data-theme="dark"] .tool-panel,
[data-theme="dark"] .group-card,
[data-theme="dark"] .global-drop-card,
[data-theme="dark"] .pdf-cmp-metric,
[data-theme="dark"] .selected-image,
[data-theme="dark"] .file-queue-item,
[data-theme="dark"] .compress-q-item,
[data-theme="dark"] .image-metric,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .diff-pane,
[data-theme="dark"] .swatch-card,
[data-theme="dark"] .exif-meta-list li,
[data-theme="dark"] .bill-entry,
[data-theme="dark"] .transfer-card {
  background: #131c31;
  border-color: rgba(148, 163, 184, .18);
  color: var(--ink);
}
[data-theme="dark"] .group-panel-heading,
[data-theme="dark"] .wheel-result,
[data-theme="dark"] .image-comparison,
[data-theme="dark"] .compress-queue-wrap,
[data-theme="dark"] .group-results,
[data-theme="dark"] .pdf-cmp-stage,
[data-theme="dark"] .tools-gate-summary,
[data-theme="dark"] .tools-quota-list li,
[data-theme="dark"] .tools-recent-box,
[data-theme="dark"] .tools-earn-grid a,
[data-theme="dark"] .global-drop-action {
  background: #10182b;
  border-color: rgba(148, 163, 184, .18);
}
[data-theme="dark"] .tools-recent-list li { border-bottom-color: rgba(148, 163, 184, .14); }
[data-theme="dark"] .tools-tier-strip span {
  background: #17223a;
  border-color: rgba(148, 163, 184, .22);
  color: #cbd5e1;
}
[data-theme="dark"] .tools-tier-strip span.is-current {
  background: rgba(234, 179, 8, .22);
  border-color: #facc15;
  color: #fef08a;
}
[data-theme="dark"] .tools-pass-hero:not([data-signed-in="true"]) {
  background: linear-gradient(135deg, #162139, #1b2948);
  border-color: rgba(123, 154, 255, .28);
}
[data-theme="dark"] .global-drop-action:hover,
[data-theme="dark"] .tools-earn-grid a:hover {
  background: #1c2a49;
  border-color: #6d8bff;
}
[data-theme="dark"] .tools-pass-center-bar {
  background: linear-gradient(120deg, rgba(49, 71, 185, .28), rgba(67, 56, 202, .22));
  border-color: rgba(123, 154, 255, .36);
  color: var(--ink);
}
[data-theme="dark"] .tools-pass-center-bar:hover {
  border-color: #7b9aff;
  background: linear-gradient(120deg, rgba(59, 91, 219, .36), rgba(79, 70, 229, .28));
}
[data-theme="dark"] .tools-pass-center-bar strong { color: #c7d6ff; }
[data-theme="dark"] .tools-pass-center-bar span { color: #cbd5e1; }
[data-theme="dark"] .pdf-cmp-bar { background: #1e2c4a; }
[data-theme="dark"] .global-drop-cue {
  background: rgba(15, 23, 42, .88);
  border-color: #6d8bff;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .size-control,
[data-theme="dark"] .text-input,
[data-theme="dark"] .select-input {
  background: #0e1627;
  border-color: rgba(148, 163, 184, .26);
  color: var(--ink);
}
[data-theme="dark"] .size-control input { background: transparent; border-color: transparent; }
[data-theme="dark"] .image-picker {
  background: #10182b;
  border-color: rgba(123, 154, 255, .36);
  color: var(--ink);
}
[data-theme="dark"] .image-picker:hover:not(:disabled),
[data-theme="dark"] .image-picker[data-dragging] {
  background: #17233f;
  border-color: #7b9aff;
}
[data-theme="dark"] .image-preview,
[data-theme="dark"] .wm-stage,
[data-theme="dark"] .crop-stage,
[data-theme="dark"] .exif-preview-box,
[data-theme="dark"] .group-preview {
  background: #0e1627;
  border-color: rgba(148, 163, 184, .18);
}
[data-theme="dark"] .image-metric[aria-pressed="true"] {
  background: rgba(51, 73, 199, .24);
  border-color: #6d8bff;
}
[data-theme="dark"] .pro-quota-badge[data-state="free"] {
  background: rgba(51, 73, 199, .22);
  border-color: rgba(123, 154, 255, .42);
  color: #c7d6ff;
}
[data-theme="dark"] .pro-quota-badge[data-state="coin"] {
  background: rgba(180, 83, 9, .24);
  border-color: rgba(251, 191, 36, .45);
  color: #fde68a;
}
[data-theme="dark"] .pro-quota-badge[data-state="locked"] {
  background: rgba(154, 52, 18, .28);
  border-color: rgba(251, 146, 60, .48);
  color: #fed7aa;
}
[data-theme="dark"] .tools-recent-pill[data-mode="free"] {
  background: rgba(6, 95, 70, .35);
  border-color: rgba(52, 211, 153, .4);
  color: #6ee7b7;
}
[data-theme="dark"] .tools-recent-pill[data-mode="coin"] {
  background: rgba(146, 64, 14, .35);
  border-color: rgba(251, 191, 36, .4);
  color: #fde68a;
}
[data-theme="dark"] .tools-recent-pill[data-mode="radiant"] {
  background: rgba(55, 48, 163, .42);
  border-color: rgba(165, 180, 252, .45);
  color: #e0e7ff;
}
[data-theme="dark"] .savings-badge {
  background: rgba(6, 95, 70, .38);
  border-color: rgba(52, 211, 153, .45);
  color: #6ee7b7;
}
[data-theme="dark"] .selected-banner {
  background: rgba(51, 73, 199, .2);
  border-color: rgba(123, 154, 255, .36);
  color: #dbeafe;
}
[data-theme="dark"] .pdf-cmp-metric--after {
  background: rgba(51, 73, 199, .22);
  border-color: #6d8bff;
}
[data-theme="dark"] .pdf-cmp-bar { background: #1e2c4a; }
[data-theme="dark"] .xh-toast {
  background: #e2e8f0;
  color: #0f172a;
}

/* === Wave 6: Keyboard Search Highlight & Drag-to-Reorder === */
.tool-entry.is-search-focus {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  background: #edf2ff;
}
[data-theme="dark"] .tool-entry.is-search-focus {
  outline-color: #86a6ff;
  background: rgba(99, 130, 255, .24);
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.35rem;
  min-height: 2rem;
  color: #94a3b8;
  font-size: 1.05rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: color .14s ease;
}
.drag-handle:hover { color: var(--blue); }
.drag-handle:active { cursor: grabbing; }
.file-queue-item.is-dragging {
  opacity: .48;
  border-style: dashed;
  border-color: var(--blue);
}
.file-queue-item.is-drag-over {
  border-color: var(--blue);
  box-shadow: 0 -2px 0 0 var(--blue), 0 4px 14px rgba(51, 73, 199, .18);
}

/* === Wave 6: Complete 13-Tool Dark Mode UI & Interactive Feel === */
:root[data-theme="dark"] {
  accent-color: #7b9aff;
  scrollbar-color: #334155 transparent;
}
[data-theme="dark"] :focus-visible {
  outline-color: #86a6ff;
}
[data-theme="dark"] .global-drop-overlay {
  background: rgba(4, 8, 18, .72);
}
[data-theme="dark"] .global-drop-card {
  border-color: rgba(148, 163, 184, .24);
  box-shadow: 0 1.4rem 3.5rem rgba(2, 6, 23, .72);
}
[data-theme="dark"] .primary-button {
  background: linear-gradient(135deg, #4361ee, #3349c7);
  border-color: #5b73f5;
  color: #fff;
  box-shadow: 0 4px 14px rgba(51, 73, 199, .34);
}
[data-theme="dark"] .primary-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #5270ff, #3d56df);
  box-shadow: 0 6px 20px rgba(82, 112, 255, .44);
}
[data-theme="dark"] .primary-button:disabled {
  background: #1e2942;
  border-color: rgba(148, 163, 184, .18);
  color: #64748b;
  box-shadow: none;
}
[data-theme="dark"] .cat-pill:hover,
[data-theme="dark"] .chip-btn:hover:not(:disabled),
[data-theme="dark"] .secondary-button:hover:not(:disabled),
[data-theme="dark"] .tool-entry[data-tool-link]:hover {
  box-shadow: 0 2px 10px rgba(59, 91, 219, .2);
}
[data-theme="dark"] .field-error { color: #fca5a5; }
[data-theme="dark"] .inline-feedback {
  background: rgba(59, 91, 219, .24);
  color: #c7d6ff;
}
[data-theme="dark"] .copy-status {
  background: #10182b;
  color: #93b4ff;
}
[data-theme="dark"] .tool-editor [aria-invalid="true"] { border-color: #f87171; }
[data-theme="dark"] .editor-heading span {
  background: rgba(123, 154, 255, .16);
  color: #cbd5e1;
}
[data-theme="dark"] .tool-editor textarea,
[data-theme="dark"] .group-size-field input,
[data-theme="dark"] .preset-save-inline input {
  background: #0e1627;
  border-color: rgba(148, 163, 184, .26);
  color: var(--ink);
}
[data-theme="dark"] .tool-editor textarea:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus {
  border-color: #7b9aff;
  box-shadow: 0 0 0 3px rgba(123, 154, 255, .18);
}
[data-theme="dark"] .editor-actions button { color: #93b4ff; }
[data-theme="dark"] .editor-actions button:disabled { color: #64748b; }

/* Wheel & History Dark Mode */
[data-theme="dark"] .sub-tabs {
  background: #0e1627;
  border-color: rgba(148, 163, 184, .2);
}
[data-theme="dark"] .wheel-disc {
  background: #1a2747;
  border-color: rgba(148, 163, 184, .28);
}
[data-theme="dark"] .result-icon {
  background: rgba(123, 154, 255, .18);
  color: #93b4ff;
}
[data-theme="dark"] .wheel-result[data-picked] {
  background: #14203b;
}
[data-theme="dark"] .wheel-history {
  background: #10182b;
  border-top-color: rgba(148, 163, 184, .18);
}
[data-theme="dark"] .history-chip {
  background: #17223a;
  border-color: rgba(148, 163, 184, .24);
  color: #e2e8f0;
}
[data-theme="dark"] .preset-chip {
  background: #17223a;
  border-color: rgba(148, 163, 184, .24);
}
[data-theme="dark"] .preset-chip button { color: #e2e8f0; }
[data-theme="dark"] .preset-chip button:hover:not(:disabled) {
  background: rgba(123, 154, 255, .18);
  color: #fff;
}
[data-theme="dark"] .preset-chip .preset-del {
  border-left-color: rgba(148, 163, 184, .2);
  color: #94a3b8;
}
[data-theme="dark"] .preset-chip .preset-del:hover:not(:disabled) {
  background: rgba(239, 68, 68, .24);
  color: #fca5a5;
}

/* Groups & Stepper Dark Mode */
[data-theme="dark"] .stepper {
  background: #0e1627;
  border-color: rgba(148, 163, 184, .26);
}
[data-theme="dark"] .stepper button { color: #93b4ff; }
[data-theme="dark"] .stepper button:hover { background: rgba(123, 154, 255, .18); }
[data-theme="dark"] .group-preview {
  background:
    radial-gradient(ellipse at center, rgba(67, 97, 238, .18), transparent 70%),
    radial-gradient(circle, rgba(148, 163, 184, .14) 1px, transparent 1.5px),
    #0e1627;
  background-size: auto, 1.17rem 1.17rem, auto;
}
[data-theme="dark"] .preview-cards span {
  background: #16223b;
  border-color: rgba(148, 163, 184, .24);
  box-shadow: 0 .7rem 1.4rem rgba(2, 6, 23, .55);
}
[data-theme="dark"] .preview-cards span::after {
  background: #243456;
  box-shadow: 0 .83rem #243456, 0 1.66rem #243456;
}
[data-theme="dark"] .group-card {
  --group-tone: #93b4ff;
  --group-tint: rgba(59, 130, 246, .16);
  box-shadow: 0 .35rem 1rem rgba(2, 6, 23, .35);
}
[data-theme="dark"] .group-card:nth-child(4n + 2) { --group-tone: #6ee7b7; --group-tint: rgba(16, 185, 129, .16); }
[data-theme="dark"] .group-card:nth-child(4n + 3) { --group-tone: #c4b5fd; --group-tint: rgba(139, 92, 246, .18); }
[data-theme="dark"] .group-card:nth-child(4n + 4) { --group-tone: #fdba74; --group-tint: rgba(245, 158, 11, .16); }
[data-theme="dark"] .leader-badge {
  background: rgba(245, 158, 11, .22);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, .32);
}
[data-theme="dark"] .site-footer {
  border-top-color: rgba(148, 163, 184, .16);
}
[data-theme="dark"] .site-footer a { color: #cbd5e1; }
[data-theme="dark"] .site-footer a:hover { color: #93b4ff; }

/* White Safe Zones in Dark Mode: Keep QR codes & PDF white pages crisp and scannable */
[data-theme="dark"] #qr-canvas,
[data-theme="dark"] .p2i-card img,
[data-theme="dark"] #pdf-sign-canvas-box,
[data-theme="dark"] #pdf-sign-pad {
  background: #ffffff;
  border-radius: .75rem;
}

/* ============================================================================
   XinHammer Official Website × Checklist V2 Flagship Aesthetic System (4.0)
   Pearl-Grid Daylight Atmosphere · Obsidian/Pearl Pills · 24px Glass Cards
   ============================================================================ */
:root {
  --ink: #0f172a;
  --muted: #525e75;
  --line: rgba(15, 23, 42, .08);
  --blue: #2350dc;
  --surface: rgba(255, 255, 255, .92);
  --canvas: #fafbff;
}

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 62% 46% at 78% 6%, rgba(69, 120, 255, .12), transparent 64%),
    radial-gradient(ellipse 46% 42% at 92% 36%, rgba(255, 194, 88, .15), transparent 58%),
    linear-gradient(148deg, #ffffff 0%, #f4f7ff 48%, #faf8ff 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .033) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .033) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 78% at 50% 24%, #000 32%, transparent 96%);
  mask-image: radial-gradient(ellipse 90% 78% at 50% 24%, #000 32%, transparent 96%);
}

/* Header & Official Obsidian/Pearl Account Pill */
.site-header {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.identity-icon {
  border: 1px solid rgba(35, 80, 220, .14);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 12px -4px rgba(35, 80, 220, .2);
}
.header-links .pass-link {
  font-weight: 560;
  color: #334155;
}
.header-links .feedback-link {
  border-radius: 9999px;
  border-color: rgba(15, 23, 42, .1);
  background: rgba(255, 255, 255, .9);
  padding-inline: .82rem;
}
.header-links .site-account-pill:not([data-signed-in="true"]) {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
  font-weight: 600;
  padding-inline: .92rem;
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, .32);
}
.header-links .site-account-pill:not([data-signed-in="true"]):hover {
  border-color: #2350dc;
  background: #2350dc;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(35, 80, 220, .46);
}

/* Compact Official-Style Luminous Eyebrow Strip */
.tools-brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1rem;
  margin-bottom: .62rem;
}
.tools-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: .46rem;
  padding: .24rem .78rem;
  border: 1px solid rgba(35, 80, 220, .14);
  border-radius: 9999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 2px 10px -4px rgba(35, 80, 220, .12);
  color: #334155;
  font-size: .78rem;
  font-weight: 560;
  letter-spacing: .01em;
}
.tools-eyebrow-pill i {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2554e6, #8b5cf6);
  flex: none;
}
.tools-eyebrow-hint {
  color: #64748b;
  font-size: .78rem;
  font-weight: 480;
}

/* Official Floating Segmented Filter Track & Porcelain Launcher Matrix */
@media (min-width: 58.01rem) {
  .launcher-cats {
    padding: .22rem;
    gap: .16rem;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 9999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 16px -6px rgba(15, 23, 42, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .launcher-cats .cat-pill {
    border-color: transparent;
    background: transparent;
    min-height: 1.98rem;
    padding: .18rem .74rem;
  }
  .launcher-cats .cat-pill:hover {
    background: rgba(15, 23, 42, .04);
    color: #0f172a;
    border-color: transparent;
  }
}
.cat-pill {
  border-color: rgba(15, 23, 42, .09);
  background: rgba(255, 255, 255, .94);
  color: #475569;
  font-weight: 600;
}
.cat-pill[aria-pressed="true"],
.cat-pill[aria-expanded="true"] {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .28);
}
.launcher-cats .cat-pill[aria-pressed="true"]:hover {
  background: #1e293b;
  color: #ffffff;
}
.cat-pill.quota-pill-btn {
  border-color: rgba(217, 119, 6, .24);
  background: linear-gradient(120deg, rgba(255, 251, 235, .96), rgba(254, 243, 199, .86));
  color: #92400e;
}
.cat-pill.quota-pill-btn:hover {
  border-color: rgba(217, 119, 6, .45);
  background: #fef3c7;
  color: #78350f;
}
.cat-pill.quota-pill-btn.is-signed-in {
  border-color: rgba(35, 80, 220, .22);
  background: linear-gradient(120deg, rgba(238, 242, 255, .96), rgba(224, 231, 255, .9));
  color: #1e40af;
}
.launcher-search input {
  border-color: rgba(15, 23, 42, .09);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 10px -4px rgba(15, 23, 42, .06);
}
.launcher-search input:focus {
  border-color: rgba(35, 80, 220, .45);
  box-shadow: 0 0 0 3px rgba(35, 80, 220, .12);
}

.tool-list {
  padding: .38rem;
  gap: .34rem;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px -18px rgba(15, 23, 42, .12), 0 1px 2px rgba(15, 23, 42, .04);
}
.tool-entry {
  border-radius: .9rem;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(15, 23, 42, .04);
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.tool-entry[data-tool-link]:hover {
  background: #ffffff;
  border-color: rgba(35, 80, 220, .24);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .12);
}
.tool-entry[data-tool-link][aria-current] {
  border-color: #111827;
  background: linear-gradient(122deg, #111827 0%, #1c3168 62%, #2350dc 100%);
  color: #dbe7ff;
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .45), inset 0 1px rgba(255, 255, 255, .18);
  transform: none;
}

/* Official Gradient Display Heading & 24px Frosted Porcelain Workbench Cards */
.tool-heading {
  margin-block: clamp(1rem, 2.2vw, 1.5rem) 1.05rem;
}
.tool-heading h1 {
  display: inline-block;
  font-weight: 700;
  letter-spacing: -.03em;
  background: linear-gradient(100deg, #0f172a 0%, #1d4ed8 56%, #4f46e5 82%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tool-heading p {
  color: var(--muted);
  line-height: 1.68;
}

.tool-panel,
.tool-editor {
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -22px rgba(15, 23, 42, .13), 0 1px 2px rgba(15, 23, 42, .04);
}
.group-panel-heading {
  border-bottom-color: rgba(15, 23, 42, .06);
}

/* Official Pill Sub-Tabs, Obsidian→Cobalt Primary CTA & Porcelain Secondary Pills */
.sub-tabs {
  padding: .22rem;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 9999px;
  background: rgba(241, 245, 249, .92);
}
@media (max-width: 46rem) {
  .sub-tabs--wrap { border-radius: 1.15rem; }
}
.sub-tabs button {
  border-radius: 9999px;
  font-weight: 600;
  color: #525e75;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.sub-tabs button:hover { color: #0f172a; }
.sub-tabs button[aria-pressed="true"] {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 3px 10px -3px rgba(15, 23, 42, .28);
}

.primary-button {
  border: 1px solid #111827;
  border-radius: 9999px;
  background: #111827;
  color: #ffffff;
  font-weight: 650;
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .38);
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.primary-button--compact { border-radius: 9999px; }
.primary-button:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: #2350dc;
  background: #2350dc;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(35, 80, 220, .48);
}
.primary-button:active:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(0) scale(.99);
  background: #1b3fa8;
}
.primary-button:disabled,
.primary-button[aria-disabled="true"] {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #475569;
  box-shadow: none;
  transform: none;
}

.secondary-button {
  border: 1px solid rgba(15, 23, 42, .11);
  border-radius: 9999px;
  background: rgba(255, 255, 255, .96);
  color: #1e293b;
  font-weight: 620;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .14s ease;
}
.secondary-button:hover:not(:disabled) {
  border-color: rgba(35, 80, 220, .34);
  background: #f0f5ff;
  color: #2350dc;
}
.chip-btn {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, .94);
  color: #334155;
  font-weight: 580;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip-btn:hover:not(:disabled) {
  border-color: rgba(35, 80, 220, .32);
  background: #f0f5ff;
  color: #2350dc;
}
.chip-btn[aria-pressed="true"],
.chip-btn--primary {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}
.chip-btn--primary:hover:not(:disabled) {
  border-color: #2350dc;
  background: #2350dc;
  color: #ffffff;
}

/* Official Sky-Light Glass Ecosystem Closing Band */
.tools-eco-closing {
  margin-top: .5rem;
  padding-block: 1.5rem 1.85rem;
  border-top: 1px solid rgba(15, 23, 42, .05);
  background:
    radial-gradient(ellipse 68% 70% at 82% 20%, rgba(186, 214, 255, .42), transparent 64%),
    linear-gradient(170deg, rgba(243, 247, 255, .92) 0%, rgba(232, 241, 255, .9) 55%, rgba(246, 249, 255, .96) 100%);
}
.tools-eco-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.15rem clamp(1.1rem, 2.6vw, 1.8rem);
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -22px rgba(23, 45, 96, .14);
}
.tools-eco-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.tools-eco-brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 8px 18px -6px rgba(35, 80, 220, .28);
  flex: none;
}
.tools-eco-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 680;
  color: #0f172a;
  letter-spacing: -.015em;
}
.tools-eco-brand span {
  display: block;
  margin-top: .16rem;
  font-size: .82rem;
  color: #525e75;
}
.tools-eco-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.tools-eco-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: .3rem .95rem;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, .96);
  color: #1e293b;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, color .16s ease;
}
.tools-eco-pill:hover {
  border-color: rgba(35, 80, 220, .32);
  background: #f0f5ff;
  color: #2350dc;
  transform: translateY(-1px);
}
.tools-eco-pill--primary {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .35);
}
.tools-eco-pill--primary:hover {
  border-color: #2350dc;
  background: #2350dc;
  color: #ffffff;
}

@media (max-width: 58rem) {
  .tools-eyebrow-hint { display: none; }
}
@media (max-width: 46rem) {
  .header-links .pass-link { display: none; }
  .header-links .feedback-link { padding-inline: .52rem; }
  .header-links .site-account-pill:not([data-signed-in="true"]) { padding-inline: .62rem; }
  .tools-brand-strip { display: none; }
  .tools-eco-panel { padding: 1rem; border-radius: 1.25rem; }
  .tools-eco-links { width: 100%; }
  .tools-eco-pill { flex: 1 1 auto; }
}
@media (max-width: 22.5rem) {
  .header-links .feedback-link { padding-inline: .36rem; font-size: .73rem; }
  .header-links .site-account-pill:not([data-signed-in="true"]) { padding-inline: .46rem; font-size: .72rem; }
}

/* === 1:1 Official Website & Checklist V2 Dark Mode (#0b0f19 Starlight Obsidian) === */
:root[data-theme="dark"] {
  --ink: #f8fafc;
  --muted: #9aa7bd;
  --line: rgba(255, 255, 255, .08);
  --blue: #7aa2ff;
  --surface: #141c2e;
  --canvas: #0b0f19;
}
[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 62% 46% at 78% 6%, rgba(79, 134, 255, .18), transparent 64%),
    radial-gradient(ellipse 46% 42% at 92% 36%, rgba(245, 179, 66, .12), transparent 58%),
    linear-gradient(148deg, #0b0f19 0%, #0f1729 52%, #11162a 100%);
  background-attachment: fixed;
}
[data-theme="dark"] body::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .042) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .042) 1px, transparent 1px);
}
[data-theme="dark"] .site-header {
  background: rgba(11, 15, 25, .84);
  border-bottom-color: rgba(255, 255, 255, .07);
}
[data-theme="dark"] .header-links .pass-link { color: #cbd5e1; }
[data-theme="dark"] .header-links .pass-link:hover { color: #93c5fd; }
[data-theme="dark"] .header-links .site-account-pill:not([data-signed-in="true"]) {
  border-color: #f8fafc;
  background: #f8fafc;
  color: #0b0f19;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .55);
}
[data-theme="dark"] .header-links .site-account-pill:not([data-signed-in="true"]):hover {
  border-color: #93c5fd;
  background: #93c5fd;
  color: #071024;
}
[data-theme="dark"] .tools-eyebrow-pill {
  border-color: rgba(122, 162, 255, .24);
  background: rgba(18, 25, 42, .88);
  color: #cbd5e1;
  box-shadow: 0 2px 12px -4px rgba(0, 0, 0, .45);
}
[data-theme="dark"] .tools-eyebrow-hint { color: #94a3b8; }

@media (min-width: 58.01rem) {
  [data-theme="dark"] .launcher-cats {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(18, 25, 42, .9);
    box-shadow: 0 4px 18px -6px rgba(0, 0, 0, .5);
  }
  [data-theme="dark"] .launcher-cats .cat-pill {
    border-color: transparent;
    background: transparent;
    color: #9aa7bd;
  }
  [data-theme="dark"] .launcher-cats .cat-pill:hover {
    background: rgba(255, 255, 255, .07);
    color: #f8fafc;
  }
}
[data-theme="dark"] .cat-pill {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  color: #cbd5e1;
}
[data-theme="dark"] .cat-pill[aria-pressed="true"],
[data-theme="dark"] .cat-pill[aria-expanded="true"],
[data-theme="dark"] .sub-tabs button[aria-pressed="true"] {
  border-color: #f8fafc;
  background: #f8fafc;
  color: #0b0f19;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .55);
}
[data-theme="dark"] .launcher-cats .cat-pill[aria-pressed="true"]:hover,
[data-theme="dark"] .sub-tabs button[aria-pressed="true"]:hover {
  background: #e2e8f0;
  color: #0b0f19;
}
[data-theme="dark"] .cat-pill.launcher-expand-btn[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(20, 28, 46, .88);
  color: #cbd5e1;
  box-shadow: none;
}
[data-theme="dark"] .cat-pill.quota-pill-btn {
  border-color: rgba(251, 191, 36, .34);
  background: rgba(245, 158, 11, .16);
  color: #fde68a;
}
[data-theme="dark"] .cat-pill.quota-pill-btn.is-signed-in {
  border-color: rgba(122, 162, 255, .36);
  background: rgba(59, 130, 246, .2);
  color: #dbeafe;
}
[data-theme="dark"] .sub-tabs {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(18, 25, 42, .92);
}
[data-theme="dark"] .sub-tabs button {
  background: transparent;
  color: #9aa7bd;
}
[data-theme="dark"] .sub-tabs button:hover {
  background: rgba(255, 255, 255, .07);
  color: #f8fafc;
}

[data-theme="dark"] .tool-list {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(18, 25, 42, .8);
  box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .6);
}
[data-theme="dark"] .tool-entry {
  background: rgba(255, 255, 255, .03);
  border-color: rgba(255, 255, 255, .04);
}
[data-theme="dark"] .tool-entry[data-tool-link]:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(122, 162, 255, .36);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6);
}
[data-theme="dark"] .tool-entry[data-tool-link][aria-current] {
  border-color: #7aa2ff;
  background: linear-gradient(122deg, #2554e6 0%, #4338ca 100%);
  box-shadow: 0 10px 26px -10px rgba(37, 84, 230, .55), inset 0 1px rgba(255, 255, 255, .2);
}

[data-theme="dark"] .tool-heading h1 {
  background: linear-gradient(100deg, #f8fafc 0%, #93c5fd 55%, #a5b4fc 82%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .tool-panel,
[data-theme="dark"] .tool-editor {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(20, 28, 46, .92);
  box-shadow: 0 22px 52px -18px rgba(0, 0, 0, .6);
}
[data-theme="dark"] .group-panel-heading {
  border-bottom-color: rgba(255, 255, 255, .08);
}

[data-theme="dark"] .primary-button {
  border-color: #5b7cff;
  background: linear-gradient(112deg, #3b63f6, #2554e6);
  color: #ffffff;
  box-shadow: 0 10px 26px -10px rgba(59, 99, 246, .58);
}
[data-theme="dark"] .primary-button:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: #93b4ff;
  background: linear-gradient(112deg, #527bff, #3b63f6);
}
[data-theme="dark"] .primary-button:disabled,
[data-theme="dark"] .primary-button[aria-disabled="true"] {
  border-color: rgba(148, 163, 184, .22);
  background: #253352;
  color: #94a3b8;
  box-shadow: none;
}
[data-theme="dark"] .secondary-button,
[data-theme="dark"] .chip-btn {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #e2e8f0;
  box-shadow: none;
}
[data-theme="dark"] .secondary-button:hover:not(:disabled),
[data-theme="dark"] .chip-btn:hover:not(:disabled) {
  border-color: rgba(122, 162, 255, .45);
  background: rgba(122, 162, 255, .14);
  color: #ffffff;
}
[data-theme="dark"] .chip-btn[aria-pressed="true"],
[data-theme="dark"] .chip-btn--primary {
  border-color: #5b7cff;
  background: #2554e6;
  color: #ffffff;
}

[data-theme="dark"] .tools-eco-closing {
  border-top-color: rgba(255, 255, 255, .07);
  background:
    radial-gradient(ellipse 68% 70% at 82% 20%, rgba(59, 130, 246, .16), transparent 64%),
    linear-gradient(165deg, #0d1424 0%, #0f182c 50%, #0b0f19 100%);
}
[data-theme="dark"] .tools-eco-panel {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(17, 24, 40, .82);
  box-shadow: 0 20px 48px -18px rgba(0, 0, 0, .65);
}
[data-theme="dark"] .tools-eco-brand strong { color: #f8fafc; }
[data-theme="dark"] .tools-eco-brand span { color: #9aa7bd; }
[data-theme="dark"] .tools-eco-pill {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #e2e8f0;
}
[data-theme="dark"] .tools-eco-pill:hover {
  border-color: rgba(122, 162, 255, .42);
  background: rgba(122, 162, 255, .14);
  color: #ffffff;
}
[data-theme="dark"] .tools-eco-pill--primary {
  border-color: #f8fafc;
  background: #f8fafc;
  color: #0b0f19;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .55);
}
[data-theme="dark"] .tools-eco-pill--primary:hover {
  border-color: #93c5fd;
  background: #93c5fd;
  color: #071024;
}

/* === Wave 9: Official GPU Spring Sliding Pill Indicator === */
.launcher-cats,
.sub-tabs {
  position: relative;
  isolation: isolate;
}
.launcher-cats .cat-pill,
.sub-tabs button {
  position: relative;
  z-index: 1;
}
.xh-seg-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 9999px;
  background: #111827;
  box-shadow: 0 3px 10px -3px rgba(15, 23, 42, .3);
  opacity: 0;
  will-change: transform, width, height;
  transition:
    transform .34s cubic-bezier(.22, 1, .36, 1),
    width .32s cubic-bezier(.22, 1, .36, 1),
    height .28s cubic-bezier(.22, 1, .36, 1),
    opacity .16s ease;
}
@media (prefers-reduced-motion: reduce) {
  .xh-seg-indicator { transition: none; }
}
@media (max-width: 58rem) {
  .launcher-cats > .xh-seg-indicator { display: none !important; }
}
@media (min-width: 58.01rem) {
  .launcher-cats[data-seg-ready="true"] .cat-pill[aria-pressed="true"],
  .launcher-cats[data-seg-ready="true"] .cat-pill[aria-pressed="true"]:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
  }
}
.sub-tabs[data-seg-ready="true"] button[aria-pressed="true"],
.sub-tabs[data-seg-ready="true"] button[aria-pressed="true"]:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
}
[data-theme="dark"] .xh-seg-indicator {
  background: #f8fafc;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .55);
}
@media (min-width: 58.01rem) {
  [data-theme="dark"] .launcher-cats[data-seg-ready="true"] .cat-pill[aria-pressed="true"],
  [data-theme="dark"] .launcher-cats[data-seg-ready="true"] .cat-pill[aria-pressed="true"]:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #0b0f19;
  }
}
[data-theme="dark"] .sub-tabs[data-seg-ready="true"] button[aria-pressed="true"],
[data-theme="dark"] .sub-tabs[data-seg-ready="true"] button[aria-pressed="true"]:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #0b0f19;
}
