/* Minification failed. Returning unminified contents.
(13,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(14,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(15,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(16,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(17,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(18,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(19,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(20,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(21,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(22,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(23,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(24,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(25,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(26,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(27,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(28,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(29,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(30,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(31,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(32,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(33,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(34,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(35,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(36,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(37,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(42,23): run-time error CSS1039: Token not allowed after unary operator: '-font'
(44,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
(45,22): run-time error CSS1039: Token not allowed after unary operator: '-bg'
(73,78): run-time error CSS1039: Token not allowed after unary operator: '-topbar-h'
(74,57): run-time error CSS1039: Token not allowed after unary operator: '-topbar-h'
(79,18): run-time error CSS1039: Token not allowed after unary operator: '-topbar-h'
(80,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(81,35): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(85,22): run-time error CSS1039: Token not allowed after unary operator: '-shadow-sm'
(89,52): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(101,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(102,52): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(106,60): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(106,87): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(107,30): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(108,41): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(108,68): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(117,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(118,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(119,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(120,52): run-time error CSS1039: Token not allowed after unary operator: '-text'
(124,47): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(124,81): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(124,103): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(132,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(133,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(134,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(135,22): run-time error CSS1039: Token not allowed after unary operator: '-shadow-md'
(144,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(145,52): run-time error CSS1039: Token not allowed after unary operator: '-text'
(150,48): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(152,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(152,44): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(161,23): run-time error CSS1039: Token not allowed after unary operator: '-topbar-h'
(174,40): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(178,37): run-time error CSS1039: Token not allowed after unary operator: '-topbar-h'
(195,38): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(195,65): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(218,58): run-time error CSS1039: Token not allowed after unary operator: '-bg'
(223,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(224,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(225,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(227,22): run-time error CSS1039: Token not allowed after unary operator: '-shadow-md'
(235,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(240,69): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(241,88): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(242,50): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(246,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(247,22): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(248,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(251,63): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(258,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(263,55): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(265,36): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(267,70): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(268,33): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(273,34): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(275,44): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(278,22): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(278,49): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(280,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(285,30): run-time error CSS1030: Expected identifier, found ':'
(285,36): run-time error CSS1031: Expected selector, found ')'
(285,36): run-time error CSS1025: Expected comma or open brace, found ')'
(290,16): run-time error CSS1031: Expected selector, found '('
(290,16): run-time error CSS1025: Expected comma or open brace, found '('
(323,20): run-time error CSS1039: Token not allowed after unary operator: '-topbar-h'
(341,22): run-time error CSS1039: Token not allowed after unary operator: '-sidebar'
(342,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(343,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(356,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(362,68): run-time error CSS1039: Token not allowed after unary operator: '-shadow-sm'
(365,52): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(376,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(377,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(378,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(381,49): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(382,67): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(395,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(397,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(398,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(401,66): run-time error CSS1039: Token not allowed after unary operator: '-shadow-sm'
(402,46): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(402,73): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(408,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
(412,52): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(415,49): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(416,67): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(421,22): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(421,49): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(433,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(434,36): run-time error CSS1039: Token not allowed after unary operator: '-shadow-sm'
(435,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(448,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(449,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(450,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(461,35): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(467,65): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(472,22): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(481,69): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(491,38): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(491,65): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(492,38): run-time error CSS1039: Token not allowed after unary operator: '-success-soft'
(492,66): run-time error CSS1039: Token not allowed after unary operator: '-success'
(493,38): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(493,65): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(493,97): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(494,38): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(511,74): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(513,66): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(514,59): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(515,76): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(529,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(529,43): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(530,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(550,37): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(551,62): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(552,50): run-time error CSS1039: Token not allowed after unary operator: '-row-hover'
(557,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(563,39): run-time error CSS1039: Token not allowed after unary operator: '-row-hover'
(565,22): run-time error CSS1039: Token not allowed after unary operator: '-row-sel'
(566,24): run-time error CSS1039: Token not allowed after unary operator: '-row-sel-br'
(572,31): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(587,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(588,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(594,22): run-time error CSS1039: Token not allowed after unary operator: '-success'
(595,24): run-time error CSS1039: Token not allowed after unary operator: '-success'
(622,45): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(627,48): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(632,52): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(633,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(634,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(651,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(662,52): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(665,34): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(675,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(676,23): run-time error CSS1039: Token not allowed after unary operator: '-font'
(686,38): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(691,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(691,45): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(692,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(694,59): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(696,35): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(704,37): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(707,39): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(707,60): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(708,46): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(708,73): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(711,32): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(717,31): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(739,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(743,39): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(743,60): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(814,60): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(815,48): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(820,23): run-time error CSS1039: Token not allowed after unary operator: '-font'
(820,62): run-time error CSS1039: Token not allowed after unary operator: '-text'
(821,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(822,30): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(823,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(829,39): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(847,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(848,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(859,47): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(860,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(860,55): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(861,51): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(864,58): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(867,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(867,56): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(868,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(875,17): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(877,49): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(878,52): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(883,45): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(888,35): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(890,67): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(891,98): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(892,42): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(892,69): run-time error CSS1039: Token not allowed after unary operator: '-text'
(894,32): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(898,32): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(912,47): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(933,52): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(934,57): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(953,43): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(954,47): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(957,17): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(960,47): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(973,52): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(977,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(977,56): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(978,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(984,52): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(986,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(986,67): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(989,55): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(993,42): run-time error CSS1039: Token not allowed after unary operator: '-row-hover'
(998,22): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(998,49): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1003,48): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(1029,35): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1035,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1041,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1044,38): run-time error CSS1039: Token not allowed after unary operator: '-text'
(1044,63): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(1048,44): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1049,52): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1050,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(1050,60): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1054,41): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(1054,62): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1054,91): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1055,55): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(1055,82): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1055,111): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1057,44): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1058,34): run-time error CSS1039: Token not allowed after unary operator: '-text'
(1059,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(1059,60): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1090,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1090,55): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(1091,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1091,67): run-time error CSS1039: Token not allowed after unary operator: '-text'
(1107,19): run-time error CSS1039: Token not allowed after unary operator: '-topbar-h'
(1109,31): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(1109,48): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(1162,29): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(1162,46): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(1212,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1227,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1250,22): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(1251,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1259,22): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(1260,29): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1261,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1270,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1293,67): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1294,47): run-time error CSS1039: Token not allowed after unary operator: '-shadow-md'
(1313,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1321,22): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(1322,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1343,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1346,22): run-time error CSS1039: Token not allowed after unary operator: '-row-sel'
(1347,24): run-time error CSS1039: Token not allowed after unary operator: '-row-sel-br'
(1377,22): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(1378,29): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1379,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1383,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(1384,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1386,30): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1391,22): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(1392,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1407,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1422,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1434,29): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1435,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1439,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1441,22): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(1451,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1455,22): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1456,24): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1467,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1470,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1506,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(1507,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1508,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1519,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(1528,22): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(1529,24): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1533,22): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(1534,24): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1604,65): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(1605,51): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1624,53): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1624,83): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1624,133): run-time error CSS1039: Token not allowed after unary operator: '-shadow-sm'
(1630,55): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1630,85): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1631,38): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1633,84): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1635,42): run-time error CSS1039: Token not allowed after unary operator: '-row-hover'
(1640,38): run-time error CSS1039: Token not allowed after unary operator: '-success-soft'
(1640,66): run-time error CSS1039: Token not allowed after unary operator: '-success'
(1641,38): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(1641,66): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(1643,103): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1644,37): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1646,38): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(1646,65): run-time error CSS1039: Token not allowed after unary operator: '-text'
(1646,96): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1647,44): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(1648,37): run-time error CSS1039: Token not allowed after unary operator: '-success'
(1650,37): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(1653,40): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(1672,63): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1677,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1679,38): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(1679,65): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(1683,44): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1685,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(1685,58): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1686,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1688,41): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(1689,55): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(1689,89): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1689,111): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1691,44): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1692,30): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1692,57): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(1693,34): run-time error CSS1039: Token not allowed after unary operator: '-text'
(1695,46): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1702,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-alt'
(1702,49): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1703,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1706,22): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(1706,49): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(1712,58): run-time error CSS1039: Token not allowed after unary operator: '-success-soft'
(1712,86): run-time error CSS1039: Token not allowed after unary operator: '-success'
(1719,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(1719,56): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1720,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1721,52): run-time error CSS1039: Token not allowed after unary operator: '-text'
(1724,45): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(1738,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(1739,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1740,25): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1749,34): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(1751,45): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(1752,36): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(1753,47): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(1759,52): run-time error CSS1039: Token not allowed after unary operator: '-radius-sm'
(1760,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1775,31): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(1775,48): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(1789,13): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1800,67): run-time error CSS1039: Token not allowed after unary operator: '-radius-md'
(1817,39): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1837,36): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1875,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1898,29): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(1898,46): run-time error CSS1039: Token not allowed after unary operator: '-radius-lg'
(1909,49): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1910,56): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1916,44): run-time error CSS1039: Token not allowed after unary operator: '-line'
(1916,80): run-time error CSS1039: Token not allowed after unary operator: '-text'
(1917,44): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(1917,71): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1917,92): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1927,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1928,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(1929,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
(1961,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(1962,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(1991,17): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(1995,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1999,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(2006,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(2084,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(2086,17): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(2093,44): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(2104,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(2107,17): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(2416,43): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(2417,28): run-time error CSS1039: Token not allowed after unary operator: '-success'
(2418,42): run-time error CSS1039: Token not allowed after unary operator: '-success'
(2421,58): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(2431,35): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(2441,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(2447,37): run-time error CSS1039: Token not allowed after unary operator: '-text'
(2447,62): run-time error CSS1039: Token not allowed after unary operator: '-hover'
(2449,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(2450,31): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(2456,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(2460,40): run-time error CSS1039: Token not allowed after unary operator: '-text'
(2468,52): run-time error CSS1039: Token not allowed after unary operator: '-success-soft'
(2469,52): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(2469,80): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(2485,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(2489,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(2493,24): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(2494,22): run-time error CSS1039: Token not allowed after unary operator: '-accent-soft'
(2504,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
(2510,28): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
(2562,22): run-time error CSS1039: Token not allowed after unary operator: '-row-sel'
(2564,29): run-time error CSS1039: Token not allowed after unary operator: '-row-sel-br'
(2575,21): run-time error CSS1039: Token not allowed after unary operator: '-text-strong'
(2599,26): run-time error CSS1039: Token not allowed after unary operator: '-row-sel'
(2601,32): run-time error CSS1039: Token not allowed after unary operator: '-row-sel-br'
(2606,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(2707,1): run-time error CSS1019: Unexpected token, found '}'
(2727,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(2728,32): run-time error CSS1039: Token not allowed after unary operator: '-stroke'
 */
