@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-Thin.woff2") format("woff2");
  font-weight: 265;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-ThinItalic.woff2") format("woff2");
  font-weight: 265;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-ExtraBoldItalic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dua Display";
  src: url("/static/fonts/DuaDisplay-BlackItalic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/manrope-latin-400-normal.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("/static/fonts/manrope-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/manrope-latin-500-normal.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("/static/fonts/manrope-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/manrope-latin-600-normal.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("/static/fonts/manrope-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/manrope-latin-700-normal.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("/static/fonts/manrope-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/manrope-latin-800-normal.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: 800; font-display: swap; src: url("/static/fonts/manrope-latin-ext-800-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/DancingScript-400.woff2") format("woff2"); unicode-range: U+0000-024F, U+02BE-02BF, U+02C6-02DD, U+0300-036F, U+0400-04FF, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/DancingScript-500.woff2") format("woff2"); unicode-range: U+0000-024F, U+02BE-02BF, U+02C6-02DD, U+0300-036F, U+0400-04FF, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/DancingScript-600.woff2") format("woff2"); unicode-range: U+0000-024F, U+02BE-02BF, U+02C6-02DD, U+0300-036F, U+0400-04FF, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/DancingScript-700.woff2") format("woff2"); unicode-range: U+0000-024F, U+02BE-02BF, U+02C6-02DD, U+0300-036F, U+0400-04FF, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/Caveat-400.woff2") format("woff2"); unicode-range: U+0000-024F, U+02BE-02BF, U+02C6-02DD, U+0300-036F, U+0400-04FF, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/Caveat-500.woff2") format("woff2"); unicode-range: U+0000-024F, U+02BE-02BF, U+02C6-02DD, U+0300-036F, U+0400-04FF, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/Caveat-600.woff2") format("woff2"); unicode-range: U+0000-024F, U+02BE-02BF, U+02C6-02DD, U+0300-036F, U+0400-04FF, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/Caveat-700.woff2") format("woff2"); unicode-range: U+0000-024F, U+02BE-02BF, U+02C6-02DD, U+0300-036F, U+0400-04FF, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/GreatVibes-400.woff2") format("woff2"); unicode-range: U+0000-024F, U+02BE-02BF, U+02C6-02DD, U+0300-036F, U+0400-04FF, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/amiri-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/amiri-latin-400-normal.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: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/amiri-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/amiri-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/amiri-latin-700-normal.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: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/amiri-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root, [data-palette-preview="rose"] {
  --accent: #EF959C;
  --mark: #C9414F;
  --on-mark: #FFFFFF;
  --ink: #1F2A37;
  --ink-2: #3A4A5E;
  --muted: #5A6676;
  --bg: #F7F1EE;
  --surface: #FFFFFF;
  --line: #EFE4DF;
  --track: #E4D6CF;
  --segment-bg: #F4ECE8;
  --chip-steel-bg: #EAF0F3;
  --chip-steel-fg: #2E4A57;
  --chip-thistle: #EAE0E5;
  --chip-steel-2: #E3EBEE;
  --tint-almond: #F1E6E1;
  --tint-steel: #E6ECF2;
  --d-bg: #16202B;
  --d-surface: #1D2935;
  --d-raised: #233140;
  --d-control: #2A3A4B;
  --d-text: #F3ECE8;
  --d-muted: #A9B8C9;
  --d-done: #8DA1B9;
  --rgb-ink: 31 42 55;
  --rgb-warm: 140 84 92;
  --rgb-cool: 141 161 185;
  --rgb-accent: 239 149 156;
  --rgb-mark: 201 65 79;
  --rgb-bg: 247 241 238;
  --rgb-chip-1: 118 72 98;
  --rgb-chip-2: 150 96 76;
  --rgb-d-bg: 22 32 43;
  --rgb-chip-3: 46 74 87;
}

:root[data-palette="sage"], [data-palette-preview="sage"] {
  --accent: #92B4A7;
  --mark: #3E6E5F;
  --on-mark: #FFFFFF;
  --ink: #2F2F2F;
  --ink-2: #45463F;
  --muted: #5B5F55;
  --bg: #F3F9D2;
  --surface: #FFFFFF;
  --line: #E5ECC6;
  --track: #D9E0BF;
  --segment-bg: #EAF1CC;
  --chip-steel-bg: #E3EEE9;
  --chip-steel-fg: #2F5246;
  --chip-thistle: #ECE6E4;
  --chip-steel-2: #E1EBE6;
  --tint-almond: #E8EDD8;
  --tint-steel: #E4EEEA;
  --d-bg: #222321;
  --d-surface: #2A2B29;
  --d-raised: #333431;
  --d-control: #3B3D38;
  --d-text: #F1F5DC;
  --d-muted: #B6BCA6;
  --d-done: #92B4A7;
  --rgb-ink: 47 47 47;
  --rgb-warm: 147 130 127;
  --rgb-cool: 146 180 167;
  --rgb-accent: 146 180 167;
  --rgb-mark: 62 110 95;
  --rgb-bg: 243 249 210;
  --rgb-chip-1: 110 96 93;
  --rgb-chip-2: 110 120 80;
  --rgb-d-bg: 34 35 33;
  --rgb-chip-3: 47 82 70;
}

