@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/47c85c65-04af-450d-92ab-119208fd3a59.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/e447f85f-347a-429a-a330-cfa06adc5dd3.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/7b7d7616-8fb4-494a-8f3e-a7a21f78fa8b.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/4b4da914-b35c-4fec-9b8e-ea6551b25909.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/d63e39c1-5552-47e0-8b93-400f501a7f15.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/7c9fbd3d-3ce1-4b45-ac04-2b08c5f4aba0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/47c85c65-04af-450d-92ab-119208fd3a59.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/e447f85f-347a-429a-a330-cfa06adc5dd3.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/7b7d7616-8fb4-494a-8f3e-a7a21f78fa8b.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/4b4da914-b35c-4fec-9b8e-ea6551b25909.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/d63e39c1-5552-47e0-8b93-400f501a7f15.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/7c9fbd3d-3ce1-4b45-ac04-2b08c5f4aba0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/47c85c65-04af-450d-92ab-119208fd3a59.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/e447f85f-347a-429a-a330-cfa06adc5dd3.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/7b7d7616-8fb4-494a-8f3e-a7a21f78fa8b.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/4b4da914-b35c-4fec-9b8e-ea6551b25909.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/d63e39c1-5552-47e0-8b93-400f501a7f15.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/7c9fbd3d-3ce1-4b45-ac04-2b08c5f4aba0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/aa2862e1-289c-4035-bb83-e5baad779411.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/eb57a6b6-29f6-4ba0-b9f4-5978be86a5fd.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/6da5f254-566f-475e-bca0-c754c9225147.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/4a9f015c-6036-43a1-9164-48f17c51d894.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/7f6de316-d48b-419a-8b20-ffdea13ae3d3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/40571c53-9af2-48ed-9862-39d87f7c7421.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/aa2862e1-289c-4035-bb83-e5baad779411.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/eb57a6b6-29f6-4ba0-b9f4-5978be86a5fd.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/6da5f254-566f-475e-bca0-c754c9225147.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/4a9f015c-6036-43a1-9164-48f17c51d894.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/7f6de316-d48b-419a-8b20-ffdea13ae3d3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/40571c53-9af2-48ed-9862-39d87f7c7421.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/aa2862e1-289c-4035-bb83-e5baad779411.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/eb57a6b6-29f6-4ba0-b9f4-5978be86a5fd.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/6da5f254-566f-475e-bca0-c754c9225147.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/4a9f015c-6036-43a1-9164-48f17c51d894.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/7f6de316-d48b-419a-8b20-ffdea13ae3d3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/40571c53-9af2-48ed-9862-39d87f7c7421.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/aa2862e1-289c-4035-bb83-e5baad779411.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/eb57a6b6-29f6-4ba0-b9f4-5978be86a5fd.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/6da5f254-566f-475e-bca0-c754c9225147.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/4a9f015c-6036-43a1-9164-48f17c51d894.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/7f6de316-d48b-419a-8b20-ffdea13ae3d3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/40571c53-9af2-48ed-9862-39d87f7c7421.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/b4cf0b5e-3feb-40f1-a5b6-94d1a42b7df8.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/7f86e822-ca22-4846-9ff2-834da373928d.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/84ebf4c4-de1a-4a8b-9304-2f106640984e.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/d2297779-1b26-463e-b975-cd5d130c8b35.woff2") format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/8d345d8d-2092-4403-95e1-24624869a309.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/b0cc4d7c-1847-456e-b798-cc2466521e32.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/b4cf0b5e-3feb-40f1-a5b6-94d1a42b7df8.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/7f86e822-ca22-4846-9ff2-834da373928d.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/84ebf4c4-de1a-4a8b-9304-2f106640984e.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/d2297779-1b26-463e-b975-cd5d130c8b35.woff2") format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/8d345d8d-2092-4403-95e1-24624869a309.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/b0cc4d7c-1847-456e-b798-cc2466521e32.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/b4cf0b5e-3feb-40f1-a5b6-94d1a42b7df8.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/7f86e822-ca22-4846-9ff2-834da373928d.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/84ebf4c4-de1a-4a8b-9304-2f106640984e.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/d2297779-1b26-463e-b975-cd5d130c8b35.woff2") format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/8d345d8d-2092-4403-95e1-24624869a309.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/b0cc4d7c-1847-456e-b798-cc2466521e32.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/b4cf0b5e-3feb-40f1-a5b6-94d1a42b7df8.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/7f86e822-ca22-4846-9ff2-834da373928d.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/84ebf4c4-de1a-4a8b-9304-2f106640984e.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/d2297779-1b26-463e-b975-cd5d130c8b35.woff2") format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/8d345d8d-2092-4403-95e1-24624869a309.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/b0cc4d7c-1847-456e-b798-cc2466521e32.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik Mono One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/04707746-0642-4be9-aabd-945510cede34.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik Mono One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/1eef4c94-8ab2-4913-9db9-53416d42e24a.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik Mono One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/800289b1-5f0a-469b-8166-c89c382632ad.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/3c3d770d-222f-4904-ba59-8a74e492471d.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/b9dea684-9d43-4ffc-8aa1-e5fd11bea4ed.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/97cff3da-07f9-423c-b04e-b16744275ebd.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/c0dd7180-0dda-4b27-96a2-10369a9900cb.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/a57b30bf-183a-45f7-9298-146d41304ee3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/3c3d770d-222f-4904-ba59-8a74e492471d.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/b9dea684-9d43-4ffc-8aa1-e5fd11bea4ed.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/97cff3da-07f9-423c-b04e-b16744275ebd.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/c0dd7180-0dda-4b27-96a2-10369a9900cb.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/a57b30bf-183a-45f7-9298-146d41304ee3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/3c3d770d-222f-4904-ba59-8a74e492471d.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/b9dea684-9d43-4ffc-8aa1-e5fd11bea4ed.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/97cff3da-07f9-423c-b04e-b16744275ebd.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/c0dd7180-0dda-4b27-96a2-10369a9900cb.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/a57b30bf-183a-45f7-9298-146d41304ee3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Theme controls shared by all three appearances. */
/* Keep the page geometry steady; only colors, type and decoration change. */
body{background-color:var(--bg)}
html{scrollbar-gutter:stable}
html.positioning-series{overflow-anchor:none}
.positioning-series .item{transition:none!important}
.tier .items{border-top-right-radius:inherit;border-bottom-right-radius:inherit;clip-path:inset(0 round 0 9px 9px 0)}
.tier-menu-panel{left:0;right:auto;max-width:calc(100vw - 24px)}
.tier-gear{display:flex;align-items:center;justify-content:center;padding:0}
.tier-gear svg{width:18px;height:18px;display:block;pointer-events:none}
.tier-label{border-top-left-radius:inherit;border-bottom-left-radius:inherit}
.item{touch-action:manipulation}
@media (hover:none){.item .item-del{display:none!important}.item-context-menu button{min-height:44px}}
.title-input{height:clamp(43px,4.6vw,58px)}
.add-form{margin-top:12px;margin-bottom:18px}
.add-form .add-input,.add-form .add-tier-select,.add-form>.btn,.add-form>.file-label{height:44px}
.add-tier-select{width:180px;max-width:100%;padding:0 30px 0 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2);color:var(--text);font:inherit;font-size:14px;cursor:pointer;outline:none;white-space:nowrap;text-overflow:ellipsis}
.add-tier-select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #5b8cff22}
.game-search{display:flex;align-items:center;gap:10px;width:100%;height:44px;margin:0 0 12px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2);color:var(--muted)}
.game-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #5b8cff22}
.game-search svg{width:19px;height:19px;flex:none}
.game-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:14px}
.game-search input::placeholder{color:var(--muted)}
.game-search input::-webkit-search-cancel-button{display:none}
.game-search button{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);font-family:inherit;font-size:22px;line-height:1;cursor:pointer}
.game-search button:hover{background:var(--line);color:var(--text)}
.game-search button[hidden],.search-empty[hidden],.tier[hidden],.item[hidden],.pool-wrap[hidden]{display:none!important}
.search-empty{margin:18px 0;padding:20px;text-align:center;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}
.pool-wrap{padding:0;overflow:hidden}
.pool-head.pool-toggle{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:auto;min-height:68px;padding:10px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--panel-2);color:var(--text);font:inherit;text-transform:none;letter-spacing:normal;text-align:center;cursor:pointer}
.pool-head.pool-toggle:hover{background:color-mix(in srgb,var(--panel-2) 85%,var(--accent))}
.pool-head.pool-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
.pool-title{font-size:17px;font-weight:800;line-height:1.2}
.pool-head #counter{color:var(--muted);font-size:12px;font-weight:500;line-height:1.35}
.pool{padding:12px}
.tier-add-menu{position:fixed;z-index:1001;width:min(280px,calc(100vw - 16px));padding:12px;background:#202630;border:1px solid #3b4555;border-radius:10px;box-shadow:0 12px 32px #000b;color:var(--text)}
.tier-add-menu[hidden]{display:none}
.tier-add-title{margin-bottom:9px;font-size:13px;font-weight:700}
.tier-add-form{display:flex;flex-direction:column;gap:8px}
.tier-add-form input{width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;outline:none;background:var(--panel);color:var(--text);font:inherit;font-size:13px}
.tier-add-form input:focus{border-color:var(--accent)}
.tier-add-form button{min-height:36px;padding:7px 12px;border:1px solid var(--accent);border-radius:7px;background:var(--accent);color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.tier-add-form button:hover{filter:brightness(1.12)}
.modal-source{display:inline-block;margin:0 0 16px;color:var(--accent);font-size:12px;text-decoration:none}
.modal-source:hover{text-decoration:underline}
.modal-source[hidden]{display:none}
.topbar .actions #syncBtn{gap:7px}
.sync-dot{width:8px;height:8px;border-radius:50%;background:#8d97a9;flex:none}
body[data-sync-status="ok"] .sync-dot{background:#47c58a}
body[data-sync-status="busy"] .sync-dot{background:#f2bd54}
body[data-sync-status="error"] .sync-dot{background:#ee6974}
.sync-card{position:relative;z-index:1;width:min(480px,100%);max-height:90vh;overflow-y:auto;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:0 24px 70px #0009;color:var(--text)}
.sync-card h2{margin:0 32px 10px 0;font-size:22px}
.sync-card p{margin:0 0 16px;color:var(--muted);line-height:1.5}
.sync-key-label{display:block;margin-bottom:6px;font-size:13px;font-weight:700}
#syncKeyInput{width:100%;height:44px;margin-bottom:14px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel-2);color:var(--text);font:inherit}
#syncKeyInput:focus{outline:2px solid var(--accent);outline-offset:1px}
.sync-actions{display:flex;flex-wrap:wrap;gap:8px}
.sync-actions .btn[hidden],.sync-dialog[hidden]{display:none!important}
.sync-key-label[hidden],#syncKeyInput[hidden]{display:none!important}
.sync-close{position:absolute;right:14px;top:12px;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:26px;cursor:pointer}
.sync-card .sync-note{margin:18px 0 0;font-size:12px}
@media (max-width:640px){.topbar .actions #syncBtn{min-height:40px}.sync-card{padding:20px}.sync-actions .btn{width:100%}}
.search-active .tier.collapsed .tier-items,.search-active .pool-wrap.collapsed .pool{height:auto;min-height:78px;flex-wrap:wrap;align-items:initial;align-content:flex-start;gap:10px;overflow:visible;padding:10px}
.search-active .tier.collapsed .tier-items .item,.search-active .pool-wrap.collapsed .pool .item{margin-left:0;transform:none}
.search-active .tier.collapsed{min-height:78px}
.search-active .tier.collapsed .tier-items .item:hover,.search-active .pool-wrap.collapsed .pool .item:hover{transform:translateY(-1px)}
.theme-switching,.theme-switching .brand,.theme-switching .brand .dot,
.theme-switching .theme-picker,.theme-switching .theme-button,
.theme-switching .title-input,.theme-switching .hint,.theme-switching .add-input,.theme-switching .add-tier-select,
.theme-switching .btn,.theme-switching .board,.theme-switching .tier,
.theme-switching .tier-label,.theme-switching .tier .items,
.theme-switching .item,.theme-switching .pool-wrap,.theme-switching .pool-head{
  transition:background-color .18s ease-out,color .18s ease-out,
    border-color .18s ease-out,box-shadow .18s ease-out,outline-color .18s ease-out
}
@media (prefers-reduced-motion:reduce){.theme-switching,.theme-switching *{transition-duration:0ms!important}}
.topbar-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.topbar .actions .btn{display:inline-flex;align-items:center;justify-content:center;height:40px}
.theme-picker{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap}
.theme-buttons{display:flex;align-items:center;gap:5px}
.theme-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:9px;background:var(--panel-2);color:var(--muted);cursor:pointer}
.theme-button svg{display:block;width:19px;height:19px}
.theme-button:hover{border-color:var(--accent);color:var(--text)}
.theme-button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent);color:#fff}
.theme-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.appearance-switch{
  display:inline-grid;place-items:center;flex:none;width:58px;height:44px;padding:0;
  border:0;border-radius:22px;background:transparent;color:var(--muted);cursor:pointer;
}
.appearance-switch:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.appearance-track{
  position:relative;display:flex;align-items:center;justify-content:space-between;width:54px;height:30px;
  padding:0 6px;border:1px solid var(--line);border-radius:999px;background:var(--panel-2);
  transition:background-color .18s,border-color .18s;
}
.appearance-track svg{position:relative;z-index:1;width:13px;height:13px;pointer-events:none}
.appearance-thumb{
  position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;
  box-shadow:0 1px 4px #0005;transition:transform .18s ease-out;pointer-events:none;
}
.appearance-switch[aria-checked="true"] .appearance-track{
  background:color-mix(in srgb,var(--accent) 26%,var(--panel-2));border-color:var(--accent);
}
.appearance-switch[aria-checked="true"] .appearance-thumb{transform:translateX(24px)}
.appearance-switch[aria-checked="false"] .appearance-sun,
.appearance-switch[aria-checked="true"] .appearance-moon{color:#292637}
.appearance-switch[aria-checked="true"] .appearance-sun{color:var(--text)}
@media (prefers-reduced-motion:reduce){.appearance-track,.appearance-thumb{transition:none}}

/* 1a: dark neon, based on the first direction in Tierlog.html. */
body[data-theme="neon"]{
  --bg:#0B0A10;--panel:#110F17;--panel-2:#1E1A2A;--line:#2B2736;
  --text:#EDEAF5;--muted:#A39CB4;--accent:#FF3EA5;
  background:#0B0A10;color:var(--text);font-family:Manrope,"Segoe UI",sans-serif
}
body[data-theme="neon"] .brand{font:900 17px Unbounded,Manrope,sans-serif;letter-spacing:.01em;color:#fff;text-shadow:0 0 14px #FF3EA599}
body[data-theme="neon"] .brand .dot{background:#FF3EA5;box-shadow:0 0 14px #FF3EA5}
body[data-theme="neon"] .theme-button{background:#1E1A2A;border-color:#342d40;color:#A39CB4}
body[data-theme="neon"] .theme-button:hover{border-color:#FF3EA5;color:#fff}
body[data-theme="neon"] .theme-button[aria-pressed="true"]{background:#FF3EA5;border-color:#FF3EA5;color:#0B0A10;box-shadow:0 0 14px #FF3EA577}
body[data-theme="neon"] .title-input{font-family:Unbounded,Manrope,sans-serif}
body[data-theme="neon"] .hint{color:#8A8499}
body[data-theme="neon"] .add-input{background:#14121C;border-color:#2B2736;color:#EDEAF5}
body[data-theme="neon"] .add-input:focus{border-color:#FF3EA5;box-shadow:0 0 0 3px #FF3EA533}
body[data-theme="neon"] .add-tier-select{background:#14121C;border-color:#2B2736;color:#EDEAF5}
body[data-theme="neon"] .add-tier-select:focus{border-color:#FF3EA5;box-shadow:0 0 0 3px #FF3EA533}
body[data-theme="neon"] .btn{background:#1E1A2A;border-color:#342d40;color:#EDEAF5}
body[data-theme="neon"] .btn:hover{border-color:#FF3EA5;background:#2a2035}
body[data-theme="neon"] #addForm>.btn{background:#FF3EA5;border-color:#FF3EA5;color:#0B0A10;font-weight:800;box-shadow:0 0 20px #FF3EA555}
body[data-theme="neon"] .tier{background:#110F17;border-color:#1F1C28;border-radius:10px}
body[data-theme="neon"] .tier-label{box-shadow:0 0 18px color-mix(in srgb,var(--tier-color) 45%,transparent)}
body[data-theme="neon"] .tier-name{font-family:Unbounded,Manrope,sans-serif;font-size:17px}
body[data-theme="neon"] .tier .items{background:transparent}
body[data-theme="neon"] .item{background:#1F1B2A;border-color:#2C2838;border-radius:6px}
body[data-theme="neon"] .item:hover{border-color:#FF3EA5;box-shadow:0 0 15px #FF3EA544}
body[data-theme="neon"] .item.is-image{background:#15121c}
body[data-theme="neon"] .pool-wrap{border-color:#3A3547;background:#110F17;border-radius:10px}
body[data-theme="neon"] .pool-head{color:#2FE0F0;font-family:"JetBrains Mono",monospace}
body[data-theme="neon"] .game-search{background:#14121C;border-color:#2B2736}
body[data-theme="neon"] .game-search:focus-within{border-color:#FF3EA5;box-shadow:0 0 0 3px #FF3EA533}
body[data-theme="neon"] .pool-head.pool-toggle{background:#1E1A2A;color:#2FE0F0;border-color:#3A3547;font-family:"JetBrains Mono",monospace}
body[data-theme="neon"] .pool-head.pool-toggle:hover{background:#2a2035}
body[data-theme="neon"] .tier-add-menu{background:#201829;border-color:#60446a}
body[data-theme="neon"] .tier-add-form button{color:#0B0A10}
body[data-theme="neon"] .modal-source{color:#2FE0F0}
body[data-theme="neon"] .modal-card{background:#14121C;border-color:#3A2B48}
body[data-theme="neon"] .star.on{background:#FF3EA533;border-color:#FF3EA5;color:#fff}
body[data-theme="neon"] .comment{background:#1E1A2A;border-color:#3A2B48}
body[data-theme="neon"] .item-context-menu{background:#201829;border-color:#60446a}

/* 1b: light arcade, based on the second direction in Tierlog.html. */
body[data-theme="comic"]{
  --bg:#F3F0E8;--panel:#fff;--panel-2:#fff;--line:#16141C;
  --text:#16141C;--muted:#625e69;--accent:#FF2E88;
  background:#F3F0E8;color:var(--text);font-family:Rubik,"Segoe UI",sans-serif
}
body[data-theme="comic"] .topbar{margin-bottom:14px}
body[data-theme="comic"] .brand{padding:5px 10px;border:2.5px solid #16141C;background:#FFE600;box-shadow:3px 3px 0 #16141C;color:#16141C;font:400 17px "Rubik Mono One",Rubik,sans-serif}
body[data-theme="comic"] .brand .dot{display:none}
body[data-theme="comic"] .topbar-tools{margin-left:auto}
body[data-theme="comic"] .theme-picker{color:#514d56;font-weight:600}
body[data-theme="comic"] .theme-button{border:2px solid #16141C;background:#fff;color:#16141C;box-shadow:2px 2px 0 #16141C}
body[data-theme="comic"] .theme-button:hover{background:#FFF9C2}
body[data-theme="comic"] .theme-button[aria-pressed="true"]{background:#FFE600;color:#16141C}
body[data-theme="comic"] .btn{border:2px solid #16141C;background:#fff;color:#16141C;box-shadow:3px 3px 0 #16141C;font-weight:700}
body[data-theme="comic"] .btn:hover{background:#FFE600;border-color:#16141C}
body[data-theme="comic"] .btn.danger-ghost{color:#a01c55}
body[data-theme="comic"] .title-input{color:#16141C;font-family:"Rubik Mono One",Rubik,sans-serif;font-weight:400}
body[data-theme="comic"] .hint{color:#625e69}
body[data-theme="comic"] .add-input{background:#fff;border:2px solid #16141C;color:#16141C;box-shadow:3px 3px 0 #16141C}
body[data-theme="comic"] .add-input:focus{border-color:#FF2E88;box-shadow:3px 3px 0 #16141C,0 0 0 4px #FF2E8833}
body[data-theme="comic"] .add-tier-select{background:#fff;border:2px solid #16141C;color:#16141C;box-shadow:3px 3px 0 #16141C}
body[data-theme="comic"] .add-tier-select:focus{border-color:#FF2E88;box-shadow:3px 3px 0 #16141C,0 0 0 4px #FF2E8833}
body[data-theme="comic"] #addForm>.btn{background:#FF2E88}
body[data-theme="comic"] .board{border-radius:10px}
body[data-theme="comic"] .tier{border-color:#16141C;background:#fff;box-shadow:4px 4px 0 #16141C}
body[data-theme="comic"] .tier-label{border-right:3px solid #16141C}
body[data-theme="comic"] .tier-name{font:700 19px Rubik,sans-serif}
body[data-theme="comic"] .tier .items{background:#fff}
body[data-theme="comic"] .tier-gear{background:#ffffff88;border:1px solid #16141C;color:#16141C}
body[data-theme="comic"] .tier-menu-panel{background:#fff;color:#16141C;border:2px solid #16141C;box-shadow:4px 4px 0 #16141C}
body[data-theme="comic"] .tier-menu-panel button:hover,body[data-theme="comic"] .tier-color-option:hover{background:#FFE600}
body[data-theme="comic"] .item{background:#F6F3EC;border:2px solid #16141C;border-radius:5px;box-shadow:2px 2px 0 #16141C;color:#16141C}
body[data-theme="comic"] .item:hover{border-color:#16141C;box-shadow:3px 3px 0 #16141C,0 0 0 2px #FF2E88}
body[data-theme="comic"] .item.is-image{background:#E8E3D8}
body[data-theme="comic"] .item.cover-missing{background:repeating-linear-gradient(135deg,#F6F3EC 0 6px,#E8E3D8 6px 12px)}
body[data-theme="comic"] .broken{color:#514d56}
body[data-theme="comic"] .pool-wrap{border-color:#16141C;background:#EAE6DB;box-shadow:4px 4px 0 #16141C}
body[data-theme="comic"] .pool-head{color:#16141C;font-family:"Rubik Mono One",Rubik,sans-serif}
body[data-theme="comic"] .pool-toggle{border:2px solid #16141C;background:#fff;color:#16141C}
body[data-theme="comic"] .game-search{background:#fff;border:2px solid #16141C;box-shadow:3px 3px 0 #16141C}
body[data-theme="comic"] .game-search:focus-within{border-color:#FF2E88;box-shadow:3px 3px 0 #16141C,0 0 0 4px #FF2E8833}
body[data-theme="comic"] .pool-head.pool-toggle{background:#FFE600;color:#16141C;border:0;border-bottom:2px solid #16141C;box-shadow:none;font-family:Rubik,sans-serif}
body[data-theme="comic"] .pool-head.pool-toggle:hover{background:#FFF9C2}
body[data-theme="comic"] .tier-add-menu{background:#fff;color:#16141C;border:2px solid #16141C;box-shadow:4px 4px 0 #16141C}
body[data-theme="comic"] .tier-add-form button{color:#16141C;border:2px solid #16141C;box-shadow:2px 2px 0 #16141C}
body[data-theme="comic"] .modal-source{color:#a01c55;font-weight:700}
body[data-theme="comic"] .item-context-menu{background:#fff;color:#16141C;border:2px solid #16141C;box-shadow:4px 4px 0 #16141C}
body[data-theme="comic"] .item-context-menu button:hover{background:#FFE600}
body[data-theme="comic"] .item-context-menu-divider{background:#16141C}
body[data-theme="comic"] .modal-backdrop{background:#16141Cbb}
body[data-theme="comic"] .modal-card{background:#fff;color:#16141C;border:3px solid #16141C;border-radius:10px;box-shadow:8px 8px 0 #16141C}
body[data-theme="comic"] .modal-close{background:#FFE600;color:#16141C;border:2px solid #16141C}
body[data-theme="comic"] .modal-cover img{border:2px solid #16141C;border-radius:6px;box-shadow:4px 4px 0 #16141C}
body[data-theme="comic"] .modal-meta{color:#16141C}
body[data-theme="comic"] .modal-meta span{background:#FFF9C2;border:2px solid #16141C;border-radius:5px}
body[data-theme="comic"] .modal-desc{color:#3c3942}
body[data-theme="comic"] .rating-label,body[data-theme="comic"] .rating-value,
body[data-theme="comic"] .completion-note,body[data-theme="comic"] .comments-head{color:#514d56}
body[data-theme="comic"] .star{background:#fff;border:2px solid #16141C;color:#625e69}
body[data-theme="comic"] .star.on{background:#FF2E88;border-color:#16141C;color:#fff}
body[data-theme="comic"] .completion-toggle{background:#FFE600;border:2px solid #16141C;color:#16141C;box-shadow:3px 3px 0 #16141C}
body[data-theme="comic"] .completion-toggle[aria-pressed="true"]{background:#19E68C;border-color:#16141C;color:#16141C}
body[data-theme="comic"] .comments{border-top:2px solid #16141C}
body[data-theme="comic"] .comment{background:#FFF9C2;border:2px solid #16141C;border-radius:6px;color:#16141C;box-shadow:3px 3px 0 #16141C}
body[data-theme="comic"] .comment .cdate,body[data-theme="comic"] .cbtn{color:#514d56}
body[data-theme="comic"] .comment-form textarea{background:#fff;border:2px solid #16141C;color:#16141C;box-shadow:3px 3px 0 #16141C}
body[data-theme="comic"] .toast{background:#fff;border:2px solid #16141C;color:#16141C;box-shadow:4px 4px 0 #16141C}

@media (max-width:900px){
  .topbar-tools{justify-content:flex-start}
}
@media (max-width:640px){
  .add-tier-select{flex:1 1 160px;width:auto;min-width:145px}
  body[data-theme="comic"] .topbar-tools{margin-left:0}
  body[data-theme="comic"] .title-input{font-size:clamp(24px,3.4vw,38px)}
  body[data-theme="neon"] .brand{font-size:15px}
  .theme-picker{flex-wrap:wrap}
}

/* iPhone layout and safe areas */
@media(max-width:640px){
 body{padding:16px max(12px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .topbar-tools{width:100%;gap:10px}
 .topbar .actions{gap:6px}
 .topbar .actions .btn{min-height:44px;padding:8px 10px}
 .add-form .add-input{flex-basis:100%;min-width:0;font-size:16px}
 .add-tier-select{font-size:16px}
 .theme-button{width:40px;height:40px}
 .modal{padding:10px;padding-top:max(10px,env(safe-area-inset-top))}
 .comment-form{flex-wrap:wrap}
 .comment-form textarea{min-width:0;font-size:16px}
}

/* Series stacks */
:root{
  --series-outline:#79b8ff;
  --stats-total:#85b9ff;--stats-finished:#66e0bd;--stats-glow:#c6a4ff;
}
body[data-theme="neon"]{
  --series-outline:#ff65bd;
  --stats-total:#63e8ff;--stats-finished:#ff8fd3;--stats-glow:#c4a4ff;
}
body[data-theme="comic"]{
  --series-outline:#bb570e;
  --stats-total:#2452b6;--stats-finished:#16714c;--stats-glow:#8841a7;
}
.tier:not(.collapsed) .tier-items .item,.pool-wrap:not(.collapsed) .pool .item{
  width:var(--grid-item-width,100%);min-width:0;max-width:none;
  height:auto;min-height:0;aspect-ratio:92/123;overflow:hidden;align-self:start;
}
.tier:not(.collapsed) .tier-items .item:hover,.pool-wrap:not(.collapsed) .pool .item:hover{transform:none}
.series-line{
  --grid-item-width:calc((100% - (var(--series-columns) - 1) * var(--board-gap)) / var(--series-columns));
  display:flex;grid-column:span var(--series-columns);flex-wrap:nowrap;align-items:start;gap:var(--board-gap);
  min-width:0;outline:2px solid var(--series-outline);outline-offset:2px;border-radius:10px;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scrollbar-width:none;
}
.series-line::-webkit-scrollbar{display:none}
.series-line:focus-visible{outline-style:dashed}
.items .series-line > .item{flex:0 0 var(--grid-item-width)}
.series-line.drag-drop-target{outline-color:var(--accent);box-shadow:0 0 10px var(--accent)}
.items .item.stacked-cover{
  box-shadow:2px 2px 0 #7389a7,4px 4px 0 #263b55;
}
.tier.collapsed .tier-items:has(.stacked-cover) .item,.pool-wrap.collapsed .pool:has(.stacked-cover) .item{margin-left:-36px}
.tier.collapsed .tier-items:has(.stacked-cover) .item:first-child,.pool-wrap.collapsed .pool:has(.stacked-cover) .item:first-child{margin-left:0}
.series-toggle{
  position:absolute;left:2px;bottom:2px;z-index:6;min-width:36px;min-height:34px;
  display:flex;align-items:end;justify-content:start;padding:0;background:none;border:0;
  border-radius:inherit;cursor:pointer;color:#fff;
}
.series-toggle[hidden]{display:none}
.stacked-cover .series-toggle{inset:0;padding:2px}
.series-count{
  position:relative;display:grid;place-items:center;min-height:30px;padding:0 7px;white-space:nowrap;
  background:#142034;border:1px solid #bdcfee;border-radius:8px;color:#fff;font:700 12px system-ui;
  box-shadow:0 2px 6px #0008;cursor:grab;
}
.series-edges{display:none}
.stacked-cover .series-edges{position:absolute;inset:4px 0 4px auto;display:flex;align-items:center}
.series-edges > span{width:12px;height:100%;background:#35435b;border:1px solid #adc2de;border-right:0;border-radius:4px 0 0 4px;overflow:hidden}
.series-edges > span + span{height:86%}
.series-edges img{display:block;width:100%;height:100%;object-fit:cover;object-position:52% center}
.series-toggle:focus-visible{outline:2px solid #a6dcff;outline-offset:-3px}
.series-toggle:hover .series-count{background:#233c60}
.stacked-cover .item-del{display:none}
.items .item:not(.is-image):has(.series-toggle){padding-bottom:34px}
.items .item:not(.is-image).stacked-cover{padding-right:17px}
.items .item:not(.is-image):has(.series-toggle) > span:first-child{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
}

.title-actions{margin:2px 0 12px}
.stats-trigger{
  min-height:44px;display:inline-flex;align-items:center;gap:9px;padding:0 15px;border-radius:12px;
  border:1px solid color-mix(in srgb,var(--accent) 60%,var(--line));color:var(--text);cursor:pointer;
  background:linear-gradient(115deg,color-mix(in srgb,var(--accent) 23%,var(--panel)),var(--panel-2));
  font:inherit;font-size:14px;font-weight:750;box-shadow:0 3px 12px #0002;
}
.stats-trigger svg{width:22px;height:22px;color:var(--accent)}
.stats-trigger:hover{border-color:var(--accent);filter:brightness(1.12)}
.stats-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body[data-theme="comic"] .stats-trigger{
  background:#ffe600;border:2px solid #16141c;border-radius:8px;color:#16141c;box-shadow:3px 3px #16141c;
}
body[data-theme="comic"] .stats-trigger svg{color:inherit}

.stats-card:not([open]){display:none}
.stats-card{
  position:fixed;display:block;width:min(500px,calc(100% - 24px));padding:22px;
  max-height:calc(100% - 24px);max-height:calc(100dvh - 24px);margin:auto;color:var(--text);
  overflow:auto;overscroll-behavior:contain;
}
.stats-card::backdrop{background:#05070bbd}
.stats-card h2{margin:0 0 16px;padding-right:44px;font-size:25px}
.stats-card .modal-close{width:40px;height:40px}
#statsDialog{
  --stats-surface:var(--panel-2);--stats-border:var(--line);--stats-bar:var(--stats-total);
  --stats-track:color-mix(in srgb,var(--text) 12%,var(--stats-surface));
  width:min(1060px,calc(100% - 24px));padding:clamp(12px,2.5vw,28px);
  background:var(--panel);
}
.stats-header{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  position:sticky;top:0;z-index:2;margin-bottom:16px;background:var(--panel);
}
#statsDialog .stats-header h2{min-width:0;margin:0;padding:0;font-size:clamp(24px,4vw,36px);letter-spacing:-.035em;overflow-wrap:anywhere}
.stats-header form{flex:none}
.stats-header .modal-close{position:static;display:block}
.stats-overview,.stats-summary,.stats-charts{display:grid;gap:12px}
.stats-overview{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.stats-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.stats-panel,.stats-summary > div{
  min-width:0;padding:clamp(12px,2vw,21px);border:1px solid var(--stats-border);
  background:var(--stats-surface);border-radius:12px;
}
.stats-summary dt,.stats-panel h3{
  margin:0;color:var(--muted);font-size:12px;font-weight:750;
  text-transform:uppercase;letter-spacing:.08em;line-height:1.35;
}
.stats-summary dd,#statsProgressPercent{
  display:block;margin:5px 0 0;color:var(--metric-color,var(--stats-finished));
  font-size:clamp(29px,5vw,56px);font-weight:900;line-height:1.05;font-variant-numeric:tabular-nums;
}
.stats-summary > div:first-child{--metric-color:var(--stats-total)}
.stats-summary > div:nth-child(2){--metric-color:var(--stats-finished)}
#statsProgressPercent{font-size:clamp(26px,4vw,44px)}
.stats-progress progress{
  display:block;width:100%;height:8px;margin:9px 0 6px;border:0;
  border-radius:5px;overflow:hidden;accent-color:var(--stats-finished);
}
.stats-progress progress::-webkit-progress-bar{background:var(--stats-track)}
.stats-progress progress::-webkit-progress-value{background:linear-gradient(90deg,var(--stats-bar),var(--stats-finished));border-radius:inherit;transform-origin:left}
.stats-progress progress::-moz-progress-bar{background:var(--stats-finished);border-radius:inherit;transform-origin:left}
.stats-note,#statsProgressCaption{margin:0;color:var(--muted);font-size:12px;line-height:1.4}
.stats-distribution{margin:12px 0}
.stats-distribution-track{
  display:flex;height:18px;margin:12px 0 10px;border-radius:7px;overflow:hidden;
  background:var(--stats-track);
}
.stats-distribution-track span{flex-basis:0;min-width:0;background:var(--stat-color)}
.stats-distribution-track span + span{box-shadow:-2px 0 var(--stats-surface)}
.stats-legend{
  display:flex;flex-wrap:wrap;gap:5px 16px;margin:0;padding:0;list-style:none;
  font-size:13px;
}
.stats-legend li{display:flex;gap:5px;align-items:center;overflow-wrap:anywhere}
.stats-legend li::before{content:"";width:9px;height:9px;flex:none;border-radius:3px;background:var(--stat-color)}
.stats-legend strong{color:var(--muted)}
.stats-charts{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.stats-tiers,.stats-genres{margin:12px 0 0;padding:0;list-style:none}
.stats-genres li,.stats-tiers li{overflow-wrap:anywhere;font-size:13px}
.stats-tiers{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(42px,1fr);gap:8px;
  overflow:auto;padding-bottom:3px;scrollbar-width:thin;
}
.stats-tiers li{
  display:grid;grid-template-rows:auto 130px minmax(30px,auto);gap:5px;
  text-align:center;line-height:1.2;
}
.stats-tiers strong{grid-row:1}
.stats-tier-name{grid-row:3}
.stats-tier-track{
  grid-row:2;display:flex;align-items:end;justify-self:center;width:min(42px,85%);
  border-radius:6px;background:var(--stats-track);
}
.stats-tier-track span{
  width:100%;height:var(--stat-level);border-radius:6px;
  background:var(--stat-color);transform-origin:bottom;--stats-x:1;--stats-y:0;
}
.stats-genres li{margin-bottom:4px}
.stats-genre-view{
  display:grid;grid-template-columns:minmax(0,1fr) auto 30px;gap:4px 9px;align-items:center;
  width:100%;min-height:36px;padding:4px 5px;background:transparent;border:1px solid transparent;
  border-radius:7px;color:inherit;font:inherit;line-height:1.25;text-align:left;cursor:pointer;
}
.stats-genre-view:hover,.stats-genre-view:focus-visible{
  background:color-mix(in srgb,var(--stats-bar) 10%,var(--stats-surface));border-color:var(--stats-bar);
}
.stats-genre-view:focus-visible{outline:1px solid var(--stats-bar)}
.stats-genre-name{grid-row:1;grid-column:1;overflow-wrap:anywhere}
.stats-genre-view strong{grid-row:1;grid-column:2}
.stats-genre-eye{grid-row:1 / 3;grid-column:3;width:19px;height:19px;justify-self:center;color:var(--stats-bar)}
.stats-genres strong,.stats-tiers strong,.stats-legend strong{font-variant-numeric:tabular-nums}
.stats-genre-track{
  grid-row:2;grid-column:1 / 3;height:7px;border-radius:4px;background:var(--stats-track);overflow:hidden;
}
.stats-genre-track span{display:block;width:var(--stat-level);height:100%;border-radius:inherit;background:var(--stats-bar);transform-origin:left}
.stats-more-genres summary{cursor:pointer;font-size:13px;font-weight:700;margin-bottom:8px}
.stats-more-genres[hidden]{display:none}
#statsGenreNote{margin-top:10px}
body[data-theme="neon"] #statsDialog{
  --stats-surface:#15121e;--stats-border:#2d2537;--stats-bar:#2ad8ea;--stats-finished:#48eca8;
}
body[data-theme="neon"] .stats-header h2{font-family:Unbounded,Manrope,sans-serif}
body[data-theme="neon"] .stats-summary dd{text-shadow:0 0 18px color-mix(in srgb,var(--metric-color) 45%,transparent)}
body[data-theme="neon"] .stats-tier-track span{box-shadow:0 0 12px color-mix(in srgb,var(--stat-color) 35%,transparent)}
body[data-theme="comic"] #statsDialog{
  --stats-surface:#fff;--stats-border:#16141c;--stats-bar:#298ff2;--stats-track:#eeeae1;
  --stats-finished:#16141c;
  background:var(--bg);
}
body[data-theme="comic"] .stats-header{background:var(--bg)}
body[data-theme="comic"] .stats-header h2,
body[data-theme="comic"] .stats-summary dd,
body[data-theme="comic"] #statsProgressPercent{font-family:"Rubik Mono One",Rubik,sans-serif;font-weight:400}
body[data-theme="comic"] #statsDialog .stats-header h2{
  padding:6px 9px;background:#ffe600;color:#16141c;border:2px solid #16141c;
  box-shadow:3px 3px #16141c;font-size:clamp(15px,5.1vw,28px);letter-spacing:-.04em;
}
body[data-theme="comic"] .stats-panel,
body[data-theme="comic"] .stats-summary > div{
  border:2px solid var(--stats-border);border-radius:9px;box-shadow:3px 3px var(--stats-border);
}
body[data-theme="comic"] .stats-summary > div:first-child{background:#72c6ff}
body[data-theme="comic"] .stats-summary > div:nth-child(2){background:#36e099}
body[data-theme="comic"] .stats-progress{background:#ffe75b}
body[data-theme="comic"] .stats-summary dd,
body[data-theme="comic"] .stats-summary dt,
body[data-theme="comic"] .stats-panel h3{color:#16141c}
body[data-theme="comic"] #statsProgressPercent{font-size:clamp(23px,3.6vw,36px);letter-spacing:-.045em}
body[data-theme="comic"] .stats-progress progress::-webkit-progress-value{background:#16141c}
body[data-theme="comic"] .stats-progress progress::-moz-progress-bar{background:#16141c}
body[data-theme="comic"] .stats-distribution-track,
body[data-theme="comic"] .stats-genre-track,
body[data-theme="comic"] .stats-tier-track{border:1px solid var(--stats-border);border-radius:4px}
body[data-theme="comic"] .stats-distribution-track{height:21px;border-width:2px}
body[data-theme="comic"] .stats-distribution-track span + span{box-shadow:-1px 0 var(--stats-border)}
body[data-theme="comic"] .stats-legend li{
  padding:3px 7px;border:1px solid #dcd7cc;border-radius:5px;background:#f9f7f0;
}
body[data-theme="comic"] .stats-charts{align-items:stretch}
body[data-theme="comic"] .stats-tiers{display:block;overflow:visible}
body[data-theme="comic"] .stats-tiers li{
  display:grid;grid-template-columns:minmax(100px,36%) minmax(0,1fr) auto;
  grid-template-rows:auto;align-items:center;gap:6px 10px;min-height:25px;
  margin:0 0 5px;text-align:left;
}
body[data-theme="comic"] .stats-genre-view{grid-template-columns:minmax(76px,32%) minmax(0,1fr) auto 24px}
body[data-theme="comic"] .stats-genre-eye{grid-row:1;grid-column:4;color:#16141c}
body[data-theme="comic"] .stats-tier-name{grid-row:1;grid-column:1}
body[data-theme="comic"] .stats-tiers strong,
body[data-theme="comic"] .stats-genres strong{grid-row:1;grid-column:3;min-width:3ch;text-align:right}
body[data-theme="comic"] .stats-tier-track,
body[data-theme="comic"] .stats-genre-track{
  grid-row:1;grid-column:2;justify-self:stretch;width:auto;height:13px;overflow:hidden;
}
body[data-theme="comic"] .stats-tier-track span{
  width:var(--stat-level);height:100%;border-radius:0;
  transform-origin:left;--stats-x:0;--stats-y:1;
}
body[data-theme="comic"] .stats-genre-track span{border-radius:0}
@media (max-width:640px){
  .stats-overview,.stats-charts{grid-template-columns:minmax(0,1fr)}
  .stats-tiers{display:block;overflow:visible}
  .stats-tiers li{
    grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;
    text-align:left;margin-bottom:8px;
  }
  .stats-tier-name{grid-row:1}
  .stats-tier-track{grid-row:2;grid-column:1 / -1;justify-self:stretch;width:auto;height:7px;overflow:hidden}
  .stats-tier-track span{width:var(--stat-level);height:100%;transform-origin:left;--stats-x:0;--stats-y:1}
  body[data-theme="comic"] .stats-tiers li{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto}
  body[data-theme="comic"] .stats-genre-view{grid-template-columns:minmax(0,1fr) auto 30px;min-height:44px}
  body[data-theme="comic"] .stats-genre-eye{grid-row:1 / 3;grid-column:3}
  body[data-theme="comic"] .stats-tiers strong,
  body[data-theme="comic"] .stats-genres strong{grid-column:2}
  body[data-theme="comic"] .stats-tier-track{grid-row:2;grid-column:1 / -1;height:9px}
  body[data-theme="comic"] .stats-genre-track{grid-row:2;grid-column:1 / 3;height:9px}
}
@media (pointer:coarse){.stats-genre-view{min-height:44px}}
@media (prefers-reduced-motion:no-preference){
  #statsDialog[open]{animation:stats-enter .23s ease-out both}
  #statsDialog[open] .stats-summary div{animation:stats-enter .32s ease-out both}
  #statsDialog[open] .stats-distribution-track{animation:stats-sweep .55s .1s ease-out both}
  #statsDialog[open] .stats-tier-track span,
  #statsDialog[open] .stats-genre-track span{animation:stats-fill .55s .1s ease-out both}
  #statsDialog[open] progress::-webkit-progress-value{animation:stats-fill .55s .1s ease-out both}
  #statsDialog[open] progress::-moz-progress-bar{animation:stats-fill .55s .1s ease-out both}
}
@keyframes stats-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes stats-fill{from{transform:scale(var(--stats-x,0),var(--stats-y,1))}to{transform:scale(1)}}
@keyframes stats-sweep{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}

.genre-drawer:not([open]){display:none}
.genre-drawer{
  position:fixed;inset:0 0 0 auto;display:block;width:min(430px,100%);max-width:none;
  height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border-radius:14px 0 0 14px;
  background:var(--panel);color:var(--text);overflow:auto;overscroll-behavior:contain;
}
.genre-drawer::backdrop{background:#05070b72}
.genre-drawer-header{
  position:sticky;top:0;z-index:1;
  padding:16px 18px;border-bottom:1px solid var(--line);background:var(--panel);
}
.genre-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.genre-drawer-header h2{margin:0;font-size:23px;line-height:1.15;overflow-wrap:anywhere}
.genre-drawer-header p{margin:3px 0 0;color:var(--muted);font-size:13px}
.genre-drawer-close{width:42px;height:42px;padding:0;font-size:23px}
.genre-tier-filters{display:flex;gap:6px;overflow-x:auto;margin-top:10px;padding:2px 2px 4px;scrollbar-width:thin}
.genre-tier-filter{
  display:inline-flex;align-items:center;gap:5px;flex:none;min-height:34px;padding:4px 8px;
  white-space:nowrap;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);
  color:var(--text);font:inherit;font-size:12px;cursor:pointer;
}
.genre-tier-filter[style]::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--filter-color)}
.genre-tier-filter[aria-pressed="true"]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--panel-2))}
.genre-tier-filter:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.genre-drawer-games{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 10px;
  margin:0;padding:15px 18px max(18px,env(safe-area-inset-bottom));list-style:none;
}
.genre-drawer-games li{position:relative;min-width:0;overflow-wrap:anywhere}
.genre-drawer-games strong{display:block;margin:5px 0 2px;font-size:12px;line-height:1.22}
.genre-game-open{
  display:block;width:100%;padding:0;border:0;border-radius:8px;background:none;color:inherit;
  text-align:left;font:inherit;cursor:pointer;touch-action:manipulation;
}
.genre-game-open:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (hover:hover){.genre-game-open:hover .genre-game-cover{box-shadow:0 0 0 2px var(--genre-tier-color)}}
.genre-game-options{
  position:absolute;top:5px;right:5px;display:grid;place-items:center;width:29px;height:29px;
  padding:0;border:1px solid #e9edf591;border-radius:7px;background:#111824eb;color:#fff;
  font:bold 18px/1 system-ui;cursor:pointer;opacity:0;
}
.genre-drawer-games li:hover .genre-game-options,
.genre-drawer-games li:focus-within .genre-game-options{opacity:1}
.genre-game-options:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.genre-game-cover{
  position:relative;display:grid;place-items:center;width:100%;aspect-ratio:92/123;
  border:3px solid var(--genre-tier-color);border-radius:8px;background:var(--panel-2);
  color:var(--muted);overflow:hidden;text-align:center;font-size:11px;
}
.genre-game-cover img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.genre-game-tier{display:flex;align-items:baseline;gap:5px;color:var(--muted);font-size:11px;line-height:1.25}
.genre-game-tier::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:var(--genre-tier-color)}
body[data-theme="comic"] .genre-drawer{border-radius:14px 0 0 14px}
body[data-theme="comic"] .genre-drawer-header{border-bottom:2px solid #16141c}
@media (max-width:640px){
  .genre-drawer,body[data-theme="comic"] .genre-drawer{
    inset:auto 0 0;width:100%;height:min(78vh,680px);height:min(78dvh,680px);border-radius:16px 16px 0 0;
  }
  .genre-drawer-header{padding:12px 13px}
  .genre-tier-filter{min-height:38px}
  .genre-drawer-games{grid-template-columns:repeat(3,minmax(0,1fr));padding-inline:12px;gap:12px 8px}
  .genre-game-options{opacity:1;width:34px;height:34px}
}
@media (hover:none){.genre-game-options{opacity:1}}
@media (prefers-reduced-motion:no-preference){
  .genre-drawer[open]{animation:genre-drawer-in .16s ease-out both}
  @keyframes genre-drawer-in{from{opacity:0}to{opacity:1}}
}

#gameModal:not([open]){display:none}
#gameModal{
  width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;background:transparent;color:inherit;
}
#gameModal::backdrop{background:transparent}

.undo-notice[hidden]{display:none}
.undo-notice{
  position:fixed;z-index:1300;left:50%;bottom:max(14px,env(safe-area-inset-bottom));
  transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 24px);
  padding:7px 9px 7px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);
  color:var(--text);box-shadow:0 8px 28px #0006;font-size:13px;
}
.undo-notice .btn{min-height:38px;border-color:var(--accent)}
#genreDrawer .undo-notice{left:auto;right:14px;transform:none}
.backup-dialog p{color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.backup-restore{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}
.backup-restore h3{margin:0 0 9px;font-size:16px}
.backup-restore label{display:block;margin-bottom:7px;font-size:13px}
.backup-restore input{display:block;width:100%;font:inherit;font-size:13px}
.backup-dialog .btn{min-height:42px}

.series-editor h2{margin-bottom:5px}
#seriesGameTitle{margin:0 0 16px;color:var(--muted);overflow-wrap:anywhere}
.series-editor label{display:block;margin-bottom:6px;font-weight:650}
.series-editor .add-input{width:100%;min-width:0;min-height:46px;font-size:16px}
#seriesHelp{margin:7px 0 16px;color:var(--muted);font-size:13px}
.series-editor-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px}
.series-editor-actions .btn{min-height:44px}
.series-editor-actions .series-save{border-color:var(--accent)}

.platinum-icon{flex:none;width:22px;height:22px}
.completion-medal[hidden]{display:none}
.completion-medal.platinum-medal{left:3px;right:auto;width:32px;height:32px}
.modal-cover .platinum-medal{left:8px;width:42px;height:42px}
.completion-toggle.platinum-toggle[aria-pressed="true"]{color:#e9fbff;border-color:#a8eaff;background:#244583}

.item-sheet-backdrop[hidden]{display:none}
.item-sheet-backdrop{position:fixed;inset:0;z-index:999;background:#05070baa}
.item-context-menu-game{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 9px 10px;font-weight:800;line-height:1.25}
.item-context-menu-game img{width:36px;height:48px;object-fit:cover;border-radius:5px;flex:none}
.card-drag-ghost{position:fixed!important;z-index:1200!important;pointer-events:none!important;opacity:.92;box-shadow:0 12px 28px #0009;transform:translate(-50%,-50%) scale(1.06)!important}
.card-drag-ghost.series-drag-ghost{box-shadow:3px 3px 0 var(--series-outline),6px 6px 0 var(--panel),0 12px 28px #0009}
.series-line.dragging{opacity:.45}
.card-drag-active,.card-drag-active *{cursor:grabbing!important}
.items.drag-drop-target{outline:2px solid var(--accent);outline-offset:-2px}
.item.drag-drop-target{
  outline:3px solid var(--accent);outline-offset:-3px;
  box-shadow:0 0 0 2px var(--accent),0 0 14px var(--accent);
}
.item.drag-drop-target .series-count{border-color:var(--accent);background:#233c60}
@media (max-width:640px){
  .tier-label{width:clamp(68px,20vw,82px);flex:0 0 clamp(68px,20vw,82px);padding:4px}
  .tier-name{padding:2px 0}
  .tier-menu{top:4px;right:4px}
  .tier-gear{width:26px;height:26px}
  .tier .tier-items,.pool-wrap .pool{--board-gap:4px;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px}
  .tier .tier-items{flex:1 1 0}
  .tier .tier-items .item:not(.is-image),.pool-wrap .pool .item:not(.is-image){padding:3px;font-size:10px;line-height:1.1}
  .tier.collapsed .tier-items,.pool-wrap.collapsed .pool{display:flex;gap:0;padding:8px 8px 8px 0}
  .tier.collapsed .tier-items .item,.pool-wrap.collapsed .pool .item{flex:0 0 auto;min-width:0;width:60px;height:80px;aspect-ratio:auto}
  .tier.collapsed .tier-items .item.is-image,.pool-wrap.collapsed .pool .item.is-image{width:60px;height:80px;aspect-ratio:auto}
  .search-active .tier.collapsed .tier-items,.search-active .pool-wrap.collapsed .pool{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px}
  .search-active .tier.collapsed .tier-items .item,.search-active .pool-wrap.collapsed .pool .item{width:100%;height:auto;aspect-ratio:70/93}
  .item,.tier-label,.pool-head{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
  .item img{-webkit-user-drag:none}
  .item .item-del{display:none!important}
  .series-toggle{min-width:36px;min-height:36px}
  .series-line{outline-width:1px;outline-offset:1px}
  .series-count{padding:0 4px;font-size:11px}
  .series-edges > span{width:8px}
  .tier.collapsed .tier-items:has(.stacked-cover) .item,.pool-wrap.collapsed .pool:has(.stacked-cover) .item{margin-left:-18px}
  .stats-card{padding:16px}
  .stats-summary div{padding:8px}
  .item .completion-medal{width:25px;height:30px}
  .item .platinum-medal{width:23px;height:23px}
  #gameModal .modal-card{display:block;max-height:min(88dvh,780px);overflow-y:auto}
  #gameModal .modal-cover{width:100px;margin-bottom:10px}
  #gameModal .modal-cover img{width:100px;height:133px}
  #gameModal .modal-close{z-index:5}
  #gameModal .completion-toggle{min-height:44px}
  body.item-sheet-open{overflow:hidden}
  .item-context-menu.mobile-sheet{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%;max-height:min(78dvh,680px);padding:10px 14px max(14px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -12px 36px #0009}
  .item-context-menu.mobile-sheet::before{content:"";display:block;width:38px;height:4px;margin:0 auto 8px;border-radius:99px;background:var(--muted);opacity:.65}
  .item-context-menu.mobile-sheet button{min-height:46px;font-size:15px}
}

/* Alternate light and dark palettes keep each style's existing dimensions and typography. */
body[data-theme="classic"][data-appearance="light"]{
  --bg:#eef2f8;--panel:#fff;--panel-2:#f5f7fb;--line:#cbd5e3;
  --text:#19283c;--muted:#4d5e74;--accent:#285fc6;
  --series-outline:#3778d2;--stats-total:#285fc6;--stats-finished:#166547;--stats-glow:#7652b1;
  background:radial-gradient(1000px 420px at 50% -170px,#dbe8ff,transparent 75%),var(--bg);
}
body[data-theme="neon"][data-appearance="light"]{
  --bg:#f2ecf8;--panel:#fffaff;--panel-2:#f5eefb;--line:#d7c6e4;
  --text:#281a36;--muted:#604e6f;--accent:#a62168;
  --series-outline:#bd397d;--stats-total:#08697c;--stats-finished:#176547;--stats-glow:#9145ab;
  background:radial-gradient(880px 420px at 48% -130px,#f6cce9,transparent 75%),var(--bg);
}
body[data-appearance="light"]:not([data-theme="comic"]){
  --menu-danger:#ad2942;
}
body[data-appearance="light"]:not([data-theme="comic"]) :is(.brand,.title-input){color:var(--text)}
body[data-appearance="light"]:not([data-theme="comic"]) .brand{text-shadow:none}
body[data-appearance="light"]:not([data-theme="comic"]) :is(.hint,.modal-meta,.rating-label,.rating-value,.comments-head,.empty-note,.cdate,.cbtn){color:var(--muted)}
body[data-appearance="light"]:not([data-theme="comic"]) :is(.btn,.game-search,.add-input,.add-tier-select,.theme-button,.star,.comment-form textarea){
  background:var(--panel-2);border-color:var(--line);color:var(--text);
}
body[data-appearance="light"]:not([data-theme="comic"]) :is(.btn,.theme-button,.star):hover{
  background:color-mix(in srgb,var(--accent) 9%,var(--panel));border-color:var(--accent);color:var(--text);
}
body[data-appearance="light"]:not([data-theme="comic"]) :is(.theme-button[aria-pressed="true"],.star.on){
  background:var(--accent);border-color:var(--accent);color:#fff;
}
body[data-appearance="light"]:not([data-theme="comic"]) .btn.danger-ghost{color:var(--menu-danger);border-color:#eabfc8}
body[data-appearance="light"]:not([data-theme="comic"]) :is(.tier,.tier .items,.pool-wrap,.modal-card,.tier-menu-panel,.tier-add-menu,.item-context-menu){
  background:var(--panel);border-color:var(--line);color:var(--text);
}
body[data-appearance="light"]:not([data-theme="comic"]) .pool-head.pool-toggle{
  background:var(--panel-2);border-color:var(--line);color:var(--text);
}
body[data-appearance="light"]:not([data-theme="comic"]) :is(.item,.item.is-image,.comment,.modal-close){
  background:var(--panel-2);border-color:var(--line);color:var(--text);
}
body[data-appearance="light"]:not([data-theme="comic"]) :is(.modal-desc,.item-context-menu button:disabled){color:var(--muted)}
body[data-appearance="light"]:not([data-theme="comic"]) :is(.modal-meta span,.comments){border-color:var(--line)}
body[data-appearance="light"]:not([data-theme="comic"]) .item-context-menu-divider{background:var(--line)}
body[data-appearance="light"]:not([data-theme="comic"]) :is(.item-context-menu button,.tier-menu-panel button,.tier-color-option):hover{
  background:color-mix(in srgb,var(--accent) 12%,var(--panel));
}
body[data-appearance="light"]:not([data-theme="comic"]) .tier-menu-panel .tier-remove-action{color:var(--menu-danger)}
body[data-appearance="light"]:not([data-theme="comic"]) .modal-source{color:var(--accent)}
body[data-appearance="light"]:not([data-theme="comic"]) #statsDialog{
  --stats-surface:var(--panel-2);--stats-border:var(--line);--stats-bar:var(--accent);
}
body[data-theme="neon"][data-appearance="light"] .stats-summary dd{text-shadow:none}

body[data-theme="comic"][data-appearance="dark"]{
  --bg:#16131c;--panel:#211d2a;--panel-2:#302839;--line:#62566e;
  --text:#fcf7ff;--muted:#c3b6ce;--accent:#ff72ad;--menu-danger:#ff9cae;
  --series-outline:#ffac51;--arcade-shadow:#0c0a10;
  background:var(--bg);
}
body[data-theme="comic"][data-appearance="dark"] :is(.theme-picker,.hint,.broken,.rating-label,.rating-value,.comments-head,.cdate,.cbtn){color:var(--muted)}
body[data-theme="comic"][data-appearance="dark"] .title-input{color:var(--text)}
body[data-theme="comic"][data-appearance="dark"] :is(.btn,.theme-button,.game-search,.add-input,.add-tier-select,.comment-form textarea,.star){
  background:var(--panel-2);border-color:var(--line);color:var(--text);
  box-shadow:3px 3px var(--arcade-shadow);
}
body[data-theme="comic"][data-appearance="dark"] :is(.btn,.theme-button,.star):hover{background:#43364e;border-color:var(--accent)}
body[data-theme="comic"][data-appearance="dark"] .theme-button[aria-pressed="true"]{background:#ffe600;color:#16141c;border-color:#16141c}
body[data-theme="comic"][data-appearance="dark"] .btn.danger-ghost{color:var(--menu-danger)}
body[data-theme="comic"][data-appearance="dark"] #addForm>.btn{color:#16141c}
body[data-theme="comic"][data-appearance="dark"] :is(.tier,.pool-wrap,.tier-menu-panel,.tier-add-menu,.item-context-menu,.toast){
  background:var(--panel);border-color:var(--line);color:var(--text);box-shadow:4px 4px var(--arcade-shadow);
}
body[data-theme="comic"][data-appearance="dark"] :is(.tier .items,.modal-card){
  background:var(--panel);border-color:var(--line);color:var(--text);
}
body[data-theme="comic"][data-appearance="dark"] .modal-card{box-shadow:8px 8px var(--arcade-shadow)}
body[data-theme="comic"][data-appearance="dark"] :is(.tier-label,.genre-drawer-header,.comments){border-color:var(--line)}
body[data-theme="comic"][data-appearance="dark"] :is(.item,.item.is-image,.item.cover-missing,.comment){
  background:var(--panel-2);border-color:var(--line);color:var(--text);box-shadow:2px 2px var(--arcade-shadow);
}
body[data-theme="comic"][data-appearance="dark"] .pool-head.pool-toggle{
  background:var(--panel-2);border-color:var(--line);color:var(--text);
}
body[data-theme="comic"][data-appearance="dark"] :is(.item-context-menu button,.tier-menu-panel button,.tier-color-option):hover{background:#43364e}
body[data-theme="comic"][data-appearance="dark"] .item-context-menu-divider{background:var(--line)}
body[data-theme="comic"][data-appearance="dark"] .tier-menu-panel .tier-remove-action{color:var(--menu-danger)}
body[data-theme="comic"][data-appearance="dark"] :is(.modal-source,.modal-desc,.modal-meta){color:var(--text)}
body[data-theme="comic"][data-appearance="dark"] .modal-meta span{background:var(--panel-2);border-color:var(--line)}
body[data-theme="comic"][data-appearance="dark"] .star.on{background:#ff72ad;color:#16141c}
body[data-theme="comic"][data-appearance="dark"] .tier-add-form button{color:#16141c}
body[data-theme="comic"][data-appearance="dark"] #statsDialog{
  --stats-surface:var(--panel-2);--stats-border:var(--line);--stats-bar:#78bafa;--stats-track:#43394e;
}
body[data-theme="comic"][data-appearance="dark"] :is(.stats-panel,.stats-summary > div){box-shadow:3px 3px var(--arcade-shadow)}
body[data-theme="comic"][data-appearance="dark"] .stats-panel:not(.stats-progress) h3{color:var(--text)}
body[data-theme="comic"][data-appearance="dark"] .stats-legend li{background:var(--panel);border-color:var(--line)}
body[data-theme="comic"][data-appearance="dark"] .stats-genre-eye{color:#b9dfff}
body[data-theme="comic"][data-appearance="dark"] #statsProgressCaption{color:#493a1b}