/* 
   TodoQuick Web  Feuille de styles principale
   Palette fidle au projet WPF :
     Background : #F5F7FB   Surface : #FFFFFF   Sidebar : #F1F5F9
     Accent     : #2563EB   Success : #16A34A   Danger  : #DC2626
     Text       : #101828   Muted   : #64748B   Stroke  : #D9E0EA
    */

/*  Reset & base  */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #F5F7FB;
    --surface:     #FFFFFF;
    --surface-alt: #F8FAFC;
    --sidebar:     #F1F5F9;
    --stroke:      #D9E0EA;
    --text:        #101828;
    --text-strong: #0F172A;
    --muted:       #64748B;
    --accent:      #2563EB;
    --accent-soft: #E8F0FF;
    --success:     #16A34A;
    --success-soft:#DCFCE7;
    --danger:      #DC2626;
    --danger-soft: #FEE2E2;
    --hover:       #EEF4FF;
    --row-hover:   #F3F7FF;
    --row-sel:     #DCEBFF;
    --row-sel-br:  #7FB0FF;
    --radius-sm:   10px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:   0 4px 16px rgba(37,99,235,.08), 0 1px 4px rgba(0,0,0,.06);
    --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
    --topbar-h:    52px;
}

html, body {
    height: 100%;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/*  Barre d'impersonation SuperAdmin  */
.tq-impersonation-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: #b91c1c;
    color: #fff;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 20px;
    font-size: 13px; font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.tq-impersonation-bar strong { font-weight: 700; }
.tq-impersonation-bar-btn {
    margin-left: auto; flex-shrink: 0;
    background: rgba(255,255,255,.18);
    color: #fff; border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 6px; padding: 4px 14px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.tq-impersonation-bar-btn:hover { background: rgba(255,255,255,.30); }

/* Décale le topbar et le contenu quand la barre impersonation est visible */
body.has-impersonation-bar .tq-topbar { top: 38px; }
body.has-impersonation-bar .tq-page-wrap.has-topbar { padding-top: calc(var(--topbar-h) + 38px); }
body.has-impersonation-bar .tq-sidebar { top: calc(var(--topbar-h) + 38px); }

/*  Topbar  */
.tq-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--stroke);
    display: flex; align-items: center;
    padding: 0 20px;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}
.tq-topbar-brand {
    display: flex; align-items: center; gap: 9px;
    font-weight: 700; font-size: 15px; color: var(--accent);
    flex: 1;
}
.tq-logo-icon { display: flex; align-items: center; }
.tq-topbar-actions { display: flex; align-items: center; gap: 4px; }
@media (max-width: 900px) {
    .tq-topbar-actions--hidden-mobile { display: none; }
}

.tq-nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; color: var(--muted);
    text-decoration: none; border: none; background: none; cursor: pointer;
    transition: background .15s, color .15s;
}
.tq-nav-link:hover, .tq-nav-link.active { background: var(--accent-soft); color: var(--accent); }
.tq-nav-logout { color: var(--muted); }
.tq-nav-logout:hover { background: var(--danger-soft); color: var(--danger); }