:root[data-palette="lavender"], [data-palette-preview="lavender"] {
  --accent: #DD9AC2;
  --mark: #8E4F82;
  --on-mark: #FFFFFF;
  --ink: #2F2330;
  --ink-2: #4A3A49;
  --muted: #6A5568;
  --bg: #F9F0F2;
  --surface: #FFFFFF;
  --line: #F0E1E5;
  --track: #E8D3D9;
  --segment-bg: #F4E7EB;
  --chip-steel-bg: #F1E3EC;
  --chip-steel-fg: #5A3954;
  --chip-thistle: #EFE2EB;
  --chip-steel-2: #F3E4EA;
  --tint-almond: #F6E6E8;
  --tint-steel: #ECE4EB;
  --d-bg: #211922;
  --d-surface: #2A202B;
  --d-raised: #342835;
  --d-control: #3D2F3D;
  --d-text: #F6EAF0;
  --d-muted: #C3AFC0;
  --d-done: #B486AB;
  --rgb-ink: 47 35 48;
  --rgb-warm: 130 102 127;
  --rgb-cool: 180 134 171;
  --rgb-accent: 221 154 194;
  --rgb-mark: 142 79 130;
  --rgb-bg: 249 240 242;
  --rgb-chip-1: 130 102 127;
  --rgb-chip-2: 160 100 110;
  --rgb-d-bg: 33 25 34;
  --rgb-chip-3: 90 57 84;
}

:root[data-palette="sand"], [data-palette-preview="sand"] {
  --accent: #BFB48F;
  --mark: #904E55;
  --on-mark: #FFFFFF;
  --ink: #252627;
  --ink-2: #3E3C40;
  --muted: #5F5A54;
  --bg: #F2EFE9;
  --surface: #FFFFFF;
  --line: #E8E3DA;
  --track: #DDD6C9;
  --segment-bg: #ECE8E0;
  --chip-steel-bg: #ECE8EC;
  --chip-steel-fg: #564E58;
  --chip-thistle: #F1E6E7;
  --chip-steel-2: #EAE7EB;
  --tint-almond: #EEEADD;
  --tint-steel: #E9E7E4;
  --d-bg: #1C1D1E;
  --d-surface: #242526;
  --d-raised: #2C2D2F;
  --d-control: #333436;
  --d-text: #F2EFE9;
  --d-muted: #B8B19C;
  --d-done: #BFB48F;
  --rgb-ink: 37 38 39;
  --rgb-warm: 144 78 85;
  --rgb-cool: 86 78 88;
  --rgb-accent: 191 180 143;
  --rgb-mark: 144 78 85;
  --rgb-bg: 242 239 233;
  --rgb-chip-1: 144 78 85;
  --rgb-chip-2: 140 120 70;
  --rgb-d-bg: 28 29 30;
  --rgb-chip-3: 86 78 88;
}

:root[data-palette="coral"], [data-palette-preview="coral"] {
  --accent: #FF8360;
  --mark: #B5431F;
  --on-mark: #FFFFFF;
  --ink: #13302F;
  --ink-2: #24433F;
  --muted: #4C5F5C;
  --bg: #FCFAEB;
  --surface: #FFFFFF;
  --line: #F1EED6;
  --track: #E7E3C4;
  --segment-bg: #F5F2DC;
  --chip-steel-bg: #DDF6F3;
  --chip-steel-fg: #1E5A57;
  --chip-thistle: #FBE7DF;
  --chip-steel-2: #DFF5F3;
  --tint-almond: #F6F4D6;
  --tint-steel: #E3F4E4;
  --d-bg: #0F2221;
  --d-surface: #142B29;
  --d-raised: #1A3432;
  --d-control: #22403D;
  --d-text: #EEFBF8;
  --d-muted: #9FC4BF;
  --d-done: #3CDBD3;
  --rgb-ink: 19 48 47;
  --rgb-warm: 190 100 70;
  --rgb-cool: 60 170 165;
  --rgb-accent: 255 131 96;
  --rgb-mark: 181 67 31;
  --rgb-bg: 252 250 235;
  --rgb-chip-1: 181 67 31;
  --rgb-chip-2: 140 130 40;
  --rgb-d-bg: 15 34 33;
  --rgb-chip-3: 30 90 87;
}

:root[data-palette="garden"], [data-palette-preview="garden"] {
  --accent: #F374AE;
  --mark: #B0306A;
  --on-mark: #FFFFFF;
  --ink: #1F3A28;
  --ink-2: #32533D;
  --muted: #55675A;
  --bg: #F7F4EA;
  --surface: #FFFFFF;
  --line: #ECE6D3;
  --track: #E0D8BF;
  --segment-bg: #F1EDDF;
  --chip-steel-bg: #E4ECE6;
  --chip-steel-fg: #32533D;
  --chip-thistle: #FBE3EE;
  --chip-steel-2: #E7EEE9;
  --tint-almond: #F6E9E0;
  --tint-steel: #F0ECDD;
  --d-bg: #16241B;
  --d-surface: #1C2D22;
  --d-raised: #233629;
  --d-control: #2B4031;
  --d-text: #F5F1E4;
  --d-muted: #B4C4B5;
  --d-done: #ED9390;
  --rgb-ink: 31 58 40;
  --rgb-warm: 170 90 85;
  --rgb-cool: 120 150 125;
  --rgb-accent: 243 116 174;
  --rgb-mark: 176 48 106;
  --rgb-bg: 247 244 234;
  --rgb-chip-1: 176 48 106;
  --rgb-chip-2: 160 110 70;
  --rgb-d-bg: 22 36 27;
  --rgb-chip-3: 50 83 61;
}

:root[data-palette="earth"], [data-palette-preview="earth"] {
  --accent: #C9AA62;
  --mark: #7A4419;
  --on-mark: #FFFFFF;
  --ink: #400406;
  --ink-2: #5A2A22;
  --muted: #515A47;
  --bg: #F7F1E3;
  --surface: #FFFFFF;
  --line: #EDE4CF;
  --track: #E2D6BA;
  --segment-bg: #F2EBDA;
  --chip-steel-bg: #E8EBE3;
  --chip-steel-fg: #3D4435;
  --chip-thistle: #F2E4D8;
  --chip-steel-2: #EAEDE5;
  --tint-almond: #F4EBD5;
  --tint-steel: #EEE9D9;
  --d-bg: #1F1412;
  --d-surface: #281A17;
  --d-raised: #31211D;
  --d-control: #3B2924;
  --d-text: #F5ECDA;
  --d-muted: #C7B79A;
  --d-done: #D7BE82;
  --rgb-ink: 64 4 6;
  --rgb-warm: 122 68 25;
  --rgb-cool: 81 90 71;
  --rgb-accent: 201 170 98;
  --rgb-mark: 122 68 25;
  --rgb-bg: 247 241 227;
  --rgb-chip-1: 117 92 27;
  --rgb-chip-2: 122 68 25;
  --rgb-d-bg: 31 20 18;
  --rgb-chip-3: 81 90 71;
}