/*  Board switch (multi-board)  */
.tq-board-switch {
    position: relative;
}
.tq-board-switch-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px 5px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: var(--surface-alt);
    font-size: 13px; font-weight: 500; color: var(--text);
    cursor: pointer; transition: background .15s, border-color .15s;
    white-space: nowrap; max-width: 200px;
}
.tq-board-switch-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tq-board-switch-name {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px;
}
.tq-board-switch-menu {
    display: none;
    position: absolute; top: calc(100% + 6px); left: 0;
    min-width: 200px; max-width: 260px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 200;
    padding: 6px;
    overflow: hidden;
}
.tq-board-switch-menu--open { display: block; }
.tq-board-switch-item {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; color: var(--text);
    border: none; background: none; cursor: pointer; text-align: left;
    transition: background .12s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tq-board-switch-item:hover { background: var(--hover); }
.tq-board-switch-item--current {
    color: var(--accent); background: var(--accent-soft); cursor: default;
    font-weight: 600;
}
.tq-board-switch-form { display: contents; }

/*  Page wrap  */
.tq-page-wrap { min-height: 100vh; }
.tq-page-wrap.has-topbar {
    min-height: 100vh;
    padding-top: var(--topbar-h);
    display: flex;
    flex-direction: column;
}

.tq-legal-footer {
    display: flex; justify-content: center; gap: 16px;
    padding: 16px 20px;
    font-size: 11px;
}
.tq-legal-footer a {
    color: #94A3B8; text-decoration: none;
}
.tq-legal-footer a:hover { color: var(--muted); text-decoration: underline; }

/* ── Toast notifications (overlay, ne déplacent pas le contenu) ── */
.tq-toast-container {
    position: fixed; top: calc(var(--topbar-h, 56px) + 12px); right: 20px;
    z-index: 900; display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.tq-flash {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; font-size: 13px; font-weight: 500;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
    min-width: 240px; max-width: 380px;
    pointer-events: auto;
    animation: tq-toast-in .28s cubic-bezier(.34,1.56,.64,1) both;
}
.tq-flash.tq-toast-out {
    animation: tq-toast-out .22s ease forwards;
}
.tq-flash-success { background: #ECFDF5; color: #166534; border: 1px solid #BBF7D0; }
.tq-flash-danger  { background: var(--danger-soft); color: var(--danger); border: 1px solid #FECACA; }
.tq-flash-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.tq-flash-close {
    margin-left: auto; background: none; border: none; cursor: pointer;
    color: currentColor; opacity: .5; font-size: 16px; line-height: 1;
    padding: 0 0 0 6px; flex-shrink: 0;
}
.tq-flash-close:hover { opacity: 1; }
@keyframes tq-toast-in {
    from { opacity: 0; transform: translateX(24px) scale(.95); }
    to   { opacity: 1; transform: translateX(0)    scale(1); }
}
@keyframes tq-toast-out {
    from { opacity: 1; transform: translateX(0)    scale(1);   max-height: 80px; margin-bottom: 0; }
    to   { opacity: 0; transform: translateX(16px) scale(.95); max-height: 0;    margin-bottom: -8px; }
}

/* 
   AUTH PAGES
    */
.tq-auth-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #EFF6FF 0%, var(--bg) 60%);
    padding: 20px;
}
.tq-auth-card {
    width: 100%; max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}
.tq-auth-logo {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px; justify-content: center;
}
.tq-auth-logo-icon {
    width: 52px; height: 52px;
    background: var(--accent);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.tq-auth-logo-text { font-size: 22px; font-weight: 700; color: var(--accent); }
.tq-auth-title    { font-size: 20px; font-weight: 700; text-align: center; color: var(--text-strong); margin-bottom: 6px; }
.tq-auth-subtitle { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 16px; }
.tq-auth-back {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    text-align: center; font-size: 13px; font-weight: 600;
    color: var(--accent); text-decoration: none;
    background: var(--accent-soft); border: 1px solid #BFDBFE;
    border-radius: var(--radius-sm); padding: 9px 16px;
    margin-bottom: 20px; transition: background .15s, border-color .15s;
}
.tq-auth-back:hover { background: #DBEAFE; border-color: var(--accent); }
.tq-auth-form     { display: flex; flex-direction: column; gap: 16px; }

/* Bloc info paiement dans Register */
.tq-reg-pricing-info {
    display: flex; align-items: flex-start; gap: 12px;
    background: #EFF6FF; border: 1px solid #BFDBFE;
    border-radius: var(--radius-md); padding: 14px 16px;
    font-size: 13px;
}
.tq-reg-pricing-info--free { background: #F0FDF4; border-color: #BBF7D0; }
.tq-reg-pricing-icon { font-size: 22px; flex-shrink: 0; line-height: 1.2; }
.tq-reg-pricing-title { font-weight: 700; color: var(--text-strong); margin-bottom: 4px; }
.tq-reg-pricing-body { color: #475569; line-height: 1.6; }
.tq-reg-pricing-link { color: var(--accent); font-size: 12px; text-decoration: underline; margin-top: 6px; display: inline-block; }

.tq-auth-footer   { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
.tq-auth-footer a { color: var(--accent); font-weight: 500; text-decoration: none; }
.tq-auth-footer a:hover { text-decoration: underline; }

.tq-field-check {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted);
}
.tq-field-check input { accent-color: var(--accent); }

.tq-validation-summary {
    background: var(--danger-soft); color: var(--danger);
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm); padding: 10px 14px;
    font-size: 13px;
}
.tq-validation-summary:empty { display: none; }
.tq-validation-summary ul:empty { display: none; }
.tq-validation-summary:has(ul:empty) { display: none; }
.tq-validation-summary ul { padding-left: 16px; margin: 0; }
/* ASP.NET ajoute validation-summary-valid quand pas d'erreurs model-level */
.validation-summary-valid { display: none !important; }

   APP LAYOUT  (sidebar + main  calqu sur la fentre WPF)
    */
.tq-app {
    display: flex; flex-direction: column;
    flex: 1 1 auto;
    min-height: calc(100vh - var(--topbar-h));
    height: calc(100vh - var(--topbar-h));
    padding: 18px;
    gap: 12px;
    overflow: hidden;
}
.tq-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 18px;
    flex: 1;
    min-height: 0;
    height: 100%;
    align-items: stretch;
    overflow: hidden;
}


@supports (height: 100dvh) {
    .tq-page-wrap.has-topbar { min-height: 100dvh; }
    .tq-app {
        min-height: calc(100dvh - var(--topbar-h));
        height: calc(100dvh - var(--topbar-h));
    }
}
/*  Bannire sync  */
.tq-sync-banner {
    position: fixed;
    top: calc(var(--topbar-h, 56px) + 12px);
    left: 50%; transform: translateX(-50%);
    z-index: 899;
    display: flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    background: #ECFDF5; color: #166534;
    border: 1px solid #BBF7D0;
    border-radius: 20px;
    font-size: 13px; font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    pointer-events: none;
    animation: tq-toast-in .25s cubic-bezier(.34,1.56,.64,1) both;
}

/* 
   SIDEBAR
    */
.tq-sidebar {
    background: var(--sidebar);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    display: flex; flex-direction: column; gap: 16px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.tq-sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 4px;
}
.tq-brand-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    background: var(--surface);
    border: 1px solid #D9E3F3;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.tq-brand-icon--logo { border-color: transparent; box-shadow: var(--shadow-sm); }
.tq-board-name-wrap { min-width: 0; }
.tq-board-name {
    font-size: 18px; font-weight: 800; color: var(--text-strong);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 160px; line-height: 1.2;
}
.tq-board-sublabel { display: none; }

/* Mtriques */
.tq-metrics {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.tq-metric-card {
    background: var(--surface-alt);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}
.tq-metric-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tq-metric-value { font-size: 26px; font-weight: 700; color: var(--text-strong); margin-top: 6px; line-height: 1; }

/* Liste des sections */
.tq-section-list-wrap {
    flex: 1; overflow-y: auto; min-height: 0;
    position: relative;
    mask-image: linear-gradient(to bottom, black calc(100% - 40px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 40px), transparent 100%);
}
.tq-section-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.tq-section-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--stroke);
    transition: border-color .15s, box-shadow .15s;
}
.tq-section-item:hover { border-color: #BDD0F5; box-shadow: var(--shadow-sm); }
.tq-section-item.active { border-color: var(--accent); background: var(--accent-soft); }

.tq-section-btn {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 12px 10px;
    background: none; border: none; cursor: pointer; text-align: left;
    color: var(--text);
}
.tq-section-info { flex: 1; min-width: 0; }
.tq-section-name {
    font-weight: 600; font-size: 13px; color: var(--text-strong);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tq-section-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.tq-section-pct  { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* Avatar/badge */
.tq-section-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tq-avatar-lg { width: 64px; height: 64px; font-size: 22px; border-radius: 16px; }

/* Boutons d'action dans la sidebar (rename/delete) */
.tq-section-actions {
    display: none; position: absolute;
    right: 6px; top: 50%; transform: translateY(-50%);
    gap: 2px; align-items: center;
    background: var(--surface); border-radius: 8px;
    padding: 2px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--stroke);
}
.tq-section-item:hover .tq-section-actions,
.tq-section-item.active .tq-section-actions { display: flex; }

/* Pied de sidebar */
.tq-sidebar-footer { flex-shrink: 0; }

/* 
   MAIN CARD
    */
.tq-main { min-width: 0; display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden; }
.tq-main-card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex; flex-direction: column; gap: 18px;
    flex: 1; min-height: 0; overflow: hidden;
}

/* En-tte section */
.tq-main-header {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stroke);
    flex-shrink: 0;
}
.tq-main-header-left  { display: flex; align-items: center; gap: 14px; }
.tq-main-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tq-main-title { font-size: 18px; font-weight: 700; color: var(--text-strong); }

.tq-progress-bar-wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tq-progress-bar {
    width: 120px; height: 5px;
    background: var(--stroke); border-radius: 99px; overflow: hidden;
}
.tq-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease, background .4s ease;
    /* La couleur est appliquee dynamiquement via JS selon le % */
    background: #DC2626;
}
.tq-progress-label { font-size: 11px; font-weight: 600; color: var(--muted); }

/* Badges statut */
.tq-badge {
    display: inline-flex; align-items: center;
    justify-content: center;
    padding: 3px 10px; border-radius: 99px;
    font-size: 12px; font-weight: 600;
    background-clip: padding-box;
}
.tq-badge-soft    { background: var(--accent-soft); color: var(--accent); }
.tq-badge-success { background: var(--success-soft); color: var(--success); }
.tq-badge-muted   { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--stroke); }
.tq-badge-accent  { background: var(--accent); color: #fff; }

.tq-badge-today   { background: #EDE9FE; color: #6D28D9; border: 1px solid #DDD6FE; }
.tq-badge-today.tq-badge-filter.is-active { background: #DDD6FE; color: #5B21B6; border-color: #C4B5FD; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.tq-badge-filter { border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease; }
.tq-badge-filter:hover { transform: translateY(-1px); }
.tq-badge-filter:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.tq-badge-filter.is-active { border-color: currentColor; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.tq-badge-filter.is-dimmed { opacity: .72; }


/* Mobile hero header: isolated from desktop */
.tq-mobile-hero { display: none; }
.tq-mobile-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tq-mobile-profile { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.tq-mobile-avatar { width: 52px; height: 52px; font-size: 19px; flex-shrink: 0; }
.tq-mobile-profile-meta { min-width: 0; flex: 1; }
.tq-mobile-profile-name { font-size: 18px; font-weight: 700; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq-mobile-progress-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tq-mobile-progress-bar { flex: 1; height: 6px; background: var(--stroke); border-radius: 999px; overflow: hidden; }
.tq-mobile-progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .25s ease, background .25s ease; }
.tq-mobile-progress-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.tq-mobile-stats { display: none; }

/* Barre d'ajout */
.tq-add-bar {
    display: flex; gap: 10px; flex-shrink: 0;
}
.tq-add-input-wrap {
    flex: 1; position: relative; display: flex; align-items: center;
}
.tq-add-input { flex: 1; padding-right: 72px !important; }
.tq-kbd-hint {
    position: absolute; right: 10px;
    font-size: 11px; font-weight: 600;
    color: var(--muted); background: var(--surface-alt);
    border: 1px solid var(--stroke);
    border-radius: 5px; padding: 2px 7px;
    pointer-events: none; white-space: nowrap;
    opacity: 0; transition: opacity .2s;
}
.tq-add-input-wrap:focus-within .tq-kbd-hint { opacity: 1; }

/* 
   TCHES  ARBRE
    */
.tq-task-area {
    flex: 1; overflow-y: auto; min-height: 0;
}

.tq-task-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

/* Sous-niveau : indentation */
.tq-children { padding-left: 28px; margin-top: 2px; }
.tq-children.collapsed { display: none; }

.tq-task-item { border-radius: var(--radius-md); }
.tq-task-item.sortable-ghost { opacity: .4; background: var(--accent-soft); }
.tq-task-item.sortable-chosen { background: var(--row-hover); }

.tq-task-row {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    background: transparent;
    transition: background .12s, border-color .12s;
    position: relative;
}
.tq-task-row:hover { background: var(--row-hover); }
.tq-task-item.selected > .tq-task-row {
    background: var(--row-sel);
    border-color: var(--row-sel-br);
}

/* Drag handle */
.tq-drag-handle {
    cursor: grab; flex-shrink: 0; display: flex; align-items: center;
    padding: 2px; color: var(--muted);
    opacity: .5; transition: opacity .15s;
}
.tq-task-row:hover .tq-drag-handle { opacity: 1; }
.tq-drag-handle:active { cursor: grabbing; }

/* Checkbox */
.tq-checkbox-wrap {
    flex-shrink: 0; display: flex; align-items: center;
    cursor: pointer;
}
.tq-checkbox-input { display: none; }
.tq-checkbox-box {
    width: 20px; height: 20px;
    border-radius: 6px;
    border: 2px solid var(--stroke);
    background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}
.tq-checkbox-input:checked + .tq-checkbox-box {
    background: var(--success);
    border-color: var(--success);
    animation: tq-checkbox-pop .3s cubic-bezier(.36,.07,.19,.97) both;
}
.tq-checkbox-input:checked + .tq-checkbox-box::after {
    content: '';
    display: block;
    width: 11px; height: 7px;
    border-left: 2.2px solid #fff;
    border-bottom: 2.2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    animation: tq-check-draw .2s ease .08s both;
}
@keyframes tq-checkbox-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.28); }
    60%  { transform: scale(.88); }
    80%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes tq-check-draw {
    from { opacity: 0; transform: rotate(-45deg) translate(1px, -1px) scale(.5); }
    to   { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
}
.tq-checkbox-box-parent { border-style: dashed; opacity: .5; cursor: default; }

/* Titre de tche */
.tq-task-title {
    flex: 1; font-size: 13.5px; color: var(--text-strong);
    min-width: 0; word-break: break-word; cursor: pointer;
    transition: color .15s;
}
.tq-task-item.is-done > .tq-task-row .tq-task-title {
    text-decoration: line-through; color: var(--muted);
}

/* Compteur d'enfants */
.tq-child-count {
    font-size: 11px; font-weight: 600; color: var(--muted);
    background: var(--surface-alt);
    border: 1px solid var(--stroke);
    border-radius: 99px; padding: 1px 8px;
    flex-shrink: 0;
}

/* Boutons d'action par ligne */
.tq-row-actions {
    display: none; align-items: center; gap: 2px;
    flex-shrink: 0;
}
.tq-task-row:hover .tq-row-actions,
.tq-task-item.selected > .tq-task-row .tq-row-actions { display: flex; }

/* Empty state */
.tq-empty-state {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 60px 20px;
    color: var(--muted); font-size: 14px; text-align: center;
}
.tq-empty-state-icon {
    font-size: 40px; line-height: 1;
    animation: tq-empty-float 3s ease-in-out infinite;
}
@keyframes tq-empty-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
.tq-empty-state-msg {
    font-size: 15px; font-weight: 600; color: var(--text-strong);
}
.tq-empty-state-sub {
    font-size: 13px; color: var(--muted);
}

/* 
   BOUTONS
    */
.tq-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 13.5px; font-weight: 600;
    border: none; cursor: pointer;
    transition: opacity .15s, background .15s;
    text-decoration: none; white-space: nowrap;
    line-height: 1.2;
}
.tq-btn:disabled { opacity: .55; cursor: default; }
.tq-btn-full  { width: 100%; }
.tq-btn-sm    { padding: 5px 12px; font-size: 12px; }

.tq-btn-primary   { background: var(--accent); color: #fff; }
.tq-btn-primary:hover:not(:disabled) { opacity: .9; }
.tq-btn-primary:active:not(:disabled) { opacity: .8; }

.tq-btn-secondary {
    background: var(--surface); color: var(--text-strong);
    border: 1px solid var(--stroke);
}
.tq-btn-secondary:hover:not(:disabled) { background: var(--surface-alt); border-color: #B7C3D4; }

.tq-btn-danger { background: var(--danger); color: #fff; }
.tq-btn-danger:hover:not(:disabled) { opacity: .9; }

/* Icon button */
.tq-icon-btn {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    border-radius: 8px; color: var(--muted);
    transition: background .12s, color .12s;
}
.tq-icon-btn:hover { background: var(--hover); color: var(--accent); }
.tq-icon-btn-danger:hover { background: var(--danger-soft); color: var(--danger); }

/* Étoile section préférée */
.tq-section-star { color: var(--muted); }
.tq-section-star:hover { background: #FEF9C3; color: #CA8A04; }
.tq-section-star--on { color: #CA8A04; }
.tq-section-star--on:hover { background: #FEF9C3; color: #92400E; }

/* Bouton cloche (favori / suivi de section dans la sidebar) */
.tq-section-fav { color: var(--muted); }
.tq-section-fav:hover { background: #EDE9FE; color: #7C3AED; }
.tq-section-fav--on { color: #7C3AED; }
.tq-section-fav--on:hover { background: #EDE9FE; color: #5B21B6; }

/* Barre d'outils sidebar (corbeille) */
.tq-sidebar-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.tq-tool-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.tq-tool-btn:hover { background: var(--hover); color: var(--accent); }

/* Cloche notifications dans la topbar */
.tq-notif-bell { position: relative; }
.tq-notif-bell-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Badge rouge — fonctionne dans la topbar ET sur mobile */
.tq-notif-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
    /* Animation pour attirer l'attention */
    animation: tq-notif-pop .3s ease;
}
@keyframes tq-notif-pop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Sur mobile : la cloche est visible dans la topbar sans ouvrir le menu.
   Le texte "Notifications" est masqué comme les autres liens nav. */
@media (max-width: 900px) {
    .tq-notif-bell span:last-child { display: none; }
    /* Badge légèrement plus grand sur mobile pour la lisibilité */
    .tq-notif-badge { min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; top: -6px; right: -7px; }
}

/* ── Badge "modifié par un collègue" sur chaque ligne de tâche ── */
.tq-task-modified-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7C3AED;
    margin-right: 6px;
    box-shadow: 0 0 0 2px rgba(124,58,237,.25);
    animation: tq-dot-pulse 2s ease-in-out infinite;
    cursor: default;
    vertical-align: middle;
    align-self: center;
}
@keyframes tq-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(124,58,237,.25); }
    50%       { box-shadow: 0 0 0 5px rgba(124,58,237,.08); }
}

/* Modale large (corbeille, notifications) */
.tq-modal-wide { width: min(520px, 94vw); max-height: 80vh; overflow-y: auto; }

/* 
   CHAMPS DE FORMULAIRE
    */
.tq-field { display: flex; flex-direction: column; gap: 5px; }
.tq-label { font-size: 13px; font-weight: 500; color: var(--text-strong); }
.tq-field-error { font-size: 12px; color: var(--danger); }

.tq-input {
    width: 100%;
    padding: 9px 14px;
    font-family: var(--font); font-size: 13.5px; color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--stroke);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s;
}
.tq-input::placeholder { color: #A8B9CC; }
.tq-input:hover  { border-color: #B8C7DA; }
.tq-input:focus  { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* 
   MODALES
    */
.tq-modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(15,23,42,.4);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: tq-fade-in .15s ease;
}
/* FIX : modal-confirm doit toujours passer au-dessus des autres modales
   (il sert à confirmer une action déclenchée depuis une autre modale,
   comme la suppression unitaire dans la corbeille). */
#modal-confirm.tq-modal-overlay { z-index: 600; }
.tq-modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    width: 100%; max-width: 460px;
    animation: tq-slide-up .2s ease;
}
.tq-modal-sm { max-width: 380px; }

/* ── Flag picker coloré ── */
.tq-flag-picker { position: relative; }
.tq-flag-picker-selected {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border: 1px solid var(--stroke);
    border-radius: var(--radius-sm); background: var(--surface);
    cursor: pointer; font-size: 14px; color: var(--text-strong);
    min-height: 40px; user-select: none;
}
.tq-flag-picker-selected:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tq-flag-picker-dropdown {
    position: fixed;
    background: var(--surface); border: 1px solid var(--stroke);
    border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 9999; max-height: 200px; overflow-y: auto;
    min-width: 200px;
}
.tq-flag-picker-option {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; cursor: pointer; font-size: 13px;
    color: var(--text-strong);
}
.tq-flag-picker-option:hover { background: var(--hover); }
.tq-flag-picker-option.selected { background: var(--accent-soft); }
.tq-flag-dot {
    width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
    display: inline-block;
}
.tq-flag-dot--none { border: 2px solid var(--stroke); background: transparent; }

.tq-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--stroke);
}
.tq-modal-title  { font-size: 16px; font-weight: 700; color: var(--text-strong); }
.tq-modal-close  { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.tq-modal-close:hover { background: var(--surface-alt); color: var(--text); }
.tq-modal-body   { padding: 20px 24px; overflow: visible; }
.tq-modal-body p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.tq-modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--stroke);
}

/* 
   ADMIN
    */
.tq-admin-wrap   { padding: 28px 24px 60px; max-width: 960px; margin: 0 auto; }

/* Topbar titre + bouton retour */
.adm-topbar {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.adm-back-btn { flex-shrink: 0; align-self: flex-start; }
.adm-boardname { font-size: 14px; color: var(--muted); margin-top: 2px; }
.adm-invite-code {
    margin-top: 6px; font-size: 12px; color: #475569;
}
.adm-invite-code code {
    background: #EFF6FF; padding: 2px 8px; border-radius: 6px;
    font-family: monospace; color: #1D4ED8;
}

/* Ligne Logo + Invitation côte à côte */
.adm-settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 680px) {
    .adm-settings-row { grid-template-columns: 1fr; }
}
.adm-settings-card { display: flex; flex-direction: column; gap: 14px; min-height: 160px; }
.adm-card-title {
    font-size: 13px; font-weight: 700; color: var(--text-strong);
    padding-bottom: 10px; border-bottom: 1px solid var(--stroke);
}

/* Logo */
.adm-logo-body { display: flex; align-items: center; gap: 24px; padding: 12px 0; flex: 1; }
.adm-logo-preview { flex-shrink: 0; }
.adm-logo-img {
    width: 80px; height: 80px; border-radius: 18px;
    object-fit: cover; border: 2px solid #E2E8F0;
}
.adm-logo-placeholder {
    width: 80px; height: 80px; border-radius: 18px;
    background: #EFF6FF; border: 2px dashed #BFDBFE;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
}
.adm-logo-actions { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1; }
.adm-logo-pick-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-file-label { cursor: pointer; font-size: 12px !important; padding: 7px 12px !important; }
.adm-fname { font-size: 11px; color: var(--muted); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-logo-hint { font-size: 11px; color: var(--muted); }
.tq-btn-ghost-danger {
    background: none; border: 1px solid #FECACA;
    color: var(--danger); font-size: 12px !important;
    padding: 5px 10px !important;
}
.tq-btn-ghost-danger:hover { background: var(--danger-soft); }
.adm-del-logo { align-self: flex-start; }

/* Invitation */
.adm-invite-form { display: flex; flex-direction: column; gap: 8px; }
.adm-invite-msg { resize: vertical; font-family: inherit; }

.tq-admin-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.tq-admin-title  {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 700; color: var(--text-strong);
}

.tq-card {
    background: var(--surface); border: 1px solid var(--stroke);
    border-radius: var(--radius-lg); overflow: hidden;
    padding : 15px;
}
.tq-table { width: 100%; border-collapse: collapse; }
.tq-table th {
    padding: 12px 16px; text-align: left;
    font-size: 12px; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: .04em;
    background: var(--surface-alt); border-bottom: 1px solid var(--stroke);
}
.tq-table td {
    padding: 14px 16px; border-bottom: 1px solid var(--stroke);
    vertical-align: middle;
}
.tq-table tr:last-child td { border-bottom: none; }
.tq-table tr:hover td { background: var(--row-hover); }

.tq-user-cell   { display: flex; align-items: center; gap: 12px; }
.tq-user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    font-weight: 700; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tq-user-email { font-weight: 500; color: var(--text-strong); }

/* 
   ANIMATIONS
    */
@keyframes tq-fade-in {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes tq-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tq-flash-new {
    0%   { background: #EEF5FF; border-color: #B9D4FF; }
    100% { background: transparent; border-color: transparent; }
}
.tq-task-item.flash-new > .tq-task-row {
    animation: tq-flash-new 1.2s ease forwards;
}

/* ================================================================
   TOOLBAR  (recherche + filtres)
   ================================================================ */
.tq-toolbar {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; padding-bottom: 10px;
    border-bottom: 1px solid var(--stroke);
    flex-shrink: 0;
}
.tq-toolbar-search  { position: relative; flex: 1; min-width: 160px; }
.tq-search-icon {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    color: var(--muted); pointer-events: none;
}
.tq-search-input  { padding-left: 32px !important; padding-right: 28px !important; }
.tq-search-clear  {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: 14px; padding: 2px 4px;
    border-radius: 4px; line-height: 1;
}
.tq-search-clear:hover { color: var(--text); background: var(--surface-alt); }
.tq-toolbar-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tq-filter-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 500; color: var(--muted);
    background: var(--surface-alt); border: 1px solid var(--stroke);
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap; min-height: 36px;
}
.tq-filter-btn:hover { background: var(--hover); color: var(--accent); border-color: var(--accent); }
.tq-filter-btn[data-active="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.tq-filter-select {
    padding: 7px 10px; border-radius: var(--radius-sm);
    font-size: 12px; color: var(--text);
    background: var(--surface-alt); border: 1px solid var(--stroke);
    cursor: pointer; min-height: 36px;
}

/* ── Dates d'écheance ── */
.tq-task-due {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 500;
    padding: 2px 7px; border-radius: 99px;
    background: #EFF6FF; color: #2563EB;
    border: 1px solid #BFDBFE; flex-shrink: 0;
}
.tq-task-due--overdue {
    background: #FEF2F2; color: #DC2626; border-color: #FECACA;
    animation: tq-pulse-danger 1.5s ease infinite;
}
@keyframes tq-pulse-danger { 0%,100% { opacity:1; } 50% { opacity:.65; } }

.tq-task-est {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 11px; font-weight: 500;
    padding: 2px 7px; border-radius: 99px;
    background: #F8FAFC; color: #64748B;
    border: 1px solid #E2E8F0; flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* ── Bouton hamburger (caché > 900px) ── */
.tq-sidebar-toggle {
    display: none; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    border: 1px solid var(--stroke); background: var(--surface-alt);
    border-radius: var(--radius-sm); cursor: pointer; color: var(--text);
}

/* ── Overlay sidebar mobile ── */
.tq-sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 149; background: rgba(15,23,42,.4); backdrop-filter: blur(2px); }
.tq-sidebar-overlay--visible { display: block; }

/* ================================================================
   TABLETTE  (≤ 900px)
   ================================================================ */
@media (max-width: 900px) {
    .tq-layout { grid-template-columns: 1fr; }

    /* Sidebar = drawer latéral */
    .tq-sidebar {
        position: fixed;
        top: var(--topbar-h); left: 0; bottom: 0;
        width: 280px; z-index: 150;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        border-left: none;
        transform: translateX(-100%);
        transition: transform .25s ease;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0,0,0,.14);
    }
    .tq-sidebar--open { transform: translateX(0); }
    .tq-sidebar-brand { display: flex; }
    .tq-sidebar-toggle { display: flex; }
    .tq-progress-bar { width: 80px; }
}

/* ================================================================
   MOBILE  (≤ 600px)
   ================================================================ */
@media (max-width: 600px) {
    .tq-app { padding: 8px; gap: 8px; }
    .tq-main-card { padding: 12px; gap: 12px; }

    /* Header section */
    .tq-main-header { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 12px; }
    .tq-main-header-left  { gap: 10px; }
    .tq-main-header-right { display: flex; flex-wrap: wrap; gap: 6px; }

    .tq-add-bar { flex-direction: column; }

    /* Toolbar scroll horizontal */
    .tq-toolbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; gap: 6px; }
    .tq-toolbar-search { min-width: 120px; }
    .tq-filter-btn { padding: 6px 10px; font-size: 11px; min-height: 40px; }
    .tq-filter-select { font-size: 11px; padding: 6px 8px; min-height: 40px; }

    /* Tâches : zones tactiles agrandies */
    .tq-task-row { padding: 11px 8px; }
    .tq-checkbox-box { width: 24px; height: 24px; border-radius: 8px; }
    .tq-icon-btn { width: 36px; height: 36px; }
    .tq-task-title { font-size: 14px; }
    .tq-row-actions { display: flex; }      /* toujours visible, pas de hover */
    .tq-section-actions { display: flex; }

    .tq-metrics { grid-template-columns: 1fr 1fr; }
    .tq-metric-value { font-size: 22px; }

    .tq-nav-link span { display: none; }
    .tq-nav-link { padding: 6px 8px; }
    .tq-topbar { padding: 0 10px; gap: 6px; }
    .tq-auth-card { padding: 24px 16px; }

    /* Modales : slide-up depuis le bas */
    .tq-modal-overlay { padding: 0; align-items: flex-end; }
    .tq-modal {
        max-width: 100%; width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 90vh; overflow-y: auto;
    }

    .tq-board-switch-name { max-width: 80px; }
}

/* ================================================================
   TOUCH  (devices tactiles) : anti-zoom iOS + tap targets 44px
   ================================================================ */
@media (hover: none) and (pointer: coarse) {
    /* Empêche iOS de zoomer sur le focus d'un input < 16px */
    input, select, textarea { font-size: 16px !important; }

    /* Touch targets minimum 44×44 px (WCAG 2.5.8) */
    .tq-icon-btn     { width: 44px; height: 44px; }
    .tq-filter-btn   { min-height: 44px; }
    .tq-filter-select { min-height: 44px; }
    .tq-checkbox-box { width: 26px; height: 26px; }
    .tq-btn          { min-height: 44px; }
    .tq-nav-link     { min-height: 44px; }

    /* Toujours afficher les boutons d'action (pas de hover sur mobile) */
    .tq-row-actions     { display: flex !important; }
    .tq-section-actions { display: flex !important; }
}


/* Empecher le drag de se declencher sur les elements interactifs */
.tq-task-row .tq-checkbox-wrap,
.tq-task-row .tq-row-actions,
.tq-task-row input,
.tq-task-row button,
.tq-task-row label {
    cursor: default;
}


/* Ligne bleue AVANT l element cible */
.tq-task-item.tq-drop-before {
    position: relative;
}
.tq-task-item.tq-drop-before::before {
    content: '';
    display: block;
    position: absolute;
    top: -2px;
    left: 8px;
    right: 8px;
    height: 3px;
    background: var(--accent);
    border-radius: 99px;
    z-index: 10;
    box-shadow: 0 0 6px rgba(37,99,235,.5);
}
/* Petit cercle au debut de la ligne */
.tq-task-item.tq-drop-before::after {
    content: '';
    display: block;
    position: absolute;
    top: -5px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    z-index: 11;
}

/* Drag sur toute la ligne */
.tq-task-row {
    cursor: grab;
    user-select: none;
}
.tq-task-row:active { cursor: grabbing; }

/* Empecher le drag sur les elements interactifs */
.tq-task-row input,
.tq-task-row button,
.tq-task-row label,
.tq-task-row .tq-checkbox-wrap,
.tq-task-row .tq-row-actions {
    cursor: default;
}


/* Element en cours de deplacement */
.tq-task-item.tq-chosen > .tq-task-row {
    background: var(--accent-soft);
    border-radius: var(--radius-md);
}
.tq-task-item.tq-dragging {
    opacity: 0.5;
}

/* Fantome (placeholder a la position originale) */
.tq-task-item.tq-ghost > .tq-task-row {
    background: var(--accent-soft) !important;
    border: 2px dashed var(--accent) !important;
    border-radius: var(--radius-md);
    opacity: 0.55;
}
.tq-task-item.tq-ghost .tq-task-title,
.tq-task-item.tq-ghost .tq-row-actions { visibility: hidden; }

/* Trait bleu indicateur de position de depot */
.tq-drop-indicator {
    height: 3px;
    background: var(--accent);
    border-radius: 99px;
    margin: 2px 8px;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(37,99,235,.5);
    animation: tq-indicator-pop .15s ease;
}
@keyframes tq-indicator-pop {
    from { opacity: 0; transform: scaleX(.7); }
    to   { opacity: 1; transform: scaleX(1); }
}

/* Curseur global pendant le drag */
body.tq-is-dragging * { cursor: grabbing !important; }

/* Elements interactifs : ne pas etre handles de drag */
.tq-task-row input,
.tq-task-row button,
.tq-task-row label,
.tq-task-row .tq-checkbox-wrap,
.tq-task-row .tq-row-actions { cursor: default; }

/* Section sortable */
.tq-section-item.tq-ghost { opacity: 0.5; border: 2px dashed var(--accent); }
.tq-section-item.tq-chosen { box-shadow: var(--shadow-md); }

/*  Scrollbar discrte  */


/* ================================================================
   BOUTON PLIER / DEPLIER (fleche avant les taches avec enfants)
================================================================ */
.tq-toggle-btn {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer !important;
    border-radius: 6px;
    color: var(--muted);
    padding: 0;
    transition: background .12s, color .12s;
    /* IMPORTANT : visible meme dans .tq-task-row */
    visibility: visible !important;
    opacity: 1 !important;
}
.tq-toggle-btn:hover {
    background: var(--hover);
    color: var(--accent);
}
.tq-toggle-icon {
    display: block;
    transition: transform .2s ease;
    pointer-events: none;
}
.tq-toggle-placeholder {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ================================================================
   SELECTION PAR CLAVIER / CLIC
================================================================ */
.tq-task-item { outline: none; }
.tq-task-item:focus > .tq-task-row {
    outline: 2px solid rgba(37,99,235,.4);
    outline-offset: 1px;
    border-radius: var(--radius-md);
}
.tq-task-item.tq-selected > .tq-task-row {
    background: var(--row-sel) !important;
    border-color: var(--row-sel-br) !important;
}

/* ================================================================
   DRAG & DROP
================================================================ */

/* Drag sur toute la ligne */
.tq-task-row {
    cursor: grab;
}
.tq-task-row:active {
    cursor: grabbing;
}
/* Pas de grab sur les elements interactifs */
.tq-task-row input,
.tq-task-row label,
.tq-task-row .tq-checkbox-wrap,
.tq-task-row .tq-row-actions,
.tq-task-row .tq-child-count {
    cursor: default;
}
/* Le toggle-btn garde son propre curseur pointer */
.tq-task-row .tq-toggle-btn {
    cursor: pointer !important;
}

/* Fantome (placeholder a la place de l element deplace) */
li.tq-task-item.tq-ghost > .tq-task-row {
    opacity: 0.25;
    background: var(--accent-soft) !important;
    border: 2px dashed var(--accent) !important;
    border-radius: var(--radius-md);
}
/* Element en cours de deplacement (suit le curseur) */
li.tq-task-item.tq-dragging {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(37,99,235,.25), 0 2px 8px rgba(0,0,0,.1);
    border: 1.5px solid var(--accent);
    opacity: .97;
}
/* Survol avant drop */
li.tq-task-item.tq-chosen > .tq-task-row {
    background: var(--hover);
    border-radius: var(--radius-md);
}

/* Indicateur de position : ligne bleue + cercle */
li.tq-task-item.tq-drop-here {
    position: relative;
}
li.tq-task-item.tq-drop-here::before {
    content: '';
    display: block;
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 99px;
    z-index: 20;
    box-shadow: 0 0 8px rgba(37,99,235,.5);
    pointer-events: none;
}
li.tq-task-item.tq-drop-here::after {
    content: '';
    display: block;
    position: absolute;
    top: -6px;
    left: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    z-index: 21;
    pointer-events: none;
}


/* Sentinelle "remonter à la racine" — apparaît en bas du ul racine pendant le drag */
li.tq-root-sentinel {
    list-style: none;
    margin-top: 6px;
}
.tq-root-sentinel-inner {
    border: 2px dashed var(--accent);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    background: var(--accent-soft);
    cursor: default;
    user-select: none;
}

/* ================================================================
   TACHES COCHEES
================================================================ */
.tq-done-title {
    text-decoration: line-through;
    color: var(--muted) !important;
    opacity: .75;
}
.tq-cb-parent-done {
    background: var(--muted) !important;
    border-color: var(--muted) !important;
    opacity: .55;
}

/* ================================================================
   DOUBLE-CLIC SUR TITRE
================================================================ */
.tq-task-title {
    cursor: pointer;
}
.tq-task-title:hover {
    color: var(--accent);
}
.tq-task-item.is-done .tq-task-title:hover {
    color: var(--muted);
}

/* ================================================================
   SCROLLBAR
================================================================ */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Wrapper interne : toggle (hors drag) + row (draggable) */
.tq-task-item-inner {
    display: flex;
    align-items: center;
    gap: 0;
}
.tq-task-item-inner > .tq-task-row {
    flex: 1;
    min-width: 0;
}
/* Le toggle-btn est hors de .tq-task-row donc hors du handle SortableJS */
.tq-task-item-inner > .tq-toggle-btn,
.tq-task-item-inner > .tq-toggle-placeholder {
    flex-shrink: 0;
}

/* ================================================================
   PICKER D EMOJI
================================================================ */
.tq-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
    padding: 10px;
    background: var(--surface-alt);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    max-height: 120px;
    overflow-y: auto;
}
.tq-emoji-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--surface);
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s, border-color .12s, transform .1s;
    padding: 0;
    line-height: 1;
}
.tq-emoji-btn:hover {
    background: var(--hover);
    border-color: var(--accent);
    transform: scale(1.15);
}
.tq-emoji-btn.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    transform: scale(1.1);
}

.tq-task-comment-indicator{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-left:10px;
    padding:4px 8px;
    border-radius:999px;
    background:#EFF6FF;
    border:1px solid #BFDBFE;
    color:#1D4ED8;
    font-size:12px;
    font-weight:700;
    opacity:1;
    box-shadow:0 1px 2px rgba(37,99,235,.12);
}
.tq-task-comment-indicator-icon{
    font-size:15px;
    line-height:1;
}
.tq-task-comment-indicator-label{
    line-height:1;
    letter-spacing:.01em;
}
.task-flag,
.tq-task-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border-radius: 9999px !important;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .task-flag *,
    .tq-task-flag * {
        border-radius: 9999px !important;
    }

.tq-task-row .task-flag,
.tq-task-row .tq-task-flag {
    white-space: nowrap;
    border-radius: 9999px !important;
}
#modal-task-comment{
    min-height:120px;
    resize:vertical;
}
.tq-alert{
    padding:12px 14px;
    border-radius:12px;
    margin-bottom:16px;
    font-size:14px;
    border:1px solid transparent;
}
.tq-alert-success{background:#ECFDF5;border-color:#A7F3D0;color:#065F46;}
.tq-alert-error{background:#FEF2F2;border-color:#FECACA;color:#991B1B;}


/* ── Board name in sidebar ── */
.tq-sidebar-brand { flex-direction: row; align-items: center; gap: 12px; padding: 16px 16px 8px; }
.tq-board-name { font-size: 15px; font-weight: 700; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.tq-board-sublabel { font-size: 11px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }

/* ── Comment button on tasks ── */
.tq-task-comment-indicator.tq-comment-btn {
    cursor: pointer; border: none; background: none; padding: 2px 6px;
    border-radius: 6px; display: inline-flex; align-items: center; gap: 4px;
    transition: background .15s;
}
.tq-task-comment-indicator.tq-comment-btn:hover { background: #EFF6FF; }

/* ── Comment popup modal ── */
.tq-modal-comment { max-width: 520px; }

/* ── SuperAdmin Users pages ── */
.sa-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.sa-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sa-page-title { font-size: 20px; font-weight: 700; color: #0F172A; margin: 0; }
.sa-page-sub { font-size: 13px; color: #64748B; margin: 4px 0 0; }
.sa-cards-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.sa-card { background: #fff; border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-sm); }
.sa-card-sm { flex: 1; min-width: 120px; }
.sa-card-danger { border-color: #FECACA; background: #FFF5F5; }
.sa-card-label { font-size: 11px; font-weight: 600; color: #94A3B8; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.sa-section-title { font-size: 14px; font-weight: 600; color: #0F172A; margin: 0 0 12px; }
.sa-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.sa-input { padding: 8px 12px; border: 1px solid var(--stroke); border-radius: var(--radius-sm); font-size: 13px; outline: none; }
.sa-input:focus { border-color: var(--accent); }
.sa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sa-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--stroke); font-size: 11px; font-weight: 600; color: #64748B; text-transform: uppercase; letter-spacing: .4px; }
.sa-table td { padding: 10px 12px; border-bottom: 1px solid #F1F5F9; color: #374151; vertical-align: middle; }
.sa-table tr:hover td { background: var(--row-hover); }
.sa-table-sm th, .sa-table-sm td { padding: 6px 8px; font-size: 12px; }
.sa-row-danger td { background: #FFF5F5; }
.sa-row-warn   td { background: #FFFBEB; }
.sa-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.sa-badge-success { background: var(--success-soft); color: var(--success); }
.sa-badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.sa-badge-warn    { background: #FEF3C7; color: #92400E; }
.sa-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; cursor: pointer; border: none; text-decoration: none; transition: background .15s; }
.sa-btn-primary  { background: var(--accent); color: #fff; }
.sa-btn-primary:hover { background: #1D4ED8; }
.sa-btn-secondary { background: var(--surface-alt); color: var(--text); border: 1px solid var(--stroke); }
.sa-btn-secondary:hover { background: var(--hover); }
.sa-btn-success  { background: var(--success); color: #fff; }
.sa-btn-success:hover { background: #15803D; }
.sa-btn-danger   { background: var(--danger); color: #fff; }
.sa-btn-danger:hover { background: #B91C1C; }
.sa-btn-ghost    { background: transparent; color: #64748B; }
.sa-btn-ghost:hover { background: var(--hover); }
.sa-btn-warn     { background: #D97706; color: #fff; }
.sa-btn-warn:hover { background: #B45309; }
.sa-btn-xs { padding: 4px 10px; font-size: 12px; }


/* =============================================================
   TODO QUICK v7 — UX + MOBILE
   ============================================================= */

/* ── Barre d'outils (recherche + filtres) ── */
.tq-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding-bottom: 4px;
}
.tq-toolbar-search {
    flex: 1; min-width: 180px;
    position: relative; display: flex; align-items: center;
}
.tq-search-icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.tq-search-input { padding-left: 36px !important; padding-right: 32px !important; }
.tq-search-clear {
    position: absolute; right: 10px;
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: 14px; padding: 2px 4px; border-radius: 4px;
}
.tq-search-clear:hover { color: var(--danger); background: var(--danger-soft); }
.tq-toolbar-filters { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tq-filter-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 500;
    background: var(--surface); border: 1.5px solid var(--stroke);
    color: var(--muted); cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.tq-filter-btn:hover { background: var(--hover); }
.tq-filter-btn[data-active="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tq-filter-select {
    padding: 7px 10px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--stroke); background: var(--surface);
    font-size: 12px; color: var(--text); cursor: pointer; max-width: 150px;
}
.tq-filter-select:focus { border-color: var(--accent); outline: none; }

/* ── Date d'echeance sur les taches ── */
.tq-task-due {
    display: inline-flex; align-items: center;
    padding: 1px 7px; border-radius: 99px;
    font-size: 11px; font-weight: 600;
    background: var(--surface-alt); color: var(--muted);
    border: 1px solid var(--stroke); white-space: nowrap; flex-shrink: 0;
}
.tq-task-due--overdue {
    background: var(--danger-soft); color: var(--danger); border-color: #FECACA;
    animation: tq-pulse-due 2s ease infinite;
}
@keyframes tq-pulse-due { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }

/* ── Compteur sous-taches ameliore ── */
.tq-task-item.is-done .tq-child-count { background: var(--success-soft); color: var(--success); border-color: #BBF7D0; }

/* ── Sidebar hamburger toggle (mobile) ── */
.tq-sidebar-toggle {
    display: none;
    align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--surface); border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    font-size: 13px; font-weight: 600; color: var(--text);
    cursor: pointer; width: 100%; transition: background .15s;
}
.tq-sidebar-toggle:hover { background: var(--hover); }

/* ── Overlay sidebar mobile ── */
.tq-sidebar-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 198;
    background: rgba(15,23,42,.5);
}
.tq-sidebar-overlay--visible { display: block; }

/* ── Menu "…" (plus d'actions) ── */
.tq-more-btn { display: none; }
.tq-more-menu {
    position: absolute; z-index: 500;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    min-width: 140px; overflow: hidden;
    animation: tq-fade-in .15s ease;
}
.tq-more-menu-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 12px 16px;
    background: none; border: none; cursor: pointer;
    font-size: 14px; color: var(--text-strong); text-align: left;
}
.tq-more-menu-item:hover { background: var(--hover); }
.tq-more-menu-danger { color: var(--danger); }
.tq-more-menu-danger:hover { background: var(--danger-soft); }

/* ── Bouton + inline dans l'input (mobile seulement) ── */
.tq-add-inline-btn {
    display: none;
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: var(--accent); color: #fff; border: none;
    cursor: pointer; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── Bouton filtres (mobile seulement) ── */
.tq-filters-mobile-btn { display: none; }

/* ── RESPONSIVE v7 ── */
@media (max-width: 900px) {
    .tq-layout { grid-template-columns: 1fr; }
    .tq-sidebar-toggle { display: flex; }
    .tq-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 199;
        width: 300px; max-width: 85vw;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        transform: translateX(-105%);
        transition: transform .25s cubic-bezier(.4,0,.2,1);
        overflow-y: auto; flex-direction: column;
        padding: 20px 16px; gap: 16px;
    }
    .tq-sidebar--open { transform: translateX(0); }
    .tq-sidebar-brand { display: flex; flex-direction: row; align-items: center; }
    .tq-main-card { min-height: 300px; }
    .tq-progress-bar { width: 80px; }
    .tq-section-list-wrap { flex: 1; }
}

@media (max-width: 600px) {
    :root { --topbar-h: 48px; }

    /* Point 6 : safe area iOS */
    .tq-app { padding-bottom: env(safe-area-inset-bottom, 0px); }
    .tq-modal-overlay { padding-bottom: env(safe-area-inset-bottom, 0px); }

    /* Anti-zoom iOS */
    input, select, textarea { font-size: 16px !important; }
    .tq-input { font-size: 16px !important; }

    .tq-app { padding: 8px 10px; gap: 8px; }
    .tq-main-card { padding: 12px; gap: 12px; border-radius: var(--radius-md); }
    .tq-auth-card { padding: 24px 16px; }

    /* Topbar */
    .tq-topbar { padding: 0 10px; gap: 8px; }
    .tq-logo-text { display: none; }
    .tq-nav-link span { display: none; }
    .tq-nav-link { padding: 6px 8px; }
    .tq-board-switch-name { max-width: 80px; }

    /* Header mobile dédié : plus proche de la maquette */
    .tq-main-header { display: none; }
    .tq-mobile-hero {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--stroke);
    }
    .tq-mobile-stats {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    .tq-mobile-stats .tq-badge {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Point 3 : toolbar responsive */
    .tq-toolbar { flex-wrap: wrap; gap: 6px; }
    .tq-toolbar-search { width: 100%; min-width: 0; }
    .tq-filters-mobile-btn { display: flex; }
    .tq-toolbar-filters {
        display: none; width: 100%;
        flex-wrap: wrap; gap: 6px;
        padding: 8px 0 2px;
        border-top: 1px solid var(--stroke);
    }
    .tq-toolbar-filters.tq-filters-open { display: flex; }
    .tq-filter-select { flex: 1; min-width: 0; font-size: 14px; }
    .tq-filter-btn { flex: 1; justify-content: center; }

    /* Point 2 : barre ajout compacte */
    .tq-add-bar { flex-direction: row; gap: 0; }
    .tq-add-input-wrap { flex: 1; }
    .tq-add-input { padding-right: 48px !important; }
    .tq-add-inline-btn { display: flex; }
    .tq-add-desktop-btn { display: none; }
    .tq-kbd-hint { display: none; }

    /* Point 1 : actions tâches — seul renommer visible, reste dans menu … */
    .tq-row-actions { display: flex !important; gap: 0; }
    .tq-action-secondary { display: none !important; }
    .tq-more-btn { display: flex !important; }

    /* Bug 2 fix : section actions mobile — layout vertical pour éviter le chevauchement du nom.
       On sort les actions de leur position absolute et on les met sous le bouton principal. */
    .tq-section-item { overflow: visible; }
    .tq-section-actions {
        display: flex !important;
        position: static !important;
        transform: none !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 10px 8px 58px !important; /* aligner avec le texte (avatar 38px + gap 10px + padding 10px) */
        gap: 0 !important;
        right: auto !important;
        top: auto !important;
        justify-content: flex-start;
    }
    .tq-section-actions .tq-icon-btn {
        width: 36px !important;
        height: 36px !important;
        color: var(--muted);
    }
    /* Réduire le padding bas du bouton section pour coller au layout */
    .tq-section-btn { padding-bottom: 4px !important; }

    /* Tâches */
    .tq-task-row { padding: 11px 6px; min-height: 44px; }
    .tq-checkbox-box { width: 26px; height: 26px; border-radius: 7px; }
    .tq-icon-btn { width: 40px; height: 40px; }
    .tq-toggle-btn { padding: 6px; }
    .tq-task-title { font-size: 14px; }
    .tq-children { padding-left: 14px; }
    .tq-task-due { font-size: 10px; padding: 1px 5px; }
    .tq-task-comment-indicator-label { display: none; }

    /* Metrics */
    .tq-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
    .tq-metric-value { font-size: 20px; }

    /* Modales slide-up */
    .tq-modal-overlay { padding: 0; align-items: flex-end; }
    .tq-modal {
        max-width: 100%; width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 90vh; overflow-y: auto;
    }

    .tq-auth-wrap { padding: 12px; align-items: flex-start; }
    .sa-card { overflow-x: auto; }
}

/* Désactiver hover sur touch */
@media (hover: none) {
    .tq-task-row:hover { background: transparent; }
    .tq-section-item:hover { border-color: var(--stroke); box-shadow: none; }
    .tq-icon-btn:hover { background: none; color: var(--muted); }
}



.tq-date-quick-actions { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.tq-date-quick-btn { border:1px solid var(--line); background:#fff; color:var(--text); border-radius:999px; padding:6px 10px; font-size:12px; cursor:pointer; }
.tq-date-quick-btn:hover { background:var(--hover); border-color:var(--accent); color:var(--accent); }
.tq-filter-date { min-width: 150px; }
.tq-task-planned { display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:999px; background:#DBEAFE; color:#1D4ED8; font-size:12px; font-weight:600; white-space:nowrap; }
.tq-task-planned--today { background:#EDE9FE; color:#6D28D9; border:1px solid #DDD6FE; }

/* ===== Mobile UX refresh (isolated under 600px) ===== */
.tq-mobile-section-switch {
    display: none !important;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

.tq-mobile-sheet .tq-modal {
    max-width: 100%;
    width: 100%;
    border-radius: 22px 22px 0 0;
    margin: 0;
}
.tq-mobile-sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #CBD5E1;
    margin: 10px auto 2px;
}
.tq-mobile-section-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tq-mobile-section-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    text-align: left;
}
.tq-mobile-section-option.is-active {
    border-color: #BFDBFE;
    background: #EFF6FF;
}
.tq-mobile-section-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E2E8F0;
    color: #1E293B;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.tq-mobile-section-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tq-mobile-section-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-strong);
}
.tq-mobile-section-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}
.tq-mobile-section-check {
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
}
.tq-mobile-move-help {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 600px) {
    .tq-mobile-hero-top { align-items: center; }
    .tq-task-row {
        display: grid;
        grid-template-columns: 28px 28px minmax(0,1fr) auto 40px;
        align-items: center;
        column-gap: 8px;
        row-gap: 6px;
        padding: 10px 4px;
    }
    .tq-checkbox-wrap { grid-column: 2; }
    .tq-toggle-btn, .tq-toggle-placeholder { grid-column: 1; }
    .tq-task-title {
        grid-column: 3;
        min-width: 0;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: 1.3;
        max-height: 2.6em;
    }
    .tq-task-est,
    .tq-task-planned,
    .tq-task-due,
    .tq-task-comment-indicator,
    .tq-task-flag,
    .tq-child-count {
        grid-column: 3 / span 2;
        justify-self: start;
        max-width: 100%;
        margin-top: 0;
    }
    .tq-more-btn {
        grid-column: 5;
        grid-row: 1;
        align-self: center;
        justify-self: end;
    }
    .tq-row-actions {
        grid-column: 5;
        grid-row: 1;
        justify-self: end;
    }
    .tq-task-comment-indicator,
    .tq-task-planned,
    .tq-task-due,
    .tq-task-flag,
    .tq-child-count,
    .tq-task-est {
        font-size: 11px;
    }
}


/* ===== Mobile premium refresh v4 ===== */
.tq-mobile-actions-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 4px;
}
.tq-mobile-actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tq-mobile-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--stroke);
    background: #fff;
    color: var(--text-strong);
    border-radius: 18px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}
.tq-mobile-action-btn-danger { color: var(--danger); background: #FFF5F5; border-color: #FECACA; }
.tq-mobile-action-ico {
    width: 22px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.tq-mobile-focus { display:none;
    display: none;
    font-size: 12px;
    color: var(--muted);
}
.tq-mobile-focus strong {
    color: var(--text-strong);
    font-weight: 700;
}

@media (max-width: 600px) {
    .tq-main-card { padding: 12px 12px 10px; }
    .tq-mobile-hero { gap: 8px; padding-bottom: 10px; }
    .tq-mobile-avatar { width: 48px; height: 48px; }
    .tq-mobile-profile-name { font-size: 17px; }
    .tq-mobile-progress-row { margin-top: 4px; }
    .tq-mobile-progress-bar { height: 5px; }
    .tq-mobile-stats { gap: 6px; }
    .tq-mobile-stats .tq-badge { padding: 5px 9px; border-radius: 999px; }
    .tq-mobile-focus { display: none; }

    .tq-task-list { gap: 6px; }
    .tq-task-item { position: relative; }
    .tq-task-item-inner {
        align-items: flex-start;
        gap: 6px;
    }
    .tq-task-item-inner > .tq-toggle-btn,
    .tq-task-item-inner > .tq-toggle-placeholder {
        margin-top: 14px;
    }
    .tq-task-row {
        padding: 11px 10px;
        border-radius: 16px;
        border: 1px solid #E2E8F0;
        background: #fff;
        box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
        min-height: 54px;
        display: grid;
        grid-template-columns: 30px minmax(0,1fr) auto;
        column-gap: 10px;
        row-gap: 5px;
        align-items: start;
    }
    .tq-task-row--parent {
        background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
        border-color: #D9E4F2;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    }
    .tq-task-row--child {
        border: 0;
        border-radius: 12px;
        background: rgba(248, 250, 252, 0.92);
        box-shadow: none;
        min-height: 0;
        padding: 8px 8px 8px 0;
        column-gap: 8px;
    }
    .tq-checkbox-wrap { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 2px; }
    .tq-task-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        white-space: normal;
        max-height: 2.8em;
    }
    .tq-task-row--child .tq-task-title {
        font-weight: 560;
    }
    .tq-more-btn {
        display: inline-flex !important;
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: start;
        justify-self: end;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        border: 0;
        background: transparent;
        color: #A8B4C5;
        opacity: .72;
        transition: background-color .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
    }
    .tq-more-btn:hover,
    .tq-more-btn:active {
        background: rgba(148, 163, 184, 0.12);
        color: #64748B;
        opacity: 1;
        transform: scale(1.02);
    }
    .tq-row-actions { display: none !important; }
    .tq-task-est,
    .tq-task-planned,
    .tq-task-due,
    .tq-task-comment-indicator,
    .tq-task-flag,
    .tq-child-count {
        grid-column: 2;
        justify-self: start;
        width: fit-content;
        max-width: calc(100% - 4px);
        margin-top: 0;
    }
    .tq-task-comment-indicator {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        max-width: calc(100% - 4px);
    }
    .tq-task-comment-indicator + .tq-task-planned,
    .tq-task-comment-indicator + .tq-task-due,
    .tq-task-comment-indicator + .tq-task-flag,
    .tq-task-planned + .tq-task-due,
    .tq-task-planned + .tq-task-flag,
    .tq-task-due + .tq-task-flag,
    .tq-task-due + .tq-task-comment-indicator,
    .tq-task-flag + .tq-task-comment-indicator {
        margin-top: 3px;
    }
    .tq-task-row .tq-task-planned + .tq-task-due,
    .tq-task-row .tq-task-planned + .tq-task-flag,
    .tq-task-row .tq-task-due + .tq-task-flag,
    .tq-task-row .tq-task-due + .tq-task-comment-indicator,
    .tq-task-row .tq-task-flag + .tq-task-comment-indicator {
        margin-left: 0;
    }
    .tq-task-due, .tq-task-planned, .tq-task-flag, .tq-child-count, .tq-task-est {
        font-size: 11px;
        padding-top: 3px;
        padding-bottom: 3px;
    }
    .tq-task-due {
        background: #FFF1F2;
        color: #BE123C;
        border: 1px solid #FECDD3;
    }
    .tq-task-flag {
        font-weight: 700;
    }
    .tq-checkbox-box { width: 24px; height: 24px; }
    .tq-toggle-btn {
        width: 24px; height: 24px;
        border-radius: 10px;
        background: transparent;
        color: #94A3B8;
    }
    .tq-children {
        position: relative;
        margin-top: 1px;
        margin-left: 10px;
        padding-left: 16px;
        overflow: hidden;
        max-height: 1400px;
        opacity: 1;
        transform: translateY(0);
        transition: max-height .24s ease, opacity .18s ease, transform .18s ease;
    }
    .tq-children.collapsed {
        display: block;
        max-height: 0;
        opacity: 0;
        transform: translateY(-2px);
        pointer-events: none;
    }
    .tq-children::before {
        content: '';
        position: absolute;
        left: 3px;
        top: 4px;
        bottom: 10px;
        width: 3px;
        border-radius: 999px;
        background: linear-gradient(180deg, #BFDBFE 0%, #E2E8F0 100%);
        opacity: .95;
    }
    .tq-children .tq-task-list {
        gap: 2px;
    }
    .tq-task-item.is-done > .tq-task-item-inner > .tq-task-row {
        background: #F8FAFC;
    }
    .tq-task-item.is-done > .tq-task-item-inner > .tq-task-row .tq-task-title {
        opacity: .72;
    }
    .tq-task-row--child .tq-task-comment-indicator,
    .tq-task-row--child .tq-task-due,
    .tq-task-row--child .tq-task-planned,
    .tq-task-row--child .tq-task-est,
    .tq-task-row--child .tq-task-flag {
        margin-top: 1px;
    }
    .tq-toolbar { gap: 8px; }
    .tq-toolbar-search, .tq-filters-mobile-btn {
        min-height: 40px;
        border-radius: 14px;
    }
    .tq-add-input-wrap { min-height: 44px; }
    .tq-add-inline-btn { width: 38px; height: 38px; border-radius: 12px; }
    .tq-more-menu { display: none !important; }
}

/* ── Sidebar mobile : board switch + déconnexion ── */
.tq-sidebar-mobile-footer {
    margin-top: 12px;
    border-top: 1px solid #E2E8F0;
    padding-top: 12px;
}
.tq-sidebar-mobile-section-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #94A3B8;
    padding: 0 4px 6px;
}
/* Liste des boards */
.tq-sidebar-mobile-board-list {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tq-sidebar-mobile-board-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}
.tq-sidebar-mobile-board-item--active {
    background: #EFF6FF;
    color: #1D4ED8;
    font-weight: 600;
}
.tq-sidebar-mobile-board-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563EB;
    flex-shrink: 0;
}
.tq-sidebar-mobile-board-dot--other {
    background: #CBD5E1;
}
.tq-sidebar-mobile-board-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    background: #DBEAFE;
    color: #1D4ED8;
    padding: 1px 7px;
    border-radius: 20px;
    letter-spacing: .04em;
}
.tq-sidebar-mobile-board-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    padding: 0;
    text-align: left;
}
.tq-sidebar-mobile-board-item:not(.tq-sidebar-mobile-board-item--active):hover {
    background: #F1F5F9;
    cursor: pointer;
}
/* Bouton déconnexion */
.tq-sidebar-mobile-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #EF4444;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
}
.tq-sidebar-mobile-logout:hover { background: #FEF2F2; }

/* Masquer sur desktop (déjà dans la topbar) */
@media (min-width: 769px) {
    .tq-sidebar-mobile-footer { display: none; }
}

/* ================================================================
   JAUGE DE FORCE MOT DE PASSE
================================================================ */
.pwd-rules { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.pwd-rule  { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; transition: color .2s; }
.pwd-rule.ok { color: var(--success); }
.pwd-rule.ok .pwd-rule-ico { color: var(--success); }
.pwd-rule-ico { font-style: normal; width: 14px; text-align: center; font-weight: 700; }
.pwd-gauge-wrap { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.pwd-gauge-bar  { flex: 1; height: 5px; background: var(--stroke); border-radius: 99px; overflow: hidden; }
.pwd-gauge-fill { height: 100%; border-radius: 99px; width: 0; transition: width .3s, background .3s; }
.pwd-gauge-label { font-size: 11px; font-weight: 600; white-space: nowrap; min-width: 70px; }

/* =============================================================
   PROFIL UTILISATEUR — onglets & choix de thème
   ============================================================= */
.tq-profile-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--stroke);
    margin-bottom: 20px;
}
.tq-profile-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s, background .15s;
}
.tq-profile-tab:hover { color: var(--text); background: var(--hover); }
.tq-profile-tab.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.tq-profile-panel { display: none; }
.tq-profile-panel.is-active { display: block; }
.tq-profile-intro {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 16px 0;
    line-height: 1.5;
}
.tq-profile-intro strong { color: var(--text); font-weight: 600; }
.tq-profile-feedback {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}
.tq-profile-feedback.is-success { background: var(--success-soft); color: #166534; }
.tq-profile-feedback.is-error   { background: var(--danger-soft);  color: var(--danger); }

/* Choix du thème : 3 vignettes */
.tq-theme-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
}
.tq-theme-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 2px solid var(--stroke);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: var(--surface);
}
.tq-theme-option:hover { border-color: #B0C0D8; }
.tq-theme-option.is-selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.tq-theme-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tq-theme-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.tq-theme-preview {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    border: 1px solid var(--stroke);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tq-theme-preview-bar {
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}
.tq-theme-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.tq-theme-preview-line {
    height: 3px;
    border-radius: 2px;
}
.tq-theme-preview-line-short { width: 60%; }

/* Preview clair */
.tq-theme-preview-light                       { background: #F5F7FB; border-color: #D9E0EA; }
.tq-theme-preview-light .tq-theme-preview-bar { background: #2563EB; }
.tq-theme-preview-light .tq-theme-preview-line{ background: #CBD5E1; }

/* Preview sombre */
.tq-theme-preview-dark                        { background: #0D1117; border-color: #30363D; }
.tq-theme-preview-dark .tq-theme-preview-bar  { background: #388BFD; }
.tq-theme-preview-dark .tq-theme-preview-line { background: #30363D; }

/* Preview auto : split gauche clair / droite sombre */
.tq-theme-preview-auto {
    background: linear-gradient(to right, #F5F7FB 50%, #0D1117 50%);
    border-color: #B0C0D8;
}
.tq-theme-preview-auto .tq-theme-preview-bar {
    background: linear-gradient(to right, #2563EB 50%, #388BFD 50%);
}
.tq-theme-preview-auto .tq-theme-preview-line {
    background: linear-gradient(to right, #CBD5E1 50%, #30363D 50%);
}

/* =============================================================
   SÉLECTION MULTIPLE — tâches & barre d'actions flottante
   ============================================================= */

/* ===== SÉLECTION MULTIPLE : visuel fort et propre ===== */
.tq-task-item.tq-multi-selected {
    background: var(--row-sel) !important;
    border-radius: 12px;
    outline: 2px solid var(--row-sel-br);
    outline-offset: -2px;
}

    .tq-task-item.tq-multi-selected > .tq-task-row,
    .tq-task-item.tq-multi-selected > .tq-task-row:hover {
        background: transparent !important;
        border-color: transparent !important;
    }

    .tq-task-item.tq-multi-selected .tq-task-title {
        color: var(--text-strong) !important;
        font-weight: 600;
    }

/* Survol plus marqué pour les tâches déjà sélectionnées */
.tq-task-item.tq-multi-selected:hover > .tq-task-row {
    filter: brightness(1.05);
}

/* Mobile : la row a son propre fond blanc et son propre border-radius
   (cf. todoapp.css vers ligne 2125), donc la coloration du <li> parent
   déborde sur les côtés. On corrige en colorant la row directement,
   et on retire la coloration du <li> pour éviter le "halo sous la ligne".
   Attention : il faut cibler explicitement les variants --parent et --child
   qui ont leurs propres backgrounds hardcodés. */
@media (max-width: 600px) {
    .tq-task-item.tq-multi-selected {
        background: transparent !important;
        outline: none !important;
    }
    .tq-task-item.tq-multi-selected > .tq-task-row,
    .tq-task-item.tq-multi-selected > .tq-task-row.tq-task-row--parent,
    .tq-task-item.tq-multi-selected > .tq-task-row.tq-task-row--child,
    .tq-task-item.tq-multi-selected > .tq-task-row:hover {
        background: var(--row-sel) !important;
        background-image: none !important;   /* bat le linear-gradient de --parent */
        border: 2px solid var(--row-sel-br) !important;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
    }
    /* Renforce le contraste du titre dans une ligne sélectionnée */
    .tq-task-item.tq-multi-selected .tq-task-title {
        color: var(--accent) !important;
        font-weight: 700 !important;
    }
}

/* Mode sélection actif : indicateur visuel discret sur le board entier */
body.tq-bulk-mode .tq-task-item { cursor: pointer; }
/* Empêche la sélection de texte parasite quand on shift-clique */
body.tq-bulk-mode .tq-task-title,
body.tq-bulk-mode .tq-task-row {
    user-select: none;
    -webkit-user-select: none;
}

/* Barre flottante en bas d'écran */
.tq-bulk-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 450;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    background: #1F2937;
    color: #F9FAFB;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.15);
    animation: tq-bulk-slide-up .2s ease;
    max-width: calc(100vw - 32px);
}
@keyframes tq-bulk-slide-up {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
.tq-bulk-bar-close {
    background: transparent;
    border: none;
    color: #F9FAFB;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s;
}
.tq-bulk-bar-close:hover { background: rgba(255,255,255,.12); }
.tq-bulk-bar-count {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 4px;
}
.tq-bulk-bar-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,.15);
    padding-left: 12px;
}
.tq-bulk-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #F9FAFB;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s;
    white-space: nowrap;
}
.tq-bulk-bar-btn:hover { background: rgba(255,255,255,.12); }
.tq-bulk-bar-btn-danger { color: #FCA5A5; }
.tq-bulk-bar-btn-danger:hover { background: rgba(239,68,68,.18); color: #FEE2E2; }

/* Mobile : barre qui prend toute la largeur, en bas, libellés masqués si peu de place */
@media (max-width: 600px) {
    .tq-bulk-bar {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 14px 14px 0 0;
        padding: 10px 12px 14px;
        max-width: 100vw;
        gap: 10px;
    }
    @keyframes tq-bulk-slide-up {
        from { opacity: 0; transform: translateY(100%); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .tq-bulk-bar-count { font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .tq-bulk-bar-actions { padding-left: 8px; gap: 2px; }
    .tq-bulk-bar-btn span { display: none; }  /* masquer les libellés sur tout petit écran */
    .tq-bulk-bar-btn { padding: 10px; }
}

/* =============================================================
   CORBEILLE — footer sticky pour rester visible avec liste longue
   ============================================================= */
#modal-trash .tq-modal {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;          /* on ne scrolle plus tout le bloc */
}
#modal-trash .tq-modal-wide { overflow: hidden; }      /* annule l'overflow par défaut */
#modal-trash .tq-modal-header { flex-shrink: 0; }      /* header fixe */
#modal-trash .tq-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;          /* seul le corps défile */
    min-height: 0;
}
#modal-trash .tq-modal-footer {
    flex-shrink: 0;            /* footer fixe en bas */
    background: var(--surface);
    border-top: 1px solid var(--stroke);
}