:root[data-palette="coast"], [data-palette-preview="coast"] {
  --accent: #44BBA4;
  --mark: #1D7563;
  --on-mark: #FFFFFF;
  --ink: #393E41;
  --ink-2: #4A5054;
  --muted: #5C6164;
  --bg: #F4F3EF;
  --surface: #FFFFFF;
  --line: #E7E5DF;
  --track: #D3D0CB;
  --segment-bg: #ECEAE5;
  --chip-steel-bg: #DFF2EE;
  --chip-steel-fg: #1D5E51;
  --chip-thistle: #FAF0D6;
  --chip-steel-2: #E2F1EE;
  --tint-almond: #EEECE7;
  --tint-steel: #E9ECEC;
  --d-bg: #1C1F21;
  --d-surface: #232729;
  --d-raised: #2B3033;
  --d-control: #343A3D;
  --d-text: #F1F0EC;
  --d-muted: #B3B8BA;
  --d-done: #E7BB41;
  --rgb-ink: 57 62 65;
  --rgb-warm: 180 140 50;
  --rgb-cool: 68 187 164;
  --rgb-accent: 68 187 164;
  --rgb-mark: 29 117 99;
  --rgb-bg: 244 243 239;
  --rgb-chip-1: 29 117 99;
  --rgb-chip-2: 160 120 30;
  --rgb-d-bg: 28 31 33;
  --rgb-chip-3: 57 62 65;
}

:root {
  --edge: rgb(var(--rgb-ink) / .09);
  --edge-ink: rgba(255, 255, 255, .11);
  --edge-accent: rgb(var(--rgb-mark) / .26);
  --edge-thistle: rgb(var(--rgb-chip-1) / .16);
  --edge-almond: rgb(var(--rgb-chip-2) / .16);
  --edge-steel: rgb(var(--rgb-chip-3) / .15);
  --sheen-soft: linear-gradient(180deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 64%);
  --sheen-ink: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(0, 0, 0, .14));
  --sheen-accent: linear-gradient(180deg, rgba(255, 255, 255, .24), rgb(var(--rgb-mark) / .10));
  --sheen-dark: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(0, 0, 0, .12));
  --sh-sm: 0 1px 1px rgb(var(--rgb-ink) / .04), 0 2px 6px rgb(var(--rgb-warm) / .08);
  --sh-md: 0 1px 2px rgb(var(--rgb-ink) / .05), 0 6px 16px rgb(var(--rgb-warm) / .10), 0 12px 28px rgb(var(--rgb-cool) / .08);
  --sh-card: 0 1px 2px rgb(var(--rgb-ink) / .04), 0 10px 30px rgb(var(--rgb-warm) / .08), 0 20px 40px rgb(var(--rgb-cool) / .06);
  --sh-play: 0 2px 4px rgb(var(--rgb-ink) / .18), 0 10px 24px rgb(var(--rgb-ink) / .22), 0 14px 30px rgb(var(--rgb-accent) / .24);
  --sh-play-dark: 0 2px 4px rgba(0, 0, 0, .25), 0 12px 32px rgb(var(--rgb-accent) / .32);
  --sh-knob: 0 1px 2px rgb(var(--rgb-ink) / .14), 0 2px 5px rgb(var(--rgb-warm) / .14);
  --sh-seg: 0 1px 2px rgb(var(--rgb-ink) / .12), 0 4px 10px rgb(var(--rgb-ink) / .16), 0 6px 14px rgb(var(--rgb-accent) / .14);
  --sh-search: 0 1px 2px rgb(var(--rgb-ink) / .04), 0 3px 8px rgb(var(--rgb-warm) / .06);
  --sh-dark: 0 1px 2px rgba(0, 0, 0, .25), 0 6px 16px rgba(0, 0, 0, .28);
  --glass: rgb(var(--rgb-bg) / .3);
  --glass-solid: rgb(var(--rgb-bg) / .96);
  --glass-dark: rgb(var(--rgb-d-bg) / .4);
  --glass-dark-solid: rgb(var(--rgb-d-bg) / .96);
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
  --font-face: "Dua Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-caps: var(--font-ui);
  --gutter: 20px;
  --radius: 3px;
  --radius-cell: 1px;
  --radius-dot: 50%;
  --touch-min: 44px;
  --icon-btn: 48px;
  --dock-unit: min(1px, calc((100vw - 40px) / 372));
  --dock-btn: calc(48 * var(--dock-unit));
  --cta-h: 56px;
  --glass-blur: blur(7px) saturate(1.4);
  --dim-opacity: .42;
  --dim-chrome: .6;
  --dim-blur: .6px;
  --d-play: 64px;
  --d-skip-w: 64px;
  --d-skip-h: 64px;
  --d-set: min(48px, calc((100vw - 56px - var(--safe-l) - var(--safe-r) - 104px) / 4.5));
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

html[data-face] { --font-ui: var(--face-family, var(--font-face)); --font-caps: var(--font-face); }

*, *::before, *::after { box-sizing: border-box; letter-spacing: var(--face-tracking, 0em); }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar, *::-webkit-scrollbar-thumb, *::-webkit-scrollbar-track { display: none; width: 0; height: 0; background-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  background-color: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 15px;
  font-weight: var(--face-weight, 400); font-style: var(--face-style, normal);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
body.is-drive { background-color: var(--d-bg); }
p, h1, h2 { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.icon {
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon { display: inline-flex; width: 22px; height: 22px; flex: none; }
.icon--14 { width: 14px; height: 14px; }
.icon--18 { width: 18px; height: 18px; }
.icon--20 { width: 20px; height: 20px; }
.icon--22 { width: 22px; height: 22px; }
.icon--24 { width: 24px; height: 24px; }
.icon--26 { width: 26px; height: 26px; }
[dir="rtl"] .icon-directional { transform: scaleX(-1); }
html.no-mask .icon { background-color: transparent; }

.eyebrow { font-family: var(--font-caps); font-size: 12px; font-weight: var(--face-weight, 700); line-height: 1.3; letter-spacing: calc(0.08em + var(--face-tracking, 0em)); text-transform: uppercase; color: var(--muted); }
.title { font-size: 20px; font-weight: var(--face-weight, 800); line-height: 1.2; letter-spacing: calc(-0.01em + var(--face-tracking, 0em)); }
.h1 { font-size: 28px; font-weight: var(--face-weight, 800); line-height: 1.2; letter-spacing: calc(-0.02em + var(--face-tracking, 0em)); }

.app { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; overflow-x: hidden; overflow-x: clip; }
.app.is-moving > .view { position: absolute; top: 0; left: 0; right: 0; margin-inline: auto; }
.view {
  position: relative; width: 100%; max-width: 480px; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden;
  padding-top: var(--safe-t); padding-bottom: var(--safe-b);
}

.icon-btn {
  width: var(--icon-btn); height: var(--icon-btn); flex: none; border-radius: var(--radius); background-color: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--sh-sm);
}
.pagebar { display: flex; align-items: center; gap: 12px; padding: 20px var(--gutter) 12px; }
.brand { display: block; flex: none; width: auto; height: 28px; margin-inline-start: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius);
  font-size: 13px; font-weight: var(--face-weight, 700); line-height: 1; min-width: 0;
}
.chip--steel { background-color: var(--chip-steel-bg); color: var(--chip-steel-fg); }

.topbar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px var(--gutter) 8px;
}
.topbar__title { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.topbar__title .eyebrow { font-weight: var(--face-weight, 600); }
.topbar__title .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px var(--gutter) 4px; }
.plan__strip {
  display: flex; align-items: flex-end; gap: 8px; min-height: var(--touch-min); padding: 6px 0 2px;
  overflow-x: auto; overscroll-behavior-x: contain; cursor: pointer;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  border-radius: var(--radius);
}
.plan-group { flex: var(--weight, 1) 0 auto; display: flex; flex-direction: column; gap: 6px; }
.plan-cells { display: flex; gap: 2px; height: 6px; }
.plan-cell {
  flex: var(--weight, 1) 0 auto; min-width: 5px; height: 6px; border-radius: var(--radius-cell); background-color: var(--track); contain: paint;
  background-image: linear-gradient(to right, var(--accent) var(--progress, 0%), transparent var(--progress, 0%));
}
[dir="rtl"] .plan-cell { background-image: linear-gradient(to left, var(--accent) var(--progress, 0%), transparent var(--progress, 0%)); }
.plan-cell.is-current { box-shadow: inset 0 0 0 1px var(--accent); }
.plan-cell.is-done { background-image: none; background-color: var(--ink); }
.plan-label { font-size: 11px; font-weight: var(--face-weight, 700); line-height: 1; color: var(--muted); text-align: center; white-space: nowrap; }
.plan__info { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: var(--face-weight, 600); line-height: 1.3; color: var(--muted); }
.plan__info .is-status { color: var(--ink-2); }
.verse-list {
  list-style: none; margin: 8px 0 0; padding: 0 16px 12px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 8px; scroll-snap-type: y mandatory; scroll-padding-top: 8px;
}
.verse-list.is-gliding { scroll-snap-type: none; }
.verse-list .verse, .view--player .view__head > *, .view--player .dock > * { transition: opacity .35s ease, filter .35s ease; }
.view.is-playing .verse:not(.is-focus):not(.is-active) { opacity: var(--dim-opacity); filter: blur(var(--dim-blur)); }
.view--player.is-playing .view__head > *, .view--player.is-playing .dock > * { opacity: var(--dim-chrome); filter: blur(var(--dim-blur)); }
.view--player.is-playing .view__head > :is(:hover, :focus-within, :active), .view--player.is-playing .dock:is(:hover, :focus-within, :active) > * { opacity: 1; filter: none; }
.verse-list__item { scroll-snap-align: start; }
.verse {
  width: 100%; min-height: 64px; padding: 14px 18px; border-radius: var(--radius); background-color: var(--surface); color: var(--ink); contain: paint; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 8px; text-align: start;
}
.verse.is-focus { padding: 16px 18px 18px; border-radius: var(--radius); }
.verse.is-active { box-shadow: inset 0 0 0 2px var(--accent), var(--sh-md); }
.verse__head { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 20px; }
.verse__label { font-size: 12px; font-weight: var(--face-weight, 700); line-height: 1.3; letter-spacing: calc(0.04em + var(--face-tracking, 0em)); color: var(--muted); white-space: nowrap; }
.verse__chip { min-width: 0; overflow: hidden; white-space: nowrap; padding: 4px 10px; font-size: 12px; }
.verse__time { margin-inline-start: auto; font-size: 12px; font-weight: var(--face-weight, 600); line-height: 1.3; color: var(--muted); white-space: nowrap; }
.verse__main { display: block; font-family: var(--font-caps); font-size: 16px; font-weight: var(--face-weight, 700); line-height: 1.5; letter-spacing: calc(0.05em + var(--face-tracking, 0em)); text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.verse__main--arabic { font-family: var(--font-arabic); font-size: 24px; font-weight: 400; line-height: 1.7; letter-spacing: 0; text-transform: none; }
.verse__detail { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.verse__ar { display: block; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-arabic); font-size: 28px; font-weight: 400; line-height: 1.8; color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.verse__de { display: block; margin: 2px 4px 0; padding-block: 2px; padding-inline: 14px 0; border-inline-start: 3px solid var(--accent); font-size: 15px; font-weight: var(--face-weight, 500); line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.verse__de .gloss {
  padding-block: 0.4em;
  background-image: linear-gradient(to right, var(--mark) var(--progress, 0%), currentColor var(--progress, 0%));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.verse__de[dir="rtl"] .gloss { background-image: linear-gradient(to left, var(--mark) var(--progress, 0%), currentColor var(--progress, 0%)); }
html.no-background-clip-text .verse__de .gloss { background-image: none; -webkit-text-fill-color: currentColor; }
.verse__de .gloss.is-current { text-decoration: underline; text-decoration-color: rgb(var(--rgb-mark) / .45); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.dock { display: flex; flex-direction: column; gap: 12px; padding: 12px var(--gutter) 20px; }
.view--player .verse-list {
  margin-top: 0; padding-top: calc(var(--head-space, 0px) + 8px); padding-bottom: calc(var(--foot-space, 0px) + 12px);
  scroll-padding-top: calc(var(--head-space, 0px) + 8px); scroll-padding-bottom: var(--foot-space, 0px);
}
.view__head, .view--player .dock { position: absolute; inset-inline: 0; z-index: 2; background-color: var(--glass-solid); }
.view__head { top: var(--safe-t); border-bottom: 1px solid var(--edge); }
.view--player .dock { bottom: var(--safe-b); border-top: 1px solid var(--edge); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .view__head, .view--player .dock { background-color: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
.dock__row { display: flex; align-items: center; justify-content: space-between; direction: ltr; }
.side-btn {
  width: var(--dock-btn); height: var(--dock-btn); flex: none; border-radius: var(--radius); color: var(--ink); font-size: 15px; font-weight: var(--face-weight, 800);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 2px; white-space: nowrap;
}
.side-btn__value { line-height: 1.1; }
.side-btn__label { display: block; font-family: var(--font-caps); max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 9px; font-weight: var(--face-weight, 700); line-height: 1.1; letter-spacing: calc(0.04em + var(--face-tracking, 0em)); text-transform: uppercase; color: var(--muted); }
.side-btn--thistle { background-color: var(--chip-thistle); }
.side-btn--almond { background-color: var(--tint-almond); }
.side-btn--steel { background-color: var(--chip-steel-2); }
.side-btn--speed { font-size: 13px; }
.side-btn--tint { background-color: var(--tint-steel); }
.side-btn--icon { position: relative; padding-bottom: calc(9 * var(--dock-unit)); }
.side-btn__icon { width: calc(20 * var(--dock-unit)); height: calc(20 * var(--dock-unit)); }
.side-btn--icon .side-btn__value {
  position: absolute; inset-inline: 0; bottom: calc(5 * var(--dock-unit)); padding-inline: 2px; overflow: hidden; text-overflow: ellipsis;
  font-size: calc(10 * var(--dock-unit)); font-weight: var(--face-weight, 800); line-height: 1; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.skip-btn {
  width: var(--dock-btn); height: var(--dock-btn); flex: none; border-radius: var(--radius); background-color: var(--surface); color: var(--ink); box-shadow: var(--sh-md);
  display: flex; align-items: center; justify-content: center;
}
.play-btn {
  width: var(--dock-btn); height: var(--dock-btn); flex: none; border-radius: var(--radius); background-color: var(--ink); color: var(--accent); box-shadow: var(--sh-play);
  display: flex; align-items: center; justify-content: center;
}
.cta {
  height: var(--cta-h); border-radius: var(--radius); background-color: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; font-weight: var(--face-weight, 800); line-height: 1;
}
.dock__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta--lesson, .cta--drive { min-width: 0; padding: 0 14px; white-space: nowrap; }
.cta--lesson.is-running { background-color: var(--ink); color: var(--bg); }
.button-hold { --hold: 0%; position: relative; isolation: isolate; overflow: hidden; touch-action: none; }
.button-hold::before { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-start: 0; width: var(--hold); background: currentColor; opacity: .22; }
.cta--lesson.is-running .icon { color: var(--accent); }
.cta__time { font-weight: var(--face-weight, 700); opacity: .7; }
.cta__time:empty { display: none; }
.cta--drive { background-color: var(--surface); color: var(--ink); box-shadow: var(--sh-md); }

.install {
  position: fixed; z-index: 5; inset-inline: 0; bottom: calc(var(--safe-b) + 12px); margin-inline: auto;
  width: min(440px, calc(100% - 2 * var(--gutter))); padding: 14px; display: flex; flex-direction: column; gap: 12px;
  max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 24px); overflow-y: auto;
  border: 1px solid var(--edge); border-radius: var(--radius); background-color: var(--glass-solid); background-image: var(--sheen-soft); box-shadow: var(--sh-card);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .install { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
.install__head { display: flex; align-items: center; gap: 12px; }
.install__icon { width: 44px; height: 44px; flex: none; border-radius: var(--radius); box-shadow: var(--sh-sm); }
.install__intro { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install__title { font-size: 16px; font-weight: var(--face-weight, 800); line-height: 1.25; }
.install__lead, .install__hint { font-size: 13px; line-height: 1.4; color: var(--muted); }
.install__close {
  width: var(--touch-min); height: var(--touch-min); flex: none; align-self: flex-start; margin-block-start: -10px; margin-inline-end: -10px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); color: var(--muted);
}
.install__steps { margin: 0; padding: 0; list-style: none; flex-direction: column; gap: 8px; }
.install__step { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: var(--face-weight, 700); line-height: 1.3; }
.install__glyph {
  width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--edge); border-radius: var(--radius); background-color: var(--surface); color: var(--ink);
}
.install__go { width: 100%; }
.install [data-for] { display: none; }
.install[data-mode="ios"] [data-for="ios"], .install[data-mode="prompt"] [data-for="prompt"] { display: flex; }
.install[data-mode="mac"] [data-for="mac"], .install[data-mode="firefox"] [data-for="firefox"] { display: block; }

.has-words .word { border-radius: var(--radius); transition: background-color .2s, color .2s, box-shadow .2s; }
.has-words .word.is-current { background-color: var(--mark); color: var(--on-mark); box-shadow: 0 0 0 2px var(--mark); }

.library__tools { display: flex; flex-direction: column; gap: 14px; padding: 0 var(--gutter); }
.search {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
  border-radius: var(--radius); background-color: var(--surface); box-shadow: var(--sh-search);
}
.search__icon { color: var(--muted); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: none; background-color: transparent; font-size: 16px; color: var(--ink); padding: 0;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-decoration, .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.pills { display: flex; gap: 8px; overflow-x: auto; }
.pill {
  height: 40px; padding: 0 16px; border-radius: var(--radius); background-color: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: var(--face-weight, 700); flex: none; white-space: nowrap;
}
.pill[aria-pressed="true"] { background-color: var(--ink); color: var(--bg); }
.library__label { padding: 20px var(--gutter) 8px; }
.lesson-list {
  list-style: none; margin: 0; padding: calc(var(--head-space, 0px) + 8px) 16px 24px; scroll-padding-top: calc(var(--head-space, 0px) + 8px); flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 8px;
}
.lesson-list__empty { padding: 24px 4px; color: var(--muted); font-weight: var(--face-weight, 600); text-align: center; }
.lesson {
  min-height: 68px; padding: 10px 14px; border-radius: var(--radius); background-color: var(--surface); color: var(--ink);
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: start;
}
.lesson__badge {
  width: 44px; height: 44px; border-radius: var(--radius); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: var(--face-weight, 800);
}
.lesson__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lesson__name { font-size: 16px; font-weight: var(--face-weight, 700); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson__meta { font-size: 13px; font-weight: var(--face-weight, 500); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson__ar { font-family: var(--font-arabic); font-size: 22px; font-weight: 400; color: var(--ink-2); flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson__state {
  width: 26px; height: 26px; border-radius: var(--radius); flex: none; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); background-color: var(--ink); color: var(--bg);
}
.lesson.is-active { box-shadow: inset 0 0 0 2px var(--accent); }
.lesson__badge--t1 { background-color: var(--chip-steel-2); }
.lesson__badge--t2 { background-color: var(--chip-thistle); }
.lesson__badge--t3 { background-color: var(--tint-almond); }
.lesson__badge--t4 { background-color: var(--tint-steel); }

.settings__scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--head-space, 0px) + 8px) 16px 24px;
  scroll-padding-top: calc(var(--head-space, 0px) + 8px);
  display: flex; flex-direction: column; gap: 12px;
}
.credit { flex: none; margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.credit a { color: inherit; text-decoration: underline; }
.card { padding: 18px; border-radius: var(--radius); background-color: var(--surface); display: flex; flex-direction: column; gap: 18px; flex: none; }
.card--tight { gap: 6px; }
.card__label { margin-bottom: 6px; }
.card__segments { display: flex; flex-direction: column; gap: 18px; }
.setting { display: flex; flex-direction: column; gap: 10px; }
.setting__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.setting__label { font-size: 16px; font-weight: var(--face-weight, 700); line-height: 1.3; }
.setting__hint { font-size: 13px; font-weight: var(--face-weight, 500); color: var(--muted); text-align: end; }
.segmented {
  display: grid; grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr)); gap: 6px; padding: 4px;
  border-radius: var(--radius); background-color: var(--segment-bg);
}
.segmented__opt { min-width: 0; height: var(--touch-min); border-radius: var(--radius); color: var(--ink); font-size: 15px; font-weight: var(--face-weight, 700); white-space: nowrap; }
.segmented__opt[aria-pressed="true"] { background-color: var(--ink); color: var(--bg); box-shadow: var(--sh-seg); }
.switch-row {
  min-height: 56px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: start; color: var(--ink);
}
.switch-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-row__label { font-size: 16px; font-weight: var(--face-weight, 700); line-height: 1.3; }
.switch-row__hint { font-size: 13px; font-weight: var(--face-weight, 500); color: var(--muted); }
.switch {
  width: 52px; height: 32px; border-radius: var(--radius); background-color: var(--track); padding: 3px; flex: none;
  display: flex; align-items: center; justify-content: flex-start; transition: background .2s; direction: ltr;
}
.switch::after { content: ""; width: 26px; height: 26px; border-radius: var(--radius); background-color: var(--surface); box-shadow: var(--sh-knob); }
[aria-checked="true"] > .switch { background-color: var(--accent); justify-content: flex-end; }
.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; height: 52px; padding: 0 6px; border-radius: var(--radius); border: 1.5px solid var(--track); background-color: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: var(--face-weight, 700); overflow: hidden;
}
.lang-btn__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-btn__icon { width: 16px; height: 16px; opacity: .55; }
.flag {
  display: block; width: 16px; height: 12px; flex: none; border-radius: var(--radius-cell); opacity: .9;
  background: var(--flag) center / cover no-repeat; box-shadow: 0 0 0 1px rgb(var(--rgb-ink) / .14);
}
.lang-btn[aria-pressed="true"] .flag { opacity: 1; box-shadow: 0 0 0 1px var(--edge-ink); }
.lang-btn[aria-pressed="true"] { background-color: var(--ink); border-color: var(--ink); color: var(--bg); }
.lang-btn[data-value="manrope"] { font-family: "Manrope", system-ui, sans-serif; font-weight: 700; font-style: normal; letter-spacing: 0; }
.lang-btn--face { font-family: var(--preview-family, var(--font-face)); font-weight: var(--preview-weight); font-style: var(--preview-style); letter-spacing: var(--preview-tracking); }
.lang-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack__track { display: flex; align-items: flex-start; }
.stack__pane { flex: 0 0 100%; min-width: 0; }
.stack__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stack__back {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--touch-min); height: var(--touch-min);
  border-radius: var(--radius); background-color: var(--segment-bg); color: var(--ink); box-shadow: var(--sh-sm);
}
.stack__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: var(--face-weight, 700); }
.stack__chevron { opacity: .45; transform: scaleX(-1); }
[dir="rtl"] .stack__chevron { transform: none; }
.lang-btn[aria-pressed="true"] .stack__chevron { opacity: .8; }
.eq { display: flex; flex-direction: column; gap: 8px; direction: ltr; }
.eq__chart {
  position: relative; display: grid; grid-template-columns: repeat(23, minmax(0, 1fr)); height: 184px; padding: 10px 0;
  border-radius: var(--radius); background-color: var(--segment-bg); box-shadow: inset 0 0 0 1px var(--edge);
  background-image: linear-gradient(to bottom, transparent calc(50% - .5px), var(--track) calc(50% - .5px), var(--track) calc(50% + .5px), transparent calc(50% + .5px));
  touch-action: none; cursor: ns-resize; -webkit-user-select: none; user-select: none;
}
.eq__band { position: relative; z-index: 1; outline-offset: -2px; border-radius: var(--radius-cell); }
.eq__band::before { content: ""; position: absolute; inset-block: 0; left: 50%; width: 1px; transform: translateX(-50%); background-color: var(--track); opacity: .6; }
.eq__curve { position: absolute; inset: 10px 0; width: 100%; height: calc(100% - 20px); overflow: visible; pointer-events: none; }
.eq__area { fill: var(--accent); fill-opacity: .22; }
.eq__line { fill: none; stroke: var(--accent); stroke-width: 2.5px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.eq__node {
  position: absolute; left: 50%; top: calc(var(--node, .5) * 100%); width: 12px; height: 12px; transform: translate(-50%, -50%);
  border-radius: var(--radius-dot); background-color: var(--surface); box-shadow: inset 0 0 0 2.5px var(--ink), var(--sh-knob);
}
.eq__band:focus-visible .eq__node { background-color: var(--mark); box-shadow: inset 0 0 0 2.5px var(--mark), var(--sh-knob); }
.eq__scale { display: grid; grid-template-columns: repeat(23, minmax(0, 1fr)); font-size: 10px; font-weight: var(--face-weight, 700); color: var(--muted); }
.eq__tick { justify-self: center; white-space: nowrap; }
.eq__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--touch-min); }
.eq__readout { font-size: 13px; font-weight: var(--face-weight, 700); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.eq__reset {
  height: 36px; padding: 0 14px; border-radius: var(--radius); background-color: var(--segment-bg); color: var(--ink);
  font-size: 13px; font-weight: var(--face-weight, 700); box-shadow: var(--sh-sm);
}
.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.palette-btn {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 5px 5px 9px; border-radius: var(--radius);
  border: 1.5px solid var(--track); background-color: var(--surface); color: var(--ink); box-shadow: var(--sh-sm);
  font-size: 13px; font-weight: var(--face-weight, 700); line-height: 1.2; text-align: center;
}
.palette-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), var(--sh-sm); }
.palette-btn__preview {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 44px; padding: 0 8px;
  border-radius: var(--radius); background-color: var(--bg); box-shadow: inset 0 0 0 1px rgb(var(--rgb-ink) / .08);
}
.palette-btn__logo { display: block; width: 28px; height: 28px; flex: none; }
.palette-btn__dots { display: flex; padding-inline-start: 4px; }
.palette-btn__dot { width: 14px; height: 14px; flex: none; margin-inline-start: -4px; border-radius: var(--radius); box-shadow: 0 0 0 2px var(--bg); }
.palette-btn__dot--accent { background-color: var(--accent); }
.palette-btn__dot--mark { background-color: var(--mark); }
.palette-btn__dot--ink { background-color: var(--ink); }
.palette-btn__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.view--drive { max-width: none; background-color: var(--d-bg); color: var(--d-text); padding: 0 calc(28px + var(--safe-r)) 0 calc(28px + var(--safe-l)); }
.view--drive .view__head { top: 0; padding: calc(20px + var(--safe-t)) calc(28px + var(--safe-r)) 14px calc(28px + var(--safe-l)); }
.drive__foot {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px calc(28px + var(--safe-r)) calc(20px + var(--safe-b)) calc(28px + var(--safe-l)); border-top: 1px solid var(--edge);
}
.view--drive .view__head, .drive__foot { background-color: var(--glass-dark-solid); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .view--drive .view__head, .drive__foot { background-color: var(--glass-dark); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
.drive__bar { display: flex; align-items: center; gap: 16px; }
.drive__exit {
  height: 48px; padding: 0 18px; border-radius: var(--radius); background-color: var(--d-raised);
  display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: var(--face-weight, 700); flex: none; white-space: nowrap;
}
.drive__plan { flex: 1; min-width: 0; }
.view--drive { --mark: var(--accent); --muted: var(--d-muted); }
.view--drive .plan-cell { background-color: var(--d-control); }
.view--drive .plan-cell.is-done { background-color: var(--d-done); }
.verse-list--drive {
  margin: 0; padding: calc(var(--head-space, 0px) + 12px) 0 calc(var(--foot-space, 0px) + 12px); gap: 6px;
  scroll-padding-top: calc(var(--head-space, 0px) + 12px); scroll-padding-bottom: calc(var(--foot-space, 0px) + 4px);
}
.verse-list--drive .verse { padding: 12px 16px; background-color: transparent; box-shadow: none; color: var(--d-text); }
.verse-list--drive .verse.is-focus { background-color: var(--d-raised); }
.verse-list--drive .verse.is-active { background-color: var(--d-raised); box-shadow: inset 0 0 0 2px var(--accent); }
.verse-list--drive .verse__label, .verse-list--drive .verse__time { font-size: 13px; }
.verse-list--drive .verse__main { font-size: 22px; color: var(--d-text); }
.verse-list--drive .verse__main--arabic { font-size: 30px; }
.verse-list--drive .verse__ar { font-size: 34px; color: var(--d-text); border-top-color: var(--d-control); }
.drive__pos { font-size: 15px; font-weight: var(--face-weight, 700); color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.drive__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drive__verse {
  flex: 1; min-width: 0; min-height: 0; border-radius: var(--radius); background-color: var(--d-surface); padding: 0 12px;
  display: flex; flex-direction: column; overflow: hidden;
}
.drive__rep { flex: none; padding: 0 4px; font-size: 15px; font-weight: var(--face-weight, 500); color: var(--d-muted); text-align: center; }
.drive__rep:empty { display: none; }
.drive__controls { display: flex; align-items: center; justify-content: center; gap: 16px; direction: ltr; }
.drive__play {
  width: var(--d-play); height: var(--d-play); border-radius: var(--radius); background-color: var(--accent); color: var(--d-bg); box-shadow: var(--sh-play-dark);
  display: flex; align-items: center; justify-content: center; flex: none; position: relative;
}
.drive__time { position: absolute; inset-inline: 0; bottom: 6px; font-size: 10px; font-weight: var(--face-weight, 800); line-height: 1; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .85; }
.drive__time:empty { display: none; }
.drive__settings { display: flex; gap: 8px; flex: none; direction: ltr; }
.drive__settings .side-btn { width: var(--d-set); height: var(--d-set); }
.view--drive .side-btn { background-color: var(--d-control); color: var(--d-text); }
.drive__skips { display: contents; }
.drive__skip[data-action="prev"] { order: 0; }
.drive__play { order: 1; }
.drive__skip[data-action="next"] { order: 2; }
.drive__skip {
  width: var(--d-skip-w); height: var(--d-skip-h); border-radius: var(--radius); background-color: var(--d-control); color: var(--d-text);
  display: flex; align-items: center; justify-content: center; flex: none;
}
@media (orientation: landscape) {
  .drive__foot { flex-direction: row; justify-content: center; gap: 24px; }
}
@media (orientation: portrait) {
  .drive__pos { display: none; }
  .drive__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "exit settings" "plan plan"; column-gap: 8px; row-gap: 12px; }
  .drive__exit { grid-area: exit; justify-self: start; max-width: 100%; min-width: 0; height: var(--d-set); padding: 0 12px; }
  .drive__exit > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .drive__settings { grid-area: settings; gap: 6px; }
  .drive__plan { grid-area: plan; }
}

.icon-btn, .skip-btn, .play-btn, .side-btn, .cta, .pill, .lesson, .card, .verse, .chip, .lesson__badge, .search, .segmented, .drive__exit, .drive__skip, .drive__play, .drive__verse, .switch::after { border: 1px solid var(--edge); }
.icon-btn, .skip-btn, .side-btn, .cta--drive, .pill, .lesson, .card, .verse, .chip, .lesson__badge, .lang-btn, .palette-btn, .search, .switch::after { background-image: var(--sheen-soft); }
.play-btn, .pill[aria-pressed="true"], .cta--lesson.is-running, .segmented__opt[aria-pressed="true"], .lang-btn[aria-pressed="true"], .lesson__state { background-image: var(--sheen-ink); --edge: var(--edge-ink); }
.cta--lesson, .drive__play, [aria-checked="true"] > .switch { background-image: var(--sheen-accent); --edge: var(--edge-accent); }
.side-btn--thistle, .lesson__badge--t2 { --edge: var(--edge-thistle); }
.side-btn--almond, .lesson__badge--t3 { --edge: var(--edge-almond); }
.side-btn--steel, .side-btn--tint, .chip--steel, .lesson__badge--t1, .lesson__badge--t4 { --edge: var(--edge-steel); }
.side-btn, .pill, .lesson, .chip, .lesson__badge { box-shadow: var(--sh-sm); }
.card { box-shadow: var(--sh-card); }
.lesson.is-active { box-shadow: inset 0 0 0 2px var(--accent), var(--sh-sm); }
.pill[aria-pressed="true"], .segmented__opt[aria-pressed="true"] { box-shadow: var(--sh-seg); }
.view--drive { --edge: rgba(255, 255, 255, .08); --edge-ink: rgba(255, 255, 255, .12); --sheen-soft: var(--sheen-dark); --sh-sm: var(--sh-dark); }
.view--drive .side-btn, .drive__exit, .drive__skip, .drive__verse { background-image: var(--sheen-dark); }
.drive__exit, .drive__skip { box-shadow: var(--sh-dark); }
.verse-list--drive .verse { border-color: transparent; background-image: none; }
.verse-list--drive .verse.is-focus { border-color: var(--edge); background-image: var(--sheen-dark); }

:lang(ar), :lang(fa), :lang(ur) { letter-spacing: 0; font-style: normal; }

@media (orientation: landscape) and (max-height: 560px) {
  .view:not(.view--drive) { height: auto; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overflow-y: visible; }
  .view--player .dock { position: sticky; bottom: 0; }
  .view:not(.view--drive) .view__head { position: sticky; top: 0; }
  .view--player .verse-list { padding-bottom: 12px; }
  .view--player .verse-list, .lesson-list, .settings__scroll { padding-top: 8px; scroll-padding-top: 8px; }
  .verse-list, .lesson-list, .settings__scroll { flex: none; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
